FFmpeg/libavformat
Michael Bradshaw b1699f4ac3 avformat/movenc: use enum values directly for colr atom
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: Michael Bradshaw <mjbshaw@google.com>
2020-04-13 09:46:07 -06:00
..
2020-01-08 01:32:26 +01:00
2019-12-12 19:25:33 +01:00
2020-03-17 16:08:13 +01:00
2019-12-12 19:25:33 +01:00
2020-03-17 22:46:36 +01:00
2019-12-12 19:25:33 +01:00
2019-12-12 19:25:33 +01:00
2019-08-13 15:38:57 +02:00
2020-03-17 16:05:49 +01:00
2019-12-25 22:10:47 +01:00
2019-12-12 19:25:33 +01:00
2020-03-17 16:04:42 +01:00
2020-03-17 16:08:13 +01:00
2019-12-11 16:24:16 +01:00
2020-02-15 10:55:33 +01:00
2019-12-12 19:25:33 +01:00
2019-10-08 13:47:16 +08:00
2019-12-12 19:25:33 +01:00
2020-02-25 19:57:16 +01:00
2019-12-12 19:25:33 +01:00
2019-09-27 12:15:50 +02:00
2020-03-14 22:07:27 +01:00
2020-03-17 22:46:36 +01:00
2019-12-12 19:25:33 +01:00
2020-04-10 12:22:09 +02:00
2020-02-16 12:54:57 +01:00
2020-01-08 01:32:26 +01:00
2019-12-12 19:25:33 +01:00
2019-03-20 18:38:48 +01:00
2020-04-08 16:23:07 +02:00
2019-12-12 19:25:33 +01:00
2020-03-08 19:08:04 +01:00
2020-03-17 16:08:13 +01:00
2020-02-20 14:41:26 +01:00
2020-03-12 18:47:39 +01:00
2020-03-26 02:39:14 +01:00