34 #define FUNC(s, d, n) { s, d, #n, n }
36 int main(
int argc,
char **argv)
44 if (!srcBuffer || !dstBuffer)
50 for (funcNum = 0; ; funcNum++) {
100 if (!func_info[funcNum].
func)
106 for (width = 63; width > 0; width--) {
108 for (dstOffset = 128; dstOffset < 196; dstOffset += 4) {
112 for (srcOffset = 128; srcOffset < 196; srcOffset += 4) {
114 uint8_t *dst = dstBuffer + dstOffset;
121 srcBpp = func_info[funcNum].src_bpp;
122 dstBpp = func_info[funcNum].dst_bpp;
123 name = func_info[funcNum].name;
125 func_info[funcNum].func(src, dst, width * srcBpp);
130 for (i = 0; i <
SIZE; i++) {
133 "src damaged at %d w:%d src:%d dst:%d %s\n",
134 i, width, srcOffset, dstOffset, name);
139 for (i = 0; i < dstOffset; i++) {
142 "dst damaged at %d w:%d src:%d dst:%d %s\n",
143 i, width, srcOffset, dstOffset, name);
148 for (i = dstOffset + width * dstBpp; i <
SIZE; i++) {
151 "dst damaged at %d w:%d src:%d dst:%d %s\n",
152 i, width, srcOffset, dstOffset, name);
167 "\n%d converters passed, %d converters randomly overwrote memory\n",
168 passedNum, failedNum);
void rgb16tobgr32(const uint8_t *src, uint8_t *dst, int src_size)
void rgb12tobgr12(const uint8_t *src, uint8_t *dst, int src_size)
memory handling functions
void rgb16tobgr16(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb32to16)(const uint8_t *src, uint8_t *dst, int src_size)
void rgb48tobgr48_nobswap(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb16to15)(const uint8_t *src, uint8_t *dst, int src_size)
void rgb16to24(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb15tobgr24)(const uint8_t *src, uint8_t *dst, int src_size)
void rgb64to48_nobswap(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb16to32)(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb24tobgr32)(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb24to15)(const uint8_t *src, uint8_t *dst, int src_size)
av_cold void sws_rgb2rgb_init(void)
void rgb15tobgr16(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb32tobgr15)(const uint8_t *src, uint8_t *dst, int src_size)
typedef void(APIENTRY *FF_PFNGLACTIVETEXTUREPROC)(GLenum texture)
void rgb64tobgr48_nobswap(const uint8_t *src, uint8_t *dst, int src_size)
void rgb12to15(const uint8_t *src, uint8_t *dst, int src_size)
void rgb64tobgr48_bswap(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb15to32)(const uint8_t *src, uint8_t *dst, int src_size)
#define AV_LOG_INFO
Standard information.
void(* rgb15to16)(const uint8_t *src, uint8_t *dst, int src_size)
void rgb32to24(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb32to15)(const uint8_t *src, uint8_t *dst, int src_size)
void(* shuffle_bytes_2103)(const uint8_t *src, uint8_t *dst, int src_size)
int main(int argc, char **argv)
int(* func)(AVBPrint *dst, const char *in, const char *arg)
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 rgb15tobgr15(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb24tobgr16)(const uint8_t *src, uint8_t *dst, int src_size)
void rgb48tobgr48_bswap(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb32tobgr24)(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb24to16)(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb16tobgr24)(const uint8_t *src, uint8_t *dst, int src_size)
void(* rgb32tobgr16)(const uint8_t *src, uint8_t *dst, int src_size)
void rgb15tobgr32(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)
void(* rgb24tobgr24)(const uint8_t *src, uint8_t *dst, int src_size)
void rgb15to24(const uint8_t *src, uint8_t *dst, int src_size)