46 unsigned i, j, k = 0, m_count;
95 for (count = 0; fmts[count] != -1; count++)
102 memcpy(formats->
formats, fmts,
sizeof(*formats->
formats) * count);
115 sizeof(*(*avff)->formats) * ((*avff)->format_count+1));
119 (*avff)->formats = fmts;
120 (*avff)->formats[(*avff)->format_count++] = fmt;
131 for (fmt = 0; fmt < num_formats; fmt++)
149 for(i = 0; i < (*ref)->refcount; i ++)
150 if((*ref)->refs[i] == ref)
165 memmove((*ref)->refs + idx, (*ref)->refs + idx+1,
168 if(!--(*ref)->refcount) {
182 (*oldref)->refs[idx] = newref;
Number of sample formats. DO NOT USE if linking dynamically.
void * av_mallocz(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
number of pixel formats, DO NOT USE THIS if you want to link with shared libav* because the number of...
void * av_realloc(void *ptr, size_t size)
Allocate or reallocate a block of memory.
void av_free(void *ptr)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc(). ...
const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB]
The array of all the pixel format descriptors.
#define PIX_FMT_HWACCEL
Pixel format is an HW accelerated format.
void * av_malloc(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...