new postprocess code by Michael Niedermayer (michaelni@gmx.at)
[libav.git] / postproc / postprocess.h
CommitLineData
3057fa66
A
1/*
2 Copyright (C) 2001 Michael Niedermayer (michaelni@gmx.at)
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17*/
18
19
20#ifndef POSTPROCESS_H
21#define POSTPROCESS_H
22
23#define BLOCK_SIZE 8
24
25#define TEMP_STRIDE 8
26#define TIMEING
27#define MORE_TIMEING
28
29#define MIN(a,b) ((a) > (b) ? (b) : (a))
30#define MAX(a,b) ((a) < (b) ? (b) : (a))
31#define ABS(a) ((a) > 0 ? (a) : (-(a)))
32#define SIGN(a) ((a) > 0 ? 1 : -1)
33
34#define QP_STORE_T int
35
36#ifdef __cplusplus
37//#include <inttypes.h>
38
39void postProcess(uint8_t src[], int srcStride, uint8_t dst[], int dstStride, int width, int height,
40 QP_STORE_T QPs[], int QPStride, bool isColor);
41#endif
42
43#ifdef __cplusplus
44extern "C"
45{
46#endif
47void postprocess(unsigned char * src[], int src_stride,
48 unsigned char * dst[], int dst_stride,
49 int horizontal_size, int vertical_size,
50 QP_STORE_T *QP_store, int QP_stride,
51 int mode);
52#ifdef __cplusplus
53}
54#endif
55
56
57#endif