Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ColourInformationBox extends Box(âcolrâ){
- unsigned int(32) colour_type;
- if (colour_type == ânclxâ) /* on-screen colours */
- {
- unsigned int(16) colour_primaries;
- unsigned int(16) transfer_characteristics;
- unsigned int(16) matrix_coefficients;
- unsigned int(1) full_range_flag;
- unsigned int(7) reserved = 0;
- }
- else if (colour_type == ârICCâ)
- {
- ICC_profile; // restricted ICC profile
- }
- else if (colour_type == âprofâ)
- {
- ICC_profile; // unrestricted ICC profile
- }
- }
- colour_type: an indication of the type of colour information supplied. For colour_type ânclxâ:
- these fields are exactly the four bytes defined for PTM_COLOR_INFO( ) in A.7.2 of ISO/IEC 29199-2
- but note that the full range flag is here in a different bit position
- ICC_profile: an ICC profile as defined in ISO 15076-1 or ICC.1:2010 is supplied.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement