FFmpeg  4.0
Macros | Functions
swscale_unscaled.c File Reference
#include "config.h"
#include "libswscale/swscale.h"
#include "libswscale/swscale_internal.h"
#include "libavutil/aarch64/cpu.h"

Go to the source code of this file.

Macros

#define YUV_TO_RGB_TABLE
 
#define DECLARE_FF_YUVX_TO_RGBX_FUNCS(ifmt, ofmt)
 
#define DECLARE_FF_YUVX_TO_ALL_RGBX_FUNCS(yuvx)
 
#define DECLARE_FF_NVX_TO_RGBX_FUNCS(ifmt, ofmt)
 
#define DECLARE_FF_NVX_TO_ALL_RGBX_FUNCS(nvx)
 
#define SET_FF_NVX_TO_RGBX_FUNC(ifmt, IFMT, ofmt, OFMT, accurate_rnd)
 
#define SET_FF_NVX_TO_ALL_RGBX_FUNC(nvx, NVX, accurate_rnd)
 

Functions

static void get_unscaled_swscale_neon (SwsContext *c)
 
void ff_get_unscaled_swscale_aarch64 (SwsContext *c)
 

Macro Definition Documentation

◆ YUV_TO_RGB_TABLE

#define YUV_TO_RGB_TABLE
Value:
c->yuv2rgb_v2r_coeff, \
c->yuv2rgb_u2g_coeff, \
c->yuv2rgb_v2g_coeff, \
c->yuv2rgb_u2b_coeff, \
static double c[64]

Definition at line 24 of file swscale_unscaled.c.

◆ DECLARE_FF_YUVX_TO_RGBX_FUNCS

#define DECLARE_FF_YUVX_TO_RGBX_FUNCS (   ifmt,
  ofmt 
)
Value:
int ff_##ifmt##_to_##ofmt##_neon(int w, int h, \
uint8_t *dst, int linesize, \
const uint8_t *srcY, int linesizeY, \
const uint8_t *srcU, int linesizeU, \
const uint8_t *srcV, int linesizeV, \
const int16_t *table, \
int y_offset, \
int y_coeff); \
\
static int ifmt##_to_##ofmt##_neon_wrapper(SwsContext *c, const uint8_t *src[], \
int srcStride[], int srcSliceY, int srcSliceH, \
uint8_t *dst[], int dstStride[]) { \
const int16_t yuv2rgb_table[] = { YUV_TO_RGB_TABLE }; \
\
ff_##ifmt##_to_##ofmt##_neon(c->srcW, srcSliceH, \
dst[0] + srcSliceY * dstStride[0], dstStride[0], \
src[0], srcStride[0], \
src[1], srcStride[1], \
src[2], srcStride[2], \
yuv2rgb_table, \
c->yuv2rgb_y_offset >> 6, \
return 0; \
} \
#define src
Definition: vp8dsp.c:254
uint8_t
static const struct endianess table[]
uint8_t w
Definition: llviddspenc.c:38
#define YUV_TO_RGB_TABLE
static double c[64]
int srcW
Width of source luma/alpha planes.

Definition at line 30 of file swscale_unscaled.c.

◆ DECLARE_FF_YUVX_TO_ALL_RGBX_FUNCS

#define DECLARE_FF_YUVX_TO_ALL_RGBX_FUNCS (   yuvx)
Value:
DECLARE_FF_YUVX_TO_RGBX_FUNCS(yuvx, rgba) \
DECLARE_FF_YUVX_TO_RGBX_FUNCS(yuvx, abgr) \
DECLARE_FF_YUVX_TO_RGBX_FUNCS(yuvx, bgra) \
#define DECLARE_FF_YUVX_TO_RGBX_FUNCS(ifmt, ofmt)

Definition at line 56 of file swscale_unscaled.c.

◆ DECLARE_FF_NVX_TO_RGBX_FUNCS

#define DECLARE_FF_NVX_TO_RGBX_FUNCS (   ifmt,
  ofmt 
)
Value:
int ff_##ifmt##_to_##ofmt##_neon(int w, int h, \
uint8_t *dst, int linesize, \
const uint8_t *srcY, int linesizeY, \
const uint8_t *srcC, int linesizeC, \
const int16_t *table, \
int y_offset, \
int y_coeff); \
\
static int ifmt##_to_##ofmt##_neon_wrapper(SwsContext *c, const uint8_t *src[], \
int srcStride[], int srcSliceY, int srcSliceH, \
uint8_t *dst[], int dstStride[]) { \
const int16_t yuv2rgb_table[] = { YUV_TO_RGB_TABLE }; \
\
ff_##ifmt##_to_##ofmt##_neon(c->srcW, srcSliceH, \
dst[0] + srcSliceY * dstStride[0], dstStride[0], \
src[0], srcStride[0], src[1], srcStride[1], \
yuv2rgb_table, \
c->yuv2rgb_y_offset >> 6, \
\
return 0; \
} \
#define src
Definition: vp8dsp.c:254
uint8_t
static const struct endianess table[]
uint8_t w
Definition: llviddspenc.c:38
#define YUV_TO_RGB_TABLE
static double c[64]
int srcW
Width of source luma/alpha planes.

Definition at line 65 of file swscale_unscaled.c.

◆ DECLARE_FF_NVX_TO_ALL_RGBX_FUNCS

#define DECLARE_FF_NVX_TO_ALL_RGBX_FUNCS (   nvx)
Value:
DECLARE_FF_NVX_TO_RGBX_FUNCS(nvx, rgba) \
DECLARE_FF_NVX_TO_RGBX_FUNCS(nvx, abgr) \
DECLARE_FF_NVX_TO_RGBX_FUNCS(nvx, bgra) \
#define DECLARE_FF_NVX_TO_RGBX_FUNCS(ifmt, ofmt)

Definition at line 89 of file swscale_unscaled.c.

◆ SET_FF_NVX_TO_RGBX_FUNC

#define SET_FF_NVX_TO_RGBX_FUNC (   ifmt,
  IFMT,
  ofmt,
  OFMT,
  accurate_rnd 
)
Value:
do { \
if (c->srcFormat == AV_PIX_FMT_##IFMT \
&& c->dstFormat == AV_PIX_FMT_##OFMT \
&& !(c->srcH & 1) \
&& !(c->srcW & 15) \
&& !accurate_rnd) \
c->swscale = ifmt##_to_##ofmt##_neon_wrapper; \
} while (0)
static double c[64]

Definition at line 102 of file swscale_unscaled.c.

◆ SET_FF_NVX_TO_ALL_RGBX_FUNC

#define SET_FF_NVX_TO_ALL_RGBX_FUNC (   nvx,
  NVX,
  accurate_rnd 
)
Value:
do { \
SET_FF_NVX_TO_RGBX_FUNC(nvx, NVX, argb, ARGB, accurate_rnd); \
SET_FF_NVX_TO_RGBX_FUNC(nvx, NVX, rgba, RGBA, accurate_rnd); \
SET_FF_NVX_TO_RGBX_FUNC(nvx, NVX, abgr, ABGR, accurate_rnd); \
SET_FF_NVX_TO_RGBX_FUNC(nvx, NVX, bgra, BGRA, accurate_rnd); \
} while (0)
#define RGBA(r, g, b, a)
Definition: dvbsubdec.c:39

Definition at line 111 of file swscale_unscaled.c.

Referenced by get_unscaled_swscale_neon().

Function Documentation

◆ get_unscaled_swscale_neon()

static void get_unscaled_swscale_neon ( SwsContext c)
static

Definition at line 118 of file swscale_unscaled.c.

Referenced by ff_get_unscaled_swscale_aarch64().

◆ ff_get_unscaled_swscale_aarch64()

void ff_get_unscaled_swscale_aarch64 ( SwsContext c)

Definition at line 127 of file swscale_unscaled.c.

Referenced by ff_get_unscaled_swscale(), and usePal().