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
49 const int srcStride[],
int srcSliceY,
int srcSliceH,
50 uint8_t *
const dstParam[],
const int dstStride[]);
54 const uint8_t *
src[4] = { src_y, src_uv };
59 uint8_t *dst0[4] = { dst0_y, dst0_u, dst0_v };
64 uint8_t *dst1[4] = { dst1_y, dst1_u, dst1_v };
70 int src_pix_fmt = src_fmts[sfi];
94 width, srcSliceH, dst_pix_fmt,
110 srcSliceH, dst0, dstStride);
112 srcSliceH, dst1, dstStride);
120 srcSliceH, dst0, dstStride);
common internal and external API header
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
void av_log_set_level(int level)
Set the log level.
int av_log_get_level(void)
Get the current log level.
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.
void sws_freeContext(SwsContext *swsContext)
Free the swscaler context swsContext.
#define LOCAL_ALIGNED_8(t, v,...)
const AVPixFmtDescriptor * av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
@ AV_PIX_FMT_NV42
as above, but U and V bytes are swapped
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
@ 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...
#define FF_ARRAY_ELEMS(a)
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...
uint8_t log2_chroma_w
Amount to shift the luma width right to find the chroma width.
Main external API structure.
static const int input_sizes[]
#define randomize_buffers(buf, size)
static void check_semiplanar(int dst_pix_fmt)
void checkasm_check_sw_yuv2yuv(void)
static SwsInternal * sws_internal(const SwsContext *sws)