[FFmpeg-devel] [PATCH] libswscale: simplify unscaled rgb48<->bgr48

Paul B Mahol onemda at gmail.com
Thu Jul 19 02:28:07 CEST 2012


On 7/18/12, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Wed, Jul 18, 2012 at 12:12:26AM +0000, Paul B Mahol wrote:
>> Using av_bswap16 should be enough.
>>
>> Signed-off-by: Paul B Mahol <onemda at gmail.com>
>> ---
>>  libswscale/colorspace-test.c  |    4 ++--
>>  libswscale/rgb2rgb.c          |   15 +++++++--------
>>  libswscale/rgb2rgb.h          |    4 ++--
>>  libswscale/swscale_unscaled.c |    4 ++--
>>  4 files changed, 13 insertions(+), 14 deletions(-)
>>
[...]
>> -void rgb48tobgr48_LL(const uint8_t *src, uint8_t *dst, int src_size);
>> -void rgb48tobgr48_LB(const uint8_t *src, uint8_t *dst, int src_size);
>> +void rgb48tobgr48_0(const uint8_t *src, uint8_t *dst, int src_size);
>> +void rgb48tobgr48_1(const uint8_t *src, uint8_t *dst, int src_size);
>
> rgb48tobgr48 and rgb48tobgr48_bswap seem clearer names
> otherwise LGTM

Changed and pushed.


More information about the ffmpeg-devel mailing list