1 /* 2 * Copyright (c) 2005 Michael Niedermayer <michaelni@gmx.at> 3 * Copyright (c) 2014 Arwa Arif <arwaarif1994@gmail.com> 4 * 5 * This file is part of FFmpeg. 6 * 7 * FFmpeg is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 2 of the License, or 10 * (at your option) any later version. 11 * 12 * FFmpeg is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License along 18 * with FFmpeg; if not, write to the Free Software Foundation, Inc., 19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 20 */ 21 22 #ifndef AVFILTER_PP7_H 23 #define AVFILTER_PP7_H 24 25 #include "libavutil/video_enc_params.h" 26 #include "avfilter.h" 27 28 typedef struct PP7Context { 29 AVClass *class; 30 int thres2[99][16]; 31 32 int qp; 33 int mode; 34 enum AVVideoEncParamsType qscale_type; 35 int hsub; 36 int vsub; 37 int temp_stride; 38 uint8_t *src; 39 40 int (*requantize)(struct PP7Context *p, int16_t *src, int qp); 41 void (*dctB)(int16_t *dst, int16_t *src); 42 43 } PP7Context; 44 45 void ff_pp7_init_x86(PP7Context *pp7); 46 47 #endif /* AVFILTER_PP7_H */ 48