Go to the documentation of this file.
27 for (
int i = 0;
i < nb_sd;
i++) {
92 puts(
"Initial addition results with duplicates:");
105 puts(
"\nFinal state after a single 'no-duplicates' addition:");
#define AV_FRAME_SIDE_DATA_FLAG_UNIQUE
Remove existing entries before adding new ones.
static void set(uint8_t *a[], int ch, int index, int ch_count, enum AVSampleFormat f, double v)
#define av_assert0(cond)
assert() equivalent, that is always enabled.
@ AV_FRAME_DATA_SPHERICAL
The data represents the AVSphericalMapping structure defined in libavutil/spherical....
#define AV_FRAME_SIDE_DATA_FLAG_REPLACE
Don't add a new entry if another of the same type exists.
@ AV_FRAME_DATA_SEI_UNREGISTERED
User data unregistered metadata associated with a video frame.
printf("static const uint8_t my_array[100] = {\n")
@ AV_FRAME_DATA_CONTENT_LIGHT_LEVEL
Content light level (based on CTA-861.3).
#define i(width, name, range_min, range_max)
void av_frame_side_data_free(AVFrameSideData ***sd, int *nb_sd)
Free all side data entries and their contents, then zeroes out the values which the pointers are poin...
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default value
AVFrameSideData * av_frame_side_data_new(AVFrameSideData ***sd, int *nb_sd, enum AVFrameSideDataType type, size_t size, unsigned int flags)
Add new side data entry to an array.
Structure to hold side data for an AVFrame.
const char * av_frame_side_data_name(enum AVFrameSideDataType type)
static void print_entries(const AVFrameSideData **sd, const int nb_sd)