3 |
* XVID MPEG-4 VIDEO CODEC |
* XVID MPEG-4 VIDEO CODEC |
4 |
* - Postprocessing header - |
* - Postprocessing header - |
5 |
* |
* |
6 |
* Copyright(C) 2003 Michael Militzer <isibaar@xvid.org> |
* Copyright(C) 2003-2010 Michael Militzer <isibaar@xvid.org> |
7 |
* |
* |
8 |
* This program is free software ; you can redistribute it and/or modify |
* 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 |
* it under the terms of the GNU General Public License as published by |
19 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
* |
* |
22 |
* $Id: postprocessing.h,v 1.6 2004-07-15 10:08:22 suxen_drol Exp $ |
* $Id: postprocessing.h,v 1.7 2010-12-18 10:13:38 Isibaar Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
49 |
int prev_quant; |
int prev_quant; |
50 |
} XVID_POSTPROC; |
} XVID_POSTPROC; |
51 |
|
|
52 |
|
typedef struct |
53 |
|
{ |
54 |
|
pthread_t handle; /* thread's handle */ |
55 |
|
|
56 |
|
XVID_POSTPROC *tbls; |
57 |
|
IMAGE * img; |
58 |
|
const MACROBLOCK * mbs; |
59 |
|
|
60 |
|
int stride; |
61 |
|
int start_x; |
62 |
|
int stop_x; |
63 |
|
int start_y; |
64 |
|
int stop_y; |
65 |
|
int mb_stride; |
66 |
|
int flags; |
67 |
|
} SMPDeblock; |
68 |
|
|
69 |
void |
void |
70 |
image_postproc(XVID_POSTPROC *tbls, IMAGE * img, int edged_width, |
image_postproc(XVID_POSTPROC *tbls, IMAGE * img, int edged_width, |
71 |
const MACROBLOCK * mbs, int mb_width, int mb_height, int mb_stride, |
const MACROBLOCK * mbs, int mb_width, int mb_height, int mb_stride, |
72 |
int flags, int brightness, int frame_num, int bvop); |
int flags, int brightness, int frame_num, int bvop, int threads); |
73 |
|
|
74 |
void deblock8x8_h(XVID_POSTPROC *tbls, uint8_t *img, int stride, int quant, int dering); |
void deblock8x8_h(XVID_POSTPROC *tbls, uint8_t *img, int stride, int quant, int dering); |
75 |
void deblock8x8_v(XVID_POSTPROC *tbls, uint8_t *img, int stride, int quant, int dering); |
void deblock8x8_v(XVID_POSTPROC *tbls, uint8_t *img, int stride, int quant, int dering); |