Go to the documentation of this file.
49 buf0_32[
i] =
r << src_shift;
50 buf1_32[
i] =
r << src_shift;
52 buf0[
i] =
r << src_shift;
53 buf1[
i] =
r << src_shift;
60 const char *func_str =
from ?
"lumRangeFromJpeg" :
"lumRangeToJpeg";
61 #define LARGEST_INPUT_SIZE 1920
94 if (memcmp(dst0, dst1,
width * sample_size))
104 #undef LARGEST_INPUT_SIZE
108 const char *func_str =
from ?
"chrRangeFromJpeg" :
"chrRangeToJpeg";
109 #define LARGEST_INPUT_SIZE 1920
145 if (memcmp(dstU0, dstU1,
width * sample_size) ||
146 memcmp(dstV0, dstV1,
width * sample_size))
156 #undef LARGEST_INPUT_SIZE
161 report(
"lumRangeFromJpeg");
163 report(
"chrRangeFromJpeg");
AVPixelFormat
Pixel format.
const AVPixFmtDescriptor * av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
void sws_freeContext(SwsContext *swsContext)
Free the swscaler context swsContext.
#define check_func(func,...)
static void bit_depth(AudioStatsContext *s, const uint64_t *const mask, uint8_t *depth)
av_warn_unused_result int sws_init_context(SwsContext *sws_context, SwsFilter *srcFilter, SwsFilter *dstFilter)
Initialize the swscaler context sws_context.
static void check_chrConvertRange(int from)
#define AV_PIX_FMT_YUV444P10
#define LARGEST_INPUT_SIZE
#define FF_ARRAY_ELEMS(a)
#define AV_PIX_FMT_YUV444P16
static enum AVPixelFormat pix_fmt
static const int input_sizes[]
#define LOCAL_ALIGNED_32(t, v,...)
int src_range
Source is full range.
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
SwsContext * sws_alloc_context(void)
Allocate an empty SwsContext and set its fields to default values.
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
#define AV_PIX_FMT_YUV444P12
int dst_format
Destination pixel format.
static SwsContext * sws[3]
static void randomize_buffers(int16_t *buf0, int16_t *buf1, int bit_depth, int width)
#define i(width, name, range_min, range_max)
void ff_sws_init_scale(SwsInternal *c)
static void check_lumConvertRange(int from)
#define AV_PIX_FMT_YUV444P9
@ 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)
int src_format
Source pixel format.
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...
#define declare_func(ret,...)
int dst_range
Destination is full range.
static SwsInternal * sws_internal(const SwsContext *sws)
#define AV_PIX_FMT_YUV444P14
Main external API structure.
static enum AVPixelFormat pixel_formats[]