Go to the documentation of this file.
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 *,...)
void av_frame_free(AVFrame **frame)
Free the frame and any dynamically allocated objects in it, e.g.
unsigned MaxCLL
Max content light level (cd/m^2).
This structure describes decoded (raw) audio or video data.
Content light level needed by to transmit HDR over HDMI (CTA-861.3).
void av_max_alloc(size_t max)
Set the maximum size that may be allocated in one block.
AVFrame * av_frame_alloc(void)
Allocate an AVFrame and set its fields to default values.
Rational number (pair of numerator and denominator).
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several the filter must be ready for frames arriving randomly on any input any filter with several inputs will most likely require some kind of queuing mechanism It is perfectly acceptable to have a limited queue and to drop frames when the inputs are too unbalanced request_frame For filters that do not use the this method is called when a frame is wanted on an output For a it should directly call filter_frame on the corresponding output For a if there are queued frames already one of these frames should be pushed If the filter should request a frame on one of its repeatedly until at least one frame has been pushed Return or at least make progress towards producing a frame
unsigned MaxFALL
Max average light level per frame (cd/m^2).