]> git.sesse.net Git - vlc/blob - modules/codec/ffmpeg/postprocessing/postprocessing.h
* include/vlc_common.h:
[vlc] / modules / codec / ffmpeg / postprocessing / postprocessing.h
1 /*****************************************************************************
2  * postprocessing.h
3  *****************************************************************************
4  * Copyright (C) 2001 VideoLAN
5  * $Id: postprocessing.h,v 1.3 2003/10/25 00:49:14 sam Exp $
6  *
7  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
22  *****************************************************************************/
23
24 #define QT_STORE_T int8_t
25
26 /* postprocessing available using to create i_mode */
27 #define PP_DEBLOCK_Y_H 0x00000001
28 #define PP_DEBLOCK_Y_V 0x00000002
29 #define PP_DEBLOCK_C_H 0x00000004
30 #define PP_DEBLOCK_C_V 0x00000008
31
32 #define PP_DERING_Y    0x00000010
33 #define PP_DERING_C    0x00000020
34
35 #define PP_AUTOLEVEL   0x80000000
36
37 /* error code, not really used */
38 #define PP_ERR_OK               0 /* no problem */
39 #define PP_ERR_INVALID_PICTURE  1 /* wrong picture size or chroma */
40 #define PP_ERR_INVALID_QP       2 /* need valid QP to make the postprocess */
41 #define PP_ERR_UNKNOWN        255
42
43
44 typedef struct postprocessing_s
45 {
46     VLC_COMMON_MEMBERS
47
48     module_t * p_module;
49
50     uint32_t (*pf_getmode)( int i_quality, int b_autolevel );
51
52     int (*pf_postprocess)( picture_t *p_pic,
53                            QT_STORE_T *p_QP_store, unsigned int i_QP_stride,
54                            unsigned int i_mode );
55 } postprocessing_t;
56