~ubuntu-branches/ubuntu/trusty/gst-libav1.0/trusty-proposed

« back to all changes in this revision

Viewing changes to gst-libs/ext/libav/libavutil/imgutils.h

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2013-09-24 17:07:00 UTC
  • mfrom: (1.1.17) (7.1.9 experimental)
  • Revision ID: package-import@ubuntu.com-20130924170700-4dg62s3pwl0pdakz
Tags: 1.2.0-1
* New upstream stable release:
  + debian/control:
    - Build depend on GStreamer and gst-plugins-base >= 1.2.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
 *
56
56
 * @return the computed size in bytes
57
57
 */
58
 
int av_image_get_linesize(enum PixelFormat pix_fmt, int width, int plane);
 
58
int av_image_get_linesize(enum AVPixelFormat pix_fmt, int width, int plane);
59
59
 
60
60
/**
61
61
 * Fill plane linesizes for an image with pixel format pix_fmt and
64
64
 * @param linesizes array to be filled with the linesize for each plane
65
65
 * @return >= 0 in case of success, a negative error code otherwise
66
66
 */
67
 
int av_image_fill_linesizes(int linesizes[4], enum PixelFormat pix_fmt, int width);
 
67
int av_image_fill_linesizes(int linesizes[4], enum AVPixelFormat pix_fmt, int width);
68
68
 
69
69
/**
70
70
 * Fill plane data pointers for an image with pixel format pix_fmt and
77
77
 * @return the size in bytes required for the image buffer, a negative
78
78
 * error code in case of failure
79
79
 */
80
 
int av_image_fill_pointers(uint8_t *data[4], enum PixelFormat pix_fmt, int height,
 
80
int av_image_fill_pointers(uint8_t *data[4], enum AVPixelFormat pix_fmt, int height,
81
81
                           uint8_t *ptr, const int linesizes[4]);
82
82
 
83
83
/**
91
91
 * error code in case of failure
92
92
 */
93
93
int av_image_alloc(uint8_t *pointers[4], int linesizes[4],
94
 
                   int w, int h, enum PixelFormat pix_fmt, int align);
 
94
                   int w, int h, enum AVPixelFormat pix_fmt, int align);
95
95
 
96
96
/**
97
97
 * Copy image plane from src to dst.
114
114
 */
115
115
void av_image_copy(uint8_t *dst_data[4], int dst_linesizes[4],
116
116
                   const uint8_t *src_data[4], const int src_linesizes[4],
117
 
                   enum PixelFormat pix_fmt, int width, int height);
 
117
                   enum AVPixelFormat pix_fmt, int width, int height);
118
118
 
119
119
/**
120
120
 * Check if the given dimension of an image is valid, meaning that all
128
128
 */
129
129
int av_image_check_size(unsigned int w, unsigned int h, int log_offset, void *log_ctx);
130
130
 
131
 
int ff_set_systematic_pal2(uint32_t pal[256], enum PixelFormat pix_fmt);
 
131
int avpriv_set_systematic_pal2(uint32_t pal[256], enum AVPixelFormat pix_fmt);
132
132
 
133
133
/**
134
134
 * @}