Lines Matching refs:asset_map
180 * @param asset_map pointer on the IMFAssetLocatorMap to fill.
186 IMFAssetLocatorMap *asset_map,
218 || asset_map->asset_count > UINT32_MAX - elem_count)
220 tmp = av_realloc_array(asset_map->assets,
221 elem_count + asset_map->asset_count,
227 asset_map->assets = tmp;
234 asset = &(asset_map->assets[asset_map->asset_count]);
264 asset_map->asset_count++;
274 static void imf_asset_locator_map_init(IMFAssetLocatorMap *asset_map)
276 asset_map->assets = NULL;
277 asset_map->asset_count = 0;
283 static void imf_asset_locator_map_deinit(IMFAssetLocatorMap *asset_map)
285 for (uint32_t i = 0; i < asset_map->asset_count; i++)
286 av_freep(&asset_map->assets[i].absolute_uri);
288 av_freep(&asset_map->assets);
346 static IMFAssetLocator *find_asset_map_locator(IMFAssetLocatorMap *asset_map, AVUUID uuid)
348 for (uint32_t i = 0; i < asset_map->asset_count; i++) {
349 if (memcmp(asset_map->assets[i].uuid, uuid, 16) == 0)
350 return &(asset_map->assets[i]);