[MPlayer-dev-eng] how to output compacted yuv planar data ?

Xidorn Quan quanxunzhen at gmail.com
Sat Sep 8 17:16:27 CEST 2012


On Sat, Sep 8, 2012 at 9:35 PM, lean fu <fulean at gmail.com> wrote:
> hi list:
>
> is it possible to make mplayer output continuous yuv420 dada ?, i need the
> 3 YUV components placed  in continuous area, without the stride extra
> space.
>
> the total memory size occupied should be  video_width*video_height*1.5
> bytes.
>
> for my android port,i'm trying to enhance yuv2rgb conversion performance by
> using system api,which may take vantage of hw acceleration.
>
> while system api like this : convert (unsigned char *yuvBuf,int32_t
> videowith,int32_t videoheight,unsigned char *rgbBuf).
>
> obviously, it won't work correctly  if pass mp_image->planes[0]  to
> yuvbuffer.
>
> are  there some options i can apply under slave mode for this purpose ?
>  thanks very much!

You can use memcpy_pic from libvo/fastmemcpy.h to copy pictures yourself.


More information about the MPlayer-dev-eng mailing list