FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
swscale_unscaled.c File Reference
#include "config.h"
#include "libswscale/swscale.h"
#include "libswscale/swscale_internal.h"
#include "libavutil/arm/cpu.h"

Go to the source code of this file.

Macros

#define YUV_TO_RGB_TABLE(precision)
 
#define DECLARE_FF_YUVX_TO_RGBX_FUNCS(ifmt, ofmt, precision)
 
#define DECLARE_FF_YUVX_TO_ALL_RGBX_FUNCS(yuvx, precision)
 
#define DECLARE_FF_YUVX_TO_ALL_RGBX_ALL_PRECISION_FUNCS(yuvx)   DECLARE_FF_YUVX_TO_ALL_RGBX_FUNCS(yuvx, 16) \
 
#define DECLARE_FF_NVX_TO_RGBX_FUNCS(ifmt, ofmt, precision)
 
#define DECLARE_FF_NVX_TO_ALL_RGBX_FUNCS(nvx, precision)
 
#define DECLARE_FF_NVX_TO_ALL_RGBX_ALL_PRECISION_FUNCS(nvx)   DECLARE_FF_NVX_TO_ALL_RGBX_FUNCS(nvx, 16) \
 
#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_arm (SwsContext *c)
 

Macro Definition Documentation

#define YUV_TO_RGB_TABLE (   precision)
Value:
c->yuv2rgb_v2r_coeff / ((precision) == 16 ? 1 << 7 : 1), \
c->yuv2rgb_u2g_coeff / ((precision) == 16 ? 1 << 7 : 1), \
c->yuv2rgb_v2g_coeff / ((precision) == 16 ? 1 << 7 : 1), \
c->yuv2rgb_u2b_coeff / ((precision) == 16 ? 1 << 7 : 1), \
static double c[64]

Definition at line 66 of file swscale_unscaled.c.

#define DECLARE_FF_YUVX_TO_RGBX_FUNCS (   ifmt,
  ofmt,
  precision 
)
Value:
int ff_##ifmt##_to_##ofmt##_neon_##precision(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_##precision(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(precision) }; \
\
ff_##ifmt##_to_##ofmt##_neon_##precision(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 >> 9, \
c->yuv2rgb_y_coeff / ((precision) == 16 ? 1 << 7 : 1)); \
\
return 0; \
} \
uint8_t
#define YUV_TO_RGB_TABLE(precision)
static const struct endianess table[]
return
#define src
Definition: vp9dsp.c:530
static double c[64]
int srcW
Width of source luma/alpha planes.

Definition at line 72 of file swscale_unscaled.c.

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

Definition at line 99 of file swscale_unscaled.c.

#define DECLARE_FF_YUVX_TO_ALL_RGBX_ALL_PRECISION_FUNCS (   yuvx)    DECLARE_FF_YUVX_TO_ALL_RGBX_FUNCS(yuvx, 16) \

Definition at line 105 of file swscale_unscaled.c.

#define DECLARE_FF_NVX_TO_RGBX_FUNCS (   ifmt,
  ofmt,
  precision 
)
Value:
int ff_##ifmt##_to_##ofmt##_neon_##precision(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_##precision(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(precision) }; \
\
ff_##ifmt##_to_##ofmt##_neon_##precision(c->srcW, srcSliceH, \
dst[0] + srcSliceY * dstStride[0], dstStride[0], \
src[0], srcStride[0], src[1], srcStride[1], \
yuv2rgb_table, \
c->yuv2rgb_y_offset >> 9, \
c->yuv2rgb_y_coeff / ((precision) == 16 ? 1 << 7 : 1)); \
\
return 0; \
} \
uint8_t
#define YUV_TO_RGB_TABLE(precision)
static const struct endianess table[]
return
#define src
Definition: vp9dsp.c:530
static double c[64]
int srcW
Width of source luma/alpha planes.

Definition at line 111 of file swscale_unscaled.c.

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

Definition at line 135 of file swscale_unscaled.c.

#define DECLARE_FF_NVX_TO_ALL_RGBX_ALL_PRECISION_FUNCS (   nvx)    DECLARE_FF_NVX_TO_ALL_RGBX_FUNCS(nvx, 16) \

Definition at line 141 of file swscale_unscaled.c.

#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_16; \
} \
} while (0)
if(ret< 0)
Definition: vf_mcdeint.c:282
static double c[64]

Definition at line 151 of file swscale_unscaled.c.

#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:153
#define SET_FF_NVX_TO_RGBX_FUNC(ifmt, IFMT, ofmt, OFMT, accurate_rnd)

Definition at line 161 of file swscale_unscaled.c.

Referenced by get_unscaled_swscale_neon().

Function Documentation

static void get_unscaled_swscale_neon ( SwsContext c)
static

Definition at line 168 of file swscale_unscaled.c.

Referenced by ff_get_unscaled_swscale_arm().

void ff_get_unscaled_swscale_arm ( SwsContext c)

Definition at line 185 of file swscale_unscaled.c.

Referenced by ff_get_unscaled_swscale().