Go to the documentation of this file.
31 #define randomize_buffers(buf, size) \
33 for (int j = 0; j < size; j += 4) \
34 AV_WN32(buf + j, rnd()); \
39 static const int src_fmts[] = {
45 #define MAX_LINE_SIZE 1920
50 int srcStride[],
int srcSliceY,
int srcSliceH,
51 uint8_t *
dst[],
int dstStride[]);
55 const uint8_t *
src[4] = { src_y, src_uv };
60 uint8_t *dst0[4] = { dst0_y, dst0_u, dst0_v };
65 uint8_t *dst1[4] = { dst1_y, dst1_u, dst1_v };
71 int src_pix_fmt = src_fmts[sfi];
94 width, srcSliceH, dst_pix_fmt,
109 srcSliceH, dst0, dstStride);
111 srcSliceH, dst1, dstStride);
119 srcSliceH, dst0, dstStride);
static void check_semiplanar(int dst_pix_fmt)
#define declare_func_emms(cpu_flags, ret,...)
#define randomize_buffers(buf, size)
const AVPixFmtDescriptor * av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
#define check_func(func,...)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define FF_ARRAY_ELEMS(a)
void checkasm_check_sw_yuv2yuv(void)
static const int input_sizes[]
uint8_t log2_chroma_w
Amount to shift the luma width right to find the chroma width.
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
#define LOCAL_ALIGNED_8(t, v,...)
int av_log_get_level(void)
Get the current log level.
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
struct SwsContext * sws_getContext(int srcW, int srcH, enum AVPixelFormat srcFormat, int dstW, int dstH, enum AVPixelFormat dstFormat, int flags, SwsFilter *srcFilter, SwsFilter *dstFilter, const double *param)
Allocate and return an SwsContext.
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
void av_log_set_level(int level)
Set the log level.
@ AV_PIX_FMT_NV24
planar YUV 4:4:4, 24bpp, 1 plane for Y and 1 plane for the UV components, which are interleaved (firs...
@ AV_PIX_FMT_NV42
as above, but U and V bytes are swapped
#define AV_CPU_FLAG_MMX
standard MMX
void sws_freeContext(struct SwsContext *swsContext)
Free the swscaler context swsContext.
#define AV_CPU_FLAG_MMXEXT
SSE integer functions or AMD MMX ext.
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...