28 for (y = -1; y<UINT_MAX; y+= y/2 + 1) {
29 for (x = -1; x<UINT_MAX; x+= x/2 + 1) {
31 printf(
"%d", ret >= 0);
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];
53 printf(
"%-16s",
desc->name);
55 printf(
"planes: %d",
i);
57 printf(
", linesizes:");
58 for (
i = 0;
i < 4;
i++)
59 printf(
" %3d", linesizes[
i]);
61 printf(
", plane_sizes:");
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);
static enum AVPixelFormat pix_fmt
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...
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_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.
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 const int sizes[][2]
#define PTRDIFF_SPECIFIER
enum AVPixelFormat av_pix_fmt_desc_get_id(const AVPixFmtDescriptor *desc)
const AVPixFmtDescriptor * av_pix_fmt_desc_next(const AVPixFmtDescriptor *prev)
Iterate over all pixel format descriptors known to libavutil.
AVPixelFormat
Pixel format.
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...