This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/DRA72: How to config SGX544 color space map

Part Number: DRA72

Tool/software: Linux

hardware: DRA725 custom board
software: ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03

SGX544 will map YUV color space to RGBA while I load
texture with YUV format by function eglCreateImageKHR and glEGLImageTargetTexture2DOES.

There are two methods for this color map.
traditional mothod:
16 <= Y <= 235
16 <= U <= 240
16 <= V <= 240
A = Y - 16
B = U - 128
C = V - 128
R = clip((298*A + 410*C + 128) >> 8)
G = clip((298*A - 101*B - 209*C + 128) >> 8)
B = clip((298*A + 519*B + 128) >> 8)

customer  method:
0 <= Y <= 255
0 <= U <= 255
0 <= V <= 255
A = Y
B = U
C = V
R = clip((256*A + 292*C) >> 8)
G = clip((256*A - 100*B - 149*C) >> 8)
B = clip((256*A + 520*B) >> 8)

How to customized the map mothod?