Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1. /*
  2.  * This file is part of FFmpeg.
  3.  *
  4.  * FFmpeg is free software; you can redistribute it and/or
  5.  * modify it under the terms of the GNU Lesser General Public
  6.  * License as published by the Free Software Foundation; either
  7.  * version 2.1 of the License, or (at your option) any later version.
  8.  *
  9.  * FFmpeg is distributed in the hope that it will be useful,
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12.  * Lesser General Public License for more details.
  13.  *
  14.  * You should have received a copy of the GNU Lesser General Public
  15.  * License along with FFmpeg; if not, write to the Free Software
  16.  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17.  */
  18.  
  19. #ifndef AVCODEC_ARM_VP8DSP_H
  20. #define AVCODEC_ARM_VP8DSP_H
  21.  
  22. #include "libavcodec/vp8dsp.h"
  23.  
  24. void ff_vp8dsp_init_armv6(VP8DSPContext *dsp);
  25. void ff_vp8dsp_init_neon(VP8DSPContext *dsp);
  26.  
  27. #define VP8_LF_Y(hv, inner, opt)                                             \
  28.     void ff_vp8_##hv##_loop_filter16##inner##_##opt(uint8_t *dst,            \
  29.                                                     ptrdiff_t stride,        \
  30.                                                     int flim_E, int flim_I,  \
  31.                                                     int hev_thresh)
  32.  
  33. #define VP8_LF_UV(hv, inner, opt)                                            \
  34.     void ff_vp8_##hv##_loop_filter8uv##inner##_##opt(uint8_t *dstU,          \
  35.                                                      uint8_t *dstV,          \
  36.                                                      ptrdiff_t stride,       \
  37.                                                      int flim_E, int flim_I, \
  38.                                                      int hev_thresh)
  39.  
  40. #define VP8_LF_SIMPLE(hv, opt)                                          \
  41.     void ff_vp8_##hv##_loop_filter16_simple_##opt(uint8_t *dst,         \
  42.                                                   ptrdiff_t stride,     \
  43.                                                   int flim)
  44.  
  45. #define VP8_LF_HV(inner, opt)                   \
  46.     VP8_LF_Y(h,  inner, opt);                   \
  47.     VP8_LF_Y(v,  inner, opt);                   \
  48.     VP8_LF_UV(h, inner, opt);                   \
  49.     VP8_LF_UV(v, inner, opt)
  50.  
  51. #define VP8_LF(opt)                             \
  52.     VP8_LF_HV(,       opt);                     \
  53.     VP8_LF_HV(_inner, opt);                     \
  54.     VP8_LF_SIMPLE(h, opt);                      \
  55.     VP8_LF_SIMPLE(v, opt)
  56.  
  57. #define VP8_MC(n, opt)                                                  \
  58.     void ff_put_vp8_##n##_##opt(uint8_t *dst, ptrdiff_t dststride,      \
  59.                                 uint8_t *src, ptrdiff_t srcstride,      \
  60.                                 int h, int x, int y)
  61.  
  62. #define VP8_EPEL(w, opt)                        \
  63.     VP8_MC(pixels ## w, opt);                   \
  64.     VP8_MC(epel ## w ## _h4, opt);              \
  65.     VP8_MC(epel ## w ## _h6, opt);              \
  66.     VP8_MC(epel ## w ## _v4, opt);              \
  67.     VP8_MC(epel ## w ## _h4v4, opt);            \
  68.     VP8_MC(epel ## w ## _h6v4, opt);            \
  69.     VP8_MC(epel ## w ## _v6, opt);              \
  70.     VP8_MC(epel ## w ## _h4v6, opt);            \
  71.     VP8_MC(epel ## w ## _h6v6, opt)
  72.  
  73. #define VP8_BILIN(w, opt)                       \
  74.     VP8_MC(bilin ## w ## _h, opt);              \
  75.     VP8_MC(bilin ## w ## _v, opt);              \
  76.     VP8_MC(bilin ## w ## _hv, opt)
  77.  
  78. #endif /* AVCODEC_ARM_VP8DSP_H */
  79.