1
/*****************************************************************************
2
* postprocessing_common.h
3
*****************************************************************************
4
* Copyright (C) 2001 VideoLAN
5
* $Id: postprocessing_common.h 6961 2004-03-05 17:34:23Z sam $
7
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
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.
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.
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
*****************************************************************************/
25
#define PP_USE_3DNOW /* Nothing done yet */
26
#define PP_USE_MMX /* when only MMX is supported */
27
#define PP_USE_MMXEXT /* when MMXEXT is also supported, imply MMX */
31
/* thresholds for deblocking, I've taken value given by ISO */
32
#define PP_THR1 2ULL /* threshold for deblocking */
34
#define PP_2xTHR1 ( 2 * PP_THR1 )/* internal usage */
40
/* Some usefull macros */
41
#define PP_MAX( a, b ) ( a > b ? (a) : (b) )
42
#define PP_MIN( a, b ) ( a < b ? (a) : (b) )
43
#define PP_ABS( x ) ( ( x < 0 ) ? (-(x)) : (x) )
44
#define PP_SGN( x ) ( ( x < 0 ) ? -1 : 1 )
45
#define PP_MIN3( a, b, c ) ( PP_MIN( (a), PP_MIN( (b), (c) ) ) )
46
#define PP_CLIP( x, a, b ) ( PP_MAX( (a), PP_MIN( (x), (b) ) ) )
48
void E_( pp_deblock_V )();
49
void E_( pp_deblock_H )();
51
void E_( pp_dering_Y )();
52
void E_( pp_dering_C )();