FFmpeg
vf_spp.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at>
3  * Copyright (c) 2013 Clément Bœsch
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_SPP_H
23 #define AVFILTER_SPP_H
24 
25 #include "libavcodec/avdct.h"
26 #include "avfilter.h"
27 
28 #define MAX_LEVEL 6 /* quality levels */
29 
30 typedef struct SPPContext {
31  const AVClass *av_class;
32 
34  int qp;
35  int mode;
39  uint16_t *temp;
41  int8_t *non_b_qp_table;
44  int hsub, vsub;
45 
46  void (*store_slice)(uint8_t *dst, const int16_t *src,
47  int dst_stride, int src_stride,
48  int width, int height, int log2_scale,
49  const uint8_t dither[8][8]);
50 
51  void (*requantize)(int16_t dst[64], const int16_t src[64],
52  int qp, const uint8_t *permutation);
53 } SPPContext;
54 
56 
57 #endif /* AVFILTER_SPP_H */
void(* store_slice)(uint8_t *dst, const int16_t *src, int dst_stride, int src_stride, int width, int height, int log2_scale, const uint8_t dither[8][8])
Definition: vf_spp.h:46
int use_bframe_qp
Definition: vf_spp.h:43
int hsub
Definition: vf_spp.h:44
Main libavfilter public API header.
int log2_count
Definition: vf_spp.h:33
const AVClass * av_class
Definition: vf_spp.h:31
uint8_t
#define height
int non_b_qp_alloc_size
Definition: vf_spp.h:42
static const uint8_t dither[8][8]
Definition: vf_fspp.c:57
int temp_linesize
Definition: vf_spp.h:37
int8_t * non_b_qp_table
Definition: vf_spp.h:41
void ff_spp_init_x86(SPPContext *s)
Definition: vf_spp.c:221
#define width
typedef void(APIENTRY *FF_PFNGLACTIVETEXTUREPROC)(GLenum texture)
#define s(width, name)
Definition: cbs_vp9.c:257
int qscale_type
Definition: vf_spp.h:36
AVDCT * dct
Definition: vf_spp.h:40
int vsub
Definition: vf_spp.h:44
uint16_t * temp
Definition: vf_spp.h:39
Describe the class of an AVClass context structure.
Definition: log.h:67
int qp
Definition: vf_spp.h:34
void(* requantize)(int16_t dst[64], const int16_t src[64], int qp, const uint8_t *permutation)
Definition: vf_spp.h:51
AVDCT context.
Definition: avdct.h:29
int mode
Definition: vf_spp.h:35
uint8_t * src
Definition: vf_spp.h:38