Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

38 lignes
1.4KB

  1. #include "mov-internal.h"
  2. #include <assert.h>
  3. #include <stdlib.h>
  4. #include <errno.h>
  5. // https://www.webmproject.org/vp9/mp4/
  6. int mov_read_smdm(struct mov_t* mov, const struct mov_box_t* box)
  7. {
  8. (void)box;
  9. mov_buffer_r8(&mov->io); // version
  10. mov_buffer_r24(&mov->io); // flags
  11. mov_buffer_r16(&mov->io); // primaryRChromaticity_x, 0.16 fixed-point Red X chromaticity coordinate as defined by CIE 1931
  12. mov_buffer_r16(&mov->io); // primaryRChromaticity_y
  13. mov_buffer_r16(&mov->io); // primaryGChromaticity_x
  14. mov_buffer_r16(&mov->io); // primaryGChromaticity_y
  15. mov_buffer_r16(&mov->io); // primaryBChromaticity_x
  16. mov_buffer_r16(&mov->io); // primaryBChromaticity_y
  17. mov_buffer_r16(&mov->io); // whitePointChromaticity_x
  18. mov_buffer_r16(&mov->io); // whitePointChromaticity_y
  19. mov_buffer_r32(&mov->io); // luminanceMax, 24.8 fixed point Maximum luminance, represented in candelas per square meter (cd/m²)
  20. mov_buffer_r32(&mov->io); // luminanceMin
  21. return mov_buffer_error(&mov->io);
  22. }
  23. int mov_read_coll(struct mov_t* mov, const struct mov_box_t* box)
  24. {
  25. (void)box;
  26. mov_buffer_r8(&mov->io); // version
  27. mov_buffer_r24(&mov->io); // flags
  28. mov_buffer_r16(&mov->io); // maxCLL, Maximum Content Light Level as specified in CEA-861.3, Appendix A.
  29. mov_buffer_r16(&mov->io); // maxFALL, Maximum Frame-Average Light Level as specified in CEA-861.3, Appendix A.
  30. return mov_buffer_error(&mov->io);
  31. }