Parent Directory
|
Revision Log
Revision 1.1.4.5 - (view) (download)
1 : | Isibaar | 1.1.4.1 | /***************************************************************************** |
2 : | * | ||
3 : | * XVID MPEG-4 VIDEO CODEC | ||
4 : | * - Postprocessing header - | ||
5 : | * | ||
6 : | edgomez | 1.1.4.2 | * Copyright(C) 2003 Michael Militzer <isibaar@xvid.org> |
7 : | Isibaar | 1.1.4.1 | * |
8 : | * This program is free software ; you can redistribute it and/or modify | ||
9 : | * it under the terms of the GNU General Public License as published by | ||
10 : | * the Free Software Foundation ; either version 2 of the License, or | ||
11 : | * (at your option) any later version. | ||
12 : | * | ||
13 : | * This program is distributed in the hope that it will be useful, | ||
14 : | * but WITHOUT ANY WARRANTY ; without even the implied warranty of | ||
15 : | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 : | * GNU General Public License for more details. | ||
17 : | * | ||
18 : | * You should have received a copy of the GNU General Public License | ||
19 : | * along with this program ; if not, write to the Free Software | ||
20 : | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
21 : | * | ||
22 : | Isibaar | 1.1.4.5 | * $Id: postprocessing.h,v 1.1.4.4 2003/12/21 19:42:11 Isibaar Exp $ |
23 : | edgomez | 1.1.4.2 | * |
24 : | Isibaar | 1.1.4.1 | ****************************************************************************/ |
25 : | |||
26 : | #ifndef _POSTPROCESSING_H_ | ||
27 : | #define _POSTPROCESSING_H_ | ||
28 : | |||
29 : | #include <stdlib.h> | ||
30 : | #include "../portab.h" | ||
31 : | |||
32 : | Isibaar | 1.1.4.4 | /* Filtering thresholds */ |
33 : | |||
34 : | #define THR1 2 | ||
35 : | #define THR2 6 | ||
36 : | |||
37 : | #define MAX_NOISE 4096 | ||
38 : | #define MAX_SHIFT 1024 | ||
39 : | #define MAX_RES (MAX_NOISE - MAX_SHIFT) | ||
40 : | |||
41 : | typedef struct { | ||
42 : | Isibaar | 1.1.4.5 | int8_t xvid_thresh_tbl[511]; |
43 : | int8_t xvid_abs_tbl[511]; | ||
44 : | Isibaar | 1.1.4.4 | int8_t xvid_noise1[MAX_NOISE * sizeof(int8_t)]; |
45 : | int8_t xvid_noise2[MAX_NOISE * sizeof(int8_t)]; | ||
46 : | int8_t *xvid_prev_shift[MAX_RES][6]; | ||
47 : | int prev_quant; | ||
48 : | } XVID_POSTPROC; | ||
49 : | |||
50 : | Isibaar | 1.1.4.1 | void |
51 : | Isibaar | 1.1.4.4 | image_postproc(XVID_POSTPROC *tbls, IMAGE * img, int edged_width, |
52 : | Isibaar | 1.1.4.1 | const MACROBLOCK * mbs, int mb_width, int mb_height, int mb_stride, |
53 : | Isibaar | 1.1.4.4 | int flags, int frame_num, int bvop); |
54 : | Isibaar | 1.1.4.1 | |
55 : | Isibaar | 1.1.4.4 | void deblock8x8_h(XVID_POSTPROC *tbls, uint8_t *img, int stride, int quant); |
56 : | void deblock8x8_v(XVID_POSTPROC *tbls, uint8_t *img, int stride, int quant); | ||
57 : | Isibaar | 1.1.4.1 | |
58 : | Isibaar | 1.1.4.4 | void init_postproc(XVID_POSTPROC *tbls); |
59 : | void init_noise(XVID_POSTPROC *tbls); | ||
60 : | void init_deblock(XVID_POSTPROC *tbls); | ||
61 : | Isibaar | 1.1.4.3 | |
62 : | Isibaar | 1.1.4.4 | void add_noise(XVID_POSTPROC * tbls, uint8_t *dst, uint8_t *src, int stride, int width, int height, int shiftptr, int quant); |
63 : | Isibaar | 1.1.4.1 | |
64 : | edgomez | 1.1.4.2 | #endif |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |