Home | History | Annotate | Download | only in src
      1 /* ------------------------------------------------------------------
      2  * Copyright (C) 1998-2009 PacketVideo
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
     13  * express or implied.
     14  * See the License for the specific language governing permissions
     15  * and limitations under the License.
     16  * -------------------------------------------------------------------
     17  */
     18 #ifndef post_proc_H
     19 #define post_proc_H
     20 
     21 /*----------------------------------------------------------------------------
     22 ; INCLUDES
     23 ----------------------------------------------------------------------------*/
     24 #include    "mp4dec_lib.h"
     25 
     26 /*----------------------------------------------------------------------------
     27 ; MACROS
     28 ; Define module specific macros here
     29 ----------------------------------------------------------------------------*/
     30 
     31 /*----------------------------------------------------------------------------
     32 ; DEFINES
     33 ; Include all pre-processor statements here.
     34 ----------------------------------------------------------------------------*/
     35 #define UPDATE_PV_MAXPV_MIN(p,max,min) if ((p) > max) max=(p); else if ((p) < min) min = (p);
     36 
     37 #define     INDEX(x,thr)    (((x)>=thr)?1:0)
     38 #define     BLKSIZE     8
     39 #define     MBSIZE      16
     40 #define     DERING_THR  16
     41 
     42 /* version for fast Deblock filtering*/
     43 #define     KTh     4  /*threshold for soft filtering*/
     44 #define     KThH    4  /*threshold for hard filtering */
     45 
     46 #define     NoMMX
     47 
     48 /*----------------------------------------------------------------------------
     49 ; EXTERNAL VARIABLES REFERENCES
     50 ; Declare variables used in this module but defined elsewhere
     51 ----------------------------------------------------------------------------*/
     52 
     53 /*----------------------------------------------------------------------------
     54 ; SIMPLE TYPEDEF'S
     55 ----------------------------------------------------------------------------*/
     56 
     57 /*----------------------------------------------------------------------------
     58 ; ENUMERATED TYPEDEF'S
     59 ----------------------------------------------------------------------------*/
     60 
     61 /*----------------------------------------------------------------------------
     62 ; STRUCTURES TYPEDEF'S
     63 ----------------------------------------------------------------------------*/
     64 
     65 /*----------------------------------------------------------------------------
     66 ; GLOBAL FUNCTION DEFINITIONS
     67 ; Function Prototype declaration
     68 ----------------------------------------------------------------------------*/
     69 
     70 /*----------------------------------------------------------------------------
     71 ; END
     72 ----------------------------------------------------------------------------*/
     73 #endif
     74 
     75 
     76