1cabdff1aSopenharmony_ci/* 2cabdff1aSopenharmony_ci * This file is part of FFmpeg. 3cabdff1aSopenharmony_ci * 4cabdff1aSopenharmony_ci * FFmpeg is free software; you can redistribute it and/or 5cabdff1aSopenharmony_ci * modify it under the terms of the GNU Lesser General Public 6cabdff1aSopenharmony_ci * License as published by the Free Software Foundation; either 7cabdff1aSopenharmony_ci * version 2.1 of the License, or (at your option) any later version. 8cabdff1aSopenharmony_ci * 9cabdff1aSopenharmony_ci * FFmpeg is distributed in the hope that it will be useful, 10cabdff1aSopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of 11cabdff1aSopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12cabdff1aSopenharmony_ci * Lesser General Public License for more details. 13cabdff1aSopenharmony_ci * 14cabdff1aSopenharmony_ci * You should have received a copy of the GNU Lesser General Public 15cabdff1aSopenharmony_ci * License along with FFmpeg; if not, write to the Free Software 16cabdff1aSopenharmony_ci * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17cabdff1aSopenharmony_ci */ 18cabdff1aSopenharmony_ci 19cabdff1aSopenharmony_ci#ifndef AVCODEC_VP3DSP_H 20cabdff1aSopenharmony_ci#define AVCODEC_VP3DSP_H 21cabdff1aSopenharmony_ci 22cabdff1aSopenharmony_ci#include <stddef.h> 23cabdff1aSopenharmony_ci#include <stdint.h> 24cabdff1aSopenharmony_ci 25cabdff1aSopenharmony_citypedef struct VP3DSPContext { 26cabdff1aSopenharmony_ci /** 27cabdff1aSopenharmony_ci * Copy 8xH pixels from source to destination buffer using a bilinear 28cabdff1aSopenharmony_ci * filter with no rounding (i.e. *dst = (*a + *b) >> 1). 29cabdff1aSopenharmony_ci * 30cabdff1aSopenharmony_ci * @param dst destination buffer, aligned by 8 31cabdff1aSopenharmony_ci * @param a first source buffer, no alignment 32cabdff1aSopenharmony_ci * @param b second source buffer, no alignment 33cabdff1aSopenharmony_ci * @param stride distance between two lines in source/dest buffers 34cabdff1aSopenharmony_ci * @param h height 35cabdff1aSopenharmony_ci */ 36cabdff1aSopenharmony_ci void (*put_no_rnd_pixels_l2)(uint8_t *dst, 37cabdff1aSopenharmony_ci const uint8_t *a, 38cabdff1aSopenharmony_ci const uint8_t *b, 39cabdff1aSopenharmony_ci ptrdiff_t stride, int h); 40cabdff1aSopenharmony_ci 41cabdff1aSopenharmony_ci void (*idct_put)(uint8_t *dest, ptrdiff_t stride, int16_t *block); 42cabdff1aSopenharmony_ci void (*idct_add)(uint8_t *dest, ptrdiff_t stride, int16_t *block); 43cabdff1aSopenharmony_ci void (*idct_dc_add)(uint8_t *dest, ptrdiff_t stride, int16_t *block); 44cabdff1aSopenharmony_ci void (*v_loop_filter)(uint8_t *src, ptrdiff_t stride, int *bounding_values); 45cabdff1aSopenharmony_ci void (*h_loop_filter)(uint8_t *src, ptrdiff_t stride, int *bounding_values); 46cabdff1aSopenharmony_ci void (*v_loop_filter_unaligned)(uint8_t *src, ptrdiff_t stride, int *bounding_values); 47cabdff1aSopenharmony_ci void (*h_loop_filter_unaligned)(uint8_t *src, ptrdiff_t stride, int *bounding_values); 48cabdff1aSopenharmony_ci} VP3DSPContext; 49cabdff1aSopenharmony_ci 50cabdff1aSopenharmony_civoid ff_vp3dsp_v_loop_filter_12(uint8_t *first_pixel, ptrdiff_t stride, int *bounding_values); 51cabdff1aSopenharmony_civoid ff_vp3dsp_h_loop_filter_12(uint8_t *first_pixel, ptrdiff_t stride, int *bounding_values); 52cabdff1aSopenharmony_ci 53cabdff1aSopenharmony_civoid ff_vp3dsp_idct10_put(uint8_t *dest, ptrdiff_t stride, int16_t *block); 54cabdff1aSopenharmony_civoid ff_vp3dsp_idct10_add(uint8_t *dest, ptrdiff_t stride, int16_t *block); 55cabdff1aSopenharmony_ci 56cabdff1aSopenharmony_civoid ff_vp3dsp_init(VP3DSPContext *c, int flags); 57cabdff1aSopenharmony_civoid ff_vp3dsp_init_arm(VP3DSPContext *c, int flags); 58cabdff1aSopenharmony_civoid ff_vp3dsp_init_ppc(VP3DSPContext *c, int flags); 59cabdff1aSopenharmony_civoid ff_vp3dsp_init_x86(VP3DSPContext *c, int flags); 60cabdff1aSopenharmony_civoid ff_vp3dsp_init_mips(VP3DSPContext *c, int flags); 61cabdff1aSopenharmony_ci 62cabdff1aSopenharmony_civoid ff_vp3dsp_set_bounding_values(int * bound_values_array, int filter_limit); 63cabdff1aSopenharmony_ci 64cabdff1aSopenharmony_ci#endif /* AVCODEC_VP3DSP_H */ 65