Go to the documentation of this file.
33 const char *func_str =
from ?
"lumRangeFromJpeg" :
"lumRangeToJpeg";
34 #define LARGEST_INPUT_SIZE 512
36 static const int input_sizes[] = {8, 24, 128, 144, 256, 512};
57 dst0[
i] = (int16_t)
r << 7;
58 dst1[
i] = (int16_t)
r << 7;
64 if (memcmp(dst0, dst1,
width *
sizeof(int16_t)))
72 #undef LARGEST_INPUT_SIZE
77 const char *func_str =
from ?
"chrRangeFromJpeg" :
"chrRangeToJpeg";
78 #define LARGEST_INPUT_SIZE 512
80 static const int input_sizes[] = {8, 24, 128, 144, 256, 512};
103 dstU0[
i] = (int16_t)
r << 7;
104 dstV0[
i] = (int16_t)
r << 7;
105 dstU1[
i] = (int16_t)
r << 7;
106 dstV1[
i] = (int16_t)
r << 7;
112 if (memcmp(dstU0, dstU1,
width *
sizeof(int16_t)) ||
113 memcmp(dstV0, dstV1,
width *
sizeof(int16_t)))
121 #undef LARGEST_INPUT_SIZE
127 report(
"lumRangeFromJpeg");
129 report(
"chrRangeFromJpeg");
#define check_func(func,...)
static void check_chrConvertRange(int from)
#define LARGEST_INPUT_SIZE
static const int input_sizes[]
@ AV_PIX_FMT_YUVJ444P
planar YUV 4:4:4, 24bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV444P and setting col...
#define LOCAL_ALIGNED_32(t, v,...)
struct SwsContext * sws_alloc_context(void)
Allocate an empty SwsContext.
void ff_sws_init_scale(SwsContext *c)
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
#define i(width, name, range_min, range_max)
static void check_lumConvertRange(int from)
av_warn_unused_result int sws_init_context(struct SwsContext *sws_context, SwsFilter *srcFilter, SwsFilter *dstFilter)
Initialize the swscaler context sws_context.
void sws_freeContext(struct SwsContext *swsContext)
Free the swscaler context swsContext.
@ AV_PIX_FMT_YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
void checkasm_check_sw_range_convert(void)
#define declare_func(ret,...)