[cvs] / xvidcore / src / image / image.h Repository:
ViewVC logotype

Diff of /xvidcore/src/image/image.h

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

revision 1.8, Sun Jul 21 03:30:25 2002 UTC revision 1.8.2.8, Sat Dec 14 09:39:42 2002 UTC
# Line 1  Line 1 
1  #ifndef _IMAGE_H_  #ifndef _IMAGE_H_
2  #define _IMAGE_H_  #define _IMAGE_H_
3    
4    #include <stdlib.h>
5    
6  #include "../portab.h"  #include "../portab.h"
7    #include "../global.h"
8  #include "colorspace.h"  #include "colorspace.h"
9  #include "../xvid.h"  #include "../xvid.h"
10    
11  #define EDGE_SIZE  32  #define EDGE_SIZE  64
12    
13    void init_image(uint32_t cpu_flags);
14    
15    
16  typedef struct  static void __inline
17    image_null(IMAGE * image)
18  {  {
19          uint8_t *y;          image->y = image->u = image->v = NULL;
         uint8_t *u;  
         uint8_t *v;  
20  }  }
 IMAGE;  
   
 void init_image(uint32_t cpu_flags);  
21    
22  int32_t image_create(IMAGE * image,  int32_t image_create(IMAGE * image,
23                                           uint32_t edged_width,                                           uint32_t edged_width,
# Line 35  Line 36 
36                                          uint32_t edged_width,                                          uint32_t edged_width,
37                                          uint32_t edged_height,                                          uint32_t edged_height,
38                                          uint32_t width,                                          uint32_t width,
39                                          uint32_t height,                                          uint32_t height);
                                         uint32_t interlacing);  
40  void image_interpolate(const IMAGE * refn,  void image_interpolate(const IMAGE * refn,
41                                             IMAGE * refh,                                             IMAGE * refh,
42                                             IMAGE * refv,                                             IMAGE * refv,
43                                             IMAGE * refhv,                                             IMAGE * refhv,
44                                             uint32_t edged_width,                                             uint32_t edged_width,
45                                             uint32_t edged_height,                                             uint32_t edged_height,
46                                               uint32_t quarterpel,
47                                             uint32_t rounding);                                             uint32_t rounding);
48    
49  float image_psnr(IMAGE * orig_image,  float image_psnr(IMAGE * orig_image,
# Line 52  Line 53 
53                                   uint16_t height);                                   uint16_t height);
54    
55    
56    void
57    image_chroma_optimize(IMAGE * img, int width, int height, int edged_width);
58    
59    
60  int image_input(IMAGE * image,  int image_input(IMAGE * image,
61                                  uint32_t width,                                  uint32_t width,
62                                  int height,                                  int height,
63                                  uint32_t edged_width,                                  uint32_t edged_width,
64                                  uint8_t * src,                                  uint8_t * src,
65                                  int csp);                                  int src_stride,
66                                    int csp,
67                                    int interlaced);
68    
69  int image_output(IMAGE * image,  int image_output(IMAGE * image,
70                                   uint32_t width,                                   uint32_t width,
# Line 65  Line 72 
72                                   uint32_t edged_width,                                   uint32_t edged_width,
73                                   uint8_t * dst,                                   uint8_t * dst,
74                                   uint32_t dst_stride,                                   uint32_t dst_stride,
75                                   int csp);                                   int csp,
76                                     int interlaced);
77    
78    
79    
# Line 84  Line 92 
92  void  void
93  output_slice(IMAGE * cur, int edged_width, int width, XVID_DEC_PICTURE* out_frm, int mbx, int mby,int mbl);  output_slice(IMAGE * cur, int edged_width, int width, XVID_DEC_PICTURE* out_frm, int mbx, int mby,int mbl);
94    
95    
96    void
97    image_clear(IMAGE * img, int width, int height, int edged_width,
98                                            int y, int u, int v);
99    
100    
101    void
102    image_deblock_rrv(IMAGE * img, int edgeg_width,
103                                    const MACROBLOCK * mbs, int mb_width, int mb_height, int mb_stride,
104                                    int block, int flags);
105    
106    
107  #endif                                                  /* _IMAGE_H_ */  #endif                                                  /* _IMAGE_H_ */

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.8.2.8

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