34 printf(
"Testing av_mastering_display_metadata_alloc()\n");
39 printf(
"defaults: primaries[0][0]=%d/%d, white_point[0]=%d/%d\n",
43 printf(
"defaults: min_lum=%d/%d, max_lum=%d/%d\n",
46 printf(
"defaults: has_primaries=%d, has_luminance=%d\n",
54 printf(
"\nTesting av_mastering_display_metadata_alloc_size()\n");
57 printf(
"alloc_size: OK, size>0=%s\n",
size > 0 ?
"yes" :
"no");
58 printf(
"defaults: primaries[0][0]=%d/%d\n",
63 printf(
"alloc_size: FAIL\n");
67 printf(
"\nTesting write/read back\n");
78 printf(
"primaries[0]=(%d/%d, %d/%d)\n",
83 printf(
"white_point=(%d/%d, %d/%d)\n",
86 printf(
"luminance: min=%d/%d max=%d/%d\n",
93 printf(
"\nTesting av_mastering_display_metadata_create_side_data()\n");
98 printf(
"side_data: OK, defaults: primaries[0][0]=%d/%d\n",
102 printf(
"side_data: FAIL\n");
108 printf(
"\nTesting av_content_light_metadata_alloc()\n");
111 printf(
"alloc: OK, size>0=%s, MaxCLL=%u, MaxFALL=%u\n",
122 printf(
"\nTesting av_content_light_metadata_create_side_data()\n");
129 printf(
"side_data: FAIL\n");
135 printf(
"\nTesting OOM paths\n");
138 printf(
"mastering alloc OOM: %s\n", mdm ?
"FAIL" :
"OK");
141 printf(
"mastering alloc_size OOM: %s\n", mdm ?
"FAIL" :
"OK");
144 printf(
"content alloc OOM: %s\n", clm ?
"FAIL" :
"OK");
152 printf(
"mastering side_data OOM: %s\n", mdm ?
"FAIL" :
"OK");
154 printf(
"content side_data OOM: %s\n", clm ?
"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.
Content light level needed by to transmit HDR over HDMI (CTA-861.3).
unsigned MaxFALL
Max average light level per frame (cd/m^2).
unsigned MaxCLL
Max content light level (cd/m^2).
This structure describes decoded (raw) audio or video data.
Rational number (pair of numerator and denominator).