Go to the documentation of this file.
27 for (
int i = 0;
i < nb_sd;
i++) {
83 puts(
"Initial addition results with duplicates:");
97 puts(
"\nFinal state after a single 'no-duplicates' addition:");
Content light level needed by to transmit HDR over HDMI (CTA-861.3).
#define AV_FRAME_SIDE_DATA_FLAG_UNIQUE
static void set(uint8_t *a[], int ch, int index, int ch_count, enum AVSampleFormat f, double v)
static void print_clls(const AVFrameSideData **sd, const int nb_sd)
#define av_assert0(cond)
assert() equivalent, that is always enabled.
@ AV_FRAME_DATA_SPHERICAL
The data represents the AVSphericalMapping structure defined in libavutil/spherical....
@ AV_FRAME_DATA_AMBIENT_VIEWING_ENVIRONMENT
Ambient viewing environment metadata, as defined by H.274.
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)