MCPcopy Create free account
hub / github.com/MediaArea/MediaInfoLib / N19_CharacterCodeTable_CharSet

Function N19_CharacterCodeTable_CharSet

Source/MediaInfo/Text/File_N19.cpp:69–92  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

67
68//---------------------------------------------------------------------------
69static string N19_CharacterCodeTable_CharSet(int16u CCT)
70{
71 switch (CCT)
72 {
73 case 0x3030 : return "ISO 6937-2";
74 case 0x3031 :
75 case 0x3032 :
76 case 0x3033 :
77 case 0x3034 : return "ISO 8859-"+to_string(CCT-0x3030+4);
78 default : ;
79 }
80
81 auto CCT0=(char)(CCT>> 8);
82 auto CCT1=(char)(CCT );
83 if (CCT0>='0' && CCT0<='9' && CCT1>='0' && CCT1<='9')
84 {
85 string CCT_Text="CCT ";
86 CCT_Text+=CCT0;
87 CCT_Text+=CCT1;
88 return CCT_Text;
89 }
90
91 return {};
92}
93
94//---------------------------------------------------------------------------
95static int8u N19_DiskFormatCode_FrameRate_Rounded(int64u DFC64)

Callers 1

FileHeader_ParseMethod · 0.85

Calls 1

to_stringFunction · 0.85

Tested by

no test coverage detected