webm_parser: Add Mesh value for ProjectionType
Change-Id: I0e2be134cfefdb62edc54288720523646d01479a
This commit is contained in:
parent
78f2c5ab78
commit
17200208c5
@ -901,6 +901,11 @@ enum class ProjectionType : std::uint64_t {
|
||||
Cube map.
|
||||
*/
|
||||
kCubeMap = 2,
|
||||
|
||||
/**
|
||||
Mesh.
|
||||
*/
|
||||
kMesh = 3,
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -126,4 +126,19 @@ TEST_F(ProjectionParserTest, CustomValues) {
|
||||
EXPECT_EQ(4.0, projection.pose_roll.value());
|
||||
}
|
||||
|
||||
TEST_F(ProjectionParserTest, MeshProjection) {
|
||||
SetReaderData({
|
||||
0x76, 0x71, // ID = 0x7671 (ProjectionType).
|
||||
0x81, // Size = 1.
|
||||
0x03, // Body (value = mesh).
|
||||
});
|
||||
|
||||
ParseAndVerify();
|
||||
|
||||
const Projection projection = parser_.value();
|
||||
|
||||
EXPECT_TRUE(projection.type.is_present());
|
||||
EXPECT_EQ(ProjectionType::kMesh, projection.type.value());
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
Loading…
x
Reference in New Issue
Block a user