[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.1, Fri Mar 8 02:44:46 2002 UTC revision 1.8.2.7, Sat Dec 14 06:07:03 2002 UTC
# Line 2  Line 2 
2  #define _IMAGE_H_  #define _IMAGE_H_
3    
4  #include "../portab.h"  #include "../portab.h"
5    #include "../global.h"
6  #include "colorspace.h"  #include "colorspace.h"
7    #include "../xvid.h"
8    
9  #define EDGE_SIZE  32  #define EDGE_SIZE  64
   
   
 typedef struct  
 {  
         uint8_t * y;  
         uint8_t * u;  
         uint8_t * v;  
 } IMAGE;  
10    
11  void init_image(uint32_t cpu_flags);  void init_image(uint32_t cpu_flags);
12    
 int32_t image_create(IMAGE * image, uint32_t edged_width, uint32_t edged_height);  
 void image_destroy(IMAGE * image, uint32_t edged_width, uint32_t edged_height);  
13    
14  void image_swap(IMAGE * image1, IMAGE * image2);  static void __inline
15  void image_copy(IMAGE *image1, IMAGE * image2, uint32_t edged_width, uint32_t height);  image_null(IMAGE * image)
16  void image_setedges(IMAGE * image, uint32_t edged_width, uint32_t edged_height, uint32_t width, uint32_t height);  {
17  void image_interpolate(const IMAGE * refn,          image->y = image->u = image->v = NULL;
18                                             IMAGE * refh, IMAGE * refv,  IMAGE * refhv,  }
                                            uint32_t edged_width, uint32_t edged_height, uint32_t rounding);  
19    
20  int image_input(IMAGE * image, uint32_t width, int height, uint32_t edged_width,  int32_t image_create(IMAGE * image,
21                          uint8_t * src, int csp);                                           uint32_t edged_width,
22                                             uint32_t edged_height);
23    void image_destroy(IMAGE * image,
24                                       uint32_t edged_width,
25                                       uint32_t edged_height);
26    
27    void image_swap(IMAGE * image1,
28                                    IMAGE * image2);
29    void image_copy(IMAGE * image1,
30                                    IMAGE * image2,
31                                    uint32_t edged_width,
32                                    uint32_t height);
33    void image_setedges(IMAGE * image,
34                                            uint32_t edged_width,
35                                            uint32_t edged_height,
36                                            uint32_t width,
37                                            uint32_t height);
38    void image_interpolate(const IMAGE * refn,
39                                               IMAGE * refh,
40                                               IMAGE * refv,
41                                               IMAGE * refhv,
42                                               uint32_t edged_width,
43                                               uint32_t edged_height,
44                                               uint32_t quarterpel,
45                                               uint32_t rounding);
46    
47    float image_psnr(IMAGE * orig_image,
48                                     IMAGE * recon_image,
49                                     uint16_t stride,
50                                     uint16_t width,
51                                     uint16_t height);
52    
53    
54    void
55    image_chroma_optimize(IMAGE * img, int width, int height, int edged_width);
56    
57    
58    int image_input(IMAGE * image,
59                                    uint32_t width,
60                                    int height,
61                                    uint32_t edged_width,
62                                    uint8_t * src,
63                                    int src_stride,
64                                    int csp,
65                                    int interlaced);
66    
67    int image_output(IMAGE * image,
68                                     uint32_t width,
69                                     int height,
70                                     uint32_t edged_width,
71                                     uint8_t * dst,
72                                     uint32_t dst_stride,
73                                     int csp,
74                                     int interlaced);
75    
76    
77    
78    int image_dump_yuvpgm(const IMAGE * image,
79                                              const uint32_t edged_width,
80                                              const uint32_t width,
81                                              const uint32_t height,
82                                              char *filename);
83    
84    float image_mad(const IMAGE * img1,
85                                    const IMAGE * img2,
86                                    uint32_t stride,
87                                    uint32_t width,
88                                    uint32_t height);
89    
90    void
91    output_slice(IMAGE * cur, int edged_width, int width, XVID_DEC_PICTURE* out_frm, int mbx, int mby,int mbl);
92    
93    
94    void
95    image_clear(IMAGE * img, int width, int height, int edged_width,
96                                            int y, int u, int v);
97    
98    
99    void
100    image_deblock_rrv(IMAGE * img, int edgeg_width,
101                                    const MACROBLOCK * mbs, int mb_width, int mb_height, int mb_stride,
102                                    int block, int flags);
103    
 int image_output(IMAGE * image, uint32_t width, int height, uint32_t edged_width,  
                         uint8_t * dst, uint32_t dst_stride, int csp);  
104    
105  #endif /* _IMAGE_H_ */  #endif /* _IMAGE_H_ */

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.8.2.7

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