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

Function Time_BCD

Source/MediaInfo/TimeCode.cpp:916–926  ·  view source on GitHub ↗

--------------------------------------------------------------------------- Form: HHMMSS, BCD

Source from the content-addressed store, hash-verified

914//---------------------------------------------------------------------------
915//Form: HHMMSS, BCD
916std::string Time_BCD(uint32_t Time)
917{
918 string V("00:00:00");
919 V[0] += (uint8_t)(Time >> 20) & 0x0F;
920 V[1] += (uint8_t)(Time >> 16) & 0x0F;
921 V[3] += (uint8_t)(Time >> 12) & 0x0F;
922 V[4] += (uint8_t)(Time >> 8) & 0x0F;
923 V[6] += (uint8_t)(Time >> 4) & 0x0F;
924 V[7] += (uint8_t)(Time) & 0x0F;
925 return V;
926}
927
928} //NameSpace

Callers 4

Descriptor_58Method · 0.85
Table_4EMethod · 0.85
Table_70Method · 0.85
Table_73Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected