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.3 2004-04-01 11:11:28 suxen_drol Exp $ |
* $Id: postprocessing.h,v 1.6 2004-07-15 10:08:22 suxen_drol Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
38 |
#define MAX_SHIFT 1024 |
#define MAX_SHIFT 1024 |
39 |
#define MAX_RES (MAX_NOISE - MAX_SHIFT) |
#define MAX_RES (MAX_NOISE - MAX_SHIFT) |
40 |
|
|
41 |
|
#define DERING_STRENGTH 2 |
42 |
|
|
43 |
typedef struct { |
typedef struct { |
44 |
int8_t xvid_thresh_tbl[511]; |
int8_t xvid_thresh_tbl[511]; |
45 |
uint8_t xvid_abs_tbl[511]; |
uint8_t xvid_abs_tbl[511]; |
54 |
const MACROBLOCK * mbs, int mb_width, int mb_height, int mb_stride, |
const MACROBLOCK * mbs, int mb_width, int mb_height, int mb_stride, |
55 |
int flags, int brightness, int frame_num, int bvop); |
int flags, int brightness, int frame_num, int bvop); |
56 |
|
|
57 |
void deblock8x8_h(XVID_POSTPROC *tbls, uint8_t *img, int stride, int quant); |
void deblock8x8_h(XVID_POSTPROC *tbls, uint8_t *img, int stride, int quant, int dering); |
58 |
void deblock8x8_v(XVID_POSTPROC *tbls, uint8_t *img, int stride, int quant); |
void deblock8x8_v(XVID_POSTPROC *tbls, uint8_t *img, int stride, int quant, int dering); |
59 |
|
|
60 |
void init_postproc(XVID_POSTPROC *tbls); |
void init_postproc(XVID_POSTPROC *tbls); |
61 |
void init_noise(XVID_POSTPROC *tbls); |
void init_noise(XVID_POSTPROC *tbls); |
62 |
void init_deblock(XVID_POSTPROC *tbls); |
void init_deblock(XVID_POSTPROC *tbls); |
63 |
|
|
|
|
|
64 |
void add_noise(XVID_POSTPROC * tbls, uint8_t *dst, uint8_t *src, int stride, int width, int height, int shiftptr, int quant); |
void add_noise(XVID_POSTPROC * tbls, uint8_t *dst, uint8_t *src, int stride, int width, int height, int shiftptr, int quant); |
65 |
|
|
66 |
|
|
75 |
|
|
76 |
IMAGEBRIGHTNESS image_brightness_c; |
IMAGEBRIGHTNESS image_brightness_c; |
77 |
IMAGEBRIGHTNESS image_brightness_mmx; |
IMAGEBRIGHTNESS image_brightness_mmx; |
78 |
|
IMAGEBRIGHTNESS image_brightness_sse2; |
79 |
|
|
80 |
#endif |
#endif |