[FFmpeg-devel] [PATCH] bgr32 libswscale special convertor

Peter Schlaile peter
Mon Aug 10 22:10:04 CEST 2009


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.

* using only two macro args instead of four:
   Using four args is a lot more readable and extendable, if someone wants
   to add ABGR or similar accelerations.


Regards,
Peter

----
Peter Schlaile
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg_swscaler_bgr32_patch.diff
Type: text/x-diff
Size: 7329 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090810/ef0f7571/attachment.diff>



More information about the ffmpeg-devel mailing list