[FFmpeg-devel] [PATCH] bgr32 libswscale special convertor
Michael Niedermayer
michaelni
Tue Aug 11 18:14:00 CEST 2009
On Mon, Aug 10, 2009 at 10:10:04PM +0200, Peter Schlaile wrote:
> Hi,
>
> I updated the patch with the following changes:
>
> * tab changed to spaces
> * made RGB_PLANAR2PACKED32 macro args a lot more readable
> * documented the macro args and added examples
>
> Things not changed:
>
> * missing const specifiers:
> which one do you miss?
>
> please compare with the declaration of the yuv420 -> RGB32 code, which
> is already present:
>
> static inline int RENAME(yuv420_rgb32)(SwsContext *c, uint8_t* src[],
> int srcStride[], int srcSliceY, int srcSliceH, uint8_t* dst[],
> int dstStride[])
>
> I tried adding several consts, but got compile errors, since srcStride
> e.g. is modified by the code.
src should be const, the pixel values surely are not modified
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Why not whip the teacher when the pupil misbehaves? -- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090811/5ba8eb9f/attachment.pgp>
More information about the ffmpeg-devel
mailing list