Go to the documentation of this file.
28 for (y = -1; y<UINT_MAX; y+= y/2 + 1) {
29 for (x = -1; x<UINT_MAX; x+= x/2 + 1) {
40 ptrdiff_t linesizes1[4],
offsets[3] = { 0 };
41 int i, total_size,
w = 64,
h = 48, linesizes[4];
46 for (
i = 0;
i < 4;
i++)
47 linesizes1[
i] = linesizes[
i];
58 for (
i = 0;
i < 4;
i++)
62 for (
i = 0;
i < 4;
i++)
65 for (
i = 0;
i < 3 &&
data[
i + 1];
i++)
67 printf(
", plane_offsets:");
68 for (
i = 0;
i < 3;
i++)
70 printf(
", total_size: %d\n", total_size);
AVPixelFormat
Pixel format.
const AVPixFmtDescriptor * av_pix_fmt_desc_next(const AVPixFmtDescriptor *prev)
Iterate over all pixel format descriptors known to libavutil.
int av_image_fill_pointers(uint8_t *data[4], enum AVPixelFormat pix_fmt, int height, uint8_t *ptr, const int linesizes[4])
Fill plane data pointers for an image with pixel format pix_fmt and height height.
int av_image_fill_linesizes(int linesizes[4], enum AVPixelFormat pix_fmt, int width)
Fill plane linesizes for an image with pixel format pix_fmt and width width.
static const int offsets[]
static enum AVPixelFormat pix_fmt
#define PTRDIFF_SPECIFIER
static const int sizes[][2]
int av_image_fill_plane_sizes(size_t sizes[4], enum AVPixelFormat pix_fmt, int height, const ptrdiff_t linesizes[4])
Fill plane sizes for an image with pixel format pix_fmt and height height.
printf("static const uint8_t my_array[100] = {\n")
enum AVPixelFormat av_pix_fmt_desc_get_id(const AVPixFmtDescriptor *desc)
#define i(width, name, range_min, range_max)
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...
int av_image_check_size(unsigned int w, unsigned int h, int log_offset, void *log_ctx)
Check if the given dimension of an image is valid, meaning that all bytes of the image can be address...