Go to the documentation of this file.
   26                       const uint8_t *_src, 
const int16_t *
filter,
 
   27                       const int32_t *filterPos, 
int filterSize);
 
   29                       const uint8_t *_src, 
const int16_t *
filter,
 
   30                       const int32_t *filterPos, 
int filterSize);
 
   32                       const uint8_t *_src, 
const int16_t *
filter,
 
   33                       const int32_t *filterPos, 
int filterSize);
 
   35                       const uint8_t *_src, 
const int16_t *
filter,
 
   36                       const int32_t *filterPos, 
int filterSize);
 
   38                       const uint8_t *_src, 
const int16_t *
filter,
 
   39                       const int32_t *filterPos, 
int filterSize);
 
   41                       const uint8_t *_src, 
const int16_t *
filter,
 
   42                       const int32_t *filterPos, 
int filterSize);
 
   45                       const uint8_t *_src, 
const int16_t *
filter,
 
   46                       const int32_t *filterPos, 
int filterSize)
 
   49     int sh              = 
desc->comp[0].depth - 1;
 
   61                       const uint8_t *_src, 
const int16_t *
filter,
 
   62                       const int32_t *filterPos, 
int filterSize)
 
   65     int sh              = 
desc->comp[0].depth - 1;
 
   77                       const uint8_t *_src, 
const int16_t *
filter,
 
   78                       const int32_t *filterPos, 
int filterSize)
 
   81     int sh              = 
desc->comp[0].depth - 1;
 
   92                            const uint8_t *_src, 
const int16_t *
filter,
 
   93                            const int32_t *filterPos, 
int filterSize)
 
  110                            const uint8_t *_src, 
const int16_t *
filter,
 
  111                            const int32_t *filterPos, 
int filterSize)
 
  128                            const uint8_t *_src, 
const int16_t *
filter,
 
  129                            const int32_t *filterPos, 
int filterSize)
 
  145 #define SCALE_FUNC(filter_n, from_bpc, to_bpc, opt) \ 
  146 void ff_hscale ## from_bpc ## to ## to_bpc ## _ ## filter_n ## _ ## opt( \ 
  147                                                 SwsContext *c, int16_t *data, \ 
  148                                                 int dstW, const uint8_t *src, \ 
  149                                                 const int16_t *filter, \ 
  150                                                 const int32_t *filterPos, int filterSize) 
  151 #define SCALE_FUNCS(filter_n, opt) \ 
  152     SCALE_FUNC(filter_n, 8, 15, opt); \ 
  153     SCALE_FUNC(filter_n, 8, 19, opt); 
  154 #define ALL_SCALE_FUNCS(opt) \ 
  155     SCALE_FUNCS(4, opt); \ 
  156     SCALE_FUNCS(X8, opt); \ 
  162                           const int16_t **
src, uint8_t *dest, 
int dstW,
 
  171 #define ASSIGN_SCALE_FUNC2(hscalefn, filtersize, opt) do {              \ 
  172     if (c->srcBpc == 8) {                                               \ 
  173         if(c->dstBpc <= 14) {                                           \ 
  175                 ff_hscale8to15_ ## filtersize ## _ ## opt;              \ 
  178                 ff_hscale8to19_ ## filtersize ## _ ## opt;              \ 
  180         if (c->dstBpc <= 14)                                            \ 
  182                 ff_hscale16to15_ ## filtersize ## _ ## opt;             \ 
  185                 ff_hscale16to19_ ## filtersize ## _ ## opt;             \ 
  189 #define ASSIGN_SCALE_FUNC(hscalefn, filtersize, opt) do {               \ 
  190     if (filtersize == 4)                                                \ 
  191         ASSIGN_SCALE_FUNC2(hscalefn, 4, opt);                           \ 
  192     else if (filtersize % 8 == 0)                                       \ 
  193         ASSIGN_SCALE_FUNC2(hscalefn, X8, opt);                          \ 
  194     else if (filtersize % 4 == 0 && filtersize % 8 != 0)                \ 
  195         ASSIGN_SCALE_FUNC2(hscalefn, X4, opt);                          \ 
  198 #define ASSIGN_VSCALE_FUNC(vscalefn, opt)                               \ 
  199     switch (c->dstBpc) {                                                \ 
  200     case 8: vscalefn = ff_yuv2plane1_8_  ## opt;  break;                \ 
  212         if (
c->dstBpc == 8) {
 
  
void ff_hscale16to19_X4_neon_asm(int shift, int16_t *_dst, int dstW, const uint8_t *_src, const int16_t *filter, const int32_t *filterPos, int filterSize)
 
const AVPixFmtDescriptor * av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
 
#define AV_PIX_FMT_FLAG_FLOAT
The pixel format contains IEEE-754 floating point values.
 
void ff_yuv2planeX_8_neon(const int16_t *filter, int filterSize, const int16_t **src, uint8_t *dest, int dstW, const uint8_t *dither, int offset)
 
void ff_yuv2plane1_8_neon(const int16_t *src, uint8_t *dest, int dstW, const uint8_t *dither, int offset)
 
static void ff_hscale16to15_X4_neon(SwsContext *c, int16_t *_dst, int dstW, const uint8_t *_src, const int16_t *filter, const int32_t *filterPos, int filterSize)
 
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
 
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
 
static atomic_int cpu_flags
 
void ff_hscale16to15_X4_neon_asm(int shift, int16_t *_dst, int dstW, const uint8_t *_src, const int16_t *filter, const int32_t *filterPos, int filterSize)
 
av_cold void ff_sws_init_swscale_aarch64(SwsContext *c)
 
static void ff_hscale16to15_4_neon(SwsContext *c, int16_t *_dst, int dstW, const uint8_t *_src, const int16_t *filter, const int32_t *filterPos, int filterSize)
 
static void ff_hscale16to19_X4_neon(SwsContext *c, int16_t *_dst, int dstW, const uint8_t *_src, const int16_t *filter, const int32_t *filterPos, int filterSize)
 
void ff_hscale16to15_X8_neon_asm(int shift, int16_t *_dst, int dstW, const uint8_t *_src, const int16_t *filter, const int32_t *filterPos, int filterSize)
 
static void ff_hscale16to19_X8_neon(SwsContext *c, int16_t *_dst, int dstW, const uint8_t *_src, const int16_t *filter, const int32_t *filterPos, int filterSize)
 
void ff_hscale16to19_X8_neon_asm(int shift, int16_t *_dst, int dstW, const uint8_t *_src, const int16_t *filter, const int32_t *filterPos, int filterSize)
 
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
 
static void ff_hscale16to19_4_neon(SwsContext *c, int16_t *_dst, int dstW, const uint8_t *_src, const int16_t *filter, const int32_t *filterPos, int filterSize)
 
static int shift(int a, int b)
 
static av_always_inline int isAnyRGB(enum AVPixelFormat pix_fmt)
 
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
 
void ff_hscale16to19_4_neon_asm(int shift, int16_t *_dst, int dstW, const uint8_t *_src, const int16_t *filter, const int32_t *filterPos, int filterSize)
 
#define ASSIGN_VSCALE_FUNC(vscalefn, opt)
 
@ AV_PIX_FMT_PAL8
8 bits with AV_PIX_FMT_RGB32 palette
 
#define ASSIGN_SCALE_FUNC(hscalefn, filtersize, opt)
 
void ff_hscale16to15_4_neon_asm(int shift, int16_t *_dst, int dstW, const uint8_t *_src, const int16_t *filter, const int32_t *filterPos, int filterSize)
 
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...
 
static void ff_hscale16to15_X8_neon(SwsContext *c, int16_t *_dst, int dstW, const uint8_t *_src, const int16_t *filter, const int32_t *filterPos, int filterSize)
 
#define ALL_SCALE_FUNCS(opt)
 
static const uint8_t dither[8][8]