• Michael Bradshaw's avatar
    avformat/movenc: use enum values directly for colr atom · b1699f4a
    Michael Bradshaw authored
    The switch cases were missing:
    
      - Primaries: bt470m, film, smpte428, and ebu3213.
      - TRCs: gamma22, gamma28, linear, log, log_sqrt, iec61966_2_4, bt1361,
        iec61966_2_1, bt2020_10bit, and bt2020_12bit.
      - Space: rgb, fcc, ycgco, bt2020_cl, smpte2085, chroma-derived-nc,
        chroma-derived-c, and ictcp.
    
    They also annoyingly remapped the following (which are functionally
    equivalent but can be treated differently by clients):
    
      - smpte240m primaries to smpte170m.
      - smpte170m TRC to bt709.
      - bt470bg color space to smpte170m.
    
    The enum values in FFmpeg are the same values as ITU-T H.273 and
    ISO/IEC 23001-8 so we can just use them directly, which is both simpler
    and preserves the user intent.
    Signed-off-by: 's avatarMichael Bradshaw <mjbshaw@google.com>
    b1699f4a
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...