Revision 9b7269e3 libavcore/imgutils.h

View differences:

libavcore/imgutils.h
43 43
 * @param max_pixstep_comps an array which is filled with the component
44 44
 * for each plane which has the max pixel step. May be NULL.
45 45
 */
46
void av_fill_image_max_pixsteps(int max_pixsteps[4], int max_pixstep_comps[4],
46
void av_image_fill_max_pixsteps(int max_pixsteps[4], int max_pixstep_comps[4],
47 47
                                const AVPixFmtDescriptor *pixdesc);
48 48

  
49 49
/**
......
52 52
 *
53 53
 * @return the computed size in bytes
54 54
 */
55
int av_get_image_linesize(enum PixelFormat pix_fmt, int width, int plane);
55
int av_image_get_linesize(enum PixelFormat pix_fmt, int width, int plane);
56 56

  
57 57
/**
58 58
 * Fill plane linesizes for an image with pixel format pix_fmt and
......
61 61
 * @param linesizes array to be filled with the linesize for each plane
62 62
 * @return >= 0 in case of success, a negative error code otherwise
63 63
 */
64
int av_fill_image_linesizes(int linesizes[4], enum PixelFormat pix_fmt, int width);
64
int av_image_fill_linesizes(int linesizes[4], enum PixelFormat pix_fmt, int width);
65 65

  
66 66
/**
67 67
 * Fill plane data pointers for an image with pixel format pix_fmt and
......
74 74
 * @return the size in bytes required for the image buffer, a negative
75 75
 * error code in case of failure
76 76
 */
77
int av_fill_image_pointers(uint8_t *data[4], enum PixelFormat pix_fmt, int height,
77
int av_image_fill_pointers(uint8_t *data[4], enum PixelFormat pix_fmt, int height,
78 78
                           uint8_t *ptr, const int linesizes[4]);
79 79

  
80 80
/**
......
87 87
 * @param log_ctx the parent logging context, it may be NULL
88 88
 * @return >= 0 if valid, a negative error code otherwise
89 89
 */
90
int av_image_check_size(unsigned int w, unsigned int h, int log_offset, void *log_ctx);
91

  
92
#if FF_API_OLD_IMAGE_NAMES
93
attribute_deprecated
94
void av_fill_image_max_pixsteps(int max_pixsteps[4], int max_pixstep_comps[4],
95
                                const AVPixFmtDescriptor *pixdesc);
96

  
97
attribute_deprecated
98
int av_get_image_linesize(enum PixelFormat pix_fmt, int width, int plane);
99

  
100
attribute_deprecated
101
int av_fill_image_linesizes(int linesizes[4], enum PixelFormat pix_fmt, int width);
102

  
103
attribute_deprecated
104
int av_fill_image_pointers(uint8_t *data[4], enum PixelFormat pix_fmt, int height,
105
                           uint8_t *ptr, const int linesizes[4]);
106

  
107
attribute_deprecated
90 108
int av_check_image_size(unsigned int w, unsigned int h, int log_offset, void *log_ctx);
109
#endif
91 110

  
92 111
#endif /* AVCORE_IMGUTILS_H */

Also available in: Unified diff