33 printf(
"Testing av_dynamic_hdr_vivid_alloc()\n");
36 printf(
"alloc: OK, size>0=%s\n",
size > 0 ?
"yes" :
"no");
37 printf(
"defaults: system_start_code=%u, num_windows=%u\n",
47 printf(
"write: system_start_code=%u, num_windows=%u\n",
49 printf(
"params[0]: min=%d/%d avg=%d/%d var=%d/%d max=%d/%d\n",
63 printf(
"alloc (no size): %s\n", vivid ?
"OK" :
"FAIL");
67 printf(
"\nTesting av_dynamic_hdr_vivid_create_side_data()\n");
74 printf(
"side_data write: system_start_code=%u\n",
77 printf(
"side_data: FAIL\n");
83 printf(
"\nTesting OOM paths\n");
86 printf(
"alloc OOM: %s\n", vivid ?
"FAIL" :
"OK");
94 printf(
"side_data OOM: %s\n", vivid ?
"FAIL" :
"OK");
__device__ int printf(const char *,...)
reference-counted frame API
void av_frame_free(AVFrame **frame)
Free the frame and any dynamically allocated objects in it, e.g.
AVFrame * av_frame_alloc(void)
Allocate an AVFrame and set its fields to default values.
void av_max_alloc(size_t max)
Set the maximum size that may be allocated in one block.
Memory handling functions.
This struct represents dynamic metadata for color volume transform - CUVA 005.1:2021 standard.
uint8_t num_windows
The number of processing windows.
uint8_t system_start_code
The system start code.
AVHDRVividColorTransformParams params[3]
The color transform parameters for every processing window.
This structure describes decoded (raw) audio or video data.
Rational number (pair of numerator and denominator).