[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.4, Sat Apr 13 16:30:02 2002 UTC revision 1.8.2.2, Sat Oct 5 21:31:07 2002 UTC
# Line 3  Line 3 
3    
4  #include "../portab.h"  #include "../portab.h"
5  #include "colorspace.h"  #include "colorspace.h"
6    #include "../xvid.h"
7    
8  #define EDGE_SIZE  32  #define EDGE_SIZE  32
9    
# Line 12  Line 13 
13          uint8_t * y;          uint8_t * y;
14          uint8_t * u;          uint8_t * u;
15          uint8_t * v;          uint8_t * v;
16  } IMAGE;  }
17    IMAGE;
18    
19  void init_image(uint32_t cpu_flags);  void init_image(uint32_t cpu_flags);
20    
21  int32_t image_create(IMAGE * image, uint32_t edged_width, uint32_t edged_height);  int32_t image_create(IMAGE * image,
22  void image_destroy(IMAGE * image, uint32_t edged_width, uint32_t edged_height);                                           uint32_t edged_width,
23                                             uint32_t edged_height);
24    void image_destroy(IMAGE * image,
25                                       uint32_t edged_width,
26                                       uint32_t edged_height);
27    
28  void image_swap(IMAGE * image1, IMAGE * image2);  void image_swap(IMAGE * image1,
29  void image_copy(IMAGE *image1, IMAGE * image2, uint32_t edged_width, uint32_t height);                                  IMAGE * image2);
30  void image_setedges(IMAGE * image, uint32_t edged_width, uint32_t edged_height, uint32_t width, uint32_t height, uint32_t interlacing);  void image_copy(IMAGE * image1,
31                                    IMAGE * image2,
32                                    uint32_t edged_width,
33                                    uint32_t height);
34    void image_setedges(IMAGE * image,
35                                            uint32_t edged_width,
36                                            uint32_t edged_height,
37                                            uint32_t width,
38                                            uint32_t height);
39  void image_interpolate(const IMAGE * refn,  void image_interpolate(const IMAGE * refn,
40                                             IMAGE * refh, IMAGE * refv,  IMAGE * refhv,                                             IMAGE * refh,
41                                             uint32_t edged_width, uint32_t edged_height, uint32_t rounding);                                             IMAGE * refv,
42                                               IMAGE * refhv,
43  float image_psnr(IMAGE *orig_image, IMAGE *recon_image,                                             uint32_t edged_width,
44                uint16_t stride, uint16_t width, uint16_t height);                                             uint32_t edged_height,
45                                               uint32_t quarterpel,
46                                               uint32_t rounding);
47    
48    float image_psnr(IMAGE * orig_image,
49                                     IMAGE * recon_image,
50                                     uint16_t stride,
51                                     uint16_t width,
52                                     uint16_t height);
53    
54    
55  int image_input(IMAGE * image, uint32_t width, int height, uint32_t edged_width,  int image_input(IMAGE * image,
56                          uint8_t * src, int csp);                                  uint32_t width,
57                                    int height,
58                                    uint32_t edged_width,
59                                    uint8_t * src,
60                                    int csp);
61    
62  int image_output(IMAGE * image, uint32_t width, int height, uint32_t edged_width,  int image_output(IMAGE * image,
63                          uint8_t * dst, uint32_t dst_stride, int csp);                                   uint32_t width,
64                                     int height,
65                                     uint32_t edged_width,
66                                     uint8_t * dst,
67                                     uint32_t dst_stride,
68                                     int csp);
69    
70    
71    
72  int image_dump_yuvpgm(IMAGE * image,  int image_dump_yuvpgm(const IMAGE * image,
73                                  uint32_t edged_width,                                            const uint32_t edged_width,
74                              uint32_t width, uint32_t height,                                            const uint32_t width,
75                                              const uint32_t height,
76                             char * filename);                             char * filename);
77    
78  float image_mad(const IMAGE * img1, const IMAGE * img2, uint32_t stride,  float image_mad(const IMAGE * img1,
79                                          uint32_t width, uint32_t height);                                  const IMAGE * img2,
80                                    uint32_t stride,
81                                    uint32_t width,
82                                    uint32_t height);
83    
84    void
85    output_slice(IMAGE * cur, int edged_width, int width, XVID_DEC_PICTURE* out_frm, int mbx, int mby,int mbl);
86    
87  #endif /* _IMAGE_H_ */  #endif /* _IMAGE_H_ */

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.8.2.2

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