Skip to content

Commit 83ac657

Browse files
committed
AV1: AOMedia ITU-T T.35 metadata
1 parent 6905151 commit 83ac657

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

Source/MediaInfo/Video/File_Av1.cpp

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,7 @@ void File_Av1::metadata_itu_t_t35_B5()
646646
{
647647
case 0x003B: Param_Info1("Dolby Laboratories, Inc."); metadata_itu_t_t35_B5_003B(); break;
648648
case 0x003C: Param_Info1("Samsung Electronics America"); metadata_itu_t_t35_B5_003C(); break;
649+
case 0x5890: Param_Info1("AOMedia"); metadata_itu_t_t35_B5_5890(); break;
649650
}
650651
}
651652

@@ -902,6 +903,33 @@ void File_Av1::metadata_itu_t_t35_B5_003C_0001_04()
902903
FILLING_END();
903904
}
904905

906+
//---------------------------------------------------------------------------
907+
void File_Av1::metadata_itu_t_t35_B5_5890()
908+
{
909+
int8u itu_t_t35_terminal_provider_oriented_code;
910+
Get_B1(itu_t_t35_terminal_provider_oriented_code, "itu_t_t35_terminal_provider_oriented_code");
911+
912+
switch (itu_t_t35_terminal_provider_oriented_code)
913+
{
914+
case 0x01: metadata_itu_t_t35_B5_5890_01(); break;
915+
}
916+
}
917+
918+
//---------------------------------------------------------------------------
919+
void File_Av1::metadata_itu_t_t35_B5_5890_01()
920+
{
921+
Element_Info1("AOMedia Film Grain Synthesis 1 (AFGS1)");
922+
923+
Element_Begin1("av1_film_grain_param_sets");
924+
BS_Begin();
925+
Skip_SB( "afgs1_enable_flag");
926+
Skip_S1(4, "reserved_4bits");
927+
Skip_S1(3, "num_film_grain_sets_minus1");
928+
BS_End();
929+
Skip_XX(Element_Size - Element_Offset, "(Not parsed)");
930+
Element_End0();
931+
}
932+
905933
//---------------------------------------------------------------------------
906934
void File_Av1::frame()
907935
{

Source/MediaInfo/Video/File_Av1.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ private :
6363
void metadata_itu_t_t35_B5_003C();
6464
void metadata_itu_t_t35_B5_003C_0001();
6565
void metadata_itu_t_t35_B5_003C_0001_04();
66+
void metadata_itu_t_t35_B5_5890();
67+
void metadata_itu_t_t35_B5_5890_01();
6668
void frame();
6769
void padding();
6870

0 commit comments

Comments
 (0)