Go to the documentation of this file.
33 printf(
"Testing av_dovi_alloc()\n");
36 printf(
"alloc: OK, size>0=%s, dv_profile=%d\n",
37 size > 0 ?
"yes" :
"no",
cfg->dv_profile);
44 printf(
"alloc (no size): %s\n",
cfg ?
"OK" :
"FAIL");
48 printf(
"\nTesting av_dovi_metadata_alloc()\n");
55 printf(
"alloc: OK, size>0=%s\n",
size > 0 ?
"yes" :
"no");
56 printf(
"num_ext_blocks=%d\n",
md->num_ext_blocks);
60 if ((uint8_t *)
header != (uint8_t *)
md +
md->header_offset)
61 printf(
"header: pointer inconsistent with header_offset\n");
62 printf(
"header_offset>0=%s, rpu_type=%d\n",
63 md->header_offset > 0 ?
"yes" :
"no",
67 if ((uint8_t *)mapping != (uint8_t *)
md +
md->mapping_offset)
68 printf(
"mapping: pointer inconsistent with mapping_offset\n");
69 printf(
"mapping_offset>0=%s, nlq_method_idc=%d\n",
70 md->mapping_offset > 0 ?
"yes" :
"no",
74 if ((uint8_t *)
color != (uint8_t *)
md +
md->color_offset)
75 printf(
"color: pointer inconsistent with color_offset\n");
76 printf(
"color_offset>0=%s, dm_metadata_id=%d\n",
77 md->color_offset > 0 ?
"yes" :
"no",
78 color->dm_metadata_id);
80 printf(
"ext_block_size>0=%s\n",
81 md->ext_block_size > 0 ?
"yes" :
"no");
89 printf(
"alloc (no size): %s\n",
md ?
"OK" :
"FAIL");
93 printf(
"\nTesting av_dovi_find_level()\n");
99 md->num_ext_blocks = 3;
101 if ((uint8_t *)ext != (uint8_t *)
md +
md->ext_block_offset)
102 printf(
"ext[0]: pointer inconsistent with ext_block_offset\n");
110 printf(
"find level 1: %s\n", found && found->
level == 1 ?
"OK" :
"FAIL");
113 printf(
"find level 5: %s\n", found && found->
level == 5 ?
"OK" :
"FAIL");
117 printf(
"find level 1 first match: %s\n",
121 printf(
"find level 99 (missing): %s\n", found ==
NULL ?
"OK" :
"FAIL");
127 printf(
"\nTesting OOM paths\n");
130 printf(
"av_dovi_alloc OOM: %s\n",
cfg ?
"FAIL" :
"OK");
133 printf(
"av_dovi_metadata_alloc OOM: %s\n",
md ?
"FAIL" :
"OK");
enum AVDOVINLQMethod nlq_method_idc
__device__ int printf(const char *,...)
void av_max_alloc(size_t max)
Set the maximum size that may be allocated in one block.
Dolby Vision metadata extension block.
static CheckasmConfig cfg
static const uint32_t color[16+AV_CLASS_CATEGORY_NB]
static const uint8_t header[24]
Dolby Vision RPU data mapping parameters.