Go to the documentation of this file.
35 #define FUNC(s, d, n) { s, d, #n, n }
37 int main(
int argc,
char **argv)
45 if (!srcBuffer || !dstBuffer)
51 for (funcNum = 0; ; funcNum++) {
56 void (*
func)(
const uint8_t *
src, uint8_t *
dst,
int src_size);
101 if (!func_info[funcNum].
func)
109 for (dstOffset = 128; dstOffset < 196; dstOffset += 4) {
113 for (srcOffset = 128; srcOffset < 196; srcOffset += 4) {
114 uint8_t *
src = srcBuffer + srcOffset;
115 uint8_t *
dst = dstBuffer + dstOffset;
122 srcBpp = func_info[funcNum].src_bpp;
123 dstBpp = func_info[funcNum].dst_bpp;
124 name = func_info[funcNum].name;
134 "src damaged at %d w:%d src:%d dst:%d %s\n",
140 for (
i = 0;
i < dstOffset;
i++) {
143 "dst damaged at %d w:%d src:%d dst:%d %s\n",
152 "dst damaged at %d w:%d src:%d dst:%d %s\n",
168 "\n%d converters passed, %d converters randomly overwrote memory\n",
169 passedNum, failedNum);
int(* func)(AVBPrint *dst, const char *in, const char *arg)
void rgb12tobgr12(const uint8_t *src, uint8_t *dst, int src_size)
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default minimum maximum flags name is the option name
void(* rgb32tobgr24)(const uint8_t *src, uint8_t *dst, int src_size)
void rgb15to24(const uint8_t *src, uint8_t *dst, int src_size)
void rgb16tobgr32(const uint8_t *src, uint8_t *dst, int src_size)
void rgb48tobgr48_nobswap(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb32tobgr16)(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb24tobgr16)(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb15to32)(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb32to16)(const uint8_t *src, uint8_t *dst, int src_size)
void rgb16tobgr16(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb16tobgr24)(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb15tobgr24)(const uint8_t *src, uint8_t *dst, int src_size)
void(* shuffle_bytes_2103)(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb32tobgr15)(const uint8_t *src, uint8_t *dst, int src_size)
void rgb16to24(const uint8_t *src, uint8_t *dst, int src_size)
void rgb12to15(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb16to15)(const uint8_t *src, uint8_t *dst, int src_size)
av_cold void ff_sws_rgb2rgb_init(void)
void rgb15tobgr16(const uint8_t *src, uint8_t *dst, int src_size)
void rgb64tobgr48_bswap(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb24tobgr32)(const uint8_t *src, uint8_t *dst, int src_size)
void rgb64to48_nobswap(const uint8_t *src, uint8_t *dst, int src_size)
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
void rgb64tobgr48_nobswap(const uint8_t *src, uint8_t *dst, int src_size)
void rgb32to24(const uint8_t *src, uint8_t *dst, int src_size)
void rgb15tobgr15(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb24to16)(const uint8_t *src, uint8_t *dst, int src_size)
int main(int argc, char **argv)
#define AV_LOG_INFO
Standard information.
#define i(width, name, range_min, range_max)
void(* rgb24to15)(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb32to15)(const uint8_t *src, uint8_t *dst, int src_size)
void rgb48tobgr48_bswap(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb16to32)(const uint8_t *src, uint8_t *dst, int src_size)
void rgb24to32(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb24tobgr15)(const uint8_t *src, uint8_t *dst, int src_size)
void rgb15tobgr32(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb15to16)(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb24tobgr24)(const uint8_t *src, uint8_t *dst, int src_size)
void rgb64to48_bswap(const uint8_t *src, uint8_t *dst, int src_size)
void rgb16tobgr15(const uint8_t *src, uint8_t *dst, int src_size)