[svn] / branches / dev-api-4 / xvidcore / src / image / postprocessing.h Repository:
ViewVC logotype

Diff of /branches/dev-api-4/xvidcore/src/image/postprocessing.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1296, Sun Dec 21 17:38:17 2003 UTC revision 1297, Sun Dec 21 19:42:11 2003 UTC
# Line 19  Line 19 
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.1.4.3 2003-12-17 17:07:38 Isibaar Exp $   * $Id: postprocessing.h,v 1.1.4.4 2003-12-21 19:42:11 Isibaar Exp $
23   *   *
24   ****************************************************************************/   ****************************************************************************/
25    
# Line 27  Line 27 
27  #define _POSTPROCESSING_H_  #define _POSTPROCESSING_H_
28    
29  #include <stdlib.h>  #include <stdlib.h>
   
30  #include "../portab.h"  #include "../portab.h"
31    
32    /* Filtering thresholds */
33    
34    #define THR1 2
35    #define THR2 6
36    
37    #define MAX_NOISE 4096
38    #define MAX_SHIFT 1024
39    #define MAX_RES (MAX_NOISE - MAX_SHIFT)
40    
41    typedef struct {
42            int8_t xvid_thresh_tbl[510];
43            int8_t xvid_abs_tbl[510];
44            int8_t xvid_noise1[MAX_NOISE * sizeof(int8_t)];
45            int8_t xvid_noise2[MAX_NOISE * sizeof(int8_t)];
46            int8_t *xvid_prev_shift[MAX_RES][6];
47            int prev_quant;
48    } XVID_POSTPROC;
49    
50  void  void
51  image_postproc(IMAGE * img, int edged_width,  image_postproc(XVID_POSTPROC *tbls, IMAGE * img, int edged_width,
52                                  const MACROBLOCK * mbs, int mb_width, int mb_height, int mb_stride,                                  const MACROBLOCK * mbs, int mb_width, int mb_height, int mb_stride,
53                                  int flags, int frame_num);                                  int flags, int frame_num, int bvop);
54    
55  void deblock8x8_h(uint8_t *img, int stride, int quant);  void deblock8x8_h(XVID_POSTPROC *tbls, uint8_t *img, int stride, int quant);
56  void deblock8x8_v(uint8_t *img, int stride, int quant);  void deblock8x8_v(XVID_POSTPROC *tbls, uint8_t *img, int stride, int quant);
57    
58  void init_postproc(void);  void init_postproc(XVID_POSTPROC *tbls);
59  void init_noise(void);  void init_noise(XVID_POSTPROC *tbls);
60  void init_deblock(void);  void init_deblock(XVID_POSTPROC *tbls);
61    
62  void add_noise(uint8_t *dst, uint8_t *src, int stride, int width, int height, int shiftptr);  void add_noise(XVID_POSTPROC * tbls, uint8_t *dst, uint8_t *src, int stride, int width, int height, int shiftptr, int quant);
63    
64  #endif  #endif

Legend:
Removed from v.1296  
changed lines
  Added in v.1297

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4