00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef AVUTIL_IMGUTILS_H
00020 #define AVUTIL_IMGUTILS_H
00021
00030 #include "avutil.h"
00031 #include "pixdesc.h"
00032
00049 void av_image_fill_max_pixsteps(int max_pixsteps[4], int max_pixstep_comps[4],
00050 const AVPixFmtDescriptor *pixdesc);
00051
00058 int av_image_get_linesize(enum AVPixelFormat pix_fmt, int width, int plane);
00059
00067 int av_image_fill_linesizes(int linesizes[4], enum AVPixelFormat pix_fmt, int width);
00068
00080 int av_image_fill_pointers(uint8_t *data[4], enum AVPixelFormat pix_fmt, int height,
00081 uint8_t *ptr, const int linesizes[4]);
00082
00093 int av_image_alloc(uint8_t *pointers[4], int linesizes[4],
00094 int w, int h, enum AVPixelFormat pix_fmt, int align);
00095
00108 void av_image_copy_plane(uint8_t *dst, int dst_linesize,
00109 const uint8_t *src, int src_linesize,
00110 int bytewidth, int height);
00111
00118 void av_image_copy(uint8_t *dst_data[4], int dst_linesizes[4],
00119 const uint8_t *src_data[4], const int src_linesizes[4],
00120 enum AVPixelFormat pix_fmt, int width, int height);
00121
00148 int av_image_fill_arrays(uint8_t *dst_data[4], int dst_linesize[4],
00149 const uint8_t *src,
00150 enum AVPixelFormat pix_fmt, int width, int height, int align);
00151
00158 int av_image_get_buffer_size(enum AVPixelFormat pix_fmt, int width, int height, int align);
00159
00177 int av_image_copy_to_buffer(uint8_t *dst, int dst_size,
00178 const uint8_t * const src_data[4], const int src_linesize[4],
00179 enum AVPixelFormat pix_fmt, int width, int height, int align);
00180
00191 int av_image_check_size(unsigned int w, unsigned int h, int log_offset, void *log_ctx);
00192
00193 int avpriv_set_systematic_pal2(uint32_t pal[256], enum AVPixelFormat pix_fmt);
00194
00200 #endif