Skip to content

Commit

Permalink
Set correct values for color parameters as possible.
Browse files Browse the repository at this point in the history
  • Loading branch information
ledyba-z committed Feb 10, 2020
1 parent 7b5a573 commit 1806bbd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,10 @@ void Config::modify(aom_codec_ctx_t* aom) {
//FIXME(ledyba-z): support color profile. PNG can contain gamma correction and color profile.
// Gamma Correction and Precision Color (PNG: The Definitive Guide)
// http://www.libpng.org/pub/png/book/chapter10.html
// Currently, we always use BT.2020.
set(AV1E_SET_COLOR_PRIMARIES, 9 );
set(AV1E_SET_MATRIX_COEFFICIENTS, 9 );
set(AV1E_SET_TRANSFER_CHARACTERISTICS, 9);
//
set(AV1E_SET_COLOR_PRIMARIES, 1); // sRGB(aka BT.709)
set(AV1E_SET_TRANSFER_CHARACTERISTICS, 2); // There isn't "sRGB"...
set(AV1E_SET_MATRIX_COEFFICIENTS, 9 ); // Currently, we always use BT.2020.

set(AV1E_SET_CHROMA_SAMPLE_POSITION, 0); // see libavif-container

Expand Down

0 comments on commit 1806bbd

Please sign in to comment.