webm_parser: Add Mesh value for ProjectionType

Change-Id: I0e2be134cfefdb62edc54288720523646d01479a
This commit is contained in:
Michael Bradshaw 2016-09-12 09:40:30 -07:00
parent 78f2c5ab78
commit 17200208c5
2 changed files with 20 additions and 0 deletions

View File

@ -901,6 +901,11 @@ enum class ProjectionType : std::uint64_t {
Cube map.
*/
kCubeMap = 2,
/**
Mesh.
*/
kMesh = 3,
};
/**

View File

@ -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