AnsweredAssumed Answered

How i.mx6 GPU convert UYVY to RGB?

Question asked by lin ya on Mar 24, 2017
Latest reply on Oct 5, 2017 by JohnDoe1z

The glTextDirectVIVMap API is able to load UYVY texture.
What is the accurate algorithm that API convert UYVY to RGB ?

 

I found this algorithm for G2D from Processor Reference Manual.
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)

 

Is glTextDirectVIVMap API the same as G2D ?
I want to get a precise calculation of the GPU.

 

Any information is very appreciate.

Outcomes