2009/8/27 Alessandro Ferrari <[email protected]>

> Hi,
>   i want to resize an YUV420P image by using the function sws_scale(
> SwsContext * c, uint8_t * src[], int srcStride[], int srcSliceY, int
> srcSliceH, uint8_t * dst[], int dstStride[]) in swscal.h. I want to resize
> only its resolution and i don't want to change the picture format. At this
> function I have to specify the param int dstStride[] but I don't know what
> this param specify and what I have to pass to the function. The source
> picture is a 720x576 resolution, and is linesizes contains:
> linesize[0]=752 linesize[1]=376 linesize[2]=376, what specify this
> attributes and what i have to adapt them at the new resolution?
>
> Thanjs in advance, best regardsL


 I solved. Linesizes indicate the width of the pixel arrays of YUV420P. For
the vector Y (linesize[0]) is equal at the width, for U,V vector
(linesize[1] and linesize[2]) is width/2.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to