4
4
* Software YUV to YUV converter
5
5
* Software YUV to RGB converter
6
6
* Written by Nick Kurshev.
7
* palette & YUV & runtime CPU stuff by Michael (michaelni@gmx.at)
7
* YUV & runtime CPU stuff by Michael (michaelni@gmx.at)
9
9
* This file is part of FFmpeg.
29
29
#include <inttypes.h>
31
#include "libswscale/swscale.h"
32
#include "libavutil/avutil.h"
31
34
/* A full collection of RGB to RGB(BGR) converters */
32
35
extern void (*rgb24tobgr32)(const uint8_t *src, uint8_t *dst, long src_size);
33
36
extern void (*rgb24tobgr16)(const uint8_t *src, uint8_t *dst, long src_size);
66
69
void shuffle_bytes_3012(const uint8_t *src, uint8_t *dst, long src_size);
67
70
void shuffle_bytes_3210(const uint8_t *src, uint8_t *dst, long src_size);
69
void palette8topacked32(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
70
void palette8topacked24(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
71
void palette8torgb16(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
72
void palette8tobgr16(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
73
void palette8torgb15(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
74
void palette8tobgr15(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
72
#if LIBSWSCALE_VERSION_MAJOR < 1
73
/* deprecated, use the public versions in swscale.h */
74
attribute_deprecated void palette8topacked32(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
75
attribute_deprecated void palette8topacked24(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
77
/* totally deprecated, please fix code that uses this */
78
attribute_deprecated void palette8torgb16(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
79
attribute_deprecated void palette8tobgr16(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
77
83
* Height should be a multiple of 2 and width should be a multiple of 16.