map 333 fftools/ffmpeg_opt.c char *map; map 340 fftools/ffmpeg_opt.c map = av_strdup(arg); map 341 fftools/ffmpeg_opt.c if (!map) map 345 fftools/ffmpeg_opt.c if (sync = strchr(map, ',')) { map 373 fftools/ffmpeg_opt.c if (map[0] == '[') { map 375 fftools/ffmpeg_opt.c const char *c = map + 1; map 380 fftools/ffmpeg_opt.c av_log(NULL, AV_LOG_ERROR, "Invalid output link label: %s.\n", map); map 384 fftools/ffmpeg_opt.c if (allow_unused = strchr(map, '?')) map 386 fftools/ffmpeg_opt.c file_idx = strtol(map, &p, 0); map 440 fftools/ffmpeg_opt.c av_freep(&map); map 1905 fftools/ffmpeg_opt.c AudioChannelMap *map = &o->audio_channel_maps[n]; map 1906 fftools/ffmpeg_opt.c if ((map->ofile_idx == -1 || ost->file_index == map->ofile_idx) && map 1907 fftools/ffmpeg_opt.c (map->ostream_idx == -1 || ost->st->index == map->ostream_idx)) { map 1910 fftools/ffmpeg_opt.c if (map->channel_idx == -1) { map 1920 fftools/ffmpeg_opt.c if (!ist || (ist->file_index == map->file_idx && ist->st->index == map->stream_idx)) { map 1927 fftools/ffmpeg_opt.c ost->audio_channels_map[ost->audio_channels_mapped++] = map->channel_idx; map 2294 fftools/ffmpeg_opt.c StreamMap *map = &o->stream_maps[i]; map 2296 fftools/ffmpeg_opt.c if (map->disabled) map 2299 fftools/ffmpeg_opt.c if (map->linklabel) { map 2308 fftools/ffmpeg_opt.c if (out && !strcmp(out->name, map->linklabel)) { map 2317 fftools/ffmpeg_opt.c "in any defined filter graph, or was already used elsewhere.\n", map->linklabel); map 2322 fftools/ffmpeg_opt.c int src_idx = input_files[map->file_index]->ist_index + map->stream_index; map 2324 fftools/ffmpeg_opt.c ist = input_streams[input_files[map->file_index]->ist_index + map->stream_index]; map 2327 fftools/ffmpeg_opt.c map->file_index, map->stream_index); map 2354 fftools/ffmpeg_opt.c map->file_index, map->stream_index); map 2364 fftools/ffmpeg_opt.c ost->sync_ist = input_streams[ input_files[map->sync_file_index]->ist_index map 2365 fftools/ffmpeg_opt.c + map->sync_stream_index]; map 1757 libavcodec/ac3dec.c int map = extended_channel_map[ch]; map 1760 libavcodec/ac3dec.c s->output_buffer[map], map 96 libavcodec/agm.c int *map; map 102 libavcodec/agm.c static int read_code(GetBitContext *gb, int *oskip, int *level, int *map, int mode) map 159 libavcodec/agm.c *map = 1; map 198 libavcodec/agm.c int level, ret, map = 0; map 218 libavcodec/agm.c ret = read_code(gb, skip, &level, &map, s->flags & 1); map 237 libavcodec/agm.c int *map) map 243 libavcodec/agm.c memset(s->map, 0, s->map_size); map 257 libavcodec/agm.c ret = read_code(gb, skip, &level, &map[j], s->flags & 1); map 277 libavcodec/agm.c int level, ret, map = 0; map 284 libavcodec/agm.c ret = read_code(gb, skip, &level, &map, s->flags & 1); map 299 libavcodec/agm.c ret = read_code(gb, skip, &level, &map, s->flags & 1); map 362 libavcodec/agm.c int *map) map 378 libavcodec/agm.c ret = read_code(gb, skip, &level, map, s->flags & 1); map 405 libavcodec/agm.c av_fast_padded_malloc(&s->map, &s->map_size, map 406 libavcodec/agm.c s->blocks_w * sizeof(*s->map)); map 407 libavcodec/agm.c if (!s->map) map 411 libavcodec/agm.c ret = decode_inter_blocks(s, gb, quant_matrix, &skip, s->map); map 423 libavcodec/agm.c int map = s->map[x]; map 433 libavcodec/agm.c if (map) { map 440 libavcodec/agm.c } else if (map) { map 456 libavcodec/agm.c int map = 0; map 458 libavcodec/agm.c ret = decode_inter_block(s, gb, quant_matrix, &skip, &map); map 470 libavcodec/agm.c if (map) { map 477 libavcodec/agm.c } else if (map) { map 489 libavcodec/agm.c av_fast_padded_malloc(&s->map, &s->map_size, map 490 libavcodec/agm.c s->blocks_w * sizeof(*s->map)); map 491 libavcodec/agm.c if (!s->map) map 495 libavcodec/agm.c ret = decode_inter_blocks(s, gb, quant_matrix, &skip, s->map); map 500 libavcodec/agm.c if (!s->map[x]) map 509 libavcodec/agm.c int map = 0; map 511 libavcodec/agm.c ret = decode_inter_block(s, gb, quant_matrix, &skip, &map); map 515 libavcodec/agm.c if (!map) map 834 libavcodec/agm.c int ret, skip = 0, value, map; map 848 libavcodec/agm.c ret = read_code(gb, &skip, &value, &map, 1); map 856 libavcodec/agm.c ret = read_code(gb, &skip, &value, &map, 1); map 1280 libavcodec/agm.c av_freep(&s->map); map 155 libavcodec/aptxenc.c static const int map[] = { 1, 2, 0, 3 }; map 156 libavcodec/aptxenc.c Quantize *min = &channels[NB_CHANNELS-1].quantize[map[0]]; map 159 libavcodec/aptxenc.c if (c->quantize[map[i]].error < min->error) map 160 libavcodec/aptxenc.c min = &c->quantize[map[i]]; map 156 libavcodec/audiotoolboxenc.c uint64_t map = 1 << channel; map 157 libavcodec/audiotoolboxenc.c if (map <= AV_CH_LOW_FREQUENCY) map 159 libavcodec/audiotoolboxenc.c else if (map <= AV_CH_BACK_RIGHT) map 161 libavcodec/audiotoolboxenc.c else if (map <= AV_CH_BACK_CENTER) map 163 libavcodec/audiotoolboxenc.c else if (map <= AV_CH_SIDE_RIGHT) map 165 libavcodec/audiotoolboxenc.c else if (map <= AV_CH_TOP_BACK_RIGHT) map 167 libavcodec/audiotoolboxenc.c else if (map <= AV_CH_STEREO_RIGHT) map 169 libavcodec/audiotoolboxenc.c else if (map <= AV_CH_WIDE_RIGHT) map 171 libavcodec/audiotoolboxenc.c else if (map <= AV_CH_SURROUND_DIRECT_RIGHT) map 173 libavcodec/audiotoolboxenc.c else if (map == AV_CH_LOW_FREQUENCY_2) map 108 libavcodec/dstdec.c static int read_map(GetBitContext *gb, Table *t, unsigned int map[DST_MAX_CHANNELS], int channels) map 112 libavcodec/dstdec.c map[0] = 0; map 116 libavcodec/dstdec.c map[ch] = get_bits(gb, bits); map 117 libavcodec/dstdec.c if (map[ch] == t->elements) { map 121 libavcodec/dstdec.c } else if (map[ch] > t->elements) { map 126 libavcodec/dstdec.c memset(map, 0, sizeof(*map) * DST_MAX_CHANNELS); map 194 libavcodec/fitsdec.c const int map[] = {2, 0, 1, 3}; // mapping from GBRA -> RGBA as RGBA is to be stored in FITS file.. map 248 libavcodec/fitsdec.c dst = (type *) (p->data[map[k]] + (avctx->height - i - 1) * p->linesize[map[k]]); \ map 45 libavcodec/fitsenc.c int map[] = {2, 0, 1, 3}; // mapping from GBRA -> RGBA as RGBA is to be stored in FITS file.. map 50 libavcodec/fitsenc.c map[0] = 0; // grayscale images should be directly mapped map 91 libavcodec/fitsenc.c ptr = p->data[map[k]] + (avctx->height - i - 1) * p->linesize[map[k]]; map 84 libavcodec/h264_direct.c int map[2][16 + 32], int list, map 94 libavcodec/h264_direct.c memset(map[list], 0, sizeof(map[list])); map 111 libavcodec/h264_direct.c map[list][2 * old_ref + (rfield ^ field) + 16] = cur_ref; map 113 libavcodec/h264_direct.c map[list][old_ref] = cur_ref; map 63 libavcodec/huffman.c uint16_t *map= av_malloc_array(sizeof(*map), stats_size); map 68 libavcodec/huffman.c if (!h || !up || !len || !map) { map 76 libavcodec/huffman.c map[size++] = i; map 82 libavcodec/huffman.c h[i].val = (stats[map[i]] << 14) + offset; map 103 libavcodec/huffman.c dst[map[i]] = len[up[i]] + 1; map 104 libavcodec/huffman.c if (dst[map[i]] >= 32) break; map 112 libavcodec/huffman.c av_free(map); map 159 libavcodec/huffyuvdec.c uint8_t (*map)[4] = (uint8_t(*)[4]) s->pix_bgr_map; map 185 libavcodec/huffyuvdec.c map[i][G] = g; map 186 libavcodec/huffyuvdec.c map[i][B] = g + b; map 187 libavcodec/huffyuvdec.c map[i][R] = g + r; map 189 libavcodec/huffyuvdec.c map[i][B] = g; map 190 libavcodec/huffyuvdec.c map[i][G] = b; map 191 libavcodec/huffyuvdec.c map[i][R] = r; map 182 libavcodec/jpeglsdec.c int k, ret, temp, map; map 200 libavcodec/jpeglsdec.c map = 0; map 202 libavcodec/jpeglsdec.c map = 1; map 203 libavcodec/jpeglsdec.c ret += RItype + map; map 206 libavcodec/jpeglsdec.c ret = map - (ret + 1 >> 1); map 52 libavcodec/jpeglsenc.c int map; map 57 libavcodec/jpeglsenc.c map = !state->near && !k && (2 * state->B[Q] <= -state->N[Q]); map 63 libavcodec/jpeglsenc.c val = 2 * FFABS(err) - 1 - map; map 65 libavcodec/jpeglsenc.c val = 2 * err + map; map 79 libavcodec/jpeglsenc.c int val, map; map 88 libavcodec/jpeglsenc.c map = 0; map 90 libavcodec/jpeglsenc.c map = 1; map 93 libavcodec/jpeglsenc.c val = -(2 * err) - 1 - RItype + map; map 95 libavcodec/jpeglsenc.c val = 2 * err - RItype - map; map 60 libavcodec/motion_est.c memset(c->map, 0, sizeof(uint32_t)*ME_MAP_SIZE); map 1265 libavcodec/motion_est.c uint8_t map[256] = { 0 }; map 1267 libavcodec/motion_est.c map[hashidx&255] = 1; map 1315 libavcodec/motion_est.c if( !map[(hashidx+HASH(fx,fy,bx,by))&255]\ map 1319 libavcodec/motion_est.c map[(hashidx+HASH(fx,fy,bx,by))&255] = 1;\ map 1354 libavcodec/motion_est.c map[(hashidx+hash[i])&255] = 1; map 1356 libavcodec/motion_est.c if(!map[(hashidx+hash[i])&255]){ map 1358 libavcodec/motion_est.c map[(hashidx+hash[i])&255] = 1; map 58 libavcodec/motion_est.h uint32_t *map; ///< map to avoid duplicate evaluations map 99 libavcodec/motion_est_template.c av_assert2(c->map[(index-(1<<ME_MAP_SHIFT))&(ME_MAP_SIZE-1)] == key); map 101 libavcodec/motion_est_template.c av_assert2(c->map[(index+(1<<ME_MAP_SHIFT))&(ME_MAP_SIZE-1)] == key); map 103 libavcodec/motion_est_template.c av_assert2(c->map[(index+1)&(ME_MAP_SIZE-1)] == key); map 105 libavcodec/motion_est_template.c av_assert2(c->map[(index-1)&(ME_MAP_SIZE-1)] == key); map 218 libavcodec/motion_est_template.c uint32_t *map= c->map; map 302 libavcodec/motion_est_template.c if(map[(index-(1<<ME_MAP_SHIFT)-1)&(ME_MAP_SIZE-1)] == ((my-1)<<ME_MAP_MV_BITS) + (mx-1) + map_generation){ map 368 libavcodec/motion_est_template.c if(map[index]!=key){\ map 370 libavcodec/motion_est_template.c map[index]= key;\ map 390 libavcodec/motion_est_template.c if(map[index]!=key){\ map 392 libavcodec/motion_est_template.c map[index]= key;\ map 411 libavcodec/motion_est_template.c uint32_t *map= c->map;\ map 432 libavcodec/motion_est_template.c if (map[index] != key) { // this will be executed only very rarely map 434 libavcodec/motion_est_template.c map[index]= key; map 656 libavcodec/motion_est_template.c if(map[index]!=key){\ map 658 libavcodec/motion_est_template.c map[index]= key;\ map 702 libavcodec/motion_est_template.c uint32_t key= map[i]; map 894 libavcodec/motion_est_template.c map[0]= map_generation; map 375 libavcodec/mpegvideo.c FF_ALLOCZ_OR_GOTO(s->avctx, s->me.map, map 427 libavcodec/mpegvideo.c av_freep(&s->me.map); map 445 libavcodec/mpegvideo.c COPY(me.map); map 819 libavcodec/mpegvideo.c s->me.map = NULL; map 407 libavcodec/opus.c ChannelMap *map = &s->channel_maps[i]; map 411 libavcodec/opus.c map->silence = 1; map 421 libavcodec/opus.c map->copy = 0; map 424 libavcodec/opus.c map->copy = 1; map 425 libavcodec/opus.c map->copy_idx = j; map 430 libavcodec/opus.c map->stream_idx = idx / 2; map 431 libavcodec/opus.c map->channel_idx = idx & 1; map 433 libavcodec/opus.c map->stream_idx = idx - stereo_streams; map 434 libavcodec/opus.c map->channel_idx = 0; map 463 libavcodec/opusdec.c ChannelMap *map = &c->channel_maps[i]; map 464 libavcodec/opusdec.c if (!map->copy) map 465 libavcodec/opusdec.c c->out[2 * map->stream_idx + map->channel_idx] = (float*)frame->extended_data[i]; map 544 libavcodec/opusdec.c ChannelMap *map = &c->channel_maps[i]; map 547 libavcodec/opusdec.c if (map->copy) { map 549 libavcodec/opusdec.c frame->extended_data[map->copy_idx], map 551 libavcodec/opusdec.c } else if (map->silence) { map 473 libavcodec/smacker.c int clr, map; map 476 libavcodec/smacker.c map = smk_get_code(&gb, smk->mmap_tbl, smk->mmap_last); map 481 libavcodec/smacker.c if(map & 1) out[0] = hi; else out[0] = lo; map 482 libavcodec/smacker.c if(map & 2) out[1] = hi; else out[1] = lo; map 483 libavcodec/smacker.c if(map & 4) out[2] = hi; else out[2] = lo; map 484 libavcodec/smacker.c if(map & 8) out[3] = hi; else out[3] = lo; map 485 libavcodec/smacker.c map >>= 4; map 705 libavcodec/snow.c av_freep(&s->m.me.map); map 89 libavcodec/snowenc.c s->m.me.map = av_mallocz(ME_MAP_SIZE*sizeof(uint32_t)); map 92 libavcodec/snowenc.c if (!s->m.me.scratchpad || !s->m.me.map || !s->m.me.score_map || !s->m.sc.obmc_scratchpad) map 498 libavcodec/svq1enc.c av_freep(&s->m.me.map); map 557 libavcodec/svq1enc.c s->m.me.map = av_mallocz(ME_MAP_SIZE * sizeof(uint32_t)); map 565 libavcodec/svq1enc.c if (!s->m.me.temp || !s->m.me.scratchpad || !s->m.me.map || map 1532 libavcodec/utils.c static const enum AVCodecID map[][2] = { map 1545 libavcodec/utils.c if (fmt < 0 || fmt >= FF_ARRAY_ELEMS(map)) map 1549 libavcodec/utils.c return map[fmt][be]; map 73 libavcodec/vorbisdec.c int32_t *map[2]; map 215 libavcodec/vorbisdec.c av_freep(&vc->floors[i].data.t0.map[0]); map 216 libavcodec/vorbisdec.c av_freep(&vc->floors[i].data.t0.map[1]); map 856 libavcodec/vorbisdec.c int32_t *map; map 860 libavcodec/vorbisdec.c floors[floor_number].data.t0.map[blockflag] = map 862 libavcodec/vorbisdec.c if (!floors[floor_number].data.t0.map[blockflag]) map 865 libavcodec/vorbisdec.c map = floors[floor_number].data.t0.map[blockflag]; map 869 libavcodec/vorbisdec.c map[idx] = floor(BARK((vf->rate * idx) / (2.0f * n)) * map 871 libavcodec/vorbisdec.c if (vf->bark_map_size-1 < map[idx]) map 872 libavcodec/vorbisdec.c map[idx] = vf->bark_map_size - 1; map 874 libavcodec/vorbisdec.c map[n] = -1; map 879 libavcodec/vorbisdec.c ff_dlog(NULL, "floor0 map: map at pos %d is %"PRId32"\n", idx, map[idx]); map 1164 libavcodec/vorbisdec.c int j, iter_cond = vf->map[blockflag][i]; map 1196 libavcodec/vorbisdec.c } while (vf->map[blockflag][i] == iter_cond); map 261 libavcodec/vp6.c const uint8_t *map, unsigned size, VLC *vlc) map 271 libavcodec/vp6.c nodes[map[2*i ]].count = a + !a; map 272 libavcodec/vp6.c nodes[map[2*i+1]].count = b + !b; map 76 libavcodec/wmv2.h static const uint8_t map[3][3] = { map 82 libavcodec/wmv2.h return map[(s->qscale > 10) + (s->qscale > 20)][cbp_index]; map 359 libavdevice/pulse_audio_enc.c channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_FRONT_LEFT; map 361 libavdevice/pulse_audio_enc.c channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_FRONT_RIGHT; map 363 libavdevice/pulse_audio_enc.c channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_FRONT_CENTER; map 365 libavdevice/pulse_audio_enc.c channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_LFE; map 367 libavdevice/pulse_audio_enc.c channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_REAR_LEFT; map 369 libavdevice/pulse_audio_enc.c channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_REAR_RIGHT; map 371 libavdevice/pulse_audio_enc.c channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_FRONT_LEFT_OF_CENTER; map 373 libavdevice/pulse_audio_enc.c channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_FRONT_RIGHT_OF_CENTER; map 375 libavdevice/pulse_audio_enc.c channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_REAR_CENTER; map 377 libavdevice/pulse_audio_enc.c channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_SIDE_LEFT; map 379 libavdevice/pulse_audio_enc.c channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_SIDE_RIGHT; map 381 libavdevice/pulse_audio_enc.c channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_TOP_CENTER; map 383 libavdevice/pulse_audio_enc.c channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_TOP_FRONT_LEFT; map 385 libavdevice/pulse_audio_enc.c channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_TOP_FRONT_CENTER; map 387 libavdevice/pulse_audio_enc.c channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_TOP_FRONT_RIGHT; map 389 libavdevice/pulse_audio_enc.c channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_TOP_REAR_LEFT; map 391 libavdevice/pulse_audio_enc.c channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_TOP_REAR_CENTER; map 393 libavdevice/pulse_audio_enc.c channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_TOP_REAR_RIGHT; map 395 libavdevice/pulse_audio_enc.c channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_FRONT_LEFT; map 397 libavdevice/pulse_audio_enc.c channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_FRONT_RIGHT; map 399 libavdevice/pulse_audio_enc.c channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_AUX0; map 401 libavdevice/pulse_audio_enc.c channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_AUX1; map 403 libavdevice/pulse_audio_enc.c channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_AUX2; map 405 libavdevice/pulse_audio_enc.c channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_AUX3; map 407 libavdevice/pulse_audio_enc.c channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_LFE; map 496 libavdevice/pulse_audio_enc.c channel_map.map[0] = PA_CHANNEL_POSITION_MONO; map 63 libavfilter/af_channelmap.c struct ChannelMap map[MAX_CH]; map 88 libavfilter/af_channelmap.c static int get_channel_idx(char **map, int *ch, char delim, int max_ch) map 93 libavfilter/af_channelmap.c if (!*map) map 95 libavfilter/af_channelmap.c next = split(*map, delim); map 98 libavfilter/af_channelmap.c len = strlen(*map); map 99 libavfilter/af_channelmap.c sscanf(*map, "%d%n", ch, &n); map 104 libavfilter/af_channelmap.c *map = next; map 108 libavfilter/af_channelmap.c static int get_channel(char **map, uint64_t *ch, char delim) map 110 libavfilter/af_channelmap.c char *next = split(*map, delim); map 113 libavfilter/af_channelmap.c *ch = av_get_channel_layout(*map); map 116 libavfilter/af_channelmap.c *map = next; map 178 libavfilter/af_channelmap.c s->map[i].in_channel_idx = in_ch_idx; map 179 libavfilter/af_channelmap.c s->map[i].out_channel_idx = i; map 186 libavfilter/af_channelmap.c s->map[i].in_channel = in_ch; map 187 libavfilter/af_channelmap.c s->map[i].out_channel_idx = i; map 195 libavfilter/af_channelmap.c s->map[i].in_channel_idx = in_ch_idx; map 196 libavfilter/af_channelmap.c s->map[i].out_channel_idx = out_ch_idx; map 205 libavfilter/af_channelmap.c s->map[i].in_channel_idx = in_ch_idx; map 206 libavfilter/af_channelmap.c s->map[i].out_channel = out_ch; map 215 libavfilter/af_channelmap.c s->map[i].in_channel = in_ch; map 216 libavfilter/af_channelmap.c s->map[i].out_channel_idx = out_ch_idx; map 225 libavfilter/af_channelmap.c s->map[i].in_channel = in_ch; map 226 libavfilter/af_channelmap.c s->map[i].out_channel = out_ch; map 247 libavfilter/af_channelmap.c s->map[i].in_channel_idx = i; map 248 libavfilter/af_channelmap.c s->map[i].out_channel_idx = i; map 272 libavfilter/af_channelmap.c s->map[i].out_channel_idx = av_get_channel_layout_channel_index( map 273 libavfilter/af_channelmap.c s->output_layout, s->map[i].out_channel); map 341 libavfilter/af_channelmap.c buf->extended_data[s->map[ch].out_channel_idx] = map 342 libavfilter/af_channelmap.c source_planes[s->map[ch].in_channel_idx]; map 365 libavfilter/af_channelmap.c struct ChannelMap *m = &s->map[i]; map 43 libavfilter/af_channelsplit.c int map[64]; map 89 libavfilter/af_channelsplit.c s->map[i] = i; map 97 libavfilter/af_channelsplit.c s->map[i] = ret; map 125 libavfilter/af_channelsplit.c uint64_t channel = av_channel_layout_extract_channel(s->channel_layout, s->map[i]); map 149 libavfilter/af_channelsplit.c buf_out->data[0] = buf_out->extended_data[0] = buf_out->extended_data[s->map[i]]; map 151 libavfilter/af_channelsplit.c av_channel_layout_extract_channel(buf->channel_layout, s->map[i]); map 44 libavfilter/af_headphone.c char *map; map 118 libavfilter/af_headphone.c char *arg, *tokenizer, *p, *args = av_strdup(s->map); map 760 libavfilter/af_headphone.c if (!s->map) { map 848 libavfilter/af_headphone.c { "map", "set channels convolution mappings", OFFSET(map), AV_OPT_TYPE_STRING, {.str=NULL}, .flags = FLAGS }, map 50 libavfilter/af_join.c char *map; map 77 libavfilter/af_join.c OFFSET(map), AV_OPT_TYPE_STRING, .flags = A|F }, map 87 libavfilter/af_join.c char *cur = s->map; map 90 libavfilter/af_ladspa.c LADSPAContext *s, int ctl, unsigned long *map, map 93 libavfilter/af_ladspa.c const LADSPA_PortRangeHint *h = s->desc->PortRangeHints + map[ctl]; map 95 libavfilter/af_ladspa.c av_log(ctx, level, "c%i: %s [", ctl, s->desc->PortNames[map[ctl]]); map 226 libavfilter/af_ladspa.c unsigned long *map, LADSPA_Data *values) map 228 libavfilter/af_ladspa.c const LADSPA_PortRangeHint *h = s->desc->PortRangeHints + map[ctl]; map 63 libavfilter/af_lv2.c LV2_URID_Map map; map 272 libavfilter/af_lv2.c s->map.handle = &s->uri_table; map 273 libavfilter/af_lv2.c s->map.map = uri_table_map; map 275 libavfilter/af_lv2.c s->map_feature.data = &s->map; map 34 libavfilter/f_streamselect.c int *map; map 67 libavfilter/f_streamselect.c if (s->map[i] == j) { map 103 libavfilter/f_streamselect.c const int inlink_idx = s->map[outlink_idx]; map 185 libavfilter/f_streamselect.c static int parse_mapping(AVFilterContext *ctx, const char *map) map 191 libavfilter/f_streamselect.c if (!map) { map 202 libavfilter/f_streamselect.c const int n = strtol(map, &p, 0); map 204 libavfilter/f_streamselect.c av_log(ctx, AV_LOG_DEBUG, "n=%d map=%p p=%p\n", n, map, p); map 206 libavfilter/f_streamselect.c if (map == p) map 208 libavfilter/f_streamselect.c map = p; map 235 libavfilter/f_streamselect.c av_freep(&s->map); map 236 libavfilter/f_streamselect.c s->map = new_map; map 261 libavfilter/f_streamselect.c char *map = s->map_str; map 266 libavfilter/f_streamselect.c for (; map;) { map 269 libavfilter/f_streamselect.c strtol(map, &p, 0); map 270 libavfilter/f_streamselect.c if (map == p) map 273 libavfilter/f_streamselect.c map = p; map 295 libavfilter/f_streamselect.c av_freep(&s->map); map 168 libavfilter/v360.h unsigned map[4]; map 42 libavfilter/vf_extractplanes.c int map[4]; map 227 libavfilter/vf_extractplanes.c s->map[i] = rgba_map[s->map[i]]; map 241 libavfilter/vf_extractplanes.c if (s->map[output] == 1 || s->map[output] == 2) { map 282 libavfilter/vf_extractplanes.c const int idx = s->map[i]; map 338 libavfilter/vf_extractplanes.c s->map[ctx->nb_outputs] = i; map 126 libavfilter/vf_histeq.c #define GET_RGB_VALUES(r, g, b, src, map) do { \ map 127 libavfilter/vf_histeq.c r = src[x + map[R]]; \ map 128 libavfilter/vf_histeq.c g = src[x + map[G]]; \ map 129 libavfilter/vf_histeq.c b = src[x + map[B]]; \ map 308 libavfilter/vf_hwmap.c AVFrame *map = NULL; map 315 libavfilter/vf_hwmap.c map = av_frame_alloc(); map 316 libavfilter/vf_hwmap.c if (!map) { map 321 libavfilter/vf_hwmap.c map->format = outlink->format; map 322 libavfilter/vf_hwmap.c map->hw_frames_ctx = av_buffer_ref(ctx->hwframes_ref); map 323 libavfilter/vf_hwmap.c if (!map->hw_frames_ctx) { map 339 libavfilter/vf_hwmap.c err = av_hwframe_map(map, input, ctx->mode); map 345 libavfilter/vf_hwmap.c err = av_frame_copy_props(map, input); map 352 libavfilter/vf_hwmap.c av_get_pix_fmt_name(map->format), map 353 libavfilter/vf_hwmap.c map->width, map->height, map->pts); map 355 libavfilter/vf_hwmap.c return ff_filter_frame(outlink, map); map 359 libavfilter/vf_hwmap.c av_frame_free(&map); map 45 libavfilter/vf_hysteresis.c uint8_t *map; map 125 libavfilter/vf_hysteresis.c memset(s->map, 0, s->width[0] * s->height[0]); map 142 libavfilter/vf_hysteresis.c return s->map[x + y * w]; map 147 libavfilter/vf_hysteresis.c s->map[x + y * w] = 0xff; map 278 libavfilter/vf_hysteresis.c s->map = av_calloc(inlink->w, inlink->h * sizeof (*s->map)); map 279 libavfilter/vf_hysteresis.c if (!s->map) map 349 libavfilter/vf_hysteresis.c av_freep(&s->map); map 41 libavfilter/vf_kerndeint.c int thresh, map, order, sharp, twoway; map 53 libavfilter/vf_kerndeint.c { "map", "set the map", OFFSET(map), AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1, FLAGS }, map 140 libavfilter/vf_kerndeint.c const int map = kerndeint->map; map 207 libavfilter/vf_kerndeint.c if (map) { map 45 libavfilter/vf_mergeplanes.c int map[4][2]; map 76 libavfilter/vf_mergeplanes.c s->map[i][0] = m & 0xf; map 78 libavfilter/vf_mergeplanes.c s->map[i][1] = m & 0xf; map 81 libavfilter/vf_mergeplanes.c if (s->map[i][0] > 3 || s->map[i][1] > 3) { map 86 libavfilter/vf_mergeplanes.c s->nb_inputs = FFMAX(s->nb_inputs, s->map[i][1] + 1); map 156 libavfilter/vf_mergeplanes.c const int input = s->map[i][1]; map 157 libavfilter/vf_mergeplanes.c const int plane = s->map[i][0]; map 236 libavfilter/vf_mergeplanes.c const int input = s->map[i][1]; map 237 libavfilter/vf_mergeplanes.c const int plane = s->map[i][0]; map 84 libavfilter/vf_misc_vaapi.c denoise.value = map(ctx->denoise, DENOISE_MIN, DENOISE_MAX, map 114 libavfilter/vf_misc_vaapi.c sharpness.value = map(ctx->sharpness, map 87 libavfilter/vf_paletteuse.c struct color_node map[AVPALETTE_COUNT]; /* 3D-Tree (KD-Tree with K=3) for reverse colormap */ map 215 libavfilter/vf_paletteuse.c static void colormap_nearest_node(const struct color_node *map, map 221 libavfilter/vf_paletteuse.c const struct color_node *kd = map + node_pos; map 239 libavfilter/vf_paletteuse.c colormap_nearest_node(map, nearer_kd_id, target, trans_thresh, nearest); map 242 libavfilter/vf_paletteuse.c colormap_nearest_node(map, further_kd_id, target, trans_thresh, nearest); map 370 libavfilter/vf_paletteuse.c e->pal_entry = COLORMAP_NEAREST(search_method, s->palette, s->map, argb_elts, s->trans_thresh); map 504 libavfilter/vf_paletteuse.c const struct color_node *map, map 508 libavfilter/vf_paletteuse.c const struct color_node *node = &map[node_id]; map 526 libavfilter/vf_paletteuse.c map[parent_id].palette_id, node->palette_id); map 527 libavfilter/vf_paletteuse.c if (node->left_id != -1) disp_node(buf, map, node_id, node->left_id, depth + 1); map 528 libavfilter/vf_paletteuse.c if (node->right_id != -1) disp_node(buf, map, node_id, node->right_id, depth + 1); map 679 libavfilter/vf_paletteuse.c static int colormap_insert(struct color_node *map, map 699 libavfilter/vf_paletteuse.c node = &map[cur_id]; map 714 libavfilter/vf_paletteuse.c node_left_id = colormap_insert(map, color_used, nb_used, palette, trans_thresh, &box1); map 717 libavfilter/vf_paletteuse.c node_right_id = colormap_insert(map, color_used, nb_used, palette, trans_thresh, &box2); map 767 libavfilter/vf_paletteuse.c colormap_insert(s->map, color_used, &nb_used, s->palette, s->trans_thresh, &box); map 770 libavfilter/vf_paletteuse.c disp_tree(s->map, s->dot_filename); map 773 libavfilter/vf_paletteuse.c if (!debug_accuracy(s->map, s->palette, s->trans_thresh, s->color_search_method)) map 986 libavfilter/vf_paletteuse.c memset(s->map, 0, sizeof(s->map)); map 92 libavfilter/vf_procamp_vaapi.c procamp_params[i].value = map(ctx->bright, BRIGHTNESS_MIN, BRIGHTNESS_MAX, map 100 libavfilter/vf_procamp_vaapi.c procamp_params[i].value = map(ctx->contrast, CONTRAST_MIN, CONTRAST_MAX, map 108 libavfilter/vf_procamp_vaapi.c procamp_params[i].value = map(ctx->hue, HUE_MIN, HUE_MAX, map 116 libavfilter/vf_procamp_vaapi.c procamp_params[i].value = map(ctx->saturation, SATURATION_MIN, SATURATION_MAX, map 35 libavfilter/vf_shuffleframes.c int *map; map 54 libavfilter/vf_shuffleframes.c s->map = av_calloc(nb_items, sizeof(*s->map)); map 56 libavfilter/vf_shuffleframes.c if (!s->map || !s->frames || !s->pts) { map 65 libavfilter/vf_shuffleframes.c char *map = av_strtok(n == 0 ? mapping : NULL, " |", &saveptr); map 66 libavfilter/vf_shuffleframes.c if (!map || sscanf(map, "%d", &s->map[n]) != 1) { map 71 libavfilter/vf_shuffleframes.c if (s->map[n] < -1 || s->map[n] >= nb_items) { map 72 libavfilter/vf_shuffleframes.c av_log(ctx, AV_LOG_ERROR, "Index %d out of range: [-1, %d].\n", s->map[n], nb_items - 1); map 101 libavfilter/vf_shuffleframes.c x = s->map[n]; map 129 libavfilter/vf_shuffleframes.c av_freep(&s->map); map 37 libavfilter/vf_shuffleplanes.c int map[4]; map 56 libavfilter/vf_shuffleplanes.c if (s->map[i] >= planes) map 60 libavfilter/vf_shuffleplanes.c (i == 1 || i == 2) != (s->map[i] == 1 || s->map[i] == 2)) map 87 libavfilter/vf_shuffleplanes.c if (used[s->map[i]]) map 89 libavfilter/vf_shuffleplanes.c used[s->map[i]]++; map 104 libavfilter/vf_shuffleplanes.c shuffled_data[i] = frame->data[s->map[i]]; map 105 libavfilter/vf_shuffleplanes.c shuffled_linesize[i] = frame->linesize[s->map[i]]; map 139 libavfilter/vf_shuffleplanes.c { "map0", "Index of the input plane to be used as the first output plane ", OFFSET(map[0]), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 3, FLAGS }, map 140 libavfilter/vf_shuffleplanes.c { "map1", "Index of the input plane to be used as the second output plane ", OFFSET(map[1]), AV_OPT_TYPE_INT, { .i64 = 1 }, 0, 3, FLAGS }, map 141 libavfilter/vf_shuffleplanes.c { "map2", "Index of the input plane to be used as the third output plane ", OFFSET(map[2]), AV_OPT_TYPE_INT, { .i64 = 2 }, 0, 3, FLAGS }, map 142 libavfilter/vf_shuffleplanes.c { "map3", "Index of the input plane to be used as the fourth output plane ", OFFSET(map[3]), AV_OPT_TYPE_INT, { .i64 = 3 }, 0, 3, FLAGS }, map 281 libavfilter/vf_v360.c const unsigned map = s->map[plane]; \ map 300 libavfilter/vf_v360.c const int16_t *const u = s->u[map] + y * uv_linesize * ws * ws; \ map 301 libavfilter/vf_v360.c const int16_t *const v = s->v[map] + y * uv_linesize * ws * ws; \ map 302 libavfilter/vf_v360.c const int16_t *const ker = s->ker[map] + y * uv_linesize * ws * ws; \ map 4227 libavfilter/vf_v360.c s->map[0] = s->map[1] = s->map[2] = s->map[3] = 0; map 4230 libavfilter/vf_v360.c s->map[0] = s->map[3] = 0; map 4231 libavfilter/vf_v360.c s->map[1] = s->map[2] = 1; map 838 libavfilter/vulkan.c const VkComponentMapping map) map 849 libavfilter/vulkan.c .components = map, map 235 libavfilter/vulkan.h const VkComponentMapping map); map 281 libavformat/concatdec.c ConcatStream *map; map 286 libavformat/concatdec.c map = av_realloc(cat->cur_file->streams, map 287 libavformat/concatdec.c cat->avf->nb_streams * sizeof(*map)); map 288 libavformat/concatdec.c if (!map) map 290 libavformat/concatdec.c cat->cur_file->streams = map; map 291 libavformat/concatdec.c memset(map + cat->cur_file->nb_streams, 0, map 292 libavformat/concatdec.c (cat->avf->nb_streams - cat->cur_file->nb_streams) * sizeof(*map)); map 295 libavformat/concatdec.c map[i].out_stream_index = -1; map 247 libavformat/gxf.c static const AVRational map[] = {{50, 1}, {60000, 1001}, {24, 1}, map 250 libavformat/gxf.c return map[idx]; map 309 libavformat/vapoursynth.c static int get_vs_prop_int(AVFormatContext *s, const VSMap *map, const char *name, int def) map 315 libavformat/vapoursynth.c res = vs->vsapi->propGetInt(map, name, 0, &err); map 346 libavresample/audio_convert.c ChannelMapInfo *map = &ac->avr->ch_map_info; map 353 libavresample/audio_convert.c if (map->do_remap) { map 359 libavresample/audio_convert.c if (map->channel_map[p] >= 0) map 360 libavresample/audio_convert.c convert(out->data[p], in->data[map->channel_map[p]], len); map 368 libavresample/audio_convert.c data[map->input_map[p]] = out->data[p]; map 373 libavresample/audio_convert.c if (map->do_copy || map->do_zero) { map 375 libavresample/audio_convert.c if (map->channel_copy[p]) map 376 libavresample/audio_convert.c memcpy(out->data[p], out->data[map->channel_copy[p]], map 378 libavresample/audio_convert.c else if (map->channel_zero[p]) map 225 libavresample/audio_data.c int ff_audio_data_copy(AudioData *dst, AudioData *src, ChannelMapInfo *map) map 233 libavresample/audio_data.c if (map && !src->is_planar) { map 250 libavresample/audio_data.c if (map) { map 251 libavresample/audio_data.c if (map->do_remap) { map 253 libavresample/audio_data.c if (map->channel_map[p] >= 0) map 254 libavresample/audio_data.c memcpy(dst->data[p], src->data[map->channel_map[p]], map 258 libavresample/audio_data.c if (map->do_copy || map->do_zero) { map 260 libavresample/audio_data.c if (map->channel_copy[p]) map 261 libavresample/audio_data.c memcpy(dst->data[p], dst->data[map->channel_copy[p]], map 263 libavresample/audio_data.c else if (map->channel_zero[p]) map 127 libavresample/audio_data.h int ff_audio_data_copy(AudioData *out, AudioData *in, ChannelMapInfo *map); map 356 libavutil/hwcontext_d3d11va.c D3D11_MAPPED_SUBRESOURCE *map) map 361 libavutil/hwcontext_d3d11va.c linesize[i] = map->RowPitch; map 364 libavutil/hwcontext_d3d11va.c (uint8_t*)map->pData, linesize); map 384 libavutil/hwcontext_d3d11va.c D3D11_MAPPED_SUBRESOURCE map; map 408 libavutil/hwcontext_d3d11va.c staging, 0, D3D11_MAP_READ, 0, &map); map 412 libavutil/hwcontext_d3d11va.c fill_texture_ptrs(map_data, map_linesize, ctx, &desc, &map); map 420 libavutil/hwcontext_d3d11va.c staging, 0, D3D11_MAP_WRITE, 0, &map); map 424 libavutil/hwcontext_d3d11va.c fill_texture_ptrs(map_data, map_linesize, ctx, &desc, &map); map 95 libavutil/hwcontext_drm.c DRMMapping *map = hwmap->priv; map 98 libavutil/hwcontext_drm.c for (i = 0; i < map->nb_regions; i++) map 99 libavutil/hwcontext_drm.c munmap(map->address[i], map->length[i]); map 101 libavutil/hwcontext_drm.c av_free(map); map 108 libavutil/hwcontext_drm.c DRMMapping *map; map 113 libavutil/hwcontext_drm.c map = av_mallocz(sizeof(*map)); map 114 libavutil/hwcontext_drm.c if (!map) map 134 libavutil/hwcontext_drm.c map->address[i] = addr; map 135 libavutil/hwcontext_drm.c map->length[i] = desc->objects[i].size; map 137 libavutil/hwcontext_drm.c map->nb_regions = i; map 144 libavutil/hwcontext_drm.c (uint8_t*)map->address[layer->planes[p].object_index] + map 156 libavutil/hwcontext_drm.c &drm_unmap_frame, map); map 164 libavutil/hwcontext_drm.c if (map->address[i]) map 165 libavutil/hwcontext_drm.c munmap(map->address[i], map->length[i]); map 167 libavutil/hwcontext_drm.c av_free(map); map 191 libavutil/hwcontext_drm.c AVFrame *map; map 197 libavutil/hwcontext_drm.c map = av_frame_alloc(); map 198 libavutil/hwcontext_drm.c if (!map) map 200 libavutil/hwcontext_drm.c map->format = dst->format; map 202 libavutil/hwcontext_drm.c err = drm_map_frame(hwfc, map, src, AV_HWFRAME_MAP_READ); map 206 libavutil/hwcontext_drm.c map->width = dst->width; map 207 libavutil/hwcontext_drm.c map->height = dst->height; map 209 libavutil/hwcontext_drm.c err = av_frame_copy(dst, map); map 215 libavutil/hwcontext_drm.c av_frame_free(&map); map 222 libavutil/hwcontext_drm.c AVFrame *map; map 228 libavutil/hwcontext_drm.c map = av_frame_alloc(); map 229 libavutil/hwcontext_drm.c if (!map) map 231 libavutil/hwcontext_drm.c map->format = src->format; map 233 libavutil/hwcontext_drm.c err = drm_map_frame(hwfc, map, dst, AV_HWFRAME_MAP_WRITE | map 238 libavutil/hwcontext_drm.c map->width = src->width; map 239 libavutil/hwcontext_drm.c map->height = src->height; map 241 libavutil/hwcontext_drm.c err = av_frame_copy(map, src); map 247 libavutil/hwcontext_drm.c av_frame_free(&map); map 279 libavutil/hwcontext_dxva2.c DXVA2Mapping *map; map 305 libavutil/hwcontext_dxva2.c map = av_mallocz(sizeof(*map)); map 306 libavutil/hwcontext_dxva2.c if (!map) { map 312 libavutil/hwcontext_dxva2.c dxva2_unmap_frame, map); map 314 libavutil/hwcontext_dxva2.c av_freep(&map); map 325 libavutil/hwcontext_dxva2.c dst->data[1] = (uint8_t*)map->palette_dummy; map 336 libavutil/hwcontext_dxva2.c AVFrame *map; map 342 libavutil/hwcontext_dxva2.c map = av_frame_alloc(); map 343 libavutil/hwcontext_dxva2.c if (!map) map 345 libavutil/hwcontext_dxva2.c map->format = dst->format; map 347 libavutil/hwcontext_dxva2.c ret = dxva2_map_frame(ctx, map, dst, AV_HWFRAME_MAP_WRITE | AV_HWFRAME_MAP_OVERWRITE); map 351 libavutil/hwcontext_dxva2.c av_image_copy(map->data, map->linesize, (const uint8_t **)src->data, src->linesize, map 355 libavutil/hwcontext_dxva2.c av_frame_free(&map); map 362 libavutil/hwcontext_dxva2.c AVFrame *map; map 369 libavutil/hwcontext_dxva2.c map = av_frame_alloc(); map 370 libavutil/hwcontext_dxva2.c if (!map) map 372 libavutil/hwcontext_dxva2.c map->format = dst->format; map 374 libavutil/hwcontext_dxva2.c ret = dxva2_map_frame(ctx, map, src, AV_HWFRAME_MAP_READ); map 380 libavutil/hwcontext_dxva2.c src_linesize[i] = map->linesize[i]; map 382 libavutil/hwcontext_dxva2.c av_image_copy_uc_from(dst->data, dst_linesize, (const uint8_t **)map->data, src_linesize, map 385 libavutil/hwcontext_dxva2.c av_frame_free(&map); map 1922 libavutil/hwcontext_opencl.c OpenCLMapping *map = hwmap->priv; map 1927 libavutil/hwcontext_opencl.c for (p = e = 0; p < FF_ARRAY_ELEMS(map->address); p++) { map 1928 libavutil/hwcontext_opencl.c if (!map->address[p]) map 1933 libavutil/hwcontext_opencl.c map->address[p], map 1944 libavutil/hwcontext_opencl.c av_free(map); map 1955 libavutil/hwcontext_opencl.c OpenCLMapping *map; map 1977 libavutil/hwcontext_opencl.c map = av_mallocz(sizeof(*map)); map 1978 libavutil/hwcontext_opencl.c if (!map) map 1994 libavutil/hwcontext_opencl.c map->address[p] = map 2000 libavutil/hwcontext_opencl.c if (!map->address[p]) { map 2007 libavutil/hwcontext_opencl.c dst->data[p] = map->address[p]; map 2018 libavutil/hwcontext_opencl.c &opencl_unmap_frame, map); map 2029 libavutil/hwcontext_opencl.c if (!map->address[p]) map 2033 libavutil/hwcontext_opencl.c map->address[p], map 2038 libavutil/hwcontext_opencl.c av_freep(&map); map 703 libavutil/hwcontext_vaapi.c VAAPIMapping *map = hwmap->priv; map 710 libavutil/hwcontext_vaapi.c vas = vaUnmapBuffer(hwctx->display, map->image.buf); map 716 libavutil/hwcontext_vaapi.c if ((map->flags & AV_HWFRAME_MAP_WRITE) && map 717 libavutil/hwcontext_vaapi.c !(map->flags & AV_HWFRAME_MAP_DIRECT)) { map 718 libavutil/hwcontext_vaapi.c vas = vaPutImage(hwctx->display, surface_id, map->image.image_id, map 727 libavutil/hwcontext_vaapi.c vas = vaDestroyImage(hwctx->display, map->image.image_id); map 733 libavutil/hwcontext_vaapi.c av_free(map); map 744 libavutil/hwcontext_vaapi.c VAAPIMapping *map; map 769 libavutil/hwcontext_vaapi.c map = av_malloc(sizeof(*map)); map 770 libavutil/hwcontext_vaapi.c if (!map) map 772 libavutil/hwcontext_vaapi.c map->flags = flags; map 773 libavutil/hwcontext_vaapi.c map->image.image_id = VA_INVALID_ID; map 792 libavutil/hwcontext_vaapi.c vas = vaDeriveImage(hwctx->display, surface_id, &map->image); map 800 libavutil/hwcontext_vaapi.c if (map->image.format.fourcc != image_format->fourcc) { map 803 libavutil/hwcontext_vaapi.c surface_id, image_format->fourcc, map->image.format.fourcc); map 807 libavutil/hwcontext_vaapi.c map->flags |= AV_HWFRAME_MAP_DIRECT; map 810 libavutil/hwcontext_vaapi.c hwfc->width, hwfc->height, &map->image); map 820 libavutil/hwcontext_vaapi.c hwfc->width, hwfc->height, map->image.image_id); map 831 libavutil/hwcontext_vaapi.c vas = vaMapBuffer(hwctx->display, map->image.buf, &address); map 840 libavutil/hwcontext_vaapi.c dst, src, &vaapi_unmap_frame, map); map 847 libavutil/hwcontext_vaapi.c for (i = 0; i < map->image.num_planes; i++) { map 848 libavutil/hwcontext_vaapi.c dst->data[i] = (uint8_t*)address + map->image.offsets[i]; map 849 libavutil/hwcontext_vaapi.c dst->linesize[i] = map->image.pitches[i]; map 852 libavutil/hwcontext_vaapi.c desc = vaapi_format_from_fourcc(map->image.format.fourcc); map 861 libavutil/hwcontext_vaapi.c if (map) { map 863 libavutil/hwcontext_vaapi.c vaUnmapBuffer(hwctx->display, map->image.buf); map 864 libavutil/hwcontext_vaapi.c if (map->image.image_id != VA_INVALID_ID) map 865 libavutil/hwcontext_vaapi.c vaDestroyImage(hwctx->display, map->image.image_id); map 866 libavutil/hwcontext_vaapi.c av_free(map); map 874 libavutil/hwcontext_vaapi.c AVFrame *map; map 880 libavutil/hwcontext_vaapi.c map = av_frame_alloc(); map 881 libavutil/hwcontext_vaapi.c if (!map) map 883 libavutil/hwcontext_vaapi.c map->format = dst->format; map 885 libavutil/hwcontext_vaapi.c err = vaapi_map_frame(hwfc, map, src, AV_HWFRAME_MAP_READ); map 889 libavutil/hwcontext_vaapi.c map->width = dst->width; map 890 libavutil/hwcontext_vaapi.c map->height = dst->height; map 892 libavutil/hwcontext_vaapi.c err = av_frame_copy(dst, map); map 898 libavutil/hwcontext_vaapi.c av_frame_free(&map); map 905 libavutil/hwcontext_vaapi.c AVFrame *map; map 911 libavutil/hwcontext_vaapi.c map = av_frame_alloc(); map 912 libavutil/hwcontext_vaapi.c if (!map) map 914 libavutil/hwcontext_vaapi.c map->format = src->format; map 916 libavutil/hwcontext_vaapi.c err = vaapi_map_frame(hwfc, map, dst, AV_HWFRAME_MAP_WRITE | AV_HWFRAME_MAP_OVERWRITE); map 920 libavutil/hwcontext_vaapi.c map->width = src->width; map 921 libavutil/hwcontext_vaapi.c map->height = src->height; map 923 libavutil/hwcontext_vaapi.c err = av_frame_copy(map, src); map 929 libavutil/hwcontext_vaapi.c av_frame_free(&map); map 85 libavutil/hwcontext_vdpau.c const VDPAUPixFmtMap *map; map 92 libavutil/hwcontext_vdpau.c static int count_pixfmts(const VDPAUPixFmtMap *map) map 95 libavutil/hwcontext_vdpau.c while (map->pix_fmt != AV_PIX_FMT_NONE) { map 96 libavutil/hwcontext_vdpau.c map++; map 109 libavutil/hwcontext_vdpau.c const VDPAUPixFmtMap *map = vdpau_pix_fmts[i].map; map 112 libavutil/hwcontext_vdpau.c nb_pix_fmts = count_pixfmts(map); map 118 libavutil/hwcontext_vdpau.c while (map->pix_fmt != AV_PIX_FMT_NONE) { map 121 libavutil/hwcontext_vdpau.c map->vdpau_fmt, &supported); map 123 libavutil/hwcontext_vdpau.c priv->pix_fmts[i][nb_pix_fmts++] = map->pix_fmt; map 124 libavutil/hwcontext_vdpau.c map++; map 324 libavutil/hwcontext_vdpau.c const VDPAUPixFmtMap *map; map 340 libavutil/hwcontext_vdpau.c map = vdpau_pix_fmts[priv->chroma_idx].map; map 341 libavutil/hwcontext_vdpau.c for (i = 0; map[i].pix_fmt != AV_PIX_FMT_NONE; i++) { map 342 libavutil/hwcontext_vdpau.c if (map[i].pix_fmt == dst->format) { map 343 libavutil/hwcontext_vdpau.c vdpau_format = map[i].vdpau_fmt; map 347 libavutil/hwcontext_vdpau.c if (map[i].pix_fmt == AV_PIX_FMT_NONE) { map 379 libavutil/hwcontext_vdpau.c const VDPAUPixFmtMap *map; map 395 libavutil/hwcontext_vdpau.c map = vdpau_pix_fmts[priv->chroma_idx].map; map 396 libavutil/hwcontext_vdpau.c for (i = 0; map[i].pix_fmt != AV_PIX_FMT_NONE; i++) { map 397 libavutil/hwcontext_vdpau.c if (map[i].pix_fmt == src->format) { map 398 libavutil/hwcontext_vdpau.c vdpau_format = map[i].vdpau_fmt; map 402 libavutil/hwcontext_vdpau.c if (map[i].pix_fmt == AV_PIX_FMT_NONE) { map 173 libavutil/hwcontext_videotoolbox.c AVFrame *map; map 179 libavutil/hwcontext_videotoolbox.c map = av_frame_alloc(); map 180 libavutil/hwcontext_videotoolbox.c if (!map) map 182 libavutil/hwcontext_videotoolbox.c map->format = dst->format; map 184 libavutil/hwcontext_videotoolbox.c err = vt_map_frame(hwfc, map, src, AV_HWFRAME_MAP_READ); map 188 libavutil/hwcontext_videotoolbox.c map->width = dst->width; map 189 libavutil/hwcontext_videotoolbox.c map->height = dst->height; map 191 libavutil/hwcontext_videotoolbox.c err = av_frame_copy(dst, map); map 197 libavutil/hwcontext_videotoolbox.c av_frame_free(&map); map 204 libavutil/hwcontext_videotoolbox.c AVFrame *map; map 210 libavutil/hwcontext_videotoolbox.c map = av_frame_alloc(); map 211 libavutil/hwcontext_videotoolbox.c if (!map) map 213 libavutil/hwcontext_videotoolbox.c map->format = src->format; map 215 libavutil/hwcontext_videotoolbox.c err = vt_map_frame(hwfc, map, dst, AV_HWFRAME_MAP_WRITE | AV_HWFRAME_MAP_OVERWRITE); map 219 libavutil/hwcontext_videotoolbox.c map->width = src->width; map 220 libavutil/hwcontext_videotoolbox.c map->height = src->height; map 222 libavutil/hwcontext_videotoolbox.c err = av_frame_copy(map, src); map 228 libavutil/hwcontext_videotoolbox.c av_frame_free(&map); map 1795 libavutil/hwcontext_vulkan.c VulkanMapping *map = hwmap->priv; map 1800 libavutil/hwcontext_vulkan.c if ((map->flags & AV_HWFRAME_MAP_WRITE) && map 1801 libavutil/hwcontext_vulkan.c !(map->frame->flags & VK_MEMORY_PROPERTY_HOST_COHERENT_BIT)) { map 1807 libavutil/hwcontext_vulkan.c flush_ranges[i].memory = map->frame->mem[i]; map 1820 libavutil/hwcontext_vulkan.c vkUnmapMemory(hwctx->act_dev, map->frame->mem[i]); map 1822 libavutil/hwcontext_vulkan.c av_free(map); map 1834 libavutil/hwcontext_vulkan.c VulkanMapping *map = av_mallocz(sizeof(VulkanMapping)); map 1835 libavutil/hwcontext_vulkan.c if (!map) map 1897 libavutil/hwcontext_vulkan.c map->frame = f; map 1898 libavutil/hwcontext_vulkan.c map->flags = flags; map 1901 libavutil/hwcontext_vulkan.c &vulkan_unmap_frame, map); map 1911 libavutil/hwcontext_vulkan.c av_free(map); map 1918 libavutil/hwcontext_vulkan.c VulkanMapping *map = hwmap->priv; map 1923 libavutil/hwcontext_vulkan.c vkDestroyImage(hwctx->act_dev, map->frame->img[i], hwctx->alloc); map 1924 libavutil/hwcontext_vulkan.c vkFreeMemory(hwctx->act_dev, map->frame->mem[i], hwctx->alloc); map 1925 libavutil/hwcontext_vulkan.c vkDestroySemaphore(hwctx->act_dev, map->frame->sem[i], hwctx->alloc); map 1928 libavutil/hwcontext_vulkan.c av_freep(&map->frame); map 2194 libavutil/hwcontext_vulkan.c VulkanMapping *map = NULL; map 2206 libavutil/hwcontext_vulkan.c map = av_mallocz(sizeof(VulkanMapping)); map 2207 libavutil/hwcontext_vulkan.c if (!map) map 2210 libavutil/hwcontext_vulkan.c map->frame = f; map 2211 libavutil/hwcontext_vulkan.c map->flags = flags; map 2214 libavutil/hwcontext_vulkan.c &vulkan_unmap_from, map); map 2224 libavutil/hwcontext_vulkan.c av_free(map); map 3010 libavutil/hwcontext_vulkan.c AVFrame *map = av_frame_alloc(); map 3011 libavutil/hwcontext_vulkan.c if (!map) map 3013 libavutil/hwcontext_vulkan.c map->format = src->format; map 3015 libavutil/hwcontext_vulkan.c err = vulkan_map_frame_to_mem(hwfc, map, dst, AV_HWFRAME_MAP_WRITE); map 3019 libavutil/hwcontext_vulkan.c err = av_frame_copy(map, src); map 3020 libavutil/hwcontext_vulkan.c av_frame_free(&map); map 3194 libavutil/hwcontext_vulkan.c AVFrame *map = av_frame_alloc(); map 3195 libavutil/hwcontext_vulkan.c if (!map) map 3197 libavutil/hwcontext_vulkan.c map->format = dst->format; map 3199 libavutil/hwcontext_vulkan.c err = vulkan_map_frame_to_mem(hwfc, map, src, AV_HWFRAME_MAP_READ); map 3203 libavutil/hwcontext_vulkan.c err = av_frame_copy(dst, map); map 3204 libavutil/hwcontext_vulkan.c av_frame_free(&map); map 36 libavutil/spherical.c void av_spherical_tile_bounds(const AVSphericalMapping *map, map 43 libavutil/spherical.c (UINT32_MAX - map->bound_right - map->bound_left); map 45 libavutil/spherical.c (UINT32_MAX - map->bound_bottom - map->bound_top); map 48 libavutil/spherical.c *left = (orig_width * map->bound_left + UINT32_MAX - 1) / UINT32_MAX; map 49 libavutil/spherical.c *top = (orig_height * map->bound_top + UINT32_MAX - 1) / UINT32_MAX; map 205 libavutil/spherical.h void av_spherical_tile_bounds(const AVSphericalMapping *map, map 744 libswscale/utils.c static const int8_t map[] = { map 823 libswscale/utils.c for(i=0; i<FF_ARRAY_ELEMS(map); i++) map 824 libswscale/utils.c AV_WL16(p + 16*4 + 2*i, map[i] >= 0 ? c->input_rgb2yuv_table[map[i]] : 0);