Advertisement
Guest User

mp4-colr

a guest
Feb 25th, 2015
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. class ColourInformationBox extends Box(‘colr’){
  2. unsigned int(32) colour_type;
  3. if (colour_type == ‘nclx’) /* on-screen colours */
  4. {
  5. unsigned int(16) colour_primaries;
  6. unsigned int(16) transfer_characteristics;
  7. unsigned int(16) matrix_coefficients;
  8. unsigned int(1) full_range_flag;
  9. unsigned int(7) reserved = 0;
  10. }
  11. else if (colour_type == ‘rICC’)
  12. {
  13. ICC_profile; // restricted ICC profile
  14. }
  15. else if (colour_type == ‘prof’)
  16. {
  17. ICC_profile; // unrestricted ICC profile
  18. }
  19. }
  20. colour_type: an indication of the type of colour information supplied. For colour_type ‘nclx’:
  21. these fields are exactly the four bytes defined for PTM_COLOR_INFO( ) in A.7.2 of ISO/IEC 29199-2
  22. but note that the full range flag is here in a different bit position
  23. 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