Quantcast
Channel: Embedded Software (Read Only)
Viewing all articles
Browse latest Browse all 25965

Forum Post: How to deal with this situation for convert yuv444 to yuv420planner ?

$
0
0

Hi,all:

I want to call jpeg codec v02.02.02 on 6678.I see the datasheet of jpeg that Arbitrary image size supported.

By the way,My image format is YUV444.And for some reason,I must select yuv420p as the input of jpeg codec.

Because my jpeg decoder just support YUV420 format.So,I must convert YUV444p to YUV420p.

       Most of important,my image size is arbitrary.May be width and height are all multiple of 2.such as 

2x2 ,4x4,8x2 100x100 .... and so on.On other case ,width and height may not be multiple of 2. such as  5x5,

7x7, 11x11,9x13  ....and so on.

     So, If  9x13 occurs.I am puzzled. How can I convert 9x13  YUV444p to YUV420p ?

As I understand, YUV420 =Y( widthxheight) + U(w x h/4) + V(w x h /4).But now, w x h = 9x13 can not be

divisible  by  4. how to do that ?

Does it mean that if I want to convert yuv444 to yuv420 I must make sure that width and height are all multiple 

of 2? 

     Thanks!


Viewing all articles
Browse latest Browse all 25965

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>