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
 
#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

void rgbx_to_nv12_neon_32 (const uint8_t *src, uint8_t *y, uint8_t *chroma, int width, int height, int y_stride, int c_stride, int src_stride, int32_t coeff_tbl[9])
 
void rgbx_to_nv12_neon_16 (const uint8_t *src, uint8_t *y, uint8_t *chroma, int width, int height, int y_stride, int c_stride, int src_stride, int32_t coeff_tbl[9])
 
static int rgbx_to_nv12_neon_32_wrapper (SwsContext *context, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[])
 
static int rgbx_to_nv12_neon_16_wrapper (SwsContext *context, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[])
 
static void get_unscaled_swscale_neon (SwsContext *c)
 
void ff_get_unscaled_swscale_arm (SwsContext *c)
 

Macro Definition Documentation

#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 64 of file swscale_unscaled.c.

#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 YUV_TO_RGB_TABLE
#define src
Definition: vp8dsp.c:254
uint8_t
static const struct endianess table[]
return
static double c[64]
int srcW
Width of source luma/alpha planes.

Definition at line 70 of file swscale_unscaled.c.

#define DECLARE_FF_YUVX_TO_ALL_RGBX_FUNCS (   yuvx)
Value:
#define DECLARE_FF_YUVX_TO_RGBX_FUNCS(ifmt, ofmt)

Definition at line 97 of file swscale_unscaled.c.

#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 YUV_TO_RGB_TABLE
#define src
Definition: vp8dsp.c:254
uint8_t
static const struct endianess table[]
return
static double c[64]
int srcW
Width of source luma/alpha planes.

Definition at line 106 of file swscale_unscaled.c.

#define DECLARE_FF_NVX_TO_ALL_RGBX_FUNCS (   nvx)
Value:
#define DECLARE_FF_NVX_TO_RGBX_FUNCS(ifmt, ofmt)

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

Definition at line 143 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:96
#define SET_FF_NVX_TO_RGBX_FUNC(ifmt, IFMT, ofmt, OFMT, accurate_rnd)

Definition at line 153 of file swscale_unscaled.c.

Referenced by get_unscaled_swscale_neon().

Function Documentation

void rgbx_to_nv12_neon_32 ( const uint8_t src,
uint8_t y,
uint8_t chroma,
int  width,
int  height,
int  y_stride,
int  c_stride,
int  src_stride,
int32_t  coeff_tbl[9] 
)
void rgbx_to_nv12_neon_16 ( const uint8_t src,
uint8_t y,
uint8_t chroma,
int  width,
int  height,
int  y_stride,
int  c_stride,
int  src_stride,
int32_t  coeff_tbl[9] 
)
static int rgbx_to_nv12_neon_32_wrapper ( SwsContext context,
const uint8_t src[],
int  srcStride[],
int  srcSliceY,
int  srcSliceH,
uint8_t dst[],
int  dstStride[] 
)
static

Definition at line 36 of file swscale_unscaled.c.

Referenced by get_unscaled_swscale_neon().

static int rgbx_to_nv12_neon_16_wrapper ( SwsContext context,
const uint8_t src[],
int  srcStride[],
int  srcSliceY,
int  srcSliceH,
uint8_t dst[],
int  dstStride[] 
)
static

Definition at line 50 of file swscale_unscaled.c.

Referenced by get_unscaled_swscale_neon().

static void get_unscaled_swscale_neon ( SwsContext c)
static

Definition at line 160 of file swscale_unscaled.c.

Referenced by ff_get_unscaled_swscale_arm().

void ff_get_unscaled_swscale_arm ( SwsContext c)

Definition at line 175 of file swscale_unscaled.c.

Referenced by ff_get_unscaled_swscale().