Skip to content
Discussion options

You must be logged in to vote

It shoudl be possible to write a C or C++ program to perform this conversion by calling the avifImageYUVToRGB() and avifImageRGBToYUV() functions.

avifImageYUVToRGB() can be used to convert the "RGB stored in YUV" to RGB.

Then avifImageRGBToYUV() can be used to convert RGB to YUV with BT.2020 matrix coefficients.

The comment in your convert.py script says "Input YUV planes are interpreted as B, G, R channels respectively (BGR in YUV)". But for MC=0/Identity, input YUV planes should be interpreted as G, B, R channels respectively. Are you sure the B, G, R channels order is correct?

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@cromefire
Comment options

@wantehchang
Comment options

@wantehchang
Comment options

@cromefire
Comment options

@wantehchang
Comment options

Answer selected by cromefire
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants