FFmpeg
Macros | Functions | Variables
output.c File Reference
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "libavutil/attributes.h"
#include "libavutil/avutil.h"
#include "libavutil/avassert.h"
#include "libavutil/bswap.h"
#include "libavutil/cpu.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mathematics.h"
#include "libavutil/mem_internal.h"
#include "libavutil/pixdesc.h"
#include "config.h"
#include "rgb2rgb.h"
#include "swscale.h"
#include "swscale_internal.h"

Go to the source code of this file.

Macros

#define output_pixel(pos, val, bias, signedness)
 
#define yuv2plane1_float(template, dest_type, BE_LE)
 
#define yuv2planeX_float(template, dest_type, BE_LE)
 
#define output_pixel(pos, val)
 
#define yuv2NBPS(bits, BE_LE, is_be, template_size, typeX_t)
 
#define output_pixel(pos, val)
 
#define accumulate_bit(acc, val)
 
#define output_pixel(pos, acc)
 
#define YUV2PACKEDWRAPPER(name, base, ext, fmt)
 
#define output_pixels(pos, Y1, U, Y2, V)
 
#define R_B   ((target == AV_PIX_FMT_RGB48LE || target == AV_PIX_FMT_RGB48BE || target == AV_PIX_FMT_RGBA64LE || target == AV_PIX_FMT_RGBA64BE) ? R : B)
 
#define B_R   ((target == AV_PIX_FMT_RGB48LE || target == AV_PIX_FMT_RGB48BE || target == AV_PIX_FMT_RGBA64LE || target == AV_PIX_FMT_RGBA64BE) ? B : R)
 
#define output_pixel(pos, val)
 
#define YUV2PACKED16WRAPPER(name, base, ext, fmt, hasAlpha, eightbytes)
 
#define r_b   ((target == AV_PIX_FMT_RGB24) ? r : b)
 
#define b_r   ((target == AV_PIX_FMT_RGB24) ? b : r)
 
#define YUV2RGBWRAPPERX(name, base, ext, fmt, hasAlpha)
 
#define YUV2RGBWRAPPERX2(name, base, ext, fmt, hasAlpha)
 
#define YUV2RGBWRAPPER(name, base, ext, fmt, hasAlpha)
 
#define A_DITHER(u, v)   (((((u)+((v)*236))*119)&0xff))
 
#define X_DITHER(u, v)   (((((u)^((v)*237))*181)&0x1ff)/2)
 

Functions

static av_always_inline void yuv2plane1_16_c_template (const int32_t *src, uint16_t *dest, int dstW, int big_endian, int output_bits)
 
static av_always_inline void yuv2planeX_16_c_template (const int16_t *filter, int filterSize, const int32_t **src, uint16_t *dest, int dstW, int big_endian, int output_bits)
 
static void yuv2p016cX_c (enum AVPixelFormat dstFormat, const uint8_t *chrDither, const int16_t *chrFilter, int chrFilterSize, const int16_t **chrUSrc, const int16_t **chrVSrc, uint8_t *dest8, int chrDstW)
 
static av_always_inline void yuv2plane1_float_c_template (const int32_t *src, float *dest, int dstW)
 
static av_always_inline void yuv2plane1_float_bswap_c_template (const int32_t *src, uint32_t *dest, int dstW)
 
static av_always_inline void yuv2planeX_float_c_template (const int16_t *filter, int filterSize, const int32_t **src, float *dest, int dstW)
 
static av_always_inline void yuv2planeX_float_bswap_c_template (const int16_t *filter, int filterSize, const int32_t **src, uint32_t *dest, int dstW)
 
 yuv2plane1_float (yuv2plane1_float_c_template, yuv2plane1_float(float, LE)
 
static av_always_inline void yuv2planeX_10_c_template (const int16_t *filter, int filterSize, const int16_t **src, uint16_t *dest, int dstW, int big_endian, int output_bits)
 
 yuv2NBPS (yuv2NBPS(9, yuv2NBPS(BE, yuv2NBPS(1, yuv2NBPS(10, int16_t)
 
static void yuv2plane1_8_c (const int16_t *src, uint8_t *dest, int dstW, const uint8_t *dither, int offset)
 
static void yuv2nv12cX_c (enum AVPixelFormat dstFormat, const uint8_t *chrDither, const int16_t *chrFilter, int chrFilterSize, const int16_t **chrUSrc, const int16_t **chrVSrc, uint8_t *dest, int chrDstW)
 
static void yuv2p010l1_c (const int16_t *src, uint16_t *dest, int dstW, int big_endian)
 
static void yuv2p010lX_c (const int16_t *filter, int filterSize, const int16_t **src, uint16_t *dest, int dstW, int big_endian)
 
static void yuv2p010cX_c (enum AVPixelFormat dstFormat, const uint8_t *chrDither, const int16_t *chrFilter, int chrFilterSize, const int16_t **chrUSrc, const int16_t **chrVSrc, uint8_t *dest8, int chrDstW)
 
static void yuv2p010l1_LE_c (const int16_t *src, uint8_t *dest, int dstW, const uint8_t *dither, int offset)
 
static void yuv2p010l1_BE_c (const int16_t *src, uint8_t *dest, int dstW, const uint8_t *dither, int offset)
 
static void yuv2p010lX_LE_c (const int16_t *filter, int filterSize, const int16_t **src, uint8_t *dest, int dstW, const uint8_t *dither, int offset)
 
static void yuv2p010lX_BE_c (const int16_t *filter, int filterSize, const int16_t **src, uint8_t *dest, int dstW, const uint8_t *dither, int offset)
 
static av_always_inline void yuv2mono_X_c_template (SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrUSrc, const int16_t **chrVSrc, int chrFilterSize, const int16_t **alpSrc, uint8_t *dest, int dstW, int y, enum AVPixelFormat target)
 
static av_always_inline void yuv2mono_2_c_template (SwsContext *c, const int16_t *buf[2], const int16_t *ubuf[2], const int16_t *vbuf[2], const int16_t *abuf[2], uint8_t *dest, int dstW, int yalpha, int uvalpha, int y, enum AVPixelFormat target)
 
static av_always_inline void yuv2mono_1_c_template (SwsContext *c, const int16_t *buf0, const int16_t *ubuf[2], const int16_t *vbuf[2], const int16_t *abuf0, uint8_t *dest, int dstW, int uvalpha, int y, enum AVPixelFormat target)
 
static av_always_inline void yuv2422_X_c_template (SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrUSrc, const int16_t **chrVSrc, int chrFilterSize, const int16_t **alpSrc, uint8_t *dest, int dstW, int y, enum AVPixelFormat target)
 
static av_always_inline void yuv2422_2_c_template (SwsContext *c, const int16_t *buf[2], const int16_t *ubuf[2], const int16_t *vbuf[2], const int16_t *abuf[2], uint8_t *dest, int dstW, int yalpha, int uvalpha, int y, enum AVPixelFormat target)
 
static av_always_inline void yuv2422_1_c_template (SwsContext *c, const int16_t *buf0, const int16_t *ubuf[2], const int16_t *vbuf[2], const int16_t *abuf0, uint8_t *dest, int dstW, int uvalpha, int y, enum AVPixelFormat target)
 
static av_always_inline void yuv2ya16_X_c_template (SwsContext *c, const int16_t *lumFilter, const int32_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int32_t **unused_chrUSrc, const int32_t **unused_chrVSrc, int unused_chrFilterSize, const int32_t **alpSrc, uint16_t *dest, int dstW, int y, enum AVPixelFormat target, int unused_hasAlpha, int unused_eightbytes)
 
static av_always_inline void yuv2ya16_2_c_template (SwsContext *c, const int32_t *buf[2], const int32_t *unused_ubuf[2], const int32_t *unused_vbuf[2], const int32_t *abuf[2], uint16_t *dest, int dstW, int yalpha, int unused_uvalpha, int y, enum AVPixelFormat target, int unused_hasAlpha, int unused_eightbytes)
 
static av_always_inline void yuv2ya16_1_c_template (SwsContext *c, const int32_t *buf0, const int32_t *unused_ubuf[2], const int32_t *unused_vbuf[2], const int32_t *abuf0, uint16_t *dest, int dstW, int unused_uvalpha, int y, enum AVPixelFormat target, int unused_hasAlpha, int unused_eightbytes)
 
static av_always_inline void yuv2rgba64_X_c_template (SwsContext *c, const int16_t *lumFilter, const int32_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int32_t **chrUSrc, const int32_t **chrVSrc, int chrFilterSize, const int32_t **alpSrc, uint16_t *dest, int dstW, int y, enum AVPixelFormat target, int hasAlpha, int eightbytes)
 
static av_always_inline void yuv2rgba64_2_c_template (SwsContext *c, const int32_t *buf[2], const int32_t *ubuf[2], const int32_t *vbuf[2], const int32_t *abuf[2], uint16_t *dest, int dstW, int yalpha, int uvalpha, int y, enum AVPixelFormat target, int hasAlpha, int eightbytes)
 
static av_always_inline void yuv2rgba64_1_c_template (SwsContext *c, const int32_t *buf0, const int32_t *ubuf[2], const int32_t *vbuf[2], const int32_t *abuf0, uint16_t *dest, int dstW, int uvalpha, int y, enum AVPixelFormat target, int hasAlpha, int eightbytes)
 
static av_always_inline void yuv2rgba64_full_X_c_template (SwsContext *c, const int16_t *lumFilter, const int32_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int32_t **chrUSrc, const int32_t **chrVSrc, int chrFilterSize, const int32_t **alpSrc, uint16_t *dest, int dstW, int y, enum AVPixelFormat target, int hasAlpha, int eightbytes)
 
static av_always_inline void yuv2rgba64_full_2_c_template (SwsContext *c, const int32_t *buf[2], const int32_t *ubuf[2], const int32_t *vbuf[2], const int32_t *abuf[2], uint16_t *dest, int dstW, int yalpha, int uvalpha, int y, enum AVPixelFormat target, int hasAlpha, int eightbytes)
 
static av_always_inline void yuv2rgba64_full_1_c_template (SwsContext *c, const int32_t *buf0, const int32_t *ubuf[2], const int32_t *vbuf[2], const int32_t *abuf0, uint16_t *dest, int dstW, int uvalpha, int y, enum AVPixelFormat target, int hasAlpha, int eightbytes)
 
static av_always_inline void yuv2rgb_write (uint8_t *_dest, int i, int Y1, int Y2, unsigned A1, unsigned A2, const void *_r, const void *_g, const void *_b, int y, enum AVPixelFormat target, int hasAlpha)
 
static av_always_inline void yuv2rgb_X_c_template (SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrUSrc, const int16_t **chrVSrc, int chrFilterSize, const int16_t **alpSrc, uint8_t *dest, int dstW, int y, enum AVPixelFormat target, int hasAlpha)
 
static av_always_inline void yuv2rgb_2_c_template (SwsContext *c, const int16_t *buf[2], const int16_t *ubuf[2], const int16_t *vbuf[2], const int16_t *abuf[2], uint8_t *dest, int dstW, int yalpha, int uvalpha, int y, enum AVPixelFormat target, int hasAlpha)
 
static av_always_inline void yuv2rgb_1_c_template (SwsContext *c, const int16_t *buf0, const int16_t *ubuf[2], const int16_t *vbuf[2], const int16_t *abuf0, uint8_t *dest, int dstW, int uvalpha, int y, enum AVPixelFormat target, int hasAlpha)
 
static av_always_inline void yuv2rgb_write_full (SwsContext *c, uint8_t *dest, int i, int Y, int A, int U, int V, int y, enum AVPixelFormat target, int hasAlpha, int err[4])
 
static av_always_inline void yuv2rgb_full_X_c_template (SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrUSrc, const int16_t **chrVSrc, int chrFilterSize, const int16_t **alpSrc, uint8_t *dest, int dstW, int y, enum AVPixelFormat target, int hasAlpha)
 
static av_always_inline void yuv2rgb_full_2_c_template (SwsContext *c, const int16_t *buf[2], const int16_t *ubuf[2], const int16_t *vbuf[2], const int16_t *abuf[2], uint8_t *dest, int dstW, int yalpha, int uvalpha, int y, enum AVPixelFormat target, int hasAlpha)
 
static av_always_inline void yuv2rgb_full_1_c_template (SwsContext *c, const int16_t *buf0, const int16_t *ubuf[2], const int16_t *vbuf[2], const int16_t *abuf0, uint8_t *dest, int dstW, int uvalpha, int y, enum AVPixelFormat target, int hasAlpha)
 
static void yuv2gbrp_full_X_c (SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrUSrc, const int16_t **chrVSrc, int chrFilterSize, const int16_t **alpSrc, uint8_t **dest, int dstW, int y)
 
static void yuv2gbrp16_full_X_c (SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrcx, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrUSrcx, const int16_t **chrVSrcx, int chrFilterSize, const int16_t **alpSrcx, uint8_t **dest, int dstW, int y)
 
static void yuv2gbrpf32_full_X_c (SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrcx, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrUSrcx, const int16_t **chrVSrcx, int chrFilterSize, const int16_t **alpSrcx, uint8_t **dest, int dstW, int y)
 
static void yuv2ya8_1_c (SwsContext *c, const int16_t *buf0, const int16_t *ubuf[2], const int16_t *vbuf[2], const int16_t *abuf0, uint8_t *dest, int dstW, int uvalpha, int y)
 
static void yuv2ya8_2_c (SwsContext *c, const int16_t *buf[2], const int16_t *ubuf[2], const int16_t *vbuf[2], const int16_t *abuf[2], uint8_t *dest, int dstW, int yalpha, int uvalpha, int y)
 
static void yuv2ya8_X_c (SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrUSrc, const int16_t **chrVSrc, int chrFilterSize, const int16_t **alpSrc, uint8_t *dest, int dstW, int y)
 
static void yuv2ayuv64le_X_c (SwsContext *c, const int16_t *lumFilter, const int16_t **_lumSrc, int lumFilterSize, const int16_t *chrFilter, const int16_t **_chrUSrc, const int16_t **_chrVSrc, int chrFilterSize, const int16_t **_alpSrc, uint8_t *dest, int dstW, int y)
 
av_cold void ff_sws_init_output_funcs (SwsContext *c, yuv2planar1_fn *yuv2plane1, yuv2planarX_fn *yuv2planeX, yuv2interleavedX_fn *yuv2nv12cX, yuv2packed1_fn *yuv2packed1, yuv2packed2_fn *yuv2packed2, yuv2packedX_fn *yuv2packedX, yuv2anyX_fn *yuv2anyX)
 

Variables

const uint8_t ff_dither_2x2_4 [][8]
 
const uint8_t ff_dither_2x2_8 [][8]
 
const uint8_t ff_dither_4x4_16 [][8]
 
const uint8_t ff_dither_8x8_32 [][8]
 
const uint8_t ff_dither_8x8_73 [][8]
 
const uint8_t ff_dither_8x8_220 [][8]
 

Macro Definition Documentation

◆ output_pixel [1/5]

#define output_pixel (   pos,
  val,
  bias,
  signedness 
)
Value:
if (big_endian) { \
AV_WB16(pos, bias + av_clip_ ## signedness ## 16(val >> shift)); \
} else { \
AV_WL16(pos, bias + av_clip_ ## signedness ## 16(val >> shift)); \
}

Definition at line 889 of file output.c.

◆ yuv2plane1_float

#define yuv2plane1_float (   template,
  dest_type,
  BE_LE 
)
Value:
static void yuv2plane1_float ## BE_LE ## _c(const int16_t *src, uint8_t *dest, int dstW, \
const uint8_t *dither, int offset) \
{ \
template((const int32_t *)src, (dest_type *)dest, dstW); \
}

Definition at line 285 of file output.c.

◆ yuv2planeX_float

#define yuv2planeX_float (   template,
  dest_type,
  BE_LE 
)
Value:
static void yuv2planeX_float ## BE_LE ## _c(const int16_t *filter, int filterSize, \
const int16_t **src, uint8_t *dest, int dstW, \
const uint8_t *dither, int offset) \
{ \
template(filter, filterSize, (const int32_t **)src, (dest_type *)dest, dstW); \
}

Definition at line 292 of file output.c.

◆ output_pixel [2/5]

#define output_pixel (   pos,
  val 
)
Value:
if (big_endian) { \
AV_WB16(pos, av_clip_uintp2(val >> shift, output_bits)); \
} else { \
AV_WL16(pos, av_clip_uintp2(val >> shift, output_bits)); \
}

Definition at line 889 of file output.c.

◆ yuv2NBPS

#define yuv2NBPS (   bits,
  BE_LE,
  is_be,
  template_size,
  typeX_t 
)
Value:
static void yuv2plane1_ ## bits ## BE_LE ## _c(const int16_t *src, \
uint8_t *dest, int dstW, \
const uint8_t *dither, int offset)\
{ \
yuv2plane1_ ## template_size ## _c_template((const typeX_t *) src, \
(uint16_t *) dest, dstW, is_be, bits); \
}\
static void yuv2planeX_ ## bits ## BE_LE ## _c(const int16_t *filter, int filterSize, \
const int16_t **src, uint8_t *dest, int dstW, \
const uint8_t *dither, int offset)\
{ \
yuv2planeX_## template_size ## _c_template(filter, \
filterSize, (const typeX_t **) src, \
(uint16_t *) dest, dstW, is_be, bits); \
}

Definition at line 355 of file output.c.

◆ output_pixel [3/5]

#define output_pixel (   pos,
  val 
)
Value:
if (big_endian) { \
AV_WB16(pos, av_clip_uintp2(val >> shift, 10) << 6); \
} else { \
AV_WL16(pos, av_clip_uintp2(val >> shift, 10) << 6); \
}

Definition at line 889 of file output.c.

◆ accumulate_bit

#define accumulate_bit (   acc,
  val 
)
Value:
acc <<= 1; \
acc |= (val) >= 234

Definition at line 536 of file output.c.

◆ output_pixel [4/5]

#define output_pixel (   pos,
  acc 
)
Value:
if (target == AV_PIX_FMT_MONOBLACK) { \
pos = acc; \
} else { \
pos = ~acc; \
}

Definition at line 889 of file output.c.

◆ YUV2PACKEDWRAPPER

#define YUV2PACKEDWRAPPER (   name,
  base,
  ext,
  fmt 
)
Value:
static void name ## ext ## _X_c(SwsContext *c, const int16_t *lumFilter, \
const int16_t **lumSrc, int lumFilterSize, \
const int16_t *chrFilter, const int16_t **chrUSrc, \
const int16_t **chrVSrc, int chrFilterSize, \
const int16_t **alpSrc, uint8_t *dest, int dstW, \
int y) \
{ \
name ## base ## _X_c_template(c, lumFilter, lumSrc, lumFilterSize, \
chrFilter, chrUSrc, chrVSrc, chrFilterSize, \
alpSrc, dest, dstW, y, fmt); \
} \
\
static void name ## ext ## _2_c(SwsContext *c, const int16_t *buf[2], \
const int16_t *ubuf[2], const int16_t *vbuf[2], \
const int16_t *abuf[2], uint8_t *dest, int dstW, \
int yalpha, int uvalpha, int y) \
{ \
name ## base ## _2_c_template(c, buf, ubuf, vbuf, abuf, \
dest, dstW, yalpha, uvalpha, y, fmt); \
} \
\
static void name ## ext ## _1_c(SwsContext *c, const int16_t *buf0, \
const int16_t *ubuf[2], const int16_t *vbuf[2], \
const int16_t *abuf0, uint8_t *dest, int dstW, \
int uvalpha, int y) \
{ \
name ## base ## _1_c_template(c, buf0, ubuf, vbuf, \
abuf0, dest, dstW, uvalpha, \
y, fmt); \
}

Definition at line 711 of file output.c.

◆ output_pixels

#define output_pixels (   pos,
  Y1,
  U,
  Y2,
  V 
)
Value:
if (target == AV_PIX_FMT_YUYV422) { \
dest[pos + 0] = Y1; \
dest[pos + 1] = U; \
dest[pos + 2] = Y2; \
dest[pos + 3] = V; \
} else if (target == AV_PIX_FMT_YVYU422) { \
dest[pos + 0] = Y1; \
dest[pos + 1] = V; \
dest[pos + 2] = Y2; \
dest[pos + 3] = U; \
} else { /* AV_PIX_FMT_UYVY422 */ \
dest[pos + 0] = U; \
dest[pos + 1] = Y1; \
dest[pos + 2] = V; \
dest[pos + 3] = Y2; \
}

Definition at line 746 of file output.c.

◆ R_B

#define R_B   ((target == AV_PIX_FMT_RGB48LE || target == AV_PIX_FMT_RGB48BE || target == AV_PIX_FMT_RGBA64LE || target == AV_PIX_FMT_RGBA64BE) ? R : B)

Definition at line 887 of file output.c.

◆ B_R

#define B_R   ((target == AV_PIX_FMT_RGB48LE || target == AV_PIX_FMT_RGB48BE || target == AV_PIX_FMT_RGBA64LE || target == AV_PIX_FMT_RGBA64BE) ? B : R)

Definition at line 888 of file output.c.

◆ output_pixel [5/5]

#define output_pixel (   pos,
  val 
)
Value:
if (isBE(target)) { \
AV_WB16(pos, val); \
} else { \
AV_WL16(pos, val); \
}

Definition at line 889 of file output.c.

◆ YUV2PACKED16WRAPPER

#define YUV2PACKED16WRAPPER (   name,
  base,
  ext,
  fmt,
  hasAlpha,
  eightbytes 
)

Definition at line 1439 of file output.c.

◆ r_b

#define r_b   ((target == AV_PIX_FMT_RGB24) ? r : b)

◆ b_r

#define b_r   ((target == AV_PIX_FMT_RGB24) ? b : r)

◆ YUV2RGBWRAPPERX

#define YUV2RGBWRAPPERX (   name,
  base,
  ext,
  fmt,
  hasAlpha 
)
Value:
static void name ## ext ## _X_c(SwsContext *c, const int16_t *lumFilter, \
const int16_t **lumSrc, int lumFilterSize, \
const int16_t *chrFilter, const int16_t **chrUSrc, \
const int16_t **chrVSrc, int chrFilterSize, \
const int16_t **alpSrc, uint8_t *dest, int dstW, \
int y) \
{ \
name ## base ## _X_c_template(c, lumFilter, lumSrc, lumFilterSize, \
chrFilter, chrUSrc, chrVSrc, chrFilterSize, \
alpSrc, dest, dstW, y, fmt, hasAlpha); \
}

Definition at line 1797 of file output.c.

◆ YUV2RGBWRAPPERX2

#define YUV2RGBWRAPPERX2 (   name,
  base,
  ext,
  fmt,
  hasAlpha 
)
Value:
YUV2RGBWRAPPERX(name, base, ext, fmt, hasAlpha) \
static void name ## ext ## _2_c(SwsContext *c, const int16_t *buf[2], \
const int16_t *ubuf[2], const int16_t *vbuf[2], \
const int16_t *abuf[2], uint8_t *dest, int dstW, \
int yalpha, int uvalpha, int y) \
{ \
name ## base ## _2_c_template(c, buf, ubuf, vbuf, abuf, \
dest, dstW, yalpha, uvalpha, y, fmt, hasAlpha); \
}

Definition at line 1810 of file output.c.

◆ YUV2RGBWRAPPER

#define YUV2RGBWRAPPER (   name,
  base,
  ext,
  fmt,
  hasAlpha 
)
Value:
YUV2RGBWRAPPERX2(name, base, ext, fmt, hasAlpha) \
static void name ## ext ## _1_c(SwsContext *c, const int16_t *buf0, \
const int16_t *ubuf[2], const int16_t *vbuf[2], \
const int16_t *abuf0, uint8_t *dest, int dstW, \
int uvalpha, int y) \
{ \
name ## base ## _1_c_template(c, buf0, ubuf, vbuf, abuf0, dest, \
dstW, uvalpha, y, fmt, hasAlpha); \
}

Definition at line 1821 of file output.c.

◆ A_DITHER

#define A_DITHER (   u,
 
)    (((((u)+((v)*236))*119)&0xff))

◆ X_DITHER

#define X_DITHER (   u,
 
)    (((((u)^((v)*237))*181)&0x1ff)/2)

Function Documentation

◆ yuv2plane1_16_c_template()

static av_always_inline void yuv2plane1_16_c_template ( const int32_t src,
uint16_t *  dest,
int  dstW,
int  big_endian,
int  output_bits 
)
static

Definition at line 145 of file output.c.

◆ yuv2planeX_16_c_template()

static av_always_inline void yuv2planeX_16_c_template ( const int16_t *  filter,
int  filterSize,
const int32_t **  src,
uint16_t *  dest,
int  dstW,
int  big_endian,
int  output_bits 
)
static

Definition at line 159 of file output.c.

◆ yuv2p016cX_c()

static void yuv2p016cX_c ( enum AVPixelFormat  dstFormat,
const uint8_t chrDither,
const int16_t *  chrFilter,
int  chrFilterSize,
const int16_t **  chrUSrc,
const int16_t **  chrVSrc,
uint8_t dest8,
int  chrDstW 
)
static

Definition at line 184 of file output.c.

Referenced by ff_sws_init_output_funcs().

◆ yuv2plane1_float_c_template()

static av_always_inline void yuv2plane1_float_c_template ( const int32_t src,
float *  dest,
int  dstW 
)
static

Definition at line 214 of file output.c.

◆ yuv2plane1_float_bswap_c_template()

static av_always_inline void yuv2plane1_float_bswap_c_template ( const int32_t src,
uint32_t *  dest,
int  dstW 
)
static

Definition at line 230 of file output.c.

◆ yuv2planeX_float_c_template()

static av_always_inline void yuv2planeX_float_c_template ( const int16_t *  filter,
int  filterSize,
const int32_t **  src,
float *  dest,
int  dstW 
)
static

Definition at line 246 of file output.c.

◆ yuv2planeX_float_bswap_c_template()

static av_always_inline void yuv2planeX_float_bswap_c_template ( const int16_t *  filter,
int  filterSize,
const int32_t **  src,
uint32_t *  dest,
int  dstW 
)
static

Definition at line 266 of file output.c.

◆ yuv2plane1_float()

yuv2plane1_float ( yuv2plane1_float_c_template  ,
yuv2plane1_float(  float,
LE   
)

Definition at line 306 of file output.c.

◆ yuv2planeX_10_c_template()

static av_always_inline void yuv2planeX_10_c_template ( const int16_t *  filter,
int  filterSize,
const int16_t **  src,
uint16_t *  dest,
int  dstW,
int  big_endian,
int  output_bits 
)
static

Definition at line 335 of file output.c.

◆ yuv2NBPS()

yuv2NBPS ( yuv2NBPS(  9,
yuv2NBPS(  BE,
yuv2NBPS(  1,
yuv2NBPS(  10,
int16_t   
)

Definition at line 371 of file output.c.

◆ yuv2plane1_8_c()

static void yuv2plane1_8_c ( const int16_t *  src,
uint8_t dest,
int  dstW,
const uint8_t dither,
int  offset 
)
static

Definition at line 397 of file output.c.

Referenced by ff_sws_init_output_funcs().

◆ yuv2nv12cX_c()

static void yuv2nv12cX_c ( enum AVPixelFormat  dstFormat,
const uint8_t chrDither,
const int16_t *  chrFilter,
int  chrFilterSize,
const int16_t **  chrUSrc,
const int16_t **  chrVSrc,
uint8_t dest,
int  chrDstW 
)
static

Definition at line 407 of file output.c.

Referenced by ff_sws_init_output_funcs().

◆ yuv2p010l1_c()

static void yuv2p010l1_c ( const int16_t *  src,
uint16_t *  dest,
int  dstW,
int  big_endian 
)
static

Definition at line 451 of file output.c.

Referenced by yuv2p010l1_BE_c(), and yuv2p010l1_LE_c().

◆ yuv2p010lX_c()

static void yuv2p010lX_c ( const int16_t *  filter,
int  filterSize,
const int16_t **  src,
uint16_t *  dest,
int  dstW,
int  big_endian 
)
static

Definition at line 464 of file output.c.

Referenced by yuv2p010lX_BE_c(), and yuv2p010lX_LE_c().

◆ yuv2p010cX_c()

static void yuv2p010cX_c ( enum AVPixelFormat  dstFormat,
const uint8_t chrDither,
const int16_t *  chrFilter,
int  chrFilterSize,
const int16_t **  chrUSrc,
const int16_t **  chrVSrc,
uint8_t dest8,
int  chrDstW 
)
static

Definition at line 481 of file output.c.

Referenced by ff_sws_init_output_funcs().

◆ yuv2p010l1_LE_c()

static void yuv2p010l1_LE_c ( const int16_t *  src,
uint8_t dest,
int  dstW,
const uint8_t dither,
int  offset 
)
static

Definition at line 505 of file output.c.

Referenced by ff_sws_init_output_funcs().

◆ yuv2p010l1_BE_c()

static void yuv2p010l1_BE_c ( const int16_t *  src,
uint8_t dest,
int  dstW,
const uint8_t dither,
int  offset 
)
static

Definition at line 512 of file output.c.

Referenced by ff_sws_init_output_funcs().

◆ yuv2p010lX_LE_c()

static void yuv2p010lX_LE_c ( const int16_t *  filter,
int  filterSize,
const int16_t **  src,
uint8_t dest,
int  dstW,
const uint8_t dither,
int  offset 
)
static

Definition at line 519 of file output.c.

Referenced by ff_sws_init_output_funcs().

◆ yuv2p010lX_BE_c()

static void yuv2p010lX_BE_c ( const int16_t *  filter,
int  filterSize,
const int16_t **  src,
uint8_t dest,
int  dstW,
const uint8_t dither,
int  offset 
)
static

Definition at line 526 of file output.c.

Referenced by ff_sws_init_output_funcs().

◆ yuv2mono_X_c_template()

static av_always_inline void yuv2mono_X_c_template ( SwsContext c,
const int16_t *  lumFilter,
const int16_t **  lumSrc,
int  lumFilterSize,
const int16_t *  chrFilter,
const int16_t **  chrUSrc,
const int16_t **  chrVSrc,
int  chrFilterSize,
const int16_t **  alpSrc,
uint8_t dest,
int  dstW,
int  y,
enum AVPixelFormat  target 
)
static

Definition at line 547 of file output.c.

◆ yuv2mono_2_c_template()

static av_always_inline void yuv2mono_2_c_template ( SwsContext c,
const int16_t *  buf[2],
const int16_t *  ubuf[2],
const int16_t *  vbuf[2],
const int16_t *  abuf[2],
uint8_t dest,
int  dstW,
int  yalpha,
int  uvalpha,
int  y,
enum AVPixelFormat  target 
)
static

Definition at line 600 of file output.c.

◆ yuv2mono_1_c_template()

static av_always_inline void yuv2mono_1_c_template ( SwsContext c,
const int16_t *  buf0,
const int16_t *  ubuf[2],
const int16_t *  vbuf[2],
const int16_t *  abuf0,
uint8_t dest,
int  dstW,
int  uvalpha,
int  y,
enum AVPixelFormat  target 
)
static

Definition at line 661 of file output.c.

◆ yuv2422_X_c_template()

static av_always_inline void yuv2422_X_c_template ( SwsContext c,
const int16_t *  lumFilter,
const int16_t **  lumSrc,
int  lumFilterSize,
const int16_t *  chrFilter,
const int16_t **  chrUSrc,
const int16_t **  chrVSrc,
int  chrFilterSize,
const int16_t **  alpSrc,
uint8_t dest,
int  dstW,
int  y,
enum AVPixelFormat  target 
)
static

Definition at line 765 of file output.c.

◆ yuv2422_2_c_template()

static av_always_inline void yuv2422_2_c_template ( SwsContext c,
const int16_t *  buf[2],
const int16_t *  ubuf[2],
const int16_t *  vbuf[2],
const int16_t *  abuf[2],
uint8_t dest,
int  dstW,
int  yalpha,
int  uvalpha,
int  y,
enum AVPixelFormat  target 
)
static

Definition at line 804 of file output.c.

◆ yuv2422_1_c_template()

static av_always_inline void yuv2422_1_c_template ( SwsContext c,
const int16_t *  buf0,
const int16_t *  ubuf[2],
const int16_t *  vbuf[2],
const int16_t *  abuf0,
uint8_t dest,
int  dstW,
int  uvalpha,
int  y,
enum AVPixelFormat  target 
)
static

Definition at line 837 of file output.c.

◆ yuv2ya16_X_c_template()

static av_always_inline void yuv2ya16_X_c_template ( SwsContext c,
const int16_t *  lumFilter,
const int32_t **  lumSrc,
int  lumFilterSize,
const int16_t *  chrFilter,
const int32_t **  unused_chrUSrc,
const int32_t **  unused_chrVSrc,
int  unused_chrFilterSize,
const int32_t **  alpSrc,
uint16_t *  dest,
int  dstW,
int  y,
enum AVPixelFormat  target,
int  unused_hasAlpha,
int  unused_eightbytes 
)
static

Definition at line 897 of file output.c.

◆ yuv2ya16_2_c_template()

static av_always_inline void yuv2ya16_2_c_template ( SwsContext c,
const int32_t buf[2],
const int32_t unused_ubuf[2],
const int32_t unused_vbuf[2],
const int32_t abuf[2],
uint16_t *  dest,
int  dstW,
int  yalpha,
int  unused_uvalpha,
int  y,
enum AVPixelFormat  target,
int  unused_hasAlpha,
int  unused_eightbytes 
)
static

Definition at line 935 of file output.c.

◆ yuv2ya16_1_c_template()

static av_always_inline void yuv2ya16_1_c_template ( SwsContext c,
const int32_t buf0,
const int32_t unused_ubuf[2],
const int32_t unused_vbuf[2],
const int32_t abuf0,
uint16_t *  dest,
int  dstW,
int  unused_uvalpha,
int  y,
enum AVPixelFormat  target,
int  unused_hasAlpha,
int  unused_eightbytes 
)
static

Definition at line 967 of file output.c.

◆ yuv2rgba64_X_c_template()

static av_always_inline void yuv2rgba64_X_c_template ( SwsContext c,
const int16_t *  lumFilter,
const int32_t **  lumSrc,
int  lumFilterSize,
const int16_t *  chrFilter,
const int32_t **  chrUSrc,
const int32_t **  chrVSrc,
int  chrFilterSize,
const int32_t **  alpSrc,
uint16_t *  dest,
int  dstW,
int  y,
enum AVPixelFormat  target,
int  hasAlpha,
int  eightbytes 
)
static

Definition at line 993 of file output.c.

◆ yuv2rgba64_2_c_template()

static av_always_inline void yuv2rgba64_2_c_template ( SwsContext c,
const int32_t buf[2],
const int32_t ubuf[2],
const int32_t vbuf[2],
const int32_t abuf[2],
uint16_t *  dest,
int  dstW,
int  yalpha,
int  uvalpha,
int  y,
enum AVPixelFormat  target,
int  hasAlpha,
int  eightbytes 
)
static

Definition at line 1075 of file output.c.

◆ yuv2rgba64_1_c_template()

static av_always_inline void yuv2rgba64_1_c_template ( SwsContext c,
const int32_t buf0,
const int32_t ubuf[2],
const int32_t vbuf[2],
const int32_t abuf0,
uint16_t *  dest,
int  dstW,
int  uvalpha,
int  y,
enum AVPixelFormat  target,
int  hasAlpha,
int  eightbytes 
)
static

Definition at line 1140 of file output.c.

◆ yuv2rgba64_full_X_c_template()

static av_always_inline void yuv2rgba64_full_X_c_template ( SwsContext c,
const int16_t *  lumFilter,
const int32_t **  lumSrc,
int  lumFilterSize,
const int16_t *  chrFilter,
const int32_t **  chrUSrc,
const int32_t **  chrVSrc,
int  chrFilterSize,
const int32_t **  alpSrc,
uint16_t *  dest,
int  dstW,
int  y,
enum AVPixelFormat  target,
int  hasAlpha,
int  eightbytes 
)
static

Definition at line 1243 of file output.c.

◆ yuv2rgba64_full_2_c_template()

static av_always_inline void yuv2rgba64_full_2_c_template ( SwsContext c,
const int32_t buf[2],
const int32_t ubuf[2],
const int32_t vbuf[2],
const int32_t abuf[2],
uint16_t *  dest,
int  dstW,
int  yalpha,
int  uvalpha,
int  y,
enum AVPixelFormat  target,
int  hasAlpha,
int  eightbytes 
)
static

Definition at line 1307 of file output.c.

◆ yuv2rgba64_full_1_c_template()

static av_always_inline void yuv2rgba64_full_1_c_template ( SwsContext c,
const int32_t buf0,
const int32_t ubuf[2],
const int32_t vbuf[2],
const int32_t abuf0,
uint16_t *  dest,
int  dstW,
int  uvalpha,
int  y,
enum AVPixelFormat  target,
int  hasAlpha,
int  eightbytes 
)
static

Definition at line 1359 of file output.c.

◆ yuv2rgb_write()

static av_always_inline void yuv2rgb_write ( uint8_t _dest,
int  i,
int  Y1,
int  Y2,
unsigned  A1,
unsigned  A2,
const void *  _r,
const void *  _g,
const void *  _b,
int  y,
enum AVPixelFormat  target,
int  hasAlpha 
)
static

Definition at line 1522 of file output.c.

Referenced by yuv2rgb_1_c_template(), yuv2rgb_2_c_template(), and yuv2rgb_X_c_template().

◆ yuv2rgb_X_c_template()

static av_always_inline void yuv2rgb_X_c_template ( SwsContext c,
const int16_t *  lumFilter,
const int16_t **  lumSrc,
int  lumFilterSize,
const int16_t *  chrFilter,
const int16_t **  chrUSrc,
const int16_t **  chrVSrc,
int  chrFilterSize,
const int16_t **  alpSrc,
uint8_t dest,
int  dstW,
int  y,
enum AVPixelFormat  target,
int  hasAlpha 
)
static

Definition at line 1648 of file output.c.

◆ yuv2rgb_2_c_template()

static av_always_inline void yuv2rgb_2_c_template ( SwsContext c,
const int16_t *  buf[2],
const int16_t *  ubuf[2],
const int16_t *  vbuf[2],
const int16_t *  abuf[2],
uint8_t dest,
int  dstW,
int  yalpha,
int  uvalpha,
int  y,
enum AVPixelFormat  target,
int  hasAlpha 
)
static

Definition at line 1702 of file output.c.

◆ yuv2rgb_1_c_template()

static av_always_inline void yuv2rgb_1_c_template ( SwsContext c,
const int16_t *  buf0,
const int16_t *  ubuf[2],
const int16_t *  vbuf[2],
const int16_t *  abuf0,
uint8_t dest,
int  dstW,
int  uvalpha,
int  y,
enum AVPixelFormat  target,
int  hasAlpha 
)
static

Definition at line 1742 of file output.c.

◆ yuv2rgb_write_full()

static av_always_inline void yuv2rgb_write_full ( SwsContext c,
uint8_t dest,
int  i,
int  Y,
int  A,
int  U,
int  V,
int  y,
enum AVPixelFormat  target,
int  hasAlpha,
int  err[4] 
)
static

◆ yuv2rgb_full_X_c_template()

static av_always_inline void yuv2rgb_full_X_c_template ( SwsContext c,
const int16_t *  lumFilter,
const int16_t **  lumSrc,
int  lumFilterSize,
const int16_t *  chrFilter,
const int16_t **  chrUSrc,
const int16_t **  chrVSrc,
int  chrFilterSize,
const int16_t **  alpSrc,
uint8_t dest,
int  dstW,
int  y,
enum AVPixelFormat  target,
int  hasAlpha 
)
static

Definition at line 1993 of file output.c.

◆ yuv2rgb_full_2_c_template()

static av_always_inline void yuv2rgb_full_2_c_template ( SwsContext c,
const int16_t *  buf[2],
const int16_t *  ubuf[2],
const int16_t *  vbuf[2],
const int16_t *  abuf[2],
uint8_t dest,
int  dstW,
int  yalpha,
int  uvalpha,
int  y,
enum AVPixelFormat  target,
int  hasAlpha 
)
static

Definition at line 2043 of file output.c.

◆ yuv2rgb_full_1_c_template()

static av_always_inline void yuv2rgb_full_1_c_template ( SwsContext c,
const int16_t *  buf0,
const int16_t *  ubuf[2],
const int16_t *  vbuf[2],
const int16_t *  abuf0,
uint8_t dest,
int  dstW,
int  uvalpha,
int  y,
enum AVPixelFormat  target,
int  hasAlpha 
)
static

Definition at line 2088 of file output.c.

◆ yuv2gbrp_full_X_c()

static void yuv2gbrp_full_X_c ( SwsContext c,
const int16_t *  lumFilter,
const int16_t **  lumSrc,
int  lumFilterSize,
const int16_t *  chrFilter,
const int16_t **  chrUSrc,
const int16_t **  chrVSrc,
int  chrFilterSize,
const int16_t **  alpSrc,
uint8_t **  dest,
int  dstW,
int  y 
)
static

Definition at line 2169 of file output.c.

Referenced by ff_sws_init_output_funcs().

◆ yuv2gbrp16_full_X_c()

static void yuv2gbrp16_full_X_c ( SwsContext c,
const int16_t *  lumFilter,
const int16_t **  lumSrcx,
int  lumFilterSize,
const int16_t *  chrFilter,
const int16_t **  chrUSrcx,
const int16_t **  chrVSrcx,
int  chrFilterSize,
const int16_t **  alpSrcx,
uint8_t **  dest,
int  dstW,
int  y 
)
static

Definition at line 2251 of file output.c.

Referenced by ff_sws_init_output_funcs().

◆ yuv2gbrpf32_full_X_c()

static void yuv2gbrpf32_full_X_c ( SwsContext c,
const int16_t *  lumFilter,
const int16_t **  lumSrcx,
int  lumFilterSize,
const int16_t *  chrFilter,
const int16_t **  chrUSrcx,
const int16_t **  chrVSrcx,
int  chrFilterSize,
const int16_t **  alpSrcx,
uint8_t **  dest,
int  dstW,
int  y 
)
static

Definition at line 2326 of file output.c.

Referenced by ff_sws_init_output_funcs().

◆ yuv2ya8_1_c()

static void yuv2ya8_1_c ( SwsContext c,
const int16_t *  buf0,
const int16_t *  ubuf[2],
const int16_t *  vbuf[2],
const int16_t *  abuf0,
uint8_t dest,
int  dstW,
int  uvalpha,
int  y 
)
static

Definition at line 2402 of file output.c.

Referenced by ff_sws_init_output_funcs().

◆ yuv2ya8_2_c()

static void yuv2ya8_2_c ( SwsContext c,
const int16_t *  buf[2],
const int16_t *  ubuf[2],
const int16_t *  vbuf[2],
const int16_t *  abuf[2],
uint8_t dest,
int  dstW,
int  yalpha,
int  uvalpha,
int  y 
)
static

Definition at line 2428 of file output.c.

Referenced by ff_sws_init_output_funcs().

◆ yuv2ya8_X_c()

static void yuv2ya8_X_c ( SwsContext c,
const int16_t *  lumFilter,
const int16_t **  lumSrc,
int  lumFilterSize,
const int16_t *  chrFilter,
const int16_t **  chrUSrc,
const int16_t **  chrVSrc,
int  chrFilterSize,
const int16_t **  alpSrc,
uint8_t dest,
int  dstW,
int  y 
)
static

Definition at line 2459 of file output.c.

Referenced by ff_sws_init_output_funcs().

◆ yuv2ayuv64le_X_c()

static void yuv2ayuv64le_X_c ( SwsContext c,
const int16_t *  lumFilter,
const int16_t **  _lumSrc,
int  lumFilterSize,
const int16_t *  chrFilter,
const int16_t **  _chrUSrc,
const int16_t **  _chrVSrc,
int  chrFilterSize,
const int16_t **  _alpSrc,
uint8_t dest,
int  dstW,
int  y 
)
static

Definition at line 2495 of file output.c.

Referenced by ff_sws_init_output_funcs().

◆ ff_sws_init_output_funcs()

av_cold void ff_sws_init_output_funcs ( SwsContext c,
yuv2planar1_fn yuv2plane1,
yuv2planarX_fn yuv2planeX,
yuv2interleavedX_fn yuv2nv12cX,
yuv2packed1_fn yuv2packed1,
yuv2packed2_fn yuv2packed2,
yuv2packedX_fn yuv2packedX,
yuv2anyX_fn yuv2anyX 
)

Definition at line 2543 of file output.c.

Referenced by sws_init_swscale(), and swscale().

Variable Documentation

◆ ff_dither_2x2_4

const uint8_t ff_dither_2x2_4[][8]
Initial value:
= {
{ 1, 3, 1, 3, 1, 3, 1, 3, },
{ 2, 0, 2, 0, 2, 0, 2, 0, },
{ 1, 3, 1, 3, 1, 3, 1, 3, },
}

Definition at line 40 of file output.c.

Referenced by yuv2rgb_write().

◆ ff_dither_2x2_8

const uint8_t ff_dither_2x2_8[][8]
Initial value:
= {
{ 6, 2, 6, 2, 6, 2, 6, 2, },
{ 0, 4, 0, 4, 0, 4, 0, 4, },
{ 6, 2, 6, 2, 6, 2, 6, 2, },
}

Definition at line 46 of file output.c.

Referenced by yuv2rgb_write().

◆ ff_dither_4x4_16

const uint8_t ff_dither_4x4_16[][8]
Initial value:
= {
{ 8, 4, 11, 7, 8, 4, 11, 7, },
{ 2, 14, 1, 13, 2, 14, 1, 13, },
{ 10, 6, 9, 5, 10, 6, 9, 5, },
{ 0, 12, 3, 15, 0, 12, 3, 15, },
{ 8, 4, 11, 7, 8, 4, 11, 7, },
}

Definition at line 52 of file output.c.

Referenced by yuv2rgb_write().

◆ ff_dither_8x8_32

const uint8_t ff_dither_8x8_32[][8]
Initial value:
= {
{ 17, 9, 23, 15, 16, 8, 22, 14, },
{ 5, 29, 3, 27, 4, 28, 2, 26, },
{ 21, 13, 19, 11, 20, 12, 18, 10, },
{ 0, 24, 6, 30, 1, 25, 7, 31, },
{ 16, 8, 22, 14, 17, 9, 23, 15, },
{ 4, 28, 2, 26, 5, 29, 3, 27, },
{ 20, 12, 18, 10, 21, 13, 19, 11, },
{ 1, 25, 7, 31, 0, 24, 6, 30, },
{ 17, 9, 23, 15, 16, 8, 22, 14, },
}

Definition at line 60 of file output.c.

Referenced by yuv2rgb_write().

◆ ff_dither_8x8_73

const uint8_t ff_dither_8x8_73[][8]
Initial value:
= {
{ 0, 55, 14, 68, 3, 58, 17, 72, },
{ 37, 18, 50, 32, 40, 22, 54, 35, },
{ 9, 64, 5, 59, 13, 67, 8, 63, },
{ 46, 27, 41, 23, 49, 31, 44, 26, },
{ 2, 57, 16, 71, 1, 56, 15, 70, },
{ 39, 21, 52, 34, 38, 19, 51, 33, },
{ 11, 66, 7, 62, 10, 65, 6, 60, },
{ 48, 30, 43, 25, 47, 29, 42, 24, },
{ 0, 55, 14, 68, 3, 58, 17, 72, },
}

Definition at line 72 of file output.c.

Referenced by yuv2rgb_write().

◆ ff_dither_8x8_220

const uint8_t ff_dither_8x8_220[][8]
Initial value:
= {
{117, 62, 158, 103, 113, 58, 155, 100, },
{ 34, 199, 21, 186, 31, 196, 17, 182, },
{144, 89, 131, 76, 141, 86, 127, 72, },
{ 0, 165, 41, 206, 10, 175, 52, 217, },
{110, 55, 151, 96, 120, 65, 162, 107, },
{ 28, 193, 14, 179, 38, 203, 24, 189, },
{138, 83, 124, 69, 148, 93, 134, 79, },
{ 7, 172, 48, 213, 3, 168, 45, 210, },
{117, 62, 158, 103, 113, 58, 155, 100, },
}

Definition at line 85 of file output.c.

Referenced by yuv2mono_1_c_template(), yuv2mono_2_c_template(), yuv2mono_X_c_template(), and yuv2rgb_write().

name
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default minimum maximum flags name is the option name
Definition: writing_filters.txt:88
acc
int acc
Definition: yuv2rgb.c:555
av_clip_uintp2
#define av_clip_uintp2
Definition: common.h:146
YUV2RGBWRAPPERX2
#define YUV2RGBWRAPPERX2(name, base, ext, fmt, hasAlpha)
Definition: output.c:1810
base
uint8_t base
Definition: vp3data.h:141
filter
filter_frame For filters that do not use the this method is called when a frame is pushed to the filter s input It can be called at any time except in a reentrant way If the input frame is enough to produce then the filter should push the output frames on the output link immediately As an exception to the previous rule if the input frame is enough to produce several output frames then the filter needs output only at least one per link The additional frames can be left buffered in the filter
Definition: filter_design.txt:228
U
#define U(x)
Definition: vp56_arith.h:37
val
static double val(void *priv, double ch)
Definition: aeval.c:76
yuv2plane1_float
#define yuv2plane1_float(template, dest_type, BE_LE)
Definition: output.c:285
yuv2planeX_float
#define yuv2planeX_float(template, dest_type, BE_LE)
Definition: output.c:292
bits
uint8_t bits
Definition: vp3data.h:141
int32_t
int32_t
Definition: audio_convert.c:194
AV_PIX_FMT_YUYV422
@ AV_PIX_FMT_YUYV422
packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr
Definition: pixfmt.h:67
AV_PIX_FMT_MONOBLACK
@ AV_PIX_FMT_MONOBLACK
Y , 1bpp, 0 is black, 1 is white, in each byte pixels are ordered from the msb to the lsb.
Definition: pixfmt.h:76
V
#define V
Definition: avdct.c:30
src
#define src
Definition: vp8dsp.c:255
c
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
Definition: undefined.txt:32
isBE
static av_always_inline int isBE(enum AVPixelFormat pix_fmt)
Definition: swscale_internal.h:667
offset
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf offset
Definition: writing_filters.txt:86
uint8_t
uint8_t
Definition: audio_convert.c:194
AV_PIX_FMT_YVYU422
@ AV_PIX_FMT_YVYU422
packed YUV 4:2:2, 16bpp, Y0 Cr Y1 Cb
Definition: pixfmt.h:210
pos
unsigned int pos
Definition: spdifenc.c:412
shift
static int shift(int a, int b)
Definition: sonic.c:82
YUV2RGBWRAPPERX
#define YUV2RGBWRAPPERX(name, base, ext, fmt, hasAlpha)
Definition: output.c:1797
SwsContext
Definition: swscale_internal.h:283
dither
static const uint8_t dither[8][8]
Definition: vf_fspp.c:59