ctx                60 doc/examples/avio_list_dir.c     AVIODirContext *ctx = NULL;
ctx                64 doc/examples/avio_list_dir.c     if ((ret = avio_open_dir(&ctx, input_dir, NULL)) < 0) {
ctx                71 doc/examples/avio_list_dir.c         if ((ret = avio_read_dir(ctx, &entry)) < 0) {
ctx               101 doc/examples/avio_list_dir.c     avio_close_dir(&ctx);
ctx                95 doc/examples/encode_audio.c static void encode(AVCodecContext *ctx, AVFrame *frame, AVPacket *pkt,
ctx               101 doc/examples/encode_audio.c     ret = avcodec_send_frame(ctx, frame);
ctx               110 doc/examples/encode_audio.c         ret = avcodec_receive_packet(ctx, pkt);
ctx                49 doc/examples/hw_decode.c static int hw_decoder_init(AVCodecContext *ctx, const enum AVHWDeviceType type)
ctx                58 doc/examples/hw_decode.c     ctx->hw_device_ctx = av_buffer_ref(hw_device_ctx);
ctx                63 doc/examples/hw_decode.c static enum AVPixelFormat get_hw_format(AVCodecContext *ctx,
ctx                44 doc/examples/vaapi_encode.c static int set_hwframe_ctx(AVCodecContext *ctx, AVBufferRef *hw_device_ctx)
ctx                66 doc/examples/vaapi_encode.c     ctx->hw_frames_ctx = av_buffer_ref(hw_frames_ref);
ctx                67 doc/examples/vaapi_encode.c     if (!ctx->hw_frames_ctx)
ctx                48 doc/examples/vaapi_transcode.c static enum AVPixelFormat get_vaapi_format(AVCodecContext *ctx,
ctx               484 fftools/ffmpeg.c static int decode_interrupt_cb(void *ctx)
ctx               552 fftools/ffmpeg.c         s = of->ctx;
ctx               601 fftools/ffmpeg.c         avformat_close_input(&input_files[i]->ctx);
ctx               703 fftools/ffmpeg.c     AVFormatContext *s = of->ctx;
ctx              1093 fftools/ffmpeg.c             if(!strcmp(of->ctx->oformat->name, "avi")) {
ctx              1096 fftools/ffmpeg.c                 format_video_sync = (of->ctx->oformat->flags & AVFMT_VARIABLE_FPS) ? ((of->ctx->oformat->flags & AVFMT_NOTIMESTAMPS) ? VSYNC_PASSTHROUGH : VSYNC_VFR) : VSYNC_CFR;
ctx              1099 fftools/ffmpeg.c                 && input_files[ist->file_index]->ctx->nb_streams == 1
ctx              1402 fftools/ffmpeg.c         for (i = 0; i < of->ctx->nb_streams; i++)
ctx              1562 fftools/ffmpeg.c                i, f->ctx->url);
ctx              1596 fftools/ffmpeg.c                i, of->ctx->url);
ctx              1598 fftools/ffmpeg.c         for (j = 0; j < of->ctx->nb_streams; j++) {
ctx              1668 fftools/ffmpeg.c     oc = output_files[0]->ctx;
ctx              2017 fftools/ffmpeg.c         start_time = f->ctx->start_time;
ctx              2087 fftools/ffmpeg.c                    "%s: corrupt decoded frame in stream %d\n", input_files[ist->file_index]->ctx->url, ist->st->index);
ctx              2746 fftools/ffmpeg.c         if (!strcmp(output_files[i]->ctx->oformat->name, "rtp")) {
ctx              2747 fftools/ffmpeg.c             avc[j] = output_files[i]->ctx;
ctx              2952 fftools/ffmpeg.c     for (i = 0; i < of->ctx->nb_streams; i++) {
ctx              2958 fftools/ffmpeg.c     of->ctx->interrupt_callback = int_cb;
ctx              2960 fftools/ffmpeg.c     ret = avformat_write_header(of->ctx, &of->opts);
ctx              2971 fftools/ffmpeg.c     av_dump_format(of->ctx, file_index, of->ctx->url, 1);
ctx              2977 fftools/ffmpeg.c     for (i = 0; i < of->ctx->nb_streams; i++) {
ctx              2996 fftools/ffmpeg.c     AVBSFContext *ctx = ost->bsf_ctx;
ctx              2999 fftools/ffmpeg.c     if (!ctx)
ctx              3002 fftools/ffmpeg.c     ret = avcodec_parameters_copy(ctx->par_in, ost->st->codecpar);
ctx              3006 fftools/ffmpeg.c     ctx->time_base_in = ost->st->time_base;
ctx              3008 fftools/ffmpeg.c     ret = av_bsf_init(ctx);
ctx              3011 fftools/ffmpeg.c                ctx->filter->name);
ctx              3015 fftools/ffmpeg.c     ret = avcodec_parameters_copy(ost->st->codecpar, ctx->par_out);
ctx              3018 fftools/ffmpeg.c     ost->st->time_base = ctx->time_base_out;
ctx              3053 fftools/ffmpeg.c         if (!of->ctx->oformat->codec_tag ||
ctx              3054 fftools/ffmpeg.c             av_codec_get_id (of->ctx->oformat->codec_tag, par_src->codec_tag) == par_src->codec_id ||
ctx              3055 fftools/ffmpeg.c             !av_codec_get_tag2(of->ctx->oformat->codec_tag, par_src->codec_id, &codec_tag_tmp))
ctx              3069 fftools/ffmpeg.c     ret = avformat_transfer_internal_stream_timing_info(of->ctx->oformat, ost->st, ist->st, copy_tb);
ctx              3151 fftools/ffmpeg.c         const AVOption *o = av_opt_find(of->ctx, "fflags", NULL, 0, 0);
ctx              3154 fftools/ffmpeg.c         av_opt_eval_flags(of->ctx, o, e->value, &format_flags);
ctx              3204 fftools/ffmpeg.c             AVFormatContext *avf = output_files[ost->file_index]->ctx;
ctx              3258 fftools/ffmpeg.c         oc = output_files[ost->file_index]->ctx;
ctx              3270 fftools/ffmpeg.c     AVFormatContext *oc = output_files[ost->file_index]->ctx;
ctx              3612 fftools/ffmpeg.c     AVStream *st = file->ctx->streams[pkt->stream_index];
ctx              3616 fftools/ffmpeg.c     av_log(file->ctx, AV_LOG_WARNING,
ctx              3679 fftools/ffmpeg.c         for (j = 0; j < ifile->ctx->nb_programs; j++) {
ctx              3680 fftools/ffmpeg.c             AVProgram *p = ifile->ctx->programs[j];
ctx              3694 fftools/ffmpeg.c         oc = output_files[i]->ctx;
ctx              3804 fftools/ffmpeg.c         AVFormatContext *os  = output_files[ost->file_index]->ctx;
ctx              3811 fftools/ffmpeg.c             for (j = 0; j < of->ctx->nb_streams; j++)
ctx              3992 fftools/ffmpeg.c         ret = av_read_frame(f->ctx, &pkt);
ctx              4006 fftools/ffmpeg.c             av_log(f->ctx, AV_LOG_WARNING,
ctx              4013 fftools/ffmpeg.c                 av_log(f->ctx, AV_LOG_ERROR,
ctx              4057 fftools/ffmpeg.c     if (f->ctx->pb ? !f->ctx->pb->seekable :
ctx              4058 fftools/ffmpeg.c         strcmp(f->ctx->iformat->name, "lavfi"))
ctx              4111 fftools/ffmpeg.c     return av_read_frame(f->ctx, pkt);
ctx              4229 fftools/ffmpeg.c     is  = ifile->ctx;
ctx              4691 fftools/ffmpeg.c         os = output_files[i]->ctx;
ctx              4865 fftools/ffmpeg.c         if (strcmp(output_files[i]->ctx->oformat->name, "rtp"))
ctx               394 fftools/ffmpeg.h     AVFormatContext *ctx;
ctx               555 fftools/ffmpeg.h     AVFormatContext *ctx;
ctx               237 fftools/ffmpeg_filter.c     AVFilterContext *ctx = inout->filter_ctx;
ctx               238 fftools/ffmpeg_filter.c     AVFilterPad *pads = in ? ctx->input_pads  : ctx->output_pads;
ctx               239 fftools/ffmpeg_filter.c     int       nb_pads = in ? ctx->nb_inputs   : ctx->nb_outputs;
ctx               246 fftools/ffmpeg_filter.c     avio_printf(pb, "%s", ctx->filter->name);
ctx               278 fftools/ffmpeg_filter.c         s = input_files[file_idx]->ctx;
ctx               387 fftools/ffmpeg_filter.c     AVFilterContext *ctx;
ctx               403 fftools/ffmpeg_filter.c     ctx = avfilter_graph_alloc_filter(graph, trim, filter_name);
ctx               404 fftools/ffmpeg_filter.c     if (!ctx)
ctx               408 fftools/ffmpeg_filter.c         ret = av_opt_set_int(ctx, "durationi", duration,
ctx               412 fftools/ffmpeg_filter.c         ret = av_opt_set_int(ctx, "starti", start_time,
ctx               416 fftools/ffmpeg_filter.c         av_log(ctx, AV_LOG_ERROR, "Error configuring the %s filter", name);
ctx               420 fftools/ffmpeg_filter.c     ret = avfilter_init_str(ctx, NULL);
ctx               424 fftools/ffmpeg_filter.c     ret = avfilter_link(*last_filter, *pad_idx, ctx, 0);
ctx               428 fftools/ffmpeg_filter.c     *last_filter = ctx;
ctx               437 fftools/ffmpeg_filter.c     AVFilterContext *ctx;
ctx               440 fftools/ffmpeg_filter.c     ret = avfilter_graph_create_filter(&ctx,
ctx               446 fftools/ffmpeg_filter.c     ret = avfilter_link(*last_filter, *pad_idx, ctx, 0);
ctx               450 fftools/ffmpeg_filter.c     *last_filter = ctx;
ctx               654 fftools/ffmpeg_filter.c         for (i=0; i<of->ctx->nb_streams; i++)
ctx               655 fftools/ffmpeg_filter.c             if (of->ctx->streams[i]->codecpar->codec_type == AVMEDIA_TYPE_VIDEO)
ctx               658 fftools/ffmpeg_filter.c         if (i<of->ctx->nb_streams) {
ctx               708 fftools/ffmpeg_filter.c     AVFormatContext *avf = input_files[ist->file_index]->ctx;
ctx               782 fftools/ffmpeg_filter.c         fr = av_guess_frame_rate(input_files[ist->file_index]->ctx, ist->st, NULL);
ctx               857 fftools/ffmpeg_filter.c         if (!start_at_zero && f->ctx->start_time != AV_NOPTS_VALUE)
ctx               858 fftools/ffmpeg_filter.c             tsoffset += f->ctx->start_time;
ctx               970 fftools/ffmpeg_filter.c         if (!start_at_zero && f->ctx->start_time != AV_NOPTS_VALUE)
ctx               971 fftools/ffmpeg_filter.c             tsoffset += f->ctx->start_time;
ctx               355 fftools/ffmpeg_opt.c             if (check_stream_specifier(input_files[sync_file_idx]->ctx,
ctx               356 fftools/ffmpeg_opt.c                                        input_files[sync_file_idx]->ctx->streams[i], sync) == 1) {
ctx               396 fftools/ffmpeg_opt.c                     check_stream_specifier(input_files[m->file_index]->ctx,
ctx               397 fftools/ffmpeg_opt.c                                            input_files[m->file_index]->ctx->streams[m->stream_index],
ctx               403 fftools/ffmpeg_opt.c                 if (check_stream_specifier(input_files[file_idx]->ctx, input_files[file_idx]->ctx->streams[i],
ctx               503 fftools/ffmpeg_opt.c     st = input_files[m->file_idx]->ctx->streams[m->stream_idx];
ctx              1012 fftools/ffmpeg_opt.c              if (file->ctx->iformat->flags & AVFMT_NOFILE)
ctx              1014 fftools/ffmpeg_opt.c              if (!strcmp(filename, file->ctx->url)) {
ctx              1259 fftools/ffmpeg_opt.c     f->ctx        = ic;
ctx              2025 fftools/ffmpeg_opt.c     AVFormatContext *is = ifile->ctx;
ctx              2026 fftools/ffmpeg_opt.c     AVFormatContext *os = ofile->ctx;
ctx              2168 fftools/ffmpeg_opt.c     of->ctx = oc;
ctx              2595 fftools/ffmpeg_opt.c                       input_files[in_file_index]->ctx : NULL, o);
ctx              2604 fftools/ffmpeg_opt.c                 if (input_files[i]->ctx->nb_chapters) {
ctx              2620 fftools/ffmpeg_opt.c         av_dict_copy(&oc->metadata, input_files[0]->ctx->metadata,
ctx              2789 fftools/ffmpeg_opt.c                     AVStream *st = input_files[j]->ctx->streams[i];
ctx              2727 fftools/ffplay.c static int decode_interrupt_cb(void *ctx)
ctx              2729 fftools/ffplay.c     VideoState *is = ctx;
ctx               503 fftools/ffprobe.c     WriterContext *ctx = obj;
ctx               504 fftools/ffprobe.c     if (!prev && ctx->writer && ctx->writer->priv_class && ctx->priv)
ctx               505 fftools/ffprobe.c         return ctx->priv;
ctx               911 fftools/ffprobe.c static const char *name##_get_name(void *ctx)       \
ctx                41 libavcodec/aac_adtstoasc_bsf.c     AACBSFContext *ctx = bsfc->priv_data;
ctx                78 libavcodec/aac_adtstoasc_bsf.c     if (!ctx->first_frame_done) {
ctx               119 libavcodec/aac_adtstoasc_bsf.c         ctx->first_frame_done = 1;
ctx               132 libavcodec/aac_adtstoasc_bsf.c static int aac_adtstoasc_init(AVBSFContext *ctx)
ctx               135 libavcodec/aac_adtstoasc_bsf.c     if (ctx->par_in->extradata) {
ctx               137 libavcodec/aac_adtstoasc_bsf.c         int ret = avpriv_mpeg4audio_get_config2(&mp4ac, ctx->par_in->extradata,
ctx               138 libavcodec/aac_adtstoasc_bsf.c                                                 ctx->par_in->extradata_size, 1, ctx);
ctx               140 libavcodec/aac_adtstoasc_bsf.c             av_log(ctx, AV_LOG_ERROR, "Error parsing AudioSpecificConfig extradata!\n");
ctx               427 libavcodec/aacdec.c static int read_payload_length_info(struct LATMContext *ctx, GetBitContext *gb)
ctx               431 libavcodec/aacdec.c     if (ctx->frame_length_type == 0) {
ctx               440 libavcodec/aacdec.c     } else if (ctx->frame_length_type == 1) {
ctx               441 libavcodec/aacdec.c         return ctx->frame_length;
ctx               442 libavcodec/aacdec.c     } else if (ctx->frame_length_type == 3 ||
ctx               443 libavcodec/aacdec.c                ctx->frame_length_type == 5 ||
ctx               444 libavcodec/aacdec.c                ctx->frame_length_type == 7) {
ctx               262 libavcodec/aacpsy.c static av_cold void lame_window_init(AacPsyContext *ctx, AVCodecContext *avctx)
ctx               267 libavcodec/aacpsy.c         AacPsyChannel *pch = &ctx->ch[i];
ctx               301 libavcodec/aacpsy.c static av_cold int psy_3gpp_init(FFPsyContext *ctx) {
ctx               306 libavcodec/aacpsy.c     int chan_bitrate = ctx->avctx->bit_rate / ((ctx->avctx->flags & AV_CODEC_FLAG_QSCALE) ? 2.0f : ctx->avctx->channels);
ctx               308 libavcodec/aacpsy.c     const int bandwidth    = ctx->cutoff ? ctx->cutoff : AAC_CUTOFF(ctx->avctx);
ctx               311 libavcodec/aacpsy.c     ctx->model_priv_data = av_mallocz(sizeof(AacPsyContext));
ctx               312 libavcodec/aacpsy.c     if (!ctx->model_priv_data)
ctx               314 libavcodec/aacpsy.c     pctx = ctx->model_priv_data;
ctx               315 libavcodec/aacpsy.c     pctx->global_quality = (ctx->avctx->global_quality ? ctx->avctx->global_quality : 120) * 0.01f;
ctx               317 libavcodec/aacpsy.c     if (ctx->avctx->flags & AV_CODEC_FLAG_QSCALE) {
ctx               319 libavcodec/aacpsy.c         chan_bitrate = (int)(chan_bitrate / 120.0 * (ctx->avctx->global_quality ? ctx->avctx->global_quality : 120));
ctx               323 libavcodec/aacpsy.c     pctx->frame_bits   = FFMIN(2560, chan_bitrate * AAC_BLOCK_SIZE_LONG / ctx->avctx->sample_rate);
ctx               324 libavcodec/aacpsy.c     pctx->pe.min       =  8.0f * AAC_BLOCK_SIZE_LONG * bandwidth / (ctx->avctx->sample_rate * 2.0f);
ctx               325 libavcodec/aacpsy.c     pctx->pe.max       = 12.0f * AAC_BLOCK_SIZE_LONG * bandwidth / (ctx->avctx->sample_rate * 2.0f);
ctx               326 libavcodec/aacpsy.c     ctx->bitres.size   = 6144 - pctx->frame_bits;
ctx               327 libavcodec/aacpsy.c     ctx->bitres.size  -= ctx->bitres.size % 8;
ctx               328 libavcodec/aacpsy.c     pctx->fill_level   = ctx->bitres.size;
ctx               332 libavcodec/aacpsy.c         const uint8_t *band_sizes = ctx->bands[j];
ctx               333 libavcodec/aacpsy.c         float line_to_frequency = ctx->avctx->sample_rate / (j ? 256.f : 2048.0f);
ctx               334 libavcodec/aacpsy.c         float avg_chan_bits = chan_bitrate * (j ? 128.0f : 1024.0f) / ctx->avctx->sample_rate;
ctx               343 libavcodec/aacpsy.c         for (g = 0; g < ctx->num_bands[j]; g++) {
ctx               349 libavcodec/aacpsy.c         for (g = 0; g < ctx->num_bands[j] - 1; g++) {
ctx               361 libavcodec/aacpsy.c         for (g = 0; g < ctx->num_bands[j]; g++) {
ctx               370 libavcodec/aacpsy.c     pctx->ch = av_mallocz_array(ctx->avctx->channels, sizeof(AacPsyChannel));
ctx               372 libavcodec/aacpsy.c         av_freep(&ctx->model_priv_data);
ctx               376 libavcodec/aacpsy.c     lame_window_init(pctx, ctx->avctx);
ctx               405 libavcodec/aacpsy.c static av_unused FFPsyWindowInfo psy_3gpp_window(FFPsyContext *ctx,
ctx               411 libavcodec/aacpsy.c     int br               = ((AacPsyContext*)ctx->model_priv_data)->chan_bitrate;
ctx               413 libavcodec/aacpsy.c     AacPsyContext *pctx = (AacPsyContext*) ctx->model_priv_data;
ctx               491 libavcodec/aacpsy.c static int calc_bit_demand(AacPsyContext *ctx, float pe, int bits, int size,
ctx               502 libavcodec/aacpsy.c     ctx->fill_level += ctx->frame_bits - bits;
ctx               503 libavcodec/aacpsy.c     ctx->fill_level  = av_clip(ctx->fill_level, 0, size);
ctx               504 libavcodec/aacpsy.c     fill_level = av_clipf((float)ctx->fill_level / size, clip_low, clip_high);
ctx               505 libavcodec/aacpsy.c     clipped_pe = av_clipf(pe, ctx->pe.min, ctx->pe.max);
ctx               516 libavcodec/aacpsy.c     bit_factor = 1.0f - bit_save + ((bit_spend - bit_save) / (ctx->pe.max - ctx->pe.min)) * (clipped_pe - ctx->pe.min);
ctx               521 libavcodec/aacpsy.c     ctx->pe.max = FFMAX(pe, ctx->pe.max);
ctx               522 libavcodec/aacpsy.c     forgetful_min_pe = ((ctx->pe.min * PSY_PE_FORGET_SLOPE)
ctx               523 libavcodec/aacpsy.c         + FFMAX(ctx->pe.min, pe * (pe / ctx->pe.max))) / (PSY_PE_FORGET_SLOPE + 1);
ctx               524 libavcodec/aacpsy.c     ctx->pe.min = FFMIN(pe, forgetful_min_pe);
ctx               530 libavcodec/aacpsy.c         ctx->frame_bits * bit_factor,
ctx               531 libavcodec/aacpsy.c         FFMAX(ctx->frame_bits + size - bits, ctx->frame_bits / 8));
ctx               649 libavcodec/aacpsy.c static void psy_3gpp_analyze_channel(FFPsyContext *ctx, int channel,
ctx               652 libavcodec/aacpsy.c     AacPsyContext *pctx = (AacPsyContext*) ctx->model_priv_data;
ctx               658 libavcodec/aacpsy.c     const int      num_bands   = ctx->num_bands[wi->num_windows == 8];
ctx               659 libavcodec/aacpsy.c     const uint8_t *band_sizes  = ctx->bands[wi->num_windows == 8];
ctx               662 libavcodec/aacpsy.c     const int bandwidth        = ctx->cutoff ? ctx->cutoff : AAC_CUTOFF(ctx->avctx);
ctx               663 libavcodec/aacpsy.c     const int cutoff           = bandwidth * 2048 / wi->num_windows / ctx->avctx->sample_rate;
ctx               706 libavcodec/aacpsy.c     ctx->ch[channel].entropy = pe;
ctx               707 libavcodec/aacpsy.c     if (ctx->avctx->flags & AV_CODEC_FLAG_QSCALE) {
ctx               711 libavcodec/aacpsy.c         desired_pe = pe * (ctx->avctx->global_quality ? ctx->avctx->global_quality : 120) / (2 * 2.5f * 120.0f);
ctx               716 libavcodec/aacpsy.c         if (ctx->bitres.bits > 0) {
ctx               724 libavcodec/aacpsy.c         desired_bits = calc_bit_demand(pctx, pe, ctx->bitres.bits, ctx->bitres.size, wi->num_windows == 8);
ctx               731 libavcodec/aacpsy.c         if (ctx->bitres.bits > 0)
ctx               732 libavcodec/aacpsy.c             desired_pe *= av_clipf(pctx->pe.previous / PSY_3GPP_BITS_TO_PE(ctx->bitres.bits),
ctx               736 libavcodec/aacpsy.c     ctx->bitres.alloc = desired_bits;
ctx               833 libavcodec/aacpsy.c             FFPsyBand  *psy_band = &ctx->ch[channel].psy_bands[w+g];
ctx               845 libavcodec/aacpsy.c static void psy_3gpp_analyze(FFPsyContext *ctx, int channel,
ctx               849 libavcodec/aacpsy.c     FFPsyChannelGroup *group = ff_psy_find_group(ctx, channel);
ctx               852 libavcodec/aacpsy.c         psy_3gpp_analyze_channel(ctx, channel + ch, coeffs[ch], &wi[ch]);
ctx               862 libavcodec/aacpsy.c static void lame_apply_block_type(AacPsyChannel *ctx, FFPsyWindowInfo *wi, int uselongblock)
ctx               866 libavcodec/aacpsy.c         if (ctx->next_window_seq == EIGHT_SHORT_SEQUENCE)
ctx               870 libavcodec/aacpsy.c         if (ctx->next_window_seq == ONLY_LONG_SEQUENCE)
ctx               871 libavcodec/aacpsy.c             ctx->next_window_seq = LONG_START_SEQUENCE;
ctx               872 libavcodec/aacpsy.c         if (ctx->next_window_seq == LONG_STOP_SEQUENCE)
ctx               873 libavcodec/aacpsy.c             ctx->next_window_seq = EIGHT_SHORT_SEQUENCE;
ctx               876 libavcodec/aacpsy.c     wi->window_type[0] = ctx->next_window_seq;
ctx               877 libavcodec/aacpsy.c     ctx->next_window_seq = blocktype;
ctx               880 libavcodec/aacpsy.c static FFPsyWindowInfo psy_lame_window(FFPsyContext *ctx, const float *audio,
ctx               883 libavcodec/aacpsy.c     AacPsyContext *pctx = (AacPsyContext*) ctx->model_priv_data;
ctx                27 libavcodec/aarch64/opusdsp_init.c av_cold void ff_opus_dsp_init_aarch64(OpusDSP *ctx)
ctx                32 libavcodec/aarch64/opusdsp_init.c         ctx->postfilter = ff_opus_postfilter_neon;
ctx                33 libavcodec/aarch64/opusdsp_init.c         ctx->deemphasis = ff_opus_deemphasis_neon;
ctx                26 libavcodec/aarch64/videodsp_init.c av_cold void ff_videodsp_init_aarch64(VideoDSPContext *ctx, int bpc)
ctx                31 libavcodec/aarch64/videodsp_init.c         ctx->prefetch = ff_prefetch_aarch64;
ctx               159 libavcodec/aic.c static int aic_decode_header(AICContext *ctx, const uint8_t *src, int size)
ctx               165 libavcodec/aic.c         av_log(ctx->avctx, AV_LOG_ERROR, "Invalid version %d\n", src[0]);
ctx               169 libavcodec/aic.c         av_log(ctx->avctx, AV_LOG_ERROR, "Invalid header size %d\n", src[1]);
ctx               176 libavcodec/aic.c         av_log(ctx->avctx, AV_LOG_ERROR, "Frame size should be %"PRIu32" got %d\n",
ctx               180 libavcodec/aic.c     if (width != ctx->avctx->width || height != ctx->avctx->height) {
ctx               181 libavcodec/aic.c         av_log(ctx->avctx, AV_LOG_ERROR,
ctx               183 libavcodec/aic.c                ctx->avctx->width, ctx->avctx->height, width, height);
ctx               186 libavcodec/aic.c     ctx->quant      = src[15];
ctx               187 libavcodec/aic.c     ctx->interlaced = ((src[16] >> 4) == 3);
ctx               308 libavcodec/aic.c static int aic_decode_slice(AICContext *ctx, int mb_x, int mb_y,
ctx               313 libavcodec/aic.c     int slice_width = FFMIN(ctx->slice_width, ctx->mb_width - mb_x);
ctx               314 libavcodec/aic.c     int last_row = mb_y && mb_y == ctx->mb_height - 1;
ctx               318 libavcodec/aic.c     int16_t *base_y = ctx->data_ptr[COEFF_LUMA];
ctx               319 libavcodec/aic.c     int16_t *base_c = ctx->data_ptr[COEFF_CHROMA];
ctx               320 libavcodec/aic.c     int16_t *ext_y  = ctx->data_ptr[COEFF_LUMA_EXT];
ctx               321 libavcodec/aic.c     int16_t *ext_c  = ctx->data_ptr[COEFF_CHROMA_EXT];
ctx               322 libavcodec/aic.c     const int ystride = ctx->frame->linesize[0];
ctx               325 libavcodec/aic.c         y_pos = (ctx->avctx->height - 16);
ctx               326 libavcodec/aic.c         c_pos = ((ctx->avctx->height+1)/2 - 8);
ctx               332 libavcodec/aic.c     Y = ctx->frame->data[0] + mb_x * 16 + y_pos * ystride;
ctx               334 libavcodec/aic.c         C[i] = ctx->frame->data[i + 1] + mb_x * 8
ctx               335 libavcodec/aic.c                + c_pos * ctx->frame->linesize[i + 1];
ctx               338 libavcodec/aic.c     memset(ctx->slice_data, 0,
ctx               339 libavcodec/aic.c            sizeof(*ctx->slice_data) * slice_width * AIC_BAND_COEFFS);
ctx               341 libavcodec/aic.c         if ((ret = aic_decode_coeffs(&gb, ctx->data_ptr[i],
ctx               343 libavcodec/aic.c                                      !ctx->interlaced)) < 0)
ctx               348 libavcodec/aic.c             if (!ctx->interlaced)
ctx               349 libavcodec/aic.c                 recombine_block(ctx->block, ctx->scantable.permutated,
ctx               352 libavcodec/aic.c                 recombine_block_il(ctx->block, ctx->scantable.permutated,
ctx               354 libavcodec/aic.c             unquant_block(ctx->block, ctx->quant, ctx->quant_matrix);
ctx               355 libavcodec/aic.c             ctx->idsp.idct(ctx->block);
ctx               357 libavcodec/aic.c             if (!ctx->interlaced) {
ctx               359 libavcodec/aic.c                 ctx->idsp.put_signed_pixels_clamped(ctx->block, dst, ystride);
ctx               362 libavcodec/aic.c                 ctx->idsp.put_signed_pixels_clamped(ctx->block, dst,
ctx               369 libavcodec/aic.c             recombine_block(ctx->block, ctx->scantable.permutated,
ctx               371 libavcodec/aic.c             unquant_block(ctx->block, ctx->quant, ctx->quant_matrix);
ctx               372 libavcodec/aic.c             ctx->idsp.idct(ctx->block);
ctx               373 libavcodec/aic.c             ctx->idsp.put_signed_pixels_clamped(ctx->block, C[blk],
ctx               374 libavcodec/aic.c                                                 ctx->frame->linesize[blk + 1]);
ctx               385 libavcodec/aic.c     AICContext *ctx    = avctx->priv_data;
ctx               394 libavcodec/aic.c     ctx->frame            = data;
ctx               395 libavcodec/aic.c     ctx->frame->pict_type = AV_PICTURE_TYPE_I;
ctx               396 libavcodec/aic.c     ctx->frame->key_frame = 1;
ctx               398 libavcodec/aic.c     off = FFALIGN(AIC_HDR_SIZE + ctx->num_x_slices * ctx->mb_height * 2, 4);
ctx               405 libavcodec/aic.c     ret = aic_decode_header(ctx, buf, buf_size);
ctx               415 libavcodec/aic.c                      ctx->num_x_slices * ctx->mb_height * 2);
ctx               417 libavcodec/aic.c     for (y = 0; y < ctx->mb_height; y++) {
ctx               418 libavcodec/aic.c         for (x = 0; x < ctx->mb_width; x += ctx->slice_width) {
ctx               426 libavcodec/aic.c             ret = aic_decode_slice(ctx, x, y, buf + off, slice_size);
ctx               444 libavcodec/aic.c     AICContext *ctx = avctx->priv_data;
ctx               448 libavcodec/aic.c     ctx->avctx = avctx;
ctx               452 libavcodec/aic.c     ff_idctdsp_init(&ctx->idsp, avctx);
ctx               456 libavcodec/aic.c     ff_init_scantable(ctx->idsp.idct_permutation, &ctx->scantable, scan);
ctx               458 libavcodec/aic.c         ctx->quant_matrix[ctx->idsp.idct_permutation[i]] = aic_quant_matrix[i];
ctx               460 libavcodec/aic.c     ctx->mb_width  = FFALIGN(avctx->width,  16) >> 4;
ctx               461 libavcodec/aic.c     ctx->mb_height = FFALIGN(avctx->height, 16) >> 4;
ctx               463 libavcodec/aic.c     ctx->num_x_slices = (ctx->mb_width + 15) >> 4;
ctx               464 libavcodec/aic.c     ctx->slice_width  = 16;
ctx               465 libavcodec/aic.c     for (i = 1; i < ctx->mb_width; i++) {
ctx               466 libavcodec/aic.c         if (!(ctx->mb_width % i) && (ctx->mb_width / i <= 32)) {
ctx               467 libavcodec/aic.c             ctx->slice_width  = ctx->mb_width / i;
ctx               468 libavcodec/aic.c             ctx->num_x_slices = i;
ctx               473 libavcodec/aic.c     ctx->slice_data = av_malloc_array(ctx->slice_width, AIC_BAND_COEFFS
ctx               474 libavcodec/aic.c                                 * sizeof(*ctx->slice_data));
ctx               475 libavcodec/aic.c     if (!ctx->slice_data) {
ctx               482 libavcodec/aic.c         ctx->data_ptr[i] = ctx->slice_data + ctx->slice_width
ctx               490 libavcodec/aic.c     AICContext *ctx = avctx->priv_data;
ctx               492 libavcodec/aic.c     av_freep(&ctx->slice_data);
ctx               262 libavcodec/alsdec.c static av_cold void dprint_specific_config(ALSDecContext *ctx)
ctx               265 libavcodec/alsdec.c     AVCodecContext *avctx    = ctx->avctx;
ctx               266 libavcodec/alsdec.c     ALSSpecificConfig *sconf = &ctx->sconf;
ctx               292 libavcodec/alsdec.c static av_cold int read_specific_config(ALSDecContext *ctx)
ctx               298 libavcodec/alsdec.c     ALSSpecificConfig *sconf = &ctx->sconf;
ctx               299 libavcodec/alsdec.c     AVCodecContext *avctx    = ctx->avctx;
ctx               357 libavcodec/alsdec.c     ctx->cur_frame_length = sconf->frame_length;
ctx               375 libavcodec/alsdec.c         ctx->cs_switch = 1;
ctx               387 libavcodec/alsdec.c                 ctx->cs_switch = 0;
ctx               428 libavcodec/alsdec.c             ctx->crc_table = av_crc_get_table(AV_CRC_32_IEEE_LE);
ctx               429 libavcodec/alsdec.c             ctx->crc       = 0xFFFFFFFF;
ctx               430 libavcodec/alsdec.c             ctx->crc_org   = ~get_bits_long(&gb, 32);
ctx               438 libavcodec/alsdec.c     dprint_specific_config(ctx);
ctx               446 libavcodec/alsdec.c static int check_specific_config(ALSDecContext *ctx)
ctx               448 libavcodec/alsdec.c     ALSSpecificConfig *sconf = &ctx->sconf;
ctx               455 libavcodec/alsdec.c             avpriv_report_missing_feature(ctx->avctx,   \
ctx               531 libavcodec/alsdec.c static void get_block_sizes(ALSDecContext *ctx, unsigned int *div_blocks,
ctx               534 libavcodec/alsdec.c     ALSSpecificConfig *sconf     = &ctx->sconf;
ctx               535 libavcodec/alsdec.c     GetBitContext *gb            = &ctx->gb;
ctx               545 libavcodec/alsdec.c     ctx->num_blocks = 0;
ctx               546 libavcodec/alsdec.c     parse_bs_info(*bs_info, 0, 0, &ptr_div_blocks, &ctx->num_blocks);
ctx               563 libavcodec/alsdec.c     for (b = 0; b < ctx->num_blocks; b++)
ctx               564 libavcodec/alsdec.c         div_blocks[b] = ctx->sconf.frame_length >> div_blocks[b];
ctx               566 libavcodec/alsdec.c     if (ctx->cur_frame_length != ctx->sconf.frame_length) {
ctx               567 libavcodec/alsdec.c         unsigned int remaining = ctx->cur_frame_length;
ctx               569 libavcodec/alsdec.c         for (b = 0; b < ctx->num_blocks; b++) {
ctx               572 libavcodec/alsdec.c                 ctx->num_blocks = b + 1;
ctx               584 libavcodec/alsdec.c static int read_const_block_data(ALSDecContext *ctx, ALSBlockData *bd)
ctx               586 libavcodec/alsdec.c     ALSSpecificConfig *sconf = &ctx->sconf;
ctx               587 libavcodec/alsdec.c     AVCodecContext *avctx    = ctx->avctx;
ctx               588 libavcodec/alsdec.c     GetBitContext *gb        = &ctx->gb;
ctx               614 libavcodec/alsdec.c static void decode_const_block_data(ALSDecContext *ctx, ALSBlockData *bd)
ctx               628 libavcodec/alsdec.c static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd)
ctx               630 libavcodec/alsdec.c     ALSSpecificConfig *sconf = &ctx->sconf;
ctx               631 libavcodec/alsdec.c     AVCodecContext *avctx    = ctx->avctx;
ctx               632 libavcodec/alsdec.c     GetBitContext *gb        = &ctx->gb;
ctx               791 libavcodec/alsdec.c             *bd->ltp_lag      = get_bits(gb, ctx->ltp_lag_length);
ctx               809 libavcodec/alsdec.c             bd->raw_samples[1] = decode_rice(gb, FFMIN(s[0] + 3, ctx->s_max));
ctx               811 libavcodec/alsdec.c             bd->raw_samples[2] = decode_rice(gb, FFMIN(s[0] + 1, ctx->s_max));
ctx               841 libavcodec/alsdec.c                         delta[sb], sx[sb], &high, &low, &value, ctx->bgmc_lut, ctx->bgmc_lut_status);
ctx               903 libavcodec/alsdec.c static int decode_var_block_data(ALSDecContext *ctx, ALSBlockData *bd)
ctx               905 libavcodec/alsdec.c     ALSSpecificConfig *sconf = &ctx->sconf;
ctx               916 libavcodec/alsdec.c     int32_t *lpc_cof_reversed = ctx->lpc_cof_reversed_buffer;
ctx              1012 libavcodec/alsdec.c static int read_block(ALSDecContext *ctx, ALSBlockData *bd)
ctx              1015 libavcodec/alsdec.c     GetBitContext *gb        = &ctx->gb;
ctx              1016 libavcodec/alsdec.c     ALSSpecificConfig *sconf = &ctx->sconf;
ctx              1021 libavcodec/alsdec.c         ret = read_var_block_data(ctx, bd);
ctx              1023 libavcodec/alsdec.c         ret = read_const_block_data(ctx, bd);
ctx              1026 libavcodec/alsdec.c     if (!sconf->mc_coding || ctx->js_switch)
ctx              1035 libavcodec/alsdec.c static int decode_block(ALSDecContext *ctx, ALSBlockData *bd)
ctx              1042 libavcodec/alsdec.c         decode_const_block_data(ctx, bd);
ctx              1044 libavcodec/alsdec.c         ret = decode_var_block_data(ctx, bd); // always return 0
ctx              1061 libavcodec/alsdec.c static int read_decode_block(ALSDecContext *ctx, ALSBlockData *bd)
ctx              1065 libavcodec/alsdec.c     if ((ret = read_block(ctx, bd)) < 0)
ctx              1068 libavcodec/alsdec.c     return decode_block(ctx, bd);
ctx              1090 libavcodec/alsdec.c static int decode_blocks_ind(ALSDecContext *ctx, unsigned int ra_frame,
ctx              1099 libavcodec/alsdec.c     bd.const_block      = ctx->const_block;
ctx              1100 libavcodec/alsdec.c     bd.shift_lsbs       = ctx->shift_lsbs;
ctx              1101 libavcodec/alsdec.c     bd.opt_order        = ctx->opt_order;
ctx              1102 libavcodec/alsdec.c     bd.store_prev_samples = ctx->store_prev_samples;
ctx              1103 libavcodec/alsdec.c     bd.use_ltp          = ctx->use_ltp;
ctx              1104 libavcodec/alsdec.c     bd.ltp_lag          = ctx->ltp_lag;
ctx              1105 libavcodec/alsdec.c     bd.ltp_gain         = ctx->ltp_gain[0];
ctx              1106 libavcodec/alsdec.c     bd.quant_cof        = ctx->quant_cof[0];
ctx              1107 libavcodec/alsdec.c     bd.lpc_cof          = ctx->lpc_cof[0];
ctx              1108 libavcodec/alsdec.c     bd.prev_raw_samples = ctx->prev_raw_samples;
ctx              1109 libavcodec/alsdec.c     bd.raw_samples      = ctx->raw_samples[c];
ctx              1112 libavcodec/alsdec.c     for (b = 0; b < ctx->num_blocks; b++) {
ctx              1115 libavcodec/alsdec.c         if ((ret = read_decode_block(ctx, &bd)) < 0) {
ctx              1117 libavcodec/alsdec.c             zero_remaining(b, ctx->num_blocks, div_blocks, bd.raw_samples);
ctx              1130 libavcodec/alsdec.c static int decode_blocks(ALSDecContext *ctx, unsigned int ra_frame,
ctx              1134 libavcodec/alsdec.c     ALSSpecificConfig *sconf = &ctx->sconf;
ctx              1141 libavcodec/alsdec.c     bd[0].const_block      = ctx->const_block;
ctx              1142 libavcodec/alsdec.c     bd[0].shift_lsbs       = ctx->shift_lsbs;
ctx              1143 libavcodec/alsdec.c     bd[0].opt_order        = ctx->opt_order;
ctx              1144 libavcodec/alsdec.c     bd[0].store_prev_samples = ctx->store_prev_samples;
ctx              1145 libavcodec/alsdec.c     bd[0].use_ltp          = ctx->use_ltp;
ctx              1146 libavcodec/alsdec.c     bd[0].ltp_lag          = ctx->ltp_lag;
ctx              1147 libavcodec/alsdec.c     bd[0].ltp_gain         = ctx->ltp_gain[0];
ctx              1148 libavcodec/alsdec.c     bd[0].quant_cof        = ctx->quant_cof[0];
ctx              1149 libavcodec/alsdec.c     bd[0].lpc_cof          = ctx->lpc_cof[0];
ctx              1150 libavcodec/alsdec.c     bd[0].prev_raw_samples = ctx->prev_raw_samples;
ctx              1154 libavcodec/alsdec.c     bd[1].const_block      = ctx->const_block;
ctx              1155 libavcodec/alsdec.c     bd[1].shift_lsbs       = ctx->shift_lsbs;
ctx              1156 libavcodec/alsdec.c     bd[1].opt_order        = ctx->opt_order;
ctx              1157 libavcodec/alsdec.c     bd[1].store_prev_samples = ctx->store_prev_samples;
ctx              1158 libavcodec/alsdec.c     bd[1].use_ltp          = ctx->use_ltp;
ctx              1159 libavcodec/alsdec.c     bd[1].ltp_lag          = ctx->ltp_lag;
ctx              1160 libavcodec/alsdec.c     bd[1].ltp_gain         = ctx->ltp_gain[0];
ctx              1161 libavcodec/alsdec.c     bd[1].quant_cof        = ctx->quant_cof[0];
ctx              1162 libavcodec/alsdec.c     bd[1].lpc_cof          = ctx->lpc_cof[0];
ctx              1163 libavcodec/alsdec.c     bd[1].prev_raw_samples = ctx->prev_raw_samples;
ctx              1167 libavcodec/alsdec.c     for (b = 0; b < ctx->num_blocks; b++) {
ctx              1173 libavcodec/alsdec.c         bd[0].raw_samples  = ctx->raw_samples[c    ] + offset;
ctx              1174 libavcodec/alsdec.c         bd[1].raw_samples  = ctx->raw_samples[c + 1] + offset;
ctx              1179 libavcodec/alsdec.c         if ((ret = read_decode_block(ctx, &bd[0])) < 0 ||
ctx              1180 libavcodec/alsdec.c             (ret = read_decode_block(ctx, &bd[1])) < 0)
ctx              1186 libavcodec/alsdec.c                 av_log(ctx->avctx, AV_LOG_WARNING, "Invalid channel pair.\n");
ctx              1202 libavcodec/alsdec.c     memmove(ctx->raw_samples[c] - sconf->max_order,
ctx              1203 libavcodec/alsdec.c             ctx->raw_samples[c] - sconf->max_order + sconf->frame_length,
ctx              1204 libavcodec/alsdec.c             sizeof(*ctx->raw_samples[c]) * sconf->max_order);
ctx              1209 libavcodec/alsdec.c     zero_remaining(b, ctx->num_blocks, div_blocks, bd[0].raw_samples);
ctx              1210 libavcodec/alsdec.c     zero_remaining(b, ctx->num_blocks, div_blocks, bd[1].raw_samples);
ctx              1223 libavcodec/alsdec.c static int read_channel_data(ALSDecContext *ctx, ALSChannelData *cd, int c)
ctx              1225 libavcodec/alsdec.c     GetBitContext *gb       = &ctx->gb;
ctx              1227 libavcodec/alsdec.c     unsigned int channels   = ctx->avctx->channels;
ctx              1234 libavcodec/alsdec.c             av_log(ctx->avctx, AV_LOG_ERROR, "Invalid master channel.\n");
ctx              1250 libavcodec/alsdec.c                 current->time_diff_index = get_bits(gb, ctx->ltp_lag_length - 3) + 3;
ctx              1259 libavcodec/alsdec.c         av_log(ctx->avctx, AV_LOG_ERROR, "Damaged channel data.\n");
ctx              1270 libavcodec/alsdec.c static int revert_channel_correlation(ALSDecContext *ctx, ALSBlockData *bd,
ctx              1276 libavcodec/alsdec.c     unsigned int channels = ctx->avctx->channels;
ctx              1277 libavcodec/alsdec.c     unsigned int channel_size = ctx->sconf.frame_length + ctx->sconf.max_order;
ctx              1285 libavcodec/alsdec.c         revert_channel_correlation(ctx, bd, cd, reverted, offset,
ctx              1292 libavcodec/alsdec.c         av_log(ctx->avctx, AV_LOG_WARNING, "Invalid channel correlation.\n");
ctx              1296 libavcodec/alsdec.c     bd->const_block = ctx->const_block + c;
ctx              1297 libavcodec/alsdec.c     bd->shift_lsbs  = ctx->shift_lsbs + c;
ctx              1298 libavcodec/alsdec.c     bd->opt_order   = ctx->opt_order + c;
ctx              1299 libavcodec/alsdec.c     bd->store_prev_samples = ctx->store_prev_samples + c;
ctx              1300 libavcodec/alsdec.c     bd->use_ltp     = ctx->use_ltp + c;
ctx              1301 libavcodec/alsdec.c     bd->ltp_lag     = ctx->ltp_lag + c;
ctx              1302 libavcodec/alsdec.c     bd->ltp_gain    = ctx->ltp_gain[c];
ctx              1303 libavcodec/alsdec.c     bd->lpc_cof     = ctx->lpc_cof[c];
ctx              1304 libavcodec/alsdec.c     bd->quant_cof   = ctx->quant_cof[c];
ctx              1305 libavcodec/alsdec.c     bd->raw_samples = ctx->raw_samples[c] + offset;
ctx              1312 libavcodec/alsdec.c         int32_t *master = ctx->raw_samples[ch[dep].master_channel] + offset;
ctx              1323 libavcodec/alsdec.c                     av_log(ctx->avctx, AV_LOG_ERROR, "begin %"PTRDIFF_SPECIFIER" smaller than time diff index %d.\n", begin, t);
ctx              1329 libavcodec/alsdec.c                     av_log(ctx->avctx, AV_LOG_ERROR, "end %"PTRDIFF_SPECIFIER" smaller than time diff index %d.\n", end, t);
ctx              1335 libavcodec/alsdec.c             if (FFMIN(begin - 1, begin - 1 + t) < ctx->raw_buffer - master ||
ctx              1336 libavcodec/alsdec.c                 FFMAX(end   + 1,   end + 1 + t) > ctx->raw_buffer + channels * channel_size - master) {
ctx              1337 libavcodec/alsdec.c                 av_log(ctx->avctx, AV_LOG_ERROR,
ctx              1340 libavcodec/alsdec.c                        ctx->raw_buffer, ctx->raw_buffer + channels * channel_size);
ctx              1357 libavcodec/alsdec.c             if (begin - 1 < ctx->raw_buffer - master ||
ctx              1358 libavcodec/alsdec.c                 end   + 1 > ctx->raw_buffer + channels * channel_size - master) {
ctx              1359 libavcodec/alsdec.c                 av_log(ctx->avctx, AV_LOG_ERROR,
ctx              1362 libavcodec/alsdec.c                        ctx->raw_buffer, ctx->raw_buffer + channels * channel_size);
ctx              1442 libavcodec/alsdec.c static int read_diff_float_data(ALSDecContext *ctx, unsigned int ra_frame) {
ctx              1443 libavcodec/alsdec.c     AVCodecContext *avctx   = ctx->avctx;
ctx              1444 libavcodec/alsdec.c     GetBitContext *gb       = &ctx->gb;
ctx              1445 libavcodec/alsdec.c     SoftFloat_IEEE754 *acf  = ctx->acf;
ctx              1446 libavcodec/alsdec.c     int *shift_value        = ctx->shift_value;
ctx              1447 libavcodec/alsdec.c     int *last_shift_value   = ctx->last_shift_value;
ctx              1448 libavcodec/alsdec.c     int *last_acf_mantissa  = ctx->last_acf_mantissa;
ctx              1449 libavcodec/alsdec.c     int **raw_mantissa      = ctx->raw_mantissa;
ctx              1450 libavcodec/alsdec.c     int *nbits              = ctx->nbits;
ctx              1451 libavcodec/alsdec.c     unsigned char *larray   = ctx->larray;
ctx              1452 libavcodec/alsdec.c     int frame_length        = ctx->cur_frame_length;
ctx              1476 libavcodec/alsdec.c         ff_mlz_flush_dict(ctx->mlz);
ctx              1510 libavcodec/alsdec.c                     if (ctx->raw_samples[c][i] == 0) {
ctx              1511 libavcodec/alsdec.c                         ctx->raw_mantissa[c][i] = get_bits_long(gb, 32);
ctx              1517 libavcodec/alsdec.c                     if (ctx->raw_samples[c][i] == 0) {
ctx              1522 libavcodec/alsdec.c                 tmp_32 = ff_mlz_decompression(ctx->mlz, gb, nchars, larray);
ctx              1524 libavcodec/alsdec.c                     av_log(ctx->avctx, AV_LOG_ERROR, "Error in MLZ decompression (%"PRId32", %d).\n", tmp_32, nchars);
ctx              1529 libavcodec/alsdec.c                     ctx->raw_mantissa[c][i] = AV_RB32(larray);
ctx              1537 libavcodec/alsdec.c                 if (ctx->raw_samples[c][i] != 0) {
ctx              1540 libavcodec/alsdec.c                         nbits[i] = 23 - av_log2(abs(ctx->raw_samples[c][i]));
ctx              1550 libavcodec/alsdec.c                     if (ctx->raw_samples[c][i] != 0) {
ctx              1557 libavcodec/alsdec.c                     if (ctx->raw_samples[c][i]) {
ctx              1565 libavcodec/alsdec.c                 tmp_32 = ff_mlz_decompression(ctx->mlz, gb, nchars, larray);
ctx              1567 libavcodec/alsdec.c                     av_log(ctx->avctx, AV_LOG_ERROR, "Error in MLZ decompression (%"PRId32", %d).\n", tmp_32, nchars);
ctx              1573 libavcodec/alsdec.c                     if (ctx->raw_samples[c][i]) {
ctx              1591 libavcodec/alsdec.c             SoftFloat_IEEE754 pcm_sf = av_int2sf_ieee754(ctx->raw_samples[c][i], 0);
ctx              1594 libavcodec/alsdec.c             if (ctx->raw_samples[c][i] != 0) {
ctx              1612 libavcodec/alsdec.c                 ctx->raw_samples[c][i] = tmp_32;
ctx              1614 libavcodec/alsdec.c                 ctx->raw_samples[c][i] = raw_mantissa[c][i] & 0x007fffffUL;
ctx              1625 libavcodec/alsdec.c static int read_frame_data(ALSDecContext *ctx, unsigned int ra_frame)
ctx              1627 libavcodec/alsdec.c     ALSSpecificConfig *sconf = &ctx->sconf;
ctx              1628 libavcodec/alsdec.c     AVCodecContext *avctx    = ctx->avctx;
ctx              1629 libavcodec/alsdec.c     GetBitContext *gb = &ctx->gb;
ctx              1641 libavcodec/alsdec.c         ctx->js_switch = get_bits1(gb);
ctx              1645 libavcodec/alsdec.c     if (!sconf->mc_coding || ctx->js_switch) {
ctx              1652 libavcodec/alsdec.c             get_block_sizes(ctx, div_blocks, &bs_info);
ctx              1665 libavcodec/alsdec.c                 ret = decode_blocks_ind(ctx, ra_frame, c,
ctx              1671 libavcodec/alsdec.c                 ret = decode_blocks(ctx, ra_frame, c, div_blocks, js_blocks);
ctx              1679 libavcodec/alsdec.c             memmove(ctx->raw_samples[c] - sconf->max_order,
ctx              1680 libavcodec/alsdec.c                     ctx->raw_samples[c] - sconf->max_order + sconf->frame_length,
ctx              1681 libavcodec/alsdec.c                     sizeof(*ctx->raw_samples[c]) * sconf->max_order);
ctx              1682 libavcodec/alsdec.c             ctx->highest_decoded_channel = c;
ctx              1687 libavcodec/alsdec.c         int            *reverted_channels = ctx->reverted_channels;
ctx              1691 libavcodec/alsdec.c             if (ctx->chan_data[c] < ctx->chan_data_buffer) {
ctx              1692 libavcodec/alsdec.c                 av_log(ctx->avctx, AV_LOG_ERROR, "Invalid channel data.\n");
ctx              1699 libavcodec/alsdec.c         bd.prev_raw_samples = ctx->prev_raw_samples;
ctx              1701 libavcodec/alsdec.c         get_block_sizes(ctx, div_blocks, &bs_info);
ctx              1703 libavcodec/alsdec.c         for (b = 0; b < ctx->num_blocks; b++) {
ctx              1706 libavcodec/alsdec.c                 av_log(ctx->avctx, AV_LOG_WARNING,
ctx              1713 libavcodec/alsdec.c                 bd.const_block = ctx->const_block + c;
ctx              1714 libavcodec/alsdec.c                 bd.shift_lsbs  = ctx->shift_lsbs + c;
ctx              1715 libavcodec/alsdec.c                 bd.opt_order   = ctx->opt_order + c;
ctx              1716 libavcodec/alsdec.c                 bd.store_prev_samples = ctx->store_prev_samples + c;
ctx              1717 libavcodec/alsdec.c                 bd.use_ltp     = ctx->use_ltp + c;
ctx              1718 libavcodec/alsdec.c                 bd.ltp_lag     = ctx->ltp_lag + c;
ctx              1719 libavcodec/alsdec.c                 bd.ltp_gain    = ctx->ltp_gain[c];
ctx              1720 libavcodec/alsdec.c                 bd.lpc_cof     = ctx->lpc_cof[c];
ctx              1721 libavcodec/alsdec.c                 bd.quant_cof   = ctx->quant_cof[c];
ctx              1722 libavcodec/alsdec.c                 bd.raw_samples = ctx->raw_samples[c] + offset;
ctx              1725 libavcodec/alsdec.c                 if ((ret = read_block(ctx, &bd)) < 0)
ctx              1727 libavcodec/alsdec.c                 if ((ret = read_channel_data(ctx, ctx->chan_data[c], c)) < 0)
ctx              1732 libavcodec/alsdec.c                 ret = revert_channel_correlation(ctx, &bd, ctx->chan_data,
ctx              1738 libavcodec/alsdec.c                 bd.const_block = ctx->const_block + c;
ctx              1739 libavcodec/alsdec.c                 bd.shift_lsbs  = ctx->shift_lsbs + c;
ctx              1740 libavcodec/alsdec.c                 bd.opt_order   = ctx->opt_order + c;
ctx              1741 libavcodec/alsdec.c                 bd.store_prev_samples = ctx->store_prev_samples + c;
ctx              1742 libavcodec/alsdec.c                 bd.use_ltp     = ctx->use_ltp + c;
ctx              1743 libavcodec/alsdec.c                 bd.ltp_lag     = ctx->ltp_lag + c;
ctx              1744 libavcodec/alsdec.c                 bd.ltp_gain    = ctx->ltp_gain[c];
ctx              1745 libavcodec/alsdec.c                 bd.lpc_cof     = ctx->lpc_cof[c];
ctx              1746 libavcodec/alsdec.c                 bd.quant_cof   = ctx->quant_cof[c];
ctx              1747 libavcodec/alsdec.c                 bd.raw_samples = ctx->raw_samples[c] + offset;
ctx              1749 libavcodec/alsdec.c                 if ((ret = decode_block(ctx, &bd)) < 0)
ctx              1752 libavcodec/alsdec.c                 ctx->highest_decoded_channel = FFMAX(ctx->highest_decoded_channel, c);
ctx              1762 libavcodec/alsdec.c             memmove(ctx->raw_samples[c] - sconf->max_order,
ctx              1763 libavcodec/alsdec.c                     ctx->raw_samples[c] - sconf->max_order + sconf->frame_length,
ctx              1764 libavcodec/alsdec.c                     sizeof(*ctx->raw_samples[c]) * sconf->max_order);
ctx              1768 libavcodec/alsdec.c         read_diff_float_data(ctx, ra_frame);
ctx              1772 libavcodec/alsdec.c         av_log(ctx->avctx, AV_LOG_ERROR, "Overread %d\n", -get_bits_left(gb));
ctx              1785 libavcodec/alsdec.c     ALSDecContext *ctx       = avctx->priv_data;
ctx              1787 libavcodec/alsdec.c     ALSSpecificConfig *sconf = &ctx->sconf;
ctx              1793 libavcodec/alsdec.c     if ((ret = init_get_bits8(&ctx->gb, buffer, buffer_size)) < 0)
ctx              1800 libavcodec/alsdec.c     ra_frame = sconf->ra_distance && !(ctx->frame_id % sconf->ra_distance);
ctx              1804 libavcodec/alsdec.c         ctx->cur_frame_length = FFMIN(sconf->samples - ctx->frame_id * (uint64_t) sconf->frame_length,
ctx              1807 libavcodec/alsdec.c         ctx->cur_frame_length = sconf->frame_length;
ctx              1809 libavcodec/alsdec.c     ctx->highest_decoded_channel = 0;
ctx              1811 libavcodec/alsdec.c     if ((invalid_frame = read_frame_data(ctx, ra_frame)) < 0)
ctx              1812 libavcodec/alsdec.c         av_log(ctx->avctx, AV_LOG_WARNING,
ctx              1815 libavcodec/alsdec.c     if (ctx->highest_decoded_channel == 0)
ctx              1818 libavcodec/alsdec.c     ctx->frame_id++;
ctx              1821 libavcodec/alsdec.c     frame->nb_samples = ctx->cur_frame_length;
ctx              1830 libavcodec/alsdec.c         int32_t *raw_samples = ctx->raw_samples[0];                                  \
ctx              1831 libavcodec/alsdec.c         int raw_step = channels > 1 ? ctx->raw_samples[1] - raw_samples : 1;         \
ctx              1832 libavcodec/alsdec.c         shift = bps - ctx->avctx->bits_per_raw_sample;                               \
ctx              1833 libavcodec/alsdec.c         if (!ctx->cs_switch) {                                                       \
ctx              1834 libavcodec/alsdec.c             for (sample = 0; sample < ctx->cur_frame_length; sample++)               \
ctx              1838 libavcodec/alsdec.c             for (sample = 0; sample < ctx->cur_frame_length; sample++)               \
ctx              1844 libavcodec/alsdec.c     if (ctx->avctx->bits_per_raw_sample <= 16) {
ctx              1854 libavcodec/alsdec.c         if (ctx->avctx->bits_per_raw_sample == 24) {
ctx              1858 libavcodec/alsdec.c                  sample < ctx->cur_frame_length * avctx->channels;
ctx              1869 libavcodec/alsdec.c                 ctx->crc = av_crc(ctx->crc_table, ctx->crc, (uint8_t*)(&v), 3);
ctx              1875 libavcodec/alsdec.c                 if (ctx->avctx->bits_per_raw_sample <= 16) {
ctx              1877 libavcodec/alsdec.c                     int16_t *dest = (int16_t*) ctx->crc_buffer;
ctx              1879 libavcodec/alsdec.c                          sample < ctx->cur_frame_length * avctx->channels;
ctx              1883 libavcodec/alsdec.c                     ctx->bdsp.bswap_buf((uint32_t *) ctx->crc_buffer,
ctx              1885 libavcodec/alsdec.c                                         ctx->cur_frame_length * avctx->channels);
ctx              1887 libavcodec/alsdec.c                 crc_source = ctx->crc_buffer;
ctx              1892 libavcodec/alsdec.c             ctx->crc = av_crc(ctx->crc_table, ctx->crc, crc_source,
ctx              1893 libavcodec/alsdec.c                               ctx->cur_frame_length * avctx->channels *
ctx              1899 libavcodec/alsdec.c         if (ctx->cur_frame_length != sconf->frame_length &&
ctx              1900 libavcodec/alsdec.c             ctx->crc_org != ctx->crc) {
ctx              1910 libavcodec/alsdec.c                                  (get_bits_count(&ctx->gb) + 7) >> 3;
ctx              1920 libavcodec/alsdec.c     ALSDecContext *ctx = avctx->priv_data;
ctx              1923 libavcodec/alsdec.c     av_freep(&ctx->sconf.chan_pos);
ctx              1925 libavcodec/alsdec.c     ff_bgmc_end(&ctx->bgmc_lut, &ctx->bgmc_lut_status);
ctx              1927 libavcodec/alsdec.c     av_freep(&ctx->const_block);
ctx              1928 libavcodec/alsdec.c     av_freep(&ctx->shift_lsbs);
ctx              1929 libavcodec/alsdec.c     av_freep(&ctx->opt_order);
ctx              1930 libavcodec/alsdec.c     av_freep(&ctx->store_prev_samples);
ctx              1931 libavcodec/alsdec.c     av_freep(&ctx->use_ltp);
ctx              1932 libavcodec/alsdec.c     av_freep(&ctx->ltp_lag);
ctx              1933 libavcodec/alsdec.c     av_freep(&ctx->ltp_gain);
ctx              1934 libavcodec/alsdec.c     av_freep(&ctx->ltp_gain_buffer);
ctx              1935 libavcodec/alsdec.c     av_freep(&ctx->quant_cof);
ctx              1936 libavcodec/alsdec.c     av_freep(&ctx->lpc_cof);
ctx              1937 libavcodec/alsdec.c     av_freep(&ctx->quant_cof_buffer);
ctx              1938 libavcodec/alsdec.c     av_freep(&ctx->lpc_cof_buffer);
ctx              1939 libavcodec/alsdec.c     av_freep(&ctx->lpc_cof_reversed_buffer);
ctx              1940 libavcodec/alsdec.c     av_freep(&ctx->prev_raw_samples);
ctx              1941 libavcodec/alsdec.c     av_freep(&ctx->raw_samples);
ctx              1942 libavcodec/alsdec.c     av_freep(&ctx->raw_buffer);
ctx              1943 libavcodec/alsdec.c     av_freep(&ctx->chan_data);
ctx              1944 libavcodec/alsdec.c     av_freep(&ctx->chan_data_buffer);
ctx              1945 libavcodec/alsdec.c     av_freep(&ctx->reverted_channels);
ctx              1946 libavcodec/alsdec.c     av_freep(&ctx->crc_buffer);
ctx              1947 libavcodec/alsdec.c     if (ctx->mlz) {
ctx              1948 libavcodec/alsdec.c         av_freep(&ctx->mlz->dict);
ctx              1949 libavcodec/alsdec.c         av_freep(&ctx->mlz);
ctx              1951 libavcodec/alsdec.c     av_freep(&ctx->acf);
ctx              1952 libavcodec/alsdec.c     av_freep(&ctx->last_acf_mantissa);
ctx              1953 libavcodec/alsdec.c     av_freep(&ctx->shift_value);
ctx              1954 libavcodec/alsdec.c     av_freep(&ctx->last_shift_value);
ctx              1955 libavcodec/alsdec.c     if (ctx->raw_mantissa) {
ctx              1957 libavcodec/alsdec.c             av_freep(&ctx->raw_mantissa[i]);
ctx              1959 libavcodec/alsdec.c         av_freep(&ctx->raw_mantissa);
ctx              1961 libavcodec/alsdec.c     av_freep(&ctx->larray);
ctx              1962 libavcodec/alsdec.c     av_freep(&ctx->nbits);
ctx              1975 libavcodec/alsdec.c     ALSDecContext *ctx = avctx->priv_data;
ctx              1976 libavcodec/alsdec.c     ALSSpecificConfig *sconf = &ctx->sconf;
ctx              1977 libavcodec/alsdec.c     ctx->avctx = avctx;
ctx              1984 libavcodec/alsdec.c     if ((ret = read_specific_config(ctx)) < 0) {
ctx              1989 libavcodec/alsdec.c     if ((ret = check_specific_config(ctx)) < 0) {
ctx              1994 libavcodec/alsdec.c         ret = ff_bgmc_init(avctx, &ctx->bgmc_lut, &ctx->bgmc_lut_status);
ctx              2016 libavcodec/alsdec.c     ctx->s_max = sconf->resolution > 1 ? 31 : 15;
ctx              2019 libavcodec/alsdec.c     ctx->ltp_lag_length = 8 + (avctx->sample_rate >=  96000) +
ctx              2027 libavcodec/alsdec.c     ctx->quant_cof        = av_malloc_array(num_buffers, sizeof(*ctx->quant_cof));
ctx              2028 libavcodec/alsdec.c     ctx->lpc_cof          = av_malloc_array(num_buffers, sizeof(*ctx->lpc_cof));
ctx              2029 libavcodec/alsdec.c     ctx->quant_cof_buffer = av_malloc_array(num_buffers * sconf->max_order,
ctx              2030 libavcodec/alsdec.c                                             sizeof(*ctx->quant_cof_buffer));
ctx              2031 libavcodec/alsdec.c     ctx->lpc_cof_buffer   = av_malloc_array(num_buffers * sconf->max_order,
ctx              2032 libavcodec/alsdec.c                                             sizeof(*ctx->lpc_cof_buffer));
ctx              2033 libavcodec/alsdec.c     ctx->lpc_cof_reversed_buffer = av_malloc_array(sconf->max_order,
ctx              2034 libavcodec/alsdec.c                                                    sizeof(*ctx->lpc_cof_buffer));
ctx              2036 libavcodec/alsdec.c     if (!ctx->quant_cof              || !ctx->lpc_cof        ||
ctx              2037 libavcodec/alsdec.c         !ctx->quant_cof_buffer       || !ctx->lpc_cof_buffer ||
ctx              2038 libavcodec/alsdec.c         !ctx->lpc_cof_reversed_buffer) {
ctx              2046 libavcodec/alsdec.c         ctx->quant_cof[c] = ctx->quant_cof_buffer + c * sconf->max_order;
ctx              2047 libavcodec/alsdec.c         ctx->lpc_cof[c]   = ctx->lpc_cof_buffer   + c * sconf->max_order;
ctx              2051 libavcodec/alsdec.c     ctx->const_block     = av_malloc_array(num_buffers, sizeof(*ctx->const_block));
ctx              2052 libavcodec/alsdec.c     ctx->shift_lsbs      = av_malloc_array(num_buffers, sizeof(*ctx->shift_lsbs));
ctx              2053 libavcodec/alsdec.c     ctx->opt_order       = av_malloc_array(num_buffers, sizeof(*ctx->opt_order));
ctx              2054 libavcodec/alsdec.c     ctx->store_prev_samples = av_malloc_array(num_buffers, sizeof(*ctx->store_prev_samples));
ctx              2055 libavcodec/alsdec.c     ctx->use_ltp         = av_mallocz_array(num_buffers, sizeof(*ctx->use_ltp));
ctx              2056 libavcodec/alsdec.c     ctx->ltp_lag         = av_malloc_array(num_buffers, sizeof(*ctx->ltp_lag));
ctx              2057 libavcodec/alsdec.c     ctx->ltp_gain        = av_malloc_array(num_buffers, sizeof(*ctx->ltp_gain));
ctx              2058 libavcodec/alsdec.c     ctx->ltp_gain_buffer = av_malloc_array(num_buffers * 5, sizeof(*ctx->ltp_gain_buffer));
ctx              2060 libavcodec/alsdec.c     if (!ctx->const_block || !ctx->shift_lsbs ||
ctx              2061 libavcodec/alsdec.c         !ctx->opt_order || !ctx->store_prev_samples ||
ctx              2062 libavcodec/alsdec.c         !ctx->use_ltp  || !ctx->ltp_lag ||
ctx              2063 libavcodec/alsdec.c         !ctx->ltp_gain || !ctx->ltp_gain_buffer) {
ctx              2070 libavcodec/alsdec.c         ctx->ltp_gain[c] = ctx->ltp_gain_buffer + c * 5;
ctx              2074 libavcodec/alsdec.c         ctx->chan_data_buffer  = av_mallocz_array(num_buffers * num_buffers,
ctx              2075 libavcodec/alsdec.c                                                  sizeof(*ctx->chan_data_buffer));
ctx              2076 libavcodec/alsdec.c         ctx->chan_data         = av_mallocz_array(num_buffers,
ctx              2077 libavcodec/alsdec.c                                                  sizeof(*ctx->chan_data));
ctx              2078 libavcodec/alsdec.c         ctx->reverted_channels = av_malloc_array(num_buffers,
ctx              2079 libavcodec/alsdec.c                                                  sizeof(*ctx->reverted_channels));
ctx              2081 libavcodec/alsdec.c         if (!ctx->chan_data_buffer || !ctx->chan_data || !ctx->reverted_channels) {
ctx              2088 libavcodec/alsdec.c             ctx->chan_data[c] = ctx->chan_data_buffer + c * num_buffers;
ctx              2090 libavcodec/alsdec.c         ctx->chan_data         = NULL;
ctx              2091 libavcodec/alsdec.c         ctx->chan_data_buffer  = NULL;
ctx              2092 libavcodec/alsdec.c         ctx->reverted_channels = NULL;
ctx              2097 libavcodec/alsdec.c     ctx->prev_raw_samples = av_malloc_array(sconf->max_order, sizeof(*ctx->prev_raw_samples));
ctx              2098 libavcodec/alsdec.c     ctx->raw_buffer       = av_mallocz_array(avctx->channels * channel_size, sizeof(*ctx->raw_buffer));
ctx              2099 libavcodec/alsdec.c     ctx->raw_samples      = av_malloc_array(avctx->channels, sizeof(*ctx->raw_samples));
ctx              2102 libavcodec/alsdec.c         ctx->acf               = av_malloc_array(avctx->channels, sizeof(*ctx->acf));
ctx              2103 libavcodec/alsdec.c         ctx->shift_value       = av_malloc_array(avctx->channels, sizeof(*ctx->shift_value));
ctx              2104 libavcodec/alsdec.c         ctx->last_shift_value  = av_malloc_array(avctx->channels, sizeof(*ctx->last_shift_value));
ctx              2105 libavcodec/alsdec.c         ctx->last_acf_mantissa = av_malloc_array(avctx->channels, sizeof(*ctx->last_acf_mantissa));
ctx              2106 libavcodec/alsdec.c         ctx->raw_mantissa      = av_mallocz_array(avctx->channels, sizeof(*ctx->raw_mantissa));
ctx              2108 libavcodec/alsdec.c         ctx->larray = av_malloc_array(ctx->cur_frame_length * 4, sizeof(*ctx->larray));
ctx              2109 libavcodec/alsdec.c         ctx->nbits  = av_malloc_array(ctx->cur_frame_length, sizeof(*ctx->nbits));
ctx              2110 libavcodec/alsdec.c         ctx->mlz    = av_mallocz(sizeof(*ctx->mlz));
ctx              2112 libavcodec/alsdec.c         if (!ctx->mlz || !ctx->acf || !ctx->shift_value || !ctx->last_shift_value
ctx              2113 libavcodec/alsdec.c             || !ctx->last_acf_mantissa || !ctx->raw_mantissa) {
ctx              2119 libavcodec/alsdec.c         ff_mlz_init_dict(avctx, ctx->mlz);
ctx              2120 libavcodec/alsdec.c         ff_mlz_flush_dict(ctx->mlz);
ctx              2123 libavcodec/alsdec.c             ctx->raw_mantissa[c] = av_mallocz_array(ctx->cur_frame_length, sizeof(**ctx->raw_mantissa));
ctx              2128 libavcodec/alsdec.c     if (!ctx->prev_raw_samples || !ctx->raw_buffer|| !ctx->raw_samples) {
ctx              2135 libavcodec/alsdec.c     ctx->raw_samples[0] = ctx->raw_buffer + sconf->max_order;
ctx              2137 libavcodec/alsdec.c         ctx->raw_samples[c] = ctx->raw_samples[c - 1] + channel_size;
ctx              2142 libavcodec/alsdec.c         ctx->crc_buffer = av_malloc_array(ctx->cur_frame_length *
ctx              2145 libavcodec/alsdec.c                                           sizeof(*ctx->crc_buffer));
ctx              2146 libavcodec/alsdec.c         if (!ctx->crc_buffer) {
ctx              2153 libavcodec/alsdec.c     ff_bswapdsp_init(&ctx->bdsp);
ctx              2166 libavcodec/alsdec.c     ALSDecContext *ctx = avctx->priv_data;
ctx              2168 libavcodec/alsdec.c     ctx->frame_id = 0;
ctx               110 libavcodec/amfenc.c     AmfContext        *ctx = avctx->priv_data;
ctx               115 libavcodec/amfenc.c     ctx->delayed_frame = av_frame_alloc();
ctx               116 libavcodec/amfenc.c     if (!ctx->delayed_frame) {
ctx               120 libavcodec/amfenc.c     ctx->timestamp_list = av_fifo_alloc((avctx->max_b_frames + 16) * sizeof(int64_t));
ctx               121 libavcodec/amfenc.c     if (!ctx->timestamp_list) {
ctx               124 libavcodec/amfenc.c     ctx->dts_delay = 0;
ctx               127 libavcodec/amfenc.c     ctx->library = dlopen(AMF_DLL_NAMEA, RTLD_NOW | RTLD_LOCAL);
ctx               128 libavcodec/amfenc.c     AMF_RETURN_IF_FALSE(ctx, ctx->library != NULL,
ctx               131 libavcodec/amfenc.c     init_fun = (AMFInit_Fn)dlsym(ctx->library, AMF_INIT_FUNCTION_NAME);
ctx               132 libavcodec/amfenc.c     AMF_RETURN_IF_FALSE(ctx, init_fun != NULL, AVERROR_UNKNOWN, "DLL %s failed to find function %s\n", AMF_DLL_NAMEA, AMF_INIT_FUNCTION_NAME);
ctx               134 libavcodec/amfenc.c     version_fun = (AMFQueryVersion_Fn)dlsym(ctx->library, AMF_QUERY_VERSION_FUNCTION_NAME);
ctx               135 libavcodec/amfenc.c     AMF_RETURN_IF_FALSE(ctx, version_fun != NULL, AVERROR_UNKNOWN, "DLL %s failed to find function %s\n", AMF_DLL_NAMEA, AMF_QUERY_VERSION_FUNCTION_NAME);
ctx               137 libavcodec/amfenc.c     res = version_fun(&ctx->version);
ctx               138 libavcodec/amfenc.c     AMF_RETURN_IF_FALSE(ctx, res == AMF_OK, AVERROR_UNKNOWN, "%s failed with error %d\n", AMF_QUERY_VERSION_FUNCTION_NAME, res);
ctx               139 libavcodec/amfenc.c     res = init_fun(AMF_FULL_VERSION, &ctx->factory);
ctx               140 libavcodec/amfenc.c     AMF_RETURN_IF_FALSE(ctx, res == AMF_OK, AVERROR_UNKNOWN, "%s failed with error %d\n", AMF_INIT_FUNCTION_NAME, res);
ctx               141 libavcodec/amfenc.c     res = ctx->factory->pVtbl->GetTrace(ctx->factory, &ctx->trace);
ctx               142 libavcodec/amfenc.c     AMF_RETURN_IF_FALSE(ctx, res == AMF_OK, AVERROR_UNKNOWN, "GetTrace() failed with error %d\n", res);
ctx               143 libavcodec/amfenc.c     res = ctx->factory->pVtbl->GetDebug(ctx->factory, &ctx->debug);
ctx               144 libavcodec/amfenc.c     AMF_RETURN_IF_FALSE(ctx, res == AMF_OK, AVERROR_UNKNOWN, "GetDebug() failed with error %d\n", res);
ctx               151 libavcodec/amfenc.c     AmfContext *ctx = avctx->priv_data;
ctx               154 libavcodec/amfenc.c     res = ctx->context->pVtbl->InitDX11(ctx->context, hwctx->device, AMF_DX11_1);
ctx               170 libavcodec/amfenc.c     AmfContext *ctx = avctx->priv_data;
ctx               197 libavcodec/amfenc.c     res = ctx->context->pVtbl->InitDX9(ctx->context, device);
ctx               215 libavcodec/amfenc.c     AmfContext *ctx = avctx->priv_data;
ctx               220 libavcodec/amfenc.c     ctx->hwsurfaces_in_queue = 0;
ctx               221 libavcodec/amfenc.c     ctx->hwsurfaces_in_queue_max = 16;
ctx               225 libavcodec/amfenc.c     ctx->trace->pVtbl->EnableWriter(ctx->trace, AMF_TRACE_WRITER_DEBUG_OUTPUT, ctx->log_to_dbg != 0 );
ctx               226 libavcodec/amfenc.c     if (ctx->log_to_dbg)
ctx               227 libavcodec/amfenc.c         ctx->trace->pVtbl->SetWriterLevel(ctx->trace, AMF_TRACE_WRITER_DEBUG_OUTPUT, AMF_TRACE_TRACE);
ctx               228 libavcodec/amfenc.c     ctx->trace->pVtbl->EnableWriter(ctx->trace, AMF_TRACE_WRITER_CONSOLE, 0);
ctx               229 libavcodec/amfenc.c     ctx->trace->pVtbl->SetGlobalLevel(ctx->trace, AMF_TRACE_TRACE);
ctx               232 libavcodec/amfenc.c     ctx->tracer.vtbl = &tracer_vtbl;
ctx               233 libavcodec/amfenc.c     ctx->tracer.avctx = avctx;
ctx               234 libavcodec/amfenc.c     ctx->trace->pVtbl->RegisterWriter(ctx->trace, FFMPEG_AMF_WRITER_ID,(AMFTraceWriter*)&ctx->tracer, 1);
ctx               235 libavcodec/amfenc.c     ctx->trace->pVtbl->SetWriterLevel(ctx->trace, FFMPEG_AMF_WRITER_ID, AMF_TRACE_TRACE);
ctx               237 libavcodec/amfenc.c     res = ctx->factory->pVtbl->CreateContext(ctx->factory, &ctx->context);
ctx               238 libavcodec/amfenc.c     AMF_RETURN_IF_FALSE(ctx, res == AMF_OK, AVERROR_UNKNOWN, "CreateContext() failed with error %d\n", res);
ctx               271 libavcodec/amfenc.c         ctx->hw_frames_ctx = av_buffer_ref(avctx->hw_frames_ctx);
ctx               272 libavcodec/amfenc.c         if (!ctx->hw_frames_ctx)
ctx               276 libavcodec/amfenc.c             ctx->hwsurfaces_in_queue_max = frames_ctx->initial_pool_size - 1;
ctx               302 libavcodec/amfenc.c         ctx->hw_device_ctx = av_buffer_ref(avctx->hw_device_ctx);
ctx               303 libavcodec/amfenc.c         if (!ctx->hw_device_ctx)
ctx               307 libavcodec/amfenc.c         res = ctx->context->pVtbl->InitDX11(ctx->context, NULL, AMF_DX11_1);
ctx               311 libavcodec/amfenc.c             res = ctx->context->pVtbl->InitDX9(ctx->context, NULL);
ctx               316 libavcodec/amfenc.c                 res = ctx->context->pVtbl->QueryInterface(ctx->context, &guid, (void**)&context1);
ctx               317 libavcodec/amfenc.c                 AMF_RETURN_IF_FALSE(ctx, res == AMF_OK, AVERROR_UNKNOWN, "CreateContext1() failed with error %d\n", res);
ctx               337 libavcodec/amfenc.c     AmfContext        *ctx = avctx->priv_data;
ctx               352 libavcodec/amfenc.c     AMF_RETURN_IF_FALSE(ctx, codec_id != NULL, AVERROR(EINVAL), "Codec %d is not supported\n", avctx->codec->id);
ctx               354 libavcodec/amfenc.c     if (ctx->hw_frames_ctx)
ctx               355 libavcodec/amfenc.c         pix_fmt = ((AVHWFramesContext*)ctx->hw_frames_ctx->data)->sw_format;
ctx               359 libavcodec/amfenc.c     ctx->format = amf_av_to_amf_format(pix_fmt);
ctx               360 libavcodec/amfenc.c     AMF_RETURN_IF_FALSE(ctx, ctx->format != AMF_SURFACE_UNKNOWN, AVERROR(EINVAL),
ctx               363 libavcodec/amfenc.c     res = ctx->factory->pVtbl->CreateComponent(ctx->factory, ctx->context, codec_id, &ctx->encoder);
ctx               364 libavcodec/amfenc.c     AMF_RETURN_IF_FALSE(ctx, res == AMF_OK, AVERROR_ENCODER_NOT_FOUND, "CreateComponent(%ls) failed with error %d\n", codec_id, res);
ctx               371 libavcodec/amfenc.c     AmfContext *ctx = avctx->priv_data;
ctx               373 libavcodec/amfenc.c     if (ctx->delayed_surface) {
ctx               374 libavcodec/amfenc.c         ctx->delayed_surface->pVtbl->Release(ctx->delayed_surface);
ctx               375 libavcodec/amfenc.c         ctx->delayed_surface = NULL;
ctx               378 libavcodec/amfenc.c     if (ctx->encoder) {
ctx               379 libavcodec/amfenc.c         ctx->encoder->pVtbl->Terminate(ctx->encoder);
ctx               380 libavcodec/amfenc.c         ctx->encoder->pVtbl->Release(ctx->encoder);
ctx               381 libavcodec/amfenc.c         ctx->encoder = NULL;
ctx               384 libavcodec/amfenc.c     if (ctx->context) {
ctx               385 libavcodec/amfenc.c         ctx->context->pVtbl->Terminate(ctx->context);
ctx               386 libavcodec/amfenc.c         ctx->context->pVtbl->Release(ctx->context);
ctx               387 libavcodec/amfenc.c         ctx->context = NULL;
ctx               389 libavcodec/amfenc.c     av_buffer_unref(&ctx->hw_device_ctx);
ctx               390 libavcodec/amfenc.c     av_buffer_unref(&ctx->hw_frames_ctx);
ctx               392 libavcodec/amfenc.c     if (ctx->trace) {
ctx               393 libavcodec/amfenc.c         ctx->trace->pVtbl->UnregisterWriter(ctx->trace, FFMPEG_AMF_WRITER_ID);
ctx               395 libavcodec/amfenc.c     if (ctx->library) {
ctx               396 libavcodec/amfenc.c         dlclose(ctx->library);
ctx               397 libavcodec/amfenc.c         ctx->library = NULL;
ctx               399 libavcodec/amfenc.c     ctx->trace = NULL;
ctx               400 libavcodec/amfenc.c     ctx->debug = NULL;
ctx               401 libavcodec/amfenc.c     ctx->factory = NULL;
ctx               402 libavcodec/amfenc.c     ctx->version = 0;
ctx               403 libavcodec/amfenc.c     ctx->delayed_drain = 0;
ctx               404 libavcodec/amfenc.c     av_frame_free(&ctx->delayed_frame);
ctx               405 libavcodec/amfenc.c     av_fifo_freep(&ctx->timestamp_list);
ctx               436 libavcodec/amfenc.c     AmfContext         *ctx = avctx->priv_data;
ctx               437 libavcodec/amfenc.c     if (av_fifo_space(ctx->timestamp_list) < sizeof(timestamp)) {
ctx               438 libavcodec/amfenc.c         if (av_fifo_grow(ctx->timestamp_list, sizeof(timestamp)) < 0) {
ctx               442 libavcodec/amfenc.c     av_fifo_generic_write(ctx->timestamp_list, &timestamp, sizeof(timestamp), NULL);
ctx               448 libavcodec/amfenc.c     AmfContext      *ctx = avctx->priv_data;
ctx               481 libavcodec/amfenc.c     AMF_RETURN_IF_FALSE(ctx, av_fifo_size(ctx->timestamp_list) > 0, AVERROR_UNKNOWN, "timestamp_list is empty\n");
ctx               483 libavcodec/amfenc.c     av_fifo_generic_read(ctx->timestamp_list, &timestamp, sizeof(timestamp), NULL);
ctx               486 libavcodec/amfenc.c     if (avctx->max_b_frames > 0 && ctx->dts_delay == 0) {
ctx               488 libavcodec/amfenc.c         AMF_RETURN_IF_FALSE(ctx, av_fifo_size(ctx->timestamp_list) > 0, AVERROR_UNKNOWN,
ctx               491 libavcodec/amfenc.c             ctx->timestamp_list,
ctx               493 libavcodec/amfenc.c             (av_fifo_size(ctx->timestamp_list) / sizeof(timestamp) - 1) * sizeof(timestamp_last),
ctx               499 libavcodec/amfenc.c         ctx->dts_delay = timestamp_last - timestamp;
ctx               501 libavcodec/amfenc.c     pkt->dts = timestamp - ctx->dts_delay;
ctx               593 libavcodec/amfenc.c     AmfContext *ctx = avctx->priv_data;
ctx               598 libavcodec/amfenc.c     if (!ctx->encoder)
ctx               602 libavcodec/amfenc.c         if (!ctx->eof) { // submit drain one time only
ctx               603 libavcodec/amfenc.c             if (ctx->delayed_surface != NULL) {
ctx               604 libavcodec/amfenc.c                 ctx->delayed_drain = 1; // input queue is full: resubmit Drain() in ff_amf_receive_packet
ctx               605 libavcodec/amfenc.c             } else if(!ctx->delayed_drain) {
ctx               606 libavcodec/amfenc.c                 res = ctx->encoder->pVtbl->Drain(ctx->encoder);
ctx               608 libavcodec/amfenc.c                     ctx->delayed_drain = 1; // input queue is full: resubmit Drain() in ff_amf_receive_packet
ctx               611 libavcodec/amfenc.c                         ctx->eof = 1; // drain started
ctx               613 libavcodec/amfenc.c                     AMF_RETURN_IF_FALSE(ctx, res == AMF_OK, AVERROR_UNKNOWN, "Drain() failed with error %d\n", res);
ctx               622 libavcodec/amfenc.c         if (ctx->delayed_surface != NULL) {
ctx               634 libavcodec/amfenc.c                 av_assert0(frame->hw_frames_ctx       && ctx->hw_frames_ctx &&
ctx               635 libavcodec/amfenc.c                            frame->hw_frames_ctx->data == ctx->hw_frames_ctx->data);
ctx               639 libavcodec/amfenc.c                 res = ctx->context->pVtbl->CreateSurfaceFromDX11Native(ctx->context, texture, &surface, NULL); // wrap to AMF surface
ctx               640 libavcodec/amfenc.c                 AMF_RETURN_IF_FALSE(ctx, res == AMF_OK, AVERROR(ENOMEM), "CreateSurfaceFromDX11Native() failed  with error %d\n", res);
ctx               651 libavcodec/amfenc.c                 res = ctx->context->pVtbl->CreateSurfaceFromDX9Native(ctx->context, texture, &surface, NULL); // wrap to AMF surface
ctx               652 libavcodec/amfenc.c                 AMF_RETURN_IF_FALSE(ctx, res == AMF_OK, AVERROR(ENOMEM), "CreateSurfaceFromDX9Native() failed  with error %d\n", res);
ctx               660 libavcodec/amfenc.c                 res = ctx->context->pVtbl->AllocSurface(ctx->context, AMF_MEMORY_HOST, ctx->format, avctx->width, avctx->height, &surface);
ctx               661 libavcodec/amfenc.c                 AMF_RETURN_IF_FALSE(ctx, res == AMF_OK, AVERROR(ENOMEM), "AllocSurface() failed  with error %d\n", res);
ctx               673 libavcodec/amfenc.c             frame_ref_storage_buffer = amf_create_buffer_with_frame_ref(frame, ctx->context);
ctx               674 libavcodec/amfenc.c             AMF_RETURN_IF_FALSE(ctx, frame_ref_storage_buffer != NULL, AVERROR(ENOMEM), "create_buffer_with_frame_ref() returned NULL\n");
ctx               677 libavcodec/amfenc.c             AMF_RETURN_IF_FALSE(ctx, res == AMF_OK, AVERROR_UNKNOWN, "SetProperty failed for \"av_frame_ref\" with error %d\n", res);
ctx               678 libavcodec/amfenc.c             ctx->hwsurfaces_in_queue++;
ctx               687 libavcodec/amfenc.c             AMF_ASSIGN_PROPERTY_INT64(res, surface, AMF_VIDEO_ENCODER_INSERT_AUD, !!ctx->aud);
ctx               690 libavcodec/amfenc.c             AMF_ASSIGN_PROPERTY_INT64(res, surface, AMF_VIDEO_ENCODER_HEVC_INSERT_AUD, !!ctx->aud);
ctx               698 libavcodec/amfenc.c         res = ctx->encoder->pVtbl->SubmitInput(ctx->encoder, (AMFData*)surface);
ctx               701 libavcodec/amfenc.c             ctx->delayed_surface = surface;
ctx               703 libavcodec/amfenc.c                 av_frame_ref(ctx->delayed_frame, frame);
ctx               707 libavcodec/amfenc.c             AMF_RETURN_IF_FALSE(ctx, res == AMF_OK, AVERROR_UNKNOWN, "SubmitInput() failed with error %d\n", res);
ctx               722 libavcodec/amfenc.c     AmfContext     *ctx = avctx->priv_data;
ctx               726 libavcodec/amfenc.c     if (!ctx->encoder)
ctx               732 libavcodec/amfenc.c         res_query = ctx->encoder->pVtbl->QueryOutput(ctx->encoder, &data);
ctx               745 libavcodec/amfenc.c                 AMF_RETURN_IF_FALSE(ctx, res == AMF_OK, AVERROR_UNKNOWN, "GetProperty failed for \"av_frame_ref\" with error %d\n", res);
ctx               747 libavcodec/amfenc.c                 ctx->hwsurfaces_in_queue--;
ctx               752 libavcodec/amfenc.c             AMF_RETURN_IF_FALSE(ctx, ret >= 0, ret, "amf_copy_buffer() failed with error %d\n", ret);
ctx               754 libavcodec/amfenc.c             if (ctx->delayed_surface != NULL) { // try to resubmit frame
ctx               755 libavcodec/amfenc.c                 res = ctx->encoder->pVtbl->SubmitInput(ctx->encoder, (AMFData*)ctx->delayed_surface);
ctx               757 libavcodec/amfenc.c                     int64_t pts = ctx->delayed_surface->pVtbl->GetPts(ctx->delayed_surface);
ctx               758 libavcodec/amfenc.c                     ctx->delayed_surface->pVtbl->Release(ctx->delayed_surface);
ctx               759 libavcodec/amfenc.c                     ctx->delayed_surface = NULL;
ctx               760 libavcodec/amfenc.c                     av_frame_unref(ctx->delayed_frame);
ctx               761 libavcodec/amfenc.c                     AMF_RETURN_IF_FALSE(ctx, res == AMF_OK, AVERROR_UNKNOWN, "Repeated SubmitInput() failed with error %d\n", res);
ctx               769 libavcodec/amfenc.c             } else if (ctx->delayed_drain) { // try to resubmit drain
ctx               770 libavcodec/amfenc.c                 res = ctx->encoder->pVtbl->Drain(ctx->encoder);
ctx               772 libavcodec/amfenc.c                     ctx->delayed_drain = 0;
ctx               773 libavcodec/amfenc.c                     ctx->eof = 1; // drain started
ctx               774 libavcodec/amfenc.c                     AMF_RETURN_IF_FALSE(ctx, res == AMF_OK, AVERROR_UNKNOWN, "Repeated Drain() failed with error %d\n", res);
ctx               779 libavcodec/amfenc.c         } else if (ctx->delayed_surface != NULL || ctx->delayed_drain || (ctx->eof && res_query != AMF_EOF) || (ctx->hwsurfaces_in_queue >= ctx->hwsurfaces_in_queue_max)) {
ctx               131 libavcodec/amfenc_h264.c     AmfContext                      *ctx = avctx->priv_data;
ctx               151 libavcodec/amfenc_h264.c     AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_USAGE, ctx->usage);
ctx               153 libavcodec/amfenc_h264.c     AMF_ASSIGN_PROPERTY_SIZE(res, ctx->encoder, AMF_VIDEO_ENCODER_FRAMESIZE, framesize);
ctx               155 libavcodec/amfenc_h264.c     AMF_ASSIGN_PROPERTY_RATE(res, ctx->encoder, AMF_VIDEO_ENCODER_FRAMERATE, framerate);
ctx               175 libavcodec/amfenc_h264.c         profile = ctx->profile;
ctx               178 libavcodec/amfenc_h264.c     AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_PROFILE, profile);
ctx               182 libavcodec/amfenc_h264.c         profile_level = ctx->level;
ctx               185 libavcodec/amfenc_h264.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_PROFILE_LEVEL, profile_level);
ctx               190 libavcodec/amfenc_h264.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_MAX_NUM_REFRAMES, avctx->refs);
ctx               194 libavcodec/amfenc_h264.c         AMF_ASSIGN_PROPERTY_RATIO(res, ctx->encoder, AMF_VIDEO_ENCODER_ASPECT_RATIO, ratio);
ctx               199 libavcodec/amfenc_h264.c         AMF_ASSIGN_PROPERTY_BOOL(res, ctx->encoder, AMF_VIDEO_ENCODER_FULL_RANGE_COLOR, 1);
ctx               203 libavcodec/amfenc_h264.c     if (ctx->rate_control_mode == AMF_VIDEO_ENCODER_RATE_CONTROL_METHOD_UNKNOWN) {
ctx               204 libavcodec/amfenc_h264.c         if (ctx->qp_i != -1 || ctx->qp_p != -1 || ctx->qp_b != -1) {
ctx               205 libavcodec/amfenc_h264.c             ctx->rate_control_mode = AMF_VIDEO_ENCODER_RATE_CONTROL_METHOD_CONSTANT_QP;
ctx               206 libavcodec/amfenc_h264.c             av_log(ctx, AV_LOG_DEBUG, "Rate control turned to CQP\n");
ctx               208 libavcodec/amfenc_h264.c             ctx->rate_control_mode = AMF_VIDEO_ENCODER_RATE_CONTROL_METHOD_PEAK_CONSTRAINED_VBR;
ctx               209 libavcodec/amfenc_h264.c             av_log(ctx, AV_LOG_DEBUG, "Rate control turned to Peak VBR\n");
ctx               211 libavcodec/amfenc_h264.c             ctx->rate_control_mode = AMF_VIDEO_ENCODER_RATE_CONTROL_METHOD_CBR;
ctx               212 libavcodec/amfenc_h264.c             av_log(ctx, AV_LOG_DEBUG, "Rate control turned to CBR\n");
ctx               216 libavcodec/amfenc_h264.c     if (ctx->rate_control_mode == AMF_VIDEO_ENCODER_RATE_CONTROL_METHOD_CONSTANT_QP) {
ctx               217 libavcodec/amfenc_h264.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_RATE_CONTROL_PREANALYSIS_ENABLE, AMF_VIDEO_ENCODER_PREENCODE_DISABLED);
ctx               218 libavcodec/amfenc_h264.c         if (ctx->preanalysis)
ctx               219 libavcodec/amfenc_h264.c             av_log(ctx, AV_LOG_WARNING, "Pre-Analysis is not supported by cqp Rate Control Method, automatically disabled\n");
ctx               221 libavcodec/amfenc_h264.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_RATE_CONTROL_PREANALYSIS_ENABLE, ctx->preanalysis);
ctx               224 libavcodec/amfenc_h264.c     AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_QUALITY_PRESET, ctx->quality);
ctx               227 libavcodec/amfenc_h264.c     AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_RATE_CONTROL_METHOD, ctx->rate_control_mode);
ctx               231 libavcodec/amfenc_h264.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_VBV_BUFFER_SIZE, avctx->rc_buffer_size);
ctx               236 libavcodec/amfenc_h264.c             AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_INITIAL_VBV_BUFFER_FULLNESS, amf_buffer_fullness);
ctx               240 libavcodec/amfenc_h264.c     AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_MAX_AU_SIZE, ctx->max_au_size);
ctx               242 libavcodec/amfenc_h264.c     if (ctx->max_au_size)
ctx               243 libavcodec/amfenc_h264.c         ctx->enforce_hrd = 1;
ctx               246 libavcodec/amfenc_h264.c     if (ctx->rate_control_mode == AMF_VIDEO_ENCODER_RATE_CONTROL_METHOD_CONSTANT_QP) {
ctx               247 libavcodec/amfenc_h264.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_MIN_QP, 0);
ctx               248 libavcodec/amfenc_h264.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_MAX_QP, 51);
ctx               252 libavcodec/amfenc_h264.c             AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_MIN_QP, qval);
ctx               256 libavcodec/amfenc_h264.c             AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_MAX_QP, qval);
ctx               260 libavcodec/amfenc_h264.c     if (ctx->qp_i != -1)
ctx               261 libavcodec/amfenc_h264.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_QP_I, ctx->qp_i);
ctx               262 libavcodec/amfenc_h264.c     if (ctx->qp_p != -1)
ctx               263 libavcodec/amfenc_h264.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_QP_P, ctx->qp_p);
ctx               264 libavcodec/amfenc_h264.c     if (ctx->qp_b != -1)
ctx               265 libavcodec/amfenc_h264.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_QP_B, ctx->qp_b);
ctx               267 libavcodec/amfenc_h264.c     AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_TARGET_BITRATE, avctx->bit_rate);
ctx               269 libavcodec/amfenc_h264.c     if (ctx->rate_control_mode == AMF_VIDEO_ENCODER_RATE_CONTROL_METHOD_CBR) {
ctx               270 libavcodec/amfenc_h264.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_PEAK_BITRATE, avctx->bit_rate);
ctx               273 libavcodec/amfenc_h264.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_PEAK_BITRATE, avctx->rc_max_rate);
ctx               274 libavcodec/amfenc_h264.c     } else if (ctx->rate_control_mode == AMF_VIDEO_ENCODER_RATE_CONTROL_METHOD_PEAK_CONSTRAINED_VBR) {
ctx               275 libavcodec/amfenc_h264.c         av_log(ctx, AV_LOG_WARNING, "rate control mode is PEAK_CONSTRAINED_VBR but rc_max_rate is not set\n");
ctx               279 libavcodec/amfenc_h264.c     res = ctx->encoder->pVtbl->Init(ctx->encoder, ctx->format, avctx->width, avctx->height);
ctx               280 libavcodec/amfenc_h264.c     AMF_RETURN_IF_FALSE(ctx, res == AMF_OK, AVERROR_BUG, "encoder->Init() failed with error %d\n", res);
ctx               283 libavcodec/amfenc_h264.c     AMF_ASSIGN_PROPERTY_BOOL(res, ctx->encoder, AMF_VIDEO_ENCODER_ENFORCE_HRD, !!ctx->enforce_hrd);
ctx               284 libavcodec/amfenc_h264.c     AMF_ASSIGN_PROPERTY_BOOL(res, ctx->encoder, AMF_VIDEO_ENCODER_FILLER_DATA_ENABLE, !!ctx->filler_data);
ctx               285 libavcodec/amfenc_h264.c     AMF_ASSIGN_PROPERTY_BOOL(res, ctx->encoder, AMF_VIDEO_ENCODER_RATE_CONTROL_SKIP_FRAME_ENABLE, !!ctx->skip_frame);
ctx               286 libavcodec/amfenc_h264.c     if (ctx->rate_control_mode == AMF_VIDEO_ENCODER_RATE_CONTROL_METHOD_CONSTANT_QP) {
ctx               287 libavcodec/amfenc_h264.c         AMF_ASSIGN_PROPERTY_BOOL(res, ctx->encoder, AMF_VIDEO_ENCODER_ENABLE_VBAQ, 0);
ctx               288 libavcodec/amfenc_h264.c         if (ctx->enable_vbaq)
ctx               289 libavcodec/amfenc_h264.c             av_log(ctx, AV_LOG_WARNING, "VBAQ is not supported by cqp Rate Control Method, automatically disabled\n");
ctx               291 libavcodec/amfenc_h264.c         AMF_ASSIGN_PROPERTY_BOOL(res, ctx->encoder, AMF_VIDEO_ENCODER_ENABLE_VBAQ, !!ctx->enable_vbaq);
ctx               293 libavcodec/amfenc_h264.c     AMF_ASSIGN_PROPERTY_BOOL(res, ctx->encoder, AMF_VIDEO_ENCODER_DE_BLOCKING_FILTER, !!deblocking_filter);
ctx               296 libavcodec/amfenc_h264.c     AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_B_PIC_PATTERN, avctx->max_b_frames);
ctx               298 libavcodec/amfenc_h264.c         res = ctx->encoder->pVtbl->GetProperty(ctx->encoder, AMF_VIDEO_ENCODER_B_PIC_PATTERN, &var);
ctx               299 libavcodec/amfenc_h264.c         av_log(ctx, AV_LOG_WARNING, "B-frames=%d is not supported by this GPU, switched to %d\n",
ctx               304 libavcodec/amfenc_h264.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_B_PIC_DELTA_QP, ctx->b_frame_delta_qp);
ctx               305 libavcodec/amfenc_h264.c         AMF_ASSIGN_PROPERTY_BOOL(res, ctx->encoder, AMF_VIDEO_ENCODER_B_REFERENCE_ENABLE, !!ctx->b_frame_ref);
ctx               306 libavcodec/amfenc_h264.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_REF_B_PIC_DELTA_QP, ctx->ref_b_frame_delta_qp);
ctx               310 libavcodec/amfenc_h264.c     AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_IDR_PERIOD, avctx->gop_size);
ctx               313 libavcodec/amfenc_h264.c     if (ctx->header_spacing >= 0)
ctx               314 libavcodec/amfenc_h264.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEADER_INSERTION_SPACING, ctx->header_spacing);
ctx               317 libavcodec/amfenc_h264.c     if (ctx->intra_refresh_mb > 0)
ctx               318 libavcodec/amfenc_h264.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_INTRA_REFRESH_NUM_MBS_PER_SLOT, ctx->intra_refresh_mb);
ctx               320 libavcodec/amfenc_h264.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_SLICES_PER_FRAME, avctx->slices);
ctx               323 libavcodec/amfenc_h264.c     if (ctx->coding_mode != 0)
ctx               324 libavcodec/amfenc_h264.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_CABAC_ENABLE, ctx->coding_mode);
ctx               327 libavcodec/amfenc_h264.c     AMF_ASSIGN_PROPERTY_BOOL(res, ctx->encoder, AMF_VIDEO_ENCODER_MOTION_HALF_PIXEL, !!ctx->me_half_pel);
ctx               328 libavcodec/amfenc_h264.c     AMF_ASSIGN_PROPERTY_BOOL(res, ctx->encoder, AMF_VIDEO_ENCODER_MOTION_QUARTERPIXEL, !!ctx->me_quarter_pel);
ctx               332 libavcodec/amfenc_h264.c     AMF_RETURN_IF_FALSE(ctx, res == AMF_OK, AVERROR_BUG, "AMFVariantInit() failed with error %d\n", res);
ctx               334 libavcodec/amfenc_h264.c     res = ctx->encoder->pVtbl->GetProperty(ctx->encoder, AMF_VIDEO_ENCODER_EXTRADATA, &var);
ctx               335 libavcodec/amfenc_h264.c     AMF_RETURN_IF_FALSE(ctx, res == AMF_OK, AVERROR_BUG, "GetProperty(AMF_VIDEO_ENCODER_EXTRADATA) failed with error %d\n", res);
ctx               336 libavcodec/amfenc_h264.c     AMF_RETURN_IF_FALSE(ctx, var.pInterface != NULL, AVERROR_BUG, "GetProperty(AMF_VIDEO_ENCODER_EXTRADATA) returned NULL\n");
ctx               344 libavcodec/amfenc_h264.c     AMF_RETURN_IF_FALSE(ctx, res == AMF_OK, AVERROR_BUG, "QueryInterface(IID_AMFBuffer) failed with error %d\n", res);
ctx                98 libavcodec/amfenc_hevc.c     AmfContext         *ctx = avctx->priv_data;
ctx               118 libavcodec/amfenc_hevc.c     AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_USAGE, ctx->usage);
ctx               120 libavcodec/amfenc_hevc.c     AMF_ASSIGN_PROPERTY_SIZE(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_FRAMESIZE, framesize);
ctx               122 libavcodec/amfenc_hevc.c     AMF_ASSIGN_PROPERTY_RATE(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_FRAMERATE, framerate);
ctx               132 libavcodec/amfenc_hevc.c         profile = ctx->profile;
ctx               134 libavcodec/amfenc_hevc.c     AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_PROFILE, profile);
ctx               136 libavcodec/amfenc_hevc.c     AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_TIER, ctx->tier);
ctx               140 libavcodec/amfenc_hevc.c         profile_level = ctx->level;
ctx               143 libavcodec/amfenc_hevc.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_PROFILE_LEVEL, profile_level);
ctx               145 libavcodec/amfenc_hevc.c     AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_QUALITY_PRESET, ctx->quality);
ctx               148 libavcodec/amfenc_hevc.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_MAX_NUM_REFRAMES, avctx->refs);
ctx               153 libavcodec/amfenc_hevc.c         AMF_ASSIGN_PROPERTY_RATIO(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_ASPECT_RATIO, ratio);
ctx               157 libavcodec/amfenc_hevc.c     AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_NUM_GOPS_PER_IDR, ctx->gops_per_idr);
ctx               158 libavcodec/amfenc_hevc.c     AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_GOP_SIZE, avctx->gop_size);
ctx               160 libavcodec/amfenc_hevc.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_SLICES_PER_FRAME, avctx->slices);
ctx               162 libavcodec/amfenc_hevc.c     AMF_ASSIGN_PROPERTY_BOOL(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_DE_BLOCKING_FILTER_DISABLE, deblocking_filter);
ctx               163 libavcodec/amfenc_hevc.c     AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_HEADER_INSERTION_MODE, ctx->header_insertion_mode);
ctx               167 libavcodec/amfenc_hevc.c     if (ctx->rate_control_mode == AMF_VIDEO_ENCODER_HEVC_RATE_CONTROL_METHOD_UNKNOWN) {
ctx               168 libavcodec/amfenc_hevc.c         if (ctx->min_qp_i != -1 || ctx->max_qp_i != -1 ||
ctx               169 libavcodec/amfenc_hevc.c             ctx->min_qp_p != -1 || ctx->max_qp_p != -1 ||
ctx               170 libavcodec/amfenc_hevc.c             ctx->qp_i !=-1 || ctx->qp_p != -1) {
ctx               171 libavcodec/amfenc_hevc.c             ctx->rate_control_mode = AMF_VIDEO_ENCODER_HEVC_RATE_CONTROL_METHOD_CONSTANT_QP;
ctx               172 libavcodec/amfenc_hevc.c             av_log(ctx, AV_LOG_DEBUG, "Rate control turned to CQP\n");
ctx               174 libavcodec/amfenc_hevc.c             ctx->rate_control_mode = AMF_VIDEO_ENCODER_HEVC_RATE_CONTROL_METHOD_PEAK_CONSTRAINED_VBR;
ctx               175 libavcodec/amfenc_hevc.c             av_log(ctx, AV_LOG_DEBUG, "Rate control turned to Peak VBR\n");
ctx               177 libavcodec/amfenc_hevc.c             ctx->rate_control_mode = AMF_VIDEO_ENCODER_HEVC_RATE_CONTROL_METHOD_CBR;
ctx               178 libavcodec/amfenc_hevc.c             av_log(ctx, AV_LOG_DEBUG, "Rate control turned to CBR\n");
ctx               183 libavcodec/amfenc_hevc.c     AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_RATE_CONTROL_METHOD, ctx->rate_control_mode);
ctx               185 libavcodec/amfenc_hevc.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_VBV_BUFFER_SIZE, avctx->rc_buffer_size);
ctx               191 libavcodec/amfenc_hevc.c             AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_INITIAL_VBV_BUFFER_FULLNESS, amf_buffer_fullness);
ctx               195 libavcodec/amfenc_hevc.c     AMF_ASSIGN_PROPERTY_BOOL(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_RATE_CONTROL_PREANALYSIS_ENABLE, ctx->preanalysis);
ctx               197 libavcodec/amfenc_hevc.c     if (ctx->rate_control_mode == AMF_VIDEO_ENCODER_HEVC_RATE_CONTROL_METHOD_CONSTANT_QP) {
ctx               198 libavcodec/amfenc_hevc.c         AMF_ASSIGN_PROPERTY_BOOL(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_ENABLE_VBAQ, false);
ctx               199 libavcodec/amfenc_hevc.c         if (ctx->enable_vbaq)
ctx               200 libavcodec/amfenc_hevc.c             av_log(ctx, AV_LOG_WARNING, "VBAQ is not supported by cqp Rate Control Method, automatically disabled\n");
ctx               202 libavcodec/amfenc_hevc.c         AMF_ASSIGN_PROPERTY_BOOL(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_ENABLE_VBAQ, !!ctx->enable_vbaq);
ctx               204 libavcodec/amfenc_hevc.c     AMF_ASSIGN_PROPERTY_BOOL(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_MOTION_HALF_PIXEL, ctx->me_half_pel);
ctx               205 libavcodec/amfenc_hevc.c     AMF_ASSIGN_PROPERTY_BOOL(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_MOTION_QUARTERPIXEL, ctx->me_quarter_pel);
ctx               208 libavcodec/amfenc_hevc.c     if (ctx->max_au_size)
ctx               209 libavcodec/amfenc_hevc.c         ctx->enforce_hrd = 1;
ctx               210 libavcodec/amfenc_hevc.c     AMF_ASSIGN_PROPERTY_BOOL(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_ENFORCE_HRD, ctx->enforce_hrd);
ctx               211 libavcodec/amfenc_hevc.c     AMF_ASSIGN_PROPERTY_BOOL(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_FILLER_DATA_ENABLE, ctx->filler_data);
ctx               213 libavcodec/amfenc_hevc.c     AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_TARGET_BITRATE, avctx->bit_rate);
ctx               215 libavcodec/amfenc_hevc.c     if (ctx->rate_control_mode == AMF_VIDEO_ENCODER_HEVC_RATE_CONTROL_METHOD_CBR) {
ctx               216 libavcodec/amfenc_hevc.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_PEAK_BITRATE, avctx->bit_rate);
ctx               219 libavcodec/amfenc_hevc.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_PEAK_BITRATE, avctx->rc_max_rate);
ctx               220 libavcodec/amfenc_hevc.c     } else if (ctx->rate_control_mode == AMF_VIDEO_ENCODER_HEVC_RATE_CONTROL_METHOD_PEAK_CONSTRAINED_VBR) {
ctx               221 libavcodec/amfenc_hevc.c         av_log(ctx, AV_LOG_WARNING, "rate control mode is PEAK_CONSTRAINED_VBR but rc_max_rate is not set\n");
ctx               225 libavcodec/amfenc_hevc.c     res = ctx->encoder->pVtbl->Init(ctx->encoder, ctx->format, avctx->width, avctx->height);
ctx               226 libavcodec/amfenc_hevc.c     AMF_RETURN_IF_FALSE(ctx, res == AMF_OK, AVERROR_BUG, "encoder->Init() failed with error %d\n", res);
ctx               229 libavcodec/amfenc_hevc.c     AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_MAX_AU_SIZE, ctx->max_au_size);
ctx               231 libavcodec/amfenc_hevc.c     if (ctx->min_qp_i != -1) {
ctx               232 libavcodec/amfenc_hevc.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_MIN_QP_I, ctx->min_qp_i);
ctx               235 libavcodec/amfenc_hevc.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_MIN_QP_I, qval);
ctx               237 libavcodec/amfenc_hevc.c     if (ctx->max_qp_i != -1) {
ctx               238 libavcodec/amfenc_hevc.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_MAX_QP_I, ctx->max_qp_i);
ctx               241 libavcodec/amfenc_hevc.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_MAX_QP_I, qval);
ctx               243 libavcodec/amfenc_hevc.c     if (ctx->min_qp_p != -1) {
ctx               244 libavcodec/amfenc_hevc.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_MIN_QP_P, ctx->min_qp_p);
ctx               247 libavcodec/amfenc_hevc.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_MIN_QP_P, qval);
ctx               249 libavcodec/amfenc_hevc.c     if (ctx->max_qp_p != -1) {
ctx               250 libavcodec/amfenc_hevc.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_MAX_QP_P, ctx->max_qp_p);
ctx               253 libavcodec/amfenc_hevc.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_MAX_QP_P, qval);
ctx               256 libavcodec/amfenc_hevc.c     if (ctx->qp_p != -1) {
ctx               257 libavcodec/amfenc_hevc.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_QP_P, ctx->qp_p);
ctx               259 libavcodec/amfenc_hevc.c     if (ctx->qp_i != -1) {
ctx               260 libavcodec/amfenc_hevc.c         AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_QP_I, ctx->qp_i);
ctx               262 libavcodec/amfenc_hevc.c     AMF_ASSIGN_PROPERTY_BOOL(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_RATE_CONTROL_SKIP_FRAME_ENABLE, ctx->skip_frame);
ctx               267 libavcodec/amfenc_hevc.c     AMF_RETURN_IF_FALSE(ctx, res == AMF_OK, AVERROR_BUG, "AMFVariantInit() failed with error %d\n", res);
ctx               269 libavcodec/amfenc_hevc.c     res = ctx->encoder->pVtbl->GetProperty(ctx->encoder, AMF_VIDEO_ENCODER_HEVC_EXTRADATA, &var);
ctx               270 libavcodec/amfenc_hevc.c     AMF_RETURN_IF_FALSE(ctx, res == AMF_OK, AVERROR_BUG, "GetProperty(AMF_VIDEO_ENCODER_EXTRADATA) failed with error %d\n", res);
ctx               271 libavcodec/amfenc_hevc.c     AMF_RETURN_IF_FALSE(ctx, var.pInterface != NULL, AVERROR_BUG, "GetProperty(AMF_VIDEO_ENCODER_EXTRADATA) returned NULL\n");
ctx               279 libavcodec/amfenc_hevc.c     AMF_RETURN_IF_FALSE(ctx, res == AMF_OK, AVERROR_BUG, "QueryInterface(IID_AMFBuffer) failed with error %d\n", res);
ctx               239 libavcodec/amrnbdec.c static void interpolate_lsf(ACELPVContext *ctx, float lsf_q[4][LP_FILTER_ORDER], float *lsf_new)
ctx               244 libavcodec/amrnbdec.c         ctx->weighted_vector_sumf(lsf_q[i], lsf_q[3], lsf_new,
ctx                98 libavcodec/amrwbdec.c     AMRWBContext *ctx = avctx->priv_data;
ctx               112 libavcodec/amrwbdec.c     av_lfg_init(&ctx->prng, 1);
ctx               114 libavcodec/amrwbdec.c     ctx->excitation  = &ctx->excitation_buf[AMRWB_P_DELAY_MAX + LP_ORDER + 1];
ctx               115 libavcodec/amrwbdec.c     ctx->first_frame = 1;
ctx               118 libavcodec/amrwbdec.c         ctx->isf_past_final[i] = isf_init[i] * (1.0f / (1 << 15));
ctx               121 libavcodec/amrwbdec.c         ctx->prediction_error[i] = MIN_ENERGY;
ctx               123 libavcodec/amrwbdec.c     ff_acelp_filter_init(&ctx->acelpf_ctx);
ctx               124 libavcodec/amrwbdec.c     ff_acelp_vectors_init(&ctx->acelpv_ctx);
ctx               125 libavcodec/amrwbdec.c     ff_celp_filter_init(&ctx->celpf_ctx);
ctx               126 libavcodec/amrwbdec.c     ff_celp_math_init(&ctx->celpm_ctx);
ctx               140 libavcodec/amrwbdec.c static int decode_mime_header(AMRWBContext *ctx, const uint8_t *buf)
ctx               143 libavcodec/amrwbdec.c     ctx->fr_cur_mode  = buf[0] >> 3 & 0x0F;
ctx               144 libavcodec/amrwbdec.c     ctx->fr_quality   = (buf[0] & 0x4) == 0x4;
ctx               318 libavcodec/amrwbdec.c static void decode_pitch_vector(AMRWBContext *ctx,
ctx               324 libavcodec/amrwbdec.c     float *exc     = ctx->excitation;
ctx               325 libavcodec/amrwbdec.c     enum Mode mode = ctx->fr_cur_mode;
ctx               329 libavcodec/amrwbdec.c                               &ctx->base_pitch_lag, subframe, mode);
ctx               332 libavcodec/amrwbdec.c                               &ctx->base_pitch_lag, subframe);
ctx               334 libavcodec/amrwbdec.c     ctx->pitch_lag_int = pitch_lag_int;
ctx               339 libavcodec/amrwbdec.c     ctx->acelpf_ctx.acelp_interpolatef(exc,
ctx               348 libavcodec/amrwbdec.c         memcpy(ctx->pitch_vector, exc, AMRWB_SFR_SIZE * sizeof(float));
ctx               351 libavcodec/amrwbdec.c             ctx->pitch_vector[i] = 0.18 * exc[i - 1] + 0.64 * exc[i] +
ctx               353 libavcodec/amrwbdec.c         memcpy(exc, ctx->pitch_vector, AMRWB_SFR_SIZE * sizeof(float));
ctx               581 libavcodec/amrwbdec.c static void pitch_sharpening(AMRWBContext *ctx, float *fixed_vector)
ctx               587 libavcodec/amrwbdec.c         fixed_vector[i] -= fixed_vector[i - 1] * ctx->tilt_coef;
ctx               590 libavcodec/amrwbdec.c     for (i = ctx->pitch_lag_int; i < AMRWB_SFR_SIZE; i++)
ctx               591 libavcodec/amrwbdec.c         fixed_vector[i] += fixed_vector[i - ctx->pitch_lag_int] * 0.85;
ctx               605 libavcodec/amrwbdec.c                           CELPMContext *ctx)
ctx               607 libavcodec/amrwbdec.c     double p_ener = (double) ctx->dot_productf(p_vector, p_vector,
ctx               610 libavcodec/amrwbdec.c     double f_ener = (double) ctx->dot_productf(f_vector, f_vector,
ctx               627 libavcodec/amrwbdec.c static float *anti_sparseness(AMRWBContext *ctx,
ctx               632 libavcodec/amrwbdec.c     if (ctx->fr_cur_mode > MODE_8k85) // no filtering in higher modes
ctx               635 libavcodec/amrwbdec.c     if (ctx->pitch_gain[0] < 0.6) {
ctx               637 libavcodec/amrwbdec.c     } else if (ctx->pitch_gain[0] < 0.9) {
ctx               643 libavcodec/amrwbdec.c     if (ctx->fixed_gain[0] > 3.0 * ctx->fixed_gain[1]) {
ctx               650 libavcodec/amrwbdec.c             if (ctx->pitch_gain[i] < 0.6)
ctx               656 libavcodec/amrwbdec.c         if (ir_filter_nr > ctx->prev_ir_filter_nr + 1)
ctx               661 libavcodec/amrwbdec.c     ctx->prev_ir_filter_nr = ir_filter_nr;
ctx               663 libavcodec/amrwbdec.c     ir_filter_nr += (ctx->fr_cur_mode == MODE_8k85);
ctx               770 libavcodec/amrwbdec.c static void synthesis(AMRWBContext *ctx, float *lpc, float *excitation,
ctx               774 libavcodec/amrwbdec.c     ctx->acelpv_ctx.weighted_vector_sumf(excitation, ctx->pitch_vector, fixed_vector,
ctx               775 libavcodec/amrwbdec.c                             ctx->pitch_gain[0], fixed_gain, AMRWB_SFR_SIZE);
ctx               778 libavcodec/amrwbdec.c     if (ctx->pitch_gain[0] > 0.5 && ctx->fr_cur_mode <= MODE_8k85) {
ctx               780 libavcodec/amrwbdec.c         float energy = ctx->celpm_ctx.dot_productf(excitation, excitation,
ctx               785 libavcodec/amrwbdec.c         float pitch_factor = 0.25 * ctx->pitch_gain[0] * ctx->pitch_gain[0];
ctx               788 libavcodec/amrwbdec.c             excitation[i] += pitch_factor * ctx->pitch_vector[i];
ctx               794 libavcodec/amrwbdec.c     ctx->celpf_ctx.celp_lp_synthesis_filterf(samples, lpc, excitation,
ctx               828 libavcodec/amrwbdec.c static void upsample_5_4(float *out, const float *in, int o_size, CELPMContext *ctx)
ctx               841 libavcodec/amrwbdec.c             out[i] = ctx->dot_productf(in0 + int_part,
ctx               860 libavcodec/amrwbdec.c static float find_hb_gain(AMRWBContext *ctx, const float *synth,
ctx               867 libavcodec/amrwbdec.c     if (ctx->fr_cur_mode == MODE_23k85)
ctx               870 libavcodec/amrwbdec.c     tmp = ctx->celpm_ctx.dot_productf(synth, synth + 1, AMRWB_SFR_SIZE - 1);
ctx               873 libavcodec/amrwbdec.c         tilt = tmp / ctx->celpm_ctx.dot_productf(synth, synth, AMRWB_SFR_SIZE);
ctx               890 libavcodec/amrwbdec.c static void scaled_hb_excitation(AMRWBContext *ctx, float *hb_exc,
ctx               894 libavcodec/amrwbdec.c     float energy = ctx->celpm_ctx.dot_productf(synth_exc, synth_exc,
ctx               899 libavcodec/amrwbdec.c         hb_exc[i] = 32768.0 - (uint16_t) av_lfg_get(&ctx->prng);
ctx              1015 libavcodec/amrwbdec.c static void hb_synthesis(AMRWBContext *ctx, int subframe, float *samples,
ctx              1019 libavcodec/amrwbdec.c     enum Mode mode = ctx->fr_cur_mode;
ctx              1025 libavcodec/amrwbdec.c         ctx->acelpv_ctx.weighted_vector_sumf(e_isf, isf_past, isf, isfp_inter[subframe],
ctx              1036 libavcodec/amrwbdec.c         lpc_weighting(hb_lpc, ctx->lp_coef[subframe], 0.6, LP_ORDER);
ctx              1039 libavcodec/amrwbdec.c     ctx->celpf_ctx.celp_lp_synthesis_filterf(samples, hb_lpc, exc, AMRWB_SFR_SIZE_16k,
ctx              1078 libavcodec/amrwbdec.c static void update_sub_state(AMRWBContext *ctx)
ctx              1080 libavcodec/amrwbdec.c     memmove(&ctx->excitation_buf[0], &ctx->excitation_buf[AMRWB_SFR_SIZE],
ctx              1083 libavcodec/amrwbdec.c     memmove(&ctx->pitch_gain[1], &ctx->pitch_gain[0], 5 * sizeof(float));
ctx              1084 libavcodec/amrwbdec.c     memmove(&ctx->fixed_gain[1], &ctx->fixed_gain[0], 1 * sizeof(float));
ctx              1086 libavcodec/amrwbdec.c     memmove(&ctx->samples_az[0], &ctx->samples_az[AMRWB_SFR_SIZE],
ctx              1088 libavcodec/amrwbdec.c     memmove(&ctx->samples_up[0], &ctx->samples_up[AMRWB_SFR_SIZE],
ctx              1090 libavcodec/amrwbdec.c     memmove(&ctx->samples_hb[0], &ctx->samples_hb[AMRWB_SFR_SIZE_16k],
ctx              1097 libavcodec/amrwbdec.c     AMRWBContext *ctx  = avctx->priv_data;
ctx              1099 libavcodec/amrwbdec.c     AMRWBFrame   *cf   = &ctx->frame;
ctx              1121 libavcodec/amrwbdec.c     header_size      = decode_mime_header(ctx, buf);
ctx              1122 libavcodec/amrwbdec.c     expected_fr_size = ((cf_sizes_wb[ctx->fr_cur_mode] + 7) >> 3) + 1;
ctx              1124 libavcodec/amrwbdec.c     if (!ctx->fr_quality)
ctx              1127 libavcodec/amrwbdec.c     if (ctx->fr_cur_mode == NO_DATA || !ctx->fr_quality) {
ctx              1134 libavcodec/amrwbdec.c     if (ctx->fr_cur_mode > MODE_SID) {
ctx              1136 libavcodec/amrwbdec.c                "Invalid mode %d\n", ctx->fr_cur_mode);
ctx              1147 libavcodec/amrwbdec.c     if (ctx->fr_cur_mode == MODE_SID) { /* Comfort noise frame */
ctx              1152 libavcodec/amrwbdec.c     ff_amr_bit_reorder((uint16_t *) &ctx->frame, sizeof(AMRWBFrame),
ctx              1153 libavcodec/amrwbdec.c         buf + header_size, amr_bit_orderings_by_mode[ctx->fr_cur_mode]);
ctx              1156 libavcodec/amrwbdec.c     if (ctx->fr_cur_mode == MODE_6k60) {
ctx              1157 libavcodec/amrwbdec.c         decode_isf_indices_36b(cf->isp_id, ctx->isf_cur);
ctx              1159 libavcodec/amrwbdec.c         decode_isf_indices_46b(cf->isp_id, ctx->isf_cur);
ctx              1162 libavcodec/amrwbdec.c     isf_add_mean_and_past(ctx->isf_cur, ctx->isf_q_past);
ctx              1163 libavcodec/amrwbdec.c     ff_set_min_dist_lsf(ctx->isf_cur, MIN_ISF_SPACING, LP_ORDER - 1);
ctx              1165 libavcodec/amrwbdec.c     stab_fac = stability_factor(ctx->isf_cur, ctx->isf_past_final);
ctx              1167 libavcodec/amrwbdec.c     ctx->isf_cur[LP_ORDER - 1] *= 2.0;
ctx              1168 libavcodec/amrwbdec.c     ff_acelp_lsf2lspd(ctx->isp[3], ctx->isf_cur, LP_ORDER);
ctx              1171 libavcodec/amrwbdec.c     if (ctx->first_frame) {
ctx              1172 libavcodec/amrwbdec.c         ctx->first_frame = 0;
ctx              1173 libavcodec/amrwbdec.c         memcpy(ctx->isp_sub4_past, ctx->isp[3], LP_ORDER * sizeof(double));
ctx              1175 libavcodec/amrwbdec.c     interpolate_isp(ctx->isp, ctx->isp_sub4_past);
ctx              1178 libavcodec/amrwbdec.c         ff_amrwb_lsp2lpc(ctx->isp[sub], ctx->lp_coef[sub], LP_ORDER);
ctx              1185 libavcodec/amrwbdec.c         decode_pitch_vector(ctx, cur_subframe, sub);
ctx              1187 libavcodec/amrwbdec.c         decode_fixed_vector(ctx->fixed_vector, cur_subframe->pul_ih,
ctx              1188 libavcodec/amrwbdec.c                             cur_subframe->pul_il, ctx->fr_cur_mode);
ctx              1190 libavcodec/amrwbdec.c         pitch_sharpening(ctx, ctx->fixed_vector);
ctx              1192 libavcodec/amrwbdec.c         decode_gains(cur_subframe->vq_gain, ctx->fr_cur_mode,
ctx              1193 libavcodec/amrwbdec.c                      &fixed_gain_factor, &ctx->pitch_gain[0]);
ctx              1195 libavcodec/amrwbdec.c         ctx->fixed_gain[0] =
ctx              1197 libavcodec/amrwbdec.c                                   ctx->celpm_ctx.dot_productf(ctx->fixed_vector,
ctx              1198 libavcodec/amrwbdec.c                                                                ctx->fixed_vector,
ctx              1201 libavcodec/amrwbdec.c                        ctx->prediction_error,
ctx              1205 libavcodec/amrwbdec.c         voice_fac      = voice_factor(ctx->pitch_vector, ctx->pitch_gain[0],
ctx              1206 libavcodec/amrwbdec.c                                       ctx->fixed_vector, ctx->fixed_gain[0],
ctx              1207 libavcodec/amrwbdec.c                                       &ctx->celpm_ctx);
ctx              1208 libavcodec/amrwbdec.c         ctx->tilt_coef = voice_fac * 0.25 + 0.25;
ctx              1212 libavcodec/amrwbdec.c             ctx->excitation[i] *= ctx->pitch_gain[0];
ctx              1213 libavcodec/amrwbdec.c             ctx->excitation[i] += ctx->fixed_gain[0] * ctx->fixed_vector[i];
ctx              1214 libavcodec/amrwbdec.c             ctx->excitation[i] = truncf(ctx->excitation[i]);
ctx              1218 libavcodec/amrwbdec.c         synth_fixed_gain = noise_enhancer(ctx->fixed_gain[0], &ctx->prev_tr_gain,
ctx              1221 libavcodec/amrwbdec.c         synth_fixed_vector = anti_sparseness(ctx, ctx->fixed_vector,
ctx              1226 libavcodec/amrwbdec.c         synthesis(ctx, ctx->lp_coef[sub], synth_exc, synth_fixed_gain,
ctx              1227 libavcodec/amrwbdec.c                   synth_fixed_vector, &ctx->samples_az[LP_ORDER]);
ctx              1230 libavcodec/amrwbdec.c         de_emphasis(&ctx->samples_up[UPS_MEM_SIZE],
ctx              1231 libavcodec/amrwbdec.c                     &ctx->samples_az[LP_ORDER], PREEMPH_FAC, ctx->demph_mem);
ctx              1233 libavcodec/amrwbdec.c         ctx->acelpf_ctx.acelp_apply_order_2_transfer_function(&ctx->samples_up[UPS_MEM_SIZE],
ctx              1234 libavcodec/amrwbdec.c             &ctx->samples_up[UPS_MEM_SIZE], hpf_zeros, hpf_31_poles,
ctx              1235 libavcodec/amrwbdec.c             hpf_31_gain, ctx->hpf_31_mem, AMRWB_SFR_SIZE);
ctx              1237 libavcodec/amrwbdec.c         upsample_5_4(sub_buf, &ctx->samples_up[UPS_FIR_SIZE],
ctx              1238 libavcodec/amrwbdec.c                      AMRWB_SFR_SIZE_16k, &ctx->celpm_ctx);
ctx              1241 libavcodec/amrwbdec.c         ctx->acelpf_ctx.acelp_apply_order_2_transfer_function(hb_samples,
ctx              1242 libavcodec/amrwbdec.c             &ctx->samples_up[UPS_MEM_SIZE], hpf_zeros, hpf_400_poles,
ctx              1243 libavcodec/amrwbdec.c             hpf_400_gain, ctx->hpf_400_mem, AMRWB_SFR_SIZE);
ctx              1245 libavcodec/amrwbdec.c         hb_gain = find_hb_gain(ctx, hb_samples,
ctx              1248 libavcodec/amrwbdec.c         scaled_hb_excitation(ctx, hb_exc, synth_exc, hb_gain);
ctx              1250 libavcodec/amrwbdec.c         hb_synthesis(ctx, sub, &ctx->samples_hb[LP_ORDER_16k],
ctx              1251 libavcodec/amrwbdec.c                      hb_exc, ctx->isf_cur, ctx->isf_past_final);
ctx              1254 libavcodec/amrwbdec.c         hb_fir_filter(hb_samples, bpf_6_7_coef, ctx->bpf_6_7_mem,
ctx              1255 libavcodec/amrwbdec.c                       &ctx->samples_hb[LP_ORDER_16k]);
ctx              1257 libavcodec/amrwbdec.c         if (ctx->fr_cur_mode == MODE_23k85)
ctx              1258 libavcodec/amrwbdec.c             hb_fir_filter(hb_samples, lpf_7_coef, ctx->lpf_7_mem,
ctx              1266 libavcodec/amrwbdec.c         update_sub_state(ctx);
ctx              1270 libavcodec/amrwbdec.c     memcpy(ctx->isp_sub4_past, ctx->isp[3], LP_ORDER * sizeof(ctx->isp[3][0]));
ctx              1271 libavcodec/amrwbdec.c     memcpy(ctx->isf_past_final, ctx->isf_cur, LP_ORDER * sizeof(float));
ctx               176 libavcodec/apedec.c     void (*entropy_decode_mono)(struct APEContext *ctx, int blockstodecode);
ctx               177 libavcodec/apedec.c     void (*entropy_decode_stereo)(struct APEContext *ctx, int blockstodecode);
ctx               178 libavcodec/apedec.c     void (*predictor_decode_mono)(struct APEContext *ctx, int count);
ctx               179 libavcodec/apedec.c     void (*predictor_decode_stereo)(struct APEContext *ctx, int count);
ctx               182 libavcodec/apedec.c static void ape_apply_filters(APEContext *ctx, int32_t *decoded0,
ctx               185 libavcodec/apedec.c static void entropy_decode_mono_0000(APEContext *ctx, int blockstodecode);
ctx               186 libavcodec/apedec.c static void entropy_decode_stereo_0000(APEContext *ctx, int blockstodecode);
ctx               187 libavcodec/apedec.c static void entropy_decode_mono_3860(APEContext *ctx, int blockstodecode);
ctx               188 libavcodec/apedec.c static void entropy_decode_stereo_3860(APEContext *ctx, int blockstodecode);
ctx               189 libavcodec/apedec.c static void entropy_decode_mono_3900(APEContext *ctx, int blockstodecode);
ctx               190 libavcodec/apedec.c static void entropy_decode_stereo_3900(APEContext *ctx, int blockstodecode);
ctx               191 libavcodec/apedec.c static void entropy_decode_stereo_3930(APEContext *ctx, int blockstodecode);
ctx               192 libavcodec/apedec.c static void entropy_decode_mono_3990(APEContext *ctx, int blockstodecode);
ctx               193 libavcodec/apedec.c static void entropy_decode_stereo_3990(APEContext *ctx, int blockstodecode);
ctx               195 libavcodec/apedec.c static void predictor_decode_mono_3800(APEContext *ctx, int count);
ctx               196 libavcodec/apedec.c static void predictor_decode_stereo_3800(APEContext *ctx, int count);
ctx               197 libavcodec/apedec.c static void predictor_decode_mono_3930(APEContext *ctx, int count);
ctx               198 libavcodec/apedec.c static void predictor_decode_stereo_3930(APEContext *ctx, int count);
ctx               199 libavcodec/apedec.c static void predictor_decode_mono_3950(APEContext *ctx, int count);
ctx               200 libavcodec/apedec.c static void predictor_decode_stereo_3950(APEContext *ctx, int count);
ctx               320 libavcodec/apedec.c static inline void range_start_decoding(APEContext *ctx)
ctx               322 libavcodec/apedec.c     ctx->rc.buffer = bytestream_get_byte(&ctx->ptr);
ctx               323 libavcodec/apedec.c     ctx->rc.low    = ctx->rc.buffer >> (8 - EXTRA_BITS);
ctx               324 libavcodec/apedec.c     ctx->rc.range  = (uint32_t) 1 << EXTRA_BITS;
ctx               328 libavcodec/apedec.c static inline void range_dec_normalize(APEContext *ctx)
ctx               330 libavcodec/apedec.c     while (ctx->rc.range <= BOTTOM_VALUE) {
ctx               331 libavcodec/apedec.c         ctx->rc.buffer <<= 8;
ctx               332 libavcodec/apedec.c         if(ctx->ptr < ctx->data_end) {
ctx               333 libavcodec/apedec.c             ctx->rc.buffer += *ctx->ptr;
ctx               334 libavcodec/apedec.c             ctx->ptr++;
ctx               336 libavcodec/apedec.c             ctx->error = 1;
ctx               338 libavcodec/apedec.c         ctx->rc.low    = (ctx->rc.low << 8)    | ((ctx->rc.buffer >> 1) & 0xFF);
ctx               339 libavcodec/apedec.c         ctx->rc.range  <<= 8;
ctx               349 libavcodec/apedec.c static inline int range_decode_culfreq(APEContext *ctx, int tot_f)
ctx               351 libavcodec/apedec.c     range_dec_normalize(ctx);
ctx               352 libavcodec/apedec.c     ctx->rc.help = ctx->rc.range / tot_f;
ctx               353 libavcodec/apedec.c     return ctx->rc.low / ctx->rc.help;
ctx               361 libavcodec/apedec.c static inline int range_decode_culshift(APEContext *ctx, int shift)
ctx               363 libavcodec/apedec.c     range_dec_normalize(ctx);
ctx               364 libavcodec/apedec.c     ctx->rc.help = ctx->rc.range >> shift;
ctx               365 libavcodec/apedec.c     return ctx->rc.low / ctx->rc.help;
ctx               375 libavcodec/apedec.c static inline void range_decode_update(APEContext *ctx, int sy_f, int lt_f)
ctx               377 libavcodec/apedec.c     ctx->rc.low  -= ctx->rc.help * lt_f;
ctx               378 libavcodec/apedec.c     ctx->rc.range = ctx->rc.help * sy_f;
ctx               382 libavcodec/apedec.c static inline int range_decode_bits(APEContext *ctx, int n)
ctx               384 libavcodec/apedec.c     int sym = range_decode_culshift(ctx, n);
ctx               385 libavcodec/apedec.c     range_decode_update(ctx, 1, sym);
ctx               434 libavcodec/apedec.c static inline int range_get_symbol(APEContext *ctx,
ctx               440 libavcodec/apedec.c     cf = range_decode_culshift(ctx, 16);
ctx               444 libavcodec/apedec.c         range_decode_update(ctx, 1, cf);
ctx               446 libavcodec/apedec.c             ctx->error=1;
ctx               452 libavcodec/apedec.c     range_decode_update(ctx, counts_diff[symbol], counts[symbol]);
ctx               481 libavcodec/apedec.c static inline int ape_decode_value_3860(APEContext *ctx, GetBitContext *gb,
ctx               488 libavcodec/apedec.c     if (ctx->fileversion > 3880) {
ctx               500 libavcodec/apedec.c         av_log(ctx->avctx, AV_LOG_ERROR, "Too many bits: %"PRIu32"\n", rice->k);
ctx               501 libavcodec/apedec.c         ctx->error = 1;
ctx               514 libavcodec/apedec.c static inline int ape_decode_value_3900(APEContext *ctx, APERice *rice)
ctx               519 libavcodec/apedec.c     overflow = range_get_symbol(ctx, counts_3970, counts_diff_3970);
ctx               522 libavcodec/apedec.c         tmpk = range_decode_bits(ctx, 5);
ctx               527 libavcodec/apedec.c     if (tmpk <= 16 || ctx->fileversion < 3910) {
ctx               529 libavcodec/apedec.c             av_log(ctx->avctx, AV_LOG_ERROR, "Too many bits: %d\n", tmpk);
ctx               532 libavcodec/apedec.c         x = range_decode_bits(ctx, tmpk);
ctx               534 libavcodec/apedec.c         x = range_decode_bits(ctx, 16);
ctx               535 libavcodec/apedec.c         x |= (range_decode_bits(ctx, tmpk - 16) << 16);
ctx               537 libavcodec/apedec.c         av_log(ctx->avctx, AV_LOG_ERROR, "Too many bits: %d\n", tmpk);
ctx               548 libavcodec/apedec.c static inline int ape_decode_value_3990(APEContext *ctx, APERice *rice)
ctx               557 libavcodec/apedec.c     overflow = range_get_symbol(ctx, counts_3980, counts_diff_3980);
ctx               560 libavcodec/apedec.c         overflow  = (unsigned)range_decode_bits(ctx, 16) << 16;
ctx               561 libavcodec/apedec.c         overflow |= range_decode_bits(ctx, 16);
ctx               565 libavcodec/apedec.c         base = range_decode_culfreq(ctx, pivot);
ctx               566 libavcodec/apedec.c         range_decode_update(ctx, 1, base);
ctx               575 libavcodec/apedec.c         base_hi = range_decode_culfreq(ctx, base_hi + 1);
ctx               576 libavcodec/apedec.c         range_decode_update(ctx, 1, base_hi);
ctx               577 libavcodec/apedec.c         base_lo = range_decode_culfreq(ctx, 1 << bbits);
ctx               578 libavcodec/apedec.c         range_decode_update(ctx, 1, base_lo);
ctx               596 libavcodec/apedec.c static void decode_array_0000(APEContext *ctx, GetBitContext *gb,
ctx               604 libavcodec/apedec.c         out[i] = get_rice_ook(&ctx->gb, 10);
ctx               615 libavcodec/apedec.c         out[i] = get_rice_ook(&ctx->gb, rice->k);
ctx               629 libavcodec/apedec.c         if (get_bits_left(&ctx->gb) < 1) {
ctx               630 libavcodec/apedec.c             ctx->error = 1;
ctx               633 libavcodec/apedec.c         out[i] = get_rice_ook(&ctx->gb, rice->k);
ctx               654 libavcodec/apedec.c static void entropy_decode_mono_0000(APEContext *ctx, int blockstodecode)
ctx               656 libavcodec/apedec.c     decode_array_0000(ctx, &ctx->gb, ctx->decoded[0], &ctx->riceY,
ctx               660 libavcodec/apedec.c static void entropy_decode_stereo_0000(APEContext *ctx, int blockstodecode)
ctx               662 libavcodec/apedec.c     decode_array_0000(ctx, &ctx->gb, ctx->decoded[0], &ctx->riceY,
ctx               664 libavcodec/apedec.c     decode_array_0000(ctx, &ctx->gb, ctx->decoded[1], &ctx->riceX,
ctx               668 libavcodec/apedec.c static void entropy_decode_mono_3860(APEContext *ctx, int blockstodecode)
ctx               670 libavcodec/apedec.c     int32_t *decoded0 = ctx->decoded[0];
ctx               673 libavcodec/apedec.c         *decoded0++ = ape_decode_value_3860(ctx, &ctx->gb, &ctx->riceY);
ctx               676 libavcodec/apedec.c static void entropy_decode_stereo_3860(APEContext *ctx, int blockstodecode)
ctx               678 libavcodec/apedec.c     int32_t *decoded0 = ctx->decoded[0];
ctx               679 libavcodec/apedec.c     int32_t *decoded1 = ctx->decoded[1];
ctx               683 libavcodec/apedec.c         *decoded0++ = ape_decode_value_3860(ctx, &ctx->gb, &ctx->riceY);
ctx               685 libavcodec/apedec.c         *decoded1++ = ape_decode_value_3860(ctx, &ctx->gb, &ctx->riceX);
ctx               688 libavcodec/apedec.c static void entropy_decode_mono_3900(APEContext *ctx, int blockstodecode)
ctx               690 libavcodec/apedec.c     int32_t *decoded0 = ctx->decoded[0];
ctx               693 libavcodec/apedec.c         *decoded0++ = ape_decode_value_3900(ctx, &ctx->riceY);
ctx               696 libavcodec/apedec.c static void entropy_decode_stereo_3900(APEContext *ctx, int blockstodecode)
ctx               698 libavcodec/apedec.c     int32_t *decoded0 = ctx->decoded[0];
ctx               699 libavcodec/apedec.c     int32_t *decoded1 = ctx->decoded[1];
ctx               703 libavcodec/apedec.c         *decoded0++ = ape_decode_value_3900(ctx, &ctx->riceY);
ctx               704 libavcodec/apedec.c     range_dec_normalize(ctx);
ctx               706 libavcodec/apedec.c     ctx->ptr -= 1;
ctx               707 libavcodec/apedec.c     range_start_decoding(ctx);
ctx               709 libavcodec/apedec.c         *decoded1++ = ape_decode_value_3900(ctx, &ctx->riceX);
ctx               712 libavcodec/apedec.c static void entropy_decode_stereo_3930(APEContext *ctx, int blockstodecode)
ctx               714 libavcodec/apedec.c     int32_t *decoded0 = ctx->decoded[0];
ctx               715 libavcodec/apedec.c     int32_t *decoded1 = ctx->decoded[1];
ctx               718 libavcodec/apedec.c         *decoded0++ = ape_decode_value_3900(ctx, &ctx->riceY);
ctx               719 libavcodec/apedec.c         *decoded1++ = ape_decode_value_3900(ctx, &ctx->riceX);
ctx               723 libavcodec/apedec.c static void entropy_decode_mono_3990(APEContext *ctx, int blockstodecode)
ctx               725 libavcodec/apedec.c     int32_t *decoded0 = ctx->decoded[0];
ctx               728 libavcodec/apedec.c         *decoded0++ = ape_decode_value_3990(ctx, &ctx->riceY);
ctx               731 libavcodec/apedec.c static void entropy_decode_stereo_3990(APEContext *ctx, int blockstodecode)
ctx               733 libavcodec/apedec.c     int32_t *decoded0 = ctx->decoded[0];
ctx               734 libavcodec/apedec.c     int32_t *decoded1 = ctx->decoded[1];
ctx               737 libavcodec/apedec.c         *decoded0++ = ape_decode_value_3990(ctx, &ctx->riceY);
ctx               738 libavcodec/apedec.c         *decoded1++ = ape_decode_value_3990(ctx, &ctx->riceX);
ctx               742 libavcodec/apedec.c static int init_entropy_decoder(APEContext *ctx)
ctx               745 libavcodec/apedec.c     if (ctx->fileversion >= 3900) {
ctx               746 libavcodec/apedec.c         if (ctx->data_end - ctx->ptr < 6)
ctx               748 libavcodec/apedec.c         ctx->CRC = bytestream_get_be32(&ctx->ptr);
ctx               750 libavcodec/apedec.c         ctx->CRC = get_bits_long(&ctx->gb, 32);
ctx               754 libavcodec/apedec.c     ctx->frameflags = 0;
ctx               755 libavcodec/apedec.c     ctx->CRC_state = UINT32_MAX;
ctx               756 libavcodec/apedec.c     if ((ctx->fileversion > 3820) && (ctx->CRC & 0x80000000)) {
ctx               757 libavcodec/apedec.c         ctx->CRC &= ~0x80000000;
ctx               759 libavcodec/apedec.c         if (ctx->data_end - ctx->ptr < 6)
ctx               761 libavcodec/apedec.c         ctx->frameflags = bytestream_get_be32(&ctx->ptr);
ctx               765 libavcodec/apedec.c     ctx->riceX.k = 10;
ctx               766 libavcodec/apedec.c     ctx->riceX.ksum = (1 << ctx->riceX.k) * 16;
ctx               767 libavcodec/apedec.c     ctx->riceY.k = 10;
ctx               768 libavcodec/apedec.c     ctx->riceY.ksum = (1 << ctx->riceY.k) * 16;
ctx               770 libavcodec/apedec.c     if (ctx->fileversion >= 3900) {
ctx               772 libavcodec/apedec.c         ctx->ptr++;
ctx               774 libavcodec/apedec.c         range_start_decoding(ctx);
ctx               796 libavcodec/apedec.c static void init_predictor_decoder(APEContext *ctx)
ctx               798 libavcodec/apedec.c     APEPredictor *p = &ctx->predictor;
ctx               805 libavcodec/apedec.c     if (ctx->fileversion < 3930) {
ctx               806 libavcodec/apedec.c         if (ctx->compression_level == COMPRESSION_LEVEL_FAST) {
ctx               822 libavcodec/apedec.c     if (ctx->fileversion < 3930) {
ctx               959 libavcodec/apedec.c static void predictor_decode_stereo_3800(APEContext *ctx, int count)
ctx               961 libavcodec/apedec.c     APEPredictor *p = &ctx->predictor;
ctx               962 libavcodec/apedec.c     int32_t *decoded0 = ctx->decoded[0];
ctx               963 libavcodec/apedec.c     int32_t *decoded1 = ctx->decoded[1];
ctx               966 libavcodec/apedec.c     if (ctx->compression_level == COMPRESSION_LEVEL_HIGH) {
ctx               970 libavcodec/apedec.c     } else if (ctx->compression_level == COMPRESSION_LEVEL_EXTRA_HIGH) {
ctx               973 libavcodec/apedec.c         if (ctx->fileversion >= 3830) {
ctx               987 libavcodec/apedec.c         if (ctx->compression_level == COMPRESSION_LEVEL_FAST) {
ctx              1014 libavcodec/apedec.c static void predictor_decode_mono_3800(APEContext *ctx, int count)
ctx              1016 libavcodec/apedec.c     APEPredictor *p = &ctx->predictor;
ctx              1017 libavcodec/apedec.c     int32_t *decoded0 = ctx->decoded[0];
ctx              1020 libavcodec/apedec.c     if (ctx->compression_level == COMPRESSION_LEVEL_HIGH) {
ctx              1023 libavcodec/apedec.c     } else if (ctx->compression_level == COMPRESSION_LEVEL_EXTRA_HIGH) {
ctx              1026 libavcodec/apedec.c         if (ctx->fileversion >= 3830) {
ctx              1037 libavcodec/apedec.c         if (ctx->compression_level == COMPRESSION_LEVEL_FAST) {
ctx              1089 libavcodec/apedec.c static void predictor_decode_stereo_3930(APEContext *ctx, int count)
ctx              1091 libavcodec/apedec.c     APEPredictor *p = &ctx->predictor;
ctx              1092 libavcodec/apedec.c     int32_t *decoded0 = ctx->decoded[0];
ctx              1093 libavcodec/apedec.c     int32_t *decoded1 = ctx->decoded[1];
ctx              1095 libavcodec/apedec.c     ape_apply_filters(ctx, ctx->decoded[0], ctx->decoded[1], count);
ctx              1117 libavcodec/apedec.c static void predictor_decode_mono_3930(APEContext *ctx, int count)
ctx              1119 libavcodec/apedec.c     APEPredictor *p = &ctx->predictor;
ctx              1120 libavcodec/apedec.c     int32_t *decoded0 = ctx->decoded[0];
ctx              1122 libavcodec/apedec.c     ape_apply_filters(ctx, ctx->decoded[0], NULL, count);
ctx              1186 libavcodec/apedec.c static void predictor_decode_stereo_3950(APEContext *ctx, int count)
ctx              1188 libavcodec/apedec.c     APEPredictor *p = &ctx->predictor;
ctx              1189 libavcodec/apedec.c     int32_t *decoded0 = ctx->decoded[0];
ctx              1190 libavcodec/apedec.c     int32_t *decoded1 = ctx->decoded[1];
ctx              1192 libavcodec/apedec.c     ape_apply_filters(ctx, ctx->decoded[0], ctx->decoded[1], count);
ctx              1215 libavcodec/apedec.c static void predictor_decode_mono_3950(APEContext *ctx, int count)
ctx              1217 libavcodec/apedec.c     APEPredictor *p = &ctx->predictor;
ctx              1218 libavcodec/apedec.c     int32_t *decoded0 = ctx->decoded[0];
ctx              1221 libavcodec/apedec.c     ape_apply_filters(ctx, ctx->decoded[0], NULL, count);
ctx              1275 libavcodec/apedec.c static void init_filter(APEContext *ctx, APEFilter *f, int16_t *buf, int order)
ctx              1281 libavcodec/apedec.c static void do_apply_filter(APEContext *ctx, int version, APEFilter *f,
ctx              1289 libavcodec/apedec.c         res = ctx->adsp.scalarproduct_and_madd_int16(f->coeffs,
ctx              1343 libavcodec/apedec.c static void apply_filter(APEContext *ctx, APEFilter *f,
ctx              1347 libavcodec/apedec.c     do_apply_filter(ctx, ctx->fileversion, &f[0], data0, count, order, fracbits);
ctx              1349 libavcodec/apedec.c         do_apply_filter(ctx, ctx->fileversion, &f[1], data1, count, order, fracbits);
ctx              1352 libavcodec/apedec.c static void ape_apply_filters(APEContext *ctx, int32_t *decoded0,
ctx              1358 libavcodec/apedec.c         if (!ape_filter_orders[ctx->fset][i])
ctx              1360 libavcodec/apedec.c         apply_filter(ctx, ctx->filters[i], decoded0, decoded1, count,
ctx              1361 libavcodec/apedec.c                      ape_filter_orders[ctx->fset][i],
ctx              1362 libavcodec/apedec.c                      ape_filter_fracbits[ctx->fset][i]);
ctx              1366 libavcodec/apedec.c static int init_frame_decoder(APEContext *ctx)
ctx              1369 libavcodec/apedec.c     if ((ret = init_entropy_decoder(ctx)) < 0)
ctx              1371 libavcodec/apedec.c     init_predictor_decoder(ctx);
ctx              1374 libavcodec/apedec.c         if (!ape_filter_orders[ctx->fset][i])
ctx              1376 libavcodec/apedec.c         init_filter(ctx, ctx->filters[i], ctx->filterbuf[i],
ctx              1377 libavcodec/apedec.c                     ape_filter_orders[ctx->fset][i]);
ctx              1382 libavcodec/apedec.c static void ape_unpack_mono(APEContext *ctx, int count)
ctx              1384 libavcodec/apedec.c     if (ctx->frameflags & APE_FRAMECODE_STEREO_SILENCE) {
ctx              1386 libavcodec/apedec.c         av_log(ctx->avctx, AV_LOG_DEBUG, "pure silence mono\n");
ctx              1390 libavcodec/apedec.c     ctx->entropy_decode_mono(ctx, count);
ctx              1391 libavcodec/apedec.c     if (ctx->error)
ctx              1395 libavcodec/apedec.c     ctx->predictor_decode_mono(ctx, count);
ctx              1398 libavcodec/apedec.c     if (ctx->channels == 2) {
ctx              1399 libavcodec/apedec.c         memcpy(ctx->decoded[1], ctx->decoded[0], count * sizeof(*ctx->decoded[1]));
ctx              1403 libavcodec/apedec.c static void ape_unpack_stereo(APEContext *ctx, int count)
ctx              1406 libavcodec/apedec.c     int32_t *decoded0 = ctx->decoded[0];
ctx              1407 libavcodec/apedec.c     int32_t *decoded1 = ctx->decoded[1];
ctx              1409 libavcodec/apedec.c     if ((ctx->frameflags & APE_FRAMECODE_STEREO_SILENCE) == APE_FRAMECODE_STEREO_SILENCE) {
ctx              1411 libavcodec/apedec.c         av_log(ctx->avctx, AV_LOG_DEBUG, "pure silence stereo\n");
ctx              1415 libavcodec/apedec.c     ctx->entropy_decode_stereo(ctx, count);
ctx              1416 libavcodec/apedec.c     if (ctx->error)
ctx              1420 libavcodec/apedec.c     ctx->predictor_decode_stereo(ctx, count);
ctx               109 libavcodec/aptxdec.c static int aptx_decode_samples(AptXContext *ctx,
ctx               116 libavcodec/aptxdec.c         ff_aptx_generate_dither(&ctx->channels[channel]);
ctx               118 libavcodec/aptxdec.c         if (ctx->hd)
ctx               119 libavcodec/aptxdec.c             aptxhd_unpack_codeword(&ctx->channels[channel],
ctx               122 libavcodec/aptxdec.c             aptx_unpack_codeword(&ctx->channels[channel],
ctx               124 libavcodec/aptxdec.c         ff_aptx_invert_quantize_and_prediction(&ctx->channels[channel], ctx->hd);
ctx               127 libavcodec/aptxdec.c     ret = aptx_check_parity(ctx->channels, &ctx->sync_idx);
ctx               130 libavcodec/aptxdec.c         aptx_decode_channel(&ctx->channels[channel], samples[channel]);
ctx               186 libavcodec/aptxenc.c static void aptx_encode_samples(AptXContext *ctx,
ctx               192 libavcodec/aptxenc.c         aptx_encode_channel(&ctx->channels[channel], samples[channel], ctx->hd);
ctx               194 libavcodec/aptxenc.c     aptx_insert_sync(ctx->channels, &ctx->sync_idx);
ctx               197 libavcodec/aptxenc.c         ff_aptx_invert_quantize_and_prediction(&ctx->channels[channel], ctx->hd);
ctx               198 libavcodec/aptxenc.c         if (ctx->hd)
ctx               200 libavcodec/aptxenc.c                     aptxhd_pack_codeword(&ctx->channels[channel]));
ctx               203 libavcodec/aptxenc.c                     aptx_pack_codeword(&ctx->channels[channel]));
ctx                27 libavcodec/arm/videodsp_arm.h void ff_videodsp_init_armv5te(VideoDSPContext* ctx, int bpc);
ctx                26 libavcodec/arm/videodsp_init_arm.c av_cold void ff_videodsp_init_arm(VideoDSPContext *ctx, int bpc)
ctx                29 libavcodec/arm/videodsp_init_arm.c     if (have_armv5te(cpu_flags)) ff_videodsp_init_armv5te(ctx, bpc);
ctx                28 libavcodec/arm/videodsp_init_armv5te.c av_cold void ff_videodsp_init_armv5te(VideoDSPContext *ctx, int bpc)
ctx                31 libavcodec/arm/videodsp_init_armv5te.c     ctx->prefetch = ff_prefetch_arm;
ctx               205 libavcodec/ass_split.c static uint8_t *realloc_section_array(ASSSplitContext *ctx)
ctx               207 libavcodec/ass_split.c     const ASSSection *section = &ass_sections[ctx->current_section];
ctx               208 libavcodec/ass_split.c     int *count = (int *)((uint8_t *)&ctx->ass + section->offset_count);
ctx               209 libavcodec/ass_split.c     void **section_ptr = (void **)((uint8_t *)&ctx->ass + section->offset);
ctx               247 libavcodec/ass_split.c static const char *ass_split_section(ASSSplitContext *ctx, const char *buf)
ctx               249 libavcodec/ass_split.c     const ASSSection *section = &ass_sections[ctx->current_section];
ctx               250 libavcodec/ass_split.c     int *number = &ctx->field_number[ctx->current_section];
ctx               251 libavcodec/ass_split.c     int *order = ctx->field_order[ctx->current_section];
ctx               256 libavcodec/ass_split.c             ctx->current_section = -1;
ctx               268 libavcodec/ass_split.c                     ctx->current_section = i;
ctx               269 libavcodec/ass_split.c                     section = &ass_sections[ctx->current_section];
ctx               270 libavcodec/ass_split.c                     number = &ctx->field_number[ctx->current_section];
ctx               271 libavcodec/ass_split.c                     order = ctx->field_order[ctx->current_section];
ctx               295 libavcodec/ass_split.c                 ctx->field_order[ctx->current_section] = order;
ctx               302 libavcodec/ass_split.c                 uint8_t *ptr, *struct_ptr = realloc_section_array(ctx);
ctx               310 libavcodec/ass_split.c                     ctx->field_order[ctx->current_section] = order;
ctx               334 libavcodec/ass_split.c                         uint8_t *ptr = (uint8_t *)&ctx->ass + section->offset;
ctx               349 libavcodec/ass_split.c static int ass_split(ASSSplitContext *ctx, const char *buf)
ctx               354 libavcodec/ass_split.c     if (ctx->current_section >= 0)
ctx               355 libavcodec/ass_split.c         buf = ass_split_section(ctx, buf);
ctx               363 libavcodec/ass_split.c                     ctx->current_section = i;
ctx               364 libavcodec/ass_split.c                     buf = ass_split_section(ctx, buf);
ctx               376 libavcodec/ass_split.c     ASSSplitContext *ctx = av_mallocz(sizeof(*ctx));
ctx               377 libavcodec/ass_split.c     if (!ctx)
ctx               381 libavcodec/ass_split.c     ctx->current_section = -1;
ctx               382 libavcodec/ass_split.c     if (ass_split(ctx, buf) < 0) {
ctx               383 libavcodec/ass_split.c         ff_ass_split_free(ctx);
ctx               386 libavcodec/ass_split.c     return ctx;
ctx               389 libavcodec/ass_split.c static void free_section(ASSSplitContext *ctx, const ASSSection *section)
ctx               391 libavcodec/ass_split.c     uint8_t *ptr = (uint8_t *)&ctx->ass + section->offset;
ctx               396 libavcodec/ass_split.c         count = (int *)((uint8_t *)&ctx->ass + section->offset_count);
ctx               410 libavcodec/ass_split.c         av_freep((uint8_t *)&ctx->ass + section->offset);
ctx               413 libavcodec/ass_split.c ASSDialog *ff_ass_split_dialog(ASSSplitContext *ctx, const char *buf,
ctx               421 libavcodec/ass_split.c                 free_section(ctx, &ass_sections[i]);
ctx               424 libavcodec/ass_split.c     count = ctx->ass.dialogs_count;
ctx               425 libavcodec/ass_split.c     if (ass_split(ctx, buf) == 0)
ctx               426 libavcodec/ass_split.c         dialog = ctx->ass.dialogs + count;
ctx               428 libavcodec/ass_split.c         *number = ctx->ass.dialogs_count - count;
ctx               444 libavcodec/ass_split.c ASSDialog *ff_ass_split_dialog2(ASSSplitContext *ctx, const char *buf)
ctx               481 libavcodec/ass_split.c void ff_ass_split_free(ASSSplitContext *ctx)
ctx               483 libavcodec/ass_split.c     if (ctx) {
ctx               486 libavcodec/ass_split.c             free_section(ctx, &ass_sections[i]);
ctx               487 libavcodec/ass_split.c             av_freep(&(ctx->field_order[i]));
ctx               489 libavcodec/ass_split.c         av_free(ctx);
ctx               589 libavcodec/ass_split.c ASSStyle *ff_ass_style_get(ASSSplitContext *ctx, const char *style)
ctx               591 libavcodec/ass_split.c     ASS *ass = &ctx->ass;
ctx               125 libavcodec/ass_split.h ASSDialog *ff_ass_split_dialog(ASSSplitContext *ctx, const char *buf,
ctx               140 libavcodec/ass_split.h ASSDialog *ff_ass_split_dialog2(ASSSplitContext *ctx, const char *buf);
ctx               147 libavcodec/ass_split.h void ff_ass_split_free(ASSSplitContext *ctx);
ctx               205 libavcodec/ass_split.h ASSStyle *ff_ass_style_get(ASSSplitContext *ctx, const char *style);
ctx               222 libavcodec/atrac3plus.c                            Atrac3pChanUnitCtx *ctx, AVCodecContext *avctx)
ctx               226 libavcodec/atrac3plus.c         chan->num_coded_vals = ctx->num_quant_units;
ctx               229 libavcodec/atrac3plus.c         if (chan->num_coded_vals > ctx->num_quant_units) {
ctx               251 libavcodec/atrac3plus.c static int add_wordlen_weights(Atrac3pChanUnitCtx *ctx,
ctx               259 libavcodec/atrac3plus.c     for (i = 0; i < ctx->num_quant_units; i++) {
ctx               281 libavcodec/atrac3plus.c static int subtract_sf_weights(Atrac3pChanUnitCtx *ctx,
ctx               288 libavcodec/atrac3plus.c     for (i = 0; i < ctx->used_quant_units; i++) {
ctx               335 libavcodec/atrac3plus.c static int decode_channel_wordlen(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx               341 libavcodec/atrac3plus.c     Atrac3pChanParams *chan     = &ctx->channels[ch_num];
ctx               342 libavcodec/atrac3plus.c     Atrac3pChanParams *ref_chan = &ctx->channels[0];
ctx               348 libavcodec/atrac3plus.c         for (i = 0; i < ctx->num_quant_units; i++)
ctx               353 libavcodec/atrac3plus.c             if ((ret = num_coded_units(gb, chan, ctx, avctx)) < 0)
ctx               366 libavcodec/atrac3plus.c             if ((ret = num_coded_units(gb, chan, ctx, avctx)) < 0)
ctx               389 libavcodec/atrac3plus.c         if ((ret = num_coded_units(gb, chan, ctx, avctx)) < 0)
ctx               436 libavcodec/atrac3plus.c         if ((ret = num_coded_units(gb, chan, ctx, avctx)) < 0)
ctx               454 libavcodec/atrac3plus.c         for (i = chan->num_coded_vals; i < ctx->num_quant_units; i++)
ctx               458 libavcodec/atrac3plus.c                      : ctx->num_quant_units - chan->split_point;
ctx               468 libavcodec/atrac3plus.c         return add_wordlen_weights(ctx, chan, weight_idx, avctx);
ctx               482 libavcodec/atrac3plus.c static int decode_channel_sf_idx(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx               488 libavcodec/atrac3plus.c     Atrac3pChanParams *chan     = &ctx->channels[ch_num];
ctx               489 libavcodec/atrac3plus.c     Atrac3pChanParams *ref_chan = &ctx->channels[0];
ctx               493 libavcodec/atrac3plus.c         for (i = 0; i < ctx->used_quant_units; i++)
ctx               500 libavcodec/atrac3plus.c             for (i = 0; i < ctx->used_quant_units; i++) {
ctx               507 libavcodec/atrac3plus.c                 UNPACK_SF_VQ_SHAPE(gb, chan->qu_sf_idx, ctx->used_quant_units);
ctx               518 libavcodec/atrac3plus.c                 for (i = num_long_vals; i < ctx->used_quant_units; i++)
ctx               525 libavcodec/atrac3plus.c                 if (num_long_vals > ctx->used_quant_units || delta_bits == 7) {
ctx               536 libavcodec/atrac3plus.c                 for (i = num_long_vals; i < ctx->used_quant_units; i++)
ctx               549 libavcodec/atrac3plus.c             for (i = 1; i < ctx->used_quant_units; i++) {
ctx               557 libavcodec/atrac3plus.c             UNPACK_SF_VQ_SHAPE(gb, chan->qu_sf_idx, ctx->used_quant_units);
ctx               559 libavcodec/atrac3plus.c             for (i = 0; i < ctx->used_quant_units; i++) {
ctx               569 libavcodec/atrac3plus.c             for (i = 0; i < ctx->used_quant_units; i++)
ctx               579 libavcodec/atrac3plus.c                 UNPACK_SF_VQ_SHAPE(gb, chan->qu_sf_idx, ctx->used_quant_units);
ctx               584 libavcodec/atrac3plus.c                 for (i = 1; i < ctx->used_quant_units; i++) {
ctx               593 libavcodec/atrac3plus.c                 for (i = 1; i < ctx->used_quant_units; i++) {
ctx               603 libavcodec/atrac3plus.c         return subtract_sf_weights(ctx, chan, weight_idx, avctx);
ctx               617 libavcodec/atrac3plus.c static int decode_quant_wordlen(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx               623 libavcodec/atrac3plus.c         memset(ctx->channels[ch_num].qu_wordlen, 0,
ctx               624 libavcodec/atrac3plus.c                sizeof(ctx->channels[ch_num].qu_wordlen));
ctx               626 libavcodec/atrac3plus.c         if ((ret = decode_channel_wordlen(gb, ctx, ch_num, avctx)) < 0)
ctx               632 libavcodec/atrac3plus.c     for (i = ctx->num_quant_units - 1; i >= 0; i--)
ctx               633 libavcodec/atrac3plus.c         if (ctx->channels[0].qu_wordlen[i] ||
ctx               634 libavcodec/atrac3plus.c             (num_channels == 2 && ctx->channels[1].qu_wordlen[i]))
ctx               636 libavcodec/atrac3plus.c     ctx->used_quant_units = i + 1;
ctx               650 libavcodec/atrac3plus.c static int decode_scale_factors(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx               655 libavcodec/atrac3plus.c     if (!ctx->used_quant_units)
ctx               659 libavcodec/atrac3plus.c         memset(ctx->channels[ch_num].qu_sf_idx, 0,
ctx               660 libavcodec/atrac3plus.c                sizeof(ctx->channels[ch_num].qu_sf_idx));
ctx               662 libavcodec/atrac3plus.c         if ((ret = decode_channel_sf_idx(gb, ctx, ch_num, avctx)) < 0)
ctx               677 libavcodec/atrac3plus.c static int get_num_ct_values(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx               684 libavcodec/atrac3plus.c         if (num_coded_vals > ctx->used_quant_units) {
ctx               691 libavcodec/atrac3plus.c         return ctx->used_quant_units;
ctx               695 libavcodec/atrac3plus.c     num_vals = get_num_ct_values(gb, ctx, avctx);                       \
ctx               730 libavcodec/atrac3plus.c static int decode_channel_code_tab(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx               734 libavcodec/atrac3plus.c     int mask = ctx->use_full_table ? 7 : 3; /* mask for modular arithmetic */
ctx               736 libavcodec/atrac3plus.c     Atrac3pChanParams *chan     = &ctx->channels[ch_num];
ctx               737 libavcodec/atrac3plus.c     Atrac3pChanParams *ref_chan = &ctx->channels[0];
ctx               743 libavcodec/atrac3plus.c         num_bits = ctx->use_full_table + 2;
ctx               747 libavcodec/atrac3plus.c         vlc_tab = ctx->use_full_table ? &ct_vlc_tabs[1]
ctx               752 libavcodec/atrac3plus.c         if (ctx->use_full_table) {
ctx               764 libavcodec/atrac3plus.c             vlc_tab = ctx->use_full_table ? &ct_vlc_tabs[3]
ctx               783 libavcodec/atrac3plus.c static int decode_code_table_indexes(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx               788 libavcodec/atrac3plus.c     if (!ctx->used_quant_units)
ctx               791 libavcodec/atrac3plus.c     ctx->use_full_table = get_bits1(gb);
ctx               794 libavcodec/atrac3plus.c         memset(ctx->channels[ch_num].qu_tab_idx, 0,
ctx               795 libavcodec/atrac3plus.c                sizeof(ctx->channels[ch_num].qu_tab_idx));
ctx               797 libavcodec/atrac3plus.c         if ((ret = decode_channel_code_tab(gb, ctx, ch_num, avctx)) < 0)
ctx               855 libavcodec/atrac3plus.c static void decode_spectrum(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx               863 libavcodec/atrac3plus.c         chan = &ctx->channels[ch_num];
ctx               870 libavcodec/atrac3plus.c         for (qu = 0; qu < ctx->used_quant_units; qu++) {
ctx               877 libavcodec/atrac3plus.c                 if (!ctx->use_full_table)
ctx               890 libavcodec/atrac3plus.c             } else if (ch_num && ctx->channels[0].qu_wordlen[qu] && !codetab) {
ctx               893 libavcodec/atrac3plus.c                        &ctx->channels[0].spectrum[ff_atrac3p_qu_to_spec_pos[qu]],
ctx               896 libavcodec/atrac3plus.c                 chan->qu_wordlen[qu] = ctx->channels[0].qu_wordlen[qu];
ctx               904 libavcodec/atrac3plus.c         if (ctx->used_quant_units > 2) {
ctx               905 libavcodec/atrac3plus.c             num_specs = atrac3p_subband_to_num_powgrps[ctx->num_coded_subbands - 1];
ctx               950 libavcodec/atrac3plus.c static void decode_window_shape(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx               956 libavcodec/atrac3plus.c         get_subband_flags(gb, ctx->channels[ch_num].wnd_shape,
ctx               957 libavcodec/atrac3plus.c                           ctx->num_subbands);
ctx               969 libavcodec/atrac3plus.c static int decode_gainc_npoints(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx               973 libavcodec/atrac3plus.c     Atrac3pChanParams *chan     = &ctx->channels[ch_num];
ctx               974 libavcodec/atrac3plus.c     Atrac3pChanParams *ref_chan = &ctx->channels[0];
ctx              1050 libavcodec/atrac3plus.c                                       Atrac3pChanUnitCtx *ctx,
ctx              1075 libavcodec/atrac3plus.c static int decode_gainc_levels(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx              1079 libavcodec/atrac3plus.c     Atrac3pChanParams *chan     = &ctx->channels[ch_num];
ctx              1080 libavcodec/atrac3plus.c     Atrac3pChanParams *ref_chan = &ctx->channels[0];
ctx              1100 libavcodec/atrac3plus.c                 gainc_level_mode1m(gb, ctx, &chan->gain_data[sb]);
ctx              1108 libavcodec/atrac3plus.c                         gainc_level_mode1m(gb, ctx, &chan->gain_data[sb]);
ctx              1115 libavcodec/atrac3plus.c                 gainc_level_mode1m(gb, ctx, &chan->gain_data[0]);
ctx              1157 libavcodec/atrac3plus.c static inline void gainc_loc_mode0(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx              1180 libavcodec/atrac3plus.c static inline void gainc_loc_mode1(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx              1212 libavcodec/atrac3plus.c static int decode_gainc_loc_codes(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx              1219 libavcodec/atrac3plus.c     Atrac3pChanParams *chan     = &ctx->channels[ch_num];
ctx              1220 libavcodec/atrac3plus.c     Atrac3pChanParams *ref_chan = &ctx->channels[0];
ctx              1226 libavcodec/atrac3plus.c                 gainc_loc_mode0(gb, ctx, &chan->gain_data[sb], i);
ctx              1253 libavcodec/atrac3plus.c                                 gainc_loc_mode0(gb, ctx, dst, i);  // direct coding
ctx              1270 libavcodec/atrac3plus.c                 gainc_loc_mode1(gb, ctx, &chan->gain_data[sb]);
ctx              1280 libavcodec/atrac3plus.c                     gainc_loc_mode1(gb, ctx, dst);
ctx              1288 libavcodec/atrac3plus.c                 gainc_loc_mode0(gb, ctx, &chan->gain_data[0], i);
ctx              1323 libavcodec/atrac3plus.c                         gainc_loc_mode0(gb, ctx, &chan->gain_data[sb], i);
ctx              1366 libavcodec/atrac3plus.c static int decode_gainc_data(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx              1372 libavcodec/atrac3plus.c         memset(ctx->channels[ch_num].gain_data, 0,
ctx              1373 libavcodec/atrac3plus.c                sizeof(*ctx->channels[ch_num].gain_data) * ATRAC3P_SUBBANDS);
ctx              1378 libavcodec/atrac3plus.c                 ctx->channels[ch_num].num_gain_subbands = get_bits(gb, 4) + 1;
ctx              1380 libavcodec/atrac3plus.c                 ctx->channels[ch_num].num_gain_subbands = coded_subbands;
ctx              1382 libavcodec/atrac3plus.c             if ((ret = decode_gainc_npoints(gb, ctx, ch_num, coded_subbands)) < 0 ||
ctx              1383 libavcodec/atrac3plus.c                 (ret = decode_gainc_levels(gb, ctx, ch_num, coded_subbands))  < 0 ||
ctx              1384 libavcodec/atrac3plus.c                 (ret = decode_gainc_loc_codes(gb, ctx, ch_num, coded_subbands, avctx)) < 0)
ctx              1388 libavcodec/atrac3plus.c                 for (sb = coded_subbands; sb < ctx->channels[ch_num].num_gain_subbands; sb++)
ctx              1389 libavcodec/atrac3plus.c                     ctx->channels[ch_num].gain_data[sb] =
ctx              1390 libavcodec/atrac3plus.c                         ctx->channels[ch_num].gain_data[sb - 1];
ctx              1393 libavcodec/atrac3plus.c             ctx->channels[ch_num].num_gain_subbands = 0;
ctx              1409 libavcodec/atrac3plus.c static void decode_tones_envelope(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx              1413 libavcodec/atrac3plus.c     Atrac3pWavesData *dst = ctx->channels[ch_num].tones_info;
ctx              1414 libavcodec/atrac3plus.c     Atrac3pWavesData *ref = ctx->channels[0].tones_info;
ctx              1417 libavcodec/atrac3plus.c         for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) {
ctx              1428 libavcodec/atrac3plus.c         for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) {
ctx              1450 libavcodec/atrac3plus.c static int decode_band_numwavs(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx              1455 libavcodec/atrac3plus.c     Atrac3pWavesData *dst = ctx->channels[ch_num].tones_info;
ctx              1456 libavcodec/atrac3plus.c     Atrac3pWavesData *ref = ctx->channels[0].tones_info;
ctx              1461 libavcodec/atrac3plus.c         for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++)
ctx              1466 libavcodec/atrac3plus.c         for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++)
ctx              1473 libavcodec/atrac3plus.c         for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++)
ctx              1482 libavcodec/atrac3plus.c         for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++)
ctx              1489 libavcodec/atrac3plus.c     for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++)
ctx              1491 libavcodec/atrac3plus.c             if (ctx->waves_info->tones_index + dst[sb].num_wavs > 48) {
ctx              1494 libavcodec/atrac3plus.c                        ctx->waves_info->tones_index + dst[sb].num_wavs,
ctx              1498 libavcodec/atrac3plus.c             dst[sb].start_index           = ctx->waves_info->tones_index;
ctx              1499 libavcodec/atrac3plus.c             ctx->waves_info->tones_index += dst[sb].num_wavs;
ctx              1514 libavcodec/atrac3plus.c static void decode_tones_frequency(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx              1519 libavcodec/atrac3plus.c     Atrac3pWavesData *dst = ctx->channels[ch_num].tones_info;
ctx              1520 libavcodec/atrac3plus.c     Atrac3pWavesData *ref = ctx->channels[0].tones_info;
ctx              1523 libavcodec/atrac3plus.c         for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) {
ctx              1526 libavcodec/atrac3plus.c             iwav      = &ctx->waves_info->waves[dst[sb].start_index];
ctx              1548 libavcodec/atrac3plus.c         for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) {
ctx              1551 libavcodec/atrac3plus.c             iwav = &ctx->waves_info->waves[ref[sb].start_index];
ctx              1552 libavcodec/atrac3plus.c             owav = &ctx->waves_info->waves[dst[sb].start_index];
ctx              1574 libavcodec/atrac3plus.c static void decode_tones_amplitude(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx              1580 libavcodec/atrac3plus.c     Atrac3pWavesData *dst = ctx->channels[ch_num].tones_info;
ctx              1581 libavcodec/atrac3plus.c     Atrac3pWavesData *ref = ctx->channels[0].tones_info;
ctx              1584 libavcodec/atrac3plus.c         for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) {
ctx              1587 libavcodec/atrac3plus.c             wsrc = &ctx->waves_info->waves[dst[sb].start_index];
ctx              1588 libavcodec/atrac3plus.c             wref = &ctx->waves_info->waves[ref[sb].start_index];
ctx              1612 libavcodec/atrac3plus.c         for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) {
ctx              1615 libavcodec/atrac3plus.c             if (ctx->waves_info->amplitude_mode)
ctx              1617 libavcodec/atrac3plus.c                     ctx->waves_info->waves[dst[sb].start_index + i].amp_sf = get_bits(gb, 6);
ctx              1619 libavcodec/atrac3plus.c                 ctx->waves_info->waves[dst[sb].start_index].amp_sf = get_bits(gb, 6);
ctx              1623 libavcodec/atrac3plus.c         for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) {
ctx              1626 libavcodec/atrac3plus.c             if (ctx->waves_info->amplitude_mode)
ctx              1628 libavcodec/atrac3plus.c                     ctx->waves_info->waves[dst[sb].start_index + i].amp_sf =
ctx              1632 libavcodec/atrac3plus.c                 ctx->waves_info->waves[dst[sb].start_index].amp_sf =
ctx              1638 libavcodec/atrac3plus.c         for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) {
ctx              1646 libavcodec/atrac3plus.c                         ctx->waves_info->waves[refwaves[dst[sb].start_index + i]].amp_sf : 34;
ctx              1647 libavcodec/atrac3plus.c                 ctx->waves_info->waves[dst[sb].start_index + i].amp_sf = (pred + delta) & 0x3F;
ctx              1652 libavcodec/atrac3plus.c         for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) {
ctx              1656 libavcodec/atrac3plus.c                 ctx->waves_info->waves[dst[sb].start_index + i].amp_sf =
ctx              1658 libavcodec/atrac3plus.c                     ? ctx->waves_info->waves[refwaves[dst[sb].start_index + i]].amp_sf
ctx              1674 libavcodec/atrac3plus.c static void decode_tones_phase(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx              1679 libavcodec/atrac3plus.c     Atrac3pWavesData *dst = ctx->channels[ch_num].tones_info;
ctx              1681 libavcodec/atrac3plus.c     for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) {
ctx              1684 libavcodec/atrac3plus.c         wparam = &ctx->waves_info->waves[dst[sb].start_index];
ctx              1699 libavcodec/atrac3plus.c static int decode_tones_info(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx              1706 libavcodec/atrac3plus.c         memset(ctx->channels[ch_num].tones_info, 0,
ctx              1707 libavcodec/atrac3plus.c                sizeof(*ctx->channels[ch_num].tones_info) * ATRAC3P_SUBBANDS);
ctx              1709 libavcodec/atrac3plus.c     ctx->waves_info->tones_present = get_bits1(gb);
ctx              1710 libavcodec/atrac3plus.c     if (!ctx->waves_info->tones_present)
ctx              1713 libavcodec/atrac3plus.c     memset(ctx->waves_info->waves, 0, sizeof(ctx->waves_info->waves));
ctx              1715 libavcodec/atrac3plus.c     ctx->waves_info->amplitude_mode = get_bits1(gb);
ctx              1716 libavcodec/atrac3plus.c     if (!ctx->waves_info->amplitude_mode) {
ctx              1721 libavcodec/atrac3plus.c     ctx->waves_info->num_tone_bands =
ctx              1726 libavcodec/atrac3plus.c         get_subband_flags(gb, ctx->waves_info->tone_sharing, ctx->waves_info->num_tone_bands);
ctx              1727 libavcodec/atrac3plus.c         get_subband_flags(gb, ctx->waves_info->tone_master,  ctx->waves_info->num_tone_bands);
ctx              1728 libavcodec/atrac3plus.c         get_subband_flags(gb, ctx->waves_info->invert_phase, ctx->waves_info->num_tone_bands);
ctx              1731 libavcodec/atrac3plus.c     ctx->waves_info->tones_index = 0;
ctx              1734 libavcodec/atrac3plus.c         for (i = 0; i < ctx->waves_info->num_tone_bands; i++)
ctx              1735 libavcodec/atrac3plus.c             band_has_tones[i] = !ch_num ? 1 : !ctx->waves_info->tone_sharing[i];
ctx              1737 libavcodec/atrac3plus.c         decode_tones_envelope(gb, ctx, ch_num, band_has_tones);
ctx              1738 libavcodec/atrac3plus.c         if ((ret = decode_band_numwavs(gb, ctx, ch_num, band_has_tones,
ctx              1742 libavcodec/atrac3plus.c         decode_tones_frequency(gb, ctx, ch_num, band_has_tones);
ctx              1743 libavcodec/atrac3plus.c         decode_tones_amplitude(gb, ctx, ch_num, band_has_tones);
ctx              1744 libavcodec/atrac3plus.c         decode_tones_phase(gb, ctx, ch_num, band_has_tones);
ctx              1748 libavcodec/atrac3plus.c         for (i = 0; i < ctx->waves_info->num_tone_bands; i++) {
ctx              1749 libavcodec/atrac3plus.c             if (ctx->waves_info->tone_sharing[i])
ctx              1750 libavcodec/atrac3plus.c                 ctx->channels[1].tones_info[i] = ctx->channels[0].tones_info[i];
ctx              1752 libavcodec/atrac3plus.c             if (ctx->waves_info->tone_master[i])
ctx              1753 libavcodec/atrac3plus.c                 FFSWAP(Atrac3pWavesData, ctx->channels[0].tones_info[i],
ctx              1754 libavcodec/atrac3plus.c                        ctx->channels[1].tones_info[i]);
ctx              1761 libavcodec/atrac3plus.c int ff_atrac3p_decode_channel_unit(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx              1767 libavcodec/atrac3plus.c     ctx->num_quant_units = get_bits(gb, 5) + 1;
ctx              1768 libavcodec/atrac3plus.c     if (ctx->num_quant_units > 28 && ctx->num_quant_units < 32) {
ctx              1771 libavcodec/atrac3plus.c                ctx->num_quant_units);
ctx              1775 libavcodec/atrac3plus.c     ctx->mute_flag = get_bits1(gb);
ctx              1778 libavcodec/atrac3plus.c     if ((ret = decode_quant_wordlen(gb, ctx, num_channels, avctx)) < 0)
ctx              1781 libavcodec/atrac3plus.c     ctx->num_subbands       = atrac3p_qu_to_subband[ctx->num_quant_units - 1] + 1;
ctx              1782 libavcodec/atrac3plus.c     ctx->num_coded_subbands = ctx->used_quant_units
ctx              1783 libavcodec/atrac3plus.c                               ? atrac3p_qu_to_subband[ctx->used_quant_units - 1] + 1
ctx              1786 libavcodec/atrac3plus.c     if ((ret = decode_scale_factors(gb, ctx, num_channels, avctx)) < 0)
ctx              1789 libavcodec/atrac3plus.c     if ((ret = decode_code_table_indexes(gb, ctx, num_channels, avctx)) < 0)
ctx              1792 libavcodec/atrac3plus.c     decode_spectrum(gb, ctx, num_channels, avctx);
ctx              1795 libavcodec/atrac3plus.c         get_subband_flags(gb, ctx->swap_channels, ctx->num_coded_subbands);
ctx              1796 libavcodec/atrac3plus.c         get_subband_flags(gb, ctx->negate_coeffs, ctx->num_coded_subbands);
ctx              1799 libavcodec/atrac3plus.c     decode_window_shape(gb, ctx, num_channels);
ctx              1801 libavcodec/atrac3plus.c     if ((ret = decode_gainc_data(gb, ctx, num_channels, avctx)) < 0)
ctx              1804 libavcodec/atrac3plus.c     if ((ret = decode_tones_info(gb, ctx, num_channels, avctx)) < 0)
ctx              1808 libavcodec/atrac3plus.c     ctx->noise_present = get_bits1(gb);
ctx              1809 libavcodec/atrac3plus.c     if (ctx->noise_present) {
ctx              1810 libavcodec/atrac3plus.c         ctx->noise_level_index = get_bits(gb, 4);
ctx              1811 libavcodec/atrac3plus.c         ctx->noise_table_index = get_bits(gb, 4);
ctx               170 libavcodec/atrac3plus.h int ff_atrac3p_decode_channel_unit(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx               208 libavcodec/atrac3plus.h void ff_atrac3p_power_compensation(Atrac3pChanUnitCtx *ctx, AVFloatDSPContext *fdsp,
ctx                70 libavcodec/atrac3plusdec.c     ATRAC3PContext *ctx = avctx->priv_data;
ctx                72 libavcodec/atrac3plusdec.c     av_freep(&ctx->ch_units);
ctx                73 libavcodec/atrac3plusdec.c     av_freep(&ctx->fdsp);
ctx                75 libavcodec/atrac3plusdec.c     ff_mdct_end(&ctx->mdct_ctx);
ctx                76 libavcodec/atrac3plusdec.c     ff_mdct_end(&ctx->ipqf_dct_ctx);
ctx                81 libavcodec/atrac3plusdec.c static av_cold int set_channel_params(ATRAC3PContext *ctx,
ctx                84 libavcodec/atrac3plusdec.c     memset(ctx->channel_blocks, 0, sizeof(ctx->channel_blocks));
ctx                91 libavcodec/atrac3plusdec.c         ctx->num_channel_blocks = 1;
ctx                92 libavcodec/atrac3plusdec.c         ctx->channel_blocks[0]  = CH_UNIT_MONO;
ctx                96 libavcodec/atrac3plusdec.c         ctx->num_channel_blocks = 1;
ctx                97 libavcodec/atrac3plusdec.c         ctx->channel_blocks[0]  = CH_UNIT_STEREO;
ctx               101 libavcodec/atrac3plusdec.c         ctx->num_channel_blocks = 2;
ctx               102 libavcodec/atrac3plusdec.c         ctx->channel_blocks[0]  = CH_UNIT_STEREO;
ctx               103 libavcodec/atrac3plusdec.c         ctx->channel_blocks[1]  = CH_UNIT_MONO;
ctx               107 libavcodec/atrac3plusdec.c         ctx->num_channel_blocks = 3;
ctx               108 libavcodec/atrac3plusdec.c         ctx->channel_blocks[0]  = CH_UNIT_STEREO;
ctx               109 libavcodec/atrac3plusdec.c         ctx->channel_blocks[1]  = CH_UNIT_MONO;
ctx               110 libavcodec/atrac3plusdec.c         ctx->channel_blocks[2]  = CH_UNIT_MONO;
ctx               114 libavcodec/atrac3plusdec.c         ctx->num_channel_blocks = 4;
ctx               115 libavcodec/atrac3plusdec.c         ctx->channel_blocks[0]  = CH_UNIT_STEREO;
ctx               116 libavcodec/atrac3plusdec.c         ctx->channel_blocks[1]  = CH_UNIT_MONO;
ctx               117 libavcodec/atrac3plusdec.c         ctx->channel_blocks[2]  = CH_UNIT_STEREO;
ctx               118 libavcodec/atrac3plusdec.c         ctx->channel_blocks[3]  = CH_UNIT_MONO;
ctx               122 libavcodec/atrac3plusdec.c         ctx->num_channel_blocks = 5;
ctx               123 libavcodec/atrac3plusdec.c         ctx->channel_blocks[0]  = CH_UNIT_STEREO;
ctx               124 libavcodec/atrac3plusdec.c         ctx->channel_blocks[1]  = CH_UNIT_MONO;
ctx               125 libavcodec/atrac3plusdec.c         ctx->channel_blocks[2]  = CH_UNIT_STEREO;
ctx               126 libavcodec/atrac3plusdec.c         ctx->channel_blocks[3]  = CH_UNIT_MONO;
ctx               127 libavcodec/atrac3plusdec.c         ctx->channel_blocks[4]  = CH_UNIT_MONO;
ctx               131 libavcodec/atrac3plusdec.c         ctx->num_channel_blocks = 5;
ctx               132 libavcodec/atrac3plusdec.c         ctx->channel_blocks[0]  = CH_UNIT_STEREO;
ctx               133 libavcodec/atrac3plusdec.c         ctx->channel_blocks[1]  = CH_UNIT_MONO;
ctx               134 libavcodec/atrac3plusdec.c         ctx->channel_blocks[2]  = CH_UNIT_STEREO;
ctx               135 libavcodec/atrac3plusdec.c         ctx->channel_blocks[3]  = CH_UNIT_STEREO;
ctx               136 libavcodec/atrac3plusdec.c         ctx->channel_blocks[4]  = CH_UNIT_MONO;
ctx               149 libavcodec/atrac3plusdec.c     ATRAC3PContext *ctx = avctx->priv_data;
ctx               160 libavcodec/atrac3plusdec.c     ff_mdct_init(&ctx->ipqf_dct_ctx, 5, 1, 32.0 / 32768.0);
ctx               162 libavcodec/atrac3plusdec.c     ff_atrac3p_init_imdct(avctx, &ctx->mdct_ctx);
ctx               164 libavcodec/atrac3plusdec.c     ff_atrac_init_gain_compensation(&ctx->gainc_ctx, 6, 2);
ctx               168 libavcodec/atrac3plusdec.c     if ((ret = set_channel_params(ctx, avctx)) < 0)
ctx               171 libavcodec/atrac3plusdec.c     ctx->my_channel_layout = avctx->channel_layout;
ctx               173 libavcodec/atrac3plusdec.c     ctx->ch_units = av_mallocz_array(ctx->num_channel_blocks, sizeof(*ctx->ch_units));
ctx               174 libavcodec/atrac3plusdec.c     ctx->fdsp = avpriv_float_dsp_alloc(avctx->flags & AV_CODEC_FLAG_BITEXACT);
ctx               176 libavcodec/atrac3plusdec.c     if (!ctx->ch_units || !ctx->fdsp) {
ctx               180 libavcodec/atrac3plusdec.c     for (i = 0; i < ctx->num_channel_blocks; i++) {
ctx               182 libavcodec/atrac3plusdec.c             ctx->ch_units[i].channels[ch].ch_num          = ch;
ctx               183 libavcodec/atrac3plusdec.c             ctx->ch_units[i].channels[ch].wnd_shape       = &ctx->ch_units[i].channels[ch].wnd_shape_hist[0][0];
ctx               184 libavcodec/atrac3plusdec.c             ctx->ch_units[i].channels[ch].wnd_shape_prev  = &ctx->ch_units[i].channels[ch].wnd_shape_hist[1][0];
ctx               185 libavcodec/atrac3plusdec.c             ctx->ch_units[i].channels[ch].gain_data       = &ctx->ch_units[i].channels[ch].gain_data_hist[0][0];
ctx               186 libavcodec/atrac3plusdec.c             ctx->ch_units[i].channels[ch].gain_data_prev  = &ctx->ch_units[i].channels[ch].gain_data_hist[1][0];
ctx               187 libavcodec/atrac3plusdec.c             ctx->ch_units[i].channels[ch].tones_info      = &ctx->ch_units[i].channels[ch].tones_info_hist[0][0];
ctx               188 libavcodec/atrac3plusdec.c             ctx->ch_units[i].channels[ch].tones_info_prev = &ctx->ch_units[i].channels[ch].tones_info_hist[1][0];
ctx               191 libavcodec/atrac3plusdec.c         ctx->ch_units[i].waves_info      = &ctx->ch_units[i].wave_synth_hist[0];
ctx               192 libavcodec/atrac3plusdec.c         ctx->ch_units[i].waves_info_prev = &ctx->ch_units[i].wave_synth_hist[1];
ctx               200 libavcodec/atrac3plusdec.c static void decode_residual_spectrum(ATRAC3PContext *ctx, Atrac3pChanUnitCtx *ch_unit,
ctx               244 libavcodec/atrac3plusdec.c             ff_atrac3p_power_compensation(ch_unit, ctx->fdsp, ch, &out[ch][0],
ctx               264 libavcodec/atrac3plusdec.c static void reconstruct_frame(ATRAC3PContext *ctx, Atrac3pChanUnitCtx *ch_unit,
ctx               272 libavcodec/atrac3plusdec.c             ff_atrac3p_imdct(ctx->fdsp, &ctx->mdct_ctx,
ctx               273 libavcodec/atrac3plusdec.c                              &ctx->samples[ch][sb * ATRAC3P_SUBBAND_SAMPLES],
ctx               274 libavcodec/atrac3plusdec.c                              &ctx->mdct_buf[ch][sb * ATRAC3P_SUBBAND_SAMPLES],
ctx               279 libavcodec/atrac3plusdec.c             ff_atrac_gain_compensation(&ctx->gainc_ctx,
ctx               280 libavcodec/atrac3plusdec.c                                        &ctx->mdct_buf[ch][sb * ATRAC3P_SUBBAND_SAMPLES],
ctx               285 libavcodec/atrac3plusdec.c                                        &ctx->time_buf[ch][sb * ATRAC3P_SUBBAND_SAMPLES]);
ctx               294 libavcodec/atrac3plusdec.c         memset(&ctx->time_buf[ch][ch_unit->num_subbands * ATRAC3P_SUBBAND_SAMPLES],
ctx               298 libavcodec/atrac3plusdec.c                sizeof(ctx->time_buf[ch][ch_unit->num_subbands * ATRAC3P_SUBBAND_SAMPLES]));
ctx               306 libavcodec/atrac3plusdec.c                     ff_atrac3p_generate_tones(ch_unit, ctx->fdsp, ch, sb,
ctx               307 libavcodec/atrac3plusdec.c                                               &ctx->time_buf[ch][sb * 128]);
ctx               312 libavcodec/atrac3plusdec.c         ff_atrac3p_ipqf(&ctx->ipqf_dct_ctx, &ch_unit->ipqf_ctx[ch],
ctx               313 libavcodec/atrac3plusdec.c                         &ctx->time_buf[ch][0], &ctx->outp_buf[ch][0]);
ctx               332 libavcodec/atrac3plusdec.c     ATRAC3PContext *ctx = avctx->priv_data;
ctx               341 libavcodec/atrac3plusdec.c     if ((ret = init_get_bits8(&ctx->gb, avpkt->data, avpkt->size)) < 0)
ctx               344 libavcodec/atrac3plusdec.c     if (get_bits1(&ctx->gb)) {
ctx               349 libavcodec/atrac3plusdec.c     while (get_bits_left(&ctx->gb) >= 2 &&
ctx               350 libavcodec/atrac3plusdec.c            (ch_unit_id = get_bits(&ctx->gb, 2)) != CH_UNIT_TERMINATOR) {
ctx               355 libavcodec/atrac3plusdec.c         if (ch_block >= ctx->num_channel_blocks ||
ctx               356 libavcodec/atrac3plusdec.c             ctx->channel_blocks[ch_block] != ch_unit_id) {
ctx               362 libavcodec/atrac3plusdec.c         ctx->ch_units[ch_block].unit_type = ch_unit_id;
ctx               365 libavcodec/atrac3plusdec.c         if ((ret = ff_atrac3p_decode_channel_unit(&ctx->gb,
ctx               366 libavcodec/atrac3plusdec.c                                                   &ctx->ch_units[ch_block],
ctx               371 libavcodec/atrac3plusdec.c         decode_residual_spectrum(ctx, &ctx->ch_units[ch_block], ctx->samples,
ctx               373 libavcodec/atrac3plusdec.c         reconstruct_frame(ctx, &ctx->ch_units[ch_block],
ctx               377 libavcodec/atrac3plusdec.c             memcpy(samples_p[out_ch_index + i], ctx->outp_buf[i],
ctx               418 libavcodec/atrac3plusdsp.c void ff_atrac3p_power_compensation(Atrac3pChanUnitCtx *ctx, AVFloatDSPContext *fdsp,
ctx               425 libavcodec/atrac3plusdsp.c     int swap_ch = (ctx->unit_type == CH_UNIT_STEREO && ctx->swap_channels[sb]) ? 1 : 0;
ctx               427 libavcodec/atrac3plusdsp.c     if (ctx->channels[ch_index ^ swap_ch].power_levs[subband_to_powgrp[sb]] == ATRAC3P_POWER_COMP_OFF)
ctx               435 libavcodec/atrac3plusdsp.c     g1 = &ctx->channels[ch_index ^ swap_ch].gain_data[sb];
ctx               436 libavcodec/atrac3plusdsp.c     g2 = &ctx->channels[ch_index ^ swap_ch].gain_data_prev[sb];
ctx               446 libavcodec/atrac3plusdsp.c     grp_lev = pwc_levs[ctx->channels[ch_index ^ swap_ch].power_levs[subband_to_powgrp[sb]]] / (1 << gcv);
ctx               450 libavcodec/atrac3plusdsp.c         if (ctx->channels[ch_index].qu_wordlen[qu] <= 0)
ctx               453 libavcodec/atrac3plusdsp.c         qu_lev = ff_atrac3p_sf_tab[ctx->channels[ch_index].qu_sf_idx[qu]] *
ctx               454 libavcodec/atrac3plusdsp.c                  ff_atrac3p_mant_tab[ctx->channels[ch_index].qu_wordlen[qu]] /
ctx               455 libavcodec/atrac3plusdsp.c                  (1 << ctx->channels[ch_index].qu_wordlen[qu]) * grp_lev;
ctx                35 libavcodec/av1_frame_merge_bsf.c     AV1FMergeContext *ctx = bsf->priv_data;
ctx                37 libavcodec/av1_frame_merge_bsf.c     ff_cbs_fragment_reset(ctx->cbc, &ctx->frag[0]);
ctx                38 libavcodec/av1_frame_merge_bsf.c     ff_cbs_fragment_reset(ctx->cbc, &ctx->frag[1]);
ctx                39 libavcodec/av1_frame_merge_bsf.c     av_packet_unref(ctx->in);
ctx                40 libavcodec/av1_frame_merge_bsf.c     av_packet_unref(ctx->pkt);
ctx                45 libavcodec/av1_frame_merge_bsf.c     AV1FMergeContext *ctx = bsf->priv_data;
ctx                46 libavcodec/av1_frame_merge_bsf.c     CodedBitstreamFragment *frag = &ctx->frag[ctx->idx], *tu = &ctx->frag[!ctx->idx];
ctx                47 libavcodec/av1_frame_merge_bsf.c     AVPacket *in = ctx->in, *buffer_pkt = ctx->pkt;
ctx                57 libavcodec/av1_frame_merge_bsf.c     err = ff_cbs_read_packet(ctx->cbc, frag, in);
ctx                85 libavcodec/av1_frame_merge_bsf.c         err = ff_cbs_write_packet(ctx->cbc, buffer_pkt, tu);
ctx                93 libavcodec/av1_frame_merge_bsf.c         ctx->idx = !ctx->idx;
ctx                96 libavcodec/av1_frame_merge_bsf.c             err = ff_cbs_insert_unit_content(ctx->cbc, tu, -1, frag->units[i].type,
ctx               111 libavcodec/av1_frame_merge_bsf.c     ff_cbs_fragment_reset(ctx->cbc, &ctx->frag[ctx->idx]);
ctx               122 libavcodec/av1_frame_merge_bsf.c     AV1FMergeContext *ctx = bsf->priv_data;
ctx               124 libavcodec/av1_frame_merge_bsf.c     ctx->in  = av_packet_alloc();
ctx               125 libavcodec/av1_frame_merge_bsf.c     ctx->pkt = av_packet_alloc();
ctx               126 libavcodec/av1_frame_merge_bsf.c     if (!ctx->in || !ctx->pkt)
ctx               129 libavcodec/av1_frame_merge_bsf.c     return ff_cbs_init(&ctx->cbc, AV_CODEC_ID_AV1, bsf);
ctx               134 libavcodec/av1_frame_merge_bsf.c     AV1FMergeContext *ctx = bsf->priv_data;
ctx               136 libavcodec/av1_frame_merge_bsf.c     ff_cbs_fragment_free(ctx->cbc, &ctx->frag[0]);
ctx               137 libavcodec/av1_frame_merge_bsf.c     ff_cbs_fragment_free(ctx->cbc, &ctx->frag[1]);
ctx               138 libavcodec/av1_frame_merge_bsf.c     av_packet_free(&ctx->in);
ctx               139 libavcodec/av1_frame_merge_bsf.c     av_packet_free(&ctx->pkt);
ctx               140 libavcodec/av1_frame_merge_bsf.c     ff_cbs_close(&ctx->cbc);
ctx                51 libavcodec/av1_frame_split_bsf.c static int av1_frame_split_filter(AVBSFContext *ctx, AVPacket *out)
ctx                53 libavcodec/av1_frame_split_bsf.c     AV1FSplitContext *s = ctx->priv_data;
ctx                61 libavcodec/av1_frame_split_bsf.c         ret = ff_bsf_get_packet_ref(ctx, s->buffer_pkt);
ctx                67 libavcodec/av1_frame_split_bsf.c             av_log(ctx, AV_LOG_WARNING, "Failed to parse temporal unit.\n");
ctx                78 libavcodec/av1_frame_split_bsf.c                 av_log(ctx, AV_LOG_VERBOSE, "Large scale tiles are unsupported.\n");
ctx               102 libavcodec/av1_frame_split_bsf.c                     av_log(ctx, AV_LOG_WARNING, "Frame OBU found when Tile data for a "
ctx               121 libavcodec/av1_frame_split_bsf.c                     av_log(ctx, AV_LOG_WARNING, "Frame Header OBU found when Tile data for a "
ctx               143 libavcodec/av1_frame_split_bsf.c                     av_log(ctx, AV_LOG_WARNING, "Unexpected Tile Group OBU found before a "
ctx               203 libavcodec/av1_frame_split_bsf.c static int av1_frame_split_init(AVBSFContext *ctx)
ctx               205 libavcodec/av1_frame_split_bsf.c     AV1FSplitContext *s = ctx->priv_data;
ctx               213 libavcodec/av1_frame_split_bsf.c     ret = ff_cbs_init(&s->cbc, AV_CODEC_ID_AV1, ctx);
ctx               220 libavcodec/av1_frame_split_bsf.c     if (!ctx->par_in->extradata_size)
ctx               223 libavcodec/av1_frame_split_bsf.c     ret = ff_cbs_read_extradata(s->cbc, td, ctx->par_in);
ctx               225 libavcodec/av1_frame_split_bsf.c         av_log(ctx, AV_LOG_WARNING, "Failed to parse extradata.\n");
ctx               232 libavcodec/av1_frame_split_bsf.c static void av1_frame_split_flush(AVBSFContext *ctx)
ctx               234 libavcodec/av1_frame_split_bsf.c     AV1FSplitContext *s = ctx->priv_data;
ctx               240 libavcodec/av1_frame_split_bsf.c static void av1_frame_split_close(AVBSFContext *ctx)
ctx               242 libavcodec/av1_frame_split_bsf.c     AV1FSplitContext *s = ctx->priv_data;
ctx                58 libavcodec/av1_metadata_bsf.c     AV1MetadataContext *ctx = bsf->priv_data;
ctx                62 libavcodec/av1_metadata_bsf.c     if (ctx->color_primaries >= 0          ||
ctx                63 libavcodec/av1_metadata_bsf.c         ctx->transfer_characteristics >= 0 ||
ctx                64 libavcodec/av1_metadata_bsf.c         ctx->matrix_coefficients >= 0) {
ctx                67 libavcodec/av1_metadata_bsf.c         if (ctx->color_primaries >= 0)
ctx                68 libavcodec/av1_metadata_bsf.c             clc->color_primaries = ctx->color_primaries;
ctx                69 libavcodec/av1_metadata_bsf.c         if (ctx->transfer_characteristics >= 0)
ctx                70 libavcodec/av1_metadata_bsf.c             clc->transfer_characteristics = ctx->transfer_characteristics;
ctx                71 libavcodec/av1_metadata_bsf.c         if (ctx->matrix_coefficients >= 0)
ctx                72 libavcodec/av1_metadata_bsf.c             clc->matrix_coefficients = ctx->matrix_coefficients;
ctx                75 libavcodec/av1_metadata_bsf.c     if (ctx->color_range >= 0) {
ctx                82 libavcodec/av1_metadata_bsf.c             clc->color_range = ctx->color_range;
ctx                86 libavcodec/av1_metadata_bsf.c     if (ctx->chroma_sample_position >= 0) {
ctx                91 libavcodec/av1_metadata_bsf.c             clc->chroma_sample_position = ctx->chroma_sample_position;
ctx                95 libavcodec/av1_metadata_bsf.c     if (ctx->tick_rate.num && ctx->tick_rate.den) {
ctx                98 libavcodec/av1_metadata_bsf.c         av_reduce(&num, &den, ctx->tick_rate.num, ctx->tick_rate.den,
ctx               105 libavcodec/av1_metadata_bsf.c         if (ctx->num_ticks_per_picture > 0) {
ctx               108 libavcodec/av1_metadata_bsf.c                 ctx->num_ticks_per_picture - 1;
ctx               117 libavcodec/av1_metadata_bsf.c     AV1MetadataContext *ctx = bsf->priv_data;
ctx               118 libavcodec/av1_metadata_bsf.c     CodedBitstreamFragment *frag = &ctx->access_unit;
ctx               128 libavcodec/av1_metadata_bsf.c     err = ff_cbs_read(ctx->cbc, frag, side_data, side_data_size);
ctx               143 libavcodec/av1_metadata_bsf.c     err = ff_cbs_write_fragment_data(ctx->cbc, frag);
ctx               154 libavcodec/av1_metadata_bsf.c     ff_cbs_fragment_reset(ctx->cbc, frag);
ctx               161 libavcodec/av1_metadata_bsf.c     AV1MetadataContext *ctx = bsf->priv_data;
ctx               162 libavcodec/av1_metadata_bsf.c     CodedBitstreamFragment *frag = &ctx->access_unit;
ctx               174 libavcodec/av1_metadata_bsf.c     err = ff_cbs_read_packet(ctx->cbc, frag, pkt);
ctx               197 libavcodec/av1_metadata_bsf.c         if (ctx->td == REMOVE)
ctx               198 libavcodec/av1_metadata_bsf.c             ff_cbs_delete_unit(ctx->cbc, frag, 0);
ctx               199 libavcodec/av1_metadata_bsf.c     } else if (ctx->td == INSERT) {
ctx               204 libavcodec/av1_metadata_bsf.c         err = ff_cbs_insert_unit_content(ctx->cbc, frag, 0, AV1_OBU_TEMPORAL_DELIMITER,
ctx               212 libavcodec/av1_metadata_bsf.c     if (ctx->delete_padding) {
ctx               215 libavcodec/av1_metadata_bsf.c                 ff_cbs_delete_unit(ctx->cbc, frag, i);
ctx               219 libavcodec/av1_metadata_bsf.c     err = ff_cbs_write_packet(ctx->cbc, pkt, frag);
ctx               227 libavcodec/av1_metadata_bsf.c     ff_cbs_fragment_reset(ctx->cbc, frag);
ctx               237 libavcodec/av1_metadata_bsf.c     AV1MetadataContext *ctx = bsf->priv_data;
ctx               238 libavcodec/av1_metadata_bsf.c     CodedBitstreamFragment *frag = &ctx->access_unit;
ctx               242 libavcodec/av1_metadata_bsf.c     err = ff_cbs_init(&ctx->cbc, AV_CODEC_ID_AV1, bsf);
ctx               247 libavcodec/av1_metadata_bsf.c         err = ff_cbs_read_extradata(ctx->cbc, frag, bsf->par_in);
ctx               262 libavcodec/av1_metadata_bsf.c         err = ff_cbs_write_extradata(ctx->cbc, bsf->par_out, frag);
ctx               271 libavcodec/av1_metadata_bsf.c     ff_cbs_fragment_reset(ctx->cbc, frag);
ctx               277 libavcodec/av1_metadata_bsf.c     AV1MetadataContext *ctx = bsf->priv_data;
ctx               279 libavcodec/av1_metadata_bsf.c     ff_cbs_fragment_free(ctx->cbc, &ctx->access_unit);
ctx               280 libavcodec/av1_metadata_bsf.c     ff_cbs_close(&ctx->cbc);
ctx                52 libavcodec/av1_parser.c static int av1_parser_parse(AVCodecParserContext *ctx,
ctx                57 libavcodec/av1_parser.c     AV1ParseContext *s = ctx->priv_data;
ctx                67 libavcodec/av1_parser.c     ctx->key_frame         = -1;
ctx                68 libavcodec/av1_parser.c     ctx->pict_type         = AV_PICTURE_TYPE_NONE;
ctx                69 libavcodec/av1_parser.c     ctx->picture_structure = AV_PICTURE_STRUCTURE_UNKNOWN;
ctx               122 libavcodec/av1_parser.c             ctx->width  = ref->frame_width;
ctx               123 libavcodec/av1_parser.c             ctx->height = ref->frame_height;
ctx               126 libavcodec/av1_parser.c             ctx->key_frame = 0;
ctx               130 libavcodec/av1_parser.c             ctx->width  = av1->frame_width;
ctx               131 libavcodec/av1_parser.c             ctx->height = av1->frame_height;
ctx               134 libavcodec/av1_parser.c             ctx->key_frame = frame_type == AV1_FRAME_KEY;
ctx               140 libavcodec/av1_parser.c             ctx->pict_type = AV_PICTURE_TYPE_I;
ctx               143 libavcodec/av1_parser.c             ctx->pict_type = AV_PICTURE_TYPE_P;
ctx               146 libavcodec/av1_parser.c             ctx->pict_type = AV_PICTURE_TYPE_SP;
ctx               149 libavcodec/av1_parser.c         ctx->picture_structure = AV_PICTURE_STRUCTURE_FRAME;
ctx               154 libavcodec/av1_parser.c         ctx->format = color->mono_chrome ? AV_PIX_FMT_GRAY8
ctx               158 libavcodec/av1_parser.c         ctx->format = color->mono_chrome ? AV_PIX_FMT_GRAY10
ctx               162 libavcodec/av1_parser.c         ctx->format = color->mono_chrome ? AV_PIX_FMT_GRAY12
ctx               166 libavcodec/av1_parser.c     av_assert2(ctx->format != AV_PIX_FMT_NONE);
ctx               172 libavcodec/av1_parser.c         ctx->format = pix_fmts_rgb[color->high_bitdepth + color->twelve_bit];
ctx               174 libavcodec/av1_parser.c     avctx->pix_fmt = ctx->format;
ctx               184 libavcodec/av1_parser.c     if (ctx->width != avctx->width || ctx->height != avctx->height) {
ctx               185 libavcodec/av1_parser.c         ret = ff_set_dimensions(avctx, ctx->width, ctx->height);
ctx               209 libavcodec/av1_parser.c static av_cold int av1_parser_init(AVCodecParserContext *ctx)
ctx               211 libavcodec/av1_parser.c     AV1ParseContext *s = ctx->priv_data;
ctx               224 libavcodec/av1_parser.c static void av1_parser_close(AVCodecParserContext *ctx)
ctx               226 libavcodec/av1_parser.c     AV1ParseContext *s = ctx->priv_data;
ctx                53 libavcodec/bethsoftvideo.c static int set_palette(BethsoftvidContext *ctx)
ctx                55 libavcodec/bethsoftvideo.c     uint32_t *palette = (uint32_t *)ctx->frame->data[1];
ctx                58 libavcodec/bethsoftvideo.c     if (bytestream2_get_bytes_left(&ctx->g) < 256*3)
ctx                62 libavcodec/bethsoftvideo.c         palette[a] = 0xFFU << 24 | bytestream2_get_be24u(&ctx->g) * 4;
ctx                65 libavcodec/bethsoftvideo.c     ctx->frame->palette_has_changed = 1;
ctx                47 libavcodec/bitstream_filter.c     AVBSFContext *ctx;
ctx                53 libavcodec/bitstream_filter.c     AVBitStreamFilterContext *ctx = NULL;
ctx                61 libavcodec/bitstream_filter.c     ctx = av_mallocz(sizeof(*ctx));
ctx                62 libavcodec/bitstream_filter.c     if (!ctx)
ctx                70 libavcodec/bitstream_filter.c     ctx->filter    = bsf;
ctx                71 libavcodec/bitstream_filter.c     ctx->priv_data = priv;
ctx                73 libavcodec/bitstream_filter.c     return ctx;
ctx                77 libavcodec/bitstream_filter.c         av_bsf_free(&priv->ctx);
ctx                79 libavcodec/bitstream_filter.c     av_freep(&ctx);
ctx                92 libavcodec/bitstream_filter.c     av_bsf_free(&priv->ctx);
ctx               106 libavcodec/bitstream_filter.c     if (!priv->ctx) {
ctx               107 libavcodec/bitstream_filter.c         ret = av_bsf_alloc(bsfc->filter, &priv->ctx);
ctx               111 libavcodec/bitstream_filter.c         ret = avcodec_parameters_from_context(priv->ctx->par_in, avctx);
ctx               115 libavcodec/bitstream_filter.c         priv->ctx->time_base_in = avctx->time_base;
ctx               118 libavcodec/bitstream_filter.c             const AVOption *opt = av_opt_next(priv->ctx->priv_data, NULL);
ctx               124 libavcodec/bitstream_filter.c             ret = av_opt_set_from_string(priv->ctx->priv_data, bsfc->args, shorthand, "=", ":");
ctx               129 libavcodec/bitstream_filter.c         ret = av_bsf_init(priv->ctx);
ctx               137 libavcodec/bitstream_filter.c     ret = av_bsf_send_packet(priv->ctx, &pkt);
ctx               144 libavcodec/bitstream_filter.c     ret = av_bsf_receive_packet(priv->ctx, &pkt);
ctx               163 libavcodec/bitstream_filter.c         ret = av_bsf_receive_packet(priv->ctx, &pkt);
ctx               169 libavcodec/bitstream_filter.c         if (priv->ctx->par_out->extradata_size && (!args || !strstr(args, "private_spspps_buf"))) {
ctx               172 libavcodec/bitstream_filter.c             avctx->extradata = av_mallocz(priv->ctx->par_out->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE);
ctx               175 libavcodec/bitstream_filter.c             memcpy(avctx->extradata, priv->ctx->par_out->extradata, priv->ctx->par_out->extradata_size);
ctx               176 libavcodec/bitstream_filter.c             avctx->extradata_size = priv->ctx->par_out->extradata_size;
ctx                42 libavcodec/bsf.c     AVBSFContext *ctx;
ctx                46 libavcodec/bsf.c     ctx = *pctx;
ctx                48 libavcodec/bsf.c     if (ctx->filter->close)
ctx                49 libavcodec/bsf.c         ctx->filter->close(ctx);
ctx                50 libavcodec/bsf.c     if (ctx->filter->priv_class && ctx->priv_data)
ctx                51 libavcodec/bsf.c         av_opt_free(ctx->priv_data);
ctx                53 libavcodec/bsf.c     if (ctx->internal)
ctx                54 libavcodec/bsf.c         av_packet_free(&ctx->internal->buffer_pkt);
ctx                55 libavcodec/bsf.c     av_freep(&ctx->internal);
ctx                56 libavcodec/bsf.c     av_freep(&ctx->priv_data);
ctx                58 libavcodec/bsf.c     avcodec_parameters_free(&ctx->par_in);
ctx                59 libavcodec/bsf.c     avcodec_parameters_free(&ctx->par_out);
ctx                66 libavcodec/bsf.c     AVBSFContext *ctx = obj;
ctx                67 libavcodec/bsf.c     if (!prev && ctx->filter->priv_class)
ctx                68 libavcodec/bsf.c         return ctx->priv_data;
ctx                93 libavcodec/bsf.c     AVBSFContext *ctx;
ctx                97 libavcodec/bsf.c     ctx = av_mallocz(sizeof(*ctx));
ctx                98 libavcodec/bsf.c     if (!ctx)
ctx               101 libavcodec/bsf.c     ctx->av_class = &bsf_class;
ctx               102 libavcodec/bsf.c     ctx->filter   = filter;
ctx               104 libavcodec/bsf.c     ctx->par_in  = avcodec_parameters_alloc();
ctx               105 libavcodec/bsf.c     ctx->par_out = avcodec_parameters_alloc();
ctx               106 libavcodec/bsf.c     if (!ctx->par_in || !ctx->par_out) {
ctx               116 libavcodec/bsf.c     ctx->internal = bsfi;
ctx               126 libavcodec/bsf.c         ctx->priv_data = av_mallocz(filter->priv_data_size);
ctx               127 libavcodec/bsf.c         if (!ctx->priv_data) {
ctx               132 libavcodec/bsf.c             *(const AVClass **)ctx->priv_data = filter->priv_class;
ctx               133 libavcodec/bsf.c             av_opt_set_defaults(ctx->priv_data);
ctx               137 libavcodec/bsf.c     *pctx = ctx;
ctx               140 libavcodec/bsf.c     av_bsf_free(&ctx);
ctx               144 libavcodec/bsf.c int av_bsf_init(AVBSFContext *ctx)
ctx               149 libavcodec/bsf.c     if (ctx->filter->codec_ids) {
ctx               150 libavcodec/bsf.c         for (i = 0; ctx->filter->codec_ids[i] != AV_CODEC_ID_NONE; i++)
ctx               151 libavcodec/bsf.c             if (ctx->par_in->codec_id == ctx->filter->codec_ids[i])
ctx               153 libavcodec/bsf.c         if (ctx->filter->codec_ids[i] == AV_CODEC_ID_NONE) {
ctx               154 libavcodec/bsf.c             const AVCodecDescriptor *desc = avcodec_descriptor_get(ctx->par_in->codec_id);
ctx               155 libavcodec/bsf.c             av_log(ctx, AV_LOG_ERROR, "Codec '%s' (%d) is not supported by the "
ctx               157 libavcodec/bsf.c                    desc ? desc->name : "unknown", ctx->par_in->codec_id, ctx->filter->name);
ctx               158 libavcodec/bsf.c             for (i = 0; ctx->filter->codec_ids[i] != AV_CODEC_ID_NONE; i++) {
ctx               159 libavcodec/bsf.c                 desc = avcodec_descriptor_get(ctx->filter->codec_ids[i]);
ctx               160 libavcodec/bsf.c                 av_log(ctx, AV_LOG_ERROR, "%s (%d) ",
ctx               161 libavcodec/bsf.c                        desc ? desc->name : "unknown", ctx->filter->codec_ids[i]);
ctx               163 libavcodec/bsf.c             av_log(ctx, AV_LOG_ERROR, "\n");
ctx               170 libavcodec/bsf.c     ret = avcodec_parameters_copy(ctx->par_out, ctx->par_in);
ctx               174 libavcodec/bsf.c     ctx->time_base_out = ctx->time_base_in;
ctx               176 libavcodec/bsf.c     if (ctx->filter->init) {
ctx               177 libavcodec/bsf.c         ret = ctx->filter->init(ctx);
ctx               185 libavcodec/bsf.c void av_bsf_flush(AVBSFContext *ctx)
ctx               187 libavcodec/bsf.c     AVBSFInternal *bsfi = ctx->internal;
ctx               193 libavcodec/bsf.c     if (ctx->filter->flush)
ctx               194 libavcodec/bsf.c         ctx->filter->flush(ctx);
ctx               197 libavcodec/bsf.c int av_bsf_send_packet(AVBSFContext *ctx, AVPacket *pkt)
ctx               199 libavcodec/bsf.c     AVBSFInternal *bsfi = ctx->internal;
ctx               208 libavcodec/bsf.c         av_log(ctx, AV_LOG_ERROR, "A non-NULL packet sent after an EOF.\n");
ctx               223 libavcodec/bsf.c int av_bsf_receive_packet(AVBSFContext *ctx, AVPacket *pkt)
ctx               225 libavcodec/bsf.c     return ctx->filter->filter(ctx, pkt);
ctx               228 libavcodec/bsf.c int ff_bsf_get_packet(AVBSFContext *ctx, AVPacket **pkt)
ctx               230 libavcodec/bsf.c     AVBSFInternal *bsfi = ctx->internal;
ctx               249 libavcodec/bsf.c int ff_bsf_get_packet_ref(AVBSFContext *ctx, AVPacket *pkt)
ctx               251 libavcodec/bsf.c     AVBSFInternal *bsfi = ctx->internal;
ctx               367 libavcodec/bsf.c static const char *bsf_list_item_name(void *ctx)
ctx               370 libavcodec/bsf.c     AVBSFContext *bsf_ctx = ctx;
ctx               485 libavcodec/bsf.c     BSFListContext *ctx;
ctx               498 libavcodec/bsf.c     ctx = (*bsf)->priv_data;
ctx               500 libavcodec/bsf.c     ctx->bsfs = (*lst)->bsfs;
ctx               501 libavcodec/bsf.c     ctx->nb_bsfs = (*lst)->nb_bsfs;
ctx               128 libavcodec/bsf.h     int (*init)(AVBSFContext *ctx);
ctx               129 libavcodec/bsf.h     int (*filter)(AVBSFContext *ctx, AVPacket *pkt);
ctx               130 libavcodec/bsf.h     void (*close)(AVBSFContext *ctx);
ctx               131 libavcodec/bsf.h     void (*flush)(AVBSFContext *ctx);
ctx               163 libavcodec/bsf.h int av_bsf_alloc(const AVBitStreamFilter *filter, AVBSFContext **ctx);
ctx               169 libavcodec/bsf.h int av_bsf_init(AVBSFContext *ctx);
ctx               189 libavcodec/bsf.h int av_bsf_send_packet(AVBSFContext *ctx, AVPacket *pkt);
ctx               215 libavcodec/bsf.h int av_bsf_receive_packet(AVBSFContext *ctx, AVPacket *pkt);
ctx               220 libavcodec/bsf.h void av_bsf_flush(AVBSFContext *ctx);
ctx               226 libavcodec/bsf.h void av_bsf_free(AVBSFContext **ctx);
ctx                32 libavcodec/bsf_internal.h int ff_bsf_get_packet(AVBSFContext *ctx, AVPacket **pkt);
ctx                43 libavcodec/bsf_internal.h int ff_bsf_get_packet_ref(AVBSFContext *ctx, AVPacket *pkt);
ctx                77 libavcodec/cbs.c     CodedBitstreamContext *ctx;
ctx                91 libavcodec/cbs.c     ctx = av_mallocz(sizeof(*ctx));
ctx                92 libavcodec/cbs.c     if (!ctx)
ctx                95 libavcodec/cbs.c     ctx->log_ctx = log_ctx;
ctx                96 libavcodec/cbs.c     ctx->codec   = type;
ctx                99 libavcodec/cbs.c         ctx->priv_data = av_mallocz(ctx->codec->priv_data_size);
ctx               100 libavcodec/cbs.c         if (!ctx->priv_data) {
ctx               101 libavcodec/cbs.c             av_freep(&ctx);
ctx               106 libavcodec/cbs.c     ctx->decompose_unit_types = NULL;
ctx               108 libavcodec/cbs.c     ctx->trace_enable = 0;
ctx               109 libavcodec/cbs.c     ctx->trace_level  = AV_LOG_TRACE;
ctx               111 libavcodec/cbs.c     *ctx_ptr = ctx;
ctx               117 libavcodec/cbs.c     CodedBitstreamContext *ctx = *ctx_ptr;
ctx               119 libavcodec/cbs.c     if (!ctx)
ctx               122 libavcodec/cbs.c     if (ctx->codec && ctx->codec->close)
ctx               123 libavcodec/cbs.c         ctx->codec->close(ctx);
ctx               125 libavcodec/cbs.c     av_freep(&ctx->write_buffer);
ctx               126 libavcodec/cbs.c     av_freep(&ctx->priv_data);
ctx               130 libavcodec/cbs.c static void cbs_unit_uninit(CodedBitstreamContext *ctx,
ctx               142 libavcodec/cbs.c void ff_cbs_fragment_reset(CodedBitstreamContext *ctx,
ctx               148 libavcodec/cbs.c         cbs_unit_uninit(ctx, &frag->units[i]);
ctx               157 libavcodec/cbs.c void ff_cbs_fragment_free(CodedBitstreamContext *ctx,
ctx               160 libavcodec/cbs.c     ff_cbs_fragment_reset(ctx, frag);
ctx               166 libavcodec/cbs.c static int cbs_read_fragment_content(CodedBitstreamContext *ctx,
ctx               174 libavcodec/cbs.c         if (ctx->decompose_unit_types) {
ctx               175 libavcodec/cbs.c             for (j = 0; j < ctx->nb_decompose_unit_types; j++) {
ctx               176 libavcodec/cbs.c                 if (ctx->decompose_unit_types[j] == unit->type)
ctx               179 libavcodec/cbs.c             if (j >= ctx->nb_decompose_unit_types)
ctx               188 libavcodec/cbs.c         err = ctx->codec->read_unit(ctx, unit);
ctx               190 libavcodec/cbs.c             av_log(ctx->log_ctx, AV_LOG_VERBOSE,
ctx               194 libavcodec/cbs.c             av_log(ctx->log_ctx, AV_LOG_ERROR, "Failed to read unit %d "
ctx               203 libavcodec/cbs.c static int cbs_fill_fragment_data(CodedBitstreamContext *ctx,
ctx               224 libavcodec/cbs.c int ff_cbs_read_extradata(CodedBitstreamContext *ctx,
ctx               230 libavcodec/cbs.c     err = cbs_fill_fragment_data(ctx, frag, par->extradata,
ctx               235 libavcodec/cbs.c     err = ctx->codec->split_fragment(ctx, frag, 1);
ctx               239 libavcodec/cbs.c     return cbs_read_fragment_content(ctx, frag);
ctx               242 libavcodec/cbs.c int ff_cbs_read_packet(CodedBitstreamContext *ctx,
ctx               257 libavcodec/cbs.c         err = cbs_fill_fragment_data(ctx, frag, pkt->data, pkt->size);
ctx               262 libavcodec/cbs.c     err = ctx->codec->split_fragment(ctx, frag, 0);
ctx               266 libavcodec/cbs.c     return cbs_read_fragment_content(ctx, frag);
ctx               269 libavcodec/cbs.c int ff_cbs_read(CodedBitstreamContext *ctx,
ctx               275 libavcodec/cbs.c     err = cbs_fill_fragment_data(ctx, frag, data, size);
ctx               279 libavcodec/cbs.c     err = ctx->codec->split_fragment(ctx, frag, 0);
ctx               283 libavcodec/cbs.c     return cbs_read_fragment_content(ctx, frag);
ctx               286 libavcodec/cbs.c static int cbs_write_unit_data(CodedBitstreamContext *ctx,
ctx               292 libavcodec/cbs.c     if (!ctx->write_buffer) {
ctx               294 libavcodec/cbs.c         ctx->write_buffer_size = 1024 * 1024;
ctx               297 libavcodec/cbs.c         ret = av_reallocp(&ctx->write_buffer, ctx->write_buffer_size);
ctx               299 libavcodec/cbs.c             av_log(ctx->log_ctx, AV_LOG_ERROR, "Unable to allocate a "
ctx               301 libavcodec/cbs.c                    "%"SIZE_SPECIFIER" bytes).\n", ctx->write_buffer_size);
ctx               306 libavcodec/cbs.c     init_put_bits(&pbc, ctx->write_buffer, ctx->write_buffer_size);
ctx               308 libavcodec/cbs.c     ret = ctx->codec->write_unit(ctx, unit, &pbc);
ctx               312 libavcodec/cbs.c             if (ctx->write_buffer_size == INT_MAX / 8)
ctx               314 libavcodec/cbs.c             ctx->write_buffer_size = FFMIN(2 * ctx->write_buffer_size, INT_MAX / 8);
ctx               322 libavcodec/cbs.c     av_assert0(put_bits_count(&pbc) <= 8 * ctx->write_buffer_size);
ctx               331 libavcodec/cbs.c     ret = ff_cbs_alloc_unit_data(ctx, unit, put_bits_count(&pbc) / 8);
ctx               335 libavcodec/cbs.c     memcpy(unit->data, ctx->write_buffer, unit->data_size);
ctx               340 libavcodec/cbs.c int ff_cbs_write_fragment_data(CodedBitstreamContext *ctx,
ctx               354 libavcodec/cbs.c         err = cbs_write_unit_data(ctx, unit);
ctx               356 libavcodec/cbs.c             av_log(ctx->log_ctx, AV_LOG_ERROR, "Failed to write unit %d "
ctx               366 libavcodec/cbs.c     err = ctx->codec->assemble_fragment(ctx, frag);
ctx               368 libavcodec/cbs.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "Failed to assemble fragment.\n");
ctx               376 libavcodec/cbs.c int ff_cbs_write_extradata(CodedBitstreamContext *ctx,
ctx               382 libavcodec/cbs.c     err = ff_cbs_write_fragment_data(ctx, frag);
ctx               401 libavcodec/cbs.c int ff_cbs_write_packet(CodedBitstreamContext *ctx,
ctx               408 libavcodec/cbs.c     err = ff_cbs_write_fragment_data(ctx, frag);
ctx               426 libavcodec/cbs.c void ff_cbs_trace_header(CodedBitstreamContext *ctx,
ctx               429 libavcodec/cbs.c     if (!ctx->trace_enable)
ctx               432 libavcodec/cbs.c     av_log(ctx->log_ctx, ctx->trace_level, "%s\n", name);
ctx               435 libavcodec/cbs.c void ff_cbs_trace_syntax_element(CodedBitstreamContext *ctx, int position,
ctx               443 libavcodec/cbs.c     if (!ctx->trace_enable)
ctx               481 libavcodec/cbs.c     av_log(ctx->log_ctx, ctx->trace_level, "%-10d  %s%*s = %"PRId64"\n",
ctx               485 libavcodec/cbs.c int ff_cbs_read_unsigned(CodedBitstreamContext *ctx, GetBitContext *gbc,
ctx               496 libavcodec/cbs.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid value at "
ctx               501 libavcodec/cbs.c     if (ctx->trace_enable)
ctx               506 libavcodec/cbs.c     if (ctx->trace_enable) {
ctx               513 libavcodec/cbs.c         ff_cbs_trace_syntax_element(ctx, position, name, subscripts,
ctx               518 libavcodec/cbs.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "%s out of range: "
ctx               528 libavcodec/cbs.c int ff_cbs_write_unsigned(CodedBitstreamContext *ctx, PutBitContext *pbc,
ctx               536 libavcodec/cbs.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "%s out of range: "
ctx               545 libavcodec/cbs.c     if (ctx->trace_enable) {
ctx               552 libavcodec/cbs.c         ff_cbs_trace_syntax_element(ctx, put_bits_count(pbc),
ctx               564 libavcodec/cbs.c int ff_cbs_read_signed(CodedBitstreamContext *ctx, GetBitContext *gbc,
ctx               575 libavcodec/cbs.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid value at "
ctx               580 libavcodec/cbs.c     if (ctx->trace_enable)
ctx               585 libavcodec/cbs.c     if (ctx->trace_enable) {
ctx               592 libavcodec/cbs.c         ff_cbs_trace_syntax_element(ctx, position, name, subscripts,
ctx               597 libavcodec/cbs.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "%s out of range: "
ctx               607 libavcodec/cbs.c int ff_cbs_write_signed(CodedBitstreamContext *ctx, PutBitContext *pbc,
ctx               615 libavcodec/cbs.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "%s out of range: "
ctx               624 libavcodec/cbs.c     if (ctx->trace_enable) {
ctx               631 libavcodec/cbs.c         ff_cbs_trace_syntax_element(ctx, put_bits_count(pbc),
ctx               644 libavcodec/cbs.c int ff_cbs_alloc_unit_content(CodedBitstreamContext *ctx,
ctx               665 libavcodec/cbs.c int ff_cbs_alloc_unit_data(CodedBitstreamContext *ctx,
ctx               683 libavcodec/cbs.c static int cbs_insert_unit(CodedBitstreamContext *ctx,
ctx               722 libavcodec/cbs.c int ff_cbs_insert_unit_content(CodedBitstreamContext *ctx,
ctx               745 libavcodec/cbs.c     err = cbs_insert_unit(ctx, frag, position);
ctx               759 libavcodec/cbs.c int ff_cbs_insert_unit_data(CodedBitstreamContext *ctx,
ctx               784 libavcodec/cbs.c     err = cbs_insert_unit(ctx, frag, position);
ctx               799 libavcodec/cbs.c void ff_cbs_delete_unit(CodedBitstreamContext *ctx,
ctx               806 libavcodec/cbs.c     cbs_unit_uninit(ctx, &frag->units[position]);
ctx               234 libavcodec/cbs.h int ff_cbs_init(CodedBitstreamContext **ctx,
ctx               240 libavcodec/cbs.h void ff_cbs_close(CodedBitstreamContext **ctx);
ctx               254 libavcodec/cbs.h int ff_cbs_read_extradata(CodedBitstreamContext *ctx,
ctx               269 libavcodec/cbs.h int ff_cbs_read_packet(CodedBitstreamContext *ctx,
ctx               284 libavcodec/cbs.h int ff_cbs_read(CodedBitstreamContext *ctx,
ctx               301 libavcodec/cbs.h int ff_cbs_write_fragment_data(CodedBitstreamContext *ctx,
ctx               310 libavcodec/cbs.h int ff_cbs_write_extradata(CodedBitstreamContext *ctx,
ctx               324 libavcodec/cbs.h int ff_cbs_write_packet(CodedBitstreamContext *ctx,
ctx               333 libavcodec/cbs.h void ff_cbs_fragment_reset(CodedBitstreamContext *ctx,
ctx               340 libavcodec/cbs.h void ff_cbs_fragment_free(CodedBitstreamContext *ctx,
ctx               348 libavcodec/cbs.h int ff_cbs_alloc_unit_content(CodedBitstreamContext *ctx,
ctx               358 libavcodec/cbs.h int ff_cbs_alloc_unit_data(CodedBitstreamContext *ctx,
ctx               368 libavcodec/cbs.h int ff_cbs_insert_unit_content(CodedBitstreamContext *ctx,
ctx               382 libavcodec/cbs.h int ff_cbs_insert_unit_data(CodedBitstreamContext *ctx,
ctx               394 libavcodec/cbs.h void ff_cbs_delete_unit(CodedBitstreamContext *ctx,
ctx                28 libavcodec/cbs_av1.c static int cbs_av1_read_uvlc(CodedBitstreamContext *ctx, GetBitContext *gbc,
ctx                35 libavcodec/cbs_av1.c     if (ctx->trace_enable)
ctx                41 libavcodec/cbs_av1.c             av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid uvlc code at "
ctx                55 libavcodec/cbs_av1.c             av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid uvlc code at "
ctx                64 libavcodec/cbs_av1.c     if (ctx->trace_enable) {
ctx                74 libavcodec/cbs_av1.c                 ff_cbs_trace_syntax_element(ctx, position, name,
ctx                91 libavcodec/cbs_av1.c         ff_cbs_trace_syntax_element(ctx, position, name,
ctx                96 libavcodec/cbs_av1.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "%s out of range: "
ctx               106 libavcodec/cbs_av1.c static int cbs_av1_write_uvlc(CodedBitstreamContext *ctx, PutBitContext *pbc,
ctx               114 libavcodec/cbs_av1.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "%s out of range: "
ctx               120 libavcodec/cbs_av1.c     if (ctx->trace_enable)
ctx               134 libavcodec/cbs_av1.c     if (ctx->trace_enable) {
ctx               144 libavcodec/cbs_av1.c         ff_cbs_trace_syntax_element(ctx, position, name, NULL,
ctx               151 libavcodec/cbs_av1.c static int cbs_av1_read_leb128(CodedBitstreamContext *ctx, GetBitContext *gbc,
ctx               157 libavcodec/cbs_av1.c     if (ctx->trace_enable)
ctx               164 libavcodec/cbs_av1.c         err = ff_cbs_read_unsigned(ctx, gbc, 8, "leb128_byte[i]", subscript,
ctx               177 libavcodec/cbs_av1.c     if (ctx->trace_enable)
ctx               178 libavcodec/cbs_av1.c         ff_cbs_trace_syntax_element(ctx, position, name, NULL, "", value);
ctx               184 libavcodec/cbs_av1.c static int cbs_av1_write_leb128(CodedBitstreamContext *ctx, PutBitContext *pbc,
ctx               192 libavcodec/cbs_av1.c     if (ctx->trace_enable)
ctx               202 libavcodec/cbs_av1.c         err = ff_cbs_write_unsigned(ctx, pbc, 8, "leb128_byte[i]", subscript,
ctx               208 libavcodec/cbs_av1.c     if (ctx->trace_enable)
ctx               209 libavcodec/cbs_av1.c         ff_cbs_trace_syntax_element(ctx, position, name, NULL, "", value);
ctx               214 libavcodec/cbs_av1.c static int cbs_av1_read_ns(CodedBitstreamContext *ctx, GetBitContext *gbc,
ctx               223 libavcodec/cbs_av1.c     if (ctx->trace_enable)
ctx               230 libavcodec/cbs_av1.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid non-symmetric value at "
ctx               247 libavcodec/cbs_av1.c     if (ctx->trace_enable) {
ctx               256 libavcodec/cbs_av1.c         ff_cbs_trace_syntax_element(ctx, position,
ctx               264 libavcodec/cbs_av1.c static int cbs_av1_write_ns(CodedBitstreamContext *ctx, PutBitContext *pbc,
ctx               272 libavcodec/cbs_av1.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "%s out of range: "
ctx               278 libavcodec/cbs_av1.c     if (ctx->trace_enable)
ctx               297 libavcodec/cbs_av1.c     if (ctx->trace_enable) {
ctx               306 libavcodec/cbs_av1.c         ff_cbs_trace_syntax_element(ctx, position,
ctx               313 libavcodec/cbs_av1.c static int cbs_av1_read_increment(CodedBitstreamContext *ctx, GetBitContext *gbc,
ctx               322 libavcodec/cbs_av1.c     if (ctx->trace_enable)
ctx               327 libavcodec/cbs_av1.c             av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid increment value at "
ctx               340 libavcodec/cbs_av1.c     if (ctx->trace_enable) {
ctx               342 libavcodec/cbs_av1.c         ff_cbs_trace_syntax_element(ctx, position,
ctx               350 libavcodec/cbs_av1.c static int cbs_av1_write_increment(CodedBitstreamContext *ctx, PutBitContext *pbc,
ctx               358 libavcodec/cbs_av1.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "%s out of range: "
ctx               371 libavcodec/cbs_av1.c     if (ctx->trace_enable) {
ctx               381 libavcodec/cbs_av1.c         ff_cbs_trace_syntax_element(ctx, put_bits_count(pbc),
ctx               391 libavcodec/cbs_av1.c static int cbs_av1_read_subexp(CodedBitstreamContext *ctx, GetBitContext *gbc,
ctx               399 libavcodec/cbs_av1.c     if (ctx->trace_enable)
ctx               405 libavcodec/cbs_av1.c     err = cbs_av1_read_increment(ctx, gbc, 0, max_len,
ctx               419 libavcodec/cbs_av1.c         err = ff_cbs_read_unsigned(ctx, gbc, range_bits,
ctx               426 libavcodec/cbs_av1.c         err = cbs_av1_read_ns(ctx, gbc, range_max - range_offset,
ctx               433 libavcodec/cbs_av1.c     if (ctx->trace_enable)
ctx               434 libavcodec/cbs_av1.c         ff_cbs_trace_syntax_element(ctx, position,
ctx               441 libavcodec/cbs_av1.c static int cbs_av1_write_subexp(CodedBitstreamContext *ctx, PutBitContext *pbc,
ctx               449 libavcodec/cbs_av1.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "%s out of range: "
ctx               455 libavcodec/cbs_av1.c     if (ctx->trace_enable)
ctx               477 libavcodec/cbs_av1.c     err = cbs_av1_write_increment(ctx, pbc, 0, max_len,
ctx               483 libavcodec/cbs_av1.c         err = ff_cbs_write_unsigned(ctx, pbc, range_bits,
ctx               491 libavcodec/cbs_av1.c         err = cbs_av1_write_ns(ctx, pbc, range_max - range_offset,
ctx               498 libavcodec/cbs_av1.c     if (ctx->trace_enable)
ctx               499 libavcodec/cbs_av1.c         ff_cbs_trace_syntax_element(ctx, position,
ctx               538 libavcodec/cbs_av1.c         ff_cbs_trace_header(ctx, name); \
ctx               582 libavcodec/cbs_av1.c         CHECK(ff_cbs_read_unsigned(ctx, rw, width, #name, \
ctx               590 libavcodec/cbs_av1.c         CHECK(ff_cbs_read_signed(ctx, rw, width, #name, \
ctx               599 libavcodec/cbs_av1.c         CHECK(cbs_av1_read_uvlc(ctx, rw, #name, \
ctx               606 libavcodec/cbs_av1.c         CHECK(cbs_av1_read_ns(ctx, rw, max_value, #name, \
ctx               613 libavcodec/cbs_av1.c         CHECK(cbs_av1_read_increment(ctx, rw, min, max, #name, &value)); \
ctx               619 libavcodec/cbs_av1.c         CHECK(cbs_av1_read_subexp(ctx, rw, max, #name, \
ctx               637 libavcodec/cbs_av1.c         CHECK(cbs_av1_read_leb128(ctx, rw, #name, &value)); \
ctx               669 libavcodec/cbs_av1.c         CHECK(ff_cbs_write_unsigned(ctx, rw, width, #name, \
ctx               675 libavcodec/cbs_av1.c         CHECK(ff_cbs_write_signed(ctx, rw, width, #name, \
ctx               682 libavcodec/cbs_av1.c         CHECK(cbs_av1_write_uvlc(ctx, rw, #name, current->name, \
ctx               687 libavcodec/cbs_av1.c         CHECK(cbs_av1_write_ns(ctx, rw, max_value, #name, \
ctx               693 libavcodec/cbs_av1.c         CHECK(cbs_av1_write_increment(ctx, rw, min, max, #name, \
ctx               698 libavcodec/cbs_av1.c         CHECK(cbs_av1_write_subexp(ctx, rw, max, #name, \
ctx               710 libavcodec/cbs_av1.c         CHECK(cbs_av1_write_leb128(ctx, rw, #name, current->name)); \
ctx               715 libavcodec/cbs_av1.c             av_log(ctx->log_ctx, AV_LOG_ERROR, \
ctx               742 libavcodec/cbs_av1.c static int cbs_av1_split_fragment(CodedBitstreamContext *ctx,
ctx               753 libavcodec/cbs_av1.c     trace = ctx->trace_enable;
ctx               754 libavcodec/cbs_av1.c     ctx->trace_enable = 0;
ctx               760 libavcodec/cbs_av1.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid fragment: "
ctx               772 libavcodec/cbs_av1.c         err = cbs_av1_read_obu_header(ctx, &gbc, &header);
ctx               778 libavcodec/cbs_av1.c                 av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid OBU: fragment "
ctx               783 libavcodec/cbs_av1.c             err = cbs_av1_read_leb128(ctx, &gbc, "obu_size", &obu_size);
ctx               795 libavcodec/cbs_av1.c             av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid OBU length: "
ctx               802 libavcodec/cbs_av1.c         err = ff_cbs_insert_unit_data(ctx, frag, -1, header.obu_type,
ctx               813 libavcodec/cbs_av1.c     ctx->trace_enable = trace;
ctx               861 libavcodec/cbs_av1.c static int cbs_av1_ref_tile_data(CodedBitstreamContext *ctx,
ctx               870 libavcodec/cbs_av1.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "Bitstream ended before "
ctx               887 libavcodec/cbs_av1.c static int cbs_av1_read_unit(CodedBitstreamContext *ctx,
ctx               890 libavcodec/cbs_av1.c     CodedBitstreamAV1Context *priv = ctx->priv_data;
ctx               895 libavcodec/cbs_av1.c     err = ff_cbs_alloc_unit_content(ctx, unit, sizeof(*obu),
ctx               905 libavcodec/cbs_av1.c     err = cbs_av1_read_obu_header(ctx, &gbc, &obu->header);
ctx               912 libavcodec/cbs_av1.c         err = cbs_av1_read_leb128(ctx, &gbc, "obu_size", &obu_size);
ctx               918 libavcodec/cbs_av1.c             av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid OBU length: "
ctx               952 libavcodec/cbs_av1.c             err = cbs_av1_read_sequence_header_obu(ctx, &gbc,
ctx               968 libavcodec/cbs_av1.c             err = cbs_av1_read_temporal_delimiter_obu(ctx, &gbc);
ctx               976 libavcodec/cbs_av1.c             err = cbs_av1_read_frame_header_obu(ctx, &gbc,
ctx               987 libavcodec/cbs_av1.c             err = cbs_av1_read_tile_group_obu(ctx, &gbc,
ctx               992 libavcodec/cbs_av1.c             err = cbs_av1_ref_tile_data(ctx, unit, &gbc,
ctx              1000 libavcodec/cbs_av1.c             err = cbs_av1_read_frame_obu(ctx, &gbc, &obu->obu.frame,
ctx              1005 libavcodec/cbs_av1.c             err = cbs_av1_ref_tile_data(ctx, unit, &gbc,
ctx              1013 libavcodec/cbs_av1.c             err = cbs_av1_read_tile_list_obu(ctx, &gbc,
ctx              1018 libavcodec/cbs_av1.c             err = cbs_av1_ref_tile_data(ctx, unit, &gbc,
ctx              1026 libavcodec/cbs_av1.c             err = cbs_av1_read_metadata_obu(ctx, &gbc, &obu->obu.metadata);
ctx              1033 libavcodec/cbs_av1.c             err = cbs_av1_read_padding_obu(ctx, &gbc, &obu->obu.padding);
ctx              1054 libavcodec/cbs_av1.c         err = cbs_av1_read_trailing_bits(ctx, &gbc, nb_bits);
ctx              1062 libavcodec/cbs_av1.c static int cbs_av1_write_obu(CodedBitstreamContext *ctx,
ctx              1066 libavcodec/cbs_av1.c     CodedBitstreamAV1Context *priv = ctx->priv_data;
ctx              1078 libavcodec/cbs_av1.c     err = cbs_av1_write_obu_header(ctx, pbc, &obu->header);
ctx              1097 libavcodec/cbs_av1.c             err = cbs_av1_write_sequence_header_obu(ctx, pbc,
ctx              1113 libavcodec/cbs_av1.c             err = cbs_av1_write_temporal_delimiter_obu(ctx, pbc);
ctx              1121 libavcodec/cbs_av1.c             err = cbs_av1_write_frame_header_obu(ctx, pbc,
ctx              1132 libavcodec/cbs_av1.c             err = cbs_av1_write_tile_group_obu(ctx, pbc,
ctx              1142 libavcodec/cbs_av1.c             err = cbs_av1_write_frame_obu(ctx, pbc, &obu->obu.frame, NULL);
ctx              1151 libavcodec/cbs_av1.c             err = cbs_av1_write_tile_list_obu(ctx, pbc, &obu->obu.tile_list);
ctx              1160 libavcodec/cbs_av1.c             err = cbs_av1_write_metadata_obu(ctx, pbc, &obu->obu.metadata);
ctx              1167 libavcodec/cbs_av1.c             err = cbs_av1_write_padding_obu(ctx, pbc, &obu->obu.padding);
ctx              1182 libavcodec/cbs_av1.c         err = cbs_av1_write_trailing_bits(ctx, pbc, 8 - end_pos % 8);
ctx              1200 libavcodec/cbs_av1.c     err = cbs_av1_write_leb128(ctx, pbc, "obu_size", obu->obu_size);
ctx              1229 libavcodec/cbs_av1.c static int cbs_av1_assemble_fragment(CodedBitstreamContext *ctx,
ctx              1257 libavcodec/cbs_av1.c static void cbs_av1_close(CodedBitstreamContext *ctx)
ctx              1259 libavcodec/cbs_av1.c     CodedBitstreamAV1Context *priv = ctx->priv_data;
ctx                19 libavcodec/cbs_av1_syntax_template.c static int FUNC(obu_header)(CodedBitstreamContext *ctx, RWContext *rw,
ctx                43 libavcodec/cbs_av1_syntax_template.c static int FUNC(trailing_bits)(CodedBitstreamContext *ctx, RWContext *rw, int nb_bits)
ctx                60 libavcodec/cbs_av1_syntax_template.c static int FUNC(byte_alignment)(CodedBitstreamContext *ctx, RWContext *rw)
ctx                70 libavcodec/cbs_av1_syntax_template.c static int FUNC(color_config)(CodedBitstreamContext *ctx, RWContext *rw,
ctx                73 libavcodec/cbs_av1_syntax_template.c     CodedBitstreamAV1Context *priv = ctx->priv_data;
ctx               151 libavcodec/cbs_av1_syntax_template.c static int FUNC(timing_info)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               166 libavcodec/cbs_av1_syntax_template.c static int FUNC(decoder_model_info)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               179 libavcodec/cbs_av1_syntax_template.c static int FUNC(sequence_header_obu)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               207 libavcodec/cbs_av1_syntax_template.c             CHECK(FUNC(timing_info)(ctx, rw, &current->timing_info));
ctx               212 libavcodec/cbs_av1_syntax_template.c                           (ctx, rw, &current->decoder_model_info));
ctx               322 libavcodec/cbs_av1_syntax_template.c     CHECK(FUNC(color_config)(ctx, rw, &current->color_config,
ctx               330 libavcodec/cbs_av1_syntax_template.c static int FUNC(temporal_delimiter_obu)(CodedBitstreamContext *ctx, RWContext *rw)
ctx               332 libavcodec/cbs_av1_syntax_template.c     CodedBitstreamAV1Context *priv = ctx->priv_data;
ctx               341 libavcodec/cbs_av1_syntax_template.c static int FUNC(set_frame_refs)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               344 libavcodec/cbs_av1_syntax_template.c     CodedBitstreamAV1Context *priv = ctx->priv_data;
ctx               452 libavcodec/cbs_av1_syntax_template.c static int FUNC(superres_params)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               455 libavcodec/cbs_av1_syntax_template.c     CodedBitstreamAV1Context  *priv = ctx->priv_data;
ctx               478 libavcodec/cbs_av1_syntax_template.c static int FUNC(frame_size)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               481 libavcodec/cbs_av1_syntax_template.c     CodedBitstreamAV1Context  *priv = ctx->priv_data;
ctx               496 libavcodec/cbs_av1_syntax_template.c     CHECK(FUNC(superres_params)(ctx, rw, current));
ctx               501 libavcodec/cbs_av1_syntax_template.c static int FUNC(render_size)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               504 libavcodec/cbs_av1_syntax_template.c     CodedBitstreamAV1Context *priv = ctx->priv_data;
ctx               523 libavcodec/cbs_av1_syntax_template.c static int FUNC(frame_size_with_refs)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               526 libavcodec/cbs_av1_syntax_template.c     CodedBitstreamAV1Context *priv = ctx->priv_data;
ctx               536 libavcodec/cbs_av1_syntax_template.c                 av_log(ctx->log_ctx, AV_LOG_ERROR,
ctx               553 libavcodec/cbs_av1_syntax_template.c         CHECK(FUNC(frame_size)(ctx, rw, current));
ctx               554 libavcodec/cbs_av1_syntax_template.c         CHECK(FUNC(render_size)(ctx, rw, current));
ctx               556 libavcodec/cbs_av1_syntax_template.c         CHECK(FUNC(superres_params)(ctx, rw, current));
ctx               562 libavcodec/cbs_av1_syntax_template.c static int FUNC(interpolation_filter)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               577 libavcodec/cbs_av1_syntax_template.c static int FUNC(tile_info)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               580 libavcodec/cbs_av1_syntax_template.c     CodedBitstreamAV1Context  *priv = ctx->priv_data;
ctx               675 libavcodec/cbs_av1_syntax_template.c static int FUNC(quantization_params)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               678 libavcodec/cbs_av1_syntax_template.c     CodedBitstreamAV1Context  *priv = ctx->priv_data;
ctx               722 libavcodec/cbs_av1_syntax_template.c static int FUNC(segmentation_params)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               773 libavcodec/cbs_av1_syntax_template.c static int FUNC(delta_q_params)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               789 libavcodec/cbs_av1_syntax_template.c static int FUNC(delta_lf_params)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               815 libavcodec/cbs_av1_syntax_template.c static int FUNC(loop_filter_params)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               818 libavcodec/cbs_av1_syntax_template.c     CodedBitstreamAV1Context *priv = ctx->priv_data;
ctx               870 libavcodec/cbs_av1_syntax_template.c static int FUNC(cdef_params)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               873 libavcodec/cbs_av1_syntax_template.c     CodedBitstreamAV1Context  *priv = ctx->priv_data;
ctx               905 libavcodec/cbs_av1_syntax_template.c static int FUNC(lr_params)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               908 libavcodec/cbs_av1_syntax_template.c     CodedBitstreamAV1Context  *priv = ctx->priv_data;
ctx               946 libavcodec/cbs_av1_syntax_template.c static int FUNC(read_tx_mode)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               949 libavcodec/cbs_av1_syntax_template.c     CodedBitstreamAV1Context *priv = ctx->priv_data;
ctx               960 libavcodec/cbs_av1_syntax_template.c static int FUNC(frame_reference_mode)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               974 libavcodec/cbs_av1_syntax_template.c static int FUNC(skip_mode_params)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               977 libavcodec/cbs_av1_syntax_template.c     CodedBitstreamAV1Context  *priv = ctx->priv_data;
ctx              1054 libavcodec/cbs_av1_syntax_template.c static int FUNC(global_motion_param)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1083 libavcodec/cbs_av1_syntax_template.c static int FUNC(global_motion_params)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1109 libavcodec/cbs_av1_syntax_template.c             CHECK(FUNC(global_motion_param)(ctx, rw, current, type, ref, 2));
ctx              1110 libavcodec/cbs_av1_syntax_template.c             CHECK(FUNC(global_motion_param)(ctx, rw, current, type, ref, 3));
ctx              1112 libavcodec/cbs_av1_syntax_template.c                 CHECK(FUNC(global_motion_param)(ctx, rw, current, type, ref, 4));
ctx              1113 libavcodec/cbs_av1_syntax_template.c                 CHECK(FUNC(global_motion_param)(ctx, rw, current, type, ref, 5));
ctx              1120 libavcodec/cbs_av1_syntax_template.c             CHECK(FUNC(global_motion_param)(ctx, rw, current, type, ref, 0));
ctx              1121 libavcodec/cbs_av1_syntax_template.c             CHECK(FUNC(global_motion_param)(ctx, rw, current, type, ref, 1));
ctx              1128 libavcodec/cbs_av1_syntax_template.c static int FUNC(film_grain_params)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1131 libavcodec/cbs_av1_syntax_template.c     CodedBitstreamAV1Context  *priv = ctx->priv_data;
ctx              1234 libavcodec/cbs_av1_syntax_template.c static int FUNC(uncompressed_header)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1237 libavcodec/cbs_av1_syntax_template.c     CodedBitstreamAV1Context *priv = ctx->priv_data;
ctx              1243 libavcodec/cbs_av1_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "No sequence header available: "
ctx              1411 libavcodec/cbs_av1_syntax_template.c         CHECK(FUNC(frame_size)(ctx, rw, current));
ctx              1412 libavcodec/cbs_av1_syntax_template.c         CHECK(FUNC(render_size)(ctx, rw, current));
ctx              1428 libavcodec/cbs_av1_syntax_template.c                 CHECK(FUNC(set_frame_refs)(ctx, rw, current));
ctx              1443 libavcodec/cbs_av1_syntax_template.c             CHECK(FUNC(frame_size_with_refs)(ctx, rw, current));
ctx              1445 libavcodec/cbs_av1_syntax_template.c             CHECK(FUNC(frame_size)(ctx, rw, current));
ctx              1446 libavcodec/cbs_av1_syntax_template.c             CHECK(FUNC(render_size)(ctx, rw, current));
ctx              1454 libavcodec/cbs_av1_syntax_template.c         CHECK(FUNC(interpolation_filter)(ctx, rw, current));
ctx              1488 libavcodec/cbs_av1_syntax_template.c     CHECK(FUNC(tile_info)(ctx, rw, current));
ctx              1490 libavcodec/cbs_av1_syntax_template.c     CHECK(FUNC(quantization_params)(ctx, rw, current));
ctx              1492 libavcodec/cbs_av1_syntax_template.c     CHECK(FUNC(segmentation_params)(ctx, rw, current));
ctx              1494 libavcodec/cbs_av1_syntax_template.c     CHECK(FUNC(delta_q_params)(ctx, rw, current));
ctx              1496 libavcodec/cbs_av1_syntax_template.c     CHECK(FUNC(delta_lf_params)(ctx, rw, current));
ctx              1520 libavcodec/cbs_av1_syntax_template.c     CHECK(FUNC(loop_filter_params)(ctx, rw, current));
ctx              1522 libavcodec/cbs_av1_syntax_template.c     CHECK(FUNC(cdef_params)(ctx, rw, current));
ctx              1524 libavcodec/cbs_av1_syntax_template.c     CHECK(FUNC(lr_params)(ctx, rw, current));
ctx              1526 libavcodec/cbs_av1_syntax_template.c     CHECK(FUNC(read_tx_mode)(ctx, rw, current));
ctx              1528 libavcodec/cbs_av1_syntax_template.c     CHECK(FUNC(frame_reference_mode)(ctx, rw, current));
ctx              1530 libavcodec/cbs_av1_syntax_template.c     CHECK(FUNC(skip_mode_params)(ctx, rw, current));
ctx              1540 libavcodec/cbs_av1_syntax_template.c     CHECK(FUNC(global_motion_params)(ctx, rw, current));
ctx              1542 libavcodec/cbs_av1_syntax_template.c     CHECK(FUNC(film_grain_params)(ctx, rw, current));
ctx              1563 libavcodec/cbs_av1_syntax_template.c     av_log(ctx->log_ctx, AV_LOG_DEBUG, "Frame %d:  size %dx%d  "
ctx              1575 libavcodec/cbs_av1_syntax_template.c static int FUNC(frame_header_obu)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1579 libavcodec/cbs_av1_syntax_template.c     CodedBitstreamAV1Context *priv = ctx->priv_data;
ctx              1585 libavcodec/cbs_av1_syntax_template.c             av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid repeated "
ctx              1618 libavcodec/cbs_av1_syntax_template.c         CHECK(FUNC(uncompressed_header)(ctx, rw, current));
ctx              1664 libavcodec/cbs_av1_syntax_template.c static int FUNC(tile_group_obu)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1667 libavcodec/cbs_av1_syntax_template.c     CodedBitstreamAV1Context *priv = ctx->priv_data;
ctx              1689 libavcodec/cbs_av1_syntax_template.c     CHECK(FUNC(byte_alignment)(ctx, rw));
ctx              1700 libavcodec/cbs_av1_syntax_template.c static int FUNC(frame_obu)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1706 libavcodec/cbs_av1_syntax_template.c     CHECK(FUNC(frame_header_obu)(ctx, rw, &current->header,
ctx              1709 libavcodec/cbs_av1_syntax_template.c     CHECK(FUNC(byte_alignment)(ctx, rw));
ctx              1711 libavcodec/cbs_av1_syntax_template.c     CHECK(FUNC(tile_group_obu)(ctx, rw, &current->tile_group));
ctx              1716 libavcodec/cbs_av1_syntax_template.c static int FUNC(tile_list_obu)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1731 libavcodec/cbs_av1_syntax_template.c static int FUNC(metadata_hdr_cll)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1742 libavcodec/cbs_av1_syntax_template.c static int FUNC(metadata_hdr_mdcv)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1764 libavcodec/cbs_av1_syntax_template.c static int FUNC(scalability_structure)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1767 libavcodec/cbs_av1_syntax_template.c     CodedBitstreamAV1Context *priv = ctx->priv_data;
ctx              1772 libavcodec/cbs_av1_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "No sequence header available: "
ctx              1811 libavcodec/cbs_av1_syntax_template.c static int FUNC(metadata_scalability)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1819 libavcodec/cbs_av1_syntax_template.c         CHECK(FUNC(scalability_structure)(ctx, rw, current));
ctx              1824 libavcodec/cbs_av1_syntax_template.c static int FUNC(metadata_itut_t35)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1852 libavcodec/cbs_av1_syntax_template.c static int FUNC(metadata_timecode)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1890 libavcodec/cbs_av1_syntax_template.c static int FUNC(metadata_obu)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1899 libavcodec/cbs_av1_syntax_template.c         CHECK(FUNC(metadata_hdr_cll)(ctx, rw, &current->metadata.hdr_cll));
ctx              1902 libavcodec/cbs_av1_syntax_template.c         CHECK(FUNC(metadata_hdr_mdcv)(ctx, rw, &current->metadata.hdr_mdcv));
ctx              1905 libavcodec/cbs_av1_syntax_template.c         CHECK(FUNC(metadata_scalability)(ctx, rw, &current->metadata.scalability));
ctx              1908 libavcodec/cbs_av1_syntax_template.c         CHECK(FUNC(metadata_itut_t35)(ctx, rw, &current->metadata.itut_t35));
ctx              1911 libavcodec/cbs_av1_syntax_template.c         CHECK(FUNC(metadata_timecode)(ctx, rw, &current->metadata.timecode));
ctx              1921 libavcodec/cbs_av1_syntax_template.c static int FUNC(padding_obu)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               475 libavcodec/cbs_h264.h int ff_cbs_h264_add_sei_message(CodedBitstreamContext *ctx,
ctx               488 libavcodec/cbs_h264.h void ff_cbs_h264_delete_sei_message(CodedBitstreamContext *ctx,
ctx                34 libavcodec/cbs_h2645.c static int cbs_read_ue_golomb(CodedBitstreamContext *ctx, GetBitContext *gbc,
ctx                48 libavcodec/cbs_h2645.c             av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid ue-golomb code at "
ctx                58 libavcodec/cbs_h2645.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid ue-golomb code at "
ctx                71 libavcodec/cbs_h2645.c     if (ctx->trace_enable)
ctx                72 libavcodec/cbs_h2645.c         ff_cbs_trace_syntax_element(ctx, position, name, subscripts,
ctx                76 libavcodec/cbs_h2645.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "%s out of range: "
ctx                86 libavcodec/cbs_h2645.c static int cbs_read_se_golomb(CodedBitstreamContext *ctx, GetBitContext *gbc,
ctx               101 libavcodec/cbs_h2645.c             av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid se-golomb code at "
ctx               111 libavcodec/cbs_h2645.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid se-golomb code at "
ctx               127 libavcodec/cbs_h2645.c     if (ctx->trace_enable)
ctx               128 libavcodec/cbs_h2645.c         ff_cbs_trace_syntax_element(ctx, position, name, subscripts,
ctx               132 libavcodec/cbs_h2645.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "%s out of range: "
ctx               142 libavcodec/cbs_h2645.c static int cbs_write_ue_golomb(CodedBitstreamContext *ctx, PutBitContext *pbc,
ctx               150 libavcodec/cbs_h2645.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "%s out of range: "
ctx               161 libavcodec/cbs_h2645.c     if (ctx->trace_enable) {
ctx               172 libavcodec/cbs_h2645.c         ff_cbs_trace_syntax_element(ctx, put_bits_count(pbc),
ctx               185 libavcodec/cbs_h2645.c static int cbs_write_se_golomb(CodedBitstreamContext *ctx, PutBitContext *pbc,
ctx               194 libavcodec/cbs_h2645.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "%s out of range: "
ctx               212 libavcodec/cbs_h2645.c     if (ctx->trace_enable) {
ctx               223 libavcodec/cbs_h2645.c         ff_cbs_trace_syntax_element(ctx, put_bits_count(pbc),
ctx               247 libavcodec/cbs_h2645.c         ff_cbs_trace_header(ctx, name); \
ctx               303 libavcodec/cbs_h2645.c         CHECK(ff_cbs_read_unsigned(ctx, rw, width, #name, \
ctx               310 libavcodec/cbs_h2645.c         CHECK(cbs_read_ue_golomb(ctx, rw, #name, \
ctx               317 libavcodec/cbs_h2645.c         CHECK(ff_cbs_read_signed(ctx, rw, width, #name, \
ctx               324 libavcodec/cbs_h2645.c         CHECK(cbs_read_se_golomb(ctx, rw, #name, \
ctx               386 libavcodec/cbs_h2645.c         CHECK(ff_cbs_write_unsigned(ctx, rw, width, #name, \
ctx               392 libavcodec/cbs_h2645.c         CHECK(cbs_write_ue_golomb(ctx, rw, #name, \
ctx               398 libavcodec/cbs_h2645.c         CHECK(ff_cbs_write_signed(ctx, rw, width, #name, \
ctx               404 libavcodec/cbs_h2645.c         CHECK(cbs_write_se_golomb(ctx, rw, #name, \
ctx               411 libavcodec/cbs_h2645.c             av_log(ctx->log_ctx, AV_LOG_ERROR, \
ctx               425 libavcodec/cbs_h2645.c             av_log(ctx->log_ctx, AV_LOG_ERROR, "%s must be set " \
ctx               569 libavcodec/cbs_h2645.c static int cbs_h2645_fragment_add_nals(CodedBitstreamContext *ctx,
ctx               587 libavcodec/cbs_h2645.c             av_log(ctx->log_ctx, AV_LOG_VERBOSE, "Discarding empty 0 NAL unit\n");
ctx               594 libavcodec/cbs_h2645.c         err = ff_cbs_insert_unit_data(ctx, frag, -1, nal->type,
ctx               603 libavcodec/cbs_h2645.c static int cbs_h2645_split_fragment(CodedBitstreamContext *ctx,
ctx               607 libavcodec/cbs_h2645.c     enum AVCodecID codec_id = ctx->codec->codec_id;
ctx               608 libavcodec/cbs_h2645.c     CodedBitstreamH2645Context *priv = ctx->priv_data;
ctx               630 libavcodec/cbs_h2645.c             av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid AVCC header: "
ctx               653 libavcodec/cbs_h2645.c                                     ctx->log_ctx, 1, 2, AV_CODEC_ID_H264, 1, 1);
ctx               655 libavcodec/cbs_h2645.c             av_log(ctx->log_ctx, AV_LOG_ERROR, "Failed to split AVCC SPS array.\n");
ctx               658 libavcodec/cbs_h2645.c         err = cbs_h2645_fragment_add_nals(ctx, frag, &priv->read_packet);
ctx               677 libavcodec/cbs_h2645.c                                     ctx->log_ctx, 1, 2, AV_CODEC_ID_H264, 1, 1);
ctx               679 libavcodec/cbs_h2645.c             av_log(ctx->log_ctx, AV_LOG_ERROR, "Failed to split AVCC PPS array.\n");
ctx               682 libavcodec/cbs_h2645.c         err = cbs_h2645_fragment_add_nals(ctx, frag, &priv->read_packet);
ctx               687 libavcodec/cbs_h2645.c             av_log(ctx->log_ctx, AV_LOG_WARNING, "%u bytes left at end of AVCC "
ctx               705 libavcodec/cbs_h2645.c             av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid HVCC header: "
ctx               731 libavcodec/cbs_h2645.c                                         ctx->log_ctx, 1, 2, AV_CODEC_ID_HEVC, 1, 1);
ctx               733 libavcodec/cbs_h2645.c                 av_log(ctx->log_ctx, AV_LOG_ERROR, "Failed to split "
ctx               738 libavcodec/cbs_h2645.c             err = cbs_h2645_fragment_add_nals(ctx, frag, &priv->read_packet);
ctx               748 libavcodec/cbs_h2645.c                                     ctx->log_ctx,
ctx               754 libavcodec/cbs_h2645.c         err = cbs_h2645_fragment_add_nals(ctx, frag, &priv->read_packet);
ctx               763 libavcodec/cbs_h2645.c static int cbs_h26 ## h26n ## _replace_ ## ps_var(CodedBitstreamContext *ctx, \
ctx               766 libavcodec/cbs_h2645.c     CodedBitstreamH26 ## h26n ## Context *priv = ctx->priv_data; \
ctx               770 libavcodec/cbs_h2645.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid " #ps_name \
ctx               795 libavcodec/cbs_h2645.c static int cbs_h264_read_nal_unit(CodedBitstreamContext *ctx,
ctx               810 libavcodec/cbs_h2645.c             err = ff_cbs_alloc_unit_content(ctx, unit, sizeof(*sps), NULL);
ctx               815 libavcodec/cbs_h2645.c             err = cbs_h264_read_sps(ctx, &gbc, sps);
ctx               819 libavcodec/cbs_h2645.c             err = cbs_h264_replace_sps(ctx, unit);
ctx               827 libavcodec/cbs_h2645.c             err = ff_cbs_alloc_unit_content(ctx, unit,
ctx               833 libavcodec/cbs_h2645.c             err = cbs_h264_read_sps_extension(ctx, &gbc, unit->content);
ctx               843 libavcodec/cbs_h2645.c             err = ff_cbs_alloc_unit_content(ctx, unit, sizeof(*pps),
ctx               849 libavcodec/cbs_h2645.c             err = cbs_h264_read_pps(ctx, &gbc, pps);
ctx               853 libavcodec/cbs_h2645.c             err = cbs_h264_replace_pps(ctx, unit);
ctx               866 libavcodec/cbs_h2645.c             err = ff_cbs_alloc_unit_content(ctx, unit, sizeof(*slice),
ctx               872 libavcodec/cbs_h2645.c             err = cbs_h264_read_slice_header(ctx, &gbc, &slice->header);
ctx               893 libavcodec/cbs_h2645.c             err = ff_cbs_alloc_unit_content(ctx, unit,
ctx               898 libavcodec/cbs_h2645.c             err = cbs_h264_read_aud(ctx, &gbc, unit->content);
ctx               906 libavcodec/cbs_h2645.c             err = ff_cbs_alloc_unit_content(ctx, unit, sizeof(H264RawSEI),
ctx               911 libavcodec/cbs_h2645.c             err = cbs_h264_read_sei(ctx, &gbc, unit->content);
ctx               919 libavcodec/cbs_h2645.c             err = ff_cbs_alloc_unit_content(ctx, unit,
ctx               924 libavcodec/cbs_h2645.c             err = cbs_h264_read_filler(ctx, &gbc, unit->content);
ctx               933 libavcodec/cbs_h2645.c             err = ff_cbs_alloc_unit_content(ctx, unit,
ctx               941 libavcodec/cbs_h2645.c                    cbs_h264_read_end_of_stream)(ctx, &gbc, unit->content);
ctx               954 libavcodec/cbs_h2645.c static int cbs_h265_read_nal_unit(CodedBitstreamContext *ctx,
ctx               969 libavcodec/cbs_h2645.c             err = ff_cbs_alloc_unit_content(ctx, unit, sizeof(*vps),
ctx               975 libavcodec/cbs_h2645.c             err = cbs_h265_read_vps(ctx, &gbc, vps);
ctx               979 libavcodec/cbs_h2645.c             err = cbs_h265_replace_vps(ctx, unit);
ctx               988 libavcodec/cbs_h2645.c             err = ff_cbs_alloc_unit_content(ctx, unit, sizeof(*sps),
ctx               994 libavcodec/cbs_h2645.c             err = cbs_h265_read_sps(ctx, &gbc, sps);
ctx               998 libavcodec/cbs_h2645.c             err = cbs_h265_replace_sps(ctx, unit);
ctx              1008 libavcodec/cbs_h2645.c             err = ff_cbs_alloc_unit_content(ctx, unit, sizeof(*pps),
ctx              1014 libavcodec/cbs_h2645.c             err = cbs_h265_read_pps(ctx, &gbc, pps);
ctx              1018 libavcodec/cbs_h2645.c             err = cbs_h265_replace_pps(ctx, unit);
ctx              1044 libavcodec/cbs_h2645.c             err = ff_cbs_alloc_unit_content(ctx, unit, sizeof(*slice),
ctx              1050 libavcodec/cbs_h2645.c             err = cbs_h265_read_slice_segment_header(ctx, &gbc, &slice->header);
ctx              1071 libavcodec/cbs_h2645.c             err = ff_cbs_alloc_unit_content(ctx, unit,
ctx              1076 libavcodec/cbs_h2645.c             err = cbs_h265_read_aud(ctx, &gbc, unit->content);
ctx              1085 libavcodec/cbs_h2645.c             err = ff_cbs_alloc_unit_content(ctx, unit, sizeof(H265RawSEI),
ctx              1091 libavcodec/cbs_h2645.c             err = cbs_h265_read_sei(ctx, &gbc, unit->content,
ctx              1106 libavcodec/cbs_h2645.c static int cbs_h2645_write_slice_data(CodedBitstreamContext *ctx,
ctx              1164 libavcodec/cbs_h2645.c static int cbs_h264_write_nal_unit(CodedBitstreamContext *ctx,
ctx              1175 libavcodec/cbs_h2645.c             err = cbs_h264_write_sps(ctx, pbc, sps);
ctx              1179 libavcodec/cbs_h2645.c             err = cbs_h264_replace_sps(ctx, unit);
ctx              1189 libavcodec/cbs_h2645.c             err = cbs_h264_write_sps_extension(ctx, pbc, sps_ext);
ctx              1199 libavcodec/cbs_h2645.c             err = cbs_h264_write_pps(ctx, pbc, pps);
ctx              1203 libavcodec/cbs_h2645.c             err = cbs_h264_replace_pps(ctx, unit);
ctx              1215 libavcodec/cbs_h2645.c             err = cbs_h264_write_slice_header(ctx, pbc, &slice->header);
ctx              1220 libavcodec/cbs_h2645.c                 err = cbs_h2645_write_slice_data(ctx, pbc, slice->data,
ctx              1234 libavcodec/cbs_h2645.c             err = cbs_h264_write_aud(ctx, pbc, unit->content);
ctx              1242 libavcodec/cbs_h2645.c             err = cbs_h264_write_sei(ctx, pbc, unit->content);
ctx              1250 libavcodec/cbs_h2645.c             err = cbs_h264_write_filler(ctx, pbc, unit->content);
ctx              1258 libavcodec/cbs_h2645.c             err = cbs_h264_write_end_of_sequence(ctx, pbc, unit->content);
ctx              1266 libavcodec/cbs_h2645.c             err = cbs_h264_write_end_of_stream(ctx, pbc, unit->content);
ctx              1273 libavcodec/cbs_h2645.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "Write unimplemented for "
ctx              1281 libavcodec/cbs_h2645.c static int cbs_h265_write_nal_unit(CodedBitstreamContext *ctx,
ctx              1292 libavcodec/cbs_h2645.c             err = cbs_h265_write_vps(ctx, pbc, vps);
ctx              1296 libavcodec/cbs_h2645.c             err = cbs_h265_replace_vps(ctx, unit);
ctx              1306 libavcodec/cbs_h2645.c             err = cbs_h265_write_sps(ctx, pbc, sps);
ctx              1310 libavcodec/cbs_h2645.c             err = cbs_h265_replace_sps(ctx, unit);
ctx              1320 libavcodec/cbs_h2645.c             err = cbs_h265_write_pps(ctx, pbc, pps);
ctx              1324 libavcodec/cbs_h2645.c             err = cbs_h265_replace_pps(ctx, unit);
ctx              1349 libavcodec/cbs_h2645.c             err = cbs_h265_write_slice_segment_header(ctx, pbc, &slice->header);
ctx              1354 libavcodec/cbs_h2645.c                 err = cbs_h2645_write_slice_data(ctx, pbc, slice->data,
ctx              1367 libavcodec/cbs_h2645.c             err = cbs_h265_write_aud(ctx, pbc, unit->content);
ctx              1376 libavcodec/cbs_h2645.c             err = cbs_h265_write_sei(ctx, pbc, unit->content,
ctx              1385 libavcodec/cbs_h2645.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "Write unimplemented for "
ctx              1393 libavcodec/cbs_h2645.c static int cbs_h2645_assemble_fragment(CodedBitstreamContext *ctx,
ctx              1421 libavcodec/cbs_h2645.c                 av_log(ctx->log_ctx, AV_LOG_WARNING, "Probably invalid "
ctx              1427 libavcodec/cbs_h2645.c         if ((ctx->codec->codec_id == AV_CODEC_ID_H264 &&
ctx              1430 libavcodec/cbs_h2645.c             (ctx->codec->codec_id == AV_CODEC_ID_HEVC &&
ctx              1480 libavcodec/cbs_h2645.c static void cbs_h264_close(CodedBitstreamContext *ctx)
ctx              1482 libavcodec/cbs_h2645.c     CodedBitstreamH264Context *h264 = ctx->priv_data;
ctx              1493 libavcodec/cbs_h2645.c static void cbs_h265_close(CodedBitstreamContext *ctx)
ctx              1495 libavcodec/cbs_h2645.c     CodedBitstreamH265Context *h265 = ctx->priv_data;
ctx              1534 libavcodec/cbs_h2645.c int ff_cbs_h264_add_sei_message(CodedBitstreamContext *ctx,
ctx              1580 libavcodec/cbs_h2645.c         err = ff_cbs_insert_unit_content(ctx, au, i, H264_NAL_SEI,
ctx              1596 libavcodec/cbs_h2645.c void ff_cbs_h264_delete_sei_message(CodedBitstreamContext *ctx,
ctx              1615 libavcodec/cbs_h2645.c         ff_cbs_delete_unit(ctx, au, i);
ctx                19 libavcodec/cbs_h264_syntax_template.c static int FUNC(rbsp_trailing_bits)(CodedBitstreamContext *ctx, RWContext *rw)
ctx                30 libavcodec/cbs_h264_syntax_template.c static int FUNC(nal_unit_header)(CodedBitstreamContext *ctx, RWContext *rw,
ctx                41 libavcodec/cbs_h264_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid NAL unit type %d.\n",
ctx                55 libavcodec/cbs_h264_syntax_template.c             av_log(ctx->log_ctx, AV_LOG_ERROR, "SVC not supported.\n");
ctx                59 libavcodec/cbs_h264_syntax_template.c             av_log(ctx->log_ctx, AV_LOG_ERROR, "3DAVC not supported.\n");
ctx                63 libavcodec/cbs_h264_syntax_template.c             av_log(ctx->log_ctx, AV_LOG_ERROR, "MVC not supported.\n");
ctx                71 libavcodec/cbs_h264_syntax_template.c static int FUNC(scaling_list)(CodedBitstreamContext *ctx, RWContext *rw,
ctx                88 libavcodec/cbs_h264_syntax_template.c static int FUNC(hrd_parameters)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               111 libavcodec/cbs_h264_syntax_template.c static int FUNC(vui_parameters)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               173 libavcodec/cbs_h264_syntax_template.c         CHECK(FUNC(hrd_parameters)(ctx, rw, &current->nal_hrd_parameters));
ctx               177 libavcodec/cbs_h264_syntax_template.c         CHECK(FUNC(hrd_parameters)(ctx, rw, &current->vcl_hrd_parameters));
ctx               220 libavcodec/cbs_h264_syntax_template.c static int FUNC(vui_parameters_default)(CodedBitstreamContext *ctx,
ctx               260 libavcodec/cbs_h264_syntax_template.c static int FUNC(sps)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               267 libavcodec/cbs_h264_syntax_template.c     CHECK(FUNC(nal_unit_header)(ctx, rw, &current->nal_unit_header,
ctx               308 libavcodec/cbs_h264_syntax_template.c                         CHECK(FUNC(scaling_list)(ctx, rw,
ctx               312 libavcodec/cbs_h264_syntax_template.c                         CHECK(FUNC(scaling_list)(ctx, rw,
ctx               363 libavcodec/cbs_h264_syntax_template.c         CHECK(FUNC(vui_parameters)(ctx, rw, &current->vui, current));
ctx               365 libavcodec/cbs_h264_syntax_template.c         CHECK(FUNC(vui_parameters_default)(ctx, rw, &current->vui, current));
ctx               367 libavcodec/cbs_h264_syntax_template.c     CHECK(FUNC(rbsp_trailing_bits)(ctx, rw));
ctx               372 libavcodec/cbs_h264_syntax_template.c static int FUNC(sps_extension)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               379 libavcodec/cbs_h264_syntax_template.c     CHECK(FUNC(nal_unit_header)(ctx, rw, &current->nal_unit_header,
ctx               399 libavcodec/cbs_h264_syntax_template.c     CHECK(FUNC(rbsp_trailing_bits)(ctx, rw));
ctx               404 libavcodec/cbs_h264_syntax_template.c static int FUNC(pps)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               407 libavcodec/cbs_h264_syntax_template.c     CodedBitstreamH264Context *h264 = ctx->priv_data;
ctx               413 libavcodec/cbs_h264_syntax_template.c     CHECK(FUNC(nal_unit_header)(ctx, rw, &current->nal_unit_header,
ctx               421 libavcodec/cbs_h264_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "SPS id %d not available.\n",
ctx               490 libavcodec/cbs_h264_syntax_template.c                         CHECK(FUNC(scaling_list)(ctx, rw,
ctx               494 libavcodec/cbs_h264_syntax_template.c                         CHECK(FUNC(scaling_list)(ctx, rw,
ctx               508 libavcodec/cbs_h264_syntax_template.c     CHECK(FUNC(rbsp_trailing_bits)(ctx, rw));
ctx               513 libavcodec/cbs_h264_syntax_template.c static int FUNC(sei_buffering_period)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               516 libavcodec/cbs_h264_syntax_template.c     CodedBitstreamH264Context *h264 = ctx->priv_data;
ctx               526 libavcodec/cbs_h264_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "SPS id %d not available.\n",
ctx               559 libavcodec/cbs_h264_syntax_template.c static int FUNC(sei_pic_timestamp)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               606 libavcodec/cbs_h264_syntax_template.c static int FUNC(sei_pic_timing)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               609 libavcodec/cbs_h264_syntax_template.c     CodedBitstreamH264Context *h264 = ctx->priv_data;
ctx               633 libavcodec/cbs_h264_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR,
ctx               647 libavcodec/cbs_h264_syntax_template.c             av_log(ctx->log_ctx, AV_LOG_ERROR,
ctx               669 libavcodec/cbs_h264_syntax_template.c                 CHECK(FUNC(sei_pic_timestamp)(ctx, rw,
ctx               677 libavcodec/cbs_h264_syntax_template.c static int FUNC(sei_pan_scan_rect)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               703 libavcodec/cbs_h264_syntax_template.c static int FUNC(sei_user_data_registered)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               721 libavcodec/cbs_h264_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR,
ctx               737 libavcodec/cbs_h264_syntax_template.c static int FUNC(sei_user_data_unregistered)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               747 libavcodec/cbs_h264_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR,
ctx               767 libavcodec/cbs_h264_syntax_template.c static int FUNC(sei_recovery_point)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               782 libavcodec/cbs_h264_syntax_template.c static int FUNC(sei_display_orientation)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               801 libavcodec/cbs_h264_syntax_template.c static int FUNC(sei_mastering_display_colour_volume)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               822 libavcodec/cbs_h264_syntax_template.c static int FUNC(sei_alternative_transfer_characteristics)(CodedBitstreamContext *ctx,
ctx               835 libavcodec/cbs_h264_syntax_template.c static int FUNC(sei_payload)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               850 libavcodec/cbs_h264_syntax_template.c               (ctx, rw, &current->payload.buffering_period));
ctx               854 libavcodec/cbs_h264_syntax_template.c               (ctx, rw, &current->payload.pic_timing));
ctx               858 libavcodec/cbs_h264_syntax_template.c               (ctx, rw, &current->payload.pan_scan_rect));
ctx               868 libavcodec/cbs_h264_syntax_template.c               (ctx, rw, &current->payload.user_data_registered, &current->payload_size));
ctx               872 libavcodec/cbs_h264_syntax_template.c               (ctx, rw, &current->payload.user_data_unregistered, &current->payload_size));
ctx               876 libavcodec/cbs_h264_syntax_template.c               (ctx, rw, &current->payload.recovery_point));
ctx               880 libavcodec/cbs_h264_syntax_template.c               (ctx, rw, &current->payload.display_orientation));
ctx               884 libavcodec/cbs_h264_syntax_template.c               (ctx, rw, &current->payload.mastering_display_colour_volume));
ctx               888 libavcodec/cbs_h264_syntax_template.c               (ctx, rw, &current->payload.alternative_transfer_characteristics));
ctx               910 libavcodec/cbs_h264_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "Incorrect SEI payload length: "
ctx               924 libavcodec/cbs_h264_syntax_template.c static int FUNC(sei)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               931 libavcodec/cbs_h264_syntax_template.c     CHECK(FUNC(nal_unit_header)(ctx, rw, &current->nal_unit_header,
ctx               958 libavcodec/cbs_h264_syntax_template.c         CHECK(FUNC(sei_payload)(ctx, rw, &current->payload[k]));
ctx               964 libavcodec/cbs_h264_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "Too many payloads in "
ctx               996 libavcodec/cbs_h264_syntax_template.c             CHECK(FUNC(sei_payload)(ctx, rw, &current->payload[k]));
ctx              1001 libavcodec/cbs_h264_syntax_template.c     CHECK(FUNC(rbsp_trailing_bits)(ctx, rw));
ctx              1006 libavcodec/cbs_h264_syntax_template.c static int FUNC(aud)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1013 libavcodec/cbs_h264_syntax_template.c     CHECK(FUNC(nal_unit_header)(ctx, rw, &current->nal_unit_header,
ctx              1018 libavcodec/cbs_h264_syntax_template.c     CHECK(FUNC(rbsp_trailing_bits)(ctx, rw));
ctx              1023 libavcodec/cbs_h264_syntax_template.c static int FUNC(ref_pic_list_modification)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1026 libavcodec/cbs_h264_syntax_template.c     CodedBitstreamH264Context *h264 = ctx->priv_data;
ctx              1082 libavcodec/cbs_h264_syntax_template.c static int FUNC(pred_weight_table)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1085 libavcodec/cbs_h264_syntax_template.c     CodedBitstreamH264Context *h264 = ctx->priv_data;
ctx              1135 libavcodec/cbs_h264_syntax_template.c static int FUNC(dec_ref_pic_marking)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1138 libavcodec/cbs_h264_syntax_template.c     CodedBitstreamH264Context *h264 = ctx->priv_data;
ctx              1176 libavcodec/cbs_h264_syntax_template.c                 av_log(ctx->log_ctx, AV_LOG_ERROR, "Too many "
ctx              1186 libavcodec/cbs_h264_syntax_template.c static int FUNC(slice_header)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1189 libavcodec/cbs_h264_syntax_template.c     CodedBitstreamH264Context *h264 = ctx->priv_data;
ctx              1199 libavcodec/cbs_h264_syntax_template.c     CHECK(FUNC(nal_unit_header)(ctx, rw, &current->nal_unit_header,
ctx              1206 libavcodec/cbs_h264_syntax_template.c             av_log(ctx->log_ctx, AV_LOG_ERROR, "Auxiliary slice "
ctx              1226 libavcodec/cbs_h264_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid slice type %d "
ctx              1235 libavcodec/cbs_h264_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "PPS id %d not available.\n",
ctx              1243 libavcodec/cbs_h264_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "SPS id %d not available.\n",
ctx              1317 libavcodec/cbs_h264_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "MVC / 3DAVC not supported.\n");
ctx              1320 libavcodec/cbs_h264_syntax_template.c         CHECK(FUNC(ref_pic_list_modification)(ctx, rw, current));
ctx              1325 libavcodec/cbs_h264_syntax_template.c         CHECK(FUNC(pred_weight_table)(ctx, rw, current));
ctx              1329 libavcodec/cbs_h264_syntax_template.c         CHECK(FUNC(dec_ref_pic_marking)(ctx, rw, current, idr_pic_flag));
ctx              1382 libavcodec/cbs_h264_syntax_template.c static int FUNC(filler)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1389 libavcodec/cbs_h264_syntax_template.c     CHECK(FUNC(nal_unit_header)(ctx, rw, &current->nal_unit_header,
ctx              1405 libavcodec/cbs_h264_syntax_template.c     CHECK(FUNC(rbsp_trailing_bits)(ctx, rw));
ctx              1410 libavcodec/cbs_h264_syntax_template.c static int FUNC(end_of_sequence)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1415 libavcodec/cbs_h264_syntax_template.c     return FUNC(nal_unit_header)(ctx, rw, current,
ctx              1419 libavcodec/cbs_h264_syntax_template.c static int FUNC(end_of_stream)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1424 libavcodec/cbs_h264_syntax_template.c     return FUNC(nal_unit_header)(ctx, rw, current,
ctx                19 libavcodec/cbs_h265_syntax_template.c static int FUNC(rbsp_trailing_bits)(CodedBitstreamContext *ctx, RWContext *rw)
ctx                30 libavcodec/cbs_h265_syntax_template.c static int FUNC(nal_unit_header)(CodedBitstreamContext *ctx, RWContext *rw,
ctx                50 libavcodec/cbs_h265_syntax_template.c static int FUNC(byte_alignment)(CodedBitstreamContext *ctx, RWContext *rw)
ctx                61 libavcodec/cbs_h265_syntax_template.c static int FUNC(extension_data)(CodedBitstreamContext *ctx, RWContext *rw,
ctx                88 libavcodec/cbs_h265_syntax_template.c static int FUNC(profile_tier_level)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               229 libavcodec/cbs_h265_syntax_template.c static int FUNC(sub_layer_hrd_parameters)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               254 libavcodec/cbs_h265_syntax_template.c static int FUNC(hrd_parameters)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               311 libavcodec/cbs_h265_syntax_template.c             CHECK(FUNC(sub_layer_hrd_parameters)(ctx, rw, current, 0, i));
ctx               313 libavcodec/cbs_h265_syntax_template.c             CHECK(FUNC(sub_layer_hrd_parameters)(ctx, rw, current, 1, i));
ctx               319 libavcodec/cbs_h265_syntax_template.c static int FUNC(vui_parameters)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               392 libavcodec/cbs_h265_syntax_template.c             CHECK(FUNC(hrd_parameters)(ctx, rw, &current->hrd_parameters,
ctx               420 libavcodec/cbs_h265_syntax_template.c static int FUNC(vps)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               427 libavcodec/cbs_h265_syntax_template.c     CHECK(FUNC(nal_unit_header)(ctx, rw, &current->nal_unit_header, HEVC_NAL_VPS));
ctx               439 libavcodec/cbs_h265_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid stream: "
ctx               447 libavcodec/cbs_h265_syntax_template.c     CHECK(FUNC(profile_tier_level)(ctx, rw, &current->profile_tier_level,
ctx               498 libavcodec/cbs_h265_syntax_template.c             CHECK(FUNC(hrd_parameters)(ctx, rw, &current->hrd_parameters[i],
ctx               506 libavcodec/cbs_h265_syntax_template.c         CHECK(FUNC(extension_data)(ctx, rw, &current->extension_data));
ctx               508 libavcodec/cbs_h265_syntax_template.c     CHECK(FUNC(rbsp_trailing_bits)(ctx, rw));
ctx               513 libavcodec/cbs_h265_syntax_template.c static int FUNC(st_ref_pic_set)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               559 libavcodec/cbs_h265_syntax_template.c             av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid stream: "
ctx               668 libavcodec/cbs_h265_syntax_template.c static int FUNC(scaling_list_data)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               699 libavcodec/cbs_h265_syntax_template.c static int FUNC(sps_range_extension)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               717 libavcodec/cbs_h265_syntax_template.c static int FUNC(sps_scc_extension)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               747 libavcodec/cbs_h265_syntax_template.c static int FUNC(vui_parameters_default)(CodedBitstreamContext *ctx,
ctx               773 libavcodec/cbs_h265_syntax_template.c static int FUNC(sps)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               776 libavcodec/cbs_h265_syntax_template.c     CodedBitstreamH265Context *h265 = ctx->priv_data;
ctx               784 libavcodec/cbs_h265_syntax_template.c     CHECK(FUNC(nal_unit_header)(ctx, rw, &current->nal_unit_header, HEVC_NAL_SPS));
ctx               793 libavcodec/cbs_h265_syntax_template.c             av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid stream: "
ctx               802 libavcodec/cbs_h265_syntax_template.c             av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid stream: "
ctx               809 libavcodec/cbs_h265_syntax_template.c     CHECK(FUNC(profile_tier_level)(ctx, rw, &current->profile_tier_level,
ctx               873 libavcodec/cbs_h265_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid dimensions: %ux%u not divisible "
ctx               894 libavcodec/cbs_h265_syntax_template.c             CHECK(FUNC(scaling_list_data)(ctx, rw, &current->scaling_list));
ctx               919 libavcodec/cbs_h265_syntax_template.c         CHECK(FUNC(st_ref_pic_set)(ctx, rw, &current->st_ref_pic_set[i], i, current));
ctx               936 libavcodec/cbs_h265_syntax_template.c         CHECK(FUNC(vui_parameters)(ctx, rw, &current->vui, current));
ctx               938 libavcodec/cbs_h265_syntax_template.c         CHECK(FUNC(vui_parameters_default)(ctx, rw, &current->vui, current));
ctx               950 libavcodec/cbs_h265_syntax_template.c         CHECK(FUNC(sps_range_extension)(ctx, rw, current));
ctx               956 libavcodec/cbs_h265_syntax_template.c         CHECK(FUNC(sps_scc_extension)(ctx, rw, current));
ctx               958 libavcodec/cbs_h265_syntax_template.c         CHECK(FUNC(extension_data)(ctx, rw, &current->extension_data));
ctx               960 libavcodec/cbs_h265_syntax_template.c     CHECK(FUNC(rbsp_trailing_bits)(ctx, rw));
ctx               965 libavcodec/cbs_h265_syntax_template.c static int FUNC(pps_range_extension)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               968 libavcodec/cbs_h265_syntax_template.c     CodedBitstreamH265Context *h265 = ctx->priv_data;
ctx               993 libavcodec/cbs_h265_syntax_template.c static int FUNC(pps_scc_extension)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1033 libavcodec/cbs_h265_syntax_template.c static int FUNC(pps)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1036 libavcodec/cbs_h265_syntax_template.c     CodedBitstreamH265Context *h265 = ctx->priv_data;
ctx              1042 libavcodec/cbs_h265_syntax_template.c     CHECK(FUNC(nal_unit_header)(ctx, rw, &current->nal_unit_header, HEVC_NAL_PPS));
ctx              1048 libavcodec/cbs_h265_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "SPS id %d not available.\n",
ctx              1122 libavcodec/cbs_h265_syntax_template.c         CHECK(FUNC(scaling_list_data)(ctx, rw, &current->scaling_list));
ctx              1141 libavcodec/cbs_h265_syntax_template.c         CHECK(FUNC(pps_range_extension)(ctx, rw, current));
ctx              1147 libavcodec/cbs_h265_syntax_template.c         CHECK(FUNC(pps_scc_extension)(ctx, rw, current));
ctx              1149 libavcodec/cbs_h265_syntax_template.c         CHECK(FUNC(extension_data)(ctx, rw, &current->extension_data));
ctx              1151 libavcodec/cbs_h265_syntax_template.c     CHECK(FUNC(rbsp_trailing_bits)(ctx, rw));
ctx              1156 libavcodec/cbs_h265_syntax_template.c static int FUNC(aud)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1163 libavcodec/cbs_h265_syntax_template.c     CHECK(FUNC(nal_unit_header)(ctx, rw, &current->nal_unit_header, HEVC_NAL_AUD));
ctx              1167 libavcodec/cbs_h265_syntax_template.c     CHECK(FUNC(rbsp_trailing_bits)(ctx, rw));
ctx              1172 libavcodec/cbs_h265_syntax_template.c static int FUNC(ref_pic_lists_modification)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1198 libavcodec/cbs_h265_syntax_template.c static int FUNC(pred_weight_table)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1201 libavcodec/cbs_h265_syntax_template.c     CodedBitstreamH265Context *h265 = ctx->priv_data;
ctx              1298 libavcodec/cbs_h265_syntax_template.c static int FUNC(slice_segment_header)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1301 libavcodec/cbs_h265_syntax_template.c     CodedBitstreamH265Context *h265 = ctx->priv_data;
ctx              1311 libavcodec/cbs_h265_syntax_template.c     CHECK(FUNC(nal_unit_header)(ctx, rw, &current->nal_unit_header, -1));
ctx              1323 libavcodec/cbs_h265_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "PPS id %d not available.\n",
ctx              1331 libavcodec/cbs_h265_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "SPS id %d not available.\n",
ctx              1377 libavcodec/cbs_h265_syntax_template.c                 CHECK(FUNC(st_ref_pic_set)(ctx, rw, &current->short_term_ref_pic_set,
ctx              1467 libavcodec/cbs_h265_syntax_template.c                 CHECK(FUNC(ref_pic_lists_modification)(ctx, rw, current,
ctx              1496 libavcodec/cbs_h265_syntax_template.c                 CHECK(FUNC(pred_weight_table)(ctx, rw, current));
ctx              1576 libavcodec/cbs_h265_syntax_template.c             av_log(ctx->log_ctx, AV_LOG_ERROR, "Too many entry points: "
ctx              1594 libavcodec/cbs_h265_syntax_template.c     CHECK(FUNC(byte_alignment)(ctx, rw));
ctx              1599 libavcodec/cbs_h265_syntax_template.c static int FUNC(sei_buffering_period)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1604 libavcodec/cbs_h265_syntax_template.c     CodedBitstreamH265Context *h265 = ctx->priv_data;
ctx              1620 libavcodec/cbs_h265_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "SPS id %d not available.\n",
ctx              1628 libavcodec/cbs_h265_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "Buffering period SEI requires "
ctx              1635 libavcodec/cbs_h265_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "Buffering period SEI requires "
ctx              1710 libavcodec/cbs_h265_syntax_template.c static int FUNC(sei_pic_timing)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1713 libavcodec/cbs_h265_syntax_template.c     CodedBitstreamH265Context *h265 = ctx->priv_data;
ctx              1722 libavcodec/cbs_h265_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR,
ctx              1785 libavcodec/cbs_h265_syntax_template.c static int FUNC(sei_pan_scan_rect)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1811 libavcodec/cbs_h265_syntax_template.c static int FUNC(sei_user_data_registered)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1829 libavcodec/cbs_h265_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR,
ctx              1845 libavcodec/cbs_h265_syntax_template.c static int FUNC(sei_user_data_unregistered)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1855 libavcodec/cbs_h265_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR,
ctx              1875 libavcodec/cbs_h265_syntax_template.c static int FUNC(sei_recovery_point)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1890 libavcodec/cbs_h265_syntax_template.c static int FUNC(sei_display_orientation)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1908 libavcodec/cbs_h265_syntax_template.c static int FUNC(sei_active_parameter_sets)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1911 libavcodec/cbs_h265_syntax_template.c     CodedBitstreamH265Context *h265 = ctx->priv_data;
ctx              1920 libavcodec/cbs_h265_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "VPS id %d not available for active "
ctx              1944 libavcodec/cbs_h265_syntax_template.c static int FUNC(sei_decoded_picture_hash)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              1947 libavcodec/cbs_h265_syntax_template.c     CodedBitstreamH265Context *h265 = ctx->priv_data;
ctx              1954 libavcodec/cbs_h265_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR,
ctx              1975 libavcodec/cbs_h265_syntax_template.c static int FUNC(sei_time_code)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              2025 libavcodec/cbs_h265_syntax_template.c static int FUNC(sei_mastering_display)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              2048 libavcodec/cbs_h265_syntax_template.c static int FUNC(sei_content_light_level)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              2061 libavcodec/cbs_h265_syntax_template.c static int FUNC(sei_alternative_transfer_characteristics)(CodedBitstreamContext *ctx,
ctx              2074 libavcodec/cbs_h265_syntax_template.c static int FUNC(sei_alpha_channel_info)(CodedBitstreamContext *ctx,
ctx              2102 libavcodec/cbs_h265_syntax_template.c static int FUNC(payload_extension)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              2138 libavcodec/cbs_h265_syntax_template.c static int FUNC(sei_payload)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              2154 libavcodec/cbs_h265_syntax_template.c                 av_log(ctx->log_ctx, AV_LOG_ERROR, "SEI type %s invalid " \
ctx              2159 libavcodec/cbs_h265_syntax_template.c                 av_log(ctx->log_ctx, AV_LOG_ERROR, "SEI type %s invalid " \
ctx              2167 libavcodec/cbs_h265_syntax_template.c         CHECK(FUNC(sei_ ## name)(ctx, rw, &current->payload.name)); \
ctx              2172 libavcodec/cbs_h265_syntax_template.c         CHECK(FUNC(sei_ ## name)(ctx, rw, &current->payload.name, \
ctx              2178 libavcodec/cbs_h265_syntax_template.c         CHECK(FUNC(sei_ ## name)(ctx, rw, &current->payload.name, \
ctx              2222 libavcodec/cbs_h265_syntax_template.c         CHECK(FUNC(payload_extension)(ctx, rw, &current->extension_data,
ctx              2236 libavcodec/cbs_h265_syntax_template.c static int FUNC(sei)(CodedBitstreamContext *ctx, RWContext *rw,
ctx              2246 libavcodec/cbs_h265_syntax_template.c     CHECK(FUNC(nal_unit_header)(ctx, rw, &current->nal_unit_header,
ctx              2274 libavcodec/cbs_h265_syntax_template.c         CHECK(FUNC(sei_payload)(ctx, rw, &current->payload[k], prefix));
ctx              2280 libavcodec/cbs_h265_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "Too many payloads in "
ctx              2312 libavcodec/cbs_h265_syntax_template.c             CHECK(FUNC(sei_payload)(ctx, rw, &current->payload[k], prefix));
ctx              2317 libavcodec/cbs_h265_syntax_template.c     CHECK(FUNC(rbsp_trailing_bits)(ctx, rw));
ctx                38 libavcodec/cbs_internal.h     int (*split_fragment)(CodedBitstreamContext *ctx,
ctx                44 libavcodec/cbs_internal.h     int (*read_unit)(CodedBitstreamContext *ctx,
ctx                49 libavcodec/cbs_internal.h     int (*write_unit)(CodedBitstreamContext *ctx,
ctx                55 libavcodec/cbs_internal.h     int (*assemble_fragment)(CodedBitstreamContext *ctx,
ctx                59 libavcodec/cbs_internal.h     void (*close)(CodedBitstreamContext *ctx);
ctx                65 libavcodec/cbs_internal.h void ff_cbs_trace_header(CodedBitstreamContext *ctx,
ctx                68 libavcodec/cbs_internal.h void ff_cbs_trace_syntax_element(CodedBitstreamContext *ctx, int position,
ctx                76 libavcodec/cbs_internal.h int ff_cbs_read_unsigned(CodedBitstreamContext *ctx, GetBitContext *gbc,
ctx                81 libavcodec/cbs_internal.h int ff_cbs_write_unsigned(CodedBitstreamContext *ctx, PutBitContext *pbc,
ctx                86 libavcodec/cbs_internal.h int ff_cbs_read_signed(CodedBitstreamContext *ctx, GetBitContext *gbc,
ctx                91 libavcodec/cbs_internal.h int ff_cbs_write_signed(CodedBitstreamContext *ctx, PutBitContext *pbc,
ctx                25 libavcodec/cbs_jpeg.c         ff_cbs_trace_header(ctx, name); \
ctx                49 libavcodec/cbs_jpeg.c         CHECK(ff_cbs_read_unsigned(ctx, rw, width, #name, \
ctx                70 libavcodec/cbs_jpeg.c         CHECK(ff_cbs_write_unsigned(ctx, rw, width, #name, \
ctx               106 libavcodec/cbs_jpeg.c static int cbs_jpeg_split_fragment(CodedBitstreamContext *ctx,
ctx               123 libavcodec/cbs_jpeg.c         av_log(ctx->log_ctx, AV_LOG_WARNING, "Discarding %d bytes at "
ctx               128 libavcodec/cbs_jpeg.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid JPEG image: "
ctx               134 libavcodec/cbs_jpeg.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid JPEG image: first "
ctx               140 libavcodec/cbs_jpeg.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid JPEG image: "
ctx               170 libavcodec/cbs_jpeg.c                 av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid JPEG image: "
ctx               176 libavcodec/cbs_jpeg.c                 av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid JPEG image: "
ctx               229 libavcodec/cbs_jpeg.c         err = ff_cbs_insert_unit_data(ctx, frag, unit, marker,
ctx               243 libavcodec/cbs_jpeg.c static int cbs_jpeg_read_unit(CodedBitstreamContext *ctx,
ctx               255 libavcodec/cbs_jpeg.c         err = ff_cbs_alloc_unit_content(ctx, unit,
ctx               261 libavcodec/cbs_jpeg.c         err = cbs_jpeg_read_frame_header(ctx, &gbc, unit->content);
ctx               267 libavcodec/cbs_jpeg.c         err = ff_cbs_alloc_unit_content(ctx, unit,
ctx               273 libavcodec/cbs_jpeg.c         err = cbs_jpeg_read_application_data(ctx, &gbc, unit->content);
ctx               281 libavcodec/cbs_jpeg.c         err = ff_cbs_alloc_unit_content(ctx, unit,
ctx               288 libavcodec/cbs_jpeg.c         err = cbs_jpeg_read_scan_header(ctx, &gbc, &scan->header);
ctx               307 libavcodec/cbs_jpeg.c                 err = ff_cbs_alloc_unit_content(ctx, unit, \
ctx               311 libavcodec/cbs_jpeg.c                 err = cbs_jpeg_read_ ## func(ctx, &gbc, unit->content); \
ctx               328 libavcodec/cbs_jpeg.c static int cbs_jpeg_write_scan(CodedBitstreamContext *ctx,
ctx               335 libavcodec/cbs_jpeg.c     err = cbs_jpeg_write_scan_header(ctx, pbc, &scan->header);
ctx               354 libavcodec/cbs_jpeg.c static int cbs_jpeg_write_segment(CodedBitstreamContext *ctx,
ctx               362 libavcodec/cbs_jpeg.c         err = cbs_jpeg_write_frame_header(ctx, pbc, unit->content);
ctx               365 libavcodec/cbs_jpeg.c         err = cbs_jpeg_write_application_data(ctx, pbc, unit->content);
ctx               370 libavcodec/cbs_jpeg.c                 err = cbs_jpeg_write_ ## func(ctx, pbc, unit->content); \
ctx               383 libavcodec/cbs_jpeg.c static int cbs_jpeg_write_unit(CodedBitstreamContext *ctx,
ctx               388 libavcodec/cbs_jpeg.c         return cbs_jpeg_write_scan   (ctx, unit, pbc);
ctx               390 libavcodec/cbs_jpeg.c         return cbs_jpeg_write_segment(ctx, unit, pbc);
ctx               393 libavcodec/cbs_jpeg.c static int cbs_jpeg_assemble_fragment(CodedBitstreamContext *ctx,
ctx                19 libavcodec/cbs_jpeg_syntax_template.c static int FUNC(frame_header)(CodedBitstreamContext *ctx, RWContext *rw,
ctx                43 libavcodec/cbs_jpeg_syntax_template.c static int FUNC(quantisation_table)(CodedBitstreamContext *ctx, RWContext *rw,
ctx                62 libavcodec/cbs_jpeg_syntax_template.c static int FUNC(dqt)(CodedBitstreamContext *ctx, RWContext *rw,
ctx                73 libavcodec/cbs_jpeg_syntax_template.c         CHECK(FUNC(quantisation_table)(ctx, rw, &current->table[i]));
ctx                78 libavcodec/cbs_jpeg_syntax_template.c static int FUNC(huffman_table)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               102 libavcodec/cbs_jpeg_syntax_template.c static int FUNC(dht)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               116 libavcodec/cbs_jpeg_syntax_template.c         CHECK(FUNC(huffman_table)(ctx, rw, &current->table[i]));
ctx               126 libavcodec/cbs_jpeg_syntax_template.c static int FUNC(scan_header)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               150 libavcodec/cbs_jpeg_syntax_template.c static int FUNC(application_data)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               174 libavcodec/cbs_jpeg_syntax_template.c static int FUNC(comment)(CodedBitstreamContext *ctx, RWContext *rw,
ctx                28 libavcodec/cbs_mpeg2.c         ff_cbs_trace_header(ctx, name); \
ctx                70 libavcodec/cbs_mpeg2.c         CHECK(ff_cbs_read_unsigned(ctx, rw, width, string, \
ctx                78 libavcodec/cbs_mpeg2.c         CHECK(ff_cbs_read_signed(ctx, rw, width, #name, \
ctx               109 libavcodec/cbs_mpeg2.c         CHECK(ff_cbs_write_unsigned(ctx, rw, width, string, \
ctx               115 libavcodec/cbs_mpeg2.c         CHECK(ff_cbs_write_signed(ctx, rw, width, #name, \
ctx               125 libavcodec/cbs_mpeg2.c             av_log(ctx->log_ctx, AV_LOG_WARNING, "Warning: " \
ctx               165 libavcodec/cbs_mpeg2.c static int cbs_mpeg2_split_fragment(CodedBitstreamContext *ctx,
ctx               210 libavcodec/cbs_mpeg2.c         err = ff_cbs_insert_unit_data(ctx, frag, i, unit_type, (uint8_t*)start,
ctx               224 libavcodec/cbs_mpeg2.c static int cbs_mpeg2_read_unit(CodedBitstreamContext *ctx,
ctx               238 libavcodec/cbs_mpeg2.c         err = ff_cbs_alloc_unit_content(ctx, unit, sizeof(*slice),
ctx               244 libavcodec/cbs_mpeg2.c         err = cbs_mpeg2_read_slice_header(ctx, &gbc, &slice->header);
ctx               268 libavcodec/cbs_mpeg2.c                 err = ff_cbs_alloc_unit_content(ctx, unit, \
ctx               273 libavcodec/cbs_mpeg2.c                 err = cbs_mpeg2_read_ ## read_func(ctx, &gbc, header); \
ctx               299 libavcodec/cbs_mpeg2.c static int cbs_mpeg2_write_header(CodedBitstreamContext *ctx,
ctx               308 libavcodec/cbs_mpeg2.c         err = cbs_mpeg2_write_ ## func(ctx, pbc, unit->content); \
ctx               319 libavcodec/cbs_mpeg2.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "Write unimplemented for start "
ctx               327 libavcodec/cbs_mpeg2.c static int cbs_mpeg2_write_slice(CodedBitstreamContext *ctx,
ctx               334 libavcodec/cbs_mpeg2.c     err = cbs_mpeg2_write_slice_header(ctx, pbc, &slice->header);
ctx               376 libavcodec/cbs_mpeg2.c static int cbs_mpeg2_write_unit(CodedBitstreamContext *ctx,
ctx               381 libavcodec/cbs_mpeg2.c         return cbs_mpeg2_write_slice (ctx, unit, pbc);
ctx               383 libavcodec/cbs_mpeg2.c         return cbs_mpeg2_write_header(ctx, unit, pbc);
ctx               386 libavcodec/cbs_mpeg2.c static int cbs_mpeg2_assemble_fragment(CodedBitstreamContext *ctx,
ctx                19 libavcodec/cbs_mpeg2_syntax_template.c static int FUNC(sequence_header)(CodedBitstreamContext *ctx, RWContext *rw,
ctx                22 libavcodec/cbs_mpeg2_syntax_template.c     CodedBitstreamMPEG2Context *mpeg2 = ctx->priv_data;
ctx                59 libavcodec/cbs_mpeg2_syntax_template.c static int FUNC(user_data)(CodedBitstreamContext *ctx, RWContext *rw,
ctx                87 libavcodec/cbs_mpeg2_syntax_template.c static int FUNC(sequence_extension)(CodedBitstreamContext *ctx, RWContext *rw,
ctx                90 libavcodec/cbs_mpeg2_syntax_template.c     CodedBitstreamMPEG2Context *mpeg2 = ctx->priv_data;
ctx               117 libavcodec/cbs_mpeg2_syntax_template.c static int FUNC(sequence_display_extension)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               133 libavcodec/cbs_mpeg2_syntax_template.c             av_log(ctx->log_ctx, AV_LOG_WARNING, "%s in a sequence display " \
ctx               160 libavcodec/cbs_mpeg2_syntax_template.c static int FUNC(group_of_pictures_header)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               176 libavcodec/cbs_mpeg2_syntax_template.c static int FUNC(extra_information)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               210 libavcodec/cbs_mpeg2_syntax_template.c static int FUNC(picture_header)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               234 libavcodec/cbs_mpeg2_syntax_template.c     CHECK(FUNC(extra_information)(ctx, rw, &current->extra_information_picture,
ctx               240 libavcodec/cbs_mpeg2_syntax_template.c static int FUNC(picture_coding_extension)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               243 libavcodec/cbs_mpeg2_syntax_template.c     CodedBitstreamMPEG2Context *mpeg2 = ctx->priv_data;
ctx               298 libavcodec/cbs_mpeg2_syntax_template.c static int FUNC(quant_matrix_extension)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               332 libavcodec/cbs_mpeg2_syntax_template.c static int FUNC(picture_display_extension)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               335 libavcodec/cbs_mpeg2_syntax_template.c     CodedBitstreamMPEG2Context *mpeg2 = ctx->priv_data;
ctx               350 libavcodec/cbs_mpeg2_syntax_template.c static int FUNC(extension_data)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               363 libavcodec/cbs_mpeg2_syntax_template.c             (ctx, rw, &current->data.sequence);
ctx               366 libavcodec/cbs_mpeg2_syntax_template.c             (ctx, rw, &current->data.sequence_display);
ctx               369 libavcodec/cbs_mpeg2_syntax_template.c             (ctx, rw, &current->data.quant_matrix);
ctx               372 libavcodec/cbs_mpeg2_syntax_template.c             (ctx, rw, &current->data.picture_display);
ctx               375 libavcodec/cbs_mpeg2_syntax_template.c             (ctx, rw, &current->data.picture_coding);
ctx               377 libavcodec/cbs_mpeg2_syntax_template.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "Extension ID %d not supported.\n",
ctx               383 libavcodec/cbs_mpeg2_syntax_template.c static int FUNC(slice_header)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               386 libavcodec/cbs_mpeg2_syntax_template.c     CodedBitstreamMPEG2Context *mpeg2 = ctx->priv_data;
ctx               409 libavcodec/cbs_mpeg2_syntax_template.c     CHECK(FUNC(extra_information)(ctx, rw, &current->extra_information_slice,
ctx               415 libavcodec/cbs_mpeg2_syntax_template.c static int FUNC(sequence_end)(CodedBitstreamContext *ctx, RWContext *rw,
ctx                27 libavcodec/cbs_vp9.c static int cbs_vp9_read_s(CodedBitstreamContext *ctx, GetBitContext *gbc,
ctx                35 libavcodec/cbs_vp9.c     if (ctx->trace_enable)
ctx                39 libavcodec/cbs_vp9.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid signed value at "
ctx                48 libavcodec/cbs_vp9.c     if (ctx->trace_enable) {
ctx                56 libavcodec/cbs_vp9.c         ff_cbs_trace_syntax_element(ctx, position, name, subscripts,
ctx                64 libavcodec/cbs_vp9.c static int cbs_vp9_write_s(CodedBitstreamContext *ctx, PutBitContext *pbc,
ctx                77 libavcodec/cbs_vp9.c     if (ctx->trace_enable) {
ctx                85 libavcodec/cbs_vp9.c         ff_cbs_trace_syntax_element(ctx, put_bits_count(pbc),
ctx                95 libavcodec/cbs_vp9.c static int cbs_vp9_read_increment(CodedBitstreamContext *ctx, GetBitContext *gbc,
ctx               104 libavcodec/cbs_vp9.c     if (ctx->trace_enable)
ctx               109 libavcodec/cbs_vp9.c             av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid increment value at "
ctx               122 libavcodec/cbs_vp9.c     if (ctx->trace_enable) {
ctx               124 libavcodec/cbs_vp9.c         ff_cbs_trace_syntax_element(ctx, position, name, NULL, bits, value);
ctx               131 libavcodec/cbs_vp9.c static int cbs_vp9_write_increment(CodedBitstreamContext *ctx, PutBitContext *pbc,
ctx               139 libavcodec/cbs_vp9.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "%s out of range: "
ctx               152 libavcodec/cbs_vp9.c     if (ctx->trace_enable) {
ctx               162 libavcodec/cbs_vp9.c         ff_cbs_trace_syntax_element(ctx, put_bits_count(pbc),
ctx               172 libavcodec/cbs_vp9.c static int cbs_vp9_read_le(CodedBitstreamContext *ctx, GetBitContext *gbc,
ctx               181 libavcodec/cbs_vp9.c     if (ctx->trace_enable)
ctx               185 libavcodec/cbs_vp9.c         av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid le value at "
ctx               194 libavcodec/cbs_vp9.c     if (ctx->trace_enable) {
ctx               202 libavcodec/cbs_vp9.c         ff_cbs_trace_syntax_element(ctx, position, name, subscripts,
ctx               210 libavcodec/cbs_vp9.c static int cbs_vp9_write_le(CodedBitstreamContext *ctx, PutBitContext *pbc,
ctx               221 libavcodec/cbs_vp9.c     if (ctx->trace_enable) {
ctx               229 libavcodec/cbs_vp9.c         ff_cbs_trace_syntax_element(ctx, put_bits_count(pbc),
ctx               240 libavcodec/cbs_vp9.c         ff_cbs_trace_header(ctx, name); \
ctx               270 libavcodec/cbs_vp9.c         CHECK(ff_cbs_read_unsigned(ctx, rw, width, #name, \
ctx               277 libavcodec/cbs_vp9.c         CHECK(cbs_vp9_read_s(ctx, rw, width, #name, \
ctx               285 libavcodec/cbs_vp9.c         CHECK(cbs_vp9_read_increment(ctx, rw, min, max, #name, &value)); \
ctx               290 libavcodec/cbs_vp9.c         CHECK(cbs_vp9_read_le(ctx, rw, width, #name, \
ctx               318 libavcodec/cbs_vp9.c         CHECK(ff_cbs_read_unsigned(ctx, rw, width, #name, \
ctx               349 libavcodec/cbs_vp9.c         CHECK(ff_cbs_write_unsigned(ctx, rw, width, #name, \
ctx               354 libavcodec/cbs_vp9.c         CHECK(cbs_vp9_write_s(ctx, rw, width, #name, \
ctx               359 libavcodec/cbs_vp9.c         CHECK(cbs_vp9_write_increment(ctx, rw, min, max, #name, current->name)); \
ctx               363 libavcodec/cbs_vp9.c         CHECK(cbs_vp9_write_le(ctx, rw, width, #name, \
ctx               380 libavcodec/cbs_vp9.c         CHECK(ff_cbs_write_unsigned(ctx, rw, width, #name, \
ctx               386 libavcodec/cbs_vp9.c             av_log(ctx->log_ctx, AV_LOG_WARNING, "Warning: " \
ctx               411 libavcodec/cbs_vp9.c static int cbs_vp9_split_fragment(CodedBitstreamContext *ctx,
ctx               441 libavcodec/cbs_vp9.c         err = cbs_vp9_read_superframe_index(ctx, &gbc, &sfi);
ctx               448 libavcodec/cbs_vp9.c                 av_log(ctx->log_ctx, AV_LOG_ERROR, "Frame %d too large "
ctx               454 libavcodec/cbs_vp9.c             err = ff_cbs_insert_unit_data(ctx, frag, -1, 0,
ctx               464 libavcodec/cbs_vp9.c             av_log(ctx->log_ctx, AV_LOG_WARNING, "Extra padding at "
ctx               472 libavcodec/cbs_vp9.c         err = ff_cbs_insert_unit_data(ctx, frag, -1, 0,
ctx               489 libavcodec/cbs_vp9.c static int cbs_vp9_read_unit(CodedBitstreamContext *ctx,
ctx               500 libavcodec/cbs_vp9.c     err = ff_cbs_alloc_unit_content(ctx, unit, sizeof(*frame),
ctx               506 libavcodec/cbs_vp9.c     err = cbs_vp9_read_frame(ctx, &gbc, frame);
ctx               529 libavcodec/cbs_vp9.c static int cbs_vp9_write_unit(CodedBitstreamContext *ctx,
ctx               536 libavcodec/cbs_vp9.c     err = cbs_vp9_write_frame(ctx, pbc, frame);
ctx               555 libavcodec/cbs_vp9.c static int cbs_vp9_assemble_fragment(CodedBitstreamContext *ctx,
ctx               583 libavcodec/cbs_vp9.c             av_log(ctx->log_ctx, AV_LOG_ERROR, "Too many frames to "
ctx               626 libavcodec/cbs_vp9.c         err = cbs_vp9_write_superframe_index(ctx, &pbc, &sfi);
ctx               628 libavcodec/cbs_vp9.c             av_log(ctx->log_ctx, AV_LOG_ERROR, "Failed to write "
ctx                19 libavcodec/cbs_vp9_syntax_template.c static int FUNC(frame_sync_code)(CodedBitstreamContext *ctx, RWContext *rw,
ctx                31 libavcodec/cbs_vp9_syntax_template.c static int FUNC(color_config)(CodedBitstreamContext *ctx, RWContext *rw,
ctx                34 libavcodec/cbs_vp9_syntax_template.c     CodedBitstreamVP9Context *vp9 = ctx->priv_data;
ctx                70 libavcodec/cbs_vp9_syntax_template.c static int FUNC(frame_size)(CodedBitstreamContext *ctx, RWContext *rw,
ctx                73 libavcodec/cbs_vp9_syntax_template.c     CodedBitstreamVP9Context *vp9 = ctx->priv_data;
ctx                90 libavcodec/cbs_vp9_syntax_template.c static int FUNC(render_size)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               105 libavcodec/cbs_vp9_syntax_template.c static int FUNC(frame_size_with_refs)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               108 libavcodec/cbs_vp9_syntax_template.c     CodedBitstreamVP9Context *vp9 = ctx->priv_data;
ctx               128 libavcodec/cbs_vp9_syntax_template.c         CHECK(FUNC(frame_size)(ctx, rw, current));
ctx               135 libavcodec/cbs_vp9_syntax_template.c     CHECK(FUNC(render_size)(ctx, rw, current));
ctx               140 libavcodec/cbs_vp9_syntax_template.c static int FUNC(interpolation_filter)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               152 libavcodec/cbs_vp9_syntax_template.c static int FUNC(loop_filter_params)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               180 libavcodec/cbs_vp9_syntax_template.c static int FUNC(quantization_params)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               194 libavcodec/cbs_vp9_syntax_template.c static int FUNC(segmentation_params)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               244 libavcodec/cbs_vp9_syntax_template.c static int FUNC(tile_info)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               247 libavcodec/cbs_vp9_syntax_template.c     CodedBitstreamVP9Context *vp9 = ctx->priv_data;
ctx               265 libavcodec/cbs_vp9_syntax_template.c static int FUNC(uncompressed_header)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               268 libavcodec/cbs_vp9_syntax_template.c     CodedBitstreamVP9Context *vp9 = ctx->priv_data;
ctx               293 libavcodec/cbs_vp9_syntax_template.c         CHECK(FUNC(frame_sync_code)(ctx, rw, current));
ctx               294 libavcodec/cbs_vp9_syntax_template.c         CHECK(FUNC(color_config)(ctx, rw, current, vp9->profile));
ctx               295 libavcodec/cbs_vp9_syntax_template.c         CHECK(FUNC(frame_size)(ctx, rw, current));
ctx               296 libavcodec/cbs_vp9_syntax_template.c         CHECK(FUNC(render_size)(ctx, rw, current));
ctx               312 libavcodec/cbs_vp9_syntax_template.c              CHECK(FUNC(frame_sync_code)(ctx, rw, current));
ctx               315 libavcodec/cbs_vp9_syntax_template.c                  CHECK(FUNC(color_config)(ctx, rw, current, vp9->profile));
ctx               328 libavcodec/cbs_vp9_syntax_template.c              CHECK(FUNC(frame_size)(ctx, rw, current));
ctx               329 libavcodec/cbs_vp9_syntax_template.c              CHECK(FUNC(render_size)(ctx, rw, current));
ctx               339 libavcodec/cbs_vp9_syntax_template.c              CHECK(FUNC(frame_size_with_refs)(ctx, rw, current));
ctx               341 libavcodec/cbs_vp9_syntax_template.c              CHECK(FUNC(interpolation_filter)(ctx, rw, current));
ctx               355 libavcodec/cbs_vp9_syntax_template.c     CHECK(FUNC(loop_filter_params)(ctx, rw, current));
ctx               356 libavcodec/cbs_vp9_syntax_template.c     CHECK(FUNC(quantization_params)(ctx, rw, current));
ctx               357 libavcodec/cbs_vp9_syntax_template.c     CHECK(FUNC(segmentation_params)(ctx, rw, current));
ctx               358 libavcodec/cbs_vp9_syntax_template.c     CHECK(FUNC(tile_info)(ctx, rw, current));
ctx               374 libavcodec/cbs_vp9_syntax_template.c     av_log(ctx->log_ctx, AV_LOG_DEBUG, "Frame:  size %dx%d  "
ctx               384 libavcodec/cbs_vp9_syntax_template.c static int FUNC(trailing_bits)(CodedBitstreamContext *ctx, RWContext *rw)
ctx               393 libavcodec/cbs_vp9_syntax_template.c static int FUNC(frame)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               400 libavcodec/cbs_vp9_syntax_template.c     CHECK(FUNC(uncompressed_header)(ctx, rw, &current->header));
ctx               402 libavcodec/cbs_vp9_syntax_template.c     CHECK(FUNC(trailing_bits)(ctx, rw));
ctx               407 libavcodec/cbs_vp9_syntax_template.c static int FUNC(superframe_index)(CodedBitstreamContext *ctx, RWContext *rw,
ctx               259 libavcodec/ccaption_dec.c     CCaptionSubContext *ctx = avctx->priv_data;
ctx               261 libavcodec/ccaption_dec.c     av_bprint_init(&ctx->buffer, 0, AV_BPRINT_SIZE_UNLIMITED);
ctx               263 libavcodec/ccaption_dec.c     ctx->mode = CCMODE_ROLLUP;
ctx               264 libavcodec/ccaption_dec.c     ctx->rollup = 2;
ctx               265 libavcodec/ccaption_dec.c     ctx->cursor_row = 10;
ctx               284 libavcodec/ccaption_dec.c     CCaptionSubContext *ctx = avctx->priv_data;
ctx               285 libavcodec/ccaption_dec.c     av_bprint_finalize(&ctx->buffer, NULL);
ctx               286 libavcodec/ccaption_dec.c     av_freep(&ctx->pktbuf);
ctx               287 libavcodec/ccaption_dec.c     ctx->pktbuf_size = 0;
ctx               293 libavcodec/ccaption_dec.c     CCaptionSubContext *ctx = avctx->priv_data;
ctx               294 libavcodec/ccaption_dec.c     ctx->screen[0].row_used = 0;
ctx               295 libavcodec/ccaption_dec.c     ctx->screen[1].row_used = 0;
ctx               296 libavcodec/ccaption_dec.c     ctx->prev_cmd[0] = 0;
ctx               297 libavcodec/ccaption_dec.c     ctx->prev_cmd[1] = 0;
ctx               298 libavcodec/ccaption_dec.c     ctx->mode = CCMODE_ROLLUP;
ctx               299 libavcodec/ccaption_dec.c     ctx->rollup = 2;
ctx               300 libavcodec/ccaption_dec.c     ctx->cursor_row = 10;
ctx               301 libavcodec/ccaption_dec.c     ctx->cursor_column = 0;
ctx               302 libavcodec/ccaption_dec.c     ctx->cursor_font = 0;
ctx               303 libavcodec/ccaption_dec.c     ctx->cursor_color = 0;
ctx               304 libavcodec/ccaption_dec.c     ctx->cursor_charset = 0;
ctx               305 libavcodec/ccaption_dec.c     ctx->active_screen = 0;
ctx               306 libavcodec/ccaption_dec.c     ctx->last_real_time = 0;
ctx               307 libavcodec/ccaption_dec.c     ctx->screen_touched = 0;
ctx               308 libavcodec/ccaption_dec.c     ctx->buffer_changed = 0;
ctx               310 libavcodec/ccaption_dec.c         ctx->readorder = 0;
ctx               311 libavcodec/ccaption_dec.c     av_bprint_clear(&ctx->buffer);
ctx               317 libavcodec/ccaption_dec.c static void write_char(CCaptionSubContext *ctx, struct Screen *screen, char ch)
ctx               319 libavcodec/ccaption_dec.c     uint8_t col = ctx->cursor_column;
ctx               320 libavcodec/ccaption_dec.c     char *row = screen->characters[ctx->cursor_row];
ctx               321 libavcodec/ccaption_dec.c     char *font = screen->fonts[ctx->cursor_row];
ctx               322 libavcodec/ccaption_dec.c     char *charset = screen->charsets[ctx->cursor_row];
ctx               326 libavcodec/ccaption_dec.c         font[col] = ctx->cursor_font;
ctx               327 libavcodec/ccaption_dec.c         charset[col] = ctx->cursor_charset;
ctx               328 libavcodec/ccaption_dec.c         ctx->cursor_charset = CCSET_BASIC_AMERICAN;
ctx               329 libavcodec/ccaption_dec.c         if (ch) ctx->cursor_column++;
ctx               338 libavcodec/ccaption_dec.c         av_log(ctx, AV_LOG_WARNING, "Data Ignored since exceeding screen width\n");
ctx               384 libavcodec/ccaption_dec.c static struct Screen *get_writing_screen(CCaptionSubContext *ctx)
ctx               386 libavcodec/ccaption_dec.c     switch (ctx->mode) {
ctx               389 libavcodec/ccaption_dec.c         return ctx->screen + !ctx->active_screen;
ctx               394 libavcodec/ccaption_dec.c         return ctx->screen + ctx->active_screen;
ctx               400 libavcodec/ccaption_dec.c static void roll_up(CCaptionSubContext *ctx)
ctx               405 libavcodec/ccaption_dec.c     if (ctx->mode == CCMODE_TEXT)
ctx               408 libavcodec/ccaption_dec.c     screen = get_writing_screen(ctx);
ctx               413 libavcodec/ccaption_dec.c     keep_lines = FFMIN(ctx->cursor_row + 1, ctx->rollup);
ctx               416 libavcodec/ccaption_dec.c         if (i > ctx->cursor_row - keep_lines && i <= ctx->cursor_row)
ctx               422 libavcodec/ccaption_dec.c         const int i_row = ctx->cursor_row - keep_lines + i + 1;
ctx               432 libavcodec/ccaption_dec.c     UNSET_FLAG(screen->row_used, ctx->cursor_row);
ctx               435 libavcodec/ccaption_dec.c static int capture_screen(CCaptionSubContext *ctx)
ctx               438 libavcodec/ccaption_dec.c     struct Screen *screen = ctx->screen + ctx->active_screen;
ctx               440 libavcodec/ccaption_dec.c     av_bprint_clear(&ctx->buffer);
ctx               471 libavcodec/ccaption_dec.c             av_bprintf(&ctx->buffer, "{\\an7}{\\pos(%d,%d)}", x, y);
ctx               506 libavcodec/ccaption_dec.c                     av_bprintf(&ctx->buffer, "%s%s%s", e_tag, s_tag, override);
ctx               509 libavcodec/ccaption_dec.c                     av_bprintf(&ctx->buffer, "%s%s\\h", e_tag, s_tag);
ctx               511 libavcodec/ccaption_dec.c                     av_bprintf(&ctx->buffer, "%s%s%c", e_tag, s_tag, row[j]);
ctx               516 libavcodec/ccaption_dec.c             av_bprintf(&ctx->buffer, "\\N");
ctx               519 libavcodec/ccaption_dec.c     if (!av_bprint_is_complete(&ctx->buffer))
ctx               521 libavcodec/ccaption_dec.c     if (screen->row_used && ctx->buffer.len >= 2) {
ctx               522 libavcodec/ccaption_dec.c         ctx->buffer.len -= 2;
ctx               523 libavcodec/ccaption_dec.c         ctx->buffer.str[ctx->buffer.len] = 0;
ctx               525 libavcodec/ccaption_dec.c     ctx->buffer_changed = 1;
ctx               529 libavcodec/ccaption_dec.c static int reap_screen(CCaptionSubContext *ctx, int64_t pts)
ctx               531 libavcodec/ccaption_dec.c     ctx->start_time = ctx->startv_time;
ctx               532 libavcodec/ccaption_dec.c     ctx->startv_time = pts;
ctx               533 libavcodec/ccaption_dec.c     ctx->end_time = pts;
ctx               534 libavcodec/ccaption_dec.c     return capture_screen(ctx);
ctx               537 libavcodec/ccaption_dec.c static void handle_textattr(CCaptionSubContext *ctx, uint8_t hi, uint8_t lo)
ctx               540 libavcodec/ccaption_dec.c     struct Screen *screen = get_writing_screen(ctx);
ctx               545 libavcodec/ccaption_dec.c     ctx->cursor_color = pac2_attribs[i][0];
ctx               546 libavcodec/ccaption_dec.c     ctx->cursor_font = pac2_attribs[i][1];
ctx               548 libavcodec/ccaption_dec.c     SET_FLAG(screen->row_used, ctx->cursor_row);
ctx               549 libavcodec/ccaption_dec.c     write_char(ctx, screen, ' ');
ctx               552 libavcodec/ccaption_dec.c static void handle_pac(CCaptionSubContext *ctx, uint8_t hi, uint8_t lo)
ctx               558 libavcodec/ccaption_dec.c     struct Screen *screen = get_writing_screen(ctx);
ctx               562 libavcodec/ccaption_dec.c         av_log(ctx, AV_LOG_DEBUG, "Invalid pac index encountered\n");
ctx               568 libavcodec/ccaption_dec.c     ctx->cursor_row = row_map[index] - 1;
ctx               569 libavcodec/ccaption_dec.c     ctx->cursor_color =  pac2_attribs[lo][0];
ctx               570 libavcodec/ccaption_dec.c     ctx->cursor_font = pac2_attribs[lo][1];
ctx               571 libavcodec/ccaption_dec.c     ctx->cursor_charset = CCSET_BASIC_AMERICAN;
ctx               572 libavcodec/ccaption_dec.c     ctx->cursor_column = 0;
ctx               575 libavcodec/ccaption_dec.c         write_char(ctx, screen, ' ');
ctx               582 libavcodec/ccaption_dec.c static void handle_edm(CCaptionSubContext *ctx, int64_t pts)
ctx               584 libavcodec/ccaption_dec.c     struct Screen *screen = ctx->screen + ctx->active_screen;
ctx               588 libavcodec/ccaption_dec.c     if (!ctx->real_time)
ctx               589 libavcodec/ccaption_dec.c         reap_screen(ctx, pts);
ctx               595 libavcodec/ccaption_dec.c     if (ctx->real_time)
ctx               596 libavcodec/ccaption_dec.c         reap_screen(ctx, pts);
ctx               599 libavcodec/ccaption_dec.c static void handle_eoc(CCaptionSubContext *ctx, int64_t pts)
ctx               603 libavcodec/ccaption_dec.c     if (!ctx->real_time)
ctx               604 libavcodec/ccaption_dec.c         handle_edm(ctx,pts);
ctx               606 libavcodec/ccaption_dec.c     ctx->active_screen = !ctx->active_screen;
ctx               607 libavcodec/ccaption_dec.c     ctx->cursor_column = 0;
ctx               611 libavcodec/ccaption_dec.c     if (ctx->real_time)
ctx               612 libavcodec/ccaption_dec.c         reap_screen(ctx, pts);
ctx               615 libavcodec/ccaption_dec.c static void handle_delete_end_of_row(CCaptionSubContext *ctx, char hi, char lo)
ctx               617 libavcodec/ccaption_dec.c     struct Screen *screen = get_writing_screen(ctx);
ctx               618 libavcodec/ccaption_dec.c     write_char(ctx, screen, 0);
ctx               621 libavcodec/ccaption_dec.c static void handle_char(CCaptionSubContext *ctx, char hi, char lo, int64_t pts)
ctx               623 libavcodec/ccaption_dec.c     struct Screen *screen = get_writing_screen(ctx);
ctx               625 libavcodec/ccaption_dec.c     SET_FLAG(screen->row_used, ctx->cursor_row);
ctx               629 libavcodec/ccaption_dec.c         ctx->cursor_charset = CCSET_SPECIAL_AMERICAN;
ctx               632 libavcodec/ccaption_dec.c         if (ctx->cursor_column > 0)
ctx               633 libavcodec/ccaption_dec.c             ctx->cursor_column -= 1;
ctx               634 libavcodec/ccaption_dec.c         ctx->cursor_charset = CCSET_EXTENDED_SPANISH_FRENCH_MISC;
ctx               637 libavcodec/ccaption_dec.c         if (ctx->cursor_column > 0)
ctx               638 libavcodec/ccaption_dec.c             ctx->cursor_column -= 1;
ctx               639 libavcodec/ccaption_dec.c         ctx->cursor_charset = CCSET_EXTENDED_PORTUGUESE_GERMAN_DANISH;
ctx               642 libavcodec/ccaption_dec.c         ctx->cursor_charset = CCSET_BASIC_AMERICAN;
ctx               643 libavcodec/ccaption_dec.c         write_char(ctx, screen, hi);
ctx               648 libavcodec/ccaption_dec.c         write_char(ctx, screen, lo);
ctx               650 libavcodec/ccaption_dec.c     write_char(ctx, screen, 0);
ctx               652 libavcodec/ccaption_dec.c     if (ctx->mode != CCMODE_POPON)
ctx               653 libavcodec/ccaption_dec.c         ctx->screen_touched = 1;
ctx               656 libavcodec/ccaption_dec.c        ff_dlog(ctx, "(%c,%c)\n", hi, lo);
ctx               658 libavcodec/ccaption_dec.c        ff_dlog(ctx, "(%c)\n", hi);
ctx               661 libavcodec/ccaption_dec.c static void process_cc608(CCaptionSubContext *ctx, int64_t pts, uint8_t hi, uint8_t lo)
ctx               663 libavcodec/ccaption_dec.c     if (hi == ctx->prev_cmd[0] && lo == ctx->prev_cmd[1]) {
ctx               669 libavcodec/ccaption_dec.c     ctx->prev_cmd[0] = hi;
ctx               670 libavcodec/ccaption_dec.c     ctx->prev_cmd[1] = lo;
ctx               674 libavcodec/ccaption_dec.c         handle_pac(ctx, hi, lo);
ctx               677 libavcodec/ccaption_dec.c         handle_textattr(ctx, hi, lo);
ctx               682 libavcodec/ccaption_dec.c             ctx->mode = CCMODE_POPON;
ctx               685 libavcodec/ccaption_dec.c             handle_delete_end_of_row(ctx, hi, lo);
ctx               690 libavcodec/ccaption_dec.c             ctx->rollup = lo - 0x23;
ctx               691 libavcodec/ccaption_dec.c             ctx->mode = CCMODE_ROLLUP;
ctx               695 libavcodec/ccaption_dec.c             ctx->mode = CCMODE_PAINTON;
ctx               699 libavcodec/ccaption_dec.c             ctx->mode = CCMODE_TEXT;
ctx               703 libavcodec/ccaption_dec.c             handle_edm(ctx, pts);
ctx               707 libavcodec/ccaption_dec.c             ff_dlog(ctx, "carriage return\n");
ctx               708 libavcodec/ccaption_dec.c             if (!ctx->real_time)
ctx               709 libavcodec/ccaption_dec.c                 reap_screen(ctx, pts);
ctx               710 libavcodec/ccaption_dec.c             roll_up(ctx);
ctx               711 libavcodec/ccaption_dec.c             ctx->cursor_column = 0;
ctx               717 libavcodec/ccaption_dec.c             if (ctx->real_time) {
ctx               718 libavcodec/ccaption_dec.c                 struct Screen *screen = ctx->screen + !ctx->active_screen;
ctx               724 libavcodec/ccaption_dec.c             ff_dlog(ctx, "handle_eoc\n");
ctx               725 libavcodec/ccaption_dec.c             handle_eoc(ctx, pts);
ctx               728 libavcodec/ccaption_dec.c             ff_dlog(ctx, "Unknown command 0x%hhx 0x%hhx\n", hi, lo);
ctx               733 libavcodec/ccaption_dec.c         handle_char(ctx, hi, lo, pts);
ctx               736 libavcodec/ccaption_dec.c         handle_char(ctx, hi, lo, pts);
ctx               737 libavcodec/ccaption_dec.c         ctx->prev_cmd[0] = ctx->prev_cmd[1] = 0;
ctx               742 libavcodec/ccaption_dec.c             handle_char(ctx, ' ', 0, pts);
ctx               746 libavcodec/ccaption_dec.c         ff_dlog(ctx, "Unknown command 0x%hhx 0x%hhx\n", hi, lo);
ctx               752 libavcodec/ccaption_dec.c     CCaptionSubContext *ctx = avctx->priv_data;
ctx               760 libavcodec/ccaption_dec.c     av_fast_padded_malloc(&ctx->pktbuf, &ctx->pktbuf_size, len);
ctx               761 libavcodec/ccaption_dec.c     if (!ctx->pktbuf) {
ctx               762 libavcodec/ccaption_dec.c         av_log(ctx, AV_LOG_WARNING, "Insufficient Memory of %d truncated to %d\n", len, ctx->pktbuf_size);
ctx               765 libavcodec/ccaption_dec.c     memcpy(ctx->pktbuf, avpkt->data, len);
ctx               766 libavcodec/ccaption_dec.c     bptr = ctx->pktbuf;
ctx               776 libavcodec/ccaption_dec.c             process_cc608(ctx, start_time, *(bptr + i + 1) & 0x7f, *(bptr + i + 2) & 0x7f);
ctx               778 libavcodec/ccaption_dec.c         if (!ctx->buffer_changed)
ctx               780 libavcodec/ccaption_dec.c         ctx->buffer_changed = 0;
ctx               782 libavcodec/ccaption_dec.c         if (*ctx->buffer.str || ctx->real_time)
ctx               784 libavcodec/ccaption_dec.c             ff_dlog(ctx, "cdp writing data (%s)\n",ctx->buffer.str);
ctx               785 libavcodec/ccaption_dec.c             ret = ff_ass_add_rect(sub, ctx->buffer.str, ctx->readorder++, 0, NULL, NULL);
ctx               788 libavcodec/ccaption_dec.c             sub->pts = ctx->start_time;
ctx               789 libavcodec/ccaption_dec.c             if (!ctx->real_time)
ctx               790 libavcodec/ccaption_dec.c                 sub->end_display_time = av_rescale_q(ctx->end_time - ctx->start_time,
ctx               794 libavcodec/ccaption_dec.c             ctx->buffer_changed = 0;
ctx               795 libavcodec/ccaption_dec.c             ctx->last_real_time = sub->pts;
ctx               796 libavcodec/ccaption_dec.c             ctx->screen_touched = 0;
ctx               800 libavcodec/ccaption_dec.c     if (ctx->real_time && ctx->screen_touched &&
ctx               801 libavcodec/ccaption_dec.c         sub->pts > ctx->last_real_time + av_rescale_q(200, ms_tb, AV_TIME_BASE_Q)) {
ctx               802 libavcodec/ccaption_dec.c         ctx->last_real_time = sub->pts;
ctx               803 libavcodec/ccaption_dec.c         ctx->screen_touched = 0;
ctx               805 libavcodec/ccaption_dec.c         capture_screen(ctx);
ctx               806 libavcodec/ccaption_dec.c         ctx->buffer_changed = 0;
ctx               808 libavcodec/ccaption_dec.c         ret = ff_ass_add_rect(sub, ctx->buffer.str, ctx->readorder++, 0, NULL, NULL);
ctx                25 libavcodec/chomp_bsf.c static int chomp_filter(AVBSFContext *ctx, AVPacket *pkt)
ctx                29 libavcodec/chomp_bsf.c     ret = ff_bsf_get_packet_ref(ctx, pkt);
ctx                83 libavcodec/clearvideo.c static inline int decode_block(CLVContext *ctx, int16_t *blk, int has_ac,
ctx                86 libavcodec/clearvideo.c     GetBitContext *gb = &ctx->gb;
ctx                90 libavcodec/clearvideo.c     blk[0] = get_vlc2(gb, ctx->dc_vlc.table, 9, 3);
ctx                99 libavcodec/clearvideo.c         val = get_vlc2(gb, ctx->ac_vlc.table, 9, 2);
ctx                45 libavcodec/cllc.c static int read_code_table(CLLCContext *ctx, GetBitContext *gb, VLC *vlc)
ctx                62 libavcodec/cllc.c         av_log(ctx->avctx, AV_LOG_ERROR, "To long VLCs %d\n", num_lens);
ctx                73 libavcodec/cllc.c             av_log(ctx->avctx, AV_LOG_ERROR,
ctx               101 libavcodec/cllc.c static int read_argb_line(CLLCContext *ctx, GetBitContext *gb, int *top_left,
ctx               117 libavcodec/cllc.c     for (i = 0; i < ctx->avctx->width; i++) {
ctx               170 libavcodec/cllc.c static int read_rgb24_component_line(CLLCContext *ctx, GetBitContext *gb,
ctx               183 libavcodec/cllc.c     for (i = 0; i < ctx->avctx->width; i++) {
ctx               200 libavcodec/cllc.c static int read_yuv_component_line(CLLCContext *ctx, GetBitContext *gb,
ctx               212 libavcodec/cllc.c     for (i = 0; i < ctx->avctx->width >> is_chroma; i++) {
ctx               228 libavcodec/cllc.c static int decode_argb_frame(CLLCContext *ctx, GetBitContext *gb, AVFrame *pic)
ctx               230 libavcodec/cllc.c     AVCodecContext *avctx = ctx->avctx;
ctx               248 libavcodec/cllc.c         ret = read_code_table(ctx, gb, &vlc[i]);
ctx               253 libavcodec/cllc.c             av_log(ctx->avctx, AV_LOG_ERROR,
ctx               261 libavcodec/cllc.c         read_argb_line(ctx, gb, pred, vlc, dst);
ctx               272 libavcodec/cllc.c static int decode_rgb24_frame(CLLCContext *ctx, GetBitContext *gb, AVFrame *pic)
ctx               274 libavcodec/cllc.c     AVCodecContext *avctx = ctx->avctx;
ctx               291 libavcodec/cllc.c         ret = read_code_table(ctx, gb, &vlc[i]);
ctx               296 libavcodec/cllc.c             av_log(ctx->avctx, AV_LOG_ERROR,
ctx               305 libavcodec/cllc.c             read_rgb24_component_line(ctx, gb, &pred[j], &vlc[j], &dst[j]);
ctx               316 libavcodec/cllc.c static int decode_yuv_frame(CLLCContext *ctx, GetBitContext *gb, AVFrame *pic)
ctx               318 libavcodec/cllc.c     AVCodecContext *avctx = ctx->avctx;
ctx               338 libavcodec/cllc.c         avpriv_request_sample(ctx->avctx, "Blocked YUV");
ctx               344 libavcodec/cllc.c         ret = read_code_table(ctx, gb, &vlc[i]);
ctx               349 libavcodec/cllc.c             av_log(ctx->avctx, AV_LOG_ERROR,
ctx               357 libavcodec/cllc.c         read_yuv_component_line(ctx, gb, &pred[0], &vlc[0], dst[0], 0); /* Y */
ctx               358 libavcodec/cllc.c         read_yuv_component_line(ctx, gb, &pred[1], &vlc[1], dst[1], 1); /* U */
ctx               359 libavcodec/cllc.c         read_yuv_component_line(ctx, gb, &pred[2], &vlc[1], dst[2], 1); /* V */
ctx               374 libavcodec/cllc.c     CLLCContext *ctx = avctx->priv_data;
ctx               407 libavcodec/cllc.c     av_fast_padded_malloc(&ctx->swapped_buf,
ctx               408 libavcodec/cllc.c                           &ctx->swapped_buf_size, data_size);
ctx               409 libavcodec/cllc.c     if (!ctx->swapped_buf) {
ctx               415 libavcodec/cllc.c     ctx->bdsp.bswap16_buf((uint16_t *) ctx->swapped_buf, (uint16_t *) src,
ctx               418 libavcodec/cllc.c     if ((ret = init_get_bits8(&gb, ctx->swapped_buf, data_size)) < 0)
ctx               443 libavcodec/cllc.c         ret = decode_yuv_frame(ctx, &gb, pic);
ctx               456 libavcodec/cllc.c         ret = decode_rgb24_frame(ctx, &gb, pic);
ctx               468 libavcodec/cllc.c         ret = decode_argb_frame(ctx, &gb, pic);
ctx               488 libavcodec/cllc.c     CLLCContext *ctx = avctx->priv_data;
ctx               490 libavcodec/cllc.c     av_freep(&ctx->swapped_buf);
ctx               497 libavcodec/cllc.c     CLLCContext *ctx = avctx->priv_data;
ctx               500 libavcodec/cllc.c     ctx->avctx            = avctx;
ctx               501 libavcodec/cllc.c     ctx->swapped_buf      = NULL;
ctx               502 libavcodec/cllc.c     ctx->swapped_buf_size = 0;
ctx               504 libavcodec/cllc.c     ff_bswapdsp_init(&ctx->bdsp);
ctx               104 libavcodec/cuviddec.c #define CHECK_CU(x) FF_CUDA_CHECK_DL(avctx, ctx->cudl, x)
ctx               109 libavcodec/cuviddec.c     CuvidContext *ctx = avctx->priv_data;
ctx               110 libavcodec/cuviddec.c     AVHWFramesContext *hwframe_ctx = (AVHWFramesContext*)ctx->hwframe->data;
ctx               127 libavcodec/cuviddec.c     ctx->internal_error = 0;
ctx               133 libavcodec/cuviddec.c     cuinfo.display_area.left = format->display_area.left + ctx->crop.left;
ctx               134 libavcodec/cuviddec.c     cuinfo.display_area.top = format->display_area.top + ctx->crop.top;
ctx               135 libavcodec/cuviddec.c     cuinfo.display_area.right = format->display_area.right - ctx->crop.right;
ctx               136 libavcodec/cuviddec.c     cuinfo.display_area.bottom = format->display_area.bottom - ctx->crop.bottom;
ctx               139 libavcodec/cuviddec.c     if (ctx->resize_expr) {
ctx               140 libavcodec/cuviddec.c         avctx->width = ctx->resize.width;
ctx               141 libavcodec/cuviddec.c         avctx->height = ctx->resize.height;
ctx               162 libavcodec/cuviddec.c         caps = &ctx->caps8;
ctx               166 libavcodec/cuviddec.c         caps = &ctx->caps10;
ctx               170 libavcodec/cuviddec.c         caps = &ctx->caps12;
ctx               179 libavcodec/cuviddec.c         ctx->internal_error = AVERROR(EINVAL);
ctx               186 libavcodec/cuviddec.c         ctx->internal_error = AVERROR(EINVAL);
ctx               199 libavcodec/cuviddec.c         av_buffer_unref(&ctx->hwframe);
ctx               201 libavcodec/cuviddec.c         ctx->hwframe = av_buffer_ref(avctx->hw_frames_ctx);
ctx               202 libavcodec/cuviddec.c         if (!ctx->hwframe) {
ctx               203 libavcodec/cuviddec.c             ctx->internal_error = AVERROR(ENOMEM);
ctx               207 libavcodec/cuviddec.c         hwframe_ctx = (AVHWFramesContext*)ctx->hwframe->data;
ctx               214 libavcodec/cuviddec.c     ctx->deint_mode_current = format->progressive_sequence
ctx               216 libavcodec/cuviddec.c                               : ctx->deint_mode;
ctx               218 libavcodec/cuviddec.c     ctx->progressive_sequence = format->progressive_sequence;
ctx               220 libavcodec/cuviddec.c     if (!format->progressive_sequence && ctx->deint_mode_current == cudaVideoDeinterlaceMode_Weave)
ctx               242 libavcodec/cuviddec.c     if (ctx->cudecoder
ctx               247 libavcodec/cuviddec.c             && ctx->chroma_format == format->chroma_format
ctx               248 libavcodec/cuviddec.c             && ctx->codec_type == format->codec)
ctx               251 libavcodec/cuviddec.c     if (ctx->cudecoder) {
ctx               253 libavcodec/cuviddec.c         ctx->internal_error = CHECK_CU(ctx->cvdl->cuvidDestroyDecoder(ctx->cudecoder));
ctx               254 libavcodec/cuviddec.c         if (ctx->internal_error < 0)
ctx               256 libavcodec/cuviddec.c         ctx->cudecoder = NULL;
ctx               270 libavcodec/cuviddec.c         ctx->internal_error = AVERROR(EINVAL);
ctx               274 libavcodec/cuviddec.c     ctx->chroma_format = format->chroma_format;
ctx               276 libavcodec/cuviddec.c     cuinfo.CodecType = ctx->codec_type = format->codec;
ctx               296 libavcodec/cuviddec.c         ctx->internal_error = AVERROR(EINVAL);
ctx               300 libavcodec/cuviddec.c     cuinfo.ulNumDecodeSurfaces = ctx->nb_surfaces;
ctx               304 libavcodec/cuviddec.c     cuinfo.DeinterlaceMode = ctx->deint_mode_current;
ctx               306 libavcodec/cuviddec.c     if (ctx->deint_mode_current != cudaVideoDeinterlaceMode_Weave && !ctx->drop_second_field)
ctx               309 libavcodec/cuviddec.c     ctx->internal_error = CHECK_CU(ctx->cvdl->cuvidCreateDecoder(&ctx->cudecoder, &cuinfo));
ctx               310 libavcodec/cuviddec.c     if (ctx->internal_error < 0)
ctx               319 libavcodec/cuviddec.c         if ((ctx->internal_error = av_hwframe_ctx_init(ctx->hwframe)) < 0) {
ctx               331 libavcodec/cuviddec.c     CuvidContext *ctx = avctx->priv_data;
ctx               335 libavcodec/cuviddec.c     ctx->key_frame[picparams->CurrPicIdx] = picparams->intra_pic_flag;
ctx               337 libavcodec/cuviddec.c     ctx->internal_error = CHECK_CU(ctx->cvdl->cuvidDecodePicture(ctx->cudecoder, picparams));
ctx               338 libavcodec/cuviddec.c     if (ctx->internal_error < 0)
ctx               347 libavcodec/cuviddec.c     CuvidContext *ctx = avctx->priv_data;
ctx               351 libavcodec/cuviddec.c     ctx->internal_error = 0;
ctx               354 libavcodec/cuviddec.c     parsed_frame.dispinfo.progressive_frame = ctx->progressive_sequence;
ctx               356 libavcodec/cuviddec.c     if (ctx->deint_mode_current == cudaVideoDeinterlaceMode_Weave) {
ctx               357 libavcodec/cuviddec.c         av_fifo_generic_write(ctx->frame_queue, &parsed_frame, sizeof(CuvidParsedFrame), NULL);
ctx               360 libavcodec/cuviddec.c         av_fifo_generic_write(ctx->frame_queue, &parsed_frame, sizeof(CuvidParsedFrame), NULL);
ctx               361 libavcodec/cuviddec.c         if (!ctx->drop_second_field) {
ctx               363 libavcodec/cuviddec.c             av_fifo_generic_write(ctx->frame_queue, &parsed_frame, sizeof(CuvidParsedFrame), NULL);
ctx               372 libavcodec/cuviddec.c     CuvidContext *ctx = avctx->priv_data;
ctx               374 libavcodec/cuviddec.c     int delay = ctx->cuparseinfo.ulMaxDisplayDelay;
ctx               375 libavcodec/cuviddec.c     if (ctx->deint_mode != cudaVideoDeinterlaceMode_Weave && !ctx->drop_second_field)
ctx               378 libavcodec/cuviddec.c     return (av_fifo_size(ctx->frame_queue) / sizeof(CuvidParsedFrame)) + delay >= ctx->nb_surfaces;
ctx               383 libavcodec/cuviddec.c     CuvidContext *ctx = avctx->priv_data;
ctx               384 libavcodec/cuviddec.c     AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)ctx->hwdevice->data;
ctx               388 libavcodec/cuviddec.c     int ret = 0, eret = 0, is_flush = ctx->decoder_flushing;
ctx               398 libavcodec/cuviddec.c     ret = CHECK_CU(ctx->cudl->cuCtxPushCurrent(cuda_ctx));
ctx               418 libavcodec/cuviddec.c         ctx->decoder_flushing = 1;
ctx               421 libavcodec/cuviddec.c     ret = CHECK_CU(ctx->cvdl->cuvidParseVideoData(ctx->cuparser, &cupkt));
ctx               427 libavcodec/cuviddec.c     if (ctx->internal_error) {
ctx               429 libavcodec/cuviddec.c         ret = ctx->internal_error;
ctx               434 libavcodec/cuviddec.c     eret = CHECK_CU(ctx->cudl->cuCtxPopCurrent(&dummy));
ctx               448 libavcodec/cuviddec.c     CuvidContext *ctx = avctx->priv_data;
ctx               449 libavcodec/cuviddec.c     AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)ctx->hwdevice->data;
ctx               457 libavcodec/cuviddec.c     if (ctx->decoder_flushing) {
ctx               477 libavcodec/cuviddec.c     ret = CHECK_CU(ctx->cudl->cuCtxPushCurrent(cuda_ctx));
ctx               481 libavcodec/cuviddec.c     if (av_fifo_size(ctx->frame_queue)) {
ctx               489 libavcodec/cuviddec.c         av_fifo_generic_read(ctx->frame_queue, &parsed_frame, sizeof(CuvidParsedFrame), NULL);
ctx               496 libavcodec/cuviddec.c         ret = CHECK_CU(ctx->cvdl->cuvidMapVideoFrame(ctx->cudecoder, parsed_frame.dispinfo.picture_index, &mapped_frame, &pitch, &params));
ctx               501 libavcodec/cuviddec.c             ret = av_hwframe_get_buffer(ctx->hwframe, frame, 0);
ctx               529 libavcodec/cuviddec.c                 ret = CHECK_CU(ctx->cudl->cuMemcpy2DAsync(&cpy, device_hwctx->stream));
ctx               551 libavcodec/cuviddec.c             tmp_frame->hw_frames_ctx = av_buffer_ref(ctx->hwframe);
ctx               585 libavcodec/cuviddec.c         frame->key_frame = ctx->key_frame[parsed_frame.dispinfo.picture_index];
ctx               594 libavcodec/cuviddec.c             if (ctx->prev_pts == INT64_MIN) {
ctx               595 libavcodec/cuviddec.c                 ctx->prev_pts = frame->pts;
ctx               598 libavcodec/cuviddec.c                 int pts_diff = (frame->pts - ctx->prev_pts) / 2;
ctx               599 libavcodec/cuviddec.c                 ctx->prev_pts = frame->pts;
ctx               620 libavcodec/cuviddec.c     } else if (ctx->decoder_flushing) {
ctx               628 libavcodec/cuviddec.c         eret = CHECK_CU(ctx->cvdl->cuvidUnmapVideoFrame(ctx->cudecoder, mapped_frame));
ctx               630 libavcodec/cuviddec.c     eret = CHECK_CU(ctx->cudl->cuCtxPopCurrent(&dummy));
ctx               640 libavcodec/cuviddec.c     CuvidContext *ctx = avctx->priv_data;
ctx               646 libavcodec/cuviddec.c     if (ctx->deint_mode_current != cudaVideoDeinterlaceMode_Weave) {
ctx               651 libavcodec/cuviddec.c     if (!ctx->decoder_flushing) {
ctx               671 libavcodec/cuviddec.c     CuvidContext *ctx = avctx->priv_data;
ctx               673 libavcodec/cuviddec.c     av_fifo_freep(&ctx->frame_queue);
ctx               675 libavcodec/cuviddec.c     if (ctx->cuparser)
ctx               676 libavcodec/cuviddec.c         ctx->cvdl->cuvidDestroyVideoParser(ctx->cuparser);
ctx               678 libavcodec/cuviddec.c     if (ctx->cudecoder)
ctx               679 libavcodec/cuviddec.c         ctx->cvdl->cuvidDestroyDecoder(ctx->cudecoder);
ctx               681 libavcodec/cuviddec.c     ctx->cudl = NULL;
ctx               683 libavcodec/cuviddec.c     av_buffer_unref(&ctx->hwframe);
ctx               684 libavcodec/cuviddec.c     av_buffer_unref(&ctx->hwdevice);
ctx               686 libavcodec/cuviddec.c     av_freep(&ctx->key_frame);
ctx               688 libavcodec/cuviddec.c     cuvid_free_functions(&ctx->cvdl);
ctx               699 libavcodec/cuviddec.c     CuvidContext *ctx = avctx->priv_data;
ctx               703 libavcodec/cuviddec.c     if (!ctx->cvdl->cuvidGetDecoderCaps) {
ctx               712 libavcodec/cuviddec.c         ctx->caps8.bIsSupported = ctx->caps10.bIsSupported = 1;
ctx               714 libavcodec/cuviddec.c         ctx->caps12.bIsSupported = 0;
ctx               718 libavcodec/cuviddec.c     ctx->caps8.eCodecType = ctx->caps10.eCodecType = ctx->caps12.eCodecType
ctx               720 libavcodec/cuviddec.c     ctx->caps8.eChromaFormat = ctx->caps10.eChromaFormat = ctx->caps12.eChromaFormat
ctx               723 libavcodec/cuviddec.c     ctx->caps8.nBitDepthMinus8 = 0;
ctx               724 libavcodec/cuviddec.c     ctx->caps10.nBitDepthMinus8 = 2;
ctx               725 libavcodec/cuviddec.c     ctx->caps12.nBitDepthMinus8 = 4;
ctx               727 libavcodec/cuviddec.c     res8 = CHECK_CU(ctx->cvdl->cuvidGetDecoderCaps(&ctx->caps8));
ctx               728 libavcodec/cuviddec.c     res10 = CHECK_CU(ctx->cvdl->cuvidGetDecoderCaps(&ctx->caps10));
ctx               729 libavcodec/cuviddec.c     res12 = CHECK_CU(ctx->cvdl->cuvidGetDecoderCaps(&ctx->caps12));
ctx               733 libavcodec/cuviddec.c            ctx->caps8.bIsSupported, ctx->caps8.nMinWidth, ctx->caps8.nMaxWidth, ctx->caps8.nMinHeight, ctx->caps8.nMaxHeight);
ctx               735 libavcodec/cuviddec.c            ctx->caps10.bIsSupported, ctx->caps10.nMinWidth, ctx->caps10.nMaxWidth, ctx->caps10.nMinHeight, ctx->caps10.nMaxHeight);
ctx               737 libavcodec/cuviddec.c            ctx->caps12.bIsSupported, ctx->caps12.nMinWidth, ctx->caps12.nMaxWidth, ctx->caps12.nMinHeight, ctx->caps12.nMaxHeight);
ctx               741 libavcodec/cuviddec.c         caps = &ctx->caps10;
ctx               746 libavcodec/cuviddec.c         caps = &ctx->caps12;
ctx               751 libavcodec/cuviddec.c         caps = &ctx->caps8;
ctx               756 libavcodec/cuviddec.c     if (!ctx->caps8.bIsSupported) {
ctx               789 libavcodec/cuviddec.c     CuvidContext *ctx = avctx->priv_data;
ctx               821 libavcodec/cuviddec.c     if (ctx->resize_expr && sscanf(ctx->resize_expr, "%dx%d",
ctx               822 libavcodec/cuviddec.c                                    &ctx->resize.width, &ctx->resize.height) != 2) {
ctx               828 libavcodec/cuviddec.c     if (ctx->crop_expr && sscanf(ctx->crop_expr, "%dx%dx%dx%d",
ctx               829 libavcodec/cuviddec.c                                  &ctx->crop.top, &ctx->crop.bottom,
ctx               830 libavcodec/cuviddec.c                                  &ctx->crop.left, &ctx->crop.right) != 4) {
ctx               836 libavcodec/cuviddec.c     ret = cuvid_load_functions(&ctx->cvdl, avctx);
ctx               842 libavcodec/cuviddec.c     ctx->frame_queue = av_fifo_alloc(ctx->nb_surfaces * sizeof(CuvidParsedFrame));
ctx               843 libavcodec/cuviddec.c     if (!ctx->frame_queue) {
ctx               849 libavcodec/cuviddec.c         ctx->hwframe = av_buffer_ref(avctx->hw_frames_ctx);
ctx               850 libavcodec/cuviddec.c         if (!ctx->hwframe) {
ctx               855 libavcodec/cuviddec.c         hwframe_ctx = (AVHWFramesContext*)ctx->hwframe->data;
ctx               857 libavcodec/cuviddec.c         ctx->hwdevice = av_buffer_ref(hwframe_ctx->device_ref);
ctx               858 libavcodec/cuviddec.c         if (!ctx->hwdevice) {
ctx               864 libavcodec/cuviddec.c             ctx->hwdevice = av_buffer_ref(avctx->hw_device_ctx);
ctx               865 libavcodec/cuviddec.c             if (!ctx->hwdevice) {
ctx               870 libavcodec/cuviddec.c             ret = av_hwdevice_ctx_create(&ctx->hwdevice, AV_HWDEVICE_TYPE_CUDA, ctx->cu_gpu, NULL, 0);
ctx               875 libavcodec/cuviddec.c         ctx->hwframe = av_hwframe_ctx_alloc(ctx->hwdevice);
ctx               876 libavcodec/cuviddec.c         if (!ctx->hwframe) {
ctx               882 libavcodec/cuviddec.c         hwframe_ctx = (AVHWFramesContext*)ctx->hwframe->data;
ctx               889 libavcodec/cuviddec.c     ctx->cudl = device_hwctx->internal->cuda_dl;
ctx               891 libavcodec/cuviddec.c     memset(&ctx->cuparseinfo, 0, sizeof(ctx->cuparseinfo));
ctx               892 libavcodec/cuviddec.c     memset(&ctx->cuparse_ext, 0, sizeof(ctx->cuparse_ext));
ctx               895 libavcodec/cuviddec.c     ctx->cuparseinfo.pExtVideoInfo = &ctx->cuparse_ext;
ctx               900 libavcodec/cuviddec.c         ctx->cuparseinfo.CodecType = cudaVideoCodec_H264;
ctx               905 libavcodec/cuviddec.c         ctx->cuparseinfo.CodecType = cudaVideoCodec_HEVC;
ctx               910 libavcodec/cuviddec.c         ctx->cuparseinfo.CodecType = cudaVideoCodec_JPEG;
ctx               915 libavcodec/cuviddec.c         ctx->cuparseinfo.CodecType = cudaVideoCodec_MPEG1;
ctx               920 libavcodec/cuviddec.c         ctx->cuparseinfo.CodecType = cudaVideoCodec_MPEG2;
ctx               925 libavcodec/cuviddec.c         ctx->cuparseinfo.CodecType = cudaVideoCodec_MPEG4;
ctx               930 libavcodec/cuviddec.c         ctx->cuparseinfo.CodecType = cudaVideoCodec_VP8;
ctx               935 libavcodec/cuviddec.c         ctx->cuparseinfo.CodecType = cudaVideoCodec_VP9;
ctx               940 libavcodec/cuviddec.c         ctx->cuparseinfo.CodecType = cudaVideoCodec_VC1;
ctx               950 libavcodec/cuviddec.c         ctx->cuparse_ext.format.seqhdr_data_length = par->extradata_size;
ctx               951 libavcodec/cuviddec.c         memcpy(ctx->cuparse_ext.raw_seqhdr_data,
ctx               953 libavcodec/cuviddec.c                FFMIN(sizeof(ctx->cuparse_ext.raw_seqhdr_data), par->extradata_size));
ctx               955 libavcodec/cuviddec.c         ctx->cuparse_ext.format.seqhdr_data_length = avctx->extradata_size;
ctx               956 libavcodec/cuviddec.c         memcpy(ctx->cuparse_ext.raw_seqhdr_data,
ctx               958 libavcodec/cuviddec.c                FFMIN(sizeof(ctx->cuparse_ext.raw_seqhdr_data), avctx->extradata_size));
ctx               961 libavcodec/cuviddec.c     ctx->key_frame = av_mallocz(ctx->nb_surfaces * sizeof(int));
ctx               962 libavcodec/cuviddec.c     if (!ctx->key_frame) {
ctx               967 libavcodec/cuviddec.c     ctx->cuparseinfo.ulMaxNumDecodeSurfaces = ctx->nb_surfaces;
ctx               968 libavcodec/cuviddec.c     ctx->cuparseinfo.ulMaxDisplayDelay = 4;
ctx               969 libavcodec/cuviddec.c     ctx->cuparseinfo.pUserData = avctx;
ctx               970 libavcodec/cuviddec.c     ctx->cuparseinfo.pfnSequenceCallback = cuvid_handle_video_sequence;
ctx               971 libavcodec/cuviddec.c     ctx->cuparseinfo.pfnDecodePicture = cuvid_handle_picture_decode;
ctx               972 libavcodec/cuviddec.c     ctx->cuparseinfo.pfnDisplayPicture = cuvid_handle_picture_display;
ctx               974 libavcodec/cuviddec.c     ret = CHECK_CU(ctx->cudl->cuCtxPushCurrent(cuda_ctx));
ctx               978 libavcodec/cuviddec.c     ret = cuvid_test_capabilities(avctx, &ctx->cuparseinfo,
ctx               985 libavcodec/cuviddec.c     ret = CHECK_CU(ctx->cvdl->cuvidCreateVideoParser(&ctx->cuparser, &ctx->cuparseinfo));
ctx               989 libavcodec/cuviddec.c     seq_pkt.payload = ctx->cuparse_ext.raw_seqhdr_data;
ctx               990 libavcodec/cuviddec.c     seq_pkt.payload_size = ctx->cuparse_ext.format.seqhdr_data_length;
ctx               993 libavcodec/cuviddec.c         ret = CHECK_CU(ctx->cvdl->cuvidParseVideoData(ctx->cuparser, &seq_pkt));
ctx               998 libavcodec/cuviddec.c     ret = CHECK_CU(ctx->cudl->cuCtxPopCurrent(&dummy));
ctx              1002 libavcodec/cuviddec.c     ctx->prev_pts = INT64_MIN;
ctx              1016 libavcodec/cuviddec.c     CuvidContext *ctx = avctx->priv_data;
ctx              1017 libavcodec/cuviddec.c     AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)ctx->hwdevice->data;
ctx              1023 libavcodec/cuviddec.c     ret = CHECK_CU(ctx->cudl->cuCtxPushCurrent(cuda_ctx));
ctx              1027 libavcodec/cuviddec.c     av_fifo_freep(&ctx->frame_queue);
ctx              1029 libavcodec/cuviddec.c     ctx->frame_queue = av_fifo_alloc(ctx->nb_surfaces * sizeof(CuvidParsedFrame));
ctx              1030 libavcodec/cuviddec.c     if (!ctx->frame_queue) {
ctx              1035 libavcodec/cuviddec.c     if (ctx->cudecoder) {
ctx              1036 libavcodec/cuviddec.c         ctx->cvdl->cuvidDestroyDecoder(ctx->cudecoder);
ctx              1037 libavcodec/cuviddec.c         ctx->cudecoder = NULL;
ctx              1040 libavcodec/cuviddec.c     if (ctx->cuparser) {
ctx              1041 libavcodec/cuviddec.c         ctx->cvdl->cuvidDestroyVideoParser(ctx->cuparser);
ctx              1042 libavcodec/cuviddec.c         ctx->cuparser = NULL;
ctx              1045 libavcodec/cuviddec.c     ret = CHECK_CU(ctx->cvdl->cuvidCreateVideoParser(&ctx->cuparser, &ctx->cuparseinfo));
ctx              1049 libavcodec/cuviddec.c     seq_pkt.payload = ctx->cuparse_ext.raw_seqhdr_data;
ctx              1050 libavcodec/cuviddec.c     seq_pkt.payload_size = ctx->cuparse_ext.format.seqhdr_data_length;
ctx              1053 libavcodec/cuviddec.c         ret = CHECK_CU(ctx->cvdl->cuvidParseVideoData(ctx->cuparser, &seq_pkt));
ctx              1058 libavcodec/cuviddec.c     ret = CHECK_CU(ctx->cudl->cuCtxPopCurrent(&dummy));
ctx              1062 libavcodec/cuviddec.c     ctx->prev_pts = INT64_MIN;
ctx              1063 libavcodec/cuviddec.c     ctx->decoder_flushing = 0;
ctx                26 libavcodec/dca_core_bsf.c static int dca_core_filter(AVBSFContext *ctx, AVPacket *pkt)
ctx                32 libavcodec/dca_core_bsf.c     ret = ff_bsf_get_packet_ref(ctx, pkt);
ctx                43 libavcodec/dct.c static void dst_calc_I_c(DCTContext *ctx, FFTSample *data)
ctx                45 libavcodec/dct.c     int n = 1 << ctx->nbits;
ctx                52 libavcodec/dct.c         float s      = SIN(ctx, n, 2 * i);
ctx                61 libavcodec/dct.c     ctx->rdft.rdft_calc(&ctx->rdft, data);
ctx                73 libavcodec/dct.c static void dct_calc_I_c(DCTContext *ctx, FFTSample *data)
ctx                75 libavcodec/dct.c     int n = 1 << ctx->nbits;
ctx                82 libavcodec/dct.c         float s    = SIN(ctx, n, 2 * i);
ctx                83 libavcodec/dct.c         float c    = COS(ctx, n, 2 * i);
ctx                95 libavcodec/dct.c     ctx->rdft.rdft_calc(&ctx->rdft, data);
ctx               103 libavcodec/dct.c static void dct_calc_III_c(DCTContext *ctx, FFTSample *data)
ctx               105 libavcodec/dct.c     int n = 1 << ctx->nbits;
ctx               114 libavcodec/dct.c         float c    = COS(ctx, n, i);
ctx               115 libavcodec/dct.c         float s    = SIN(ctx, n, i);
ctx               123 libavcodec/dct.c     ctx->rdft.rdft_calc(&ctx->rdft, data);
ctx               128 libavcodec/dct.c         float csc  = ctx->csc2[i] * (tmp1 - tmp2);
ctx               136 libavcodec/dct.c static void dct_calc_II_c(DCTContext *ctx, FFTSample *data)
ctx               138 libavcodec/dct.c     int n = 1 << ctx->nbits;
ctx               145 libavcodec/dct.c         float s    = SIN(ctx, n, 2 * i + 1);
ctx               154 libavcodec/dct.c     ctx->rdft.rdft_calc(&ctx->rdft, data);
ctx               162 libavcodec/dct.c         float c   = COS(ctx, n, i);
ctx               163 libavcodec/dct.c         float s   = SIN(ctx, n, i);
ctx               172 libavcodec/dct.c static void dct32_func(DCTContext *ctx, FFTSample *data)
ctx               174 libavcodec/dct.c     ctx->dct32(data, data);
ctx               118 libavcodec/dds.c     DDSContext *ctx = avctx->priv_data;
ctx               119 libavcodec/dds.c     GetByteContext *gbc = &ctx->gbc;
ctx               140 libavcodec/dds.c     ctx->compressed = flags & DDPF_FOURCC;
ctx               141 libavcodec/dds.c     ctx->paletted   = flags & DDPF_PALETTE;
ctx               145 libavcodec/dds.c     if (ctx->compressed && ctx->paletted) {
ctx               148 libavcodec/dds.c         ctx->paletted = 0;
ctx               151 libavcodec/dds.c     bpp = ctx->bpp = bytestream2_get_le32(gbc); // rgbbitcount
ctx               168 libavcodec/dds.c     if (ctx->compressed)
ctx               171 libavcodec/dds.c     if (ctx->compressed) {
ctx               174 libavcodec/dds.c             ctx->tex_ratio = 8;
ctx               175 libavcodec/dds.c             ctx->tex_funct = ctx->texdsp.dxt1a_block;
ctx               178 libavcodec/dds.c             ctx->tex_ratio = 16;
ctx               179 libavcodec/dds.c             ctx->tex_funct = ctx->texdsp.dxt2_block;
ctx               182 libavcodec/dds.c             ctx->tex_ratio = 16;
ctx               183 libavcodec/dds.c             ctx->tex_funct = ctx->texdsp.dxt3_block;
ctx               186 libavcodec/dds.c             ctx->tex_ratio = 16;
ctx               187 libavcodec/dds.c             ctx->tex_funct = ctx->texdsp.dxt4_block;
ctx               190 libavcodec/dds.c             ctx->tex_ratio = 16;
ctx               192 libavcodec/dds.c                 ctx->tex_funct = ctx->texdsp.dxt5ys_block;
ctx               194 libavcodec/dds.c                 ctx->tex_funct = ctx->texdsp.dxt5y_block;
ctx               196 libavcodec/dds.c                 ctx->tex_funct = ctx->texdsp.dxt5_block;
ctx               199 libavcodec/dds.c             ctx->tex_ratio = 16;
ctx               200 libavcodec/dds.c             ctx->tex_funct = ctx->texdsp.dxt5_block;
ctx               203 libavcodec/dds.c             ctx->postproc = DDS_SWIZZLE_RXGB;
ctx               208 libavcodec/dds.c             ctx->tex_ratio = 8;
ctx               209 libavcodec/dds.c             ctx->tex_funct = ctx->texdsp.rgtc1u_block;
ctx               212 libavcodec/dds.c             ctx->tex_ratio = 8;
ctx               213 libavcodec/dds.c             ctx->tex_funct = ctx->texdsp.rgtc1s_block;
ctx               217 libavcodec/dds.c             ctx->tex_ratio = 16;
ctx               218 libavcodec/dds.c             ctx->tex_funct = ctx->texdsp.dxn3dc_block;
ctx               221 libavcodec/dds.c             ctx->tex_ratio = 16;
ctx               222 libavcodec/dds.c             ctx->tex_funct = ctx->texdsp.rgtc2u_block;
ctx               225 libavcodec/dds.c             ctx->tex_ratio = 16;
ctx               226 libavcodec/dds.c             ctx->tex_funct = ctx->texdsp.rgtc2s_block;
ctx               229 libavcodec/dds.c             ctx->compressed = 0;
ctx               233 libavcodec/dds.c             ctx->compressed = 0;
ctx               238 libavcodec/dds.c             ctx->compressed = 0;
ctx               239 libavcodec/dds.c             ctx->paletted   = 1;
ctx               243 libavcodec/dds.c             ctx->compressed = 0;
ctx               259 libavcodec/dds.c             ctx->compressed = (dxgi >= 70) && (dxgi <= 84);
ctx               301 libavcodec/dds.c                 ctx->tex_ratio = 8;
ctx               302 libavcodec/dds.c                 ctx->tex_funct = ctx->texdsp.dxt1a_block;
ctx               308 libavcodec/dds.c                 ctx->tex_ratio = 16;
ctx               309 libavcodec/dds.c                 ctx->tex_funct = ctx->texdsp.dxt3_block;
ctx               315 libavcodec/dds.c                 ctx->tex_ratio = 16;
ctx               316 libavcodec/dds.c                 ctx->tex_funct = ctx->texdsp.dxt5_block;
ctx               320 libavcodec/dds.c                 ctx->tex_ratio = 8;
ctx               321 libavcodec/dds.c                 ctx->tex_funct = ctx->texdsp.rgtc1u_block;
ctx               324 libavcodec/dds.c                 ctx->tex_ratio = 8;
ctx               325 libavcodec/dds.c                 ctx->tex_funct = ctx->texdsp.rgtc1s_block;
ctx               329 libavcodec/dds.c                 ctx->tex_ratio = 16;
ctx               330 libavcodec/dds.c                 ctx->tex_funct = ctx->texdsp.rgtc2u_block;
ctx               333 libavcodec/dds.c                 ctx->tex_ratio = 16;
ctx               334 libavcodec/dds.c                 ctx->tex_funct = ctx->texdsp.rgtc2s_block;
ctx               346 libavcodec/dds.c     } else if (ctx->paletted) {
ctx               367 libavcodec/dds.c             ctx->postproc = DDS_SWAP_ALPHA;
ctx               399 libavcodec/dds.c         ctx->postproc = DDS_ALPHA_EXP;
ctx               401 libavcodec/dds.c         ctx->postproc = DDS_NORMAL_MAP;
ctx               402 libavcodec/dds.c     else if (ycocg_classic && !ctx->compressed)
ctx               403 libavcodec/dds.c         ctx->postproc = DDS_RAW_YCOCG;
ctx               408 libavcodec/dds.c         ctx->postproc = DDS_SWIZZLE_A2XY;
ctx               411 libavcodec/dds.c         ctx->postproc = DDS_SWIZZLE_XGBR;
ctx               414 libavcodec/dds.c         ctx->postproc = DDS_SWIZZLE_XRBG;
ctx               417 libavcodec/dds.c         ctx->postproc = DDS_SWIZZLE_RBXG;
ctx               420 libavcodec/dds.c         ctx->postproc = DDS_SWIZZLE_RGXB;
ctx               423 libavcodec/dds.c         ctx->postproc = DDS_SWIZZLE_RXBG;
ctx               426 libavcodec/dds.c         ctx->postproc = DDS_SWIZZLE_XGXR;
ctx               429 libavcodec/dds.c         ctx->postproc = DDS_NORMAL_MAP;
ctx               439 libavcodec/dds.c     DDSContext *ctx = avctx->priv_data;
ctx               441 libavcodec/dds.c     const uint8_t *d = ctx->tex_data;
ctx               446 libavcodec/dds.c     int base_blocks_per_slice = h_block / ctx->slice_count;
ctx               447 libavcodec/dds.c     int remainder_blocks = h_block % ctx->slice_count;
ctx               465 libavcodec/dds.c             ctx->tex_funct(p + x * 16, frame->linesize[0],
ctx               466 libavcodec/dds.c                            d + (off + x) * ctx->tex_ratio);
ctx               484 libavcodec/dds.c     DDSContext *ctx = avctx->priv_data;
ctx               487 libavcodec/dds.c     switch (ctx->postproc) {
ctx               515 libavcodec/dds.c         x_off = ctx->tex_ratio == 8 ? 0 : 3;
ctx               611 libavcodec/dds.c     DDSContext *ctx = avctx->priv_data;
ctx               612 libavcodec/dds.c     GetByteContext *gbc = &ctx->gbc;
ctx               618 libavcodec/dds.c     ff_texturedsp_init(&ctx->texdsp);
ctx               664 libavcodec/dds.c     if (ctx->compressed) {
ctx               666 libavcodec/dds.c                    (avctx->coded_width / TEXTURE_BLOCK_W) * ctx->tex_ratio;
ctx               667 libavcodec/dds.c         ctx->slice_count = av_clip(avctx->thread_count, 1,
ctx               678 libavcodec/dds.c         ctx->tex_data = gbc->buffer;
ctx               679 libavcodec/dds.c         avctx->execute2(avctx, decompress_texture_thread, frame, NULL, ctx->slice_count);
ctx               680 libavcodec/dds.c     } else if (!ctx->paletted && ctx->bpp == 4 && avctx->pix_fmt == AV_PIX_FMT_PAL8) {
ctx               713 libavcodec/dds.c         if (ctx->paletted) {
ctx               740 libavcodec/dds.c     if (ctx->postproc != DDS_NONE)
ctx               279 libavcodec/decode.c static int64_t guess_correct_pts(AVCodecContext *ctx,
ctx               285 libavcodec/decode.c         ctx->pts_correction_num_faulty_dts += dts <= ctx->pts_correction_last_dts;
ctx               286 libavcodec/decode.c         ctx->pts_correction_last_dts = dts;
ctx               288 libavcodec/decode.c         ctx->pts_correction_last_dts = reordered_pts;
ctx               291 libavcodec/decode.c         ctx->pts_correction_num_faulty_pts += reordered_pts <= ctx->pts_correction_last_pts;
ctx               292 libavcodec/decode.c         ctx->pts_correction_last_pts = reordered_pts;
ctx               294 libavcodec/decode.c         ctx->pts_correction_last_pts = dts;
ctx               296 libavcodec/decode.c     if ((ctx->pts_correction_num_faulty_pts<=ctx->pts_correction_num_faulty_dts || dts == AV_NOPTS_VALUE)
ctx               134 libavcodec/dirac_arith.h static inline int dirac_get_arith_bit(DiracArith *c, int ctx)
ctx               136 libavcodec/dirac_arith.h     int prob_zero = c->contexts[ctx];
ctx               166 libavcodec/dirac_arith.h     c->contexts[ctx] += ff_dirac_prob_branchless[prob_zero>>8][bit];
ctx                73 libavcodec/dnxhddec.c     int (*decode_dct_block)(const struct DNXHDContext *ctx,
ctx                80 libavcodec/dnxhddec.c static int dnxhd_decode_dct_block_8(const DNXHDContext *ctx,
ctx                82 libavcodec/dnxhddec.c static int dnxhd_decode_dct_block_10(const DNXHDContext *ctx,
ctx                84 libavcodec/dnxhddec.c static int dnxhd_decode_dct_block_10_444(const DNXHDContext *ctx,
ctx                86 libavcodec/dnxhddec.c static int dnxhd_decode_dct_block_12(const DNXHDContext *ctx,
ctx                88 libavcodec/dnxhddec.c static int dnxhd_decode_dct_block_12_444(const DNXHDContext *ctx,
ctx                93 libavcodec/dnxhddec.c     DNXHDContext *ctx = avctx->priv_data;
ctx                95 libavcodec/dnxhddec.c     ctx->avctx = avctx;
ctx                96 libavcodec/dnxhddec.c     ctx->cid = -1;
ctx               104 libavcodec/dnxhddec.c     ctx->rows = av_mallocz_array(avctx->thread_count, sizeof(RowContext));
ctx               105 libavcodec/dnxhddec.c     if (!ctx->rows)
ctx               111 libavcodec/dnxhddec.c static int dnxhd_init_vlc(DNXHDContext *ctx, uint32_t cid, int bitdepth)
ctx               113 libavcodec/dnxhddec.c     if (cid != ctx->cid) {
ctx               117 libavcodec/dnxhddec.c             av_log(ctx->avctx, AV_LOG_ERROR, "unsupported cid %"PRIu32"\n", cid);
ctx               122 libavcodec/dnxhddec.c             av_log(ctx->avctx, AV_LOG_ERROR, "bit depth mismatches %d %d\n", ff_dnxhd_cid_table[index].bit_depth, bitdepth);
ctx               125 libavcodec/dnxhddec.c         ctx->cid_table = &ff_dnxhd_cid_table[index];
ctx               126 libavcodec/dnxhddec.c         av_log(ctx->avctx, AV_LOG_VERBOSE, "Profile cid %"PRIu32".\n", cid);
ctx               128 libavcodec/dnxhddec.c         ff_free_vlc(&ctx->ac_vlc);
ctx               129 libavcodec/dnxhddec.c         ff_free_vlc(&ctx->dc_vlc);
ctx               130 libavcodec/dnxhddec.c         ff_free_vlc(&ctx->run_vlc);
ctx               132 libavcodec/dnxhddec.c         init_vlc(&ctx->ac_vlc, DNXHD_VLC_BITS, 257,
ctx               133 libavcodec/dnxhddec.c                  ctx->cid_table->ac_bits, 1, 1,
ctx               134 libavcodec/dnxhddec.c                  ctx->cid_table->ac_codes, 2, 2, 0);
ctx               135 libavcodec/dnxhddec.c         init_vlc(&ctx->dc_vlc, DNXHD_DC_VLC_BITS, bitdepth > 8 ? 14 : 12,
ctx               136 libavcodec/dnxhddec.c                  ctx->cid_table->dc_bits, 1, 1,
ctx               137 libavcodec/dnxhddec.c                  ctx->cid_table->dc_codes, 1, 1, 0);
ctx               138 libavcodec/dnxhddec.c         init_vlc(&ctx->run_vlc, DNXHD_VLC_BITS, 62,
ctx               139 libavcodec/dnxhddec.c                  ctx->cid_table->run_bits, 1, 1,
ctx               140 libavcodec/dnxhddec.c                  ctx->cid_table->run_codes, 2, 2, 0);
ctx               142 libavcodec/dnxhddec.c         ctx->cid = cid;
ctx               164 libavcodec/dnxhddec.c static int dnxhd_decode_header(DNXHDContext *ctx, AVFrame *frame,
ctx               169 libavcodec/dnxhddec.c     int old_bit_depth = ctx->bit_depth, bitdepth;
ctx               172 libavcodec/dnxhddec.c         av_log(ctx->avctx, AV_LOG_ERROR,
ctx               179 libavcodec/dnxhddec.c         av_log(ctx->avctx, AV_LOG_ERROR,
ctx               185 libavcodec/dnxhddec.c         ctx->cur_field = buf[5] & 1;
ctx               187 libavcodec/dnxhddec.c         frame->top_field_first  = first_field ^ ctx->cur_field;
ctx               188 libavcodec/dnxhddec.c         av_log(ctx->avctx, AV_LOG_DEBUG,
ctx               189 libavcodec/dnxhddec.c                "interlaced %d, cur field %d\n", buf[5] & 3, ctx->cur_field);
ctx               191 libavcodec/dnxhddec.c         ctx->cur_field = 0;
ctx               193 libavcodec/dnxhddec.c     ctx->mbaff = (buf[0x6] >> 5) & 1;
ctx               194 libavcodec/dnxhddec.c     ctx->alpha = buf[0x7] & 1;
ctx               195 libavcodec/dnxhddec.c     ctx->lla   = (buf[0x7] >> 1) & 1;
ctx               196 libavcodec/dnxhddec.c     if (ctx->alpha)
ctx               197 libavcodec/dnxhddec.c         avpriv_request_sample(ctx->avctx, "alpha");
ctx               199 libavcodec/dnxhddec.c     ctx->height = AV_RB16(buf + 0x18);
ctx               200 libavcodec/dnxhddec.c     ctx->width  = AV_RB16(buf + 0x1a);
ctx               207 libavcodec/dnxhddec.c         av_log(ctx->avctx, AV_LOG_ERROR,
ctx               214 libavcodec/dnxhddec.c     ctx->avctx->profile = dnxhd_get_profile(cid);
ctx               216 libavcodec/dnxhddec.c     if ((ret = dnxhd_init_vlc(ctx, cid, bitdepth)) < 0)
ctx               218 libavcodec/dnxhddec.c     if (ctx->mbaff && ctx->cid_table->cid != 1260)
ctx               219 libavcodec/dnxhddec.c         av_log(ctx->avctx, AV_LOG_WARNING,
ctx               229 libavcodec/dnxhddec.c     ctx->act = buf[0x2C] & 1;
ctx               230 libavcodec/dnxhddec.c     if (ctx->act && ctx->cid_table->cid != 1256 && ctx->cid_table->cid != 1270)
ctx               231 libavcodec/dnxhddec.c         av_log(ctx->avctx, AV_LOG_WARNING,
ctx               234 libavcodec/dnxhddec.c     ctx->is_444 = (buf[0x2C] >> 6) & 1;
ctx               235 libavcodec/dnxhddec.c     if (ctx->is_444) {
ctx               237 libavcodec/dnxhddec.c             avpriv_request_sample(ctx->avctx, "4:4:4 8 bits");
ctx               240 libavcodec/dnxhddec.c             ctx->decode_dct_block = dnxhd_decode_dct_block_10_444;
ctx               241 libavcodec/dnxhddec.c             ctx->pix_fmt = ctx->act ? AV_PIX_FMT_YUV444P10
ctx               244 libavcodec/dnxhddec.c             ctx->decode_dct_block = dnxhd_decode_dct_block_12_444;
ctx               245 libavcodec/dnxhddec.c             ctx->pix_fmt = ctx->act ? AV_PIX_FMT_YUV444P12
ctx               249 libavcodec/dnxhddec.c         ctx->decode_dct_block = dnxhd_decode_dct_block_12;
ctx               250 libavcodec/dnxhddec.c         ctx->pix_fmt = AV_PIX_FMT_YUV422P12;
ctx               252 libavcodec/dnxhddec.c         if (ctx->avctx->profile == FF_PROFILE_DNXHR_HQX)
ctx               253 libavcodec/dnxhddec.c             ctx->decode_dct_block = dnxhd_decode_dct_block_10_444;
ctx               255 libavcodec/dnxhddec.c             ctx->decode_dct_block = dnxhd_decode_dct_block_10;
ctx               256 libavcodec/dnxhddec.c         ctx->pix_fmt = AV_PIX_FMT_YUV422P10;
ctx               258 libavcodec/dnxhddec.c         ctx->decode_dct_block = dnxhd_decode_dct_block_8;
ctx               259 libavcodec/dnxhddec.c         ctx->pix_fmt = AV_PIX_FMT_YUV422P;
ctx               262 libavcodec/dnxhddec.c     ctx->avctx->bits_per_raw_sample = ctx->bit_depth = bitdepth;
ctx               263 libavcodec/dnxhddec.c     if (ctx->bit_depth != old_bit_depth) {
ctx               264 libavcodec/dnxhddec.c         ff_blockdsp_init(&ctx->bdsp, ctx->avctx);
ctx               265 libavcodec/dnxhddec.c         ff_idctdsp_init(&ctx->idsp, ctx->avctx);
ctx               266 libavcodec/dnxhddec.c         ff_init_scantable(ctx->idsp.idct_permutation, &ctx->scantable,
ctx               272 libavcodec/dnxhddec.c     if (ctx->width != ctx->cid_table->width &&
ctx               273 libavcodec/dnxhddec.c         ctx->cid_table->width != DNXHD_VARIABLE) {
ctx               274 libavcodec/dnxhddec.c         av_reduce(&ctx->avctx->sample_aspect_ratio.num,
ctx               275 libavcodec/dnxhddec.c                   &ctx->avctx->sample_aspect_ratio.den,
ctx               276 libavcodec/dnxhddec.c                   ctx->width, ctx->cid_table->width, 255);
ctx               277 libavcodec/dnxhddec.c         ctx->width = ctx->cid_table->width;
ctx               280 libavcodec/dnxhddec.c     if (buf_size < ctx->cid_table->coding_unit_size) {
ctx               281 libavcodec/dnxhddec.c         av_log(ctx->avctx, AV_LOG_ERROR, "incorrect frame size (%d < %u).\n",
ctx               282 libavcodec/dnxhddec.c                buf_size, ctx->cid_table->coding_unit_size);
ctx               286 libavcodec/dnxhddec.c     ctx->mb_width  = (ctx->width + 15)>> 4;
ctx               287 libavcodec/dnxhddec.c     ctx->mb_height = AV_RB16(buf + 0x16c);
ctx               289 libavcodec/dnxhddec.c     if ((ctx->height + 15) >> 4 == ctx->mb_height && frame->interlaced_frame)
ctx               290 libavcodec/dnxhddec.c         ctx->height <<= 1;
ctx               292 libavcodec/dnxhddec.c     av_log(ctx->avctx, AV_LOG_VERBOSE, "%dx%d, 4:%s %d bits, MBAFF=%d ACT=%d\n",
ctx               293 libavcodec/dnxhddec.c            ctx->width, ctx->height, ctx->is_444 ? "4:4" : "2:2",
ctx               294 libavcodec/dnxhddec.c            ctx->bit_depth, ctx->mbaff, ctx->act);
ctx               297 libavcodec/dnxhddec.c     if (ctx->mb_height > 68 && ff_dnxhd_check_header_prefix_hr(header_prefix)) {
ctx               298 libavcodec/dnxhddec.c         ctx->data_offset = 0x170 + (ctx->mb_height << 2);
ctx               300 libavcodec/dnxhddec.c         if (ctx->mb_height > 68) {
ctx               301 libavcodec/dnxhddec.c             av_log(ctx->avctx, AV_LOG_ERROR,
ctx               302 libavcodec/dnxhddec.c                    "mb height too big: %d\n", ctx->mb_height);
ctx               305 libavcodec/dnxhddec.c         ctx->data_offset = 0x280;
ctx               307 libavcodec/dnxhddec.c     if ((ctx->mb_height << frame->interlaced_frame) > (ctx->height + 15) >> 4) {
ctx               308 libavcodec/dnxhddec.c         av_log(ctx->avctx, AV_LOG_ERROR,
ctx               309 libavcodec/dnxhddec.c                 "mb height too big: %d\n", ctx->mb_height);
ctx               313 libavcodec/dnxhddec.c     if (buf_size < ctx->data_offset) {
ctx               314 libavcodec/dnxhddec.c         av_log(ctx->avctx, AV_LOG_ERROR,
ctx               315 libavcodec/dnxhddec.c                "buffer too small (%d < %d).\n", buf_size, ctx->data_offset);
ctx               319 libavcodec/dnxhddec.c     if (ctx->mb_height > FF_ARRAY_ELEMS(ctx->mb_scan_index)) {
ctx               320 libavcodec/dnxhddec.c         av_log(ctx->avctx, AV_LOG_ERROR,
ctx               321 libavcodec/dnxhddec.c                "mb_height too big (%d > %"SIZE_SPECIFIER").\n", ctx->mb_height, FF_ARRAY_ELEMS(ctx->mb_scan_index));
ctx               325 libavcodec/dnxhddec.c     for (i = 0; i < ctx->mb_height; i++) {
ctx               326 libavcodec/dnxhddec.c         ctx->mb_scan_index[i] = AV_RB32(buf + 0x170 + (i << 2));
ctx               327 libavcodec/dnxhddec.c         ff_dlog(ctx->avctx, "mb scan index %d, pos %d: %"PRIu32"\n",
ctx               328 libavcodec/dnxhddec.c                 i, 0x170 + (i << 2), ctx->mb_scan_index[i]);
ctx               329 libavcodec/dnxhddec.c         if (buf_size - ctx->data_offset < ctx->mb_scan_index[i]) {
ctx               330 libavcodec/dnxhddec.c             av_log(ctx->avctx, AV_LOG_ERROR,
ctx               332 libavcodec/dnxhddec.c                    ctx->mb_scan_index[i], buf_size - ctx->data_offset);
ctx               340 libavcodec/dnxhddec.c static av_always_inline int dnxhd_decode_dct_block(const DNXHDContext *ctx,
ctx               352 libavcodec/dnxhddec.c     const uint8_t *ac_info = ctx->cid_table->ac_info;
ctx               354 libavcodec/dnxhddec.c     const int eob_index     = ctx->cid_table->eob_index;
ctx               358 libavcodec/dnxhddec.c     ctx->bdsp.clear_block(block);
ctx               360 libavcodec/dnxhddec.c     if (!ctx->is_444) {
ctx               364 libavcodec/dnxhddec.c             weight_matrix = ctx->cid_table->chroma_weight;
ctx               368 libavcodec/dnxhddec.c             weight_matrix = ctx->cid_table->luma_weight;
ctx               374 libavcodec/dnxhddec.c             weight_matrix = ctx->cid_table->chroma_weight;
ctx               377 libavcodec/dnxhddec.c             weight_matrix = ctx->cid_table->luma_weight;
ctx               382 libavcodec/dnxhddec.c     GET_VLC(len, bs, &row->gb, ctx->dc_vlc.table, DNXHD_DC_VLC_BITS, 1);
ctx               399 libavcodec/dnxhddec.c     GET_VLC(index1, bs, &row->gb, ctx->ac_vlc.table,
ctx               416 libavcodec/dnxhddec.c             GET_VLC(index2, bs, &row->gb, ctx->run_vlc.table,
ctx               418 libavcodec/dnxhddec.c             i += ctx->cid_table->run[index2];
ctx               422 libavcodec/dnxhddec.c             av_log(ctx->avctx, AV_LOG_ERROR, "ac tex damaged %d, %d\n", n, i);
ctx               427 libavcodec/dnxhddec.c         j     = ctx->scantable.permutated[i];
ctx               437 libavcodec/dnxhddec.c         GET_VLC(index1, bs, &row->gb, ctx->ac_vlc.table,
ctx               445 libavcodec/dnxhddec.c static int dnxhd_decode_dct_block_8(const DNXHDContext *ctx,
ctx               448 libavcodec/dnxhddec.c     return dnxhd_decode_dct_block(ctx, row, n, 4, 32, 6, 0);
ctx               451 libavcodec/dnxhddec.c static int dnxhd_decode_dct_block_10(const DNXHDContext *ctx,
ctx               454 libavcodec/dnxhddec.c     return dnxhd_decode_dct_block(ctx, row, n, 6, 8, 4, 0);
ctx               457 libavcodec/dnxhddec.c static int dnxhd_decode_dct_block_10_444(const DNXHDContext *ctx,
ctx               460 libavcodec/dnxhddec.c     return dnxhd_decode_dct_block(ctx, row, n, 6, 32, 6, 0);
ctx               463 libavcodec/dnxhddec.c static int dnxhd_decode_dct_block_12(const DNXHDContext *ctx,
ctx               466 libavcodec/dnxhddec.c     return dnxhd_decode_dct_block(ctx, row, n, 6, 8, 4, 2);
ctx               469 libavcodec/dnxhddec.c static int dnxhd_decode_dct_block_12_444(const DNXHDContext *ctx,
ctx               472 libavcodec/dnxhddec.c     return dnxhd_decode_dct_block(ctx, row, n, 6, 32, 4, 2);
ctx               475 libavcodec/dnxhddec.c static int dnxhd_decode_macroblock(const DNXHDContext *ctx, RowContext *row,
ctx               478 libavcodec/dnxhddec.c     int shift1 = ctx->bit_depth >= 10;
ctx               486 libavcodec/dnxhddec.c     if (ctx->mbaff) {
ctx               494 libavcodec/dnxhddec.c         if (!ctx->act) {
ctx               498 libavcodec/dnxhddec.c                 av_log(ctx->avctx, AV_LOG_ERROR,
ctx               510 libavcodec/dnxhddec.c             row->luma_scale[i]   = qscale * ctx->cid_table->luma_weight[i];
ctx               511 libavcodec/dnxhddec.c             row->chroma_scale[i] = qscale * ctx->cid_table->chroma_weight[i];
ctx               516 libavcodec/dnxhddec.c     for (i = 0; i < 8 + 4 * ctx->is_444; i++) {
ctx               517 libavcodec/dnxhddec.c         if (ctx->decode_dct_block(ctx, row, i) < 0)
ctx               527 libavcodec/dnxhddec.c     dest_u = frame->data[1] + ((y * dct_linesize_chroma) << 4) + (x << (3 + shift1 + ctx->is_444));
ctx               528 libavcodec/dnxhddec.c     dest_v = frame->data[2] + ((y * dct_linesize_chroma) << 4) + (x << (3 + shift1 + ctx->is_444));
ctx               530 libavcodec/dnxhddec.c     if (frame->interlaced_frame && ctx->cur_field) {
ctx               542 libavcodec/dnxhddec.c     if (!ctx->is_444) {
ctx               543 libavcodec/dnxhddec.c         ctx->idsp.idct_put(dest_y,                               dct_linesize_luma, row->blocks[0]);
ctx               544 libavcodec/dnxhddec.c         ctx->idsp.idct_put(dest_y + dct_x_offset,                dct_linesize_luma, row->blocks[1]);
ctx               545 libavcodec/dnxhddec.c         ctx->idsp.idct_put(dest_y + dct_y_offset,                dct_linesize_luma, row->blocks[4]);
ctx               546 libavcodec/dnxhddec.c         ctx->idsp.idct_put(dest_y + dct_y_offset + dct_x_offset, dct_linesize_luma, row->blocks[5]);
ctx               548 libavcodec/dnxhddec.c         if (!(ctx->avctx->flags & AV_CODEC_FLAG_GRAY)) {
ctx               550 libavcodec/dnxhddec.c             ctx->idsp.idct_put(dest_u,                dct_linesize_chroma, row->blocks[2]);
ctx               551 libavcodec/dnxhddec.c             ctx->idsp.idct_put(dest_v,                dct_linesize_chroma, row->blocks[3]);
ctx               552 libavcodec/dnxhddec.c             ctx->idsp.idct_put(dest_u + dct_y_offset, dct_linesize_chroma, row->blocks[6]);
ctx               553 libavcodec/dnxhddec.c             ctx->idsp.idct_put(dest_v + dct_y_offset, dct_linesize_chroma, row->blocks[7]);
ctx               556 libavcodec/dnxhddec.c         ctx->idsp.idct_put(dest_y,                               dct_linesize_luma, row->blocks[0]);
ctx               557 libavcodec/dnxhddec.c         ctx->idsp.idct_put(dest_y + dct_x_offset,                dct_linesize_luma, row->blocks[1]);
ctx               558 libavcodec/dnxhddec.c         ctx->idsp.idct_put(dest_y + dct_y_offset,                dct_linesize_luma, row->blocks[6]);
ctx               559 libavcodec/dnxhddec.c         ctx->idsp.idct_put(dest_y + dct_y_offset + dct_x_offset, dct_linesize_luma, row->blocks[7]);
ctx               561 libavcodec/dnxhddec.c         if (!(ctx->avctx->flags & AV_CODEC_FLAG_GRAY)) {
ctx               563 libavcodec/dnxhddec.c             ctx->idsp.idct_put(dest_u,                               dct_linesize_chroma, row->blocks[2]);
ctx               564 libavcodec/dnxhddec.c             ctx->idsp.idct_put(dest_u + dct_x_offset,                dct_linesize_chroma, row->blocks[3]);
ctx               565 libavcodec/dnxhddec.c             ctx->idsp.idct_put(dest_u + dct_y_offset,                dct_linesize_chroma, row->blocks[8]);
ctx               566 libavcodec/dnxhddec.c             ctx->idsp.idct_put(dest_u + dct_y_offset + dct_x_offset, dct_linesize_chroma, row->blocks[9]);
ctx               567 libavcodec/dnxhddec.c             ctx->idsp.idct_put(dest_v,                               dct_linesize_chroma, row->blocks[4]);
ctx               568 libavcodec/dnxhddec.c             ctx->idsp.idct_put(dest_v + dct_x_offset,                dct_linesize_chroma, row->blocks[5]);
ctx               569 libavcodec/dnxhddec.c             ctx->idsp.idct_put(dest_v + dct_y_offset,                dct_linesize_chroma, row->blocks[10]);
ctx               570 libavcodec/dnxhddec.c             ctx->idsp.idct_put(dest_v + dct_y_offset + dct_x_offset, dct_linesize_chroma, row->blocks[11]);
ctx               580 libavcodec/dnxhddec.c     const DNXHDContext *ctx = avctx->priv_data;
ctx               581 libavcodec/dnxhddec.c     uint32_t offset = ctx->mb_scan_index[rownb];
ctx               582 libavcodec/dnxhddec.c     RowContext *row = ctx->rows + threadnb;
ctx               587 libavcodec/dnxhddec.c     row->last_dc[2] = 1 << (ctx->bit_depth + 2); // for levels +2^(bitdepth-1)
ctx               588 libavcodec/dnxhddec.c     ret = init_get_bits8(&row->gb, ctx->buf + offset, ctx->buf_size - offset);
ctx               593 libavcodec/dnxhddec.c     for (x = 0; x < ctx->mb_width; x++) {
ctx               594 libavcodec/dnxhddec.c         int ret = dnxhd_decode_macroblock(ctx, row, data, x, rownb);
ctx               609 libavcodec/dnxhddec.c     DNXHDContext *ctx = avctx->priv_data;
ctx               618 libavcodec/dnxhddec.c         ctx->rows[i].format = -1;
ctx               621 libavcodec/dnxhddec.c     if ((ret = dnxhd_decode_header(ctx, picture, buf, buf_size, first_field)) < 0)
ctx               625 libavcodec/dnxhddec.c         (ctx->width != avctx->width || ctx->height != avctx->height)) {
ctx               627 libavcodec/dnxhddec.c                avctx->width, avctx->height, ctx->width, ctx->height);
ctx               630 libavcodec/dnxhddec.c     if (avctx->pix_fmt != AV_PIX_FMT_NONE && avctx->pix_fmt != ctx->pix_fmt) {
ctx               632 libavcodec/dnxhddec.c                av_get_pix_fmt_name(avctx->pix_fmt), av_get_pix_fmt_name(ctx->pix_fmt));
ctx               636 libavcodec/dnxhddec.c     avctx->pix_fmt = ctx->pix_fmt;
ctx               637 libavcodec/dnxhddec.c     ret = ff_set_dimensions(avctx, ctx->width, ctx->height);
ctx               648 libavcodec/dnxhddec.c     ctx->buf_size = buf_size - ctx->data_offset;
ctx               649 libavcodec/dnxhddec.c     ctx->buf = buf + ctx->data_offset;
ctx               650 libavcodec/dnxhddec.c     avctx->execute2(avctx, dnxhd_decode_row, picture, NULL, ctx->mb_height);
ctx               653 libavcodec/dnxhddec.c         buf      += ctx->cid_table->coding_unit_size;
ctx               654 libavcodec/dnxhddec.c         buf_size -= ctx->cid_table->coding_unit_size;
ctx               661 libavcodec/dnxhddec.c         ret += ctx->rows[i].errors;
ctx               662 libavcodec/dnxhddec.c         ctx->rows[i].errors = 0;
ctx               665 libavcodec/dnxhddec.c     if (ctx->act) {
ctx               667 libavcodec/dnxhddec.c         int format = ctx->rows[0].format;
ctx               669 libavcodec/dnxhddec.c             if (ctx->rows[i].format != format &&
ctx               670 libavcodec/dnxhddec.c                 ctx->rows[i].format != -1 /* not run */) {
ctx               680 libavcodec/dnxhddec.c                 av_log(ctx->avctx, AV_LOG_ERROR,
ctx               685 libavcodec/dnxhddec.c             ctx->pix_fmt = ctx->bit_depth==10
ctx               689 libavcodec/dnxhddec.c             ctx->pix_fmt = ctx->bit_depth==10
ctx               694 libavcodec/dnxhddec.c     avctx->pix_fmt = ctx->pix_fmt;
ctx               696 libavcodec/dnxhddec.c         av_log(ctx->avctx, AV_LOG_ERROR, "%d lines with errors\n", ret);
ctx               706 libavcodec/dnxhddec.c     DNXHDContext *ctx = avctx->priv_data;
ctx               708 libavcodec/dnxhddec.c     ff_free_vlc(&ctx->ac_vlc);
ctx               709 libavcodec/dnxhddec.c     ff_free_vlc(&ctx->dc_vlc);
ctx               710 libavcodec/dnxhddec.c     ff_free_vlc(&ctx->run_vlc);
ctx               712 libavcodec/dnxhddec.c     av_freep(&ctx->rows);
ctx               115 libavcodec/dnxhdenc.c static int dnxhd_10bit_dct_quantize_444(MpegEncContext *ctx, int16_t *block,
ctx               120 libavcodec/dnxhdenc.c     const uint8_t *scantable= ctx->intra_scantable.scantable;
ctx               125 libavcodec/dnxhdenc.c     ctx->fdsp.fdct(block);
ctx               130 libavcodec/dnxhdenc.c     qmat = n < 4 ? ctx->q_intra_matrix[qscale] : ctx->q_chroma_intra_matrix[qscale];
ctx               131 libavcodec/dnxhdenc.c     bias= ctx->intra_quant_bias * (1 << (16 - 8));
ctx               164 libavcodec/dnxhdenc.c     *overflow = ctx->max_qcoeff < max; //overflow might have happened
ctx               167 libavcodec/dnxhdenc.c     if (ctx->idsp.perm_type != FF_IDCT_PERM_NONE)
ctx               168 libavcodec/dnxhdenc.c         ff_block_permute(block, ctx->idsp.idct_permutation,
ctx               174 libavcodec/dnxhdenc.c static int dnxhd_10bit_dct_quantize(MpegEncContext *ctx, int16_t *block,
ctx               177 libavcodec/dnxhdenc.c     const uint8_t *scantable= ctx->intra_scantable.scantable;
ctx               178 libavcodec/dnxhdenc.c     const int *qmat = n<4 ? ctx->q_intra_matrix[qscale] : ctx->q_chroma_intra_matrix[qscale];
ctx               182 libavcodec/dnxhdenc.c     ctx->fdsp.fdct(block);
ctx               198 libavcodec/dnxhdenc.c     if (ctx->idsp.perm_type != FF_IDCT_PERM_NONE)
ctx               199 libavcodec/dnxhdenc.c         ff_block_permute(block, ctx->idsp.idct_permutation,
ctx               205 libavcodec/dnxhdenc.c static av_cold int dnxhd_init_vlc(DNXHDEncContext *ctx)
ctx               208 libavcodec/dnxhdenc.c     int max_level = 1 << (ctx->bit_depth + 2);
ctx               210 libavcodec/dnxhdenc.c     FF_ALLOCZ_ARRAY_OR_GOTO(ctx->m.avctx, ctx->orig_vlc_codes,
ctx               211 libavcodec/dnxhdenc.c                       max_level, 4 * sizeof(*ctx->orig_vlc_codes), fail);
ctx               212 libavcodec/dnxhdenc.c     FF_ALLOCZ_ARRAY_OR_GOTO(ctx->m.avctx, ctx->orig_vlc_bits,
ctx               213 libavcodec/dnxhdenc.c                       max_level, 4 * sizeof(*ctx->orig_vlc_bits), fail);
ctx               214 libavcodec/dnxhdenc.c     FF_ALLOCZ_OR_GOTO(ctx->m.avctx, ctx->run_codes,
ctx               216 libavcodec/dnxhdenc.c     FF_ALLOCZ_OR_GOTO(ctx->m.avctx, ctx->run_bits,
ctx               219 libavcodec/dnxhdenc.c     ctx->vlc_codes = ctx->orig_vlc_codes + max_level * 2;
ctx               220 libavcodec/dnxhdenc.c     ctx->vlc_bits  = ctx->orig_vlc_bits + max_level * 2;
ctx               232 libavcodec/dnxhdenc.c                 if (ctx->cid_table->ac_info[2*j+0] >> 1 == alevel &&
ctx               233 libavcodec/dnxhdenc.c                     (!offset || (ctx->cid_table->ac_info[2*j+1] & 1) && offset) &&
ctx               234 libavcodec/dnxhdenc.c                     (!run    || (ctx->cid_table->ac_info[2*j+1] & 2) && run)) {
ctx               235 libavcodec/dnxhdenc.c                     av_assert1(!ctx->vlc_codes[index]);
ctx               237 libavcodec/dnxhdenc.c                         ctx->vlc_codes[index] =
ctx               238 libavcodec/dnxhdenc.c                             (ctx->cid_table->ac_codes[j] << 1) | (sign & 1);
ctx               239 libavcodec/dnxhdenc.c                         ctx->vlc_bits[index] = ctx->cid_table->ac_bits[j] + 1;
ctx               241 libavcodec/dnxhdenc.c                         ctx->vlc_codes[index] = ctx->cid_table->ac_codes[j];
ctx               242 libavcodec/dnxhdenc.c                         ctx->vlc_bits[index]  = ctx->cid_table->ac_bits[j];
ctx               249 libavcodec/dnxhdenc.c                 ctx->vlc_codes[index] =
ctx               250 libavcodec/dnxhdenc.c                     (ctx->vlc_codes[index] << ctx->cid_table->index_bits) | offset;
ctx               251 libavcodec/dnxhdenc.c                 ctx->vlc_bits[index] += ctx->cid_table->index_bits;
ctx               256 libavcodec/dnxhdenc.c         int run = ctx->cid_table->run[i];
ctx               258 libavcodec/dnxhdenc.c         ctx->run_codes[run] = ctx->cid_table->run_codes[i];
ctx               259 libavcodec/dnxhdenc.c         ctx->run_bits[run]  = ctx->cid_table->run_bits[i];
ctx               266 libavcodec/dnxhdenc.c static av_cold int dnxhd_init_qmat(DNXHDEncContext *ctx, int lbias, int cbias)
ctx               271 libavcodec/dnxhdenc.c     const uint8_t *luma_weight_table   = ctx->cid_table->luma_weight;
ctx               272 libavcodec/dnxhdenc.c     const uint8_t *chroma_weight_table = ctx->cid_table->chroma_weight;
ctx               274 libavcodec/dnxhdenc.c     FF_ALLOCZ_ARRAY_OR_GOTO(ctx->m.avctx, ctx->qmatrix_l,
ctx               275 libavcodec/dnxhdenc.c                       (ctx->m.avctx->qmax + 1), 64 * sizeof(int), fail);
ctx               276 libavcodec/dnxhdenc.c     FF_ALLOCZ_ARRAY_OR_GOTO(ctx->m.avctx, ctx->qmatrix_c,
ctx               277 libavcodec/dnxhdenc.c                       (ctx->m.avctx->qmax + 1), 64 * sizeof(int), fail);
ctx               278 libavcodec/dnxhdenc.c     FF_ALLOCZ_ARRAY_OR_GOTO(ctx->m.avctx, ctx->qmatrix_l16,
ctx               279 libavcodec/dnxhdenc.c                       (ctx->m.avctx->qmax + 1), 64 * 2 * sizeof(uint16_t),
ctx               281 libavcodec/dnxhdenc.c     FF_ALLOCZ_ARRAY_OR_GOTO(ctx->m.avctx, ctx->qmatrix_c16,
ctx               282 libavcodec/dnxhdenc.c                       (ctx->m.avctx->qmax + 1), 64 * 2 * sizeof(uint16_t),
ctx               285 libavcodec/dnxhdenc.c     if (ctx->bit_depth == 8) {
ctx               287 libavcodec/dnxhdenc.c             int j = ctx->m.idsp.idct_permutation[ff_zigzag_direct[i]];
ctx               288 libavcodec/dnxhdenc.c             weight_matrix[j] = ctx->cid_table->luma_weight[i];
ctx               290 libavcodec/dnxhdenc.c         ff_convert_matrix(&ctx->m, ctx->qmatrix_l, ctx->qmatrix_l16,
ctx               291 libavcodec/dnxhdenc.c                           weight_matrix, ctx->intra_quant_bias, 1,
ctx               292 libavcodec/dnxhdenc.c                           ctx->m.avctx->qmax, 1);
ctx               294 libavcodec/dnxhdenc.c             int j = ctx->m.idsp.idct_permutation[ff_zigzag_direct[i]];
ctx               295 libavcodec/dnxhdenc.c             weight_matrix[j] = ctx->cid_table->chroma_weight[i];
ctx               297 libavcodec/dnxhdenc.c         ff_convert_matrix(&ctx->m, ctx->qmatrix_c, ctx->qmatrix_c16,
ctx               298 libavcodec/dnxhdenc.c                           weight_matrix, ctx->intra_quant_bias, 1,
ctx               299 libavcodec/dnxhdenc.c                           ctx->m.avctx->qmax, 1);
ctx               301 libavcodec/dnxhdenc.c         for (qscale = 1; qscale <= ctx->m.avctx->qmax; qscale++) {
ctx               303 libavcodec/dnxhdenc.c                 ctx->qmatrix_l[qscale][i]      <<= 2;
ctx               304 libavcodec/dnxhdenc.c                 ctx->qmatrix_c[qscale][i]      <<= 2;
ctx               305 libavcodec/dnxhdenc.c                 ctx->qmatrix_l16[qscale][0][i] <<= 2;
ctx               306 libavcodec/dnxhdenc.c                 ctx->qmatrix_l16[qscale][1][i] <<= 2;
ctx               307 libavcodec/dnxhdenc.c                 ctx->qmatrix_c16[qscale][0][i] <<= 2;
ctx               308 libavcodec/dnxhdenc.c                 ctx->qmatrix_c16[qscale][1][i] <<= 2;
ctx               313 libavcodec/dnxhdenc.c         for (qscale = 1; qscale <= ctx->m.avctx->qmax; qscale++) {
ctx               328 libavcodec/dnxhdenc.c                 ctx->qmatrix_l[qscale][j] = (1 << (DNX10BIT_QMAT_SHIFT + 1)) /
ctx               330 libavcodec/dnxhdenc.c                 ctx->qmatrix_c[qscale][j] = (1 << (DNX10BIT_QMAT_SHIFT + 1)) /
ctx               336 libavcodec/dnxhdenc.c     ctx->m.q_chroma_intra_matrix16 = ctx->qmatrix_c16;
ctx               337 libavcodec/dnxhdenc.c     ctx->m.q_chroma_intra_matrix   = ctx->qmatrix_c;
ctx               338 libavcodec/dnxhdenc.c     ctx->m.q_intra_matrix16        = ctx->qmatrix_l16;
ctx               339 libavcodec/dnxhdenc.c     ctx->m.q_intra_matrix          = ctx->qmatrix_l;
ctx               346 libavcodec/dnxhdenc.c static av_cold int dnxhd_init_rc(DNXHDEncContext *ctx)
ctx               348 libavcodec/dnxhdenc.c     FF_ALLOCZ_ARRAY_OR_GOTO(ctx->m.avctx, ctx->mb_rc, (ctx->m.avctx->qmax + 1),
ctx               349 libavcodec/dnxhdenc.c                           ctx->m.mb_num * sizeof(RCEntry), fail);
ctx               350 libavcodec/dnxhdenc.c     if (ctx->m.avctx->mb_decision != FF_MB_DECISION_RD) {
ctx               351 libavcodec/dnxhdenc.c         FF_ALLOCZ_ARRAY_OR_GOTO(ctx->m.avctx, ctx->mb_cmp,
ctx               352 libavcodec/dnxhdenc.c                           ctx->m.mb_num, sizeof(RCCMPEntry), fail);
ctx               353 libavcodec/dnxhdenc.c         FF_ALLOCZ_ARRAY_OR_GOTO(ctx->m.avctx, ctx->mb_cmp_tmp,
ctx               354 libavcodec/dnxhdenc.c                           ctx->m.mb_num, sizeof(RCCMPEntry), fail);
ctx               356 libavcodec/dnxhdenc.c     ctx->frame_bits = (ctx->coding_unit_size -
ctx               357 libavcodec/dnxhdenc.c                        ctx->data_offset - 4 - ctx->min_padding) * 8;
ctx               358 libavcodec/dnxhdenc.c     ctx->qscale = 1;
ctx               359 libavcodec/dnxhdenc.c     ctx->lambda = 2 << LAMBDA_FRAC_BITS; // qscale 2
ctx               367 libavcodec/dnxhdenc.c     DNXHDEncContext *ctx = avctx->priv_data;
ctx               372 libavcodec/dnxhdenc.c         ctx->bit_depth = 8;
ctx               377 libavcodec/dnxhdenc.c         ctx->bit_depth = 10;
ctx               385 libavcodec/dnxhdenc.c     if ((ctx->profile == FF_PROFILE_DNXHR_444 && (avctx->pix_fmt != AV_PIX_FMT_YUV444P10 &&
ctx               387 libavcodec/dnxhdenc.c         (ctx->profile != FF_PROFILE_DNXHR_444 && (avctx->pix_fmt == AV_PIX_FMT_YUV444P10 ||
ctx               394 libavcodec/dnxhdenc.c     if (ctx->profile == FF_PROFILE_DNXHR_HQX && avctx->pix_fmt != AV_PIX_FMT_YUV422P10) {
ctx               400 libavcodec/dnxhdenc.c     if ((ctx->profile == FF_PROFILE_DNXHR_LB ||
ctx               401 libavcodec/dnxhdenc.c          ctx->profile == FF_PROFILE_DNXHR_SQ ||
ctx               402 libavcodec/dnxhdenc.c          ctx->profile == FF_PROFILE_DNXHR_HQ) && avctx->pix_fmt != AV_PIX_FMT_YUV422P) {
ctx               408 libavcodec/dnxhdenc.c     ctx->is_444 = ctx->profile == FF_PROFILE_DNXHR_444;
ctx               409 libavcodec/dnxhdenc.c     avctx->profile = ctx->profile;
ctx               410 libavcodec/dnxhdenc.c     ctx->cid = ff_dnxhd_find_cid(avctx, ctx->bit_depth);
ctx               411 libavcodec/dnxhdenc.c     if (!ctx->cid) {
ctx               417 libavcodec/dnxhdenc.c     av_log(avctx, AV_LOG_DEBUG, "cid %d\n", ctx->cid);
ctx               419 libavcodec/dnxhdenc.c     if (ctx->cid >= 1270 && ctx->cid <= 1274)
ctx               428 libavcodec/dnxhdenc.c     index = ff_dnxhd_get_cid_table(ctx->cid);
ctx               431 libavcodec/dnxhdenc.c     ctx->cid_table = &ff_dnxhd_cid_table[index];
ctx               433 libavcodec/dnxhdenc.c     ctx->m.avctx    = avctx;
ctx               434 libavcodec/dnxhdenc.c     ctx->m.mb_intra = 1;
ctx               435 libavcodec/dnxhdenc.c     ctx->m.h263_aic = 1;
ctx               437 libavcodec/dnxhdenc.c     avctx->bits_per_raw_sample = ctx->bit_depth;
ctx               439 libavcodec/dnxhdenc.c     ff_blockdsp_init(&ctx->bdsp, avctx);
ctx               440 libavcodec/dnxhdenc.c     ff_fdctdsp_init(&ctx->m.fdsp, avctx);
ctx               441 libavcodec/dnxhdenc.c     ff_mpv_idct_init(&ctx->m);
ctx               442 libavcodec/dnxhdenc.c     ff_mpegvideoencdsp_init(&ctx->m.mpvencdsp, avctx);
ctx               443 libavcodec/dnxhdenc.c     ff_pixblockdsp_init(&ctx->m.pdsp, avctx);
ctx               444 libavcodec/dnxhdenc.c     ff_dct_encode_init(&ctx->m);
ctx               446 libavcodec/dnxhdenc.c     if (ctx->profile != FF_PROFILE_DNXHD)
ctx               447 libavcodec/dnxhdenc.c         ff_videodsp_init(&ctx->m.vdsp, ctx->bit_depth);
ctx               449 libavcodec/dnxhdenc.c     if (!ctx->m.dct_quantize)
ctx               450 libavcodec/dnxhdenc.c         ctx->m.dct_quantize = ff_dct_quantize_c;
ctx               452 libavcodec/dnxhdenc.c     if (ctx->is_444 || ctx->profile == FF_PROFILE_DNXHR_HQX) {
ctx               453 libavcodec/dnxhdenc.c         ctx->m.dct_quantize     = dnxhd_10bit_dct_quantize_444;
ctx               454 libavcodec/dnxhdenc.c         ctx->get_pixels_8x4_sym = dnxhd_10bit_get_pixels_8x4_sym;
ctx               455 libavcodec/dnxhdenc.c         ctx->block_width_l2     = 4;
ctx               456 libavcodec/dnxhdenc.c     } else if (ctx->bit_depth == 10) {
ctx               457 libavcodec/dnxhdenc.c         ctx->m.dct_quantize     = dnxhd_10bit_dct_quantize;
ctx               458 libavcodec/dnxhdenc.c         ctx->get_pixels_8x4_sym = dnxhd_10bit_get_pixels_8x4_sym;
ctx               459 libavcodec/dnxhdenc.c         ctx->block_width_l2     = 4;
ctx               461 libavcodec/dnxhdenc.c         ctx->get_pixels_8x4_sym = dnxhd_8bit_get_pixels_8x4_sym;
ctx               462 libavcodec/dnxhdenc.c         ctx->block_width_l2     = 3;
ctx               466 libavcodec/dnxhdenc.c         ff_dnxhdenc_init_x86(ctx);
ctx               468 libavcodec/dnxhdenc.c     ctx->m.mb_height = (avctx->height + 15) / 16;
ctx               469 libavcodec/dnxhdenc.c     ctx->m.mb_width  = (avctx->width  + 15) / 16;
ctx               472 libavcodec/dnxhdenc.c         ctx->interlaced   = 1;
ctx               473 libavcodec/dnxhdenc.c         ctx->m.mb_height /= 2;
ctx               476 libavcodec/dnxhdenc.c     if (ctx->interlaced && ctx->profile != FF_PROFILE_DNXHD) {
ctx               482 libavcodec/dnxhdenc.c     ctx->m.mb_num = ctx->m.mb_height * ctx->m.mb_width;
ctx               484 libavcodec/dnxhdenc.c     if (ctx->cid_table->frame_size == DNXHD_VARIABLE) {
ctx               485 libavcodec/dnxhdenc.c         ctx->frame_size = avpriv_dnxhd_get_hr_frame_size(ctx->cid,
ctx               487 libavcodec/dnxhdenc.c         av_assert0(ctx->frame_size >= 0);
ctx               488 libavcodec/dnxhdenc.c         ctx->coding_unit_size = ctx->frame_size;
ctx               490 libavcodec/dnxhdenc.c         ctx->frame_size = ctx->cid_table->frame_size;
ctx               491 libavcodec/dnxhdenc.c         ctx->coding_unit_size = ctx->cid_table->coding_unit_size;
ctx               494 libavcodec/dnxhdenc.c     if (ctx->m.mb_height > 68)
ctx               495 libavcodec/dnxhdenc.c         ctx->data_offset = 0x170 + (ctx->m.mb_height << 2);
ctx               497 libavcodec/dnxhdenc.c         ctx->data_offset = 0x280;
ctx               500 libavcodec/dnxhdenc.c     if ((ret = dnxhd_init_qmat(ctx, ctx->intra_quant_bias, 0)) < 0)
ctx               505 libavcodec/dnxhdenc.c     if (ctx->nitris_compat)
ctx               506 libavcodec/dnxhdenc.c         ctx->min_padding = 1600;
ctx               508 libavcodec/dnxhdenc.c     if ((ret = dnxhd_init_vlc(ctx)) < 0)
ctx               510 libavcodec/dnxhdenc.c     if ((ret = dnxhd_init_rc(ctx)) < 0)
ctx               513 libavcodec/dnxhdenc.c     FF_ALLOCZ_OR_GOTO(ctx->m.avctx, ctx->slice_size,
ctx               514 libavcodec/dnxhdenc.c                       ctx->m.mb_height * sizeof(uint32_t), fail);
ctx               515 libavcodec/dnxhdenc.c     FF_ALLOCZ_OR_GOTO(ctx->m.avctx, ctx->slice_offs,
ctx               516 libavcodec/dnxhdenc.c                       ctx->m.mb_height * sizeof(uint32_t), fail);
ctx               517 libavcodec/dnxhdenc.c     FF_ALLOCZ_OR_GOTO(ctx->m.avctx, ctx->mb_bits,
ctx               518 libavcodec/dnxhdenc.c                       ctx->m.mb_num * sizeof(uint16_t), fail);
ctx               519 libavcodec/dnxhdenc.c     FF_ALLOCZ_OR_GOTO(ctx->m.avctx, ctx->mb_qscale,
ctx               520 libavcodec/dnxhdenc.c                       ctx->m.mb_num * sizeof(uint8_t), fail);
ctx               541 libavcodec/dnxhdenc.c     ctx->thread[0] = ctx;
ctx               544 libavcodec/dnxhdenc.c             ctx->thread[i] = av_malloc(sizeof(DNXHDEncContext));
ctx               545 libavcodec/dnxhdenc.c             if (!ctx->thread[i])
ctx               547 libavcodec/dnxhdenc.c             memcpy(ctx->thread[i], ctx, sizeof(DNXHDEncContext));
ctx               558 libavcodec/dnxhdenc.c     DNXHDEncContext *ctx = avctx->priv_data;
ctx               560 libavcodec/dnxhdenc.c     memset(buf, 0, ctx->data_offset);
ctx               563 libavcodec/dnxhdenc.c     AV_WB16(buf + 0x02, ctx->data_offset);
ctx               564 libavcodec/dnxhdenc.c     if (ctx->cid >= 1270 && ctx->cid <= 1274)
ctx               569 libavcodec/dnxhdenc.c     buf[5] = ctx->interlaced ? ctx->cur_field + 2 : 0x01;
ctx               572 libavcodec/dnxhdenc.c     AV_WB16(buf + 0x18, avctx->height >> ctx->interlaced); // ALPF
ctx               574 libavcodec/dnxhdenc.c     AV_WB16(buf + 0x1d, avctx->height >> ctx->interlaced); // NAL
ctx               576 libavcodec/dnxhdenc.c     buf[0x21] = ctx->bit_depth == 10 ? 0x58 : 0x38;
ctx               577 libavcodec/dnxhdenc.c     buf[0x22] = 0x88 + (ctx->interlaced << 2);
ctx               578 libavcodec/dnxhdenc.c     AV_WB32(buf + 0x28, ctx->cid); // CID
ctx               579 libavcodec/dnxhdenc.c     buf[0x2c] = (!ctx->interlaced << 7) | (ctx->is_444 << 6) | (avctx->pix_fmt == AV_PIX_FMT_YUV444P10);
ctx               584 libavcodec/dnxhdenc.c     AV_WB16(buf + 0x16a, ctx->m.mb_height * 4 + 4); // MSIPS
ctx               585 libavcodec/dnxhdenc.c     AV_WB16(buf + 0x16c, ctx->m.mb_height); // Ns
ctx               588 libavcodec/dnxhdenc.c     ctx->msip = buf + 0x170;
ctx               592 libavcodec/dnxhdenc.c static av_always_inline void dnxhd_encode_dc(DNXHDEncContext *ctx, int diff)
ctx               601 libavcodec/dnxhdenc.c     put_bits(&ctx->m.pb, ctx->cid_table->dc_bits[nbits] + nbits,
ctx               602 libavcodec/dnxhdenc.c              (ctx->cid_table->dc_codes[nbits] << nbits) +
ctx               607 libavcodec/dnxhdenc.c void dnxhd_encode_block(DNXHDEncContext *ctx, int16_t *block,
ctx               613 libavcodec/dnxhdenc.c     dnxhd_encode_dc(ctx, block[0] - ctx->m.last_dc[n]);
ctx               614 libavcodec/dnxhdenc.c     ctx->m.last_dc[n] = block[0];
ctx               617 libavcodec/dnxhdenc.c         j = ctx->m.intra_scantable.permutated[i];
ctx               622 libavcodec/dnxhdenc.c             put_bits(&ctx->m.pb, ctx->vlc_bits[rlevel], ctx->vlc_codes[rlevel]);
ctx               624 libavcodec/dnxhdenc.c                 put_bits(&ctx->m.pb, ctx->run_bits[run_level],
ctx               625 libavcodec/dnxhdenc.c                          ctx->run_codes[run_level]);
ctx               629 libavcodec/dnxhdenc.c     put_bits(&ctx->m.pb, ctx->vlc_bits[0], ctx->vlc_codes[0]); // EOB
ctx               633 libavcodec/dnxhdenc.c void dnxhd_unquantize_c(DNXHDEncContext *ctx, int16_t *block, int n,
ctx               640 libavcodec/dnxhdenc.c     if (ctx->is_444) {
ctx               641 libavcodec/dnxhdenc.c         weight_matrix = ((n % 6) < 2) ? ctx->cid_table->luma_weight
ctx               642 libavcodec/dnxhdenc.c                                       : ctx->cid_table->chroma_weight;
ctx               644 libavcodec/dnxhdenc.c         weight_matrix = (n & 2) ? ctx->cid_table->chroma_weight
ctx               645 libavcodec/dnxhdenc.c                                 : ctx->cid_table->luma_weight;
ctx               649 libavcodec/dnxhdenc.c         int j = ctx->m.intra_scantable.permutated[i];
ctx               654 libavcodec/dnxhdenc.c                 if (ctx->bit_depth == 10) {
ctx               666 libavcodec/dnxhdenc.c                 if (ctx->bit_depth == 10) {
ctx               691 libavcodec/dnxhdenc.c int dnxhd_calc_ac_bits(DNXHDEncContext *ctx, int16_t *block, int last_index)
ctx               697 libavcodec/dnxhdenc.c         j = ctx->m.intra_scantable.permutated[i];
ctx               701 libavcodec/dnxhdenc.c             bits += ctx->vlc_bits[level * (1 << 1) |
ctx               702 libavcodec/dnxhdenc.c                     !!run_level] + ctx->run_bits[run_level];
ctx               710 libavcodec/dnxhdenc.c void dnxhd_get_blocks(DNXHDEncContext *ctx, int mb_x, int mb_y)
ctx               712 libavcodec/dnxhdenc.c     const int bs = ctx->block_width_l2;
ctx               714 libavcodec/dnxhdenc.c     int dct_y_offset = ctx->dct_y_offset;
ctx               715 libavcodec/dnxhdenc.c     int dct_uv_offset = ctx->dct_uv_offset;
ctx               716 libavcodec/dnxhdenc.c     int linesize = ctx->m.linesize;
ctx               717 libavcodec/dnxhdenc.c     int uvlinesize = ctx->m.uvlinesize;
ctx               718 libavcodec/dnxhdenc.c     const uint8_t *ptr_y = ctx->thread[0]->src[0] +
ctx               719 libavcodec/dnxhdenc.c                            ((mb_y << 4) * ctx->m.linesize) + (mb_x << bs + 1);
ctx               720 libavcodec/dnxhdenc.c     const uint8_t *ptr_u = ctx->thread[0]->src[1] +
ctx               721 libavcodec/dnxhdenc.c                            ((mb_y << 4) * ctx->m.uvlinesize) + (mb_x << bs + ctx->is_444);
ctx               722 libavcodec/dnxhdenc.c     const uint8_t *ptr_v = ctx->thread[0]->src[2] +
ctx               723 libavcodec/dnxhdenc.c                            ((mb_y << 4) * ctx->m.uvlinesize) + (mb_x << bs + ctx->is_444);
ctx               724 libavcodec/dnxhdenc.c     PixblockDSPContext *pdsp = &ctx->m.pdsp;
ctx               725 libavcodec/dnxhdenc.c     VideoDSPContext *vdsp = &ctx->m.vdsp;
ctx               727 libavcodec/dnxhdenc.c     if (ctx->bit_depth != 10 && vdsp->emulated_edge_mc && ((mb_x << 4) + 16 > ctx->m.avctx->width ||
ctx               728 libavcodec/dnxhdenc.c                                                            (mb_y << 4) + 16 > ctx->m.avctx->height)) {
ctx               729 libavcodec/dnxhdenc.c         int y_w = ctx->m.avctx->width  - (mb_x << 4);
ctx               730 libavcodec/dnxhdenc.c         int y_h = ctx->m.avctx->height - (mb_y << 4);
ctx               736 libavcodec/dnxhdenc.c         vdsp->emulated_edge_mc(&ctx->edge_buf_y[0], ptr_y,
ctx               737 libavcodec/dnxhdenc.c                                linesize, ctx->m.linesize,
ctx               740 libavcodec/dnxhdenc.c         vdsp->emulated_edge_mc(&ctx->edge_buf_uv[0][0], ptr_u,
ctx               741 libavcodec/dnxhdenc.c                                uvlinesize, ctx->m.uvlinesize,
ctx               744 libavcodec/dnxhdenc.c         vdsp->emulated_edge_mc(&ctx->edge_buf_uv[1][0], ptr_v,
ctx               745 libavcodec/dnxhdenc.c                                uvlinesize, ctx->m.uvlinesize,
ctx               751 libavcodec/dnxhdenc.c         ptr_y = &ctx->edge_buf_y[0];
ctx               752 libavcodec/dnxhdenc.c         ptr_u = &ctx->edge_buf_uv[0][0];
ctx               753 libavcodec/dnxhdenc.c         ptr_v = &ctx->edge_buf_uv[1][0];
ctx               754 libavcodec/dnxhdenc.c     } else if (ctx->bit_depth == 10 && vdsp->emulated_edge_mc && ((mb_x << 4) + 16 > ctx->m.avctx->width ||
ctx               755 libavcodec/dnxhdenc.c                                                                   (mb_y << 4) + 16 > ctx->m.avctx->height)) {
ctx               756 libavcodec/dnxhdenc.c         int y_w = ctx->m.avctx->width  - (mb_x << 4);
ctx               757 libavcodec/dnxhdenc.c         int y_h = ctx->m.avctx->height - (mb_y << 4);
ctx               758 libavcodec/dnxhdenc.c         int uv_w = ctx->is_444 ? y_w : (y_w + 1) / 2;
ctx               761 libavcodec/dnxhdenc.c         uvlinesize = 16 + 16 * ctx->is_444;
ctx               763 libavcodec/dnxhdenc.c         vdsp->emulated_edge_mc(&ctx->edge_buf_y[0], ptr_y,
ctx               764 libavcodec/dnxhdenc.c                                linesize, ctx->m.linesize,
ctx               767 libavcodec/dnxhdenc.c         vdsp->emulated_edge_mc(&ctx->edge_buf_uv[0][0], ptr_u,
ctx               768 libavcodec/dnxhdenc.c                                uvlinesize, ctx->m.uvlinesize,
ctx               771 libavcodec/dnxhdenc.c         vdsp->emulated_edge_mc(&ctx->edge_buf_uv[1][0], ptr_v,
ctx               772 libavcodec/dnxhdenc.c                                uvlinesize, ctx->m.uvlinesize,
ctx               778 libavcodec/dnxhdenc.c         ptr_y = &ctx->edge_buf_y[0];
ctx               779 libavcodec/dnxhdenc.c         ptr_u = &ctx->edge_buf_uv[0][0];
ctx               780 libavcodec/dnxhdenc.c         ptr_v = &ctx->edge_buf_uv[1][0];
ctx               783 libavcodec/dnxhdenc.c     if (!ctx->is_444) {
ctx               784 libavcodec/dnxhdenc.c         pdsp->get_pixels(ctx->blocks[0], ptr_y,      linesize);
ctx               785 libavcodec/dnxhdenc.c         pdsp->get_pixels(ctx->blocks[1], ptr_y + bw, linesize);
ctx               786 libavcodec/dnxhdenc.c         pdsp->get_pixels(ctx->blocks[2], ptr_u,      uvlinesize);
ctx               787 libavcodec/dnxhdenc.c         pdsp->get_pixels(ctx->blocks[3], ptr_v,      uvlinesize);
ctx               789 libavcodec/dnxhdenc.c         if (mb_y + 1 == ctx->m.mb_height && ctx->m.avctx->height == 1080) {
ctx               790 libavcodec/dnxhdenc.c             if (ctx->interlaced) {
ctx               791 libavcodec/dnxhdenc.c                 ctx->get_pixels_8x4_sym(ctx->blocks[4],
ctx               794 libavcodec/dnxhdenc.c                 ctx->get_pixels_8x4_sym(ctx->blocks[5],
ctx               797 libavcodec/dnxhdenc.c                 ctx->get_pixels_8x4_sym(ctx->blocks[6],
ctx               800 libavcodec/dnxhdenc.c                 ctx->get_pixels_8x4_sym(ctx->blocks[7],
ctx               804 libavcodec/dnxhdenc.c                 ctx->bdsp.clear_block(ctx->blocks[4]);
ctx               805 libavcodec/dnxhdenc.c                 ctx->bdsp.clear_block(ctx->blocks[5]);
ctx               806 libavcodec/dnxhdenc.c                 ctx->bdsp.clear_block(ctx->blocks[6]);
ctx               807 libavcodec/dnxhdenc.c                 ctx->bdsp.clear_block(ctx->blocks[7]);
ctx               810 libavcodec/dnxhdenc.c             pdsp->get_pixels(ctx->blocks[4],
ctx               812 libavcodec/dnxhdenc.c             pdsp->get_pixels(ctx->blocks[5],
ctx               814 libavcodec/dnxhdenc.c             pdsp->get_pixels(ctx->blocks[6],
ctx               816 libavcodec/dnxhdenc.c             pdsp->get_pixels(ctx->blocks[7],
ctx               820 libavcodec/dnxhdenc.c         pdsp->get_pixels(ctx->blocks[0], ptr_y,      linesize);
ctx               821 libavcodec/dnxhdenc.c         pdsp->get_pixels(ctx->blocks[1], ptr_y + bw, linesize);
ctx               822 libavcodec/dnxhdenc.c         pdsp->get_pixels(ctx->blocks[6], ptr_y + dct_y_offset, linesize);
ctx               823 libavcodec/dnxhdenc.c         pdsp->get_pixels(ctx->blocks[7], ptr_y + dct_y_offset + bw, linesize);
ctx               825 libavcodec/dnxhdenc.c         pdsp->get_pixels(ctx->blocks[2], ptr_u,      uvlinesize);
ctx               826 libavcodec/dnxhdenc.c         pdsp->get_pixels(ctx->blocks[3], ptr_u + bw, uvlinesize);
ctx               827 libavcodec/dnxhdenc.c         pdsp->get_pixels(ctx->blocks[8], ptr_u + dct_uv_offset, uvlinesize);
ctx               828 libavcodec/dnxhdenc.c         pdsp->get_pixels(ctx->blocks[9], ptr_u + dct_uv_offset + bw, uvlinesize);
ctx               830 libavcodec/dnxhdenc.c         pdsp->get_pixels(ctx->blocks[4], ptr_v,      uvlinesize);
ctx               831 libavcodec/dnxhdenc.c         pdsp->get_pixels(ctx->blocks[5], ptr_v + bw, uvlinesize);
ctx               832 libavcodec/dnxhdenc.c         pdsp->get_pixels(ctx->blocks[10], ptr_v + dct_uv_offset, uvlinesize);
ctx               833 libavcodec/dnxhdenc.c         pdsp->get_pixels(ctx->blocks[11], ptr_v + dct_uv_offset + bw, uvlinesize);
ctx               838 libavcodec/dnxhdenc.c int dnxhd_switch_matrix(DNXHDEncContext *ctx, int i)
ctx               842 libavcodec/dnxhdenc.c     if (ctx->is_444) {
ctx               854 libavcodec/dnxhdenc.c     DNXHDEncContext *ctx = avctx->priv_data;
ctx               856 libavcodec/dnxhdenc.c     int qscale = ctx->qscale;
ctx               858 libavcodec/dnxhdenc.c     ctx = ctx->thread[threadnr];
ctx               860 libavcodec/dnxhdenc.c     ctx->m.last_dc[0] =
ctx               861 libavcodec/dnxhdenc.c     ctx->m.last_dc[1] =
ctx               862 libavcodec/dnxhdenc.c     ctx->m.last_dc[2] = 1 << (ctx->bit_depth + 2);
ctx               864 libavcodec/dnxhdenc.c     for (mb_x = 0; mb_x < ctx->m.mb_width; mb_x++) {
ctx               865 libavcodec/dnxhdenc.c         unsigned mb = mb_y * ctx->m.mb_width + mb_x;
ctx               871 libavcodec/dnxhdenc.c         dnxhd_get_blocks(ctx, mb_x, mb_y);
ctx               873 libavcodec/dnxhdenc.c         for (i = 0; i < 8 + 4 * ctx->is_444; i++) {
ctx               874 libavcodec/dnxhdenc.c             int16_t *src_block = ctx->blocks[i];
ctx               876 libavcodec/dnxhdenc.c             int n = dnxhd_switch_matrix(ctx, i);
ctx               879 libavcodec/dnxhdenc.c             last_index = ctx->m.dct_quantize(&ctx->m, block,
ctx               880 libavcodec/dnxhdenc.c                                              ctx->is_444 ? 4 * (n > 0): 4 & (2*i),
ctx               882 libavcodec/dnxhdenc.c             ac_bits   += dnxhd_calc_ac_bits(ctx, block, last_index);
ctx               884 libavcodec/dnxhdenc.c             diff = block[0] - ctx->m.last_dc[n];
ctx               890 libavcodec/dnxhdenc.c             av_assert1(nbits < ctx->bit_depth + 4);
ctx               891 libavcodec/dnxhdenc.c             dc_bits += ctx->cid_table->dc_bits[nbits] + nbits;
ctx               893 libavcodec/dnxhdenc.c             ctx->m.last_dc[n] = block[0];
ctx               896 libavcodec/dnxhdenc.c                 dnxhd_unquantize_c(ctx, block, i, qscale, last_index);
ctx               897 libavcodec/dnxhdenc.c                 ctx->m.idsp.idct(block);
ctx               901 libavcodec/dnxhdenc.c         ctx->mb_rc[(qscale * ctx->m.mb_num) + mb].ssd  = ssd;
ctx               902 libavcodec/dnxhdenc.c         ctx->mb_rc[(qscale * ctx->m.mb_num) + mb].bits = ac_bits + dc_bits + 12 +
ctx               903 libavcodec/dnxhdenc.c                                      (1 + ctx->is_444) * 8 * ctx->vlc_bits[0];
ctx               911 libavcodec/dnxhdenc.c     DNXHDEncContext *ctx = avctx->priv_data;
ctx               913 libavcodec/dnxhdenc.c     ctx = ctx->thread[threadnr];
ctx               914 libavcodec/dnxhdenc.c     init_put_bits(&ctx->m.pb, (uint8_t *)arg + ctx->data_offset + ctx->slice_offs[jobnr],
ctx               915 libavcodec/dnxhdenc.c                   ctx->slice_size[jobnr]);
ctx               917 libavcodec/dnxhdenc.c     ctx->m.last_dc[0] =
ctx               918 libavcodec/dnxhdenc.c     ctx->m.last_dc[1] =
ctx               919 libavcodec/dnxhdenc.c     ctx->m.last_dc[2] = 1 << (ctx->bit_depth + 2);
ctx               920 libavcodec/dnxhdenc.c     for (mb_x = 0; mb_x < ctx->m.mb_width; mb_x++) {
ctx               921 libavcodec/dnxhdenc.c         unsigned mb = mb_y * ctx->m.mb_width + mb_x;
ctx               922 libavcodec/dnxhdenc.c         int qscale = ctx->mb_qscale[mb];
ctx               925 libavcodec/dnxhdenc.c         put_bits(&ctx->m.pb, 11, qscale);
ctx               926 libavcodec/dnxhdenc.c         put_bits(&ctx->m.pb, 1, avctx->pix_fmt == AV_PIX_FMT_YUV444P10);
ctx               928 libavcodec/dnxhdenc.c         dnxhd_get_blocks(ctx, mb_x, mb_y);
ctx               930 libavcodec/dnxhdenc.c         for (i = 0; i < 8 + 4 * ctx->is_444; i++) {
ctx               931 libavcodec/dnxhdenc.c             int16_t *block = ctx->blocks[i];
ctx               932 libavcodec/dnxhdenc.c             int overflow, n = dnxhd_switch_matrix(ctx, i);
ctx               933 libavcodec/dnxhdenc.c             int last_index = ctx->m.dct_quantize(&ctx->m, block,
ctx               934 libavcodec/dnxhdenc.c                                                  ctx->is_444 ? (((i >> 1) % 3) < 1 ? 0 : 4): 4 & (2*i),
ctx               937 libavcodec/dnxhdenc.c             dnxhd_encode_block(ctx, block, last_index, n);
ctx               940 libavcodec/dnxhdenc.c     if (put_bits_count(&ctx->m.pb) & 31)
ctx               941 libavcodec/dnxhdenc.c         put_bits(&ctx->m.pb, 32 - (put_bits_count(&ctx->m.pb) & 31), 0);
ctx               942 libavcodec/dnxhdenc.c     flush_put_bits(&ctx->m.pb);
ctx               946 libavcodec/dnxhdenc.c static void dnxhd_setup_threads_slices(DNXHDEncContext *ctx)
ctx               950 libavcodec/dnxhdenc.c     for (mb_y = 0; mb_y < ctx->m.mb_height; mb_y++) {
ctx               952 libavcodec/dnxhdenc.c         ctx->slice_offs[mb_y] = offset;
ctx               953 libavcodec/dnxhdenc.c         ctx->slice_size[mb_y] = 0;
ctx               954 libavcodec/dnxhdenc.c         for (mb_x = 0; mb_x < ctx->m.mb_width; mb_x++) {
ctx               955 libavcodec/dnxhdenc.c             unsigned mb = mb_y * ctx->m.mb_width + mb_x;
ctx               956 libavcodec/dnxhdenc.c             ctx->slice_size[mb_y] += ctx->mb_bits[mb];
ctx               958 libavcodec/dnxhdenc.c         ctx->slice_size[mb_y]   = (ctx->slice_size[mb_y] + 31) & ~31;
ctx               959 libavcodec/dnxhdenc.c         ctx->slice_size[mb_y] >>= 3;
ctx               960 libavcodec/dnxhdenc.c         thread_size = ctx->slice_size[mb_y];
ctx               968 libavcodec/dnxhdenc.c     DNXHDEncContext *ctx = avctx->priv_data;
ctx               970 libavcodec/dnxhdenc.c     int partial_last_row = (mb_y == ctx->m.mb_height - 1) &&
ctx               971 libavcodec/dnxhdenc.c                            ((avctx->height >> ctx->interlaced) & 0xF);
ctx               973 libavcodec/dnxhdenc.c     ctx = ctx->thread[threadnr];
ctx               974 libavcodec/dnxhdenc.c     if (ctx->bit_depth == 8) {
ctx               975 libavcodec/dnxhdenc.c         uint8_t *pix = ctx->thread[0]->src[0] + ((mb_y << 4) * ctx->m.linesize);
ctx               976 libavcodec/dnxhdenc.c         for (mb_x = 0; mb_x < ctx->m.mb_width; ++mb_x, pix += 16) {
ctx               977 libavcodec/dnxhdenc.c             unsigned mb = mb_y * ctx->m.mb_width + mb_x;
ctx               982 libavcodec/dnxhdenc.c                 sum  = ctx->m.mpvencdsp.pix_sum(pix, ctx->m.linesize);
ctx               983 libavcodec/dnxhdenc.c                 varc = ctx->m.mpvencdsp.pix_norm1(pix, ctx->m.linesize);
ctx               986 libavcodec/dnxhdenc.c                 int bh = FFMIN((avctx->height >> ctx->interlaced) - 16 * mb_y, 16);
ctx               990 libavcodec/dnxhdenc.c                         uint8_t val = pix[x + y * ctx->m.linesize];
ctx               998 libavcodec/dnxhdenc.c             ctx->mb_cmp[mb].value = varc;
ctx               999 libavcodec/dnxhdenc.c             ctx->mb_cmp[mb].mb    = mb;
ctx              1002 libavcodec/dnxhdenc.c         const int linesize = ctx->m.linesize >> 1;
ctx              1003 libavcodec/dnxhdenc.c         for (mb_x = 0; mb_x < ctx->m.mb_width; ++mb_x) {
ctx              1004 libavcodec/dnxhdenc.c             uint16_t *pix = (uint16_t *)ctx->thread[0]->src[0] +
ctx              1006 libavcodec/dnxhdenc.c             unsigned mb  = mb_y * ctx->m.mb_width + mb_x;
ctx              1010 libavcodec/dnxhdenc.c             int bh = FFMIN((avctx->height >> ctx->interlaced) - 16 * mb_y, 16);
ctx              1026 libavcodec/dnxhdenc.c             ctx->mb_cmp[mb].value = sqmean - mean * mean;
ctx              1027 libavcodec/dnxhdenc.c             ctx->mb_cmp[mb].mb    = mb;
ctx              1033 libavcodec/dnxhdenc.c static int dnxhd_encode_rdo(AVCodecContext *avctx, DNXHDEncContext *ctx)
ctx              1040 libavcodec/dnxhdenc.c         ctx->qscale = q;
ctx              1042 libavcodec/dnxhdenc.c                         NULL, NULL, ctx->m.mb_height);
ctx              1045 libavcodec/dnxhdenc.c     lambda  = ctx->lambda;
ctx              1054 libavcodec/dnxhdenc.c         for (y = 0; y < ctx->m.mb_height; y++) {
ctx              1055 libavcodec/dnxhdenc.c             for (x = 0; x < ctx->m.mb_width; x++) {
ctx              1058 libavcodec/dnxhdenc.c                 int mb     = y * ctx->m.mb_width + x;
ctx              1061 libavcodec/dnxhdenc.c                     int i = (q*ctx->m.mb_num) + mb;
ctx              1062 libavcodec/dnxhdenc.c                     unsigned score = ctx->mb_rc[i].bits * lambda +
ctx              1063 libavcodec/dnxhdenc.c                                      ((unsigned) ctx->mb_rc[i].ssd << LAMBDA_FRAC_BITS);
ctx              1070 libavcodec/dnxhdenc.c                 bits += ctx->mb_rc[rc].bits;
ctx              1071 libavcodec/dnxhdenc.c                 ctx->mb_qscale[mb] = qscale;
ctx              1072 libavcodec/dnxhdenc.c                 ctx->mb_bits[mb]   = ctx->mb_rc[rc].bits;
ctx              1075 libavcodec/dnxhdenc.c             if (bits > ctx->frame_bits)
ctx              1079 libavcodec/dnxhdenc.c             if (bits > ctx->frame_bits)
ctx              1083 libavcodec/dnxhdenc.c         if (bits < ctx->frame_bits) {
ctx              1106 libavcodec/dnxhdenc.c     ctx->lambda = lambda;
ctx              1110 libavcodec/dnxhdenc.c static int dnxhd_find_qscale(DNXHDEncContext *ctx)
ctx              1120 libavcodec/dnxhdenc.c     qscale = ctx->qscale;
ctx              1123 libavcodec/dnxhdenc.c         ctx->qscale = qscale;
ctx              1125 libavcodec/dnxhdenc.c         ctx->m.avctx->execute2(ctx->m.avctx, dnxhd_calc_bits_thread,
ctx              1126 libavcodec/dnxhdenc.c                                NULL, NULL, ctx->m.mb_height);
ctx              1127 libavcodec/dnxhdenc.c         for (y = 0; y < ctx->m.mb_height; y++) {
ctx              1128 libavcodec/dnxhdenc.c             for (x = 0; x < ctx->m.mb_width; x++)
ctx              1129 libavcodec/dnxhdenc.c                 bits += ctx->mb_rc[(qscale*ctx->m.mb_num) + (y*ctx->m.mb_width+x)].bits;
ctx              1131 libavcodec/dnxhdenc.c             if (bits > ctx->frame_bits)
ctx              1134 libavcodec/dnxhdenc.c         if (bits < ctx->frame_bits) {
ctx              1158 libavcodec/dnxhdenc.c             if (qscale >= ctx->m.avctx->qmax)
ctx              1162 libavcodec/dnxhdenc.c     ctx->qscale = qscale;
ctx              1222 libavcodec/dnxhdenc.c static int dnxhd_encode_fast(AVCodecContext *avctx, DNXHDEncContext *ctx)
ctx              1226 libavcodec/dnxhdenc.c     if ((ret = dnxhd_find_qscale(ctx)) < 0)
ctx              1228 libavcodec/dnxhdenc.c     for (y = 0; y < ctx->m.mb_height; y++) {
ctx              1229 libavcodec/dnxhdenc.c         for (x = 0; x < ctx->m.mb_width; x++) {
ctx              1230 libavcodec/dnxhdenc.c             int mb = y * ctx->m.mb_width + x;
ctx              1231 libavcodec/dnxhdenc.c             int rc = (ctx->qscale * ctx->m.mb_num ) + mb;
ctx              1233 libavcodec/dnxhdenc.c             ctx->mb_qscale[mb] = ctx->qscale;
ctx              1234 libavcodec/dnxhdenc.c             ctx->mb_bits[mb] = ctx->mb_rc[rc].bits;
ctx              1235 libavcodec/dnxhdenc.c             max_bits += ctx->mb_rc[rc].bits;
ctx              1237 libavcodec/dnxhdenc.c                 delta_bits = ctx->mb_rc[rc].bits -
ctx              1238 libavcodec/dnxhdenc.c                              ctx->mb_rc[rc + ctx->m.mb_num].bits;
ctx              1239 libavcodec/dnxhdenc.c                 ctx->mb_cmp[mb].mb = mb;
ctx              1240 libavcodec/dnxhdenc.c                 ctx->mb_cmp[mb].value =
ctx              1241 libavcodec/dnxhdenc.c                     delta_bits ? ((ctx->mb_rc[rc].ssd -
ctx              1242 libavcodec/dnxhdenc.c                                    ctx->mb_rc[rc + ctx->m.mb_num].ssd) * 100) /
ctx              1252 libavcodec/dnxhdenc.c                             NULL, NULL, ctx->m.mb_height);
ctx              1253 libavcodec/dnxhdenc.c         radix_sort(ctx->mb_cmp, ctx->mb_cmp_tmp, ctx->m.mb_num);
ctx              1254 libavcodec/dnxhdenc.c         for (x = 0; x < ctx->m.mb_num && max_bits > ctx->frame_bits; x++) {
ctx              1255 libavcodec/dnxhdenc.c             int mb = ctx->mb_cmp[x].mb;
ctx              1256 libavcodec/dnxhdenc.c             int rc = (ctx->qscale * ctx->m.mb_num ) + mb;
ctx              1257 libavcodec/dnxhdenc.c             max_bits -= ctx->mb_rc[rc].bits -
ctx              1258 libavcodec/dnxhdenc.c                         ctx->mb_rc[rc + ctx->m.mb_num].bits;
ctx              1259 libavcodec/dnxhdenc.c             ctx->mb_qscale[mb] = ctx->qscale + 1;
ctx              1260 libavcodec/dnxhdenc.c             ctx->mb_bits[mb]   = ctx->mb_rc[rc + ctx->m.mb_num].bits;
ctx              1266 libavcodec/dnxhdenc.c static void dnxhd_load_picture(DNXHDEncContext *ctx, const AVFrame *frame)
ctx              1270 libavcodec/dnxhdenc.c     for (i = 0; i < ctx->m.avctx->thread_count; i++) {
ctx              1271 libavcodec/dnxhdenc.c         ctx->thread[i]->m.linesize    = frame->linesize[0] << ctx->interlaced;
ctx              1272 libavcodec/dnxhdenc.c         ctx->thread[i]->m.uvlinesize  = frame->linesize[1] << ctx->interlaced;
ctx              1273 libavcodec/dnxhdenc.c         ctx->thread[i]->dct_y_offset  = ctx->m.linesize  *8;
ctx              1274 libavcodec/dnxhdenc.c         ctx->thread[i]->dct_uv_offset = ctx->m.uvlinesize*8;
ctx              1279 libavcodec/dnxhdenc.c     ctx->m.avctx->coded_frame->interlaced_frame = frame->interlaced_frame;
ctx              1282 libavcodec/dnxhdenc.c     ctx->cur_field = frame->interlaced_frame && !frame->top_field_first;
ctx              1288 libavcodec/dnxhdenc.c     DNXHDEncContext *ctx = avctx->priv_data;
ctx              1293 libavcodec/dnxhdenc.c     if ((ret = ff_alloc_packet2(avctx, pkt, ctx->frame_size, 0)) < 0)
ctx              1297 libavcodec/dnxhdenc.c     dnxhd_load_picture(ctx, frame);
ctx              1301 libavcodec/dnxhdenc.c         ctx->src[i] = frame->data[i];
ctx              1302 libavcodec/dnxhdenc.c         if (ctx->interlaced && ctx->cur_field)
ctx              1303 libavcodec/dnxhdenc.c             ctx->src[i] += frame->linesize[i];
ctx              1309 libavcodec/dnxhdenc.c         ret = dnxhd_encode_rdo(avctx, ctx);
ctx              1311 libavcodec/dnxhdenc.c         ret = dnxhd_encode_fast(avctx, ctx);
ctx              1318 libavcodec/dnxhdenc.c     dnxhd_setup_threads_slices(ctx);
ctx              1321 libavcodec/dnxhdenc.c     for (i = 0; i < ctx->m.mb_height; i++) {
ctx              1322 libavcodec/dnxhdenc.c         AV_WB32(ctx->msip + i * 4, offset);
ctx              1323 libavcodec/dnxhdenc.c         offset += ctx->slice_size[i];
ctx              1324 libavcodec/dnxhdenc.c         av_assert1(!(ctx->slice_size[i] & 3));
ctx              1327 libavcodec/dnxhdenc.c     avctx->execute2(avctx, dnxhd_encode_thread, buf, NULL, ctx->m.mb_height);
ctx              1329 libavcodec/dnxhdenc.c     av_assert1(ctx->data_offset + offset + 4 <= ctx->coding_unit_size);
ctx              1330 libavcodec/dnxhdenc.c     memset(buf + ctx->data_offset + offset, 0,
ctx              1331 libavcodec/dnxhdenc.c            ctx->coding_unit_size - 4 - offset - ctx->data_offset);
ctx              1333 libavcodec/dnxhdenc.c     AV_WB32(buf + ctx->coding_unit_size - 4, 0x600DC0DE); // EOF
ctx              1335 libavcodec/dnxhdenc.c     if (ctx->interlaced && first_field) {
ctx              1337 libavcodec/dnxhdenc.c         ctx->cur_field ^= 1;
ctx              1338 libavcodec/dnxhdenc.c         buf            += ctx->coding_unit_size;
ctx              1344 libavcodec/dnxhdenc.c     avctx->coded_frame->quality = ctx->qscale * FF_QP2LAMBDA;
ctx              1348 libavcodec/dnxhdenc.c     ff_side_data_set_encoder_stats(pkt, ctx->qscale * FF_QP2LAMBDA, NULL, 0, AV_PICTURE_TYPE_I);
ctx              1357 libavcodec/dnxhdenc.c     DNXHDEncContext *ctx = avctx->priv_data;
ctx              1360 libavcodec/dnxhdenc.c     av_freep(&ctx->orig_vlc_codes);
ctx              1361 libavcodec/dnxhdenc.c     av_freep(&ctx->orig_vlc_bits);
ctx              1362 libavcodec/dnxhdenc.c     av_freep(&ctx->run_codes);
ctx              1363 libavcodec/dnxhdenc.c     av_freep(&ctx->run_bits);
ctx              1365 libavcodec/dnxhdenc.c     av_freep(&ctx->mb_bits);
ctx              1366 libavcodec/dnxhdenc.c     av_freep(&ctx->mb_qscale);
ctx              1367 libavcodec/dnxhdenc.c     av_freep(&ctx->mb_rc);
ctx              1368 libavcodec/dnxhdenc.c     av_freep(&ctx->mb_cmp);
ctx              1369 libavcodec/dnxhdenc.c     av_freep(&ctx->mb_cmp_tmp);
ctx              1370 libavcodec/dnxhdenc.c     av_freep(&ctx->slice_size);
ctx              1371 libavcodec/dnxhdenc.c     av_freep(&ctx->slice_offs);
ctx              1373 libavcodec/dnxhdenc.c     av_freep(&ctx->qmatrix_c);
ctx              1374 libavcodec/dnxhdenc.c     av_freep(&ctx->qmatrix_l);
ctx              1375 libavcodec/dnxhdenc.c     av_freep(&ctx->qmatrix_c16);
ctx              1376 libavcodec/dnxhdenc.c     av_freep(&ctx->qmatrix_l16);
ctx              1380 libavcodec/dnxhdenc.c             av_freep(&ctx->thread[i]);
ctx               112 libavcodec/dnxhdenc.h void ff_dnxhdenc_init_x86(DNXHDEncContext *ctx);
ctx                40 libavcodec/dump_extradata_bsf.c static int dump_extradata(AVBSFContext *ctx, AVPacket *out)
ctx                42 libavcodec/dump_extradata_bsf.c     DumpExtradataContext *s = ctx->priv_data;
ctx                46 libavcodec/dump_extradata_bsf.c     ret = ff_bsf_get_packet_ref(ctx, in);
ctx                50 libavcodec/dump_extradata_bsf.c     if (ctx->par_in->extradata &&
ctx                53 libavcodec/dump_extradata_bsf.c          (in->size < ctx->par_in->extradata_size ||
ctx                54 libavcodec/dump_extradata_bsf.c           memcmp(in->data, ctx->par_in->extradata, ctx->par_in->extradata_size))) {
ctx                55 libavcodec/dump_extradata_bsf.c         if (in->size >= INT_MAX - ctx->par_in->extradata_size) {
ctx                60 libavcodec/dump_extradata_bsf.c         ret = av_new_packet(out, in->size + ctx->par_in->extradata_size);
ctx                70 libavcodec/dump_extradata_bsf.c         memcpy(out->data, ctx->par_in->extradata, ctx->par_in->extradata_size);
ctx                71 libavcodec/dump_extradata_bsf.c         memcpy(out->data + ctx->par_in->extradata_size, in->data, in->size);
ctx               175 libavcodec/dv.c int ff_dv_init_dynamic_tables(DVVideoContext *ctx, const AVDVProfile *d)
ctx               187 libavcodec/dv.c                     dv_calc_mb_coordinates(d, c, s, j, &ctx->work_chunks[i].mb_coordinates[0]);
ctx               188 libavcodec/dv.c                     ctx->work_chunks[i++].buf_offset = p;
ctx               142 libavcodec/dvbsubdec.c static DVBSubObject* get_object(DVBSubContext *ctx, int object_id)
ctx               144 libavcodec/dvbsubdec.c     DVBSubObject *ptr = ctx->object_list;
ctx               153 libavcodec/dvbsubdec.c static DVBSubCLUT* get_clut(DVBSubContext *ctx, int clut_id)
ctx               155 libavcodec/dvbsubdec.c     DVBSubCLUT *ptr = ctx->clut_list;
ctx               164 libavcodec/dvbsubdec.c static DVBSubRegion* get_region(DVBSubContext *ctx, int region_id)
ctx               166 libavcodec/dvbsubdec.c     DVBSubRegion *ptr = ctx->region_list;
ctx               175 libavcodec/dvbsubdec.c static void delete_region_display_list(DVBSubContext *ctx, DVBSubRegion *region)
ctx               183 libavcodec/dvbsubdec.c         object = get_object(ctx, display->object_id);
ctx               198 libavcodec/dvbsubdec.c                     obj2_ptr = &ctx->object_list;
ctx               221 libavcodec/dvbsubdec.c static void delete_cluts(DVBSubContext *ctx)
ctx               223 libavcodec/dvbsubdec.c     while (ctx->clut_list) {
ctx               224 libavcodec/dvbsubdec.c         DVBSubCLUT *clut = ctx->clut_list;
ctx               226 libavcodec/dvbsubdec.c         ctx->clut_list = clut->next;
ctx               232 libavcodec/dvbsubdec.c static void delete_objects(DVBSubContext *ctx)
ctx               234 libavcodec/dvbsubdec.c     while (ctx->object_list) {
ctx               235 libavcodec/dvbsubdec.c         DVBSubObject *object = ctx->object_list;
ctx               237 libavcodec/dvbsubdec.c         ctx->object_list = object->next;
ctx               243 libavcodec/dvbsubdec.c static void delete_regions(DVBSubContext *ctx)
ctx               245 libavcodec/dvbsubdec.c     while (ctx->region_list) {
ctx               246 libavcodec/dvbsubdec.c         DVBSubRegion *region = ctx->region_list;
ctx               248 libavcodec/dvbsubdec.c         ctx->region_list = region->next;
ctx               250 libavcodec/dvbsubdec.c         delete_region_display_list(ctx, region);
ctx               260 libavcodec/dvbsubdec.c     DVBSubContext *ctx = avctx->priv_data;
ctx               262 libavcodec/dvbsubdec.c     if (ctx->substream < 0) {
ctx               263 libavcodec/dvbsubdec.c         ctx->composition_id = -1;
ctx               264 libavcodec/dvbsubdec.c         ctx->ancillary_id   = -1;
ctx               267 libavcodec/dvbsubdec.c         ctx->composition_id = -1;
ctx               268 libavcodec/dvbsubdec.c         ctx->ancillary_id   = -1;
ctx               270 libavcodec/dvbsubdec.c         if (avctx->extradata_size > 5*ctx->substream + 2) {
ctx               271 libavcodec/dvbsubdec.c             ctx->composition_id = AV_RB16(avctx->extradata + 5*ctx->substream);
ctx               272 libavcodec/dvbsubdec.c             ctx->ancillary_id   = AV_RB16(avctx->extradata + 5*ctx->substream + 2);
ctx               274 libavcodec/dvbsubdec.c             av_log(avctx, AV_LOG_WARNING, "Selected DVB subtitles sub-stream %d is not available\n", ctx->substream);
ctx               275 libavcodec/dvbsubdec.c             ctx->composition_id = AV_RB16(avctx->extradata);
ctx               276 libavcodec/dvbsubdec.c             ctx->ancillary_id   = AV_RB16(avctx->extradata + 2);
ctx               280 libavcodec/dvbsubdec.c     ctx->version = -1;
ctx               281 libavcodec/dvbsubdec.c     ctx->prev_start = AV_NOPTS_VALUE;
ctx               348 libavcodec/dvbsubdec.c     DVBSubContext *ctx = avctx->priv_data;
ctx               351 libavcodec/dvbsubdec.c     delete_regions(ctx);
ctx               353 libavcodec/dvbsubdec.c     delete_objects(ctx);
ctx               355 libavcodec/dvbsubdec.c     delete_cluts(ctx);
ctx               357 libavcodec/dvbsubdec.c     av_freep(&ctx->display_definition);
ctx               359 libavcodec/dvbsubdec.c     while (ctx->display_list) {
ctx               360 libavcodec/dvbsubdec.c         display = ctx->display_list;
ctx               361 libavcodec/dvbsubdec.c         ctx->display_list = display->next;
ctx               654 libavcodec/dvbsubdec.c static void compute_default_clut(DVBSubContext *ctx, uint8_t *clut, AVSubtitleRect *rect, int w, int h)
ctx               659 libavcodec/dvbsubdec.c     int (*counttab2)[256] = ctx->clut_count2;
ctx               663 libavcodec/dvbsubdec.c     memset(ctx->clut_count2, 0 , sizeof(ctx->clut_count2));
ctx               722 libavcodec/dvbsubdec.c     DVBSubContext *ctx = avctx->priv_data;
ctx               724 libavcodec/dvbsubdec.c     DVBSubDisplayDefinition *display_def = ctx->display_definition;
ctx               741 libavcodec/dvbsubdec.c         avpriv_request_sample(ctx, "Different Version of Segment asked Twice");
ctx               744 libavcodec/dvbsubdec.c     for (display = ctx->display_list; display; display = display->next) {
ctx               745 libavcodec/dvbsubdec.c         region = get_region(ctx, display->region_id);
ctx               750 libavcodec/dvbsubdec.c     if(ctx->compute_edt == 0) {
ctx               751 libavcodec/dvbsubdec.c         sub->end_display_time = ctx->time_out * 1000;
ctx               753 libavcodec/dvbsubdec.c     } else if (ctx->prev_start != AV_NOPTS_VALUE) {
ctx               754 libavcodec/dvbsubdec.c         sub->end_display_time = av_rescale_q((sub->pts - ctx->prev_start ), AV_TIME_BASE_Q, (AVRational){ 1, 1000 }) - 1;
ctx               775 libavcodec/dvbsubdec.c         for (display = ctx->display_list; display; display = display->next) {
ctx               776 libavcodec/dvbsubdec.c             region = get_region(ctx, display->region_id);
ctx               793 libavcodec/dvbsubdec.c             clut = get_clut(ctx, region->clut);
ctx               826 libavcodec/dvbsubdec.c             if ((clut == &default_clut && ctx->compute_clut == -1) || ctx->compute_clut == 1) {
ctx               828 libavcodec/dvbsubdec.c                     compute_default_clut(ctx, region->computed_clut, rect, rect->w, rect->h);
ctx               871 libavcodec/dvbsubdec.c     DVBSubContext *ctx = avctx->priv_data;
ctx               873 libavcodec/dvbsubdec.c     DVBSubRegion *region = get_region(ctx, display->region_id);
ctx               988 libavcodec/dvbsubdec.c     DVBSubContext *ctx = avctx->priv_data;
ctx              1001 libavcodec/dvbsubdec.c     object = get_object(ctx, object_id);
ctx              1048 libavcodec/dvbsubdec.c     DVBSubContext *ctx = avctx->priv_data;
ctx              1073 libavcodec/dvbsubdec.c     clut = get_clut(ctx, clut_id);
ctx              1085 libavcodec/dvbsubdec.c         clut->next = ctx->clut_list;
ctx              1086 libavcodec/dvbsubdec.c         ctx->clut_list = clut;
ctx              1147 libavcodec/dvbsubdec.c     DVBSubContext *ctx = avctx->priv_data;
ctx              1163 libavcodec/dvbsubdec.c     region = get_region(ctx, region_id);
ctx              1173 libavcodec/dvbsubdec.c         region->next = ctx->region_list;
ctx              1174 libavcodec/dvbsubdec.c         ctx->region_list = region;
ctx              1238 libavcodec/dvbsubdec.c     delete_region_display_list(ctx, region);
ctx              1244 libavcodec/dvbsubdec.c         object = get_object(ctx, object_id);
ctx              1252 libavcodec/dvbsubdec.c             object->next = ctx->object_list;
ctx              1253 libavcodec/dvbsubdec.c             ctx->object_list = object;
ctx              1295 libavcodec/dvbsubdec.c     DVBSubContext *ctx = avctx->priv_data;
ctx              1312 libavcodec/dvbsubdec.c     if (ctx->version == version) {
ctx              1316 libavcodec/dvbsubdec.c     ctx->time_out = timeout;
ctx              1317 libavcodec/dvbsubdec.c     ctx->version = version;
ctx              1319 libavcodec/dvbsubdec.c     ff_dlog(avctx, "Page time out %ds, state %d\n", ctx->time_out, page_state);
ctx              1321 libavcodec/dvbsubdec.c     if(ctx->compute_edt == 1)
ctx              1325 libavcodec/dvbsubdec.c         delete_regions(ctx);
ctx              1326 libavcodec/dvbsubdec.c         delete_objects(ctx);
ctx              1327 libavcodec/dvbsubdec.c         delete_cluts(ctx);
ctx              1330 libavcodec/dvbsubdec.c     tmp_display_list = ctx->display_list;
ctx              1331 libavcodec/dvbsubdec.c     ctx->display_list = NULL;
ctx              1337 libavcodec/dvbsubdec.c         display = ctx->display_list;
ctx              1369 libavcodec/dvbsubdec.c         display->next = ctx->display_list;
ctx              1370 libavcodec/dvbsubdec.c         ctx->display_list = display;
ctx              1388 libavcodec/dvbsubdec.c static void png_save(DVBSubContext *ctx, const char *filename, uint32_t *bitmap, int w, int h)
ctx              1438 libavcodec/dvbsubdec.c         av_log(ctx, AV_LOG_ERROR, "Error running pnmtopng\n");
ctx              1444 libavcodec/dvbsubdec.c         av_log(ctx, AV_LOG_ERROR, "Error removing %s and %s\n", fname, fname2);
ctx              1449 libavcodec/dvbsubdec.c static int save_display_set(DVBSubContext *ctx)
ctx              1466 libavcodec/dvbsubdec.c     for (display = ctx->display_list; display; display = display->next) {
ctx              1467 libavcodec/dvbsubdec.c         region = get_region(ctx, display->region_id);
ctx              1504 libavcodec/dvbsubdec.c         for (display = ctx->display_list; display; display = display->next) {
ctx              1505 libavcodec/dvbsubdec.c             region = get_region(ctx, display->region_id);
ctx              1513 libavcodec/dvbsubdec.c             clut = get_clut(ctx, region->clut);
ctx              1542 libavcodec/dvbsubdec.c         png_save(ctx, filename, pbuf, width, height);
ctx              1556 libavcodec/dvbsubdec.c     DVBSubContext *ctx = avctx->priv_data;
ctx              1557 libavcodec/dvbsubdec.c     DVBSubDisplayDefinition *display_def = ctx->display_definition;
ctx              1572 libavcodec/dvbsubdec.c         ctx->display_definition = display_def;
ctx              1602 libavcodec/dvbsubdec.c     DVBSubContext *ctx = avctx->priv_data;
ctx              1604 libavcodec/dvbsubdec.c     if(ctx->compute_edt == 0)
ctx              1607 libavcodec/dvbsubdec.c     save_display_set(ctx);
ctx              1618 libavcodec/dvbsubdec.c     DVBSubContext *ctx = avctx->priv_data;
ctx              1666 libavcodec/dvbsubdec.c         if (page_id == ctx->composition_id || page_id == ctx->ancillary_id ||
ctx              1667 libavcodec/dvbsubdec.c             ctx->composition_id == -1 || ctx->ancillary_id == -1) {
ctx              1725 libavcodec/dvbsubdec.c         if(ctx->compute_edt == 1 )
ctx              1726 libavcodec/dvbsubdec.c             FFSWAP(int64_t, ctx->prev_start, sub->pts);
ctx               130 libavcodec/dvdec.c static void dv_init_weight_tables(DVVideoContext *ctx, const AVDVProfile *d)
ctx               133 libavcodec/dvdec.c     uint32_t *factor1 = &ctx->idct_factor[0],
ctx               134 libavcodec/dvdec.c              *factor2 = &ctx->idct_factor[DV_PROFILE_IS_HD(d) ? 4096 : 2816];
ctx               146 libavcodec/dvdsubdec.c static void guess_palette(DVDSubContext* ctx,
ctx               160 libavcodec/dvdsubdec.c     uint8_t *colormap = ctx->colormap, *alpha = ctx->alpha;
ctx               162 libavcodec/dvdsubdec.c     if(ctx->has_palette) {
ctx               164 libavcodec/dvdsubdec.c             rgba_palette[i] = (ctx->palette[colormap[i]] & 0x00ffffff)
ctx               220 libavcodec/dvdsubdec.c static int decode_dvd_subtitles(DVDSubContext *ctx, AVSubtitle *sub_header,
ctx               226 libavcodec/dvdsubdec.c     uint8_t *colormap = ctx->colormap, *alpha = ctx->alpha;
ctx               251 libavcodec/dvdsubdec.c             av_log(ctx, AV_LOG_ERROR, "Discarding invalid packet\n");
ctx               373 libavcodec/dvdsubdec.c                 memset(ctx->used_color, 0, sizeof(ctx->used_color));
ctx               384 libavcodec/dvdsubdec.c                 if (decode_rle(bitmap, w * 2, w, (h + 1) / 2, ctx->used_color,
ctx               387 libavcodec/dvdsubdec.c                 if (decode_rle(bitmap + w, w * 2, w, h / 2, ctx->used_color,
ctx               402 libavcodec/dvdsubdec.c                     guess_palette(ctx, (uint32_t*)sub_header->rects[0]->data[1],
ctx               424 libavcodec/dvdsubdec.c             av_log(ctx, AV_LOG_ERROR, "Invalid command offset\n");
ctx               451 libavcodec/dvdsubdec.c static int find_smallest_bounding_rectangle(DVDSubContext *ctx, AVSubtitle *s)
ctx               464 libavcodec/dvdsubdec.c         } else if (ctx->used_color[i])
ctx               554 libavcodec/dvdsubdec.c     DVDSubContext *ctx = avctx->priv_data;
ctx               556 libavcodec/dvdsubdec.c     av_assert0(buf_size >= 0 && ctx->buf_size <= sizeof(ctx->buf));
ctx               557 libavcodec/dvdsubdec.c     if (buf_size >= sizeof(ctx->buf) - ctx->buf_size) {
ctx               560 libavcodec/dvdsubdec.c         ctx->buf_size = 0;
ctx               563 libavcodec/dvdsubdec.c     memcpy(ctx->buf + ctx->buf_size, buf, buf_size);
ctx               564 libavcodec/dvdsubdec.c     ctx->buf_size += buf_size;
ctx               572 libavcodec/dvdsubdec.c     DVDSubContext *ctx = avctx->priv_data;
ctx               579 libavcodec/dvdsubdec.c     if (ctx->buf_size) {
ctx               585 libavcodec/dvdsubdec.c         buf = ctx->buf;
ctx               586 libavcodec/dvdsubdec.c         buf_size = ctx->buf_size;
ctx               590 libavcodec/dvdsubdec.c     is_menu = decode_dvd_subtitles(ctx, sub, buf, buf_size);
ctx               597 libavcodec/dvdsubdec.c         ctx->buf_size = 0;
ctx               604 libavcodec/dvdsubdec.c     if (!is_menu && find_smallest_bounding_rectangle(ctx, sub) == 0)
ctx               607 libavcodec/dvdsubdec.c     if (ctx->forced_subs_only && !(sub->rects[0]->flags & AV_SUBTITLE_FLAG_FORCED))
ctx               614 libavcodec/dvdsubdec.c     snprintf(ppm_name, sizeof(ppm_name), "/tmp/%05d.ppm", ctx->sub_id++);
ctx               623 libavcodec/dvdsubdec.c     ctx->buf_size = 0;
ctx               628 libavcodec/dvdsubdec.c static int parse_ifo_palette(DVDSubContext *ctx, char *p)
ctx               638 libavcodec/dvdsubdec.c     ctx->has_palette = 0;
ctx               640 libavcodec/dvdsubdec.c         av_log(ctx, AV_LOG_WARNING, "Unable to open IFO file \"%s\": %s\n", p, av_err2str(AVERROR(errno)));
ctx               644 libavcodec/dvdsubdec.c         av_log(ctx, AV_LOG_WARNING, "\"%s\" is not a proper IFO file\n", p);
ctx               672 libavcodec/dvdsubdec.c                     ctx->palette[i] = (r << 16) + (g << 8) + b;
ctx               675 libavcodec/dvdsubdec.c                 ctx->has_palette = 1;
ctx               679 libavcodec/dvdsubdec.c     if (ctx->has_palette == 0) {
ctx               680 libavcodec/dvdsubdec.c         av_log(ctx, AV_LOG_WARNING, "Failed to read palette from IFO file \"%s\"\n", p);
ctx               690 libavcodec/dvdsubdec.c     DVDSubContext *ctx = (DVDSubContext*) avctx->priv_data;
ctx               709 libavcodec/dvdsubdec.c             ctx->has_palette = 1;
ctx               710 libavcodec/dvdsubdec.c             ff_dvdsub_parse_palette(ctx->palette, data + 8);
ctx               731 libavcodec/dvdsubdec.c     DVDSubContext *ctx = avctx->priv_data;
ctx               737 libavcodec/dvdsubdec.c     if (ctx->ifo_str)
ctx               738 libavcodec/dvdsubdec.c         parse_ifo_palette(ctx, ctx->ifo_str);
ctx               739 libavcodec/dvdsubdec.c     if (ctx->palette_str) {
ctx               740 libavcodec/dvdsubdec.c         ctx->has_palette = 1;
ctx               741 libavcodec/dvdsubdec.c         ff_dvdsub_parse_palette(ctx->palette, ctx->palette_str);
ctx               743 libavcodec/dvdsubdec.c     if (ctx->has_palette) {
ctx               747 libavcodec/dvdsubdec.c             av_log(avctx, AV_LOG_DEBUG, " 0x%06"PRIx32, ctx->palette[i]);
ctx               756 libavcodec/dvdsubdec.c     DVDSubContext *ctx = avctx->priv_data;
ctx               757 libavcodec/dvdsubdec.c     ctx->buf_size = 0;
ctx               196 libavcodec/dxv.c     DXVContext *ctx = avctx->priv_data;
ctx               198 libavcodec/dxv.c     const uint8_t *d = ctx->tex_data;
ctx               199 libavcodec/dxv.c     int w_block = avctx->coded_width / ctx->texture_block_w;
ctx               200 libavcodec/dxv.c     int h_block = avctx->coded_height / ctx->texture_block_h;
ctx               204 libavcodec/dxv.c     start_slice = h_block * slice / ctx->slice_count;
ctx               205 libavcodec/dxv.c     end_slice = h_block * (slice + 1) / ctx->slice_count;
ctx               207 libavcodec/dxv.c     if (ctx->tex_funct) {
ctx               209 libavcodec/dxv.c             uint8_t *p = frame->data[0] + y * frame->linesize[0] * ctx->texture_block_h;
ctx               212 libavcodec/dxv.c                 ctx->tex_funct(p + x * 4 * ctx->texture_block_w, frame->linesize[0],
ctx               213 libavcodec/dxv.c                                d + (off + x) * ctx->tex_step);
ctx               217 libavcodec/dxv.c         const uint8_t *c = ctx->ctex_data;
ctx               220 libavcodec/dxv.c             uint8_t *p0 = frame->data[0] + y * frame->linesize[0] * ctx->texture_block_h;
ctx               221 libavcodec/dxv.c             uint8_t *p3 = ctx->tex_step != 64 ? NULL : frame->data[3] + y * frame->linesize[3] * ctx->texture_block_h;
ctx               224 libavcodec/dxv.c                 ctx->tex_funct_planar[0](p0 + x * ctx->texture_block_w, frame->linesize[0],
ctx               225 libavcodec/dxv.c                                          p3 != NULL ? p3 + x * ctx->texture_block_w : NULL, frame->linesize[3],
ctx               226 libavcodec/dxv.c                                          d + (off + x) * ctx->tex_step);
ctx               230 libavcodec/dxv.c         w_block = (avctx->coded_width / 2) / ctx->ctexture_block_w;
ctx               231 libavcodec/dxv.c         h_block = (avctx->coded_height / 2) / ctx->ctexture_block_h;
ctx               232 libavcodec/dxv.c         start_slice = h_block * slice / ctx->slice_count;
ctx               233 libavcodec/dxv.c         end_slice = h_block * (slice + 1) / ctx->slice_count;
ctx               236 libavcodec/dxv.c             uint8_t *p0 = frame->data[1] + y * frame->linesize[1] * ctx->ctexture_block_h;
ctx               237 libavcodec/dxv.c             uint8_t *p1 = frame->data[2] + y * frame->linesize[2] * ctx->ctexture_block_h;
ctx               240 libavcodec/dxv.c                 ctx->tex_funct_planar[1](p0 + x * ctx->ctexture_block_w, frame->linesize[1],
ctx               241 libavcodec/dxv.c                                          p1 + x * ctx->ctexture_block_w, frame->linesize[2],
ctx               242 libavcodec/dxv.c                                          c + (off + x) * ctx->ctex_step);
ctx               290 libavcodec/dxv.c     DXVContext *ctx = avctx->priv_data;
ctx               291 libavcodec/dxv.c     GetByteContext *gbc = &ctx->gbc;
ctx               297 libavcodec/dxv.c     AV_WL32(ctx->tex_data, bytestream2_get_le32(gbc));
ctx               298 libavcodec/dxv.c     AV_WL32(ctx->tex_data + 4, bytestream2_get_le32(gbc));
ctx               301 libavcodec/dxv.c     while (pos + 2 <= ctx->tex_size / 4) {
ctx               306 libavcodec/dxv.c             prev = AV_RL32(ctx->tex_data + 4 * (pos - idx));
ctx               307 libavcodec/dxv.c             AV_WL32(ctx->tex_data + 4 * pos, prev);
ctx               310 libavcodec/dxv.c             prev = AV_RL32(ctx->tex_data + 4 * (pos - idx));
ctx               311 libavcodec/dxv.c             AV_WL32(ctx->tex_data + 4 * pos, prev);
ctx               317 libavcodec/dxv.c                 prev = AV_RL32(ctx->tex_data + 4 * (pos - idx));
ctx               320 libavcodec/dxv.c             AV_WL32(ctx->tex_data + 4 * pos, prev);
ctx               326 libavcodec/dxv.c                 prev = AV_RL32(ctx->tex_data + 4 * (pos - idx));
ctx               329 libavcodec/dxv.c             AV_WL32(ctx->tex_data + 4 * pos, prev);
ctx               495 libavcodec/dxv.c static int dxv_decompress_cgo(DXVContext *ctx, GetByteContext *gb,
ctx               735 libavcodec/dxv.c static int dxv_decompress_cocg(DXVContext *ctx, GetByteContext *gb,
ctx               776 libavcodec/dxv.c         ret = dxv_decompress_cgo(ctx, gb, tex_data, tex_size, op_data0, &oi0, op_size0,
ctx               780 libavcodec/dxv.c         ret = dxv_decompress_cgo(ctx, gb, tex_data, tex_size, op_data1, &oi1, op_size1,
ctx               791 libavcodec/dxv.c static int dxv_decompress_yo(DXVContext *ctx, GetByteContext *gb,
ctx               822 libavcodec/dxv.c         ret = dxv_decompress_cgo(ctx, gb, tex_data, tex_size, op_data, &oi, op_size,
ctx               835 libavcodec/dxv.c     DXVContext *ctx = avctx->priv_data;
ctx               836 libavcodec/dxv.c     GetByteContext *gb = &ctx->gbc;
ctx               839 libavcodec/dxv.c     ret = dxv_decompress_yo(ctx, gb, ctx->tex_data, ctx->tex_size,
ctx               840 libavcodec/dxv.c                             ctx->op_data[0], ctx->op_size[0]);
ctx               844 libavcodec/dxv.c     return dxv_decompress_cocg(ctx, gb, ctx->ctex_data, ctx->ctex_size,
ctx               845 libavcodec/dxv.c                                ctx->op_data[1], ctx->op_data[2],
ctx               846 libavcodec/dxv.c                                ctx->op_size[1], ctx->op_size[2]);
ctx               851 libavcodec/dxv.c     DXVContext *ctx = avctx->priv_data;
ctx               852 libavcodec/dxv.c     GetByteContext *gb = &ctx->gbc;
ctx               855 libavcodec/dxv.c     ret = dxv_decompress_cocg(ctx, gb, ctx->tex_data, ctx->tex_size,
ctx               856 libavcodec/dxv.c                               ctx->op_data[0], ctx->op_data[3],
ctx               857 libavcodec/dxv.c                               ctx->op_size[0], ctx->op_size[3]);
ctx               861 libavcodec/dxv.c     return dxv_decompress_cocg(ctx, gb, ctx->ctex_data, ctx->ctex_size,
ctx               862 libavcodec/dxv.c                                ctx->op_data[1], ctx->op_data[2],
ctx               863 libavcodec/dxv.c                                ctx->op_size[1], ctx->op_size[2]);
ctx               868 libavcodec/dxv.c     DXVContext *ctx = avctx->priv_data;
ctx               869 libavcodec/dxv.c     GetByteContext *gbc = &ctx->gbc;
ctx               877 libavcodec/dxv.c     AV_WL32(ctx->tex_data +  0, bytestream2_get_le32(gbc));
ctx               878 libavcodec/dxv.c     AV_WL32(ctx->tex_data +  4, bytestream2_get_le32(gbc));
ctx               879 libavcodec/dxv.c     AV_WL32(ctx->tex_data +  8, bytestream2_get_le32(gbc));
ctx               880 libavcodec/dxv.c     AV_WL32(ctx->tex_data + 12, bytestream2_get_le32(gbc));
ctx               883 libavcodec/dxv.c     while (pos + 2 <= ctx->tex_size / 4) {
ctx               887 libavcodec/dxv.c             prev = AV_RL32(ctx->tex_data + 4 * (pos - 4));
ctx               888 libavcodec/dxv.c             AV_WL32(ctx->tex_data + 4 * pos, prev);
ctx               890 libavcodec/dxv.c             prev = AV_RL32(ctx->tex_data + 4 * (pos - 4));
ctx               891 libavcodec/dxv.c             AV_WL32(ctx->tex_data + 4 * pos, prev);
ctx               914 libavcodec/dxv.c                 while (check && pos + 4 <= ctx->tex_size / 4) {
ctx               915 libavcodec/dxv.c                     prev = AV_RL32(ctx->tex_data + 4 * (pos - 4));
ctx               916 libavcodec/dxv.c                     AV_WL32(ctx->tex_data + 4 * pos, prev);
ctx               919 libavcodec/dxv.c                     prev = AV_RL32(ctx->tex_data + 4 * (pos - 4));
ctx               920 libavcodec/dxv.c                     AV_WL32(ctx->tex_data + 4 * pos, prev);
ctx               923 libavcodec/dxv.c                     prev = AV_RL32(ctx->tex_data + 4 * (pos - 4));
ctx               924 libavcodec/dxv.c                     AV_WL32(ctx->tex_data + 4 * pos, prev);
ctx               927 libavcodec/dxv.c                     prev = AV_RL32(ctx->tex_data + 4 * (pos - 4));
ctx               928 libavcodec/dxv.c                     AV_WL32(ctx->tex_data + 4 * pos, prev);
ctx               948 libavcodec/dxv.c                 prev = AV_RL32(ctx->tex_data + 4 * (pos - 4));
ctx               949 libavcodec/dxv.c                 AV_WL32(ctx->tex_data + 4 * pos, prev);
ctx               952 libavcodec/dxv.c                 prev = AV_RL32(ctx->tex_data + 4 * (pos - 4));
ctx               953 libavcodec/dxv.c                 AV_WL32(ctx->tex_data + 4 * pos, prev);
ctx               959 libavcodec/dxv.c                 if (idx > pos || (unsigned int)(pos - idx) + 2 > ctx->tex_size / 4)
ctx               961 libavcodec/dxv.c                 prev = AV_RL32(ctx->tex_data + 4 * (pos - idx));
ctx               962 libavcodec/dxv.c                 AV_WL32(ctx->tex_data + 4 * pos, prev);
ctx               965 libavcodec/dxv.c                 prev = AV_RL32(ctx->tex_data + 4 * (pos - idx));
ctx               966 libavcodec/dxv.c                 AV_WL32(ctx->tex_data + 4 * pos, prev);
ctx               972 libavcodec/dxv.c                 AV_WL32(ctx->tex_data + 4 * pos, prev);
ctx               976 libavcodec/dxv.c                 AV_WL32(ctx->tex_data + 4 * pos, prev);
ctx               983 libavcodec/dxv.c         if (pos + 2 > ctx->tex_size / 4)
ctx               988 libavcodec/dxv.c             if (idx > pos || (unsigned int)(pos - idx) + 2 > ctx->tex_size / 4)
ctx               990 libavcodec/dxv.c             prev = AV_RL32(ctx->tex_data + 4 * (pos - idx));
ctx               991 libavcodec/dxv.c             AV_WL32(ctx->tex_data + 4 * pos, prev);
ctx               994 libavcodec/dxv.c             prev = AV_RL32(ctx->tex_data + 4 * (pos - idx));
ctx               995 libavcodec/dxv.c             AV_WL32(ctx->tex_data + 4 * pos, prev);
ctx              1000 libavcodec/dxv.c             if (op && (idx > pos || (unsigned int)(pos - idx) + 2 > ctx->tex_size / 4))
ctx              1003 libavcodec/dxv.c                 prev = AV_RL32(ctx->tex_data + 4 * (pos - idx));
ctx              1006 libavcodec/dxv.c             AV_WL32(ctx->tex_data + 4 * pos, prev);
ctx              1012 libavcodec/dxv.c                 prev = AV_RL32(ctx->tex_data + 4 * (pos - idx));
ctx              1015 libavcodec/dxv.c             AV_WL32(ctx->tex_data + 4 * pos, prev);
ctx              1025 libavcodec/dxv.c     DXVContext *ctx = avctx->priv_data;
ctx              1026 libavcodec/dxv.c     return ff_lzf_uncompress(&ctx->gbc, &ctx->tex_data, &ctx->tex_size);
ctx              1031 libavcodec/dxv.c     DXVContext *ctx = avctx->priv_data;
ctx              1032 libavcodec/dxv.c     GetByteContext *gbc = &ctx->gbc;
ctx              1034 libavcodec/dxv.c     if (bytestream2_get_bytes_left(gbc) < ctx->tex_size)
ctx              1037 libavcodec/dxv.c     bytestream2_get_buffer(gbc, ctx->tex_data, ctx->tex_size);
ctx              1044 libavcodec/dxv.c     DXVContext *ctx = avctx->priv_data;
ctx              1046 libavcodec/dxv.c     GetByteContext *gbc = &ctx->gbc;
ctx              1056 libavcodec/dxv.c     ctx->texture_block_h = 4;
ctx              1057 libavcodec/dxv.c     ctx->texture_block_w = 4;
ctx              1062 libavcodec/dxv.c     ctx->tex_funct = NULL;
ctx              1063 libavcodec/dxv.c     ctx->tex_funct_planar[0] = NULL;
ctx              1064 libavcodec/dxv.c     ctx->tex_funct_planar[1] = NULL;
ctx              1070 libavcodec/dxv.c         ctx->tex_funct = ctx->texdsp.dxt1_block;
ctx              1071 libavcodec/dxv.c         ctx->tex_rat   = 8;
ctx              1072 libavcodec/dxv.c         ctx->tex_step  = 8;
ctx              1078 libavcodec/dxv.c         ctx->tex_funct = ctx->texdsp.dxt5_block;
ctx              1079 libavcodec/dxv.c         ctx->tex_rat   = 4;
ctx              1080 libavcodec/dxv.c         ctx->tex_step  = 16;
ctx              1086 libavcodec/dxv.c         ctx->tex_funct_planar[0] = yo_block;
ctx              1087 libavcodec/dxv.c         ctx->tex_funct_planar[1] = cocg_block;
ctx              1088 libavcodec/dxv.c         ctx->tex_rat   = 8;
ctx              1089 libavcodec/dxv.c         ctx->tex_step  = 32;
ctx              1090 libavcodec/dxv.c         ctx->ctex_step = 16;
ctx              1093 libavcodec/dxv.c         ctx->ctex_size = avctx->coded_width * avctx->coded_height / 4;
ctx              1094 libavcodec/dxv.c         ctx->texture_block_h = 4;
ctx              1095 libavcodec/dxv.c         ctx->texture_block_w = 16;
ctx              1096 libavcodec/dxv.c         ctx->ctexture_block_h = 4;
ctx              1097 libavcodec/dxv.c         ctx->ctexture_block_w = 4;
ctx              1103 libavcodec/dxv.c         ctx->tex_funct_planar[0] = yao_block;
ctx              1104 libavcodec/dxv.c         ctx->tex_funct_planar[1] = cocg_block;
ctx              1105 libavcodec/dxv.c         ctx->tex_rat   = 4;
ctx              1106 libavcodec/dxv.c         ctx->tex_step  = 64;
ctx              1107 libavcodec/dxv.c         ctx->ctex_step = 16;
ctx              1110 libavcodec/dxv.c         ctx->ctex_size = avctx->coded_width * avctx->coded_height / 4;
ctx              1111 libavcodec/dxv.c         ctx->texture_block_h = 4;
ctx              1112 libavcodec/dxv.c         ctx->texture_block_w = 16;
ctx              1113 libavcodec/dxv.c         ctx->ctexture_block_h = 4;
ctx              1114 libavcodec/dxv.c         ctx->ctexture_block_w = 4;
ctx              1135 libavcodec/dxv.c             ctx->tex_funct = ctx->texdsp.dxt5_block;
ctx              1136 libavcodec/dxv.c             ctx->tex_step  = 16;
ctx              1140 libavcodec/dxv.c             ctx->tex_funct = ctx->texdsp.dxt1_block;
ctx              1141 libavcodec/dxv.c             ctx->tex_step  = 8;
ctx              1146 libavcodec/dxv.c         ctx->tex_rat = 1;
ctx              1150 libavcodec/dxv.c     ctx->slice_count = av_clip(avctx->thread_count, 1,
ctx              1151 libavcodec/dxv.c                                avctx->coded_height / FFMAX(ctx->texture_block_h,
ctx              1152 libavcodec/dxv.c                                                            ctx->ctexture_block_h));
ctx              1162 libavcodec/dxv.c             ctx->tex_rat = 1;
ctx              1180 libavcodec/dxv.c     ctx->tex_size = avctx->coded_width * avctx->coded_height * 4 / ctx->tex_rat;
ctx              1181 libavcodec/dxv.c     ret = av_reallocp(&ctx->tex_data, ctx->tex_size + AV_INPUT_BUFFER_PADDING_SIZE);
ctx              1185 libavcodec/dxv.c     if (ctx->ctex_size) {
ctx              1188 libavcodec/dxv.c         ctx->op_size[0] = avctx->coded_width * avctx->coded_height / 16;
ctx              1189 libavcodec/dxv.c         ctx->op_size[1] = avctx->coded_width * avctx->coded_height / 32;
ctx              1190 libavcodec/dxv.c         ctx->op_size[2] = avctx->coded_width * avctx->coded_height / 32;
ctx              1191 libavcodec/dxv.c         ctx->op_size[3] = avctx->coded_width * avctx->coded_height / 16;
ctx              1193 libavcodec/dxv.c         ret = av_reallocp(&ctx->ctex_data, ctx->ctex_size + AV_INPUT_BUFFER_PADDING_SIZE);
ctx              1197 libavcodec/dxv.c             ret = av_reallocp(&ctx->op_data[i], ctx->op_size[i]);
ctx              1208 libavcodec/dxv.c         int w_block = avctx->coded_width / ctx->texture_block_w;
ctx              1209 libavcodec/dxv.c         int h_block = avctx->coded_height / ctx->texture_block_h;
ctx              1210 libavcodec/dxv.c         if (w_block * h_block * ctx->tex_step > ctx->tex_size * 8LL)
ctx              1221 libavcodec/dxv.c                     tframe.f, NULL, ctx->slice_count);
ctx              1233 libavcodec/dxv.c     DXVContext *ctx = avctx->priv_data;
ctx              1246 libavcodec/dxv.c     ff_texturedsp_init(&ctx->texdsp);
ctx              1253 libavcodec/dxv.c     DXVContext *ctx = avctx->priv_data;
ctx              1255 libavcodec/dxv.c     av_freep(&ctx->tex_data);
ctx              1256 libavcodec/dxv.c     av_freep(&ctx->ctex_data);
ctx              1257 libavcodec/dxv.c     av_freep(&ctx->op_data[0]);
ctx              1258 libavcodec/dxv.c     av_freep(&ctx->op_data[1]);
ctx              1259 libavcodec/dxv.c     av_freep(&ctx->op_data[2]);
ctx              1260 libavcodec/dxv.c     av_freep(&ctx->op_data[3]);
ctx               559 libavcodec/dxva2.c         AVDXVAContext *ctx = DXVA_CONTEXT(avctx);
ctx               560 libavcodec/dxva2.c         if (D3D11VA_CONTEXT(ctx)->context_mutex != INVALID_HANDLE_VALUE)
ctx               561 libavcodec/dxva2.c             WaitForSingleObjectEx(D3D11VA_CONTEXT(ctx)->context_mutex, INFINITE, FALSE);
ctx               575 libavcodec/dxva2.c         AVDXVAContext *ctx = DXVA_CONTEXT(avctx);
ctx               576 libavcodec/dxva2.c         if (D3D11VA_CONTEXT(ctx)->context_mutex != INVALID_HANDLE_VALUE)
ctx               577 libavcodec/dxva2.c             ReleaseMutex(D3D11VA_CONTEXT(ctx)->context_mutex);
ctx               680 libavcodec/dxva2.c         AVD3D11VAContext *d3d11_ctx = &sctx->ctx.d3d11va;
ctx               701 libavcodec/dxva2.c         struct dxva_context *dxva_ctx = &sctx->ctx.dxva2;
ctx               765 libavcodec/dxva2.c                                     const AVDXVAContext *ctx,
ctx               781 libavcodec/dxva2.c     for (i = 0; i < DXVA_CONTEXT_COUNT(avctx, ctx); i++) {
ctx               782 libavcodec/dxva2.c         if (avctx->pix_fmt == AV_PIX_FMT_DXVA2_VLD && ctx->dxva2.surface[i] == surface)
ctx               792 libavcodec/dxva2.c                            AVDXVAContext *ctx,
ctx               804 libavcodec/dxva2.c         hr = ID3D11VideoContext_GetDecoderBuffer(D3D11VA_CONTEXT(ctx)->video_context,
ctx               805 libavcodec/dxva2.c                                                  D3D11VA_CONTEXT(ctx)->decoder,
ctx               811 libavcodec/dxva2.c         hr = IDirectXVideoDecoder_GetBuffer(DXVA2_CONTEXT(ctx)->decoder, type,
ctx               849 libavcodec/dxva2.c         hr = ID3D11VideoContext_ReleaseDecoderBuffer(D3D11VA_CONTEXT(ctx)->video_context, D3D11VA_CONTEXT(ctx)->decoder, type);
ctx               853 libavcodec/dxva2.c         hr = IDirectXVideoDecoder_ReleaseBuffer(DXVA2_CONTEXT(ctx)->decoder, type);
ctx               887 libavcodec/dxva2.c     AVDXVAContext *ctx = DXVA_CONTEXT(avctx);
ctx               911 libavcodec/dxva2.c             hr = ID3D11VideoContext_DecoderBeginFrame(D3D11VA_CONTEXT(ctx)->video_context, D3D11VA_CONTEXT(ctx)->decoder,
ctx               917 libavcodec/dxva2.c             hr = IDirectXVideoDecoder_BeginFrame(DXVA2_CONTEXT(ctx)->decoder,
ctx               945 libavcodec/dxva2.c     result = ff_dxva2_commit_buffer(avctx, ctx, buffer,
ctx               968 libavcodec/dxva2.c         result = ff_dxva2_commit_buffer(avctx, ctx, buffer,
ctx              1008 libavcodec/dxva2.c         hr = ID3D11VideoContext_SubmitDecoderBuffers(D3D11VA_CONTEXT(ctx)->video_context,
ctx              1009 libavcodec/dxva2.c                                                      D3D11VA_CONTEXT(ctx)->decoder,
ctx              1019 libavcodec/dxva2.c         hr = IDirectXVideoDecoder_Execute(DXVA2_CONTEXT(ctx)->decoder, &exec);
ctx              1030 libavcodec/dxva2.c         hr = ID3D11VideoContext_DecoderEndFrame(D3D11VA_CONTEXT(ctx)->video_context, D3D11VA_CONTEXT(ctx)->decoder);
ctx              1034 libavcodec/dxva2.c         hr = IDirectXVideoDecoder_EndFrame(DXVA2_CONTEXT(ctx)->decoder, NULL);
ctx                48 libavcodec/dxva2_h264.c static void fill_picture_parameters(const AVCodecContext *avctx, AVDXVAContext *ctx, const H264Context *h,
ctx                59 libavcodec/dxva2_h264.c                        ff_dxva2_get_surface_index(avctx, ctx, current_picture->f),
ctx                75 libavcodec/dxva2_h264.c                                ff_dxva2_get_surface_index(avctx, ctx, r->f),
ctx               122 libavcodec/dxva2_h264.c     if (DXVA_CONTEXT_WORKAROUND(avctx, ctx) & FF_DXVA2_WORKAROUND_SCALING_LIST_ZIGZAG)
ctx               124 libavcodec/dxva2_h264.c     else if (DXVA_CONTEXT_WORKAROUND(avctx, ctx) & FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO)
ctx               128 libavcodec/dxva2_h264.c     pp->StatusReportFeedbackNumber    = 1 + DXVA_CONTEXT_REPORT_ID(avctx, ctx)++;
ctx               164 libavcodec/dxva2_h264.c static void fill_scaling_lists(const AVCodecContext *avctx, AVDXVAContext *ctx, const H264Context *h, DXVA_Qmatrix_H264 *qm)
ctx               169 libavcodec/dxva2_h264.c     if (DXVA_CONTEXT_WORKAROUND(avctx, ctx) & FF_DXVA2_WORKAROUND_SCALING_LIST_ZIGZAG) {
ctx               190 libavcodec/dxva2_h264.c static int is_slice_short(const AVCodecContext *avctx, AVDXVAContext *ctx)
ctx               192 libavcodec/dxva2_h264.c     assert(DXVA_CONTEXT_CFG_BITSTREAM(avctx, ctx) == 1 ||
ctx               193 libavcodec/dxva2_h264.c            DXVA_CONTEXT_CFG_BITSTREAM(avctx, ctx) == 2);
ctx               194 libavcodec/dxva2_h264.c     return DXVA_CONTEXT_CFG_BITSTREAM(avctx, ctx) == 2;
ctx               221 libavcodec/dxva2_h264.c     AVDXVAContext *ctx = DXVA_CONTEXT(avctx);
ctx               252 libavcodec/dxva2_h264.c                 if (DXVA_CONTEXT_WORKAROUND(avctx, ctx) & FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO)
ctx               253 libavcodec/dxva2_h264.c                     index = ff_dxva2_get_surface_index(avctx, ctx, r->f);
ctx               255 libavcodec/dxva2_h264.c                     index = get_refpic_index(pp, ff_dxva2_get_surface_index(avctx, ctx, r->f));
ctx               303 libavcodec/dxva2_h264.c     AVDXVAContext *ctx = DXVA_CONTEXT(avctx);
ctx               320 libavcodec/dxva2_h264.c         if (FAILED(ID3D11VideoContext_GetDecoderBuffer(D3D11VA_CONTEXT(ctx)->video_context,
ctx               321 libavcodec/dxva2_h264.c                                                        D3D11VA_CONTEXT(ctx)->decoder,
ctx               330 libavcodec/dxva2_h264.c         if (FAILED(IDirectXVideoDecoder_GetBuffer(DXVA2_CONTEXT(ctx)->decoder,
ctx               351 libavcodec/dxva2_h264.c         if (is_slice_short(avctx, ctx))
ctx               366 libavcodec/dxva2_h264.c         if (!is_slice_short(avctx, ctx)) {
ctx               390 libavcodec/dxva2_h264.c         if (FAILED(ID3D11VideoContext_ReleaseDecoderBuffer(D3D11VA_CONTEXT(ctx)->video_context, D3D11VA_CONTEXT(ctx)->decoder, type)))
ctx               395 libavcodec/dxva2_h264.c         if (FAILED(IDirectXVideoDecoder_ReleaseBuffer(DXVA2_CONTEXT(ctx)->decoder, type)))
ctx               428 libavcodec/dxva2_h264.c     if (is_slice_short(avctx, ctx)) {
ctx               435 libavcodec/dxva2_h264.c     return ff_dxva2_commit_buffer(avctx, ctx, sc,
ctx               446 libavcodec/dxva2_h264.c     AVDXVAContext *ctx = DXVA_CONTEXT(avctx);
ctx               449 libavcodec/dxva2_h264.c     if (!DXVA_CONTEXT_VALID(avctx, ctx))
ctx               454 libavcodec/dxva2_h264.c     fill_picture_parameters(avctx, ctx, h, &ctx_pic->pp);
ctx               457 libavcodec/dxva2_h264.c     fill_scaling_lists(avctx, ctx, h, &ctx_pic->qm);
ctx               471 libavcodec/dxva2_h264.c     AVDXVAContext *ctx = DXVA_CONTEXT(avctx);
ctx               484 libavcodec/dxva2_h264.c     if (is_slice_short(avctx, ctx))
ctx                57 libavcodec/dxva2_hevc.c static void fill_picture_parameters(const AVCodecContext *avctx, AVDXVAContext *ctx, const HEVCContext *h,
ctx                79 libavcodec/dxva2_hevc.c     fill_picture_entry(&pp->CurrPic, ff_dxva2_get_surface_index(avctx, ctx, current_picture->frame), 0);
ctx               171 libavcodec/dxva2_hevc.c             fill_picture_entry(&pp->RefPicList[i], ff_dxva2_get_surface_index(avctx, ctx, frame->frame), !!(frame->flags & HEVC_FRAME_FLAG_LONG_REF));
ctx               186 libavcodec/dxva2_hevc.c                 pp->ref_list[i] = get_refpic_index(pp, ff_dxva2_get_surface_index(avctx, ctx, frame->frame)); \
ctx               197 libavcodec/dxva2_hevc.c     pp->StatusReportFeedbackNumber = 1 + DXVA_CONTEXT_REPORT_ID(avctx, ctx)++;
ctx               200 libavcodec/dxva2_hevc.c static void fill_scaling_lists(AVDXVAContext *ctx, const HEVCContext *h, DXVA_Qmatrix_HEVC *qm)
ctx               242 libavcodec/dxva2_hevc.c     AVDXVAContext *ctx = DXVA_CONTEXT(avctx);
ctx               259 libavcodec/dxva2_hevc.c         if (FAILED(ID3D11VideoContext_GetDecoderBuffer(D3D11VA_CONTEXT(ctx)->video_context,
ctx               260 libavcodec/dxva2_hevc.c                                                        D3D11VA_CONTEXT(ctx)->decoder,
ctx               269 libavcodec/dxva2_hevc.c         if (FAILED(IDirectXVideoDecoder_GetBuffer(DXVA2_CONTEXT(ctx)->decoder,
ctx               312 libavcodec/dxva2_hevc.c         if (FAILED(ID3D11VideoContext_ReleaseDecoderBuffer(D3D11VA_CONTEXT(ctx)->video_context, D3D11VA_CONTEXT(ctx)->decoder, type)))
ctx               317 libavcodec/dxva2_hevc.c         if (FAILED(IDirectXVideoDecoder_ReleaseBuffer(DXVA2_CONTEXT(ctx)->decoder, type)))
ctx               350 libavcodec/dxva2_hevc.c     return ff_dxva2_commit_buffer(avctx, ctx, sc,
ctx               361 libavcodec/dxva2_hevc.c     AVDXVAContext *ctx = DXVA_CONTEXT(avctx);
ctx               364 libavcodec/dxva2_hevc.c     if (!DXVA_CONTEXT_VALID(avctx, ctx))
ctx               369 libavcodec/dxva2_hevc.c     fill_picture_parameters(avctx, ctx, h, &ctx_pic->pp);
ctx               372 libavcodec/dxva2_hevc.c     fill_scaling_lists(ctx, h, &ctx_pic->qm);
ctx                94 libavcodec/dxva2_internal.h     AVDXVAContext ctx;
ctx                99 libavcodec/dxva2_internal.h #define DXVA_CONTEXT(avctx) (AVDXVAContext *)((avctx)->hwaccel_context ? (avctx)->hwaccel_context : (&(DXVA_SHARED_CONTEXT(avctx)->ctx)))
ctx               101 libavcodec/dxva2_internal.h #define D3D11VA_CONTEXT(ctx) (&ctx->d3d11va)
ctx               102 libavcodec/dxva2_internal.h #define DXVA2_CONTEXT(ctx)   (&ctx->dxva2)
ctx               105 libavcodec/dxva2_internal.h #define DXVA_CONTEXT_WORKAROUND(avctx, ctx)     (ff_dxva2_is_d3d11(avctx) ? ctx->d3d11va.workaround : ctx->dxva2.workaround)
ctx               106 libavcodec/dxva2_internal.h #define DXVA_CONTEXT_COUNT(avctx, ctx)          (ff_dxva2_is_d3d11(avctx) ? ctx->d3d11va.surface_count : ctx->dxva2.surface_count)
ctx               107 libavcodec/dxva2_internal.h #define DXVA_CONTEXT_DECODER(avctx, ctx)        (ff_dxva2_is_d3d11(avctx) ? (void *)ctx->d3d11va.decoder : (void *)ctx->dxva2.decoder)
ctx               108 libavcodec/dxva2_internal.h #define DXVA_CONTEXT_REPORT_ID(avctx, ctx)      (*(ff_dxva2_is_d3d11(avctx) ? &ctx->d3d11va.report_id : &ctx->dxva2.report_id))
ctx               109 libavcodec/dxva2_internal.h #define DXVA_CONTEXT_CFG(avctx, ctx)            (ff_dxva2_is_d3d11(avctx) ? (void *)ctx->d3d11va.cfg : (void *)ctx->dxva2.cfg)
ctx               110 libavcodec/dxva2_internal.h #define DXVA_CONTEXT_CFG_BITSTREAM(avctx, ctx)  (ff_dxva2_is_d3d11(avctx) ? ctx->d3d11va.cfg->ConfigBitstreamRaw : ctx->dxva2.cfg->ConfigBitstreamRaw)
ctx               111 libavcodec/dxva2_internal.h #define DXVA_CONTEXT_CFG_INTRARESID(avctx, ctx) (ff_dxva2_is_d3d11(avctx) ? ctx->d3d11va.cfg->ConfigIntraResidUnsigned : ctx->dxva2.cfg->ConfigIntraResidUnsigned)
ctx               112 libavcodec/dxva2_internal.h #define DXVA_CONTEXT_CFG_RESIDACCEL(avctx, ctx) (ff_dxva2_is_d3d11(avctx) ? ctx->d3d11va.cfg->ConfigResidDiffAccelerator : ctx->dxva2.cfg->ConfigResidDiffAccelerator)
ctx               113 libavcodec/dxva2_internal.h #define DXVA_CONTEXT_VALID(avctx, ctx)          (DXVA_CONTEXT_DECODER(avctx, ctx) && \
ctx               114 libavcodec/dxva2_internal.h                                                  DXVA_CONTEXT_CFG(avctx, ctx)     && \
ctx               115 libavcodec/dxva2_internal.h                                                  (ff_dxva2_is_d3d11(avctx) || ctx->dxva2.surface_count))
ctx               117 libavcodec/dxva2_internal.h #define DXVA_CONTEXT_WORKAROUND(avctx, ctx)     (ctx->dxva2.workaround)
ctx               118 libavcodec/dxva2_internal.h #define DXVA_CONTEXT_COUNT(avctx, ctx)          (ctx->dxva2.surface_count)
ctx               119 libavcodec/dxva2_internal.h #define DXVA_CONTEXT_DECODER(avctx, ctx)        (ctx->dxva2.decoder)
ctx               120 libavcodec/dxva2_internal.h #define DXVA_CONTEXT_REPORT_ID(avctx, ctx)      (*(&ctx->dxva2.report_id))
ctx               121 libavcodec/dxva2_internal.h #define DXVA_CONTEXT_CFG(avctx, ctx)            (ctx->dxva2.cfg)
ctx               122 libavcodec/dxva2_internal.h #define DXVA_CONTEXT_CFG_BITSTREAM(avctx, ctx)  (ctx->dxva2.cfg->ConfigBitstreamRaw)
ctx               123 libavcodec/dxva2_internal.h #define DXVA_CONTEXT_CFG_INTRARESID(avctx, ctx) (ctx->dxva2.cfg->ConfigIntraResidUnsigned)
ctx               124 libavcodec/dxva2_internal.h #define DXVA_CONTEXT_CFG_RESIDACCEL(avctx, ctx) (ctx->dxva2.cfg->ConfigResidDiffAccelerator)
ctx               125 libavcodec/dxva2_internal.h #define DXVA_CONTEXT_VALID(avctx, ctx)          (ctx->dxva2.decoder && ctx->dxva2.cfg && ctx->dxva2.surface_count)
ctx               127 libavcodec/dxva2_internal.h #define DXVA_CONTEXT_WORKAROUND(avctx, ctx)     (ctx->d3d11va.workaround)
ctx               128 libavcodec/dxva2_internal.h #define DXVA_CONTEXT_COUNT(avctx, ctx)          (ctx->d3d11va.surface_count)
ctx               129 libavcodec/dxva2_internal.h #define DXVA_CONTEXT_DECODER(avctx, ctx)        (ctx->d3d11va.decoder)
ctx               130 libavcodec/dxva2_internal.h #define DXVA_CONTEXT_REPORT_ID(avctx, ctx)      (*(&ctx->d3d11va.report_id))
ctx               131 libavcodec/dxva2_internal.h #define DXVA_CONTEXT_CFG(avctx, ctx)            (ctx->d3d11va.cfg)
ctx               132 libavcodec/dxva2_internal.h #define DXVA_CONTEXT_CFG_BITSTREAM(avctx, ctx)  (ctx->d3d11va.cfg->ConfigBitstreamRaw)
ctx               133 libavcodec/dxva2_internal.h #define DXVA_CONTEXT_CFG_INTRARESID(avctx, ctx) (ctx->d3d11va.cfg->ConfigIntraResidUnsigned)
ctx               134 libavcodec/dxva2_internal.h #define DXVA_CONTEXT_CFG_RESIDACCEL(avctx, ctx) (ctx->d3d11va.cfg->ConfigResidDiffAccelerator)
ctx               135 libavcodec/dxva2_internal.h #define DXVA_CONTEXT_VALID(avctx, ctx)          (ctx->d3d11va.decoder && ctx->d3d11va.cfg)
ctx                41 libavcodec/dxva2_mpeg2.c                                     AVDXVAContext *ctx,
ctx                49 libavcodec/dxva2_mpeg2.c     pp->wDecodedPictureIndex         = ff_dxva2_get_surface_index(avctx, ctx, current_picture->f);
ctx                52 libavcodec/dxva2_mpeg2.c         pp->wForwardRefPictureIndex  = ff_dxva2_get_surface_index(avctx, ctx, s->last_picture.f);
ctx                56 libavcodec/dxva2_mpeg2.c         pp->wBackwardRefPictureIndex = ff_dxva2_get_surface_index(avctx, ctx, s->next_picture.f);
ctx               107 libavcodec/dxva2_mpeg2.c                                        AVDXVAContext *ctx,
ctx               155 libavcodec/dxva2_mpeg2.c     AVDXVAContext *ctx = DXVA_CONTEXT(avctx);
ctx               169 libavcodec/dxva2_mpeg2.c         if (FAILED(ID3D11VideoContext_GetDecoderBuffer(D3D11VA_CONTEXT(ctx)->video_context,
ctx               170 libavcodec/dxva2_mpeg2.c                                                        D3D11VA_CONTEXT(ctx)->decoder,
ctx               179 libavcodec/dxva2_mpeg2.c         if (FAILED(IDirectXVideoDecoder_GetBuffer(DXVA2_CONTEXT(ctx)->decoder,
ctx               212 libavcodec/dxva2_mpeg2.c         if (FAILED(ID3D11VideoContext_ReleaseDecoderBuffer(D3D11VA_CONTEXT(ctx)->video_context, D3D11VA_CONTEXT(ctx)->decoder, type)))
ctx               217 libavcodec/dxva2_mpeg2.c         if (FAILED(IDirectXVideoDecoder_ReleaseBuffer(DXVA2_CONTEXT(ctx)->decoder, type)))
ctx               246 libavcodec/dxva2_mpeg2.c     return ff_dxva2_commit_buffer(avctx, ctx, sc,
ctx               258 libavcodec/dxva2_mpeg2.c     AVDXVAContext *ctx = DXVA_CONTEXT(avctx);
ctx               262 libavcodec/dxva2_mpeg2.c     if (!DXVA_CONTEXT_VALID(avctx, ctx))
ctx               266 libavcodec/dxva2_mpeg2.c     fill_picture_parameters(avctx, ctx, s, &ctx_pic->pp);
ctx               267 libavcodec/dxva2_mpeg2.c     fill_quantization_matrices(avctx, ctx, s, &ctx_pic->qm);
ctx                40 libavcodec/dxva2_vc1.c                                     AVDXVAContext *ctx, const VC1Context *v,
ctx                57 libavcodec/dxva2_vc1.c     pp->wDeblockedPictureIndex  = ff_dxva2_get_surface_index(avctx, ctx, current_picture->f);
ctx                59 libavcodec/dxva2_vc1.c         pp->wForwardRefPictureIndex = ff_dxva2_get_surface_index(avctx, ctx, s->last_picture.f);
ctx                63 libavcodec/dxva2_vc1.c         pp->wBackwardRefPictureIndex = ff_dxva2_get_surface_index(avctx, ctx, s->next_picture.f);
ctx                88 libavcodec/dxva2_vc1.c                                       ((DXVA_CONTEXT_CFG_INTRARESID(avctx, ctx) != 0) << 6) |
ctx                89 libavcodec/dxva2_vc1.c                                       ((DXVA_CONTEXT_CFG_RESIDACCEL(avctx, ctx) != 0) << 5) |
ctx                97 libavcodec/dxva2_vc1.c     DXVA_CONTEXT_REPORT_ID(avctx, ctx)++;
ctx                98 libavcodec/dxva2_vc1.c     if (DXVA_CONTEXT_REPORT_ID(avctx, ctx) >= (1 << 16))
ctx                99 libavcodec/dxva2_vc1.c         DXVA_CONTEXT_REPORT_ID(avctx, ctx) = 1;
ctx               100 libavcodec/dxva2_vc1.c     pp->bPicScanFixed           = DXVA_CONTEXT_REPORT_ID(avctx, ctx) >> 8;
ctx               101 libavcodec/dxva2_vc1.c     pp->bPicScanMethod          = DXVA_CONTEXT_REPORT_ID(avctx, ctx) & 0xff;
ctx               187 libavcodec/dxva2_vc1.c     AVDXVAContext *ctx = DXVA_CONTEXT(avctx);
ctx               205 libavcodec/dxva2_vc1.c         if (FAILED(ID3D11VideoContext_GetDecoderBuffer(D3D11VA_CONTEXT(ctx)->video_context,
ctx               206 libavcodec/dxva2_vc1.c                                                        D3D11VA_CONTEXT(ctx)->decoder,
ctx               215 libavcodec/dxva2_vc1.c         if (FAILED(IDirectXVideoDecoder_GetBuffer(DXVA2_CONTEXT(ctx)->decoder,
ctx               268 libavcodec/dxva2_vc1.c         if (FAILED(ID3D11VideoContext_ReleaseDecoderBuffer(D3D11VA_CONTEXT(ctx)->video_context, D3D11VA_CONTEXT(ctx)->decoder, type)))
ctx               273 libavcodec/dxva2_vc1.c         if (FAILED(IDirectXVideoDecoder_ReleaseBuffer(DXVA2_CONTEXT(ctx)->decoder, type)))
ctx               302 libavcodec/dxva2_vc1.c     return ff_dxva2_commit_buffer(avctx, ctx, sc,
ctx               314 libavcodec/dxva2_vc1.c     AVDXVAContext *ctx = DXVA_CONTEXT(avctx);
ctx               317 libavcodec/dxva2_vc1.c     if (!DXVA_CONTEXT_VALID(avctx, ctx))
ctx               321 libavcodec/dxva2_vc1.c     fill_picture_parameters(avctx, ctx, v, &ctx_pic->pp);
ctx                43 libavcodec/dxva2_vp9.c static int fill_picture_parameters(const AVCodecContext *avctx, AVDXVAContext *ctx, const VP9SharedContext *h,
ctx                54 libavcodec/dxva2_vp9.c     fill_picture_entry(&pp->CurrPic, ff_dxva2_get_surface_index(avctx, ctx, h->frames[CUR_FRAME].tf.f), 0);
ctx                81 libavcodec/dxva2_vp9.c             fill_picture_entry(&pp->ref_frame_map[i], ff_dxva2_get_surface_index(avctx, ctx, h->refs[i].f), 0);
ctx                91 libavcodec/dxva2_vp9.c             fill_picture_entry(&pp->frame_refs[i], ff_dxva2_get_surface_index(avctx, ctx, h->refs[refidx].f), 0);
ctx               151 libavcodec/dxva2_vp9.c     pp->StatusReportFeedbackNumber = 1 + DXVA_CONTEXT_REPORT_ID(avctx, ctx)++;
ctx               169 libavcodec/dxva2_vp9.c     AVDXVAContext *ctx = DXVA_CONTEXT(avctx);
ctx               180 libavcodec/dxva2_vp9.c         if (FAILED(ID3D11VideoContext_GetDecoderBuffer(D3D11VA_CONTEXT(ctx)->video_context,
ctx               181 libavcodec/dxva2_vp9.c                                                        D3D11VA_CONTEXT(ctx)->decoder,
ctx               190 libavcodec/dxva2_vp9.c         if (FAILED(IDirectXVideoDecoder_GetBuffer(DXVA2_CONTEXT(ctx)->decoder,
ctx               214 libavcodec/dxva2_vp9.c         if (FAILED(ID3D11VideoContext_ReleaseDecoderBuffer(D3D11VA_CONTEXT(ctx)->video_context, D3D11VA_CONTEXT(ctx)->decoder, type)))
ctx               219 libavcodec/dxva2_vp9.c         if (FAILED(IDirectXVideoDecoder_ReleaseBuffer(DXVA2_CONTEXT(ctx)->decoder, type)))
ctx               246 libavcodec/dxva2_vp9.c     return ff_dxva2_commit_buffer(avctx, ctx, sc,
ctx               257 libavcodec/dxva2_vp9.c     AVDXVAContext *ctx = DXVA_CONTEXT(avctx);
ctx               260 libavcodec/dxva2_vp9.c     if (!DXVA_CONTEXT_VALID(avctx, ctx))
ctx               265 libavcodec/dxva2_vp9.c     if (fill_picture_parameters(avctx, ctx, h, &ctx_pic->pp) < 0)
ctx                26 libavcodec/eac3_core_bsf.c static int eac3_core_filter(AVBSFContext *ctx, AVPacket *pkt)
ctx                32 libavcodec/eac3_core_bsf.c     ret = ff_bsf_get_packet_ref(ctx, pkt);
ctx               247 libavcodec/elsdec.c void ff_els_decoder_init(ElsDecCtx *ctx, const uint8_t *in, size_t data_size)
ctx               253 libavcodec/elsdec.c         ctx->x = AV_RB24(in);
ctx               256 libavcodec/elsdec.c         ctx->x = AV_RB16(in);
ctx               259 libavcodec/elsdec.c         ctx->x = *in;
ctx               263 libavcodec/elsdec.c     ctx->in_buf    = in + nbytes;
ctx               264 libavcodec/elsdec.c     ctx->data_size = data_size - nbytes;
ctx               265 libavcodec/elsdec.c     ctx->err       = 0;
ctx               266 libavcodec/elsdec.c     ctx->j         = ELS_JOTS_PER_BYTE;
ctx               267 libavcodec/elsdec.c     ctx->t         = ELS_MAX;
ctx               268 libavcodec/elsdec.c     ctx->diff      = FFMIN(ELS_MAX - ctx->x,
ctx               277 libavcodec/elsdec.c static int els_import_byte(ElsDecCtx *ctx)
ctx               279 libavcodec/elsdec.c     if (!ctx->data_size) {
ctx               280 libavcodec/elsdec.c         ctx->err = AVERROR_EOF;
ctx               283 libavcodec/elsdec.c     ctx->x   = (ctx->x << 8) | *ctx->in_buf++;
ctx               284 libavcodec/elsdec.c     ctx->data_size--;
ctx               285 libavcodec/elsdec.c     ctx->j  += ELS_JOTS_PER_BYTE;
ctx               286 libavcodec/elsdec.c     ctx->t <<= 8;
ctx               291 libavcodec/elsdec.c int ff_els_decode_bit(ElsDecCtx *ctx, uint8_t *rung)
ctx               296 libavcodec/elsdec.c     if (ctx->err)
ctx               299 libavcodec/elsdec.c     z          = pAllowable[ctx->j + Ladder[*rung].ALps];
ctx               300 libavcodec/elsdec.c     ctx->t    -= z;
ctx               301 libavcodec/elsdec.c     ctx->diff -= z;
ctx               302 libavcodec/elsdec.c     if (ctx->diff > 0)
ctx               305 libavcodec/elsdec.c     if (ctx->t > ctx->x) {  /* decode most probable symbol (MPS) */
ctx               306 libavcodec/elsdec.c         ctx->j += Ladder[*rung].AMps;
ctx               307 libavcodec/elsdec.c         while (ctx->t > pAllowable[ctx->j])
ctx               308 libavcodec/elsdec.c             ctx->j++;
ctx               310 libavcodec/elsdec.c         if (ctx->j <= 0) { /* MPS: import one byte from bytestream. */
ctx               311 libavcodec/elsdec.c             ret = els_import_byte(ctx);
ctx               316 libavcodec/elsdec.c         z     = ctx->t;
ctx               320 libavcodec/elsdec.c         ctx->x -= ctx->t;
ctx               321 libavcodec/elsdec.c         ctx->t  = z;
ctx               323 libavcodec/elsdec.c         ctx->j += Ladder[*rung].ALps;
ctx               324 libavcodec/elsdec.c         if (ctx->j <= 0) {
ctx               327 libavcodec/elsdec.c             ret = els_import_byte(ctx);
ctx               330 libavcodec/elsdec.c             if (ctx->j <= 0) {
ctx               333 libavcodec/elsdec.c                 ret = els_import_byte(ctx);
ctx               336 libavcodec/elsdec.c                 while (pAllowable[ctx->j - 1] >= z)
ctx               337 libavcodec/elsdec.c                     ctx->j--;
ctx               345 libavcodec/elsdec.c     ctx->diff = FFMIN(z - ctx->x, z - pAllowable[ctx->j - 1]);
ctx               350 libavcodec/elsdec.c unsigned ff_els_decode_unsigned(ElsDecCtx *ctx, ElsUnsignedRung *ur)
ctx               355 libavcodec/elsdec.c     if (ctx->err)
ctx               360 libavcodec/elsdec.c         if (ff_els_decode_bit(ctx, &ur->prefix_rung[n]))
ctx               364 libavcodec/elsdec.c     if (ctx->err || n >= ELS_EXPGOLOMB_LEN) {
ctx               365 libavcodec/elsdec.c         ctx->err = AVERROR_INVALIDDATA;
ctx               377 libavcodec/elsdec.c             ctx->err = AVERROR(ENOMEM);
ctx               394 libavcodec/elsdec.c                     ctx->err = av_reallocp(&ur->rem_rung_list,
ctx               397 libavcodec/elsdec.c                     if (ctx->err < 0) {
ctx               412 libavcodec/elsdec.c         bit = ff_els_decode_bit(ctx, &rung_node->rung);
ctx               413 libavcodec/elsdec.c         if (ctx->err)
ctx                55 libavcodec/elsdec.h void ff_els_decoder_init(ElsDecCtx *ctx, const uint8_t *in, size_t data_size);
ctx                57 libavcodec/elsdec.h int  ff_els_decode_bit(ElsDecCtx *ctx, unsigned char *rung);
ctx                58 libavcodec/elsdec.h unsigned ff_els_decode_unsigned(ElsDecCtx *ctx, ElsUnsignedRung *ur);
ctx               244 libavcodec/exr.c static int rle_uncompress(EXRContext *ctx, const uint8_t *src, int compressed_size,
ctx               285 libavcodec/exr.c     ctx->dsp.predictor(td->tmp, uncompressed_size);
ctx               286 libavcodec/exr.c     ctx->dsp.reorder_pixels(td->uncompressed_data, td->tmp, uncompressed_size);
ctx                39 libavcodec/extract_extradata_bsf.c     int (*extract)(AVBSFContext *ctx, AVPacket *pkt,
ctx                61 libavcodec/extract_extradata_bsf.c static int extract_extradata_av1(AVBSFContext *ctx, AVPacket *pkt,
ctx                67 libavcodec/extract_extradata_bsf.c     ExtractExtradataContext *s = ctx->priv_data;
ctx                73 libavcodec/extract_extradata_bsf.c     ret = ff_av1_packet_split(&s->av1_pkt, pkt->data, pkt->size, ctx);
ctx               136 libavcodec/extract_extradata_bsf.c static int extract_extradata_h2645(AVBSFContext *ctx, AVPacket *pkt,
ctx               146 libavcodec/extract_extradata_bsf.c     ExtractExtradataContext *s = ctx->priv_data;
ctx               153 libavcodec/extract_extradata_bsf.c     if (ctx->par_in->codec_id == AV_CODEC_ID_HEVC) {
ctx               162 libavcodec/extract_extradata_bsf.c                                 ctx, 0, 0, ctx->par_in->codec_id, 1, 0);
ctx               170 libavcodec/extract_extradata_bsf.c             if (ctx->par_in->codec_id == AV_CODEC_ID_HEVC) {
ctx               182 libavcodec/extract_extradata_bsf.c         ((ctx->par_in->codec_id == AV_CODEC_ID_HEVC && has_sps && has_vps) ||
ctx               183 libavcodec/extract_extradata_bsf.c          (ctx->par_in->codec_id == AV_CODEC_ID_H264 && has_sps))) {
ctx               233 libavcodec/extract_extradata_bsf.c static int extract_extradata_vc1(AVBSFContext *ctx, AVPacket *pkt,
ctx               236 libavcodec/extract_extradata_bsf.c     ExtractExtradataContext *s = ctx->priv_data;
ctx               269 libavcodec/extract_extradata_bsf.c static int extract_extradata_mpeg12(AVBSFContext *ctx, AVPacket *pkt,
ctx               272 libavcodec/extract_extradata_bsf.c     ExtractExtradataContext *s = ctx->priv_data;
ctx               301 libavcodec/extract_extradata_bsf.c static int extract_extradata_mpeg4(AVBSFContext *ctx, AVPacket *pkt,
ctx               304 libavcodec/extract_extradata_bsf.c     ExtractExtradataContext *s = ctx->priv_data;
ctx               333 libavcodec/extract_extradata_bsf.c     int (*extract)(AVBSFContext *ctx, AVPacket *pkt,
ctx               347 libavcodec/extract_extradata_bsf.c static int extract_extradata_init(AVBSFContext *ctx)
ctx               349 libavcodec/extract_extradata_bsf.c     ExtractExtradataContext *s = ctx->priv_data;
ctx               353 libavcodec/extract_extradata_bsf.c         if (extract_tab[i].id == ctx->par_in->codec_id) {
ctx               364 libavcodec/extract_extradata_bsf.c static int extract_extradata_filter(AVBSFContext *ctx, AVPacket *pkt)
ctx               366 libavcodec/extract_extradata_bsf.c     ExtractExtradataContext *s = ctx->priv_data;
ctx               371 libavcodec/extract_extradata_bsf.c     ret = ff_bsf_get_packet_ref(ctx, pkt);
ctx               375 libavcodec/extract_extradata_bsf.c     ret = s->extract(ctx, pkt, &extradata, &extradata_size);
ctx               395 libavcodec/extract_extradata_bsf.c static void extract_extradata_close(AVBSFContext *ctx)
ctx               397 libavcodec/extract_extradata_bsf.c     ExtractExtradataContext *s = ctx->priv_data;
ctx               137 libavcodec/fic.c static int fic_decode_block(FICContext *ctx, GetBitContext *gb,
ctx               162 libavcodec/fic.c                                      ctx->qmat[ff_zigzag_direct[i]];
ctx               172 libavcodec/fic.c     FICContext *ctx        = avctx->priv_data;
ctx               186 libavcodec/fic.c         int stride   = ctx->frame->linesize[p];
ctx               187 libavcodec/fic.c         uint8_t* dst = ctx->frame->data[p] + (y_off >> !!p) * stride;
ctx               190 libavcodec/fic.c             for (x = 0; x < (ctx->aligned_width >> !!p); x += 8) {
ctx               193 libavcodec/fic.c                 if ((ret = fic_decode_block(ctx, &gb, dst + x, stride,
ctx               216 libavcodec/fic.c     FICContext *ctx = avctx->priv_data;
ctx               217 libavcodec/fic.c     uint8_t *ptr    = ctx->cursor_buf;
ctx               244 libavcodec/fic.c         dstptr[i] = ctx->final_frame->data[i]                        +
ctx               245 libavcodec/fic.c                     (ctx->final_frame->linesize[i] * (cur_y >> !!i)) +
ctx               255 libavcodec/fic.c         fic_alpha_blend(dstptr[0] + ctx->final_frame->linesize[0],
ctx               262 libavcodec/fic.c         dstptr[0] += ctx->final_frame->linesize[0] * 2;
ctx               263 libavcodec/fic.c         dstptr[1] += ctx->final_frame->linesize[1];
ctx               264 libavcodec/fic.c         dstptr[2] += ctx->final_frame->linesize[2];
ctx               271 libavcodec/fic.c     FICContext *ctx = avctx->priv_data;
ctx               278 libavcodec/fic.c     int skip_cursor = ctx->skip_cursor;
ctx               281 libavcodec/fic.c     if ((ret = ff_reget_buffer(avctx, ctx->frame, 0)) < 0)
ctx               296 libavcodec/fic.c         if (!ctx->final_frame) {
ctx               310 libavcodec/fic.c     ctx->qmat = src[23] ? fic_qmat_hq : fic_qmat_lq;
ctx               346 libavcodec/fic.c     if (!skip_cursor && avpkt->size < CURSOR_OFFSET + sizeof(ctx->cursor_buf)) {
ctx               351 libavcodec/fic.c     ctx->slice_h = 16 * (ctx->aligned_height >> 4) / nslices;
ctx               352 libavcodec/fic.c     if (ctx->slice_h % 16)
ctx               353 libavcodec/fic.c         ctx->slice_h = FFALIGN(ctx->slice_h - 16, 16);
ctx               359 libavcodec/fic.c     if (msize <= ctx->aligned_width/8 * (ctx->aligned_height/8) / 8) {
ctx               365 libavcodec/fic.c     av_fast_malloc(&ctx->slice_data, &ctx->slice_data_size,
ctx               366 libavcodec/fic.c                    nslices * sizeof(ctx->slice_data[0]));
ctx               367 libavcodec/fic.c     if (!ctx->slice_data_size) {
ctx               371 libavcodec/fic.c     memset(ctx->slice_data, 0, nslices * sizeof(ctx->slice_data[0]));
ctx               376 libavcodec/fic.c         int y_off   = ctx->slice_h * slice;
ctx               377 libavcodec/fic.c         int slice_h = ctx->slice_h;
ctx               385 libavcodec/fic.c             slice_h      = FFALIGN(avctx->height - ctx->slice_h * (nslices - 1), 16);
ctx               397 libavcodec/fic.c         ctx->slice_data[slice].src      = sdata + slice_off;
ctx               398 libavcodec/fic.c         ctx->slice_data[slice].src_size = slice_size;
ctx               399 libavcodec/fic.c         ctx->slice_data[slice].slice_h  = slice_h;
ctx               400 libavcodec/fic.c         ctx->slice_data[slice].y_off    = y_off;
ctx               403 libavcodec/fic.c     if ((ret = avctx->execute(avctx, fic_decode_slice, ctx->slice_data,
ctx               404 libavcodec/fic.c                               NULL, nslices, sizeof(ctx->slice_data[0]))) < 0)
ctx               407 libavcodec/fic.c     ctx->frame->key_frame = 1;
ctx               408 libavcodec/fic.c     ctx->frame->pict_type = AV_PICTURE_TYPE_I;
ctx               410 libavcodec/fic.c         if (ctx->slice_data[slice].p_frame) {
ctx               411 libavcodec/fic.c             ctx->frame->key_frame = 0;
ctx               412 libavcodec/fic.c             ctx->frame->pict_type = AV_PICTURE_TYPE_P;
ctx               416 libavcodec/fic.c     av_frame_free(&ctx->final_frame);
ctx               417 libavcodec/fic.c     ctx->final_frame = av_frame_clone(ctx->frame);
ctx               418 libavcodec/fic.c     if (!ctx->final_frame) {
ctx               424 libavcodec/fic.c     if ((ret = ff_reget_buffer(avctx, ctx->final_frame, 0)) < 0) {
ctx               431 libavcodec/fic.c         memcpy(ctx->cursor_buf, src + CURSOR_OFFSET, sizeof(ctx->cursor_buf));
ctx               437 libavcodec/fic.c     if ((ret = av_frame_ref(data, ctx->final_frame)) < 0)
ctx               445 libavcodec/fic.c     FICContext *ctx = avctx->priv_data;
ctx               447 libavcodec/fic.c     av_freep(&ctx->slice_data);
ctx               448 libavcodec/fic.c     av_frame_free(&ctx->final_frame);
ctx               449 libavcodec/fic.c     av_frame_free(&ctx->frame);
ctx               456 libavcodec/fic.c     FICContext *ctx = avctx->priv_data;
ctx               459 libavcodec/fic.c     ctx->avctx            = avctx;
ctx               460 libavcodec/fic.c     ctx->aligned_width    = FFALIGN(avctx->width,  16);
ctx               461 libavcodec/fic.c     ctx->aligned_height   = FFALIGN(avctx->height, 16);
ctx               466 libavcodec/fic.c     ctx->frame = av_frame_alloc();
ctx               467 libavcodec/fic.c     if (!ctx->frame)
ctx               104 libavcodec/filter_units_bsf.c     FilterUnitsContext      *ctx = bsf->priv_data;
ctx               105 libavcodec/filter_units_bsf.c     CodedBitstreamFragment *frag = &ctx->fragment;
ctx               112 libavcodec/filter_units_bsf.c     if (ctx->mode == NOOP)
ctx               115 libavcodec/filter_units_bsf.c     err = ff_cbs_read_packet(ctx->cbc, frag, pkt);
ctx               122 libavcodec/filter_units_bsf.c         for (j = 0; j < ctx->nb_types; j++) {
ctx               123 libavcodec/filter_units_bsf.c             if (frag->units[i].type == ctx->type_list[j])
ctx               126 libavcodec/filter_units_bsf.c         if (ctx->mode == REMOVE ? j <  ctx->nb_types
ctx               127 libavcodec/filter_units_bsf.c                                 : j >= ctx->nb_types)
ctx               128 libavcodec/filter_units_bsf.c             ff_cbs_delete_unit(ctx->cbc, frag, i);
ctx               137 libavcodec/filter_units_bsf.c     err = ff_cbs_write_packet(ctx->cbc, pkt, frag);
ctx               146 libavcodec/filter_units_bsf.c     ff_cbs_fragment_reset(ctx->cbc, frag);
ctx               153 libavcodec/filter_units_bsf.c     FilterUnitsContext *ctx = bsf->priv_data;
ctx               156 libavcodec/filter_units_bsf.c     if (ctx->pass_types && ctx->remove_types) {
ctx               162 libavcodec/filter_units_bsf.c     if (ctx->pass_types) {
ctx               163 libavcodec/filter_units_bsf.c         ctx->mode = PASS;
ctx               164 libavcodec/filter_units_bsf.c         err = filter_units_make_type_list(ctx->pass_types,
ctx               165 libavcodec/filter_units_bsf.c                                           &ctx->type_list, &ctx->nb_types);
ctx               170 libavcodec/filter_units_bsf.c     } else if (ctx->remove_types) {
ctx               171 libavcodec/filter_units_bsf.c         ctx->mode = REMOVE;
ctx               172 libavcodec/filter_units_bsf.c         err = filter_units_make_type_list(ctx->remove_types,
ctx               173 libavcodec/filter_units_bsf.c                                           &ctx->type_list, &ctx->nb_types);
ctx               182 libavcodec/filter_units_bsf.c     err = ff_cbs_init(&ctx->cbc, bsf->par_in->codec_id, bsf);
ctx               187 libavcodec/filter_units_bsf.c     ctx->cbc->decompose_unit_types    = ctx->type_list;
ctx               188 libavcodec/filter_units_bsf.c     ctx->cbc->nb_decompose_unit_types = 0;
ctx               191 libavcodec/filter_units_bsf.c         CodedBitstreamFragment *frag = &ctx->fragment;
ctx               193 libavcodec/filter_units_bsf.c         err = ff_cbs_read_extradata(ctx->cbc, frag, bsf->par_in);
ctx               197 libavcodec/filter_units_bsf.c             err = ff_cbs_write_extradata(ctx->cbc, bsf->par_out, frag);
ctx               202 libavcodec/filter_units_bsf.c         ff_cbs_fragment_reset(ctx->cbc, frag);
ctx               210 libavcodec/filter_units_bsf.c     FilterUnitsContext *ctx = bsf->priv_data;
ctx               212 libavcodec/filter_units_bsf.c     av_freep(&ctx->type_list);
ctx               214 libavcodec/filter_units_bsf.c     ff_cbs_fragment_free(ctx->cbc, &ctx->fragment);
ctx               215 libavcodec/filter_units_bsf.c     ff_cbs_close(&ctx->cbc);
ctx               211 libavcodec/g2meet.c static av_cold void jpg_free_context(JPGContext *ctx)
ctx               216 libavcodec/g2meet.c         ff_free_vlc(&ctx->dc_vlc[i]);
ctx               217 libavcodec/g2meet.c         ff_free_vlc(&ctx->ac_vlc[i]);
ctx               220 libavcodec/g2meet.c     av_freep(&ctx->buf);
ctx               352 libavcodec/g729dec.c     G729ChannelContext *ctx;
ctx               364 libavcodec/g729dec.c     ctx =
ctx               366 libavcodec/g729dec.c     if (!ctx)
ctx               370 libavcodec/g729dec.c         ctx->gain_coeff = 16384; // 1.0 in (1.14)
ctx               373 libavcodec/g729dec.c             ctx->past_quantizer_outputs[k] = ctx->past_quantizer_output_buf[k];
ctx               375 libavcodec/g729dec.c                 ctx->past_quantizer_outputs[k][i - 1] = (18717 * i) >> 3;
ctx               378 libavcodec/g729dec.c         ctx->lsp[0] = ctx->lsp_buf[0];
ctx               379 libavcodec/g729dec.c         ctx->lsp[1] = ctx->lsp_buf[1];
ctx               380 libavcodec/g729dec.c         memcpy(ctx->lsp[0], lsp_init, 10 * sizeof(int16_t));
ctx               382 libavcodec/g729dec.c         ctx->exc = &ctx->exc_base[PITCH_DELAY_MAX+INTERPOL_LEN];
ctx               384 libavcodec/g729dec.c         ctx->pitch_delay_int_prev = PITCH_DELAY_MIN;
ctx               387 libavcodec/g729dec.c         ctx->rand_value = 21845;
ctx               391 libavcodec/g729dec.c             ctx->quant_energy[i] = -14336; // -14 in (5.10)
ctx               393 libavcodec/g729dec.c         ctx++;
ctx               414 libavcodec/g729dec.c     G729ChannelContext *ctx = s->channel_context;
ctx               437 libavcodec/g729dec.c         ctx->onset = 0;
ctx               438 libavcodec/g729dec.c         ctx->voice_decision = DECISION_VOICE;
ctx               472 libavcodec/g729dec.c             lsf_restore_from_previous(ctx->lsfq, ctx->past_quantizer_outputs,
ctx               473 libavcodec/g729dec.c                                       ctx->ma_predictor_prev);
ctx               475 libavcodec/g729dec.c             lsf_decode(ctx->lsfq, ctx->past_quantizer_outputs,
ctx               478 libavcodec/g729dec.c             ctx->ma_predictor_prev = ma_predictor;
ctx               481 libavcodec/g729dec.c         tmp = ctx->past_quantizer_outputs[MA_NP];
ctx               482 libavcodec/g729dec.c         memmove(ctx->past_quantizer_outputs + 1, ctx->past_quantizer_outputs,
ctx               484 libavcodec/g729dec.c         ctx->past_quantizer_outputs[0] = tmp;
ctx               486 libavcodec/g729dec.c         ff_acelp_lsf2lsp(ctx->lsp[1], ctx->lsfq, 10);
ctx               488 libavcodec/g729dec.c         ff_acelp_lp_decode(&lp[0][0], &lp[1][0], ctx->lsp[1], ctx->lsp[0], 10);
ctx               490 libavcodec/g729dec.c         FFSWAP(int16_t*, ctx->lsp[1], ctx->lsp[0]);
ctx               510 libavcodec/g729dec.c                 pitch_delay_3x = 3 * ctx->pitch_delay_int_prev;
ctx               513 libavcodec/g729dec.c                     pitch_delay_3x = 3 * ctx->pitch_delay_int_prev;
ctx               518 libavcodec/g729dec.c                 int pitch_delay_min = av_clip(ctx->pitch_delay_int_prev - 5,
ctx               536 libavcodec/g729dec.c                 ctx->rand_value = g729_prng(ctx->rand_value);
ctx               537 libavcodec/g729dec.c                 fc_indexes   = av_mod_uintp2(ctx->rand_value, format->fc_indexes_bits);
ctx               539 libavcodec/g729dec.c                 ctx->rand_value = g729_prng(ctx->rand_value);
ctx               540 libavcodec/g729dec.c                 pulses_signs = ctx->rand_value;
ctx               570 libavcodec/g729dec.c                                              av_clip(ctx->past_gain_pitch[0], SHARP_MIN, SHARP_MAX),
ctx               574 libavcodec/g729dec.c             memmove(ctx->past_gain_pitch+1, ctx->past_gain_pitch, 5 * sizeof(int16_t));
ctx               575 libavcodec/g729dec.c             ctx->past_gain_code[1] = ctx->past_gain_code[0];
ctx               578 libavcodec/g729dec.c                 ctx->past_gain_pitch[0] = (29491 * ctx->past_gain_pitch[0]) >> 15; // 0.90 (0.15)
ctx               579 libavcodec/g729dec.c                 ctx->past_gain_code[0]  = ( 2007 * ctx->past_gain_code[0] ) >> 11; // 0.98 (0.11)
ctx               584 libavcodec/g729dec.c                     ctx->past_gain_pitch[0]  = cb_gain_1st_6k4[gc_1st_index][0] +
ctx               597 libavcodec/g729dec.c                     ctx->past_gain_pitch[0]  = cb_gain_1st_8k[gc_1st_index][0] +
ctx               604 libavcodec/g729dec.c                 ctx->past_gain_code[0] = ff_acelp_decode_gain_code(&s->adsp, gain_corr_factor,
ctx               606 libavcodec/g729dec.c                                                                    ctx->quant_energy,
ctx               621 libavcodec/g729dec.c                     ctx->past_gain_code[0] >>= 1;
ctx               625 libavcodec/g729dec.c             ff_acelp_update_past_gain(ctx->quant_energy, gain_corr_factor, 2, frame_erasure);
ctx               628 libavcodec/g729dec.c             ff_acelp_interpolate(ctx->exc + i * SUBFRAME_SIZE,
ctx               629 libavcodec/g729dec.c                                  ctx->exc + i * SUBFRAME_SIZE - pitch_delay_3x / 3,
ctx               634 libavcodec/g729dec.c             ff_acelp_weighted_vector_sum(ctx->exc + i * SUBFRAME_SIZE,
ctx               635 libavcodec/g729dec.c                                          ctx->exc + i * SUBFRAME_SIZE, fc,
ctx               636 libavcodec/g729dec.c                                          (!ctx->was_periodic && frame_erasure) ? 0 : ctx->past_gain_pitch[0],
ctx               637 libavcodec/g729dec.c                                          ( ctx->was_periodic && frame_erasure) ? 0 : ctx->past_gain_code[0],
ctx               640 libavcodec/g729dec.c             memcpy(synth, ctx->syn_filter_data, 10 * sizeof(int16_t));
ctx               645 libavcodec/g729dec.c                 ctx->exc  + i * SUBFRAME_SIZE,
ctx               653 libavcodec/g729dec.c                     ctx->exc_base[j] >>= 2;
ctx               659 libavcodec/g729dec.c                 ctx->onset = g729d_onset_decision(ctx->onset, ctx->past_gain_code);
ctx               660 libavcodec/g729dec.c                 ctx->voice_decision = g729d_voice_decision(ctx->onset, ctx->voice_decision, ctx->past_gain_pitch);
ctx               662 libavcodec/g729dec.c                 g729d_get_new_exc(exc_new, ctx->exc  + i * SUBFRAME_SIZE, fc, ctx->voice_decision, ctx->past_gain_code[0], SUBFRAME_SIZE);
ctx               677 libavcodec/g729dec.c                         ctx->exc  + i * SUBFRAME_SIZE,
ctx               685 libavcodec/g729dec.c             memcpy(ctx->syn_filter_data, synth+SUBFRAME_SIZE, 10 * sizeof(int16_t));
ctx               695 libavcodec/g729dec.c                     &ctx->ht_prev_data,
ctx               699 libavcodec/g729dec.c                     ctx->residual,
ctx               700 libavcodec/g729dec.c                     ctx->res_filter_data,
ctx               701 libavcodec/g729dec.c                     ctx->pos_filter_data,
ctx               710 libavcodec/g729dec.c             ctx->gain_coeff = ff_g729_adaptive_gain_control(
ctx               715 libavcodec/g729dec.c                     ctx->gain_coeff);
ctx               718 libavcodec/g729dec.c                 ctx->pitch_delay_int_prev = FFMIN(ctx->pitch_delay_int_prev + 1, PITCH_DELAY_MAX);
ctx               720 libavcodec/g729dec.c                 ctx->pitch_delay_int_prev = pitch_delay_int[i];
ctx               723 libavcodec/g729dec.c             memcpy(synth+8, ctx->hpf_z, 2*sizeof(int16_t));
ctx               726 libavcodec/g729dec.c                     ctx->hpf_f,
ctx               729 libavcodec/g729dec.c             memcpy(ctx->hpf_z, synth+8+SUBFRAME_SIZE, 2*sizeof(int16_t));
ctx               732 libavcodec/g729dec.c         ctx->was_periodic = is_periodic;
ctx               735 libavcodec/g729dec.c         memmove(ctx->exc_base, ctx->exc_base + 2 * SUBFRAME_SIZE, (PITCH_DELAY_MAX+INTERPOL_LEN)*sizeof(int16_t));
ctx               738 libavcodec/g729dec.c         ctx++;
ctx                83 libavcodec/gsmdec_template.c static void short_term_synth(GSMContext *ctx, int16_t *dst, const int16_t *src)
ctx                87 libavcodec/gsmdec_template.c     int *lar = ctx->lar[ctx->lar_idx];
ctx                88 libavcodec/gsmdec_template.c     int *lar_prev = ctx->lar[ctx->lar_idx ^ 1];
ctx                92 libavcodec/gsmdec_template.c         dst[i] = filter_value(src[i], rrp, ctx->v);
ctx                97 libavcodec/gsmdec_template.c         dst[i] = filter_value(src[i], rrp, ctx->v);
ctx               102 libavcodec/gsmdec_template.c         dst[i] = filter_value(src[i], rrp, ctx->v);
ctx               107 libavcodec/gsmdec_template.c         dst[i] = filter_value(src[i], rrp, ctx->v);
ctx               109 libavcodec/gsmdec_template.c     ctx->lar_idx ^= 1;
ctx               125 libavcodec/gsmdec_template.c     GSMContext *ctx = avctx->priv_data;
ctx               127 libavcodec/gsmdec_template.c     int16_t *ref_dst = ctx->ref_buf + 120;
ctx               128 libavcodec/gsmdec_template.c     int *lar = ctx->lar[ctx->lar_idx];
ctx               147 libavcodec/gsmdec_template.c     memcpy(ctx->ref_buf, ctx->ref_buf + 160, 120 * sizeof(*ctx->ref_buf));
ctx               148 libavcodec/gsmdec_template.c     short_term_synth(ctx, samples, ctx->ref_buf + 120);
ctx               151 libavcodec/gsmdec_template.c     ctx->msr = postprocess(samples, ctx->msr);
ctx               117 libavcodec/h263dsp.c av_cold void ff_h263dsp_init(H263DSPContext *ctx)
ctx               119 libavcodec/h263dsp.c     ctx->h263_h_loop_filter = h263_h_loop_filter_c;
ctx               120 libavcodec/h263dsp.c     ctx->h263_v_loop_filter = h263_v_loop_filter_c;
ctx               123 libavcodec/h263dsp.c         ff_h263dsp_init_x86(ctx);
ctx               125 libavcodec/h263dsp.c         ff_h263dsp_init_mips(ctx);
ctx                31 libavcodec/h263dsp.h void ff_h263dsp_init(H263DSPContext *ctx);
ctx                32 libavcodec/h263dsp.h void ff_h263dsp_init_x86(H263DSPContext *ctx);
ctx                33 libavcodec/h263dsp.h void ff_h263dsp_init_mips(H263DSPContext *ctx);
ctx              1287 libavcodec/h264_cabac.c     unsigned long ctx = 0;
ctx              1289 libavcodec/h264_cabac.c     ctx += sl->mb_field_decoding_flag & !!sl->mb_x; //for FMO:(s->current_picture.mb_type[mba_xy] >> 7) & (h->slice_table[mba_xy] == h->slice_num);
ctx              1290 libavcodec/h264_cabac.c     ctx += (h->cur_pic.mb_type[mbb_xy] >> 7) & (h->slice_table[mbb_xy] == sl->slice_num);
ctx              1292 libavcodec/h264_cabac.c     return get_cabac_noinline( &sl->cabac, &(sl->cabac_state+70)[ctx] );
ctx              1302 libavcodec/h264_cabac.c         int ctx=0;
ctx              1304 libavcodec/h264_cabac.c             ctx++;
ctx              1306 libavcodec/h264_cabac.c             ctx++;
ctx              1307 libavcodec/h264_cabac.c         if( get_cabac_noinline( &sl->cabac, &state[ctx] ) == 0 )
ctx              1331 libavcodec/h264_cabac.c     int ctx = 0;
ctx              1355 libavcodec/h264_cabac.c         ctx++;
ctx              1357 libavcodec/h264_cabac.c         ctx++;
ctx              1360 libavcodec/h264_cabac.c         ctx += 13;
ctx              1361 libavcodec/h264_cabac.c     return get_cabac_noinline( &sl->cabac, &sl->cabac_state[11+ctx] );
ctx              1383 libavcodec/h264_cabac.c     int ctx = 0;
ctx              1387 libavcodec/h264_cabac.c         ctx++;
ctx              1390 libavcodec/h264_cabac.c         ctx++;
ctx              1392 libavcodec/h264_cabac.c     if( get_cabac_noinline( &sl->cabac, &sl->cabac_state[64+ctx] ) == 0 )
ctx              1405 libavcodec/h264_cabac.c     int cbp_b, cbp_a, ctx, cbp = 0;
ctx              1410 libavcodec/h264_cabac.c     ctx = !(cbp_a & 0x02) + 2 * !(cbp_b & 0x04);
ctx              1411 libavcodec/h264_cabac.c     cbp += get_cabac_noinline(&sl->cabac, &sl->cabac_state[73 + ctx]);
ctx              1412 libavcodec/h264_cabac.c     ctx = !(cbp   & 0x01) + 2 * !(cbp_b & 0x08);
ctx              1413 libavcodec/h264_cabac.c     cbp += get_cabac_noinline(&sl->cabac, &sl->cabac_state[73 + ctx]) << 1;
ctx              1414 libavcodec/h264_cabac.c     ctx = !(cbp_a & 0x08) + 2 * !(cbp   & 0x01);
ctx              1415 libavcodec/h264_cabac.c     cbp += get_cabac_noinline(&sl->cabac, &sl->cabac_state[73 + ctx]) << 2;
ctx              1416 libavcodec/h264_cabac.c     ctx = !(cbp   & 0x04) + 2 * !(cbp   & 0x02);
ctx              1417 libavcodec/h264_cabac.c     cbp += get_cabac_noinline(&sl->cabac, &sl->cabac_state[73 + ctx]) << 3;
ctx              1422 libavcodec/h264_cabac.c     int ctx;
ctx              1428 libavcodec/h264_cabac.c     ctx = 0;
ctx              1429 libavcodec/h264_cabac.c     if( cbp_a > 0 ) ctx++;
ctx              1430 libavcodec/h264_cabac.c     if( cbp_b > 0 ) ctx += 2;
ctx              1431 libavcodec/h264_cabac.c     if( get_cabac_noinline( &sl->cabac, &sl->cabac_state[77 + ctx] ) == 0 )
ctx              1434 libavcodec/h264_cabac.c     ctx = 4;
ctx              1435 libavcodec/h264_cabac.c     if( cbp_a == 2 ) ctx++;
ctx              1436 libavcodec/h264_cabac.c     if( cbp_b == 2 ) ctx += 2;
ctx              1437 libavcodec/h264_cabac.c     return 1 + get_cabac_noinline( &sl->cabac, &sl->cabac_state[77 + ctx] );
ctx              1473 libavcodec/h264_cabac.c     int ctx  = 0;
ctx              1477 libavcodec/h264_cabac.c             ctx++;
ctx              1479 libavcodec/h264_cabac.c             ctx += 2;
ctx              1482 libavcodec/h264_cabac.c             ctx++;
ctx              1484 libavcodec/h264_cabac.c             ctx += 2;
ctx              1487 libavcodec/h264_cabac.c     while( get_cabac( &sl->cabac, &sl->cabac_state[54+ctx] ) ) {
ctx              1489 libavcodec/h264_cabac.c         ctx = (ctx>>2)+4;
ctx              1554 libavcodec/h264_cabac.c     int ctx = 0;
ctx              1573 libavcodec/h264_cabac.c         ctx++;
ctx              1576 libavcodec/h264_cabac.c         ctx += 2;
ctx              1578 libavcodec/h264_cabac.c     return base_ctx[cat] + ctx;
ctx              1715 libavcodec/h264_cabac.c         uint8_t *ctx = coeff_abs_level1_ctx[node_ctx] + abs_level_m1_ctx_base; \
ctx              1719 libavcodec/h264_cabac.c         if( get_cabac( CC, ctx ) == 0 ) { \
ctx              1728 libavcodec/h264_cabac.c             ctx = coeff_abs_levelgt1_ctx[is_dc && chroma422][node_ctx] + abs_level_m1_ctx_base; \
ctx              1731 libavcodec/h264_cabac.c             while( coeff_abs < 15 && get_cabac( CC, ctx ) ) { \
ctx              1960 libavcodec/h264_cabac.c         int ctx = 0;
ctx              1964 libavcodec/h264_cabac.c             ctx++;
ctx              1966 libavcodec/h264_cabac.c             ctx++;
ctx              1968 libavcodec/h264_cabac.c         if( !get_cabac_noinline( &sl->cabac, &sl->cabac_state[27+ctx] ) ){
ctx              2392 libavcodec/h264_cabac.c             int ctx= 2;
ctx              2395 libavcodec/h264_cabac.c             while( get_cabac_noinline( &sl->cabac, &sl->cabac_state[60 + ctx] ) ) {
ctx              2396 libavcodec/h264_cabac.c                 ctx= 3;
ctx                94 libavcodec/h264_metadata_bsf.c     H264MetadataContext *ctx = bsf->priv_data;
ctx                98 libavcodec/h264_metadata_bsf.c     if (ctx->sample_aspect_ratio.num && ctx->sample_aspect_ratio.den) {
ctx               109 libavcodec/h264_metadata_bsf.c         av_reduce(&num, &den, ctx->sample_aspect_ratio.num,
ctx               110 libavcodec/h264_metadata_bsf.c                   ctx->sample_aspect_ratio.den, 65535);
ctx               129 libavcodec/h264_metadata_bsf.c         if (ctx->field >= 0) { \
ctx               130 libavcodec/h264_metadata_bsf.c             sps->vui.field = ctx->field; \
ctx               135 libavcodec/h264_metadata_bsf.c     if (ctx->overscan_appropriate_flag >= 0) {
ctx               140 libavcodec/h264_metadata_bsf.c     if (ctx->video_format             >= 0 ||
ctx               141 libavcodec/h264_metadata_bsf.c         ctx->video_full_range_flag    >= 0 ||
ctx               142 libavcodec/h264_metadata_bsf.c         ctx->colour_primaries         >= 0 ||
ctx               143 libavcodec/h264_metadata_bsf.c         ctx->transfer_characteristics >= 0 ||
ctx               144 libavcodec/h264_metadata_bsf.c         ctx->matrix_coefficients      >= 0) {
ctx               150 libavcodec/h264_metadata_bsf.c         if (ctx->colour_primaries         >= 0 ||
ctx               151 libavcodec/h264_metadata_bsf.c             ctx->transfer_characteristics >= 0 ||
ctx               152 libavcodec/h264_metadata_bsf.c             ctx->matrix_coefficients      >= 0) {
ctx               163 libavcodec/h264_metadata_bsf.c     if (ctx->chroma_sample_loc_type >= 0) {
ctx               165 libavcodec/h264_metadata_bsf.c             ctx->chroma_sample_loc_type;
ctx               167 libavcodec/h264_metadata_bsf.c             ctx->chroma_sample_loc_type;
ctx               172 libavcodec/h264_metadata_bsf.c     if (ctx->tick_rate.num && ctx->tick_rate.den) {
ctx               175 libavcodec/h264_metadata_bsf.c         av_reduce(&num, &den, ctx->tick_rate.num, ctx->tick_rate.den,
ctx               195 libavcodec/h264_metadata_bsf.c         if (ctx->crop_ ## border >= 0) { \
ctx               196 libavcodec/h264_metadata_bsf.c             if (ctx->crop_ ## border % unit != 0) { \
ctx               202 libavcodec/h264_metadata_bsf.c                   ctx->crop_ ## border / unit; \
ctx               212 libavcodec/h264_metadata_bsf.c     if (ctx->level != LEVEL_UNSET) {
ctx               215 libavcodec/h264_metadata_bsf.c         if (ctx->level == LEVEL_AUTO) {
ctx               256 libavcodec/h264_metadata_bsf.c             level_idc = ctx->level;
ctx               281 libavcodec/h264_metadata_bsf.c     H264MetadataContext *ctx = bsf->priv_data;
ctx               282 libavcodec/h264_metadata_bsf.c     CodedBitstreamFragment *au = &ctx->access_unit;
ctx               292 libavcodec/h264_metadata_bsf.c     err = ff_cbs_read(ctx->cbc, au, side_data, side_data_size);
ctx               306 libavcodec/h264_metadata_bsf.c     err = ff_cbs_write_fragment_data(ctx->cbc, au);
ctx               317 libavcodec/h264_metadata_bsf.c     ff_cbs_fragment_reset(ctx->cbc, au);
ctx               324 libavcodec/h264_metadata_bsf.c     H264MetadataContext *ctx = bsf->priv_data;
ctx               325 libavcodec/h264_metadata_bsf.c     CodedBitstreamFragment *au = &ctx->access_unit;
ctx               337 libavcodec/h264_metadata_bsf.c     err = ff_cbs_read_packet(ctx->cbc, au, pkt);
ctx               351 libavcodec/h264_metadata_bsf.c         if (ctx->aud == REMOVE)
ctx               352 libavcodec/h264_metadata_bsf.c             ff_cbs_delete_unit(ctx->cbc, au, 0);
ctx               354 libavcodec/h264_metadata_bsf.c         if (ctx->aud == INSERT) {
ctx               393 libavcodec/h264_metadata_bsf.c             err = ff_cbs_insert_unit_content(ctx->cbc, au,
ctx               414 libavcodec/h264_metadata_bsf.c     if (ctx->sei_user_data && (has_sps || !ctx->done_first_au)) {
ctx               421 libavcodec/h264_metadata_bsf.c         for (i = j = 0; j < 32 && ctx->sei_user_data[i]; i++) {
ctx               423 libavcodec/h264_metadata_bsf.c             c = ctx->sei_user_data[i];
ctx               438 libavcodec/h264_metadata_bsf.c         if (j == 32 && ctx->sei_user_data[i] == '+') {
ctx               439 libavcodec/h264_metadata_bsf.c             size_t len = strlen(ctx->sei_user_data + i + 1);
ctx               449 libavcodec/h264_metadata_bsf.c             memcpy(udu->data, ctx->sei_user_data + i + 1, len + 1);
ctx               451 libavcodec/h264_metadata_bsf.c             err = ff_cbs_h264_add_sei_message(ctx->cbc, au, &payload);
ctx               467 libavcodec/h264_metadata_bsf.c     if (ctx->delete_filler) {
ctx               470 libavcodec/h264_metadata_bsf.c                 ff_cbs_delete_unit(ctx->cbc, au, i);
ctx               481 libavcodec/h264_metadata_bsf.c                         ff_cbs_h264_delete_sei_message(ctx->cbc, au,
ctx               488 libavcodec/h264_metadata_bsf.c     if (ctx->display_orientation != PASS) {
ctx               504 libavcodec/h264_metadata_bsf.c                 if (ctx->display_orientation == REMOVE ||
ctx               505 libavcodec/h264_metadata_bsf.c                     ctx->display_orientation == INSERT) {
ctx               506 libavcodec/h264_metadata_bsf.c                     ff_cbs_h264_delete_sei_message(ctx->cbc, au,
ctx               537 libavcodec/h264_metadata_bsf.c     if (ctx->display_orientation == INSERT) {
ctx               580 libavcodec/h264_metadata_bsf.c         if (has_sps || !ctx->done_first_au) {
ctx               581 libavcodec/h264_metadata_bsf.c             if (!isnan(ctx->rotate)) {
ctx               583 libavcodec/h264_metadata_bsf.c                     (uint16_t)rint((ctx->rotate >= 0.0 ? ctx->rotate
ctx               584 libavcodec/h264_metadata_bsf.c                                                        : ctx->rotate + 360.0) *
ctx               588 libavcodec/h264_metadata_bsf.c             if (ctx->flip) {
ctx               589 libavcodec/h264_metadata_bsf.c                 disp->hor_flip = !!(ctx->flip & FLIP_HORIZONTAL);
ctx               590 libavcodec/h264_metadata_bsf.c                 disp->ver_flip = !!(ctx->flip & FLIP_VERTICAL);
ctx               598 libavcodec/h264_metadata_bsf.c             err = ff_cbs_h264_add_sei_message(ctx->cbc, au, &payload);
ctx               607 libavcodec/h264_metadata_bsf.c     err = ff_cbs_write_packet(ctx->cbc, pkt, au);
ctx               613 libavcodec/h264_metadata_bsf.c     ctx->done_first_au = 1;
ctx               617 libavcodec/h264_metadata_bsf.c     ff_cbs_fragment_reset(ctx->cbc, au);
ctx               627 libavcodec/h264_metadata_bsf.c     H264MetadataContext *ctx = bsf->priv_data;
ctx               628 libavcodec/h264_metadata_bsf.c     CodedBitstreamFragment *au = &ctx->access_unit;
ctx               631 libavcodec/h264_metadata_bsf.c     err = ff_cbs_init(&ctx->cbc, AV_CODEC_ID_H264, bsf);
ctx               636 libavcodec/h264_metadata_bsf.c         err = ff_cbs_read_extradata(ctx->cbc, au, bsf->par_in);
ctx               650 libavcodec/h264_metadata_bsf.c         err = ff_cbs_write_extradata(ctx->cbc, bsf->par_out, au);
ctx               659 libavcodec/h264_metadata_bsf.c     ff_cbs_fragment_reset(ctx->cbc, au);
ctx               665 libavcodec/h264_metadata_bsf.c     H264MetadataContext *ctx = bsf->priv_data;
ctx               667 libavcodec/h264_metadata_bsf.c     ff_cbs_fragment_free(ctx->cbc, &ctx->access_unit);
ctx               668 libavcodec/h264_metadata_bsf.c     ff_cbs_close(&ctx->cbc);
ctx                65 libavcodec/h264_mp4toannexb_bsf.c static int h264_extradata_to_annexb(AVBSFContext *ctx, const int padding)
ctx                67 libavcodec/h264_mp4toannexb_bsf.c     H264BSFContext *s = ctx->priv_data;
ctx                75 libavcodec/h264_mp4toannexb_bsf.c     bytestream2_init(gb, ctx->par_in->extradata, ctx->par_in->extradata_size);
ctx                96 libavcodec/h264_mp4toannexb_bsf.c             av_log(ctx, AV_LOG_ERROR, "Global extradata truncated, "
ctx               119 libavcodec/h264_mp4toannexb_bsf.c         av_log(ctx, AV_LOG_WARNING,
ctx               127 libavcodec/h264_mp4toannexb_bsf.c         av_log(ctx, AV_LOG_WARNING,
ctx               132 libavcodec/h264_mp4toannexb_bsf.c     av_freep(&ctx->par_out->extradata);
ctx               133 libavcodec/h264_mp4toannexb_bsf.c     ctx->par_out->extradata      = out;
ctx               134 libavcodec/h264_mp4toannexb_bsf.c     ctx->par_out->extradata_size = total_size;
ctx               139 libavcodec/h264_mp4toannexb_bsf.c static int h264_mp4toannexb_init(AVBSFContext *ctx)
ctx               141 libavcodec/h264_mp4toannexb_bsf.c     H264BSFContext *s = ctx->priv_data;
ctx               142 libavcodec/h264_mp4toannexb_bsf.c     int extra_size = ctx->par_in->extradata_size;
ctx               147 libavcodec/h264_mp4toannexb_bsf.c         (extra_size >= 3 && AV_RB24(ctx->par_in->extradata) == 1) ||
ctx               148 libavcodec/h264_mp4toannexb_bsf.c         (extra_size >= 4 && AV_RB32(ctx->par_in->extradata) == 1)) {
ctx               149 libavcodec/h264_mp4toannexb_bsf.c         av_log(ctx, AV_LOG_VERBOSE,
ctx               152 libavcodec/h264_mp4toannexb_bsf.c         ret = h264_extradata_to_annexb(ctx, AV_INPUT_BUFFER_PADDING_SIZE);
ctx               162 libavcodec/h264_mp4toannexb_bsf.c         av_log(ctx, AV_LOG_ERROR, "Invalid extradata size: %d\n", extra_size);
ctx               169 libavcodec/h264_mp4toannexb_bsf.c static int h264_mp4toannexb_filter(AVBSFContext *ctx, AVPacket *opkt)
ctx               171 libavcodec/h264_mp4toannexb_bsf.c     H264BSFContext *s = ctx->priv_data;
ctx               180 libavcodec/h264_mp4toannexb_bsf.c     ret = ff_bsf_get_packet(ctx, &in);
ctx               231 libavcodec/h264_mp4toannexb_bsf.c                         LOG_ONCE(ctx, AV_LOG_WARNING, "SPS not present in the stream, nor in AVCC, stream may be unreadable\n");
ctx               247 libavcodec/h264_mp4toannexb_bsf.c                 if (ctx->par_out->extradata)
ctx               248 libavcodec/h264_mp4toannexb_bsf.c                     count_or_copy(&out, &out_size, ctx->par_out->extradata,
ctx               249 libavcodec/h264_mp4toannexb_bsf.c                                   ctx->par_out->extradata_size, -1, j);
ctx               254 libavcodec/h264_mp4toannexb_bsf.c                     LOG_ONCE(ctx, AV_LOG_WARNING, "PPS not present in the stream, nor in AVCC, stream may be unreadable\n");
ctx               302 libavcodec/h264_mp4toannexb_bsf.c static void h264_mp4toannexb_flush(AVBSFContext *ctx)
ctx               304 libavcodec/h264_mp4toannexb_bsf.c     H264BSFContext *s = ctx->priv_data;
ctx                43 libavcodec/h264_redundant_pps_bsf.c static int h264_redundant_pps_fixup_pps(H264RedundantPPSContext *ctx,
ctx                48 libavcodec/h264_redundant_pps_bsf.c     ctx->current_pic_init_qp = pps->pic_init_qp_minus26 + 26;
ctx                49 libavcodec/h264_redundant_pps_bsf.c     pps->pic_init_qp_minus26 = ctx->global_pic_init_qp - 26;
ctx                59 libavcodec/h264_redundant_pps_bsf.c static int h264_redundant_pps_fixup_slice(H264RedundantPPSContext *ctx,
ctx                64 libavcodec/h264_redundant_pps_bsf.c     qp = ctx->current_pic_init_qp + slice->slice_qp_delta;
ctx                65 libavcodec/h264_redundant_pps_bsf.c     slice->slice_qp_delta = qp - ctx->global_pic_init_qp;
ctx                72 libavcodec/h264_redundant_pps_bsf.c     H264RedundantPPSContext *ctx = bsf->priv_data;
ctx                73 libavcodec/h264_redundant_pps_bsf.c     CodedBitstreamFragment *au = &ctx->access_unit;
ctx                81 libavcodec/h264_redundant_pps_bsf.c     err = ff_cbs_read_packet(ctx->input, au, pkt);
ctx                92 libavcodec/h264_redundant_pps_bsf.c             err = h264_redundant_pps_fixup_pps(ctx, nal->content);
ctx                98 libavcodec/h264_redundant_pps_bsf.c                 ff_cbs_delete_unit(ctx->input, au, i);
ctx               106 libavcodec/h264_redundant_pps_bsf.c             h264_redundant_pps_fixup_slice(ctx, &slice->header);
ctx               110 libavcodec/h264_redundant_pps_bsf.c     err = ff_cbs_write_packet(ctx->output, pkt, au);
ctx               116 libavcodec/h264_redundant_pps_bsf.c     ff_cbs_fragment_reset(ctx->output, au);
ctx               125 libavcodec/h264_redundant_pps_bsf.c     H264RedundantPPSContext *ctx = bsf->priv_data;
ctx               126 libavcodec/h264_redundant_pps_bsf.c     CodedBitstreamFragment *au = &ctx->access_unit;
ctx               129 libavcodec/h264_redundant_pps_bsf.c     err = ff_cbs_init(&ctx->input, AV_CODEC_ID_H264, bsf);
ctx               133 libavcodec/h264_redundant_pps_bsf.c     err = ff_cbs_init(&ctx->output, AV_CODEC_ID_H264, bsf);
ctx               137 libavcodec/h264_redundant_pps_bsf.c     ctx->global_pic_init_qp = 26;
ctx               140 libavcodec/h264_redundant_pps_bsf.c         err = ff_cbs_read_extradata(ctx->input, au, bsf->par_in);
ctx               148 libavcodec/h264_redundant_pps_bsf.c                 err = h264_redundant_pps_fixup_pps(ctx, au->units[i].content);
ctx               154 libavcodec/h264_redundant_pps_bsf.c         ctx->extradata_pic_init_qp = ctx->current_pic_init_qp;
ctx               155 libavcodec/h264_redundant_pps_bsf.c         err = ff_cbs_write_extradata(ctx->output, bsf->par_out, au);
ctx               164 libavcodec/h264_redundant_pps_bsf.c     ff_cbs_fragment_reset(ctx->output, au);
ctx               170 libavcodec/h264_redundant_pps_bsf.c     H264RedundantPPSContext *ctx = bsf->priv_data;
ctx               171 libavcodec/h264_redundant_pps_bsf.c     ctx->current_pic_init_qp = ctx->extradata_pic_init_qp;
ctx               176 libavcodec/h264_redundant_pps_bsf.c     H264RedundantPPSContext *ctx = bsf->priv_data;
ctx               178 libavcodec/h264_redundant_pps_bsf.c     ff_cbs_fragment_free(ctx->input, &ctx->access_unit);
ctx               179 libavcodec/h264_redundant_pps_bsf.c     ff_cbs_close(&ctx->input);
ctx               180 libavcodec/h264_redundant_pps_bsf.c     ff_cbs_close(&ctx->output);
ctx                78 libavcodec/h265_metadata_bsf.c     H265MetadataContext *ctx = bsf->priv_data;
ctx               140 libavcodec/h265_metadata_bsf.c         ctx->level_guess = desc->level_idc;
ctx               147 libavcodec/h265_metadata_bsf.c     H265MetadataContext *ctx = bsf->priv_data;
ctx               149 libavcodec/h265_metadata_bsf.c     if (ctx->level != LEVEL_UNSET) {
ctx               150 libavcodec/h265_metadata_bsf.c         if (ctx->level == LEVEL_AUTO) {
ctx               151 libavcodec/h265_metadata_bsf.c             if (ctx->level_guess) {
ctx               152 libavcodec/h265_metadata_bsf.c                 *level_idc = ctx->level_guess;
ctx               154 libavcodec/h265_metadata_bsf.c                 if (!ctx->level_warned) {
ctx               157 libavcodec/h265_metadata_bsf.c                     ctx->level_warned = 1;
ctx               162 libavcodec/h265_metadata_bsf.c             *level_idc = ctx->level;
ctx               170 libavcodec/h265_metadata_bsf.c     H265MetadataContext *ctx = bsf->priv_data;
ctx               172 libavcodec/h265_metadata_bsf.c     if (ctx->tick_rate.num && ctx->tick_rate.den) {
ctx               175 libavcodec/h265_metadata_bsf.c         av_reduce(&num, &den, ctx->tick_rate.num, ctx->tick_rate.den,
ctx               183 libavcodec/h265_metadata_bsf.c         if (ctx->num_ticks_poc_diff_one > 0) {
ctx               185 libavcodec/h265_metadata_bsf.c                 ctx->num_ticks_poc_diff_one - 1;
ctx               187 libavcodec/h265_metadata_bsf.c         } else if (ctx->num_ticks_poc_diff_one == 0) {
ctx               200 libavcodec/h265_metadata_bsf.c     H265MetadataContext *ctx = bsf->priv_data;
ctx               204 libavcodec/h265_metadata_bsf.c     if (ctx->sample_aspect_ratio.num && ctx->sample_aspect_ratio.den) {
ctx               215 libavcodec/h265_metadata_bsf.c         av_reduce(&num, &den, ctx->sample_aspect_ratio.num,
ctx               216 libavcodec/h265_metadata_bsf.c                   ctx->sample_aspect_ratio.den, 65535);
ctx               242 libavcodec/h265_metadata_bsf.c     if (ctx->video_format             >= 0 ||
ctx               243 libavcodec/h265_metadata_bsf.c         ctx->video_full_range_flag    >= 0 ||
ctx               244 libavcodec/h265_metadata_bsf.c         ctx->colour_primaries         >= 0 ||
ctx               245 libavcodec/h265_metadata_bsf.c         ctx->transfer_characteristics >= 0 ||
ctx               246 libavcodec/h265_metadata_bsf.c         ctx->matrix_coefficients      >= 0) {
ctx               248 libavcodec/h265_metadata_bsf.c         SET_OR_INFER(sps->vui.video_format, ctx->video_format,
ctx               252 libavcodec/h265_metadata_bsf.c                      ctx->video_full_range_flag,
ctx               255 libavcodec/h265_metadata_bsf.c         if (ctx->colour_primaries         >= 0 ||
ctx               256 libavcodec/h265_metadata_bsf.c             ctx->transfer_characteristics >= 0 ||
ctx               257 libavcodec/h265_metadata_bsf.c             ctx->matrix_coefficients      >= 0) {
ctx               260 libavcodec/h265_metadata_bsf.c                          ctx->colour_primaries,
ctx               264 libavcodec/h265_metadata_bsf.c                          ctx->transfer_characteristics,
ctx               268 libavcodec/h265_metadata_bsf.c                          ctx->matrix_coefficients,
ctx               277 libavcodec/h265_metadata_bsf.c     if (ctx->chroma_sample_loc_type >= 0) {
ctx               279 libavcodec/h265_metadata_bsf.c             ctx->chroma_sample_loc_type;
ctx               281 libavcodec/h265_metadata_bsf.c             ctx->chroma_sample_loc_type;
ctx               286 libavcodec/h265_metadata_bsf.c     if (ctx->tick_rate.num && ctx->tick_rate.den) {
ctx               289 libavcodec/h265_metadata_bsf.c         av_reduce(&num, &den, ctx->tick_rate.num, ctx->tick_rate.den,
ctx               298 libavcodec/h265_metadata_bsf.c         if (ctx->num_ticks_poc_diff_one > 0) {
ctx               300 libavcodec/h265_metadata_bsf.c                 ctx->num_ticks_poc_diff_one - 1;
ctx               302 libavcodec/h265_metadata_bsf.c         } else if (ctx->num_ticks_poc_diff_one == 0) {
ctx               315 libavcodec/h265_metadata_bsf.c         if (ctx->crop_ ## border >= 0) { \
ctx               316 libavcodec/h265_metadata_bsf.c             if (ctx->crop_ ## border % unit != 0) { \
ctx               322 libavcodec/h265_metadata_bsf.c                 ctx->crop_ ## border / unit; \
ctx               342 libavcodec/h265_metadata_bsf.c     H265MetadataContext *ctx = bsf->priv_data;
ctx               343 libavcodec/h265_metadata_bsf.c     CodedBitstreamFragment *au = &ctx->access_unit;
ctx               353 libavcodec/h265_metadata_bsf.c     err = ff_cbs_read(ctx->cbc, au, side_data, side_data_size);
ctx               359 libavcodec/h265_metadata_bsf.c     if (ctx->level == LEVEL_AUTO && !ctx->level_guess)
ctx               375 libavcodec/h265_metadata_bsf.c     err = ff_cbs_write_fragment_data(ctx->cbc, au);
ctx               386 libavcodec/h265_metadata_bsf.c     ff_cbs_fragment_reset(ctx->cbc, au);
ctx               393 libavcodec/h265_metadata_bsf.c     H265MetadataContext *ctx = bsf->priv_data;
ctx               394 libavcodec/h265_metadata_bsf.c     CodedBitstreamFragment *au = &ctx->access_unit;
ctx               405 libavcodec/h265_metadata_bsf.c     err = ff_cbs_read_packet(ctx->cbc, au, pkt);
ctx               419 libavcodec/h265_metadata_bsf.c         if (ctx->aud == REMOVE)
ctx               420 libavcodec/h265_metadata_bsf.c             ff_cbs_delete_unit(ctx->cbc, au, 0);
ctx               422 libavcodec/h265_metadata_bsf.c         if (ctx->aud == INSERT) {
ctx               423 libavcodec/h265_metadata_bsf.c             H265RawAUD *aud = &ctx->aud_nal;
ctx               452 libavcodec/h265_metadata_bsf.c             err = ff_cbs_insert_unit_content(ctx->cbc, au,
ctx               461 libavcodec/h265_metadata_bsf.c     if (ctx->level == LEVEL_AUTO && !ctx->level_guess)
ctx               477 libavcodec/h265_metadata_bsf.c     err = ff_cbs_write_packet(ctx->cbc, pkt, au);
ctx               485 libavcodec/h265_metadata_bsf.c     ff_cbs_fragment_reset(ctx->cbc, au);
ctx               495 libavcodec/h265_metadata_bsf.c     H265MetadataContext *ctx = bsf->priv_data;
ctx               496 libavcodec/h265_metadata_bsf.c     CodedBitstreamFragment *au = &ctx->access_unit;
ctx               499 libavcodec/h265_metadata_bsf.c     err = ff_cbs_init(&ctx->cbc, AV_CODEC_ID_HEVC, bsf);
ctx               504 libavcodec/h265_metadata_bsf.c         err = ff_cbs_read_extradata(ctx->cbc, au, bsf->par_in);
ctx               510 libavcodec/h265_metadata_bsf.c         if (ctx->level == LEVEL_AUTO)
ctx               526 libavcodec/h265_metadata_bsf.c         err = ff_cbs_write_extradata(ctx->cbc, bsf->par_out, au);
ctx               535 libavcodec/h265_metadata_bsf.c     ff_cbs_fragment_reset(ctx->cbc, au);
ctx               541 libavcodec/h265_metadata_bsf.c     H265MetadataContext *ctx = bsf->priv_data;
ctx               543 libavcodec/h265_metadata_bsf.c     ff_cbs_fragment_free(ctx->cbc, &ctx->access_unit);
ctx               544 libavcodec/h265_metadata_bsf.c     ff_cbs_close(&ctx->cbc);
ctx                28 libavcodec/hap.c int ff_hap_set_chunk_count(HapContext *ctx, int count, int first_in_frame)
ctx                31 libavcodec/hap.c     if (first_in_frame == 1 && ctx->chunk_count != count) {
ctx                32 libavcodec/hap.c         int ret = av_reallocp_array(&ctx->chunks, count, sizeof(HapChunk));
ctx                34 libavcodec/hap.c             ret = av_reallocp_array(&ctx->chunk_results, count, sizeof(int));
ctx                36 libavcodec/hap.c             ctx->chunk_count = 0;
ctx                38 libavcodec/hap.c             ctx->chunk_count = count;
ctx                40 libavcodec/hap.c     } else if (ctx->chunk_count != count) {
ctx                50 libavcodec/hap.c av_cold void ff_hap_free_context(HapContext *ctx)
ctx                52 libavcodec/hap.c     av_freep(&ctx->tex_buf);
ctx                53 libavcodec/hap.c     av_freep(&ctx->chunks);
ctx                54 libavcodec/hap.c     av_freep(&ctx->chunk_results);
ctx                99 libavcodec/hap.h int ff_hap_set_chunk_count(HapContext *ctx, int count, int first_in_frame);
ctx               104 libavcodec/hap.h av_cold void ff_hap_free_context(HapContext *ctx);
ctx                46 libavcodec/hapdec.c static int hap_parse_decode_instructions(HapContext *ctx, int size)
ctx                48 libavcodec/hapdec.c     GetByteContext *gbc = &ctx->gbc;
ctx                64 libavcodec/hapdec.c                 ret = ff_hap_set_chunk_count(ctx, section_size, is_first_table);
ctx                68 libavcodec/hapdec.c                     ctx->chunks[i].compressor = bytestream2_get_byte(gbc) << 4;
ctx                74 libavcodec/hapdec.c                 ret = ff_hap_set_chunk_count(ctx, section_size / 4, is_first_table);
ctx                78 libavcodec/hapdec.c                     ctx->chunks[i].compressed_size = bytestream2_get_le32(gbc);
ctx                84 libavcodec/hapdec.c                 ret = ff_hap_set_chunk_count(ctx, section_size / 4, is_first_table);
ctx                88 libavcodec/hapdec.c                     ctx->chunks[i].compressed_offset = bytestream2_get_le32(gbc);
ctx               106 libavcodec/hapdec.c         for (i = 0; i < ctx->chunk_count; i++) {
ctx               107 libavcodec/hapdec.c             ctx->chunks[i].compressed_offset = running_size;
ctx               108 libavcodec/hapdec.c             running_size += ctx->chunks[i].compressed_size;
ctx               115 libavcodec/hapdec.c static int hap_can_use_tex_in_place(HapContext *ctx)
ctx               119 libavcodec/hapdec.c     for (i = 0; i < ctx->chunk_count; i++) {
ctx               120 libavcodec/hapdec.c         if (ctx->chunks[i].compressed_offset != running_offset
ctx               121 libavcodec/hapdec.c             || ctx->chunks[i].compressor != HAP_COMP_NONE)
ctx               123 libavcodec/hapdec.c         running_offset += ctx->chunks[i].compressed_size;
ctx               130 libavcodec/hapdec.c     HapContext *ctx = avctx->priv_data;
ctx               131 libavcodec/hapdec.c     GetByteContext *gbc = &ctx->gbc;
ctx               137 libavcodec/hapdec.c     ret = ff_hap_parse_section_header(gbc, &ctx->texture_section_size, &section_type);
ctx               155 libavcodec/hapdec.c             ret = ff_hap_set_chunk_count(ctx, 1, 1);
ctx               157 libavcodec/hapdec.c                 ctx->chunks[0].compressor = section_type & 0xF0;
ctx               158 libavcodec/hapdec.c                 ctx->chunks[0].compressed_offset = 0;
ctx               159 libavcodec/hapdec.c                 ctx->chunks[0].compressed_size = ctx->texture_section_size;
ctx               161 libavcodec/hapdec.c             if (ctx->chunks[0].compressor == HAP_COMP_NONE) {
ctx               172 libavcodec/hapdec.c                 ret = hap_parse_decode_instructions(ctx, section_size);
ctx               184 libavcodec/hapdec.c     ctx->tex_size = 0;
ctx               185 libavcodec/hapdec.c     for (i = 0; i < ctx->chunk_count; i++) {
ctx               186 libavcodec/hapdec.c         HapChunk *chunk = &ctx->chunks[i];
ctx               194 libavcodec/hapdec.c         chunk->uncompressed_offset = ctx->tex_size;
ctx               212 libavcodec/hapdec.c         ctx->tex_size += chunk->uncompressed_size;
ctx               223 libavcodec/hapdec.c     HapContext *ctx = avctx->priv_data;
ctx               225 libavcodec/hapdec.c     HapChunk *chunk = &ctx->chunks[chunk_nb];
ctx               227 libavcodec/hapdec.c     uint8_t *dst = ctx->tex_buf + chunk->uncompressed_offset;
ctx               229 libavcodec/hapdec.c     bytestream2_init(&gbc, ctx->gbc.buffer + chunk->compressed_offset, chunk->compressed_size);
ctx               233 libavcodec/hapdec.c         int64_t uncompressed_size = ctx->tex_size;
ctx               251 libavcodec/hapdec.c     HapContext *ctx = avctx->priv_data;
ctx               253 libavcodec/hapdec.c     const uint8_t *d = ctx->tex_data;
ctx               258 libavcodec/hapdec.c     int base_blocks_per_slice = h_block / ctx->slice_count;
ctx               259 libavcodec/hapdec.c     int remainder_blocks = h_block % ctx->slice_count;
ctx               278 libavcodec/hapdec.c                 ctx->tex_fun(p + x * 4 * ctx->uncompress_pix_size, frame->linesize[0],
ctx               279 libavcodec/hapdec.c                              d + (off + x) * ctx->tex_rat);
ctx               281 libavcodec/hapdec.c                 ctx->tex_fun2(p + x * 4 * ctx->uncompress_pix_size, frame->linesize[0],
ctx               282 libavcodec/hapdec.c                               d + (off + x) * ctx->tex_rat2);
ctx               305 libavcodec/hapdec.c     HapContext *ctx = avctx->priv_data;
ctx               313 libavcodec/hapdec.c     bytestream2_init(&ctx->gbc, avpkt->data, avpkt->size);
ctx               315 libavcodec/hapdec.c     tex_rat[0] = ctx->tex_rat;
ctx               318 libavcodec/hapdec.c     if (ctx->texture_count == 2) {
ctx               319 libavcodec/hapdec.c         ret = ff_hap_parse_section_header(&ctx->gbc, &section_size, &section_type);
ctx               327 libavcodec/hapdec.c         tex_rat[1] = ctx->tex_rat2;
ctx               336 libavcodec/hapdec.c     for (t = 0; t < ctx->texture_count; t++) {
ctx               337 libavcodec/hapdec.c         bytestream2_seek(&ctx->gbc, start_texture_section, SEEK_SET);
ctx               344 libavcodec/hapdec.c         if (ctx->tex_size != (avctx->coded_width  / TEXTURE_BLOCK_W)
ctx               351 libavcodec/hapdec.c         start_texture_section += ctx->texture_section_size + 4;
ctx               357 libavcodec/hapdec.c         if (hap_can_use_tex_in_place(ctx)) {
ctx               360 libavcodec/hapdec.c             ctx->tex_data = ctx->gbc.buffer;
ctx               361 libavcodec/hapdec.c             tex_size = FFMIN(ctx->texture_section_size, bytestream2_get_bytes_left(&ctx->gbc));
ctx               370 libavcodec/hapdec.c             ret = av_reallocp(&ctx->tex_buf, ctx->tex_size);
ctx               375 libavcodec/hapdec.c                             ctx->chunk_results, ctx->chunk_count);
ctx               377 libavcodec/hapdec.c             for (i = 0; i < ctx->chunk_count; i++) {
ctx               378 libavcodec/hapdec.c                 if (ctx->chunk_results[i] < 0)
ctx               379 libavcodec/hapdec.c                     return ctx->chunk_results[i];
ctx               382 libavcodec/hapdec.c             ctx->tex_data = ctx->tex_buf;
ctx               387 libavcodec/hapdec.c             avctx->execute2(avctx, decompress_texture_thread, tframe.f, NULL, ctx->slice_count);
ctx               390 libavcodec/hapdec.c             avctx->execute2(avctx, decompress_texture2_thread, tframe.f, NULL, ctx->slice_count);
ctx               404 libavcodec/hapdec.c     HapContext *ctx = avctx->priv_data;
ctx               418 libavcodec/hapdec.c     ff_texturedsp_init(&ctx->dxtc);
ctx               420 libavcodec/hapdec.c     ctx->texture_count  = 1;
ctx               421 libavcodec/hapdec.c     ctx->uncompress_pix_size = 4;
ctx               426 libavcodec/hapdec.c         ctx->tex_rat = 8;
ctx               427 libavcodec/hapdec.c         ctx->tex_fun = ctx->dxtc.dxt1_block;
ctx               432 libavcodec/hapdec.c         ctx->tex_rat = 16;
ctx               433 libavcodec/hapdec.c         ctx->tex_fun = ctx->dxtc.dxt5_block;
ctx               438 libavcodec/hapdec.c         ctx->tex_rat = 16;
ctx               439 libavcodec/hapdec.c         ctx->tex_fun = ctx->dxtc.dxt5ys_block;
ctx               444 libavcodec/hapdec.c         ctx->tex_rat = 8;
ctx               445 libavcodec/hapdec.c         ctx->tex_fun = ctx->dxtc.rgtc1u_gray_block;
ctx               447 libavcodec/hapdec.c         ctx->uncompress_pix_size = 1;
ctx               451 libavcodec/hapdec.c         ctx->tex_rat  = 16;
ctx               452 libavcodec/hapdec.c         ctx->tex_rat2 = 8;
ctx               453 libavcodec/hapdec.c         ctx->tex_fun  = ctx->dxtc.dxt5ys_block;
ctx               454 libavcodec/hapdec.c         ctx->tex_fun2 = ctx->dxtc.rgtc1u_alpha_block;
ctx               456 libavcodec/hapdec.c         ctx->texture_count = 2;
ctx               464 libavcodec/hapdec.c     ctx->slice_count = av_clip(avctx->thread_count, 1,
ctx               472 libavcodec/hapdec.c     HapContext *ctx = avctx->priv_data;
ctx               474 libavcodec/hapdec.c     ff_hap_free_context(ctx);
ctx                57 libavcodec/hapenc.c     HapContext *ctx = avctx->priv_data;
ctx                60 libavcodec/hapenc.c     if (ctx->tex_size > out_length)
ctx                66 libavcodec/hapenc.c             const int step = ctx->tex_fun(out, f->linesize[0], p);
ctx                94 libavcodec/hapenc.c     HapContext *ctx = avctx->priv_data;
ctx                97 libavcodec/hapenc.c     for (i = 0; i < ctx->chunk_count; i++) {
ctx                98 libavcodec/hapenc.c         HapChunk *chunk = &ctx->chunks[i];
ctx               105 libavcodec/hapenc.c             chunk->compressed_offset = ctx->chunks[i-1].compressed_offset
ctx               106 libavcodec/hapenc.c                                        + ctx->chunks[i-1].compressed_size;
ctx               108 libavcodec/hapenc.c         chunk->uncompressed_size = ctx->tex_size / ctx->chunk_count;
ctx               110 libavcodec/hapenc.c         chunk->compressed_size = ctx->max_snappy;
ctx               111 libavcodec/hapenc.c         chunk_src = ctx->tex_buf + chunk->uncompressed_offset;
ctx               140 libavcodec/hapenc.c static int hap_decode_instructions_length(HapContext *ctx)
ctx               146 libavcodec/hapenc.c     return (5 * ctx->chunk_count) + 8;
ctx               149 libavcodec/hapenc.c static int hap_header_length(HapContext *ctx)
ctx               154 libavcodec/hapenc.c     if (ctx->chunk_count > 1) {
ctx               156 libavcodec/hapenc.c         length += HAP_HDR_SHORT + hap_decode_instructions_length(ctx);
ctx               162 libavcodec/hapenc.c static void hap_write_frame_header(HapContext *ctx, uint8_t *dst, int frame_length)
ctx               168 libavcodec/hapenc.c     if (ctx->chunk_count == 1) {
ctx               171 libavcodec/hapenc.c                                  ctx->chunks[0].compressor | ctx->opt_tex_fmt);
ctx               175 libavcodec/hapenc.c                                  HAP_COMP_COMPLEX | ctx->opt_tex_fmt);
ctx               176 libavcodec/hapenc.c         hap_write_section_header(&pbc, HAP_HDR_SHORT, hap_decode_instructions_length(ctx),
ctx               178 libavcodec/hapenc.c         hap_write_section_header(&pbc, HAP_HDR_SHORT, ctx->chunk_count,
ctx               181 libavcodec/hapenc.c         for (i = 0; i < ctx->chunk_count; i++) {
ctx               182 libavcodec/hapenc.c             bytestream2_put_byte(&pbc, ctx->chunks[i].compressor >> 4);
ctx               185 libavcodec/hapenc.c         hap_write_section_header(&pbc, HAP_HDR_SHORT, ctx->chunk_count * 4,
ctx               188 libavcodec/hapenc.c         for (i = 0; i < ctx->chunk_count; i++) {
ctx               189 libavcodec/hapenc.c             bytestream2_put_le32(&pbc, ctx->chunks[i].compressed_size);
ctx               197 libavcodec/hapenc.c     HapContext *ctx = avctx->priv_data;
ctx               198 libavcodec/hapenc.c     int header_length = hap_header_length(ctx);
ctx               200 libavcodec/hapenc.c     int pktsize = FFMAX(ctx->tex_size, ctx->max_snappy * ctx->chunk_count) + header_length;
ctx               207 libavcodec/hapenc.c     if (ctx->opt_compressor == HAP_COMP_NONE) {
ctx               213 libavcodec/hapenc.c         ctx->chunks[0].compressor = HAP_COMP_NONE;
ctx               214 libavcodec/hapenc.c         final_data_size = ctx->tex_size;
ctx               217 libavcodec/hapenc.c         ret = compress_texture(avctx, ctx->tex_buf, ctx->tex_size, frame);
ctx               228 libavcodec/hapenc.c     hap_write_frame_header(ctx, pkt->data, final_data_size + header_length);
ctx               238 libavcodec/hapenc.c     HapContext *ctx = avctx->priv_data;
ctx               255 libavcodec/hapenc.c     ff_texturedspenc_init(&ctx->dxtc);
ctx               257 libavcodec/hapenc.c     switch (ctx->opt_tex_fmt) {
ctx               262 libavcodec/hapenc.c         ctx->tex_fun = ctx->dxtc.dxt1_block;
ctx               268 libavcodec/hapenc.c         ctx->tex_fun = ctx->dxtc.dxt5_block;
ctx               274 libavcodec/hapenc.c         ctx->tex_fun = ctx->dxtc.dxt5ys_block;
ctx               277 libavcodec/hapenc.c         av_log(avctx, AV_LOG_ERROR, "Invalid format %02X\n", ctx->opt_tex_fmt);
ctx               283 libavcodec/hapenc.c     ctx->tex_size   = FFALIGN(avctx->width,  TEXTURE_BLOCK_W) *
ctx               286 libavcodec/hapenc.c     switch (ctx->opt_compressor) {
ctx               291 libavcodec/hapenc.c         ctx->max_snappy = ctx->tex_size;
ctx               292 libavcodec/hapenc.c         ctx->tex_buf = NULL;
ctx               296 libavcodec/hapenc.c         corrected_chunk_count = av_clip(ctx->opt_chunk_count, 1, HAP_MAX_CHUNKS);
ctx               297 libavcodec/hapenc.c         while ((ctx->tex_size / (64 / ratio)) % corrected_chunk_count != 0) {
ctx               301 libavcodec/hapenc.c         ctx->max_snappy = snappy_max_compressed_length(ctx->tex_size / corrected_chunk_count);
ctx               302 libavcodec/hapenc.c         ctx->tex_buf = av_malloc(ctx->tex_size);
ctx               303 libavcodec/hapenc.c         if (!ctx->tex_buf) {
ctx               308 libavcodec/hapenc.c         av_log(avctx, AV_LOG_ERROR, "Invalid compresor %02X\n", ctx->opt_compressor);
ctx               311 libavcodec/hapenc.c     if (corrected_chunk_count != ctx->opt_chunk_count) {
ctx               313 libavcodec/hapenc.c                                     ctx->opt_chunk_count, corrected_chunk_count);
ctx               315 libavcodec/hapenc.c     ret = ff_hap_set_chunk_count(ctx, corrected_chunk_count, 1);
ctx               324 libavcodec/hapenc.c     HapContext *ctx = avctx->priv_data;
ctx               326 libavcodec/hapenc.c     ff_hap_free_context(ctx);
ctx                38 libavcodec/hapqa_extract_bsf.c static int check_texture(HapqaExtractContext *ctx, int section_type) {
ctx                39 libavcodec/hapqa_extract_bsf.c     if (((ctx->texture == 0)&&((section_type & 0x0F) == 0x0F)) || /* HapQ texture and rgb extract */
ctx                40 libavcodec/hapqa_extract_bsf.c         ((ctx->texture == 1)&&((section_type & 0x0F) == 0x01))) /* HapAlphaOnly texture and alpha extract */
ctx                50 libavcodec/hapqa_extract_bsf.c     HapqaExtractContext *ctx = bsf->priv_data;
ctx                83 libavcodec/hapqa_extract_bsf.c     if (check_texture(ctx, section_type) == 0) { /* the texture is not the one to keep */
ctx                92 libavcodec/hapqa_extract_bsf.c         if (check_texture(ctx, section_type) == 0){ /* the second texture is not the one to keep */
ctx               559 libavcodec/hevc_cabac.c #define GET_CABAC(ctx) get_cabac(&s->HEVClc->cc, &s->HEVClc->cabac_state[ctx])
ctx                40 libavcodec/hevc_mp4toannexb_bsf.c static int hevc_extradata_to_annexb(AVBSFContext *ctx)
ctx                49 libavcodec/hevc_mp4toannexb_bsf.c     bytestream2_init(&gb, ctx->par_in->extradata, ctx->par_in->extradata_size);
ctx                61 libavcodec/hevc_mp4toannexb_bsf.c             av_log(ctx, AV_LOG_ERROR, "Invalid NAL unit type in extradata: %d\n",
ctx                85 libavcodec/hevc_mp4toannexb_bsf.c     av_freep(&ctx->par_out->extradata);
ctx                86 libavcodec/hevc_mp4toannexb_bsf.c     ctx->par_out->extradata      = new_extradata;
ctx                87 libavcodec/hevc_mp4toannexb_bsf.c     ctx->par_out->extradata_size = new_extradata_size;
ctx                90 libavcodec/hevc_mp4toannexb_bsf.c         av_log(ctx, AV_LOG_WARNING, "No parameter sets in the extradata\n");
ctx                98 libavcodec/hevc_mp4toannexb_bsf.c static int hevc_mp4toannexb_init(AVBSFContext *ctx)
ctx               100 libavcodec/hevc_mp4toannexb_bsf.c     HEVCBSFContext *s = ctx->priv_data;
ctx               103 libavcodec/hevc_mp4toannexb_bsf.c     if (ctx->par_in->extradata_size < MIN_HEVCC_LENGTH ||
ctx               104 libavcodec/hevc_mp4toannexb_bsf.c         AV_RB24(ctx->par_in->extradata) == 1           ||
ctx               105 libavcodec/hevc_mp4toannexb_bsf.c         AV_RB32(ctx->par_in->extradata) == 1) {
ctx               106 libavcodec/hevc_mp4toannexb_bsf.c         av_log(ctx, AV_LOG_VERBOSE,
ctx               109 libavcodec/hevc_mp4toannexb_bsf.c         ret = hevc_extradata_to_annexb(ctx);
ctx               119 libavcodec/hevc_mp4toannexb_bsf.c static int hevc_mp4toannexb_filter(AVBSFContext *ctx, AVPacket *out)
ctx               121 libavcodec/hevc_mp4toannexb_bsf.c     HEVCBSFContext *s = ctx->priv_data;
ctx               128 libavcodec/hevc_mp4toannexb_bsf.c     ret = ff_bsf_get_packet(ctx, &in);
ctx               162 libavcodec/hevc_mp4toannexb_bsf.c         extra_size    = add_extradata * ctx->par_out->extradata_size;
ctx               177 libavcodec/hevc_mp4toannexb_bsf.c             memcpy(out->data + prev_size, ctx->par_out->extradata, extra_size);
ctx                57 libavcodec/hevc_parser.c     HEVCParserContext *ctx = s->priv_data;
ctx                58 libavcodec/hevc_parser.c     HEVCParamSets *ps = &ctx->ps;
ctx                59 libavcodec/hevc_parser.c     HEVCSEI *sei = &ctx->sei;
ctx               158 libavcodec/hevc_parser.c         s->output_picture_number = ctx->poc =
ctx               159 libavcodec/hevc_parser.c             ff_hevc_compute_poc(ps->sps, ctx->pocTid0, pic_order_cnt_lsb, nal->type);
ctx               161 libavcodec/hevc_parser.c         s->output_picture_number = ctx->poc = 0;
ctx               171 libavcodec/hevc_parser.c         ctx->pocTid0 = ctx->poc;
ctx               187 libavcodec/hevc_parser.c     HEVCParserContext *ctx = s->priv_data;
ctx               188 libavcodec/hevc_parser.c     HEVCParamSets *ps = &ctx->ps;
ctx               189 libavcodec/hevc_parser.c     HEVCSEI *sei = &ctx->sei;
ctx               199 libavcodec/hevc_parser.c     ret = ff_h2645_packet_split(&ctx->pkt, buf, buf_size, avctx, ctx->is_avc,
ctx               200 libavcodec/hevc_parser.c                                 ctx->nal_length_size, AV_CODEC_ID_HEVC, 1, 0);
ctx               204 libavcodec/hevc_parser.c     for (i = 0; i < ctx->pkt.nb_nals; i++) {
ctx               205 libavcodec/hevc_parser.c         H2645NAL *nal = &ctx->pkt.nals[i];
ctx               241 libavcodec/hevc_parser.c             if (ctx->sei.picture_timing.picture_struct == HEVC_SEI_PIC_STRUCT_FRAME_DOUBLING) {
ctx               243 libavcodec/hevc_parser.c             } else if (ctx->sei.picture_timing.picture_struct == HEVC_SEI_PIC_STRUCT_FRAME_TRIPLING) {
ctx               264 libavcodec/hevc_parser.c     HEVCParserContext *ctx = s->priv_data;
ctx               265 libavcodec/hevc_parser.c     ParseContext       *pc = &ctx->pc;
ctx               306 libavcodec/hevc_parser.c     HEVCParserContext *ctx = s->priv_data;
ctx               307 libavcodec/hevc_parser.c     ParseContext *pc = &ctx->pc;
ctx               311 libavcodec/hevc_parser.c     if (avctx->extradata && !ctx->parsed_extradata) {
ctx               312 libavcodec/hevc_parser.c         ff_hevc_decode_extradata(avctx->extradata, avctx->extradata_size, &ctx->ps, &ctx->sei,
ctx               313 libavcodec/hevc_parser.c                                  &ctx->is_avc, &ctx->nal_length_size, avctx->err_recognition,
ctx               315 libavcodec/hevc_parser.c         ctx->parsed_extradata = 1;
ctx               374 libavcodec/hevc_parser.c     HEVCParserContext *ctx = s->priv_data;
ctx               376 libavcodec/hevc_parser.c     ff_hevc_ps_uninit(&ctx->ps);
ctx               377 libavcodec/hevc_parser.c     ff_h2645_packet_uninit(&ctx->pkt);
ctx               378 libavcodec/hevc_parser.c     ff_hevc_reset_sei(&ctx->sei);
ctx               380 libavcodec/hevc_parser.c     av_freep(&ctx->pc.buffer);
ctx               116 libavcodec/hq_hqa.c static int hq_decode_frame(HQContext *ctx, AVFrame *pic,
ctx               121 libavcodec/hq_hqa.c     const uint8_t *perm, *src = ctx->gbc.buffer;
ctx               127 libavcodec/hq_hqa.c         avpriv_request_sample(ctx->avctx, "HQ Profile %d", prof_num);
ctx               130 libavcodec/hq_hqa.c         av_log(ctx->avctx, AV_LOG_VERBOSE, "HQ Profile %d\n", prof_num);
ctx               133 libavcodec/hq_hqa.c     ctx->avctx->coded_width         = FFALIGN(profile->width,  16);
ctx               134 libavcodec/hq_hqa.c     ctx->avctx->coded_height        = FFALIGN(profile->height, 16);
ctx               135 libavcodec/hq_hqa.c     ctx->avctx->width               = profile->width;
ctx               136 libavcodec/hq_hqa.c     ctx->avctx->height              = profile->height;
ctx               137 libavcodec/hq_hqa.c     ctx->avctx->bits_per_raw_sample = 8;
ctx               138 libavcodec/hq_hqa.c     ctx->avctx->pix_fmt             = AV_PIX_FMT_YUV422P;
ctx               140 libavcodec/hq_hqa.c     ret = ff_get_buffer(ctx->avctx, pic, 0);
ctx               146 libavcodec/hq_hqa.c         slice_off[i] = bytestream2_get_be24(&ctx->gbc) - 4;
ctx               157 libavcodec/hq_hqa.c             av_log(ctx->avctx, AV_LOG_ERROR,
ctx               165 libavcodec/hq_hqa.c             ret = hq_decode_mb(ctx, pic, &gb, perm[0] * 16, perm[1] * 16);
ctx               167 libavcodec/hq_hqa.c                 av_log(ctx->avctx, AV_LOG_ERROR,
ctx               221 libavcodec/hq_hqa.c static int hqa_decode_slice(HQContext *ctx, AVFrame *pic, GetBitContext *gb,
ctx               230 libavcodec/hq_hqa.c             ret = hqa_decode_mb(ctx, pic, quant, gb, j, i);
ctx               232 libavcodec/hq_hqa.c                 av_log(ctx->avctx, AV_LOG_ERROR,
ctx               242 libavcodec/hq_hqa.c static int hqa_decode_frame(HQContext *ctx, AVFrame *pic, size_t data_size)
ctx               249 libavcodec/hq_hqa.c     const uint8_t *src = ctx->gbc.buffer;
ctx               251 libavcodec/hq_hqa.c     if (bytestream2_get_bytes_left(&ctx->gbc) < 8 + 4*(num_slices + 1))
ctx               254 libavcodec/hq_hqa.c     width  = bytestream2_get_be16(&ctx->gbc);
ctx               255 libavcodec/hq_hqa.c     height = bytestream2_get_be16(&ctx->gbc);
ctx               257 libavcodec/hq_hqa.c     ret = ff_set_dimensions(ctx->avctx, width, height);
ctx               261 libavcodec/hq_hqa.c     ctx->avctx->coded_width         = FFALIGN(width,  16);
ctx               262 libavcodec/hq_hqa.c     ctx->avctx->coded_height        = FFALIGN(height, 16);
ctx               263 libavcodec/hq_hqa.c     ctx->avctx->bits_per_raw_sample = 8;
ctx               264 libavcodec/hq_hqa.c     ctx->avctx->pix_fmt             = AV_PIX_FMT_YUVA422P;
ctx               266 libavcodec/hq_hqa.c     av_log(ctx->avctx, AV_LOG_VERBOSE, "HQA Profile\n");
ctx               268 libavcodec/hq_hqa.c     quant = bytestream2_get_byte(&ctx->gbc);
ctx               269 libavcodec/hq_hqa.c     bytestream2_skip(&ctx->gbc, 3);
ctx               271 libavcodec/hq_hqa.c         av_log(ctx->avctx, AV_LOG_ERROR,
ctx               276 libavcodec/hq_hqa.c     ret = ff_get_buffer(ctx->avctx, pic, 0);
ctx               282 libavcodec/hq_hqa.c         slice_off[i] = bytestream2_get_be32(&ctx->gbc) - 4;
ctx               288 libavcodec/hq_hqa.c             av_log(ctx->avctx, AV_LOG_ERROR,
ctx               295 libavcodec/hq_hqa.c         ret = hqa_decode_slice(ctx, pic, &gb, quant, slice, width, height);
ctx               306 libavcodec/hq_hqa.c     HQContext *ctx = avctx->priv_data;
ctx               313 libavcodec/hq_hqa.c     bytestream2_init(&ctx->gbc, avpkt->data, avpkt->size);
ctx               314 libavcodec/hq_hqa.c     if (bytestream2_get_bytes_left(&ctx->gbc) < 4 + 4) {
ctx               319 libavcodec/hq_hqa.c     info_tag = bytestream2_peek_le32(&ctx->gbc);
ctx               322 libavcodec/hq_hqa.c         bytestream2_skip(&ctx->gbc, 4);
ctx               323 libavcodec/hq_hqa.c         info_size = bytestream2_get_le32(&ctx->gbc);
ctx               324 libavcodec/hq_hqa.c         if (info_size < 0 || bytestream2_get_bytes_left(&ctx->gbc) < info_size) {
ctx               328 libavcodec/hq_hqa.c         ff_canopus_parse_info_tag(avctx, ctx->gbc.buffer, info_size);
ctx               330 libavcodec/hq_hqa.c         bytestream2_skip(&ctx->gbc, info_size);
ctx               333 libavcodec/hq_hqa.c     data_size = bytestream2_get_bytes_left(&ctx->gbc);
ctx               342 libavcodec/hq_hqa.c     tag = bytestream2_get_le32(&ctx->gbc);
ctx               344 libavcodec/hq_hqa.c         ret = hq_decode_frame(ctx, pic, tag >> 24, data_size);
ctx               346 libavcodec/hq_hqa.c         ret = hqa_decode_frame(ctx, pic, data_size);
ctx               366 libavcodec/hq_hqa.c     HQContext *ctx = avctx->priv_data;
ctx               367 libavcodec/hq_hqa.c     ctx->avctx = avctx;
ctx               369 libavcodec/hq_hqa.c     ff_hqdsp_init(&ctx->hqhqadsp);
ctx               371 libavcodec/hq_hqa.c     return ff_hq_init_vlcs(ctx);
ctx               376 libavcodec/hq_hqa.c     HQContext *ctx = avctx->priv_data;
ctx               378 libavcodec/hq_hqa.c     ff_free_vlc(&ctx->hq_ac_vlc);
ctx               379 libavcodec/hq_hqa.c     ff_free_vlc(&ctx->hqa_cbp_vlc);
ctx                84 libavcodec/hqx.c static inline void put_blocks(HQXContext *ctx, int plane,
ctx                90 libavcodec/hqx.c     int lsize = ctx->pic->linesize[plane];
ctx                91 libavcodec/hqx.c     uint8_t *p = ctx->pic->data[plane] + x * 2;
ctx                93 libavcodec/hqx.c     ctx->hqxdsp.idct_put((uint16_t *)(p + y * lsize),
ctx                95 libavcodec/hqx.c     ctx->hqxdsp.idct_put((uint16_t *)(p + (y + (ilace ? 1 : 8)) * lsize),
ctx               156 libavcodec/hqx.c static int hqx_decode_422(HQXContext *ctx, int slice_no, int x, int y)
ctx               158 libavcodec/hqx.c     HQXSlice *slice = &ctx->slice[slice_no];
ctx               165 libavcodec/hqx.c     if (ctx->interlaced)
ctx               173 libavcodec/hqx.c         int vlc_index = ctx->dcb - 9;
ctx               176 libavcodec/hqx.c         ret = decode_block(gb, &ctx->dc_vlc[vlc_index], quants,
ctx               177 libavcodec/hqx.c                            ctx->dcb, slice->block[i], &last_dc);
ctx               182 libavcodec/hqx.c     put_blocks(ctx, 0, x,      y, flag, slice->block[0], slice->block[2], hqx_quant_luma);
ctx               183 libavcodec/hqx.c     put_blocks(ctx, 0, x + 8,  y, flag, slice->block[1], slice->block[3], hqx_quant_luma);
ctx               184 libavcodec/hqx.c     put_blocks(ctx, 2, x >> 1, y, flag, slice->block[4], slice->block[5], hqx_quant_chroma);
ctx               185 libavcodec/hqx.c     put_blocks(ctx, 1, x >> 1, y, flag, slice->block[6], slice->block[7], hqx_quant_chroma);
ctx               190 libavcodec/hqx.c static int hqx_decode_422a(HQXContext *ctx, int slice_no, int x, int y)
ctx               192 libavcodec/hqx.c     HQXSlice *slice = &ctx->slice[slice_no];
ctx               200 libavcodec/hqx.c     cbp = get_vlc2(gb, ctx->cbp_vlc.table, ctx->cbp_vlc.bits, 1);
ctx               207 libavcodec/hqx.c         if (ctx->interlaced)
ctx               221 libavcodec/hqx.c                 int vlc_index = ctx->dcb - 9;
ctx               222 libavcodec/hqx.c                 ret = decode_block(gb, &ctx->dc_vlc[vlc_index], quants,
ctx               223 libavcodec/hqx.c                                    ctx->dcb, slice->block[i], &last_dc);
ctx               230 libavcodec/hqx.c     put_blocks(ctx, 3, x,      y, flag, slice->block[ 0], slice->block[ 2], hqx_quant_luma);
ctx               231 libavcodec/hqx.c     put_blocks(ctx, 3, x + 8,  y, flag, slice->block[ 1], slice->block[ 3], hqx_quant_luma);
ctx               232 libavcodec/hqx.c     put_blocks(ctx, 0, x,      y, flag, slice->block[ 4], slice->block[ 6], hqx_quant_luma);
ctx               233 libavcodec/hqx.c     put_blocks(ctx, 0, x + 8,  y, flag, slice->block[ 5], slice->block[ 7], hqx_quant_luma);
ctx               234 libavcodec/hqx.c     put_blocks(ctx, 2, x >> 1, y, flag, slice->block[ 8], slice->block[ 9], hqx_quant_chroma);
ctx               235 libavcodec/hqx.c     put_blocks(ctx, 1, x >> 1, y, flag, slice->block[10], slice->block[11], hqx_quant_chroma);
ctx               240 libavcodec/hqx.c static int hqx_decode_444(HQXContext *ctx, int slice_no, int x, int y)
ctx               242 libavcodec/hqx.c     HQXSlice *slice = &ctx->slice[slice_no];
ctx               249 libavcodec/hqx.c     if (ctx->interlaced)
ctx               257 libavcodec/hqx.c         int vlc_index = ctx->dcb - 9;
ctx               260 libavcodec/hqx.c         ret = decode_block(gb, &ctx->dc_vlc[vlc_index], quants,
ctx               261 libavcodec/hqx.c                            ctx->dcb, slice->block[i], &last_dc);
ctx               266 libavcodec/hqx.c     put_blocks(ctx, 0, x,     y, flag, slice->block[0], slice->block[ 2], hqx_quant_luma);
ctx               267 libavcodec/hqx.c     put_blocks(ctx, 0, x + 8, y, flag, slice->block[1], slice->block[ 3], hqx_quant_luma);
ctx               268 libavcodec/hqx.c     put_blocks(ctx, 2, x,     y, flag, slice->block[4], slice->block[ 6], hqx_quant_chroma);
ctx               269 libavcodec/hqx.c     put_blocks(ctx, 2, x + 8, y, flag, slice->block[5], slice->block[ 7], hqx_quant_chroma);
ctx               270 libavcodec/hqx.c     put_blocks(ctx, 1, x,     y, flag, slice->block[8], slice->block[10], hqx_quant_chroma);
ctx               271 libavcodec/hqx.c     put_blocks(ctx, 1, x + 8, y, flag, slice->block[9], slice->block[11], hqx_quant_chroma);
ctx               276 libavcodec/hqx.c static int hqx_decode_444a(HQXContext *ctx, int slice_no, int x, int y)
ctx               278 libavcodec/hqx.c     HQXSlice *slice = &ctx->slice[slice_no];
ctx               286 libavcodec/hqx.c     cbp = get_vlc2(gb, ctx->cbp_vlc.table, ctx->cbp_vlc.bits, 1);
ctx               293 libavcodec/hqx.c         if (ctx->interlaced)
ctx               304 libavcodec/hqx.c                 int vlc_index = ctx->dcb - 9;
ctx               305 libavcodec/hqx.c                 ret = decode_block(gb, &ctx->dc_vlc[vlc_index], quants,
ctx               306 libavcodec/hqx.c                                    ctx->dcb, slice->block[i], &last_dc);
ctx               313 libavcodec/hqx.c     put_blocks(ctx, 3, x,     y, flag, slice->block[ 0], slice->block[ 2], hqx_quant_luma);
ctx               314 libavcodec/hqx.c     put_blocks(ctx, 3, x + 8, y, flag, slice->block[ 1], slice->block[ 3], hqx_quant_luma);
ctx               315 libavcodec/hqx.c     put_blocks(ctx, 0, x,     y, flag, slice->block[ 4], slice->block[ 6], hqx_quant_luma);
ctx               316 libavcodec/hqx.c     put_blocks(ctx, 0, x + 8, y, flag, slice->block[ 5], slice->block[ 7], hqx_quant_luma);
ctx               317 libavcodec/hqx.c     put_blocks(ctx, 2, x,     y, flag, slice->block[ 8], slice->block[10], hqx_quant_chroma);
ctx               318 libavcodec/hqx.c     put_blocks(ctx, 2, x + 8, y, flag, slice->block[ 9], slice->block[11], hqx_quant_chroma);
ctx               319 libavcodec/hqx.c     put_blocks(ctx, 1, x,     y, flag, slice->block[12], slice->block[14], hqx_quant_chroma);
ctx               320 libavcodec/hqx.c     put_blocks(ctx, 1, x + 8, y, flag, slice->block[13], slice->block[15], hqx_quant_chroma);
ctx               329 libavcodec/hqx.c static int decode_slice(HQXContext *ctx, int slice_no)
ctx               331 libavcodec/hqx.c     int mb_w = (ctx->width  + 15) >> 4;
ctx               332 libavcodec/hqx.c     int mb_h = (ctx->height + 15) >> 4;
ctx               375 libavcodec/hqx.c             ctx->decode_func(ctx, slice_no, mb_x * 16, mb_y * 16);
ctx               385 libavcodec/hqx.c     HQXContext *ctx = avctx->priv_data;
ctx               386 libavcodec/hqx.c     uint32_t *slice_off = ctx->slice_off;
ctx               391 libavcodec/hqx.c         slice_off[slice_no + 1] > ctx->data_size) {
ctx               392 libavcodec/hqx.c         av_log(avctx, AV_LOG_ERROR, "Invalid slice size %d.\n", ctx->data_size);
ctx               396 libavcodec/hqx.c     ret = init_get_bits8(&ctx->slice[slice_no].gb,
ctx               397 libavcodec/hqx.c                          ctx->src + slice_off[slice_no],
ctx               402 libavcodec/hqx.c     return decode_slice(ctx, slice_no);
ctx               408 libavcodec/hqx.c     HQXContext *ctx = avctx->priv_data;
ctx               436 libavcodec/hqx.c     ctx->data_size = avpkt->size - data_start;
ctx               437 libavcodec/hqx.c     ctx->src       = src;
ctx               438 libavcodec/hqx.c     ctx->pic       = data;
ctx               440 libavcodec/hqx.c     if (ctx->data_size < HQX_HEADER_SIZE) {
ctx               449 libavcodec/hqx.c     ctx->interlaced = !(src[2] & 0x80);
ctx               450 libavcodec/hqx.c     ctx->format     = src[2] & 7;
ctx               451 libavcodec/hqx.c     ctx->dcb        = (src[3] & 3) + 8;
ctx               452 libavcodec/hqx.c     ctx->width      = AV_RB16(src + 4);
ctx               453 libavcodec/hqx.c     ctx->height     = AV_RB16(src + 6);
ctx               455 libavcodec/hqx.c         ctx->slice_off[i] = AV_RB24(src + 8 + i * 3);
ctx               457 libavcodec/hqx.c     if (ctx->dcb == 8) {
ctx               458 libavcodec/hqx.c         av_log(avctx, AV_LOG_ERROR, "Invalid DC precision %d.\n", ctx->dcb);
ctx               461 libavcodec/hqx.c     ret = av_image_check_size(ctx->width, ctx->height, 0, avctx);
ctx               464 libavcodec/hqx.c                ctx->width, ctx->height);
ctx               468 libavcodec/hqx.c     avctx->coded_width         = FFALIGN(ctx->width,  16);
ctx               469 libavcodec/hqx.c     avctx->coded_height        = FFALIGN(ctx->height, 16);
ctx               470 libavcodec/hqx.c     avctx->width               = ctx->width;
ctx               471 libavcodec/hqx.c     avctx->height              = ctx->height;
ctx               482 libavcodec/hqx.c     switch (ctx->format) {
ctx               485 libavcodec/hqx.c         ctx->decode_func = hqx_decode_422;
ctx               489 libavcodec/hqx.c         ctx->decode_func = hqx_decode_444;
ctx               493 libavcodec/hqx.c         ctx->decode_func = hqx_decode_422a;
ctx               497 libavcodec/hqx.c         ctx->decode_func = hqx_decode_444a;
ctx               500 libavcodec/hqx.c         av_log(avctx, AV_LOG_ERROR, "Invalid format: %d.\n", ctx->format);
ctx               510 libavcodec/hqx.c     ctx->pic->key_frame = 1;
ctx               511 libavcodec/hqx.c     ctx->pic->pict_type = AV_PICTURE_TYPE_I;
ctx               521 libavcodec/hqx.c     HQXContext *ctx = avctx->priv_data;
ctx               523 libavcodec/hqx.c     ff_free_vlc(&ctx->cbp_vlc);
ctx               525 libavcodec/hqx.c         ff_free_vlc(&ctx->dc_vlc[i]);
ctx               533 libavcodec/hqx.c     HQXContext *ctx = avctx->priv_data;
ctx               535 libavcodec/hqx.c     ff_hqxdsp_init(&ctx->hqxdsp);
ctx               537 libavcodec/hqx.c     return ff_hqx_init_vlcs(ctx);
ctx                54 libavcodec/hqx.h typedef int (*mb_decode_func)(struct HQXContext *ctx,
ctx                84 libavcodec/hqx.h int ff_hqx_init_vlcs(HQXContext *ctx);
ctx              2143 libavcodec/hqxvlc.c         ret = init_vlc(&ctx->dc_vlc[idx], HQX_DC_VLC_BITS,                    \
ctx              2151 libavcodec/hqxvlc.c av_cold int ff_hqx_init_vlcs(HQXContext *ctx)
ctx              2153 libavcodec/hqxvlc.c     int ret = init_vlc(&ctx->cbp_vlc, 5, FF_ARRAY_ELEMS(cbp_vlc_lens),
ctx                53 libavcodec/imm5.c     IMM5Context *ctx = avctx->priv_data;
ctx                60 libavcodec/imm5.c     ctx->h264_avctx = avcodec_alloc_context3(codec);
ctx                61 libavcodec/imm5.c     if (!ctx->h264_avctx)
ctx                63 libavcodec/imm5.c     ctx->h264_avctx->thread_count = 1;
ctx                64 libavcodec/imm5.c     ctx->h264_avctx->flags        = avctx->flags;
ctx                65 libavcodec/imm5.c     ctx->h264_avctx->flags2       = avctx->flags2;
ctx                66 libavcodec/imm5.c     ret = ff_codec_open2_recursive(ctx->h264_avctx, codec, NULL);
ctx                73 libavcodec/imm5.c     ctx->hevc_avctx = avcodec_alloc_context3(codec);
ctx                74 libavcodec/imm5.c     if (!ctx->hevc_avctx)
ctx                76 libavcodec/imm5.c     ctx->hevc_avctx->thread_count = 1;
ctx                77 libavcodec/imm5.c     ctx->hevc_avctx->flags        = avctx->flags;
ctx                78 libavcodec/imm5.c     ctx->hevc_avctx->flags2       = avctx->flags2;
ctx                79 libavcodec/imm5.c     ret = ff_codec_open2_recursive(ctx->hevc_avctx, codec, NULL);
ctx                89 libavcodec/imm5.c     IMM5Context *ctx = avctx->priv_data;
ctx                91 libavcodec/imm5.c     AVCodecContext *codec_avctx = ctx->h264_avctx;
ctx               101 libavcodec/imm5.c             codec_avctx = ctx->hevc_avctx;
ctx               165 libavcodec/imm5.c     IMM5Context *ctx = avctx->priv_data;
ctx               167 libavcodec/imm5.c     avcodec_flush_buffers(ctx->h264_avctx);
ctx               168 libavcodec/imm5.c     avcodec_flush_buffers(ctx->hevc_avctx);
ctx               173 libavcodec/imm5.c     IMM5Context *ctx = avctx->priv_data;
ctx               175 libavcodec/imm5.c     avcodec_free_context(&ctx->h264_avctx);
ctx               176 libavcodec/imm5.c     avcodec_free_context(&ctx->hevc_avctx);
ctx                33 libavcodec/imx_dump_header_bsf.c static int imx_dump_header(AVBSFContext *ctx, AVPacket *out)
ctx                42 libavcodec/imx_dump_header_bsf.c     ret = ff_bsf_get_packet(ctx, &in);
ctx                52 libavcodec/indeo2.c static int ir2_decode_plane(Ir2Context *ctx, int width, int height, uint8_t *dst,
ctx                59 libavcodec/indeo2.c     if ((width & 1) || width * height / (2*(IR2_CODES - 0x7F)) > get_bits_left(&ctx->gb))
ctx                64 libavcodec/indeo2.c         int c = ir2_get_code(&ctx->gb);
ctx                84 libavcodec/indeo2.c             if (get_bits_left(&ctx->gb) <= 0)
ctx                86 libavcodec/indeo2.c             c = ir2_get_code(&ctx->gb);
ctx               114 libavcodec/indeo2.c static int ir2_decode_plane_inter(Ir2Context *ctx, int width, int height, uint8_t *dst,
ctx               128 libavcodec/indeo2.c             if (get_bits_left(&ctx->gb) <= 0)
ctx               130 libavcodec/indeo2.c             c = ir2_get_code(&ctx->gb);
ctx               151 libavcodec/indeo3.c static av_cold void free_frame_buffers(Indeo3DecodeContext *ctx)
ctx               155 libavcodec/indeo3.c     ctx->width = ctx->height = 0;
ctx               158 libavcodec/indeo3.c         av_freep(&ctx->planes[p].buffers[0]);
ctx               159 libavcodec/indeo3.c         av_freep(&ctx->planes[p].buffers[1]);
ctx               160 libavcodec/indeo3.c         ctx->planes[p].pixels[0] = ctx->planes[p].pixels[1] = 0;
ctx               165 libavcodec/indeo3.c static av_cold int allocate_frame_buffers(Indeo3DecodeContext *ctx,
ctx               180 libavcodec/indeo3.c     ctx->width  = luma_width ;
ctx               181 libavcodec/indeo3.c     ctx->height = luma_height;
ctx               199 libavcodec/indeo3.c         ctx->planes[p].pitch  = !p ? luma_pitch  : chroma_pitch;
ctx               200 libavcodec/indeo3.c         ctx->planes[p].width  = !p ? luma_width  : chroma_width;
ctx               201 libavcodec/indeo3.c         ctx->planes[p].height = !p ? luma_height : chroma_height;
ctx               203 libavcodec/indeo3.c         ctx->planes[p].buffers[0] = av_malloc(!p ? luma_size : chroma_size);
ctx               204 libavcodec/indeo3.c         ctx->planes[p].buffers[1] = av_malloc(!p ? luma_size : chroma_size);
ctx               206 libavcodec/indeo3.c         if (!ctx->planes[p].buffers[0] || !ctx->planes[p].buffers[1]) {
ctx               207 libavcodec/indeo3.c             free_frame_buffers(ctx);
ctx               212 libavcodec/indeo3.c         memset(ctx->planes[p].buffers[0], 0x40, ctx->planes[p].pitch);
ctx               213 libavcodec/indeo3.c         memset(ctx->planes[p].buffers[1], 0x40, ctx->planes[p].pitch);
ctx               216 libavcodec/indeo3.c         ctx->planes[p].pixels[0] = ctx->planes[p].buffers[0] + ctx->planes[p].pitch;
ctx               217 libavcodec/indeo3.c         ctx->planes[p].pixels[1] = ctx->planes[p].buffers[1] + ctx->planes[p].pitch;
ctx               218 libavcodec/indeo3.c         memset(ctx->planes[p].pixels[0], 0, ctx->planes[p].pitch * ctx->planes[p].height);
ctx               219 libavcodec/indeo3.c         memset(ctx->planes[p].pixels[1], 0, ctx->planes[p].pitch * ctx->planes[p].height);
ctx               233 libavcodec/indeo3.c static int copy_cell(Indeo3DecodeContext *ctx, Plane *plane, Cell *cell)
ctx               240 libavcodec/indeo3.c     dst         = plane->pixels[ctx->buf_sel] + offset_dst;
ctx               251 libavcodec/indeo3.c         av_log(ctx->avctx, AV_LOG_ERROR,
ctx               257 libavcodec/indeo3.c     src         = plane->pixels[ctx->buf_sel ^ 1] + offset;
ctx               265 libavcodec/indeo3.c                 ctx->hdsp.put_pixels_tab[0][0](dst, src, plane->pitch, h);
ctx               270 libavcodec/indeo3.c             ctx->hdsp.put_pixels_tab[1][0](dst, src, plane->pitch, h);
ctx               275 libavcodec/indeo3.c             ctx->hdsp.put_pixels_tab[2][0](dst, src, plane->pitch, h);
ctx               427 libavcodec/indeo3.c static int decode_cell_data(Indeo3DecodeContext *ctx, Cell *cell,
ctx               583 libavcodec/indeo3.c static int decode_cell(Indeo3DecodeContext *ctx, AVCodecContext *avctx,
ctx               601 libavcodec/indeo3.c     block  =  plane->pixels[ctx->buf_sel] + offset;
ctx               609 libavcodec/indeo3.c         int ret = copy_cell(ctx, plane, cell);
ctx               621 libavcodec/indeo3.c             av_log(ctx->avctx, AV_LOG_ERROR,
ctx               627 libavcodec/indeo3.c         ref_block = plane->pixels[ctx->buf_sel ^ 1] + offset;
ctx               634 libavcodec/indeo3.c         code        = ctx->alt_quant[vq_index];
ctx               635 libavcodec/indeo3.c         prim_indx   = (code >> 4)  + ctx->cb_offset;
ctx               636 libavcodec/indeo3.c         second_indx = (code & 0xF) + ctx->cb_offset;
ctx               638 libavcodec/indeo3.c         vq_index += ctx->cb_offset;
ctx               673 libavcodec/indeo3.c         error = decode_cell_data(ctx, cell, block, ref_block, plane->pitch,
ctx               680 libavcodec/indeo3.c             error = decode_cell_data(ctx, cell, block, ref_block, plane->pitch,
ctx               690 libavcodec/indeo3.c             error = decode_cell_data(ctx, cell, block, ref_block, plane->pitch,
ctx               735 libavcodec/indeo3.c     ctx->skip_bits  += (n); \
ctx               736 libavcodec/indeo3.c     ctx->need_resync = 1
ctx               739 libavcodec/indeo3.c     if (ctx->need_resync && !(get_bits_count(&ctx->gb) & 7)) { \
ctx               740 libavcodec/indeo3.c         skip_bits_long(&ctx->gb, ctx->skip_bits);              \
ctx               741 libavcodec/indeo3.c         ctx->skip_bits   = 0;                                  \
ctx               742 libavcodec/indeo3.c         ctx->need_resync = 0;                                  \
ctx               754 libavcodec/indeo3.c static int parse_bintree(Indeo3DecodeContext *ctx, AVCodecContext *avctx,
ctx               785 libavcodec/indeo3.c     while (get_bits_left(&ctx->gb) >= 2) { /* loop until return */
ctx               787 libavcodec/indeo3.c         switch (code = get_bits(&ctx->gb, 2)) {
ctx               790 libavcodec/indeo3.c             if (parse_bintree(ctx, avctx, plane, code, &curr_cell, depth - 1, strip_width))
ctx               799 libavcodec/indeo3.c                 code = get_bits(&ctx->gb, 2);
ctx               811 libavcodec/indeo3.c                 ret = copy_cell(ctx, plane, &curr_cell);
ctx               819 libavcodec/indeo3.c                 if (!ctx->need_resync)
ctx               820 libavcodec/indeo3.c                     ctx->next_cell_data = &ctx->gb.buffer[(get_bits_count(&ctx->gb) + 7) >> 3];
ctx               821 libavcodec/indeo3.c                 if (ctx->next_cell_data >= ctx->last_byte) {
ctx               825 libavcodec/indeo3.c                 mv_idx = *(ctx->next_cell_data++);
ctx               826 libavcodec/indeo3.c                 if (mv_idx >= ctx->num_vectors) {
ctx               830 libavcodec/indeo3.c                 curr_cell.mv_ptr = &ctx->mc_vectors[mv_idx << 1];
ctx               834 libavcodec/indeo3.c                 if (!ctx->need_resync)
ctx               835 libavcodec/indeo3.c                     ctx->next_cell_data = &ctx->gb.buffer[(get_bits_count(&ctx->gb) + 7) >> 3];
ctx               838 libavcodec/indeo3.c                 bytes_used = decode_cell(ctx, avctx, plane, &curr_cell,
ctx               839 libavcodec/indeo3.c                                          ctx->next_cell_data, ctx->last_byte);
ctx               844 libavcodec/indeo3.c                 ctx->next_cell_data += bytes_used;
ctx               855 libavcodec/indeo3.c static int decode_plane(Indeo3DecodeContext *ctx, AVCodecContext *avctx,
ctx               866 libavcodec/indeo3.c         av_log(ctx->avctx, AV_LOG_ERROR,
ctx               873 libavcodec/indeo3.c     ctx->num_vectors = num_vectors;
ctx               874 libavcodec/indeo3.c     ctx->mc_vectors  = num_vectors ? data : 0;
ctx               877 libavcodec/indeo3.c     init_get_bits(&ctx->gb, &data[num_vectors * 2], (data_size - num_vectors * 2) << 3);
ctx               878 libavcodec/indeo3.c     ctx->skip_bits   = 0;
ctx               879 libavcodec/indeo3.c     ctx->need_resync = 0;
ctx               881 libavcodec/indeo3.c     ctx->last_byte = data + data_size;
ctx               890 libavcodec/indeo3.c     return parse_bintree(ctx, avctx, plane, INTRA_NULL, &curr_cell, CELL_STACK_MAX, strip_width);
ctx               896 libavcodec/indeo3.c static int decode_frame_headers(Indeo3DecodeContext *ctx, AVCodecContext *avctx,
ctx               928 libavcodec/indeo3.c     ctx->frame_num   =  frame_num;
ctx               929 libavcodec/indeo3.c     ctx->frame_flags =  bytestream2_get_le16(&gb);
ctx               930 libavcodec/indeo3.c     ctx->data_size   = (bytestream2_get_le32(&gb) + 7) >> 3;
ctx               931 libavcodec/indeo3.c     ctx->cb_offset   =  bytestream2_get_byte(&gb);
ctx               933 libavcodec/indeo3.c     if (ctx->data_size == 16)
ctx               935 libavcodec/indeo3.c     ctx->data_size = FFMIN(ctx->data_size, buf_size - 16);
ctx               945 libavcodec/indeo3.c     if (width != ctx->width || height != ctx->height) {
ctx               957 libavcodec/indeo3.c         free_frame_buffers(ctx);
ctx               958 libavcodec/indeo3.c         if ((res = allocate_frame_buffers(ctx, avctx, width, height)) < 0)
ctx               976 libavcodec/indeo3.c         ends[j] = ctx->data_size;
ctx               982 libavcodec/indeo3.c     ctx->y_data_size = ends[0] - starts[0];
ctx               983 libavcodec/indeo3.c     ctx->v_data_size = ends[1] - starts[1];
ctx               984 libavcodec/indeo3.c     ctx->u_data_size = ends[2] - starts[2];
ctx               986 libavcodec/indeo3.c         FFMAX3(y_offset, v_offset, u_offset) >= ctx->data_size - 16 ||
ctx               988 libavcodec/indeo3.c         FFMIN3(ctx->y_data_size, ctx->v_data_size, ctx->u_data_size) <= 0) {
ctx               993 libavcodec/indeo3.c     ctx->y_data_ptr = bs_hdr + y_offset;
ctx               994 libavcodec/indeo3.c     ctx->v_data_ptr = bs_hdr + v_offset;
ctx               995 libavcodec/indeo3.c     ctx->u_data_ptr = bs_hdr + u_offset;
ctx               996 libavcodec/indeo3.c     ctx->alt_quant  = gb.buffer;
ctx               998 libavcodec/indeo3.c     if (ctx->data_size == 16) {
ctx              1003 libavcodec/indeo3.c     if (ctx->frame_flags & BS_8BIT_PEL) {
ctx              1008 libavcodec/indeo3.c     if (ctx->frame_flags & BS_MV_X_HALF || ctx->frame_flags & BS_MV_Y_HALF) {
ctx              1054 libavcodec/indeo3.c     Indeo3DecodeContext *ctx = avctx->priv_data;
ctx              1056 libavcodec/indeo3.c     ctx->avctx     = avctx;
ctx              1061 libavcodec/indeo3.c     ff_hpeldsp_init(&ctx->hdsp, avctx->flags);
ctx              1063 libavcodec/indeo3.c     return allocate_frame_buffers(ctx, avctx, avctx->width, avctx->height);
ctx              1070 libavcodec/indeo3.c     Indeo3DecodeContext *ctx = avctx->priv_data;
ctx              1076 libavcodec/indeo3.c     res = decode_frame_headers(ctx, avctx, buf, buf_size);
ctx              1088 libavcodec/indeo3.c     if (ctx->frame_flags & BS_NONREF &&
ctx              1093 libavcodec/indeo3.c     if (!(ctx->frame_flags & BS_KEYFRAME) && avctx->skip_frame >= AVDISCARD_NONKEY)
ctx              1097 libavcodec/indeo3.c     ctx->buf_sel = (ctx->frame_flags >> BS_BUFFER) & 1;
ctx              1103 libavcodec/indeo3.c     if ((res = decode_plane(ctx, avctx, ctx->planes, ctx->y_data_ptr, ctx->y_data_size, 40)))
ctx              1107 libavcodec/indeo3.c     if ((res = decode_plane(ctx, avctx, &ctx->planes[1], ctx->u_data_ptr, ctx->u_data_size, 10)))
ctx              1110 libavcodec/indeo3.c     if ((res = decode_plane(ctx, avctx, &ctx->planes[2], ctx->v_data_ptr, ctx->v_data_size, 10)))
ctx              1113 libavcodec/indeo3.c     output_plane(&ctx->planes[0], ctx->buf_sel,
ctx              1116 libavcodec/indeo3.c     output_plane(&ctx->planes[1], ctx->buf_sel,
ctx              1119 libavcodec/indeo3.c     output_plane(&ctx->planes[2], ctx->buf_sel,
ctx               106 libavcodec/indeo4.c static int decode_pic_hdr(IVI45DecContext *ctx, AVCodecContext *avctx)
ctx               111 libavcodec/indeo4.c     if (get_bits(&ctx->gb, 18) != 0x3FFF8) {
ctx               116 libavcodec/indeo4.c     ctx->prev_frame_type = ctx->frame_type;
ctx               117 libavcodec/indeo4.c     ctx->frame_type      = get_bits(&ctx->gb, 3);
ctx               118 libavcodec/indeo4.c     if (ctx->frame_type == 7) {
ctx               119 libavcodec/indeo4.c         av_log(avctx, AV_LOG_ERROR, "Invalid frame type: %d\n", ctx->frame_type);
ctx               123 libavcodec/indeo4.c     if (ctx->frame_type == IVI4_FRAMETYPE_BIDIR)
ctx               124 libavcodec/indeo4.c         ctx->has_b_frames = 1;
ctx               126 libavcodec/indeo4.c     ctx->has_transp = get_bits1(&ctx->gb);
ctx               129 libavcodec/indeo4.c     if (get_bits1(&ctx->gb)) {
ctx               134 libavcodec/indeo4.c     ctx->data_size = get_bits1(&ctx->gb) ? get_bits(&ctx->gb, 24) : 0;
ctx               137 libavcodec/indeo4.c     if (ctx->frame_type >= IVI4_FRAMETYPE_NULL_FIRST) {
ctx               145 libavcodec/indeo4.c     if (get_bits1(&ctx->gb)) {
ctx               146 libavcodec/indeo4.c         skip_bits_long(&ctx->gb, 32);
ctx               150 libavcodec/indeo4.c     pic_size_indx = get_bits(&ctx->gb, 3);
ctx               152 libavcodec/indeo4.c         pic_conf.pic_height = get_bits(&ctx->gb, 16);
ctx               153 libavcodec/indeo4.c         pic_conf.pic_width  = get_bits(&ctx->gb, 16);
ctx               160 libavcodec/indeo4.c     ctx->uses_tiling = get_bits1(&ctx->gb);
ctx               161 libavcodec/indeo4.c     if (ctx->uses_tiling) {
ctx               162 libavcodec/indeo4.c         pic_conf.tile_height = scale_tile_size(pic_conf.pic_height, get_bits(&ctx->gb, 4));
ctx               163 libavcodec/indeo4.c         pic_conf.tile_width  = scale_tile_size(pic_conf.pic_width,  get_bits(&ctx->gb, 4));
ctx               170 libavcodec/indeo4.c     if (get_bits(&ctx->gb, 2)) {
ctx               178 libavcodec/indeo4.c     pic_conf.luma_bands = decode_plane_subdivision(&ctx->gb);
ctx               181 libavcodec/indeo4.c         pic_conf.chroma_bands = decode_plane_subdivision(&ctx->gb);
ctx               189 libavcodec/indeo4.c     ctx->is_scalable = pic_conf.luma_bands != 1 || pic_conf.chroma_bands != 1;
ctx               190 libavcodec/indeo4.c     if (ctx->is_scalable && (pic_conf.luma_bands != 4 || pic_conf.chroma_bands != 1)) {
ctx               197 libavcodec/indeo4.c     if (ivi_pic_config_cmp(&pic_conf, &ctx->pic_conf)) {
ctx               198 libavcodec/indeo4.c         if (ff_ivi_init_planes(avctx, ctx->planes, &pic_conf, 1)) {
ctx               200 libavcodec/indeo4.c             ctx->pic_conf.luma_bands = 0;
ctx               204 libavcodec/indeo4.c         ctx->pic_conf = pic_conf;
ctx               209 libavcodec/indeo4.c                 ctx->planes[p].bands[i].mb_size  = !p ? (!ctx->is_scalable ? 16 : 8) : 4;
ctx               210 libavcodec/indeo4.c                 ctx->planes[p].bands[i].blk_size = !p ? 8 : 4;
ctx               214 libavcodec/indeo4.c         if (ff_ivi_init_tiles(ctx->planes, ctx->pic_conf.tile_width,
ctx               215 libavcodec/indeo4.c                               ctx->pic_conf.tile_height)) {
ctx               222 libavcodec/indeo4.c     ctx->frame_num = get_bits1(&ctx->gb) ? get_bits(&ctx->gb, 20) : 0;
ctx               225 libavcodec/indeo4.c     if (get_bits1(&ctx->gb))
ctx               226 libavcodec/indeo4.c         skip_bits(&ctx->gb, 8);
ctx               229 libavcodec/indeo4.c     if (ff_ivi_dec_huff_desc(&ctx->gb, get_bits1(&ctx->gb), IVI_MB_HUFF,  &ctx->mb_vlc,  avctx) ||
ctx               230 libavcodec/indeo4.c         ff_ivi_dec_huff_desc(&ctx->gb, get_bits1(&ctx->gb), IVI_BLK_HUFF, &ctx->blk_vlc, avctx))
ctx               233 libavcodec/indeo4.c     ctx->rvmap_sel = get_bits1(&ctx->gb) ? get_bits(&ctx->gb, 3) : 8;
ctx               235 libavcodec/indeo4.c     ctx->in_imf = get_bits1(&ctx->gb);
ctx               236 libavcodec/indeo4.c     ctx->in_q   = get_bits1(&ctx->gb);
ctx               238 libavcodec/indeo4.c     ctx->pic_glob_quant = get_bits(&ctx->gb, 5);
ctx               241 libavcodec/indeo4.c     ctx->unknown1 = get_bits1(&ctx->gb) ? get_bits(&ctx->gb, 3) : 0;
ctx               243 libavcodec/indeo4.c     ctx->checksum = get_bits1(&ctx->gb) ? get_bits(&ctx->gb, 16) : 0;
ctx               246 libavcodec/indeo4.c     while (get_bits1(&ctx->gb)) {
ctx               248 libavcodec/indeo4.c         if (get_bits_left(&ctx->gb) < 10)
ctx               250 libavcodec/indeo4.c         skip_bits(&ctx->gb, 8);
ctx               253 libavcodec/indeo4.c     if (get_bits1(&ctx->gb)) {
ctx               257 libavcodec/indeo4.c     align_get_bits(&ctx->gb);
ctx               271 libavcodec/indeo4.c static int decode_band_hdr(IVI45DecContext *ctx, IVIBandDesc *arg_band,
ctx               280 libavcodec/indeo4.c     plane    = get_bits(&ctx->gb, 2);
ctx               281 libavcodec/indeo4.c     band_num = get_bits(&ctx->gb, 4);
ctx               287 libavcodec/indeo4.c     band->is_empty = get_bits1(&ctx->gb);
ctx               292 libavcodec/indeo4.c         if (get_bits1(&ctx->gb))
ctx               293 libavcodec/indeo4.c             skip_bits(&ctx->gb, 16);
ctx               295 libavcodec/indeo4.c         band->is_halfpel = get_bits(&ctx->gb, 2);
ctx               302 libavcodec/indeo4.c             ctx->uses_fullpel = 1;
ctx               304 libavcodec/indeo4.c         band->checksum_present = get_bits1(&ctx->gb);
ctx               306 libavcodec/indeo4.c             band->checksum = get_bits(&ctx->gb, 16);
ctx               308 libavcodec/indeo4.c         indx = get_bits(&ctx->gb, 2);
ctx               316 libavcodec/indeo4.c         band->inherit_mv     = get_bits1(&ctx->gb);
ctx               317 libavcodec/indeo4.c         band->inherit_qdelta = get_bits1(&ctx->gb);
ctx               319 libavcodec/indeo4.c         band->glob_quant = get_bits(&ctx->gb, 5);
ctx               321 libavcodec/indeo4.c         if (!get_bits1(&ctx->gb) || ctx->frame_type == IVI4_FRAMETYPE_INTRA) {
ctx               322 libavcodec/indeo4.c             transform_id = get_bits(&ctx->gb, 5);
ctx               339 libavcodec/indeo4.c                 ctx->uses_haar = 1;
ctx               355 libavcodec/indeo4.c             scan_indx = get_bits(&ctx->gb, 4);
ctx               373 libavcodec/indeo4.c             quant_mat = get_bits(&ctx->gb, 5);
ctx               407 libavcodec/indeo4.c         if (!get_bits1(&ctx->gb))
ctx               408 libavcodec/indeo4.c             arg_band->blk_vlc.tab = ctx->blk_vlc.tab;
ctx               410 libavcodec/indeo4.c             if (ff_ivi_dec_huff_desc(&ctx->gb, 1, IVI_BLK_HUFF,
ctx               415 libavcodec/indeo4.c         band->rvmap_sel = get_bits1(&ctx->gb) ? get_bits(&ctx->gb, 3) : 8;
ctx               419 libavcodec/indeo4.c         if (get_bits1(&ctx->gb)) {
ctx               420 libavcodec/indeo4.c             band->num_corr = get_bits(&ctx->gb, 8); /* get number of correction pairs */
ctx               429 libavcodec/indeo4.c                 band->corr[i] = get_bits(&ctx->gb, 8);
ctx               445 libavcodec/indeo4.c     align_get_bits(&ctx->gb);
ctx               469 libavcodec/indeo4.c static int decode_mb_info(IVI45DecContext *ctx, IVIBandDesc *band,
ctx               482 libavcodec/indeo4.c     mb_type_bits = ctx->frame_type == IVI4_FRAMETYPE_BIDIR ? 2 : 1;
ctx               485 libavcodec/indeo4.c     mv_scale = (ctx->planes[0].bands[0].mb_size >> 3) - (band->mb_size >> 3);
ctx               503 libavcodec/indeo4.c             if (get_bits_left(&ctx->gb) < 1) {
ctx               508 libavcodec/indeo4.c             if (get_bits1(&ctx->gb)) {
ctx               509 libavcodec/indeo4.c                 if (ctx->frame_type == IVI4_FRAMETYPE_INTRA) {
ctx               517 libavcodec/indeo4.c                 if (!band->plane && !band->band_num && ctx->in_q) {
ctx               518 libavcodec/indeo4.c                     mb->q_delta = get_vlc2(&ctx->gb, ctx->mb_vlc.tab->table,
ctx               542 libavcodec/indeo4.c                 } else if (ctx->frame_type == IVI4_FRAMETYPE_INTRA ||
ctx               543 libavcodec/indeo4.c                            ctx->frame_type == IVI4_FRAMETYPE_INTRA1) {
ctx               546 libavcodec/indeo4.c                     mb->type = get_bits(&ctx->gb, mb_type_bits);
ctx               549 libavcodec/indeo4.c                 mb->cbp = get_bits(&ctx->gb, blks_per_mb);
ctx               555 libavcodec/indeo4.c                            ctx->in_q)) {
ctx               556 libavcodec/indeo4.c                     mb->q_delta = get_vlc2(&ctx->gb, ctx->mb_vlc.tab->table,
ctx               576 libavcodec/indeo4.c                         mv_delta = get_vlc2(&ctx->gb, ctx->mb_vlc.tab->table,
ctx               579 libavcodec/indeo4.c                         mv_delta = get_vlc2(&ctx->gb, ctx->mb_vlc.tab->table,
ctx               585 libavcodec/indeo4.c                             mv_delta = get_vlc2(&ctx->gb,
ctx               586 libavcodec/indeo4.c                                                 ctx->mb_vlc.tab->table,
ctx               589 libavcodec/indeo4.c                             mv_delta = get_vlc2(&ctx->gb,
ctx               590 libavcodec/indeo4.c                                                 ctx->mb_vlc.tab->table,
ctx               624 libavcodec/indeo4.c     align_get_bits(&ctx->gb);
ctx               635 libavcodec/indeo4.c static void switch_buffers(IVI45DecContext *ctx)
ctx               639 libavcodec/indeo4.c     switch (ctx->prev_frame_type) {
ctx               647 libavcodec/indeo4.c     switch (ctx->frame_type) {
ctx               656 libavcodec/indeo4.c         FFSWAP(int, ctx->dst_buf, ctx->ref_buf);
ctx               658 libavcodec/indeo4.c         FFSWAP(int, ctx->ref_buf, ctx->b_ref_buf);
ctx               659 libavcodec/indeo4.c         FFSWAP(int, ctx->dst_buf, ctx->ref_buf);
ctx               664 libavcodec/indeo4.c static int is_nonnull_frame(IVI45DecContext *ctx)
ctx               666 libavcodec/indeo4.c     return ctx->frame_type < IVI4_FRAMETYPE_NULL_FIRST;
ctx               672 libavcodec/indeo4.c     IVI45DecContext *ctx = avctx->priv_data;
ctx               677 libavcodec/indeo4.c     memcpy(ctx->rvmap_tabs, ff_ivi_rvmap_tabs, sizeof(ff_ivi_rvmap_tabs));
ctx               681 libavcodec/indeo4.c     ctx->pic_conf.pic_width  = 0;
ctx               682 libavcodec/indeo4.c     ctx->pic_conf.pic_height = 0;
ctx               686 libavcodec/indeo4.c     ctx->decode_pic_hdr   = decode_pic_hdr;
ctx               687 libavcodec/indeo4.c     ctx->decode_band_hdr  = decode_band_hdr;
ctx               688 libavcodec/indeo4.c     ctx->decode_mb_info   = decode_mb_info;
ctx               689 libavcodec/indeo4.c     ctx->switch_buffers   = switch_buffers;
ctx               690 libavcodec/indeo4.c     ctx->is_nonnull_frame = is_nonnull_frame;
ctx               692 libavcodec/indeo4.c     ctx->is_indeo4 = 1;
ctx               693 libavcodec/indeo4.c     ctx->show_indeo4_info = 1;
ctx               695 libavcodec/indeo4.c     ctx->dst_buf   = 0;
ctx               696 libavcodec/indeo4.c     ctx->ref_buf   = 1;
ctx               697 libavcodec/indeo4.c     ctx->b_ref_buf = 3; /* buffer 2 is used for scalability mode */
ctx               698 libavcodec/indeo4.c     ctx->p_frame = av_frame_alloc();
ctx               699 libavcodec/indeo4.c     if (!ctx->p_frame)
ctx                59 libavcodec/indeo5.c static int decode_gop_header(IVI45DecContext *ctx, AVCodecContext *avctx)
ctx                66 libavcodec/indeo5.c     ctx->gop_flags = get_bits(&ctx->gb, 8);
ctx                68 libavcodec/indeo5.c     ctx->gop_hdr_size = (ctx->gop_flags & 1) ? get_bits(&ctx->gb, 16) : 0;
ctx                70 libavcodec/indeo5.c     if (ctx->gop_flags & IVI5_IS_PROTECTED)
ctx                71 libavcodec/indeo5.c         ctx->lock_word = get_bits_long(&ctx->gb, 32);
ctx                73 libavcodec/indeo5.c     tile_size = (ctx->gop_flags & 0x40) ? 64 << get_bits(&ctx->gb, 2) : 0;
ctx                81 libavcodec/indeo5.c     pic_conf.luma_bands   = get_bits(&ctx->gb, 2) * 3 + 1;
ctx                82 libavcodec/indeo5.c     pic_conf.chroma_bands = get_bits1(&ctx->gb)   * 3 + 1;
ctx                90 libavcodec/indeo5.c     pic_size_indx = get_bits(&ctx->gb, 4);
ctx                92 libavcodec/indeo5.c         pic_conf.pic_height = get_bits(&ctx->gb, 13);
ctx                93 libavcodec/indeo5.c         pic_conf.pic_width  = get_bits(&ctx->gb, 13);
ctx                99 libavcodec/indeo5.c     if (ctx->gop_flags & 2) {
ctx               115 libavcodec/indeo5.c     if (ivi_pic_config_cmp(&pic_conf, &ctx->pic_conf) || ctx->gop_invalid) {
ctx               116 libavcodec/indeo5.c         result = ff_ivi_init_planes(avctx, ctx->planes, &pic_conf, 0);
ctx               121 libavcodec/indeo5.c         ctx->pic_conf = pic_conf;
ctx               122 libavcodec/indeo5.c         ctx->is_scalable = is_scalable;
ctx               128 libavcodec/indeo5.c             band = &ctx->planes[p].bands[i];
ctx               130 libavcodec/indeo5.c             band->is_halfpel = get_bits1(&ctx->gb);
ctx               132 libavcodec/indeo5.c             mb_size  = get_bits1(&ctx->gb);
ctx               133 libavcodec/indeo5.c             blk_size = 8 >> get_bits1(&ctx->gb);
ctx               147 libavcodec/indeo5.c             if (get_bits1(&ctx->gb)) {
ctx               221 libavcodec/indeo5.c             if (get_bits(&ctx->gb, 2)) {
ctx               230 libavcodec/indeo5.c         band1 = &ctx->planes[1].bands[i];
ctx               231 libavcodec/indeo5.c         band2 = &ctx->planes[2].bands[i];
ctx               251 libavcodec/indeo5.c         result = ff_ivi_init_tiles(ctx->planes, pic_conf.tile_width,
ctx               260 libavcodec/indeo5.c     if (ctx->gop_flags & 8) {
ctx               261 libavcodec/indeo5.c         if (get_bits(&ctx->gb, 3)) {
ctx               266 libavcodec/indeo5.c         if (get_bits1(&ctx->gb))
ctx               267 libavcodec/indeo5.c             skip_bits(&ctx->gb, 24); /* skip transparency fill color */
ctx               270 libavcodec/indeo5.c     align_get_bits(&ctx->gb);
ctx               272 libavcodec/indeo5.c     skip_bits(&ctx->gb, 23); /* FIXME: unknown meaning */
ctx               275 libavcodec/indeo5.c     if (get_bits1(&ctx->gb)) {
ctx               277 libavcodec/indeo5.c             i = get_bits(&ctx->gb, 16);
ctx               281 libavcodec/indeo5.c     align_get_bits(&ctx->gb);
ctx               314 libavcodec/indeo5.c static int decode_pic_hdr(IVI45DecContext *ctx, AVCodecContext *avctx)
ctx               318 libavcodec/indeo5.c     if (get_bits(&ctx->gb, 5) != 0x1F) {
ctx               323 libavcodec/indeo5.c     ctx->prev_frame_type = ctx->frame_type;
ctx               324 libavcodec/indeo5.c     ctx->frame_type      = get_bits(&ctx->gb, 3);
ctx               325 libavcodec/indeo5.c     if (ctx->frame_type >= 5) {
ctx               326 libavcodec/indeo5.c         av_log(avctx, AV_LOG_ERROR, "Invalid frame type: %d \n", ctx->frame_type);
ctx               327 libavcodec/indeo5.c         ctx->frame_type = FRAMETYPE_INTRA;
ctx               331 libavcodec/indeo5.c     ctx->frame_num = get_bits(&ctx->gb, 8);
ctx               333 libavcodec/indeo5.c     if (ctx->frame_type == FRAMETYPE_INTRA) {
ctx               334 libavcodec/indeo5.c         if ((ret = decode_gop_header(ctx, avctx)) < 0) {
ctx               336 libavcodec/indeo5.c             ctx->gop_invalid = 1;
ctx               339 libavcodec/indeo5.c         ctx->gop_invalid = 0;
ctx               342 libavcodec/indeo5.c     if (ctx->frame_type == FRAMETYPE_INTER_SCAL && !ctx->is_scalable) {
ctx               344 libavcodec/indeo5.c         ctx->frame_type = FRAMETYPE_INTER;
ctx               348 libavcodec/indeo5.c     if (ctx->frame_type != FRAMETYPE_NULL) {
ctx               349 libavcodec/indeo5.c         ctx->frame_flags = get_bits(&ctx->gb, 8);
ctx               351 libavcodec/indeo5.c         ctx->pic_hdr_size = (ctx->frame_flags & 1) ? get_bits(&ctx->gb, 24) : 0;
ctx               353 libavcodec/indeo5.c         ctx->checksum = (ctx->frame_flags & 0x10) ? get_bits(&ctx->gb, 16) : 0;
ctx               356 libavcodec/indeo5.c         if (ctx->frame_flags & 0x20)
ctx               357 libavcodec/indeo5.c             skip_hdr_extension(&ctx->gb); /* XXX: untested */
ctx               360 libavcodec/indeo5.c         ret = ff_ivi_dec_huff_desc(&ctx->gb, ctx->frame_flags & 0x40,
ctx               361 libavcodec/indeo5.c                                    IVI_MB_HUFF, &ctx->mb_vlc, avctx);
ctx               365 libavcodec/indeo5.c         skip_bits(&ctx->gb, 3); /* FIXME: unknown meaning! */
ctx               368 libavcodec/indeo5.c     align_get_bits(&ctx->gb);
ctx               382 libavcodec/indeo5.c static int decode_band_hdr(IVI45DecContext *ctx, IVIBandDesc *band,
ctx               388 libavcodec/indeo5.c     band_flags = get_bits(&ctx->gb, 8);
ctx               395 libavcodec/indeo5.c     band->data_size = (ctx->frame_flags & 0x80) ? get_bits(&ctx->gb, 24) : 0;
ctx               405 libavcodec/indeo5.c         band->num_corr = get_bits(&ctx->gb, 8); /* get number of correction pairs */
ctx               414 libavcodec/indeo5.c             band->corr[i] = get_bits(&ctx->gb, 8);
ctx               418 libavcodec/indeo5.c     band->rvmap_sel = (band_flags & 0x40) ? get_bits(&ctx->gb, 3) : 8;
ctx               421 libavcodec/indeo5.c     ret = ff_ivi_dec_huff_desc(&ctx->gb, band_flags & 0x80, IVI_BLK_HUFF,
ctx               426 libavcodec/indeo5.c     band->checksum_present = get_bits1(&ctx->gb);
ctx               428 libavcodec/indeo5.c         band->checksum = get_bits(&ctx->gb, 16);
ctx               430 libavcodec/indeo5.c     band->glob_quant = get_bits(&ctx->gb, 5);
ctx               434 libavcodec/indeo5.c         align_get_bits(&ctx->gb);
ctx               435 libavcodec/indeo5.c         skip_hdr_extension(&ctx->gb);
ctx               438 libavcodec/indeo5.c     align_get_bits(&ctx->gb);
ctx               454 libavcodec/indeo5.c static int decode_mb_info(IVI45DecContext *ctx, IVIBandDesc *band,
ctx               477 libavcodec/indeo5.c     mv_scale = (ctx->planes[0].bands[0].mb_size >> 3) - (band->mb_size >> 3);
ctx               488 libavcodec/indeo5.c             if (get_bits1(&ctx->gb)) {
ctx               489 libavcodec/indeo5.c                 if (ctx->frame_type == FRAMETYPE_INTRA) {
ctx               497 libavcodec/indeo5.c                 if (!band->plane && !band->band_num && (ctx->frame_flags & 8)) {
ctx               498 libavcodec/indeo5.c                     mb->q_delta = get_vlc2(&ctx->gb, ctx->mb_vlc.tab->table,
ctx               517 libavcodec/indeo5.c                 } else if (ctx->frame_type == FRAMETYPE_INTRA) {
ctx               520 libavcodec/indeo5.c                     mb->type = get_bits1(&ctx->gb);
ctx               524 libavcodec/indeo5.c                 mb->cbp = get_bits(&ctx->gb, blks_per_mb);
ctx               531 libavcodec/indeo5.c                                            (ctx->frame_flags & 8))) {
ctx               532 libavcodec/indeo5.c                         mb->q_delta = get_vlc2(&ctx->gb, ctx->mb_vlc.tab->table,
ctx               552 libavcodec/indeo5.c                         mv_delta = get_vlc2(&ctx->gb, ctx->mb_vlc.tab->table,
ctx               555 libavcodec/indeo5.c                         mv_delta = get_vlc2(&ctx->gb, ctx->mb_vlc.tab->table,
ctx               582 libavcodec/indeo5.c     align_get_bits(&ctx->gb);
ctx               593 libavcodec/indeo5.c static void switch_buffers(IVI45DecContext *ctx)
ctx               595 libavcodec/indeo5.c     switch (ctx->prev_frame_type) {
ctx               598 libavcodec/indeo5.c         ctx->buf_switch ^= 1;
ctx               599 libavcodec/indeo5.c         ctx->dst_buf = ctx->buf_switch;
ctx               600 libavcodec/indeo5.c         ctx->ref_buf = ctx->buf_switch ^ 1;
ctx               603 libavcodec/indeo5.c         if (!ctx->inter_scal) {
ctx               604 libavcodec/indeo5.c             ctx->ref2_buf   = 2;
ctx               605 libavcodec/indeo5.c             ctx->inter_scal = 1;
ctx               607 libavcodec/indeo5.c         FFSWAP(int, ctx->dst_buf, ctx->ref2_buf);
ctx               608 libavcodec/indeo5.c         ctx->ref_buf = ctx->ref2_buf;
ctx               614 libavcodec/indeo5.c     switch (ctx->frame_type) {
ctx               616 libavcodec/indeo5.c         ctx->buf_switch = 0;
ctx               619 libavcodec/indeo5.c         ctx->inter_scal = 0;
ctx               620 libavcodec/indeo5.c         ctx->dst_buf = ctx->buf_switch;
ctx               621 libavcodec/indeo5.c         ctx->ref_buf = ctx->buf_switch ^ 1;
ctx               631 libavcodec/indeo5.c static int is_nonnull_frame(IVI45DecContext *ctx)
ctx               633 libavcodec/indeo5.c     return ctx->frame_type != FRAMETYPE_NULL;
ctx               642 libavcodec/indeo5.c     IVI45DecContext  *ctx = avctx->priv_data;
ctx               645 libavcodec/indeo5.c     ctx->gop_invalid = 1;
ctx               650 libavcodec/indeo5.c     memcpy(ctx->rvmap_tabs, ff_ivi_rvmap_tabs, sizeof(ff_ivi_rvmap_tabs));
ctx               655 libavcodec/indeo5.c     ctx->pic_conf.pic_width     = avctx->width;
ctx               656 libavcodec/indeo5.c     ctx->pic_conf.pic_height    = avctx->height;
ctx               657 libavcodec/indeo5.c     ctx->pic_conf.chroma_width  = (avctx->width  + 3) >> 2;
ctx               658 libavcodec/indeo5.c     ctx->pic_conf.chroma_height = (avctx->height + 3) >> 2;
ctx               659 libavcodec/indeo5.c     ctx->pic_conf.tile_width    = avctx->width;
ctx               660 libavcodec/indeo5.c     ctx->pic_conf.tile_height   = avctx->height;
ctx               661 libavcodec/indeo5.c     ctx->pic_conf.luma_bands    = ctx->pic_conf.chroma_bands = 1;
ctx               663 libavcodec/indeo5.c     result = ff_ivi_init_planes(avctx, ctx->planes, &ctx->pic_conf, 0);
ctx               669 libavcodec/indeo5.c     ctx->buf_switch = 0;
ctx               670 libavcodec/indeo5.c     ctx->inter_scal = 0;
ctx               672 libavcodec/indeo5.c     ctx->decode_pic_hdr   = decode_pic_hdr;
ctx               673 libavcodec/indeo5.c     ctx->decode_band_hdr  = decode_band_hdr;
ctx               674 libavcodec/indeo5.c     ctx->decode_mb_info   = decode_mb_info;
ctx               675 libavcodec/indeo5.c     ctx->switch_buffers   = switch_buffers;
ctx               676 libavcodec/indeo5.c     ctx->is_nonnull_frame = is_nonnull_frame;
ctx               678 libavcodec/indeo5.c     ctx->is_indeo4 = 0;
ctx                84 libavcodec/internal.h #   define ff_tlog(ctx, ...) av_log(ctx, AV_LOG_TRACE, __VA_ARGS__)
ctx                86 libavcodec/internal.h #   define ff_tlog(ctx, ...) do { } while(0)
ctx               391 libavcodec/internal.h int ff_int_from_list_or_default(void *ctx, const char * val_name, int val,
ctx               935 libavcodec/ivi.c static void *prepare_buf(IVI45DecContext *ctx, IVIBandDesc *band, int i)
ctx               937 libavcodec/ivi.c     if (ctx->pic_conf.luma_bands <= 1 && i == 2)
ctx               952 libavcodec/ivi.c static int decode_band(IVI45DecContext *ctx,
ctx               958 libavcodec/ivi.c     band->buf     = prepare_buf(ctx, band, ctx->dst_buf);
ctx               963 libavcodec/ivi.c     if (ctx->is_indeo4 && ctx->frame_type == IVI4_FRAMETYPE_BIDIR) {
ctx               964 libavcodec/ivi.c         band->ref_buf   = prepare_buf(ctx, band, ctx->b_ref_buf);
ctx               965 libavcodec/ivi.c         band->b_ref_buf = prepare_buf(ctx, band, ctx->ref_buf);
ctx               969 libavcodec/ivi.c         band->ref_buf   = prepare_buf(ctx, band, ctx->ref_buf);
ctx               974 libavcodec/ivi.c     band->data_ptr  = ctx->frame_data + (get_bits_count(&ctx->gb) >> 3);
ctx               976 libavcodec/ivi.c     result = ctx->decode_band_hdr(ctx, band, avctx);
ctx               988 libavcodec/ivi.c     band->rv_map = &ctx->rvmap_tabs[band->rvmap_sel];
ctx              1002 libavcodec/ivi.c     pos = get_bits_count(&ctx->gb);
ctx              1012 libavcodec/ivi.c         tile->is_empty = get_bits1(&ctx->gb);
ctx              1015 libavcodec/ivi.c                                       (ctx->planes[0].bands[0].mb_size >> 3) - (band->mb_size >> 3));
ctx              1020 libavcodec/ivi.c             tile->data_size = ivi_dec_tile_data_size(&ctx->gb);
ctx              1027 libavcodec/ivi.c             result = ctx->decode_mb_info(ctx, band, tile, avctx);
ctx              1031 libavcodec/ivi.c             result = ivi_decode_blocks(&ctx->gb, band, tile, avctx);
ctx              1038 libavcodec/ivi.c             if (((get_bits_count(&ctx->gb) - pos) >> 3) != tile->data_size) {
ctx              1074 libavcodec/ivi.c     align_get_bits(&ctx->gb);
ctx              1082 libavcodec/ivi.c     IVI45DecContext *ctx = avctx->priv_data;
ctx              1088 libavcodec/ivi.c     result = init_get_bits8(&ctx->gb, buf, buf_size);
ctx              1091 libavcodec/ivi.c     ctx->frame_data = buf;
ctx              1092 libavcodec/ivi.c     ctx->frame_size = buf_size;
ctx              1094 libavcodec/ivi.c     result = ctx->decode_pic_hdr(ctx, avctx);
ctx              1100 libavcodec/ivi.c     if (ctx->gop_invalid)
ctx              1103 libavcodec/ivi.c     if (ctx->is_indeo4 && ctx->frame_type == IVI4_FRAMETYPE_NULL_LAST) {
ctx              1104 libavcodec/ivi.c         if (ctx->got_p_frame) {
ctx              1105 libavcodec/ivi.c             av_frame_move_ref(data, ctx->p_frame);
ctx              1107 libavcodec/ivi.c             ctx->got_p_frame = 0;
ctx              1114 libavcodec/ivi.c     if (ctx->gop_flags & IVI5_IS_PROTECTED) {
ctx              1119 libavcodec/ivi.c     if (!ctx->planes[0].bands) {
ctx              1124 libavcodec/ivi.c     ctx->switch_buffers(ctx);
ctx              1126 libavcodec/ivi.c     if (ctx->is_nonnull_frame(ctx)) {
ctx              1127 libavcodec/ivi.c         ctx->buf_invalid[ctx->dst_buf] = 1;
ctx              1129 libavcodec/ivi.c             for (b = 0; b < ctx->planes[p].num_bands; b++) {
ctx              1130 libavcodec/ivi.c                 result = decode_band(ctx, &ctx->planes[p].bands[b], avctx);
ctx              1138 libavcodec/ivi.c         ctx->buf_invalid[ctx->dst_buf] = 0;
ctx              1140 libavcodec/ivi.c         if (ctx->is_scalable)
ctx              1144 libavcodec/ivi.c             if (!ctx->planes[p].bands[0].buf)
ctx              1148 libavcodec/ivi.c     if (ctx->buf_invalid[ctx->dst_buf])
ctx              1151 libavcodec/ivi.c     if (!ctx->is_nonnull_frame(ctx))
ctx              1154 libavcodec/ivi.c     result = ff_set_dimensions(avctx, ctx->planes[0].width, ctx->planes[0].height);
ctx              1161 libavcodec/ivi.c     if (ctx->is_scalable) {
ctx              1162 libavcodec/ivi.c         if (ctx->is_indeo4)
ctx              1163 libavcodec/ivi.c             ff_ivi_recompose_haar(&ctx->planes[0], frame->data[0], frame->linesize[0]);
ctx              1165 libavcodec/ivi.c             ff_ivi_recompose53   (&ctx->planes[0], frame->data[0], frame->linesize[0]);
ctx              1167 libavcodec/ivi.c         ivi_output_plane(&ctx->planes[0], frame->data[0], frame->linesize[0]);
ctx              1170 libavcodec/ivi.c     ivi_output_plane(&ctx->planes[2], frame->data[1], frame->linesize[1]);
ctx              1171 libavcodec/ivi.c     ivi_output_plane(&ctx->planes[1], frame->data[2], frame->linesize[2]);
ctx              1180 libavcodec/ivi.c     if (ctx->is_indeo4 && ctx->frame_type == IVI4_FRAMETYPE_INTRA) {
ctx              1184 libavcodec/ivi.c         while (get_bits(&ctx->gb, 8)) {
ctx              1185 libavcodec/ivi.c             if (get_bits_left(&ctx->gb) < 8)
ctx              1188 libavcodec/ivi.c         left = get_bits_count(&ctx->gb) & 0x18;
ctx              1189 libavcodec/ivi.c         skip_bits_long(&ctx->gb, 64 - left);
ctx              1190 libavcodec/ivi.c         if (get_bits_left(&ctx->gb) > 18 &&
ctx              1191 libavcodec/ivi.c             show_bits(&ctx->gb, 21) == 0xBFFF8) { // syncheader + inter type
ctx              1193 libavcodec/ivi.c             pkt.data = avpkt->data + (get_bits_count(&ctx->gb) >> 3);
ctx              1194 libavcodec/ivi.c             pkt.size = get_bits_left(&ctx->gb) >> 3;
ctx              1195 libavcodec/ivi.c             ctx->got_p_frame = 0;
ctx              1196 libavcodec/ivi.c             av_frame_unref(ctx->p_frame);
ctx              1197 libavcodec/ivi.c             ff_ivi_decode_frame(avctx, ctx->p_frame, &ctx->got_p_frame, &pkt);
ctx              1201 libavcodec/ivi.c     if (ctx->show_indeo4_info) {
ctx              1202 libavcodec/ivi.c         if (ctx->is_scalable)
ctx              1204 libavcodec/ivi.c         if (ctx->uses_tiling)
ctx              1206 libavcodec/ivi.c         if (ctx->has_b_frames)
ctx              1208 libavcodec/ivi.c         if (ctx->has_transp)
ctx              1210 libavcodec/ivi.c         if (ctx->uses_haar)
ctx              1212 libavcodec/ivi.c         if (ctx->uses_fullpel)
ctx              1214 libavcodec/ivi.c         ctx->show_indeo4_info = 0;
ctx              1225 libavcodec/ivi.c     IVI45DecContext *ctx = avctx->priv_data;
ctx              1227 libavcodec/ivi.c     ivi_free_buffers(&ctx->planes[0]);
ctx              1229 libavcodec/ivi.c     if (ctx->mb_vlc.cust_tab.table)
ctx              1230 libavcodec/ivi.c         ff_free_vlc(&ctx->mb_vlc.cust_tab);
ctx              1232 libavcodec/ivi.c     if (ctx->blk_vlc.cust_tab.table)
ctx              1233 libavcodec/ivi.c         ff_free_vlc(&ctx->blk_vlc.cust_tab);
ctx              1235 libavcodec/ivi.c     av_frame_free(&ctx->p_frame);
ctx               258 libavcodec/ivi.h     int             (*decode_pic_hdr)  (struct IVI45DecContext *ctx, AVCodecContext *avctx);
ctx               259 libavcodec/ivi.h     int             (*decode_band_hdr) (struct IVI45DecContext *ctx, IVIBandDesc *band, AVCodecContext *avctx);
ctx               260 libavcodec/ivi.h     int             (*decode_mb_info)  (struct IVI45DecContext *ctx, IVIBandDesc *band, IVITile *tile, AVCodecContext *avctx);
ctx               261 libavcodec/ivi.h     void            (*switch_buffers)  (struct IVI45DecContext *ctx);
ctx               262 libavcodec/ivi.h     int             (*is_nonnull_frame)(struct IVI45DecContext *ctx);
ctx               269 libavcodec/jpeg2000.h                                AVCodecContext *ctx);
ctx               259 libavcodec/jpeglsenc.c     JPEGLSContext *ctx = avctx->priv_data;
ctx               274 libavcodec/jpeglsenc.c         ctx->pred = avctx->prediction_method;
ctx               316 libavcodec/jpeglsenc.c     put_bits(&pb, 8, ctx->pred);
ctx               325 libavcodec/jpeglsenc.c     state->near = ctx->pred;
ctx               428 libavcodec/jpeglsenc.c static av_cold int encode_init_ls(AVCodecContext *ctx)
ctx               432 libavcodec/jpeglsenc.c     ctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
ctx               433 libavcodec/jpeglsenc.c     ctx->coded_frame->key_frame = 1;
ctx               437 libavcodec/jpeglsenc.c     if (ctx->pix_fmt != AV_PIX_FMT_GRAY8  &&
ctx               438 libavcodec/jpeglsenc.c         ctx->pix_fmt != AV_PIX_FMT_GRAY16 &&
ctx               439 libavcodec/jpeglsenc.c         ctx->pix_fmt != AV_PIX_FMT_RGB24  &&
ctx               440 libavcodec/jpeglsenc.c         ctx->pix_fmt != AV_PIX_FMT_BGR24) {
ctx               441 libavcodec/jpeglsenc.c         av_log(ctx, AV_LOG_ERROR,
ctx                73 libavcodec/kmvc.c static int kmvc_decode_intra_8x8(KmvcContext * ctx, int w, int h)
ctx                82 libavcodec/kmvc.c     kmvc_init_getbits(bb, &ctx->g);
ctx                86 libavcodec/kmvc.c             if (!bytestream2_get_bytes_left(&ctx->g)) {
ctx                87 libavcodec/kmvc.c                 av_log(ctx->avctx, AV_LOG_ERROR, "Data overrun\n");
ctx                90 libavcodec/kmvc.c             kmvc_getbit(bb, &ctx->g, res);
ctx                92 libavcodec/kmvc.c                 val = bytestream2_get_byte(&ctx->g);
ctx                94 libavcodec/kmvc.c                     BLK(ctx->cur, bx + (i & 0x7), by + (i >> 3)) = val;
ctx                99 libavcodec/kmvc.c                     kmvc_getbit(bb, &ctx->g, res);
ctx               101 libavcodec/kmvc.c                         kmvc_getbit(bb, &ctx->g, res);
ctx               103 libavcodec/kmvc.c                             val = bytestream2_get_byte(&ctx->g);
ctx               105 libavcodec/kmvc.c                                 BLK(ctx->cur, l0x + (j & 3), l0y + (j >> 2)) = val;
ctx               107 libavcodec/kmvc.c                             val = bytestream2_get_byte(&ctx->g);
ctx               111 libavcodec/kmvc.c                                 av_log(ctx->avctx, AV_LOG_ERROR, "Invalid MV\n");
ctx               115 libavcodec/kmvc.c                                 BLK(ctx->cur, l0x + (j & 3), l0y + (j >> 2)) =
ctx               116 libavcodec/kmvc.c                                     BLK(ctx->cur, l0x + (j & 3) - mx, l0y + (j >> 2) - my);
ctx               122 libavcodec/kmvc.c                             kmvc_getbit(bb, &ctx->g, res);
ctx               124 libavcodec/kmvc.c                                 kmvc_getbit(bb, &ctx->g, res);
ctx               126 libavcodec/kmvc.c                                     val = bytestream2_get_byte(&ctx->g);
ctx               127 libavcodec/kmvc.c                                     BLK(ctx->cur, l1x, l1y) = val;
ctx               128 libavcodec/kmvc.c                                     BLK(ctx->cur, l1x + 1, l1y) = val;
ctx               129 libavcodec/kmvc.c                                     BLK(ctx->cur, l1x, l1y + 1) = val;
ctx               130 libavcodec/kmvc.c                                     BLK(ctx->cur, l1x + 1, l1y + 1) = val;
ctx               132 libavcodec/kmvc.c                                     val = bytestream2_get_byte(&ctx->g);
ctx               136 libavcodec/kmvc.c                                         av_log(ctx->avctx, AV_LOG_ERROR, "Invalid MV\n");
ctx               139 libavcodec/kmvc.c                                     BLK(ctx->cur, l1x, l1y) = BLK(ctx->cur, l1x - mx, l1y - my);
ctx               140 libavcodec/kmvc.c                                     BLK(ctx->cur, l1x + 1, l1y) =
ctx               141 libavcodec/kmvc.c                                         BLK(ctx->cur, l1x + 1 - mx, l1y - my);
ctx               142 libavcodec/kmvc.c                                     BLK(ctx->cur, l1x, l1y + 1) =
ctx               143 libavcodec/kmvc.c                                         BLK(ctx->cur, l1x - mx, l1y + 1 - my);
ctx               144 libavcodec/kmvc.c                                     BLK(ctx->cur, l1x + 1, l1y + 1) =
ctx               145 libavcodec/kmvc.c                                         BLK(ctx->cur, l1x + 1 - mx, l1y + 1 - my);
ctx               148 libavcodec/kmvc.c                                 BLK(ctx->cur, l1x, l1y) = bytestream2_get_byte(&ctx->g);
ctx               149 libavcodec/kmvc.c                                 BLK(ctx->cur, l1x + 1, l1y) = bytestream2_get_byte(&ctx->g);
ctx               150 libavcodec/kmvc.c                                 BLK(ctx->cur, l1x, l1y + 1) = bytestream2_get_byte(&ctx->g);
ctx               151 libavcodec/kmvc.c                                 BLK(ctx->cur, l1x + 1, l1y + 1) = bytestream2_get_byte(&ctx->g);
ctx               162 libavcodec/kmvc.c static int kmvc_decode_inter_8x8(KmvcContext * ctx, int w, int h)
ctx               171 libavcodec/kmvc.c     kmvc_init_getbits(bb, &ctx->g);
ctx               175 libavcodec/kmvc.c             kmvc_getbit(bb, &ctx->g, res);
ctx               177 libavcodec/kmvc.c                 kmvc_getbit(bb, &ctx->g, res);
ctx               179 libavcodec/kmvc.c                     if (!bytestream2_get_bytes_left(&ctx->g)) {
ctx               180 libavcodec/kmvc.c                         av_log(ctx->avctx, AV_LOG_ERROR, "Data overrun\n");
ctx               183 libavcodec/kmvc.c                     val = bytestream2_get_byte(&ctx->g);
ctx               185 libavcodec/kmvc.c                         BLK(ctx->cur, bx + (i & 0x7), by + (i >> 3)) = val;
ctx               188 libavcodec/kmvc.c                         BLK(ctx->cur, bx + (i & 0x7), by + (i >> 3)) =
ctx               189 libavcodec/kmvc.c                             BLK(ctx->prev, bx + (i & 0x7), by + (i >> 3));
ctx               192 libavcodec/kmvc.c                 if (!bytestream2_get_bytes_left(&ctx->g)) {
ctx               193 libavcodec/kmvc.c                     av_log(ctx->avctx, AV_LOG_ERROR, "Data overrun\n");
ctx               199 libavcodec/kmvc.c                     kmvc_getbit(bb, &ctx->g, res);
ctx               201 libavcodec/kmvc.c                         kmvc_getbit(bb, &ctx->g, res);
ctx               203 libavcodec/kmvc.c                             val = bytestream2_get_byte(&ctx->g);
ctx               205 libavcodec/kmvc.c                                 BLK(ctx->cur, l0x + (j & 3), l0y + (j >> 2)) = val;
ctx               207 libavcodec/kmvc.c                             val = bytestream2_get_byte(&ctx->g);
ctx               211 libavcodec/kmvc.c                                 av_log(ctx->avctx, AV_LOG_ERROR, "Invalid MV\n");
ctx               215 libavcodec/kmvc.c                                 BLK(ctx->cur, l0x + (j & 3), l0y + (j >> 2)) =
ctx               216 libavcodec/kmvc.c                                     BLK(ctx->prev, l0x + (j & 3) + mx, l0y + (j >> 2) + my);
ctx               222 libavcodec/kmvc.c                             kmvc_getbit(bb, &ctx->g, res);
ctx               224 libavcodec/kmvc.c                                 kmvc_getbit(bb, &ctx->g, res);
ctx               226 libavcodec/kmvc.c                                     val = bytestream2_get_byte(&ctx->g);
ctx               227 libavcodec/kmvc.c                                     BLK(ctx->cur, l1x, l1y) = val;
ctx               228 libavcodec/kmvc.c                                     BLK(ctx->cur, l1x + 1, l1y) = val;
ctx               229 libavcodec/kmvc.c                                     BLK(ctx->cur, l1x, l1y + 1) = val;
ctx               230 libavcodec/kmvc.c                                     BLK(ctx->cur, l1x + 1, l1y + 1) = val;
ctx               232 libavcodec/kmvc.c                                     val = bytestream2_get_byte(&ctx->g);
ctx               236 libavcodec/kmvc.c                                         av_log(ctx->avctx, AV_LOG_ERROR, "Invalid MV\n");
ctx               239 libavcodec/kmvc.c                                     BLK(ctx->cur, l1x, l1y) = BLK(ctx->prev, l1x + mx, l1y + my);
ctx               240 libavcodec/kmvc.c                                     BLK(ctx->cur, l1x + 1, l1y) =
ctx               241 libavcodec/kmvc.c                                         BLK(ctx->prev, l1x + 1 + mx, l1y + my);
ctx               242 libavcodec/kmvc.c                                     BLK(ctx->cur, l1x, l1y + 1) =
ctx               243 libavcodec/kmvc.c                                         BLK(ctx->prev, l1x + mx, l1y + 1 + my);
ctx               244 libavcodec/kmvc.c                                     BLK(ctx->cur, l1x + 1, l1y + 1) =
ctx               245 libavcodec/kmvc.c                                         BLK(ctx->prev, l1x + 1 + mx, l1y + 1 + my);
ctx               248 libavcodec/kmvc.c                                 BLK(ctx->cur, l1x, l1y) = bytestream2_get_byte(&ctx->g);
ctx               249 libavcodec/kmvc.c                                 BLK(ctx->cur, l1x + 1, l1y) = bytestream2_get_byte(&ctx->g);
ctx               250 libavcodec/kmvc.c                                 BLK(ctx->cur, l1x, l1y + 1) = bytestream2_get_byte(&ctx->g);
ctx               251 libavcodec/kmvc.c                                 BLK(ctx->cur, l1x + 1, l1y + 1) = bytestream2_get_byte(&ctx->g);
ctx               265 libavcodec/kmvc.c     KmvcContext *const ctx = avctx->priv_data;
ctx               274 libavcodec/kmvc.c     bytestream2_init(&ctx->g, avpkt->data, avpkt->size);
ctx               279 libavcodec/kmvc.c     header = bytestream2_get_byte(&ctx->g);
ctx               282 libavcodec/kmvc.c     if (bytestream2_peek_byte(&ctx->g) == 127) {
ctx               283 libavcodec/kmvc.c         bytestream2_skip(&ctx->g, 3);
ctx               285 libavcodec/kmvc.c             ctx->pal[i + (header & 0x81)] = 0xFFU << 24 | bytestream2_get_be24(&ctx->g);
ctx               286 libavcodec/kmvc.c             bytestream2_skip(&ctx->g, 1);
ctx               288 libavcodec/kmvc.c         bytestream2_seek(&ctx->g, -127 * 4 - 3, SEEK_CUR);
ctx               302 libavcodec/kmvc.c         for (i = 1; i <= ctx->palsize; i++) {
ctx               303 libavcodec/kmvc.c             ctx->pal[i] = 0xFFU << 24 | bytestream2_get_be24(&ctx->g);
ctx               309 libavcodec/kmvc.c         memcpy(ctx->pal, pal, AVPALETTE_SIZE);
ctx               314 libavcodec/kmvc.c     if (ctx->setpal) {
ctx               315 libavcodec/kmvc.c         ctx->setpal = 0;
ctx               320 libavcodec/kmvc.c     memcpy(frame->data[1], ctx->pal, 1024);
ctx               322 libavcodec/kmvc.c     blocksize = bytestream2_get_byte(&ctx->g);
ctx               328 libavcodec/kmvc.c     memset(ctx->cur, 0, 320 * 200);
ctx               332 libavcodec/kmvc.c         memcpy(ctx->cur, ctx->prev, 320 * 200);
ctx               335 libavcodec/kmvc.c         kmvc_decode_intra_8x8(ctx, avctx->width, avctx->height);
ctx               338 libavcodec/kmvc.c         kmvc_decode_inter_8x8(ctx, avctx->width, avctx->height);
ctx               346 libavcodec/kmvc.c     src = ctx->cur;
ctx               354 libavcodec/kmvc.c     if (ctx->cur == ctx->frm0) {
ctx               355 libavcodec/kmvc.c         ctx->cur = ctx->frm1;
ctx               356 libavcodec/kmvc.c         ctx->prev = ctx->frm0;
ctx               358 libavcodec/kmvc.c         ctx->cur = ctx->frm0;
ctx               359 libavcodec/kmvc.c         ctx->prev = ctx->frm1;
ctx                43 libavcodec/libaomdec.c     AV1DecodeContext *ctx           = avctx->priv_data;
ctx                51 libavcodec/libaomdec.c     if (aom_codec_dec_init(&ctx->decoder, iface, &deccfg, 0) != AOM_CODEC_OK) {
ctx                52 libavcodec/libaomdec.c         const char *error = aom_codec_error(&ctx->decoder);
ctx               160 libavcodec/libaomdec.c     AV1DecodeContext *ctx = avctx->priv_data;
ctx               166 libavcodec/libaomdec.c     if (aom_codec_decode(&ctx->decoder, avpkt->data, avpkt->size, NULL) !=
ctx               168 libavcodec/libaomdec.c         const char *error  = aom_codec_error(&ctx->decoder);
ctx               169 libavcodec/libaomdec.c         const char *detail = aom_codec_error_detail(&ctx->decoder);
ctx               178 libavcodec/libaomdec.c     if ((img = aom_codec_get_frame(&ctx->decoder, &iter))) {
ctx               212 libavcodec/libaomdec.c     AV1DecodeContext *ctx = avctx->priv_data;
ctx               213 libavcodec/libaomdec.c     aom_codec_destroy(&ctx->decoder);
ctx               142 libavcodec/libaomenc.c     AOMContext *ctx    = avctx->priv_data;
ctx               143 libavcodec/libaomenc.c     const char *error  = aom_codec_error(&ctx->encoder);
ctx               144 libavcodec/libaomenc.c     const char *detail = aom_codec_error_detail(&ctx->encoder);
ctx               244 libavcodec/libaomenc.c     AOMContext *ctx = avctx->priv_data;
ctx               252 libavcodec/libaomenc.c     res = aom_codec_control(&ctx->encoder, id, val);
ctx               265 libavcodec/libaomenc.c     AOMContext *ctx = avctx->priv_data;
ctx               267 libavcodec/libaomenc.c     aom_codec_destroy(&ctx->encoder);
ctx               268 libavcodec/libaomenc.c     av_freep(&ctx->twopass_stats.buf);
ctx               270 libavcodec/libaomenc.c     free_frame_list(ctx->coded_frame_list);
ctx               271 libavcodec/libaomenc.c     av_bsf_free(&ctx->bsf);
ctx               279 libavcodec/libaomenc.c     AOMContext av_unused *ctx = avctx->priv_data;
ctx               363 libavcodec/libaomenc.c     AOMContext *ctx = avctx->priv_data;
ctx               369 libavcodec/libaomenc.c     if (ctx->tile_cols_log2 >= 0)
ctx               370 libavcodec/libaomenc.c         ctx->tile_cols = 1 << ctx->tile_cols_log2;
ctx               371 libavcodec/libaomenc.c     if (ctx->tile_rows_log2 >= 0)
ctx               372 libavcodec/libaomenc.c         ctx->tile_rows = 1 << ctx->tile_rows_log2;
ctx               374 libavcodec/libaomenc.c     if (ctx->tile_cols == 0) {
ctx               375 libavcodec/libaomenc.c         ctx->tile_cols = (avctx->width + AV1_MAX_TILE_WIDTH - 1) /
ctx               377 libavcodec/libaomenc.c         if (ctx->tile_cols > 1) {
ctx               379 libavcodec/libaomenc.c                    "columns to fill width.\n", ctx->tile_cols);
ctx               382 libavcodec/libaomenc.c     av_assert0(ctx->tile_cols > 0);
ctx               383 libavcodec/libaomenc.c     if (ctx->tile_rows == 0) {
ctx               386 libavcodec/libaomenc.c                      ctx->tile_cols - 1) / ctx->tile_cols, 128);
ctx               387 libavcodec/libaomenc.c         ctx->tile_rows =
ctx               390 libavcodec/libaomenc.c         if (ctx->tile_rows > 1) {
ctx               392 libavcodec/libaomenc.c                    "rows to fill area.\n", ctx->tile_rows);
ctx               395 libavcodec/libaomenc.c     av_assert0(ctx->tile_rows > 0);
ctx               397 libavcodec/libaomenc.c     if ((avctx->width  + 63) / 64 < ctx->tile_cols ||
ctx               398 libavcodec/libaomenc.c         (avctx->height + 63) / 64 < ctx->tile_rows) {
ctx               403 libavcodec/libaomenc.c     if (ctx->tile_cols > AV1_MAX_TILE_COLS ||
ctx               404 libavcodec/libaomenc.c         ctx->tile_rows > AV1_MAX_TILE_ROWS) {
ctx               410 libavcodec/libaomenc.c     if (avctx->width / ctx->tile_cols > AV1_MAX_TILE_WIDTH) {
ctx               417 libavcodec/libaomenc.c     ctx->superblock_size = AOM_SUPERBLOCK_SIZE_DYNAMIC;
ctx               419 libavcodec/libaomenc.c     if (ctx->tile_cols == 1 && ctx->tile_rows == 1) {
ctx               425 libavcodec/libaomenc.c         (avctx->width  + 127) / 128 >= ctx->tile_cols &&
ctx               426 libavcodec/libaomenc.c         (avctx->height + 127) / 128 >= ctx->tile_rows;
ctx               428 libavcodec/libaomenc.c     ctx->tile_cols_log2 = ctx->tile_cols == 1 ? 0 :
ctx               429 libavcodec/libaomenc.c         av_log2(ctx->tile_cols - 1) + 1;
ctx               430 libavcodec/libaomenc.c     ctx->tile_rows_log2 = ctx->tile_rows == 1 ? 0 :
ctx               431 libavcodec/libaomenc.c         av_log2(ctx->tile_rows - 1) + 1;
ctx               434 libavcodec/libaomenc.c                                         64, ctx->tile_cols_log2);
ctx               436 libavcodec/libaomenc.c                                         64, ctx->tile_rows_log2);
ctx               439 libavcodec/libaomenc.c     uniform_64x64_possible = uniform_cols == ctx->tile_cols &&
ctx               440 libavcodec/libaomenc.c                              uniform_rows == ctx->tile_rows;
ctx               444 libavcodec/libaomenc.c                                             128, ctx->tile_cols_log2);
ctx               446 libavcodec/libaomenc.c                                             128, ctx->tile_rows_log2);
ctx               449 libavcodec/libaomenc.c         uniform_128x128_possible = uniform_cols == ctx->tile_cols &&
ctx               450 libavcodec/libaomenc.c                                    uniform_rows == ctx->tile_rows;
ctx               456 libavcodec/libaomenc.c     ctx->uniform_tiles = 1;
ctx               460 libavcodec/libaomenc.c                ctx->tile_cols_log2, ctx->tile_rows_log2);
ctx               466 libavcodec/libaomenc.c                ctx->tile_cols_log2, ctx->tile_rows_log2);
ctx               467 libavcodec/libaomenc.c         ctx->superblock_size = AOM_SUPERBLOCK_SIZE_64X64;
ctx               473 libavcodec/libaomenc.c                ctx->tile_cols_log2, ctx->tile_rows_log2);
ctx               474 libavcodec/libaomenc.c         ctx->superblock_size = AOM_SUPERBLOCK_SIZE_128X128;
ctx               477 libavcodec/libaomenc.c     ctx->uniform_tiles = 0;
ctx               481 libavcodec/libaomenc.c         ctx->superblock_size = AOM_SUPERBLOCK_SIZE_128X128;
ctx               484 libavcodec/libaomenc.c         ctx->superblock_size = AOM_SUPERBLOCK_SIZE_64X64;
ctx               488 libavcodec/libaomenc.c            sb_size, sb_size, ctx->tile_cols, ctx->tile_rows);
ctx               490 libavcodec/libaomenc.c     enccfg->tile_width_count  = ctx->tile_cols;
ctx               491 libavcodec/libaomenc.c     enccfg->tile_height_count = ctx->tile_rows;
ctx               496 libavcodec/libaomenc.c     tile_size = sb_width / ctx->tile_cols;
ctx               497 libavcodec/libaomenc.c     rounding  = sb_width % ctx->tile_cols;
ctx               498 libavcodec/libaomenc.c     for (i = 0; i < ctx->tile_cols; i++) {
ctx               501 libavcodec/libaomenc.c              i > ctx->tile_cols - 1 - (rounding + 1) / 2);
ctx               504 libavcodec/libaomenc.c     tile_size = sb_height / ctx->tile_rows;
ctx               505 libavcodec/libaomenc.c     rounding  = sb_height % ctx->tile_rows;
ctx               506 libavcodec/libaomenc.c     for (i = 0; i < ctx->tile_rows; i++) {
ctx               509 libavcodec/libaomenc.c              i > ctx->tile_rows - 1 - (rounding + 1) / 2);
ctx               518 libavcodec/libaomenc.c     AOMContext *ctx = avctx->priv_data;
ctx               558 libavcodec/libaomenc.c     enccfg.g_usage        = ctx->usage;
ctx               560 libavcodec/libaomenc.c     if (ctx->lag_in_frames >= 0)
ctx               561 libavcodec/libaomenc.c         enccfg.g_lag_in_frames = ctx->lag_in_frames;
ctx               573 libavcodec/libaomenc.c     } else if (ctx->crf >= 0) {
ctx               584 libavcodec/libaomenc.c         ctx->crf = 32;
ctx               587 libavcodec/libaomenc.c                ctx->crf);
ctx               596 libavcodec/libaomenc.c         if (ctx->crf < enccfg.rc_min_quantizer || ctx->crf > enccfg.rc_max_quantizer) {
ctx               599 libavcodec/libaomenc.c                    ctx->crf, enccfg.rc_min_quantizer, enccfg.rc_max_quantizer);
ctx               604 libavcodec/libaomenc.c     enccfg.rc_dropframe_thresh = ctx->drop_threshold;
ctx               608 libavcodec/libaomenc.c     if (ctx->minsection_pct >= 0)
ctx               609 libavcodec/libaomenc.c         enccfg.rc_2pass_vbr_minsection_pct = ctx->minsection_pct;
ctx               613 libavcodec/libaomenc.c     if (ctx->maxsection_pct >= 0)
ctx               614 libavcodec/libaomenc.c         enccfg.rc_2pass_vbr_maxsection_pct = ctx->maxsection_pct;
ctx               627 libavcodec/libaomenc.c     if (ctx->rc_undershoot_pct >= 0)
ctx               628 libavcodec/libaomenc.c         enccfg.rc_undershoot_pct = ctx->rc_undershoot_pct;
ctx               629 libavcodec/libaomenc.c     if (ctx->rc_overshoot_pct >= 0)
ctx               630 libavcodec/libaomenc.c         enccfg.rc_overshoot_pct = ctx->rc_overshoot_pct;
ctx               648 libavcodec/libaomenc.c         ctx->twopass_stats.sz = strlen(avctx->stats_in) * 3 / 4;
ctx               649 libavcodec/libaomenc.c         ret                   = av_reallocp(&ctx->twopass_stats.buf, ctx->twopass_stats.sz);
ctx               653 libavcodec/libaomenc.c                    ctx->twopass_stats.sz);
ctx               654 libavcodec/libaomenc.c             ctx->twopass_stats.sz = 0;
ctx               657 libavcodec/libaomenc.c         decode_size = av_base64_decode(ctx->twopass_stats.buf, avctx->stats_in,
ctx               658 libavcodec/libaomenc.c                                        ctx->twopass_stats.sz);
ctx               664 libavcodec/libaomenc.c         ctx->twopass_stats.sz      = decode_size;
ctx               665 libavcodec/libaomenc.c         enccfg.rc_twopass_stats_in = ctx->twopass_stats;
ctx               674 libavcodec/libaomenc.c     enccfg.g_error_resilient = ctx->error_resilient;
ctx               682 libavcodec/libaomenc.c     res = aom_codec_enc_init(&ctx->encoder, iface, &enccfg, flags);
ctx               690 libavcodec/libaomenc.c     codecctl_int(avctx, AOME_SET_CPUUSED, ctx->cpu_used);
ctx               691 libavcodec/libaomenc.c     if (ctx->auto_alt_ref >= 0)
ctx               692 libavcodec/libaomenc.c         codecctl_int(avctx, AOME_SET_ENABLEAUTOALTREF, ctx->auto_alt_ref);
ctx               693 libavcodec/libaomenc.c     if (ctx->arnr_max_frames >= 0)
ctx               694 libavcodec/libaomenc.c         codecctl_int(avctx, AOME_SET_ARNR_MAXFRAMES,   ctx->arnr_max_frames);
ctx               695 libavcodec/libaomenc.c     if (ctx->arnr_strength >= 0)
ctx               696 libavcodec/libaomenc.c         codecctl_int(avctx, AOME_SET_ARNR_STRENGTH,    ctx->arnr_strength);
ctx               697 libavcodec/libaomenc.c     if (ctx->enable_cdef >= 0)
ctx               698 libavcodec/libaomenc.c         codecctl_int(avctx, AV1E_SET_ENABLE_CDEF, ctx->enable_cdef);
ctx               699 libavcodec/libaomenc.c     if (ctx->enable_restoration >= 0)
ctx               700 libavcodec/libaomenc.c         codecctl_int(avctx, AV1E_SET_ENABLE_RESTORATION, ctx->enable_restoration);
ctx               702 libavcodec/libaomenc.c     codecctl_int(avctx, AOME_SET_STATIC_THRESHOLD, ctx->static_thresh);
ctx               703 libavcodec/libaomenc.c     if (ctx->crf >= 0)
ctx               704 libavcodec/libaomenc.c         codecctl_int(avctx, AOME_SET_CQ_LEVEL,          ctx->crf);
ctx               705 libavcodec/libaomenc.c     if (ctx->tune >= 0)
ctx               706 libavcodec/libaomenc.c         codecctl_int(avctx, AOME_SET_TUNING, ctx->tune);
ctx               711 libavcodec/libaomenc.c     if (ctx->aq_mode >= 0)
ctx               712 libavcodec/libaomenc.c         codecctl_int(avctx, AV1E_SET_AQ_MODE, ctx->aq_mode);
ctx               713 libavcodec/libaomenc.c     if (ctx->frame_parallel >= 0)
ctx               714 libavcodec/libaomenc.c         codecctl_int(avctx, AV1E_SET_FRAME_PARALLEL_DECODING, ctx->frame_parallel);
ctx               717 libavcodec/libaomenc.c     codecctl_int(avctx, AV1E_SET_SUPERBLOCK_SIZE, ctx->superblock_size);
ctx               718 libavcodec/libaomenc.c     if (ctx->uniform_tiles) {
ctx               719 libavcodec/libaomenc.c         codecctl_int(avctx, AV1E_SET_TILE_COLUMNS, ctx->tile_cols_log2);
ctx               720 libavcodec/libaomenc.c         codecctl_int(avctx, AV1E_SET_TILE_ROWS,    ctx->tile_rows_log2);
ctx               724 libavcodec/libaomenc.c     if (ctx->denoise_noise_level >= 0)
ctx               725 libavcodec/libaomenc.c         codecctl_int(avctx, AV1E_SET_DENOISE_NOISE_LEVEL, ctx->denoise_noise_level);
ctx               728 libavcodec/libaomenc.c     if (ctx->denoise_block_size >= 0)
ctx               729 libavcodec/libaomenc.c         codecctl_int(avctx, AV1E_SET_DENOISE_BLOCK_SIZE, ctx->denoise_block_size);
ctx               732 libavcodec/libaomenc.c     if (ctx->enable_global_motion >= 0)
ctx               733 libavcodec/libaomenc.c         codecctl_int(avctx, AV1E_SET_ENABLE_GLOBAL_MOTION, ctx->enable_global_motion);
ctx               741 libavcodec/libaomenc.c     if (ctx->row_mt >= 0)
ctx               742 libavcodec/libaomenc.c         codecctl_int(avctx, AV1E_SET_ROW_MT, ctx->row_mt);
ctx               745 libavcodec/libaomenc.c     if (ctx->enable_intrabc >= 0)
ctx               746 libavcodec/libaomenc.c         codecctl_int(avctx, AV1E_SET_ENABLE_INTRABC, ctx->enable_intrabc);
ctx               750 libavcodec/libaomenc.c     aom_img_wrap(&ctx->rawimg, img_fmt, avctx->width, avctx->height, 1,
ctx               754 libavcodec/libaomenc.c         ctx->rawimg.bit_depth = enccfg.g_bit_depth;
ctx               769 libavcodec/libaomenc.c         ret = av_bsf_alloc(filter, &ctx->bsf);
ctx               773 libavcodec/libaomenc.c         ret = avcodec_parameters_from_context(ctx->bsf->par_in, avctx);
ctx               777 libavcodec/libaomenc.c         ret = av_bsf_init(ctx->bsf);
ctx               793 libavcodec/libaomenc.c static inline void cx_pktcpy(AOMContext *ctx,
ctx               804 libavcodec/libaomenc.c     dst->frame_number = ++ctx->frame_number;
ctx               805 libavcodec/libaomenc.c     dst->have_sse = ctx->have_sse;
ctx               806 libavcodec/libaomenc.c     if (ctx->have_sse) {
ctx               809 libavcodec/libaomenc.c         memcpy(dst->sse, ctx->sse, sizeof(dst->sse));
ctx               810 libavcodec/libaomenc.c         ctx->have_sse = 0;
ctx               825 libavcodec/libaomenc.c     AOMContext *ctx = avctx->priv_data;
ctx               859 libavcodec/libaomenc.c         ret = av_bsf_send_packet(ctx->bsf, pkt);
ctx               865 libavcodec/libaomenc.c         ret = av_bsf_receive_packet(ctx->bsf, pkt);
ctx               886 libavcodec/libaomenc.c     AOMContext *ctx = avctx->priv_data;
ctx               891 libavcodec/libaomenc.c     if (ctx->coded_frame_list) {
ctx               892 libavcodec/libaomenc.c         struct FrameListData *cx_frame = ctx->coded_frame_list;
ctx               897 libavcodec/libaomenc.c         ctx->coded_frame_list = cx_frame->next;
ctx               903 libavcodec/libaomenc.c     while ((pkt = aom_codec_get_cx_data(&ctx->encoder, &iter))) {
ctx               911 libavcodec/libaomenc.c                 av_assert0(!ctx->coded_frame_list);
ctx               912 libavcodec/libaomenc.c                 cx_pktcpy(ctx, &cx_frame, pkt);
ctx               925 libavcodec/libaomenc.c                 cx_pktcpy(ctx, cx_frame, pkt);
ctx               936 libavcodec/libaomenc.c                 coded_frame_add(&ctx->coded_frame_list, cx_frame);
ctx               941 libavcodec/libaomenc.c             struct aom_fixed_buf *stats = &ctx->twopass_stats;
ctx               958 libavcodec/libaomenc.c             av_assert0(!ctx->have_sse);
ctx               959 libavcodec/libaomenc.c             ctx->sse[0] = pkt->data.psnr.sse[0];
ctx               960 libavcodec/libaomenc.c             ctx->sse[1] = pkt->data.psnr.sse[1];
ctx               961 libavcodec/libaomenc.c             ctx->sse[2] = pkt->data.psnr.sse[2];
ctx               962 libavcodec/libaomenc.c             ctx->sse[3] = pkt->data.psnr.sse[3];
ctx               963 libavcodec/libaomenc.c             ctx->have_sse = 1;
ctx               979 libavcodec/libaomenc.c     AOMContext *ctx = avctx->priv_data;
ctx               986 libavcodec/libaomenc.c         rawimg                      = &ctx->rawimg;
ctx              1007 libavcodec/libaomenc.c     res = aom_codec_encode(&ctx->encoder, rawimg, timestamp,
ctx              1016 libavcodec/libaomenc.c         size_t b64_size = AV_BASE64_SIZE(ctx->twopass_stats.sz);
ctx              1024 libavcodec/libaomenc.c         av_base64_encode(avctx->stats_out, b64_size, ctx->twopass_stats.buf,
ctx              1025 libavcodec/libaomenc.c                          ctx->twopass_stats.sz);
ctx                53 libavcodec/libkvazaar.c     LibkvazaarContext *const ctx = avctx->priv_data;
ctx                54 libavcodec/libkvazaar.c     const kvz_api *const api = ctx->api = kvz_api_get(8);
ctx                66 libavcodec/libkvazaar.c     ctx->config = cfg = api->config_alloc();
ctx               103 libavcodec/libkvazaar.c     if (ctx->kvz_params) {
ctx               105 libavcodec/libkvazaar.c         if (!av_dict_parse_string(&dict, ctx->kvz_params, "=", ",", 0)) {
ctx               117 libavcodec/libkvazaar.c     ctx->encoder = enc = api->encoder_open(cfg);
ctx               134 libavcodec/libkvazaar.c             ctx->api->chunk_free(data_out);
ctx               145 libavcodec/libkvazaar.c         ctx->api->chunk_free(data_out);
ctx               153 libavcodec/libkvazaar.c     LibkvazaarContext *ctx = avctx->priv_data;
ctx               155 libavcodec/libkvazaar.c     if (ctx->api) {
ctx               156 libavcodec/libkvazaar.c         ctx->api->encoder_close(ctx->encoder);
ctx               157 libavcodec/libkvazaar.c         ctx->api->config_destroy(ctx->config);
ctx               171 libavcodec/libkvazaar.c     LibkvazaarContext *ctx = avctx->priv_data;
ctx               182 libavcodec/libkvazaar.c         if (frame->width != ctx->config->width ||
ctx               183 libavcodec/libkvazaar.c             frame->height != ctx->config->height) {
ctx               187 libavcodec/libkvazaar.c                    ctx->config->width, ctx->config->height,
ctx               204 libavcodec/libkvazaar.c         input_pic = ctx->api->picture_alloc(frame->width, frame->height);
ctx               227 libavcodec/libkvazaar.c     retval = ctx->api->encoder_encode(ctx->encoder,
ctx               269 libavcodec/libkvazaar.c     ctx->api->picture_free(input_pic);
ctx               270 libavcodec/libkvazaar.c     ctx->api->picture_free(recon_pic);
ctx               271 libavcodec/libkvazaar.c     ctx->api->chunk_free(data_out);
ctx                41 libavcodec/libopenh264.c void ff_libopenh264_trace_callback(void *ctx, int level, const char *msg)
ctx                46 libavcodec/libopenh264.c     av_log(ctx, equiv_ffmpeg_log_level, "%s\n", msg);
ctx                35 libavcodec/libopenh264.h void ff_libopenh264_trace_callback(void *ctx, int level, const char *msg);
ctx               314 libavcodec/libopenjpegdec.c     LibOpenJPEGContext *ctx = avctx->priv_data;
ctx               316 libavcodec/libopenjpegdec.c     opj_set_default_decoder_parameters(&ctx->dec_params);
ctx               326 libavcodec/libopenjpegdec.c     LibOpenJPEGContext *ctx = avctx->priv_data;
ctx               368 libavcodec/libopenjpegdec.c     ctx->dec_params.cp_layer = ctx->lowqual;
ctx               369 libavcodec/libopenjpegdec.c     ctx->dec_params.cp_reduce = avctx->lowres;
ctx               372 libavcodec/libopenjpegdec.c     opj_setup_decoder(dec, &ctx->dec_params);
ctx               281 libavcodec/libopenjpegenc.c     LibOpenJPEGContext *ctx = avctx->priv_data;
ctx               284 libavcodec/libopenjpegenc.c     opj_set_default_encoder_parameters(&ctx->enc_params);
ctx               286 libavcodec/libopenjpegenc.c     switch (ctx->cinema_mode) {
ctx               288 libavcodec/libopenjpegenc.c         ctx->enc_params.rsiz = OPJ_PROFILE_CINEMA_2K;
ctx               289 libavcodec/libopenjpegenc.c         ctx->enc_params.max_cs_size = OPJ_CINEMA_24_CS;
ctx               290 libavcodec/libopenjpegenc.c         ctx->enc_params.max_comp_size = OPJ_CINEMA_24_COMP;
ctx               293 libavcodec/libopenjpegenc.c         ctx->enc_params.rsiz = OPJ_PROFILE_CINEMA_2K;
ctx               294 libavcodec/libopenjpegenc.c         ctx->enc_params.max_cs_size = OPJ_CINEMA_48_CS;
ctx               295 libavcodec/libopenjpegenc.c         ctx->enc_params.max_comp_size = OPJ_CINEMA_48_COMP;
ctx               298 libavcodec/libopenjpegenc.c         ctx->enc_params.rsiz = OPJ_PROFILE_CINEMA_4K;
ctx               299 libavcodec/libopenjpegenc.c         ctx->enc_params.max_cs_size = OPJ_CINEMA_24_CS;
ctx               300 libavcodec/libopenjpegenc.c         ctx->enc_params.max_comp_size = OPJ_CINEMA_24_COMP;
ctx               304 libavcodec/libopenjpegenc.c     switch (ctx->profile) {
ctx               306 libavcodec/libopenjpegenc.c         if (ctx->enc_params.rsiz == OPJ_PROFILE_CINEMA_4K) {
ctx               310 libavcodec/libopenjpegenc.c         ctx->enc_params.rsiz = OPJ_PROFILE_CINEMA_2K;
ctx               313 libavcodec/libopenjpegenc.c         if (ctx->enc_params.rsiz == OPJ_PROFILE_CINEMA_2K) {
ctx               317 libavcodec/libopenjpegenc.c         ctx->enc_params.rsiz = OPJ_PROFILE_CINEMA_4K;
ctx               327 libavcodec/libopenjpegenc.c     if (!ctx->numresolution) {
ctx               328 libavcodec/libopenjpegenc.c         ctx->numresolution = 6;
ctx               329 libavcodec/libopenjpegenc.c         while (FFMIN(avctx->width, avctx->height) >> ctx->numresolution < 1)
ctx               330 libavcodec/libopenjpegenc.c             ctx->numresolution --;
ctx               333 libavcodec/libopenjpegenc.c     ctx->enc_params.prog_order = ctx->prog_order;
ctx               334 libavcodec/libopenjpegenc.c     ctx->enc_params.numresolution = ctx->numresolution;
ctx               335 libavcodec/libopenjpegenc.c     ctx->enc_params.irreversible = ctx->irreversible;
ctx               336 libavcodec/libopenjpegenc.c     ctx->enc_params.cp_disto_alloc = ctx->disto_alloc;
ctx               337 libavcodec/libopenjpegenc.c     ctx->enc_params.cp_fixed_quality = ctx->fixed_quality;
ctx               338 libavcodec/libopenjpegenc.c     ctx->enc_params.tcp_numlayers = 1;
ctx               339 libavcodec/libopenjpegenc.c     ctx->enc_params.tcp_rates[0] = FFMAX(avctx->compression_level, 0) * 2;
ctx               341 libavcodec/libopenjpegenc.c     if (ctx->cinema_mode > 0) {
ctx               342 libavcodec/libopenjpegenc.c         cinema_parameters(&ctx->enc_params);
ctx               554 libavcodec/libopenjpegenc.c     LibOpenJPEGContext *ctx = avctx->priv_data;
ctx               561 libavcodec/libopenjpegenc.c     opj_image_t *image      = mj2_create_image(avctx, &ctx->enc_params);
ctx               668 libavcodec/libopenjpegenc.c     compress = opj_create_compress(ctx->format);
ctx               683 libavcodec/libopenjpegenc.c     if (!opj_setup_encoder(compress, &ctx->enc_params, image)) {
ctx                38 libavcodec/librav1e.c     RaContext *ctx;
ctx               108 libavcodec/librav1e.c     librav1eContext *ctx = avctx->priv_data;
ctx               109 libavcodec/librav1e.c     RaData* buf = rav1e_twopass_out(ctx->ctx);
ctx               114 libavcodec/librav1e.c         uint8_t *tmp = av_fast_realloc(ctx->pass_data, &ctx->pass_size,
ctx               115 libavcodec/librav1e.c                                       ctx->pass_pos + buf->len);
ctx               121 libavcodec/librav1e.c         ctx->pass_data = tmp;
ctx               122 libavcodec/librav1e.c         memcpy(ctx->pass_data + ctx->pass_pos, buf->data, buf->len);
ctx               123 libavcodec/librav1e.c         ctx->pass_pos += buf->len;
ctx               125 libavcodec/librav1e.c         size_t b64_size = AV_BASE64_SIZE(ctx->pass_pos);
ctx               127 libavcodec/librav1e.c         memcpy(ctx->pass_data, buf->data, buf->len);
ctx               135 libavcodec/librav1e.c         av_base64_encode(avctx->stats_out, b64_size, ctx->pass_data, ctx->pass_pos);
ctx               137 libavcodec/librav1e.c         av_freep(&ctx->pass_data);
ctx               147 libavcodec/librav1e.c     librav1eContext *ctx = avctx->priv_data;
ctx               150 libavcodec/librav1e.c     while (ret > 0 && ctx->pass_size - ctx->pass_pos > 0) {
ctx               151 libavcodec/librav1e.c         ret = rav1e_twopass_in(ctx->ctx, ctx->pass_data + ctx->pass_pos, ctx->pass_size);
ctx               154 libavcodec/librav1e.c         ctx->pass_pos += ret;
ctx               162 libavcodec/librav1e.c     librav1eContext *ctx = avctx->priv_data;
ctx               164 libavcodec/librav1e.c     if (ctx->ctx) {
ctx               165 libavcodec/librav1e.c         rav1e_context_unref(ctx->ctx);
ctx               166 libavcodec/librav1e.c         ctx->ctx = NULL;
ctx               169 libavcodec/librav1e.c     av_bsf_free(&ctx->bsf);
ctx               170 libavcodec/librav1e.c     av_freep(&ctx->pass_data);
ctx               177 libavcodec/librav1e.c     librav1eContext *ctx = avctx->priv_data;
ctx               218 libavcodec/librav1e.c         ctx->pass_size = (strlen(avctx->stats_in) * 3) / 4;
ctx               219 libavcodec/librav1e.c         ctx->pass_data = av_malloc(ctx->pass_size);
ctx               220 libavcodec/librav1e.c         if (!ctx->pass_data) {
ctx               226 libavcodec/librav1e.c         ctx->pass_size = av_base64_decode(ctx->pass_data, avctx->stats_in, ctx->pass_size);
ctx               227 libavcodec/librav1e.c         if (ctx->pass_size < 0) {
ctx               245 libavcodec/librav1e.c          bret = av_bsf_alloc(filter, &ctx->bsf);
ctx               251 libavcodec/librav1e.c          bret = avcodec_parameters_from_context(ctx->bsf->par_in, avctx);
ctx               257 libavcodec/librav1e.c          bret = av_bsf_init(ctx->bsf);
ctx               266 libavcodec/librav1e.c         while ((en = av_dict_get(ctx->rav1e_opts, "", en, AV_DICT_IGNORE_SUFFIX))) {
ctx               291 libavcodec/librav1e.c     if (ctx->speed >= 0) {
ctx               292 libavcodec/librav1e.c         rret = rav1e_config_parse_int(cfg, "speed", ctx->speed);
ctx               301 libavcodec/librav1e.c     if (ctx->tiles > 0) {
ctx               302 libavcodec/librav1e.c         rret = rav1e_config_parse_int(cfg, "tiles", ctx->tiles);
ctx               309 libavcodec/librav1e.c     if (ctx->tile_rows > 0) {
ctx               310 libavcodec/librav1e.c         rret = rav1e_config_parse_int(cfg, "tile_rows", ctx->tile_rows);
ctx               317 libavcodec/librav1e.c     if (ctx->tile_cols > 0) {
ctx               318 libavcodec/librav1e.c         rret = rav1e_config_parse_int(cfg, "tile_cols", ctx->tile_cols);
ctx               344 libavcodec/librav1e.c     if (avctx->bit_rate && ctx->quantizer < 0) {
ctx               369 libavcodec/librav1e.c     } else if (ctx->quantizer >= 0) {
ctx               373 libavcodec/librav1e.c         rret = rav1e_config_parse_int(cfg, "quantizer", ctx->quantizer);
ctx               403 libavcodec/librav1e.c     ctx->ctx = rav1e_context_new(cfg);
ctx               404 libavcodec/librav1e.c     if (!ctx->ctx) {
ctx               421 libavcodec/librav1e.c     librav1eContext *ctx = avctx->priv_data;
ctx               428 libavcodec/librav1e.c         rframe = rav1e_frame_new(ctx->ctx);
ctx               443 libavcodec/librav1e.c     ret = rav1e_send_frame(ctx->ctx, rframe);
ctx               465 libavcodec/librav1e.c     librav1eContext *ctx = avctx->priv_data;
ctx               481 libavcodec/librav1e.c     ret = rav1e_receive_packet(ctx->ctx, &rpkt);
ctx               526 libavcodec/librav1e.c         int ret = av_bsf_send_packet(ctx->bsf, pkt);
ctx               533 libavcodec/librav1e.c         ret = av_bsf_receive_packet(ctx->bsf, pkt);
ctx                50 libavcodec/libvpxdec.c     VPxContext *ctx = priv;
ctx                53 libavcodec/libvpxdec.c     if (min_size > ctx->pool_size) {
ctx                54 libavcodec/libvpxdec.c         av_buffer_pool_uninit(&ctx->pool);
ctx                56 libavcodec/libvpxdec.c         ctx->pool = av_buffer_pool_init(min_size, av_buffer_allocz);
ctx                57 libavcodec/libvpxdec.c         if (!ctx->pool) {
ctx                58 libavcodec/libvpxdec.c             ctx->pool_size = 0;
ctx                61 libavcodec/libvpxdec.c         ctx->pool_size = min_size;
ctx                64 libavcodec/libvpxdec.c     buf = av_buffer_pool_get(ctx->pool);
ctx                69 libavcodec/libvpxdec.c     fb->size = ctx->pool_size;
ctx               216 libavcodec/libvpxdec.c     VPxContext *ctx = avctx->priv_data;
ctx               225 libavcodec/libvpxdec.c     ret = decode_frame(avctx, &ctx->decoder, avpkt->data, avpkt->size);
ctx               237 libavcodec/libvpxdec.c             if (!ctx->has_alpha_channel) {
ctx               238 libavcodec/libvpxdec.c                 ctx->has_alpha_channel = 1;
ctx               240 libavcodec/libvpxdec.c                                &ctx->decoder_alpha,
ctx               253 libavcodec/libvpxdec.c             ret = decode_frame(avctx, &ctx->decoder_alpha, side_data,
ctx               260 libavcodec/libvpxdec.c     if ((img = vpx_codec_get_frame(&ctx->decoder, &iter)) &&
ctx               261 libavcodec/libvpxdec.c         (!ctx->has_alpha_channel ||
ctx               262 libavcodec/libvpxdec.c          (img_alpha = vpx_codec_get_frame(&ctx->decoder_alpha, &iter_alpha)))) {
ctx               272 libavcodec/libvpxdec.c         if ((ret = set_pix_fmt(avctx, img, ctx->has_alpha_channel)) < 0) {
ctx               286 libavcodec/libvpxdec.c         if (ctx->has_alpha_channel &&
ctx               301 libavcodec/libvpxdec.c             ctx->has_alpha_channel ? img_alpha->planes[VPX_PLANE_Y] : NULL;
ctx               306 libavcodec/libvpxdec.c             ctx->has_alpha_channel ? img_alpha->stride[VPX_PLANE_Y] : 0;
ctx               308 libavcodec/libvpxdec.c         if (img->fb_priv && (!ctx->has_alpha_channel || img_alpha->fb_priv)) {
ctx               315 libavcodec/libvpxdec.c             if (ctx->has_alpha_channel) {
ctx               339 libavcodec/libvpxdec.c     VPxContext *ctx = avctx->priv_data;
ctx               340 libavcodec/libvpxdec.c     vpx_codec_destroy(&ctx->decoder);
ctx               341 libavcodec/libvpxdec.c     if (ctx->has_alpha_channel)
ctx               342 libavcodec/libvpxdec.c         vpx_codec_destroy(&ctx->decoder_alpha);
ctx               343 libavcodec/libvpxdec.c     av_buffer_pool_uninit(&ctx->pool);
ctx               350 libavcodec/libvpxdec.c     VPxContext *ctx = avctx->priv_data;
ctx               351 libavcodec/libvpxdec.c     return vpx_init(avctx, &ctx->decoder, &vpx_codec_vp8_dx_algo);
ctx               371 libavcodec/libvpxdec.c     VPxContext *ctx = avctx->priv_data;
ctx               372 libavcodec/libvpxdec.c     return vpx_init(avctx, &ctx->decoder, &vpx_codec_vp9_dx_algo);
ctx               177 libavcodec/libvpxenc.c     VPxContext *ctx = avctx->priv_data;
ctx               178 libavcodec/libvpxenc.c     const char *error  = vpx_codec_error(&ctx->encoder);
ctx               179 libavcodec/libvpxenc.c     const char *detail = vpx_codec_error_detail(&ctx->encoder);
ctx               316 libavcodec/libvpxenc.c     VPxContext *ctx = avctx->priv_data;
ctx               324 libavcodec/libvpxenc.c     res = vpx_codec_control(&ctx->encoder, id, val);
ctx               338 libavcodec/libvpxenc.c     VPxContext *ctx = avctx->priv_data;
ctx               346 libavcodec/libvpxenc.c     res = vpx_codec_control(&ctx->encoder, id, val);
ctx               359 libavcodec/libvpxenc.c     VPxContext *ctx = avctx->priv_data;
ctx               362 libavcodec/libvpxenc.c     if (avctx->codec_id == AV_CODEC_ID_VP9 && ctx->level >= 0 &&
ctx               370 libavcodec/libvpxenc.c     av_freep(&ctx->ts_layer_flags);
ctx               372 libavcodec/libvpxenc.c     vpx_codec_destroy(&ctx->encoder);
ctx               373 libavcodec/libvpxenc.c     if (ctx->is_alpha) {
ctx               374 libavcodec/libvpxenc.c         vpx_codec_destroy(&ctx->encoder_alpha);
ctx               375 libavcodec/libvpxenc.c         av_freep(&ctx->rawimg_alpha.planes[VPX_PLANE_U]);
ctx               376 libavcodec/libvpxenc.c         av_freep(&ctx->rawimg_alpha.planes[VPX_PLANE_V]);
ctx               378 libavcodec/libvpxenc.c     av_freep(&ctx->twopass_stats.buf);
ctx               380 libavcodec/libvpxenc.c     free_frame_list(ctx->coded_frame_list);
ctx               500 libavcodec/libvpxenc.c static int vpx_ts_param_parse(VPxContext *ctx, struct vpx_codec_enc_cfg *enccfg,
ctx               536 libavcodec/libvpxenc.c         ctx->ts_layer_flags = av_malloc_array(VPX_TS_MAX_PERIODICITY, sizeof(*ctx->ts_layer_flags));
ctx               537 libavcodec/libvpxenc.c         set_temporal_layer_pattern(ts_layering_mode, enccfg, ctx->ts_layer_flags, &enccfg->ts_periodicity);
ctx               548 libavcodec/libvpxenc.c     VPxContext av_unused *ctx = avctx->priv_data;
ctx               565 libavcodec/libvpxenc.c         ctx->vpx_cs = VPX_CS_SRGB;
ctx               605 libavcodec/libvpxenc.c         ctx->vpx_cs = VPX_CS_SRGB;
ctx               628 libavcodec/libvpxenc.c     VPxContext *ctx = avctx->priv_data;
ctx               630 libavcodec/libvpxenc.c     if (ctx->vpx_cs) {
ctx               631 libavcodec/libvpxenc.c         vpx_cs = ctx->vpx_cs;
ctx               676 libavcodec/libvpxenc.c     VPxContext *ctx = avctx->priv_data;
ctx               685 libavcodec/libvpxenc.c         ctx->crf = 32;
ctx               688 libavcodec/libvpxenc.c                ctx->crf, enccfg->rc_target_bitrate);
ctx               701 libavcodec/libvpxenc.c     VPxContext *ctx = avctx->priv_data;
ctx               703 libavcodec/libvpxenc.c     if (enccfg->rc_end_usage != VPX_Q && ctx->lossless < 0) {
ctx               705 libavcodec/libvpxenc.c         ctx->crf = 32;
ctx               708 libavcodec/libvpxenc.c                ctx->crf);
ctx               733 libavcodec/libvpxenc.c     VPxContext *ctx = avctx->priv_data;
ctx               750 libavcodec/libvpxenc.c         ctx->is_alpha = 1;
ctx               779 libavcodec/libvpxenc.c     enccfg.g_lag_in_frames= ctx->lag_in_frames;
ctx               791 libavcodec/libvpxenc.c     } else if (ctx->crf >= 0) {
ctx               810 libavcodec/libvpxenc.c     if (avctx->codec_id == AV_CODEC_ID_VP9 && ctx->lossless == 1) {
ctx               825 libavcodec/libvpxenc.c         if (ctx->crf < enccfg.rc_min_quantizer || ctx->crf > enccfg.rc_max_quantizer) {
ctx               828 libavcodec/libvpxenc.c                    ctx->crf, enccfg.rc_min_quantizer, enccfg.rc_max_quantizer);
ctx               836 libavcodec/libvpxenc.c         ctx->drop_threshold = avctx->frame_skip_threshold;
ctx               839 libavcodec/libvpxenc.c     enccfg.rc_dropframe_thresh = ctx->drop_threshold;
ctx               852 libavcodec/libvpxenc.c         if (ctx->corpus_complexity >= 0)
ctx               853 libavcodec/libvpxenc.c             enccfg.rc_2pass_vbr_corpus_complexity = ctx->corpus_complexity;
ctx               865 libavcodec/libvpxenc.c     if (ctx->rc_undershoot_pct >= 0)
ctx               866 libavcodec/libvpxenc.c         enccfg.rc_undershoot_pct = ctx->rc_undershoot_pct;
ctx               867 libavcodec/libvpxenc.c     if (ctx->rc_overshoot_pct >= 0)
ctx               868 libavcodec/libvpxenc.c         enccfg.rc_overshoot_pct = ctx->rc_overshoot_pct;
ctx               886 libavcodec/libvpxenc.c         ctx->twopass_stats.sz  = strlen(avctx->stats_in) * 3 / 4;
ctx               887 libavcodec/libvpxenc.c         ret = av_reallocp(&ctx->twopass_stats.buf, ctx->twopass_stats.sz);
ctx               891 libavcodec/libvpxenc.c                    ctx->twopass_stats.sz);
ctx               892 libavcodec/libvpxenc.c             ctx->twopass_stats.sz = 0;
ctx               895 libavcodec/libvpxenc.c         decode_size = av_base64_decode(ctx->twopass_stats.buf, avctx->stats_in,
ctx               896 libavcodec/libvpxenc.c                                        ctx->twopass_stats.sz);
ctx               902 libavcodec/libvpxenc.c         ctx->twopass_stats.sz      = decode_size;
ctx               903 libavcodec/libvpxenc.c         enccfg.rc_twopass_stats_in = ctx->twopass_stats;
ctx               912 libavcodec/libvpxenc.c     enccfg.g_error_resilient = ctx->error_resilient || ctx->flags & VP8F_ERROR_RESILIENT;
ctx               914 libavcodec/libvpxenc.c     while ((en = av_dict_get(ctx->vpx_ts_parameters, "", en, AV_DICT_IGNORE_SUFFIX))) {
ctx               915 libavcodec/libvpxenc.c         if (vpx_ts_param_parse(ctx, &enccfg, en->key, en->value, avctx->codec_id) < 0)
ctx               923 libavcodec/libvpxenc.c     res = vpx_codec_enc_init(&ctx->encoder, iface, &enccfg, flags);
ctx               943 libavcodec/libvpxenc.c     if (ctx->is_alpha) {
ctx               945 libavcodec/libvpxenc.c         res = vpx_codec_enc_init(&ctx->encoder_alpha, iface, &enccfg_alpha, flags);
ctx               954 libavcodec/libvpxenc.c     codecctl_int(avctx, VP8E_SET_CPUUSED,          ctx->cpu_used);
ctx               955 libavcodec/libvpxenc.c     if (ctx->flags & VP8F_AUTO_ALT_REF)
ctx               956 libavcodec/libvpxenc.c         ctx->auto_alt_ref = 1;
ctx               957 libavcodec/libvpxenc.c     if (ctx->auto_alt_ref >= 0)
ctx               959 libavcodec/libvpxenc.c                      avctx->codec_id == AV_CODEC_ID_VP8 ? !!ctx->auto_alt_ref : ctx->auto_alt_ref);
ctx               960 libavcodec/libvpxenc.c     if (ctx->arnr_max_frames >= 0)
ctx               961 libavcodec/libvpxenc.c         codecctl_int(avctx, VP8E_SET_ARNR_MAXFRAMES,   ctx->arnr_max_frames);
ctx               962 libavcodec/libvpxenc.c     if (ctx->arnr_strength >= 0)
ctx               963 libavcodec/libvpxenc.c         codecctl_int(avctx, VP8E_SET_ARNR_STRENGTH,    ctx->arnr_strength);
ctx               964 libavcodec/libvpxenc.c     if (ctx->arnr_type >= 0)
ctx               965 libavcodec/libvpxenc.c         codecctl_int(avctx, VP8E_SET_ARNR_TYPE,        ctx->arnr_type);
ctx               966 libavcodec/libvpxenc.c     if (ctx->tune >= 0)
ctx               967 libavcodec/libvpxenc.c         codecctl_int(avctx, VP8E_SET_TUNING,           ctx->tune);
ctx               969 libavcodec/libvpxenc.c     if (ctx->auto_alt_ref && ctx->is_alpha && avctx->codec_id == AV_CODEC_ID_VP8) {
ctx               974 libavcodec/libvpxenc.c     if (ctx->sharpness >= 0)
ctx               975 libavcodec/libvpxenc.c         codecctl_int(avctx, VP8E_SET_SHARPNESS, ctx->sharpness);
ctx               981 libavcodec/libvpxenc.c             ctx->noise_sensitivity = avctx->noise_reduction;
ctx               984 libavcodec/libvpxenc.c         codecctl_int(avctx, VP8E_SET_NOISE_SENSITIVITY, ctx->noise_sensitivity);
ctx               987 libavcodec/libvpxenc.c     codecctl_int(avctx, VP8E_SET_STATIC_THRESHOLD,  ctx->static_thresh);
ctx               988 libavcodec/libvpxenc.c     if (ctx->crf >= 0)
ctx               989 libavcodec/libvpxenc.c         codecctl_int(avctx, VP8E_SET_CQ_LEVEL,          ctx->crf);
ctx               990 libavcodec/libvpxenc.c     if (ctx->max_intra_rate >= 0)
ctx               991 libavcodec/libvpxenc.c         codecctl_int(avctx, VP8E_SET_MAX_INTRA_BITRATE_PCT, ctx->max_intra_rate);
ctx               995 libavcodec/libvpxenc.c         if (ctx->lossless >= 0)
ctx               996 libavcodec/libvpxenc.c             codecctl_int(avctx, VP9E_SET_LOSSLESS, ctx->lossless);
ctx               997 libavcodec/libvpxenc.c         if (ctx->tile_columns >= 0)
ctx               998 libavcodec/libvpxenc.c             codecctl_int(avctx, VP9E_SET_TILE_COLUMNS, ctx->tile_columns);
ctx               999 libavcodec/libvpxenc.c         if (ctx->tile_rows >= 0)
ctx              1000 libavcodec/libvpxenc.c             codecctl_int(avctx, VP9E_SET_TILE_ROWS, ctx->tile_rows);
ctx              1001 libavcodec/libvpxenc.c         if (ctx->frame_parallel >= 0)
ctx              1002 libavcodec/libvpxenc.c             codecctl_int(avctx, VP9E_SET_FRAME_PARALLEL_DECODING, ctx->frame_parallel);
ctx              1003 libavcodec/libvpxenc.c         if (ctx->aq_mode >= 0)
ctx              1004 libavcodec/libvpxenc.c             codecctl_int(avctx, VP9E_SET_AQ_MODE, ctx->aq_mode);
ctx              1010 libavcodec/libvpxenc.c         codecctl_int(avctx, VP9E_SET_TARGET_LEVEL, ctx->level < 0 ? 255 : lrint(ctx->level * 10));
ctx              1013 libavcodec/libvpxenc.c         if (ctx->row_mt >= 0)
ctx              1014 libavcodec/libvpxenc.c             codecctl_int(avctx, VP9E_SET_ROW_MT, ctx->row_mt);
ctx              1017 libavcodec/libvpxenc.c         if (ctx->tune_content >= 0)
ctx              1018 libavcodec/libvpxenc.c             codecctl_int(avctx, VP9E_SET_TUNE_CONTENT, ctx->tune_content);
ctx              1021 libavcodec/libvpxenc.c         if (ctx->tpl_model >= 0)
ctx              1022 libavcodec/libvpxenc.c             codecctl_int(avctx, VP9E_SET_TPL, ctx->tpl_model);
ctx              1027 libavcodec/libvpxenc.c     av_log(avctx, AV_LOG_DEBUG, "Using deadline: %d\n", ctx->deadline);
ctx              1030 libavcodec/libvpxenc.c     vpx_img_wrap(&ctx->rawimg, img_fmt, avctx->width, avctx->height, 1,
ctx              1034 libavcodec/libvpxenc.c         ctx->rawimg.bit_depth = enccfg.g_bit_depth;
ctx              1055 libavcodec/libvpxenc.c                              VPxContext *ctx)
ctx              1065 libavcodec/libvpxenc.c         dst->frame_number = ++ctx->frame_number;
ctx              1066 libavcodec/libvpxenc.c         dst->have_sse = ctx->have_sse;
ctx              1067 libavcodec/libvpxenc.c         if (ctx->have_sse) {
ctx              1072 libavcodec/libvpxenc.c             memcpy(dst->sse, ctx->sse, sizeof(dst->sse));
ctx              1073 libavcodec/libvpxenc.c             ctx->have_sse = 0;
ctx              1173 libavcodec/libvpxenc.c     VPxContext *ctx = avctx->priv_data;
ctx              1180 libavcodec/libvpxenc.c     if (ctx->coded_frame_list) {
ctx              1181 libavcodec/libvpxenc.c         struct FrameListData *cx_frame = ctx->coded_frame_list;
ctx              1186 libavcodec/libvpxenc.c         ctx->coded_frame_list = cx_frame->next;
ctx              1192 libavcodec/libvpxenc.c     while ((pkt = vpx_codec_get_cx_data(&ctx->encoder, &iter)) &&
ctx              1193 libavcodec/libvpxenc.c            (!ctx->is_alpha ||
ctx              1194 libavcodec/libvpxenc.c             (pkt_alpha = vpx_codec_get_cx_data(&ctx->encoder_alpha, &iter_alpha)))) {
ctx              1202 libavcodec/libvpxenc.c                 av_assert0(!ctx->coded_frame_list);
ctx              1203 libavcodec/libvpxenc.c                 cx_pktcpy(&cx_frame, pkt, pkt_alpha, ctx);
ctx              1215 libavcodec/libvpxenc.c                 cx_pktcpy(cx_frame, pkt, pkt_alpha, ctx);
ctx              1226 libavcodec/libvpxenc.c                 if (ctx->is_alpha) {
ctx              1237 libavcodec/libvpxenc.c                 coded_frame_add(&ctx->coded_frame_list, cx_frame);
ctx              1241 libavcodec/libvpxenc.c             struct vpx_fixed_buf *stats = &ctx->twopass_stats;
ctx              1256 libavcodec/libvpxenc.c             av_assert0(!ctx->have_sse);
ctx              1257 libavcodec/libvpxenc.c             ctx->sse[0] = pkt->data.psnr.sse[0];
ctx              1258 libavcodec/libvpxenc.c             ctx->sse[1] = pkt->data.psnr.sse[1];
ctx              1259 libavcodec/libvpxenc.c             ctx->sse[2] = pkt->data.psnr.sse[2];
ctx              1260 libavcodec/libvpxenc.c             ctx->sse[3] = pkt->data.psnr.sse[3];
ctx              1261 libavcodec/libvpxenc.c             ctx->have_sse = 1;
ctx              1381 libavcodec/libvpxenc.c     VPxContext *ctx = avctx->priv_data;
ctx              1395 libavcodec/libvpxenc.c         if (ctx->aq_mode > 0 || ctx->cpu_used < 5 || ctx->deadline != VPX_DL_REALTIME) {
ctx              1396 libavcodec/libvpxenc.c             if (!ctx->roi_warned) {
ctx              1397 libavcodec/libvpxenc.c                 ctx->roi_warned = 1;
ctx              1412 libavcodec/libvpxenc.c         if (vpx_codec_control(&ctx->encoder, VP9E_SET_ROI_MAP, &roi_map)) {
ctx              1421 libavcodec/libvpxenc.c     if (!ctx->roi_warned) {
ctx              1422 libavcodec/libvpxenc.c         ctx->roi_warned = 1;
ctx              1434 libavcodec/libvpxenc.c     VPxContext *ctx = avctx->priv_data;
ctx              1442 libavcodec/libvpxenc.c     if (vpx_codec_control(&ctx->encoder, VP8E_SET_ROI_MAP, &roi_map)) {
ctx              1453 libavcodec/libvpxenc.c     VPxContext *ctx = avctx->priv_data;
ctx              1454 libavcodec/libvpxenc.c     struct vpx_image *rawimg_alpha = &ctx->rawimg_alpha;
ctx              1482 libavcodec/libvpxenc.c     VPxContext *ctx = avctx->priv_data;
ctx              1488 libavcodec/libvpxenc.c     const struct vpx_codec_enc_cfg *enccfg = ctx->encoder.config.enc;
ctx              1494 libavcodec/libvpxenc.c         rawimg                      = &ctx->rawimg;
ctx              1501 libavcodec/libvpxenc.c         if (ctx->is_alpha) {
ctx              1502 libavcodec/libvpxenc.c             rawimg_alpha = &ctx->rawimg_alpha;
ctx              1551 libavcodec/libvpxenc.c     if (enccfg->ts_number_layers > 1 && ctx->ts_layer_flags) {
ctx              1554 libavcodec/libvpxenc.c             ctx->current_temporal_idx = 0;
ctx              1561 libavcodec/libvpxenc.c         flags |= ctx->ts_layer_flags[ctx->current_temporal_idx];
ctx              1567 libavcodec/libvpxenc.c         layer_id.temporal_layer_id = enccfg->ts_layer_id[ctx->current_temporal_idx];
ctx              1585 libavcodec/libvpxenc.c     res = vpx_codec_encode(&ctx->encoder, rawimg, timestamp,
ctx              1586 libavcodec/libvpxenc.c                            avctx->ticks_per_frame, flags, ctx->deadline);
ctx              1592 libavcodec/libvpxenc.c     if (ctx->is_alpha) {
ctx              1593 libavcodec/libvpxenc.c         res = vpx_codec_encode(&ctx->encoder_alpha, rawimg_alpha, timestamp,
ctx              1594 libavcodec/libvpxenc.c                                avctx->ticks_per_frame, flags, ctx->deadline);
ctx              1604 libavcodec/libvpxenc.c         unsigned int b64_size = AV_BASE64_SIZE(ctx->twopass_stats.sz);
ctx              1612 libavcodec/libvpxenc.c         av_base64_encode(avctx->stats_out, b64_size, ctx->twopass_stats.buf,
ctx              1613 libavcodec/libvpxenc.c                          ctx->twopass_stats.sz);
ctx              1614 libavcodec/libvpxenc.c     } else if (enccfg->ts_number_layers > 1 && ctx->ts_layer_flags) {
ctx              1615 libavcodec/libvpxenc.c         ctx->current_temporal_idx = (ctx->current_temporal_idx + 1) % enccfg->ts_periodicity;
ctx               133 libavcodec/libx264.c static int encode_nals(AVCodecContext *ctx, AVPacket *pkt,
ctx               136 libavcodec/libx264.c     X264Context *x4 = ctx->priv_data;
ctx               146 libavcodec/libx264.c     if ((ret = ff_alloc_packet2(ctx, pkt, size, 0)) < 0)
ctx               154 libavcodec/libx264.c             av_log(ctx, AV_LOG_ERROR, "Error: nal buffer is too small\n");
ctx               193 libavcodec/libx264.c static void reconfig_encoder(AVCodecContext *ctx, const AVFrame *frame)
ctx               195 libavcodec/libx264.c     X264Context *x4 = ctx->priv_data;
ctx               205 libavcodec/libx264.c         if (x4->params.vui.i_sar_height*ctx->sample_aspect_ratio.num != ctx->sample_aspect_ratio.den * x4->params.vui.i_sar_width) {
ctx               206 libavcodec/libx264.c             x4->params.vui.i_sar_height = ctx->sample_aspect_ratio.den;
ctx               207 libavcodec/libx264.c             x4->params.vui.i_sar_width  = ctx->sample_aspect_ratio.num;
ctx               211 libavcodec/libx264.c         if (x4->params.rc.i_vbv_buffer_size != ctx->rc_buffer_size / 1000 ||
ctx               212 libavcodec/libx264.c             x4->params.rc.i_vbv_max_bitrate != ctx->rc_max_rate    / 1000) {
ctx               213 libavcodec/libx264.c             x4->params.rc.i_vbv_buffer_size = ctx->rc_buffer_size / 1000;
ctx               214 libavcodec/libx264.c             x4->params.rc.i_vbv_max_bitrate = ctx->rc_max_rate    / 1000;
ctx               219 libavcodec/libx264.c             x4->params.rc.i_bitrate != ctx->bit_rate / 1000) {
ctx               220 libavcodec/libx264.c             x4->params.rc.i_bitrate = ctx->bit_rate / 1000;
ctx               281 libavcodec/libx264.c             av_log(ctx, AV_LOG_WARNING,
ctx               293 libavcodec/libx264.c static int X264_frame(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame,
ctx               296 libavcodec/libx264.c     X264Context *x4 = ctx->priv_data;
ctx               315 libavcodec/libx264.c     x4->pic.img.i_plane = avfmt2_num_planes(ctx->pix_fmt);
ctx               327 libavcodec/libx264.c         if (ctx->export_side_data & AV_CODEC_EXPORT_DATA_PRFT)
ctx               348 libavcodec/libx264.c         reconfig_encoder(ctx, frame);
ctx               356 libavcodec/libx264.c                 av_log(ctx, AV_LOG_ERROR, "Not enough memory for closed captions, skipping\n");
ctx               360 libavcodec/libx264.c                     av_log(ctx, AV_LOG_ERROR, "Not enough memory for closed captions, skipping\n");
ctx               378 libavcodec/libx264.c                     av_log(ctx, AV_LOG_WARNING, "Adaptive quantization must be enabled to use ROI encoding, skipping ROI.\n");
ctx               393 libavcodec/libx264.c                         av_log(ctx, AV_LOG_ERROR, "Invalid AVRegionOfInterest.self_size.\n");
ctx               417 libavcodec/libx264.c                             av_log(ctx, AV_LOG_ERROR, "AVRegionOfInterest.qoffset.den must not be zero.\n");
ctx               435 libavcodec/libx264.c                         av_log(ctx, AV_LOG_WARNING, "interlaced_frame not supported for ROI encoding yet, skipping ROI.\n");
ctx               446 libavcodec/libx264.c         ret = encode_nals(ctx, pkt, nal, nnal);
ctx               460 libavcodec/libx264.c         ctx->reordered_opaque = out_opaque->reordered_opaque;
ctx               464 libavcodec/libx264.c         ctx->reordered_opaque = 0;
ctx               480 libavcodec/libx264.c         av_log(ctx, AV_LOG_ERROR, "Unknown picture type encountered.\n");
ctx               485 libavcodec/libx264.c     ctx->coded_frame->pict_type = pict_type;
ctx               497 libavcodec/libx264.c         ctx->coded_frame->quality = (pic_out.i_qpplus1 - 1) * FF_QP2LAMBDA;
ctx                77 libavcodec/libx265.c     libx265Context *ctx = avctx->priv_data;
ctx                79 libavcodec/libx265.c     ctx->api->param_free(ctx->params);
ctx                81 libavcodec/libx265.c     if (ctx->encoder)
ctx                82 libavcodec/libx265.c         ctx->api->encoder_close(ctx->encoder);
ctx                90 libavcodec/libx265.c     libx265Context *ctx = avctx->priv_data;
ctx                94 libavcodec/libx265.c     if (ctx->api->param_parse(ctx->params, key, buf) == X265_PARAM_BAD_VALUE) {
ctx               105 libavcodec/libx265.c     libx265Context *ctx = avctx->priv_data;
ctx               109 libavcodec/libx265.c     if (ctx->api->param_parse(ctx->params, key, buf) == X265_PARAM_BAD_VALUE) {
ctx               119 libavcodec/libx265.c     libx265Context *ctx = avctx->priv_data;
ctx               123 libavcodec/libx265.c     ctx->api = x265_api_get(av_pix_fmt_desc_get(avctx->pix_fmt)->comp[0].depth);
ctx               124 libavcodec/libx265.c     if (!ctx->api)
ctx               125 libavcodec/libx265.c         ctx->api = x265_api_get(0);
ctx               127 libavcodec/libx265.c     ctx->params = ctx->api->param_alloc();
ctx               128 libavcodec/libx265.c     if (!ctx->params) {
ctx               133 libavcodec/libx265.c     if (ctx->api->param_default_preset(ctx->params, ctx->preset, ctx->tune) < 0) {
ctx               136 libavcodec/libx265.c         av_log(avctx, AV_LOG_ERROR, "Error setting preset/tune %s/%s.\n", ctx->preset, ctx->tune);
ctx               151 libavcodec/libx265.c     ctx->params->frameNumThreads = avctx->thread_count;
ctx               153 libavcodec/libx265.c         ctx->params->fpsNum      = avctx->framerate.num;
ctx               154 libavcodec/libx265.c         ctx->params->fpsDenom    = avctx->framerate.den;
ctx               156 libavcodec/libx265.c         ctx->params->fpsNum      = avctx->time_base.den;
ctx               157 libavcodec/libx265.c         ctx->params->fpsDenom    = avctx->time_base.num * avctx->ticks_per_frame;
ctx               159 libavcodec/libx265.c     ctx->params->sourceWidth     = avctx->width;
ctx               160 libavcodec/libx265.c     ctx->params->sourceHeight    = avctx->height;
ctx               161 libavcodec/libx265.c     ctx->params->bEnablePsnr     = !!(avctx->flags & AV_CODEC_FLAG_PSNR);
ctx               162 libavcodec/libx265.c     ctx->params->bOpenGOP        = !(avctx->flags & AV_CODEC_FLAG_CLOSED_GOP);
ctx               165 libavcodec/libx265.c     if (ctx->params->sourceWidth < 64 || ctx->params->sourceHeight < 64)
ctx               166 libavcodec/libx265.c         ctx->params->maxCUSize = 32;
ctx               167 libavcodec/libx265.c     if (ctx->params->sourceWidth < 32 || ctx->params->sourceHeight < 32)
ctx               168 libavcodec/libx265.c         ctx->params->maxCUSize = 16;
ctx               169 libavcodec/libx265.c     if (ctx->params->sourceWidth < 16 || ctx->params->sourceHeight < 16) {
ctx               171 libavcodec/libx265.c                ctx->params->sourceWidth, ctx->params->sourceHeight);
ctx               176 libavcodec/libx265.c     ctx->params->vui.bEnableVideoSignalTypePresentFlag = 1;
ctx               178 libavcodec/libx265.c     ctx->params->vui.bEnableVideoFullRangeFlag = avctx->pix_fmt == AV_PIX_FMT_YUVJ420P ||
ctx               190 libavcodec/libx265.c         ctx->params->vui.bEnableColorDescriptionPresentFlag = 1;
ctx               193 libavcodec/libx265.c         ctx->params->vui.colorPrimaries          = avctx->color_primaries;
ctx               194 libavcodec/libx265.c         ctx->params->vui.transferCharacteristics = avctx->color_trc;
ctx               197 libavcodec/libx265.c             ctx->params->preferredTransferCharacteristics = ctx->params->vui.transferCharacteristics;
ctx               199 libavcodec/libx265.c         ctx->params->vui.matrixCoeffs            = avctx->colorspace;
ctx               210 libavcodec/libx265.c         if (ctx->api->param_parse(ctx->params, "sar", sar) == X265_PARAM_BAD_VALUE) {
ctx               220 libavcodec/libx265.c         ctx->params->internalCsp = X265_CSP_I420;
ctx               225 libavcodec/libx265.c         ctx->params->internalCsp = X265_CSP_I422;
ctx               230 libavcodec/libx265.c         ctx->params->vui.matrixCoeffs = AVCOL_SPC_RGB;
ctx               231 libavcodec/libx265.c         ctx->params->vui.bEnableVideoSignalTypePresentFlag  = 1;
ctx               232 libavcodec/libx265.c         ctx->params->vui.bEnableColorDescriptionPresentFlag = 1;
ctx               236 libavcodec/libx265.c         ctx->params->internalCsp = X265_CSP_I444;
ctx               241 libavcodec/libx265.c         if (ctx->api->api_build_number < 85) {
ctx               244 libavcodec/libx265.c                    ctx->api->api_build_number);
ctx               247 libavcodec/libx265.c         ctx->params->internalCsp = X265_CSP_I400;
ctx               251 libavcodec/libx265.c     if (ctx->crf >= 0) {
ctx               254 libavcodec/libx265.c         snprintf(crf, sizeof(crf), "%2.2f", ctx->crf);
ctx               255 libavcodec/libx265.c         if (ctx->api->param_parse(ctx->params, "crf", crf) == X265_PARAM_BAD_VALUE) {
ctx               256 libavcodec/libx265.c             av_log(avctx, AV_LOG_ERROR, "Invalid crf: %2.2f.\n", ctx->crf);
ctx               260 libavcodec/libx265.c         ctx->params->rc.bitrate         = avctx->bit_rate / 1000;
ctx               261 libavcodec/libx265.c         ctx->params->rc.rateControlMode = X265_RC_ABR;
ctx               262 libavcodec/libx265.c     } else if (ctx->cqp >= 0) {
ctx               263 libavcodec/libx265.c         ret = libx265_param_parse_int(avctx, "qp", ctx->cqp);
ctx               306 libavcodec/libx265.c     ctx->params->rc.vbvBufferSize = avctx->rc_buffer_size / 1000;
ctx               307 libavcodec/libx265.c     ctx->params->rc.vbvMaxBitrate = avctx->rc_max_rate    / 1000;
ctx               312 libavcodec/libx265.c     cpb_props->buffer_size = ctx->params->rc.vbvBufferSize * 1000;
ctx               313 libavcodec/libx265.c     cpb_props->max_bitrate = ctx->params->rc.vbvMaxBitrate * 1000;
ctx               314 libavcodec/libx265.c     cpb_props->avg_bitrate = ctx->params->rc.bitrate       * 1000;
ctx               317 libavcodec/libx265.c         ctx->params->bRepeatHeaders = 1;
ctx               342 libavcodec/libx265.c         while ((en = av_dict_get(ctx->x265_opts, "", en, AV_DICT_IGNORE_SUFFIX))) {
ctx               343 libavcodec/libx265.c             int parse_ret = ctx->api->param_parse(ctx->params, en->key, en->value);
ctx               360 libavcodec/libx265.c     if (ctx->params->rc.vbvBufferSize && avctx->rc_initial_buffer_occupancy > 1000 &&
ctx               361 libavcodec/libx265.c         ctx->params->rc.vbvBufferInit == 0.9) {
ctx               362 libavcodec/libx265.c         ctx->params->rc.vbvBufferInit = (float)avctx->rc_initial_buffer_occupancy / 1000;
ctx               365 libavcodec/libx265.c     if (ctx->profile) {
ctx               366 libavcodec/libx265.c         if (ctx->api->param_apply_profile(ctx->params, ctx->profile) < 0) {
ctx               368 libavcodec/libx265.c             av_log(avctx, AV_LOG_ERROR, "Invalid or incompatible profile set: %s.\n", ctx->profile);
ctx               377 libavcodec/libx265.c     ctx->encoder = ctx->api->encoder_open(ctx->params);
ctx               378 libavcodec/libx265.c     if (!ctx->encoder) {
ctx               388 libavcodec/libx265.c         avctx->extradata_size = ctx->api->encoder_headers(ctx->encoder, &nal, &nnal);
ctx               410 libavcodec/libx265.c static av_cold int libx265_encode_set_roi(libx265Context *ctx, const AVFrame *frame, x265_picture* pic)
ctx               414 libavcodec/libx265.c         if (ctx->params->rc.aqMode == X265_AQ_NONE) {
ctx               415 libavcodec/libx265.c             if (!ctx->roi_warned) {
ctx               416 libavcodec/libx265.c                 ctx->roi_warned = 1;
ctx               417 libavcodec/libx265.c                 av_log(ctx, AV_LOG_WARNING, "Adaptive quantization must be enabled to use ROI encoding, skipping ROI.\n");
ctx               421 libavcodec/libx265.c             int mb_size = (ctx->params->rc.qgSize == 8) ? 8 : 16;
ctx               433 libavcodec/libx265.c                 av_log(ctx, AV_LOG_ERROR, "Invalid AVRegionOfInterest.self_size.\n");
ctx               457 libavcodec/libx265.c                     av_log(ctx, AV_LOG_ERROR, "AVRegionOfInterest.qoffset.den must not be zero.\n");
ctx               477 libavcodec/libx265.c     libx265Context *ctx = avctx->priv_data;
ctx               488 libavcodec/libx265.c     ctx->api->picture_init(ctx->params, &x265pic);
ctx               500 libavcodec/libx265.c                                               (ctx->forced_idr ? X265_TYPE_IDR : X265_TYPE_I) :
ctx               505 libavcodec/libx265.c         ret = libx265_encode_set_roi(ctx, pic, &x265pic);
ctx               520 libavcodec/libx265.c     ret = ctx->api->encoder_encode(ctx->encoder, &nal, &nnal,
ctx                84 libavcodec/libxavs.c static int encode_nals(AVCodecContext *ctx, AVPacket *pkt,
ctx                87 libavcodec/libxavs.c     XavsContext *x4 = ctx->priv_data;
ctx                97 libavcodec/libxavs.c     if ((ret = ff_alloc_packet2(ctx, pkt, size, 0)) < 0)
ctx               149 libavcodec/libzvbi-teletextdec.c static char *create_ass_text(TeletextContext *ctx, const char *text)
ctx               160 libavcodec/libzvbi-teletextdec.c     dialog = ff_ass_get_dialog(ctx->readorder++, 0, NULL, NULL, buf.str);
ctx               166 libavcodec/libzvbi-teletextdec.c static int gen_sub_text(TeletextContext *ctx, AVSubtitleRect *sub_rect, vbi_page *page, int chop_top)
ctx               181 libavcodec/libzvbi-teletextdec.c         av_log(ctx, AV_LOG_ERROR, "vbi_print error\n");
ctx               189 libavcodec/libzvbi-teletextdec.c     if (ctx->chop_spaces) {
ctx               219 libavcodec/libzvbi-teletextdec.c         sub_rect->ass = create_ass_text(ctx, buf.str);
ctx               225 libavcodec/libzvbi-teletextdec.c         av_log(ctx, AV_LOG_DEBUG, "subtext:%s:txetbus\n", sub_rect->ass);
ctx               294 libavcodec/libzvbi-teletextdec.c static int gen_sub_ass(TeletextContext *ctx, AVSubtitleRect *sub_rect, vbi_page *page, int chop_top)
ctx               303 libavcodec/libzvbi-teletextdec.c     int is_subtitle_page = ctx->subtitle_map[page->pgno & 0x7ff];
ctx               331 libavcodec/libzvbi-teletextdec.c         ctx->last_ass_alignment = alignment = 1;
ctx               333 libavcodec/libzvbi-teletextdec.c         ctx->last_ass_alignment = alignment = 2;
ctx               335 libavcodec/libzvbi-teletextdec.c         ctx->last_ass_alignment = alignment = 3;
ctx               337 libavcodec/libzvbi-teletextdec.c         if (ctx->last_ass_alignment == 1 && can_align_left ||
ctx               338 libavcodec/libzvbi-teletextdec.c             ctx->last_ass_alignment == 2 && can_align_center ||
ctx               339 libavcodec/libzvbi-teletextdec.c             ctx->last_ass_alignment == 3 && can_align_right)
ctx               340 libavcodec/libzvbi-teletextdec.c             alignment = ctx->last_ass_alignment;
ctx               397 libavcodec/libzvbi-teletextdec.c         sub_rect->ass = ff_ass_get_dialog(ctx->readorder++, 0, is_subtitle_page ? "Subtitle" : "Teletext", NULL, buf.str);
ctx               403 libavcodec/libzvbi-teletextdec.c         av_log(ctx, AV_LOG_DEBUG, "subtext:%s:txetbus\n", sub_rect->ass);
ctx               411 libavcodec/libzvbi-teletextdec.c static void fix_transparency(TeletextContext *ctx, AVSubtitleRect *sub_rect, vbi_page *page,
ctx               428 libavcodec/libzvbi-teletextdec.c                     if (!ctx->transparent_bg)
ctx               431 libavcodec/libzvbi-teletextdec.c                     if (ctx->opacity > 0) {
ctx               432 libavcodec/libzvbi-teletextdec.c                         if (ctx->opacity < 255)
ctx               450 libavcodec/libzvbi-teletextdec.c static int gen_sub_bitmap(TeletextContext *ctx, AVSubtitleRect *sub_rect, vbi_page *page, int chop_top)
ctx               464 libavcodec/libzvbi-teletextdec.c         av_log(ctx, AV_LOG_DEBUG, "dropping empty page %3x\n", page->pgno);
ctx               479 libavcodec/libzvbi-teletextdec.c     fix_transparency(ctx, sub_rect, page, chop_top, resx, resy);
ctx               480 libavcodec/libzvbi-teletextdec.c     sub_rect->x = ctx->x_offset;
ctx               481 libavcodec/libzvbi-teletextdec.c     sub_rect->y = ctx->y_offset + chop_top * BITMAP_CHAR_HEIGHT;
ctx               484 libavcodec/libzvbi-teletextdec.c     sub_rect->nb_colors = ctx->opacity > 0 && ctx->opacity < 255 ? 2 * VBI_NB_COLORS : VBI_NB_COLORS;
ctx               498 libavcodec/libzvbi-teletextdec.c         ((uint32_t *)sub_rect->data[1])[ci + VBI_NB_COLORS] = RGBA(r, g, b, ctx->opacity);
ctx               499 libavcodec/libzvbi-teletextdec.c         ff_dlog(ctx, "palette %0x\n", ((uint32_t *)sub_rect->data[1])[ci]);
ctx               509 libavcodec/libzvbi-teletextdec.c     TeletextContext *ctx = user_data;
ctx               515 libavcodec/libzvbi-teletextdec.c     int is_subtitle_page = ctx->subtitle_map[ev->ev.ttx_page.pgno & 0x7ff];
ctx               518 libavcodec/libzvbi-teletextdec.c     av_log(ctx, AV_LOG_DEBUG, "decoded page %s.%02x\n",
ctx               521 libavcodec/libzvbi-teletextdec.c     if (strcmp(ctx->pgno, "*") && (strcmp(ctx->pgno, "subtitle") || !is_subtitle_page) && !strstr(ctx->pgno, pgno_str))
ctx               523 libavcodec/libzvbi-teletextdec.c     if (ctx->handler_ret < 0)
ctx               526 libavcodec/libzvbi-teletextdec.c     res = vbi_fetch_vt_page(ctx->vbi, &page,
ctx               534 libavcodec/libzvbi-teletextdec.c     chop_top = ctx->chop_top || ((page.rows > 1) && is_subtitle_page);
ctx               536 libavcodec/libzvbi-teletextdec.c     av_log(ctx, AV_LOG_DEBUG, "%d x %d page chop:%d\n",
ctx               539 libavcodec/libzvbi-teletextdec.c     if (ctx->nb_pages < MAX_BUFFERED_PAGES) {
ctx               540 libavcodec/libzvbi-teletextdec.c         if ((new_pages = av_realloc_array(ctx->pages, ctx->nb_pages + 1, sizeof(TeletextPage)))) {
ctx               541 libavcodec/libzvbi-teletextdec.c             TeletextPage *cur_page = new_pages + ctx->nb_pages;
ctx               542 libavcodec/libzvbi-teletextdec.c             ctx->pages = new_pages;
ctx               544 libavcodec/libzvbi-teletextdec.c             cur_page->pts = ctx->pts;
ctx               548 libavcodec/libzvbi-teletextdec.c                 switch (ctx->format_id) {
ctx               550 libavcodec/libzvbi-teletextdec.c                         res = gen_sub_bitmap(ctx, cur_page->sub_rect, &page, chop_top);
ctx               553 libavcodec/libzvbi-teletextdec.c                         res = gen_sub_text(ctx, cur_page->sub_rect, &page, chop_top);
ctx               556 libavcodec/libzvbi-teletextdec.c                         res = gen_sub_ass(ctx, cur_page->sub_rect, &page, chop_top);
ctx               564 libavcodec/libzvbi-teletextdec.c                     ctx->handler_ret = res;
ctx               566 libavcodec/libzvbi-teletextdec.c                     ctx->pages[ctx->nb_pages++] = *cur_page;
ctx               569 libavcodec/libzvbi-teletextdec.c                 ctx->handler_ret = AVERROR(ENOMEM);
ctx               572 libavcodec/libzvbi-teletextdec.c             ctx->handler_ret = AVERROR(ENOMEM);
ctx               576 libavcodec/libzvbi-teletextdec.c         av_log(ctx, AV_LOG_ERROR, "Buffered too many pages, dropping page %s.\n", pgno_str);
ctx               577 libavcodec/libzvbi-teletextdec.c         ctx->handler_ret = AVERROR(ENOSYS);
ctx               583 libavcodec/libzvbi-teletextdec.c static int slice_to_vbi_lines(TeletextContext *ctx, uint8_t* buf, int size)
ctx               597 libavcodec/libzvbi-teletextdec.c                 uint8_t *p = ctx->sliced[lines].data;
ctx               599 libavcodec/libzvbi-teletextdec.c                 ctx->sliced[lines].id = VBI_SLICED_TELETEXT_B;
ctx               600 libavcodec/libzvbi-teletextdec.c                 ctx->sliced[lines].line = (line_offset > 0 ? (line_offset + (field_parity ? 0 : 313)) : 0);
ctx               614 libavcodec/libzvbi-teletextdec.c                         ctx->subtitle_map[pgno] = (!(flags1 & 0x40) && flags1 & 0x80 && flags2 & 0x01);
ctx               616 libavcodec/libzvbi-teletextdec.c                         if (ctx->subtitle_map[pgno] && pgno == ctx->last_pgno) {
ctx               617 libavcodec/libzvbi-teletextdec.c                             int last_byte9 = vbi_unham8(ctx->last_p5);
ctx               624 libavcodec/libzvbi-teletextdec.c                         ctx->last_pgno = pgno;
ctx               625 libavcodec/libzvbi-teletextdec.c                         ctx->last_p5 = p[5];
ctx               635 libavcodec/libzvbi-teletextdec.c         av_log(ctx, AV_LOG_WARNING, "%d bytes remained after slicing data\n", size);
ctx               641 libavcodec/libzvbi-teletextdec.c     TeletextContext *ctx = avctx->priv_data;
ctx               646 libavcodec/libzvbi-teletextdec.c     if (!ctx->vbi) {
ctx               647 libavcodec/libzvbi-teletextdec.c         if (!(ctx->vbi = vbi_decoder_new()))
ctx               649 libavcodec/libzvbi-teletextdec.c         if (ctx->default_region != -1) {
ctx               650 libavcodec/libzvbi-teletextdec.c             av_log(avctx, AV_LOG_INFO, "Setting default zvbi region to %i\n", ctx->default_region);
ctx               651 libavcodec/libzvbi-teletextdec.c             vbi_teletext_set_default_region(ctx->vbi, ctx->default_region);
ctx               653 libavcodec/libzvbi-teletextdec.c         if (!vbi_event_handler_register(ctx->vbi, VBI_EVENT_TTX_PAGE, handler, ctx)) {
ctx               654 libavcodec/libzvbi-teletextdec.c             vbi_decoder_delete(ctx->vbi);
ctx               655 libavcodec/libzvbi-teletextdec.c             ctx->vbi = NULL;
ctx               661 libavcodec/libzvbi-teletextdec.c         ctx->pts = av_rescale_q(pkt->pts, avctx->pkt_timebase, AV_TIME_BASE_Q);
ctx               671 libavcodec/libzvbi-teletextdec.c         ctx->handler_ret = pkt->size;
ctx               674 libavcodec/libzvbi-teletextdec.c             if ((lines = slice_to_vbi_lines(ctx, pkt->data + 1, pkt->size - 1)) < 0)
ctx               677 libavcodec/libzvbi-teletextdec.c                     ctx, pkt->size, lines, (double)pkt->pts/90000.0);
ctx               679 libavcodec/libzvbi-teletextdec.c                 vbi_decode(ctx->vbi, ctx->sliced, lines, 0.0);
ctx               680 libavcodec/libzvbi-teletextdec.c                 ctx->lines_processed += lines;
ctx               683 libavcodec/libzvbi-teletextdec.c         ctx->pts = AV_NOPTS_VALUE;
ctx               684 libavcodec/libzvbi-teletextdec.c         ret = ctx->handler_ret;
ctx               691 libavcodec/libzvbi-teletextdec.c     if (ctx->nb_pages) {
ctx               693 libavcodec/libzvbi-teletextdec.c         sub->format = !!ctx->format_id;
ctx               695 libavcodec/libzvbi-teletextdec.c         sub->end_display_time = ctx->sub_duration;
ctx               697 libavcodec/libzvbi-teletextdec.c         sub->pts = ctx->pages->pts;
ctx               699 libavcodec/libzvbi-teletextdec.c         if (ctx->pages->sub_rect->type != SUBTITLE_NONE) {
ctx               703 libavcodec/libzvbi-teletextdec.c                 sub->rects[0] = ctx->pages->sub_rect;
ctx               720 libavcodec/libzvbi-teletextdec.c             subtitle_rect_free(&ctx->pages->sub_rect);
ctx               722 libavcodec/libzvbi-teletextdec.c         for (i = 0; i < ctx->nb_pages - 1; i++)
ctx               723 libavcodec/libzvbi-teletextdec.c             ctx->pages[i] = ctx->pages[i + 1];
ctx               724 libavcodec/libzvbi-teletextdec.c         ctx->nb_pages--;
ctx               736 libavcodec/libzvbi-teletextdec.c     TeletextContext *ctx = avctx->priv_data;
ctx               745 libavcodec/libzvbi-teletextdec.c     if (ctx->format_id == 0) {
ctx               750 libavcodec/libzvbi-teletextdec.c     ctx->vbi = NULL;
ctx               751 libavcodec/libzvbi-teletextdec.c     ctx->pts = AV_NOPTS_VALUE;
ctx               752 libavcodec/libzvbi-teletextdec.c     ctx->last_pgno = -1;
ctx               753 libavcodec/libzvbi-teletextdec.c     ctx->last_ass_alignment = 2;
ctx               755 libavcodec/libzvbi-teletextdec.c     if (ctx->opacity == -1)
ctx               756 libavcodec/libzvbi-teletextdec.c         ctx->opacity = ctx->transparent_bg ? 0 : 255;
ctx               758 libavcodec/libzvbi-teletextdec.c     av_log(avctx, AV_LOG_VERBOSE, "page filter: %s\n", ctx->pgno);
ctx               760 libavcodec/libzvbi-teletextdec.c     switch (ctx->format_id) {
ctx               773 libavcodec/libzvbi-teletextdec.c     TeletextContext *ctx = avctx->priv_data;
ctx               775 libavcodec/libzvbi-teletextdec.c     ff_dlog(avctx, "lines_total=%u\n", ctx->lines_processed);
ctx               776 libavcodec/libzvbi-teletextdec.c     while (ctx->nb_pages)
ctx               777 libavcodec/libzvbi-teletextdec.c         subtitle_rect_free(&ctx->pages[--ctx->nb_pages].sub_rect);
ctx               778 libavcodec/libzvbi-teletextdec.c     av_freep(&ctx->pages);
ctx               780 libavcodec/libzvbi-teletextdec.c     vbi_decoder_delete(ctx->vbi);
ctx               781 libavcodec/libzvbi-teletextdec.c     ctx->vbi = NULL;
ctx               782 libavcodec/libzvbi-teletextdec.c     ctx->pts = AV_NOPTS_VALUE;
ctx               783 libavcodec/libzvbi-teletextdec.c     ctx->last_pgno = -1;
ctx               784 libavcodec/libzvbi-teletextdec.c     ctx->last_ass_alignment = 2;
ctx               785 libavcodec/libzvbi-teletextdec.c     memset(ctx->subtitle_map, 0, sizeof(ctx->subtitle_map));
ctx               787 libavcodec/libzvbi-teletextdec.c         ctx->readorder = 0;
ctx               243 libavcodec/mace.c     MACEContext *ctx = avctx->priv_data;
ctx               273 libavcodec/mace.c                         chomp3(&ctx->chd[i], output, val[1][l], l);
ctx               275 libavcodec/mace.c                         chomp6(&ctx->chd[i], output, val[0][l], l);
ctx                45 libavcodec/mediacodec.c int av_mediacodec_default_init(AVCodecContext *avctx, AVMediaCodecContext *ctx, void *surface)
ctx                55 libavcodec/mediacodec.c     ctx->surface = (*env)->NewGlobalRef(env, surface);
ctx                56 libavcodec/mediacodec.c     if (ctx->surface) {
ctx                57 libavcodec/mediacodec.c         avctx->hwaccel_context = ctx;
ctx                70 libavcodec/mediacodec.c     AVMediaCodecContext *ctx = avctx->hwaccel_context;
ctx                72 libavcodec/mediacodec.c     if (!ctx) {
ctx                81 libavcodec/mediacodec.c     if (ctx->surface) {
ctx                82 libavcodec/mediacodec.c         (*env)->DeleteGlobalRef(env, ctx->surface);
ctx                83 libavcodec/mediacodec.c         ctx->surface = NULL;
ctx                91 libavcodec/mediacodec.c     MediaCodecDecContext *ctx = buffer->ctx;
ctx                94 libavcodec/mediacodec.c     if (!released && (ctx->delay_flush || buffer->serial == atomic_load(&ctx->serial))) {
ctx                95 libavcodec/mediacodec.c         atomic_fetch_sub(&ctx->hw_buffer_count, 1);
ctx                96 libavcodec/mediacodec.c         av_log(ctx->avctx, AV_LOG_DEBUG,
ctx                98 libavcodec/mediacodec.c                buffer->index, buffer, buffer->pts, render, atomic_load(&ctx->hw_buffer_count));
ctx                99 libavcodec/mediacodec.c         return ff_AMediaCodec_releaseOutputBuffer(ctx->codec, buffer->index, render);
ctx               107 libavcodec/mediacodec.c     MediaCodecDecContext *ctx = buffer->ctx;
ctx               110 libavcodec/mediacodec.c     if (!released && (ctx->delay_flush || buffer->serial == atomic_load(&ctx->serial))) {
ctx               111 libavcodec/mediacodec.c         atomic_fetch_sub(&ctx->hw_buffer_count, 1);
ctx               112 libavcodec/mediacodec.c         av_log(ctx->avctx, AV_LOG_DEBUG,
ctx               114 libavcodec/mediacodec.c                buffer->index, buffer, buffer->pts, time, atomic_load(&ctx->hw_buffer_count));
ctx               115 libavcodec/mediacodec.c         return ff_AMediaCodec_releaseOutputBufferAtTime(ctx->codec, buffer->index, time);
ctx               130 libavcodec/mediacodec.c int av_mediacodec_default_init(AVCodecContext *avctx, AVMediaCodecContext *ctx, void *surface)
ctx                60 libavcodec/mediacodec.h int av_mediacodec_default_init(AVCodecContext *avctx, AVMediaCodecContext *ctx, void *surface);
ctx                46 libavcodec/mediacodecdec.c     MediaCodecDecContext *ctx;
ctx                59 libavcodec/mediacodecdec.c     ff_mediacodec_dec_close(avctx, s->ctx);
ctx                60 libavcodec/mediacodecdec.c     s->ctx = NULL;
ctx               368 libavcodec/mediacodecdec.c     s->ctx = av_mallocz(sizeof(*s->ctx));
ctx               369 libavcodec/mediacodecdec.c     if (!s->ctx) {
ctx               375 libavcodec/mediacodecdec.c     s->ctx->delay_flush = s->delay_flush;
ctx               377 libavcodec/mediacodecdec.c     if ((ret = ff_mediacodec_dec_init(avctx, s->ctx, codec_mime, format)) < 0) {
ctx               378 libavcodec/mediacodecdec.c         s->ctx = NULL;
ctx               384 libavcodec/mediacodecdec.c            s->ctx->codec_name, ret);
ctx               388 libavcodec/mediacodecdec.c         strcmp(s->ctx->codec_name, "OMX.amlogic.mpeg2.decoder.awesome") == 0) {
ctx               390 libavcodec/mediacodecdec.c                s->ctx->codec_name, sdk_int);
ctx               414 libavcodec/mediacodecdec.c     if (s->delay_flush && ff_mediacodec_dec_is_flushing(avctx, s->ctx)) {
ctx               415 libavcodec/mediacodecdec.c         if (!ff_mediacodec_dec_flush(avctx, s->ctx)) {
ctx               421 libavcodec/mediacodecdec.c     ret = ff_mediacodec_dec_receive(avctx, s->ctx, frame, false);
ctx               427 libavcodec/mediacodecdec.c         if (s->ctx->current_input_buffer < 0) {
ctx               429 libavcodec/mediacodecdec.c             index = ff_AMediaCodec_dequeueInputBuffer(s->ctx->codec, 0);
ctx               432 libavcodec/mediacodecdec.c                 return ff_mediacodec_dec_receive(avctx, s->ctx, frame, true);
ctx               434 libavcodec/mediacodecdec.c             s->ctx->current_input_buffer = index;
ctx               439 libavcodec/mediacodecdec.c             ret = ff_mediacodec_dec_send(avctx, s->ctx, &s->buffered_pkt, false);
ctx               466 libavcodec/mediacodecdec.c             ret = ff_mediacodec_dec_send(avctx, s->ctx, &null_pkt, true);
ctx               469 libavcodec/mediacodecdec.c             return ff_mediacodec_dec_receive(avctx, s->ctx, frame, true);
ctx               470 libavcodec/mediacodecdec.c         } else if (ret == AVERROR(EAGAIN) && s->ctx->current_input_buffer < 0) {
ctx               471 libavcodec/mediacodecdec.c             return ff_mediacodec_dec_receive(avctx, s->ctx, frame, true);
ctx               486 libavcodec/mediacodecdec.c     ff_mediacodec_dec_flush(avctx, s->ctx);
ctx               257 libavcodec/mediacodecdec_common.c     MediaCodecDecContext *ctx = buffer->ctx;
ctx               260 libavcodec/mediacodecdec_common.c     if (!released && (ctx->delay_flush || buffer->serial == atomic_load(&ctx->serial))) {
ctx               261 libavcodec/mediacodecdec_common.c         atomic_fetch_sub(&ctx->hw_buffer_count, 1);
ctx               262 libavcodec/mediacodecdec_common.c         av_log(ctx->avctx, AV_LOG_DEBUG,
ctx               264 libavcodec/mediacodecdec_common.c                buffer->index, buffer, buffer->pts, atomic_load(&ctx->hw_buffer_count));
ctx               265 libavcodec/mediacodecdec_common.c         ff_AMediaCodec_releaseOutputBuffer(ctx->codec, buffer->index, 0);
ctx               268 libavcodec/mediacodecdec_common.c     if (ctx->delay_flush)
ctx               269 libavcodec/mediacodecdec_common.c         ff_mediacodec_dec_unref(ctx);
ctx               327 libavcodec/mediacodecdec_common.c     buffer->ctx = s;
ctx               101 libavcodec/mediacodecdec_common.h     MediaCodecDecContext *ctx;
ctx               119 libavcodec/mimic.c     MimicContext *ctx = avctx->priv_data;
ctx               122 libavcodec/mimic.c     av_freep(&ctx->swap_buf);
ctx               123 libavcodec/mimic.c     ctx->swap_buf_size = 0;
ctx               125 libavcodec/mimic.c     for (i = 0; i < FF_ARRAY_ELEMS(ctx->frames); i++) {
ctx               126 libavcodec/mimic.c         if (ctx->frames[i].f)
ctx               127 libavcodec/mimic.c             ff_thread_release_buffer(avctx, &ctx->frames[i]);
ctx               128 libavcodec/mimic.c         av_frame_free(&ctx->frames[i].f);
ctx               131 libavcodec/mimic.c     ff_free_vlc(&ctx->vlc);
ctx               138 libavcodec/mimic.c     MimicContext *ctx = avctx->priv_data;
ctx               141 libavcodec/mimic.c     ctx->prev_index = 0;
ctx               142 libavcodec/mimic.c     ctx->cur_index  = 15;
ctx               144 libavcodec/mimic.c     if ((ret = init_vlc(&ctx->vlc, 11, FF_ARRAY_ELEMS(huffbits),
ctx               149 libavcodec/mimic.c     ff_blockdsp_init(&ctx->bdsp, avctx);
ctx               150 libavcodec/mimic.c     ff_bswapdsp_init(&ctx->bbdsp);
ctx               151 libavcodec/mimic.c     ff_hpeldsp_init(&ctx->hdsp, avctx->flags);
ctx               152 libavcodec/mimic.c     ff_idctdsp_init(&ctx->idsp, avctx);
ctx               153 libavcodec/mimic.c     ff_init_scantable(ctx->idsp.idct_permutation, &ctx->scantable, col_zag);
ctx               155 libavcodec/mimic.c     for (i = 0; i < FF_ARRAY_ELEMS(ctx->frames); i++) {
ctx               156 libavcodec/mimic.c         ctx->frames[i].f = av_frame_alloc();
ctx               157 libavcodec/mimic.c         if (!ctx->frames[i].f) {
ctx               228 libavcodec/mimic.c static int vlc_decode_block(MimicContext *ctx, int num_coeffs, int qscale)
ctx               230 libavcodec/mimic.c     int16_t *block = ctx->dct_block;
ctx               233 libavcodec/mimic.c     ctx->bdsp.clear_block(block);
ctx               235 libavcodec/mimic.c     block[0] = get_bits(&ctx->gb, 8) << 3;
ctx               242 libavcodec/mimic.c         vlc = get_vlc2(&ctx->gb, ctx->vlc.table, ctx->vlc.bits, 3);
ctx               255 libavcodec/mimic.c         value = get_bits(&ctx->gb, num_bits);
ctx               266 libavcodec/mimic.c         block[ctx->scantable.permutated[pos]] = coeff;
ctx               272 libavcodec/mimic.c static int decode(MimicContext *ctx, int quality, int num_coeffs,
ctx               281 libavcodec/mimic.c         const int stride    = ctx->frames[ctx->cur_index ].f->linesize[plane];
ctx               282 libavcodec/mimic.c         const uint8_t *src  = ctx->frames[ctx->prev_index].f->data[plane];
ctx               283 libavcodec/mimic.c         uint8_t       *dst  = ctx->frames[ctx->cur_index ].f->data[plane];
ctx               285 libavcodec/mimic.c         for (y = 0; y < ctx->num_vblocks[plane]; y++) {
ctx               286 libavcodec/mimic.c             for (x = 0; x < ctx->num_hblocks[plane]; x++) {
ctx               291 libavcodec/mimic.c                 if (is_iframe || get_bits1(&ctx->gb) == is_chroma) {
ctx               295 libavcodec/mimic.c                     if (is_chroma || is_iframe || !get_bits1(&ctx->gb)) {
ctx               296 libavcodec/mimic.c                         if ((ret = vlc_decode_block(ctx, num_coeffs,
ctx               298 libavcodec/mimic.c                             av_log(ctx->avctx, AV_LOG_ERROR, "Error decoding "
ctx               302 libavcodec/mimic.c                         ctx->idsp.idct_put(dst, stride, ctx->dct_block);
ctx               304 libavcodec/mimic.c                         unsigned int backref = get_bits(&ctx->gb, 4);
ctx               305 libavcodec/mimic.c                         int index            = (ctx->cur_index + backref) & 15;
ctx               306 libavcodec/mimic.c                         uint8_t *p           = ctx->frames[index].f->data[0];
ctx               308 libavcodec/mimic.c                         if (index != ctx->cur_index && p) {
ctx               309 libavcodec/mimic.c                             ff_thread_await_progress(&ctx->frames[index],
ctx               312 libavcodec/mimic.c                                  ctx->frames[ctx->prev_index].f->data[plane];
ctx               313 libavcodec/mimic.c                             ctx->hdsp.put_pixels_tab[1][0](dst, p, stride, 8);
ctx               315 libavcodec/mimic.c                             av_log(ctx->avctx, AV_LOG_ERROR,
ctx               320 libavcodec/mimic.c                     ff_thread_await_progress(&ctx->frames[ctx->prev_index],
ctx               322 libavcodec/mimic.c                     ctx->hdsp.put_pixels_tab[1][0](dst, src, stride, 8);
ctx               327 libavcodec/mimic.c             src += (stride - ctx->num_hblocks[plane]) << 3;
ctx               328 libavcodec/mimic.c             dst += (stride - ctx->num_hblocks[plane]) << 3;
ctx               330 libavcodec/mimic.c             ff_thread_report_progress(&ctx->frames[ctx->cur_index],
ctx               359 libavcodec/mimic.c     MimicContext *ctx  = avctx->priv_data;
ctx               381 libavcodec/mimic.c     if (!ctx->avctx) {
ctx               394 libavcodec/mimic.c         ctx->avctx     = avctx;
ctx               397 libavcodec/mimic.c             ctx->num_vblocks[i] = AV_CEIL_RSHIFT(height,   3 + !!i);
ctx               398 libavcodec/mimic.c             ctx->num_hblocks[i] =                width >> (3 + !!i);
ctx               400 libavcodec/mimic.c     } else if (width != ctx->avctx->width || height != ctx->avctx->height) {
ctx               405 libavcodec/mimic.c     if (is_pframe && !ctx->frames[ctx->prev_index].f->data[0]) {
ctx               410 libavcodec/mimic.c     ff_thread_release_buffer(avctx, &ctx->frames[ctx->cur_index]);
ctx               411 libavcodec/mimic.c     ctx->frames[ctx->cur_index].f->pict_type = is_pframe ? AV_PICTURE_TYPE_P :
ctx               413 libavcodec/mimic.c     if ((res = ff_thread_get_buffer(avctx, &ctx->frames[ctx->cur_index],
ctx               417 libavcodec/mimic.c     ctx->next_prev_index = ctx->cur_index;
ctx               418 libavcodec/mimic.c     ctx->next_cur_index  = (ctx->cur_index - 1) & 15;
ctx               422 libavcodec/mimic.c     av_fast_padded_malloc(&ctx->swap_buf, &ctx->swap_buf_size, swap_buf_size);
ctx               423 libavcodec/mimic.c     if (!ctx->swap_buf)
ctx               426 libavcodec/mimic.c     ctx->bbdsp.bswap_buf(ctx->swap_buf,
ctx               429 libavcodec/mimic.c     init_get_bits(&ctx->gb, ctx->swap_buf, swap_buf_size << 3);
ctx               431 libavcodec/mimic.c     res = decode(ctx, quality, num_coeffs, !is_pframe);
ctx               432 libavcodec/mimic.c     ff_thread_report_progress(&ctx->frames[ctx->cur_index], INT_MAX, 0);
ctx               435 libavcodec/mimic.c             ff_thread_release_buffer(avctx, &ctx->frames[ctx->cur_index]);
ctx               439 libavcodec/mimic.c     if ((res = av_frame_ref(data, ctx->frames[ctx->cur_index].f)) < 0)
ctx               445 libavcodec/mimic.c     ctx->prev_index = ctx->next_prev_index;
ctx               446 libavcodec/mimic.c     ctx->cur_index  = ctx->next_cur_index;
ctx                46 libavcodec/mips/videodsp_init.c av_cold void ff_videodsp_init_mips(VideoDSPContext *ctx, int bpc)
ctx                49 libavcodec/mips/videodsp_init.c     ctx->prefetch = prefetch_mips;
ctx                80 libavcodec/mjpeg2jpeg_bsf.c static int mjpeg2jpeg_filter(AVBSFContext *ctx, AVPacket *out)
ctx                87 libavcodec/mjpeg2jpeg_bsf.c     ret = ff_bsf_get_packet(ctx, &in);
ctx                92 libavcodec/mjpeg2jpeg_bsf.c         av_log(ctx, AV_LOG_ERROR, "input is truncated\n");
ctx                97 libavcodec/mjpeg2jpeg_bsf.c         av_log(ctx, AV_LOG_ERROR, "input is not MJPEG\n");
ctx               107 libavcodec/mjpeg2jpeg_bsf.c         av_log(ctx, AV_LOG_ERROR, "input is truncated\n");
ctx                34 libavcodec/mjpega_dump_header_bsf.c static int mjpega_dump_header(AVBSFContext *ctx, AVPacket *out)
ctx                41 libavcodec/mjpega_dump_header_bsf.c     ret = ff_bsf_get_packet(ctx, &in);
ctx                84 libavcodec/mjpega_dump_header_bsf.c                     av_log(ctx, AV_LOG_ERROR, "bitstream already formatted\n");
ctx                93 libavcodec/mjpega_dump_header_bsf.c     av_log(ctx, AV_LOG_ERROR, "could not find SOS marker in bitstream\n");
ctx               485 libavcodec/mjpegenc_common.c     MJpegEncHuffmanContext *ctx[4] = {&dc_luminance_ctx,
ctx               490 libavcodec/mjpegenc_common.c         ff_mjpeg_encode_huffman_init(ctx[i]);
ctx               496 libavcodec/mjpegenc_common.c         ff_mjpeg_encode_huffman_increment(ctx[table_id], code);
ctx               256 libavcodec/mlpenc.c static int compare_matrix_params(MLPEncodeContext *ctx, const MatrixParams *prev, const MatrixParams *mp)
ctx               258 libavcodec/mlpenc.c     RestartHeader *rh = ctx->cur_restart_header;
ctx               275 libavcodec/mlpenc.c         for (channel = 0; channel < ctx->num_channels; channel++)
ctx               286 libavcodec/mlpenc.c static int compare_decoding_params(MLPEncodeContext *ctx)
ctx               288 libavcodec/mlpenc.c     DecodingParams *prev = ctx->prev_decoding_params;
ctx               289 libavcodec/mlpenc.c     DecodingParams *dp = ctx->cur_decoding_params;
ctx               292 libavcodec/mlpenc.c     RestartHeader  *rh = ctx->cur_restart_header;
ctx               302 libavcodec/mlpenc.c     if (compare_matrix_params(ctx, prev_mp, mp))
ctx               318 libavcodec/mlpenc.c         ChannelParams *prev_cp = &ctx->prev_channel_params[ch];
ctx               319 libavcodec/mlpenc.c         ChannelParams *cp = &ctx->cur_channel_params[ch];
ctx               380 libavcodec/mlpenc.c static void copy_restart_frame_params(MLPEncodeContext *ctx,
ctx               385 libavcodec/mlpenc.c     for (index = 0; index < ctx->number_of_subblocks; index++) {
ctx               386 libavcodec/mlpenc.c         DecodingParams *dp = ctx->seq_decoding_params + index*(ctx->num_substreams) + substr;
ctx               389 libavcodec/mlpenc.c         copy_matrix_params(&dp->matrix_params, &ctx->cur_decoding_params->matrix_params);
ctx               391 libavcodec/mlpenc.c         for (channel = 0; channel < ctx->avctx->channels; channel++) {
ctx               392 libavcodec/mlpenc.c             ChannelParams *cp = ctx->seq_channel_params + index*(ctx->avctx->channels) + channel;
ctx               395 libavcodec/mlpenc.c             dp->quant_step_size[channel] = ctx->cur_decoding_params->quant_step_size[channel];
ctx               396 libavcodec/mlpenc.c             dp->matrix_params.shift[channel] = ctx->cur_decoding_params->matrix_params.shift[channel];
ctx               400 libavcodec/mlpenc.c                     copy_filter_params(cp, &ctx->cur_channel_params[channel], filter);
ctx               406 libavcodec/mlpenc.c static void clear_decoding_params(MLPEncodeContext *ctx, DecodingParams decoding_params[MAX_SUBSTREAMS])
ctx               410 libavcodec/mlpenc.c     for (substr = 0; substr < ctx->num_substreams; substr++) {
ctx               422 libavcodec/mlpenc.c static void clear_channel_params(MLPEncodeContext *ctx, ChannelParams channel_params[MAX_CHANNELS])
ctx               426 libavcodec/mlpenc.c     for (channel = 0; channel < ctx->avctx->channels; channel++) {
ctx               439 libavcodec/mlpenc.c static void default_decoding_params(MLPEncodeContext *ctx,
ctx               444 libavcodec/mlpenc.c     clear_decoding_params(ctx, decoding_params);
ctx               446 libavcodec/mlpenc.c     for (substr = 0; substr < ctx->num_substreams; substr++) {
ctx               489 libavcodec/mlpenc.c     MLPEncodeContext *ctx = avctx->priv_data;
ctx               495 libavcodec/mlpenc.c     ctx->avctx = avctx;
ctx               500 libavcodec/mlpenc.c         ctx->coded_sample_rate[0] = 0x08 + 0;
ctx               501 libavcodec/mlpenc.c         ctx->fs                   = 0x08 + 1;
ctx               505 libavcodec/mlpenc.c         ctx->coded_sample_rate[0] = 0x08 + 1;
ctx               506 libavcodec/mlpenc.c         ctx->fs                   = 0x0C + 1;
ctx               509 libavcodec/mlpenc.c         ctx->substream_info      |= SUBSTREAM_INFO_HIGH_RATE;
ctx               511 libavcodec/mlpenc.c         ctx->coded_sample_rate[0] = 0x08 + 2;
ctx               512 libavcodec/mlpenc.c         ctx->fs                   = 0x10 + 1;
ctx               516 libavcodec/mlpenc.c         ctx->coded_sample_rate[0] = 0x00 + 0;
ctx               517 libavcodec/mlpenc.c         ctx->fs                   = 0x08 + 2;
ctx               521 libavcodec/mlpenc.c         ctx->coded_sample_rate[0] = 0x00 + 1;
ctx               522 libavcodec/mlpenc.c         ctx->fs                   = 0x0C + 2;
ctx               525 libavcodec/mlpenc.c         ctx->substream_info      |= SUBSTREAM_INFO_HIGH_RATE;
ctx               527 libavcodec/mlpenc.c         ctx->coded_sample_rate[0] = 0x00 + 2;
ctx               528 libavcodec/mlpenc.c         ctx->fs                   = 0x10 + 2;
ctx               536 libavcodec/mlpenc.c     ctx->coded_sample_rate[1] = -1 & 0xf;
ctx               539 libavcodec/mlpenc.c     ctx->coded_peak_bitrate = mlp_peak_bitrate(9600000, avctx->sample_rate);
ctx               547 libavcodec/mlpenc.c     ctx->substream_info |= SUBSTREAM_INFO_ALWAYS_SET;
ctx               549 libavcodec/mlpenc.c         ctx->substream_info |= SUBSTREAM_INFO_MAX_2_CHAN;
ctx               554 libavcodec/mlpenc.c         ctx->coded_sample_fmt[0] = BITS_16;
ctx               555 libavcodec/mlpenc.c         ctx->wordlength = 16;
ctx               560 libavcodec/mlpenc.c         ctx->coded_sample_fmt[0] = BITS_24;
ctx               561 libavcodec/mlpenc.c         ctx->wordlength = 24;
ctx               569 libavcodec/mlpenc.c     ctx->coded_sample_fmt[1] = -1 & 0xf;
ctx               571 libavcodec/mlpenc.c     ctx->dts = -avctx->frame_size;
ctx               573 libavcodec/mlpenc.c     ctx->num_channels = avctx->channels + 2; /* +2 noise channels */
ctx               574 libavcodec/mlpenc.c     ctx->one_sample_buffer_size = avctx->frame_size
ctx               575 libavcodec/mlpenc.c                                 * ctx->num_channels;
ctx               577 libavcodec/mlpenc.c     ctx->max_restart_interval = MAJOR_HEADER_INTERVAL;
ctx               579 libavcodec/mlpenc.c     ctx->max_codebook_search = 3;
ctx               580 libavcodec/mlpenc.c     ctx->min_restart_interval = MAJOR_HEADER_INTERVAL;
ctx               581 libavcodec/mlpenc.c     ctx->restart_intervals = ctx->max_restart_interval / ctx->min_restart_interval;
ctx               585 libavcodec/mlpenc.c     size = avctx->frame_size * ctx->max_restart_interval;
ctx               587 libavcodec/mlpenc.c     ctx->lpc_sample_buffer = av_malloc_array(size, sizeof(int32_t));
ctx               588 libavcodec/mlpenc.c     if (!ctx->lpc_sample_buffer) {
ctx               594 libavcodec/mlpenc.c     size = ctx->one_sample_buffer_size * ctx->max_restart_interval;
ctx               596 libavcodec/mlpenc.c     ctx->major_scratch_buffer = av_malloc_array(size, sizeof(int32_t));
ctx               597 libavcodec/mlpenc.c     if (!ctx->major_scratch_buffer) {
ctx               603 libavcodec/mlpenc.c     ctx->major_inout_buffer = av_malloc_array(size, sizeof(int32_t));
ctx               604 libavcodec/mlpenc.c     if (!ctx->major_inout_buffer) {
ctx               612 libavcodec/mlpenc.c     ctx->num_substreams = 1; // TODO: change this after adding multi-channel support for TrueHD
ctx               614 libavcodec/mlpenc.c     if (ctx->avctx->codec_id == AV_CODEC_ID_MLP) {
ctx               618 libavcodec/mlpenc.c             ctx->channel_arrangement = 0; break;
ctx               620 libavcodec/mlpenc.c             ctx->channel_arrangement = 1; break;
ctx               622 libavcodec/mlpenc.c             ctx->channel_arrangement = 2; break;
ctx               624 libavcodec/mlpenc.c             ctx->channel_arrangement = 3; break;
ctx               626 libavcodec/mlpenc.c             ctx->channel_arrangement = 4; break;
ctx               628 libavcodec/mlpenc.c             ctx->channel_arrangement = 7; break;
ctx               630 libavcodec/mlpenc.c             ctx->channel_arrangement = 8; break;
ctx               632 libavcodec/mlpenc.c             ctx->channel_arrangement = 9; break;
ctx               634 libavcodec/mlpenc.c             ctx->channel_arrangement = 10; break;
ctx               636 libavcodec/mlpenc.c             ctx->channel_arrangement = 11; break;
ctx               638 libavcodec/mlpenc.c             ctx->channel_arrangement = 12; break;
ctx               643 libavcodec/mlpenc.c         ctx->flags = FLAGS_DVDA;
ctx               644 libavcodec/mlpenc.c         ctx->channel_occupancy = ff_mlp_ch_info[ctx->channel_arrangement].channel_occupancy;
ctx               645 libavcodec/mlpenc.c         ctx->summary_info      = ff_mlp_ch_info[ctx->channel_arrangement].summary_info     ;
ctx               650 libavcodec/mlpenc.c             ctx->ch_modifier_thd0    = 0;
ctx               651 libavcodec/mlpenc.c             ctx->ch_modifier_thd1    = 0;
ctx               652 libavcodec/mlpenc.c             ctx->ch_modifier_thd2    = 0;
ctx               653 libavcodec/mlpenc.c             ctx->channel_arrangement = 1;
ctx               656 libavcodec/mlpenc.c             ctx->ch_modifier_thd0    = 1;
ctx               657 libavcodec/mlpenc.c             ctx->ch_modifier_thd1    = 1;
ctx               658 libavcodec/mlpenc.c             ctx->ch_modifier_thd2    = 1;
ctx               659 libavcodec/mlpenc.c             ctx->channel_arrangement = 11;
ctx               662 libavcodec/mlpenc.c             ctx->ch_modifier_thd0    = 2;
ctx               663 libavcodec/mlpenc.c             ctx->ch_modifier_thd1    = 1;
ctx               664 libavcodec/mlpenc.c             ctx->ch_modifier_thd2    = 2;
ctx               665 libavcodec/mlpenc.c             ctx->channel_arrangement = 15;
ctx               671 libavcodec/mlpenc.c         ctx->flags = 0;
ctx               672 libavcodec/mlpenc.c         ctx->channel_occupancy = 0;
ctx               673 libavcodec/mlpenc.c         ctx->summary_info = 0;
ctx               676 libavcodec/mlpenc.c     size = sizeof(unsigned int) * ctx->max_restart_interval;
ctx               678 libavcodec/mlpenc.c     ctx->frame_size = av_malloc(size);
ctx               679 libavcodec/mlpenc.c     if (!ctx->frame_size)
ctx               682 libavcodec/mlpenc.c     ctx->max_output_bits = av_malloc(size);
ctx               683 libavcodec/mlpenc.c     if (!ctx->max_output_bits)
ctx               687 libavcodec/mlpenc.c          * ctx->num_substreams * ctx->max_restart_interval;
ctx               689 libavcodec/mlpenc.c     ctx->lossless_check_data = av_malloc(size);
ctx               690 libavcodec/mlpenc.c     if (!ctx->lossless_check_data)
ctx               693 libavcodec/mlpenc.c     for (index = 0; index < ctx->restart_intervals; index++) {
ctx               694 libavcodec/mlpenc.c         ctx->seq_offset[index] = sum;
ctx               695 libavcodec/mlpenc.c         ctx->seq_size  [index] = ((index + 1) * ctx->min_restart_interval) + 1;
ctx               696 libavcodec/mlpenc.c         sum += ctx->seq_size[index];
ctx               698 libavcodec/mlpenc.c     ctx->sequence_size = sum;
ctx               700 libavcodec/mlpenc.c          * ctx->restart_intervals * ctx->sequence_size * ctx->avctx->channels;
ctx               701 libavcodec/mlpenc.c     ctx->channel_params = av_malloc(size);
ctx               702 libavcodec/mlpenc.c     if (!ctx->channel_params) {
ctx               709 libavcodec/mlpenc.c          * ctx->restart_intervals * ctx->sequence_size * ctx->num_substreams;
ctx               710 libavcodec/mlpenc.c     ctx->decoding_params = av_malloc(size);
ctx               711 libavcodec/mlpenc.c     if (!ctx->decoding_params) {
ctx               717 libavcodec/mlpenc.c     for (substr = 0; substr < ctx->num_substreams; substr++) {
ctx               718 libavcodec/mlpenc.c         RestartHeader  *rh = &ctx->restart_header [substr];
ctx               729 libavcodec/mlpenc.c     clear_channel_params(ctx, restart_channel_params);
ctx               730 libavcodec/mlpenc.c     clear_decoding_params(ctx, restart_decoding_params);
ctx               732 libavcodec/mlpenc.c     if ((ret = ff_lpc_init(&ctx->lpc_ctx, ctx->number_of_samples,
ctx               739 libavcodec/mlpenc.c     ff_af_queue_init(avctx, &ctx->afq);
ctx               749 libavcodec/mlpenc.c static void write_major_sync(MLPEncodeContext *ctx, uint8_t *buf, int buf_size)
ctx               757 libavcodec/mlpenc.c     if (ctx->avctx->codec_id == AV_CODEC_ID_MLP) {
ctx               759 libavcodec/mlpenc.c         put_bits(&pb,  4, ctx->coded_sample_fmt [0]);
ctx               760 libavcodec/mlpenc.c         put_bits(&pb,  4, ctx->coded_sample_fmt [1]);
ctx               761 libavcodec/mlpenc.c         put_bits(&pb,  4, ctx->coded_sample_rate[0]);
ctx               762 libavcodec/mlpenc.c         put_bits(&pb,  4, ctx->coded_sample_rate[1]);
ctx               766 libavcodec/mlpenc.c         put_bits(&pb,  5, ctx->channel_arrangement );
ctx               767 libavcodec/mlpenc.c     } else if (ctx->avctx->codec_id == AV_CODEC_ID_TRUEHD) {
ctx               769 libavcodec/mlpenc.c         put_bits(&pb,  4, ctx->coded_sample_rate[0]);
ctx               771 libavcodec/mlpenc.c         put_bits(&pb,  2, ctx->ch_modifier_thd0    );
ctx               772 libavcodec/mlpenc.c         put_bits(&pb,  2, ctx->ch_modifier_thd1    );
ctx               773 libavcodec/mlpenc.c         put_bits(&pb,  5, ctx->channel_arrangement );
ctx               774 libavcodec/mlpenc.c         put_bits(&pb,  2, ctx->ch_modifier_thd2    );
ctx               775 libavcodec/mlpenc.c         put_bits(&pb, 13, ctx->channel_arrangement );
ctx               779 libavcodec/mlpenc.c     put_bits(&pb, 16, ctx->flags               );
ctx               782 libavcodec/mlpenc.c     put_bits(&pb, 15, ctx->coded_peak_bitrate  );
ctx               787 libavcodec/mlpenc.c     put_bits(&pb,  8, ctx->substream_info      );
ctx               788 libavcodec/mlpenc.c     put_bits(&pb,  5, ctx->fs                  );
ctx               789 libavcodec/mlpenc.c     put_bits(&pb,  5, ctx->wordlength          );
ctx               790 libavcodec/mlpenc.c     put_bits(&pb,  6, ctx->channel_occupancy   );
ctx               797 libavcodec/mlpenc.c     put_bits(&pb,  5, ctx->summary_info        );
ctx               808 libavcodec/mlpenc.c static void write_restart_header(MLPEncodeContext *ctx, PutBitContext *pb)
ctx               810 libavcodec/mlpenc.c     RestartHeader *rh = ctx->cur_restart_header;
ctx               818 libavcodec/mlpenc.c     put_bits(pb, 16, ctx->timestamp        );
ctx               845 libavcodec/mlpenc.c static void write_matrix_params(MLPEncodeContext *ctx, PutBitContext *pb)
ctx               847 libavcodec/mlpenc.c     DecodingParams *dp = ctx->cur_decoding_params;
ctx               860 libavcodec/mlpenc.c         for (channel = 0; channel < ctx->num_channels; channel++) {
ctx               877 libavcodec/mlpenc.c static void write_filter_params(MLPEncodeContext *ctx, PutBitContext *pb,
ctx               880 libavcodec/mlpenc.c     FilterParams *fp = &ctx->cur_channel_params[channel].filter_params[filter];
ctx               886 libavcodec/mlpenc.c         int32_t *fcoeff = ctx->cur_channel_params[channel].coeff[filter];
ctx               904 libavcodec/mlpenc.c static void write_decoding_params(MLPEncodeContext *ctx, PutBitContext *pb,
ctx               907 libavcodec/mlpenc.c     DecodingParams *dp = ctx->cur_decoding_params;
ctx               908 libavcodec/mlpenc.c     RestartHeader  *rh = ctx->cur_restart_header;
ctx               932 libavcodec/mlpenc.c             write_matrix_params(ctx, pb);
ctx               959 libavcodec/mlpenc.c         ChannelParams *cp = &ctx->cur_channel_params[ch];
ctx               967 libavcodec/mlpenc.c                     write_filter_params(ctx, pb, ch, FIR);
ctx               976 libavcodec/mlpenc.c                     write_filter_params(ctx, pb, ch, IIR);
ctx               991 libavcodec/mlpenc.c                 av_log(ctx->avctx, AV_LOG_ERROR, "Invalid Huff LSBs\n");
ctx              1005 libavcodec/mlpenc.c static void write_block_data(MLPEncodeContext *ctx, PutBitContext *pb)
ctx              1007 libavcodec/mlpenc.c     DecodingParams *dp = ctx->cur_decoding_params;
ctx              1008 libavcodec/mlpenc.c     RestartHeader  *rh = ctx->cur_restart_header;
ctx              1009 libavcodec/mlpenc.c     int32_t *sample_buffer = ctx->write_buffer;
ctx              1016 libavcodec/mlpenc.c         ChannelParams *cp = &ctx->cur_channel_params[ch];
ctx              1049 libavcodec/mlpenc.c     ctx->write_buffer = sample_buffer;
ctx              1053 libavcodec/mlpenc.c static uint8_t *write_substrs(MLPEncodeContext *ctx, uint8_t *buf, int buf_size,
ctx              1057 libavcodec/mlpenc.c     int32_t *lossless_check_data = ctx->lossless_check_data;
ctx              1061 libavcodec/mlpenc.c     lossless_check_data += ctx->frame_index * ctx->num_substreams;
ctx              1063 libavcodec/mlpenc.c     for (substr = 0; substr < ctx->num_substreams; substr++) {
ctx              1064 libavcodec/mlpenc.c         unsigned int cur_subblock_index = ctx->major_cur_subblock_index;
ctx              1065 libavcodec/mlpenc.c         unsigned int num_subblocks = ctx->major_filter_state_subblock;
ctx              1067 libavcodec/mlpenc.c         RestartHeader  *rh = &ctx->restart_header [substr];
ctx              1073 libavcodec/mlpenc.c         ctx->cur_restart_header = rh;
ctx              1082 libavcodec/mlpenc.c             ctx->cur_decoding_params = &ctx->major_decoding_params[subblock_index][substr];
ctx              1083 libavcodec/mlpenc.c             ctx->cur_channel_params = ctx->major_channel_params[subblock_index];
ctx              1085 libavcodec/mlpenc.c             params_changed = ctx->major_params_changed[subblock_index][substr];
ctx              1093 libavcodec/mlpenc.c                     write_restart_header(ctx, &pb);
ctx              1099 libavcodec/mlpenc.c                 write_decoding_params(ctx, &pb, params_changed);
ctx              1104 libavcodec/mlpenc.c             write_block_data(ctx, &pb);
ctx              1115 libavcodec/mlpenc.c         if (ctx->last_frame == ctx->inout_buffer) {
ctx              1138 libavcodec/mlpenc.c     ctx->major_cur_subblock_index += ctx->major_filter_state_subblock + 1;
ctx              1139 libavcodec/mlpenc.c     ctx->major_filter_state_subblock = 0;
ctx              1145 libavcodec/mlpenc.c static void write_frame_headers(MLPEncodeContext *ctx, uint8_t *frame_header,
ctx              1154 libavcodec/mlpenc.c     parity_nibble  = ctx->dts;
ctx              1157 libavcodec/mlpenc.c     for (substr = 0; substr < ctx->num_substreams; substr++) {
ctx              1180 libavcodec/mlpenc.c     AV_WB16(frame_header+2, ctx->dts          );
ctx              1184 libavcodec/mlpenc.c static unsigned int write_access_unit(MLPEncodeContext *ctx, uint8_t *buf,
ctx              1202 libavcodec/mlpenc.c         write_major_sync(ctx, buf, buf_size);
ctx              1210 libavcodec/mlpenc.c     for (substr = 0; substr < ctx->num_substreams; substr++) {
ctx              1215 libavcodec/mlpenc.c     buf = write_substrs(ctx, buf, buf_size, restart_frame, substream_data_len);
ctx              1219 libavcodec/mlpenc.c     write_frame_headers(ctx, buf0, buf1, total_length / 2, restart_frame, substream_data_len);
ctx              1232 libavcodec/mlpenc.c static void input_data_internal(MLPEncodeContext *ctx, const uint8_t *samples,
ctx              1235 libavcodec/mlpenc.c     int32_t *lossless_check_data = ctx->lossless_check_data;
ctx              1240 libavcodec/mlpenc.c     lossless_check_data += ctx->frame_index * ctx->num_substreams;
ctx              1242 libavcodec/mlpenc.c     for (substr = 0; substr < ctx->num_substreams; substr++) {
ctx              1243 libavcodec/mlpenc.c         RestartHeader  *rh = &ctx->restart_header [substr];
ctx              1244 libavcodec/mlpenc.c         int32_t *sample_buffer = ctx->inout_buffer;
ctx              1250 libavcodec/mlpenc.c         for (i = 0; i < ctx->frame_size[ctx->frame_index]; i++) {
ctx              1269 libavcodec/mlpenc.c         ctx->max_output_bits[ctx->frame_index] = number_sbits(greatest);
ctx              1276 libavcodec/mlpenc.c static void input_data(MLPEncodeContext *ctx, void *samples)
ctx              1278 libavcodec/mlpenc.c     if (ctx->avctx->sample_fmt == AV_SAMPLE_FMT_S32)
ctx              1279 libavcodec/mlpenc.c         input_data_internal(ctx, samples, 1);
ctx              1281 libavcodec/mlpenc.c         input_data_internal(ctx, samples, 0);
ctx              1284 libavcodec/mlpenc.c static void input_to_sample_buffer(MLPEncodeContext *ctx)
ctx              1286 libavcodec/mlpenc.c     int32_t *sample_buffer = ctx->sample_buffer;
ctx              1289 libavcodec/mlpenc.c     for (index = 0; index < ctx->number_of_frames; index++) {
ctx              1290 libavcodec/mlpenc.c         unsigned int cur_index = (ctx->starting_frame_index + index) % ctx->max_restart_interval;
ctx              1291 libavcodec/mlpenc.c         int32_t *input_buffer = ctx->inout_buffer + cur_index * ctx->one_sample_buffer_size;
ctx              1294 libavcodec/mlpenc.c         for (i = 0; i < ctx->frame_size[cur_index]; i++) {
ctx              1295 libavcodec/mlpenc.c             for (channel = 0; channel < ctx->avctx->channels; channel++)
ctx              1325 libavcodec/mlpenc.c static void determine_quant_step_size(MLPEncodeContext *ctx)
ctx              1327 libavcodec/mlpenc.c     DecodingParams *dp = ctx->cur_decoding_params;
ctx              1328 libavcodec/mlpenc.c     RestartHeader  *rh = ctx->cur_restart_header;
ctx              1330 libavcodec/mlpenc.c     int32_t *sample_buffer = ctx->sample_buffer;
ctx              1337 libavcodec/mlpenc.c     for (i = 0; i < ctx->number_of_samples; i++) {
ctx              1352 libavcodec/mlpenc.c static void code_filter_coeffs(MLPEncodeContext *ctx, FilterParams *fp, int32_t *fcoeff)
ctx              1382 libavcodec/mlpenc.c static void set_filter_params(MLPEncodeContext *ctx,
ctx              1386 libavcodec/mlpenc.c     ChannelParams *cp = &ctx->cur_channel_params[channel];
ctx              1389 libavcodec/mlpenc.c     if ((filter == IIR && ctx->substream_info & SUBSTREAM_INFO_HIGH_RATE) ||
ctx              1395 libavcodec/mlpenc.c         const int max_order = (ctx->substream_info & SUBSTREAM_INFO_HIGH_RATE)
ctx              1397 libavcodec/mlpenc.c         int32_t *sample_buffer = ctx->sample_buffer + channel;
ctx              1399 libavcodec/mlpenc.c         int32_t *lpc_samples = ctx->lpc_sample_buffer;
ctx              1400 libavcodec/mlpenc.c         int32_t *fcoeff = ctx->cur_channel_params[channel].coeff[filter];
ctx              1405 libavcodec/mlpenc.c         for (i = 0; i < ctx->number_of_samples; i++) {
ctx              1407 libavcodec/mlpenc.c             sample_buffer += ctx->num_channels;
ctx              1410 libavcodec/mlpenc.c         order = ff_lpc_calc_coefs(&ctx->lpc_ctx, ctx->lpc_sample_buffer,
ctx              1411 libavcodec/mlpenc.c                                   ctx->number_of_samples, MLP_MIN_LPC_ORDER,
ctx              1422 libavcodec/mlpenc.c         code_filter_coeffs(ctx, fp, fcoeff);
ctx              1430 libavcodec/mlpenc.c static void determine_filters(MLPEncodeContext *ctx)
ctx              1432 libavcodec/mlpenc.c     RestartHeader *rh = ctx->cur_restart_header;
ctx              1437 libavcodec/mlpenc.c             set_filter_params(ctx, channel, filter, 0);
ctx              1448 libavcodec/mlpenc.c static enum MLPChMode estimate_stereo_mode(MLPEncodeContext *ctx)
ctx              1451 libavcodec/mlpenc.c     int32_t *right_ch = ctx->sample_buffer + 1;
ctx              1452 libavcodec/mlpenc.c     int32_t *left_ch  = ctx->sample_buffer;
ctx              1456 libavcodec/mlpenc.c     for(i = 2; i < ctx->number_of_samples; i++) {
ctx              1457 libavcodec/mlpenc.c         int32_t left  = left_ch [i * ctx->num_channels] - 2 * left_ch [(i - 1) * ctx->num_channels] + left_ch [(i - 2) * ctx->num_channels];
ctx              1458 libavcodec/mlpenc.c         int32_t right = right_ch[i * ctx->num_channels] - 2 * right_ch[(i - 1) * ctx->num_channels] + right_ch[(i - 2) * ctx->num_channels];
ctx              1481 libavcodec/mlpenc.c static void code_matrix_coeffs(MLPEncodeContext *ctx, unsigned int mat)
ctx              1483 libavcodec/mlpenc.c     DecodingParams *dp = ctx->cur_decoding_params;
ctx              1489 libavcodec/mlpenc.c     for (channel = 0; channel < ctx->num_channels; channel++) {
ctx              1500 libavcodec/mlpenc.c static void lossless_matrix_coeffs(MLPEncodeContext *ctx)
ctx              1502 libavcodec/mlpenc.c     DecodingParams *dp = ctx->cur_decoding_params;
ctx              1510 libavcodec/mlpenc.c     if (ctx->num_channels - 2 != 2) {
ctx              1515 libavcodec/mlpenc.c     mode = estimate_stereo_mode(ctx);
ctx              1542 libavcodec/mlpenc.c         code_matrix_coeffs(ctx, mat);
ctx              1544 libavcodec/mlpenc.c     for (channel = 0; channel < ctx->num_channels; channel++)
ctx              1560 libavcodec/mlpenc.c static void no_codebook_bits_offset(MLPEncodeContext *ctx,
ctx              1565 libavcodec/mlpenc.c     DecodingParams *dp = ctx->cur_decoding_params;
ctx              1589 libavcodec/mlpenc.c static void no_codebook_bits(MLPEncodeContext *ctx,
ctx              1594 libavcodec/mlpenc.c     DecodingParams *dp = ctx->cur_decoding_params;
ctx              1629 libavcodec/mlpenc.c static inline void codebook_bits_offset(MLPEncodeContext *ctx,
ctx              1636 libavcodec/mlpenc.c     int32_t *sample_buffer = ctx->sample_buffer + channel;
ctx              1637 libavcodec/mlpenc.c     DecodingParams *dp = ctx->cur_decoding_params;
ctx              1680 libavcodec/mlpenc.c         sample_buffer += ctx->num_channels;
ctx              1693 libavcodec/mlpenc.c static inline void codebook_bits(MLPEncodeContext *ctx,
ctx              1708 libavcodec/mlpenc.c         codebook_bits_offset(ctx, channel, codebook,
ctx              1717 libavcodec/mlpenc.c         } else if (++is_greater >= ctx->max_codebook_search)
ctx              1733 libavcodec/mlpenc.c static void determine_bits(MLPEncodeContext *ctx)
ctx              1735 libavcodec/mlpenc.c     DecodingParams *dp = ctx->cur_decoding_params;
ctx              1736 libavcodec/mlpenc.c     RestartHeader  *rh = ctx->cur_restart_header;
ctx              1740 libavcodec/mlpenc.c         ChannelParams *cp = &ctx->cur_channel_params[channel];
ctx              1741 libavcodec/mlpenc.c         int32_t *sample_buffer = ctx->sample_buffer + channel;
ctx              1756 libavcodec/mlpenc.c             sample_buffer += ctx->num_channels;
ctx              1763 libavcodec/mlpenc.c             no_codebook_bits(ctx, channel, min, max, &ctx->cur_best_offset[channel][0]);
ctx              1766 libavcodec/mlpenc.c             no_codebook_bits_offset(ctx, channel, offset, min, max, &ctx->cur_best_offset[channel][0]);
ctx              1773 libavcodec/mlpenc.c             codebook_bits_offset(ctx, channel, i - 1,
ctx              1780 libavcodec/mlpenc.c                 codebook_bits(ctx, channel, i - 1, temp_bo.min - 1,
ctx              1782 libavcodec/mlpenc.c                 codebook_bits(ctx, channel, i - 1, offset_max + 1,
ctx              1786 libavcodec/mlpenc.c             ctx->cur_best_offset[channel][i] = temp_bo;
ctx              1805 libavcodec/mlpenc.c static int apply_filter(MLPEncodeContext *ctx, unsigned int channel)
ctx              1807 libavcodec/mlpenc.c     FilterParams *fp[NUM_FILTERS] = { &ctx->cur_channel_params[channel].filter_params[FIR],
ctx              1808 libavcodec/mlpenc.c                                       &ctx->cur_channel_params[channel].filter_params[IIR], };
ctx              1810 libavcodec/mlpenc.c     int32_t mask = MSB_MASK(ctx->cur_decoding_params->quant_step_size[channel]);
ctx              1811 libavcodec/mlpenc.c     int32_t *sample_buffer = ctx->sample_buffer + channel;
ctx              1812 libavcodec/mlpenc.c     unsigned int number_of_samples = ctx->number_of_samples;
ctx              1818 libavcodec/mlpenc.c         unsigned int size = ctx->number_of_samples;
ctx              1821 libavcodec/mlpenc.c             av_log(ctx->avctx, AV_LOG_ERROR,
ctx              1831 libavcodec/mlpenc.c         sample_buffer += ctx->num_channels;
ctx              1841 libavcodec/mlpenc.c             int32_t *fcoeff = ctx->cur_channel_params[channel].coeff[filter];
ctx              1858 libavcodec/mlpenc.c         sample_buffer += ctx->num_channels;
ctx              1861 libavcodec/mlpenc.c     sample_buffer = ctx->sample_buffer + channel;
ctx              1865 libavcodec/mlpenc.c         sample_buffer += ctx->num_channels;
ctx              1876 libavcodec/mlpenc.c static void apply_filters(MLPEncodeContext *ctx)
ctx              1878 libavcodec/mlpenc.c     RestartHeader *rh = ctx->cur_restart_header;
ctx              1882 libavcodec/mlpenc.c         if (apply_filter(ctx, channel) < 0) {
ctx              1885 libavcodec/mlpenc.c             set_filter_params(ctx, channel, FIR, 1);
ctx              1886 libavcodec/mlpenc.c             set_filter_params(ctx, channel, IIR, 1);
ctx              1887 libavcodec/mlpenc.c             apply_filter(ctx, channel);
ctx              1893 libavcodec/mlpenc.c static void generate_2_noise_channels(MLPEncodeContext *ctx)
ctx              1895 libavcodec/mlpenc.c     int32_t *sample_buffer = ctx->sample_buffer + ctx->num_channels - 2;
ctx              1896 libavcodec/mlpenc.c     RestartHeader *rh = ctx->cur_restart_header;
ctx              1900 libavcodec/mlpenc.c     for (i = 0; i < ctx->number_of_samples; i++) {
ctx              1907 libavcodec/mlpenc.c         sample_buffer += ctx->num_channels - 2;
ctx              1914 libavcodec/mlpenc.c static void rematrix_channels(MLPEncodeContext *ctx)
ctx              1916 libavcodec/mlpenc.c     DecodingParams *dp = ctx->cur_decoding_params;
ctx              1918 libavcodec/mlpenc.c     int32_t *sample_buffer = ctx->sample_buffer;
ctx              1921 libavcodec/mlpenc.c     maxchan = ctx->num_channels;
ctx              1924 libavcodec/mlpenc.c         unsigned int msb_mask_bits = (ctx->avctx->sample_fmt == AV_SAMPLE_FMT_S16 ? 8 : 0) - mp->shift[mat];
ctx              1928 libavcodec/mlpenc.c         sample_buffer = ctx->sample_buffer;
ctx              1929 libavcodec/mlpenc.c         for (i = 0; i < ctx->number_of_samples; i++) {
ctx              1939 libavcodec/mlpenc.c             sample_buffer += ctx->num_channels;
ctx              1977 libavcodec/mlpenc.c static int best_codebook_path_cost(MLPEncodeContext *ctx, unsigned int channel,
ctx              1987 libavcodec/mlpenc.c         prev_bo = ctx->best_offset[i][channel];
ctx              1991 libavcodec/mlpenc.c     cur_bo = ctx->best_offset[i][channel];
ctx              2002 libavcodec/mlpenc.c static void set_best_codebook(MLPEncodeContext *ctx)
ctx              2004 libavcodec/mlpenc.c     DecodingParams *dp = ctx->cur_decoding_params;
ctx              2005 libavcodec/mlpenc.c     RestartHeader *rh = ctx->cur_restart_header;
ctx              2017 libavcodec/mlpenc.c         for (index = 0; index < ctx->number_of_subblocks; index++) {
ctx              2021 libavcodec/mlpenc.c             cur_bo = ctx->best_offset[index][channel];
ctx              2043 libavcodec/mlpenc.c                     temp_bitcount = best_codebook_path_cost(ctx, channel, src_path, codebook);
ctx              2068 libavcodec/mlpenc.c         for (index = 0; index < ctx->number_of_subblocks; index++) {
ctx              2069 libavcodec/mlpenc.c             ChannelParams *cp = ctx->seq_channel_params + index*(ctx->avctx->channels) + channel;
ctx              2072 libavcodec/mlpenc.c             cur_bo = &ctx->best_offset[index][channel][best_codebook];
ctx              2085 libavcodec/mlpenc.c static void set_major_params(MLPEncodeContext *ctx)
ctx              2087 libavcodec/mlpenc.c     RestartHeader *rh = ctx->cur_restart_header;
ctx              2093 libavcodec/mlpenc.c     for (substr = 0; substr < ctx->num_substreams; substr++) {
ctx              2094 libavcodec/mlpenc.c         DecodingParams *seq_dp = (DecodingParams *) ctx->decoding_params+
ctx              2095 libavcodec/mlpenc.c                                  (ctx->restart_intervals - 1)*(ctx->sequence_size)*(ctx->avctx->channels) +
ctx              2096 libavcodec/mlpenc.c                                  (ctx->seq_offset[ctx->restart_intervals - 1])*(ctx->avctx->channels);
ctx              2098 libavcodec/mlpenc.c         ChannelParams *seq_cp = (ChannelParams *) ctx->channel_params +
ctx              2099 libavcodec/mlpenc.c                                 (ctx->restart_intervals - 1)*(ctx->sequence_size)*(ctx->avctx->channels) +
ctx              2100 libavcodec/mlpenc.c                                 (ctx->seq_offset[ctx->restart_intervals - 1])*(ctx->avctx->channels);
ctx              2102 libavcodec/mlpenc.c         for (index = 0; index < ctx->seq_size[ctx->restart_intervals-1]; index++) {
ctx              2103 libavcodec/mlpenc.c             memcpy(&ctx->major_decoding_params[index][substr], seq_dp + index*(ctx->num_substreams) + substr, sizeof(DecodingParams));
ctx              2104 libavcodec/mlpenc.c             for (channel = 0; channel < ctx->avctx->channels; channel++) {
ctx              2105 libavcodec/mlpenc.c                 uint8_t huff_lsbs = (seq_cp + index*(ctx->avctx->channels) + channel)->huff_lsbs;
ctx              2108 libavcodec/mlpenc.c                 memcpy(&ctx->major_channel_params[index][channel],
ctx              2109 libavcodec/mlpenc.c                        (seq_cp + index*(ctx->avctx->channels) + channel),
ctx              2117 libavcodec/mlpenc.c     for (index = 0; index < ctx->number_of_frames; index++)
ctx              2118 libavcodec/mlpenc.c         if (max_output_bits < ctx->max_output_bits[index])
ctx              2119 libavcodec/mlpenc.c             max_output_bits = ctx->max_output_bits[index];
ctx              2122 libavcodec/mlpenc.c     for (substr = 0; substr < ctx->num_substreams; substr++) {
ctx              2124 libavcodec/mlpenc.c         ctx->cur_restart_header = &ctx->restart_header[substr];
ctx              2126 libavcodec/mlpenc.c         ctx->prev_decoding_params = &restart_decoding_params[substr];
ctx              2127 libavcodec/mlpenc.c         ctx->prev_channel_params = restart_channel_params;
ctx              2130 libavcodec/mlpenc.c                 ctx->cur_decoding_params = &ctx->major_decoding_params[index][substr];
ctx              2131 libavcodec/mlpenc.c                 ctx->cur_channel_params = ctx->major_channel_params[index];
ctx              2133 libavcodec/mlpenc.c                 ctx->major_params_changed[index][substr] = compare_decoding_params(ctx);
ctx              2135 libavcodec/mlpenc.c                 ctx->prev_decoding_params = ctx->cur_decoding_params;
ctx              2136 libavcodec/mlpenc.c                 ctx->prev_channel_params = ctx->cur_channel_params;
ctx              2140 libavcodec/mlpenc.c     ctx->major_number_of_subblocks = ctx->number_of_subblocks;
ctx              2141 libavcodec/mlpenc.c     ctx->major_filter_state_subblock = 1;
ctx              2142 libavcodec/mlpenc.c     ctx->major_cur_subblock_index = 0;
ctx              2145 libavcodec/mlpenc.c static void analyze_sample_buffer(MLPEncodeContext *ctx)
ctx              2147 libavcodec/mlpenc.c     ChannelParams *seq_cp = ctx->seq_channel_params;
ctx              2148 libavcodec/mlpenc.c     DecodingParams *seq_dp = ctx->seq_decoding_params;
ctx              2152 libavcodec/mlpenc.c     for (substr = 0; substr < ctx->num_substreams; substr++) {
ctx              2154 libavcodec/mlpenc.c         ctx->cur_restart_header = &ctx->restart_header[substr];
ctx              2155 libavcodec/mlpenc.c         ctx->cur_decoding_params = seq_dp + 1*(ctx->num_substreams) + substr;
ctx              2156 libavcodec/mlpenc.c         ctx->cur_channel_params = seq_cp + 1*(ctx->avctx->channels);
ctx              2158 libavcodec/mlpenc.c         determine_quant_step_size(ctx);
ctx              2159 libavcodec/mlpenc.c         generate_2_noise_channels(ctx);
ctx              2160 libavcodec/mlpenc.c         lossless_matrix_coeffs   (ctx);
ctx              2161 libavcodec/mlpenc.c         rematrix_channels        (ctx);
ctx              2162 libavcodec/mlpenc.c         determine_filters        (ctx);
ctx              2163 libavcodec/mlpenc.c         apply_filters            (ctx);
ctx              2165 libavcodec/mlpenc.c         copy_restart_frame_params(ctx, substr);
ctx              2170 libavcodec/mlpenc.c         for (index = 0; index < ctx->number_of_frames; index++) {
ctx              2171 libavcodec/mlpenc.c             DecodingParams *dp = seq_dp + (index + 1)*(ctx->num_substreams) + substr;
ctx              2172 libavcodec/mlpenc.c             dp->blocksize = ctx->frame_size[index];
ctx              2179 libavcodec/mlpenc.c         (seq_dp + 1*(ctx->num_substreams) + substr)->blocksize -= 8;
ctx              2181 libavcodec/mlpenc.c         for (index = 0; index < ctx->number_of_subblocks; index++) {
ctx              2182 libavcodec/mlpenc.c                 ctx->cur_decoding_params = seq_dp + index*(ctx->num_substreams) + substr;
ctx              2183 libavcodec/mlpenc.c                 ctx->cur_channel_params = seq_cp + index*(ctx->avctx->channels);
ctx              2184 libavcodec/mlpenc.c                 ctx->cur_best_offset = ctx->best_offset[index];
ctx              2185 libavcodec/mlpenc.c                 determine_bits(ctx);
ctx              2186 libavcodec/mlpenc.c                 ctx->sample_buffer += ctx->cur_decoding_params->blocksize * ctx->num_channels;
ctx              2189 libavcodec/mlpenc.c         set_best_codebook(ctx);
ctx              2193 libavcodec/mlpenc.c static void process_major_frame(MLPEncodeContext *ctx)
ctx              2197 libavcodec/mlpenc.c     ctx->sample_buffer = ctx->major_inout_buffer;
ctx              2199 libavcodec/mlpenc.c     ctx->starting_frame_index = 0;
ctx              2200 libavcodec/mlpenc.c     ctx->number_of_frames = ctx->major_number_of_frames;
ctx              2201 libavcodec/mlpenc.c     ctx->number_of_samples = ctx->major_frame_size;
ctx              2203 libavcodec/mlpenc.c     for (substr = 0; substr < ctx->num_substreams; substr++) {
ctx              2204 libavcodec/mlpenc.c         ctx->cur_restart_header = &ctx->restart_header[substr];
ctx              2206 libavcodec/mlpenc.c         ctx->cur_decoding_params = &ctx->major_decoding_params[1][substr];
ctx              2207 libavcodec/mlpenc.c         ctx->cur_channel_params = ctx->major_channel_params[1];
ctx              2209 libavcodec/mlpenc.c         generate_2_noise_channels(ctx);
ctx              2210 libavcodec/mlpenc.c         rematrix_channels        (ctx);
ctx              2212 libavcodec/mlpenc.c         apply_filters(ctx);
ctx              2221 libavcodec/mlpenc.c     MLPEncodeContext *ctx = avctx->priv_data;
ctx              2233 libavcodec/mlpenc.c     if ((ret = ff_af_queue_add(&ctx->afq, frame)) < 0)
ctx              2238 libavcodec/mlpenc.c     ctx->frame_index = avctx->frame_number % ctx->max_restart_interval;
ctx              2240 libavcodec/mlpenc.c     ctx->inout_buffer = ctx->major_inout_buffer
ctx              2241 libavcodec/mlpenc.c                       + ctx->frame_index * ctx->one_sample_buffer_size;
ctx              2243 libavcodec/mlpenc.c     if (ctx->last_frame == ctx->inout_buffer) {
ctx              2247 libavcodec/mlpenc.c     ctx->sample_buffer = ctx->major_scratch_buffer
ctx              2248 libavcodec/mlpenc.c                        + ctx->frame_index * ctx->one_sample_buffer_size;
ctx              2250 libavcodec/mlpenc.c     ctx->write_buffer = ctx->inout_buffer;
ctx              2252 libavcodec/mlpenc.c     if (avctx->frame_number < ctx->max_restart_interval) {
ctx              2259 libavcodec/mlpenc.c             ctx->max_restart_interval = avctx->frame_number;
ctx              2260 libavcodec/mlpenc.c             ctx->frame_index = 0;
ctx              2262 libavcodec/mlpenc.c             ctx->sample_buffer = ctx->major_scratch_buffer;
ctx              2263 libavcodec/mlpenc.c             ctx->inout_buffer = ctx->major_inout_buffer;
ctx              2267 libavcodec/mlpenc.c     if (ctx->frame_size[ctx->frame_index] > MAX_BLOCKSIZE) {
ctx              2269 libavcodec/mlpenc.c                ctx->frame_size[ctx->frame_index], MAX_BLOCKSIZE);
ctx              2273 libavcodec/mlpenc.c     restart_frame = !ctx->frame_index;
ctx              2276 libavcodec/mlpenc.c         set_major_params(ctx);
ctx              2277 libavcodec/mlpenc.c         if (ctx->min_restart_interval != ctx->max_restart_interval)
ctx              2278 libavcodec/mlpenc.c             process_major_frame(ctx);
ctx              2281 libavcodec/mlpenc.c     if (ctx->min_restart_interval == ctx->max_restart_interval)
ctx              2282 libavcodec/mlpenc.c         ctx->write_buffer = ctx->sample_buffer;
ctx              2284 libavcodec/mlpenc.c     bytes_written = write_access_unit(ctx, avpkt->data, avpkt->size, restart_frame);
ctx              2286 libavcodec/mlpenc.c     ctx->timestamp += ctx->frame_size[ctx->frame_index];
ctx              2287 libavcodec/mlpenc.c     ctx->dts       += ctx->frame_size[ctx->frame_index];
ctx              2292 libavcodec/mlpenc.c         ctx->frame_size[ctx->frame_index] = avctx->frame_size;
ctx              2293 libavcodec/mlpenc.c         ctx->next_major_frame_size += avctx->frame_size;
ctx              2294 libavcodec/mlpenc.c         ctx->next_major_number_of_frames++;
ctx              2295 libavcodec/mlpenc.c         input_data(ctx, data);
ctx              2296 libavcodec/mlpenc.c     } else if (!ctx->last_frame) {
ctx              2297 libavcodec/mlpenc.c         ctx->last_frame = ctx->inout_buffer;
ctx              2300 libavcodec/mlpenc.c     restart_frame = (ctx->frame_index + 1) % ctx->min_restart_interval;
ctx              2306 libavcodec/mlpenc.c              seq_index < ctx->restart_intervals && (seq_index * ctx->min_restart_interval) <= ctx->avctx->frame_number;
ctx              2311 libavcodec/mlpenc.c             ctx->sample_buffer = ctx->major_scratch_buffer;
ctx              2312 libavcodec/mlpenc.c             ctx->inout_buffer = ctx->major_inout_buffer;
ctx              2313 libavcodec/mlpenc.c             ctx->seq_index = seq_index;
ctx              2315 libavcodec/mlpenc.c             ctx->starting_frame_index = (ctx->avctx->frame_number - (ctx->avctx->frame_number % ctx->min_restart_interval)
ctx              2316 libavcodec/mlpenc.c                                       - (seq_index * ctx->min_restart_interval)) % ctx->max_restart_interval;
ctx              2317 libavcodec/mlpenc.c             ctx->number_of_frames = ctx->next_major_number_of_frames;
ctx              2318 libavcodec/mlpenc.c             ctx->number_of_subblocks = ctx->next_major_number_of_frames + 1;
ctx              2320 libavcodec/mlpenc.c             ctx->seq_channel_params = (ChannelParams *) ctx->channel_params +
ctx              2321 libavcodec/mlpenc.c                                       (ctx->frame_index / ctx->min_restart_interval)*(ctx->sequence_size)*(ctx->avctx->channels) +
ctx              2322 libavcodec/mlpenc.c                                       (ctx->seq_offset[seq_index])*(ctx->avctx->channels);
ctx              2324 libavcodec/mlpenc.c             ctx->seq_decoding_params = (DecodingParams *) ctx->decoding_params +
ctx              2325 libavcodec/mlpenc.c                                        (ctx->frame_index / ctx->min_restart_interval)*(ctx->sequence_size)*(ctx->num_substreams) +
ctx              2326 libavcodec/mlpenc.c                                        (ctx->seq_offset[seq_index])*(ctx->num_substreams);
ctx              2328 libavcodec/mlpenc.c             for (index = 0; index < ctx->number_of_frames; index++) {
ctx              2329 libavcodec/mlpenc.c                 number_of_samples += ctx->frame_size[(ctx->starting_frame_index + index) % ctx->max_restart_interval];
ctx              2331 libavcodec/mlpenc.c             ctx->number_of_samples = number_of_samples;
ctx              2333 libavcodec/mlpenc.c             for (index = 0; index < ctx->seq_size[seq_index]; index++) {
ctx              2334 libavcodec/mlpenc.c                 clear_channel_params(ctx, ctx->seq_channel_params + index*(ctx->avctx->channels));
ctx              2335 libavcodec/mlpenc.c                 default_decoding_params(ctx, ctx->seq_decoding_params + index*(ctx->num_substreams));
ctx              2338 libavcodec/mlpenc.c             input_to_sample_buffer(ctx);
ctx              2340 libavcodec/mlpenc.c             analyze_sample_buffer(ctx);
ctx              2343 libavcodec/mlpenc.c         if (ctx->frame_index == (ctx->max_restart_interval - 1)) {
ctx              2344 libavcodec/mlpenc.c             ctx->major_frame_size = ctx->next_major_frame_size;
ctx              2345 libavcodec/mlpenc.c             ctx->next_major_frame_size = 0;
ctx              2346 libavcodec/mlpenc.c             ctx->major_number_of_frames = ctx->next_major_number_of_frames;
ctx              2347 libavcodec/mlpenc.c             ctx->next_major_number_of_frames = 0;
ctx              2349 libavcodec/mlpenc.c             if (!ctx->major_frame_size)
ctx              2356 libavcodec/mlpenc.c     ff_af_queue_remove(&ctx->afq, avctx->frame_size, &avpkt->pts,
ctx              2365 libavcodec/mlpenc.c     MLPEncodeContext *ctx = avctx->priv_data;
ctx              2367 libavcodec/mlpenc.c     ff_lpc_end(&ctx->lpc_ctx);
ctx              2369 libavcodec/mlpenc.c     av_freep(&ctx->lossless_check_data);
ctx              2370 libavcodec/mlpenc.c     av_freep(&ctx->major_scratch_buffer);
ctx              2371 libavcodec/mlpenc.c     av_freep(&ctx->major_inout_buffer);
ctx              2372 libavcodec/mlpenc.c     av_freep(&ctx->lpc_sample_buffer);
ctx              2373 libavcodec/mlpenc.c     av_freep(&ctx->decoding_params);
ctx              2374 libavcodec/mlpenc.c     av_freep(&ctx->channel_params);
ctx              2375 libavcodec/mlpenc.c     av_freep(&ctx->frame_size);
ctx              2376 libavcodec/mlpenc.c     av_freep(&ctx->max_output_bits);
ctx              2377 libavcodec/mlpenc.c     ff_af_queue_close(&ctx->afq);
ctx               149 libavcodec/mmaldec.c     MMALDecodeContext *ctx = avctx->priv_data;
ctx               150 libavcodec/mmaldec.c     MMAL_COMPONENT_T *decoder = ctx->decoder;
ctx               161 libavcodec/mmaldec.c     while ((buffer = mmal_queue_get(ctx->queue_decoded_frames)))
ctx               164 libavcodec/mmaldec.c     while (ctx->waiting_buffers) {
ctx               165 libavcodec/mmaldec.c         FFBufferEntry *buffer = ctx->waiting_buffers;
ctx               167 libavcodec/mmaldec.c         ctx->waiting_buffers = buffer->next;
ctx               170 libavcodec/mmaldec.c             atomic_fetch_add(&ctx->packets_buffered, -1);
ctx               175 libavcodec/mmaldec.c     ctx->waiting_buffers_tail = NULL;
ctx               177 libavcodec/mmaldec.c     av_assert0(atomic_load(&ctx->packets_buffered) == 0);
ctx               179 libavcodec/mmaldec.c     ctx->frames_output = ctx->eos_received = ctx->eos_sent = ctx->packets_sent = ctx->extradata_sent = 0;
ctx               184 libavcodec/mmaldec.c     MMALDecodeContext *ctx = avctx->priv_data;
ctx               186 libavcodec/mmaldec.c     if (ctx->decoder)
ctx               189 libavcodec/mmaldec.c     mmal_component_destroy(ctx->decoder);
ctx               190 libavcodec/mmaldec.c     ctx->decoder = NULL;
ctx               191 libavcodec/mmaldec.c     mmal_queue_destroy(ctx->queue_decoded_frames);
ctx               192 libavcodec/mmaldec.c     mmal_pool_destroy(ctx->pool_in);
ctx               193 libavcodec/mmaldec.c     ffmmal_poolref_unref(ctx->pool_out);
ctx               203 libavcodec/mmaldec.c     MMALDecodeContext *ctx = avctx->priv_data;
ctx               209 libavcodec/mmaldec.c             atomic_fetch_add(&ctx->packets_buffered, -1);
ctx               218 libavcodec/mmaldec.c     MMALDecodeContext *ctx = avctx->priv_data;
ctx               220 libavcodec/mmaldec.c     mmal_queue_put(ctx->queue_decoded_frames, buffer);
ctx               242 libavcodec/mmaldec.c     MMALDecodeContext *ctx = avctx->priv_data;
ctx               246 libavcodec/mmaldec.c     if (!ctx->pool_out)
ctx               249 libavcodec/mmaldec.c     while ((buffer = mmal_queue_get(ctx->pool_out->pool->queue))) {
ctx               250 libavcodec/mmaldec.c         if ((status = mmal_port_send_buffer(ctx->decoder->output[0], buffer))) {
ctx               275 libavcodec/mmaldec.c     MMALDecodeContext *ctx = avctx->priv_data;
ctx               278 libavcodec/mmaldec.c     MMAL_COMPONENT_T *decoder = ctx->decoder;
ctx               282 libavcodec/mmaldec.c     ffmmal_poolref_unref(ctx->pool_out);
ctx               283 libavcodec/mmaldec.c     if (!(ctx->pool_out = av_mallocz(sizeof(*ctx->pool_out)))) {
ctx               287 libavcodec/mmaldec.c     atomic_init(&ctx->pool_out->refcount, 1);
ctx               292 libavcodec/mmaldec.c     if ((status = mmal_port_parameter_set_uint32(decoder->output[0], MMAL_PARAMETER_EXTRA_BUFFERS, ctx->extra_buffers)))
ctx               313 libavcodec/mmaldec.c         ctx->interlaced_frame = (interlace_type.eMode != MMAL_InterlaceProgressive);
ctx               314 libavcodec/mmaldec.c         ctx->top_field_first = (interlace_type.eMode == MMAL_InterlaceFieldsInterleavedUpperFirst);
ctx               335 libavcodec/mmaldec.c         FFMAX(decoder->output[0]->buffer_num_min, decoder->output[0]->buffer_num_recommended) + ctx->extra_buffers;
ctx               336 libavcodec/mmaldec.c     ctx->pool_out->pool = mmal_pool_create(decoder->output[0]->buffer_num,
ctx               338 libavcodec/mmaldec.c     if (!ctx->pool_out->pool) {
ctx               351 libavcodec/mmaldec.c     MMALDecodeContext *ctx = avctx->priv_data;
ctx               369 libavcodec/mmaldec.c     if ((status = mmal_component_create(MMAL_COMPONENT_DEFAULT_VIDEO_DECODER, &ctx->decoder)))
ctx               372 libavcodec/mmaldec.c     decoder = ctx->decoder;
ctx               406 libavcodec/mmaldec.c                                        -1 - ctx->extra_decoder_buffers)) {
ctx               418 libavcodec/mmaldec.c     ctx->pool_in = mmal_pool_create(decoder->input[0]->buffer_num, 0);
ctx               419 libavcodec/mmaldec.c     if (!ctx->pool_in) {
ctx               427 libavcodec/mmaldec.c     ctx->queue_decoded_frames = mmal_queue_create();
ctx               428 libavcodec/mmaldec.c     if (!ctx->queue_decoded_frames)
ctx               454 libavcodec/mmaldec.c     MMALDecodeContext *ctx = avctx->priv_data;
ctx               455 libavcodec/mmaldec.c     MMAL_COMPONENT_T *decoder = ctx->decoder;
ctx               482 libavcodec/mmaldec.c     MMALDecodeContext *ctx = avctx->priv_data;
ctx               507 libavcodec/mmaldec.c             ctx->packets_sent++;
ctx               509 libavcodec/mmaldec.c         if (ctx->eos_sent)
ctx               511 libavcodec/mmaldec.c         if (!ctx->packets_sent) {
ctx               513 libavcodec/mmaldec.c             ctx->eos_sent = 1;
ctx               514 libavcodec/mmaldec.c             ctx->eos_received = 1;
ctx               529 libavcodec/mmaldec.c         buffer->length = FFMIN(size, ctx->decoder->input[0]->buffer_size);
ctx               545 libavcodec/mmaldec.c             atomic_fetch_add(&ctx->packets_buffered, 1);
ctx               550 libavcodec/mmaldec.c             ctx->eos_sent = 1;
ctx               563 libavcodec/mmaldec.c         if (!ctx->waiting_buffers)
ctx               564 libavcodec/mmaldec.c             ctx->waiting_buffers = buffer;
ctx               565 libavcodec/mmaldec.c         if (ctx->waiting_buffers_tail)
ctx               566 libavcodec/mmaldec.c             ctx->waiting_buffers_tail->next = buffer;
ctx               567 libavcodec/mmaldec.c         ctx->waiting_buffers_tail = buffer;
ctx               578 libavcodec/mmaldec.c     MMALDecodeContext *ctx = avctx->priv_data;
ctx               580 libavcodec/mmaldec.c     while (ctx->waiting_buffers) {
ctx               585 libavcodec/mmaldec.c         mbuffer = mmal_queue_get(ctx->pool_in->queue);
ctx               589 libavcodec/mmaldec.c         buffer = ctx->waiting_buffers;
ctx               599 libavcodec/mmaldec.c         mbuffer->alloc_size = ctx->decoder->input[0]->buffer_size;
ctx               602 libavcodec/mmaldec.c         ctx->waiting_buffers = buffer->next;
ctx               603 libavcodec/mmaldec.c         if (ctx->waiting_buffers_tail == buffer)
ctx               604 libavcodec/mmaldec.c             ctx->waiting_buffers_tail = NULL;
ctx               606 libavcodec/mmaldec.c         if ((status = mmal_port_send_buffer(ctx->decoder->input[0], mbuffer))) {
ctx               610 libavcodec/mmaldec.c                 atomic_fetch_add(&ctx->packets_buffered, -1);
ctx               626 libavcodec/mmaldec.c     MMALDecodeContext *ctx = avctx->priv_data;
ctx               629 libavcodec/mmaldec.c     frame->interlaced_frame = ctx->interlaced_frame;
ctx               630 libavcodec/mmaldec.c     frame->top_field_first = ctx->top_field_first;
ctx               633 libavcodec/mmaldec.c         if (!ctx->pool_out)
ctx               639 libavcodec/mmaldec.c         if ((ret = ffmmal_set_ref(frame, ctx->pool_out, buffer)) < 0)
ctx               672 libavcodec/mmaldec.c     MMALDecodeContext *ctx = avctx->priv_data;
ctx               677 libavcodec/mmaldec.c     if (ctx->eos_received)
ctx               692 libavcodec/mmaldec.c         if (atomic_load(&ctx->packets_buffered) > MAX_DELAYED_FRAMES ||
ctx               693 libavcodec/mmaldec.c             (ctx->packets_sent && ctx->eos_sent)) {
ctx               698 libavcodec/mmaldec.c             buffer = mmal_queue_timedwait(ctx->queue_decoded_frames, 100);
ctx               705 libavcodec/mmaldec.c             buffer = mmal_queue_get(ctx->queue_decoded_frames);
ctx               710 libavcodec/mmaldec.c         ctx->eos_received |= !!(buffer->flags & MMAL_BUFFER_HEADER_FLAG_EOS);
ctx               711 libavcodec/mmaldec.c         if (ctx->eos_received)
ctx               715 libavcodec/mmaldec.c             MMAL_COMPONENT_T *decoder = ctx->decoder;
ctx               724 libavcodec/mmaldec.c             while ((stale_buffer = mmal_queue_get(ctx->queue_decoded_frames)))
ctx               753 libavcodec/mmaldec.c         ctx->frames_output++;
ctx               773 libavcodec/mmaldec.c     MMALDecodeContext *ctx = avctx->priv_data;
ctx               777 libavcodec/mmaldec.c     if (avctx->extradata_size && !ctx->extradata_sent) {
ctx               782 libavcodec/mmaldec.c         ctx->extradata_sent = 1;
ctx                26 libavcodec/movsub_bsf.c static int text2movsub(AVBSFContext *ctx, AVPacket *out)
ctx                31 libavcodec/movsub_bsf.c     ret = ff_bsf_get_packet(ctx, &in);
ctx                65 libavcodec/movsub_bsf.c static int mov2textsub(AVBSFContext *ctx, AVPacket *pkt)
ctx                69 libavcodec/movsub_bsf.c     ret = ff_bsf_get_packet_ref(ctx, pkt);
ctx                29 libavcodec/mp3_header_decompress_bsf.c static int mp3_header_decompress(AVBSFContext *ctx, AVPacket *out)
ctx                33 libavcodec/mp3_header_decompress_bsf.c     int sample_rate= ctx->par_in->sample_rate;
ctx                39 libavcodec/mp3_header_decompress_bsf.c     ret = ff_bsf_get_packet(ctx, &in);
ctx                54 libavcodec/mp3_header_decompress_bsf.c     if(ctx->par_in->extradata_size != 15 || strcmp(ctx->par_in->extradata, "FFCMP3 0.0")){
ctx                55 libavcodec/mp3_header_decompress_bsf.c         av_log(ctx, AV_LOG_ERROR, "Extradata invalid %d\n", ctx->par_in->extradata_size);
ctx                60 libavcodec/mp3_header_decompress_bsf.c     header= AV_RB32(ctx->par_in->extradata+11) & MP3_MASK;
ctx                81 libavcodec/mp3_header_decompress_bsf.c         av_log(ctx, AV_LOG_ERROR, "Could not find bitrate_index.\n");
ctx               100 libavcodec/mp3_header_decompress_bsf.c     if(ctx->par_in->channels==2){
ctx               129 libavcodec/mpeg12dec.c #define check_scantable_index(ctx, x)                                         \
ctx               132 libavcodec/mpeg12dec.c             av_log(ctx->avctx, AV_LOG_ERROR, "ac-tex damaged at %d %d\n",     \
ctx               133 libavcodec/mpeg12dec.c                    ctx->mb_x, ctx->mb_y);                                     \
ctx              1086 libavcodec/mpeg12dec.c     Mpeg1Context *ctx = avctx->priv_data, *ctx_from = avctx_from->priv_data;
ctx              1087 libavcodec/mpeg12dec.c     MpegEncContext *s = &ctx->mpeg_enc_ctx, *s1 = &ctx_from->mpeg_enc_ctx;
ctx              1099 libavcodec/mpeg12dec.c     if (!ctx->mpeg_enc_ctx_allocated)
ctx                53 libavcodec/mpeg2_metadata_bsf.c     MPEG2MetadataContext             *ctx = bsf->priv_data;
ctx                78 libavcodec/mpeg2_metadata_bsf.c         if (sh && !ctx->mpeg1_warned) {
ctx                82 libavcodec/mpeg2_metadata_bsf.c             ctx->mpeg1_warned = 1;
ctx                87 libavcodec/mpeg2_metadata_bsf.c     if (ctx->display_aspect_ratio.num && ctx->display_aspect_ratio.den) {
ctx                90 libavcodec/mpeg2_metadata_bsf.c         av_reduce(&num, &den, ctx->display_aspect_ratio.num,
ctx                91 libavcodec/mpeg2_metadata_bsf.c                   ctx->display_aspect_ratio.den, 65535);
ctx               103 libavcodec/mpeg2_metadata_bsf.c     if (ctx->frame_rate.num && ctx->frame_rate.den) {
ctx               106 libavcodec/mpeg2_metadata_bsf.c         ff_mpeg12_find_best_frame_rate(ctx->frame_rate,
ctx               114 libavcodec/mpeg2_metadata_bsf.c     if (ctx->video_format             >= 0 ||
ctx               115 libavcodec/mpeg2_metadata_bsf.c         ctx->colour_primaries         >= 0 ||
ctx               116 libavcodec/mpeg2_metadata_bsf.c         ctx->transfer_characteristics >= 0 ||
ctx               117 libavcodec/mpeg2_metadata_bsf.c         ctx->matrix_coefficients      >= 0) {
ctx               120 libavcodec/mpeg2_metadata_bsf.c             ctx->sequence_display_extension.extension_start_code =
ctx               122 libavcodec/mpeg2_metadata_bsf.c             ctx->sequence_display_extension.extension_start_code_identifier =
ctx               124 libavcodec/mpeg2_metadata_bsf.c             sde = &ctx->sequence_display_extension.data.sequence_display;
ctx               140 libavcodec/mpeg2_metadata_bsf.c             err = ff_cbs_insert_unit_content(ctx->cbc, frag, se_pos + 1,
ctx               142 libavcodec/mpeg2_metadata_bsf.c                                              &ctx->sequence_display_extension,
ctx               151 libavcodec/mpeg2_metadata_bsf.c         if (ctx->video_format >= 0)
ctx               152 libavcodec/mpeg2_metadata_bsf.c             sde->video_format = ctx->video_format;
ctx               154 libavcodec/mpeg2_metadata_bsf.c         if (ctx->colour_primaries         >= 0 ||
ctx               155 libavcodec/mpeg2_metadata_bsf.c             ctx->transfer_characteristics >= 0 ||
ctx               156 libavcodec/mpeg2_metadata_bsf.c             ctx->matrix_coefficients      >= 0) {
ctx               159 libavcodec/mpeg2_metadata_bsf.c             if (ctx->colour_primaries >= 0)
ctx               160 libavcodec/mpeg2_metadata_bsf.c                 sde->colour_primaries = ctx->colour_primaries;
ctx               162 libavcodec/mpeg2_metadata_bsf.c             if (ctx->transfer_characteristics >= 0)
ctx               163 libavcodec/mpeg2_metadata_bsf.c                 sde->transfer_characteristics = ctx->transfer_characteristics;
ctx               165 libavcodec/mpeg2_metadata_bsf.c             if (ctx->matrix_coefficients >= 0)
ctx               166 libavcodec/mpeg2_metadata_bsf.c                 sde->matrix_coefficients = ctx->matrix_coefficients;
ctx               175 libavcodec/mpeg2_metadata_bsf.c     MPEG2MetadataContext *ctx = bsf->priv_data;
ctx               176 libavcodec/mpeg2_metadata_bsf.c     CodedBitstreamFragment *frag = &ctx->fragment;
ctx               183 libavcodec/mpeg2_metadata_bsf.c     err = ff_cbs_read_packet(ctx->cbc, frag, pkt);
ctx               195 libavcodec/mpeg2_metadata_bsf.c     err = ff_cbs_write_packet(ctx->cbc, pkt, frag);
ctx               203 libavcodec/mpeg2_metadata_bsf.c     ff_cbs_fragment_reset(ctx->cbc, frag);
ctx               213 libavcodec/mpeg2_metadata_bsf.c     MPEG2MetadataContext *ctx = bsf->priv_data;
ctx               214 libavcodec/mpeg2_metadata_bsf.c     CodedBitstreamFragment *frag = &ctx->fragment;
ctx               218 libavcodec/mpeg2_metadata_bsf.c         if (!ctx->name) { \
ctx               229 libavcodec/mpeg2_metadata_bsf.c     err = ff_cbs_init(&ctx->cbc, AV_CODEC_ID_MPEG2VIDEO, bsf);
ctx               234 libavcodec/mpeg2_metadata_bsf.c         err = ff_cbs_read_extradata(ctx->cbc, frag, bsf->par_in);
ctx               246 libavcodec/mpeg2_metadata_bsf.c         err = ff_cbs_write_extradata(ctx->cbc, bsf->par_out, frag);
ctx               255 libavcodec/mpeg2_metadata_bsf.c     ff_cbs_fragment_reset(ctx->cbc, frag);
ctx               261 libavcodec/mpeg2_metadata_bsf.c     MPEG2MetadataContext *ctx = bsf->priv_data;
ctx               263 libavcodec/mpeg2_metadata_bsf.c     ff_cbs_fragment_free(ctx->cbc, &ctx->fragment);
ctx               264 libavcodec/mpeg2_metadata_bsf.c     ff_cbs_close(&ctx->cbc);
ctx                59 libavcodec/mpeg4_unpack_bframes_bsf.c static int mpeg4_unpack_bframes_filter(AVBSFContext *ctx, AVPacket *pkt)
ctx                61 libavcodec/mpeg4_unpack_bframes_bsf.c     UnpackBFramesBSFContext *s = ctx->priv_data;
ctx                64 libavcodec/mpeg4_unpack_bframes_bsf.c     ret = ff_bsf_get_packet_ref(ctx, pkt);
ctx                69 libavcodec/mpeg4_unpack_bframes_bsf.c     av_log(ctx, AV_LOG_DEBUG, "Found %d VOP startcode(s) in this packet.\n", nb_vop);
ctx                73 libavcodec/mpeg4_unpack_bframes_bsf.c             av_log(ctx, AV_LOG_WARNING,
ctx                88 libavcodec/mpeg4_unpack_bframes_bsf.c         av_log(ctx, AV_LOG_WARNING,
ctx               109 libavcodec/mpeg4_unpack_bframes_bsf.c             av_log(ctx, AV_LOG_DEBUG, "Skipping N-VOP.\n");
ctx               119 libavcodec/mpeg4_unpack_bframes_bsf.c         av_log(ctx, AV_LOG_DEBUG, "Updating DivX userdata (remove trailing 'p').\n");
ctx               133 libavcodec/mpeg4_unpack_bframes_bsf.c static int mpeg4_unpack_bframes_init(AVBSFContext *ctx)
ctx               135 libavcodec/mpeg4_unpack_bframes_bsf.c     if (ctx->par_in->extradata) {
ctx               137 libavcodec/mpeg4_unpack_bframes_bsf.c         scan_buffer(ctx->par_in->extradata, ctx->par_in->extradata_size, &pos_p_ext, NULL, NULL);
ctx               139 libavcodec/mpeg4_unpack_bframes_bsf.c             av_log(ctx, AV_LOG_DEBUG,
ctx               141 libavcodec/mpeg4_unpack_bframes_bsf.c             ctx->par_out->extradata[pos_p_ext] = '\0';
ctx               150 libavcodec/mpeg4_unpack_bframes_bsf.c     UnpackBFramesBSFContext *ctx = bsfc->priv_data;
ctx               151 libavcodec/mpeg4_unpack_bframes_bsf.c     av_buffer_unref(&ctx->b_frame_ref);
ctx               166 libavcodec/mpeg4video.h int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb, int header);
ctx               173 libavcodec/mpeg4video.h int ff_mpeg4_decode_partitions(Mpeg4DecContext *ctx);
ctx               175 libavcodec/mpeg4video.h int ff_mpeg4_decode_video_packet_header(Mpeg4DecContext *ctx);
ctx               176 libavcodec/mpeg4video.h int ff_mpeg4_decode_studio_slice_header(Mpeg4DecContext *ctx);
ctx                51 libavcodec/mpeg4videodec.c static int decode_studio_vol_header(Mpeg4DecContext *ctx, GetBitContext *gb);
ctx               124 libavcodec/mpeg4videodec.c static inline int mpeg4_is_resync(Mpeg4DecContext *ctx)
ctx               126 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx               130 libavcodec/mpeg4videodec.c     if (s->workaround_bugs & FF_BUG_NO_PADDING && !ctx->resync_marker)
ctx               174 libavcodec/mpeg4videodec.c static int mpeg4_decode_sprite_trajectory(Mpeg4DecContext *ctx, GetBitContext *gb)
ctx               176 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx               202 libavcodec/mpeg4videodec.c     for (i = 0; i < ctx->num_sprite_warping_points; i++) {
ctx               210 libavcodec/mpeg4videodec.c         if (!(ctx->divx_version == 500 && ctx->divx_build == 413))
ctx               218 libavcodec/mpeg4videodec.c         ctx->sprite_traj[i][0] = d[i][0] = x;
ctx               219 libavcodec/mpeg4videodec.c         ctx->sprite_traj[i][1] = d[i][1] = y;
ctx               222 libavcodec/mpeg4videodec.c         ctx->sprite_traj[i][0] = ctx->sprite_traj[i][1] = 0;
ctx               232 libavcodec/mpeg4videodec.c     if (ctx->divx_version == 500 && ctx->divx_build == 413) {
ctx               270 libavcodec/mpeg4videodec.c     switch (ctx->num_sprite_warping_points) {
ctx               280 libavcodec/mpeg4videodec.c         ctx->sprite_shift[0]   =
ctx               281 libavcodec/mpeg4videodec.c         ctx->sprite_shift[1]   = 0;
ctx               294 libavcodec/mpeg4videodec.c         ctx->sprite_shift[0]   =
ctx               295 libavcodec/mpeg4videodec.c         ctx->sprite_shift[1]   = 0;
ctx               323 libavcodec/mpeg4videodec.c         ctx->sprite_shift[0]  = alpha + rho;
ctx               324 libavcodec/mpeg4videodec.c         ctx->sprite_shift[1]  = alpha + rho + 2;
ctx               351 libavcodec/mpeg4videodec.c         ctx->sprite_shift[0]  = alpha + beta + rho - min_ab;
ctx               352 libavcodec/mpeg4videodec.c         ctx->sprite_shift[1]  = alpha + beta + rho - min_ab + 2;
ctx               356 libavcodec/mpeg4videodec.c     if (sprite_delta[0][0] == a << ctx->sprite_shift[0] &&
ctx               359 libavcodec/mpeg4videodec.c         sprite_delta[1][1] == a << ctx->sprite_shift[0]) {
ctx               360 libavcodec/mpeg4videodec.c         sprite_offset[0][0] >>= ctx->sprite_shift[0];
ctx               361 libavcodec/mpeg4videodec.c         sprite_offset[0][1] >>= ctx->sprite_shift[0];
ctx               362 libavcodec/mpeg4videodec.c         sprite_offset[1][0] >>= ctx->sprite_shift[1];
ctx               363 libavcodec/mpeg4videodec.c         sprite_offset[1][1] >>= ctx->sprite_shift[1];
ctx               368 libavcodec/mpeg4videodec.c         ctx->sprite_shift[0] = 0;
ctx               369 libavcodec/mpeg4videodec.c         ctx->sprite_shift[1] = 0;
ctx               372 libavcodec/mpeg4videodec.c         int shift_y = 16 - ctx->sprite_shift[0];
ctx               373 libavcodec/mpeg4videodec.c         int shift_c = 16 - ctx->sprite_shift[1];
ctx               392 libavcodec/mpeg4videodec.c             ctx->sprite_shift[i]     = 16;
ctx               416 libavcodec/mpeg4videodec.c         s->real_sprite_warping_points = ctx->num_sprite_warping_points;
ctx               431 libavcodec/mpeg4videodec.c static int decode_new_pred(Mpeg4DecContext *ctx, GetBitContext *gb) {
ctx               432 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx               433 libavcodec/mpeg4videodec.c     int len = FFMIN(ctx->time_increment_bits + 3, 15);
ctx               447 libavcodec/mpeg4videodec.c int ff_mpeg4_decode_video_packet_header(Mpeg4DecContext *ctx)
ctx               449 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx               467 libavcodec/mpeg4videodec.c     if (ctx->shape != RECT_SHAPE) {
ctx               482 libavcodec/mpeg4videodec.c     if (ctx->shape != BIN_ONLY_SHAPE) {
ctx               488 libavcodec/mpeg4videodec.c     if (ctx->shape == RECT_SHAPE)
ctx               498 libavcodec/mpeg4videodec.c         skip_bits(&s->gb, ctx->time_increment_bits);      /* time_increment */
ctx               504 libavcodec/mpeg4videodec.c         if (ctx->shape != BIN_ONLY_SHAPE) {
ctx               508 libavcodec/mpeg4videodec.c                 ctx->vol_sprite_usage == GMC_SPRITE) {
ctx               509 libavcodec/mpeg4videodec.c                 if (mpeg4_decode_sprite_trajectory(ctx, &s->gb) < 0)
ctx               530 libavcodec/mpeg4videodec.c     if (ctx->new_pred)
ctx               531 libavcodec/mpeg4videodec.c         decode_new_pred(ctx, &s->gb);
ctx               548 libavcodec/mpeg4videodec.c int ff_mpeg4_decode_studio_slice_header(Mpeg4DecContext *ctx)
ctx               550 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx               565 libavcodec/mpeg4videodec.c         if (ctx->shape != BIN_ONLY_SHAPE)
ctx               590 libavcodec/mpeg4videodec.c static inline int get_amv(Mpeg4DecContext *ctx, int n)
ctx               592 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx               601 libavcodec/mpeg4videodec.c         if (ctx->divx_version == 500 && ctx->divx_build == 413 && a >= s->quarter_sample)
ctx               608 libavcodec/mpeg4videodec.c         shift = ctx->sprite_shift[0];
ctx               690 libavcodec/mpeg4videodec.c static int mpeg4_decode_partition_a(Mpeg4DecContext *ctx)
ctx               692 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx               762 libavcodec/mpeg4videodec.c                         ctx->vol_sprite_usage == GMC_SPRITE) {
ctx               767 libavcodec/mpeg4videodec.c                         mx = get_amv(ctx, 0);
ctx               768 libavcodec/mpeg4videodec.c                         my = get_amv(ctx, 1);
ctx               818 libavcodec/mpeg4videodec.c                         ctx->vol_sprite_usage == GMC_SPRITE &&
ctx               839 libavcodec/mpeg4videodec.c                             mx = get_amv(ctx, 0);
ctx               840 libavcodec/mpeg4videodec.c                             my = get_amv(ctx, 1);
ctx               977 libavcodec/mpeg4videodec.c int ff_mpeg4_decode_partitions(Mpeg4DecContext *ctx)
ctx               979 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx               985 libavcodec/mpeg4videodec.c     mb_num = mpeg4_decode_partition_a(ctx);
ctx              1042 libavcodec/mpeg4videodec.c static inline int mpeg4_decode_block(Mpeg4DecContext *ctx, int16_t *block,
ctx              1045 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx              1055 libavcodec/mpeg4videodec.c         if (ctx->use_intra_dc_vlc) {
ctx              1295 libavcodec/mpeg4videodec.c         if (!ctx->use_intra_dc_vlc) {
ctx              1315 libavcodec/mpeg4videodec.c     Mpeg4DecContext *ctx = s->avctx->priv_data;
ctx              1319 libavcodec/mpeg4videodec.c     av_assert2(s == (void*)ctx);
ctx              1324 libavcodec/mpeg4videodec.c     ctx->use_intra_dc_vlc = s->qscale < ctx->intra_dc_threshold;
ctx              1345 libavcodec/mpeg4videodec.c                 && ctx->vol_sprite_usage == GMC_SPRITE) {
ctx              1374 libavcodec/mpeg4videodec.c             if (mpeg4_decode_block(ctx, block[i], i, cbp & 32, s->mb_intra, ctx->rvlc) < 0) {
ctx              1386 libavcodec/mpeg4videodec.c         if (mpeg4_is_resync(ctx))
ctx              1391 libavcodec/mpeg4videodec.c         if (mpeg4_is_resync(ctx)) {
ctx              1402 libavcodec/mpeg4videodec.c     Mpeg4DecContext *ctx = s->avctx->priv_data;
ctx              1408 libavcodec/mpeg4videodec.c     av_assert2(s ==  (void*)ctx);
ctx              1422 libavcodec/mpeg4videodec.c                     ctx->vol_sprite_usage == GMC_SPRITE) {
ctx              1428 libavcodec/mpeg4videodec.c                     s->mv[0][0][0] = get_amv(ctx, 0);
ctx              1429 libavcodec/mpeg4videodec.c                     s->mv[0][0][1] = get_amv(ctx, 1);
ctx              1457 libavcodec/mpeg4videodec.c             ctx->vol_sprite_usage == GMC_SPRITE && (cbpc & 16) == 0)
ctx              1483 libavcodec/mpeg4videodec.c                 mx             = get_amv(ctx, 0);
ctx              1484 libavcodec/mpeg4videodec.c                 my             = get_amv(ctx, 1);
ctx              1728 libavcodec/mpeg4videodec.c         ctx->use_intra_dc_vlc = s->qscale < ctx->intra_dc_threshold;
ctx              1739 libavcodec/mpeg4videodec.c             if (mpeg4_decode_block(ctx, block[i], i, cbp & 32, 1, 0) < 0)
ctx              1748 libavcodec/mpeg4videodec.c         if (mpeg4_decode_block(ctx, block[i], i, cbp & 32, 0, 0) < 0)
ctx              1756 libavcodec/mpeg4videodec.c         int next = mpeg4_is_resync(ctx);
ctx              1819 libavcodec/mpeg4videodec.c     Mpeg4DecContext *ctx = s->avctx->priv_data;
ctx              1823 libavcodec/mpeg4videodec.c     VLC *cur_vlc = &ctx->studio_intra_tab[0];
ctx              1837 libavcodec/mpeg4videodec.c         dct_dc_size = get_vlc2(&s->gb, ctx->studio_luma_dc.table, STUDIO_INTRA_BITS, 2);
ctx              1841 libavcodec/mpeg4videodec.c         if (ctx->rgb)
ctx              1842 libavcodec/mpeg4videodec.c             dct_dc_size = get_vlc2(&s->gb, ctx->studio_luma_dc.table, STUDIO_INTRA_BITS, 2);
ctx              1844 libavcodec/mpeg4videodec.c             dct_dc_size = get_vlc2(&s->gb, ctx->studio_chroma_dc.table, STUDIO_INTRA_BITS, 2);
ctx              1884 libavcodec/mpeg4videodec.c         cur_vlc = &ctx->studio_intra_tab[ac_state_tab[group][1]];
ctx              2150 libavcodec/mpeg4videodec.c static int decode_vol_header(Mpeg4DecContext *ctx, GetBitContext *gb)
ctx              2152 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx              2170 libavcodec/mpeg4videodec.c         return decode_studio_vol_header(ctx, gb);
ctx              2189 libavcodec/mpeg4videodec.c     if ((ctx->vol_control_parameters = get_bits1(gb))) { /* vol control parameter */
ctx              2223 libavcodec/mpeg4videodec.c     ctx->shape = get_bits(gb, 2); /* vol shape */
ctx              2224 libavcodec/mpeg4videodec.c     if (ctx->shape != RECT_SHAPE)
ctx              2226 libavcodec/mpeg4videodec.c     if (ctx->shape == GRAY_SHAPE && vo_ver_id != 1) {
ctx              2239 libavcodec/mpeg4videodec.c     ctx->time_increment_bits = av_log2(s->avctx->framerate.num - 1) + 1;
ctx              2240 libavcodec/mpeg4videodec.c     if (ctx->time_increment_bits < 1)
ctx              2241 libavcodec/mpeg4videodec.c         ctx->time_increment_bits = 1;
ctx              2246 libavcodec/mpeg4videodec.c         s->avctx->framerate.den = get_bits(gb, ctx->time_increment_bits);
ctx              2252 libavcodec/mpeg4videodec.c     ctx->t_frame = 0;
ctx              2254 libavcodec/mpeg4videodec.c     if (ctx->shape != BIN_ONLY_SHAPE) {
ctx              2255 libavcodec/mpeg4videodec.c         if (ctx->shape == RECT_SHAPE) {
ctx              2278 libavcodec/mpeg4videodec.c             ctx->vol_sprite_usage = get_bits1(gb);    /* vol_sprite_usage */
ctx              2280 libavcodec/mpeg4videodec.c             ctx->vol_sprite_usage = get_bits(gb, 2);  /* vol_sprite_usage */
ctx              2282 libavcodec/mpeg4videodec.c         if (ctx->vol_sprite_usage == STATIC_SPRITE)
ctx              2284 libavcodec/mpeg4videodec.c         if (ctx->vol_sprite_usage == STATIC_SPRITE ||
ctx              2285 libavcodec/mpeg4videodec.c             ctx->vol_sprite_usage == GMC_SPRITE) {
ctx              2286 libavcodec/mpeg4videodec.c             if (ctx->vol_sprite_usage == STATIC_SPRITE) {
ctx              2296 libavcodec/mpeg4videodec.c             ctx->num_sprite_warping_points = get_bits(gb, 6);
ctx              2297 libavcodec/mpeg4videodec.c             if (ctx->num_sprite_warping_points > 3) {
ctx              2300 libavcodec/mpeg4videodec.c                        ctx->num_sprite_warping_points);
ctx              2301 libavcodec/mpeg4videodec.c                 ctx->num_sprite_warping_points = 0;
ctx              2305 libavcodec/mpeg4videodec.c             ctx->sprite_brightness_change = get_bits1(gb);
ctx              2306 libavcodec/mpeg4videodec.c             if (ctx->vol_sprite_usage == STATIC_SPRITE)
ctx              2404 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_i += 8 * get_bits1(gb);  /* opaque */
ctx              2405 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_i += 8 * get_bits1(gb);  /* transparent */
ctx              2406 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_i += 8 * get_bits1(gb);  /* intra_cae */
ctx              2407 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_i += 8 * get_bits1(gb);  /* inter_cae */
ctx              2408 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_i += 8 * get_bits1(gb);  /* no_update */
ctx              2409 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_i += 8 * get_bits1(gb);  /* upsampling */
ctx              2412 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_i += 8 * get_bits1(gb);  /* intra_blocks */
ctx              2413 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_p += 8 * get_bits1(gb);  /* inter_blocks */
ctx              2414 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_p += 8 * get_bits1(gb);  /* inter4v_blocks */
ctx              2415 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_i += 8 * get_bits1(gb);  /* not coded blocks */
ctx              2422 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_i += 8 * get_bits1(gb);  /* dct_coeffs */
ctx              2423 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_i += 8 * get_bits1(gb);  /* dct_lines */
ctx              2424 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_i += 8 * get_bits1(gb);  /* vlc_syms */
ctx              2425 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_i += 4 * get_bits1(gb);  /* vlc_bits */
ctx              2428 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_p += 8 * get_bits1(gb);  /* apm */
ctx              2429 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_p += 8 * get_bits1(gb);  /* npm */
ctx              2430 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_b += 8 * get_bits1(gb);  /* interpolate_mc_q */
ctx              2431 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_p += 8 * get_bits1(gb);  /* forwback_mc_q */
ctx              2432 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_p += 8 * get_bits1(gb);  /* halfpel2 */
ctx              2433 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_p += 8 * get_bits1(gb);  /* halfpel4 */
ctx              2440 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_i += 8 * get_bits1(gb);  /* sadct */
ctx              2441 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_p += 8 * get_bits1(gb);  /* qpel */
ctx              2450 libavcodec/mpeg4videodec.c             ctx->cplx_estimation_trash_i =
ctx              2451 libavcodec/mpeg4videodec.c             ctx->cplx_estimation_trash_p =
ctx              2452 libavcodec/mpeg4videodec.c             ctx->cplx_estimation_trash_b = 0;
ctx              2455 libavcodec/mpeg4videodec.c         ctx->resync_marker = !get_bits1(gb); /* resync_marker_disabled */
ctx              2459 libavcodec/mpeg4videodec.c             ctx->rvlc = get_bits1(gb);
ctx              2462 libavcodec/mpeg4videodec.c             ctx->new_pred = get_bits1(gb);
ctx              2463 libavcodec/mpeg4videodec.c             if (ctx->new_pred) {
ctx              2472 libavcodec/mpeg4videodec.c             ctx->new_pred = 0;
ctx              2475 libavcodec/mpeg4videodec.c         ctx->scalability = get_bits1(gb);
ctx              2477 libavcodec/mpeg4videodec.c         if (ctx->scalability) {
ctx              2491 libavcodec/mpeg4videodec.c             ctx->enhancement_type = get_bits1(gb);
ctx              2497 libavcodec/mpeg4videodec.c                 ctx->scalability = 0;
ctx              2509 libavcodec/mpeg4videodec.c                ctx->time_increment_bits,
ctx              2513 libavcodec/mpeg4videodec.c                ctx->scalability ? "scalability " :"" , s->quarter_sample ? "qpel " : "",
ctx              2514 libavcodec/mpeg4videodec.c                s->data_partitioning ? "partition " : "", ctx->rvlc ? "rvlc " : ""
ctx              2525 libavcodec/mpeg4videodec.c static int decode_user_data(Mpeg4DecContext *ctx, GetBitContext *gb)
ctx              2527 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx              2546 libavcodec/mpeg4videodec.c         ctx->divx_version = ver;
ctx              2547 libavcodec/mpeg4videodec.c         ctx->divx_build   = build;
ctx              2569 libavcodec/mpeg4videodec.c             ctx->lavc_build = 4600;
ctx              2572 libavcodec/mpeg4videodec.c         ctx->lavc_build = build;
ctx              2577 libavcodec/mpeg4videodec.c         ctx->xvid_build = build;
ctx              2584 libavcodec/mpeg4videodec.c     Mpeg4DecContext *ctx = avctx->priv_data;
ctx              2585 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx              2587 libavcodec/mpeg4videodec.c     if (ctx->xvid_build == -1 && ctx->divx_version == -1 && ctx->lavc_build == -1) {
ctx              2593 libavcodec/mpeg4videodec.c             ctx->xvid_build = 0;
ctx              2596 libavcodec/mpeg4videodec.c     if (ctx->xvid_build == -1 && ctx->divx_version == -1 && ctx->lavc_build == -1)
ctx              2598 libavcodec/mpeg4videodec.c             ctx->vol_control_parameters == 0)
ctx              2599 libavcodec/mpeg4videodec.c             ctx->divx_version = 400;  // divx 4
ctx              2601 libavcodec/mpeg4videodec.c     if (ctx->xvid_build >= 0 && ctx->divx_version >= 0) {
ctx              2602 libavcodec/mpeg4videodec.c         ctx->divx_version =
ctx              2603 libavcodec/mpeg4videodec.c         ctx->divx_build   = -1;
ctx              2613 libavcodec/mpeg4videodec.c         if (ctx->divx_version >= 500 && ctx->divx_build < 1814)
ctx              2616 libavcodec/mpeg4videodec.c         if (ctx->divx_version > 502 && ctx->divx_build < 1814)
ctx              2619 libavcodec/mpeg4videodec.c         if (ctx->xvid_build <= 3U)
ctx              2622 libavcodec/mpeg4videodec.c         if (ctx->xvid_build <= 1U)
ctx              2625 libavcodec/mpeg4videodec.c         if (ctx->xvid_build <= 12U)
ctx              2628 libavcodec/mpeg4videodec.c         if (ctx->xvid_build <= 32U)
ctx              2636 libavcodec/mpeg4videodec.c         if (ctx->lavc_build < 4653U)
ctx              2639 libavcodec/mpeg4videodec.c         if (ctx->lavc_build < 4655U)
ctx              2642 libavcodec/mpeg4videodec.c         if (ctx->lavc_build < 4670U)
ctx              2645 libavcodec/mpeg4videodec.c         if (ctx->lavc_build <= 4712U)
ctx              2648 libavcodec/mpeg4videodec.c         if ((ctx->lavc_build&0xFF) >= 100) {
ctx              2649 libavcodec/mpeg4videodec.c             if (ctx->lavc_build > 3621476 && ctx->lavc_build < 3752552 &&
ctx              2650 libavcodec/mpeg4videodec.c                (ctx->lavc_build < 3752037 || ctx->lavc_build > 3752191) // 3.2.1+
ctx              2655 libavcodec/mpeg4videodec.c         if (ctx->divx_version >= 0)
ctx              2657 libavcodec/mpeg4videodec.c         if (ctx->divx_version == 501 && ctx->divx_build == 20020416)
ctx              2660 libavcodec/mpeg4videodec.c         if (ctx->divx_version < 500U)
ctx              2663 libavcodec/mpeg4videodec.c         if (ctx->divx_version >= 0)
ctx              2686 libavcodec/mpeg4videodec.c                s->workaround_bugs, ctx->lavc_build, ctx->xvid_build,
ctx              2687 libavcodec/mpeg4videodec.c                ctx->divx_version, ctx->divx_build, s->divx_packed ? "p" : "");
ctx              2689 libavcodec/mpeg4videodec.c     if (CONFIG_MPEG4_DECODER && ctx->xvid_build >= 0 &&
ctx              2700 libavcodec/mpeg4videodec.c static int decode_vop_header(Mpeg4DecContext *ctx, GetBitContext *gb)
ctx              2702 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx              2709 libavcodec/mpeg4videodec.c         ctx->vol_control_parameters == 0 && !(s->avctx->flags & AV_CODEC_FLAG_LOW_DELAY)) {
ctx              2726 libavcodec/mpeg4videodec.c     if (ctx->time_increment_bits == 0 ||
ctx              2727 libavcodec/mpeg4videodec.c         !(show_bits(gb, ctx->time_increment_bits + 1) & 1)) {
ctx              2729 libavcodec/mpeg4videodec.c                "time_increment_bits %d is invalid in relation to the current bitstream, this is likely caused by a missing VOL header\n", ctx->time_increment_bits);
ctx              2731 libavcodec/mpeg4videodec.c         for (ctx->time_increment_bits = 1;
ctx              2732 libavcodec/mpeg4videodec.c              ctx->time_increment_bits < 16;
ctx              2733 libavcodec/mpeg4videodec.c              ctx->time_increment_bits++) {
ctx              2736 libavcodec/mpeg4videodec.c                  ctx->vol_sprite_usage == GMC_SPRITE)) {
ctx              2737 libavcodec/mpeg4videodec.c                 if ((show_bits(gb, ctx->time_increment_bits + 6) & 0x37) == 0x30)
ctx              2739 libavcodec/mpeg4videodec.c             } else if ((show_bits(gb, ctx->time_increment_bits + 5) & 0x1F) == 0x18)
ctx              2744 libavcodec/mpeg4videodec.c                "time_increment_bits set to %d bits, based on bitstream analysis\n", ctx->time_increment_bits);
ctx              2745 libavcodec/mpeg4videodec.c         if (s->avctx->framerate.num && 4*s->avctx->framerate.num < 1<<ctx->time_increment_bits) {
ctx              2746 libavcodec/mpeg4videodec.c             s->avctx->framerate.num = 1<<ctx->time_increment_bits;
ctx              2754 libavcodec/mpeg4videodec.c         time_increment = get_bits(gb, ctx->time_increment_bits);
ctx              2781 libavcodec/mpeg4videodec.c         if (ctx->t_frame == 0)
ctx              2782 libavcodec/mpeg4videodec.c             ctx->t_frame = s->pb_time;
ctx              2783 libavcodec/mpeg4videodec.c         if (ctx->t_frame == 0)
ctx              2784 libavcodec/mpeg4videodec.c             ctx->t_frame = 1;  // 1/0 protection
ctx              2785 libavcodec/mpeg4videodec.c         s->pp_field_time = (ROUNDED_DIV(s->last_non_b_time, ctx->t_frame) -
ctx              2786 libavcodec/mpeg4videodec.c                             ROUNDED_DIV(s->last_non_b_time - s->pp_time, ctx->t_frame)) * 2;
ctx              2787 libavcodec/mpeg4videodec.c         s->pb_field_time = (ROUNDED_DIV(s->time, ctx->t_frame) -
ctx              2788 libavcodec/mpeg4videodec.c                             ROUNDED_DIV(s->last_non_b_time - s->pp_time, ctx->t_frame)) * 2;
ctx              2811 libavcodec/mpeg4videodec.c     if (ctx->new_pred)
ctx              2812 libavcodec/mpeg4videodec.c         decode_new_pred(ctx, gb);
ctx              2814 libavcodec/mpeg4videodec.c     if (ctx->shape != BIN_ONLY_SHAPE &&
ctx              2817 libavcodec/mpeg4videodec.c                       ctx->vol_sprite_usage == GMC_SPRITE))) {
ctx              2825 libavcodec/mpeg4videodec.c     if (ctx->shape != RECT_SHAPE) {
ctx              2826 libavcodec/mpeg4videodec.c         if (ctx->vol_sprite_usage != 1 || s->pict_type != AV_PICTURE_TYPE_I) {
ctx              2843 libavcodec/mpeg4videodec.c     if (ctx->shape != BIN_ONLY_SHAPE) {
ctx              2844 libavcodec/mpeg4videodec.c         skip_bits_long(gb, ctx->cplx_estimation_trash_i);
ctx              2846 libavcodec/mpeg4videodec.c             skip_bits_long(gb, ctx->cplx_estimation_trash_p);
ctx              2848 libavcodec/mpeg4videodec.c             skip_bits_long(gb, ctx->cplx_estimation_trash_b);
ctx              2854 libavcodec/mpeg4videodec.c         ctx->intra_dc_threshold = ff_mpeg4_dc_threshold[get_bits(gb, 3)];
ctx              2875 libavcodec/mpeg4videodec.c         if((ctx->vol_sprite_usage == STATIC_SPRITE ||
ctx              2876 libavcodec/mpeg4videodec.c             ctx->vol_sprite_usage == GMC_SPRITE)) {
ctx              2877 libavcodec/mpeg4videodec.c             if (mpeg4_decode_sprite_trajectory(ctx, gb) < 0)
ctx              2879 libavcodec/mpeg4videodec.c             if (ctx->sprite_brightness_change)
ctx              2882 libavcodec/mpeg4videodec.c             if (ctx->vol_sprite_usage == STATIC_SPRITE)
ctx              2890 libavcodec/mpeg4videodec.c     if (ctx->shape != BIN_ONLY_SHAPE) {
ctx              2927 libavcodec/mpeg4videodec.c                    s->data_partitioning, ctx->resync_marker,
ctx              2928 libavcodec/mpeg4videodec.c                    ctx->num_sprite_warping_points, s->sprite_warping_accuracy,
ctx              2930 libavcodec/mpeg4videodec.c                    ctx->vol_control_parameters ? " VOLC" : " ", ctx->intra_dc_threshold,
ctx              2931 libavcodec/mpeg4videodec.c                    ctx->cplx_estimation_trash_i, ctx->cplx_estimation_trash_p,
ctx              2932 libavcodec/mpeg4videodec.c                    ctx->cplx_estimation_trash_b,
ctx              2938 libavcodec/mpeg4videodec.c         if (!ctx->scalability) {
ctx              2939 libavcodec/mpeg4videodec.c             if (ctx->shape != RECT_SHAPE && s->pict_type != AV_PICTURE_TYPE_I)
ctx              2942 libavcodec/mpeg4videodec.c             if (ctx->enhancement_type) {
ctx              2954 libavcodec/mpeg4videodec.c     if (s->vo_type == 0 && ctx->vol_control_parameters == 0 &&
ctx              2955 libavcodec/mpeg4videodec.c         ctx->divx_version == -1 && s->picture_number == 0) {
ctx              3040 libavcodec/mpeg4videodec.c static void decode_smpte_tc(Mpeg4DecContext *ctx, GetBitContext *gb)
ctx              3042 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx              3059 libavcodec/mpeg4videodec.c static int decode_studio_vop_header(Mpeg4DecContext *ctx, GetBitContext *gb)
ctx              3061 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx              3070 libavcodec/mpeg4videodec.c     decode_smpte_tc(ctx, gb);
ctx              3086 libavcodec/mpeg4videodec.c     if (ctx->shape != BIN_ONLY_SHAPE) {
ctx              3114 libavcodec/mpeg4videodec.c static int decode_studiovisualobject(Mpeg4DecContext *ctx, GetBitContext *gb)
ctx              3116 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx              3132 libavcodec/mpeg4videodec.c static int decode_studio_vol_header(Mpeg4DecContext *ctx, GetBitContext *gb)
ctx              3134 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx              3142 libavcodec/mpeg4videodec.c             ctx->shape = get_bits(gb, 2); /* video_object_layer_shape */
ctx              3145 libavcodec/mpeg4videodec.c             if (ctx->shape != RECT_SHAPE) {
ctx              3149 libavcodec/mpeg4videodec.c             if (ctx->shape != BIN_ONLY_SHAPE) {
ctx              3170 libavcodec/mpeg4videodec.c                 if (rgb != ctx->rgb || s->chroma_format != chroma_format)
ctx              3173 libavcodec/mpeg4videodec.c                 ctx->rgb = rgb;
ctx              3176 libavcodec/mpeg4videodec.c             if (ctx->shape == RECT_SHAPE) {
ctx              3228 libavcodec/mpeg4videodec.c int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb, int header)
ctx              3230 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx              3254 libavcodec/mpeg4videodec.c                 (ctx->divx_version >= 0 || ctx->xvid_build >= 0) || s->codec_tag == AV_RL32("QMP4")) {
ctx              3335 libavcodec/mpeg4videodec.c             if ((ret = decode_vol_header(ctx, gb)) < 0)
ctx              3338 libavcodec/mpeg4videodec.c             decode_user_data(ctx, gb);
ctx              3357 libavcodec/mpeg4videodec.c                 if ((ret = decode_studiovisualobject(ctx, gb)) < 0)
ctx              3379 libavcodec/mpeg4videodec.c         return decode_studio_vop_header(ctx, gb);
ctx              3381 libavcodec/mpeg4videodec.c         return decode_vop_header(ctx, gb);
ctx              3412 libavcodec/mpeg4videodec.c     Mpeg4DecContext *ctx = avctx->priv_data;
ctx              3413 libavcodec/mpeg4videodec.c     MpegEncContext    *s = &ctx->m;
ctx              3437 libavcodec/mpeg4videodec.c             if (!ctx->showed_packed_warning) {
ctx              3441 libavcodec/mpeg4videodec.c                 ctx->showed_packed_warning = 1;
ctx              3507 libavcodec/mpeg4videodec.c static av_cold int init_studio_vlcs(Mpeg4DecContext *ctx)
ctx              3512 libavcodec/mpeg4videodec.c         ret = init_vlc(&ctx->studio_intra_tab[i], STUDIO_INTRA_BITS, 22,
ctx              3521 libavcodec/mpeg4videodec.c     ret = init_vlc(&ctx->studio_luma_dc, STUDIO_INTRA_BITS, 19,
ctx              3528 libavcodec/mpeg4videodec.c     ret = init_vlc(&ctx->studio_chroma_dc, STUDIO_INTRA_BITS, 19,
ctx              3540 libavcodec/mpeg4videodec.c     Mpeg4DecContext *ctx = avctx->priv_data;
ctx              3541 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx              3544 libavcodec/mpeg4videodec.c     ctx->divx_version =
ctx              3545 libavcodec/mpeg4videodec.c     ctx->divx_build   =
ctx              3546 libavcodec/mpeg4videodec.c     ctx->xvid_build   =
ctx              3547 libavcodec/mpeg4videodec.c     ctx->lavc_build   = -1;
ctx              3553 libavcodec/mpeg4videodec.c     if ((ret = init_studio_vlcs(ctx)) < 0)
ctx              3559 libavcodec/mpeg4videodec.c     ctx->time_increment_bits = 4; /* default value for broken headers */
ctx              3568 libavcodec/mpeg4videodec.c     Mpeg4DecContext *ctx = avctx->priv_data;
ctx              3572 libavcodec/mpeg4videodec.c         ff_free_vlc(&ctx->studio_intra_tab[i]);
ctx              3574 libavcodec/mpeg4videodec.c     ff_free_vlc(&ctx->studio_luma_dc);
ctx              3575 libavcodec/mpeg4videodec.c     ff_free_vlc(&ctx->studio_chroma_dc);
ctx              1732 libavcodec/mpegaudiodec_template.c static void mp_flush(MPADecodeContext *ctx)
ctx              1734 libavcodec/mpegaudiodec_template.c     memset(ctx->synth_buf, 0, sizeof(ctx->synth_buf));
ctx              1735 libavcodec/mpegaudiodec_template.c     memset(ctx->mdct_buf, 0, sizeof(ctx->mdct_buf));
ctx              1736 libavcodec/mpegaudiodec_template.c     ctx->last_buf_size = 0;
ctx              1737 libavcodec/mpegaudiodec_template.c     ctx->dither_state = 0;
ctx                32 libavcodec/mss1.c     MSS12Context   ctx;
ctx               123 libavcodec/mss1.c static int decode_pal(MSS12Context *ctx, ArithCoder *acoder)
ctx               126 libavcodec/mss1.c     uint32_t *pal = ctx->pal + 256 - ctx->free_colours;
ctx               128 libavcodec/mss1.c     if (!ctx->free_colours)
ctx               131 libavcodec/mss1.c     ncol = arith_get_number(acoder, ctx->free_colours + 1);
ctx               145 libavcodec/mss1.c     MSS1Context *ctx = avctx->priv_data;
ctx               146 libavcodec/mss1.c     MSS12Context *c = &ctx->ctx;
ctx               157 libavcodec/mss1.c     if ((ret = ff_reget_buffer(avctx, ctx->pic, 0)) < 0)
ctx               160 libavcodec/mss1.c     c->pal_pic    =  ctx->pic->data[0] + ctx->pic->linesize[0] * (avctx->height - 1);
ctx               161 libavcodec/mss1.c     c->pal_stride = -ctx->pic->linesize[0];
ctx               165 libavcodec/mss1.c         ff_mss12_slicecontext_reset(&ctx->sc);
ctx               167 libavcodec/mss1.c         ctx->pic->key_frame = 1;
ctx               168 libavcodec/mss1.c         ctx->pic->pict_type = AV_PICTURE_TYPE_I;
ctx               172 libavcodec/mss1.c         ctx->pic->key_frame = 0;
ctx               173 libavcodec/mss1.c         ctx->pic->pict_type = AV_PICTURE_TYPE_P;
ctx               175 libavcodec/mss1.c     c->corrupted = ff_mss12_decode_rect(&ctx->sc, &acoder, 0, 0,
ctx               179 libavcodec/mss1.c     memcpy(ctx->pic->data[1], c->pal, AVPALETTE_SIZE);
ctx               180 libavcodec/mss1.c     ctx->pic->palette_has_changed = pal_changed;
ctx               182 libavcodec/mss1.c     if ((ret = av_frame_ref(data, ctx->pic)) < 0)
ctx               196 libavcodec/mss1.c     c->ctx.avctx       = avctx;
ctx               202 libavcodec/mss1.c     ret = ff_mss12_decode_init(&c->ctx, 0, &c->sc, NULL);
ctx               213 libavcodec/mss1.c     MSS1Context * const ctx = avctx->priv_data;
ctx               215 libavcodec/mss1.c     av_frame_free(&ctx->pic);
ctx               216 libavcodec/mss1.c     ff_mss12_decode_end(&ctx->ctx);
ctx               119 libavcodec/mss12.c static void pixctx_reset(PixContext *ctx)
ctx               123 libavcodec/mss12.c     if (!ctx->special_initial_cache)
ctx               124 libavcodec/mss12.c         for (i = 0; i < ctx->cache_size; i++)
ctx               125 libavcodec/mss12.c             ctx->cache[i] = i;
ctx               127 libavcodec/mss12.c         ctx->cache[0] = 1;
ctx               128 libavcodec/mss12.c         ctx->cache[1] = 2;
ctx               129 libavcodec/mss12.c         ctx->cache[2] = 4;
ctx               132 libavcodec/mss12.c     model_reset(&ctx->cache_model);
ctx               133 libavcodec/mss12.c     model_reset(&ctx->full_model);
ctx               137 libavcodec/mss12.c             model_reset(&ctx->sec_models[i][j]);
ctx               140 libavcodec/mss12.c static av_cold void pixctx_init(PixContext *ctx, int cache_size,
ctx               145 libavcodec/mss12.c     ctx->cache_size            = cache_size + 4;
ctx               146 libavcodec/mss12.c     ctx->num_syms              = cache_size;
ctx               147 libavcodec/mss12.c     ctx->special_initial_cache = special_initial_cache;
ctx               149 libavcodec/mss12.c     model_init(&ctx->cache_model, ctx->num_syms + 1, THRESH_LOW);
ctx               150 libavcodec/mss12.c     model_init(&ctx->full_model, full_model_syms, THRESH_HIGH);
ctx               155 libavcodec/mss12.c                 model_init(&ctx->sec_models[idx][k], 2 + i,
ctx                96 libavcodec/mss12.h int ff_mss12_decode_rect(SliceContext *ctx, ArithCoder *acoder,
ctx               102 libavcodec/mss12.h int ff_mss12_decode_end(MSS12Context *ctx);
ctx               161 libavcodec/mss2.c static int decode_pal_v2(MSS12Context *ctx, const uint8_t *buf, int buf_size)
ctx               164 libavcodec/mss2.c     uint32_t *pal = ctx->pal + 256 - ctx->free_colours;
ctx               166 libavcodec/mss2.c     if (!ctx->free_colours)
ctx               170 libavcodec/mss2.c     if (ncol > ctx->free_colours || buf_size < 2 + ncol * 3)
ctx               381 libavcodec/mss2.c     MSS2Context *ctx  = avctx->priv_data;
ctx               382 libavcodec/mss2.c     MSS12Context *c   = &ctx->c;
ctx               437 libavcodec/mss2.c         ctx->dsp.upsample_plane(f->data[0], f->linesize[0], w,      h);
ctx               438 libavcodec/mss2.c         ctx->dsp.upsample_plane(f->data[1], f->linesize[1], w+1 >> 1, h+1 >> 1);
ctx               439 libavcodec/mss2.c         ctx->dsp.upsample_plane(f->data[2], f->linesize[2], w+1 >> 1, h+1 >> 1);
ctx               447 libavcodec/mss2.c         ctx->dsp.mss2_blit_wmv9_masked(c->rgb_pic + y * c->rgb_stride + x * 3,
ctx               455 libavcodec/mss2.c         ctx->dsp.mss2_blit_wmv9(c->rgb_pic + y * c->rgb_stride + x * 3,
ctx               478 libavcodec/mss2.c     MSS2Context *ctx = avctx->priv_data;
ctx               479 libavcodec/mss2.c     MSS12Context *c  = &ctx->c;
ctx               500 libavcodec/mss2.c         ctx->split_position = c->slice_split;
ctx               505 libavcodec/mss2.c                     ctx->split_position = get_bits(&gb, 16);
ctx               507 libavcodec/mss2.c                     ctx->split_position = get_bits(&gb, 12);
ctx               509 libavcodec/mss2.c                 ctx->split_position = get_bits(&gb, 8) << 4;
ctx               512 libavcodec/mss2.c                 ctx->split_position = avctx->height / 2;
ctx               515 libavcodec/mss2.c         ctx->split_position = avctx->height;
ctx               517 libavcodec/mss2.c     if (c->slice_split && (ctx->split_position < 1 - is_555 ||
ctx               518 libavcodec/mss2.c                            ctx->split_position > avctx->height - 1))
ctx               528 libavcodec/mss2.c     if (is_555 && (has_wmv9 || has_mv || c->slice_split && ctx->split_position))
ctx               532 libavcodec/mss2.c     if (ctx->last_pic->format != avctx->pix_fmt)
ctx               533 libavcodec/mss2.c         av_frame_unref(ctx->last_pic);
ctx               610 libavcodec/mss2.c         if (ctx->last_pic->data[0]) {
ctx               611 libavcodec/mss2.c             av_assert0(frame->linesize[0] == ctx->last_pic->linesize[0]);
ctx               612 libavcodec/mss2.c             c->last_rgb_pic = ctx->last_pic->data[0] +
ctx               613 libavcodec/mss2.c                               ctx->last_pic->linesize[0] * (avctx->height - 1);
ctx               619 libavcodec/mss2.c         if ((ret = ff_reget_buffer(avctx, ctx->last_pic, 0)) < 0)
ctx               621 libavcodec/mss2.c         if ((ret = av_frame_ref(frame, ctx->last_pic)) < 0)
ctx               644 libavcodec/mss2.c             ff_mss12_slicecontext_reset(&ctx->sc[0]);
ctx               646 libavcodec/mss2.c                 ff_mss12_slicecontext_reset(&ctx->sc[1]);
ctx               653 libavcodec/mss2.c                                  ctx->split_position, 0,
ctx               661 libavcodec/mss2.c                                      ctx->split_position, 1,
ctx               674 libavcodec/mss2.c             if (c->corrupted = ff_mss12_decode_rect(&ctx->sc[0], &acoder, 0, 0,
ctx               676 libavcodec/mss2.c                                                     ctx->split_position))
ctx               686 libavcodec/mss2.c                 if (c->corrupted = ff_mss12_decode_rect(&ctx->sc[1], &acoder, 0,
ctx               687 libavcodec/mss2.c                                                         ctx->split_position,
ctx               689 libavcodec/mss2.c                                                         avctx->height - ctx->split_position))
ctx               717 libavcodec/mss2.c                     ctx->dsp.mss2_gray_fill_masked(dst, c->rgb_stride,
ctx               736 libavcodec/mss2.c         av_frame_unref(ctx->last_pic);
ctx               737 libavcodec/mss2.c         ret = av_frame_ref(ctx->last_pic, frame);
ctx               808 libavcodec/mss2.c     MSS2Context *const ctx = avctx->priv_data;
ctx               810 libavcodec/mss2.c     av_frame_free(&ctx->last_pic);
ctx               812 libavcodec/mss2.c     ff_mss12_decode_end(&ctx->c);
ctx               813 libavcodec/mss2.c     av_freep(&ctx->c.pal_pic);
ctx               814 libavcodec/mss2.c     av_freep(&ctx->c.last_pal_pic);
ctx               822 libavcodec/mss2.c     MSS2Context * const ctx = avctx->priv_data;
ctx               823 libavcodec/mss2.c     MSS12Context *c = &ctx->c;
ctx               826 libavcodec/mss2.c     if (ret = ff_mss12_decode_init(c, 1, &ctx->sc[0], &ctx->sc[1]))
ctx               828 libavcodec/mss2.c     ctx->last_pic   = av_frame_alloc();
ctx               832 libavcodec/mss2.c     if (!c->pal_pic || !c->last_pal_pic || !ctx->last_pic) {
ctx               840 libavcodec/mss2.c     ff_mss2dsp_init(&ctx->dsp);
ctx               841 libavcodec/mss2.c     ff_qpeldsp_init(&ctx->qdsp);
ctx               629 libavcodec/mss3.c static void reset_coders(MSS3Context *ctx, int quality)
ctx               634 libavcodec/mss3.c         ctx->btype[i].last_type = SKIP_BLOCK;
ctx               636 libavcodec/mss3.c             model_reset(&ctx->btype[i].bt_model[j]);
ctx               637 libavcodec/mss3.c         ctx->fill_coder[i].fill_val = 0;
ctx               638 libavcodec/mss3.c         model_reset(&ctx->fill_coder[i].coef_model);
ctx               639 libavcodec/mss3.c         model256_reset(&ctx->image_coder[i].esc_model);
ctx               640 libavcodec/mss3.c         model256_reset(&ctx->image_coder[i].vec_entry_model);
ctx               641 libavcodec/mss3.c         model_reset(&ctx->image_coder[i].vec_size_model);
ctx               643 libavcodec/mss3.c             model_reset(&ctx->image_coder[i].vq_model[j]);
ctx               644 libavcodec/mss3.c         if (ctx->dct_coder[i].quality != quality) {
ctx               645 libavcodec/mss3.c             ctx->dct_coder[i].quality = quality;
ctx               646 libavcodec/mss3.c             ff_mss34_gen_quant_mat(ctx->dct_coder[i].qmat, quality, !i);
ctx               648 libavcodec/mss3.c         memset(ctx->dct_coder[i].prev_dc, 0,
ctx               649 libavcodec/mss3.c                sizeof(*ctx->dct_coder[i].prev_dc) *
ctx               650 libavcodec/mss3.c                ctx->dct_coder[i].prev_dc_stride *
ctx               651 libavcodec/mss3.c                ctx->dct_coder[i].prev_dc_height);
ctx               652 libavcodec/mss3.c         model_reset(&ctx->dct_coder[i].dc_model);
ctx               653 libavcodec/mss3.c         model2_reset(&ctx->dct_coder[i].sign_model);
ctx               654 libavcodec/mss3.c         model256_reset(&ctx->dct_coder[i].ac_model);
ctx               655 libavcodec/mss3.c         if (ctx->haar_coder[i].quality != quality) {
ctx               656 libavcodec/mss3.c             ctx->haar_coder[i].quality = quality;
ctx               657 libavcodec/mss3.c             ctx->haar_coder[i].scale   = 17 - 7 * quality / 50;
ctx               659 libavcodec/mss3.c         model_reset(&ctx->haar_coder[i].coef_hi_model);
ctx               660 libavcodec/mss3.c         model256_reset(&ctx->haar_coder[i].coef_model);
ctx               664 libavcodec/mss3.c static av_cold void init_coders(MSS3Context *ctx)
ctx               670 libavcodec/mss3.c             model_init(&ctx->btype[i].bt_model[j], 5);
ctx               671 libavcodec/mss3.c         model_init(&ctx->fill_coder[i].coef_model, 12);
ctx               672 libavcodec/mss3.c         model256_init(&ctx->image_coder[i].esc_model);
ctx               673 libavcodec/mss3.c         model256_init(&ctx->image_coder[i].vec_entry_model);
ctx               674 libavcodec/mss3.c         model_init(&ctx->image_coder[i].vec_size_model, 3);
ctx               676 libavcodec/mss3.c             model_init(&ctx->image_coder[i].vq_model[j], 5);
ctx               677 libavcodec/mss3.c         model_init(&ctx->dct_coder[i].dc_model, 12);
ctx               678 libavcodec/mss3.c         model256_init(&ctx->dct_coder[i].ac_model);
ctx               679 libavcodec/mss3.c         model_init(&ctx->haar_coder[i].coef_hi_model, 12);
ctx               680 libavcodec/mss3.c         model256_init(&ctx->haar_coder[i].coef_model);
ctx               167 libavcodec/mss4.c static av_cold int mss4_init_vlcs(MSS4Context *ctx)
ctx               172 libavcodec/mss4.c         ret = mss4_init_vlc(&ctx->dc_vlc[i], mss4_dc_vlc_lens[i], NULL, 12);
ctx               175 libavcodec/mss4.c         ret = mss4_init_vlc(&ctx->ac_vlc[i], mss4_ac_vlc_lens[i],
ctx               179 libavcodec/mss4.c         ret = mss4_init_vlc(&ctx->vec_entry_vlc[i], mss4_vec_entry_vlc_lens[i],
ctx               187 libavcodec/mss4.c static av_cold void mss4_free_vlcs(MSS4Context *ctx)
ctx               192 libavcodec/mss4.c         ff_free_vlc(&ctx->dc_vlc[i]);
ctx               193 libavcodec/mss4.c         ff_free_vlc(&ctx->ac_vlc[i]);
ctx               194 libavcodec/mss4.c         ff_free_vlc(&ctx->vec_entry_vlc[i]);
ctx               379 libavcodec/mss4.c static int mss4_decode_image_block(MSS4Context *ctx, GetBitContext *gb,
ctx               392 libavcodec/mss4.c     const int val_shift = ctx->quality == 100 ? 0 : 2;
ctx               395 libavcodec/mss4.c         dst[i] = ctx->imgbuf[i];
ctx               400 libavcodec/mss4.c             vec[i][j]  = get_coeff(gb, &ctx->vec_entry_vlc[!!i]);
ctx               401 libavcodec/mss4.c             vec[i][j] += ctx->prev_vec[i][j];
ctx               402 libavcodec/mss4.c             ctx->prev_vec[i][j] = vec[i][j];
ctx               483 libavcodec/mss4.c             memcpy(picdst[i] + mb_x * 16 + j * ctx->pic->linesize[i],
ctx               484 libavcodec/mss4.c                    ctx->imgbuf[i] + j * 16, 16);
ctx                36 libavcodec/noise_bsf.c static int noise(AVBSFContext *ctx, AVPacket *pkt)
ctx                38 libavcodec/noise_bsf.c     NoiseContext *s = ctx->priv_data;
ctx                45 libavcodec/noise_bsf.c     ret = ff_bsf_get_packet_ref(ctx, pkt);
ctx               258 libavcodec/nvdec.c     NVDECContext *ctx = avctx->internal->hwaccel_priv_data;
ctx               260 libavcodec/nvdec.c     av_freep(&ctx->bitstream);
ctx               261 libavcodec/nvdec.c     ctx->bitstream_len       = 0;
ctx               262 libavcodec/nvdec.c     ctx->bitstream_allocated = 0;
ctx               264 libavcodec/nvdec.c     av_freep(&ctx->slice_offsets);
ctx               265 libavcodec/nvdec.c     ctx->nb_slices               = 0;
ctx               266 libavcodec/nvdec.c     ctx->slice_offsets_allocated = 0;
ctx               268 libavcodec/nvdec.c     av_buffer_unref(&ctx->decoder_ref);
ctx               269 libavcodec/nvdec.c     av_buffer_pool_uninit(&ctx->decoder_pool);
ctx               274 libavcodec/nvdec.c static void nvdec_free_dummy(struct AVHWFramesContext *ctx)
ctx               276 libavcodec/nvdec.c     av_buffer_pool_uninit(&ctx->pool);
ctx               325 libavcodec/nvdec.c     NVDECContext *ctx = avctx->internal->hwaccel_priv_data;
ctx               354 libavcodec/nvdec.c     chroma_444 = ctx->supports_444 && cuvid_chroma_format == cudaVideoChromaFormat_444;
ctx               399 libavcodec/nvdec.c     ret = nvdec_decoder_create(&ctx->decoder_ref, frames_ctx->device_ref, &params, avctx);
ctx               411 libavcodec/nvdec.c     decoder = (NVDECDecoder*)ctx->decoder_ref->data;
ctx               422 libavcodec/nvdec.c     ctx->decoder_pool = av_buffer_pool_init2(sizeof(int), pool,
ctx               424 libavcodec/nvdec.c     if (!ctx->decoder_pool) {
ctx               552 libavcodec/nvdec.c     NVDECContext *ctx = avctx->internal->hwaccel_priv_data;
ctx               557 libavcodec/nvdec.c     ctx->bitstream_len = 0;
ctx               558 libavcodec/nvdec.c     ctx->nb_slices     = 0;
ctx               567 libavcodec/nvdec.c     cf->decoder_ref = av_buffer_ref(ctx->decoder_ref);
ctx               573 libavcodec/nvdec.c     cf->idx_ref = av_buffer_pool_get(ctx->decoder_pool);
ctx               594 libavcodec/nvdec.c     NVDECContext     *ctx = avctx->internal->hwaccel_priv_data;
ctx               595 libavcodec/nvdec.c     NVDECDecoder *decoder = (NVDECDecoder*)ctx->decoder_ref->data;
ctx               597 libavcodec/nvdec.c     CUVIDPICPARAMS    *pp = &ctx->pic_params;
ctx               603 libavcodec/nvdec.c     pp->nBitstreamDataLen = ctx->bitstream_len;
ctx               604 libavcodec/nvdec.c     pp->pBitstreamData    = ctx->bitstream;
ctx               605 libavcodec/nvdec.c     pp->nNumSlices        = ctx->nb_slices;
ctx               606 libavcodec/nvdec.c     pp->pSliceDataOffsets = ctx->slice_offsets;
ctx               612 libavcodec/nvdec.c     ret = CHECK_CU(decoder->cvdl->cuvidDecodePicture(decoder->decoder, &ctx->pic_params));
ctx               624 libavcodec/nvdec.c     NVDECContext *ctx = avctx->internal->hwaccel_priv_data;
ctx               626 libavcodec/nvdec.c     ctx->bitstream = NULL;
ctx               633 libavcodec/nvdec.c     NVDECContext *ctx = avctx->internal->hwaccel_priv_data;
ctx               636 libavcodec/nvdec.c     tmp = av_fast_realloc(ctx->slice_offsets, &ctx->slice_offsets_allocated,
ctx               637 libavcodec/nvdec.c                           (ctx->nb_slices + 1) * sizeof(*ctx->slice_offsets));
ctx               640 libavcodec/nvdec.c     ctx->slice_offsets = tmp;
ctx               642 libavcodec/nvdec.c     if (!ctx->bitstream)
ctx               643 libavcodec/nvdec.c         ctx->bitstream = (uint8_t*)buffer;
ctx               645 libavcodec/nvdec.c     ctx->slice_offsets[ctx->nb_slices] = buffer - ctx->bitstream;
ctx               646 libavcodec/nvdec.c     ctx->bitstream_len += size;
ctx               647 libavcodec/nvdec.c     ctx->nb_slices++;
ctx                54 libavcodec/nvdec_h264.c     NVDECContext       *ctx = avctx->internal->hwaccel_priv_data;
ctx                55 libavcodec/nvdec_h264.c     CUVIDPICPARAMS      *pp = &ctx->pic_params;
ctx               134 libavcodec/nvdec_h264.c     NVDECContext *ctx = avctx->internal->hwaccel_priv_data;
ctx               135 libavcodec/nvdec_h264.c     CUVIDPICPARAMS *pp = &ctx->pic_params;
ctx               140 libavcodec/nvdec_h264.c     tmp = av_fast_realloc(ctx->bitstream, &ctx->bitstream_allocated,
ctx               141 libavcodec/nvdec_h264.c                           ctx->bitstream_len + size + 3);
ctx               144 libavcodec/nvdec_h264.c     ctx->bitstream = tmp;
ctx               146 libavcodec/nvdec_h264.c     tmp = av_fast_realloc(ctx->slice_offsets, &ctx->slice_offsets_allocated,
ctx               147 libavcodec/nvdec_h264.c                           (ctx->nb_slices + 1) * sizeof(*ctx->slice_offsets));
ctx               150 libavcodec/nvdec_h264.c     ctx->slice_offsets = tmp;
ctx               152 libavcodec/nvdec_h264.c     AV_WB24(ctx->bitstream + ctx->bitstream_len, 1);
ctx               153 libavcodec/nvdec_h264.c     memcpy(ctx->bitstream + ctx->bitstream_len + 3, buffer, size);
ctx               154 libavcodec/nvdec_h264.c     ctx->slice_offsets[ctx->nb_slices] = ctx->bitstream_len ;
ctx               155 libavcodec/nvdec_h264.c     ctx->bitstream_len += size + 3;
ctx               156 libavcodec/nvdec_h264.c     ctx->nb_slices++;
ctx                77 libavcodec/nvdec_hevc.c     NVDECContext       *ctx = avctx->internal->hwaccel_priv_data;
ctx                78 libavcodec/nvdec_hevc.c     CUVIDPICPARAMS      *pp = &ctx->pic_params;
ctx               273 libavcodec/nvdec_hevc.c     NVDECContext *ctx = avctx->internal->hwaccel_priv_data;
ctx               276 libavcodec/nvdec_hevc.c     tmp = av_fast_realloc(ctx->bitstream, &ctx->bitstream_allocated,
ctx               277 libavcodec/nvdec_hevc.c                           ctx->bitstream_len + size + 3);
ctx               280 libavcodec/nvdec_hevc.c     ctx->bitstream = tmp;
ctx               282 libavcodec/nvdec_hevc.c     tmp = av_fast_realloc(ctx->slice_offsets, &ctx->slice_offsets_allocated,
ctx               283 libavcodec/nvdec_hevc.c                           (ctx->nb_slices + 1) * sizeof(*ctx->slice_offsets));
ctx               286 libavcodec/nvdec_hevc.c     ctx->slice_offsets = tmp;
ctx               288 libavcodec/nvdec_hevc.c     AV_WB24(ctx->bitstream + ctx->bitstream_len, 1);
ctx               289 libavcodec/nvdec_hevc.c     memcpy(ctx->bitstream + ctx->bitstream_len + 3, buffer, size);
ctx               290 libavcodec/nvdec_hevc.c     ctx->slice_offsets[ctx->nb_slices] = ctx->bitstream_len ;
ctx               291 libavcodec/nvdec_hevc.c     ctx->bitstream_len += size + 3;
ctx               292 libavcodec/nvdec_hevc.c     ctx->nb_slices++;
ctx               306 libavcodec/nvdec_hevc.c     NVDECContext *ctx = avctx->internal->hwaccel_priv_data;
ctx               307 libavcodec/nvdec_hevc.c     ctx->supports_444 = 1;
ctx                33 libavcodec/nvdec_mjpeg.c     NVDECContext      *ctx = avctx->internal->hwaccel_priv_data;
ctx                34 libavcodec/nvdec_mjpeg.c     CUVIDPICPARAMS     *pp = &ctx->pic_params;
ctx                32 libavcodec/nvdec_mpeg12.c     NVDECContext      *ctx = avctx->internal->hwaccel_priv_data;
ctx                33 libavcodec/nvdec_mpeg12.c     CUVIDPICPARAMS     *pp = &ctx->pic_params;
ctx                33 libavcodec/nvdec_mpeg4.c     NVDECContext      *ctx = avctx->internal->hwaccel_priv_data;
ctx                34 libavcodec/nvdec_mpeg4.c     CUVIDPICPARAMS     *pp = &ctx->pic_params;
ctx                33 libavcodec/nvdec_vc1.c     NVDECContext      *ctx = avctx->internal->hwaccel_priv_data;
ctx                34 libavcodec/nvdec_vc1.c     CUVIDPICPARAMS     *pp = &ctx->pic_params;
ctx                38 libavcodec/nvdec_vp8.c     NVDECContext      *ctx = avctx->internal->hwaccel_priv_data;
ctx                39 libavcodec/nvdec_vp8.c     CUVIDPICPARAMS     *pp = &ctx->pic_params;
ctx                36 libavcodec/nvdec_vp9.c     NVDECContext      *ctx = avctx->internal->hwaccel_priv_data;
ctx                37 libavcodec/nvdec_vp9.c     CUVIDPICPARAMS     *pp = &ctx->pic_params;
ctx               132 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx               133 libavcodec/nvenc.c     NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &ctx->nvenc_dload_funcs.nvenc_funcs;
ctx               135 libavcodec/nvenc.c     if (p_nvenc && ctx->nvencoder)
ctx               136 libavcodec/nvenc.c         details = p_nvenc->nvEncGetLastErrorString(ctx->nvencoder);
ctx               184 libavcodec/nvenc.c     NvencContext *ctx            = avctx->priv_data;
ctx               185 libavcodec/nvenc.c     NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
ctx               228 libavcodec/nvenc.c     NvencContext *ctx            = avctx->priv_data;
ctx               229 libavcodec/nvenc.c     NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
ctx               231 libavcodec/nvenc.c     if (ctx->d3d11_device)
ctx               234 libavcodec/nvenc.c     return CHECK_CU(dl_fn->cuda_dl->cuCtxPushCurrent(ctx->cu_context));
ctx               239 libavcodec/nvenc.c     NvencContext *ctx            = avctx->priv_data;
ctx               240 libavcodec/nvenc.c     NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
ctx               243 libavcodec/nvenc.c     if (ctx->d3d11_device)
ctx               252 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx               253 libavcodec/nvenc.c     NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &ctx->nvenc_dload_funcs.nvenc_funcs;
ctx               258 libavcodec/nvenc.c     if (ctx->d3d11_device) {
ctx               259 libavcodec/nvenc.c         params.device     = ctx->d3d11_device;
ctx               262 libavcodec/nvenc.c         params.device     = ctx->cu_context;
ctx               266 libavcodec/nvenc.c     ret = p_nvenc->nvEncOpenEncodeSessionEx(&params, &ctx->nvencoder);
ctx               268 libavcodec/nvenc.c         ctx->nvencoder = NULL;
ctx               277 libavcodec/nvenc.c     NvencContext *ctx                    = avctx->priv_data;
ctx               278 libavcodec/nvenc.c     NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &ctx->nvenc_dload_funcs.nvenc_funcs;
ctx               282 libavcodec/nvenc.c     ret = p_nvenc->nvEncGetEncodeGUIDCount(ctx->nvencoder, &count);
ctx               291 libavcodec/nvenc.c     ret = p_nvenc->nvEncGetEncodeGUIDs(ctx->nvencoder, guids, count, &count);
ctx               299 libavcodec/nvenc.c         if (!memcmp(&guids[i], &ctx->init_encode_params.encodeGUID, sizeof(*guids))) {
ctx               313 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx               314 libavcodec/nvenc.c     NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &ctx->nvenc_dload_funcs.nvenc_funcs;
ctx               321 libavcodec/nvenc.c     ret = p_nvenc->nvEncGetEncodeCaps(ctx->nvencoder, ctx->init_encode_params.encodeGUID, &params, &val);
ctx               330 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx               340 libavcodec/nvenc.c     if (IS_YUV444(ctx->data_pix_fmt) && ret <= 0) {
ctx               346 libavcodec/nvenc.c     if (ctx->preset >= PRESET_LOSSLESS_DEFAULT && ret <= 0) {
ctx               382 libavcodec/nvenc.c     if (IS_10BIT(ctx->data_pix_fmt) && ret <= 0) {
ctx               388 libavcodec/nvenc.c     if (ctx->rc_lookahead > 0 && ret <= 0) {
ctx               394 libavcodec/nvenc.c     if (ctx->temporal_aq > 0 && ret <= 0) {
ctx               400 libavcodec/nvenc.c     if (ctx->weighted_pred > 0 && ret <= 0) {
ctx               406 libavcodec/nvenc.c     if (ctx->coder == NV_ENC_H264_ENTROPY_CODING_MODE_CABAC && ret <= 0) {
ctx               413 libavcodec/nvenc.c     if (ctx->b_ref_mode == NV_ENC_BFRAME_REF_MODE_EACH && ret != 1) {
ctx               416 libavcodec/nvenc.c     } else if (ctx->b_ref_mode != NV_ENC_BFRAME_REF_MODE_DISABLED && ret == 0) {
ctx               421 libavcodec/nvenc.c     if (ctx->b_ref_mode != 0) {
ctx               440 libavcodec/nvenc.c     ctx->support_dyn_bitrate = nvenc_check_cap(avctx, NV_ENC_CAPS_SUPPORT_DYN_BITRATE_CHANGE);
ctx               447 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx               448 libavcodec/nvenc.c     NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
ctx               455 libavcodec/nvenc.c     if (ctx->device == LIST_DEVICES)
ctx               476 libavcodec/nvenc.c     if (ctx->device != idx && ctx->device != ANY_DEVICE)
ctx               479 libavcodec/nvenc.c     ret = CHECK_CU(dl_fn->cuda_dl->cuCtxCreate(&ctx->cu_context_internal, 0, cu_device));
ctx               483 libavcodec/nvenc.c     ctx->cu_context = ctx->cu_context_internal;
ctx               484 libavcodec/nvenc.c     ctx->cu_stream = NULL;
ctx               499 libavcodec/nvenc.c     if (ctx->device == idx || ctx->device == ANY_DEVICE)
ctx               506 libavcodec/nvenc.c     p_nvenc->nvEncDestroyEncoder(ctx->nvencoder);
ctx               507 libavcodec/nvenc.c     ctx->nvencoder = NULL;
ctx               513 libavcodec/nvenc.c     CHECK_CU(dl_fn->cuda_dl->cuCtxDestroy(ctx->cu_context_internal));
ctx               514 libavcodec/nvenc.c     ctx->cu_context_internal = NULL;
ctx               522 libavcodec/nvenc.c     NvencContext *ctx            = avctx->priv_data;
ctx               523 libavcodec/nvenc.c     NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
ctx               527 libavcodec/nvenc.c         ctx->init_encode_params.encodeGUID = NV_ENC_CODEC_H264_GUID;
ctx               530 libavcodec/nvenc.c         ctx->init_encode_params.encodeGUID = NV_ENC_CODEC_HEVC_GUID;
ctx               570 libavcodec/nvenc.c             ctx->cu_context = cuda_device_hwctx->cuda_ctx;
ctx               571 libavcodec/nvenc.c             ctx->cu_stream = cuda_device_hwctx->stream;
ctx               575 libavcodec/nvenc.c             ctx->d3d11_device = d3d11_device_hwctx->device;
ctx               576 libavcodec/nvenc.c             ID3D11Device_AddRef(ctx->d3d11_device);
ctx               607 libavcodec/nvenc.c             if ((nvenc_check_device(avctx, i)) >= 0 && ctx->device != LIST_DEVICES)
ctx               611 libavcodec/nvenc.c         if (ctx->device == LIST_DEVICES)
ctx               619 libavcodec/nvenc.c         av_log(avctx, AV_LOG_FATAL, "Requested GPU %d, but only %d GPUs are available!\n", ctx->device, nb_devices);
ctx               636 libavcodec/nvenc.c static void nvenc_map_preset(NvencContext *ctx)
ctx               653 libavcodec/nvenc.c     GUIDTuple *t = &presets[ctx->preset];
ctx               655 libavcodec/nvenc.c     ctx->init_encode_params.presetGUID = t->guid;
ctx               656 libavcodec/nvenc.c     ctx->flags = t->flags;
ctx               664 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx               665 libavcodec/nvenc.c     NV_ENC_RC_PARAMS *rc = &ctx->encode_config.rcParams;
ctx               669 libavcodec/nvenc.c     if (ctx->init_qp_p >= 0) {
ctx               670 libavcodec/nvenc.c         rc->constQP.qpInterP = ctx->init_qp_p;
ctx               671 libavcodec/nvenc.c         if (ctx->init_qp_i >= 0 && ctx->init_qp_b >= 0) {
ctx               672 libavcodec/nvenc.c             rc->constQP.qpIntra = ctx->init_qp_i;
ctx               673 libavcodec/nvenc.c             rc->constQP.qpInterB = ctx->init_qp_b;
ctx               683 libavcodec/nvenc.c     } else if (ctx->cqp >= 0) {
ctx               684 libavcodec/nvenc.c         rc->constQP.qpInterP = rc->constQP.qpInterB = rc->constQP.qpIntra = ctx->cqp;
ctx               686 libavcodec/nvenc.c             rc->constQP.qpInterB = av_clip(ctx->cqp * fabs(avctx->b_quant_factor) + avctx->b_quant_offset + 0.5, 0, 51);
ctx               688 libavcodec/nvenc.c             rc->constQP.qpIntra = av_clip(ctx->cqp * fabs(avctx->i_quant_factor) + avctx->i_quant_offset + 0.5, 0, 51);
ctx               697 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx               698 libavcodec/nvenc.c     NV_ENC_RC_PARAMS *rc = &ctx->encode_config.rcParams;
ctx               728 libavcodec/nvenc.c     if (ctx->init_qp_p < 0) {
ctx               731 libavcodec/nvenc.c         rc->initialRCQP.qpInterP = ctx->init_qp_p;
ctx               734 libavcodec/nvenc.c     if (ctx->init_qp_i < 0) {
ctx               742 libavcodec/nvenc.c         rc->initialRCQP.qpIntra = ctx->init_qp_i;
ctx               745 libavcodec/nvenc.c     if (ctx->init_qp_b < 0) {
ctx               753 libavcodec/nvenc.c         rc->initialRCQP.qpInterB = ctx->init_qp_b;
ctx               759 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx               760 libavcodec/nvenc.c     NV_ENC_RC_PARAMS *rc = &ctx->encode_config.rcParams;
ctx               773 libavcodec/nvenc.c     NvencContext *ctx    = avctx->priv_data;
ctx               774 libavcodec/nvenc.c     NV_ENC_RC_PARAMS *rc = &ctx->encode_config.rcParams;
ctx               776 libavcodec/nvenc.c     switch (ctx->rc) {
ctx               799 libavcodec/nvenc.c     rc->rateControlMode = ctx->rc;
ctx               804 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx               808 libavcodec/nvenc.c     int nb_surfaces = FFMAX(4, ctx->encode_config.frameIntervalP * 2 * 2);
ctx               811 libavcodec/nvenc.c     if (ctx->rc_lookahead > 0) {
ctx               814 libavcodec/nvenc.c         nb_surfaces = FFMAX(1, FFMAX(nb_surfaces, ctx->rc_lookahead + ctx->encode_config.frameIntervalP + 1 + 4));
ctx               815 libavcodec/nvenc.c         if (nb_surfaces > ctx->nb_surfaces && ctx->nb_surfaces > 0)
ctx               819 libavcodec/nvenc.c                    "increasing used surfaces %d -> %d\n", ctx->nb_surfaces, nb_surfaces);
ctx               821 libavcodec/nvenc.c         ctx->nb_surfaces = FFMAX(nb_surfaces, ctx->nb_surfaces);
ctx               823 libavcodec/nvenc.c         if (ctx->encode_config.frameIntervalP > 1 && ctx->nb_surfaces < nb_surfaces && ctx->nb_surfaces > 0)
ctx               827 libavcodec/nvenc.c                    "increasing used surfaces %d -> %d\n", ctx->nb_surfaces, nb_surfaces);
ctx               828 libavcodec/nvenc.c             ctx->nb_surfaces = FFMAX(ctx->nb_surfaces, nb_surfaces);
ctx               830 libavcodec/nvenc.c         else if (ctx->nb_surfaces <= 0)
ctx               831 libavcodec/nvenc.c             ctx->nb_surfaces = nb_surfaces;
ctx               835 libavcodec/nvenc.c     ctx->nb_surfaces = FFMAX(1, FFMIN(MAX_REGISTERED_FRAMES, ctx->nb_surfaces));
ctx               836 libavcodec/nvenc.c     ctx->async_depth = FFMIN(ctx->async_depth, ctx->nb_surfaces - 1);
ctx               843 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx               848 libavcodec/nvenc.c     if (ctx->cqp < 0 && avctx->global_quality > 0)
ctx               849 libavcodec/nvenc.c         ctx->cqp = avctx->global_quality;
ctx               852 libavcodec/nvenc.c         ctx->encode_config.rcParams.averageBitRate = avctx->bit_rate;
ctx               853 libavcodec/nvenc.c     } else if (ctx->encode_config.rcParams.averageBitRate > 0) {
ctx               854 libavcodec/nvenc.c         ctx->encode_config.rcParams.maxBitRate = ctx->encode_config.rcParams.averageBitRate;
ctx               858 libavcodec/nvenc.c         ctx->encode_config.rcParams.maxBitRate = avctx->rc_max_rate;
ctx               860 libavcodec/nvenc.c     if (ctx->rc < 0) {
ctx               861 libavcodec/nvenc.c         if (ctx->flags & NVENC_ONE_PASS)
ctx               862 libavcodec/nvenc.c             ctx->twopass = 0;
ctx               863 libavcodec/nvenc.c         if (ctx->flags & NVENC_TWO_PASSES)
ctx               864 libavcodec/nvenc.c             ctx->twopass = 1;
ctx               866 libavcodec/nvenc.c         if (ctx->twopass < 0)
ctx               867 libavcodec/nvenc.c             ctx->twopass = (ctx->flags & NVENC_LOWLATENCY) != 0;
ctx               869 libavcodec/nvenc.c         if (ctx->cbr) {
ctx               870 libavcodec/nvenc.c             if (ctx->twopass) {
ctx               871 libavcodec/nvenc.c                 ctx->rc = NV_ENC_PARAMS_RC_CBR_LOWDELAY_HQ;
ctx               873 libavcodec/nvenc.c                 ctx->rc = NV_ENC_PARAMS_RC_CBR;
ctx               875 libavcodec/nvenc.c         } else if (ctx->cqp >= 0) {
ctx               876 libavcodec/nvenc.c             ctx->rc = NV_ENC_PARAMS_RC_CONSTQP;
ctx               877 libavcodec/nvenc.c         } else if (ctx->twopass) {
ctx               878 libavcodec/nvenc.c             ctx->rc = NV_ENC_PARAMS_RC_VBR_HQ;
ctx               880 libavcodec/nvenc.c             ctx->rc = NV_ENC_PARAMS_RC_VBR_MINQP;
ctx               884 libavcodec/nvenc.c     if (ctx->rc >= 0 && ctx->rc & RC_MODE_DEPRECATED) {
ctx               891 libavcodec/nvenc.c         ctx->rc &= ~RC_MODE_DEPRECATED;
ctx               894 libavcodec/nvenc.c     if (ctx->flags & NVENC_LOSSLESS) {
ctx               896 libavcodec/nvenc.c     } else if (ctx->rc >= 0) {
ctx               899 libavcodec/nvenc.c         ctx->encode_config.rcParams.rateControlMode = NV_ENC_PARAMS_RC_VBR;
ctx               904 libavcodec/nvenc.c         ctx->encode_config.rcParams.vbvBufferSize = avctx->rc_buffer_size;
ctx               905 libavcodec/nvenc.c     } else if (ctx->encode_config.rcParams.averageBitRate > 0) {
ctx               906 libavcodec/nvenc.c         avctx->rc_buffer_size = ctx->encode_config.rcParams.vbvBufferSize = 2 * ctx->encode_config.rcParams.averageBitRate;
ctx               909 libavcodec/nvenc.c     if (ctx->aq) {
ctx               910 libavcodec/nvenc.c         ctx->encode_config.rcParams.enableAQ   = 1;
ctx               911 libavcodec/nvenc.c         ctx->encode_config.rcParams.aqStrength = ctx->aq_strength;
ctx               915 libavcodec/nvenc.c     if (ctx->temporal_aq) {
ctx               916 libavcodec/nvenc.c         ctx->encode_config.rcParams.enableTemporalAQ = 1;
ctx               920 libavcodec/nvenc.c     if (ctx->rc_lookahead > 0) {
ctx               921 libavcodec/nvenc.c         int lkd_bound = FFMIN(ctx->nb_surfaces, ctx->async_depth) -
ctx               922 libavcodec/nvenc.c                         ctx->encode_config.frameIntervalP - 4;
ctx               928 libavcodec/nvenc.c             ctx->encode_config.rcParams.enableLookahead = 1;
ctx               929 libavcodec/nvenc.c             ctx->encode_config.rcParams.lookaheadDepth  = av_clip(ctx->rc_lookahead, 0, lkd_bound);
ctx               930 libavcodec/nvenc.c             ctx->encode_config.rcParams.disableIadapt   = ctx->no_scenecut;
ctx               931 libavcodec/nvenc.c             ctx->encode_config.rcParams.disableBadapt   = !ctx->b_adapt;
ctx               934 libavcodec/nvenc.c                    ctx->encode_config.rcParams.lookaheadDepth,
ctx               935 libavcodec/nvenc.c                    ctx->encode_config.rcParams.disableIadapt ? "disabled" : "enabled",
ctx               936 libavcodec/nvenc.c                    ctx->encode_config.rcParams.disableBadapt ? "disabled" : "enabled");
ctx               940 libavcodec/nvenc.c     if (ctx->strict_gop) {
ctx               941 libavcodec/nvenc.c         ctx->encode_config.rcParams.strictGOPTarget = 1;
ctx               945 libavcodec/nvenc.c     if (ctx->nonref_p)
ctx               946 libavcodec/nvenc.c         ctx->encode_config.rcParams.enableNonRefP = 1;
ctx               948 libavcodec/nvenc.c     if (ctx->zerolatency)
ctx               949 libavcodec/nvenc.c         ctx->encode_config.rcParams.zeroReorderDelay = 1;
ctx               951 libavcodec/nvenc.c     if (ctx->quality) {
ctx               953 libavcodec/nvenc.c         int tmp_quality = (int)(ctx->quality * 256.0f);
ctx               954 libavcodec/nvenc.c         ctx->encode_config.rcParams.targetQuality = (uint8_t)(tmp_quality >> 8);
ctx               955 libavcodec/nvenc.c         ctx->encode_config.rcParams.targetQualityLSB = (uint8_t)(tmp_quality & 0xff);
ctx               960 libavcodec/nvenc.c         ctx->encode_config.rcParams.averageBitRate = avctx->bit_rate = 0;
ctx               961 libavcodec/nvenc.c         ctx->encode_config.rcParams.maxBitRate = avctx->rc_max_rate;
ctx               967 libavcodec/nvenc.c     NvencContext *ctx                      = avctx->priv_data;
ctx               968 libavcodec/nvenc.c     NV_ENC_CONFIG *cc                      = &ctx->encode_config;
ctx               976 libavcodec/nvenc.c         || ctx->data_pix_fmt == AV_PIX_FMT_YUVJ420P || ctx->data_pix_fmt == AV_PIX_FMT_YUVJ422P || ctx->data_pix_fmt == AV_PIX_FMT_YUVJ444P);
ctx               991 libavcodec/nvenc.c     h264->outputAUD     = ctx->aud;
ctx               993 libavcodec/nvenc.c     if (ctx->dpb_size >= 0) {
ctx               995 libavcodec/nvenc.c         h264->maxNumRefFrames = ctx->dpb_size;
ctx              1014 libavcodec/nvenc.c     if (ctx->flags & NVENC_LOSSLESS) {
ctx              1017 libavcodec/nvenc.c         switch(ctx->profile) {
ctx              1038 libavcodec/nvenc.c     if (ctx->data_pix_fmt == AV_PIX_FMT_YUV444P) {
ctx              1045 libavcodec/nvenc.c     h264->level = ctx->level;
ctx              1047 libavcodec/nvenc.c     if (ctx->coder >= 0)
ctx              1048 libavcodec/nvenc.c         h264->entropyCodingMode = ctx->coder;
ctx              1051 libavcodec/nvenc.c     h264->useBFramesAsRef = ctx->b_ref_mode;
ctx              1064 libavcodec/nvenc.c     NvencContext *ctx                      = avctx->priv_data;
ctx              1065 libavcodec/nvenc.c     NV_ENC_CONFIG *cc                      = &ctx->encode_config;
ctx              1073 libavcodec/nvenc.c         || ctx->data_pix_fmt == AV_PIX_FMT_YUVJ420P || ctx->data_pix_fmt == AV_PIX_FMT_YUVJ422P || ctx->data_pix_fmt == AV_PIX_FMT_YUVJ444P);
ctx              1088 libavcodec/nvenc.c     hevc->outputAUD     = ctx->aud;
ctx              1090 libavcodec/nvenc.c     if (ctx->dpb_size >= 0) {
ctx              1092 libavcodec/nvenc.c         hevc->maxNumRefFramesInDPB = ctx->dpb_size;
ctx              1104 libavcodec/nvenc.c     switch (ctx->profile) {
ctx              1120 libavcodec/nvenc.c     if (IS_10BIT(ctx->data_pix_fmt)) {
ctx              1126 libavcodec/nvenc.c     if (IS_YUV444(ctx->data_pix_fmt)) {
ctx              1131 libavcodec/nvenc.c     hevc->chromaFormatIDC = IS_YUV444(ctx->data_pix_fmt) ? 3 : 1;
ctx              1133 libavcodec/nvenc.c     hevc->pixelBitDepthMinus8 = IS_10BIT(ctx->data_pix_fmt) ? 2 : 0;
ctx              1135 libavcodec/nvenc.c     hevc->level = ctx->level;
ctx              1137 libavcodec/nvenc.c     hevc->tier = ctx->tier;
ctx              1140 libavcodec/nvenc.c     hevc->useBFramesAsRef = ctx->b_ref_mode;
ctx              1180 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx              1181 libavcodec/nvenc.c     NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
ctx              1190 libavcodec/nvenc.c     ctx->encode_config.version = NV_ENC_CONFIG_VER;
ctx              1191 libavcodec/nvenc.c     ctx->init_encode_params.version = NV_ENC_INITIALIZE_PARAMS_VER;
ctx              1193 libavcodec/nvenc.c     ctx->init_encode_params.encodeHeight = avctx->height;
ctx              1194 libavcodec/nvenc.c     ctx->init_encode_params.encodeWidth = avctx->width;
ctx              1196 libavcodec/nvenc.c     ctx->init_encode_params.encodeConfig = &ctx->encode_config;
ctx              1198 libavcodec/nvenc.c     nvenc_map_preset(ctx);
ctx              1203 libavcodec/nvenc.c     nv_status = p_nvenc->nvEncGetEncodePresetConfig(ctx->nvencoder,
ctx              1204 libavcodec/nvenc.c                                                     ctx->init_encode_params.encodeGUID,
ctx              1205 libavcodec/nvenc.c                                                     ctx->init_encode_params.presetGUID,
ctx              1210 libavcodec/nvenc.c     memcpy(&ctx->encode_config, &preset_config.presetCfg, sizeof(ctx->encode_config));
ctx              1212 libavcodec/nvenc.c     ctx->encode_config.version = NV_ENC_CONFIG_VER;
ctx              1215 libavcodec/nvenc.c     ctx->init_encode_params.darHeight = dh;
ctx              1216 libavcodec/nvenc.c     ctx->init_encode_params.darWidth = dw;
ctx              1219 libavcodec/nvenc.c         ctx->init_encode_params.frameRateNum = avctx->framerate.num;
ctx              1220 libavcodec/nvenc.c         ctx->init_encode_params.frameRateDen = avctx->framerate.den;
ctx              1222 libavcodec/nvenc.c         ctx->init_encode_params.frameRateNum = avctx->time_base.den;
ctx              1223 libavcodec/nvenc.c         ctx->init_encode_params.frameRateDen = avctx->time_base.num * avctx->ticks_per_frame;
ctx              1226 libavcodec/nvenc.c     ctx->init_encode_params.enableEncodeAsync = 0;
ctx              1227 libavcodec/nvenc.c     ctx->init_encode_params.enablePTD = 1;
ctx              1229 libavcodec/nvenc.c     if (ctx->weighted_pred == 1)
ctx              1230 libavcodec/nvenc.c         ctx->init_encode_params.enableWeightedPrediction = 1;
ctx              1232 libavcodec/nvenc.c     if (ctx->bluray_compat) {
ctx              1233 libavcodec/nvenc.c         ctx->aud = 1;
ctx              1234 libavcodec/nvenc.c         ctx->dpb_size = FFMIN(FFMAX(avctx->refs, 0), 6);
ctx              1241 libavcodec/nvenc.c             ctx->level = NV_ENC_LEVEL_HEVC_51;
ctx              1242 libavcodec/nvenc.c             ctx->tier = NV_ENC_TIER_HEVC_HIGH;
ctx              1250 libavcodec/nvenc.c             ctx->encode_config.frameIntervalP = avctx->max_b_frames + 1;
ctx              1253 libavcodec/nvenc.c         ctx->encode_config.gopLength = avctx->gop_size;
ctx              1255 libavcodec/nvenc.c         ctx->encode_config.frameIntervalP = 0;
ctx              1256 libavcodec/nvenc.c         ctx->encode_config.gopLength = 1;
ctx              1264 libavcodec/nvenc.c         ctx->encode_config.frameFieldMode = NV_ENC_PARAMS_FRAME_FIELD_MODE_FIELD;
ctx              1266 libavcodec/nvenc.c         ctx->encode_config.frameFieldMode = NV_ENC_PARAMS_FRAME_FIELD_MODE_FRAME;
ctx              1277 libavcodec/nvenc.c     nv_status = p_nvenc->nvEncInitializeEncoder(ctx->nvencoder, &ctx->init_encode_params);
ctx              1284 libavcodec/nvenc.c     if (ctx->cu_context) {
ctx              1285 libavcodec/nvenc.c         nv_status = p_nvenc->nvEncSetIOCudaStreams(ctx->nvencoder, &ctx->cu_stream, &ctx->cu_stream);
ctx              1297 libavcodec/nvenc.c     if (ctx->encode_config.frameIntervalP > 1)
ctx              1300 libavcodec/nvenc.c     if (ctx->encode_config.rcParams.averageBitRate > 0)
ctx              1301 libavcodec/nvenc.c         avctx->bit_rate = ctx->encode_config.rcParams.averageBitRate;
ctx              1306 libavcodec/nvenc.c     cpb_props->max_bitrate = ctx->encode_config.rcParams.maxBitRate;
ctx              1308 libavcodec/nvenc.c     cpb_props->buffer_size = ctx->encode_config.rcParams.vbvBufferSize;
ctx              1338 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx              1339 libavcodec/nvenc.c     NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
ctx              1341 libavcodec/nvenc.c     NvencSurface* tmp_surface = &ctx->surfaces[idx];
ctx              1348 libavcodec/nvenc.c         ctx->surfaces[idx].in_ref = av_frame_alloc();
ctx              1349 libavcodec/nvenc.c         if (!ctx->surfaces[idx].in_ref)
ctx              1354 libavcodec/nvenc.c         ctx->surfaces[idx].format = nvenc_map_buffer_format(ctx->data_pix_fmt);
ctx              1355 libavcodec/nvenc.c         if (ctx->surfaces[idx].format == NV_ENC_BUFFER_FORMAT_UNDEFINED) {
ctx              1357 libavcodec/nvenc.c                    av_get_pix_fmt_name(ctx->data_pix_fmt));
ctx              1364 libavcodec/nvenc.c         allocSurf.bufferFmt = ctx->surfaces[idx].format;
ctx              1366 libavcodec/nvenc.c         nv_status = p_nvenc->nvEncCreateInputBuffer(ctx->nvencoder, &allocSurf);
ctx              1371 libavcodec/nvenc.c         ctx->surfaces[idx].input_surface = allocSurf.inputBuffer;
ctx              1372 libavcodec/nvenc.c         ctx->surfaces[idx].width = allocSurf.width;
ctx              1373 libavcodec/nvenc.c         ctx->surfaces[idx].height = allocSurf.height;
ctx              1376 libavcodec/nvenc.c     nv_status = p_nvenc->nvEncCreateBitstreamBuffer(ctx->nvencoder, &allocOut);
ctx              1380 libavcodec/nvenc.c             p_nvenc->nvEncDestroyInputBuffer(ctx->nvencoder, ctx->surfaces[idx].input_surface);
ctx              1381 libavcodec/nvenc.c         av_frame_free(&ctx->surfaces[idx].in_ref);
ctx              1385 libavcodec/nvenc.c     ctx->surfaces[idx].output_surface = allocOut.bitstreamBuffer;
ctx              1386 libavcodec/nvenc.c     ctx->surfaces[idx].size = allocOut.size;
ctx              1388 libavcodec/nvenc.c     av_fifo_generic_write(ctx->unused_surface_queue, &tmp_surface, sizeof(tmp_surface), NULL);
ctx              1395 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx              1398 libavcodec/nvenc.c     ctx->surfaces = av_mallocz_array(ctx->nb_surfaces, sizeof(*ctx->surfaces));
ctx              1399 libavcodec/nvenc.c     if (!ctx->surfaces)
ctx              1402 libavcodec/nvenc.c     ctx->timestamp_list = av_fifo_alloc(ctx->nb_surfaces * sizeof(int64_t));
ctx              1403 libavcodec/nvenc.c     if (!ctx->timestamp_list)
ctx              1406 libavcodec/nvenc.c     ctx->unused_surface_queue = av_fifo_alloc(ctx->nb_surfaces * sizeof(NvencSurface*));
ctx              1407 libavcodec/nvenc.c     if (!ctx->unused_surface_queue)
ctx              1410 libavcodec/nvenc.c     ctx->output_surface_queue = av_fifo_alloc(ctx->nb_surfaces * sizeof(NvencSurface*));
ctx              1411 libavcodec/nvenc.c     if (!ctx->output_surface_queue)
ctx              1413 libavcodec/nvenc.c     ctx->output_surface_ready_queue = av_fifo_alloc(ctx->nb_surfaces * sizeof(NvencSurface*));
ctx              1414 libavcodec/nvenc.c     if (!ctx->output_surface_ready_queue)
ctx              1421 libavcodec/nvenc.c     for (i = 0; i < ctx->nb_surfaces; i++) {
ctx              1436 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx              1437 libavcodec/nvenc.c     NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
ctx              1450 libavcodec/nvenc.c     nv_status = p_nvenc->nvEncGetSequenceParams(ctx->nvencoder, &payload);
ctx              1469 libavcodec/nvenc.c     NvencContext *ctx               = avctx->priv_data;
ctx              1470 libavcodec/nvenc.c     NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
ctx              1475 libavcodec/nvenc.c     if (ctx->nvencoder) {
ctx              1483 libavcodec/nvenc.c         p_nvenc->nvEncEncodePicture(ctx->nvencoder, &params);
ctx              1486 libavcodec/nvenc.c     av_fifo_freep(&ctx->timestamp_list);
ctx              1487 libavcodec/nvenc.c     av_fifo_freep(&ctx->output_surface_ready_queue);
ctx              1488 libavcodec/nvenc.c     av_fifo_freep(&ctx->output_surface_queue);
ctx              1489 libavcodec/nvenc.c     av_fifo_freep(&ctx->unused_surface_queue);
ctx              1491 libavcodec/nvenc.c     if (ctx->surfaces && (avctx->pix_fmt == AV_PIX_FMT_CUDA || avctx->pix_fmt == AV_PIX_FMT_D3D11)) {
ctx              1492 libavcodec/nvenc.c         for (i = 0; i < ctx->nb_registered_frames; i++) {
ctx              1493 libavcodec/nvenc.c             if (ctx->registered_frames[i].mapped)
ctx              1494 libavcodec/nvenc.c                 p_nvenc->nvEncUnmapInputResource(ctx->nvencoder, ctx->registered_frames[i].in_map.mappedResource);
ctx              1495 libavcodec/nvenc.c             if (ctx->registered_frames[i].regptr)
ctx              1496 libavcodec/nvenc.c                 p_nvenc->nvEncUnregisterResource(ctx->nvencoder, ctx->registered_frames[i].regptr);
ctx              1498 libavcodec/nvenc.c         ctx->nb_registered_frames = 0;
ctx              1501 libavcodec/nvenc.c     if (ctx->surfaces) {
ctx              1502 libavcodec/nvenc.c         for (i = 0; i < ctx->nb_surfaces; ++i) {
ctx              1504 libavcodec/nvenc.c                 p_nvenc->nvEncDestroyInputBuffer(ctx->nvencoder, ctx->surfaces[i].input_surface);
ctx              1505 libavcodec/nvenc.c             av_frame_free(&ctx->surfaces[i].in_ref);
ctx              1506 libavcodec/nvenc.c             p_nvenc->nvEncDestroyBitstreamBuffer(ctx->nvencoder, ctx->surfaces[i].output_surface);
ctx              1509 libavcodec/nvenc.c     av_freep(&ctx->surfaces);
ctx              1510 libavcodec/nvenc.c     ctx->nb_surfaces = 0;
ctx              1512 libavcodec/nvenc.c     if (ctx->nvencoder) {
ctx              1513 libavcodec/nvenc.c         p_nvenc->nvEncDestroyEncoder(ctx->nvencoder);
ctx              1519 libavcodec/nvenc.c     ctx->nvencoder = NULL;
ctx              1521 libavcodec/nvenc.c     if (ctx->cu_context_internal)
ctx              1522 libavcodec/nvenc.c         CHECK_CU(dl_fn->cuda_dl->cuCtxDestroy(ctx->cu_context_internal));
ctx              1523 libavcodec/nvenc.c     ctx->cu_context = ctx->cu_context_internal = NULL;
ctx              1526 libavcodec/nvenc.c     if (ctx->d3d11_device) {
ctx              1527 libavcodec/nvenc.c         ID3D11Device_Release(ctx->d3d11_device);
ctx              1528 libavcodec/nvenc.c         ctx->d3d11_device = NULL;
ctx              1544 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx              1560 libavcodec/nvenc.c         ctx->data_pix_fmt = frames_ctx->sw_format;
ctx              1562 libavcodec/nvenc.c         ctx->data_pix_fmt = avctx->pix_fmt;
ctx              1585 libavcodec/nvenc.c static NvencSurface *get_free_frame(NvencContext *ctx)
ctx              1589 libavcodec/nvenc.c     if (!(av_fifo_size(ctx->unused_surface_queue) > 0))
ctx              1593 libavcodec/nvenc.c     av_fifo_generic_read(ctx->unused_surface_queue, &tmp_surf, sizeof(tmp_surf), NULL);
ctx              1629 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx              1630 libavcodec/nvenc.c     NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
ctx              1636 libavcodec/nvenc.c     if (ctx->nb_registered_frames == FF_ARRAY_ELEMS(ctx->registered_frames)) {
ctx              1638 libavcodec/nvenc.c             for (i = 0; i < ctx->nb_registered_frames; i++) {
ctx              1639 libavcodec/nvenc.c                 if (!ctx->registered_frames[i].mapped) {
ctx              1640 libavcodec/nvenc.c                     if (ctx->registered_frames[i].regptr) {
ctx              1643 libavcodec/nvenc.c                         nv_status = p_nvenc->nvEncUnregisterResource(ctx->nvencoder, ctx->registered_frames[i].regptr);
ctx              1646 libavcodec/nvenc.c                         ctx->registered_frames[i].ptr = NULL;
ctx              1647 libavcodec/nvenc.c                         ctx->registered_frames[i].regptr = NULL;
ctx              1654 libavcodec/nvenc.c         return ctx->nb_registered_frames++;
ctx              1663 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx              1664 libavcodec/nvenc.c     NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
ctx              1671 libavcodec/nvenc.c     for (i = 0; i < ctx->nb_registered_frames; i++) {
ctx              1672 libavcodec/nvenc.c         if (avctx->pix_fmt == AV_PIX_FMT_CUDA && ctx->registered_frames[i].ptr == frame->data[0])
ctx              1674 libavcodec/nvenc.c         else if (avctx->pix_fmt == AV_PIX_FMT_D3D11 && ctx->registered_frames[i].ptr == frame->data[0] && ctx->registered_frames[i].ptr_index == (intptr_t)frame->data[1])
ctx              1703 libavcodec/nvenc.c     ret = p_nvenc->nvEncRegisterResource(ctx->nvencoder, &reg);
ctx              1709 libavcodec/nvenc.c     ctx->registered_frames[idx].ptr       = frame->data[0];
ctx              1710 libavcodec/nvenc.c     ctx->registered_frames[idx].ptr_index = reg.subResourceIndex;
ctx              1711 libavcodec/nvenc.c     ctx->registered_frames[idx].regptr    = reg.registeredResource;
ctx              1718 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx              1719 libavcodec/nvenc.c     NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
ctx              1736 libavcodec/nvenc.c         if (!ctx->registered_frames[reg_idx].mapped) {
ctx              1737 libavcodec/nvenc.c             ctx->registered_frames[reg_idx].in_map.version = NV_ENC_MAP_INPUT_RESOURCE_VER;
ctx              1738 libavcodec/nvenc.c             ctx->registered_frames[reg_idx].in_map.registeredResource = ctx->registered_frames[reg_idx].regptr;
ctx              1739 libavcodec/nvenc.c             nv_status = p_nvenc->nvEncMapInputResource(ctx->nvencoder, &ctx->registered_frames[reg_idx].in_map);
ctx              1746 libavcodec/nvenc.c         ctx->registered_frames[reg_idx].mapped += 1;
ctx              1749 libavcodec/nvenc.c         nvenc_frame->input_surface             = ctx->registered_frames[reg_idx].in_map.mappedResource;
ctx              1750 libavcodec/nvenc.c         nvenc_frame->format                    = ctx->registered_frames[reg_idx].in_map.mappedBufferFmt;
ctx              1760 libavcodec/nvenc.c         nv_status = p_nvenc->nvEncLockInputBuffer(ctx->nvencoder, &lockBufferParams);
ctx              1768 libavcodec/nvenc.c         nv_status = p_nvenc->nvEncUnlockInputBuffer(ctx->nvencoder, nvenc_frame->input_surface);
ctx              1781 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx              1786 libavcodec/nvenc.c             ctx->encode_config.encodeCodecConfig.h264Config.sliceMode;
ctx              1788 libavcodec/nvenc.c             ctx->encode_config.encodeCodecConfig.h264Config.sliceModeData;
ctx              1797 libavcodec/nvenc.c             ctx->encode_config.encodeCodecConfig.hevcConfig.sliceMode;
ctx              1799 libavcodec/nvenc.c             ctx->encode_config.encodeCodecConfig.hevcConfig.sliceModeData;
ctx              1827 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx              1830 libavcodec/nvenc.c     pkt->dts = timestamp_queue_dequeue(ctx->timestamp_list);
ctx              1839 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx              1840 libavcodec/nvenc.c     NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
ctx              1853 libavcodec/nvenc.c       slice_mode_data = ctx->encode_config.encodeCodecConfig.h264Config.sliceModeData;
ctx              1856 libavcodec/nvenc.c       slice_mode_data = ctx->encode_config.encodeCodecConfig.hevcConfig.sliceModeData;
ctx              1876 libavcodec/nvenc.c     nv_status = p_nvenc->nvEncLockBitstream(ctx->nvencoder, &lock_params);
ctx              1887 libavcodec/nvenc.c         p_nvenc->nvEncUnlockBitstream(ctx->nvencoder, tmpoutsurf->output_surface);
ctx              1893 libavcodec/nvenc.c     nv_status = p_nvenc->nvEncUnlockBitstream(ctx->nvencoder, tmpoutsurf->output_surface);
ctx              1901 libavcodec/nvenc.c         ctx->registered_frames[tmpoutsurf->reg_idx].mapped -= 1;
ctx              1902 libavcodec/nvenc.c         if (ctx->registered_frames[tmpoutsurf->reg_idx].mapped == 0) {
ctx              1903 libavcodec/nvenc.c             nv_status = p_nvenc->nvEncUnmapInputResource(ctx->nvencoder, ctx->registered_frames[tmpoutsurf->reg_idx].in_map.mappedResource);
ctx              1908 libavcodec/nvenc.c         } else if (ctx->registered_frames[tmpoutsurf->reg_idx].mapped < 0) {
ctx              1958 libavcodec/nvenc.c     timestamp_queue_dequeue(ctx->timestamp_list);
ctx              1968 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx              1971 libavcodec/nvenc.c     nb_ready   = av_fifo_size(ctx->output_surface_ready_queue)   / sizeof(NvencSurface*);
ctx              1972 libavcodec/nvenc.c     nb_pending = av_fifo_size(ctx->output_surface_queue)         / sizeof(NvencSurface*);
ctx              1975 libavcodec/nvenc.c     return (nb_ready > 0) && (nb_ready + nb_pending >= ctx->async_depth);
ctx              1980 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx              1981 libavcodec/nvenc.c     NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &ctx->nvenc_dload_funcs.nvenc_funcs;
ctx              1991 libavcodec/nvenc.c     params.reInitEncodeParams = ctx->init_encode_params;
ctx              1994 libavcodec/nvenc.c     if (dw != ctx->init_encode_params.darWidth || dh != ctx->init_encode_params.darHeight) {
ctx              1997 libavcodec/nvenc.c                ctx->init_encode_params.darWidth,
ctx              1998 libavcodec/nvenc.c                ctx->init_encode_params.darHeight, dw, dh);
ctx              2007 libavcodec/nvenc.c     if (ctx->rc != NV_ENC_PARAMS_RC_CONSTQP && ctx->support_dyn_bitrate) {
ctx              2018 libavcodec/nvenc.c         if (avctx->rc_max_rate > 0 && ctx->encode_config.rcParams.maxBitRate != avctx->rc_max_rate) {
ctx              2028 libavcodec/nvenc.c         if (avctx->rc_buffer_size > 0 && ctx->encode_config.rcParams.vbvBufferSize != avctx->rc_buffer_size) {
ctx              2051 libavcodec/nvenc.c         ret = p_nvenc->nvEncReconfigureEncoder(ctx->nvencoder, &params);
ctx              2056 libavcodec/nvenc.c                 ctx->init_encode_params.darHeight = dh;
ctx              2057 libavcodec/nvenc.c                 ctx->init_encode_params.darWidth = dw;
ctx              2061 libavcodec/nvenc.c                 ctx->encode_config.rcParams.averageBitRate = params.reInitEncodeParams.encodeConfig->rcParams.averageBitRate;
ctx              2062 libavcodec/nvenc.c                 ctx->encode_config.rcParams.maxBitRate = params.reInitEncodeParams.encodeConfig->rcParams.maxBitRate;
ctx              2063 libavcodec/nvenc.c                 ctx->encode_config.rcParams.vbvBufferSize = params.reInitEncodeParams.encodeConfig->rcParams.vbvBufferSize;
ctx              2078 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx              2079 libavcodec/nvenc.c     NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
ctx              2085 libavcodec/nvenc.c     if ((!ctx->cu_context && !ctx->d3d11_device) || !ctx->nvencoder)
ctx              2088 libavcodec/nvenc.c     if (ctx->encoder_flushing) {
ctx              2092 libavcodec/nvenc.c         ctx->encoder_flushing = 0;
ctx              2093 libavcodec/nvenc.c         av_fifo_reset(ctx->timestamp_list);
ctx              2097 libavcodec/nvenc.c         in_surf = get_free_frame(ctx);
ctx              2132 libavcodec/nvenc.c         if (ctx->forced_idr >= 0 && frame->pict_type == AV_PICTURE_TYPE_I) {
ctx              2134 libavcodec/nvenc.c                 ctx->forced_idr ? NV_ENC_PIC_FLAG_FORCEIDR : NV_ENC_PIC_FLAG_FORCEINTRA;
ctx              2141 libavcodec/nvenc.c         if (ctx->a53_cc && av_frame_get_side_data(frame, AV_FRAME_DATA_A53_CC)) {
ctx              2143 libavcodec/nvenc.c                 av_log(ctx, AV_LOG_ERROR, "Not enough memory for closed captions, skipping\n");
ctx              2156 libavcodec/nvenc.c         ctx->encoder_flushing = 1;
ctx              2163 libavcodec/nvenc.c     nv_status = p_nvenc->nvEncEncodePicture(ctx->nvencoder, &pic_params);
ctx              2175 libavcodec/nvenc.c         av_fifo_generic_write(ctx->output_surface_queue, &in_surf, sizeof(in_surf), NULL);
ctx              2176 libavcodec/nvenc.c         timestamp_queue_enqueue(ctx->timestamp_list, frame->pts);
ctx              2181 libavcodec/nvenc.c         while (av_fifo_size(ctx->output_surface_queue) > 0) {
ctx              2182 libavcodec/nvenc.c             av_fifo_generic_read(ctx->output_surface_queue, &tmp_out_surf, sizeof(tmp_out_surf), NULL);
ctx              2183 libavcodec/nvenc.c             av_fifo_generic_write(ctx->output_surface_ready_queue, &tmp_out_surf, sizeof(tmp_out_surf), NULL);
ctx              2195 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx              2197 libavcodec/nvenc.c     if ((!ctx->cu_context && !ctx->d3d11_device) || !ctx->nvencoder)
ctx              2200 libavcodec/nvenc.c     if (output_ready(avctx, ctx->encoder_flushing)) {
ctx              2201 libavcodec/nvenc.c         av_fifo_generic_read(ctx->output_surface_ready_queue, &tmp_out_surf, sizeof(tmp_out_surf), NULL);
ctx              2216 libavcodec/nvenc.c         av_fifo_generic_write(ctx->unused_surface_queue, &tmp_out_surf, sizeof(tmp_out_surf), NULL);
ctx              2217 libavcodec/nvenc.c     } else if (ctx->encoder_flushing) {
ctx              2229 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx              2232 libavcodec/nvenc.c     if (!ctx->encoder_flushing) {
ctx                52 libavcodec/on2avc.c     void (*wtf)(struct On2AVCContext *ctx, float *out, float *in, int size);
ctx                35 libavcodec/opus_parser.c     OpusContext ctx;
ctx                83 libavcodec/opus_parser.c static int opus_find_frame_end(AVCodecParserContext *ctx, AVCodecContext *avctx,
ctx                86 libavcodec/opus_parser.c     OpusParseContext *s = ctx->priv_data;
ctx               128 libavcodec/opus_parser.c         ret = ff_opus_parse_extradata(avctx, &s->ctx);
ctx               133 libavcodec/opus_parser.c         av_freep(&s->ctx.channel_maps);
ctx               138 libavcodec/opus_parser.c         ret = ff_opus_parse_packet(&s->pkt, payload, payload_len, s->ctx.nb_streams > 1);
ctx               145 libavcodec/opus_parser.c         ctx->duration = s->pkt.frame_count * s->pkt.frame_duration;
ctx               165 libavcodec/opus_parser.c static int opus_parse(AVCodecParserContext *ctx, AVCodecContext *avctx,
ctx               169 libavcodec/opus_parser.c     OpusParseContext *s = ctx->priv_data;
ctx               173 libavcodec/opus_parser.c     next = opus_find_frame_end(ctx, avctx, buf, buf_size, &header_len);
ctx               568 libavcodec/opusdec.c static av_cold void opus_decode_flush(AVCodecContext *ctx)
ctx               570 libavcodec/opusdec.c     OpusContext *c = ctx->priv_data;
ctx                52 libavcodec/opusdsp.c av_cold void ff_opus_dsp_init(OpusDSP *ctx)
ctx                54 libavcodec/opusdsp.c     ctx->postfilter = postfilter_c;
ctx                55 libavcodec/opusdsp.c     ctx->deemphasis = deemphasis_c;
ctx                58 libavcodec/opusdsp.c         ff_opus_dsp_init_x86(ctx);
ctx                61 libavcodec/opusdsp.c         ff_opus_dsp_init_aarch64(ctx);
ctx                31 libavcodec/opusdsp.h void ff_opus_dsp_init(OpusDSP *ctx);
ctx                33 libavcodec/opusdsp.h void ff_opus_dsp_init_x86(OpusDSP *ctx);
ctx                34 libavcodec/opusdsp.h void ff_opus_dsp_init_aarch64(OpusDSP *ctx);
ctx                39 libavcodec/pcm_rechunk_bsf.c static int init(AVBSFContext *ctx)
ctx                41 libavcodec/pcm_rechunk_bsf.c     PCMContext *s = ctx->priv_data;
ctx                42 libavcodec/pcm_rechunk_bsf.c     AVRational sr = av_make_q(ctx->par_in->sample_rate, 1);
ctx                45 libavcodec/pcm_rechunk_bsf.c     if (ctx->par_in->channels <= 0 || ctx->par_in->sample_rate <= 0)
ctx                48 libavcodec/pcm_rechunk_bsf.c     ctx->time_base_out = av_inv_q(sr);
ctx                49 libavcodec/pcm_rechunk_bsf.c     s->sample_size = ctx->par_in->channels * av_get_bits_per_sample(ctx->par_in->codec_id) / 8;
ctx                67 libavcodec/pcm_rechunk_bsf.c static void uninit(AVBSFContext *ctx)
ctx                69 libavcodec/pcm_rechunk_bsf.c     PCMContext *s = ctx->priv_data;
ctx                74 libavcodec/pcm_rechunk_bsf.c static void flush(AVBSFContext *ctx)
ctx                76 libavcodec/pcm_rechunk_bsf.c     PCMContext *s = ctx->priv_data;
ctx                99 libavcodec/pcm_rechunk_bsf.c static int get_next_nb_samples(AVBSFContext *ctx)
ctx               101 libavcodec/pcm_rechunk_bsf.c     PCMContext *s = ctx->priv_data;
ctx               103 libavcodec/pcm_rechunk_bsf.c         AVRational sr = av_make_q(ctx->par_in->sample_rate, 1);
ctx               110 libavcodec/pcm_rechunk_bsf.c static int rechunk_filter(AVBSFContext *ctx, AVPacket *pkt)
ctx               112 libavcodec/pcm_rechunk_bsf.c     PCMContext *s = ctx->priv_data;
ctx               113 libavcodec/pcm_rechunk_bsf.c     int nb_samples = get_next_nb_samples(ctx);
ctx               155 libavcodec/pcm_rechunk_bsf.c         ret = ff_bsf_get_packet_ref(ctx, s->in_pkt);
ctx               167 libavcodec/pcm_rechunk_bsf.c             av_packet_rescale_ts(s->in_pkt, ctx->time_base_in, ctx->time_base_out);
ctx               103 libavcodec/pgssubdec.c     PGSSubContext *ctx = avctx->priv_data;
ctx               106 libavcodec/pgssubdec.c     for (i = 0; i < ctx->objects.count; i++) {
ctx               107 libavcodec/pgssubdec.c         av_freep(&ctx->objects.object[i].rle);
ctx               108 libavcodec/pgssubdec.c         ctx->objects.object[i].rle_buffer_size  = 0;
ctx               109 libavcodec/pgssubdec.c         ctx->objects.object[i].rle_remaining_len  = 0;
ctx               111 libavcodec/pgssubdec.c     ctx->objects.count = 0;
ctx               112 libavcodec/pgssubdec.c     ctx->palettes.count = 0;
ctx               234 libavcodec/pgssubdec.c     PGSSubContext *ctx = avctx->priv_data;
ctx               246 libavcodec/pgssubdec.c     object = find_object(id, &ctx->objects);
ctx               248 libavcodec/pgssubdec.c         if (ctx->objects.count >= MAX_EPOCH_OBJECTS) {
ctx               252 libavcodec/pgssubdec.c         object = &ctx->objects.object[ctx->objects.count++];
ctx               329 libavcodec/pgssubdec.c     PGSSubContext *ctx = avctx->priv_data;
ctx               340 libavcodec/pgssubdec.c     palette = find_palette(id, &ctx->palettes);
ctx               342 libavcodec/pgssubdec.c         if (ctx->palettes.count >= MAX_EPOCH_PALETTES) {
ctx               346 libavcodec/pgssubdec.c         palette = &ctx->palettes.palette[ctx->palettes.count++];
ctx               392 libavcodec/pgssubdec.c     PGSSubContext *ctx = avctx->priv_data;
ctx               400 libavcodec/pgssubdec.c     ctx->presentation.pts = pts;
ctx               412 libavcodec/pgssubdec.c     ctx->presentation.id_number = bytestream_get_be16(&buf);
ctx               431 libavcodec/pgssubdec.c     ctx->presentation.palette_id = bytestream_get_byte(&buf);
ctx               432 libavcodec/pgssubdec.c     ctx->presentation.object_count = bytestream_get_byte(&buf);
ctx               433 libavcodec/pgssubdec.c     if (ctx->presentation.object_count > MAX_OBJECT_REFS) {
ctx               436 libavcodec/pgssubdec.c                ctx->presentation.object_count);
ctx               437 libavcodec/pgssubdec.c         ctx->presentation.object_count = 2;
ctx               444 libavcodec/pgssubdec.c     for (i = 0; i < ctx->presentation.object_count; i++)
ctx               449 libavcodec/pgssubdec.c             ctx->presentation.object_count = i;
ctx               453 libavcodec/pgssubdec.c         ctx->presentation.objects[i].id = bytestream_get_be16(&buf);
ctx               454 libavcodec/pgssubdec.c         ctx->presentation.objects[i].window_id = bytestream_get_byte(&buf);
ctx               455 libavcodec/pgssubdec.c         ctx->presentation.objects[i].composition_flag = bytestream_get_byte(&buf);
ctx               457 libavcodec/pgssubdec.c         ctx->presentation.objects[i].x = bytestream_get_be16(&buf);
ctx               458 libavcodec/pgssubdec.c         ctx->presentation.objects[i].y = bytestream_get_be16(&buf);
ctx               461 libavcodec/pgssubdec.c         if (ctx->presentation.objects[i].composition_flag & 0x80) {
ctx               462 libavcodec/pgssubdec.c             ctx->presentation.objects[i].crop_x = bytestream_get_be16(&buf);
ctx               463 libavcodec/pgssubdec.c             ctx->presentation.objects[i].crop_y = bytestream_get_be16(&buf);
ctx               464 libavcodec/pgssubdec.c             ctx->presentation.objects[i].crop_w = bytestream_get_be16(&buf);
ctx               465 libavcodec/pgssubdec.c             ctx->presentation.objects[i].crop_h = bytestream_get_be16(&buf);
ctx               469 libavcodec/pgssubdec.c                 ctx->presentation.objects[i].x, ctx->presentation.objects[i].y);
ctx               471 libavcodec/pgssubdec.c         if (ctx->presentation.objects[i].x > avctx->width ||
ctx               472 libavcodec/pgssubdec.c             ctx->presentation.objects[i].y > avctx->height) {
ctx               474 libavcodec/pgssubdec.c                    ctx->presentation.objects[i].x,
ctx               475 libavcodec/pgssubdec.c                    ctx->presentation.objects[i].y,
ctx               477 libavcodec/pgssubdec.c             ctx->presentation.objects[i].x = 0;
ctx               478 libavcodec/pgssubdec.c             ctx->presentation.objects[i].y = 0;
ctx               502 libavcodec/pgssubdec.c     PGSSubContext *ctx = avctx->priv_data;
ctx               507 libavcodec/pgssubdec.c     pts = ctx->presentation.pts != AV_NOPTS_VALUE ? ctx->presentation.pts : sub->pts;
ctx               510 libavcodec/pgssubdec.c     ctx->presentation.pts = AV_NOPTS_VALUE;
ctx               519 libavcodec/pgssubdec.c     if (!ctx->presentation.object_count)
ctx               521 libavcodec/pgssubdec.c     sub->rects = av_mallocz_array(ctx->presentation.object_count, sizeof(*sub->rects));
ctx               525 libavcodec/pgssubdec.c     palette = find_palette(ctx->presentation.palette_id, &ctx->palettes);
ctx               529 libavcodec/pgssubdec.c                ctx->presentation.palette_id);
ctx               533 libavcodec/pgssubdec.c     for (i = 0; i < ctx->presentation.object_count; i++) {
ctx               545 libavcodec/pgssubdec.c         object = find_object(ctx->presentation.objects[i].id, &ctx->objects);
ctx               549 libavcodec/pgssubdec.c                    ctx->presentation.objects[i].id);
ctx               557 libavcodec/pgssubdec.c         if (ctx->presentation.objects[i].composition_flag & 0x40)
ctx               560 libavcodec/pgssubdec.c         sub->rects[i]->x    = ctx->presentation.objects[i].x;
ctx               561 libavcodec/pgssubdec.c         sub->rects[i]->y    = ctx->presentation.objects[i].y;
ctx               597 libavcodec/pgssubdec.c         if (!ctx->forced_subs_only || ctx->presentation.objects[i].composition_flag & 0x40)
ctx                73 libavcodec/pixlet.c     PixletContext *ctx = avctx->priv_data;
ctx                75 libavcodec/pixlet.c     av_freep(&ctx->filter[0]);
ctx                76 libavcodec/pixlet.c     av_freep(&ctx->filter[1]);
ctx                77 libavcodec/pixlet.c     av_freep(&ctx->prediction);
ctx                82 libavcodec/pixlet.c     PixletContext *ctx = avctx->priv_data;
ctx                84 libavcodec/pixlet.c     ctx->w = 0;
ctx                85 libavcodec/pixlet.c     ctx->h = 0;
ctx                91 libavcodec/pixlet.c     PixletContext *ctx = avctx->priv_data;
ctx                94 libavcodec/pixlet.c     ctx->filter[0]  = av_malloc_array(ctx->h, sizeof(int16_t));
ctx                95 libavcodec/pixlet.c     ctx->filter[1]  = av_malloc_array(FFMAX(ctx->h, ctx->w) + 16, sizeof(int16_t));
ctx                96 libavcodec/pixlet.c     ctx->prediction = av_malloc_array((ctx->w >> NB_LEVELS), sizeof(int16_t));
ctx                97 libavcodec/pixlet.c     if (!ctx->filter[0] || !ctx->filter[1] || !ctx->prediction)
ctx               102 libavcodec/pixlet.c         unsigned w     = ctx->w >> shift;
ctx               103 libavcodec/pixlet.c         unsigned h     = ctx->h >> shift;
ctx               105 libavcodec/pixlet.c         ctx->band[plane][0].width  =  w >> NB_LEVELS;
ctx               106 libavcodec/pixlet.c         ctx->band[plane][0].height =  h >> NB_LEVELS;
ctx               107 libavcodec/pixlet.c         ctx->band[plane][0].size   = (w >> NB_LEVELS) * (h >> NB_LEVELS);
ctx               110 libavcodec/pixlet.c             unsigned scale = ctx->levels - (i / 3);
ctx               112 libavcodec/pixlet.c             ctx->band[plane][i + 1].width  =  w >> scale;
ctx               113 libavcodec/pixlet.c             ctx->band[plane][i + 1].height =  h >> scale;
ctx               114 libavcodec/pixlet.c             ctx->band[plane][i + 1].size   = (w >> scale) * (h >> scale);
ctx               116 libavcodec/pixlet.c             ctx->band[plane][i + 1].x = (w >> scale) * (((i + 1) % 3) != 2);
ctx               117 libavcodec/pixlet.c             ctx->band[plane][i + 1].y = (h >> scale) * (((i + 1) % 3) != 1);
ctx               127 libavcodec/pixlet.c     PixletContext *ctx = avctx->priv_data;
ctx               128 libavcodec/pixlet.c     GetBitContext *bc = &ctx->bc;
ctx               203 libavcodec/pixlet.c     PixletContext *ctx = avctx->priv_data;
ctx               204 libavcodec/pixlet.c     GetBitContext *bc = &ctx->bc;
ctx               209 libavcodec/pixlet.c     ret = init_get_bits8(bc, src, bytestream2_get_bytes_left(&ctx->gb));
ctx               317 libavcodec/pixlet.c     PixletContext *ctx = avctx->priv_data;
ctx               321 libavcodec/pixlet.c     for (i = 0; i < ctx->levels * 3; i++) {
ctx               322 libavcodec/pixlet.c         int32_t a = bytestream2_get_be32(&ctx->gb);
ctx               323 libavcodec/pixlet.c         int32_t b = bytestream2_get_be32(&ctx->gb);
ctx               324 libavcodec/pixlet.c         int32_t c = bytestream2_get_be32(&ctx->gb);
ctx               325 libavcodec/pixlet.c         int32_t d = bytestream2_get_be32(&ctx->gb);
ctx               327 libavcodec/pixlet.c                         ctx->band[plane][i + 1].x +
ctx               328 libavcodec/pixlet.c                         ctx->band[plane][i + 1].y * stride;
ctx               329 libavcodec/pixlet.c         unsigned size = ctx->band[plane][i + 1].size;
ctx               330 libavcodec/pixlet.c         uint32_t magic = bytestream2_get_be32(&ctx->gb);
ctx               342 libavcodec/pixlet.c         ret = read_high_coeffs(avctx, ptr + bytestream2_tell(&ctx->gb), dest, size,
ctx               344 libavcodec/pixlet.c                                ctx->band[plane][i + 1].width, stride);
ctx               351 libavcodec/pixlet.c         bytestream2_skip(&ctx->gb, ret);
ctx               426 libavcodec/pixlet.c     PixletContext *ctx = avctx->priv_data;
ctx               433 libavcodec/pixlet.c     tmp           = ctx->filter[0];
ctx               443 libavcodec/pixlet.c             filterfn(ptr, ctx->filter[1], scaled_width, scale_v);
ctx               454 libavcodec/pixlet.c             filterfn(tmp, ctx->filter[1], scaled_height, scale_h);
ctx               514 libavcodec/pixlet.c     PixletContext *ctx = avctx->priv_data;
ctx               520 libavcodec/pixlet.c     for (i = ctx->levels - 1; i >= 0; i--) {
ctx               521 libavcodec/pixlet.c         int32_t h = sign_extend(bytestream2_get_be32(&ctx->gb), 32);
ctx               522 libavcodec/pixlet.c         int32_t v = sign_extend(bytestream2_get_be32(&ctx->gb), 32);
ctx               527 libavcodec/pixlet.c         ctx->scaling[plane][H][i] = (1000000ULL << 32) / h;
ctx               528 libavcodec/pixlet.c         ctx->scaling[plane][V][i] = (1000000ULL << 32) / v;
ctx               531 libavcodec/pixlet.c     bytestream2_skip(&ctx->gb, 4);
ctx               534 libavcodec/pixlet.c     dst[0] = sign_extend(bytestream2_get_be16(&ctx->gb), 16);
ctx               536 libavcodec/pixlet.c     ret = init_get_bits8(&ctx->bc, avpkt->data + bytestream2_tell(&ctx->gb),
ctx               537 libavcodec/pixlet.c                          bytestream2_get_bytes_left(&ctx->gb));
ctx               541 libavcodec/pixlet.c     ret = read_low_coeffs(avctx, dst + 1, ctx->band[plane][0].width - 1,
ctx               542 libavcodec/pixlet.c                           ctx->band[plane][0].width - 1, 0);
ctx               550 libavcodec/pixlet.c                           ctx->band[plane][0].height - 1, 1, stride);
ctx               559 libavcodec/pixlet.c                           (ctx->band[plane][0].width - 1) * (ctx->band[plane][0].height - 1),
ctx               560 libavcodec/pixlet.c                           ctx->band[plane][0].width - 1, stride);
ctx               567 libavcodec/pixlet.c     bytestream2_skip(&ctx->gb, ret);
ctx               568 libavcodec/pixlet.c     if (bytestream2_get_bytes_left(&ctx->gb) <= 0) {
ctx               577 libavcodec/pixlet.c     lowpass_prediction(dst, ctx->prediction, ctx->band[plane][0].width,
ctx               578 libavcodec/pixlet.c                        ctx->band[plane][0].height, stride);
ctx               580 libavcodec/pixlet.c     reconstruction(avctx, (int16_t *)frame->data[plane], ctx->w >> shift,
ctx               581 libavcodec/pixlet.c                    ctx->h >> shift, stride, ctx->scaling[plane][H],
ctx               582 libavcodec/pixlet.c                    ctx->scaling[plane][V]);
ctx               590 libavcodec/pixlet.c     PixletContext *ctx = avctx->priv_data;
ctx               596 libavcodec/pixlet.c     bytestream2_init(&ctx->gb, avpkt->data, avpkt->size);
ctx               598 libavcodec/pixlet.c     pktsize = bytestream2_get_be32(&ctx->gb);
ctx               599 libavcodec/pixlet.c     if (pktsize <= 44 || pktsize - 4 > bytestream2_get_bytes_left(&ctx->gb)) {
ctx               604 libavcodec/pixlet.c     version = bytestream2_get_le32(&ctx->gb);
ctx               608 libavcodec/pixlet.c     bytestream2_skip(&ctx->gb, 4);
ctx               609 libavcodec/pixlet.c     if (bytestream2_get_be32(&ctx->gb) != 1)
ctx               611 libavcodec/pixlet.c     bytestream2_skip(&ctx->gb, 4);
ctx               613 libavcodec/pixlet.c     width  = bytestream2_get_be32(&ctx->gb);
ctx               614 libavcodec/pixlet.c     height = bytestream2_get_be32(&ctx->gb);
ctx               623 libavcodec/pixlet.c     ctx->levels = bytestream2_get_be32(&ctx->gb);
ctx               624 libavcodec/pixlet.c     if (ctx->levels != NB_LEVELS)
ctx               626 libavcodec/pixlet.c     ctx->depth = bytestream2_get_be32(&ctx->gb);
ctx               627 libavcodec/pixlet.c     if (ctx->depth < 8 || ctx->depth > 15) {
ctx               628 libavcodec/pixlet.c         avpriv_request_sample(avctx, "Depth %d", ctx->depth);
ctx               638 libavcodec/pixlet.c     if (ctx->w != w || ctx->h != h) {
ctx               640 libavcodec/pixlet.c         ctx->w = w;
ctx               641 libavcodec/pixlet.c         ctx->h = h;
ctx               646 libavcodec/pixlet.c             ctx->w = 0;
ctx               647 libavcodec/pixlet.c             ctx->h = 0;
ctx               652 libavcodec/pixlet.c     bytestream2_skip(&ctx->gb, 8);
ctx               670 libavcodec/pixlet.c     postprocess_luma(frame.f, ctx->w, ctx->h, ctx->depth);
ctx               671 libavcodec/pixlet.c     postprocess_chroma(frame.f, ctx->w >> 1, ctx->h >> 1, ctx->depth);
ctx                33 libavcodec/ppc/videodsp.c av_cold void ff_videodsp_init_ppc(VideoDSPContext *ctx, int bpc)
ctx                35 libavcodec/ppc/videodsp.c     ctx->prefetch = prefetch_ppc;
ctx                45 libavcodec/prores_metadata_bsf.c     ProresMetadataContext *ctx = bsf->priv_data;
ctx                81 libavcodec/prores_metadata_bsf.c     if (ctx->color_primaries != -1)
ctx                82 libavcodec/prores_metadata_bsf.c         buf[8+14] = ctx->color_primaries;
ctx                83 libavcodec/prores_metadata_bsf.c     if (ctx->transfer_characteristics != -1)
ctx                84 libavcodec/prores_metadata_bsf.c         buf[8+15] = ctx->transfer_characteristics;
ctx                85 libavcodec/prores_metadata_bsf.c     if (ctx->matrix_coefficients != -1)
ctx                86 libavcodec/prores_metadata_bsf.c         buf[8+16] = ctx->matrix_coefficients;
ctx               100 libavcodec/prores_metadata_bsf.c     ProresMetadataContext *ctx = bsf->priv_data;
ctx               102 libavcodec/prores_metadata_bsf.c     switch (ctx->color_primaries) {
ctx               113 libavcodec/prores_metadata_bsf.c         av_log(bsf, AV_LOG_ERROR, "Color primaries %d is not a valid value\n", ctx->color_primaries);
ctx               117 libavcodec/prores_metadata_bsf.c     switch (ctx->matrix_coefficients) {
ctx               125 libavcodec/prores_metadata_bsf.c         av_log(bsf, AV_LOG_ERROR, "Colorspace %d is not a valid value\n", ctx->matrix_coefficients);
ctx               138 libavcodec/proresdec2.c     ProresContext *ctx = avctx->priv_data;
ctx               175 libavcodec/proresdec2.c     ff_blockdsp_init(&ctx->bdsp, avctx);
ctx               176 libavcodec/proresdec2.c     ret = ff_proresdsp_init(&ctx->prodsp, avctx);
ctx               183 libavcodec/proresdec2.c                                   ctx->prodsp.idct_permutation_type);
ctx               185 libavcodec/proresdec2.c     permute(ctx->progressive_scan, ff_prores_progressive_scan, idct_permutation);
ctx               186 libavcodec/proresdec2.c     permute(ctx->interlaced_scan, ff_prores_interlaced_scan, idct_permutation);
ctx               189 libavcodec/proresdec2.c         ctx->unpack_alpha = unpack_alpha_10;
ctx               191 libavcodec/proresdec2.c         ctx->unpack_alpha = unpack_alpha_12;
ctx               199 libavcodec/proresdec2.c static int decode_frame_header(ProresContext *ctx, const uint8_t *buf,
ctx               232 libavcodec/proresdec2.c     ctx->frame_type = (buf[12] >> 2) & 3;
ctx               233 libavcodec/proresdec2.c     ctx->alpha_info = buf[17] & 0xf;
ctx               235 libavcodec/proresdec2.c     if (ctx->alpha_info > 2) {
ctx               236 libavcodec/proresdec2.c         av_log(avctx, AV_LOG_ERROR, "Invalid alpha mode %d\n", ctx->alpha_info);
ctx               239 libavcodec/proresdec2.c     if (avctx->skip_alpha) ctx->alpha_info = 0;
ctx               241 libavcodec/proresdec2.c     ff_dlog(avctx, "frame type %d\n", ctx->frame_type);
ctx               243 libavcodec/proresdec2.c     if (ctx->frame_type == 0) {
ctx               244 libavcodec/proresdec2.c         ctx->scan = ctx->progressive_scan; // permuted
ctx               246 libavcodec/proresdec2.c         ctx->scan = ctx->interlaced_scan; // permuted
ctx               247 libavcodec/proresdec2.c         ctx->frame->interlaced_frame = 1;
ctx               248 libavcodec/proresdec2.c         ctx->frame->top_field_first = ctx->frame_type == 1;
ctx               251 libavcodec/proresdec2.c     if (ctx->alpha_info) {
ctx               279 libavcodec/proresdec2.c         permute(ctx->qmat_luma, ctx->prodsp.idct_permutation, ptr);
ctx               282 libavcodec/proresdec2.c         memset(ctx->qmat_luma, 4, 64);
ctx               290 libavcodec/proresdec2.c         permute(ctx->qmat_chroma, ctx->prodsp.idct_permutation, ptr);
ctx               292 libavcodec/proresdec2.c         memset(ctx->qmat_chroma, 4, 64);
ctx               300 libavcodec/proresdec2.c     ProresContext *ctx = avctx->priv_data;
ctx               327 libavcodec/proresdec2.c     ctx->mb_width  = (avctx->width  + 15) >> 4;
ctx               328 libavcodec/proresdec2.c     if (ctx->frame_type)
ctx               329 libavcodec/proresdec2.c         ctx->mb_height = (avctx->height + 31) >> 5;
ctx               331 libavcodec/proresdec2.c         ctx->mb_height = (avctx->height + 15) >> 4;
ctx               335 libavcodec/proresdec2.c     slice_count = ctx->mb_height * ((ctx->mb_width >> log2_slice_mb_width) +
ctx               336 libavcodec/proresdec2.c                                     av_popcount(ctx->mb_width & (1 << log2_slice_mb_width) - 1));
ctx               338 libavcodec/proresdec2.c     if (ctx->slice_count != slice_count || !ctx->slices) {
ctx               339 libavcodec/proresdec2.c         av_freep(&ctx->slices);
ctx               340 libavcodec/proresdec2.c         ctx->slice_count = 0;
ctx               341 libavcodec/proresdec2.c         ctx->slices = av_mallocz_array(slice_count, sizeof(*ctx->slices));
ctx               342 libavcodec/proresdec2.c         if (!ctx->slices)
ctx               344 libavcodec/proresdec2.c         ctx->slice_count = slice_count;
ctx               364 libavcodec/proresdec2.c         SliceContext *slice = &ctx->slices[i];
ctx               369 libavcodec/proresdec2.c         while (ctx->mb_width - mb_x < slice_mb_count)
ctx               383 libavcodec/proresdec2.c         if (mb_x == ctx->mb_width) {
ctx               394 libavcodec/proresdec2.c     if (mb_x || mb_y != ctx->mb_height) {
ctx               396 libavcodec/proresdec2.c                mb_y, ctx->mb_height);
ctx               475 libavcodec/proresdec2.c     ProresContext *ctx = avctx->priv_data;
ctx               508 libavcodec/proresdec2.c         out[((pos & block_mask) << 6) + ctx->scan[i]] = ((level ^ sign) - sign);
ctx               520 libavcodec/proresdec2.c     ProresContext *ctx = avctx->priv_data;
ctx               528 libavcodec/proresdec2.c         ctx->bdsp.clear_block(blocks+(i<<6));
ctx               539 libavcodec/proresdec2.c         ctx->prodsp.idct_put(dst, dst_stride, block+(0<<6), qmat);
ctx               540 libavcodec/proresdec2.c         ctx->prodsp.idct_put(dst             +8, dst_stride, block+(1<<6), qmat);
ctx               541 libavcodec/proresdec2.c         ctx->prodsp.idct_put(dst+4*dst_stride  , dst_stride, block+(2<<6), qmat);
ctx               542 libavcodec/proresdec2.c         ctx->prodsp.idct_put(dst+4*dst_stride+8, dst_stride, block+(3<<6), qmat);
ctx               554 libavcodec/proresdec2.c     ProresContext *ctx = avctx->priv_data;
ctx               562 libavcodec/proresdec2.c         ctx->bdsp.clear_block(blocks+(i<<6));
ctx               574 libavcodec/proresdec2.c             ctx->prodsp.idct_put(dst,              dst_stride, block+(0<<6), qmat);
ctx               575 libavcodec/proresdec2.c             ctx->prodsp.idct_put(dst+4*dst_stride, dst_stride, block+(1<<6), qmat);
ctx               586 libavcodec/proresdec2.c static void decode_slice_alpha(ProresContext *ctx,
ctx               597 libavcodec/proresdec2.c         ctx->bdsp.clear_block(blocks+(i<<6));
ctx               601 libavcodec/proresdec2.c     if (ctx->alpha_info == 2) {
ctx               602 libavcodec/proresdec2.c         ctx->unpack_alpha(&gb, blocks, blocks_per_slice * 4 * 64, 16);
ctx               604 libavcodec/proresdec2.c         ctx->unpack_alpha(&gb, blocks, blocks_per_slice * 4 * 64, 8);
ctx               618 libavcodec/proresdec2.c     ProresContext *ctx = avctx->priv_data;
ctx               619 libavcodec/proresdec2.c     SliceContext *slice = &ctx->slices[jobnr];
ctx               621 libavcodec/proresdec2.c     AVFrame *pic = ctx->frame;
ctx               656 libavcodec/proresdec2.c         qmat_luma_scaled  [i] = ctx->qmat_luma  [i] * qscale;
ctx               657 libavcodec/proresdec2.c         qmat_chroma_scaled[i] = ctx->qmat_chroma[i] * qscale;
ctx               660 libavcodec/proresdec2.c     if (ctx->frame_type == 0) {
ctx               682 libavcodec/proresdec2.c     if (ctx->frame_type && ctx->first_field ^ ctx->frame->top_field_first) {
ctx               723 libavcodec/proresdec2.c     if (ctx->alpha_info && pic->data[3] && a_data_size)
ctx               724 libavcodec/proresdec2.c         decode_slice_alpha(ctx, (uint16_t*)dest_a, luma_stride,
ctx               734 libavcodec/proresdec2.c     ProresContext *ctx = avctx->priv_data;
ctx               738 libavcodec/proresdec2.c     avctx->execute2(avctx, decode_slice_thread, NULL, NULL, ctx->slice_count);
ctx               740 libavcodec/proresdec2.c     for (i = 0; i < ctx->slice_count; i++)
ctx               741 libavcodec/proresdec2.c         error += ctx->slices[i].ret < 0;
ctx               744 libavcodec/proresdec2.c         ctx->frame->decode_error_flags = FF_DECODE_ERROR_INVALID_BITSTREAM;
ctx               745 libavcodec/proresdec2.c     if (error < ctx->slice_count)
ctx               748 libavcodec/proresdec2.c     return ctx->slices[0].ret;
ctx               754 libavcodec/proresdec2.c     ProresContext *ctx = avctx->priv_data;
ctx               766 libavcodec/proresdec2.c     ctx->frame = frame;
ctx               767 libavcodec/proresdec2.c     ctx->frame->pict_type = AV_PICTURE_TYPE_I;
ctx               768 libavcodec/proresdec2.c     ctx->frame->key_frame = 1;
ctx               769 libavcodec/proresdec2.c     ctx->first_field = 1;
ctx               774 libavcodec/proresdec2.c     frame_hdr_size = decode_frame_header(ctx, buf, buf_size, avctx);
ctx               788 libavcodec/proresdec2.c     if (ctx->first_field)
ctx               800 libavcodec/proresdec2.c     if (ctx->frame_type && buf_size > 0 && ctx->first_field) {
ctx               801 libavcodec/proresdec2.c         ctx->first_field = 0;
ctx               812 libavcodec/proresdec2.c     ProresContext *ctx = avctx->priv_data;
ctx               814 libavcodec/proresdec2.c     av_freep(&ctx->slices);
ctx               381 libavcodec/proresenc_anatoliy.c     ProresContext* ctx = avctx->priv_data;
ctx               384 libavcodec/proresenc_anatoliy.c                                       buf, data_size, ctx->qmat_luma[qp - 1], 0, ctx->scantable);
ctx               388 libavcodec/proresenc_anatoliy.c                                           ctx->qmat_chroma[qp - 1], ctx->is_422, ctx->scantable);
ctx               392 libavcodec/proresenc_anatoliy.c                                           ctx->qmat_chroma[qp - 1], ctx->is_422, ctx->scantable);
ctx               540 libavcodec/proresenc_anatoliy.c     ProresContext* ctx = avctx->priv_data;
ctx               541 libavcodec/proresenc_anatoliy.c     int hdr_size = 6 + (ctx->need_alpha * 2); /* v data size is write when there is alpha */
ctx               545 libavcodec/proresenc_anatoliy.c     FDCTDSPContext *fdsp = &ctx->fdsp;
ctx               557 libavcodec/proresenc_anatoliy.c     if (ctx->need_alpha)
ctx               562 libavcodec/proresenc_anatoliy.c         dest_u = pic->data[1] + (mb_y << 4) * chroma_stride + (mb_x << (5 - ctx->is_422));
ctx               563 libavcodec/proresenc_anatoliy.c         dest_v = pic->data[2] + (mb_y << 4) * chroma_stride + (mb_x << (5 - ctx->is_422));
ctx               566 libavcodec/proresenc_anatoliy.c         dest_u = pic->data[1] + (mb_y << 4) * chroma_stride * 2 + (mb_x << (5 - ctx->is_422));
ctx               567 libavcodec/proresenc_anatoliy.c         dest_v = pic->data[2] + (mb_y << 4) * chroma_stride * 2 + (mb_x << (5 - ctx->is_422));
ctx               578 libavcodec/proresenc_anatoliy.c                 (uint16_t *) ctx->fill_y, mb_count << 4, 16, is_interlaced, is_top_field);
ctx               579 libavcodec/proresenc_anatoliy.c         subimage_with_fill((uint16_t *) pic->data[1], mb_x << (4 - ctx->is_422), mb_y << 4,
ctx               580 libavcodec/proresenc_anatoliy.c                            chroma_stride, avctx->width >> ctx->is_422, avctx->height,
ctx               581 libavcodec/proresenc_anatoliy.c                            (uint16_t *) ctx->fill_u, mb_count << (4 - ctx->is_422), 16, is_interlaced, is_top_field);
ctx               582 libavcodec/proresenc_anatoliy.c         subimage_with_fill((uint16_t *) pic->data[2], mb_x << (4 - ctx->is_422), mb_y << 4,
ctx               583 libavcodec/proresenc_anatoliy.c                            chroma_stride, avctx->width >> ctx->is_422, avctx->height,
ctx               584 libavcodec/proresenc_anatoliy.c                            (uint16_t *) ctx->fill_v, mb_count << (4 - ctx->is_422), 16, is_interlaced, is_top_field);
ctx               587 libavcodec/proresenc_anatoliy.c         calc_plane_dct(fdsp, ctx->fill_y, blocks_y, mb_count <<  5,                mb_count, 0, 0);
ctx               588 libavcodec/proresenc_anatoliy.c         calc_plane_dct(fdsp, ctx->fill_u, blocks_u, mb_count << (5 - ctx->is_422), mb_count, 1, ctx->is_422);
ctx               589 libavcodec/proresenc_anatoliy.c         calc_plane_dct(fdsp, ctx->fill_v, blocks_v, mb_count << (5 - ctx->is_422), mb_count, 1, ctx->is_422);
ctx               598 libavcodec/proresenc_anatoliy.c             calc_plane_dct(fdsp, dest_u, blocks_u, chroma_stride, mb_count, 1, ctx->is_422);
ctx               599 libavcodec/proresenc_anatoliy.c             calc_plane_dct(fdsp, dest_v, blocks_v, chroma_stride, mb_count, 1, ctx->is_422);
ctx               602 libavcodec/proresenc_anatoliy.c             calc_plane_dct(fdsp, dest_u, blocks_u, chroma_stride * 2, mb_count, 1, ctx->is_422);
ctx               603 libavcodec/proresenc_anatoliy.c             calc_plane_dct(fdsp, dest_v, blocks_v, chroma_stride * 2, mb_count, 1, ctx->is_422);
ctx               636 libavcodec/proresenc_anatoliy.c     if (ctx->need_alpha) {
ctx               641 libavcodec/proresenc_anatoliy.c                            (uint16_t *) ctx->fill_a, mb_count << 4, 16, is_interlaced, is_top_field);
ctx               642 libavcodec/proresenc_anatoliy.c         ret = encode_alpha_slice_data(avctx, ctx->fill_a, mb_count,
ctx               656 libavcodec/proresenc_anatoliy.c     ProresContext *ctx = avctx->priv_data;
ctx               664 libavcodec/proresenc_anatoliy.c     if (!ctx->is_interlaced) { /* progressive encoding */
ctx               697 libavcodec/proresenc_anatoliy.c                     sl_data, sl_data_size, unsafe_bot || unsafe_right, &qp, ctx->is_interlaced, is_top_field);
ctx               720 libavcodec/proresenc_anatoliy.c     ProresContext *ctx = avctx->priv_data;
ctx               739 libavcodec/proresenc_anatoliy.c     bytestream_put_buffer(&buf, ctx->vendor, 4);
ctx               745 libavcodec/proresenc_anatoliy.c     if (ctx->is_interlaced) {
ctx               785 libavcodec/proresenc_anatoliy.c     if (ctx->is_interlaced) { /* encode second field */
ctx               812 libavcodec/proresenc_anatoliy.c     ProresContext* ctx = avctx->priv_data;
ctx               815 libavcodec/proresenc_anatoliy.c     ctx->need_alpha = 0;
ctx               816 libavcodec/proresenc_anatoliy.c     ctx->is_interlaced = !!(avctx->flags & AV_CODEC_FLAG_INTERLACED_DCT);
ctx               817 libavcodec/proresenc_anatoliy.c     if (ctx->is_interlaced) {
ctx               818 libavcodec/proresenc_anatoliy.c         ctx->scantable = ff_prores_interlaced_scan;
ctx               820 libavcodec/proresenc_anatoliy.c         ctx->scantable = ff_prores_progressive_scan;
ctx               835 libavcodec/proresenc_anatoliy.c     if (strlen(ctx->vendor) != 4) {
ctx               877 libavcodec/proresenc_anatoliy.c         ctx->is_422 = 1;
ctx               879 libavcodec/proresenc_anatoliy.c             ctx->fill_y = av_malloc(4 * (DEFAULT_SLICE_MB_WIDTH << 8));
ctx               880 libavcodec/proresenc_anatoliy.c             if (!ctx->fill_y)
ctx               882 libavcodec/proresenc_anatoliy.c             ctx->fill_u = ctx->fill_y + (DEFAULT_SLICE_MB_WIDTH << 9);
ctx               883 libavcodec/proresenc_anatoliy.c             ctx->fill_v = ctx->fill_u + (DEFAULT_SLICE_MB_WIDTH << 8);
ctx               886 libavcodec/proresenc_anatoliy.c         ctx->is_422 = 0;
ctx               888 libavcodec/proresenc_anatoliy.c             ctx->fill_y = av_malloc(3 * (DEFAULT_SLICE_MB_WIDTH << 9));
ctx               889 libavcodec/proresenc_anatoliy.c             if (!ctx->fill_y)
ctx               891 libavcodec/proresenc_anatoliy.c             ctx->fill_u = ctx->fill_y + (DEFAULT_SLICE_MB_WIDTH << 9);
ctx               892 libavcodec/proresenc_anatoliy.c             ctx->fill_v = ctx->fill_u + (DEFAULT_SLICE_MB_WIDTH << 9);
ctx               895 libavcodec/proresenc_anatoliy.c             ctx->need_alpha = 1;
ctx               896 libavcodec/proresenc_anatoliy.c             ctx->fill_a = av_malloc(DEFAULT_SLICE_MB_WIDTH << 9); /* 8 blocks x 16px x 16px x sizeof (uint16) */
ctx               897 libavcodec/proresenc_anatoliy.c             if (!ctx->fill_a)
ctx               902 libavcodec/proresenc_anatoliy.c     ff_fdctdsp_init(&ctx->fdsp, avctx);
ctx               907 libavcodec/proresenc_anatoliy.c         scale_mat(QMAT_LUMA[avctx->profile]  , ctx->qmat_luma[i - 1]  , i);
ctx               908 libavcodec/proresenc_anatoliy.c         scale_mat(QMAT_CHROMA[avctx->profile], ctx->qmat_chroma[i - 1], i);
ctx               916 libavcodec/proresenc_anatoliy.c     ProresContext* ctx = avctx->priv_data;
ctx               917 libavcodec/proresenc_anatoliy.c     av_freep(&ctx->fill_y);
ctx               918 libavcodec/proresenc_anatoliy.c     av_freep(&ctx->fill_a);
ctx               272 libavcodec/proresenc_kostya.c static void get_slice_data(ProresContext *ctx, const uint16_t *src,
ctx               314 libavcodec/proresenc_kostya.c             ctx->fdct(&ctx->fdsp, esrc, elinesize, blocks);
ctx               317 libavcodec/proresenc_kostya.c                 ctx->fdct(&ctx->fdsp, esrc + 8, elinesize, blocks);
ctx               320 libavcodec/proresenc_kostya.c             ctx->fdct(&ctx->fdsp, esrc + elinesize * 4, elinesize, blocks);
ctx               323 libavcodec/proresenc_kostya.c                 ctx->fdct(&ctx->fdsp, esrc + elinesize * 4 + 8, elinesize, blocks);
ctx               327 libavcodec/proresenc_kostya.c             ctx->fdct(&ctx->fdsp, esrc, elinesize, blocks);
ctx               329 libavcodec/proresenc_kostya.c             ctx->fdct(&ctx->fdsp, esrc + elinesize * 4, elinesize, blocks);
ctx               332 libavcodec/proresenc_kostya.c                 ctx->fdct(&ctx->fdsp, esrc + 8, elinesize, blocks);
ctx               334 libavcodec/proresenc_kostya.c                 ctx->fdct(&ctx->fdsp, esrc + elinesize * 4 + 8, elinesize, blocks);
ctx               343 libavcodec/proresenc_kostya.c static void get_alpha_data(ProresContext *ctx, const uint16_t *src,
ctx               466 libavcodec/proresenc_kostya.c static int encode_slice_plane(ProresContext *ctx, PutBitContext *pb,
ctx               479 libavcodec/proresenc_kostya.c                ctx->scantable, qmat);
ctx               518 libavcodec/proresenc_kostya.c static int encode_alpha_plane(ProresContext *ctx, PutBitContext *pb,
ctx               522 libavcodec/proresenc_kostya.c     const int abits = ctx->alpha_bits;
ctx               555 libavcodec/proresenc_kostya.c     ProresContext *ctx = avctx->priv_data;
ctx               566 libavcodec/proresenc_kostya.c     if (ctx->pictures_per_frame == 1)
ctx               569 libavcodec/proresenc_kostya.c         line_add = ctx->cur_picture_idx ^ !pic->top_field_first;
ctx               571 libavcodec/proresenc_kostya.c     if (ctx->force_quant) {
ctx               572 libavcodec/proresenc_kostya.c         qmat = ctx->quants[0];
ctx               573 libavcodec/proresenc_kostya.c         qmat_chroma = ctx->quants_chroma[0];
ctx               575 libavcodec/proresenc_kostya.c         qmat = ctx->quants[quant];
ctx               576 libavcodec/proresenc_kostya.c         qmat_chroma = ctx->quants_chroma[quant];
ctx               578 libavcodec/proresenc_kostya.c         qmat = ctx->custom_q;
ctx               579 libavcodec/proresenc_kostya.c         qmat_chroma = ctx->custom_chroma_q;
ctx               581 libavcodec/proresenc_kostya.c             qmat[i] = ctx->quant_mat[i] * quant;
ctx               582 libavcodec/proresenc_kostya.c             qmat_chroma[i] = ctx->quant_chroma_mat[i] * quant;
ctx               586 libavcodec/proresenc_kostya.c     for (i = 0; i < ctx->num_planes; i++) {
ctx               590 libavcodec/proresenc_kostya.c             plane_factor += ctx->chroma_factor - 3;
ctx               591 libavcodec/proresenc_kostya.c         if (!is_chroma || ctx->chroma_factor == CFACTOR_Y444) {
ctx               603 libavcodec/proresenc_kostya.c         linesize = pic->linesize[i] * ctx->pictures_per_frame;
ctx               608 libavcodec/proresenc_kostya.c             get_slice_data(ctx, src, linesize, xp, yp,
ctx               609 libavcodec/proresenc_kostya.c                            pwidth, avctx->height / ctx->pictures_per_frame,
ctx               610 libavcodec/proresenc_kostya.c                            ctx->blocks[0], ctx->emu_buf,
ctx               613 libavcodec/proresenc_kostya.c                 sizes[i] = encode_slice_plane(ctx, pb, src, linesize,
ctx               614 libavcodec/proresenc_kostya.c                                               mbs_per_slice, ctx->blocks[0],
ctx               618 libavcodec/proresenc_kostya.c                 sizes[i] = encode_slice_plane(ctx, pb, src, linesize,
ctx               619 libavcodec/proresenc_kostya.c                                               mbs_per_slice, ctx->blocks[0],
ctx               624 libavcodec/proresenc_kostya.c             get_alpha_data(ctx, src, linesize, xp, yp,
ctx               625 libavcodec/proresenc_kostya.c                            pwidth, avctx->height / ctx->pictures_per_frame,
ctx               626 libavcodec/proresenc_kostya.c                            ctx->blocks[0], mbs_per_slice, ctx->alpha_bits);
ctx               627 libavcodec/proresenc_kostya.c             sizes[i] = encode_alpha_plane(ctx, pb, mbs_per_slice,
ctx               628 libavcodec/proresenc_kostya.c                                           ctx->blocks[0], quant);
ctx               729 libavcodec/proresenc_kostya.c static int estimate_slice_plane(ProresContext *ctx, int *error, int plane,
ctx               742 libavcodec/proresenc_kostya.c                          plane_size_factor, ctx->scantable, qmat);
ctx               762 libavcodec/proresenc_kostya.c static int estimate_alpha_plane(ProresContext *ctx,
ctx               766 libavcodec/proresenc_kostya.c     const int abits = ctx->alpha_bits;
ctx               808 libavcodec/proresenc_kostya.c     ProresContext *ctx = avctx->priv_data;
ctx               814 libavcodec/proresenc_kostya.c     const int min_quant = ctx->profile_info->min_quant;
ctx               815 libavcodec/proresenc_kostya.c     const int max_quant = ctx->profile_info->max_quant;
ctx               825 libavcodec/proresenc_kostya.c     if (ctx->pictures_per_frame == 1)
ctx               828 libavcodec/proresenc_kostya.c         line_add = ctx->cur_picture_idx ^ !ctx->pic->top_field_first;
ctx               831 libavcodec/proresenc_kostya.c     for (i = 0; i < ctx->num_planes; i++) {
ctx               835 libavcodec/proresenc_kostya.c             plane_factor[i] += ctx->chroma_factor - 3;
ctx               836 libavcodec/proresenc_kostya.c         if (!is_chroma[i] || ctx->chroma_factor == CFACTOR_Y444) {
ctx               848 libavcodec/proresenc_kostya.c         linesize[i] = ctx->pic->linesize[i] * ctx->pictures_per_frame;
ctx               849 libavcodec/proresenc_kostya.c         src = (const uint16_t *)(ctx->pic->data[i] + yp * linesize[i] +
ctx               850 libavcodec/proresenc_kostya.c                                  line_add * ctx->pic->linesize[i]) + xp;
ctx               853 libavcodec/proresenc_kostya.c             get_slice_data(ctx, src, linesize[i], xp, yp,
ctx               854 libavcodec/proresenc_kostya.c                            pwidth, avctx->height / ctx->pictures_per_frame,
ctx               858 libavcodec/proresenc_kostya.c             get_alpha_data(ctx, src, linesize[i], xp, yp,
ctx               859 libavcodec/proresenc_kostya.c                            pwidth, avctx->height / ctx->pictures_per_frame,
ctx               860 libavcodec/proresenc_kostya.c                            td->blocks[i], mbs_per_slice, ctx->alpha_bits);
ctx               869 libavcodec/proresenc_kostya.c     if (ctx->alpha_bits)
ctx               870 libavcodec/proresenc_kostya.c         alpha_bits = estimate_alpha_plane(ctx, src, linesize[3],
ctx               876 libavcodec/proresenc_kostya.c         bits += estimate_slice_plane(ctx, &error, 0,
ctx               880 libavcodec/proresenc_kostya.c                                      ctx->quants[q], td); /* estimate luma plane */
ctx               881 libavcodec/proresenc_kostya.c         for (i = 1; i < ctx->num_planes - !!ctx->alpha_bits; i++) { /* estimate chroma plane */
ctx               882 libavcodec/proresenc_kostya.c             bits += estimate_slice_plane(ctx, &error, i,
ctx               886 libavcodec/proresenc_kostya.c                                          ctx->quants_chroma[q], td);
ctx               894 libavcodec/proresenc_kostya.c     if (slice_bits[max_quant] <= ctx->bits_per_mb * mbs_per_slice) {
ctx               903 libavcodec/proresenc_kostya.c                 qmat = ctx->quants[q];
ctx               904 libavcodec/proresenc_kostya.c                 qmat_chroma = ctx->quants_chroma[q];
ctx               909 libavcodec/proresenc_kostya.c                     qmat[i] = ctx->quant_mat[i] * q;
ctx               910 libavcodec/proresenc_kostya.c                     qmat_chroma[i] = ctx->quant_chroma_mat[i] * q;
ctx               913 libavcodec/proresenc_kostya.c             bits += estimate_slice_plane(ctx, &error, 0,
ctx               918 libavcodec/proresenc_kostya.c             for (i = 1; i < ctx->num_planes - !!ctx->alpha_bits; i++) { /* estimate chroma plane */
ctx               919 libavcodec/proresenc_kostya.c                 bits += estimate_slice_plane(ctx, &error, i,
ctx               925 libavcodec/proresenc_kostya.c             if (bits <= ctx->bits_per_mb * mbs_per_slice)
ctx               935 libavcodec/proresenc_kostya.c     bits_limit = mbs * ctx->bits_per_mb;
ctx               976 libavcodec/proresenc_kostya.c     ProresContext *ctx = avctx->priv_data;
ctx               977 libavcodec/proresenc_kostya.c     ProresThreadData *td = ctx->tdata + threadnr;
ctx               978 libavcodec/proresenc_kostya.c     int mbs_per_slice = ctx->mbs_per_slice;
ctx               981 libavcodec/proresenc_kostya.c     for (x = mb = 0; x < ctx->mb_width; x += mbs_per_slice, mb++) {
ctx               982 libavcodec/proresenc_kostya.c         while (ctx->mb_width - x < mbs_per_slice)
ctx               989 libavcodec/proresenc_kostya.c     for (x = ctx->slices_width - 1; x >= 0; x--) {
ctx               990 libavcodec/proresenc_kostya.c         ctx->slice_q[x + y * ctx->slices_width] = td->nodes[q].quant;
ctx              1000 libavcodec/proresenc_kostya.c     ProresContext *ctx = avctx->priv_data;
ctx              1006 libavcodec/proresenc_kostya.c     int slice_hdr_size = 2 + 2 * (ctx->num_planes - 1);
ctx              1009 libavcodec/proresenc_kostya.c     int max_slice_size = (ctx->frame_size_upper_bound - 200) / (ctx->pictures_per_frame * ctx->slices_per_picture + 1);
ctx              1012 libavcodec/proresenc_kostya.c     ctx->pic = pic;
ctx              1013 libavcodec/proresenc_kostya.c     pkt_size = ctx->frame_size_upper_bound;
ctx              1029 libavcodec/proresenc_kostya.c     bytestream_put_buffer(&buf, ctx->vendor, 4);
ctx              1033 libavcodec/proresenc_kostya.c     frame_flags = ctx->chroma_factor << 6;
ctx              1042 libavcodec/proresenc_kostya.c     bytestream_put_byte  (&buf, 0x40 | (ctx->alpha_bits >> 3));
ctx              1044 libavcodec/proresenc_kostya.c     if (ctx->quant_sel != QUANT_MAT_DEFAULT) {
ctx              1048 libavcodec/proresenc_kostya.c             bytestream_put_byte(&buf, ctx->quant_mat[i]);
ctx              1051 libavcodec/proresenc_kostya.c             bytestream_put_byte(&buf, ctx->quant_mat[i]);
ctx              1057 libavcodec/proresenc_kostya.c     for (ctx->cur_picture_idx = 0;
ctx              1058 libavcodec/proresenc_kostya.c          ctx->cur_picture_idx < ctx->pictures_per_frame;
ctx              1059 libavcodec/proresenc_kostya.c          ctx->cur_picture_idx++) {
ctx              1064 libavcodec/proresenc_kostya.c         bytestream_put_be16  (&buf, ctx->slices_per_picture);
ctx              1065 libavcodec/proresenc_kostya.c         bytestream_put_byte  (&buf, av_log2(ctx->mbs_per_slice) << 4); // slice width and height in MBs
ctx              1069 libavcodec/proresenc_kostya.c         buf += ctx->slices_per_picture * 2;
ctx              1072 libavcodec/proresenc_kostya.c         if (!ctx->force_quant) {
ctx              1074 libavcodec/proresenc_kostya.c                                   ctx->mb_height);
ctx              1079 libavcodec/proresenc_kostya.c         for (y = 0; y < ctx->mb_height; y++) {
ctx              1080 libavcodec/proresenc_kostya.c             int mbs_per_slice = ctx->mbs_per_slice;
ctx              1081 libavcodec/proresenc_kostya.c             for (x = mb = 0; x < ctx->mb_width; x += mbs_per_slice, mb++) {
ctx              1082 libavcodec/proresenc_kostya.c                 q = ctx->force_quant ? ctx->force_quant
ctx              1083 libavcodec/proresenc_kostya.c                                      : ctx->slice_q[mb + y * ctx->slices_width];
ctx              1085 libavcodec/proresenc_kostya.c                 while (ctx->mb_width - x < mbs_per_slice)
ctx              1095 libavcodec/proresenc_kostya.c                     int delta = 200 + (ctx->pictures_per_frame *
ctx              1096 libavcodec/proresenc_kostya.c                                 ctx->slices_per_picture + 1) *
ctx              1100 libavcodec/proresenc_kostya.c                     ctx->frame_size_upper_bound += delta;
ctx              1102 libavcodec/proresenc_kostya.c                     if (!ctx->warn) {
ctx              1108 libavcodec/proresenc_kostya.c                         ctx->warn = 1;
ctx              1131 libavcodec/proresenc_kostya.c                 slice_size = slice_hdr_size + sizes[ctx->num_planes - 1];
ctx              1132 libavcodec/proresenc_kostya.c                 for (i = 0; i < ctx->num_planes - 1; i++) {
ctx              1160 libavcodec/proresenc_kostya.c     ProresContext *ctx = avctx->priv_data;
ctx              1163 libavcodec/proresenc_kostya.c     if (ctx->tdata) {
ctx              1165 libavcodec/proresenc_kostya.c             av_freep(&ctx->tdata[i].nodes);
ctx              1167 libavcodec/proresenc_kostya.c     av_freep(&ctx->tdata);
ctx              1168 libavcodec/proresenc_kostya.c     av_freep(&ctx->slice_q);
ctx              1189 libavcodec/proresenc_kostya.c     ProresContext *ctx = avctx->priv_data;
ctx              1203 libavcodec/proresenc_kostya.c     ctx->fdct      = prores_fdct;
ctx              1204 libavcodec/proresenc_kostya.c     ctx->scantable = interlaced ? ff_prores_interlaced_scan
ctx              1206 libavcodec/proresenc_kostya.c     ff_fdctdsp_init(&ctx->fdsp, avctx);
ctx              1208 libavcodec/proresenc_kostya.c     mps = ctx->mbs_per_slice;
ctx              1214 libavcodec/proresenc_kostya.c     if (ctx->profile == PRORES_PROFILE_AUTO) {
ctx              1216 libavcodec/proresenc_kostya.c         ctx->profile = (desc->flags & AV_PIX_FMT_FLAG_ALPHA ||
ctx              1220 libavcodec/proresenc_kostya.c                "through -profile option.\n", ctx->profile == PRORES_PROFILE_4444
ctx              1225 libavcodec/proresenc_kostya.c         if (ctx->profile != PRORES_PROFILE_4444 &&
ctx              1226 libavcodec/proresenc_kostya.c             ctx->profile != PRORES_PROFILE_4444XQ) {
ctx              1230 libavcodec/proresenc_kostya.c             ctx->alpha_bits = 0;
ctx              1232 libavcodec/proresenc_kostya.c         if (ctx->alpha_bits & 7) {
ctx              1238 libavcodec/proresenc_kostya.c         ctx->alpha_bits = 0;
ctx              1241 libavcodec/proresenc_kostya.c     ctx->chroma_factor = avctx->pix_fmt == AV_PIX_FMT_YUV422P10
ctx              1244 libavcodec/proresenc_kostya.c     ctx->profile_info  = prores_profile_info + ctx->profile;
ctx              1245 libavcodec/proresenc_kostya.c     ctx->num_planes    = 3 + !!ctx->alpha_bits;
ctx              1247 libavcodec/proresenc_kostya.c     ctx->mb_width      = FFALIGN(avctx->width,  16) >> 4;
ctx              1250 libavcodec/proresenc_kostya.c         ctx->mb_height = FFALIGN(avctx->height, 32) >> 5;
ctx              1252 libavcodec/proresenc_kostya.c         ctx->mb_height = FFALIGN(avctx->height, 16) >> 4;
ctx              1254 libavcodec/proresenc_kostya.c     ctx->slices_width  = ctx->mb_width / mps;
ctx              1255 libavcodec/proresenc_kostya.c     ctx->slices_width += av_popcount(ctx->mb_width - ctx->slices_width * mps);
ctx              1256 libavcodec/proresenc_kostya.c     ctx->slices_per_picture = ctx->mb_height * ctx->slices_width;
ctx              1257 libavcodec/proresenc_kostya.c     ctx->pictures_per_frame = 1 + interlaced;
ctx              1259 libavcodec/proresenc_kostya.c     if (ctx->quant_sel == -1) {
ctx              1260 libavcodec/proresenc_kostya.c         ctx->quant_mat = prores_quant_matrices[ctx->profile_info->quant];
ctx              1261 libavcodec/proresenc_kostya.c         ctx->quant_chroma_mat = prores_quant_matrices[ctx->profile_info->quant_chroma];
ctx              1263 libavcodec/proresenc_kostya.c         ctx->quant_mat = prores_quant_matrices[ctx->quant_sel];
ctx              1264 libavcodec/proresenc_kostya.c         ctx->quant_chroma_mat = prores_quant_matrices[ctx->quant_sel];
ctx              1267 libavcodec/proresenc_kostya.c     if (strlen(ctx->vendor) != 4) {
ctx              1272 libavcodec/proresenc_kostya.c     ctx->force_quant = avctx->global_quality / FF_QP2LAMBDA;
ctx              1273 libavcodec/proresenc_kostya.c     if (!ctx->force_quant) {
ctx              1274 libavcodec/proresenc_kostya.c         if (!ctx->bits_per_mb) {
ctx              1276 libavcodec/proresenc_kostya.c                 if (prores_mb_limits[i] >= ctx->mb_width * ctx->mb_height *
ctx              1277 libavcodec/proresenc_kostya.c                                            ctx->pictures_per_frame)
ctx              1279 libavcodec/proresenc_kostya.c             ctx->bits_per_mb   = ctx->profile_info->br_tab[i];
ctx              1280 libavcodec/proresenc_kostya.c             if (ctx->alpha_bits)
ctx              1281 libavcodec/proresenc_kostya.c                 ctx->bits_per_mb *= 20;
ctx              1282 libavcodec/proresenc_kostya.c         } else if (ctx->bits_per_mb < 128) {
ctx              1287 libavcodec/proresenc_kostya.c         min_quant = ctx->profile_info->min_quant;
ctx              1288 libavcodec/proresenc_kostya.c         max_quant = ctx->profile_info->max_quant;
ctx              1291 libavcodec/proresenc_kostya.c                 ctx->quants[i][j] = ctx->quant_mat[j] * i;
ctx              1292 libavcodec/proresenc_kostya.c                 ctx->quants_chroma[i][j] = ctx->quant_chroma_mat[j] * i;
ctx              1296 libavcodec/proresenc_kostya.c         ctx->slice_q = av_malloc(ctx->slices_per_picture * sizeof(*ctx->slice_q));
ctx              1297 libavcodec/proresenc_kostya.c         if (!ctx->slice_q) {
ctx              1302 libavcodec/proresenc_kostya.c         ctx->tdata = av_mallocz(avctx->thread_count * sizeof(*ctx->tdata));
ctx              1303 libavcodec/proresenc_kostya.c         if (!ctx->tdata) {
ctx              1309 libavcodec/proresenc_kostya.c             ctx->tdata[j].nodes = av_malloc((ctx->slices_width + 1)
ctx              1311 libavcodec/proresenc_kostya.c                                             * sizeof(*ctx->tdata->nodes));
ctx              1312 libavcodec/proresenc_kostya.c             if (!ctx->tdata[j].nodes) {
ctx              1317 libavcodec/proresenc_kostya.c                 ctx->tdata[j].nodes[i].prev_node = -1;
ctx              1318 libavcodec/proresenc_kostya.c                 ctx->tdata[j].nodes[i].bits      = 0;
ctx              1319 libavcodec/proresenc_kostya.c                 ctx->tdata[j].nodes[i].score     = 0;
ctx              1326 libavcodec/proresenc_kostya.c         if (ctx->force_quant > 64) {
ctx              1332 libavcodec/proresenc_kostya.c             ctx->quants[0][j] = ctx->quant_mat[j] * ctx->force_quant;
ctx              1333 libavcodec/proresenc_kostya.c             ctx->quants_chroma[0][j] = ctx->quant_chroma_mat[j] * ctx->force_quant;
ctx              1334 libavcodec/proresenc_kostya.c             ls += av_log2((1 << 11)  / ctx->quants[0][j]) * 2 + 1;
ctx              1335 libavcodec/proresenc_kostya.c             ls_chroma += av_log2((1 << 11)  / ctx->quants_chroma[0][j]) * 2 + 1;
ctx              1338 libavcodec/proresenc_kostya.c         ctx->bits_per_mb = ls * 4 + ls_chroma * 4;
ctx              1339 libavcodec/proresenc_kostya.c         if (ctx->chroma_factor == CFACTOR_Y444)
ctx              1340 libavcodec/proresenc_kostya.c             ctx->bits_per_mb += ls_chroma * 4;
ctx              1343 libavcodec/proresenc_kostya.c     ctx->frame_size_upper_bound = (ctx->pictures_per_frame *
ctx              1344 libavcodec/proresenc_kostya.c                                    ctx->slices_per_picture + 1) *
ctx              1345 libavcodec/proresenc_kostya.c                                   (2 + 2 * ctx->num_planes +
ctx              1346 libavcodec/proresenc_kostya.c                                    (mps * ctx->bits_per_mb) / 8)
ctx              1349 libavcodec/proresenc_kostya.c     if (ctx->alpha_bits) {
ctx              1351 libavcodec/proresenc_kostya.c          ctx->frame_size_upper_bound += (ctx->pictures_per_frame *
ctx              1352 libavcodec/proresenc_kostya.c                                          ctx->slices_per_picture + 1) *
ctx              1353 libavcodec/proresenc_kostya.c          /* num pixels per slice */     (ctx->mbs_per_slice * 256 *
ctx              1354 libavcodec/proresenc_kostya.c          /* bits per pixel */            (1 + ctx->alpha_bits + 1) + 7 >> 3);
ctx              1357 libavcodec/proresenc_kostya.c     avctx->codec_tag   = ctx->profile_info->tag;
ctx              1361 libavcodec/proresenc_kostya.c            ctx->profile, ctx->slices_per_picture * ctx->pictures_per_frame,
ctx              1362 libavcodec/proresenc_kostya.c            interlaced ? "yes" : "no", ctx->bits_per_mb);
ctx              1364 libavcodec/proresenc_kostya.c            ctx->frame_size_upper_bound);
ctx                31 libavcodec/psymodel.c av_cold int ff_psy_init(FFPsyContext *ctx, AVCodecContext *avctx, int num_lens,
ctx                37 libavcodec/psymodel.c     ctx->avctx = avctx;
ctx                38 libavcodec/psymodel.c     ctx->ch        = av_mallocz_array(sizeof(ctx->ch[0]), avctx->channels * 2);
ctx                39 libavcodec/psymodel.c     ctx->group     = av_mallocz_array(sizeof(ctx->group[0]), num_groups);
ctx                40 libavcodec/psymodel.c     ctx->bands     = av_malloc_array (sizeof(ctx->bands[0]),      num_lens);
ctx                41 libavcodec/psymodel.c     ctx->num_bands = av_malloc_array (sizeof(ctx->num_bands[0]),  num_lens);
ctx                42 libavcodec/psymodel.c     ctx->cutoff    = avctx->cutoff;
ctx                44 libavcodec/psymodel.c     if (!ctx->ch || !ctx->group || !ctx->bands || !ctx->num_bands) {
ctx                45 libavcodec/psymodel.c         ff_psy_end(ctx);
ctx                49 libavcodec/psymodel.c     memcpy(ctx->bands,     bands,     sizeof(ctx->bands[0])     *  num_lens);
ctx                50 libavcodec/psymodel.c     memcpy(ctx->num_bands, num_bands, sizeof(ctx->num_bands[0]) *  num_lens);
ctx                58 libavcodec/psymodel.c         ctx->group[i].num_ch = group_map[i] + 1;
ctx                59 libavcodec/psymodel.c         for (j = 0; j < ctx->group[i].num_ch * 2; j++)
ctx                60 libavcodec/psymodel.c             ctx->group[i].ch[j]  = &ctx->ch[k++];
ctx                63 libavcodec/psymodel.c     switch (ctx->avctx->codec_id) {
ctx                65 libavcodec/psymodel.c         ctx->model = &ff_aac_psy_model;
ctx                68 libavcodec/psymodel.c     if (ctx->model->init)
ctx                69 libavcodec/psymodel.c         return ctx->model->init(ctx);
ctx                73 libavcodec/psymodel.c FFPsyChannelGroup *ff_psy_find_group(FFPsyContext *ctx, int channel)
ctx                78 libavcodec/psymodel.c         ch += ctx->group[i++].num_ch;
ctx                80 libavcodec/psymodel.c     return &ctx->group[i-1];
ctx                83 libavcodec/psymodel.c av_cold void ff_psy_end(FFPsyContext *ctx)
ctx                85 libavcodec/psymodel.c     if (ctx->model && ctx->model->end)
ctx                86 libavcodec/psymodel.c         ctx->model->end(ctx);
ctx                87 libavcodec/psymodel.c     av_freep(&ctx->bands);
ctx                88 libavcodec/psymodel.c     av_freep(&ctx->num_bands);
ctx                89 libavcodec/psymodel.c     av_freep(&ctx->group);
ctx                90 libavcodec/psymodel.c     av_freep(&ctx->ch);
ctx               105 libavcodec/psymodel.c     FFPsyPreprocessContext *ctx;
ctx               108 libavcodec/psymodel.c     ctx        = av_mallocz(sizeof(FFPsyPreprocessContext));
ctx               109 libavcodec/psymodel.c     if (!ctx)
ctx               111 libavcodec/psymodel.c     ctx->avctx = avctx;
ctx               119 libavcodec/psymodel.c         ctx->fcoeffs = ff_iir_filter_init_coeffs(avctx, FF_FILTER_TYPE_BUTTERWORTH,
ctx               122 libavcodec/psymodel.c         if (ctx->fcoeffs) {
ctx               123 libavcodec/psymodel.c             ctx->fstate = av_mallocz_array(sizeof(ctx->fstate[0]), avctx->channels);
ctx               124 libavcodec/psymodel.c             if (!ctx->fstate) {
ctx               125 libavcodec/psymodel.c                 av_free(ctx->fcoeffs);
ctx               126 libavcodec/psymodel.c                 av_free(ctx);
ctx               130 libavcodec/psymodel.c                 ctx->fstate[i] = ff_iir_filter_init_state(FILT_ORDER);
ctx               134 libavcodec/psymodel.c     ff_iir_filter_init(&ctx->fiir);
ctx               136 libavcodec/psymodel.c     return ctx;
ctx               139 libavcodec/psymodel.c void ff_psy_preprocess(struct FFPsyPreprocessContext *ctx, float **audio, int channels)
ctx               142 libavcodec/psymodel.c     int frame_size = ctx->avctx->frame_size;
ctx               143 libavcodec/psymodel.c     FFIIRFilterContext *iir = &ctx->fiir;
ctx               145 libavcodec/psymodel.c     if (ctx->fstate) {
ctx               147 libavcodec/psymodel.c             iir->filter_flt(ctx->fcoeffs, ctx->fstate[ch], frame_size,
ctx               152 libavcodec/psymodel.c av_cold void ff_psy_preprocess_end(struct FFPsyPreprocessContext *ctx)
ctx               155 libavcodec/psymodel.c     ff_iir_filter_free_coeffsp(&ctx->fcoeffs);
ctx               156 libavcodec/psymodel.c     if (ctx->fstate)
ctx               157 libavcodec/psymodel.c         for (i = 0; i < ctx->avctx->channels; i++)
ctx               158 libavcodec/psymodel.c             ff_iir_filter_free_statep(&ctx->fstate[i]);
ctx               159 libavcodec/psymodel.c     av_freep(&ctx->fstate);
ctx               160 libavcodec/psymodel.c     av_free(ctx);
ctx               129 libavcodec/psymodel.h     FFPsyWindowInfo (*window)(FFPsyContext *ctx, const float *audio, const float *la, int channel, int prev_type);
ctx               139 libavcodec/psymodel.h     void (*analyze)(FFPsyContext *ctx, int channel, const float **coeffs, const FFPsyWindowInfo *wi);
ctx               157 libavcodec/psymodel.h int ff_psy_init(FFPsyContext *ctx, AVCodecContext *avctx, int num_lens,
ctx               169 libavcodec/psymodel.h FFPsyChannelGroup *ff_psy_find_group(FFPsyContext *ctx, int channel);
ctx               176 libavcodec/psymodel.h void ff_psy_end(FFPsyContext *ctx);
ctx               197 libavcodec/psymodel.h void ff_psy_preprocess(struct FFPsyPreprocessContext *ctx, float **audio, int channels);
ctx               202 libavcodec/psymodel.h void ff_psy_preprocess_end(struct FFPsyPreprocessContext *ctx);
ctx               237 libavcodec/qsv.c int ff_qsv_find_surface_idx(QSVFramesContext *ctx, QSVFrame *frame)
ctx               240 libavcodec/qsv.c     for (i = 0; i < ctx->nb_mids; i++) {
ctx               241 libavcodec/qsv.c         QSVMid *mid = &ctx->mids[i];
ctx               518 libavcodec/qsv.c     QSVFramesContext *ctx = pthis;
ctx               530 libavcodec/qsv.c         AVHWFramesContext *frames_ctx = (AVHWFramesContext*)ctx->hw_frames_ctx->data;
ctx               537 libavcodec/qsv.c             av_log(ctx->logctx, AV_LOG_ERROR, "Mismatching surface properties in an "
ctx               544 libavcodec/qsv.c         ret = qsv_setup_mids(resp, ctx->hw_frames_ctx, ctx->mids_buf);
ctx               546 libavcodec/qsv.c             av_log(ctx->logctx, AV_LOG_ERROR,
ctx               552 libavcodec/qsv.c         AVHWFramesContext *ext_frames_ctx = (AVHWFramesContext*)ctx->hw_frames_ctx->data;
ctx               576 libavcodec/qsv.c             av_log(ctx->logctx, AV_LOG_ERROR,
ctx               593 libavcodec/qsv.c             av_log(ctx->logctx, AV_LOG_ERROR,
ctx               141 libavcodec/qsv_internal.h int ff_qsv_find_surface_idx(QSVFramesContext *ctx, QSVFrame *frame);
ctx               108 libavcodec/ralf.c     RALFContext *ctx = avctx->priv_data;
ctx               112 libavcodec/ralf.c         ff_free_vlc(&ctx->sets[i].filter_params);
ctx               113 libavcodec/ralf.c         ff_free_vlc(&ctx->sets[i].bias);
ctx               114 libavcodec/ralf.c         ff_free_vlc(&ctx->sets[i].coding_mode);
ctx               117 libavcodec/ralf.c                 ff_free_vlc(&ctx->sets[i].filter_coeffs[j][k]);
ctx               119 libavcodec/ralf.c             ff_free_vlc(&ctx->sets[i].short_codes[j]);
ctx               121 libavcodec/ralf.c             ff_free_vlc(&ctx->sets[i].long_codes[j]);
ctx               129 libavcodec/ralf.c     RALFContext *ctx = avctx->priv_data;
ctx               138 libavcodec/ralf.c     ctx->version = AV_RB16(avctx->extradata + 4);
ctx               139 libavcodec/ralf.c     if (ctx->version != 0x103) {
ctx               140 libavcodec/ralf.c         avpriv_request_sample(avctx, "Unknown version %X", ctx->version);
ctx               156 libavcodec/ralf.c     ctx->max_frame_size = AV_RB32(avctx->extradata + 16);
ctx               157 libavcodec/ralf.c     if (ctx->max_frame_size > (1 << 20) || !ctx->max_frame_size) {
ctx               159 libavcodec/ralf.c                ctx->max_frame_size);
ctx               161 libavcodec/ralf.c     ctx->max_frame_size = FFMAX(ctx->max_frame_size, avctx->sample_rate);
ctx               164 libavcodec/ralf.c         ret = init_ralf_vlc(&ctx->sets[i].filter_params, filter_param_def[i],
ctx               170 libavcodec/ralf.c         ret = init_ralf_vlc(&ctx->sets[i].bias, bias_def[i], BIAS_ELEMENTS);
ctx               175 libavcodec/ralf.c         ret = init_ralf_vlc(&ctx->sets[i].coding_mode, coding_mode_def[i],
ctx               183 libavcodec/ralf.c                 ret = init_ralf_vlc(&ctx->sets[i].filter_coeffs[j][k],
ctx               193 libavcodec/ralf.c             ret = init_ralf_vlc(&ctx->sets[i].short_codes[j],
ctx               201 libavcodec/ralf.c             ret = init_ralf_vlc(&ctx->sets[i].long_codes[j],
ctx               227 libavcodec/ralf.c static int decode_channel(RALFContext *ctx, GetBitContext *gb, int ch,
ctx               232 libavcodec/ralf.c     VLCSet *set = ctx->sets + mode;
ctx               234 libavcodec/ralf.c     int *dst = ctx->channel_data[ch];
ctx               236 libavcodec/ralf.c     ctx->filter_params = get_vlc2(gb, set->filter_params.table, 9, 2);
ctx               237 libavcodec/ralf.c     if (ctx->filter_params > 1) {
ctx               238 libavcodec/ralf.c         ctx->filter_bits   = (ctx->filter_params - 2) >> 6;
ctx               239 libavcodec/ralf.c         ctx->filter_length = ctx->filter_params - (ctx->filter_bits << 6) - 1;
ctx               242 libavcodec/ralf.c     if (ctx->filter_params == FILTER_RAW) {
ctx               245 libavcodec/ralf.c         ctx->bias[ch] = 0;
ctx               249 libavcodec/ralf.c     ctx->bias[ch] = get_vlc2(gb, set->bias.table, 9, 2);
ctx               250 libavcodec/ralf.c     ctx->bias[ch] = extend_code(gb, ctx->bias[ch], 127, 4);
ctx               252 libavcodec/ralf.c     if (ctx->filter_params == FILTER_NONE) {
ctx               257 libavcodec/ralf.c     if (ctx->filter_params > 1) {
ctx               259 libavcodec/ralf.c         VLC *vlc = set->filter_coeffs[ctx->filter_bits] + 5;
ctx               261 libavcodec/ralf.c         add_bits = ctx->filter_bits;
ctx               263 libavcodec/ralf.c         for (i = 0; i < ctx->filter_length; i++) {
ctx               269 libavcodec/ralf.c             ctx->filter[i] = coeff;
ctx               316 libavcodec/ralf.c static void apply_lpc(RALFContext *ctx, int ch, int length, int bits)
ctx               319 libavcodec/ralf.c     int *audio = ctx->channel_data[ch];
ctx               320 libavcodec/ralf.c     int bias = 1 << (ctx->filter_bits - 1);
ctx               324 libavcodec/ralf.c         int flen = FFMIN(ctx->filter_length, i);
ctx               328 libavcodec/ralf.c             acc += (unsigned)ctx->filter[j] * audio[i - j - 1];
ctx               330 libavcodec/ralf.c             acc = (acc + bias - 1) >> ctx->filter_bits;
ctx               333 libavcodec/ralf.c             acc = ((unsigned)acc + bias) >> ctx->filter_bits;
ctx               343 libavcodec/ralf.c     RALFContext *ctx = avctx->priv_data;
ctx               355 libavcodec/ralf.c     if (ctx->sample_offset + len > ctx->max_frame_size) {
ctx               372 libavcodec/ralf.c         if ((ret = decode_channel(ctx, gb, ch, len, mode[ch], bits[ch])) < 0)
ctx               374 libavcodec/ralf.c         if (ctx->filter_params > 1 && ctx->filter_params != FILTER_RAW) {
ctx               375 libavcodec/ralf.c             ctx->filter_bits += 3;
ctx               376 libavcodec/ralf.c             apply_lpc(ctx, ch, len, bits[ch]);
ctx               381 libavcodec/ralf.c     ch0 = ctx->channel_data[0];
ctx               382 libavcodec/ralf.c     ch1 = ctx->channel_data[1];
ctx               386 libavcodec/ralf.c             dst0[i] = ch0[i] + ctx->bias[0];
ctx               390 libavcodec/ralf.c             dst0[i] = ch0[i] + ctx->bias[0];
ctx               391 libavcodec/ralf.c             dst1[i] = ch1[i] + ctx->bias[1];
ctx               396 libavcodec/ralf.c             ch0[i] += ctx->bias[0];
ctx               398 libavcodec/ralf.c             dst1[i] = ch0[i] - (ch1[i] + ctx->bias[1]);
ctx               403 libavcodec/ralf.c             t  = ch0[i] + ctx->bias[0];
ctx               404 libavcodec/ralf.c             t2 = ch1[i] + ctx->bias[1];
ctx               411 libavcodec/ralf.c             t  =   ch1[i] + ctx->bias[1];
ctx               412 libavcodec/ralf.c             t2 = ((ch0[i] + ctx->bias[0]) * 2) | (t & 1);
ctx               419 libavcodec/ralf.c     ctx->sample_offset += len;
ctx               427 libavcodec/ralf.c     RALFContext *ctx = avctx->priv_data;
ctx               438 libavcodec/ralf.c     if (ctx->has_pkt) {
ctx               439 libavcodec/ralf.c         ctx->has_pkt = 0;
ctx               445 libavcodec/ralf.c         if (memcmp(ctx->pkt, avpkt->data, 2 + table_bytes)) {
ctx               450 libavcodec/ralf.c         src      = ctx->pkt;
ctx               452 libavcodec/ralf.c         memcpy(ctx->pkt + RALF_MAX_PKT_SIZE, avpkt->data + 2 + table_bytes,
ctx               456 libavcodec/ralf.c             memcpy(ctx->pkt, avpkt->data, avpkt->size);
ctx               457 libavcodec/ralf.c             ctx->has_pkt   = 1;
ctx               466 libavcodec/ralf.c     frame->nb_samples = ctx->max_frame_size;
ctx               483 libavcodec/ralf.c     ctx->num_blocks = 0;
ctx               485 libavcodec/ralf.c         if (ctx->num_blocks >= FF_ARRAY_ELEMS(ctx->block_size))
ctx               487 libavcodec/ralf.c         ctx->block_size[ctx->num_blocks] = get_bits(&gb, 13 + avctx->channels);
ctx               489 libavcodec/ralf.c             ctx->block_pts[ctx->num_blocks] = get_bits(&gb, 9);
ctx               491 libavcodec/ralf.c             ctx->block_pts[ctx->num_blocks] = 0;
ctx               493 libavcodec/ralf.c         ctx->num_blocks++;
ctx               498 libavcodec/ralf.c     ctx->sample_offset = 0;
ctx               499 libavcodec/ralf.c     for (i = 0; i < ctx->num_blocks; i++) {
ctx               500 libavcodec/ralf.c         if (bytes_left < ctx->block_size[i]) {
ctx               504 libavcodec/ralf.c         init_get_bits(&gb, block_pointer, ctx->block_size[i] * 8);
ctx               505 libavcodec/ralf.c         if (decode_block(avctx, &gb, samples0 + ctx->sample_offset,
ctx               506 libavcodec/ralf.c                                      samples1 + ctx->sample_offset) < 0) {
ctx               510 libavcodec/ralf.c         block_pointer += ctx->block_size[i];
ctx               511 libavcodec/ralf.c         bytes_left    -= ctx->block_size[i];
ctx               514 libavcodec/ralf.c     frame->nb_samples = ctx->sample_offset;
ctx               515 libavcodec/ralf.c     *got_frame_ptr    = ctx->sample_offset > 0;
ctx               522 libavcodec/ralf.c     RALFContext *ctx = avctx->priv_data;
ctx               524 libavcodec/ralf.c     ctx->has_pkt = 0;
ctx                42 libavcodec/remove_extradata_bsf.c static int remove_extradata(AVBSFContext *ctx, AVPacket *pkt)
ctx                44 libavcodec/remove_extradata_bsf.c     RemoveExtradataContext *s = ctx->priv_data;
ctx                48 libavcodec/remove_extradata_bsf.c     ret = ff_bsf_get_packet_ref(ctx, pkt);
ctx                65 libavcodec/remove_extradata_bsf.c static int remove_extradata_init(AVBSFContext *ctx)
ctx                67 libavcodec/remove_extradata_bsf.c     RemoveExtradataContext *s = ctx->priv_data;
ctx                70 libavcodec/remove_extradata_bsf.c     s->parser = av_parser_init(ctx->par_in->codec_id);
ctx                77 libavcodec/remove_extradata_bsf.c         ret = avcodec_parameters_to_context(s->avctx, ctx->par_in);
ctx                85 libavcodec/remove_extradata_bsf.c static void remove_extradata_close(AVBSFContext *ctx)
ctx                87 libavcodec/remove_extradata_bsf.c     RemoveExtradataContext *s = ctx->priv_data;
ctx                46 libavcodec/rkmppdec.c     MppCtx ctx;
ctx               108 libavcodec/rkmppdec.c     ret = decoder->mpi->decode_put_packet(decoder->ctx, packet);
ctx               136 libavcodec/rkmppdec.c         decoder->mpi->reset(decoder->ctx);
ctx               137 libavcodec/rkmppdec.c         mpp_destroy(decoder->ctx);
ctx               138 libavcodec/rkmppdec.c         decoder->ctx = NULL;
ctx               195 libavcodec/rkmppdec.c     ret = mpp_create(&decoder->ctx, &decoder->mpi);
ctx               203 libavcodec/rkmppdec.c     ret = mpp_init(decoder->ctx, MPP_CTX_DEC, codectype);
ctx               212 libavcodec/rkmppdec.c     ret = decoder->mpi->control(decoder->ctx, MPP_SET_OUTPUT_BLOCK, &paramS32);
ctx               220 libavcodec/rkmppdec.c     ret = decoder->mpi->control(decoder->ctx, MPP_SET_OUTPUT_BLOCK_TIMEOUT, &paramS64);
ctx               234 libavcodec/rkmppdec.c     ret = decoder->mpi->control(decoder->ctx, MPP_DEC_SET_EXT_BUF_GROUP, decoder->frame_group);
ctx               335 libavcodec/rkmppdec.c     ret = decoder->mpi->decode_get_frame(decoder->ctx, &mppframe);
ctx               353 libavcodec/rkmppdec.c             decoder->mpi->control(decoder->ctx, MPP_DEC_SET_INFO_CHANGE_READY, NULL);
ctx               506 libavcodec/rkmppdec.c         ret = decoder->mpi->control(decoder->ctx, MPP_DEC_GET_STREAM_COUNT, &usedslots);
ctx               544 libavcodec/rkmppdec.c     ret = decoder->mpi->reset(decoder->ctx);
ctx                72 libavcodec/rscc.c     RsccContext *ctx = avctx->priv_data;
ctx                83 libavcodec/rscc.c     ctx->reference = av_frame_alloc();
ctx                84 libavcodec/rscc.c     if (!ctx->reference)
ctx                92 libavcodec/rscc.c                 ctx->component_size = 4;
ctx                95 libavcodec/rscc.c                 ctx->component_size = 3;
ctx                99 libavcodec/rscc.c             ctx->component_size = 4;
ctx               102 libavcodec/rscc.c         ctx->component_size = avctx->bits_per_coded_sample / 8;
ctx               123 libavcodec/rscc.c         ctx->component_size = 4;
ctx               128 libavcodec/rscc.c     ctx->inflated_size = avctx->width * avctx->height * ctx->component_size;
ctx               131 libavcodec/rscc.c     ctx->inflated_buf = av_malloc(ctx->inflated_size);
ctx               132 libavcodec/rscc.c     if (!ctx->inflated_buf)
ctx               140 libavcodec/rscc.c     RsccContext *ctx = avctx->priv_data;
ctx               142 libavcodec/rscc.c     av_freep(&ctx->tiles);
ctx               143 libavcodec/rscc.c     av_freep(&ctx->inflated_buf);
ctx               144 libavcodec/rscc.c     av_frame_free(&ctx->reference);
ctx               152 libavcodec/rscc.c     RsccContext *ctx = avctx->priv_data;
ctx               153 libavcodec/rscc.c     GetByteContext *gbc = &ctx->gbc;
ctx               177 libavcodec/rscc.c     av_fast_malloc(&ctx->tiles, &ctx->tiles_size,
ctx               178 libavcodec/rscc.c                    tiles_nb * sizeof(*ctx->tiles));
ctx               179 libavcodec/rscc.c     if (!ctx->tiles) {
ctx               232 libavcodec/rscc.c         ctx->tiles[i].x = bytestream2_get_le16(gbc);
ctx               233 libavcodec/rscc.c         ctx->tiles[i].w = bytestream2_get_le16(gbc);
ctx               234 libavcodec/rscc.c         ctx->tiles[i].y = bytestream2_get_le16(gbc);
ctx               235 libavcodec/rscc.c         ctx->tiles[i].h = bytestream2_get_le16(gbc);
ctx               237 libavcodec/rscc.c         if (pixel_size + ctx->tiles[i].w * (int64_t)ctx->tiles[i].h * ctx->component_size > INT_MAX) {
ctx               243 libavcodec/rscc.c         pixel_size += ctx->tiles[i].w * ctx->tiles[i].h * ctx->component_size;
ctx               246 libavcodec/rscc.c                 ctx->tiles[i].x, ctx->tiles[i].y,
ctx               247 libavcodec/rscc.c                 ctx->tiles[i].w, ctx->tiles[i].h);
ctx               249 libavcodec/rscc.c         if (ctx->tiles[i].w == 0 || ctx->tiles[i].h == 0) {
ctx               252 libavcodec/rscc.c                    ctx->tiles[i].x, ctx->tiles[i].y,
ctx               253 libavcodec/rscc.c                    ctx->tiles[i].w, ctx->tiles[i].h);
ctx               256 libavcodec/rscc.c         } else if (ctx->tiles[i].x + ctx->tiles[i].w > avctx->width ||
ctx               257 libavcodec/rscc.c                    ctx->tiles[i].y + ctx->tiles[i].h > avctx->height) {
ctx               260 libavcodec/rscc.c                    ctx->tiles[i].x, ctx->tiles[i].y,
ctx               261 libavcodec/rscc.c                    ctx->tiles[i].w, ctx->tiles[i].h);
ctx               268 libavcodec/rscc.c     gbc = &ctx->gbc;
ctx               297 libavcodec/rscc.c         uLongf len = ctx->inflated_size;
ctx               303 libavcodec/rscc.c         ret = uncompress(ctx->inflated_buf, &len, gbc->buffer, packed_size);
ctx               309 libavcodec/rscc.c         pixels = ctx->inflated_buf;
ctx               313 libavcodec/rscc.c     ret = ff_reget_buffer(avctx, ctx->reference, 0);
ctx               320 libavcodec/rscc.c         uint8_t *dst = ctx->reference->data[0] + ctx->reference->linesize[0] *
ctx               321 libavcodec/rscc.c                        (avctx->height - ctx->tiles[i].y - 1) +
ctx               322 libavcodec/rscc.c                        ctx->tiles[i].x * ctx->component_size;
ctx               323 libavcodec/rscc.c         av_image_copy_plane(dst, -1 * ctx->reference->linesize[0],
ctx               324 libavcodec/rscc.c                             raw, ctx->tiles[i].w * ctx->component_size,
ctx               325 libavcodec/rscc.c                             ctx->tiles[i].w * ctx->component_size,
ctx               326 libavcodec/rscc.c                             ctx->tiles[i].h);
ctx               327 libavcodec/rscc.c         raw += ctx->tiles[i].w * ctx->component_size * ctx->tiles[i].h;
ctx               331 libavcodec/rscc.c     ret = av_frame_ref(frame, ctx->reference);
ctx               336 libavcodec/rscc.c     if (pixel_size == ctx->inflated_size) {
ctx               351 libavcodec/rscc.c             memcpy(ctx->palette, palette, AVPALETTE_SIZE);
ctx               355 libavcodec/rscc.c         memcpy (frame->data[1], ctx->palette, AVPALETTE_SIZE);
ctx               358 libavcodec/rscc.c     if (ctx->valid_pixels < ctx->inflated_size)
ctx               359 libavcodec/rscc.c         ctx->valid_pixels += pixel_size;
ctx               360 libavcodec/rscc.c     if (ctx->valid_pixels >= ctx->inflated_size * (100 - avctx->discard_damaged_percentage) / 100)
ctx               437 libavcodec/sanm.c static void init_sizes(SANMVideoContext *ctx, int width, int height)
ctx               439 libavcodec/sanm.c     ctx->width   = width;
ctx               440 libavcodec/sanm.c     ctx->height  = height;
ctx               441 libavcodec/sanm.c     ctx->npixels = width * height;
ctx               443 libavcodec/sanm.c     ctx->aligned_width  = FFALIGN(width, 8);
ctx               444 libavcodec/sanm.c     ctx->aligned_height = FFALIGN(height, 8);
ctx               446 libavcodec/sanm.c     ctx->buf_size = ctx->aligned_width * ctx->aligned_height * sizeof(ctx->frm0[0]);
ctx               447 libavcodec/sanm.c     ctx->pitch    = width;
ctx               450 libavcodec/sanm.c static void destroy_buffers(SANMVideoContext *ctx)
ctx               452 libavcodec/sanm.c     av_freep(&ctx->frm0);
ctx               453 libavcodec/sanm.c     av_freep(&ctx->frm1);
ctx               454 libavcodec/sanm.c     av_freep(&ctx->frm2);
ctx               455 libavcodec/sanm.c     av_freep(&ctx->stored_frame);
ctx               456 libavcodec/sanm.c     av_freep(&ctx->rle_buf);
ctx               457 libavcodec/sanm.c     ctx->frm0_size =
ctx               458 libavcodec/sanm.c     ctx->frm1_size =
ctx               459 libavcodec/sanm.c     ctx->frm2_size = 0;
ctx               460 libavcodec/sanm.c     init_sizes(ctx, 0, 0);
ctx               463 libavcodec/sanm.c static av_cold int init_buffers(SANMVideoContext *ctx)
ctx               465 libavcodec/sanm.c     av_fast_padded_mallocz(&ctx->frm0, &ctx->frm0_size, ctx->buf_size);
ctx               466 libavcodec/sanm.c     av_fast_padded_mallocz(&ctx->frm1, &ctx->frm1_size, ctx->buf_size);
ctx               467 libavcodec/sanm.c     av_fast_padded_mallocz(&ctx->frm2, &ctx->frm2_size, ctx->buf_size);
ctx               468 libavcodec/sanm.c     if (!ctx->version)
ctx               469 libavcodec/sanm.c         av_fast_padded_mallocz(&ctx->stored_frame,
ctx               470 libavcodec/sanm.c                               &ctx->stored_frame_size, ctx->buf_size);
ctx               472 libavcodec/sanm.c     if (!ctx->frm0 || !ctx->frm1 || !ctx->frm2 ||
ctx               473 libavcodec/sanm.c         (!ctx->stored_frame && !ctx->version)) {
ctx               474 libavcodec/sanm.c         destroy_buffers(ctx);
ctx               481 libavcodec/sanm.c static void rotate_bufs(SANMVideoContext *ctx, int rotate_code)
ctx               484 libavcodec/sanm.c         FFSWAP(uint16_t*, ctx->frm1, ctx->frm2);
ctx               485 libavcodec/sanm.c     FFSWAP(uint16_t*, ctx->frm2, ctx->frm0);
ctx               490 libavcodec/sanm.c     SANMVideoContext *ctx = avctx->priv_data;
ctx               492 libavcodec/sanm.c     ctx->avctx   = avctx;
ctx               493 libavcodec/sanm.c     ctx->version = !avctx->extradata_size;
ctx               495 libavcodec/sanm.c     if (!ctx->version && avctx->extradata_size < 1026) {
ctx               500 libavcodec/sanm.c     avctx->pix_fmt = ctx->version ? AV_PIX_FMT_RGB565 : AV_PIX_FMT_PAL8;
ctx               502 libavcodec/sanm.c     init_sizes(ctx, avctx->width, avctx->height);
ctx               503 libavcodec/sanm.c     if (init_buffers(ctx)) {
ctx               508 libavcodec/sanm.c     make_glyphs(ctx->p4x4glyphs[0], glyph4_x, glyph4_y, 4);
ctx               509 libavcodec/sanm.c     make_glyphs(ctx->p8x8glyphs[0], glyph8_x, glyph8_y, 8);
ctx               511 libavcodec/sanm.c     if (!ctx->version) {
ctx               514 libavcodec/sanm.c         ctx->subversion = AV_RL16(avctx->extradata);
ctx               516 libavcodec/sanm.c             ctx->pal[i] = 0xFFU << 24 | AV_RL32(avctx->extradata + 2 + i * 4);
ctx               524 libavcodec/sanm.c     SANMVideoContext *ctx = avctx->priv_data;
ctx               526 libavcodec/sanm.c     destroy_buffers(ctx);
ctx               531 libavcodec/sanm.c static int rle_decode(SANMVideoContext *ctx, uint8_t *dst, const int out_size)
ctx               536 libavcodec/sanm.c         opcode = bytestream2_get_byte(&ctx->gb);
ctx               538 libavcodec/sanm.c         if (run_len > left || bytestream2_get_bytes_left(&ctx->gb) <= 0)
ctx               542 libavcodec/sanm.c             color = bytestream2_get_byte(&ctx->gb);
ctx               545 libavcodec/sanm.c             if (bytestream2_get_bytes_left(&ctx->gb) < run_len)
ctx               547 libavcodec/sanm.c             bytestream2_get_bufferu(&ctx->gb, dst, run_len);
ctx               557 libavcodec/sanm.c static int old_codec1(SANMVideoContext *ctx, int top,
ctx               560 libavcodec/sanm.c     uint8_t *dst = ((uint8_t *)ctx->frm0) + left + top * ctx->pitch;
ctx               566 libavcodec/sanm.c         if (bytestream2_get_bytes_left(&ctx->gb) < 2)
ctx               569 libavcodec/sanm.c         len = bytestream2_get_le16u(&ctx->gb);
ctx               570 libavcodec/sanm.c         end = bytestream2_tell(&ctx->gb) + len;
ctx               572 libavcodec/sanm.c         while (bytestream2_tell(&ctx->gb) < end) {
ctx               573 libavcodec/sanm.c             if (bytestream2_get_bytes_left(&ctx->gb) < 2)
ctx               576 libavcodec/sanm.c             code = bytestream2_get_byteu(&ctx->gb);
ctx               582 libavcodec/sanm.c                 val = bytestream2_get_byteu(&ctx->gb);
ctx               587 libavcodec/sanm.c                 if (bytestream2_get_bytes_left(&ctx->gb) < code)
ctx               590 libavcodec/sanm.c                     val = bytestream2_get_byteu(&ctx->gb);
ctx               597 libavcodec/sanm.c         dst += ctx->pitch;
ctx               599 libavcodec/sanm.c     ctx->rotate_code = 0;
ctx               623 libavcodec/sanm.c static int old_codec37(SANMVideoContext *ctx, int top,
ctx               626 libavcodec/sanm.c     ptrdiff_t stride = ctx->pitch;
ctx               630 libavcodec/sanm.c     int compr = bytestream2_get_byte(&ctx->gb);
ctx               631 libavcodec/sanm.c     int mvoff = bytestream2_get_byte(&ctx->gb);
ctx               632 libavcodec/sanm.c     int seq   = bytestream2_get_le16(&ctx->gb);
ctx               633 libavcodec/sanm.c     uint32_t decoded_size = bytestream2_get_le32(&ctx->gb);
ctx               636 libavcodec/sanm.c     bytestream2_skip(&ctx->gb, 4);
ctx               637 libavcodec/sanm.c     flags = bytestream2_get_byte(&ctx->gb);
ctx               638 libavcodec/sanm.c     bytestream2_skip(&ctx->gb, 3);
ctx               640 libavcodec/sanm.c     if (decoded_size > ctx->height * stride - left - top * stride) {
ctx               641 libavcodec/sanm.c         decoded_size = ctx->height * stride - left - top * stride;
ctx               642 libavcodec/sanm.c         av_log(ctx->avctx, AV_LOG_WARNING, "Decoded size is too large.\n");
ctx               645 libavcodec/sanm.c     ctx->rotate_code = 0;
ctx               648 libavcodec/sanm.c         rotate_bufs(ctx, 1);
ctx               650 libavcodec/sanm.c     dst  = ((uint8_t*)ctx->frm0) + left + top * stride;
ctx               651 libavcodec/sanm.c     prev = ((uint8_t*)ctx->frm2) + left + top * stride;
ctx               654 libavcodec/sanm.c         av_log(ctx->avctx, AV_LOG_ERROR, "Invalid motion base value %d.\n", mvoff);
ctx               661 libavcodec/sanm.c             bytestream2_get_buffer(&ctx->gb, dst, width);
ctx               664 libavcodec/sanm.c         memset(ctx->frm1, 0, ctx->height * stride);
ctx               665 libavcodec/sanm.c         memset(ctx->frm2, 0, ctx->height * stride);
ctx               668 libavcodec/sanm.c         if (rle_decode(ctx, dst, decoded_size))
ctx               670 libavcodec/sanm.c         memset(ctx->frm1, 0, ctx->frm1_size);
ctx               671 libavcodec/sanm.c         memset(ctx->frm2, 0, ctx->frm2_size);
ctx               684 libavcodec/sanm.c                     if (bytestream2_get_bytes_left(&ctx->gb) < 1)
ctx               686 libavcodec/sanm.c                     code = bytestream2_get_byteu(&ctx->gb);
ctx               689 libavcodec/sanm.c                         if (bytestream2_get_bytes_left(&ctx->gb) < 16)
ctx               692 libavcodec/sanm.c                             bytestream2_get_bufferu(&ctx->gb, dst + i + k * stride, 4);
ctx               695 libavcodec/sanm.c                         if (bytestream2_get_bytes_left(&ctx->gb) < 4)
ctx               698 libavcodec/sanm.c                             memset(dst + i + k * stride, bytestream2_get_byteu(&ctx->gb), 4);
ctx               701 libavcodec/sanm.c                         if (bytestream2_get_bytes_left(&ctx->gb) < 1)
ctx               703 libavcodec/sanm.c                         t = bytestream2_get_byteu(&ctx->gb);
ctx               709 libavcodec/sanm.c                             if (bytestream2_get_bytes_left(&ctx->gb) < 1)
ctx               711 libavcodec/sanm.c                             skip_run = bytestream2_get_byteu(&ctx->gb) + 1;
ctx               719 libavcodec/sanm.c                                        ctx->height, stride, i + mx, j + my);
ctx               735 libavcodec/sanm.c                     code = bytestream2_get_byte(&ctx->gb);
ctx               737 libavcodec/sanm.c                         if (bytestream2_get_bytes_left(&ctx->gb) < 16)
ctx               740 libavcodec/sanm.c                             bytestream2_get_bufferu(&ctx->gb, dst + i + k * stride, 4);
ctx               742 libavcodec/sanm.c                         if (bytestream2_get_bytes_left(&ctx->gb) < 1)
ctx               744 libavcodec/sanm.c                         skip_run = bytestream2_get_byteu(&ctx->gb) + 1;
ctx               752 libavcodec/sanm.c                                    ctx->height, stride, i + mx, j + my);
ctx               761 libavcodec/sanm.c         avpriv_report_missing_feature(ctx->avctx,
ctx               769 libavcodec/sanm.c static int process_block(SANMVideoContext *ctx, uint8_t *dst, uint8_t *prev1,
ctx               776 libavcodec/sanm.c     if (bytestream2_get_bytes_left(&ctx->gb) < 1)
ctx               779 libavcodec/sanm.c     code = bytestream2_get_byteu(&ctx->gb);
ctx               784 libavcodec/sanm.c                 if (bytestream2_get_bytes_left(&ctx->gb) < 4)
ctx               786 libavcodec/sanm.c                 dst[0]          = bytestream2_get_byteu(&ctx->gb);
ctx               787 libavcodec/sanm.c                 dst[1]          = bytestream2_get_byteu(&ctx->gb);
ctx               788 libavcodec/sanm.c                 dst[0 + stride] = bytestream2_get_byteu(&ctx->gb);
ctx               789 libavcodec/sanm.c                 dst[1 + stride] = bytestream2_get_byteu(&ctx->gb);
ctx               792 libavcodec/sanm.c                 if (process_block(ctx, dst, prev1, prev2, stride, tbl, size))
ctx               794 libavcodec/sanm.c                 if (process_block(ctx, dst + size, prev1 + size, prev2 + size,
ctx               800 libavcodec/sanm.c                 if (process_block(ctx, dst, prev1, prev2, stride, tbl, size))
ctx               802 libavcodec/sanm.c                 if (process_block(ctx, dst + size, prev1 + size, prev2 + size,
ctx               808 libavcodec/sanm.c             if (bytestream2_get_bytes_left(&ctx->gb) < 1)
ctx               811 libavcodec/sanm.c             t = bytestream2_get_byteu(&ctx->gb);
ctx               816 libavcodec/sanm.c             if (bytestream2_get_bytes_left(&ctx->gb) < 3)
ctx               819 libavcodec/sanm.c             code = bytestream2_get_byteu(&ctx->gb);
ctx               820 libavcodec/sanm.c             pglyph = (size == 8) ? ctx->p8x8glyphs[code] : ctx->p4x4glyphs[code];
ctx               821 libavcodec/sanm.c             bytestream2_get_bufferu(&ctx->gb, colors, 2);
ctx               832 libavcodec/sanm.c             k = bytestream2_tell(&ctx->gb);
ctx               833 libavcodec/sanm.c             bytestream2_seek(&ctx->gb, tbl + (code & 7), SEEK_SET);
ctx               834 libavcodec/sanm.c             t = bytestream2_get_byte(&ctx->gb);
ctx               835 libavcodec/sanm.c             bytestream2_seek(&ctx->gb, k, SEEK_SET);
ctx               842 libavcodec/sanm.c         int index = prev2 - (const uint8_t *)ctx->frm2;
ctx               844 libavcodec/sanm.c         av_assert2(index >= 0 && index < (ctx->buf_size >> 1));
ctx               847 libavcodec/sanm.c             (ctx->buf_size >> 1) - index < mx + size + (my + size - 1) * stride) {
ctx               848 libavcodec/sanm.c             av_log(ctx->avctx, AV_LOG_ERROR, "MV is invalid.\n");
ctx               859 libavcodec/sanm.c static int old_codec47(SANMVideoContext *ctx, int top,
ctx               864 libavcodec/sanm.c     ptrdiff_t stride = ctx->pitch;
ctx               865 libavcodec/sanm.c     uint8_t *dst   = (uint8_t *)ctx->frm0 + left + top * stride;
ctx               866 libavcodec/sanm.c     uint8_t *prev1 = (uint8_t *)ctx->frm1;
ctx               867 libavcodec/sanm.c     uint8_t *prev2 = (uint8_t *)ctx->frm2;
ctx               868 libavcodec/sanm.c     int tbl_pos = bytestream2_tell(&ctx->gb);
ctx               869 libavcodec/sanm.c     int seq     = bytestream2_get_le16(&ctx->gb);
ctx               870 libavcodec/sanm.c     int compr   = bytestream2_get_byte(&ctx->gb);
ctx               871 libavcodec/sanm.c     int new_rot = bytestream2_get_byte(&ctx->gb);
ctx               872 libavcodec/sanm.c     int skip    = bytestream2_get_byte(&ctx->gb);
ctx               874 libavcodec/sanm.c     bytestream2_skip(&ctx->gb, 9);
ctx               875 libavcodec/sanm.c     decoded_size = bytestream2_get_le32(&ctx->gb);
ctx               876 libavcodec/sanm.c     bytestream2_skip(&ctx->gb, 8);
ctx               878 libavcodec/sanm.c     if (decoded_size > ctx->height * stride - left - top * stride) {
ctx               879 libavcodec/sanm.c         decoded_size = ctx->height * stride - left - top * stride;
ctx               880 libavcodec/sanm.c         av_log(ctx->avctx, AV_LOG_WARNING, "Decoded size is too large.\n");
ctx               884 libavcodec/sanm.c         bytestream2_skip(&ctx->gb, 0x8080);
ctx               886 libavcodec/sanm.c         ctx->prev_seq = -1;
ctx               887 libavcodec/sanm.c         memset(prev1, 0, ctx->height * stride);
ctx               888 libavcodec/sanm.c         memset(prev2, 0, ctx->height * stride);
ctx               893 libavcodec/sanm.c         if (bytestream2_get_bytes_left(&ctx->gb) < width * height)
ctx               896 libavcodec/sanm.c             bytestream2_get_bufferu(&ctx->gb, dst, width);
ctx               901 libavcodec/sanm.c         if (bytestream2_get_bytes_left(&ctx->gb) < ((width + 1) >> 1) * ((height + 1) >> 1))
ctx               908 libavcodec/sanm.c                 dst[stride + i + 1] = bytestream2_get_byteu(&ctx->gb);
ctx               914 libavcodec/sanm.c         if (seq == ctx->prev_seq + 1) {
ctx               917 libavcodec/sanm.c                     if (process_block(ctx, dst + i, prev1 + i, prev2 + i, stride,
ctx               927 libavcodec/sanm.c         memcpy(ctx->frm0, ctx->frm2, ctx->pitch * ctx->height);
ctx               930 libavcodec/sanm.c         memcpy(ctx->frm0, ctx->frm1, ctx->pitch * ctx->height);
ctx               933 libavcodec/sanm.c         if (rle_decode(ctx, dst, decoded_size))
ctx               937 libavcodec/sanm.c         avpriv_report_missing_feature(ctx->avctx,
ctx               941 libavcodec/sanm.c     if (seq == ctx->prev_seq + 1)
ctx               942 libavcodec/sanm.c         ctx->rotate_code = new_rot;
ctx               944 libavcodec/sanm.c         ctx->rotate_code = 0;
ctx               945 libavcodec/sanm.c     ctx->prev_seq = seq;
ctx               950 libavcodec/sanm.c static int process_frame_obj(SANMVideoContext *ctx)
ctx               952 libavcodec/sanm.c     uint16_t codec = bytestream2_get_le16u(&ctx->gb);
ctx               953 libavcodec/sanm.c     uint16_t left  = bytestream2_get_le16u(&ctx->gb);
ctx               954 libavcodec/sanm.c     uint16_t top   = bytestream2_get_le16u(&ctx->gb);
ctx               955 libavcodec/sanm.c     uint16_t w     = bytestream2_get_le16u(&ctx->gb);
ctx               956 libavcodec/sanm.c     uint16_t h     = bytestream2_get_le16u(&ctx->gb);
ctx               959 libavcodec/sanm.c         av_log(ctx->avctx, AV_LOG_ERROR, "Dimensions are invalid.\n");
ctx               963 libavcodec/sanm.c     if (ctx->width < left + w || ctx->height < top + h) {
ctx               964 libavcodec/sanm.c         int ret = ff_set_dimensions(ctx->avctx, FFMAX(left + w, ctx->width),
ctx               965 libavcodec/sanm.c                                     FFMAX(top + h, ctx->height));
ctx               968 libavcodec/sanm.c         init_sizes(ctx, FFMAX(left + w, ctx->width),
ctx               969 libavcodec/sanm.c                    FFMAX(top + h, ctx->height));
ctx               970 libavcodec/sanm.c         if (init_buffers(ctx)) {
ctx               971 libavcodec/sanm.c             av_log(ctx->avctx, AV_LOG_ERROR, "Error resizing buffers.\n");
ctx               975 libavcodec/sanm.c     bytestream2_skip(&ctx->gb, 4);
ctx               980 libavcodec/sanm.c         return old_codec1(ctx, top, left, w, h);
ctx               982 libavcodec/sanm.c         return old_codec37(ctx, top, left, w, h);
ctx               984 libavcodec/sanm.c         return old_codec47(ctx, top, left, w, h);
ctx               986 libavcodec/sanm.c         avpriv_request_sample(ctx->avctx, "Subcodec %d", codec);
ctx               991 libavcodec/sanm.c static int decode_0(SANMVideoContext *ctx)
ctx               993 libavcodec/sanm.c     uint16_t *frm = ctx->frm0;
ctx               996 libavcodec/sanm.c     if (bytestream2_get_bytes_left(&ctx->gb) < ctx->width * ctx->height * 2) {
ctx               997 libavcodec/sanm.c         av_log(ctx->avctx, AV_LOG_ERROR, "Insufficient data for raw frame.\n");
ctx              1000 libavcodec/sanm.c     for (y = 0; y < ctx->height; y++) {
ctx              1001 libavcodec/sanm.c         for (x = 0; x < ctx->width; x++)
ctx              1002 libavcodec/sanm.c             frm[x] = bytestream2_get_le16u(&ctx->gb);
ctx              1003 libavcodec/sanm.c         frm += ctx->pitch;
ctx              1008 libavcodec/sanm.c static int decode_nop(SANMVideoContext *ctx)
ctx              1010 libavcodec/sanm.c     avpriv_request_sample(ctx->avctx, "Unknown/unsupported compression type");
ctx              1043 libavcodec/sanm.c static int draw_glyph(SANMVideoContext *ctx, uint16_t *dst, int index,
ctx              1052 libavcodec/sanm.c         av_log(ctx->avctx, AV_LOG_ERROR, "Ignoring nonexistent glyph #%u.\n", index);
ctx              1056 libavcodec/sanm.c     pglyph = block_size == 8 ? ctx->p8x8glyphs[index] : ctx->p4x4glyphs[index];
ctx              1065 libavcodec/sanm.c static int opcode_0xf7(SANMVideoContext *ctx, int cx, int cy, int block_size, ptrdiff_t pitch)
ctx              1067 libavcodec/sanm.c     uint16_t *dst = ctx->frm0 + cx + cy * ctx->pitch;
ctx              1072 libavcodec/sanm.c         if (bytestream2_get_bytes_left(&ctx->gb) < 4)
ctx              1075 libavcodec/sanm.c         indices        = bytestream2_get_le32u(&ctx->gb);
ctx              1076 libavcodec/sanm.c         dst[0]         = ctx->codebook[indices & 0xFF];
ctx              1078 libavcodec/sanm.c         dst[1]         = ctx->codebook[indices & 0xFF];
ctx              1080 libavcodec/sanm.c         dst[pitch]     = ctx->codebook[indices & 0xFF];
ctx              1082 libavcodec/sanm.c         dst[pitch + 1] = ctx->codebook[indices & 0xFF];
ctx              1087 libavcodec/sanm.c         if (bytestream2_get_bytes_left(&ctx->gb) < 3)
ctx              1090 libavcodec/sanm.c         glyph   = bytestream2_get_byteu(&ctx->gb);
ctx              1091 libavcodec/sanm.c         bgcolor = ctx->codebook[bytestream2_get_byteu(&ctx->gb)];
ctx              1092 libavcodec/sanm.c         fgcolor = ctx->codebook[bytestream2_get_byteu(&ctx->gb)];
ctx              1094 libavcodec/sanm.c         draw_glyph(ctx, dst, glyph, fgcolor, bgcolor, block_size, pitch);
ctx              1099 libavcodec/sanm.c static int opcode_0xf8(SANMVideoContext *ctx, int cx, int cy, int block_size, ptrdiff_t pitch)
ctx              1101 libavcodec/sanm.c     uint16_t *dst = ctx->frm0 + cx + cy * ctx->pitch;
ctx              1104 libavcodec/sanm.c         if (bytestream2_get_bytes_left(&ctx->gb) < 8)
ctx              1107 libavcodec/sanm.c         dst[0]         = bytestream2_get_le16u(&ctx->gb);
ctx              1108 libavcodec/sanm.c         dst[1]         = bytestream2_get_le16u(&ctx->gb);
ctx              1109 libavcodec/sanm.c         dst[pitch]     = bytestream2_get_le16u(&ctx->gb);
ctx              1110 libavcodec/sanm.c         dst[pitch + 1] = bytestream2_get_le16u(&ctx->gb);
ctx              1115 libavcodec/sanm.c         if (bytestream2_get_bytes_left(&ctx->gb) < 5)
ctx              1118 libavcodec/sanm.c         glyph   = bytestream2_get_byteu(&ctx->gb);
ctx              1119 libavcodec/sanm.c         bgcolor = bytestream2_get_le16u(&ctx->gb);
ctx              1120 libavcodec/sanm.c         fgcolor = bytestream2_get_le16u(&ctx->gb);
ctx              1122 libavcodec/sanm.c         draw_glyph(ctx, dst, glyph, fgcolor, bgcolor, block_size, pitch);
ctx              1127 libavcodec/sanm.c static int good_mvec(SANMVideoContext *ctx, int cx, int cy, int mx, int my,
ctx              1130 libavcodec/sanm.c     int start_pos = cx + mx + (cy + my) * ctx->pitch;
ctx              1131 libavcodec/sanm.c     int end_pos = start_pos + (block_size - 1) * (ctx->pitch + 1);
ctx              1133 libavcodec/sanm.c     int good = start_pos >= 0 && end_pos < (ctx->buf_size >> 1);
ctx              1136 libavcodec/sanm.c         av_log(ctx->avctx, AV_LOG_ERROR,
ctx              1143 libavcodec/sanm.c static int codec2subblock(SANMVideoContext *ctx, int cx, int cy, int blk_size)
ctx              1148 libavcodec/sanm.c     if (bytestream2_get_bytes_left(&ctx->gb) < 1)
ctx              1151 libavcodec/sanm.c     opcode = bytestream2_get_byteu(&ctx->gb);
ctx              1158 libavcodec/sanm.c         if (good_mvec(ctx, cx, cy, mx, my, blk_size)) {
ctx              1159 libavcodec/sanm.c             copy_block(ctx->frm0 + cx      + ctx->pitch *  cy,
ctx              1160 libavcodec/sanm.c                        ctx->frm2 + cx + mx + ctx->pitch * (cy + my),
ctx              1161 libavcodec/sanm.c                        blk_size, ctx->pitch);
ctx              1165 libavcodec/sanm.c         if (bytestream2_get_bytes_left(&ctx->gb) < 2)
ctx              1167 libavcodec/sanm.c         index = bytestream2_get_le16u(&ctx->gb);
ctx              1169 libavcodec/sanm.c         mx = index % ctx->width;
ctx              1170 libavcodec/sanm.c         my = index / ctx->width;
ctx              1172 libavcodec/sanm.c         if (good_mvec(ctx, cx, cy, mx, my, blk_size)) {
ctx              1173 libavcodec/sanm.c             copy_block(ctx->frm0 + cx      + ctx->pitch *  cy,
ctx              1174 libavcodec/sanm.c                        ctx->frm2 + cx + mx + ctx->pitch * (cy + my),
ctx              1175 libavcodec/sanm.c                        blk_size, ctx->pitch);
ctx              1179 libavcodec/sanm.c         copy_block(ctx->frm0 + cx + ctx->pitch * cy,
ctx              1180 libavcodec/sanm.c                    ctx->frm1 + cx + ctx->pitch * cy,
ctx              1181 libavcodec/sanm.c                    blk_size, ctx->pitch);
ctx              1184 libavcodec/sanm.c         opcode_0xf7(ctx, cx, cy, blk_size, ctx->pitch);
ctx              1188 libavcodec/sanm.c         opcode_0xf8(ctx, cx, cy, blk_size, ctx->pitch);
ctx              1194 libavcodec/sanm.c         fill_block(ctx->frm0 + cx + cy * ctx->pitch,
ctx              1195 libavcodec/sanm.c                    ctx->small_codebook[opcode - 0xf9], blk_size, ctx->pitch);
ctx              1198 libavcodec/sanm.c         if (bytestream2_get_bytes_left(&ctx->gb) < 1)
ctx              1200 libavcodec/sanm.c         fill_block(ctx->frm0 + cx + cy * ctx->pitch,
ctx              1201 libavcodec/sanm.c                    ctx->codebook[bytestream2_get_byteu(&ctx->gb)], blk_size, ctx->pitch);
ctx              1204 libavcodec/sanm.c         if (bytestream2_get_bytes_left(&ctx->gb) < 2)
ctx              1206 libavcodec/sanm.c         fill_block(ctx->frm0 + cx + cy * ctx->pitch,
ctx              1207 libavcodec/sanm.c                    bytestream2_get_le16u(&ctx->gb), blk_size, ctx->pitch);
ctx              1211 libavcodec/sanm.c             opcode_0xf8(ctx, cx, cy, blk_size, ctx->pitch);
ctx              1214 libavcodec/sanm.c             if (codec2subblock(ctx, cx, cy, blk_size))
ctx              1216 libavcodec/sanm.c             if (codec2subblock(ctx, cx + blk_size, cy, blk_size))
ctx              1218 libavcodec/sanm.c             if (codec2subblock(ctx, cx, cy + blk_size, blk_size))
ctx              1220 libavcodec/sanm.c             if (codec2subblock(ctx, cx + blk_size, cy + blk_size, blk_size))
ctx              1228 libavcodec/sanm.c static int decode_2(SANMVideoContext *ctx)
ctx              1232 libavcodec/sanm.c     for (cy = 0; cy < ctx->aligned_height; cy += 8)
ctx              1233 libavcodec/sanm.c         for (cx = 0; cx < ctx->aligned_width; cx += 8)
ctx              1234 libavcodec/sanm.c             if (ret = codec2subblock(ctx, cx, cy, 8))
ctx              1240 libavcodec/sanm.c static int decode_3(SANMVideoContext *ctx)
ctx              1242 libavcodec/sanm.c     memcpy(ctx->frm0, ctx->frm2, ctx->frm2_size);
ctx              1246 libavcodec/sanm.c static int decode_4(SANMVideoContext *ctx)
ctx              1248 libavcodec/sanm.c     memcpy(ctx->frm0, ctx->frm1, ctx->frm1_size);
ctx              1252 libavcodec/sanm.c static int decode_5(SANMVideoContext *ctx)
ctx              1258 libavcodec/sanm.c     uint8_t *dst = (uint8_t*)ctx->frm0;
ctx              1260 libavcodec/sanm.c     if (rle_decode(ctx, dst, ctx->buf_size))
ctx              1264 libavcodec/sanm.c     npixels = ctx->npixels;
ctx              1265 libavcodec/sanm.c     frm = ctx->frm0;
ctx              1275 libavcodec/sanm.c static int decode_6(SANMVideoContext *ctx)
ctx              1277 libavcodec/sanm.c     int npixels = ctx->npixels;
ctx              1278 libavcodec/sanm.c     uint16_t *frm = ctx->frm0;
ctx              1280 libavcodec/sanm.c     if (bytestream2_get_bytes_left(&ctx->gb) < npixels) {
ctx              1281 libavcodec/sanm.c         av_log(ctx->avctx, AV_LOG_ERROR, "Insufficient data for frame.\n");
ctx              1285 libavcodec/sanm.c         *frm++ = ctx->codebook[bytestream2_get_byteu(&ctx->gb)];
ctx              1290 libavcodec/sanm.c static int decode_8(SANMVideoContext *ctx)
ctx              1292 libavcodec/sanm.c     uint16_t *pdest = ctx->frm0;
ctx              1294 libavcodec/sanm.c     long npixels = ctx->npixels;
ctx              1296 libavcodec/sanm.c     av_fast_malloc(&ctx->rle_buf, &ctx->rle_buf_size, npixels);
ctx              1297 libavcodec/sanm.c     if (!ctx->rle_buf) {
ctx              1298 libavcodec/sanm.c         av_log(ctx->avctx, AV_LOG_ERROR, "RLE buffer allocation failed.\n");
ctx              1301 libavcodec/sanm.c     rsrc = ctx->rle_buf;
ctx              1303 libavcodec/sanm.c     if (rle_decode(ctx, rsrc, npixels))
ctx              1307 libavcodec/sanm.c         *pdest++ = ctx->codebook[*rsrc++];
ctx              1312 libavcodec/sanm.c typedef int (*frm_decoder)(SANMVideoContext *ctx);
ctx              1319 libavcodec/sanm.c static int read_frame_header(SANMVideoContext *ctx, SANMFrameHeader *hdr)
ctx              1323 libavcodec/sanm.c     if ((ret = bytestream2_get_bytes_left(&ctx->gb)) < 560) {
ctx              1324 libavcodec/sanm.c         av_log(ctx->avctx, AV_LOG_ERROR, "Input frame too short (%d bytes).\n",
ctx              1328 libavcodec/sanm.c     bytestream2_skip(&ctx->gb, 8); // skip pad
ctx              1330 libavcodec/sanm.c     hdr->width  = bytestream2_get_le32u(&ctx->gb);
ctx              1331 libavcodec/sanm.c     hdr->height = bytestream2_get_le32u(&ctx->gb);
ctx              1333 libavcodec/sanm.c     if (hdr->width != ctx->width || hdr->height != ctx->height) {
ctx              1334 libavcodec/sanm.c         avpriv_report_missing_feature(ctx->avctx, "Variable size frames");
ctx              1338 libavcodec/sanm.c     hdr->seq_num     = bytestream2_get_le16u(&ctx->gb);
ctx              1339 libavcodec/sanm.c     hdr->codec       = bytestream2_get_byteu(&ctx->gb);
ctx              1340 libavcodec/sanm.c     hdr->rotate_code = bytestream2_get_byteu(&ctx->gb);
ctx              1342 libavcodec/sanm.c     bytestream2_skip(&ctx->gb, 4); // skip pad
ctx              1345 libavcodec/sanm.c         ctx->small_codebook[i] = bytestream2_get_le16u(&ctx->gb);
ctx              1346 libavcodec/sanm.c     hdr->bg_color = bytestream2_get_le16u(&ctx->gb);
ctx              1348 libavcodec/sanm.c     bytestream2_skip(&ctx->gb, 2); // skip pad
ctx              1350 libavcodec/sanm.c     hdr->rle_output_size = bytestream2_get_le32u(&ctx->gb);
ctx              1352 libavcodec/sanm.c         ctx->codebook[i] = bytestream2_get_le16u(&ctx->gb);
ctx              1354 libavcodec/sanm.c     bytestream2_skip(&ctx->gb, 8); // skip pad
ctx              1367 libavcodec/sanm.c static int copy_output(SANMVideoContext *ctx, SANMFrameHeader *hdr)
ctx              1370 libavcodec/sanm.c     const uint8_t *src = (uint8_t*) ctx->frm0;
ctx              1371 libavcodec/sanm.c     int ret, height = ctx->height;
ctx              1372 libavcodec/sanm.c     ptrdiff_t dstpitch, srcpitch = ctx->pitch * (hdr ? sizeof(ctx->frm0[0]) : 1);
ctx              1374 libavcodec/sanm.c     if ((ret = ff_get_buffer(ctx->avctx, ctx->frame, 0)) < 0)
ctx              1377 libavcodec/sanm.c     dst      = ctx->frame->data[0];
ctx              1378 libavcodec/sanm.c     dstpitch = ctx->frame->linesize[0];
ctx              1392 libavcodec/sanm.c     SANMVideoContext *ctx = avctx->priv_data;
ctx              1395 libavcodec/sanm.c     ctx->frame = data;
ctx              1396 libavcodec/sanm.c     bytestream2_init(&ctx->gb, pkt->data, pkt->size);
ctx              1398 libavcodec/sanm.c     if (!ctx->version) {
ctx              1401 libavcodec/sanm.c         while (bytestream2_get_bytes_left(&ctx->gb) >= 8) {
ctx              1405 libavcodec/sanm.c             sig  = bytestream2_get_be32u(&ctx->gb);
ctx              1406 libavcodec/sanm.c             size = bytestream2_get_be32u(&ctx->gb);
ctx              1407 libavcodec/sanm.c             pos  = bytestream2_tell(&ctx->gb);
ctx              1409 libavcodec/sanm.c             if (bytestream2_get_bytes_left(&ctx->gb) < size) {
ctx              1421 libavcodec/sanm.c                     ctx->pal[i] = 0xFFU << 24 | bytestream2_get_be24u(&ctx->gb);
ctx              1426 libavcodec/sanm.c                 if (ret = process_frame_obj(ctx))
ctx              1436 libavcodec/sanm.c                             int t = (ctx->pal[i] >> (16 - j * 8)) & 0xFF;
ctx              1437 libavcodec/sanm.c                             tmp[j] = av_clip_uint8((t * 129 + ctx->delta_pal[i * 3 + j]) >> 7);
ctx              1439 libavcodec/sanm.c                         ctx->pal[i] = 0xFFU << 24 | AV_RB24(tmp);
ctx              1448 libavcodec/sanm.c                     bytestream2_skipu(&ctx->gb, 4);
ctx              1450 libavcodec/sanm.c                         ctx->delta_pal[i] = bytestream2_get_le16u(&ctx->gb);
ctx              1453 libavcodec/sanm.c                             ctx->pal[i] = 0xFFU << 24 | bytestream2_get_be24u(&ctx->gb);
ctx              1455 libavcodec/sanm.c                         memset(ctx->pal, 0, sizeof(ctx->pal));
ctx              1463 libavcodec/sanm.c                 memcpy(ctx->frm0, ctx->stored_frame, ctx->buf_size);
ctx              1466 libavcodec/sanm.c                 bytestream2_skip(&ctx->gb, size);
ctx              1472 libavcodec/sanm.c             bytestream2_seek(&ctx->gb, pos + size, SEEK_SET);
ctx              1474 libavcodec/sanm.c                 bytestream2_skip(&ctx->gb, 1);
ctx              1477 libavcodec/sanm.c             memcpy(ctx->stored_frame, ctx->frm0, ctx->buf_size);
ctx              1478 libavcodec/sanm.c         if ((ret = copy_output(ctx, NULL)))
ctx              1480 libavcodec/sanm.c         memcpy(ctx->frame->data[1], ctx->pal, 1024);
ctx              1484 libavcodec/sanm.c         if ((ret = read_frame_header(ctx, &header)))
ctx              1487 libavcodec/sanm.c         ctx->rotate_code = header.rotate_code;
ctx              1488 libavcodec/sanm.c         if ((ctx->frame->key_frame = !header.seq_num)) {
ctx              1489 libavcodec/sanm.c             ctx->frame->pict_type = AV_PICTURE_TYPE_I;
ctx              1490 libavcodec/sanm.c             fill_frame(ctx->frm1, ctx->npixels, header.bg_color);
ctx              1491 libavcodec/sanm.c             fill_frame(ctx->frm2, ctx->npixels, header.bg_color);
ctx              1493 libavcodec/sanm.c             ctx->frame->pict_type = AV_PICTURE_TYPE_P;
ctx              1497 libavcodec/sanm.c             if ((ret = v1_decoders[header.codec](ctx))) {
ctx              1507 libavcodec/sanm.c         if ((ret = copy_output(ctx, &header)))
ctx              1510 libavcodec/sanm.c     if (ctx->rotate_code)
ctx              1511 libavcodec/sanm.c         rotate_bufs(ctx, ctx->rotate_code);
ctx                55 libavcodec/sbc.c uint8_t ff_sbc_crc8(const AVCRC *ctx, const uint8_t *data, size_t len)
ctx                61 libavcodec/sbc.c     crc = av_crc(ctx, 0x0F, data, byte_length);
ctx                57 libavcodec/screenpresso.c     ScreenpressoContext *ctx = avctx->priv_data;
ctx                59 libavcodec/screenpresso.c     av_frame_free(&ctx->current);
ctx                60 libavcodec/screenpresso.c     av_freep(&ctx->inflated_buf);
ctx                67 libavcodec/screenpresso.c     ScreenpressoContext *ctx = avctx->priv_data;
ctx                78 libavcodec/screenpresso.c     ctx->current = av_frame_alloc();
ctx                79 libavcodec/screenpresso.c     if (!ctx->current)
ctx                83 libavcodec/screenpresso.c     ctx->inflated_size = avctx->width * avctx->height * 4;
ctx                84 libavcodec/screenpresso.c     ctx->inflated_buf  = av_malloc(ctx->inflated_size);
ctx                85 libavcodec/screenpresso.c     if (!ctx->inflated_buf)
ctx               107 libavcodec/screenpresso.c     ScreenpressoContext *ctx = avctx->priv_data;
ctx               109 libavcodec/screenpresso.c     uLongf length = ctx->inflated_size;
ctx               142 libavcodec/screenpresso.c     ret = uncompress(ctx->inflated_buf, &length,
ctx               149 libavcodec/screenpresso.c     ret = ff_reget_buffer(avctx, ctx->current, 0);
ctx               158 libavcodec/screenpresso.c         av_image_copy_plane(ctx->current->data[0] +
ctx               159 libavcodec/screenpresso.c                             ctx->current->linesize[0] * (avctx->height - 1),
ctx               160 libavcodec/screenpresso.c                             -1 * ctx->current->linesize[0],
ctx               161 libavcodec/screenpresso.c                             ctx->inflated_buf, src_linesize,
ctx               165 libavcodec/screenpresso.c         sum_delta_flipped(ctx->current->data[0], ctx->current->linesize[0],
ctx               166 libavcodec/screenpresso.c                           ctx->inflated_buf, src_linesize,
ctx               170 libavcodec/screenpresso.c     ret = av_frame_ref(frame, ctx->current);
ctx               273 libavcodec/sipr.c static void postfilter_5k0(SiprContext *ctx, const float *lpc, float *samples)
ctx               286 libavcodec/sipr.c     memcpy(pole_out - LP_FILTER_ORDER, ctx->postfilter_mem,
ctx               292 libavcodec/sipr.c     memcpy(ctx->postfilter_mem, pole_out + SUBFR_SIZE - LP_FILTER_ORDER,
ctx               295 libavcodec/sipr.c     ff_tilt_compensation(&ctx->tilt_mem, 0.4, pole_out, SUBFR_SIZE);
ctx               297 libavcodec/sipr.c     memcpy(pole_out - LP_FILTER_ORDER, ctx->postfilter_mem5k0,
ctx               300 libavcodec/sipr.c     memcpy(ctx->postfilter_mem5k0, pole_out + SUBFR_SIZE - LP_FILTER_ORDER,
ctx               364 libavcodec/sipr.c static void decode_frame(SiprContext *ctx, SiprParameters *params,
ctx               368 libavcodec/sipr.c     int subframe_count = modes[ctx->mode].subframe_count;
ctx               375 libavcodec/sipr.c     float *synth = ctx->synth_buf + 16; // 16 instead of LP_FILTER_ORDER for
ctx               381 libavcodec/sipr.c     lsf_decode_fp(lsf_new, ctx->lsf_history, params);
ctx               383 libavcodec/sipr.c     sipr_decode_lp(lsf_new, ctx->lsp_history, Az, subframe_count);
ctx               385 libavcodec/sipr.c     memcpy(ctx->lsp_history, lsf_new, LP_FILTER_ORDER * sizeof(float));
ctx               387 libavcodec/sipr.c     excitation = ctx->excitation + PITCH_DELAY_MAX + L_INTERPOL;
ctx               396 libavcodec/sipr.c                             ctx->mode == MODE_5k0, 6);
ctx               398 libavcodec/sipr.c         if (i == 0 || (i == 2 && ctx->mode == MODE_5k0))
ctx               406 libavcodec/sipr.c         decode_fixed_sparse(&fixed_cb, params->fc_indexes[i], ctx->mode,
ctx               407 libavcodec/sipr.c                             ctx->past_pitch_gain < 0.8);
ctx               409 libavcodec/sipr.c         eval_ir(pAz, T0, impulse_response, modes[ctx->mode].pitch_sharp_factor);
ctx               419 libavcodec/sipr.c         ctx->past_pitch_gain = pitch_gain = gain_cb[params->gc_index[i]][0];
ctx               422 libavcodec/sipr.c                                           avg_energy, ctx->energy_history,
ctx               432 libavcodec/sipr.c         ctx->gain_mem = 0.7 * ctx->gain_mem + 0.3 * pitch_gain;
ctx               433 libavcodec/sipr.c         ctx->gain_mem = FFMIN(ctx->gain_mem, pitch_gain);
ctx               434 libavcodec/sipr.c         gain_code *= ctx->gain_mem;
ctx               439 libavcodec/sipr.c         if (ctx->mode == MODE_5k0) {
ctx               440 libavcodec/sipr.c             postfilter_5k0(ctx, pAz, fixed_vector);
ctx               442 libavcodec/sipr.c             ff_celp_lp_synthesis_filterf(ctx->postfilter_syn5k0 + LP_FILTER_ORDER + i*SUBFR_SIZE,
ctx               456 libavcodec/sipr.c     if (ctx->mode == MODE_5k0) {
ctx               458 libavcodec/sipr.c             float energy = avpriv_scalarproduct_float_c(ctx->postfilter_syn5k0 + LP_FILTER_ORDER + i * SUBFR_SIZE,
ctx               459 libavcodec/sipr.c                                                         ctx->postfilter_syn5k0 + LP_FILTER_ORDER + i * SUBFR_SIZE,
ctx               463 libavcodec/sipr.c                                      SUBFR_SIZE, 0.9, &ctx->postfilter_agc);
ctx               466 libavcodec/sipr.c         memcpy(ctx->postfilter_syn5k0, ctx->postfilter_syn5k0 + frame_size,
ctx               469 libavcodec/sipr.c     memmove(ctx->excitation, excitation - PITCH_DELAY_MAX - L_INTERPOL,
ctx               476 libavcodec/sipr.c                                              ctx->highpass_filt_mem,
ctx               482 libavcodec/sipr.c     SiprContext *ctx = avctx->priv_data;
ctx               486 libavcodec/sipr.c     case 20: ctx->mode = MODE_16k; break;
ctx               487 libavcodec/sipr.c     case 19: ctx->mode = MODE_8k5; break;
ctx               488 libavcodec/sipr.c     case 29: ctx->mode = MODE_6k5; break;
ctx               489 libavcodec/sipr.c     case 37: ctx->mode = MODE_5k0; break;
ctx               491 libavcodec/sipr.c         if      (avctx->bit_rate > 12200) ctx->mode = MODE_16k;
ctx               492 libavcodec/sipr.c         else if (avctx->bit_rate > 7500 ) ctx->mode = MODE_8k5;
ctx               493 libavcodec/sipr.c         else if (avctx->bit_rate > 5750 ) ctx->mode = MODE_6k5;
ctx               494 libavcodec/sipr.c         else                              ctx->mode = MODE_5k0;
ctx               497 libavcodec/sipr.c                avctx->block_align, modes[ctx->mode].mode_name, avctx->bit_rate);
ctx               500 libavcodec/sipr.c     av_log(avctx, AV_LOG_DEBUG, "Mode: %s\n", modes[ctx->mode].mode_name);
ctx               502 libavcodec/sipr.c     if (ctx->mode == MODE_16k) {
ctx               503 libavcodec/sipr.c         ff_sipr_init_16k(ctx);
ctx               504 libavcodec/sipr.c         ctx->decode_frame = ff_sipr_decode_frame_16k;
ctx               506 libavcodec/sipr.c         ctx->decode_frame = decode_frame;
ctx               510 libavcodec/sipr.c         ctx->lsp_history[i] = cos((i+1) * M_PI / (LP_FILTER_ORDER + 1));
ctx               513 libavcodec/sipr.c         ctx->energy_history[i] = -14;
ctx               525 libavcodec/sipr.c     SiprContext *ctx = avctx->priv_data;
ctx               529 libavcodec/sipr.c     const SiprModeParam *mode_par = &modes[ctx->mode];
ctx               532 libavcodec/sipr.c     int subframe_size = ctx->mode == MODE_16k ? L_SUBFR_16k : SUBFR_SIZE;
ctx               535 libavcodec/sipr.c     ctx->avctx = avctx;
ctx               555 libavcodec/sipr.c         ctx->decode_frame(ctx, &parm, samples);
ctx                98 libavcodec/sipr.h     void (*decode_frame)(struct SiprContext *ctx, SiprParameters *params,
ctx               104 libavcodec/sipr.h void ff_sipr_init_16k(SiprContext *ctx);
ctx               106 libavcodec/sipr.h void ff_sipr_decode_frame_16k(SiprContext *ctx, SiprParameters *params,
ctx               176 libavcodec/sipr16k.c void ff_sipr_decode_frame_16k(SiprContext *ctx, SiprParameters *params,
ctx               180 libavcodec/sipr16k.c     float *synth = ctx->synth_buf + LP_FILTER_ORDER_16k;
ctx               190 libavcodec/sipr16k.c     float *excitation = ctx->excitation + 292;
ctx               192 libavcodec/sipr16k.c     lsf_decode_fp_16k(ctx->lsf_history, lsf_new, params->vq_indexes,
ctx               199 libavcodec/sipr16k.c     acelp_lp_decodef(Az[0], Az[1], lsp_new, ctx->lsp_history_16k);
ctx               201 libavcodec/sipr16k.c     memcpy(ctx->lsp_history_16k, lsp_new, LP_FILTER_ORDER_16k * sizeof(double));
ctx               203 libavcodec/sipr16k.c     memcpy(synth - LP_FILTER_ORDER_16k, ctx->synth,
ctx               218 libavcodec/sipr16k.c                                             ctx->pitch_lag_prev);
ctx               223 libavcodec/sipr16k.c         ctx->pitch_lag_prev = f.pitch_lag;
ctx               245 libavcodec/sipr16k.c                                     pred_16k, ctx->energy_history,
ctx               248 libavcodec/sipr16k.c         ctx->energy_history[1] = ctx->energy_history[0];
ctx               249 libavcodec/sipr16k.c         ctx->energy_history[0] = 20.0 * log10f(gain_corr_factor);
ctx               260 libavcodec/sipr16k.c     memcpy(ctx->synth, synth + frame_size - LP_FILTER_ORDER_16k,
ctx               263 libavcodec/sipr16k.c     memmove(ctx->excitation, ctx->excitation + 2 * L_SUBFR_16k,
ctx               266 libavcodec/sipr16k.c     postfilter(out_data, synth, ctx->iir_mem, ctx->filt_mem, ctx->mem_preemph);
ctx               268 libavcodec/sipr16k.c     memcpy(ctx->iir_mem, Az[1], LP_FILTER_ORDER_16k * sizeof(float));
ctx               271 libavcodec/sipr16k.c av_cold void ff_sipr_init_16k(SiprContext *ctx)
ctx               276 libavcodec/sipr16k.c         ctx->lsp_history_16k[i] = cos((i + 1) * M_PI/(LP_FILTER_ORDER_16k + 1));
ctx               278 libavcodec/sipr16k.c     ctx->filt_mem[0] = ctx->filt_buf[0];
ctx               279 libavcodec/sipr16k.c     ctx->filt_mem[1] = ctx->filt_buf[1];
ctx               281 libavcodec/sipr16k.c     ctx->pitch_lag_prev = 180;
ctx               136 libavcodec/smacker.c                                   DBCtx *ctx, int length)
ctx               150 libavcodec/smacker.c         i1 = ctx->v1->table ? get_vlc2(gb, ctx->v1->table, SMKTREE_BITS, 3) : 0;
ctx               151 libavcodec/smacker.c         i2 = ctx->v2->table ? get_vlc2(gb, ctx->v2->table, SMKTREE_BITS, 3) : 0;
ctx               154 libavcodec/smacker.c         val = ctx->recode1[i1] | (ctx->recode2[i2] << 8);
ctx               155 libavcodec/smacker.c         if(val == ctx->escapes[0]) {
ctx               156 libavcodec/smacker.c             ctx->last[0] = hc->current;
ctx               158 libavcodec/smacker.c         } else if(val == ctx->escapes[1]) {
ctx               159 libavcodec/smacker.c             ctx->last[1] = hc->current;
ctx               161 libavcodec/smacker.c         } else if(val == ctx->escapes[2]) {
ctx               162 libavcodec/smacker.c             ctx->last[2] = hc->current;
ctx               172 libavcodec/smacker.c         r = smacker_decode_bigtree(gb, hc, ctx, length + 1);
ctx               177 libavcodec/smacker.c         r_new = smacker_decode_bigtree(gb, hc, ctx, length + 1);
ctx               194 libavcodec/smacker.c     DBCtx ctx;
ctx               270 libavcodec/smacker.c     ctx.escapes[0] = escapes[0];
ctx               271 libavcodec/smacker.c     ctx.escapes[1] = escapes[1];
ctx               272 libavcodec/smacker.c     ctx.escapes[2] = escapes[2];
ctx               273 libavcodec/smacker.c     ctx.v1 = &vlc[0];
ctx               274 libavcodec/smacker.c     ctx.v2 = &vlc[1];
ctx               275 libavcodec/smacker.c     ctx.recode1 = tmp1.values;
ctx               276 libavcodec/smacker.c     ctx.recode2 = tmp2.values;
ctx               277 libavcodec/smacker.c     ctx.last = last;
ctx               288 libavcodec/smacker.c     res = smacker_decode_bigtree(gb, &huff, &ctx, 0);
ctx               292 libavcodec/smacker.c     if(ctx.last[0] == -1) ctx.last[0] = huff.current++;
ctx               293 libavcodec/smacker.c     if(ctx.last[1] == -1) ctx.last[1] = huff.current++;
ctx               294 libavcodec/smacker.c     if(ctx.last[2] == -1) ctx.last[2] = huff.current++;
ctx               295 libavcodec/smacker.c     if (ctx.last[0] >= huff.length ||
ctx               296 libavcodec/smacker.c         ctx.last[1] >= huff.length ||
ctx               297 libavcodec/smacker.c         ctx.last[2] >= huff.length) {
ctx                79 libavcodec/tdsc.c     TDSCContext *ctx = avctx->priv_data;
ctx                81 libavcodec/tdsc.c     av_frame_free(&ctx->refframe);
ctx                82 libavcodec/tdsc.c     av_frame_free(&ctx->jpgframe);
ctx                83 libavcodec/tdsc.c     av_freep(&ctx->deflatebuffer);
ctx                84 libavcodec/tdsc.c     av_freep(&ctx->tilebuffer);
ctx                85 libavcodec/tdsc.c     av_freep(&ctx->cursor);
ctx                86 libavcodec/tdsc.c     avcodec_free_context(&ctx->jpeg_avctx);
ctx                93 libavcodec/tdsc.c     TDSCContext *ctx = avctx->priv_data;
ctx               106 libavcodec/tdsc.c     ctx->deflatelen = avctx->width * avctx->height * (3 + 1);
ctx               107 libavcodec/tdsc.c     ret = av_reallocp(&ctx->deflatebuffer, ctx->deflatelen);
ctx               112 libavcodec/tdsc.c     ctx->refframe = av_frame_alloc();
ctx               113 libavcodec/tdsc.c     ctx->jpgframe = av_frame_alloc();
ctx               114 libavcodec/tdsc.c     if (!ctx->refframe || !ctx->jpgframe)
ctx               121 libavcodec/tdsc.c     ctx->jpeg_avctx = avcodec_alloc_context3(codec);
ctx               122 libavcodec/tdsc.c     if (!ctx->jpeg_avctx)
ctx               124 libavcodec/tdsc.c     ctx->jpeg_avctx->flags = avctx->flags;
ctx               125 libavcodec/tdsc.c     ctx->jpeg_avctx->flags2 = avctx->flags2;
ctx               126 libavcodec/tdsc.c     ctx->jpeg_avctx->dct_algo = avctx->dct_algo;
ctx               127 libavcodec/tdsc.c     ctx->jpeg_avctx->idct_algo = avctx->idct_algo;
ctx               128 libavcodec/tdsc.c     ret = ff_codec_open2_recursive(ctx->jpeg_avctx, codec, NULL);
ctx               133 libavcodec/tdsc.c     ctx->refframe->format = avctx->pix_fmt;
ctx               144 libavcodec/tdsc.c     TDSCContext *ctx = avctx->priv_data;
ctx               145 libavcodec/tdsc.c     const uint8_t *cursor = ctx->cursor;
ctx               146 libavcodec/tdsc.c     int x = ctx->cursor_x - ctx->cursor_hot_x;
ctx               147 libavcodec/tdsc.c     int y = ctx->cursor_y - ctx->cursor_hot_y;
ctx               148 libavcodec/tdsc.c     int w = ctx->cursor_w;
ctx               149 libavcodec/tdsc.c     int h = ctx->cursor_h;
ctx               152 libavcodec/tdsc.c     if (!ctx->cursor)
ctx               155 libavcodec/tdsc.c     if (x + w > ctx->width)
ctx               156 libavcodec/tdsc.c         w = ctx->width - x;
ctx               157 libavcodec/tdsc.c     if (y + h > ctx->height)
ctx               158 libavcodec/tdsc.c         h = ctx->height - y;
ctx               167 libavcodec/tdsc.c         cursor += -y * ctx->cursor_stride;
ctx               182 libavcodec/tdsc.c         cursor += ctx->cursor_stride;
ctx               189 libavcodec/tdsc.c     TDSCContext *ctx  = avctx->priv_data;
ctx               193 libavcodec/tdsc.c     ctx->cursor_hot_x = bytestream2_get_le16(&ctx->gbc);
ctx               194 libavcodec/tdsc.c     ctx->cursor_hot_y = bytestream2_get_le16(&ctx->gbc);
ctx               195 libavcodec/tdsc.c     ctx->cursor_w     = bytestream2_get_le16(&ctx->gbc);
ctx               196 libavcodec/tdsc.c     ctx->cursor_h     = bytestream2_get_le16(&ctx->gbc);
ctx               198 libavcodec/tdsc.c     ctx->cursor_stride = FFALIGN(ctx->cursor_w, 32) * 4;
ctx               199 libavcodec/tdsc.c     cursor_fmt = bytestream2_get_le32(&ctx->gbc);
ctx               201 libavcodec/tdsc.c     if (ctx->cursor_x >= avctx->width || ctx->cursor_y >= avctx->height) {
ctx               204 libavcodec/tdsc.c                ctx->cursor_x, ctx->cursor_y, avctx->width, avctx->height);
ctx               207 libavcodec/tdsc.c     if (ctx->cursor_w < 1 || ctx->cursor_w > 256 ||
ctx               208 libavcodec/tdsc.c         ctx->cursor_h < 1 || ctx->cursor_h > 256) {
ctx               211 libavcodec/tdsc.c                ctx->cursor_w, ctx->cursor_h);
ctx               214 libavcodec/tdsc.c     if (ctx->cursor_hot_x > ctx->cursor_w ||
ctx               215 libavcodec/tdsc.c         ctx->cursor_hot_y > ctx->cursor_h) {
ctx               217 libavcodec/tdsc.c                ctx->cursor_hot_x, ctx->cursor_hot_y);
ctx               218 libavcodec/tdsc.c         ctx->cursor_hot_x = FFMIN(ctx->cursor_hot_x, ctx->cursor_w - 1);
ctx               219 libavcodec/tdsc.c         ctx->cursor_hot_y = FFMIN(ctx->cursor_hot_y, ctx->cursor_h - 1);
ctx               222 libavcodec/tdsc.c     ret = av_reallocp(&ctx->cursor, ctx->cursor_stride * ctx->cursor_h);
ctx               228 libavcodec/tdsc.c     dst = ctx->cursor;
ctx               232 libavcodec/tdsc.c         for (j = 0; j < ctx->cursor_h; j++) {
ctx               233 libavcodec/tdsc.c             for (i = 0; i < ctx->cursor_w; i += 32) {
ctx               234 libavcodec/tdsc.c                 uint32_t bits = bytestream2_get_be32(&ctx->gbc);
ctx               241 libavcodec/tdsc.c             dst += ctx->cursor_stride - ctx->cursor_w * 4;
ctx               244 libavcodec/tdsc.c         dst = ctx->cursor;
ctx               245 libavcodec/tdsc.c         for (j = 0; j < ctx->cursor_h; j++) {
ctx               246 libavcodec/tdsc.c             for (i = 0; i < ctx->cursor_w; i += 32) {
ctx               247 libavcodec/tdsc.c                 uint32_t bits = bytestream2_get_be32(&ctx->gbc);
ctx               273 libavcodec/tdsc.c             dst += ctx->cursor_stride - ctx->cursor_w * 4;
ctx               279 libavcodec/tdsc.c         bytestream2_skip(&ctx->gbc,
ctx               280 libavcodec/tdsc.c                          ctx->cursor_h * (FFALIGN(ctx->cursor_w, 32) >> 3));
ctx               282 libavcodec/tdsc.c             for (j = 0; j < ctx->cursor_h; j++) {
ctx               283 libavcodec/tdsc.c                 for (i = 0; i < ctx->cursor_w; i++) {
ctx               284 libavcodec/tdsc.c                     int val = bytestream2_get_be32(&ctx->gbc);
ctx               290 libavcodec/tdsc.c                 dst += ctx->cursor_stride - ctx->cursor_w * 4;
ctx               293 libavcodec/tdsc.c             for (j = 0; j < ctx->cursor_h; j++) {
ctx               294 libavcodec/tdsc.c                 for (i = 0; i < ctx->cursor_w; i++) {
ctx               295 libavcodec/tdsc.c                     int val = bytestream2_get_be32(&ctx->gbc);
ctx               301 libavcodec/tdsc.c                 dst += ctx->cursor_stride - ctx->cursor_w * 4;
ctx               344 libavcodec/tdsc.c     TDSCContext *ctx = avctx->priv_data;
ctx               350 libavcodec/tdsc.c     jpkt.data = ctx->tilebuffer;
ctx               353 libavcodec/tdsc.c     ret = avcodec_send_packet(ctx->jpeg_avctx, &jpkt);
ctx               359 libavcodec/tdsc.c     ret = avcodec_receive_frame(ctx->jpeg_avctx, ctx->jpgframe);
ctx               360 libavcodec/tdsc.c     if (ret < 0 || ctx->jpgframe->format != AV_PIX_FMT_YUVJ420P) {
ctx               372 libavcodec/tdsc.c     tdsc_blit(ctx->refframe->data[0] + x * 3 + ctx->refframe->linesize[0] * y,
ctx               373 libavcodec/tdsc.c               ctx->refframe->linesize[0],
ctx               374 libavcodec/tdsc.c               ctx->jpgframe->data[0], ctx->jpgframe->linesize[0],
ctx               375 libavcodec/tdsc.c               ctx->jpgframe->data[1], ctx->jpgframe->data[2],
ctx               376 libavcodec/tdsc.c               ctx->jpgframe->linesize[1], w, h);
ctx               378 libavcodec/tdsc.c     av_frame_unref(ctx->jpgframe);
ctx               386 libavcodec/tdsc.c     TDSCContext *ctx = avctx->priv_data;
ctx               396 libavcodec/tdsc.c         if (bytestream2_get_bytes_left(&ctx->gbc) < 4 ||
ctx               397 libavcodec/tdsc.c             bytestream2_get_le32(&ctx->gbc) != MKTAG('T','D','S','B') ||
ctx               398 libavcodec/tdsc.c             bytestream2_get_bytes_left(&ctx->gbc) < TDSB_HEADER_SIZE - 4) {
ctx               403 libavcodec/tdsc.c         tile_size = bytestream2_get_le32(&ctx->gbc);
ctx               404 libavcodec/tdsc.c         if (bytestream2_get_bytes_left(&ctx->gbc) < tile_size)
ctx               407 libavcodec/tdsc.c         tile_mode = bytestream2_get_le32(&ctx->gbc);
ctx               408 libavcodec/tdsc.c         bytestream2_skip(&ctx->gbc, 4); // unknown
ctx               409 libavcodec/tdsc.c         x = bytestream2_get_le32(&ctx->gbc);
ctx               410 libavcodec/tdsc.c         y = bytestream2_get_le32(&ctx->gbc);
ctx               411 libavcodec/tdsc.c         w = bytestream2_get_le32(&ctx->gbc) - x;
ctx               412 libavcodec/tdsc.c         h = bytestream2_get_le32(&ctx->gbc) - y;
ctx               414 libavcodec/tdsc.c         if (x >= ctx->width || y >= ctx->height) {
ctx               417 libavcodec/tdsc.c                    x, y, ctx->width, ctx->height);
ctx               420 libavcodec/tdsc.c         if (x + w > ctx->width || y + h > ctx->height) {
ctx               426 libavcodec/tdsc.c         ret = av_reallocp(&ctx->tilebuffer, tile_size);
ctx               427 libavcodec/tdsc.c         if (!ctx->tilebuffer)
ctx               430 libavcodec/tdsc.c         bytestream2_get_buffer(&ctx->gbc, ctx->tilebuffer, tile_size);
ctx               439 libavcodec/tdsc.c             av_image_copy_plane(ctx->refframe->data[0] + x * 3 +
ctx               440 libavcodec/tdsc.c                                 ctx->refframe->linesize[0] * y,
ctx               441 libavcodec/tdsc.c                                 ctx->refframe->linesize[0], ctx->tilebuffer,
ctx               455 libavcodec/tdsc.c     TDSCContext *ctx = avctx->priv_data;
ctx               456 libavcodec/tdsc.c     int ret, w, h, init_refframe = !ctx->refframe->data[0];
ctx               460 libavcodec/tdsc.c     if (bytestream2_get_le32(&ctx->gbc) != BITMAPINFOHEADER_SIZE)
ctx               464 libavcodec/tdsc.c     w =  bytestream2_get_le32(&ctx->gbc);
ctx               465 libavcodec/tdsc.c     h = -bytestream2_get_le32(&ctx->gbc);
ctx               467 libavcodec/tdsc.c     if (bytestream2_get_le16(&ctx->gbc) != 1 ||  // 1 plane
ctx               468 libavcodec/tdsc.c         bytestream2_get_le16(&ctx->gbc) != 24)   // BGR24
ctx               471 libavcodec/tdsc.c     bytestream2_skip(&ctx->gbc, 24); // unused fields
ctx               476 libavcodec/tdsc.c                avctx->width, avctx->height, ctx->width, ctx->height);
ctx               482 libavcodec/tdsc.c     ctx->refframe->width  = ctx->width  = w;
ctx               483 libavcodec/tdsc.c     ctx->refframe->height = ctx->height = h;
ctx               487 libavcodec/tdsc.c         ret = av_frame_get_buffer(ctx->refframe, 0);
ctx               498 libavcodec/tdsc.c     TDSCContext *ctx = avctx->priv_data;
ctx               500 libavcodec/tdsc.c     int action = bytestream2_get_le32(&ctx->gbc);
ctx               502 libavcodec/tdsc.c     bytestream2_skip(&ctx->gbc, 4); // some kind of ID or version maybe?
ctx               506 libavcodec/tdsc.c         ctx->cursor_x = bytestream2_get_le32(&ctx->gbc);
ctx               507 libavcodec/tdsc.c         ctx->cursor_y = bytestream2_get_le32(&ctx->gbc);
ctx               526 libavcodec/tdsc.c     TDSCContext *ctx = avctx->priv_data;
ctx               532 libavcodec/tdsc.c     if (ctx->width != avctx->width || ctx->height != avctx->height) {
ctx               533 libavcodec/tdsc.c         ctx->deflatelen = avctx->width * avctx->height * (3 + 1);
ctx               534 libavcodec/tdsc.c         ret = av_reallocp(&ctx->deflatebuffer, ctx->deflatelen);
ctx               538 libavcodec/tdsc.c     dlen = ctx->deflatelen;
ctx               541 libavcodec/tdsc.c     ret = uncompress(ctx->deflatebuffer, &dlen, avpkt->data, avpkt->size);
ctx               547 libavcodec/tdsc.c     bytestream2_init(&ctx->gbc, ctx->deflatebuffer, dlen);
ctx               550 libavcodec/tdsc.c     if (bytestream2_get_bytes_left(&ctx->gbc) < 4 + 4) {
ctx               556 libavcodec/tdsc.c     tag_header = bytestream2_get_le32(&ctx->gbc);
ctx               560 libavcodec/tdsc.c         if (bytestream2_get_bytes_left(&ctx->gbc) < TDSF_HEADER_SIZE) {
ctx               565 libavcodec/tdsc.c         number_tiles = bytestream2_get_le32(&ctx->gbc);
ctx               567 libavcodec/tdsc.c         bytestream2_skip(&ctx->gbc, 4); // internal timestamp maybe?
ctx               568 libavcodec/tdsc.c         keyframe = bytestream2_get_le32(&ctx->gbc) == 0x30;
ctx               575 libavcodec/tdsc.c         if (bytestream2_get_bytes_left(&ctx->gbc) >= 4 + 4)
ctx               576 libavcodec/tdsc.c             tag_header = bytestream2_get_le32(&ctx->gbc);
ctx               582 libavcodec/tdsc.c         int tag_size = bytestream2_get_le32(&ctx->gbc);
ctx               584 libavcodec/tdsc.c         if (bytestream2_get_bytes_left(&ctx->gbc) < tag_size) {
ctx               599 libavcodec/tdsc.c     ret = av_frame_copy(frame, ctx->refframe);
ctx               116 libavcodec/tests/motion.c     AVCodecContext *ctx;
ctx               129 libavcodec/tests/motion.c     ctx = avcodec_alloc_context3(NULL);
ctx               130 libavcodec/tests/motion.c     ctx->flags |= AV_CODEC_FLAG_BITEXACT;
ctx               133 libavcodec/tests/motion.c     ff_me_cmp_init(&cctx, ctx);
ctx               138 libavcodec/tests/motion.c         ff_me_cmp_init(&mmxctx, ctx);
ctx               149 libavcodec/tests/motion.c     av_free(ctx);
ctx                24 libavcodec/tests/options.c static int dummy_init(AVCodecContext *ctx)
ctx                27 libavcodec/tests/options.c     ctx->extradata_size = 8;
ctx                28 libavcodec/tests/options.c     ctx->extradata = av_malloc(ctx->extradata_size);
ctx                32 libavcodec/tests/options.c static int dummy_close(AVCodecContext *ctx)
ctx                34 libavcodec/tests/options.c     av_freep(&ctx->extradata);
ctx                35 libavcodec/tests/options.c     ctx->extradata_size = 0;
ctx                39 libavcodec/tests/options.c static int dummy_encode(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
ctx               123 libavcodec/tests/options.c static void test_copy_print_codec(const AVCodecContext *ctx)
ctx               126 libavcodec/tests/options.c            ctx->codec ? ctx->codec->name : "NULL",
ctx               127 libavcodec/tests/options.c            ctx->width, ctx->height,
ctx               128 libavcodec/tests/options.c            ctx->priv_data ? "set" : "null");
ctx               129 libavcodec/tests/options.c     if (ctx->codec && ctx->codec->priv_class && ctx->codec->priv_data_size) {
ctx               132 libavcodec/tests/options.c         av_opt_get_int(ctx->priv_data, "num", 0, &i64);
ctx               133 libavcodec/tests/options.c         av_opt_get(ctx->priv_data, "str", 0, (uint8_t**)&str);
ctx                38 libavcodec/trace_headers_bsf.c     TraceHeadersContext *ctx = bsf->priv_data;
ctx                41 libavcodec/trace_headers_bsf.c     err = ff_cbs_init(&ctx->cbc, bsf->par_in->codec_id, bsf);
ctx                45 libavcodec/trace_headers_bsf.c     ctx->cbc->trace_enable = 1;
ctx                46 libavcodec/trace_headers_bsf.c     ctx->cbc->trace_level  = AV_LOG_INFO;
ctx                49 libavcodec/trace_headers_bsf.c         CodedBitstreamFragment *frag = &ctx->fragment;
ctx                53 libavcodec/trace_headers_bsf.c         err = ff_cbs_read_extradata(ctx->cbc, frag, bsf->par_in);
ctx                55 libavcodec/trace_headers_bsf.c         ff_cbs_fragment_reset(ctx->cbc, frag);
ctx                63 libavcodec/trace_headers_bsf.c     TraceHeadersContext *ctx = bsf->priv_data;
ctx                65 libavcodec/trace_headers_bsf.c     ff_cbs_fragment_free(ctx->cbc, &ctx->fragment);
ctx                66 libavcodec/trace_headers_bsf.c     ff_cbs_close(&ctx->cbc);
ctx                71 libavcodec/trace_headers_bsf.c     TraceHeadersContext *ctx = bsf->priv_data;
ctx                72 libavcodec/trace_headers_bsf.c     CodedBitstreamFragment *frag = &ctx->fragment;
ctx                98 libavcodec/trace_headers_bsf.c     err = ff_cbs_read_packet(ctx->cbc, frag, pkt);
ctx               100 libavcodec/trace_headers_bsf.c     ff_cbs_fragment_reset(ctx->cbc, frag);
ctx                37 libavcodec/truehd_core_bsf.c static int truehd_core_filter(AVBSFContext *ctx, AVPacket *pkt)
ctx                39 libavcodec/truehd_core_bsf.c     TrueHDCoreContext *s = ctx->priv_data;
ctx                48 libavcodec/truehd_core_bsf.c     ret = ff_bsf_get_packet_ref(ctx, pkt);
ctx                68 libavcodec/truehd_core_bsf.c         if ((ret = ff_mlp_read_major_sync(ctx, &s->hdr, &gbc)) < 0)
ctx               166 libavcodec/truehd_core_bsf.c static void truehd_core_flush(AVBSFContext *ctx)
ctx               168 libavcodec/truehd_core_bsf.c     TrueHDCoreContext *s = ctx->priv_data;
ctx               119 libavcodec/truemotion2.c static int tm2_read_tree(TM2Context *ctx, uint32_t prefix, int length, TM2Huff *huff)
ctx               123 libavcodec/truemotion2.c         av_log(ctx->avctx, AV_LOG_ERROR, "Tree exceeded its given depth (%i)\n",
ctx               128 libavcodec/truemotion2.c     if (!get_bits1(&ctx->gb)) { /* literal */
ctx               133 libavcodec/truemotion2.c             av_log(ctx->avctx, AV_LOG_DEBUG, "Too many literals\n");
ctx               136 libavcodec/truemotion2.c         huff->nums[huff->num] = get_bits_long(&ctx->gb, huff->val_bits);
ctx               142 libavcodec/truemotion2.c         if ((ret2 = tm2_read_tree(ctx, prefix << 1, length + 1, huff)) < 0)
ctx               144 libavcodec/truemotion2.c         if ((ret = tm2_read_tree(ctx, (prefix << 1) | 1, length + 1, huff)) < 0)
ctx               150 libavcodec/truemotion2.c static int tm2_build_huff_table(TM2Context *ctx, TM2Codes *code)
ctx               155 libavcodec/truemotion2.c     huff.val_bits = get_bits(&ctx->gb, 5);
ctx               156 libavcodec/truemotion2.c     huff.max_bits = get_bits(&ctx->gb, 5);
ctx               157 libavcodec/truemotion2.c     huff.min_bits = get_bits(&ctx->gb, 5);
ctx               158 libavcodec/truemotion2.c     huff.nodes    = get_bits(&ctx->gb, 17);
ctx               164 libavcodec/truemotion2.c         av_log(ctx->avctx, AV_LOG_ERROR, "Incorrect tree parameters - literal "
ctx               169 libavcodec/truemotion2.c         av_log(ctx->avctx, AV_LOG_ERROR, "Incorrect number of Huffman tree "
ctx               188 libavcodec/truemotion2.c     res = tm2_read_tree(ctx, 0, 0, &huff);
ctx               191 libavcodec/truemotion2.c         av_log(ctx->avctx, AV_LOG_ERROR, "Got less bits than expected: %i of %i\n",
ctx               196 libavcodec/truemotion2.c         av_log(ctx->avctx, AV_LOG_ERROR, "Got less codes than expected: %i of %i\n",
ctx               209 libavcodec/truemotion2.c             av_log(ctx->avctx, AV_LOG_ERROR, "Cannot build VLC table\n");
ctx               251 libavcodec/truemotion2.c static inline int tm2_read_header(TM2Context *ctx, const uint8_t *buf)
ctx               257 libavcodec/truemotion2.c         avpriv_request_sample(ctx->avctx, "Old TM2 header");
ctx               262 libavcodec/truemotion2.c         av_log(ctx->avctx, AV_LOG_ERROR, "Not a TM2 header: 0x%08"PRIX32"\n",
ctx               268 libavcodec/truemotion2.c static int tm2_read_deltas(TM2Context *ctx, int stream_id)
ctx               273 libavcodec/truemotion2.c     d  = get_bits(&ctx->gb, 9);
ctx               274 libavcodec/truemotion2.c     mb = get_bits(&ctx->gb, 5);
ctx               278 libavcodec/truemotion2.c         av_log(ctx->avctx, AV_LOG_ERROR, "Incorrect delta table: %i deltas x %i bits\n", d, mb);
ctx               283 libavcodec/truemotion2.c         v = get_bits_long(&ctx->gb, mb);
ctx               285 libavcodec/truemotion2.c             ctx->deltas[stream_id][i] = v - (1U << mb);
ctx               287 libavcodec/truemotion2.c             ctx->deltas[stream_id][i] = v;
ctx               290 libavcodec/truemotion2.c         ctx->deltas[stream_id][i] = 0;
ctx               295 libavcodec/truemotion2.c static int tm2_read_stream(TM2Context *ctx, const uint8_t *buf, int stream_id, int buf_size)
ctx               304 libavcodec/truemotion2.c         av_log(ctx->avctx, AV_LOG_ERROR, "not enough space for len left\n");
ctx               316 libavcodec/truemotion2.c         av_log(ctx->avctx, AV_LOG_ERROR, "Error, invalid stream size.\n");
ctx               331 libavcodec/truemotion2.c             init_get_bits(&ctx->gb, buf + pos, (skip - pos) * 8);
ctx               332 libavcodec/truemotion2.c             if ((ret = tm2_read_deltas(ctx, stream_id)) < 0)
ctx               334 libavcodec/truemotion2.c             bytestream2_skip(&gb, ((get_bits_count(&ctx->gb) + 31) >> 5) << 2);
ctx               348 libavcodec/truemotion2.c     init_get_bits(&ctx->gb, buf + pos, (skip - pos) * 8);
ctx               349 libavcodec/truemotion2.c     if ((ret = tm2_build_huff_table(ctx, &codes)) < 0)
ctx               351 libavcodec/truemotion2.c     bytestream2_skip(&gb, ((get_bits_count(&ctx->gb) + 31) >> 5) << 2);
ctx               356 libavcodec/truemotion2.c         av_log(ctx->avctx, AV_LOG_ERROR, "Incorrect number of tokens: %i\n", toks);
ctx               360 libavcodec/truemotion2.c     ret = av_reallocp_array(&ctx->tokens[stream_id], toks, sizeof(int));
ctx               362 libavcodec/truemotion2.c         ctx->tok_lens[stream_id] = 0;
ctx               365 libavcodec/truemotion2.c     ctx->tok_lens[stream_id] = toks;
ctx               373 libavcodec/truemotion2.c         init_get_bits(&ctx->gb, buf + pos, (skip - pos) * 8);
ctx               375 libavcodec/truemotion2.c             if (get_bits_left(&ctx->gb) <= 0) {
ctx               376 libavcodec/truemotion2.c                 av_log(ctx->avctx, AV_LOG_ERROR, "Incorrect number of tokens: %i\n", toks);
ctx               380 libavcodec/truemotion2.c             ctx->tokens[stream_id][i] = tm2_get_token(&ctx->gb, &codes);
ctx               381 libavcodec/truemotion2.c             if (stream_id <= TM2_MOT && ctx->tokens[stream_id][i] >= TM2_DELTAS || ctx->tokens[stream_id][i]<0) {
ctx               382 libavcodec/truemotion2.c                 av_log(ctx->avctx, AV_LOG_ERROR, "Invalid delta token index %d for type %d, n=%d\n",
ctx               383 libavcodec/truemotion2.c                        ctx->tokens[stream_id][i], stream_id, i);
ctx               394 libavcodec/truemotion2.c             ctx->tokens[stream_id][i] = codes.recode[0];
ctx               395 libavcodec/truemotion2.c             if (stream_id <= TM2_MOT && ctx->tokens[stream_id][i] >= TM2_DELTAS) {
ctx               396 libavcodec/truemotion2.c                 av_log(ctx->avctx, AV_LOG_ERROR, "Invalid delta token index %d for type %d, n=%d\n",
ctx               397 libavcodec/truemotion2.c                        ctx->tokens[stream_id][i], stream_id, i);
ctx               411 libavcodec/truemotion2.c static inline int GET_TOK(TM2Context *ctx,int type)
ctx               413 libavcodec/truemotion2.c     if (ctx->tok_ptrs[type] >= ctx->tok_lens[type]) {
ctx               414 libavcodec/truemotion2.c         av_log(ctx->avctx, AV_LOG_ERROR, "Read token from stream %i out of bounds (%i>=%i)\n", type, ctx->tok_ptrs[type], ctx->tok_lens[type]);
ctx               415 libavcodec/truemotion2.c         ctx->error = 1;
ctx               419 libavcodec/truemotion2.c         if (ctx->tokens[type][ctx->tok_ptrs[type]] >= TM2_DELTAS) {
ctx               420 libavcodec/truemotion2.c             av_log(ctx->avctx, AV_LOG_ERROR, "token %d is too large\n", ctx->tokens[type][ctx->tok_ptrs[type]]);
ctx               423 libavcodec/truemotion2.c         return ctx->deltas[type][ctx->tokens[type][ctx->tok_ptrs[type]++]];
ctx               425 libavcodec/truemotion2.c     return ctx->tokens[type][ctx->tok_ptrs[type]++];
ctx               436 libavcodec/truemotion2.c     Ystride = ctx->y_stride;\
ctx               437 libavcodec/truemotion2.c     Vstride = ctx->uv_stride;\
ctx               438 libavcodec/truemotion2.c     Ustride = ctx->uv_stride;\
ctx               439 libavcodec/truemotion2.c     Y = (ctx->cur?ctx->Y2:ctx->Y1) + by * 4 * Ystride + bx * 4;\
ctx               440 libavcodec/truemotion2.c     V = (ctx->cur?ctx->V2:ctx->V1) + by * 2 * Vstride + bx * 2;\
ctx               441 libavcodec/truemotion2.c     U = (ctx->cur?ctx->U2:ctx->U1) + by * 2 * Ustride + bx * 2;\
ctx               442 libavcodec/truemotion2.c     last = ctx->last + bx * 4;\
ctx               443 libavcodec/truemotion2.c     clast = ctx->clast + bx * 4;
ctx               453 libavcodec/truemotion2.c     Yo = (ctx->cur?ctx->Y1:ctx->Y2) + by * 4 * oYstride + bx * 4;\
ctx               454 libavcodec/truemotion2.c     Vo = (ctx->cur?ctx->V1:ctx->V2) + by * 2 * oVstride + bx * 2;\
ctx               455 libavcodec/truemotion2.c     Uo = (ctx->cur?ctx->U1:ctx->U2) + by * 2 * oUstride + bx * 2;
ctx               465 libavcodec/truemotion2.c static inline void tm2_apply_deltas(TM2Context *ctx, int* Y, int stride, int *deltas, int *last)
ctx               471 libavcodec/truemotion2.c         ct = ctx->D[j];
ctx               479 libavcodec/truemotion2.c         ctx->D[j] = ct;
ctx               515 libavcodec/truemotion2.c static inline void tm2_hi_res_block(TM2Context *ctx, AVFrame *pic, int bx, int by)
ctx               523 libavcodec/truemotion2.c         deltas[i]     = GET_TOK(ctx, TM2_C_HI);
ctx               524 libavcodec/truemotion2.c         deltas[i + 4] = GET_TOK(ctx, TM2_C_HI);
ctx               526 libavcodec/truemotion2.c     tm2_high_chroma(U, Ustride, clast,     ctx->CD,     deltas);
ctx               527 libavcodec/truemotion2.c     tm2_high_chroma(V, Vstride, clast + 2, ctx->CD + 2, deltas + 4);
ctx               531 libavcodec/truemotion2.c         deltas[i] = GET_TOK(ctx, TM2_L_HI);
ctx               533 libavcodec/truemotion2.c     tm2_apply_deltas(ctx, Y, Ystride, deltas, last);
ctx               536 libavcodec/truemotion2.c static inline void tm2_med_res_block(TM2Context *ctx, AVFrame *pic, int bx, int by)
ctx               543 libavcodec/truemotion2.c     deltas[0] = GET_TOK(ctx, TM2_C_LO);
ctx               545 libavcodec/truemotion2.c     tm2_low_chroma(U, Ustride, clast, ctx->CD, deltas, bx);
ctx               547 libavcodec/truemotion2.c     deltas[0] = GET_TOK(ctx, TM2_C_LO);
ctx               549 libavcodec/truemotion2.c     tm2_low_chroma(V, Vstride, clast + 2, ctx->CD + 2, deltas, bx);
ctx               553 libavcodec/truemotion2.c         deltas[i] = GET_TOK(ctx, TM2_L_HI);
ctx               555 libavcodec/truemotion2.c     tm2_apply_deltas(ctx, Y, Ystride, deltas, last);
ctx               558 libavcodec/truemotion2.c static inline void tm2_low_res_block(TM2Context *ctx, AVFrame *pic, int bx, int by)
ctx               566 libavcodec/truemotion2.c     deltas[0] = GET_TOK(ctx, TM2_C_LO);
ctx               568 libavcodec/truemotion2.c     tm2_low_chroma(U, Ustride, clast, ctx->CD, deltas, bx);
ctx               570 libavcodec/truemotion2.c     deltas[0] = GET_TOK(ctx, TM2_C_LO);
ctx               572 libavcodec/truemotion2.c     tm2_low_chroma(V, Vstride, clast + 2, ctx->CD + 2, deltas, bx);
ctx               578 libavcodec/truemotion2.c     deltas[ 0] = GET_TOK(ctx, TM2_L_LO);
ctx               579 libavcodec/truemotion2.c     deltas[ 2] = GET_TOK(ctx, TM2_L_LO);
ctx               580 libavcodec/truemotion2.c     deltas[ 8] = GET_TOK(ctx, TM2_L_LO);
ctx               581 libavcodec/truemotion2.c     deltas[10] = GET_TOK(ctx, TM2_L_LO);
ctx               584 libavcodec/truemotion2.c         last[0] = (int)((unsigned)last[-1] - ctx->D[0] - ctx->D[1] - ctx->D[2] - ctx->D[3] + last[1]) >> 1;
ctx               586 libavcodec/truemotion2.c         last[0] = (int)((unsigned)last[1]  - ctx->D[0] - ctx->D[1] - ctx->D[2] - ctx->D[3])>> 1;
ctx               589 libavcodec/truemotion2.c     t1 = ctx->D[0] + (unsigned)ctx->D[1];
ctx               590 libavcodec/truemotion2.c     ctx->D[0] = t1 >> 1;
ctx               591 libavcodec/truemotion2.c     ctx->D[1] = t1 - (t1 >> 1);
ctx               592 libavcodec/truemotion2.c     t2 = ctx->D[2] + (unsigned)ctx->D[3];
ctx               593 libavcodec/truemotion2.c     ctx->D[2] = t2 >> 1;
ctx               594 libavcodec/truemotion2.c     ctx->D[3] = t2 - (t2 >> 1);
ctx               596 libavcodec/truemotion2.c     tm2_apply_deltas(ctx, Y, Ystride, deltas, last);
ctx               599 libavcodec/truemotion2.c static inline void tm2_null_res_block(TM2Context *ctx, AVFrame *pic, int bx, int by)
ctx               610 libavcodec/truemotion2.c     tm2_low_chroma(U, Ustride, clast, ctx->CD, deltas, bx);
ctx               613 libavcodec/truemotion2.c     tm2_low_chroma(V, Vstride, clast + 2, ctx->CD + 2, deltas, bx);
ctx               619 libavcodec/truemotion2.c     ct = (unsigned)ctx->D[0] + ctx->D[1] + ctx->D[2] + ctx->D[3];
ctx               635 libavcodec/truemotion2.c         ctx->D[0] = (tp + (ct >> 2)) - left;
ctx               636 libavcodec/truemotion2.c         left     += ctx->D[0];
ctx               637 libavcodec/truemotion2.c         ctx->D[1] = (tp + (ct >> 1)) - left;
ctx               638 libavcodec/truemotion2.c         left     += ctx->D[1];
ctx               639 libavcodec/truemotion2.c         ctx->D[2] = ((tp + ct) - (ct >> 2)) - left;
ctx               640 libavcodec/truemotion2.c         left     += ctx->D[2];
ctx               641 libavcodec/truemotion2.c         ctx->D[3] = (tp + ct) - left;
ctx               643 libavcodec/truemotion2.c     tm2_apply_deltas(ctx, Y, Ystride, deltas, last);
ctx               646 libavcodec/truemotion2.c static inline void tm2_still_block(TM2Context *ctx, AVFrame *pic, int bx, int by)
ctx               662 libavcodec/truemotion2.c     TM2_RECALC_BLOCK(U, Ustride, clast, ctx->CD);
ctx               663 libavcodec/truemotion2.c     TM2_RECALC_BLOCK(V, Vstride, (clast + 2), (ctx->CD + 2));
ctx               666 libavcodec/truemotion2.c     ctx->D[0] = Yo[3] - last[3];
ctx               667 libavcodec/truemotion2.c     ctx->D[1] = Yo[3 + oYstride] - Yo[3];
ctx               668 libavcodec/truemotion2.c     ctx->D[2] = Yo[3 + oYstride * 2] - Yo[3 + oYstride];
ctx               669 libavcodec/truemotion2.c     ctx->D[3] = Yo[3 + oYstride * 3] - Yo[3 + oYstride * 2];
ctx               681 libavcodec/truemotion2.c static inline void tm2_update_block(TM2Context *ctx, AVFrame *pic, int bx, int by)
ctx               690 libavcodec/truemotion2.c             U[i] = Uo[i] + GET_TOK(ctx, TM2_UPD);
ctx               691 libavcodec/truemotion2.c             V[i] = Vo[i] + GET_TOK(ctx, TM2_UPD);
ctx               700 libavcodec/truemotion2.c     TM2_RECALC_BLOCK(U, Ustride, clast, ctx->CD);
ctx               701 libavcodec/truemotion2.c     TM2_RECALC_BLOCK(V, Vstride, (clast + 2), (ctx->CD + 2));
ctx               704 libavcodec/truemotion2.c     ctx->D[0] = Yo[3] - last[3];
ctx               705 libavcodec/truemotion2.c     ctx->D[1] = Yo[3 + oYstride] - Yo[3];
ctx               706 libavcodec/truemotion2.c     ctx->D[2] = Yo[3 + oYstride * 2] - Yo[3 + oYstride];
ctx               707 libavcodec/truemotion2.c     ctx->D[3] = Yo[3 + oYstride * 3] - Yo[3 + oYstride * 2];
ctx               712 libavcodec/truemotion2.c             Y[i]    = Yo[i] + (unsigned)GET_TOK(ctx, TM2_UPD);
ctx               715 libavcodec/truemotion2.c         ctx->D[j] = last[3] - d;
ctx               721 libavcodec/truemotion2.c static inline void tm2_motion_block(TM2Context *ctx, AVFrame *pic, int bx, int by)
ctx               727 libavcodec/truemotion2.c     mx = GET_TOK(ctx, TM2_MOT);
ctx               728 libavcodec/truemotion2.c     my = GET_TOK(ctx, TM2_MOT);
ctx               729 libavcodec/truemotion2.c     mx = av_clip(mx, -(bx * 4 + 4), ctx->avctx->width  - bx * 4);
ctx               730 libavcodec/truemotion2.c     my = av_clip(my, -(by * 4 + 4), ctx->avctx->height - by * 4);
ctx               732 libavcodec/truemotion2.c     if (4*bx+mx<0 || 4*by+my<0 || 4*bx+mx+4 > ctx->avctx->width || 4*by+my+4 > ctx->avctx->height) {
ctx               733 libavcodec/truemotion2.c         av_log(ctx->avctx, AV_LOG_ERROR, "MV out of picture\n");
ctx               754 libavcodec/truemotion2.c     TM2_RECALC_BLOCK(U, Ustride, clast, ctx->CD);
ctx               755 libavcodec/truemotion2.c     TM2_RECALC_BLOCK(V, Vstride, (clast + 2), (ctx->CD + 2));
ctx               767 libavcodec/truemotion2.c     ctx->D[0] = (unsigned)Y[3] - last[3];
ctx               768 libavcodec/truemotion2.c     ctx->D[1] = (unsigned)Y[3 + Ystride] - Y[3];
ctx               769 libavcodec/truemotion2.c     ctx->D[2] = (unsigned)Y[3 + Ystride * 2] - Y[3 + Ystride];
ctx               770 libavcodec/truemotion2.c     ctx->D[3] = (unsigned)Y[3 + Ystride * 3] - Y[3 + Ystride * 2];
ctx               775 libavcodec/truemotion2.c static int tm2_decode_blocks(TM2Context *ctx, AVFrame *p)
ctx               778 libavcodec/truemotion2.c     int w = ctx->avctx->width, h = ctx->avctx->height, bw = w >> 2, bh = h >> 2, cw = w >> 1;
ctx               785 libavcodec/truemotion2.c         ctx->tok_ptrs[i] = 0;
ctx               787 libavcodec/truemotion2.c     if (ctx->tok_lens[TM2_TYPE]<bw*bh) {
ctx               788 libavcodec/truemotion2.c         av_log(ctx->avctx,AV_LOG_ERROR,"Got %i tokens for %i blocks\n",ctx->tok_lens[TM2_TYPE],bw*bh);
ctx               792 libavcodec/truemotion2.c     memset(ctx->last, 0, 4 * bw * sizeof(int));
ctx               793 libavcodec/truemotion2.c     memset(ctx->clast, 0, 4 * bw * sizeof(int));
ctx               796 libavcodec/truemotion2.c         memset(ctx->D, 0, 4 * sizeof(int));
ctx               797 libavcodec/truemotion2.c         memset(ctx->CD, 0, 4 * sizeof(int));
ctx               799 libavcodec/truemotion2.c             type = GET_TOK(ctx, TM2_TYPE);
ctx               802 libavcodec/truemotion2.c                 tm2_hi_res_block(ctx, p, i, j);
ctx               805 libavcodec/truemotion2.c                 tm2_med_res_block(ctx, p, i, j);
ctx               808 libavcodec/truemotion2.c                 tm2_low_res_block(ctx, p, i, j);
ctx               811 libavcodec/truemotion2.c                 tm2_null_res_block(ctx, p, i, j);
ctx               814 libavcodec/truemotion2.c                 tm2_update_block(ctx, p, i, j);
ctx               818 libavcodec/truemotion2.c                 tm2_still_block(ctx, p, i, j);
ctx               822 libavcodec/truemotion2.c                 tm2_motion_block(ctx, p, i, j);
ctx               826 libavcodec/truemotion2.c                 av_log(ctx->avctx, AV_LOG_ERROR, "Skipping unknown block type %i\n", type);
ctx               828 libavcodec/truemotion2.c             if (ctx->error)
ctx               834 libavcodec/truemotion2.c     Y = (ctx->cur?ctx->Y2:ctx->Y1);
ctx               835 libavcodec/truemotion2.c     U = (ctx->cur?ctx->U2:ctx->U1);
ctx               836 libavcodec/truemotion2.c     V = (ctx->cur?ctx->V2:ctx->V1);
ctx               852 libavcodec/truemotion2.c             memcpy(Y - 4 - 1 * ctx->y_stride, Y - 4, ctx->y_stride);
ctx               853 libavcodec/truemotion2.c             memcpy(Y - 4 - 2 * ctx->y_stride, Y - 4, ctx->y_stride);
ctx               854 libavcodec/truemotion2.c             memcpy(Y - 4 - 3 * ctx->y_stride, Y - 4, ctx->y_stride);
ctx               855 libavcodec/truemotion2.c             memcpy(Y - 4 - 4 * ctx->y_stride, Y - 4, ctx->y_stride);
ctx               857 libavcodec/truemotion2.c             memcpy(Y - 4 + 1 * ctx->y_stride, Y - 4, ctx->y_stride);
ctx               858 libavcodec/truemotion2.c             memcpy(Y - 4 + 2 * ctx->y_stride, Y - 4, ctx->y_stride);
ctx               859 libavcodec/truemotion2.c             memcpy(Y - 4 + 3 * ctx->y_stride, Y - 4, ctx->y_stride);
ctx               860 libavcodec/truemotion2.c             memcpy(Y - 4 + 4 * ctx->y_stride, Y - 4, ctx->y_stride);
ctx               863 libavcodec/truemotion2.c         Y += ctx->y_stride;
ctx               873 libavcodec/truemotion2.c                 memcpy(U - 2 - 1 * ctx->uv_stride, U - 2, ctx->uv_stride);
ctx               874 libavcodec/truemotion2.c                 memcpy(V - 2 - 1 * ctx->uv_stride, V - 2, ctx->uv_stride);
ctx               875 libavcodec/truemotion2.c                 memcpy(U - 2 - 2 * ctx->uv_stride, U - 2, ctx->uv_stride);
ctx               876 libavcodec/truemotion2.c                 memcpy(V - 2 - 2 * ctx->uv_stride, V - 2, ctx->uv_stride);
ctx               878 libavcodec/truemotion2.c                 memcpy(U - 2 + 1 * ctx->uv_stride, U - 2, ctx->uv_stride);
ctx               879 libavcodec/truemotion2.c                 memcpy(V - 2 + 1 * ctx->uv_stride, V - 2, ctx->uv_stride);
ctx               880 libavcodec/truemotion2.c                 memcpy(U - 2 + 2 * ctx->uv_stride, U - 2, ctx->uv_stride);
ctx               881 libavcodec/truemotion2.c                 memcpy(V - 2 + 2 * ctx->uv_stride, V - 2, ctx->uv_stride);
ctx               884 libavcodec/truemotion2.c             U += ctx->uv_stride;
ctx               885 libavcodec/truemotion2.c             V += ctx->uv_stride;
ctx               500 libavcodec/utils.c static int64_t get_bit_rate(AVCodecContext *ctx)
ctx               505 libavcodec/utils.c     switch (ctx->codec_type) {
ctx               510 libavcodec/utils.c         bit_rate = ctx->bit_rate;
ctx               513 libavcodec/utils.c         bits_per_sample = av_get_bits_per_sample(ctx->codec_id);
ctx               514 libavcodec/utils.c         bit_rate = bits_per_sample ? ctx->sample_rate * (int64_t)ctx->channels * bits_per_sample : ctx->bit_rate;
ctx              2260 libavcodec/utils.c int ff_int_from_list_or_default(void *ctx, const char * val_name, int val,
ctx              2274 libavcodec/utils.c     av_log(ctx, AV_LOG_DEBUG,
ctx               496 libavcodec/v4l2_buffers.c     V4L2Context *ctx = avbuf->context;
ctx               500 libavcodec/v4l2_buffers.c     avbuf->buf.type = ctx->type;
ctx               503 libavcodec/v4l2_buffers.c     if (V4L2_TYPE_IS_MULTIPLANAR(ctx->type)) {
ctx               512 libavcodec/v4l2_buffers.c     if (V4L2_TYPE_IS_MULTIPLANAR(ctx->type)) {
ctx               524 libavcodec/v4l2_buffers.c         avbuf->plane_info[i].bytesperline = V4L2_TYPE_IS_MULTIPLANAR(ctx->type) ?
ctx               525 libavcodec/v4l2_buffers.c             ctx->format.fmt.pix_mp.plane_fmt[i].bytesperline :
ctx               526 libavcodec/v4l2_buffers.c             ctx->format.fmt.pix.bytesperline;
ctx               528 libavcodec/v4l2_buffers.c         if (V4L2_TYPE_IS_MULTIPLANAR(ctx->type)) {
ctx               546 libavcodec/v4l2_buffers.c     if (V4L2_TYPE_IS_OUTPUT(ctx->type))
ctx               549 libavcodec/v4l2_buffers.c     if (V4L2_TYPE_IS_MULTIPLANAR(ctx->type)) {
ctx                44 libavcodec/v4l2_context.c static inline V4L2m2mContext *ctx_to_m2mctx(V4L2Context *ctx)
ctx                46 libavcodec/v4l2_context.c     return V4L2_TYPE_IS_OUTPUT(ctx->type) ?
ctx                47 libavcodec/v4l2_context.c         container_of(ctx, V4L2m2mContext, output) :
ctx                48 libavcodec/v4l2_context.c         container_of(ctx, V4L2m2mContext, capture);
ctx                51 libavcodec/v4l2_context.c static inline AVCodecContext *logger(V4L2Context *ctx)
ctx                53 libavcodec/v4l2_context.c     return ctx_to_m2mctx(ctx)->avctx;
ctx                66 libavcodec/v4l2_context.c static AVRational v4l2_get_sar(V4L2Context *ctx)
ctx                73 libavcodec/v4l2_context.c     cropcap.type = ctx->type;
ctx                75 libavcodec/v4l2_context.c     ret = ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_CROPCAP, &cropcap);
ctx                84 libavcodec/v4l2_context.c static inline unsigned int v4l2_resolution_changed(V4L2Context *ctx, struct v4l2_format *fmt2)
ctx                86 libavcodec/v4l2_context.c     struct v4l2_format *fmt1 = &ctx->format;
ctx                87 libavcodec/v4l2_context.c     int ret =  V4L2_TYPE_IS_MULTIPLANAR(ctx->type) ?
ctx                95 libavcodec/v4l2_context.c         av_log(logger(ctx), AV_LOG_DEBUG, "%s changed (%dx%d) -> (%dx%d)\n",
ctx                96 libavcodec/v4l2_context.c             ctx->name,
ctx               103 libavcodec/v4l2_context.c static inline int v4l2_type_supported(V4L2Context *ctx)
ctx               105 libavcodec/v4l2_context.c     return ctx->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE ||
ctx               106 libavcodec/v4l2_context.c         ctx->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE ||
ctx               107 libavcodec/v4l2_context.c         ctx->type == V4L2_BUF_TYPE_VIDEO_CAPTURE ||
ctx               108 libavcodec/v4l2_context.c         ctx->type == V4L2_BUF_TYPE_VIDEO_OUTPUT;
ctx               111 libavcodec/v4l2_context.c static inline int v4l2_get_framesize_compressed(V4L2Context* ctx, int width, int height)
ctx               113 libavcodec/v4l2_context.c     V4L2m2mContext *s = ctx_to_m2mctx(ctx);
ctx               125 libavcodec/v4l2_context.c static inline void v4l2_save_to_context(V4L2Context* ctx, struct v4l2_format_update *fmt)
ctx               127 libavcodec/v4l2_context.c     ctx->format.type = ctx->type;
ctx               130 libavcodec/v4l2_context.c         ctx->av_pix_fmt = fmt->av_fmt;
ctx               132 libavcodec/v4l2_context.c     if (V4L2_TYPE_IS_MULTIPLANAR(ctx->type)) {
ctx               134 libavcodec/v4l2_context.c         ctx->format.fmt.pix_mp.height = ctx->height;
ctx               135 libavcodec/v4l2_context.c         ctx->format.fmt.pix_mp.width = ctx->width;
ctx               137 libavcodec/v4l2_context.c             ctx->format.fmt.pix_mp.pixelformat = fmt->v4l2_fmt;
ctx               140 libavcodec/v4l2_context.c             ctx->format.fmt.pix_mp.plane_fmt[0].sizeimage =
ctx               141 libavcodec/v4l2_context.c                 v4l2_get_framesize_compressed(ctx, ctx->width, ctx->height);
ctx               144 libavcodec/v4l2_context.c         ctx->format.fmt.pix.height = ctx->height;
ctx               145 libavcodec/v4l2_context.c         ctx->format.fmt.pix.width = ctx->width;
ctx               147 libavcodec/v4l2_context.c             ctx->format.fmt.pix.pixelformat = fmt->v4l2_fmt;
ctx               150 libavcodec/v4l2_context.c             ctx->format.fmt.pix.sizeimage =
ctx               151 libavcodec/v4l2_context.c                 v4l2_get_framesize_compressed(ctx, ctx->width, ctx->height);
ctx               161 libavcodec/v4l2_context.c static int v4l2_handle_event(V4L2Context *ctx)
ctx               163 libavcodec/v4l2_context.c     V4L2m2mContext *s = ctx_to_m2mctx(ctx);
ctx               171 libavcodec/v4l2_context.c         av_log(logger(ctx), AV_LOG_ERROR, "%s VIDIOC_DQEVENT\n", ctx->name);
ctx               176 libavcodec/v4l2_context.c         ctx->done = 1;
ctx               185 libavcodec/v4l2_context.c         av_log(logger(ctx), AV_LOG_ERROR, "%s VIDIOC_G_FMT\n", s->output.name);
ctx               191 libavcodec/v4l2_context.c         av_log(logger(ctx), AV_LOG_ERROR, "%s VIDIOC_G_FMT\n", s->capture.name);
ctx               215 libavcodec/v4l2_context.c             av_log(logger(ctx), AV_LOG_ERROR, "v4l2_m2m_codec_full_reinit\n");
ctx               225 libavcodec/v4l2_context.c             av_log(logger(ctx), AV_LOG_WARNING, "update avcodec height and width\n");
ctx               229 libavcodec/v4l2_context.c             av_log(logger(ctx), AV_LOG_ERROR, "v4l2_m2m_codec_reinit\n");
ctx               243 libavcodec/v4l2_context.c static int v4l2_stop_decode(V4L2Context *ctx)
ctx               251 libavcodec/v4l2_context.c     ret = ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_DECODER_CMD, &cmd);
ctx               255 libavcodec/v4l2_context.c             return ff_v4l2_context_set_status(ctx, VIDIOC_STREAMOFF);
ctx               263 libavcodec/v4l2_context.c static int v4l2_stop_encode(V4L2Context *ctx)
ctx               271 libavcodec/v4l2_context.c     ret = ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_ENCODER_CMD, &cmd);
ctx               275 libavcodec/v4l2_context.c             return ff_v4l2_context_set_status(ctx, VIDIOC_STREAMOFF);
ctx               283 libavcodec/v4l2_context.c static V4L2Buffer* v4l2_dequeue_v4l2buf(V4L2Context *ctx, int timeout)
ctx               290 libavcodec/v4l2_context.c         .fd = ctx_to_m2mctx(ctx)->fd,
ctx               294 libavcodec/v4l2_context.c     if (!V4L2_TYPE_IS_OUTPUT(ctx->type) && ctx->buffers) {
ctx               295 libavcodec/v4l2_context.c         for (i = 0; i < ctx->num_buffers; i++) {
ctx               296 libavcodec/v4l2_context.c             if (ctx->buffers[i].status == V4L2BUF_IN_DRIVER)
ctx               299 libavcodec/v4l2_context.c         if (i == ctx->num_buffers)
ctx               300 libavcodec/v4l2_context.c             av_log(logger(ctx), AV_LOG_WARNING, "All capture buffers returned to "
ctx               307 libavcodec/v4l2_context.c     if (!V4L2_TYPE_IS_OUTPUT(ctx->type) && ctx_to_m2mctx(ctx)->draining) {
ctx               308 libavcodec/v4l2_context.c         for (i = 0; i < ctx->num_buffers; i++) {
ctx               312 libavcodec/v4l2_context.c             if (!ctx->buffers)
ctx               315 libavcodec/v4l2_context.c             if (ctx->buffers[i].status == V4L2BUF_IN_DRIVER)
ctx               318 libavcodec/v4l2_context.c         ctx->done = 1;
ctx               323 libavcodec/v4l2_context.c     if (V4L2_TYPE_IS_OUTPUT(ctx->type))
ctx               327 libavcodec/v4l2_context.c         if (ctx_to_m2mctx(ctx)->draining)
ctx               345 libavcodec/v4l2_context.c             for (i = 0; i < ctx->num_buffers; i++) {
ctx               346 libavcodec/v4l2_context.c                 if (ctx->buffers[i].status != V4L2BUF_AVAILABLE)
ctx               347 libavcodec/v4l2_context.c                     av_log(logger(ctx), AV_LOG_WARNING, "%s POLLERR\n", ctx->name);
ctx               351 libavcodec/v4l2_context.c             av_log(logger(ctx), AV_LOG_WARNING, "%s POLLERR\n", ctx->name);
ctx               358 libavcodec/v4l2_context.c         ret = v4l2_handle_event(ctx);
ctx               361 libavcodec/v4l2_context.c             ctx->done = 1;
ctx               375 libavcodec/v4l2_context.c         if (!V4L2_TYPE_IS_OUTPUT(ctx->type)) {
ctx               390 libavcodec/v4l2_context.c         buf.type = ctx->type;
ctx               391 libavcodec/v4l2_context.c         if (V4L2_TYPE_IS_MULTIPLANAR(ctx->type)) {
ctx               397 libavcodec/v4l2_context.c         ret = ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_DQBUF, &buf);
ctx               400 libavcodec/v4l2_context.c                 ctx->done = 1;
ctx               402 libavcodec/v4l2_context.c                     av_log(logger(ctx), AV_LOG_DEBUG, "%s VIDIOC_DQBUF, errno (%s)\n",
ctx               403 libavcodec/v4l2_context.c                         ctx->name, av_err2str(AVERROR(errno)));
ctx               408 libavcodec/v4l2_context.c         if (ctx_to_m2mctx(ctx)->draining && !V4L2_TYPE_IS_OUTPUT(ctx->type)) {
ctx               412 libavcodec/v4l2_context.c                 ctx->done = 1;
ctx               417 libavcodec/v4l2_context.c                 ctx->done = 1;
ctx               421 libavcodec/v4l2_context.c         avbuf = &ctx->buffers[buf.index];
ctx               424 libavcodec/v4l2_context.c         if (V4L2_TYPE_IS_MULTIPLANAR(ctx->type)) {
ctx               434 libavcodec/v4l2_context.c static V4L2Buffer* v4l2_getfree_v4l2buf(V4L2Context *ctx)
ctx               440 libavcodec/v4l2_context.c     if (V4L2_TYPE_IS_OUTPUT(ctx->type)) {
ctx               442 libavcodec/v4l2_context.c           } while (v4l2_dequeue_v4l2buf(ctx, timeout));
ctx               445 libavcodec/v4l2_context.c     for (i = 0; i < ctx->num_buffers; i++) {
ctx               446 libavcodec/v4l2_context.c         if (ctx->buffers[i].status == V4L2BUF_AVAILABLE)
ctx               447 libavcodec/v4l2_context.c             return &ctx->buffers[i];
ctx               453 libavcodec/v4l2_context.c static int v4l2_release_buffers(V4L2Context* ctx)
ctx               457 libavcodec/v4l2_context.c         .type = ctx->type,
ctx               462 libavcodec/v4l2_context.c     for (i = 0; i < ctx->num_buffers; i++) {
ctx               463 libavcodec/v4l2_context.c         V4L2Buffer *buffer = &ctx->buffers[i];
ctx               469 libavcodec/v4l2_context.c                     av_log(logger(ctx), AV_LOG_ERROR, "%s unmap plane (%s))\n", ctx->name, av_err2str(AVERROR(errno)));
ctx               473 libavcodec/v4l2_context.c     return ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_REQBUFS, &req);
ctx               476 libavcodec/v4l2_context.c static inline int v4l2_try_raw_format(V4L2Context* ctx, enum AVPixelFormat pixfmt)
ctx               478 libavcodec/v4l2_context.c     struct v4l2_format *fmt = &ctx->format;
ctx               486 libavcodec/v4l2_context.c     if (V4L2_TYPE_IS_MULTIPLANAR(ctx->type))
ctx               491 libavcodec/v4l2_context.c     fmt->type = ctx->type;
ctx               493 libavcodec/v4l2_context.c     ret = ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_TRY_FMT, fmt);
ctx               500 libavcodec/v4l2_context.c static int v4l2_get_raw_format(V4L2Context* ctx, enum AVPixelFormat *p)
ctx               502 libavcodec/v4l2_context.c     enum AVPixelFormat pixfmt = ctx->av_pix_fmt;
ctx               507 libavcodec/v4l2_context.c     fdesc.type = ctx->type;
ctx               510 libavcodec/v4l2_context.c         ret = v4l2_try_raw_format(ctx, pixfmt);
ctx               516 libavcodec/v4l2_context.c         ret = ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_ENUM_FMT, &fdesc);
ctx               521 libavcodec/v4l2_context.c         ret = v4l2_try_raw_format(ctx, pixfmt);
ctx               535 libavcodec/v4l2_context.c static int v4l2_get_coded_format(V4L2Context* ctx, uint32_t *p)
ctx               542 libavcodec/v4l2_context.c     v4l2_fmt = ff_v4l2_format_avcodec_to_v4l2(ctx->av_codec_id);
ctx               548 libavcodec/v4l2_context.c     fdesc.type = ctx->type;
ctx               551 libavcodec/v4l2_context.c         ret = ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_ENUM_FMT, &fdesc);
ctx               572 libavcodec/v4l2_context.c int ff_v4l2_context_set_status(V4L2Context* ctx, uint32_t cmd)
ctx               574 libavcodec/v4l2_context.c     int type = ctx->type;
ctx               577 libavcodec/v4l2_context.c     ret = ioctl(ctx_to_m2mctx(ctx)->fd, cmd, &type);
ctx               581 libavcodec/v4l2_context.c     ctx->streamon = (cmd == VIDIOC_STREAMON);
ctx               586 libavcodec/v4l2_context.c int ff_v4l2_context_enqueue_frame(V4L2Context* ctx, const AVFrame* frame)
ctx               588 libavcodec/v4l2_context.c     V4L2m2mContext *s = ctx_to_m2mctx(ctx);
ctx               593 libavcodec/v4l2_context.c         ret = v4l2_stop_encode(ctx);
ctx               595 libavcodec/v4l2_context.c             av_log(logger(ctx), AV_LOG_ERROR, "%s stop_encode\n", ctx->name);
ctx               600 libavcodec/v4l2_context.c     avbuf = v4l2_getfree_v4l2buf(ctx);
ctx               611 libavcodec/v4l2_context.c int ff_v4l2_context_enqueue_packet(V4L2Context* ctx, const AVPacket* pkt)
ctx               613 libavcodec/v4l2_context.c     V4L2m2mContext *s = ctx_to_m2mctx(ctx);
ctx               618 libavcodec/v4l2_context.c         ret = v4l2_stop_decode(ctx);
ctx               620 libavcodec/v4l2_context.c             av_log(logger(ctx), AV_LOG_ERROR, "%s stop_decode\n", ctx->name);
ctx               625 libavcodec/v4l2_context.c     avbuf = v4l2_getfree_v4l2buf(ctx);
ctx               636 libavcodec/v4l2_context.c int ff_v4l2_context_dequeue_frame(V4L2Context* ctx, AVFrame* frame, int timeout)
ctx               645 libavcodec/v4l2_context.c     avbuf = v4l2_dequeue_v4l2buf(ctx, timeout);
ctx               647 libavcodec/v4l2_context.c         if (ctx->done)
ctx               656 libavcodec/v4l2_context.c int ff_v4l2_context_dequeue_packet(V4L2Context* ctx, AVPacket* pkt)
ctx               665 libavcodec/v4l2_context.c     avbuf = v4l2_dequeue_v4l2buf(ctx, -1);
ctx               667 libavcodec/v4l2_context.c         if (ctx->done)
ctx               676 libavcodec/v4l2_context.c int ff_v4l2_context_get_format(V4L2Context* ctx, int probe)
ctx               681 libavcodec/v4l2_context.c     if  (ctx->av_codec_id == AV_CODEC_ID_RAWVIDEO) {
ctx               682 libavcodec/v4l2_context.c         ret = v4l2_get_raw_format(ctx, &fmt.av_fmt);
ctx               687 libavcodec/v4l2_context.c         v4l2_save_to_context(ctx, &fmt);
ctx               693 libavcodec/v4l2_context.c     ret = v4l2_get_coded_format(ctx, &fmt.v4l2_fmt);
ctx               698 libavcodec/v4l2_context.c     v4l2_save_to_context(ctx, &fmt);
ctx               700 libavcodec/v4l2_context.c     return ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_TRY_FMT, &ctx->format);
ctx               703 libavcodec/v4l2_context.c int ff_v4l2_context_set_format(V4L2Context* ctx)
ctx               705 libavcodec/v4l2_context.c     return ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_S_FMT, &ctx->format);
ctx               708 libavcodec/v4l2_context.c void ff_v4l2_context_release(V4L2Context* ctx)
ctx               712 libavcodec/v4l2_context.c     if (!ctx->buffers)
ctx               715 libavcodec/v4l2_context.c     ret = v4l2_release_buffers(ctx);
ctx               717 libavcodec/v4l2_context.c         av_log(logger(ctx), AV_LOG_WARNING, "V4L2 failed to unmap the %s buffers\n", ctx->name);
ctx               719 libavcodec/v4l2_context.c     av_freep(&ctx->buffers);
ctx               722 libavcodec/v4l2_context.c int ff_v4l2_context_init(V4L2Context* ctx)
ctx               724 libavcodec/v4l2_context.c     V4L2m2mContext *s = ctx_to_m2mctx(ctx);
ctx               728 libavcodec/v4l2_context.c     if (!v4l2_type_supported(ctx)) {
ctx               729 libavcodec/v4l2_context.c         av_log(logger(ctx), AV_LOG_ERROR, "type %i not supported\n", ctx->type);
ctx               733 libavcodec/v4l2_context.c     ret = ioctl(s->fd, VIDIOC_G_FMT, &ctx->format);
ctx               735 libavcodec/v4l2_context.c         av_log(logger(ctx), AV_LOG_ERROR, "%s VIDIOC_G_FMT failed\n", ctx->name);
ctx               738 libavcodec/v4l2_context.c     req.count = ctx->num_buffers;
ctx               740 libavcodec/v4l2_context.c     req.type = ctx->type;
ctx               743 libavcodec/v4l2_context.c         av_log(logger(ctx), AV_LOG_ERROR, "%s VIDIOC_REQBUFS failed: %s\n", ctx->name, strerror(errno));
ctx               747 libavcodec/v4l2_context.c     ctx->num_buffers = req.count;
ctx               748 libavcodec/v4l2_context.c     ctx->buffers = av_mallocz(ctx->num_buffers * sizeof(V4L2Buffer));
ctx               749 libavcodec/v4l2_context.c     if (!ctx->buffers) {
ctx               750 libavcodec/v4l2_context.c         av_log(logger(ctx), AV_LOG_ERROR, "%s malloc enomem\n", ctx->name);
ctx               755 libavcodec/v4l2_context.c         ctx->buffers[i].context = ctx;
ctx               756 libavcodec/v4l2_context.c         ret = ff_v4l2_buffer_initialize(&ctx->buffers[i], i);
ctx               758 libavcodec/v4l2_context.c             av_log(logger(ctx), AV_LOG_ERROR, "%s buffer[%d] initialization (%s)\n", ctx->name, i, av_err2str(ret));
ctx               763 libavcodec/v4l2_context.c     av_log(logger(ctx), AV_LOG_DEBUG, "%s: %s %02d buffers initialized: %04ux%04u, sizeimage %08u, bytesperline %08u\n", ctx->name,
ctx               764 libavcodec/v4l2_context.c         V4L2_TYPE_IS_MULTIPLANAR(ctx->type) ? av_fourcc2str(ctx->format.fmt.pix_mp.pixelformat) : av_fourcc2str(ctx->format.fmt.pix.pixelformat),
ctx               766 libavcodec/v4l2_context.c         v4l2_get_width(&ctx->format),
ctx               767 libavcodec/v4l2_context.c         v4l2_get_height(&ctx->format),
ctx               768 libavcodec/v4l2_context.c         V4L2_TYPE_IS_MULTIPLANAR(ctx->type) ? ctx->format.fmt.pix_mp.plane_fmt[0].sizeimage : ctx->format.fmt.pix.sizeimage,
ctx               769 libavcodec/v4l2_context.c         V4L2_TYPE_IS_MULTIPLANAR(ctx->type) ? ctx->format.fmt.pix_mp.plane_fmt[0].bytesperline : ctx->format.fmt.pix.bytesperline);
ctx               774 libavcodec/v4l2_context.c     v4l2_release_buffers(ctx);
ctx               776 libavcodec/v4l2_context.c     av_freep(&ctx->buffers);
ctx               103 libavcodec/v4l2_context.h int ff_v4l2_context_init(V4L2Context* ctx);
ctx               111 libavcodec/v4l2_context.h int ff_v4l2_context_set_format(V4L2Context* ctx);
ctx               120 libavcodec/v4l2_context.h int ff_v4l2_context_get_format(V4L2Context* ctx, int probe);
ctx               129 libavcodec/v4l2_context.h void ff_v4l2_context_release(V4L2Context* ctx);
ctx               140 libavcodec/v4l2_context.h int ff_v4l2_context_set_status(V4L2Context* ctx, uint32_t cmd);
ctx               150 libavcodec/v4l2_context.h int ff_v4l2_context_dequeue_packet(V4L2Context* ctx, AVPacket* pkt);
ctx               161 libavcodec/v4l2_context.h int ff_v4l2_context_dequeue_frame(V4L2Context* ctx, AVFrame* f, int timeout);
ctx               173 libavcodec/v4l2_context.h int ff_v4l2_context_enqueue_packet(V4L2Context* ctx, const AVPacket* pkt);
ctx               184 libavcodec/v4l2_context.h int ff_v4l2_context_enqueue_frame(V4L2Context* ctx, const AVFrame* f);
ctx               117 libavcodec/v4l2_m2m.h int ff_v4l2_m2m_codec_reinit(V4L2m2mContext *ctx);
ctx               127 libavcodec/v4l2_m2m.h int ff_v4l2_m2m_codec_full_reinit(V4L2m2mContext *ctx);
ctx                36 libavcodec/vaapi_decode.c     VAAPIDecodeContext *ctx = avctx->internal->hwaccel_priv_data;
ctx                42 libavcodec/vaapi_decode.c     vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context,
ctx                66 libavcodec/vaapi_decode.c     VAAPIDecodeContext *ctx = avctx->internal->hwaccel_priv_data;
ctx                88 libavcodec/vaapi_decode.c     vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context,
ctx               102 libavcodec/vaapi_decode.c     vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context,
ctx               110 libavcodec/vaapi_decode.c         vaDestroyBuffer(ctx->hwctx->display,
ctx               126 libavcodec/vaapi_decode.c     VAAPIDecodeContext *ctx = avctx->internal->hwaccel_priv_data;
ctx               131 libavcodec/vaapi_decode.c         vas = vaDestroyBuffer(ctx->hwctx->display,
ctx               141 libavcodec/vaapi_decode.c         vas = vaDestroyBuffer(ctx->hwctx->display,
ctx               154 libavcodec/vaapi_decode.c     VAAPIDecodeContext *ctx = avctx->internal->hwaccel_priv_data;
ctx               161 libavcodec/vaapi_decode.c     vas = vaBeginPicture(ctx->hwctx->display, ctx->va_context,
ctx               170 libavcodec/vaapi_decode.c     vas = vaRenderPicture(ctx->hwctx->display, ctx->va_context,
ctx               179 libavcodec/vaapi_decode.c     vas = vaRenderPicture(ctx->hwctx->display, ctx->va_context,
ctx               188 libavcodec/vaapi_decode.c     vas = vaEndPicture(ctx->hwctx->display, ctx->va_context);
ctx               193 libavcodec/vaapi_decode.c         if (CONFIG_VAAPI_1 || ctx->hwctx->driver_quirks &
ctx               200 libavcodec/vaapi_decode.c     if (CONFIG_VAAPI_1 || ctx->hwctx->driver_quirks &
ctx               208 libavcodec/vaapi_decode.c     vas = vaEndPicture(ctx->hwctx->display, ctx->va_context);
ctx               353 libavcodec/vaapi_decode.c         VAAPIDecodeContext    *ctx = avctx->internal->hwaccel_priv_data;
ctx               356 libavcodec/vaapi_decode.c         ctx->pixel_format_attribute = (VASurfaceAttrib) {
ctx               361 libavcodec/vaapi_decode.c         avfc->attributes    = &ctx->pixel_format_attribute;
ctx               630 libavcodec/vaapi_decode.c     VAAPIDecodeContext *ctx = avctx->internal->hwaccel_priv_data;
ctx               634 libavcodec/vaapi_decode.c     ctx->va_config  = VA_INVALID_ID;
ctx               635 libavcodec/vaapi_decode.c     ctx->va_context = VA_INVALID_ID;
ctx               642 libavcodec/vaapi_decode.c         ctx->have_old_context = 1;
ctx               643 libavcodec/vaapi_decode.c         ctx->old_context = avctx->hwaccel_context;
ctx               648 libavcodec/vaapi_decode.c         ctx->device_ref =
ctx               650 libavcodec/vaapi_decode.c         if (!ctx->device_ref) {
ctx               654 libavcodec/vaapi_decode.c         ctx->device = (AVHWDeviceContext*)ctx->device_ref->data;
ctx               655 libavcodec/vaapi_decode.c         ctx->hwctx  = ctx->device->hwctx;
ctx               657 libavcodec/vaapi_decode.c         ctx->hwctx->display = ctx->old_context->display;
ctx               661 libavcodec/vaapi_decode.c         ctx->hwctx->driver_quirks =
ctx               668 libavcodec/vaapi_decode.c     if (ctx->have_old_context) {
ctx               669 libavcodec/vaapi_decode.c         ctx->va_config  = ctx->old_context->config_id;
ctx               670 libavcodec/vaapi_decode.c         ctx->va_context = ctx->old_context->context_id;
ctx               673 libavcodec/vaapi_decode.c                "context: %#x/%#x.\n", ctx->va_config, ctx->va_context);
ctx               681 libavcodec/vaapi_decode.c     ctx->frames = (AVHWFramesContext*)avctx->hw_frames_ctx->data;
ctx               682 libavcodec/vaapi_decode.c     ctx->hwfc   = ctx->frames->hwctx;
ctx               683 libavcodec/vaapi_decode.c     ctx->device = ctx->frames->device_ctx;
ctx               684 libavcodec/vaapi_decode.c     ctx->hwctx  = ctx->device->hwctx;
ctx               686 libavcodec/vaapi_decode.c     err = vaapi_decode_make_config(avctx, ctx->frames->device_ref,
ctx               687 libavcodec/vaapi_decode.c                                    &ctx->va_config, avctx->hw_frames_ctx);
ctx               691 libavcodec/vaapi_decode.c     vas = vaCreateContext(ctx->hwctx->display, ctx->va_config,
ctx               694 libavcodec/vaapi_decode.c                           ctx->hwfc->surface_ids,
ctx               695 libavcodec/vaapi_decode.c                           ctx->hwfc->nb_surfaces,
ctx               696 libavcodec/vaapi_decode.c                           &ctx->va_context);
ctx               705 libavcodec/vaapi_decode.c            "%#x/%#x.\n", ctx->va_config, ctx->va_context);
ctx               719 libavcodec/vaapi_decode.c     VAAPIDecodeContext *ctx = avctx->internal->hwaccel_priv_data;
ctx               723 libavcodec/vaapi_decode.c     if (ctx->have_old_context) {
ctx               724 libavcodec/vaapi_decode.c         av_buffer_unref(&ctx->device_ref);
ctx               728 libavcodec/vaapi_decode.c     if (ctx->va_context != VA_INVALID_ID) {
ctx               729 libavcodec/vaapi_decode.c         vas = vaDestroyContext(ctx->hwctx->display, ctx->va_context);
ctx               733 libavcodec/vaapi_decode.c                    ctx->va_context, vas, vaErrorStr(vas));
ctx               736 libavcodec/vaapi_decode.c     if (ctx->va_config != VA_INVALID_ID) {
ctx               737 libavcodec/vaapi_decode.c         vas = vaDestroyConfig(ctx->hwctx->display, ctx->va_config);
ctx               741 libavcodec/vaapi_decode.c                    ctx->va_config, vas, vaErrorStr(vas));
ctx                41 libavcodec/vaapi_encode.c     VAAPIEncodeContext *ctx = avctx->priv_data;
ctx                56 libavcodec/vaapi_encode.c     vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context,
ctx                67 libavcodec/vaapi_encode.c     vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context,
ctx                87 libavcodec/vaapi_encode.c     VAAPIEncodeContext *ctx = avctx->priv_data;
ctx                97 libavcodec/vaapi_encode.c     vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context,
ctx               137 libavcodec/vaapi_encode.c     VAAPIEncodeContext *ctx = avctx->priv_data;
ctx               151 libavcodec/vaapi_encode.c     vas = vaSyncSurface(ctx->hwctx->display, pic->input_surface);
ctx               168 libavcodec/vaapi_encode.c     VAAPIEncodeContext *ctx = avctx->priv_data;
ctx               204 libavcodec/vaapi_encode.c     err = av_hwframe_get_buffer(ctx->recon_frames_ref, pic->recon_image, 0);
ctx               212 libavcodec/vaapi_encode.c     pic->output_buffer_ref = av_buffer_pool_get(ctx->output_buffer_pool);
ctx               221 libavcodec/vaapi_encode.c     if (ctx->codec->picture_params_size > 0) {
ctx               222 libavcodec/vaapi_encode.c         pic->codec_picture_params = av_malloc(ctx->codec->picture_params_size);
ctx               225 libavcodec/vaapi_encode.c         memcpy(pic->codec_picture_params, ctx->codec_picture_params,
ctx               226 libavcodec/vaapi_encode.c                ctx->codec->picture_params_size);
ctx               228 libavcodec/vaapi_encode.c         av_assert0(!ctx->codec_picture_params);
ctx               233 libavcodec/vaapi_encode.c     if (pic->type == PICTURE_TYPE_IDR && ctx->codec->init_sequence_params) {
ctx               236 libavcodec/vaapi_encode.c                                              ctx->codec_sequence_params,
ctx               237 libavcodec/vaapi_encode.c                                              ctx->codec->sequence_params_size);
ctx               243 libavcodec/vaapi_encode.c         for (i = 0; i < ctx->nb_global_params; i++) {
ctx               245 libavcodec/vaapi_encode.c                                                       ctx->global_params_type[i],
ctx               246 libavcodec/vaapi_encode.c                                                       ctx->global_params[i],
ctx               247 libavcodec/vaapi_encode.c                                                       ctx->global_params_size[i]);
ctx               253 libavcodec/vaapi_encode.c     if (ctx->codec->init_picture_params) {
ctx               254 libavcodec/vaapi_encode.c         err = ctx->codec->init_picture_params(avctx, pic);
ctx               263 libavcodec/vaapi_encode.c                                              ctx->codec->picture_params_size);
ctx               269 libavcodec/vaapi_encode.c         if (ctx->va_packed_headers & VA_ENC_PACKED_HEADER_SEQUENCE &&
ctx               270 libavcodec/vaapi_encode.c             ctx->codec->write_sequence_header) {
ctx               272 libavcodec/vaapi_encode.c             err = ctx->codec->write_sequence_header(avctx, data, &bit_len);
ctx               279 libavcodec/vaapi_encode.c                                                   ctx->codec->sequence_header_type,
ctx               286 libavcodec/vaapi_encode.c     if (ctx->va_packed_headers & VA_ENC_PACKED_HEADER_PICTURE &&
ctx               287 libavcodec/vaapi_encode.c         ctx->codec->write_picture_header) {
ctx               289 libavcodec/vaapi_encode.c         err = ctx->codec->write_picture_header(avctx, pic, data, &bit_len);
ctx               296 libavcodec/vaapi_encode.c                                               ctx->codec->picture_header_type,
ctx               302 libavcodec/vaapi_encode.c     if (ctx->codec->write_extra_buffer) {
ctx               306 libavcodec/vaapi_encode.c             err = ctx->codec->write_extra_buffer(avctx, pic, i, &type,
ctx               323 libavcodec/vaapi_encode.c     if (ctx->va_packed_headers & VA_ENC_PACKED_HEADER_MISC &&
ctx               324 libavcodec/vaapi_encode.c         ctx->codec->write_extra_header) {
ctx               328 libavcodec/vaapi_encode.c             err = ctx->codec->write_extra_header(avctx, pic, i, &type,
ctx               346 libavcodec/vaapi_encode.c         pic->nb_slices = ctx->nb_slices;
ctx               357 libavcodec/vaapi_encode.c             pic->slices[i].row_size = ctx->slice_size;
ctx               359 libavcodec/vaapi_encode.c         rounding = ctx->slice_block_rows - ctx->nb_slices * ctx->slice_size;
ctx               377 libavcodec/vaapi_encode.c             av_assert0(rounding < ctx->slice_size);
ctx               392 libavcodec/vaapi_encode.c         slice->block_size  = slice->row_size * ctx->slice_block_cols;
ctx               400 libavcodec/vaapi_encode.c         if (ctx->codec->slice_params_size > 0) {
ctx               401 libavcodec/vaapi_encode.c             slice->codec_slice_params = av_mallocz(ctx->codec->slice_params_size);
ctx               408 libavcodec/vaapi_encode.c         if (ctx->codec->init_slice_params) {
ctx               409 libavcodec/vaapi_encode.c             err = ctx->codec->init_slice_params(avctx, pic, slice);
ctx               417 libavcodec/vaapi_encode.c         if (ctx->va_packed_headers & VA_ENC_PACKED_HEADER_SLICE &&
ctx               418 libavcodec/vaapi_encode.c             ctx->codec->write_slice_header) {
ctx               420 libavcodec/vaapi_encode.c             err = ctx->codec->write_slice_header(avctx, pic, slice,
ctx               428 libavcodec/vaapi_encode.c                                                   ctx->codec->slice_header_type,
ctx               434 libavcodec/vaapi_encode.c         if (ctx->codec->init_slice_params) {
ctx               438 libavcodec/vaapi_encode.c                                                  ctx->codec->slice_params_size);
ctx               447 libavcodec/vaapi_encode.c     if (sd && ctx->roi_allowed) {
ctx               457 libavcodec/vaapi_encode.c         if (nb_roi > ctx->roi_max_regions) {
ctx               458 libavcodec/vaapi_encode.c             if (!ctx->roi_warned) {
ctx               461 libavcodec/vaapi_encode.c                        nb_roi, ctx->roi_max_regions);
ctx               462 libavcodec/vaapi_encode.c                 ctx->roi_warned = 1;
ctx               464 libavcodec/vaapi_encode.c             nb_roi = ctx->roi_max_regions;
ctx               477 libavcodec/vaapi_encode.c             v = roi->qoffset.num * ctx->roi_quant_range / roi->qoffset.den;
ctx               509 libavcodec/vaapi_encode.c     vas = vaBeginPicture(ctx->hwctx->display, ctx->va_context,
ctx               518 libavcodec/vaapi_encode.c     vas = vaRenderPicture(ctx->hwctx->display, ctx->va_context,
ctx               527 libavcodec/vaapi_encode.c     vas = vaEndPicture(ctx->hwctx->display, ctx->va_context);
ctx               534 libavcodec/vaapi_encode.c         if (CONFIG_VAAPI_1 || ctx->hwctx->driver_quirks &
ctx               541 libavcodec/vaapi_encode.c     if (CONFIG_VAAPI_1 || ctx->hwctx->driver_quirks &
ctx               544 libavcodec/vaapi_encode.c             vas = vaDestroyBuffer(ctx->hwctx->display,
ctx               560 libavcodec/vaapi_encode.c     vaEndPicture(ctx->hwctx->display, ctx->va_context);
ctx               563 libavcodec/vaapi_encode.c         vaDestroyBuffer(ctx->hwctx->display, pic->param_buffers[i]);
ctx               584 libavcodec/vaapi_encode.c     VAAPIEncodeContext *ctx = avctx->priv_data;
ctx               596 libavcodec/vaapi_encode.c     vas = vaMapBuffer(ctx->hwctx->display, pic->output_buffer,
ctx               627 libavcodec/vaapi_encode.c     vas = vaUnmapBuffer(ctx->hwctx->display, pic->output_buffer);
ctx               643 libavcodec/vaapi_encode.c     vaUnmapBuffer(ctx->hwctx->display, pic->output_buffer);
ctx               669 libavcodec/vaapi_encode.c     VAAPIEncodeContext *ctx = avctx->priv_data;
ctx               676 libavcodec/vaapi_encode.c     if (ctx->codec->picture_priv_data_size > 0) {
ctx               677 libavcodec/vaapi_encode.c         pic->priv_data = av_mallocz(ctx->codec->picture_priv_data_size);
ctx               791 libavcodec/vaapi_encode.c     VAAPIEncodeContext *ctx = avctx->priv_data;
ctx               800 libavcodec/vaapi_encode.c     if (current_depth == ctx->max_b_depth || start->next->next == end) {
ctx               851 libavcodec/vaapi_encode.c     VAAPIEncodeContext *ctx = avctx->priv_data;
ctx               858 libavcodec/vaapi_encode.c     for (pic = ctx->pic_start; pic; pic = pic->next) {
ctx               882 libavcodec/vaapi_encode.c     closed_gop_end = ctx->closed_gop ||
ctx               883 libavcodec/vaapi_encode.c                      ctx->idr_counter == ctx->gop_per_idr;
ctx               884 libavcodec/vaapi_encode.c     for (pic = ctx->pic_start; pic; pic = next) {
ctx               894 libavcodec/vaapi_encode.c         if (b_counter == ctx->b_per_p)
ctx               898 libavcodec/vaapi_encode.c         if (ctx->gop_counter + b_counter + closed_gop_end >= ctx->gop_size)
ctx               908 libavcodec/vaapi_encode.c     if (!pic && ctx->end_of_stream) {
ctx               910 libavcodec/vaapi_encode.c         pic = ctx->pic_end;
ctx               920 libavcodec/vaapi_encode.c     if (ctx->input_order <= ctx->decode_delay && !ctx->end_of_stream) {
ctx               930 libavcodec/vaapi_encode.c         ctx->idr_counter = 1;
ctx               931 libavcodec/vaapi_encode.c         ctx->gop_counter = 1;
ctx               933 libavcodec/vaapi_encode.c     } else if (ctx->gop_counter + b_counter >= ctx->gop_size) {
ctx               934 libavcodec/vaapi_encode.c         if (ctx->idr_counter == ctx->gop_per_idr) {
ctx               938 libavcodec/vaapi_encode.c             ctx->idr_counter = 1;
ctx               943 libavcodec/vaapi_encode.c             ++ctx->idr_counter;
ctx               945 libavcodec/vaapi_encode.c         ctx->gop_counter = 1;
ctx               948 libavcodec/vaapi_encode.c         if (ctx->gop_counter + b_counter + closed_gop_end == ctx->gop_size) {
ctx               957 libavcodec/vaapi_encode.c         ctx->gop_counter += 1 + b_counter;
ctx               967 libavcodec/vaapi_encode.c         vaapi_encode_add_ref(avctx, pic, ctx->next_prev, 0, 0, 1);
ctx               969 libavcodec/vaapi_encode.c     if (ctx->next_prev)
ctx               970 libavcodec/vaapi_encode.c         --ctx->next_prev->ref_count[0];
ctx               974 libavcodec/vaapi_encode.c                                     &ctx->next_prev);
ctx               976 libavcodec/vaapi_encode.c         ctx->next_prev = pic;
ctx               978 libavcodec/vaapi_encode.c     ++ctx->next_prev->ref_count[0];
ctx               984 libavcodec/vaapi_encode.c     VAAPIEncodeContext *ctx = avctx->priv_data;
ctx               987 libavcodec/vaapi_encode.c     av_assert0(ctx->pic_start);
ctx               990 libavcodec/vaapi_encode.c     for (pic = ctx->pic_start; pic; pic = pic->next) {
ctx               996 libavcodec/vaapi_encode.c     for (pic = ctx->pic_start; pic; pic = pic->next) {
ctx              1003 libavcodec/vaapi_encode.c     for (pic = ctx->pic_start; pic; pic = next) {
ctx              1010 libavcodec/vaapi_encode.c                 ctx->pic_start = next;
ctx              1023 libavcodec/vaapi_encode.c     VAAPIEncodeContext *ctx = avctx->priv_data;
ctx              1026 libavcodec/vaapi_encode.c          frame->crop_left || frame->crop_right) && !ctx->crop_warned) {
ctx              1029 libavcodec/vaapi_encode.c         ctx->crop_warned = 1;
ctx              1032 libavcodec/vaapi_encode.c     if (!ctx->roi_allowed) {
ctx              1036 libavcodec/vaapi_encode.c         if (sd && !ctx->roi_warned) {
ctx              1039 libavcodec/vaapi_encode.c             ctx->roi_warned = 1;
ctx              1048 libavcodec/vaapi_encode.c     VAAPIEncodeContext *ctx = avctx->priv_data;
ctx              1073 libavcodec/vaapi_encode.c         if (ctx->input_order == 0 || frame->pict_type == AV_PICTURE_TYPE_I)
ctx              1079 libavcodec/vaapi_encode.c         if (ctx->input_order == 0)
ctx              1080 libavcodec/vaapi_encode.c             ctx->first_pts = pic->pts;
ctx              1081 libavcodec/vaapi_encode.c         if (ctx->input_order == ctx->decode_delay)
ctx              1082 libavcodec/vaapi_encode.c             ctx->dts_pts_diff = pic->pts - ctx->first_pts;
ctx              1083 libavcodec/vaapi_encode.c         if (ctx->output_delay > 0)
ctx              1084 libavcodec/vaapi_encode.c             ctx->ts_ring[ctx->input_order % (3 * ctx->output_delay)] = pic->pts;
ctx              1086 libavcodec/vaapi_encode.c         pic->display_order = ctx->input_order;
ctx              1087 libavcodec/vaapi_encode.c         ++ctx->input_order;
ctx              1089 libavcodec/vaapi_encode.c         if (ctx->pic_start) {
ctx              1090 libavcodec/vaapi_encode.c             ctx->pic_end->next = pic;
ctx              1091 libavcodec/vaapi_encode.c             ctx->pic_end       = pic;
ctx              1093 libavcodec/vaapi_encode.c             ctx->pic_start     = pic;
ctx              1094 libavcodec/vaapi_encode.c             ctx->pic_end       = pic;
ctx              1098 libavcodec/vaapi_encode.c         ctx->end_of_stream = 1;
ctx              1102 libavcodec/vaapi_encode.c         if (ctx->input_order < ctx->decode_delay)
ctx              1103 libavcodec/vaapi_encode.c             ctx->dts_pts_diff = ctx->pic_end->pts - ctx->first_pts;
ctx              1115 libavcodec/vaapi_encode.c     VAAPIEncodeContext *ctx = avctx->priv_data;
ctx              1119 libavcodec/vaapi_encode.c     if (!ctx->pic_start) {
ctx              1120 libavcodec/vaapi_encode.c         if (ctx->end_of_stream)
ctx              1132 libavcodec/vaapi_encode.c     pic->encode_order = ctx->encode_order++;
ctx              1146 libavcodec/vaapi_encode.c     if (ctx->output_delay == 0) {
ctx              1148 libavcodec/vaapi_encode.c     } else if (pic->encode_order < ctx->decode_delay) {
ctx              1149 libavcodec/vaapi_encode.c         if (ctx->ts_ring[pic->encode_order] < INT64_MIN + ctx->dts_pts_diff)
ctx              1152 libavcodec/vaapi_encode.c             pkt->dts = ctx->ts_ring[pic->encode_order] - ctx->dts_pts_diff;
ctx              1154 libavcodec/vaapi_encode.c         pkt->dts = ctx->ts_ring[(pic->encode_order - ctx->decode_delay) %
ctx              1155 libavcodec/vaapi_encode.c                                 (3 * ctx->output_delay)];
ctx              1160 libavcodec/vaapi_encode.c     ctx->output_order = pic->encode_order;
ctx              1170 libavcodec/vaapi_encode.c     VAAPIEncodeContext *ctx = avctx->priv_data;
ctx              1172 libavcodec/vaapi_encode.c     av_assert0(ctx->nb_global_params < MAX_GLOBAL_PARAMS);
ctx              1174 libavcodec/vaapi_encode.c     ctx->global_params_type[ctx->nb_global_params] = type;
ctx              1175 libavcodec/vaapi_encode.c     ctx->global_params     [ctx->nb_global_params] = buffer;
ctx              1176 libavcodec/vaapi_encode.c     ctx->global_params_size[ctx->nb_global_params] = size;
ctx              1178 libavcodec/vaapi_encode.c     ++ctx->nb_global_params;
ctx              1218 libavcodec/vaapi_encode.c     VAAPIEncodeContext      *ctx = avctx->priv_data;
ctx              1231 libavcodec/vaapi_encode.c     if (ctx->low_power) {
ctx              1243 libavcodec/vaapi_encode.c     desc = av_pix_fmt_desc_get(ctx->input_frames->sw_format);
ctx              1246 libavcodec/vaapi_encode.c                ctx->input_frames->sw_format);
ctx              1260 libavcodec/vaapi_encode.c     n = vaMaxNumProfiles(ctx->hwctx->display);
ctx              1266 libavcodec/vaapi_encode.c     vas = vaQueryConfigProfiles(ctx->hwctx->display, va_profiles, &n);
ctx              1274 libavcodec/vaapi_encode.c     av_assert0(ctx->codec->profiles);
ctx              1275 libavcodec/vaapi_encode.c     for (i = 0; (ctx->codec->profiles[i].av_profile !=
ctx              1277 libavcodec/vaapi_encode.c         profile = &ctx->codec->profiles[i];
ctx              1306 libavcodec/vaapi_encode.c         ctx->profile = profile;
ctx              1309 libavcodec/vaapi_encode.c     if (!ctx->profile) {
ctx              1316 libavcodec/vaapi_encode.c     ctx->va_profile = profile->va_profile;
ctx              1318 libavcodec/vaapi_encode.c            profile_string, ctx->va_profile);
ctx              1320 libavcodec/vaapi_encode.c     n = vaMaxNumEntrypoints(ctx->hwctx->display);
ctx              1326 libavcodec/vaapi_encode.c     vas = vaQueryConfigEntrypoints(ctx->hwctx->display, ctx->va_profile,
ctx              1331 libavcodec/vaapi_encode.c                ctx->va_profile, vas, vaErrorStr(vas));
ctx              1346 libavcodec/vaapi_encode.c                "for profile %s (%d).\n", profile_string, ctx->va_profile);
ctx              1351 libavcodec/vaapi_encode.c     ctx->va_entrypoint = va_entrypoints[i];
ctx              1353 libavcodec/vaapi_encode.c     entrypoint_string = vaEntrypointStr(ctx->va_entrypoint);
ctx              1358 libavcodec/vaapi_encode.c            entrypoint_string, ctx->va_entrypoint);
ctx              1371 libavcodec/vaapi_encode.c                profile_string, ctx->va_profile,
ctx              1372 libavcodec/vaapi_encode.c                entrypoint_string, ctx->va_entrypoint);
ctx              1378 libavcodec/vaapi_encode.c     vas = vaGetConfigAttributes(ctx->hwctx->display,
ctx              1379 libavcodec/vaapi_encode.c                                 ctx->va_profile, ctx->va_entrypoint,
ctx              1395 libavcodec/vaapi_encode.c                rt_format->name, profile_string, ctx->va_profile,
ctx              1396 libavcodec/vaapi_encode.c                entrypoint_string, ctx->va_entrypoint);
ctx              1402 libavcodec/vaapi_encode.c         ctx->config_attributes[ctx->nb_config_attributes++] =
ctx              1439 libavcodec/vaapi_encode.c     VAAPIEncodeContext *ctx = avctx->priv_data;
ctx              1453 libavcodec/vaapi_encode.c     vas = vaGetConfigAttributes(ctx->hwctx->display,
ctx              1454 libavcodec/vaapi_encode.c                                 ctx->va_profile, ctx->va_entrypoint,
ctx              1522 libavcodec/vaapi_encode.c     if (ctx->explicit_rc_mode)
ctx              1523 libavcodec/vaapi_encode.c         TRY_RC_MODE(ctx->explicit_rc_mode, 1);
ctx              1525 libavcodec/vaapi_encode.c     if (ctx->explicit_qp)
ctx              1528 libavcodec/vaapi_encode.c     if (ctx->codec->flags & FLAG_CONSTANT_QUALITY_ONLY)
ctx              1620 libavcodec/vaapi_encode.c         if (ctx->explicit_qp) {
ctx              1621 libavcodec/vaapi_encode.c             rc_quality = ctx->explicit_qp;
ctx              1625 libavcodec/vaapi_encode.c             rc_quality = ctx->codec->default_quality;
ctx              1677 libavcodec/vaapi_encode.c     ctx->rc_mode     = rc_mode;
ctx              1678 libavcodec/vaapi_encode.c     ctx->rc_quality  = rc_quality;
ctx              1679 libavcodec/vaapi_encode.c     ctx->va_rc_mode  = rc_mode->va_mode;
ctx              1680 libavcodec/vaapi_encode.c     ctx->va_bit_rate = rc_bits_per_second;
ctx              1686 libavcodec/vaapi_encode.c         ctx->config_attributes[ctx->nb_config_attributes++] =
ctx              1689 libavcodec/vaapi_encode.c             .value = ctx->va_rc_mode,
ctx              1708 libavcodec/vaapi_encode.c         ctx->rc_params = (VAEncMiscParameterRateControl) {
ctx              1725 libavcodec/vaapi_encode.c                                       &ctx->rc_params,
ctx              1726 libavcodec/vaapi_encode.c                                       sizeof(ctx->rc_params));
ctx              1734 libavcodec/vaapi_encode.c         ctx->hrd_params = (VAEncMiscParameterHRD) {
ctx              1740 libavcodec/vaapi_encode.c                                       &ctx->hrd_params,
ctx              1741 libavcodec/vaapi_encode.c                                       sizeof(ctx->hrd_params));
ctx              1754 libavcodec/vaapi_encode.c     ctx->fr_params = (VAEncMiscParameterFrameRate) {
ctx              1760 libavcodec/vaapi_encode.c                                   &ctx->fr_params,
ctx              1761 libavcodec/vaapi_encode.c                                   sizeof(ctx->fr_params));
ctx              1769 libavcodec/vaapi_encode.c     VAAPIEncodeContext *ctx = avctx->priv_data;
ctx              1774 libavcodec/vaapi_encode.c     vas = vaGetConfigAttributes(ctx->hwctx->display,
ctx              1775 libavcodec/vaapi_encode.c                                 ctx->va_profile,
ctx              1776 libavcodec/vaapi_encode.c                                 ctx->va_entrypoint,
ctx              1791 libavcodec/vaapi_encode.c     if (ctx->codec->flags & FLAG_INTRA_ONLY ||
ctx              1794 libavcodec/vaapi_encode.c         ctx->gop_size = 1;
ctx              1799 libavcodec/vaapi_encode.c     } else if (!(ctx->codec->flags & FLAG_B_PICTURES) ||
ctx              1803 libavcodec/vaapi_encode.c         ctx->gop_size = avctx->gop_size;
ctx              1804 libavcodec/vaapi_encode.c         ctx->p_per_i  = INT_MAX;
ctx              1805 libavcodec/vaapi_encode.c         ctx->b_per_p  = 0;
ctx              1809 libavcodec/vaapi_encode.c         ctx->gop_size = avctx->gop_size;
ctx              1810 libavcodec/vaapi_encode.c         ctx->p_per_i  = INT_MAX;
ctx              1811 libavcodec/vaapi_encode.c         ctx->b_per_p  = avctx->max_b_frames;
ctx              1812 libavcodec/vaapi_encode.c         if (ctx->codec->flags & FLAG_B_PICTURE_REFERENCES) {
ctx              1813 libavcodec/vaapi_encode.c             ctx->max_b_depth = FFMIN(ctx->desired_b_depth,
ctx              1814 libavcodec/vaapi_encode.c                                      av_log2(ctx->b_per_p) + 1);
ctx              1816 libavcodec/vaapi_encode.c             ctx->max_b_depth = 1;
ctx              1820 libavcodec/vaapi_encode.c     if (ctx->codec->flags & FLAG_NON_IDR_KEY_PICTURES) {
ctx              1821 libavcodec/vaapi_encode.c         ctx->closed_gop  = !!(avctx->flags & AV_CODEC_FLAG_CLOSED_GOP);
ctx              1822 libavcodec/vaapi_encode.c         ctx->gop_per_idr = ctx->idr_interval + 1;
ctx              1824 libavcodec/vaapi_encode.c         ctx->closed_gop  = 1;
ctx              1825 libavcodec/vaapi_encode.c         ctx->gop_per_idr = 1;
ctx              1833 libavcodec/vaapi_encode.c     VAAPIEncodeContext *ctx = avctx->priv_data;
ctx              1840 libavcodec/vaapi_encode.c     if (!(ctx->codec->flags & FLAG_SLICE_CONTROL)) {
ctx              1848 libavcodec/vaapi_encode.c     ctx->slice_block_rows = (avctx->height + ctx->slice_block_height - 1) /
ctx              1849 libavcodec/vaapi_encode.c                              ctx->slice_block_height;
ctx              1850 libavcodec/vaapi_encode.c     ctx->slice_block_cols = (avctx->width  + ctx->slice_block_width  - 1) /
ctx              1851 libavcodec/vaapi_encode.c                              ctx->slice_block_width;
ctx              1854 libavcodec/vaapi_encode.c         ctx->nb_slices  = 1;
ctx              1855 libavcodec/vaapi_encode.c         ctx->slice_size = ctx->slice_block_rows;
ctx              1859 libavcodec/vaapi_encode.c     vas = vaGetConfigAttributes(ctx->hwctx->display,
ctx              1860 libavcodec/vaapi_encode.c                                 ctx->va_profile,
ctx              1861 libavcodec/vaapi_encode.c                                 ctx->va_entrypoint,
ctx              1882 libavcodec/vaapi_encode.c     if (avctx->slices > ctx->slice_block_rows) {
ctx              1885 libavcodec/vaapi_encode.c                "maximum.\n", ctx->slice_block_rows, avctx->slices);
ctx              1886 libavcodec/vaapi_encode.c         req_slices = ctx->slice_block_rows;
ctx              1892 libavcodec/vaapi_encode.c         ctx->nb_slices  = req_slices;
ctx              1893 libavcodec/vaapi_encode.c         ctx->slice_size = ctx->slice_block_rows / ctx->nb_slices;
ctx              1897 libavcodec/vaapi_encode.c             if (2 * k * (req_slices - 1) + 1 >= ctx->slice_block_rows)
ctx              1900 libavcodec/vaapi_encode.c         ctx->nb_slices  = (ctx->slice_block_rows + k - 1) / k;
ctx              1901 libavcodec/vaapi_encode.c         ctx->slice_size = k;
ctx              1904 libavcodec/vaapi_encode.c         ctx->nb_slices  = ctx->slice_block_rows;
ctx              1905 libavcodec/vaapi_encode.c         ctx->slice_size = 1;
ctx              1913 libavcodec/vaapi_encode.c     if (ctx->nb_slices > avctx->slices) {
ctx              1916 libavcodec/vaapi_encode.c                "structure.\n", ctx->nb_slices, avctx->slices);
ctx              1918 libavcodec/vaapi_encode.c     if (ctx->nb_slices > max_slices) {
ctx              1921 libavcodec/vaapi_encode.c                ctx->nb_slices, max_slices);
ctx              1927 libavcodec/vaapi_encode.c            ctx->nb_slices, ctx->slice_size);
ctx              1933 libavcodec/vaapi_encode.c     VAAPIEncodeContext *ctx = avctx->priv_data;
ctx              1937 libavcodec/vaapi_encode.c     vas = vaGetConfigAttributes(ctx->hwctx->display,
ctx              1938 libavcodec/vaapi_encode.c                                 ctx->va_profile,
ctx              1939 libavcodec/vaapi_encode.c                                 ctx->va_entrypoint,
ctx              1948 libavcodec/vaapi_encode.c         if (ctx->desired_packed_headers) {
ctx              1951 libavcodec/vaapi_encode.c                    ctx->desired_packed_headers);
ctx              1956 libavcodec/vaapi_encode.c         ctx->va_packed_headers = 0;
ctx              1958 libavcodec/vaapi_encode.c         if (ctx->desired_packed_headers & ~attr.value) {
ctx              1961 libavcodec/vaapi_encode.c                    ctx->desired_packed_headers, attr.value);
ctx              1965 libavcodec/vaapi_encode.c                    ctx->desired_packed_headers, attr.value);
ctx              1967 libavcodec/vaapi_encode.c         ctx->va_packed_headers = ctx->desired_packed_headers & attr.value;
ctx              1970 libavcodec/vaapi_encode.c     if (ctx->va_packed_headers) {
ctx              1971 libavcodec/vaapi_encode.c         ctx->config_attributes[ctx->nb_config_attributes++] =
ctx              1974 libavcodec/vaapi_encode.c             .value = ctx->va_packed_headers,
ctx              1978 libavcodec/vaapi_encode.c     if ( (ctx->desired_packed_headers & VA_ENC_PACKED_HEADER_SEQUENCE) &&
ctx              1979 libavcodec/vaapi_encode.c         !(ctx->va_packed_headers      & VA_ENC_PACKED_HEADER_SEQUENCE) &&
ctx              1994 libavcodec/vaapi_encode.c     VAAPIEncodeContext *ctx = avctx->priv_data;
ctx              1999 libavcodec/vaapi_encode.c     vas = vaGetConfigAttributes(ctx->hwctx->display,
ctx              2000 libavcodec/vaapi_encode.c                                 ctx->va_profile,
ctx              2001 libavcodec/vaapi_encode.c                                 ctx->va_entrypoint,
ctx              2022 libavcodec/vaapi_encode.c         ctx->quality_params = (VAEncMiscParameterBufferQualityLevel) {
ctx              2027 libavcodec/vaapi_encode.c                                       &ctx->quality_params,
ctx              2028 libavcodec/vaapi_encode.c                                       sizeof(ctx->quality_params));
ctx              2041 libavcodec/vaapi_encode.c     VAAPIEncodeContext *ctx = avctx->priv_data;
ctx              2045 libavcodec/vaapi_encode.c     vas = vaGetConfigAttributes(ctx->hwctx->display,
ctx              2046 libavcodec/vaapi_encode.c                                 ctx->va_profile,
ctx              2047 libavcodec/vaapi_encode.c                                 ctx->va_entrypoint,
ctx              2056 libavcodec/vaapi_encode.c         ctx->roi_allowed = 0;
ctx              2062 libavcodec/vaapi_encode.c         ctx->roi_max_regions = roi.bits.num_roi_regions;
ctx              2063 libavcodec/vaapi_encode.c         ctx->roi_allowed = ctx->roi_max_regions > 0 &&
ctx              2064 libavcodec/vaapi_encode.c             (ctx->va_rc_mode == VA_RC_CQP ||
ctx              2075 libavcodec/vaapi_encode.c     VAAPIEncodeContext *ctx = avctx->priv_data;
ctx              2080 libavcodec/vaapi_encode.c     vaDestroyBuffer(ctx->hwctx->display, buffer_id);
ctx              2089 libavcodec/vaapi_encode.c     VAAPIEncodeContext *ctx = avctx->priv_data;
ctx              2098 libavcodec/vaapi_encode.c     vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context,
ctx              2100 libavcodec/vaapi_encode.c                          3 * ctx->surface_width * ctx->surface_height +
ctx              2115 libavcodec/vaapi_encode.c         vaDestroyBuffer(ctx->hwctx->display, buffer_id);
ctx              2124 libavcodec/vaapi_encode.c     VAAPIEncodeContext *ctx = avctx->priv_data;
ctx              2130 libavcodec/vaapi_encode.c     hwconfig = av_hwdevice_hwconfig_alloc(ctx->device_ref);
ctx              2135 libavcodec/vaapi_encode.c     hwconfig->config_id = ctx->va_config;
ctx              2137 libavcodec/vaapi_encode.c     constraints = av_hwdevice_get_hwframe_constraints(ctx->device_ref,
ctx              2150 libavcodec/vaapi_encode.c             if (ctx->input_frames->sw_format ==
ctx              2152 libavcodec/vaapi_encode.c                 recon_format = ctx->input_frames->sw_format;
ctx              2163 libavcodec/vaapi_encode.c         recon_format = ctx->input_frames->sw_format;
ctx              2168 libavcodec/vaapi_encode.c     if (ctx->surface_width  < constraints->min_width  ||
ctx              2169 libavcodec/vaapi_encode.c         ctx->surface_height < constraints->min_height ||
ctx              2170 libavcodec/vaapi_encode.c         ctx->surface_width  > constraints->max_width ||
ctx              2171 libavcodec/vaapi_encode.c         ctx->surface_height > constraints->max_height) {
ctx              2174 libavcodec/vaapi_encode.c                ctx->surface_width, ctx->surface_height,
ctx              2184 libavcodec/vaapi_encode.c     ctx->recon_frames_ref = av_hwframe_ctx_alloc(ctx->device_ref);
ctx              2185 libavcodec/vaapi_encode.c     if (!ctx->recon_frames_ref) {
ctx              2189 libavcodec/vaapi_encode.c     ctx->recon_frames = (AVHWFramesContext*)ctx->recon_frames_ref->data;
ctx              2191 libavcodec/vaapi_encode.c     ctx->recon_frames->format    = AV_PIX_FMT_VAAPI;
ctx              2192 libavcodec/vaapi_encode.c     ctx->recon_frames->sw_format = recon_format;
ctx              2193 libavcodec/vaapi_encode.c     ctx->recon_frames->width     = ctx->surface_width;
ctx              2194 libavcodec/vaapi_encode.c     ctx->recon_frames->height    = ctx->surface_height;
ctx              2196 libavcodec/vaapi_encode.c     err = av_hwframe_ctx_init(ctx->recon_frames_ref);
ctx              2212 libavcodec/vaapi_encode.c     VAAPIEncodeContext *ctx = avctx->priv_data;
ctx              2223 libavcodec/vaapi_encode.c     ctx->va_config  = VA_INVALID_ID;
ctx              2224 libavcodec/vaapi_encode.c     ctx->va_context = VA_INVALID_ID;
ctx              2226 libavcodec/vaapi_encode.c     ctx->input_frames_ref = av_buffer_ref(avctx->hw_frames_ctx);
ctx              2227 libavcodec/vaapi_encode.c     if (!ctx->input_frames_ref) {
ctx              2231 libavcodec/vaapi_encode.c     ctx->input_frames = (AVHWFramesContext*)ctx->input_frames_ref->data;
ctx              2233 libavcodec/vaapi_encode.c     ctx->device_ref = av_buffer_ref(ctx->input_frames->device_ref);
ctx              2234 libavcodec/vaapi_encode.c     if (!ctx->device_ref) {
ctx              2238 libavcodec/vaapi_encode.c     ctx->device = (AVHWDeviceContext*)ctx->device_ref->data;
ctx              2239 libavcodec/vaapi_encode.c     ctx->hwctx = ctx->device->hwctx;
ctx              2271 libavcodec/vaapi_encode.c     vas = vaCreateConfig(ctx->hwctx->display,
ctx              2272 libavcodec/vaapi_encode.c                          ctx->va_profile, ctx->va_entrypoint,
ctx              2273 libavcodec/vaapi_encode.c                          ctx->config_attributes, ctx->nb_config_attributes,
ctx              2274 libavcodec/vaapi_encode.c                          &ctx->va_config);
ctx              2286 libavcodec/vaapi_encode.c     recon_hwctx = ctx->recon_frames->hwctx;
ctx              2287 libavcodec/vaapi_encode.c     vas = vaCreateContext(ctx->hwctx->display, ctx->va_config,
ctx              2288 libavcodec/vaapi_encode.c                           ctx->surface_width, ctx->surface_height,
ctx              2292 libavcodec/vaapi_encode.c                           &ctx->va_context);
ctx              2300 libavcodec/vaapi_encode.c     ctx->output_buffer_pool =
ctx              2303 libavcodec/vaapi_encode.c     if (!ctx->output_buffer_pool) {
ctx              2308 libavcodec/vaapi_encode.c     if (ctx->codec->configure) {
ctx              2309 libavcodec/vaapi_encode.c         err = ctx->codec->configure(avctx);
ctx              2314 libavcodec/vaapi_encode.c     ctx->output_delay = ctx->b_per_p;
ctx              2315 libavcodec/vaapi_encode.c     ctx->decode_delay = ctx->max_b_depth;
ctx              2317 libavcodec/vaapi_encode.c     if (ctx->codec->sequence_params_size > 0) {
ctx              2318 libavcodec/vaapi_encode.c         ctx->codec_sequence_params =
ctx              2319 libavcodec/vaapi_encode.c             av_mallocz(ctx->codec->sequence_params_size);
ctx              2320 libavcodec/vaapi_encode.c         if (!ctx->codec_sequence_params) {
ctx              2325 libavcodec/vaapi_encode.c     if (ctx->codec->picture_params_size > 0) {
ctx              2326 libavcodec/vaapi_encode.c         ctx->codec_picture_params =
ctx              2327 libavcodec/vaapi_encode.c             av_mallocz(ctx->codec->picture_params_size);
ctx              2328 libavcodec/vaapi_encode.c         if (!ctx->codec_picture_params) {
ctx              2334 libavcodec/vaapi_encode.c     if (ctx->codec->init_sequence_params) {
ctx              2335 libavcodec/vaapi_encode.c         err = ctx->codec->init_sequence_params(avctx);
ctx              2343 libavcodec/vaapi_encode.c     if (ctx->va_packed_headers & VA_ENC_PACKED_HEADER_SEQUENCE &&
ctx              2344 libavcodec/vaapi_encode.c         ctx->codec->write_sequence_header &&
ctx              2349 libavcodec/vaapi_encode.c         err = ctx->codec->write_sequence_header(avctx, data, &bit_len);
ctx              2374 libavcodec/vaapi_encode.c     VAAPIEncodeContext *ctx = avctx->priv_data;
ctx              2377 libavcodec/vaapi_encode.c     for (pic = ctx->pic_start; pic; pic = next) {
ctx              2382 libavcodec/vaapi_encode.c     av_buffer_pool_uninit(&ctx->output_buffer_pool);
ctx              2384 libavcodec/vaapi_encode.c     if (ctx->va_context != VA_INVALID_ID) {
ctx              2385 libavcodec/vaapi_encode.c         vaDestroyContext(ctx->hwctx->display, ctx->va_context);
ctx              2386 libavcodec/vaapi_encode.c         ctx->va_context = VA_INVALID_ID;
ctx              2389 libavcodec/vaapi_encode.c     if (ctx->va_config != VA_INVALID_ID) {
ctx              2390 libavcodec/vaapi_encode.c         vaDestroyConfig(ctx->hwctx->display, ctx->va_config);
ctx              2391 libavcodec/vaapi_encode.c         ctx->va_config = VA_INVALID_ID;
ctx              2394 libavcodec/vaapi_encode.c     av_freep(&ctx->codec_sequence_params);
ctx              2395 libavcodec/vaapi_encode.c     av_freep(&ctx->codec_picture_params);
ctx              2397 libavcodec/vaapi_encode.c     av_buffer_unref(&ctx->recon_frames_ref);
ctx              2398 libavcodec/vaapi_encode.c     av_buffer_unref(&ctx->input_frames_ref);
ctx              2399 libavcodec/vaapi_encode.c     av_buffer_unref(&ctx->device_ref);
ctx               295 libavcodec/vaapi_encode_h264.c     VAAPIEncodeContext                *ctx = avctx->priv_data;
ctx               299 libavcodec/vaapi_encode_h264.c     VAEncSequenceParameterBufferH264 *vseq = ctx->codec_sequence_params;
ctx               300 libavcodec/vaapi_encode_h264.c     VAEncPictureParameterBufferH264  *vpic = ctx->codec_picture_params;
ctx               315 libavcodec/vaapi_encode_h264.c         sps->constraint_set3_flag = ctx->gop_size == 1;
ctx               320 libavcodec/vaapi_encode_h264.c         sps->constraint_set5_flag = ctx->b_per_p == 0;
ctx               323 libavcodec/vaapi_encode_h264.c     if (ctx->gop_size == 1)
ctx               326 libavcodec/vaapi_encode_h264.c         priv->dpb_frames = 1 + ctx->max_b_depth;
ctx               469 libavcodec/vaapi_encode_h264.c             av_clip_uintp2(av_log2(ctx->va_bit_rate) - 15 - 6, 4);
ctx               471 libavcodec/vaapi_encode_h264.c             (ctx->va_bit_rate >> hrd->bit_rate_scale + 6) - 1;
ctx               474 libavcodec/vaapi_encode_h264.c             av_clip_uintp2(av_log2(ctx->hrd_params.buffer_size) - 15 - 4, 4);
ctx               476 libavcodec/vaapi_encode_h264.c             (ctx->hrd_params.buffer_size >> hrd->cpb_size_scale + 4) - 1;
ctx               491 libavcodec/vaapi_encode_h264.c             (uint64_t)ctx->hrd_params.initial_buffer_fullness /
ctx               492 libavcodec/vaapi_encode_h264.c             ctx->hrd_params.buffer_size;
ctx               503 libavcodec/vaapi_encode_h264.c     sps->vui.max_num_reorder_frames        = ctx->max_b_depth;
ctx               504 libavcodec/vaapi_encode_h264.c     sps->vui.max_dec_frame_buffering       = ctx->max_b_depth + 1;
ctx               537 libavcodec/vaapi_encode_h264.c         .intra_period     = ctx->gop_size,
ctx               538 libavcodec/vaapi_encode_h264.c         .intra_idr_period = ctx->gop_size,
ctx               539 libavcodec/vaapi_encode_h264.c         .ip_period        = ctx->b_per_p + 1,
ctx               541 libavcodec/vaapi_encode_h264.c         .bits_per_second       = ctx->va_bit_rate,
ctx               623 libavcodec/vaapi_encode_h264.c     VAAPIEncodeContext               *ctx = avctx->priv_data;
ctx               660 libavcodec/vaapi_encode_h264.c     hpic->dpb_delay     = pic->display_order - pic->encode_order + ctx->max_b_depth;
ctx               680 libavcodec/vaapi_encode_h264.c     if (ctx->va_rc_mode == VA_RC_CBR)
ctx               697 libavcodec/vaapi_encode_h264.c             .broken_link_flag   = ctx->b_per_p > 0,
ctx              1063 libavcodec/vaapi_encode_h264.c     VAAPIEncodeContext      *ctx = avctx->priv_data;
ctx              1074 libavcodec/vaapi_encode_h264.c     if (ctx->va_rc_mode == VA_RC_CQP) {
ctx              1075 libavcodec/vaapi_encode_h264.c         priv->fixed_qp_p = av_clip(ctx->rc_quality, 1, 51);
ctx              1100 libavcodec/vaapi_encode_h264.c     if (!ctx->rc_mode->hrd) {
ctx              1115 libavcodec/vaapi_encode_h264.c         driver = vaQueryVendorString(ctx->hwctx->display);
ctx              1133 libavcodec/vaapi_encode_h264.c     ctx->roi_quant_range = 51 + 6 * (ctx->profile->depth - 8);
ctx              1180 libavcodec/vaapi_encode_h264.c     VAAPIEncodeContext      *ctx = avctx->priv_data;
ctx              1183 libavcodec/vaapi_encode_h264.c     ctx->codec = &vaapi_encode_type_h264;
ctx              1225 libavcodec/vaapi_encode_h264.c     ctx->desired_packed_headers =
ctx              1230 libavcodec/vaapi_encode_h264.c     ctx->surface_width  = FFALIGN(avctx->width,  16);
ctx              1231 libavcodec/vaapi_encode_h264.c     ctx->surface_height = FFALIGN(avctx->height, 16);
ctx              1233 libavcodec/vaapi_encode_h264.c     ctx->slice_block_height = ctx->slice_block_width = 16;
ctx              1236 libavcodec/vaapi_encode_h264.c         ctx->explicit_qp = priv->qp;
ctx               260 libavcodec/vaapi_encode_h265.c     VAAPIEncodeContext                *ctx = avctx->priv_data;
ctx               267 libavcodec/vaapi_encode_h265.c     VAEncSequenceParameterBufferHEVC *vseq = ctx->codec_sequence_params;
ctx               268 libavcodec/vaapi_encode_h265.c     VAEncPictureParameterBufferHEVC  *vpic = ctx->codec_picture_params;
ctx               337 libavcodec/vaapi_encode_h265.c     ptl->general_intra_constraint_flag = ctx->gop_size == 1;
ctx               347 libavcodec/vaapi_encode_h265.c                                     ctx->surface_width, ctx->surface_height,
ctx               348 libavcodec/vaapi_encode_h265.c                                     ctx->nb_slices, 1, 1,
ctx               349 libavcodec/vaapi_encode_h265.c                                     (ctx->b_per_p > 0) + 1);
ctx               363 libavcodec/vaapi_encode_h265.c     vps->vps_max_dec_pic_buffering_minus1[0]      = ctx->max_b_depth + 1;
ctx               364 libavcodec/vaapi_encode_h265.c     vps->vps_max_num_reorder_pics[0]              = ctx->max_b_depth;
ctx               405 libavcodec/vaapi_encode_h265.c     sps->pic_width_in_luma_samples  = ctx->surface_width;
ctx               406 libavcodec/vaapi_encode_h265.c     sps->pic_height_in_luma_samples = ctx->surface_height;
ctx               408 libavcodec/vaapi_encode_h265.c     if (avctx->width  != ctx->surface_width ||
ctx               409 libavcodec/vaapi_encode_h265.c         avctx->height != ctx->surface_height) {
ctx               413 libavcodec/vaapi_encode_h265.c             (ctx->surface_width - avctx->width) >> desc->log2_chroma_w;
ctx               416 libavcodec/vaapi_encode_h265.c             (ctx->surface_height - avctx->height) >> desc->log2_chroma_h;
ctx               556 libavcodec/vaapi_encode_h265.c     pps->cu_qp_delta_enabled_flag = (ctx->va_rc_mode != VA_RC_CQP);
ctx               569 libavcodec/vaapi_encode_h265.c         .intra_period     = ctx->gop_size,
ctx               570 libavcodec/vaapi_encode_h265.c         .intra_idr_period = ctx->gop_size,
ctx               571 libavcodec/vaapi_encode_h265.c         .ip_period        = ctx->b_per_p + 1,
ctx               572 libavcodec/vaapi_encode_h265.c         .bits_per_second  = ctx->va_bit_rate,
ctx               675 libavcodec/vaapi_encode_h265.c     VAAPIEncodeContext               *ctx = avctx->priv_data;
ctx               711 libavcodec/vaapi_encode_h265.c             if (pic->b_depth == ctx->max_b_depth) {
ctx              1067 libavcodec/vaapi_encode_h265.c     VAAPIEncodeContext      *ctx = avctx->priv_data;
ctx              1075 libavcodec/vaapi_encode_h265.c     if (ctx->va_rc_mode == VA_RC_CQP) {
ctx              1080 libavcodec/vaapi_encode_h265.c         priv->fixed_qp_p = av_clip(ctx->rc_quality, 1, 51);
ctx              1105 libavcodec/vaapi_encode_h265.c     ctx->roi_quant_range = 51 + 6 * (ctx->profile->depth - 8);
ctx              1154 libavcodec/vaapi_encode_h265.c     VAAPIEncodeContext      *ctx = avctx->priv_data;
ctx              1157 libavcodec/vaapi_encode_h265.c     ctx->codec = &vaapi_encode_type_h265;
ctx              1170 libavcodec/vaapi_encode_h265.c     ctx->desired_packed_headers =
ctx              1175 libavcodec/vaapi_encode_h265.c     ctx->surface_width  = FFALIGN(avctx->width,  16);
ctx              1176 libavcodec/vaapi_encode_h265.c     ctx->surface_height = FFALIGN(avctx->height, 16);
ctx              1179 libavcodec/vaapi_encode_h265.c     ctx->slice_block_width = ctx->slice_block_height = 32;
ctx              1182 libavcodec/vaapi_encode_h265.c         ctx->explicit_qp = priv->qp;
ctx               439 libavcodec/vaapi_encode_mjpeg.c     VAAPIEncodeContext       *ctx = avctx->priv_data;
ctx               443 libavcodec/vaapi_encode_mjpeg.c     priv->quality = ctx->rc_quality;
ctx               456 libavcodec/vaapi_encode_mjpeg.c     if (ctx->va_packed_headers & VA_ENC_PACKED_HEADER_RAW_DATA) {
ctx               457 libavcodec/vaapi_encode_mjpeg.c         ctx->va_packed_headers &= ~VA_ENC_PACKED_HEADER_RAW_DATA;
ctx               458 libavcodec/vaapi_encode_mjpeg.c         ctx->va_packed_headers |=  VA_ENC_PACKED_HEADER_SLICE;
ctx               504 libavcodec/vaapi_encode_mjpeg.c     VAAPIEncodeContext *ctx = avctx->priv_data;
ctx               506 libavcodec/vaapi_encode_mjpeg.c     ctx->codec = &vaapi_encode_type_mjpeg;
ctx               509 libavcodec/vaapi_encode_mjpeg.c     ctx->desired_packed_headers =
ctx               512 libavcodec/vaapi_encode_mjpeg.c     ctx->surface_width  = FFALIGN(avctx->width,  8);
ctx               513 libavcodec/vaapi_encode_mjpeg.c     ctx->surface_height = FFALIGN(avctx->height, 8);
ctx               168 libavcodec/vaapi_encode_mpeg2.c     VAAPIEncodeContext                 *ctx = avctx->priv_data;
ctx               176 libavcodec/vaapi_encode_mpeg2.c     VAEncSequenceParameterBufferMPEG2 *vseq = ctx->codec_sequence_params;
ctx               177 libavcodec/vaapi_encode_mpeg2.c     VAEncPictureParameterBufferMPEG2  *vpic = ctx->codec_picture_params;
ctx               188 libavcodec/vaapi_encode_mpeg2.c     if (ctx->va_bit_rate > 0) {
ctx               189 libavcodec/vaapi_encode_mpeg2.c         priv->bit_rate = (ctx->va_bit_rate + 399) / 400;
ctx               283 libavcodec/vaapi_encode_mpeg2.c     se->low_delay                 = ctx->b_per_p == 0;
ctx               356 libavcodec/vaapi_encode_mpeg2.c         .intra_period = ctx->gop_size,
ctx               357 libavcodec/vaapi_encode_mpeg2.c         .ip_period    = ctx->b_per_p + 1,
ctx               362 libavcodec/vaapi_encode_mpeg2.c         .bits_per_second          = ctx->va_bit_rate,
ctx               516 libavcodec/vaapi_encode_mpeg2.c     VAAPIEncodeContext       *ctx = avctx->priv_data;
ctx               524 libavcodec/vaapi_encode_mpeg2.c     if (ctx->va_rc_mode == VA_RC_CQP) {
ctx               525 libavcodec/vaapi_encode_mpeg2.c         priv->quant_p = av_clip(ctx->rc_quality, 1, 31);
ctx               549 libavcodec/vaapi_encode_mpeg2.c     ctx->slice_block_rows = FFALIGN(avctx->height, 16) / 16;
ctx               550 libavcodec/vaapi_encode_mpeg2.c     ctx->slice_block_cols = FFALIGN(avctx->width,  16) / 16;
ctx               552 libavcodec/vaapi_encode_mpeg2.c     ctx->nb_slices  = ctx->slice_block_rows;
ctx               553 libavcodec/vaapi_encode_mpeg2.c     ctx->slice_size = 1;
ctx               555 libavcodec/vaapi_encode_mpeg2.c     ctx->roi_quant_range = 31;
ctx               593 libavcodec/vaapi_encode_mpeg2.c     VAAPIEncodeContext       *ctx = avctx->priv_data;
ctx               596 libavcodec/vaapi_encode_mpeg2.c     ctx->codec = &vaapi_encode_type_mpeg2;
ctx               623 libavcodec/vaapi_encode_mpeg2.c     ctx->desired_packed_headers = VA_ENC_PACKED_HEADER_SEQUENCE |
ctx               626 libavcodec/vaapi_encode_mpeg2.c     ctx->surface_width  = FFALIGN(avctx->width,  16);
ctx               627 libavcodec/vaapi_encode_mpeg2.c     ctx->surface_height = FFALIGN(avctx->height, 16);
ctx                55 libavcodec/vaapi_encode_vp8.c     VAAPIEncodeContext               *ctx = avctx->priv_data;
ctx                56 libavcodec/vaapi_encode_vp8.c     VAEncSequenceParameterBufferVP8 *vseq = ctx->codec_sequence_params;
ctx                67 libavcodec/vaapi_encode_vp8.c     if (!(ctx->va_rc_mode & VA_RC_CQP)) {
ctx                68 libavcodec/vaapi_encode_vp8.c         vseq->bits_per_second = ctx->va_bit_rate;
ctx                69 libavcodec/vaapi_encode_vp8.c         vseq->intra_period    = ctx->gop_size;
ctx               164 libavcodec/vaapi_encode_vp8.c     VAAPIEncodeContext     *ctx = avctx->priv_data;
ctx               167 libavcodec/vaapi_encode_vp8.c     priv->q_index_p = av_clip(ctx->rc_quality, 0, VP8_MAX_QUANT);
ctx               176 libavcodec/vaapi_encode_vp8.c     ctx->roi_quant_range = VP8_MAX_QUANT;
ctx               204 libavcodec/vaapi_encode_vp8.c     VAAPIEncodeContext *ctx = avctx->priv_data;
ctx               206 libavcodec/vaapi_encode_vp8.c     ctx->codec = &vaapi_encode_type_vp8;
ctx               211 libavcodec/vaapi_encode_vp8.c     ctx->desired_packed_headers = 0;
ctx               213 libavcodec/vaapi_encode_vp8.c     ctx->surface_width  = FFALIGN(avctx->width,  16);
ctx               214 libavcodec/vaapi_encode_vp8.c     ctx->surface_height = FFALIGN(avctx->height, 16);
ctx                55 libavcodec/vaapi_encode_vp9.c     VAAPIEncodeContext               *ctx = avctx->priv_data;
ctx                56 libavcodec/vaapi_encode_vp9.c     VAEncSequenceParameterBufferVP9 *vseq = ctx->codec_sequence_params;
ctx                57 libavcodec/vaapi_encode_vp9.c     VAEncPictureParameterBufferVP9  *vpic = ctx->codec_picture_params;
ctx                64 libavcodec/vaapi_encode_vp9.c     if (!(ctx->va_rc_mode & VA_RC_CQP)) {
ctx                65 libavcodec/vaapi_encode_vp9.c         vseq->bits_per_second = ctx->va_bit_rate;
ctx                66 libavcodec/vaapi_encode_vp9.c         vseq->intra_period    = ctx->gop_size;
ctx                80 libavcodec/vaapi_encode_vp9.c     VAAPIEncodeContext              *ctx = avctx->priv_data;
ctx               102 libavcodec/vaapi_encode_vp9.c             if (ctx->max_b_depth > 0) {
ctx               122 libavcodec/vaapi_encode_vp9.c             if (pic->b_depth == ctx->max_b_depth) {
ctx               181 libavcodec/vaapi_encode_vp9.c     VAAPIEncodeContext     *ctx = avctx->priv_data;
ctx               184 libavcodec/vaapi_encode_vp9.c     if (ctx->rc_mode->quality) {
ctx               185 libavcodec/vaapi_encode_vp9.c         priv->q_idx_p = av_clip(ctx->rc_quality, 0, VP9_MAX_QUANT);
ctx               205 libavcodec/vaapi_encode_vp9.c     ctx->roi_quant_range = VP9_MAX_QUANT;
ctx               237 libavcodec/vaapi_encode_vp9.c     VAAPIEncodeContext *ctx = avctx->priv_data;
ctx               239 libavcodec/vaapi_encode_vp9.c     ctx->codec = &vaapi_encode_type_vp9;
ctx               244 libavcodec/vaapi_encode_vp9.c     ctx->desired_packed_headers = 0;
ctx               247 libavcodec/vaapi_encode_vp9.c     ctx->surface_width  = FFALIGN(avctx->width,  64);
ctx               248 libavcodec/vaapi_encode_vp9.c     ctx->surface_height = FFALIGN(avctx->height, 64);
ctx                48 libavcodec/vaapi_mpeg4.c     Mpeg4DecContext *ctx = avctx->priv_data;
ctx                49 libavcodec/vaapi_mpeg4.c     MpegEncContext *s = &ctx->m;
ctx                66 libavcodec/vaapi_mpeg4.c             .sprite_enable                = ctx->vol_sprite_usage,
ctx                71 libavcodec/vaapi_mpeg4.c             .reversible_vlc               = ctx->rvlc,
ctx                72 libavcodec/vaapi_mpeg4.c             .resync_marker_disable        = !ctx->resync_marker,
ctx                74 libavcodec/vaapi_mpeg4.c         .no_of_sprite_warping_points      = ctx->num_sprite_warping_points,
ctx                81 libavcodec/vaapi_mpeg4.c             .intra_dc_vlc_thr             = mpeg4_get_intra_dc_vlc_thr(ctx),
ctx                95 libavcodec/vaapi_mpeg4.c     for (i = 0; i < ctx->num_sprite_warping_points && i < 3; i++) {
ctx                96 libavcodec/vaapi_mpeg4.c         pic_param.sprite_trajectory_du[i]              = ctx->sprite_traj[i][0];
ctx                97 libavcodec/vaapi_mpeg4.c         pic_param.sprite_trajectory_dv[i]              = ctx->sprite_traj[i][1];
ctx                45 libavcodec/vble.c static int vble_unpack(VBLEContext *ctx, GetBitContext *gb)
ctx                61 libavcodec/vble.c     for (i = 0; i < ctx->size; i++) {
ctx                69 libavcodec/vble.c             ctx->val[i] = val;
ctx                74 libavcodec/vble.c             ctx->val[i] = 8;
ctx                76 libavcodec/vble.c         allbits += ctx->val[i];
ctx                85 libavcodec/vble.c static void vble_restore_plane(VBLEContext *ctx, AVFrame *pic,
ctx                90 libavcodec/vble.c     uint8_t *val = ctx->val + offset;
ctx               105 libavcodec/vble.c             ctx->llviddsp.add_median_pred(dst, dst - stride, val,
ctx               120 libavcodec/vble.c     VBLEContext *ctx = avctx->priv_data;
ctx               152 libavcodec/vble.c     if (vble_unpack(ctx, &gb) < 0) {
ctx               158 libavcodec/vble.c     vble_restore_plane(ctx, pic, &gb, 0, offset, avctx->width, avctx->height);
ctx               161 libavcodec/vble.c     if (!(ctx->avctx->flags & AV_CODEC_FLAG_GRAY)) {
ctx               163 libavcodec/vble.c         vble_restore_plane(ctx, pic, &gb, 1, offset, width_uv, height_uv);
ctx               166 libavcodec/vble.c         vble_restore_plane(ctx, pic, &gb, 2, offset, width_uv, height_uv);
ctx               176 libavcodec/vble.c     VBLEContext *ctx = avctx->priv_data;
ctx               177 libavcodec/vble.c     av_freep(&ctx->val);
ctx               184 libavcodec/vble.c     VBLEContext *ctx = avctx->priv_data;
ctx               187 libavcodec/vble.c     ctx->avctx = avctx;
ctx               188 libavcodec/vble.c     ff_llviddsp_init(&ctx->llviddsp);
ctx               193 libavcodec/vble.c     ctx->size = av_image_get_buffer_size(avctx->pix_fmt,
ctx               196 libavcodec/vble.c     ctx->val = av_malloc_array(ctx->size, sizeof(*ctx->val));
ctx               198 libavcodec/vble.c     if (!ctx->val) {
ctx               106 libavcodec/vc2enc.c     void *ctx;
ctx               116 libavcodec/vc2enc.c     void *ctx;
ctx               558 libavcodec/vc2enc.c     VC2EncContext *s = slice->ctx;
ctx               618 libavcodec/vc2enc.c     VC2EncContext *s = slice_dat->ctx;
ctx               657 libavcodec/vc2enc.c             args->ctx = s;
ctx               724 libavcodec/vc2enc.c     VC2EncContext *s = slice_dat->ctx;
ctx               841 libavcodec/vc2enc.c     VC2EncContext *s = transform_dat->ctx;
ctx               905 libavcodec/vc2enc.c         s->transform_args[i].ctx   = s;
ctx                35 libavcodec/vdpau_mpeg4.c     Mpeg4DecContext *ctx = avctx->priv_data;
ctx                36 libavcodec/vdpau_mpeg4.c     MpegEncContext * const s = &ctx->m;
ctx                68 libavcodec/vdpau_mpeg4.c     info->resync_marker_disable             = !ctx->resync_marker;
ctx                38 libavcodec/videodsp.c av_cold void ff_videodsp_init(VideoDSPContext *ctx, int bpc)
ctx                40 libavcodec/videodsp.c     ctx->prefetch = just_return;
ctx                42 libavcodec/videodsp.c         ctx->emulated_edge_mc = ff_emulated_edge_mc_8;
ctx                44 libavcodec/videodsp.c         ctx->emulated_edge_mc = ff_emulated_edge_mc_16;
ctx                48 libavcodec/videodsp.c         ff_videodsp_init_aarch64(ctx, bpc);
ctx                50 libavcodec/videodsp.c         ff_videodsp_init_arm(ctx, bpc);
ctx                52 libavcodec/videodsp.c         ff_videodsp_init_ppc(ctx, bpc);
ctx                54 libavcodec/videodsp.c         ff_videodsp_init_x86(ctx, bpc);
ctx                56 libavcodec/videodsp.c         ff_videodsp_init_mips(ctx, bpc);
ctx                79 libavcodec/videodsp.h void ff_videodsp_init(VideoDSPContext *ctx, int bpc);
ctx                82 libavcodec/videodsp.h void ff_videodsp_init_aarch64(VideoDSPContext *ctx, int bpc);
ctx                83 libavcodec/videodsp.h void ff_videodsp_init_arm(VideoDSPContext *ctx, int bpc);
ctx                84 libavcodec/videodsp.h void ff_videodsp_init_ppc(VideoDSPContext *ctx, int bpc);
ctx                85 libavcodec/videodsp.h void ff_videodsp_init_x86(VideoDSPContext *ctx, int bpc);
ctx                86 libavcodec/videodsp.h void ff_videodsp_init_mips(VideoDSPContext *ctx, int bpc);
ctx               562 libavcodec/videotoolboxenc.c     void *ctx,
ctx               568 libavcodec/videotoolboxenc.c     AVCodecContext *avctx = ctx;
ctx               329 libavcodec/vorbis_parser.c static void vorbis_parser_close(AVCodecParserContext *ctx)
ctx               331 libavcodec/vorbis_parser.c     VorbisParseContext *s = ctx->priv_data;
ctx               139 libavcodec/vp5.c     int node, cg, ctx;
ctx               167 libavcodec/vp5.c         for (ctx=0; ctx<36; ctx++)
ctx               169 libavcodec/vp5.c                 model->coeff_dcct[pt][ctx][node] = av_clip(((model->coeff_dccv[pt][node] * vp5_dccv_lc[node][ctx][0] + 128) >> 8) + vp5_dccv_lc[node][ctx][1], 1, 254);
ctx               175 libavcodec/vp5.c                 for (ctx=0; ctx<6; ctx++)
ctx               177 libavcodec/vp5.c                         model->coeff_acct[pt][ct][cg][ctx][node] = av_clip(((model->coeff_ract[pt][ct][cg][node] * vp5_ract_lc[ct][cg][node][ctx][0] + 128) >> 8) + vp5_ract_lc[ct][cg][node][ctx][1], 1, 254);
ctx               188 libavcodec/vp5.c     int b, i, cg, idx, ctx, ctx_last;
ctx               201 libavcodec/vp5.c         ctx = 6*s->coeff_ctx[ff_vp56_b6to4[b]][0]
ctx               204 libavcodec/vp5.c         model2 = model->coeff_dcct[pt][ctx];
ctx               249 libavcodec/vp5.c             ctx = s->coeff_ctx[ff_vp56_b6to4[b]][coeff_idx];
ctx               251 libavcodec/vp5.c             model2 = cg > 2 ? model1 : model->coeff_acct[pt][ct][cg][ctx];
ctx                85 libavcodec/vp56.c     int i, ctx, type;
ctx                87 libavcodec/vp56.c     for (ctx=0; ctx<3; ctx++) {
ctx                90 libavcodec/vp56.c             memcpy(model->mb_types_stats[ctx],
ctx                91 libavcodec/vp56.c                    ff_vp56_pre_def_mb_type_stats[idx][ctx],
ctx                92 libavcodec/vp56.c                    sizeof(model->mb_types_stats[ctx]));
ctx               104 libavcodec/vp56.c                         model->mb_types_stats[ctx][type][i] += (delta ^ -sign) + sign;
ctx               112 libavcodec/vp56.c     for (ctx=0; ctx<3; ctx++) {
ctx               116 libavcodec/vp56.c             p[type] = 100 * model->mb_types_stats[ctx][type][1];
ctx               122 libavcodec/vp56.c             model->mb_type[ctx][type][0] = 255 - (255 * model->mb_types_stats[ctx][type][0]) / (1 + model->mb_types_stats[ctx][type][0] + model->mb_types_stats[ctx][type][1]);
ctx               136 libavcodec/vp56.c             model->mb_type[ctx][type][1] = 1 + 255 * p0234/(1+p0234+p156789);
ctx               137 libavcodec/vp56.c             model->mb_type[ctx][type][2] = 1 + 255 * p02  / (1+p0234);
ctx               138 libavcodec/vp56.c             model->mb_type[ctx][type][3] = 1 + 255 * p17  / (1+p156789);
ctx               139 libavcodec/vp56.c             model->mb_type[ctx][type][4] = 1 + 255 * p[0] / (1+p02);
ctx               140 libavcodec/vp56.c             model->mb_type[ctx][type][5] = 1 + 255 * p[3] / (1+p34);
ctx               141 libavcodec/vp56.c             model->mb_type[ctx][type][6] = 1 + 255 * p[1] / (1+p17);
ctx               142 libavcodec/vp56.c             model->mb_type[ctx][type][7] = 1 + 255 * p56  / (1+p5689);
ctx               143 libavcodec/vp56.c             model->mb_type[ctx][type][8] = 1 + 255 * p[5] / (1+p56);
ctx               144 libavcodec/vp56.c             model->mb_type[ctx][type][9] = 1 + 255 * p[8] / (1+p89);
ctx               147 libavcodec/vp56.c             p[type] = 100 * model->mb_types_stats[ctx][type][1];
ctx               153 libavcodec/vp56.c                                  VP56mb prev_type, int ctx)
ctx               155 libavcodec/vp56.c     uint8_t *mb_type_model = s->modelp->mb_type[ctx][prev_type];
ctx               208 libavcodec/vp56.c     int ctx, b;
ctx               210 libavcodec/vp56.c     ctx = vp56_get_vectors_predictors(s, row, col, VP56_FRAME_PREVIOUS);
ctx               211 libavcodec/vp56.c     s->mb_type = vp56_parse_mb_type(s, s->mb_type, ctx);
ctx               287 libavcodec/vp6.c     int node, cg, ctx, pos;
ctx               344 libavcodec/vp6.c         for (ctx=0; ctx<3; ctx++)
ctx               346 libavcodec/vp6.c                 model->coeff_dcct[pt][ctx][node] = av_clip(((model->coeff_dccv[pt][node] * vp6_dccv_lc[ctx][node][0] + 128) >> 8) + vp6_dccv_lc[ctx][node][1], 1, 255);
ctx               473 libavcodec/vp6.c     int b, i, cg, idx, ctx;
ctx               487 libavcodec/vp6.c         ctx = s->left_block[ff_vp56_b6to4[b]].not_null_dc
ctx               490 libavcodec/vp6.c         model2 = model->coeff_dcct[pt][ctx];
ctx              1224 libavcodec/vp8.c                 const uint8_t *ctx;
ctx              1225 libavcodec/vp8.c                 ctx       = vp8_pred4x4_prob_intra[top[x]][left[y]];
ctx              1226 libavcodec/vp8.c                 *intra4x4 = vp8_rac_get_tree(c, vp8_pred4x4_tree, ctx);
ctx                43 libavcodec/vp9_metadata_bsf.c     VP9MetadataContext *ctx = bsf->priv_data;
ctx                44 libavcodec/vp9_metadata_bsf.c     CodedBitstreamFragment *frag = &ctx->fragment;
ctx                51 libavcodec/vp9_metadata_bsf.c     err = ff_cbs_read_packet(ctx->cbc, frag, pkt);
ctx                64 libavcodec/vp9_metadata_bsf.c             if (ctx->color_space >= 0) {
ctx                65 libavcodec/vp9_metadata_bsf.c                 if (!(profile & 1) && ctx->color_space == VP9_CS_RGB) {
ctx                66 libavcodec/vp9_metadata_bsf.c                     if (!(ctx->color_warnings & 2)) {
ctx                69 libavcodec/vp9_metadata_bsf.c                         ctx->color_warnings |= 2;
ctx                72 libavcodec/vp9_metadata_bsf.c                     header->color_space = ctx->color_space;
ctx                75 libavcodec/vp9_metadata_bsf.c             if (ctx->color_range >= 0)
ctx                76 libavcodec/vp9_metadata_bsf.c                 header->color_range = ctx->color_range;
ctx                78 libavcodec/vp9_metadata_bsf.c                 if (!(ctx->color_warnings & 1) && !header->color_range) {
ctx                81 libavcodec/vp9_metadata_bsf.c                     ctx->color_warnings |= 1;
ctx                85 libavcodec/vp9_metadata_bsf.c         } else if (!(ctx->color_warnings & 4) && header->intra_only && !profile &&
ctx                86 libavcodec/vp9_metadata_bsf.c                    ctx->color_space >= 0 && ctx->color_space != VP9_CS_BT_601) {
ctx                89 libavcodec/vp9_metadata_bsf.c             ctx->color_warnings |= 4;
ctx                93 libavcodec/vp9_metadata_bsf.c     err = ff_cbs_write_packet(ctx->cbc, pkt, frag);
ctx               101 libavcodec/vp9_metadata_bsf.c     ff_cbs_fragment_reset(ctx->cbc, frag);
ctx               111 libavcodec/vp9_metadata_bsf.c     VP9MetadataContext *ctx = bsf->priv_data;
ctx               113 libavcodec/vp9_metadata_bsf.c     return ff_cbs_init(&ctx->cbc, AV_CODEC_ID_VP9, bsf);
ctx               118 libavcodec/vp9_metadata_bsf.c     VP9MetadataContext *ctx = bsf->priv_data;
ctx               120 libavcodec/vp9_metadata_bsf.c     ff_cbs_fragment_free(ctx->cbc, &ctx->fragment);
ctx               121 libavcodec/vp9_metadata_bsf.c     ff_cbs_close(&ctx->cbc);
ctx                28 libavcodec/vp9_parser.c static int parse(AVCodecParserContext *ctx,
ctx                57 libavcodec/vp9_parser.c         ctx->pict_type = AV_PICTURE_TYPE_P;
ctx                58 libavcodec/vp9_parser.c         ctx->key_frame = 0;
ctx                60 libavcodec/vp9_parser.c         ctx->pict_type = AV_PICTURE_TYPE_I;
ctx                61 libavcodec/vp9_parser.c         ctx->key_frame = 1;
ctx                63 libavcodec/vp9_raw_reorder_bsf.c static void vp9_raw_reorder_clear_slot(VP9RawReorderContext *ctx, int s)
ctx                65 libavcodec/vp9_raw_reorder_bsf.c     if (ctx->slot[s]) {
ctx                66 libavcodec/vp9_raw_reorder_bsf.c         ctx->slot[s]->slots &= ~(1 << s);
ctx                67 libavcodec/vp9_raw_reorder_bsf.c         if (ctx->slot[s]->slots == 0)
ctx                68 libavcodec/vp9_raw_reorder_bsf.c             vp9_raw_reorder_frame_free(&ctx->slot[s]);
ctx                70 libavcodec/vp9_raw_reorder_bsf.c             ctx->slot[s] = NULL;
ctx               175 libavcodec/vp9_raw_reorder_bsf.c     VP9RawReorderContext *ctx = bsf->priv_data;
ctx               181 libavcodec/vp9_raw_reorder_bsf.c         frame = ctx->slot[s];
ctx               279 libavcodec/vp9_raw_reorder_bsf.c     VP9RawReorderContext *ctx = bsf->priv_data;
ctx               284 libavcodec/vp9_raw_reorder_bsf.c     if (ctx->next_frame) {
ctx               285 libavcodec/vp9_raw_reorder_bsf.c         frame = ctx->next_frame;
ctx               310 libavcodec/vp9_raw_reorder_bsf.c         frame->sequence = ++ctx->sequence;
ctx               331 libavcodec/vp9_raw_reorder_bsf.c         ctx->next_frame = frame;
ctx               337 libavcodec/vp9_raw_reorder_bsf.c         if (ctx->slot[s] && ctx->slot[s]->needs_display &&
ctx               338 libavcodec/vp9_raw_reorder_bsf.c             ctx->slot[s]->slots == (1 << s)) {
ctx               343 libavcodec/vp9_raw_reorder_bsf.c             err = vp9_raw_reorder_make_output(bsf, out, ctx->slot[s]);
ctx               350 libavcodec/vp9_raw_reorder_bsf.c                 vp9_raw_reorder_clear_slot(ctx, s);
ctx               355 libavcodec/vp9_raw_reorder_bsf.c         vp9_raw_reorder_clear_slot(ctx, s);
ctx               361 libavcodec/vp9_raw_reorder_bsf.c         ctx->slot[s] = frame;
ctx               370 libavcodec/vp9_raw_reorder_bsf.c             ctx->next_frame = NULL;
ctx               375 libavcodec/vp9_raw_reorder_bsf.c             ctx->next_frame = NULL;
ctx               380 libavcodec/vp9_raw_reorder_bsf.c     ctx->next_frame = NULL;
ctx               390 libavcodec/vp9_raw_reorder_bsf.c     VP9RawReorderContext *ctx = bsf->priv_data;
ctx               393 libavcodec/vp9_raw_reorder_bsf.c         vp9_raw_reorder_clear_slot(ctx, s);
ctx               394 libavcodec/vp9_raw_reorder_bsf.c     ctx->next_frame = NULL;
ctx               395 libavcodec/vp9_raw_reorder_bsf.c     ctx->sequence = 0;
ctx               400 libavcodec/vp9_raw_reorder_bsf.c     VP9RawReorderContext *ctx = bsf->priv_data;
ctx               404 libavcodec/vp9_raw_reorder_bsf.c         vp9_raw_reorder_clear_slot(ctx, s);
ctx               101 libavcodec/vp9_superframe_bsf.c static int vp9_superframe_filter(AVBSFContext *ctx, AVPacket *pkt)
ctx               104 libavcodec/vp9_superframe_bsf.c     VP9BSFContext *s = ctx->priv_data;
ctx               107 libavcodec/vp9_superframe_bsf.c     res = ff_bsf_get_packet_ref(ctx, pkt);
ctx               135 libavcodec/vp9_superframe_bsf.c         av_log(ctx, AV_LOG_ERROR,
ctx               143 libavcodec/vp9_superframe_bsf.c         av_log(ctx, AV_LOG_ERROR,
ctx               174 libavcodec/vp9_superframe_bsf.c static int vp9_superframe_init(AVBSFContext *ctx)
ctx               176 libavcodec/vp9_superframe_bsf.c     VP9BSFContext *s = ctx->priv_data;
ctx               189 libavcodec/vp9_superframe_bsf.c static void vp9_superframe_flush(AVBSFContext *ctx)
ctx               191 libavcodec/vp9_superframe_bsf.c     VP9BSFContext *s = ctx->priv_data;
ctx               200 libavcodec/vp9_superframe_bsf.c static void vp9_superframe_close(AVBSFContext *ctx)
ctx               202 libavcodec/vp9_superframe_bsf.c     VP9BSFContext *s = ctx->priv_data;
ctx                41 libavcodec/vp9_superframe_split_bsf.c static int vp9_superframe_split_filter(AVBSFContext *ctx, AVPacket *out)
ctx                43 libavcodec/vp9_superframe_split_bsf.c     VP9SFSplitContext *s = ctx->priv_data;
ctx                49 libavcodec/vp9_superframe_split_bsf.c         ret = ff_bsf_get_packet_ref(ctx, s->buffer_pkt);
ctx                74 libavcodec/vp9_superframe_split_bsf.c                         av_log(ctx, AV_LOG_ERROR,
ctx               135 libavcodec/vp9_superframe_split_bsf.c static int vp9_superframe_split_init(AVBSFContext *ctx)
ctx               137 libavcodec/vp9_superframe_split_bsf.c     VP9SFSplitContext *s = ctx->priv_data;
ctx               146 libavcodec/vp9_superframe_split_bsf.c static void vp9_superframe_split_flush(AVBSFContext *ctx)
ctx               148 libavcodec/vp9_superframe_split_bsf.c     VP9SFSplitContext *s = ctx->priv_data;
ctx               152 libavcodec/vp9_superframe_split_bsf.c static void vp9_superframe_split_uninit(AVBSFContext *ctx)
ctx               154 libavcodec/vp9_superframe_split_bsf.c     VP9SFSplitContext *s = ctx->priv_data;
ctx               135 libavcodec/wavpack.c static int update_error_limit(WavpackFrameContext *ctx)
ctx               139 libavcodec/wavpack.c     for (i = 0; i <= ctx->stereo_in; i++) {
ctx               140 libavcodec/wavpack.c         if (ctx->ch[i].bitrate_acc > UINT_MAX - ctx->ch[i].bitrate_delta)
ctx               142 libavcodec/wavpack.c         ctx->ch[i].bitrate_acc += ctx->ch[i].bitrate_delta;
ctx               143 libavcodec/wavpack.c         br[i]                   = ctx->ch[i].bitrate_acc >> 16;
ctx               144 libavcodec/wavpack.c         sl[i]                   = LEVEL_DECAY(ctx->ch[i].slow_level);
ctx               146 libavcodec/wavpack.c     if (ctx->stereo_in && ctx->hybrid_bitrate) {
ctx               159 libavcodec/wavpack.c     for (i = 0; i <= ctx->stereo_in; i++) {
ctx               160 libavcodec/wavpack.c         if (ctx->hybrid_bitrate) {
ctx               162 libavcodec/wavpack.c                 ctx->ch[i].error_limit = wp_exp2(sl[i] - br[i] + 0x100);
ctx               164 libavcodec/wavpack.c                 ctx->ch[i].error_limit = 0;
ctx               166 libavcodec/wavpack.c             ctx->ch[i].error_limit = wp_exp2(br[i]);
ctx               173 libavcodec/wavpack.c static int wv_get_value(WavpackFrameContext *ctx, GetBitContext *gb,
ctx               178 libavcodec/wavpack.c     WvChannel *c = &ctx->ch[channel];
ctx               182 libavcodec/wavpack.c     if ((ctx->ch[0].median[0] < 2U) && (ctx->ch[1].median[0] < 2U) &&
ctx               183 libavcodec/wavpack.c         !ctx->zero && !ctx->one) {
ctx               184 libavcodec/wavpack.c         if (ctx->zeroes) {
ctx               185 libavcodec/wavpack.c             ctx->zeroes--;
ctx               186 libavcodec/wavpack.c             if (ctx->zeroes) {
ctx               200 libavcodec/wavpack.c             ctx->zeroes = t;
ctx               201 libavcodec/wavpack.c             if (ctx->zeroes) {
ctx               202 libavcodec/wavpack.c                 memset(ctx->ch[0].median, 0, sizeof(ctx->ch[0].median));
ctx               203 libavcodec/wavpack.c                 memset(ctx->ch[1].median, 0, sizeof(ctx->ch[1].median));
ctx               210 libavcodec/wavpack.c     if (ctx->zero) {
ctx               212 libavcodec/wavpack.c         ctx->zero = 0;
ctx               230 libavcodec/wavpack.c         if (ctx->one) {
ctx               231 libavcodec/wavpack.c             ctx->one = t & 1;
ctx               234 libavcodec/wavpack.c             ctx->one = t & 1;
ctx               237 libavcodec/wavpack.c         ctx->zero = !ctx->one;
ctx               240 libavcodec/wavpack.c     if (ctx->hybrid && !channel) {
ctx               241 libavcodec/wavpack.c         if (update_error_limit(ctx) < 0)
ctx               269 libavcodec/wavpack.c             av_log(ctx->avctx, AV_LOG_ERROR, "k %d is too large\n", add);
ctx               290 libavcodec/wavpack.c     if (ctx->hybrid_bitrate)
ctx               297 libavcodec/wavpack.c         av_log(ctx->avctx, AV_LOG_ERROR, "Too few bits (%d) left\n", ret);
ctx                41 libavcodec/webp_parser.c     WebPParseContext *ctx = s->priv_data;
ctx                42 libavcodec/webp_parser.c     uint64_t state = ctx->pc.state64;
ctx                50 libavcodec/webp_parser.c     if (ctx->pc.frame_start_found <= 8) {
ctx                53 libavcodec/webp_parser.c             if (ctx->pc.frame_start_found == 0) {
ctx                55 libavcodec/webp_parser.c                     ctx->fsize = av_bswap32(state);
ctx                56 libavcodec/webp_parser.c                     if (ctx->fsize > 15 && ctx->fsize <= UINT32_MAX - 10) {
ctx                57 libavcodec/webp_parser.c                         ctx->pc.frame_start_found = 1;
ctx                58 libavcodec/webp_parser.c                         ctx->fsize += 8;
ctx                61 libavcodec/webp_parser.c             } else if (ctx->pc.frame_start_found == 8) {
ctx                63 libavcodec/webp_parser.c                     ctx->pc.frame_start_found = 0;
ctx                66 libavcodec/webp_parser.c                 ctx->pc.frame_start_found++;
ctx                67 libavcodec/webp_parser.c                 ctx->remaining_size = ctx->fsize + i - 15;
ctx                68 libavcodec/webp_parser.c                 if (ctx->pc.index + i > 15) {
ctx                73 libavcodec/webp_parser.c                     ctx->pc.state64 = 0;
ctx                76 libavcodec/webp_parser.c             } else if (ctx->pc.frame_start_found)
ctx                77 libavcodec/webp_parser.c                 ctx->pc.frame_start_found++;
ctx                79 libavcodec/webp_parser.c         ctx->pc.state64 = state;
ctx                81 libavcodec/webp_parser.c         if (ctx->remaining_size) {
ctx                82 libavcodec/webp_parser.c             i = FFMIN(ctx->remaining_size, buf_size);
ctx                83 libavcodec/webp_parser.c             ctx->remaining_size -= i;
ctx                84 libavcodec/webp_parser.c             if (ctx->remaining_size)
ctx                87 libavcodec/webp_parser.c             ctx->pc.frame_start_found = 0;
ctx                93 libavcodec/webp_parser.c     if (ff_combine_frame(&ctx->pc, next, &buf, &buf_size) < 0)
ctx                97 libavcodec/webp_parser.c         ctx->pc.frame_start_found = FFMAX(ctx->pc.frame_start_found - i - 1, 0);
ctx                99 libavcodec/webp_parser.c         ctx->pc.frame_start_found = 0;
ctx               336 libavcodec/wmavoice.c static av_cold void wmavoice_flush(AVCodecContext *ctx)
ctx               338 libavcodec/wmavoice.c     WMAVoiceContext *s = ctx->priv_data;
ctx               367 libavcodec/wmavoice.c static av_cold int wmavoice_decode_init(AVCodecContext *ctx)
ctx               371 libavcodec/wmavoice.c     WMAVoiceContext *s = ctx->priv_data;
ctx               383 libavcodec/wmavoice.c     if (ctx->extradata_size != 46) {
ctx               384 libavcodec/wmavoice.c         av_log(ctx, AV_LOG_ERROR,
ctx               386 libavcodec/wmavoice.c                ctx->extradata_size);
ctx               389 libavcodec/wmavoice.c     if (ctx->block_align <= 0 || ctx->block_align > (1<<22)) {
ctx               390 libavcodec/wmavoice.c         av_log(ctx, AV_LOG_ERROR, "Invalid block alignment %d.\n", ctx->block_align);
ctx               394 libavcodec/wmavoice.c     flags                = AV_RL32(ctx->extradata + 18);
ctx               395 libavcodec/wmavoice.c     s->spillover_bitsize = 3 + av_ceil_log2(ctx->block_align);
ctx               412 libavcodec/wmavoice.c         av_log(ctx, AV_LOG_ERROR,
ctx               430 libavcodec/wmavoice.c     init_get_bits(&s->gb, ctx->extradata + 22, (ctx->extradata_size - 22) << 3);
ctx               432 libavcodec/wmavoice.c         av_log(ctx, AV_LOG_ERROR, "Invalid VBM tree; broken extradata?\n");
ctx               436 libavcodec/wmavoice.c     if (ctx->sample_rate >= INT_MAX / (256 * 37))
ctx               439 libavcodec/wmavoice.c     s->min_pitch_val    = ((ctx->sample_rate << 8)      /  400 + 50) >> 8;
ctx               440 libavcodec/wmavoice.c     s->max_pitch_val    = ((ctx->sample_rate << 8) * 37 / 2000 + 50) >> 8;
ctx               443 libavcodec/wmavoice.c         av_log(ctx, AV_LOG_ERROR, "Invalid pitch range; broken extradata?\n");
ctx               455 libavcodec/wmavoice.c         av_log(ctx, AV_LOG_ERROR,
ctx               457 libavcodec/wmavoice.c                ctx->sample_rate, min_sr, max_sr); // 322-22097 Hz
ctx               468 libavcodec/wmavoice.c         av_log(ctx, AV_LOG_ERROR, "Invalid delta pitch hrange; broken extradata?\n");
ctx               477 libavcodec/wmavoice.c     ctx->channels               = 1;
ctx               478 libavcodec/wmavoice.c     ctx->channel_layout         = AV_CH_LAYOUT_MONO;
ctx               479 libavcodec/wmavoice.c     ctx->sample_fmt             = AV_SAMPLE_FMT_FLT;
ctx              1482 libavcodec/wmavoice.c static int synth_frame(AVCodecContext *ctx, GetBitContext *gb, int frame_idx,
ctx              1487 libavcodec/wmavoice.c     WMAVoiceContext *s = ctx->priv_data;
ctx              1495 libavcodec/wmavoice.c         av_log(ctx, AV_LOG_ERROR,
ctx              1704 libavcodec/wmavoice.c static int synth_superframe(AVCodecContext *ctx, AVFrame *frame,
ctx              1707 libavcodec/wmavoice.c     WMAVoiceContext *s = ctx->priv_data;
ctx              1733 libavcodec/wmavoice.c         avpriv_request_sample(ctx, "WMAPro-in-WMAVoice");
ctx              1740 libavcodec/wmavoice.c             av_log(ctx, AV_LOG_ERROR,
ctx              1774 libavcodec/wmavoice.c     if ((res = ff_get_buffer(ctx, frame, 0)) < 0)
ctx              1794 libavcodec/wmavoice.c         if ((res = synth_frame(ctx, gb, n,
ctx              1813 libavcodec/wmavoice.c         wmavoice_flush(ctx);
ctx              1904 libavcodec/wmavoice.c static int wmavoice_decode_packet(AVCodecContext *ctx, void *data,
ctx              1907 libavcodec/wmavoice.c     WMAVoiceContext *s = ctx->priv_data;
ctx              1916 libavcodec/wmavoice.c     for (size = avpkt->size; size > ctx->block_align; size -= ctx->block_align);
ctx              1922 libavcodec/wmavoice.c     if (!(size % ctx->block_align)) { // new packet header
ctx              1943 libavcodec/wmavoice.c             if ((res = synth_superframe(ctx, data, got_frame_ptr)) == 0 &&
ctx              1966 libavcodec/wmavoice.c         if ((res = synth_superframe(ctx, data, got_frame_ptr)) < 0) {
ctx              1985 libavcodec/wmavoice.c static av_cold int wmavoice_decode_end(AVCodecContext *ctx)
ctx              1987 libavcodec/wmavoice.c     WMAVoiceContext *s = ctx->priv_data;
ctx                31 libavcodec/x86/dnxhdenc_init.c av_cold void ff_dnxhdenc_init_x86(DNXHDEncContext *ctx)
ctx                34 libavcodec/x86/dnxhdenc_init.c         if (ctx->cid_table->bit_depth == 8)
ctx                35 libavcodec/x86/dnxhdenc_init.c             ctx->get_pixels_8x4_sym = ff_get_pixels_8x4_sym_sse2;
ctx                27 libavcodec/x86/opusdsp_init.c av_cold void ff_opus_dsp_init_x86(OpusDSP *ctx)
ctx                32 libavcodec/x86/opusdsp_init.c         ctx->postfilter = ff_opus_postfilter_fma3;
ctx                33 libavcodec/x86/opusdsp_init.c         ctx->deemphasis = ff_opus_deemphasis_fma3;
ctx               279 libavcodec/x86/videodsp_init.c av_cold void ff_videodsp_init_x86(VideoDSPContext *ctx, int bpc)
ctx               286 libavcodec/x86/videodsp_init.c         ctx->emulated_edge_mc = emulated_edge_mc_mmx;
ctx               289 libavcodec/x86/videodsp_init.c         ctx->prefetch = ff_prefetch_3dnow;
ctx               293 libavcodec/x86/videodsp_init.c         ctx->prefetch = ff_prefetch_mmxext;
ctx               297 libavcodec/x86/videodsp_init.c         ctx->emulated_edge_mc = emulated_edge_mc_sse;
ctx               301 libavcodec/x86/videodsp_init.c         ctx->emulated_edge_mc = emulated_edge_mc_sse2;
ctx               305 libavcodec/x86/videodsp_init.c         ctx->emulated_edge_mc = emulated_edge_mc_avx2;
ctx               165 libavcodec/xan.c     GetByteContext ctx;
ctx               167 libavcodec/xan.c     bytestream2_init(&ctx, src, src_len);
ctx               168 libavcodec/xan.c     while (dest < dest_end && bytestream2_get_bytes_left(&ctx)) {
ctx               169 libavcodec/xan.c         opcode = bytestream2_get_byte(&ctx);
ctx               176 libavcodec/xan.c                 back  = ((opcode & 0x60) << 3) + bytestream2_get_byte(&ctx) + 1;
ctx               179 libavcodec/xan.c                 size = bytestream2_peek_byte(&ctx) >> 6;
ctx               181 libavcodec/xan.c                 back  = (bytestream2_get_be16(&ctx) & 0x3fff) + 1;
ctx               186 libavcodec/xan.c                 back  = ((opcode & 0x10) << 12) + bytestream2_get_be16(&ctx) + 1;
ctx               187 libavcodec/xan.c                 size2 = ((opcode & 0x0c) <<  6) + bytestream2_get_byte(&ctx) + 5;
ctx               192 libavcodec/xan.c                 bytestream2_get_bytes_left(&ctx) < size)
ctx               194 libavcodec/xan.c             bytestream2_get_buffer(&ctx, dest, size);
ctx               202 libavcodec/xan.c             if (dest_end - dest < size || bytestream2_get_bytes_left(&ctx) < size)
ctx               204 libavcodec/xan.c             bytestream2_get_buffer(&ctx, dest, size);
ctx               552 libavcodec/xan.c     GetByteContext ctx;
ctx               555 libavcodec/xan.c     bytestream2_init(&ctx, buf, buf_size);
ctx               556 libavcodec/xan.c     while (bytestream2_get_bytes_left(&ctx) > 8 && tag != VGA__TAG) {
ctx               561 libavcodec/xan.c         tag  = bytestream2_get_le32(&ctx);
ctx               562 libavcodec/xan.c         size = bytestream2_get_be32(&ctx);
ctx               567 libavcodec/xan.c         size = FFMIN(size, bytestream2_get_bytes_left(&ctx));
ctx               582 libavcodec/xan.c                 int r = gamma_corr(bytestream2_get_byteu(&ctx));
ctx               583 libavcodec/xan.c                 int g = gamma_corr(bytestream2_get_byteu(&ctx));
ctx               584 libavcodec/xan.c                 int b = gamma_corr(bytestream2_get_byteu(&ctx));
ctx               586 libavcodec/xan.c                 int r = gamma_lookup[bytestream2_get_byteu(&ctx)];
ctx               587 libavcodec/xan.c                 int g = gamma_lookup[bytestream2_get_byteu(&ctx)];
ctx               588 libavcodec/xan.c                 int b = gamma_lookup[bytestream2_get_byteu(&ctx)];
ctx               597 libavcodec/xan.c             new_pal = bytestream2_get_le32(&ctx);
ctx               606 libavcodec/xan.c             bytestream2_skip(&ctx, size);
ctx               610 libavcodec/xan.c     buf_size = bytestream2_get_bytes_left(&ctx);
ctx               626 libavcodec/xan.c     s->buf = ctx.buffer;
ctx               167 libavdevice/alsa.c av_cold int ff_alsa_open(AVFormatContext *ctx, snd_pcm_stream_t mode,
ctx               171 libavdevice/alsa.c     AlsaData *s = ctx->priv_data;
ctx               178 libavdevice/alsa.c     uint64_t layout = ctx->streams[0]->codecpar->channel_layout;
ctx               180 libavdevice/alsa.c     if (ctx->url[0] == 0) audio_device = "default";
ctx               181 libavdevice/alsa.c     else                  audio_device = ctx->url;
ctx               187 libavdevice/alsa.c         av_log(ctx, AV_LOG_ERROR, "sample format 0x%04x is not supported\n", *codec_id);
ctx               192 libavdevice/alsa.c     if (ctx->flags & AVFMT_FLAG_NONBLOCK) {
ctx               197 libavdevice/alsa.c         av_log(ctx, AV_LOG_ERROR, "cannot open audio device %s (%s)\n",
ctx               204 libavdevice/alsa.c         av_log(ctx, AV_LOG_ERROR, "cannot allocate hardware parameter structure (%s)\n",
ctx               211 libavdevice/alsa.c         av_log(ctx, AV_LOG_ERROR, "cannot initialize hardware parameter structure (%s)\n",
ctx               218 libavdevice/alsa.c         av_log(ctx, AV_LOG_ERROR, "cannot set access type (%s)\n",
ctx               225 libavdevice/alsa.c         av_log(ctx, AV_LOG_ERROR, "cannot set sample format 0x%04x %d (%s)\n",
ctx               232 libavdevice/alsa.c         av_log(ctx, AV_LOG_ERROR, "cannot set sample rate (%s)\n",
ctx               239 libavdevice/alsa.c         av_log(ctx, AV_LOG_ERROR, "cannot set channel count to %d (%s)\n",
ctx               249 libavdevice/alsa.c         av_log(ctx, AV_LOG_ERROR, "cannot set ALSA buffer size (%s)\n",
ctx               259 libavdevice/alsa.c         av_log(ctx, AV_LOG_ERROR, "cannot set ALSA period size (%s)\n",
ctx               267 libavdevice/alsa.c         av_log(ctx, AV_LOG_ERROR, "cannot set parameters (%s)\n",
ctx               278 libavdevice/alsa.c             av_log(ctx, AV_LOG_WARNING, "ALSA channel layout unknown or unimplemented for %s %s.\n",
ctx               161 libavdevice/android_camera.c     AndroidCameraCtx *ctx = avctx->priv_data;
ctx               162 libavdevice/android_camera.c     atomic_store(&ctx->exit, 1);
ctx               170 libavdevice/android_camera.c     AndroidCameraCtx *ctx = avctx->priv_data;
ctx               171 libavdevice/android_camera.c     atomic_store(&ctx->exit, 1);
ctx               178 libavdevice/android_camera.c     AndroidCameraCtx *ctx = avctx->priv_data;
ctx               182 libavdevice/android_camera.c     ret = ACameraManager_getCameraIdList(ctx->camera_mgr, &camera_ids);
ctx               189 libavdevice/android_camera.c     if (ctx->camera_index < camera_ids->numCameras) {
ctx               190 libavdevice/android_camera.c         ctx->camera_id = av_strdup(camera_ids->cameraIds[ctx->camera_index]);
ctx               191 libavdevice/android_camera.c         if (!ctx->camera_id) {
ctx               197 libavdevice/android_camera.c                ctx->camera_index);
ctx               203 libavdevice/android_camera.c     ret = ACameraManager_getCameraCharacteristics(ctx->camera_mgr,
ctx               204 libavdevice/android_camera.c             ctx->camera_id, &ctx->camera_metadata);
ctx               207 libavdevice/android_camera.c                ctx->camera_id, camera_status_string(ret));
ctx               211 libavdevice/android_camera.c     ctx->camera_state_callbacks.context = avctx;
ctx               212 libavdevice/android_camera.c     ctx->camera_state_callbacks.onDisconnected = camera_dev_disconnected;
ctx               213 libavdevice/android_camera.c     ctx->camera_state_callbacks.onError = camera_dev_error;
ctx               215 libavdevice/android_camera.c     ret = ACameraManager_openCamera(ctx->camera_mgr, ctx->camera_id,
ctx               216 libavdevice/android_camera.c                                     &ctx->camera_state_callbacks, &ctx->camera_dev);
ctx               219 libavdevice/android_camera.c                ctx->camera_id, camera_status_string(ret));
ctx               228 libavdevice/android_camera.c     AndroidCameraCtx *ctx = avctx->priv_data;
ctx               232 libavdevice/android_camera.c     ACameraMetadata_getConstEntry(ctx->camera_metadata,
ctx               234 libavdevice/android_camera.c     ACameraMetadata_getConstEntry(ctx->camera_metadata,
ctx               237 libavdevice/android_camera.c     ctx->lens_facing = lens_facing.data.u8[0];
ctx               238 libavdevice/android_camera.c     ctx->sensor_orientation = sensor_orientation.data.i32[0];
ctx               243 libavdevice/android_camera.c     AndroidCameraCtx *ctx = avctx->priv_data;
ctx               247 libavdevice/android_camera.c     ACameraMetadata_getConstEntry(ctx->camera_metadata,
ctx               264 libavdevice/android_camera.c             if ((ctx->requested_width == width && ctx->requested_height == height) ||
ctx               265 libavdevice/android_camera.c                     (ctx->requested_width == height && ctx->requested_height == width)) {
ctx               266 libavdevice/android_camera.c                 ctx->width = width;
ctx               267 libavdevice/android_camera.c                 ctx->height = height;
ctx               274 libavdevice/android_camera.c     if (!found || ctx->width == 0 || ctx->height == 0) {
ctx               275 libavdevice/android_camera.c         ctx->width = available_configs.data.i32[1];
ctx               276 libavdevice/android_camera.c         ctx->height = available_configs.data.i32[2];
ctx               280 libavdevice/android_camera.c                ctx->requested_width, ctx->requested_height, ctx->width, ctx->height);
ctx               288 libavdevice/android_camera.c     AndroidCameraCtx *ctx = avctx->priv_data;
ctx               292 libavdevice/android_camera.c     int requested_framerate = av_q2d(ctx->framerate);
ctx               294 libavdevice/android_camera.c     ACameraMetadata_getConstEntry(ctx->camera_metadata,
ctx               304 libavdevice/android_camera.c                 ctx->framerate_range[0] = min;
ctx               305 libavdevice/android_camera.c                 ctx->framerate_range[1] = max;
ctx               321 libavdevice/android_camera.c             ctx->framerate_range[0] = available_framerates.data.i32[current_best_match * 2 + 0];
ctx               322 libavdevice/android_camera.c             ctx->framerate_range[1] = available_framerates.data.i32[current_best_match * 2 + 1];
ctx               325 libavdevice/android_camera.c             ctx->framerate_range[0] = available_framerates.data.i32[0];
ctx               326 libavdevice/android_camera.c             ctx->framerate_range[1] = available_framerates.data.i32[1];
ctx               331 libavdevice/android_camera.c                requested_framerate, ctx->framerate_range[0], ctx->framerate_range[1]);
ctx               339 libavdevice/android_camera.c     AndroidCameraCtx *ctx = avctx->priv_data;
ctx               357 libavdevice/android_camera.c             ctx->image_format = AV_PIX_FMT_YUV420P;
ctx               361 libavdevice/android_camera.c                 ctx->image_format = AV_PIX_FMT_NV12;
ctx               363 libavdevice/android_camera.c                 ctx->image_format = AV_PIX_FMT_NV21;
ctx               379 libavdevice/android_camera.c     AndroidCameraCtx *ctx = avctx->priv_data;
ctx               407 libavdevice/android_camera.c     if (atomic_load(&ctx->exit)) {
ctx               412 libavdevice/android_camera.c     if (!atomic_load(&ctx->got_image_format)) {
ctx               419 libavdevice/android_camera.c             atomic_store(&ctx->got_image_format, 1);
ctx               423 libavdevice/android_camera.c     pkt_buffer_size = av_image_get_buffer_size(ctx->image_format, ctx->width, ctx->height, 32);
ctx               429 libavdevice/android_camera.c     switch (ctx->image_format) {
ctx               461 libavdevice/android_camera.c                             image_linestrides, ctx->image_format,
ctx               462 libavdevice/android_camera.c                             ctx->width, ctx->height, 32);
ctx               464 libavdevice/android_camera.c     ret = av_thread_message_queue_send(ctx->input_queue, &pkt, AV_THREAD_MESSAGE_NONBLOCK);
ctx               471 libavdevice/android_camera.c             av_thread_message_queue_set_err_recv(ctx->input_queue, ret);
ctx               472 libavdevice/android_camera.c             atomic_store(&ctx->exit, 1);
ctx               476 libavdevice/android_camera.c                    ctx->input_queue_size);
ctx               490 libavdevice/android_camera.c     AndroidCameraCtx *ctx = avctx->priv_data;
ctx               493 libavdevice/android_camera.c     ret = AImageReader_new(ctx->width, ctx->height, IMAGE_FORMAT_ANDROID,
ctx               494 libavdevice/android_camera.c                            MAX_BUF_COUNT, &ctx->image_reader);
ctx               501 libavdevice/android_camera.c     ctx->image_listener.context = avctx;
ctx               502 libavdevice/android_camera.c     ctx->image_listener.onImageAvailable = image_available;
ctx               504 libavdevice/android_camera.c     ret = AImageReader_setImageListener(ctx->image_reader, &ctx->image_listener);
ctx               512 libavdevice/android_camera.c     ret = AImageReader_getWindow(ctx->image_reader, &ctx->image_reader_window);
ctx               540 libavdevice/android_camera.c     AndroidCameraCtx *ctx = avctx->priv_data;
ctx               543 libavdevice/android_camera.c     ret = ACaptureSessionOutputContainer_create(&ctx->capture_session_output_container);
ctx               551 libavdevice/android_camera.c     ANativeWindow_acquire(ctx->image_reader_window);
ctx               553 libavdevice/android_camera.c     ret = ACaptureSessionOutput_create(ctx->image_reader_window, &ctx->capture_session_output);
ctx               561 libavdevice/android_camera.c     ret = ACaptureSessionOutputContainer_add(ctx->capture_session_output_container,
ctx               562 libavdevice/android_camera.c                                              ctx->capture_session_output);
ctx               570 libavdevice/android_camera.c     ret = ACameraOutputTarget_create(ctx->image_reader_window, &ctx->camera_output_target);
ctx               578 libavdevice/android_camera.c     ret = ACameraDevice_createCaptureRequest(ctx->camera_dev, TEMPLATE_RECORD, &ctx->capture_request);
ctx               586 libavdevice/android_camera.c     ret = ACaptureRequest_setEntry_i32(ctx->capture_request, ACAMERA_CONTROL_AE_TARGET_FPS_RANGE,
ctx               587 libavdevice/android_camera.c                                        2, ctx->framerate_range);
ctx               595 libavdevice/android_camera.c     ret = ACaptureRequest_addTarget(ctx->capture_request, ctx->camera_output_target);
ctx               603 libavdevice/android_camera.c     ctx->capture_session_state_callbacks.context = avctx;
ctx               604 libavdevice/android_camera.c     ctx->capture_session_state_callbacks.onClosed = capture_session_closed;
ctx               605 libavdevice/android_camera.c     ctx->capture_session_state_callbacks.onReady = capture_session_ready;
ctx               606 libavdevice/android_camera.c     ctx->capture_session_state_callbacks.onActive = capture_session_active;
ctx               608 libavdevice/android_camera.c     ret = ACameraDevice_createCaptureSession(ctx->camera_dev, ctx->capture_session_output_container,
ctx               609 libavdevice/android_camera.c                                              &ctx->capture_session_state_callbacks, &ctx->capture_session);
ctx               617 libavdevice/android_camera.c     ret = ACameraCaptureSession_setRepeatingRequest(ctx->capture_session, NULL, 1, &ctx->capture_request, NULL);
ctx               630 libavdevice/android_camera.c     AndroidCameraCtx *ctx = avctx->priv_data;
ctx               632 libavdevice/android_camera.c     while (!atomic_load(&ctx->got_image_format) && !atomic_load(&ctx->exit)) {
ctx               637 libavdevice/android_camera.c     return atomic_load(&ctx->got_image_format);
ctx               642 libavdevice/android_camera.c     AndroidCameraCtx *ctx = avctx->priv_data;
ctx               646 libavdevice/android_camera.c     av_display_rotation_set(display_matrix, ctx->sensor_orientation);
ctx               648 libavdevice/android_camera.c     if (ctx->lens_facing == ACAMERA_LENS_FACING_FRONT) {
ctx               666 libavdevice/android_camera.c     AndroidCameraCtx *ctx = avctx->priv_data;
ctx               676 libavdevice/android_camera.c     st->avg_frame_rate = (AVRational) { ctx->framerate_range[1], 1 };
ctx               677 libavdevice/android_camera.c     st->r_frame_rate = (AVRational) { ctx->framerate_range[1], 1 };
ctx               686 libavdevice/android_camera.c     codecpar->format = ctx->image_format;
ctx               687 libavdevice/android_camera.c     codecpar->width = ctx->width;
ctx               688 libavdevice/android_camera.c     codecpar->height = ctx->height;
ctx               697 libavdevice/android_camera.c     AndroidCameraCtx *ctx = avctx->priv_data;
ctx               699 libavdevice/android_camera.c     atomic_store(&ctx->exit, 1);
ctx               701 libavdevice/android_camera.c     if (ctx->capture_session) {
ctx               702 libavdevice/android_camera.c         ACameraCaptureSession_stopRepeating(ctx->capture_session);
ctx               706 libavdevice/android_camera.c         ACameraCaptureSession_close(ctx->capture_session);
ctx               707 libavdevice/android_camera.c         ctx->capture_session = NULL;
ctx               710 libavdevice/android_camera.c     if (ctx->capture_request) {
ctx               711 libavdevice/android_camera.c         ACaptureRequest_removeTarget(ctx->capture_request, ctx->camera_output_target);
ctx               712 libavdevice/android_camera.c         ACaptureRequest_free(ctx->capture_request);
ctx               713 libavdevice/android_camera.c         ctx->capture_request = NULL;
ctx               716 libavdevice/android_camera.c     if (ctx->camera_output_target) {
ctx               717 libavdevice/android_camera.c         ACameraOutputTarget_free(ctx->camera_output_target);
ctx               718 libavdevice/android_camera.c         ctx->camera_output_target = NULL;
ctx               721 libavdevice/android_camera.c     if (ctx->capture_session_output) {
ctx               722 libavdevice/android_camera.c         ACaptureSessionOutputContainer_remove(ctx->capture_session_output_container,
ctx               723 libavdevice/android_camera.c                 ctx->capture_session_output);
ctx               724 libavdevice/android_camera.c         ACaptureSessionOutput_free(ctx->capture_session_output);
ctx               725 libavdevice/android_camera.c         ctx->capture_session_output = NULL;
ctx               728 libavdevice/android_camera.c     if (ctx->image_reader_window) {
ctx               729 libavdevice/android_camera.c         ANativeWindow_release(ctx->image_reader_window);
ctx               730 libavdevice/android_camera.c         ctx->image_reader_window = NULL;
ctx               733 libavdevice/android_camera.c     if (ctx->capture_session_output_container) {
ctx               734 libavdevice/android_camera.c         ACaptureSessionOutputContainer_free(ctx->capture_session_output_container);
ctx               735 libavdevice/android_camera.c         ctx->capture_session_output_container = NULL;
ctx               738 libavdevice/android_camera.c     if (ctx->camera_dev) {
ctx               739 libavdevice/android_camera.c         ACameraDevice_close(ctx->camera_dev);
ctx               740 libavdevice/android_camera.c         ctx->camera_dev = NULL;
ctx               743 libavdevice/android_camera.c     if (ctx->image_reader) {
ctx               744 libavdevice/android_camera.c         AImageReader_delete(ctx->image_reader);
ctx               745 libavdevice/android_camera.c         ctx->image_reader = NULL;
ctx               748 libavdevice/android_camera.c     if (ctx->camera_metadata) {
ctx               749 libavdevice/android_camera.c         ACameraMetadata_free(ctx->camera_metadata);
ctx               750 libavdevice/android_camera.c         ctx->camera_metadata = NULL;
ctx               753 libavdevice/android_camera.c     av_freep(&ctx->camera_id);
ctx               755 libavdevice/android_camera.c     if (ctx->camera_mgr) {
ctx               756 libavdevice/android_camera.c         ACameraManager_delete(ctx->camera_mgr);
ctx               757 libavdevice/android_camera.c         ctx->camera_mgr = NULL;
ctx               760 libavdevice/android_camera.c     if (ctx->input_queue) {
ctx               762 libavdevice/android_camera.c         av_thread_message_queue_set_err_send(ctx->input_queue, AVERROR_EOF);
ctx               763 libavdevice/android_camera.c         while (av_thread_message_queue_recv(ctx->input_queue, &pkt, AV_THREAD_MESSAGE_NONBLOCK) >= 0) {
ctx               766 libavdevice/android_camera.c         av_thread_message_queue_free(&ctx->input_queue);
ctx               774 libavdevice/android_camera.c     AndroidCameraCtx *ctx = avctx->priv_data;
ctx               777 libavdevice/android_camera.c     atomic_init(&ctx->got_image_format, 0);
ctx               778 libavdevice/android_camera.c     atomic_init(&ctx->exit, 0);
ctx               780 libavdevice/android_camera.c     ret = av_thread_message_queue_alloc(&ctx->input_queue, ctx->input_queue_size, sizeof(AVPacket));
ctx               787 libavdevice/android_camera.c     ctx->camera_mgr = ACameraManager_create();
ctx               788 libavdevice/android_camera.c     if (!ctx->camera_mgr) {
ctx               827 libavdevice/android_camera.c     AndroidCameraCtx *ctx = avctx->priv_data;
ctx               830 libavdevice/android_camera.c     if (!atomic_load(&ctx->exit)) {
ctx               831 libavdevice/android_camera.c         ret = av_thread_message_queue_recv(ctx->input_queue, pkt,
ctx                28 libavdevice/caca.c     AVFormatContext *ctx;
ctx                70 libavdevice/caca.c     av_log(c->ctx, AV_LOG_INFO, "Available drivers:\n");
ctx                72 libavdevice/caca.c         av_log(c->ctx, AV_LOG_INFO, "%s: %s\n", drivers[i], drivers[i + 1]);
ctx                81 libavdevice/caca.c     av_log(c->ctx, AV_LOG_INFO, "Available %s:\n", thing_str);               \
ctx                83 libavdevice/caca.c         av_log(c->ctx, AV_LOG_INFO, "%s: %s\n", thing[i], thing[i + 1]);     \
ctx                98 libavdevice/caca.c     c->ctx = s;
ctx               104 libavdevice/decklink_common.cpp     struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx;
ctx               106 libavdevice/decklink_common.cpp     int64_t bmd_input              = (cfg_id == bmdDeckLinkConfigAudioInputConnection) ? (int64_t)ctx->audio_input : (int64_t)ctx->video_input;
ctx               112 libavdevice/decklink_common.cpp         res = ctx->attr->GetInt(attr_id, &supported_connections);
ctx               121 libavdevice/decklink_common.cpp         res = ctx->cfg->SetInt(cfg_id, bmd_input);
ctx               146 libavdevice/decklink_common.cpp     struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx;
ctx               149 libavdevice/decklink_common.cpp     if (ctx->duplex_mode) {
ctx               154 libavdevice/decklink_common.cpp         if (ctx->dl->QueryInterface(IID_IDeckLinkProfileManager, (void **)&manager) == S_OK)
ctx               157 libavdevice/decklink_common.cpp         if (ctx->attr->GetFlag(BMDDeckLinkSupportsDuplexModeConfiguration, &duplex_supported) != S_OK)
ctx               164 libavdevice/decklink_common.cpp             BMDProfileID bmd_profile_id = ctx->duplex_mode == 2 ? bmdProfileOneSubDeviceFullDuplex : bmdProfileTwoSubDevicesHalfDuplex;
ctx               172 libavdevice/decklink_common.cpp             res = ctx->cfg->SetInt(bmdDeckLinkConfigDuplexMode, ctx->duplex_mode == 2 ? bmdDuplexModeFull : bmdDuplexModeHalf);
ctx               177 libavdevice/decklink_common.cpp                 av_log(avctx, AV_LOG_VERBOSE, "Successfully set duplex mode to %s duplex.\n", ctx->duplex_mode == 2 ? "full" : "half");
ctx               192 libavdevice/decklink_common.cpp         res = ctx->cfg->SetInt(bmdDeckLinkConfigReferenceInputTimingOffset, cctx->timing_offset);
ctx               206 libavdevice/decklink_common.cpp     struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx;
ctx               221 libavdevice/decklink_common.cpp         res = ctx->dli->GetDisplayModeIterator (&itermode);
ctx               223 libavdevice/decklink_common.cpp         res = ctx->dlo->GetDisplayModeIterator (&itermode);
ctx               236 libavdevice/decklink_common.cpp     ctx->bmd_mode = bmdModeUnknown;
ctx               237 libavdevice/decklink_common.cpp     while ((ctx->bmd_mode == bmdModeUnknown) && itermode->Next(&mode) == S_OK) {
ctx               252 libavdevice/decklink_common.cpp             ctx->bmd_mode   = bmd_mode;
ctx               253 libavdevice/decklink_common.cpp             ctx->bmd_width  = bmd_width;
ctx               254 libavdevice/decklink_common.cpp             ctx->bmd_height = bmd_height;
ctx               255 libavdevice/decklink_common.cpp             ctx->bmd_tb_den = bmd_tb_den;
ctx               256 libavdevice/decklink_common.cpp             ctx->bmd_tb_num = bmd_tb_num;
ctx               257 libavdevice/decklink_common.cpp             ctx->bmd_field_dominance = bmd_field_dominance;
ctx               260 libavdevice/decklink_common.cpp                 (ctx->bmd_field_dominance==bmdLowerFieldFirst || ctx->bmd_field_dominance==bmdUpperFieldFirst)?"(i)":"");
ctx               269 libavdevice/decklink_common.cpp     if (ctx->bmd_mode == bmdModeUnknown)
ctx               274 libavdevice/decklink_common.cpp         BMDDisplayMode actualMode = ctx->bmd_mode;
ctx               275 libavdevice/decklink_common.cpp         if (ctx->dli->DoesSupportVideoMode(ctx->video_input, ctx->bmd_mode, (BMDPixelFormat) cctx->raw_format,
ctx               277 libavdevice/decklink_common.cpp                                            &actualMode, &support) != S_OK || !support || ctx->bmd_mode != actualMode)
ctx               280 libavdevice/decklink_common.cpp         BMDDisplayMode actualMode = ctx->bmd_mode;
ctx               281 libavdevice/decklink_common.cpp         if (ctx->dlo->DoesSupportVideoMode(bmdVideoConnectionUnspecified, ctx->bmd_mode, ctx->raw_format,
ctx               283 libavdevice/decklink_common.cpp                                            &actualMode, &support) != S_OK || !support || ctx->bmd_mode != actualMode)
ctx               289 libavdevice/decklink_common.cpp         if (ctx->dli->DoesSupportVideoMode(ctx->video_input, ctx->bmd_mode, (BMDPixelFormat) cctx->raw_format,
ctx               294 libavdevice/decklink_common.cpp         BMDDisplayMode actualMode = ctx->bmd_mode;
ctx               295 libavdevice/decklink_common.cpp         if (ctx->dlo->DoesSupportVideoMode(bmdVideoConnectionUnspecified, ctx->bmd_mode, ctx->raw_format,
ctx               297 libavdevice/decklink_common.cpp                                            &actualMode, &support) != S_OK || !support || ctx->bmd_mode != actualMode) {
ctx               306 libavdevice/decklink_common.cpp         if (ctx->dli->DoesSupportVideoMode(ctx->bmd_mode, (BMDPixelFormat) cctx->raw_format,
ctx               311 libavdevice/decklink_common.cpp         if (!ctx->supports_vanc || ctx->dlo->DoesSupportVideoMode(ctx->bmd_mode, ctx->raw_format,
ctx               315 libavdevice/decklink_common.cpp             if (ctx->dlo->DoesSupportVideoMode(ctx->bmd_mode, ctx->raw_format,
ctx               320 libavdevice/decklink_common.cpp             ctx->supports_vanc = 0;
ctx               432 libavdevice/decklink_common.cpp     struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx;
ctx               446 libavdevice/decklink_common.cpp         res = ctx->dli->GetDisplayModeIterator (&itermode);
ctx               448 libavdevice/decklink_common.cpp         res = ctx->dlo->GetDisplayModeIterator (&itermode);
ctx               483 libavdevice/decklink_common.cpp     struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx;
ctx               485 libavdevice/decklink_common.cpp     if (ctx->dli)
ctx               486 libavdevice/decklink_common.cpp         ctx->dli->Release();
ctx               487 libavdevice/decklink_common.cpp     if (ctx->dlo)
ctx               488 libavdevice/decklink_common.cpp         ctx->dlo->Release();
ctx               489 libavdevice/decklink_common.cpp     if (ctx->attr)
ctx               490 libavdevice/decklink_common.cpp         ctx->attr->Release();
ctx               491 libavdevice/decklink_common.cpp     if (ctx->cfg)
ctx               492 libavdevice/decklink_common.cpp         ctx->cfg->Release();
ctx               493 libavdevice/decklink_common.cpp     if (ctx->dl)
ctx               494 libavdevice/decklink_common.cpp         ctx->dl->Release();
ctx               500 libavdevice/decklink_common.cpp     struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx;
ctx               514 libavdevice/decklink_common.cpp             ctx->dl = dl;
ctx               522 libavdevice/decklink_common.cpp     if (!ctx->dl)
ctx               525 libavdevice/decklink_common.cpp     if (ctx->dl->QueryInterface(IID_IDeckLinkConfiguration, (void **)&ctx->cfg) != S_OK) {
ctx               531 libavdevice/decklink_common.cpp     if (ctx->dl->QueryInterface(IID_IDeckLinkProfileAttributes, (void **)&ctx->attr) != S_OK) {
ctx                38 libavdevice/decklink_common_c.h     void *ctx;
ctx               472 libavdevice/decklink_dec.cpp     struct decklink_cctx *ctx = (struct decklink_cctx *)avctx->priv_data;
ctx               477 libavdevice/decklink_dec.cpp     q->max_q_size = ctx->queue_size;
ctx               601 libavdevice/decklink_dec.cpp         decklink_ctx    *ctx;
ctx               611 libavdevice/decklink_dec.cpp     ctx = (struct decklink_ctx *)cctx->ctx;
ctx               697 libavdevice/decklink_dec.cpp     if (ctx->autodetect) {
ctx               699 libavdevice/decklink_dec.cpp             ctx->bmd_mode == bmdModeUnknown)
ctx               701 libavdevice/decklink_dec.cpp             ctx->bmd_mode = AUTODETECT_DEFAULT_MODE;
ctx               707 libavdevice/decklink_dec.cpp     if (0 == ctx->frameCount && cctx->timestamp_align) {
ctx               709 libavdevice/decklink_dec.cpp         AVRational frame_duration = av_inv_q(ctx->video_st->r_frame_rate);
ctx               711 libavdevice/decklink_dec.cpp             ++ctx->dropped;
ctx               716 libavdevice/decklink_dec.cpp     ctx->frameCount++;
ctx               717 libavdevice/decklink_dec.cpp     if (ctx->audio_pts_source == PTS_SRC_WALLCLOCK || ctx->video_pts_source == PTS_SRC_WALLCLOCK)
ctx               719 libavdevice/decklink_dec.cpp     if (ctx->audio_pts_source == PTS_SRC_ABS_WALLCLOCK || ctx->video_pts_source == PTS_SRC_ABS_WALLCLOCK)
ctx               726 libavdevice/decklink_dec.cpp         if (ctx->frameCount % 25 == 0) {
ctx               727 libavdevice/decklink_dec.cpp             unsigned long long qsize = avpacket_queue_size(&ctx->queue);
ctx               730 libavdevice/decklink_dec.cpp                     ctx->frameCount,
ctx               737 libavdevice/decklink_dec.cpp                                   ctx->video_st->time_base.den);
ctx               740 libavdevice/decklink_dec.cpp             if (ctx->draw_bars && videoFrame->GetPixelFormat() == bmdFormat8BitYUV) {
ctx               756 libavdevice/decklink_dec.cpp                         "- Frames dropped %u\n", ctx->frameCount, ++ctx->dropped);
ctx               762 libavdevice/decklink_dec.cpp                         "- Frames dropped %u\n", ctx->frameCount, ++ctx->dropped);
ctx               767 libavdevice/decklink_dec.cpp             if (ctx->tc_format) {
ctx               769 libavdevice/decklink_dec.cpp                 if (videoFrame->GetTimecode(ctx->tc_format, &timecode) == S_OK) {
ctx               787 libavdevice/decklink_dec.cpp                                 else if (!ctx->tc_seen)
ctx               788 libavdevice/decklink_dec.cpp                                     ctx->tc_seen = ctx->frameCount;
ctx               798 libavdevice/decklink_dec.cpp         if (ctx->tc_format && cctx->wait_for_tc && !ctx->tc_seen) {
ctx               802 libavdevice/decklink_dec.cpp                         "- Frames dropped %u\n", ctx->frameCount, ++ctx->dropped);
ctx               806 libavdevice/decklink_dec.cpp         pkt.pts = get_pkt_pts(videoFrame, audioFrame, wallclock, abs_wallclock, ctx->video_pts_source, ctx->video_st->time_base, &initial_video_pts, cctx->copyts);
ctx               812 libavdevice/decklink_dec.cpp         pkt.stream_index = ctx->video_st->index;
ctx               831 libavdevice/decklink_dec.cpp                 if (ctx->bmd_mode == bmdModePAL && ctx->teletext_lines &&
ctx               836 libavdevice/decklink_dec.cpp                         if ((ctx->teletext_lines & line_mask) && vanc->GetBufferForVerticalBlankingLine(i, (void**)&buf) == S_OK) {
ctx               848 libavdevice/decklink_dec.cpp                     int idx = get_vanc_line_idx(ctx->bmd_mode);
ctx               854 libavdevice/decklink_dec.cpp                             if (ctx->bmd_mode == bmdModeNTSC && videoFrame->GetWidth() * 2 <= MAX_WIDTH_VANC) {
ctx               878 libavdevice/decklink_dec.cpp                     txt_pkt.stream_index = ctx->teletext_st->index;
ctx               881 libavdevice/decklink_dec.cpp                     if (avpacket_queue_put(&ctx->queue, &txt_pkt) < 0) {
ctx               882 libavdevice/decklink_dec.cpp                         ++ctx->dropped;
ctx               892 libavdevice/decklink_dec.cpp         if (avpacket_queue_put(&ctx->queue, &pkt) < 0) {
ctx               893 libavdevice/decklink_dec.cpp             ++ctx->dropped;
ctx               904 libavdevice/decklink_dec.cpp         pkt.size = audioFrame->GetSampleFrameCount() * ctx->audio_st->codecpar->channels * (ctx->audio_depth / 8);
ctx               906 libavdevice/decklink_dec.cpp         audioFrame->GetPacketTime(&audio_pts, ctx->audio_st->time_base.den);
ctx               907 libavdevice/decklink_dec.cpp         pkt.pts = get_pkt_pts(videoFrame, audioFrame, wallclock, abs_wallclock, ctx->audio_pts_source, ctx->audio_st->time_base, &initial_audio_pts, cctx->copyts);
ctx               912 libavdevice/decklink_dec.cpp         pkt.stream_index = ctx->audio_st->index;
ctx               915 libavdevice/decklink_dec.cpp         if (avpacket_queue_put(&ctx->queue, &pkt) < 0) {
ctx               916 libavdevice/decklink_dec.cpp             ++ctx->dropped;
ctx               927 libavdevice/decklink_dec.cpp     ctx->bmd_mode = mode->GetDisplayMode();
ctx               932 libavdevice/decklink_dec.cpp     struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx;
ctx               936 libavdevice/decklink_dec.cpp     if (ctx->attr->GetFlag(BMDDeckLinkSupportsInputFormatDetection, &autodetect_supported) != S_OK)
ctx               941 libavdevice/decklink_dec.cpp     ctx->autodetect = 1;
ctx               942 libavdevice/decklink_dec.cpp     ctx->bmd_mode  = bmdModeUnknown;
ctx               943 libavdevice/decklink_dec.cpp     if (ctx->dli->EnableVideoInput(AUTODETECT_DEFAULT_MODE,
ctx               949 libavdevice/decklink_dec.cpp     if (ctx->dli->StartStreams() != S_OK) {
ctx               959 libavdevice/decklink_dec.cpp         if (ctx->bmd_mode != bmdModeUnknown &&
ctx               960 libavdevice/decklink_dec.cpp             ctx->bmd_mode != AUTODETECT_DEFAULT_MODE)
ctx               964 libavdevice/decklink_dec.cpp     ctx->dli->PauseStreams();
ctx               965 libavdevice/decklink_dec.cpp     ctx->dli->FlushStreams();
ctx               966 libavdevice/decklink_dec.cpp     ctx->autodetect = 0;
ctx               967 libavdevice/decklink_dec.cpp     if (ctx->bmd_mode != bmdModeUnknown) {
ctx               971 libavdevice/decklink_dec.cpp         AV_WB32(cctx->format_code, ctx->bmd_mode);
ctx               984 libavdevice/decklink_dec.cpp     struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx;
ctx               986 libavdevice/decklink_dec.cpp     if (ctx->dli) {
ctx               987 libavdevice/decklink_dec.cpp         ctx->dli->StopStreams();
ctx               988 libavdevice/decklink_dec.cpp         ctx->dli->DisableVideoInput();
ctx               989 libavdevice/decklink_dec.cpp         ctx->dli->DisableAudioInput();
ctx               993 libavdevice/decklink_dec.cpp     avpacket_queue_end(&ctx->queue);
ctx               995 libavdevice/decklink_dec.cpp     av_freep(&cctx->ctx);
ctx              1003 libavdevice/decklink_dec.cpp     struct decklink_ctx *ctx;
ctx              1010 libavdevice/decklink_dec.cpp     ctx = (struct decklink_ctx *) av_mallocz(sizeof(struct decklink_ctx));
ctx              1011 libavdevice/decklink_dec.cpp     if (!ctx)
ctx              1013 libavdevice/decklink_dec.cpp     ctx->list_devices = cctx->list_devices;
ctx              1014 libavdevice/decklink_dec.cpp     ctx->list_formats = cctx->list_formats;
ctx              1015 libavdevice/decklink_dec.cpp     ctx->teletext_lines = cctx->teletext_lines;
ctx              1016 libavdevice/decklink_dec.cpp     ctx->preroll      = cctx->preroll;
ctx              1017 libavdevice/decklink_dec.cpp     ctx->duplex_mode  = cctx->duplex_mode;
ctx              1019 libavdevice/decklink_dec.cpp         ctx->tc_format = decklink_timecode_format_map[cctx->tc_format];
ctx              1021 libavdevice/decklink_dec.cpp         ctx->video_input = decklink_video_connection_map[cctx->video_input];
ctx              1023 libavdevice/decklink_dec.cpp         ctx->audio_input = decklink_audio_connection_map[cctx->audio_input];
ctx              1024 libavdevice/decklink_dec.cpp     ctx->audio_pts_source = cctx->audio_pts_source;
ctx              1025 libavdevice/decklink_dec.cpp     ctx->video_pts_source = cctx->video_pts_source;
ctx              1026 libavdevice/decklink_dec.cpp     ctx->draw_bars = cctx->draw_bars;
ctx              1027 libavdevice/decklink_dec.cpp     ctx->audio_depth = cctx->audio_depth;
ctx              1028 libavdevice/decklink_dec.cpp     cctx->ctx = ctx;
ctx              1052 libavdevice/decklink_dec.cpp     if (ctx->list_devices) {
ctx              1063 libavdevice/decklink_dec.cpp     if (ctx->dl->QueryInterface(IID_IDeckLinkInput, (void **) &ctx->dli) != S_OK) {
ctx              1077 libavdevice/decklink_dec.cpp     if (ctx->list_formats) {
ctx              1084 libavdevice/decklink_dec.cpp     ret = (ctx->dli->SetCallback(input_callback) == S_OK ? 0 : AVERROR_EXTERNAL);
ctx              1092 libavdevice/decklink_dec.cpp     ret = (ctx->dli->SetVideoInputFrameMemoryAllocator(allocator) == S_OK ? 0 : AVERROR_EXTERNAL);
ctx              1115 libavdevice/decklink_dec.cpp     if (ctx->teletext_lines && ctx->bmd_mode == bmdModePAL) {
ctx              1134 libavdevice/decklink_dec.cpp     ctx->audio_st=st;
ctx              1143 libavdevice/decklink_dec.cpp     st->codecpar->width       = ctx->bmd_width;
ctx              1144 libavdevice/decklink_dec.cpp     st->codecpar->height      = ctx->bmd_height;
ctx              1146 libavdevice/decklink_dec.cpp     st->time_base.den      = ctx->bmd_tb_den;
ctx              1147 libavdevice/decklink_dec.cpp     st->time_base.num      = ctx->bmd_tb_num;
ctx              1155 libavdevice/decklink_dec.cpp         st->codecpar->bit_rate    = av_rescale(ctx->bmd_width * ctx->bmd_height * 16, st->time_base.den, st->time_base.num);
ctx              1160 libavdevice/decklink_dec.cpp         st->codecpar->bit_rate    = av_rescale(ctx->bmd_width * ctx->bmd_height * 64, st->time_base.den, st->time_base.num * 3);
ctx              1167 libavdevice/decklink_dec.cpp         st->codecpar->bit_rate    = av_rescale(ctx->bmd_width * ctx->bmd_height * 32, st->time_base.den, st->time_base.num);
ctx              1173 libavdevice/decklink_dec.cpp         st->codecpar->bit_rate    = av_rescale(ctx->bmd_width * ctx->bmd_height * 32, st->time_base.den, st->time_base.num);
ctx              1179 libavdevice/decklink_dec.cpp         st->codecpar->bit_rate    = av_rescale(ctx->bmd_width * ctx->bmd_height * 30, st->time_base.den, st->time_base.num);
ctx              1188 libavdevice/decklink_dec.cpp     switch (ctx->bmd_field_dominance) {
ctx              1203 libavdevice/decklink_dec.cpp     ctx->video_st=st;
ctx              1205 libavdevice/decklink_dec.cpp     if (ctx->teletext_lines) {
ctx              1213 libavdevice/decklink_dec.cpp         st->time_base.den         = ctx->bmd_tb_den;
ctx              1214 libavdevice/decklink_dec.cpp         st->time_base.num         = ctx->bmd_tb_num;
ctx              1217 libavdevice/decklink_dec.cpp         ctx->teletext_st = st;
ctx              1220 libavdevice/decklink_dec.cpp     av_log(avctx, AV_LOG_VERBOSE, "Using %d input audio channels\n", ctx->audio_st->codecpar->channels);
ctx              1221 libavdevice/decklink_dec.cpp     result = ctx->dli->EnableAudioInput(bmdAudioSampleRate48kHz, cctx->audio_depth == 32 ? bmdAudioSampleType32bitInteger : bmdAudioSampleType16bitInteger, ctx->audio_st->codecpar->channels);
ctx              1229 libavdevice/decklink_dec.cpp     result = ctx->dli->EnableVideoInput(ctx->bmd_mode,
ctx              1239 libavdevice/decklink_dec.cpp     avpacket_queue_init (avctx, &ctx->queue);
ctx              1241 libavdevice/decklink_dec.cpp     if (ctx->dli->StartStreams() != S_OK) {
ctx              1257 libavdevice/decklink_dec.cpp     struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx;
ctx              1259 libavdevice/decklink_dec.cpp     avpacket_queue_get(&ctx->queue, pkt, 1);
ctx              1261 libavdevice/decklink_dec.cpp     if (ctx->tc_format && !(av_dict_get(ctx->video_st->metadata, "timecode", NULL, 0))) {
ctx              1265 libavdevice/decklink_dec.cpp            if (av_packet_unpack_dictionary(side_metadata, size, &ctx->video_st->metadata) < 0)
ctx                51 libavdevice/decklink_enc.cpp     decklink_frame(struct decklink_ctx *ctx, AVFrame *avframe, AVCodecID codec_id, int height, int width) :
ctx                52 libavdevice/decklink_enc.cpp         _ctx(ctx), _avframe(avframe), _avpacket(NULL), _codec_id(codec_id), _ancillary(NULL), _height(height), _width(width),  _refs(1) { }
ctx                53 libavdevice/decklink_enc.cpp     decklink_frame(struct decklink_ctx *ctx, AVPacket *avpacket, AVCodecID codec_id, int height, int width) :
ctx                54 libavdevice/decklink_enc.cpp         _ctx(ctx), _avframe(NULL), _avpacket(avpacket), _codec_id(codec_id), _ancillary(NULL), _height(height), _width(width), _refs(1) { }
ctx               144 libavdevice/decklink_enc.cpp         struct decklink_ctx *ctx = frame->_ctx;
ctx               151 libavdevice/decklink_enc.cpp         pthread_mutex_lock(&ctx->mutex);
ctx               152 libavdevice/decklink_enc.cpp         ctx->frames_buffer_available_spots++;
ctx               153 libavdevice/decklink_enc.cpp         pthread_cond_broadcast(&ctx->cond);
ctx               154 libavdevice/decklink_enc.cpp         pthread_mutex_unlock(&ctx->mutex);
ctx               167 libavdevice/decklink_enc.cpp     struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx;
ctx               170 libavdevice/decklink_enc.cpp     if (ctx->video) {
ctx               181 libavdevice/decklink_enc.cpp         ctx->raw_format = bmdFormat8BitYUV;
ctx               187 libavdevice/decklink_enc.cpp         ctx->raw_format = bmdFormat10BitYUV;
ctx               200 libavdevice/decklink_enc.cpp     if (ctx->supports_vanc && ctx->dlo->EnableVideoOutput(ctx->bmd_mode, bmdVideoOutputVANC) != S_OK) {
ctx               202 libavdevice/decklink_enc.cpp         ctx->supports_vanc = 0;
ctx               204 libavdevice/decklink_enc.cpp     if (!ctx->supports_vanc && ctx->dlo->EnableVideoOutput(ctx->bmd_mode, bmdVideoOutputFlagDefault) != S_OK) {
ctx               210 libavdevice/decklink_enc.cpp     ctx->output_callback = new decklink_output_callback();
ctx               211 libavdevice/decklink_enc.cpp     ctx->dlo->SetScheduledFrameCompletionCallback(ctx->output_callback);
ctx               213 libavdevice/decklink_enc.cpp     ctx->frames_preroll = st->time_base.den * ctx->preroll;
ctx               215 libavdevice/decklink_enc.cpp         ctx->frames_preroll /= 1000;
ctx               218 libavdevice/decklink_enc.cpp     ctx->frames_buffer = ctx->frames_preroll * 2;
ctx               219 libavdevice/decklink_enc.cpp     ctx->frames_buffer = FFMIN(ctx->frames_buffer, 60);
ctx               220 libavdevice/decklink_enc.cpp     pthread_mutex_init(&ctx->mutex, NULL);
ctx               221 libavdevice/decklink_enc.cpp     pthread_cond_init(&ctx->cond, NULL);
ctx               222 libavdevice/decklink_enc.cpp     ctx->frames_buffer_available_spots = ctx->frames_buffer;
ctx               225 libavdevice/decklink_enc.cpp            avctx->url, ctx->frames_preroll, ctx->frames_buffer);
ctx               230 libavdevice/decklink_enc.cpp     ctx->video = 1;
ctx               238 libavdevice/decklink_enc.cpp     struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx;
ctx               241 libavdevice/decklink_enc.cpp     if (ctx->audio) {
ctx               255 libavdevice/decklink_enc.cpp     if (ctx->dlo->EnableAudioOutput(bmdAudioSampleRate48kHz,
ctx               262 libavdevice/decklink_enc.cpp     if (ctx->dlo->BeginAudioPreroll() != S_OK) {
ctx               269 libavdevice/decklink_enc.cpp     ctx->channels = c->channels;
ctx               271 libavdevice/decklink_enc.cpp     ctx->audio = 1;
ctx               279 libavdevice/decklink_enc.cpp     struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx;
ctx               281 libavdevice/decklink_enc.cpp     if (ctx->playback_started) {
ctx               283 libavdevice/decklink_enc.cpp         ctx->dlo->StopScheduledPlayback(ctx->last_pts * ctx->bmd_tb_num,
ctx               284 libavdevice/decklink_enc.cpp                                         &actual, ctx->bmd_tb_den);
ctx               285 libavdevice/decklink_enc.cpp         ctx->dlo->DisableVideoOutput();
ctx               286 libavdevice/decklink_enc.cpp         if (ctx->audio)
ctx               287 libavdevice/decklink_enc.cpp             ctx->dlo->DisableAudioOutput();
ctx               292 libavdevice/decklink_enc.cpp     if (ctx->output_callback)
ctx               293 libavdevice/decklink_enc.cpp         delete ctx->output_callback;
ctx               295 libavdevice/decklink_enc.cpp     pthread_mutex_destroy(&ctx->mutex);
ctx               296 libavdevice/decklink_enc.cpp     pthread_cond_destroy(&ctx->cond);
ctx               299 libavdevice/decklink_enc.cpp     klvanc_context_destroy(ctx->vanc_ctx);
ctx               302 libavdevice/decklink_enc.cpp     av_freep(&cctx->ctx);
ctx               308 libavdevice/decklink_enc.cpp static void construct_cc(AVFormatContext *avctx, struct decklink_ctx *ctx,
ctx               327 libavdevice/decklink_enc.cpp     ret = klvanc_set_framerate_EIA_708B(cdp, ctx->bmd_tb_num, ctx->bmd_tb_den);
ctx               330 libavdevice/decklink_enc.cpp                ctx->bmd_tb_num, ctx->bmd_tb_den);
ctx               352 libavdevice/decklink_enc.cpp     klvanc_finalize_EIA_708B(cdp, ctx->cdp_sequence_num++);
ctx               360 libavdevice/decklink_enc.cpp     ret = klvanc_line_insert(ctx->vanc_ctx, vanc_lines, cdp_words, len, 11, 0);
ctx               368 libavdevice/decklink_enc.cpp static int decklink_construct_vanc(AVFormatContext *avctx, struct decklink_ctx *ctx,
ctx               374 libavdevice/decklink_enc.cpp     if (!ctx->supports_vanc)
ctx               377 libavdevice/decklink_enc.cpp     construct_cc(avctx, ctx, pkt, &vanc_lines);
ctx               380 libavdevice/decklink_enc.cpp     int result = ctx->dlo->CreateAncillaryData(bmdFormat10BitYUV, &vanc);
ctx               408 libavdevice/decklink_enc.cpp         result = klvanc_generate_vanc_line_v210(ctx->vanc_ctx, line, (uint8_t *) buf,
ctx               409 libavdevice/decklink_enc.cpp                                                 ctx->bmd_width);
ctx               434 libavdevice/decklink_enc.cpp     struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx;
ctx               444 libavdevice/decklink_enc.cpp             tmp->width  != ctx->bmd_width ||
ctx               445 libavdevice/decklink_enc.cpp             tmp->height != ctx->bmd_height) {
ctx               456 libavdevice/decklink_enc.cpp         frame = new decklink_frame(ctx, avframe, st->codecpar->codec_id, avframe->height, avframe->width);
ctx               464 libavdevice/decklink_enc.cpp         frame = new decklink_frame(ctx, avpacket, st->codecpar->codec_id, ctx->bmd_height, ctx->bmd_width);
ctx               467 libavdevice/decklink_enc.cpp         if (decklink_construct_vanc(avctx, ctx, pkt, frame))
ctx               480 libavdevice/decklink_enc.cpp     pthread_mutex_lock(&ctx->mutex);
ctx               481 libavdevice/decklink_enc.cpp     while (ctx->frames_buffer_available_spots == 0) {
ctx               482 libavdevice/decklink_enc.cpp         pthread_cond_wait(&ctx->cond, &ctx->mutex);
ctx               484 libavdevice/decklink_enc.cpp     ctx->frames_buffer_available_spots--;
ctx               485 libavdevice/decklink_enc.cpp     pthread_mutex_unlock(&ctx->mutex);
ctx               488 libavdevice/decklink_enc.cpp     hr = ctx->dlo->ScheduleVideoFrame((class IDeckLinkVideoFrame *) frame,
ctx               489 libavdevice/decklink_enc.cpp                                       pkt->pts * ctx->bmd_tb_num,
ctx               490 libavdevice/decklink_enc.cpp                                       ctx->bmd_tb_num, ctx->bmd_tb_den);
ctx               499 libavdevice/decklink_enc.cpp     ctx->dlo->GetBufferedVideoFrameCount(&buffered);
ctx               506 libavdevice/decklink_enc.cpp     if (!ctx->playback_started && pkt->pts > ctx->frames_preroll) {
ctx               508 libavdevice/decklink_enc.cpp         if (ctx->audio && ctx->dlo->EndAudioPreroll() != S_OK) {
ctx               513 libavdevice/decklink_enc.cpp         if (ctx->dlo->StartScheduledPlayback(0, ctx->bmd_tb_den, 1.0) != S_OK) {
ctx               517 libavdevice/decklink_enc.cpp         ctx->playback_started = 1;
ctx               526 libavdevice/decklink_enc.cpp     struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx;
ctx               527 libavdevice/decklink_enc.cpp     int sample_count = pkt->size / (ctx->channels << 1);
ctx               530 libavdevice/decklink_enc.cpp     ctx->dlo->GetBufferedAudioSampleFrameCount(&buffered);
ctx               535 libavdevice/decklink_enc.cpp     if (ctx->dlo->ScheduleAudioSamples(pkt->data, sample_count, pkt->pts,
ctx               549 libavdevice/decklink_enc.cpp     struct decklink_ctx *ctx;
ctx               553 libavdevice/decklink_enc.cpp     ctx = (struct decklink_ctx *) av_mallocz(sizeof(struct decklink_ctx));
ctx               554 libavdevice/decklink_enc.cpp     if (!ctx)
ctx               556 libavdevice/decklink_enc.cpp     ctx->list_devices = cctx->list_devices;
ctx               557 libavdevice/decklink_enc.cpp     ctx->list_formats = cctx->list_formats;
ctx               558 libavdevice/decklink_enc.cpp     ctx->preroll      = cctx->preroll;
ctx               559 libavdevice/decklink_enc.cpp     ctx->duplex_mode  = cctx->duplex_mode;
ctx               560 libavdevice/decklink_enc.cpp     cctx->ctx = ctx;
ctx               562 libavdevice/decklink_enc.cpp     if (klvanc_context_create(&ctx->vanc_ctx) < 0) {
ctx               566 libavdevice/decklink_enc.cpp     ctx->supports_vanc = 1;
ctx               570 libavdevice/decklink_enc.cpp     if (ctx->list_devices) {
ctx               581 libavdevice/decklink_enc.cpp     if (ctx->dl->QueryInterface(IID_IDeckLinkOutput, (void **) &ctx->dlo) != S_OK) {
ctx               589 libavdevice/decklink_enc.cpp     if (ctx->list_formats) {
ctx               622 libavdevice/decklink_enc.cpp     struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx;
ctx               625 libavdevice/decklink_enc.cpp     ctx->last_pts = FFMAX(ctx->last_pts, pkt->pts);
ctx                60 libavdevice/dshow.c     struct dshow_ctx *ctx = s->priv_data;
ctx                63 libavdevice/dshow.c     if (ctx->control) {
ctx                64 libavdevice/dshow.c         IMediaControl_Stop(ctx->control);
ctx                65 libavdevice/dshow.c         IMediaControl_Release(ctx->control);
ctx                68 libavdevice/dshow.c     if (ctx->media_event)
ctx                69 libavdevice/dshow.c         IMediaEvent_Release(ctx->media_event);
ctx                71 libavdevice/dshow.c     if (ctx->graph) {
ctx                74 libavdevice/dshow.c         r = IGraphBuilder_EnumFilters(ctx->graph, &fenum);
ctx                79 libavdevice/dshow.c                 if (IGraphBuilder_RemoveFilter(ctx->graph, f) == S_OK)
ctx                86 libavdevice/dshow.c         IGraphBuilder_Release(ctx->graph);
ctx                89 libavdevice/dshow.c     if (ctx->capture_pin[VideoDevice])
ctx                90 libavdevice/dshow.c         libAVPin_Release(ctx->capture_pin[VideoDevice]);
ctx                91 libavdevice/dshow.c     if (ctx->capture_pin[AudioDevice])
ctx                92 libavdevice/dshow.c         libAVPin_Release(ctx->capture_pin[AudioDevice]);
ctx                93 libavdevice/dshow.c     if (ctx->capture_filter[VideoDevice])
ctx                94 libavdevice/dshow.c         libAVFilter_Release(ctx->capture_filter[VideoDevice]);
ctx                95 libavdevice/dshow.c     if (ctx->capture_filter[AudioDevice])
ctx                96 libavdevice/dshow.c         libAVFilter_Release(ctx->capture_filter[AudioDevice]);
ctx                98 libavdevice/dshow.c     if (ctx->device_pin[VideoDevice])
ctx                99 libavdevice/dshow.c         IPin_Release(ctx->device_pin[VideoDevice]);
ctx               100 libavdevice/dshow.c     if (ctx->device_pin[AudioDevice])
ctx               101 libavdevice/dshow.c         IPin_Release(ctx->device_pin[AudioDevice]);
ctx               102 libavdevice/dshow.c     if (ctx->device_filter[VideoDevice])
ctx               103 libavdevice/dshow.c         IBaseFilter_Release(ctx->device_filter[VideoDevice]);
ctx               104 libavdevice/dshow.c     if (ctx->device_filter[AudioDevice])
ctx               105 libavdevice/dshow.c         IBaseFilter_Release(ctx->device_filter[AudioDevice]);
ctx               107 libavdevice/dshow.c     av_freep(&ctx->device_name[0]);
ctx               108 libavdevice/dshow.c     av_freep(&ctx->device_name[1]);
ctx               109 libavdevice/dshow.c     av_freep(&ctx->device_unique_name[0]);
ctx               110 libavdevice/dshow.c     av_freep(&ctx->device_unique_name[1]);
ctx               112 libavdevice/dshow.c     if(ctx->mutex)
ctx               113 libavdevice/dshow.c         CloseHandle(ctx->mutex);
ctx               114 libavdevice/dshow.c     if(ctx->event[0])
ctx               115 libavdevice/dshow.c         CloseHandle(ctx->event[0]);
ctx               116 libavdevice/dshow.c     if(ctx->event[1])
ctx               117 libavdevice/dshow.c         CloseHandle(ctx->event[1]);
ctx               119 libavdevice/dshow.c     pktl = ctx->pktl;
ctx               144 libavdevice/dshow.c     struct dshow_ctx *ctx = s->priv_data;
ctx               147 libavdevice/dshow.c     unsigned int buffer_fullness = (ctx->curbufsize[index]*100)/s->max_picture_buffer;
ctx               150 libavdevice/dshow.c     if(dropscore[++ctx->video_frame_num%ndropscores] <= buffer_fullness) {
ctx               153 libavdevice/dshow.c               ctx->device_name[devtype], devtypename, buffer_fullness, s->max_picture_buffer);
ctx               164 libavdevice/dshow.c     struct dshow_ctx *ctx = s->priv_data;
ctx               169 libavdevice/dshow.c     WaitForSingleObject(ctx->mutex, INFINITE);
ctx               187 libavdevice/dshow.c     for(ppktl = &ctx->pktl ; *ppktl ; ppktl = &(*ppktl)->next);
ctx               189 libavdevice/dshow.c     ctx->curbufsize[index] += buf_size;
ctx               191 libavdevice/dshow.c     SetEvent(ctx->event[1]);
ctx               192 libavdevice/dshow.c     ReleaseMutex(ctx->mutex);
ctx               196 libavdevice/dshow.c     ReleaseMutex(ctx->mutex);
ctx               211 libavdevice/dshow.c     struct dshow_ctx *ctx = avctx->priv_data;
ctx               215 libavdevice/dshow.c     const char *device_name = ctx->device_name[devtype];
ctx               216 libavdevice/dshow.c     int skip = (devtype == VideoDevice) ? ctx->video_device_number
ctx               217 libavdevice/dshow.c                                         : ctx->audio_device_number;
ctx               325 libavdevice/dshow.c     struct dshow_ctx *ctx = avctx->priv_data;
ctx               388 libavdevice/dshow.c             if (ctx->video_codec_id != AV_CODEC_ID_RAWVIDEO) {
ctx               389 libavdevice/dshow.c                 if (ctx->video_codec_id != av_codec_get_id(tags, bih->biCompression))
ctx               392 libavdevice/dshow.c             if (ctx->pixel_format != AV_PIX_FMT_NONE &&
ctx               393 libavdevice/dshow.c                 ctx->pixel_format != dshow_pixfmt(bih->biCompression, bih->biBitCount)) {
ctx               396 libavdevice/dshow.c             if (ctx->framerate) {
ctx               397 libavdevice/dshow.c                 int64_t framerate = ((int64_t) ctx->requested_framerate.den*10000000)
ctx               398 libavdevice/dshow.c                                             /  ctx->requested_framerate.num;
ctx               404 libavdevice/dshow.c             if (ctx->requested_width && ctx->requested_height) {
ctx               405 libavdevice/dshow.c                 if (ctx->requested_width  > vcaps->MaxOutputSize.cx ||
ctx               406 libavdevice/dshow.c                     ctx->requested_width  < vcaps->MinOutputSize.cx ||
ctx               407 libavdevice/dshow.c                     ctx->requested_height > vcaps->MaxOutputSize.cy ||
ctx               408 libavdevice/dshow.c                     ctx->requested_height < vcaps->MinOutputSize.cy)
ctx               410 libavdevice/dshow.c                 bih->biWidth  = ctx->requested_width;
ctx               411 libavdevice/dshow.c                 bih->biHeight = ctx->requested_height;
ctx               430 libavdevice/dshow.c             if (ctx->sample_rate) {
ctx               431 libavdevice/dshow.c                 if (ctx->sample_rate > acaps->MaximumSampleFrequency ||
ctx               432 libavdevice/dshow.c                     ctx->sample_rate < acaps->MinimumSampleFrequency)
ctx               434 libavdevice/dshow.c                 fx->nSamplesPerSec = ctx->sample_rate;
ctx               436 libavdevice/dshow.c             if (ctx->sample_size) {
ctx               437 libavdevice/dshow.c                 if (ctx->sample_size > acaps->MaximumBitsPerSample ||
ctx               438 libavdevice/dshow.c                     ctx->sample_size < acaps->MinimumBitsPerSample)
ctx               440 libavdevice/dshow.c                 fx->wBitsPerSample = ctx->sample_size;
ctx               442 libavdevice/dshow.c             if (ctx->channels) {
ctx               443 libavdevice/dshow.c                 if (ctx->channels > acaps->MaximumChannels ||
ctx               444 libavdevice/dshow.c                     ctx->channels < acaps->MinimumChannels)
ctx               446 libavdevice/dshow.c                 fx->nChannels = ctx->channels;
ctx               471 libavdevice/dshow.c     struct dshow_ctx *ctx = avctx->priv_data;
ctx               486 libavdevice/dshow.c                    * ctx->audio_buffer_size / 1000;
ctx               566 libavdevice/dshow.c     struct dshow_ctx *ctx = avctx->priv_data;
ctx               576 libavdevice/dshow.c     int set_format = (devtype == VideoDevice && (ctx->framerate ||
ctx               577 libavdevice/dshow.c                                                 (ctx->requested_width && ctx->requested_height) ||
ctx               578 libavdevice/dshow.c                                                  ctx->pixel_format != AV_PIX_FMT_NONE ||
ctx               579 libavdevice/dshow.c                                                  ctx->video_codec_id != AV_CODEC_ID_RAWVIDEO))
ctx               580 libavdevice/dshow.c                   || (devtype == AudioDevice && (ctx->channels || ctx->sample_rate));
ctx               582 libavdevice/dshow.c     int should_show_properties = (devtype == VideoDevice) ? ctx->show_video_device_dialog : ctx->show_audio_device_dialog;
ctx               608 libavdevice/dshow.c         char *desired_pin_name = devtype == VideoDevice ? ctx->video_pin_name : ctx->audio_pin_name;
ctx               651 libavdevice/dshow.c         if (devtype == AudioDevice && ctx->audio_buffer_size) {
ctx               653 libavdevice/dshow.c                 av_log(avctx, AV_LOG_ERROR, "unable to set audio buffer size %d to pin, using pin anyway...", ctx->audio_buffer_size);
ctx               711 libavdevice/dshow.c     struct dshow_ctx *ctx = avctx->priv_data;
ctx               718 libavdevice/dshow.c     ctx->device_filter[devtype] = device_filter;
ctx               729 libavdevice/dshow.c     struct dshow_ctx *ctx = avctx->priv_data;
ctx               732 libavdevice/dshow.c     IGraphBuilder *graph = ctx->graph;
ctx               747 libavdevice/dshow.c     if ( ((ctx->audio_filter_load_file) && (strlen(ctx->audio_filter_load_file)>0) && (sourcetype == AudioSourceDevice)) ||
ctx               748 libavdevice/dshow.c             ((ctx->video_filter_load_file) && (strlen(ctx->video_filter_load_file)>0) && (sourcetype == VideoSourceDevice)) ) {
ctx               753 libavdevice/dshow.c             filename = ctx->audio_filter_load_file;
ctx               755 libavdevice/dshow.c             filename = ctx->video_filter_load_file;
ctx               781 libavdevice/dshow.c         if (ctx->device_filter[otherDevType]) {
ctx               784 libavdevice/dshow.c         if (strcmp(device_filter_unique_name, ctx->device_unique_name[otherDevType]) == 0) {
ctx               787 libavdevice/dshow.c           device_filter = ctx->device_filter[otherDevType];
ctx               788 libavdevice/dshow.c           IBaseFilter_AddRef(ctx->device_filter[otherDevType]);
ctx               790 libavdevice/dshow.c             av_log(avctx, AV_LOG_DEBUG, "not reusing previous graph capture filter %s != %s\n", device_filter_unique_name, ctx->device_unique_name[otherDevType]);
ctx               794 libavdevice/dshow.c     ctx->device_filter [devtype] = device_filter;
ctx               795 libavdevice/dshow.c     ctx->device_unique_name [devtype] = device_filter_unique_name;
ctx               808 libavdevice/dshow.c     ctx->device_pin[devtype] = device_pin;
ctx               815 libavdevice/dshow.c     ctx->capture_filter[devtype] = capture_filter;
ctx               817 libavdevice/dshow.c     if ( ((ctx->audio_filter_save_file) && (strlen(ctx->audio_filter_save_file)>0) && (sourcetype == AudioSourceDevice)) ||
ctx               818 libavdevice/dshow.c             ((ctx->video_filter_save_file) && (strlen(ctx->video_filter_save_file)>0) && (sourcetype == VideoSourceDevice)) ) {
ctx               824 libavdevice/dshow.c             filename = ctx->audio_filter_save_file;
ctx               826 libavdevice/dshow.c             filename = ctx->video_filter_save_file;
ctx               868 libavdevice/dshow.c     ctx->capture_pin[devtype] = capture_pin;
ctx               939 libavdevice/dshow.c     struct dshow_ctx *ctx = avctx->priv_data;
ctx               954 libavdevice/dshow.c     ctx->capture_filter[devtype]->stream_index = st->index;
ctx               956 libavdevice/dshow.c     libAVPin_ConnectionMediaType(ctx->capture_pin[devtype], &type);
ctx              1044 libavdevice/dshow.c     struct dshow_ctx *ctx = avctx->priv_data;
ctx              1045 libavdevice/dshow.c     char **device_name = ctx->device_name;
ctx              1081 libavdevice/dshow.c     struct dshow_ctx *ctx = avctx->priv_data;
ctx              1093 libavdevice/dshow.c     if (!ctx->list_devices && !parse_device_name(avctx)) {
ctx              1098 libavdevice/dshow.c     ctx->video_codec_id = avctx->video_codec_id ? avctx->video_codec_id
ctx              1100 libavdevice/dshow.c     if (ctx->pixel_format != AV_PIX_FMT_NONE) {
ctx              1101 libavdevice/dshow.c         if (ctx->video_codec_id != AV_CODEC_ID_RAWVIDEO) {
ctx              1108 libavdevice/dshow.c     if (ctx->framerate) {
ctx              1109 libavdevice/dshow.c         r = av_parse_video_rate(&ctx->requested_framerate, ctx->framerate);
ctx              1111 libavdevice/dshow.c             av_log(avctx, AV_LOG_ERROR, "Could not parse framerate '%s'.\n", ctx->framerate);
ctx              1122 libavdevice/dshow.c     ctx->graph = graph;
ctx              1131 libavdevice/dshow.c     if (ctx->list_devices) {
ctx              1139 libavdevice/dshow.c     if (ctx->list_options) {
ctx              1140 libavdevice/dshow.c         if (ctx->device_name[VideoDevice])
ctx              1145 libavdevice/dshow.c         if (ctx->device_name[AudioDevice]) {
ctx              1155 libavdevice/dshow.c     if (ctx->device_name[VideoDevice]) {
ctx              1162 libavdevice/dshow.c     if (ctx->device_name[AudioDevice]) {
ctx              1165 libavdevice/dshow.c             av_log(avctx, AV_LOG_INFO, "Searching for audio device within video devices for %s\n", ctx->device_name[AudioDevice]);
ctx              1174 libavdevice/dshow.c     if (ctx->list_options) {
ctx              1179 libavdevice/dshow.c     ctx->curbufsize[0] = 0;
ctx              1180 libavdevice/dshow.c     ctx->curbufsize[1] = 0;
ctx              1181 libavdevice/dshow.c     ctx->mutex = CreateMutex(NULL, 0, NULL);
ctx              1182 libavdevice/dshow.c     if (!ctx->mutex) {
ctx              1186 libavdevice/dshow.c     ctx->event[1] = CreateEvent(NULL, 1, 0, NULL);
ctx              1187 libavdevice/dshow.c     if (!ctx->event[1]) {
ctx              1197 libavdevice/dshow.c     ctx->control = control;
ctx              1204 libavdevice/dshow.c     ctx->media_event = media_event;
ctx              1212 libavdevice/dshow.c     r = DuplicateHandle(proc, media_event_handle, proc, &ctx->event[0],
ctx              1264 libavdevice/dshow.c     struct dshow_ctx *ctx = s->priv_data;
ctx              1267 libavdevice/dshow.c     while (!ctx->eof && !pktl) {
ctx              1268 libavdevice/dshow.c         WaitForSingleObject(ctx->mutex, INFINITE);
ctx              1269 libavdevice/dshow.c         pktl = ctx->pktl;
ctx              1272 libavdevice/dshow.c             ctx->pktl = ctx->pktl->next;
ctx              1274 libavdevice/dshow.c             ctx->curbufsize[pkt->stream_index] -= pkt->size;
ctx              1276 libavdevice/dshow.c         ResetEvent(ctx->event[1]);
ctx              1277 libavdevice/dshow.c         ReleaseMutex(ctx->mutex);
ctx              1279 libavdevice/dshow.c             if (dshow_check_event_queue(ctx->media_event) < 0) {
ctx              1280 libavdevice/dshow.c                 ctx->eof = 1;
ctx              1284 libavdevice/dshow.c                 WaitForMultipleObjects(2, ctx->event, 0, INFINITE);
ctx              1289 libavdevice/dshow.c     return ctx->eof ? AVERROR(EIO) : pkt->size;
ctx                60 libavdevice/dshow_crossbar.c     struct dshow_ctx *ctx = avctx->priv_data;
ctx                63 libavdevice/dshow_crossbar.c     int log_level = ctx->list_options ? AV_LOG_INFO : AV_LOG_DEBUG;
ctx                64 libavdevice/dshow_crossbar.c     int video_input_pin = ctx->crossbar_video_input_pin_number;
ctx                65 libavdevice/dshow_crossbar.c     int audio_input_pin = ctx->crossbar_audio_input_pin_number;
ctx                66 libavdevice/dshow_crossbar.c     const char *device_name = ctx->device_name[devtype];
ctx               143 libavdevice/dshow_crossbar.c     struct dshow_ctx *ctx = avctx->priv_data;
ctx               161 libavdevice/dshow_crossbar.c     if (devtype == VideoDevice && ctx->show_video_crossbar_connection_dialog ||
ctx               162 libavdevice/dshow_crossbar.c         devtype == AudioDevice && ctx->show_audio_crossbar_connection_dialog) {
ctx               169 libavdevice/dshow_crossbar.c     if (devtype == VideoDevice && ctx->show_analog_tv_tuner_dialog) {
ctx               181 libavdevice/dshow_crossbar.c     if (devtype == AudioDevice && ctx->show_analog_tv_tuner_audio_dialog) {
ctx               328 libavdevice/dshow_pin.c     struct dshow_ctx *ctx;
ctx               359 libavdevice/dshow_pin.c     ctx = s->priv_data;
ctx               364 libavdevice/dshow_pin.c         devtypename, buf_size, curtime, orig_curtime, graphtime, graphtime - orig_curtime, ctx->device_name[devtype]);
ctx                86 libavdevice/kmsgrab.c     KMSGrabContext *ctx = avctx->priv_data;
ctx                95 libavdevice/kmsgrab.c     if (ctx->frame_last) {
ctx                98 libavdevice/kmsgrab.c             delay = ctx->frame_last + ctx->frame_delay - now;
ctx               105 libavdevice/kmsgrab.c     ctx->frame_last = now;
ctx               107 libavdevice/kmsgrab.c     plane = drmModeGetPlane(ctx->hwctx->fd, ctx->plane_id);
ctx               110 libavdevice/kmsgrab.c                "%"PRIu32".\n", ctx->plane_id);
ctx               115 libavdevice/kmsgrab.c                "an associated framebuffer.\n", ctx->plane_id);
ctx               119 libavdevice/kmsgrab.c     fb = drmModeGetFB(ctx->hwctx->fd, plane->fb_id);
ctx               125 libavdevice/kmsgrab.c     if (fb->width != ctx->width || fb->height != ctx->height) {
ctx               128 libavdevice/kmsgrab.c                ctx->plane_id, fb->width, fb->height);
ctx               136 libavdevice/kmsgrab.c     err = drmPrimeHandleToFD(ctx->hwctx->fd, fb->handle, O_RDONLY, &fd);
ctx               153 libavdevice/kmsgrab.c             .format_modifier  = ctx->drm_format_modifier,
ctx               157 libavdevice/kmsgrab.c             .format           = ctx->drm_format,
ctx               171 libavdevice/kmsgrab.c     frame->hw_frames_ctx = av_buffer_ref(ctx->frames_ref);
ctx               238 libavdevice/kmsgrab.c     KMSGrabContext *ctx = avctx->priv_data;
ctx               246 libavdevice/kmsgrab.c         if (kmsgrab_formats[i].pixfmt == ctx->format) {
ctx               247 libavdevice/kmsgrab.c             ctx->drm_format = kmsgrab_formats[i].drm_format;
ctx               253 libavdevice/kmsgrab.c                av_get_pix_fmt_name(ctx->format));
ctx               257 libavdevice/kmsgrab.c     err = av_hwdevice_ctx_create(&ctx->device_ref, AV_HWDEVICE_TYPE_DRM,
ctx               258 libavdevice/kmsgrab.c                                  ctx->device_path, NULL, 0);
ctx               263 libavdevice/kmsgrab.c     ctx->device = (AVHWDeviceContext*) ctx->device_ref->data;
ctx               264 libavdevice/kmsgrab.c     ctx->hwctx  = (AVDRMDeviceContext*)ctx->device->hwctx;
ctx               266 libavdevice/kmsgrab.c     err = drmSetClientCap(ctx->hwctx->fd,
ctx               273 libavdevice/kmsgrab.c     if (ctx->source_plane > 0) {
ctx               274 libavdevice/kmsgrab.c         plane = drmModeGetPlane(ctx->hwctx->fd, ctx->source_plane);
ctx               278 libavdevice/kmsgrab.c                    "%s.\n", ctx->source_plane, strerror(err));
ctx               285 libavdevice/kmsgrab.c                    "an attached framebuffer.\n", ctx->source_plane);
ctx               290 libavdevice/kmsgrab.c         plane_res = drmModeGetPlaneResources(ctx->hwctx->fd);
ctx               299 libavdevice/kmsgrab.c             plane = drmModeGetPlane(ctx->hwctx->fd,
ctx               313 libavdevice/kmsgrab.c             if ((ctx->source_crtc > 0 &&
ctx               314 libavdevice/kmsgrab.c                  plane->crtc_id != ctx->source_crtc) ||
ctx               327 libavdevice/kmsgrab.c             if (ctx->source_crtc > 0) {
ctx               329 libavdevice/kmsgrab.c                        "CRTC %"PRId64".\n", ctx->source_crtc);
ctx               341 libavdevice/kmsgrab.c     ctx->plane_id = plane->plane_id;
ctx               343 libavdevice/kmsgrab.c     fb = drmModeGetFB(ctx->hwctx->fd, plane->fb_id);
ctx               357 libavdevice/kmsgrab.c     ctx->width  = fb->width;
ctx               358 libavdevice/kmsgrab.c     ctx->height = fb->height;
ctx               381 libavdevice/kmsgrab.c     ctx->frames_ref = av_hwframe_ctx_alloc(ctx->device_ref);
ctx               382 libavdevice/kmsgrab.c     if (!ctx->frames_ref) {
ctx               386 libavdevice/kmsgrab.c     ctx->frames = (AVHWFramesContext*)ctx->frames_ref->data;
ctx               388 libavdevice/kmsgrab.c     ctx->frames->format    = AV_PIX_FMT_DRM_PRIME;
ctx               389 libavdevice/kmsgrab.c     ctx->frames->sw_format = ctx->format,
ctx               390 libavdevice/kmsgrab.c     ctx->frames->width     = fb->width;
ctx               391 libavdevice/kmsgrab.c     ctx->frames->height    = fb->height;
ctx               393 libavdevice/kmsgrab.c     err = av_hwframe_ctx_init(ctx->frames_ref);
ctx               400 libavdevice/kmsgrab.c     ctx->frame_delay = av_rescale_q(1, (AVRational) { ctx->framerate.den,
ctx               401 libavdevice/kmsgrab.c                 ctx->framerate.num }, AV_TIME_BASE_Q);
ctx               417 libavdevice/kmsgrab.c     KMSGrabContext *ctx = avctx->priv_data;
ctx               419 libavdevice/kmsgrab.c     av_buffer_unref(&ctx->frames_ref);
ctx               420 libavdevice/kmsgrab.c     av_buffer_unref(&ctx->device_ref);
ctx                54 libavdevice/libcdio.c static av_cold int read_header(AVFormatContext *ctx)
ctx                56 libavdevice/libcdio.c     CDIOContext *s = ctx->priv_data;
ctx                61 libavdevice/libcdio.c     if (!(st = avformat_new_stream(ctx, NULL)))
ctx                63 libavdevice/libcdio.c     s->drive = cdio_cddap_identify(ctx->url, CDDA_MESSAGE_LOGIT, &err);
ctx                65 libavdevice/libcdio.c         av_log(ctx, AV_LOG_ERROR, "Could not open drive %s.\n", ctx->url);
ctx                69 libavdevice/libcdio.c         av_log(ctx, AV_LOG_VERBOSE, "%s\n", err);
ctx                73 libavdevice/libcdio.c         av_log(ctx, AV_LOG_ERROR, "Could not open disk in drive %s.\n", ctx->url);
ctx                83 libavdevice/libcdio.c         av_log(ctx, AV_LOG_ERROR, "Could not init paranoia.\n");
ctx               105 libavdevice/libcdio.c         avpriv_new_chapter(ctx, i, st->time_base, s->drive->disc_toc[i].dwStartSector,
ctx               114 libavdevice/libcdio.c static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
ctx               116 libavdevice/libcdio.c     CDIOContext *s = ctx->priv_data;
ctx               121 libavdevice/libcdio.c     if (ctx->streams[0]->cur_dts > s->last_sector)
ctx               129 libavdevice/libcdio.c         av_log(ctx, AV_LOG_ERROR, "%s\n", err);
ctx               134 libavdevice/libcdio.c         av_log(ctx, AV_LOG_VERBOSE, "%s\n", err);
ctx               145 libavdevice/libcdio.c static av_cold int read_close(AVFormatContext *ctx)
ctx               147 libavdevice/libcdio.c     CDIOContext *s = ctx->priv_data;
ctx               153 libavdevice/libcdio.c static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp,
ctx               156 libavdevice/libcdio.c     CDIOContext *s = ctx->priv_data;
ctx               157 libavdevice/libcdio.c     AVStream *st = ctx->streams[0];
ctx               121 libavdevice/openal-dec.c static int read_header(AVFormatContext *ctx)
ctx               123 libavdevice/openal-dec.c     al_data *ad = ctx->priv_data;
ctx               134 libavdevice/openal-dec.c         print_al_capture_devices(ctx);
ctx               142 libavdevice/openal-dec.c         alcCaptureOpenDevice(ctx->url[0] ? ctx->url : NULL,
ctx               150 libavdevice/openal-dec.c     if (!(st = avformat_new_stream(ctx, NULL))) {
ctx               179 libavdevice/openal-dec.c         av_log(ctx, AV_LOG_ERROR, "Cannot open device: %s\n", error_msg);
ctx               183 libavdevice/openal-dec.c static int read_packet(AVFormatContext* ctx, AVPacket *pkt)
ctx               185 libavdevice/openal-dec.c     al_data *ad = ctx->priv_data;
ctx               196 libavdevice/openal-dec.c         if (ctx->flags & AVFMT_FLAG_NONBLOCK)
ctx               216 libavdevice/openal-dec.c         av_log(ctx, AV_LOG_ERROR, "Error: %s\n", error_msg);
ctx               220 libavdevice/openal-dec.c static int read_close(AVFormatContext* ctx)
ctx               222 libavdevice/openal-dec.c     al_data *ad = ctx->priv_data;
ctx               151 libavdevice/opengl_enc.c #define OPENGL_ERROR_CHECK(ctx) \
ctx               155 libavdevice/opengl_enc.c         av_log(ctx, AV_LOG_ERROR, "OpenGL error occurred in '%s', line %d: %d\n", __FUNCTION__, __LINE__, err_code); \
ctx                46 libavdevice/pulse_audio_enc.c     pa_context *ctx;
ctx                54 libavdevice/pulse_audio_enc.c static void pulse_audio_sink_device_cb(pa_context *ctx, const pa_sink_info *dev,
ctx                59 libavdevice/pulse_audio_enc.c     if (s->ctx != ctx)
ctx                78 libavdevice/pulse_audio_enc.c     if (!(op = pa_context_get_sink_info_by_name(s->ctx, s->device,
ctx                89 libavdevice/pulse_audio_enc.c static void pulse_audio_sink_input_cb(pa_context *ctx, const pa_sink_input_info *i,
ctx                95 libavdevice/pulse_audio_enc.c     if (s->ctx != ctx)
ctx               123 libavdevice/pulse_audio_enc.c     pa_context *ctx = NULL;
ctx               126 libavdevice/pulse_audio_enc.c     if ((ret = ff_pulse_audio_connect_context(&ml, &ctx, s->server, "Update sink input information")) < 0)
ctx               129 libavdevice/pulse_audio_enc.c     if (!(op = pa_context_get_sink_input_info(ctx, pa_stream_get_index(s->stream),
ctx               144 libavdevice/pulse_audio_enc.c     ff_pulse_audio_disconnect_context(&ml, &ctx);
ctx               150 libavdevice/pulse_audio_enc.c static void pulse_event(pa_context *ctx, pa_subscription_event_type_t t,
ctx               156 libavdevice/pulse_audio_enc.c     if (s->ctx != ctx)
ctx               220 libavdevice/pulse_audio_enc.c static void pulse_context_state(pa_context *ctx, void *userdata)
ctx               224 libavdevice/pulse_audio_enc.c     if (s->ctx != ctx)
ctx               227 libavdevice/pulse_audio_enc.c     switch (pa_context_get_state(ctx)) {
ctx               241 libavdevice/pulse_audio_enc.c     while ((state = pa_context_get_state(s->ctx)) != PA_CONTEXT_READY) {
ctx               293 libavdevice/pulse_audio_enc.c static void pulse_context_result(pa_context *ctx, int success, void *userdata)
ctx               297 libavdevice/pulse_audio_enc.c     if (s->ctx != ctx)
ctx               325 libavdevice/pulse_audio_enc.c     op = pa_context_set_sink_input_mute(s->ctx, pa_stream_get_index(s->stream),
ctx               341 libavdevice/pulse_audio_enc.c     op = pa_context_set_sink_input_volume(s->ctx, pa_stream_get_index(s->stream),
ctx               351 libavdevice/pulse_audio_enc.c     op = pa_context_subscribe(s->ctx, PA_SUBSCRIPTION_MASK_SINK_INPUT, pulse_context_result, s);
ctx               425 libavdevice/pulse_audio_enc.c         if (s->ctx) {
ctx               426 libavdevice/pulse_audio_enc.c             pa_context_disconnect(s->ctx);
ctx               427 libavdevice/pulse_audio_enc.c             pa_context_set_state_callback(s->ctx, NULL, NULL);
ctx               428 libavdevice/pulse_audio_enc.c             pa_context_set_subscribe_callback(s->ctx, NULL, NULL);
ctx               429 libavdevice/pulse_audio_enc.c             pa_context_unref(s->ctx);
ctx               430 libavdevice/pulse_audio_enc.c             s->ctx = NULL;
ctx               538 libavdevice/pulse_audio_enc.c     s->ctx = pa_context_new(mainloop_api, s->name);
ctx               539 libavdevice/pulse_audio_enc.c     if (!s->ctx) {
ctx               544 libavdevice/pulse_audio_enc.c     pa_context_set_state_callback(s->ctx, pulse_context_state, s);
ctx               545 libavdevice/pulse_audio_enc.c     pa_context_set_subscribe_callback(s->ctx, pulse_event, h);
ctx               547 libavdevice/pulse_audio_enc.c     if ((ret = pa_context_connect(s->ctx, s->server, 0, NULL)) < 0) {
ctx               558 libavdevice/pulse_audio_enc.c     s->stream = pa_stream_new(s->ctx, stream_name, &sample_spec,
ctx               113 libavdevice/v4l2.c static int device_open(AVFormatContext *ctx, const char* device_path)
ctx               115 libavdevice/v4l2.c     struct video_data *s = ctx->priv_data;
ctx               135 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "libavdevice is not built with libv4l2 support.\n");
ctx               150 libavdevice/v4l2.c     if (ctx->flags & AVFMT_FLAG_NONBLOCK) {
ctx               157 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "Cannot open video device %s: %s\n",
ctx               164 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_QUERYCAP): %s\n",
ctx               169 libavdevice/v4l2.c     av_log(ctx, AV_LOG_VERBOSE, "fd:%d capabilities:%x\n",
ctx               173 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "Not a video capture device.\n");
ctx               179 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR,
ctx               192 libavdevice/v4l2.c static int device_init(AVFormatContext *ctx, int *width, int *height,
ctx               195 libavdevice/v4l2.c     struct video_data *s = ctx->priv_data;
ctx               210 libavdevice/v4l2.c         av_log(ctx, AV_LOG_INFO,
ctx               218 libavdevice/v4l2.c         av_log(ctx, AV_LOG_DEBUG,
ctx               226 libavdevice/v4l2.c         av_log(ctx, AV_LOG_DEBUG,
ctx               249 libavdevice/v4l2.c static void list_framesizes(AVFormatContext *ctx, uint32_t pixelformat)
ctx               251 libavdevice/v4l2.c     const struct video_data *s = ctx->priv_data;
ctx               257 libavdevice/v4l2.c             av_log(ctx, AV_LOG_INFO, " %ux%u",
ctx               262 libavdevice/v4l2.c             av_log(ctx, AV_LOG_INFO, " {%u-%u, %u}x{%u-%u, %u}",
ctx               275 libavdevice/v4l2.c static void list_formats(AVFormatContext *ctx, int type)
ctx               277 libavdevice/v4l2.c     const struct video_data *s = ctx->priv_data;
ctx               289 libavdevice/v4l2.c             av_log(ctx, AV_LOG_INFO, "Raw       : %11s : %20s :",
ctx               295 libavdevice/v4l2.c             av_log(ctx, AV_LOG_INFO, "Compressed: %11s : %20s :",
ctx               304 libavdevice/v4l2.c             av_log(ctx, AV_LOG_INFO, " Emulated :");
ctx               307 libavdevice/v4l2.c         list_framesizes(ctx, vfd.pixelformat);
ctx               309 libavdevice/v4l2.c         av_log(ctx, AV_LOG_INFO, "\n");
ctx               313 libavdevice/v4l2.c static void list_standards(AVFormatContext *ctx)
ctx               316 libavdevice/v4l2.c     struct video_data *s = ctx->priv_data;
ctx               328 libavdevice/v4l2.c                 av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_ENUMSTD): %s\n", av_err2str(ret));
ctx               332 libavdevice/v4l2.c         av_log(ctx, AV_LOG_INFO, "%2d, %16"PRIx64", %s\n",
ctx               337 libavdevice/v4l2.c static int mmap_init(AVFormatContext *ctx)
ctx               340 libavdevice/v4l2.c     struct video_data *s = ctx->priv_data;
ctx               349 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_REQBUFS): %s\n", av_err2str(res));
ctx               354 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "Insufficient buffer memory\n");
ctx               360 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "Cannot allocate buffer pointers\n");
ctx               365 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "Cannot allocate buffer sizes\n");
ctx               378 libavdevice/v4l2.c             av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_QUERYBUF): %s\n", av_err2str(res));
ctx               384 libavdevice/v4l2.c             av_log(ctx, AV_LOG_ERROR,
ctx               395 libavdevice/v4l2.c             av_log(ctx, AV_LOG_ERROR, "mmap: %s\n", av_err2str(res));
ctx               438 libavdevice/v4l2.c static int init_convert_timestamp(AVFormatContext *ctx, int64_t ts)
ctx               440 libavdevice/v4l2.c     struct video_data *s = ctx->priv_data;
ctx               446 libavdevice/v4l2.c         av_log(ctx, AV_LOG_INFO, "Detected absolute timestamps\n");
ctx               451 libavdevice/v4l2.c     if (ctx->streams[0]->avg_frame_rate.num) {
ctx               456 libavdevice/v4l2.c             int64_t period = av_rescale_q(1, tb, ctx->streams[0]->avg_frame_rate);
ctx               457 libavdevice/v4l2.c             av_log(ctx, AV_LOG_INFO, "Detected monotonic timestamps, converting\n");
ctx               467 libavdevice/v4l2.c     av_log(ctx, AV_LOG_ERROR, "Unknown timestamps\n");
ctx               471 libavdevice/v4l2.c static int convert_timestamp(AVFormatContext *ctx, int64_t *ts)
ctx               473 libavdevice/v4l2.c     struct video_data *s = ctx->priv_data;
ctx               476 libavdevice/v4l2.c         int r = init_convert_timestamp(ctx, *ts);
ctx               492 libavdevice/v4l2.c static int mmap_read_frame(AVFormatContext *ctx, AVPacket *pkt)
ctx               494 libavdevice/v4l2.c     struct video_data *s = ctx->priv_data;
ctx               511 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_DQBUF): %s\n",
ctx               519 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "Invalid buffer index received.\n");
ctx               528 libavdevice/v4l2.c         av_log(ctx, AV_LOG_WARNING,
ctx               537 libavdevice/v4l2.c         if (ctx->video_codec_id == AV_CODEC_ID_CPIA)
ctx               541 libavdevice/v4l2.c             av_log(ctx, AV_LOG_WARNING,
ctx               553 libavdevice/v4l2.c             av_log(ctx, AV_LOG_ERROR, "Error allocating a packet.\n");
ctx               575 libavdevice/v4l2.c             av_log(ctx, AV_LOG_ERROR, "Failed to allocate a buffer descriptor\n");
ctx               586 libavdevice/v4l2.c             av_log(ctx, AV_LOG_ERROR, "Failed to create a buffer\n");
ctx               593 libavdevice/v4l2.c     convert_timestamp(ctx, &pkt->pts);
ctx               598 libavdevice/v4l2.c static int mmap_start(AVFormatContext *ctx)
ctx               600 libavdevice/v4l2.c     struct video_data *s = ctx->priv_data;
ctx               613 libavdevice/v4l2.c             av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_QBUF): %s\n",
ctx               623 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_STREAMON): %s\n",
ctx               648 libavdevice/v4l2.c static int v4l2_set_parameters(AVFormatContext *ctx)
ctx               650 libavdevice/v4l2.c     struct video_data *s = ctx->priv_data;
ctx               659 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "Could not parse framerate '%s'.\n",
ctx               667 libavdevice/v4l2.c             av_log(ctx, AV_LOG_DEBUG, "Setting standard: %s\n", s->standard);
ctx               679 libavdevice/v4l2.c                 av_log(ctx, AV_LOG_ERROR, "Unknown or unsupported standard '%s'\n", s->standard);
ctx               685 libavdevice/v4l2.c                 av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_S_STD): %s\n", av_err2str(ret));
ctx               689 libavdevice/v4l2.c             av_log(ctx, AV_LOG_WARNING,
ctx               709 libavdevice/v4l2.c                 av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_ENUMSTD): %s\n", av_err2str(ret));
ctx               713 libavdevice/v4l2.c                 av_log(ctx, AV_LOG_DEBUG,
ctx               726 libavdevice/v4l2.c         av_log(ctx, AV_LOG_WARNING, "ioctl(VIDIOC_G_PARM): %s\n", av_err2str(ret));
ctx               731 libavdevice/v4l2.c             av_log(ctx, AV_LOG_DEBUG, "Setting time per frame to %d/%d\n",
ctx               738 libavdevice/v4l2.c                 av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_S_PARM): %s\n",
ctx               745 libavdevice/v4l2.c                 av_log(ctx, AV_LOG_INFO,
ctx               752 libavdevice/v4l2.c             av_log(ctx, AV_LOG_WARNING,
ctx               757 libavdevice/v4l2.c         ctx->streams[0]->avg_frame_rate.num = tpf->denominator;
ctx               758 libavdevice/v4l2.c         ctx->streams[0]->avg_frame_rate.den = tpf->numerator;
ctx               759 libavdevice/v4l2.c         ctx->streams[0]->r_frame_rate = ctx->streams[0]->avg_frame_rate;
ctx               761 libavdevice/v4l2.c         av_log(ctx, AV_LOG_WARNING, "Time per frame unknown\n");
ctx               766 libavdevice/v4l2.c static int device_try_init(AVFormatContext *ctx,
ctx               775 libavdevice/v4l2.c     *desired_format = ff_fmt_ff2v4l(pix_fmt, ctx->video_codec_id);
ctx               778 libavdevice/v4l2.c         ret = device_init(ctx, width, height, *desired_format);
ctx               788 libavdevice/v4l2.c             if (ctx->video_codec_id == AV_CODEC_ID_NONE ||
ctx               789 libavdevice/v4l2.c                 ff_fmt_conversion_table[i].codec_id == ctx->video_codec_id) {
ctx               790 libavdevice/v4l2.c                 av_log(ctx, AV_LOG_DEBUG, "Trying to set codec:%s pix_fmt:%s\n",
ctx               795 libavdevice/v4l2.c                 ret = device_init(ctx, width, height, *desired_format);
ctx               805 libavdevice/v4l2.c             av_log(ctx, AV_LOG_ERROR, "Cannot find a proper format for "
ctx               807 libavdevice/v4l2.c                    avcodec_get_name(ctx->video_codec_id), ctx->video_codec_id,
ctx               826 libavdevice/v4l2.c static int v4l2_read_header(AVFormatContext *ctx)
ctx               828 libavdevice/v4l2.c     struct video_data *s = ctx->priv_data;
ctx               836 libavdevice/v4l2.c     st = avformat_new_stream(ctx, NULL);
ctx               847 libavdevice/v4l2.c     s->fd = device_open(ctx, ctx->url);
ctx               853 libavdevice/v4l2.c         av_log(ctx, AV_LOG_DEBUG, "Selecting input_channel: %d\n", s->channel);
ctx               856 libavdevice/v4l2.c             av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_S_INPUT): %s\n", av_err2str(res));
ctx               863 libavdevice/v4l2.c             av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_G_INPUT): %s\n", av_err2str(res));
ctx               872 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_ENUMINPUT): %s\n", av_err2str(res));
ctx               876 libavdevice/v4l2.c     av_log(ctx, AV_LOG_DEBUG, "Current input_channel: %d, input_name: %s, input_std: %"PRIx64"\n",
ctx               880 libavdevice/v4l2.c         list_formats(ctx, s->list_format);
ctx               886 libavdevice/v4l2.c         list_standards(ctx);
ctx               897 libavdevice/v4l2.c             ctx->video_codec_id = desc->id;
ctx               902 libavdevice/v4l2.c             av_log(ctx, AV_LOG_ERROR, "No such input format: %s.\n",
ctx               913 libavdevice/v4l2.c         av_log(ctx, AV_LOG_VERBOSE,
ctx               917 libavdevice/v4l2.c             av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_G_FMT): %s\n",
ctx               924 libavdevice/v4l2.c         av_log(ctx, AV_LOG_VERBOSE,
ctx               928 libavdevice/v4l2.c     res = device_try_init(ctx, pix_fmt, &s->width, &s->height, &desired_format, &codec_id);
ctx               936 libavdevice/v4l2.c     if (codec_id != AV_CODEC_ID_NONE && ctx->video_codec_id == AV_CODEC_ID_NONE)
ctx               937 libavdevice/v4l2.c         ctx->video_codec_id = codec_id;
ctx               939 libavdevice/v4l2.c     if ((res = av_image_check_size(s->width, s->height, 0, ctx)) < 0)
ctx               944 libavdevice/v4l2.c     if ((res = v4l2_set_parameters(ctx)) < 0)
ctx               952 libavdevice/v4l2.c     if ((res = mmap_init(ctx)) ||
ctx               953 libavdevice/v4l2.c         (res = mmap_start(ctx)) < 0)
ctx               982 libavdevice/v4l2.c static int v4l2_read_packet(AVFormatContext *ctx, AVPacket *pkt)
ctx               986 libavdevice/v4l2.c     struct video_data *s = ctx->priv_data;
ctx               987 libavdevice/v4l2.c     AVFrame *frame = ctx->streams[0]->codec->coded_frame;
ctx               992 libavdevice/v4l2.c     if ((res = mmap_read_frame(ctx, pkt)) < 0) {
ctx              1008 libavdevice/v4l2.c static int v4l2_read_close(AVFormatContext *ctx)
ctx              1010 libavdevice/v4l2.c     struct video_data *s = ctx->priv_data;
ctx              1013 libavdevice/v4l2.c         av_log(ctx, AV_LOG_WARNING, "Some buffers are still owned by the caller on "
ctx              1030 libavdevice/v4l2.c static int v4l2_get_device_list(AVFormatContext *ctx, AVDeviceInfoList *device_list)
ctx              1032 libavdevice/v4l2.c     struct video_data *s = ctx->priv_data;
ctx              1045 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "Couldn't open the directory: %s\n", av_err2str(ret));
ctx              1055 libavdevice/v4l2.c         if ((s->fd = device_open(ctx, device_name)) < 0)
ctx              1060 libavdevice/v4l2.c             av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_QUERYCAP): %s\n", av_err2str(ret));
ctx               163 libavdevice/vfwcap.c     struct vfw_ctx *ctx = s->priv_data;
ctx               166 libavdevice/vfwcap.c     unsigned int buffer_fullness = (ctx->curbufsize*100)/s->max_picture_buffer;
ctx               168 libavdevice/vfwcap.c     if(dropscore[++ctx->frame_num%ndropscores] <= buffer_fullness) {
ctx               180 libavdevice/vfwcap.c     struct vfw_ctx *ctx;
ctx               184 libavdevice/vfwcap.c     ctx = s->priv_data;
ctx               191 libavdevice/vfwcap.c     WaitForSingleObject(ctx->mutex, INFINITE);
ctx               205 libavdevice/vfwcap.c     for(ppktl = &ctx->pktl ; *ppktl ; ppktl = &(*ppktl)->next);
ctx               208 libavdevice/vfwcap.c     ctx->curbufsize += vdhdr->dwBytesUsed;
ctx               210 libavdevice/vfwcap.c     SetEvent(ctx->event);
ctx               211 libavdevice/vfwcap.c     ReleaseMutex(ctx->mutex);
ctx               215 libavdevice/vfwcap.c     ReleaseMutex(ctx->mutex);
ctx               221 libavdevice/vfwcap.c     struct vfw_ctx *ctx = s->priv_data;
ctx               224 libavdevice/vfwcap.c     if(ctx->hwnd) {
ctx               225 libavdevice/vfwcap.c         SendMessage(ctx->hwnd, WM_CAP_SET_CALLBACK_VIDEOSTREAM, 0, 0);
ctx               226 libavdevice/vfwcap.c         SendMessage(ctx->hwnd, WM_CAP_DRIVER_DISCONNECT, 0, 0);
ctx               227 libavdevice/vfwcap.c         DestroyWindow(ctx->hwnd);
ctx               229 libavdevice/vfwcap.c     if(ctx->mutex)
ctx               230 libavdevice/vfwcap.c         CloseHandle(ctx->mutex);
ctx               231 libavdevice/vfwcap.c     if(ctx->event)
ctx               232 libavdevice/vfwcap.c         CloseHandle(ctx->event);
ctx               234 libavdevice/vfwcap.c     pktl = ctx->pktl;
ctx               247 libavdevice/vfwcap.c     struct vfw_ctx *ctx = s->priv_data;
ctx               275 libavdevice/vfwcap.c     ctx->hwnd = capCreateCaptureWindow(NULL, 0, 0, 0, 0, 0, HWND_MESSAGE, 0);
ctx               276 libavdevice/vfwcap.c     if(!ctx->hwnd) {
ctx               284 libavdevice/vfwcap.c     ret = SendMessage(ctx->hwnd, WM_CAP_DRIVER_CONNECT, devnum, 0);
ctx               287 libavdevice/vfwcap.c         DestroyWindow(ctx->hwnd);
ctx               291 libavdevice/vfwcap.c     SendMessage(ctx->hwnd, WM_CAP_SET_OVERLAY, 0, 0);
ctx               292 libavdevice/vfwcap.c     SendMessage(ctx->hwnd, WM_CAP_SET_PREVIEW, 0, 0);
ctx               294 libavdevice/vfwcap.c     ret = SendMessage(ctx->hwnd, WM_CAP_SET_CALLBACK_VIDEOSTREAM, 0,
ctx               301 libavdevice/vfwcap.c     SetWindowLongPtr(ctx->hwnd, GWLP_USERDATA, (LONG_PTR) s);
ctx               310 libavdevice/vfwcap.c     bisize = SendMessage(ctx->hwnd, WM_CAP_GET_VIDEOFORMAT, 0, 0);
ctx               318 libavdevice/vfwcap.c     ret = SendMessage(ctx->hwnd, WM_CAP_GET_VIDEOFORMAT, bisize, (LPARAM) bi);
ctx               324 libavdevice/vfwcap.c     ret = av_parse_video_rate(&framerate_q, ctx->framerate);
ctx               326 libavdevice/vfwcap.c         av_log(s, AV_LOG_ERROR, "Could not parse framerate '%s'.\n", ctx->framerate);
ctx               330 libavdevice/vfwcap.c     if (ctx->video_size) {
ctx               332 libavdevice/vfwcap.c         ret = av_parse_video_size(&w, &h, ctx->video_size);
ctx               353 libavdevice/vfwcap.c     ret = SendMessage(ctx->hwnd, WM_CAP_SET_VIDEOFORMAT, bisize, (LPARAM) bi);
ctx               363 libavdevice/vfwcap.c     ret = SendMessage(ctx->hwnd, WM_CAP_GET_SEQUENCE_SETUP, sizeof(cparms),
ctx               378 libavdevice/vfwcap.c     ret = SendMessage(ctx->hwnd, WM_CAP_SET_SEQUENCE_SETUP, sizeof(cparms),
ctx               414 libavdevice/vfwcap.c     ctx->mutex = CreateMutex(NULL, 0, NULL);
ctx               415 libavdevice/vfwcap.c     if(!ctx->mutex) {
ctx               419 libavdevice/vfwcap.c     ctx->event = CreateEvent(NULL, 1, 0, NULL);
ctx               420 libavdevice/vfwcap.c     if(!ctx->event) {
ctx               425 libavdevice/vfwcap.c     ret = SendMessage(ctx->hwnd, WM_CAP_SEQUENCE_NOFILE, 0, 0);
ctx               441 libavdevice/vfwcap.c     struct vfw_ctx *ctx = s->priv_data;
ctx               445 libavdevice/vfwcap.c         WaitForSingleObject(ctx->mutex, INFINITE);
ctx               446 libavdevice/vfwcap.c         pktl = ctx->pktl;
ctx               447 libavdevice/vfwcap.c         if(ctx->pktl) {
ctx               448 libavdevice/vfwcap.c             *pkt = ctx->pktl->pkt;
ctx               449 libavdevice/vfwcap.c             ctx->pktl = ctx->pktl->next;
ctx               452 libavdevice/vfwcap.c         ResetEvent(ctx->event);
ctx               453 libavdevice/vfwcap.c         ReleaseMutex(ctx->mutex);
ctx               458 libavdevice/vfwcap.c                 WaitForSingleObject(ctx->event, INFINITE);
ctx               463 libavdevice/vfwcap.c     ctx->curbufsize -= pkt->size;
ctx               461 libavdevice/xcbgrab.c     XCBGrabContext *ctx = s->priv_data;
ctx               464 libavdevice/xcbgrab.c     av_buffer_pool_uninit(&ctx->shm_pool);
ctx               467 libavdevice/xcbgrab.c     xcb_disconnect(ctx->conn);
ctx               103 libavfilter/aeval.c static int parse_channel_expressions(AVFilterContext *ctx,
ctx               106 libavfilter/aeval.c     EvalContext *eval = ctx->priv;
ctx               117 libavfilter/aeval.c         av_log(ctx, AV_LOG_ERROR, "Channels expressions list is empty\n");
ctx               121 libavfilter/aeval.c     if (!strcmp(ctx->filter->name, "aeval")) {
ctx               135 libavfilter/aeval.c                             NULL, NULL, 0, ctx);                        \
ctx               159 libavfilter/aeval.c         av_log(ctx, AV_LOG_ERROR,
ctx               172 libavfilter/aeval.c static av_cold int init(AVFilterContext *ctx)
ctx               174 libavfilter/aeval.c     EvalContext *eval = ctx->priv;
ctx               178 libavfilter/aeval.c         if (!strcmp(eval->chlayout_str, "same") && !strcmp(ctx->filter->name, "aeval")) {
ctx               181 libavfilter/aeval.c             ret = ff_parse_channel_layout(&eval->chlayout, NULL, eval->chlayout_str, ctx);
ctx               185 libavfilter/aeval.c             ret = parse_channel_expressions(ctx, av_get_channel_layout_nb_channels(eval->chlayout));
ctx               191 libavfilter/aeval.c         if ((ret = parse_channel_expressions(ctx, -1)) < 0)
ctx               196 libavfilter/aeval.c             av_log(ctx, AV_LOG_ERROR, "Invalid number of channels '%d' provided\n",
ctx               203 libavfilter/aeval.c         if ((ret = ff_parse_sample_rate(&eval->sample_rate, eval->sample_rate_str, ctx)))
ctx               210 libavfilter/aeval.c static av_cold void uninit(AVFilterContext *ctx)
ctx               212 libavfilter/aeval.c     EvalContext *eval = ctx->priv;
ctx               244 libavfilter/aeval.c static int query_formats(AVFilterContext *ctx)
ctx               246 libavfilter/aeval.c     EvalContext *eval = ctx->priv;
ctx               257 libavfilter/aeval.c     ret = ff_set_common_formats (ctx, formats);
ctx               264 libavfilter/aeval.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               271 libavfilter/aeval.c     return ff_set_common_samplerates(ctx, formats);
ctx               351 libavfilter/aeval.c static int aeval_query_formats(AVFilterContext *ctx)
ctx               355 libavfilter/aeval.c     AVFilterLink *inlink  = ctx->inputs[0];
ctx               356 libavfilter/aeval.c     AVFilterLink *outlink  = ctx->outputs[0];
ctx               357 libavfilter/aeval.c     EvalContext *eval = ctx->priv;
ctx               370 libavfilter/aeval.c         if ((ret = ff_set_common_channel_layouts(ctx, layouts)) < 0)
ctx               384 libavfilter/aeval.c     if ((ret = ff_set_common_formats(ctx, formats)) < 0)
ctx               388 libavfilter/aeval.c     return ff_set_common_samplerates(ctx, formats);
ctx               393 libavfilter/aeval.c     AVFilterContext *ctx = outlink->src;
ctx               394 libavfilter/aeval.c     EvalContext *eval = ctx->priv;
ctx               395 libavfilter/aeval.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               401 libavfilter/aeval.c         if ((ret = parse_channel_expressions(ctx, inlink->channels)) < 0)
ctx                45 libavfilter/af_acontrast.c static int query_formats(AVFilterContext *ctx)
ctx                59 libavfilter/af_acontrast.c     ret = ff_set_common_formats(ctx, formats);
ctx                67 libavfilter/af_acontrast.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx                72 libavfilter/af_acontrast.c     return ff_set_common_samplerates(ctx, formats);
ctx               153 libavfilter/af_acontrast.c     AVFilterContext *ctx = inlink->dst;
ctx               154 libavfilter/af_acontrast.c     AudioContrastContext *s    = ctx->priv;
ctx               168 libavfilter/af_acontrast.c     AVFilterContext *ctx = inlink->dst;
ctx               169 libavfilter/af_acontrast.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               170 libavfilter/af_acontrast.c     AudioContrastContext *s = ctx->priv;
ctx                83 libavfilter/af_acrossover.c static av_cold int init(AVFilterContext *ctx)
ctx                85 libavfilter/af_acrossover.c     AudioCrossoverContext *s = ctx->priv;
ctx               103 libavfilter/af_acrossover.c             av_log(ctx, AV_LOG_ERROR, "Invalid syntax for frequency[%d].\n", i);
ctx               107 libavfilter/af_acrossover.c             av_log(ctx, AV_LOG_ERROR, "Frequency %f must be positive number.\n", freq);
ctx               112 libavfilter/af_acrossover.c             av_log(ctx, AV_LOG_ERROR, "Frequency %f must be in increasing order.\n", freq);
ctx               126 libavfilter/af_acrossover.c         name = av_asprintf("out%d", ctx->nb_outputs);
ctx               131 libavfilter/af_acrossover.c         if ((ret = ff_insert_outpad(ctx, i, &pad)) < 0) {
ctx               172 libavfilter/af_acrossover.c     AVFilterContext *ctx = inlink->dst;
ctx               173 libavfilter/af_acrossover.c     AudioCrossoverContext *s = ctx->priv;
ctx               218 libavfilter/af_acrossover.c static int query_formats(AVFilterContext *ctx)
ctx               231 libavfilter/af_acrossover.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               238 libavfilter/af_acrossover.c     ret = ff_set_common_formats(ctx, formats);
ctx               245 libavfilter/af_acrossover.c     return ff_set_common_samplerates(ctx, formats);
ctx               260 libavfilter/af_acrossover.c static int filter_channels(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               262 libavfilter/af_acrossover.c     AudioCrossoverContext *s = ctx->priv;
ctx               276 libavfilter/af_acrossover.c             for (band = 0; band < ctx->nb_outputs; band++) {
ctx               281 libavfilter/af_acrossover.c                 for (f = 0; band + 1 < ctx->nb_outputs && f < s->filter_count; f++) {
ctx               286 libavfilter/af_acrossover.c                 for (f = 0; band + 1 < ctx->nb_outputs && f < s->filter_count; f++) {
ctx               303 libavfilter/af_acrossover.c     AVFilterContext *ctx = inlink->dst;
ctx               304 libavfilter/af_acrossover.c     AudioCrossoverContext *s = ctx->priv;
ctx               308 libavfilter/af_acrossover.c     for (i = 0; i < ctx->nb_outputs; i++) {
ctx               309 libavfilter/af_acrossover.c         frames[i] = ff_get_audio_buffer(ctx->outputs[i], in->nb_samples);
ctx               323 libavfilter/af_acrossover.c     ctx->internal->execute(ctx, filter_channels, NULL, NULL, FFMIN(inlink->channels,
ctx               324 libavfilter/af_acrossover.c                                                                    ff_filter_get_nb_threads(ctx)));
ctx               326 libavfilter/af_acrossover.c     for (i = 0; i < ctx->nb_outputs; i++) {
ctx               327 libavfilter/af_acrossover.c         ret = ff_filter_frame(ctx->outputs[i], frames[i]);
ctx               334 libavfilter/af_acrossover.c     for (i = 0; i < ctx->nb_outputs; i++)
ctx               342 libavfilter/af_acrossover.c static av_cold void uninit(AVFilterContext *ctx)
ctx               344 libavfilter/af_acrossover.c     AudioCrossoverContext *s = ctx->priv;
ctx               350 libavfilter/af_acrossover.c     for (i = 0; i < ctx->nb_outputs; i++)
ctx               351 libavfilter/af_acrossover.c         av_freep(&ctx->output_pads[i].name);
ctx               218 libavfilter/af_acrusher.c     AVFilterContext *ctx = inlink->dst;
ctx               219 libavfilter/af_acrusher.c     ACrusherContext *s = ctx->priv;
ctx               220 libavfilter/af_acrusher.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               266 libavfilter/af_acrusher.c static int query_formats(AVFilterContext *ctx)
ctx               279 libavfilter/af_acrusher.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               286 libavfilter/af_acrusher.c     ret = ff_set_common_formats(ctx, formats);
ctx               293 libavfilter/af_acrusher.c     return ff_set_common_samplerates(ctx, formats);
ctx               296 libavfilter/af_acrusher.c static av_cold void uninit(AVFilterContext *ctx)
ctx               298 libavfilter/af_acrusher.c     ACrusherContext *s = ctx->priv;
ctx               305 libavfilter/af_acrusher.c     AVFilterContext *ctx = inlink->dst;
ctx               306 libavfilter/af_acrusher.c     ACrusherContext *s = ctx->priv;
ctx               108 libavfilter/af_adeclick.c static int query_formats(AVFilterContext *ctx)
ctx               121 libavfilter/af_adeclick.c     ret = ff_set_common_formats(ctx, formats);
ctx               129 libavfilter/af_adeclick.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               134 libavfilter/af_adeclick.c     return ff_set_common_samplerates(ctx, formats);
ctx               139 libavfilter/af_adeclick.c     AVFilterContext *ctx = inlink->dst;
ctx               140 libavfilter/af_adeclick.c     AudioDeclickContext *s = ctx->priv;
ctx               497 libavfilter/af_adeclick.c static int filter_channel(AVFilterContext *ctx, void *arg, int ch, int nb_jobs)
ctx               499 libavfilter/af_adeclick.c     AudioDeclickContext *s = ctx->priv;
ctx               564 libavfilter/af_adeclick.c     AVFilterContext *ctx = inlink->dst;
ctx               565 libavfilter/af_adeclick.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               566 libavfilter/af_adeclick.c     AudioDeclickContext *s = ctx->priv;
ctx               581 libavfilter/af_adeclick.c     ret = ctx->internal->execute(ctx, filter_channel, &td, NULL, inlink->channels);
ctx               622 libavfilter/af_adeclick.c static int activate(AVFilterContext *ctx)
ctx               624 libavfilter/af_adeclick.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               625 libavfilter/af_adeclick.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               626 libavfilter/af_adeclick.c     AudioDeclickContext *s = ctx->priv;
ctx               645 libavfilter/af_adeclick.c             e[i] = !ctx->is_disabled;
ctx               658 libavfilter/af_adeclick.c         ff_filter_set_ready(ctx, 100);
ctx               666 libavfilter/af_adeclick.c             ff_filter_set_ready(ctx, 100);
ctx               682 libavfilter/af_adeclick.c static av_cold int init(AVFilterContext *ctx)
ctx               684 libavfilter/af_adeclick.c     AudioDeclickContext *s = ctx->priv;
ctx               686 libavfilter/af_adeclick.c     s->is_declip = !strcmp(ctx->filter->name, "adeclip");
ctx               696 libavfilter/af_adeclick.c static av_cold void uninit(AVFilterContext *ctx)
ctx               698 libavfilter/af_adeclick.c     AudioDeclickContext *s = ctx->priv;
ctx               701 libavfilter/af_adeclick.c     av_log(ctx, AV_LOG_INFO, "Detected %s in %"PRId64" of %"PRId64" samples (%g%%).\n",
ctx                64 libavfilter/af_adelay.c static int query_formats(AVFilterContext *ctx)
ctx                78 libavfilter/af_adelay.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx                85 libavfilter/af_adelay.c     ret = ff_set_common_formats(ctx, formats);
ctx                92 libavfilter/af_adelay.c     return ff_set_common_samplerates(ctx, formats);
ctx               132 libavfilter/af_adelay.c     AVFilterContext *ctx = inlink->dst;
ctx               133 libavfilter/af_adelay.c     AudioDelayContext *s = ctx->priv;
ctx               159 libavfilter/af_adelay.c                 av_log(ctx, AV_LOG_ERROR, "Invalid syntax for delay.\n");
ctx               166 libavfilter/af_adelay.c             av_log(ctx, AV_LOG_ERROR, "Delay must be non negative number.\n");
ctx               217 libavfilter/af_adelay.c     AVFilterContext *ctx = inlink->dst;
ctx               218 libavfilter/af_adelay.c     AudioDelayContext *s = ctx->priv;
ctx               222 libavfilter/af_adelay.c     if (ctx->is_disabled || !s->delays)
ctx               223 libavfilter/af_adelay.c         return ff_filter_frame(ctx->outputs[0], frame);
ctx               225 libavfilter/af_adelay.c     out_frame = ff_get_audio_buffer(ctx->outputs[0], frame->nb_samples);
ctx               246 libavfilter/af_adelay.c     return ff_filter_frame(ctx->outputs[0], out_frame);
ctx               249 libavfilter/af_adelay.c static int activate(AVFilterContext *ctx)
ctx               251 libavfilter/af_adelay.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               252 libavfilter/af_adelay.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               253 libavfilter/af_adelay.c     AudioDelayContext *s = ctx->priv;
ctx               320 libavfilter/af_adelay.c static av_cold void uninit(AVFilterContext *ctx)
ctx               322 libavfilter/af_adelay.c     AudioDelayContext *s = ctx->priv;
ctx                30 libavfilter/af_aderivative.c static int query_formats(AVFilterContext *ctx)
ctx                45 libavfilter/af_aderivative.c     formats = ff_make_format_list(strcmp(ctx->filter->name, "aintegral") ?
ctx                49 libavfilter/af_aderivative.c     ret = ff_set_common_formats(ctx, formats);
ctx                57 libavfilter/af_aderivative.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx                62 libavfilter/af_aderivative.c     return ff_set_common_samplerates(ctx, formats);
ctx               115 libavfilter/af_aderivative.c     AVFilterContext *ctx = inlink->dst;
ctx               116 libavfilter/af_aderivative.c     ADerivativeContext *s = ctx->priv;
ctx               125 libavfilter/af_aderivative.c     if (strcmp(ctx->filter->name, "aintegral"))
ctx               138 libavfilter/af_aderivative.c     AVFilterContext *ctx = inlink->dst;
ctx               139 libavfilter/af_aderivative.c     ADerivativeContext *s = ctx->priv;
ctx               140 libavfilter/af_aderivative.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               164 libavfilter/af_aderivative.c static av_cold void uninit(AVFilterContext *ctx)
ctx               166 libavfilter/af_aderivative.c     ADerivativeContext *s = ctx->priv;
ctx                43 libavfilter/af_aecho.c     void (*echo_samples)(struct AudioEchoContext *ctx, uint8_t **delayptrs,
ctx                89 libavfilter/af_aecho.c static av_cold void uninit(AVFilterContext *ctx)
ctx                91 libavfilter/af_aecho.c     AudioEchoContext *s = ctx->priv;
ctx               102 libavfilter/af_aecho.c static av_cold int init(AVFilterContext *ctx)
ctx               104 libavfilter/af_aecho.c     AudioEchoContext *s = ctx->priv;
ctx               108 libavfilter/af_aecho.c         av_log(ctx, AV_LOG_ERROR, "Missing delays and/or decays.\n");
ctx               124 libavfilter/af_aecho.c         av_log(ctx, AV_LOG_ERROR, "Number of delays %d differs from number of decays %d.\n", nb_delays, nb_decays);
ctx               130 libavfilter/af_aecho.c         av_log(ctx, AV_LOG_ERROR, "At least one decay & delay must be set.\n");
ctx               140 libavfilter/af_aecho.c             av_log(ctx, AV_LOG_ERROR, "delay[%d]: %f is out of allowed range: (0, 90000]\n", i, s->delay[i]);
ctx               144 libavfilter/af_aecho.c             av_log(ctx, AV_LOG_ERROR, "decay[%d]: %f is out of allowed range: (0, 1]\n", i, s->decay[i]);
ctx               151 libavfilter/af_aecho.c     av_log(ctx, AV_LOG_DEBUG, "nb_echoes:%d\n", s->nb_echoes);
ctx               155 libavfilter/af_aecho.c static int query_formats(AVFilterContext *ctx)
ctx               169 libavfilter/af_aecho.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               176 libavfilter/af_aecho.c     ret = ff_set_common_formats(ctx, formats);
ctx               183 libavfilter/af_aecho.c     return ff_set_common_samplerates(ctx, formats);
ctx               189 libavfilter/af_aecho.c static void echo_samples_## name ##p(AudioEchoContext *ctx,                 \
ctx               194 libavfilter/af_aecho.c     const double out_gain = ctx->out_gain;                                  \
ctx               195 libavfilter/af_aecho.c     const double in_gain = ctx->in_gain;                                    \
ctx               196 libavfilter/af_aecho.c     const int nb_echoes = ctx->nb_echoes;                                   \
ctx               197 libavfilter/af_aecho.c     const int max_samples = ctx->max_samples;                               \
ctx               207 libavfilter/af_aecho.c         index = ctx->delay_index;                                           \
ctx               214 libavfilter/af_aecho.c                 int ix = index + max_samples - ctx->samples[j];             \
ctx               216 libavfilter/af_aecho.c                 out += dbuf[ix] * ctx->decay[j];                            \
ctx               226 libavfilter/af_aecho.c     ctx->delay_index = index;                                               \
ctx               236 libavfilter/af_aecho.c     AVFilterContext *ctx = outlink->src;
ctx               237 libavfilter/af_aecho.c     AudioEchoContext *s = ctx->priv;
ctx               248 libavfilter/af_aecho.c         av_log(ctx, AV_LOG_ERROR, "Nothing to echo - missing delay samples.\n");
ctx               254 libavfilter/af_aecho.c         av_log(ctx, AV_LOG_WARNING,
ctx               277 libavfilter/af_aecho.c     AVFilterContext *ctx = inlink->dst;
ctx               278 libavfilter/af_aecho.c     AudioEchoContext *s = ctx->priv;
ctx               284 libavfilter/af_aecho.c         out_frame = ff_get_audio_buffer(ctx->outputs[0], frame->nb_samples);
ctx               300 libavfilter/af_aecho.c     return ff_filter_frame(ctx->outputs[0], out_frame);
ctx               305 libavfilter/af_aecho.c     AVFilterContext *ctx = outlink->src;
ctx               306 libavfilter/af_aecho.c     AudioEchoContext *s = ctx->priv;
ctx               329 libavfilter/af_aecho.c static int activate(AVFilterContext *ctx)
ctx               331 libavfilter/af_aecho.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               332 libavfilter/af_aecho.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               333 libavfilter/af_aecho.c     AudioEchoContext *s = ctx->priv;
ctx                86 libavfilter/af_aemphasis.c     AVFilterContext *ctx = inlink->dst;
ctx                87 libavfilter/af_aemphasis.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                88 libavfilter/af_aemphasis.c     AudioEmphasisContext *s = ctx->priv;
ctx               120 libavfilter/af_aemphasis.c static int query_formats(AVFilterContext *ctx)
ctx               133 libavfilter/af_aemphasis.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               140 libavfilter/af_aemphasis.c     ret = ff_set_common_formats(ctx, formats);
ctx               147 libavfilter/af_aemphasis.c     return ff_set_common_samplerates(ctx, formats);
ctx               205 libavfilter/af_aemphasis.c     AVFilterContext *ctx = inlink->dst;
ctx               206 libavfilter/af_aemphasis.c     AudioEmphasisContext *s = ctx->priv;
ctx               336 libavfilter/af_aemphasis.c static av_cold void uninit(AVFilterContext *ctx)
ctx               338 libavfilter/af_aemphasis.c     AudioEmphasisContext *s = ctx->priv;
ctx                59 libavfilter/af_afade.c static int query_formats(AVFilterContext *ctx)
ctx                75 libavfilter/af_afade.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx                82 libavfilter/af_afade.c     ret = ff_set_common_formats(ctx, formats);
ctx                89 libavfilter/af_afade.c     return ff_set_common_samplerates(ctx, formats);
ctx               210 libavfilter/af_afade.c     AVFilterContext *ctx = outlink->src;
ctx               211 libavfilter/af_afade.c     AudioFadeContext *s  = ctx->priv;
ctx               272 libavfilter/af_afade.c static av_cold int init(AVFilterContext *ctx)
ctx               274 libavfilter/af_afade.c     AudioFadeContext *s = ctx->priv;
ctx               445 libavfilter/af_afade.c static int activate(AVFilterContext *ctx)
ctx               447 libavfilter/af_afade.c     AudioFadeContext *s   = ctx->priv;
ctx               448 libavfilter/af_afade.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               453 libavfilter/af_afade.c     FF_FILTER_FORWARD_STATUS_BACK_ALL(outlink, ctx);
ctx               456 libavfilter/af_afade.c         ret = ff_inlink_consume_frame(ctx->inputs[1], &in);
ctx               464 libavfilter/af_afade.c         } else if (ff_inlink_acknowledge_status(ctx->inputs[1], &status, &pts)) {
ctx               465 libavfilter/af_afade.c             ff_outlink_set_status(ctx->outputs[0], status, pts);
ctx               468 libavfilter/af_afade.c             if (ff_outlink_frame_wanted(ctx->outputs[0])) {
ctx               469 libavfilter/af_afade.c                 ff_inlink_request_frame(ctx->inputs[1]);
ctx               475 libavfilter/af_afade.c     if (ff_inlink_queued_samples(ctx->inputs[0]) > s->nb_samples) {
ctx               476 libavfilter/af_afade.c         nb_samples = ff_inlink_queued_samples(ctx->inputs[0]) - s->nb_samples;
ctx               478 libavfilter/af_afade.c             ret = ff_inlink_consume_samples(ctx->inputs[0], nb_samples, nb_samples, &in);
ctx               487 libavfilter/af_afade.c     } else if (ff_inlink_queued_samples(ctx->inputs[0]) >= s->nb_samples &&
ctx               488 libavfilter/af_afade.c                ff_inlink_queued_samples(ctx->inputs[1]) >= s->nb_samples && s->cf0_eof) {
ctx               494 libavfilter/af_afade.c             ret = ff_inlink_consume_samples(ctx->inputs[0], s->nb_samples, s->nb_samples, &cf[0]);
ctx               500 libavfilter/af_afade.c             ret = ff_inlink_consume_samples(ctx->inputs[1], s->nb_samples, s->nb_samples, &cf[1]);
ctx               522 libavfilter/af_afade.c             ret = ff_inlink_consume_samples(ctx->inputs[0], s->nb_samples, s->nb_samples, &cf[0]);
ctx               542 libavfilter/af_afade.c             ret = ff_inlink_consume_samples(ctx->inputs[1], s->nb_samples, s->nb_samples, &cf[1]);
ctx               557 libavfilter/af_afade.c     } else if (ff_outlink_frame_wanted(ctx->outputs[0])) {
ctx               558 libavfilter/af_afade.c         if (!s->cf0_eof && ff_outlink_get_status(ctx->inputs[0])) {
ctx               561 libavfilter/af_afade.c         if (ff_outlink_get_status(ctx->inputs[1])) {
ctx               562 libavfilter/af_afade.c             ff_outlink_set_status(ctx->outputs[0], AVERROR_EOF, AV_NOPTS_VALUE);
ctx               566 libavfilter/af_afade.c             ff_inlink_request_frame(ctx->inputs[0]);
ctx               568 libavfilter/af_afade.c             ff_inlink_request_frame(ctx->inputs[1]);
ctx               577 libavfilter/af_afade.c     AVFilterContext *ctx = outlink->src;
ctx               578 libavfilter/af_afade.c     AudioFadeContext *s  = ctx->priv;
ctx               580 libavfilter/af_afade.c     if (ctx->inputs[0]->sample_rate != ctx->inputs[1]->sample_rate) {
ctx               581 libavfilter/af_afade.c         av_log(ctx, AV_LOG_ERROR,
ctx               584 libavfilter/af_afade.c                ctx->inputs[0]->sample_rate, ctx->inputs[1]->sample_rate);
ctx               588 libavfilter/af_afade.c     outlink->sample_rate = ctx->inputs[0]->sample_rate;
ctx               589 libavfilter/af_afade.c     outlink->time_base   = ctx->inputs[0]->time_base;
ctx               590 libavfilter/af_afade.c     outlink->channel_layout = ctx->inputs[0]->channel_layout;
ctx               591 libavfilter/af_afade.c     outlink->channels = ctx->inputs[0]->channels;
ctx               612 libavfilter/af_afftdn.c     AVFilterContext *ctx = inlink->dst;
ctx               613 libavfilter/af_afftdn.c     AudioFFTDeNoiseContext *s = ctx->priv;
ctx              1086 libavfilter/af_afftdn.c static int filter_channel(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx              1088 libavfilter/af_afftdn.c     AudioFFTDeNoiseContext *s = ctx->priv;
ctx              1160 libavfilter/af_afftdn.c     AVFilterContext *ctx = inlink->dst;
ctx              1161 libavfilter/af_afftdn.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              1162 libavfilter/af_afftdn.c     AudioFFTDeNoiseContext *s = ctx->priv;
ctx              1221 libavfilter/af_afftdn.c     ctx->internal->execute(ctx, filter_channel, &td, NULL,
ctx              1222 libavfilter/af_afftdn.c                            FFMIN(outlink->channels, ff_filter_get_nb_threads(ctx)));
ctx              1271 libavfilter/af_afftdn.c static int activate(AVFilterContext *ctx)
ctx              1273 libavfilter/af_afftdn.c     AVFilterLink *inlink = ctx->inputs[0];
ctx              1274 libavfilter/af_afftdn.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              1275 libavfilter/af_afftdn.c     AudioFFTDeNoiseContext *s = ctx->priv;
ctx              1308 libavfilter/af_afftdn.c static av_cold void uninit(AVFilterContext *ctx)
ctx              1310 libavfilter/af_afftdn.c     AudioFFTDeNoiseContext *s = ctx->priv;
ctx              1345 libavfilter/af_afftdn.c static int query_formats(AVFilterContext *ctx)
ctx              1358 libavfilter/af_afftdn.c     ret = ff_set_common_formats(ctx, formats);
ctx              1366 libavfilter/af_afftdn.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx              1371 libavfilter/af_afftdn.c     return ff_set_common_samplerates(ctx, formats);
ctx              1374 libavfilter/af_afftdn.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx              1377 libavfilter/af_afftdn.c     AudioFFTDeNoiseContext *s = ctx->priv;
ctx              1392 libavfilter/af_afftdn.c         ret = ff_filter_process_command(ctx, cmd, args, res, res_len, flags);
ctx               125 libavfilter/af_afftfilt.c     AVFilterContext *ctx = inlink->dst;
ctx               126 libavfilter/af_afftfilt.c     AFFTFiltContext *s = ctx->priv;
ctx               179 libavfilter/af_afftfilt.c                             NULL, NULL, func2_names, func2, 0, ctx);
ctx               199 libavfilter/af_afftfilt.c                             NULL, NULL, func2_names, func2, 0, ctx);
ctx               236 libavfilter/af_afftfilt.c     AVFilterContext *ctx = inlink->dst;
ctx               237 libavfilter/af_afftfilt.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               238 libavfilter/af_afftfilt.c     AFFTFiltContext *s = ctx->priv;
ctx               345 libavfilter/af_afftfilt.c static int activate(AVFilterContext *ctx)
ctx               347 libavfilter/af_afftfilt.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               348 libavfilter/af_afftfilt.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               349 libavfilter/af_afftfilt.c     AFFTFiltContext *s = ctx->priv;
ctx               377 libavfilter/af_afftfilt.c             ff_filter_set_ready(ctx, 100);
ctx               385 libavfilter/af_afftfilt.c                 ff_filter_set_ready(ctx, 100);
ctx               402 libavfilter/af_afftfilt.c static int query_formats(AVFilterContext *ctx)
ctx               415 libavfilter/af_afftfilt.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               422 libavfilter/af_afftfilt.c     ret = ff_set_common_formats(ctx, formats);
ctx               429 libavfilter/af_afftfilt.c     return ff_set_common_samplerates(ctx, formats);
ctx               432 libavfilter/af_afftfilt.c static av_cold void uninit(AVFilterContext *ctx)
ctx               434 libavfilter/af_afftfilt.c     AFFTFiltContext *s = ctx->priv;
ctx                67 libavfilter/af_afir.c static int fir_quantum(AVFilterContext *ctx, AVFrame *out, int ch, int offset)
ctx                69 libavfilter/af_afir.c     AudioFIRContext *s = ctx->priv;
ctx               185 libavfilter/af_afir.c static int fir_channel(AVFilterContext *ctx, AVFrame *out, int ch)
ctx               187 libavfilter/af_afir.c     AudioFIRContext *s = ctx->priv;
ctx               190 libavfilter/af_afir.c         fir_quantum(ctx, out, ch, offset);
ctx               196 libavfilter/af_afir.c static int fir_channels(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               203 libavfilter/af_afir.c         fir_channel(ctx, out, ch);
ctx               211 libavfilter/af_afir.c     AVFilterContext *ctx = outlink->src;
ctx               223 libavfilter/af_afir.c     ctx->internal->execute(ctx, fir_channels, out, NULL, FFMIN(outlink->channels,
ctx               224 libavfilter/af_afir.c                                                                ff_filter_get_nb_threads(ctx)));
ctx               285 libavfilter/af_afir.c static void draw_response(AVFilterContext *ctx, AVFrame *out)
ctx               287 libavfilter/af_afir.c     AudioFIRContext *s = ctx->priv;
ctx               374 libavfilter/af_afir.c static int init_segment(AVFilterContext *ctx, AudioFIRSegment *seg,
ctx               377 libavfilter/af_afir.c     AudioFIRContext *s = ctx->priv;
ctx               379 libavfilter/af_afir.c     seg->rdft  = av_calloc(ctx->inputs[0]->channels, sizeof(*seg->rdft));
ctx               380 libavfilter/af_afir.c     seg->irdft = av_calloc(ctx->inputs[0]->channels, sizeof(*seg->irdft));
ctx               392 libavfilter/af_afir.c     seg->part_index    = av_calloc(ctx->inputs[0]->channels, sizeof(*seg->part_index));
ctx               393 libavfilter/af_afir.c     seg->output_offset = av_calloc(ctx->inputs[0]->channels, sizeof(*seg->output_offset));
ctx               397 libavfilter/af_afir.c     for (int ch = 0; ch < ctx->inputs[0]->channels && part_size >= 8; ch++) {
ctx               404 libavfilter/af_afir.c     seg->sum    = ff_get_audio_buffer(ctx->inputs[0], seg->fft_length);
ctx               405 libavfilter/af_afir.c     seg->block  = ff_get_audio_buffer(ctx->inputs[0], seg->nb_partitions * seg->block_size);
ctx               406 libavfilter/af_afir.c     seg->buffer = ff_get_audio_buffer(ctx->inputs[0], seg->part_size);
ctx               407 libavfilter/af_afir.c     seg->coeff  = ff_get_audio_buffer(ctx->inputs[1 + s->selir], seg->nb_partitions * seg->coeff_size * 2);
ctx               408 libavfilter/af_afir.c     seg->input  = ff_get_audio_buffer(ctx->inputs[0], seg->input_size);
ctx               409 libavfilter/af_afir.c     seg->output = ff_get_audio_buffer(ctx->inputs[0], seg->part_size);
ctx               416 libavfilter/af_afir.c static void uninit_segment(AVFilterContext *ctx, AudioFIRSegment *seg)
ctx               418 libavfilter/af_afir.c     AudioFIRContext *s = ctx->priv;
ctx               446 libavfilter/af_afir.c static int convert_coeffs(AVFilterContext *ctx)
ctx               448 libavfilter/af_afir.c     AudioFIRContext *s = ctx->priv;
ctx               456 libavfilter/af_afir.c         s->nb_taps = ff_inlink_queued_samples(ctx->inputs[1 + s->selir]);
ctx               475 libavfilter/af_afir.c             ret = init_segment(ctx, &s->seg[i], offset, nb_partitions, part_size);
ctx               486 libavfilter/af_afir.c         ret = ff_inlink_consume_samples(ctx->inputs[1 + s->selir], s->nb_taps, s->nb_taps, &s->ir[s->selir]);
ctx               494 libavfilter/af_afir.c         draw_response(ctx, s->video);
ctx               504 libavfilter/af_afir.c         for (ch = 0; ch < ctx->inputs[1 + s->selir]->channels; ch++) {
ctx               510 libavfilter/af_afir.c         s->gain = ctx->inputs[1 + s->selir]->channels / power;
ctx               513 libavfilter/af_afir.c         for (ch = 0; ch < ctx->inputs[1 + s->selir]->channels; ch++) {
ctx               519 libavfilter/af_afir.c         s->gain = ctx->inputs[1 + s->selir]->channels / power;
ctx               522 libavfilter/af_afir.c         for (ch = 0; ch < ctx->inputs[1 + s->selir]->channels; ch++) {
ctx               535 libavfilter/af_afir.c     av_log(ctx, AV_LOG_DEBUG, "power %f, gain %f\n", power, s->gain);
ctx               536 libavfilter/af_afir.c     for (ch = 0; ch < ctx->inputs[1 + s->selir]->channels; ch++) {
ctx               542 libavfilter/af_afir.c     av_log(ctx, AV_LOG_DEBUG, "nb_taps: %d\n", cur_nb_taps);
ctx               543 libavfilter/af_afir.c     av_log(ctx, AV_LOG_DEBUG, "nb_segments: %d\n", s->nb_segments);
ctx               545 libavfilter/af_afir.c     for (ch = 0; ch < ctx->inputs[1 + s->selir]->channels; ch++) {
ctx               552 libavfilter/af_afir.c         av_log(ctx, AV_LOG_DEBUG, "channel: %d\n", ch);
ctx               559 libavfilter/af_afir.c             av_log(ctx, AV_LOG_DEBUG, "segment: %d\n", segment);
ctx               592 libavfilter/af_afir.c             av_log(ctx, AV_LOG_DEBUG, "nb_partitions: %d\n", seg->nb_partitions);
ctx               593 libavfilter/af_afir.c             av_log(ctx, AV_LOG_DEBUG, "partition size: %d\n", seg->part_size);
ctx               594 libavfilter/af_afir.c             av_log(ctx, AV_LOG_DEBUG, "block size: %d\n", seg->block_size);
ctx               595 libavfilter/af_afir.c             av_log(ctx, AV_LOG_DEBUG, "fft_length: %d\n", seg->fft_length);
ctx               596 libavfilter/af_afir.c             av_log(ctx, AV_LOG_DEBUG, "coeff_size: %d\n", seg->coeff_size);
ctx               597 libavfilter/af_afir.c             av_log(ctx, AV_LOG_DEBUG, "input_size: %d\n", seg->input_size);
ctx               598 libavfilter/af_afir.c             av_log(ctx, AV_LOG_DEBUG, "input_offset: %d\n", seg->input_offset);
ctx               609 libavfilter/af_afir.c     AVFilterContext *ctx = link->dst;
ctx               610 libavfilter/af_afir.c     AudioFIRContext *s = ctx->priv;
ctx               614 libavfilter/af_afir.c     max_nb_taps = s->max_ir_len * ctx->outputs[0]->sample_rate;
ctx               616 libavfilter/af_afir.c         av_log(ctx, AV_LOG_ERROR, "Too big number of coefficients: %d > %d.\n", nb_taps, max_nb_taps);
ctx               623 libavfilter/af_afir.c static int activate(AVFilterContext *ctx)
ctx               625 libavfilter/af_afir.c     AudioFIRContext *s = ctx->priv;
ctx               626 libavfilter/af_afir.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               631 libavfilter/af_afir.c     FF_FILTER_FORWARD_STATUS_BACK_ALL(ctx->outputs[0], ctx);
ctx               633 libavfilter/af_afir.c         FF_FILTER_FORWARD_STATUS_BACK_ALL(ctx->outputs[1], ctx);
ctx               637 libavfilter/af_afir.c         ret = check_ir(ctx->inputs[1 + s->selir], ir);
ctx               641 libavfilter/af_afir.c         if (ff_outlink_get_status(ctx->inputs[1 + s->selir]) == AVERROR_EOF)
ctx               645 libavfilter/af_afir.c             if (ff_outlink_frame_wanted(ctx->outputs[0]))
ctx               646 libavfilter/af_afir.c                 ff_inlink_request_frame(ctx->inputs[1 + s->selir]);
ctx               647 libavfilter/af_afir.c             else if (s->response && ff_outlink_frame_wanted(ctx->outputs[1]))
ctx               648 libavfilter/af_afir.c                 ff_inlink_request_frame(ctx->inputs[1 + s->selir]);
ctx               654 libavfilter/af_afir.c         ret = convert_coeffs(ctx);
ctx               659 libavfilter/af_afir.c     available = ff_inlink_queued_samples(ctx->inputs[0]);
ctx               661 libavfilter/af_afir.c     ret = ff_inlink_consume_samples(ctx->inputs[0], wanted, wanted, &in);
ctx               670 libavfilter/af_afir.c         int64_t new_pts = av_rescale_q(s->pts, ctx->inputs[0]->time_base, ctx->outputs[1]->time_base);
ctx               672 libavfilter/af_afir.c         if (ff_outlink_frame_wanted(ctx->outputs[1]) && old_pts < new_pts) {
ctx               678 libavfilter/af_afir.c             return ff_filter_frame(ctx->outputs[1], clone);
ctx               682 libavfilter/af_afir.c     if (ff_inlink_queued_samples(ctx->inputs[0]) >= s->min_part_size) {
ctx               683 libavfilter/af_afir.c         ff_filter_set_ready(ctx, 10);
ctx               687 libavfilter/af_afir.c     if (ff_inlink_acknowledge_status(ctx->inputs[0], &status, &pts)) {
ctx               689 libavfilter/af_afir.c             ff_outlink_set_status(ctx->outputs[0], status, pts);
ctx               691 libavfilter/af_afir.c                 ff_outlink_set_status(ctx->outputs[1], status, pts);
ctx               696 libavfilter/af_afir.c     if (ff_outlink_frame_wanted(ctx->outputs[0]) &&
ctx               697 libavfilter/af_afir.c         !ff_outlink_get_status(ctx->inputs[0])) {
ctx               698 libavfilter/af_afir.c         ff_inlink_request_frame(ctx->inputs[0]);
ctx               703 libavfilter/af_afir.c         ff_outlink_frame_wanted(ctx->outputs[1]) &&
ctx               704 libavfilter/af_afir.c         !ff_outlink_get_status(ctx->inputs[0])) {
ctx               705 libavfilter/af_afir.c         ff_inlink_request_frame(ctx->inputs[0]);
ctx               712 libavfilter/af_afir.c static int query_formats(AVFilterContext *ctx)
ctx               714 libavfilter/af_afir.c     AudioFIRContext *s = ctx->priv;
ctx               728 libavfilter/af_afir.c         AVFilterLink *videolink = ctx->outputs[1];
ctx               739 libavfilter/af_afir.c         ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               749 libavfilter/af_afir.c         if ((ret = ff_channel_layouts_ref(layouts, &ctx->inputs[0]->out_channel_layouts)) < 0)
ctx               751 libavfilter/af_afir.c         if ((ret = ff_channel_layouts_ref(layouts, &ctx->outputs[0]->in_channel_layouts)) < 0)
ctx               753 libavfilter/af_afir.c         for (int i = 1; i < ctx->nb_inputs; i++) {
ctx               754 libavfilter/af_afir.c             if ((ret = ff_channel_layouts_ref(mono, &ctx->inputs[i]->out_channel_layouts)) < 0)
ctx               760 libavfilter/af_afir.c     if ((ret = ff_set_common_formats(ctx, formats)) < 0)
ctx               764 libavfilter/af_afir.c     return ff_set_common_samplerates(ctx, formats);
ctx               769 libavfilter/af_afir.c     AVFilterContext *ctx = outlink->src;
ctx               770 libavfilter/af_afir.c     AudioFIRContext *s = ctx->priv;
ctx               772 libavfilter/af_afir.c     s->one2many = ctx->inputs[1 + s->selir]->channels == 1;
ctx               773 libavfilter/af_afir.c     outlink->sample_rate = ctx->inputs[0]->sample_rate;
ctx               774 libavfilter/af_afir.c     outlink->time_base   = ctx->inputs[0]->time_base;
ctx               775 libavfilter/af_afir.c     outlink->channel_layout = ctx->inputs[0]->channel_layout;
ctx               776 libavfilter/af_afir.c     outlink->channels = ctx->inputs[0]->channels;
ctx               779 libavfilter/af_afir.c     s->nb_coef_channels = ctx->inputs[1 + s->selir]->channels;
ctx               785 libavfilter/af_afir.c static av_cold void uninit(AVFilterContext *ctx)
ctx               787 libavfilter/af_afir.c     AudioFIRContext *s = ctx->priv;
ctx               790 libavfilter/af_afir.c         uninit_segment(ctx, &s->seg[i]);
ctx               799 libavfilter/af_afir.c     for (int i = 0; i < ctx->nb_inputs; i++)
ctx               800 libavfilter/af_afir.c         av_freep(&ctx->input_pads[i].name);
ctx               802 libavfilter/af_afir.c     for (int i = 0; i < ctx->nb_outputs; i++)
ctx               803 libavfilter/af_afir.c         av_freep(&ctx->output_pads[i].name);
ctx               809 libavfilter/af_afir.c     AVFilterContext *ctx = outlink->src;
ctx               810 libavfilter/af_afir.c     AudioFIRContext *s = ctx->priv;
ctx               834 libavfilter/af_afir.c static av_cold int init(AVFilterContext *ctx)
ctx               836 libavfilter/af_afir.c     AudioFIRContext *s = ctx->priv;
ctx               848 libavfilter/af_afir.c     ret = ff_insert_inpad(ctx, 0, &pad);
ctx               863 libavfilter/af_afir.c         ret = ff_insert_inpad(ctx, n + 1, &pad);
ctx               879 libavfilter/af_afir.c     ret = ff_insert_outpad(ctx, 0, &pad);
ctx               894 libavfilter/af_afir.c         ret = ff_insert_outpad(ctx, 1, &vpad);
ctx               910 libavfilter/af_afir.c static int process_command(AVFilterContext *ctx,
ctx               917 libavfilter/af_afir.c     AudioFIRContext *s = ctx->priv;
ctx               919 libavfilter/af_afir.c     int ret = ff_filter_process_command(ctx, cmd, arg, res, res_len, flags);
ctx                69 libavfilter/af_aformat.c         av_log(ctx, AV_LOG_WARNING, "This syntax is deprecated, use '|' to "\
ctx                82 libavfilter/af_aformat.c             av_log(ctx, AV_LOG_ERROR, "Error parsing " desc ": %s.\n", cur);\
ctx               100 libavfilter/af_aformat.c static av_cold int init(AVFilterContext *ctx)
ctx               102 libavfilter/af_aformat.c     AFormatContext *s = ctx->priv;
ctx               115 libavfilter/af_aformat.c static int query_formats(AVFilterContext *ctx)
ctx               117 libavfilter/af_aformat.c     AFormatContext *s = ctx->priv;
ctx               120 libavfilter/af_aformat.c     ret = ff_set_common_formats(ctx, s->formats ? s->formats :
ctx               124 libavfilter/af_aformat.c     ret = ff_set_common_samplerates(ctx, s->sample_rates ? s->sample_rates :
ctx               128 libavfilter/af_aformat.c     return ff_set_common_channel_layouts(ctx, s->channel_layouts ? s->channel_layouts :
ctx                92 libavfilter/af_agate.c     AVFilterContext *ctx = inlink->dst;
ctx                93 libavfilter/af_agate.c     AudioGateContext *s = ctx->priv;
ctx               190 libavfilter/af_agate.c static int query_formats(AVFilterContext *ctx)
ctx               198 libavfilter/af_agate.c     ret = ff_set_common_formats(ctx, formats);
ctx               205 libavfilter/af_agate.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               213 libavfilter/af_agate.c     return ff_set_common_samplerates(ctx, formats);
ctx               219 libavfilter/af_agate.c     AVFilterContext *ctx = inlink->dst;
ctx               220 libavfilter/af_agate.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               221 libavfilter/af_agate.c     AudioGateContext *s = ctx->priv;
ctx               280 libavfilter/af_agate.c static int activate(AVFilterContext *ctx)
ctx               282 libavfilter/af_agate.c     AudioGateContext *s = ctx->priv;
ctx               287 libavfilter/af_agate.c     FF_FILTER_FORWARD_STATUS_BACK_ALL(ctx->outputs[0], ctx);
ctx               288 libavfilter/af_agate.c     if ((ret = ff_inlink_consume_frame(ctx->inputs[0], &in[0])) > 0) {
ctx               295 libavfilter/af_agate.c     if ((ret = ff_inlink_consume_frame(ctx->inputs[1], &in[1])) > 0) {
ctx               305 libavfilter/af_agate.c         out = ff_get_audio_buffer(ctx->outputs[0], nb_samples);
ctx               309 libavfilter/af_agate.c             in[i] = ff_get_audio_buffer(ctx->inputs[i], nb_samples);
ctx               321 libavfilter/af_agate.c         s->pts += av_rescale_q(nb_samples, (AVRational){1, ctx->outputs[0]->sample_rate}, ctx->outputs[0]->time_base);
ctx               326 libavfilter/af_agate.c              ctx->inputs[0], ctx->inputs[1]);
ctx               331 libavfilter/af_agate.c         ret = ff_filter_frame(ctx->outputs[0], out);
ctx               335 libavfilter/af_agate.c     FF_FILTER_FORWARD_STATUS(ctx->inputs[0], ctx->outputs[0]);
ctx               336 libavfilter/af_agate.c     FF_FILTER_FORWARD_STATUS(ctx->inputs[1], ctx->outputs[0]);
ctx               337 libavfilter/af_agate.c     if (ff_outlink_frame_wanted(ctx->outputs[0])) {
ctx               339 libavfilter/af_agate.c             ff_inlink_request_frame(ctx->inputs[0]);
ctx               341 libavfilter/af_agate.c             ff_inlink_request_frame(ctx->inputs[1]);
ctx               346 libavfilter/af_agate.c static int scquery_formats(AVFilterContext *ctx)
ctx               356 libavfilter/af_agate.c     if (!ctx->inputs[0]->in_channel_layouts ||
ctx               357 libavfilter/af_agate.c         !ctx->inputs[0]->in_channel_layouts->nb_channel_layouts) {
ctx               358 libavfilter/af_agate.c         av_log(ctx, AV_LOG_WARNING,
ctx               363 libavfilter/af_agate.c     if ((ret = ff_add_channel_layout(&layouts, ctx->inputs[0]->in_channel_layouts->channel_layouts[0])) < 0 ||
ctx               364 libavfilter/af_agate.c         (ret = ff_channel_layouts_ref(layouts, &ctx->outputs[0]->in_channel_layouts)) < 0)
ctx               369 libavfilter/af_agate.c         if ((ret = ff_channel_layouts_ref(layouts, &ctx->inputs[i]->out_channel_layouts)) < 0)
ctx               374 libavfilter/af_agate.c     if ((ret = ff_set_common_formats(ctx, formats)) < 0)
ctx               378 libavfilter/af_agate.c     return ff_set_common_samplerates(ctx, formats);
ctx               383 libavfilter/af_agate.c     AVFilterContext *ctx = outlink->src;
ctx               384 libavfilter/af_agate.c     AudioGateContext *s = ctx->priv;
ctx               386 libavfilter/af_agate.c     if (ctx->inputs[0]->sample_rate != ctx->inputs[1]->sample_rate) {
ctx               387 libavfilter/af_agate.c         av_log(ctx, AV_LOG_ERROR,
ctx               390 libavfilter/af_agate.c                ctx->inputs[0]->sample_rate, ctx->inputs[1]->sample_rate);
ctx               394 libavfilter/af_agate.c     outlink->sample_rate = ctx->inputs[0]->sample_rate;
ctx               395 libavfilter/af_agate.c     outlink->time_base   = ctx->inputs[0]->time_base;
ctx               396 libavfilter/af_agate.c     outlink->channel_layout = ctx->inputs[0]->channel_layout;
ctx               397 libavfilter/af_agate.c     outlink->channels = ctx->inputs[0]->channels;
ctx               399 libavfilter/af_agate.c     s->fifo[0] = av_audio_fifo_alloc(ctx->inputs[0]->format, ctx->inputs[0]->channels, 1024);
ctx               400 libavfilter/af_agate.c     s->fifo[1] = av_audio_fifo_alloc(ctx->inputs[1]->format, ctx->inputs[1]->channels, 1024);
ctx               405 libavfilter/af_agate.c     agate_config_input(ctx->inputs[0]);
ctx               410 libavfilter/af_agate.c static av_cold void uninit(AVFilterContext *ctx)
ctx               412 libavfilter/af_agate.c     AudioGateContext *s = ctx->priv;
ctx                76 libavfilter/af_aiir.c     int (*iir_channel)(AVFilterContext *ctx, void *arg, int ch, int nb_jobs);
ctx                79 libavfilter/af_aiir.c static int query_formats(AVFilterContext *ctx)
ctx                81 libavfilter/af_aiir.c     AudioIIRContext *s = ctx->priv;
ctx                95 libavfilter/af_aiir.c         AVFilterLink *videolink = ctx->outputs[1];
ctx               105 libavfilter/af_aiir.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               113 libavfilter/af_aiir.c     ret = ff_set_common_formats(ctx, formats);
ctx               120 libavfilter/af_aiir.c     return ff_set_common_samplerates(ctx, formats);
ctx               124 libavfilter/af_aiir.c static int iir_ch_## name(AVFilterContext *ctx, void *arg, int ch, int nb_jobs)  \
ctx               126 libavfilter/af_aiir.c     AudioIIRContext *s = ctx->priv;                                     \
ctx               180 libavfilter/af_aiir.c static int iir_ch_serial_## name(AVFilterContext *ctx, void *arg, int ch, int nb_jobs)  \
ctx               182 libavfilter/af_aiir.c     AudioIIRContext *s = ctx->priv;                                     \
ctx               256 libavfilter/af_aiir.c static int read_gains(AVFilterContext *ctx, char *item_str, int nb_items)
ctx               258 libavfilter/af_aiir.c     AudioIIRContext *s = ctx->priv;
ctx               276 libavfilter/af_aiir.c             av_log(ctx, AV_LOG_ERROR, "Invalid gains supplied: %s\n", arg);
ctx               289 libavfilter/af_aiir.c static int read_tf_coefficients(AVFilterContext *ctx, char *item_str, int nb_items, double *dst)
ctx               303 libavfilter/af_aiir.c             av_log(ctx, AV_LOG_ERROR, "Invalid coefficients supplied: %s\n", arg);
ctx               314 libavfilter/af_aiir.c static int read_zp_coefficients(AVFilterContext *ctx, char *item_str, int nb_items, double *dst, const char *format)
ctx               328 libavfilter/af_aiir.c             av_log(ctx, AV_LOG_ERROR, "Invalid coefficients supplied: %s\n", arg);
ctx               341 libavfilter/af_aiir.c static int read_channels(AVFilterContext *ctx, int channels, uint8_t *item_str, int ab)
ctx               343 libavfilter/af_aiir.c     AudioIIRContext *s = ctx->priv;
ctx               372 libavfilter/af_aiir.c             ret = read_zp_coefficients(ctx, arg, iir->nb_ab[ab], iir->ab[ab], format[s->format]);
ctx               374 libavfilter/af_aiir.c             ret = read_tf_coefficients(ctx, arg, iir->nb_ab[ab], iir->ab[ab]);
ctx               394 libavfilter/af_aiir.c static int expand(AVFilterContext *ctx, double *pz, int n, double *coefs)
ctx               412 libavfilter/af_aiir.c             av_log(ctx, AV_LOG_ERROR, "coefs: %f of z^%d is not real; poles/zeros are not complex conjugates.\n",
ctx               421 libavfilter/af_aiir.c static void normalize_coeffs(AVFilterContext *ctx, int ch)
ctx               423 libavfilter/af_aiir.c     AudioIIRContext *s = ctx->priv;
ctx               449 libavfilter/af_aiir.c static int convert_zp2tf(AVFilterContext *ctx, int channels)
ctx               451 libavfilter/af_aiir.c     AudioIIRContext *s = ctx->priv;
ctx               465 libavfilter/af_aiir.c         ret = expand(ctx, iir->ab[0], iir->nb_ab[0], botc);
ctx               470 libavfilter/af_aiir.c         ret = expand(ctx, iir->ab[1], iir->nb_ab[1], topc);
ctx               485 libavfilter/af_aiir.c         normalize_coeffs(ctx, ch);
ctx               497 libavfilter/af_aiir.c static int decompose_zp2biquads(AVFilterContext *ctx, int channels)
ctx               499 libavfilter/af_aiir.c     AudioIIRContext *s = ctx->priv;
ctx               547 libavfilter/af_aiir.c             av_log(ctx, AV_LOG_VERBOSE, "outmost_pole is %d.%d\n", outmost_pole.a, outmost_pole.b);
ctx               577 libavfilter/af_aiir.c             av_log(ctx, AV_LOG_VERBOSE, "nearest_zero is %d.%d\n", nearest_zero.a, nearest_zero.b);
ctx               602 libavfilter/af_aiir.c             ret = expand(ctx, zeros, 2, b);
ctx               606 libavfilter/af_aiir.c             ret = expand(ctx, poles, 2, a);
ctx               633 libavfilter/af_aiir.c                 av_log(ctx, AV_LOG_VERBOSE, "factor=%f\n", factor);
ctx               644 libavfilter/af_aiir.c             av_log(ctx, AV_LOG_VERBOSE, "a=%f %f %f:b=%f %f %f\n",
ctx               659 libavfilter/af_aiir.c static void convert_pr2zp(AVFilterContext *ctx, int channels)
ctx               661 libavfilter/af_aiir.c     AudioIIRContext *s = ctx->priv;
ctx               686 libavfilter/af_aiir.c static void convert_sp2zp(AVFilterContext *ctx, int channels)
ctx               688 libavfilter/af_aiir.c     AudioIIRContext *s = ctx->priv;
ctx               719 libavfilter/af_aiir.c static void convert_pd2zp(AVFilterContext *ctx, int channels)
ctx               721 libavfilter/af_aiir.c     AudioIIRContext *s = ctx->priv;
ctx               746 libavfilter/af_aiir.c static void check_stability(AVFilterContext *ctx, int channels)
ctx               748 libavfilter/af_aiir.c     AudioIIRContext *s = ctx->priv;
ctx               758 libavfilter/af_aiir.c                 av_log(ctx, AV_LOG_WARNING, "pole %d at channel %d is unstable\n", n, ch);
ctx               866 libavfilter/af_aiir.c static void draw_response(AVFilterContext *ctx, AVFrame *out, int sample_rate)
ctx               868 libavfilter/af_aiir.c     AudioIIRContext *s = ctx->priv;
ctx               985 libavfilter/af_aiir.c     AVFilterContext *ctx = outlink->src;
ctx               986 libavfilter/af_aiir.c     AudioIIRContext *s = ctx->priv;
ctx               987 libavfilter/af_aiir.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               995 libavfilter/af_aiir.c     ret = read_gains(ctx, s->g_str, inlink->channels);
ctx               999 libavfilter/af_aiir.c     ret = read_channels(ctx, inlink->channels, s->a_str, 0);
ctx              1003 libavfilter/af_aiir.c     ret = read_channels(ctx, inlink->channels, s->b_str, 1);
ctx              1008 libavfilter/af_aiir.c         convert_pr2zp(ctx, inlink->channels);
ctx              1010 libavfilter/af_aiir.c         convert_pd2zp(ctx, inlink->channels);
ctx              1012 libavfilter/af_aiir.c         convert_sp2zp(ctx, inlink->channels);
ctx              1015 libavfilter/af_aiir.c         check_stability(ctx, inlink->channels);
ctx              1020 libavfilter/af_aiir.c         s->video = ff_get_video_buffer(ctx->outputs[1], s->w, s->h);
ctx              1024 libavfilter/af_aiir.c         draw_response(ctx, s->video, inlink->sample_rate);
ctx              1028 libavfilter/af_aiir.c         av_log(ctx, AV_LOG_WARNING, "tf coefficients format is not recommended for too high number of zeros/poles.\n");
ctx              1031 libavfilter/af_aiir.c         av_log(ctx, AV_LOG_WARNING, "Direct processsing is not recommended for zp coefficients format.\n");
ctx              1033 libavfilter/af_aiir.c         ret = convert_zp2tf(ctx, inlink->channels);
ctx              1037 libavfilter/af_aiir.c         av_log(ctx, AV_LOG_ERROR, "Serial cascading is not implemented for transfer function.\n");
ctx              1041 libavfilter/af_aiir.c             av_log(ctx, AV_LOG_WARNING, "Serial cascading is not recommended for i16 precision.\n");
ctx              1043 libavfilter/af_aiir.c         ret = decompose_zp2biquads(ctx, inlink->channels);
ctx              1060 libavfilter/af_aiir.c         normalize_coeffs(ctx, ch);
ctx              1075 libavfilter/af_aiir.c     AVFilterContext *ctx = inlink->dst;
ctx              1076 libavfilter/af_aiir.c     AudioIIRContext *s = ctx->priv;
ctx              1077 libavfilter/af_aiir.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              1095 libavfilter/af_aiir.c     ctx->internal->execute(ctx, s->iir_channel, &td, NULL, outlink->channels);
ctx              1099 libavfilter/af_aiir.c             av_log(ctx, AV_LOG_WARNING, "Channel %d clipping %d times. Please reduce gain.\n",
ctx              1108 libavfilter/af_aiir.c         AVFilterLink *outlink = ctx->outputs[1];
ctx              1110 libavfilter/af_aiir.c         int64_t new_pts = av_rescale_q(out->pts, ctx->inputs[0]->time_base, outlink->time_base);
ctx              1130 libavfilter/af_aiir.c     AVFilterContext *ctx = outlink->src;
ctx              1131 libavfilter/af_aiir.c     AudioIIRContext *s = ctx->priv;
ctx              1142 libavfilter/af_aiir.c static av_cold int init(AVFilterContext *ctx)
ctx              1144 libavfilter/af_aiir.c     AudioIIRContext *s = ctx->priv;
ctx              1149 libavfilter/af_aiir.c         av_log(ctx, AV_LOG_ERROR, "Valid coefficients are mandatory.\n");
ctx              1170 libavfilter/af_aiir.c     ret = ff_insert_outpad(ctx, 0, &pad);
ctx              1183 libavfilter/af_aiir.c         ret = ff_insert_outpad(ctx, 1, &vpad);
ctx              1191 libavfilter/af_aiir.c static av_cold void uninit(AVFilterContext *ctx)
ctx              1193 libavfilter/af_aiir.c     AudioIIRContext *s = ctx->priv;
ctx              1208 libavfilter/af_aiir.c     av_freep(&ctx->output_pads[0].name);
ctx              1210 libavfilter/af_aiir.c         av_freep(&ctx->output_pads[1].name);
ctx                83 libavfilter/af_alimiter.c static av_cold int init(AVFilterContext *ctx)
ctx                85 libavfilter/af_alimiter.c     AudioLimiterContext *s = ctx->priv;
ctx               117 libavfilter/af_alimiter.c     AVFilterContext *ctx = inlink->dst;
ctx               118 libavfilter/af_alimiter.c     AudioLimiterContext *s = ctx->priv;
ctx               119 libavfilter/af_alimiter.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               280 libavfilter/af_alimiter.c static int query_formats(AVFilterContext *ctx)
ctx               293 libavfilter/af_alimiter.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               300 libavfilter/af_alimiter.c     ret = ff_set_common_formats(ctx, formats);
ctx               307 libavfilter/af_alimiter.c     return ff_set_common_samplerates(ctx, formats);
ctx               312 libavfilter/af_alimiter.c     AVFilterContext *ctx = inlink->dst;
ctx               313 libavfilter/af_alimiter.c     AudioLimiterContext *s = ctx->priv;
ctx               331 libavfilter/af_alimiter.c         av_log(ctx, AV_LOG_ERROR, "Attack is too small.\n");
ctx               338 libavfilter/af_alimiter.c static av_cold void uninit(AVFilterContext *ctx)
ctx               340 libavfilter/af_alimiter.c     AudioLimiterContext *s = ctx->priv;
ctx                58 libavfilter/af_amerge.c static av_cold void uninit(AVFilterContext *ctx)
ctx                60 libavfilter/af_amerge.c     AMergeContext *s = ctx->priv;
ctx                64 libavfilter/af_amerge.c         if (ctx->input_pads)
ctx                65 libavfilter/af_amerge.c             av_freep(&ctx->input_pads[i].name);
ctx                70 libavfilter/af_amerge.c static int query_formats(AVFilterContext *ctx)
ctx                72 libavfilter/af_amerge.c     AMergeContext *s = ctx->priv;
ctx                79 libavfilter/af_amerge.c         if (!ctx->inputs[i]->in_channel_layouts ||
ctx                80 libavfilter/af_amerge.c             !ctx->inputs[i]->in_channel_layouts->nb_channel_layouts) {
ctx                81 libavfilter/af_amerge.c             av_log(ctx, AV_LOG_WARNING,
ctx                85 libavfilter/af_amerge.c         inlayout[i] = ctx->inputs[i]->in_channel_layouts->channel_layouts[0];
ctx                86 libavfilter/af_amerge.c         if (ctx->inputs[i]->in_channel_layouts->nb_channel_layouts > 1) {
ctx                89 libavfilter/af_amerge.c             av_log(ctx, AV_LOG_INFO, "Using \"%s\" for input %d\n", buf, i + 1);
ctx               103 libavfilter/af_amerge.c         av_log(ctx, AV_LOG_ERROR, "Too many channels (max %d)\n", SWR_CH_MAX);
ctx               107 libavfilter/af_amerge.c         av_log(ctx, AV_LOG_WARNING,
ctx               128 libavfilter/af_amerge.c     if ((ret = ff_set_common_formats(ctx, formats)) < 0)
ctx               134 libavfilter/af_amerge.c         if ((ret = ff_channel_layouts_ref(layouts, &ctx->inputs[i]->out_channel_layouts)) < 0)
ctx               140 libavfilter/af_amerge.c     if ((ret = ff_channel_layouts_ref(layouts, &ctx->outputs[0]->in_channel_layouts)) < 0)
ctx               143 libavfilter/af_amerge.c     return ff_set_common_samplerates(ctx, ff_all_samplerates());
ctx               148 libavfilter/af_amerge.c     AVFilterContext *ctx = outlink->src;
ctx               149 libavfilter/af_amerge.c     AMergeContext *s = ctx->priv;
ctx               154 libavfilter/af_amerge.c         if (ctx->inputs[i]->sample_rate != ctx->inputs[0]->sample_rate) {
ctx               155 libavfilter/af_amerge.c             av_log(ctx, AV_LOG_ERROR,
ctx               158 libavfilter/af_amerge.c                    ctx->inputs[i]->sample_rate, i, ctx->inputs[0]->sample_rate);
ctx               162 libavfilter/af_amerge.c     s->bps = av_get_bytes_per_sample(ctx->outputs[0]->format);
ctx               163 libavfilter/af_amerge.c     outlink->sample_rate = ctx->inputs[0]->sample_rate;
ctx               164 libavfilter/af_amerge.c     outlink->time_base   = ctx->inputs[0]->time_base;
ctx               169 libavfilter/af_amerge.c         av_bprint_channel_layout(&bp, -1, ctx->inputs[i]->channel_layout);
ctx               172 libavfilter/af_amerge.c     av_bprint_channel_layout(&bp, -1, ctx->outputs[0]->channel_layout);
ctx               173 libavfilter/af_amerge.c     av_log(ctx, AV_LOG_VERBOSE, "%s\n", bp.str);
ctx               222 libavfilter/af_amerge.c static int try_push_frame(AVFilterContext *ctx, int nb_samples)
ctx               224 libavfilter/af_amerge.c     AMergeContext *s = ctx->priv;
ctx               225 libavfilter/af_amerge.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               230 libavfilter/af_amerge.c     for (i = 0; i < ctx->nb_inputs; i++) {
ctx               231 libavfilter/af_amerge.c         ret = ff_inlink_consume_samples(ctx->inputs[i], nb_samples, nb_samples, &inbuf[i]);
ctx               239 libavfilter/af_amerge.c     outbuf = ff_get_audio_buffer(ctx->outputs[0], nb_samples);
ctx               274 libavfilter/af_amerge.c     return ff_filter_frame(ctx->outputs[0], outbuf);
ctx               277 libavfilter/af_amerge.c static int activate(AVFilterContext *ctx)
ctx               283 libavfilter/af_amerge.c     FF_FILTER_FORWARD_STATUS_BACK_ALL(ctx->outputs[0], ctx);
ctx               285 libavfilter/af_amerge.c     nb_samples = ff_inlink_queued_samples(ctx->inputs[0]);
ctx               286 libavfilter/af_amerge.c     for (i = 1; i < ctx->nb_inputs && nb_samples > 0; i++) {
ctx               287 libavfilter/af_amerge.c         nb_samples = FFMIN(ff_inlink_queued_samples(ctx->inputs[i]), nb_samples);
ctx               291 libavfilter/af_amerge.c         ret = try_push_frame(ctx, nb_samples);
ctx               296 libavfilter/af_amerge.c     for (i = 0; i < ctx->nb_inputs; i++) {
ctx               297 libavfilter/af_amerge.c         if (ff_inlink_queued_samples(ctx->inputs[i]))
ctx               300 libavfilter/af_amerge.c         if (ff_inlink_acknowledge_status(ctx->inputs[i], &status, &pts)) {
ctx               301 libavfilter/af_amerge.c             ff_outlink_set_status(ctx->outputs[0], status, pts);
ctx               303 libavfilter/af_amerge.c         } else if (ff_outlink_frame_wanted(ctx->outputs[0])) {
ctx               304 libavfilter/af_amerge.c             ff_inlink_request_frame(ctx->inputs[i]);
ctx               312 libavfilter/af_amerge.c static av_cold int init(AVFilterContext *ctx)
ctx               314 libavfilter/af_amerge.c     AMergeContext *s = ctx->priv;
ctx               328 libavfilter/af_amerge.c         if ((ret = ff_insert_inpad(ctx, i, &pad)) < 0) {
ctx               239 libavfilter/af_amix.c     AVFilterContext *ctx = outlink->src;
ctx               240 libavfilter/af_amix.c     MixContext *s      = ctx->priv;
ctx               280 libavfilter/af_amix.c     av_log(ctx, AV_LOG_VERBOSE,
ctx               292 libavfilter/af_amix.c     AVFilterContext *ctx = outlink->src;
ctx               293 libavfilter/af_amix.c     MixContext      *s = ctx->priv;
ctx               384 libavfilter/af_amix.c static int request_samples(AVFilterContext *ctx, int min_samples)
ctx               386 libavfilter/af_amix.c     MixContext *s = ctx->priv;
ctx               397 libavfilter/af_amix.c         ff_inlink_request_frame(ctx->inputs[i]);
ctx               399 libavfilter/af_amix.c     return output_frame(ctx->outputs[0]);
ctx               423 libavfilter/af_amix.c static int activate(AVFilterContext *ctx)
ctx               425 libavfilter/af_amix.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               426 libavfilter/af_amix.c     MixContext *s = ctx->priv;
ctx               430 libavfilter/af_amix.c     FF_FILTER_FORWARD_STATUS_BACK_ALL(outlink, ctx);
ctx               433 libavfilter/af_amix.c         AVFilterLink *inlink = ctx->inputs[i];
ctx               435 libavfilter/af_amix.c         if ((ret = ff_inlink_consume_frame(ctx->inputs[i], &buf)) > 0) {
ctx               465 libavfilter/af_amix.c         if (ff_inlink_acknowledge_status(ctx->inputs[i], &status, &pts)) {
ctx               492 libavfilter/af_amix.c             return request_samples(ctx, 1);
ctx               495 libavfilter/af_amix.c             ff_inlink_request_frame(ctx->inputs[0]);
ctx               502 libavfilter/af_amix.c         return request_samples(ctx, wanted_samples);
ctx               508 libavfilter/af_amix.c static void parse_weights(AVFilterContext *ctx)
ctx               510 libavfilter/af_amix.c     MixContext *s = ctx->priv;
ctx               535 libavfilter/af_amix.c static av_cold int init(AVFilterContext *ctx)
ctx               537 libavfilter/af_amix.c     MixContext *s = ctx->priv;
ctx               548 libavfilter/af_amix.c         if ((ret = ff_insert_inpad(ctx, i, &pad)) < 0) {
ctx               562 libavfilter/af_amix.c     parse_weights(ctx);
ctx               567 libavfilter/af_amix.c static av_cold void uninit(AVFilterContext *ctx)
ctx               570 libavfilter/af_amix.c     MixContext *s = ctx->priv;
ctx               585 libavfilter/af_amix.c     for (i = 0; i < ctx->nb_inputs; i++)
ctx               586 libavfilter/af_amix.c         av_freep(&ctx->input_pads[i].name);
ctx               589 libavfilter/af_amix.c static int query_formats(AVFilterContext *ctx)
ctx               605 libavfilter/af_amix.c         (ret = ff_set_common_formats        (ctx, formats))          < 0 ||
ctx               606 libavfilter/af_amix.c         (ret = ff_set_common_channel_layouts(ctx, layouts))          < 0 ||
ctx               607 libavfilter/af_amix.c         (ret = ff_set_common_samplerates(ctx, ff_all_samplerates())) < 0)
ctx               617 libavfilter/af_amix.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               620 libavfilter/af_amix.c     MixContext *s = ctx->priv;
ctx               623 libavfilter/af_amix.c     ret = ff_filter_process_command(ctx, cmd, args, res, res_len, flags);
ctx               627 libavfilter/af_amix.c     parse_weights(ctx);
ctx                44 libavfilter/af_amultiply.c static int query_formats(AVFilterContext *ctx)
ctx                58 libavfilter/af_amultiply.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx                65 libavfilter/af_amultiply.c     ret = ff_set_common_formats(ctx, formats);
ctx                72 libavfilter/af_amultiply.c     return ff_set_common_samplerates(ctx, formats);
ctx                75 libavfilter/af_amultiply.c static int activate(AVFilterContext *ctx)
ctx                77 libavfilter/af_amultiply.c     AudioMultiplyContext *s = ctx->priv;
ctx                82 libavfilter/af_amultiply.c     FF_FILTER_FORWARD_STATUS_BACK_ALL(ctx->outputs[0], ctx);
ctx                84 libavfilter/af_amultiply.c     nb_samples = FFMIN(ff_inlink_queued_samples(ctx->inputs[0]),
ctx                85 libavfilter/af_amultiply.c                        ff_inlink_queued_samples(ctx->inputs[1]));
ctx                86 libavfilter/af_amultiply.c     for (i = 0; i < ctx->nb_inputs && nb_samples > 0; i++) {
ctx                90 libavfilter/af_amultiply.c         if (ff_inlink_check_available_samples(ctx->inputs[i], nb_samples) > 0) {
ctx                91 libavfilter/af_amultiply.c             ret = ff_inlink_consume_samples(ctx->inputs[i], nb_samples, nb_samples, &s->frames[i]);
ctx               101 libavfilter/af_amultiply.c         if (av_sample_fmt_is_planar(ctx->inputs[0]->format))
ctx               106 libavfilter/af_amultiply.c         out = ff_get_audio_buffer(ctx->outputs[0], s->frames[0]->nb_samples);
ctx               112 libavfilter/af_amultiply.c         if (av_get_packed_sample_fmt(ctx->inputs[0]->format) == AV_SAMPLE_FMT_FLT) {
ctx               132 libavfilter/af_amultiply.c         ret = ff_filter_frame(ctx->outputs[0], out);
ctx               139 libavfilter/af_amultiply.c             if (ff_inlink_acknowledge_status(ctx->inputs[i], &status, &pts)) {
ctx               140 libavfilter/af_amultiply.c                 ff_outlink_set_status(ctx->outputs[0], status, pts);
ctx               146 libavfilter/af_amultiply.c     if (ff_outlink_frame_wanted(ctx->outputs[0])) {
ctx               148 libavfilter/af_amultiply.c             if (ff_inlink_queued_samples(ctx->inputs[i]) > 0)
ctx               150 libavfilter/af_amultiply.c             ff_inlink_request_frame(ctx->inputs[i]);
ctx               159 libavfilter/af_amultiply.c     AVFilterContext *ctx = outlink->src;
ctx               160 libavfilter/af_amultiply.c     AudioMultiplyContext *s = ctx->priv;
ctx               161 libavfilter/af_amultiply.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               170 libavfilter/af_amultiply.c static av_cold int init(AVFilterContext *ctx)
ctx               172 libavfilter/af_amultiply.c     AudioMultiplyContext *s = ctx->priv;
ctx               181 libavfilter/af_amultiply.c static av_cold void uninit(AVFilterContext *ctx)
ctx               183 libavfilter/af_amultiply.c     AudioMultiplyContext *s = ctx->priv;
ctx                94 libavfilter/af_anequalizer.c static void draw_curves(AVFilterContext *ctx, AVFilterLink *inlink, AVFrame *out)
ctx                96 libavfilter/af_anequalizer.c     AudioNEqualizerContext *s = ctx->priv;
ctx               113 libavfilter/af_anequalizer.c             av_parse_color(fg, color, -1, ctx);
ctx               169 libavfilter/af_anequalizer.c     AVFilterContext *ctx = outlink->src;
ctx               170 libavfilter/af_anequalizer.c     AudioNEqualizerContext *s = ctx->priv;
ctx               171 libavfilter/af_anequalizer.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               183 libavfilter/af_anequalizer.c     draw_curves(ctx, inlink, out);
ctx               188 libavfilter/af_anequalizer.c static av_cold int init(AVFilterContext *ctx)
ctx               190 libavfilter/af_anequalizer.c     AudioNEqualizerContext *s = ctx->priv;
ctx               214 libavfilter/af_anequalizer.c     ret = ff_insert_outpad(ctx, 0, &pad);
ctx               221 libavfilter/af_anequalizer.c         ret = ff_insert_outpad(ctx, 1, &vpad);
ctx               231 libavfilter/af_anequalizer.c static int query_formats(AVFilterContext *ctx)
ctx               233 libavfilter/af_anequalizer.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               234 libavfilter/af_anequalizer.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               235 libavfilter/af_anequalizer.c     AudioNEqualizerContext *s = ctx->priv;
ctx               246 libavfilter/af_anequalizer.c         AVFilterLink *videolink = ctx->outputs[1];
ctx               270 libavfilter/af_anequalizer.c static av_cold void uninit(AVFilterContext *ctx)
ctx               272 libavfilter/af_anequalizer.c     AudioNEqualizerContext *s = ctx->priv;
ctx               274 libavfilter/af_anequalizer.c     for (int i = 0; i < ctx->nb_outputs; i++)
ctx               275 libavfilter/af_anequalizer.c         av_freep(&ctx->output_pads[i].name);
ctx               587 libavfilter/af_anequalizer.c     AVFilterContext *ctx = inlink->dst;
ctx               588 libavfilter/af_anequalizer.c     AudioNEqualizerContext *s = ctx->priv;
ctx               643 libavfilter/af_anequalizer.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               646 libavfilter/af_anequalizer.c     AudioNEqualizerContext *s = ctx->priv;
ctx               647 libavfilter/af_anequalizer.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               668 libavfilter/af_anequalizer.c             draw_curves(ctx, inlink, s->video);
ctx               714 libavfilter/af_anequalizer.c     AVFilterContext *ctx = inlink->dst;
ctx               715 libavfilter/af_anequalizer.c     AudioNEqualizerContext *s = ctx->priv;
ctx               716 libavfilter/af_anequalizer.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               747 libavfilter/af_anequalizer.c         ret = ff_filter_frame(ctx->outputs[1], clone);
ctx                92 libavfilter/af_anlmdn.c static int query_formats(AVFilterContext *ctx)
ctx               105 libavfilter/af_anlmdn.c     ret = ff_set_common_formats(ctx, formats);
ctx               113 libavfilter/af_anlmdn.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               118 libavfilter/af_anlmdn.c     return ff_set_common_samplerates(ctx, formats);
ctx               152 libavfilter/af_anlmdn.c     AVFilterContext *ctx = outlink->src;
ctx               153 libavfilter/af_anlmdn.c     AudioNLMeansContext *s = ctx->priv;
ctx               164 libavfilter/af_anlmdn.c     av_log(ctx, AV_LOG_DEBUG, "K:%d S:%d H:%d N:%d\n", s->K, s->S, s->H, s->N);
ctx               196 libavfilter/af_anlmdn.c static int filter_channel(AVFilterContext *ctx, void *arg, int ch, int nb_jobs)
ctx               198 libavfilter/af_anlmdn.c     AudioNLMeansContext *s = ctx->priv;
ctx               224 libavfilter/af_anlmdn.c         for (int j = 0; j < 2 * S && !ctx->is_disabled; j++) {
ctx               258 libavfilter/af_anlmdn.c     AVFilterContext *ctx = inlink->dst;
ctx               259 libavfilter/af_anlmdn.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               260 libavfilter/af_anlmdn.c     AudioNLMeansContext *s = ctx->priv;
ctx               286 libavfilter/af_anlmdn.c         ctx->internal->execute(ctx, filter_channel, out, NULL, inlink->channels);
ctx               311 libavfilter/af_anlmdn.c     AVFilterContext *ctx = outlink->src;
ctx               312 libavfilter/af_anlmdn.c     AudioNLMeansContext *s = ctx->priv;
ctx               315 libavfilter/af_anlmdn.c     ret = ff_request_frame(ctx->inputs[0]);
ctx               328 libavfilter/af_anlmdn.c         return filter_frame(ctx->inputs[0], in);
ctx               334 libavfilter/af_anlmdn.c static av_cold void uninit(AVFilterContext *ctx)
ctx               336 libavfilter/af_anlmdn.c     AudioNLMeansContext *s = ctx->priv;
ctx                80 libavfilter/af_anlms.c static int query_formats(AVFilterContext *ctx)
ctx                93 libavfilter/af_anlms.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               100 libavfilter/af_anlms.c     ret = ff_set_common_formats(ctx, formats);
ctx               107 libavfilter/af_anlms.c     return ff_set_common_samplerates(ctx, formats);
ctx               165 libavfilter/af_anlms.c static int process_channels(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               167 libavfilter/af_anlms.c     AudioNLMSContext *s = ctx->priv;
ctx               188 libavfilter/af_anlms.c static int activate(AVFilterContext *ctx)
ctx               190 libavfilter/af_anlms.c     AudioNLMSContext *s = ctx->priv;
ctx               195 libavfilter/af_anlms.c     FF_FILTER_FORWARD_STATUS_BACK_ALL(ctx->outputs[0], ctx);
ctx               197 libavfilter/af_anlms.c     nb_samples = FFMIN(ff_inlink_queued_samples(ctx->inputs[0]),
ctx               198 libavfilter/af_anlms.c                        ff_inlink_queued_samples(ctx->inputs[1]));
ctx               199 libavfilter/af_anlms.c     for (i = 0; i < ctx->nb_inputs && nb_samples > 0; i++) {
ctx               203 libavfilter/af_anlms.c         if (ff_inlink_check_available_samples(ctx->inputs[i], nb_samples) > 0) {
ctx               204 libavfilter/af_anlms.c             ret = ff_inlink_consume_samples(ctx->inputs[i], nb_samples, nb_samples, &s->frame[i]);
ctx               213 libavfilter/af_anlms.c         out = ff_get_audio_buffer(ctx->outputs[0], s->frame[0]->nb_samples);
ctx               220 libavfilter/af_anlms.c         ctx->internal->execute(ctx, process_channels, out, NULL, FFMIN(ctx->outputs[0]->channels,
ctx               221 libavfilter/af_anlms.c                                                                        ff_filter_get_nb_threads(ctx)));
ctx               228 libavfilter/af_anlms.c         ret = ff_filter_frame(ctx->outputs[0], out);
ctx               235 libavfilter/af_anlms.c             if (ff_inlink_acknowledge_status(ctx->inputs[i], &status, &pts)) {
ctx               236 libavfilter/af_anlms.c                 ff_outlink_set_status(ctx->outputs[0], status, pts);
ctx               242 libavfilter/af_anlms.c     if (ff_outlink_frame_wanted(ctx->outputs[0])) {
ctx               244 libavfilter/af_anlms.c             if (ff_inlink_queued_samples(ctx->inputs[i]) > 0)
ctx               246 libavfilter/af_anlms.c             ff_inlink_request_frame(ctx->inputs[i]);
ctx               255 libavfilter/af_anlms.c     AVFilterContext *ctx = outlink->src;
ctx               256 libavfilter/af_anlms.c     AudioNLMSContext *s = ctx->priv;
ctx               274 libavfilter/af_anlms.c static av_cold int init(AVFilterContext *ctx)
ctx               276 libavfilter/af_anlms.c     AudioNLMSContext *s = ctx->priv;
ctx               285 libavfilter/af_anlms.c static av_cold void uninit(AVFilterContext *ctx)
ctx               287 libavfilter/af_anlms.c     AudioNLMSContext *s = ctx->priv;
ctx                62 libavfilter/af_apad.c static av_cold int init(AVFilterContext *ctx)
ctx                64 libavfilter/af_apad.c     APadContext *s = ctx->priv;
ctx                68 libavfilter/af_apad.c         av_log(ctx, AV_LOG_ERROR, "Both whole and pad length are set, this is not possible\n");
ctx                77 libavfilter/af_apad.c     AVFilterContext *ctx = inlink->dst;
ctx                78 libavfilter/af_apad.c     APadContext *s = ctx->priv;
ctx                82 libavfilter/af_apad.c         av_log(ctx, AV_LOG_DEBUG,
ctx                87 libavfilter/af_apad.c     return ff_filter_frame(ctx->outputs[0], frame);
ctx                92 libavfilter/af_apad.c     AVFilterContext *ctx = outlink->src;
ctx                93 libavfilter/af_apad.c     APadContext *s = ctx->priv;
ctx                96 libavfilter/af_apad.c     ret = ff_request_frame(ctx->inputs[0]);
ctx                98 libavfilter/af_apad.c     if (ret == AVERROR_EOF && !ctx->is_disabled) {
ctx               108 libavfilter/af_apad.c             av_log(ctx, AV_LOG_DEBUG,
ctx               138 libavfilter/af_apad.c     AVFilterContext *ctx = outlink->src;
ctx               139 libavfilter/af_apad.c     APadContext *s  = ctx->priv;
ctx                74 libavfilter/af_aphaser.c static av_cold int init(AVFilterContext *ctx)
ctx                76 libavfilter/af_aphaser.c     AudioPhaserContext *s = ctx->priv;
ctx                79 libavfilter/af_aphaser.c         av_log(ctx, AV_LOG_WARNING, "in_gain may cause clipping\n");
ctx                81 libavfilter/af_aphaser.c         av_log(ctx, AV_LOG_WARNING, "out_gain may cause clipping\n");
ctx                86 libavfilter/af_aphaser.c static int query_formats(AVFilterContext *ctx)
ctx               102 libavfilter/af_aphaser.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               109 libavfilter/af_aphaser.c     ret = ff_set_common_formats(ctx, formats);
ctx               116 libavfilter/af_aphaser.c     return ff_set_common_samplerates(ctx, formats);
ctx               267 libavfilter/af_aphaser.c static av_cold void uninit(AVFilterContext *ctx)
ctx               269 libavfilter/af_aphaser.c     AudioPhaserContext *s = ctx->priv;
ctx               129 libavfilter/af_apulsator.c     AVFilterContext *ctx = inlink->dst;
ctx               130 libavfilter/af_apulsator.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               131 libavfilter/af_apulsator.c     AudioPulsatorContext *s = ctx->priv;
ctx               186 libavfilter/af_apulsator.c static int query_formats(AVFilterContext *ctx)
ctx               193 libavfilter/af_apulsator.c         (ret = ff_set_common_formats         (ctx     , formats            )) < 0 ||
ctx               195 libavfilter/af_apulsator.c         (ret = ff_set_common_channel_layouts (ctx     , layout             )) < 0)
ctx               199 libavfilter/af_apulsator.c     return ff_set_common_samplerates(ctx, formats);
ctx               204 libavfilter/af_apulsator.c     AVFilterContext *ctx = inlink->dst;
ctx               205 libavfilter/af_apulsator.c     AudioPulsatorContext *s = ctx->priv;
ctx                46 libavfilter/af_aresample.c static av_cold int init_dict(AVFilterContext *ctx, AVDictionary **opts)
ctx                48 libavfilter/af_aresample.c     AResampleContext *aresample = ctx->priv;
ctx                73 libavfilter/af_aresample.c static av_cold void uninit(AVFilterContext *ctx)
ctx                75 libavfilter/af_aresample.c     AResampleContext *aresample = ctx->priv;
ctx                79 libavfilter/af_aresample.c static int query_formats(AVFilterContext *ctx)
ctx                81 libavfilter/af_aresample.c     AResampleContext *aresample = ctx->priv;
ctx                85 libavfilter/af_aresample.c     AVFilterLink *inlink  = ctx->inputs[0];
ctx                86 libavfilter/af_aresample.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               140 libavfilter/af_aresample.c     AVFilterContext *ctx = outlink->src;
ctx               141 libavfilter/af_aresample.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               142 libavfilter/af_aresample.c     AResampleContext *aresample = ctx->priv;
ctx               150 libavfilter/af_aresample.c                                         0, ctx);
ctx               176 libavfilter/af_aresample.c     av_log(ctx, AV_LOG_VERBOSE, "ch:%d chl:%s fmt:%s r:%dHz -> ch:%d chl:%s fmt:%s r:%dHz\n",
ctx               236 libavfilter/af_aresample.c     AVFilterContext *ctx = outlink->src;
ctx               237 libavfilter/af_aresample.c     AResampleContext *aresample = ctx->priv;
ctx               267 libavfilter/af_aresample.c     AVFilterContext *ctx = outlink->src;
ctx               268 libavfilter/af_aresample.c     AResampleContext *aresample = ctx->priv;
ctx               282 libavfilter/af_aresample.c     ret = ff_request_frame(ctx->inputs[0]);
ctx               311 libavfilter/af_arnndn.c static int query_formats(AVFilterContext *ctx)
ctx               324 libavfilter/af_arnndn.c     ret = ff_set_common_formats(ctx, formats);
ctx               332 libavfilter/af_arnndn.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               339 libavfilter/af_arnndn.c     return ff_set_common_samplerates(ctx, formats);
ctx               344 libavfilter/af_arnndn.c     AVFilterContext *ctx = inlink->dst;
ctx               345 libavfilter/af_arnndn.c     AudioRNNContext *s = ctx->priv;
ctx              1391 libavfilter/af_arnndn.c static int rnnoise_channels(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx              1393 libavfilter/af_arnndn.c     AudioRNNContext *s = ctx->priv;
ctx              1411 libavfilter/af_arnndn.c     AVFilterContext *ctx = inlink->dst;
ctx              1412 libavfilter/af_arnndn.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              1424 libavfilter/af_arnndn.c     ctx->internal->execute(ctx, rnnoise_channels, &td, NULL, FFMIN(outlink->channels,
ctx              1425 libavfilter/af_arnndn.c                                                                    ff_filter_get_nb_threads(ctx)));
ctx              1431 libavfilter/af_arnndn.c static int activate(AVFilterContext *ctx)
ctx              1433 libavfilter/af_arnndn.c     AVFilterLink *inlink = ctx->inputs[0];
ctx              1434 libavfilter/af_arnndn.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              1453 libavfilter/af_arnndn.c static av_cold int init(AVFilterContext *ctx)
ctx              1455 libavfilter/af_arnndn.c     AudioRNNContext *s = ctx->priv;
ctx              1489 libavfilter/af_arnndn.c static av_cold void uninit(AVFilterContext *ctx)
ctx              1491 libavfilter/af_arnndn.c     AudioRNNContext *s = ctx->priv;
ctx                55 libavfilter/af_asetnsamples.c static int activate(AVFilterContext *ctx)
ctx                57 libavfilter/af_asetnsamples.c     AVFilterLink *inlink = ctx->inputs[0];
ctx                58 libavfilter/af_asetnsamples.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                59 libavfilter/af_asetnsamples.c     ASNSContext *s = ctx->priv;
ctx                73 libavfilter/af_asetnsamples.c                 ff_filter_set_ready(ctx, 100);
ctx                49 libavfilter/af_asetrate.c static av_cold int query_formats(AVFilterContext *ctx)
ctx                51 libavfilter/af_asetrate.c     ASetRateContext *sr = ctx->priv;
ctx                55 libavfilter/af_asetrate.c                    &ctx->outputs[0]->in_samplerates);
ctx                60 libavfilter/af_asetrate.c     AVFilterContext *ctx = outlink->src;
ctx                61 libavfilter/af_asetrate.c     ASetRateContext *sr = ctx->priv;
ctx                62 libavfilter/af_asetrate.c     AVFilterLink *inlink = ctx->inputs[0];
ctx                63 libavfilter/af_asetrate.c     AVRational intb = ctx->inputs[0]->time_base;
ctx                73 libavfilter/af_asetrate.c             av_log(ctx, AV_LOG_WARNING, "Time base is inaccurate\n");
ctx                80 libavfilter/af_asetrate.c     AVFilterContext *ctx = inlink->dst;
ctx                81 libavfilter/af_asetrate.c     ASetRateContext *sr = ctx->priv;
ctx                82 libavfilter/af_asetrate.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                53 libavfilter/af_ashowinfo.c static av_cold void uninit(AVFilterContext *ctx)
ctx                55 libavfilter/af_ashowinfo.c     AShowInfoContext *s = ctx->priv;
ctx                59 libavfilter/af_ashowinfo.c static void dump_matrixenc(AVFilterContext *ctx, AVFrameSideData *sd)
ctx                63 libavfilter/af_ashowinfo.c     av_log(ctx, AV_LOG_INFO, "matrix encoding: ");
ctx                72 libavfilter/af_ashowinfo.c     case AV_MATRIX_ENCODING_NONE:           av_log(ctx, AV_LOG_INFO, "none");                break;
ctx                73 libavfilter/af_ashowinfo.c     case AV_MATRIX_ENCODING_DOLBY:          av_log(ctx, AV_LOG_INFO, "Dolby Surround");      break;
ctx                74 libavfilter/af_ashowinfo.c     case AV_MATRIX_ENCODING_DPLII:          av_log(ctx, AV_LOG_INFO, "Dolby Pro Logic II");  break;
ctx                75 libavfilter/af_ashowinfo.c     case AV_MATRIX_ENCODING_DPLIIX:         av_log(ctx, AV_LOG_INFO, "Dolby Pro Logic IIx"); break;
ctx                76 libavfilter/af_ashowinfo.c     case AV_MATRIX_ENCODING_DPLIIZ:         av_log(ctx, AV_LOG_INFO, "Dolby Pro Logic IIz"); break;
ctx                77 libavfilter/af_ashowinfo.c     case AV_MATRIX_ENCODING_DOLBYEX:        av_log(ctx, AV_LOG_INFO, "Dolby EX");            break;
ctx                78 libavfilter/af_ashowinfo.c     case AV_MATRIX_ENCODING_DOLBYHEADPHONE: av_log(ctx, AV_LOG_INFO, "Dolby Headphone");     break;
ctx                79 libavfilter/af_ashowinfo.c     default:                                av_log(ctx, AV_LOG_WARNING, "unknown");          break;
ctx                83 libavfilter/af_ashowinfo.c static void dump_downmix(AVFilterContext *ctx, AVFrameSideData *sd)
ctx                87 libavfilter/af_ashowinfo.c     av_log(ctx, AV_LOG_INFO, "downmix: ");
ctx                89 libavfilter/af_ashowinfo.c         av_log(ctx, AV_LOG_INFO, "invalid data");
ctx                95 libavfilter/af_ashowinfo.c     av_log(ctx, AV_LOG_INFO, "preferred downmix type - ");
ctx                97 libavfilter/af_ashowinfo.c     case AV_DOWNMIX_TYPE_LORO:    av_log(ctx, AV_LOG_INFO, "Lo/Ro");              break;
ctx                98 libavfilter/af_ashowinfo.c     case AV_DOWNMIX_TYPE_LTRT:    av_log(ctx, AV_LOG_INFO, "Lt/Rt");              break;
ctx                99 libavfilter/af_ashowinfo.c     case AV_DOWNMIX_TYPE_DPLII:   av_log(ctx, AV_LOG_INFO, "Dolby Pro Logic II"); break;
ctx               100 libavfilter/af_ashowinfo.c     default:                      av_log(ctx, AV_LOG_WARNING, "unknown");         break;
ctx               103 libavfilter/af_ashowinfo.c     av_log(ctx, AV_LOG_INFO, " Mix levels: center %f (%f ltrt) - "
ctx               110 libavfilter/af_ashowinfo.c static void print_gain(AVFilterContext *ctx, const char *str, int32_t gain)
ctx               112 libavfilter/af_ashowinfo.c     av_log(ctx, AV_LOG_INFO, "%s - ", str);
ctx               114 libavfilter/af_ashowinfo.c         av_log(ctx, AV_LOG_INFO, "unknown");
ctx               116 libavfilter/af_ashowinfo.c         av_log(ctx, AV_LOG_INFO, "%f", gain / 100000.0f);
ctx               117 libavfilter/af_ashowinfo.c     av_log(ctx, AV_LOG_INFO, ", ");
ctx               120 libavfilter/af_ashowinfo.c static void print_peak(AVFilterContext *ctx, const char *str, uint32_t peak)
ctx               122 libavfilter/af_ashowinfo.c     av_log(ctx, AV_LOG_INFO, "%s - ", str);
ctx               124 libavfilter/af_ashowinfo.c         av_log(ctx, AV_LOG_INFO, "unknown");
ctx               126 libavfilter/af_ashowinfo.c         av_log(ctx, AV_LOG_INFO, "%f", (float)peak / UINT32_MAX);
ctx               127 libavfilter/af_ashowinfo.c     av_log(ctx, AV_LOG_INFO, ", ");
ctx               130 libavfilter/af_ashowinfo.c static void dump_replaygain(AVFilterContext *ctx, AVFrameSideData *sd)
ctx               134 libavfilter/af_ashowinfo.c     av_log(ctx, AV_LOG_INFO, "replaygain: ");
ctx               136 libavfilter/af_ashowinfo.c         av_log(ctx, AV_LOG_INFO, "invalid data");
ctx               141 libavfilter/af_ashowinfo.c     print_gain(ctx, "track gain", rg->track_gain);
ctx               142 libavfilter/af_ashowinfo.c     print_peak(ctx, "track peak", rg->track_peak);
ctx               143 libavfilter/af_ashowinfo.c     print_gain(ctx, "album gain", rg->album_gain);
ctx               144 libavfilter/af_ashowinfo.c     print_peak(ctx, "album peak", rg->album_peak);
ctx               147 libavfilter/af_ashowinfo.c static void dump_audio_service_type(AVFilterContext *ctx, AVFrameSideData *sd)
ctx               151 libavfilter/af_ashowinfo.c     av_log(ctx, AV_LOG_INFO, "audio service type: ");
ctx               153 libavfilter/af_ashowinfo.c         av_log(ctx, AV_LOG_INFO, "invalid data");
ctx               158 libavfilter/af_ashowinfo.c     case AV_AUDIO_SERVICE_TYPE_MAIN:              av_log(ctx, AV_LOG_INFO, "Main Audio Service"); break;
ctx               159 libavfilter/af_ashowinfo.c     case AV_AUDIO_SERVICE_TYPE_EFFECTS:           av_log(ctx, AV_LOG_INFO, "Effects");            break;
ctx               160 libavfilter/af_ashowinfo.c     case AV_AUDIO_SERVICE_TYPE_VISUALLY_IMPAIRED: av_log(ctx, AV_LOG_INFO, "Visually Impaired");  break;
ctx               161 libavfilter/af_ashowinfo.c     case AV_AUDIO_SERVICE_TYPE_HEARING_IMPAIRED:  av_log(ctx, AV_LOG_INFO, "Hearing Impaired");   break;
ctx               162 libavfilter/af_ashowinfo.c     case AV_AUDIO_SERVICE_TYPE_DIALOGUE:          av_log(ctx, AV_LOG_INFO, "Dialogue");           break;
ctx               163 libavfilter/af_ashowinfo.c     case AV_AUDIO_SERVICE_TYPE_COMMENTARY:        av_log(ctx, AV_LOG_INFO, "Commentary");         break;
ctx               164 libavfilter/af_ashowinfo.c     case AV_AUDIO_SERVICE_TYPE_EMERGENCY:         av_log(ctx, AV_LOG_INFO, "Emergency");          break;
ctx               165 libavfilter/af_ashowinfo.c     case AV_AUDIO_SERVICE_TYPE_VOICE_OVER:        av_log(ctx, AV_LOG_INFO, "Voice Over");         break;
ctx               166 libavfilter/af_ashowinfo.c     case AV_AUDIO_SERVICE_TYPE_KARAOKE:           av_log(ctx, AV_LOG_INFO, "Karaoke");            break;
ctx               167 libavfilter/af_ashowinfo.c     default:                                      av_log(ctx, AV_LOG_INFO, "unknown");            break;
ctx               171 libavfilter/af_ashowinfo.c static void dump_unknown(AVFilterContext *ctx, AVFrameSideData *sd)
ctx               173 libavfilter/af_ashowinfo.c     av_log(ctx, AV_LOG_INFO, "unknown side data type: %d, size %d bytes", sd->type, sd->size);
ctx               178 libavfilter/af_ashowinfo.c     AVFilterContext *ctx = inlink->dst;
ctx               179 libavfilter/af_ashowinfo.c     AShowInfoContext *s  = ctx->priv;
ctx               205 libavfilter/af_ashowinfo.c     av_log(ctx, AV_LOG_INFO,
ctx               216 libavfilter/af_ashowinfo.c     av_log(ctx, AV_LOG_INFO, "plane_checksums: [ ");
ctx               218 libavfilter/af_ashowinfo.c         av_log(ctx, AV_LOG_INFO, "%08"PRIX32" ", s->plane_checksums[i]);
ctx               219 libavfilter/af_ashowinfo.c     av_log(ctx, AV_LOG_INFO, "]\n");
ctx               224 libavfilter/af_ashowinfo.c         av_log(ctx, AV_LOG_INFO, "  side data - ");
ctx               226 libavfilter/af_ashowinfo.c         case AV_FRAME_DATA_MATRIXENCODING: dump_matrixenc (ctx, sd); break;
ctx               227 libavfilter/af_ashowinfo.c         case AV_FRAME_DATA_DOWNMIX_INFO:   dump_downmix   (ctx, sd); break;
ctx               228 libavfilter/af_ashowinfo.c         case AV_FRAME_DATA_REPLAYGAIN:     dump_replaygain(ctx, sd); break;
ctx               229 libavfilter/af_ashowinfo.c         case AV_FRAME_DATA_AUDIO_SERVICE_TYPE: dump_audio_service_type(ctx, sd); break;
ctx               230 libavfilter/af_ashowinfo.c         default:                           dump_unknown   (ctx, sd); break;
ctx               233 libavfilter/af_ashowinfo.c         av_log(ctx, AV_LOG_INFO, "\n");
ctx                66 libavfilter/af_asoftclip.c static int query_formats(AVFilterContext *ctx)
ctx                80 libavfilter/af_asoftclip.c     ret = ff_set_common_formats(ctx, formats);
ctx                88 libavfilter/af_asoftclip.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx                93 libavfilter/af_asoftclip.c     return ff_set_common_samplerates(ctx, formats);
ctx               214 libavfilter/af_asoftclip.c     AVFilterContext *ctx = inlink->dst;
ctx               215 libavfilter/af_asoftclip.c     ASoftClipContext *s = ctx->priv;
ctx               233 libavfilter/af_asoftclip.c static int filter_channels(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               235 libavfilter/af_asoftclip.c     ASoftClipContext *s = ctx->priv;
ctx               252 libavfilter/af_asoftclip.c     AVFilterContext *ctx = inlink->dst;
ctx               253 libavfilter/af_asoftclip.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               281 libavfilter/af_asoftclip.c     ctx->internal->execute(ctx, filter_channels, &td, NULL, FFMIN(channels,
ctx               282 libavfilter/af_asoftclip.c                                                             ff_filter_get_nb_threads(ctx)));
ctx                65 libavfilter/af_asr.c     AVFilterContext *ctx = inlink->dst;
ctx                67 libavfilter/af_asr.c     ASRContext *s = ctx->priv;
ctx                84 libavfilter/af_asr.c     return ff_filter_frame(ctx->outputs[0], in);
ctx                89 libavfilter/af_asr.c     AVFilterContext *ctx = inlink->dst;
ctx                90 libavfilter/af_asr.c     ASRContext *s = ctx->priv;
ctx                97 libavfilter/af_asr.c static av_cold int asr_init(AVFilterContext *ctx)
ctx                99 libavfilter/af_asr.c     ASRContext *s = ctx->priv;
ctx               124 libavfilter/af_asr.c static int query_formats(AVFilterContext *ctx)
ctx               126 libavfilter/af_asr.c     ASRContext *s = ctx->priv;
ctx               134 libavfilter/af_asr.c         (ret = ff_set_common_formats         (ctx     , formats                           )) < 0 ||
ctx               136 libavfilter/af_asr.c         (ret = ff_set_common_channel_layouts (ctx     , layout                            )) < 0 ||
ctx               137 libavfilter/af_asr.c         (ret = ff_set_common_samplerates     (ctx     , ff_make_format_list(sample_rates) )) < 0)
ctx               143 libavfilter/af_asr.c static av_cold void asr_uninit(AVFilterContext *ctx)
ctx               145 libavfilter/af_asr.c     ASRContext *s = ctx->priv;
ctx               148 libavfilter/af_astats.c static int query_formats(AVFilterContext *ctx)
ctx               165 libavfilter/af_astats.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               172 libavfilter/af_astats.c     ret = ff_set_common_formats(ctx, formats);
ctx               179 libavfilter/af_astats.c     return ff_set_common_samplerates(ctx, formats);
ctx               587 libavfilter/af_astats.c static int filter_channel(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               589 libavfilter/af_astats.c     AudioStatsContext *s = ctx->priv;
ctx               590 libavfilter/af_astats.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               636 libavfilter/af_astats.c     AVFilterContext *ctx = inlink->dst;
ctx               637 libavfilter/af_astats.c     AudioStatsContext *s = ctx->priv;
ctx               648 libavfilter/af_astats.c     ctx->internal->execute(ctx, filter_channel, buf, NULL, FFMIN(inlink->channels, ff_filter_get_nb_threads(ctx)));
ctx               656 libavfilter/af_astats.c static void print_stats(AVFilterContext *ctx)
ctx               658 libavfilter/af_astats.c     AudioStatsContext *s = ctx->priv;
ctx               708 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "Channel: %d\n", c + 1);
ctx               710 libavfilter/af_astats.c             av_log(ctx, AV_LOG_INFO, "DC offset: %f\n", p->sigma_x / p->nb_samples);
ctx               712 libavfilter/af_astats.c             av_log(ctx, AV_LOG_INFO, "Min level: %f\n", p->min);
ctx               714 libavfilter/af_astats.c             av_log(ctx, AV_LOG_INFO, "Max level: %f\n", p->max);
ctx               716 libavfilter/af_astats.c             av_log(ctx, AV_LOG_INFO, "Min difference: %f\n", p->min_diff);
ctx               718 libavfilter/af_astats.c             av_log(ctx, AV_LOG_INFO, "Max difference: %f\n", p->max_diff);
ctx               720 libavfilter/af_astats.c             av_log(ctx, AV_LOG_INFO, "Mean difference: %f\n", p->diff1_sum / (p->nb_samples - 1));
ctx               722 libavfilter/af_astats.c             av_log(ctx, AV_LOG_INFO, "RMS difference: %f\n", sqrt(p->diff1_sum_x2 / (p->nb_samples - 1)));
ctx               724 libavfilter/af_astats.c             av_log(ctx, AV_LOG_INFO, "Peak level dB: %f\n", LINEAR_TO_DB(FFMAX(-p->nmin, p->nmax)));
ctx               726 libavfilter/af_astats.c             av_log(ctx, AV_LOG_INFO, "RMS level dB: %f\n", LINEAR_TO_DB(sqrt(p->sigma_x2 / p->nb_samples)));
ctx               728 libavfilter/af_astats.c             av_log(ctx, AV_LOG_INFO, "RMS peak dB: %f\n", LINEAR_TO_DB(sqrt(p->max_sigma_x2)));
ctx               731 libavfilter/af_astats.c                 av_log(ctx, AV_LOG_INFO, "RMS trough dB: %f\n",LINEAR_TO_DB(sqrt(p->min_sigma_x2)));
ctx               733 libavfilter/af_astats.c             av_log(ctx, AV_LOG_INFO, "Crest factor: %f\n", p->sigma_x2 ? FFMAX(-p->nmin, p->nmax) / sqrt(p->sigma_x2 / p->nb_samples) : 1);
ctx               735 libavfilter/af_astats.c             av_log(ctx, AV_LOG_INFO, "Flat factor: %f\n", LINEAR_TO_DB((p->min_runs + p->max_runs) / (p->min_count + p->max_count)));
ctx               737 libavfilter/af_astats.c             av_log(ctx, AV_LOG_INFO, "Peak count: %"PRId64"\n", p->min_count + p->max_count);
ctx               739 libavfilter/af_astats.c             av_log(ctx, AV_LOG_INFO, "Noise floor dB: %f\n", LINEAR_TO_DB(p->noise_floor));
ctx               741 libavfilter/af_astats.c             av_log(ctx, AV_LOG_INFO, "Noise floor count: %"PRId64"\n", p->noise_floor_count);
ctx               744 libavfilter/af_astats.c             av_log(ctx, AV_LOG_INFO, "Bit depth: %u/%u\n", depth.num, depth.den);
ctx               747 libavfilter/af_astats.c             av_log(ctx, AV_LOG_INFO, "Dynamic range: %f\n", LINEAR_TO_DB(2 * FFMAX(FFABS(p->min), FFABS(p->max))/ p->min_non_zero));
ctx               749 libavfilter/af_astats.c             av_log(ctx, AV_LOG_INFO, "Zero crossings: %"PRId64"\n", p->zero_runs);
ctx               751 libavfilter/af_astats.c             av_log(ctx, AV_LOG_INFO, "Zero crossings rate: %f\n", p->zero_runs/(double)p->nb_samples);
ctx               753 libavfilter/af_astats.c             av_log(ctx, AV_LOG_INFO, "Number of NaNs: %"PRId64"\n", p->nb_nans);
ctx               755 libavfilter/af_astats.c             av_log(ctx, AV_LOG_INFO, "Number of Infs: %"PRId64"\n", p->nb_infs);
ctx               757 libavfilter/af_astats.c             av_log(ctx, AV_LOG_INFO, "Number of denormals: %"PRId64"\n", p->nb_denormals);
ctx               760 libavfilter/af_astats.c     av_log(ctx, AV_LOG_INFO, "Overall\n");
ctx               762 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "DC offset: %f\n", max_sigma_x / (nb_samples / s->nb_channels));
ctx               764 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "Min level: %f\n", min);
ctx               766 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "Max level: %f\n", max);
ctx               768 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "Min difference: %f\n", min_diff);
ctx               770 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "Max difference: %f\n", max_diff);
ctx               772 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "Mean difference: %f\n", diff1_sum / (nb_samples - s->nb_channels));
ctx               774 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "RMS difference: %f\n", sqrt(diff1_sum_x2 / (nb_samples - s->nb_channels)));
ctx               776 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "Peak level dB: %f\n", LINEAR_TO_DB(FFMAX(-nmin, nmax)));
ctx               778 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "RMS level dB: %f\n", LINEAR_TO_DB(sqrt(sigma_x2 / nb_samples)));
ctx               780 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "RMS peak dB: %f\n", LINEAR_TO_DB(sqrt(max_sigma_x2)));
ctx               783 libavfilter/af_astats.c             av_log(ctx, AV_LOG_INFO, "RMS trough dB: %f\n", LINEAR_TO_DB(sqrt(min_sigma_x2)));
ctx               785 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "Flat factor: %f\n", LINEAR_TO_DB((min_runs + max_runs) / (min_count + max_count)));
ctx               787 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "Peak count: %f\n", (min_count + max_count) / (double)s->nb_channels);
ctx               789 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "Noise floor dB: %f\n", LINEAR_TO_DB(noise_floor));
ctx               791 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "Noise floor count: %f\n", noise_floor_count / (double)s->nb_channels);
ctx               794 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "Bit depth: %u/%u\n", depth.num, depth.den);
ctx               797 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "Number of samples: %"PRId64"\n", nb_samples / s->nb_channels);
ctx               799 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "Number of NaNs: %f\n", nb_nans / (float)s->nb_channels);
ctx               801 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "Number of Infs: %f\n", nb_infs / (float)s->nb_channels);
ctx               803 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "Number of denormals: %f\n", nb_denormals / (float)s->nb_channels);
ctx               806 libavfilter/af_astats.c static av_cold void uninit(AVFilterContext *ctx)
ctx               808 libavfilter/af_astats.c     AudioStatsContext *s = ctx->priv;
ctx               811 libavfilter/af_astats.c         print_stats(ctx);
ctx                47 libavfilter/af_asubboost.c static int query_formats(AVFilterContext *ctx)
ctx                60 libavfilter/af_asubboost.c     ret = ff_set_common_formats(ctx, formats);
ctx                68 libavfilter/af_asubboost.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx                73 libavfilter/af_asubboost.c     return ff_set_common_samplerates(ctx, formats);
ctx                76 libavfilter/af_asubboost.c static int get_coeffs(AVFilterContext *ctx)
ctx                78 libavfilter/af_asubboost.c     ASubBoostContext *s = ctx->priv;
ctx                79 libavfilter/af_asubboost.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               103 libavfilter/af_asubboost.c     AVFilterContext *ctx = inlink->dst;
ctx               104 libavfilter/af_asubboost.c     ASubBoostContext *s = ctx->priv;
ctx               112 libavfilter/af_asubboost.c     return get_coeffs(ctx);
ctx               117 libavfilter/af_asubboost.c     AVFilterContext *ctx = inlink->dst;
ctx               118 libavfilter/af_asubboost.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               119 libavfilter/af_asubboost.c     ASubBoostContext *s = ctx->priv;
ctx               167 libavfilter/af_asubboost.c static av_cold void uninit(AVFilterContext *ctx)
ctx               169 libavfilter/af_asubboost.c     ASubBoostContext *s = ctx->priv;
ctx               176 libavfilter/af_asubboost.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               181 libavfilter/af_asubboost.c     ret = ff_filter_process_command(ctx, cmd, args, res, res_len, flags);
ctx               185 libavfilter/af_asubboost.c     return get_coeffs(ctx);
ctx               331 libavfilter/af_atempo.c static int yae_update(AVFilterContext *ctx)
ctx               334 libavfilter/af_atempo.c     ATempoContext *atempo = ctx->priv;
ctx               982 libavfilter/af_atempo.c static av_cold int init(AVFilterContext *ctx)
ctx               984 libavfilter/af_atempo.c     ATempoContext *atempo = ctx->priv;
ctx               990 libavfilter/af_atempo.c static av_cold void uninit(AVFilterContext *ctx)
ctx               992 libavfilter/af_atempo.c     ATempoContext *atempo = ctx->priv;
ctx               996 libavfilter/af_atempo.c static int query_formats(AVFilterContext *ctx)
ctx              1021 libavfilter/af_atempo.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx              1029 libavfilter/af_atempo.c     ret = ff_set_common_formats(ctx, formats);
ctx              1037 libavfilter/af_atempo.c     return ff_set_common_samplerates(ctx, formats);
ctx              1042 libavfilter/af_atempo.c     AVFilterContext  *ctx = inlink->dst;
ctx              1043 libavfilter/af_atempo.c     ATempoContext *atempo = ctx->priv;
ctx              1079 libavfilter/af_atempo.c     AVFilterContext  *ctx = inlink->dst;
ctx              1080 libavfilter/af_atempo.c     ATempoContext *atempo = ctx->priv;
ctx              1081 libavfilter/af_atempo.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              1127 libavfilter/af_atempo.c     AVFilterContext  *ctx = outlink->src;
ctx              1128 libavfilter/af_atempo.c     ATempoContext *atempo = ctx->priv;
ctx              1131 libavfilter/af_atempo.c     ret = ff_request_frame(ctx->inputs[0]);
ctx              1171 libavfilter/af_atempo.c static int process_command(AVFilterContext *ctx,
ctx              1178 libavfilter/af_atempo.c     int ret = ff_filter_process_command(ctx, cmd, arg, res, res_len, flags);
ctx              1183 libavfilter/af_atempo.c     return yae_update(ctx);
ctx                47 libavfilter/af_axcorrelate.c     int (*xcorrelate)(AVFilterContext *ctx, AVFrame *out);
ctx                50 libavfilter/af_axcorrelate.c static int query_formats(AVFilterContext *ctx)
ctx                63 libavfilter/af_axcorrelate.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx                70 libavfilter/af_axcorrelate.c     ret = ff_set_common_formats(ctx, formats);
ctx                77 libavfilter/af_axcorrelate.c     return ff_set_common_samplerates(ctx, formats);
ctx               120 libavfilter/af_axcorrelate.c static int xcorrelate_slow(AVFilterContext *ctx, AVFrame *out)
ctx               122 libavfilter/af_axcorrelate.c     AudioXCorrelateContext *s = ctx->priv;
ctx               153 libavfilter/af_axcorrelate.c static int xcorrelate_fast(AVFilterContext *ctx, AVFrame *out)
ctx               155 libavfilter/af_axcorrelate.c     AudioXCorrelateContext *s = ctx->priv;
ctx               197 libavfilter/af_axcorrelate.c static int activate(AVFilterContext *ctx)
ctx               199 libavfilter/af_axcorrelate.c     AudioXCorrelateContext *s = ctx->priv;
ctx               205 libavfilter/af_axcorrelate.c     FF_FILTER_FORWARD_STATUS_BACK_ALL(ctx->outputs[0], ctx);
ctx               208 libavfilter/af_axcorrelate.c         ret = ff_inlink_consume_frame(ctx->inputs[i], &frame);
ctx               227 libavfilter/af_axcorrelate.c             s->cache[0] = ff_get_audio_buffer(ctx->outputs[0], available);
ctx               234 libavfilter/af_axcorrelate.c             s->cache[1] = ff_get_audio_buffer(ctx->outputs[0], available);
ctx               247 libavfilter/af_axcorrelate.c         out = ff_get_audio_buffer(ctx->outputs[0], out_samples);
ctx               251 libavfilter/af_axcorrelate.c         s->used = s->xcorrelate(ctx, out);
ctx               259 libavfilter/af_axcorrelate.c         return ff_filter_frame(ctx->outputs[0], out);
ctx               264 libavfilter/af_axcorrelate.c         ff_filter_set_ready(ctx, 10);
ctx               269 libavfilter/af_axcorrelate.c         if (ff_inlink_acknowledge_status(ctx->inputs[i], &status, &pts)) {
ctx               270 libavfilter/af_axcorrelate.c             ff_outlink_set_status(ctx->outputs[0], status, pts);
ctx               275 libavfilter/af_axcorrelate.c     if (ff_outlink_frame_wanted(ctx->outputs[0])) {
ctx               279 libavfilter/af_axcorrelate.c             ff_inlink_request_frame(ctx->inputs[i]);
ctx               289 libavfilter/af_axcorrelate.c     AVFilterContext *ctx = outlink->src;
ctx               290 libavfilter/af_axcorrelate.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               291 libavfilter/af_axcorrelate.c     AudioXCorrelateContext *s = ctx->priv;
ctx               319 libavfilter/af_axcorrelate.c static av_cold void uninit(AVFilterContext *ctx)
ctx               321 libavfilter/af_axcorrelate.c     AudioXCorrelateContext *s = ctx->priv;
ctx               130 libavfilter/af_biquads.c static av_cold int init(AVFilterContext *ctx)
ctx               132 libavfilter/af_biquads.c     BiquadsContext *s = ctx->priv;
ctx               136 libavfilter/af_biquads.c             av_log(ctx, AV_LOG_ERROR, "Invalid frequency %f and/or width %f <= 0\n",
ctx               145 libavfilter/af_biquads.c static int query_formats(AVFilterContext *ctx)
ctx               161 libavfilter/af_biquads.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               168 libavfilter/af_biquads.c     ret = ff_set_common_formats(ctx, formats);
ctx               175 libavfilter/af_biquads.c     return ff_set_common_samplerates(ctx, formats);
ctx               263 libavfilter/af_biquads.c     AVFilterContext *ctx    = outlink->src;
ctx               264 libavfilter/af_biquads.c     BiquadsContext *s       = ctx->priv;
ctx               265 libavfilter/af_biquads.c     AVFilterLink *inlink    = ctx->inputs[0];
ctx               272 libavfilter/af_biquads.c         av_log(ctx, AV_LOG_ERROR,
ctx               417 libavfilter/af_biquads.c     av_log(ctx, AV_LOG_VERBOSE, "a=%f %f %f:b=%f %f %f\n", s->a0, s->a1, s->a2, s->b0, s->b1, s->b2);
ctx               462 libavfilter/af_biquads.c static int filter_channel(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               464 libavfilter/af_biquads.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               468 libavfilter/af_biquads.c     BiquadsContext *s = ctx->priv;
ctx               483 libavfilter/af_biquads.c                   s->b0, s->b1, s->b2, s->a1, s->a2, &s->cache[ch].clippings, ctx->is_disabled);
ctx               491 libavfilter/af_biquads.c     AVFilterContext  *ctx = inlink->dst;
ctx               492 libavfilter/af_biquads.c     BiquadsContext *s     = ctx->priv;
ctx               493 libavfilter/af_biquads.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               511 libavfilter/af_biquads.c     ctx->internal->execute(ctx, filter_channel, &td, NULL, FFMIN(outlink->channels, ff_filter_get_nb_threads(ctx)));
ctx               515 libavfilter/af_biquads.c             av_log(ctx, AV_LOG_WARNING, "Channel %d clipping %d times. Please reduce gain.\n",
ctx               526 libavfilter/af_biquads.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               529 libavfilter/af_biquads.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               532 libavfilter/af_biquads.c     ret = ff_filter_process_command(ctx, cmd, args, res, res_len, flags);
ctx               539 libavfilter/af_biquads.c static av_cold void uninit(AVFilterContext *ctx)
ctx               541 libavfilter/af_biquads.c     BiquadsContext *s = ctx->priv;
ctx               570 libavfilter/af_biquads.c static av_cold int name_##_init(AVFilterContext *ctx) \
ctx               572 libavfilter/af_biquads.c     BiquadsContext *s = ctx->priv;                                      \
ctx               575 libavfilter/af_biquads.c     return init(ctx);                                             \
ctx                67 libavfilter/af_bs2b.c static av_cold int init(AVFilterContext *ctx)
ctx                69 libavfilter/af_bs2b.c     Bs2bContext *bs2b = ctx->priv;
ctx                85 libavfilter/af_bs2b.c static av_cold void uninit(AVFilterContext *ctx)
ctx                87 libavfilter/af_bs2b.c     Bs2bContext *bs2b = ctx->priv;
ctx                93 libavfilter/af_bs2b.c static int query_formats(AVFilterContext *ctx)
ctx               110 libavfilter/af_bs2b.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               117 libavfilter/af_bs2b.c     ret = ff_set_common_formats(ctx, formats);
ctx               124 libavfilter/af_bs2b.c     return ff_set_common_samplerates(ctx, formats);
ctx               162 libavfilter/af_bs2b.c     AVFilterContext *ctx = outlink->src;
ctx               163 libavfilter/af_bs2b.c     Bs2bContext    *bs2b = ctx->priv;
ctx               164 libavfilter/af_bs2b.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               120 libavfilter/af_channelmap.c static av_cold int channelmap_init(AVFilterContext *ctx)
ctx               122 libavfilter/af_channelmap.c     ChannelMapContext *s = ctx->priv;
ctx               164 libavfilter/af_channelmap.c         av_log(ctx, AV_LOG_ERROR, "Too many channels mapped: '%d'.\n", map_entries);
ctx               175 libavfilter/af_channelmap.c                 av_log(ctx, AV_LOG_ERROR, err);
ctx               183 libavfilter/af_channelmap.c                 av_log(ctx, AV_LOG_ERROR, err);
ctx               192 libavfilter/af_channelmap.c                 av_log(ctx, AV_LOG_ERROR, err);
ctx               202 libavfilter/af_channelmap.c                 av_log(ctx, AV_LOG_ERROR, err);
ctx               212 libavfilter/af_channelmap.c                 av_log(ctx, AV_LOG_ERROR, err);
ctx               222 libavfilter/af_channelmap.c                 av_log(ctx, AV_LOG_ERROR, err);
ctx               239 libavfilter/af_channelmap.c             av_log(ctx, AV_LOG_ERROR, "Error parsing channel layout: '%s'.\n",
ctx               252 libavfilter/af_channelmap.c             av_log(ctx, AV_LOG_ERROR,
ctx               257 libavfilter/af_channelmap.c             av_log(ctx, AV_LOG_ERROR,
ctx               265 libavfilter/af_channelmap.c         av_log(ctx, AV_LOG_ERROR, "Output channel layout is not set and "
ctx               280 libavfilter/af_channelmap.c static int channelmap_query_formats(AVFilterContext *ctx)
ctx               282 libavfilter/af_channelmap.c     ChannelMapContext *s = ctx->priv;
ctx               293 libavfilter/af_channelmap.c         (ret = ff_set_common_formats     (ctx             , ff_planar_sample_fmts()             )) < 0 ||
ctx               294 libavfilter/af_channelmap.c         (ret = ff_set_common_samplerates (ctx             , ff_all_samplerates()                )) < 0 ||
ctx               295 libavfilter/af_channelmap.c         (ret = ff_channel_layouts_ref    (layouts         , &ctx->inputs[0]->out_channel_layouts)) < 0 ||
ctx               296 libavfilter/af_channelmap.c         (ret = ff_channel_layouts_ref    (channel_layouts , &ctx->outputs[0]->in_channel_layouts)) < 0)
ctx               309 libavfilter/af_channelmap.c     AVFilterContext  *ctx = inlink->dst;
ctx               310 libavfilter/af_channelmap.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               311 libavfilter/af_channelmap.c     const ChannelMapContext *s = ctx->priv;
ctx               357 libavfilter/af_channelmap.c     AVFilterContext *ctx = inlink->dst;
ctx               358 libavfilter/af_channelmap.c     ChannelMapContext *s = ctx->priv;
ctx               377 libavfilter/af_channelmap.c                 av_log(ctx, AV_LOG_ERROR,
ctx               381 libavfilter/af_channelmap.c                 av_log(ctx, AV_LOG_ERROR,
ctx                57 libavfilter/af_channelsplit.c static av_cold int init(AVFilterContext *ctx)
ctx                59 libavfilter/af_channelsplit.c     ChannelSplitContext *s = ctx->priv;
ctx                65 libavfilter/af_channelsplit.c         av_log(ctx, AV_LOG_ERROR, "Error parsing channel layout '%s'.\n",
ctx                92 libavfilter/af_channelsplit.c                 av_log(ctx, AV_LOG_ERROR, "Channel name '%s' not present in channel layout '%s'.\n",
ctx               100 libavfilter/af_channelsplit.c         if ((ret = ff_insert_outpad(ctx, i, &pad)) < 0) {
ctx               109 libavfilter/af_channelsplit.c static int query_formats(AVFilterContext *ctx)
ctx               111 libavfilter/af_channelsplit.c     ChannelSplitContext *s = ctx->priv;
ctx               115 libavfilter/af_channelsplit.c     if ((ret = ff_set_common_formats(ctx, ff_planar_sample_fmts())) < 0 ||
ctx               116 libavfilter/af_channelsplit.c         (ret = ff_set_common_samplerates(ctx, ff_all_samplerates())) < 0)
ctx               120 libavfilter/af_channelsplit.c         (ret = ff_channel_layouts_ref(in_layouts, &ctx->inputs[0]->out_channel_layouts)) < 0)
ctx               123 libavfilter/af_channelsplit.c     for (i = 0; i < ctx->nb_outputs; i++) {
ctx               128 libavfilter/af_channelsplit.c             (ret = ff_channel_layouts_ref(out_layouts, &ctx->outputs[i]->in_channel_layouts)) < 0)
ctx               137 libavfilter/af_channelsplit.c     AVFilterContext *ctx = inlink->dst;
ctx               138 libavfilter/af_channelsplit.c     ChannelSplitContext *s = ctx->priv;
ctx               141 libavfilter/af_channelsplit.c     for (i = 0; i < ctx->nb_outputs; i++) {
ctx               154 libavfilter/af_channelsplit.c         ret = ff_filter_frame(ctx->outputs[i], buf_out);
ctx               106 libavfilter/af_chorus.c static av_cold int init(AVFilterContext *ctx)
ctx               108 libavfilter/af_chorus.c     ChorusContext *s = ctx->priv;
ctx               112 libavfilter/af_chorus.c         av_log(ctx, AV_LOG_ERROR, "Both delays & decays & speeds & depths must be set.\n");
ctx               135 libavfilter/af_chorus.c         av_log(ctx, AV_LOG_ERROR, "Number of delays & decays & speeds & depths given must be same.\n");
ctx               142 libavfilter/af_chorus.c         av_log(ctx, AV_LOG_ERROR, "At least one delay & decay & speed & depth must be set.\n");
ctx               157 libavfilter/af_chorus.c static int query_formats(AVFilterContext *ctx)
ctx               169 libavfilter/af_chorus.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               176 libavfilter/af_chorus.c     ret = ff_set_common_formats(ctx, formats);
ctx               183 libavfilter/af_chorus.c     return ff_set_common_samplerates(ctx, formats);
ctx               188 libavfilter/af_chorus.c     AVFilterContext *ctx = outlink->src;
ctx               189 libavfilter/af_chorus.c     ChorusContext *s = ctx->priv;
ctx               214 libavfilter/af_chorus.c         av_log(ctx, AV_LOG_WARNING, "output gain can cause saturation or clipping of output\n");
ctx               242 libavfilter/af_chorus.c     AVFilterContext *ctx = inlink->dst;
ctx               243 libavfilter/af_chorus.c     ChorusContext *s = ctx->priv;
ctx               250 libavfilter/af_chorus.c         out_frame = ff_get_audio_buffer(ctx->outputs[0], frame->nb_samples);
ctx               290 libavfilter/af_chorus.c     return ff_filter_frame(ctx->outputs[0], out_frame);
ctx               295 libavfilter/af_chorus.c     AVFilterContext *ctx = outlink->src;
ctx               296 libavfilter/af_chorus.c     ChorusContext *s = ctx->priv;
ctx               299 libavfilter/af_chorus.c     ret = ff_request_frame(ctx->inputs[0]);
ctx               301 libavfilter/af_chorus.c     if (ret == AVERROR_EOF && !ctx->is_disabled && s->fade_out) {
ctx               319 libavfilter/af_chorus.c         ret = filter_frame(ctx->inputs[0], frame);
ctx               325 libavfilter/af_chorus.c static av_cold void uninit(AVFilterContext *ctx)
ctx               327 libavfilter/af_chorus.c     ChorusContext *s = ctx->priv;
ctx                68 libavfilter/af_compand.c     int (*compand)(AVFilterContext *ctx, AVFrame *frame);
ctx                87 libavfilter/af_compand.c static av_cold int init(AVFilterContext *ctx)
ctx                89 libavfilter/af_compand.c     CompandContext *s = ctx->priv;
ctx                94 libavfilter/af_compand.c static av_cold void uninit(AVFilterContext *ctx)
ctx                96 libavfilter/af_compand.c     CompandContext *s = ctx->priv;
ctx               103 libavfilter/af_compand.c static int query_formats(AVFilterContext *ctx)
ctx               116 libavfilter/af_compand.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               123 libavfilter/af_compand.c     ret = ff_set_common_formats(ctx, formats);
ctx               130 libavfilter/af_compand.c     return ff_set_common_samplerates(ctx, formats);
ctx               175 libavfilter/af_compand.c static int compand_nodelay(AVFilterContext *ctx, AVFrame *frame)
ctx               177 libavfilter/af_compand.c     CompandContext *s    = ctx->priv;
ctx               178 libavfilter/af_compand.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               188 libavfilter/af_compand.c         out_frame = ff_get_audio_buffer(ctx->outputs[0], nb_samples);
ctx               216 libavfilter/af_compand.c     return ff_filter_frame(ctx->outputs[0], out_frame);
ctx               221 libavfilter/af_compand.c static int compand_delay(AVFilterContext *ctx, AVFrame *frame)
ctx               223 libavfilter/af_compand.c     CompandContext *s    = ctx->priv;
ctx               224 libavfilter/af_compand.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               252 libavfilter/af_compand.c                     out_frame = ff_get_audio_buffer(ctx->outputs[0], nb_samples - i);
ctx               286 libavfilter/af_compand.c         err = ff_filter_frame(ctx->outputs[0], out_frame);
ctx               295 libavfilter/af_compand.c     AVFilterContext *ctx = outlink->src;
ctx               296 libavfilter/af_compand.c     CompandContext *s    = ctx->priv;
ctx               330 libavfilter/af_compand.c     AVFilterContext *ctx  = outlink->src;
ctx               331 libavfilter/af_compand.c     CompandContext *s     = ctx->priv;
ctx               347 libavfilter/af_compand.c         av_log(ctx, AV_LOG_ERROR, "Invalid number of channels: %d\n", channels);
ctx               352 libavfilter/af_compand.c         av_log(ctx, AV_LOG_WARNING,
ctx               358 libavfilter/af_compand.c     uninit(ctx);
ctx               365 libavfilter/af_compand.c         uninit(ctx);
ctx               373 libavfilter/af_compand.c             uninit(ctx);
ctx               379 libavfilter/af_compand.c             uninit(ctx);
ctx               389 libavfilter/af_compand.c             uninit(ctx);
ctx               395 libavfilter/af_compand.c             uninit(ctx);
ctx               402 libavfilter/af_compand.c         av_log(ctx, AV_LOG_ERROR,
ctx               405 libavfilter/af_compand.c         uninit(ctx);
ctx               420 libavfilter/af_compand.c             av_log(ctx, AV_LOG_ERROR,
ctx               422 libavfilter/af_compand.c             uninit(ctx);
ctx               426 libavfilter/af_compand.c             av_log(ctx, AV_LOG_ERROR,
ctx               428 libavfilter/af_compand.c             uninit(ctx);
ctx               432 libavfilter/af_compand.c         av_log(ctx, AV_LOG_DEBUG, "%d: x=%f y=%f\n", i, S(i).x, S(i).y);
ctx               530 libavfilter/af_compand.c         uninit(ctx);
ctx               548 libavfilter/af_compand.c     AVFilterContext *ctx = inlink->dst;
ctx               549 libavfilter/af_compand.c     CompandContext *s    = ctx->priv;
ctx               551 libavfilter/af_compand.c     return s->compand(ctx, frame);
ctx               556 libavfilter/af_compand.c     AVFilterContext *ctx = outlink->src;
ctx               557 libavfilter/af_compand.c     CompandContext *s    = ctx->priv;
ctx               560 libavfilter/af_compand.c     ret = ff_request_frame(ctx->inputs[0]);
ctx               562 libavfilter/af_compand.c     if (ret == AVERROR_EOF && !ctx->is_disabled && s->delay_count)
ctx                66 libavfilter/af_compensationdelay.c static int query_formats(AVFilterContext *ctx)
ctx                79 libavfilter/af_compensationdelay.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx                86 libavfilter/af_compensationdelay.c     ret = ff_set_common_formats(ctx, formats);
ctx                93 libavfilter/af_compensationdelay.c     return ff_set_common_samplerates(ctx, formats);
ctx                98 libavfilter/af_compensationdelay.c     AVFilterContext *ctx = inlink->dst;
ctx                99 libavfilter/af_compensationdelay.c     CompensationDelayContext *s = ctx->priv;
ctx               123 libavfilter/af_compensationdelay.c     AVFilterContext *ctx = inlink->dst;
ctx               124 libavfilter/af_compensationdelay.c     CompensationDelayContext *s = ctx->priv;
ctx               134 libavfilter/af_compensationdelay.c     out = ff_get_audio_buffer(ctx->outputs[0], in->nb_samples);
ctx               161 libavfilter/af_compensationdelay.c     return ff_filter_frame(ctx->outputs[0], out);
ctx               164 libavfilter/af_compensationdelay.c static av_cold void uninit(AVFilterContext *ctx)
ctx               166 libavfilter/af_compensationdelay.c     CompensationDelayContext *s = ctx->priv;
ctx                42 libavfilter/af_crossfeed.c static int query_formats(AVFilterContext *ctx)
ctx                49 libavfilter/af_crossfeed.c         (ret = ff_set_common_formats         (ctx     , formats            )) < 0 ||
ctx                51 libavfilter/af_crossfeed.c         (ret = ff_set_common_channel_layouts (ctx     , layout             )) < 0 ||
ctx                52 libavfilter/af_crossfeed.c         (ret = ff_set_common_samplerates     (ctx     , ff_all_samplerates())) < 0)
ctx                60 libavfilter/af_crossfeed.c     AVFilterContext *ctx = inlink->dst;
ctx                61 libavfilter/af_crossfeed.c     CrossfeedContext *s = ctx->priv;
ctx                86 libavfilter/af_crossfeed.c     AVFilterContext *ctx = inlink->dst;
ctx                87 libavfilter/af_crossfeed.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                88 libavfilter/af_crossfeed.c     CrossfeedContext *s = ctx->priv;
ctx               123 libavfilter/af_crossfeed.c         if (ctx->is_disabled) {
ctx               137 libavfilter/af_crossfeed.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               142 libavfilter/af_crossfeed.c     ret = ff_filter_process_command(ctx, cmd, args, res, res_len, flags);
ctx               146 libavfilter/af_crossfeed.c     return config_input(ctx->inputs[0]);
ctx                32 libavfilter/af_crystalizer.c     int (*filter)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx                46 libavfilter/af_crystalizer.c static int query_formats(AVFilterContext *ctx)
ctx                60 libavfilter/af_crystalizer.c     ret = ff_set_common_formats(ctx, formats);
ctx                68 libavfilter/af_crystalizer.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx                73 libavfilter/af_crystalizer.c     return ff_set_common_samplerates(ctx, formats);
ctx                86 libavfilter/af_crystalizer.c static int filter_flt(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               121 libavfilter/af_crystalizer.c static int filter_dbl(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               157 libavfilter/af_crystalizer.c static int filter_fltp(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               190 libavfilter/af_crystalizer.c static int filter_dblp(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               225 libavfilter/af_crystalizer.c     AVFilterContext *ctx = inlink->dst;
ctx               226 libavfilter/af_crystalizer.c     CrystalizerContext *s = ctx->priv;
ctx               240 libavfilter/af_crystalizer.c     AVFilterContext *ctx = inlink->dst;
ctx               241 libavfilter/af_crystalizer.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               242 libavfilter/af_crystalizer.c     CrystalizerContext *s = ctx->priv;
ctx               270 libavfilter/af_crystalizer.c     td.mult = ctx->is_disabled ? 0.f : s->mult;
ctx               272 libavfilter/af_crystalizer.c     ctx->internal->execute(ctx, s->filter, &td, NULL, FFMIN(inlink->channels,
ctx               273 libavfilter/af_crystalizer.c                                                             ff_filter_get_nb_threads(ctx)));
ctx               281 libavfilter/af_crystalizer.c static av_cold void uninit(AVFilterContext *ctx)
ctx               283 libavfilter/af_crystalizer.c     CrystalizerContext *s = ctx->priv;
ctx                46 libavfilter/af_dcshift.c static av_cold int init(AVFilterContext *ctx)
ctx                48 libavfilter/af_dcshift.c     DCShiftContext *s = ctx->priv;
ctx                55 libavfilter/af_dcshift.c static int query_formats(AVFilterContext *ctx)
ctx                67 libavfilter/af_dcshift.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx                74 libavfilter/af_dcshift.c     ret = ff_set_common_formats(ctx, formats);
ctx                81 libavfilter/af_dcshift.c     return ff_set_common_samplerates(ctx, formats);
ctx                86 libavfilter/af_dcshift.c     AVFilterContext *ctx = inlink->dst;
ctx                87 libavfilter/af_dcshift.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                89 libavfilter/af_dcshift.c     DCShiftContext *s = ctx->priv;
ctx                71 libavfilter/af_deesser.c static int query_formats(AVFilterContext *ctx)
ctx                84 libavfilter/af_deesser.c     ret = ff_set_common_formats(ctx, formats);
ctx                92 libavfilter/af_deesser.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx                97 libavfilter/af_deesser.c     return ff_set_common_samplerates(ctx, formats);
ctx               102 libavfilter/af_deesser.c     AVFilterContext *ctx = inlink->dst;
ctx               103 libavfilter/af_deesser.c     DeesserContext *s = ctx->priv;
ctx               120 libavfilter/af_deesser.c     AVFilterContext *ctx = inlink->dst;
ctx               121 libavfilter/af_deesser.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               122 libavfilter/af_deesser.c     DeesserContext *s = ctx->priv;
ctx               192 libavfilter/af_deesser.c             if (ctx->is_disabled)
ctx               209 libavfilter/af_deesser.c static av_cold void uninit(AVFilterContext *ctx)
ctx               211 libavfilter/af_deesser.c     DeesserContext *s = ctx->priv;
ctx                56 libavfilter/af_drmeter.c static int query_formats(AVFilterContext *ctx)
ctx                69 libavfilter/af_drmeter.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx                76 libavfilter/af_drmeter.c     ret = ff_set_common_formats(ctx, formats);
ctx                83 libavfilter/af_drmeter.c     return ff_set_common_samplerates(ctx, formats);
ctx               159 libavfilter/af_drmeter.c static void print_stats(AVFilterContext *ctx)
ctx               161 libavfilter/af_drmeter.c     DRMeterContext *s = ctx->priv;
ctx               191 libavfilter/af_drmeter.c         av_log(ctx, AV_LOG_INFO, "Channel %d: DR: %.1f\n", ch + 1, chdr);
ctx               194 libavfilter/af_drmeter.c     av_log(ctx, AV_LOG_INFO, "Overall DR: %.1f\n", dr / s->nb_channels);
ctx               197 libavfilter/af_drmeter.c static av_cold void uninit(AVFilterContext *ctx)
ctx               199 libavfilter/af_drmeter.c     DRMeterContext *s = ctx->priv;
ctx               202 libavfilter/af_drmeter.c         print_stats(ctx);
ctx               118 libavfilter/af_dynaudnorm.c static av_cold int init(AVFilterContext *ctx)
ctx               120 libavfilter/af_dynaudnorm.c     DynamicAudioNormalizerContext *s = ctx->priv;
ctx               123 libavfilter/af_dynaudnorm.c         av_log(ctx, AV_LOG_WARNING, "filter size %d is invalid. Changing to an odd value.\n", s->filter_size);
ctx               130 libavfilter/af_dynaudnorm.c static int query_formats(AVFilterContext *ctx)
ctx               143 libavfilter/af_dynaudnorm.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               150 libavfilter/af_dynaudnorm.c     ret = ff_set_common_formats(ctx, formats);
ctx               157 libavfilter/af_dynaudnorm.c     return ff_set_common_samplerates(ctx, formats);
ctx               293 libavfilter/af_dynaudnorm.c static av_cold void uninit(AVFilterContext *ctx)
ctx               295 libavfilter/af_dynaudnorm.c     DynamicAudioNormalizerContext *s = ctx->priv;
ctx               328 libavfilter/af_dynaudnorm.c     AVFilterContext *ctx = inlink->dst;
ctx               329 libavfilter/af_dynaudnorm.c     DynamicAudioNormalizerContext *s = ctx->priv;
ctx               332 libavfilter/af_dynaudnorm.c     uninit(ctx);
ctx               336 libavfilter/af_dynaudnorm.c     av_log(ctx, AV_LOG_DEBUG, "frame len %d\n", s->frame_len);
ctx               708 libavfilter/af_dynaudnorm.c     AVFilterContext *ctx = inlink->dst;
ctx               709 libavfilter/af_dynaudnorm.c     DynamicAudioNormalizerContext *s = ctx->priv;
ctx               710 libavfilter/af_dynaudnorm.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               728 libavfilter/af_dynaudnorm.c         ff_bufqueue_add(ctx, &s->queue, in);
ctx               729 libavfilter/af_dynaudnorm.c         cqueue_enqueue(s->is_enabled, !ctx->is_disabled);
ctx               763 libavfilter/af_dynaudnorm.c     AVFilterContext *ctx = outlink->src;
ctx               764 libavfilter/af_dynaudnorm.c     DynamicAudioNormalizerContext *s = ctx->priv;
ctx               768 libavfilter/af_dynaudnorm.c         ret = flush_buffer(s, ctx->inputs[0], outlink);
ctx               779 libavfilter/af_dynaudnorm.c static int activate(AVFilterContext *ctx)
ctx               781 libavfilter/af_dynaudnorm.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               782 libavfilter/af_dynaudnorm.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               783 libavfilter/af_dynaudnorm.c     DynamicAudioNormalizerContext *s = ctx->priv;
ctx               801 libavfilter/af_dynaudnorm.c             ff_filter_set_ready(ctx, 10);
ctx               825 libavfilter/af_dynaudnorm.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               828 libavfilter/af_dynaudnorm.c     DynamicAudioNormalizerContext *s = ctx->priv;
ctx               829 libavfilter/af_dynaudnorm.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               833 libavfilter/af_dynaudnorm.c     ret = ff_filter_process_command(ctx, cmd, args, res, res_len, flags);
ctx                78 libavfilter/af_earwax.c static int query_formats(AVFilterContext *ctx)
ctx                87 libavfilter/af_earwax.c         (ret = ff_set_common_formats         (ctx     , formats                           )) < 0 ||
ctx                89 libavfilter/af_earwax.c         (ret = ff_set_common_channel_layouts (ctx     , layout                            )) < 0 ||
ctx                90 libavfilter/af_earwax.c         (ret = ff_set_common_samplerates     (ctx     , ff_make_format_list(sample_rates) )) < 0)
ctx                44 libavfilter/af_extrastereo.c static int query_formats(AVFilterContext *ctx)
ctx                51 libavfilter/af_extrastereo.c         (ret = ff_set_common_formats         (ctx     , formats            )) < 0 ||
ctx                53 libavfilter/af_extrastereo.c         (ret = ff_set_common_channel_layouts (ctx     , layout             )) < 0)
ctx                57 libavfilter/af_extrastereo.c     return ff_set_common_samplerates(ctx, formats);
ctx                62 libavfilter/af_extrastereo.c     AVFilterContext *ctx = inlink->dst;
ctx                63 libavfilter/af_extrastereo.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                64 libavfilter/af_extrastereo.c     ExtraStereoContext *s = ctx->priv;
ctx               173 libavfilter/af_firequalizer.c static av_cold void uninit(AVFilterContext *ctx)
ctx               175 libavfilter/af_firequalizer.c     FIREqualizerContext *s = ctx->priv;
ctx               182 libavfilter/af_firequalizer.c static int query_formats(AVFilterContext *ctx)
ctx               195 libavfilter/af_firequalizer.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               202 libavfilter/af_firequalizer.c     ret = ff_set_common_formats(ctx, formats);
ctx               209 libavfilter/af_firequalizer.c     return ff_set_common_samplerates(ctx, formats);
ctx               354 libavfilter/af_firequalizer.c static void dump_fir(AVFilterContext *ctx, FILE *fp, int ch)
ctx               356 libavfilter/af_firequalizer.c     FIREqualizerContext *s = ctx->priv;
ctx               357 libavfilter/af_firequalizer.c     int rate = ctx->inputs[0]->sample_rate;
ctx               415 libavfilter/af_firequalizer.c     AVFilterContext *ctx = p;
ctx               416 libavfilter/af_firequalizer.c     FIREqualizerContext *s = ctx->priv;
ctx               419 libavfilter/af_firequalizer.c         av_log(ctx, AV_LOG_ERROR, "entry table overflow.\n");
ctx               425 libavfilter/af_firequalizer.c         av_log(ctx, AV_LOG_ERROR, "nan frequency (%g, %g).\n", freq, gain);
ctx               431 libavfilter/af_firequalizer.c         av_log(ctx, AV_LOG_ERROR, "unsorted frequency (%g, %g).\n", freq, gain);
ctx               456 libavfilter/af_firequalizer.c     AVFilterContext *ctx = p;
ctx               457 libavfilter/af_firequalizer.c     FIREqualizerContext *s = ctx->priv;
ctx               491 libavfilter/af_firequalizer.c     AVFilterContext *ctx = p;
ctx               492 libavfilter/af_firequalizer.c     FIREqualizerContext *s = ctx->priv;
ctx               602 libavfilter/af_firequalizer.c static int generate_kernel(AVFilterContext *ctx, const char *gain, const char *gain_entry)
ctx               604 libavfilter/af_firequalizer.c     FIREqualizerContext *s = ctx->priv;
ctx               605 libavfilter/af_firequalizer.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               622 libavfilter/af_firequalizer.c                                      gain_entry_func_names, gain_entry_funcs, ctx, 0, ctx);
ctx               629 libavfilter/af_firequalizer.c     av_log(ctx, AV_LOG_DEBUG, "nb_gain_entry = %d.\n", s->nb_gain_entry);
ctx               632 libavfilter/af_firequalizer.c                         gain_func_names, gain_funcs, NULL, NULL, 0, ctx);
ctx               637 libavfilter/af_firequalizer.c         av_log(ctx, AV_LOG_WARNING, "dumping failed.\n");
ctx               650 libavfilter/af_firequalizer.c         result = av_expr_eval(gain_expr, vars, ctx);
ctx               656 libavfilter/af_firequalizer.c         result = av_expr_eval(gain_expr, vars, ctx);
ctx               663 libavfilter/af_firequalizer.c             result = av_expr_eval(gain_expr, vars, ctx);
ctx               725 libavfilter/af_firequalizer.c                 av_log(ctx, AV_LOG_ERROR, "filter kernel contains nan or infinity.\n");
ctx               741 libavfilter/af_firequalizer.c             dump_fir(ctx, dump_fp, ch);
ctx               759 libavfilter/af_firequalizer.c     AVFilterContext *ctx = inlink->dst;
ctx               760 libavfilter/af_firequalizer.c     FIREqualizerContext *s = ctx->priv;
ctx               779 libavfilter/af_firequalizer.c         av_log(ctx, AV_LOG_ERROR, "too large delay, please decrease it.\n");
ctx               792 libavfilter/af_firequalizer.c             av_log(ctx, AV_LOG_ERROR, "too large delay, please decrease it.\n");
ctx               815 libavfilter/af_firequalizer.c         av_log(ctx, AV_LOG_ERROR, "too small accuracy, please increase it.\n");
ctx               835 libavfilter/af_firequalizer.c     av_log(ctx, AV_LOG_DEBUG, "sample_rate = %d, channels = %d, analysis_rdft_len = %d, rdft_len = %d, fir_len = %d, nsamples_max = %d.\n",
ctx               841 libavfilter/af_firequalizer.c     return generate_kernel(ctx, SELECT_GAIN(s), SELECT_GAIN_ENTRY(s));
ctx               846 libavfilter/af_firequalizer.c     AVFilterContext *ctx = inlink->dst;
ctx               847 libavfilter/af_firequalizer.c     FIREqualizerContext *s = ctx->priv;
ctx               877 libavfilter/af_firequalizer.c     return ff_filter_frame(ctx->outputs[0], frame);
ctx               882 libavfilter/af_firequalizer.c     AVFilterContext *ctx = outlink->src;
ctx               883 libavfilter/af_firequalizer.c     FIREqualizerContext *s= ctx->priv;
ctx               886 libavfilter/af_firequalizer.c     ret = ff_request_frame(ctx->inputs[0]);
ctx               896 libavfilter/af_firequalizer.c         ret = filter_frame(ctx->inputs[0], frame);
ctx               902 libavfilter/af_firequalizer.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               905 libavfilter/af_firequalizer.c     FIREqualizerContext *s = ctx->priv;
ctx               912 libavfilter/af_firequalizer.c             av_log(ctx, AV_LOG_DEBUG, "equal gain, do not rebuild.\n");
ctx               920 libavfilter/af_firequalizer.c         ret = generate_kernel(ctx, gain_cmd, SELECT_GAIN_ENTRY(s));
ctx               931 libavfilter/af_firequalizer.c             av_log(ctx, AV_LOG_DEBUG, "equal gain_entry, do not rebuild.\n");
ctx               939 libavfilter/af_firequalizer.c         ret = generate_kernel(ctx, SELECT_GAIN(s), gain_entry_cmd);
ctx                75 libavfilter/af_flanger.c static av_cold int init(AVFilterContext *ctx)
ctx                77 libavfilter/af_flanger.c     FlangerContext *s = ctx->priv;
ctx                91 libavfilter/af_flanger.c static int query_formats(AVFilterContext *ctx)
ctx               103 libavfilter/af_flanger.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               110 libavfilter/af_flanger.c     ret = ff_set_common_formats(ctx, formats);
ctx               117 libavfilter/af_flanger.c     return ff_set_common_samplerates(ctx, formats);
ctx               122 libavfilter/af_flanger.c     AVFilterContext *ctx = inlink->dst;
ctx               123 libavfilter/af_flanger.c     FlangerContext *s = ctx->priv;
ctx               143 libavfilter/af_flanger.c     AVFilterContext *ctx = inlink->dst;
ctx               144 libavfilter/af_flanger.c     FlangerContext *s = ctx->priv;
ctx               151 libavfilter/af_flanger.c         out_frame = ff_get_audio_buffer(ctx->outputs[0], frame->nb_samples);
ctx               203 libavfilter/af_flanger.c     return ff_filter_frame(ctx->outputs[0], out_frame);
ctx               206 libavfilter/af_flanger.c static av_cold void uninit(AVFilterContext *ctx)
ctx               208 libavfilter/af_flanger.c     FlangerContext *s = ctx->priv;
ctx                82 libavfilter/af_haas.c static int query_formats(AVFilterContext *ctx)
ctx                89 libavfilter/af_haas.c         (ret = ff_set_common_formats         (ctx     , formats            )) < 0 ||
ctx                91 libavfilter/af_haas.c         (ret = ff_set_common_channel_layouts (ctx     , layout             )) < 0)
ctx                95 libavfilter/af_haas.c     return ff_set_common_samplerates(ctx, formats);
ctx               100 libavfilter/af_haas.c     AVFilterContext *ctx = inlink->dst;
ctx               101 libavfilter/af_haas.c     HaasContext *s = ctx->priv;
ctx               132 libavfilter/af_haas.c     AVFilterContext *ctx = inlink->dst;
ctx               133 libavfilter/af_haas.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               134 libavfilter/af_haas.c     HaasContext *s = ctx->priv;
ctx               193 libavfilter/af_haas.c static av_cold void uninit(AVFilterContext *ctx)
ctx               195 libavfilter/af_haas.c     HaasContext *s = ctx->priv;
ctx              1041 libavfilter/af_hdcd.c static int hdcd_integrate(HDCDContext *ctx, hdcd_state *states, int channels, int *flag, const int32_t *samples, int count, int stride)
ctx              1079 libavfilter/af_hdcd.c                         av_log(ctx->fctx, AV_LOG_VERBOSE,
ctx              1081 libavfilter/af_hdcd.c                                wbits & 0xff, ctx->sample_count);
ctx              1094 libavfilter/af_hdcd.c                         av_log(ctx->fctx, AV_LOG_VERBOSE,
ctx              1097 libavfilter/af_hdcd.c                                wbits & 0xffff, (wbits & 0xff00) >> 8, ~wbits & 0xff, ctx->sample_count);
ctx              1126 libavfilter/af_hdcd.c static int hdcd_scan(HDCDContext *ctx, hdcd_state *states, int channels, const int32_t *samples, int max, int stride)
ctx              1150 libavfilter/af_hdcd.c         int consumed = hdcd_integrate(ctx, states, channels, &flag, samples, max - result, stride);
ctx              1335 libavfilter/af_hdcd.c static void hdcd_control(HDCDContext *ctx, hdcd_state *state, int *peak_extend, int *target_gain)
ctx              1337 libavfilter/af_hdcd.c     *peak_extend = (ctx->force_pe || state->control & 16);
ctx              1346 libavfilter/af_hdcd.c static hdcd_control_result hdcd_control_stereo(HDCDContext *ctx, int *peak_extend0, int *peak_extend1)
ctx              1349 libavfilter/af_hdcd.c     hdcd_control(ctx, &ctx->state[0], peak_extend0, &target_gain[0]);
ctx              1350 libavfilter/af_hdcd.c     hdcd_control(ctx, &ctx->state[1], peak_extend1, &target_gain[1]);
ctx              1352 libavfilter/af_hdcd.c         ctx->val_target_gain = target_gain[0];
ctx              1354 libavfilter/af_hdcd.c         av_log(ctx->fctx, AV_LOG_VERBOSE,
ctx              1356 libavfilter/af_hdcd.c            ctx->sample_count,
ctx              1359 libavfilter/af_hdcd.c            GAINTOFLOAT(ctx->val_target_gain >>7) );
ctx              1365 libavfilter/af_hdcd.c static void hdcd_process(HDCDContext *ctx, hdcd_state *state, int32_t *samples, int count, int stride)
ctx              1372 libavfilter/af_hdcd.c     if (ctx->analyze_mode)
ctx              1375 libavfilter/af_hdcd.c     hdcd_control(ctx, state, &peak_extend, &target_gain);
ctx              1381 libavfilter/af_hdcd.c         run = hdcd_scan(ctx, state, 1, samples + lead * stride, count - lead, 0) + lead;
ctx              1385 libavfilter/af_hdcd.c         if (ctx->analyze_mode)
ctx              1386 libavfilter/af_hdcd.c             gain = hdcd_analyze(samples, envelope_run, stride, gain, target_gain, peak_extend, ctx->analyze_mode, state->sustain, -1);
ctx              1388 libavfilter/af_hdcd.c             gain = hdcd_envelope(samples, envelope_run, stride, ctx->bits_per_sample, gain, target_gain, peak_extend);
ctx              1393 libavfilter/af_hdcd.c         hdcd_control(ctx, state, &peak_extend, &target_gain);
ctx              1397 libavfilter/af_hdcd.c         if (ctx->analyze_mode)
ctx              1398 libavfilter/af_hdcd.c             gain = hdcd_analyze(samples, lead, stride, gain, target_gain, peak_extend, ctx->analyze_mode, state->sustain, -1);
ctx              1400 libavfilter/af_hdcd.c             gain = hdcd_envelope(samples, lead, stride, ctx->bits_per_sample, gain, target_gain, peak_extend);
ctx              1406 libavfilter/af_hdcd.c static void hdcd_process_stereo(HDCDContext *ctx, int32_t *samples, int count)
ctx              1410 libavfilter/af_hdcd.c     int gain[2] = {ctx->state[0].running_gain, ctx->state[1].running_gain};
ctx              1415 libavfilter/af_hdcd.c     if (ctx->analyze_mode) {
ctx              1416 libavfilter/af_hdcd.c         hdcd_analyze_prepare(&ctx->state[0], samples, count, stride);
ctx              1417 libavfilter/af_hdcd.c         hdcd_analyze_prepare(&ctx->state[1], samples + 1, count, stride);
ctx              1420 libavfilter/af_hdcd.c     ctlret = hdcd_control_stereo(ctx, &peak_extend[0], &peak_extend[1]);
ctx              1425 libavfilter/af_hdcd.c         run = hdcd_scan(ctx, ctx->state, 2, samples + lead * stride, count - lead, 0) + lead;
ctx              1430 libavfilter/af_hdcd.c         if (ctx->analyze_mode) {
ctx              1431 libavfilter/af_hdcd.c             gain[0] = hdcd_analyze(samples, envelope_run, stride, gain[0], ctx->val_target_gain, peak_extend[0],
ctx              1432 libavfilter/af_hdcd.c                 ctx->analyze_mode,
ctx              1433 libavfilter/af_hdcd.c                 ctx->state[0].sustain,
ctx              1435 libavfilter/af_hdcd.c             gain[1] = hdcd_analyze(samples + 1, envelope_run, stride, gain[1], ctx->val_target_gain, peak_extend[1],
ctx              1436 libavfilter/af_hdcd.c                 ctx->analyze_mode,
ctx              1437 libavfilter/af_hdcd.c                 ctx->state[1].sustain,
ctx              1440 libavfilter/af_hdcd.c             gain[0] = hdcd_envelope(samples, envelope_run, stride, ctx->bits_per_sample, gain[0], ctx->val_target_gain, peak_extend[0]);
ctx              1441 libavfilter/af_hdcd.c             gain[1] = hdcd_envelope(samples + 1, envelope_run, stride, ctx->bits_per_sample, gain[1], ctx->val_target_gain, peak_extend[1]);
ctx              1448 libavfilter/af_hdcd.c         ctlret = hdcd_control_stereo(ctx, &peak_extend[0], &peak_extend[1]);
ctx              1452 libavfilter/af_hdcd.c         if (ctx->analyze_mode) {
ctx              1453 libavfilter/af_hdcd.c             gain[0] = hdcd_analyze(samples, lead, stride, gain[0], ctx->val_target_gain, peak_extend[0],
ctx              1454 libavfilter/af_hdcd.c                 ctx->analyze_mode,
ctx              1455 libavfilter/af_hdcd.c                 ctx->state[0].sustain,
ctx              1457 libavfilter/af_hdcd.c             gain[1] = hdcd_analyze(samples + 1, lead, stride, gain[1], ctx->val_target_gain, peak_extend[1],
ctx              1458 libavfilter/af_hdcd.c                 ctx->analyze_mode,
ctx              1459 libavfilter/af_hdcd.c                 ctx->state[1].sustain,
ctx              1462 libavfilter/af_hdcd.c             gain[0] = hdcd_envelope(samples, lead, stride, ctx->bits_per_sample, gain[0], ctx->val_target_gain, peak_extend[0]);
ctx              1463 libavfilter/af_hdcd.c             gain[1] = hdcd_envelope(samples + 1, lead, stride, ctx->bits_per_sample, gain[1], ctx->val_target_gain, peak_extend[1]);
ctx              1467 libavfilter/af_hdcd.c     ctx->state[0].running_gain = gain[0];
ctx              1468 libavfilter/af_hdcd.c     ctx->state[1].running_gain = gain[1];
ctx              1529 libavfilter/af_hdcd.c     AVFilterContext *ctx = inlink->dst;
ctx              1530 libavfilter/af_hdcd.c     HDCDContext *s = ctx->priv;
ctx              1531 libavfilter/af_hdcd.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              1602 libavfilter/af_hdcd.c static int query_formats(AVFilterContext *ctx)
ctx              1613 libavfilter/af_hdcd.c     AVFilterLink *inlink  = ctx->inputs[0];
ctx              1614 libavfilter/af_hdcd.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              1636 libavfilter/af_hdcd.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx              1651 libavfilter/af_hdcd.c         ff_set_common_samplerates(ctx, ff_make_format_list(sample_rates) );
ctx              1654 libavfilter/af_hdcd.c static av_cold void uninit(AVFilterContext *ctx)
ctx              1656 libavfilter/af_hdcd.c     HDCDContext *s = ctx->priv;
ctx              1662 libavfilter/af_hdcd.c         av_log(ctx, AV_LOG_VERBOSE, "Channel %d: counter A: %d, B: %d, C: %d\n", i,
ctx              1664 libavfilter/af_hdcd.c         av_log(ctx, AV_LOG_VERBOSE, "Channel %d: pe: %d, tf: %d, almost_A: %d, checkfail_B: %d, unmatched_C: %d, cdt_expired: %d\n", i,
ctx              1672 libavfilter/af_hdcd.c             av_log(ctx, AV_LOG_VERBOSE, "Channel %d: tg %0.1f: %d\n", i, GAINTOFLOAT(j), state->gain_counts[j]);
ctx              1675 libavfilter/af_hdcd.c     av_log(ctx, AV_LOG_VERBOSE, "Packets: type: %s, total: %d\n",
ctx              1681 libavfilter/af_hdcd.c         av_log(ctx, AV_LOG_INFO,
ctx              1690 libavfilter/af_hdcd.c         av_log(ctx, AV_LOG_INFO, "HDCD detected: no%s\n",
ctx              1696 libavfilter/af_hdcd.c static av_cold int init(AVFilterContext *ctx)
ctx              1698 libavfilter/af_hdcd.c     HDCDContext *s = ctx->priv;
ctx              1701 libavfilter/af_hdcd.c     s->fctx = ctx;
ctx              1705 libavfilter/af_hdcd.c         av_log(ctx, AV_LOG_VERBOSE, "Disabling automatic format conversion.\n");
ctx              1706 libavfilter/af_hdcd.c         avfilter_graph_set_auto_convert(ctx->graph, AVFILTER_AUTO_CONVERT_NONE);
ctx              1712 libavfilter/af_hdcd.c     AVFilterContext *ctx = inlink->dst;
ctx              1713 libavfilter/af_hdcd.c     HDCDContext *s = ctx->priv;
ctx              1716 libavfilter/af_hdcd.c     av_log(ctx, AV_LOG_VERBOSE, "Auto-convert: %s\n",
ctx              1717 libavfilter/af_hdcd.c         (ctx->graph->disable_auto_convert) ? "disabled" : "enabled");
ctx              1722 libavfilter/af_hdcd.c             av_log(ctx, AV_LOG_WARNING, "bits_per_sample %d does not fit into sample format %s, falling back to 16\n",
ctx              1726 libavfilter/af_hdcd.c         av_log(ctx, AV_LOG_VERBOSE, "Looking for %d-bit HDCD in sample format %s\n",
ctx              1731 libavfilter/af_hdcd.c         av_log(ctx, AV_LOG_WARNING, "20 and 24-bit HDCD decoding is experimental\n");
ctx              1733 libavfilter/af_hdcd.c         av_log(ctx, AV_LOG_WARNING, "HDCD decoding for sample rates other than 44100 is experimental\n");
ctx              1739 libavfilter/af_hdcd.c     av_log(ctx, AV_LOG_VERBOSE, "CDT period: %dms (%u samples @44100Hz)\n",
ctx              1743 libavfilter/af_hdcd.c         av_log(ctx, AV_LOG_WARNING, "process_stereo disabled (channels = %d)\n", inlink->channels);
ctx              1746 libavfilter/af_hdcd.c     av_log(ctx, AV_LOG_VERBOSE, "Process mode: %s\n",
ctx              1749 libavfilter/af_hdcd.c     av_log(ctx, AV_LOG_VERBOSE, "Force PE: %s\n",
ctx              1751 libavfilter/af_hdcd.c     av_log(ctx, AV_LOG_VERBOSE, "Analyze mode: [%d] %s\n",
ctx               115 libavfilter/af_headphone.c static void parse_map(AVFilterContext *ctx)
ctx               117 libavfilter/af_headphone.c     HeadphoneContext *s = ctx->priv;
ctx               138 libavfilter/af_headphone.c             av_log(ctx, AV_LOG_WARNING, "Failed to parse \'%s\' as channel name.\n", buf);
ctx               165 libavfilter/af_headphone.c static int headphone_convolute(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               167 libavfilter/af_headphone.c     HeadphoneContext *s = ctx->priv;
ctx               239 libavfilter/af_headphone.c static int headphone_fast_convolute(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               241 libavfilter/af_headphone.c     HeadphoneContext *s = ctx->priv;
ctx               338 libavfilter/af_headphone.c     AVFilterContext *ctx = inlink->dst;
ctx               339 libavfilter/af_headphone.c     HeadphoneContext *s = ctx->priv;
ctx               345 libavfilter/af_headphone.c         av_log(ctx, AV_LOG_ERROR, "Too big length of IRs: %d > %d.\n", ir_len, max_ir_len);
ctx               356 libavfilter/af_headphone.c     AVFilterContext *ctx = outlink->src;
ctx               375 libavfilter/af_headphone.c         ctx->internal->execute(ctx, headphone_convolute, &td, NULL, 2);
ctx               377 libavfilter/af_headphone.c         ctx->internal->execute(ctx, headphone_fast_convolute, &td, NULL, 2);
ctx               382 libavfilter/af_headphone.c         av_log(ctx, AV_LOG_WARNING, "%d of %d samples clipped. Please reduce gain.\n",
ctx               390 libavfilter/af_headphone.c static int convert_coeffs(AVFilterContext *ctx, AVFilterLink *inlink)
ctx               392 libavfilter/af_headphone.c     struct HeadphoneContext *s = ctx->priv;
ctx               395 libavfilter/af_headphone.c     int nb_input_channels = ctx->inputs[0]->channels;
ctx               429 libavfilter/af_headphone.c             av_log(ctx, AV_LOG_ERROR, "Unable to create FFT contexts of size %d.\n", s->n_fft);
ctx               488 libavfilter/af_headphone.c         ret = ff_inlink_consume_samples(ctx->inputs[i + 1], len, len, &s->in[i + 1].frame);
ctx               533 libavfilter/af_headphone.c             int I, N = ctx->inputs[1]->channels;
ctx               617 libavfilter/af_headphone.c static int activate(AVFilterContext *ctx)
ctx               619 libavfilter/af_headphone.c     HeadphoneContext *s = ctx->priv;
ctx               620 libavfilter/af_headphone.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               621 libavfilter/af_headphone.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               625 libavfilter/af_headphone.c     FF_FILTER_FORWARD_STATUS_BACK_ALL(ctx->outputs[0], ctx);
ctx               631 libavfilter/af_headphone.c             if ((ret = check_ir(ctx->inputs[i], i)) < 0)
ctx               635 libavfilter/af_headphone.c                 if (ff_outlink_get_status(ctx->inputs[i]) == AVERROR_EOF)
ctx               646 libavfilter/af_headphone.c             if (ff_outlink_frame_wanted(ctx->outputs[0])) {
ctx               649 libavfilter/af_headphone.c                         ff_inlink_request_frame(ctx->inputs[i]);
ctx               660 libavfilter/af_headphone.c         ret = convert_coeffs(ctx, inlink);
ctx               665 libavfilter/af_headphone.c     if ((ret = ff_inlink_consume_samples(ctx->inputs[0], s->size, s->size, &in)) > 0) {
ctx               674 libavfilter/af_headphone.c     FF_FILTER_FORWARD_STATUS(ctx->inputs[0], ctx->outputs[0]);
ctx               675 libavfilter/af_headphone.c     if (ff_outlink_frame_wanted(ctx->outputs[0]))
ctx               676 libavfilter/af_headphone.c         ff_inlink_request_frame(ctx->inputs[0]);
ctx               681 libavfilter/af_headphone.c static int query_formats(AVFilterContext *ctx)
ctx               683 libavfilter/af_headphone.c     struct HeadphoneContext *s = ctx->priv;
ctx               693 libavfilter/af_headphone.c     ret = ff_set_common_formats(ctx, formats);
ctx               701 libavfilter/af_headphone.c     ret = ff_channel_layouts_ref(layouts, &ctx->inputs[0]->out_channel_layouts);
ctx               713 libavfilter/af_headphone.c         ret = ff_channel_layouts_ref(hrir_layouts, &ctx->inputs[1]->out_channel_layouts);
ctx               718 libavfilter/af_headphone.c             ret = ff_channel_layouts_ref(stereo_layout, &ctx->inputs[i]->out_channel_layouts);
ctx               724 libavfilter/af_headphone.c     ret = ff_channel_layouts_ref(stereo_layout, &ctx->outputs[0]->in_channel_layouts);
ctx               731 libavfilter/af_headphone.c     return ff_set_common_samplerates(ctx, formats);
ctx               736 libavfilter/af_headphone.c     AVFilterContext *ctx = inlink->dst;
ctx               737 libavfilter/af_headphone.c     HeadphoneContext *s = ctx->priv;
ctx               740 libavfilter/af_headphone.c         av_log(ctx, AV_LOG_ERROR, "Number of HRIRs must be >= %d.\n", inlink->channels);
ctx               747 libavfilter/af_headphone.c static av_cold int init(AVFilterContext *ctx)
ctx               749 libavfilter/af_headphone.c     HeadphoneContext *s = ctx->priv;
ctx               757 libavfilter/af_headphone.c     if ((ret = ff_insert_inpad(ctx, 0, &pad)) < 0)
ctx               761 libavfilter/af_headphone.c         av_log(ctx, AV_LOG_ERROR, "Valid mapping must be set.\n");
ctx               765 libavfilter/af_headphone.c     parse_map(ctx);
ctx               779 libavfilter/af_headphone.c         if ((ret = ff_insert_inpad(ctx, i, &pad)) < 0) {
ctx               794 libavfilter/af_headphone.c     AVFilterContext *ctx = outlink->src;
ctx               795 libavfilter/af_headphone.c     HeadphoneContext *s = ctx->priv;
ctx               796 libavfilter/af_headphone.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               799 libavfilter/af_headphone.c         AVFilterLink *hrir_link = ctx->inputs[1];
ctx               802 libavfilter/af_headphone.c             av_log(ctx, AV_LOG_ERROR, "Number of channels in HRIR stream must be >= %d.\n", inlink->channels * 2);
ctx               812 libavfilter/af_headphone.c static av_cold void uninit(AVFilterContext *ctx)
ctx               814 libavfilter/af_headphone.c     HeadphoneContext *s = ctx->priv;
ctx               838 libavfilter/af_headphone.c         if (ctx->input_pads && i)
ctx               839 libavfilter/af_headphone.c             av_freep(&ctx->input_pads[i].name);
ctx                83 libavfilter/af_join.c static int parse_maps(AVFilterContext *ctx)
ctx                85 libavfilter/af_join.c     JoinContext *s = ctx->priv;
ctx               100 libavfilter/af_join.c             av_log(ctx, AV_LOG_ERROR, "Missing separator '-' in channel "
ctx               108 libavfilter/af_join.c             av_log(ctx, AV_LOG_ERROR, "Invalid " inout " channel: %s.\n", str);\
ctx               112 libavfilter/af_join.c             av_log(ctx, AV_LOG_ERROR, "Channel map describes more than one "   \
ctx               120 libavfilter/af_join.c             av_log(ctx, AV_LOG_ERROR, "Output channel '%s' is not present in "
ctx               128 libavfilter/af_join.c             av_log(ctx, AV_LOG_ERROR, "Multiple maps for output channel "
ctx               136 libavfilter/af_join.c             av_log(ctx, AV_LOG_ERROR, "Invalid input stream index: %d.\n",
ctx               162 libavfilter/af_join.c static av_cold int join_init(AVFilterContext *ctx)
ctx               164 libavfilter/af_join.c     JoinContext *s = ctx->priv;
ctx               168 libavfilter/af_join.c         av_log(ctx, AV_LOG_ERROR, "Error parsing channel layout '%s'.\n",
ctx               185 libavfilter/af_join.c     if ((ret = parse_maps(ctx)) < 0)
ctx               196 libavfilter/af_join.c         if ((ret = ff_insert_inpad(ctx, i, &pad)) < 0) {
ctx               205 libavfilter/af_join.c static av_cold void join_uninit(AVFilterContext *ctx)
ctx               207 libavfilter/af_join.c     JoinContext *s = ctx->priv;
ctx               214 libavfilter/af_join.c     for (i = 0; i < ctx->nb_inputs; i++) {
ctx               215 libavfilter/af_join.c         av_freep(&ctx->input_pads[i].name);
ctx               223 libavfilter/af_join.c static int join_query_formats(AVFilterContext *ctx)
ctx               225 libavfilter/af_join.c     JoinContext *s = ctx->priv;
ctx               230 libavfilter/af_join.c         (ret = ff_channel_layouts_ref(layouts, &ctx->outputs[0]->in_channel_layouts)) < 0)
ctx               233 libavfilter/af_join.c     for (i = 0; i < ctx->nb_inputs; i++) {
ctx               235 libavfilter/af_join.c         if ((ret = ff_channel_layouts_ref(layouts, &ctx->inputs[i]->out_channel_layouts)) < 0)
ctx               239 libavfilter/af_join.c     if ((ret = ff_set_common_formats(ctx, ff_planar_sample_fmts())) < 0 ||
ctx               240 libavfilter/af_join.c         (ret = ff_set_common_samplerates(ctx, ff_all_samplerates())) < 0)
ctx               246 libavfilter/af_join.c static void guess_map_matching(AVFilterContext *ctx, ChannelMap *ch,
ctx               251 libavfilter/af_join.c     for (i = 0; i < ctx->nb_inputs; i++) {
ctx               252 libavfilter/af_join.c         AVFilterLink *link = ctx->inputs[i];
ctx               264 libavfilter/af_join.c static void guess_map_any(AVFilterContext *ctx, ChannelMap *ch,
ctx               269 libavfilter/af_join.c     for (i = 0; i < ctx->nb_inputs; i++) {
ctx               270 libavfilter/af_join.c         AVFilterLink *link = ctx->inputs[i];
ctx               285 libavfilter/af_join.c     AVFilterContext *ctx = outlink->src;
ctx               286 libavfilter/af_join.c     JoinContext       *s = ctx->priv;
ctx               291 libavfilter/af_join.c     if (!(inputs = av_mallocz_array(ctx->nb_inputs, sizeof(*inputs))))
ctx               300 libavfilter/af_join.c         inlink = ctx->inputs[ch->input];
ctx               307 libavfilter/af_join.c             av_log(ctx, AV_LOG_ERROR, "Requested channel %s is not present in "
ctx               323 libavfilter/af_join.c             guess_map_matching(ctx, ch, inputs);
ctx               331 libavfilter/af_join.c             guess_map_any(ctx, ch, inputs);
ctx               334 libavfilter/af_join.c             av_log(ctx, AV_LOG_ERROR, "Could not find input channel for "
ctx               340 libavfilter/af_join.c         ch->in_channel_idx = av_get_channel_layout_channel_index(ctx->inputs[ch->input]->channel_layout,
ctx               345 libavfilter/af_join.c     av_log(ctx, AV_LOG_VERBOSE, "mappings: ");
ctx               348 libavfilter/af_join.c         av_log(ctx, AV_LOG_VERBOSE, "%d.%s => %s ", ch->input,
ctx               352 libavfilter/af_join.c     av_log(ctx, AV_LOG_VERBOSE, "\n");
ctx               354 libavfilter/af_join.c     for (i = 0; i < ctx->nb_inputs; i++) {
ctx               356 libavfilter/af_join.c             av_log(ctx, AV_LOG_WARNING, "No channels are used from input "
ctx               365 libavfilter/af_join.c static int try_push_frame(AVFilterContext *ctx)
ctx               367 libavfilter/af_join.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               368 libavfilter/af_join.c     JoinContext *s       = ctx->priv;
ctx               375 libavfilter/af_join.c     for (i = 0; i < ctx->nb_inputs; i++) {
ctx               460 libavfilter/af_join.c     for (i = 0; i < ctx->nb_inputs; i++)
ctx               470 libavfilter/af_join.c static int activate(AVFilterContext *ctx)
ctx               472 libavfilter/af_join.c     JoinContext *s = ctx->priv;
ctx               477 libavfilter/af_join.c     FF_FILTER_FORWARD_STATUS_BACK_ALL(ctx->outputs[0], ctx);
ctx               480 libavfilter/af_join.c         ret = ff_inlink_consume_frame(ctx->inputs[0], &s->input_frames[0]);
ctx               483 libavfilter/af_join.c         } else if (ff_inlink_acknowledge_status(ctx->inputs[0], &status, &pts)) {
ctx               484 libavfilter/af_join.c             ff_outlink_set_status(ctx->outputs[0], status, pts);
ctx               487 libavfilter/af_join.c             if (ff_outlink_frame_wanted(ctx->outputs[0]) && !s->input_frames[0]) {
ctx               488 libavfilter/af_join.c                 ff_inlink_request_frame(ctx->inputs[0]);
ctx               499 libavfilter/af_join.c     for (i = 1; i < ctx->nb_inputs && nb_samples > 0; i++) {
ctx               503 libavfilter/af_join.c         if (ff_inlink_check_available_samples(ctx->inputs[i], nb_samples) > 0) {
ctx               504 libavfilter/af_join.c             ret = ff_inlink_consume_samples(ctx->inputs[i], nb_samples, nb_samples, &s->input_frames[i]);
ctx               507 libavfilter/af_join.c             } else if (ff_inlink_acknowledge_status(ctx->inputs[i], &status, &pts)) {
ctx               508 libavfilter/af_join.c                 ff_outlink_set_status(ctx->outputs[0], status, pts);
ctx               512 libavfilter/af_join.c             if (ff_outlink_frame_wanted(ctx->outputs[0])) {
ctx               513 libavfilter/af_join.c                 ff_inlink_request_frame(ctx->inputs[i]);
ctx               519 libavfilter/af_join.c     return try_push_frame(ctx);
ctx                89 libavfilter/af_ladspa.c static void print_ctl_info(AVFilterContext *ctx, int level,
ctx                95 libavfilter/af_ladspa.c     av_log(ctx, level, "c%i: %s [", ctl, s->desc->PortNames[map[ctl]]);
ctx                98 libavfilter/af_ladspa.c         av_log(ctx, level, "toggled (1 or 0)");
ctx               101 libavfilter/af_ladspa.c             av_log(ctx, level, " (default %i)", (int)values[ctl]);
ctx               104 libavfilter/af_ladspa.c             av_log(ctx, level, "<int>");
ctx               107 libavfilter/af_ladspa.c                 av_log(ctx, level, ", min: %i", (int)h->LowerBound);
ctx               110 libavfilter/af_ladspa.c                 av_log(ctx, level, ", max: %i", (int)h->UpperBound);
ctx               113 libavfilter/af_ladspa.c                 av_log(ctx, level, " (value %d)", (int)values[ctl]);
ctx               115 libavfilter/af_ladspa.c                 av_log(ctx, level, " (default %d)", (int)values[ctl]);
ctx               117 libavfilter/af_ladspa.c             av_log(ctx, level, "<float>");
ctx               120 libavfilter/af_ladspa.c                 av_log(ctx, level, ", min: %f", h->LowerBound);
ctx               123 libavfilter/af_ladspa.c                 av_log(ctx, level, ", max: %f", h->UpperBound);
ctx               126 libavfilter/af_ladspa.c                 av_log(ctx, level, " (value %f)", values[ctl]);
ctx               128 libavfilter/af_ladspa.c                 av_log(ctx, level, " (default %f)", values[ctl]);
ctx               132 libavfilter/af_ladspa.c             av_log(ctx, level, ", multiple of sample rate");
ctx               135 libavfilter/af_ladspa.c             av_log(ctx, level, ", logarithmic scale");
ctx               138 libavfilter/af_ladspa.c     av_log(ctx, level, "]\n");
ctx               143 libavfilter/af_ladspa.c     AVFilterContext *ctx = inlink->dst;
ctx               144 libavfilter/af_ladspa.c     LADSPAContext *s = ctx->priv;
ctx               155 libavfilter/af_ladspa.c         out = ff_get_audio_buffer(ctx->outputs[0], in->nb_samples);
ctx               182 libavfilter/af_ladspa.c         print_ctl_info(ctx, AV_LOG_VERBOSE, s, i, s->ocmap, s->octlv, 1);
ctx               187 libavfilter/af_ladspa.c     return ff_filter_frame(ctx->outputs[0], out);
ctx               192 libavfilter/af_ladspa.c     AVFilterContext *ctx = outlink->src;
ctx               193 libavfilter/af_ladspa.c     LADSPAContext *s = ctx->priv;
ctx               198 libavfilter/af_ladspa.c     if (ctx->nb_inputs)
ctx               199 libavfilter/af_ladspa.c         return ff_request_frame(ctx->inputs[0]);
ctx               216 libavfilter/af_ladspa.c         print_ctl_info(ctx, AV_LOG_INFO, s, i, s->ocmap, s->octlv, 1);
ctx               262 libavfilter/af_ladspa.c static int connect_ports(AVFilterContext *ctx, AVFilterLink *link)
ctx               264 libavfilter/af_ladspa.c     LADSPAContext *s = ctx->priv;
ctx               275 libavfilter/af_ladspa.c             av_log(ctx, AV_LOG_ERROR, "Could not instantiate plugin.\n");
ctx               291 libavfilter/af_ladspa.c     av_log(ctx, AV_LOG_DEBUG, "handles: %d\n", s->nb_handles);
ctx               298 libavfilter/af_ladspa.c     AVFilterContext *ctx = inlink->dst;
ctx               300 libavfilter/af_ladspa.c     return connect_ports(ctx, inlink);
ctx               305 libavfilter/af_ladspa.c     AVFilterContext *ctx = outlink->src;
ctx               306 libavfilter/af_ladspa.c     LADSPAContext *s = ctx->priv;
ctx               309 libavfilter/af_ladspa.c     if (ctx->nb_inputs) {
ctx               310 libavfilter/af_ladspa.c         AVFilterLink *inlink = ctx->inputs[0];
ctx               324 libavfilter/af_ladspa.c         ret = connect_ports(ctx, outlink);
ctx               362 libavfilter/af_ladspa.c static int set_control(AVFilterContext *ctx, unsigned long port, LADSPA_Data value)
ctx               364 libavfilter/af_ladspa.c     LADSPAContext *s = ctx->priv;
ctx               370 libavfilter/af_ladspa.c         av_log(ctx, AV_LOG_ERROR, "Control c%ld is out of range [0 - %lu].\n",
ctx               377 libavfilter/af_ladspa.c         av_log(ctx, AV_LOG_ERROR,
ctx               385 libavfilter/af_ladspa.c         av_log(ctx, AV_LOG_ERROR,
ctx               396 libavfilter/af_ladspa.c static av_cold int init(AVFilterContext *ctx)
ctx               398 libavfilter/af_ladspa.c     LADSPAContext *s = ctx->priv;
ctx               408 libavfilter/af_ladspa.c         av_log(ctx, AV_LOG_ERROR, "No plugin name provided\n");
ctx               441 libavfilter/af_ladspa.c         av_log(ctx, AV_LOG_ERROR, "Failed to load '%s'\n", s->dl_name);
ctx               447 libavfilter/af_ladspa.c         av_log(ctx, AV_LOG_ERROR, "Could not find ladspa_descriptor: %s\n", dlerror());
ctx               453 libavfilter/af_ladspa.c         av_log(ctx, AV_LOG_INFO, "The '%s' library contains the following plugins:\n", s->dl_name);
ctx               454 libavfilter/af_ladspa.c         av_log(ctx, AV_LOG_INFO, "I = Input Channels\n");
ctx               455 libavfilter/af_ladspa.c         av_log(ctx, AV_LOG_INFO, "O = Output Channels\n");
ctx               456 libavfilter/af_ladspa.c         av_log(ctx, AV_LOG_INFO, "I:O %-25s %s\n", "Plugin", "Description");
ctx               457 libavfilter/af_ladspa.c         av_log(ctx, AV_LOG_INFO, "\n");
ctx               462 libavfilter/af_ladspa.c             av_log(ctx, AV_LOG_INFO, "%lu:%lu %-25s %s\n", inputs, outputs, desc->Label,
ctx               464 libavfilter/af_ladspa.c             av_log(ctx, AV_LOG_VERBOSE, "Maker: %s\n",
ctx               466 libavfilter/af_ladspa.c             av_log(ctx, AV_LOG_VERBOSE, "Copyright: %s\n",
ctx               474 libavfilter/af_ladspa.c                 av_log(ctx, AV_LOG_ERROR, "Could not find plugin: %s\n", s->plugin);
ctx               528 libavfilter/af_ladspa.c             av_log(ctx, AV_LOG_INFO,
ctx               532 libavfilter/af_ladspa.c             av_log(ctx, AV_LOG_INFO,
ctx               536 libavfilter/af_ladspa.c                 print_ctl_info(ctx, AV_LOG_INFO, s, i, s->icmap, s->ictlv, 0);
ctx               553 libavfilter/af_ladspa.c                 av_log(ctx, AV_LOG_ERROR, "Invalid syntax.\n");
ctx               559 libavfilter/af_ladspa.c         if ((ret = set_control(ctx, i, val)) < 0)
ctx               567 libavfilter/af_ladspa.c             av_log(ctx, AV_LOG_ERROR, "Control c%d must be set.\n", i);
ctx               568 libavfilter/af_ladspa.c             print_ctl_info(ctx, AV_LOG_ERROR, s, i, s->icmap, s->ictlv, 0);
ctx               582 libavfilter/af_ladspa.c         if (ff_insert_inpad(ctx, ctx->nb_inputs, &pad) < 0) {
ctx               588 libavfilter/af_ladspa.c     av_log(ctx, AV_LOG_DEBUG, "ports: %lu\n", nb_ports);
ctx               589 libavfilter/af_ladspa.c     av_log(ctx, AV_LOG_DEBUG, "inputs: %lu outputs: %lu\n",
ctx               591 libavfilter/af_ladspa.c     av_log(ctx, AV_LOG_DEBUG, "input controls: %lu output controls: %lu\n",
ctx               597 libavfilter/af_ladspa.c static int query_formats(AVFilterContext *ctx)
ctx               599 libavfilter/af_ladspa.c     LADSPAContext *s = ctx->priv;
ctx               609 libavfilter/af_ladspa.c     ret = ff_set_common_formats(ctx, formats);
ctx               618 libavfilter/af_ladspa.c         ret = ff_set_common_samplerates(ctx, formats);
ctx               624 libavfilter/af_ladspa.c         ret = ff_set_common_samplerates(ctx, ff_make_format_list(sample_rates));
ctx               635 libavfilter/af_ladspa.c         ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               643 libavfilter/af_ladspa.c         ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               647 libavfilter/af_ladspa.c         AVFilterLink *outlink = ctx->outputs[0];
ctx               650 libavfilter/af_ladspa.c             AVFilterLink *inlink = ctx->inputs[0];
ctx               684 libavfilter/af_ladspa.c static av_cold void uninit(AVFilterContext *ctx)
ctx               686 libavfilter/af_ladspa.c     LADSPAContext *s = ctx->priv;
ctx               708 libavfilter/af_ladspa.c     if (ctx->nb_inputs)
ctx               709 libavfilter/af_ladspa.c         av_freep(&ctx->input_pads[0].name);
ctx               712 libavfilter/af_ladspa.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               721 libavfilter/af_ladspa.c     return set_control(ctx, port, value);
ctx               411 libavfilter/af_loudnorm.c     AVFilterContext *ctx = inlink->dst;
ctx               412 libavfilter/af_loudnorm.c     LoudNormContext *s = ctx->priv;
ctx               413 libavfilter/af_loudnorm.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               643 libavfilter/af_loudnorm.c     AVFilterContext *ctx = outlink->src;
ctx               644 libavfilter/af_loudnorm.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               645 libavfilter/af_loudnorm.c     LoudNormContext *s = ctx->priv;
ctx               685 libavfilter/af_loudnorm.c static int query_formats(AVFilterContext *ctx)
ctx               687 libavfilter/af_loudnorm.c     LoudNormContext *s = ctx->priv;
ctx               690 libavfilter/af_loudnorm.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               691 libavfilter/af_loudnorm.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               702 libavfilter/af_loudnorm.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               709 libavfilter/af_loudnorm.c     ret = ff_set_common_formats(ctx, formats);
ctx               730 libavfilter/af_loudnorm.c     AVFilterContext *ctx = inlink->dst;
ctx               731 libavfilter/af_loudnorm.c     LoudNormContext *s = ctx->priv;
ctx               783 libavfilter/af_loudnorm.c static av_cold int init(AVFilterContext *ctx)
ctx               785 libavfilter/af_loudnorm.c     LoudNormContext *s = ctx->priv;
ctx               804 libavfilter/af_loudnorm.c static av_cold void uninit(AVFilterContext *ctx)
ctx               806 libavfilter/af_loudnorm.c     LoudNormContext *s = ctx->priv;
ctx               838 libavfilter/af_loudnorm.c         av_log(ctx, AV_LOG_INFO,
ctx               865 libavfilter/af_loudnorm.c         av_log(ctx, AV_LOG_INFO,
ctx               203 libavfilter/af_lv2.c     AVFilterContext *ctx = inlink->dst;
ctx               204 libavfilter/af_lv2.c     LV2Context *s = ctx->priv;
ctx               211 libavfilter/af_lv2.c         out = ff_get_audio_buffer(ctx->outputs[0], in->nb_samples);
ctx               226 libavfilter/af_lv2.c     return ff_filter_frame(ctx->outputs[0], out);
ctx               231 libavfilter/af_lv2.c     AVFilterContext *ctx = outlink->src;
ctx               232 libavfilter/af_lv2.c     LV2Context *s = ctx->priv;
ctx               236 libavfilter/af_lv2.c     if (ctx->nb_inputs)
ctx               237 libavfilter/af_lv2.c         return ff_request_frame(ctx->inputs[0]);
ctx               266 libavfilter/af_lv2.c     AVFilterContext *ctx = outlink->src;
ctx               267 libavfilter/af_lv2.c     LV2Context *s = ctx->priv;
ctx               286 libavfilter/af_lv2.c     if (ctx->nb_inputs) {
ctx               287 libavfilter/af_lv2.c         AVFilterLink *inlink = ctx->inputs[0];
ctx               321 libavfilter/af_lv2.c             av_log(ctx, AV_LOG_INFO,
ctx               325 libavfilter/af_lv2.c             av_log(ctx, AV_LOG_INFO,
ctx               335 libavfilter/af_lv2.c                     av_log(ctx, AV_LOG_INFO, "%s\t\t<float> (from %f to %f) (default %f)\t\t%s\n",
ctx               360 libavfilter/af_lv2.c             av_log(ctx, AV_LOG_ERROR, "Invalid syntax.\n");
ctx               382 libavfilter/af_lv2.c         AVFilterLink *inlink = ctx->inputs[0];
ctx               390 libavfilter/af_lv2.c static av_cold int init(AVFilterContext *ctx)
ctx               392 libavfilter/af_lv2.c     LV2Context *s = ctx->priv;
ctx               468 libavfilter/af_lv2.c         if (ff_insert_inpad(ctx, ctx->nb_inputs, &pad) < 0) {
ctx               477 libavfilter/af_lv2.c static int query_formats(AVFilterContext *ctx)
ctx               479 libavfilter/af_lv2.c     LV2Context *s = ctx->priv;
ctx               482 libavfilter/af_lv2.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               490 libavfilter/af_lv2.c     ret = ff_set_common_formats(ctx, formats);
ctx               499 libavfilter/af_lv2.c         ret = ff_set_common_samplerates(ctx, formats);
ctx               505 libavfilter/af_lv2.c         ret = ff_set_common_samplerates(ctx, ff_make_format_list(sample_rates));
ctx               515 libavfilter/af_lv2.c         ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               520 libavfilter/af_lv2.c             AVFilterLink *inlink = ctx->inputs[0];
ctx               554 libavfilter/af_lv2.c static av_cold void uninit(AVFilterContext *ctx)
ctx               556 libavfilter/af_lv2.c     LV2Context *s = ctx->priv;
ctx               577 libavfilter/af_lv2.c     if (ctx->nb_inputs)
ctx               578 libavfilter/af_lv2.c         av_freep(&ctx->input_pads[0].name);
ctx               104 libavfilter/af_mcompand.c static av_cold void uninit(AVFilterContext *ctx)
ctx               106 libavfilter/af_mcompand.c     MCompandContext *s = ctx->priv;
ctx               126 libavfilter/af_mcompand.c static int query_formats(AVFilterContext *ctx)
ctx               139 libavfilter/af_mcompand.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               146 libavfilter/af_mcompand.c     ret = ff_set_common_formats(ctx, formats);
ctx               153 libavfilter/af_mcompand.c     return ff_set_common_samplerates(ctx, formats);
ctx               199 libavfilter/af_mcompand.c                         CompandT *s, AVFilterContext *ctx)
ctx               211 libavfilter/af_mcompand.c             av_log(ctx, AV_LOG_ERROR,
ctx               216 libavfilter/af_mcompand.c             av_log(ctx, AV_LOG_ERROR,
ctx               221 libavfilter/af_mcompand.c         av_log(ctx, AV_LOG_DEBUG, "%d: x=%f y=%f\n", i, S(i).x, S(i).y);
ctx               345 libavfilter/af_mcompand.c     AVFilterContext *ctx  = outlink->src;
ctx               346 libavfilter/af_mcompand.c     MCompandContext *s    = ctx->priv;
ctx               365 libavfilter/af_mcompand.c             uninit(ctx);
ctx               374 libavfilter/af_mcompand.c             av_log(ctx, AV_LOG_ERROR, "at least one attacks/decays rate is mandatory\n");
ctx               375 libavfilter/af_mcompand.c             uninit(ctx);
ctx               383 libavfilter/af_mcompand.c             av_log(ctx, AV_LOG_ERROR, "number of attacks rate plus decays rate must be even\n");
ctx               384 libavfilter/af_mcompand.c             uninit(ctx);
ctx               419 libavfilter/af_mcompand.c             av_log(ctx, AV_LOG_ERROR, "transfer function curve in dB must be set\n");
ctx               420 libavfilter/af_mcompand.c             uninit(ctx);
ctx               429 libavfilter/af_mcompand.c             av_log(ctx, AV_LOG_ERROR, "transfer points missing\n");
ctx               430 libavfilter/af_mcompand.c             uninit(ctx);
ctx               439 libavfilter/af_mcompand.c             uninit(ctx);
ctx               443 libavfilter/af_mcompand.c         ret = parse_points(tstr2, nb_points, radius, &s->bands[i].transfer_fn, ctx);
ctx               445 libavfilter/af_mcompand.c             av_log(ctx, AV_LOG_ERROR, "transfer points parsing failed\n");
ctx               446 libavfilter/af_mcompand.c             uninit(ctx);
ctx               452 libavfilter/af_mcompand.c             av_log(ctx, AV_LOG_ERROR, "crossover_frequency is missing\n");
ctx               453 libavfilter/af_mcompand.c             uninit(ctx);
ctx               459 libavfilter/af_mcompand.c             av_log(ctx, AV_LOG_ERROR, "crossover_frequency: %f, should be >=0 and lower than half of sample rate: %d.\n", s->bands[i].topfreq, outlink->sample_rate / 2);
ctx               460 libavfilter/af_mcompand.c             uninit(ctx);
ctx               467 libavfilter/af_mcompand.c                 uninit(ctx);
ctx               595 libavfilter/af_mcompand.c     AVFilterContext  *ctx = inlink->dst;
ctx               596 libavfilter/af_mcompand.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               597 libavfilter/af_mcompand.c     MCompandContext *s    = ctx->priv;
ctx               651 libavfilter/af_mcompand.c     AVFilterContext *ctx = outlink->src;
ctx               654 libavfilter/af_mcompand.c     ret = ff_request_frame(ctx->inputs[0]);
ctx               101 libavfilter/af_pan.c static av_cold int init(AVFilterContext *ctx)
ctx               103 libavfilter/af_pan.c     PanContext *const pan = ctx->priv;
ctx               111 libavfilter/af_pan.c         av_log(ctx, AV_LOG_ERROR,
ctx               120 libavfilter/af_pan.c         av_log(ctx, AV_LOG_ERROR, "Channel layout not specified\n");
ctx               125 libavfilter/af_pan.c                                   &pan->nb_output_channels, arg, ctx);
ctx               134 libavfilter/af_pan.c             av_log(ctx, AV_LOG_ERROR,
ctx               141 libavfilter/af_pan.c                 av_log(ctx, AV_LOG_ERROR,
ctx               153 libavfilter/af_pan.c             av_log(ctx, AV_LOG_ERROR,
ctx               159 libavfilter/af_pan.c             av_log(ctx, AV_LOG_ERROR,
ctx               172 libavfilter/af_pan.c             av_log(ctx, AV_LOG_ERROR,
ctx               184 libavfilter/af_pan.c                 av_log(ctx, AV_LOG_ERROR,
ctx               191 libavfilter/af_pan.c                 av_log(ctx, AV_LOG_ERROR,
ctx               197 libavfilter/af_pan.c                 av_log(ctx, AV_LOG_ERROR,
ctx               210 libavfilter/af_pan.c                 av_log(ctx, AV_LOG_ERROR, "Syntax error near \"%.8s\"\n", arg);
ctx               249 libavfilter/af_pan.c static int query_formats(AVFilterContext *ctx)
ctx               251 libavfilter/af_pan.c     PanContext *pan = ctx->priv;
ctx               252 libavfilter/af_pan.c     AVFilterLink *inlink  = ctx->inputs[0];
ctx               253 libavfilter/af_pan.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               260 libavfilter/af_pan.c     if ((ret = ff_set_common_formats(ctx, ff_all_formats(AVMEDIA_TYPE_AUDIO))) < 0)
ctx               264 libavfilter/af_pan.c     if ((ret = ff_set_common_samplerates(ctx, formats)) < 0)
ctx               283 libavfilter/af_pan.c     AVFilterContext *ctx = link->dst;
ctx               284 libavfilter/af_pan.c     PanContext *pan = ctx->priv;
ctx               304 libavfilter/af_pan.c         av_log(ctx, AV_LOG_ERROR,
ctx               314 libavfilter/af_pan.c                                   0, ctx);
ctx               355 libavfilter/af_pan.c                     av_log(ctx, AV_LOG_WARNING,
ctx               379 libavfilter/af_pan.c         av_log(ctx, AV_LOG_VERBOSE, "o%d = %s\n", i, buf);
ctx               383 libavfilter/af_pan.c         av_log(ctx, AV_LOG_INFO, "Pure channel mapping detected:");
ctx               386 libavfilter/af_pan.c                 av_log(ctx, AV_LOG_INFO, " M");
ctx               388 libavfilter/af_pan.c                 av_log(ctx, AV_LOG_INFO, " %d", pan->channel_map[i]);
ctx               389 libavfilter/af_pan.c         av_log(ctx, AV_LOG_INFO, "\n");
ctx               418 libavfilter/af_pan.c static av_cold void uninit(AVFilterContext *ctx)
ctx               420 libavfilter/af_pan.c     PanContext *pan = ctx->priv;
ctx               322 libavfilter/af_replaygain.c static int query_formats(AVFilterContext *ctx)
ctx               329 libavfilter/af_replaygain.c         (ret = ff_set_common_formats         (ctx     , formats            )) < 0 ||
ctx               331 libavfilter/af_replaygain.c         (ret = ff_set_common_channel_layouts (ctx     , layout             )) < 0)
ctx               340 libavfilter/af_replaygain.c     return ff_set_common_samplerates(ctx, formats);
ctx               345 libavfilter/af_replaygain.c     AVFilterContext *ctx = inlink->dst;
ctx               346 libavfilter/af_replaygain.c     ReplayGainContext *s = ctx->priv;
ctx               551 libavfilter/af_replaygain.c     AVFilterContext *ctx = inlink->dst;
ctx               552 libavfilter/af_replaygain.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               553 libavfilter/af_replaygain.c     ReplayGainContext *s = ctx->priv;
ctx               580 libavfilter/af_replaygain.c static av_cold void uninit(AVFilterContext *ctx)
ctx               582 libavfilter/af_replaygain.c     ReplayGainContext *s = ctx->priv;
ctx               585 libavfilter/af_replaygain.c     av_log(ctx, AV_LOG_INFO, "track_gain = %+.2f dB\n", gain);
ctx               586 libavfilter/af_replaygain.c     av_log(ctx, AV_LOG_INFO, "track_peak = %.6f\n", s->peak);
ctx                51 libavfilter/af_resample.c static av_cold int init(AVFilterContext *ctx, AVDictionary **opts)
ctx                53 libavfilter/af_resample.c     ResampleContext *s = ctx->priv;
ctx                78 libavfilter/af_resample.c static av_cold void uninit(AVFilterContext *ctx)
ctx                80 libavfilter/af_resample.c     ResampleContext *s = ctx->priv;
ctx                89 libavfilter/af_resample.c static int query_formats(AVFilterContext *ctx)
ctx                91 libavfilter/af_resample.c     AVFilterLink *inlink  = ctx->inputs[0];
ctx                92 libavfilter/af_resample.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               118 libavfilter/af_resample.c     AVFilterContext *ctx = outlink->src;
ctx               119 libavfilter/af_resample.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               120 libavfilter/af_resample.c     ResampleContext   *s = ctx->priv;
ctx               147 libavfilter/af_resample.c             av_log(ctx, AV_LOG_VERBOSE, "lavr option: %s=%s\n", e->key, e->value);
ctx               178 libavfilter/af_resample.c     av_log(ctx, AV_LOG_VERBOSE,
ctx               188 libavfilter/af_resample.c     AVFilterContext *ctx = outlink->src;
ctx               189 libavfilter/af_resample.c     ResampleContext   *s = ctx->priv;
ctx               194 libavfilter/af_resample.c         ret = ff_request_frame(ctx->inputs[0]);
ctx               225 libavfilter/af_resample.c     AVFilterContext  *ctx = inlink->dst;
ctx               226 libavfilter/af_resample.c     ResampleContext    *s = ctx->priv;
ctx               227 libavfilter/af_resample.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               257 libavfilter/af_resample.c                 av_log(ctx, AV_LOG_WARNING, "First timestamp is missing, "
ctx                84 libavfilter/af_rubberband.c static av_cold void uninit(AVFilterContext *ctx)
ctx                86 libavfilter/af_rubberband.c     RubberBandContext *s = ctx->priv;
ctx                92 libavfilter/af_rubberband.c static int query_formats(AVFilterContext *ctx)
ctx               105 libavfilter/af_rubberband.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               112 libavfilter/af_rubberband.c     ret = ff_set_common_formats(ctx, formats);
ctx               119 libavfilter/af_rubberband.c     return ff_set_common_samplerates(ctx, formats);
ctx               124 libavfilter/af_rubberband.c     AVFilterContext *ctx = inlink->dst;
ctx               125 libavfilter/af_rubberband.c     RubberBandContext *s = ctx->priv;
ctx               126 libavfilter/af_rubberband.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               154 libavfilter/af_rubberband.c         ff_filter_set_ready(ctx, 100);
ctx               160 libavfilter/af_rubberband.c     AVFilterContext *ctx = inlink->dst;
ctx               161 libavfilter/af_rubberband.c     RubberBandContext *s = ctx->priv;
ctx               178 libavfilter/af_rubberband.c static int activate(AVFilterContext *ctx)
ctx               180 libavfilter/af_rubberband.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               181 libavfilter/af_rubberband.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               182 libavfilter/af_rubberband.c     RubberBandContext *s = ctx->priv;
ctx               203 libavfilter/af_rubberband.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               206 libavfilter/af_rubberband.c     RubberBandContext *s = ctx->priv;
ctx               209 libavfilter/af_rubberband.c     ret = ff_filter_process_command(ctx, cmd, args, res, res_len, flags);
ctx               144 libavfilter/af_sidechaincompress.c     AVFilterContext *ctx = outlink->src;
ctx               145 libavfilter/af_sidechaincompress.c     SidechainCompressContext *s = ctx->priv;
ctx               218 libavfilter/af_sidechaincompress.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               223 libavfilter/af_sidechaincompress.c     ret = ff_filter_process_command(ctx, cmd, args, res, res_len, flags);
ctx               227 libavfilter/af_sidechaincompress.c     compressor_config_output(ctx->outputs[0]);
ctx               233 libavfilter/af_sidechaincompress.c static int activate(AVFilterContext *ctx)
ctx               235 libavfilter/af_sidechaincompress.c     SidechainCompressContext *s = ctx->priv;
ctx               240 libavfilter/af_sidechaincompress.c     FF_FILTER_FORWARD_STATUS_BACK_ALL(ctx->outputs[0], ctx);
ctx               241 libavfilter/af_sidechaincompress.c     if ((ret = ff_inlink_consume_frame(ctx->inputs[0], &in[0])) > 0) {
ctx               248 libavfilter/af_sidechaincompress.c     if ((ret = ff_inlink_consume_frame(ctx->inputs[1], &in[1])) > 0) {
ctx               258 libavfilter/af_sidechaincompress.c         out = ff_get_audio_buffer(ctx->outputs[0], nb_samples);
ctx               262 libavfilter/af_sidechaincompress.c             in[i] = ff_get_audio_buffer(ctx->inputs[i], nb_samples);
ctx               274 libavfilter/af_sidechaincompress.c         s->pts += av_rescale_q(nb_samples, (AVRational){1, ctx->outputs[0]->sample_rate}, ctx->outputs[0]->time_base);
ctx               279 libavfilter/af_sidechaincompress.c                    ctx->inputs[0], ctx->inputs[1]);
ctx               284 libavfilter/af_sidechaincompress.c         ret = ff_filter_frame(ctx->outputs[0], out);
ctx               288 libavfilter/af_sidechaincompress.c     FF_FILTER_FORWARD_STATUS(ctx->inputs[0], ctx->outputs[0]);
ctx               289 libavfilter/af_sidechaincompress.c     FF_FILTER_FORWARD_STATUS(ctx->inputs[1], ctx->outputs[0]);
ctx               290 libavfilter/af_sidechaincompress.c     if (ff_outlink_frame_wanted(ctx->outputs[0])) {
ctx               292 libavfilter/af_sidechaincompress.c             ff_inlink_request_frame(ctx->inputs[0]);
ctx               294 libavfilter/af_sidechaincompress.c             ff_inlink_request_frame(ctx->inputs[1]);
ctx               299 libavfilter/af_sidechaincompress.c static int query_formats(AVFilterContext *ctx)
ctx               309 libavfilter/af_sidechaincompress.c     if (!ctx->inputs[0]->in_channel_layouts ||
ctx               310 libavfilter/af_sidechaincompress.c         !ctx->inputs[0]->in_channel_layouts->nb_channel_layouts) {
ctx               311 libavfilter/af_sidechaincompress.c         av_log(ctx, AV_LOG_WARNING,
ctx               316 libavfilter/af_sidechaincompress.c     if ((ret = ff_add_channel_layout(&layouts, ctx->inputs[0]->in_channel_layouts->channel_layouts[0])) < 0 ||
ctx               317 libavfilter/af_sidechaincompress.c         (ret = ff_channel_layouts_ref(layouts, &ctx->outputs[0]->in_channel_layouts)) < 0)
ctx               322 libavfilter/af_sidechaincompress.c         if ((ret = ff_channel_layouts_ref(layouts, &ctx->inputs[i]->out_channel_layouts)) < 0)
ctx               327 libavfilter/af_sidechaincompress.c     if ((ret = ff_set_common_formats(ctx, formats)) < 0)
ctx               331 libavfilter/af_sidechaincompress.c     return ff_set_common_samplerates(ctx, formats);
ctx               336 libavfilter/af_sidechaincompress.c     AVFilterContext *ctx = outlink->src;
ctx               337 libavfilter/af_sidechaincompress.c     SidechainCompressContext *s = ctx->priv;
ctx               339 libavfilter/af_sidechaincompress.c     if (ctx->inputs[0]->sample_rate != ctx->inputs[1]->sample_rate) {
ctx               340 libavfilter/af_sidechaincompress.c         av_log(ctx, AV_LOG_ERROR,
ctx               343 libavfilter/af_sidechaincompress.c                ctx->inputs[0]->sample_rate, ctx->inputs[1]->sample_rate);
ctx               347 libavfilter/af_sidechaincompress.c     outlink->sample_rate = ctx->inputs[0]->sample_rate;
ctx               348 libavfilter/af_sidechaincompress.c     outlink->time_base   = ctx->inputs[0]->time_base;
ctx               349 libavfilter/af_sidechaincompress.c     outlink->channel_layout = ctx->inputs[0]->channel_layout;
ctx               350 libavfilter/af_sidechaincompress.c     outlink->channels = ctx->inputs[0]->channels;
ctx               352 libavfilter/af_sidechaincompress.c     s->fifo[0] = av_audio_fifo_alloc(ctx->inputs[0]->format, ctx->inputs[0]->channels, 1024);
ctx               353 libavfilter/af_sidechaincompress.c     s->fifo[1] = av_audio_fifo_alloc(ctx->inputs[1]->format, ctx->inputs[1]->channels, 1024);
ctx               362 libavfilter/af_sidechaincompress.c static av_cold void uninit(AVFilterContext *ctx)
ctx               364 libavfilter/af_sidechaincompress.c     SidechainCompressContext *s = ctx->priv;
ctx               408 libavfilter/af_sidechaincompress.c     AVFilterContext *ctx = inlink->dst;
ctx               409 libavfilter/af_sidechaincompress.c     SidechainCompressContext *s = ctx->priv;
ctx               410 libavfilter/af_sidechaincompress.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               435 libavfilter/af_sidechaincompress.c static int acompressor_query_formats(AVFilterContext *ctx)
ctx               448 libavfilter/af_sidechaincompress.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               455 libavfilter/af_sidechaincompress.c     ret = ff_set_common_formats(ctx, formats);
ctx               462 libavfilter/af_sidechaincompress.c     return ff_set_common_samplerates(ctx, formats);
ctx               141 libavfilter/af_silencedetect.c     AVFilterContext *ctx = inlink->dst;
ctx               142 libavfilter/af_silencedetect.c     SilenceDetectContext *s = ctx->priv;
ctx               198 libavfilter/af_silencedetect.c static int query_formats(AVFilterContext *ctx)
ctx               214 libavfilter/af_silencedetect.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               221 libavfilter/af_silencedetect.c     ret = ff_set_common_formats(ctx, formats);
ctx               228 libavfilter/af_silencedetect.c     return ff_set_common_samplerates(ctx, formats);
ctx               231 libavfilter/af_silencedetect.c static av_cold void uninit(AVFilterContext *ctx)
ctx               233 libavfilter/af_silencedetect.c     SilenceDetectContext *s = ctx->priv;
ctx               172 libavfilter/af_silenceremove.c static av_cold int init(AVFilterContext *ctx)
ctx               174 libavfilter/af_silenceremove.c     SilenceRemoveContext *s = ctx->priv;
ctx               206 libavfilter/af_silenceremove.c     AVFilterContext *ctx = inlink->dst;
ctx               207 libavfilter/af_silenceremove.c     SilenceRemoveContext *s = ctx->priv;
ctx               322 libavfilter/af_silenceremove.c     AVFilterContext *ctx = inlink->dst;
ctx               323 libavfilter/af_silenceremove.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               324 libavfilter/af_silenceremove.c     SilenceRemoveContext *s = ctx->priv;
ctx               582 libavfilter/af_silenceremove.c     AVFilterContext *ctx = outlink->src;
ctx               583 libavfilter/af_silenceremove.c     SilenceRemoveContext *s = ctx->priv;
ctx               586 libavfilter/af_silenceremove.c     ret = ff_request_frame(ctx->inputs[0]);
ctx               612 libavfilter/af_silenceremove.c static int query_formats(AVFilterContext *ctx)
ctx               624 libavfilter/af_silenceremove.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               631 libavfilter/af_silenceremove.c     ret = ff_set_common_formats(ctx, formats);
ctx               638 libavfilter/af_silenceremove.c     return ff_set_common_samplerates(ctx, formats);
ctx               641 libavfilter/af_silenceremove.c static av_cold void uninit(AVFilterContext *ctx)
ctx               643 libavfilter/af_silenceremove.c     SilenceRemoveContext *s = ctx->priv;
ctx               133 libavfilter/af_sofalizer.c static int preload_sofa(AVFilterContext *ctx, char *filename, int *samplingrate)
ctx               135 libavfilter/af_sofalizer.c     struct SOFAlizerContext *s = ctx->priv;
ctx               143 libavfilter/af_sofalizer.c         av_log(ctx, AV_LOG_ERROR, "Can't find SOFA-file '%s'\n", filename);
ctx               149 libavfilter/af_sofalizer.c         av_log(ctx, AV_LOG_ERROR, "Selected SOFA file is invalid. Please select valid SOFA file.\n");
ctx               177 libavfilter/af_sofalizer.c     av_log(ctx, AV_LOG_DEBUG, "Original IR length: %d.\n", mysofa->N);
ctx               181 libavfilter/af_sofalizer.c         av_log(ctx, AV_LOG_INFO, "SOFA license: %s\n", license);
ctx               211 libavfilter/af_sofalizer.c static void parse_speaker_pos(AVFilterContext *ctx, int64_t in_channel_layout)
ctx               213 libavfilter/af_sofalizer.c     SOFAlizerContext *s = ctx->priv;
ctx               227 libavfilter/af_sofalizer.c             av_log(ctx, AV_LOG_WARNING, "Failed to parse \'%s\' as channel name.\n", buf);
ctx               244 libavfilter/af_sofalizer.c static int get_speaker_pos(AVFilterContext *ctx,
ctx               247 libavfilter/af_sofalizer.c     struct SOFAlizerContext *s = ctx->priv;
ctx               248 libavfilter/af_sofalizer.c     uint64_t channels_layout = ctx->inputs[0]->channel_layout;
ctx               251 libavfilter/af_sofalizer.c     int m, ch, n_conv = ctx->inputs[0]->channels; /* get no. input channels */
ctx               259 libavfilter/af_sofalizer.c         parse_speaker_pos(ctx, channels_layout);
ctx               331 libavfilter/af_sofalizer.c static int sofalizer_convolute(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               333 libavfilter/af_sofalizer.c     SOFAlizerContext *s = ctx->priv;
ctx               431 libavfilter/af_sofalizer.c static int sofalizer_fast_convolute(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               433 libavfilter/af_sofalizer.c     SOFAlizerContext *s = ctx->priv;
ctx               571 libavfilter/af_sofalizer.c     AVFilterContext *ctx = inlink->dst;
ctx               572 libavfilter/af_sofalizer.c     SOFAlizerContext *s = ctx->priv;
ctx               573 libavfilter/af_sofalizer.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               592 libavfilter/af_sofalizer.c         ctx->internal->execute(ctx, sofalizer_convolute, &td, NULL, 2);
ctx               594 libavfilter/af_sofalizer.c         ctx->internal->execute(ctx, sofalizer_fast_convolute, &td, NULL, 2);
ctx               600 libavfilter/af_sofalizer.c         av_log(ctx, AV_LOG_WARNING, "%d of %d samples clipped. Please reduce gain.\n",
ctx               608 libavfilter/af_sofalizer.c static int activate(AVFilterContext *ctx)
ctx               610 libavfilter/af_sofalizer.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               611 libavfilter/af_sofalizer.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               612 libavfilter/af_sofalizer.c     SOFAlizerContext *s = ctx->priv;
ctx               633 libavfilter/af_sofalizer.c static int query_formats(AVFilterContext *ctx)
ctx               635 libavfilter/af_sofalizer.c     struct SOFAlizerContext *s = ctx->priv;
ctx               647 libavfilter/af_sofalizer.c     ret = ff_set_common_formats(ctx, formats);
ctx               655 libavfilter/af_sofalizer.c     ret = ff_channel_layouts_ref(layouts, &ctx->inputs[0]->out_channel_layouts);
ctx               664 libavfilter/af_sofalizer.c     ret = ff_channel_layouts_ref(layouts, &ctx->outputs[0]->in_channel_layouts);
ctx               672 libavfilter/af_sofalizer.c     return ff_set_common_samplerates(ctx, formats);
ctx               675 libavfilter/af_sofalizer.c static int getfilter_float(AVFilterContext *ctx, float x, float y, float z,
ctx               679 libavfilter/af_sofalizer.c     struct SOFAlizerContext *s = ctx->priv;
ctx               719 libavfilter/af_sofalizer.c static int load_data(AVFilterContext *ctx, int azim, int elev, float radius, int sample_rate)
ctx               721 libavfilter/af_sofalizer.c     struct SOFAlizerContext *s = ctx->priv;
ctx               728 libavfilter/af_sofalizer.c     int nb_input_channels = ctx->inputs[0]->channels; /* no. input channels */
ctx               742 libavfilter/af_sofalizer.c     av_log(ctx, AV_LOG_DEBUG, "IR length: %d.\n", s->sofa.hrtf->N);
ctx               792 libavfilter/af_sofalizer.c     if ((ret = get_speaker_pos(ctx, s->speaker_azim, s->speaker_elev)) < 0) {
ctx               793 libavfilter/af_sofalizer.c         av_log(ctx, AV_LOG_ERROR, "Couldn't get speaker positions. Input channel configuration not supported.\n");
ctx               811 libavfilter/af_sofalizer.c         ret = getfilter_float(ctx, coordinates[0], coordinates[1], coordinates[2],
ctx               846 libavfilter/af_sofalizer.c             av_log(ctx, AV_LOG_ERROR, "Unable to create FFT contexts of size %d.\n", s->n_fft);
ctx               957 libavfilter/af_sofalizer.c static av_cold int init(AVFilterContext *ctx)
ctx               959 libavfilter/af_sofalizer.c     SOFAlizerContext *s = ctx->priv;
ctx               963 libavfilter/af_sofalizer.c         av_log(ctx, AV_LOG_ERROR, "Valid SOFA filename must be set.\n");
ctx               968 libavfilter/af_sofalizer.c     ret = preload_sofa(ctx, s->filename, &s->sample_rate);
ctx               971 libavfilter/af_sofalizer.c         av_log(ctx, AV_LOG_ERROR, "Error while loading SOFA file: '%s'\n", s->filename);
ctx               973 libavfilter/af_sofalizer.c         av_log(ctx, AV_LOG_DEBUG, "File '%s' loaded.\n", s->filename);
ctx               977 libavfilter/af_sofalizer.c         av_log(ctx, AV_LOG_ERROR, "No valid SOFA file could be loaded. Please specify valid SOFA file.\n");
ctx               990 libavfilter/af_sofalizer.c     AVFilterContext *ctx = inlink->dst;
ctx               991 libavfilter/af_sofalizer.c     SOFAlizerContext *s = ctx->priv;
ctx              1003 libavfilter/af_sofalizer.c     if ((ret = load_data(ctx, s->rotation, s->elevation, s->radius, inlink->sample_rate)) < 0)
ctx              1006 libavfilter/af_sofalizer.c     av_log(ctx, AV_LOG_DEBUG, "Samplerate: %d Channels to convolute: %d, Length of ringbuffer: %d x %d\n",
ctx              1012 libavfilter/af_sofalizer.c static av_cold void uninit(AVFilterContext *ctx)
ctx              1014 libavfilter/af_sofalizer.c     SOFAlizerContext *s = ctx->priv;
ctx               100 libavfilter/af_stereotools.c static int query_formats(AVFilterContext *ctx)
ctx               107 libavfilter/af_stereotools.c         (ret = ff_set_common_formats         (ctx     , formats            )) < 0 ||
ctx               109 libavfilter/af_stereotools.c         (ret = ff_set_common_channel_layouts (ctx     , layout             )) < 0)
ctx               113 libavfilter/af_stereotools.c     return ff_set_common_samplerates(ctx, formats);
ctx               118 libavfilter/af_stereotools.c     AVFilterContext *ctx = inlink->dst;
ctx               119 libavfilter/af_stereotools.c     StereoToolsContext *s = ctx->priv;
ctx               123 libavfilter/af_stereotools.c         av_log(ctx, AV_LOG_ERROR, "sample rate is too small\n");
ctx               139 libavfilter/af_stereotools.c     AVFilterContext *ctx = inlink->dst;
ctx               140 libavfilter/af_stereotools.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               141 libavfilter/af_stereotools.c     StereoToolsContext *s = ctx->priv;
ctx               327 libavfilter/af_stereotools.c static av_cold void uninit(AVFilterContext *ctx)
ctx               329 libavfilter/af_stereotools.c     StereoToolsContext *s = ctx->priv;
ctx                55 libavfilter/af_stereowiden.c static int query_formats(AVFilterContext *ctx)
ctx                62 libavfilter/af_stereowiden.c         (ret = ff_set_common_formats         (ctx     , formats            )) < 0 ||
ctx                64 libavfilter/af_stereowiden.c         (ret = ff_set_common_channel_layouts (ctx     , layout             )) < 0)
ctx                68 libavfilter/af_stereowiden.c     return ff_set_common_samplerates(ctx, formats);
ctx                73 libavfilter/af_stereowiden.c     AVFilterContext *ctx = inlink->dst;
ctx                74 libavfilter/af_stereowiden.c     StereoWidenContext *s = ctx->priv;
ctx                88 libavfilter/af_stereowiden.c     AVFilterContext *ctx = inlink->dst;
ctx                89 libavfilter/af_stereowiden.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                90 libavfilter/af_stereowiden.c     StereoWidenContext *s = ctx->priv;
ctx               117 libavfilter/af_stereowiden.c         if (ctx->is_disabled) {
ctx               134 libavfilter/af_stereowiden.c static av_cold void uninit(AVFilterContext *ctx)
ctx               136 libavfilter/af_stereowiden.c     StereoWidenContext *s = ctx->priv;
ctx               187 libavfilter/af_superequalizer.c     AVFilterContext *ctx = inlink->dst;
ctx               188 libavfilter/af_superequalizer.c     SuperEqualizerContext *s = ctx->priv;
ctx               189 libavfilter/af_superequalizer.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               244 libavfilter/af_superequalizer.c static int activate(AVFilterContext *ctx)
ctx               246 libavfilter/af_superequalizer.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               247 libavfilter/af_superequalizer.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               248 libavfilter/af_superequalizer.c     SuperEqualizerContext *s = ctx->priv;
ctx               266 libavfilter/af_superequalizer.c static av_cold int init(AVFilterContext *ctx)
ctx               268 libavfilter/af_superequalizer.c     SuperEqualizerContext *s = ctx->priv;
ctx               273 libavfilter/af_superequalizer.c static int query_formats(AVFilterContext *ctx)
ctx               286 libavfilter/af_superequalizer.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               291 libavfilter/af_superequalizer.c     if ((ret = ff_set_common_formats(ctx, formats)) < 0)
ctx               295 libavfilter/af_superequalizer.c     return ff_set_common_samplerates(ctx, formats);
ctx               300 libavfilter/af_superequalizer.c     AVFilterContext *ctx = inlink->dst;
ctx               301 libavfilter/af_superequalizer.c     SuperEqualizerContext *s = ctx->priv;
ctx               312 libavfilter/af_superequalizer.c     AVFilterContext *ctx = outlink->src;
ctx               313 libavfilter/af_superequalizer.c     SuperEqualizerContext *s = ctx->priv;
ctx               320 libavfilter/af_superequalizer.c static av_cold void uninit(AVFilterContext *ctx)
ctx               322 libavfilter/af_superequalizer.c     SuperEqualizerContext *s = ctx->priv;
ctx               113 libavfilter/af_surround.c     void (*filter)(AVFilterContext *ctx);
ctx               114 libavfilter/af_surround.c     void (*upmix_stereo)(AVFilterContext *ctx,
ctx               121 libavfilter/af_surround.c     void (*upmix_2_1)(AVFilterContext *ctx,
ctx               130 libavfilter/af_surround.c     void (*upmix_3_0)(AVFilterContext *ctx,
ctx               138 libavfilter/af_surround.c     void (*upmix_5_0)(AVFilterContext *ctx,
ctx               147 libavfilter/af_surround.c     void (*upmix_5_1)(AVFilterContext *ctx,
ctx               159 libavfilter/af_surround.c static int query_formats(AVFilterContext *ctx)
ctx               161 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx               169 libavfilter/af_surround.c     ret = ff_set_common_formats(ctx, formats);
ctx               178 libavfilter/af_surround.c     ret = ff_channel_layouts_ref(layouts, &ctx->outputs[0]->in_channel_layouts);
ctx               187 libavfilter/af_surround.c     ret = ff_channel_layouts_ref(layouts, &ctx->inputs[0]->out_channel_layouts);
ctx               194 libavfilter/af_surround.c     return ff_set_common_samplerates(ctx, formats);
ctx               199 libavfilter/af_surround.c     AVFilterContext *ctx = inlink->dst;
ctx               200 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx               262 libavfilter/af_surround.c     AVFilterContext *ctx = outlink->src;
ctx               263 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx               358 libavfilter/af_surround.c static void upmix_1_0(AVFilterContext *ctx,
ctx               366 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx               377 libavfilter/af_surround.c static void upmix_stereo(AVFilterContext *ctx,
ctx               385 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx               401 libavfilter/af_surround.c static void upmix_2_1(AVFilterContext *ctx,
ctx               409 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx               431 libavfilter/af_surround.c static void upmix_3_0(AVFilterContext *ctx,
ctx               439 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx               460 libavfilter/af_surround.c static void upmix_3_1(AVFilterContext *ctx,
ctx               468 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx               495 libavfilter/af_surround.c static void upmix_3_1_surround(AVFilterContext *ctx,
ctx               504 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx               530 libavfilter/af_surround.c static void upmix_4_0(AVFilterContext *ctx,
ctx               538 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx               564 libavfilter/af_surround.c static void upmix_4_1(AVFilterContext *ctx,
ctx               572 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx               604 libavfilter/af_surround.c static void upmix_5_0_back(AVFilterContext *ctx,
ctx               612 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx               643 libavfilter/af_surround.c static void upmix_5_1_back(AVFilterContext *ctx,
ctx               651 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx               688 libavfilter/af_surround.c static void upmix_6_0(AVFilterContext *ctx,
ctx               696 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx               732 libavfilter/af_surround.c static void upmix_6_1(AVFilterContext *ctx,
ctx               740 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx               782 libavfilter/af_surround.c static void upmix_5_1_back_surround(AVFilterContext *ctx,
ctx               791 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx               828 libavfilter/af_surround.c static void upmix_5_1_back_2_1(AVFilterContext *ctx,
ctx               838 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx               874 libavfilter/af_surround.c static void upmix_7_0(AVFilterContext *ctx,
ctx               884 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx               924 libavfilter/af_surround.c static void upmix_7_1(AVFilterContext *ctx,
ctx               934 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx               980 libavfilter/af_surround.c static void upmix_7_1_5_0_side(AVFilterContext *ctx,
ctx               993 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx              1040 libavfilter/af_surround.c static void upmix_7_1_5_1(AVFilterContext *ctx,
ctx              1053 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx              1096 libavfilter/af_surround.c static void filter_stereo(AVFilterContext *ctx)
ctx              1098 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx              1125 libavfilter/af_surround.c         s->upmix_stereo(ctx, l_phase, r_phase, c_phase, mag_total, x, y, n);
ctx              1129 libavfilter/af_surround.c static void filter_surround(AVFilterContext *ctx)
ctx              1131 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx              1161 libavfilter/af_surround.c         s->upmix_3_0(ctx, l_phase, r_phase, c_phase, c_mag, mag_total, x, y, n);
ctx              1165 libavfilter/af_surround.c static void filter_2_1(AVFilterContext *ctx)
ctx              1167 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx              1196 libavfilter/af_surround.c         s->upmix_2_1(ctx, l_phase, r_phase, c_phase, mag_total, lfe_re, lfe_im, x, y, n);
ctx              1200 libavfilter/af_surround.c static void filter_5_0_side(AVFilterContext *ctx)
ctx              1202 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx              1248 libavfilter/af_surround.c         s->upmix_5_0(ctx, c_re, c_im,
ctx              1257 libavfilter/af_surround.c static void filter_5_1_side(AVFilterContext *ctx)
ctx              1259 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx              1307 libavfilter/af_surround.c         s->upmix_5_1(ctx, c_re, c_im, lfe_re, lfe_im,
ctx              1316 libavfilter/af_surround.c static void filter_5_1_back(AVFilterContext *ctx)
ctx              1318 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx              1366 libavfilter/af_surround.c         s->upmix_5_1(ctx, c_re, c_im, lfe_re, lfe_im,
ctx              1375 libavfilter/af_surround.c static av_cold int init(AVFilterContext *ctx)
ctx              1377 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx              1382 libavfilter/af_surround.c         av_log(ctx, AV_LOG_ERROR, "Error parsing output channel layout '%s'.\n",
ctx              1388 libavfilter/af_surround.c         av_log(ctx, AV_LOG_ERROR, "Error parsing input channel layout '%s'.\n",
ctx              1394 libavfilter/af_surround.c         av_log(ctx, AV_LOG_ERROR, "Low cut-off '%d' should be less than high cut-off '%d'.\n",
ctx              1501 libavfilter/af_surround.c         av_log(ctx, AV_LOG_ERROR, "Unsupported upmix: '%s' -> '%s'.\n",
ctx              1531 libavfilter/af_surround.c static int fft_channel(AVFilterContext *ctx, void *arg, int ch, int nb_jobs)
ctx              1533 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx              1550 libavfilter/af_surround.c static int ifft_channel(AVFilterContext *ctx, void *arg, int ch, int nb_jobs)
ctx              1552 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx              1582 libavfilter/af_surround.c     AVFilterContext *ctx = inlink->dst;
ctx              1583 libavfilter/af_surround.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              1584 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx              1592 libavfilter/af_surround.c     ctx->internal->execute(ctx, fft_channel, NULL, NULL, inlink->channels);
ctx              1594 libavfilter/af_surround.c     s->filter(ctx);
ctx              1600 libavfilter/af_surround.c     ctx->internal->execute(ctx, ifft_channel, out, NULL, outlink->channels);
ctx              1610 libavfilter/af_surround.c static int activate(AVFilterContext *ctx)
ctx              1612 libavfilter/af_surround.c     AVFilterLink *inlink = ctx->inputs[0];
ctx              1613 libavfilter/af_surround.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              1614 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx              1642 libavfilter/af_surround.c             ff_filter_set_ready(ctx, 100);
ctx              1650 libavfilter/af_surround.c                 ff_filter_set_ready(ctx, 100);
ctx              1667 libavfilter/af_surround.c static av_cold void uninit(AVFilterContext *ctx)
ctx              1669 libavfilter/af_surround.c     AudioSurroundContext *s = ctx->priv;
ctx                48 libavfilter/af_tremolo.c     AVFilterContext *ctx = inlink->dst;
ctx                49 libavfilter/af_tremolo.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                50 libavfilter/af_tremolo.c     TremoloContext *s = ctx->priv;
ctx                86 libavfilter/af_tremolo.c static int query_formats(AVFilterContext *ctx)
ctx                99 libavfilter/af_tremolo.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               106 libavfilter/af_tremolo.c     ret = ff_set_common_formats(ctx, formats);
ctx               113 libavfilter/af_tremolo.c     return ff_set_common_samplerates(ctx, formats);
ctx               116 libavfilter/af_tremolo.c static av_cold void uninit(AVFilterContext *ctx)
ctx               118 libavfilter/af_tremolo.c     TremoloContext *s = ctx->priv;
ctx               124 libavfilter/af_tremolo.c     AVFilterContext *ctx = inlink->dst;
ctx               125 libavfilter/af_tremolo.c     TremoloContext *s = ctx->priv;
ctx                55 libavfilter/af_vibrato.c     AVFilterContext *ctx = inlink->dst;
ctx                56 libavfilter/af_vibrato.c     VibratoContext *s = ctx->priv;
ctx                57 libavfilter/af_vibrato.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               114 libavfilter/af_vibrato.c static int query_formats(AVFilterContext *ctx)
ctx               127 libavfilter/af_vibrato.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               134 libavfilter/af_vibrato.c     ret = ff_set_common_formats(ctx, formats);
ctx               141 libavfilter/af_vibrato.c     return ff_set_common_samplerates(ctx, formats);
ctx               144 libavfilter/af_vibrato.c static av_cold void uninit(AVFilterContext *ctx)
ctx               146 libavfilter/af_vibrato.c     VibratoContext *s = ctx->priv;
ctx               158 libavfilter/af_vibrato.c     AVFilterContext *ctx = inlink->dst;
ctx               159 libavfilter/af_vibrato.c     VibratoContext *s = ctx->priv;
ctx               113 libavfilter/af_volume.c static av_cold int init(AVFilterContext *ctx)
ctx               115 libavfilter/af_volume.c     VolumeContext *vol = ctx->priv;
ctx               121 libavfilter/af_volume.c     return set_expr(&vol->volume_pexpr, vol->volume_expr, ctx);
ctx               124 libavfilter/af_volume.c static av_cold void uninit(AVFilterContext *ctx)
ctx               126 libavfilter/af_volume.c     VolumeContext *vol = ctx->priv;
ctx               132 libavfilter/af_volume.c static int query_formats(AVFilterContext *ctx)
ctx               134 libavfilter/af_volume.c     VolumeContext *vol = ctx->priv;
ctx               163 libavfilter/af_volume.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               170 libavfilter/af_volume.c     ret = ff_set_common_formats(ctx, formats);
ctx               177 libavfilter/af_volume.c     return ff_set_common_samplerates(ctx, formats);
ctx               258 libavfilter/af_volume.c static int set_volume(AVFilterContext *ctx)
ctx               260 libavfilter/af_volume.c     VolumeContext *vol = ctx->priv;
ctx               265 libavfilter/af_volume.c             av_log(ctx, AV_LOG_ERROR, "Invalid value NaN for volume\n");
ctx               268 libavfilter/af_volume.c             av_log(ctx, AV_LOG_WARNING, "Invalid value NaN for volume, setting to 0\n");
ctx               274 libavfilter/af_volume.c     av_log(ctx, AV_LOG_VERBOSE, "n:%f t:%f pts:%f precision:%s ",
ctx               281 libavfilter/af_volume.c         av_log(ctx, AV_LOG_VERBOSE, "volume_i:%d/255 ", vol->volume_i);
ctx               283 libavfilter/af_volume.c     av_log(ctx, AV_LOG_VERBOSE, "volume:%f volume_dB:%f\n",
ctx               292 libavfilter/af_volume.c     AVFilterContext *ctx = outlink->src;
ctx               293 libavfilter/af_volume.c     VolumeContext *vol   = ctx->priv;
ctx               294 libavfilter/af_volume.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               319 libavfilter/af_volume.c     return set_volume(ctx);
ctx               322 libavfilter/af_volume.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               325 libavfilter/af_volume.c     VolumeContext *vol = ctx->priv;
ctx               329 libavfilter/af_volume.c         if ((ret = set_expr(&vol->volume_pexpr, args, ctx)) < 0)
ctx               332 libavfilter/af_volume.c             set_volume(ctx);
ctx               344 libavfilter/af_volume.c     AVFilterContext *ctx = inlink->dst;
ctx               402 libavfilter/af_volume.c         set_volume(ctx);
ctx                36 libavfilter/af_volumedetect.c static int query_formats(AVFilterContext *ctx)
ctx                53 libavfilter/af_volumedetect.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx                57 libavfilter/af_volumedetect.c     return ff_set_common_formats(ctx, formats);
ctx                62 libavfilter/af_volumedetect.c     AVFilterContext *ctx = inlink->dst;
ctx                63 libavfilter/af_volumedetect.c     VolDetectContext *vd = ctx->priv;
ctx                93 libavfilter/af_volumedetect.c static void print_stats(AVFilterContext *ctx)
ctx                95 libavfilter/af_volumedetect.c     VolDetectContext *vd = ctx->priv;
ctx               102 libavfilter/af_volumedetect.c     av_log(ctx, AV_LOG_INFO, "n_samples: %"PRId64"\n", nb_samples);
ctx               119 libavfilter/af_volumedetect.c     av_log(ctx, AV_LOG_INFO, "mean_volume: %.1f dB\n", -logdb(power));
ctx               125 libavfilter/af_volumedetect.c     av_log(ctx, AV_LOG_INFO, "max_volume: %.1f dB\n", -logdb(max_volume * max_volume));
ctx               131 libavfilter/af_volumedetect.c         av_log(ctx, AV_LOG_INFO, "histogram_%ddb: %"PRId64"\n", i, histdb[i]);
ctx               136 libavfilter/af_volumedetect.c static av_cold void uninit(AVFilterContext *ctx)
ctx               138 libavfilter/af_volumedetect.c     print_stats(ctx);
ctx               102 libavfilter/asrc_afirsrc.c static av_cold int init(AVFilterContext *ctx)
ctx               104 libavfilter/asrc_afirsrc.c     AudioFIRSourceContext *s = ctx->priv;
ctx               114 libavfilter/asrc_afirsrc.c static av_cold void uninit(AVFilterContext *ctx)
ctx               116 libavfilter/asrc_afirsrc.c     AudioFIRSourceContext *s = ctx->priv;
ctx               127 libavfilter/asrc_afirsrc.c static av_cold int query_formats(AVFilterContext *ctx)
ctx               129 libavfilter/asrc_afirsrc.c     AudioFIRSourceContext *s = ctx->priv;
ctx               144 libavfilter/asrc_afirsrc.c     ret = ff_set_common_formats (ctx, formats);
ctx               151 libavfilter/asrc_afirsrc.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               158 libavfilter/asrc_afirsrc.c     return ff_set_common_samplerates(ctx, formats);
ctx               212 libavfilter/asrc_afirsrc.c     AVFilterContext *ctx = outlink->src;
ctx               213 libavfilter/asrc_afirsrc.c     AudioFIRSourceContext *s = ctx->priv;
ctx               232 libavfilter/asrc_afirsrc.c         av_log(ctx, AV_LOG_ERROR, "Number of frequencies, magnitudes and phases must be same and >= 2.\n");
ctx               238 libavfilter/asrc_afirsrc.c             av_log(ctx, AV_LOG_ERROR, "First frequency must be 0.\n");
ctx               243 libavfilter/asrc_afirsrc.c             av_log(ctx, AV_LOG_ERROR, "Last frequency must be 1.\n");
ctx               248 libavfilter/asrc_afirsrc.c             av_log(ctx, AV_LOG_ERROR, "Frequencies must be in increasing order.\n");
ctx               291 libavfilter/asrc_afirsrc.c     AVFilterContext *ctx = outlink->src;
ctx               292 libavfilter/asrc_afirsrc.c     AudioFIRSourceContext *s = ctx->priv;
ctx                83 libavfilter/asrc_anoisesrc.c static av_cold int query_formats(AVFilterContext *ctx)
ctx                85 libavfilter/asrc_anoisesrc.c     ANoiseSrcContext *s = ctx->priv;
ctx               100 libavfilter/asrc_anoisesrc.c     ret = ff_set_common_formats (ctx, formats);
ctx               107 libavfilter/asrc_anoisesrc.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               114 libavfilter/asrc_anoisesrc.c     return ff_set_common_samplerates(ctx, formats);
ctx               179 libavfilter/asrc_anoisesrc.c     AVFilterContext *ctx = outlink->src;
ctx               180 libavfilter/asrc_anoisesrc.c     ANoiseSrcContext *s = ctx->priv;
ctx               202 libavfilter/asrc_anoisesrc.c static int activate(AVFilterContext *ctx)
ctx               204 libavfilter/asrc_anoisesrc.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               205 libavfilter/asrc_anoisesrc.c     ANoiseSrcContext *s = ctx->priv;
ctx                62 libavfilter/asrc_anullsrc.c static av_cold int init(AVFilterContext *ctx)
ctx                64 libavfilter/asrc_anullsrc.c     ANullContext *null = ctx->priv;
ctx                68 libavfilter/asrc_anullsrc.c                                      null->sample_rate_str, ctx)) < 0)
ctx                72 libavfilter/asrc_anullsrc.c                                         null->channel_layout_str, ctx)) < 0)
ctx                78 libavfilter/asrc_anullsrc.c static int query_formats(AVFilterContext *ctx)
ctx                80 libavfilter/asrc_anullsrc.c     ANullContext *null = ctx->priv;
ctx                85 libavfilter/asrc_anullsrc.c     if ((ret = ff_set_common_formats         (ctx, ff_all_formats              (AVMEDIA_TYPE_AUDIO))) < 0 ||
ctx                86 libavfilter/asrc_anullsrc.c         (ret = ff_set_common_channel_layouts (ctx, avfilter_make_format64_list (chlayouts         ))) < 0 ||
ctx                87 libavfilter/asrc_anullsrc.c         (ret = ff_set_common_samplerates     (ctx, ff_make_format_list         (sample_rates      ))) < 0)
ctx               134 libavfilter/asrc_flite.c static av_cold int init(AVFilterContext *ctx)
ctx               136 libavfilter/asrc_flite.c     FliteContext *flite = ctx->priv;
ctx               140 libavfilter/asrc_flite.c         list_voices(ctx, "\n");
ctx               146 libavfilter/asrc_flite.c             av_log(ctx, AV_LOG_ERROR, "flite initialization failed\n");
ctx               152 libavfilter/asrc_flite.c     if ((ret = select_voice(&flite->voice_entry, flite->voice_str, ctx)) < 0)
ctx               157 libavfilter/asrc_flite.c         av_log(ctx, AV_LOG_ERROR,
ctx               166 libavfilter/asrc_flite.c         if ((ret = av_file_map(flite->textfile, &textbuf, &textbuf_size, 0, ctx)) < 0) {
ctx               167 libavfilter/asrc_flite.c             av_log(ctx, AV_LOG_ERROR,
ctx               183 libavfilter/asrc_flite.c         av_log(ctx, AV_LOG_ERROR,
ctx               195 libavfilter/asrc_flite.c static av_cold void uninit(AVFilterContext *ctx)
ctx               197 libavfilter/asrc_flite.c     FliteContext *flite = ctx->priv;
ctx               207 libavfilter/asrc_flite.c static int query_formats(AVFilterContext *ctx)
ctx               209 libavfilter/asrc_flite.c     FliteContext *flite = ctx->priv;
ctx               218 libavfilter/asrc_flite.c         (ret = ff_set_common_channel_layouts (ctx            , chlayouts               )) < 0 ||
ctx               220 libavfilter/asrc_flite.c         (ret = ff_set_common_formats         (ctx            , sample_formats          )) < 0 ||
ctx               222 libavfilter/asrc_flite.c         (ret = ff_set_common_samplerates     (ctx            , sample_rates            )) < 0)
ctx               230 libavfilter/asrc_flite.c     AVFilterContext *ctx = outlink->src;
ctx               231 libavfilter/asrc_flite.c     FliteContext *flite = ctx->priv;
ctx               236 libavfilter/asrc_flite.c     av_log(ctx, AV_LOG_VERBOSE, "voice:%s fmt:%s sample_rate:%d\n",
ctx                76 libavfilter/asrc_hilbert.c static av_cold int init(AVFilterContext *ctx)
ctx                78 libavfilter/asrc_hilbert.c     HilbertContext *s = ctx->priv;
ctx                88 libavfilter/asrc_hilbert.c static av_cold void uninit(AVFilterContext *ctx)
ctx                90 libavfilter/asrc_hilbert.c     HilbertContext *s = ctx->priv;
ctx                95 libavfilter/asrc_hilbert.c static av_cold int query_formats(AVFilterContext *ctx)
ctx                97 libavfilter/asrc_hilbert.c     HilbertContext *s = ctx->priv;
ctx               112 libavfilter/asrc_hilbert.c     ret = ff_set_common_formats (ctx, formats);
ctx               119 libavfilter/asrc_hilbert.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               126 libavfilter/asrc_hilbert.c     return ff_set_common_samplerates(ctx, formats);
ctx               131 libavfilter/asrc_hilbert.c     AVFilterContext *ctx = outlink->src;
ctx               132 libavfilter/asrc_hilbert.c     HilbertContext *s = ctx->priv;
ctx               161 libavfilter/asrc_hilbert.c     AVFilterContext *ctx = outlink->src;
ctx               162 libavfilter/asrc_hilbert.c     HilbertContext *s = ctx->priv;
ctx                48 libavfilter/asrc_sinc.c     AVFilterContext *ctx = outlink->src;
ctx                49 libavfilter/asrc_sinc.c     SincContext *s = ctx->priv;
ctx                69 libavfilter/asrc_sinc.c static int query_formats(AVFilterContext *ctx)
ctx                71 libavfilter/asrc_sinc.c     SincContext *s = ctx->priv;
ctx                83 libavfilter/asrc_sinc.c     ret = ff_set_common_formats (ctx, formats);
ctx                90 libavfilter/asrc_sinc.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx                97 libavfilter/asrc_sinc.c     return ff_set_common_samplerates(ctx, formats);
ctx               347 libavfilter/asrc_sinc.c     AVFilterContext *ctx = outlink->src;
ctx               348 libavfilter/asrc_sinc.c     SincContext *s = ctx->priv;
ctx               357 libavfilter/asrc_sinc.c         av_log(ctx, AV_LOG_ERROR,
ctx               406 libavfilter/asrc_sinc.c static av_cold void uninit(AVFilterContext *ctx)
ctx               408 libavfilter/asrc_sinc.c     SincContext *s = ctx->priv;
ctx               144 libavfilter/asrc_sine.c static av_cold int init(AVFilterContext *ctx)
ctx               147 libavfilter/asrc_sine.c     SineContext *sine = ctx->priv;
ctx               170 libavfilter/asrc_sine.c static av_cold void uninit(AVFilterContext *ctx)
ctx               172 libavfilter/asrc_sine.c     SineContext *sine = ctx->priv;
ctx               179 libavfilter/asrc_sine.c static av_cold int query_formats(AVFilterContext *ctx)
ctx               181 libavfilter/asrc_sine.c     SineContext *sine = ctx->priv;
ctx               193 libavfilter/asrc_sine.c     ret = ff_set_common_formats (ctx, formats);
ctx               200 libavfilter/asrc_sine.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               207 libavfilter/asrc_sine.c     return ff_set_common_samplerates(ctx, formats);
ctx                61 libavfilter/avf_abitscope.c static int query_formats(AVFilterContext *ctx)
ctx                65 libavfilter/avf_abitscope.c     AVFilterLink *inlink = ctx->inputs[0];
ctx                66 libavfilter/avf_abitscope.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                94 libavfilter/avf_abitscope.c     AVFilterContext *ctx = inlink->dst;
ctx                95 libavfilter/avf_abitscope.c     AudioBitScopeContext *s = ctx->priv;
ctx               117 libavfilter/avf_abitscope.c             av_parse_color(fg, color, -1, ctx);
ctx               152 libavfilter/avf_abitscope.c     AVFilterContext *ctx = inlink->dst;
ctx               153 libavfilter/avf_abitscope.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               154 libavfilter/avf_abitscope.c     AudioBitScopeContext *s = ctx->priv;
ctx               224 libavfilter/avf_abitscope.c static int activate(AVFilterContext *ctx)
ctx               226 libavfilter/avf_abitscope.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               227 libavfilter/avf_abitscope.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               228 libavfilter/avf_abitscope.c     AudioBitScopeContext *s = ctx->priv;
ctx                91 libavfilter/avf_ahistogram.c static int query_formats(AVFilterContext *ctx)
ctx                95 libavfilter/avf_ahistogram.c     AVFilterLink *inlink = ctx->inputs[0];
ctx                96 libavfilter/avf_ahistogram.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               120 libavfilter/avf_ahistogram.c     AVFilterContext *ctx = inlink->dst;
ctx               121 libavfilter/avf_ahistogram.c     AudioHistogramContext *s = ctx->priv;
ctx               159 libavfilter/avf_ahistogram.c     AVFilterContext *ctx = inlink->dst;
ctx               160 libavfilter/avf_ahistogram.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               161 libavfilter/avf_ahistogram.c     AudioHistogramContext *s = ctx->priv;
ctx               374 libavfilter/avf_ahistogram.c static int activate(AVFilterContext *ctx)
ctx               376 libavfilter/avf_ahistogram.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               377 libavfilter/avf_ahistogram.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               378 libavfilter/avf_ahistogram.c     AudioHistogramContext *s = ctx->priv;
ctx               396 libavfilter/avf_ahistogram.c static av_cold void uninit(AVFilterContext *ctx)
ctx               398 libavfilter/avf_ahistogram.c     AudioHistogramContext *s = ctx->priv;
ctx                67 libavfilter/avf_aphasemeter.c static int query_formats(AVFilterContext *ctx)
ctx                69 libavfilter/avf_aphasemeter.c     AudioPhaseMeterContext *s = ctx->priv;
ctx                72 libavfilter/avf_aphasemeter.c     AVFilterLink *inlink = ctx->inputs[0];
ctx                73 libavfilter/avf_aphasemeter.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                92 libavfilter/avf_aphasemeter.c         AVFilterLink *outlink = ctx->outputs[1];
ctx               104 libavfilter/avf_aphasemeter.c     AVFilterContext *ctx = inlink->dst;
ctx               105 libavfilter/avf_aphasemeter.c     AudioPhaseMeterContext *s = ctx->priv;
ctx               120 libavfilter/avf_aphasemeter.c     AVFilterContext *ctx = outlink->src;
ctx               121 libavfilter/avf_aphasemeter.c     AudioPhaseMeterContext *s = ctx->priv;
ctx               130 libavfilter/avf_aphasemeter.c     else if (av_parse_color(s->mpc, s->mpc_str, -1, ctx) >= 0)
ctx               145 libavfilter/avf_aphasemeter.c     AVFilterContext *ctx = inlink->dst;
ctx               146 libavfilter/avf_aphasemeter.c     AudioPhaseMeterContext *s = ctx->priv;
ctx               147 libavfilter/avf_aphasemeter.c     AVFilterLink *outlink = s->do_video ? ctx->outputs[1] : NULL;
ctx               148 libavfilter/avf_aphasemeter.c     AVFilterLink *aoutlink = ctx->outputs[0];
ctx               227 libavfilter/avf_aphasemeter.c static av_cold void uninit(AVFilterContext *ctx)
ctx               229 libavfilter/avf_aphasemeter.c     AudioPhaseMeterContext *s = ctx->priv;
ctx               233 libavfilter/avf_aphasemeter.c     for (i = 0; i < ctx->nb_outputs; i++)
ctx               234 libavfilter/avf_aphasemeter.c         av_freep(&ctx->output_pads[i].name);
ctx               237 libavfilter/avf_aphasemeter.c static av_cold int init(AVFilterContext *ctx)
ctx               239 libavfilter/avf_aphasemeter.c     AudioPhaseMeterContext *s = ctx->priv;
ctx               249 libavfilter/avf_aphasemeter.c     ret = ff_insert_outpad(ctx, 0, &pad);
ctx               263 libavfilter/avf_aphasemeter.c         ret = ff_insert_outpad(ctx, 1, &pad);
ctx               182 libavfilter/avf_avectorscope.c static int query_formats(AVFilterContext *ctx)
ctx               186 libavfilter/avf_avectorscope.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               187 libavfilter/avf_avectorscope.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               211 libavfilter/avf_avectorscope.c     AVFilterContext *ctx = inlink->dst;
ctx               212 libavfilter/avf_avectorscope.c     AudioVectorScopeContext *s = ctx->priv;
ctx               236 libavfilter/avf_avectorscope.c     AVFilterContext *ctx = inlink->dst;
ctx               237 libavfilter/avf_avectorscope.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               238 libavfilter/avf_avectorscope.c     AudioVectorScopeContext *s = ctx->priv;
ctx               371 libavfilter/avf_avectorscope.c static int activate(AVFilterContext *ctx)
ctx               373 libavfilter/avf_avectorscope.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               374 libavfilter/avf_avectorscope.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               375 libavfilter/avf_avectorscope.c     AudioVectorScopeContext *s = ctx->priv;
ctx               393 libavfilter/avf_avectorscope.c static av_cold void uninit(AVFilterContext *ctx)
ctx               395 libavfilter/avf_avectorscope.c     AudioVectorScopeContext *s = ctx->priv;
ctx                75 libavfilter/avf_concat.c static int query_formats(AVFilterContext *ctx)
ctx                77 libavfilter/avf_concat.c     ConcatContext *cat = ctx->priv;
ctx                90 libavfilter/avf_concat.c             if ((ret = ff_formats_ref(formats, &ctx->outputs[idx]->in_formats)) < 0)
ctx                95 libavfilter/avf_concat.c                 if ((ret = ff_formats_ref(rates, &ctx->outputs[idx]->in_samplerates)) < 0)
ctx                98 libavfilter/avf_concat.c                 if ((ret = ff_channel_layouts_ref(layouts, &ctx->outputs[idx]->in_channel_layouts)) < 0)
ctx               104 libavfilter/avf_concat.c                 if ((ret = ff_formats_ref(formats, &ctx->inputs[idx]->out_formats)) < 0)
ctx               107 libavfilter/avf_concat.c                     if ((ret = ff_formats_ref(rates, &ctx->inputs[idx]->out_samplerates)) < 0 ||
ctx               108 libavfilter/avf_concat.c                         (ret = ff_channel_layouts_ref(layouts, &ctx->inputs[idx]->out_channel_layouts)) < 0)
ctx               111 libavfilter/avf_concat.c                 idx += ctx->nb_outputs;
ctx               122 libavfilter/avf_concat.c     AVFilterContext *ctx = outlink->src;
ctx               123 libavfilter/avf_concat.c     ConcatContext *cat   = ctx->priv;
ctx               126 libavfilter/avf_concat.c     AVFilterLink *inlink = ctx->inputs[in_no];
ctx               137 libavfilter/avf_concat.c         inlink = ctx->inputs[in_no + seg * ctx->nb_outputs];
ctx               140 libavfilter/avf_concat.c             av_log(ctx, AV_LOG_VERBOSE,
ctx               148 libavfilter/avf_concat.c         inlink = ctx->inputs[in_no + seg * ctx->nb_outputs];
ctx               157 libavfilter/avf_concat.c             av_log(ctx, AV_LOG_ERROR, "Input link %s parameters "
ctx               160 libavfilter/avf_concat.c                    ctx->input_pads[in_no].name, inlink->w, inlink->h,
ctx               163 libavfilter/avf_concat.c                    ctx->input_pads[out_no].name, outlink->w, outlink->h,
ctx               174 libavfilter/avf_concat.c static int push_frame(AVFilterContext *ctx, unsigned in_no, AVFrame *buf)
ctx               176 libavfilter/avf_concat.c     ConcatContext *cat = ctx->priv;
ctx               177 libavfilter/avf_concat.c     unsigned out_no = in_no % ctx->nb_outputs;
ctx               178 libavfilter/avf_concat.c     AVFilterLink * inlink = ctx-> inputs[ in_no];
ctx               179 libavfilter/avf_concat.c     AVFilterLink *outlink = ctx->outputs[out_no];
ctx               201 libavfilter/avf_concat.c     AVFilterContext *ctx = inlink->dst;
ctx               203 libavfilter/avf_concat.c     AVFilterLink *outlink = ctx->outputs[in_no % ctx->nb_outputs];
ctx               210 libavfilter/avf_concat.c     AVFilterContext *ctx = inlink->dst;
ctx               212 libavfilter/avf_concat.c     AVFilterLink *outlink = ctx->outputs[in_no % ctx->nb_outputs];
ctx               217 libavfilter/avf_concat.c static void close_input(AVFilterContext *ctx, unsigned in_no)
ctx               219 libavfilter/avf_concat.c     ConcatContext *cat = ctx->priv;
ctx               223 libavfilter/avf_concat.c     av_log(ctx, AV_LOG_VERBOSE, "EOF on %s, %d streams left in segment.\n",
ctx               224 libavfilter/avf_concat.c            ctx->input_pads[in_no].name, cat->nb_in_active);
ctx               227 libavfilter/avf_concat.c static void find_next_delta_ts(AVFilterContext *ctx, int64_t *seg_delta)
ctx               229 libavfilter/avf_concat.c     ConcatContext *cat = ctx->priv;
ctx               231 libavfilter/avf_concat.c     unsigned imax = i + ctx->nb_outputs;
ctx               241 libavfilter/avf_concat.c static int send_silence(AVFilterContext *ctx, unsigned in_no, unsigned out_no,
ctx               244 libavfilter/avf_concat.c     ConcatContext *cat = ctx->priv;
ctx               245 libavfilter/avf_concat.c     AVFilterLink *outlink = ctx->outputs[out_no];
ctx               249 libavfilter/avf_concat.c     AVRational rate_tb = { 1, ctx->inputs[in_no]->sample_rate };
ctx               274 libavfilter/avf_concat.c static int flush_segment(AVFilterContext *ctx)
ctx               277 libavfilter/avf_concat.c     ConcatContext *cat = ctx->priv;
ctx               281 libavfilter/avf_concat.c     find_next_delta_ts(ctx, &seg_delta);
ctx               282 libavfilter/avf_concat.c     cat->cur_idx += ctx->nb_outputs;
ctx               283 libavfilter/avf_concat.c     cat->nb_in_active = ctx->nb_outputs;
ctx               284 libavfilter/avf_concat.c     av_log(ctx, AV_LOG_VERBOSE, "Segment finished at pts=%"PRId64"\n",
ctx               287 libavfilter/avf_concat.c     if (cat->cur_idx < ctx->nb_inputs) {
ctx               292 libavfilter/avf_concat.c             ret = send_silence(ctx, cat->cur_idx - ctx->nb_outputs + str, str,
ctx               301 libavfilter/avf_concat.c static av_cold int init(AVFilterContext *ctx)
ctx               303 libavfilter/avf_concat.c     ConcatContext *cat = ctx->priv;
ctx               317 libavfilter/avf_concat.c                 if ((ret = ff_insert_inpad(ctx, ctx->nb_inputs, &pad)) < 0) {
ctx               332 libavfilter/avf_concat.c             if ((ret = ff_insert_outpad(ctx, ctx->nb_outputs, &pad)) < 0) {
ctx               339 libavfilter/avf_concat.c     cat->in = av_calloc(ctx->nb_inputs, sizeof(*cat->in));
ctx               342 libavfilter/avf_concat.c     cat->nb_in_active = ctx->nb_outputs;
ctx               346 libavfilter/avf_concat.c static av_cold void uninit(AVFilterContext *ctx)
ctx               348 libavfilter/avf_concat.c     ConcatContext *cat = ctx->priv;
ctx               351 libavfilter/avf_concat.c     for (i = 0; i < ctx->nb_inputs; i++)
ctx               352 libavfilter/avf_concat.c         av_freep(&ctx->input_pads[i].name);
ctx               353 libavfilter/avf_concat.c     for (i = 0; i < ctx->nb_outputs; i++)
ctx               354 libavfilter/avf_concat.c         av_freep(&ctx->output_pads[i].name);
ctx               358 libavfilter/avf_concat.c static int activate(AVFilterContext *ctx)
ctx               360 libavfilter/avf_concat.c     ConcatContext *cat = ctx->priv;
ctx               367 libavfilter/avf_concat.c     for (i = 0; i < ctx->nb_outputs; i++) {
ctx               368 libavfilter/avf_concat.c         status = ff_outlink_get_status(ctx->outputs[i]);
ctx               371 libavfilter/avf_concat.c         for (j = i; j < ctx->nb_inputs; j += ctx->nb_outputs) {
ctx               374 libavfilter/avf_concat.c                 ff_inlink_set_status(ctx->inputs[j], status);
ctx               382 libavfilter/avf_concat.c     if (cat->cur_idx < ctx->nb_inputs) {
ctx               383 libavfilter/avf_concat.c         for (i = 0; i < ctx->nb_outputs; i++) {
ctx               384 libavfilter/avf_concat.c             ret = ff_inlink_consume_frame(ctx->inputs[cat->cur_idx + i], &frame);
ctx               388 libavfilter/avf_concat.c                 ff_filter_set_ready(ctx, 10);
ctx               389 libavfilter/avf_concat.c                 return push_frame(ctx, cat->cur_idx + i, frame);
ctx               395 libavfilter/avf_concat.c     if (cat->cur_idx < ctx->nb_inputs) {
ctx               396 libavfilter/avf_concat.c         for (i = 0; i < ctx->nb_outputs; i++) {
ctx               397 libavfilter/avf_concat.c             ret = ff_inlink_acknowledge_status(ctx->inputs[cat->cur_idx + i], &status, &pts);
ctx               400 libavfilter/avf_concat.c                 close_input(ctx, cat->cur_idx + i);
ctx               401 libavfilter/avf_concat.c                 if (cat->cur_idx + ctx->nb_outputs >= ctx->nb_inputs) {
ctx               402 libavfilter/avf_concat.c                     ff_outlink_set_status(ctx->outputs[i], status, pts);
ctx               405 libavfilter/avf_concat.c                     ret = flush_segment(ctx);
ctx               409 libavfilter/avf_concat.c                 ff_filter_set_ready(ctx, 10);
ctx               416 libavfilter/avf_concat.c     for (i = 0; i < ctx->nb_outputs; i++) {
ctx               417 libavfilter/avf_concat.c         if (ff_outlink_frame_wanted(ctx->outputs[i])) {
ctx               419 libavfilter/avf_concat.c                 for (j = 0; j < ctx->nb_outputs; j++)
ctx               421 libavfilter/avf_concat.c                         ff_inlink_request_frame(ctx->inputs[cat->cur_idx + j]);
ctx               424 libavfilter/avf_concat.c                 ff_inlink_request_frame(ctx->inputs[cat->cur_idx + i]);
ctx               433 libavfilter/avf_concat.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               439 libavfilter/avf_concat.c         av_log(ctx, AV_LOG_VERBOSE, "Command received: next\n");
ctx               440 libavfilter/avf_concat.c         return flush_segment(ctx);
ctx               115 libavfilter/avf_showcqt.c         av_log(s->ctx, level, "fft_time         = %16.3f s.\n", s->fft_time * 1e-6);
ctx               117 libavfilter/avf_showcqt.c         av_log(s->ctx, level, "cqt_time         = %16.3f s.\n", s->cqt_time * 1e-6);
ctx               119 libavfilter/avf_showcqt.c         av_log(s->ctx, level, "process_cqt_time = %16.3f s.\n", s->process_cqt_time * 1e-6);
ctx               121 libavfilter/avf_showcqt.c         av_log(s->ctx, level, "update_sono_time = %16.3f s.\n", s->update_sono_time * 1e-6);
ctx               123 libavfilter/avf_showcqt.c         av_log(s->ctx, level, "alloc_time       = %16.3f s.\n", s->alloc_time * 1e-6);
ctx               125 libavfilter/avf_showcqt.c         av_log(s->ctx, level, "bar_time         = %16.3f s.\n", s->bar_time * 1e-6);
ctx               127 libavfilter/avf_showcqt.c         av_log(s->ctx, level, "axis_time        = %16.3f s.\n", s->axis_time * 1e-6);
ctx               129 libavfilter/avf_showcqt.c         av_log(s->ctx, level, "sono_time        = %16.3f s.\n", s->sono_time * 1e-6);
ctx               134 libavfilter/avf_showcqt.c         av_log(s->ctx, level, "plot_time        = %16.3f s.\n", plot_time * 1e-6);
ctx               242 libavfilter/avf_showcqt.c     if ((ret = av_expr_parse(&sono, s->sono_v, sono_names, func_names, funcs, NULL, NULL, 0, s->ctx)) < 0)
ctx               245 libavfilter/avf_showcqt.c     if ((ret = av_expr_parse(&bar, s->bar_v, bar_names, func_names, funcs, NULL, NULL, 0, s->ctx)) < 0)
ctx               250 libavfilter/avf_showcqt.c         double vol = clip_with_log(s->ctx, "sono_v", av_expr_eval(sono, vars, NULL), 0.0, VOLUME_MAX, 0.0, x);
ctx               252 libavfilter/avf_showcqt.c         vol = clip_with_log(s->ctx, "bar_v", av_expr_eval(bar, vars, NULL), 0.0, VOLUME_MAX, 0.0, x);
ctx               255 libavfilter/avf_showcqt.c         vol = clip_with_log(s->ctx, "sono_v", av_expr_eval(sono, vars, NULL), 0.0, VOLUME_MAX, 0.0, x);
ctx               301 libavfilter/avf_showcqt.c     int rate = s->ctx->inputs[0]->sample_rate;
ctx               305 libavfilter/avf_showcqt.c     if ((ret = av_expr_parse(&expr, s->tlength, var_names, NULL, NULL, NULL, NULL, 0, s->ctx)) < 0)
ctx               319 libavfilter/avf_showcqt.c         tlength = clip_with_log(s->ctx, "tlength", av_expr_eval(expr, vars, NULL),
ctx               347 libavfilter/avf_showcqt.c     av_log(s->ctx, AV_LOG_INFO, "nb_cqt_coeffs = %d.\n", nb_cqt_coeffs);
ctx               411 libavfilter/avf_showcqt.c                              s->axisfile, s->ctx)) < 0)
ctx               420 libavfilter/avf_showcqt.c                               tmp_format, s->ctx)) < 0)
ctx               470 libavfilter/avf_showcqt.c         av_log(s->ctx, AV_LOG_WARNING, "font axis rendering is not implemented in non-default frequency range,"
ctx               480 libavfilter/avf_showcqt.c     if ((ret = av_expr_parse(&expr, s->fontcolor, var_names, func_names, funcs, NULL, NULL, 0, s->ctx)) < 0) {
ctx               547 libavfilter/avf_showcqt.c             av_log(s->ctx, AV_LOG_WARNING, "font is not monospace.\n");
ctx               578 libavfilter/avf_showcqt.c     av_log(s->ctx, AV_LOG_WARNING, "error while loading freetype font.\n");
ctx               584 libavfilter/avf_showcqt.c         av_log(s->ctx, AV_LOG_WARNING, "freetype is not available, ignoring fontfile option.\n");
ctx               607 libavfilter/avf_showcqt.c         av_log(s->ctx, AV_LOG_ERROR, "impossible to init fontconfig.\n");
ctx               612 libavfilter/avf_showcqt.c         av_log(s->ctx, AV_LOG_ERROR, "could not parse fontconfig pat.\n");
ctx               620 libavfilter/avf_showcqt.c         av_log(s->ctx, AV_LOG_ERROR, "could not substitue fontconfig options.\n");
ctx               631 libavfilter/avf_showcqt.c         av_log(s->ctx, AV_LOG_ERROR, "cannot find a valid font for %s.\n", font);
ctx               636 libavfilter/avf_showcqt.c         av_log(s->ctx, AV_LOG_ERROR, "no file path for %s\n", font);
ctx               648 libavfilter/avf_showcqt.c         av_log(s->ctx, AV_LOG_WARNING, "fontconfig is not available, ignoring font option.\n");
ctx               705 libavfilter/avf_showcqt.c                               width, height, AV_PIX_FMT_RGBA, s->ctx)) < 0)
ctx              1129 libavfilter/avf_showcqt.c static int plot_cqt(AVFilterContext *ctx, AVFrame **frameout)
ctx              1131 libavfilter/avf_showcqt.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              1132 libavfilter/avf_showcqt.c     ShowCQTContext *s = ctx->priv;
ctx              1206 libavfilter/avf_showcqt.c         av_log(s->ctx, AV_LOG_WARNING, "unsupported colorspace, setting it to unspecified.\n");
ctx              1251 libavfilter/avf_showcqt.c     av_log(s->ctx, AV_LOG_ERROR, "invalid cscheme.\n");
ctx              1256 libavfilter/avf_showcqt.c static av_cold int init(AVFilterContext *ctx)
ctx              1258 libavfilter/avf_showcqt.c     ShowCQTContext *s = ctx->priv;
ctx              1259 libavfilter/avf_showcqt.c     s->ctx = ctx;
ctx              1262 libavfilter/avf_showcqt.c         av_log(ctx, AV_LOG_WARNING, "fullhd option is deprecated, use size/s option instead.\n");
ctx              1264 libavfilter/avf_showcqt.c             av_log(ctx, AV_LOG_ERROR, "fullhd set to 0 but with custom dimension.\n");
ctx              1298 libavfilter/avf_showcqt.c         av_log(ctx, AV_LOG_ERROR, "invalid dimension.\n");
ctx              1313 libavfilter/avf_showcqt.c static av_cold void uninit(AVFilterContext *ctx)
ctx              1315 libavfilter/avf_showcqt.c     common_uninit(ctx->priv);
ctx              1318 libavfilter/avf_showcqt.c static int query_formats(AVFilterContext *ctx)
ctx              1322 libavfilter/avf_showcqt.c     AVFilterLink *inlink = ctx->inputs[0];
ctx              1323 libavfilter/avf_showcqt.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              1355 libavfilter/avf_showcqt.c     AVFilterContext *ctx = outlink->src;
ctx              1356 libavfilter/avf_showcqt.c     AVFilterLink *inlink = ctx->inputs[0];
ctx              1357 libavfilter/avf_showcqt.c     ShowCQTContext *s = ctx->priv;
ctx              1368 libavfilter/avf_showcqt.c     av_log(ctx, AV_LOG_INFO, "video: %dx%d %s %d/%d fps, bar_h = %d, axis_h = %d, sono_h = %d.\n",
ctx              1381 libavfilter/avf_showcqt.c     av_log(ctx, AV_LOG_INFO, "fft_len = %d, cqt_len = %d.\n", s->fft_len, s->cqt_len);
ctx              1431 libavfilter/avf_showcqt.c                 av_log(ctx, AV_LOG_WARNING, "loading axis image failed, fallback to font rendering.\n");
ctx              1433 libavfilter/avf_showcqt.c                     av_log(ctx, AV_LOG_WARNING, "loading axis font failed, disable text drawing.\n");
ctx              1440 libavfilter/avf_showcqt.c                 av_log(ctx, AV_LOG_WARNING, "loading axis font failed, disable text drawing.\n");
ctx              1469 libavfilter/avf_showcqt.c         av_log(ctx, AV_LOG_INFO, "audio: %d Hz, step = %d + %d/%d.\n",
ctx              1471 libavfilter/avf_showcqt.c         av_log(ctx, AV_LOG_WARNING, "fractional step.\n");
ctx              1473 libavfilter/avf_showcqt.c         av_log(ctx, AV_LOG_INFO, "audio: %d Hz, step = %d.\n",
ctx              1483 libavfilter/avf_showcqt.c     AVFilterContext *ctx = inlink->dst;
ctx              1484 libavfilter/avf_showcqt.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              1485 libavfilter/avf_showcqt.c     ShowCQTContext *s = ctx->priv;
ctx              1493 libavfilter/avf_showcqt.c             ret = plot_cqt(ctx, &out);
ctx              1520 libavfilter/avf_showcqt.c             ret = plot_cqt(ctx, &out);
ctx              1531 libavfilter/avf_showcqt.c                     av_log(ctx, AV_LOG_DEBUG, "changing pts from %"PRId64" (%.3f) to %"PRId64" (%.3f).\n",
ctx                48 libavfilter/avf_showcqt.h     AVFilterContext     *ctx;
ctx               123 libavfilter/avf_showfreqs.c static int query_formats(AVFilterContext *ctx)
ctx               127 libavfilter/avf_showfreqs.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               128 libavfilter/avf_showfreqs.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               154 libavfilter/avf_showfreqs.c static av_cold int init(AVFilterContext *ctx)
ctx               156 libavfilter/avf_showfreqs.c     ShowFreqsContext *s = ctx->priv;
ctx               165 libavfilter/avf_showfreqs.c     AVFilterContext *ctx = outlink->src;
ctx               166 libavfilter/avf_showfreqs.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               167 libavfilter/avf_showfreqs.c     ShowFreqsContext *s = ctx->priv;
ctx               178 libavfilter/avf_showfreqs.c         av_log(ctx, AV_LOG_ERROR, "Unable to create FFT context. "
ctx               217 libavfilter/avf_showfreqs.c         av_log(ctx, AV_LOG_ERROR, "overlap %f too big\n", s->overlap);
ctx               362 libavfilter/avf_showfreqs.c     AVFilterContext *ctx = inlink->dst;
ctx               363 libavfilter/avf_showfreqs.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               364 libavfilter/avf_showfreqs.c     ShowFreqsContext *s = ctx->priv;
ctx               414 libavfilter/avf_showfreqs.c             av_parse_color(fg, color, -1, ctx);
ctx               434 libavfilter/avf_showfreqs.c     AVFilterContext *ctx = inlink->dst;
ctx               435 libavfilter/avf_showfreqs.c     ShowFreqsContext *s = ctx->priv;
ctx               460 libavfilter/avf_showfreqs.c static int activate(AVFilterContext *ctx)
ctx               462 libavfilter/avf_showfreqs.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               463 libavfilter/avf_showfreqs.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               464 libavfilter/avf_showfreqs.c     ShowFreqsContext *s = ctx->priv;
ctx               493 libavfilter/avf_showfreqs.c static av_cold void uninit(AVFilterContext *ctx)
ctx               495 libavfilter/avf_showfreqs.c     ShowFreqsContext *s = ctx->priv;
ctx                91 libavfilter/avf_showspatial.c static av_cold void uninit(AVFilterContext *ctx)
ctx                93 libavfilter/avf_showspatial.c     ShowSpatialContext *s = ctx->priv;
ctx               106 libavfilter/avf_showspatial.c static int query_formats(AVFilterContext *ctx)
ctx               110 libavfilter/avf_showspatial.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               111 libavfilter/avf_showspatial.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               133 libavfilter/avf_showspatial.c static int run_channel_fft(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               135 libavfilter/avf_showspatial.c     ShowSpatialContext *s = ctx->priv;
ctx               154 libavfilter/avf_showspatial.c     AVFilterContext *ctx = outlink->src;
ctx               155 libavfilter/avf_showspatial.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               156 libavfilter/avf_showspatial.c     ShowSpatialContext *s = ctx->priv;
ctx               182 libavfilter/avf_showspatial.c                 av_log(ctx, AV_LOG_ERROR, "Unable to create FFT context. "
ctx               206 libavfilter/avf_showspatial.c             av_log(ctx, AV_LOG_ERROR, "overlap %f too big\n", s->overlap);
ctx               234 libavfilter/avf_showspatial.c     AVFilterContext *ctx = inlink->dst;
ctx               235 libavfilter/avf_showspatial.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               236 libavfilter/avf_showspatial.c     ShowSpatialContext *s = ctx->priv;
ctx               281 libavfilter/avf_showspatial.c static int spatial_activate(AVFilterContext *ctx)
ctx               283 libavfilter/avf_showspatial.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               284 libavfilter/avf_showspatial.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               285 libavfilter/avf_showspatial.c     ShowSpatialContext *s = ctx->priv;
ctx               321 libavfilter/avf_showspatial.c         ctx->internal->execute(ctx, run_channel_fft, fin, NULL, 2);
ctx               338 libavfilter/avf_showspatial.c         ff_filter_set_ready(ctx, 10);
ctx               100 libavfilter/avf_showspectrum.c     int (*plot_channel)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx               300 libavfilter/avf_showspectrum.c static av_cold void uninit(AVFilterContext *ctx)
ctx               302 libavfilter/avf_showspectrum.c     ShowSpectrumContext *s = ctx->priv;
ctx               346 libavfilter/avf_showspectrum.c static int query_formats(AVFilterContext *ctx)
ctx               350 libavfilter/avf_showspectrum.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               351 libavfilter/avf_showspectrum.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               377 libavfilter/avf_showspectrum.c static int run_channel_fft(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               379 libavfilter/avf_showspectrum.c     ShowSpectrumContext *s = ctx->priv;
ctx               380 libavfilter/avf_showspectrum.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               617 libavfilter/avf_showspectrum.c static char *get_time(AVFilterContext *ctx, float seconds, int x)
ctx               682 libavfilter/avf_showspectrum.c static int draw_legend(AVFilterContext *ctx, int samples)
ctx               684 libavfilter/avf_showspectrum.c     ShowSpectrumContext *s = ctx->priv;
ctx               685 libavfilter/avf_showspectrum.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               686 libavfilter/avf_showspectrum.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               771 libavfilter/avf_showspectrum.c             char *units = get_time(ctx, seconds, x);
ctx               829 libavfilter/avf_showspectrum.c             char *units = get_time(ctx, seconds, x);
ctx               880 libavfilter/avf_showspectrum.c static float get_value(AVFilterContext *ctx, int ch, int y)
ctx               882 libavfilter/avf_showspectrum.c     ShowSpectrumContext *s = ctx->priv;
ctx               927 libavfilter/avf_showspectrum.c static int plot_channel_lin(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               929 libavfilter/avf_showspectrum.c     ShowSpectrumContext *s = ctx->priv;
ctx               942 libavfilter/avf_showspectrum.c         float a = get_value(ctx, ch, y);
ctx               950 libavfilter/avf_showspectrum.c static int plot_channel_log(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               952 libavfilter/avf_showspectrum.c     ShowSpectrumContext *s = ctx->priv;
ctx               953 libavfilter/avf_showspectrum.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               969 libavfilter/avf_showspectrum.c         a0 = get_value(ctx, ch, yy+0);
ctx               970 libavfilter/avf_showspectrum.c         a1 = get_value(ctx, ch, FFMIN(yy+1, h-1));
ctx               986 libavfilter/avf_showspectrum.c     AVFilterContext *ctx = outlink->src;
ctx               987 libavfilter/avf_showspectrum.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               988 libavfilter/avf_showspectrum.c     ShowSpectrumContext *s = ctx->priv;
ctx              1000 libavfilter/avf_showspectrum.c         av_log(ctx, AV_LOG_ERROR, "Stop frequency should be greater than start.\n");
ctx              1004 libavfilter/avf_showspectrum.c     if (!strcmp(ctx->filter->name, "showspectrumpic"))
ctx              1073 libavfilter/avf_showspectrum.c                     av_log(ctx, AV_LOG_ERROR, "Unable to create Inverse FFT context. "
ctx              1079 libavfilter/avf_showspectrum.c                 av_log(ctx, AV_LOG_ERROR, "Unable to create FFT context. "
ctx              1140 libavfilter/avf_showspectrum.c             av_log(ctx, AV_LOG_ERROR, "overlap %f too big\n", s->overlap);
ctx              1164 libavfilter/avf_showspectrum.c             draw_legend(ctx, 0);
ctx              1196 libavfilter/avf_showspectrum.c     av_log(ctx, AV_LOG_VERBOSE, "s:%dx%d FFT window size:%d\n",
ctx              1211 libavfilter/avf_showspectrum.c static int calc_channel_magnitudes(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx              1213 libavfilter/avf_showspectrum.c     ShowSpectrumContext *s = ctx->priv;
ctx              1226 libavfilter/avf_showspectrum.c static int calc_channel_phases(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx              1228 libavfilter/avf_showspectrum.c     ShowSpectrumContext *s = ctx->priv;
ctx              1279 libavfilter/avf_showspectrum.c     AVFilterContext *ctx = inlink->dst;
ctx              1280 libavfilter/avf_showspectrum.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              1281 libavfilter/avf_showspectrum.c     ShowSpectrumContext *s = ctx->priv;
ctx              1289 libavfilter/avf_showspectrum.c     ctx->internal->execute(ctx, s->plot_channel, NULL, NULL, s->nb_display_channels);
ctx              1371 libavfilter/avf_showspectrum.c                 char *units = get_time(ctx, insamples->pts /(float)inlink->sample_rate, x);
ctx              1413 libavfilter/avf_showspectrum.c static int activate(AVFilterContext *ctx)
ctx              1415 libavfilter/avf_showspectrum.c     AVFilterLink *inlink = ctx->inputs[0];
ctx              1416 libavfilter/avf_showspectrum.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              1417 libavfilter/avf_showspectrum.c     ShowSpectrumContext *s = ctx->priv;
ctx              1454 libavfilter/avf_showspectrum.c         ctx->internal->execute(ctx, run_channel_fft, fin, NULL, s->nb_display_channels);
ctx              1457 libavfilter/avf_showspectrum.c             ctx->internal->execute(ctx, calc_channel_magnitudes, NULL, NULL, s->nb_display_channels);
ctx              1460 libavfilter/avf_showspectrum.c             ctx->internal->execute(ctx, calc_channel_phases, NULL, NULL, s->nb_display_channels);
ctx              1499 libavfilter/avf_showspectrum.c         ff_filter_set_ready(ctx, 10);
ctx              1615 libavfilter/avf_showspectrum.c     AVFilterContext *ctx = outlink->src;
ctx              1616 libavfilter/avf_showspectrum.c     ShowSpectrumContext *s = ctx->priv;
ctx              1617 libavfilter/avf_showspectrum.c     AVFilterLink *inlink = ctx->inputs[0];
ctx              1653 libavfilter/avf_showspectrum.c             ctx->internal->execute(ctx, run_channel_fft, fin, NULL, s->nb_display_channels);
ctx              1673 libavfilter/avf_showspectrum.c             draw_legend(ctx, samples);
ctx              1684 libavfilter/avf_showspectrum.c     AVFilterContext *ctx = inlink->dst;
ctx              1685 libavfilter/avf_showspectrum.c     ShowSpectrumContext *s = ctx->priv;
ctx               102 libavfilter/avf_showvolume.c static av_cold int init(AVFilterContext *ctx)
ctx               104 libavfilter/avf_showvolume.c     ShowVolumeContext *s = ctx->priv;
ctx               109 libavfilter/avf_showvolume.c                             NULL, NULL, NULL, NULL, 0, ctx);
ctx               117 libavfilter/avf_showvolume.c static int query_formats(AVFilterContext *ctx)
ctx               121 libavfilter/avf_showvolume.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               122 libavfilter/avf_showvolume.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               165 libavfilter/avf_showvolume.c     AVFilterContext *ctx = inlink->dst;
ctx               166 libavfilter/avf_showvolume.c     ShowVolumeContext *s = ctx->priv;
ctx               320 libavfilter/avf_showvolume.c     AVFilterContext *ctx = inlink->dst;
ctx               321 libavfilter/avf_showvolume.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               322 libavfilter/avf_showvolume.c     ShowVolumeContext *s = ctx->priv;
ctx               450 libavfilter/avf_showvolume.c static int activate(AVFilterContext *ctx)
ctx               452 libavfilter/avf_showvolume.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               453 libavfilter/avf_showvolume.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               454 libavfilter/avf_showvolume.c     ShowVolumeContext *s = ctx->priv;
ctx               472 libavfilter/avf_showvolume.c static av_cold void uninit(AVFilterContext *ctx)
ctx               474 libavfilter/avf_showvolume.c     ShowVolumeContext *s = ctx->priv;
ctx               123 libavfilter/avf_showwaves.c static av_cold void uninit(AVFilterContext *ctx)
ctx               125 libavfilter/avf_showwaves.c     ShowWavesContext *showwaves = ctx->priv;
ctx               145 libavfilter/avf_showwaves.c static int query_formats(AVFilterContext *ctx)
ctx               149 libavfilter/avf_showwaves.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               150 libavfilter/avf_showwaves.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               408 libavfilter/avf_showwaves.c     AVFilterContext *ctx = outlink->src;
ctx               409 libavfilter/avf_showwaves.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               410 libavfilter/avf_showwaves.c     ShowWavesContext *showwaves = ctx->priv;
ctx               424 libavfilter/avf_showwaves.c         av_log(ctx, AV_LOG_ERROR, "Could not allocate showwaves buffer\n");
ctx               434 libavfilter/avf_showwaves.c     av_log(ctx, AV_LOG_VERBOSE, "s:%dx%d r:%f n:%d\n",
ctx               527 libavfilter/avf_showwaves.c                 av_parse_color(fg, color, -1, ctx);
ctx               544 libavfilter/avf_showwaves.c     AVFilterContext *ctx = outlink->src;
ctx               545 libavfilter/avf_showwaves.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               560 libavfilter/avf_showwaves.c     AVFilterContext *ctx = outlink->src;
ctx               561 libavfilter/avf_showwaves.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               562 libavfilter/avf_showwaves.c     ShowWavesContext *showwaves = ctx->priv;
ctx               576 libavfilter/avf_showwaves.c         av_log(ctx, AV_LOG_ERROR, "Too few samples\n");
ctx               580 libavfilter/avf_showwaves.c     av_log(ctx, AV_LOG_DEBUG, "Create frame averaging %"PRId64" samples per column\n", column_max_samples);
ctx               657 libavfilter/avf_showwaves.c static av_cold int init(AVFilterContext *ctx)
ctx               659 libavfilter/avf_showwaves.c     ShowWavesContext *showwaves = ctx->priv;
ctx               661 libavfilter/avf_showwaves.c     if (!strcmp(ctx->filter->name, "showwavespic")) {
ctx               673 libavfilter/avf_showwaves.c     AVFilterContext *ctx = inlink->dst;
ctx               674 libavfilter/avf_showwaves.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               675 libavfilter/avf_showwaves.c     ShowWavesContext *showwaves = ctx->priv;
ctx               722 libavfilter/avf_showwaves.c static int activate(AVFilterContext *ctx)
ctx               724 libavfilter/avf_showwaves.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               725 libavfilter/avf_showwaves.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               726 libavfilter/avf_showwaves.c     ShowWavesContext *showwaves = ctx->priv;
ctx               802 libavfilter/avf_showwaves.c     AVFilterContext *ctx = inlink->dst;
ctx               803 libavfilter/avf_showwaves.c     ShowWavesContext *showwaves = ctx->priv;
ctx               816 libavfilter/avf_showwaves.c     AVFilterContext *ctx = inlink->dst;
ctx               817 libavfilter/avf_showwaves.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               818 libavfilter/avf_showwaves.c     ShowWavesContext *showwaves = ctx->priv;
ctx                49 libavfilter/avfilter.c void ff_tlog_ref(void *ctx, AVFrame *ref, int end)
ctx                52 libavfilter/avfilter.c     ff_tlog(ctx,
ctx                59 libavfilter/avfilter.c         ff_tlog(ctx, " a:%d/%d s:%dx%d i:%c iskey:%d type:%c",
ctx                68 libavfilter/avfilter.c         ff_tlog(ctx, " cl:%"PRId64"d n:%d r:%d",
ctx                74 libavfilter/avfilter.c     ff_tlog(ctx, "]%s", end ? "\n" : "");
ctx               383 libavfilter/avfilter.c void ff_tlog_link(void *ctx, AVFilterLink *link, int end)
ctx               386 libavfilter/avfilter.c         ff_tlog(ctx,
ctx               397 libavfilter/avfilter.c         ff_tlog(ctx,
ctx               432 libavfilter/avfilter.c static int64_t guess_status_pts(AVFilterContext *ctx, int status, AVRational link_time_base)
ctx               437 libavfilter/avfilter.c     for (i = 0; i < ctx->nb_inputs; i++)
ctx               438 libavfilter/avfilter.c         if (ctx->inputs[i]->status_out == status)
ctx               439 libavfilter/avfilter.c             r = FFMIN(r, av_rescale_q(ctx->inputs[i]->current_pts, ctx->inputs[i]->time_base, link_time_base));
ctx               442 libavfilter/avfilter.c     av_log(ctx, AV_LOG_WARNING, "EOF timestamp not reliable\n");
ctx               443 libavfilter/avfilter.c     for (i = 0; i < ctx->nb_inputs; i++)
ctx               444 libavfilter/avfilter.c         r = FFMIN(r, av_rescale_q(ctx->inputs[i]->status_in_pts, ctx->inputs[i]->time_base, link_time_base));
ctx               488 libavfilter/avfilter.c static int set_enable_expr(AVFilterContext *ctx, const char *expr)
ctx               492 libavfilter/avfilter.c     AVExpr *old = ctx->enable;
ctx               494 libavfilter/avfilter.c     if (!(ctx->filter->flags & AVFILTER_FLAG_SUPPORT_TIMELINE)) {
ctx               495 libavfilter/avfilter.c         av_log(ctx, AV_LOG_ERROR, "Timeline ('enable' option) not supported "
ctx               496 libavfilter/avfilter.c                "with filter '%s'\n", ctx->filter->name);
ctx               504 libavfilter/avfilter.c     if (!ctx->var_values) {
ctx               505 libavfilter/avfilter.c         ctx->var_values = av_calloc(VAR_VARS_NB, sizeof(*ctx->var_values));
ctx               506 libavfilter/avfilter.c         if (!ctx->var_values) {
ctx               512 libavfilter/avfilter.c     ret = av_expr_parse((AVExpr**)&ctx->enable, expr_dup, var_names,
ctx               513 libavfilter/avfilter.c                         NULL, NULL, NULL, NULL, 0, ctx->priv);
ctx               515 libavfilter/avfilter.c         av_log(ctx->priv, AV_LOG_ERROR,
ctx               523 libavfilter/avfilter.c     av_free(ctx->enable_str);
ctx               524 libavfilter/avfilter.c     ctx->enable_str = expr_dup;
ctx               574 libavfilter/avfilter.c     AVFilterContext *ctx = filter_ctx;
ctx               575 libavfilter/avfilter.c     return ctx->name ? ctx->name : ctx->filter->name;
ctx               580 libavfilter/avfilter.c     AVFilterContext *ctx = obj;
ctx               581 libavfilter/avfilter.c     if (!prev && ctx->filter && ctx->filter->priv_class && ctx->priv)
ctx               582 libavfilter/avfilter.c         return ctx->priv;
ctx               632 libavfilter/avfilter.c static int default_execute(AVFilterContext *ctx, avfilter_action_func *func, void *arg,
ctx               638 libavfilter/avfilter.c         int r = func(ctx, arg, i, nb_jobs);
ctx               784 libavfilter/avfilter.c int ff_filter_get_nb_threads(AVFilterContext *ctx)
ctx               786 libavfilter/avfilter.c     if (ctx->nb_threads > 0)
ctx               787 libavfilter/avfilter.c         return FFMIN(ctx->nb_threads, ctx->graph->nb_threads);
ctx               788 libavfilter/avfilter.c     return ctx->graph->nb_threads;
ctx               791 libavfilter/avfilter.c static int process_options(AVFilterContext *ctx, AVDictionary **options,
ctx               806 libavfilter/avfilter.c         o = av_opt_next(ctx->priv, o);
ctx               819 libavfilter/avfilter.c                 av_log(ctx, AV_LOG_ERROR, "No option name near '%s'\n", args);
ctx               821 libavfilter/avfilter.c                 av_log(ctx, AV_LOG_ERROR, "Unable to parse '%s': %s\n", args,
ctx               829 libavfilter/avfilter.c             while ((o = av_opt_next(ctx->priv, o))); /* discard all remaining shorthand */
ctx               834 libavfilter/avfilter.c         av_log(ctx, AV_LOG_DEBUG, "Setting '%s' to value '%s'\n", key, value);
ctx               836 libavfilter/avfilter.c         if (av_opt_find(ctx, key, NULL, 0, 0)) {
ctx               837 libavfilter/avfilter.c             ret = av_opt_set(ctx, key, value, 0);
ctx               845 libavfilter/avfilter.c         if ((ret = av_opt_set(ctx->priv, key, value, AV_OPT_SEARCH_CHILDREN)) < 0) {
ctx               846 libavfilter/avfilter.c             if (!av_opt_find(ctx->priv, key, NULL, 0, AV_OPT_SEARCH_CHILDREN | AV_OPT_SEARCH_FAKE_OBJ)) {
ctx               848 libavfilter/avfilter.c                 av_log(ctx, AV_LOG_ERROR, "Option '%s' not found\n", key);
ctx               861 libavfilter/avfilter.c     if (ctx->enable_str) {
ctx               862 libavfilter/avfilter.c         ret = set_enable_expr(ctx, ctx->enable_str);
ctx               869 libavfilter/avfilter.c int ff_filter_process_command(AVFilterContext *ctx, const char *cmd,
ctx               874 libavfilter/avfilter.c     if (!ctx->filter->priv_class)
ctx               876 libavfilter/avfilter.c     o = av_opt_find2(ctx->priv, cmd, NULL, AV_OPT_FLAG_RUNTIME_PARAM | AV_OPT_FLAG_FILTERING_PARAM, AV_OPT_SEARCH_CHILDREN, NULL);
ctx               879 libavfilter/avfilter.c     return av_opt_set(ctx->priv, cmd, arg, 0);
ctx               882 libavfilter/avfilter.c int avfilter_init_dict(AVFilterContext *ctx, AVDictionary **options)
ctx               886 libavfilter/avfilter.c     ret = av_opt_set_dict(ctx, options);
ctx               888 libavfilter/avfilter.c         av_log(ctx, AV_LOG_ERROR, "Error applying generic filter options.\n");
ctx               892 libavfilter/avfilter.c     if (ctx->filter->flags & AVFILTER_FLAG_SLICE_THREADS &&
ctx               893 libavfilter/avfilter.c         ctx->thread_type & ctx->graph->thread_type & AVFILTER_THREAD_SLICE &&
ctx               894 libavfilter/avfilter.c         ctx->graph->internal->thread_execute) {
ctx               895 libavfilter/avfilter.c         ctx->thread_type       = AVFILTER_THREAD_SLICE;
ctx               896 libavfilter/avfilter.c         ctx->internal->execute = ctx->graph->internal->thread_execute;
ctx               898 libavfilter/avfilter.c         ctx->thread_type = 0;
ctx               901 libavfilter/avfilter.c     if (ctx->filter->priv_class) {
ctx               902 libavfilter/avfilter.c         ret = av_opt_set_dict2(ctx->priv, options, AV_OPT_SEARCH_CHILDREN);
ctx               904 libavfilter/avfilter.c             av_log(ctx, AV_LOG_ERROR, "Error applying options to the filter.\n");
ctx               909 libavfilter/avfilter.c     if (ctx->filter->init_opaque)
ctx               910 libavfilter/avfilter.c         ret = ctx->filter->init_opaque(ctx, NULL);
ctx               911 libavfilter/avfilter.c     else if (ctx->filter->init)
ctx               912 libavfilter/avfilter.c         ret = ctx->filter->init(ctx);
ctx               913 libavfilter/avfilter.c     else if (ctx->filter->init_dict)
ctx               914 libavfilter/avfilter.c         ret = ctx->filter->init_dict(ctx, options);
ctx               210 libavfilter/avfilter.h     int (*preinit)(AVFilterContext *ctx);
ctx               233 libavfilter/avfilter.h     int (*init)(AVFilterContext *ctx);
ctx               246 libavfilter/avfilter.h     int (*init_dict)(AVFilterContext *ctx, AVDictionary **options);
ctx               258 libavfilter/avfilter.h     void (*uninit)(AVFilterContext *ctx);
ctx               313 libavfilter/avfilter.h     int (*init_opaque)(AVFilterContext *ctx, void *opaque);
ctx               327 libavfilter/avfilter.h     int (*activate)(AVFilterContext *ctx);
ctx               758 libavfilter/avfilter.h int avfilter_init_str(AVFilterContext *ctx, const char *args);
ctx               780 libavfilter/avfilter.h int avfilter_init_dict(AVFilterContext *ctx, AVDictionary **options);
ctx               823 libavfilter/avfilter.h typedef int (avfilter_action_func)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx               837 libavfilter/avfilter.h typedef int (avfilter_execute_func)(AVFilterContext *ctx, avfilter_action_func *func,
ctx               316 libavfilter/avfiltergraph.c static int filter_query_formats(AVFilterContext *ctx)
ctx               322 libavfilter/avfiltergraph.c     enum AVMediaType type = ctx->inputs  && ctx->inputs [0] ? ctx->inputs [0]->type :
ctx               323 libavfilter/avfiltergraph.c                             ctx->outputs && ctx->outputs[0] ? ctx->outputs[0]->type :
ctx               326 libavfilter/avfiltergraph.c     if ((ret = ctx->filter->query_formats(ctx)) < 0) {
ctx               328 libavfilter/avfiltergraph.c             av_log(ctx, AV_LOG_ERROR, "Query format failed for '%s': %s\n",
ctx               329 libavfilter/avfiltergraph.c                    ctx->name, av_err2str(ret));
ctx               333 libavfilter/avfiltergraph.c     for (i = 0; i < ctx->nb_inputs; i++)
ctx               334 libavfilter/avfiltergraph.c         sanitize_channel_layouts(ctx, ctx->inputs[i]->out_channel_layouts);
ctx               335 libavfilter/avfiltergraph.c     for (i = 0; i < ctx->nb_outputs; i++)
ctx               336 libavfilter/avfiltergraph.c         sanitize_channel_layouts(ctx, ctx->outputs[i]->in_channel_layouts);
ctx               339 libavfilter/avfiltergraph.c     if ((ret = ff_set_common_formats(ctx, formats)) < 0)
ctx               343 libavfilter/avfiltergraph.c         if ((ret = ff_set_common_samplerates(ctx, samplerates)) < 0)
ctx               346 libavfilter/avfiltergraph.c         if ((ret = ff_set_common_channel_layouts(ctx, chlayouts)) < 0)
ctx                52 libavfilter/boxblur.c     AVFilterContext *ctx = inlink->dst;
ctx                60 libavfilter/boxblur.c         av_log(ctx, AV_LOG_ERROR, "Luma radius expression is not set.\n");
ctx                91 libavfilter/boxblur.c                                  NULL, NULL, NULL, NULL, NULL, 0, ctx); \
ctx                94 libavfilter/boxblur.c         av_log(ctx, AV_LOG_ERROR,                                      \
ctx               103 libavfilter/boxblur.c     av_log(ctx, AV_LOG_VERBOSE,
ctx               117 libavfilter/boxblur.c         av_log(ctx, AV_LOG_ERROR,                                       \
ctx                65 libavfilter/buffersink.c int attribute_align_arg av_buffersink_get_frame(AVFilterContext *ctx, AVFrame *frame)
ctx                67 libavfilter/buffersink.c     return av_buffersink_get_frame_flags(ctx, frame, 0);
ctx                84 libavfilter/buffersink.c static int get_frame_internal(AVFilterContext *ctx, AVFrame *frame, int flags, int samples)
ctx                86 libavfilter/buffersink.c     BufferSinkContext *buf = ctx->priv;
ctx                87 libavfilter/buffersink.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               108 libavfilter/buffersink.c             ret = ff_filter_graph_run_once(ctx->graph);
ctx               117 libavfilter/buffersink.c int attribute_align_arg av_buffersink_get_frame_flags(AVFilterContext *ctx, AVFrame *frame, int flags)
ctx               119 libavfilter/buffersink.c     return get_frame_internal(ctx, frame, flags, ctx->inputs[0]->min_samples);
ctx               122 libavfilter/buffersink.c int attribute_align_arg av_buffersink_get_samples(AVFilterContext *ctx,
ctx               125 libavfilter/buffersink.c     return get_frame_internal(ctx, frame, 0, nb_samples);
ctx               150 libavfilter/buffersink.c static av_cold int common_init(AVFilterContext *ctx)
ctx               152 libavfilter/buffersink.c     BufferSinkContext *buf = ctx->priv;
ctx               158 libavfilter/buffersink.c static int activate(AVFilterContext *ctx)
ctx               160 libavfilter/buffersink.c     BufferSinkContext *buf = ctx->priv;
ctx               163 libavfilter/buffersink.c         ff_framequeue_queued_frames(&ctx->inputs[0]->fifo) >= buf->warning_limit) {
ctx               164 libavfilter/buffersink.c         av_log(ctx, AV_LOG_WARNING,
ctx               167 libavfilter/buffersink.c                (char *)av_x_if_null(ctx->name, ctx->filter->name));
ctx               175 libavfilter/buffersink.c void av_buffersink_set_frame_size(AVFilterContext *ctx, unsigned frame_size)
ctx               177 libavfilter/buffersink.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               184 libavfilter/buffersink.c type av_buffersink_get_##field(const AVFilterContext *ctx) { \
ctx               185 libavfilter/buffersink.c     av_assert0(ctx->filter->activate == activate); \
ctx               186 libavfilter/buffersink.c     return ctx->inputs[0]->field; \
ctx               206 libavfilter/buffersink.c             av_log(ctx, AV_LOG_ERROR, "Invalid size for " #field ": %d, " \
ctx               211 libavfilter/buffersink.c static int vsink_query_formats(AVFilterContext *ctx)
ctx               213 libavfilter/buffersink.c     BufferSinkContext *buf = ctx->priv;
ctx               223 libavfilter/buffersink.c         if ((ret = ff_set_common_formats(ctx, formats)) < 0)
ctx               226 libavfilter/buffersink.c         if ((ret = ff_default_query_formats(ctx)) < 0)
ctx               233 libavfilter/buffersink.c static int asink_query_formats(AVFilterContext *ctx)
ctx               235 libavfilter/buffersink.c     BufferSinkContext *buf = ctx->priv;
ctx               250 libavfilter/buffersink.c         if ((ret = ff_set_common_formats(ctx, formats)) < 0)
ctx               264 libavfilter/buffersink.c                 av_log(ctx, AV_LOG_WARNING,
ctx               269 libavfilter/buffersink.c         if ((ret = ff_set_common_channel_layouts(ctx, layouts)) < 0)
ctx               278 libavfilter/buffersink.c         if ((ret = ff_set_common_samplerates(ctx, formats)) < 0)
ctx                46 libavfilter/buffersink.h int av_buffersink_get_frame_flags(AVFilterContext *ctx, AVFrame *frame, int flags);
ctx               105 libavfilter/buffersink.h void av_buffersink_set_frame_size(AVFilterContext *ctx, unsigned frame_size);
ctx               113 libavfilter/buffersink.h enum AVMediaType av_buffersink_get_type                (const AVFilterContext *ctx);
ctx               114 libavfilter/buffersink.h AVRational       av_buffersink_get_time_base           (const AVFilterContext *ctx);
ctx               115 libavfilter/buffersink.h int              av_buffersink_get_format              (const AVFilterContext *ctx);
ctx               117 libavfilter/buffersink.h AVRational       av_buffersink_get_frame_rate          (const AVFilterContext *ctx);
ctx               118 libavfilter/buffersink.h int              av_buffersink_get_w                   (const AVFilterContext *ctx);
ctx               119 libavfilter/buffersink.h int              av_buffersink_get_h                   (const AVFilterContext *ctx);
ctx               120 libavfilter/buffersink.h AVRational       av_buffersink_get_sample_aspect_ratio (const AVFilterContext *ctx);
ctx               122 libavfilter/buffersink.h int              av_buffersink_get_channels            (const AVFilterContext *ctx);
ctx               123 libavfilter/buffersink.h uint64_t         av_buffersink_get_channel_layout      (const AVFilterContext *ctx);
ctx               124 libavfilter/buffersink.h int              av_buffersink_get_sample_rate         (const AVFilterContext *ctx);
ctx               126 libavfilter/buffersink.h AVBufferRef *    av_buffersink_get_hw_frames_ctx       (const AVFilterContext *ctx);
ctx               144 libavfilter/buffersink.h int av_buffersink_get_frame(AVFilterContext *ctx, AVFrame *frame);
ctx               163 libavfilter/buffersink.h int av_buffersink_get_samples(AVFilterContext *ctx, AVFrame *frame, int nb_samples);
ctx                98 libavfilter/buffersrc.c int av_buffersrc_parameters_set(AVFilterContext *ctx, AVBufferSrcParameters *param)
ctx               100 libavfilter/buffersrc.c     BufferSourceContext *s = ctx->priv;
ctx               105 libavfilter/buffersrc.c     switch (ctx->filter->outputs[0].type) {
ctx               141 libavfilter/buffersrc.c int attribute_align_arg av_buffersrc_write_frame(AVFilterContext *ctx, const AVFrame *frame)
ctx               143 libavfilter/buffersrc.c     return av_buffersrc_add_frame_flags(ctx, (AVFrame *)frame,
ctx               147 libavfilter/buffersrc.c int attribute_align_arg av_buffersrc_add_frame(AVFilterContext *ctx, AVFrame *frame)
ctx               149 libavfilter/buffersrc.c     return av_buffersrc_add_frame_flags(ctx, frame, 0);
ctx               152 libavfilter/buffersrc.c static int av_buffersrc_add_frame_internal(AVFilterContext *ctx,
ctx               155 libavfilter/buffersrc.c int attribute_align_arg av_buffersrc_add_frame_flags(AVFilterContext *ctx, AVFrame *frame, int flags)
ctx               162 libavfilter/buffersrc.c         av_log(ctx, AV_LOG_ERROR, "Layout indicates a different number of channels than actually present\n");
ctx               167 libavfilter/buffersrc.c         return av_buffersrc_add_frame_internal(ctx, frame, flags);
ctx               173 libavfilter/buffersrc.c         ret = av_buffersrc_add_frame_internal(ctx, copy, flags);
ctx               193 libavfilter/buffersrc.c static int av_buffersrc_add_frame_internal(AVFilterContext *ctx,
ctx               196 libavfilter/buffersrc.c     BufferSourceContext *s = ctx->priv;
ctx               203 libavfilter/buffersrc.c         return av_buffersrc_close(ctx, AV_NOPTS_VALUE, flags);
ctx               211 libavfilter/buffersrc.c         switch (ctx->outputs[0]->type) {
ctx               213 libavfilter/buffersrc.c             CHECK_VIDEO_PARAM_CHANGE(ctx, s, frame->width, frame->height,
ctx               220 libavfilter/buffersrc.c             CHECK_AUDIO_PARAM_CHANGE(ctx, s, frame->sample_rate, frame->channel_layout,
ctx               242 libavfilter/buffersrc.c     ret = ff_filter_frame(ctx->outputs[0], copy);
ctx               247 libavfilter/buffersrc.c         ret = push_frame(ctx->graph);
ctx               255 libavfilter/buffersrc.c int av_buffersrc_close(AVFilterContext *ctx, int64_t pts, unsigned flags)
ctx               257 libavfilter/buffersrc.c     BufferSourceContext *s = ctx->priv;
ctx               260 libavfilter/buffersrc.c     ff_avfilter_link_set_in_status(ctx->outputs[0], AVERROR_EOF, pts);
ctx               261 libavfilter/buffersrc.c     return (flags & AV_BUFFERSRC_FLAG_PUSH) ? push_frame(ctx->graph) : 0;
ctx               264 libavfilter/buffersrc.c static av_cold int init_video(AVFilterContext *ctx)
ctx               266 libavfilter/buffersrc.c     BufferSourceContext *c = ctx->priv;
ctx               270 libavfilter/buffersrc.c         av_log(ctx, AV_LOG_ERROR, "Invalid parameters provided.\n");
ctx               274 libavfilter/buffersrc.c     av_log(ctx, AV_LOG_VERBOSE, "w:%d h:%d pixfmt:%s tb:%d/%d fr:%d/%d sar:%d/%d\n",
ctx               281 libavfilter/buffersrc.c         av_log(ctx, AV_LOG_WARNING, "sws_param option is deprecated and ignored\n");
ctx               324 libavfilter/buffersrc.c static av_cold int init_audio(AVFilterContext *ctx)
ctx               326 libavfilter/buffersrc.c     BufferSourceContext *s = ctx->priv;
ctx               330 libavfilter/buffersrc.c         av_log(ctx, AV_LOG_ERROR, "Sample format was not set or was invalid\n");
ctx               340 libavfilter/buffersrc.c                 av_log(ctx, AV_LOG_ERROR, "Invalid channel layout %s.\n",
ctx               348 libavfilter/buffersrc.c                 av_log(ctx, AV_LOG_ERROR,
ctx               357 libavfilter/buffersrc.c         av_log(ctx, AV_LOG_ERROR, "Neither number of channels nor "
ctx               365 libavfilter/buffersrc.c     av_log(ctx, AV_LOG_VERBOSE,
ctx               373 libavfilter/buffersrc.c static av_cold void uninit(AVFilterContext *ctx)
ctx               375 libavfilter/buffersrc.c     BufferSourceContext *s = ctx->priv;
ctx               379 libavfilter/buffersrc.c static int query_formats(AVFilterContext *ctx)
ctx               381 libavfilter/buffersrc.c     BufferSourceContext *c = ctx->priv;
ctx               387 libavfilter/buffersrc.c     switch (ctx->outputs[0]->type) {
ctx               390 libavfilter/buffersrc.c             (ret = ff_set_common_formats (ctx     , formats   )) < 0)
ctx               395 libavfilter/buffersrc.c             (ret = ff_set_common_formats     (ctx         , formats       )) < 0 ||
ctx               397 libavfilter/buffersrc.c             (ret = ff_set_common_samplerates (ctx         , samplerates   )) < 0)
ctx               404 libavfilter/buffersrc.c         if ((ret = ff_set_common_channel_layouts(ctx, channel_layouts)) < 0)
ctx               138 libavfilter/buffersrc.h int av_buffersrc_parameters_set(AVFilterContext *ctx, AVBufferSrcParameters *param);
ctx               154 libavfilter/buffersrc.h int av_buffersrc_write_frame(AVFilterContext *ctx, const AVFrame *frame);
ctx               175 libavfilter/buffersrc.h int av_buffersrc_add_frame(AVFilterContext *ctx, AVFrame *frame);
ctx               203 libavfilter/buffersrc.h int av_buffersrc_close(AVFilterContext *ctx, int64_t pts, unsigned flags);
ctx                78 libavfilter/deshake.h     int (* transform)(AVFilterContext *ctx, int width, int height, int cw, int ch,
ctx                51 libavfilter/f_bench.c static av_cold int init(AVFilterContext *ctx)
ctx                53 libavfilter/f_bench.c     BenchContext *s = ctx->priv;
ctx                61 libavfilter/f_bench.c     AVFilterContext *ctx = inlink->dst;
ctx                62 libavfilter/f_bench.c     BenchContext *s = ctx->priv;
ctx                63 libavfilter/f_bench.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                36 libavfilter/f_cue.c static int activate(AVFilterContext *ctx)
ctx                38 libavfilter/f_cue.c     AVFilterLink *inlink = ctx->inputs[0];
ctx                39 libavfilter/f_cue.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                40 libavfilter/f_cue.c     CueContext *s = ctx->priv;
ctx                90 libavfilter/f_drawgraph.c static av_cold int init(AVFilterContext *ctx)
ctx                92 libavfilter/f_drawgraph.c     DrawGraphContext *s = ctx->priv;
ctx                96 libavfilter/f_drawgraph.c         av_log(ctx, AV_LOG_ERROR, "max is same or lower than min\n");
ctx               103 libavfilter/f_drawgraph.c                                 NULL, NULL, NULL, NULL, 0, ctx);
ctx               127 libavfilter/f_drawgraph.c static int query_formats(AVFilterContext *ctx)
ctx               129 libavfilter/f_drawgraph.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               160 libavfilter/f_drawgraph.c     AVFilterContext *ctx = inlink->dst;
ctx               161 libavfilter/f_drawgraph.c     DrawGraphContext *s = ctx->priv;
ctx               162 libavfilter/f_drawgraph.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               340 libavfilter/f_drawgraph.c     AVFilterContext *ctx = outlink->src;
ctx               341 libavfilter/f_drawgraph.c     DrawGraphContext *s = ctx->priv;
ctx               345 libavfilter/f_drawgraph.c     ret = ff_request_frame(ctx->inputs[0]);
ctx               414 libavfilter/f_drawgraph.c         ret = ff_filter_frame(ctx->outputs[0], s->out);
ctx               434 libavfilter/f_drawgraph.c static av_cold void uninit(AVFilterContext *ctx)
ctx               436 libavfilter/f_drawgraph.c     DrawGraphContext *s = ctx->priv;
ctx               295 libavfilter/f_ebur128.c     AVFilterContext *ctx = outlink->src;
ctx               296 libavfilter/f_ebur128.c     EBUR128Context *ebur128 = ctx->priv;
ctx               301 libavfilter/f_ebur128.c         av_log(ctx, AV_LOG_ERROR, "Video size %dx%d is too small, "
ctx               388 libavfilter/f_ebur128.c     AVFilterContext *ctx = inlink->dst;
ctx               389 libavfilter/f_ebur128.c     EBUR128Context *ebur128 = ctx->priv;
ctx               407 libavfilter/f_ebur128.c     AVFilterContext *ctx = outlink->src;
ctx               408 libavfilter/f_ebur128.c     EBUR128Context *ebur128 = ctx->priv;
ctx               495 libavfilter/f_ebur128.c static av_cold int init(AVFilterContext *ctx)
ctx               497 libavfilter/f_ebur128.c     EBUR128Context *ebur128 = ctx->priv;
ctx               510 libavfilter/f_ebur128.c         av_log(ctx, AV_LOG_ERROR,
ctx               536 libavfilter/f_ebur128.c         ret = ff_insert_outpad(ctx, 0, &pad);
ctx               549 libavfilter/f_ebur128.c     ret = ff_insert_outpad(ctx, ebur128->do_video, &pad);
ctx               556 libavfilter/f_ebur128.c     av_log(ctx, AV_LOG_VERBOSE, "EBU +%d scale\n", ebur128->meter);
ctx               591 libavfilter/f_ebur128.c     AVFilterContext *ctx = inlink->dst;
ctx               592 libavfilter/f_ebur128.c     EBUR128Context *ebur128 = ctx->priv;
ctx               678 libavfilter/f_ebur128.c             AVFilterLink *outlink = ctx->outputs[0];
ctx               867 libavfilter/f_ebur128.c                 av_log(ctx, ebur128->loglevel, "t: %-10s " LOG_FMT,
ctx               872 libavfilter/f_ebur128.c                 av_log(ctx, ebur128->loglevel, "t: %-10s " LOG_FMT,
ctx               880 libavfilter/f_ebur128.c         av_log(ctx, ebur128->loglevel, "  " str ":");               \
ctx               882 libavfilter/f_ebur128.c             av_log(ctx, ebur128->loglevel, " %5.1f", DBFS(sp[ch])); \
ctx               883 libavfilter/f_ebur128.c         av_log(ctx, ebur128->loglevel, " dBFS");                    \
ctx               890 libavfilter/f_ebur128.c             av_log(ctx, ebur128->loglevel, "\n");
ctx               894 libavfilter/f_ebur128.c     return ff_filter_frame(ctx->outputs[ebur128->do_video], insamples);
ctx               897 libavfilter/f_ebur128.c static int query_formats(AVFilterContext *ctx)
ctx               899 libavfilter/f_ebur128.c     EBUR128Context *ebur128 = ctx->priv;
ctx               902 libavfilter/f_ebur128.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               903 libavfilter/f_ebur128.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               915 libavfilter/f_ebur128.c         outlink = ctx->outputs[1];
ctx               939 libavfilter/f_ebur128.c static av_cold void uninit(AVFilterContext *ctx)
ctx               942 libavfilter/f_ebur128.c     EBUR128Context *ebur128 = ctx->priv;
ctx               952 libavfilter/f_ebur128.c     av_log(ctx, AV_LOG_INFO, "Summary:\n\n"
ctx               972 libavfilter/f_ebur128.c         av_log(ctx, AV_LOG_INFO, "\n\n  " str " peak:\n"         \
ctx               980 libavfilter/f_ebur128.c     av_log(ctx, AV_LOG_INFO, "\n");
ctx               993 libavfilter/f_ebur128.c     for (i = 0; i < ctx->nb_outputs; i++)
ctx               994 libavfilter/f_ebur128.c         av_freep(&ctx->output_pads[i].name);
ctx                93 libavfilter/f_graphmonitor.c static int query_formats(AVFilterContext *ctx)
ctx                95 libavfilter/f_graphmonitor.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               169 libavfilter/f_graphmonitor.c static void draw_items(AVFilterContext *ctx, AVFrame *out,
ctx               174 libavfilter/f_graphmonitor.c     GraphMonitorContext *s = ctx->priv;
ctx               241 libavfilter/f_graphmonitor.c static int create_frame(AVFilterContext *ctx, int64_t pts)
ctx               243 libavfilter/f_graphmonitor.c     GraphMonitorContext *s = ctx->priv;
ctx               244 libavfilter/f_graphmonitor.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               254 libavfilter/f_graphmonitor.c     for (int i = 0; i < ctx->graph->nb_filters; i++) {
ctx               255 libavfilter/f_graphmonitor.c         AVFilterContext *filter = ctx->graph->filters[i];
ctx               279 libavfilter/f_graphmonitor.c             draw_items(ctx, out, xpos, ypos, l, frames);
ctx               297 libavfilter/f_graphmonitor.c             draw_items(ctx, out, xpos, ypos, l, frames);
ctx               308 libavfilter/f_graphmonitor.c static int activate(AVFilterContext *ctx)
ctx               310 libavfilter/f_graphmonitor.c     GraphMonitorContext *s = ctx->priv;
ctx               311 libavfilter/f_graphmonitor.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               312 libavfilter/f_graphmonitor.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               338 libavfilter/f_graphmonitor.c         return create_frame(ctx, s->pts);
ctx                62 libavfilter/f_interleave.c static int activate(AVFilterContext *ctx)
ctx                64 libavfilter/f_interleave.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                65 libavfilter/f_interleave.c     InterleaveContext *s = ctx->priv;
ctx                70 libavfilter/f_interleave.c     FF_FILTER_FORWARD_STATUS_BACK_ALL(outlink, ctx);
ctx                72 libavfilter/f_interleave.c     for (i = 0; i < ctx->nb_inputs; i++) {
ctx                73 libavfilter/f_interleave.c         if (!ff_inlink_queued_frames(ctx->inputs[i]))
ctx                79 libavfilter/f_interleave.c         for (i = 0; i < ctx->nb_inputs; i++) {
ctx                82 libavfilter/f_interleave.c             if (ff_inlink_queued_frames(ctx->inputs[i]) == 0)
ctx                85 libavfilter/f_interleave.c             frame = ff_inlink_peek_frame(ctx->inputs[i], 0);
ctx                89 libavfilter/f_interleave.c                 av_log(ctx, AV_LOG_WARNING,
ctx                91 libavfilter/f_interleave.c                 ret = ff_inlink_consume_frame(ctx->inputs[i], &frame);
ctx                98 libavfilter/f_interleave.c             q_pts = av_rescale_q(frame->pts, ctx->inputs[i]->time_base, AV_TIME_BASE_Q);
ctx               109 libavfilter/f_interleave.c             ret = ff_inlink_consume_frame(ctx->inputs[input_idx], &frame);
ctx               118 libavfilter/f_interleave.c     for (i = 0; i < ctx->nb_inputs; i++)
ctx               119 libavfilter/f_interleave.c         nb_eofs += !!ff_outlink_get_status(ctx->inputs[i]);
ctx               122 libavfilter/f_interleave.c         (nb_eofs == ctx->nb_inputs && s->duration_mode == DURATION_LONGEST) ||
ctx               123 libavfilter/f_interleave.c         (ff_outlink_get_status(ctx->inputs[0]) && s->duration_mode == DURATION_FIRST)) {
ctx               128 libavfilter/f_interleave.c     for (i = 0; i < ctx->nb_inputs; i++) {
ctx               129 libavfilter/f_interleave.c         if (ff_inlink_queued_frames(ctx->inputs[i]))
ctx               132 libavfilter/f_interleave.c             !ff_outlink_get_status(ctx->inputs[i])) {
ctx               133 libavfilter/f_interleave.c             ff_inlink_request_frame(ctx->inputs[i]);
ctx               139 libavfilter/f_interleave.c         ff_filter_set_ready(ctx, 100);
ctx               146 libavfilter/f_interleave.c static av_cold int init(AVFilterContext *ctx)
ctx               148 libavfilter/f_interleave.c     InterleaveContext *s = ctx->priv;
ctx               149 libavfilter/f_interleave.c     const AVFilterPad *outpad = &ctx->filter->outputs[0];
ctx               168 libavfilter/f_interleave.c         if ((ret = ff_insert_inpad(ctx, i, &inpad)) < 0) {
ctx               177 libavfilter/f_interleave.c static av_cold void uninit(AVFilterContext *ctx)
ctx               179 libavfilter/f_interleave.c     for (int i = 0; i < ctx->nb_inputs; i++)
ctx               180 libavfilter/f_interleave.c         av_freep(&ctx->input_pads[i].name);
ctx               185 libavfilter/f_interleave.c     AVFilterContext *ctx = outlink->src;
ctx               186 libavfilter/f_interleave.c     AVFilterLink *inlink0 = ctx->inputs[0];
ctx               196 libavfilter/f_interleave.c         for (i = 1; i < ctx->nb_inputs; i++) {
ctx               197 libavfilter/f_interleave.c             AVFilterLink *inlink = ctx->inputs[i];
ctx               203 libavfilter/f_interleave.c                 av_log(ctx, AV_LOG_ERROR, "Parameters for input link %s "
ctx               206 libavfilter/f_interleave.c                        ctx->input_pads[i].name, inlink->w, inlink->h,
ctx                58 libavfilter/f_loop.c static void check_size(AVFilterContext *ctx)
ctx                60 libavfilter/f_loop.c     LoopContext *s = ctx->priv;
ctx                63 libavfilter/f_loop.c         av_log(ctx, AV_LOG_WARNING, "Number of %s to loop is not set!\n",
ctx                64 libavfilter/f_loop.c                ctx->input_pads[0].type == AVMEDIA_TYPE_VIDEO ? "frames" : "samples");
ctx                71 libavfilter/f_loop.c     AVFilterContext *ctx = inlink->dst;
ctx                72 libavfilter/f_loop.c     LoopContext *s  = ctx->priv;
ctx                79 libavfilter/f_loop.c     check_size(ctx);
ctx                84 libavfilter/f_loop.c static av_cold void auninit(AVFilterContext *ctx)
ctx                86 libavfilter/f_loop.c     LoopContext *s = ctx->priv;
ctx                92 libavfilter/f_loop.c static int push_samples(AVFilterContext *ctx, int nb_samples)
ctx                94 libavfilter/f_loop.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                95 libavfilter/f_loop.c     LoopContext *s = ctx->priv;
ctx               132 libavfilter/f_loop.c     AVFilterContext *ctx = inlink->dst;
ctx               133 libavfilter/f_loop.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               134 libavfilter/f_loop.c     LoopContext *s = ctx->priv;
ctx               168 libavfilter/f_loop.c             ret = push_samples(ctx, nb_samples);
ctx               182 libavfilter/f_loop.c     AVFilterContext *ctx = outlink->src;
ctx               183 libavfilter/f_loop.c     LoopContext *s = ctx->priv;
ctx               204 libavfilter/f_loop.c         ret = ff_request_frame(ctx->inputs[0]);
ctx               206 libavfilter/f_loop.c         ret = push_samples(ctx, 1024);
ctx               210 libavfilter/f_loop.c         ret = push_samples(ctx, 1024);
ctx               216 libavfilter/f_loop.c static int aactivate(AVFilterContext *ctx)
ctx               218 libavfilter/f_loop.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               219 libavfilter/f_loop.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               220 libavfilter/f_loop.c     LoopContext *s = ctx->priv;
ctx               298 libavfilter/f_loop.c static av_cold int init(AVFilterContext *ctx)
ctx               300 libavfilter/f_loop.c     LoopContext *s = ctx->priv;
ctx               306 libavfilter/f_loop.c     check_size(ctx);
ctx               311 libavfilter/f_loop.c static av_cold void uninit(AVFilterContext *ctx)
ctx               313 libavfilter/f_loop.c     LoopContext *s = ctx->priv;
ctx               323 libavfilter/f_loop.c static int push_frame(AVFilterContext *ctx)
ctx               325 libavfilter/f_loop.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               326 libavfilter/f_loop.c     LoopContext *s = ctx->priv;
ctx               356 libavfilter/f_loop.c     AVFilterContext *ctx = inlink->dst;
ctx               357 libavfilter/f_loop.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               358 libavfilter/f_loop.c     LoopContext *s = ctx->priv;
ctx               380 libavfilter/f_loop.c             ret = push_frame(ctx);
ctx               390 libavfilter/f_loop.c static int activate(AVFilterContext *ctx)
ctx               392 libavfilter/f_loop.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               393 libavfilter/f_loop.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               394 libavfilter/f_loop.c     LoopContext *s = ctx->priv;
ctx               426 libavfilter/f_loop.c         return push_frame(ctx);
ctx                90 libavfilter/f_metadata.c     void (*print)(AVFilterContext *ctx, const char *msg, ...) av_printf_format(2, 3);
ctx               181 libavfilter/f_metadata.c static void print_log(AVFilterContext *ctx, const char *msg, ...)
ctx               187 libavfilter/f_metadata.c         av_vlog(ctx, AV_LOG_INFO, msg, argument_list);
ctx               191 libavfilter/f_metadata.c static void print_file(AVFilterContext *ctx, const char *msg, ...)
ctx               193 libavfilter/f_metadata.c     MetadataContext *s = ctx->priv;
ctx               205 libavfilter/f_metadata.c static av_cold int init(AVFilterContext *ctx)
ctx               207 libavfilter/f_metadata.c     MetadataContext *s = ctx->priv;
ctx               211 libavfilter/f_metadata.c         av_log(ctx, AV_LOG_WARNING, "Metadata key must be set\n");
ctx               217 libavfilter/f_metadata.c         av_log(ctx, AV_LOG_WARNING, "Missing metadata value\n");
ctx               249 libavfilter/f_metadata.c             av_log(ctx, AV_LOG_WARNING, "expr option not set\n");
ctx               253 libavfilter/f_metadata.c                                  var_names, NULL, NULL, NULL, NULL, 0, ctx)) < 0) {
ctx               254 libavfilter/f_metadata.c             av_log(ctx, AV_LOG_ERROR, "Error while parsing expression '%s'\n", s->expr_str);
ctx               276 libavfilter/f_metadata.c             av_log(ctx, AV_LOG_ERROR, "Could not open %s: %s\n",
ctx               288 libavfilter/f_metadata.c static av_cold void uninit(AVFilterContext *ctx)
ctx               290 libavfilter/f_metadata.c     MetadataContext *s = ctx->priv;
ctx               301 libavfilter/f_metadata.c     AVFilterContext *ctx = inlink->dst;
ctx               302 libavfilter/f_metadata.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               303 libavfilter/f_metadata.c     MetadataContext *s = ctx->priv;
ctx               336 libavfilter/f_metadata.c             s->print(ctx, "frame:%-4"PRId64" pts:%-7s pts_time:%s\n",
ctx               338 libavfilter/f_metadata.c             s->print(ctx, "%s=%s\n", e->key, e->value);
ctx               340 libavfilter/f_metadata.c                 s->print(ctx, "%s=%s\n", e->key, e->value);
ctx               343 libavfilter/f_metadata.c             s->print(ctx, "frame:%-4"PRId64" pts:%-7s pts_time:%s\n",
ctx               345 libavfilter/f_metadata.c             s->print(ctx, "%s=%s\n", s->key, e->value);
ctx                57 libavfilter/f_perms.c static av_cold int init(AVFilterContext *ctx)
ctx                59 libavfilter/f_perms.c     PermsContext *s = ctx->priv;
ctx                67 libavfilter/f_perms.c         av_log(ctx, AV_LOG_INFO, "random seed: 0x%08"PRIx32"\n", seed);
ctx                80 libavfilter/f_perms.c     AVFilterContext *ctx = inlink->dst;
ctx                81 libavfilter/f_perms.c     PermsContext *s = ctx->priv;
ctx                94 libavfilter/f_perms.c     av_log(ctx, AV_LOG_VERBOSE, "%s -> %s%s\n",
ctx               107 libavfilter/f_perms.c     ret = ff_filter_frame(ctx->outputs[0], out);
ctx                37 libavfilter/f_realtime.c     AVFilterContext *ctx = inlink->dst;
ctx                38 libavfilter/f_realtime.c     RealtimeContext *s = ctx->priv;
ctx                50 libavfilter/f_realtime.c             av_log(ctx, AV_LOG_WARNING,
ctx                57 libavfilter/f_realtime.c             av_log(ctx, AV_LOG_DEBUG, "sleeping %"PRIi64" us\n", sleep);
ctx                38 libavfilter/f_reverse.c static av_cold int init(AVFilterContext *ctx)
ctx                40 libavfilter/f_reverse.c     ReverseContext *s = ctx->priv;
ctx                57 libavfilter/f_reverse.c static av_cold void uninit(AVFilterContext *ctx)
ctx                59 libavfilter/f_reverse.c     ReverseContext *s = ctx->priv;
ctx                72 libavfilter/f_reverse.c     AVFilterContext *ctx = inlink->dst;
ctx                73 libavfilter/f_reverse.c     ReverseContext *s    = ctx->priv;
ctx               101 libavfilter/f_reverse.c     AVFilterContext *ctx = outlink->src;
ctx               102 libavfilter/f_reverse.c     ReverseContext *s = ctx->priv;
ctx               105 libavfilter/f_reverse.c     ret = ff_request_frame(ctx->inputs[0]);
ctx               150 libavfilter/f_reverse.c static int query_formats(AVFilterContext *ctx)
ctx               159 libavfilter/f_reverse.c     ret = ff_set_common_channel_layouts(ctx, layouts);
ctx               163 libavfilter/f_reverse.c     ret = ff_set_common_formats(ctx, ff_all_formats(AVMEDIA_TYPE_AUDIO));
ctx               170 libavfilter/f_reverse.c     return ff_set_common_samplerates(ctx, formats);
ctx               256 libavfilter/f_reverse.c     AVFilterContext *ctx = outlink->src;
ctx               257 libavfilter/f_reverse.c     ReverseContext *s = ctx->priv;
ctx               260 libavfilter/f_reverse.c     ret = ff_request_frame(ctx->inputs[0]);
ctx               174 libavfilter/f_select.c static av_cold int init(AVFilterContext *ctx)
ctx               176 libavfilter/f_select.c     SelectContext *select = ctx->priv;
ctx               180 libavfilter/f_select.c                              var_names, NULL, NULL, NULL, NULL, 0, ctx)) < 0) {
ctx               181 libavfilter/f_select.c         av_log(ctx, AV_LOG_ERROR, "Error while parsing expression '%s'\n",
ctx               193 libavfilter/f_select.c         pad.type = ctx->filter->inputs[0].type;
ctx               195 libavfilter/f_select.c         if ((ret = ff_insert_outpad(ctx, i, &pad)) < 0) {
ctx               273 libavfilter/f_select.c static double get_scene_score(AVFilterContext *ctx, AVFrame *frame)
ctx               276 libavfilter/f_select.c     SelectContext *select = ctx->priv;
ctx               331 libavfilter/f_select.c static void select_frame(AVFilterContext *ctx, AVFrame *frame)
ctx               333 libavfilter/f_select.c     SelectContext *select = ctx->priv;
ctx               334 libavfilter/f_select.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               361 libavfilter/f_select.c             select->var_values[VAR_SCENE] = get_scene_score(ctx, frame);
ctx               417 libavfilter/f_select.c     AVFilterContext *ctx = inlink->dst;
ctx               418 libavfilter/f_select.c     SelectContext *select = ctx->priv;
ctx               420 libavfilter/f_select.c     select_frame(ctx, frame);
ctx               422 libavfilter/f_select.c         return ff_filter_frame(ctx->outputs[select->select_out], frame);
ctx               435 libavfilter/f_select.c static av_cold void uninit(AVFilterContext *ctx)
ctx               437 libavfilter/f_select.c     SelectContext *select = ctx->priv;
ctx               443 libavfilter/f_select.c     for (i = 0; i < ctx->nb_outputs; i++)
ctx               444 libavfilter/f_select.c         av_freep(&ctx->output_pads[i].name);
ctx               456 libavfilter/f_select.c static av_cold int aselect_init(AVFilterContext *ctx)
ctx               458 libavfilter/f_select.c     SelectContext *select = ctx->priv;
ctx               461 libavfilter/f_select.c     if ((ret = init(ctx)) < 0)
ctx               465 libavfilter/f_select.c         av_log(ctx, AV_LOG_ERROR, "Scene detection is ignored in aselect filter\n");
ctx               496 libavfilter/f_select.c static int query_formats(AVFilterContext *ctx)
ctx               498 libavfilter/f_select.c     SelectContext *select = ctx->priv;
ctx               501 libavfilter/f_select.c         return ff_default_query_formats(ctx);
ctx               516 libavfilter/f_select.c         ret = ff_set_common_formats(ctx, fmts_list);
ctx               526 libavfilter/f_select.c static av_cold int select_init(AVFilterContext *ctx)
ctx               530 libavfilter/f_select.c     if ((ret = init(ctx)) < 0)
ctx               401 libavfilter/f_sendcmd.c static av_cold int init(AVFilterContext *ctx)
ctx               403 libavfilter/f_sendcmd.c     SendCmdContext *s = ctx->priv;
ctx               407 libavfilter/f_sendcmd.c         av_log(ctx, AV_LOG_ERROR,
ctx               416 libavfilter/f_sendcmd.c                           &file_buf, &file_bufsize, 0, ctx);
ctx               433 libavfilter/f_sendcmd.c                                s->commands_str, ctx)) < 0)
ctx               437 libavfilter/f_sendcmd.c         av_log(ctx, AV_LOG_ERROR, "No commands were specified\n");
ctx               443 libavfilter/f_sendcmd.c     av_log(ctx, AV_LOG_DEBUG, "Parsed commands:\n");
ctx               447 libavfilter/f_sendcmd.c         av_log(ctx, AV_LOG_VERBOSE, "start_time:%f end_time:%f index:%d\n",
ctx               451 libavfilter/f_sendcmd.c             av_log(ctx, AV_LOG_VERBOSE,
ctx               460 libavfilter/f_sendcmd.c static av_cold void uninit(AVFilterContext *ctx)
ctx               462 libavfilter/f_sendcmd.c     SendCmdContext *s = ctx->priv;
ctx               483 libavfilter/f_sendcmd.c     AVFilterContext *ctx = inlink->dst;
ctx               484 libavfilter/f_sendcmd.c     SendCmdContext *s = ctx->priv;
ctx               512 libavfilter/f_sendcmd.c             av_log(ctx, AV_LOG_VERBOSE,
ctx               540 libavfilter/f_sendcmd.c                             av_log(ctx, AV_LOG_ERROR, "Invalid expression '%s' for command argument.\n", cmd->arg);
ctx               551 libavfilter/f_sendcmd.c                     av_log(ctx, AV_LOG_VERBOSE,
ctx               558 libavfilter/f_sendcmd.c                     av_log(ctx, AV_LOG_VERBOSE,
ctx               106 libavfilter/f_sidedata.c static av_cold int init(AVFilterContext *ctx)
ctx               108 libavfilter/f_sidedata.c     SideDataContext *s = ctx->priv;
ctx               111 libavfilter/f_sidedata.c         av_log(ctx, AV_LOG_ERROR, "Side data type must be set\n");
ctx               120 libavfilter/f_sidedata.c     AVFilterContext *ctx = inlink->dst;
ctx               121 libavfilter/f_sidedata.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               122 libavfilter/f_sidedata.c     SideDataContext *s = ctx->priv;
ctx                55 libavfilter/f_streamselect.c     AVFilterContext *ctx = fs->parent;
ctx                60 libavfilter/f_streamselect.c     for (i = 0; i < ctx->nb_inputs; i++) {
ctx                65 libavfilter/f_streamselect.c     for (j = 0; j < ctx->nb_inputs; j++) {
ctx                71 libavfilter/f_streamselect.c                     ctx->outputs[i]->frame_count_in > 0)
ctx                77 libavfilter/f_streamselect.c                 out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, ctx->outputs[i]->time_base);
ctx                79 libavfilter/f_streamselect.c                 ret = ff_filter_frame(ctx->outputs[i], out);
ctx                88 libavfilter/f_streamselect.c         ff_filter_set_ready(ctx, 100);
ctx                92 libavfilter/f_streamselect.c static int activate(AVFilterContext *ctx)
ctx                94 libavfilter/f_streamselect.c     StreamSelectContext *s = ctx->priv;
ctx               100 libavfilter/f_streamselect.c     AVFilterContext *ctx = outlink->src;
ctx               101 libavfilter/f_streamselect.c     StreamSelectContext *s = ctx->priv;
ctx               104 libavfilter/f_streamselect.c     AVFilterLink *inlink = ctx->inputs[inlink_idx];
ctx               108 libavfilter/f_streamselect.c     av_log(ctx, AV_LOG_VERBOSE, "config output link %d "
ctx               132 libavfilter/f_streamselect.c     if ((ret = ff_framesync_init(&s->fs, ctx, ctx->nb_inputs)) < 0)
ctx               139 libavfilter/f_streamselect.c     for (i = 0; i < ctx->nb_inputs; i++) {
ctx               140 libavfilter/f_streamselect.c         in[i].time_base = ctx->inputs[i]->time_base;
ctx               146 libavfilter/f_streamselect.c     s->frames = av_calloc(ctx->nb_inputs, sizeof(*s->frames));
ctx               153 libavfilter/f_streamselect.c static int parse_definition(AVFilterContext *ctx, int nb_pads, int is_input, int is_audio)
ctx               167 libavfilter/f_streamselect.c         av_log(ctx, AV_LOG_DEBUG, "Add %s pad %s\n", padtype, pad.name);
ctx               170 libavfilter/f_streamselect.c             ret = ff_insert_inpad(ctx, i, &pad);
ctx               173 libavfilter/f_streamselect.c             ret = ff_insert_outpad(ctx, i, &pad);
ctx               185 libavfilter/f_streamselect.c static int parse_mapping(AVFilterContext *ctx, const char *map)
ctx               187 libavfilter/f_streamselect.c     StreamSelectContext *s = ctx->priv;
ctx               192 libavfilter/f_streamselect.c         av_log(ctx, AV_LOG_ERROR, "mapping definition is not set\n");
ctx               204 libavfilter/f_streamselect.c         av_log(ctx, AV_LOG_DEBUG, "n=%d map=%p p=%p\n", n, map, p);
ctx               211 libavfilter/f_streamselect.c             av_log(ctx, AV_LOG_ERROR, "Unable to map more than the %d "
ctx               217 libavfilter/f_streamselect.c         if (n < 0 || n >= ctx->nb_inputs) {
ctx               218 libavfilter/f_streamselect.c             av_log(ctx, AV_LOG_ERROR, "Input stream index %d doesn't exist "
ctx               225 libavfilter/f_streamselect.c         av_log(ctx, AV_LOG_VERBOSE, "Map input stream %d to output stream %d\n", n, new_nb_map);
ctx               230 libavfilter/f_streamselect.c         av_log(ctx, AV_LOG_ERROR, "invalid mapping\n");
ctx               239 libavfilter/f_streamselect.c     av_log(ctx, AV_LOG_VERBOSE, "%d map set\n", s->nb_map);
ctx               244 libavfilter/f_streamselect.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               248 libavfilter/f_streamselect.c         int ret = parse_mapping(ctx, args);
ctx               252 libavfilter/f_streamselect.c         return avfilter_config_links(ctx);
ctx               257 libavfilter/f_streamselect.c static av_cold int init(AVFilterContext *ctx)
ctx               259 libavfilter/f_streamselect.c     StreamSelectContext *s = ctx->priv;
ctx               263 libavfilter/f_streamselect.c     if (!strcmp(ctx->filter->name, "astreamselect"))
ctx               280 libavfilter/f_streamselect.c     if ((ret = parse_definition(ctx, s->nb_inputs, 1, s->is_audio)) < 0 ||
ctx               281 libavfilter/f_streamselect.c         (ret = parse_definition(ctx, nb_outputs, 0, s->is_audio)) < 0)
ctx               284 libavfilter/f_streamselect.c     av_log(ctx, AV_LOG_DEBUG, "Configured with %d inpad and %d outpad\n",
ctx               285 libavfilter/f_streamselect.c            ctx->nb_inputs, ctx->nb_outputs);
ctx               287 libavfilter/f_streamselect.c     return parse_mapping(ctx, s->map_str);
ctx               290 libavfilter/f_streamselect.c static av_cold void uninit(AVFilterContext *ctx)
ctx               292 libavfilter/f_streamselect.c     StreamSelectContext *s = ctx->priv;
ctx               299 libavfilter/f_streamselect.c     for (int i = 0; i < ctx->nb_inputs; i++)
ctx               300 libavfilter/f_streamselect.c         av_freep(&ctx->input_pads[i].name);
ctx               302 libavfilter/f_streamselect.c     for (int i = 0; i < ctx->nb_outputs; i++)
ctx               303 libavfilter/f_streamselect.c         av_freep(&ctx->output_pads[i].name);
ctx               306 libavfilter/f_streamselect.c static int query_formats(AVFilterContext *ctx)
ctx               312 libavfilter/f_streamselect.c     for (i = 0; i < ctx->nb_inputs; i++) {
ctx               313 libavfilter/f_streamselect.c         formats = ff_all_formats(ctx->inputs[i]->type);
ctx               314 libavfilter/f_streamselect.c         if ((ret = ff_set_common_formats(ctx, formats)) < 0)
ctx               317 libavfilter/f_streamselect.c         if (ctx->inputs[i]->type == AVMEDIA_TYPE_AUDIO) {
ctx               319 libavfilter/f_streamselect.c             if ((ret = ff_set_common_samplerates(ctx, rates)) < 0)
ctx               322 libavfilter/f_streamselect.c             if ((ret = ff_set_common_channel_layouts(ctx, layouts)) < 0)
ctx                51 libavfilter/f_zmq.c static av_cold int init(AVFilterContext *ctx)
ctx                53 libavfilter/f_zmq.c     ZMQContext *zmq = ctx->priv;
ctx                57 libavfilter/f_zmq.c         av_log(ctx, AV_LOG_ERROR,
ctx                64 libavfilter/f_zmq.c         av_log(ctx, AV_LOG_ERROR,
ctx                70 libavfilter/f_zmq.c         av_log(ctx, AV_LOG_ERROR,
ctx                80 libavfilter/f_zmq.c static void av_cold uninit(AVFilterContext *ctx)
ctx                82 libavfilter/f_zmq.c     ZMQContext *zmq = ctx->priv;
ctx               116 libavfilter/f_zmq.c static int recv_msg(AVFilterContext *ctx, char **buf, int *buf_size)
ctx               118 libavfilter/f_zmq.c     ZMQContext *zmq = ctx->priv;
ctx               123 libavfilter/f_zmq.c         av_log(ctx, AV_LOG_WARNING,
ctx               130 libavfilter/f_zmq.c             av_log(ctx, AV_LOG_WARNING,
ctx               152 libavfilter/f_zmq.c     AVFilterContext *ctx = inlink->dst;
ctx               153 libavfilter/f_zmq.c     ZMQContext *zmq = ctx->priv;
ctx               163 libavfilter/f_zmq.c         if (recv_msg(ctx, &recv_buf, &recv_buf_size) < 0)
ctx               168 libavfilter/f_zmq.c         if (parse_command(&cmd, recv_buf, ctx) < 0) {
ctx               169 libavfilter/f_zmq.c             av_log(ctx, AV_LOG_ERROR, "Could not parse command #%d\n", zmq->command_count);
ctx               174 libavfilter/f_zmq.c         av_log(ctx, AV_LOG_VERBOSE,
ctx               187 libavfilter/f_zmq.c         av_log(ctx, AV_LOG_VERBOSE,
ctx               191 libavfilter/f_zmq.c             av_log(ctx, AV_LOG_ERROR, "Failed to send reply for command #%d: %s\n",
ctx               203 libavfilter/f_zmq.c     return ff_filter_frame(ctx->outputs[0], ref);
ctx                54 libavfilter/fifo.c static av_cold int init(AVFilterContext *ctx)
ctx                56 libavfilter/fifo.c     FifoContext *s = ctx->priv;
ctx                62 libavfilter/fifo.c static av_cold void uninit(AVFilterContext *ctx)
ctx                64 libavfilter/fifo.c     FifoContext *s = ctx->priv;
ctx               146 libavfilter/fifo.c static int return_audio_frame(AVFilterContext *ctx)
ctx               148 libavfilter/fifo.c     AVFilterLink *link = ctx->outputs[0];
ctx               149 libavfilter/fifo.c     FifoContext *s = ctx->priv;
ctx               184 libavfilter/fifo.c             av_log(ctx, AV_LOG_ERROR, "request_samples changed before the "
ctx               193 libavfilter/fifo.c                 ret = ff_request_frame(ctx->inputs[0]);
ctx               540 libavfilter/formats.c #define SET_COMMON_FORMATS(ctx, fmts, in_fmts, out_fmts, ref_fn, unref_fn, list) \
ctx               546 libavfilter/formats.c     for (i = 0; i < ctx->nb_inputs; i++) {                          \
ctx               547 libavfilter/formats.c         if (ctx->inputs[i] && !ctx->inputs[i]->out_fmts) {          \
ctx               548 libavfilter/formats.c             int ret = ref_fn(fmts, &ctx->inputs[i]->out_fmts);      \
ctx               559 libavfilter/formats.c     for (i = 0; i < ctx->nb_outputs; i++) {                         \
ctx               560 libavfilter/formats.c         if (ctx->outputs[i] && !ctx->outputs[i]->in_fmts) {         \
ctx               561 libavfilter/formats.c             int ret = ref_fn(fmts, &ctx->outputs[i]->in_fmts);      \
ctx               581 libavfilter/formats.c int ff_set_common_channel_layouts(AVFilterContext *ctx,
ctx               584 libavfilter/formats.c     SET_COMMON_FORMATS(ctx, layouts, in_channel_layouts, out_channel_layouts,
ctx               588 libavfilter/formats.c int ff_set_common_samplerates(AVFilterContext *ctx,
ctx               591 libavfilter/formats.c     SET_COMMON_FORMATS(ctx, samplerates, in_samplerates, out_samplerates,
ctx               600 libavfilter/formats.c int ff_set_common_formats(AVFilterContext *ctx, AVFilterFormats *formats)
ctx               602 libavfilter/formats.c     SET_COMMON_FORMATS(ctx, formats, in_formats, out_formats,
ctx               606 libavfilter/formats.c static int default_query_formats_common(AVFilterContext *ctx,
ctx               610 libavfilter/formats.c     enum AVMediaType type = ctx->inputs  && ctx->inputs [0] ? ctx->inputs [0]->type :
ctx               611 libavfilter/formats.c                             ctx->outputs && ctx->outputs[0] ? ctx->outputs[0]->type :
ctx               614 libavfilter/formats.c     ret = ff_set_common_formats(ctx, ff_all_formats(type));
ctx               618 libavfilter/formats.c         ret = ff_set_common_channel_layouts(ctx, layouts());
ctx               621 libavfilter/formats.c         ret = ff_set_common_samplerates(ctx, ff_all_samplerates());
ctx               629 libavfilter/formats.c int ff_default_query_formats(AVFilterContext *ctx)
ctx               631 libavfilter/formats.c     return default_query_formats_common(ctx, ff_all_channel_counts);
ctx               634 libavfilter/formats.c int ff_query_formats_all_layouts(AVFilterContext *ctx)
ctx               636 libavfilter/formats.c     return default_query_formats_common(ctx, ff_all_channel_layouts);
ctx               154 libavfilter/formats.h int ff_set_common_channel_layouts(AVFilterContext *ctx,
ctx               157 libavfilter/formats.h int ff_set_common_samplerates(AVFilterContext *ctx,
ctx               166 libavfilter/formats.h int ff_set_common_formats(AVFilterContext *ctx, AVFilterFormats *formats);
ctx               187 libavfilter/formats.h int ff_default_query_formats(AVFilterContext *ctx);
ctx               195 libavfilter/formats.h int ff_query_formats_all_layouts(AVFilterContext *ctx);
ctx               297 libavfilter/framesync.c     AVFilterContext *ctx = fs->parent;
ctx               308 libavfilter/framesync.c         ret = ff_inlink_consume_frame(ctx->inputs[i], &frame);
ctx               315 libavfilter/framesync.c             ret = ff_inlink_acknowledge_status(ctx->inputs[i], &status, &pts);
ctx               324 libavfilter/framesync.c         if (nb_miss == nb_active && !ff_outlink_frame_wanted(ctx->outputs[0]))
ctx               328 libavfilter/framesync.c                 ff_inlink_request_frame(ctx->inputs[i]);
ctx               371 libavfilter/framesync.c     AVFilterContext *ctx = fs->parent;
ctx               381 libavfilter/framesync.c     mainpic->pts = av_rescale_q(fs->pts, fs->time_base, ctx->outputs[0]->time_base);
ctx               382 libavfilter/framesync.c     if (ctx->is_disabled)
ctx               301 libavfilter/framesync.h static int name##_framesync_preinit(AVFilterContext *ctx) { \
ctx               302 libavfilter/framesync.h     context *s = ctx->priv; \
ctx                96 libavfilter/graphparser.c static int create_filter(AVFilterContext **filt_ctx, AVFilterGraph *ctx, int index,
ctx               130 libavfilter/graphparser.c     *filt_ctx = avfilter_graph_alloc_filter(ctx, filt, inst_name);
ctx               138 libavfilter/graphparser.c         ctx->scale_sws_opts) {
ctx               141 libavfilter/graphparser.c                     args, ctx->scale_sws_opts);
ctx               146 libavfilter/graphparser.c             args = ctx->scale_sws_opts;
ctx               239 libavfilter/internal.h #define FF_TPRINTF_START(ctx, func) ff_tlog(NULL, "%-16s: ", #func)
ctx               243 libavfilter/internal.h void ff_tlog_ref(void *ctx, AVFrame *ref, int end);
ctx               245 libavfilter/internal.h void ff_tlog_link(void *ctx, AVFilterLink *link, int end);
ctx               392 libavfilter/internal.h int ff_filter_get_nb_threads(AVFilterContext *ctx);
ctx               398 libavfilter/internal.h int ff_filter_process_command(AVFilterContext *ctx, const char *cmd,
ctx                51 libavfilter/median.h     void (*filter_plane)(AVFilterContext *ctx, const uint8_t *ssrc, int src_linesize,
ctx                52 libavfilter/median_template.c static void fn(filter_plane)(AVFilterContext *ctx, const uint8_t *ssrc, int src_linesize,
ctx                56 libavfilter/median_template.c     MedianContext *s = ctx->priv;
ctx                46 libavfilter/opencl.c     OpenCLFilterContext *ctx = avctx->priv;
ctx                48 libavfilter/opencl.c     av_buffer_unref(&ctx->device_ref);
ctx                50 libavfilter/opencl.c     ctx->device_ref = av_buffer_ref(device);
ctx                51 libavfilter/opencl.c     if (!ctx->device_ref)
ctx                54 libavfilter/opencl.c     ctx->device = (AVHWDeviceContext*)ctx->device_ref->data;
ctx                55 libavfilter/opencl.c     ctx->hwctx  = ctx->device->hwctx;
ctx                63 libavfilter/opencl.c     OpenCLFilterContext *ctx = avctx->priv;
ctx                86 libavfilter/opencl.c     if (ctx->output_format == AV_PIX_FMT_NONE)
ctx                87 libavfilter/opencl.c         ctx->output_format = input_frames->sw_format;
ctx                88 libavfilter/opencl.c     if (!ctx->output_width)
ctx                89 libavfilter/opencl.c         ctx->output_width  = inlink->w;
ctx                90 libavfilter/opencl.c     if (!ctx->output_height)
ctx                91 libavfilter/opencl.c         ctx->output_height = inlink->h;
ctx                99 libavfilter/opencl.c     OpenCLFilterContext *ctx = avctx->priv;
ctx               106 libavfilter/opencl.c     if (!ctx->device_ref) {
ctx               118 libavfilter/opencl.c     output_frames_ref = av_hwframe_ctx_alloc(ctx->device_ref);
ctx               126 libavfilter/opencl.c     output_frames->sw_format = ctx->output_format;
ctx               127 libavfilter/opencl.c     output_frames->width     = ctx->output_width;
ctx               128 libavfilter/opencl.c     output_frames->height    = ctx->output_height;
ctx               138 libavfilter/opencl.c     outlink->w = ctx->output_width;
ctx               139 libavfilter/opencl.c     outlink->h = ctx->output_height;
ctx               149 libavfilter/opencl.c     OpenCLFilterContext *ctx = avctx->priv;
ctx               151 libavfilter/opencl.c     ctx->output_format = AV_PIX_FMT_NONE;
ctx               158 libavfilter/opencl.c     OpenCLFilterContext *ctx = avctx->priv;
ctx               161 libavfilter/opencl.c     if (ctx->program) {
ctx               162 libavfilter/opencl.c         cle = clReleaseProgram(ctx->program);
ctx               168 libavfilter/opencl.c     av_buffer_unref(&ctx->device_ref);
ctx               175 libavfilter/opencl.c     OpenCLFilterContext *ctx = avctx->priv;
ctx               178 libavfilter/opencl.c     ctx->program = clCreateProgramWithSource(ctx->hwctx->context, nb_strings,
ctx               181 libavfilter/opencl.c     if (!ctx->program) {
ctx               186 libavfilter/opencl.c     cle = clBuildProgram(ctx->program, 1, &ctx->hwctx->device_id,
ctx               195 libavfilter/opencl.c             clGetProgramBuildInfo(ctx->program, ctx->hwctx->device_id,
ctx               200 libavfilter/opencl.c                 cle = clGetProgramBuildInfo(ctx->program,
ctx               201 libavfilter/opencl.c                                             ctx->hwctx->device_id,
ctx               211 libavfilter/opencl.c         clReleaseProgram(ctx->program);
ctx               212 libavfilter/opencl.c         ctx->program = NULL;
ctx                93 libavfilter/opencl.h #define CL_CREATE_KERNEL(ctx, kernel_name) do {                                                 \
ctx                94 libavfilter/opencl.h     ctx->kernel_ ## kernel_name = clCreateKernel(ctx->ocf.program, #kernel_name, &cle);         \
ctx               197 libavfilter/opencl.h #define CL_CREATE_BUFFER_FLAGS(ctx, buffer_name, flags, size, host_ptr) do {                    \
ctx               198 libavfilter/opencl.h     ctx->buffer_name = clCreateBuffer(                                                          \
ctx               199 libavfilter/opencl.h         ctx->ocf.hwctx->context,                                                                \
ctx               237 libavfilter/opencl.h #define CL_CREATE_BUFFER(ctx, buffer_name, size) CL_CREATE_BUFFER_FLAGS(ctx, buffer_name, 0, size, NULL)
ctx                55 libavfilter/phase_template.c static enum PhaseMode fn(analyze_plane)(void *ctx, enum PhaseMode mode, AVFrame *old, AVFrame *new)
ctx               179 libavfilter/phase_template.c     av_log(ctx, AV_LOG_DEBUG, "mode=%c tdiff=%f bdiff=%f pdiff=%f\n",
ctx                42 libavfilter/pthread.c     AVFilterContext *ctx;
ctx                50 libavfilter/pthread.c     int ret = c->func(c->ctx, c->arg, jobnr, nb_jobs);
ctx                60 libavfilter/pthread.c static int thread_execute(AVFilterContext *ctx, avfilter_action_func *func,
ctx                63 libavfilter/pthread.c     ThreadContext *c = ctx->graph->internal->thread;
ctx                67 libavfilter/pthread.c     c->ctx         = ctx;
ctx               281 libavfilter/qsvvpp.c     AVFilterContext *ctx = inlink->dst;
ctx               297 libavfilter/qsvvpp.c             av_log(ctx, AV_LOG_ERROR, "QSVVPP gets a wrong frame.\n");
ctx               325 libavfilter/qsvvpp.c             av_log(ctx, AV_LOG_ERROR, "Unsupported frame.\n");
ctx               352 libavfilter/qsvvpp.c     AVFilterContext *ctx = outlink->src;
ctx               371 libavfilter/qsvvpp.c             av_log(ctx, AV_LOG_ERROR, "Can't allocate a surface.\n");
ctx               690 libavfilter/qsvvpp.c     AVFilterContext  *ctx     = inlink->dst;
ctx               691 libavfilter/qsvvpp.c     AVFilterLink     *outlink = ctx->outputs[0];
ctx               698 libavfilter/qsvvpp.c         av_log(ctx, AV_LOG_ERROR, "Failed to submit frame on input[%d]\n",
ctx               706 libavfilter/qsvvpp.c             av_log(ctx, AV_LOG_ERROR, "Failed to query an output frame.\n");
ctx               725 libavfilter/qsvvpp.c             av_log(ctx, AV_LOG_WARNING, "Sync failed.\n");
ctx                32 libavfilter/scale_eval.h int ff_scale_eval_dimensions(void *ctx,
ctx                98 libavfilter/setpts.c static av_cold int init(AVFilterContext *ctx)
ctx               100 libavfilter/setpts.c     SetPTSContext *setpts = ctx->priv;
ctx               104 libavfilter/setpts.c                              var_names, NULL, NULL, NULL, NULL, 0, ctx)) < 0) {
ctx               105 libavfilter/setpts.c         av_log(ctx, AV_LOG_ERROR, "Error while parsing expression '%s'\n", setpts->expr_str);
ctx               122 libavfilter/setpts.c     AVFilterContext *ctx = inlink->dst;
ctx               123 libavfilter/setpts.c     SetPTSContext *setpts = ctx->priv;
ctx               226 libavfilter/setpts.c static int activate(AVFilterContext *ctx)
ctx               228 libavfilter/setpts.c     SetPTSContext *setpts = ctx->priv;
ctx               229 libavfilter/setpts.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               230 libavfilter/setpts.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               247 libavfilter/setpts.c         av_log(ctx, AV_LOG_TRACE, "N:EOF PTS:%s T:%f POS:%s -> PTS:%s T:%f\n",
ctx               261 libavfilter/setpts.c static av_cold void uninit(AVFilterContext *ctx)
ctx               263 libavfilter/setpts.c     SetPTSContext *setpts = ctx->priv;
ctx                73 libavfilter/settb.c     AVFilterContext *ctx = outlink->src;
ctx                74 libavfilter/settb.c     SetTBContext *settb = ctx->priv;
ctx                75 libavfilter/settb.c     AVFilterLink *inlink = ctx->inputs[0];
ctx                89 libavfilter/settb.c         av_log(ctx, AV_LOG_ERROR, "Invalid expression '%s' for timebase.\n", settb->tb_expr);
ctx                94 libavfilter/settb.c         av_log(ctx, AV_LOG_ERROR,
ctx               110 libavfilter/settb.c     AVFilterContext *ctx = inlink->dst;
ctx               115 libavfilter/settb.c         av_log(ctx, AV_LOG_DEBUG, "tb:%d/%d pts:%"PRId64" -> tb:%d/%d pts:%"PRId64"\n",
ctx               125 libavfilter/settb.c     AVFilterContext *ctx = inlink->dst;
ctx               126 libavfilter/settb.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               133 libavfilter/settb.c static int activate(AVFilterContext *ctx)
ctx               135 libavfilter/settb.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               136 libavfilter/settb.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                90 libavfilter/signature_lookup.c static unsigned int get_l1dist(AVFilterContext *ctx, SignatureContext *sc, const uint8_t *first, const uint8_t *second)
ctx               174 libavfilter/signature_lookup.c static MatchingInfo* get_matching_parameters(AVFilterContext *ctx, SignatureContext *sc, FineSignature *first, FineSignature *second)
ctx               216 libavfilter/signature_lookup.c             l1dist = get_l1dist(ctx, sc, f->framesig, s->framesig);
ctx               285 libavfilter/signature_lookup.c                             av_log(ctx, AV_LOG_FATAL, "Could not allocate memory");
ctx               290 libavfilter/signature_lookup.c                             av_log(ctx, AV_LOG_FATAL, "Could not allocate memory");
ctx               418 libavfilter/signature_lookup.c static MatchingInfo evaluate_parameters(AVFilterContext *ctx, SignatureContext *sc, MatchingInfo *infos, MatchingInfo bestmatch, int mode)
ctx               431 libavfilter/signature_lookup.c             dist = get_l1dist(ctx, sc, a->framesig, b->framesig);
ctx               533 libavfilter/signature_lookup.c static MatchingInfo lookup_signatures(AVFilterContext *ctx, SignatureContext *sc, StreamContext *first, StreamContext *second, int mode)
ctx               554 libavfilter/signature_lookup.c         av_log(ctx, AV_LOG_DEBUG, "Stage 1: got coarsesignature pair. "
ctx               558 libavfilter/signature_lookup.c         av_log(ctx, AV_LOG_DEBUG, "Stage 2: calculate matching parameters\n");
ctx               559 libavfilter/signature_lookup.c         infos = get_matching_parameters(ctx, sc, cs->first, cs2->first);
ctx               562 libavfilter/signature_lookup.c                 av_log(ctx, AV_LOG_DEBUG, "Stage 2: matching pair at %"PRIu32" and %"PRIu32", "
ctx               568 libavfilter/signature_lookup.c         av_log(ctx, AV_LOG_DEBUG, "Stage 3: evaluate\n");
ctx               570 libavfilter/signature_lookup.c             bestmatch = evaluate_parameters(ctx, sc, infos, bestmatch, mode);
ctx               571 libavfilter/signature_lookup.c             av_log(ctx, AV_LOG_DEBUG, "Stage 3: best matching pair at %"PRIu32" and %"PRIu32", "
ctx                46 libavfilter/split.c static av_cold int split_init(AVFilterContext *ctx)
ctx                48 libavfilter/split.c     SplitContext *s = ctx->priv;
ctx                54 libavfilter/split.c         pad.type = ctx->filter->inputs[0].type;
ctx                59 libavfilter/split.c         if ((ret = ff_insert_outpad(ctx, i, &pad)) < 0) {
ctx                68 libavfilter/split.c static av_cold void split_uninit(AVFilterContext *ctx)
ctx                72 libavfilter/split.c     for (i = 0; i < ctx->nb_outputs; i++)
ctx                73 libavfilter/split.c         av_freep(&ctx->output_pads[i].name);
ctx                78 libavfilter/split.c     AVFilterContext *ctx = inlink->dst;
ctx                81 libavfilter/split.c     for (i = 0; i < ctx->nb_outputs; i++) {
ctx                84 libavfilter/split.c         if (ff_outlink_get_status(ctx->outputs[i]))
ctx                92 libavfilter/split.c         ret = ff_filter_frame(ctx->outputs[i], buf_out);
ctx               156 libavfilter/src_movie.c static int open_stream(AVFilterContext *ctx, MovieStream *st)
ctx               163 libavfilter/src_movie.c         av_log(ctx, AV_LOG_ERROR, "Failed to find any codec\n");
ctx               176 libavfilter/src_movie.c     st->codec_ctx->thread_count = ff_filter_get_nb_threads(ctx);
ctx               179 libavfilter/src_movie.c         av_log(ctx, AV_LOG_ERROR, "Failed to open codec\n");
ctx               209 libavfilter/src_movie.c static av_cold int movie_common_init(AVFilterContext *ctx)
ctx               211 libavfilter/src_movie.c     MovieContext *movie = ctx->priv;
ctx               220 libavfilter/src_movie.c         av_log(ctx, AV_LOG_ERROR, "No filename provided!\n");
ctx               229 libavfilter/src_movie.c                  !strcmp(ctx->filter->name, "amovie") ? 'a' : 'v',
ctx               238 libavfilter/src_movie.c         av_log(ctx, AV_LOG_ERROR,
ctx               248 libavfilter/src_movie.c         av_log(ctx, AV_LOG_ERROR,
ctx               253 libavfilter/src_movie.c         av_log(ctx, AV_LOG_WARNING, "Failed to find stream info\n");
ctx               261 libavfilter/src_movie.c                 av_log(ctx, AV_LOG_ERROR,
ctx               269 libavfilter/src_movie.c             av_log(ctx, AV_LOG_ERROR, "%s: could not seek to position %"PRId64"\n",
ctx               287 libavfilter/src_movie.c         st = find_stream(ctx, movie->format_ctx, spec);
ctx               315 libavfilter/src_movie.c         if ((ret = ff_insert_outpad(ctx, i, &pad)) < 0) {
ctx               321 libavfilter/src_movie.c             ret = guess_channel_layout(&movie->st[i], i, ctx);
ctx               325 libavfilter/src_movie.c         ret = open_stream(ctx, &movie->st[i]);
ctx               330 libavfilter/src_movie.c     av_log(ctx, AV_LOG_VERBOSE, "seek_point:%"PRIi64" format_name:%s file_name:%s stream_index:%d\n",
ctx               337 libavfilter/src_movie.c static av_cold void movie_uninit(AVFilterContext *ctx)
ctx               339 libavfilter/src_movie.c     MovieContext *movie = ctx->priv;
ctx               342 libavfilter/src_movie.c     for (i = 0; i < ctx->nb_outputs; i++) {
ctx               343 libavfilter/src_movie.c         av_freep(&ctx->output_pads[i].name);
ctx               353 libavfilter/src_movie.c static int movie_query_formats(AVFilterContext *ctx)
ctx               355 libavfilter/src_movie.c     MovieContext *movie = ctx->priv;
ctx               360 libavfilter/src_movie.c     for (i = 0; i < ctx->nb_outputs; i++) {
ctx               363 libavfilter/src_movie.c         AVFilterLink *outlink = ctx->outputs[i];
ctx               391 libavfilter/src_movie.c     AVFilterContext *ctx = outlink->src;
ctx               392 libavfilter/src_movie.c     MovieContext *movie  = ctx->priv;
ctx               438 libavfilter/src_movie.c static int rewind_file(AVFilterContext *ctx)
ctx               440 libavfilter/src_movie.c     MovieContext *movie = ctx->priv;
ctx               448 libavfilter/src_movie.c         av_log(ctx, AV_LOG_ERROR, "Unable to loop: %s\n", av_err2str(ret));
ctx               453 libavfilter/src_movie.c     for (i = 0; i < ctx->nb_outputs; i++) {
ctx               472 libavfilter/src_movie.c static int movie_push_frame(AVFilterContext *ctx, unsigned out_id)
ctx               474 libavfilter/src_movie.c     MovieContext *movie = ctx->priv;
ctx               486 libavfilter/src_movie.c                     ret = rewind_file(ctx);
ctx               490 libavfilter/src_movie.c                     av_log(ctx, AV_LOG_VERBOSE, "Stream finished, looping.\n");
ctx               521 libavfilter/src_movie.c     outlink = ctx->outputs[pkt_out_id];
ctx               540 libavfilter/src_movie.c         av_log(ctx, AV_LOG_WARNING, "Decode error: %s\n", av_err2str(ret));
ctx               572 libavfilter/src_movie.c                     av_log(ctx, AV_LOG_VERBOSE, "Discontinuity in stream:%d diff:%"PRId64"\n", pkt_out_id, diff);
ctx               580 libavfilter/src_movie.c     ff_dlog(ctx, "movie_push_frame(): file:'%s' %s\n", movie->file_name,
ctx               585 libavfilter/src_movie.c             av_log(ctx, AV_LOG_ERROR, "Format changed %s -> %s, discarding frame\n",
ctx               602 libavfilter/src_movie.c     AVFilterContext *ctx = outlink->src;
ctx               607 libavfilter/src_movie.c         ret = movie_push_frame(ctx, out_id);
ctx               613 libavfilter/src_movie.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               616 libavfilter/src_movie.c     MovieContext *movie = ctx->priv;
ctx               631 libavfilter/src_movie.c         for (i = 0; i < ctx->nb_outputs; i++) {
ctx                73 libavfilter/trim.c static av_cold int init(AVFilterContext *ctx)
ctx                75 libavfilter/trim.c     TrimContext *s = ctx->priv;
ctx                84 libavfilter/trim.c     AVFilterContext *ctx = inlink->dst;
ctx                85 libavfilter/trim.c     TrimContext       *s = ctx->priv;
ctx               126 libavfilter/trim.c     AVFilterContext *ctx = inlink->dst;
ctx               127 libavfilter/trim.c     TrimContext       *s = ctx->priv;
ctx               171 libavfilter/trim.c     return ff_filter_frame(ctx->outputs[0], frame);
ctx               224 libavfilter/trim.c     AVFilterContext *ctx = inlink->dst;
ctx               225 libavfilter/trim.c     TrimContext       *s = ctx->priv;
ctx               307 libavfilter/trim.c         AVFrame *out = ff_get_audio_buffer(ctx->outputs[0], end_sample - start_sample);
ctx               326 libavfilter/trim.c     return ff_filter_frame(ctx->outputs[0], frame);
ctx                53 libavfilter/unsharp.h     int (* apply_unsharp)(AVFilterContext *ctx, AVFrame *in, AVFrame *out);
ctx               181 libavfilter/v360.h     int (*remap_slice)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx                46 libavfilter/vaapi_vpp.c     VAAPIVPPContext *ctx   = avctx->priv;
ctx                48 libavfilter/vaapi_vpp.c     for (i = 0; i < ctx->nb_filter_buffers; i++) {
ctx                49 libavfilter/vaapi_vpp.c         if (ctx->filter_buffers[i] != VA_INVALID_ID) {
ctx                50 libavfilter/vaapi_vpp.c             vaDestroyBuffer(ctx->hwctx->display, ctx->filter_buffers[i]);
ctx                51 libavfilter/vaapi_vpp.c             ctx->filter_buffers[i] = VA_INVALID_ID;
ctx                54 libavfilter/vaapi_vpp.c     ctx->nb_filter_buffers = 0;
ctx                56 libavfilter/vaapi_vpp.c     if (ctx->va_context != VA_INVALID_ID) {
ctx                57 libavfilter/vaapi_vpp.c         vaDestroyContext(ctx->hwctx->display, ctx->va_context);
ctx                58 libavfilter/vaapi_vpp.c         ctx->va_context = VA_INVALID_ID;
ctx                61 libavfilter/vaapi_vpp.c     if (ctx->va_config != VA_INVALID_ID) {
ctx                62 libavfilter/vaapi_vpp.c         vaDestroyConfig(ctx->hwctx->display, ctx->va_config);
ctx                63 libavfilter/vaapi_vpp.c         ctx->va_config = VA_INVALID_ID;
ctx                66 libavfilter/vaapi_vpp.c     av_buffer_unref(&ctx->device_ref);
ctx                67 libavfilter/vaapi_vpp.c     ctx->hwctx = NULL;
ctx                73 libavfilter/vaapi_vpp.c     VAAPIVPPContext *ctx   = avctx->priv;
ctx                75 libavfilter/vaapi_vpp.c     if (ctx->pipeline_uninit)
ctx                76 libavfilter/vaapi_vpp.c         ctx->pipeline_uninit(avctx);
ctx                84 libavfilter/vaapi_vpp.c     ctx->input_frames_ref = av_buffer_ref(inlink->hw_frames_ctx);
ctx                85 libavfilter/vaapi_vpp.c     if (!ctx->input_frames_ref) {
ctx                90 libavfilter/vaapi_vpp.c     ctx->input_frames = (AVHWFramesContext*)ctx->input_frames_ref->data;
ctx                98 libavfilter/vaapi_vpp.c     VAAPIVPPContext *ctx   = avctx->priv;
ctx               106 libavfilter/vaapi_vpp.c     if (ctx->pipeline_uninit)
ctx               107 libavfilter/vaapi_vpp.c         ctx->pipeline_uninit(avctx);
ctx               109 libavfilter/vaapi_vpp.c     if (!ctx->output_width)
ctx               110 libavfilter/vaapi_vpp.c         ctx->output_width  = avctx->inputs[0]->w;
ctx               111 libavfilter/vaapi_vpp.c     if (!ctx->output_height)
ctx               112 libavfilter/vaapi_vpp.c         ctx->output_height = avctx->inputs[0]->h;
ctx               114 libavfilter/vaapi_vpp.c     av_assert0(ctx->input_frames);
ctx               115 libavfilter/vaapi_vpp.c     ctx->device_ref = av_buffer_ref(ctx->input_frames->device_ref);
ctx               116 libavfilter/vaapi_vpp.c     if (!ctx->device_ref) {
ctx               121 libavfilter/vaapi_vpp.c     ctx->hwctx = ((AVHWDeviceContext*)ctx->device_ref->data)->hwctx;
ctx               123 libavfilter/vaapi_vpp.c     av_assert0(ctx->va_config == VA_INVALID_ID);
ctx               124 libavfilter/vaapi_vpp.c     vas = vaCreateConfig(ctx->hwctx->display, VAProfileNone,
ctx               125 libavfilter/vaapi_vpp.c                          VAEntrypointVideoProc, NULL, 0, &ctx->va_config);
ctx               133 libavfilter/vaapi_vpp.c     hwconfig = av_hwdevice_hwconfig_alloc(ctx->device_ref);
ctx               138 libavfilter/vaapi_vpp.c     hwconfig->config_id = ctx->va_config;
ctx               140 libavfilter/vaapi_vpp.c     constraints = av_hwdevice_get_hwframe_constraints(ctx->device_ref,
ctx               147 libavfilter/vaapi_vpp.c     if (ctx->output_format == AV_PIX_FMT_NONE)
ctx               148 libavfilter/vaapi_vpp.c         ctx->output_format = ctx->input_frames->sw_format;
ctx               151 libavfilter/vaapi_vpp.c             if (ctx->output_format == constraints->valid_sw_formats[i])
ctx               156 libavfilter/vaapi_vpp.c                    "format %s.\n", av_get_pix_fmt_name(ctx->output_format));
ctx               162 libavfilter/vaapi_vpp.c     if (ctx->output_width  < constraints->min_width  ||
ctx               163 libavfilter/vaapi_vpp.c         ctx->output_height < constraints->min_height ||
ctx               164 libavfilter/vaapi_vpp.c         ctx->output_width  > constraints->max_width  ||
ctx               165 libavfilter/vaapi_vpp.c         ctx->output_height > constraints->max_height) {
ctx               168 libavfilter/vaapi_vpp.c                ctx->output_width, ctx->output_height,
ctx               175 libavfilter/vaapi_vpp.c     outlink->hw_frames_ctx = av_hwframe_ctx_alloc(ctx->device_ref);
ctx               186 libavfilter/vaapi_vpp.c     output_frames->sw_format = ctx->output_format;
ctx               187 libavfilter/vaapi_vpp.c     output_frames->width     = ctx->output_width;
ctx               188 libavfilter/vaapi_vpp.c     output_frames->height    = ctx->output_height;
ctx               205 libavfilter/vaapi_vpp.c     av_assert0(ctx->va_context == VA_INVALID_ID);
ctx               206 libavfilter/vaapi_vpp.c     vas = vaCreateContext(ctx->hwctx->display, ctx->va_config,
ctx               207 libavfilter/vaapi_vpp.c                           ctx->output_width, ctx->output_height,
ctx               210 libavfilter/vaapi_vpp.c                           &ctx->va_context);
ctx               217 libavfilter/vaapi_vpp.c     outlink->w = ctx->output_width;
ctx               218 libavfilter/vaapi_vpp.c     outlink->h = ctx->output_height;
ctx               220 libavfilter/vaapi_vpp.c     if (ctx->build_filter_params) {
ctx               221 libavfilter/vaapi_vpp.c         err = ctx->build_filter_params(avctx);
ctx               425 libavfilter/vaapi_vpp.c     VAAPIVPPContext *ctx = avctx->priv;
ctx               430 libavfilter/vaapi_vpp.c     vas = vaQueryVideoProcPipelineCaps(ctx->hwctx->display, ctx->va_context,
ctx               431 libavfilter/vaapi_vpp.c                                        ctx->filter_buffers, ctx->nb_filter_buffers,
ctx               520 libavfilter/vaapi_vpp.c     VAAPIVPPContext *ctx = avctx->priv;
ctx               524 libavfilter/vaapi_vpp.c     ctx->input_region = (VARectangle) {
ctx               541 libavfilter/vaapi_vpp.c         .surface_region          = &ctx->input_region,
ctx               571 libavfilter/vaapi_vpp.c     VAAPIVPPContext *ctx   = avctx->priv;
ctx               573 libavfilter/vaapi_vpp.c     av_assert0(ctx->nb_filter_buffers + 1 <= VAProcFilterCount);
ctx               575 libavfilter/vaapi_vpp.c     vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context,
ctx               584 libavfilter/vaapi_vpp.c     ctx->filter_buffers[ctx->nb_filter_buffers++] = buffer;
ctx               596 libavfilter/vaapi_vpp.c     VAAPIVPPContext *ctx = avctx->priv;
ctx               604 libavfilter/vaapi_vpp.c     vas = vaBeginPicture(ctx->hwctx->display,
ctx               605 libavfilter/vaapi_vpp.c                          ctx->va_context, output_surface);
ctx               613 libavfilter/vaapi_vpp.c     vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context,
ctx               625 libavfilter/vaapi_vpp.c     vas = vaRenderPicture(ctx->hwctx->display, ctx->va_context,
ctx               634 libavfilter/vaapi_vpp.c     vas = vaEndPicture(ctx->hwctx->display, ctx->va_context);
ctx               642 libavfilter/vaapi_vpp.c     if (CONFIG_VAAPI_1 || ctx->hwctx->driver_quirks &
ctx               644 libavfilter/vaapi_vpp.c         vas = vaDestroyBuffer(ctx->hwctx->display, params_id);
ctx               659 libavfilter/vaapi_vpp.c     vaRenderPicture(ctx->hwctx->display, ctx->va_context, &params_id, 1);
ctx               661 libavfilter/vaapi_vpp.c     vaEndPicture(ctx->hwctx->display, ctx->va_context);
ctx               669 libavfilter/vaapi_vpp.c     VAAPIVPPContext *ctx   = avctx->priv;
ctx               671 libavfilter/vaapi_vpp.c     ctx->va_config  = VA_INVALID_ID;
ctx               672 libavfilter/vaapi_vpp.c     ctx->va_context = VA_INVALID_ID;
ctx               673 libavfilter/vaapi_vpp.c     ctx->valid_ids  = 1;
ctx               676 libavfilter/vaapi_vpp.c         ctx->filter_buffers[i] = VA_INVALID_ID;
ctx               677 libavfilter/vaapi_vpp.c     ctx->nb_filter_buffers = 0;
ctx               682 libavfilter/vaapi_vpp.c     VAAPIVPPContext *ctx   = avctx->priv;
ctx               683 libavfilter/vaapi_vpp.c     if (ctx->valid_ids && ctx->pipeline_uninit)
ctx               684 libavfilter/vaapi_vpp.c         ctx->pipeline_uninit(avctx);
ctx               686 libavfilter/vaapi_vpp.c     av_buffer_unref(&ctx->input_frames_ref);
ctx               687 libavfilter/vaapi_vpp.c     av_buffer_unref(&ctx->device_ref);
ctx               102 libavfilter/vaf_spectrumsynth.c static int query_formats(AVFilterContext *ctx)
ctx               104 libavfilter/vaf_spectrumsynth.c     SpectrumSynthContext *s = ctx->priv;
ctx               107 libavfilter/vaf_spectrumsynth.c     AVFilterLink *magnitude = ctx->inputs[0];
ctx               108 libavfilter/vaf_spectrumsynth.c     AVFilterLink *phase = ctx->inputs[1];
ctx               109 libavfilter/vaf_spectrumsynth.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               146 libavfilter/vaf_spectrumsynth.c     AVFilterContext *ctx = outlink->src;
ctx               147 libavfilter/vaf_spectrumsynth.c     SpectrumSynthContext *s = ctx->priv;
ctx               148 libavfilter/vaf_spectrumsynth.c     int width = ctx->inputs[0]->w;
ctx               149 libavfilter/vaf_spectrumsynth.c     int height = ctx->inputs[0]->h;
ctx               150 libavfilter/vaf_spectrumsynth.c     AVRational time_base  = ctx->inputs[0]->time_base;
ctx               151 libavfilter/vaf_spectrumsynth.c     AVRational frame_rate = ctx->inputs[0]->frame_rate;
ctx               158 libavfilter/vaf_spectrumsynth.c     if (width  != ctx->inputs[1]->w ||
ctx               159 libavfilter/vaf_spectrumsynth.c         height != ctx->inputs[1]->h) {
ctx               160 libavfilter/vaf_spectrumsynth.c         av_log(ctx, AV_LOG_ERROR,
ctx               163 libavfilter/vaf_spectrumsynth.c                ctx->inputs[1]->w, ctx->inputs[1]->h);
ctx               165 libavfilter/vaf_spectrumsynth.c     } else if (av_cmp_q(time_base, ctx->inputs[1]->time_base) != 0) {
ctx               166 libavfilter/vaf_spectrumsynth.c         av_log(ctx, AV_LOG_ERROR,
ctx               169 libavfilter/vaf_spectrumsynth.c                ctx->inputs[1]->time_base.num,
ctx               170 libavfilter/vaf_spectrumsynth.c                ctx->inputs[1]->time_base.den);
ctx               172 libavfilter/vaf_spectrumsynth.c     } else if (av_cmp_q(frame_rate, ctx->inputs[1]->frame_rate) != 0) {
ctx               173 libavfilter/vaf_spectrumsynth.c         av_log(ctx, AV_LOG_ERROR,
ctx               176 libavfilter/vaf_spectrumsynth.c                ctx->inputs[1]->frame_rate.num,
ctx               177 libavfilter/vaf_spectrumsynth.c                ctx->inputs[1]->frame_rate.den);
ctx               191 libavfilter/vaf_spectrumsynth.c         av_log(ctx, AV_LOG_ERROR, "Unable to create FFT context. "
ctx               227 libavfilter/vaf_spectrumsynth.c     AVFilterContext *ctx = outlink->src;
ctx               228 libavfilter/vaf_spectrumsynth.c     SpectrumSynthContext *s = ctx->priv;
ctx               232 libavfilter/vaf_spectrumsynth.c         ret = ff_request_frame(ctx->inputs[0]);
ctx               237 libavfilter/vaf_spectrumsynth.c         ret = ff_request_frame(ctx->inputs[1]);
ctx               294 libavfilter/vaf_spectrumsynth.c static void read_fft_data(AVFilterContext *ctx, int x, int h, int ch)
ctx               296 libavfilter/vaf_spectrumsynth.c     SpectrumSynthContext *s = ctx->priv;
ctx               297 libavfilter/vaf_spectrumsynth.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               340 libavfilter/vaf_spectrumsynth.c static void synth_window(AVFilterContext *ctx, int x)
ctx               342 libavfilter/vaf_spectrumsynth.c     SpectrumSynthContext *s = ctx->priv;
ctx               348 libavfilter/vaf_spectrumsynth.c         read_fft_data(ctx, x, h, ch);
ctx               365 libavfilter/vaf_spectrumsynth.c static int try_push_frame(AVFilterContext *ctx, int x)
ctx               367 libavfilter/vaf_spectrumsynth.c     SpectrumSynthContext *s = ctx->priv;
ctx               368 libavfilter/vaf_spectrumsynth.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               374 libavfilter/vaf_spectrumsynth.c     synth_window(ctx, x);
ctx               434 libavfilter/vaf_spectrumsynth.c static int try_push_frames(AVFilterContext *ctx)
ctx               436 libavfilter/vaf_spectrumsynth.c     SpectrumSynthContext *s = ctx->priv;
ctx               444 libavfilter/vaf_spectrumsynth.c         ret = try_push_frame(ctx, s->xpos);
ctx               451 libavfilter/vaf_spectrumsynth.c         ret = try_push_frame(ctx, s->xpos);
ctx               455 libavfilter/vaf_spectrumsynth.c         ret = try_push_frame(ctx, s->xpos);
ctx               459 libavfilter/vaf_spectrumsynth.c             ret = try_push_frame(ctx, x);
ctx               475 libavfilter/vaf_spectrumsynth.c     AVFilterContext *ctx = inlink->dst;
ctx               476 libavfilter/vaf_spectrumsynth.c     SpectrumSynthContext *s = ctx->priv;
ctx               479 libavfilter/vaf_spectrumsynth.c     return try_push_frames(ctx);
ctx               484 libavfilter/vaf_spectrumsynth.c     AVFilterContext *ctx = inlink->dst;
ctx               485 libavfilter/vaf_spectrumsynth.c     SpectrumSynthContext *s = ctx->priv;
ctx               488 libavfilter/vaf_spectrumsynth.c     return try_push_frames(ctx);
ctx               491 libavfilter/vaf_spectrumsynth.c static av_cold void uninit(AVFilterContext *ctx)
ctx               493 libavfilter/vaf_spectrumsynth.c     SpectrumSynthContext *s = ctx->priv;
ctx                58 libavfilter/vf_addroi.c     AddROIContext     *ctx = avctx->priv;
ctx                71 libavfilter/vf_addroi.c         case W: max_value = inlink->w - ctx->region[X]; break;
ctx                72 libavfilter/vf_addroi.c         case H: max_value = inlink->h - ctx->region[Y]; break;
ctx                75 libavfilter/vf_addroi.c         val = av_expr_eval(ctx->region_expr[i], vars, NULL);
ctx                88 libavfilter/vf_addroi.c         ctx->region[i] = val;
ctx                98 libavfilter/vf_addroi.c     AddROIContext     *ctx = avctx->priv;
ctx               103 libavfilter/vf_addroi.c     if (ctx->clear) {
ctx               143 libavfilter/vf_addroi.c             .top       = ctx->region[Y],
ctx               144 libavfilter/vf_addroi.c             .bottom    = ctx->region[Y] + ctx->region[H],
ctx               145 libavfilter/vf_addroi.c             .left      = ctx->region[X],
ctx               146 libavfilter/vf_addroi.c             .right     = ctx->region[X] + ctx->region[W],
ctx               147 libavfilter/vf_addroi.c             .qoffset   = ctx->qoffset,
ctx               171 libavfilter/vf_addroi.c             .top       = ctx->region[Y],
ctx               172 libavfilter/vf_addroi.c             .bottom    = ctx->region[Y] + ctx->region[H],
ctx               173 libavfilter/vf_addroi.c             .left      = ctx->region[X],
ctx               174 libavfilter/vf_addroi.c             .right     = ctx->region[X] + ctx->region[W],
ctx               175 libavfilter/vf_addroi.c             .qoffset   = ctx->qoffset,
ctx               188 libavfilter/vf_addroi.c     AddROIContext *ctx = avctx->priv;
ctx               192 libavfilter/vf_addroi.c         err = av_expr_parse(&ctx->region_expr[i], ctx->region_str[i],
ctx               196 libavfilter/vf_addroi.c             av_log(ctx, AV_LOG_ERROR,
ctx               198 libavfilter/vf_addroi.c                    addroi_param_names[i], ctx->region_str[i]);
ctx               208 libavfilter/vf_addroi.c     AddROIContext *ctx = avctx->priv;
ctx               212 libavfilter/vf_addroi.c         av_expr_free(ctx->region_expr[i]);
ctx               213 libavfilter/vf_addroi.c         ctx->region_expr[i] = NULL;
ctx                49 libavfilter/vf_alphamerge.c static int query_formats(AVFilterContext *ctx)
ctx                66 libavfilter/vf_alphamerge.c     if ((ret = ff_formats_ref(main_formats , &ctx->inputs[0]->out_formats)) < 0 ||
ctx                67 libavfilter/vf_alphamerge.c         (ret = ff_formats_ref(alpha_formats, &ctx->inputs[1]->out_formats)) < 0 ||
ctx                68 libavfilter/vf_alphamerge.c         (ret = ff_formats_ref(main_formats , &ctx->outputs[0]->in_formats)) < 0)
ctx                92 libavfilter/vf_alphamerge.c     AVFilterContext *ctx = outlink->src;
ctx                93 libavfilter/vf_alphamerge.c     AVFilterLink *mainlink = ctx->inputs[0];
ctx                94 libavfilter/vf_alphamerge.c     AVFilterLink *alphalink = ctx->inputs[1];
ctx                96 libavfilter/vf_alphamerge.c         av_log(ctx, AV_LOG_ERROR,
ctx               111 libavfilter/vf_alphamerge.c static void draw_frame(AVFilterContext *ctx,
ctx               115 libavfilter/vf_alphamerge.c     AlphaMergeContext *s = ctx->priv;
ctx               139 libavfilter/vf_alphamerge.c static int activate(AVFilterContext *ctx)
ctx               141 libavfilter/vf_alphamerge.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               142 libavfilter/vf_alphamerge.c     AlphaMergeContext *s = ctx->priv;
ctx               145 libavfilter/vf_alphamerge.c     FF_FILTER_FORWARD_STATUS_BACK_ALL(outlink, ctx);
ctx               148 libavfilter/vf_alphamerge.c         ret = ff_inlink_consume_frame(ctx->inputs[0], &s->main_frame);
ctx               154 libavfilter/vf_alphamerge.c         ret = ff_inlink_consume_frame(ctx->inputs[1], &s->alpha_frame);
ctx               160 libavfilter/vf_alphamerge.c         if (!ctx->is_disabled)
ctx               161 libavfilter/vf_alphamerge.c             draw_frame(ctx, s->main_frame, s->alpha_frame);
ctx               168 libavfilter/vf_alphamerge.c     FF_FILTER_FORWARD_STATUS(ctx->inputs[0], outlink);
ctx               169 libavfilter/vf_alphamerge.c     FF_FILTER_FORWARD_STATUS(ctx->inputs[1], outlink);
ctx               171 libavfilter/vf_alphamerge.c     if (ff_outlink_frame_wanted(ctx->outputs[0]) &&
ctx               172 libavfilter/vf_alphamerge.c         !ff_outlink_get_status(ctx->inputs[0]) &&
ctx               174 libavfilter/vf_alphamerge.c         ff_inlink_request_frame(ctx->inputs[0]);
ctx               178 libavfilter/vf_alphamerge.c     if (ff_outlink_frame_wanted(ctx->outputs[0]) &&
ctx               179 libavfilter/vf_alphamerge.c         !ff_outlink_get_status(ctx->inputs[1]) &&
ctx               181 libavfilter/vf_alphamerge.c         ff_inlink_request_frame(ctx->inputs[1]);
ctx                53 libavfilter/vf_amplify.c static int query_formats(AVFilterContext *ctx)
ctx                84 libavfilter/vf_amplify.c     return ff_set_common_formats(ctx, formats);
ctx                87 libavfilter/vf_amplify.c static av_cold int init(AVFilterContext *ctx)
ctx                89 libavfilter/vf_amplify.c     AmplifyContext *s = ctx->priv;
ctx               104 libavfilter/vf_amplify.c static int amplify_frame(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               106 libavfilter/vf_amplify.c     AmplifyContext *s = ctx->priv;
ctx               212 libavfilter/vf_amplify.c     AVFilterContext *ctx = outlink->src;
ctx               213 libavfilter/vf_amplify.c     AmplifyContext *s = ctx->priv;
ctx               214 libavfilter/vf_amplify.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               232 libavfilter/vf_amplify.c static av_cold void uninit(AVFilterContext *ctx)
ctx               234 libavfilter/vf_amplify.c     AmplifyContext *s = ctx->priv;
ctx               246 libavfilter/vf_amplify.c     AVFilterContext *ctx = inlink->dst;
ctx               247 libavfilter/vf_amplify.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               248 libavfilter/vf_amplify.c     AmplifyContext *s = ctx->priv;
ctx               262 libavfilter/vf_amplify.c     if (!ctx->is_disabled) {
ctx               270 libavfilter/vf_amplify.c         ctx->internal->execute(ctx, amplify_frame, &td, NULL, FFMIN(s->height[1], ff_filter_get_nb_threads(ctx)));
ctx                89 libavfilter/vf_aspect.c     AVFilterContext *ctx = inlink->dst;
ctx               107 libavfilter/vf_aspect.c                                       NULL, NULL, NULL, NULL, NULL, 0, ctx);
ctx               109 libavfilter/vf_aspect.c         ret = av_parse_ratio(aspect_ratio, s->ratio_expr, s->max, 0, ctx);
ctx               114 libavfilter/vf_aspect.c         av_log(ctx, AV_LOG_ERROR,
ctx               119 libavfilter/vf_aspect.c         av_log(ctx, AV_LOG_ERROR,
ctx               130 libavfilter/vf_aspect.c     AVFilterContext *ctx = outlink->src;
ctx               131 libavfilter/vf_aspect.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               132 libavfilter/vf_aspect.c     AspectContext *s = ctx->priv;
ctx               153 libavfilter/vf_aspect.c     av_log(ctx, AV_LOG_VERBOSE, "w:%d h:%d dar:%d/%d sar:%d/%d -> dar:%d/%d sar:%d/%d\n",
ctx               203 libavfilter/vf_aspect.c     AVFilterContext *ctx = outlink->src;
ctx               204 libavfilter/vf_aspect.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               205 libavfilter/vf_aspect.c     AspectContext *s = ctx->priv;
ctx               217 libavfilter/vf_aspect.c     av_log(ctx, AV_LOG_VERBOSE, "w:%d h:%d sar:%d/%d dar:%d/%d -> sar:%d/%d dar:%d/%d\n",
ctx                61 libavfilter/vf_atadenoise.c     int (*filter_slice)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx                87 libavfilter/vf_atadenoise.c static int query_formats(AVFilterContext *ctx)
ctx               121 libavfilter/vf_atadenoise.c     return ff_set_common_formats(ctx, formats);
ctx               124 libavfilter/vf_atadenoise.c static av_cold int init(AVFilterContext *ctx)
ctx               126 libavfilter/vf_atadenoise.c     ATADenoiseContext *s = ctx->priv;
ctx               129 libavfilter/vf_atadenoise.c         av_log(ctx, AV_LOG_WARNING, "size %d is invalid. Must be an odd value, setting it to %d.\n", s->size, s->size|1);
ctx               237 libavfilter/vf_atadenoise.c static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               239 libavfilter/vf_atadenoise.c     ATADenoiseContext *s = ctx->priv;
ctx               286 libavfilter/vf_atadenoise.c     AVFilterContext *ctx = inlink->dst;
ctx               287 libavfilter/vf_atadenoise.c     ATADenoiseContext *s = ctx->priv;
ctx               319 libavfilter/vf_atadenoise.c     AVFilterContext *ctx = inlink->dst;
ctx               320 libavfilter/vf_atadenoise.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               321 libavfilter/vf_atadenoise.c     ATADenoiseContext *s = ctx->priv;
ctx               333 libavfilter/vf_atadenoise.c                 ff_bufqueue_add(ctx, &s->q, out);
ctx               337 libavfilter/vf_atadenoise.c             ff_bufqueue_add(ctx, &s->q, buf);
ctx               345 libavfilter/vf_atadenoise.c     if (!ctx->is_disabled) {
ctx               366 libavfilter/vf_atadenoise.c         ctx->internal->execute(ctx, s->filter_slice, &td, NULL,
ctx               369 libavfilter/vf_atadenoise.c                                       ff_filter_get_nb_threads(ctx)));
ctx               381 libavfilter/vf_atadenoise.c     ff_bufqueue_add(ctx, &s->q, buf);
ctx               388 libavfilter/vf_atadenoise.c     AVFilterContext *ctx = outlink->src;
ctx               389 libavfilter/vf_atadenoise.c     ATADenoiseContext *s = ctx->priv;
ctx               392 libavfilter/vf_atadenoise.c     ret = ff_request_frame(ctx->inputs[0]);
ctx               394 libavfilter/vf_atadenoise.c     if (ret == AVERROR_EOF && !ctx->is_disabled && s->available) {
ctx               399 libavfilter/vf_atadenoise.c         ret = filter_frame(ctx->inputs[0], buf);
ctx               406 libavfilter/vf_atadenoise.c static av_cold void uninit(AVFilterContext *ctx)
ctx               408 libavfilter/vf_atadenoise.c     ATADenoiseContext *s = ctx->priv;
ctx               413 libavfilter/vf_atadenoise.c static int process_command(AVFilterContext *ctx,
ctx               420 libavfilter/vf_atadenoise.c     int ret = ff_filter_process_command(ctx, cmd, arg, res, res_len, flags);
ctx               425 libavfilter/vf_atadenoise.c     return config_input(ctx->inputs[0]);
ctx                44 libavfilter/vf_avgblur.c     int (*filter_horizontally)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx                45 libavfilter/vf_avgblur.c     int (*filter_vertically)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx                68 libavfilter/vf_avgblur.c static int filter_horizontally_##name(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)\
ctx                70 libavfilter/vf_avgblur.c     AverageBlurContext *s = ctx->priv;                                                        \
ctx               121 libavfilter/vf_avgblur.c static int filter_vertically_##name(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)  \
ctx               123 libavfilter/vf_avgblur.c     AverageBlurContext *s = ctx->priv;                                                        \
ctx               207 libavfilter/vf_avgblur.c static void averageiir2d(AVFilterContext *ctx, AVFrame *in, AVFrame *out, int plane)
ctx               209 libavfilter/vf_avgblur.c     AverageBlurContext *s = ctx->priv;
ctx               212 libavfilter/vf_avgblur.c     const int nb_threads = ff_filter_get_nb_threads(ctx);
ctx               219 libavfilter/vf_avgblur.c     ctx->internal->execute(ctx, s->filter_horizontally, &td, NULL, FFMIN(height, nb_threads));
ctx               222 libavfilter/vf_avgblur.c     ctx->internal->execute(ctx, s->filter_vertically, &td, NULL, FFMIN(width, nb_threads));
ctx               225 libavfilter/vf_avgblur.c static int query_formats(AVFilterContext *ctx)
ctx               249 libavfilter/vf_avgblur.c     return ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               254 libavfilter/vf_avgblur.c     AVFilterContext *ctx = inlink->dst;
ctx               255 libavfilter/vf_avgblur.c     AverageBlurContext *s = ctx->priv;
ctx               256 libavfilter/vf_avgblur.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               283 libavfilter/vf_avgblur.c         averageiir2d(ctx, in, out, plane);
ctx               291 libavfilter/vf_avgblur.c static av_cold void uninit(AVFilterContext *ctx)
ctx               293 libavfilter/vf_avgblur.c     AverageBlurContext *s = ctx->priv;
ctx                56 libavfilter/vf_avgblur_opencl.c     AverageBlurOpenCLContext *ctx = avctx->priv;
ctx                64 libavfilter/vf_avgblur_opencl.c     ctx->command_queue = clCreateCommandQueue(ctx->ocf.hwctx->context,
ctx                65 libavfilter/vf_avgblur_opencl.c                                               ctx->ocf.hwctx->device_id,
ctx                70 libavfilter/vf_avgblur_opencl.c     ctx->kernel_horiz = clCreateKernel(ctx->ocf.program,"avgblur_horiz", &cle);
ctx                74 libavfilter/vf_avgblur_opencl.c     ctx->kernel_vert = clCreateKernel(ctx->ocf.program,"avgblur_vert", &cle);
ctx                78 libavfilter/vf_avgblur_opencl.c     ctx->initialised = 1;
ctx                82 libavfilter/vf_avgblur_opencl.c     if (ctx->command_queue)
ctx                83 libavfilter/vf_avgblur_opencl.c         clReleaseCommandQueue(ctx->command_queue);
ctx                84 libavfilter/vf_avgblur_opencl.c     if (ctx->kernel_horiz)
ctx                85 libavfilter/vf_avgblur_opencl.c         clReleaseKernel(ctx->kernel_horiz);
ctx                86 libavfilter/vf_avgblur_opencl.c     if (ctx->kernel_vert)
ctx                87 libavfilter/vf_avgblur_opencl.c         clReleaseKernel(ctx->kernel_vert);
ctx                94 libavfilter/vf_avgblur_opencl.c     AVFilterContext    *ctx = inlink->dst;
ctx                95 libavfilter/vf_avgblur_opencl.c     AverageBlurOpenCLContext *s = ctx->priv;
ctx               111 libavfilter/vf_avgblur_opencl.c     AVFilterContext    *ctx = inlink->dst;
ctx               112 libavfilter/vf_avgblur_opencl.c     AverageBlurOpenCLContext *s = ctx->priv;
ctx               121 libavfilter/vf_avgblur_opencl.c         av_log(ctx, AV_LOG_ERROR, "Failed to evaluate "
ctx               149 libavfilter/vf_avgblur_opencl.c     AverageBlurOpenCLContext *ctx = avctx->priv;
ctx               157 libavfilter/vf_avgblur_opencl.c     av_log(ctx, AV_LOG_DEBUG, "Filter input: %s, %ux%u (%"PRId64").\n",
ctx               164 libavfilter/vf_avgblur_opencl.c     if (!ctx->initialised) {
ctx               200 libavfilter/vf_avgblur_opencl.c         radius_x = ctx->radiusH;
ctx               201 libavfilter/vf_avgblur_opencl.c         radius_y = ctx->radiusV;
ctx               203 libavfilter/vf_avgblur_opencl.c         if (!(ctx->planes & (1 << p))) {
ctx               208 libavfilter/vf_avgblur_opencl.c         for (i = 0; i < ctx->power[p]; i++) {
ctx               209 libavfilter/vf_avgblur_opencl.c             CL_SET_KERNEL_ARG(ctx->kernel_horiz, 0, cl_mem, &inter);
ctx               210 libavfilter/vf_avgblur_opencl.c             CL_SET_KERNEL_ARG(ctx->kernel_horiz, 1, cl_mem, i == 0 ? &src : &dst);
ctx               212 libavfilter/vf_avgblur_opencl.c                 CL_SET_KERNEL_ARG(ctx->kernel_horiz, 2, cl_int, &radius_x);
ctx               214 libavfilter/vf_avgblur_opencl.c                 CL_SET_KERNEL_ARG(ctx->kernel_horiz, 2, cl_int, &ctx->radius[p]);
ctx               226 libavfilter/vf_avgblur_opencl.c             cle = clEnqueueNDRangeKernel(ctx->command_queue, ctx->kernel_horiz, 2, NULL,
ctx               235 libavfilter/vf_avgblur_opencl.c             CL_SET_KERNEL_ARG(ctx->kernel_vert, 0, cl_mem, &dst);
ctx               236 libavfilter/vf_avgblur_opencl.c             CL_SET_KERNEL_ARG(ctx->kernel_vert, 1, cl_mem, &inter);
ctx               239 libavfilter/vf_avgblur_opencl.c                 CL_SET_KERNEL_ARG(ctx->kernel_vert, 2, cl_int, &radius_y);
ctx               241 libavfilter/vf_avgblur_opencl.c                 CL_SET_KERNEL_ARG(ctx->kernel_vert, 2, cl_int, &ctx->radius[p]);
ctx               244 libavfilter/vf_avgblur_opencl.c             cle = clEnqueueNDRangeKernel(ctx->command_queue, ctx->kernel_vert, 2, NULL,
ctx               252 libavfilter/vf_avgblur_opencl.c     cle = clFinish(ctx->command_queue);
ctx               262 libavfilter/vf_avgblur_opencl.c     av_log(ctx, AV_LOG_DEBUG, "Filter output: %s, %ux%u (%"PRId64").\n",
ctx               269 libavfilter/vf_avgblur_opencl.c     clFinish(ctx->command_queue);
ctx               279 libavfilter/vf_avgblur_opencl.c     AverageBlurOpenCLContext *ctx = avctx->priv;
ctx               282 libavfilter/vf_avgblur_opencl.c     if (ctx->kernel_horiz) {
ctx               283 libavfilter/vf_avgblur_opencl.c         cle = clReleaseKernel(ctx->kernel_horiz);
ctx               289 libavfilter/vf_avgblur_opencl.c     if (ctx->kernel_vert) {
ctx               290 libavfilter/vf_avgblur_opencl.c         cle = clReleaseKernel(ctx->kernel_vert);
ctx               296 libavfilter/vf_avgblur_opencl.c     if (ctx->command_queue) {
ctx               297 libavfilter/vf_avgblur_opencl.c         cle = clReleaseCommandQueue(ctx->command_queue);
ctx                70 libavfilter/vf_avgblur_vulkan.c static av_cold int init_filter(AVFilterContext *ctx, AVFrame *in)
ctx                74 libavfilter/vf_avgblur_vulkan.c     AvgBlurVulkanContext *s = ctx->priv;
ctx                76 libavfilter/vf_avgblur_vulkan.c     VkSampler *sampler = ff_vk_init_sampler(ctx, 1, VK_FILTER_LINEAR);
ctx               109 libavfilter/vf_avgblur_vulkan.c         s->pl_hor = ff_vk_create_pipeline(ctx);
ctx               113 libavfilter/vf_avgblur_vulkan.c         shd = ff_vk_init_shader(ctx, s->pl_hor, "avgblur_compute_hor",
ctx               116 libavfilter/vf_avgblur_vulkan.c         ff_vk_set_compute_shader_sizes(ctx, shd, (int [3]){ CGS, 1, 1 });
ctx               118 libavfilter/vf_avgblur_vulkan.c         RET(ff_vk_add_descriptor_set(ctx, s->pl_hor, shd, desc_i, 2, 0));
ctx               142 libavfilter/vf_avgblur_vulkan.c         RET(ff_vk_compile_shader(ctx, shd, "main"));
ctx               144 libavfilter/vf_avgblur_vulkan.c         RET(ff_vk_init_pipeline_layout(ctx, s->pl_hor));
ctx               145 libavfilter/vf_avgblur_vulkan.c         RET(ff_vk_init_compute_pipeline(ctx, s->pl_hor));
ctx               152 libavfilter/vf_avgblur_vulkan.c         s->pl_ver = ff_vk_create_pipeline(ctx);
ctx               156 libavfilter/vf_avgblur_vulkan.c         shd = ff_vk_init_shader(ctx, s->pl_ver, "avgblur_compute_ver",
ctx               159 libavfilter/vf_avgblur_vulkan.c         ff_vk_set_compute_shader_sizes(ctx, shd, (int [3]){ 1, CGS, 1 });
ctx               161 libavfilter/vf_avgblur_vulkan.c         RET(ff_vk_add_descriptor_set(ctx, s->pl_ver, shd, desc_i, 2, 0));
ctx               185 libavfilter/vf_avgblur_vulkan.c         RET(ff_vk_compile_shader(ctx, shd, "main"));
ctx               187 libavfilter/vf_avgblur_vulkan.c         RET(ff_vk_init_pipeline_layout(ctx, s->pl_ver));
ctx               188 libavfilter/vf_avgblur_vulkan.c         RET(ff_vk_init_compute_pipeline(ctx, s->pl_ver));
ctx               192 libavfilter/vf_avgblur_vulkan.c     RET(ff_vk_create_exec_ctx(ctx, &s->exec));
ctx               325 libavfilter/vf_avgblur_vulkan.c     AVFilterContext *ctx = link->dst;
ctx               326 libavfilter/vf_avgblur_vulkan.c     AvgBlurVulkanContext *s = ctx->priv;
ctx               327 libavfilter/vf_avgblur_vulkan.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               342 libavfilter/vf_avgblur_vulkan.c         RET(init_filter(ctx, in));
ctx               344 libavfilter/vf_avgblur_vulkan.c     RET(process_frames(ctx, out, tmp, in));
ctx                48 libavfilter/vf_bbox.c static int query_formats(AVFilterContext *ctx)
ctx                62 libavfilter/vf_bbox.c     return ff_set_common_formats(ctx, fmts_list);
ctx                70 libavfilter/vf_bbox.c     AVFilterContext *ctx = inlink->dst;
ctx                71 libavfilter/vf_bbox.c     BBoxContext *bbox = ctx->priv;
ctx                82 libavfilter/vf_bbox.c     av_log(ctx, AV_LOG_INFO,
ctx                96 libavfilter/vf_bbox.c         av_log(ctx, AV_LOG_INFO,
ctx               103 libavfilter/vf_bbox.c     av_log(ctx, AV_LOG_INFO, "\n");
ctx                68 libavfilter/vf_bilateral.c static int query_formats(AVFilterContext *ctx)
ctx                91 libavfilter/vf_bilateral.c     return ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               294 libavfilter/vf_bilateral.c     AVFilterContext *ctx = inlink->dst;
ctx               295 libavfilter/vf_bilateral.c     BilateralContext *s = ctx->priv;
ctx               296 libavfilter/vf_bilateral.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               328 libavfilter/vf_bilateral.c static av_cold void uninit(AVFilterContext *ctx)
ctx               330 libavfilter/vf_bilateral.c     BilateralContext *s = ctx->priv;
ctx                50 libavfilter/vf_bitplanenoise.c static int query_formats(AVFilterContext *ctx)
ctx                73 libavfilter/vf_bitplanenoise.c     return ff_set_common_formats(ctx, formats);
ctx                79 libavfilter/vf_bitplanenoise.c     AVFilterContext *ctx = inlink->dst;
ctx                80 libavfilter/vf_bitplanenoise.c     BPNContext *s = ctx->priv;
ctx               104 libavfilter/vf_bitplanenoise.c     AVFilterContext *ctx = inlink->dst;
ctx               105 libavfilter/vf_bitplanenoise.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               106 libavfilter/vf_bitplanenoise.c     BPNContext *s = ctx->priv;
ctx                71 libavfilter/vf_blackdetect.c static int query_formats(AVFilterContext *ctx)
ctx                86 libavfilter/vf_blackdetect.c     return ff_set_common_formats(ctx, fmts_list);
ctx                91 libavfilter/vf_blackdetect.c     AVFilterContext *ctx = inlink->dst;
ctx                92 libavfilter/vf_blackdetect.c     BlackDetectContext *blackdetect = ctx->priv;
ctx               110 libavfilter/vf_blackdetect.c static void check_black_end(AVFilterContext *ctx)
ctx               112 libavfilter/vf_blackdetect.c     BlackDetectContext *blackdetect = ctx->priv;
ctx               113 libavfilter/vf_blackdetect.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               126 libavfilter/vf_blackdetect.c     AVFilterContext *ctx = outlink->src;
ctx               127 libavfilter/vf_blackdetect.c     BlackDetectContext *blackdetect = ctx->priv;
ctx               128 libavfilter/vf_blackdetect.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               134 libavfilter/vf_blackdetect.c         check_black_end(ctx);
ctx               141 libavfilter/vf_blackdetect.c     AVFilterContext *ctx = inlink->dst;
ctx               142 libavfilter/vf_blackdetect.c     BlackDetectContext *blackdetect = ctx->priv;
ctx               155 libavfilter/vf_blackdetect.c     av_log(ctx, AV_LOG_DEBUG,
ctx               173 libavfilter/vf_blackdetect.c         check_black_end(ctx);
ctx                49 libavfilter/vf_blackframe.c static int query_formats(AVFilterContext *ctx)
ctx                60 libavfilter/vf_blackframe.c     return ff_set_common_formats(ctx, fmts_list);
ctx                69 libavfilter/vf_blackframe.c     AVFilterContext *ctx = inlink->dst;
ctx                70 libavfilter/vf_blackframe.c     BlackFrameContext *s = ctx->priv;
ctx                90 libavfilter/vf_blackframe.c         av_log(ctx, AV_LOG_INFO, "frame:%u pblack:%u pts:%"PRId64" t:%f "
ctx               578 libavfilter/vf_blend.c static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               606 libavfilter/vf_blend.c static AVFrame *blend_frame(AVFilterContext *ctx, AVFrame *top_buf,
ctx               609 libavfilter/vf_blend.c     BlendContext *s = ctx->priv;
ctx               610 libavfilter/vf_blend.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               611 libavfilter/vf_blend.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               630 libavfilter/vf_blend.c         ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(outh, ff_filter_get_nb_threads(ctx)));
ctx               641 libavfilter/vf_blend.c     AVFilterContext *ctx = fs->parent;
ctx               649 libavfilter/vf_blend.c         return ff_filter_frame(ctx->outputs[0], top_buf);
ctx               650 libavfilter/vf_blend.c     dst_buf = blend_frame(ctx, top_buf, bottom_buf);
ctx               651 libavfilter/vf_blend.c     return ff_filter_frame(ctx->outputs[0], dst_buf);
ctx               654 libavfilter/vf_blend.c static av_cold int init(AVFilterContext *ctx)
ctx               656 libavfilter/vf_blend.c     BlendContext *s = ctx->priv;
ctx               658 libavfilter/vf_blend.c     s->tblend = !strcmp(ctx->filter->name, "tblend");
ctx               664 libavfilter/vf_blend.c static int query_formats(AVFilterContext *ctx)
ctx               689 libavfilter/vf_blend.c     return ff_set_common_formats(ctx, fmts_list);
ctx               692 libavfilter/vf_blend.c static av_cold void uninit(AVFilterContext *ctx)
ctx               694 libavfilter/vf_blend.c     BlendContext *s = ctx->priv;
ctx               788 libavfilter/vf_blend.c     AVFilterContext *ctx = outlink->src;
ctx               789 libavfilter/vf_blend.c     AVFilterLink *toplink = ctx->inputs[TOP];
ctx               790 libavfilter/vf_blend.c     BlendContext *s = ctx->priv;
ctx               795 libavfilter/vf_blend.c         AVFilterLink *bottomlink = ctx->inputs[BOTTOM];
ctx               798 libavfilter/vf_blend.c             av_log(ctx, AV_LOG_ERROR, "inputs must be of same pixel format\n");
ctx               802 libavfilter/vf_blend.c             av_log(ctx, AV_LOG_ERROR, "First input link %s parameters "
ctx               805 libavfilter/vf_blend.c                    ctx->input_pads[TOP].name, toplink->w, toplink->h,
ctx               806 libavfilter/vf_blend.c                    ctx->input_pads[BOTTOM].name, bottomlink->w, bottomlink->h);
ctx               824 libavfilter/vf_blend.c         if ((ret = ff_framesync_init_dualinput(&s->fs, ctx)) < 0)
ctx               844 libavfilter/vf_blend.c                                 NULL, NULL, NULL, NULL, 0, ctx);
ctx               862 libavfilter/vf_blend.c static int activate(AVFilterContext *ctx)
ctx               864 libavfilter/vf_blend.c     BlendContext *s = ctx->priv;
ctx               909 libavfilter/vf_blend.c     AVFilterContext *ctx = inlink->dst;
ctx               910 libavfilter/vf_blend.c     BlendContext *s = ctx->priv;
ctx               911 libavfilter/vf_blend.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               916 libavfilter/vf_blend.c         if (ctx->is_disabled)
ctx               919 libavfilter/vf_blend.c             out = blend_frame(ctx, frame, s->prev_frame);
ctx               164 libavfilter/vf_bm3d.c static int query_formats(AVFilterContext *ctx)
ctx               195 libavfilter/vf_bm3d.c     return ff_set_common_formats(ctx, fmts_list);
ctx               700 libavfilter/vf_bm3d.c static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               702 libavfilter/vf_bm3d.c     BM3DContext *s = ctx->priv;
ctx               743 libavfilter/vf_bm3d.c static int filter_frame(AVFilterContext *ctx, AVFrame **out, AVFrame *in, AVFrame *ref)
ctx               745 libavfilter/vf_bm3d.c     BM3DContext *s = ctx->priv;
ctx               746 libavfilter/vf_bm3d.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               758 libavfilter/vf_bm3d.c         if (!((1 << p) & s->planes) || ctx->is_disabled) {
ctx               770 libavfilter/vf_bm3d.c         ctx->internal->execute(ctx, filter_slice, &td, NULL, nb_jobs);
ctx               783 libavfilter/vf_bm3d.c     AVFilterContext *ctx = inlink->dst;
ctx               784 libavfilter/vf_bm3d.c     BM3DContext *s = ctx->priv;
ctx               787 libavfilter/vf_bm3d.c     s->nb_threads = FFMIN(ff_filter_get_nb_threads(ctx), MAX_NB_THREADS);
ctx               854 libavfilter/vf_bm3d.c static int activate(AVFilterContext *ctx)
ctx               856 libavfilter/vf_bm3d.c     BM3DContext *s = ctx->priv;
ctx               864 libavfilter/vf_bm3d.c         FF_FILTER_FORWARD_STATUS_BACK(ctx->outputs[0], ctx->inputs[0]);
ctx               866 libavfilter/vf_bm3d.c         if ((ret = ff_inlink_consume_frame(ctx->inputs[0], &frame)) > 0) {
ctx               867 libavfilter/vf_bm3d.c             ret = filter_frame(ctx, &out, frame, frame);
ctx               871 libavfilter/vf_bm3d.c             ret = ff_filter_frame(ctx->outputs[0], out);
ctx               875 libavfilter/vf_bm3d.c         } else if (ff_inlink_acknowledge_status(ctx->inputs[0], &status, &pts)) {
ctx               876 libavfilter/vf_bm3d.c             ff_outlink_set_status(ctx->outputs[0], status, pts);
ctx               879 libavfilter/vf_bm3d.c             if (ff_outlink_frame_wanted(ctx->outputs[0]))
ctx               880 libavfilter/vf_bm3d.c                 ff_inlink_request_frame(ctx->inputs[0]);
ctx               890 libavfilter/vf_bm3d.c     AVFilterContext *ctx = fs->parent;
ctx               892 libavfilter/vf_bm3d.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               900 libavfilter/vf_bm3d.c     if ((ret = filter_frame(ctx, &out, src, ref)) < 0)
ctx               908 libavfilter/vf_bm3d.c static av_cold int init(AVFilterContext *ctx)
ctx               910 libavfilter/vf_bm3d.c     BM3DContext *s = ctx->priv;
ctx               920 libavfilter/vf_bm3d.c             av_log(ctx, AV_LOG_WARNING, "Reference stream is mandatory in final estimation mode.\n");
ctx               934 libavfilter/vf_bm3d.c         av_log(ctx, AV_LOG_WARNING, "bstep: %d can't be bigger than block size. Changing to %d.\n",
ctx               939 libavfilter/vf_bm3d.c         av_log(ctx, AV_LOG_WARNING, "mstep: %d can't be bigger than block matching range. Changing to %d.\n",
ctx               950 libavfilter/vf_bm3d.c     if ((ret = ff_insert_inpad(ctx, 0, &pad)) < 0) {
ctx               962 libavfilter/vf_bm3d.c         if ((ret = ff_insert_inpad(ctx, 1, &pad)) < 0) {
ctx               973 libavfilter/vf_bm3d.c     AVFilterContext *ctx = outlink->src;
ctx               974 libavfilter/vf_bm3d.c     BM3DContext *s = ctx->priv;
ctx               975 libavfilter/vf_bm3d.c     AVFilterLink *src = ctx->inputs[0];
ctx               981 libavfilter/vf_bm3d.c         ref = ctx->inputs[1];
ctx               984 libavfilter/vf_bm3d.c             av_log(ctx, AV_LOG_ERROR, "inputs must be of same pixel format\n");
ctx               989 libavfilter/vf_bm3d.c             av_log(ctx, AV_LOG_ERROR, "First input link %s parameters "
ctx               992 libavfilter/vf_bm3d.c                    ctx->input_pads[0].name, src->w, src->h,
ctx               993 libavfilter/vf_bm3d.c                    ctx->input_pads[1].name, ref->w, ref->h);
ctx              1007 libavfilter/vf_bm3d.c     if ((ret = ff_framesync_init(&s->fs, ctx, 2)) < 0)
ctx              1025 libavfilter/vf_bm3d.c static av_cold void uninit(AVFilterContext *ctx)
ctx              1027 libavfilter/vf_bm3d.c     BM3DContext *s = ctx->priv;
ctx              1030 libavfilter/vf_bm3d.c     for (i = 0; i < ctx->nb_inputs; i++)
ctx              1031 libavfilter/vf_bm3d.c         av_freep(&ctx->input_pads[i].name);
ctx                50 libavfilter/vf_boxblur.c static av_cold void uninit(AVFilterContext *ctx)
ctx                52 libavfilter/vf_boxblur.c     BoxBlurContext *s = ctx->priv;
ctx                58 libavfilter/vf_boxblur.c static int query_formats(AVFilterContext *ctx)
ctx                72 libavfilter/vf_boxblur.c     return ff_set_common_formats(ctx, formats);
ctx                78 libavfilter/vf_boxblur.c     AVFilterContext    *ctx = inlink->dst;
ctx                79 libavfilter/vf_boxblur.c     BoxBlurContext *s = ctx->priv;
ctx                96 libavfilter/vf_boxblur.c         av_log(ctx, AV_LOG_ERROR, "Failed to evaluate "
ctx               229 libavfilter/vf_boxblur.c     AVFilterContext *ctx = inlink->dst;
ctx               230 libavfilter/vf_boxblur.c     BoxBlurContext *s = ctx->priv;
ctx               216 libavfilter/vf_bwdif.c static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               218 libavfilter/vf_bwdif.c     BWDIFContext *s = ctx->priv;
ctx               262 libavfilter/vf_bwdif.c static void filter(AVFilterContext *ctx, AVFrame *dstpic,
ctx               265 libavfilter/vf_bwdif.c     BWDIFContext *bwdif = ctx->priv;
ctx               283 libavfilter/vf_bwdif.c         ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(h, ff_filter_get_nb_threads(ctx)));
ctx               292 libavfilter/vf_bwdif.c static av_cold void uninit(AVFilterContext *ctx)
ctx               294 libavfilter/vf_bwdif.c     BWDIFContext *bwdif = ctx->priv;
ctx               302 libavfilter/vf_bwdif.c static int query_formats(AVFilterContext *ctx)
ctx               329 libavfilter/vf_bwdif.c     return ff_set_common_formats(ctx, fmts_list);
ctx               334 libavfilter/vf_bwdif.c     AVFilterContext *ctx = link->src;
ctx               347 libavfilter/vf_bwdif.c         av_log(ctx, AV_LOG_ERROR, "Video of less than 3 columns or 4 lines is not supported\n");
ctx               183 libavfilter/vf_cas.c     AVFilterContext *ctx = inlink->dst;
ctx               184 libavfilter/vf_cas.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               185 libavfilter/vf_cas.c     CASContext *s = ctx->priv;
ctx               196 libavfilter/vf_cas.c     ctx->internal->execute(ctx, s->do_slice, out, NULL,
ctx               197 libavfilter/vf_cas.c                            FFMIN(in->height, ff_filter_get_nb_threads(ctx)));
ctx               201 libavfilter/vf_cas.c     return ff_filter_frame(ctx->outputs[0], out);
ctx                67 libavfilter/vf_chromaber_vulkan.c static av_cold int init_filter(AVFilterContext *ctx, AVFrame *in)
ctx                70 libavfilter/vf_chromaber_vulkan.c     ChromaticAberrationVulkanContext *s = ctx->priv;
ctx                73 libavfilter/vf_chromaber_vulkan.c     VkSampler *sampler = ff_vk_init_sampler(ctx, 0, VK_FILTER_LINEAR);
ctx                81 libavfilter/vf_chromaber_vulkan.c     s->pl = ff_vk_create_pipeline(ctx);
ctx               113 libavfilter/vf_chromaber_vulkan.c         SPIRVShader *shd = ff_vk_init_shader(ctx, s->pl, "chromaber_compute",
ctx               118 libavfilter/vf_chromaber_vulkan.c         ff_vk_set_compute_shader_sizes(ctx, shd, CGROUPS);
ctx               125 libavfilter/vf_chromaber_vulkan.c         ff_vk_add_push_constant(ctx, s->pl, 0, sizeof(s->opts),
ctx               128 libavfilter/vf_chromaber_vulkan.c         RET(ff_vk_add_descriptor_set(ctx, s->pl, shd, desc_i, 2, 0)); /* set 0 */
ctx               155 libavfilter/vf_chromaber_vulkan.c         RET(ff_vk_compile_shader(ctx, shd, "main"));
ctx               158 libavfilter/vf_chromaber_vulkan.c     RET(ff_vk_init_pipeline_layout(ctx, s->pl));
ctx               159 libavfilter/vf_chromaber_vulkan.c     RET(ff_vk_init_compute_pipeline(ctx, s->pl));
ctx               162 libavfilter/vf_chromaber_vulkan.c     RET(ff_vk_create_exec_ctx(ctx, &s->exec));
ctx               269 libavfilter/vf_chromaber_vulkan.c     AVFilterContext *ctx = link->dst;
ctx               270 libavfilter/vf_chromaber_vulkan.c     ChromaticAberrationVulkanContext *s = ctx->priv;
ctx               271 libavfilter/vf_chromaber_vulkan.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               280 libavfilter/vf_chromaber_vulkan.c         RET(init_filter(ctx, in));
ctx               282 libavfilter/vf_chromaber_vulkan.c     RET(process_frames(ctx, out, in));
ctx                46 libavfilter/vf_chromakey.c     int (*do_slice)(AVFilterContext *ctx, void *arg,
ctx                50 libavfilter/vf_chromakey.c static uint8_t do_chromakey_pixel(ChromakeyContext *ctx, uint8_t u[9], uint8_t v[9])
ctx                56 libavfilter/vf_chromakey.c         du = (int)u[i] - ctx->chromakey_uv[0];
ctx                57 libavfilter/vf_chromakey.c         dv = (int)v[i] - ctx->chromakey_uv[1];
ctx                64 libavfilter/vf_chromakey.c     if (ctx->blend > 0.0001) {
ctx                65 libavfilter/vf_chromakey.c         return av_clipd((diff - ctx->similarity) / ctx->blend, 0.0, 1.0) * 255.0;
ctx                67 libavfilter/vf_chromakey.c         return (diff > ctx->similarity) ? 255 : 0;
ctx                71 libavfilter/vf_chromakey.c static uint16_t do_chromakey_pixel16(ChromakeyContext *ctx, uint16_t u[9], uint16_t v[9])
ctx                73 libavfilter/vf_chromakey.c     double max = ctx->max;
ctx                78 libavfilter/vf_chromakey.c         du = (int)u[i] - ctx->chromakey_uv[0];
ctx                79 libavfilter/vf_chromakey.c         dv = (int)v[i] - ctx->chromakey_uv[1];
ctx                86 libavfilter/vf_chromakey.c     if (ctx->blend > 0.0001) {
ctx                87 libavfilter/vf_chromakey.c         return av_clipd((diff - ctx->similarity) / ctx->blend, 0.0, 1.0) * max;
ctx                89 libavfilter/vf_chromakey.c         return (diff > ctx->similarity) ? max : 0;
ctx               124 libavfilter/vf_chromakey.c     ChromakeyContext *ctx = avctx->priv;
ctx               129 libavfilter/vf_chromakey.c     memset(u, ctx->chromakey_uv[0], sizeof(u));
ctx               130 libavfilter/vf_chromakey.c     memset(v, ctx->chromakey_uv[1], sizeof(v));
ctx               136 libavfilter/vf_chromakey.c                     get_pixel_uv(frame, ctx->hsub_log2, ctx->vsub_log2, x + xo - 1, y + yo - 1, &u[yo * 3 + xo], &v[yo * 3 + xo]);
ctx               140 libavfilter/vf_chromakey.c             frame->data[3][frame->linesize[3] * y + x] = do_chromakey_pixel(ctx, u, v);
ctx               154 libavfilter/vf_chromakey.c     ChromakeyContext *ctx = avctx->priv;
ctx               160 libavfilter/vf_chromakey.c         u[i] = ctx->chromakey_uv[0];
ctx               161 libavfilter/vf_chromakey.c         v[i] = ctx->chromakey_uv[1];
ctx               170 libavfilter/vf_chromakey.c                     get_pixel16_uv(frame, ctx->hsub_log2, ctx->vsub_log2, x + xo - 1, y + yo - 1, &u[yo * 3 + xo], &v[yo * 3 + xo]);
ctx               174 libavfilter/vf_chromakey.c             dst[x] = do_chromakey_pixel16(ctx, u, v);
ctx               183 libavfilter/vf_chromakey.c     ChromakeyContext *ctx = avctx->priv;
ctx               185 libavfilter/vf_chromakey.c     const int slice_start = ((frame->height >> ctx->vsub_log2) * jobnr) / nb_jobs;
ctx               186 libavfilter/vf_chromakey.c     const int slice_end = ((frame->height >> ctx->vsub_log2) * (jobnr + 1)) / nb_jobs;
ctx               191 libavfilter/vf_chromakey.c         for (x = 0; x < frame->width >> ctx->hsub_log2; ++x) {
ctx               197 libavfilter/vf_chromakey.c             du = u - ctx->chromakey_uv[0];
ctx               198 libavfilter/vf_chromakey.c             dv = v - ctx->chromakey_uv[1];
ctx               202 libavfilter/vf_chromakey.c             alpha = diff > ctx->similarity;
ctx               203 libavfilter/vf_chromakey.c             if (ctx->blend > 0.0001) {
ctx               204 libavfilter/vf_chromakey.c                 double f = 1. - av_clipd((diff - ctx->similarity) / ctx->blend, 0.0, 1.0);
ctx               220 libavfilter/vf_chromakey.c     ChromakeyContext *ctx = avctx->priv;
ctx               222 libavfilter/vf_chromakey.c     const int slice_start = ((frame->height >> ctx->vsub_log2) * jobnr) / nb_jobs;
ctx               223 libavfilter/vf_chromakey.c     const int slice_end = ((frame->height >> ctx->vsub_log2) * (jobnr + 1)) / nb_jobs;
ctx               224 libavfilter/vf_chromakey.c     const int mid = ctx->mid;
ctx               225 libavfilter/vf_chromakey.c     double max = ctx->max;
ctx               230 libavfilter/vf_chromakey.c         for (x = 0; x < frame->width >> ctx->hsub_log2; ++x) {
ctx               236 libavfilter/vf_chromakey.c             du = u - ctx->chromakey_uv[0];
ctx               237 libavfilter/vf_chromakey.c             dv = v - ctx->chromakey_uv[1];
ctx               241 libavfilter/vf_chromakey.c             alpha = diff > ctx->similarity;
ctx               242 libavfilter/vf_chromakey.c             if (ctx->blend > 0.0001) {
ctx               243 libavfilter/vf_chromakey.c                 double f = 1. - av_clipd((diff - ctx->similarity) / ctx->blend, 0.0, 1.0);
ctx               260 libavfilter/vf_chromakey.c     ChromakeyContext *ctx = avctx->priv;
ctx               263 libavfilter/vf_chromakey.c     if (res = avctx->internal->execute(avctx, ctx->do_slice, frame, NULL, FFMIN(frame->height, ff_filter_get_nb_threads(avctx))))
ctx               277 libavfilter/vf_chromakey.c     ChromakeyContext *ctx = avctx->priv;
ctx               280 libavfilter/vf_chromakey.c     ctx->depth = desc->comp[0].depth;
ctx               281 libavfilter/vf_chromakey.c     ctx->mid = 1 << (ctx->depth - 1);
ctx               282 libavfilter/vf_chromakey.c     ctx->max = (1 << ctx->depth) - 1;
ctx               284 libavfilter/vf_chromakey.c     factor = 1 << (ctx->depth - 8);
ctx               286 libavfilter/vf_chromakey.c     if (ctx->is_yuv) {
ctx               287 libavfilter/vf_chromakey.c         ctx->chromakey_uv[0] = ctx->chromakey_rgba[1] * factor;
ctx               288 libavfilter/vf_chromakey.c         ctx->chromakey_uv[1] = ctx->chromakey_rgba[2] * factor;
ctx               290 libavfilter/vf_chromakey.c         ctx->chromakey_uv[0] = RGB_TO_U(ctx->chromakey_rgba) * factor;
ctx               291 libavfilter/vf_chromakey.c         ctx->chromakey_uv[1] = RGB_TO_V(ctx->chromakey_rgba) * factor;
ctx               295 libavfilter/vf_chromakey.c         ctx->do_slice = ctx->depth <= 8 ? do_chromakey_slice : do_chromakey16_slice;
ctx               297 libavfilter/vf_chromakey.c         ctx->do_slice = ctx->depth <= 8 ? do_chromahold_slice: do_chromahold16_slice;
ctx               347 libavfilter/vf_chromakey.c     ChromakeyContext *ctx = avctx->priv;
ctx               350 libavfilter/vf_chromakey.c     ctx->hsub_log2 = desc->log2_chroma_w;
ctx               351 libavfilter/vf_chromakey.c     ctx->vsub_log2 = desc->log2_chroma_h;
ctx               356 libavfilter/vf_chromakey.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               361 libavfilter/vf_chromakey.c     ret = ff_filter_process_command(ctx, cmd, args, res, res_len, flags);
ctx               365 libavfilter/vf_chromakey.c     return config_output(ctx->outputs[0]);
ctx                52 libavfilter/vf_chromashift.c     int (*filter_slice)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx                55 libavfilter/vf_chromashift.c static int query_formats(AVFilterContext *ctx)
ctx                81 libavfilter/vf_chromashift.c     if (!strcmp(ctx->filter->name, "rgbashift"))
ctx                89 libavfilter/vf_chromashift.c     return ff_set_common_formats(ctx, fmts_list);
ctx                93 libavfilter/vf_chromashift.c static int smear_slice ## depth(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)  \
ctx                95 libavfilter/vf_chromashift.c     ChromaShiftContext *s = ctx->priv;                                                    \
ctx               135 libavfilter/vf_chromashift.c static int wrap_slice ## depth(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)   \
ctx               137 libavfilter/vf_chromashift.c     ChromaShiftContext *s = ctx->priv;                                                    \
ctx               190 libavfilter/vf_chromashift.c static int rgbasmear_slice ## depth(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)  \
ctx               192 libavfilter/vf_chromashift.c     ChromaShiftContext *s = ctx->priv;                                                    \
ctx               257 libavfilter/vf_chromashift.c static int rgbawrap_slice ## depth(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)   \
ctx               259 libavfilter/vf_chromashift.c     ChromaShiftContext *s = ctx->priv;                                                    \
ctx               347 libavfilter/vf_chromashift.c     AVFilterContext *ctx = inlink->dst;
ctx               348 libavfilter/vf_chromashift.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               349 libavfilter/vf_chromashift.c     ChromaShiftContext *s = ctx->priv;
ctx               366 libavfilter/vf_chromashift.c     ctx->internal->execute(ctx, s->filter_slice, out, NULL,
ctx               369 libavfilter/vf_chromashift.c                                   ff_filter_get_nb_threads(ctx)));
ctx               377 libavfilter/vf_chromashift.c     AVFilterContext *ctx = inlink->dst;
ctx               378 libavfilter/vf_chromashift.c     ChromaShiftContext *s = ctx->priv;
ctx               381 libavfilter/vf_chromashift.c     s->is_rgbashift = !strcmp(ctx->filter->name, "rgbashift");
ctx               403 libavfilter/vf_chromashift.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               408 libavfilter/vf_chromashift.c     ret = ff_filter_process_command(ctx, cmd, args, res, res_len, flags);
ctx               412 libavfilter/vf_chromashift.c     return config_input(ctx->inputs[0]);
ctx                70 libavfilter/vf_ciescope.c     void (*filter)(AVFilterContext *ctx, AVFrame *in, double *cx, double *cy, int x, int y);
ctx               138 libavfilter/vf_ciescope.c static int query_formats(AVFilterContext *ctx)
ctx               142 libavfilter/vf_ciescope.c     if ((ret = ff_formats_ref(ff_make_format_list(in_pix_fmts), &ctx->inputs[0]->out_formats)) < 0)
ctx               145 libavfilter/vf_ciescope.c     if ((ret = ff_formats_ref(ff_make_format_list(out_pix_fmts), &ctx->outputs[0]->in_formats)) < 0)
ctx              1221 libavfilter/vf_ciescope.c static int draw_background(AVFilterContext *ctx)
ctx              1223 libavfilter/vf_ciescope.c     CiescopeContext *s = ctx->priv;
ctx              1225 libavfilter/vf_ciescope.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              1242 libavfilter/vf_ciescope.c static void filter_rgb48(AVFilterContext *ctx, AVFrame *in, double *cx, double *cy, int x, int y)
ctx              1244 libavfilter/vf_ciescope.c     CiescopeContext *s = ctx->priv;
ctx              1254 libavfilter/vf_ciescope.c static void filter_rgba64(AVFilterContext *ctx, AVFrame *in, double *cx, double *cy, int x, int y)
ctx              1256 libavfilter/vf_ciescope.c     CiescopeContext *s = ctx->priv;
ctx              1266 libavfilter/vf_ciescope.c static void filter_rgb24(AVFilterContext *ctx, AVFrame *in, double *cx, double *cy, int x, int y)
ctx              1268 libavfilter/vf_ciescope.c     CiescopeContext *s = ctx->priv;
ctx              1278 libavfilter/vf_ciescope.c static void filter_rgba(AVFilterContext *ctx, AVFrame *in, double *cx, double *cy, int x, int y)
ctx              1280 libavfilter/vf_ciescope.c     CiescopeContext *s = ctx->priv;
ctx              1290 libavfilter/vf_ciescope.c static void filter_xyz(AVFilterContext *ctx, AVFrame *in, double *cx, double *cy, int x, int y)
ctx              1292 libavfilter/vf_ciescope.c     CiescopeContext *s = ctx->priv;
ctx              1357 libavfilter/vf_ciescope.c     AVFilterContext *ctx  = inlink->dst;
ctx              1358 libavfilter/vf_ciescope.c     CiescopeContext *s = ctx->priv;
ctx              1359 libavfilter/vf_ciescope.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              1374 libavfilter/vf_ciescope.c         ret = draw_background(ctx);
ctx              1391 libavfilter/vf_ciescope.c             s->filter(ctx, in, &cx, &cy, x, y);
ctx              1447 libavfilter/vf_ciescope.c static void av_cold uninit(AVFilterContext *ctx)
ctx              1449 libavfilter/vf_ciescope.c     CiescopeContext *s = ctx->priv;
ctx                80 libavfilter/vf_codecview.c static int query_formats(AVFilterContext *ctx)
ctx                88 libavfilter/vf_codecview.c     return ff_set_common_formats(ctx, fmts_list);
ctx               217 libavfilter/vf_codecview.c     AVFilterContext *ctx = inlink->dst;
ctx               218 libavfilter/vf_codecview.c     CodecViewContext *s = ctx->priv;
ctx               219 libavfilter/vf_codecview.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               285 libavfilter/vf_codecview.c     AVFilterContext *ctx = inlink->dst;
ctx               286 libavfilter/vf_codecview.c     CodecViewContext *s = ctx->priv;
ctx                56 libavfilter/vf_colorbalance.c     int (*color_balance)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx                77 libavfilter/vf_colorbalance.c static int query_formats(AVFilterContext *ctx)
ctx                98 libavfilter/vf_colorbalance.c     return ff_set_common_formats(ctx, fmts_list);
ctx               158 libavfilter/vf_colorbalance.c static int color_balance8_p(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               160 libavfilter/vf_colorbalance.c     ColorBalanceContext *s = ctx->priv;
ctx               211 libavfilter/vf_colorbalance.c static int color_balance16_p(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               213 libavfilter/vf_colorbalance.c     ColorBalanceContext *s = ctx->priv;
ctx               265 libavfilter/vf_colorbalance.c static int color_balance8(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               267 libavfilter/vf_colorbalance.c     ColorBalanceContext *s = ctx->priv;
ctx               271 libavfilter/vf_colorbalance.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               316 libavfilter/vf_colorbalance.c static int color_balance16(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               318 libavfilter/vf_colorbalance.c     ColorBalanceContext *s = ctx->priv;
ctx               322 libavfilter/vf_colorbalance.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               370 libavfilter/vf_colorbalance.c     AVFilterContext *ctx = outlink->src;
ctx               371 libavfilter/vf_colorbalance.c     ColorBalanceContext *s = ctx->priv;
ctx               398 libavfilter/vf_colorbalance.c     AVFilterContext *ctx = inlink->dst;
ctx               399 libavfilter/vf_colorbalance.c     ColorBalanceContext *s = ctx->priv;
ctx               400 libavfilter/vf_colorbalance.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               417 libavfilter/vf_colorbalance.c     ctx->internal->execute(ctx, s->color_balance, &td, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx)));
ctx                51 libavfilter/vf_colorchannelmixer.c     int (*filter_slice)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx                79 libavfilter/vf_colorchannelmixer.c static int query_formats(AVFilterContext *ctx)
ctx               101 libavfilter/vf_colorchannelmixer.c     return ff_set_common_formats(ctx, fmts_list);
ctx               104 libavfilter/vf_colorchannelmixer.c static av_always_inline int filter_slice_rgba_planar(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs,
ctx               107 libavfilter/vf_colorchannelmixer.c     ColorChannelMixerContext *s = ctx->priv;
ctx               163 libavfilter/vf_colorchannelmixer.c static av_always_inline int filter_slice_rgba16_planar(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs,
ctx               166 libavfilter/vf_colorchannelmixer.c     ColorChannelMixerContext *s = ctx->priv;
ctx               222 libavfilter/vf_colorchannelmixer.c static int filter_slice_gbrp(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               224 libavfilter/vf_colorchannelmixer.c     return filter_slice_rgba_planar(ctx, arg, jobnr, nb_jobs, 0);
ctx               227 libavfilter/vf_colorchannelmixer.c static int filter_slice_gbrap(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               229 libavfilter/vf_colorchannelmixer.c     return filter_slice_rgba_planar(ctx, arg, jobnr, nb_jobs, 1);
ctx               232 libavfilter/vf_colorchannelmixer.c static int filter_slice_gbrp9(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               234 libavfilter/vf_colorchannelmixer.c     return filter_slice_rgba16_planar(ctx, arg, jobnr, nb_jobs, 0, 9);
ctx               237 libavfilter/vf_colorchannelmixer.c static int filter_slice_gbrp10(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               239 libavfilter/vf_colorchannelmixer.c     return filter_slice_rgba16_planar(ctx, arg, jobnr, nb_jobs, 0, 10);
ctx               242 libavfilter/vf_colorchannelmixer.c static int filter_slice_gbrap10(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               244 libavfilter/vf_colorchannelmixer.c     return filter_slice_rgba16_planar(ctx, arg, jobnr, nb_jobs, 1, 10);
ctx               247 libavfilter/vf_colorchannelmixer.c static int filter_slice_gbrp12(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               249 libavfilter/vf_colorchannelmixer.c     return filter_slice_rgba16_planar(ctx, arg, jobnr, nb_jobs, 0, 12);
ctx               252 libavfilter/vf_colorchannelmixer.c static int filter_slice_gbrap12(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               254 libavfilter/vf_colorchannelmixer.c     return filter_slice_rgba16_planar(ctx, arg, jobnr, nb_jobs, 1, 12);
ctx               257 libavfilter/vf_colorchannelmixer.c static int filter_slice_gbrp14(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               259 libavfilter/vf_colorchannelmixer.c     return filter_slice_rgba16_planar(ctx, arg, jobnr, nb_jobs, 0, 14);
ctx               262 libavfilter/vf_colorchannelmixer.c static int filter_slice_gbrp16(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               264 libavfilter/vf_colorchannelmixer.c     return filter_slice_rgba16_planar(ctx, arg, jobnr, nb_jobs, 0, 16);
ctx               267 libavfilter/vf_colorchannelmixer.c static int filter_slice_gbrap16(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               269 libavfilter/vf_colorchannelmixer.c     return filter_slice_rgba16_planar(ctx, arg, jobnr, nb_jobs, 1, 16);
ctx               272 libavfilter/vf_colorchannelmixer.c static av_always_inline int filter_slice_rgba_packed(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs,
ctx               275 libavfilter/vf_colorchannelmixer.c     ColorChannelMixerContext *s = ctx->priv;
ctx               327 libavfilter/vf_colorchannelmixer.c static av_always_inline int filter_slice_rgba16_packed(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs,
ctx               330 libavfilter/vf_colorchannelmixer.c     ColorChannelMixerContext *s = ctx->priv;
ctx               381 libavfilter/vf_colorchannelmixer.c static int filter_slice_rgba64(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               383 libavfilter/vf_colorchannelmixer.c     return filter_slice_rgba16_packed(ctx, arg, jobnr, nb_jobs, 1, 4);
ctx               386 libavfilter/vf_colorchannelmixer.c static int filter_slice_rgb48(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               388 libavfilter/vf_colorchannelmixer.c     return filter_slice_rgba16_packed(ctx, arg, jobnr, nb_jobs, 0, 3);
ctx               391 libavfilter/vf_colorchannelmixer.c static int filter_slice_rgba(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               393 libavfilter/vf_colorchannelmixer.c     return filter_slice_rgba_packed(ctx, arg, jobnr, nb_jobs, 1, 4);
ctx               396 libavfilter/vf_colorchannelmixer.c static int filter_slice_rgb24(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               398 libavfilter/vf_colorchannelmixer.c     return filter_slice_rgba_packed(ctx, arg, jobnr, nb_jobs, 0, 3);
ctx               401 libavfilter/vf_colorchannelmixer.c static int filter_slice_rgb0(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               403 libavfilter/vf_colorchannelmixer.c     return filter_slice_rgba_packed(ctx, arg, jobnr, nb_jobs, -1, 4);
ctx               408 libavfilter/vf_colorchannelmixer.c     AVFilterContext *ctx = outlink->src;
ctx               409 libavfilter/vf_colorchannelmixer.c     ColorChannelMixerContext *s = ctx->priv;
ctx               511 libavfilter/vf_colorchannelmixer.c     AVFilterContext *ctx = inlink->dst;
ctx               512 libavfilter/vf_colorchannelmixer.c     ColorChannelMixerContext *s = ctx->priv;
ctx               513 libavfilter/vf_colorchannelmixer.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               530 libavfilter/vf_colorchannelmixer.c     ctx->internal->execute(ctx, s->filter_slice, &td, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx)));
ctx               537 libavfilter/vf_colorchannelmixer.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               540 libavfilter/vf_colorchannelmixer.c     int ret = ff_filter_process_command(ctx, cmd, args, res, res_len, flags);
ctx               545 libavfilter/vf_colorchannelmixer.c     return config_output(ctx->outputs[0]);
ctx               548 libavfilter/vf_colorchannelmixer.c static av_cold void uninit(AVFilterContext *ctx)
ctx               550 libavfilter/vf_colorchannelmixer.c     ColorChannelMixerContext *s = ctx->priv;
ctx               109 libavfilter/vf_colorconstancy.c static int set_gauss(AVFilterContext *ctx)
ctx               111 libavfilter/vf_colorconstancy.c     ColorConstancyContext *s = ctx->priv;
ctx               129 libavfilter/vf_colorconstancy.c     av_log(ctx, AV_LOG_TRACE, "Setting 0-d gauss with filtersize = %d.\n", filtersize);
ctx               144 libavfilter/vf_colorconstancy.c         av_log(ctx, AV_LOG_TRACE, "Setting 1-d gauss with filtersize = %d.\n", filtersize);
ctx               157 libavfilter/vf_colorconstancy.c             av_log(ctx, AV_LOG_TRACE, "Setting 2-d gauss with filtersize = %d.\n", filtersize);
ctx               213 libavfilter/vf_colorconstancy.c static int setup_derivative_buffers(AVFilterContext* ctx, ThreadData *td)
ctx               215 libavfilter/vf_colorconstancy.c     ColorConstancyContext *s = ctx->priv;
ctx               219 libavfilter/vf_colorconstancy.c     av_log(ctx, AV_LOG_TRACE, "Allocating %d buffer(s) for grey edge.\n", nb_buff);
ctx               249 libavfilter/vf_colorconstancy.c static int slice_get_derivative(AVFilterContext* ctx, void* arg, int jobnr, int nb_jobs)
ctx               251 libavfilter/vf_colorconstancy.c     ColorConstancyContext *s = ctx->priv;
ctx               317 libavfilter/vf_colorconstancy.c static int slice_normalize(AVFilterContext* ctx, void* arg, int jobnr, int nb_jobs)
ctx               319 libavfilter/vf_colorconstancy.c     ColorConstancyContext *s = ctx->priv;
ctx               363 libavfilter/vf_colorconstancy.c get_deriv(AVFilterContext *ctx, ThreadData *td, int ord, int dir,
ctx               369 libavfilter/vf_colorconstancy.c     ctx->internal->execute(ctx, slice_get_derivative, td, NULL, FFMIN(dim, nb_threads));
ctx               381 libavfilter/vf_colorconstancy.c static int get_derivative(AVFilterContext *ctx, ThreadData *td)
ctx               383 libavfilter/vf_colorconstancy.c     ColorConstancyContext *s = ctx->priv;
ctx               391 libavfilter/vf_colorconstancy.c             get_deriv(ctx, td, 0, DIR_X, 0         , INDEX_NORM, height, nb_threads);
ctx               393 libavfilter/vf_colorconstancy.c             get_deriv(ctx, td, 0, DIR_X, 0,          INDEX_TEMP, height, nb_threads);
ctx               394 libavfilter/vf_colorconstancy.c             get_deriv(ctx, td, 0, DIR_Y, INDEX_TEMP, INDEX_NORM, width , nb_threads);
ctx               401 libavfilter/vf_colorconstancy.c         get_deriv(ctx, td, 1, DIR_X, 0,          INDEX_TEMP, height, nb_threads);
ctx               402 libavfilter/vf_colorconstancy.c         get_deriv(ctx, td, 0, DIR_Y, INDEX_TEMP, INDEX_DX,   width , nb_threads);
ctx               404 libavfilter/vf_colorconstancy.c         get_deriv(ctx, td, 0, DIR_X, 0,          INDEX_TEMP, height, nb_threads);
ctx               405 libavfilter/vf_colorconstancy.c         get_deriv(ctx, td, 1, DIR_Y, INDEX_TEMP, INDEX_DY,   width , nb_threads);
ctx               409 libavfilter/vf_colorconstancy.c         get_deriv(ctx, td, 2, DIR_X, 0,          INDEX_TEMP, height, nb_threads);
ctx               410 libavfilter/vf_colorconstancy.c         get_deriv(ctx, td, 0, DIR_Y, INDEX_TEMP, INDEX_DX,   width , nb_threads);
ctx               412 libavfilter/vf_colorconstancy.c         get_deriv(ctx, td, 0, DIR_X, 0,          INDEX_TEMP, height, nb_threads);
ctx               413 libavfilter/vf_colorconstancy.c         get_deriv(ctx, td, 2, DIR_Y, INDEX_TEMP, INDEX_DY,   width , nb_threads);
ctx               415 libavfilter/vf_colorconstancy.c         get_deriv(ctx, td, 1, DIR_X, 0,          INDEX_TEMP, height, nb_threads);
ctx               416 libavfilter/vf_colorconstancy.c         get_deriv(ctx, td, 1, DIR_Y, INDEX_TEMP, INDEX_DXY,  width , nb_threads);
ctx               420 libavfilter/vf_colorconstancy.c         av_log(ctx, AV_LOG_ERROR, "Unsupported difford value: %d.\n", s->difford);
ctx               437 libavfilter/vf_colorconstancy.c static int filter_slice_grey_edge(AVFilterContext* ctx, void* arg, int jobnr, int nb_jobs)
ctx               439 libavfilter/vf_colorconstancy.c     ColorConstancyContext *s = ctx->priv;
ctx               486 libavfilter/vf_colorconstancy.c static int filter_grey_edge(AVFilterContext *ctx, AVFrame *in)
ctx               488 libavfilter/vf_colorconstancy.c     ColorConstancyContext *s = ctx->priv;
ctx               497 libavfilter/vf_colorconstancy.c     ret = setup_derivative_buffers(ctx, &td);
ctx               501 libavfilter/vf_colorconstancy.c     get_derivative(ctx, &td);
ctx               503 libavfilter/vf_colorconstancy.c         ctx->internal->execute(ctx, slice_normalize, &td, NULL, nb_jobs);
ctx               506 libavfilter/vf_colorconstancy.c     ctx->internal->execute(ctx, filter_slice_grey_edge, &td, NULL, nb_jobs);
ctx               565 libavfilter/vf_colorconstancy.c static int illumination_estimation(AVFilterContext *ctx, AVFrame *in)
ctx               567 libavfilter/vf_colorconstancy.c     ColorConstancyContext *s = ctx->priv;
ctx               570 libavfilter/vf_colorconstancy.c     ret = filter_grey_edge(ctx, in);
ctx               572 libavfilter/vf_colorconstancy.c     av_log(ctx, AV_LOG_DEBUG, "Estimated illumination= %f %f %f\n",
ctx               575 libavfilter/vf_colorconstancy.c     av_log(ctx, AV_LOG_DEBUG, "Estimated illumination after normalization= %f %f %f\n",
ctx               591 libavfilter/vf_colorconstancy.c static int diagonal_transformation(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               593 libavfilter/vf_colorconstancy.c     ColorConstancyContext *s = ctx->priv;
ctx               626 libavfilter/vf_colorconstancy.c static void chromatic_adaptation(AVFilterContext *ctx, AVFrame *in, AVFrame *out)
ctx               628 libavfilter/vf_colorconstancy.c     ColorConstancyContext *s = ctx->priv;
ctx               634 libavfilter/vf_colorconstancy.c     ctx->internal->execute(ctx, diagonal_transformation, &td, NULL, nb_jobs);
ctx               637 libavfilter/vf_colorconstancy.c static int query_formats(AVFilterContext *ctx)
ctx               646 libavfilter/vf_colorconstancy.c     return ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               651 libavfilter/vf_colorconstancy.c     AVFilterContext *ctx = inlink->dst;
ctx               652 libavfilter/vf_colorconstancy.c     ColorConstancyContext *s = ctx->priv;
ctx               659 libavfilter/vf_colorconstancy.c         av_log(ctx, AV_LOG_ERROR, "floor(%f * sigma) must be > 0 when difford > 0.\n", break_off_sigma);
ctx               664 libavfilter/vf_colorconstancy.c     if (ret=set_gauss(ctx)) {
ctx               668 libavfilter/vf_colorconstancy.c     s->nb_threads = ff_filter_get_nb_threads(ctx);
ctx               679 libavfilter/vf_colorconstancy.c     AVFilterContext *ctx = inlink->dst;
ctx               680 libavfilter/vf_colorconstancy.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               685 libavfilter/vf_colorconstancy.c     ret = illumination_estimation(ctx, in);
ctx               702 libavfilter/vf_colorconstancy.c     chromatic_adaptation(ctx, in, out);
ctx               710 libavfilter/vf_colorconstancy.c static av_cold void uninit(AVFilterContext *ctx)
ctx               712 libavfilter/vf_colorconstancy.c     ColorConstancyContext *s = ctx->priv;
ctx                38 libavfilter/vf_colorkey.c     int (*do_slice)(AVFilterContext *ctx, void *arg,
ctx                42 libavfilter/vf_colorkey.c static uint8_t do_colorkey_pixel(ColorkeyContext *ctx, uint8_t r, uint8_t g, uint8_t b)
ctx                44 libavfilter/vf_colorkey.c     int dr = (int)r - ctx->colorkey_rgba[0];
ctx                45 libavfilter/vf_colorkey.c     int dg = (int)g - ctx->colorkey_rgba[1];
ctx                46 libavfilter/vf_colorkey.c     int db = (int)b - ctx->colorkey_rgba[2];
ctx                50 libavfilter/vf_colorkey.c     if (ctx->blend > 0.0001) {
ctx                51 libavfilter/vf_colorkey.c         return av_clipd((diff - ctx->similarity) / ctx->blend, 0.0, 1.0) * 255.0;
ctx                53 libavfilter/vf_colorkey.c         return (diff > ctx->similarity) ? 255 : 0;
ctx                64 libavfilter/vf_colorkey.c     ColorkeyContext *ctx = avctx->priv;
ctx                72 libavfilter/vf_colorkey.c             frame->data[0][o + ctx->co[3]] =
ctx                73 libavfilter/vf_colorkey.c                 do_colorkey_pixel(ctx,
ctx                74 libavfilter/vf_colorkey.c                                   frame->data[0][o + ctx->co[0]],
ctx                75 libavfilter/vf_colorkey.c                                   frame->data[0][o + ctx->co[1]],
ctx                76 libavfilter/vf_colorkey.c                                   frame->data[0][o + ctx->co[2]]);
ctx                90 libavfilter/vf_colorkey.c     ColorkeyContext *ctx = avctx->priv;
ctx                99 libavfilter/vf_colorkey.c             r = frame->data[0][o + ctx->co[0]];
ctx               100 libavfilter/vf_colorkey.c             g = frame->data[0][o + ctx->co[1]];
ctx               101 libavfilter/vf_colorkey.c             b = frame->data[0][o + ctx->co[2]];
ctx               103 libavfilter/vf_colorkey.c             t = do_colorkey_pixel(ctx, r, g, b);
ctx               109 libavfilter/vf_colorkey.c                 frame->data[0][o + ctx->co[0]] = (a * t + r * rt + 127) >> 8;
ctx               110 libavfilter/vf_colorkey.c                 frame->data[0][o + ctx->co[1]] = (a * t + g * rt + 127) >> 8;
ctx               111 libavfilter/vf_colorkey.c                 frame->data[0][o + ctx->co[2]] = (a * t + b * rt + 127) >> 8;
ctx               121 libavfilter/vf_colorkey.c     ColorkeyContext *ctx = avctx->priv;
ctx               124 libavfilter/vf_colorkey.c         ctx->do_slice = do_colorkey_slice;
ctx               126 libavfilter/vf_colorkey.c         ctx->do_slice = do_colorhold_slice;
ctx               135 libavfilter/vf_colorkey.c     ColorkeyContext *ctx = avctx->priv;
ctx               141 libavfilter/vf_colorkey.c     if (res = avctx->internal->execute(avctx, ctx->do_slice, frame, NULL, FFMIN(frame->height, ff_filter_get_nb_threads(avctx))))
ctx               150 libavfilter/vf_colorkey.c     ColorkeyContext *ctx = avctx->priv;
ctx               159 libavfilter/vf_colorkey.c         ctx->co[i] = desc->comp[i].offset;
ctx                51 libavfilter/vf_colorkey_opencl.c     ColorkeyOpenCLContext *ctx = avctx->priv;
ctx                59 libavfilter/vf_colorkey_opencl.c     ctx->command_queue = clCreateCommandQueue(
ctx                60 libavfilter/vf_colorkey_opencl.c         ctx->ocf.hwctx->context,
ctx                61 libavfilter/vf_colorkey_opencl.c         ctx->ocf.hwctx->device_id,
ctx                68 libavfilter/vf_colorkey_opencl.c     if (ctx->blend > 0.0001) {
ctx                69 libavfilter/vf_colorkey_opencl.c         ctx->kernel_colorkey = clCreateKernel(ctx->ocf.program, "colorkey_blend", &cle);
ctx                72 libavfilter/vf_colorkey_opencl.c         ctx->kernel_colorkey = clCreateKernel(ctx->ocf.program, "colorkey", &cle);
ctx                77 libavfilter/vf_colorkey_opencl.c         ctx->colorkey_rgba_float.s[i] = (float)ctx->colorkey_rgba[i] / 255.0;
ctx                80 libavfilter/vf_colorkey_opencl.c     ctx->initialized = 1;
ctx                84 libavfilter/vf_colorkey_opencl.c     if (ctx->command_queue)
ctx                85 libavfilter/vf_colorkey_opencl.c         clReleaseCommandQueue(ctx->command_queue);
ctx                86 libavfilter/vf_colorkey_opencl.c     if (ctx->kernel_colorkey)
ctx                87 libavfilter/vf_colorkey_opencl.c         clReleaseKernel(ctx->kernel_colorkey);
ctx               182 libavfilter/vf_colorkey_opencl.c     ColorkeyOpenCLContext *ctx = avctx->priv;
ctx               185 libavfilter/vf_colorkey_opencl.c     if (ctx->kernel_colorkey) {
ctx               186 libavfilter/vf_colorkey_opencl.c         cle = clReleaseKernel(ctx->kernel_colorkey);
ctx               192 libavfilter/vf_colorkey_opencl.c     if (ctx->command_queue) {
ctx               193 libavfilter/vf_colorkey_opencl.c         cle = clReleaseCommandQueue(ctx->command_queue);
ctx                74 libavfilter/vf_colorlevels.c static int query_formats(AVFilterContext *ctx)
ctx                90 libavfilter/vf_colorlevels.c     return ff_set_common_formats(ctx, fmts_list);
ctx                95 libavfilter/vf_colorlevels.c     AVFilterContext *ctx = inlink->dst;
ctx                96 libavfilter/vf_colorlevels.c     ColorLevelsContext *s = ctx->priv;
ctx               124 libavfilter/vf_colorlevels.c     ColorLevelsContext *s = ctx->priv;\
ctx               140 libavfilter/vf_colorlevels.c static int colorlevel_slice_8(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               155 libavfilter/vf_colorlevels.c static int colorlevel_slice_16(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               172 libavfilter/vf_colorlevels.c     AVFilterContext *ctx = inlink->dst;
ctx               173 libavfilter/vf_colorlevels.c     ColorLevelsContext *s = ctx->priv;
ctx               174 libavfilter/vf_colorlevels.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               239 libavfilter/vf_colorlevels.c             ctx->internal->execute(ctx, colorlevel_slice_8, &td, NULL,
ctx               240 libavfilter/vf_colorlevels.c                                    FFMIN(inlink->h, ff_filter_get_nb_threads(ctx)));
ctx               291 libavfilter/vf_colorlevels.c             ctx->internal->execute(ctx, colorlevel_slice_16, &td, NULL,
ctx               292 libavfilter/vf_colorlevels.c                                    FFMIN(inlink->h, ff_filter_get_nb_threads(ctx)));
ctx               143 libavfilter/vf_colormatrix.c static void calc_coefficients(AVFilterContext *ctx)
ctx               145 libavfilter/vf_colormatrix.c     ColorMatrixContext *color = ctx->priv;
ctx               177 libavfilter/vf_colormatrix.c                 av_log(ctx, AV_LOG_ERROR, "error calculating conversion coefficients\n");
ctx               186 libavfilter/vf_colormatrix.c static av_cold int init(AVFilterContext *ctx)
ctx               188 libavfilter/vf_colormatrix.c     ColorMatrixContext *color = ctx->priv;
ctx               191 libavfilter/vf_colormatrix.c         av_log(ctx, AV_LOG_ERROR, "Unspecified destination color space\n");
ctx               196 libavfilter/vf_colormatrix.c         av_log(ctx, AV_LOG_ERROR, "Source and destination color space must not be identical\n");
ctx               200 libavfilter/vf_colormatrix.c     calc_coefficients(ctx);
ctx               205 libavfilter/vf_colormatrix.c static int process_slice_uyvy422(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               243 libavfilter/vf_colormatrix.c static int process_slice_yuv444p(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               290 libavfilter/vf_colormatrix.c static int process_slice_yuv422p(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               338 libavfilter/vf_colormatrix.c static int process_slice_yuv420p(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               394 libavfilter/vf_colormatrix.c     AVFilterContext *ctx = inlink->dst;
ctx               395 libavfilter/vf_colormatrix.c     ColorMatrixContext *color = ctx->priv;
ctx               401 libavfilter/vf_colormatrix.c     av_log(ctx, AV_LOG_VERBOSE, "%s -> %s\n",
ctx               407 libavfilter/vf_colormatrix.c static int query_formats(AVFilterContext *ctx)
ctx               419 libavfilter/vf_colormatrix.c     return ff_set_common_formats(ctx, fmts_list);
ctx               424 libavfilter/vf_colormatrix.c     AVFilterContext *ctx = link->dst;
ctx               425 libavfilter/vf_colormatrix.c     ColorMatrixContext *color = ctx->priv;
ctx               426 libavfilter/vf_colormatrix.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               450 libavfilter/vf_colormatrix.c             av_log(ctx, AV_LOG_ERROR, "Input frame does not specify a supported colorspace, and none has been specified as source either\n");
ctx               476 libavfilter/vf_colormatrix.c         ctx->internal->execute(ctx, process_slice_yuv444p, &td, NULL,
ctx               477 libavfilter/vf_colormatrix.c                                FFMIN(in->height, ff_filter_get_nb_threads(ctx)));
ctx               479 libavfilter/vf_colormatrix.c         ctx->internal->execute(ctx, process_slice_yuv422p, &td, NULL,
ctx               480 libavfilter/vf_colormatrix.c                                FFMIN(in->height, ff_filter_get_nb_threads(ctx)));
ctx               482 libavfilter/vf_colormatrix.c         ctx->internal->execute(ctx, process_slice_yuv420p, &td, NULL,
ctx               483 libavfilter/vf_colormatrix.c                                FFMIN(in->height / 2, ff_filter_get_nb_threads(ctx)));
ctx               485 libavfilter/vf_colormatrix.c         ctx->internal->execute(ctx, process_slice_uyvy422, &td, NULL,
ctx               486 libavfilter/vf_colormatrix.c                                FFMIN(in->height, ff_filter_get_nb_threads(ctx)));
ctx               340 libavfilter/vf_colorspace.c static int convert(AVFilterContext *ctx, void *data, int job_nr, int n_jobs)
ctx               343 libavfilter/vf_colorspace.c     ColorSpaceContext *s = ctx->priv;
ctx               410 libavfilter/vf_colorspace.c static int get_range_off(AVFilterContext *ctx, int *off,
ctx               416 libavfilter/vf_colorspace.c         ColorSpaceContext *s = ctx->priv;
ctx               419 libavfilter/vf_colorspace.c             av_log(ctx, AV_LOG_WARNING, "Input range not set, assuming tv/mpeg\n");
ctx               440 libavfilter/vf_colorspace.c static int create_filtergraph(AVFilterContext *ctx,
ctx               443 libavfilter/vf_colorspace.c     ColorSpaceContext *s = ctx->priv;
ctx               458 libavfilter/vf_colorspace.c         av_log(ctx, AV_LOG_ERROR,
ctx               465 libavfilter/vf_colorspace.c         av_log(ctx, AV_LOG_ERROR,
ctx               489 libavfilter/vf_colorspace.c             av_log(ctx, AV_LOG_ERROR,
ctx               499 libavfilter/vf_colorspace.c                     av_log(ctx, AV_LOG_ERROR, "Please specify output primaries\n");
ctx               501 libavfilter/vf_colorspace.c                     av_log(ctx, AV_LOG_ERROR,
ctx               505 libavfilter/vf_colorspace.c                 av_log(ctx, AV_LOG_ERROR,
ctx               553 libavfilter/vf_colorspace.c             av_log(ctx, AV_LOG_ERROR,
ctx               567 libavfilter/vf_colorspace.c                     av_log(ctx, AV_LOG_ERROR,
ctx               570 libavfilter/vf_colorspace.c                     av_log(ctx, AV_LOG_ERROR,
ctx               574 libavfilter/vf_colorspace.c                 av_log(ctx, AV_LOG_ERROR,
ctx               602 libavfilter/vf_colorspace.c             av_log(ctx, AV_LOG_ERROR,
ctx               617 libavfilter/vf_colorspace.c                     av_log(ctx, AV_LOG_ERROR,
ctx               620 libavfilter/vf_colorspace.c                     av_log(ctx, AV_LOG_ERROR,
ctx               624 libavfilter/vf_colorspace.c                 av_log(ctx, AV_LOG_ERROR,
ctx               645 libavfilter/vf_colorspace.c             res = get_range_off(ctx, &off, &s->in_y_rng, &s->in_uv_rng,
ctx               648 libavfilter/vf_colorspace.c                 av_log(ctx, AV_LOG_ERROR,
ctx               678 libavfilter/vf_colorspace.c             res = get_range_off(ctx, &off, &s->out_y_rng, &s->out_uv_rng,
ctx               681 libavfilter/vf_colorspace.c                 av_log(ctx, AV_LOG_ERROR,
ctx               735 libavfilter/vf_colorspace.c static av_cold int init(AVFilterContext *ctx)
ctx               737 libavfilter/vf_colorspace.c     ColorSpaceContext *s = ctx->priv;
ctx               744 libavfilter/vf_colorspace.c static void uninit(AVFilterContext *ctx)
ctx               746 libavfilter/vf_colorspace.c     ColorSpaceContext *s = ctx->priv;
ctx               764 libavfilter/vf_colorspace.c     AVFilterContext *ctx = link->dst;
ctx               765 libavfilter/vf_colorspace.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               766 libavfilter/vf_colorspace.c     ColorSpaceContext *s = ctx->priv;
ctx               842 libavfilter/vf_colorspace.c             uninit(ctx);
ctx               849 libavfilter/vf_colorspace.c     res = create_filtergraph(ctx, in, out);
ctx               874 libavfilter/vf_colorspace.c         ctx->internal->execute(ctx, convert, &td, NULL,
ctx               875 libavfilter/vf_colorspace.c                                FFMIN((in->height + 1) >> 1, ff_filter_get_nb_threads(ctx)));
ctx               882 libavfilter/vf_colorspace.c static int query_formats(AVFilterContext *ctx)
ctx               892 libavfilter/vf_colorspace.c     ColorSpaceContext *s = ctx->priv;
ctx               898 libavfilter/vf_colorspace.c         return ff_set_common_formats(ctx, formats);
ctx               899 libavfilter/vf_colorspace.c     res = ff_formats_ref(formats, &ctx->inputs[0]->out_formats);
ctx               907 libavfilter/vf_colorspace.c     return ff_formats_ref(formats, &ctx->outputs[0]->in_formats);
ctx               912 libavfilter/vf_colorspace.c     AVFilterContext *ctx = outlink->dst;
ctx               916 libavfilter/vf_colorspace.c         av_log(ctx, AV_LOG_ERROR, "Invalid odd size (%dx%d)\n",
ctx                79 libavfilter/vf_convolution.c static int query_formats(AVFilterContext *ctx)
ctx               103 libavfilter/vf_convolution.c     return ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               485 libavfilter/vf_convolution.c static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               487 libavfilter/vf_convolution.c     ConvolutionContext *s = ctx->priv;
ctx               560 libavfilter/vf_convolution.c     AVFilterContext *ctx = inlink->dst;
ctx               561 libavfilter/vf_convolution.c     ConvolutionContext *s = ctx->priv;
ctx               574 libavfilter/vf_convolution.c     s->nb_threads = ff_filter_get_nb_threads(ctx);
ctx               577 libavfilter/vf_convolution.c     if (!strcmp(ctx->filter->name, "convolution")) {
ctx               595 libavfilter/vf_convolution.c     } else if (!strcmp(ctx->filter->name, "prewitt")) {
ctx               599 libavfilter/vf_convolution.c     } else if (!strcmp(ctx->filter->name, "roberts")) {
ctx               603 libavfilter/vf_convolution.c     } else if (!strcmp(ctx->filter->name, "sobel")) {
ctx               614 libavfilter/vf_convolution.c     AVFilterContext *ctx = inlink->dst;
ctx               615 libavfilter/vf_convolution.c     ConvolutionContext *s = ctx->priv;
ctx               616 libavfilter/vf_convolution.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               629 libavfilter/vf_convolution.c     ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN3(s->planeheight[1], s->planewidth[1], s->nb_threads));
ctx               635 libavfilter/vf_convolution.c static av_cold int init(AVFilterContext *ctx)
ctx               637 libavfilter/vf_convolution.c     ConvolutionContext *s = ctx->priv;
ctx               640 libavfilter/vf_convolution.c     if (!strcmp(ctx->filter->name, "convolution")) {
ctx               658 libavfilter/vf_convolution.c                 av_log(ctx, AV_LOG_ERROR, "number of matrix elements must be odd\n");
ctx               702 libavfilter/vf_convolution.c     } else if (!strcmp(ctx->filter->name, "prewitt")) {
ctx               713 libavfilter/vf_convolution.c     } else if (!strcmp(ctx->filter->name, "roberts")) {
ctx               724 libavfilter/vf_convolution.c     } else if (!strcmp(ctx->filter->name, "sobel")) {
ctx                58 libavfilter/vf_convolution_opencl.c     ConvolutionOpenCLContext *ctx = avctx->priv;
ctx                67 libavfilter/vf_convolution_opencl.c     ctx->command_queue = clCreateCommandQueue(ctx->ocf.hwctx->context,
ctx                68 libavfilter/vf_convolution_opencl.c                                               ctx->ocf.hwctx->device_id,
ctx                82 libavfilter/vf_convolution_opencl.c     ctx->kernel = clCreateKernel(ctx->ocf.program, kernel_name, &cle);
ctx                86 libavfilter/vf_convolution_opencl.c     ctx->initialised = 1;
ctx                90 libavfilter/vf_convolution_opencl.c     if (ctx->command_queue)
ctx                91 libavfilter/vf_convolution_opencl.c         clReleaseCommandQueue(ctx->command_queue);
ctx                92 libavfilter/vf_convolution_opencl.c     if (ctx->kernel)
ctx                93 libavfilter/vf_convolution_opencl.c         clReleaseKernel(ctx->kernel);
ctx               101 libavfilter/vf_convolution_opencl.c     ConvolutionOpenCLContext *ctx = avctx->priv;
ctx               112 libavfilter/vf_convolution_opencl.c         ctx->biases[i] = ctx->biases[i] / 255.0;
ctx               116 libavfilter/vf_convolution_opencl.c         p = ctx->matrix_str[i];
ctx               117 libavfilter/vf_convolution_opencl.c         while (ctx->matrix_sizes[i] < 49) {
ctx               123 libavfilter/vf_convolution_opencl.c             sscanf_err = sscanf(arg, "%f", &input_matrix[i][ctx->matrix_sizes[i]]);
ctx               125 libavfilter/vf_convolution_opencl.c                 av_log(ctx, AV_LOG_ERROR, "Matrix is sequence of 9, 25 or 49 signed numbers\n");
ctx               128 libavfilter/vf_convolution_opencl.c             ctx->matrix_sizes[i]++;
ctx               130 libavfilter/vf_convolution_opencl.c         if (ctx->matrix_sizes[i] == 9) {
ctx               131 libavfilter/vf_convolution_opencl.c             ctx->dims[i] = 3;
ctx               132 libavfilter/vf_convolution_opencl.c         } else if (ctx->matrix_sizes[i] == 25) {
ctx               133 libavfilter/vf_convolution_opencl.c             ctx->dims[i] = 5;
ctx               134 libavfilter/vf_convolution_opencl.c         } else if (ctx->matrix_sizes[i] == 49) {
ctx               135 libavfilter/vf_convolution_opencl.c             ctx->dims[i] = 7;
ctx               137 libavfilter/vf_convolution_opencl.c             av_log(ctx, AV_LOG_ERROR, "Invalid matrix size:%d\n", ctx->matrix_sizes[i]);
ctx               144 libavfilter/vf_convolution_opencl.c         matrix_bytes = sizeof(float)*ctx->matrix_sizes[j];
ctx               151 libavfilter/vf_convolution_opencl.c         for (i = 0; i < ctx->matrix_sizes[j]; i++)
ctx               154 libavfilter/vf_convolution_opencl.c         buffer = clCreateBuffer(ctx->ocf.hwctx->context,
ctx               165 libavfilter/vf_convolution_opencl.c         ctx->matrix[j] = buffer;
ctx               176 libavfilter/vf_convolution_opencl.c     ConvolutionOpenCLContext *ctx = avctx->priv;
ctx               185 libavfilter/vf_convolution_opencl.c     av_log(ctx, AV_LOG_DEBUG, "Filter input: %s, %ux%u (%"PRId64").\n",
ctx               192 libavfilter/vf_convolution_opencl.c     if (!ctx->initialised) {
ctx               202 libavfilter/vf_convolution_opencl.c             ctx->delta /= 255.0;
ctx               221 libavfilter/vf_convolution_opencl.c             CL_SET_KERNEL_ARG(ctx->kernel, 0, cl_mem,   &dst);
ctx               222 libavfilter/vf_convolution_opencl.c             CL_SET_KERNEL_ARG(ctx->kernel, 1, cl_mem,   &src);
ctx               223 libavfilter/vf_convolution_opencl.c             CL_SET_KERNEL_ARG(ctx->kernel, 2, cl_int,   &ctx->dims[p]);
ctx               224 libavfilter/vf_convolution_opencl.c             CL_SET_KERNEL_ARG(ctx->kernel, 3, cl_mem,   &ctx->matrix[p]);
ctx               225 libavfilter/vf_convolution_opencl.c             CL_SET_KERNEL_ARG(ctx->kernel, 4, cl_float, &ctx->rdivs[p]);
ctx               226 libavfilter/vf_convolution_opencl.c             CL_SET_KERNEL_ARG(ctx->kernel, 5, cl_float, &ctx->biases[p]);
ctx               236 libavfilter/vf_convolution_opencl.c             cle = clEnqueueNDRangeKernel(ctx->command_queue, ctx->kernel, 2, NULL,
ctx               242 libavfilter/vf_convolution_opencl.c             if (!(ctx->planes & (1 << p))) {
ctx               247 libavfilter/vf_convolution_opencl.c                 cle = clEnqueueCopyImage(ctx->command_queue, src, dst,
ctx               252 libavfilter/vf_convolution_opencl.c                 CL_SET_KERNEL_ARG(ctx->kernel, 0, cl_mem,   &dst);
ctx               253 libavfilter/vf_convolution_opencl.c                 CL_SET_KERNEL_ARG(ctx->kernel, 1, cl_mem,   &src);
ctx               254 libavfilter/vf_convolution_opencl.c                 CL_SET_KERNEL_ARG(ctx->kernel, 2, cl_float, &ctx->scale);
ctx               255 libavfilter/vf_convolution_opencl.c                 CL_SET_KERNEL_ARG(ctx->kernel, 3, cl_float, &ctx->delta);
ctx               265 libavfilter/vf_convolution_opencl.c                 cle = clEnqueueNDRangeKernel(ctx->command_queue, ctx->kernel, 2, NULL,
ctx               274 libavfilter/vf_convolution_opencl.c     cle = clFinish(ctx->command_queue);
ctx               283 libavfilter/vf_convolution_opencl.c     av_log(ctx, AV_LOG_DEBUG, "Filter output: %s, %ux%u (%"PRId64").\n",
ctx               290 libavfilter/vf_convolution_opencl.c     clFinish(ctx->command_queue);
ctx               298 libavfilter/vf_convolution_opencl.c     ConvolutionOpenCLContext *ctx = avctx->priv;
ctx               303 libavfilter/vf_convolution_opencl.c         clReleaseMemObject(ctx->matrix[i]);
ctx               306 libavfilter/vf_convolution_opencl.c     if (ctx->kernel) {
ctx               307 libavfilter/vf_convolution_opencl.c         cle = clReleaseKernel(ctx->kernel);
ctx               313 libavfilter/vf_convolution_opencl.c     if (ctx->command_queue) {
ctx               314 libavfilter/vf_convolution_opencl.c         cle = clReleaseCommandQueue(ctx->command_queue);
ctx                60 libavfilter/vf_convolve.c     int (*filter)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx                75 libavfilter/vf_convolve.c static int query_formats(AVFilterContext *ctx)
ctx               101 libavfilter/vf_convolve.c     return ff_set_common_formats(ctx, fmts_list);
ctx               146 libavfilter/vf_convolve.c     AVFilterContext *ctx  = inlink->dst;
ctx               148 libavfilter/vf_convolve.c     if (ctx->inputs[0]->w != ctx->inputs[1]->w ||
ctx               149 libavfilter/vf_convolve.c         ctx->inputs[0]->h != ctx->inputs[1]->h) {
ctx               150 libavfilter/vf_convolve.c         av_log(ctx, AV_LOG_ERROR, "Width and height of input videos must be same.\n");
ctx               153 libavfilter/vf_convolve.c     if (ctx->inputs[0]->format != ctx->inputs[1]->format) {
ctx               154 libavfilter/vf_convolve.c         av_log(ctx, AV_LOG_ERROR, "Inputs must be of same pixel format.\n");
ctx               166 libavfilter/vf_convolve.c static int fft_horizontal(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               168 libavfilter/vf_convolve.c     ConvolveContext *s = ctx->priv;
ctx               260 libavfilter/vf_convolve.c static int fft_vertical(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               262 libavfilter/vf_convolve.c     ConvolveContext *s = ctx->priv;
ctx               285 libavfilter/vf_convolve.c static int ifft_vertical(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               287 libavfilter/vf_convolve.c     ConvolveContext *s = ctx->priv;
ctx               310 libavfilter/vf_convolve.c static int ifft_horizontal(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               312 libavfilter/vf_convolve.c     ConvolveContext *s = ctx->priv;
ctx               382 libavfilter/vf_convolve.c static int complex_multiply(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               384 libavfilter/vf_convolve.c     ConvolveContext *s = ctx->priv;
ctx               413 libavfilter/vf_convolve.c static int complex_divide(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               415 libavfilter/vf_convolve.c     ConvolveContext *s = ctx->priv;
ctx               447 libavfilter/vf_convolve.c     AVFilterContext *ctx = fs->parent;
ctx               448 libavfilter/vf_convolve.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               449 libavfilter/vf_convolve.c     ConvolveContext *s = ctx->priv;
ctx               478 libavfilter/vf_convolve.c         ctx->internal->execute(ctx, fft_horizontal, &td, NULL, FFMIN3(MAX_THREADS, n, ff_filter_get_nb_threads(ctx)));
ctx               479 libavfilter/vf_convolve.c         ctx->internal->execute(ctx, fft_vertical, &td, NULL, FFMIN3(MAX_THREADS, n, ff_filter_get_nb_threads(ctx)));
ctx               504 libavfilter/vf_convolve.c             ctx->internal->execute(ctx, fft_horizontal, &td, NULL, FFMIN3(MAX_THREADS, n, ff_filter_get_nb_threads(ctx)));
ctx               505 libavfilter/vf_convolve.c             ctx->internal->execute(ctx, fft_vertical, &td, NULL, FFMIN3(MAX_THREADS, n, ff_filter_get_nb_threads(ctx)));
ctx               513 libavfilter/vf_convolve.c         ctx->internal->execute(ctx, s->filter, &td, NULL, FFMIN3(MAX_THREADS, n, ff_filter_get_nb_threads(ctx)));
ctx               518 libavfilter/vf_convolve.c         ctx->internal->execute(ctx, ifft_vertical, &td, NULL, FFMIN3(MAX_THREADS, n, ff_filter_get_nb_threads(ctx)));
ctx               519 libavfilter/vf_convolve.c         ctx->internal->execute(ctx, ifft_horizontal, &td, NULL, FFMIN3(MAX_THREADS, n, ff_filter_get_nb_threads(ctx)));
ctx               529 libavfilter/vf_convolve.c     AVFilterContext *ctx = outlink->src;
ctx               530 libavfilter/vf_convolve.c     ConvolveContext *s = ctx->priv;
ctx               531 libavfilter/vf_convolve.c     AVFilterLink *mainlink = ctx->inputs[0];
ctx               535 libavfilter/vf_convolve.c     ret = ff_framesync_init_dualinput(&s->fs, ctx);
ctx               559 libavfilter/vf_convolve.c static int activate(AVFilterContext *ctx)
ctx               561 libavfilter/vf_convolve.c     ConvolveContext *s = ctx->priv;
ctx               565 libavfilter/vf_convolve.c static av_cold int init(AVFilterContext *ctx)
ctx               567 libavfilter/vf_convolve.c     ConvolveContext *s = ctx->priv;
ctx               569 libavfilter/vf_convolve.c     if (!strcmp(ctx->filter->name, "convolve")) {
ctx               571 libavfilter/vf_convolve.c     } else if (!strcmp(ctx->filter->name, "deconvolve")) {
ctx               580 libavfilter/vf_convolve.c static av_cold void uninit(AVFilterContext *ctx)
ctx               582 libavfilter/vf_convolve.c     ConvolveContext *s = ctx->priv;
ctx                30 libavfilter/vf_copy.c static int query_formats(AVFilterContext *ctx)
ctx                44 libavfilter/vf_copy.c     return ff_set_common_formats(ctx, formats);
ctx                58 libavfilter/vf_cover_rect.c static int query_formats(AVFilterContext *ctx)
ctx                66 libavfilter/vf_cover_rect.c     return ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               137 libavfilter/vf_cover_rect.c     AVFilterContext *ctx = inlink->dst;
ctx               138 libavfilter/vf_cover_rect.c     CoverContext *cover = ctx->priv;
ctx               157 libavfilter/vf_cover_rect.c         return ff_filter_frame(ctx->outputs[0], in);
ctx               192 libavfilter/vf_cover_rect.c     return ff_filter_frame(ctx->outputs[0], in);
ctx               195 libavfilter/vf_cover_rect.c static av_cold void uninit(AVFilterContext *ctx)
ctx               197 libavfilter/vf_cover_rect.c     CoverContext *cover = ctx->priv;
ctx               204 libavfilter/vf_cover_rect.c static av_cold int init(AVFilterContext *ctx)
ctx               206 libavfilter/vf_cover_rect.c     CoverContext *cover = ctx->priv;
ctx               211 libavfilter/vf_cover_rect.c             av_log(ctx, AV_LOG_ERROR, "cover filename not set\n");
ctx               221 libavfilter/vf_cover_rect.c                                 &cover->cover_frame->format, cover->cover_filename, ctx)) < 0)
ctx               225 libavfilter/vf_cover_rect.c             av_log(ctx, AV_LOG_ERROR, "cover image is not a YUV420 image\n");
ctx                94 libavfilter/vf_crop.c static int query_formats(AVFilterContext *ctx)
ctx               102 libavfilter/vf_crop.c     return ff_set_common_formats(ctx, formats);
ctx               105 libavfilter/vf_crop.c static av_cold void uninit(AVFilterContext *ctx)
ctx               107 libavfilter/vf_crop.c     CropContext *s = ctx->priv;
ctx               132 libavfilter/vf_crop.c     AVFilterContext *ctx = link->dst;
ctx               133 libavfilter/vf_crop.c     CropContext *s = ctx->priv;
ctx               139 libavfilter/vf_crop.c     s->var_values[VAR_IN_W]  = s->var_values[VAR_IW] = ctx->inputs[0]->w;
ctx               140 libavfilter/vf_crop.c     s->var_values[VAR_IN_H]  = s->var_values[VAR_IH] = ctx->inputs[0]->h;
ctx               166 libavfilter/vf_crop.c                            NULL, NULL, NULL, NULL, NULL, 0, ctx);
ctx               170 libavfilter/vf_crop.c                                       NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               176 libavfilter/vf_crop.c                                       NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               182 libavfilter/vf_crop.c         av_log(ctx, AV_LOG_ERROR,
ctx               198 libavfilter/vf_crop.c                              NULL, NULL, NULL, NULL, 0, ctx)) < 0 ||
ctx               200 libavfilter/vf_crop.c                              NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               211 libavfilter/vf_crop.c     av_log(ctx, AV_LOG_VERBOSE, "w:%d h:%d sar:%d/%d -> w:%d h:%d sar:%d/%d\n",
ctx               217 libavfilter/vf_crop.c         av_log(ctx, AV_LOG_ERROR,
ctx               233 libavfilter/vf_crop.c     av_log(ctx, AV_LOG_ERROR, "Error when evaluating the expression '%s'\n", expr);
ctx               256 libavfilter/vf_crop.c     AVFilterContext *ctx = link->dst;
ctx               257 libavfilter/vf_crop.c     CropContext *s = ctx->priv;
ctx               287 libavfilter/vf_crop.c     av_log(ctx, AV_LOG_TRACE, "n:%d t:%f pos:%f x:%d y:%d x+w:%d y+h:%d\n",
ctx               322 libavfilter/vf_crop.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               325 libavfilter/vf_crop.c     CropContext *s = ctx->priv;
ctx               337 libavfilter/vf_crop.c         AVFilterLink *outlink = ctx->outputs[0];
ctx               338 libavfilter/vf_crop.c         AVFilterLink *inlink  = ctx->inputs[0];
ctx                46 libavfilter/vf_cropdetect.c static int query_formats(AVFilterContext *ctx)
ctx                68 libavfilter/vf_cropdetect.c     return ff_set_common_formats(ctx, fmts_list);
ctx                71 libavfilter/vf_cropdetect.c static int checkline(void *ctx, const unsigned char *src, int stride, int len, int bpp)
ctx               122 libavfilter/vf_cropdetect.c     av_log(ctx, AV_LOG_DEBUG, "total:%d\n", total);
ctx               126 libavfilter/vf_cropdetect.c static av_cold int init(AVFilterContext *ctx)
ctx               128 libavfilter/vf_cropdetect.c     CropDetectContext *s = ctx->priv;
ctx               132 libavfilter/vf_cropdetect.c     av_log(ctx, AV_LOG_VERBOSE, "limit:%f round:%d reset_count:%d\n",
ctx               140 libavfilter/vf_cropdetect.c     AVFilterContext *ctx = inlink->dst;
ctx               141 libavfilter/vf_cropdetect.c     CropDetectContext *s = ctx->priv;
ctx               162 libavfilter/vf_cropdetect.c     AVFilterContext *ctx = inlink->dst;
ctx               163 libavfilter/vf_cropdetect.c     CropDetectContext *s = ctx->priv;
ctx               186 libavfilter/vf_cropdetect.c             if (checkline(ctx, frame->data[0] + STEP0 * y, STEP1, LEN, bpp) > limit) {\
ctx               233 libavfilter/vf_cropdetect.c         av_log(ctx, AV_LOG_INFO,
ctx                75 libavfilter/vf_curves.c     int (*filter_slice)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx               155 libavfilter/vf_curves.c static int parse_points_str(AVFilterContext *ctx, struct keypoint **points, const char *s,
ctx               170 libavfilter/vf_curves.c             av_log(ctx, AV_LOG_ERROR, "Invalid key point coordinates (%f;%f), "
ctx               178 libavfilter/vf_curves.c                 av_log(ctx, AV_LOG_ERROR, "Key point coordinates (%f;%f) "
ctx               190 libavfilter/vf_curves.c         av_log(ctx, AV_LOG_WARNING, "Only one point (at (%f;%f)) is defined, "
ctx               353 libavfilter/vf_curves.c static int parse_psfile(AVFilterContext *ctx, const char *fname)
ctx               355 libavfilter/vf_curves.c     CurvesContext *curves = ctx->priv;
ctx               394 libavfilter/vf_curves.c                 av_log(ctx, AV_LOG_DEBUG, "curves %d (intid=%d) [%d points]: [%s]\n",
ctx               470 libavfilter/vf_curves.c static av_cold int curves_init(AVFilterContext *ctx)
ctx               473 libavfilter/vf_curves.c     CurvesContext *curves = ctx->priv;
ctx               490 libavfilter/vf_curves.c         ret = parse_psfile(ctx, curves->psfile);
ctx               512 libavfilter/vf_curves.c static int query_formats(AVFilterContext *ctx)
ctx               533 libavfilter/vf_curves.c     return ff_set_common_formats(ctx, fmts_list);
ctx               536 libavfilter/vf_curves.c static int filter_slice_packed(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               539 libavfilter/vf_curves.c     const CurvesContext *curves = ctx->priv;
ctx               584 libavfilter/vf_curves.c static int filter_slice_planar(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               587 libavfilter/vf_curves.c     const CurvesContext *curves = ctx->priv;
ctx               653 libavfilter/vf_curves.c     AVFilterContext *ctx = inlink->dst;
ctx               654 libavfilter/vf_curves.c     CurvesContext *curves = ctx->priv;
ctx               670 libavfilter/vf_curves.c         ret = parse_points_str(ctx, comp_points + i, curves->comp_points_str[i], curves->lut_size);
ctx               674 libavfilter/vf_curves.c         case  8: ret = interpolate8 (ctx, curves->graph[i], comp_points[i]); break;
ctx               675 libavfilter/vf_curves.c         case  9: ret = interpolate9 (ctx, curves->graph[i], comp_points[i]); break;
ctx               676 libavfilter/vf_curves.c         case 10: ret = interpolate10(ctx, curves->graph[i], comp_points[i]); break;
ctx               677 libavfilter/vf_curves.c         case 12: ret = interpolate12(ctx, curves->graph[i], comp_points[i]); break;
ctx               678 libavfilter/vf_curves.c         case 14: ret = interpolate14(ctx, curves->graph[i], comp_points[i]); break;
ctx               679 libavfilter/vf_curves.c         case 16: ret = interpolate16(ctx, curves->graph[i], comp_points[i]); break;
ctx               694 libavfilter/vf_curves.c             av_log(ctx, AV_LOG_VERBOSE, "#%d points:", i);
ctx               696 libavfilter/vf_curves.c                 av_log(ctx, AV_LOG_VERBOSE, " (%f;%f)", point->x, point->y);
ctx               719 libavfilter/vf_curves.c     AVFilterContext *ctx = inlink->dst;
ctx               720 libavfilter/vf_curves.c     CurvesContext *curves = ctx->priv;
ctx               721 libavfilter/vf_curves.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               738 libavfilter/vf_curves.c     ctx->internal->execute(ctx, curves->filter_slice, &td, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx)));
ctx               746 libavfilter/vf_curves.c static av_cold void curves_uninit(AVFilterContext *ctx)
ctx               749 libavfilter/vf_curves.c     CurvesContext *curves = ctx->priv;
ctx                53 libavfilter/vf_datascope.c     int (*filter)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx                79 libavfilter/vf_datascope.c static int query_formats(AVFilterContext *ctx)
ctx                81 libavfilter/vf_datascope.c     return ff_set_common_formats(ctx, ff_draw_supported_pixel_formats(0));
ctx               175 libavfilter/vf_datascope.c static int filter_color2(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               177 libavfilter/vf_datascope.c     DatascopeContext *s = ctx->priv;
ctx               178 libavfilter/vf_datascope.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               179 libavfilter/vf_datascope.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               218 libavfilter/vf_datascope.c static int filter_color(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               220 libavfilter/vf_datascope.c     DatascopeContext *s = ctx->priv;
ctx               221 libavfilter/vf_datascope.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               222 libavfilter/vf_datascope.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               257 libavfilter/vf_datascope.c static int filter_mono(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               259 libavfilter/vf_datascope.c     DatascopeContext *s = ctx->priv;
ctx               260 libavfilter/vf_datascope.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               261 libavfilter/vf_datascope.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               297 libavfilter/vf_datascope.c     AVFilterContext *ctx  = inlink->dst;
ctx               298 libavfilter/vf_datascope.c     DatascopeContext *s = ctx->priv;
ctx               299 libavfilter/vf_datascope.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               353 libavfilter/vf_datascope.c     ctx->internal->execute(ctx, s->filter, &td, NULL, FFMIN(ff_filter_get_nb_threads(ctx), FFMAX(outlink->w / 20, 1)));
ctx               535 libavfilter/vf_datascope.c     AVFilterContext *ctx  = inlink->dst;
ctx               536 libavfilter/vf_datascope.c     PixscopeContext *s = ctx->priv;
ctx               537 libavfilter/vf_datascope.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               774 libavfilter/vf_datascope.c static void oscilloscope_uninit(AVFilterContext *ctx)
ctx               776 libavfilter/vf_datascope.c     OscilloscopeContext *s = ctx->priv;
ctx               866 libavfilter/vf_datascope.c static void update_oscilloscope(AVFilterContext *ctx)
ctx               868 libavfilter/vf_datascope.c     OscilloscopeContext *s = ctx->priv;
ctx               869 libavfilter/vf_datascope.c     AVFilterLink *inlink = ctx->inputs[0];
ctx              1005 libavfilter/vf_datascope.c     AVFilterContext *ctx  = inlink->dst;
ctx              1006 libavfilter/vf_datascope.c     OscilloscopeContext *s = ctx->priv;
ctx              1007 libavfilter/vf_datascope.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              1068 libavfilter/vf_datascope.c static int oscilloscope_process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx              1073 libavfilter/vf_datascope.c     ret = ff_filter_process_command(ctx, cmd, args, res, res_len, flags);
ctx              1077 libavfilter/vf_datascope.c     update_oscilloscope(ctx);
ctx                60 libavfilter/vf_dblur.c static int filter_horizontally(AVFilterContext *ctx, int width, int height)
ctx                62 libavfilter/vf_dblur.c     DBlurContext *s = ctx->priv;
ctx               107 libavfilter/vf_dblur.c static void diriir2d(AVFilterContext *ctx, int plane)
ctx               109 libavfilter/vf_dblur.c     DBlurContext *s = ctx->priv;
ctx               113 libavfilter/vf_dblur.c     filter_horizontally(ctx, width, height);
ctx               116 libavfilter/vf_dblur.c static int query_formats(AVFilterContext *ctx)
ctx               140 libavfilter/vf_dblur.c     return ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               189 libavfilter/vf_dblur.c     AVFilterContext *ctx = inlink->dst;
ctx               190 libavfilter/vf_dblur.c     DBlurContext *s = ctx->priv;
ctx               191 libavfilter/vf_dblur.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               244 libavfilter/vf_dblur.c         diriir2d(ctx, plane);
ctx               271 libavfilter/vf_dblur.c static av_cold void uninit(AVFilterContext *ctx)
ctx               273 libavfilter/vf_dblur.c     DBlurContext *s = ctx->priv;
ctx               534 libavfilter/vf_dctdnoiz.c     AVFilterContext *ctx = inlink->dst;
ctx               535 libavfilter/vf_dctdnoiz.c     DCTdnoizContext *s = ctx->priv;
ctx               559 libavfilter/vf_dctdnoiz.c         av_log(ctx, AV_LOG_WARNING, "The last %d horizontal pixels won't be denoised\n",
ctx               562 libavfilter/vf_dctdnoiz.c         av_log(ctx, AV_LOG_WARNING, "The last %d vertical pixels won't be denoised\n",
ctx               566 libavfilter/vf_dctdnoiz.c     s->nb_threads = FFMIN3(MAX_THREADS, ff_filter_get_nb_threads(ctx), max_slice_h);
ctx               567 libavfilter/vf_dctdnoiz.c     av_log(ctx, AV_LOG_DEBUG, "threads: [max=%d hmax=%d user=%d] => %d\n",
ctx               568 libavfilter/vf_dctdnoiz.c            MAX_THREADS, max_slice_h, ff_filter_get_nb_threads(ctx), s->nb_threads);
ctx               584 libavfilter/vf_dctdnoiz.c                                     NULL, NULL, NULL, NULL, 0, ctx);
ctx               619 libavfilter/vf_dctdnoiz.c static av_cold int init(AVFilterContext *ctx)
ctx               621 libavfilter/vf_dctdnoiz.c     DCTdnoizContext *s = ctx->priv;
ctx               653 libavfilter/vf_dctdnoiz.c static int query_formats(AVFilterContext *ctx)
ctx               663 libavfilter/vf_dctdnoiz.c     return ff_set_common_formats(ctx, fmts_list);
ctx               670 libavfilter/vf_dctdnoiz.c static int filter_slice(AVFilterContext *ctx,
ctx               674 libavfilter/vf_dctdnoiz.c     DCTdnoizContext *s = ctx->priv;
ctx               720 libavfilter/vf_dctdnoiz.c     AVFilterContext *ctx = inlink->dst;
ctx               721 libavfilter/vf_dctdnoiz.c     DCTdnoizContext *s = ctx->priv;
ctx               747 libavfilter/vf_dctdnoiz.c         ctx->internal->execute(ctx, filter_slice, &td, NULL, s->nb_threads);
ctx               789 libavfilter/vf_dctdnoiz.c static av_cold void uninit(AVFilterContext *ctx)
ctx               792 libavfilter/vf_dctdnoiz.c     DCTdnoizContext *s = ctx->priv;
ctx                48 libavfilter/vf_deband.c     int (*deband)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx                72 libavfilter/vf_deband.c static int query_formats(AVFilterContext *ctx)
ctx                74 libavfilter/vf_deband.c     DebandContext *s = ctx->priv;
ctx               115 libavfilter/vf_deband.c     return ff_set_common_formats(ctx, fmts_list);
ctx               134 libavfilter/vf_deband.c static int deband_8_c(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               136 libavfilter/vf_deband.c     DebandContext *s = ctx->priv;
ctx               183 libavfilter/vf_deband.c static int deband_8_coupling_c(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               185 libavfilter/vf_deband.c     DebandContext *s = ctx->priv;
ctx               248 libavfilter/vf_deband.c static int deband_16_coupling_c(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               250 libavfilter/vf_deband.c     DebandContext *s = ctx->priv;
ctx               315 libavfilter/vf_deband.c static int deband_16_c(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               317 libavfilter/vf_deband.c     DebandContext *s = ctx->priv;
ctx               367 libavfilter/vf_deband.c     AVFilterContext *ctx = inlink->dst;
ctx               368 libavfilter/vf_deband.c     DebandContext *s = ctx->priv;
ctx               413 libavfilter/vf_deband.c     AVFilterContext *ctx = inlink->dst;
ctx               414 libavfilter/vf_deband.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               415 libavfilter/vf_deband.c     DebandContext *s = ctx->priv;
ctx               427 libavfilter/vf_deband.c     ctx->internal->execute(ctx, s->deband, &td, NULL, FFMIN3(s->planeheight[1],
ctx               429 libavfilter/vf_deband.c                                                              ff_filter_get_nb_threads(ctx)));
ctx               435 libavfilter/vf_deband.c static av_cold void uninit(AVFilterContext *ctx)
ctx               437 libavfilter/vf_deband.c     DebandContext *s = ctx->priv;
ctx                64 libavfilter/vf_deblock.c static int query_formats(AVFilterContext *ctx)
ctx                90 libavfilter/vf_deblock.c     return ff_set_common_formats(ctx, formats);
ctx               269 libavfilter/vf_deblock.c     AVFilterContext *ctx = outlink->src;
ctx               270 libavfilter/vf_deblock.c     DeblockContext *s = ctx->priv;
ctx               271 libavfilter/vf_deblock.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               311 libavfilter/vf_deblock.c     AVFilterContext *ctx = inlink->dst;
ctx               312 libavfilter/vf_deblock.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               313 libavfilter/vf_deblock.c     DeblockContext *s = ctx->priv;
ctx               150 libavfilter/vf_decimate.c     AVFilterContext *ctx  = inlink->dst;
ctx               151 libavfilter/vf_decimate.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               152 libavfilter/vf_decimate.c     DecimateContext *dm   = ctx->priv;
ctx               200 libavfilter/vf_decimate.c         av_log(ctx, AV_LOG_DEBUG, "1/%d frame drop:\n", dm->cycle);
ctx               202 libavfilter/vf_decimate.c             av_log(ctx, AV_LOG_DEBUG,"  #%d: totdiff=%08"PRIx64" maxbdiff=%08"PRIx64"%s%s%s%s\n",
ctx               242 libavfilter/vf_decimate.c     AVFilterContext *ctx = inlink->dst;
ctx               243 libavfilter/vf_decimate.c     DecimateContext *dm = ctx->priv;
ctx               272 libavfilter/vf_decimate.c static av_cold int decimate_init(AVFilterContext *ctx)
ctx               274 libavfilter/vf_decimate.c     DecimateContext *dm = ctx->priv;
ctx               285 libavfilter/vf_decimate.c     if ((ret = ff_insert_inpad(ctx, INPUT_MAIN, &pad)) < 0) {
ctx               295 libavfilter/vf_decimate.c         if ((ret = ff_insert_inpad(ctx, INPUT_CLEANSRC, &pad)) < 0) {
ctx               303 libavfilter/vf_decimate.c         av_log(ctx, AV_LOG_ERROR, "blockx and blocky settings must be power of two\n");
ctx               312 libavfilter/vf_decimate.c static av_cold void decimate_uninit(AVFilterContext *ctx)
ctx               315 libavfilter/vf_decimate.c     DecimateContext *dm = ctx->priv;
ctx               329 libavfilter/vf_decimate.c     for (i = 0; i < ctx->nb_inputs; i++)
ctx               330 libavfilter/vf_decimate.c         av_freep(&ctx->input_pads[i].name);
ctx               333 libavfilter/vf_decimate.c static int request_inlink(AVFilterContext *ctx, int lid)
ctx               336 libavfilter/vf_decimate.c     DecimateContext *dm = ctx->priv;
ctx               339 libavfilter/vf_decimate.c         AVFilterLink *inlink = ctx->inputs[lid];
ctx               352 libavfilter/vf_decimate.c     AVFilterContext *ctx = outlink->src;
ctx               353 libavfilter/vf_decimate.c     DecimateContext *dm = ctx->priv;
ctx               358 libavfilter/vf_decimate.c     if ((ret = request_inlink(ctx, INPUT_MAIN)) < 0)
ctx               360 libavfilter/vf_decimate.c     if (dm->ppsrc && (ret = request_inlink(ctx, INPUT_CLEANSRC)) < 0)
ctx               365 libavfilter/vf_decimate.c static int query_formats(AVFilterContext *ctx)
ctx               379 libavfilter/vf_decimate.c     return ff_set_common_formats(ctx, fmts_list);
ctx               384 libavfilter/vf_decimate.c     AVFilterContext *ctx = outlink->src;
ctx               385 libavfilter/vf_decimate.c     DecimateContext *dm = ctx->priv;
ctx               387 libavfilter/vf_decimate.c         ctx->inputs[dm->ppsrc ? INPUT_CLEANSRC : INPUT_MAIN];
ctx               391 libavfilter/vf_decimate.c         av_log(ctx, AV_LOG_ERROR, "The input needs a constant frame rate; "
ctx               396 libavfilter/vf_decimate.c     av_log(ctx, AV_LOG_VERBOSE, "FPS: %d/%d -> %d/%d\n",
ctx                55 libavfilter/vf_dedot.c     int (*dedotcrawl)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx                56 libavfilter/vf_dedot.c     int (*derainbow)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx                59 libavfilter/vf_dedot.c static int query_formats(AVFilterContext *ctx)
ctx                81 libavfilter/vf_dedot.c     return ff_set_common_formats(ctx, formats);
ctx                85 libavfilter/vf_dedot.c static int dedotcrawl##name(AVFilterContext *ctx, void *arg,     \
ctx                88 libavfilter/vf_dedot.c     DedotContext *s = ctx->priv;                                 \
ctx               164 libavfilter/vf_dedot.c static int derainbow##name(AVFilterContext *ctx, void *arg,  \
ctx               167 libavfilter/vf_dedot.c     DedotContext *s = ctx->priv;                             \
ctx               229 libavfilter/vf_dedot.c     AVFilterContext *ctx = outlink->src;
ctx               230 libavfilter/vf_dedot.c     DedotContext *s = ctx->priv;
ctx               231 libavfilter/vf_dedot.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               261 libavfilter/vf_dedot.c static int activate(AVFilterContext *ctx)
ctx               263 libavfilter/vf_dedot.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               264 libavfilter/vf_dedot.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               265 libavfilter/vf_dedot.c     DedotContext *s = ctx->priv;
ctx               298 libavfilter/vf_dedot.c             if (out && !ctx->is_disabled) {
ctx               302 libavfilter/vf_dedot.c                         ctx->internal->execute(ctx, s->dedotcrawl, out, NULL,
ctx               304 libavfilter/vf_dedot.c                                                ff_filter_get_nb_threads(ctx)));
ctx               308 libavfilter/vf_dedot.c                         ctx->internal->execute(ctx, s->derainbow, &td, NULL,
ctx               310 libavfilter/vf_dedot.c                                                ff_filter_get_nb_threads(ctx)));
ctx               312 libavfilter/vf_dedot.c                         ctx->internal->execute(ctx, s->derainbow, &td, NULL,
ctx               314 libavfilter/vf_dedot.c                                                ff_filter_get_nb_threads(ctx)));
ctx               340 libavfilter/vf_dedot.c             ff_filter_set_ready(ctx, 10);
ctx               353 libavfilter/vf_dedot.c             ff_filter_set_ready(ctx, 10);
ctx               363 libavfilter/vf_dedot.c static av_cold void uninit(AVFilterContext *ctx)
ctx               365 libavfilter/vf_dedot.c     DedotContext *s = ctx->priv;
ctx                67 libavfilter/vf_deflicker.c     void (*get_factor)(AVFilterContext *ctx, float *f);
ctx                68 libavfilter/vf_deflicker.c     float (*calc_avgy)(AVFilterContext *ctx, AVFrame *in);
ctx                69 libavfilter/vf_deflicker.c     int (*deflicker)(AVFilterContext *ctx, const uint8_t *src, ptrdiff_t src_linesize,
ctx                94 libavfilter/vf_deflicker.c static int query_formats(AVFilterContext *ctx)
ctx               121 libavfilter/vf_deflicker.c     return ff_set_common_formats(ctx, formats);
ctx               124 libavfilter/vf_deflicker.c static int deflicker8(AVFilterContext *ctx,
ctx               143 libavfilter/vf_deflicker.c static int deflicker16(AVFilterContext *ctx,
ctx               148 libavfilter/vf_deflicker.c     DeflickerContext *s = ctx->priv;
ctx               166 libavfilter/vf_deflicker.c static float calc_avgy8(AVFilterContext *ctx, AVFrame *in)
ctx               168 libavfilter/vf_deflicker.c     DeflickerContext *s = ctx->priv;
ctx               189 libavfilter/vf_deflicker.c static float calc_avgy16(AVFilterContext *ctx, AVFrame *in)
ctx               191 libavfilter/vf_deflicker.c     DeflickerContext *s = ctx->priv;
ctx               212 libavfilter/vf_deflicker.c static void get_am_factor(AVFilterContext *ctx, float *f)
ctx               214 libavfilter/vf_deflicker.c     DeflickerContext *s = ctx->priv;
ctx               227 libavfilter/vf_deflicker.c static void get_gm_factor(AVFilterContext *ctx, float *f)
ctx               229 libavfilter/vf_deflicker.c     DeflickerContext *s = ctx->priv;
ctx               242 libavfilter/vf_deflicker.c static void get_hm_factor(AVFilterContext *ctx, float *f)
ctx               244 libavfilter/vf_deflicker.c     DeflickerContext *s = ctx->priv;
ctx               257 libavfilter/vf_deflicker.c static void get_qm_factor(AVFilterContext *ctx, float *f)
ctx               259 libavfilter/vf_deflicker.c     DeflickerContext *s = ctx->priv;
ctx               273 libavfilter/vf_deflicker.c static void get_cm_factor(AVFilterContext *ctx, float *f)
ctx               275 libavfilter/vf_deflicker.c     DeflickerContext *s = ctx->priv;
ctx               289 libavfilter/vf_deflicker.c static void get_pm_factor(AVFilterContext *ctx, float *f)
ctx               291 libavfilter/vf_deflicker.c     DeflickerContext *s = ctx->priv;
ctx               311 libavfilter/vf_deflicker.c static void get_median_factor(AVFilterContext *ctx, float *f)
ctx               313 libavfilter/vf_deflicker.c     DeflickerContext *s = ctx->priv;
ctx               324 libavfilter/vf_deflicker.c     AVFilterContext *ctx = inlink->dst;
ctx               325 libavfilter/vf_deflicker.c     DeflickerContext *s = ctx->priv;
ctx               362 libavfilter/vf_deflicker.c     AVFilterContext *ctx = inlink->dst;
ctx               363 libavfilter/vf_deflicker.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               364 libavfilter/vf_deflicker.c     DeflickerContext *s = ctx->priv;
ctx               371 libavfilter/vf_deflicker.c         s->luminance[s->available] = s->calc_avgy(ctx, buf);
ctx               372 libavfilter/vf_deflicker.c         ff_bufqueue_add(ctx, &s->q, buf);
ctx               385 libavfilter/vf_deflicker.c     s->get_factor(ctx, &f);
ctx               387 libavfilter/vf_deflicker.c         s->deflicker(ctx, in->data[0], in->linesize[0], out->data[0], out->linesize[0],
ctx               413 libavfilter/vf_deflicker.c     s->luminance[s->available - 1] = s->calc_avgy(ctx, buf);
ctx               414 libavfilter/vf_deflicker.c     ff_bufqueue_add(ctx, &s->q, buf);
ctx               421 libavfilter/vf_deflicker.c     AVFilterContext *ctx = outlink->src;
ctx               422 libavfilter/vf_deflicker.c     DeflickerContext *s = ctx->priv;
ctx               425 libavfilter/vf_deflicker.c     ret = ff_request_frame(ctx->inputs[0]);
ctx               435 libavfilter/vf_deflicker.c         ret = filter_frame(ctx->inputs[0], buf);
ctx               442 libavfilter/vf_deflicker.c static av_cold void uninit(AVFilterContext *ctx)
ctx               444 libavfilter/vf_deflicker.c     DeflickerContext *s = ctx->priv;
ctx                86 libavfilter/vf_deinterlace_qsv.c static av_cold void qsvdeint_uninit(AVFilterContext *ctx)
ctx                88 libavfilter/vf_deinterlace_qsv.c     QSVDeintContext *s = ctx->priv;
ctx               112 libavfilter/vf_deinterlace_qsv.c static int qsvdeint_query_formats(AVFilterContext *ctx)
ctx               120 libavfilter/vf_deinterlace_qsv.c     if ((ret = ff_set_common_formats(ctx, pix_fmts)) < 0)
ctx               129 libavfilter/vf_deinterlace_qsv.c     AVFilterContext *ctx = pthis;
ctx               130 libavfilter/vf_deinterlace_qsv.c     QSVDeintContext   *s = ctx->priv;
ctx               170 libavfilter/vf_deinterlace_qsv.c static int init_out_session(AVFilterContext *ctx)
ctx               173 libavfilter/vf_deinterlace_qsv.c     QSVDeintContext                  *s = ctx->priv;
ctx               193 libavfilter/vf_deinterlace_qsv.c         av_log(ctx, AV_LOG_ERROR, "Error querying the session attributes\n");
ctx               206 libavfilter/vf_deinterlace_qsv.c         av_log(ctx, AV_LOG_ERROR, "Error getting the session handle\n");
ctx               214 libavfilter/vf_deinterlace_qsv.c         av_log(ctx, AV_LOG_ERROR, "Error initializing a session for deinterlacing\n");
ctx               261 libavfilter/vf_deinterlace_qsv.c             .pthis  = ctx,
ctx               291 libavfilter/vf_deinterlace_qsv.c     par.vpp.In.CropW = ctx->inputs[0]->w;
ctx               292 libavfilter/vf_deinterlace_qsv.c     par.vpp.In.CropH = ctx->inputs[0]->h;
ctx               294 libavfilter/vf_deinterlace_qsv.c     if (ctx->inputs[0]->frame_rate.num) {
ctx               295 libavfilter/vf_deinterlace_qsv.c         par.vpp.In.FrameRateExtN = ctx->inputs[0]->frame_rate.num;
ctx               296 libavfilter/vf_deinterlace_qsv.c         par.vpp.In.FrameRateExtD = ctx->inputs[0]->frame_rate.den;
ctx               298 libavfilter/vf_deinterlace_qsv.c         par.vpp.In.FrameRateExtN = ctx->inputs[0]->time_base.num;
ctx               299 libavfilter/vf_deinterlace_qsv.c         par.vpp.In.FrameRateExtD = ctx->inputs[0]->time_base.den;
ctx               304 libavfilter/vf_deinterlace_qsv.c     if (ctx->outputs[0]->frame_rate.num) {
ctx               305 libavfilter/vf_deinterlace_qsv.c         par.vpp.Out.FrameRateExtN = ctx->outputs[0]->frame_rate.num;
ctx               306 libavfilter/vf_deinterlace_qsv.c         par.vpp.Out.FrameRateExtD = ctx->outputs[0]->frame_rate.den;
ctx               308 libavfilter/vf_deinterlace_qsv.c         par.vpp.Out.FrameRateExtN = ctx->outputs[0]->time_base.num;
ctx               309 libavfilter/vf_deinterlace_qsv.c         par.vpp.Out.FrameRateExtD = ctx->outputs[0]->time_base.den;
ctx               314 libavfilter/vf_deinterlace_qsv.c         av_log(ctx, AV_LOG_ERROR, "Error opening the VPP for deinterlacing: %d\n", err);
ctx               323 libavfilter/vf_deinterlace_qsv.c     AVFilterContext *ctx = outlink->src;
ctx               324 libavfilter/vf_deinterlace_qsv.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               325 libavfilter/vf_deinterlace_qsv.c     QSVDeintContext  *s = ctx->priv;
ctx               328 libavfilter/vf_deinterlace_qsv.c     qsvdeint_uninit(ctx);
ctx               338 libavfilter/vf_deinterlace_qsv.c         av_log(ctx, AV_LOG_ERROR, "No hw context provided on input\n");
ctx               349 libavfilter/vf_deinterlace_qsv.c         qsvdeint_uninit(ctx);
ctx               353 libavfilter/vf_deinterlace_qsv.c     ret = init_out_session(ctx);
ctx               400 libavfilter/vf_deinterlace_qsv.c static int submit_frame(AVFilterContext *ctx, AVFrame *frame,
ctx               403 libavfilter/vf_deinterlace_qsv.c     QSVDeintContext *s = ctx->priv;
ctx               431 libavfilter/vf_deinterlace_qsv.c     if (ctx->inputs[0]->frame_rate.num) {
ctx               432 libavfilter/vf_deinterlace_qsv.c         qf->surface.Info.FrameRateExtN = ctx->inputs[0]->frame_rate.num;
ctx               433 libavfilter/vf_deinterlace_qsv.c         qf->surface.Info.FrameRateExtD = ctx->inputs[0]->frame_rate.den;
ctx               435 libavfilter/vf_deinterlace_qsv.c         qf->surface.Info.FrameRateExtN = ctx->inputs[0]->time_base.num;
ctx               436 libavfilter/vf_deinterlace_qsv.c         qf->surface.Info.FrameRateExtD = ctx->inputs[0]->time_base.den;
ctx               440 libavfilter/vf_deinterlace_qsv.c                                               ctx->inputs[0]->time_base,
ctx               449 libavfilter/vf_deinterlace_qsv.c static int process_frame(AVFilterContext *ctx, const AVFrame *in,
ctx               452 libavfilter/vf_deinterlace_qsv.c     QSVDeintContext    *s = ctx->priv;
ctx               453 libavfilter/vf_deinterlace_qsv.c     AVFilterLink  *inlink = ctx->inputs[0];
ctx               454 libavfilter/vf_deinterlace_qsv.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               486 libavfilter/vf_deinterlace_qsv.c         av_log(ctx, AV_LOG_ERROR, "Error during deinterlacing: %d\n", err);
ctx               497 libavfilter/vf_deinterlace_qsv.c         av_log(ctx, AV_LOG_ERROR, "Error synchronizing the operation: %d\n", err);
ctx               527 libavfilter/vf_deinterlace_qsv.c     AVFilterContext *ctx = link->dst;
ctx               532 libavfilter/vf_deinterlace_qsv.c     ret = submit_frame(ctx, in, &surf_in);
ctx               539 libavfilter/vf_deinterlace_qsv.c         ret = process_frame(ctx, in, surf_in);
ctx               549 libavfilter/vf_deinterlace_qsv.c     AVFilterContext *ctx = outlink->src;
ctx               551 libavfilter/vf_deinterlace_qsv.c     return ff_request_frame(ctx->inputs[0]);
ctx                69 libavfilter/vf_deinterlace_vaapi.c     DeintVAAPIContext *ctx   = avctx->priv;
ctx                72 libavfilter/vf_deinterlace_vaapi.c     for (i = 0; i < ctx->queue_count; i++)
ctx                73 libavfilter/vf_deinterlace_vaapi.c         av_frame_free(&ctx->frame_queue[i]);
ctx                74 libavfilter/vf_deinterlace_vaapi.c     ctx->queue_count = 0;
ctx                82 libavfilter/vf_deinterlace_vaapi.c     DeintVAAPIContext *ctx   = avctx->priv;
ctx                87 libavfilter/vf_deinterlace_vaapi.c     ctx->nb_deint_caps = VAProcDeinterlacingCount;
ctx                91 libavfilter/vf_deinterlace_vaapi.c                                      &ctx->deint_caps,
ctx                92 libavfilter/vf_deinterlace_vaapi.c                                      &ctx->nb_deint_caps);
ctx                99 libavfilter/vf_deinterlace_vaapi.c     if (ctx->mode == VAProcDeinterlacingNone) {
ctx               100 libavfilter/vf_deinterlace_vaapi.c         for (i = 0; i < ctx->nb_deint_caps; i++) {
ctx               101 libavfilter/vf_deinterlace_vaapi.c             if (ctx->deint_caps[i].type > ctx->mode)
ctx               102 libavfilter/vf_deinterlace_vaapi.c                 ctx->mode = ctx->deint_caps[i].type;
ctx               105 libavfilter/vf_deinterlace_vaapi.c                "deinterlacing mode.\n", ctx->mode,
ctx               106 libavfilter/vf_deinterlace_vaapi.c                deint_vaapi_mode_name(ctx->mode));
ctx               108 libavfilter/vf_deinterlace_vaapi.c         for (i = 0; i < ctx->nb_deint_caps; i++) {
ctx               109 libavfilter/vf_deinterlace_vaapi.c             if (ctx->deint_caps[i].type == ctx->mode)
ctx               112 libavfilter/vf_deinterlace_vaapi.c         if (i >= ctx->nb_deint_caps) {
ctx               114 libavfilter/vf_deinterlace_vaapi.c                    "not supported.\n", ctx->mode,
ctx               115 libavfilter/vf_deinterlace_vaapi.c                    deint_vaapi_mode_name(ctx->mode));
ctx               121 libavfilter/vf_deinterlace_vaapi.c     params.algorithm = ctx->mode;
ctx               135 libavfilter/vf_deinterlace_vaapi.c                                        &ctx->pipeline_caps);
ctx               142 libavfilter/vf_deinterlace_vaapi.c     ctx->extra_delay_for_timestamps = ctx->field_rate == 2 &&
ctx               143 libavfilter/vf_deinterlace_vaapi.c         ctx->pipeline_caps.num_backward_references == 0;
ctx               145 libavfilter/vf_deinterlace_vaapi.c     ctx->queue_depth = ctx->pipeline_caps.num_backward_references +
ctx               146 libavfilter/vf_deinterlace_vaapi.c                        ctx->pipeline_caps.num_forward_references +
ctx               147 libavfilter/vf_deinterlace_vaapi.c                        ctx->extra_delay_for_timestamps + 1;
ctx               148 libavfilter/vf_deinterlace_vaapi.c     if (ctx->queue_depth > MAX_REFERENCES) {
ctx               151 libavfilter/vf_deinterlace_vaapi.c                ctx->pipeline_caps.num_forward_references,
ctx               152 libavfilter/vf_deinterlace_vaapi.c                ctx->pipeline_caps.num_backward_references);
ctx               163 libavfilter/vf_deinterlace_vaapi.c     DeintVAAPIContext *ctx = avctx->priv;
ctx               170 libavfilter/vf_deinterlace_vaapi.c                                    (AVRational) { 1, ctx->field_rate });
ctx               172 libavfilter/vf_deinterlace_vaapi.c                                    (AVRational) { ctx->field_rate, 1 });
ctx               182 libavfilter/vf_deinterlace_vaapi.c     DeintVAAPIContext *ctx   = avctx->priv;
ctx               197 libavfilter/vf_deinterlace_vaapi.c     if (ctx->queue_count < ctx->queue_depth) {
ctx               198 libavfilter/vf_deinterlace_vaapi.c         ctx->frame_queue[ctx->queue_count++] = input_frame;
ctx               199 libavfilter/vf_deinterlace_vaapi.c         if (ctx->queue_count < ctx->queue_depth) {
ctx               204 libavfilter/vf_deinterlace_vaapi.c         av_frame_free(&ctx->frame_queue[0]);
ctx               205 libavfilter/vf_deinterlace_vaapi.c         for (i = 0; i + 1 < ctx->queue_count; i++)
ctx               206 libavfilter/vf_deinterlace_vaapi.c             ctx->frame_queue[i] = ctx->frame_queue[i + 1];
ctx               207 libavfilter/vf_deinterlace_vaapi.c         ctx->frame_queue[i] = input_frame;
ctx               210 libavfilter/vf_deinterlace_vaapi.c     current_frame_index = ctx->pipeline_caps.num_forward_references;
ctx               212 libavfilter/vf_deinterlace_vaapi.c     input_frame = ctx->frame_queue[current_frame_index];
ctx               214 libavfilter/vf_deinterlace_vaapi.c     for (i = 0; i < ctx->pipeline_caps.num_forward_references; i++)
ctx               216 libavfilter/vf_deinterlace_vaapi.c             ctx->frame_queue[current_frame_index - i - 1]->data[3];
ctx               217 libavfilter/vf_deinterlace_vaapi.c     for (i = 0; i < ctx->pipeline_caps.num_backward_references; i++)
ctx               219 libavfilter/vf_deinterlace_vaapi.c             ctx->frame_queue[current_frame_index + i + 1]->data[3];
ctx               224 libavfilter/vf_deinterlace_vaapi.c     for (i = 0; i < ctx->pipeline_caps.num_backward_references; i++)
ctx               228 libavfilter/vf_deinterlace_vaapi.c     for (i = 0; i < ctx->pipeline_caps.num_forward_references; i++)
ctx               232 libavfilter/vf_deinterlace_vaapi.c     for (field = 0; field < ctx->field_rate; field++) {
ctx               249 libavfilter/vf_deinterlace_vaapi.c         if (!ctx->auto_enable || input_frame->interlaced_frame) {
ctx               277 libavfilter/vf_deinterlace_vaapi.c                 ctx->pipeline_caps.num_forward_references;
ctx               280 libavfilter/vf_deinterlace_vaapi.c                 ctx->pipeline_caps.num_backward_references;
ctx               291 libavfilter/vf_deinterlace_vaapi.c         if (ctx->field_rate == 2) {
ctx               296 libavfilter/vf_deinterlace_vaapi.c                     ctx->frame_queue[current_frame_index + 1]->pts;
ctx                82 libavfilter/vf_dejudder.c     AVFilterContext *ctx = outlink->src;
ctx                83 libavfilter/vf_dejudder.c     DejudderContext *s = ctx->priv;
ctx                89 libavfilter/vf_dejudder.c     av_log(ctx, AV_LOG_VERBOSE, "cycle:%d\n", s->cycle);
ctx                94 libavfilter/vf_dejudder.c static av_cold int dejudder_init(AVFilterContext *ctx)
ctx                96 libavfilter/vf_dejudder.c     DejudderContext *s = ctx->priv;
ctx               112 libavfilter/vf_dejudder.c static av_cold void dejudder_uninit(AVFilterContext *ctx)
ctx               114 libavfilter/vf_dejudder.c     DejudderContext *s = ctx->priv;
ctx               122 libavfilter/vf_dejudder.c     AVFilterContext *ctx  = inlink->dst;
ctx               123 libavfilter/vf_dejudder.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               124 libavfilter/vf_dejudder.c     DejudderContext *s   = ctx->priv;
ctx               154 libavfilter/vf_dejudder.c         av_log(ctx, AV_LOG_DEBUG, "%"PRId64"\t", judbuff[k]);
ctx               155 libavfilter/vf_dejudder.c     av_log(ctx, AV_LOG_DEBUG, "next=%"PRId64", new=%"PRId64"\n", next_pts, frame->pts);
ctx               219 libavfilter/vf_delogo.c static av_cold void uninit(AVFilterContext *ctx)
ctx               221 libavfilter/vf_delogo.c     DelogoContext *s = ctx->priv;
ctx               230 libavfilter/vf_delogo.c static int query_formats(AVFilterContext *ctx)
ctx               241 libavfilter/vf_delogo.c     return ff_set_common_formats(ctx, fmts_list);
ctx               244 libavfilter/vf_delogo.c static av_cold int init(AVFilterContext *ctx)
ctx               246 libavfilter/vf_delogo.c     DelogoContext *s = ctx->priv;
ctx               249 libavfilter/vf_delogo.c     if ((ret = set_expr(&s->x_pexpr, s->x_expr, "x", ctx)) < 0 ||
ctx               250 libavfilter/vf_delogo.c         (ret = set_expr(&s->y_pexpr, s->y_expr, "y", ctx)) < 0 ||
ctx               251 libavfilter/vf_delogo.c         (ret = set_expr(&s->w_pexpr, s->w_expr, "w", ctx)) < 0 ||
ctx               252 libavfilter/vf_delogo.c         (ret = set_expr(&s->h_pexpr, s->h_expr, "h", ctx)) < 0 )
ctx               272 libavfilter/vf_delogo.c     av_log(ctx, AV_LOG_VERBOSE, "x:%d y:%d, w:%d h:%d band:%d show:%d\n",
ctx                64 libavfilter/vf_derain.c static int query_formats(AVFilterContext *ctx)
ctx                74 libavfilter/vf_derain.c     return ff_set_common_formats(ctx, formats);
ctx                79 libavfilter/vf_derain.c     AVFilterContext *ctx          = inlink->dst;
ctx                80 libavfilter/vf_derain.c     DRContext *dr_context         = ctx->priv;
ctx                90 libavfilter/vf_derain.c         av_log(ctx, AV_LOG_ERROR, "could not set input and output for the model\n");
ctx                99 libavfilter/vf_derain.c     AVFilterContext *ctx  = inlink->dst;
ctx               100 libavfilter/vf_derain.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               101 libavfilter/vf_derain.c     DRContext *dr_context = ctx->priv;
ctx               106 libavfilter/vf_derain.c         av_log(ctx, AV_LOG_ERROR, "could not allocate memory for output frame\n");
ctx               123 libavfilter/vf_derain.c         av_log(ctx, AV_LOG_ERROR, "failed to execute model\n");
ctx               145 libavfilter/vf_derain.c static av_cold int init(AVFilterContext *ctx)
ctx               147 libavfilter/vf_derain.c     DRContext *dr_context = ctx->priv;
ctx               152 libavfilter/vf_derain.c         av_log(ctx, AV_LOG_ERROR, "could not create DNN module for requested backend\n");
ctx               156 libavfilter/vf_derain.c         av_log(ctx, AV_LOG_ERROR, "model file for network is not specified\n");
ctx               160 libavfilter/vf_derain.c         av_log(ctx, AV_LOG_ERROR, "load_model for network is not specified\n");
ctx               166 libavfilter/vf_derain.c         av_log(ctx, AV_LOG_ERROR, "could not load DNN model\n");
ctx               173 libavfilter/vf_derain.c static av_cold void uninit(AVFilterContext *ctx)
ctx               175 libavfilter/vf_derain.c     DRContext *dr_context = ctx->priv;
ctx               315 libavfilter/vf_deshake.c static int deshake_transform_c(AVFilterContext *ctx,
ctx               341 libavfilter/vf_deshake.c static av_cold int init(AVFilterContext *ctx)
ctx               343 libavfilter/vf_deshake.c     DeshakeContext *deshake = ctx->priv;
ctx               350 libavfilter/vf_deshake.c         av_log(ctx, AV_LOG_ERROR, "rx must be a multiple of 16\n");
ctx               367 libavfilter/vf_deshake.c     av_log(ctx, AV_LOG_VERBOSE, "cx: %d, cy: %d, cw: %d, ch: %d, rx: %d, ry: %d, edge: %d blocksize: %d contrast: %d search: %d\n",
ctx               374 libavfilter/vf_deshake.c static int query_formats(AVFilterContext *ctx)
ctx               384 libavfilter/vf_deshake.c     return ff_set_common_formats(ctx, fmts_list);
ctx               400 libavfilter/vf_deshake.c static av_cold void uninit(AVFilterContext *ctx)
ctx               402 libavfilter/vf_deshake.c     DeshakeContext *deshake = ctx->priv;
ctx              1068 libavfilter/vf_deshake_opencl.c     DeshakeOpenCLContext *ctx = avctx->priv;
ctx              1072 libavfilter/vf_deshake_opencl.c         av_fifo_freep(&ctx->abs_motion.ringbuffers[i]);
ctx              1074 libavfilter/vf_deshake_opencl.c     if (ctx->debug_on)
ctx              1075 libavfilter/vf_deshake_opencl.c         free_debug_matches(&ctx->abs_motion);
ctx              1077 libavfilter/vf_deshake_opencl.c     if (ctx->gauss_kernel)
ctx              1078 libavfilter/vf_deshake_opencl.c         av_freep(&ctx->gauss_kernel);
ctx              1080 libavfilter/vf_deshake_opencl.c     if (ctx->ransac_err)
ctx              1081 libavfilter/vf_deshake_opencl.c         av_freep(&ctx->ransac_err);
ctx              1083 libavfilter/vf_deshake_opencl.c     if (ctx->matches_host)
ctx              1084 libavfilter/vf_deshake_opencl.c         av_freep(&ctx->matches_host);
ctx              1086 libavfilter/vf_deshake_opencl.c     if (ctx->matches_contig_host)
ctx              1087 libavfilter/vf_deshake_opencl.c         av_freep(&ctx->matches_contig_host);
ctx              1089 libavfilter/vf_deshake_opencl.c     if (ctx->inliers)
ctx              1090 libavfilter/vf_deshake_opencl.c         av_freep(&ctx->inliers);
ctx              1092 libavfilter/vf_deshake_opencl.c     ff_framequeue_free(&ctx->fq);
ctx              1094 libavfilter/vf_deshake_opencl.c     CL_RELEASE_KERNEL(ctx->kernel_grayscale);
ctx              1095 libavfilter/vf_deshake_opencl.c     CL_RELEASE_KERNEL(ctx->kernel_harris_response);
ctx              1096 libavfilter/vf_deshake_opencl.c     CL_RELEASE_KERNEL(ctx->kernel_refine_features);
ctx              1097 libavfilter/vf_deshake_opencl.c     CL_RELEASE_KERNEL(ctx->kernel_brief_descriptors);
ctx              1098 libavfilter/vf_deshake_opencl.c     CL_RELEASE_KERNEL(ctx->kernel_match_descriptors);
ctx              1099 libavfilter/vf_deshake_opencl.c     CL_RELEASE_KERNEL(ctx->kernel_crop_upscale);
ctx              1100 libavfilter/vf_deshake_opencl.c     if (ctx->debug_on)
ctx              1101 libavfilter/vf_deshake_opencl.c         CL_RELEASE_KERNEL(ctx->kernel_draw_debug_info);
ctx              1103 libavfilter/vf_deshake_opencl.c     CL_RELEASE_QUEUE(ctx->command_queue);
ctx              1105 libavfilter/vf_deshake_opencl.c     if (!ctx->is_yuv)
ctx              1106 libavfilter/vf_deshake_opencl.c         CL_RELEASE_MEMORY(ctx->grayscale);
ctx              1107 libavfilter/vf_deshake_opencl.c     CL_RELEASE_MEMORY(ctx->harris_buf);
ctx              1108 libavfilter/vf_deshake_opencl.c     CL_RELEASE_MEMORY(ctx->refined_features);
ctx              1109 libavfilter/vf_deshake_opencl.c     CL_RELEASE_MEMORY(ctx->prev_refined_features);
ctx              1110 libavfilter/vf_deshake_opencl.c     CL_RELEASE_MEMORY(ctx->brief_pattern);
ctx              1111 libavfilter/vf_deshake_opencl.c     CL_RELEASE_MEMORY(ctx->descriptors);
ctx              1112 libavfilter/vf_deshake_opencl.c     CL_RELEASE_MEMORY(ctx->prev_descriptors);
ctx              1113 libavfilter/vf_deshake_opencl.c     CL_RELEASE_MEMORY(ctx->matches);
ctx              1114 libavfilter/vf_deshake_opencl.c     CL_RELEASE_MEMORY(ctx->matches_contig);
ctx              1115 libavfilter/vf_deshake_opencl.c     CL_RELEASE_MEMORY(ctx->transform_y);
ctx              1116 libavfilter/vf_deshake_opencl.c     CL_RELEASE_MEMORY(ctx->transform_uv);
ctx              1117 libavfilter/vf_deshake_opencl.c     if (ctx->debug_on) {
ctx              1118 libavfilter/vf_deshake_opencl.c         CL_RELEASE_MEMORY(ctx->debug_matches);
ctx              1119 libavfilter/vf_deshake_opencl.c         CL_RELEASE_MEMORY(ctx->debug_model_matches);
ctx              1127 libavfilter/vf_deshake_opencl.c     DeshakeOpenCLContext *ctx = avctx->priv;
ctx              1171 libavfilter/vf_deshake_opencl.c     ff_framequeue_init(&ctx->fq, &fqg);
ctx              1172 libavfilter/vf_deshake_opencl.c     ctx->eof = 0;
ctx              1173 libavfilter/vf_deshake_opencl.c     ctx->smooth_window = (int)(av_q2d(avctx->inputs[0]->frame_rate) * ctx->smooth_window_multiplier);
ctx              1174 libavfilter/vf_deshake_opencl.c     ctx->curr_frame = 0;
ctx              1178 libavfilter/vf_deshake_opencl.c     ctx->gauss_kernel = av_malloc_array(ctx->smooth_window, sizeof(float));
ctx              1179 libavfilter/vf_deshake_opencl.c     if (!ctx->gauss_kernel) {
ctx              1184 libavfilter/vf_deshake_opencl.c     ctx->ransac_err = av_malloc_array(MATCHES_CONTIG_SIZE, sizeof(float));
ctx              1185 libavfilter/vf_deshake_opencl.c     if (!ctx->ransac_err) {
ctx              1191 libavfilter/vf_deshake_opencl.c         ctx->abs_motion.ringbuffers[i] = av_fifo_alloc_array(
ctx              1192 libavfilter/vf_deshake_opencl.c             ctx->smooth_window,
ctx              1196 libavfilter/vf_deshake_opencl.c         if (!ctx->abs_motion.ringbuffers[i]) {
ctx              1202 libavfilter/vf_deshake_opencl.c     if (ctx->debug_on) {
ctx              1203 libavfilter/vf_deshake_opencl.c         ctx->abs_motion.debug_matches = av_fifo_alloc_array(
ctx              1204 libavfilter/vf_deshake_opencl.c             ctx->smooth_window / 2,
ctx              1208 libavfilter/vf_deshake_opencl.c         if (!ctx->abs_motion.debug_matches) {
ctx              1214 libavfilter/vf_deshake_opencl.c     ctx->abs_motion.curr_frame_offset = 0;
ctx              1215 libavfilter/vf_deshake_opencl.c     ctx->abs_motion.data_start_offset = -1;
ctx              1216 libavfilter/vf_deshake_opencl.c     ctx->abs_motion.data_end_offset = -1;
ctx              1224 libavfilter/vf_deshake_opencl.c     ctx->matches_host = av_malloc_array(image_grid_32, sizeof(MotionVector));
ctx              1225 libavfilter/vf_deshake_opencl.c     if (!ctx->matches_host) {
ctx              1230 libavfilter/vf_deshake_opencl.c     ctx->matches_contig_host = av_malloc_array(MATCHES_CONTIG_SIZE, sizeof(MotionVector));
ctx              1231 libavfilter/vf_deshake_opencl.c     if (!ctx->matches_contig_host) {
ctx              1236 libavfilter/vf_deshake_opencl.c     ctx->inliers = av_malloc_array(MATCHES_CONTIG_SIZE, sizeof(MotionVector));
ctx              1237 libavfilter/vf_deshake_opencl.c     if (!ctx->inliers) {
ctx              1243 libavfilter/vf_deshake_opencl.c     av_lfg_init(&ctx->alfg, 234342424);
ctx              1248 libavfilter/vf_deshake_opencl.c             pair.p1.s[j] = rand_in(-BRIEF_PATCH_SIZE_HALF, BRIEF_PATCH_SIZE_HALF + 1, &ctx->alfg);
ctx              1249 libavfilter/vf_deshake_opencl.c             pair.p2.s[j] = rand_in(-BRIEF_PATCH_SIZE_HALF, BRIEF_PATCH_SIZE_HALF + 1, &ctx->alfg);
ctx              1256 libavfilter/vf_deshake_opencl.c         if (ctx->sw_format == disallowed_formats[i]) {
ctx              1264 libavfilter/vf_deshake_opencl.c         ctx->is_yuv = 0;
ctx              1266 libavfilter/vf_deshake_opencl.c         ctx->is_yuv = 1;
ctx              1268 libavfilter/vf_deshake_opencl.c     ctx->sw_format = hw_frames_ctx->sw_format;
ctx              1274 libavfilter/vf_deshake_opencl.c     if (ctx->debug_on) {
ctx              1279 libavfilter/vf_deshake_opencl.c     ctx->command_queue = clCreateCommandQueue(
ctx              1280 libavfilter/vf_deshake_opencl.c         ctx->ocf.hwctx->context,
ctx              1281 libavfilter/vf_deshake_opencl.c         ctx->ocf.hwctx->device_id,
ctx              1287 libavfilter/vf_deshake_opencl.c     CL_CREATE_KERNEL(ctx, grayscale);
ctx              1288 libavfilter/vf_deshake_opencl.c     CL_CREATE_KERNEL(ctx, harris_response);
ctx              1289 libavfilter/vf_deshake_opencl.c     CL_CREATE_KERNEL(ctx, refine_features);
ctx              1290 libavfilter/vf_deshake_opencl.c     CL_CREATE_KERNEL(ctx, brief_descriptors);
ctx              1291 libavfilter/vf_deshake_opencl.c     CL_CREATE_KERNEL(ctx, match_descriptors);
ctx              1292 libavfilter/vf_deshake_opencl.c     CL_CREATE_KERNEL(ctx, transform);
ctx              1293 libavfilter/vf_deshake_opencl.c     CL_CREATE_KERNEL(ctx, crop_upscale);
ctx              1294 libavfilter/vf_deshake_opencl.c     if (ctx->debug_on)
ctx              1295 libavfilter/vf_deshake_opencl.c         CL_CREATE_KERNEL(ctx, draw_debug_info);
ctx              1297 libavfilter/vf_deshake_opencl.c     if (!ctx->is_yuv) {
ctx              1314 libavfilter/vf_deshake_opencl.c         ctx->grayscale = clCreateImage(
ctx              1315 libavfilter/vf_deshake_opencl.c             ctx->ocf.hwctx->context,
ctx              1325 libavfilter/vf_deshake_opencl.c     CL_CREATE_BUFFER(ctx, harris_buf, outlink->h * outlink->w * sizeof(float));
ctx              1326 libavfilter/vf_deshake_opencl.c     CL_CREATE_BUFFER(ctx, refined_features, features_buf_size);
ctx              1327 libavfilter/vf_deshake_opencl.c     CL_CREATE_BUFFER(ctx, prev_refined_features, features_buf_size);
ctx              1329 libavfilter/vf_deshake_opencl.c         ctx,
ctx              1335 libavfilter/vf_deshake_opencl.c     CL_CREATE_BUFFER(ctx, descriptors, descriptor_buf_size);
ctx              1336 libavfilter/vf_deshake_opencl.c     CL_CREATE_BUFFER(ctx, prev_descriptors, descriptor_buf_size);
ctx              1337 libavfilter/vf_deshake_opencl.c     CL_CREATE_BUFFER(ctx, matches, image_grid_32 * sizeof(MotionVector));
ctx              1338 libavfilter/vf_deshake_opencl.c     CL_CREATE_BUFFER(ctx, matches_contig, MATCHES_CONTIG_SIZE * sizeof(MotionVector));
ctx              1339 libavfilter/vf_deshake_opencl.c     CL_CREATE_BUFFER(ctx, transform_y, 9 * sizeof(float));
ctx              1340 libavfilter/vf_deshake_opencl.c     CL_CREATE_BUFFER(ctx, transform_uv, 9 * sizeof(float));
ctx              1341 libavfilter/vf_deshake_opencl.c     if (ctx->debug_on) {
ctx              1342 libavfilter/vf_deshake_opencl.c         CL_CREATE_BUFFER(ctx, debug_matches, MATCHES_CONTIG_SIZE * sizeof(MotionVector));
ctx              1343 libavfilter/vf_deshake_opencl.c         CL_CREATE_BUFFER(ctx, debug_model_matches, 3 * sizeof(MotionVector));
ctx              1346 libavfilter/vf_deshake_opencl.c     ctx->initialized = 1;
ctx              2039 libavfilter/vf_deshake_opencl.c static int activate(AVFilterContext *ctx)
ctx              2041 libavfilter/vf_deshake_opencl.c     AVFilterLink *inlink = ctx->inputs[0];
ctx              2042 libavfilter/vf_deshake_opencl.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              2043 libavfilter/vf_deshake_opencl.c     DeshakeOpenCLContext *deshake_ctx = ctx->priv;
ctx              2059 libavfilter/vf_deshake_opencl.c                 ret = deshake_opencl_init(ctx);
ctx              2105 libavfilter/vf_deshake_opencl.c             av_log(ctx, AV_LOG_VERBOSE,
ctx                43 libavfilter/vf_despill.c static int do_despill_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx                45 libavfilter/vf_despill.c     DespillContext *s = ctx->priv;
ctx                94 libavfilter/vf_despill.c     AVFilterContext *ctx = link->dst;
ctx               100 libavfilter/vf_despill.c     if (ret = ctx->internal->execute(ctx, do_despill_slice, frame, NULL, FFMIN(frame->height, ff_filter_get_nb_threads(ctx))))
ctx               103 libavfilter/vf_despill.c     return ff_filter_frame(ctx->outputs[0], frame);
ctx               108 libavfilter/vf_despill.c     AVFilterContext *ctx = outlink->src;
ctx               109 libavfilter/vf_despill.c     DespillContext *s = ctx->priv;
ctx               119 libavfilter/vf_despill.c static av_cold int query_formats(AVFilterContext *ctx)
ctx               134 libavfilter/vf_despill.c     return ff_set_common_formats(ctx, formats);
ctx                73 libavfilter/vf_detelecine.c static av_cold int init(AVFilterContext *ctx)
ctx                75 libavfilter/vf_detelecine.c     DetelecineContext *s = ctx->priv;
ctx                81 libavfilter/vf_detelecine.c         av_log(ctx, AV_LOG_ERROR, "No pattern provided.\n");
ctx                87 libavfilter/vf_detelecine.c             av_log(ctx, AV_LOG_ERROR, "Provided pattern includes non-numeric characters.\n");
ctx                98 libavfilter/vf_detelecine.c         av_log(ctx, AV_LOG_ERROR, "Provided start_frame is too big.\n");
ctx               119 libavfilter/vf_detelecine.c     av_log(ctx, AV_LOG_INFO, "Detelecine pattern %s removes up to %d frames per frame, pts advance factor: %d/%d\n",
ctx               125 libavfilter/vf_detelecine.c static int query_formats(AVFilterContext *ctx)
ctx               139 libavfilter/vf_detelecine.c     return ff_set_common_formats(ctx, pix_fmts);
ctx               173 libavfilter/vf_detelecine.c     AVFilterContext *ctx = outlink->src;
ctx               174 libavfilter/vf_detelecine.c     DetelecineContext *s = ctx->priv;
ctx               175 libavfilter/vf_detelecine.c     const AVFilterLink *inlink = ctx->inputs[0];
ctx               179 libavfilter/vf_detelecine.c         av_log(ctx, AV_LOG_ERROR, "The input needs a constant frame rate; "
ctx               184 libavfilter/vf_detelecine.c     av_log(ctx, AV_LOG_VERBOSE, "FPS: %d/%d -> %d/%d\n",
ctx               189 libavfilter/vf_detelecine.c     av_log(ctx, AV_LOG_VERBOSE, "TB: %d/%d -> %d/%d\n",
ctx               199 libavfilter/vf_detelecine.c     AVFilterContext *ctx = inlink->dst;
ctx               200 libavfilter/vf_detelecine.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               201 libavfilter/vf_detelecine.c     DetelecineContext *s = ctx->priv;
ctx               350 libavfilter/vf_detelecine.c static av_cold void uninit(AVFilterContext *ctx)
ctx               352 libavfilter/vf_detelecine.c     DetelecineContext *s = ctx->priv;
ctx                66 libavfilter/vf_displace.c static int query_formats(AVFilterContext *ctx)
ctx                81 libavfilter/vf_displace.c     return ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               245 libavfilter/vf_displace.c     AVFilterContext *ctx = fs->parent;
ctx               247 libavfilter/vf_displace.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               256 libavfilter/vf_displace.c     if (ctx->is_disabled) {
ctx               275 libavfilter/vf_displace.c     AVFilterContext *ctx = inlink->dst;
ctx               276 libavfilter/vf_displace.c     DisplaceContext *s = ctx->priv;
ctx               306 libavfilter/vf_displace.c     AVFilterContext *ctx = outlink->src;
ctx               307 libavfilter/vf_displace.c     DisplaceContext *s = ctx->priv;
ctx               308 libavfilter/vf_displace.c     AVFilterLink *srclink = ctx->inputs[0];
ctx               309 libavfilter/vf_displace.c     AVFilterLink *xlink = ctx->inputs[1];
ctx               310 libavfilter/vf_displace.c     AVFilterLink *ylink = ctx->inputs[2];
ctx               316 libavfilter/vf_displace.c         av_log(ctx, AV_LOG_ERROR, "inputs must be of same pixel format\n");
ctx               323 libavfilter/vf_displace.c         av_log(ctx, AV_LOG_ERROR, "First input link %s parameters "
ctx               327 libavfilter/vf_displace.c                ctx->input_pads[0].name, srclink->w, srclink->h,
ctx               328 libavfilter/vf_displace.c                ctx->input_pads[1].name, xlink->w, xlink->h,
ctx               329 libavfilter/vf_displace.c                ctx->input_pads[2].name, ylink->w, ylink->h);
ctx               338 libavfilter/vf_displace.c     ret = ff_framesync_init(&s->fs, ctx, 3);
ctx               364 libavfilter/vf_displace.c static int activate(AVFilterContext *ctx)
ctx               366 libavfilter/vf_displace.c     DisplaceContext *s = ctx->priv;
ctx               370 libavfilter/vf_displace.c static av_cold void uninit(AVFilterContext *ctx)
ctx               372 libavfilter/vf_displace.c     DisplaceContext *s = ctx->priv;
ctx                76 libavfilter/vf_dnn_processing.c     DnnProcessingContext *ctx = context->priv;
ctx                78 libavfilter/vf_dnn_processing.c     if (!ctx->model_filename) {
ctx                79 libavfilter/vf_dnn_processing.c         av_log(ctx, AV_LOG_ERROR, "model file for network is not specified\n");
ctx                82 libavfilter/vf_dnn_processing.c     if (!ctx->model_inputname) {
ctx                83 libavfilter/vf_dnn_processing.c         av_log(ctx, AV_LOG_ERROR, "input name of the model network is not specified\n");
ctx                86 libavfilter/vf_dnn_processing.c     if (!ctx->model_outputname) {
ctx                87 libavfilter/vf_dnn_processing.c         av_log(ctx, AV_LOG_ERROR, "output name of the model network is not specified\n");
ctx                91 libavfilter/vf_dnn_processing.c     ctx->dnn_module = ff_get_dnn_module(ctx->backend_type);
ctx                92 libavfilter/vf_dnn_processing.c     if (!ctx->dnn_module) {
ctx                93 libavfilter/vf_dnn_processing.c         av_log(ctx, AV_LOG_ERROR, "could not create DNN module for requested backend\n");
ctx                96 libavfilter/vf_dnn_processing.c     if (!ctx->dnn_module->load_model) {
ctx                97 libavfilter/vf_dnn_processing.c         av_log(ctx, AV_LOG_ERROR, "load_model for network is not specified\n");
ctx               101 libavfilter/vf_dnn_processing.c     ctx->model = (ctx->dnn_module->load_model)(ctx->model_filename);
ctx               102 libavfilter/vf_dnn_processing.c     if (!ctx->model) {
ctx               103 libavfilter/vf_dnn_processing.c         av_log(ctx, AV_LOG_ERROR, "could not load DNN model\n");
ctx               124 libavfilter/vf_dnn_processing.c     av_log(ctx, AV_LOG_ERROR,                               \
ctx               132 libavfilter/vf_dnn_processing.c     AVFilterContext *ctx   = inlink->dst;
ctx               137 libavfilter/vf_dnn_processing.c         av_log(ctx, AV_LOG_ERROR, "the model requires frame height %d but got %d\n",
ctx               142 libavfilter/vf_dnn_processing.c         av_log(ctx, AV_LOG_ERROR, "the model requires frame width %d but got %d\n",
ctx               155 libavfilter/vf_dnn_processing.c             av_log(ctx, AV_LOG_ERROR, "only support dnn models with input data type as float32 and uint8.\n");
ctx               165 libavfilter/vf_dnn_processing.c             av_log(ctx, AV_LOG_ERROR, "only support dnn models with input data type uint8.\n");
ctx               180 libavfilter/vf_dnn_processing.c             av_log(ctx, AV_LOG_ERROR, "only support dnn models with input data type float32.\n");
ctx               185 libavfilter/vf_dnn_processing.c         av_log(ctx, AV_LOG_ERROR, "%s not supported.\n", av_get_pix_fmt_name(fmt));
ctx               195 libavfilter/vf_dnn_processing.c     DnnProcessingContext *ctx = context->priv;
ctx               200 libavfilter/vf_dnn_processing.c     result = ctx->model->get_input(ctx->model->model, &model_input, ctx->model_inputname);
ctx               202 libavfilter/vf_dnn_processing.c         av_log(ctx, AV_LOG_ERROR, "could not get input from the model\n");
ctx               211 libavfilter/vf_dnn_processing.c     ctx->input.width    = inlink->w;
ctx               212 libavfilter/vf_dnn_processing.c     ctx->input.height   = inlink->h;
ctx               213 libavfilter/vf_dnn_processing.c     ctx->input.channels = model_input.channels;
ctx               214 libavfilter/vf_dnn_processing.c     ctx->input.dt = model_input.dt;
ctx               216 libavfilter/vf_dnn_processing.c     result = (ctx->model->set_input_output)(ctx->model->model,
ctx               217 libavfilter/vf_dnn_processing.c                                         &ctx->input, ctx->model_inputname,
ctx               218 libavfilter/vf_dnn_processing.c                                         (const char **)&ctx->model_outputname, 1);
ctx               220 libavfilter/vf_dnn_processing.c         av_log(ctx, AV_LOG_ERROR, "could not set input and output for the model\n");
ctx               230 libavfilter/vf_dnn_processing.c     DnnProcessingContext *ctx = context->priv;
ctx               233 libavfilter/vf_dnn_processing.c     DNNDataType input_dt  = ctx->input.dt;
ctx               234 libavfilter/vf_dnn_processing.c     DNNDataType output_dt = ctx->output.dt;
ctx               240 libavfilter/vf_dnn_processing.c             ctx->sws_gray8_to_grayf32 = sws_getContext(inlink->w * 3,
ctx               249 libavfilter/vf_dnn_processing.c             ctx->sws_grayf32_to_gray8 = sws_getContext(outlink->w * 3,
ctx               265 libavfilter/vf_dnn_processing.c         ctx->sws_gray8_to_grayf32 = sws_getContext(inlink->w,
ctx               272 libavfilter/vf_dnn_processing.c         ctx->sws_grayf32_to_gray8 = sws_getContext(outlink->w,
ctx               286 libavfilter/vf_dnn_processing.c             ctx->sws_uv_scale = sws_getContext(sws_src_w, sws_src_h, AV_PIX_FMT_GRAY8,
ctx               289 libavfilter/vf_dnn_processing.c             ctx->sws_uv_height = sws_src_h;
ctx               303 libavfilter/vf_dnn_processing.c     DnnProcessingContext *ctx = context->priv;
ctx               307 libavfilter/vf_dnn_processing.c     result = (ctx->dnn_module->execute_model)(ctx->model, &ctx->output, 1);
ctx               309 libavfilter/vf_dnn_processing.c         av_log(ctx, AV_LOG_ERROR, "failed to execute model\n");
ctx               313 libavfilter/vf_dnn_processing.c     outlink->w = ctx->output.width;
ctx               314 libavfilter/vf_dnn_processing.c     outlink->h = ctx->output.height;
ctx               321 libavfilter/vf_dnn_processing.c static int copy_from_frame_to_dnn(DnnProcessingContext *ctx, const AVFrame *frame)
ctx               324 libavfilter/vf_dnn_processing.c     DNNData *dnn_input = &ctx->input;
ctx               330 libavfilter/vf_dnn_processing.c             sws_scale(ctx->sws_gray8_to_grayf32, (const uint8_t **)frame->data, frame->linesize,
ctx               351 libavfilter/vf_dnn_processing.c         sws_scale(ctx->sws_gray8_to_grayf32, (const uint8_t **)frame->data, frame->linesize,
ctx               362 libavfilter/vf_dnn_processing.c static int copy_from_dnn_to_frame(DnnProcessingContext *ctx, AVFrame *frame)
ctx               365 libavfilter/vf_dnn_processing.c     DNNData *dnn_output = &ctx->output;
ctx               371 libavfilter/vf_dnn_processing.c             sws_scale(ctx->sws_grayf32_to_gray8, (const uint8_t *[4]){(const uint8_t *)dnn_output->data, 0, 0, 0},
ctx               401 libavfilter/vf_dnn_processing.c         sws_scale(ctx->sws_grayf32_to_gray8, (const uint8_t *[4]){(const uint8_t *)dnn_output->data, 0, 0, 0},
ctx               419 libavfilter/vf_dnn_processing.c static int copy_uv_planes(DnnProcessingContext *ctx, AVFrame *out, const AVFrame *in)
ctx               424 libavfilter/vf_dnn_processing.c     if (!ctx->sws_uv_scale) {
ctx               435 libavfilter/vf_dnn_processing.c         sws_scale(ctx->sws_uv_scale, (const uint8_t **)(in->data + 1), in->linesize + 1,
ctx               436 libavfilter/vf_dnn_processing.c                   0, ctx->sws_uv_height, out->data + 1, out->linesize + 1);
ctx               437 libavfilter/vf_dnn_processing.c         sws_scale(ctx->sws_uv_scale, (const uint8_t **)(in->data + 2), in->linesize + 2,
ctx               438 libavfilter/vf_dnn_processing.c                   0, ctx->sws_uv_height, out->data + 2, out->linesize + 2);
ctx               448 libavfilter/vf_dnn_processing.c     DnnProcessingContext *ctx = context->priv;
ctx               452 libavfilter/vf_dnn_processing.c     copy_from_frame_to_dnn(ctx, in);
ctx               454 libavfilter/vf_dnn_processing.c     dnn_result = (ctx->dnn_module->execute_model)(ctx->model, &ctx->output, 1);
ctx               456 libavfilter/vf_dnn_processing.c         av_log(ctx, AV_LOG_ERROR, "failed to execute model\n");
ctx               468 libavfilter/vf_dnn_processing.c     copy_from_dnn_to_frame(ctx, out);
ctx               471 libavfilter/vf_dnn_processing.c         copy_uv_planes(ctx, out, in);
ctx               477 libavfilter/vf_dnn_processing.c static av_cold void uninit(AVFilterContext *ctx)
ctx               479 libavfilter/vf_dnn_processing.c     DnnProcessingContext *context = ctx->priv;
ctx                88 libavfilter/vf_drawbox.c static av_cold int init(AVFilterContext *ctx)
ctx                90 libavfilter/vf_drawbox.c     DrawBoxContext *s = ctx->priv;
ctx                95 libavfilter/vf_drawbox.c     else if (av_parse_color(rgba_color, s->color_str, -1, ctx) < 0)
ctx               108 libavfilter/vf_drawbox.c static int query_formats(AVFilterContext *ctx)
ctx               121 libavfilter/vf_drawbox.c     return ff_set_common_formats(ctx, fmts_list);
ctx               126 libavfilter/vf_drawbox.c     AVFilterContext *ctx = inlink->dst;
ctx               127 libavfilter/vf_drawbox.c     DrawBoxContext *s = ctx->priv;
ctx               155 libavfilter/vf_drawbox.c                                           NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0 && i == NUM_EXPR_EVALS)
ctx               162 libavfilter/vf_drawbox.c                                           NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0 && i == NUM_EXPR_EVALS)
ctx               169 libavfilter/vf_drawbox.c                                           NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0 && i == NUM_EXPR_EVALS)
ctx               176 libavfilter/vf_drawbox.c                                           NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0 && i == NUM_EXPR_EVALS)
ctx               183 libavfilter/vf_drawbox.c                                           NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0 && i == NUM_EXPR_EVALS)
ctx               194 libavfilter/vf_drawbox.c         av_log(ctx, AV_LOG_ERROR, "Size values less than 0 are not acceptable.\n");
ctx               198 libavfilter/vf_drawbox.c     av_log(ctx, AV_LOG_VERBOSE, "x:%d y:%d w:%d h:%d color:0x%02X%02X%02X%02X\n",
ctx               205 libavfilter/vf_drawbox.c     av_log(ctx, AV_LOG_ERROR,
ctx               276 libavfilter/vf_drawbox.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
ctx               278 libavfilter/vf_drawbox.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               279 libavfilter/vf_drawbox.c     DrawBoxContext *s = ctx->priv;
ctx               288 libavfilter/vf_drawbox.c     ret = ff_filter_process_command(ctx, cmd, args, res, res_len, flags);
ctx               292 libavfilter/vf_drawbox.c     ret = init(ctx);
ctx               316 libavfilter/vf_drawtext.c static int load_glyph(AVFilterContext *ctx, Glyph **glyph_ptr, uint32_t code)
ctx               318 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               384 libavfilter/vf_drawtext.c static av_cold int set_fontsize(AVFilterContext *ctx, unsigned int fontsize)
ctx               387 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               390 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR, "Could not set font size to %d pixels: %s\n",
ctx               400 libavfilter/vf_drawtext.c static av_cold int parse_fontsize(AVFilterContext *ctx)
ctx               402 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               412 libavfilter/vf_drawtext.c                              NULL, NULL, fun2_names, fun2, 0, ctx)) < 0)
ctx               418 libavfilter/vf_drawtext.c static av_cold int update_fontsize(AVFilterContext *ctx)
ctx               420 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               427 libavfilter/vf_drawtext.c         if ((err = parse_fontsize(ctx)) < 0)
ctx               436 libavfilter/vf_drawtext.c                 av_log(ctx, AV_LOG_ERROR, "fontsize overflow\n");
ctx               451 libavfilter/vf_drawtext.c     return set_fontsize(ctx, fontsize);
ctx               454 libavfilter/vf_drawtext.c static int load_font_file(AVFilterContext *ctx, const char *path, int index)
ctx               456 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               462 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR, "Could not load font \"%s\": %s\n",
ctx               471 libavfilter/vf_drawtext.c static int load_font_fontconfig(AVFilterContext *ctx)
ctx               473 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               485 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR, "impossible to init fontconfig\n");
ctx               491 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR, "could not parse fontconfig pat");
ctx               497 libavfilter/vf_drawtext.c     parse_err = parse_fontsize(ctx);
ctx               502 libavfilter/vf_drawtext.c             av_log(ctx, AV_LOG_ERROR, "impossible to find font information");
ctx               512 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR, "could not substitue fontconfig options"); /* very unlikely */
ctx               521 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR,
ctx               530 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR, "impossible to find font information");
ctx               535 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR, "No file path for %s\n",
ctx               540 libavfilter/vf_drawtext.c     av_log(ctx, AV_LOG_INFO, "Using \"%s\"\n", filename);
ctx               544 libavfilter/vf_drawtext.c     err = load_font_file(ctx, filename, index);
ctx               554 libavfilter/vf_drawtext.c static int load_font(AVFilterContext *ctx)
ctx               556 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               560 libavfilter/vf_drawtext.c     err = load_font_file(ctx, s->fontfile, 0);
ctx               564 libavfilter/vf_drawtext.c     err = load_font_fontconfig(ctx);
ctx               571 libavfilter/vf_drawtext.c static int load_textfile(AVFilterContext *ctx)
ctx               573 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               579 libavfilter/vf_drawtext.c     if ((err = av_file_map(s->textfile, &textbuf, &textbuf_size, 0, ctx)) < 0) {
ctx               580 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR,
ctx               604 libavfilter/vf_drawtext.c static int shape_text(AVFilterContext *ctx)
ctx               606 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               691 libavfilter/vf_drawtext.c static av_cold int init(AVFilterContext *ctx)
ctx               694 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               704 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR, "No font filename provided\n");
ctx               710 libavfilter/vf_drawtext.c             av_log(ctx, AV_LOG_ERROR,
ctx               714 libavfilter/vf_drawtext.c         if ((err = load_textfile(ctx)) < 0)
ctx               719 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_WARNING, "No file to reload\n");
ctx               723 libavfilter/vf_drawtext.c                                                s->tc_opt_string, ctx);
ctx               733 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR,
ctx               740 libavfilter/vf_drawtext.c         if ((err = shape_text(ctx)) < 0)
ctx               745 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR,
ctx               750 libavfilter/vf_drawtext.c     if ((err = load_font(ctx)) < 0)
ctx               753 libavfilter/vf_drawtext.c     if ((err = update_fontsize(ctx)) < 0)
ctx               758 libavfilter/vf_drawtext.c             av_log(ctx, AV_LOG_ERROR, "Coult not init FT stroker\n");
ctx               768 libavfilter/vf_drawtext.c     load_glyph(ctx, NULL, 0);
ctx               771 libavfilter/vf_drawtext.c     if ((err = load_glyph(ctx, &glyph, ' ')) < 0) {
ctx               772 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR, "Could not set tabsize.\n");
ctx               779 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_WARNING, "expansion=strftime is deprecated.\n");
ctx               787 libavfilter/vf_drawtext.c static int query_formats(AVFilterContext *ctx)
ctx               789 libavfilter/vf_drawtext.c     return ff_set_common_formats(ctx, ff_draw_supported_pixel_formats(0));
ctx               802 libavfilter/vf_drawtext.c static av_cold void uninit(AVFilterContext *ctx)
ctx               804 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               830 libavfilter/vf_drawtext.c     AVFilterContext *ctx = inlink->dst;
ctx               831 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               859 libavfilter/vf_drawtext.c                              NULL, NULL, fun2_names, fun2, 0, ctx)) < 0 ||
ctx               861 libavfilter/vf_drawtext.c                              NULL, NULL, fun2_names, fun2, 0, ctx)) < 0 ||
ctx               863 libavfilter/vf_drawtext.c                              NULL, NULL, fun2_names, fun2, 0, ctx)) < 0) {
ctx               864 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR, "Failed to parse expression: %s \n", expr);
ctx               871 libavfilter/vf_drawtext.c static int command(AVFilterContext *ctx, const char *cmd, const char *arg, char *res, int res_len, int flags)
ctx               873 libavfilter/vf_drawtext.c     DrawTextContext *old = ctx->priv;
ctx               887 libavfilter/vf_drawtext.c         ctx->priv = new;
ctx               888 libavfilter/vf_drawtext.c         ret = av_set_options_string(ctx, arg, "=", ":");
ctx               890 libavfilter/vf_drawtext.c             ctx->priv = old;
ctx               894 libavfilter/vf_drawtext.c         ret = init(ctx);
ctx               896 libavfilter/vf_drawtext.c             uninit(ctx);
ctx               897 libavfilter/vf_drawtext.c             ctx->priv = old;
ctx               903 libavfilter/vf_drawtext.c         ctx->priv = old;
ctx               904 libavfilter/vf_drawtext.c         uninit(ctx);
ctx               907 libavfilter/vf_drawtext.c         ctx->priv = new;
ctx               908 libavfilter/vf_drawtext.c         return config_input(ctx->inputs[0]);
ctx               913 libavfilter/vf_drawtext.c     av_log(ctx, AV_LOG_ERROR, "Failed to process command. Continuing with existing parameters.\n");
ctx               918 libavfilter/vf_drawtext.c static int func_pict_type(AVFilterContext *ctx, AVBPrint *bp,
ctx               921 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               927 libavfilter/vf_drawtext.c static int func_pts(AVFilterContext *ctx, AVBPrint *bp,
ctx               930 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               939 libavfilter/vf_drawtext.c             av_log(ctx, AV_LOG_ERROR, "Invalid delta '%s'\n", argv[1]);
ctx               960 libavfilter/vf_drawtext.c                     av_log(ctx, AV_LOG_ERROR, "Invalid argument '%s'\n", argv[2]);
ctx               981 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR, "Invalid format '%s'\n", fmt);
ctx               987 libavfilter/vf_drawtext.c static int func_frame_num(AVFilterContext *ctx, AVBPrint *bp,
ctx               990 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               996 libavfilter/vf_drawtext.c static int func_metadata(AVFilterContext *ctx, AVBPrint *bp,
ctx               999 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx              1009 libavfilter/vf_drawtext.c static int func_strftime(AVFilterContext *ctx, AVBPrint *bp,
ctx              1025 libavfilter/vf_drawtext.c static int func_eval_expr(AVFilterContext *ctx, AVBPrint *bp,
ctx              1028 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx              1034 libavfilter/vf_drawtext.c                                  &s->prng, 0, ctx);
ctx              1036 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR,
ctx              1045 libavfilter/vf_drawtext.c static int func_eval_expr_int_format(AVFilterContext *ctx, AVBPrint *bp,
ctx              1048 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx              1063 libavfilter/vf_drawtext.c                                  &s->prng, 0, ctx);
ctx              1065 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR,
ctx              1072 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR, "Invalid format '%c' specified,"
ctx              1080 libavfilter/vf_drawtext.c             av_log(ctx, AV_LOG_ERROR, "expr_int_format(): Invalid number of positions"
ctx              1090 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR, "Conversion of floating-point result to int failed. Control register: 0x%08x. Conversion result: %d\n", ret, intval);
ctx              1099 libavfilter/vf_drawtext.c     av_log(ctx, AV_LOG_DEBUG, "Formatting value %f (expr '%s') with spec '%s'\n",
ctx              1126 libavfilter/vf_drawtext.c static int eval_function(AVFilterContext *ctx, AVBPrint *bp, char *fct,
ctx              1135 libavfilter/vf_drawtext.c             av_log(ctx, AV_LOG_ERROR, "%%{%s} requires at least %d arguments\n",
ctx              1140 libavfilter/vf_drawtext.c             av_log(ctx, AV_LOG_ERROR, "%%{%s} requires at most %d arguments\n",
ctx              1147 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR, "%%{%s} is not known\n", fct);
ctx              1150 libavfilter/vf_drawtext.c     return functions[i].func(ctx, bp, fct, argc, argv, functions[i].tag);
ctx              1153 libavfilter/vf_drawtext.c static int expand_function(AVFilterContext *ctx, AVBPrint *bp, char **rtext)
ctx              1161 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR, "Stray %% near '%s'\n", text);
ctx              1171 libavfilter/vf_drawtext.c             av_log(ctx, AV_LOG_ERROR, "Unterminated %%{} near '%s'\n", *rtext);
ctx              1182 libavfilter/vf_drawtext.c     if ((ret = eval_function(ctx, bp, argv[0], argc - 1, argv + 1)) < 0)
ctx              1193 libavfilter/vf_drawtext.c static int expand_text(AVFilterContext *ctx, char *text, AVBPrint *bp)
ctx              1204 libavfilter/vf_drawtext.c             if ((ret = expand_function(ctx, bp, &text)) < 0)
ctx              1284 libavfilter/vf_drawtext.c static int draw_text(AVFilterContext *ctx, AVFrame *frame,
ctx              1287 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx              1288 libavfilter/vf_drawtext.c     AVFilterLink *inlink = ctx->inputs[0];
ctx              1314 libavfilter/vf_drawtext.c         now= frame->pts*av_q2d(ctx->inputs[0]->time_base) + s->basetime/1000000;
ctx              1321 libavfilter/vf_drawtext.c         if ((ret = expand_text(ctx, s->text, &s->expanded_text)) < 0)
ctx              1350 libavfilter/vf_drawtext.c         if ((ret = expand_text(ctx, s->fontcolor_expr, &s->expanded_fontcolor)) < 0)
ctx              1364 libavfilter/vf_drawtext.c     if ((ret = update_fontsize(ctx)) < 0)
ctx              1377 libavfilter/vf_drawtext.c             ret = load_glyph(ctx, &glyph, code);
ctx              1508 libavfilter/vf_drawtext.c     AVFilterContext *ctx = inlink->dst;
ctx              1509 libavfilter/vf_drawtext.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              1510 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx              1514 libavfilter/vf_drawtext.c         if ((ret = load_textfile(ctx)) < 0) {
ctx              1520 libavfilter/vf_drawtext.c             if ((ret = shape_text(ctx)) < 0) {
ctx              1537 libavfilter/vf_drawtext.c     draw_text(ctx, frame, frame->width, frame->height);
ctx              1539 libavfilter/vf_drawtext.c     av_log(ctx, AV_LOG_DEBUG, "n:%d t:%f text_w:%d text_h:%d x:%d y:%d\n",
ctx                89 libavfilter/vf_edgedetect.c static av_cold int init(AVFilterContext *ctx)
ctx                91 libavfilter/vf_edgedetect.c     EdgeDetectContext *edgedetect = ctx->priv;
ctx                98 libavfilter/vf_edgedetect.c static int query_formats(AVFilterContext *ctx)
ctx               100 libavfilter/vf_edgedetect.c     const EdgeDetectContext *edgedetect = ctx->priv;
ctx               119 libavfilter/vf_edgedetect.c     return ff_set_common_formats(ctx, fmts_list);
ctx               125 libavfilter/vf_edgedetect.c     AVFilterContext *ctx = inlink->dst;
ctx               126 libavfilter/vf_edgedetect.c     EdgeDetectContext *edgedetect = ctx->priv;
ctx               146 libavfilter/vf_edgedetect.c static void gaussian_blur(AVFilterContext *ctx, int w, int h,
ctx               332 libavfilter/vf_edgedetect.c     AVFilterContext *ctx = inlink->dst;
ctx               333 libavfilter/vf_edgedetect.c     EdgeDetectContext *edgedetect = ctx->priv;
ctx               334 libavfilter/vf_edgedetect.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               367 libavfilter/vf_edgedetect.c         gaussian_blur(ctx, width, height,
ctx               403 libavfilter/vf_edgedetect.c static av_cold void uninit(AVFilterContext *ctx)
ctx               406 libavfilter/vf_edgedetect.c     EdgeDetectContext *edgedetect = ctx->priv;
ctx                67 libavfilter/vf_elbg.c static av_cold int init(AVFilterContext *ctx)
ctx                69 libavfilter/vf_elbg.c     ELBGContext *elbg = ctx->priv;
ctx                72 libavfilter/vf_elbg.c         av_log(ctx, AV_LOG_ERROR, "pal8 output allows max 256 codebook length.\n");
ctx                83 libavfilter/vf_elbg.c static int query_formats(AVFilterContext *ctx)
ctx                85 libavfilter/vf_elbg.c     ELBGContext *elbg = ctx->priv;
ctx                97 libavfilter/vf_elbg.c         return ff_set_common_formats(ctx, fmts_list);
ctx               103 libavfilter/vf_elbg.c         if ((ret = ff_formats_ref(ff_make_format_list(pix_fmts), &ctx->inputs[0]->out_formats)) < 0 ||
ctx               104 libavfilter/vf_elbg.c             (ret = ff_formats_ref(ff_make_format_list(pal8_fmt), &ctx->outputs[0]->in_formats)) < 0)
ctx               114 libavfilter/vf_elbg.c     AVFilterContext *ctx = inlink->dst;
ctx               115 libavfilter/vf_elbg.c     ELBGContext *elbg = ctx->priv;
ctx               228 libavfilter/vf_elbg.c static av_cold void uninit(AVFilterContext *ctx)
ctx               230 libavfilter/vf_elbg.c     ELBGContext *elbg = ctx->priv;
ctx                56 libavfilter/vf_entropy.c static int query_formats(AVFilterContext *ctx)
ctx                79 libavfilter/vf_entropy.c     return ff_set_common_formats(ctx, formats);
ctx                85 libavfilter/vf_entropy.c     AVFilterContext *ctx = inlink->dst;
ctx                86 libavfilter/vf_entropy.c     EntropyContext *s = ctx->priv;
ctx               112 libavfilter/vf_entropy.c     AVFilterContext *ctx = inlink->dst;
ctx               113 libavfilter/vf_entropy.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               114 libavfilter/vf_entropy.c     EntropyContext *s = ctx->priv;
ctx               171 libavfilter/vf_entropy.c static av_cold void uninit(AVFilterContext *ctx)
ctx               173 libavfilter/vf_entropy.c     EntropyContext *s = ctx->priv;
ctx               184 libavfilter/vf_eq.c static int initialize(AVFilterContext *ctx)
ctx               186 libavfilter/vf_eq.c     EQContext *eq = ctx->priv;
ctx               190 libavfilter/vf_eq.c     if ((ret = set_expr(&eq->contrast_pexpr,     eq->contrast_expr,     "contrast",     ctx)) < 0 ||
ctx               191 libavfilter/vf_eq.c         (ret = set_expr(&eq->brightness_pexpr,   eq->brightness_expr,   "brightness",   ctx)) < 0 ||
ctx               192 libavfilter/vf_eq.c         (ret = set_expr(&eq->saturation_pexpr,   eq->saturation_expr,   "saturation",   ctx)) < 0 ||
ctx               193 libavfilter/vf_eq.c         (ret = set_expr(&eq->gamma_pexpr,        eq->gamma_expr,        "gamma",        ctx)) < 0 ||
ctx               194 libavfilter/vf_eq.c         (ret = set_expr(&eq->gamma_r_pexpr,      eq->gamma_r_expr,      "gamma_r",      ctx)) < 0 ||
ctx               195 libavfilter/vf_eq.c         (ret = set_expr(&eq->gamma_g_pexpr,      eq->gamma_g_expr,      "gamma_g",      ctx)) < 0 ||
ctx               196 libavfilter/vf_eq.c         (ret = set_expr(&eq->gamma_b_pexpr,      eq->gamma_b_expr,      "gamma_b",      ctx)) < 0 ||
ctx               197 libavfilter/vf_eq.c         (ret = set_expr(&eq->gamma_weight_pexpr, eq->gamma_weight_expr, "gamma_weight", ctx)) < 0 )
ctx               210 libavfilter/vf_eq.c static av_cold void uninit(AVFilterContext *ctx)
ctx               212 libavfilter/vf_eq.c     EQContext *eq = ctx->priv;
ctx               235 libavfilter/vf_eq.c static int query_formats(AVFilterContext *ctx)
ctx               249 libavfilter/vf_eq.c     return ff_set_common_formats(ctx, fmts_list);
ctx               256 libavfilter/vf_eq.c     AVFilterContext *ctx = inlink->dst;
ctx               258 libavfilter/vf_eq.c     EQContext *eq = ctx->priv;
ctx               306 libavfilter/vf_eq.c                             void (*set_fn)(EQContext *eq), AVFilterContext *ctx)
ctx               308 libavfilter/vf_eq.c     EQContext *eq = ctx->priv;
ctx               310 libavfilter/vf_eq.c     if ((ret = set_expr(pexpr, args, cmd, ctx)) < 0)
ctx               317 libavfilter/vf_eq.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               320 libavfilter/vf_eq.c     EQContext *eq = ctx->priv;
ctx               323 libavfilter/vf_eq.c     if (!strcmp(cmd, #param_name)) return set_param(&eq->param_name##_pexpr, args, cmd, set_##set_fn_name, ctx);
ctx               118 libavfilter/vf_extractplanes.c static int query_formats(AVFilterContext *ctx)
ctx               146 libavfilter/vf_extractplanes.c     if (!ctx->inputs[0]->in_formats ||
ctx               147 libavfilter/vf_extractplanes.c         !ctx->inputs[0]->in_formats->nb_formats) {
ctx               151 libavfilter/vf_extractplanes.c     avff = ctx->inputs[0]->in_formats;
ctx               160 libavfilter/vf_extractplanes.c     if (!ctx->inputs[0]->out_formats)
ctx               161 libavfilter/vf_extractplanes.c         if ((ret = ff_formats_ref(ff_make_format_list(in_pixfmts), &ctx->inputs[0]->out_formats)) < 0)
ctx               195 libavfilter/vf_extractplanes.c     for (i = 0; i < ctx->nb_outputs; i++)
ctx               196 libavfilter/vf_extractplanes.c         if ((ret = ff_formats_ref(ff_make_format_list(out_pixfmts), &ctx->outputs[i]->in_formats)) < 0)
ctx               203 libavfilter/vf_extractplanes.c     AVFilterContext *ctx = inlink->dst;
ctx               204 libavfilter/vf_extractplanes.c     ExtractPlanesContext *s = ctx->priv;
ctx               214 libavfilter/vf_extractplanes.c         av_log(ctx, AV_LOG_ERROR, "Requested planes not available.\n");
ctx               235 libavfilter/vf_extractplanes.c     AVFilterContext *ctx = outlink->src;
ctx               236 libavfilter/vf_extractplanes.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               237 libavfilter/vf_extractplanes.c     ExtractPlanesContext *s = ctx->priv;
ctx               239 libavfilter/vf_extractplanes.c     const int output = outlink->srcpad - ctx->output_pads;
ctx               276 libavfilter/vf_extractplanes.c     AVFilterContext *ctx = inlink->dst;
ctx               277 libavfilter/vf_extractplanes.c     ExtractPlanesContext *s = ctx->priv;
ctx               280 libavfilter/vf_extractplanes.c     for (i = 0; i < ctx->nb_outputs; i++) {
ctx               281 libavfilter/vf_extractplanes.c         AVFilterLink *outlink = ctx->outputs[i];
ctx               315 libavfilter/vf_extractplanes.c     if (eof == ctx->nb_outputs)
ctx               322 libavfilter/vf_extractplanes.c static av_cold int init(AVFilterContext *ctx)
ctx               324 libavfilter/vf_extractplanes.c     ExtractPlanesContext *s = ctx->priv;
ctx               335 libavfilter/vf_extractplanes.c         name = av_asprintf("out%d", ctx->nb_outputs);
ctx               338 libavfilter/vf_extractplanes.c         s->map[ctx->nb_outputs] = i;
ctx               343 libavfilter/vf_extractplanes.c         if ((ret = ff_insert_outpad(ctx, ctx->nb_outputs, &pad)) < 0) {
ctx               352 libavfilter/vf_extractplanes.c static av_cold void uninit(AVFilterContext *ctx)
ctx               356 libavfilter/vf_extractplanes.c     for (i = 0; i < ctx->nb_outputs; i++)
ctx               357 libavfilter/vf_extractplanes.c         av_freep(&ctx->output_pads[i].name);
ctx               385 libavfilter/vf_extractplanes.c static av_cold int init_alphaextract(AVFilterContext *ctx)
ctx               387 libavfilter/vf_extractplanes.c     ExtractPlanesContext *s = ctx->priv;
ctx               391 libavfilter/vf_extractplanes.c     return init(ctx);
ctx                68 libavfilter/vf_fade.c     int (*filter_slice_luma)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx                69 libavfilter/vf_fade.c     int (*filter_slice_chroma)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx                70 libavfilter/vf_fade.c     int (*filter_slice_alpha)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx                73 libavfilter/vf_fade.c static av_cold int init(AVFilterContext *ctx)
ctx                75 libavfilter/vf_fade.c     FadeContext *s = ctx->priv;
ctx                87 libavfilter/vf_fade.c         av_log(ctx, AV_LOG_VERBOSE,
ctx                93 libavfilter/vf_fade.c         av_log(ctx, AV_LOG_VERBOSE,
ctx               103 libavfilter/vf_fade.c static int query_formats(AVFilterContext *ctx)
ctx               105 libavfilter/vf_fade.c     const FadeContext *s = ctx->priv;
ctx               166 libavfilter/vf_fade.c     return ff_set_common_formats(ctx, fmts_list);
ctx               233 libavfilter/vf_fade.c static int filter_slice_rgb(AVFilterContext *ctx, void *arg, int jobnr,
ctx               236 libavfilter/vf_fade.c     FadeContext *s = ctx->priv;
ctx               253 libavfilter/vf_fade.c static int filter_slice_luma(AVFilterContext *ctx, void *arg, int jobnr,
ctx               256 libavfilter/vf_fade.c     FadeContext *s = ctx->priv;
ctx               278 libavfilter/vf_fade.c static int filter_slice_luma16(AVFilterContext *ctx, void *arg, int jobnr,
ctx               281 libavfilter/vf_fade.c     FadeContext *s = ctx->priv;
ctx               303 libavfilter/vf_fade.c static int filter_slice_chroma(AVFilterContext *ctx, void *arg, int jobnr,
ctx               306 libavfilter/vf_fade.c     FadeContext *s = ctx->priv;
ctx               330 libavfilter/vf_fade.c static int filter_slice_chroma16(AVFilterContext *ctx, void *arg, int jobnr,
ctx               333 libavfilter/vf_fade.c     FadeContext *s = ctx->priv;
ctx               356 libavfilter/vf_fade.c static int filter_slice_alpha(AVFilterContext *ctx, void *arg, int jobnr,
ctx               359 libavfilter/vf_fade.c     FadeContext *s = ctx->priv;
ctx               381 libavfilter/vf_fade.c static int filter_slice_alpha16(AVFilterContext *ctx, void *arg, int jobnr,
ctx               384 libavfilter/vf_fade.c     FadeContext *s = ctx->priv;
ctx               441 libavfilter/vf_fade.c     AVFilterContext *ctx = inlink->dst;
ctx               442 libavfilter/vf_fade.c     FadeContext *s       = ctx->priv;
ctx               495 libavfilter/vf_fade.c             ctx->internal->execute(ctx, s->filter_slice_alpha, frame, NULL,
ctx               496 libavfilter/vf_fade.c                                 FFMIN(frame->height, ff_filter_get_nb_threads(ctx)));
ctx               498 libavfilter/vf_fade.c             ctx->internal->execute(ctx, filter_slice_rgb, frame, NULL,
ctx               499 libavfilter/vf_fade.c                                    FFMIN(frame->height, ff_filter_get_nb_threads(ctx)));
ctx               502 libavfilter/vf_fade.c             ctx->internal->execute(ctx, s->filter_slice_luma, frame, NULL,
ctx               503 libavfilter/vf_fade.c                                 FFMIN(frame->height, ff_filter_get_nb_threads(ctx)));
ctx               507 libavfilter/vf_fade.c                 ctx->internal->execute(ctx, s->filter_slice_chroma, frame, NULL,
ctx               508 libavfilter/vf_fade.c                                     FFMIN(frame->height, ff_filter_get_nb_threads(ctx)));
ctx                94 libavfilter/vf_fftdnoiz.c static av_cold int init(AVFilterContext *ctx)
ctx                96 libavfilter/vf_fftdnoiz.c     FFTdnoizContext *s = ctx->priv;
ctx               111 libavfilter/vf_fftdnoiz.c static int query_formats(AVFilterContext *ctx)
ctx               142 libavfilter/vf_fftdnoiz.c     return ff_set_common_formats(ctx, fmts_list);
ctx               189 libavfilter/vf_fftdnoiz.c     AVFilterContext *ctx = inlink->dst;
ctx               191 libavfilter/vf_fftdnoiz.c     FFTdnoizContext *s = ctx->priv;
ctx               224 libavfilter/vf_fftdnoiz.c         av_log(ctx, AV_LOG_DEBUG, "nox:%d noy:%d size:%d\n", p->nox, p->noy, size);
ctx               520 libavfilter/vf_fftdnoiz.c     AVFilterContext *ctx = inlink->dst;
ctx               521 libavfilter/vf_fftdnoiz.c     FFTdnoizContext *s = ctx->priv;
ctx               522 libavfilter/vf_fftdnoiz.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               573 libavfilter/vf_fftdnoiz.c         if (!((1 << plane) & s->planesf) || ctx->is_disabled) {
ctx               620 libavfilter/vf_fftdnoiz.c     AVFilterContext *ctx = outlink->src;
ctx               621 libavfilter/vf_fftdnoiz.c     FFTdnoizContext *s = ctx->priv;
ctx               624 libavfilter/vf_fftdnoiz.c     ret = ff_request_frame(ctx->inputs[0]);
ctx               638 libavfilter/vf_fftdnoiz.c         ret = filter_frame(ctx->inputs[0], buf);
ctx               647 libavfilter/vf_fftdnoiz.c static av_cold void uninit(AVFilterContext *ctx)
ctx               649 libavfilter/vf_fftdnoiz.c     FFTdnoizContext *s = ctx->priv;
ctx               212 libavfilter/vf_fftfilt.c static av_cold int initialize(AVFilterContext *ctx)
ctx               214 libavfilter/vf_fftfilt.c     FFTFILTContext *s = ctx->priv;
ctx               239 libavfilter/vf_fftfilt.c                             NULL, NULL, func2_names, func2, 0, ctx);
ctx               332 libavfilter/vf_fftfilt.c     AVFilterContext *ctx = inlink->dst;
ctx               334 libavfilter/vf_fftfilt.c     FFTFILTContext *s = ctx->priv;
ctx               372 libavfilter/vf_fftfilt.c static av_cold void uninit(AVFilterContext *ctx)
ctx               374 libavfilter/vf_fftfilt.c     FFTFILTContext *s = ctx->priv;
ctx               388 libavfilter/vf_fftfilt.c static int query_formats(AVFilterContext *ctx)
ctx               410 libavfilter/vf_fftfilt.c     return ff_set_common_formats(ctx, fmts_list);
ctx                54 libavfilter/vf_field.c     AVFilterContext *ctx = outlink->src;
ctx                55 libavfilter/vf_field.c     FieldContext *field = ctx->priv;
ctx                56 libavfilter/vf_field.c     AVFilterLink *inlink = ctx->inputs[0];
ctx                63 libavfilter/vf_field.c     av_log(ctx, AV_LOG_VERBOSE, "w:%d h:%d type:%s -> w:%d h:%d\n",
ctx                59 libavfilter/vf_fieldhint.c static av_cold int init(AVFilterContext *ctx)
ctx                61 libavfilter/vf_fieldhint.c     FieldHintContext *s = ctx->priv;
ctx                65 libavfilter/vf_fieldhint.c         av_log(ctx, AV_LOG_ERROR, "Hint file must be set.\n");
ctx                71 libavfilter/vf_fieldhint.c         av_log(ctx, AV_LOG_ERROR, "%s: %s\n", s->hint_file_str, av_err2str(ret));
ctx                78 libavfilter/vf_fieldhint.c static int query_formats(AVFilterContext *ctx)
ctx                92 libavfilter/vf_fieldhint.c     return ff_set_common_formats(ctx, pix_fmts);
ctx               114 libavfilter/vf_fieldhint.c     AVFilterContext *ctx = inlink->dst;
ctx               115 libavfilter/vf_fieldhint.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               116 libavfilter/vf_fieldhint.c     FieldHintContext *s = ctx->priv;
ctx               148 libavfilter/vf_fieldhint.c                 av_log(ctx, AV_LOG_ERROR, "Invalid entry at line %"PRId64".\n", s->line);
ctx               155 libavfilter/vf_fieldhint.c                     av_log(ctx, AV_LOG_ERROR, "Out of range frames %"PRId64" and/or %"PRId64" on line %"PRId64" for %"PRId64". input frame.\n", tf, bf, s->line, inlink->frame_count_out);
ctx               162 libavfilter/vf_fieldhint.c                     av_log(ctx, AV_LOG_ERROR, "Out of range %"PRId64" and/or %"PRId64" on line %"PRId64" for %"PRId64". input frame.\n", tf, bf, s->line, inlink->frame_count_out);
ctx               168 libavfilter/vf_fieldhint.c             av_log(ctx, AV_LOG_ERROR, "Missing entry for %"PRId64". input frame.\n", inlink->frame_count_out);
ctx               203 libavfilter/vf_fieldhint.c         av_log(ctx, AV_LOG_ERROR, "Invalid field: %c.\n", field);
ctx               226 libavfilter/vf_fieldhint.c         av_log(ctx, AV_LOG_ERROR, "Invalid hint: %c.\n", hint);
ctx               251 libavfilter/vf_fieldhint.c     AVFilterContext *ctx = outlink->src;
ctx               252 libavfilter/vf_fieldhint.c     FieldHintContext *s = ctx->priv;
ctx               258 libavfilter/vf_fieldhint.c     ret = ff_request_frame(ctx->inputs[0]);
ctx               263 libavfilter/vf_fieldhint.c         ret = filter_frame(ctx->inputs[0], next);
ctx               270 libavfilter/vf_fieldhint.c static av_cold void uninit(AVFilterContext *ctx)
ctx               272 libavfilter/vf_fieldhint.c     FieldHintContext *s = ctx->priv;
ctx               622 libavfilter/vf_fieldmatch.c static AVFrame *create_weave_frame(AVFilterContext *ctx, int match, int field,
ctx               626 libavfilter/vf_fieldmatch.c     FieldMatchContext *fm = ctx->priv;
ctx               631 libavfilter/vf_fieldmatch.c         AVFilterLink *outlink = ctx->outputs[0];
ctx               649 libavfilter/vf_fieldmatch.c static int checkmm(AVFilterContext *ctx, int *combs, int m1, int m2,
ctx               652 libavfilter/vf_fieldmatch.c     const FieldMatchContext *fm = ctx->priv;
ctx               657 libavfilter/vf_fieldmatch.c             gen_frames[mid] = create_weave_frame(ctx, mid, field,               \
ctx               678 libavfilter/vf_fieldmatch.c     AVFilterContext *ctx  = inlink->dst;
ctx               679 libavfilter/vf_fieldmatch.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               680 libavfilter/vf_fieldmatch.c     FieldMatchContext *fm = ctx->priv;
ctx               727 libavfilter/vf_fieldmatch.c             gen_frames[i] = create_weave_frame(ctx, i, field, fm->prv, fm->src, fm->nxt);
ctx               734 libavfilter/vf_fieldmatch.c         av_log(ctx, AV_LOG_INFO, "COMBS: %3d %3d %3d %3d %3d\n",
ctx               769 libavfilter/vf_fieldmatch.c             match = checkmm(ctx, combs, match, match == fxo[mP] ? fxo[mC] : fxo[mP], gen_frames, field);
ctx               772 libavfilter/vf_fieldmatch.c             match = checkmm(ctx, combs, match, fxo[mN], gen_frames, field);
ctx               775 libavfilter/vf_fieldmatch.c             match = checkmm(ctx, combs, match, fxo[mU], gen_frames, field);
ctx               778 libavfilter/vf_fieldmatch.c             match = checkmm(ctx, combs, match, fxo[mN], gen_frames, field);
ctx               779 libavfilter/vf_fieldmatch.c             match = checkmm(ctx, combs, match, fxo[mU], gen_frames, field);
ctx               780 libavfilter/vf_fieldmatch.c             match = checkmm(ctx, combs, match, fxo[mB], gen_frames, field);
ctx               784 libavfilter/vf_fieldmatch.c             match = checkmm(ctx, combs, match, match == fxo[mP] ? fxo[mC] : fxo[mP], gen_frames, field);
ctx               787 libavfilter/vf_fieldmatch.c             match = checkmm(ctx, combs, match, fxo[mU], gen_frames, field);
ctx               788 libavfilter/vf_fieldmatch.c             match = checkmm(ctx, combs, match, fxo[mB], gen_frames, field);
ctx               799 libavfilter/vf_fieldmatch.c         dst = create_weave_frame(ctx, match, field, fm->prv2, fm->src2, fm->nxt2);
ctx               802 libavfilter/vf_fieldmatch.c             dst = create_weave_frame(ctx, match, field, fm->prv, fm->src, fm->nxt);
ctx               817 libavfilter/vf_fieldmatch.c         av_log(ctx, AV_LOG_WARNING, "Frame #%"PRId64" at %s is still interlaced\n",
ctx               822 libavfilter/vf_fieldmatch.c     av_log(ctx, AV_LOG_DEBUG, "SC:%d | COMBS: %3d %3d %3d %3d %3d (combpel=%d)"
ctx               835 libavfilter/vf_fieldmatch.c static int activate(AVFilterContext *ctx)
ctx               837 libavfilter/vf_fieldmatch.c     FieldMatchContext *fm = ctx->priv;
ctx               842 libavfilter/vf_fieldmatch.c     FF_FILTER_FORWARD_STATUS_BACK_ALL(ctx->outputs[0], ctx);
ctx               845 libavfilter/vf_fieldmatch.c         (ret = ff_inlink_consume_frame(ctx->inputs[INPUT_MAIN], &frame)) > 0) {
ctx               846 libavfilter/vf_fieldmatch.c         ret = filter_frame(ctx->inputs[INPUT_MAIN], frame);
ctx               854 libavfilter/vf_fieldmatch.c         (ret = ff_inlink_consume_frame(ctx->inputs[INPUT_CLEANSRC], &frame)) > 0) {
ctx               855 libavfilter/vf_fieldmatch.c         ret = filter_frame(ctx->inputs[INPUT_CLEANSRC], frame);
ctx               861 libavfilter/vf_fieldmatch.c     } else if (ff_inlink_acknowledge_status(ctx->inputs[INPUT_MAIN], &status, &pts)) {
ctx               864 libavfilter/vf_fieldmatch.c             ret = filter_frame(ctx->inputs[INPUT_MAIN], NULL);
ctx               866 libavfilter/vf_fieldmatch.c         ff_outlink_set_status(ctx->outputs[0], status, pts);
ctx               868 libavfilter/vf_fieldmatch.c     } else if (fm->ppsrc && ff_inlink_acknowledge_status(ctx->inputs[INPUT_CLEANSRC], &status, &pts)) {
ctx               871 libavfilter/vf_fieldmatch.c             ret = filter_frame(ctx->inputs[INPUT_CLEANSRC], NULL);
ctx               873 libavfilter/vf_fieldmatch.c         ff_outlink_set_status(ctx->outputs[0], status, pts);
ctx               876 libavfilter/vf_fieldmatch.c         if (ff_outlink_frame_wanted(ctx->outputs[0])) {
ctx               878 libavfilter/vf_fieldmatch.c                 ff_inlink_request_frame(ctx->inputs[INPUT_MAIN]);
ctx               880 libavfilter/vf_fieldmatch.c                 ff_inlink_request_frame(ctx->inputs[INPUT_CLEANSRC]);
ctx               886 libavfilter/vf_fieldmatch.c static int query_formats(AVFilterContext *ctx)
ctx               888 libavfilter/vf_fieldmatch.c     FieldMatchContext *fm = ctx->priv;
ctx               917 libavfilter/vf_fieldmatch.c         return ff_set_common_formats(ctx, fmts_list);
ctx               920 libavfilter/vf_fieldmatch.c     if ((ret = ff_formats_ref(fmts_list, &ctx->inputs[INPUT_MAIN]->out_formats)) < 0)
ctx               925 libavfilter/vf_fieldmatch.c     if ((ret = ff_formats_ref(fmts_list, &ctx->outputs[0]->in_formats)) < 0)
ctx               927 libavfilter/vf_fieldmatch.c     if ((ret = ff_formats_ref(fmts_list, &ctx->inputs[INPUT_CLEANSRC]->out_formats)) < 0)
ctx               935 libavfilter/vf_fieldmatch.c     AVFilterContext *ctx = inlink->dst;
ctx               936 libavfilter/vf_fieldmatch.c     FieldMatchContext *fm = ctx->priv;
ctx               963 libavfilter/vf_fieldmatch.c static av_cold int fieldmatch_init(AVFilterContext *ctx)
ctx               965 libavfilter/vf_fieldmatch.c     const FieldMatchContext *fm = ctx->priv;
ctx               975 libavfilter/vf_fieldmatch.c     if ((ret = ff_insert_inpad(ctx, INPUT_MAIN, &pad)) < 0) {
ctx               985 libavfilter/vf_fieldmatch.c         if ((ret = ff_insert_inpad(ctx, INPUT_CLEANSRC, &pad)) < 0) {
ctx               993 libavfilter/vf_fieldmatch.c         av_log(ctx, AV_LOG_ERROR, "blockx and blocky settings must be power of two\n");
ctx               998 libavfilter/vf_fieldmatch.c         av_log(ctx, AV_LOG_ERROR, "Combed pixel should not be larger than blockx x blocky\n");
ctx              1005 libavfilter/vf_fieldmatch.c static av_cold void fieldmatch_uninit(AVFilterContext *ctx)
ctx              1008 libavfilter/vf_fieldmatch.c     FieldMatchContext *fm = ctx->priv;
ctx              1024 libavfilter/vf_fieldmatch.c     for (i = 0; i < ctx->nb_inputs; i++)
ctx              1025 libavfilter/vf_fieldmatch.c         av_freep(&ctx->input_pads[i].name);
ctx              1030 libavfilter/vf_fieldmatch.c     AVFilterContext *ctx  = outlink->src;
ctx              1031 libavfilter/vf_fieldmatch.c     FieldMatchContext *fm = ctx->priv;
ctx              1033 libavfilter/vf_fieldmatch.c         ctx->inputs[fm->ppsrc ? INPUT_CLEANSRC : INPUT_MAIN];
ctx                41 libavfilter/vf_fieldorder.c static int query_formats(AVFilterContext *ctx)
ctx                49 libavfilter/vf_fieldorder.c     if (ctx->inputs[0]) {
ctx                61 libavfilter/vf_fieldorder.c         if ((ret = ff_formats_ref(formats, &ctx->inputs[0]->out_formats)) < 0 ||
ctx                62 libavfilter/vf_fieldorder.c             (ret = ff_formats_ref(formats, &ctx->outputs[0]->in_formats)) < 0)
ctx                71 libavfilter/vf_fieldorder.c     AVFilterContext   *ctx = inlink->dst;
ctx                72 libavfilter/vf_fieldorder.c     FieldOrderContext *s   = ctx->priv;
ctx                79 libavfilter/vf_fieldorder.c     AVFilterContext   *ctx     = inlink->dst;
ctx                80 libavfilter/vf_fieldorder.c     FieldOrderContext *s       = ctx->priv;
ctx                81 libavfilter/vf_fieldorder.c     AVFilterLink      *outlink = ctx->outputs[0];
ctx                88 libavfilter/vf_fieldorder.c         av_log(ctx, AV_LOG_VERBOSE,
ctx               106 libavfilter/vf_fieldorder.c     av_log(ctx, AV_LOG_TRACE,
ctx                57 libavfilter/vf_fillborders.c static int query_formats(AVFilterContext *ctx)
ctx                83 libavfilter/vf_fillborders.c     return ff_set_common_formats(ctx, fmts_list);
ctx               283 libavfilter/vf_fillborders.c     AVFilterContext *ctx = inlink->dst;
ctx               284 libavfilter/vf_fillborders.c     FillBordersContext *s = ctx->priv;
ctx               305 libavfilter/vf_fillborders.c         av_log(ctx, AV_LOG_ERROR, "Borders are bigger than input frame size.\n");
ctx               349 libavfilter/vf_fillborders.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               354 libavfilter/vf_fillborders.c     ret = ff_filter_process_command(ctx, cmd, args, res, res_len, flags);
ctx               358 libavfilter/vf_fillborders.c     return config_input(ctx->inputs[0]);
ctx                60 libavfilter/vf_find_rect.c static int query_formats(AVFilterContext *ctx)
ctx                68 libavfilter/vf_find_rect.c     return ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               144 libavfilter/vf_find_rect.c     AVFilterContext *ctx = inlink->dst;
ctx               145 libavfilter/vf_find_rect.c     FOCContext *foc = ctx->priv;
ctx               183 libavfilter/vf_find_rect.c     AVFilterContext *ctx = inlink->dst;
ctx               184 libavfilter/vf_find_rect.c     FOCContext *foc = ctx->priv;
ctx               209 libavfilter/vf_find_rect.c         return ff_filter_frame(ctx->outputs[0], in);
ctx               212 libavfilter/vf_find_rect.c     av_log(ctx, AV_LOG_DEBUG, "Found at %d %d score %f\n", best_x, best_y, best_score);
ctx               223 libavfilter/vf_find_rect.c     return ff_filter_frame(ctx->outputs[0], in);
ctx               226 libavfilter/vf_find_rect.c static av_cold void uninit(AVFilterContext *ctx)
ctx               228 libavfilter/vf_find_rect.c     FOCContext *foc = ctx->priv;
ctx               241 libavfilter/vf_find_rect.c static av_cold int init(AVFilterContext *ctx)
ctx               243 libavfilter/vf_find_rect.c     FOCContext *foc = ctx->priv;
ctx               247 libavfilter/vf_find_rect.c         av_log(ctx, AV_LOG_ERROR, "object filename not set\n");
ctx               257 libavfilter/vf_find_rect.c                              &foc->obj_frame->format, foc->obj_filename, ctx)) < 0)
ctx               261 libavfilter/vf_find_rect.c         av_log(ctx, AV_LOG_ERROR, "object image is not a grayscale image\n");
ctx               241 libavfilter/vf_floodfill.c     AVFilterContext *ctx = inlink->dst;
ctx               242 libavfilter/vf_floodfill.c     FloodfillContext *s = ctx->priv;
ctx               283 libavfilter/vf_floodfill.c     AVFilterContext *ctx = link->dst;
ctx               284 libavfilter/vf_floodfill.c     FloodfillContext *s = ctx->priv;
ctx               355 libavfilter/vf_floodfill.c     return ff_filter_frame(ctx->outputs[0], frame);
ctx               358 libavfilter/vf_floodfill.c static av_cold int query_formats(AVFilterContext *ctx)
ctx               376 libavfilter/vf_floodfill.c     return ff_set_common_formats(ctx, formats);
ctx               379 libavfilter/vf_floodfill.c static av_cold void uninit(AVFilterContext *ctx)
ctx               381 libavfilter/vf_floodfill.c     FloodfillContext *s = ctx->priv;
ctx                49 libavfilter/vf_format.c static av_cold void uninit(AVFilterContext *ctx)
ctx                51 libavfilter/vf_format.c     FormatContext *s = ctx->priv;
ctx                55 libavfilter/vf_format.c static av_cold int init(AVFilterContext *ctx)
ctx                57 libavfilter/vf_format.c     FormatContext *s = ctx->priv;
ctx                64 libavfilter/vf_format.c         av_log(ctx, AV_LOG_ERROR, "Empty output format string.\n");
ctx                87 libavfilter/vf_format.c         if ((ret = ff_parse_pixel_format(&s->formats[i], cur, ctx)) < 0)
ctx                94 libavfilter/vf_format.c     if (!strcmp(ctx->filter->name, "noformat")) {
ctx               129 libavfilter/vf_format.c static int query_formats(AVFilterContext *ctx)
ctx               131 libavfilter/vf_format.c     FormatContext *s = ctx->priv;
ctx               137 libavfilter/vf_format.c     return ff_set_common_formats(ctx, formats);
ctx                95 libavfilter/vf_fps.c static av_cold int init(AVFilterContext *ctx)
ctx                97 libavfilter/vf_fps.c     FPSContext *s = ctx->priv;
ctx               102 libavfilter/vf_fps.c     av_log(ctx, AV_LOG_VERBOSE, "fps=%d/%d\n", s->framerate.num, s->framerate.den);
ctx               107 libavfilter/vf_fps.c static AVFrame *shift_frame(AVFilterContext *ctx, FPSContext *s)
ctx               122 libavfilter/vf_fps.c         av_log(ctx, AV_LOG_DEBUG, "Duplicated frame with pts %"PRId64" %d times\n",
ctx               126 libavfilter/vf_fps.c         av_log(ctx, AV_LOG_DEBUG, "Dropping frame with pts %"PRId64"\n",
ctx               135 libavfilter/vf_fps.c static av_cold void uninit(AVFilterContext *ctx)
ctx               137 libavfilter/vf_fps.c     FPSContext *s = ctx->priv;
ctx               142 libavfilter/vf_fps.c         frame = shift_frame(ctx, s);
ctx               146 libavfilter/vf_fps.c     av_log(ctx, AV_LOG_VERBOSE, "%d frames in, %d frames out; %d frames dropped, "
ctx               152 libavfilter/vf_fps.c     AVFilterContext *ctx    = outlink->src;
ctx               153 libavfilter/vf_fps.c     AVFilterLink    *inlink = ctx->inputs[0];
ctx               154 libavfilter/vf_fps.c     FPSContext      *s      = ctx->priv;
ctx               163 libavfilter/vf_fps.c             av_log(ctx, AV_LOG_ERROR, "Start time %f cannot be represented in internal time base\n",
ctx               172 libavfilter/vf_fps.c         av_log(ctx, AV_LOG_VERBOSE, "Set first pts to (in:%"PRId64" out:%"PRId64") from start time %f\n",
ctx               180 libavfilter/vf_fps.c static int read_frame(AVFilterContext *ctx, FPSContext *s, AVFilterLink *inlink, AVFilterLink *outlink)
ctx               203 libavfilter/vf_fps.c     av_log(ctx, AV_LOG_DEBUG, "Read frame with in pts %"PRId64", out pts %"PRId64"\n",
ctx               213 libavfilter/vf_fps.c static int write_frame(AVFilterContext *ctx, FPSContext *s, AVFilterLink *outlink, int *again)
ctx               223 libavfilter/vf_fps.c             av_log(ctx, AV_LOG_VERBOSE, "Set first pts to %"PRId64"\n", s->next_pts);
ctx               225 libavfilter/vf_fps.c             av_log(ctx, AV_LOG_WARNING, "Discarding initial frame(s) with no "
ctx               227 libavfilter/vf_fps.c             frame = shift_frame(ctx, s);
ctx               242 libavfilter/vf_fps.c         frame = shift_frame(ctx, s);
ctx               256 libavfilter/vf_fps.c         av_log(ctx, AV_LOG_DEBUG, "Writing frame with pts %"PRId64" to pts %"PRId64"\n",
ctx               265 libavfilter/vf_fps.c static void update_eof_pts(AVFilterContext *ctx, FPSContext *s, AVFilterLink *inlink, AVFilterLink *outlink, int64_t status_pts)
ctx               271 libavfilter/vf_fps.c     av_log(ctx, AV_LOG_DEBUG, "EOF is at pts %"PRId64"\n", s->status_pts);
ctx               274 libavfilter/vf_fps.c static int activate(AVFilterContext *ctx)
ctx               276 libavfilter/vf_fps.c     FPSContext   *s       = ctx->priv;
ctx               277 libavfilter/vf_fps.c     AVFilterLink *inlink  = ctx->inputs[0];
ctx               278 libavfilter/vf_fps.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               291 libavfilter/vf_fps.c             ret = read_frame(ctx, s, inlink, outlink);
ctx               301 libavfilter/vf_fps.c                 update_eof_pts(ctx, s, inlink, outlink, status_pts);
ctx               313 libavfilter/vf_fps.c         ret = write_frame(ctx, s, outlink, &again);
ctx               316 libavfilter/vf_fps.c             ff_filter_set_ready(ctx, 100);
ctx                61 libavfilter/vf_framepack.c static int query_formats(AVFilterContext *ctx)
ctx                67 libavfilter/vf_framepack.c     return ff_set_common_formats(ctx, fmts_list);
ctx                70 libavfilter/vf_framepack.c static av_cold void framepack_uninit(AVFilterContext *ctx)
ctx                72 libavfilter/vf_framepack.c     FramepackContext *s = ctx->priv;
ctx                81 libavfilter/vf_framepack.c     AVFilterContext *ctx  = outlink->src;
ctx                84 libavfilter/vf_framepack.c     int width             = ctx->inputs[LEFT]->w;
ctx                85 libavfilter/vf_framepack.c     int height            = ctx->inputs[LEFT]->h;
ctx                86 libavfilter/vf_framepack.c     AVRational time_base  = ctx->inputs[LEFT]->time_base;
ctx                87 libavfilter/vf_framepack.c     AVRational frame_rate = ctx->inputs[LEFT]->frame_rate;
ctx                90 libavfilter/vf_framepack.c     if (width  != ctx->inputs[RIGHT]->w ||
ctx                91 libavfilter/vf_framepack.c         height != ctx->inputs[RIGHT]->h) {
ctx                92 libavfilter/vf_framepack.c         av_log(ctx, AV_LOG_ERROR,
ctx                95 libavfilter/vf_framepack.c                ctx->inputs[RIGHT]->w, ctx->inputs[RIGHT]->h);
ctx                97 libavfilter/vf_framepack.c     } else if (av_cmp_q(time_base, ctx->inputs[RIGHT]->time_base) != 0) {
ctx                98 libavfilter/vf_framepack.c         av_log(ctx, AV_LOG_ERROR,
ctx               101 libavfilter/vf_framepack.c                ctx->inputs[RIGHT]->time_base.num,
ctx               102 libavfilter/vf_framepack.c                ctx->inputs[RIGHT]->time_base.den);
ctx               104 libavfilter/vf_framepack.c     } else if (av_cmp_q(frame_rate, ctx->inputs[RIGHT]->frame_rate) != 0) {
ctx               105 libavfilter/vf_framepack.c         av_log(ctx, AV_LOG_ERROR,
ctx               108 libavfilter/vf_framepack.c                ctx->inputs[RIGHT]->frame_rate.num,
ctx               109 libavfilter/vf_framepack.c                ctx->inputs[RIGHT]->frame_rate.den);
ctx               132 libavfilter/vf_framepack.c         av_log(ctx, AV_LOG_ERROR, "Unknown packing mode.");
ctx               148 libavfilter/vf_framepack.c     AVFilterContext *ctx = outlink->src;
ctx               149 libavfilter/vf_framepack.c     FramepackContext *s = ctx->priv;
ctx               213 libavfilter/vf_framepack.c     AVFilterContext *ctx = outlink->src;
ctx               214 libavfilter/vf_framepack.c     FramepackContext *s = ctx->priv;
ctx               251 libavfilter/vf_framepack.c     AVFilterContext *ctx = outlink->src;
ctx               252 libavfilter/vf_framepack.c     FramepackContext *s = ctx->priv;
ctx               269 libavfilter/vf_framepack.c static int try_push_frame(AVFilterContext *ctx)
ctx               271 libavfilter/vf_framepack.c     FramepackContext *s = ctx->priv;
ctx               272 libavfilter/vf_framepack.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               330 libavfilter/vf_framepack.c static int activate(AVFilterContext *ctx)
ctx               332 libavfilter/vf_framepack.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               333 libavfilter/vf_framepack.c     FramepackContext *s = ctx->priv;
ctx               336 libavfilter/vf_framepack.c     FF_FILTER_FORWARD_STATUS_BACK_ALL(outlink, ctx);
ctx               339 libavfilter/vf_framepack.c         ret = ff_inlink_consume_frame(ctx->inputs[0], &s->input_views[0]);
ctx               345 libavfilter/vf_framepack.c         ret = ff_inlink_consume_frame(ctx->inputs[1], &s->input_views[1]);
ctx               351 libavfilter/vf_framepack.c         return try_push_frame(ctx);
ctx               353 libavfilter/vf_framepack.c     FF_FILTER_FORWARD_STATUS(ctx->inputs[0], outlink);
ctx               354 libavfilter/vf_framepack.c     FF_FILTER_FORWARD_STATUS(ctx->inputs[1], outlink);
ctx               356 libavfilter/vf_framepack.c     if (ff_outlink_frame_wanted(ctx->outputs[0]) &&
ctx               357 libavfilter/vf_framepack.c         !ff_outlink_get_status(ctx->inputs[0]) &&
ctx               359 libavfilter/vf_framepack.c         ff_inlink_request_frame(ctx->inputs[0]);
ctx               363 libavfilter/vf_framepack.c     if (ff_outlink_frame_wanted(ctx->outputs[0]) &&
ctx               364 libavfilter/vf_framepack.c         !ff_outlink_get_status(ctx->inputs[1]) &&
ctx               366 libavfilter/vf_framepack.c         ff_inlink_request_frame(ctx->inputs[1]);
ctx                65 libavfilter/vf_framerate.c static double get_scene_score(AVFilterContext *ctx, AVFrame *crnt, AVFrame *next)
ctx                67 libavfilter/vf_framerate.c     FrameRateContext *s = ctx->priv;
ctx                70 libavfilter/vf_framerate.c     ff_dlog(ctx, "get_scene_score()\n");
ctx                77 libavfilter/vf_framerate.c         ff_dlog(ctx, "get_scene_score() process\n");
ctx                85 libavfilter/vf_framerate.c     ff_dlog(ctx, "get_scene_score() result is:%f\n", ret);
ctx                94 libavfilter/vf_framerate.c static int filter_slice(AVFilterContext *ctx, void *arg, int job, int nb_jobs)
ctx                96 libavfilter/vf_framerate.c     FrameRateContext *s = ctx->priv;
ctx               120 libavfilter/vf_framerate.c static int blend_frames(AVFilterContext *ctx, int interpolate)
ctx               122 libavfilter/vf_framerate.c     FrameRateContext *s = ctx->priv;
ctx               123 libavfilter/vf_framerate.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               130 libavfilter/vf_framerate.c             interpolate_scene_score = s->score = get_scene_score(ctx, s->f0, s->f1);
ctx               131 libavfilter/vf_framerate.c         ff_dlog(ctx, "blend_frames() interpolate scene score:%f\n", interpolate_scene_score);
ctx               148 libavfilter/vf_framerate.c         ff_dlog(ctx, "blend_frames() INTERPOLATE to create work frame\n");
ctx               149 libavfilter/vf_framerate.c         ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(FFMAX(1, outlink->h >> 2), ff_filter_get_nb_threads(ctx)));
ctx               155 libavfilter/vf_framerate.c static int process_work_frame(AVFilterContext *ctx)
ctx               157 libavfilter/vf_framerate.c     FrameRateContext *s = ctx->priv;
ctx               180 libavfilter/vf_framerate.c         ff_dlog(ctx, "process_work_frame() interpolate: %"PRId64"/256\n", interpolate8);
ctx               186 libavfilter/vf_framerate.c             ret = blend_frames(ctx, interpolate);
ctx               203 libavfilter/vf_framerate.c static av_cold int init(AVFilterContext *ctx)
ctx               205 libavfilter/vf_framerate.c     FrameRateContext *s = ctx->priv;
ctx               210 libavfilter/vf_framerate.c static av_cold void uninit(AVFilterContext *ctx)
ctx               212 libavfilter/vf_framerate.c     FrameRateContext *s = ctx->priv;
ctx               217 libavfilter/vf_framerate.c static int query_formats(AVFilterContext *ctx)
ctx               235 libavfilter/vf_framerate.c     return ff_set_common_formats(ctx, fmts_list);
ctx               278 libavfilter/vf_framerate.c     AVFilterContext *ctx = inlink->dst;
ctx               279 libavfilter/vf_framerate.c     FrameRateContext *s = ctx->priv;
ctx               302 libavfilter/vf_framerate.c static int activate(AVFilterContext *ctx)
ctx               305 libavfilter/vf_framerate.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               306 libavfilter/vf_framerate.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               307 libavfilter/vf_framerate.c     FrameRateContext *s = ctx->priv;
ctx               314 libavfilter/vf_framerate.c     ret = process_work_frame(ctx);
ctx               326 libavfilter/vf_framerate.c             av_log(ctx, AV_LOG_WARNING, "Interlaced frame found - the output will not be correct.\n");
ctx               329 libavfilter/vf_framerate.c             av_log(ctx, AV_LOG_WARNING, "Ignoring frame without PTS.\n");
ctx               338 libavfilter/vf_framerate.c             av_log(ctx, AV_LOG_WARNING, "Ignoring frame with same PTS.\n");
ctx               353 libavfilter/vf_framerate.c             av_log(ctx, AV_LOG_WARNING, "PTS discontinuity.\n");
ctx               381 libavfilter/vf_framerate.c     AVFilterContext *ctx = outlink->src;
ctx               382 libavfilter/vf_framerate.c     FrameRateContext *s = ctx->priv;
ctx               385 libavfilter/vf_framerate.c     ff_dlog(ctx, "config_output()\n");
ctx               387 libavfilter/vf_framerate.c     ff_dlog(ctx,
ctx               389 libavfilter/vf_framerate.c            ctx->inputs[0]->time_base.num,ctx->inputs[0]->time_base.den,
ctx               390 libavfilter/vf_framerate.c            av_q2d(ctx->inputs[0]->time_base));
ctx               399 libavfilter/vf_framerate.c     av_log(ctx, AV_LOG_INFO,
ctx               404 libavfilter/vf_framerate.c         av_log(ctx, AV_LOG_WARNING, "Timebase conversion is not exact\n");
ctx               410 libavfilter/vf_framerate.c     ff_dlog(ctx,
ctx               417 libavfilter/vf_framerate.c     av_log(ctx, AV_LOG_INFO, "fps -> fps:%u/%u scene score:%f interpolate start:%d end:%d\n",
ctx                48 libavfilter/vf_framestep.c     AVFilterContext *ctx = outlink->src;
ctx                49 libavfilter/vf_framestep.c     FrameStepContext *framestep = ctx->priv;
ctx                50 libavfilter/vf_framestep.c     AVFilterLink *inlink = ctx->inputs[0];
ctx                55 libavfilter/vf_framestep.c     av_log(ctx, AV_LOG_VERBOSE, "step:%d frame_rate:%d/%d(%f) -> frame_rate:%d/%d(%f)\n",
ctx                65 libavfilter/vf_freezedetect.c static int query_formats(AVFilterContext *ctx)
ctx                97 libavfilter/vf_freezedetect.c     return ff_set_common_formats(ctx, fmts_list);
ctx               102 libavfilter/vf_freezedetect.c     AVFilterContext *ctx = inlink->dst;
ctx               103 libavfilter/vf_freezedetect.c     FreezeDetectContext *s = ctx->priv;
ctx               121 libavfilter/vf_freezedetect.c static av_cold void uninit(AVFilterContext *ctx)
ctx               123 libavfilter/vf_freezedetect.c     FreezeDetectContext *s = ctx->priv;
ctx               153 libavfilter/vf_freezedetect.c static int activate(AVFilterContext *ctx)
ctx               156 libavfilter/vf_freezedetect.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               157 libavfilter/vf_freezedetect.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               158 libavfilter/vf_freezedetect.c     FreezeDetectContext *s = ctx->priv;
ctx                53 libavfilter/vf_freezeframes.c     AVFilterContext *ctx = outlink->src;
ctx                54 libavfilter/vf_freezeframes.c     AVFilterLink *sourcelink = ctx->inputs[0];
ctx                55 libavfilter/vf_freezeframes.c     AVFilterLink *replacelink = ctx->inputs[1];
ctx                58 libavfilter/vf_freezeframes.c         av_log(ctx, AV_LOG_ERROR,
ctx                74 libavfilter/vf_freezeframes.c static int activate(AVFilterContext *ctx)
ctx                76 libavfilter/vf_freezeframes.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                77 libavfilter/vf_freezeframes.c     FreezeFramesContext *s = ctx->priv;
ctx                79 libavfilter/vf_freezeframes.c     int drop = ctx->inputs[0]->frame_count_out >= s->first &&
ctx                80 libavfilter/vf_freezeframes.c                ctx->inputs[0]->frame_count_out <= s->last;
ctx                81 libavfilter/vf_freezeframes.c     int replace = ctx->inputs[1]->frame_count_out == s->replace;
ctx                84 libavfilter/vf_freezeframes.c     FF_FILTER_FORWARD_STATUS_BACK_ALL(outlink, ctx);
ctx                87 libavfilter/vf_freezeframes.c         ret = ff_inlink_consume_frame(ctx->inputs[0], &frame);
ctx               102 libavfilter/vf_freezeframes.c         ret = ff_inlink_consume_frame(ctx->inputs[0], &frame);
ctx               110 libavfilter/vf_freezeframes.c     ret = ff_inlink_consume_frame(ctx->inputs[1], &frame);
ctx               119 libavfilter/vf_freezeframes.c     FF_FILTER_FORWARD_STATUS(ctx->inputs[0], outlink);
ctx               120 libavfilter/vf_freezeframes.c     FF_FILTER_FORWARD_STATUS(ctx->inputs[1], outlink);
ctx               123 libavfilter/vf_freezeframes.c         FF_FILTER_FORWARD_WANTED(outlink, ctx->inputs[0]);
ctx               125 libavfilter/vf_freezeframes.c         FF_FILTER_FORWARD_WANTED(outlink, ctx->inputs[1]);
ctx               130 libavfilter/vf_freezeframes.c static av_cold void uninit(AVFilterContext *ctx)
ctx               132 libavfilter/vf_freezeframes.c     FreezeFramesContext *s = ctx->priv;
ctx                80 libavfilter/vf_frei0r.c static void *load_sym(AVFilterContext *ctx, const char *sym_name)
ctx                82 libavfilter/vf_frei0r.c     Frei0rContext *s = ctx->priv;
ctx                85 libavfilter/vf_frei0r.c         av_log(ctx, AV_LOG_ERROR, "Could not find symbol '%s' in loaded module.\n", sym_name);
ctx                89 libavfilter/vf_frei0r.c static int set_param(AVFilterContext *ctx, f0r_param_info_t info, int index, char *param)
ctx                91 libavfilter/vf_frei0r.c     Frei0rContext *s = ctx->priv;
ctx               116 libavfilter/vf_frei0r.c             if (av_parse_color(rgba, param, -1, ctx) < 0)
ctx               138 libavfilter/vf_frei0r.c     av_log(ctx, AV_LOG_ERROR, "Invalid value '%s' for parameter '%s'.\n",
ctx               143 libavfilter/vf_frei0r.c static int set_params(AVFilterContext *ctx, const char *params)
ctx               145 libavfilter/vf_frei0r.c     Frei0rContext *s = ctx->priv;
ctx               163 libavfilter/vf_frei0r.c             ret = set_param(ctx, info, i, param);
ctx               173 libavfilter/vf_frei0r.c static int load_path(AVFilterContext *ctx, void **handle_ptr, const char *prefix, const char *name)
ctx               178 libavfilter/vf_frei0r.c     av_log(ctx, AV_LOG_DEBUG, "Looking for frei0r effect in '%s'.\n", path);
ctx               184 libavfilter/vf_frei0r.c static av_cold int frei0r_init(AVFilterContext *ctx,
ctx               187 libavfilter/vf_frei0r.c     Frei0rContext *s = ctx->priv;
ctx               202 libavfilter/vf_frei0r.c         av_log(ctx, AV_LOG_ERROR, "No filter name provided.\n");
ctx               221 libavfilter/vf_frei0r.c             ret = load_path(ctx, &s->dl_handle, p1, dl_name);
ctx               238 libavfilter/vf_frei0r.c         ret = load_path(ctx, &s->dl_handle, prefix, dl_name);
ctx               244 libavfilter/vf_frei0r.c         ret = load_path(ctx, &s->dl_handle, frei0r_pathlist[i], dl_name);
ctx               249 libavfilter/vf_frei0r.c         av_log(ctx, AV_LOG_ERROR, "Could not find module '%s'.\n", dl_name);
ctx               253 libavfilter/vf_frei0r.c     if (!(f0r_init                = load_sym(ctx, "f0r_init"           )) ||
ctx               254 libavfilter/vf_frei0r.c         !(f0r_get_plugin_info     = load_sym(ctx, "f0r_get_plugin_info")) ||
ctx               255 libavfilter/vf_frei0r.c         !(s->get_param_info  = load_sym(ctx, "f0r_get_param_info" )) ||
ctx               256 libavfilter/vf_frei0r.c         !(s->get_param_value = load_sym(ctx, "f0r_get_param_value")) ||
ctx               257 libavfilter/vf_frei0r.c         !(s->set_param_value = load_sym(ctx, "f0r_set_param_value")) ||
ctx               258 libavfilter/vf_frei0r.c         !(s->update          = load_sym(ctx, "f0r_update"         )) ||
ctx               259 libavfilter/vf_frei0r.c         !(s->construct       = load_sym(ctx, "f0r_construct"      )) ||
ctx               260 libavfilter/vf_frei0r.c         !(s->destruct        = load_sym(ctx, "f0r_destruct"       )) ||
ctx               261 libavfilter/vf_frei0r.c         !(s->deinit          = load_sym(ctx, "f0r_deinit"         )))
ctx               265 libavfilter/vf_frei0r.c         av_log(ctx, AV_LOG_ERROR, "Could not init the frei0r module.\n");
ctx               272 libavfilter/vf_frei0r.c         av_log(ctx, AV_LOG_ERROR,
ctx               281 libavfilter/vf_frei0r.c     av_log(ctx, AV_LOG_VERBOSE,
ctx               293 libavfilter/vf_frei0r.c static av_cold int filter_init(AVFilterContext *ctx)
ctx               295 libavfilter/vf_frei0r.c     Frei0rContext *s = ctx->priv;
ctx               297 libavfilter/vf_frei0r.c     return frei0r_init(ctx, s->dl_name, F0R_PLUGIN_TYPE_FILTER);
ctx               300 libavfilter/vf_frei0r.c static av_cold void uninit(AVFilterContext *ctx)
ctx               302 libavfilter/vf_frei0r.c     Frei0rContext *s = ctx->priv;
ctx               314 libavfilter/vf_frei0r.c     AVFilterContext *ctx = inlink->dst;
ctx               315 libavfilter/vf_frei0r.c     Frei0rContext *s = ctx->priv;
ctx               320 libavfilter/vf_frei0r.c         av_log(ctx, AV_LOG_ERROR, "Impossible to load frei0r instance.\n");
ctx               324 libavfilter/vf_frei0r.c     return set_params(ctx, s->params);
ctx               327 libavfilter/vf_frei0r.c static int query_formats(AVFilterContext *ctx)
ctx               329 libavfilter/vf_frei0r.c     Frei0rContext *s = ctx->priv;
ctx               349 libavfilter/vf_frei0r.c     return ff_set_common_formats(ctx, formats);
ctx               414 libavfilter/vf_frei0r.c static av_cold int source_init(AVFilterContext *ctx)
ctx               416 libavfilter/vf_frei0r.c     Frei0rContext *s = ctx->priv;
ctx               421 libavfilter/vf_frei0r.c     return frei0r_init(ctx, s->dl_name, F0R_PLUGIN_TYPE_SOURCE);
ctx               426 libavfilter/vf_frei0r.c     AVFilterContext *ctx = outlink->src;
ctx               427 libavfilter/vf_frei0r.c     Frei0rContext *s = ctx->priv;
ctx               429 libavfilter/vf_frei0r.c     if (av_image_check_size(s->w, s->h, 0, ctx) < 0)
ctx               440 libavfilter/vf_frei0r.c         av_log(ctx, AV_LOG_ERROR, "Impossible to load frei0r instance.\n");
ctx               444 libavfilter/vf_frei0r.c         av_log(ctx, AV_LOG_ERROR, "frei0r filter parameters not set.\n");
ctx               448 libavfilter/vf_frei0r.c     return set_params(ctx, s->params);
ctx               493 libavfilter/vf_fspp.c static int query_formats(AVFilterContext *ctx)
ctx               508 libavfilter/vf_fspp.c     return ff_set_common_formats(ctx, fmts_list);
ctx               513 libavfilter/vf_fspp.c     AVFilterContext *ctx = inlink->dst;
ctx               514 libavfilter/vf_fspp.c     FSPPContext *fspp = ctx->priv;
ctx               550 libavfilter/vf_fspp.c     AVFilterContext *ctx = inlink->dst;
ctx               551 libavfilter/vf_fspp.c     FSPPContext *fspp = ctx->priv;
ctx               552 libavfilter/vf_fspp.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               613 libavfilter/vf_fspp.c     if (fspp->log2_count && !ctx->is_disabled) {
ctx               657 libavfilter/vf_fspp.c static av_cold void uninit(AVFilterContext *ctx)
ctx               659 libavfilter/vf_fspp.c     FSPPContext *fspp = ctx->priv;
ctx                77 libavfilter/vf_gblur.c static int filter_horizontally(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx                79 libavfilter/vf_gblur.c     GBlurContext *s = ctx->priv;
ctx               130 libavfilter/vf_gblur.c static int filter_vertically(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               132 libavfilter/vf_gblur.c     GBlurContext *s = ctx->priv;
ctx               156 libavfilter/vf_gblur.c static int filter_postscale(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               158 libavfilter/vf_gblur.c     GBlurContext *s = ctx->priv;
ctx               178 libavfilter/vf_gblur.c static void gaussianiir2d(AVFilterContext *ctx, int plane)
ctx               180 libavfilter/vf_gblur.c     GBlurContext *s = ctx->priv;
ctx               183 libavfilter/vf_gblur.c     const int nb_threads = ff_filter_get_nb_threads(ctx);
ctx               191 libavfilter/vf_gblur.c     ctx->internal->execute(ctx, filter_horizontally, &td, NULL, FFMIN(height, nb_threads));
ctx               192 libavfilter/vf_gblur.c     ctx->internal->execute(ctx, filter_vertically, &td, NULL, FFMIN(width, nb_threads));
ctx               193 libavfilter/vf_gblur.c     ctx->internal->execute(ctx, filter_postscale, &td, NULL, FFMIN(width * height, nb_threads));
ctx               196 libavfilter/vf_gblur.c static int query_formats(AVFilterContext *ctx)
ctx               220 libavfilter/vf_gblur.c     return ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               268 libavfilter/vf_gblur.c     AVFilterContext *ctx = inlink->dst;
ctx               269 libavfilter/vf_gblur.c     GBlurContext *s = ctx->priv;
ctx               270 libavfilter/vf_gblur.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               324 libavfilter/vf_gblur.c         gaussianiir2d(ctx, plane);
ctx               351 libavfilter/vf_gblur.c static av_cold void uninit(AVFilterContext *ctx)
ctx               353 libavfilter/vf_gblur.c     GBlurContext *s = ctx->priv;
ctx               224 libavfilter/vf_geq.c static av_cold int geq_init(AVFilterContext *ctx)
ctx               226 libavfilter/vf_geq.c     GEQContext *geq = ctx->priv;
ctx               230 libavfilter/vf_geq.c         av_log(ctx, AV_LOG_ERROR, "A luminance or RGB expression is mandatory\n");
ctx               237 libavfilter/vf_geq.c         av_log(ctx, AV_LOG_ERROR, "Either YCbCr or RGB but not both must be specified\n");
ctx               294 libavfilter/vf_geq.c                                 NULL, NULL, func2_names, func2, 0, ctx);
ctx               307 libavfilter/vf_geq.c static int geq_query_formats(AVFilterContext *ctx)
ctx               309 libavfilter/vf_geq.c     GEQContext *geq = ctx->priv;
ctx               346 libavfilter/vf_geq.c     return ff_set_common_formats(ctx, fmts_list);
ctx               370 libavfilter/vf_geq.c static int slice_geq_filter(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               372 libavfilter/vf_geq.c     GEQContext *geq = ctx->priv;
ctx               419 libavfilter/vf_geq.c     AVFilterContext *ctx = inlink->dst;
ctx               420 libavfilter/vf_geq.c     const int nb_threads = FFMIN(MAX_NB_THREADS, ff_filter_get_nb_threads(ctx));
ctx               421 libavfilter/vf_geq.c     GEQContext *geq = ctx->priv;
ctx               458 libavfilter/vf_geq.c         ctx->internal->execute(ctx, slice_geq_filter, &td, NULL, FFMIN(height, nb_threads));
ctx               465 libavfilter/vf_geq.c static av_cold void geq_uninit(AVFilterContext *ctx)
ctx               468 libavfilter/vf_geq.c     GEQContext *geq = ctx->priv;
ctx                82 libavfilter/vf_gradfun.c static void filter(GradFunContext *ctx, uint8_t *dst, const uint8_t *src, int width, int height, int dst_linesize, int src_linesize, int r)
ctx                87 libavfilter/vf_gradfun.c     uint16_t *dc = ctx->buf + 16;
ctx                88 libavfilter/vf_gradfun.c     uint16_t *buf = ctx->buf + bstride + 32;
ctx                89 libavfilter/vf_gradfun.c     int thresh = ctx->thresh;
ctx                93 libavfilter/vf_gradfun.c         ctx->blur_line(dc, buf + y * bstride, buf + (y - 1) * bstride, src + 2 * y * src_linesize, src_linesize, width / 2);
ctx               100 libavfilter/vf_gradfun.c             ctx->blur_line(dc, buf0, buf1, src + (y + r) * src_linesize, src_linesize, width / 2);
ctx               114 libavfilter/vf_gradfun.c                 ctx->filter_line(dst + y * dst_linesize, src + y * src_linesize, dc - r / 2, width, thresh, dither[y & 7]);
ctx               116 libavfilter/vf_gradfun.c         ctx->filter_line(dst + y * dst_linesize, src + y * src_linesize, dc - r / 2, width, thresh, dither[y & 7]);
ctx               118 libavfilter/vf_gradfun.c         ctx->filter_line(dst + y * dst_linesize, src + y * src_linesize, dc - r / 2, width, thresh, dither[y & 7]);
ctx               124 libavfilter/vf_gradfun.c static av_cold int init(AVFilterContext *ctx)
ctx               126 libavfilter/vf_gradfun.c     GradFunContext *s = ctx->priv;
ctx               137 libavfilter/vf_gradfun.c     av_log(ctx, AV_LOG_VERBOSE, "threshold:%.2f radius:%d\n", s->strength, s->radius);
ctx               142 libavfilter/vf_gradfun.c static av_cold void uninit(AVFilterContext *ctx)
ctx               144 libavfilter/vf_gradfun.c     GradFunContext *s = ctx->priv;
ctx               148 libavfilter/vf_gradfun.c static int query_formats(AVFilterContext *ctx)
ctx               161 libavfilter/vf_gradfun.c     return ff_set_common_formats(ctx, fmts_list);
ctx                46 libavfilter/vf_hflip.c static int query_formats(AVFilterContext *ctx)
ctx                61 libavfilter/vf_hflip.c     return ff_set_common_formats(ctx, pix_fmts);
ctx               173 libavfilter/vf_hflip.c static int filter_slice(AVFilterContext *ctx, void *arg, int job, int nb_jobs)
ctx               175 libavfilter/vf_hflip.c     FlipContext *s = ctx->priv;
ctx               205 libavfilter/vf_hflip.c     AVFilterContext *ctx  = inlink->dst;
ctx               206 libavfilter/vf_hflip.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               222 libavfilter/vf_hflip.c     ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx)));
ctx                85 libavfilter/vf_histeq.c static av_cold int init(AVFilterContext *ctx)
ctx                87 libavfilter/vf_histeq.c     HisteqContext *histeq = ctx->priv;
ctx                89 libavfilter/vf_histeq.c     av_log(ctx, AV_LOG_VERBOSE,
ctx                96 libavfilter/vf_histeq.c static int query_formats(AVFilterContext *ctx)
ctx               106 libavfilter/vf_histeq.c     return ff_set_common_formats(ctx, fmts_list);
ctx               111 libavfilter/vf_histeq.c     AVFilterContext *ctx = inlink->dst;
ctx               112 libavfilter/vf_histeq.c     HisteqContext *histeq = ctx->priv;
ctx               134 libavfilter/vf_histeq.c     AVFilterContext   *ctx     = inlink->dst;
ctx               135 libavfilter/vf_histeq.c     HisteqContext     *histeq  = ctx->priv;
ctx               136 libavfilter/vf_histeq.c     AVFilterLink      *outlink = ctx->outputs[0];
ctx               172 libavfilter/vf_histeq.c         ff_dlog(ctx, "in[%d]: %u\n", x, histeq->in_histogram[x]);
ctx               248 libavfilter/vf_histeq.c         ff_dlog(ctx, "out[%d]: %u\n", x, histeq->out_histogram[x]);
ctx               150 libavfilter/vf_histogram.c static int query_formats(AVFilterContext *ctx)
ctx               158 libavfilter/vf_histogram.c     if (!ctx->inputs[0]->in_formats ||
ctx               159 libavfilter/vf_histogram.c         !ctx->inputs[0]->in_formats->nb_formats) {
ctx               163 libavfilter/vf_histogram.c     if (!ctx->inputs[0]->out_formats)
ctx               164 libavfilter/vf_histogram.c         if ((ret = ff_formats_ref(ff_make_format_list(levels_in_pix_fmts), &ctx->inputs[0]->out_formats)) < 0)
ctx               166 libavfilter/vf_histogram.c     avff = ctx->inputs[0]->in_formats;
ctx               195 libavfilter/vf_histogram.c     if ((ret = ff_formats_ref(ff_make_format_list(out_pix_fmts), &ctx->outputs[0]->in_formats)) < 0)
ctx               252 libavfilter/vf_histogram.c     AVFilterContext *ctx = outlink->src;
ctx               253 libavfilter/vf_histogram.c     HistogramContext *s = ctx->priv;
ctx               256 libavfilter/vf_histogram.c     if (!strcmp(ctx->filter->name, "thistogram"))
ctx               266 libavfilter/vf_histogram.c             s->width = ctx->inputs[0]->w;
ctx               284 libavfilter/vf_histogram.c     AVFilterContext *ctx  = inlink->dst;
ctx               285 libavfilter/vf_histogram.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               196 libavfilter/vf_hqdn3d.c static av_cold int init(AVFilterContext *ctx)
ctx               198 libavfilter/vf_hqdn3d.c     HQDN3DContext *s = ctx->priv;
ctx               209 libavfilter/vf_hqdn3d.c     av_log(ctx, AV_LOG_VERBOSE, "ls:%f cs:%f lt:%f ct:%f\n",
ctx               216 libavfilter/vf_hqdn3d.c static av_cold void uninit(AVFilterContext *ctx)
ctx               218 libavfilter/vf_hqdn3d.c     HQDN3DContext *s = ctx->priv;
ctx               232 libavfilter/vf_hqdn3d.c static int query_formats(AVFilterContext *ctx)
ctx               250 libavfilter/vf_hqdn3d.c     return ff_set_common_formats(ctx, fmts_list);
ctx               253 libavfilter/vf_hqdn3d.c static void calc_coefs(AVFilterContext *ctx)
ctx               255 libavfilter/vf_hqdn3d.c     HQDN3DContext *s = ctx->priv;
ctx               263 libavfilter/vf_hqdn3d.c     AVFilterContext *ctx = inlink->dst;
ctx               286 libavfilter/vf_hqdn3d.c     calc_coefs(ctx);
ctx               299 libavfilter/vf_hqdn3d.c static int do_denoise(AVFilterContext *ctx, void *data, int job_nr, int n_jobs)
ctx               301 libavfilter/vf_hqdn3d.c     HQDN3DContext *s = ctx->priv;
ctx               320 libavfilter/vf_hqdn3d.c     AVFilterContext *ctx  = inlink->dst;
ctx               321 libavfilter/vf_hqdn3d.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               324 libavfilter/vf_hqdn3d.c     int direct = av_frame_is_writable(in) && !ctx->is_disabled;
ctx               343 libavfilter/vf_hqdn3d.c     ctx->internal->execute(ctx, do_denoise, &td, NULL, 3);
ctx               345 libavfilter/vf_hqdn3d.c     if (ctx->is_disabled) {
ctx               356 libavfilter/vf_hqdn3d.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               361 libavfilter/vf_hqdn3d.c     ret = ff_filter_process_command(ctx, cmd, args, res, res_len, flags);
ctx               365 libavfilter/vf_hqdn3d.c     calc_coefs(ctx);
ctx                35 libavfilter/vf_hqx.c typedef int (*hqxfunc_t)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx               454 libavfilter/vf_hqx.c static int hq##size##x(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) \
ctx               464 libavfilter/vf_hqx.c static int query_formats(AVFilterContext *ctx)
ctx               470 libavfilter/vf_hqx.c     return ff_set_common_formats(ctx, fmts_list);
ctx               475 libavfilter/vf_hqx.c     AVFilterContext *ctx = outlink->src;
ctx               476 libavfilter/vf_hqx.c     HQXContext *hqx = ctx->priv;
ctx               477 libavfilter/vf_hqx.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               489 libavfilter/vf_hqx.c     AVFilterContext *ctx = inlink->dst;
ctx               490 libavfilter/vf_hqx.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               491 libavfilter/vf_hqx.c     HQXContext *hqx = ctx->priv;
ctx               505 libavfilter/vf_hqx.c     ctx->internal->execute(ctx, hqx->func, &td, NULL, FFMIN(inlink->h, ff_filter_get_nb_threads(ctx)));
ctx               511 libavfilter/vf_hqx.c static av_cold int init(AVFilterContext *ctx)
ctx               513 libavfilter/vf_hqx.c     HQXContext *hqx = ctx->priv;
ctx               207 libavfilter/vf_hue.c static av_cold int init(AVFilterContext *ctx)
ctx               209 libavfilter/vf_hue.c     HueContext *hue = ctx->priv;
ctx               213 libavfilter/vf_hue.c         av_log(ctx, AV_LOG_ERROR,
ctx               222 libavfilter/vf_hue.c                        hue->expr##_expr, option, ctx);                  \
ctx               232 libavfilter/vf_hue.c     av_log(ctx, AV_LOG_VERBOSE,
ctx               241 libavfilter/vf_hue.c static av_cold void uninit(AVFilterContext *ctx)
ctx               243 libavfilter/vf_hue.c     HueContext *hue = ctx->priv;
ctx               251 libavfilter/vf_hue.c static int query_formats(AVFilterContext *ctx)
ctx               269 libavfilter/vf_hue.c     return ff_set_common_formats(ctx, fmts_list);
ctx               474 libavfilter/vf_hue.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               477 libavfilter/vf_hue.c     HueContext *hue = ctx->priv;
ctx               483 libavfilter/vf_hue.c                        args, option, ctx);                              \
ctx                68 libavfilter/vf_hwdownload.c     HWDownloadContext *ctx = avctx->priv;
ctx                70 libavfilter/vf_hwdownload.c     av_buffer_unref(&ctx->hwframes_ref);
ctx                73 libavfilter/vf_hwdownload.c         av_log(ctx, AV_LOG_ERROR, "The input must have a hardware frame "
ctx                78 libavfilter/vf_hwdownload.c     ctx->hwframes_ref = av_buffer_ref(inlink->hw_frames_ctx);
ctx                79 libavfilter/vf_hwdownload.c     if (!ctx->hwframes_ref)
ctx                82 libavfilter/vf_hwdownload.c     ctx->hwframes = (AVHWFramesContext*)ctx->hwframes_ref->data;
ctx                91 libavfilter/vf_hwdownload.c     HWDownloadContext *ctx = avctx->priv;
ctx                95 libavfilter/vf_hwdownload.c     if (!ctx->hwframes_ref)
ctx                98 libavfilter/vf_hwdownload.c     err = av_hwframe_transfer_get_formats(ctx->hwframes_ref,
ctx               114 libavfilter/vf_hwdownload.c         av_log(ctx, AV_LOG_ERROR, "Invalid output format %s for hwframe "
ctx               129 libavfilter/vf_hwdownload.c     HWDownloadContext *ctx = avctx->priv;
ctx               133 libavfilter/vf_hwdownload.c     if (!ctx->hwframes_ref || !input->hw_frames_ctx) {
ctx               134 libavfilter/vf_hwdownload.c         av_log(ctx, AV_LOG_ERROR, "Input frames must have hardware context.\n");
ctx               138 libavfilter/vf_hwdownload.c     if ((void*)ctx->hwframes != input->hw_frames_ctx->data) {
ctx               139 libavfilter/vf_hwdownload.c         av_log(ctx, AV_LOG_ERROR, "Input frame is not the in the configured "
ctx               145 libavfilter/vf_hwdownload.c     output = ff_get_video_buffer(outlink, ctx->hwframes->width,
ctx               146 libavfilter/vf_hwdownload.c                                  ctx->hwframes->height);
ctx               154 libavfilter/vf_hwdownload.c         av_log(ctx, AV_LOG_ERROR, "Failed to download frame: %d.\n", err);
ctx               177 libavfilter/vf_hwdownload.c     HWDownloadContext *ctx = avctx->priv;
ctx               179 libavfilter/vf_hwdownload.c     av_buffer_unref(&ctx->hwframes_ref);
ctx                56 libavfilter/vf_hwmap.c     HWMapContext      *ctx = avctx->priv;
ctx                67 libavfilter/vf_hwmap.c     av_buffer_unref(&ctx->hwframes_ref);
ctx                75 libavfilter/vf_hwmap.c         if (ctx->derive_device_type) {
ctx                78 libavfilter/vf_hwmap.c             type = av_hwdevice_find_type_by_name(ctx->derive_device_type);
ctx               103 libavfilter/vf_hwmap.c             !ctx->reverse) {
ctx               114 libavfilter/vf_hwmap.c             err = av_hwframe_ctx_create_derived(&ctx->hwframes_ref,
ctx               118 libavfilter/vf_hwmap.c                                                 ctx->mode);
ctx               127 libavfilter/vf_hwmap.c                    ctx->reverse) {
ctx               135 libavfilter/vf_hwmap.c             ctx->hwframes_ref = av_hwframe_ctx_alloc(device);
ctx               136 libavfilter/vf_hwmap.c             if (!ctx->hwframes_ref) {
ctx               140 libavfilter/vf_hwmap.c             frames = (AVHWFramesContext*)ctx->hwframes_ref->data;
ctx               150 libavfilter/vf_hwmap.c             err = av_hwframe_ctx_init(ctx->hwframes_ref);
ctx               160 libavfilter/vf_hwmap.c                                                 ctx->hwframes_ref,
ctx               161 libavfilter/vf_hwmap.c                                                 ctx->mode);
ctx               183 libavfilter/vf_hwmap.c             ctx->hwframes_ref = av_buffer_ref(inlink->hw_frames_ctx);
ctx               184 libavfilter/vf_hwmap.c             if (!ctx->hwframes_ref) {
ctx               214 libavfilter/vf_hwmap.c         ctx->reverse = 1;
ctx               216 libavfilter/vf_hwmap.c         ctx->hwframes_ref = av_hwframe_ctx_alloc(device);
ctx               217 libavfilter/vf_hwmap.c         if (!ctx->hwframes_ref) {
ctx               221 libavfilter/vf_hwmap.c         hwfc = (AVHWFramesContext*)ctx->hwframes_ref->data;
ctx               231 libavfilter/vf_hwmap.c         err = av_hwframe_ctx_init(ctx->hwframes_ref);
ctx               244 libavfilter/vf_hwmap.c     outlink->hw_frames_ctx = av_buffer_ref(ctx->hwframes_ref);
ctx               260 libavfilter/vf_hwmap.c     av_buffer_unref(&ctx->hwframes_ref);
ctx               268 libavfilter/vf_hwmap.c     HWMapContext      *ctx = avctx->priv;
ctx               270 libavfilter/vf_hwmap.c     if (ctx->reverse && !inlink->hw_frames_ctx) {
ctx               287 libavfilter/vf_hwmap.c         err = av_hwframe_map(dst, src, ctx->mode);
ctx               307 libavfilter/vf_hwmap.c     HWMapContext      *ctx = avctx->priv;
ctx               311 libavfilter/vf_hwmap.c     av_log(ctx, AV_LOG_DEBUG, "Filter input: %s, %ux%u (%"PRId64").\n",
ctx               322 libavfilter/vf_hwmap.c     map->hw_frames_ctx = av_buffer_ref(ctx->hwframes_ref);
ctx               328 libavfilter/vf_hwmap.c     if (ctx->reverse && !input->hw_frames_ctx) {
ctx               332 libavfilter/vf_hwmap.c         input->hw_frames_ctx = av_buffer_ref(ctx->hwframes_ref);
ctx               339 libavfilter/vf_hwmap.c     err = av_hwframe_map(map, input, ctx->mode);
ctx               351 libavfilter/vf_hwmap.c     av_log(ctx, AV_LOG_DEBUG, "Filter output: %s, %ux%u (%"PRId64").\n",
ctx               365 libavfilter/vf_hwmap.c     HWMapContext *ctx = avctx->priv;
ctx               367 libavfilter/vf_hwmap.c     av_buffer_unref(&ctx->hwframes_ref);
ctx                44 libavfilter/vf_hwupload.c     HWUploadContext *ctx = avctx->priv;
ctx                50 libavfilter/vf_hwupload.c     if (ctx->hwdevice_ref) {
ctx                53 libavfilter/vf_hwupload.c         if (ctx->device_type) {
ctx                55 libavfilter/vf_hwupload.c                 &ctx->hwdevice_ref,
ctx                56 libavfilter/vf_hwupload.c                 av_hwdevice_find_type_by_name(ctx->device_type),
ctx                61 libavfilter/vf_hwupload.c             ctx->hwdevice_ref = av_buffer_ref(avctx->hw_device_ctx);
ctx                62 libavfilter/vf_hwupload.c             if (!ctx->hwdevice_ref)
ctx                66 libavfilter/vf_hwupload.c         av_log(ctx, AV_LOG_ERROR, "A hardware device reference is required "
ctx                71 libavfilter/vf_hwupload.c     constraints = av_hwdevice_get_hwframe_constraints(ctx->hwdevice_ref, NULL);
ctx               102 libavfilter/vf_hwupload.c     av_buffer_unref(&ctx->hwdevice_ref);
ctx               111 libavfilter/vf_hwupload.c     HWUploadContext   *ctx = avctx->priv;
ctx               114 libavfilter/vf_hwupload.c     av_buffer_unref(&ctx->hwframes_ref);
ctx               120 libavfilter/vf_hwupload.c             av_log(ctx, AV_LOG_ERROR, "No input hwframe context.\n");
ctx               131 libavfilter/vf_hwupload.c     ctx->hwframes_ref = av_hwframe_ctx_alloc(ctx->hwdevice_ref);
ctx               132 libavfilter/vf_hwupload.c     if (!ctx->hwframes_ref)
ctx               135 libavfilter/vf_hwupload.c     ctx->hwframes = (AVHWFramesContext*)ctx->hwframes_ref->data;
ctx               137 libavfilter/vf_hwupload.c     av_log(ctx, AV_LOG_DEBUG, "Surface format is %s.\n",
ctx               140 libavfilter/vf_hwupload.c     ctx->hwframes->format    = outlink->format;
ctx               144 libavfilter/vf_hwupload.c         ctx->hwframes->sw_format = in_hwframe_ctx->sw_format;
ctx               146 libavfilter/vf_hwupload.c         ctx->hwframes->sw_format = inlink->format;
ctx               148 libavfilter/vf_hwupload.c     ctx->hwframes->width     = inlink->w;
ctx               149 libavfilter/vf_hwupload.c     ctx->hwframes->height    = inlink->h;
ctx               152 libavfilter/vf_hwupload.c         ctx->hwframes->initial_pool_size = 2 + avctx->extra_hw_frames;
ctx               154 libavfilter/vf_hwupload.c     err = av_hwframe_ctx_init(ctx->hwframes_ref);
ctx               158 libavfilter/vf_hwupload.c     outlink->hw_frames_ctx = av_buffer_ref(ctx->hwframes_ref);
ctx               167 libavfilter/vf_hwupload.c     av_buffer_unref(&ctx->hwframes_ref);
ctx               175 libavfilter/vf_hwupload.c     HWUploadContext   *ctx = avctx->priv;
ctx               184 libavfilter/vf_hwupload.c         av_log(ctx, AV_LOG_ERROR, "Failed to allocate frame to upload to.\n");
ctx               194 libavfilter/vf_hwupload.c         av_log(ctx, AV_LOG_ERROR, "Failed to upload frame: %d.\n", err);
ctx               214 libavfilter/vf_hwupload.c     HWUploadContext *ctx = avctx->priv;
ctx               216 libavfilter/vf_hwupload.c     av_buffer_unref(&ctx->hwframes_ref);
ctx               217 libavfilter/vf_hwupload.c     av_buffer_unref(&ctx->hwdevice_ref);
ctx                37 libavfilter/vf_hwupload_cuda.c static av_cold int cudaupload_init(AVFilterContext *ctx)
ctx                39 libavfilter/vf_hwupload_cuda.c     CudaUploadContext *s = ctx->priv;
ctx                47 libavfilter/vf_hwupload_cuda.c static av_cold void cudaupload_uninit(AVFilterContext *ctx)
ctx                49 libavfilter/vf_hwupload_cuda.c     CudaUploadContext *s = ctx->priv;
ctx                55 libavfilter/vf_hwupload_cuda.c static int cudaupload_query_formats(AVFilterContext *ctx)
ctx                74 libavfilter/vf_hwupload_cuda.c     ret = ff_formats_ref(in_fmts, &ctx->inputs[0]->out_formats);
ctx                80 libavfilter/vf_hwupload_cuda.c     ret = ff_formats_ref(out_fmts, &ctx->outputs[0]->in_formats);
ctx                89 libavfilter/vf_hwupload_cuda.c     AVFilterContext *ctx = outlink->src;
ctx                90 libavfilter/vf_hwupload_cuda.c     AVFilterLink *inlink = ctx->inputs[0];
ctx                91 libavfilter/vf_hwupload_cuda.c     CudaUploadContext *s = ctx->priv;
ctx               125 libavfilter/vf_hwupload_cuda.c     AVFilterContext   *ctx = link->dst;
ctx               126 libavfilter/vf_hwupload_cuda.c     AVFilterLink  *outlink = ctx->outputs[0];
ctx               142 libavfilter/vf_hwupload_cuda.c         av_log(ctx, AV_LOG_ERROR, "Error transferring data to the GPU\n");
ctx               152 libavfilter/vf_hwupload_cuda.c     return ff_filter_frame(ctx->outputs[0], out);
ctx                61 libavfilter/vf_hysteresis.c static int query_formats(AVFilterContext *ctx)
ctx                84 libavfilter/vf_hysteresis.c     return ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx                89 libavfilter/vf_hysteresis.c     AVFilterContext *ctx = fs->parent;
ctx                91 libavfilter/vf_hysteresis.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                99 libavfilter/vf_hysteresis.c     if (ctx->is_disabled) {
ctx               257 libavfilter/vf_hysteresis.c     AVFilterContext *ctx = inlink->dst;
ctx               258 libavfilter/vf_hysteresis.c     HysteresisContext *s = ctx->priv;
ctx               291 libavfilter/vf_hysteresis.c     AVFilterContext *ctx = outlink->src;
ctx               292 libavfilter/vf_hysteresis.c     HysteresisContext *s = ctx->priv;
ctx               293 libavfilter/vf_hysteresis.c     AVFilterLink *base = ctx->inputs[0];
ctx               294 libavfilter/vf_hysteresis.c     AVFilterLink *alt = ctx->inputs[1];
ctx               299 libavfilter/vf_hysteresis.c         av_log(ctx, AV_LOG_ERROR, "inputs must be of same pixel format\n");
ctx               303 libavfilter/vf_hysteresis.c         av_log(ctx, AV_LOG_ERROR, "First input link %s parameters "
ctx               306 libavfilter/vf_hysteresis.c                ctx->input_pads[0].name, base->w, base->h,
ctx               307 libavfilter/vf_hysteresis.c                ctx->input_pads[1].name,
ctx               317 libavfilter/vf_hysteresis.c     if ((ret = ff_framesync_init(&s->fs, ctx, 2)) < 0)
ctx               338 libavfilter/vf_hysteresis.c static int activate(AVFilterContext *ctx)
ctx               340 libavfilter/vf_hysteresis.c     HysteresisContext *s = ctx->priv;
ctx               344 libavfilter/vf_hysteresis.c static av_cold void uninit(AVFilterContext *ctx)
ctx               346 libavfilter/vf_hysteresis.c     HysteresisContext *s = ctx->priv;
ctx               113 libavfilter/vf_idet.c static void filter(AVFilterContext *ctx)
ctx               115 libavfilter/vf_idet.c     IDETContext *idet = ctx->priv;
ctx               213 libavfilter/vf_idet.c     av_log(ctx, AV_LOG_DEBUG, "Repeated Field:%12s, Single frame:%12s, Multi frame:%12s\n",
ctx               236 libavfilter/vf_idet.c     AVFilterContext *ctx = link->dst;
ctx               237 libavfilter/vf_idet.c     IDETContext *idet = ctx->priv;
ctx               244 libavfilter/vf_idet.c         return ff_filter_frame(ctx->outputs[0], picref);
ctx               249 libavfilter/vf_idet.c         return ff_filter_frame(ctx->outputs[0], picref);
ctx               287 libavfilter/vf_idet.c             filter(ctx);
ctx               296 libavfilter/vf_idet.c                 ff_filter_frame(ctx->outputs[0], av_frame_clone(idet->cur));
ctx               301 libavfilter/vf_idet.c                 av_log(ctx, AV_LOG_INFO, "Final flag accuracy %d\n", idet->interlaced_flag_accuracy);
ctx               302 libavfilter/vf_idet.c                 return ff_filter_frame(ctx->outputs[0], av_frame_clone(idet->next));
ctx               306 libavfilter/vf_idet.c         filter(ctx);
ctx               309 libavfilter/vf_idet.c     return ff_filter_frame(ctx->outputs[0], av_frame_clone(idet->cur));
ctx               314 libavfilter/vf_idet.c     AVFilterContext *ctx = link->src;
ctx               315 libavfilter/vf_idet.c     IDETContext *idet = ctx->priv;
ctx               336 libavfilter/vf_idet.c static av_cold void uninit(AVFilterContext *ctx)
ctx               338 libavfilter/vf_idet.c     IDETContext *idet = ctx->priv;
ctx               339 libavfilter/vf_idet.c     int level = strncmp(ctx->name, "auto-inserted", 13) ? AV_LOG_INFO : AV_LOG_DEBUG;
ctx               341 libavfilter/vf_idet.c     av_log(ctx, level, "Repeated Fields: Neither:%6"PRId64" Top:%6"PRId64" Bottom:%6"PRId64"\n",
ctx               346 libavfilter/vf_idet.c     av_log(ctx, level, "Single frame detection: TFF:%6"PRId64" BFF:%6"PRId64" Progressive:%6"PRId64" Undetermined:%6"PRId64"\n",
ctx               352 libavfilter/vf_idet.c     av_log(ctx, level, "Multi frame detection: TFF:%6"PRId64" BFF:%6"PRId64" Progressive:%6"PRId64" Undetermined:%6"PRId64"\n",
ctx               364 libavfilter/vf_idet.c static int query_formats(AVFilterContext *ctx)
ctx               402 libavfilter/vf_idet.c     return ff_set_common_formats(ctx, fmts_list);
ctx               405 libavfilter/vf_idet.c static av_cold int init(AVFilterContext *ctx)
ctx               407 libavfilter/vf_idet.c     IDETContext *idet = ctx->priv;
ctx                84 libavfilter/vf_il.c static int query_formats(AVFilterContext *ctx)
ctx                97 libavfilter/vf_il.c     return ff_set_common_formats(ctx, formats);
ctx                62 libavfilter/vf_kerndeint.c static av_cold void uninit(AVFilterContext *ctx)
ctx                64 libavfilter/vf_kerndeint.c     KerndeintContext *kerndeint = ctx->priv;
ctx                69 libavfilter/vf_kerndeint.c static int query_formats(AVFilterContext *ctx)
ctx                84 libavfilter/vf_kerndeint.c     return ff_set_common_formats(ctx, fmts_list);
ctx                44 libavfilter/vf_lagfun.c     int (*lagfun)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx                47 libavfilter/vf_lagfun.c static int query_formats(AVFilterContext *ctx)
ctx                73 libavfilter/vf_lagfun.c     return ff_set_common_formats(ctx, formats);
ctx                80 libavfilter/vf_lagfun.c static int lagfun_frame8(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx                82 libavfilter/vf_lagfun.c     LagfunContext *s = ctx->priv;
ctx               116 libavfilter/vf_lagfun.c static int lagfun_frame16(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               118 libavfilter/vf_lagfun.c     LagfunContext *s = ctx->priv;
ctx               154 libavfilter/vf_lagfun.c     AVFilterContext *ctx = outlink->src;
ctx               155 libavfilter/vf_lagfun.c     LagfunContext *s = ctx->priv;
ctx               156 libavfilter/vf_lagfun.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               177 libavfilter/vf_lagfun.c     AVFilterContext *ctx = inlink->dst;
ctx               178 libavfilter/vf_lagfun.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               179 libavfilter/vf_lagfun.c     LagfunContext *s = ctx->priv;
ctx               198 libavfilter/vf_lagfun.c     ctx->internal->execute(ctx, s->lagfun, &td, NULL, FFMIN(s->height[1], ff_filter_get_nb_threads(ctx)));
ctx               206 libavfilter/vf_lagfun.c static av_cold void uninit(AVFilterContext *ctx)
ctx               208 libavfilter/vf_lagfun.c     LagfunContext *s = ctx->priv;
ctx                66 libavfilter/vf_lenscorrection.c static int filter_slice(AVFilterContext *ctx, void *arg, int job, int nb_jobs)
ctx                99 libavfilter/vf_lenscorrection.c static int query_formats(AVFilterContext *ctx)
ctx               113 libavfilter/vf_lenscorrection.c     return ff_set_common_formats(ctx, fmts_list);
ctx               116 libavfilter/vf_lenscorrection.c static av_cold void uninit(AVFilterContext *ctx)
ctx               118 libavfilter/vf_lenscorrection.c     LenscorrectionCtx *rect = ctx->priv;
ctx               128 libavfilter/vf_lenscorrection.c     AVFilterContext *ctx = outlink->src;
ctx               129 libavfilter/vf_lenscorrection.c     LenscorrectionCtx *rect = ctx->priv;
ctx               130 libavfilter/vf_lenscorrection.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               142 libavfilter/vf_lenscorrection.c     AVFilterContext *ctx = inlink->dst;
ctx               143 libavfilter/vf_lenscorrection.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               144 libavfilter/vf_lenscorrection.c     LenscorrectionCtx *rect = (LenscorrectionCtx*)ctx->priv;
ctx               194 libavfilter/vf_lenscorrection.c         ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(h, ff_filter_get_nb_threads(ctx)));
ctx               132 libavfilter/vf_lensfun.c static av_cold int init(AVFilterContext *ctx)
ctx               134 libavfilter/vf_lensfun.c     LensfunContext *lensfun = ctx->priv;
ctx               140 libavfilter/vf_lensfun.c         av_log(ctx, AV_LOG_FATAL, "Option \"make\" not specified\n");
ctx               143 libavfilter/vf_lensfun.c         av_log(ctx, AV_LOG_FATAL, "Option \"model\" not specified\n");
ctx               146 libavfilter/vf_lensfun.c         av_log(ctx, AV_LOG_FATAL, "Option \"lens_model\" not specified\n");
ctx               156 libavfilter/vf_lensfun.c         av_log(ctx, AV_LOG_FATAL, "Failed to load lensfun database\n");
ctx               163 libavfilter/vf_lensfun.c         av_log(ctx, AV_LOG_INFO, "Using camera %s\n", lensfun->camera->Model);
ctx               167 libavfilter/vf_lensfun.c         av_log(ctx, AV_LOG_FATAL, "Failed to find camera in lensfun database\n");
ctx               175 libavfilter/vf_lensfun.c         av_log(ctx, AV_LOG_INFO, "Using lens %s\n", lensfun->lens->Model);
ctx               179 libavfilter/vf_lensfun.c         av_log(ctx, AV_LOG_FATAL, "Failed to find lens in lensfun database\n");
ctx               188 libavfilter/vf_lensfun.c static int query_formats(AVFilterContext *ctx)
ctx               193 libavfilter/vf_lensfun.c     return ff_set_common_formats(ctx, fmts_list);
ctx               209 libavfilter/vf_lensfun.c     AVFilterContext *ctx = inlink->dst;
ctx               210 libavfilter/vf_lensfun.c     LensfunContext *lensfun = ctx->priv;
ctx               291 libavfilter/vf_lensfun.c static int vignetting_filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               314 libavfilter/vf_lensfun.c static int distortion_correction_filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               445 libavfilter/vf_lensfun.c     AVFilterContext *ctx = inlink->dst;
ctx               446 libavfilter/vf_lensfun.c     LensfunContext *lensfun = ctx->priv;
ctx               447 libavfilter/vf_lensfun.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               464 libavfilter/vf_lensfun.c         ctx->internal->execute(ctx,
ctx               468 libavfilter/vf_lensfun.c                                FFMIN(outlink->h, ff_filter_get_nb_threads(ctx)));
ctx               492 libavfilter/vf_lensfun.c         ctx->internal->execute(ctx,
ctx               496 libavfilter/vf_lensfun.c                                FFMIN(outlink->h, ff_filter_get_nb_threads(ctx)));
ctx               505 libavfilter/vf_lensfun.c static av_cold void uninit(AVFilterContext *ctx)
ctx               507 libavfilter/vf_lensfun.c     LensfunContext *lensfun = ctx->priv;
ctx                67 libavfilter/vf_libopencv.c static int query_formats(AVFilterContext *ctx)
ctx                75 libavfilter/vf_libopencv.c     return ff_set_common_formats(ctx, fmts_list);
ctx                82 libavfilter/vf_libopencv.c     int (*init)(AVFilterContext *ctx, const char *args);
ctx                83 libavfilter/vf_libopencv.c     void (*uninit)(AVFilterContext *ctx);
ctx                84 libavfilter/vf_libopencv.c     void (*end_frame_filter)(AVFilterContext *ctx, IplImage *inimg, IplImage *outimg);
ctx                94 libavfilter/vf_libopencv.c static av_cold int smooth_init(AVFilterContext *ctx, const char *args)
ctx                96 libavfilter/vf_libopencv.c     OCVContext *s = ctx->priv;
ctx               114 libavfilter/vf_libopencv.c         av_log(ctx, AV_LOG_ERROR, "Smoothing type '%s' unknown.\n", type_str);
ctx               119 libavfilter/vf_libopencv.c         av_log(ctx, AV_LOG_ERROR,
ctx               126 libavfilter/vf_libopencv.c         av_log(ctx, AV_LOG_ERROR,
ctx               132 libavfilter/vf_libopencv.c     av_log(ctx, AV_LOG_VERBOSE, "type:%s param1:%d param2:%d param3:%f param4:%f\n",
ctx               137 libavfilter/vf_libopencv.c static void smooth_end_frame_filter(AVFilterContext *ctx, IplImage *inimg, IplImage *outimg)
ctx               139 libavfilter/vf_libopencv.c     OCVContext *s = ctx->priv;
ctx               272 libavfilter/vf_libopencv.c static av_cold int dilate_init(AVFilterContext *ctx, const char *args)
ctx               274 libavfilter/vf_libopencv.c     OCVContext *s = ctx->priv;
ctx               291 libavfilter/vf_libopencv.c                               ctx);
ctx               298 libavfilter/vf_libopencv.c     av_log(ctx, AV_LOG_VERBOSE, "iterations_nb:%d\n", dilate->nb_iterations);
ctx               300 libavfilter/vf_libopencv.c         av_log(ctx, AV_LOG_ERROR, "Invalid non-positive value '%d' for nb_iterations\n",
ctx               307 libavfilter/vf_libopencv.c static av_cold void dilate_uninit(AVFilterContext *ctx)
ctx               309 libavfilter/vf_libopencv.c     OCVContext *s = ctx->priv;
ctx               315 libavfilter/vf_libopencv.c static void dilate_end_frame_filter(AVFilterContext *ctx, IplImage *inimg, IplImage *outimg)
ctx               317 libavfilter/vf_libopencv.c     OCVContext *s = ctx->priv;
ctx               322 libavfilter/vf_libopencv.c static void erode_end_frame_filter(AVFilterContext *ctx, IplImage *inimg, IplImage *outimg)
ctx               324 libavfilter/vf_libopencv.c     OCVContext *s = ctx->priv;
ctx               332 libavfilter/vf_libopencv.c     int  (*init)(AVFilterContext *ctx, const char *args);
ctx               333 libavfilter/vf_libopencv.c     void (*uninit)(AVFilterContext *ctx);
ctx               334 libavfilter/vf_libopencv.c     void (*end_frame_filter)(AVFilterContext *ctx, IplImage *inimg, IplImage *outimg);
ctx               343 libavfilter/vf_libopencv.c static av_cold int init(AVFilterContext *ctx)
ctx               345 libavfilter/vf_libopencv.c     OCVContext *s = ctx->priv;
ctx               349 libavfilter/vf_libopencv.c         av_log(ctx, AV_LOG_ERROR, "No libopencv filter name specified\n");
ctx               361 libavfilter/vf_libopencv.c             return s->init(ctx, s->params);
ctx               365 libavfilter/vf_libopencv.c     av_log(ctx, AV_LOG_ERROR, "No libopencv filter named '%s'\n", s->name);
ctx               369 libavfilter/vf_libopencv.c static av_cold void uninit(AVFilterContext *ctx)
ctx               371 libavfilter/vf_libopencv.c     OCVContext *s = ctx->priv;
ctx               374 libavfilter/vf_libopencv.c         s->uninit(ctx);
ctx               380 libavfilter/vf_libopencv.c     AVFilterContext *ctx = inlink->dst;
ctx               381 libavfilter/vf_libopencv.c     OCVContext *s = ctx->priv;
ctx               395 libavfilter/vf_libopencv.c     s->end_frame_filter(ctx, &inimg, &outimg);
ctx                94 libavfilter/vf_libvmaf.c                                       float *temp_data, int stride, void *ctx)  \
ctx                96 libavfilter/vf_libvmaf.c     LIBVMAFContext *s = (LIBVMAFContext *) ctx;                                 \
ctx               161 libavfilter/vf_libvmaf.c                       int stride, void *ctx);
ctx               180 libavfilter/vf_libvmaf.c static void *call_vmaf(void *ctx)
ctx               182 libavfilter/vf_libvmaf.c     LIBVMAFContext *s = (LIBVMAFContext *) ctx;
ctx               185 libavfilter/vf_libvmaf.c         av_log(ctx, AV_LOG_INFO, "VMAF score: %f\n",s->vmaf_score);
ctx               197 libavfilter/vf_libvmaf.c     AVFilterContext *ctx = fs->parent;
ctx               198 libavfilter/vf_libvmaf.c     LIBVMAFContext *s = ctx->priv;
ctx               206 libavfilter/vf_libvmaf.c         return ff_filter_frame(ctx->outputs[0], master);
ctx               215 libavfilter/vf_libvmaf.c         av_log(ctx, AV_LOG_ERROR,
ctx               229 libavfilter/vf_libvmaf.c     return ff_filter_frame(ctx->outputs[0], master);
ctx               232 libavfilter/vf_libvmaf.c static av_cold int init(AVFilterContext *ctx)
ctx               234 libavfilter/vf_libvmaf.c     LIBVMAFContext *s = ctx->priv;
ctx               251 libavfilter/vf_libvmaf.c static int query_formats(AVFilterContext *ctx)
ctx               262 libavfilter/vf_libvmaf.c     return ff_set_common_formats(ctx, fmts_list);
ctx               268 libavfilter/vf_libvmaf.c     AVFilterContext *ctx  = inlink->dst;
ctx               269 libavfilter/vf_libvmaf.c     LIBVMAFContext *s = ctx->priv;
ctx               272 libavfilter/vf_libvmaf.c     if (ctx->inputs[0]->w != ctx->inputs[1]->w ||
ctx               273 libavfilter/vf_libvmaf.c         ctx->inputs[0]->h != ctx->inputs[1]->h) {
ctx               274 libavfilter/vf_libvmaf.c         av_log(ctx, AV_LOG_ERROR, "Width and height of input videos must be same.\n");
ctx               277 libavfilter/vf_libvmaf.c     if (ctx->inputs[0]->format != ctx->inputs[1]->format) {
ctx               278 libavfilter/vf_libvmaf.c         av_log(ctx, AV_LOG_ERROR, "Inputs must be of same pixel format.\n");
ctx               283 libavfilter/vf_libvmaf.c     s->width = ctx->inputs[0]->w;
ctx               284 libavfilter/vf_libvmaf.c     s->height = ctx->inputs[0]->h;
ctx               288 libavfilter/vf_libvmaf.c         av_log(ctx, AV_LOG_ERROR, "Thread creation failed.\n");
ctx               298 libavfilter/vf_libvmaf.c     AVFilterContext *ctx = outlink->src;
ctx               299 libavfilter/vf_libvmaf.c     LIBVMAFContext *s = ctx->priv;
ctx               300 libavfilter/vf_libvmaf.c     AVFilterLink *mainlink = ctx->inputs[0];
ctx               303 libavfilter/vf_libvmaf.c     ret = ff_framesync_init_dualinput(&s->fs, ctx);
ctx               317 libavfilter/vf_libvmaf.c static int activate(AVFilterContext *ctx)
ctx               319 libavfilter/vf_libvmaf.c     LIBVMAFContext *s = ctx->priv;
ctx               323 libavfilter/vf_libvmaf.c static av_cold void uninit(AVFilterContext *ctx)
ctx               325 libavfilter/vf_libvmaf.c     LIBVMAFContext *s = ctx->priv;
ctx                60 libavfilter/vf_limiter.c static av_cold int init(AVFilterContext *ctx)
ctx                62 libavfilter/vf_limiter.c     LimiterContext *s = ctx->priv;
ctx                69 libavfilter/vf_limiter.c static int query_formats(AVFilterContext *ctx)
ctx                96 libavfilter/vf_limiter.c     return ff_set_common_formats(ctx, fmts_list);
ctx               138 libavfilter/vf_limiter.c     AVFilterContext *ctx = inlink->dst;
ctx               139 libavfilter/vf_limiter.c     LimiterContext *s = ctx->priv;
ctx               171 libavfilter/vf_limiter.c static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               173 libavfilter/vf_limiter.c     LimiterContext *s = ctx->priv;
ctx               206 libavfilter/vf_limiter.c     AVFilterContext *ctx = inlink->dst;
ctx               207 libavfilter/vf_limiter.c     LimiterContext *s = ctx->priv;
ctx               208 libavfilter/vf_limiter.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               225 libavfilter/vf_limiter.c     ctx->internal->execute(ctx, filter_slice, &td, NULL,
ctx               226 libavfilter/vf_limiter.c                            FFMIN(s->height[2], ff_filter_get_nb_threads(ctx)));
ctx                40 libavfilter/vf_lumakey.c     int (*do_lumakey_slice)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx                43 libavfilter/vf_lumakey.c static int do_lumakey_slice8(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx                45 libavfilter/vf_lumakey.c     LumakeyContext *s = ctx->priv;
ctx                75 libavfilter/vf_lumakey.c static int do_lumakey_slice16(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx                77 libavfilter/vf_lumakey.c     LumakeyContext *s = ctx->priv;
ctx               111 libavfilter/vf_lumakey.c     AVFilterContext *ctx = inlink->dst;
ctx               112 libavfilter/vf_lumakey.c     LumakeyContext *s = ctx->priv;
ctx               134 libavfilter/vf_lumakey.c     AVFilterContext *ctx = link->dst;
ctx               135 libavfilter/vf_lumakey.c     LumakeyContext *s = ctx->priv;
ctx               141 libavfilter/vf_lumakey.c     if (ret = ctx->internal->execute(ctx, s->do_lumakey_slice, frame, NULL, FFMIN(frame->height, ff_filter_get_nb_threads(ctx))))
ctx               144 libavfilter/vf_lumakey.c     return ff_filter_frame(ctx->outputs[0], frame);
ctx               147 libavfilter/vf_lumakey.c static av_cold int query_formats(AVFilterContext *ctx)
ctx               163 libavfilter/vf_lumakey.c     return ff_set_common_formats(ctx, formats);
ctx               166 libavfilter/vf_lumakey.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               171 libavfilter/vf_lumakey.c     ret = ff_filter_process_command(ctx, cmd, args, res, res_len, flags);
ctx               175 libavfilter/vf_lumakey.c     return config_input(ctx->inputs[0]);
ctx               101 libavfilter/vf_lut.c static av_cold void uninit(AVFilterContext *ctx)
ctx               103 libavfilter/vf_lut.c     LutContext *s = ctx->priv;
ctx               146 libavfilter/vf_lut.c static int query_formats(AVFilterContext *ctx)
ctx               148 libavfilter/vf_lut.c     LutContext *s = ctx->priv;
ctx               156 libavfilter/vf_lut.c     return ff_set_common_formats(ctx, fmts_list);
ctx               216 libavfilter/vf_lut.c     AVFilterContext *ctx = inlink->dst;
ctx               217 libavfilter/vf_lut.c     LutContext *s = ctx->priv;
ctx               306 libavfilter/vf_lut.c                             var_names, funcs1_names, funcs1, NULL, NULL, 0, ctx);
ctx               308 libavfilter/vf_lut.c             av_log(ctx, AV_LOG_ERROR,
ctx               327 libavfilter/vf_lut.c                 av_log(ctx, AV_LOG_ERROR,
ctx               333 libavfilter/vf_lut.c             av_log(ctx, AV_LOG_DEBUG, "val[%d][%d] = %d\n", comp, val, s->lut[comp][val]);
ctx               349 libavfilter/vf_lut.c     LutContext *s = ctx->priv;\
ctx               364 libavfilter/vf_lut.c static int lut_packed_16bits(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               401 libavfilter/vf_lut.c static int lut_packed_8bits(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               430 libavfilter/vf_lut.c     LutContext *s = ctx->priv;\
ctx               447 libavfilter/vf_lut.c static int lut_planar_16bits(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               479 libavfilter/vf_lut.c static int lut_planar_8bits(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               523 libavfilter/vf_lut.c     AVFilterContext *ctx = inlink->dst;
ctx               524 libavfilter/vf_lut.c     LutContext *s = ctx->priv;
ctx               525 libavfilter/vf_lut.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               544 libavfilter/vf_lut.c         ctx->internal->execute(ctx, lut_packed_16bits, &td, NULL,
ctx               545 libavfilter/vf_lut.c                                FFMIN(in->height, ff_filter_get_nb_threads(ctx)));
ctx               549 libavfilter/vf_lut.c         ctx->internal->execute(ctx, lut_packed_8bits, &td, NULL,
ctx               550 libavfilter/vf_lut.c                                FFMIN(in->height, ff_filter_get_nb_threads(ctx)));
ctx               554 libavfilter/vf_lut.c         ctx->internal->execute(ctx, lut_planar_16bits, &td, NULL,
ctx               555 libavfilter/vf_lut.c                                FFMIN(in->height, ff_filter_get_nb_threads(ctx)));
ctx               559 libavfilter/vf_lut.c         ctx->internal->execute(ctx, lut_planar_8bits, &td, NULL,
ctx               560 libavfilter/vf_lut.c                                FFMIN(in->height, ff_filter_get_nb_threads(ctx)));
ctx               603 libavfilter/vf_lut.c static int lut_init(AVFilterContext *ctx)
ctx               616 libavfilter/vf_lut.c static av_cold int lutyuv_init(AVFilterContext *ctx)
ctx               618 libavfilter/vf_lut.c     LutContext *s = ctx->priv;
ctx               633 libavfilter/vf_lut.c static av_cold int lutrgb_init(AVFilterContext *ctx)
ctx               635 libavfilter/vf_lut.c     LutContext *s = ctx->priv;
ctx               654 libavfilter/vf_lut.c static av_cold int negate_init(AVFilterContext *ctx)
ctx               656 libavfilter/vf_lut.c     LutContext *s = ctx->priv;
ctx               659 libavfilter/vf_lut.c     av_log(ctx, AV_LOG_DEBUG, "negate_alpha:%d\n", s->negate_alpha);
ctx               665 libavfilter/vf_lut.c             uninit(ctx);
ctx                73 libavfilter/vf_lut2.c     int (*lut2)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx                92 libavfilter/vf_lut2.c static av_cold void uninit(AVFilterContext *ctx)
ctx                94 libavfilter/vf_lut2.c     LUT2Context *s = ctx->priv;
ctx               140 libavfilter/vf_lut2.c static int query_formats(AVFilterContext *ctx)
ctx               142 libavfilter/vf_lut2.c     LUT2Context *s = ctx->priv;
ctx               178 libavfilter/vf_lut2.c         return ff_set_common_formats(ctx, ff_make_format_list(all_pix_fmts));
ctx               180 libavfilter/vf_lut2.c     ret = ff_formats_ref(ff_make_format_list(all_pix_fmts), &ctx->inputs[0]->out_formats);
ctx               191 libavfilter/vf_lut2.c     default: av_log(ctx, AV_LOG_ERROR, "Unsupported output bit depth %d.\n", s->odepth);
ctx               195 libavfilter/vf_lut2.c     return ff_formats_ref(ff_make_format_list(pix_fmts), &ctx->outputs[0]->in_formats);
ctx               200 libavfilter/vf_lut2.c     AVFilterContext *ctx = inlink->dst;
ctx               201 libavfilter/vf_lut2.c     LUT2Context *s = ctx->priv;
ctx               227 libavfilter/vf_lut2.c     AVFilterContext *ctx = inlink->dst;
ctx               228 libavfilter/vf_lut2.c     LUT2Context *s = ctx->priv;
ctx               245 libavfilter/vf_lut2.c static int lut2_##zname##_##xname##_##yname(AVFilterContext *ctx,                \
ctx               249 libavfilter/vf_lut2.c     LUT2Context *s = ctx->priv;                                                  \
ctx               293 libavfilter/vf_lut2.c     AVFilterContext *ctx = fs->parent;
ctx               295 libavfilter/vf_lut2.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               303 libavfilter/vf_lut2.c     if (ctx->is_disabled || !srcy) {
ctx               318 libavfilter/vf_lut2.c         ctx->internal->execute(ctx, s->lut2, &td, NULL, FFMIN(s->heightx[1], ff_filter_get_nb_threads(ctx)));
ctx               328 libavfilter/vf_lut2.c     AVFilterContext *ctx = outlink->src;
ctx               329 libavfilter/vf_lut2.c     LUT2Context *s = ctx->priv;
ctx               369 libavfilter/vf_lut2.c                             var_names, NULL, NULL, NULL, NULL, 0, ctx);
ctx               371 libavfilter/vf_lut2.c             av_log(ctx, AV_LOG_ERROR,
ctx               384 libavfilter/vf_lut2.c                     av_log(ctx, AV_LOG_ERROR,
ctx               400 libavfilter/vf_lut2.c     AVFilterContext *ctx = outlink->src;
ctx               401 libavfilter/vf_lut2.c     LUT2Context *s = ctx->priv;
ctx               402 libavfilter/vf_lut2.c     AVFilterLink *srcx = ctx->inputs[0];
ctx               403 libavfilter/vf_lut2.c     AVFilterLink *srcy = ctx->inputs[1];
ctx               423 libavfilter/vf_lut2.c         av_log(ctx, AV_LOG_ERROR, "inputs must be of same pixel format\n");
ctx               428 libavfilter/vf_lut2.c         av_log(ctx, AV_LOG_ERROR, "First input link %s parameters "
ctx               431 libavfilter/vf_lut2.c                ctx->input_pads[0].name, srcx->w, srcx->h,
ctx               432 libavfilter/vf_lut2.c                ctx->input_pads[1].name,
ctx               438 libavfilter/vf_lut2.c         av_log(ctx, AV_LOG_ERROR, "First input link %s number of planes "
ctx               441 libavfilter/vf_lut2.c                ctx->input_pads[0].name, s->nb_planesx,
ctx               442 libavfilter/vf_lut2.c                ctx->input_pads[1].name, s->nb_planesy);
ctx               447 libavfilter/vf_lut2.c         av_log(ctx, AV_LOG_ERROR, "First input link %s number of planes "
ctx               450 libavfilter/vf_lut2.c                ctx->input_pads[0].name, s->nb_planesx,
ctx               451 libavfilter/vf_lut2.c                ctx->output_pads[0].name, s->nb_planes);
ctx               456 libavfilter/vf_lut2.c         av_log(ctx, AV_LOG_ERROR, "First input link %s 2nd plane "
ctx               459 libavfilter/vf_lut2.c                ctx->input_pads[0].name, s->widthx[1], s->heightx[1],
ctx               460 libavfilter/vf_lut2.c                ctx->input_pads[1].name,
ctx               466 libavfilter/vf_lut2.c         av_log(ctx, AV_LOG_ERROR, "First input link %s 3rd plane "
ctx               469 libavfilter/vf_lut2.c                ctx->input_pads[0].name, s->widthx[2], s->heightx[2],
ctx               470 libavfilter/vf_lut2.c                ctx->input_pads[1].name,
ctx               476 libavfilter/vf_lut2.c         av_log(ctx, AV_LOG_ERROR, "First input link %s 2nd plane "
ctx               479 libavfilter/vf_lut2.c                ctx->input_pads[0].name, s->widthx[1], s->heightx[1],
ctx               480 libavfilter/vf_lut2.c                ctx->output_pads[0].name, s->width[1], s->height[1]);
ctx               485 libavfilter/vf_lut2.c         av_log(ctx, AV_LOG_ERROR, "First input link %s 3rd plane "
ctx               488 libavfilter/vf_lut2.c                ctx->input_pads[0].name, s->widthx[2], s->heightx[2],
ctx               489 libavfilter/vf_lut2.c                ctx->output_pads[0].name, s->width[2], s->height[2]);
ctx               493 libavfilter/vf_lut2.c     if ((ret = ff_framesync_init(&s->fs, ctx, 2)) < 0)
ctx               517 libavfilter/vf_lut2.c static int activate(AVFilterContext *ctx)
ctx               519 libavfilter/vf_lut2.c     LUT2Context *s = ctx->priv;
ctx               567 libavfilter/vf_lut2.c static av_cold int init(AVFilterContext *ctx)
ctx               569 libavfilter/vf_lut2.c     LUT2Context *s = ctx->priv;
ctx               571 libavfilter/vf_lut2.c     s->tlut2 = !strcmp(ctx->filter->name, "tlut2");
ctx               578 libavfilter/vf_lut2.c     AVFilterContext *ctx = inlink->dst;
ctx               579 libavfilter/vf_lut2.c     LUT2Context *s = ctx->priv;
ctx               580 libavfilter/vf_lut2.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               585 libavfilter/vf_lut2.c         if (ctx->is_disabled) {
ctx               602 libavfilter/vf_lut2.c             ctx->internal->execute(ctx, s->lut2, &td, NULL, FFMIN(s->heightx[1], ff_filter_get_nb_threads(ctx)));
ctx               276 libavfilter/vf_lut3d.c static int interp_##nbits##_##name##_p##depth(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) \
ctx               279 libavfilter/vf_lut3d.c     const LUT3DContext *lut3d = ctx->priv;                                                             \
ctx               362 libavfilter/vf_lut3d.c static int interp_##name##_pf##depth(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)          \
ctx               365 libavfilter/vf_lut3d.c     const LUT3DContext *lut3d = ctx->priv;                                                             \
ctx               427 libavfilter/vf_lut3d.c static int interp_##nbits##_##name(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)         \
ctx               430 libavfilter/vf_lut3d.c     const LUT3DContext *lut3d = ctx->priv;                                                          \
ctx               528 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_ERROR, "Unexpected EOF\n");      \
ctx               535 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_ERROR, "Unexpected EOF\n");      \
ctx               541 libavfilter/vf_lut3d.c static int allocate_3dlut(AVFilterContext *ctx, int lutsize, int prelut)
ctx               543 libavfilter/vf_lut3d.c     LUT3DContext *lut3d = ctx->priv;
ctx               546 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_ERROR, "Too large or invalid 3D LUT size\n");
ctx               576 libavfilter/vf_lut3d.c static int parse_dat(AVFilterContext *ctx, FILE *f)
ctx               578 libavfilter/vf_lut3d.c     LUT3DContext *lut3d = ctx->priv;
ctx               592 libavfilter/vf_lut3d.c     ret = allocate_3dlut(ctx, size, 0);
ctx               611 libavfilter/vf_lut3d.c static int parse_cube(AVFilterContext *ctx, FILE *f)
ctx               613 libavfilter/vf_lut3d.c     LUT3DContext *lut3d = ctx->priv;
ctx               624 libavfilter/vf_lut3d.c             ret = allocate_3dlut(ctx, size, 0);
ctx               643 libavfilter/vf_lut3d.c                                 av_log(ctx, AV_LOG_DEBUG, "min: %f %f %f | max: %f %f %f\n",
ctx               668 libavfilter/vf_lut3d.c static int parse_3dl(AVFilterContext *ctx, FILE *f)
ctx               671 libavfilter/vf_lut3d.c     LUT3DContext *lut3d = ctx->priv;
ctx               679 libavfilter/vf_lut3d.c     ret = allocate_3dlut(ctx, size, 0);
ctx               703 libavfilter/vf_lut3d.c static int parse_m3d(AVFilterContext *ctx, FILE *f)
ctx               705 libavfilter/vf_lut3d.c     LUT3DContext *lut3d = ctx->priv;
ctx               735 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_ERROR, "in and out must be defined\n");
ctx               741 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_ERROR, "invalid in (%d) or out (%d)\n", in, out);
ctx               748 libavfilter/vf_lut3d.c     ret = allocate_3dlut(ctx, size, 0);
ctx               810 libavfilter/vf_lut3d.c static int parse_cinespace(AVFilterContext *ctx, FILE *f)
ctx               812 libavfilter/vf_lut3d.c     LUT3DContext *lut3d = ctx->priv;
ctx               828 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_ERROR, "Not cineSpace LUT format\n");
ctx               835 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_ERROR, "Not 3D LUT format\n");
ctx               861 libavfilter/vf_lut3d.c                         av_log(ctx, AV_LOG_ERROR, "Prelut size too large.\n");
ctx               867 libavfilter/vf_lut3d.c                         av_log(ctx, AV_LOG_ERROR, "Invalid file has multiple preluts.\n");
ctx               893 libavfilter/vf_lut3d.c                             av_log(ctx, AV_LOG_ERROR, "Invalid file, non increasing prelut.\n");
ctx               920 libavfilter/vf_lut3d.c                     av_log(ctx, AV_LOG_ERROR, "Unsupported number of pre-lut points.\n");
ctx               933 libavfilter/vf_lut3d.c                 av_log(ctx, AV_LOG_ERROR, "Unsupported size combination: %dx%dx%d.\n", size_r, size_g, size_b);
ctx               944 libavfilter/vf_lut3d.c             ret = allocate_3dlut(ctx, size, prelut);
ctx              1009 libavfilter/vf_lut3d.c static int set_identity_matrix(AVFilterContext *ctx, int size)
ctx              1011 libavfilter/vf_lut3d.c     LUT3DContext *lut3d = ctx->priv;
ctx              1016 libavfilter/vf_lut3d.c     ret = allocate_3dlut(ctx, size, 0);
ctx              1034 libavfilter/vf_lut3d.c static int query_formats(AVFilterContext *ctx)
ctx              1056 libavfilter/vf_lut3d.c     return ff_set_common_formats(ctx, fmts_list);
ctx              1100 libavfilter/vf_lut3d.c     AVFilterContext *ctx = inlink->dst;
ctx              1101 libavfilter/vf_lut3d.c     LUT3DContext *lut3d = ctx->priv;
ctx              1119 libavfilter/vf_lut3d.c     ctx->internal->execute(ctx, lut3d->interp, &td, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx)));
ctx              1144 libavfilter/vf_lut3d.c static av_cold int lut3d_init(AVFilterContext *ctx)
ctx              1149 libavfilter/vf_lut3d.c     LUT3DContext *lut3d = ctx->priv;
ctx              1154 libavfilter/vf_lut3d.c         return set_identity_matrix(ctx, 32);
ctx              1160 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_ERROR, "%s: %s\n", lut3d->file, av_err2str(ret));
ctx              1166 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_ERROR, "Unable to guess the format from the extension\n");
ctx              1173 libavfilter/vf_lut3d.c         ret = parse_dat(ctx, f);
ctx              1175 libavfilter/vf_lut3d.c         ret = parse_3dl(ctx, f);
ctx              1177 libavfilter/vf_lut3d.c         ret = parse_cube(ctx, f);
ctx              1179 libavfilter/vf_lut3d.c         ret = parse_m3d(ctx, f);
ctx              1181 libavfilter/vf_lut3d.c         ret = parse_cinespace(ctx, f);
ctx              1183 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_ERROR, "Unrecognized '.%s' file type\n", ext);
ctx              1188 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_ERROR, "3D LUT is empty\n");
ctx              1197 libavfilter/vf_lut3d.c static av_cold void lut3d_uninit(AVFilterContext *ctx)
ctx              1199 libavfilter/vf_lut3d.c     LUT3DContext *lut3d = ctx->priv;
ctx              1361 libavfilter/vf_lut3d.c     AVFilterContext *ctx = outlink->src;
ctx              1362 libavfilter/vf_lut3d.c     LUT3DContext *lut3d = ctx->priv;
ctx              1365 libavfilter/vf_lut3d.c     ret = ff_framesync_init_dualinput(&lut3d->fs, ctx);
ctx              1368 libavfilter/vf_lut3d.c     outlink->w = ctx->inputs[0]->w;
ctx              1369 libavfilter/vf_lut3d.c     outlink->h = ctx->inputs[0]->h;
ctx              1370 libavfilter/vf_lut3d.c     outlink->time_base = ctx->inputs[0]->time_base;
ctx              1376 libavfilter/vf_lut3d.c static int activate(AVFilterContext *ctx)
ctx              1378 libavfilter/vf_lut3d.c     LUT3DContext *s = ctx->priv;
ctx              1385 libavfilter/vf_lut3d.c     AVFilterContext *ctx = inlink->dst;
ctx              1386 libavfilter/vf_lut3d.c     LUT3DContext *lut3d = ctx->priv;
ctx              1399 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_INFO, "Padding on the right (%dpx) of the "
ctx              1402 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_INFO, "Padding at the bottom (%dpx) of the "
ctx              1409 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_WARNING, "The Hald CLUT width does not match the level\n");
ctx              1417 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_ERROR, "Too large Hald CLUT "
ctx              1423 libavfilter/vf_lut3d.c     return allocate_3dlut(ctx, level, 0);
ctx              1428 libavfilter/vf_lut3d.c     AVFilterContext *ctx = fs->parent;
ctx              1429 libavfilter/vf_lut3d.c     LUT3DContext *lut3d = ctx->priv;
ctx              1430 libavfilter/vf_lut3d.c     AVFilterLink *inlink = ctx->inputs[0];
ctx              1438 libavfilter/vf_lut3d.c         return ff_filter_frame(ctx->outputs[0], master);
ctx              1440 libavfilter/vf_lut3d.c         update_clut_float(ctx->priv, second);
ctx              1442 libavfilter/vf_lut3d.c         update_clut_planar(ctx->priv, second);
ctx              1444 libavfilter/vf_lut3d.c         update_clut_packed(ctx->priv, second);
ctx              1446 libavfilter/vf_lut3d.c     return ff_filter_frame(ctx->outputs[0], out);
ctx              1449 libavfilter/vf_lut3d.c static av_cold int haldclut_init(AVFilterContext *ctx)
ctx              1451 libavfilter/vf_lut3d.c     LUT3DContext *lut3d = ctx->priv;
ctx              1457 libavfilter/vf_lut3d.c static av_cold void haldclut_uninit(AVFilterContext *ctx)
ctx              1459 libavfilter/vf_lut3d.c     LUT3DContext *lut3d = ctx->priv;
ctx              1549 libavfilter/vf_lut3d.c static int parse_cinespace_1d(AVFilterContext *ctx, FILE *f)
ctx              1551 libavfilter/vf_lut3d.c     LUT1DContext *lut1d = ctx->priv;
ctx              1561 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_ERROR, "Not cineSpace LUT format\n");
ctx              1567 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_ERROR, "Not 1D LUT format\n");
ctx              1587 libavfilter/vf_lut3d.c                     av_log(ctx, AV_LOG_ERROR, "Unsupported number of pre-lut points.\n");
ctx              1603 libavfilter/vf_lut3d.c                 av_log(ctx, AV_LOG_ERROR, "Too large or invalid 1D LUT size\n");
ctx              1629 libavfilter/vf_lut3d.c static int parse_cube_1d(AVFilterContext *ctx, FILE *f)
ctx              1631 libavfilter/vf_lut3d.c     LUT1DContext *lut1d = ctx->priv;
ctx              1642 libavfilter/vf_lut3d.c                 av_log(ctx, AV_LOG_ERROR, "Too large or invalid 1D LUT size\n");
ctx              1657 libavfilter/vf_lut3d.c                         av_log(ctx, AV_LOG_DEBUG, "min: %f %f %f | max: %f %f %f\n",
ctx              1774 libavfilter/vf_lut3d.c static int interp_1d_##nbits##_##name##_p##depth(AVFilterContext *ctx,       \
ctx              1779 libavfilter/vf_lut3d.c     const LUT1DContext *lut1d = ctx->priv;                                   \
ctx              1870 libavfilter/vf_lut3d.c static int interp_1d_##name##_pf##depth(AVFilterContext *ctx,                \
ctx              1875 libavfilter/vf_lut3d.c     const LUT1DContext *lut1d = ctx->priv;                                   \
ctx              1936 libavfilter/vf_lut3d.c static int interp_1d_##nbits##_##name(AVFilterContext *ctx, void *arg,       \
ctx              1940 libavfilter/vf_lut3d.c     const LUT1DContext *lut1d = ctx->priv;                                   \
ctx              2034 libavfilter/vf_lut3d.c static av_cold int lut1d_init(AVFilterContext *ctx)
ctx              2039 libavfilter/vf_lut3d.c     LUT1DContext *lut1d = ctx->priv;
ctx              2051 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_ERROR, "%s: %s\n", lut1d->file, av_err2str(ret));
ctx              2057 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_ERROR, "Unable to guess the format from the extension\n");
ctx              2064 libavfilter/vf_lut3d.c         ret = parse_cube_1d(ctx, f);
ctx              2066 libavfilter/vf_lut3d.c         ret = parse_cinespace_1d(ctx, f);
ctx              2068 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_ERROR, "Unrecognized '.%s' file type\n", ext);
ctx              2073 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_ERROR, "1D LUT is empty\n");
ctx              2084 libavfilter/vf_lut3d.c     AVFilterContext *ctx = inlink->dst;
ctx              2085 libavfilter/vf_lut3d.c     LUT1DContext *lut1d = ctx->priv;
ctx              2103 libavfilter/vf_lut3d.c     ctx->internal->execute(ctx, lut1d->interp, &td, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx)));
ctx                63 libavfilter/vf_maskedclamp.c static int query_formats(AVFilterContext *ctx)
ctx                87 libavfilter/vf_maskedclamp.c     return ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx                90 libavfilter/vf_maskedclamp.c static int maskedclamp_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx                92 libavfilter/vf_maskedclamp.c     MaskedClampContext *s = ctx->priv;
ctx               134 libavfilter/vf_maskedclamp.c     AVFilterContext *ctx = fs->parent;
ctx               136 libavfilter/vf_maskedclamp.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               145 libavfilter/vf_maskedclamp.c     if (ctx->is_disabled) {
ctx               162 libavfilter/vf_maskedclamp.c         ctx->internal->execute(ctx, maskedclamp_slice, &td, NULL, FFMIN(s->height[0],
ctx               163 libavfilter/vf_maskedclamp.c                                                                         ff_filter_get_nb_threads(ctx)));
ctx               191 libavfilter/vf_maskedclamp.c     AVFilterContext *ctx = inlink->dst;
ctx               192 libavfilter/vf_maskedclamp.c     MaskedClampContext *s = ctx->priv;
ctx               225 libavfilter/vf_maskedclamp.c     AVFilterContext *ctx = outlink->src;
ctx               226 libavfilter/vf_maskedclamp.c     MaskedClampContext *s = ctx->priv;
ctx               227 libavfilter/vf_maskedclamp.c     AVFilterLink *base = ctx->inputs[0];
ctx               228 libavfilter/vf_maskedclamp.c     AVFilterLink *dark = ctx->inputs[1];
ctx               229 libavfilter/vf_maskedclamp.c     AVFilterLink *bright = ctx->inputs[2];
ctx               235 libavfilter/vf_maskedclamp.c         av_log(ctx, AV_LOG_ERROR, "inputs must be of same pixel format\n");
ctx               240 libavfilter/vf_maskedclamp.c         av_log(ctx, AV_LOG_ERROR, "First input link %s parameters "
ctx               244 libavfilter/vf_maskedclamp.c                ctx->input_pads[0].name, base->w, base->h,
ctx               245 libavfilter/vf_maskedclamp.c                ctx->input_pads[1].name, dark->w, dark->h,
ctx               246 libavfilter/vf_maskedclamp.c                ctx->input_pads[2].name, bright->w, bright->h);
ctx               255 libavfilter/vf_maskedclamp.c     if ((ret = ff_framesync_init(&s->fs, ctx, 3)) < 0)
ctx               280 libavfilter/vf_maskedclamp.c static int activate(AVFilterContext *ctx)
ctx               282 libavfilter/vf_maskedclamp.c     MaskedClampContext *s = ctx->priv;
ctx               286 libavfilter/vf_maskedclamp.c static av_cold void uninit(AVFilterContext *ctx)
ctx               288 libavfilter/vf_maskedclamp.c     MaskedClampContext *s = ctx->priv;
ctx                40 libavfilter/vf_maskedmerge.c static int query_formats(AVFilterContext *ctx)
ctx                64 libavfilter/vf_maskedmerge.c     return ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx                72 libavfilter/vf_maskedmerge.c static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx                74 libavfilter/vf_maskedmerge.c     MaskedMergeContext *s = ctx->priv;
ctx               111 libavfilter/vf_maskedmerge.c     AVFilterContext *ctx = fs->parent;
ctx               113 libavfilter/vf_maskedmerge.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               123 libavfilter/vf_maskedmerge.c     if (ctx->is_disabled) {
ctx               137 libavfilter/vf_maskedmerge.c         ctx->internal->execute(ctx, filter_slice, &td, NULL,
ctx               138 libavfilter/vf_maskedmerge.c                                FFMIN(s->height[2], ff_filter_get_nb_threads(ctx)));
ctx               193 libavfilter/vf_maskedmerge.c     AVFilterContext *ctx = inlink->dst;
ctx               194 libavfilter/vf_maskedmerge.c     MaskedMergeContext *s = ctx->priv;
ctx               223 libavfilter/vf_maskedmerge.c     AVFilterContext *ctx = outlink->src;
ctx               224 libavfilter/vf_maskedmerge.c     MaskedMergeContext *s = ctx->priv;
ctx               225 libavfilter/vf_maskedmerge.c     AVFilterLink *base = ctx->inputs[0];
ctx               226 libavfilter/vf_maskedmerge.c     AVFilterLink *overlay = ctx->inputs[1];
ctx               227 libavfilter/vf_maskedmerge.c     AVFilterLink *mask = ctx->inputs[2];
ctx               233 libavfilter/vf_maskedmerge.c         av_log(ctx, AV_LOG_ERROR, "inputs must be of same pixel format\n");
ctx               238 libavfilter/vf_maskedmerge.c         av_log(ctx, AV_LOG_ERROR, "First input link %s parameters "
ctx               242 libavfilter/vf_maskedmerge.c                ctx->input_pads[0].name, base->w, base->h,
ctx               243 libavfilter/vf_maskedmerge.c                ctx->input_pads[1].name, overlay->w, overlay->h,
ctx               244 libavfilter/vf_maskedmerge.c                ctx->input_pads[2].name, mask->w, mask->h);
ctx               256 libavfilter/vf_maskedmerge.c     if ((ret = ff_framesync_init(&s->fs, ctx, 3)) < 0)
ctx               281 libavfilter/vf_maskedmerge.c static int activate(AVFilterContext *ctx)
ctx               283 libavfilter/vf_maskedmerge.c     MaskedMergeContext *s = ctx->priv;
ctx               287 libavfilter/vf_maskedmerge.c static av_cold void uninit(AVFilterContext *ctx)
ctx               289 libavfilter/vf_maskedmerge.c     MaskedMergeContext *s = ctx->priv;
ctx                57 libavfilter/vf_maskedminmax.c static av_cold int init(AVFilterContext *ctx)
ctx                59 libavfilter/vf_maskedminmax.c     MaskedMinMaxContext *s = ctx->priv;
ctx                61 libavfilter/vf_maskedminmax.c     s->maskedmin = !strcmp(ctx->filter->name, "maskedmin");
ctx                66 libavfilter/vf_maskedminmax.c static int query_formats(AVFilterContext *ctx)
ctx                90 libavfilter/vf_maskedminmax.c     return ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               129 libavfilter/vf_maskedminmax.c     AVFilterContext *ctx = inlink->dst;
ctx               130 libavfilter/vf_maskedminmax.c     MaskedMinMaxContext *s = ctx->priv;
ctx               156 libavfilter/vf_maskedminmax.c static int maskedminmax_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               158 libavfilter/vf_maskedminmax.c     MaskedMinMaxContext *s = ctx->priv;
ctx               196 libavfilter/vf_maskedminmax.c     AVFilterContext *ctx = fs->parent;
ctx               198 libavfilter/vf_maskedminmax.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               207 libavfilter/vf_maskedminmax.c     if (ctx->is_disabled) {
ctx               224 libavfilter/vf_maskedminmax.c         ctx->internal->execute(ctx, maskedminmax_slice, &td, NULL, FFMIN(s->planeheight[0],
ctx               225 libavfilter/vf_maskedminmax.c                                                                    ff_filter_get_nb_threads(ctx)));
ctx               234 libavfilter/vf_maskedminmax.c     AVFilterContext *ctx = outlink->src;
ctx               235 libavfilter/vf_maskedminmax.c     MaskedMinMaxContext *s = ctx->priv;
ctx               236 libavfilter/vf_maskedminmax.c     AVFilterLink *source = ctx->inputs[0];
ctx               237 libavfilter/vf_maskedminmax.c     AVFilterLink *f1 = ctx->inputs[1];
ctx               238 libavfilter/vf_maskedminmax.c     AVFilterLink *f2 = ctx->inputs[2];
ctx               244 libavfilter/vf_maskedminmax.c         av_log(ctx, AV_LOG_ERROR, "inputs must be of same pixel format\n");
ctx               249 libavfilter/vf_maskedminmax.c         av_log(ctx, AV_LOG_ERROR, "First input link %s parameters "
ctx               253 libavfilter/vf_maskedminmax.c                ctx->input_pads[0].name, source->w, source->h,
ctx               254 libavfilter/vf_maskedminmax.c                ctx->input_pads[1].name, f1->w, f1->h,
ctx               255 libavfilter/vf_maskedminmax.c                ctx->input_pads[2].name, f2->w, f2->h);
ctx               264 libavfilter/vf_maskedminmax.c     if ((ret = ff_framesync_init(&s->fs, ctx, 3)) < 0)
ctx               289 libavfilter/vf_maskedminmax.c static int activate(AVFilterContext *ctx)
ctx               291 libavfilter/vf_maskedminmax.c     MaskedMinMaxContext *s = ctx->priv;
ctx               295 libavfilter/vf_maskedminmax.c static av_cold void uninit(AVFilterContext *ctx)
ctx               297 libavfilter/vf_maskedminmax.c     MaskedMinMaxContext *s = ctx->priv;
ctx                58 libavfilter/vf_maskedthreshold.c static int query_formats(AVFilterContext *ctx)
ctx                82 libavfilter/vf_maskedthreshold.c     return ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               103 libavfilter/vf_maskedthreshold.c     AVFilterContext *ctx = inlink->dst;
ctx               104 libavfilter/vf_maskedthreshold.c     MaskedThresholdContext *s = ctx->priv;
ctx               130 libavfilter/vf_maskedthreshold.c static int threshold_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               132 libavfilter/vf_maskedthreshold.c     MaskedThresholdContext *s = ctx->priv;
ctx               168 libavfilter/vf_maskedthreshold.c     AVFilterContext *ctx = fs->parent;
ctx               170 libavfilter/vf_maskedthreshold.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               178 libavfilter/vf_maskedthreshold.c     if (ctx->is_disabled) {
ctx               194 libavfilter/vf_maskedthreshold.c         ctx->internal->execute(ctx, threshold_slice, &td, NULL, FFMIN(s->planeheight[2],
ctx               195 libavfilter/vf_maskedthreshold.c                                                                 ff_filter_get_nb_threads(ctx)));
ctx               204 libavfilter/vf_maskedthreshold.c     AVFilterContext *ctx = outlink->src;
ctx               205 libavfilter/vf_maskedthreshold.c     MaskedThresholdContext *s = ctx->priv;
ctx               206 libavfilter/vf_maskedthreshold.c     AVFilterLink *source = ctx->inputs[0];
ctx               207 libavfilter/vf_maskedthreshold.c     AVFilterLink *ref = ctx->inputs[1];
ctx               212 libavfilter/vf_maskedthreshold.c         av_log(ctx, AV_LOG_ERROR, "inputs must be of same pixel format\n");
ctx               216 libavfilter/vf_maskedthreshold.c         av_log(ctx, AV_LOG_ERROR, "First input link %s parameters "
ctx               219 libavfilter/vf_maskedthreshold.c                ctx->input_pads[0].name, source->w, source->h,
ctx               220 libavfilter/vf_maskedthreshold.c                ctx->input_pads[1].name, ref->w, ref->h);
ctx               229 libavfilter/vf_maskedthreshold.c     if ((ret = ff_framesync_init(&s->fs, ctx, 2)) < 0)
ctx               250 libavfilter/vf_maskedthreshold.c static int activate(AVFilterContext *ctx)
ctx               252 libavfilter/vf_maskedthreshold.c     MaskedThresholdContext *s = ctx->priv;
ctx               256 libavfilter/vf_maskedthreshold.c static av_cold void uninit(AVFilterContext *ctx)
ctx               258 libavfilter/vf_maskedthreshold.c     MaskedThresholdContext *s = ctx->priv;
ctx                45 libavfilter/vf_maskfun.c     int (*getsum)(AVFilterContext *ctx, AVFrame *out);
ctx                46 libavfilter/vf_maskfun.c     int (*maskfun)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx                63 libavfilter/vf_maskfun.c static int query_formats(AVFilterContext *ctx)
ctx                86 libavfilter/vf_maskfun.c     return ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx                91 libavfilter/vf_maskfun.c     AVFilterContext *ctx = inlink->dst;
ctx                92 libavfilter/vf_maskfun.c     MaskFunContext *s = ctx->priv;
ctx                93 libavfilter/vf_maskfun.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                95 libavfilter/vf_maskfun.c     if (s->getsum(ctx, frame)) {
ctx               108 libavfilter/vf_maskfun.c     ctx->internal->execute(ctx, s->maskfun, frame, NULL,
ctx               109 libavfilter/vf_maskfun.c                            FFMIN(s->height[1], ff_filter_get_nb_threads(ctx)));
ctx               115 libavfilter/vf_maskfun.c static int getsum##name(AVFilterContext *ctx, AVFrame *out)  \
ctx               117 libavfilter/vf_maskfun.c     MaskFunContext *s = ctx->priv;                           \
ctx               146 libavfilter/vf_maskfun.c static int maskfun##name(AVFilterContext *ctx, void *arg,    \
ctx               149 libavfilter/vf_maskfun.c     MaskFunContext *s = ctx->priv;                           \
ctx               187 libavfilter/vf_maskfun.c     AVFilterContext *ctx = inlink->dst;
ctx               188 libavfilter/vf_maskfun.c     MaskFunContext *s = ctx->priv;
ctx               251 libavfilter/vf_maskfun.c static av_cold void uninit(AVFilterContext *ctx)
ctx               253 libavfilter/vf_maskfun.c     MaskFunContext *s = ctx->priv;
ctx               103 libavfilter/vf_mcdeint.c     AVFilterContext *ctx = inlink->dst;
ctx               104 libavfilter/vf_mcdeint.c     MCDeintContext *mcdeint = ctx->priv;
ctx               111 libavfilter/vf_mcdeint.c         av_log(ctx, AV_LOG_ERROR, "Snow encoder is not enabled in libavcodec\n");
ctx               153 libavfilter/vf_mcdeint.c static av_cold void uninit(AVFilterContext *ctx)
ctx               155 libavfilter/vf_mcdeint.c     MCDeintContext *mcdeint = ctx->priv;
ctx               160 libavfilter/vf_mcdeint.c static int query_formats(AVFilterContext *ctx)
ctx               168 libavfilter/vf_mcdeint.c     return ff_set_common_formats(ctx, fmts_list);
ctx                87 libavfilter/vf_median.c static int query_formats(AVFilterContext *ctx)
ctx               111 libavfilter/vf_median.c     return ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               185 libavfilter/vf_median.c static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               187 libavfilter/vf_median.c     MedianContext *s = ctx->priv;
ctx               208 libavfilter/vf_median.c         s->filter_plane(ctx, in->data[plane],
ctx               220 libavfilter/vf_median.c     AVFilterContext *ctx = inlink->dst;
ctx               221 libavfilter/vf_median.c     MedianContext *s = ctx->priv;
ctx               222 libavfilter/vf_median.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               234 libavfilter/vf_median.c     ctx->internal->execute(ctx, filter_slice, &td, NULL, s->nb_threads);
ctx               240 libavfilter/vf_median.c static av_cold void uninit(AVFilterContext *ctx)
ctx               242 libavfilter/vf_median.c     MedianContext *s = ctx->priv;
ctx               253 libavfilter/vf_median.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               256 libavfilter/vf_median.c     MedianContext *s = ctx->priv;
ctx               259 libavfilter/vf_median.c     ret = ff_filter_process_command(ctx, cmd, args, res, res_len, flags);
ctx               265 libavfilter/vf_median.c     check_params(s, ctx->inputs[0]);
ctx                61 libavfilter/vf_mergeplanes.c static av_cold int init(AVFilterContext *ctx)
ctx                63 libavfilter/vf_mergeplanes.c     MergePlanesContext *s = ctx->priv;
ctx                70 libavfilter/vf_mergeplanes.c         av_log(ctx, AV_LOG_ERROR, "Only planar formats with more than one component are supported.\n");
ctx                82 libavfilter/vf_mergeplanes.c             av_log(ctx, AV_LOG_ERROR, "Mapping with out of range input and/or plane number.\n");
ctx                99 libavfilter/vf_mergeplanes.c         if ((ret = ff_insert_inpad(ctx, i, &pad)) < 0){
ctx               108 libavfilter/vf_mergeplanes.c static int query_formats(AVFilterContext *ctx)
ctx               110 libavfilter/vf_mergeplanes.c     MergePlanesContext *s = ctx->priv;
ctx               125 libavfilter/vf_mergeplanes.c         if ((ret = ff_formats_ref(formats, &ctx->inputs[i]->out_formats)) < 0)
ctx               130 libavfilter/vf_mergeplanes.c         (ret = ff_formats_ref(formats, &ctx->outputs[0]->in_formats)) < 0)
ctx               138 libavfilter/vf_mergeplanes.c     AVFilterContext *ctx = fs->parent;
ctx               139 libavfilter/vf_mergeplanes.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               169 libavfilter/vf_mergeplanes.c     AVFilterContext *ctx = outlink->src;
ctx               170 libavfilter/vf_mergeplanes.c     MergePlanesContext *s = ctx->priv;
ctx               175 libavfilter/vf_mergeplanes.c     if ((ret = ff_framesync_init(&s->fs, ctx, s->nb_inputs)) < 0)
ctx               182 libavfilter/vf_mergeplanes.c     outlink->w = ctx->inputs[0]->w;
ctx               183 libavfilter/vf_mergeplanes.c     outlink->h = ctx->inputs[0]->h;
ctx               184 libavfilter/vf_mergeplanes.c     outlink->time_base = ctx->inputs[0]->time_base;
ctx               185 libavfilter/vf_mergeplanes.c     outlink->frame_rate = ctx->inputs[0]->frame_rate;
ctx               186 libavfilter/vf_mergeplanes.c     outlink->sample_aspect_ratio = ctx->inputs[0]->sample_aspect_ratio;
ctx               199 libavfilter/vf_mergeplanes.c         AVFilterLink *inlink = ctx->inputs[i];
ctx               205 libavfilter/vf_mergeplanes.c             av_log(ctx, AV_LOG_ERROR, "input #%d link %s SAR %d:%d "
ctx               207 libavfilter/vf_mergeplanes.c                                       i, ctx->input_pads[i].name,
ctx               210 libavfilter/vf_mergeplanes.c                                       ctx->output_pads[0].name,
ctx               241 libavfilter/vf_mergeplanes.c             av_log(ctx, AV_LOG_ERROR, "input %d does not have %d plane\n",
ctx               246 libavfilter/vf_mergeplanes.c             av_log(ctx, AV_LOG_ERROR, "output plane %d depth %d does not "
ctx               253 libavfilter/vf_mergeplanes.c             av_log(ctx, AV_LOG_ERROR, "output plane %d width %d does not "
ctx               260 libavfilter/vf_mergeplanes.c             av_log(ctx, AV_LOG_ERROR, "output plane %d height %d does not "
ctx               273 libavfilter/vf_mergeplanes.c static int activate(AVFilterContext *ctx)
ctx               275 libavfilter/vf_mergeplanes.c     MergePlanesContext *s = ctx->priv;
ctx               279 libavfilter/vf_mergeplanes.c static av_cold void uninit(AVFilterContext *ctx)
ctx               281 libavfilter/vf_mergeplanes.c     MergePlanesContext *s = ctx->priv;
ctx               286 libavfilter/vf_mergeplanes.c     for (i = 0; i < ctx->nb_inputs; i++)
ctx               287 libavfilter/vf_mergeplanes.c         av_freep(&ctx->input_pads[i].name);
ctx                71 libavfilter/vf_mestimate.c static int query_formats(AVFilterContext *ctx)
ctx                88 libavfilter/vf_mestimate.c     return ff_set_common_formats(ctx, fmts_list);
ctx               148 libavfilter/vf_mestimate.c     AVFilterContext *ctx = inlink->dst;
ctx               149 libavfilter/vf_mestimate.c     MEContext *s = ctx->priv;
ctx               158 libavfilter/vf_mestimate.c         ret = ff_filter_frame(ctx->outputs[0], frame);
ctx               334 libavfilter/vf_mestimate.c     return ff_filter_frame(ctx->outputs[0], out);
ctx               337 libavfilter/vf_mestimate.c static av_cold void uninit(AVFilterContext *ctx)
ctx               339 libavfilter/vf_mestimate.c     MEContext *s = ctx->priv;
ctx                60 libavfilter/vf_midequalizer.c static int query_formats(AVFilterContext *ctx)
ctx                86 libavfilter/vf_midequalizer.c     return ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx                91 libavfilter/vf_midequalizer.c     AVFilterContext *ctx = fs->parent;
ctx                93 libavfilter/vf_midequalizer.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               101 libavfilter/vf_midequalizer.c     if (ctx->is_disabled) {
ctx               247 libavfilter/vf_midequalizer.c     AVFilterContext *ctx = inlink->dst;
ctx               248 libavfilter/vf_midequalizer.c     MidEqualizerContext *s = ctx->priv;
ctx               281 libavfilter/vf_midequalizer.c     AVFilterContext *ctx = inlink->dst;
ctx               282 libavfilter/vf_midequalizer.c     MidEqualizerContext *s = ctx->priv;
ctx               301 libavfilter/vf_midequalizer.c     AVFilterContext *ctx = outlink->src;
ctx               302 libavfilter/vf_midequalizer.c     MidEqualizerContext *s = ctx->priv;
ctx               303 libavfilter/vf_midequalizer.c     AVFilterLink *in0 = ctx->inputs[0];
ctx               304 libavfilter/vf_midequalizer.c     AVFilterLink *in1 = ctx->inputs[1];
ctx               309 libavfilter/vf_midequalizer.c         av_log(ctx, AV_LOG_ERROR, "inputs must be of same pixel format\n");
ctx               318 libavfilter/vf_midequalizer.c     if ((ret = ff_framesync_init(&s->fs, ctx, 2)) < 0)
ctx               339 libavfilter/vf_midequalizer.c static int activate(AVFilterContext *ctx)
ctx               341 libavfilter/vf_midequalizer.c     MidEqualizerContext *s = ctx->priv;
ctx               345 libavfilter/vf_midequalizer.c static av_cold void uninit(AVFilterContext *ctx)
ctx               347 libavfilter/vf_midequalizer.c     MidEqualizerContext *s = ctx->priv;
ctx               239 libavfilter/vf_minterpolate.c static int query_formats(AVFilterContext *ctx)
ctx               256 libavfilter/vf_minterpolate.c     return ff_set_common_formats(ctx, fmts_list);
ctx               744 libavfilter/vf_minterpolate.c     AVFilterContext *ctx = inlink->dst;
ctx               745 libavfilter/vf_minterpolate.c     MIContext *mi_ctx = ctx->priv;
ctx              1081 libavfilter/vf_minterpolate.c     AVFilterContext *ctx = inlink->dst;
ctx              1082 libavfilter/vf_minterpolate.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              1083 libavfilter/vf_minterpolate.c     MIContext *mi_ctx = ctx->priv;
ctx              1100 libavfilter/vf_minterpolate.c         av_log(ctx, AV_LOG_DEBUG, "scene changed, input pts %"PRId64"\n", mi_ctx->frames[1].avf->pts);
ctx              1164 libavfilter/vf_minterpolate.c     AVFilterContext *ctx = inlink->dst;
ctx              1165 libavfilter/vf_minterpolate.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              1166 libavfilter/vf_minterpolate.c     MIContext *mi_ctx = ctx->priv;
ctx              1170 libavfilter/vf_minterpolate.c         ret = ff_filter_frame(ctx->outputs[0], avf_in);
ctx              1175 libavfilter/vf_minterpolate.c         av_log(ctx, AV_LOG_VERBOSE, "Initializing out pts from input pts %"PRId64"\n", avf_in->pts);
ctx              1197 libavfilter/vf_minterpolate.c         if (!(avf_out = ff_get_video_buffer(ctx->outputs[0], inlink->w, inlink->h)))
ctx              1205 libavfilter/vf_minterpolate.c         if ((ret = ff_filter_frame(ctx->outputs[0], avf_out)) < 0)
ctx              1220 libavfilter/vf_minterpolate.c static av_cold void uninit(AVFilterContext *ctx)
ctx              1222 libavfilter/vf_minterpolate.c     MIContext *mi_ctx = ctx->priv;
ctx                65 libavfilter/vf_misc_vaapi.c     DenoiseVAAPIContext *ctx = avctx->priv;
ctx                84 libavfilter/vf_misc_vaapi.c     denoise.value =  map(ctx->denoise, DENOISE_MIN, DENOISE_MAX,
ctx                95 libavfilter/vf_misc_vaapi.c     SharpnessVAAPIContext *ctx = avctx->priv;
ctx               114 libavfilter/vf_misc_vaapi.c     sharpness.value = map(ctx->sharpness,
ctx                56 libavfilter/vf_mix.c static int query_formats(AVFilterContext *ctx)
ctx                70 libavfilter/vf_mix.c     return ff_set_common_formats(ctx, pix_fmts);
ctx                73 libavfilter/vf_mix.c static av_cold int init(AVFilterContext *ctx)
ctx                75 libavfilter/vf_mix.c     MixContext *s = ctx->priv;
ctx                79 libavfilter/vf_mix.c     s->tmix = !strcmp(ctx->filter->name, "tmix");
ctx                98 libavfilter/vf_mix.c             if ((ret = ff_insert_inpad(ctx, i, &pad)) < 0) {
ctx               112 libavfilter/vf_mix.c             av_log(ctx, AV_LOG_ERROR, "Invalid syntax for weights[%d].\n", i);
ctx               135 libavfilter/vf_mix.c static int mix_frames(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               137 libavfilter/vf_mix.c     MixContext *s = ctx->priv;
ctx               194 libavfilter/vf_mix.c     AVFilterContext *ctx = fs->parent;
ctx               195 libavfilter/vf_mix.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               214 libavfilter/vf_mix.c     ctx->internal->execute(ctx, mix_frames, &td, NULL, FFMIN(s->height[0], ff_filter_get_nb_threads(ctx)));
ctx               221 libavfilter/vf_mix.c     AVFilterContext *ctx = outlink->src;
ctx               222 libavfilter/vf_mix.c     MixContext *s = ctx->priv;
ctx               223 libavfilter/vf_mix.c     AVRational frame_rate = ctx->inputs[0]->frame_rate;
ctx               224 libavfilter/vf_mix.c     AVRational sar = ctx->inputs[0]->sample_aspect_ratio;
ctx               225 libavfilter/vf_mix.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               226 libavfilter/vf_mix.c     int height = ctx->inputs[0]->h;
ctx               227 libavfilter/vf_mix.c     int width = ctx->inputs[0]->w;
ctx               233 libavfilter/vf_mix.c             if (ctx->inputs[i]->h != height || ctx->inputs[i]->w != width) {
ctx               234 libavfilter/vf_mix.c                 av_log(ctx, AV_LOG_ERROR, "Input %d size (%dx%d) does not match input %d size (%dx%d).\n", i, ctx->inputs[i]->w, ctx->inputs[i]->h, 0, width, height);
ctx               261 libavfilter/vf_mix.c     if ((ret = ff_framesync_init(&s->fs, ctx, s->nb_inputs)) < 0)
ctx               269 libavfilter/vf_mix.c         AVFilterLink *inlink = ctx->inputs[i];
ctx               283 libavfilter/vf_mix.c static av_cold void uninit(AVFilterContext *ctx)
ctx               285 libavfilter/vf_mix.c     MixContext *s = ctx->priv;
ctx               292 libavfilter/vf_mix.c         for (i = 0; i < ctx->nb_inputs; i++)
ctx               293 libavfilter/vf_mix.c             av_freep(&ctx->input_pads[i].name);
ctx               301 libavfilter/vf_mix.c static int activate(AVFilterContext *ctx)
ctx               303 libavfilter/vf_mix.c     MixContext *s = ctx->priv;
ctx               351 libavfilter/vf_mix.c     AVFilterContext *ctx = inlink->dst;
ctx               352 libavfilter/vf_mix.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               353 libavfilter/vf_mix.c     MixContext *s = ctx->priv;
ctx               371 libavfilter/vf_mix.c     if (ctx->is_disabled) {
ctx               385 libavfilter/vf_mix.c     ctx->internal->execute(ctx, mix_frames, &td, NULL, FFMIN(s->height[0], ff_filter_get_nb_threads(ctx)));
ctx                71 libavfilter/vf_mpdecimate.c static int diff_planes(AVFilterContext *ctx,
ctx                76 libavfilter/vf_mpdecimate.c     DecimateContext *decimate = ctx->priv;
ctx                88 libavfilter/vf_mpdecimate.c                 av_log(ctx, AV_LOG_DEBUG, "%d>=hi ", d);
ctx                94 libavfilter/vf_mpdecimate.c                     av_log(ctx, AV_LOG_DEBUG, "lo:%d>=%d ", c, t);
ctx               101 libavfilter/vf_mpdecimate.c     av_log(ctx, AV_LOG_DEBUG, "lo:%d<%d ", c, t);
ctx               109 libavfilter/vf_mpdecimate.c static int decimate_frame(AVFilterContext *ctx,
ctx               112 libavfilter/vf_mpdecimate.c     DecimateContext *decimate = ctx->priv;
ctx               130 libavfilter/vf_mpdecimate.c         if (diff_planes(ctx,
ctx               144 libavfilter/vf_mpdecimate.c static av_cold int init(AVFilterContext *ctx)
ctx               146 libavfilter/vf_mpdecimate.c     DecimateContext *decimate = ctx->priv;
ctx               148 libavfilter/vf_mpdecimate.c     decimate->sad = av_pixelutils_get_sad_fn(3, 3, 0, ctx); // 8x8, not aligned on blocksize
ctx               152 libavfilter/vf_mpdecimate.c     av_log(ctx, AV_LOG_VERBOSE, "max_drop_count:%d hi:%d lo:%d frac:%f\n",
ctx               158 libavfilter/vf_mpdecimate.c static av_cold void uninit(AVFilterContext *ctx)
ctx               160 libavfilter/vf_mpdecimate.c     DecimateContext *decimate = ctx->priv;
ctx               164 libavfilter/vf_mpdecimate.c static int query_formats(AVFilterContext *ctx)
ctx               184 libavfilter/vf_mpdecimate.c     return ff_set_common_formats(ctx, fmts_list);
ctx               189 libavfilter/vf_mpdecimate.c     AVFilterContext *ctx = inlink->dst;
ctx               190 libavfilter/vf_mpdecimate.c     DecimateContext *decimate = ctx->priv;
ctx                52 libavfilter/vf_neighbor.c static int query_formats(AVFilterContext *ctx)
ctx                76 libavfilter/vf_neighbor.c     return ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               233 libavfilter/vf_neighbor.c     AVFilterContext *ctx = inlink->dst;
ctx               234 libavfilter/vf_neighbor.c     NContext *s = ctx->priv;
ctx               248 libavfilter/vf_neighbor.c     if (!strcmp(ctx->filter->name, "erosion"))
ctx               250 libavfilter/vf_neighbor.c     else if (!strcmp(ctx->filter->name, "dilation"))
ctx               252 libavfilter/vf_neighbor.c     else if (!strcmp(ctx->filter->name, "deflate"))
ctx               254 libavfilter/vf_neighbor.c     else if (!strcmp(ctx->filter->name, "inflate"))
ctx               260 libavfilter/vf_neighbor.c static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               262 libavfilter/vf_neighbor.c     NContext *s = ctx->priv;
ctx               316 libavfilter/vf_neighbor.c     AVFilterContext *ctx = inlink->dst;
ctx               317 libavfilter/vf_neighbor.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               318 libavfilter/vf_neighbor.c     NContext *s = ctx->priv;
ctx               331 libavfilter/vf_neighbor.c     ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(s->planeheight[1], ff_filter_get_nb_threads(ctx)));
ctx                52 libavfilter/vf_neighbor_opencl.c     NeighborOpenCLContext *ctx = avctx->priv;
ctx                61 libavfilter/vf_neighbor_opencl.c     ctx->command_queue = clCreateCommandQueue(ctx->ocf.hwctx->context,
ctx                62 libavfilter/vf_neighbor_opencl.c                                               ctx->ocf.hwctx->device_id,
ctx                72 libavfilter/vf_neighbor_opencl.c     ctx->kernel = clCreateKernel(ctx->ocf.program, kernel_name, &cle);
ctx                76 libavfilter/vf_neighbor_opencl.c     ctx->initialised = 1;
ctx                80 libavfilter/vf_neighbor_opencl.c     if (ctx->command_queue)
ctx                81 libavfilter/vf_neighbor_opencl.c         clReleaseCommandQueue(ctx->command_queue);
ctx                82 libavfilter/vf_neighbor_opencl.c     if (ctx->kernel)
ctx                83 libavfilter/vf_neighbor_opencl.c         clReleaseKernel(ctx->kernel);
ctx                89 libavfilter/vf_neighbor_opencl.c     NeighborOpenCLContext *ctx = avctx->priv;
ctx                96 libavfilter/vf_neighbor_opencl.c         ctx->threshold[i] /= 255.0;
ctx               101 libavfilter/vf_neighbor_opencl.c         if (ctx->coordinates & (1 << i)) {
ctx               105 libavfilter/vf_neighbor_opencl.c     buffer = clCreateBuffer(ctx->ocf.hwctx->context,
ctx               115 libavfilter/vf_neighbor_opencl.c     ctx->coord = buffer;
ctx               125 libavfilter/vf_neighbor_opencl.c     NeighborOpenCLContext *ctx = avctx->priv;
ctx               134 libavfilter/vf_neighbor_opencl.c     av_log(ctx, AV_LOG_DEBUG, "Filter input: %s, %ux%u (%"PRId64").\n",
ctx               141 libavfilter/vf_neighbor_opencl.c     if (!ctx->initialised) {
ctx               165 libavfilter/vf_neighbor_opencl.c         if (ctx->threshold[p] == 0) {
ctx               170 libavfilter/vf_neighbor_opencl.c             cle = clEnqueueCopyImage(ctx->command_queue, src, dst,
ctx               175 libavfilter/vf_neighbor_opencl.c             CL_SET_KERNEL_ARG(ctx->kernel, 0, cl_mem,   &dst);
ctx               176 libavfilter/vf_neighbor_opencl.c             CL_SET_KERNEL_ARG(ctx->kernel, 1, cl_mem,   &src);
ctx               177 libavfilter/vf_neighbor_opencl.c             CL_SET_KERNEL_ARG(ctx->kernel, 2, cl_float, &ctx->threshold[p]);
ctx               178 libavfilter/vf_neighbor_opencl.c             CL_SET_KERNEL_ARG(ctx->kernel, 3, cl_mem,   &ctx->coord);
ctx               188 libavfilter/vf_neighbor_opencl.c             cle = clEnqueueNDRangeKernel(ctx->command_queue, ctx->kernel, 2, NULL,
ctx               196 libavfilter/vf_neighbor_opencl.c     cle = clFinish(ctx->command_queue);
ctx               205 libavfilter/vf_neighbor_opencl.c     av_log(ctx, AV_LOG_DEBUG, "Filter output: %s, %ux%u (%"PRId64").\n",
ctx               212 libavfilter/vf_neighbor_opencl.c     clFinish(ctx->command_queue);
ctx               220 libavfilter/vf_neighbor_opencl.c     NeighborOpenCLContext *ctx = avctx->priv;
ctx               223 libavfilter/vf_neighbor_opencl.c     clReleaseMemObject(ctx->coord);
ctx               225 libavfilter/vf_neighbor_opencl.c     if (ctx->kernel) {
ctx               226 libavfilter/vf_neighbor_opencl.c         cle = clReleaseKernel(ctx->kernel);
ctx               232 libavfilter/vf_neighbor_opencl.c     if (ctx->command_queue) {
ctx               233 libavfilter/vf_neighbor_opencl.c         cle = clReleaseCommandQueue(ctx->command_queue);
ctx                80 libavfilter/vf_nlmeans.c static int query_formats(AVFilterContext *ctx)
ctx                96 libavfilter/vf_nlmeans.c     return ff_set_common_formats(ctx, fmts_list);
ctx               282 libavfilter/vf_nlmeans.c     AVFilterContext *ctx = inlink->dst;
ctx               283 libavfilter/vf_nlmeans.c     NLMeansContext *s = ctx->priv;
ctx               343 libavfilter/vf_nlmeans.c static int nlmeans_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               346 libavfilter/vf_nlmeans.c     NLMeansContext *s = ctx->priv;
ctx               430 libavfilter/vf_nlmeans.c static int nlmeans_plane(AVFilterContext *ctx, int w, int h, int p, int r,
ctx               435 libavfilter/vf_nlmeans.c     NLMeansContext *s = ctx->priv;
ctx               461 libavfilter/vf_nlmeans.c                 ctx->internal->execute(ctx, nlmeans_slice, &td, NULL,
ctx               462 libavfilter/vf_nlmeans.c                                        FFMIN(td.endy - td.starty, ff_filter_get_nb_threads(ctx)));
ctx               476 libavfilter/vf_nlmeans.c     AVFilterContext *ctx = inlink->dst;
ctx               477 libavfilter/vf_nlmeans.c     NLMeansContext *s = ctx->priv;
ctx               478 libavfilter/vf_nlmeans.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               492 libavfilter/vf_nlmeans.c         nlmeans_plane(ctx, w, h, p, r,
ctx               504 libavfilter/vf_nlmeans.c         av_log(ctx, AV_LOG_WARNING, name " size must be odd, "  \
ctx               517 libavfilter/vf_nlmeans.c static av_cold int init(AVFilterContext *ctx)
ctx               520 libavfilter/vf_nlmeans.c     NLMeansContext *s = ctx->priv;
ctx               545 libavfilter/vf_nlmeans.c     av_log(ctx, AV_LOG_INFO, "Research window: %dx%d / %dx%d, patch size: %dx%d / %dx%d\n",
ctx               554 libavfilter/vf_nlmeans.c static av_cold void uninit(AVFilterContext *ctx)
ctx               556 libavfilter/vf_nlmeans.c     NLMeansContext *s = ctx->priv;
ctx                76 libavfilter/vf_nlmeans_opencl.c     NLMeansOpenCLContext *ctx = avctx->priv;
ctx                81 libavfilter/vf_nlmeans_opencl.c     ctx->h = ctx->sigma * 10;
ctx                82 libavfilter/vf_nlmeans_opencl.c     if (!(ctx->research_size & 1)) {
ctx                83 libavfilter/vf_nlmeans_opencl.c         ctx->research_size |= 1;
ctx                86 libavfilter/vf_nlmeans_opencl.c                ctx->research_size);
ctx                89 libavfilter/vf_nlmeans_opencl.c     if (!(ctx->patch_size & 1)) {
ctx                90 libavfilter/vf_nlmeans_opencl.c         ctx->patch_size |= 1;
ctx                93 libavfilter/vf_nlmeans_opencl.c                ctx->patch_size);
ctx                96 libavfilter/vf_nlmeans_opencl.c     if (!ctx->research_size_uv)
ctx                97 libavfilter/vf_nlmeans_opencl.c         ctx->research_size_uv = ctx->research_size;
ctx                98 libavfilter/vf_nlmeans_opencl.c     if (!ctx->patch_size_uv)
ctx                99 libavfilter/vf_nlmeans_opencl.c         ctx->patch_size_uv = ctx->patch_size;
ctx               105 libavfilter/vf_nlmeans_opencl.c     ctx->command_queue = clCreateCommandQueue(ctx->ocf.hwctx->context,
ctx               106 libavfilter/vf_nlmeans_opencl.c                                               ctx->ocf.hwctx->device_id,
ctx               111 libavfilter/vf_nlmeans_opencl.c     ctx->vert_kernel = clCreateKernel(ctx->ocf.program,
ctx               116 libavfilter/vf_nlmeans_opencl.c     ctx->horiz_kernel = clCreateKernel(ctx->ocf.program,
ctx               121 libavfilter/vf_nlmeans_opencl.c     ctx->accum_kernel = clCreateKernel(ctx->ocf.program,
ctx               126 libavfilter/vf_nlmeans_opencl.c     ctx->average_kernel = clCreateKernel(ctx->ocf.program,
ctx               131 libavfilter/vf_nlmeans_opencl.c     ctx->integral_img = clCreateBuffer(ctx->ocf.hwctx->context, 0,
ctx               137 libavfilter/vf_nlmeans_opencl.c     ctx->weight = clCreateBuffer(ctx->ocf.hwctx->context, 0,
ctx               142 libavfilter/vf_nlmeans_opencl.c     ctx->sum = clCreateBuffer(ctx->ocf.hwctx->context, 0,
ctx               147 libavfilter/vf_nlmeans_opencl.c     ctx->overflow = clCreateBuffer(ctx->ocf.hwctx->context, 0,
ctx               152 libavfilter/vf_nlmeans_opencl.c     ctx->initialised = 1;
ctx               156 libavfilter/vf_nlmeans_opencl.c     CL_RELEASE_KERNEL(ctx->vert_kernel);
ctx               157 libavfilter/vf_nlmeans_opencl.c     CL_RELEASE_KERNEL(ctx->horiz_kernel);
ctx               158 libavfilter/vf_nlmeans_opencl.c     CL_RELEASE_KERNEL(ctx->accum_kernel);
ctx               159 libavfilter/vf_nlmeans_opencl.c     CL_RELEASE_KERNEL(ctx->average_kernel);
ctx               161 libavfilter/vf_nlmeans_opencl.c     CL_RELEASE_MEMORY(ctx->integral_img);
ctx               162 libavfilter/vf_nlmeans_opencl.c     CL_RELEASE_MEMORY(ctx->weight);
ctx               163 libavfilter/vf_nlmeans_opencl.c     CL_RELEASE_MEMORY(ctx->sum);
ctx               164 libavfilter/vf_nlmeans_opencl.c     CL_RELEASE_MEMORY(ctx->overflow);
ctx               166 libavfilter/vf_nlmeans_opencl.c     CL_RELEASE_QUEUE(ctx->command_queue);
ctx               173 libavfilter/vf_nlmeans_opencl.c     NLMeansOpenCLContext *ctx = avctx->priv;
ctx               184 libavfilter/vf_nlmeans_opencl.c     cle = clEnqueueFillBuffer(ctx->command_queue, ctx->weight,
ctx               189 libavfilter/vf_nlmeans_opencl.c     cle = clEnqueueFillBuffer(ctx->command_queue, ctx->sum,
ctx               229 libavfilter/vf_nlmeans_opencl.c         CL_SET_KERNEL_ARG(ctx->horiz_kernel, 0, cl_mem, &ctx->integral_img);
ctx               230 libavfilter/vf_nlmeans_opencl.c         CL_SET_KERNEL_ARG(ctx->horiz_kernel, 1, cl_mem, &src);
ctx               231 libavfilter/vf_nlmeans_opencl.c         CL_SET_KERNEL_ARG(ctx->horiz_kernel, 2, cl_int, &width);
ctx               232 libavfilter/vf_nlmeans_opencl.c         CL_SET_KERNEL_ARG(ctx->horiz_kernel, 3, cl_int, &height);
ctx               233 libavfilter/vf_nlmeans_opencl.c         CL_SET_KERNEL_ARG(ctx->horiz_kernel, 4, cl_int4, dx_cur);
ctx               234 libavfilter/vf_nlmeans_opencl.c         CL_SET_KERNEL_ARG(ctx->horiz_kernel, 5, cl_int4, dy_cur);
ctx               235 libavfilter/vf_nlmeans_opencl.c         cle = clEnqueueNDRangeKernel(ctx->command_queue, ctx->horiz_kernel, 1,
ctx               241 libavfilter/vf_nlmeans_opencl.c         CL_SET_KERNEL_ARG(ctx->vert_kernel, 0, cl_mem, &ctx->integral_img);
ctx               242 libavfilter/vf_nlmeans_opencl.c         CL_SET_KERNEL_ARG(ctx->vert_kernel, 1, cl_mem, &ctx->overflow);
ctx               243 libavfilter/vf_nlmeans_opencl.c         CL_SET_KERNEL_ARG(ctx->vert_kernel, 2, cl_int, &width);
ctx               244 libavfilter/vf_nlmeans_opencl.c         CL_SET_KERNEL_ARG(ctx->vert_kernel, 3, cl_int, &height);
ctx               245 libavfilter/vf_nlmeans_opencl.c         cle = clEnqueueNDRangeKernel(ctx->command_queue, ctx->vert_kernel,
ctx               251 libavfilter/vf_nlmeans_opencl.c         CL_SET_KERNEL_ARG(ctx->accum_kernel, 0, cl_mem, &ctx->sum);
ctx               252 libavfilter/vf_nlmeans_opencl.c         CL_SET_KERNEL_ARG(ctx->accum_kernel, 1, cl_mem, &ctx->weight);
ctx               253 libavfilter/vf_nlmeans_opencl.c         CL_SET_KERNEL_ARG(ctx->accum_kernel, 2, cl_mem, &ctx->integral_img);
ctx               254 libavfilter/vf_nlmeans_opencl.c         CL_SET_KERNEL_ARG(ctx->accum_kernel, 3, cl_mem, &src);
ctx               255 libavfilter/vf_nlmeans_opencl.c         CL_SET_KERNEL_ARG(ctx->accum_kernel, 4, cl_int, &width);
ctx               256 libavfilter/vf_nlmeans_opencl.c         CL_SET_KERNEL_ARG(ctx->accum_kernel, 5, cl_int, &height);
ctx               257 libavfilter/vf_nlmeans_opencl.c         CL_SET_KERNEL_ARG(ctx->accum_kernel, 6, cl_int, &p);
ctx               258 libavfilter/vf_nlmeans_opencl.c         CL_SET_KERNEL_ARG(ctx->accum_kernel, 7, cl_float, &ctx->h);
ctx               259 libavfilter/vf_nlmeans_opencl.c         CL_SET_KERNEL_ARG(ctx->accum_kernel, 8, cl_int4, dx_cur);
ctx               260 libavfilter/vf_nlmeans_opencl.c         CL_SET_KERNEL_ARG(ctx->accum_kernel, 9, cl_int4, dy_cur);
ctx               261 libavfilter/vf_nlmeans_opencl.c         cle = clEnqueueNDRangeKernel(ctx->command_queue, ctx->accum_kernel,
ctx               268 libavfilter/vf_nlmeans_opencl.c     CL_SET_KERNEL_ARG(ctx->average_kernel, 0, cl_mem, &dst);
ctx               269 libavfilter/vf_nlmeans_opencl.c     CL_SET_KERNEL_ARG(ctx->average_kernel, 1, cl_mem, &src);
ctx               270 libavfilter/vf_nlmeans_opencl.c     CL_SET_KERNEL_ARG(ctx->average_kernel, 2, cl_mem, &ctx->sum);
ctx               271 libavfilter/vf_nlmeans_opencl.c     CL_SET_KERNEL_ARG(ctx->average_kernel, 3, cl_mem, &ctx->weight);
ctx               272 libavfilter/vf_nlmeans_opencl.c     cle = clEnqueueNDRangeKernel(ctx->command_queue, ctx->average_kernel, 2,
ctx               276 libavfilter/vf_nlmeans_opencl.c     cle = clFlush(ctx->command_queue);
ctx               290 libavfilter/vf_nlmeans_opencl.c     NLMeansOpenCLContext *ctx = avctx->priv;
ctx               299 libavfilter/vf_nlmeans_opencl.c     av_log(ctx, AV_LOG_DEBUG, "Filter input: %s, %ux%u (%"PRId64").\n",
ctx               318 libavfilter/vf_nlmeans_opencl.c     if (!ctx->initialised) {
ctx               326 libavfilter/vf_nlmeans_opencl.c         ctx->chroma_w = AV_CEIL_RSHIFT(inlink->w, desc->log2_chroma_w);
ctx               327 libavfilter/vf_nlmeans_opencl.c         ctx->chroma_h = AV_CEIL_RSHIFT(inlink->h, desc->log2_chroma_h);
ctx               334 libavfilter/vf_nlmeans_opencl.c     cle = clEnqueueWriteBuffer(ctx->command_queue, ctx->overflow, CL_FALSE,
ctx               346 libavfilter/vf_nlmeans_opencl.c         w = p ? ctx->chroma_w : inlink->w;
ctx               347 libavfilter/vf_nlmeans_opencl.c         h = p ? ctx->chroma_h : inlink->h;
ctx               348 libavfilter/vf_nlmeans_opencl.c         patch = (p ? ctx->patch_size_uv : ctx->patch_size) / 2;
ctx               349 libavfilter/vf_nlmeans_opencl.c         research = (p ? ctx->research_size_uv : ctx->research_size) / 2;
ctx               355 libavfilter/vf_nlmeans_opencl.c     cle = clEnqueueReadBuffer(ctx->command_queue, ctx->overflow, CL_FALSE,
ctx               359 libavfilter/vf_nlmeans_opencl.c     cle = clFinish(ctx->command_queue);
ctx               367 libavfilter/vf_nlmeans_opencl.c     av_log(ctx, AV_LOG_DEBUG, "Filter output: %s, %ux%u (%"PRId64").\n",
ctx               374 libavfilter/vf_nlmeans_opencl.c     clFinish(ctx->command_queue);
ctx               382 libavfilter/vf_nlmeans_opencl.c     NLMeansOpenCLContext *ctx = avctx->priv;
ctx               385 libavfilter/vf_nlmeans_opencl.c     CL_RELEASE_KERNEL(ctx->vert_kernel);
ctx               386 libavfilter/vf_nlmeans_opencl.c     CL_RELEASE_KERNEL(ctx->horiz_kernel);
ctx               387 libavfilter/vf_nlmeans_opencl.c     CL_RELEASE_KERNEL(ctx->accum_kernel);
ctx               388 libavfilter/vf_nlmeans_opencl.c     CL_RELEASE_KERNEL(ctx->average_kernel);
ctx               390 libavfilter/vf_nlmeans_opencl.c     CL_RELEASE_MEMORY(ctx->integral_img);
ctx               391 libavfilter/vf_nlmeans_opencl.c     CL_RELEASE_MEMORY(ctx->weight);
ctx               392 libavfilter/vf_nlmeans_opencl.c     CL_RELEASE_MEMORY(ctx->sum);
ctx               393 libavfilter/vf_nlmeans_opencl.c     CL_RELEASE_MEMORY(ctx->overflow);
ctx               395 libavfilter/vf_nlmeans_opencl.c     CL_RELEASE_QUEUE(ctx->command_queue);
ctx               152 libavfilter/vf_nnedi.c     AVFilterContext *ctx = inlink->dst;
ctx               153 libavfilter/vf_nnedi.c     NNEDIContext *s = ctx->priv;
ctx               169 libavfilter/vf_nnedi.c     AVFilterContext *ctx = outlink->src;
ctx               170 libavfilter/vf_nnedi.c     NNEDIContext *s = ctx->priv;
ctx               172 libavfilter/vf_nnedi.c     outlink->time_base.num = ctx->inputs[0]->time_base.num;
ctx               173 libavfilter/vf_nnedi.c     outlink->time_base.den = ctx->inputs[0]->time_base.den * 2;
ctx               174 libavfilter/vf_nnedi.c     outlink->w             = ctx->inputs[0]->w;
ctx               175 libavfilter/vf_nnedi.c     outlink->h             = ctx->inputs[0]->h;
ctx               178 libavfilter/vf_nnedi.c         outlink->frame_rate = av_mul_q(ctx->inputs[0]->frame_rate,
ctx               184 libavfilter/vf_nnedi.c static int query_formats(AVFilterContext *ctx)
ctx               201 libavfilter/vf_nnedi.c     return ff_set_common_formats(ctx, fmts_list);
ctx               689 libavfilter/vf_nnedi.c static int get_frame(AVFilterContext *ctx, int is_second)
ctx               691 libavfilter/vf_nnedi.c     NNEDIContext *s = ctx->priv;
ctx               692 libavfilter/vf_nnedi.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               796 libavfilter/vf_nnedi.c     AVFilterContext *ctx = inlink->dst;
ctx               797 libavfilter/vf_nnedi.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               798 libavfilter/vf_nnedi.c     NNEDIContext *s = ctx->priv;
ctx               809 libavfilter/vf_nnedi.c         ret = get_frame(ctx, 1);
ctx               833 libavfilter/vf_nnedi.c              !ctx->is_disabled) ||
ctx               834 libavfilter/vf_nnedi.c             (!s->deint && !ctx->is_disabled)) {
ctx               839 libavfilter/vf_nnedi.c     if ((s->deint && !src->interlaced_frame) || ctx->is_disabled) {
ctx               861 libavfilter/vf_nnedi.c     ret = get_frame(ctx, 0);
ctx               881 libavfilter/vf_nnedi.c     AVFilterContext *ctx = link->src;
ctx               882 libavfilter/vf_nnedi.c     NNEDIContext *s = ctx->priv;
ctx               888 libavfilter/vf_nnedi.c     ret  = ff_request_frame(ctx->inputs[0]);
ctx               899 libavfilter/vf_nnedi.c         filter_frame(ctx->inputs[0], next);
ctx               907 libavfilter/vf_nnedi.c static av_cold int init(AVFilterContext *ctx)
ctx               909 libavfilter/vf_nnedi.c     NNEDIContext *s = ctx->priv;
ctx               927 libavfilter/vf_nnedi.c         av_log(ctx, AV_LOG_ERROR, "No weights file provided, aborting!\n");
ctx               932 libavfilter/vf_nnedi.c         av_log(ctx, AV_LOG_ERROR, "Couldn't seek to the end of weights file.\n");
ctx               941 libavfilter/vf_nnedi.c         av_log(ctx, AV_LOG_ERROR, "Couldn't get size of weights file.\n");
ctx               945 libavfilter/vf_nnedi.c         av_log(ctx, AV_LOG_ERROR, "Unexpected weights file size.\n");
ctx               951 libavfilter/vf_nnedi.c         av_log(ctx, AV_LOG_ERROR, "Couldn't seek to the start of weights file.\n");
ctx               966 libavfilter/vf_nnedi.c         av_log(ctx, AV_LOG_ERROR, "Couldn't read weights file.\n");
ctx              1159 libavfilter/vf_nnedi.c static av_cold void uninit(AVFilterContext *ctx)
ctx              1161 libavfilter/vf_nnedi.c     NNEDIContext *s = ctx->priv;
ctx               133 libavfilter/vf_noise.c static int query_formats(AVFilterContext *ctx)
ctx               145 libavfilter/vf_noise.c     return ff_set_common_formats(ctx, formats);
ctx               224 libavfilter/vf_noise.c static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               226 libavfilter/vf_noise.c     NoiseContext *s = ctx->priv;
ctx               244 libavfilter/vf_noise.c     AVFilterContext *ctx = inlink->dst;
ctx               245 libavfilter/vf_noise.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               246 libavfilter/vf_noise.c     NoiseContext *n = ctx->priv;
ctx               275 libavfilter/vf_noise.c     ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(n->height[0], ff_filter_get_nb_threads(ctx)));
ctx               283 libavfilter/vf_noise.c static av_cold int init(AVFilterContext *ctx)
ctx               285 libavfilter/vf_noise.c     NoiseContext *n = ctx->priv;
ctx               313 libavfilter/vf_noise.c static av_cold void uninit(AVFilterContext *ctx)
ctx               315 libavfilter/vf_noise.c     NoiseContext *n = ctx->priv;
ctx               391 libavfilter/vf_normalize.c static int query_formats(AVFilterContext *ctx)
ctx               417 libavfilter/vf_normalize.c     return ff_set_common_formats(ctx, formats);
ctx               469 libavfilter/vf_normalize.c static av_cold void uninit(AVFilterContext *ctx)
ctx               471 libavfilter/vf_normalize.c     NormalizeContext *s = ctx->priv;
ctx               481 libavfilter/vf_normalize.c     AVFilterContext *ctx = inlink->dst;
ctx               482 libavfilter/vf_normalize.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               483 libavfilter/vf_normalize.c     NormalizeContext *s = ctx->priv;
ctx               487 libavfilter/vf_normalize.c     int direct = av_frame_is_writable(in) && !ctx->is_disabled;
ctx               504 libavfilter/vf_normalize.c     if (ctx->is_disabled) {
ctx                51 libavfilter/vf_ocr.c static av_cold int init(AVFilterContext *ctx)
ctx                53 libavfilter/vf_ocr.c     OCRContext *s = ctx->priv;
ctx                57 libavfilter/vf_ocr.c         av_log(ctx, AV_LOG_ERROR, "failed to init tesseract\n");
ctx                62 libavfilter/vf_ocr.c         av_log(ctx, AV_LOG_ERROR, "failed to set whitelist\n");
ctx                67 libavfilter/vf_ocr.c         av_log(ctx, AV_LOG_ERROR, "failed to set blacklist\n");
ctx                71 libavfilter/vf_ocr.c     av_log(ctx, AV_LOG_DEBUG, "Tesseract version: %s\n", TessVersion());
ctx                76 libavfilter/vf_ocr.c static int query_formats(AVFilterContext *ctx)
ctx                93 libavfilter/vf_ocr.c     return ff_set_common_formats(ctx, fmts_list);
ctx                99 libavfilter/vf_ocr.c     AVFilterContext *ctx = inlink->dst;
ctx               100 libavfilter/vf_ocr.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               101 libavfilter/vf_ocr.c     OCRContext *s = ctx->priv;
ctx               122 libavfilter/vf_ocr.c static av_cold void uninit(AVFilterContext *ctx)
ctx               124 libavfilter/vf_ocr.c     OCRContext *s = ctx->priv;
ctx                81 libavfilter/vf_overlay.c static av_cold void uninit(AVFilterContext *ctx)
ctx                83 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx                97 libavfilter/vf_overlay.c static void eval_expr(AVFilterContext *ctx)
ctx                99 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               130 libavfilter/vf_overlay.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               133 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               137 libavfilter/vf_overlay.c         ret = set_expr(&s->x_pexpr, args, cmd, ctx);
ctx               139 libavfilter/vf_overlay.c         ret = set_expr(&s->y_pexpr, args, cmd, ctx);
ctx               147 libavfilter/vf_overlay.c         eval_expr(ctx);
ctx               148 libavfilter/vf_overlay.c         av_log(ctx, AV_LOG_VERBOSE, "x:%f xi:%d y:%f yi:%d\n",
ctx               161 libavfilter/vf_overlay.c static int query_formats(AVFilterContext *ctx)
ctx               163 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               259 libavfilter/vf_overlay.c         ret = ff_set_common_formats(ctx, main_formats);
ctx               263 libavfilter/vf_overlay.c         if ((ret = ff_formats_ref(main_formats   , &ctx->inputs[MAIN]->out_formats   )) < 0 ||
ctx               264 libavfilter/vf_overlay.c             (ret = ff_formats_ref(overlay_formats, &ctx->inputs[OVERLAY]->out_formats)) < 0 ||
ctx               265 libavfilter/vf_overlay.c             (ret = ff_formats_ref(main_formats   , &ctx->outputs[MAIN]->in_formats   )) < 0)
ctx               282 libavfilter/vf_overlay.c     AVFilterContext *ctx  = inlink->dst;
ctx               291 libavfilter/vf_overlay.c     s->var_values[VAR_MAIN_W   ] = s->var_values[VAR_MW] = ctx->inputs[MAIN   ]->w;
ctx               292 libavfilter/vf_overlay.c     s->var_values[VAR_MAIN_H   ] = s->var_values[VAR_MH] = ctx->inputs[MAIN   ]->h;
ctx               293 libavfilter/vf_overlay.c     s->var_values[VAR_OVERLAY_W] = s->var_values[VAR_OW] = ctx->inputs[OVERLAY]->w;
ctx               294 libavfilter/vf_overlay.c     s->var_values[VAR_OVERLAY_H] = s->var_values[VAR_OH] = ctx->inputs[OVERLAY]->h;
ctx               303 libavfilter/vf_overlay.c     if ((ret = set_expr(&s->x_pexpr,      s->x_expr,      "x",      ctx)) < 0 ||
ctx               304 libavfilter/vf_overlay.c         (ret = set_expr(&s->y_pexpr,      s->y_expr,      "y",      ctx)) < 0)
ctx               312 libavfilter/vf_overlay.c         eval_expr(ctx);
ctx               313 libavfilter/vf_overlay.c         av_log(ctx, AV_LOG_VERBOSE, "x:%f xi:%d y:%f yi:%d\n",
ctx               318 libavfilter/vf_overlay.c     av_log(ctx, AV_LOG_VERBOSE,
ctx               320 libavfilter/vf_overlay.c            ctx->inputs[MAIN]->w, ctx->inputs[MAIN]->h,
ctx               321 libavfilter/vf_overlay.c            av_get_pix_fmt_name(ctx->inputs[MAIN]->format),
ctx               322 libavfilter/vf_overlay.c            ctx->inputs[OVERLAY]->w, ctx->inputs[OVERLAY]->h,
ctx               323 libavfilter/vf_overlay.c            av_get_pix_fmt_name(ctx->inputs[OVERLAY]->format));
ctx               329 libavfilter/vf_overlay.c     AVFilterContext *ctx = outlink->src;
ctx               330 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               333 libavfilter/vf_overlay.c     if ((ret = ff_framesync_init_dualinput(&s->fs, ctx)) < 0)
ctx               336 libavfilter/vf_overlay.c     outlink->w = ctx->inputs[MAIN]->w;
ctx               337 libavfilter/vf_overlay.c     outlink->h = ctx->inputs[MAIN]->h;
ctx               338 libavfilter/vf_overlay.c     outlink->time_base = ctx->inputs[MAIN]->time_base;
ctx               357 libavfilter/vf_overlay.c static av_always_inline void blend_slice_packed_rgb(AVFilterContext *ctx,
ctx               362 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               444 libavfilter/vf_overlay.c static av_always_inline void blend_plane(AVFilterContext *ctx,
ctx               459 libavfilter/vf_overlay.c     OverlayContext *octx = ctx->priv;
ctx               601 libavfilter/vf_overlay.c static av_always_inline void blend_slice_yuv(AVFilterContext *ctx,
ctx               609 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               615 libavfilter/vf_overlay.c     blend_plane(ctx, dst, src, src_w, src_h, dst_w, dst_h, 0, 0,       0, x, y, main_has_alpha,
ctx               618 libavfilter/vf_overlay.c     blend_plane(ctx, dst, src, src_w, src_h, dst_w, dst_h, 1, hsub, vsub, x, y, main_has_alpha,
ctx               621 libavfilter/vf_overlay.c     blend_plane(ctx, dst, src, src_w, src_h, dst_w, dst_h, 2, hsub, vsub, x, y, main_has_alpha,
ctx               629 libavfilter/vf_overlay.c static av_always_inline void blend_slice_planar_rgb(AVFilterContext *ctx,
ctx               638 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               644 libavfilter/vf_overlay.c     blend_plane(ctx, dst, src, src_w, src_h, dst_w, dst_h, 0, 0,       0, x, y, main_has_alpha,
ctx               647 libavfilter/vf_overlay.c     blend_plane(ctx, dst, src, src_w, src_h, dst_w, dst_h, 1, hsub, vsub, x, y, main_has_alpha,
ctx               650 libavfilter/vf_overlay.c     blend_plane(ctx, dst, src, src_w, src_h, dst_w, dst_h, 2, hsub, vsub, x, y, main_has_alpha,
ctx               658 libavfilter/vf_overlay.c static int blend_slice_yuv420(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               660 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               662 libavfilter/vf_overlay.c     blend_slice_yuv(ctx, td->dst, td->src, 1, 1, 0, s->x, s->y, 1, jobnr, nb_jobs);
ctx               666 libavfilter/vf_overlay.c static int blend_slice_yuva420(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               668 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               670 libavfilter/vf_overlay.c     blend_slice_yuv(ctx, td->dst, td->src, 1, 1, 1, s->x, s->y, 1, jobnr, nb_jobs);
ctx               674 libavfilter/vf_overlay.c static int blend_slice_yuv422(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               676 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               678 libavfilter/vf_overlay.c     blend_slice_yuv(ctx, td->dst, td->src, 1, 0, 0, s->x, s->y, 1, jobnr, nb_jobs);
ctx               682 libavfilter/vf_overlay.c static int blend_slice_yuva422(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               684 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               686 libavfilter/vf_overlay.c     blend_slice_yuv(ctx, td->dst, td->src, 1, 0, 1, s->x, s->y, 1, jobnr, nb_jobs);
ctx               690 libavfilter/vf_overlay.c static int blend_slice_yuv444(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               692 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               694 libavfilter/vf_overlay.c     blend_slice_yuv(ctx, td->dst, td->src, 0, 0, 0, s->x, s->y, 1, jobnr, nb_jobs);
ctx               698 libavfilter/vf_overlay.c static int blend_slice_yuva444(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               700 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               702 libavfilter/vf_overlay.c     blend_slice_yuv(ctx, td->dst, td->src, 0, 0, 1, s->x, s->y, 1, jobnr, nb_jobs);
ctx               706 libavfilter/vf_overlay.c static int blend_slice_gbrp(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               708 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               710 libavfilter/vf_overlay.c     blend_slice_planar_rgb(ctx, td->dst, td->src, 0, 0, 0, s->x, s->y, 1, jobnr, nb_jobs);
ctx               714 libavfilter/vf_overlay.c static int blend_slice_gbrap(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               716 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               718 libavfilter/vf_overlay.c     blend_slice_planar_rgb(ctx, td->dst, td->src, 0, 0, 1, s->x, s->y, 1, jobnr, nb_jobs);
ctx               722 libavfilter/vf_overlay.c static int blend_slice_yuv420_pm(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               724 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               726 libavfilter/vf_overlay.c     blend_slice_yuv(ctx, td->dst, td->src, 1, 1, 0, s->x, s->y, 0, jobnr, nb_jobs);
ctx               730 libavfilter/vf_overlay.c static int blend_slice_yuva420_pm(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               732 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               734 libavfilter/vf_overlay.c     blend_slice_yuv(ctx, td->dst, td->src, 1, 1, 1, s->x, s->y, 0, jobnr, nb_jobs);
ctx               738 libavfilter/vf_overlay.c static int blend_slice_yuv422_pm(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               740 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               742 libavfilter/vf_overlay.c     blend_slice_yuv(ctx, td->dst, td->src, 1, 0, 0, s->x, s->y, 0, jobnr, nb_jobs);
ctx               746 libavfilter/vf_overlay.c static int blend_slice_yuva422_pm(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               748 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               750 libavfilter/vf_overlay.c     blend_slice_yuv(ctx, td->dst, td->src, 1, 0, 1, s->x, s->y, 0, jobnr, nb_jobs);
ctx               754 libavfilter/vf_overlay.c static int blend_slice_yuv444_pm(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               756 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               758 libavfilter/vf_overlay.c     blend_slice_yuv(ctx, td->dst, td->src, 0, 0, 0, s->x, s->y, 0, jobnr, nb_jobs);
ctx               762 libavfilter/vf_overlay.c static int blend_slice_yuva444_pm(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               764 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               766 libavfilter/vf_overlay.c     blend_slice_yuv(ctx, td->dst, td->src, 0, 0, 1, s->x, s->y, 0, jobnr, nb_jobs);
ctx               770 libavfilter/vf_overlay.c static int blend_slice_gbrp_pm(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               772 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               774 libavfilter/vf_overlay.c     blend_slice_planar_rgb(ctx, td->dst, td->src, 0, 0, 0, s->x, s->y, 0, jobnr, nb_jobs);
ctx               778 libavfilter/vf_overlay.c static int blend_slice_gbrap_pm(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               780 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               782 libavfilter/vf_overlay.c     blend_slice_planar_rgb(ctx, td->dst, td->src, 0, 0, 1, s->x, s->y, 0, jobnr, nb_jobs);
ctx               786 libavfilter/vf_overlay.c static int blend_slice_rgb(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               788 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               790 libavfilter/vf_overlay.c     blend_slice_packed_rgb(ctx, td->dst, td->src, 0, s->x, s->y, 1, jobnr, nb_jobs);
ctx               794 libavfilter/vf_overlay.c static int blend_slice_rgba(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               796 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               798 libavfilter/vf_overlay.c     blend_slice_packed_rgb(ctx, td->dst, td->src, 1, s->x, s->y, 1, jobnr, nb_jobs);
ctx               802 libavfilter/vf_overlay.c static int blend_slice_rgb_pm(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               804 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               806 libavfilter/vf_overlay.c     blend_slice_packed_rgb(ctx, td->dst, td->src, 0, s->x, s->y, 0, jobnr, nb_jobs);
ctx               810 libavfilter/vf_overlay.c static int blend_slice_rgba_pm(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               812 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               814 libavfilter/vf_overlay.c     blend_slice_packed_rgb(ctx, td->dst, td->src, 1, s->x, s->y, 0, jobnr, nb_jobs);
ctx               932 libavfilter/vf_overlay.c     AVFilterContext *ctx = fs->parent;
ctx               934 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               935 libavfilter/vf_overlay.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               942 libavfilter/vf_overlay.c         return ff_filter_frame(ctx->outputs[0], mainpic);
ctx               957 libavfilter/vf_overlay.c         eval_expr(ctx);
ctx               958 libavfilter/vf_overlay.c         av_log(ctx, AV_LOG_DEBUG, "n:%f t:%f pos:%f x:%f xi:%d y:%f yi:%d\n",
ctx               970 libavfilter/vf_overlay.c         ctx->internal->execute(ctx, s->blend_slice, &td, NULL, FFMIN(FFMAX(1, FFMIN3(s->y + second->height, FFMIN(second->height, mainpic->height), mainpic->height - s->y)),
ctx               971 libavfilter/vf_overlay.c                                                                      ff_filter_get_nb_threads(ctx)));
ctx               973 libavfilter/vf_overlay.c     return ff_filter_frame(ctx->outputs[0], mainpic);
ctx               976 libavfilter/vf_overlay.c static av_cold int init(AVFilterContext *ctx)
ctx               978 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               984 libavfilter/vf_overlay.c static int activate(AVFilterContext *ctx)
ctx               986 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx                80 libavfilter/vf_overlay.h     int (*blend_slice)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx                38 libavfilter/vf_overlay_cuda.c #define CHECK_CU(x) FF_CUDA_CHECK_DL(ctx, ctx->hwctx->internal->cuda_dl, x)
ctx               110 libavfilter/vf_overlay_cuda.c     OverlayCUDAContext *ctx,
ctx               119 libavfilter/vf_overlay_cuda.c     CudaFunctions *cu = ctx->hwctx->internal->cuda_dl;
ctx               131 libavfilter/vf_overlay_cuda.c         ctx->cu_func,
ctx               134 libavfilter/vf_overlay_cuda.c         0, ctx->cu_stream, kernel_args, NULL));
ctx               145 libavfilter/vf_overlay_cuda.c     OverlayCUDAContext *ctx = avctx->priv;
ctx               148 libavfilter/vf_overlay_cuda.c     CudaFunctions *cu = ctx->hwctx->internal->cuda_dl;
ctx               149 libavfilter/vf_overlay_cuda.c     CUcontext dummy, cuda_ctx = ctx->hwctx->cuda_ctx;
ctx               153 libavfilter/vf_overlay_cuda.c     ctx->cu_ctx = cuda_ctx;
ctx               179 libavfilter/vf_overlay_cuda.c     overlay_cuda_call_kernel(ctx,
ctx               180 libavfilter/vf_overlay_cuda.c         ctx->x_position, ctx->y_position,
ctx               189 libavfilter/vf_overlay_cuda.c     switch(ctx->in_format_overlay) {
ctx               191 libavfilter/vf_overlay_cuda.c         overlay_cuda_call_kernel(ctx,
ctx               192 libavfilter/vf_overlay_cuda.c             ctx->x_position, ctx->y_position / 2,
ctx               201 libavfilter/vf_overlay_cuda.c         overlay_cuda_call_kernel(ctx,
ctx               202 libavfilter/vf_overlay_cuda.c             ctx->x_position / 2 , ctx->y_position / 2,
ctx               209 libavfilter/vf_overlay_cuda.c         overlay_cuda_call_kernel(ctx,
ctx               210 libavfilter/vf_overlay_cuda.c             ctx->x_position / 2 , ctx->y_position / 2,
ctx               218 libavfilter/vf_overlay_cuda.c         av_log(ctx, AV_LOG_ERROR, "Passed unsupported overlay pixel format\n");
ctx               234 libavfilter/vf_overlay_cuda.c     OverlayCUDAContext* ctx = avctx->priv;
ctx               235 libavfilter/vf_overlay_cuda.c     ctx->fs.on_event = &overlay_cuda_blend;
ctx               245 libavfilter/vf_overlay_cuda.c     OverlayCUDAContext* ctx = avctx->priv;
ctx               247 libavfilter/vf_overlay_cuda.c     ff_framesync_uninit(&ctx->fs);
ctx               249 libavfilter/vf_overlay_cuda.c     if (ctx->hwctx && ctx->cu_module) {
ctx               251 libavfilter/vf_overlay_cuda.c         CudaFunctions *cu = ctx->hwctx->internal->cuda_dl;
ctx               252 libavfilter/vf_overlay_cuda.c         CHECK_CU(cu->cuCtxPushCurrent(ctx->cu_ctx));
ctx               253 libavfilter/vf_overlay_cuda.c         CHECK_CU(cu->cuModuleUnload(ctx->cu_module));
ctx               263 libavfilter/vf_overlay_cuda.c     OverlayCUDAContext *ctx = avctx->priv;
ctx               265 libavfilter/vf_overlay_cuda.c     return ff_framesync_activate(&ctx->fs);
ctx               292 libavfilter/vf_overlay_cuda.c     OverlayCUDAContext* ctx = avctx->priv;
ctx               306 libavfilter/vf_overlay_cuda.c         av_log(ctx, AV_LOG_ERROR, "No hw context provided on main input\n");
ctx               310 libavfilter/vf_overlay_cuda.c     ctx->in_format_main = frames_ctx->sw_format;
ctx               311 libavfilter/vf_overlay_cuda.c     if (!format_is_supported(supported_main_formats, ctx->in_format_main)) {
ctx               312 libavfilter/vf_overlay_cuda.c         av_log(ctx, AV_LOG_ERROR, "Unsupported main input format: %s\n",
ctx               313 libavfilter/vf_overlay_cuda.c                av_get_pix_fmt_name(ctx->in_format_main));
ctx               320 libavfilter/vf_overlay_cuda.c         av_log(ctx, AV_LOG_ERROR, "No hw context provided on overlay input\n");
ctx               324 libavfilter/vf_overlay_cuda.c     ctx->in_format_overlay = frames_ctx_overlay->sw_format;
ctx               325 libavfilter/vf_overlay_cuda.c     if (!format_is_supported(supported_overlay_formats, ctx->in_format_overlay)) {
ctx               326 libavfilter/vf_overlay_cuda.c         av_log(ctx, AV_LOG_ERROR, "Unsupported overlay input format: %s\n",
ctx               327 libavfilter/vf_overlay_cuda.c             av_get_pix_fmt_name(ctx->in_format_overlay));
ctx               333 libavfilter/vf_overlay_cuda.c     if (!formats_match(ctx->in_format_main, ctx->in_format_overlay)) {
ctx               334 libavfilter/vf_overlay_cuda.c         av_log(ctx, AV_LOG_ERROR, "Can't overlay %s on %s \n",
ctx               335 libavfilter/vf_overlay_cuda.c             av_get_pix_fmt_name(ctx->in_format_overlay), av_get_pix_fmt_name(ctx->in_format_main));
ctx               341 libavfilter/vf_overlay_cuda.c     ctx->hwctx = frames_ctx->device_ctx->hwctx;
ctx               342 libavfilter/vf_overlay_cuda.c     cuda_ctx = ctx->hwctx->cuda_ctx;
ctx               343 libavfilter/vf_overlay_cuda.c     ctx->fs.time_base = inlink->time_base;
ctx               345 libavfilter/vf_overlay_cuda.c     ctx->cu_stream = ctx->hwctx->stream;
ctx               351 libavfilter/vf_overlay_cuda.c     cu = ctx->hwctx->internal->cuda_dl;
ctx               358 libavfilter/vf_overlay_cuda.c     err = CHECK_CU(cu->cuModuleLoadData(&ctx->cu_module, vf_overlay_cuda_ptx));
ctx               364 libavfilter/vf_overlay_cuda.c     err = CHECK_CU(cu->cuModuleGetFunction(&ctx->cu_func, ctx->cu_module, "Overlay_Cuda"));
ctx               374 libavfilter/vf_overlay_cuda.c     err = ff_framesync_init_dualinput(&ctx->fs, avctx);
ctx               379 libavfilter/vf_overlay_cuda.c     return ff_framesync_configure(&ctx->fs);
ctx                53 libavfilter/vf_overlay_opencl.c     OverlayOpenCLContext *ctx = avctx->priv;
ctx                71 libavfilter/vf_overlay_opencl.c     ctx->nb_planes = main_planes;
ctx                72 libavfilter/vf_overlay_opencl.c     ctx->x_subsample = 1 << main_desc->log2_chroma_w;
ctx                73 libavfilter/vf_overlay_opencl.c     ctx->y_subsample = 1 << main_desc->log2_chroma_h;
ctx                75 libavfilter/vf_overlay_opencl.c     if (ctx->x_position % ctx->x_subsample ||
ctx                76 libavfilter/vf_overlay_opencl.c         ctx->y_position % ctx->y_subsample) {
ctx                79 libavfilter/vf_overlay_opencl.c                ctx->x_position, ctx->y_position,
ctx                80 libavfilter/vf_overlay_opencl.c                ctx->x_subsample, ctx->y_subsample);
ctx                88 libavfilter/vf_overlay_opencl.c         ctx->alpha_separate = 0;
ctx                91 libavfilter/vf_overlay_opencl.c         ctx->alpha_separate = 1;
ctx               100 libavfilter/vf_overlay_opencl.c     ctx->command_queue = clCreateCommandQueue(ctx->ocf.hwctx->context,
ctx               101 libavfilter/vf_overlay_opencl.c                                               ctx->ocf.hwctx->device_id,
ctx               106 libavfilter/vf_overlay_opencl.c     ctx->kernel = clCreateKernel(ctx->ocf.program, kernel, &cle);
ctx               109 libavfilter/vf_overlay_opencl.c     ctx->initialised = 1;
ctx               113 libavfilter/vf_overlay_opencl.c     if (ctx->command_queue)
ctx               114 libavfilter/vf_overlay_opencl.c         clReleaseCommandQueue(ctx->command_queue);
ctx               115 libavfilter/vf_overlay_opencl.c     if (ctx->kernel)
ctx               116 libavfilter/vf_overlay_opencl.c         clReleaseKernel(ctx->kernel);
ctx               124 libavfilter/vf_overlay_opencl.c     OverlayOpenCLContext *ctx = avctx->priv;
ctx               140 libavfilter/vf_overlay_opencl.c     if (!ctx->initialised) {
ctx               158 libavfilter/vf_overlay_opencl.c     for (plane = 0; plane < ctx->nb_planes; plane++) {
ctx               162 libavfilter/vf_overlay_opencl.c         CL_SET_KERNEL_ARG(ctx->kernel, kernel_arg, cl_mem, &mem);
ctx               166 libavfilter/vf_overlay_opencl.c         CL_SET_KERNEL_ARG(ctx->kernel, kernel_arg, cl_mem, &mem);
ctx               170 libavfilter/vf_overlay_opencl.c         CL_SET_KERNEL_ARG(ctx->kernel, kernel_arg, cl_mem, &mem);
ctx               173 libavfilter/vf_overlay_opencl.c         if (ctx->alpha_separate) {
ctx               174 libavfilter/vf_overlay_opencl.c             mem = (cl_mem)input_overlay->data[ctx->nb_planes];
ctx               175 libavfilter/vf_overlay_opencl.c             CL_SET_KERNEL_ARG(ctx->kernel, kernel_arg, cl_mem, &mem);
ctx               179 libavfilter/vf_overlay_opencl.c         x = ctx->x_position / (plane == 0 ? 1 : ctx->x_subsample);
ctx               180 libavfilter/vf_overlay_opencl.c         y = ctx->y_position / (plane == 0 ? 1 : ctx->y_subsample);
ctx               182 libavfilter/vf_overlay_opencl.c         CL_SET_KERNEL_ARG(ctx->kernel, kernel_arg, cl_int, &x);
ctx               184 libavfilter/vf_overlay_opencl.c         CL_SET_KERNEL_ARG(ctx->kernel, kernel_arg, cl_int, &y);
ctx               187 libavfilter/vf_overlay_opencl.c         if (ctx->alpha_separate) {
ctx               188 libavfilter/vf_overlay_opencl.c             cl_int alpha_adj_x = plane == 0 ? 1 : ctx->x_subsample;
ctx               189 libavfilter/vf_overlay_opencl.c             cl_int alpha_adj_y = plane == 0 ? 1 : ctx->y_subsample;
ctx               191 libavfilter/vf_overlay_opencl.c             CL_SET_KERNEL_ARG(ctx->kernel, kernel_arg, cl_int, &alpha_adj_x);
ctx               193 libavfilter/vf_overlay_opencl.c             CL_SET_KERNEL_ARG(ctx->kernel, kernel_arg, cl_int, &alpha_adj_y);
ctx               202 libavfilter/vf_overlay_opencl.c         cle = clEnqueueNDRangeKernel(ctx->command_queue, ctx->kernel, 2, NULL,
ctx               208 libavfilter/vf_overlay_opencl.c     cle = clFinish(ctx->command_queue);
ctx               227 libavfilter/vf_overlay_opencl.c     OverlayOpenCLContext *ctx = avctx->priv;
ctx               234 libavfilter/vf_overlay_opencl.c     err = ff_framesync_init_dualinput(&ctx->fs, avctx);
ctx               238 libavfilter/vf_overlay_opencl.c     return ff_framesync_configure(&ctx->fs);
ctx               243 libavfilter/vf_overlay_opencl.c     OverlayOpenCLContext *ctx = avctx->priv;
ctx               245 libavfilter/vf_overlay_opencl.c     ctx->fs.on_event = &overlay_opencl_blend;
ctx               252 libavfilter/vf_overlay_opencl.c     OverlayOpenCLContext *ctx = avctx->priv;
ctx               254 libavfilter/vf_overlay_opencl.c     return ff_framesync_activate(&ctx->fs);
ctx               259 libavfilter/vf_overlay_opencl.c     OverlayOpenCLContext *ctx = avctx->priv;
ctx               262 libavfilter/vf_overlay_opencl.c     if (ctx->kernel) {
ctx               263 libavfilter/vf_overlay_opencl.c         cle = clReleaseKernel(ctx->kernel);
ctx               269 libavfilter/vf_overlay_opencl.c     if (ctx->command_queue) {
ctx               270 libavfilter/vf_overlay_opencl.c         cle = clReleaseCommandQueue(ctx->command_queue);
ctx               278 libavfilter/vf_overlay_opencl.c     ff_framesync_uninit(&ctx->fs);
ctx               105 libavfilter/vf_overlay_qsv.c static int eval_expr(AVFilterContext *ctx)
ctx               107 libavfilter/vf_overlay_qsv.c     QSVOverlayContext *vpp = ctx->priv;
ctx               114 libavfilter/vf_overlay_qsv.c     ret = av_expr_parse(&e, s, var_names, NULL, NULL, NULL, NULL, 0, ctx); \
ctx               116 libavfilter/vf_overlay_qsv.c         av_log(ctx, AV_LOG_ERROR, "Error when passing '%s'.\n", s);\
ctx               181 libavfilter/vf_overlay_qsv.c     AVFilterContext      *ctx = inlink->dst;
ctx               182 libavfilter/vf_overlay_qsv.c     QSVOverlayContext    *vpp = ctx->priv;
ctx               185 libavfilter/vf_overlay_qsv.c     av_log(ctx, AV_LOG_DEBUG, "Input[%d] is of %s.\n", FF_INLINK_IDX(inlink),
ctx               205 libavfilter/vf_overlay_qsv.c     AVFilterContext       *ctx = inlink->dst;
ctx               206 libavfilter/vf_overlay_qsv.c     QSVOverlayContext     *vpp = ctx->priv;
ctx               210 libavfilter/vf_overlay_qsv.c     av_log(ctx, AV_LOG_DEBUG, "Input[%d] is of %s.\n", FF_INLINK_IDX(inlink),
ctx               216 libavfilter/vf_overlay_qsv.c     ret = eval_expr(ctx);
ctx               233 libavfilter/vf_overlay_qsv.c     AVFilterContext  *ctx = fs->parent;
ctx               238 libavfilter/vf_overlay_qsv.c     for (i = 0; i < ctx->nb_inputs; i++) {
ctx               241 libavfilter/vf_overlay_qsv.c             ret = ff_qsvvpp_filter_frame(s->qsv, ctx->inputs[i], frame);
ctx               249 libavfilter/vf_overlay_qsv.c static int init_framesync(AVFilterContext *ctx)
ctx               251 libavfilter/vf_overlay_qsv.c     QSVOverlayContext *s = ctx->priv;
ctx               256 libavfilter/vf_overlay_qsv.c     ret = ff_framesync_init(&s->fs, ctx, ctx->nb_inputs);
ctx               260 libavfilter/vf_overlay_qsv.c     for (i = 0; i < ctx->nb_inputs; i++) {
ctx               265 libavfilter/vf_overlay_qsv.c         in->time_base = ctx->inputs[i]->time_base;
ctx               273 libavfilter/vf_overlay_qsv.c     AVFilterContext   *ctx = outlink->src;
ctx               274 libavfilter/vf_overlay_qsv.c     QSVOverlayContext *vpp = ctx->priv;
ctx               275 libavfilter/vf_overlay_qsv.c     AVFilterLink      *in0 = ctx->inputs[0];
ctx               276 libavfilter/vf_overlay_qsv.c     AVFilterLink      *in1 = ctx->inputs[1];
ctx               279 libavfilter/vf_overlay_qsv.c     av_log(ctx, AV_LOG_DEBUG, "Output is of %s.\n", av_get_pix_fmt_name(outlink->format));
ctx               282 libavfilter/vf_overlay_qsv.c         av_log(ctx, AV_LOG_ERROR, "Mixing hardware and software pixel formats is not supported.\n");
ctx               289 libavfilter/vf_overlay_qsv.c             av_log(ctx, AV_LOG_ERROR, "Inputs with different underlying QSV devices are forbidden.\n");
ctx               299 libavfilter/vf_overlay_qsv.c     ret = init_framesync(ctx);
ctx               303 libavfilter/vf_overlay_qsv.c     return ff_qsvvpp_create(ctx, &vpp->qsv, &vpp->qsv_param);
ctx               321 libavfilter/vf_overlay_qsv.c static int overlay_qsv_init(AVFilterContext *ctx)
ctx               323 libavfilter/vf_overlay_qsv.c     QSVOverlayContext *vpp = ctx->priv;
ctx               328 libavfilter/vf_overlay_qsv.c     vpp->comp_conf.NumInputStream  = ctx->nb_inputs;
ctx               329 libavfilter/vf_overlay_qsv.c     vpp->comp_conf.InputStream     = av_mallocz_array(ctx->nb_inputs,
ctx               348 libavfilter/vf_overlay_qsv.c static av_cold void overlay_qsv_uninit(AVFilterContext *ctx)
ctx               350 libavfilter/vf_overlay_qsv.c     QSVOverlayContext *vpp = ctx->priv;
ctx               358 libavfilter/vf_overlay_qsv.c static int activate(AVFilterContext *ctx)
ctx               360 libavfilter/vf_overlay_qsv.c     QSVOverlayContext *s = ctx->priv;
ctx               364 libavfilter/vf_overlay_qsv.c static int overlay_qsv_query_formats(AVFilterContext *ctx)
ctx               383 libavfilter/vf_overlay_qsv.c     for (i = 0; i < ctx->nb_inputs; i++) {
ctx               384 libavfilter/vf_overlay_qsv.c         ret = ff_formats_ref(ff_make_format_list(main_in_fmts), &ctx->inputs[i]->out_formats);
ctx               389 libavfilter/vf_overlay_qsv.c     ret = ff_formats_ref(ff_make_format_list(out_pix_fmts), &ctx->outputs[0]->in_formats);
ctx                79 libavfilter/vf_overlay_vulkan.c static av_cold int init_filter(AVFilterContext *ctx)
ctx                82 libavfilter/vf_overlay_vulkan.c     OverlayVulkanContext *s = ctx->priv;
ctx                83 libavfilter/vf_overlay_vulkan.c     VkSampler *sampler = ff_vk_init_sampler(ctx, 1, VK_FILTER_NEAREST);
ctx                87 libavfilter/vf_overlay_vulkan.c     s->pl = ff_vk_create_pipeline(ctx);
ctx               140 libavfilter/vf_overlay_vulkan.c         SPIRVShader *shd = ff_vk_init_shader(ctx, s->pl, "overlay_compute",
ctx               145 libavfilter/vf_overlay_vulkan.c         ff_vk_set_compute_shader_sizes(ctx, shd, CGROUPS);
ctx               147 libavfilter/vf_overlay_vulkan.c         RET(ff_vk_add_descriptor_set(ctx, s->pl, shd,  desc_i, 3, 0)); /* set 0 */
ctx               148 libavfilter/vf_overlay_vulkan.c         RET(ff_vk_add_descriptor_set(ctx, s->pl, shd, &desc_b, 1, 0)); /* set 1 */
ctx               164 libavfilter/vf_overlay_vulkan.c         RET(ff_vk_compile_shader(ctx, shd, "main"));
ctx               167 libavfilter/vf_overlay_vulkan.c     RET(ff_vk_init_pipeline_layout(ctx, s->pl));
ctx               168 libavfilter/vf_overlay_vulkan.c     RET(ff_vk_init_compute_pipeline(ctx, s->pl));
ctx               181 libavfilter/vf_overlay_vulkan.c         err = ff_vk_create_buf(ctx, &s->params_buf,
ctx               188 libavfilter/vf_overlay_vulkan.c         err = ff_vk_map_buffers(ctx, &s->params_buf, (uint8_t **)&par, 1, 0);
ctx               208 libavfilter/vf_overlay_vulkan.c         err = ff_vk_unmap_buffers(ctx, &s->params_buf, 1, 1);
ctx               215 libavfilter/vf_overlay_vulkan.c         ff_vk_update_descriptor_set(ctx, s->pl, 1);
ctx               219 libavfilter/vf_overlay_vulkan.c     RET(ff_vk_create_exec_ctx(ctx, &s->exec));
ctx               352 libavfilter/vf_overlay_vulkan.c     AVFilterContext *ctx = fs->parent;
ctx               353 libavfilter/vf_overlay_vulkan.c     OverlayVulkanContext *s = ctx->priv;
ctx               354 libavfilter/vf_overlay_vulkan.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               371 libavfilter/vf_overlay_vulkan.c             av_log(ctx, AV_LOG_ERROR, "Mismatching sw formats!\n");
ctx               378 libavfilter/vf_overlay_vulkan.c         RET(init_filter(ctx));
ctx               387 libavfilter/vf_overlay_vulkan.c     RET(process_frames(ctx, out, input_main, input_overlay));
ctx               247 libavfilter/vf_owdenoise.c     AVFilterContext *ctx = inlink->dst;
ctx               248 libavfilter/vf_owdenoise.c     OWDenoiseContext *s = ctx->priv;
ctx               249 libavfilter/vf_owdenoise.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               294 libavfilter/vf_owdenoise.c static int query_formats(AVFilterContext *ctx)
ctx               314 libavfilter/vf_owdenoise.c     return ff_set_common_formats(ctx, fmts_list);
ctx               339 libavfilter/vf_owdenoise.c static av_cold void uninit(AVFilterContext *ctx)
ctx               342 libavfilter/vf_owdenoise.c     OWDenoiseContext *s = ctx->priv;
ctx                75 libavfilter/vf_pad.c static int query_formats(AVFilterContext *ctx)
ctx                77 libavfilter/vf_pad.c     return ff_set_common_formats(ctx, ff_draw_supported_pixel_formats(0));
ctx               107 libavfilter/vf_pad.c     AVFilterContext *ctx = inlink->dst;
ctx               108 libavfilter/vf_pad.c     PadContext *s = ctx->priv;
ctx               131 libavfilter/vf_pad.c                            NULL, NULL, NULL, NULL, NULL, 0, ctx);
ctx               135 libavfilter/vf_pad.c                                       NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               144 libavfilter/vf_pad.c                                       NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               162 libavfilter/vf_pad.c                            NULL, NULL, NULL, NULL, NULL, 0, ctx);
ctx               166 libavfilter/vf_pad.c                                       NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               172 libavfilter/vf_pad.c                                       NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               185 libavfilter/vf_pad.c         av_log(ctx, AV_LOG_ERROR, "Padded dimensions cannot be smaller than input dimensions.\n");
ctx               196 libavfilter/vf_pad.c     av_log(ctx, AV_LOG_VERBOSE, "w:%d h:%d -> w:%d h:%d x:%d y:%d color:0x%02X%02X%02X%02X\n",
ctx               204 libavfilter/vf_pad.c         av_log(ctx, AV_LOG_ERROR,
ctx               213 libavfilter/vf_pad.c     av_log(ctx, AV_LOG_ERROR,
ctx                83 libavfilter/vf_pad_opencl.c     PadOpenCLContext *ctx = avctx->priv;
ctx                91 libavfilter/vf_pad_opencl.c     ctx->is_rgb = !!(desc->flags & AV_PIX_FMT_FLAG_RGB);
ctx                92 libavfilter/vf_pad_opencl.c     ctx->is_packed = !(desc->flags & AV_PIX_FMT_FLAG_PLANAR);
ctx                93 libavfilter/vf_pad_opencl.c     ctx->hsub = desc->log2_chroma_w;
ctx                94 libavfilter/vf_pad_opencl.c     ctx->vsub = desc->log2_chroma_h;
ctx               100 libavfilter/vf_pad_opencl.c     ctx->command_queue = clCreateCommandQueue(
ctx               101 libavfilter/vf_pad_opencl.c         ctx->ocf.hwctx->context,
ctx               102 libavfilter/vf_pad_opencl.c         ctx->ocf.hwctx->device_id,
ctx               107 libavfilter/vf_pad_opencl.c     if (ctx->is_rgb) {
ctx               108 libavfilter/vf_pad_opencl.c         ctx->pad_color[rgba_map[0]] = ctx->pad_rgba[0];
ctx               109 libavfilter/vf_pad_opencl.c         ctx->pad_color[rgba_map[1]] = ctx->pad_rgba[1];
ctx               110 libavfilter/vf_pad_opencl.c         ctx->pad_color[rgba_map[2]] = ctx->pad_rgba[2];
ctx               111 libavfilter/vf_pad_opencl.c         ctx->pad_color[rgba_map[3]] = ctx->pad_rgba[3];
ctx               113 libavfilter/vf_pad_opencl.c         ctx->pad_color[0] = RGB_TO_Y_BT709(ctx->pad_rgba[0], ctx->pad_rgba[1], ctx->pad_rgba[2]);
ctx               114 libavfilter/vf_pad_opencl.c         ctx->pad_color[1] = RGB_TO_U_BT709(ctx->pad_rgba[0], ctx->pad_rgba[1], ctx->pad_rgba[2], 0);
ctx               115 libavfilter/vf_pad_opencl.c         ctx->pad_color[2] = RGB_TO_V_BT709(ctx->pad_rgba[0], ctx->pad_rgba[1], ctx->pad_rgba[2], 0);
ctx               116 libavfilter/vf_pad_opencl.c         ctx->pad_color[3] = ctx->pad_rgba[3];
ctx               121 libavfilter/vf_pad_opencl.c     ctx->kernel_pad = clCreateKernel(ctx->ocf.program, "pad", &cle);
ctx               125 libavfilter/vf_pad_opencl.c         ctx->pad_color_float.s[i] = (float)ctx->pad_color[i] / 255.0;
ctx               128 libavfilter/vf_pad_opencl.c     ctx->pad_pos.s[0] = ctx->x;
ctx               129 libavfilter/vf_pad_opencl.c     ctx->pad_pos.s[1] = ctx->y;
ctx               131 libavfilter/vf_pad_opencl.c     ctx->initialized = 1;
ctx               135 libavfilter/vf_pad_opencl.c     if (ctx->command_queue)
ctx               136 libavfilter/vf_pad_opencl.c         clReleaseCommandQueue(ctx->command_queue);
ctx               137 libavfilter/vf_pad_opencl.c     if (ctx->kernel_pad)
ctx               138 libavfilter/vf_pad_opencl.c         clReleaseKernel(ctx->kernel_pad);
ctx               229 libavfilter/vf_pad_opencl.c     PadOpenCLContext *ctx = avctx->priv;
ctx               232 libavfilter/vf_pad_opencl.c     if (ctx->kernel_pad) {
ctx               233 libavfilter/vf_pad_opencl.c         cle = clReleaseKernel(ctx->kernel_pad);
ctx               239 libavfilter/vf_pad_opencl.c     if (ctx->command_queue) {
ctx               240 libavfilter/vf_pad_opencl.c         cle = clReleaseCommandQueue(ctx->command_queue);
ctx               253 libavfilter/vf_pad_opencl.c     PadOpenCLContext *ctx = avctx->priv;
ctx               254 libavfilter/vf_pad_opencl.c     AVRational adjusted_aspect = ctx->aspect;
ctx               268 libavfilter/vf_pad_opencl.c     av_expr_parse_and_eval(&res, (expr = ctx->w_expr),
ctx               270 libavfilter/vf_pad_opencl.c                            NULL, NULL, NULL, NULL, NULL, 0, ctx);
ctx               271 libavfilter/vf_pad_opencl.c     ctx->w = var_values[VAR_OUT_W] = var_values[VAR_OW] = res;
ctx               272 libavfilter/vf_pad_opencl.c     if ((ret = av_expr_parse_and_eval(&res, (expr = ctx->h_expr),
ctx               274 libavfilter/vf_pad_opencl.c                                       NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               276 libavfilter/vf_pad_opencl.c     ctx->h = var_values[VAR_OUT_H] = var_values[VAR_OH] = res;
ctx               277 libavfilter/vf_pad_opencl.c     if (!ctx->h)
ctx               278 libavfilter/vf_pad_opencl.c         var_values[VAR_OUT_H] = var_values[VAR_OH] = ctx->h = inlink->h;
ctx               281 libavfilter/vf_pad_opencl.c     if ((ret = av_expr_parse_and_eval(&res, (expr = ctx->w_expr),
ctx               283 libavfilter/vf_pad_opencl.c                                       NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               285 libavfilter/vf_pad_opencl.c     ctx->w = var_values[VAR_OUT_W] = var_values[VAR_OW] = res;
ctx               286 libavfilter/vf_pad_opencl.c     if (!ctx->w)
ctx               287 libavfilter/vf_pad_opencl.c         var_values[VAR_OUT_W] = var_values[VAR_OW] = ctx->w = inlink->w;
ctx               291 libavfilter/vf_pad_opencl.c         if (ctx->h < av_rescale(ctx->w, adjusted_aspect.den, adjusted_aspect.num)) {
ctx               292 libavfilter/vf_pad_opencl.c             ctx->h = var_values[VAR_OUT_H] = var_values[VAR_OH] = av_rescale(ctx->w, adjusted_aspect.den, adjusted_aspect.num);
ctx               294 libavfilter/vf_pad_opencl.c             ctx->w = var_values[VAR_OUT_W] = var_values[VAR_OW] = av_rescale(ctx->h, adjusted_aspect.num, adjusted_aspect.den);
ctx               299 libavfilter/vf_pad_opencl.c     av_expr_parse_and_eval(&res, (expr = ctx->x_expr),
ctx               301 libavfilter/vf_pad_opencl.c                            NULL, NULL, NULL, NULL, NULL, 0, ctx);
ctx               302 libavfilter/vf_pad_opencl.c     ctx->x = var_values[VAR_X] = res;
ctx               303 libavfilter/vf_pad_opencl.c     if ((ret = av_expr_parse_and_eval(&res, (expr = ctx->y_expr),
ctx               305 libavfilter/vf_pad_opencl.c                                       NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               307 libavfilter/vf_pad_opencl.c     ctx->y = var_values[VAR_Y] = res;
ctx               309 libavfilter/vf_pad_opencl.c     if ((ret = av_expr_parse_and_eval(&res, (expr = ctx->x_expr),
ctx               311 libavfilter/vf_pad_opencl.c                                       NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               313 libavfilter/vf_pad_opencl.c     ctx->x = var_values[VAR_X] = res;
ctx               315 libavfilter/vf_pad_opencl.c     if (ctx->x < 0 || ctx->x + inlink->w > ctx->w)
ctx               316 libavfilter/vf_pad_opencl.c         ctx->x = var_values[VAR_X] = (ctx->w - inlink->w) / 2;
ctx               317 libavfilter/vf_pad_opencl.c     if (ctx->y < 0 || ctx->y + inlink->h > ctx->h)
ctx               318 libavfilter/vf_pad_opencl.c         ctx->y = var_values[VAR_Y] = (ctx->h - inlink->h) / 2;
ctx               321 libavfilter/vf_pad_opencl.c     if (ctx->w < inlink->w || ctx->h < inlink->h) {
ctx               322 libavfilter/vf_pad_opencl.c         av_log(ctx, AV_LOG_ERROR, "Padded dimensions cannot be smaller than input dimensions.\n");
ctx               326 libavfilter/vf_pad_opencl.c     if (ctx->w > avctx->inputs[0]->w) {
ctx               327 libavfilter/vf_pad_opencl.c         ctx->ocf.output_width  = ctx->w;
ctx               329 libavfilter/vf_pad_opencl.c         ctx->ocf.output_width  = avctx->inputs[0]->w;
ctx               332 libavfilter/vf_pad_opencl.c     if (ctx->h > avctx->inputs[0]->h) {
ctx               333 libavfilter/vf_pad_opencl.c         ctx->ocf.output_height = ctx->h;
ctx               335 libavfilter/vf_pad_opencl.c         ctx->ocf.output_height = avctx->inputs[0]->h;
ctx               338 libavfilter/vf_pad_opencl.c     if (ctx->x + avctx->inputs[0]->w > ctx->ocf.output_width ||
ctx               339 libavfilter/vf_pad_opencl.c         ctx->y + avctx->inputs[0]->h > ctx->ocf.output_height) {
ctx                96 libavfilter/vf_palettegen.c static int query_formats(AVFilterContext *ctx)
ctx               102 libavfilter/vf_palettegen.c     if ((ret = ff_formats_ref(ff_make_format_list(in_fmts) , &ctx->inputs[0]->out_formats)) < 0)
ctx               104 libavfilter/vf_palettegen.c     if ((ret = ff_formats_ref(ff_make_format_list(out_fmts), &ctx->outputs[0]->in_formats)) < 0)
ctx               232 libavfilter/vf_palettegen.c static void write_palette(AVFilterContext *ctx, AVFrame *out)
ctx               234 libavfilter/vf_palettegen.c     const PaletteGenContext *s = ctx->priv;
ctx               245 libavfilter/vf_palettegen.c                     av_log(ctx, AV_LOG_WARNING, "Dupped color: %08"PRIX32"\n", pal[x]);
ctx               296 libavfilter/vf_palettegen.c static AVFrame *get_palette_frame(AVFilterContext *ctx)
ctx               299 libavfilter/vf_palettegen.c     PaletteGenContext *s = ctx->priv;
ctx               300 libavfilter/vf_palettegen.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               308 libavfilter/vf_palettegen.c         av_log(ctx, AV_LOG_ERROR, "Unable to allocate references for %d different colors\n", s->nb_refs);
ctx               353 libavfilter/vf_palettegen.c         ff_dlog(ctx, "box #%02X [%6d..%-6d] (%6d) w:%-6"PRIu64" ranges:[%2x %2x %2x] sort by %c (already sorted:%c) ",
ctx               374 libavfilter/vf_palettegen.c         ff_dlog(ctx, "split @ i=%-6d with w=%-6"PRIu64" (target=%6"PRIu64")\n", i, box_weight, median);
ctx               382 libavfilter/vf_palettegen.c     av_log(ctx, AV_LOG_INFO, "%d%s colors generated out of %d colors; ratio=%f\n",
ctx               387 libavfilter/vf_palettegen.c     write_palette(ctx, out);
ctx               481 libavfilter/vf_palettegen.c     AVFilterContext *ctx = inlink->dst;
ctx               482 libavfilter/vf_palettegen.c     PaletteGenContext *s = ctx->priv;
ctx               496 libavfilter/vf_palettegen.c         out = get_palette_frame(ctx);
ctx               499 libavfilter/vf_palettegen.c         ret = ff_filter_frame(ctx->outputs[0], out);
ctx               519 libavfilter/vf_palettegen.c     AVFilterContext *ctx = outlink->src;
ctx               520 libavfilter/vf_palettegen.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               521 libavfilter/vf_palettegen.c     PaletteGenContext *s = ctx->priv;
ctx               526 libavfilter/vf_palettegen.c         r = ff_filter_frame(outlink, get_palette_frame(ctx));
ctx               543 libavfilter/vf_palettegen.c static av_cold void uninit(AVFilterContext *ctx)
ctx               546 libavfilter/vf_palettegen.c     PaletteGenContext *s = ctx->priv;
ctx               139 libavfilter/vf_paletteuse.c static int query_formats(AVFilterContext *ctx)
ctx               154 libavfilter/vf_paletteuse.c     if ((ret = ff_formats_ref(in   , &ctx->inputs[0]->out_formats)) < 0 ||
ctx               155 libavfilter/vf_paletteuse.c         (ret = ff_formats_ref(inpal, &ctx->inputs[1]->out_formats)) < 0 ||
ctx               156 libavfilter/vf_paletteuse.c         (ret = ff_formats_ref(out  , &ctx->outputs[0]->in_formats)) < 0)
ctx               900 libavfilter/vf_paletteuse.c     AVFilterContext *ctx = inlink->dst;
ctx               901 libavfilter/vf_paletteuse.c     PaletteUseContext *s = ctx->priv;
ctx               923 libavfilter/vf_paletteuse.c     ff_dlog(ctx, "%dx%d rect: (%d;%d) -> (%d,%d) [area:%dx%d]\n",
ctx               942 libavfilter/vf_paletteuse.c     AVFilterContext *ctx = outlink->src;
ctx               943 libavfilter/vf_paletteuse.c     PaletteUseContext *s = ctx->priv;
ctx               945 libavfilter/vf_paletteuse.c     ret = ff_framesync_init_dualinput(&s->fs, ctx);
ctx               952 libavfilter/vf_paletteuse.c     outlink->w = ctx->inputs[0]->w;
ctx               953 libavfilter/vf_paletteuse.c     outlink->h = ctx->inputs[0]->h;
ctx               955 libavfilter/vf_paletteuse.c     outlink->time_base = ctx->inputs[0]->time_base;
ctx               963 libavfilter/vf_paletteuse.c     AVFilterContext *ctx = inlink->dst;
ctx               966 libavfilter/vf_paletteuse.c         av_log(ctx, AV_LOG_ERROR,
ctx              1012 libavfilter/vf_paletteuse.c     AVFilterContext *ctx = fs->parent;
ctx              1013 libavfilter/vf_paletteuse.c     AVFilterLink *inlink = ctx->inputs[0];
ctx              1014 libavfilter/vf_paletteuse.c     PaletteUseContext *s = ctx->priv;
ctx              1033 libavfilter/vf_paletteuse.c     return ff_filter_frame(ctx->outputs[0], out);
ctx              1078 libavfilter/vf_paletteuse.c static av_cold int init(AVFilterContext *ctx)
ctx              1080 libavfilter/vf_paletteuse.c     PaletteUseContext *s = ctx->priv;
ctx              1103 libavfilter/vf_paletteuse.c static int activate(AVFilterContext *ctx)
ctx              1105 libavfilter/vf_paletteuse.c     PaletteUseContext *s = ctx->priv;
ctx              1109 libavfilter/vf_paletteuse.c static av_cold void uninit(AVFilterContext *ctx)
ctx              1112 libavfilter/vf_paletteuse.c     PaletteUseContext *s = ctx->priv;
ctx                53 libavfilter/vf_perspective.c     int (*perspective)(AVFilterContext *ctx,
ctx                97 libavfilter/vf_perspective.c static int query_formats(AVFilterContext *ctx)
ctx               109 libavfilter/vf_perspective.c     return ff_set_common_formats(ctx, fmts_list);
ctx               131 libavfilter/vf_perspective.c static int calc_persp_luts(AVFilterContext *ctx, AVFilterLink *inlink)
ctx               133 libavfilter/vf_perspective.c     PerspectiveContext *s = ctx->priv;
ctx               134 libavfilter/vf_perspective.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               153 libavfilter/vf_perspective.c                                          0, 0, ctx);
ctx               230 libavfilter/vf_perspective.c     AVFilterContext *ctx = inlink->dst;
ctx               231 libavfilter/vf_perspective.c     PerspectiveContext *s = ctx->priv;
ctx               250 libavfilter/vf_perspective.c         if ((ret = calc_persp_luts(ctx, inlink)) < 0) {
ctx               282 libavfilter/vf_perspective.c static int resample_cubic(AVFilterContext *ctx, void *arg,
ctx               285 libavfilter/vf_perspective.c     PerspectiveContext *s = ctx->priv;
ctx               361 libavfilter/vf_perspective.c static int resample_linear(AVFilterContext *ctx, void *arg,
ctx               364 libavfilter/vf_perspective.c     PerspectiveContext *s = ctx->priv;
ctx               436 libavfilter/vf_perspective.c static av_cold int init(AVFilterContext *ctx)
ctx               438 libavfilter/vf_perspective.c     PerspectiveContext *s = ctx->priv;
ctx               450 libavfilter/vf_perspective.c     AVFilterContext *ctx = inlink->dst;
ctx               451 libavfilter/vf_perspective.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               452 libavfilter/vf_perspective.c     PerspectiveContext *s = ctx->priv;
ctx               465 libavfilter/vf_perspective.c         if ((ret = calc_persp_luts(ctx, inlink)) < 0) {
ctx               482 libavfilter/vf_perspective.c         ctx->internal->execute(ctx, s->perspective, &td, NULL, FFMIN(td.h, ff_filter_get_nb_threads(ctx)));
ctx               489 libavfilter/vf_perspective.c static av_cold void uninit(AVFilterContext *ctx)
ctx               491 libavfilter/vf_perspective.c     PerspectiveContext *s = ctx->priv;
ctx                73 libavfilter/vf_phase.c     enum PhaseMode (*analyze_plane)(void *ctx, enum PhaseMode mode, AVFrame *old, AVFrame *new);
ctx                96 libavfilter/vf_phase.c static int query_formats(AVFilterContext *ctx)
ctx               131 libavfilter/vf_phase.c     return ff_set_common_formats(ctx, fmts_list);
ctx               163 libavfilter/vf_phase.c     AVFilterContext *ctx = inlink->dst;
ctx               164 libavfilter/vf_phase.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               165 libavfilter/vf_phase.c     PhaseContext *s = ctx->priv;
ctx               170 libavfilter/vf_phase.c     if (ctx->is_disabled) {
ctx               190 libavfilter/vf_phase.c         mode = s->analyze_plane(ctx, s->mode, s->frame, in);
ctx               213 libavfilter/vf_phase.c static av_cold void uninit(AVFilterContext *ctx)
ctx               215 libavfilter/vf_phase.c     PhaseContext *s = ctx->priv;
ctx                73 libavfilter/vf_photosensitivity.c static int query_formats(AVFilterContext *ctx)
ctx                83 libavfilter/vf_photosensitivity.c     return ff_set_common_formats(ctx, formats);
ctx                95 libavfilter/vf_photosensitivity.c static int convert_frame_partial(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               143 libavfilter/vf_photosensitivity.c static void convert_frame(AVFilterContext *ctx, AVFrame *in, PhotosensitivityFrame *out, int skip)
ctx               149 libavfilter/vf_photosensitivity.c     ctx->internal->execute(ctx, convert_frame_partial, &td, NULL, FFMIN(NUM_CELLS, ff_filter_get_nb_threads(ctx)));
ctx               159 libavfilter/vf_photosensitivity.c static int blend_frame_partial(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               182 libavfilter/vf_photosensitivity.c static void blend_frame(AVFilterContext *ctx, AVFrame *target, AVFrame *source, float factor)
ctx               188 libavfilter/vf_photosensitivity.c     ctx->internal->execute(ctx, blend_frame_partial, &td, NULL, FFMIN(ctx->outputs[0]->h, ff_filter_get_nb_threads(ctx)));
ctx               210 libavfilter/vf_photosensitivity.c     AVFilterContext *ctx = inlink->dst;
ctx               211 libavfilter/vf_photosensitivity.c     PhotosensitivityContext *s = ctx->priv;
ctx               227 libavfilter/vf_photosensitivity.c     AVFilterContext *ctx = inlink->dst;
ctx               228 libavfilter/vf_photosensitivity.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               229 libavfilter/vf_photosensitivity.c     PhotosensitivityContext *s = ctx->priv;
ctx               237 libavfilter/vf_photosensitivity.c     convert_frame(ctx, in, &ef, s->skip);
ctx               262 libavfilter/vf_photosensitivity.c             blend_frame(ctx, s->last_frame_av, in, factor);
ctx               264 libavfilter/vf_photosensitivity.c             convert_frame(ctx, s->last_frame_av, &ef, s->skip);
ctx               307 libavfilter/vf_photosensitivity.c static av_cold void uninit(AVFilterContext *ctx)
ctx               309 libavfilter/vf_photosensitivity.c     PhotosensitivityContext *s = ctx->priv;
ctx                37 libavfilter/vf_pixdesctest.c static av_cold void uninit(AVFilterContext *ctx)
ctx                39 libavfilter/vf_pixdesctest.c     PixdescTestContext *priv = ctx->priv;
ctx                50 libavfilter/vf_pp.c static av_cold int pp_init(AVFilterContext *ctx)
ctx                53 libavfilter/vf_pp.c     PPFilterContext *pp = ctx->priv;
ctx                64 libavfilter/vf_pp.c static int pp_process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx                67 libavfilter/vf_pp.c     PPFilterContext *pp = ctx->priv;
ctx                76 libavfilter/vf_pp.c static int pp_query_formats(AVFilterContext *ctx)
ctx                92 libavfilter/vf_pp.c     return ff_set_common_formats(ctx, fmts_list);
ctx               123 libavfilter/vf_pp.c     AVFilterContext *ctx = inlink->dst;
ctx               124 libavfilter/vf_pp.c     PPFilterContext *pp = ctx->priv;
ctx               125 libavfilter/vf_pp.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               155 libavfilter/vf_pp.c static av_cold void pp_uninit(AVFilterContext *ctx)
ctx               158 libavfilter/vf_pp.c     PPFilterContext *pp = ctx->priv;
ctx               266 libavfilter/vf_pp7.c static int query_formats(AVFilterContext *ctx)
ctx               281 libavfilter/vf_pp7.c     return ff_set_common_formats(ctx, fmts_list);
ctx               286 libavfilter/vf_pp7.c     AVFilterContext *ctx = inlink->dst;
ctx               287 libavfilter/vf_pp7.c     PP7Context *pp7 = ctx->priv;
ctx               319 libavfilter/vf_pp7.c     AVFilterContext *ctx = inlink->dst;
ctx               320 libavfilter/vf_pp7.c     PP7Context *pp7 = ctx->priv;
ctx               321 libavfilter/vf_pp7.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               330 libavfilter/vf_pp7.c     if (!ctx->is_disabled) {
ctx               372 libavfilter/vf_pp7.c static av_cold void uninit(AVFilterContext *ctx)
ctx               374 libavfilter/vf_pp7.c     PP7Context *pp7 = ctx->priv;
ctx                66 libavfilter/vf_premultiply.c static int query_formats(AVFilterContext *ctx)
ctx                68 libavfilter/vf_premultiply.c     PreMultiplyContext *s = ctx->priv;
ctx                89 libavfilter/vf_premultiply.c     return ff_set_common_formats(ctx, ff_make_format_list(s->inplace ? alpha_pix_fmts : no_alpha_pix_fmts));
ctx               368 libavfilter/vf_premultiply.c static int premultiply_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               370 libavfilter/vf_premultiply.c     PreMultiplyContext *s = ctx->priv;
ctx               403 libavfilter/vf_premultiply.c static int filter_frame(AVFilterContext *ctx,
ctx               406 libavfilter/vf_premultiply.c     PreMultiplyContext *s = ctx->priv;
ctx               407 libavfilter/vf_premultiply.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               409 libavfilter/vf_premultiply.c     if (ctx->is_disabled) {
ctx               524 libavfilter/vf_premultiply.c         ctx->internal->execute(ctx, premultiply_slice, &td, NULL, FFMIN(s->height[0],
ctx               525 libavfilter/vf_premultiply.c                                                                         ff_filter_get_nb_threads(ctx)));
ctx               533 libavfilter/vf_premultiply.c     AVFilterContext *ctx = fs->parent;
ctx               535 libavfilter/vf_premultiply.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               543 libavfilter/vf_premultiply.c     if ((ret = filter_frame(ctx, &out, base, alpha)) < 0)
ctx               553 libavfilter/vf_premultiply.c     AVFilterContext *ctx = inlink->dst;
ctx               554 libavfilter/vf_premultiply.c     PreMultiplyContext *s = ctx->priv;
ctx               580 libavfilter/vf_premultiply.c     AVFilterContext *ctx = outlink->src;
ctx               581 libavfilter/vf_premultiply.c     PreMultiplyContext *s = ctx->priv;
ctx               582 libavfilter/vf_premultiply.c     AVFilterLink *base = ctx->inputs[0];
ctx               588 libavfilter/vf_premultiply.c         alpha = ctx->inputs[1];
ctx               591 libavfilter/vf_premultiply.c             av_log(ctx, AV_LOG_ERROR, "inputs must be of same pixel format\n");
ctx               596 libavfilter/vf_premultiply.c             av_log(ctx, AV_LOG_ERROR, "First input link %s parameters "
ctx               599 libavfilter/vf_premultiply.c                    ctx->input_pads[0].name, base->w, base->h,
ctx               600 libavfilter/vf_premultiply.c                    ctx->input_pads[1].name, alpha->w, alpha->h);
ctx               614 libavfilter/vf_premultiply.c     if ((ret = ff_framesync_init(&s->fs, ctx, 2)) < 0)
ctx               632 libavfilter/vf_premultiply.c static int activate(AVFilterContext *ctx)
ctx               634 libavfilter/vf_premultiply.c     PreMultiplyContext *s = ctx->priv;
ctx               642 libavfilter/vf_premultiply.c         FF_FILTER_FORWARD_STATUS_BACK_ALL(ctx->outputs[0], ctx);
ctx               644 libavfilter/vf_premultiply.c         if ((ret = ff_inlink_consume_frame(ctx->inputs[0], &frame)) > 0) {
ctx               645 libavfilter/vf_premultiply.c             ret = filter_frame(ctx, &out, frame, frame);
ctx               649 libavfilter/vf_premultiply.c             ret = ff_filter_frame(ctx->outputs[0], out);
ctx               653 libavfilter/vf_premultiply.c         } else if (ff_inlink_acknowledge_status(ctx->inputs[0], &status, &pts)) {
ctx               654 libavfilter/vf_premultiply.c             ff_outlink_set_status(ctx->outputs[0], status, pts);
ctx               657 libavfilter/vf_premultiply.c             if (ff_outlink_frame_wanted(ctx->outputs[0]))
ctx               658 libavfilter/vf_premultiply.c                 ff_inlink_request_frame(ctx->inputs[0]);
ctx               666 libavfilter/vf_premultiply.c static av_cold int init(AVFilterContext *ctx)
ctx               668 libavfilter/vf_premultiply.c     PreMultiplyContext *s = ctx->priv;
ctx               672 libavfilter/vf_premultiply.c     if (!strcmp(ctx->filter->name, "unpremultiply"))
ctx               681 libavfilter/vf_premultiply.c     if ((ret = ff_insert_inpad(ctx, 0, &pad)) < 0) {
ctx               693 libavfilter/vf_premultiply.c         if ((ret = ff_insert_inpad(ctx, 1, &pad)) < 0) {
ctx               702 libavfilter/vf_premultiply.c static av_cold void uninit(AVFilterContext *ctx)
ctx               704 libavfilter/vf_premultiply.c     PreMultiplyContext *s = ctx->priv;
ctx                69 libavfilter/vf_procamp_vaapi.c     ProcampVAAPIContext *ctx = avctx->priv;
ctx                92 libavfilter/vf_procamp_vaapi.c     procamp_params[i].value  = map(ctx->bright, BRIGHTNESS_MIN, BRIGHTNESS_MAX,
ctx               100 libavfilter/vf_procamp_vaapi.c     procamp_params[i].value  = map(ctx->contrast, CONTRAST_MIN, CONTRAST_MAX,
ctx               108 libavfilter/vf_procamp_vaapi.c     procamp_params[i].value  = map(ctx->hue, HUE_MIN, HUE_MAX,
ctx               116 libavfilter/vf_procamp_vaapi.c     procamp_params[i].value  = map(ctx->saturation, SATURATION_MIN, SATURATION_MAX,
ctx                52 libavfilter/vf_program_opencl.c     ProgramOpenCLContext *ctx = avctx->priv;
ctx                56 libavfilter/vf_program_opencl.c     err = ff_opencl_filter_load_program_from_file(avctx, ctx->source_file);
ctx                60 libavfilter/vf_program_opencl.c     ctx->command_queue = clCreateCommandQueue(ctx->ocf.hwctx->context,
ctx                61 libavfilter/vf_program_opencl.c                                               ctx->ocf.hwctx->device_id,
ctx                63 libavfilter/vf_program_opencl.c     if (!ctx->command_queue) {
ctx                69 libavfilter/vf_program_opencl.c     ctx->kernel = clCreateKernel(ctx->ocf.program, ctx->kernel_name, &cle);
ctx                70 libavfilter/vf_program_opencl.c     if (!ctx->kernel) {
ctx                73 libavfilter/vf_program_opencl.c                    "program.\n", ctx->kernel_name);
ctx                80 libavfilter/vf_program_opencl.c     ctx->loaded = 1;
ctx                87 libavfilter/vf_program_opencl.c     ProgramOpenCLContext *ctx = avctx->priv;
ctx                94 libavfilter/vf_program_opencl.c     if (!ctx->loaded) {
ctx               111 libavfilter/vf_program_opencl.c         cle = clSetKernelArg(ctx->kernel, 0, sizeof(cl_mem), &dst);
ctx               118 libavfilter/vf_program_opencl.c         cle = clSetKernelArg(ctx->kernel, 1, sizeof(cl_uint), &ctx->index);
ctx               126 libavfilter/vf_program_opencl.c         for (input = 0; input < ctx->nb_inputs; input++) {
ctx               127 libavfilter/vf_program_opencl.c             av_assert0(ctx->frames[input]);
ctx               129 libavfilter/vf_program_opencl.c             src = (cl_mem)ctx->frames[input]->data[plane];
ctx               132 libavfilter/vf_program_opencl.c             cle = clSetKernelArg(ctx->kernel, 2 + input, sizeof(cl_mem), &src);
ctx               150 libavfilter/vf_program_opencl.c         cle = clEnqueueNDRangeKernel(ctx->command_queue, ctx->kernel, 2, NULL,
ctx               155 libavfilter/vf_program_opencl.c     cle = clFinish(ctx->command_queue);
ctx               158 libavfilter/vf_program_opencl.c     if (ctx->nb_inputs > 0) {
ctx               159 libavfilter/vf_program_opencl.c         err = av_frame_copy_props(output, ctx->frames[0]);
ctx               163 libavfilter/vf_program_opencl.c         output->pts = ctx->index;
ctx               165 libavfilter/vf_program_opencl.c     ++ctx->index;
ctx               167 libavfilter/vf_program_opencl.c     av_log(ctx, AV_LOG_DEBUG, "Filter output: %s, %ux%u (%"PRId64").\n",
ctx               174 libavfilter/vf_program_opencl.c     clFinish(ctx->command_queue);
ctx               189 libavfilter/vf_program_opencl.c     ProgramOpenCLContext *ctx = avctx->priv;
ctx               192 libavfilter/vf_program_opencl.c     for (i = 0; i < ctx->nb_inputs; i++) {
ctx               193 libavfilter/vf_program_opencl.c         err = ff_framesync_get_frame(&ctx->fs, i, &ctx->frames[i], 0);
ctx               203 libavfilter/vf_program_opencl.c     ProgramOpenCLContext *ctx = avctx->priv;
ctx               205 libavfilter/vf_program_opencl.c     av_assert0(ctx->nb_inputs > 0);
ctx               207 libavfilter/vf_program_opencl.c     return ff_framesync_activate(&ctx->fs);
ctx               213 libavfilter/vf_program_opencl.c     ProgramOpenCLContext *ctx = avctx->priv;
ctx               220 libavfilter/vf_program_opencl.c     if (ctx->nb_inputs > 0) {
ctx               224 libavfilter/vf_program_opencl.c         err = ff_framesync_init(&ctx->fs, avctx, ctx->nb_inputs);
ctx               228 libavfilter/vf_program_opencl.c         ctx->fs.opaque = ctx;
ctx               229 libavfilter/vf_program_opencl.c         ctx->fs.on_event = &program_opencl_filter;
ctx               231 libavfilter/vf_program_opencl.c         in = ctx->fs.in;
ctx               232 libavfilter/vf_program_opencl.c         for (i = 0; i < ctx->nb_inputs; i++) {
ctx               241 libavfilter/vf_program_opencl.c         err = ff_framesync_configure(&ctx->fs);
ctx               246 libavfilter/vf_program_opencl.c         outlink->time_base = av_inv_q(ctx->source_rate);
ctx               254 libavfilter/vf_program_opencl.c     ProgramOpenCLContext *ctx = avctx->priv;
ctx               259 libavfilter/vf_program_opencl.c     ctx->ocf.output_width  = ctx->width;
ctx               260 libavfilter/vf_program_opencl.c     ctx->ocf.output_height = ctx->height;
ctx               263 libavfilter/vf_program_opencl.c         if (!ctx->ocf.output_width || !ctx->ocf.output_height) {
ctx               269 libavfilter/vf_program_opencl.c         ctx->nb_inputs = 0;
ctx               270 libavfilter/vf_program_opencl.c         ctx->ocf.output_format = ctx->source_format;
ctx               274 libavfilter/vf_program_opencl.c         ctx->frames = av_mallocz_array(ctx->nb_inputs,
ctx               275 libavfilter/vf_program_opencl.c                                        sizeof(*ctx->frames));
ctx               276 libavfilter/vf_program_opencl.c         if (!ctx->frames)
ctx               279 libavfilter/vf_program_opencl.c         for (i = 0; i < ctx->nb_inputs; i++) {
ctx               303 libavfilter/vf_program_opencl.c     ProgramOpenCLContext *ctx = avctx->priv;
ctx               307 libavfilter/vf_program_opencl.c     if (ctx->nb_inputs > 0) {
ctx               308 libavfilter/vf_program_opencl.c         ff_framesync_uninit(&ctx->fs);
ctx               310 libavfilter/vf_program_opencl.c         av_freep(&ctx->frames);
ctx               315 libavfilter/vf_program_opencl.c     if (ctx->kernel) {
ctx               316 libavfilter/vf_program_opencl.c         cle = clReleaseKernel(ctx->kernel);
ctx               322 libavfilter/vf_program_opencl.c     if (ctx->command_queue) {
ctx               323 libavfilter/vf_program_opencl.c         cle = clReleaseCommandQueue(ctx->command_queue);
ctx               125 libavfilter/vf_pseudocolor.c static int query_formats(AVFilterContext *ctx)
ctx               130 libavfilter/vf_pseudocolor.c     return ff_set_common_formats(ctx, fmts_list);
ctx               424 libavfilter/vf_pseudocolor.c     AVFilterContext *ctx = inlink->dst;
ctx               425 libavfilter/vf_pseudocolor.c     PseudoColorContext *s = ctx->priv;
ctx               434 libavfilter/vf_pseudocolor.c         av_log(ctx, AV_LOG_ERROR, "index out of allowed range\n");
ctx               468 libavfilter/vf_pseudocolor.c                             var_names, NULL, NULL, NULL, NULL, 0, ctx);
ctx               470 libavfilter/vf_pseudocolor.c             av_log(ctx, AV_LOG_ERROR,
ctx               482 libavfilter/vf_pseudocolor.c                 av_log(ctx, AV_LOG_ERROR,
ctx               601 libavfilter/vf_pseudocolor.c     AVFilterContext *ctx = inlink->dst;
ctx               602 libavfilter/vf_pseudocolor.c     PseudoColorContext *s = ctx->priv;
ctx               603 libavfilter/vf_pseudocolor.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               649 libavfilter/vf_pseudocolor.c static av_cold void uninit(AVFilterContext *ctx)
ctx               651 libavfilter/vf_pseudocolor.c     PseudoColorContext *s = ctx->priv;
ctx               147 libavfilter/vf_psnr.c     AVFilterContext *ctx = fs->parent;
ctx               148 libavfilter/vf_psnr.c     PSNRContext *s = ctx->priv;
ctx               158 libavfilter/vf_psnr.c         return ff_filter_frame(ctx->outputs[0], master);
ctx               225 libavfilter/vf_psnr.c     return ff_filter_frame(ctx->outputs[0], master);
ctx               228 libavfilter/vf_psnr.c static av_cold int init(AVFilterContext *ctx)
ctx               230 libavfilter/vf_psnr.c     PSNRContext *s = ctx->priv;
ctx               237 libavfilter/vf_psnr.c             av_log(ctx, AV_LOG_ERROR,
ctx               249 libavfilter/vf_psnr.c                 av_log(ctx, AV_LOG_ERROR, "Could not open stats file %s: %s\n",
ctx               260 libavfilter/vf_psnr.c static int query_formats(AVFilterContext *ctx)
ctx               280 libavfilter/vf_psnr.c     return ff_set_common_formats(ctx, fmts_list);
ctx               286 libavfilter/vf_psnr.c     AVFilterContext *ctx  = inlink->dst;
ctx               287 libavfilter/vf_psnr.c     PSNRContext *s = ctx->priv;
ctx               293 libavfilter/vf_psnr.c     if (ctx->inputs[0]->w != ctx->inputs[1]->w ||
ctx               294 libavfilter/vf_psnr.c         ctx->inputs[0]->h != ctx->inputs[1]->h) {
ctx               295 libavfilter/vf_psnr.c         av_log(ctx, AV_LOG_ERROR, "Width and height of input videos must be same.\n");
ctx               298 libavfilter/vf_psnr.c     if (ctx->inputs[0]->format != ctx->inputs[1]->format) {
ctx               299 libavfilter/vf_psnr.c         av_log(ctx, AV_LOG_ERROR, "Inputs must be of same pixel format.\n");
ctx               337 libavfilter/vf_psnr.c     AVFilterContext *ctx = outlink->src;
ctx               338 libavfilter/vf_psnr.c     PSNRContext *s = ctx->priv;
ctx               339 libavfilter/vf_psnr.c     AVFilterLink *mainlink = ctx->inputs[0];
ctx               342 libavfilter/vf_psnr.c     ret = ff_framesync_init_dualinput(&s->fs, ctx);
ctx               356 libavfilter/vf_psnr.c         av_cmp_q(ctx->inputs[1]->time_base, outlink->time_base))
ctx               357 libavfilter/vf_psnr.c         av_log(ctx, AV_LOG_WARNING, "not matching timebases found between first input: %d/%d and second input %d/%d, results may be incorrect!\n",
ctx               359 libavfilter/vf_psnr.c                ctx->inputs[1]->time_base.num, ctx->inputs[1]->time_base.den);
ctx               364 libavfilter/vf_psnr.c static int activate(AVFilterContext *ctx)
ctx               366 libavfilter/vf_psnr.c     PSNRContext *s = ctx->priv;
ctx               370 libavfilter/vf_psnr.c static av_cold void uninit(AVFilterContext *ctx)
ctx               372 libavfilter/vf_psnr.c     PSNRContext *s = ctx->priv;
ctx               384 libavfilter/vf_psnr.c         av_log(ctx, AV_LOG_INFO, "PSNR%s average:%f min:%f max:%f\n",
ctx                55 libavfilter/vf_pullup.c static int query_formats(AVFilterContext *ctx)
ctx                70 libavfilter/vf_pullup.c     return ff_set_common_formats(ctx, fmts_list);
ctx               185 libavfilter/vf_pullup.c     AVFilterContext *ctx = inlink->dst;
ctx               186 libavfilter/vf_pullup.c     PullupContext *s = ctx->priv;
ctx               193 libavfilter/vf_pullup.c         av_log(ctx, AV_LOG_ERROR, "input format does not have such plane\n");
ctx               207 libavfilter/vf_pullup.c     av_log(ctx, AV_LOG_DEBUG, "w: %d h: %d\n", s->metric_w, s->metric_h);
ctx               208 libavfilter/vf_pullup.c     av_log(ctx, AV_LOG_DEBUG, "offset: %d length: %d\n", s->metric_offset, s->metric_length);
ctx               660 libavfilter/vf_pullup.c     AVFilterContext *ctx = inlink->dst;
ctx               661 libavfilter/vf_pullup.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               662 libavfilter/vf_pullup.c     PullupContext *s = ctx->priv;
ctx               670 libavfilter/vf_pullup.c         av_log(ctx, AV_LOG_WARNING, "Could not get buffer!\n");
ctx               734 libavfilter/vf_pullup.c static av_cold void uninit(AVFilterContext *ctx)
ctx               736 libavfilter/vf_pullup.c     PullupContext *s = ctx->priv;
ctx                51 libavfilter/vf_qp.c     AVFilterContext *ctx = inlink->dst;
ctx                52 libavfilter/vf_qp.c     QPContext *s = ctx->priv;
ctx                61 libavfilter/vf_qp.c     ret = av_expr_parse(&e, s->qp_expr_str, var_names, NULL, NULL, NULL, NULL, 0, ctx);
ctx                89 libavfilter/vf_qp.c     AVFilterContext *ctx = inlink->dst;
ctx                90 libavfilter/vf_qp.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                91 libavfilter/vf_qp.c     QPContext *s = ctx->priv;
ctx                97 libavfilter/vf_qp.c     if (!s->qp_expr_str || ctx->is_disabled)
ctx               129 libavfilter/vf_qp.c                                             NULL, NULL, NULL, NULL, 0, 0, ctx);
ctx                54 libavfilter/vf_random.c static av_cold int init(AVFilterContext *ctx)
ctx                56 libavfilter/vf_random.c     RandomContext *s = ctx->priv;
ctx                69 libavfilter/vf_random.c     AVFilterContext *ctx = inlink->dst;
ctx                70 libavfilter/vf_random.c     RandomContext *s = ctx->priv;
ctx                71 libavfilter/vf_random.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                94 libavfilter/vf_random.c     AVFilterContext *ctx = outlink->src;
ctx                95 libavfilter/vf_random.c     RandomContext *s = ctx->priv;
ctx                98 libavfilter/vf_random.c     ret = ff_request_frame(ctx->inputs[0]);
ctx               101 libavfilter/vf_random.c     if (ret == AVERROR_EOF && !ctx->is_disabled && s->nb_frames > 0) {
ctx               116 libavfilter/vf_random.c static av_cold void uninit(AVFilterContext *ctx)
ctx               118 libavfilter/vf_random.c     RandomContext *s = ctx->priv;
ctx                90 libavfilter/vf_readeia608.c static int query_formats(AVFilterContext *ctx)
ctx               105 libavfilter/vf_readeia608.c     return ff_set_common_formats(ctx, formats);
ctx               110 libavfilter/vf_readeia608.c     AVFilterContext *ctx = inlink->dst;
ctx               111 libavfilter/vf_readeia608.c     ReadEIA608Context *s = ctx->priv;
ctx               115 libavfilter/vf_readeia608.c         av_log(ctx, AV_LOG_WARNING, "Last line to scan too large, clipping.\n");
ctx               120 libavfilter/vf_readeia608.c         av_log(ctx, AV_LOG_ERROR, "Invalid range.\n");
ctx               267 libavfilter/vf_readeia608.c static void dump_code(AVFilterContext *ctx, int len, int item)
ctx               269 libavfilter/vf_readeia608.c     ReadEIA608Context *s = ctx->priv;
ctx               271 libavfilter/vf_readeia608.c     av_log(ctx, AV_LOG_DEBUG, "%d:", item);
ctx               273 libavfilter/vf_readeia608.c         av_log(ctx, AV_LOG_DEBUG, " %03d", s->code[i].size);
ctx               275 libavfilter/vf_readeia608.c     av_log(ctx, AV_LOG_DEBUG, "\n");
ctx               278 libavfilter/vf_readeia608.c static void extract_line(AVFilterContext *ctx, AVFrame *in, int w, int nb_line)
ctx               280 libavfilter/vf_readeia608.c     ReadEIA608Context *s = ctx->priv;
ctx               316 libavfilter/vf_readeia608.c     dump_code(ctx, len, nb_line);
ctx               395 libavfilter/vf_readeia608.c     AVFilterContext *ctx  = inlink->dst;
ctx               396 libavfilter/vf_readeia608.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               397 libavfilter/vf_readeia608.c     ReadEIA608Context *s = ctx->priv;
ctx               402 libavfilter/vf_readeia608.c         extract_line(ctx, in, inlink->w, i);
ctx               407 libavfilter/vf_readeia608.c static av_cold void uninit(AVFilterContext *ctx)
ctx               409 libavfilter/vf_readeia608.c     ReadEIA608Context *s = ctx->priv;
ctx                87 libavfilter/vf_readvitc.c static int read_vitc_line( ReadVitcContext *ctx, uint8_t *src, int line_size, int width, int height )
ctx                95 libavfilter/vf_readvitc.c     if (ctx->scan_max >= 0)
ctx                96 libavfilter/vf_readvitc.c         height = FFMIN(height, ctx->scan_max);
ctx               101 libavfilter/vf_readvitc.c         memset(ctx->line_data, 0, LINE_DATA_SIZE);
ctx               106 libavfilter/vf_readvitc.c             while ((x < width) && (scan_line[x] < ctx->threshold_white))
ctx               108 libavfilter/vf_readvitc.c             while ((x < width) && (scan_line[x] > ctx->threshold_black))
ctx               110 libavfilter/vf_readvitc.c             x = FFMAX(x - ((ctx->grp_width+10) / 20), 1);  // step back a half pit
ctx               112 libavfilter/vf_readvitc.c             if ((grp_start_pos + ctx->grp_width) > width)
ctx               115 libavfilter/vf_readvitc.c             if (pit_value < ctx->threshold_white)
ctx               117 libavfilter/vf_readvitc.c             x = grp_start_pos + ((ctx->grp_width) / 10);
ctx               119 libavfilter/vf_readvitc.c             if (pit_value > ctx->threshold_black )
ctx               122 libavfilter/vf_readvitc.c                 x = grp_start_pos + (((pit_index+2)*ctx->grp_width) / 10);
ctx               124 libavfilter/vf_readvitc.c                 if (pit_value > ctx->threshold_gray)
ctx               125 libavfilter/vf_readvitc.c                     ctx->line_data[grp_index] |= (1 << pit_index);
ctx               129 libavfilter/vf_readvitc.c         if ((grp_index == 9) && (get_vitc_crc(ctx->line_data) == ctx->line_data[8])) {
ctx               158 libavfilter/vf_readvitc.c static av_cold int init(AVFilterContext *ctx)
ctx               160 libavfilter/vf_readvitc.c     ReadVitcContext *s = ctx->priv;
ctx               165 libavfilter/vf_readvitc.c         av_log(ctx, AV_LOG_WARNING, "Black color threshold is higher than white color threshold (%g > %g)\n",
ctx               170 libavfilter/vf_readvitc.c     av_log(ctx, AV_LOG_DEBUG, "threshold_black:%d threshold_white:%d threshold_gray:%d\n",
ctx               178 libavfilter/vf_readvitc.c     AVFilterContext *ctx = inlink->dst;
ctx               179 libavfilter/vf_readvitc.c     ReadVitcContext *s = ctx->priv;
ctx               182 libavfilter/vf_readvitc.c     av_log(ctx, AV_LOG_DEBUG, "w:%d h:%d grp_width:%d scan_max:%d\n",
ctx               187 libavfilter/vf_readvitc.c static int query_formats(AVFilterContext *ctx)
ctx               213 libavfilter/vf_readvitc.c     return ff_set_common_formats(ctx, fmts_list);
ctx               218 libavfilter/vf_readvitc.c     AVFilterContext *ctx = inlink->dst;
ctx               219 libavfilter/vf_readvitc.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               220 libavfilter/vf_readvitc.c     ReadVitcContext *s = ctx->priv;
ctx                62 libavfilter/vf_remap.c     int (*remap_slice)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx                85 libavfilter/vf_remap.c static int query_formats(AVFilterContext *ctx)
ctx                87 libavfilter/vf_remap.c     RemapContext *s = ctx->priv;
ctx               123 libavfilter/vf_remap.c     if ((ret = ff_formats_ref(pix_formats, &ctx->inputs[0]->out_formats)) < 0 ||
ctx               124 libavfilter/vf_remap.c         (ret = ff_formats_ref(map_formats, &ctx->inputs[1]->out_formats)) < 0 ||
ctx               125 libavfilter/vf_remap.c         (ret = ff_formats_ref(map_formats, &ctx->inputs[2]->out_formats)) < 0 ||
ctx               126 libavfilter/vf_remap.c         (ret = ff_formats_ref(pix_formats, &ctx->outputs[0]->in_formats)) < 0)
ctx               145 libavfilter/vf_remap.c static int remap_planar##bits##_##name##_slice(AVFilterContext *ctx, void *arg,             \
ctx               148 libavfilter/vf_remap.c     RemapContext *s = ctx->priv;                                                            \
ctx               196 libavfilter/vf_remap.c static int remap_packed##bits##_##name##_slice(AVFilterContext *ctx, void *arg,             \
ctx               199 libavfilter/vf_remap.c     RemapContext *s = ctx->priv;                                                            \
ctx               241 libavfilter/vf_remap.c     AVFilterContext *ctx = inlink->dst;
ctx               242 libavfilter/vf_remap.c     RemapContext *s = ctx->priv;
ctx               285 libavfilter/vf_remap.c     AVFilterContext *ctx = fs->parent;
ctx               287 libavfilter/vf_remap.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               296 libavfilter/vf_remap.c     if (ctx->is_disabled) {
ctx               315 libavfilter/vf_remap.c         ctx->internal->execute(ctx, s->remap_slice, &td, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx)));
ctx               324 libavfilter/vf_remap.c     AVFilterContext *ctx = outlink->src;
ctx               325 libavfilter/vf_remap.c     RemapContext *s = ctx->priv;
ctx               326 libavfilter/vf_remap.c     AVFilterLink *srclink = ctx->inputs[0];
ctx               327 libavfilter/vf_remap.c     AVFilterLink *xlink = ctx->inputs[1];
ctx               328 libavfilter/vf_remap.c     AVFilterLink *ylink = ctx->inputs[2];
ctx               333 libavfilter/vf_remap.c         av_log(ctx, AV_LOG_ERROR, "Second input link %s parameters "
ctx               336 libavfilter/vf_remap.c                ctx->input_pads[1].name, xlink->w, xlink->h,
ctx               337 libavfilter/vf_remap.c                ctx->input_pads[2].name, ylink->w, ylink->h);
ctx               346 libavfilter/vf_remap.c     ret = ff_framesync_init(&s->fs, ctx, 3);
ctx               372 libavfilter/vf_remap.c static int activate(AVFilterContext *ctx)
ctx               374 libavfilter/vf_remap.c     RemapContext *s = ctx->priv;
ctx               378 libavfilter/vf_remap.c static av_cold void uninit(AVFilterContext *ctx)
ctx               380 libavfilter/vf_remap.c     RemapContext *s = ctx->priv;
ctx                47 libavfilter/vf_removegrain.c static int query_formats(AVFilterContext *ctx)
ctx                63 libavfilter/vf_removegrain.c     return ff_set_common_formats(ctx, fmts_list);
ctx               523 libavfilter/vf_removegrain.c static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               525 libavfilter/vf_removegrain.c     RemoveGrainContext *s = ctx->priv;
ctx               593 libavfilter/vf_removegrain.c     AVFilterContext *ctx = inlink->dst;
ctx               594 libavfilter/vf_removegrain.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               595 libavfilter/vf_removegrain.c     RemoveGrainContext *s = ctx->priv;
ctx               621 libavfilter/vf_removegrain.c         ctx->internal->execute(ctx, filter_slice, &td, NULL,
ctx               622 libavfilter/vf_removegrain.c                                FFMIN(s->planeheight[i], ff_filter_get_nb_threads(ctx)));
ctx               206 libavfilter/vf_removelogo.c static int query_formats(AVFilterContext *ctx)
ctx               212 libavfilter/vf_removelogo.c     return ff_set_common_formats(ctx, fmts_list);
ctx               282 libavfilter/vf_removelogo.c static av_cold int init(AVFilterContext *ctx)
ctx               284 libavfilter/vf_removelogo.c     RemovelogoContext *s = ctx->priv;
ctx               291 libavfilter/vf_removelogo.c         av_log(ctx, AV_LOG_ERROR, "The bitmap file name is mandatory\n");
ctx               296 libavfilter/vf_removelogo.c     if ((ret = load_mask(&s->full_mask_data, &w, &h, s->filename, ctx)) < 0)
ctx               349 libavfilter/vf_removelogo.c     av_log(ctx, AV_LOG_VERBOSE, #mask_type " x1:%d x2:%d y1:%d y2:%d max_mask_size:%d\n", \
ctx               361 libavfilter/vf_removelogo.c     AVFilterContext *ctx = inlink->dst;
ctx               362 libavfilter/vf_removelogo.c     RemovelogoContext *s = ctx->priv;
ctx               365 libavfilter/vf_removelogo.c         av_log(ctx, AV_LOG_INFO,
ctx               536 libavfilter/vf_removelogo.c static av_cold void uninit(AVFilterContext *ctx)
ctx               538 libavfilter/vf_removelogo.c     RemovelogoContext *s = ctx->priv;
ctx                34 libavfilter/vf_repeatfields.c static av_cold void uninit(AVFilterContext *ctx)
ctx                36 libavfilter/vf_repeatfields.c     RepeatFieldsContext *s = ctx->priv;
ctx                41 libavfilter/vf_repeatfields.c static int query_formats(AVFilterContext *ctx)
ctx                56 libavfilter/vf_repeatfields.c     return ff_set_common_formats(ctx, fmts_list);
ctx                87 libavfilter/vf_repeatfields.c     AVFilterContext *ctx = inlink->dst;
ctx                89 libavfilter/vf_repeatfields.c     RepeatFieldsContext *s = ctx->priv;
ctx               105 libavfilter/vf_repeatfields.c         av_log(ctx, AV_LOG_WARNING, "Unexpected field flags: "
ctx               114 libavfilter/vf_rotate.c static av_cold int init(AVFilterContext *ctx)
ctx               116 libavfilter/vf_rotate.c     RotContext *rot = ctx->priv;
ctx               120 libavfilter/vf_rotate.c     else if (av_parse_color(rot->fillcolor, rot->fillcolor_str, -1, ctx) >= 0)
ctx               127 libavfilter/vf_rotate.c static av_cold void uninit(AVFilterContext *ctx)
ctx               129 libavfilter/vf_rotate.c     RotContext *rot = ctx->priv;
ctx               135 libavfilter/vf_rotate.c static int query_formats(AVFilterContext *ctx)
ctx               163 libavfilter/vf_rotate.c     return ff_set_common_formats(ctx, fmts_list);
ctx               291 libavfilter/vf_rotate.c     AVFilterContext *ctx = outlink->src;
ctx               292 libavfilter/vf_rotate.c     RotContext *rot = ctx->priv;
ctx               293 libavfilter/vf_rotate.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               322 libavfilter/vf_rotate.c                              func1_names, func1, NULL, NULL, 0, ctx)) < 0) {
ctx               323 libavfilter/vf_rotate.c         av_log(ctx, AV_LOG_ERROR,
ctx               331 libavfilter/vf_rotate.c                                  func1_names, func1, NULL, NULL, rot, 0, ctx);     \
ctx               333 libavfilter/vf_rotate.c         av_log(ctx, AV_LOG_ERROR,                                                  \
ctx               343 libavfilter/vf_rotate.c                            func1_names, func1, NULL, NULL, rot, 0, ctx);
ctx               420 libavfilter/vf_rotate.c static int filter_slice(AVFilterContext *ctx, void *arg, int job, int nb_jobs)
ctx               425 libavfilter/vf_rotate.c     RotContext *rot = ctx->priv;
ctx               512 libavfilter/vf_rotate.c     AVFilterContext *ctx = inlink->dst;
ctx               513 libavfilter/vf_rotate.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               515 libavfilter/vf_rotate.c     RotContext *rot = ctx->priv;
ctx               530 libavfilter/vf_rotate.c     av_log(ctx, AV_LOG_DEBUG, "n:%f time:%f angle:%f/PI\n",
ctx               557 libavfilter/vf_rotate.c         ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(outh, ff_filter_get_nb_threads(ctx)));
ctx               564 libavfilter/vf_rotate.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               567 libavfilter/vf_rotate.c     RotContext *rot = ctx->priv;
ctx               573 libavfilter/vf_rotate.c                             NULL, NULL, NULL, NULL, 0, ctx);
ctx               575 libavfilter/vf_rotate.c             av_log(ctx, AV_LOG_ERROR,
ctx                58 libavfilter/vf_sab.c static int query_formats(AVFilterContext *ctx)
ctx                71 libavfilter/vf_sab.c     return ff_set_common_formats(ctx, fmts_list);
ctx               108 libavfilter/vf_sab.c static av_cold int init(AVFilterContext *ctx)
ctx               110 libavfilter/vf_sab.c     SabContext *s = ctx->priv;
ctx               123 libavfilter/vf_sab.c     av_log(ctx, AV_LOG_VERBOSE,
ctx               141 libavfilter/vf_sab.c static av_cold void uninit(AVFilterContext *ctx)
ctx               143 libavfilter/vf_sab.c     SabContext *s = ctx->priv;
ctx               162 libavfilter/vf_scale.c static int check_exprs(AVFilterContext *ctx)
ctx               164 libavfilter/vf_scale.c     ScaleContext *scale = ctx->priv;
ctx               176 libavfilter/vf_scale.c         av_log(ctx, AV_LOG_ERROR, "Width expression cannot be self-referencing: '%s'.\n", scale->w_expr);
ctx               181 libavfilter/vf_scale.c         av_log(ctx, AV_LOG_ERROR, "Height expression cannot be self-referencing: '%s'.\n", scale->h_expr);
ctx               187 libavfilter/vf_scale.c         av_log(ctx, AV_LOG_WARNING, "Circular references detected for width '%s' and height '%s' - possibly invalid.\n", scale->w_expr, scale->h_expr);
ctx               190 libavfilter/vf_scale.c     if (ctx->filter != &ff_vf_scale2ref &&
ctx               202 libavfilter/vf_scale.c         av_log(ctx, AV_LOG_ERROR, "Expressions with scale2ref variables are not valid in scale filter.\n");
ctx               213 libavfilter/vf_scale.c         av_log(ctx, AV_LOG_ERROR, "Expressions with frame variables 'n', 't', 'pos' are not valid in init eval_mode.\n");
ctx               220 libavfilter/vf_scale.c static int scale_parse_expr(AVFilterContext *ctx, char *str_expr, AVExpr **pexpr_ptr, const char *var, const char *args)
ctx               222 libavfilter/vf_scale.c     ScaleContext *scale = ctx->priv;
ctx               241 libavfilter/vf_scale.c                         NULL, NULL, NULL, NULL, 0, ctx);
ctx               243 libavfilter/vf_scale.c         av_log(ctx, AV_LOG_ERROR, "Cannot parse expression for %s: '%s'\n", var, args);
ctx               247 libavfilter/vf_scale.c     ret = check_exprs(ctx);
ctx               251 libavfilter/vf_scale.c     if (is_inited && (ret = config_props(ctx->outputs[0])) < 0)
ctx               273 libavfilter/vf_scale.c static av_cold int init_dict(AVFilterContext *ctx, AVDictionary **opts)
ctx               275 libavfilter/vf_scale.c     ScaleContext *scale = ctx->priv;
ctx               279 libavfilter/vf_scale.c         av_log(ctx, AV_LOG_ERROR,
ctx               290 libavfilter/vf_scale.c             av_log(ctx, AV_LOG_ERROR,
ctx               304 libavfilter/vf_scale.c     ret = scale_parse_expr(ctx, NULL, &scale->w_pexpr, "width", scale->w_expr);
ctx               308 libavfilter/vf_scale.c     ret = scale_parse_expr(ctx, NULL, &scale->h_pexpr, "height", scale->h_expr);
ctx               312 libavfilter/vf_scale.c     av_log(ctx, AV_LOG_VERBOSE, "w:%s h:%s flags:'%s' interl:%d\n",
ctx               331 libavfilter/vf_scale.c static av_cold void uninit(AVFilterContext *ctx)
ctx               333 libavfilter/vf_scale.c     ScaleContext *scale = ctx->priv;
ctx               344 libavfilter/vf_scale.c static int query_formats(AVFilterContext *ctx)
ctx               350 libavfilter/vf_scale.c     if (ctx->inputs[0]) {
ctx               361 libavfilter/vf_scale.c         if ((ret = ff_formats_ref(formats, &ctx->inputs[0]->out_formats)) < 0)
ctx               364 libavfilter/vf_scale.c     if (ctx->outputs[0]) {
ctx               375 libavfilter/vf_scale.c         if ((ret = ff_formats_ref(formats, &ctx->outputs[0]->in_formats)) < 0)
ctx               406 libavfilter/vf_scale.c static int scale_eval_dimensions(AVFilterContext *ctx)
ctx               408 libavfilter/vf_scale.c     ScaleContext *scale = ctx->priv;
ctx               409 libavfilter/vf_scale.c     const char scale2ref = ctx->filter == &ff_vf_scale2ref;
ctx               410 libavfilter/vf_scale.c     const AVFilterLink *inlink = scale2ref ? ctx->inputs[1] : ctx->inputs[0];
ctx               411 libavfilter/vf_scale.c     const AVFilterLink *outlink = ctx->outputs[0];
ctx               422 libavfilter/vf_scale.c         main_link = ctx->inputs[0];
ctx               476 libavfilter/vf_scale.c     av_log(ctx, AV_LOG_ERROR,
ctx               483 libavfilter/vf_scale.c     AVFilterContext *ctx = outlink->src;
ctx               485 libavfilter/vf_scale.c     AVFilterLink *inlink  = ctx->filter == &ff_vf_scale2ref ?
ctx               490 libavfilter/vf_scale.c     ScaleContext *scale = ctx->priv;
ctx               493 libavfilter/vf_scale.c     if ((ret = scale_eval_dimensions(ctx)) < 0)
ctx               504 libavfilter/vf_scale.c         av_log(ctx, AV_LOG_ERROR, "Rescaled value for width or height is too big.\n");
ctx               591 libavfilter/vf_scale.c     av_log(ctx, AV_LOG_VERBOSE, "w:%d h:%d fmt:%s sar:%d/%d -> w:%d h:%d fmt:%s sar:%d/%d flags:0x%0x\n",
ctx               654 libavfilter/vf_scale.c     AVFilterContext *ctx = link->dst;
ctx               655 libavfilter/vf_scale.c     ScaleContext *scale = ctx->priv;
ctx               656 libavfilter/vf_scale.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               682 libavfilter/vf_scale.c             ctx->filter != &ff_vf_scale2ref &&
ctx               694 libavfilter/vf_scale.c             ret = scale_parse_expr(ctx, NULL, &scale->w_pexpr, "width", scale->w_expr);
ctx               698 libavfilter/vf_scale.c             ret = scale_parse_expr(ctx, NULL, &scale->h_pexpr, "height", scale->h_expr);
ctx               703 libavfilter/vf_scale.c         if (ctx->filter == &ff_vf_scale2ref) {
ctx               817 libavfilter/vf_scale.c     AVFilterContext *ctx = link->dst;
ctx               818 libavfilter/vf_scale.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               860 libavfilter/vf_scale.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               863 libavfilter/vf_scale.c     ScaleContext *scale = ctx->priv;
ctx               875 libavfilter/vf_scale.c         ret = scale_parse_expr(ctx, str_expr, pexpr_ptr, cmd, args);
ctx               880 libavfilter/vf_scale.c         av_log(ctx, AV_LOG_ERROR, "Failed to process command. Continuing with existing parameters.\n");
ctx                56 libavfilter/vf_scale_cuda.c #define CHECK_CU(x) FF_CUDA_CHECK_DL(ctx, s->hwctx->internal->cuda_dl, x)
ctx               103 libavfilter/vf_scale_cuda.c static av_cold int cudascale_init(AVFilterContext *ctx)
ctx               105 libavfilter/vf_scale_cuda.c     CUDAScaleContext *s = ctx->priv;
ctx               119 libavfilter/vf_scale_cuda.c static av_cold void cudascale_uninit(AVFilterContext *ctx)
ctx               121 libavfilter/vf_scale_cuda.c     CUDAScaleContext *s = ctx->priv;
ctx               128 libavfilter/vf_scale_cuda.c static int cudascale_query_formats(AVFilterContext *ctx)
ctx               135 libavfilter/vf_scale_cuda.c     return ff_set_common_formats(ctx, pix_fmts);
ctx               200 libavfilter/vf_scale_cuda.c static av_cold int init_processing_chain(AVFilterContext *ctx, int in_width, int in_height,
ctx               203 libavfilter/vf_scale_cuda.c     CUDAScaleContext *s = ctx->priv;
ctx               212 libavfilter/vf_scale_cuda.c     if (!ctx->inputs[0]->hw_frames_ctx) {
ctx               213 libavfilter/vf_scale_cuda.c         av_log(ctx, AV_LOG_ERROR, "No hw context provided on input\n");
ctx               216 libavfilter/vf_scale_cuda.c     in_frames_ctx = (AVHWFramesContext*)ctx->inputs[0]->hw_frames_ctx->data;
ctx               221 libavfilter/vf_scale_cuda.c         av_log(ctx, AV_LOG_ERROR, "Unsupported input format: %s\n",
ctx               226 libavfilter/vf_scale_cuda.c         av_log(ctx, AV_LOG_ERROR, "Unsupported output format: %s\n",
ctx               246 libavfilter/vf_scale_cuda.c     ctx->outputs[0]->hw_frames_ctx = av_buffer_ref(s->frames_ctx);
ctx               247 libavfilter/vf_scale_cuda.c     if (!ctx->outputs[0]->hw_frames_ctx)
ctx               255 libavfilter/vf_scale_cuda.c     AVFilterContext *ctx = outlink->src;
ctx               257 libavfilter/vf_scale_cuda.c     CUDAScaleContext *s  = ctx->priv;
ctx               316 libavfilter/vf_scale_cuda.c         av_log(ctx, AV_LOG_ERROR, "Rescaled value for width or height is too big.\n");
ctx               321 libavfilter/vf_scale_cuda.c     ret = init_processing_chain(ctx, inlink->w, inlink->h, w, h);
ctx               325 libavfilter/vf_scale_cuda.c     av_log(ctx, AV_LOG_VERBOSE, "w:%d h:%d -> w:%d h:%d\n",
ctx               342 libavfilter/vf_scale_cuda.c static int call_resize_kernel(AVFilterContext *ctx, CUfunction func, int channels,
ctx               347 libavfilter/vf_scale_cuda.c     CUDAScaleContext *s = ctx->priv;
ctx               386 libavfilter/vf_scale_cuda.c static int scalecuda_resize(AVFilterContext *ctx,
ctx               390 libavfilter/vf_scale_cuda.c     CUDAScaleContext *s = ctx->priv;
ctx               394 libavfilter/vf_scale_cuda.c         call_resize_kernel(ctx, s->cu_func_uchar, 1,
ctx               398 libavfilter/vf_scale_cuda.c         call_resize_kernel(ctx, s->cu_func_uchar, 1,
ctx               402 libavfilter/vf_scale_cuda.c         call_resize_kernel(ctx, s->cu_func_uchar, 1,
ctx               408 libavfilter/vf_scale_cuda.c         call_resize_kernel(ctx, s->cu_func_uchar, 1,
ctx               412 libavfilter/vf_scale_cuda.c         call_resize_kernel(ctx, s->cu_func_uchar, 1,
ctx               416 libavfilter/vf_scale_cuda.c         call_resize_kernel(ctx, s->cu_func_uchar, 1,
ctx               422 libavfilter/vf_scale_cuda.c         call_resize_kernel(ctx, s->cu_func_ushort, 1,
ctx               426 libavfilter/vf_scale_cuda.c         call_resize_kernel(ctx, s->cu_func_ushort, 1,
ctx               430 libavfilter/vf_scale_cuda.c         call_resize_kernel(ctx, s->cu_func_ushort, 1,
ctx               436 libavfilter/vf_scale_cuda.c         call_resize_kernel(ctx, s->cu_func_uchar, 1,
ctx               440 libavfilter/vf_scale_cuda.c         call_resize_kernel(ctx, s->cu_func_uchar2, 2,
ctx               446 libavfilter/vf_scale_cuda.c         call_resize_kernel(ctx, s->cu_func_ushort, 1,
ctx               450 libavfilter/vf_scale_cuda.c         call_resize_kernel(ctx, s->cu_func_ushort2, 2,
ctx               456 libavfilter/vf_scale_cuda.c         call_resize_kernel(ctx, s->cu_func_ushort, 1,
ctx               460 libavfilter/vf_scale_cuda.c         call_resize_kernel(ctx, s->cu_func_ushort2, 2,
ctx               472 libavfilter/vf_scale_cuda.c static int cudascale_scale(AVFilterContext *ctx, AVFrame *out, AVFrame *in)
ctx               474 libavfilter/vf_scale_cuda.c     CUDAScaleContext *s = ctx->priv;
ctx               478 libavfilter/vf_scale_cuda.c     ret = scalecuda_resize(ctx, s->frame, src);
ctx               502 libavfilter/vf_scale_cuda.c     AVFilterContext       *ctx = link->dst;
ctx               503 libavfilter/vf_scale_cuda.c     CUDAScaleContext        *s = ctx->priv;
ctx               504 libavfilter/vf_scale_cuda.c     AVFilterLink      *outlink = ctx->outputs[0];
ctx               521 libavfilter/vf_scale_cuda.c     ret = cudascale_scale(ctx, out, in);
ctx                43 libavfilter/vf_scale_npp.c #define CHECK_CU(x) FF_CUDA_CHECK_DL(ctx, device_hwctx->internal->cuda_dl, x)
ctx               107 libavfilter/vf_scale_npp.c static int nppscale_init(AVFilterContext *ctx)
ctx               109 libavfilter/vf_scale_npp.c     NPPScaleContext *s = ctx->priv;
ctx               117 libavfilter/vf_scale_npp.c             av_log(ctx, AV_LOG_ERROR, "Unrecognized pixel format: %s\n", s->format_str);
ctx               134 libavfilter/vf_scale_npp.c static void nppscale_uninit(AVFilterContext *ctx)
ctx               136 libavfilter/vf_scale_npp.c     NPPScaleContext *s = ctx->priv;
ctx               146 libavfilter/vf_scale_npp.c static int nppscale_query_formats(AVFilterContext *ctx)
ctx               153 libavfilter/vf_scale_npp.c     return ff_set_common_formats(ctx, pix_fmts);
ctx               232 libavfilter/vf_scale_npp.c static int init_processing_chain(AVFilterContext *ctx, int in_width, int in_height,
ctx               235 libavfilter/vf_scale_npp.c     NPPScaleContext *s = ctx->priv;
ctx               247 libavfilter/vf_scale_npp.c     if (!ctx->inputs[0]->hw_frames_ctx) {
ctx               248 libavfilter/vf_scale_npp.c         av_log(ctx, AV_LOG_ERROR, "No hw context provided on input\n");
ctx               251 libavfilter/vf_scale_npp.c     in_frames_ctx = (AVHWFramesContext*)ctx->inputs[0]->hw_frames_ctx->data;
ctx               256 libavfilter/vf_scale_npp.c         av_log(ctx, AV_LOG_ERROR, "Unsupported input format: %s\n",
ctx               261 libavfilter/vf_scale_npp.c         av_log(ctx, AV_LOG_ERROR, "Unsupported output format: %s\n",
ctx               280 libavfilter/vf_scale_npp.c             av_log(ctx, AV_LOG_WARNING, "super-sampling not supported for output dimensions, using lanczos instead.\n");
ctx               285 libavfilter/vf_scale_npp.c             av_log(ctx, AV_LOG_WARNING, "super-sampling not supported for output dimensions, using cubic instead.\n");
ctx               329 libavfilter/vf_scale_npp.c         ctx->outputs[0]->hw_frames_ctx = av_buffer_ref(s->stages[last_stage].frames_ctx);
ctx               331 libavfilter/vf_scale_npp.c         ctx->outputs[0]->hw_frames_ctx = av_buffer_ref(ctx->inputs[0]->hw_frames_ctx);
ctx               333 libavfilter/vf_scale_npp.c     if (!ctx->outputs[0]->hw_frames_ctx)
ctx               341 libavfilter/vf_scale_npp.c     AVFilterContext *ctx = outlink->src;
ctx               343 libavfilter/vf_scale_npp.c     NPPScaleContext *s = ctx->priv;
ctx               358 libavfilter/vf_scale_npp.c         av_log(ctx, AV_LOG_ERROR, "Rescaled value for width or height is too big.\n");
ctx               363 libavfilter/vf_scale_npp.c     ret = init_processing_chain(ctx, inlink->w, inlink->h, w, h);
ctx               367 libavfilter/vf_scale_npp.c     av_log(ctx, AV_LOG_VERBOSE, "w:%d h:%d -> w:%d h:%d\n",
ctx               383 libavfilter/vf_scale_npp.c static int nppscale_deinterleave(AVFilterContext *ctx, NPPScaleStageContext *stage,
ctx               400 libavfilter/vf_scale_npp.c         av_log(ctx, AV_LOG_ERROR, "NPP deinterleave error: %d\n", err);
ctx               407 libavfilter/vf_scale_npp.c static int nppscale_resize(AVFilterContext *ctx, NPPScaleStageContext *stage,
ctx               410 libavfilter/vf_scale_npp.c     NPPScaleContext *s = ctx->priv;
ctx               427 libavfilter/vf_scale_npp.c             av_log(ctx, AV_LOG_ERROR, "NPP resize error: %d\n", err);
ctx               435 libavfilter/vf_scale_npp.c static int nppscale_interleave(AVFilterContext *ctx, NPPScaleStageContext *stage,
ctx               453 libavfilter/vf_scale_npp.c         av_log(ctx, AV_LOG_ERROR, "NPP deinterleave error: %d\n", err);
ctx               460 libavfilter/vf_scale_npp.c static int (*const nppscale_process[])(AVFilterContext *ctx, NPPScaleStageContext *stage,
ctx               467 libavfilter/vf_scale_npp.c static int nppscale_scale(AVFilterContext *ctx, AVFrame *out, AVFrame *in)
ctx               469 libavfilter/vf_scale_npp.c     NPPScaleContext *s = ctx->priv;
ctx               477 libavfilter/vf_scale_npp.c         ret = nppscale_process[i](ctx, &s->stages[i], s->stages[i].frame, src);
ctx               503 libavfilter/vf_scale_npp.c     AVFilterContext              *ctx = link->dst;
ctx               504 libavfilter/vf_scale_npp.c     NPPScaleContext                *s = ctx->priv;
ctx               505 libavfilter/vf_scale_npp.c     AVFilterLink             *outlink = ctx->outputs[0];
ctx               526 libavfilter/vf_scale_npp.c     ret = nppscale_scale(ctx, out, in);
ctx               121 libavfilter/vf_scale_qsv.c static av_cold int qsvscale_init(AVFilterContext *ctx)
ctx               123 libavfilter/vf_scale_qsv.c     QSVScaleContext *s = ctx->priv;
ctx               130 libavfilter/vf_scale_qsv.c             av_log(ctx, AV_LOG_ERROR, "Unrecognized pixel format: %s\n", s->format_str);
ctx               138 libavfilter/vf_scale_qsv.c static av_cold void qsvscale_uninit(AVFilterContext *ctx)
ctx               140 libavfilter/vf_scale_qsv.c     QSVScaleContext *s = ctx->priv;
ctx               158 libavfilter/vf_scale_qsv.c static int qsvscale_query_formats(AVFilterContext *ctx)
ctx               166 libavfilter/vf_scale_qsv.c     if ((ret = ff_set_common_formats(ctx, pix_fmts)) < 0)
ctx               172 libavfilter/vf_scale_qsv.c static int init_out_pool(AVFilterContext *ctx,
ctx               175 libavfilter/vf_scale_qsv.c     QSVScaleContext *s = ctx->priv;
ctx               176 libavfilter/vf_scale_qsv.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               187 libavfilter/vf_scale_qsv.c     if (!ctx->inputs[0]->hw_frames_ctx) {
ctx               188 libavfilter/vf_scale_qsv.c         av_log(ctx, AV_LOG_ERROR, "No hw context provided on input\n");
ctx               191 libavfilter/vf_scale_qsv.c     in_frames_ctx   = (AVHWFramesContext*)ctx->inputs[0]->hw_frames_ctx->data;
ctx               211 libavfilter/vf_scale_qsv.c     ret = ff_filter_init_hw_frames(ctx, outlink, 32);
ctx               231 libavfilter/vf_scale_qsv.c     AVFilterContext *ctx = pthis;
ctx               232 libavfilter/vf_scale_qsv.c     QSVScaleContext   *s = ctx->priv;
ctx               277 libavfilter/vf_scale_qsv.c static int init_out_session(AVFilterContext *ctx)
ctx               280 libavfilter/vf_scale_qsv.c     QSVScaleContext                   *s = ctx->priv;
ctx               281 libavfilter/vf_scale_qsv.c     AVHWFramesContext     *in_frames_ctx = (AVHWFramesContext*)ctx->inputs[0]->hw_frames_ctx->data;
ctx               282 libavfilter/vf_scale_qsv.c     AVHWFramesContext    *out_frames_ctx = (AVHWFramesContext*)ctx->outputs[0]->hw_frames_ctx->data;
ctx               304 libavfilter/vf_scale_qsv.c         av_log(ctx, AV_LOG_ERROR, "Error querying the session attributes\n");
ctx               317 libavfilter/vf_scale_qsv.c         av_log(ctx, AV_LOG_ERROR, "Error getting the session handle\n");
ctx               325 libavfilter/vf_scale_qsv.c         av_log(ctx, AV_LOG_ERROR, "Error initializing a session for scaling\n");
ctx               376 libavfilter/vf_scale_qsv.c             .pthis  = ctx,
ctx               413 libavfilter/vf_scale_qsv.c     av_log(ctx, AV_LOG_VERBOSE, "Scaling mode: %d\n", s->mode);
ctx               435 libavfilter/vf_scale_qsv.c         av_log(ctx, AV_LOG_ERROR, "Error opening the VPP for scaling\n");
ctx               442 libavfilter/vf_scale_qsv.c static int init_scale_session(AVFilterContext *ctx, int in_width, int in_height,
ctx               447 libavfilter/vf_scale_qsv.c     qsvscale_uninit(ctx);
ctx               449 libavfilter/vf_scale_qsv.c     ret = init_out_pool(ctx, out_width, out_height);
ctx               453 libavfilter/vf_scale_qsv.c     ret = init_out_session(ctx);
ctx               462 libavfilter/vf_scale_qsv.c     AVFilterContext *ctx = outlink->src;
ctx               464 libavfilter/vf_scale_qsv.c     QSVScaleContext  *s = ctx->priv;
ctx               485 libavfilter/vf_scale_qsv.c                            NULL, NULL, NULL, NULL, NULL, 0, ctx);
ctx               489 libavfilter/vf_scale_qsv.c                                       NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               495 libavfilter/vf_scale_qsv.c                                       NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               504 libavfilter/vf_scale_qsv.c         av_log(ctx, AV_LOG_ERROR, "Size values less than -1 are not acceptable.\n");
ctx               522 libavfilter/vf_scale_qsv.c         av_log(ctx, AV_LOG_ERROR, "Rescaled value for width or height is too big.\n");
ctx               527 libavfilter/vf_scale_qsv.c     ret = init_scale_session(ctx, inlink->w, inlink->h, w, h);
ctx               531 libavfilter/vf_scale_qsv.c     av_log(ctx, AV_LOG_VERBOSE, "w:%d h:%d -> w:%d h:%d\n",
ctx               544 libavfilter/vf_scale_qsv.c     av_log(ctx, AV_LOG_ERROR,
ctx               551 libavfilter/vf_scale_qsv.c     AVFilterContext             *ctx = link->dst;
ctx               552 libavfilter/vf_scale_qsv.c     QSVScaleContext               *s = ctx->priv;
ctx               553 libavfilter/vf_scale_qsv.c     AVFilterLink            *outlink = ctx->outputs[0];
ctx               577 libavfilter/vf_scale_qsv.c         av_log(ctx, AV_LOG_ERROR, "Error during scaling\n");
ctx               586 libavfilter/vf_scale_qsv.c         av_log(ctx, AV_LOG_ERROR, "Error synchronizing the operation: %d\n", err);
ctx                78 libavfilter/vf_scale_vaapi.c     ScaleVAAPIContext *ctx   = avctx->priv;
ctx                81 libavfilter/vf_scale_vaapi.c     if ((err = ff_scale_eval_dimensions(ctx,
ctx                82 libavfilter/vf_scale_vaapi.c                                         ctx->w_expr, ctx->h_expr,
ctx                88 libavfilter/vf_scale_vaapi.c                                ctx->force_original_aspect_ratio, ctx->force_divisible_by);
ctx               107 libavfilter/vf_scale_vaapi.c     ScaleVAAPIContext *ctx   = avctx->priv;
ctx               130 libavfilter/vf_scale_vaapi.c     if (ctx->colour_primaries != AVCOL_PRI_UNSPECIFIED)
ctx               131 libavfilter/vf_scale_vaapi.c         output_frame->color_primaries = ctx->colour_primaries;
ctx               132 libavfilter/vf_scale_vaapi.c     if (ctx->colour_transfer != AVCOL_TRC_UNSPECIFIED)
ctx               133 libavfilter/vf_scale_vaapi.c         output_frame->color_trc = ctx->colour_transfer;
ctx               134 libavfilter/vf_scale_vaapi.c     if (ctx->colour_matrix != AVCOL_SPC_UNSPECIFIED)
ctx               135 libavfilter/vf_scale_vaapi.c         output_frame->colorspace = ctx->colour_matrix;
ctx               136 libavfilter/vf_scale_vaapi.c     if (ctx->colour_range != AVCOL_RANGE_UNSPECIFIED)
ctx               137 libavfilter/vf_scale_vaapi.c         output_frame->color_range = ctx->colour_range;
ctx               138 libavfilter/vf_scale_vaapi.c     if (ctx->chroma_location != AVCHROMA_LOC_UNSPECIFIED)
ctx               139 libavfilter/vf_scale_vaapi.c         output_frame->chroma_location = ctx->chroma_location;
ctx               146 libavfilter/vf_scale_vaapi.c     params.filter_flags |= ctx->mode;
ctx               157 libavfilter/vf_scale_vaapi.c            scale_vaapi_mode_name(ctx->mode));
ctx               170 libavfilter/vf_scale_vaapi.c     ScaleVAAPIContext *ctx   = avctx->priv;
ctx               175 libavfilter/vf_scale_vaapi.c     if (ctx->output_format_string) {
ctx               176 libavfilter/vf_scale_vaapi.c         vpp_ctx->output_format = av_get_pix_fmt(ctx->output_format_string);
ctx               187 libavfilter/vf_scale_vaapi.c         if (ctx->var_name ## _string) { \
ctx               188 libavfilter/vf_scale_vaapi.c             int var = av_ ## func_name ## _from_name(ctx->var_name ## _string); \
ctx               193 libavfilter/vf_scale_vaapi.c             ctx->var_name = var; \
ctx               195 libavfilter/vf_scale_vaapi.c             ctx->var_name = default_value; \
ctx               107 libavfilter/vf_scale_vulkan.c static av_cold int init_filter(AVFilterContext *ctx, AVFrame *in)
ctx               112 libavfilter/vf_scale_vulkan.c     ScaleVulkanContext *s = ctx->priv;
ctx               133 libavfilter/vf_scale_vulkan.c     sampler = ff_vk_init_sampler(ctx, 0, sampler_mode);
ctx               137 libavfilter/vf_scale_vulkan.c     s->pl = ff_vk_create_pipeline(ctx);
ctx               174 libavfilter/vf_scale_vulkan.c         SPIRVShader *shd = ff_vk_init_shader(ctx, s->pl, "scale_compute",
ctx               179 libavfilter/vf_scale_vulkan.c         ff_vk_set_compute_shader_sizes(ctx, shd, CGROUPS);
ctx               181 libavfilter/vf_scale_vulkan.c         RET(ff_vk_add_descriptor_set(ctx, s->pl, shd,  desc_i, 2, 0)); /* set 0 */
ctx               182 libavfilter/vf_scale_vulkan.c         RET(ff_vk_add_descriptor_set(ctx, s->pl, shd, &desc_b, 1, 0)); /* set 0 */
ctx               232 libavfilter/vf_scale_vulkan.c         RET(ff_vk_compile_shader(ctx, shd, "main"));
ctx               235 libavfilter/vf_scale_vulkan.c     RET(ff_vk_init_pipeline_layout(ctx, s->pl));
ctx               236 libavfilter/vf_scale_vulkan.c     RET(ff_vk_init_compute_pipeline(ctx, s->pl));
ctx               248 libavfilter/vf_scale_vulkan.c             av_log(ctx, AV_LOG_ERROR, "Unsupported colorspace\n");
ctx               252 libavfilter/vf_scale_vulkan.c         err = ff_vk_create_buf(ctx, &s->params_buf,
ctx               259 libavfilter/vf_scale_vulkan.c         err = ff_vk_map_buffers(ctx, &s->params_buf, (uint8_t **)&par, 1, 0);
ctx               273 libavfilter/vf_scale_vulkan.c         err = ff_vk_unmap_buffers(ctx, &s->params_buf, 1, 1);
ctx               280 libavfilter/vf_scale_vulkan.c         ff_vk_update_descriptor_set(ctx, s->pl, 1);
ctx               284 libavfilter/vf_scale_vulkan.c     RET(ff_vk_create_exec_ctx(ctx, &s->exec));
ctx               397 libavfilter/vf_scale_vulkan.c     AVFilterContext *ctx = link->dst;
ctx               398 libavfilter/vf_scale_vulkan.c     ScaleVulkanContext *s = ctx->priv;
ctx               399 libavfilter/vf_scale_vulkan.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               408 libavfilter/vf_scale_vulkan.c         RET(init_filter(ctx, in));
ctx               410 libavfilter/vf_scale_vulkan.c     RET(process_frames(ctx, out, in));
ctx                63 libavfilter/vf_scdet.c static int query_formats(AVFilterContext *ctx)
ctx                81 libavfilter/vf_scdet.c     return ff_set_common_formats(ctx, fmts_list);
ctx                86 libavfilter/vf_scdet.c     AVFilterContext *ctx = inlink->dst;
ctx                87 libavfilter/vf_scdet.c     SCDetContext *s = ctx->priv;
ctx               109 libavfilter/vf_scdet.c static av_cold void uninit(AVFilterContext *ctx)
ctx               111 libavfilter/vf_scdet.c     SCDetContext *s = ctx->priv;
ctx               116 libavfilter/vf_scdet.c static double get_scene_score(AVFilterContext *ctx, AVFrame *frame)
ctx               119 libavfilter/vf_scdet.c     SCDetContext *s = ctx->priv;
ctx               153 libavfilter/vf_scdet.c static int activate(AVFilterContext *ctx)
ctx               156 libavfilter/vf_scdet.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               157 libavfilter/vf_scdet.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               158 libavfilter/vf_scdet.c     SCDetContext *s = ctx->priv;
ctx               169 libavfilter/vf_scdet.c         s->scene_score = get_scene_score(ctx, frame);
ctx                45 libavfilter/vf_scroll.c static int query_formats(AVFilterContext *ctx)
ctx                72 libavfilter/vf_scroll.c     return ff_set_common_formats(ctx, fmts_list);
ctx                79 libavfilter/vf_scroll.c static int scroll_slice(AVFilterContext *ctx, void *arg, int jobnr,
ctx                82 libavfilter/vf_scroll.c     ScrollContext *s = ctx->priv;
ctx               111 libavfilter/vf_scroll.c static void scroll(AVFilterContext *ctx, AVFrame *in, AVFrame *out)
ctx               113 libavfilter/vf_scroll.c     ScrollContext *s = ctx->priv;
ctx               134 libavfilter/vf_scroll.c     ctx->internal->execute(ctx, scroll_slice, &td, NULL,
ctx               135 libavfilter/vf_scroll.c                            FFMIN(out->height, ff_filter_get_nb_threads(ctx)));
ctx               143 libavfilter/vf_scroll.c     AVFilterContext *ctx = inlink->dst;
ctx               144 libavfilter/vf_scroll.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               154 libavfilter/vf_scroll.c     scroll(ctx, in, out);
ctx               162 libavfilter/vf_scroll.c     AVFilterContext *ctx = inlink->dst;
ctx               163 libavfilter/vf_scroll.c     ScrollContext *s = ctx->priv;
ctx               185 libavfilter/vf_selectivecolor.c static int parse_psfile(AVFilterContext *ctx, const char *fname)
ctx               191 libavfilter/vf_selectivecolor.c     SelectiveColorContext *s = ctx->priv;
ctx               241 libavfilter/vf_selectivecolor.c     AVFilterContext *ctx = inlink->dst;
ctx               242 libavfilter/vf_selectivecolor.c     SelectiveColorContext *s = ctx->priv;
ctx               258 libavfilter/vf_selectivecolor.c         ret = parse_psfile(ctx, s->psfile);
ctx               288 libavfilter/vf_selectivecolor.c static int query_formats(AVFilterContext *ctx)
ctx               303 libavfilter/vf_selectivecolor.c     return ff_set_common_formats(ctx, fmts_list);
ctx               317 libavfilter/vf_selectivecolor.c static inline int selective_color_##nbits(AVFilterContext *ctx, ThreadData *td,                         \
ctx               323 libavfilter/vf_selectivecolor.c     const SelectiveColorContext *s = ctx->priv;                                                         \
ctx               397 libavfilter/vf_selectivecolor.c static int selective_color_##name##_##nbits(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)    \
ctx               399 libavfilter/vf_selectivecolor.c     return selective_color_##nbits(ctx, arg, jobnr, nb_jobs, direct, correction_method);                \
ctx               412 libavfilter/vf_selectivecolor.c typedef int (*selective_color_func_type)(AVFilterContext *ctx, void *td, int jobnr, int nb_jobs);
ctx               416 libavfilter/vf_selectivecolor.c     AVFilterContext *ctx = inlink->dst;
ctx               417 libavfilter/vf_selectivecolor.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               421 libavfilter/vf_selectivecolor.c     const SelectiveColorContext *s = ctx->priv;
ctx               447 libavfilter/vf_selectivecolor.c     ctx->internal->execute(ctx, funcs[s->is_16bit][direct][s->correction_method],
ctx               448 libavfilter/vf_selectivecolor.c                            &td, NULL, FFMIN(inlink->h, ff_filter_get_nb_threads(ctx)));
ctx                33 libavfilter/vf_separatefields.c     AVFilterContext *ctx = outlink->src;
ctx                34 libavfilter/vf_separatefields.c     SeparateFieldsContext *s = ctx->priv;
ctx                35 libavfilter/vf_separatefields.c     AVFilterLink *inlink = ctx->inputs[0];
ctx                40 libavfilter/vf_separatefields.c         av_log(ctx, AV_LOG_ERROR, "height must be even\n");
ctx                67 libavfilter/vf_separatefields.c     AVFilterContext *ctx = inlink->dst;
ctx                68 libavfilter/vf_separatefields.c     SeparateFieldsContext *s = ctx->priv;
ctx                69 libavfilter/vf_separatefields.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               107 libavfilter/vf_separatefields.c     AVFilterContext *ctx = outlink->src;
ctx               108 libavfilter/vf_separatefields.c     SeparateFieldsContext *s = ctx->priv;
ctx               121 libavfilter/vf_separatefields.c static int activate(AVFilterContext *ctx)
ctx               123 libavfilter/vf_separatefields.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               124 libavfilter/vf_separatefields.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               152 libavfilter/vf_separatefields.c static av_cold void uninit(AVFilterContext *ctx)
ctx               154 libavfilter/vf_separatefields.c     SeparateFieldsContext *s = ctx->priv;
ctx               123 libavfilter/vf_setparams.c     AVFilterContext *ctx = inlink->dst;
ctx               124 libavfilter/vf_setparams.c     SetParamsContext *s = ctx->priv;
ctx               145 libavfilter/vf_setparams.c     return ff_filter_frame(ctx->outputs[0], frame);
ctx               192 libavfilter/vf_setparams.c static av_cold int init_setrange(AVFilterContext *ctx)
ctx               194 libavfilter/vf_setparams.c     SetParamsContext *s = ctx->priv;
ctx               226 libavfilter/vf_setparams.c static av_cold int init_setfield(AVFilterContext *ctx)
ctx               228 libavfilter/vf_setparams.c     SetParamsContext *s = ctx->priv;
ctx                60 libavfilter/vf_showinfo.c static void dump_spherical(AVFilterContext *ctx, AVFrame *frame, AVFrameSideData *sd)
ctx                65 libavfilter/vf_showinfo.c     av_log(ctx, AV_LOG_INFO, "spherical information: ");
ctx                67 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_ERROR, "invalid data");
ctx                72 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO, "equirectangular ");
ctx                74 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO, "cubemap ");
ctx                76 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO, "tiled equirectangular ");
ctx                78 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_WARNING, "unknown");
ctx                85 libavfilter/vf_showinfo.c     av_log(ctx, AV_LOG_INFO, "(%f/%f/%f) ", yaw, pitch, roll);
ctx                91 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO,
ctx                95 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO, "[pad %"PRIu32"] ", spherical->padding);
ctx                99 libavfilter/vf_showinfo.c static void dump_stereo3d(AVFilterContext *ctx, AVFrameSideData *sd)
ctx               103 libavfilter/vf_showinfo.c     av_log(ctx, AV_LOG_INFO, "stereoscopic information: ");
ctx               105 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_ERROR, "invalid data");
ctx               111 libavfilter/vf_showinfo.c     av_log(ctx, AV_LOG_INFO, "type - %s", av_stereo3d_type_name(stereo->type));
ctx               114 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO, " (inverted)");
ctx               117 libavfilter/vf_showinfo.c static void dump_roi(AVFilterContext *ctx, AVFrameSideData *sd)
ctx               126 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_ERROR, "Invalid AVRegionOfInterest.self_size.");
ctx               131 libavfilter/vf_showinfo.c     av_log(ctx, AV_LOG_INFO, "Regions Of Interest(RoI) information: ");
ctx               134 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO, "index: %d, region: (%d, %d)/(%d, %d), qp offset: %d/%d.\n",
ctx               139 libavfilter/vf_showinfo.c static void dump_mastering_display(AVFilterContext *ctx, AVFrameSideData *sd)
ctx               143 libavfilter/vf_showinfo.c     av_log(ctx, AV_LOG_INFO, "mastering display: ");
ctx               145 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_ERROR, "invalid data");
ctx               151 libavfilter/vf_showinfo.c     av_log(ctx, AV_LOG_INFO, "has_primaries:%d has_luminance:%d "
ctx               165 libavfilter/vf_showinfo.c static void dump_content_light_metadata(AVFilterContext *ctx, AVFrameSideData *sd)
ctx               169 libavfilter/vf_showinfo.c     av_log(ctx, AV_LOG_INFO, "Content Light Level information: "
ctx               174 libavfilter/vf_showinfo.c static void dump_video_enc_params(AVFilterContext *ctx, AVFrameSideData *sd)
ctx               179 libavfilter/vf_showinfo.c     av_log(ctx, AV_LOG_INFO, "video encoding parameters: type %d; ", par->type);
ctx               181 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO, "qp=%d; ", par->qp);
ctx               186 libavfilter/vf_showinfo.c                 av_log(ctx, AV_LOG_INFO, "delta_qp[%d][%d]=%d; ",
ctx               190 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO, "%u blocks; ", par->nb_blocks);
ctx               193 libavfilter/vf_showinfo.c static void dump_color_property(AVFilterContext *ctx, AVFrame *frame)
ctx               201 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO, "color_range:unknown");
ctx               203 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO, "color_range:%s", color_range_str);
ctx               207 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO, " color_space:unknown");
ctx               209 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO, " color_space:%s", colorspace_str);
ctx               213 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO, " color_primaries:unknown");
ctx               215 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO, " color_primaries:%s", color_primaries_str);
ctx               219 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO, " color_trc:unknown");
ctx               221 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO, " color_trc:%s", color_trc_str);
ctx               223 libavfilter/vf_showinfo.c     av_log(ctx, AV_LOG_INFO, "\n");
ctx               262 libavfilter/vf_showinfo.c     AVFilterContext *ctx = inlink->dst;
ctx               263 libavfilter/vf_showinfo.c     ShowInfoContext *s = ctx->priv;
ctx               291 libavfilter/vf_showinfo.c     av_log(ctx, AV_LOG_INFO,
ctx               305 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO,
ctx               310 libavfilter/vf_showinfo.c             av_log(ctx, AV_LOG_INFO, " %08"PRIX32, plane_checksum[plane]);
ctx               311 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO, "] mean:[");
ctx               313 libavfilter/vf_showinfo.c             av_log(ctx, AV_LOG_INFO, "%"PRId64" ", (sum[plane] + pixelcount[plane]/2) / pixelcount[plane]);
ctx               314 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO, "\b] stdev:[");
ctx               316 libavfilter/vf_showinfo.c             av_log(ctx, AV_LOG_INFO, "%3.1f ",
ctx               318 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO, "\b]");
ctx               320 libavfilter/vf_showinfo.c     av_log(ctx, AV_LOG_INFO, "\n");
ctx               325 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO, "  side data - ");
ctx               328 libavfilter/vf_showinfo.c             av_log(ctx, AV_LOG_INFO, "pan/scan");
ctx               331 libavfilter/vf_showinfo.c             av_log(ctx, AV_LOG_INFO, "A/53 closed captions (%d bytes)", sd->size);
ctx               334 libavfilter/vf_showinfo.c             dump_spherical(ctx, frame, sd);
ctx               337 libavfilter/vf_showinfo.c             dump_stereo3d(ctx, sd);
ctx               343 libavfilter/vf_showinfo.c                 av_log(ctx, AV_LOG_ERROR, "invalid data");
ctx               349 libavfilter/vf_showinfo.c                 av_log(ctx, AV_LOG_INFO, "timecode - %s%s", tcbuf, j != m ? ", " : "");
ctx               354 libavfilter/vf_showinfo.c             av_log(ctx, AV_LOG_INFO, "displaymatrix: rotation of %.2f degrees",
ctx               358 libavfilter/vf_showinfo.c             av_log(ctx, AV_LOG_INFO, "afd: value of %"PRIu8, sd->data[0]);
ctx               361 libavfilter/vf_showinfo.c             dump_roi(ctx, sd);
ctx               364 libavfilter/vf_showinfo.c             dump_mastering_display(ctx, sd);
ctx               367 libavfilter/vf_showinfo.c             dump_content_light_metadata(ctx, sd);
ctx               372 libavfilter/vf_showinfo.c             av_log(ctx, AV_LOG_INFO, "GOP timecode - %s", tcbuf);
ctx               376 libavfilter/vf_showinfo.c             dump_video_enc_params(ctx, sd);
ctx               379 libavfilter/vf_showinfo.c             av_log(ctx, AV_LOG_WARNING, "unknown side data type %d (%d bytes)",
ctx               384 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO, "\n");
ctx               387 libavfilter/vf_showinfo.c     dump_color_property(ctx, frame);
ctx               392 libavfilter/vf_showinfo.c static int config_props(AVFilterContext *ctx, AVFilterLink *link, int is_out)
ctx               395 libavfilter/vf_showinfo.c     av_log(ctx, AV_LOG_INFO, "config %s time_base: %d/%d, frame_rate: %d/%d\n",
ctx               405 libavfilter/vf_showinfo.c     AVFilterContext *ctx = link->dst;
ctx               406 libavfilter/vf_showinfo.c     return config_props(ctx, link, 0);
ctx               411 libavfilter/vf_showinfo.c     AVFilterContext *ctx = link->src;
ctx               412 libavfilter/vf_showinfo.c     return config_props(ctx, link, 1);
ctx                45 libavfilter/vf_showpalette.c static int query_formats(AVFilterContext *ctx)
ctx                57 libavfilter/vf_showpalette.c     if ((ret = ff_formats_ref(in , &ctx->inputs[0]->out_formats)) < 0 ||
ctx                58 libavfilter/vf_showpalette.c         (ret = ff_formats_ref(out, &ctx->outputs[0]->in_formats)) < 0)
ctx                73 libavfilter/vf_showpalette.c     AVFilterContext *ctx = outlink->src;
ctx                74 libavfilter/vf_showpalette.c     const ShowPaletteContext *s = ctx->priv;
ctx                98 libavfilter/vf_showpalette.c     AVFilterContext *ctx = inlink->dst;
ctx                99 libavfilter/vf_showpalette.c     const ShowPaletteContext *s = ctx->priv;
ctx               100 libavfilter/vf_showpalette.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                41 libavfilter/vf_shuffleframes.c static av_cold int init(AVFilterContext *ctx)
ctx                43 libavfilter/vf_shuffleframes.c     ShuffleFramesContext *s = ctx->priv;
ctx                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);
ctx                85 libavfilter/vf_shuffleframes.c     AVFilterContext    *ctx = inlink->dst;
ctx                86 libavfilter/vf_shuffleframes.c     ShuffleFramesContext *s = ctx->priv;
ctx               107 libavfilter/vf_shuffleframes.c                 ret = ff_filter_frame(ctx->outputs[0], out);
ctx               119 libavfilter/vf_shuffleframes.c static av_cold void uninit(AVFilterContext *ctx)
ctx               121 libavfilter/vf_shuffleframes.c     ShuffleFramesContext *s = ctx->priv;
ctx                43 libavfilter/vf_shuffleplanes.c static int query_formats(AVFilterContext *ctx)
ctx                46 libavfilter/vf_shuffleplanes.c     ShufflePlanesContext *s = ctx->priv;
ctx                73 libavfilter/vf_shuffleplanes.c     return ff_set_common_formats(ctx, formats);
ctx                78 libavfilter/vf_shuffleplanes.c     AVFilterContext    *ctx = inlink->dst;
ctx                79 libavfilter/vf_shuffleplanes.c     ShufflePlanesContext *s = ctx->priv;
ctx                97 libavfilter/vf_shuffleplanes.c     AVFilterContext          *ctx = inlink->dst;
ctx                98 libavfilter/vf_shuffleplanes.c     ShufflePlanesContext       *s = ctx->priv;
ctx               111 libavfilter/vf_shuffleplanes.c         AVFrame *copy = ff_get_video_buffer(ctx->outputs[0], frame->width, frame->height);
ctx               130 libavfilter/vf_shuffleplanes.c     return ff_filter_frame(ctx->outputs[0], frame);
ctx                89 libavfilter/vf_signalstats.c static av_cold int init(AVFilterContext *ctx)
ctx                92 libavfilter/vf_signalstats.c     SignalstatsContext *s = ctx->priv;
ctx               106 libavfilter/vf_signalstats.c static av_cold void uninit(AVFilterContext *ctx)
ctx               108 libavfilter/vf_signalstats.c     SignalstatsContext *s = ctx->priv;
ctx               119 libavfilter/vf_signalstats.c static int query_formats(AVFilterContext *ctx)
ctx               140 libavfilter/vf_signalstats.c     return ff_set_common_formats(ctx, fmts_list);
ctx               163 libavfilter/vf_signalstats.c     AVFilterContext *ctx = outlink->src;
ctx               164 libavfilter/vf_signalstats.c     SignalstatsContext *s = ctx->priv;
ctx               188 libavfilter/vf_signalstats.c     s->nb_jobs   = FFMAX(1, FFMIN(inlink->h, ff_filter_get_nb_threads(ctx)));
ctx               220 libavfilter/vf_signalstats.c static int filter8_brng(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               223 libavfilter/vf_signalstats.c     const SignalstatsContext *s = ctx->priv;
ctx               254 libavfilter/vf_signalstats.c static int filter16_brng(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               257 libavfilter/vf_signalstats.c     const SignalstatsContext *s = ctx->priv;
ctx               294 libavfilter/vf_signalstats.c static int filter8_tout(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               297 libavfilter/vf_signalstats.c     const SignalstatsContext *s = ctx->priv;
ctx               342 libavfilter/vf_signalstats.c static int filter16_tout(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               345 libavfilter/vf_signalstats.c     const SignalstatsContext *s = ctx->priv;
ctx               385 libavfilter/vf_signalstats.c static int filter8_vrep(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               388 libavfilter/vf_signalstats.c     const SignalstatsContext *s = ctx->priv;
ctx               419 libavfilter/vf_signalstats.c static int filter16_vrep(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               422 libavfilter/vf_signalstats.c     const SignalstatsContext *s = ctx->priv;
ctx               456 libavfilter/vf_signalstats.c     int (*process8)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx               457 libavfilter/vf_signalstats.c     int (*process16)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx               465 libavfilter/vf_signalstats.c static int compute_sat_hue_metrics8(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               469 libavfilter/vf_signalstats.c     const SignalstatsContext *s = ctx->priv;
ctx               503 libavfilter/vf_signalstats.c static int compute_sat_hue_metrics16(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               507 libavfilter/vf_signalstats.c     const SignalstatsContext *s = ctx->priv;
ctx               549 libavfilter/vf_signalstats.c     AVFilterContext *ctx = link->dst;
ctx               550 libavfilter/vf_signalstats.c     SignalstatsContext *s = ctx->priv;
ctx               551 libavfilter/vf_signalstats.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               602 libavfilter/vf_signalstats.c     ctx->internal->execute(ctx, compute_sat_hue_metrics8, &td_huesat,
ctx               603 libavfilter/vf_signalstats.c                            NULL, FFMIN(s->chromah, ff_filter_get_nb_threads(ctx)));
ctx               651 libavfilter/vf_signalstats.c             ctx->internal->execute(ctx, filters_def[fil].process8,
ctx               771 libavfilter/vf_signalstats.c     AVFilterContext *ctx = link->dst;
ctx               772 libavfilter/vf_signalstats.c     SignalstatsContext *s = ctx->priv;
ctx               773 libavfilter/vf_signalstats.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               824 libavfilter/vf_signalstats.c     ctx->internal->execute(ctx, compute_sat_hue_metrics16, &td_huesat,
ctx               825 libavfilter/vf_signalstats.c                            NULL, FFMIN(s->chromah, ff_filter_get_nb_threads(ctx)));
ctx               873 libavfilter/vf_signalstats.c             ctx->internal->execute(ctx, filters_def[fil].process16,
ctx               988 libavfilter/vf_signalstats.c     AVFilterContext *ctx = link->dst;
ctx               989 libavfilter/vf_signalstats.c     SignalstatsContext *s = ctx->priv;
ctx                72 libavfilter/vf_signature.c static int query_formats(AVFilterContext *ctx)
ctx                87 libavfilter/vf_signature.c     return ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx                92 libavfilter/vf_signature.c     AVFilterContext *ctx = inlink->dst;
ctx                93 libavfilter/vf_signature.c     SignatureContext *sic = ctx->priv;
ctx               100 libavfilter/vf_signature.c         av_log(ctx, AV_LOG_WARNING, "Input dimension too high for precise calculation, numbers will be rounded.\n");
ctx               151 libavfilter/vf_signature.c     AVFilterContext *ctx = inlink->dst;
ctx               152 libavfilter/vf_signature.c     SignatureContext *sic = ctx->priv;
ctx               359 libavfilter/vf_signature.c         av_log(ctx, AV_LOG_DEBUG, "input %d, confidence: %d\n", FF_INLINK_IDX(inlink), fs->confidence);
ctx               361 libavfilter/vf_signature.c         av_log(ctx, AV_LOG_DEBUG, "words:");
ctx               363 libavfilter/vf_signature.c             av_log(ctx, AV_LOG_DEBUG, " %d:", fs->words[i] );
ctx               364 libavfilter/vf_signature.c             av_log(ctx, AV_LOG_DEBUG, " %d", fs->words[i] / pot3[0] );
ctx               366 libavfilter/vf_signature.c                 av_log(ctx, AV_LOG_DEBUG, ",%d", fs->words[i] % pot3[j-1] / pot3[j] );
ctx               367 libavfilter/vf_signature.c             av_log(ctx, AV_LOG_DEBUG, ";");
ctx               369 libavfilter/vf_signature.c         av_log(ctx, AV_LOG_DEBUG, "\n");
ctx               371 libavfilter/vf_signature.c         av_log(ctx, AV_LOG_DEBUG, "framesignature:");
ctx               373 libavfilter/vf_signature.c             av_log(ctx, AV_LOG_DEBUG, " %d", fs->framesig[i] / pot3[0] );
ctx               375 libavfilter/vf_signature.c                 av_log(ctx, AV_LOG_DEBUG, ",%d", fs->framesig[i] % pot3[j-1] / pot3[j] );
ctx               377 libavfilter/vf_signature.c         av_log(ctx, AV_LOG_DEBUG, "\n");
ctx               385 libavfilter/vf_signature.c static int xml_export(AVFilterContext *ctx, StreamContext *sc, const char* filename)
ctx               398 libavfilter/vf_signature.c         av_log(ctx, AV_LOG_ERROR, "cannot open xml file %s: %s\n", filename, buf);
ctx               491 libavfilter/vf_signature.c static int binary_export(AVFilterContext *ctx, StreamContext *sc, const char* filename)
ctx               512 libavfilter/vf_signature.c         av_log(ctx, AV_LOG_ERROR, "cannot open file %s: %s\n", filename, buf);
ctx               570 libavfilter/vf_signature.c static int export(AVFilterContext *ctx, StreamContext *sc, int input)
ctx               572 libavfilter/vf_signature.c     SignatureContext* sic = ctx->priv;
ctx               583 libavfilter/vf_signature.c         return xml_export(ctx, sc, filename);
ctx               585 libavfilter/vf_signature.c         return binary_export(ctx, sc, filename);
ctx               591 libavfilter/vf_signature.c     AVFilterContext *ctx = outlink->src;
ctx               592 libavfilter/vf_signature.c     SignatureContext *sic = ctx->priv;
ctx               602 libavfilter/vf_signature.c         ret = ff_request_frame(ctx->inputs[i]);
ctx               612 libavfilter/vf_signature.c                 if (export(ctx, sc, i) < 0)
ctx               627 libavfilter/vf_signature.c                 match = lookup_signatures(ctx, sic, sc, sc2, sic->mode);
ctx               629 libavfilter/vf_signature.c                     av_log(ctx, AV_LOG_INFO, "matching of video %d at %f and %d at %f, %d frames matching\n",
ctx               634 libavfilter/vf_signature.c                         av_log(ctx, AV_LOG_INFO, "whole video matching\n");
ctx               636 libavfilter/vf_signature.c                     av_log(ctx, AV_LOG_INFO, "no matching of video %d and %d\n", i, j);
ctx               645 libavfilter/vf_signature.c static av_cold int init(AVFilterContext *ctx)
ctx               648 libavfilter/vf_signature.c     SignatureContext *sic = ctx->priv;
ctx               684 libavfilter/vf_signature.c         if ((ret = ff_insert_inpad(ctx, i, &pad)) < 0) {
ctx               692 libavfilter/vf_signature.c         av_log(ctx, AV_LOG_ERROR, "The filename must contain %%d or %%0nd, if you have more than one input.\n");
ctx               701 libavfilter/vf_signature.c static av_cold void uninit(AVFilterContext *ctx)
ctx               703 libavfilter/vf_signature.c     SignatureContext *sic = ctx->priv;
ctx               738 libavfilter/vf_signature.c     AVFilterContext *ctx = outlink->src;
ctx               739 libavfilter/vf_signature.c     AVFilterLink *inlink = ctx->inputs[0];
ctx                85 libavfilter/vf_smartblur.c static av_cold int init(AVFilterContext *ctx)
ctx                87 libavfilter/vf_smartblur.c     SmartblurContext *s = ctx->priv;
ctx               100 libavfilter/vf_smartblur.c     av_log(ctx, AV_LOG_VERBOSE,
ctx               109 libavfilter/vf_smartblur.c static av_cold void uninit(AVFilterContext *ctx)
ctx               111 libavfilter/vf_smartblur.c     SmartblurContext *s = ctx->priv;
ctx               117 libavfilter/vf_smartblur.c static int query_formats(AVFilterContext *ctx)
ctx               130 libavfilter/vf_smartblur.c     return ff_set_common_formats(ctx, fmts_list);
ctx               309 libavfilter/vf_spp.c static int query_formats(AVFilterContext *ctx)
ctx               331 libavfilter/vf_spp.c     return ff_set_common_formats(ctx, fmts_list);
ctx               360 libavfilter/vf_spp.c     AVFilterContext *ctx = inlink->dst;
ctx               361 libavfilter/vf_spp.c     SPPContext *s = ctx->priv;
ctx               362 libavfilter/vf_spp.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               403 libavfilter/vf_spp.c     if (s->log2_count && !ctx->is_disabled) {
ctx               447 libavfilter/vf_spp.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               450 libavfilter/vf_spp.c     SPPContext *s = ctx->priv;
ctx               462 libavfilter/vf_spp.c static av_cold int init_dict(AVFilterContext *ctx, AVDictionary **opts)
ctx               464 libavfilter/vf_spp.c     SPPContext *s = ctx->priv;
ctx               489 libavfilter/vf_spp.c static av_cold void uninit(AVFilterContext *ctx)
ctx               491 libavfilter/vf_spp.c     SPPContext *s = ctx->priv;
ctx               287 libavfilter/vf_ssim.c     AVFilterContext *ctx = fs->parent;
ctx               288 libavfilter/vf_ssim.c     SSIMContext *s = ctx->priv;
ctx               298 libavfilter/vf_ssim.c         return ff_filter_frame(ctx->outputs[0], master);
ctx               331 libavfilter/vf_ssim.c     return ff_filter_frame(ctx->outputs[0], master);
ctx               334 libavfilter/vf_ssim.c static av_cold int init(AVFilterContext *ctx)
ctx               336 libavfilter/vf_ssim.c     SSIMContext *s = ctx->priv;
ctx               347 libavfilter/vf_ssim.c                 av_log(ctx, AV_LOG_ERROR, "Could not open stats file %s: %s\n",
ctx               358 libavfilter/vf_ssim.c static int query_formats(AVFilterContext *ctx)
ctx               376 libavfilter/vf_ssim.c     return ff_set_common_formats(ctx, fmts_list);
ctx               382 libavfilter/vf_ssim.c     AVFilterContext *ctx  = inlink->dst;
ctx               383 libavfilter/vf_ssim.c     SSIMContext *s = ctx->priv;
ctx               388 libavfilter/vf_ssim.c     if (ctx->inputs[0]->w != ctx->inputs[1]->w ||
ctx               389 libavfilter/vf_ssim.c         ctx->inputs[0]->h != ctx->inputs[1]->h) {
ctx               390 libavfilter/vf_ssim.c         av_log(ctx, AV_LOG_ERROR, "Width and height of input videos must be same.\n");
ctx               393 libavfilter/vf_ssim.c     if (ctx->inputs[0]->format != ctx->inputs[1]->format) {
ctx               394 libavfilter/vf_ssim.c         av_log(ctx, AV_LOG_ERROR, "Inputs must be of same pixel format.\n");
ctx               429 libavfilter/vf_ssim.c     AVFilterContext *ctx = outlink->src;
ctx               430 libavfilter/vf_ssim.c     SSIMContext *s = ctx->priv;
ctx               431 libavfilter/vf_ssim.c     AVFilterLink *mainlink = ctx->inputs[0];
ctx               434 libavfilter/vf_ssim.c     ret = ff_framesync_init_dualinput(&s->fs, ctx);
ctx               449 libavfilter/vf_ssim.c         av_cmp_q(ctx->inputs[1]->time_base, outlink->time_base))
ctx               450 libavfilter/vf_ssim.c         av_log(ctx, AV_LOG_WARNING, "not matching timebases found between first input: %d/%d and second input %d/%d, results may be incorrect!\n",
ctx               452 libavfilter/vf_ssim.c                ctx->inputs[1]->time_base.num, ctx->inputs[1]->time_base.den);
ctx               457 libavfilter/vf_ssim.c static int activate(AVFilterContext *ctx)
ctx               459 libavfilter/vf_ssim.c     SSIMContext *s = ctx->priv;
ctx               463 libavfilter/vf_ssim.c static av_cold void uninit(AVFilterContext *ctx)
ctx               465 libavfilter/vf_ssim.c     SSIMContext *s = ctx->priv;
ctx               476 libavfilter/vf_ssim.c         av_log(ctx, AV_LOG_INFO, "SSIM%s All:%f (%f)\n", buf,
ctx                61 libavfilter/vf_stack.c static int query_formats(AVFilterContext *ctx)
ctx                64 libavfilter/vf_stack.c     StackContext *s = ctx->priv;
ctx                68 libavfilter/vf_stack.c         return ff_set_common_formats(ctx, ff_draw_supported_pixel_formats(0));
ctx                80 libavfilter/vf_stack.c     return ff_set_common_formats(ctx, pix_fmts);
ctx                83 libavfilter/vf_stack.c static av_cold int init(AVFilterContext *ctx)
ctx                85 libavfilter/vf_stack.c     StackContext *s = ctx->priv;
ctx                88 libavfilter/vf_stack.c     if (!strcmp(ctx->filter->name, "vstack"))
ctx                91 libavfilter/vf_stack.c     if (!strcmp(ctx->filter->name, "hstack"))
ctx               102 libavfilter/vf_stack.c     if (!strcmp(ctx->filter->name, "xstack")) {
ctx               104 libavfilter/vf_stack.c             av_parse_color(s->fillcolor, s->fillcolor_str, -1, ctx) >= 0) {
ctx               115 libavfilter/vf_stack.c                 av_log(ctx, AV_LOG_ERROR, "No layout specified.\n");
ctx               129 libavfilter/vf_stack.c         if ((ret = ff_insert_inpad(ctx, i, &pad)) < 0) {
ctx               138 libavfilter/vf_stack.c static int process_slice(AVFilterContext *ctx, void *arg, int job, int nb_jobs)
ctx               140 libavfilter/vf_stack.c     StackContext *s = ctx->priv;
ctx               163 libavfilter/vf_stack.c     AVFilterContext *ctx = fs->parent;
ctx               164 libavfilter/vf_stack.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               185 libavfilter/vf_stack.c     ctx->internal->execute(ctx, process_slice, out, NULL, FFMIN(s->nb_inputs, ff_filter_get_nb_threads(ctx)));
ctx               192 libavfilter/vf_stack.c     AVFilterContext *ctx = outlink->src;
ctx               193 libavfilter/vf_stack.c     StackContext *s = ctx->priv;
ctx               194 libavfilter/vf_stack.c     AVRational frame_rate = ctx->inputs[0]->frame_rate;
ctx               195 libavfilter/vf_stack.c     AVRational sar = ctx->inputs[0]->sample_aspect_ratio;
ctx               196 libavfilter/vf_stack.c     int height = ctx->inputs[0]->h;
ctx               197 libavfilter/vf_stack.c     int width = ctx->inputs[0]->w;
ctx               207 libavfilter/vf_stack.c             AVFilterLink *inlink = ctx->inputs[i];
ctx               210 libavfilter/vf_stack.c             if (ctx->inputs[i]->w != width) {
ctx               211 libavfilter/vf_stack.c                 av_log(ctx, AV_LOG_ERROR, "Input %d width %d does not match input %d width %d.\n", i, ctx->inputs[i]->w, 0, width);
ctx               226 libavfilter/vf_stack.c                 height += ctx->inputs[i]->h;
ctx               231 libavfilter/vf_stack.c             AVFilterLink *inlink = ctx->inputs[i];
ctx               234 libavfilter/vf_stack.c             if (ctx->inputs[i]->h != height) {
ctx               235 libavfilter/vf_stack.c                 av_log(ctx, AV_LOG_ERROR, "Input %d height %d does not match input %d height %d.\n", i, ctx->inputs[i]->h, 0, height);
ctx               251 libavfilter/vf_stack.c                 width += ctx->inputs[i]->w;
ctx               261 libavfilter/vf_stack.c             ff_draw_init(&s->draw, ctx->inputs[0]->format, 0);
ctx               266 libavfilter/vf_stack.c             AVFilterLink *inlink = ctx->inputs[i];
ctx               297 libavfilter/vf_stack.c                             inw += ctx->inputs[size]->w;
ctx               299 libavfilter/vf_stack.c                             inh += ctx->inputs[size]->w;
ctx               305 libavfilter/vf_stack.c                             inw += ctx->inputs[size]->h;
ctx               307 libavfilter/vf_stack.c                             inh += ctx->inputs[size]->h;
ctx               342 libavfilter/vf_stack.c         AVFilterLink *inlink = ctx->inputs[i];
ctx               345 libavfilter/vf_stack.c             av_log(ctx, AV_LOG_VERBOSE,
ctx               352 libavfilter/vf_stack.c     if ((ret = ff_framesync_init(&s->fs, ctx, s->nb_inputs)) < 0)
ctx               360 libavfilter/vf_stack.c         AVFilterLink *inlink = ctx->inputs[i];
ctx               374 libavfilter/vf_stack.c static av_cold void uninit(AVFilterContext *ctx)
ctx               376 libavfilter/vf_stack.c     StackContext *s = ctx->priv;
ctx               383 libavfilter/vf_stack.c     for (i = 0; i < ctx->nb_inputs; i++)
ctx               384 libavfilter/vf_stack.c         av_freep(&ctx->input_pads[i].name);
ctx               387 libavfilter/vf_stack.c static int activate(AVFilterContext *ctx)
ctx               389 libavfilter/vf_stack.c     StackContext *s = ctx->priv;
ctx               282 libavfilter/vf_stereo3d.c static int query_formats(AVFilterContext *ctx)
ctx               284 libavfilter/vf_stereo3d.c     Stereo3DContext *s = ctx->priv;
ctx               312 libavfilter/vf_stereo3d.c     return ff_set_common_formats(ctx, fmts_list);
ctx               368 libavfilter/vf_stereo3d.c     AVFilterContext *ctx = outlink->src;
ctx               369 libavfilter/vf_stereo3d.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               370 libavfilter/vf_stereo3d.c     Stereo3DContext *s = ctx->priv;
ctx               385 libavfilter/vf_stereo3d.c             av_log(ctx, AV_LOG_ERROR, "width must be even\n");
ctx               396 libavfilter/vf_stereo3d.c             av_log(ctx, AV_LOG_ERROR, "height must be even\n");
ctx               460 libavfilter/vf_stereo3d.c         av_log(ctx, AV_LOG_ERROR, "input format %d is not supported\n", s->in.format);
ctx               517 libavfilter/vf_stereo3d.c             av_log(ctx, AV_LOG_ERROR, "Only 720 and 1080 height supported\n");
ctx               567 libavfilter/vf_stereo3d.c         av_log(ctx, AV_LOG_ERROR, "output format %d is not supported\n", s->out.format);
ctx               609 libavfilter/vf_stereo3d.c static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               611 libavfilter/vf_stereo3d.c     Stereo3DContext *s = ctx->priv;
ctx               672 libavfilter/vf_stereo3d.c     AVFilterContext *ctx  = inlink->dst;
ctx               673 libavfilter/vf_stereo3d.c     Stereo3DContext *s = ctx->priv;
ctx               674 libavfilter/vf_stereo3d.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               944 libavfilter/vf_stereo3d.c             ctx->internal->execute(ctx, filter_slice, &td, NULL,
ctx               945 libavfilter/vf_stereo3d.c                                    FFMIN(s->out.height, ff_filter_get_nb_threads(ctx)));
ctx              1090 libavfilter/vf_stereo3d.c static av_cold void uninit(AVFilterContext *ctx)
ctx              1092 libavfilter/vf_stereo3d.c     Stereo3DContext *s = ctx->priv;
ctx                87 libavfilter/vf_subtitles.c static void ass_log(int ass_level, const char *fmt, va_list args, void *ctx)
ctx                93 libavfilter/vf_subtitles.c     av_vlog(ctx, level, fmt, args);
ctx                94 libavfilter/vf_subtitles.c     av_log(ctx, level, "\n");
ctx                97 libavfilter/vf_subtitles.c static av_cold int init(AVFilterContext *ctx)
ctx                99 libavfilter/vf_subtitles.c     AssContext *ass = ctx->priv;
ctx               102 libavfilter/vf_subtitles.c         av_log(ctx, AV_LOG_ERROR, "No filename provided!\n");
ctx               108 libavfilter/vf_subtitles.c         av_log(ctx, AV_LOG_ERROR, "Could not initialize libass.\n");
ctx               111 libavfilter/vf_subtitles.c     ass_set_message_cb(ass->library, ass_log, ctx);
ctx               117 libavfilter/vf_subtitles.c         av_log(ctx, AV_LOG_ERROR, "Could not initialize libass renderer.\n");
ctx               124 libavfilter/vf_subtitles.c static av_cold void uninit(AVFilterContext *ctx)
ctx               126 libavfilter/vf_subtitles.c     AssContext *ass = ctx->priv;
ctx               136 libavfilter/vf_subtitles.c static int query_formats(AVFilterContext *ctx)
ctx               138 libavfilter/vf_subtitles.c     return ff_set_common_formats(ctx, ff_draw_supported_pixel_formats(0));
ctx               180 libavfilter/vf_subtitles.c     AVFilterContext *ctx = inlink->dst;
ctx               181 libavfilter/vf_subtitles.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               182 libavfilter/vf_subtitles.c     AssContext *ass = ctx->priv;
ctx               189 libavfilter/vf_subtitles.c         av_log(ctx, AV_LOG_DEBUG, "Change happened at time ms:%f\n", time_ms);
ctx               228 libavfilter/vf_subtitles.c static av_cold int init_ass(AVFilterContext *ctx)
ctx               230 libavfilter/vf_subtitles.c     AssContext *ass = ctx->priv;
ctx               231 libavfilter/vf_subtitles.c     int ret = init(ctx);
ctx               241 libavfilter/vf_subtitles.c         av_log(ctx, AV_LOG_ERROR,
ctx               298 libavfilter/vf_subtitles.c static av_cold int init_subtitles(AVFilterContext *ctx)
ctx               309 libavfilter/vf_subtitles.c     AssContext *ass = ctx->priv;
ctx               312 libavfilter/vf_subtitles.c     ret = init(ctx);
ctx               317 libavfilter/vf_subtitles.c         av_log(ctx, AV_LOG_ERROR, "Could not create a libass track\n");
ctx               324 libavfilter/vf_subtitles.c         av_log(ctx, AV_LOG_ERROR, "Unable to open %s\n", ass->filename);
ctx               350 libavfilter/vf_subtitles.c         av_log(ctx, AV_LOG_ERROR, "Unable to locate subtitle stream in %s\n",
ctx               367 libavfilter/vf_subtitles.c                 av_log(ctx, AV_LOG_DEBUG, "Loading attached font: %s\n",
ctx               373 libavfilter/vf_subtitles.c                 av_log(ctx, AV_LOG_WARNING,
ctx               385 libavfilter/vf_subtitles.c         av_log(ctx, AV_LOG_ERROR, "Failed to find subtitle codec %s\n",
ctx               391 libavfilter/vf_subtitles.c         av_log(ctx, AV_LOG_ERROR,
ctx               458 libavfilter/vf_subtitles.c                 av_log(ctx, AV_LOG_WARNING, "Error decoding: %s (ignored)\n",
ctx                56 libavfilter/vf_super2xsai.c static void super2xsai(AVFilterContext *ctx,
ctx                61 libavfilter/vf_super2xsai.c     Super2xSaIContext *s = ctx->priv;
ctx               234 libavfilter/vf_super2xsai.c static int query_formats(AVFilterContext *ctx)
ctx               247 libavfilter/vf_super2xsai.c     return ff_set_common_formats(ctx, fmts_list);
ctx                59 libavfilter/vf_swaprect.c static int query_formats(AVFilterContext *ctx)
ctx                73 libavfilter/vf_swaprect.c     return ff_set_common_formats(ctx, pix_fmts);
ctx                81 libavfilter/vf_swaprect.c     AVFilterContext *ctx = inlink->dst;
ctx                82 libavfilter/vf_swaprect.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                83 libavfilter/vf_swaprect.c     SwapRectContext *s = ctx->priv;
ctx               107 libavfilter/vf_swaprect.c                                  0, 0, ctx);
ctx               114 libavfilter/vf_swaprect.c                                  0, 0, ctx);
ctx               121 libavfilter/vf_swaprect.c                                  0, 0, ctx);
ctx               128 libavfilter/vf_swaprect.c                                  0, 0, ctx);
ctx               135 libavfilter/vf_swaprect.c                                  0, 0, ctx);
ctx               142 libavfilter/vf_swaprect.c                                  0, 0, ctx);
ctx               202 libavfilter/vf_swaprect.c     AVFilterContext *ctx = inlink->dst;
ctx               203 libavfilter/vf_swaprect.c     SwapRectContext *s = ctx->priv;
ctx               221 libavfilter/vf_swaprect.c static av_cold void uninit(AVFilterContext *ctx)
ctx               223 libavfilter/vf_swaprect.c     SwapRectContext *s = ctx->priv;
ctx                88 libavfilter/vf_swapuv.c static int query_formats(AVFilterContext *ctx)
ctx                99 libavfilter/vf_swapuv.c     return ff_set_common_formats(ctx, formats);
ctx                71 libavfilter/vf_telecine.c static av_cold int init(AVFilterContext *ctx)
ctx                73 libavfilter/vf_telecine.c     TelecineContext *s = ctx->priv;
ctx                78 libavfilter/vf_telecine.c         av_log(ctx, AV_LOG_ERROR, "No pattern provided.\n");
ctx                84 libavfilter/vf_telecine.c             av_log(ctx, AV_LOG_ERROR, "Provided pattern includes non-numeric characters.\n");
ctx                96 libavfilter/vf_telecine.c     av_log(ctx, AV_LOG_INFO, "Telecine pattern %s yields up to %d frames per frame, pts advance factor: %d/%d\n",
ctx               102 libavfilter/vf_telecine.c static int query_formats(AVFilterContext *ctx)
ctx               116 libavfilter/vf_telecine.c     return ff_set_common_formats(ctx, pix_fmts);
ctx               147 libavfilter/vf_telecine.c     AVFilterContext *ctx = outlink->src;
ctx               148 libavfilter/vf_telecine.c     TelecineContext *s = ctx->priv;
ctx               149 libavfilter/vf_telecine.c     const AVFilterLink *inlink = ctx->inputs[0];
ctx               153 libavfilter/vf_telecine.c         av_log(ctx, AV_LOG_ERROR, "The input needs a constant frame rate; "
ctx               158 libavfilter/vf_telecine.c     av_log(ctx, AV_LOG_VERBOSE, "FPS: %d/%d -> %d/%d\n",
ctx               163 libavfilter/vf_telecine.c     av_log(ctx, AV_LOG_VERBOSE, "TB: %d/%d -> %d/%d\n",
ctx               173 libavfilter/vf_telecine.c     AVFilterContext *ctx = inlink->dst;
ctx               174 libavfilter/vf_telecine.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               175 libavfilter/vf_telecine.c     TelecineContext *s = ctx->priv;
ctx               264 libavfilter/vf_telecine.c static av_cold void uninit(AVFilterContext *ctx)
ctx               266 libavfilter/vf_telecine.c     TelecineContext *s = ctx->priv;
ctx                46 libavfilter/vf_threshold.c static int query_formats(AVFilterContext *ctx)
ctx                68 libavfilter/vf_threshold.c     return ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx                79 libavfilter/vf_threshold.c static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx                81 libavfilter/vf_threshold.c     ThresholdContext *s = ctx->priv;
ctx               119 libavfilter/vf_threshold.c     AVFilterContext *ctx = fs->parent;
ctx               121 libavfilter/vf_threshold.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               132 libavfilter/vf_threshold.c     if (ctx->is_disabled) {
ctx               147 libavfilter/vf_threshold.c         ctx->internal->execute(ctx, filter_slice, &td, NULL,
ctx               148 libavfilter/vf_threshold.c                                FFMIN(s->height[2], ff_filter_get_nb_threads(ctx)));
ctx               209 libavfilter/vf_threshold.c     AVFilterContext *ctx = inlink->dst;
ctx               210 libavfilter/vf_threshold.c     ThresholdContext *s = ctx->priv;
ctx               245 libavfilter/vf_threshold.c     AVFilterContext *ctx = outlink->src;
ctx               246 libavfilter/vf_threshold.c     ThresholdContext *s = ctx->priv;
ctx               247 libavfilter/vf_threshold.c     AVFilterLink *base = ctx->inputs[0];
ctx               248 libavfilter/vf_threshold.c     AVFilterLink *threshold = ctx->inputs[1];
ctx               249 libavfilter/vf_threshold.c     AVFilterLink *min = ctx->inputs[2];
ctx               250 libavfilter/vf_threshold.c     AVFilterLink *max = ctx->inputs[3];
ctx               257 libavfilter/vf_threshold.c         av_log(ctx, AV_LOG_ERROR, "inputs must be of same pixel format\n");
ctx               266 libavfilter/vf_threshold.c         av_log(ctx, AV_LOG_ERROR, "First input link %s parameters "
ctx               271 libavfilter/vf_threshold.c                ctx->input_pads[0].name, base->w, base->h,
ctx               272 libavfilter/vf_threshold.c                ctx->input_pads[1].name, threshold->w, threshold->h,
ctx               273 libavfilter/vf_threshold.c                ctx->input_pads[2].name, min->w, min->h,
ctx               274 libavfilter/vf_threshold.c                ctx->input_pads[3].name, max->w, max->h);
ctx               283 libavfilter/vf_threshold.c     if ((ret = ff_framesync_init(&s->fs, ctx, 4)) < 0)
ctx               312 libavfilter/vf_threshold.c static int activate(AVFilterContext *ctx)
ctx               314 libavfilter/vf_threshold.c     ThresholdContext *s = ctx->priv;
ctx               318 libavfilter/vf_threshold.c static av_cold void uninit(AVFilterContext *ctx)
ctx               320 libavfilter/vf_threshold.c     ThresholdContext *s = ctx->priv;
ctx                59 libavfilter/vf_thumbnail.c static av_cold int init(AVFilterContext *ctx)
ctx                61 libavfilter/vf_thumbnail.c     ThumbContext *s = ctx->priv;
ctx                65 libavfilter/vf_thumbnail.c         av_log(ctx, AV_LOG_ERROR,
ctx                69 libavfilter/vf_thumbnail.c     av_log(ctx, AV_LOG_VERBOSE, "batch size: %d frames\n", s->n_frames);
ctx                91 libavfilter/vf_thumbnail.c static AVFrame *get_best_frame(AVFilterContext *ctx)
ctx                94 libavfilter/vf_thumbnail.c     ThumbContext *s = ctx->priv;
ctx               123 libavfilter/vf_thumbnail.c     av_log(ctx, AV_LOG_INFO, "frame id #%d (pts_time=%f) selected "
ctx               134 libavfilter/vf_thumbnail.c     AVFilterContext *ctx  = inlink->dst;
ctx               135 libavfilter/vf_thumbnail.c     ThumbContext *s   = ctx->priv;
ctx               136 libavfilter/vf_thumbnail.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               158 libavfilter/vf_thumbnail.c     return ff_filter_frame(outlink, get_best_frame(ctx));
ctx               161 libavfilter/vf_thumbnail.c static av_cold void uninit(AVFilterContext *ctx)
ctx               164 libavfilter/vf_thumbnail.c     ThumbContext *s = ctx->priv;
ctx               172 libavfilter/vf_thumbnail.c     AVFilterContext *ctx = link->src;
ctx               173 libavfilter/vf_thumbnail.c     ThumbContext *s = ctx->priv;
ctx               174 libavfilter/vf_thumbnail.c     int ret = ff_request_frame(ctx->inputs[0]);
ctx               177 libavfilter/vf_thumbnail.c         ret = ff_filter_frame(link, get_best_frame(ctx));
ctx               189 libavfilter/vf_thumbnail.c     AVFilterContext *ctx = inlink->dst;
ctx               190 libavfilter/vf_thumbnail.c     ThumbContext *s = ctx->priv;
ctx               196 libavfilter/vf_thumbnail.c static int query_formats(AVFilterContext *ctx)
ctx               205 libavfilter/vf_thumbnail.c     return ff_set_common_formats(ctx, fmts_list);
ctx                32 libavfilter/vf_thumbnail_cuda.c #define CHECK_CU(x) FF_CUDA_CHECK_DL(ctx, s->hwctx->internal->cuda_dl, x)
ctx                85 libavfilter/vf_thumbnail_cuda.c static av_cold int init(AVFilterContext *ctx)
ctx                87 libavfilter/vf_thumbnail_cuda.c     ThumbnailCudaContext *s = ctx->priv;
ctx                91 libavfilter/vf_thumbnail_cuda.c         av_log(ctx, AV_LOG_ERROR,
ctx                95 libavfilter/vf_thumbnail_cuda.c     av_log(ctx, AV_LOG_VERBOSE, "batch size: %d frames\n", s->n_frames);
ctx               117 libavfilter/vf_thumbnail_cuda.c static AVFrame *get_best_frame(AVFilterContext *ctx)
ctx               120 libavfilter/vf_thumbnail_cuda.c     ThumbnailCudaContext *s = ctx->priv;
ctx               149 libavfilter/vf_thumbnail_cuda.c     av_log(ctx, AV_LOG_INFO, "frame id #%d (pts_time=%f) selected "
ctx               157 libavfilter/vf_thumbnail_cuda.c static int thumbnail_kernel(AVFilterContext *ctx, CUfunction func, int channels,
ctx               161 libavfilter/vf_thumbnail_cuda.c     ThumbnailCudaContext *s = ctx->priv;
ctx               197 libavfilter/vf_thumbnail_cuda.c static int thumbnail(AVFilterContext *ctx, int *histogram, AVFrame *in)
ctx               200 libavfilter/vf_thumbnail_cuda.c     ThumbnailCudaContext *s = ctx->priv;
ctx               204 libavfilter/vf_thumbnail_cuda.c         thumbnail_kernel(ctx, s->cu_func_uchar, 1,
ctx               206 libavfilter/vf_thumbnail_cuda.c         thumbnail_kernel(ctx, s->cu_func_uchar2, 2,
ctx               210 libavfilter/vf_thumbnail_cuda.c         thumbnail_kernel(ctx, s->cu_func_uchar, 1,
ctx               212 libavfilter/vf_thumbnail_cuda.c         thumbnail_kernel(ctx, s->cu_func_uchar, 1,
ctx               214 libavfilter/vf_thumbnail_cuda.c         thumbnail_kernel(ctx, s->cu_func_uchar, 1,
ctx               218 libavfilter/vf_thumbnail_cuda.c         thumbnail_kernel(ctx, s->cu_func_uchar, 1,
ctx               220 libavfilter/vf_thumbnail_cuda.c         thumbnail_kernel(ctx, s->cu_func_uchar, 1,
ctx               222 libavfilter/vf_thumbnail_cuda.c         thumbnail_kernel(ctx, s->cu_func_uchar, 1,
ctx               227 libavfilter/vf_thumbnail_cuda.c         thumbnail_kernel(ctx, s->cu_func_ushort, 1,
ctx               229 libavfilter/vf_thumbnail_cuda.c         thumbnail_kernel(ctx, s->cu_func_ushort2, 2,
ctx               233 libavfilter/vf_thumbnail_cuda.c         thumbnail_kernel(ctx, s->cu_func_ushort2, 1,
ctx               235 libavfilter/vf_thumbnail_cuda.c         thumbnail_kernel(ctx, s->cu_func_ushort2, 1,
ctx               237 libavfilter/vf_thumbnail_cuda.c         thumbnail_kernel(ctx, s->cu_func_ushort2, 1,
ctx               249 libavfilter/vf_thumbnail_cuda.c     AVFilterContext *ctx  = inlink->dst;
ctx               250 libavfilter/vf_thumbnail_cuda.c     ThumbnailCudaContext *s   = ctx->priv;
ctx               252 libavfilter/vf_thumbnail_cuda.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               268 libavfilter/vf_thumbnail_cuda.c     thumbnail(ctx, (int*)s->data, frame);
ctx               300 libavfilter/vf_thumbnail_cuda.c     return ff_filter_frame(outlink, get_best_frame(ctx));
ctx               303 libavfilter/vf_thumbnail_cuda.c static av_cold void uninit(AVFilterContext *ctx)
ctx               306 libavfilter/vf_thumbnail_cuda.c     ThumbnailCudaContext *s = ctx->priv;
ctx               326 libavfilter/vf_thumbnail_cuda.c     AVFilterContext *ctx = link->src;
ctx               327 libavfilter/vf_thumbnail_cuda.c     ThumbnailCudaContext *s = ctx->priv;
ctx               328 libavfilter/vf_thumbnail_cuda.c     int ret = ff_request_frame(ctx->inputs[0]);
ctx               331 libavfilter/vf_thumbnail_cuda.c         ret = ff_filter_frame(link, get_best_frame(ctx));
ctx               353 libavfilter/vf_thumbnail_cuda.c     AVFilterContext *ctx = inlink->dst;
ctx               354 libavfilter/vf_thumbnail_cuda.c     ThumbnailCudaContext *s = ctx->priv;
ctx               396 libavfilter/vf_thumbnail_cuda.c     s->hw_frames_ctx = ctx->inputs[0]->hw_frames_ctx;
ctx               398 libavfilter/vf_thumbnail_cuda.c     ctx->outputs[0]->hw_frames_ctx = av_buffer_ref(s->hw_frames_ctx);
ctx               399 libavfilter/vf_thumbnail_cuda.c     if (!ctx->outputs[0]->hw_frames_ctx)
ctx               405 libavfilter/vf_thumbnail_cuda.c         av_log(ctx, AV_LOG_ERROR, "Unsupported input format: %s\n", av_get_pix_fmt_name(hw_frames_ctx->sw_format));
ctx               412 libavfilter/vf_thumbnail_cuda.c static int query_formats(AVFilterContext *ctx)
ctx               421 libavfilter/vf_thumbnail_cuda.c     return ff_set_common_formats(ctx, fmts_list);
ctx                73 libavfilter/vf_tile.c static av_cold int init(AVFilterContext *ctx)
ctx                75 libavfilter/vf_tile.c     TileContext *tile = ctx->priv;
ctx                78 libavfilter/vf_tile.c         av_log(ctx, AV_LOG_ERROR, "Tile size %ux%u is insane.\n",
ctx                86 libavfilter/vf_tile.c             av_log(ctx, AV_LOG_ERROR, "Combination of Tile size %ux%u, padding %d and margin %d overflows.\n",
ctx                95 libavfilter/vf_tile.c         av_log(ctx, AV_LOG_ERROR, "nb_frames must be less than or equal to %dx%d=%d\n",
ctx               101 libavfilter/vf_tile.c         av_log(ctx, AV_LOG_WARNING, "overlap must be less than %d\n", tile->nb_frames);
ctx               106 libavfilter/vf_tile.c         av_log(ctx, AV_LOG_WARNING, "init_padding must be less than %d\n", tile->nb_frames);
ctx               114 libavfilter/vf_tile.c static int query_formats(AVFilterContext *ctx)
ctx               116 libavfilter/vf_tile.c     return ff_set_common_formats(ctx, ff_draw_supported_pixel_formats(0));
ctx               121 libavfilter/vf_tile.c     AVFilterContext *ctx = outlink->src;
ctx               122 libavfilter/vf_tile.c     TileContext *tile    = ctx->priv;
ctx               123 libavfilter/vf_tile.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               128 libavfilter/vf_tile.c         av_log(ctx, AV_LOG_ERROR, "Total width %ux%u is too much.\n",
ctx               133 libavfilter/vf_tile.c         av_log(ctx, AV_LOG_ERROR, "Total height %ux%u is too much.\n",
ctx               148 libavfilter/vf_tile.c static void get_tile_pos(AVFilterContext *ctx, unsigned *x, unsigned *y, unsigned current)
ctx               150 libavfilter/vf_tile.c     TileContext *tile    = ctx->priv;
ctx               151 libavfilter/vf_tile.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               159 libavfilter/vf_tile.c static void draw_blank_frame(AVFilterContext *ctx, AVFrame *out_buf)
ctx               161 libavfilter/vf_tile.c     TileContext *tile    = ctx->priv;
ctx               162 libavfilter/vf_tile.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               165 libavfilter/vf_tile.c     get_tile_pos(ctx, &x0, &y0, tile->current);
ctx               172 libavfilter/vf_tile.c static int end_last_frame(AVFilterContext *ctx)
ctx               174 libavfilter/vf_tile.c     TileContext *tile     = ctx->priv;
ctx               175 libavfilter/vf_tile.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               180 libavfilter/vf_tile.c         draw_blank_frame(ctx, out_buf);
ctx               197 libavfilter/vf_tile.c     AVFilterContext *ctx  = inlink->dst;
ctx               198 libavfilter/vf_tile.c     TileContext *tile     = ctx->priv;
ctx               199 libavfilter/vf_tile.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               225 libavfilter/vf_tile.c             get_tile_pos(ctx, &x1, &y1, i);
ctx               226 libavfilter/vf_tile.c             get_tile_pos(ctx, &x0, &y0, i - (tile->nb_frames - tile->overlap));
ctx               235 libavfilter/vf_tile.c     get_tile_pos(ctx, &x0, &y0, tile->current);
ctx               243 libavfilter/vf_tile.c         return end_last_frame(ctx);
ctx               250 libavfilter/vf_tile.c     AVFilterContext *ctx = outlink->src;
ctx               251 libavfilter/vf_tile.c     TileContext *tile    = ctx->priv;
ctx               252 libavfilter/vf_tile.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               257 libavfilter/vf_tile.c         r = end_last_frame(ctx);
ctx               261 libavfilter/vf_tile.c static av_cold void uninit(AVFilterContext *ctx)
ctx               263 libavfilter/vf_tile.c     TileContext *tile = ctx->priv;
ctx                90 libavfilter/vf_tinterlace.c static int query_formats(AVFilterContext *ctx)
ctx               109 libavfilter/vf_tinterlace.c     return ff_set_common_formats(ctx, fmts_list);
ctx               206 libavfilter/vf_tinterlace.c static av_cold void uninit(AVFilterContext *ctx)
ctx               208 libavfilter/vf_tinterlace.c     TInterlaceContext *tinterlace = ctx->priv;
ctx               217 libavfilter/vf_tinterlace.c     AVFilterContext *ctx = outlink->src;
ctx               220 libavfilter/vf_tinterlace.c     TInterlaceContext *tinterlace = ctx->priv;
ctx               249 libavfilter/vf_tinterlace.c         av_log(ctx, AV_LOG_WARNING, "low_pass_filter flags ignored with mode %d\n",
ctx               291 libavfilter/vf_tinterlace.c     av_log(ctx, AV_LOG_VERBOSE, "mode:%d filter:%s h:%d -> h:%d\n", tinterlace->mode,
ctx               365 libavfilter/vf_tinterlace.c     AVFilterContext *ctx = inlink->dst;
ctx               366 libavfilter/vf_tinterlace.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               367 libavfilter/vf_tinterlace.c     TInterlaceContext *tinterlace = ctx->priv;
ctx               444 libavfilter/vf_tinterlace.c             av_log(ctx, AV_LOG_WARNING,
ctx               525 libavfilter/vf_tinterlace.c static int init_interlace(AVFilterContext *ctx)
ctx               527 libavfilter/vf_tinterlace.c     TInterlaceContext *tinterlace = ctx->priv;
ctx                80 libavfilter/vf_tonemap.c static int query_formats(AVFilterContext *ctx)
ctx                82 libavfilter/vf_tonemap.c     return ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx                85 libavfilter/vf_tonemap.c static av_cold int init(AVFilterContext *ctx)
ctx                87 libavfilter/vf_tonemap.c     TonemapContext *s = ctx->priv;
ctx               200 libavfilter/vf_tonemap.c static int tonemap_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               202 libavfilter/vf_tonemap.c     TonemapContext *s = ctx->priv;
ctx               220 libavfilter/vf_tonemap.c     AVFilterContext *ctx = link->dst;
ctx               221 libavfilter/vf_tonemap.c     TonemapContext *s = ctx->priv;
ctx               222 libavfilter/vf_tonemap.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               278 libavfilter/vf_tonemap.c     ctx->internal->execute(ctx, tonemap_slice, &td, NULL, FFMIN(in->height, ff_filter_get_nb_threads(ctx)));
ctx               121 libavfilter/vf_tonemap_opencl.c     TonemapOpenCLContext *ctx = avctx->priv;
ctx               132 libavfilter/vf_tonemap_opencl.c     switch(ctx->tonemap) {
ctx               134 libavfilter/vf_tonemap_opencl.c         if (isnan(ctx->param))
ctx               135 libavfilter/vf_tonemap_opencl.c             ctx->param = 1.8f;
ctx               138 libavfilter/vf_tonemap_opencl.c         if (!isnan(ctx->param))
ctx               139 libavfilter/vf_tonemap_opencl.c             ctx->param = (1.0f - ctx->param) / ctx->param;
ctx               142 libavfilter/vf_tonemap_opencl.c         if (isnan(ctx->param))
ctx               143 libavfilter/vf_tonemap_opencl.c             ctx->param = 0.3f;
ctx               147 libavfilter/vf_tonemap_opencl.c     if (isnan(ctx->param))
ctx               148 libavfilter/vf_tonemap_opencl.c         ctx->param = 1.0f;
ctx               151 libavfilter/vf_tonemap_opencl.c     ctx->target_peak = 1.0f;
ctx               152 libavfilter/vf_tonemap_opencl.c     av_log(ctx, AV_LOG_DEBUG, "tone mapping transfer from %s to %s\n",
ctx               153 libavfilter/vf_tonemap_opencl.c            av_color_transfer_name(ctx->trc_in),
ctx               154 libavfilter/vf_tonemap_opencl.c            av_color_transfer_name(ctx->trc_out));
ctx               155 libavfilter/vf_tonemap_opencl.c     av_log(ctx, AV_LOG_DEBUG, "mapping colorspace from %s to %s\n",
ctx               156 libavfilter/vf_tonemap_opencl.c            av_color_space_name(ctx->colorspace_in),
ctx               157 libavfilter/vf_tonemap_opencl.c            av_color_space_name(ctx->colorspace_out));
ctx               158 libavfilter/vf_tonemap_opencl.c     av_log(ctx, AV_LOG_DEBUG, "mapping primaries from %s to %s\n",
ctx               159 libavfilter/vf_tonemap_opencl.c            av_color_primaries_name(ctx->primaries_in),
ctx               160 libavfilter/vf_tonemap_opencl.c            av_color_primaries_name(ctx->primaries_out));
ctx               161 libavfilter/vf_tonemap_opencl.c     av_log(ctx, AV_LOG_DEBUG, "mapping range from %s to %s\n",
ctx               162 libavfilter/vf_tonemap_opencl.c            av_color_range_name(ctx->range_in),
ctx               163 libavfilter/vf_tonemap_opencl.c            av_color_range_name(ctx->range_out));
ctx               166 libavfilter/vf_tonemap_opencl.c     av_assert0(ctx->trc_out == AVCOL_TRC_BT709 ||
ctx               167 libavfilter/vf_tonemap_opencl.c                ctx->trc_out == AVCOL_TRC_BT2020_10);
ctx               168 libavfilter/vf_tonemap_opencl.c     av_assert0(ctx->trc_in == AVCOL_TRC_SMPTE2084||
ctx               169 libavfilter/vf_tonemap_opencl.c                ctx->trc_in == AVCOL_TRC_ARIB_STD_B67);
ctx               170 libavfilter/vf_tonemap_opencl.c     av_assert0(ctx->colorspace_in == AVCOL_SPC_BT2020_NCL ||
ctx               171 libavfilter/vf_tonemap_opencl.c                ctx->colorspace_in == AVCOL_SPC_BT709);
ctx               172 libavfilter/vf_tonemap_opencl.c     av_assert0(ctx->primaries_in == AVCOL_PRI_BT2020 ||
ctx               173 libavfilter/vf_tonemap_opencl.c                ctx->primaries_in == AVCOL_PRI_BT709);
ctx               176 libavfilter/vf_tonemap_opencl.c                ctx->param);
ctx               178 libavfilter/vf_tonemap_opencl.c                ctx->desat_param);
ctx               180 libavfilter/vf_tonemap_opencl.c                ctx->target_peak);
ctx               183 libavfilter/vf_tonemap_opencl.c                ctx->scene_threshold);
ctx               184 libavfilter/vf_tonemap_opencl.c     av_bprintf(&header, "#define TONE_FUNC %s\n", tonemap_func[ctx->tonemap]);
ctx               187 libavfilter/vf_tonemap_opencl.c     if (ctx->primaries_out != ctx->primaries_in) {
ctx               188 libavfilter/vf_tonemap_opencl.c         get_rgb2rgb_matrix(ctx->primaries_in, ctx->primaries_out, rgb2rgb);
ctx               191 libavfilter/vf_tonemap_opencl.c     if (ctx->range_in == AVCOL_RANGE_JPEG)
ctx               194 libavfilter/vf_tonemap_opencl.c     if (ctx->range_out == AVCOL_RANGE_JPEG)
ctx               197 libavfilter/vf_tonemap_opencl.c     av_bprintf(&header, "#define chroma_loc %d\n", (int)ctx->chroma_loc);
ctx               205 libavfilter/vf_tonemap_opencl.c     luma_src = ff_get_luma_coefficients(ctx->colorspace_in);
ctx               209 libavfilter/vf_tonemap_opencl.c                ctx->colorspace_in, av_color_space_name(ctx->colorspace_in));
ctx               213 libavfilter/vf_tonemap_opencl.c     luma_dst = ff_get_luma_coefficients(ctx->colorspace_out);
ctx               217 libavfilter/vf_tonemap_opencl.c                ctx->colorspace_out, av_color_space_name(ctx->colorspace_out));
ctx               233 libavfilter/vf_tonemap_opencl.c     av_bprintf(&header, "#define linearize %s\n", linearize_funcs[ctx->trc_in]);
ctx               235 libavfilter/vf_tonemap_opencl.c                delinearize_funcs[ctx->trc_out]);
ctx               237 libavfilter/vf_tonemap_opencl.c     if (ctx->trc_in == AVCOL_TRC_ARIB_STD_B67)
ctx               240 libavfilter/vf_tonemap_opencl.c     if (ctx->trc_out == AVCOL_TRC_ARIB_STD_B67)
ctx               253 libavfilter/vf_tonemap_opencl.c     ctx->command_queue = clCreateCommandQueue(ctx->ocf.hwctx->context,
ctx               254 libavfilter/vf_tonemap_opencl.c                                               ctx->ocf.hwctx->device_id,
ctx               259 libavfilter/vf_tonemap_opencl.c     ctx->kernel = clCreateKernel(ctx->ocf.program, "tonemap", &cle);
ctx               262 libavfilter/vf_tonemap_opencl.c     ctx->util_mem =
ctx               263 libavfilter/vf_tonemap_opencl.c         clCreateBuffer(ctx->ocf.hwctx->context, 0,
ctx               268 libavfilter/vf_tonemap_opencl.c     ctx->initialised = 1;
ctx               273 libavfilter/vf_tonemap_opencl.c     if (ctx->util_mem)
ctx               274 libavfilter/vf_tonemap_opencl.c         clReleaseMemObject(ctx->util_mem);
ctx               275 libavfilter/vf_tonemap_opencl.c     if (ctx->command_queue)
ctx               276 libavfilter/vf_tonemap_opencl.c         clReleaseCommandQueue(ctx->command_queue);
ctx               277 libavfilter/vf_tonemap_opencl.c     if (ctx->kernel)
ctx               278 libavfilter/vf_tonemap_opencl.c         clReleaseKernel(ctx->kernel);
ctx               308 libavfilter/vf_tonemap_opencl.c     TonemapOpenCLContext *ctx = avctx->priv;
ctx               318 libavfilter/vf_tonemap_opencl.c     CL_SET_KERNEL_ARG(kernel, 4, cl_mem, &ctx->util_mem);
ctx               329 libavfilter/vf_tonemap_opencl.c     cle = clEnqueueNDRangeKernel(ctx->command_queue, kernel, 2, NULL,
ctx               342 libavfilter/vf_tonemap_opencl.c     TonemapOpenCLContext *ctx = avctx->priv;
ctx               346 libavfilter/vf_tonemap_opencl.c     double peak = ctx->peak;
ctx               351 libavfilter/vf_tonemap_opencl.c     av_log(ctx, AV_LOG_DEBUG, "Filter input: %s, %ux%u (%"PRId64").\n",
ctx               371 libavfilter/vf_tonemap_opencl.c     if (ctx->trc != -1)
ctx               372 libavfilter/vf_tonemap_opencl.c         output->color_trc = ctx->trc;
ctx               373 libavfilter/vf_tonemap_opencl.c     if (ctx->primaries != -1)
ctx               374 libavfilter/vf_tonemap_opencl.c         output->color_primaries = ctx->primaries;
ctx               375 libavfilter/vf_tonemap_opencl.c     if (ctx->colorspace != -1)
ctx               376 libavfilter/vf_tonemap_opencl.c         output->colorspace = ctx->colorspace;
ctx               377 libavfilter/vf_tonemap_opencl.c     if (ctx->range != -1)
ctx               378 libavfilter/vf_tonemap_opencl.c         output->color_range = ctx->range;
ctx               380 libavfilter/vf_tonemap_opencl.c     ctx->trc_in = input->color_trc;
ctx               381 libavfilter/vf_tonemap_opencl.c     ctx->trc_out = output->color_trc;
ctx               382 libavfilter/vf_tonemap_opencl.c     ctx->colorspace_in = input->colorspace;
ctx               383 libavfilter/vf_tonemap_opencl.c     ctx->colorspace_out = output->colorspace;
ctx               384 libavfilter/vf_tonemap_opencl.c     ctx->primaries_in = input->color_primaries;
ctx               385 libavfilter/vf_tonemap_opencl.c     ctx->primaries_out = output->color_primaries;
ctx               386 libavfilter/vf_tonemap_opencl.c     ctx->range_in = input->color_range;
ctx               387 libavfilter/vf_tonemap_opencl.c     ctx->range_out = output->color_range;
ctx               388 libavfilter/vf_tonemap_opencl.c     ctx->chroma_loc = output->chroma_location;
ctx               390 libavfilter/vf_tonemap_opencl.c     if (!ctx->initialised) {
ctx               393 libavfilter/vf_tonemap_opencl.c             av_log(ctx, AV_LOG_ERROR, "unsupported transfer function characteristic.\n");
ctx               399 libavfilter/vf_tonemap_opencl.c             av_log(ctx, AV_LOG_ERROR, "unsupported format in tonemap_opencl.\n");
ctx               411 libavfilter/vf_tonemap_opencl.c         err = launch_kernel(avctx, ctx->kernel, output, input, peak);
ctx               419 libavfilter/vf_tonemap_opencl.c     cle = clFinish(ctx->command_queue);
ctx               424 libavfilter/vf_tonemap_opencl.c     ff_update_hdr_metadata(output, ctx->target_peak);
ctx               426 libavfilter/vf_tonemap_opencl.c     av_log(ctx, AV_LOG_DEBUG, "Tone-mapping output: %s, %ux%u (%"PRId64").\n",
ctx               434 libavfilter/vf_tonemap_opencl.c         ptr = (void *)clEnqueueMapBuffer(ctx->command_queue, ctx->util_mem,
ctx               444 libavfilter/vf_tonemap_opencl.c             av_log(ctx, AV_LOG_DEBUG, "peak %f, avg %f will be used for next frame\n",
ctx               446 libavfilter/vf_tonemap_opencl.c             clEnqueueUnmapMemObject(ctx->command_queue, ctx->util_mem, ptr, 0,
ctx               455 libavfilter/vf_tonemap_opencl.c     clFinish(ctx->command_queue);
ctx               463 libavfilter/vf_tonemap_opencl.c     TonemapOpenCLContext *ctx = avctx->priv;
ctx               466 libavfilter/vf_tonemap_opencl.c     if (ctx->util_mem)
ctx               467 libavfilter/vf_tonemap_opencl.c         clReleaseMemObject(ctx->util_mem);
ctx               468 libavfilter/vf_tonemap_opencl.c     if (ctx->kernel) {
ctx               469 libavfilter/vf_tonemap_opencl.c         cle = clReleaseKernel(ctx->kernel);
ctx               475 libavfilter/vf_tonemap_opencl.c     if (ctx->command_queue) {
ctx               476 libavfilter/vf_tonemap_opencl.c         cle = clReleaseCommandQueue(ctx->command_queue);
ctx                52 libavfilter/vf_tonemap_vaapi.c     HDRVAAPIContext *ctx = avctx->priv;
ctx                60 libavfilter/vf_tonemap_vaapi.c     ctx->src_display = av_frame_get_side_data(input_frame,
ctx                62 libavfilter/vf_tonemap_vaapi.c     if (ctx->src_display) {
ctx                63 libavfilter/vf_tonemap_vaapi.c         hdr_meta = (AVMasteringDisplayMetadata *)ctx->src_display->data;
ctx                71 libavfilter/vf_tonemap_vaapi.c             ctx->in_metadata.max_display_mastering_luminance =
ctx                73 libavfilter/vf_tonemap_vaapi.c             ctx->in_metadata.min_display_mastering_luminance =
ctx                75 libavfilter/vf_tonemap_vaapi.c                       ctx->in_metadata.max_display_mastering_luminance);
ctx                81 libavfilter/vf_tonemap_vaapi.c                    ctx->in_metadata.min_display_mastering_luminance,
ctx                82 libavfilter/vf_tonemap_vaapi.c                    ctx->in_metadata.max_display_mastering_luminance);
ctx                92 libavfilter/vf_tonemap_vaapi.c                 ctx->in_metadata.display_primaries_x[i] =
ctx                96 libavfilter/vf_tonemap_vaapi.c                 ctx->in_metadata.display_primaries_y[i] =
ctx               102 libavfilter/vf_tonemap_vaapi.c             ctx->in_metadata.white_point_x =
ctx               105 libavfilter/vf_tonemap_vaapi.c             ctx->in_metadata.white_point_y =
ctx               113 libavfilter/vf_tonemap_vaapi.c                    ctx->in_metadata.display_primaries_x[0],
ctx               114 libavfilter/vf_tonemap_vaapi.c                    ctx->in_metadata.display_primaries_y[0],
ctx               115 libavfilter/vf_tonemap_vaapi.c                    ctx->in_metadata.display_primaries_x[1],
ctx               116 libavfilter/vf_tonemap_vaapi.c                    ctx->in_metadata.display_primaries_y[1],
ctx               117 libavfilter/vf_tonemap_vaapi.c                    ctx->in_metadata.display_primaries_x[2],
ctx               118 libavfilter/vf_tonemap_vaapi.c                    ctx->in_metadata.display_primaries_y[2],
ctx               119 libavfilter/vf_tonemap_vaapi.c                    ctx->in_metadata.white_point_x,
ctx               120 libavfilter/vf_tonemap_vaapi.c                    ctx->in_metadata.white_point_y);
ctx               127 libavfilter/vf_tonemap_vaapi.c     ctx->src_light = av_frame_get_side_data(input_frame,
ctx               129 libavfilter/vf_tonemap_vaapi.c     if (ctx->src_light) {
ctx               130 libavfilter/vf_tonemap_vaapi.c         light_meta = (AVContentLightMetadata *)ctx->src_light->data;
ctx               136 libavfilter/vf_tonemap_vaapi.c         ctx->in_metadata.max_content_light_level = light_meta->MaxCLL;
ctx               137 libavfilter/vf_tonemap_vaapi.c         ctx->in_metadata.max_pic_average_light_level = light_meta->MaxFALL;
ctx               143 libavfilter/vf_tonemap_vaapi.c                ctx->in_metadata.max_content_light_level,
ctx               144 libavfilter/vf_tonemap_vaapi.c                ctx->in_metadata.max_pic_average_light_level);
ctx               154 libavfilter/vf_tonemap_vaapi.c     HDRVAAPIContext *ctx       = avctx->priv;
ctx               167 libavfilter/vf_tonemap_vaapi.c     memcpy(hdrtm_param->data.metadata, &ctx->in_metadata, sizeof(VAHdrMetaDataHDR10));
ctx               182 libavfilter/vf_tonemap_vaapi.c     HDRVAAPIContext *ctx       = avctx->priv;
ctx               190 libavfilter/vf_tonemap_vaapi.c     memset(&ctx->in_metadata, 0, sizeof(ctx->in_metadata));
ctx               226 libavfilter/vf_tonemap_vaapi.c     hdrtm_param.data.metadata      = &ctx->in_metadata;
ctx               239 libavfilter/vf_tonemap_vaapi.c     HDRVAAPIContext *ctx       = avctx->priv;
ctx               283 libavfilter/vf_tonemap_vaapi.c     if (ctx->color_primaries != AVCOL_PRI_UNSPECIFIED)
ctx               284 libavfilter/vf_tonemap_vaapi.c         output_frame->color_primaries = ctx->color_primaries;
ctx               286 libavfilter/vf_tonemap_vaapi.c     if (ctx->color_transfer != AVCOL_TRC_UNSPECIFIED)
ctx               287 libavfilter/vf_tonemap_vaapi.c         output_frame->color_trc = ctx->color_transfer;
ctx               291 libavfilter/vf_tonemap_vaapi.c     if (ctx->color_matrix != AVCOL_SPC_UNSPECIFIED)
ctx               292 libavfilter/vf_tonemap_vaapi.c         output_frame->colorspace = ctx->color_matrix;
ctx               320 libavfilter/vf_tonemap_vaapi.c     HDRVAAPIContext *ctx     = avctx->priv;
ctx               326 libavfilter/vf_tonemap_vaapi.c     if (ctx->output_format_string) {
ctx               327 libavfilter/vf_tonemap_vaapi.c         vpp_ctx->output_format = av_get_pix_fmt(ctx->output_format_string);
ctx               342 libavfilter/vf_tonemap_vaapi.c         if (ctx->var_name ## _string) { \
ctx               343 libavfilter/vf_tonemap_vaapi.c             int var = av_ ## func_name ## _from_name(ctx->var_name ## _string); \
ctx               348 libavfilter/vf_tonemap_vaapi.c             ctx->var_name = var; \
ctx               350 libavfilter/vf_tonemap_vaapi.c             ctx->var_name = default_value; \
ctx                67 libavfilter/vf_tpad.c static int query_formats(AVFilterContext *ctx)
ctx                69 libavfilter/vf_tpad.c     return ff_set_common_formats(ctx, ff_draw_supported_pixel_formats(0));
ctx                72 libavfilter/vf_tpad.c static int activate(AVFilterContext *ctx)
ctx                74 libavfilter/vf_tpad.c     AVFilterLink *inlink = ctx->inputs[0];
ctx                75 libavfilter/vf_tpad.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                76 libavfilter/vf_tpad.c     TPadContext *s = ctx->priv;
ctx               170 libavfilter/vf_tpad.c     AVFilterContext *ctx = inlink->dst;
ctx               171 libavfilter/vf_tpad.c     TPadContext *s = ctx->priv;
ctx               184 libavfilter/vf_tpad.c static av_cold void uninit(AVFilterContext *ctx)
ctx               186 libavfilter/vf_tpad.c     TPadContext *s = ctx->priv;
ctx                55 libavfilter/vf_transpose.c static int query_formats(AVFilterContext *ctx)
ctx                71 libavfilter/vf_transpose.c     return ff_set_common_formats(ctx, pix_fmts);
ctx               179 libavfilter/vf_transpose.c     AVFilterContext *ctx = outlink->src;
ctx               180 libavfilter/vf_transpose.c     TransContext *s = ctx->priv;
ctx               181 libavfilter/vf_transpose.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               186 libavfilter/vf_transpose.c         av_log(ctx, AV_LOG_WARNING,
ctx               194 libavfilter/vf_transpose.c         av_log(ctx, AV_LOG_VERBOSE,
ctx               246 libavfilter/vf_transpose.c     av_log(ctx, AV_LOG_VERBOSE,
ctx               267 libavfilter/vf_transpose.c static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr,
ctx               270 libavfilter/vf_transpose.c     TransContext *s = ctx->priv;
ctx               331 libavfilter/vf_transpose.c     AVFilterContext *ctx = inlink->dst;
ctx               332 libavfilter/vf_transpose.c     TransContext *s = ctx->priv;
ctx               333 libavfilter/vf_transpose.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               355 libavfilter/vf_transpose.c     ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx)));
ctx                36 libavfilter/vf_transpose_npp.c #define CHECK_CU(x) FF_CUDA_CHECK_DL(ctx, device_hwctx->internal->cuda_dl, x)
ctx                83 libavfilter/vf_transpose_npp.c static int npptranspose_init(AVFilterContext *ctx)
ctx                85 libavfilter/vf_transpose_npp.c     NPPTransposeContext *s = ctx->priv;
ctx               101 libavfilter/vf_transpose_npp.c static void npptranspose_uninit(AVFilterContext *ctx)
ctx               103 libavfilter/vf_transpose_npp.c     NPPTransposeContext *s = ctx->priv;
ctx               114 libavfilter/vf_transpose_npp.c static int npptranspose_query_formats(AVFilterContext *ctx)
ctx               121 libavfilter/vf_transpose_npp.c     return ff_set_common_formats(ctx, pix_fmts);
ctx               188 libavfilter/vf_transpose_npp.c static int init_processing_chain(AVFilterContext *ctx, int in_width, int in_height,
ctx               191 libavfilter/vf_transpose_npp.c     NPPTransposeContext *s = ctx->priv;
ctx               198 libavfilter/vf_transpose_npp.c     if (!ctx->inputs[0]->hw_frames_ctx) {
ctx               199 libavfilter/vf_transpose_npp.c         av_log(ctx, AV_LOG_ERROR, "No hw context provided on input\n");
ctx               203 libavfilter/vf_transpose_npp.c     in_frames_ctx = (AVHWFramesContext*)ctx->inputs[0]->hw_frames_ctx->data;
ctx               207 libavfilter/vf_transpose_npp.c         av_log(ctx, AV_LOG_ERROR, "Unsupported input format: %s\n",
ctx               248 libavfilter/vf_transpose_npp.c         ctx->outputs[0]->hw_frames_ctx = av_buffer_ref(s->stages[last_stage].frames_ctx);
ctx               250 libavfilter/vf_transpose_npp.c         ctx->outputs[0]->hw_frames_ctx = av_buffer_ref(ctx->inputs[0]->hw_frames_ctx);
ctx               254 libavfilter/vf_transpose_npp.c     if (!ctx->outputs[0]->hw_frames_ctx)
ctx               262 libavfilter/vf_transpose_npp.c     AVFilterContext *ctx   = outlink->src;
ctx               263 libavfilter/vf_transpose_npp.c     AVFilterLink *inlink   = ctx->inputs[0];
ctx               264 libavfilter/vf_transpose_npp.c     NPPTransposeContext *s = ctx->priv;
ctx               276 libavfilter/vf_transpose_npp.c         av_log(ctx, AV_LOG_VERBOSE,
ctx               288 libavfilter/vf_transpose_npp.c     ret = init_processing_chain(ctx, inlink->w, inlink->h, outlink->w, outlink->h);
ctx               292 libavfilter/vf_transpose_npp.c     av_log(ctx, AV_LOG_VERBOSE, "w:%d h:%d -transpose-> w:%d h:%d\n",
ctx               298 libavfilter/vf_transpose_npp.c static int npptranspose_rotate(AVFilterContext *ctx, NPPTransposeStageContext *stage,
ctx               301 libavfilter/vf_transpose_npp.c     NPPTransposeContext *s = ctx->priv;
ctx               324 libavfilter/vf_transpose_npp.c             av_log(ctx, AV_LOG_ERROR, "NPP rotate error: %d\n", err);
ctx               332 libavfilter/vf_transpose_npp.c static int npptranspose_transpose(AVFilterContext *ctx, NPPTransposeStageContext *stage,
ctx               346 libavfilter/vf_transpose_npp.c             av_log(ctx, AV_LOG_ERROR, "NPP transpose error: %d\n", err);
ctx               354 libavfilter/vf_transpose_npp.c static int (*const npptranspose_process[])(AVFilterContext *ctx, NPPTransposeStageContext *stage,
ctx               360 libavfilter/vf_transpose_npp.c static int npptranspose_filter(AVFilterContext *ctx, AVFrame *out, AVFrame *in)
ctx               362 libavfilter/vf_transpose_npp.c     NPPTransposeContext *s = ctx->priv;
ctx               370 libavfilter/vf_transpose_npp.c         ret = npptranspose_process[i](ctx, &s->stages[i], s->stages[i].frame, src);
ctx               397 libavfilter/vf_transpose_npp.c     AVFilterContext              *ctx = link->dst;
ctx               398 libavfilter/vf_transpose_npp.c     NPPTransposeContext            *s = ctx->priv;
ctx               399 libavfilter/vf_transpose_npp.c     AVFilterLink             *outlink = ctx->outputs[0];
ctx               419 libavfilter/vf_transpose_npp.c     ret = npptranspose_filter(ctx, out, in);
ctx                45 libavfilter/vf_transpose_opencl.c     TransposeOpenCLContext *ctx = avctx->priv;
ctx                53 libavfilter/vf_transpose_opencl.c     ctx->command_queue = clCreateCommandQueue(ctx->ocf.hwctx->context,
ctx                54 libavfilter/vf_transpose_opencl.c                                               ctx->ocf.hwctx->device_id,
ctx                59 libavfilter/vf_transpose_opencl.c     ctx->kernel = clCreateKernel(ctx->ocf.program, "transpose", &cle);
ctx                63 libavfilter/vf_transpose_opencl.c     ctx->initialised = 1;
ctx                67 libavfilter/vf_transpose_opencl.c     if (ctx->command_queue)
ctx                68 libavfilter/vf_transpose_opencl.c         clReleaseCommandQueue(ctx->command_queue);
ctx                69 libavfilter/vf_transpose_opencl.c     if (ctx->kernel)
ctx                70 libavfilter/vf_transpose_opencl.c         clReleaseKernel(ctx->kernel);
ctx               139 libavfilter/vf_transpose_opencl.c     TransposeOpenCLContext *ctx = avctx->priv;
ctx               146 libavfilter/vf_transpose_opencl.c     av_log(ctx, AV_LOG_DEBUG, "Filter input: %s, %ux%u (%"PRId64").\n",
ctx               153 libavfilter/vf_transpose_opencl.c     if (ctx->passthrough)
ctx               173 libavfilter/vf_transpose_opencl.c     if (!ctx->initialised) {
ctx               185 libavfilter/vf_transpose_opencl.c         CL_SET_KERNEL_ARG(ctx->kernel, 0, cl_mem, &dst);
ctx               186 libavfilter/vf_transpose_opencl.c         CL_SET_KERNEL_ARG(ctx->kernel, 1, cl_mem, &src);
ctx               187 libavfilter/vf_transpose_opencl.c         CL_SET_KERNEL_ARG(ctx->kernel, 2, cl_int, &ctx->dir);
ctx               192 libavfilter/vf_transpose_opencl.c         cle = clEnqueueNDRangeKernel(ctx->command_queue, ctx->kernel, 2, NULL,
ctx               197 libavfilter/vf_transpose_opencl.c     cle = clFinish(ctx->command_queue);
ctx               202 libavfilter/vf_transpose_opencl.c     av_log(ctx, AV_LOG_DEBUG, "Filter output: %s, %ux%u (%"PRId64").\n",
ctx               209 libavfilter/vf_transpose_opencl.c     clFinish(ctx->command_queue);
ctx               217 libavfilter/vf_transpose_opencl.c     TransposeOpenCLContext *ctx = avctx->priv;
ctx               220 libavfilter/vf_transpose_opencl.c     if (ctx->kernel) {
ctx               221 libavfilter/vf_transpose_opencl.c         cle = clReleaseKernel(ctx->kernel);
ctx               227 libavfilter/vf_transpose_opencl.c     if (ctx->command_queue) {
ctx               228 libavfilter/vf_transpose_opencl.c         cle = clReleaseCommandQueue(ctx->command_queue);
ctx                43 libavfilter/vf_transpose_vaapi.c     TransposeVAAPIContext *ctx = avctx->priv;
ctx                64 libavfilter/vf_transpose_vaapi.c     switch (ctx->dir) {
ctx                66 libavfilter/vf_transpose_vaapi.c         ctx->rotation_state = VA_ROTATION_270;
ctx                67 libavfilter/vf_transpose_vaapi.c         ctx->mirror_state   = VA_MIRROR_VERTICAL;
ctx                70 libavfilter/vf_transpose_vaapi.c         ctx->rotation_state = VA_ROTATION_90;
ctx                71 libavfilter/vf_transpose_vaapi.c         ctx->mirror_state   = VA_MIRROR_NONE;
ctx                74 libavfilter/vf_transpose_vaapi.c         ctx->rotation_state = VA_ROTATION_270;
ctx                75 libavfilter/vf_transpose_vaapi.c         ctx->mirror_state   = VA_MIRROR_NONE;
ctx                78 libavfilter/vf_transpose_vaapi.c         ctx->rotation_state = VA_ROTATION_90;
ctx                79 libavfilter/vf_transpose_vaapi.c         ctx->mirror_state   = VA_MIRROR_VERTICAL;
ctx                82 libavfilter/vf_transpose_vaapi.c         ctx->rotation_state = VA_ROTATION_180;
ctx                83 libavfilter/vf_transpose_vaapi.c         ctx->mirror_state   = VA_MIRROR_NONE;
ctx                86 libavfilter/vf_transpose_vaapi.c         ctx->rotation_state = VA_ROTATION_NONE;
ctx                87 libavfilter/vf_transpose_vaapi.c         ctx->mirror_state   = VA_MIRROR_HORIZONTAL;
ctx                90 libavfilter/vf_transpose_vaapi.c         ctx->rotation_state = VA_ROTATION_NONE;
ctx                91 libavfilter/vf_transpose_vaapi.c         ctx->mirror_state   = VA_MIRROR_VERTICAL;
ctx                94 libavfilter/vf_transpose_vaapi.c         av_log(avctx, AV_LOG_ERROR, "Failed to set direction to %d\n", ctx->dir);
ctx                98 libavfilter/vf_transpose_vaapi.c     if (VA_ROTATION_NONE != ctx->rotation_state) {
ctx                99 libavfilter/vf_transpose_vaapi.c         support_flag = pipeline_caps.rotation_flags & (1 << ctx->rotation_state);
ctx               102 libavfilter/vf_transpose_vaapi.c                    ctx->rotation_state);
ctx               107 libavfilter/vf_transpose_vaapi.c     if (VA_MIRROR_NONE != ctx->mirror_state) {
ctx               108 libavfilter/vf_transpose_vaapi.c         support_flag = pipeline_caps.mirror_flags & ctx->mirror_state;
ctx               111 libavfilter/vf_transpose_vaapi.c                    ctx->mirror_state);
ctx               124 libavfilter/vf_transpose_vaapi.c     TransposeVAAPIContext *ctx = avctx->priv;
ctx               129 libavfilter/vf_transpose_vaapi.c     if (ctx->passthrough)
ctx               155 libavfilter/vf_transpose_vaapi.c     params.rotation_state = ctx->rotation_state;
ctx               156 libavfilter/vf_transpose_vaapi.c     params.mirror_state   = ctx->mirror_state;
ctx               192 libavfilter/vf_transpose_vaapi.c     TransposeVAAPIContext *ctx = avctx->priv;
ctx               195 libavfilter/vf_transpose_vaapi.c     if ((inlink->w >= inlink->h && ctx->passthrough == TRANSPOSE_PT_TYPE_LANDSCAPE) ||
ctx               196 libavfilter/vf_transpose_vaapi.c         (inlink->w <= inlink->h && ctx->passthrough == TRANSPOSE_PT_TYPE_PORTRAIT)) {
ctx               206 libavfilter/vf_transpose_vaapi.c     ctx->passthrough = TRANSPOSE_PT_TYPE_NONE;
ctx               208 libavfilter/vf_transpose_vaapi.c     switch (ctx->dir) {
ctx               226 libavfilter/vf_transpose_vaapi.c     TransposeVAAPIContext *ctx = inlink->dst->priv;
ctx               228 libavfilter/vf_transpose_vaapi.c     return ctx->passthrough ?
ctx                60 libavfilter/vf_unsharp.c static int unsharp_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               136 libavfilter/vf_unsharp.c static int apply_unsharp_c(AVFilterContext *ctx, AVFrame *in, AVFrame *out)
ctx               138 libavfilter/vf_unsharp.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               139 libavfilter/vf_unsharp.c     UnsharpContext *s = ctx->priv;
ctx               158 libavfilter/vf_unsharp.c         ctx->internal->execute(ctx, unsharp_slice, &td, NULL, FFMIN(plane_h[i], s->nb_threads));
ctx               175 libavfilter/vf_unsharp.c static av_cold int init(AVFilterContext *ctx)
ctx               177 libavfilter/vf_unsharp.c     UnsharpContext *s = ctx->priv;
ctx               183 libavfilter/vf_unsharp.c         av_log(ctx, AV_LOG_ERROR, "luma or chroma matrix size too big\n");
ctx               190 libavfilter/vf_unsharp.c static int query_formats(AVFilterContext *ctx)
ctx               201 libavfilter/vf_unsharp.c     return ff_set_common_formats(ctx, fmts_list);
ctx               204 libavfilter/vf_unsharp.c static int init_filter_param(AVFilterContext *ctx, UnsharpFilterParam *fp, const char *effect_type, int width)
ctx               207 libavfilter/vf_unsharp.c     UnsharpContext *s = ctx->priv;
ctx               211 libavfilter/vf_unsharp.c         av_log(ctx, AV_LOG_ERROR,
ctx               217 libavfilter/vf_unsharp.c     av_log(ctx, AV_LOG_VERBOSE, "effect:%s type:%s msize_x:%d msize_y:%d amount:%0.2f\n",
ctx               269 libavfilter/vf_unsharp.c static av_cold void uninit(AVFilterContext *ctx)
ctx               271 libavfilter/vf_unsharp.c     UnsharpContext *s = ctx->priv;
ctx                68 libavfilter/vf_unsharp_opencl.c     UnsharpOpenCLContext *ctx = avctx->priv;
ctx                76 libavfilter/vf_unsharp_opencl.c     ctx->command_queue = clCreateCommandQueue(ctx->ocf.hwctx->context,
ctx                77 libavfilter/vf_unsharp_opencl.c                                               ctx->ocf.hwctx->device_id,
ctx                83 libavfilter/vf_unsharp_opencl.c     ctx->global = (ctx->luma_size_x   > 17.0f ||
ctx                84 libavfilter/vf_unsharp_opencl.c                    ctx->luma_size_y   > 17.0f ||
ctx                85 libavfilter/vf_unsharp_opencl.c                    ctx->chroma_size_x > 17.0f ||
ctx                86 libavfilter/vf_unsharp_opencl.c                    ctx->chroma_size_y > 17.0f);
ctx                88 libavfilter/vf_unsharp_opencl.c     ctx->kernel = clCreateKernel(ctx->ocf.program,
ctx                89 libavfilter/vf_unsharp_opencl.c                                  ctx->global ? "unsharp_global"
ctx                93 libavfilter/vf_unsharp_opencl.c     ctx->initialised = 1;
ctx                97 libavfilter/vf_unsharp_opencl.c     if (ctx->command_queue)
ctx                98 libavfilter/vf_unsharp_opencl.c         clReleaseCommandQueue(ctx->command_queue);
ctx                99 libavfilter/vf_unsharp_opencl.c     if (ctx->kernel)
ctx               100 libavfilter/vf_unsharp_opencl.c         clReleaseKernel(ctx->kernel);
ctx               106 libavfilter/vf_unsharp_opencl.c     UnsharpOpenCLContext *ctx = avctx->priv;
ctx               116 libavfilter/vf_unsharp_opencl.c     desc = av_pix_fmt_desc_get(ctx->ocf.output_format);
ctx               118 libavfilter/vf_unsharp_opencl.c     ctx->nb_planes = 0;
ctx               120 libavfilter/vf_unsharp_opencl.c         ctx->nb_planes = FFMAX(ctx->nb_planes, desc->comp[p].plane + 1);
ctx               122 libavfilter/vf_unsharp_opencl.c     for (p = 0; p < ctx->nb_planes; p++) {
ctx               124 libavfilter/vf_unsharp_opencl.c             diam_x = ctx->luma_size_x;
ctx               125 libavfilter/vf_unsharp_opencl.c             diam_y = ctx->luma_size_y;
ctx               126 libavfilter/vf_unsharp_opencl.c             amount = ctx->luma_amount;
ctx               128 libavfilter/vf_unsharp_opencl.c             diam_x = ctx->chroma_size_x;
ctx               129 libavfilter/vf_unsharp_opencl.c             diam_y = ctx->chroma_size_y;
ctx               130 libavfilter/vf_unsharp_opencl.c             amount = ctx->chroma_amount;
ctx               145 libavfilter/vf_unsharp_opencl.c             sum += ctx->plane[p].blur_x[x] = exp(-16.0 * (dx * dx));
ctx               148 libavfilter/vf_unsharp_opencl.c             ctx->plane[p].blur_x[x] /= sum;
ctx               153 libavfilter/vf_unsharp_opencl.c             sum += ctx->plane[p].blur_y[y] = exp(-16.0 * (dy * dy));
ctx               156 libavfilter/vf_unsharp_opencl.c             ctx->plane[p].blur_y[y] /= sum;
ctx               160 libavfilter/vf_unsharp_opencl.c                 val = ctx->plane[p].blur_x[x] * ctx->plane[p].blur_y[y];
ctx               165 libavfilter/vf_unsharp_opencl.c         if (ctx->global) {
ctx               166 libavfilter/vf_unsharp_opencl.c             buffer = clCreateBuffer(ctx->ocf.hwctx->context,
ctx               173 libavfilter/vf_unsharp_opencl.c             ctx->plane[p].matrix = buffer;
ctx               175 libavfilter/vf_unsharp_opencl.c             buffer = clCreateBuffer(ctx->ocf.hwctx->context,
ctx               179 libavfilter/vf_unsharp_opencl.c                                     sizeof(ctx->plane[p].blur_x),
ctx               180 libavfilter/vf_unsharp_opencl.c                                     ctx->plane[p].blur_x, &cle);
ctx               183 libavfilter/vf_unsharp_opencl.c             ctx->plane[p].coef_x = buffer;
ctx               185 libavfilter/vf_unsharp_opencl.c             buffer = clCreateBuffer(ctx->ocf.hwctx->context,
ctx               189 libavfilter/vf_unsharp_opencl.c                                     sizeof(ctx->plane[p].blur_y),
ctx               190 libavfilter/vf_unsharp_opencl.c                                     ctx->plane[p].blur_y, &cle);
ctx               193 libavfilter/vf_unsharp_opencl.c             ctx->plane[p].coef_y = buffer;
ctx               198 libavfilter/vf_unsharp_opencl.c         ctx->plane[p].size_x = size_x;
ctx               199 libavfilter/vf_unsharp_opencl.c         ctx->plane[p].size_y = size_y;
ctx               200 libavfilter/vf_unsharp_opencl.c         ctx->plane[p].amount = amount;
ctx               213 libavfilter/vf_unsharp_opencl.c     UnsharpOpenCLContext *ctx = avctx->priv;
ctx               221 libavfilter/vf_unsharp_opencl.c     av_log(ctx, AV_LOG_DEBUG, "Filter input: %s, %ux%u (%"PRId64").\n",
ctx               228 libavfilter/vf_unsharp_opencl.c     if (!ctx->initialised) {
ctx               251 libavfilter/vf_unsharp_opencl.c         CL_SET_KERNEL_ARG(ctx->kernel, 0, cl_mem,   &dst);
ctx               252 libavfilter/vf_unsharp_opencl.c         CL_SET_KERNEL_ARG(ctx->kernel, 1, cl_mem,   &src);
ctx               253 libavfilter/vf_unsharp_opencl.c         CL_SET_KERNEL_ARG(ctx->kernel, 2, cl_int,   &ctx->plane[p].size_x);
ctx               254 libavfilter/vf_unsharp_opencl.c         CL_SET_KERNEL_ARG(ctx->kernel, 3, cl_int,   &ctx->plane[p].size_y);
ctx               255 libavfilter/vf_unsharp_opencl.c         CL_SET_KERNEL_ARG(ctx->kernel, 4, cl_float, &ctx->plane[p].amount);
ctx               257 libavfilter/vf_unsharp_opencl.c         if (ctx->global) {
ctx               258 libavfilter/vf_unsharp_opencl.c             CL_SET_KERNEL_ARG(ctx->kernel, 5, cl_mem, &ctx->plane[p].matrix);
ctx               260 libavfilter/vf_unsharp_opencl.c             CL_SET_KERNEL_ARG(ctx->kernel, 5, cl_mem, &ctx->plane[p].coef_x);
ctx               261 libavfilter/vf_unsharp_opencl.c             CL_SET_KERNEL_ARG(ctx->kernel, 6, cl_mem, &ctx->plane[p].coef_y);
ctx               265 libavfilter/vf_unsharp_opencl.c                                                     ctx->global ? 0 : 16);
ctx               276 libavfilter/vf_unsharp_opencl.c         cle = clEnqueueNDRangeKernel(ctx->command_queue, ctx->kernel, 2, NULL,
ctx               277 libavfilter/vf_unsharp_opencl.c                                      global_work, ctx->global ? NULL : local_work,
ctx               282 libavfilter/vf_unsharp_opencl.c     cle = clFinish(ctx->command_queue);
ctx               291 libavfilter/vf_unsharp_opencl.c     av_log(ctx, AV_LOG_DEBUG, "Filter output: %s, %ux%u (%"PRId64").\n",
ctx               298 libavfilter/vf_unsharp_opencl.c     clFinish(ctx->command_queue);
ctx               306 libavfilter/vf_unsharp_opencl.c     UnsharpOpenCLContext *ctx = avctx->priv;
ctx               310 libavfilter/vf_unsharp_opencl.c     for (i = 0; i < ctx->nb_planes; i++) {
ctx               311 libavfilter/vf_unsharp_opencl.c         if (ctx->plane[i].matrix)
ctx               312 libavfilter/vf_unsharp_opencl.c             clReleaseMemObject(ctx->plane[i].matrix);
ctx               313 libavfilter/vf_unsharp_opencl.c         if (ctx->plane[i].coef_x)
ctx               314 libavfilter/vf_unsharp_opencl.c             clReleaseMemObject(ctx->plane[i].coef_x);
ctx               315 libavfilter/vf_unsharp_opencl.c         if (ctx->plane[i].coef_y)
ctx               316 libavfilter/vf_unsharp_opencl.c             clReleaseMemObject(ctx->plane[i].coef_y);
ctx               319 libavfilter/vf_unsharp_opencl.c     if (ctx->kernel) {
ctx               320 libavfilter/vf_unsharp_opencl.c         cle = clReleaseKernel(ctx->kernel);
ctx               326 libavfilter/vf_unsharp_opencl.c     if (ctx->command_queue) {
ctx               327 libavfilter/vf_unsharp_opencl.c         cle = clReleaseCommandQueue(ctx->command_queue);
ctx                50 libavfilter/vf_untile.c static av_cold int init(AVFilterContext *ctx)
ctx                52 libavfilter/vf_untile.c     UntileContext *s = ctx->priv;
ctx                55 libavfilter/vf_untile.c         av_log(ctx, AV_LOG_ERROR, "Tile size %ux%u is insane.\n",
ctx                63 libavfilter/vf_untile.c static int query_formats(AVFilterContext *ctx)
ctx                74 libavfilter/vf_untile.c     return ff_set_common_formats(ctx, formats);
ctx                79 libavfilter/vf_untile.c     AVFilterContext *ctx = outlink->src;
ctx                80 libavfilter/vf_untile.c     UntileContext *s = ctx->priv;
ctx                81 libavfilter/vf_untile.c     AVFilterLink *inlink = ctx->inputs[0];
ctx                87 libavfilter/vf_untile.c         av_log(ctx, AV_LOG_ERROR,
ctx               102 libavfilter/vf_untile.c     av_log(ctx, AV_LOG_VERBOSE, "frame interval: %"PRId64"*%d/%d\n",
ctx               108 libavfilter/vf_untile.c static int activate(AVFilterContext *ctx)
ctx               110 libavfilter/vf_untile.c     UntileContext *s = ctx->priv;
ctx               111 libavfilter/vf_untile.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               112 libavfilter/vf_untile.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               163 libavfilter/vf_untile.c static av_cold void uninit(AVFilterContext *ctx)
ctx               165 libavfilter/vf_untile.c     UntileContext *s = ctx->priv;
ctx               291 libavfilter/vf_uspp.c static int query_formats(AVFilterContext *ctx)
ctx               306 libavfilter/vf_uspp.c     return ff_set_common_formats(ctx, fmts_list);
ctx               312 libavfilter/vf_uspp.c     AVFilterContext *ctx = inlink->dst;
ctx               313 libavfilter/vf_uspp.c     USPPContext *uspp = ctx->priv;
ctx               321 libavfilter/vf_uspp.c         av_log(ctx, AV_LOG_ERROR, "SNOW encoder not found.\n");
ctx               382 libavfilter/vf_uspp.c     AVFilterContext *ctx = inlink->dst;
ctx               383 libavfilter/vf_uspp.c     USPPContext *uspp = ctx->priv;
ctx               384 libavfilter/vf_uspp.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               424 libavfilter/vf_uspp.c     if (uspp->log2_count && !ctx->is_disabled) {
ctx               461 libavfilter/vf_uspp.c static av_cold void uninit(AVFilterContext *ctx)
ctx               463 libavfilter/vf_uspp.c     USPPContext *uspp = ctx->priv;
ctx               163 libavfilter/vf_v360.c static int query_formats(AVFilterContext *ctx)
ctx               165 libavfilter/vf_v360.c     V360Context *s = ctx->priv;
ctx               244 libavfilter/vf_v360.c     return ff_set_common_formats(ctx, fmts_list);
ctx               272 libavfilter/vf_v360.c static int remap##ws##_##bits##bit_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)          \
ctx               275 libavfilter/vf_v360.c     const V360Context *s = ctx->priv;                                                                      \
ctx               801 libavfilter/vf_v360.c static int prepare_cube_in(AVFilterContext *ctx)
ctx               803 libavfilter/vf_v360.c     V360Context *s = ctx->priv;
ctx               810 libavfilter/vf_v360.c             av_log(ctx, AV_LOG_ERROR,
ctx               817 libavfilter/vf_v360.c             av_log(ctx, AV_LOG_ERROR,
ctx               830 libavfilter/vf_v360.c             av_log(ctx, AV_LOG_ERROR,
ctx               837 libavfilter/vf_v360.c             av_log(ctx, AV_LOG_ERROR,
ctx               855 libavfilter/vf_v360.c static int prepare_cube_out(AVFilterContext *ctx)
ctx               857 libavfilter/vf_v360.c     V360Context *s = ctx->priv;
ctx               864 libavfilter/vf_v360.c             av_log(ctx, AV_LOG_ERROR,
ctx               871 libavfilter/vf_v360.c             av_log(ctx, AV_LOG_ERROR,
ctx               884 libavfilter/vf_v360.c             av_log(ctx, AV_LOG_ERROR,
ctx               891 libavfilter/vf_v360.c             av_log(ctx, AV_LOG_ERROR,
ctx              1723 libavfilter/vf_v360.c static int prepare_stereographic_out(AVFilterContext *ctx)
ctx              1725 libavfilter/vf_v360.c     V360Context *s = ctx->priv;
ctx              1769 libavfilter/vf_v360.c static int prepare_stereographic_in(AVFilterContext *ctx)
ctx              1771 libavfilter/vf_v360.c     V360Context *s = ctx->priv;
ctx              1907 libavfilter/vf_v360.c static int prepare_flat_in(AVFilterContext *ctx)
ctx              1909 libavfilter/vf_v360.c     V360Context *s = ctx->priv;
ctx              2260 libavfilter/vf_v360.c static int prepare_eac_in(AVFilterContext *ctx)
ctx              2262 libavfilter/vf_v360.c     V360Context *s = ctx->priv;
ctx              2320 libavfilter/vf_v360.c static int prepare_eac_out(AVFilterContext *ctx)
ctx              2322 libavfilter/vf_v360.c     V360Context *s = ctx->priv;
ctx              2511 libavfilter/vf_v360.c static int prepare_flat_out(AVFilterContext *ctx)
ctx              2513 libavfilter/vf_v360.c     V360Context *s = ctx->priv;
ctx              2554 libavfilter/vf_v360.c static int prepare_fisheye_out(AVFilterContext *ctx)
ctx              2556 libavfilter/vf_v360.c     V360Context *s = ctx->priv;
ctx              2605 libavfilter/vf_v360.c static int prepare_fisheye_in(AVFilterContext *ctx)
ctx              2607 libavfilter/vf_v360.c     V360Context *s = ctx->priv;
ctx              2747 libavfilter/vf_v360.c static int prepare_cylindrical_out(AVFilterContext *ctx)
ctx              2749 libavfilter/vf_v360.c     V360Context *s = ctx->priv;
ctx              2798 libavfilter/vf_v360.c static int prepare_cylindrical_in(AVFilterContext *ctx)
ctx              2800 libavfilter/vf_v360.c     V360Context *s = ctx->priv;
ctx              3699 libavfilter/vf_v360.c static av_always_inline int v360_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx              3701 libavfilter/vf_v360.c     V360Context *s = ctx->priv;
ctx              3757 libavfilter/vf_v360.c     AVFilterContext *ctx = outlink->src;
ctx              3758 libavfilter/vf_v360.c     AVFilterLink *inlink = ctx->inputs[0];
ctx              3759 libavfilter/vf_v360.c     V360Context *s = ctx->priv;
ctx              3770 libavfilter/vf_v360.c     int (*prepare_out)(AVFilterContext *ctx);
ctx              3838 libavfilter/vf_v360.c             av_log(ctx, AV_LOG_WARNING,
ctx              3848 libavfilter/vf_v360.c             av_log(ctx, AV_LOG_WARNING,
ctx              3902 libavfilter/vf_v360.c         err = prepare_cube_in(ctx);
ctx              3908 libavfilter/vf_v360.c         err = prepare_cube_in(ctx);
ctx              3914 libavfilter/vf_v360.c         err = prepare_cube_in(ctx);
ctx              3920 libavfilter/vf_v360.c         err = prepare_eac_in(ctx);
ctx              3926 libavfilter/vf_v360.c         err = prepare_flat_in(ctx);
ctx              3931 libavfilter/vf_v360.c         av_log(ctx, AV_LOG_ERROR, "Supplied format is not accepted as input.\n");
ctx              3935 libavfilter/vf_v360.c         err = prepare_fisheye_in(ctx);
ctx              3947 libavfilter/vf_v360.c         err = prepare_stereographic_in(ctx);
ctx              3977 libavfilter/vf_v360.c         err = prepare_fisheye_in(ctx);
ctx              3989 libavfilter/vf_v360.c         err = prepare_cylindrical_in(ctx);
ctx              4018 libavfilter/vf_v360.c         av_log(ctx, AV_LOG_ERROR, "Specified input format is not handled.\n");
ctx              4154 libavfilter/vf_v360.c         av_log(ctx, AV_LOG_ERROR, "Specified output format is not handled.\n");
ctx              4171 libavfilter/vf_v360.c         av_log(ctx, AV_LOG_ERROR, "Both width and height values should be specified.\n");
ctx              4188 libavfilter/vf_v360.c         err = prepare_out(ctx);
ctx              4240 libavfilter/vf_v360.c     ctx->internal->execute(ctx, v360_slice, NULL, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx)));
ctx              4247 libavfilter/vf_v360.c     AVFilterContext *ctx = inlink->dst;
ctx              4248 libavfilter/vf_v360.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              4249 libavfilter/vf_v360.c     V360Context *s = ctx->priv;
ctx              4263 libavfilter/vf_v360.c     ctx->internal->execute(ctx, s->remap_slice, &td, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx)));
ctx              4269 libavfilter/vf_v360.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx              4274 libavfilter/vf_v360.c     ret = ff_filter_process_command(ctx, cmd, args, res, res_len, flags);
ctx              4278 libavfilter/vf_v360.c     return config_output(ctx->outputs[0]);
ctx              4281 libavfilter/vf_v360.c static av_cold void uninit(AVFilterContext *ctx)
ctx              4283 libavfilter/vf_v360.c     V360Context *s = ctx->priv;
ctx               108 libavfilter/vf_vaguedenoiser.c static int query_formats(AVFilterContext *ctx)
ctx               138 libavfilter/vf_vaguedenoiser.c     return ff_set_common_formats(ctx, fmts_list);
ctx               539 libavfilter/vf_vaguedenoiser.c     AVFilterContext *ctx  = inlink->dst;
ctx               540 libavfilter/vf_vaguedenoiser.c     VagueDenoiserContext *s = ctx->priv;
ctx               541 libavfilter/vf_vaguedenoiser.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               565 libavfilter/vf_vaguedenoiser.c static av_cold int init(AVFilterContext *ctx)
ctx               567 libavfilter/vf_vaguedenoiser.c     VagueDenoiserContext *s = ctx->priv;
ctx               584 libavfilter/vf_vaguedenoiser.c static av_cold void uninit(AVFilterContext *ctx)
ctx               586 libavfilter/vf_vaguedenoiser.c     VagueDenoiserContext *s = ctx->priv;
ctx               211 libavfilter/vf_vectorscope.c static int query_formats(AVFilterContext *ctx)
ctx               213 libavfilter/vf_vectorscope.c     VectorscopeContext *s = ctx->priv;
ctx               219 libavfilter/vf_vectorscope.c     if (!ctx->inputs[0]->in_formats ||
ctx               220 libavfilter/vf_vectorscope.c         !ctx->inputs[0]->in_formats->nb_formats) {
ctx               224 libavfilter/vf_vectorscope.c     if (!ctx->inputs[0]->out_formats) {
ctx               231 libavfilter/vf_vectorscope.c         if ((ret = ff_formats_ref(ff_make_format_list(in_pix_fmts), &ctx->inputs[0]->out_formats)) < 0)
ctx               235 libavfilter/vf_vectorscope.c     avff = ctx->inputs[0]->in_formats;
ctx               264 libavfilter/vf_vectorscope.c     if ((ret = ff_formats_ref(ff_make_format_list(out_pix_fmts), &ctx->outputs[0]->in_formats)) < 0)
ctx              1439 libavfilter/vf_vectorscope.c     AVFilterContext *ctx  = inlink->dst;
ctx              1440 libavfilter/vf_vectorscope.c     VectorscopeContext *s = ctx->priv;
ctx              1441 libavfilter/vf_vectorscope.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              1483 libavfilter/vf_vectorscope.c     AVFilterContext *ctx = inlink->dst;
ctx              1484 libavfilter/vf_vectorscope.c     VectorscopeContext *s = ctx->priv;
ctx              1494 libavfilter/vf_vectorscope.c         av_log(ctx, AV_LOG_ERROR, "low threshold should be less than high threshold\n");
ctx              1563 libavfilter/vf_vectorscope.c static av_cold void uninit(AVFilterContext *ctx)
ctx              1565 libavfilter/vf_vectorscope.c     VectorscopeContext *s = ctx->priv;
ctx                40 libavfilter/vf_vfrdet.c     AVFilterContext *ctx = inlink->dst;
ctx                41 libavfilter/vf_vfrdet.c     VFRDETContext *s = ctx->priv;
ctx                65 libavfilter/vf_vfrdet.c     return ff_filter_frame(ctx->outputs[0], in);
ctx                68 libavfilter/vf_vfrdet.c static av_cold int init(AVFilterContext *ctx)
ctx                70 libavfilter/vf_vfrdet.c     VFRDETContext *s = ctx->priv;
ctx                80 libavfilter/vf_vfrdet.c static av_cold void uninit(AVFilterContext *ctx)
ctx                82 libavfilter/vf_vfrdet.c     VFRDETContext *s = ctx->priv;
ctx                84 libavfilter/vf_vfrdet.c     av_log(ctx, AV_LOG_INFO, "VFR:%f (%"PRIu64"/%"PRIu64")", s->vfr / (float)(s->vfr + s->cfr), s->vfr, s->cfr);
ctx                86 libavfilter/vf_vfrdet.c         av_log(ctx, AV_LOG_INFO, " min: %"PRId64" max: %"PRId64" avg: %"PRId64, s->min_delta, s->max_delta, s->avg_delta / s->vfr);
ctx                87 libavfilter/vf_vfrdet.c     av_log(ctx, AV_LOG_INFO, "\n");
ctx                63 libavfilter/vf_vidstabdetect.c static av_cold int init(AVFilterContext *ctx)
ctx                65 libavfilter/vf_vidstabdetect.c     StabData *s = ctx->priv;
ctx                68 libavfilter/vf_vidstabdetect.c     av_log(ctx, AV_LOG_VERBOSE, "vidstabdetect filter: init %s\n", LIBVIDSTAB_VERSION);
ctx                72 libavfilter/vf_vidstabdetect.c static av_cold void uninit(AVFilterContext *ctx)
ctx                74 libavfilter/vf_vidstabdetect.c     StabData *s = ctx->priv;
ctx                85 libavfilter/vf_vidstabdetect.c static int query_formats(AVFilterContext *ctx)
ctx                99 libavfilter/vf_vidstabdetect.c     return ff_set_common_formats(ctx, fmts_list);
ctx               104 libavfilter/vf_vidstabdetect.c     AVFilterContext *ctx = inlink->dst;
ctx               105 libavfilter/vf_vidstabdetect.c     StabData *s = ctx->priv;
ctx               113 libavfilter/vf_vidstabdetect.c                     ff_av2vs_pixfmt(ctx, inlink->format));
ctx               115 libavfilter/vf_vidstabdetect.c         av_log(ctx, AV_LOG_ERROR, "pixel-format error: wrong bits/per/pixel, please report a BUG");
ctx               119 libavfilter/vf_vidstabdetect.c         av_log(ctx, AV_LOG_ERROR, "pixel-format error: log2_chroma_w, please report a BUG");
ctx               124 libavfilter/vf_vidstabdetect.c         av_log(ctx, AV_LOG_ERROR, "pixel-format error: log2_chroma_h, please report a BUG");
ctx               132 libavfilter/vf_vidstabdetect.c         av_log(ctx, AV_LOG_ERROR, "initialization of Motion Detection failed, please report a BUG");
ctx               137 libavfilter/vf_vidstabdetect.c     av_log(ctx, AV_LOG_INFO, "Video stabilization settings (pass 1/2):\n");
ctx               138 libavfilter/vf_vidstabdetect.c     av_log(ctx, AV_LOG_INFO, "     shakiness = %d\n", s->conf.shakiness);
ctx               139 libavfilter/vf_vidstabdetect.c     av_log(ctx, AV_LOG_INFO, "      accuracy = %d\n", s->conf.accuracy);
ctx               140 libavfilter/vf_vidstabdetect.c     av_log(ctx, AV_LOG_INFO, "      stepsize = %d\n", s->conf.stepSize);
ctx               141 libavfilter/vf_vidstabdetect.c     av_log(ctx, AV_LOG_INFO, "   mincontrast = %f\n", s->conf.contrastThreshold);
ctx               142 libavfilter/vf_vidstabdetect.c     av_log(ctx, AV_LOG_INFO, "        tripod = %d\n", s->conf.virtualTripod);
ctx               143 libavfilter/vf_vidstabdetect.c     av_log(ctx, AV_LOG_INFO, "          show = %d\n", s->conf.show);
ctx               144 libavfilter/vf_vidstabdetect.c     av_log(ctx, AV_LOG_INFO, "        result = %s\n", s->result);
ctx               148 libavfilter/vf_vidstabdetect.c         av_log(ctx, AV_LOG_ERROR, "cannot open transform file %s\n", s->result);
ctx               152 libavfilter/vf_vidstabdetect.c             av_log(ctx, AV_LOG_ERROR, "cannot write to transform file %s\n", s->result);
ctx               161 libavfilter/vf_vidstabdetect.c     AVFilterContext *ctx = inlink->dst;
ctx               162 libavfilter/vf_vidstabdetect.c     StabData *s = ctx->priv;
ctx               178 libavfilter/vf_vidstabdetect.c         av_log(ctx, AV_LOG_ERROR, "motion detection failed");
ctx               183 libavfilter/vf_vidstabdetect.c             av_log(ctx, AV_LOG_ERROR, "cannot write to transform file");
ctx               107 libavfilter/vf_vidstabtransform.c static av_cold int init(AVFilterContext *ctx)
ctx               109 libavfilter/vf_vidstabtransform.c     TransformContext *tc = ctx->priv;
ctx               112 libavfilter/vf_vidstabtransform.c     av_log(ctx, AV_LOG_VERBOSE, "vidstabtransform filter: init %s\n", LIBVIDSTAB_VERSION);
ctx               116 libavfilter/vf_vidstabtransform.c static av_cold void uninit(AVFilterContext *ctx)
ctx               118 libavfilter/vf_vidstabtransform.c     TransformContext *tc = ctx->priv;
ctx               124 libavfilter/vf_vidstabtransform.c static int query_formats(AVFilterContext *ctx)
ctx               138 libavfilter/vf_vidstabtransform.c     return ff_set_common_formats(ctx, fmts_list);
ctx               144 libavfilter/vf_vidstabtransform.c     AVFilterContext *ctx = inlink->dst;
ctx               145 libavfilter/vf_vidstabtransform.c     TransformContext *tc = ctx->priv;
ctx               157 libavfilter/vf_vidstabtransform.c                          ff_av2vs_pixfmt(ctx, inlink->format)) ||
ctx               159 libavfilter/vf_vidstabtransform.c                          ff_av2vs_pixfmt(ctx, inlink->format))) {
ctx               160 libavfilter/vf_vidstabtransform.c         av_log(ctx, AV_LOG_ERROR, "unknown pixel format: %i (%s)",
ctx               168 libavfilter/vf_vidstabtransform.c         av_log(ctx, AV_LOG_ERROR, "pixel-format error: bpp %i<>%i  ",
ctx               170 libavfilter/vf_vidstabtransform.c         av_log(ctx, AV_LOG_ERROR, "chroma_subsampl: w: %i<>%i  h: %i<>%i\n",
ctx               180 libavfilter/vf_vidstabtransform.c         av_log(ctx, AV_LOG_INFO, "Virtual tripod mode: relative=0, smoothing=0\n");
ctx               189 libavfilter/vf_vidstabtransform.c         av_log(ctx, AV_LOG_ERROR, "initialization of vid.stab transform failed, please report a BUG\n");
ctx               194 libavfilter/vf_vidstabtransform.c     av_log(ctx, AV_LOG_INFO, "Video transformation/stabilization settings (pass 2/2):\n");
ctx               195 libavfilter/vf_vidstabtransform.c     av_log(ctx, AV_LOG_INFO, "    input     = %s\n", tc->input);
ctx               196 libavfilter/vf_vidstabtransform.c     av_log(ctx, AV_LOG_INFO, "    smoothing = %d\n", tc->conf.smoothing);
ctx               197 libavfilter/vf_vidstabtransform.c     av_log(ctx, AV_LOG_INFO, "    optalgo   = %s\n",
ctx               200 libavfilter/vf_vidstabtransform.c     av_log(ctx, AV_LOG_INFO, "    maxshift  = %d\n", tc->conf.maxShift);
ctx               201 libavfilter/vf_vidstabtransform.c     av_log(ctx, AV_LOG_INFO, "    maxangle  = %f\n", tc->conf.maxAngle);
ctx               202 libavfilter/vf_vidstabtransform.c     av_log(ctx, AV_LOG_INFO, "    crop      = %s\n", tc->conf.crop ? "Black" : "Keep");
ctx               203 libavfilter/vf_vidstabtransform.c     av_log(ctx, AV_LOG_INFO, "    relative  = %s\n", tc->conf.relative ? "True": "False");
ctx               204 libavfilter/vf_vidstabtransform.c     av_log(ctx, AV_LOG_INFO, "    invert    = %s\n", tc->conf.invert ? "True" : "False");
ctx               205 libavfilter/vf_vidstabtransform.c     av_log(ctx, AV_LOG_INFO, "    zoom      = %f\n", tc->conf.zoom);
ctx               206 libavfilter/vf_vidstabtransform.c     av_log(ctx, AV_LOG_INFO, "    optzoom   = %s\n",
ctx               209 libavfilter/vf_vidstabtransform.c         av_log(ctx, AV_LOG_INFO, "    zoomspeed = %g\n", tc->conf.zoomSpeed);
ctx               210 libavfilter/vf_vidstabtransform.c     av_log(ctx, AV_LOG_INFO, "    interpol  = %s\n", getInterpolationTypeName(tc->conf.interpolType));
ctx               215 libavfilter/vf_vidstabtransform.c         av_log(ctx, AV_LOG_ERROR, "cannot open input file %s\n", tc->input);
ctx               222 libavfilter/vf_vidstabtransform.c                 av_log(ctx, AV_LOG_ERROR, "calculating transformations failed\n");
ctx               227 libavfilter/vf_vidstabtransform.c                 av_log(ctx, AV_LOG_ERROR, "error parsing input file %s\n", tc->input);
ctx               235 libavfilter/vf_vidstabtransform.c         av_log(ctx, AV_LOG_ERROR, "error while preprocessing transforms\n");
ctx               246 libavfilter/vf_vidstabtransform.c     AVFilterContext *ctx = inlink->dst;
ctx               247 libavfilter/vf_vidstabtransform.c     TransformContext *tc = ctx->priv;
ctx               100 libavfilter/vf_vignette.c static av_cold int init(AVFilterContext *ctx)
ctx               102 libavfilter/vf_vignette.c     VignetteContext *s = ctx->priv;
ctx               106 libavfilter/vf_vignette.c                             NULL, NULL, NULL, NULL, 0, ctx);                \
ctx               108 libavfilter/vf_vignette.c         av_log(ctx, AV_LOG_ERROR, "Unable to parse expression for '"        \
ctx               120 libavfilter/vf_vignette.c static av_cold void uninit(AVFilterContext *ctx)
ctx               122 libavfilter/vf_vignette.c     VignetteContext *s = ctx->priv;
ctx               129 libavfilter/vf_vignette.c static int query_formats(AVFilterContext *ctx)
ctx               142 libavfilter/vf_vignette.c     return ff_set_common_formats(ctx, fmts_list);
ctx               214 libavfilter/vf_vignette.c     AVFilterContext *ctx = inlink->dst;
ctx               215 libavfilter/vf_vignette.c     VignetteContext *s = ctx->priv;
ctx               216 libavfilter/vf_vignette.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               220 libavfilter/vf_vmafmotion.c static void do_vmafmotion(AVFilterContext *ctx, AVFrame *ref)
ctx               222 libavfilter/vf_vmafmotion.c     VMAFMotionContext *s = ctx->priv;
ctx               261 libavfilter/vf_vmafmotion.c static int query_formats(AVFilterContext *ctx)
ctx               276 libavfilter/vf_vmafmotion.c     return ff_set_common_formats(ctx, fmts_list);
ctx               281 libavfilter/vf_vmafmotion.c     AVFilterContext *ctx  = inlink->dst;
ctx               282 libavfilter/vf_vmafmotion.c     VMAFMotionContext *s = ctx->priv;
ctx               284 libavfilter/vf_vmafmotion.c     return ff_vmafmotion_init(&s->data, ctx->inputs[0]->w,
ctx               285 libavfilter/vf_vmafmotion.c                               ctx->inputs[0]->h, ctx->inputs[0]->format);
ctx               299 libavfilter/vf_vmafmotion.c     AVFilterContext *ctx = inlink->dst;
ctx               300 libavfilter/vf_vmafmotion.c     do_vmafmotion(ctx, ref);
ctx               301 libavfilter/vf_vmafmotion.c     return ff_filter_frame(ctx->outputs[0], ref);
ctx               304 libavfilter/vf_vmafmotion.c static av_cold int init(AVFilterContext *ctx)
ctx               306 libavfilter/vf_vmafmotion.c     VMAFMotionContext *s = ctx->priv;
ctx               317 libavfilter/vf_vmafmotion.c                 av_log(ctx, AV_LOG_ERROR, "Could not open stats file %s: %s\n",
ctx               327 libavfilter/vf_vmafmotion.c static av_cold void uninit(AVFilterContext *ctx)
ctx               329 libavfilter/vf_vmafmotion.c     VMAFMotionContext *s = ctx->priv;
ctx               333 libavfilter/vf_vmafmotion.c         av_log(ctx, AV_LOG_INFO, "VMAF Motion avg: %.3f\n", avg_motion);
ctx               159 libavfilter/vf_vpp_qsv.c static int eval_expr(AVFilterContext *ctx)
ctx               162 libavfilter/vf_vpp_qsv.c     ret = av_expr_parse(&e, s, var_names, NULL, NULL, NULL, NULL, 0, ctx); \
ctx               164 libavfilter/vf_vpp_qsv.c         av_log(ctx, AV_LOG_ERROR, "Error when passing '%s'.\n", s);\
ctx               171 libavfilter/vf_vpp_qsv.c     VPPContext *vpp = ctx->priv;
ctx               188 libavfilter/vf_vpp_qsv.c     var_values[VAR_IN_W] = ctx->inputs[0]->w;
ctx               191 libavfilter/vf_vpp_qsv.c     var_values[VAR_IN_H] = ctx->inputs[0]->h;
ctx               235 libavfilter/vf_vpp_qsv.c static av_cold int vpp_init(AVFilterContext *ctx)
ctx               237 libavfilter/vf_vpp_qsv.c     VPPContext  *vpp  = ctx->priv;
ctx               244 libavfilter/vf_vpp_qsv.c             av_log(ctx, AV_LOG_ERROR, "Unrecognized output pixel format: %s\n", vpp->output_format_str);
ctx               254 libavfilter/vf_vpp_qsv.c     AVFilterContext *ctx = inlink->dst;
ctx               255 libavfilter/vf_vpp_qsv.c     VPPContext      *vpp = ctx->priv;
ctx               264 libavfilter/vf_vpp_qsv.c     ret = eval_expr(ctx);
ctx               266 libavfilter/vf_vpp_qsv.c         av_log(ctx, AV_LOG_ERROR, "Fail to eval expr.\n");
ctx               290 libavfilter/vf_vpp_qsv.c     AVFilterContext *ctx = outlink->src;
ctx               291 libavfilter/vf_vpp_qsv.c     VPPContext      *vpp = ctx->priv;
ctx               295 libavfilter/vf_vpp_qsv.c     AVFilterLink    *inlink = ctx->inputs[0];
ctx               411 libavfilter/vf_vpp_qsv.c             av_log(ctx, AV_LOG_ERROR, "Failed to set transpose mode to %d.\n", vpp->transpose);
ctx               415 libavfilter/vf_vpp_qsv.c         av_log(ctx, AV_LOG_WARNING, "The QSV VPP transpose option is "
ctx               431 libavfilter/vf_vpp_qsv.c             av_log(ctx, AV_LOG_DEBUG, "Swap width and height for clock/cclock rotation.\n");
ctx               436 libavfilter/vf_vpp_qsv.c         av_log(ctx, AV_LOG_WARNING, "The QSV VPP rotate option is "
ctx               451 libavfilter/vf_vpp_qsv.c         av_log(ctx, AV_LOG_WARNING, "The QSV VPP hflip option is "
ctx               460 libavfilter/vf_vpp_qsv.c         return ff_qsvvpp_create(ctx, &vpp->qsv, &param);
ctx               462 libavfilter/vf_vpp_qsv.c         av_log(ctx, AV_LOG_VERBOSE, "qsv vpp pass through mode.\n");
ctx               473 libavfilter/vf_vpp_qsv.c     AVFilterContext  *ctx = inlink->dst;
ctx               475 libavfilter/vf_vpp_qsv.c     AVFilterLink     *outlink = ctx->outputs[0];
ctx               489 libavfilter/vf_vpp_qsv.c static int query_formats(AVFilterContext *ctx)
ctx               510 libavfilter/vf_vpp_qsv.c     ret = ff_formats_ref(in_fmts, &ctx->inputs[0]->out_formats);
ctx               513 libavfilter/vf_vpp_qsv.c     ret = ff_formats_ref(out_fmts, &ctx->outputs[0]->in_formats);
ctx               520 libavfilter/vf_vpp_qsv.c static av_cold void vpp_uninit(AVFilterContext *ctx)
ctx               522 libavfilter/vf_vpp_qsv.c     VPPContext *vpp = ctx->priv;
ctx                67 libavfilter/vf_w3fdif.c static int query_formats(AVFilterContext *ctx)
ctx                94 libavfilter/vf_w3fdif.c     return ff_set_common_formats(ctx, fmts_list);
ctx               270 libavfilter/vf_w3fdif.c     AVFilterContext *ctx = inlink->dst;
ctx               271 libavfilter/vf_w3fdif.c     W3FDIFContext *s = ctx->priv;
ctx               282 libavfilter/vf_w3fdif.c         av_log(ctx, AV_LOG_ERROR, "Video of less than 3 lines is not supported\n");
ctx               287 libavfilter/vf_w3fdif.c     s->nb_threads = ff_filter_get_nb_threads(ctx);
ctx               352 libavfilter/vf_w3fdif.c static int deinterlace_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               354 libavfilter/vf_w3fdif.c     W3FDIFContext *s = ctx->priv;
ctx               457 libavfilter/vf_w3fdif.c static int filter(AVFilterContext *ctx, int is_second)
ctx               459 libavfilter/vf_w3fdif.c     W3FDIFContext *s = ctx->priv;
ctx               460 libavfilter/vf_w3fdif.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               489 libavfilter/vf_w3fdif.c         ctx->internal->execute(ctx, deinterlace_slice, &td, NULL, FFMIN(s->planeheight[plane], s->nb_threads));
ctx               499 libavfilter/vf_w3fdif.c     AVFilterContext *ctx = inlink->dst;
ctx               500 libavfilter/vf_w3fdif.c     W3FDIFContext *s = ctx->priv;
ctx               514 libavfilter/vf_w3fdif.c     if ((s->deint && !s->cur->interlaced_frame) || ctx->is_disabled) {
ctx               522 libavfilter/vf_w3fdif.c         return ff_filter_frame(ctx->outputs[0], out);
ctx               528 libavfilter/vf_w3fdif.c     ret = filter(ctx, 0);
ctx               532 libavfilter/vf_w3fdif.c     return filter(ctx, 1);
ctx               537 libavfilter/vf_w3fdif.c     AVFilterContext *ctx = outlink->src;
ctx               538 libavfilter/vf_w3fdif.c     W3FDIFContext *s = ctx->priv;
ctx               544 libavfilter/vf_w3fdif.c     ret = ff_request_frame(ctx->inputs[0]);
ctx               551 libavfilter/vf_w3fdif.c         filter_frame(ctx->inputs[0], next);
ctx               560 libavfilter/vf_w3fdif.c static av_cold void uninit(AVFilterContext *ctx)
ctx               562 libavfilter/vf_w3fdif.c     W3FDIFContext *s = ctx->priv;
ctx               118 libavfilter/vf_waveform.c     int (*waveform_slice)(AVFilterContext *ctx, void *arg,
ctx               313 libavfilter/vf_waveform.c static int query_formats(AVFilterContext *ctx)
ctx               315 libavfilter/vf_waveform.c     WaveformContext *s = ctx->priv;
ctx               322 libavfilter/vf_waveform.c     if (!ctx->inputs[0]->in_formats ||
ctx               323 libavfilter/vf_waveform.c         !ctx->inputs[0]->in_formats->nb_formats) {
ctx               339 libavfilter/vf_waveform.c     if (!ctx->inputs[0]->out_formats) {
ctx               340 libavfilter/vf_waveform.c         if ((ret = ff_formats_ref(ff_make_format_list(in_pix_fmts), &ctx->inputs[0]->out_formats)) < 0)
ctx               344 libavfilter/vf_waveform.c     avff = ctx->inputs[0]->in_formats;
ctx               345 libavfilter/vf_waveform.c     avff2 = ctx->inputs[0]->out_formats;
ctx               388 libavfilter/vf_waveform.c     if ((ret = ff_formats_ref(ff_make_format_list(out_pix_fmts), &ctx->outputs[0]->in_formats)) < 0)
ctx               796 libavfilter/vf_waveform.c static int lowpass16_##name(AVFilterContext *ctx,   \
ctx               800 libavfilter/vf_waveform.c     WaveformContext *s = ctx->priv;                 \
ctx               933 libavfilter/vf_waveform.c static int lowpass_##name(AVFilterContext *ctx,   \
ctx               937 libavfilter/vf_waveform.c     WaveformContext *s = ctx->priv;               \
ctx              1072 libavfilter/vf_waveform.c static int flat16_##name(AVFilterContext *ctx,   \
ctx              1076 libavfilter/vf_waveform.c     WaveformContext *s = ctx->priv;              \
ctx              1209 libavfilter/vf_waveform.c static int flat_##name(AVFilterContext *ctx,   \
ctx              1213 libavfilter/vf_waveform.c     WaveformContext *s = ctx->priv;            \
ctx              1234 libavfilter/vf_waveform.c static int name(AVFilterContext *ctx,                                                                              \
ctx              1238 libavfilter/vf_waveform.c     WaveformContext *s = ctx->priv;                                                                                \
ctx              1368 libavfilter/vf_waveform.c static int name(AVFilterContext *ctx,                                                                 \
ctx              1372 libavfilter/vf_waveform.c     WaveformContext *s = ctx->priv;                                                                   \
ctx              1607 libavfilter/vf_waveform.c static int chroma16_##name(AVFilterContext *ctx, \
ctx              1611 libavfilter/vf_waveform.c     WaveformContext *s = ctx->priv;              \
ctx              1711 libavfilter/vf_waveform.c static int chroma_##name(AVFilterContext *ctx,   \
ctx              1715 libavfilter/vf_waveform.c     WaveformContext *s = ctx->priv;              \
ctx              1844 libavfilter/vf_waveform.c static int color16_##name(AVFilterContext *ctx,  \
ctx              1848 libavfilter/vf_waveform.c     WaveformContext *s = ctx->priv;              \
ctx              1976 libavfilter/vf_waveform.c static int color_##name(AVFilterContext *ctx,  \
ctx              1980 libavfilter/vf_waveform.c     WaveformContext *s = ctx->priv;            \
ctx              2110 libavfilter/vf_waveform.c static int acolor16_##name(AVFilterContext *ctx, \
ctx              2114 libavfilter/vf_waveform.c     WaveformContext *s = ctx->priv;              \
ctx              2243 libavfilter/vf_waveform.c static int acolor_##name(AVFilterContext *ctx,   \
ctx              2247 libavfilter/vf_waveform.c     WaveformContext *s = ctx->priv;              \
ctx              3042 libavfilter/vf_waveform.c     AVFilterContext *ctx = inlink->dst;
ctx              3043 libavfilter/vf_waveform.c     WaveformContext *s = ctx->priv;
ctx              3313 libavfilter/vf_waveform.c     AVFilterContext *ctx = outlink->src;
ctx              3314 libavfilter/vf_waveform.c     AVFilterLink *inlink = ctx->inputs[0];
ctx              3315 libavfilter/vf_waveform.c     WaveformContext *s = ctx->priv;
ctx              3375 libavfilter/vf_waveform.c     AVFilterContext *ctx  = inlink->dst;
ctx              3376 libavfilter/vf_waveform.c     WaveformContext *s    = ctx->priv;
ctx              3377 libavfilter/vf_waveform.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              3427 libavfilter/vf_waveform.c             ctx->internal->execute(ctx, s->waveform_slice, &td, NULL, ff_filter_get_nb_threads(ctx));
ctx              3474 libavfilter/vf_waveform.c static av_cold void uninit(AVFilterContext *ctx)
ctx              3476 libavfilter/vf_waveform.c     WaveformContext *s = ctx->priv;
ctx                52 libavfilter/vf_weave.c static int query_formats(AVFilterContext *ctx)
ctx                69 libavfilter/vf_weave.c     return ff_set_common_formats(ctx, formats);
ctx                74 libavfilter/vf_weave.c     AVFilterContext *ctx = outlink->src;
ctx                75 libavfilter/vf_weave.c     WeaveContext *s = ctx->priv;
ctx                76 libavfilter/vf_weave.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               102 libavfilter/vf_weave.c     AVFilterContext *ctx = inlink->dst;
ctx               103 libavfilter/vf_weave.c     WeaveContext *s = ctx->priv;
ctx               104 libavfilter/vf_weave.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               149 libavfilter/vf_weave.c static av_cold void uninit(AVFilterContext *ctx)
ctx               151 libavfilter/vf_weave.c     WeaveContext *s = ctx->priv;
ctx               185 libavfilter/vf_weave.c static av_cold int init(AVFilterContext *ctx)
ctx               187 libavfilter/vf_weave.c     WeaveContext *s = ctx->priv;
ctx               189 libavfilter/vf_weave.c     if (!strcmp(ctx->filter->name, "doubleweave"))
ctx                44 libavfilter/vf_xbr.c typedef int (*xbrfunc_t)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx               322 libavfilter/vf_xbr.c static int xbr##size##x(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) \
ctx               335 libavfilter/vf_xbr.c     AVFilterContext *ctx = outlink->src;
ctx               336 libavfilter/vf_xbr.c     XBRContext *s = ctx->priv;
ctx               337 libavfilter/vf_xbr.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               344 libavfilter/vf_xbr.c static int query_formats(AVFilterContext *ctx)
ctx               353 libavfilter/vf_xbr.c     return ff_set_common_formats(ctx, fmts_list);
ctx               358 libavfilter/vf_xbr.c     AVFilterContext *ctx = inlink->dst;
ctx               359 libavfilter/vf_xbr.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               360 libavfilter/vf_xbr.c     XBRContext *s = ctx->priv;
ctx               374 libavfilter/vf_xbr.c     ctx->internal->execute(ctx, s->func, &td, NULL, FFMIN(inlink->h, ff_filter_get_nb_threads(ctx)));
ctx               383 libavfilter/vf_xbr.c static av_cold int init(AVFilterContext *ctx)
ctx               385 libavfilter/vf_xbr.c     XBRContext *s = ctx->priv;
ctx                95 libavfilter/vf_xfade.c     void (*transitionf)(AVFilterContext *ctx, const AVFrame *a, const AVFrame *b, AVFrame *out, float progress,
ctx               110 libavfilter/vf_xfade.c static int query_formats(AVFilterContext *ctx)
ctx               134 libavfilter/vf_xfade.c     return ff_set_common_formats(ctx, fmts_list);
ctx               137 libavfilter/vf_xfade.c static av_cold void uninit(AVFilterContext *ctx)
ctx               139 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;
ctx               194 libavfilter/vf_xfade.c static void custom##name##_transition(AVFilterContext *ctx,                          \
ctx               199 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx               253 libavfilter/vf_xfade.c static void fade##name##_transition(AVFilterContext *ctx,                            \
ctx               258 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx               282 libavfilter/vf_xfade.c static void wipeleft##name##_transition(AVFilterContext *ctx,                        \
ctx               287 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx               312 libavfilter/vf_xfade.c static void wiperight##name##_transition(AVFilterContext *ctx,                       \
ctx               317 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx               342 libavfilter/vf_xfade.c static void wipeup##name##_transition(AVFilterContext *ctx,                          \
ctx               347 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx               372 libavfilter/vf_xfade.c static void wipedown##name##_transition(AVFilterContext *ctx,                        \
ctx               377 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx               402 libavfilter/vf_xfade.c static void slideleft##name##_transition(AVFilterContext *ctx,                       \
ctx               407 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx               435 libavfilter/vf_xfade.c static void slideright##name##_transition(AVFilterContext *ctx,                      \
ctx               440 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx               468 libavfilter/vf_xfade.c static void slideup##name##_transition(AVFilterContext *ctx,                        \
ctx               473 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                    \
ctx               499 libavfilter/vf_xfade.c static void slidedown##name##_transition(AVFilterContext *ctx,                      \
ctx               504 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                    \
ctx               530 libavfilter/vf_xfade.c static void circlecrop##name##_transition(AVFilterContext *ctx,                     \
ctx               535 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                    \
ctx               563 libavfilter/vf_xfade.c static void rectcrop##name##_transition(AVFilterContext *ctx,                       \
ctx               568 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                    \
ctx               598 libavfilter/vf_xfade.c static void distance##name##_transition(AVFilterContext *ctx,                       \
ctx               603 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                    \
ctx               633 libavfilter/vf_xfade.c static void fadeblack##name##_transition(AVFilterContext *ctx,                       \
ctx               638 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx               666 libavfilter/vf_xfade.c static void fadewhite##name##_transition(AVFilterContext *ctx,                       \
ctx               671 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx               699 libavfilter/vf_xfade.c static void radial##name##_transition(AVFilterContext *ctx,                          \
ctx               704 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx               727 libavfilter/vf_xfade.c static void smoothleft##name##_transition(AVFilterContext *ctx,                      \
ctx               732 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx               755 libavfilter/vf_xfade.c static void smoothright##name##_transition(AVFilterContext *ctx,                     \
ctx               760 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx               783 libavfilter/vf_xfade.c static void smoothup##name##_transition(AVFilterContext *ctx,                        \
ctx               788 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx               810 libavfilter/vf_xfade.c static void smoothdown##name##_transition(AVFilterContext *ctx,                      \
ctx               815 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx               837 libavfilter/vf_xfade.c static void circleopen##name##_transition(AVFilterContext *ctx,                      \
ctx               842 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx               866 libavfilter/vf_xfade.c static void circleclose##name##_transition(AVFilterContext *ctx,                     \
ctx               871 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx               895 libavfilter/vf_xfade.c static void vertopen##name##_transition(AVFilterContext *ctx,                        \
ctx               900 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx               922 libavfilter/vf_xfade.c static void vertclose##name##_transition(AVFilterContext *ctx,                       \
ctx               927 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx               949 libavfilter/vf_xfade.c static void horzopen##name##_transition(AVFilterContext *ctx,                        \
ctx               954 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx               976 libavfilter/vf_xfade.c static void horzclose##name##_transition(AVFilterContext *ctx,                       \
ctx               981 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx              1010 libavfilter/vf_xfade.c static void dissolve##name##_transition(AVFilterContext *ctx,                        \
ctx              1015 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx              1036 libavfilter/vf_xfade.c static void pixelize##name##_transition(AVFilterContext *ctx,                        \
ctx              1041 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx              1068 libavfilter/vf_xfade.c static void diagtl##name##_transition(AVFilterContext *ctx,                          \
ctx              1073 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx              1097 libavfilter/vf_xfade.c static void diagtr##name##_transition(AVFilterContext *ctx,                          \
ctx              1102 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx              1126 libavfilter/vf_xfade.c static void diagbl##name##_transition(AVFilterContext *ctx,                          \
ctx              1131 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx              1155 libavfilter/vf_xfade.c static void diagbr##name##_transition(AVFilterContext *ctx,                          \
ctx              1160 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx              1185 libavfilter/vf_xfade.c static void hlslice##name##_transition(AVFilterContext *ctx,                         \
ctx              1190 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx              1214 libavfilter/vf_xfade.c static void hrslice##name##_transition(AVFilterContext *ctx,                         \
ctx              1219 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx              1244 libavfilter/vf_xfade.c static void vuslice##name##_transition(AVFilterContext *ctx,                         \
ctx              1249 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx              1273 libavfilter/vf_xfade.c static void vdslice##name##_transition(AVFilterContext *ctx,                         \
ctx              1278 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;                                                     \
ctx              1338 libavfilter/vf_xfade.c     AVFilterContext *ctx = outlink->src;
ctx              1339 libavfilter/vf_xfade.c     AVFilterLink *inlink0 = ctx->inputs[0];
ctx              1340 libavfilter/vf_xfade.c     AVFilterLink *inlink1 = ctx->inputs[1];
ctx              1341 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;
ctx              1346 libavfilter/vf_xfade.c         av_log(ctx, AV_LOG_ERROR, "inputs must be of same pixel format\n");
ctx              1350 libavfilter/vf_xfade.c         av_log(ctx, AV_LOG_ERROR, "First input link %s parameters "
ctx              1353 libavfilter/vf_xfade.c                ctx->input_pads[0].name, inlink0->w, inlink0->h,
ctx              1354 libavfilter/vf_xfade.c                ctx->input_pads[1].name, inlink1->w, inlink1->h);
ctx              1360 libavfilter/vf_xfade.c         av_log(ctx, AV_LOG_ERROR, "First input link %s timebase "
ctx              1363 libavfilter/vf_xfade.c                ctx->input_pads[0].name, inlink0->time_base.num, inlink0->time_base.den,
ctx              1364 libavfilter/vf_xfade.c                ctx->input_pads[1].name, inlink1->time_base.num, inlink1->time_base.den);
ctx              1445 libavfilter/vf_xfade.c                             NULL, NULL, func2_names, func2, 0, ctx);
ctx              1453 libavfilter/vf_xfade.c static int xfade_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx              1455 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;
ctx              1456 libavfilter/vf_xfade.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              1461 libavfilter/vf_xfade.c     s->transitionf(ctx, td->xf[0], td->xf[1], td->out, td->progress, slice_start, slice_end, jobnr);
ctx              1466 libavfilter/vf_xfade.c static int xfade_frame(AVFilterContext *ctx, AVFrame *a, AVFrame *b)
ctx              1468 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;
ctx              1469 libavfilter/vf_xfade.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              1479 libavfilter/vf_xfade.c     ctx->internal->execute(ctx, xfade_slice, &td, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx)));
ctx              1486 libavfilter/vf_xfade.c static int xfade_activate(AVFilterContext *ctx)
ctx              1488 libavfilter/vf_xfade.c     XFadeContext *s = ctx->priv;
ctx              1489 libavfilter/vf_xfade.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              1494 libavfilter/vf_xfade.c     FF_FILTER_FORWARD_STATUS_BACK_ALL(outlink, ctx);
ctx              1497 libavfilter/vf_xfade.c         ret = ff_inlink_consume_frame(ctx->inputs[1], &in);
ctx              1503 libavfilter/vf_xfade.c         } else if (ff_inlink_acknowledge_status(ctx->inputs[1], &status, &pts)) {
ctx              1508 libavfilter/vf_xfade.c                 ff_inlink_request_frame(ctx->inputs[1]);
ctx              1514 libavfilter/vf_xfade.c     if (ff_inlink_queued_frames(ctx->inputs[0]) > 0) {
ctx              1515 libavfilter/vf_xfade.c         s->xf[0] = ff_inlink_peek_frame(ctx->inputs[0], 0);
ctx              1524 libavfilter/vf_xfade.c                 ff_inlink_consume_frame(ctx->inputs[0], &in);
ctx              1532 libavfilter/vf_xfade.c     if (s->xf[0] && ff_inlink_queued_frames(ctx->inputs[1]) > 0) {
ctx              1533 libavfilter/vf_xfade.c         ff_inlink_consume_frame(ctx->inputs[0], &s->xf[0]);
ctx              1534 libavfilter/vf_xfade.c         ff_inlink_consume_frame(ctx->inputs[1], &s->xf[1]);
ctx              1540 libavfilter/vf_xfade.c         ret = xfade_frame(ctx, s->xf[0], s->xf[1]);
ctx              1546 libavfilter/vf_xfade.c     if (ff_inlink_queued_frames(ctx->inputs[0]) > 0 &&
ctx              1547 libavfilter/vf_xfade.c         ff_inlink_queued_frames(ctx->inputs[1]) > 0) {
ctx              1548 libavfilter/vf_xfade.c         ff_filter_set_ready(ctx, 100);
ctx              1553 libavfilter/vf_xfade.c         if (!s->eof[0] && ff_outlink_get_status(ctx->inputs[0])) {
ctx              1557 libavfilter/vf_xfade.c         if (!s->eof[1] && ff_outlink_get_status(ctx->inputs[1])) {
ctx              1561 libavfilter/vf_xfade.c             ff_inlink_request_frame(ctx->inputs[0]);
ctx              1563 libavfilter/vf_xfade.c             ff_inlink_request_frame(ctx->inputs[1]);
ctx              1565 libavfilter/vf_xfade.c             ff_inlink_queued_frames(ctx->inputs[0]) <= 0 ||
ctx              1566 libavfilter/vf_xfade.c             ff_inlink_queued_frames(ctx->inputs[1]) <= 0))
ctx                75 libavfilter/vf_xfade_opencl.c     XFadeOpenCLContext *ctx = avctx->priv;
ctx                92 libavfilter/vf_xfade_opencl.c     ctx->nb_planes = main_planes;
ctx                94 libavfilter/vf_xfade_opencl.c     if (ctx->transition == CUSTOM) {
ctx                95 libavfilter/vf_xfade_opencl.c         err = ff_opencl_filter_load_program_from_file(avctx, ctx->source_file);
ctx               102 libavfilter/vf_xfade_opencl.c     ctx->command_queue = clCreateCommandQueue(ctx->ocf.hwctx->context,
ctx               103 libavfilter/vf_xfade_opencl.c                                               ctx->ocf.hwctx->device_id,
ctx               108 libavfilter/vf_xfade_opencl.c     switch (ctx->transition) {
ctx               109 libavfilter/vf_xfade_opencl.c     case CUSTOM:     kernel_name = ctx->kernel_name; break;
ctx               124 libavfilter/vf_xfade_opencl.c     ctx->kernel = clCreateKernel(ctx->ocf.program, kernel_name, &cle);
ctx               127 libavfilter/vf_xfade_opencl.c     ctx->initialised = 1;
ctx               132 libavfilter/vf_xfade_opencl.c     if (ctx->command_queue)
ctx               133 libavfilter/vf_xfade_opencl.c         clReleaseCommandQueue(ctx->command_queue);
ctx               134 libavfilter/vf_xfade_opencl.c     if (ctx->kernel)
ctx               135 libavfilter/vf_xfade_opencl.c         clReleaseKernel(ctx->kernel);
ctx               142 libavfilter/vf_xfade_opencl.c     XFadeOpenCLContext *ctx = avctx->priv;
ctx               145 libavfilter/vf_xfade_opencl.c     cl_float progress = av_clipf(1.f - ((cl_float)(ctx->pts - ctx->first_pts - ctx->offset_pts) / ctx->duration_pts), 0.f, 1.f);
ctx               150 libavfilter/vf_xfade_opencl.c     if (!ctx->initialised) {
ctx               168 libavfilter/vf_xfade_opencl.c     for (plane = 0; plane < ctx->nb_planes; plane++) {
ctx               173 libavfilter/vf_xfade_opencl.c         CL_SET_KERNEL_ARG(ctx->kernel, kernel_arg, cl_mem, &mem);
ctx               176 libavfilter/vf_xfade_opencl.c         mem = (cl_mem)ctx->xf[0]->data[plane];
ctx               177 libavfilter/vf_xfade_opencl.c         CL_SET_KERNEL_ARG(ctx->kernel, kernel_arg, cl_mem, &mem);
ctx               180 libavfilter/vf_xfade_opencl.c         mem = (cl_mem)ctx->xf[1]->data[plane];
ctx               181 libavfilter/vf_xfade_opencl.c         CL_SET_KERNEL_ARG(ctx->kernel, kernel_arg, cl_mem, &mem);
ctx               184 libavfilter/vf_xfade_opencl.c         CL_SET_KERNEL_ARG(ctx->kernel, kernel_arg, cl_float, &progress);
ctx               192 libavfilter/vf_xfade_opencl.c         cle = clEnqueueNDRangeKernel(ctx->command_queue, ctx->kernel, 2, NULL,
ctx               198 libavfilter/vf_xfade_opencl.c     cle = clFinish(ctx->command_queue);
ctx               201 libavfilter/vf_xfade_opencl.c     err = av_frame_copy_props(output, ctx->xf[0]);
ctx               205 libavfilter/vf_xfade_opencl.c     output->pts = ctx->pts;
ctx               217 libavfilter/vf_xfade_opencl.c     XFadeOpenCLContext *ctx = avctx->priv;
ctx               245 libavfilter/vf_xfade_opencl.c     ctx->first_pts = ctx->last_pts = ctx->pts = AV_NOPTS_VALUE;
ctx               251 libavfilter/vf_xfade_opencl.c     if (ctx->duration)
ctx               252 libavfilter/vf_xfade_opencl.c         ctx->duration_pts = av_rescale_q(ctx->duration, AV_TIME_BASE_Q, outlink->time_base);
ctx               253 libavfilter/vf_xfade_opencl.c     if (ctx->offset)
ctx               254 libavfilter/vf_xfade_opencl.c         ctx->offset_pts = av_rescale_q(ctx->offset, AV_TIME_BASE_Q, outlink->time_base);
ctx               261 libavfilter/vf_xfade_opencl.c     XFadeOpenCLContext *ctx = avctx->priv;
ctx               269 libavfilter/vf_xfade_opencl.c     if (ctx->xfade_is_over) {
ctx               274 libavfilter/vf_xfade_opencl.c             in->pts = (in->pts - ctx->last_pts) + ctx->pts;
ctx               277 libavfilter/vf_xfade_opencl.c             ff_outlink_set_status(outlink, status, ctx->pts);
ctx               288 libavfilter/vf_xfade_opencl.c         ctx->xf[0] = ff_inlink_peek_frame(avctx->inputs[0], 0);
ctx               289 libavfilter/vf_xfade_opencl.c         if (ctx->xf[0]) {
ctx               290 libavfilter/vf_xfade_opencl.c             if (ctx->first_pts == AV_NOPTS_VALUE) {
ctx               291 libavfilter/vf_xfade_opencl.c                 ctx->first_pts = ctx->xf[0]->pts;
ctx               293 libavfilter/vf_xfade_opencl.c             ctx->pts = ctx->xf[0]->pts;
ctx               294 libavfilter/vf_xfade_opencl.c             if (ctx->first_pts + ctx->offset_pts > ctx->xf[0]->pts) {
ctx               295 libavfilter/vf_xfade_opencl.c                 ctx->xf[0] = NULL;
ctx               296 libavfilter/vf_xfade_opencl.c                 ctx->need_second = 0;
ctx               301 libavfilter/vf_xfade_opencl.c             ctx->need_second = 1;
ctx               305 libavfilter/vf_xfade_opencl.c     if (ctx->xf[0] && ff_inlink_queued_frames(avctx->inputs[1]) > 0) {
ctx               306 libavfilter/vf_xfade_opencl.c         ff_inlink_consume_frame(avctx->inputs[0], &ctx->xf[0]);
ctx               307 libavfilter/vf_xfade_opencl.c         ff_inlink_consume_frame(avctx->inputs[1], &ctx->xf[1]);
ctx               309 libavfilter/vf_xfade_opencl.c         ctx->last_pts = ctx->xf[1]->pts;
ctx               310 libavfilter/vf_xfade_opencl.c         ctx->pts = ctx->xf[0]->pts;
ctx               311 libavfilter/vf_xfade_opencl.c         if (ctx->xf[0]->pts - (ctx->first_pts + ctx->offset_pts) > ctx->duration_pts)
ctx               312 libavfilter/vf_xfade_opencl.c             ctx->xfade_is_over = 1;
ctx               313 libavfilter/vf_xfade_opencl.c         ret = xfade_frame(avctx, ctx->xf[0], ctx->xf[1]);
ctx               314 libavfilter/vf_xfade_opencl.c         av_frame_free(&ctx->xf[0]);
ctx               315 libavfilter/vf_xfade_opencl.c         av_frame_free(&ctx->xf[1]);
ctx               326 libavfilter/vf_xfade_opencl.c         if (!ctx->eof[0] && ff_outlink_get_status(avctx->inputs[0])) {
ctx               327 libavfilter/vf_xfade_opencl.c             ctx->eof[0] = 1;
ctx               328 libavfilter/vf_xfade_opencl.c             ctx->xfade_is_over = 1;
ctx               330 libavfilter/vf_xfade_opencl.c         if (!ctx->eof[1] && ff_outlink_get_status(avctx->inputs[1])) {
ctx               331 libavfilter/vf_xfade_opencl.c             ctx->eof[1] = 1;
ctx               333 libavfilter/vf_xfade_opencl.c         if (!ctx->eof[0] && !ctx->xf[0])
ctx               335 libavfilter/vf_xfade_opencl.c         if (!ctx->eof[1] && (ctx->need_second || ctx->eof[0]))
ctx               337 libavfilter/vf_xfade_opencl.c         if (ctx->eof[0] && ctx->eof[1] && (
ctx               349 libavfilter/vf_xfade_opencl.c     XFadeOpenCLContext *ctx = avctx->priv;
ctx               352 libavfilter/vf_xfade_opencl.c     if (ctx->kernel) {
ctx               353 libavfilter/vf_xfade_opencl.c         cle = clReleaseKernel(ctx->kernel);
ctx               359 libavfilter/vf_xfade_opencl.c     if (ctx->command_queue) {
ctx               360 libavfilter/vf_xfade_opencl.c         cle = clReleaseCommandQueue(ctx->command_queue);
ctx                55 libavfilter/vf_xmedian.c     int (*median_frames)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx                58 libavfilter/vf_xmedian.c static int query_formats(AVFilterContext *ctx)
ctx                92 libavfilter/vf_xmedian.c     return ff_set_common_formats(ctx, formats);
ctx                95 libavfilter/vf_xmedian.c static av_cold int init(AVFilterContext *ctx)
ctx                97 libavfilter/vf_xmedian.c     XMedianContext *s = ctx->priv;
ctx               100 libavfilter/vf_xmedian.c     s->tmedian = !strcmp(ctx->filter->name, "tmedian");
ctx               124 libavfilter/vf_xmedian.c         if ((ret = ff_insert_inpad(ctx, i, &pad)) < 0) {
ctx               144 libavfilter/vf_xmedian.c static int median_frames16(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               146 libavfilter/vf_xmedian.c     XMedianContext *s = ctx->priv;
ctx               189 libavfilter/vf_xmedian.c static int median_frames8(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               191 libavfilter/vf_xmedian.c     XMedianContext *s = ctx->priv;
ctx               234 libavfilter/vf_xmedian.c     AVFilterContext *ctx = fs->parent;
ctx               235 libavfilter/vf_xmedian.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               254 libavfilter/vf_xmedian.c     ctx->internal->execute(ctx, s->median_frames, &td, NULL, FFMIN(s->height[1], ff_filter_get_nb_threads(ctx)));
ctx               261 libavfilter/vf_xmedian.c     AVFilterContext *ctx = outlink->src;
ctx               262 libavfilter/vf_xmedian.c     XMedianContext *s = ctx->priv;
ctx               263 libavfilter/vf_xmedian.c     AVRational frame_rate = ctx->inputs[0]->frame_rate;
ctx               264 libavfilter/vf_xmedian.c     AVRational sar = ctx->inputs[0]->sample_aspect_ratio;
ctx               265 libavfilter/vf_xmedian.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               266 libavfilter/vf_xmedian.c     int height = ctx->inputs[0]->h;
ctx               267 libavfilter/vf_xmedian.c     int width = ctx->inputs[0]->w;
ctx               272 libavfilter/vf_xmedian.c         if (ctx->inputs[i]->h != height || ctx->inputs[i]->w != width) {
ctx               273 libavfilter/vf_xmedian.c             av_log(ctx, AV_LOG_ERROR, "Input %d size (%dx%d) does not match input %d size (%dx%d).\n", i, ctx->inputs[i]->w, ctx->inputs[i]->h, 0, width, height);
ctx               306 libavfilter/vf_xmedian.c     if ((ret = ff_framesync_init(&s->fs, ctx, s->nb_inputs)) < 0)
ctx               314 libavfilter/vf_xmedian.c         AVFilterLink *inlink = ctx->inputs[i];
ctx               328 libavfilter/vf_xmedian.c static av_cold void uninit(AVFilterContext *ctx)
ctx               330 libavfilter/vf_xmedian.c     XMedianContext *s = ctx->priv;
ctx               334 libavfilter/vf_xmedian.c     for (int i = 0; i < ctx->nb_inputs && !s->tmedian; i++)
ctx               335 libavfilter/vf_xmedian.c         av_freep(&ctx->input_pads[i].name);
ctx               341 libavfilter/vf_xmedian.c static int activate(AVFilterContext *ctx)
ctx               343 libavfilter/vf_xmedian.c     XMedianContext *s = ctx->priv;
ctx               387 libavfilter/vf_xmedian.c     AVFilterContext *ctx = inlink->dst;
ctx               388 libavfilter/vf_xmedian.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               389 libavfilter/vf_xmedian.c     XMedianContext *s = ctx->priv;
ctx               404 libavfilter/vf_xmedian.c     if (ctx->is_disabled) {
ctx               418 libavfilter/vf_xmedian.c     ctx->internal->execute(ctx, s->median_frames, &td, NULL, FFMIN(s->height[0], ff_filter_get_nb_threads(ctx)));
ctx               190 libavfilter/vf_yadif.c static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               192 libavfilter/vf_yadif.c     YADIFContext *s = ctx->priv;
ctx               229 libavfilter/vf_yadif.c static void filter(AVFilterContext *ctx, AVFrame *dstpic,
ctx               232 libavfilter/vf_yadif.c     YADIFContext *yadif = ctx->priv;
ctx               250 libavfilter/vf_yadif.c         ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(h, ff_filter_get_nb_threads(ctx)));
ctx               256 libavfilter/vf_yadif.c static av_cold void uninit(AVFilterContext *ctx)
ctx               258 libavfilter/vf_yadif.c     YADIFContext *yadif = ctx->priv;
ctx               265 libavfilter/vf_yadif.c static int query_formats(AVFilterContext *ctx)
ctx               288 libavfilter/vf_yadif.c     return ff_set_common_formats(ctx, fmts_list);
ctx               293 libavfilter/vf_yadif.c     AVFilterContext *ctx = outlink->src;
ctx               294 libavfilter/vf_yadif.c     YADIFContext *s = ctx->priv;
ctx               296 libavfilter/vf_yadif.c     outlink->time_base.num = ctx->inputs[0]->time_base.num;
ctx               297 libavfilter/vf_yadif.c     outlink->time_base.den = ctx->inputs[0]->time_base.den * 2;
ctx               298 libavfilter/vf_yadif.c     outlink->w             = ctx->inputs[0]->w;
ctx               299 libavfilter/vf_yadif.c     outlink->h             = ctx->inputs[0]->h;
ctx               302 libavfilter/vf_yadif.c         outlink->frame_rate = av_mul_q(ctx->inputs[0]->frame_rate,
ctx               306 libavfilter/vf_yadif.c         av_log(ctx, AV_LOG_ERROR, "Video of less than 3 columns or lines is not supported\n");
ctx                51 libavfilter/vf_yadif_cuda.c #define CHECK_CU(x) FF_CUDA_CHECK_DL(ctx, s->hwctx->internal->cuda_dl, x)
ctx                53 libavfilter/vf_yadif_cuda.c static CUresult call_kernel(AVFilterContext *ctx, CUfunction func,
ctx                65 libavfilter/vf_yadif_cuda.c     DeintCUDAContext *s = ctx->priv;
ctx               121 libavfilter/vf_yadif_cuda.c static void filter(AVFilterContext *ctx, AVFrame *dst,
ctx               124 libavfilter/vf_yadif_cuda.c     DeintCUDAContext *s = ctx->priv;
ctx               149 libavfilter/vf_yadif_cuda.c             av_log(ctx, AV_LOG_ERROR, "Unsupported pixel format: %s\n", y->csp->name);
ctx               162 libavfilter/vf_yadif_cuda.c             av_log(ctx, AV_LOG_ERROR, "Unsupported pixel format: %s\n", y->csp->name);
ctx               165 libavfilter/vf_yadif_cuda.c         av_log(ctx, AV_LOG_TRACE,
ctx               168 libavfilter/vf_yadif_cuda.c         call_kernel(ctx, func,
ctx               188 libavfilter/vf_yadif_cuda.c static av_cold void deint_cuda_uninit(AVFilterContext *ctx)
ctx               191 libavfilter/vf_yadif_cuda.c     DeintCUDAContext *s = ctx->priv;
ctx               211 libavfilter/vf_yadif_cuda.c static int deint_cuda_query_formats(AVFilterContext *ctx)
ctx               219 libavfilter/vf_yadif_cuda.c                               &ctx->inputs[0]->out_formats)) < 0)
ctx               222 libavfilter/vf_yadif_cuda.c                               &ctx->outputs[0]->in_formats)) < 0)
ctx               230 libavfilter/vf_yadif_cuda.c     AVFilterContext *ctx = inlink->dst;
ctx               231 libavfilter/vf_yadif_cuda.c     DeintCUDAContext *s  = ctx->priv;
ctx               234 libavfilter/vf_yadif_cuda.c         av_log(ctx, AV_LOG_ERROR, "A hardware frames reference is "
ctx               241 libavfilter/vf_yadif_cuda.c         av_log(ctx, AV_LOG_ERROR, "A input frames reference create "
ctx               253 libavfilter/vf_yadif_cuda.c     AVFilterContext *ctx = link->src;
ctx               254 libavfilter/vf_yadif_cuda.c     DeintCUDAContext *s = ctx->priv;
ctx               263 libavfilter/vf_yadif_cuda.c         av_log(ctx, AV_LOG_ERROR, "A device reference create "
ctx               274 libavfilter/vf_yadif_cuda.c         av_log(ctx, AV_LOG_ERROR, "Failed to create HW frame context "
ctx               284 libavfilter/vf_yadif_cuda.c     output_frames->width     = ctx->inputs[0]->w;
ctx               285 libavfilter/vf_yadif_cuda.c     output_frames->height    = ctx->inputs[0]->h;
ctx               289 libavfilter/vf_yadif_cuda.c     ret = ff_filter_init_hw_frames(ctx, link, 10);
ctx               295 libavfilter/vf_yadif_cuda.c         av_log(ctx, AV_LOG_ERROR, "Failed to initialise CUDA frame "
ctx               300 libavfilter/vf_yadif_cuda.c     link->time_base.num = ctx->inputs[0]->time_base.num;
ctx               301 libavfilter/vf_yadif_cuda.c     link->time_base.den = ctx->inputs[0]->time_base.den * 2;
ctx               302 libavfilter/vf_yadif_cuda.c     link->w             = ctx->inputs[0]->w;
ctx               303 libavfilter/vf_yadif_cuda.c     link->h             = ctx->inputs[0]->h;
ctx               306 libavfilter/vf_yadif_cuda.c         link->frame_rate = av_mul_q(ctx->inputs[0]->frame_rate,
ctx               310 libavfilter/vf_yadif_cuda.c         av_log(ctx, AV_LOG_ERROR, "Video of less than 3 columns or lines is not supported\n");
ctx                51 libavfilter/vf_yaepblur.c     int (*pre_calculate_row)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx                52 libavfilter/vf_yaepblur.c     int (*filter_slice     )(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx                55 libavfilter/vf_yaepblur.c static av_cold void uninit(AVFilterContext *ctx)
ctx                57 libavfilter/vf_yaepblur.c     YAEPContext *s = ctx->priv;
ctx                62 libavfilter/vf_yaepblur.c static int query_formats(AVFilterContext *ctx)
ctx                86 libavfilter/vf_yaepblur.c     return ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx                99 libavfilter/vf_yaepblur.c static int pre_calculate_row_##name(AVFilterContext *ctx, void *arg,     \
ctx               103 libavfilter/vf_yaepblur.c     YAEPContext *s = ctx->priv;                                          \
ctx               135 libavfilter/vf_yaepblur.c static int pre_calculate_col(AVFilterContext *ctx, void *arg,
ctx               139 libavfilter/vf_yaepblur.c     YAEPContext *s = ctx->priv;
ctx               166 libavfilter/vf_yaepblur.c static int filter_slice_##name(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)                   \
ctx               169 libavfilter/vf_yaepblur.c     YAEPContext *s = ctx->priv;                                                                           \
ctx               222 libavfilter/vf_yaepblur.c     AVFilterContext *ctx = inlink->dst;
ctx               223 libavfilter/vf_yaepblur.c     YAEPContext *s = ctx->priv;
ctx               224 libavfilter/vf_yaepblur.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               227 libavfilter/vf_yaepblur.c     const int nb_threads = ff_filter_get_nb_threads(ctx);
ctx               256 libavfilter/vf_yaepblur.c         ctx->internal->execute(ctx, s->pre_calculate_row, &td, NULL, FFMIN(td.height, nb_threads));
ctx               257 libavfilter/vf_yaepblur.c         ctx->internal->execute(ctx, pre_calculate_col, &td, NULL, FFMIN(td.width,  nb_threads));
ctx               261 libavfilter/vf_yaepblur.c         ctx->internal->execute(ctx, s->filter_slice, &td, NULL, FFMIN(td.height, nb_threads));
ctx               117 libavfilter/vf_zoompan.c static av_cold int init(AVFilterContext *ctx)
ctx               119 libavfilter/vf_zoompan.c     ZPContext *s = ctx->priv;
ctx               127 libavfilter/vf_zoompan.c     AVFilterContext *ctx = outlink->src;
ctx               128 libavfilter/vf_zoompan.c     ZPContext *s = ctx->priv;
ctx               138 libavfilter/vf_zoompan.c     ret = av_expr_parse(&s->zoom_expr, s->zoom_expr_str, var_names, NULL, NULL, NULL, NULL, 0, ctx);
ctx               142 libavfilter/vf_zoompan.c     ret = av_expr_parse(&s->x_expr, s->x_expr_str, var_names, NULL, NULL, NULL, NULL, 0, ctx);
ctx               146 libavfilter/vf_zoompan.c     ret = av_expr_parse(&s->y_expr, s->y_expr_str, var_names, NULL, NULL, NULL, NULL, 0, ctx);
ctx               153 libavfilter/vf_zoompan.c static int output_single_frame(AVFilterContext *ctx, AVFrame *in, double *var_values, int i,
ctx               156 libavfilter/vf_zoompan.c     ZPContext *s = ctx->priv;
ctx               157 libavfilter/vf_zoompan.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               254 libavfilter/vf_zoompan.c static int activate(AVFilterContext *ctx)
ctx               256 libavfilter/vf_zoompan.c     ZPContext *s = ctx->priv;
ctx               257 libavfilter/vf_zoompan.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               258 libavfilter/vf_zoompan.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               267 libavfilter/vf_zoompan.c         ret = output_single_frame(ctx, s->in, s->var_values, s->current_frame,
ctx               299 libavfilter/vf_zoompan.c                                           NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0) {
ctx               306 libavfilter/vf_zoompan.c         ret = output_single_frame(ctx, s->in, s->var_values, s->current_frame,
ctx               323 libavfilter/vf_zoompan.c static int query_formats(AVFilterContext *ctx)
ctx               342 libavfilter/vf_zoompan.c     return ff_set_common_formats(ctx, fmts_list);
ctx               345 libavfilter/vf_zoompan.c static av_cold void uninit(AVFilterContext *ctx)
ctx               347 libavfilter/vf_zoompan.c     ZPContext *s = ctx->priv;
ctx               130 libavfilter/vf_zscale.c static av_cold int init_dict(AVFilterContext *ctx, AVDictionary **opts)
ctx               132 libavfilter/vf_zscale.c     ZScaleContext *s = ctx->priv;
ctx               136 libavfilter/vf_zscale.c         av_log(ctx, AV_LOG_ERROR,
ctx               147 libavfilter/vf_zscale.c             av_log(ctx, AV_LOG_ERROR,
ctx               164 libavfilter/vf_zscale.c static int query_formats(AVFilterContext *ctx)
ctx               190 libavfilter/vf_zscale.c     ret = ff_formats_ref(ff_make_format_list(pixel_fmts), &ctx->inputs[0]->out_formats);
ctx               193 libavfilter/vf_zscale.c     return ff_formats_ref(ff_make_format_list(pixel_fmts), &ctx->outputs[0]->in_formats);
ctx               198 libavfilter/vf_zscale.c     AVFilterContext *ctx = outlink->src;
ctx               200 libavfilter/vf_zscale.c     ZScaleContext *s = ctx->priv;
ctx               225 libavfilter/vf_zscale.c                            NULL, NULL, NULL, NULL, NULL, 0, ctx);
ctx               229 libavfilter/vf_zscale.c                                       NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               235 libavfilter/vf_zscale.c                                       NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               287 libavfilter/vf_zscale.c         av_log(ctx, AV_LOG_ERROR, "Rescaled value for width or height is too big.\n");
ctx               304 libavfilter/vf_zscale.c     av_log(ctx, AV_LOG_VERBOSE, "w:%d h:%d fmt:%s sar:%d/%d -> w:%d h:%d fmt:%s sar:%d/%d\n",
ctx               312 libavfilter/vf_zscale.c     av_log(ctx, AV_LOG_ERROR,
ctx               319 libavfilter/vf_zscale.c static int print_zimg_error(AVFilterContext *ctx)
ctx               324 libavfilter/vf_zscale.c     av_log(ctx, AV_LOG_ERROR, "code %d: %s\n", err_code, err_msg);
ctx               744 libavfilter/vf_zscale.c static av_cold void uninit(AVFilterContext *ctx)
ctx               746 libavfilter/vf_zscale.c     ZScaleContext *s = ctx->priv;
ctx               754 libavfilter/vf_zscale.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               757 libavfilter/vf_zscale.c     ZScaleContext *s = ctx->priv;
ctx               765 libavfilter/vf_zscale.c         AVFilterLink *outlink = ctx->outputs[0];
ctx                24 libavfilter/vidstabutils.c VSPixelFormat ff_av2vs_pixfmt(AVFilterContext *ctx, enum AVPixelFormat pf)
ctx                39 libavfilter/vidstabutils.c         av_log(ctx, AV_LOG_ERROR, "cannot deal with pixel format %i\n", pf);
ctx                53 libavfilter/vidstabutils.c     VS2AVLogCtx ctx;
ctx                61 libavfilter/vidstabutils.c     ctx.class = &class;
ctx                63 libavfilter/vidstabutils.c     av_vlog(&ctx, type, format, ap);
ctx                37 libavfilter/vidstabutils.h VSPixelFormat ff_av2vs_pixfmt(AVFilterContext *ctx, enum AVPixelFormat pf);
ctx                87 libavfilter/vsrc_cellauto.c static void show_cellauto_row(AVFilterContext *ctx)
ctx                89 libavfilter/vsrc_cellauto.c     CellAutoContext *s = ctx->priv;
ctx                99 libavfilter/vsrc_cellauto.c     av_log(ctx, AV_LOG_DEBUG, "generation:%"PRId64" row:%s|\n", s->generation, line);
ctx               104 libavfilter/vsrc_cellauto.c static int init_pattern_from_string(AVFilterContext *ctx)
ctx               106 libavfilter/vsrc_cellauto.c     CellAutoContext *s = ctx->priv;
ctx               111 libavfilter/vsrc_cellauto.c     av_log(ctx, AV_LOG_DEBUG, "w:%d\n", w);
ctx               115 libavfilter/vsrc_cellauto.c             av_log(ctx, AV_LOG_ERROR,
ctx               133 libavfilter/vsrc_cellauto.c         av_log(ctx, AV_LOG_DEBUG, "%d %c\n", i, *p == '\n' ? 'N' : *p);
ctx               143 libavfilter/vsrc_cellauto.c static int init_pattern_from_file(AVFilterContext *ctx)
ctx               145 libavfilter/vsrc_cellauto.c     CellAutoContext *s = ctx->priv;
ctx               149 libavfilter/vsrc_cellauto.c                       &s->file_buf, &s->file_bufsize, 0, ctx);
ctx               160 libavfilter/vsrc_cellauto.c     return init_pattern_from_string(ctx);
ctx               163 libavfilter/vsrc_cellauto.c static av_cold int init(AVFilterContext *ctx)
ctx               165 libavfilter/vsrc_cellauto.c     CellAutoContext *s = ctx->priv;
ctx               172 libavfilter/vsrc_cellauto.c         av_log(ctx, AV_LOG_ERROR, "Only one of the filename or pattern options can be used\n");
ctx               177 libavfilter/vsrc_cellauto.c         if ((ret = init_pattern_from_file(ctx)) < 0)
ctx               180 libavfilter/vsrc_cellauto.c         if ((ret = init_pattern_from_string(ctx)) < 0)
ctx               201 libavfilter/vsrc_cellauto.c     av_log(ctx, AV_LOG_VERBOSE,
ctx               209 libavfilter/vsrc_cellauto.c static av_cold void uninit(AVFilterContext *ctx)
ctx               211 libavfilter/vsrc_cellauto.c     CellAutoContext *s = ctx->priv;
ctx               229 libavfilter/vsrc_cellauto.c static void evolve(AVFilterContext *ctx)
ctx               231 libavfilter/vsrc_cellauto.c     CellAutoContext *s = ctx->priv;
ctx               253 libavfilter/vsrc_cellauto.c         ff_dlog(ctx, "i:%d context:%c%c%c -> cell:%d\n", i,
ctx               260 libavfilter/vsrc_cellauto.c static void fill_picture(AVFilterContext *ctx, AVFrame *picref)
ctx               262 libavfilter/vsrc_cellauto.c     CellAutoContext *s = ctx->priv;
ctx               311 libavfilter/vsrc_cellauto.c static int query_formats(AVFilterContext *ctx)
ctx               317 libavfilter/vsrc_cellauto.c     return ff_set_common_formats(ctx, fmts_list);
ctx                49 libavfilter/vsrc_gradients.c     int (*draw_slice)(AVFilterContext *ctx, void *arg, int job, int nb_jobs);
ctx                80 libavfilter/vsrc_gradients.c static int query_formats(AVFilterContext *ctx)
ctx                91 libavfilter/vsrc_gradients.c     return ff_set_common_formats(ctx, fmts_list);
ctx               170 libavfilter/vsrc_gradients.c static int draw_gradients_slice(AVFilterContext *ctx, void *arg, int job, int nb_jobs)
ctx               172 libavfilter/vsrc_gradients.c     GradientsContext *s = ctx->priv;
ctx               193 libavfilter/vsrc_gradients.c static int draw_gradients_slice16(AVFilterContext *ctx, void *arg, int job, int nb_jobs)
ctx               195 libavfilter/vsrc_gradients.c     GradientsContext *s = ctx->priv;
ctx               216 libavfilter/vsrc_gradients.c     AVFilterContext *ctx = inlink->src;
ctx               217 libavfilter/vsrc_gradients.c     GradientsContext *s = ctx->priv;
ctx               220 libavfilter/vsrc_gradients.c     if (av_image_check_size(s->w, s->h, 0, ctx) < 0)
ctx               247 libavfilter/vsrc_gradients.c     AVFilterContext *ctx = outlink->src;
ctx               248 libavfilter/vsrc_gradients.c     GradientsContext *s = ctx->priv;
ctx               266 libavfilter/vsrc_gradients.c     ctx->internal->execute(ctx, s->draw_slice, frame, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx)));
ctx               145 libavfilter/vsrc_life.c static void show_life_grid(AVFilterContext *ctx)
ctx               147 libavfilter/vsrc_life.c     LifeContext *life = ctx->priv;
ctx               157 libavfilter/vsrc_life.c         av_log(ctx, AV_LOG_DEBUG, "%3d: %s\n", i, line);
ctx               163 libavfilter/vsrc_life.c static int init_pattern_from_file(AVFilterContext *ctx)
ctx               165 libavfilter/vsrc_life.c     LifeContext *life = ctx->priv;
ctx               170 libavfilter/vsrc_life.c                            0, ctx)) < 0)
ctx               183 libavfilter/vsrc_life.c     av_log(ctx, AV_LOG_DEBUG, "h:%d max_w:%d\n", h, max_w);
ctx               187 libavfilter/vsrc_life.c             av_log(ctx, AV_LOG_ERROR,
ctx               209 libavfilter/vsrc_life.c             av_log(ctx, AV_LOG_DEBUG, "%d:%d %c\n", i, j, *p == '\n' ? 'N' : *p);
ctx               221 libavfilter/vsrc_life.c static av_cold int init(AVFilterContext *ctx)
ctx               223 libavfilter/vsrc_life.c     LifeContext *life = ctx->priv;
ctx               229 libavfilter/vsrc_life.c     if ((ret = parse_rule(&life->born_rule, &life->stay_rule, life->rule_str, ctx)) < 0)
ctx               233 libavfilter/vsrc_life.c         av_log(ctx, AV_LOG_WARNING,
ctx               258 libavfilter/vsrc_life.c         if ((ret = init_pattern_from_file(ctx)) < 0)
ctx               262 libavfilter/vsrc_life.c     av_log(ctx, AV_LOG_VERBOSE,
ctx               270 libavfilter/vsrc_life.c static av_cold void uninit(AVFilterContext *ctx)
ctx               272 libavfilter/vsrc_life.c     LifeContext *life = ctx->priv;
ctx               291 libavfilter/vsrc_life.c static void evolve(AVFilterContext *ctx)
ctx               293 libavfilter/vsrc_life.c     LifeContext *life = ctx->priv;
ctx               338 libavfilter/vsrc_life.c             ff_dlog(ctx, "i:%d j:%d live_neighbors:%d cell:%d -> cell:%d\n", i, j, n, cell, *newbuf);
ctx               346 libavfilter/vsrc_life.c static void fill_picture_monoblack(AVFilterContext *ctx, AVFrame *picref)
ctx               348 libavfilter/vsrc_life.c     LifeContext *life = ctx->priv;
ctx               371 libavfilter/vsrc_life.c static void fill_picture_rgb(AVFilterContext *ctx, AVFrame *picref)
ctx               373 libavfilter/vsrc_life.c     LifeContext *life = ctx->priv;
ctx               415 libavfilter/vsrc_life.c static int query_formats(AVFilterContext *ctx)
ctx               417 libavfilter/vsrc_life.c     LifeContext *life = ctx->priv;
ctx               431 libavfilter/vsrc_life.c     return ff_set_common_formats(ctx, fmts_list);
ctx               122 libavfilter/vsrc_mandelbrot.c static av_cold int init(AVFilterContext *ctx)
ctx               124 libavfilter/vsrc_mandelbrot.c     MBContext *s = ctx->priv;
ctx               140 libavfilter/vsrc_mandelbrot.c static av_cold void uninit(AVFilterContext *ctx)
ctx               142 libavfilter/vsrc_mandelbrot.c     MBContext *s = ctx->priv;
ctx               149 libavfilter/vsrc_mandelbrot.c static int query_formats(AVFilterContext *ctx)
ctx               159 libavfilter/vsrc_mandelbrot.c     return ff_set_common_formats(ctx, fmts_list);
ctx               164 libavfilter/vsrc_mandelbrot.c     AVFilterContext *ctx = inlink->src;
ctx               165 libavfilter/vsrc_mandelbrot.c     MBContext *s = ctx->priv;
ctx               167 libavfilter/vsrc_mandelbrot.c     if (av_image_check_size(s->w, s->h, 0, ctx) < 0)
ctx               177 libavfilter/vsrc_mandelbrot.c static void fill_from_cache(AVFilterContext *ctx, uint32_t *color, int *in_cidx, int *out_cidx, double py, double scale){
ctx               178 libavfilter/vsrc_mandelbrot.c     MBContext *s = ctx->priv;
ctx               249 libavfilter/vsrc_mandelbrot.c static void draw_mandelbrot(AVFilterContext *ctx, uint32_t *color, int linesize, int64_t pts)
ctx               251 libavfilter/vsrc_mandelbrot.c     MBContext *s = ctx->priv;
ctx               255 libavfilter/vsrc_mandelbrot.c     fill_from_cache(ctx, NULL, &in_cidx, NULL, s->start_y+scale*(-s->h/2-0.5), scale);
ctx               261 libavfilter/vsrc_mandelbrot.c         fill_from_cache(ctx, NULL, &in_cidx, &next_cidx, ci, scale);
ctx               264 libavfilter/vsrc_mandelbrot.c             fill_from_cache(ctx, color+linesize*y1, &tmp_cidx, NULL, ci + 3*scale/2, scale);
ctx               390 libavfilter/vsrc_mandelbrot.c         fill_from_cache(ctx, NULL, &in_cidx, &next_cidx, ci + scale/2, scale);
ctx               395 libavfilter/vsrc_mandelbrot.c         av_log(ctx, AV_LOG_INFO, "Mandelbrot cache is too small!\n");
ctx               261 libavfilter/vsrc_mptestsrc.c static av_cold int init(AVFilterContext *ctx)
ctx               263 libavfilter/vsrc_mptestsrc.c     MPTestContext *test = ctx->priv;
ctx               269 libavfilter/vsrc_mptestsrc.c     av_log(ctx, AV_LOG_VERBOSE, "rate:%d/%d duration:%f\n",
ctx               279 libavfilter/vsrc_mptestsrc.c     AVFilterContext *ctx = outlink->src;
ctx               280 libavfilter/vsrc_mptestsrc.c     MPTestContext *test = ctx->priv;
ctx               293 libavfilter/vsrc_mptestsrc.c static int query_formats(AVFilterContext *ctx)
ctx               302 libavfilter/vsrc_mptestsrc.c     return ff_set_common_formats(ctx, fmts_list);
ctx                53 libavfilter/vsrc_sierpinski.c     int (*draw_slice)(AVFilterContext *ctx, void *arg, int job, int nb_jobs);
ctx                74 libavfilter/vsrc_sierpinski.c static int query_formats(AVFilterContext *ctx)
ctx                84 libavfilter/vsrc_sierpinski.c     return ff_set_common_formats(ctx, fmts_list);
ctx               103 libavfilter/vsrc_sierpinski.c static int draw_triangle_slice(AVFilterContext *ctx, void *arg, int job, int nb_jobs)
ctx               105 libavfilter/vsrc_sierpinski.c     SierpinskiContext *s = ctx->priv;
ctx               128 libavfilter/vsrc_sierpinski.c static int draw_carpet_slice(AVFilterContext *ctx, void *arg, int job, int nb_jobs)
ctx               130 libavfilter/vsrc_sierpinski.c     SierpinskiContext *s = ctx->priv;
ctx               155 libavfilter/vsrc_sierpinski.c     AVFilterContext *ctx = inlink->src;
ctx               156 libavfilter/vsrc_sierpinski.c     SierpinskiContext *s = ctx->priv;
ctx               158 libavfilter/vsrc_sierpinski.c     if (av_image_check_size(s->w, s->h, 0, ctx) < 0)
ctx               174 libavfilter/vsrc_sierpinski.c static void draw_sierpinski(AVFilterContext *ctx, AVFrame *frame)
ctx               176 libavfilter/vsrc_sierpinski.c     SierpinskiContext *s = ctx->priv;
ctx               177 libavfilter/vsrc_sierpinski.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               197 libavfilter/vsrc_sierpinski.c     ctx->internal->execute(ctx, s->draw_slice, frame, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx)));
ctx                64 libavfilter/vsrc_testsrc.c     void (* fill_picture_fn)(AVFilterContext *ctx, AVFrame *frame);
ctx               106 libavfilter/vsrc_testsrc.c static av_cold int init(AVFilterContext *ctx)
ctx               108 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx               114 libavfilter/vsrc_testsrc.c     av_log(ctx, AV_LOG_VERBOSE, "size:%dx%d rate:%d/%d duration:%f sar:%d/%d\n",
ctx               121 libavfilter/vsrc_testsrc.c static av_cold void uninit(AVFilterContext *ctx)
ctx               123 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx               193 libavfilter/vsrc_testsrc.c static void color_fill_picture(AVFilterContext *ctx, AVFrame *picref)
ctx               195 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx               201 libavfilter/vsrc_testsrc.c static av_cold int color_init(AVFilterContext *ctx)
ctx               203 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx               206 libavfilter/vsrc_testsrc.c     return init(ctx);
ctx               209 libavfilter/vsrc_testsrc.c static int color_query_formats(AVFilterContext *ctx)
ctx               211 libavfilter/vsrc_testsrc.c     return ff_set_common_formats(ctx, ff_draw_supported_pixel_formats(0));
ctx               216 libavfilter/vsrc_testsrc.c     AVFilterContext *ctx = inlink->src;
ctx               217 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx               225 libavfilter/vsrc_testsrc.c     if (av_image_check_size(test->w, test->h, 0, ctx) < 0)
ctx               234 libavfilter/vsrc_testsrc.c static int color_process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               237 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx               240 libavfilter/vsrc_testsrc.c     ret = ff_filter_process_command(ctx, cmd, args, res, res_len, flags);
ctx               284 libavfilter/vsrc_testsrc.c static void haldclutsrc_fill_picture(AVFilterContext *ctx, AVFrame *frame)
ctx               288 libavfilter/vsrc_testsrc.c     const TestSourceContext *hc = ctx->priv;
ctx               347 libavfilter/vsrc_testsrc.c static av_cold int haldclutsrc_init(AVFilterContext *ctx)
ctx               349 libavfilter/vsrc_testsrc.c     TestSourceContext *hc = ctx->priv;
ctx               352 libavfilter/vsrc_testsrc.c     return init(ctx);
ctx               355 libavfilter/vsrc_testsrc.c static int haldclutsrc_query_formats(AVFilterContext *ctx)
ctx               371 libavfilter/vsrc_testsrc.c     return ff_set_common_formats(ctx, fmts_list);
ctx               376 libavfilter/vsrc_testsrc.c     AVFilterContext *ctx = outlink->src;
ctx               377 libavfilter/vsrc_testsrc.c     TestSourceContext *hc = ctx->priv;
ctx               411 libavfilter/vsrc_testsrc.c static void nullsrc_fill_picture(AVFilterContext *ctx, AVFrame *picref) { }
ctx               413 libavfilter/vsrc_testsrc.c static av_cold int nullsrc_init(AVFilterContext *ctx)
ctx               415 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx               418 libavfilter/vsrc_testsrc.c     return init(ctx);
ctx               527 libavfilter/vsrc_testsrc.c static void test_fill_picture(AVFilterContext *ctx, AVFrame *frame)
ctx               529 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx               637 libavfilter/vsrc_testsrc.c static av_cold int test_init(AVFilterContext *ctx)
ctx               639 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx               642 libavfilter/vsrc_testsrc.c     return init(ctx);
ctx               645 libavfilter/vsrc_testsrc.c static int test_query_formats(AVFilterContext *ctx)
ctx               654 libavfilter/vsrc_testsrc.c     return ff_set_common_formats(ctx, fmts_list);
ctx               732 libavfilter/vsrc_testsrc.c static void test2_fill_picture(AVFilterContext *ctx, AVFrame *frame)
ctx               734 libavfilter/vsrc_testsrc.c     TestSourceContext *s = ctx->priv;
ctx               904 libavfilter/vsrc_testsrc.c static av_cold int test2_init(AVFilterContext *ctx)
ctx               906 libavfilter/vsrc_testsrc.c     TestSourceContext *s = ctx->priv;
ctx               909 libavfilter/vsrc_testsrc.c     return init(ctx);
ctx               912 libavfilter/vsrc_testsrc.c static int test2_query_formats(AVFilterContext *ctx)
ctx               914 libavfilter/vsrc_testsrc.c     return ff_set_common_formats(ctx, ff_draw_supported_pixel_formats(0));
ctx               919 libavfilter/vsrc_testsrc.c     AVFilterContext *ctx = inlink->src;
ctx               920 libavfilter/vsrc_testsrc.c     TestSourceContext *s = ctx->priv;
ctx               925 libavfilter/vsrc_testsrc.c     if (av_image_check_size(s->w, s->h, 0, ctx) < 0)
ctx               995 libavfilter/vsrc_testsrc.c static void rgbtest_fill_picture(AVFilterContext *ctx, AVFrame *frame)
ctx               997 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx              1010 libavfilter/vsrc_testsrc.c                                ctx->outputs[0]->format, test->rgba_map);
ctx              1015 libavfilter/vsrc_testsrc.c static av_cold int rgbtest_init(AVFilterContext *ctx)
ctx              1017 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx              1021 libavfilter/vsrc_testsrc.c     return init(ctx);
ctx              1024 libavfilter/vsrc_testsrc.c static int rgbtest_query_formats(AVFilterContext *ctx)
ctx              1038 libavfilter/vsrc_testsrc.c     return ff_set_common_formats(ctx, fmts_list);
ctx              1078 libavfilter/vsrc_testsrc.c static void yuvtest_fill_picture8(AVFilterContext *ctx, AVFrame *frame)
ctx              1135 libavfilter/vsrc_testsrc.c static void yuvtest_fill_picture16(AVFilterContext *ctx, AVFrame *frame)
ctx              1192 libavfilter/vsrc_testsrc.c static av_cold int yuvtest_init(AVFilterContext *ctx)
ctx              1194 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx              1197 libavfilter/vsrc_testsrc.c     return init(ctx);
ctx              1200 libavfilter/vsrc_testsrc.c static int yuvtest_query_formats(AVFilterContext *ctx)
ctx              1213 libavfilter/vsrc_testsrc.c     return ff_set_common_formats(ctx, fmts_list);
ctx              1353 libavfilter/vsrc_testsrc.c static int smptebars_query_formats(AVFilterContext *ctx)
ctx              1365 libavfilter/vsrc_testsrc.c     return ff_set_common_formats(ctx, fmts_list);
ctx              1383 libavfilter/vsrc_testsrc.c static void pal75bars_fill_picture(AVFilterContext *ctx, AVFrame *picref)
ctx              1385 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx              1403 libavfilter/vsrc_testsrc.c static av_cold int pal75bars_init(AVFilterContext *ctx)
ctx              1405 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx              1409 libavfilter/vsrc_testsrc.c     return init(ctx);
ctx              1431 libavfilter/vsrc_testsrc.c static void pal100bars_fill_picture(AVFilterContext *ctx, AVFrame *picref)
ctx              1433 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx              1449 libavfilter/vsrc_testsrc.c static av_cold int pal100bars_init(AVFilterContext *ctx)
ctx              1451 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx              1455 libavfilter/vsrc_testsrc.c     return init(ctx);
ctx              1477 libavfilter/vsrc_testsrc.c static void smptebars_fill_picture(AVFilterContext *ctx, AVFrame *picref)
ctx              1479 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx              1516 libavfilter/vsrc_testsrc.c static av_cold int smptebars_init(AVFilterContext *ctx)
ctx              1518 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx              1522 libavfilter/vsrc_testsrc.c     return init(ctx);
ctx              1544 libavfilter/vsrc_testsrc.c static void smptehdbars_fill_picture(AVFilterContext *ctx, AVFrame *picref)
ctx              1546 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx              1621 libavfilter/vsrc_testsrc.c static av_cold int smptehdbars_init(AVFilterContext *ctx)
ctx              1623 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx              1627 libavfilter/vsrc_testsrc.c     return init(ctx);
ctx              1654 libavfilter/vsrc_testsrc.c static void allyuv_fill_picture(AVFilterContext *ctx, AVFrame *frame)
ctx              1679 libavfilter/vsrc_testsrc.c static av_cold int allyuv_init(AVFilterContext *ctx)
ctx              1681 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx              1686 libavfilter/vsrc_testsrc.c     return init(ctx);
ctx              1689 libavfilter/vsrc_testsrc.c static int allyuv_query_formats(AVFilterContext *ctx)
ctx              1699 libavfilter/vsrc_testsrc.c     return ff_set_common_formats(ctx, fmts_list);
ctx              1735 libavfilter/vsrc_testsrc.c static void allrgb_fill_picture(AVFilterContext *ctx, AVFrame *frame)
ctx              1753 libavfilter/vsrc_testsrc.c static av_cold int allrgb_init(AVFilterContext *ctx)
ctx              1755 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx              1760 libavfilter/vsrc_testsrc.c     return init(ctx);
ctx              1771 libavfilter/vsrc_testsrc.c static int allrgb_query_formats(AVFilterContext *ctx)
ctx              1780 libavfilter/vsrc_testsrc.c     return ff_set_common_formats(ctx, fmts_list);
ctx                25 libavfilter/vulkan.c #define FN_CREATING(ctx, type, shortname, array, num)                          \
ctx                26 libavfilter/vulkan.c static av_always_inline type *create_ ##shortname(ctx *dctx)                   \
ctx               339 libavfilter/vulkan.c int ff_vk_create_exec_ctx(AVFilterContext *avctx, FFVkExecContext **ctx)
ctx               395 libavfilter/vulkan.c     *ctx = e;
ctx               299 libavfilter/vulkan.h int ff_vk_create_exec_ctx(AVFilterContext *avctx, FFVkExecContext **ctx);
ctx                64 libavfilter/yadif.h     void (*filter)(AVFilterContext *ctx, AVFrame *dstpic, int parity, int tff);
ctx                27 libavfilter/yadif_common.c static int return_frame(AVFilterContext *ctx, int is_second)
ctx                29 libavfilter/yadif_common.c     YADIFContext *yadif = ctx->priv;
ctx                30 libavfilter/yadif_common.c     AVFilterLink *link  = ctx->outputs[0];
ctx                51 libavfilter/yadif_common.c     yadif->filter(ctx, yadif->out, tff ^ !is_second, tff);
ctx                63 libavfilter/yadif_common.c     ret = ff_filter_frame(ctx->outputs[0], yadif->out);
ctx                94 libavfilter/yadif_common.c     AVFilterContext *ctx = link->dst;
ctx                95 libavfilter/yadif_common.c     YADIFContext *yadif = ctx->priv;
ctx               100 libavfilter/yadif_common.c         return_frame(ctx, 1);
ctx               116 libavfilter/yadif_common.c         av_log(ctx, AV_LOG_VERBOSE, "Reallocating frame due to differing stride\n");
ctx               124 libavfilter/yadif_common.c         av_log(ctx, AV_LOG_ERROR, "Failed to reallocate frame\n");
ctx               132 libavfilter/yadif_common.c         ctx->is_disabled ||
ctx               143 libavfilter/yadif_common.c         return ff_filter_frame(ctx->outputs[0], yadif->out);
ctx               146 libavfilter/yadif_common.c     yadif->out = ff_get_video_buffer(ctx->outputs[0], link->w, link->h);
ctx               156 libavfilter/yadif_common.c     return return_frame(ctx, 0);
ctx               161 libavfilter/yadif_common.c     AVFilterContext *ctx = link->src;
ctx               162 libavfilter/yadif_common.c     YADIFContext *yadif = ctx->priv;
ctx               166 libavfilter/yadif_common.c         return_frame(ctx, 1);
ctx               173 libavfilter/yadif_common.c     ret  = ff_request_frame(ctx->inputs[0]);
ctx               184 libavfilter/yadif_common.c         ff_yadif_filter_frame(ctx->inputs[0], next);
ctx                65 libavformat/act.c     ACTContext* ctx = s->priv_data;
ctx               102 libavformat/act.c     ctx->bytes_left_in_chunk=CHUNK_SIZE;
ctx               113 libavformat/act.c     ACTContext *ctx = s->priv_data;
ctx               127 libavformat/act.c     if(s->streams[0]->codecpar->sample_rate==4400 && !ctx->second_packet)
ctx               129 libavformat/act.c         ret = avio_read(pb, ctx->audio_buffer, frame_size);
ctx               136 libavformat/act.c         pkt->data[0]=ctx->audio_buffer[11];
ctx               137 libavformat/act.c         pkt->data[1]=ctx->audio_buffer[0];
ctx               138 libavformat/act.c         pkt->data[2]=ctx->audio_buffer[12];
ctx               139 libavformat/act.c         pkt->data[3]=ctx->audio_buffer[1];
ctx               140 libavformat/act.c         pkt->data[4]=ctx->audio_buffer[13];
ctx               141 libavformat/act.c         pkt->data[5]=ctx->audio_buffer[2];
ctx               142 libavformat/act.c         pkt->data[6]=ctx->audio_buffer[14];
ctx               143 libavformat/act.c         pkt->data[7]=ctx->audio_buffer[3];
ctx               144 libavformat/act.c         pkt->data[8]=ctx->audio_buffer[15];
ctx               145 libavformat/act.c         pkt->data[9]=ctx->audio_buffer[4];
ctx               146 libavformat/act.c         pkt->data[10]=ctx->audio_buffer[16];
ctx               148 libavformat/act.c         ctx->second_packet=1;
ctx               150 libavformat/act.c     else if(s->streams[0]->codecpar->sample_rate==4400 && ctx->second_packet)
ctx               152 libavformat/act.c         pkt->data[0]=ctx->audio_buffer[5];
ctx               153 libavformat/act.c         pkt->data[1]=ctx->audio_buffer[17];
ctx               154 libavformat/act.c         pkt->data[2]=ctx->audio_buffer[6];
ctx               155 libavformat/act.c         pkt->data[3]=ctx->audio_buffer[18];
ctx               156 libavformat/act.c         pkt->data[4]=ctx->audio_buffer[7];
ctx               157 libavformat/act.c         pkt->data[5]=ctx->audio_buffer[19];
ctx               158 libavformat/act.c         pkt->data[6]=ctx->audio_buffer[8];
ctx               159 libavformat/act.c         pkt->data[7]=ctx->audio_buffer[20];
ctx               160 libavformat/act.c         pkt->data[8]=ctx->audio_buffer[9];
ctx               161 libavformat/act.c         pkt->data[9]=ctx->audio_buffer[21];
ctx               162 libavformat/act.c         pkt->data[10]=ctx->audio_buffer[10];
ctx               164 libavformat/act.c         ctx->second_packet=0;
ctx               168 libavformat/act.c         ret = avio_read(pb, ctx->audio_buffer, frame_size);
ctx               175 libavformat/act.c         pkt->data[0]=ctx->audio_buffer[5];
ctx               176 libavformat/act.c         pkt->data[1]=ctx->audio_buffer[0];
ctx               177 libavformat/act.c         pkt->data[2]=ctx->audio_buffer[6];
ctx               178 libavformat/act.c         pkt->data[3]=ctx->audio_buffer[1];
ctx               179 libavformat/act.c         pkt->data[4]=ctx->audio_buffer[7];
ctx               180 libavformat/act.c         pkt->data[5]=ctx->audio_buffer[2];
ctx               181 libavformat/act.c         pkt->data[6]=ctx->audio_buffer[8];
ctx               182 libavformat/act.c         pkt->data[7]=ctx->audio_buffer[3];
ctx               183 libavformat/act.c         pkt->data[8]=ctx->audio_buffer[9];
ctx               184 libavformat/act.c         pkt->data[9]=ctx->audio_buffer[4];
ctx               187 libavformat/act.c     ctx->bytes_left_in_chunk -= frame_size;
ctx               189 libavformat/act.c     if(ctx->bytes_left_in_chunk < frame_size)
ctx               191 libavformat/act.c         avio_skip(pb, ctx->bytes_left_in_chunk);
ctx               192 libavformat/act.c         ctx->bytes_left_in_chunk=CHUNK_SIZE;
ctx               123 libavformat/adtsenc.c static int adts_write_frame_header(ADTSContext *ctx,
ctx               142 libavformat/adtsenc.c     put_bits(&pb, 2, ctx->objecttype); /* profile_objecttype */
ctx               143 libavformat/adtsenc.c     put_bits(&pb, 4, ctx->sample_rate_index);
ctx               145 libavformat/adtsenc.c     put_bits(&pb, 3, ctx->channel_conf); /* channel_configuration */
ctx               149 libavformat/apngdec.c     APNGDemuxContext *ctx = s->priv_data;
ctx               192 libavformat/apngdec.c         if (acTL_found && ctx->num_play != 1) {
ctx               203 libavformat/apngdec.c                 ctx->num_play = 1;
ctx               206 libavformat/apngdec.c         if ((ctx->num_play == 1 || !acTL_found) &&
ctx               223 libavformat/apngdec.c             ctx->num_frames = AV_RB32(st->codecpar->extradata + ret + 8);
ctx               224 libavformat/apngdec.c             ctx->num_play   = AV_RB32(st->codecpar->extradata + ret + 12);
ctx               226 libavformat/apngdec.c                                     ctx->num_frames, ctx->num_play);
ctx               247 libavformat/apngdec.c static int decode_fctl_chunk(AVFormatContext *s, APNGDemuxContext *ctx, AVPacket *pkt)
ctx               267 libavformat/apngdec.c     if (!delay_num || (ctx->max_fps && delay_den / delay_num > ctx->max_fps)) {
ctx               269 libavformat/apngdec.c         delay_den = ctx->default_fps;
ctx               271 libavformat/apngdec.c     ctx->pkt_duration = av_rescale_q(delay_num,
ctx               306 libavformat/apngdec.c         ctx->is_key_frame = 0;
ctx               310 libavformat/apngdec.c         ctx->is_key_frame = dispose_op == APNG_DISPOSE_OP_BACKGROUND ||
ctx               319 libavformat/apngdec.c     APNGDemuxContext *ctx = s->priv_data;
ctx               336 libavformat/apngdec.c     if (ctx->num_play == 1 && (ret = ffio_ensure_seekback(pb, 46)) < 0)
ctx               350 libavformat/apngdec.c         if ((ret = decode_fctl_chunk(s, ctx, pkt)) < 0)
ctx               369 libavformat/apngdec.c         if (ctx->num_play == 1 && (ret = ffio_ensure_seekback(pb, 8)) < 0)
ctx               382 libavformat/apngdec.c             if (ctx->num_play == 1 && (ret = ffio_ensure_seekback(pb, 8)) < 0)
ctx               390 libavformat/apngdec.c         if (ctx->is_key_frame)
ctx               393 libavformat/apngdec.c         pkt->duration = ctx->pkt_duration;
ctx               396 libavformat/apngdec.c         ctx->cur_loop++;
ctx               397 libavformat/apngdec.c         if (ctx->ignore_loop || ctx->num_play >= 1 && ctx->cur_loop == ctx->num_play) {
ctx              2008 libavformat/avformat.h enum AVDurationEstimationMethod av_fmt_ctx_get_duration_estimation_method(const AVFormatContext* ctx);
ctx              2221 libavformat/avformat.h int avformat_alloc_output_context2(AVFormatContext **ctx, ff_const59 AVOutputFormat *oformat,
ctx              3022 libavformat/avformat.h AVRational av_guess_frame_rate(AVFormatContext *ctx, AVStream *stream, AVFrame *frame);
ctx               539 libavformat/avio.c     AVIODirContext *ctx = NULL;
ctx               543 libavformat/avio.c     ctx = av_mallocz(sizeof(*ctx));
ctx               544 libavformat/avio.c     if (!ctx) {
ctx               563 libavformat/avio.c     ctx->url_context = h;
ctx               564 libavformat/avio.c     *s = ctx;
ctx               568 libavformat/avio.c     av_free(ctx);
ctx                44 libavformat/chromaprint.c     ChromaprintContext *ctx;
ctx                46 libavformat/chromaprint.c     ChromaprintContext ctx;
ctx                52 libavformat/chromaprint.c     if (cpr->ctx) {
ctx                54 libavformat/chromaprint.c         chromaprint_free(cpr->ctx);
ctx                65 libavformat/chromaprint.c     cpr->ctx = chromaprint_new(cpr->algorithm);
ctx                68 libavformat/chromaprint.c     if (!cpr->ctx) {
ctx                75 libavformat/chromaprint.c         if (!chromaprint_set_option(cpr->ctx, "silence_threshold", cpr->silence_threshold)) {
ctx               103 libavformat/chromaprint.c     if (!chromaprint_start(cpr->ctx, st->codecpar->sample_rate, st->codecpar->channels)) {
ctx               117 libavformat/chromaprint.c     return chromaprint_feed(cpr->ctx, (const int16_t *)pkt->data, pkt->size / 2) ? 0 : AVERROR(EINVAL);
ctx               128 libavformat/chromaprint.c     if (!chromaprint_finish(cpr->ctx)) {
ctx               133 libavformat/chromaprint.c     if (!chromaprint_get_raw_fingerprint(cpr->ctx, (uint32_t **)&fp, &size)) {
ctx                82 libavformat/dashdec.c     AVFormatContext *ctx;
ctx               360 libavformat/dashdec.c     if (pls->ctx) {
ctx               361 libavformat/dashdec.c         pls->ctx->pb = NULL;
ctx               362 libavformat/dashdec.c         avformat_close_input(&pls->ctx);
ctx              1899 libavformat/dashdec.c     pls->ctx->pb = NULL;
ctx              1900 libavformat/dashdec.c     avformat_close_input(&pls->ctx);
ctx              1901 libavformat/dashdec.c     pls->ctx = NULL;
ctx              1912 libavformat/dashdec.c     if (pls->ctx) {
ctx              1921 libavformat/dashdec.c     if (!(pls->ctx = avformat_alloc_context())) {
ctx              1929 libavformat/dashdec.c         avformat_free_context(pls->ctx);
ctx              1930 libavformat/dashdec.c         pls->ctx = NULL;
ctx              1940 libavformat/dashdec.c     if ((ret = ff_copy_whiteblacklists(pls->ctx, s)) < 0)
ctx              1943 libavformat/dashdec.c     pls->ctx->flags = AVFMT_FLAG_CUSTOM_IO;
ctx              1944 libavformat/dashdec.c     pls->ctx->probesize = s->probesize > 0 ? s->probesize : 1024 * 4;
ctx              1945 libavformat/dashdec.c     pls->ctx->max_analyze_duration = s->max_analyze_duration > 0 ? s->max_analyze_duration : 4 * AV_TIME_BASE;
ctx              1949 libavformat/dashdec.c         avformat_free_context(pls->ctx);
ctx              1950 libavformat/dashdec.c         pls->ctx = NULL;
ctx              1954 libavformat/dashdec.c     pls->ctx->pb = &pls->pb;
ctx              1955 libavformat/dashdec.c     pls->ctx->io_open  = nested_io_open;
ctx              1958 libavformat/dashdec.c     ret = avformat_open_input(&pls->ctx, "", in_fmt, &in_fmt_opts); //pls->init_section->url
ctx              1965 libavformat/dashdec.c             for (i = 0; i < pls->ctx->nb_streams; i++)
ctx              1966 libavformat/dashdec.c                 pls->ctx->streams[i]->r_frame_rate = pls->framerate;
ctx              1969 libavformat/dashdec.c         ret = avformat_find_stream_info(pls->ctx, NULL);
ctx              1994 libavformat/dashdec.c     for (i = 0; i < pls->ctx->nb_streams; i++) {
ctx              1996 libavformat/dashdec.c         AVStream *ist = pls->ctx->streams[i];
ctx              2037 libavformat/dashdec.c         av_log(rep_dest->ctx, AV_LOG_WARNING, "Cannot alloc memory for init_sec_buf\n");
ctx              2189 libavformat/dashdec.c         if (needed && !pls->ctx) {
ctx              2198 libavformat/dashdec.c         } else if (!needed && pls->ctx) {
ctx              2220 libavformat/dashdec.c         if (!rep->ctx)
ctx              2229 libavformat/dashdec.c         if (!rep->ctx)
ctx              2239 libavformat/dashdec.c         if (!rep->ctx)
ctx              2251 libavformat/dashdec.c         ret = av_read_frame(cur->ctx, pkt);
ctx              2254 libavformat/dashdec.c             cur->cur_timestamp = av_rescale(pkt->pts, (int64_t)cur->ctx->streams[0]->time_base.num * 90000, cur->ctx->streams[0]->time_base.den);
ctx              2295 libavformat/dashdec.c         ff_read_frame_flush(pls->ctx);
ctx              2296 libavformat/dashdec.c         return av_seek_frame(pls->ctx, -1, seek_pos_msec * 1000, flags);
ctx              2357 libavformat/dashdec.c             ret = dash_seek(s, c->videos[i], seek_pos_msec, flags, !c->videos[i]->ctx);
ctx              2361 libavformat/dashdec.c             ret = dash_seek(s, c->audios[i], seek_pos_msec, flags, !c->audios[i]->ctx);
ctx              2365 libavformat/dashdec.c             ret = dash_seek(s, c->subtitles[i], seek_pos_msec, flags, !c->subtitles[i]->ctx);
ctx               100 libavformat/dashenc.c     AVFormatContext *ctx;
ctx               458 libavformat/dashenc.c     if (!os->ctx->pb) {
ctx               463 libavformat/dashenc.c     av_write_frame(os->ctx, NULL);
ctx               464 libavformat/dashenc.c     avio_flush(os->ctx->pb);
ctx               468 libavformat/dashenc.c         *range_length = avio_close_dyn_buf(os->ctx->pb, &buffer);
ctx               469 libavformat/dashenc.c         os->ctx->pb = NULL;
ctx               476 libavformat/dashenc.c         return avio_open_dyn_buf(&os->ctx->pb);
ctx               478 libavformat/dashenc.c         *range_length = avio_tell(os->ctx->pb) - os->pos;
ctx               518 libavformat/dashenc.c     int timescale = os->ctx->streams[0]->time_base.den;
ctx               577 libavformat/dashenc.c             av_log(os->ctx, AV_LOG_WARNING, "ff_hls_write_file_entry get error\n");
ctx               590 libavformat/dashenc.c         ff_rename(temp_filename_hls, filename_hls, os->ctx);
ctx               629 libavformat/dashenc.c         if (os->ctx && os->ctx->pb) {
ctx               631 libavformat/dashenc.c                 ffio_free_dyn_buf(&os->ctx->pb);
ctx               633 libavformat/dashenc.c                 avio_close(os->ctx->pb);
ctx               636 libavformat/dashenc.c         avformat_free_context(os->ctx);
ctx               660 libavformat/dashenc.c         int timescale = c->use_timeline ? os->ctx->streams[0]->time_base.den : AV_TIME_BASE;
ctx              1465 libavformat/dashenc.c         AVFormatContext *ctx;
ctx              1515 libavformat/dashenc.c         os->ctx = ctx = avformat_alloc_context();
ctx              1516 libavformat/dashenc.c         if (!ctx)
ctx              1519 libavformat/dashenc.c         ctx->oformat = av_guess_format(os->format_name, NULL, NULL);
ctx              1520 libavformat/dashenc.c         if (!ctx->oformat)
ctx              1522 libavformat/dashenc.c         ctx->interrupt_callback    = s->interrupt_callback;
ctx              1523 libavformat/dashenc.c         ctx->opaque                = s->opaque;
ctx              1524 libavformat/dashenc.c         ctx->io_close              = s->io_close;
ctx              1525 libavformat/dashenc.c         ctx->io_open               = s->io_open;
ctx              1526 libavformat/dashenc.c         ctx->strict_std_compliance = s->strict_std_compliance;
ctx              1528 libavformat/dashenc.c         if (!(st = avformat_new_stream(ctx, NULL)))
ctx              1534 libavformat/dashenc.c         ctx->avoid_negative_ts = s->avoid_negative_ts;
ctx              1535 libavformat/dashenc.c         ctx->flags = s->flags;
ctx              1560 libavformat/dashenc.c             if ((ret = avio_open_dyn_buf(&ctx->pb)) < 0)
ctx              1564 libavformat/dashenc.c             ctx->url = av_strdup(filename);
ctx              1565 libavformat/dashenc.c             ret = avio_open2(&ctx->pb, filename, AVIO_FLAG_WRITE, NULL, &opts);
ctx              1633 libavformat/dashenc.c         ret = avformat_init_output(ctx, &opts);
ctx              1638 libavformat/dashenc.c         avio_flush(ctx->pb);
ctx              1646 libavformat/dashenc.c         s->avoid_negative_ts = ctx->avoid_negative_ts;
ctx              1712 libavformat/dashenc.c         if ((ret = avformat_write_header(os->ctx, NULL)) < 0)
ctx              1801 libavformat/dashenc.c     AVCodecParameters *par = os->ctx->streams[0]->codecpar;
ctx              1945 libavformat/dashenc.c                 ret = ff_rename(os->temp_path, os->full_path, os->ctx);
ctx              1962 libavformat/dashenc.c             int64_t bitrate = (int64_t) range_length * 8 * (c->use_timeline ? os->ctx->streams[0]->time_base.den : AV_TIME_BASE) / duration;
ctx              1984 libavformat/dashenc.c             if (os->ctx && os->ctx_inited) {
ctx              1985 libavformat/dashenc.c                 int64_t file_size = avio_tell(os->ctx->pb);
ctx              1986 libavformat/dashenc.c                 av_write_trailer(os->ctx);
ctx              1989 libavformat/dashenc.c                     int64_t sidx_size = avio_tell(os->ctx->pb) - file_size;
ctx              2188 libavformat/dashenc.c             ret = av_write_frame(os->ctx, NULL);
ctx              2207 libavformat/dashenc.c     if ((ret = ff_write_chained(os->ctx, 0, pkt, s, 0)) < 0)
ctx              2224 libavformat/dashenc.c             write_styp(os->ctx->pb);
ctx              2249 libavformat/dashenc.c         avio_flush(os->ctx->pb);
ctx              2250 libavformat/dashenc.c         len = avio_get_dyn_buf (os->ctx->pb, &buf);
ctx              2307 libavformat/dashenc.c     AVFormatContext *oc = os->ctx;
ctx               115 libavformat/dss.c     DSSDemuxContext *ctx = s->priv_data;
ctx               125 libavformat/dss.c     ctx->dss_header_size = version * DSS_BLOCK_SIZE;
ctx               142 libavformat/dss.c     ctx->audio_codec = avio_r8(pb);
ctx               144 libavformat/dss.c     if (ctx->audio_codec == DSS_ACODEC_DSS_SP) {
ctx               147 libavformat/dss.c     } else if (ctx->audio_codec == DSS_ACODEC_G723_1) {
ctx               152 libavformat/dss.c                               ctx->audio_codec);
ctx               165 libavformat/dss.c     if (avio_seek(pb, ctx->dss_header_size, SEEK_SET) != ctx->dss_header_size)
ctx               168 libavformat/dss.c     ctx->counter = 0;
ctx               169 libavformat/dss.c     ctx->swap    = 0;
ctx               176 libavformat/dss.c     DSSDemuxContext *ctx = s->priv_data;
ctx               180 libavformat/dss.c     ctx->counter += DSS_BLOCK_SIZE - DSS_AUDIO_BLOCK_HEADER_SIZE;
ctx               183 libavformat/dss.c static void dss_sp_byte_swap(DSSDemuxContext *ctx,
ctx               188 libavformat/dss.c     if (ctx->swap) {
ctx               195 libavformat/dss.c         dst[1] = ctx->dss_sp_swap_byte;
ctx               198 libavformat/dss.c         ctx->dss_sp_swap_byte = src[DSS_FRAME_SIZE - 2];
ctx               203 libavformat/dss.c     ctx->swap             ^= 1;
ctx               208 libavformat/dss.c     DSSDemuxContext *ctx = s->priv_data;
ctx               213 libavformat/dss.c     if (ctx->counter == 0)
ctx               216 libavformat/dss.c     if (ctx->swap) {
ctx               222 libavformat/dss.c     ctx->counter -= read_size;
ctx               223 libavformat/dss.c     ctx->packet_size = DSS_FRAME_SIZE - 1;
ctx               232 libavformat/dss.c     s->bit_rate = 8LL * ctx->packet_size * st->codecpar->sample_rate * 512 / (506 * pkt->duration);
ctx               234 libavformat/dss.c     if (ctx->counter < 0) {
ctx               235 libavformat/dss.c         int size2 = ctx->counter + read_size;
ctx               237 libavformat/dss.c         ret = avio_read(s->pb, ctx->dss_sp_buf + offset + buff_offset,
ctx               246 libavformat/dss.c     ret = avio_read(s->pb, ctx->dss_sp_buf + offset + buff_offset,
ctx               251 libavformat/dss.c     dss_sp_byte_swap(ctx, pkt->data, ctx->dss_sp_buf);
ctx               253 libavformat/dss.c     if (ctx->dss_sp_swap_byte < 0) {
ctx               265 libavformat/dss.c     DSSDemuxContext *ctx = s->priv_data;
ctx               270 libavformat/dss.c     if (ctx->counter == 0)
ctx               280 libavformat/dss.c     ctx->packet_size = size;
ctx               281 libavformat/dss.c     ctx->counter -= size;
ctx               295 libavformat/dss.c     if (ctx->counter < 0) {
ctx               296 libavformat/dss.c         int size2 = ctx->counter + size;
ctx               318 libavformat/dss.c     DSSDemuxContext *ctx = s->priv_data;
ctx               320 libavformat/dss.c     if (ctx->audio_codec == DSS_ACODEC_DSS_SP)
ctx               329 libavformat/dss.c     DSSDemuxContext *ctx = s->priv_data;
ctx               334 libavformat/dss.c     if (ctx->audio_codec == DSS_ACODEC_DSS_SP)
ctx               337 libavformat/dss.c         seekto = timestamp / 240 * ctx->packet_size / 506 * 512;
ctx               342 libavformat/dss.c     seekto += ctx->dss_header_size;
ctx               349 libavformat/dss.c     ctx->swap = !!(header[0] & 0x80);
ctx               350 libavformat/dss.c     offset = 2*header[1] + 2*ctx->swap;
ctx               354 libavformat/dss.c         ctx->counter = 0;
ctx               357 libavformat/dss.c         ctx->counter = DSS_BLOCK_SIZE - offset;
ctx               360 libavformat/dss.c     ctx->dss_sp_swap_byte = -1;
ctx               134 libavformat/dump.c static void dump_metadata(void *ctx, AVDictionary *m, const char *indent)
ctx               139 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "%sMetadata:\n", indent);
ctx               143 libavformat/dump.c                 av_log(ctx, AV_LOG_INFO,
ctx               149 libavformat/dump.c                     av_log(ctx, AV_LOG_INFO, "%s", tmp);
ctx               151 libavformat/dump.c                     if (*p == 0xd) av_log(ctx, AV_LOG_INFO, " ");
ctx               152 libavformat/dump.c                     if (*p == 0xa) av_log(ctx, AV_LOG_INFO, "\n%s  %-16s: ", indent, "");
ctx               155 libavformat/dump.c                 av_log(ctx, AV_LOG_INFO, "\n");
ctx               161 libavformat/dump.c static void dump_paramchange(void *ctx, AVPacketSideData *sd)
ctx               181 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "channel count %"PRIu32", ", channels);
ctx               189 libavformat/dump.c         av_log(ctx, AV_LOG_INFO,
ctx               198 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "sample_rate %"PRIu32", ", sample_rate);
ctx               209 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "width %"PRIu32" height %"PRIu32, width, height);
ctx               214 libavformat/dump.c     av_log(ctx, AV_LOG_ERROR, "unknown param");
ctx               218 libavformat/dump.c static void print_gain(void *ctx, const char *str, int32_t gain)
ctx               220 libavformat/dump.c     av_log(ctx, AV_LOG_INFO, "%s - ", str);
ctx               222 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "unknown");
ctx               224 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "%f", gain / 100000.0f);
ctx               225 libavformat/dump.c     av_log(ctx, AV_LOG_INFO, ", ");
ctx               228 libavformat/dump.c static void print_peak(void *ctx, const char *str, uint32_t peak)
ctx               230 libavformat/dump.c     av_log(ctx, AV_LOG_INFO, "%s - ", str);
ctx               232 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "unknown");
ctx               234 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "%f", (float) peak / UINT32_MAX);
ctx               235 libavformat/dump.c     av_log(ctx, AV_LOG_INFO, ", ");
ctx               238 libavformat/dump.c static void dump_replaygain(void *ctx, AVPacketSideData *sd)
ctx               243 libavformat/dump.c         av_log(ctx, AV_LOG_ERROR, "invalid data");
ctx               248 libavformat/dump.c     print_gain(ctx, "track gain", rg->track_gain);
ctx               249 libavformat/dump.c     print_peak(ctx, "track peak", rg->track_peak);
ctx               250 libavformat/dump.c     print_gain(ctx, "album gain", rg->album_gain);
ctx               251 libavformat/dump.c     print_peak(ctx, "album peak", rg->album_peak);
ctx               254 libavformat/dump.c static void dump_stereo3d(void *ctx, AVPacketSideData *sd)
ctx               259 libavformat/dump.c         av_log(ctx, AV_LOG_ERROR, "invalid data");
ctx               265 libavformat/dump.c     av_log(ctx, AV_LOG_INFO, "%s", av_stereo3d_type_name(stereo->type));
ctx               268 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, " (inverted)");
ctx               271 libavformat/dump.c static void dump_audioservicetype(void *ctx, AVPacketSideData *sd)
ctx               276 libavformat/dump.c         av_log(ctx, AV_LOG_ERROR, "invalid data");
ctx               282 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "main");
ctx               285 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "effects");
ctx               288 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "visually impaired");
ctx               291 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "hearing impaired");
ctx               294 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "dialogue");
ctx               297 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "commentary");
ctx               300 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "emergency");
ctx               303 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "voice over");
ctx               306 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "karaoke");
ctx               309 libavformat/dump.c         av_log(ctx, AV_LOG_WARNING, "unknown");
ctx               314 libavformat/dump.c static void dump_cpb(void *ctx, AVPacketSideData *sd)
ctx               319 libavformat/dump.c         av_log(ctx, AV_LOG_ERROR, "invalid data");
ctx               323 libavformat/dump.c     av_log(ctx, AV_LOG_INFO,
ctx               332 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "vbv_delay: N/A");
ctx               334 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "vbv_delay: %"PRIu64"", cpb->vbv_delay);
ctx               337 libavformat/dump.c static void dump_mastering_display_metadata(void *ctx, AVPacketSideData* sd) {
ctx               339 libavformat/dump.c     av_log(ctx, AV_LOG_INFO, "Mastering Display Metadata, "
ctx               354 libavformat/dump.c static void dump_content_light_metadata(void *ctx, AVPacketSideData* sd)
ctx               357 libavformat/dump.c     av_log(ctx, AV_LOG_INFO, "Content Light Level Metadata, "
ctx               362 libavformat/dump.c static void dump_spherical(void *ctx, AVCodecParameters *par, AVPacketSideData *sd)
ctx               368 libavformat/dump.c         av_log(ctx, AV_LOG_ERROR, "invalid data");
ctx               372 libavformat/dump.c     av_log(ctx, AV_LOG_INFO, "%s ", av_spherical_projection_name(spherical->projection));
ctx               377 libavformat/dump.c     av_log(ctx, AV_LOG_INFO, "(%f/%f/%f) ", yaw, pitch, roll);
ctx               383 libavformat/dump.c         av_log(ctx, AV_LOG_INFO,
ctx               387 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "[pad %"PRIu32"] ", spherical->padding);
ctx               391 libavformat/dump.c static void dump_dovi_conf(void *ctx, AVPacketSideData* sd)
ctx               395 libavformat/dump.c     av_log(ctx, AV_LOG_INFO, "version: %d.%d, profile: %d, level: %d, "
ctx               405 libavformat/dump.c static void dump_sidedata(void *ctx, AVStream *st, const char *indent)
ctx               410 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "%sSide data:\n", indent);
ctx               414 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "%s  ", indent);
ctx               418 libavformat/dump.c             av_log(ctx, AV_LOG_INFO, "palette");
ctx               421 libavformat/dump.c             av_log(ctx, AV_LOG_INFO, "new extradata");
ctx               424 libavformat/dump.c             av_log(ctx, AV_LOG_INFO, "paramchange: ");
ctx               425 libavformat/dump.c             dump_paramchange(ctx, &sd);
ctx               428 libavformat/dump.c             av_log(ctx, AV_LOG_INFO, "H.263 macroblock info");
ctx               431 libavformat/dump.c             av_log(ctx, AV_LOG_INFO, "replaygain: ");
ctx               432 libavformat/dump.c             dump_replaygain(ctx, &sd);
ctx               435 libavformat/dump.c             av_log(ctx, AV_LOG_INFO, "displaymatrix: rotation of %.2f degrees",
ctx               439 libavformat/dump.c             av_log(ctx, AV_LOG_INFO, "stereo3d: ");
ctx               440 libavformat/dump.c             dump_stereo3d(ctx, &sd);
ctx               443 libavformat/dump.c             av_log(ctx, AV_LOG_INFO, "audio service type: ");
ctx               444 libavformat/dump.c             dump_audioservicetype(ctx, &sd);
ctx               447 libavformat/dump.c             av_log(ctx, AV_LOG_INFO, "quality factor: %"PRId32", pict_type: %c",
ctx               451 libavformat/dump.c             av_log(ctx, AV_LOG_INFO, "cpb: ");
ctx               452 libavformat/dump.c             dump_cpb(ctx, &sd);
ctx               455 libavformat/dump.c             dump_mastering_display_metadata(ctx, &sd);
ctx               458 libavformat/dump.c             av_log(ctx, AV_LOG_INFO, "spherical: ");
ctx               459 libavformat/dump.c             dump_spherical(ctx, st->codecpar, &sd);
ctx               462 libavformat/dump.c             dump_content_light_metadata(ctx, &sd);
ctx               465 libavformat/dump.c             av_log(ctx, AV_LOG_INFO, "ICC Profile");
ctx               468 libavformat/dump.c             av_log(ctx, AV_LOG_INFO, "DOVI configuration record: ");
ctx               469 libavformat/dump.c             dump_dovi_conf(ctx, &sd);
ctx               472 libavformat/dump.c             av_log(ctx, AV_LOG_INFO,
ctx               477 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "\n");
ctx               114 libavformat/fifo.c static int fifo_thread_write_header(FifoThreadContext *ctx)
ctx               116 libavformat/fifo.c     AVFormatContext *avf = ctx->avf;
ctx               138 libavformat/fifo.c         ctx->header_written = 1;
ctx               153 libavformat/fifo.c static int fifo_thread_flush_output(FifoThreadContext *ctx)
ctx               155 libavformat/fifo.c     AVFormatContext *avf = ctx->avf;
ctx               162 libavformat/fifo.c static int fifo_thread_write_packet(FifoThreadContext *ctx, AVPacket *pkt)
ctx               164 libavformat/fifo.c     AVFormatContext *avf = ctx->avf;
ctx               170 libavformat/fifo.c     if (ctx->drop_until_keyframe) {
ctx               172 libavformat/fifo.c             ctx->drop_until_keyframe = 0;
ctx               192 libavformat/fifo.c static int fifo_thread_write_trailer(FifoThreadContext *ctx)
ctx               194 libavformat/fifo.c     AVFormatContext *avf = ctx->avf;
ctx               199 libavformat/fifo.c     if (!ctx->header_written)
ctx               208 libavformat/fifo.c static int fifo_thread_dispatch_message(FifoThreadContext *ctx, FifoMessage *msg)
ctx               212 libavformat/fifo.c     if (!ctx->header_written) {
ctx               213 libavformat/fifo.c         ret = fifo_thread_write_header(ctx);
ctx               223 libavformat/fifo.c         return fifo_thread_write_packet(ctx, &msg->pkt);
ctx               225 libavformat/fifo.c         return fifo_thread_flush_output(ctx);
ctx               259 libavformat/fifo.c static int fifo_thread_process_recovery_failure(FifoThreadContext *ctx, AVPacket *pkt,
ctx               262 libavformat/fifo.c     AVFormatContext *avf = ctx->avf;
ctx               273 libavformat/fifo.c         ctx->last_recovery_ts = pkt->pts;
ctx               275 libavformat/fifo.c         ctx->last_recovery_ts = av_gettime_relative();
ctx               279 libavformat/fifo.c         ctx->recovery_nr >= fifo->max_recovery_attempts) {
ctx               291 libavformat/fifo.c static int fifo_thread_attempt_recovery(FifoThreadContext *ctx, FifoMessage *msg, int err_no)
ctx               293 libavformat/fifo.c     AVFormatContext *avf = ctx->avf;
ctx               304 libavformat/fifo.c     if (ctx->header_written) {
ctx               305 libavformat/fifo.c         fifo->write_trailer_ret = fifo_thread_write_trailer(ctx);
ctx               306 libavformat/fifo.c         ctx->header_written = 0;
ctx               309 libavformat/fifo.c     if (!ctx->recovery_nr) {
ctx               310 libavformat/fifo.c         ctx->last_recovery_ts = fifo->recovery_wait_streamtime ?
ctx               314 libavformat/fifo.c             if (ctx->last_recovery_ts == AV_NOPTS_VALUE) {
ctx               316 libavformat/fifo.c                 time_since_recovery = av_rescale_q(pkt->pts - ctx->last_recovery_ts,
ctx               323 libavformat/fifo.c             time_since_recovery = av_gettime_relative() - ctx->last_recovery_ts;
ctx               330 libavformat/fifo.c     ctx->recovery_nr++;
ctx               334 libavformat/fifo.c                ctx->recovery_nr, fifo->max_recovery_attempts);
ctx               337 libavformat/fifo.c                ctx->recovery_nr);
ctx               341 libavformat/fifo.c         ctx->drop_until_keyframe = 1;
ctx               343 libavformat/fifo.c     ret = fifo_thread_dispatch_message(ctx, msg);
ctx               346 libavformat/fifo.c             return fifo_thread_process_recovery_failure(ctx, pkt, ret);
ctx               352 libavformat/fifo.c         ctx->recovery_nr = 0;
ctx               362 libavformat/fifo.c static int fifo_thread_recover(FifoThreadContext *ctx, FifoMessage *msg, int err_no)
ctx               364 libavformat/fifo.c     AVFormatContext *avf = ctx->avf;
ctx               369 libavformat/fifo.c         if (!fifo->recovery_wait_streamtime && ctx->recovery_nr > 0) {
ctx               370 libavformat/fifo.c             int64_t time_since_recovery = av_gettime_relative() - ctx->last_recovery_ts;
ctx               376 libavformat/fifo.c         ret = fifo_thread_attempt_recovery(ctx, msg, err_no);
ctx                62 libavformat/fifo_test.c     FailingMuxerContext *ctx = avf->priv_data;
ctx                63 libavformat/fifo_test.c     return ctx->write_header_ret;
ctx                68 libavformat/fifo_test.c     FailingMuxerContext *ctx = avf->priv_data;
ctx                71 libavformat/fifo_test.c         ctx->flush_count++;
ctx                94 libavformat/fifo_test.c             ctx->pts_written[ctx->pts_written_nr++] = pkt->pts;
ctx               103 libavformat/fifo_test.c     FailingMuxerContext *ctx = avf->priv_data;
ctx               104 libavformat/fifo_test.c     return ctx->write_trailer_ret;
ctx               110 libavformat/fifo_test.c     FailingMuxerContext *ctx = avf->priv_data;
ctx               112 libavformat/fifo_test.c     if (!ctx->print_deinit_summary)
ctx               115 libavformat/fifo_test.c     printf("flush count: %d\n", ctx->flush_count);
ctx               116 libavformat/fifo_test.c     printf("pts seen nr: %d\n", ctx->pts_written_nr);
ctx               118 libavformat/fifo_test.c     for (i = 0; i < ctx->pts_written_nr; ++i ) {
ctx               119 libavformat/fifo_test.c         printf(i ? ",%d" : "%d", ctx->pts_written[i]);
ctx                70 libavformat/gdv.c static int gdv_read_header(AVFormatContext *ctx)
ctx                72 libavformat/gdv.c     GDVContext *gdv = ctx->priv_data;
ctx                73 libavformat/gdv.c     AVIOContext *pb = ctx->pb;
ctx                80 libavformat/gdv.c     vst = avformat_new_stream(ctx, 0);
ctx                94 libavformat/gdv.c         ast = avformat_new_stream(ctx, 0);
ctx               155 libavformat/gdv.c static int gdv_read_packet(AVFormatContext *ctx, AVPacket *pkt)
ctx               157 libavformat/gdv.c     GDVContext *gdv = ctx->priv_data;
ctx               158 libavformat/gdv.c     AVIOContext *pb = ctx->pb;
ctx                48 libavformat/hdsenc.c     AVFormatContext *ctx;
ctx               145 libavformat/hdsenc.c         if (os->ctx && os->ctx_inited)
ctx               146 libavformat/hdsenc.c             av_write_trailer(os->ctx);
ctx               147 libavformat/hdsenc.c         if (os->ctx)
ctx               148 libavformat/hdsenc.c             avio_context_free(&os->ctx->pb);
ctx               149 libavformat/hdsenc.c         avformat_free_context(os->ctx);
ctx               336 libavformat/hdsenc.c         AVFormatContext *ctx;
ctx               361 libavformat/hdsenc.c         if (!os->ctx) {
ctx               363 libavformat/hdsenc.c             ctx = avformat_alloc_context();
ctx               364 libavformat/hdsenc.c             if (!ctx) {
ctx               367 libavformat/hdsenc.c             os->ctx = ctx;
ctx               368 libavformat/hdsenc.c             ctx->oformat = oformat;
ctx               369 libavformat/hdsenc.c             ctx->interrupt_callback = s->interrupt_callback;
ctx               370 libavformat/hdsenc.c             ctx->flags = s->flags;
ctx               372 libavformat/hdsenc.c             ctx->pb = avio_alloc_context(os->iobuf, sizeof(os->iobuf),
ctx               375 libavformat/hdsenc.c             if (!ctx->pb) {
ctx               379 libavformat/hdsenc.c             ctx = os->ctx;
ctx               383 libavformat/hdsenc.c         if (!(st = avformat_new_stream(ctx, NULL))) {
ctx               391 libavformat/hdsenc.c     if (c->streams[c->nb_streams].ctx)
ctx               397 libavformat/hdsenc.c         if ((ret = avformat_write_header(os->ctx, NULL)) < 0) {
ctx               401 libavformat/hdsenc.c         avio_flush(os->ctx->pb);
ctx               402 libavformat/hdsenc.c         for (j = 0; j < os->ctx->nb_streams; j++)
ctx               403 libavformat/hdsenc.c             s->streams[os->first_stream + j]->time_base = os->ctx->streams[j]->time_base;
ctx               462 libavformat/hdsenc.c     avio_flush(os->ctx->pb);
ctx               526 libavformat/hdsenc.c     return ff_write_chained(os->ctx, pkt->stream_index - os->first_stream, pkt, s, 0);
ctx               103 libavformat/hls.c     AVFormatContext *ctx;
ctx               194 libavformat/hls.c     AVFormatContext *ctx;
ctx               261 libavformat/hls.c         ff_format_io_close(c->ctx, &pls->input);
ctx               263 libavformat/hls.c         ff_format_io_close(c->ctx, &pls->input_next);
ctx               265 libavformat/hls.c         if (pls->ctx) {
ctx               266 libavformat/hls.c             pls->ctx->pb = NULL;
ctx               267 libavformat/hls.c             avformat_close_input(&pls->ctx);
ctx               492 libavformat/hls.c         av_log(c->ctx, AV_LOG_WARNING, "Can't support the type: %s\n", info->type);
ctx               498 libavformat/hls.c         av_log(c->ctx, AV_LOG_ERROR, "The URI tag is REQUIRED for subtitle.\n");
ctx               503 libavformat/hls.c     if (c->ctx->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL)
ctx               505 libavformat/hls.c             av_log(c->ctx, AV_LOG_WARNING, "Can't support the subtitle(uri: %s)\n", info->uri);
ctx               679 libavformat/hls.c         ret = open_url_keepalive(c->ctx, pb, url, &tmp);
ctx               737 libavformat/hls.c         ret = open_url_keepalive(c->ctx, &c->playlist_pb, url, NULL);
ctx               742 libavformat/hls.c                 av_log(c->ctx, AV_LOG_WARNING,
ctx               756 libavformat/hls.c         ret = c->ctx->io_open(c->ctx, &in, url, AVIO_FLAG_READ, &opts);
ctx               877 libavformat/hls.c             av_log(c->ctx, AV_LOG_INFO, "Skip ('%s')\n", line);
ctx               939 libavformat/hls.c                     av_log(c->ctx, AV_LOG_WARNING, "Cannot get correct #EXTINF value of segment %s,"
ctx               969 libavformat/hls.c             av_log(c->ctx, AV_LOG_DEBUG, "Media sequence change (%d -> %d)"
ctx               974 libavformat/hls.c             av_log(c->ctx, AV_LOG_WARNING, "Media sequence changed unexpectedly: %d -> %d\n",
ctx               986 libavformat/hls.c         ff_format_io_close(c->ctx, &in);
ctx               987 libavformat/hls.c     c->ctx->ctx_flags = c->ctx->ctx_flags & ~(unsigned)AVFMTCTX_UNSEEKABLE;
ctx               991 libavformat/hls.c         c->ctx->ctx_flags |= AVFMTCTX_UNSEEKABLE;
ctx              1064 libavformat/hls.c     if (apic && (pls->ctx->nb_streams != 2 || !pls->ctx->streams[1]->attached_pic.data))
ctx              1068 libavformat/hls.c         int size = pls->ctx->streams[1]->attached_pic.size;
ctx              1072 libavformat/hls.c         if (memcmp(apic->buf->data, pls->ctx->streams[1]->attached_pic.data, size) != 0)
ctx              1087 libavformat/hls.c     parse_id3(pls->ctx, pb, &metadata, &timestamp, &apic, &extra_meta);
ctx              1100 libavformat/hls.c         if (pls->ctx->nb_streams)
ctx              1101 libavformat/hls.c             ff_id3v2_parse_apic(pls->ctx, extra_meta);
ctx              1107 libavformat/hls.c         av_dict_copy(&pls->ctx->metadata, metadata, 0);
ctx              1381 libavformat/hls.c     if (!pls->ctx || !pls->n_main_streams)
ctx              1781 libavformat/hls.c     while (pls->n_main_streams < pls->ctx->nb_streams) {
ctx              1784 libavformat/hls.c         AVStream *ist = pls->ctx->streams[ist_idx];
ctx              1832 libavformat/hls.c     ff_format_io_close(c->ctx, &c->playlist_pb);
ctx              1843 libavformat/hls.c     c->ctx                = s;
ctx              1938 libavformat/hls.c         if (!(pls->ctx = avformat_alloc_context())) {
ctx              1965 libavformat/hls.c             avformat_free_context(pls->ctx);
ctx              1966 libavformat/hls.c             pls->ctx = NULL;
ctx              1971 libavformat/hls.c         pls->ctx->probesize = s->probesize > 0 ? s->probesize : 1024 * 4;
ctx              1972 libavformat/hls.c         pls->ctx->max_analyze_duration = s->max_analyze_duration > 0 ? s->max_analyze_duration : 4 * AV_TIME_BASE;
ctx              1982 libavformat/hls.c             avformat_free_context(pls->ctx);
ctx              1983 libavformat/hls.c             pls->ctx = NULL;
ctx              1986 libavformat/hls.c         pls->ctx->pb       = &pls->pb;
ctx              1987 libavformat/hls.c         pls->ctx->io_open  = nested_io_open;
ctx              1988 libavformat/hls.c         pls->ctx->flags   |= s->flags & ~AVFMT_FLAG_CUSTOM_IO;
ctx              1990 libavformat/hls.c         if ((ret = ff_copy_whiteblacklists(pls->ctx, s)) < 0)
ctx              1993 libavformat/hls.c         ret = avformat_open_input(&pls->ctx, pls->segments[0]->url, in_fmt, NULL);
ctx              1997 libavformat/hls.c         if (pls->id3_deferred_extra && pls->ctx->nb_streams == 1) {
ctx              1998 libavformat/hls.c             ff_id3v2_parse_apic(pls->ctx, pls->id3_deferred_extra);
ctx              1999 libavformat/hls.c             avformat_queue_attached_pictures(pls->ctx);
ctx              2000 libavformat/hls.c             ff_id3v2_parse_priv(pls->ctx, pls->id3_deferred_extra);
ctx              2014 libavformat/hls.c             ret = avformat_find_stream_info(pls->ctx, NULL);
ctx              2019 libavformat/hls.c         pls->has_noheader_flag = !!(pls->ctx->ctx_flags & AVFMTCTX_NOHEADER);
ctx              2031 libavformat/hls.c             av_dict_copy(&pls->main_streams[0]->metadata, pls->ctx->metadata, 0);
ctx              2091 libavformat/hls.c                                               pls->ctx->streams[pls->pkt.stream_index]->time_base,
ctx              2105 libavformat/hls.c                                          pls->ctx->streams[pls->pkt.stream_index]->time_base,
ctx              2116 libavformat/hls.c     return pls->ctx->streams[pls->pkt.stream_index]->time_base;
ctx              2144 libavformat/hls.c                 ret = av_read_frame(pls->ctx, &pls->pkt);
ctx              2218 libavformat/hls.c         if (pls->ctx->event_flags & AVFMT_EVENT_FLAG_METADATA_UPDATED) {
ctx              2221 libavformat/hls.c                 av_dict_copy(&st->metadata, pls->ctx->metadata, 0);
ctx              2224 libavformat/hls.c             pls->ctx->event_flags &= ~AVFMT_EVENT_FLAG_METADATA_UPDATED;
ctx              2228 libavformat/hls.c         if (pls->has_noheader_flag && !(pls->ctx->ctx_flags & AVFMTCTX_NOHEADER)) {
ctx              2235 libavformat/hls.c                    pls->pkt.stream_index, pls->n_main_streams, pls->ctx->nb_streams);
ctx              2240 libavformat/hls.c         ist = pls->ctx->streams[pls->pkt.stream_index];
ctx              2275 libavformat/hls.c     if ((flags & AVSEEK_FLAG_BYTE) || (c->ctx->ctx_flags & AVFMTCTX_UNSEEKABLE))
ctx              2326 libavformat/hls.c         ff_read_frame_flush(pls->ctx);
ctx               467 libavformat/hlsenc.c     AVFormatContext *ctx = vs->avf;
ctx               469 libavformat/hlsenc.c     if (!ctx->pb) {
ctx               474 libavformat/hlsenc.c     av_write_frame(ctx, NULL);
ctx               477 libavformat/hlsenc.c     *range_length = avio_close_dyn_buf(ctx->pb, &vs->temp_buffer);
ctx               478 libavformat/hlsenc.c     ctx->pb = NULL;
ctx               483 libavformat/hlsenc.c     return avio_open_dyn_buf(&ctx->pb);
ctx                82 libavformat/ivfenc.c     IVFEncContext *ctx = s->priv_data;
ctx                87 libavformat/ivfenc.c     if (ctx->frame_cnt)
ctx                88 libavformat/ivfenc.c         ctx->sum_delta_pts += pkt->pts - ctx->last_pts;
ctx                89 libavformat/ivfenc.c     ctx->frame_cnt++;
ctx                90 libavformat/ivfenc.c     ctx->last_pts = pkt->pts;
ctx                98 libavformat/ivfenc.c     IVFEncContext *ctx = s->priv_data;
ctx               100 libavformat/ivfenc.c     if ((pb->seekable & AVIO_SEEKABLE_NORMAL) && ctx->frame_cnt > 1) {
ctx               105 libavformat/ivfenc.c         avio_wl32(pb, ctx->frame_cnt * ctx->sum_delta_pts / (ctx->frame_cnt - 1));
ctx                58 libavformat/latmenc.c     LATMContext *ctx = s->priv_data;
ctx                65 libavformat/latmenc.c     ctx->off = avpriv_mpeg4audio_get_config2(&m4ac, buf, size, 1, s);
ctx                66 libavformat/latmenc.c     if (ctx->off < 0)
ctx                67 libavformat/latmenc.c         return ctx->off;
ctx                69 libavformat/latmenc.c     if (ctx->object_type == AOT_ALS && (ctx->off & 7)) {
ctx                80 libavformat/latmenc.c     ctx->channel_conf = m4ac.chan_config;
ctx                81 libavformat/latmenc.c     ctx->object_type  = m4ac.object_type;
ctx               106 libavformat/latmenc.c     LATMContext *ctx = s->priv_data;
ctx               111 libavformat/latmenc.c     put_bits(bs, 1, !!ctx->counter);
ctx               113 libavformat/latmenc.c     if (!ctx->counter) {
ctx               122 libavformat/latmenc.c         if (ctx->object_type == AOT_ALS) {
ctx               123 libavformat/latmenc.c             header_size = par->extradata_size-(ctx->off >> 3);
ctx               124 libavformat/latmenc.c             avpriv_copy_bits(bs, &par->extradata[ctx->off >> 3], header_size);
ctx               128 libavformat/latmenc.c             avpriv_copy_bits(bs, par->extradata, ctx->off + 3);
ctx               130 libavformat/latmenc.c             if (!ctx->channel_conf) {
ctx               134 libavformat/latmenc.c                 skip_bits_long(&gb, ctx->off + 3);
ctx               146 libavformat/latmenc.c     ctx->counter++;
ctx               147 libavformat/latmenc.c     ctx->counter %= ctx->mod;
ctx               152 libavformat/latmenc.c     LATMContext *ctx = s->priv_data;
ctx               187 libavformat/latmenc.c     init_put_bits(&bs, ctx->buffer, pkt->size+1024+MAX_EXTRADATA_SIZE);
ctx               226 libavformat/latmenc.c     avio_write(pb, ctx->buffer, len);
ctx                75 libavformat/librtmp.c     LibRTMPContext *ctx = s->priv_data;
ctx                76 libavformat/librtmp.c     RTMP *r = &ctx->rtmp;
ctx                79 libavformat/librtmp.c     av_freep(&ctx->temp_filename);
ctx                97 libavformat/librtmp.c     LibRTMPContext *ctx = s->priv_data;
ctx                98 libavformat/librtmp.c     RTMP *r = &ctx->rtmp;
ctx               115 libavformat/librtmp.c     if (ctx->app)      len += strlen(ctx->app)      + sizeof(" app=");
ctx               116 libavformat/librtmp.c     if (ctx->tcurl)    len += strlen(ctx->tcurl)    + sizeof(" tcUrl=");
ctx               117 libavformat/librtmp.c     if (ctx->pageurl)  len += strlen(ctx->pageurl)  + sizeof(" pageUrl=");
ctx               118 libavformat/librtmp.c     if (ctx->flashver) len += strlen(ctx->flashver) + sizeof(" flashver=");
ctx               120 libavformat/librtmp.c     if (ctx->conn) {
ctx               121 libavformat/librtmp.c         char *sep, *p = ctx->conn;
ctx               136 libavformat/librtmp.c         len += strlen(ctx->conn);
ctx               139 libavformat/librtmp.c     if (ctx->playpath)
ctx               140 libavformat/librtmp.c         len += strlen(ctx->playpath) + sizeof(" playpath=");
ctx               141 libavformat/librtmp.c     if (ctx->live)
ctx               143 libavformat/librtmp.c     if (ctx->subscribe)
ctx               144 libavformat/librtmp.c         len += strlen(ctx->subscribe) + sizeof(" subscribe=");
ctx               146 libavformat/librtmp.c     if (ctx->client_buffer_time)
ctx               147 libavformat/librtmp.c         len += strlen(ctx->client_buffer_time) + sizeof(" buffer=");
ctx               149 libavformat/librtmp.c     if (ctx->swfurl || ctx->swfverify) {
ctx               152 libavformat/librtmp.c         if (ctx->swfverify)
ctx               153 libavformat/librtmp.c             len += strlen(ctx->swfverify) + sizeof(" swfVfy=1");
ctx               155 libavformat/librtmp.c             len += strlen(ctx->swfurl);
ctx               158 libavformat/librtmp.c     if (!(ctx->temp_filename = filename = av_malloc(len)))
ctx               162 libavformat/librtmp.c     if (ctx->app) {
ctx               164 libavformat/librtmp.c         av_strlcat(filename, ctx->app, len);
ctx               166 libavformat/librtmp.c     if (ctx->tcurl) {
ctx               168 libavformat/librtmp.c         av_strlcat(filename, ctx->tcurl, len);
ctx               170 libavformat/librtmp.c     if (ctx->pageurl) {
ctx               172 libavformat/librtmp.c         av_strlcat(filename, ctx->pageurl, len);
ctx               174 libavformat/librtmp.c     if (ctx->swfurl) {
ctx               176 libavformat/librtmp.c         av_strlcat(filename, ctx->swfurl, len);
ctx               178 libavformat/librtmp.c     if (ctx->flashver) {
ctx               180 libavformat/librtmp.c         av_strlcat(filename, ctx->flashver, len);
ctx               182 libavformat/librtmp.c     if (ctx->conn) {
ctx               183 libavformat/librtmp.c         char *sep, *p = ctx->conn;
ctx               200 libavformat/librtmp.c     if (ctx->playpath) {
ctx               202 libavformat/librtmp.c         av_strlcat(filename, ctx->playpath, len);
ctx               204 libavformat/librtmp.c     if (ctx->live)
ctx               206 libavformat/librtmp.c     if (ctx->subscribe) {
ctx               208 libavformat/librtmp.c         av_strlcat(filename, ctx->subscribe, len);
ctx               210 libavformat/librtmp.c     if (ctx->client_buffer_time) {
ctx               212 libavformat/librtmp.c         av_strlcat(filename, ctx->client_buffer_time, len);
ctx               214 libavformat/librtmp.c     if (ctx->swfurl || ctx->swfverify) {
ctx               217 libavformat/librtmp.c         if (ctx->swfverify) {
ctx               218 libavformat/librtmp.c             av_strlcat(filename, ctx->swfverify, len);
ctx               221 libavformat/librtmp.c             av_strlcat(filename, ctx->swfurl, len);
ctx               240 libavformat/librtmp.c     if (ctx->buffer_size >= 0 && (flags & AVIO_FLAG_WRITE)) {
ctx               241 libavformat/librtmp.c         int tmp = ctx->buffer_size;
ctx               252 libavformat/librtmp.c     av_freep(&ctx->temp_filename);
ctx               261 libavformat/librtmp.c     LibRTMPContext *ctx = s->priv_data;
ctx               262 libavformat/librtmp.c     RTMP *r = &ctx->rtmp;
ctx               272 libavformat/librtmp.c     LibRTMPContext *ctx = s->priv_data;
ctx               273 libavformat/librtmp.c     RTMP *r = &ctx->rtmp;
ctx               283 libavformat/librtmp.c     LibRTMPContext *ctx = s->priv_data;
ctx               284 libavformat/librtmp.c     RTMP *r = &ctx->rtmp;
ctx               294 libavformat/librtmp.c     LibRTMPContext *ctx = s->priv_data;
ctx               295 libavformat/librtmp.c     RTMP *r = &ctx->rtmp;
ctx               312 libavformat/librtmp.c     LibRTMPContext *ctx = s->priv_data;
ctx               313 libavformat/librtmp.c     RTMP *r = &ctx->rtmp;
ctx                30 libavformat/libsmbclient.c     SMBCCTX *ctx;
ctx                52 libavformat/libsmbclient.c     libsmbc->ctx = smbc_new_context();
ctx                53 libavformat/libsmbclient.c     if (!libsmbc->ctx) {
ctx                58 libavformat/libsmbclient.c     if (!smbc_init_context(libsmbc->ctx)) {
ctx                63 libavformat/libsmbclient.c     smbc_set_context(libsmbc->ctx);
ctx                65 libavformat/libsmbclient.c     smbc_setOptionUserData(libsmbc->ctx, h);
ctx                66 libavformat/libsmbclient.c     smbc_setFunctionAuthDataWithContext(libsmbc->ctx, libsmbc_get_auth_data);
ctx                69 libavformat/libsmbclient.c         smbc_setTimeout(libsmbc->ctx, libsmbc->timeout);
ctx                71 libavformat/libsmbclient.c         smbc_setWorkgroup(libsmbc->ctx, libsmbc->workgroup);
ctx                88 libavformat/libsmbclient.c     if (libsmbc->ctx) {
ctx                89 libavformat/libsmbclient.c         smbc_free_context(libsmbc->ctx, 1);
ctx                90 libavformat/libsmbclient.c         libsmbc->ctx = NULL;
ctx               343 libavformat/matroskadec.c     AVFormatContext *ctx;
ctx               782 libavformat/matroskadec.c         int64_t err = avio_seek(matroska->ctx->pb, position, SEEK_SET);
ctx               790 libavformat/matroskadec.c     matroska->resync_pos = avio_tell(matroska->ctx->pb);
ctx               799 libavformat/matroskadec.c     AVIOContext *pb = matroska->ctx->pb;
ctx               805 libavformat/matroskadec.c         av_log(matroska->ctx, AV_LOG_WARNING,
ctx               862 libavformat/matroskadec.c             av_log(matroska->ctx, AV_LOG_ERROR,
ctx               866 libavformat/matroskadec.c             av_log(matroska->ctx, AV_LOG_ERROR,
ctx               891 libavformat/matroskadec.c         av_log(matroska->ctx, AV_LOG_ERROR,
ctx               897 libavformat/matroskadec.c         av_log(matroska->ctx, AV_LOG_ERROR, "File ended prematurely "
ctx              1035 libavformat/matroskadec.c         av_log(matroska->ctx, AV_LOG_ERROR,
ctx              1162 libavformat/matroskadec.c         av_log(matroska->ctx, AV_LOG_ERROR, "Too many level1 elements.\n");
ctx              1188 libavformat/matroskadec.c     AVIOContext *pb = matroska->ctx->pb;
ctx              1210 libavformat/matroskadec.c                         av_log(matroska->ctx, AV_LOG_ERROR, "File ended prematurely "
ctx              1240 libavformat/matroskadec.c         av_log(matroska->ctx, AV_LOG_DEBUG, "Unknown entry 0x%"PRIX32" at pos. "
ctx              1283 libavformat/matroskadec.c                     av_log(matroska->ctx, AV_LOG_ERROR,
ctx              1292 libavformat/matroskadec.c                 av_log(matroska->ctx, AV_LOG_ERROR, "Unknown-sized element "
ctx              1302 libavformat/matroskadec.c                     av_log(matroska->ctx, AV_LOG_WARNING,
ctx              1314 libavformat/matroskadec.c                 av_log(matroska->ctx, AV_LOG_ERROR,
ctx              1319 libavformat/matroskadec.c                 av_log(matroska->ctx, AV_LOG_ERROR,
ctx              1324 libavformat/matroskadec.c                 av_log(matroska->ctx, AV_LOG_ERROR,
ctx              1363 libavformat/matroskadec.c                     av_log(matroska->ctx, AV_LOG_ERROR,
ctx              1416 libavformat/matroskadec.c                 av_log(matroska->ctx, AV_LOG_ERROR, "Duplicate element\n");
ctx              1458 libavformat/matroskadec.c             av_log(matroska->ctx, AV_LOG_ERROR, "Invalid element\n");
ctx              1460 libavformat/matroskadec.c             av_log(matroska->ctx, AV_LOG_ERROR, "Read error\n");
ctx              1462 libavformat/matroskadec.c             av_log(matroska->ctx, AV_LOG_ERROR, "File ended prematurely\n");
ctx              1577 libavformat/matroskadec.c     av_log(matroska->ctx, AV_LOG_ERROR, "Invalid track number %"PRIu64"\n", num);
ctx              1825 libavformat/matroskadec.c     int64_t before_pos = avio_tell(matroska->ctx->pb);
ctx              1829 libavformat/matroskadec.c     if (avio_seek(matroska->ctx->pb, pos, SEEK_SET) == pos) {
ctx              1833 libavformat/matroskadec.c             av_log(matroska->ctx, AV_LOG_INFO,
ctx              1862 libavformat/matroskadec.c     if (!(matroska->ctx->pb->seekable & AVIO_SEEKABLE_NORMAL))
ctx              1901 libavformat/matroskadec.c     if (matroska->ctx->flags & AVFMT_FLAG_IGNIDX)
ctx              1909 libavformat/matroskadec.c         av_log(matroska->ctx, AV_LOG_WARNING, "Dropping apparently-broken index.\n");
ctx              1930 libavformat/matroskadec.c     if (matroska->ctx->flags & AVFMT_FLAG_IGNIDX)
ctx              2316 libavformat/matroskadec.c             av_log(matroska->ctx, AV_LOG_INFO,
ctx              2326 libavformat/matroskadec.c             av_log(matroska->ctx, AV_LOG_WARNING,
ctx              2336 libavformat/matroskadec.c                     av_log(matroska->ctx, AV_LOG_WARNING,
ctx              2354 libavformat/matroskadec.c             av_log(matroska->ctx, AV_LOG_ERROR,
ctx              2371 libavformat/matroskadec.c                     av_log(matroska->ctx, AV_LOG_ERROR,
ctx              2386 libavformat/matroskadec.c                 av_log(matroska->ctx, AV_LOG_ERROR,
ctx              2396 libavformat/matroskadec.c                     av_log(matroska->ctx, AV_LOG_ERROR,
ctx              2499 libavformat/matroskadec.c                 av_log(matroska->ctx, AV_LOG_ERROR,
ctx              2572 libavformat/matroskadec.c                 av_log(matroska->ctx, AV_LOG_WARNING,
ctx              2576 libavformat/matroskadec.c                 if (matroska->ctx->error_recognition & AV_EF_EXPLODE)
ctx              2654 libavformat/matroskadec.c             av_log(matroska->ctx, AV_LOG_INFO, "Assuming WavPack version 4.10 "
ctx              2675 libavformat/matroskadec.c             av_log(matroska->ctx, AV_LOG_INFO,
ctx              2785 libavformat/matroskadec.c             ret = mkv_parse_video_projection(st, track, matroska->ctx);
ctx              2842 libavformat/matroskadec.c     matroska->ctx = s;
ctx              2847 libavformat/matroskadec.c         av_log(matroska->ctx, AV_LOG_ERROR, "EBML header parsing failed\n");
ctx              2855 libavformat/matroskadec.c         avpriv_report_missing_feature(matroska->ctx,
ctx              2861 libavformat/matroskadec.c         av_log(matroska->ctx, AV_LOG_WARNING,
ctx              2871 libavformat/matroskadec.c         if (matroska->ctx->error_recognition & AV_EF_EXPLODE) {
ctx              2879 libavformat/matroskadec.c     pos = avio_tell(matroska->ctx->pb);
ctx              2886 libavformat/matroskadec.c         pos = avio_tell(matroska->ctx->pb);
ctx              2891 libavformat/matroskadec.c         s->internal->data_offset = avio_tell(matroska->ctx->pb) - 4;
ctx              2897 libavformat/matroskadec.c         matroska->ctx->duration = matroska->duration * matroska->time_scale *
ctx              2913 libavformat/matroskadec.c             av_log(matroska->ctx, AV_LOG_ERROR, "incomplete attachment\n");
ctx              3003 libavformat/matroskadec.c                 av_log(matroska->ctx, AV_LOG_ERROR, "Cannot append palette to packet\n");
ctx              3137 libavformat/matroskadec.c                 av_log(matroska->ctx, AV_LOG_ERROR,
ctx              3146 libavformat/matroskadec.c                 av_log(matroska->ctx, AV_LOG_ERROR,
ctx              3153 libavformat/matroskadec.c                 av_log(matroska->ctx, AV_LOG_ERROR,
ctx              3432 libavformat/matroskadec.c             av_log(matroska->ctx, AV_LOG_ERROR,
ctx              3445 libavformat/matroskadec.c             av_log(matroska->ctx, AV_LOG_ERROR,
ctx              3563 libavformat/matroskadec.c         av_log(matroska->ctx, AV_LOG_VERBOSE,
ctx              3588 libavformat/matroskadec.c             ff_reduce_index(matroska->ctx, st->index);
ctx              3604 libavformat/matroskadec.c             av_log(matroska->ctx, AV_LOG_ERROR, "File is broken, keyframes not correctly marked!\n");
ctx              3612 libavformat/matroskadec.c         av_log(matroska->ctx, AV_LOG_ERROR, "Error parsing frame sizes.\n");
ctx              3695 libavformat/matroskadec.c             cluster->pos = avio_tell(matroska->ctx->pb) - 4;
ctx              3723 libavformat/matroskadec.c         if (!avio_feof(matroska->ctx->pb)) {
ctx              3724 libavformat/matroskadec.c             avio_r8(matroska->ctx->pb);
ctx              3725 libavformat/matroskadec.c             if (!avio_feof(matroska->ctx->pb)) {
ctx              3726 libavformat/matroskadec.c                 av_log(matroska->ctx, AV_LOG_WARNING, "File extends beyond "
ctx              3896 libavformat/matroskadec.c         read = ebml_read_num(matroska, matroska->ctx->pb, 4, &cluster_id, 1);
ctx              3899 libavformat/matroskadec.c         read = ebml_read_length(matroska, matroska->ctx->pb, &cluster_length);
ctx              4109 libavformat/matroskadec.c     before_pos = avio_tell(matroska->ctx->pb);
ctx              4111 libavformat/matroskadec.c     if (avio_seek(matroska->ctx->pb, cues_start, SEEK_SET) == cues_start) {
ctx              4117 libavformat/matroskadec.c         bytes_read = ebml_read_num   (matroska, matroska->ctx->pb, 4, &cues_id, 1);
ctx              4120 libavformat/matroskadec.c         bytes_read = ebml_read_length(matroska, matroska->ctx->pb, &cues_length);
ctx              4125 libavformat/matroskadec.c     avio_seek(matroska->ctx->pb, before_pos, SEEK_SET);
ctx                59 libavformat/metadata.c void ff_metadata_conv_ctx(AVFormatContext *ctx, const AVMetadataConv *d_conv,
ctx                63 libavformat/metadata.c     ff_metadata_conv(&ctx->metadata, d_conv, s_conv);
ctx                64 libavformat/metadata.c     for (i=0; i<ctx->nb_streams ; i++)
ctx                65 libavformat/metadata.c         ff_metadata_conv(&ctx->streams [i]->metadata, d_conv, s_conv);
ctx                66 libavformat/metadata.c     for (i=0; i<ctx->nb_chapters; i++)
ctx                67 libavformat/metadata.c         ff_metadata_conv(&ctx->chapters[i]->metadata, d_conv, s_conv);
ctx                68 libavformat/metadata.c     for (i=0; i<ctx->nb_programs; i++)
ctx                69 libavformat/metadata.c         ff_metadata_conv(&ctx->programs[i]->metadata, d_conv, s_conv);
ctx                41 libavformat/metadata.h void ff_metadata_conv_ctx(AVFormatContext *ctx, const AVMetadataConv *d_conv,
ctx                74 libavformat/mov.c     int (*parse)(MOVContext *ctx, AVIOContext *pb, MOVAtom atom);
ctx              5166 libavformat/mov.c     AVIOContext ctx;
ctx              5200 libavformat/mov.c     if (ffio_init_context(&ctx, moov_data, moov_len, 0, NULL, NULL, NULL, NULL) != 0)
ctx              5202 libavformat/mov.c     ctx.seekable = AVIO_SEEKABLE_NORMAL;
ctx              5205 libavformat/mov.c     ret = mov_read_default(c, &ctx, atom);
ctx              3177 libavformat/movenc.c     AVFormatContext *ctx = track->rtp_ctx;
ctx              3181 libavformat/movenc.c     ff_sdp_write_media(buf, sizeof(buf), ctx->streams[0], track->src_track,
ctx              3182 libavformat/movenc.c                        NULL, NULL, 0, 0, ctx);
ctx                27 libavformat/movenccenc.c static int auxiliary_info_alloc_size(MOVMuxCencContext* ctx, int size)
ctx                31 libavformat/movenccenc.c     if (ctx->auxiliary_info_size + size > ctx->auxiliary_info_alloc_size) {
ctx                32 libavformat/movenccenc.c         new_alloc_size = FFMAX(ctx->auxiliary_info_size + size, ctx->auxiliary_info_alloc_size * 2);
ctx                33 libavformat/movenccenc.c         if (av_reallocp(&ctx->auxiliary_info, new_alloc_size)) {
ctx                37 libavformat/movenccenc.c         ctx->auxiliary_info_alloc_size = new_alloc_size;
ctx                43 libavformat/movenccenc.c static int auxiliary_info_write(MOVMuxCencContext* ctx,
ctx                48 libavformat/movenccenc.c     ret = auxiliary_info_alloc_size(ctx, size);
ctx                52 libavformat/movenccenc.c     memcpy(ctx->auxiliary_info + ctx->auxiliary_info_size, buf_in, size);
ctx                53 libavformat/movenccenc.c     ctx->auxiliary_info_size += size;
ctx                58 libavformat/movenccenc.c static int auxiliary_info_add_subsample(MOVMuxCencContext* ctx,
ctx                64 libavformat/movenccenc.c     if (!ctx->use_subsamples) {
ctx                68 libavformat/movenccenc.c     ret = auxiliary_info_alloc_size(ctx, 6);
ctx                73 libavformat/movenccenc.c     p = ctx->auxiliary_info + ctx->auxiliary_info_size;
ctx                80 libavformat/movenccenc.c     ctx->auxiliary_info_size += 6;
ctx                81 libavformat/movenccenc.c     ctx->subsample_count++;
ctx                89 libavformat/movenccenc.c static void mov_cenc_write_encrypted(MOVMuxCencContext* ctx, AVIOContext *pb,
ctx                99 libavformat/movenccenc.c         av_aes_ctr_crypt(ctx->aes_ctr, chunk, cur_pos, cur_size);
ctx               109 libavformat/movenccenc.c static int mov_cenc_start_packet(MOVMuxCencContext* ctx)
ctx               114 libavformat/movenccenc.c     ret = auxiliary_info_write(ctx, av_aes_ctr_get_iv(ctx->aes_ctr), AES_CTR_IV_SIZE);
ctx               119 libavformat/movenccenc.c     if (!ctx->use_subsamples) {
ctx               124 libavformat/movenccenc.c     ctx->auxiliary_info_subsample_start = ctx->auxiliary_info_size;
ctx               125 libavformat/movenccenc.c     ctx->subsample_count = 0;
ctx               126 libavformat/movenccenc.c     ret = auxiliary_info_write(ctx, (uint8_t*)&ctx->subsample_count, sizeof(ctx->subsample_count));
ctx               137 libavformat/movenccenc.c static int mov_cenc_end_packet(MOVMuxCencContext* ctx)
ctx               141 libavformat/movenccenc.c     av_aes_ctr_increment_iv(ctx->aes_ctr);
ctx               143 libavformat/movenccenc.c     if (!ctx->use_subsamples) {
ctx               144 libavformat/movenccenc.c         ctx->auxiliary_info_entries++;
ctx               149 libavformat/movenccenc.c     if (ctx->auxiliary_info_entries >= ctx->auxiliary_info_sizes_alloc_size) {
ctx               150 libavformat/movenccenc.c         new_alloc_size = ctx->auxiliary_info_entries * 2 + 1;
ctx               151 libavformat/movenccenc.c         if (av_reallocp(&ctx->auxiliary_info_sizes, new_alloc_size)) {
ctx               155 libavformat/movenccenc.c         ctx->auxiliary_info_sizes_alloc_size = new_alloc_size;
ctx               157 libavformat/movenccenc.c     ctx->auxiliary_info_sizes[ctx->auxiliary_info_entries] =
ctx               158 libavformat/movenccenc.c         AES_CTR_IV_SIZE + ctx->auxiliary_info_size - ctx->auxiliary_info_subsample_start;
ctx               159 libavformat/movenccenc.c     ctx->auxiliary_info_entries++;
ctx               162 libavformat/movenccenc.c     AV_WB16(ctx->auxiliary_info + ctx->auxiliary_info_subsample_start, ctx->subsample_count);
ctx               167 libavformat/movenccenc.c int ff_mov_cenc_write_packet(MOVMuxCencContext* ctx, AVIOContext *pb,
ctx               172 libavformat/movenccenc.c     ret = mov_cenc_start_packet(ctx);
ctx               177 libavformat/movenccenc.c     ret = auxiliary_info_add_subsample(ctx, 0, size);
ctx               182 libavformat/movenccenc.c     mov_cenc_write_encrypted(ctx, pb, buf_in, size);
ctx               184 libavformat/movenccenc.c     ret = mov_cenc_end_packet(ctx);
ctx               192 libavformat/movenccenc.c int ff_mov_cenc_avc_parse_nal_units(MOVMuxCencContext* ctx, AVIOContext *pb,
ctx               200 libavformat/movenccenc.c     ret = mov_cenc_start_packet(ctx);
ctx               216 libavformat/movenccenc.c         mov_cenc_write_encrypted(ctx, pb, nal_start + 1, nal_end - nal_start - 1);
ctx               218 libavformat/movenccenc.c         auxiliary_info_add_subsample(ctx, 5, nal_end - nal_start - 1);
ctx               224 libavformat/movenccenc.c     ret = mov_cenc_end_packet(ctx);
ctx               232 libavformat/movenccenc.c int ff_mov_cenc_avc_write_nal_units(AVFormatContext *s, MOVMuxCencContext* ctx,
ctx               239 libavformat/movenccenc.c     ret = mov_cenc_start_packet(ctx);
ctx               266 libavformat/movenccenc.c         mov_cenc_write_encrypted(ctx, pb, buf_in + 1, nalsize - 1);
ctx               270 libavformat/movenccenc.c         auxiliary_info_add_subsample(ctx, nal_length_size + 1, nalsize - 1);
ctx               273 libavformat/movenccenc.c     ret = mov_cenc_end_packet(ctx);
ctx               292 libavformat/movenccenc.c static int mov_cenc_write_senc_tag(MOVMuxCencContext* ctx, AVIOContext *pb,
ctx               299 libavformat/movenccenc.c     avio_wb32(pb, ctx->use_subsamples ? 0x02 : 0); /* version & flags */
ctx               300 libavformat/movenccenc.c     avio_wb32(pb, ctx->auxiliary_info_entries); /* entry count */
ctx               302 libavformat/movenccenc.c     avio_write(pb, ctx->auxiliary_info, ctx->auxiliary_info_size);
ctx               325 libavformat/movenccenc.c static int mov_cenc_write_saiz_tag(MOVMuxCencContext* ctx, AVIOContext *pb)
ctx               331 libavformat/movenccenc.c     avio_w8(pb, ctx->use_subsamples ? 0 : AES_CTR_IV_SIZE);    /* default size*/
ctx               332 libavformat/movenccenc.c     avio_wb32(pb, ctx->auxiliary_info_entries); /* entry count */
ctx               333 libavformat/movenccenc.c     if (ctx->use_subsamples) {
ctx               334 libavformat/movenccenc.c         avio_write(pb, ctx->auxiliary_info_sizes, ctx->auxiliary_info_entries);
ctx               339 libavformat/movenccenc.c void ff_mov_cenc_write_stbl_atoms(MOVMuxCencContext* ctx, AVIOContext *pb)
ctx               343 libavformat/movenccenc.c     mov_cenc_write_senc_tag(ctx, pb, &auxiliary_info_offset);
ctx               345 libavformat/movenccenc.c     mov_cenc_write_saiz_tag(ctx, pb);
ctx               388 libavformat/movenccenc.c int ff_mov_cenc_init(MOVMuxCencContext* ctx, uint8_t* encryption_key,
ctx               393 libavformat/movenccenc.c     ctx->aes_ctr = av_aes_ctr_alloc();
ctx               394 libavformat/movenccenc.c     if (!ctx->aes_ctr) {
ctx               398 libavformat/movenccenc.c     ret = av_aes_ctr_init(ctx->aes_ctr, encryption_key);
ctx               404 libavformat/movenccenc.c         av_aes_ctr_set_random_iv(ctx->aes_ctr);
ctx               407 libavformat/movenccenc.c     ctx->use_subsamples = use_subsamples;
ctx               412 libavformat/movenccenc.c void ff_mov_cenc_free(MOVMuxCencContext* ctx)
ctx               414 libavformat/movenccenc.c     av_aes_ctr_free(ctx->aes_ctr);
ctx                53 libavformat/movenccenc.h int ff_mov_cenc_init(MOVMuxCencContext* ctx, uint8_t* encryption_key, int use_subsamples, int bitexact);
ctx                58 libavformat/movenccenc.h void ff_mov_cenc_free(MOVMuxCencContext* ctx);
ctx                63 libavformat/movenccenc.h int ff_mov_cenc_write_packet(MOVMuxCencContext* ctx, AVIOContext *pb, const uint8_t *buf_in, int size);
ctx                68 libavformat/movenccenc.h int ff_mov_cenc_avc_parse_nal_units(MOVMuxCencContext* ctx, AVIOContext *pb, const uint8_t *buf_in, int size);
ctx                73 libavformat/movenccenc.h int ff_mov_cenc_avc_write_nal_units(AVFormatContext *s, MOVMuxCencContext* ctx, int nal_length_size,
ctx                79 libavformat/movenccenc.h void ff_mov_cenc_write_stbl_atoms(MOVMuxCencContext* ctx, AVIOContext *pb);
ctx                91 libavformat/mpegenc.c static int put_pack_header(AVFormatContext *ctx, uint8_t *buf,
ctx                94 libavformat/mpegenc.c     MpegMuxContext *s = ctx->priv_data;
ctx               125 libavformat/mpegenc.c static int put_system_header(AVFormatContext *ctx, uint8_t *buf,
ctx               128 libavformat/mpegenc.c     MpegMuxContext *s = ctx->priv_data;
ctx               192 libavformat/mpegenc.c         for (i = 0; i < ctx->nb_streams; i++) {
ctx               193 libavformat/mpegenc.c             StreamInfo *stream = ctx->streams[i]->priv_data;
ctx               235 libavformat/mpegenc.c         for (i = 0; i < ctx->nb_streams; i++) {
ctx               236 libavformat/mpegenc.c             StreamInfo *stream = ctx->streams[i]->priv_data;
ctx               274 libavformat/mpegenc.c static int get_system_header_size(AVFormatContext *ctx)
ctx               278 libavformat/mpegenc.c     MpegMuxContext *s = ctx->priv_data;
ctx               285 libavformat/mpegenc.c     for (i = 0; i < ctx->nb_streams; i++) {
ctx               286 libavformat/mpegenc.c         stream = ctx->streams[i]->priv_data;
ctx               297 libavformat/mpegenc.c static av_cold int mpeg_mux_init(AVFormatContext *ctx)
ctx               299 libavformat/mpegenc.c     MpegMuxContext *s = ctx->priv_data;
ctx               307 libavformat/mpegenc.c     s->is_vcd   =  (CONFIG_MPEG1VCD_MUXER  && ctx->oformat == &ff_mpeg1vcd_muxer);
ctx               308 libavformat/mpegenc.c     s->is_svcd  =  (CONFIG_MPEG2SVCD_MUXER && ctx->oformat == &ff_mpeg2svcd_muxer);
ctx               309 libavformat/mpegenc.c     s->is_mpeg2 = ((CONFIG_MPEG2VOB_MUXER  && ctx->oformat == &ff_mpeg2vob_muxer) ||
ctx               310 libavformat/mpegenc.c                    (CONFIG_MPEG2DVD_MUXER  && ctx->oformat == &ff_mpeg2dvd_muxer) ||
ctx               311 libavformat/mpegenc.c                    (CONFIG_MPEG2SVCD_MUXER && ctx->oformat == &ff_mpeg2svcd_muxer));
ctx               312 libavformat/mpegenc.c     s->is_dvd   =  (CONFIG_MPEG2DVD_MUXER  && ctx->oformat == &ff_mpeg2dvd_muxer);
ctx               314 libavformat/mpegenc.c     if (ctx->packet_size) {
ctx               315 libavformat/mpegenc.c         if (ctx->packet_size < 20 || ctx->packet_size > (1 << 23) + 10) {
ctx               316 libavformat/mpegenc.c             av_log(ctx, AV_LOG_ERROR, "Invalid packet size %d\n",
ctx               317 libavformat/mpegenc.c                    ctx->packet_size);
ctx               320 libavformat/mpegenc.c         s->packet_size = ctx->packet_size;
ctx               323 libavformat/mpegenc.c     if (ctx->max_delay < 0)     /* Not set by the caller */
ctx               324 libavformat/mpegenc.c         ctx->max_delay = AV_TIME_BASE*7/10;
ctx               340 libavformat/mpegenc.c     for (i = 0; i < ctx->nb_streams; i++) {
ctx               343 libavformat/mpegenc.c         st     = ctx->streams[i];
ctx               358 libavformat/mpegenc.c                  av_log(ctx, AV_LOG_WARNING,
ctx               375 libavformat/mpegenc.c                     av_log(ctx, AV_LOG_ERROR, "Invalid sampling rate for PCM stream.\n");
ctx               376 libavformat/mpegenc.c                     av_log(ctx, AV_LOG_INFO, "Allowed sampling rates:");
ctx               378 libavformat/mpegenc.c                          av_log(ctx, AV_LOG_INFO, " %d", lpcm_freq_tab[sr]);
ctx               379 libavformat/mpegenc.c                     av_log(ctx, AV_LOG_INFO, "\n");
ctx               383 libavformat/mpegenc.c                     av_log(ctx, AV_LOG_ERROR, "At most 8 channels allowed for LPCM streams.\n");
ctx               399 libavformat/mpegenc.c                     av_log(ctx, AV_LOG_ERROR, "Unsupported sample rate.\n");
ctx               412 libavformat/mpegenc.c                        av_log(ctx, AV_LOG_ERROR, "Support for muxing audio codec %s not implemented.\n",
ctx               418 libavformat/mpegenc.c                        av_log(ctx, AV_LOG_ERROR, "Unsupported audio codec. Must be one of mp1, mp2, mp3, 16-bit pcm_dvd, pcm_s16be, ac3 or dts.\n");
ctx               439 libavformat/mpegenc.c                 av_log(ctx, AV_LOG_WARNING,
ctx               447 libavformat/mpegenc.c                 av_log(ctx, AV_LOG_WARNING, "buffer size %d, too large\n", stream->max_buffer_size);
ctx               457 libavformat/mpegenc.c             av_log(ctx, AV_LOG_ERROR, "Invalid media type %s for output stream #%d\n",
ctx               468 libavformat/mpegenc.c     for (i = 0; i < ctx->nb_streams; i++) {
ctx               471 libavformat/mpegenc.c         st     = ctx->streams[i];
ctx               481 libavformat/mpegenc.c             codec_rate = (1 << 21) * 8 * 50 / ctx->nb_streams;
ctx               500 libavformat/mpegenc.c             av_log(ctx, AV_LOG_WARNING, "mux rate %d is too large\n", s->mux_rate);
ctx               556 libavformat/mpegenc.c     for (i = 0; i < ctx->nb_streams; i++) {
ctx               557 libavformat/mpegenc.c         stream                = ctx->streams[i]->priv_data;
ctx               560 libavformat/mpegenc.c     s->system_header_size = get_system_header_size(ctx);
ctx               574 libavformat/mpegenc.c static int get_vcd_padding_size(AVFormatContext *ctx, int64_t pts)
ctx               576 libavformat/mpegenc.c     MpegMuxContext *s = ctx->priv_data;
ctx               597 libavformat/mpegenc.c static void put_padding_packet(AVFormatContext *ctx, AVIOContext *pb,
ctx               600 libavformat/mpegenc.c     MpegMuxContext *s = ctx->priv_data;
ctx               615 libavformat/mpegenc.c static int get_nb_frames(AVFormatContext *ctx, StreamInfo *stream, int len)
ctx               631 libavformat/mpegenc.c static int flush_packet(AVFormatContext *ctx, int stream_index,
ctx               634 libavformat/mpegenc.c     MpegMuxContext *s  = ctx->priv_data;
ctx               635 libavformat/mpegenc.c     StreamInfo *stream = ctx->streams[stream_index]->priv_data;
ctx               649 libavformat/mpegenc.c     av_log(ctx, AV_LOG_TRACE, "packet ID=%2x PTS=%0.3f\n", id, pts / 90000.0);
ctx               655 libavformat/mpegenc.c         size        = put_pack_header(ctx, buf_ptr, scr);
ctx               665 libavformat/mpegenc.c                 size     = put_system_header(ctx, buf_ptr, id);
ctx               680 libavformat/mpegenc.c                     size     = put_system_header(ctx, buf_ptr, 0);
ctx               683 libavformat/mpegenc.c                     avio_write(ctx->pb, buffer, size);
ctx               685 libavformat/mpegenc.c                     avio_wb32(ctx->pb, PRIVATE_STREAM_2);
ctx               686 libavformat/mpegenc.c                     avio_wb16(ctx->pb, 0x03d4);     // length
ctx               687 libavformat/mpegenc.c                     avio_w8(ctx->pb, 0x00);         // substream ID, 00=PCI
ctx               689 libavformat/mpegenc.c                         avio_w8(ctx->pb, 0x00);
ctx               691 libavformat/mpegenc.c                     avio_wb32(ctx->pb, PRIVATE_STREAM_2);
ctx               692 libavformat/mpegenc.c                     avio_wb16(ctx->pb, 0x03fa);     // length
ctx               693 libavformat/mpegenc.c                     avio_w8(ctx->pb, 0x01);         // substream ID, 01=DSI
ctx               695 libavformat/mpegenc.c                         avio_w8(ctx->pb, 0x00);
ctx               704 libavformat/mpegenc.c                     size        = put_pack_header(ctx, buf_ptr, scr);
ctx               715 libavformat/mpegenc.c                 size     = put_system_header(ctx, buf_ptr, 0);
ctx               721 libavformat/mpegenc.c     avio_write(ctx->pb, buffer, size);
ctx               831 libavformat/mpegenc.c         nb_frames = get_nb_frames(ctx, stream, payload_size - stuffing_size);
ctx               833 libavformat/mpegenc.c         avio_wb32(ctx->pb, startcode);
ctx               835 libavformat/mpegenc.c         avio_wb16(ctx->pb, packet_size);
ctx               839 libavformat/mpegenc.c                 avio_w8(ctx->pb, 0xff);
ctx               842 libavformat/mpegenc.c             avio_w8(ctx->pb, 0x80); /* mpeg2 id */
ctx               859 libavformat/mpegenc.c             avio_w8(ctx->pb, pes_flags); /* flags */
ctx               860 libavformat/mpegenc.c             avio_w8(ctx->pb, header_len - 3 + stuffing_size);
ctx               863 libavformat/mpegenc.c                 put_timestamp(ctx->pb, (pes_flags & 0x40) ? 0x03 : 0x02, pts);
ctx               865 libavformat/mpegenc.c                 put_timestamp(ctx->pb, 0x01, dts);
ctx               868 libavformat/mpegenc.c                 avio_w8(ctx->pb, 0x10); /* flags */
ctx               872 libavformat/mpegenc.c                     avio_wb16(ctx->pb, 0x4000 | stream->max_buffer_size / 128);
ctx               874 libavformat/mpegenc.c                     avio_wb16(ctx->pb, 0x6000 | stream->max_buffer_size / 1024);
ctx               879 libavformat/mpegenc.c                     put_timestamp(ctx->pb, 0x03, pts);
ctx               880 libavformat/mpegenc.c                     put_timestamp(ctx->pb, 0x01, dts);
ctx               882 libavformat/mpegenc.c                     put_timestamp(ctx->pb, 0x02, pts);
ctx               885 libavformat/mpegenc.c                 avio_w8(ctx->pb, 0x0f);
ctx               892 libavformat/mpegenc.c             avio_w8(ctx->pb, 0xff);
ctx               895 libavformat/mpegenc.c                 avio_w8(ctx->pb, 0xff);
ctx               899 libavformat/mpegenc.c             avio_w8(ctx->pb, id);
ctx               902 libavformat/mpegenc.c                 avio_w8(ctx->pb, 7);
ctx               903 libavformat/mpegenc.c                 avio_wb16(ctx->pb, 4); /* skip 3 header bytes */
ctx               904 libavformat/mpegenc.c                 avio_w8(ctx->pb, stream->lpcm_header[0]);
ctx               905 libavformat/mpegenc.c                 avio_w8(ctx->pb, stream->lpcm_header[1]);
ctx               906 libavformat/mpegenc.c                 avio_w8(ctx->pb, stream->lpcm_header[2]);
ctx               909 libavformat/mpegenc.c                 avio_w8(ctx->pb, nb_frames);
ctx               910 libavformat/mpegenc.c                 avio_wb16(ctx->pb, trailer_size + 1);
ctx               916 libavformat/mpegenc.c         av_fifo_generic_read(stream->fifo, ctx->pb,
ctx               926 libavformat/mpegenc.c         put_padding_packet(ctx, ctx->pb, pad_packet_bytes);
ctx               929 libavformat/mpegenc.c         avio_w8(ctx->pb, 0x00);
ctx               931 libavformat/mpegenc.c     avio_write_marker(ctx->pb, AV_NOPTS_VALUE, AVIO_DATA_MARKER_FLUSH_POINT);
ctx               944 libavformat/mpegenc.c static void put_vcd_padding_sector(AVFormatContext *ctx)
ctx               952 libavformat/mpegenc.c     MpegMuxContext *s = ctx->priv_data;
ctx               956 libavformat/mpegenc.c         avio_w8(ctx->pb, 0);
ctx               960 libavformat/mpegenc.c     avio_write_marker(ctx->pb, AV_NOPTS_VALUE, AVIO_DATA_MARKER_FLUSH_POINT);
ctx               969 libavformat/mpegenc.c static int remove_decoded_packets(AVFormatContext *ctx, int64_t scr)
ctx               973 libavformat/mpegenc.c     for (i = 0; i < ctx->nb_streams; i++) {
ctx               974 libavformat/mpegenc.c         AVStream *st = ctx->streams[i];
ctx               982 libavformat/mpegenc.c                 av_log(ctx, AV_LOG_ERROR,
ctx               996 libavformat/mpegenc.c static int output_packet(AVFormatContext *ctx, int flush)
ctx               998 libavformat/mpegenc.c     MpegMuxContext *s = ctx->priv_data;
ctx              1008 libavformat/mpegenc.c     const int64_t max_delay = av_rescale(ctx->max_delay, 90000, AV_TIME_BASE);
ctx              1011 libavformat/mpegenc.c     for (i = 0; i < ctx->nb_streams; i++) {
ctx              1012 libavformat/mpegenc.c         AVStream *st = ctx->streams[i];
ctx              1047 libavformat/mpegenc.c         for (i = 0; i < ctx->nb_streams; i++) {
ctx              1048 libavformat/mpegenc.c             AVStream *st = ctx->streams[i];
ctx              1057 libavformat/mpegenc.c             av_log(ctx, AV_LOG_TRACE, "bumping scr, scr:%f, dts:%f\n",
ctx              1061 libavformat/mpegenc.c                 av_log(ctx, AV_LOG_ERROR,
ctx              1066 libavformat/mpegenc.c             if (remove_decoded_packets(ctx, scr) < 0)
ctx              1069 libavformat/mpegenc.c             av_log(ctx, AV_LOG_ERROR,
ctx              1081 libavformat/mpegenc.c     st     = ctx->streams[best_i];
ctx              1097 libavformat/mpegenc.c         av_log(ctx, AV_LOG_TRACE, "dts:%f pts:%f scr:%f stream:%d\n",
ctx              1101 libavformat/mpegenc.c         es_size = flush_packet(ctx, best_i, timestamp_packet->pts,
ctx              1105 libavformat/mpegenc.c         es_size = flush_packet(ctx, best_i, AV_NOPTS_VALUE, AV_NOPTS_VALUE, scr,
ctx              1115 libavformat/mpegenc.c         while ((vcd_pad_bytes = get_vcd_padding_size(ctx, stream->premux_packet->pts)) >= s->packet_size) {
ctx              1116 libavformat/mpegenc.c             put_vcd_padding_sector(ctx);
ctx              1136 libavformat/mpegenc.c     if (remove_decoded_packets(ctx, s->last_scr) < 0)
ctx              1142 libavformat/mpegenc.c static int mpeg_mux_write_packet(AVFormatContext *ctx, AVPacket *pkt)
ctx              1147 libavformat/mpegenc.c     MpegMuxContext *s = ctx->priv_data;
ctx              1148 libavformat/mpegenc.c     AVStream *st      = ctx->streams[stream_index];
ctx              1162 libavformat/mpegenc.c         if (dts == AV_NOPTS_VALUE || (dts < preload && ctx->avoid_negative_ts) || s->is_dvd) {
ctx              1171 libavformat/mpegenc.c         av_log(ctx, AV_LOG_DEBUG, "First SCR: %"PRId64" First DTS: %"PRId64"\n", s->last_scr, dts + preload);
ctx              1177 libavformat/mpegenc.c     av_log(ctx, AV_LOG_TRACE, "dts:%f pts:%f flags:%d stream:%d nopts:%d\n",
ctx              1191 libavformat/mpegenc.c             av_log(ctx, AV_LOG_ERROR, "Invalid packet size %d\n", size);
ctx              1224 libavformat/mpegenc.c         int ret = output_packet(ctx, 0);
ctx              1230 libavformat/mpegenc.c static int mpeg_mux_end(AVFormatContext *ctx)
ctx              1236 libavformat/mpegenc.c         int ret = output_packet(ctx, 1);
ctx              1248 libavformat/mpegenc.c     for (i = 0; i < ctx->nb_streams; i++) {
ctx              1249 libavformat/mpegenc.c         stream = ctx->streams[i]->priv_data;
ctx              1256 libavformat/mpegenc.c static void mpeg_mux_deinit(AVFormatContext *ctx)
ctx              1258 libavformat/mpegenc.c     for (int i = 0; i < ctx->nb_streams; i++) {
ctx              1259 libavformat/mpegenc.c         StreamInfo *stream = ctx->streams[i]->priv_data;
ctx               826 libavformat/mpegtsenc.c     AVFormatContext *ctx = s->opaque;
ctx               827 libavformat/mpegtsenc.c     write_packet(ctx, packet);
ctx                74 libavformat/msnwc_tcp.c static int msnwc_tcp_read_header(AVFormatContext *ctx)
ctx                76 libavformat/msnwc_tcp.c     AVIOContext *pb = ctx->pb;
ctx                80 libavformat/msnwc_tcp.c     st = avformat_new_stream(ctx, NULL);
ctx                96 libavformat/msnwc_tcp.c         av_log(ctx, AV_LOG_ERROR, "Could not find valid start.\n");
ctx               103 libavformat/msnwc_tcp.c static int msnwc_tcp_read_packet(AVFormatContext *ctx, AVPacket *pkt)
ctx               105 libavformat/msnwc_tcp.c     AVIOContext *pb = ctx->pb;
ctx               328 libavformat/mxfdec.c static void mxf_free_metadataset(MXFMetadataSet **ctx, int freectx)
ctx               331 libavformat/mxfdec.c     switch ((*ctx)->type) {
ctx               333 libavformat/mxfdec.c         av_freep(&((MXFDescriptor *)*ctx)->extradata);
ctx               336 libavformat/mxfdec.c         av_freep(&((MXFDescriptor *)*ctx)->sub_descriptors_refs);
ctx               339 libavformat/mxfdec.c         av_freep(&((MXFSequence *)*ctx)->structural_components_refs);
ctx               342 libavformat/mxfdec.c         av_freep(&((MXFEssenceGroup *)*ctx)->structural_components_refs);
ctx               346 libavformat/mxfdec.c         av_freep(&((MXFPackage *)*ctx)->tracks_refs);
ctx               347 libavformat/mxfdec.c         av_freep(&((MXFPackage *)*ctx)->name);
ctx               348 libavformat/mxfdec.c         av_freep(&((MXFPackage *)*ctx)->comment_refs);
ctx               351 libavformat/mxfdec.c         av_freep(&((MXFTaggedValue *)*ctx)->name);
ctx               352 libavformat/mxfdec.c         av_freep(&((MXFTaggedValue *)*ctx)->value);
ctx               355 libavformat/mxfdec.c         av_freep(&((MXFTrack *)*ctx)->name);
ctx               358 libavformat/mxfdec.c         seg = (MXFIndexTableSegment *)*ctx;
ctx               366 libavformat/mxfdec.c         av_freep(ctx);
ctx              2713 libavformat/mxfdec.c static int mxf_metadataset_init(MXFMetadataSet *ctx, enum MXFMetadataSetType type)
ctx              2718 libavformat/mxfdec.c         ((MXFDescriptor*)ctx)->pix_fmt = AV_PIX_FMT_NONE;
ctx              2719 libavformat/mxfdec.c         ((MXFDescriptor*)ctx)->duration = AV_NOPTS_VALUE;
ctx              2730 libavformat/mxfdec.c     MXFMetadataSet *ctx = ctx_size ? av_mallocz(ctx_size) : mxf;
ctx              2733 libavformat/mxfdec.c     if (!ctx)
ctx              2735 libavformat/mxfdec.c     mxf_metadataset_init(ctx, type);
ctx              2760 libavformat/mxfdec.c             avio_read(pb, ctx->uid, 16);
ctx              2761 libavformat/mxfdec.c         } else if ((ret = read_child(ctx, pb, tag, size, uid, -1)) < 0) {
ctx              2763 libavformat/mxfdec.c                 mxf_free_metadataset(&ctx, 1);
ctx              2771 libavformat/mxfdec.c                 ctx->type = type;
ctx              2772 libavformat/mxfdec.c                 mxf_free_metadataset(&ctx, 1);
ctx              2782 libavformat/mxfdec.c     if (ctx_size) ctx->type = type;
ctx              2783 libavformat/mxfdec.c     return ctx_size ? mxf_add_metadata_set(mxf, ctx) : 0;
ctx               334 libavformat/network.c static void print_address_list(void *ctx, const struct addrinfo *addr,
ctx               338 libavformat/network.c     av_log(ctx, AV_LOG_DEBUG, "%s:\n", title);
ctx               343 libavformat/network.c         av_log(ctx, AV_LOG_DEBUG, "Address %s port %s\n", hostbuf, portbuf);
ctx               581 libavformat/network.c void ff_log_net_error(void *ctx, int level, const char* prefix)
ctx               585 libavformat/network.c     av_log(ctx, level, "%s: %s\n", prefix, errbuf);
ctx               310 libavformat/network.h void ff_log_net_error(void *ctx, int level, const char* prefix);
ctx               154 libavformat/nuv.c     NUVContext *ctx = s->priv_data;
ctx               196 libavformat/nuv.c         ctx->v_id = vst->index;
ctx               215 libavformat/nuv.c         ctx->v_id = -1;
ctx               221 libavformat/nuv.c         ctx->a_id = ast->index;
ctx               233 libavformat/nuv.c         ctx->a_id = -1;
ctx               238 libavformat/nuv.c     ctx->rtjpg_video = vst && vst->codecpar->codec_id == AV_CODEC_ID_NUV;
ctx               247 libavformat/nuv.c     NUVContext *ctx = s->priv_data;
ctx               254 libavformat/nuv.c         int copyhdrsize = ctx->rtjpg_video ? HDRSIZE : 0;
ctx               266 libavformat/nuv.c             if (!ctx->rtjpg_video) {
ctx               271 libavformat/nuv.c             if (ctx->v_id < 0) {
ctx               283 libavformat/nuv.c             pkt->stream_index = ctx->v_id;
ctx               293 libavformat/nuv.c             if (ctx->a_id < 0) {
ctx               302 libavformat/nuv.c             pkt->stream_index = ctx->a_id;
ctx               342 libavformat/nuv.c     NUVContext *ctx = s->priv_data;
ctx               366 libavformat/nuv.c                     idx = ctx->v_id;
ctx               369 libavformat/nuv.c                     idx = ctx->a_id;
ctx               145 libavformat/oggparsetheora.c static uint64_t theora_gptopts(AVFormatContext *ctx, int idx, uint64_t gp,
ctx               148 libavformat/oggparsetheora.c     struct ogg *ogg       = ctx->priv_data;
ctx               165 libavformat/options.c enum AVDurationEstimationMethod av_fmt_ctx_get_duration_estimation_method(const AVFormatContext* ctx)
ctx               167 libavformat/options.c     return ctx->duration_estimation_method;
ctx               112 libavformat/pp_bnk.c     PPBnkCtx *ctx = s->priv_data;
ctx               134 libavformat/pp_bnk.c     ctx->track_count = hdr.track_count;
ctx               136 libavformat/pp_bnk.c     if (!(ctx->tracks = av_malloc_array(hdr.track_count, sizeof(PPBnkCtxTrack))))
ctx               142 libavformat/pp_bnk.c         PPBnkCtxTrack *trk = ctx->tracks + i;
ctx               152 libavformat/pp_bnk.c             ctx->track_count = i;
ctx               181 libavformat/pp_bnk.c             ctx->track_count = i + 1;
ctx               184 libavformat/pp_bnk.c                    i, ctx->track_count);
ctx               192 libavformat/pp_bnk.c     if (ctx->track_count == 0) {
ctx               198 libavformat/pp_bnk.c     for (int i = 0; i < ctx->track_count; i++) {
ctx               218 libavformat/pp_bnk.c         st->duration                = ctx->tracks[i].data_size * 2;
ctx               224 libavformat/pp_bnk.c     av_freep(&ctx->tracks);
ctx               230 libavformat/pp_bnk.c     PPBnkCtx *ctx = s->priv_data;
ctx               236 libavformat/pp_bnk.c     for (int i = 0; i < ctx->track_count; i++, ctx->current_track++)
ctx               242 libavformat/pp_bnk.c         ctx->current_track %= ctx->track_count;
ctx               244 libavformat/pp_bnk.c         trk = ctx->tracks + ctx->current_track;
ctx               266 libavformat/pp_bnk.c         pkt->stream_index   = ctx->current_track++;
ctx               277 libavformat/pp_bnk.c     PPBnkCtx *ctx = s->priv_data;
ctx               279 libavformat/pp_bnk.c     av_freep(&ctx->tracks);
ctx                37 libavformat/rawvideodec.c static int rawvideo_read_header(AVFormatContext *ctx)
ctx                39 libavformat/rawvideodec.c     RawVideoDemuxerContext *s = ctx->priv_data;
ctx                44 libavformat/rawvideodec.c     st = avformat_new_stream(ctx, NULL);
ctx                50 libavformat/rawvideodec.c     st->codecpar->codec_id = ctx->iformat->raw_codec_id;
ctx                53 libavformat/rawvideodec.c         av_log(ctx, AV_LOG_ERROR, "No such pixel format: %s.\n",
ctx                66 libavformat/rawvideodec.c     ctx->packet_size = packet_size;
ctx                67 libavformat/rawvideodec.c     st->codecpar->bit_rate = av_rescale_q(ctx->packet_size,
ctx               294 libavformat/rdt.c rdt_parse_packet (AVFormatContext *ctx, PayloadContext *rdt, AVStream *st,
ctx                69 libavformat/rmenc.c static int rv10_write_header(AVFormatContext *ctx,
ctx                72 libavformat/rmenc.c     RMMuxContext *rm = ctx->priv_data;
ctx                73 libavformat/rmenc.c     AVIOContext *s = ctx->pb;
ctx                85 libavformat/rmenc.c     avio_wb32(s,4 + ctx->nb_streams); /* num headers */
ctx                95 libavformat/rmenc.c     for(i=0;i<ctx->nb_streams;i++) {
ctx               122 libavformat/rmenc.c     avio_wb16(s, ctx->nb_streams);    /* num streams */
ctx               133 libavformat/rmenc.c         tag = av_dict_get(ctx->metadata, ff_rm_metadata[i], NULL, 0);
ctx               139 libavformat/rmenc.c         tag = av_dict_get(ctx->metadata, ff_rm_metadata[i], NULL, 0);
ctx               143 libavformat/rmenc.c     for(i=0;i<ctx->nb_streams;i++) {
ctx               237 libavformat/rmenc.c                 av_log(ctx, AV_LOG_ERROR, "Invalid codec tag\n");
ctx               293 libavformat/rmenc.c static void write_packet_header(AVFormatContext *ctx, StreamInfo *stream,
ctx               297 libavformat/rmenc.c     AVIOContext *s = ctx->pb;
ctx               186 libavformat/rtmpcrypt.c     struct AVXTEA ctx;
ctx               188 libavformat/rtmpcrypt.c     av_xtea_le_init(&ctx, rtmpe8_keys[key_id]);
ctx               189 libavformat/rtmpcrypt.c     av_xtea_le_crypt(&ctx, out, in, 1, NULL, 0);
ctx               194 libavformat/rtmpcrypt.c     struct AVBlowfish ctx;
ctx               200 libavformat/rtmpcrypt.c     av_blowfish_init(&ctx, rtmpe9_keys[key_id], 24);
ctx               201 libavformat/rtmpcrypt.c     av_blowfish_crypt_ecb(&ctx, &xl, &xr, 0);
ctx               157 libavformat/rtmpdh.c     BN_CTX *ctx = BN_CTX_new();
ctx               158 libavformat/rtmpdh.c     if (!ctx)
ctx               160 libavformat/rtmpdh.c     if (!BN_mod_exp(bn, y, q, p, ctx)) {
ctx               161 libavformat/rtmpdh.c         BN_CTX_free(ctx);
ctx               164 libavformat/rtmpdh.c     BN_CTX_free(ctx);
ctx               593 libavformat/rtmppkt.c static void amf_tag_contents(void *ctx, const uint8_t *data,
ctx               605 libavformat/rtmppkt.c         av_log(ctx, AV_LOG_DEBUG, " number %g\n", av_int2double(AV_RB64(data)));
ctx               608 libavformat/rtmppkt.c         av_log(ctx, AV_LOG_DEBUG, " bool %d\n", *data);
ctx               620 libavformat/rtmppkt.c         av_log(ctx, AV_LOG_DEBUG, " string '%s'\n", buf);
ctx               623 libavformat/rtmppkt.c         av_log(ctx, AV_LOG_DEBUG, " NULL\n");
ctx               630 libavformat/rtmppkt.c         av_log(ctx, AV_LOG_DEBUG, " {\n");
ctx               637 libavformat/rtmppkt.c                     av_log(ctx, AV_LOG_DEBUG, " }\n");
ctx               646 libavformat/rtmppkt.c                 av_log(ctx, AV_LOG_DEBUG, "  %s: ", buf);
ctx               648 libavformat/rtmppkt.c             amf_tag_contents(ctx, data, data_end);
ctx               656 libavformat/rtmppkt.c         av_log(ctx, AV_LOG_DEBUG, " }\n");
ctx               663 libavformat/rtmppkt.c void ff_rtmp_packet_dump(void *ctx, RTMPPacket *p)
ctx               665 libavformat/rtmppkt.c     av_log(ctx, AV_LOG_DEBUG, "RTMP packet type '%s'(%d) for channel %d, timestamp %d, extra field %d size %d\n",
ctx               671 libavformat/rtmppkt.c             amf_tag_contents(ctx, src, src_end);
ctx               678 libavformat/rtmppkt.c         av_log(ctx, AV_LOG_DEBUG, "Window acknowledgement size = %d\n", AV_RB32(p->data));
ctx               680 libavformat/rtmppkt.c         av_log(ctx, AV_LOG_DEBUG, "Set Peer BW = %d\n", AV_RB32(p->data));
ctx               684 libavformat/rtmppkt.c             av_log(ctx, AV_LOG_DEBUG, " %02X", p->data[i]);
ctx               685 libavformat/rtmppkt.c         av_log(ctx, AV_LOG_DEBUG, "\n");
ctx               160 libavformat/rtmppkt.h void ff_rtmp_packet_dump(void *ctx, RTMPPacket *p);
ctx               572 libavformat/rtpdec.c void ff_rtp_parse_set_dynamic_protocol(RTPDemuxContext *s, PayloadContext *ctx,
ctx               575 libavformat/rtpdec.c     s->dynamic_protocol_context = ctx;
ctx                45 libavformat/rtpdec.h void ff_rtp_parse_set_dynamic_protocol(RTPDemuxContext *s, PayloadContext *ctx,
ctx               108 libavformat/rtpdec.h typedef int (*DynamicPayloadPacketHandlerProc)(AVFormatContext *ctx,
ctx                40 libavformat/rtpdec_ac3.c static int ac3_handle_packet(AVFormatContext *ctx, PayloadContext *data,
ctx                50 libavformat/rtpdec_ac3.c         av_log(ctx, AV_LOG_ERROR, "Invalid %d bytes packet\n", len);
ctx                62 libavformat/rtpdec_ac3.c             av_log(ctx, AV_LOG_ERROR, "Invalid AC3 packet data\n");
ctx                66 libavformat/rtpdec_ac3.c             av_log(ctx, AV_LOG_ERROR, "Out of memory.\n");
ctx                90 libavformat/rtpdec_ac3.c             av_log(ctx, AV_LOG_WARNING,
ctx                97 libavformat/rtpdec_ac3.c             av_log(ctx, AV_LOG_ERROR, "Invalid packet received\n");
ctx               110 libavformat/rtpdec_ac3.c         av_log(ctx, AV_LOG_ERROR, "Missed %d packets\n",
ctx               117 libavformat/rtpdec_ac3.c         av_log(ctx, AV_LOG_ERROR,
ctx                47 libavformat/rtpdec_amr.c static int amr_handle_packet(AVFormatContext *ctx, PayloadContext *data,
ctx                63 libavformat/rtpdec_amr.c         av_log(ctx, AV_LOG_ERROR, "Bad codec ID\n");
ctx                68 libavformat/rtpdec_amr.c         av_log(ctx, AV_LOG_ERROR, "Only mono AMR is supported\n");
ctx                89 libavformat/rtpdec_amr.c         av_log(ctx, AV_LOG_ERROR, "No speech data found\n");
ctx                97 libavformat/rtpdec_amr.c         av_log(ctx, AV_LOG_ERROR, "Out of memory\n");
ctx               109 libavformat/rtpdec_amr.c             av_log(ctx, AV_LOG_WARNING, "Too little speech data in the RTP packet\n");
ctx               126 libavformat/rtpdec_amr.c         av_log(ctx, AV_LOG_WARNING, "Too much speech data in the RTP packet?\n");
ctx                72 libavformat/rtpdec_dv.c static av_cold int dv_parse_sdp_line(AVFormatContext *ctx, int st_index,
ctx                81 libavformat/rtpdec_dv.c     current_stream = ctx->streams[st_index];
ctx                84 libavformat/rtpdec_dv.c         return ff_parse_fmtp(ctx, current_stream, dv_data, sdp_line_ptr,
ctx                91 libavformat/rtpdec_dv.c static int dv_handle_packet(AVFormatContext *ctx, PayloadContext *rtp_dv_ctx,
ctx               105 libavformat/rtpdec_dv.c         av_log(ctx, AV_LOG_ERROR, "Too short RTP/DV packet, got %d bytes\n", len);
ctx                34 libavformat/rtpdec_formats.h int ff_h263_handle_packet(AVFormatContext *ctx, PayloadContext *data,
ctx                41 libavformat/rtpdec_formats.h int ff_h264_handle_aggregated_packet(AVFormatContext *ctx, PayloadContext *data, AVPacket *pkt,
ctx                46 libavformat/rtpdec_h261.c static int h261_handle_packet(AVFormatContext *ctx, PayloadContext *rtp_h261_ctx,
ctx                62 libavformat/rtpdec_h261.c         av_log(ctx, AV_LOG_ERROR, "Too short RTP/H.261 packet, got %d bytes\n", len);
ctx                27 libavformat/rtpdec_h263.c int ff_h263_handle_packet(AVFormatContext *ctx, PayloadContext *data,
ctx                36 libavformat/rtpdec_h263.c         av_log(ctx, AV_LOG_ERROR, "Too short H.263 RTP packet\n");
ctx                72 libavformat/rtpdec_h263.c         av_log(ctx, AV_LOG_ERROR, "Too short H.263 RTP packet\n");
ctx                77 libavformat/rtpdec_h263.c         av_log(ctx, AV_LOG_ERROR, "Out of memory\n");
ctx                48 libavformat/rtpdec_h263_rfc2190.c static int h263_handle_packet(AVFormatContext *ctx, PayloadContext *data,
ctx                58 libavformat/rtpdec_h263_rfc2190.c         return ff_h263_handle_packet(ctx, data, st, pkt, timestamp, buf, len,
ctx                68 libavformat/rtpdec_h263_rfc2190.c         av_log(ctx, AV_LOG_ERROR, "Too short H.263 RTP packet: %d\n", len);
ctx                83 libavformat/rtpdec_h263_rfc2190.c             av_log(ctx, AV_LOG_ERROR,
ctx                94 libavformat/rtpdec_h263_rfc2190.c             av_log(ctx, AV_LOG_ERROR,
ctx               109 libavformat/rtpdec_h263_rfc2190.c             av_log(ctx, AV_LOG_WARNING,
ctx               113 libavformat/rtpdec_h263_rfc2190.c             return ff_h263_handle_packet(ctx, data, st, pkt, timestamp, buf,
ctx               206 libavformat/rtpdec_h264.c int ff_h264_handle_aggregated_packet(AVFormatContext *ctx, PayloadContext *data, AVPacket *pkt,
ctx               242 libavformat/rtpdec_h264.c                 av_log(ctx, AV_LOG_ERROR,
ctx               285 libavformat/rtpdec_h264.c static int h264_handle_packet_fu_a(AVFormatContext *ctx, PayloadContext *data, AVPacket *pkt,
ctx               292 libavformat/rtpdec_h264.c         av_log(ctx, AV_LOG_ERROR, "Too short data for FU-A H.264 RTP packet\n");
ctx               312 libavformat/rtpdec_h264.c static int h264_handle_packet(AVFormatContext *ctx, PayloadContext *data,
ctx               322 libavformat/rtpdec_h264.c         av_log(ctx, AV_LOG_ERROR, "Empty H.264 RTP packet\n");
ctx               346 libavformat/rtpdec_h264.c         result = ff_h264_handle_aggregated_packet(ctx, data, pkt, buf, len, 0,
ctx               354 libavformat/rtpdec_h264.c         avpriv_report_missing_feature(ctx, "RTP H.264 NAL unit type %d", type);
ctx               359 libavformat/rtpdec_h264.c         result = h264_handle_packet_fu_a(ctx, data, pkt, buf, len,
ctx               366 libavformat/rtpdec_h264.c         av_log(ctx, AV_LOG_ERROR, "Undefined type (%d)\n", type);
ctx               131 libavformat/rtpdec_hevc.c static av_cold int hevc_parse_sdp_line(AVFormatContext *ctx, int st_index,
ctx               141 libavformat/rtpdec_hevc.c     current_stream = ctx->streams[st_index];
ctx               147 libavformat/rtpdec_hevc.c         int ret = ff_parse_fmtp(ctx, current_stream, hevc_data, sdp_line_ptr,
ctx               179 libavformat/rtpdec_hevc.c static int hevc_handle_packet(AVFormatContext *ctx, PayloadContext *rtp_hevc_ctx,
ctx               192 libavformat/rtpdec_hevc.c         av_log(ctx, AV_LOG_ERROR, "Too short RTP/HEVC packet, got %d bytes\n", len);
ctx               217 libavformat/rtpdec_hevc.c         avpriv_report_missing_feature(ctx, "Multi-layer HEVC coding");
ctx               223 libavformat/rtpdec_hevc.c         av_log(ctx, AV_LOG_ERROR, "Illegal temporal ID in RTP/HEVC packet\n");
ctx               229 libavformat/rtpdec_hevc.c         av_log(ctx, AV_LOG_ERROR, "Unsupported (HEVC) NAL type (%d)\n", nal_type);
ctx               265 libavformat/rtpdec_hevc.c         res = ff_h264_handle_aggregated_packet(ctx, rtp_hevc_ctx, pkt, buf, len,
ctx               304 libavformat/rtpdec_hevc.c         av_log(ctx, AV_LOG_TRACE, " FU type %d with %d bytes\n", fu_type, len);
ctx               309 libavformat/rtpdec_hevc.c                 av_log(ctx, AV_LOG_ERROR,
ctx               319 libavformat/rtpdec_hevc.c             av_log(ctx, AV_LOG_ERROR, "Illegal combination of S and E bit in RTP/HEVC packet\n");
ctx               333 libavformat/rtpdec_hevc.c         avpriv_report_missing_feature(ctx, "PACI packets for RTP/HEVC");
ctx               214 libavformat/rtpdec_jpeg.c static int jpeg_parse_packet(AVFormatContext *ctx, PayloadContext *jpeg,
ctx               226 libavformat/rtpdec_jpeg.c         av_log(ctx, AV_LOG_ERROR, "Too short RTP/JPEG packet.\n");
ctx               241 libavformat/rtpdec_jpeg.c             av_log(ctx, AV_LOG_ERROR, "Too short RTP/JPEG packet.\n");
ctx               250 libavformat/rtpdec_jpeg.c         avpriv_report_missing_feature(ctx, "RTP/JPEG type %"PRIu8, type);
ctx               263 libavformat/rtpdec_jpeg.c                 av_log(ctx, AV_LOG_ERROR, "Too short RTP/JPEG packet.\n");
ctx               274 libavformat/rtpdec_jpeg.c                 av_log(ctx, AV_LOG_WARNING, "Only 8-bit precision is supported.\n");
ctx               278 libavformat/rtpdec_jpeg.c                     av_log(ctx, AV_LOG_ERROR, "Too short RTP/JPEG packet.\n");
ctx               288 libavformat/rtpdec_jpeg.c                         av_log(ctx, AV_LOG_WARNING,
ctx               298 libavformat/rtpdec_jpeg.c                     av_log(ctx, AV_LOG_ERROR,
ctx               303 libavformat/rtpdec_jpeg.c                     av_log(ctx, AV_LOG_ERROR,
ctx               312 libavformat/rtpdec_jpeg.c                 av_log(ctx, AV_LOG_ERROR, "Reserved q value %d\n", q);
ctx               340 libavformat/rtpdec_jpeg.c         av_log(ctx, AV_LOG_ERROR,
ctx               349 libavformat/rtpdec_jpeg.c         av_log(ctx, AV_LOG_ERROR, "RTP timestamps don't match.\n");
ctx               354 libavformat/rtpdec_jpeg.c         av_log(ctx, AV_LOG_ERROR,
ctx               371 libavformat/rtpdec_jpeg.c             av_log(ctx, AV_LOG_ERROR,
ctx                41 libavformat/rtpdec_latm.c static int latm_parse_packet(AVFormatContext *ctx, PayloadContext *data,
ctx                68 libavformat/rtpdec_latm.c         av_log(ctx, AV_LOG_ERROR, "No data available yet\n");
ctx                80 libavformat/rtpdec_latm.c         av_log(ctx, AV_LOG_ERROR, "Malformed LATM packet\n");
ctx                43 libavformat/rtpdec_mpa_robust.c static int mpa_robust_parse_rtp_header(AVFormatContext *ctx,
ctx                50 libavformat/rtpdec_mpa_robust.c         av_log(ctx, AV_LOG_ERROR, "Invalid %d bytes packet\n", len);
ctx                66 libavformat/rtpdec_mpa_robust.c static int mpa_robust_parse_packet(AVFormatContext *ctx, PayloadContext *data,
ctx                78 libavformat/rtpdec_mpa_robust.c         header_size = mpa_robust_parse_rtp_header(ctx, buf, len, &adu_size,
ctx                89 libavformat/rtpdec_mpa_robust.c             av_log(ctx, AV_LOG_ERROR, "Invalid frame\n");
ctx                94 libavformat/rtpdec_mpa_robust.c             av_log(ctx, AV_LOG_ERROR, "Out of memory.\n");
ctx               112 libavformat/rtpdec_mpa_robust.c     header_size = mpa_robust_parse_rtp_header(ctx, buf, len, &adu_size,
ctx               124 libavformat/rtpdec_mpa_robust.c             av_log(ctx, AV_LOG_ERROR, "Out of memory.\n");
ctx               138 libavformat/rtpdec_mpa_robust.c                 av_log(ctx, AV_LOG_ERROR, "Out of memory.\n");
ctx               165 libavformat/rtpdec_mpa_robust.c         av_log(ctx, AV_LOG_WARNING,
ctx               172 libavformat/rtpdec_mpa_robust.c         av_log(ctx, AV_LOG_ERROR, "Invalid packet received\n");
ctx               184 libavformat/rtpdec_mpa_robust.c         av_log(ctx, AV_LOG_ERROR,
ctx                26 libavformat/rtpdec_mpeg12.c static int mpeg_parse_packet(AVFormatContext *ctx, PayloadContext *data,
ctx               173 libavformat/rtpdec_mpeg4.c static int aac_parse_packet(AVFormatContext *ctx, PayloadContext *data,
ctx               183 libavformat/rtpdec_mpeg4.c             av_log(ctx, AV_LOG_ERROR, "Invalid parser state\n");
ctx               187 libavformat/rtpdec_mpeg4.c             av_log(ctx, AV_LOG_ERROR, "Invalid AU size\n");
ctx               191 libavformat/rtpdec_mpeg4.c             av_log(ctx, AV_LOG_ERROR, "Out of memory\n");
ctx               208 libavformat/rtpdec_mpeg4.c         av_log(ctx, AV_LOG_ERROR, "Error parsing AU headers\n");
ctx               219 libavformat/rtpdec_mpeg4.c                 av_log(ctx, AV_LOG_ERROR, "Invalid AU size\n");
ctx               232 libavformat/rtpdec_mpeg4.c             av_log(ctx, AV_LOG_ERROR, "Invalid packet received\n");
ctx               244 libavformat/rtpdec_mpeg4.c             av_log(ctx, AV_LOG_ERROR, "Missed some packets, discarding frame\n");
ctx               251 libavformat/rtpdec_mpeg4.c             av_log(ctx, AV_LOG_ERROR, "Out of memory\n");
ctx               262 libavformat/rtpdec_mpeg4.c         av_log(ctx, AV_LOG_ERROR, "First AU larger than packet size\n");
ctx               266 libavformat/rtpdec_mpeg4.c         av_log(ctx, AV_LOG_ERROR, "Out of memory\n");
ctx                41 libavformat/rtpdec_mpegts.c static av_cold int mpegts_init(AVFormatContext *ctx, int st_index,
ctx                44 libavformat/rtpdec_mpegts.c     data->ts = avpriv_mpegts_parse_open(ctx);
ctx                50 libavformat/rtpdec_mpegts.c static int mpegts_handle_packet(AVFormatContext *ctx, PayloadContext *data,
ctx                50 libavformat/rtpdec_qcelp.c static int return_stored_frame(AVFormatContext *ctx, PayloadContext *data,
ctx                54 libavformat/rtpdec_qcelp.c static int store_packet(AVFormatContext *ctx, PayloadContext *data,
ctx                69 libavformat/rtpdec_qcelp.c         av_log(ctx, AV_LOG_ERROR, "Invalid interleave size %d\n",
ctx                74 libavformat/rtpdec_qcelp.c         av_log(ctx, AV_LOG_ERROR, "Invalid interleave index %d/%d\n",
ctx               108 libavformat/rtpdec_qcelp.c             return return_stored_frame(ctx, data, st, pkt, timestamp, buf, len);
ctx               151 libavformat/rtpdec_qcelp.c static int return_stored_frame(AVFormatContext *ctx, PayloadContext *data,
ctx               160 libavformat/rtpdec_qcelp.c         ret = store_packet(ctx, data, st, pkt, timestamp, data->next_data,
ctx               201 libavformat/rtpdec_qcelp.c static int qcelp_parse_packet(AVFormatContext *ctx, PayloadContext *data,
ctx               207 libavformat/rtpdec_qcelp.c         return store_packet(ctx, data, st, pkt, timestamp, buf, len);
ctx               209 libavformat/rtpdec_qcelp.c         return return_stored_frame(ctx, data, st, pkt, timestamp, buf, len);
ctx               139 libavformat/rtpdec_rfc4175.c static int rfc4175_handle_packet(AVFormatContext *ctx, PayloadContext *data,
ctx               161 libavformat/rtpdec_rfc4175.c             av_log(ctx, AV_LOG_ERROR, "Missed previous RTP Marker\n");
ctx               171 libavformat/rtpdec_rfc4175.c             av_log(ctx, AV_LOG_ERROR, "Out of memory.\n");
ctx                92 libavformat/rtpdec_vc2hq.c static int vc2hq_handle_frame_fragment(AVFormatContext *ctx, PayloadContext *pl_ctx, AVStream *st,
ctx               103 libavformat/rtpdec_vc2hq.c         av_log(ctx, AV_LOG_ERROR, "Too short RTP/VC2hq packet, got %d bytes\n", len);
ctx               112 libavformat/rtpdec_vc2hq.c         av_log(ctx, AV_LOG_WARNING, "Dropping buffered RTP/VC2hq packet fragments - non-continuous picture numbers\n");
ctx               119 libavformat/rtpdec_vc2hq.c             av_log(ctx, AV_LOG_ERROR, "Too short RTP/VC2hq packet, got %d bytes\n", len);
ctx               146 libavformat/rtpdec_vc2hq.c             av_log(ctx, AV_LOG_ERROR, "Too short RTP/VC2hq packet, got %d bytes\n", len);
ctx               176 libavformat/rtpdec_vc2hq.c static int vc2hq_handle_packet(AVFormatContext *ctx, PayloadContext *pl_ctx,
ctx               185 libavformat/rtpdec_vc2hq.c         av_log(ctx, AV_LOG_WARNING, "Dropping buffered RTP/VC2hq packet fragments - non-continuous timestamps\n");
ctx               192 libavformat/rtpdec_vc2hq.c         av_log(ctx, AV_LOG_ERROR, "Too short RTP/VC2hq packet, got %d bytes\n", len);
ctx               211 libavformat/rtpdec_vc2hq.c             res = vc2hq_handle_frame_fragment(ctx, pl_ctx, st, pkt, timestamp, buf, len, flags);
ctx                56 libavformat/rtpdec_vp8.c static int vp8_broken_sequence(AVFormatContext *ctx, PayloadContext *vp8,
ctx                60 libavformat/rtpdec_vp8.c     av_log(ctx, AV_LOG_WARNING, "%s", msg);
ctx                65 libavformat/rtpdec_vp8.c static int vp8_handle_packet(AVFormatContext *ctx, PayloadContext *vp8,
ctx               155 libavformat/rtpdec_vp8.c                 return vp8_broken_sequence(ctx, vp8, "Keyframe missing\n");
ctx               158 libavformat/rtpdec_vp8.c                     return vp8_broken_sequence(ctx, vp8,
ctx               162 libavformat/rtpdec_vp8.c                         return vp8_broken_sequence(ctx, vp8,
ctx               179 libavformat/rtpdec_vp8.c                         return vp8_broken_sequence(ctx, vp8,
ctx               184 libavformat/rtpdec_vp8.c                         return vp8_broken_sequence(ctx, vp8,
ctx               218 libavformat/rtpdec_vp8.c             return vp8_broken_sequence(ctx, vp8,
ctx               224 libavformat/rtpdec_vp8.c                 return vp8_broken_sequence(ctx, vp8,
ctx               230 libavformat/rtpdec_vp8.c                 return vp8_broken_sequence(ctx, vp8,
ctx               237 libavformat/rtpdec_vp8.c         return vp8_broken_sequence(ctx, vp8, "Received no start marker\n");
ctx                34 libavformat/rtpdec_vp9.c static av_cold int vp9_init(AVFormatContext *ctx, int st_index,
ctx                37 libavformat/rtpdec_vp9.c     av_log(ctx, AV_LOG_WARNING,
ctx                43 libavformat/rtpdec_vp9.c static int vp9_handle_packet(AVFormatContext *ctx, PayloadContext *rtp_vp9_ctx,
ctx                62 libavformat/rtpdec_vp9.c         av_log(ctx, AV_LOG_ERROR, "Too short RTP/VP9 packet, got %d bytes\n", len);
ctx                94 libavformat/rtpdec_vp9.c         av_log(ctx, AV_LOG_ERROR, "Invalid combination of B and M marker (%d != %d)\n", last_fragment, rtp_m);
ctx               119 libavformat/rtpdec_vp9.c                 av_log(ctx, AV_LOG_ERROR, "Too short RTP/VP9 packet\n");
ctx               146 libavformat/rtpdec_vp9.c             av_log(ctx, AV_LOG_ERROR, "Too short RTP/VP9 packet\n");
ctx               178 libavformat/rtpdec_vp9.c                 av_log(ctx, AV_LOG_ERROR, "Too short RTP/VP9 packet\n");
ctx               187 libavformat/rtpdec_vp9.c                     av_log(ctx, AV_LOG_ERROR, "Too short RTP/VP9 packet\n");
ctx               227 libavformat/rtpdec_vp9.c             av_log(ctx, AV_LOG_ERROR, "Too short RTP/VP9 packet\n");
ctx               236 libavformat/rtpdec_vp9.c             avpriv_report_missing_feature(ctx, "VP9 scalability structure with multiple layers");
ctx               241 libavformat/rtpdec_vp9.c                 av_log(ctx, AV_LOG_ERROR, "Too short RTP/VP9 packet\n");
ctx               255 libavformat/rtpdec_vp9.c                 av_log(ctx, AV_LOG_ERROR, "Too short RTP/VP9 packet\n");
ctx               264 libavformat/rtpdec_vp9.c                     av_log(ctx, AV_LOG_ERROR, "Too short RTP/VP9 packet\n");
ctx               273 libavformat/rtpdec_vp9.c                     av_log(ctx, AV_LOG_ERROR, "Too short RTP/VP9 packet\n");
ctx               294 libavformat/rtpdec_vp9.c         av_log(ctx, AV_LOG_ERROR, "Too short RTP/VP9 packet\n");
ctx                60 libavformat/rtpdec_xiph.c static int xiph_handle_packet(AVFormatContext *ctx, PayloadContext *data,
ctx                71 libavformat/rtpdec_xiph.c             av_log(ctx, AV_LOG_ERROR, "No more data to return\n");
ctx                77 libavformat/rtpdec_xiph.c             av_log(ctx, AV_LOG_ERROR, "Not enough data to return\n");
ctx                81 libavformat/rtpdec_xiph.c             av_log(ctx, AV_LOG_ERROR, "Out of memory.\n");
ctx                92 libavformat/rtpdec_xiph.c         av_log(ctx, AV_LOG_ERROR, "Invalid %d byte packet\n", len);
ctx               104 libavformat/rtpdec_xiph.c         av_log(ctx, AV_LOG_ERROR,
ctx               111 libavformat/rtpdec_xiph.c         avpriv_report_missing_feature(ctx, "Xiph SDP configuration change");
ctx               116 libavformat/rtpdec_xiph.c         avpriv_report_missing_feature(ctx,
ctx               127 libavformat/rtpdec_xiph.c             av_log(ctx, AV_LOG_ERROR, "Out of memory.\n");
ctx               142 libavformat/rtpdec_xiph.c                     av_log(ctx, AV_LOG_ERROR, "Out of memory.\n");
ctx               175 libavformat/rtpdec_xiph.c             av_log(ctx, AV_LOG_ERROR, "RTP timestamps don't match!\n");
ctx               179 libavformat/rtpdec_xiph.c             av_log(ctx, AV_LOG_WARNING,
ctx               191 libavformat/rtpdec_xiph.c                 av_log(ctx, AV_LOG_ERROR,
ctx                74 libavformat/rtpenc.h #define FF_RTP_FLAG_OPTS(ctx, fieldname) \
ctx                75 libavformat/rtpenc.h     { "rtpflags", "RTP muxer flags", offsetof(ctx, fieldname), AV_OPT_TYPE_FLAGS, {.i64 = 0}, INT_MIN, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM, "rtpflags" }, \
ctx                39 libavformat/rtpenc_h261.c void ff_rtp_send_h261(AVFormatContext *ctx, const uint8_t *frame_buf, int frame_size)
ctx                43 libavformat/rtpenc_h261.c     RTPMuxContext *rtp_ctx = ctx->priv_data;
ctx                79 libavformat/rtpenc_h261.c             av_log(ctx, AV_LOG_WARNING,
ctx                97 libavformat/rtpenc_h261.c         ff_rtp_send_data(ctx, rtp_ctx->buf, RTP_H261_HEADER_SIZE + cur_frame_size, last_packet_of_frame);
ctx                36 libavformat/rtpenc_vc2hq.c static void send_packet(AVFormatContext *ctx, uint8_t parse_code, int info_hdr_size, const uint8_t *buf, int size, int i, int f, int rtp_m)
ctx                38 libavformat/rtpenc_vc2hq.c     RTPMuxContext *rtp_ctx = ctx->priv_data;
ctx                45 libavformat/rtpenc_vc2hq.c     ff_rtp_send_data(ctx, rtp_ctx->buf, RTP_VC2HQ_PL_HEADER_SIZE + info_hdr_size + size, rtp_m);
ctx                48 libavformat/rtpenc_vc2hq.c static void send_picture(AVFormatContext *ctx, const uint8_t *buf, int size, int interlaced)
ctx                50 libavformat/rtpenc_vc2hq.c     RTPMuxContext *rtp_ctx = ctx->priv_data;
ctx                85 libavformat/rtpenc_vc2hq.c     send_packet(ctx, DIRAC_RTP_PCODE_HQ_PIC_FRAGMENT, 12, buf, frag_len, interlaced, second_field, 0);
ctx                97 libavformat/rtpenc_vc2hq.c         send_packet(ctx, DIRAC_RTP_PCODE_HQ_PIC_FRAGMENT, 16, buf, frag_len, interlaced, second_field, size > 0 ? 0 : 1);
ctx               102 libavformat/rtpenc_vc2hq.c void ff_rtp_send_vc2hq(AVFormatContext *ctx, const uint8_t *frame_buf, int frame_size, int interlaced)
ctx               118 libavformat/rtpenc_vc2hq.c             send_packet(ctx, parse_code, 0, unit + DIRAC_DATA_UNIT_HEADER_SIZE, unit_size - DIRAC_DATA_UNIT_HEADER_SIZE, 0, 0, 0);
ctx               122 libavformat/rtpenc_vc2hq.c             send_picture(ctx, unit + DIRAC_DATA_UNIT_HEADER_SIZE, unit_size - DIRAC_DATA_UNIT_HEADER_SIZE, interlaced);
ctx               129 libavformat/rtpenc_vc2hq.c             avpriv_report_missing_feature(ctx, "VC-2 parse code %d", parse_code);
ctx                26 libavformat/rtpenc_vp9.c void ff_rtp_send_vp9(AVFormatContext *ctx, const uint8_t *buf, int size)
ctx                28 libavformat/rtpenc_vp9.c     RTPMuxContext *rtp_ctx = ctx->priv_data;
ctx                46 libavformat/rtpenc_vp9.c         ff_rtp_send_data(ctx, rtp_ctx->buf, len + RTP_VP9_DESC_REQUIRED_SIZE, size == len);
ctx               836 libavformat/sbgdec.c         const char *ctx = sp.cursor;
ctx               837 libavformat/sbgdec.c         const char *ectx = av_x_if_null(memchr(ctx, '\n', sp.end - sp.cursor),
ctx               839 libavformat/sbgdec.c         int lctx = ectx - ctx;
ctx               841 libavformat/sbgdec.c         if (lctx > 0 && ctx[lctx - 1] == '\r')
ctx               844 libavformat/sbgdec.c             ctx = "the end of line";
ctx               845 libavformat/sbgdec.c             lctx = strlen(ctx);
ctx               849 libavformat/sbgdec.c                sp.line_no, sp.err_msg, quote, lctx, ctx, quote);
ctx                78 libavformat/sdsdec.c static int sds_read_header(AVFormatContext *ctx)
ctx                80 libavformat/sdsdec.c     SDSContext *s = ctx->priv_data;
ctx                82 libavformat/sdsdec.c     AVIOContext *pb = ctx->pb;
ctx                85 libavformat/sdsdec.c     st = avformat_new_stream(ctx, NULL);
ctx               122 libavformat/sdsdec.c static int sds_read_packet(AVFormatContext *ctx, AVPacket *pkt)
ctx               124 libavformat/sdsdec.c     SDSContext *s = ctx->priv_data;
ctx               125 libavformat/sdsdec.c     AVIOContext *pb = ctx->pb;
ctx               128 libavformat/segment.c static void print_csv_escaped_str(AVIOContext *ctx, const char *str)
ctx               133 libavformat/segment.c         avio_w8(ctx, '"');
ctx               137 libavformat/segment.c             avio_w8(ctx, '"');
ctx               138 libavformat/segment.c         avio_w8(ctx, *str);
ctx               141 libavformat/segment.c         avio_w8(ctx, '"');
ctx               583 libavformat/segment.c static int open_null_ctx(AVIOContext **ctx)
ctx               589 libavformat/segment.c     *ctx = avio_alloc_context(buf, buf_size, AVIO_FLAG_WRITE, NULL, NULL, NULL, NULL);
ctx               590 libavformat/segment.c     if (!*ctx) {
ctx                51 libavformat/smoothstreamingenc.c     AVFormatContext *ctx;
ctx               121 libavformat/smoothstreamingenc.c                                        &os->ctx->interrupt_callback, &opts, os->ctx->protocol_whitelist, os->ctx->protocol_blacklist, NULL);
ctx               130 libavformat/smoothstreamingenc.c                                  &os->ctx->interrupt_callback, &opts, os->ctx->protocol_whitelist, os->ctx->protocol_blacklist, NULL);
ctx               144 libavformat/smoothstreamingenc.c     AVCodecParameters *par = os->ctx->streams[0]->codecpar;
ctx               176 libavformat/smoothstreamingenc.c         if (os->ctx && os->ctx_inited)
ctx               177 libavformat/smoothstreamingenc.c             av_write_trailer(os->ctx);
ctx               178 libavformat/smoothstreamingenc.c         if (os->ctx && os->ctx->pb)
ctx               179 libavformat/smoothstreamingenc.c             avio_context_free(&os->ctx->pb);
ctx               180 libavformat/smoothstreamingenc.c         avformat_free_context(os->ctx);
ctx               311 libavformat/smoothstreamingenc.c         AVFormatContext *ctx;
ctx               329 libavformat/smoothstreamingenc.c         os->ctx = ctx = avformat_alloc_context();
ctx               330 libavformat/smoothstreamingenc.c         if (!ctx || ff_copy_whiteblacklists(ctx, s) < 0) {
ctx               334 libavformat/smoothstreamingenc.c         ctx->oformat = oformat;
ctx               335 libavformat/smoothstreamingenc.c         ctx->interrupt_callback = s->interrupt_callback;
ctx               337 libavformat/smoothstreamingenc.c         if (!(st = avformat_new_stream(ctx, NULL))) {
ctx               345 libavformat/smoothstreamingenc.c         ctx->pb = avio_alloc_context(os->iobuf, sizeof(os->iobuf), AVIO_FLAG_WRITE, os, NULL, ism_write, ism_seek);
ctx               346 libavformat/smoothstreamingenc.c         if (!ctx->pb) {
ctx               353 libavformat/smoothstreamingenc.c         ret = avformat_write_header(ctx, &opts);
ctx               359 libavformat/smoothstreamingenc.c         avio_flush(ctx->pb);
ctx               528 libavformat/smoothstreamingenc.c         av_write_frame(os->ctx, NULL);
ctx               529 libavformat/smoothstreamingenc.c         avio_flush(os->ctx->pb);
ctx               616 libavformat/smoothstreamingenc.c     return ff_write_chained(os->ctx, 0, pkt, s, 0);
ctx                46 libavformat/smush.c static int smush_read_header(AVFormatContext *ctx)
ctx                48 libavformat/smush.c     SMUSHContext *smush = ctx->priv_data;
ctx                49 libavformat/smush.c     AVIOContext *pb = ctx->pb;
ctx               138 libavformat/smush.c         av_log(ctx, AV_LOG_ERROR, "Wrong magic\n");
ctx               142 libavformat/smush.c     vst = avformat_new_stream(ctx, 0);
ctx               170 libavformat/smush.c         ast = avformat_new_stream(ctx, 0);
ctx               189 libavformat/smush.c static int smush_read_packet(AVFormatContext *ctx, AVPacket *pkt)
ctx               191 libavformat/smush.c     SMUSHContext *smush = ctx->priv_data;
ctx               192 libavformat/smush.c     AVIOContext *pb = ctx->pb;
ctx               112 libavformat/spdifenc.c     IEC61937Context *ctx = s->priv_data;
ctx               115 libavformat/spdifenc.c     ctx->data_type  = IEC61937_AC3 | (bitstream_mode << 8);
ctx               116 libavformat/spdifenc.c     ctx->pkt_offset = AC3_FRAME_SIZE << 2;
ctx               122 libavformat/spdifenc.c     IEC61937Context *ctx = s->priv_data;
ctx               130 libavformat/spdifenc.c     ctx->hd_buf[0] = av_fast_realloc(ctx->hd_buf[0], &ctx->hd_buf_size, ctx->hd_buf_filled + pkt->size);
ctx               131 libavformat/spdifenc.c     if (!ctx->hd_buf[0])
ctx               134 libavformat/spdifenc.c     memcpy(&ctx->hd_buf[0][ctx->hd_buf_filled], pkt->data, pkt->size);
ctx               136 libavformat/spdifenc.c     ctx->hd_buf_filled += pkt->size;
ctx               137 libavformat/spdifenc.c     if (++ctx->hd_buf_count < repeat){
ctx               138 libavformat/spdifenc.c         ctx->pkt_offset = 0;
ctx               141 libavformat/spdifenc.c     ctx->data_type   = IEC61937_EAC3;
ctx               142 libavformat/spdifenc.c     ctx->pkt_offset  = 24576;
ctx               143 libavformat/spdifenc.c     ctx->out_buf     = ctx->hd_buf[0];
ctx               144 libavformat/spdifenc.c     ctx->out_bytes   = ctx->hd_buf_filled;
ctx               145 libavformat/spdifenc.c     ctx->length_code = ctx->hd_buf_filled;
ctx               147 libavformat/spdifenc.c     ctx->hd_buf_count  = 0;
ctx               148 libavformat/spdifenc.c     ctx->hd_buf_filled = 0;
ctx               175 libavformat/spdifenc.c     IEC61937Context *ctx = s->priv_data;
ctx               191 libavformat/spdifenc.c     period = ctx->dtshd_rate * (blocks << 5) / sample_rate;
ctx               197 libavformat/spdifenc.c                " (blocks = %d, sample rate = %d)\n", ctx->dtshd_rate, period,
ctx               204 libavformat/spdifenc.c     ctx->pkt_offset = period * 4;
ctx               205 libavformat/spdifenc.c     ctx->data_type = IEC61937_DTSHD | subtype << 8;
ctx               213 libavformat/spdifenc.c             > ctx->pkt_offset - BURST_HEADER_SIZE && core_size) {
ctx               214 libavformat/spdifenc.c         if (!ctx->dtshd_skip)
ctx               217 libavformat/spdifenc.c         if (ctx->dtshd_fallback > 0)
ctx               218 libavformat/spdifenc.c             ctx->dtshd_skip = sample_rate * ctx->dtshd_fallback / (blocks << 5);
ctx               222 libavformat/spdifenc.c             ctx->dtshd_skip = 1;
ctx               224 libavformat/spdifenc.c     if (ctx->dtshd_skip && core_size) {
ctx               226 libavformat/spdifenc.c         if (ctx->dtshd_fallback >= 0)
ctx               227 libavformat/spdifenc.c             --ctx->dtshd_skip;
ctx               230 libavformat/spdifenc.c     ctx->out_bytes   = sizeof(dtshd_start_code) + 2 + pkt_size;
ctx               234 libavformat/spdifenc.c     ctx->length_code = FFALIGN(ctx->out_bytes + 0x8, 0x10) - 0x8;
ctx               236 libavformat/spdifenc.c     av_fast_malloc(&ctx->hd_buf[0], &ctx->hd_buf_size, ctx->out_bytes);
ctx               237 libavformat/spdifenc.c     if (!ctx->hd_buf[0])
ctx               240 libavformat/spdifenc.c     ctx->out_buf = ctx->hd_buf[0];
ctx               242 libavformat/spdifenc.c     memcpy(ctx->hd_buf[0], dtshd_start_code, sizeof(dtshd_start_code));
ctx               243 libavformat/spdifenc.c     AV_WB16(ctx->hd_buf[0] + sizeof(dtshd_start_code), pkt_size);
ctx               244 libavformat/spdifenc.c     memcpy(ctx->hd_buf[0] + sizeof(dtshd_start_code) + 2, pkt->data, pkt_size);
ctx               251 libavformat/spdifenc.c     IEC61937Context *ctx = s->priv_data;
ctx               268 libavformat/spdifenc.c         ctx->extra_bswap = 1;
ctx               277 libavformat/spdifenc.c         ctx->extra_bswap = 1;
ctx               291 libavformat/spdifenc.c     if (ctx->dtshd_rate)
ctx               296 libavformat/spdifenc.c     case  512 >> 5: ctx->data_type = IEC61937_DTS1; break;
ctx               297 libavformat/spdifenc.c     case 1024 >> 5: ctx->data_type = IEC61937_DTS2; break;
ctx               298 libavformat/spdifenc.c     case 2048 >> 5: ctx->data_type = IEC61937_DTS3; break;
ctx               307 libavformat/spdifenc.c         ctx->out_bytes = core_size;
ctx               308 libavformat/spdifenc.c         ctx->length_code = core_size << 3;
ctx               311 libavformat/spdifenc.c     ctx->pkt_offset = blocks << 7;
ctx               313 libavformat/spdifenc.c     if (ctx->out_bytes == ctx->pkt_offset) {
ctx               317 libavformat/spdifenc.c         ctx->use_preamble = 0;
ctx               318 libavformat/spdifenc.c     } else if (ctx->out_bytes > ctx->pkt_offset - BURST_HEADER_SIZE) {
ctx               334 libavformat/spdifenc.c     IEC61937Context *ctx = s->priv_data;
ctx               345 libavformat/spdifenc.c         ctx->data_type  = IEC61937_MPEG2_EXT;
ctx               346 libavformat/spdifenc.c         ctx->pkt_offset = 4608;
ctx               348 libavformat/spdifenc.c         ctx->data_type  = mpeg_data_type [version & 1][layer];
ctx               349 libavformat/spdifenc.c         ctx->pkt_offset = spdif_mpeg_pkt_offset[version & 1][layer];
ctx               357 libavformat/spdifenc.c     IEC61937Context *ctx = s->priv_data;
ctx               368 libavformat/spdifenc.c     ctx->pkt_offset = samples << 2;
ctx               371 libavformat/spdifenc.c         ctx->data_type = IEC61937_MPEG2_AAC;
ctx               374 libavformat/spdifenc.c         ctx->data_type = IEC61937_MPEG2_AAC_LSF_2048;
ctx               377 libavformat/spdifenc.c         ctx->data_type = IEC61937_MPEG2_AAC_LSF_4096;
ctx               421 libavformat/spdifenc.c     IEC61937Context *ctx = s->priv_data;
ctx               422 libavformat/spdifenc.c     uint8_t *hd_buf = ctx->hd_buf[ctx->hd_buf_idx];
ctx               444 libavformat/spdifenc.c         ctx->truehd_samples_per_frame = 40 << (ratebits & 3);
ctx               446 libavformat/spdifenc.c                ctx->truehd_samples_per_frame);
ctx               449 libavformat/spdifenc.c     if (!ctx->truehd_samples_per_frame)
ctx               453 libavformat/spdifenc.c     if (ctx->truehd_prev_size) {
ctx               454 libavformat/spdifenc.c         uint16_t delta_samples = input_timing - ctx->truehd_prev_time;
ctx               464 libavformat/spdifenc.c         int delta_bytes = delta_samples * 2560 / ctx->truehd_samples_per_frame;
ctx               467 libavformat/spdifenc.c         padding_remaining = delta_bytes - ctx->truehd_prev_size;
ctx               475 libavformat/spdifenc.c                                   ctx->truehd_prev_time, input_timing, ctx->truehd_samples_per_frame);
ctx               481 libavformat/spdifenc.c         if (ctx->hd_buf_filled <= mat_codes[next_code_idx].pos)
ctx               488 libavformat/spdifenc.c            mat_codes[next_code_idx].pos == ctx->hd_buf_filled) {
ctx               490 libavformat/spdifenc.c         if (mat_codes[next_code_idx].pos == ctx->hd_buf_filled) {
ctx               496 libavformat/spdifenc.c             ctx->hd_buf_filled += code_len;
ctx               504 libavformat/spdifenc.c                 ctx->out_buf = hd_buf;
ctx               505 libavformat/spdifenc.c                 ctx->hd_buf_idx ^= 1;
ctx               506 libavformat/spdifenc.c                 hd_buf = ctx->hd_buf[ctx->hd_buf_idx];
ctx               507 libavformat/spdifenc.c                 ctx->hd_buf_filled = 0;
ctx               526 libavformat/spdifenc.c             int padding_to_insert = FFMIN(mat_codes[next_code_idx].pos - ctx->hd_buf_filled,
ctx               529 libavformat/spdifenc.c             memset(hd_buf + ctx->hd_buf_filled, 0, padding_to_insert);
ctx               530 libavformat/spdifenc.c             ctx->hd_buf_filled += padding_to_insert;
ctx               538 libavformat/spdifenc.c             int data_to_insert = FFMIN(mat_codes[next_code_idx].pos - ctx->hd_buf_filled,
ctx               541 libavformat/spdifenc.c             memcpy(hd_buf + ctx->hd_buf_filled, dataptr, data_to_insert);
ctx               542 libavformat/spdifenc.c             ctx->hd_buf_filled += data_to_insert;
ctx               548 libavformat/spdifenc.c     ctx->truehd_prev_size = total_frame_size;
ctx               549 libavformat/spdifenc.c     ctx->truehd_prev_time = input_timing;
ctx               552 libavformat/spdifenc.c            total_frame_size, ctx->hd_buf_filled);
ctx               555 libavformat/spdifenc.c         ctx->pkt_offset = 0;
ctx               559 libavformat/spdifenc.c     ctx->data_type   = IEC61937_TRUEHD;
ctx               560 libavformat/spdifenc.c     ctx->pkt_offset  = MAT_PKT_OFFSET;
ctx               561 libavformat/spdifenc.c     ctx->out_bytes   = MAT_FRAME_SIZE;
ctx               562 libavformat/spdifenc.c     ctx->length_code = MAT_FRAME_SIZE;
ctx               568 libavformat/spdifenc.c     IEC61937Context *ctx = s->priv_data;
ctx               572 libavformat/spdifenc.c         ctx->header_info = spdif_header_ac3;
ctx               575 libavformat/spdifenc.c         ctx->header_info = spdif_header_eac3;
ctx               580 libavformat/spdifenc.c         ctx->header_info = spdif_header_mpeg;
ctx               583 libavformat/spdifenc.c         ctx->header_info = spdif_header_dts;
ctx               586 libavformat/spdifenc.c         ctx->header_info = spdif_header_aac;
ctx               590 libavformat/spdifenc.c         ctx->header_info = spdif_header_truehd;
ctx               591 libavformat/spdifenc.c         for (int i = 0; i < FF_ARRAY_ELEMS(ctx->hd_buf); i++) {
ctx               592 libavformat/spdifenc.c             ctx->hd_buf[i] = av_malloc(MAT_FRAME_SIZE);
ctx               593 libavformat/spdifenc.c             if (!ctx->hd_buf[i])
ctx               607 libavformat/spdifenc.c     IEC61937Context *ctx = s->priv_data;
ctx               608 libavformat/spdifenc.c     av_freep(&ctx->buffer);
ctx               609 libavformat/spdifenc.c     for (int i = 0; i < FF_ARRAY_ELEMS(ctx->hd_buf); i++)
ctx               610 libavformat/spdifenc.c         av_freep(&ctx->hd_buf[i]);
ctx               613 libavformat/spdifenc.c static av_always_inline void spdif_put_16(IEC61937Context *ctx,
ctx               616 libavformat/spdifenc.c     if (ctx->spdif_flags & SPDIF_FLAG_BIGENDIAN)
ctx               624 libavformat/spdifenc.c     IEC61937Context *ctx = s->priv_data;
ctx               627 libavformat/spdifenc.c     ctx->out_buf = pkt->data;
ctx               628 libavformat/spdifenc.c     ctx->out_bytes = pkt->size;
ctx               629 libavformat/spdifenc.c     ctx->length_code = FFALIGN(pkt->size, 2) << 3;
ctx               630 libavformat/spdifenc.c     ctx->use_preamble = 1;
ctx               631 libavformat/spdifenc.c     ctx->extra_bswap = 0;
ctx               633 libavformat/spdifenc.c     ret = ctx->header_info(s, pkt);
ctx               636 libavformat/spdifenc.c     if (!ctx->pkt_offset)
ctx               639 libavformat/spdifenc.c     padding = (ctx->pkt_offset - ctx->use_preamble * BURST_HEADER_SIZE - ctx->out_bytes) & ~1;
ctx               645 libavformat/spdifenc.c     if (ctx->use_preamble) {
ctx               646 libavformat/spdifenc.c         spdif_put_16(ctx, s->pb, SYNCWORD1);       //Pa
ctx               647 libavformat/spdifenc.c         spdif_put_16(ctx, s->pb, SYNCWORD2);       //Pb
ctx               648 libavformat/spdifenc.c         spdif_put_16(ctx, s->pb, ctx->data_type);  //Pc
ctx               649 libavformat/spdifenc.c         spdif_put_16(ctx, s->pb, ctx->length_code);//Pd
ctx               652 libavformat/spdifenc.c     if (ctx->extra_bswap ^ (ctx->spdif_flags & SPDIF_FLAG_BIGENDIAN)) {
ctx               653 libavformat/spdifenc.c         avio_write(s->pb, ctx->out_buf, ctx->out_bytes & ~1);
ctx               655 libavformat/spdifenc.c         av_fast_malloc(&ctx->buffer, &ctx->buffer_size, ctx->out_bytes + AV_INPUT_BUFFER_PADDING_SIZE);
ctx               656 libavformat/spdifenc.c         if (!ctx->buffer)
ctx               658 libavformat/spdifenc.c         ff_spdif_bswap_buf16((uint16_t *)ctx->buffer, (uint16_t *)ctx->out_buf, ctx->out_bytes >> 1);
ctx               659 libavformat/spdifenc.c         avio_write(s->pb, ctx->buffer, ctx->out_bytes & ~1);
ctx               663 libavformat/spdifenc.c     if (ctx->out_bytes & 1)
ctx               664 libavformat/spdifenc.c         spdif_put_16(ctx, s->pb, ctx->out_buf[ctx->out_bytes - 1] << 8);
ctx               669 libavformat/spdifenc.c            ctx->data_type, ctx->out_bytes, ctx->pkt_offset);
ctx                73 libavformat/tcp.c static void customize_fd(void *ctx, int fd)
ctx                75 libavformat/tcp.c     TCPContext *s = ctx;
ctx                80 libavformat/tcp.c             ff_log_net_error(ctx, AV_LOG_WARNING, "setsockopt(SO_RCVBUF)");
ctx                85 libavformat/tcp.c             ff_log_net_error(ctx, AV_LOG_WARNING, "setsockopt(SO_SNDBUF)");
ctx                90 libavformat/tcp.c             ff_log_net_error(ctx, AV_LOG_WARNING, "setsockopt(TCP_NODELAY)");
ctx                96 libavformat/tcp.c             ff_log_net_error(ctx, AV_LOG_WARNING, "setsockopt(TCP_MAXSEG)");
ctx                48 libavformat/tests/movenc.c AVFormatContext *ctx;
ctx               182 libavformat/tests/movenc.c     ctx = avformat_alloc_context();
ctx               183 libavformat/tests/movenc.c     if (!ctx)
ctx               185 libavformat/tests/movenc.c     ctx->oformat = av_guess_format(format, NULL, NULL);
ctx               186 libavformat/tests/movenc.c     if (!ctx->oformat)
ctx               188 libavformat/tests/movenc.c     ctx->pb = avio_alloc_context(iobuf, iobuf_size, AVIO_FLAG_WRITE, NULL, NULL, io_write, NULL);
ctx               189 libavformat/tests/movenc.c     if (!ctx->pb)
ctx               191 libavformat/tests/movenc.c     ctx->pb->write_data_type = io_write_data_type;
ctx               192 libavformat/tests/movenc.c     ctx->flags |= AVFMT_FLAG_BITEXACT;
ctx               194 libavformat/tests/movenc.c     st = avformat_new_stream(ctx, NULL);
ctx               210 libavformat/tests/movenc.c     st = avformat_new_stream(ctx, NULL);
ctx               226 libavformat/tests/movenc.c     if (avformat_write_header(ctx, &opts) < 0)
ctx               310 libavformat/tests/movenc.c             av_interleaved_write_frame(ctx, &pkt);
ctx               312 libavformat/tests/movenc.c             av_write_frame(ctx, &pkt);
ctx               338 libavformat/tests/movenc.c     av_write_frame(ctx, &pkt);
ctx               342 libavformat/tests/movenc.c     av_write_frame(ctx, &pkt);
ctx               347 libavformat/tests/movenc.c     av_write_trailer(ctx);
ctx               348 libavformat/tests/movenc.c     avio_context_free(&ctx->pb);
ctx               349 libavformat/tests/movenc.c     avformat_free_context(ctx);
ctx               350 libavformat/tests/movenc.c     ctx = NULL;
ctx               505 libavformat/tests/movenc.c     av_write_frame(ctx, NULL); // Force writing the moov
ctx               507 libavformat/tests/movenc.c     av_write_frame(ctx, NULL);
ctx               509 libavformat/tests/movenc.c     av_write_frame(ctx, NULL);
ctx               531 libavformat/tests/movenc.c     av_write_frame(ctx, NULL);
ctx               535 libavformat/tests/movenc.c     av_write_frame(ctx, NULL);
ctx               548 libavformat/tests/movenc.c     av_write_frame(ctx, NULL); // Force writing the moov
ctx               552 libavformat/tests/movenc.c     av_write_frame(ctx, NULL); // Flush the first fragment
ctx               555 libavformat/tests/movenc.c     av_write_frame(ctx, NULL); // Flush the second fragment
ctx               567 libavformat/tests/movenc.c     av_write_frame(ctx, NULL); // Output the first fragment
ctx               570 libavformat/tests/movenc.c     av_write_frame(ctx, NULL); // Output the second fragment
ctx               585 libavformat/tests/movenc.c     av_write_frame(ctx, NULL); // Output the second fragment
ctx               597 libavformat/tests/movenc.c     av_write_frame(ctx, NULL); // Output the moov
ctx               599 libavformat/tests/movenc.c     av_write_frame(ctx, NULL); // Output the second fragment
ctx               612 libavformat/tests/movenc.c     av_write_frame(ctx, NULL); // Output the moov
ctx               615 libavformat/tests/movenc.c     av_write_frame(ctx, NULL); // Output the first fragment
ctx               618 libavformat/tests/movenc.c     av_write_frame(ctx, NULL); // Output the second fragment
ctx               629 libavformat/tests/movenc.c     av_write_frame(ctx, NULL); // Output the moov
ctx               633 libavformat/tests/movenc.c     av_write_frame(ctx, NULL); // Output the second fragment
ctx               645 libavformat/tests/movenc.c     av_write_frame(ctx, NULL); // Output the moov
ctx               648 libavformat/tests/movenc.c     av_write_frame(ctx, NULL); // Output the first fragment
ctx               651 libavformat/tests/movenc.c     av_write_frame(ctx, NULL); // Output the second fragment
ctx               663 libavformat/tests/movenc.c     av_write_frame(ctx, NULL); // Output the moov
ctx               667 libavformat/tests/movenc.c     av_write_frame(ctx, NULL); // Output the second fragment
ctx               681 libavformat/tests/movenc.c     av_write_frame(ctx, NULL); // Output the moov
ctx               684 libavformat/tests/movenc.c     av_write_frame(ctx, NULL); // Output the second fragment
ctx                37 libavformat/tls_libtls.c     struct tls *ctx;
ctx                43 libavformat/tls_libtls.c     if (p->ctx) {
ctx                44 libavformat/tls_libtls.c         tls_close(p->ctx);
ctx                45 libavformat/tls_libtls.c         tls_free(p->ctx);
ctx                51 libavformat/tls_libtls.c static ssize_t tls_read_callback(struct tls *ctx, void *buf, size_t buflen, void *cb_arg)
ctx                62 libavformat/tls_libtls.c static ssize_t tls_write_callback(struct tls *ctx, const void *buf, size_t buflen, void *cb_arg)
ctx                88 libavformat/tls_libtls.c     p->ctx = !c->listen ? tls_client() : tls_server();
ctx                89 libavformat/tls_libtls.c     if (!p->ctx) {
ctx                95 libavformat/tls_libtls.c     if (!p->ctx) {
ctx               116 libavformat/tls_libtls.c     if (tls_configure(p->ctx, cfg) == -1)
ctx               120 libavformat/tls_libtls.c         ret = tls_connect_cbs(p->ctx, tls_read_callback, tls_write_callback,
ctx               124 libavformat/tls_libtls.c         ret = tls_accept_cbs(p->ctx, &ctx_new, tls_read_callback,
ctx               128 libavformat/tls_libtls.c             tls_free(p->ctx);
ctx               129 libavformat/tls_libtls.c             p->ctx = ctx_new;
ctx               142 libavformat/tls_libtls.c     av_log(h, AV_LOG_ERROR, "%s\n", tls_error(p->ctx));
ctx               156 libavformat/tls_libtls.c     ret = tls_read(p->ctx, buf, size);
ctx               161 libavformat/tls_libtls.c     av_log(h, AV_LOG_ERROR, "%s\n", tls_error(p->ctx));
ctx               169 libavformat/tls_libtls.c     ret = tls_write(p->ctx, buf, size);
ctx               174 libavformat/tls_libtls.c     av_log(h, AV_LOG_ERROR, "%s\n", tls_error(p->ctx));
ctx                86 libavformat/tls_mbedtls.c static int mbedtls_send(void *ctx, const unsigned char *buf, size_t len)
ctx                88 libavformat/tls_mbedtls.c     URLContext *h = (URLContext*) ctx;
ctx                99 libavformat/tls_mbedtls.c static int mbedtls_recv(void *ctx, unsigned char *buf, size_t len)
ctx               101 libavformat/tls_mbedtls.c     URLContext *h = (URLContext*) ctx;
ctx                44 libavformat/tls_openssl.c     SSL_CTX *ctx;
ctx               143 libavformat/tls_openssl.c     if (c->ctx)
ctx               144 libavformat/tls_openssl.c         SSL_CTX_free(c->ctx);
ctx               252 libavformat/tls_openssl.c     p->ctx = SSL_CTX_new(c->listen ? SSLv23_server_method() : SSLv23_client_method());
ctx               253 libavformat/tls_openssl.c     if (!p->ctx) {
ctx               258 libavformat/tls_openssl.c     SSL_CTX_set_options(p->ctx, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3);
ctx               260 libavformat/tls_openssl.c         if (!SSL_CTX_load_verify_locations(p->ctx, c->ca_file, NULL))
ctx               263 libavformat/tls_openssl.c     if (c->cert_file && !SSL_CTX_use_certificate_chain_file(p->ctx, c->cert_file)) {
ctx               269 libavformat/tls_openssl.c     if (c->key_file && !SSL_CTX_use_PrivateKey_file(p->ctx, c->key_file, SSL_FILETYPE_PEM)) {
ctx               278 libavformat/tls_openssl.c         SSL_CTX_set_verify(p->ctx, SSL_VERIFY_PEER|SSL_VERIFY_FAIL_IF_NO_PEER_CERT, NULL);
ctx               279 libavformat/tls_openssl.c     p->ssl = SSL_new(p->ctx);
ctx                38 libavformat/v210.c static int v210_read_header(AVFormatContext *ctx)
ctx                40 libavformat/v210.c     V210DemuxerContext *s = ctx->priv_data;
ctx                44 libavformat/v210.c     st = avformat_new_stream(ctx, NULL);
ctx                50 libavformat/v210.c     st->codecpar->codec_id = ctx->iformat->raw_codec_id;
ctx                54 libavformat/v210.c     ret = av_image_check_size(s->width, s->height, 0, ctx);
ctx                59 libavformat/v210.c     st->codecpar->format   = ctx->iformat->raw_codec_id == AV_CODEC_ID_V210 ?
ctx                61 libavformat/v210.c     ctx->packet_size       = GET_PACKET_SIZE(s->width, s->height);
ctx                62 libavformat/v210.c     st->codecpar->bit_rate = av_rescale_q(ctx->packet_size,
ctx                58 libavformat/vc1testenc.c     RCVContext *ctx = s->priv_data;
ctx                66 libavformat/vc1testenc.c     ctx->frames++;
ctx                73 libavformat/vc1testenc.c     RCVContext *ctx = s->priv_data;
ctx                78 libavformat/vc1testenc.c         avio_wl24(pb, ctx->frames);
ctx                46 libavformat/webvttenc.c static int webvtt_write_header(AVFormatContext *ctx)
ctx                48 libavformat/webvttenc.c     AVStream     *s = ctx->streams[0];
ctx                49 libavformat/webvttenc.c     AVCodecParameters *par = ctx->streams[0]->codecpar;
ctx                50 libavformat/webvttenc.c     AVIOContext *pb = ctx->pb;
ctx                52 libavformat/webvttenc.c     if (ctx->nb_streams != 1 || par->codec_id != AV_CODEC_ID_WEBVTT) {
ctx                53 libavformat/webvttenc.c         av_log(ctx, AV_LOG_ERROR, "Exactly one WebVTT stream is needed.\n");
ctx                64 libavformat/webvttenc.c static int webvtt_write_packet(AVFormatContext *ctx, AVPacket *pkt)
ctx                66 libavformat/webvttenc.c     AVIOContext  *pb = ctx->pb;
ctx                78 libavformat/wvdec.c static int wv_read_block_header(AVFormatContext *ctx, AVIOContext *pb)
ctx                80 libavformat/wvdec.c     WVContext *wc = ctx->priv_data;
ctx                97 libavformat/wvdec.c         av_log(ctx, AV_LOG_ERROR, "Invalid block header.\n");
ctx               102 libavformat/wvdec.c         avpriv_report_missing_feature(ctx, "WV version 0x%03X",
ctx               126 libavformat/wvdec.c             av_log(ctx, AV_LOG_ERROR,
ctx               140 libavformat/wvdec.c                     av_log(ctx, AV_LOG_ERROR,
ctx               171 libavformat/wvdec.c                     av_log(ctx, AV_LOG_ERROR,
ctx               178 libavformat/wvdec.c                     av_log(ctx, AV_LOG_ERROR,
ctx               196 libavformat/wvdec.c             av_log(ctx, AV_LOG_ERROR,
ctx               212 libavformat/wvdec.c         av_log(ctx, AV_LOG_ERROR,
ctx               218 libavformat/wvdec.c         av_log(ctx, AV_LOG_ERROR,
ctx               224 libavformat/wvdec.c         av_log(ctx, AV_LOG_ERROR,
ctx                33 libavformat/wvenc.c static av_cold int wv_write_header(AVFormatContext *ctx)
ctx                35 libavformat/wvenc.c     if (ctx->nb_streams > 1 ||
ctx                36 libavformat/wvenc.c         ctx->streams[0]->codecpar->codec_id != AV_CODEC_ID_WAVPACK) {
ctx                37 libavformat/wvenc.c         av_log(ctx, AV_LOG_ERROR, "This muxer only supports a single WavPack stream.\n");
ctx                44 libavformat/wvenc.c static int wv_write_packet(AVFormatContext *ctx, AVPacket *pkt)
ctx                46 libavformat/wvenc.c     WvMuxContext *s = ctx->priv_data;
ctx                52 libavformat/wvenc.c         av_log(ctx, AV_LOG_ERROR, "Invalid WavPack packet.\n");
ctx                57 libavformat/wvenc.c     avio_write(ctx->pb, pkt->data, pkt->size);
ctx                62 libavformat/wvenc.c static av_cold int wv_write_trailer(AVFormatContext *ctx)
ctx                64 libavformat/wvenc.c     WvMuxContext *s = ctx->priv_data;
ctx                67 libavformat/wvenc.c     if ((ctx->pb->seekable & AVIO_SEEKABLE_NORMAL) && s->samples &&
ctx                69 libavformat/wvenc.c         int64_t pos = avio_tell(ctx->pb);
ctx                70 libavformat/wvenc.c         avio_seek(ctx->pb, 12, SEEK_SET);
ctx                71 libavformat/wvenc.c         avio_wl32(ctx->pb, s->samples);
ctx                72 libavformat/wvenc.c         avio_seek(ctx->pb, pos, SEEK_SET);
ctx                75 libavformat/wvenc.c     ff_ape_write_tag(ctx);
ctx                42 libavutil/aarch64/neontest.h #define testneonclobbers(func, ctx, ...)                        \
ctx                46 libavutil/aarch64/neontest.h     ret = __real_ ## func(ctx, __VA_ARGS__);                    \
ctx                50 libavutil/aarch64/neontest.h         av_log(ctx, AV_LOG_ERROR,                               \
ctx                54 libavutil/aarch64/neontest.h                 av_log(ctx, AV_LOG_ERROR,                       \
ctx                57 libavutil/aarch64/neontest.h                 av_log(ctx, AV_LOG_ERROR,                       \
ctx                39 libavutil/arm/neontest.h #define testneonclobbers(func, ctx, ...)                        \
ctx                43 libavutil/arm/neontest.h     ret = __real_ ## func(ctx, __VA_ARGS__);                    \
ctx                47 libavutil/arm/neontest.h         av_log(ctx, AV_LOG_ERROR,                               \
ctx                51 libavutil/arm/neontest.h                 av_log(ctx, AV_LOG_ERROR,                       \
ctx                54 libavutil/arm/neontest.h                 av_log(ctx, AV_LOG_ERROR,                       \
ctx               298 libavutil/blowfish.c     Xr ^=((( ctx->s[0][ Xl >> 24        ] \
ctx               299 libavutil/blowfish.c            + ctx->s[1][(Xl >> 16) & 0xFF])\
ctx               300 libavutil/blowfish.c            ^ ctx->s[2][(Xl >>  8) & 0xFF])\
ctx               301 libavutil/blowfish.c            + ctx->s[3][ Xl        & 0xFF])\
ctx               309 libavutil/blowfish.c av_cold void av_blowfish_init(AVBlowfish *ctx, const uint8_t *key, int key_len)
ctx               314 libavutil/blowfish.c     memcpy(ctx->s, orig_s, sizeof(orig_s));
ctx               324 libavutil/blowfish.c         ctx->p[i] = orig_p[i] ^ data;
ctx               330 libavutil/blowfish.c         av_blowfish_crypt_ecb(ctx, &data_l, &data_r, 0);
ctx               331 libavutil/blowfish.c         ctx->p[i]     = data_l;
ctx               332 libavutil/blowfish.c         ctx->p[i + 1] = data_r;
ctx               337 libavutil/blowfish.c             av_blowfish_crypt_ecb(ctx, &data_l, &data_r, 0);
ctx               338 libavutil/blowfish.c             ctx->s[i][j]     = data_l;
ctx               339 libavutil/blowfish.c             ctx->s[i][j + 1] = data_r;
ctx               344 libavutil/blowfish.c void av_blowfish_crypt_ecb(AVBlowfish *ctx, uint32_t *xl, uint32_t *xr,
ctx               354 libavutil/blowfish.c         Xl ^= ctx->p[AV_BF_ROUNDS + 1];
ctx               356 libavutil/blowfish.c             F(Xl, Xr, ctx->p[i  ]);
ctx               357 libavutil/blowfish.c             F(Xr, Xl, ctx->p[i-1]);
ctx               360 libavutil/blowfish.c         Xr ^= ctx->p[0];
ctx               362 libavutil/blowfish.c         Xl ^= ctx->p[0];
ctx               364 libavutil/blowfish.c             F(Xl, Xr, ctx->p[i  ]);
ctx               365 libavutil/blowfish.c             F(Xr, Xl, ctx->p[i+1]);
ctx               368 libavutil/blowfish.c         Xr ^= ctx->p[AV_BF_ROUNDS + 1];
ctx               375 libavutil/blowfish.c void av_blowfish_crypt(AVBlowfish *ctx, uint8_t *dst, const uint8_t *src,
ctx               386 libavutil/blowfish.c             av_blowfish_crypt_ecb(ctx, &v0, &v1, decrypt);
ctx               412 libavutil/blowfish.c             av_blowfish_crypt_ecb(ctx, &v0, &v1, decrypt);
ctx                52 libavutil/blowfish.h void av_blowfish_init(struct AVBlowfish *ctx, const uint8_t *key, int key_len);
ctx                62 libavutil/blowfish.h void av_blowfish_crypt_ecb(struct AVBlowfish *ctx, uint32_t *xl, uint32_t *xr,
ctx                75 libavutil/blowfish.h void av_blowfish_crypt(struct AVBlowfish *ctx, uint8_t *dst, const uint8_t *src,
ctx                53 libavutil/camellia.h int av_camellia_init(struct AVCAMELLIA *ctx, const uint8_t *key, int key_bits);
ctx                65 libavutil/camellia.h void av_camellia_crypt(struct AVCAMELLIA *ctx, uint8_t *dst, const uint8_t *src, int count, uint8_t* iv, int decrypt);
ctx                53 libavutil/cast5.h int av_cast5_init(struct AVCAST5 *ctx, const uint8_t *key, int key_bits);
ctx                64 libavutil/cast5.h void av_cast5_crypt(struct AVCAST5 *ctx, uint8_t *dst, const uint8_t *src, int count, int decrypt);
ctx                76 libavutil/cast5.h void av_cast5_crypt2(struct AVCAST5 *ctx, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt);
ctx               341 libavutil/crc.c int av_crc_init(AVCRC *ctx, int le, int bits, uint32_t poly, int ctx_size)
ctx               355 libavutil/crc.c             ctx[i] = c;
ctx               359 libavutil/crc.c             ctx[i] = av_bswap32(c);
ctx               362 libavutil/crc.c     ctx[256] = 1;
ctx               367 libavutil/crc.c                 ctx[256 * (j + 1) + i] =
ctx               368 libavutil/crc.c                     (ctx[256 * j + i] >> 8) ^ ctx[ctx[256 * j + i] & 0xFF];
ctx               392 libavutil/crc.c uint32_t av_crc(const AVCRC *ctx, uint32_t crc,
ctx               398 libavutil/crc.c     if (!ctx[256]) {
ctx               400 libavutil/crc.c             crc = ctx[((uint8_t) crc) ^ *buffer++] ^ (crc >> 8);
ctx               404 libavutil/crc.c             crc = ctx[3 * 256 + ( crc        & 0xFF)] ^
ctx               405 libavutil/crc.c                   ctx[2 * 256 + ((crc >> 8 ) & 0xFF)] ^
ctx               406 libavutil/crc.c                   ctx[1 * 256 + ((crc >> 16) & 0xFF)] ^
ctx               407 libavutil/crc.c                   ctx[0 * 256 + ((crc >> 24)       )];
ctx               412 libavutil/crc.c         crc = ctx[((uint8_t) crc) ^ *buffer++] ^ (crc >> 8);
ctx                77 libavutil/crc.h int av_crc_init(AVCRC *ctx, int le, int bits, uint32_t poly, int ctx_size);
ctx                93 libavutil/crc.h uint32_t av_crc(const AVCRC *ctx, uint32_t crc,
ctx                57 libavutil/hash.c     void *ctx;
ctx                90 libavutil/hash.c const char *av_hash_get_name(const AVHashContext *ctx)
ctx                92 libavutil/hash.c     return hashdesc[ctx->type].name;
ctx                95 libavutil/hash.c int av_hash_get_size(const AVHashContext *ctx)
ctx                97 libavutil/hash.c     return hashdesc[ctx->type].size;
ctx               100 libavutil/hash.c int av_hash_alloc(AVHashContext **ctx, const char *name)
ctx               104 libavutil/hash.c     *ctx = NULL;
ctx               113 libavutil/hash.c     case MD5:     res->ctx = av_md5_alloc(); break;
ctx               114 libavutil/hash.c     case MURMUR3: res->ctx = av_murmur3_alloc(); break;
ctx               118 libavutil/hash.c     case RIPEMD320: res->ctx = av_ripemd_alloc(); break;
ctx               121 libavutil/hash.c     case SHA256:  res->ctx = av_sha_alloc(); break;
ctx               125 libavutil/hash.c     case SHA512:  res->ctx = av_sha512_alloc(); break;
ctx               129 libavutil/hash.c     if (i != ADLER32 && i != CRC32 && !res->ctx) {
ctx               133 libavutil/hash.c     *ctx = res;
ctx               137 libavutil/hash.c void av_hash_init(AVHashContext *ctx)
ctx               139 libavutil/hash.c     switch (ctx->type) {
ctx               140 libavutil/hash.c     case MD5:     av_md5_init(ctx->ctx); break;
ctx               141 libavutil/hash.c     case MURMUR3: av_murmur3_init(ctx->ctx); break;
ctx               142 libavutil/hash.c     case RIPEMD128: av_ripemd_init(ctx->ctx, 128); break;
ctx               143 libavutil/hash.c     case RIPEMD160: av_ripemd_init(ctx->ctx, 160); break;
ctx               144 libavutil/hash.c     case RIPEMD256: av_ripemd_init(ctx->ctx, 256); break;
ctx               145 libavutil/hash.c     case RIPEMD320: av_ripemd_init(ctx->ctx, 320); break;
ctx               146 libavutil/hash.c     case SHA160:  av_sha_init(ctx->ctx, 160); break;
ctx               147 libavutil/hash.c     case SHA224:  av_sha_init(ctx->ctx, 224); break;
ctx               148 libavutil/hash.c     case SHA256:  av_sha_init(ctx->ctx, 256); break;
ctx               149 libavutil/hash.c     case SHA512_224:  av_sha512_init(ctx->ctx, 224); break;
ctx               150 libavutil/hash.c     case SHA512_256:  av_sha512_init(ctx->ctx, 256); break;
ctx               151 libavutil/hash.c     case SHA384:  av_sha512_init(ctx->ctx, 384); break;
ctx               152 libavutil/hash.c     case SHA512:  av_sha512_init(ctx->ctx, 512); break;
ctx               153 libavutil/hash.c     case CRC32:   ctx->crc = UINT32_MAX; break;
ctx               154 libavutil/hash.c     case ADLER32: ctx->crc = 1; break;
ctx               159 libavutil/hash.c void av_hash_update(AVHashContext *ctx, const uint8_t *src, int len)
ctx               161 libavutil/hash.c void av_hash_update(AVHashContext *ctx, const uint8_t *src, size_t len)
ctx               164 libavutil/hash.c     switch (ctx->type) {
ctx               165 libavutil/hash.c     case MD5:     av_md5_update(ctx->ctx, src, len); break;
ctx               166 libavutil/hash.c     case MURMUR3: av_murmur3_update(ctx->ctx, src, len); break;
ctx               170 libavutil/hash.c     case RIPEMD320: av_ripemd_update(ctx->ctx, src, len); break;
ctx               173 libavutil/hash.c     case SHA256:  av_sha_update(ctx->ctx, src, len); break;
ctx               177 libavutil/hash.c     case SHA512:  av_sha512_update(ctx->ctx, src, len); break;
ctx               178 libavutil/hash.c     case CRC32:   ctx->crc = av_crc(ctx->crctab, ctx->crc, src, len); break;
ctx               179 libavutil/hash.c     case ADLER32: ctx->crc = av_adler32_update(ctx->crc, src, len); break;
ctx               183 libavutil/hash.c void av_hash_final(AVHashContext *ctx, uint8_t *dst)
ctx               185 libavutil/hash.c     switch (ctx->type) {
ctx               186 libavutil/hash.c     case MD5:     av_md5_final(ctx->ctx, dst); break;
ctx               187 libavutil/hash.c     case MURMUR3: av_murmur3_final(ctx->ctx, dst); break;
ctx               191 libavutil/hash.c     case RIPEMD320: av_ripemd_final(ctx->ctx, dst); break;
ctx               194 libavutil/hash.c     case SHA256:  av_sha_final(ctx->ctx, dst); break;
ctx               198 libavutil/hash.c     case SHA512:  av_sha512_final(ctx->ctx, dst); break;
ctx               199 libavutil/hash.c     case CRC32:   AV_WB32(dst, ctx->crc ^ UINT32_MAX); break;
ctx               200 libavutil/hash.c     case ADLER32: AV_WB32(dst, ctx->crc); break;
ctx               204 libavutil/hash.c void av_hash_final_bin(struct AVHashContext *ctx, uint8_t *dst, int size)
ctx               207 libavutil/hash.c     unsigned rsize = av_hash_get_size(ctx);
ctx               209 libavutil/hash.c     av_hash_final(ctx, buf);
ctx               215 libavutil/hash.c void av_hash_final_hex(struct AVHashContext *ctx, uint8_t *dst, int size)
ctx               218 libavutil/hash.c     unsigned rsize = av_hash_get_size(ctx), i;
ctx               220 libavutil/hash.c     av_hash_final(ctx, buf);
ctx               225 libavutil/hash.c void av_hash_final_b64(struct AVHashContext *ctx, uint8_t *dst, int size)
ctx               228 libavutil/hash.c     unsigned rsize = av_hash_get_size(ctx), osize;
ctx               230 libavutil/hash.c     av_hash_final(ctx, buf);
ctx               238 libavutil/hash.c void av_hash_freep(AVHashContext **ctx)
ctx               240 libavutil/hash.c     if (*ctx)
ctx               241 libavutil/hash.c         av_freep(&(*ctx)->ctx);
ctx               242 libavutil/hash.c     av_freep(ctx);
ctx               126 libavutil/hash.h int av_hash_alloc(struct AVHashContext **ctx, const char *name);
ctx               141 libavutil/hash.h const char *av_hash_get_name(const struct AVHashContext *ctx);
ctx               168 libavutil/hash.h int av_hash_get_size(const struct AVHashContext *ctx);
ctx               175 libavutil/hash.h void av_hash_init(struct AVHashContext *ctx);
ctx               185 libavutil/hash.h void av_hash_update(struct AVHashContext *ctx, const uint8_t *src, int len);
ctx               187 libavutil/hash.h void av_hash_update(struct AVHashContext *ctx, const uint8_t *src, size_t len);
ctx               204 libavutil/hash.h void av_hash_final(struct AVHashContext *ctx, uint8_t *dst);
ctx               219 libavutil/hash.h void av_hash_final_bin(struct AVHashContext *ctx, uint8_t *dst, int size);
ctx               237 libavutil/hash.h void av_hash_final_hex(struct AVHashContext *ctx, uint8_t *dst, int size);
ctx               255 libavutil/hash.h void av_hash_final_b64(struct AVHashContext *ctx, uint8_t *dst, int size);
ctx               262 libavutil/hash.h void av_hash_freep(struct AVHashContext **ctx);
ctx                36 libavutil/hmac.c typedef void (*hmac_final)(void *ctx, uint8_t *dst);
ctx                38 libavutil/hmac.c typedef void (*hmac_update)(void *ctx, const uint8_t *src, int len);
ctx                40 libavutil/hmac.c typedef void (*hmac_update)(void *ctx, const uint8_t *src, size_t len);
ctx                42 libavutil/hmac.c typedef void (*hmac_init)(void *ctx);
ctx                55 libavutil/hmac.c static av_cold void sha ## bits ##_init(void *ctx) \
ctx                57 libavutil/hmac.c     av_sha_init(ctx, bits);                        \
ctx                61 libavutil/hmac.c static av_cold void sha ## bits ##_init(void *ctx) \
ctx                63 libavutil/hmac.c     av_sha512_init(ctx, bits);                     \
ctx                54 libavutil/hmac.h void av_hmac_free(AVHMAC *ctx);
ctx                62 libavutil/hmac.h void av_hmac_init(AVHMAC *ctx, const uint8_t *key, unsigned int keylen);
ctx                70 libavutil/hmac.h void av_hmac_update(AVHMAC *ctx, const uint8_t *data, unsigned int len);
ctx                79 libavutil/hmac.h int av_hmac_final(AVHMAC *ctx, uint8_t *out, unsigned int outlen);
ctx                92 libavutil/hmac.h int av_hmac_calc(AVHMAC *ctx, const uint8_t *data, unsigned int len,
ctx               124 libavutil/hwcontext.c     AVHWDeviceContext *ctx = (AVHWDeviceContext*)data;
ctx               128 libavutil/hwcontext.c     if (ctx->internal->hw_type->device_uninit)
ctx               129 libavutil/hwcontext.c         ctx->internal->hw_type->device_uninit(ctx);
ctx               131 libavutil/hwcontext.c     if (ctx->free)
ctx               132 libavutil/hwcontext.c         ctx->free(ctx);
ctx               134 libavutil/hwcontext.c     av_buffer_unref(&ctx->internal->source_device);
ctx               136 libavutil/hwcontext.c     av_freep(&ctx->hwctx);
ctx               137 libavutil/hwcontext.c     av_freep(&ctx->internal->priv);
ctx               138 libavutil/hwcontext.c     av_freep(&ctx->internal);
ctx               139 libavutil/hwcontext.c     av_freep(&ctx);
ctx               144 libavutil/hwcontext.c     AVHWDeviceContext *ctx;
ctx               158 libavutil/hwcontext.c     ctx = av_mallocz(sizeof(*ctx));
ctx               159 libavutil/hwcontext.c     if (!ctx)
ctx               162 libavutil/hwcontext.c     ctx->internal = av_mallocz(sizeof(*ctx->internal));
ctx               163 libavutil/hwcontext.c     if (!ctx->internal)
ctx               167 libavutil/hwcontext.c         ctx->internal->priv = av_mallocz(hw_type->device_priv_size);
ctx               168 libavutil/hwcontext.c         if (!ctx->internal->priv)
ctx               173 libavutil/hwcontext.c         ctx->hwctx = av_mallocz(hw_type->device_hwctx_size);
ctx               174 libavutil/hwcontext.c         if (!ctx->hwctx)
ctx               178 libavutil/hwcontext.c     buf = av_buffer_create((uint8_t*)ctx, sizeof(*ctx),
ctx               184 libavutil/hwcontext.c     ctx->type     = type;
ctx               185 libavutil/hwcontext.c     ctx->av_class = &hwdevice_ctx_class;
ctx               187 libavutil/hwcontext.c     ctx->internal->hw_type = hw_type;
ctx               192 libavutil/hwcontext.c     if (ctx->internal)
ctx               193 libavutil/hwcontext.c         av_freep(&ctx->internal->priv);
ctx               194 libavutil/hwcontext.c     av_freep(&ctx->internal);
ctx               195 libavutil/hwcontext.c     av_freep(&ctx->hwctx);
ctx               196 libavutil/hwcontext.c     av_freep(&ctx);
ctx               202 libavutil/hwcontext.c     AVHWDeviceContext *ctx = (AVHWDeviceContext*)ref->data;
ctx               205 libavutil/hwcontext.c     if (ctx->internal->hw_type->device_init) {
ctx               206 libavutil/hwcontext.c         ret = ctx->internal->hw_type->device_init(ctx);
ctx               213 libavutil/hwcontext.c     if (ctx->internal->hw_type->device_uninit)
ctx               214 libavutil/hwcontext.c         ctx->internal->hw_type->device_uninit(ctx);
ctx               226 libavutil/hwcontext.c     AVHWFramesContext *ctx = (AVHWFramesContext*)data;
ctx               228 libavutil/hwcontext.c     if (ctx->internal->pool_internal)
ctx               229 libavutil/hwcontext.c         av_buffer_pool_uninit(&ctx->internal->pool_internal);
ctx               231 libavutil/hwcontext.c     if (ctx->internal->hw_type->frames_uninit)
ctx               232 libavutil/hwcontext.c         ctx->internal->hw_type->frames_uninit(ctx);
ctx               234 libavutil/hwcontext.c     if (ctx->free)
ctx               235 libavutil/hwcontext.c         ctx->free(ctx);
ctx               237 libavutil/hwcontext.c     av_buffer_unref(&ctx->internal->source_frames);
ctx               239 libavutil/hwcontext.c     av_buffer_unref(&ctx->device_ref);
ctx               241 libavutil/hwcontext.c     av_freep(&ctx->hwctx);
ctx               242 libavutil/hwcontext.c     av_freep(&ctx->internal->priv);
ctx               243 libavutil/hwcontext.c     av_freep(&ctx->internal);
ctx               244 libavutil/hwcontext.c     av_freep(&ctx);
ctx               251 libavutil/hwcontext.c     AVHWFramesContext *ctx;
ctx               254 libavutil/hwcontext.c     ctx = av_mallocz(sizeof(*ctx));
ctx               255 libavutil/hwcontext.c     if (!ctx)
ctx               258 libavutil/hwcontext.c     ctx->internal = av_mallocz(sizeof(*ctx->internal));
ctx               259 libavutil/hwcontext.c     if (!ctx->internal)
ctx               263 libavutil/hwcontext.c         ctx->internal->priv = av_mallocz(hw_type->frames_priv_size);
ctx               264 libavutil/hwcontext.c         if (!ctx->internal->priv)
ctx               269 libavutil/hwcontext.c         ctx->hwctx = av_mallocz(hw_type->frames_hwctx_size);
ctx               270 libavutil/hwcontext.c         if (!ctx->hwctx)
ctx               278 libavutil/hwcontext.c     buf = av_buffer_create((uint8_t*)ctx, sizeof(*ctx),
ctx               284 libavutil/hwcontext.c     ctx->av_class   = &hwframe_ctx_class;
ctx               285 libavutil/hwcontext.c     ctx->device_ref = device_ref;
ctx               286 libavutil/hwcontext.c     ctx->device_ctx = device_ctx;
ctx               287 libavutil/hwcontext.c     ctx->format     = AV_PIX_FMT_NONE;
ctx               288 libavutil/hwcontext.c     ctx->sw_format  = AV_PIX_FMT_NONE;
ctx               290 libavutil/hwcontext.c     ctx->internal->hw_type = hw_type;
ctx               297 libavutil/hwcontext.c     if (ctx->internal)
ctx               298 libavutil/hwcontext.c         av_freep(&ctx->internal->priv);
ctx               299 libavutil/hwcontext.c     av_freep(&ctx->internal);
ctx               300 libavutil/hwcontext.c     av_freep(&ctx->hwctx);
ctx               301 libavutil/hwcontext.c     av_freep(&ctx);
ctx               307 libavutil/hwcontext.c     AVHWFramesContext *ctx = (AVHWFramesContext*)ref->data;
ctx               311 libavutil/hwcontext.c     frames = av_mallocz_array(ctx->initial_pool_size, sizeof(*frames));
ctx               315 libavutil/hwcontext.c     for (i = 0; i < ctx->initial_pool_size; i++) {
ctx               326 libavutil/hwcontext.c     for (i = 0; i < ctx->initial_pool_size; i++)
ctx               335 libavutil/hwcontext.c     AVHWFramesContext *ctx = (AVHWFramesContext*)ref->data;
ctx               339 libavutil/hwcontext.c     if (ctx->internal->source_frames) {
ctx               345 libavutil/hwcontext.c     for (pix_fmt = ctx->internal->hw_type->pix_fmts; *pix_fmt != AV_PIX_FMT_NONE; pix_fmt++) {
ctx               346 libavutil/hwcontext.c         if (*pix_fmt == ctx->format)
ctx               350 libavutil/hwcontext.c         av_log(ctx, AV_LOG_ERROR,
ctx               352 libavutil/hwcontext.c                av_get_pix_fmt_name(ctx->format), ctx->internal->hw_type->name);
ctx               357 libavutil/hwcontext.c     ret = av_image_check_size(ctx->width, ctx->height, 0, ctx);
ctx               362 libavutil/hwcontext.c     if (ctx->internal->hw_type->frames_init) {
ctx               363 libavutil/hwcontext.c         ret = ctx->internal->hw_type->frames_init(ctx);
ctx               368 libavutil/hwcontext.c     if (ctx->internal->pool_internal && !ctx->pool)
ctx               369 libavutil/hwcontext.c         ctx->pool = ctx->internal->pool_internal;
ctx               372 libavutil/hwcontext.c     if (ctx->initial_pool_size > 0) {
ctx               380 libavutil/hwcontext.c     if (ctx->internal->hw_type->frames_uninit)
ctx               381 libavutil/hwcontext.c         ctx->internal->hw_type->frames_uninit(ctx);
ctx               389 libavutil/hwcontext.c     AVHWFramesContext *ctx = (AVHWFramesContext*)hwframe_ref->data;
ctx               391 libavutil/hwcontext.c     if (!ctx->internal->hw_type->transfer_get_formats)
ctx               394 libavutil/hwcontext.c     return ctx->internal->hw_type->transfer_get_formats(ctx, dir, formats);
ctx               399 libavutil/hwcontext.c     AVHWFramesContext *ctx = (AVHWFramesContext*)src->hw_frames_ctx->data;
ctx               422 libavutil/hwcontext.c     frame_tmp->width  = ctx->width;
ctx               423 libavutil/hwcontext.c     frame_tmp->height = ctx->height;
ctx               445 libavutil/hwcontext.c     AVHWFramesContext *ctx;
ctx               484 libavutil/hwcontext.c             ctx = (AVHWFramesContext*)src->hw_frames_ctx->data;
ctx               486 libavutil/hwcontext.c             ret = ctx->internal->hw_type->transfer_data_from(ctx, dst, src);
ctx               490 libavutil/hwcontext.c             ctx = (AVHWFramesContext*)dst->hw_frames_ctx->data;
ctx               492 libavutil/hwcontext.c             ret = ctx->internal->hw_type->transfer_data_to(ctx, dst, src);
ctx               504 libavutil/hwcontext.c     AVHWFramesContext *ctx = (AVHWFramesContext*)hwframe_ref->data;
ctx               507 libavutil/hwcontext.c     if (ctx->internal->source_frames) {
ctx               512 libavutil/hwcontext.c         frame->format = ctx->format;
ctx               521 libavutil/hwcontext.c         ret = av_hwframe_get_buffer(ctx->internal->source_frames,
ctx               529 libavutil/hwcontext.c                              ctx->internal->source_allocation_map_flags);
ctx               531 libavutil/hwcontext.c             av_log(ctx, AV_LOG_ERROR, "Failed to map frame into derived "
ctx               544 libavutil/hwcontext.c     if (!ctx->internal->hw_type->frames_get_buffer)
ctx               547 libavutil/hwcontext.c     if (!ctx->pool)
ctx               554 libavutil/hwcontext.c     ret = ctx->internal->hw_type->frames_get_buffer(ctx, frame);
ctx               567 libavutil/hwcontext.c     AVHWDeviceContext *ctx = (AVHWDeviceContext*)ref->data;
ctx               568 libavutil/hwcontext.c     const HWContextType  *hw_type = ctx->internal->hw_type;
ctx               579 libavutil/hwcontext.c     AVHWDeviceContext *ctx = (AVHWDeviceContext*)ref->data;
ctx               580 libavutil/hwcontext.c     const HWContextType  *hw_type = ctx->internal->hw_type;
ctx               593 libavutil/hwcontext.c     if (hw_type->frames_get_constraints(ctx, hwconfig, constraints) >= 0) {
ctx               725 libavutil/hwcontext.c     AVHWFramesContext *ctx = opaque;
ctx               728 libavutil/hwcontext.c         hwmap->unmap(ctx, hwmap);
ctx               739 libavutil/hwcontext.c                           void (*unmap)(AVHWFramesContext *ctx,
ctx               743 libavutil/hwcontext.c     AVHWFramesContext *ctx = (AVHWFramesContext*)hwframe_ref->data;
ctx               772 libavutil/hwcontext.c                                    &ff_hwframe_unmap, ctx, 0);
ctx               104 libavutil/hwcontext.h     void (*free)(struct AVHWDeviceContext *ctx);
ctx               170 libavutil/hwcontext.h     void (*free)(struct AVHWFramesContext *ctx);
ctx                56 libavutil/hwcontext_cuda.c static int cuda_frames_get_constraints(AVHWDeviceContext *ctx,
ctx                83 libavutil/hwcontext_cuda.c     AVHWFramesContext        *ctx = opaque;
ctx                84 libavutil/hwcontext_cuda.c     AVHWDeviceContext *device_ctx = ctx->device_ctx;
ctx                99 libavutil/hwcontext_cuda.c     AVHWFramesContext        *ctx = opaque;
ctx               100 libavutil/hwcontext_cuda.c     AVHWDeviceContext *device_ctx = ctx->device_ctx;
ctx               117 libavutil/hwcontext_cuda.c     ret = av_buffer_create((uint8_t*)data, size, cuda_buffer_free, ctx, 0);
ctx               128 libavutil/hwcontext_cuda.c static int cuda_frames_init(AVHWFramesContext *ctx)
ctx               130 libavutil/hwcontext_cuda.c     CUDAFramesContext *priv = ctx->internal->priv;
ctx               134 libavutil/hwcontext_cuda.c         if (ctx->sw_format == supported_formats[i])
ctx               138 libavutil/hwcontext_cuda.c         av_log(ctx, AV_LOG_ERROR, "Pixel format '%s' is not supported\n",
ctx               139 libavutil/hwcontext_cuda.c                av_get_pix_fmt_name(ctx->sw_format));
ctx               143 libavutil/hwcontext_cuda.c     av_pix_fmt_get_chroma_sub_sample(ctx->sw_format, &priv->shift_width, &priv->shift_height);
ctx               145 libavutil/hwcontext_cuda.c     if (!ctx->pool) {
ctx               146 libavutil/hwcontext_cuda.c         int size = av_image_get_buffer_size(ctx->sw_format, ctx->width, ctx->height, CUDA_FRAME_ALIGNMENT);
ctx               150 libavutil/hwcontext_cuda.c         ctx->internal->pool_internal = av_buffer_pool_init2(size, ctx, cuda_pool_alloc, NULL);
ctx               151 libavutil/hwcontext_cuda.c         if (!ctx->internal->pool_internal)
ctx               158 libavutil/hwcontext_cuda.c static int cuda_get_buffer(AVHWFramesContext *ctx, AVFrame *frame)
ctx               162 libavutil/hwcontext_cuda.c     frame->buf[0] = av_buffer_pool_get(ctx->pool);
ctx               167 libavutil/hwcontext_cuda.c                                ctx->sw_format, ctx->width, ctx->height, CUDA_FRAME_ALIGNMENT);
ctx               173 libavutil/hwcontext_cuda.c     if (ctx->sw_format == AV_PIX_FMT_YUV420P) {
ctx               176 libavutil/hwcontext_cuda.c         frame->data[1]     = frame->data[2] + frame->linesize[2] * ctx->height / 2;
ctx               180 libavutil/hwcontext_cuda.c     frame->width  = ctx->width;
ctx               181 libavutil/hwcontext_cuda.c     frame->height = ctx->height;
ctx               186 libavutil/hwcontext_cuda.c static int cuda_transfer_get_formats(AVHWFramesContext *ctx,
ctx               196 libavutil/hwcontext_cuda.c     fmts[0] = ctx->sw_format;
ctx               204 libavutil/hwcontext_cuda.c static int cuda_transfer_data(AVHWFramesContext *ctx, AVFrame *dst,
ctx               207 libavutil/hwcontext_cuda.c     CUDAFramesContext       *priv = ctx->internal->priv;
ctx               208 libavutil/hwcontext_cuda.c     AVHWDeviceContext *device_ctx = ctx->device_ctx;
ctx               286 libavutil/hwcontext_cuda.c static int cuda_device_init(AVHWDeviceContext *ctx)
ctx               288 libavutil/hwcontext_cuda.c     AVCUDADeviceContext *hwctx = ctx->hwctx;
ctx               298 libavutil/hwcontext_cuda.c         ret = cuda_load_functions(&hwctx->internal->cuda_dl, ctx);
ctx               300 libavutil/hwcontext_cuda.c             av_log(ctx, AV_LOG_ERROR, "Could not dynamically load CUDA\n");
ctx               308 libavutil/hwcontext_cuda.c     cuda_device_uninit(ctx);
ctx                93 libavutil/hwcontext_d3d11va.c static void d3d11va_default_lock(void *ctx)
ctx                95 libavutil/hwcontext_d3d11va.c     WaitForSingleObjectEx(ctx, INFINITE, FALSE);
ctx                98 libavutil/hwcontext_d3d11va.c static void d3d11va_default_unlock(void *ctx)
ctx               100 libavutil/hwcontext_d3d11va.c     ReleaseMutex(ctx);
ctx               103 libavutil/hwcontext_d3d11va.c static void d3d11va_frames_uninit(AVHWFramesContext *ctx)
ctx               105 libavutil/hwcontext_d3d11va.c     AVD3D11VAFramesContext *frames_hwctx = ctx->hwctx;
ctx               106 libavutil/hwcontext_d3d11va.c     D3D11VAFramesContext *s = ctx->internal->priv;
ctx               117 libavutil/hwcontext_d3d11va.c static int d3d11va_frames_get_constraints(AVHWDeviceContext *ctx,
ctx               121 libavutil/hwcontext_d3d11va.c     AVD3D11VADeviceContext *device_hwctx = ctx->hwctx;
ctx               177 libavutil/hwcontext_d3d11va.c static AVBufferRef *d3d11va_alloc_single(AVHWFramesContext *ctx)
ctx               179 libavutil/hwcontext_d3d11va.c     D3D11VAFramesContext       *s = ctx->internal->priv;
ctx               180 libavutil/hwcontext_d3d11va.c     AVD3D11VAFramesContext *hwctx = ctx->hwctx;
ctx               181 libavutil/hwcontext_d3d11va.c     AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx->hwctx;
ctx               185 libavutil/hwcontext_d3d11va.c         .Width      = ctx->width,
ctx               186 libavutil/hwcontext_d3d11va.c         .Height     = ctx->height,
ctx               198 libavutil/hwcontext_d3d11va.c         av_log(ctx, AV_LOG_ERROR, "Could not create the texture (%lx)\n", (long)hr);
ctx               207 libavutil/hwcontext_d3d11va.c     AVHWFramesContext        *ctx = (AVHWFramesContext*)opaque;
ctx               208 libavutil/hwcontext_d3d11va.c     D3D11VAFramesContext       *s = ctx->internal->priv;
ctx               209 libavutil/hwcontext_d3d11va.c     AVD3D11VAFramesContext *hwctx = ctx->hwctx;
ctx               213 libavutil/hwcontext_d3d11va.c         return d3d11va_alloc_single(ctx);
ctx               218 libavutil/hwcontext_d3d11va.c         av_log(ctx, AV_LOG_ERROR, "Static surface pool size exceeded.\n");
ctx               226 libavutil/hwcontext_d3d11va.c static int d3d11va_frames_init(AVHWFramesContext *ctx)
ctx               228 libavutil/hwcontext_d3d11va.c     AVD3D11VAFramesContext *hwctx        = ctx->hwctx;
ctx               229 libavutil/hwcontext_d3d11va.c     AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx->hwctx;
ctx               230 libavutil/hwcontext_d3d11va.c     D3D11VAFramesContext              *s = ctx->internal->priv;
ctx               237 libavutil/hwcontext_d3d11va.c         if (ctx->sw_format == supported_formats[i].pix_fmt) {
ctx               243 libavutil/hwcontext_d3d11va.c         av_log(ctx, AV_LOG_ERROR, "Unsupported pixel format: %s\n",
ctx               244 libavutil/hwcontext_d3d11va.c                av_get_pix_fmt_name(ctx->sw_format));
ctx               249 libavutil/hwcontext_d3d11va.c         .Width      = ctx->width,
ctx               250 libavutil/hwcontext_d3d11va.c         .Height     = ctx->height,
ctx               254 libavutil/hwcontext_d3d11va.c         .ArraySize  = ctx->initial_pool_size,
ctx               267 libavutil/hwcontext_d3d11va.c             av_log(ctx, AV_LOG_ERROR, "User-provided texture has mismatching parameters\n");
ctx               273 libavutil/hwcontext_d3d11va.c             av_log(ctx, AV_LOG_ERROR, "Could not create the texture (%lx)\n", (long)hr);
ctx               278 libavutil/hwcontext_d3d11va.c     ctx->internal->pool_internal = av_buffer_pool_init2(sizeof(AVD3D11FrameDescriptor),
ctx               279 libavutil/hwcontext_d3d11va.c                                                         ctx, d3d11va_pool_alloc, NULL);
ctx               280 libavutil/hwcontext_d3d11va.c     if (!ctx->internal->pool_internal)
ctx               286 libavutil/hwcontext_d3d11va.c static int d3d11va_get_buffer(AVHWFramesContext *ctx, AVFrame *frame)
ctx               290 libavutil/hwcontext_d3d11va.c     frame->buf[0] = av_buffer_pool_get(ctx->pool);
ctx               299 libavutil/hwcontext_d3d11va.c     frame->width   = ctx->width;
ctx               300 libavutil/hwcontext_d3d11va.c     frame->height  = ctx->height;
ctx               305 libavutil/hwcontext_d3d11va.c static int d3d11va_transfer_get_formats(AVHWFramesContext *ctx,
ctx               309 libavutil/hwcontext_d3d11va.c     D3D11VAFramesContext *s = ctx->internal->priv;
ctx               316 libavutil/hwcontext_d3d11va.c     fmts[0] = ctx->sw_format;
ctx               328 libavutil/hwcontext_d3d11va.c static int d3d11va_create_staging_texture(AVHWFramesContext *ctx)
ctx               330 libavutil/hwcontext_d3d11va.c     AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx->hwctx;
ctx               331 libavutil/hwcontext_d3d11va.c     D3D11VAFramesContext              *s = ctx->internal->priv;
ctx               334 libavutil/hwcontext_d3d11va.c         .Width          = ctx->width,
ctx               335 libavutil/hwcontext_d3d11va.c         .Height         = ctx->height,
ctx               346 libavutil/hwcontext_d3d11va.c         av_log(ctx, AV_LOG_ERROR, "Could not create the staging texture (%lx)\n", (long)hr);
ctx               354 libavutil/hwcontext_d3d11va.c                               AVHWFramesContext *ctx,
ctx               363 libavutil/hwcontext_d3d11va.c     av_image_fill_pointers(data, ctx->sw_format, desc->Height,
ctx               367 libavutil/hwcontext_d3d11va.c static int d3d11va_transfer_data(AVHWFramesContext *ctx, AVFrame *dst,
ctx               370 libavutil/hwcontext_d3d11va.c     AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx->hwctx;
ctx               371 libavutil/hwcontext_d3d11va.c     D3D11VAFramesContext              *s = ctx->internal->priv;
ctx               387 libavutil/hwcontext_d3d11va.c     if (frame->hw_frames_ctx->data != (uint8_t *)ctx || other->format != ctx->sw_format)
ctx               393 libavutil/hwcontext_d3d11va.c         int res = d3d11va_create_staging_texture(ctx);
ctx               412 libavutil/hwcontext_d3d11va.c         fill_texture_ptrs(map_data, map_linesize, ctx, &desc, &map);
ctx               415 libavutil/hwcontext_d3d11va.c                       ctx->sw_format, w, h);
ctx               424 libavutil/hwcontext_d3d11va.c         fill_texture_ptrs(map_data, map_linesize, ctx, &desc, &map);
ctx               427 libavutil/hwcontext_d3d11va.c                       ctx->sw_format, w, h);
ctx               440 libavutil/hwcontext_d3d11va.c     av_log(ctx, AV_LOG_ERROR, "Unable to lock D3D11VA surface (%lx)\n", (long)hr);
ctx               514 libavutil/hwcontext_d3d11va.c static int d3d11va_device_create(AVHWDeviceContext *ctx, const char *device,
ctx               517 libavutil/hwcontext_d3d11va.c     AVD3D11VADeviceContext *device_hwctx = ctx->hwctx;
ctx               538 libavutil/hwcontext_d3d11va.c         av_log(ctx, AV_LOG_ERROR, "Failed to load D3D11 library or its functions\n");
ctx               557 libavutil/hwcontext_d3d11va.c             av_log(ctx, AV_LOG_INFO, "Using device %04x:%04x (%ls).\n",
ctx               567 libavutil/hwcontext_d3d11va.c         av_log(ctx, AV_LOG_ERROR, "Failed to create Direct3D device (%lx)\n", (long)hr);
ctx               171 libavutil/hwcontext_drm.c static int drm_transfer_get_formats(AVHWFramesContext *ctx,
ctx               181 libavutil/hwcontext_drm.c     pix_fmts[0] = ctx->sw_format;
ctx                91 libavutil/hwcontext_dxva2.c static void dxva2_frames_uninit(AVHWFramesContext *ctx)
ctx                93 libavutil/hwcontext_dxva2.c     AVDXVA2DeviceContext *device_hwctx = ctx->device_ctx->hwctx;
ctx                94 libavutil/hwcontext_dxva2.c     AVDXVA2FramesContext *frames_hwctx = ctx->hwctx;
ctx                95 libavutil/hwcontext_dxva2.c     DXVA2FramesContext *s = ctx->internal->priv;
ctx               129 libavutil/hwcontext_dxva2.c     AVHWFramesContext      *ctx = (AVHWFramesContext*)opaque;
ctx               130 libavutil/hwcontext_dxva2.c     DXVA2FramesContext       *s = ctx->internal->priv;
ctx               131 libavutil/hwcontext_dxva2.c     AVDXVA2FramesContext *hwctx = ctx->hwctx;
ctx               142 libavutil/hwcontext_dxva2.c static int dxva2_init_pool(AVHWFramesContext *ctx)
ctx               144 libavutil/hwcontext_dxva2.c     AVDXVA2FramesContext *frames_hwctx = ctx->hwctx;
ctx               145 libavutil/hwcontext_dxva2.c     AVDXVA2DeviceContext *device_hwctx = ctx->device_ctx->hwctx;
ctx               146 libavutil/hwcontext_dxva2.c     DXVA2FramesContext              *s = ctx->internal->priv;
ctx               152 libavutil/hwcontext_dxva2.c     if (ctx->initial_pool_size <= 0)
ctx               157 libavutil/hwcontext_dxva2.c         av_log(ctx, AV_LOG_ERROR, "Failed to open device handle\n");
ctx               166 libavutil/hwcontext_dxva2.c         av_log(ctx, AV_LOG_ERROR, "Failed to create the video service\n");
ctx               171 libavutil/hwcontext_dxva2.c         if (ctx->sw_format == supported_formats[i].pix_fmt) {
ctx               177 libavutil/hwcontext_dxva2.c         av_log(ctx, AV_LOG_ERROR, "Unsupported pixel format: %s\n",
ctx               178 libavutil/hwcontext_dxva2.c                av_get_pix_fmt_name(ctx->sw_format));
ctx               182 libavutil/hwcontext_dxva2.c     s->surfaces_internal = av_mallocz_array(ctx->initial_pool_size,
ctx               188 libavutil/hwcontext_dxva2.c                                                         ctx->width, ctx->height,
ctx               189 libavutil/hwcontext_dxva2.c                                                         ctx->initial_pool_size - 1,
ctx               194 libavutil/hwcontext_dxva2.c         av_log(ctx, AV_LOG_ERROR, "Could not create the surfaces\n");
ctx               198 libavutil/hwcontext_dxva2.c     ctx->internal->pool_internal = av_buffer_pool_init2(sizeof(*s->surfaces_internal),
ctx               199 libavutil/hwcontext_dxva2.c                                                         ctx, dxva2_pool_alloc, NULL);
ctx               200 libavutil/hwcontext_dxva2.c     if (!ctx->internal->pool_internal)
ctx               204 libavutil/hwcontext_dxva2.c     frames_hwctx->nb_surfaces = ctx->initial_pool_size;
ctx               209 libavutil/hwcontext_dxva2.c static int dxva2_frames_init(AVHWFramesContext *ctx)
ctx               211 libavutil/hwcontext_dxva2.c     AVDXVA2FramesContext *hwctx = ctx->hwctx;
ctx               212 libavutil/hwcontext_dxva2.c     DXVA2FramesContext       *s = ctx->internal->priv;
ctx               217 libavutil/hwcontext_dxva2.c         av_log(ctx, AV_LOG_ERROR, "Unknown surface type: %lu\n",
ctx               225 libavutil/hwcontext_dxva2.c     if (!ctx->pool) {
ctx               226 libavutil/hwcontext_dxva2.c         ret = dxva2_init_pool(ctx);
ctx               228 libavutil/hwcontext_dxva2.c             av_log(ctx, AV_LOG_ERROR, "Error creating an internal frame pool\n");
ctx               236 libavutil/hwcontext_dxva2.c static int dxva2_get_buffer(AVHWFramesContext *ctx, AVFrame *frame)
ctx               238 libavutil/hwcontext_dxva2.c     frame->buf[0] = av_buffer_pool_get(ctx->pool);
ctx               244 libavutil/hwcontext_dxva2.c     frame->width   = ctx->width;
ctx               245 libavutil/hwcontext_dxva2.c     frame->height  = ctx->height;
ctx               250 libavutil/hwcontext_dxva2.c static int dxva2_transfer_get_formats(AVHWFramesContext *ctx,
ctx               260 libavutil/hwcontext_dxva2.c     fmts[0] = ctx->sw_format;
ctx               268 libavutil/hwcontext_dxva2.c static void dxva2_unmap_frame(AVHWFramesContext *ctx, HWMapDescriptor *hwmap)
ctx               275 libavutil/hwcontext_dxva2.c static int dxva2_map_frame(AVHWFramesContext *ctx, AVFrame *dst, const AVFrame *src,
ctx               290 libavutil/hwcontext_dxva2.c         av_log(ctx, AV_LOG_ERROR, "Error getting a surface description\n");
ctx               301 libavutil/hwcontext_dxva2.c         av_log(ctx, AV_LOG_ERROR, "Unable to lock DXVA2 surface\n");
ctx               333 libavutil/hwcontext_dxva2.c static int dxva2_transfer_data_to(AVHWFramesContext *ctx, AVFrame *dst,
ctx               339 libavutil/hwcontext_dxva2.c     if (src->format != ctx->sw_format)
ctx               347 libavutil/hwcontext_dxva2.c     ret = dxva2_map_frame(ctx, map, dst, AV_HWFRAME_MAP_WRITE | AV_HWFRAME_MAP_OVERWRITE);
ctx               352 libavutil/hwcontext_dxva2.c                   ctx->sw_format, src->width, src->height);
ctx               359 libavutil/hwcontext_dxva2.c static int dxva2_transfer_data_from(AVHWFramesContext *ctx, AVFrame *dst,
ctx               366 libavutil/hwcontext_dxva2.c     if (dst->format != ctx->sw_format)
ctx               374 libavutil/hwcontext_dxva2.c     ret = dxva2_map_frame(ctx, map, src, AV_HWFRAME_MAP_READ);
ctx               383 libavutil/hwcontext_dxva2.c                           ctx->sw_format, src->width, src->height);
ctx               389 libavutil/hwcontext_dxva2.c static int dxva2_map_from(AVHWFramesContext *ctx,
ctx               394 libavutil/hwcontext_dxva2.c     if (dst->format != AV_PIX_FMT_NONE && dst->format != ctx->sw_format)
ctx               396 libavutil/hwcontext_dxva2.c     dst->format = ctx->sw_format;
ctx               398 libavutil/hwcontext_dxva2.c     err = dxva2_map_frame(ctx, dst, src, flags);
ctx               409 libavutil/hwcontext_dxva2.c static void dxva2_device_free(AVHWDeviceContext *ctx)
ctx               411 libavutil/hwcontext_dxva2.c     AVDXVA2DeviceContext *hwctx = ctx->hwctx;
ctx               412 libavutil/hwcontext_dxva2.c     DXVA2DevicePriv       *priv = ctx->user_opaque;
ctx               432 libavutil/hwcontext_dxva2.c     av_freep(&ctx->user_opaque);
ctx               435 libavutil/hwcontext_dxva2.c static int dxva2_device_create9(AVHWDeviceContext *ctx, UINT adapter)
ctx               437 libavutil/hwcontext_dxva2.c     DXVA2DevicePriv *priv = ctx->user_opaque;
ctx               443 libavutil/hwcontext_dxva2.c         av_log(ctx, AV_LOG_ERROR, "Failed to locate Direct3DCreate9\n");
ctx               449 libavutil/hwcontext_dxva2.c         av_log(ctx, AV_LOG_ERROR, "Failed to create IDirect3D object\n");
ctx               461 libavutil/hwcontext_dxva2.c         av_log(ctx, AV_LOG_ERROR, "Failed to create Direct3D device\n");
ctx               468 libavutil/hwcontext_dxva2.c static int dxva2_device_create9ex(AVHWDeviceContext *ctx, UINT adapter)
ctx               470 libavutil/hwcontext_dxva2.c     DXVA2DevicePriv *priv = ctx->user_opaque;
ctx               501 libavutil/hwcontext_dxva2.c     av_log(ctx, AV_LOG_VERBOSE, "Using D3D9Ex device.\n");
ctx               507 libavutil/hwcontext_dxva2.c static int dxva2_device_create(AVHWDeviceContext *ctx, const char *device,
ctx               510 libavutil/hwcontext_dxva2.c     AVDXVA2DeviceContext *hwctx = ctx->hwctx;
ctx               525 libavutil/hwcontext_dxva2.c     ctx->user_opaque = priv;
ctx               526 libavutil/hwcontext_dxva2.c     ctx->free        = dxva2_device_free;
ctx               532 libavutil/hwcontext_dxva2.c         av_log(ctx, AV_LOG_ERROR, "Failed to load D3D9 library\n");
ctx               537 libavutil/hwcontext_dxva2.c         av_log(ctx, AV_LOG_ERROR, "Failed to load DXVA2 library\n");
ctx               544 libavutil/hwcontext_dxva2.c         av_log(ctx, AV_LOG_ERROR, "Failed to locate DXVA2CreateDirect3DDeviceManager9\n");
ctx               548 libavutil/hwcontext_dxva2.c     if (dxva2_device_create9ex(ctx, adapter) < 0) {
ctx               550 libavutil/hwcontext_dxva2.c         err = dxva2_device_create9(ctx, adapter);
ctx               557 libavutil/hwcontext_dxva2.c         av_log(ctx, AV_LOG_ERROR, "Failed to create Direct3D device manager\n");
ctx               563 libavutil/hwcontext_dxva2.c         av_log(ctx, AV_LOG_ERROR, "Failed to bind Direct3D device to device manager\n");
ctx               569 libavutil/hwcontext_dxva2.c         av_log(ctx, AV_LOG_ERROR, "Failed to open device handle\n");
ctx                67 libavutil/hwcontext_internal.h     int              (*device_create)(AVHWDeviceContext *ctx, const char *device,
ctx                73 libavutil/hwcontext_internal.h     int              (*device_init)(AVHWDeviceContext *ctx);
ctx                74 libavutil/hwcontext_internal.h     void             (*device_uninit)(AVHWDeviceContext *ctx);
ctx                76 libavutil/hwcontext_internal.h     int              (*frames_get_constraints)(AVHWDeviceContext *ctx,
ctx                80 libavutil/hwcontext_internal.h     int              (*frames_init)(AVHWFramesContext *ctx);
ctx                81 libavutil/hwcontext_internal.h     void             (*frames_uninit)(AVHWFramesContext *ctx);
ctx                83 libavutil/hwcontext_internal.h     int              (*frames_get_buffer)(AVHWFramesContext *ctx, AVFrame *frame);
ctx                84 libavutil/hwcontext_internal.h     int              (*transfer_get_formats)(AVHWFramesContext *ctx,
ctx                87 libavutil/hwcontext_internal.h     int              (*transfer_data_to)(AVHWFramesContext *ctx, AVFrame *dst,
ctx                89 libavutil/hwcontext_internal.h     int              (*transfer_data_from)(AVHWFramesContext *ctx, AVFrame *dst,
ctx                92 libavutil/hwcontext_internal.h     int              (*map_to)(AVHWFramesContext *ctx, AVFrame *dst,
ctx                94 libavutil/hwcontext_internal.h     int              (*map_from)(AVHWFramesContext *ctx, AVFrame *dst,
ctx               146 libavutil/hwcontext_internal.h     void (*unmap)(AVHWFramesContext *ctx,
ctx               156 libavutil/hwcontext_internal.h                           void (*unmap)(AVHWFramesContext *ctx,
ctx                27 libavutil/hwcontext_mediacodec.c static int mc_device_create(AVHWDeviceContext *ctx, const char *device,
ctx                31 libavutil/hwcontext_mediacodec.c         av_log(ctx, AV_LOG_ERROR, "Device selection unsupported.\n");
ctx               151 libavutil/hwcontext_opencl.c     AVHWDeviceContext *ctx = user_data;
ctx               152 libavutil/hwcontext_opencl.c     av_log(ctx, AV_LOG_ERROR, "OpenCL error: %s\n", errinfo);
ctx               130 libavutil/hwcontext_qsv.c static int qsv_device_init(AVHWDeviceContext *ctx)
ctx               132 libavutil/hwcontext_qsv.c     AVQSVDeviceContext *hwctx = ctx->hwctx;
ctx               133 libavutil/hwcontext_qsv.c     QSVDeviceContext       *s = ctx->internal->priv;
ctx               149 libavutil/hwcontext_qsv.c         av_log(ctx, AV_LOG_VERBOSE, "No supported hw handle could be retrieved "
ctx               157 libavutil/hwcontext_qsv.c         av_log(ctx, AV_LOG_ERROR, "Error querying the session attributes\n");
ctx               164 libavutil/hwcontext_qsv.c static void qsv_frames_uninit(AVHWFramesContext *ctx)
ctx               166 libavutil/hwcontext_qsv.c     QSVFramesContext *s = ctx->internal->priv;
ctx               199 libavutil/hwcontext_qsv.c     AVHWFramesContext    *ctx = (AVHWFramesContext*)opaque;
ctx               200 libavutil/hwcontext_qsv.c     QSVFramesContext       *s = ctx->internal->priv;
ctx               201 libavutil/hwcontext_qsv.c     AVQSVFramesContext *hwctx = ctx->hwctx;
ctx               212 libavutil/hwcontext_qsv.c static int qsv_init_child_ctx(AVHWFramesContext *ctx)
ctx               214 libavutil/hwcontext_qsv.c     AVQSVFramesContext     *hwctx = ctx->hwctx;
ctx               215 libavutil/hwcontext_qsv.c     QSVFramesContext           *s = ctx->internal->priv;
ctx               216 libavutil/hwcontext_qsv.c     QSVDeviceContext *device_priv = ctx->device_ctx->internal->priv;
ctx               227 libavutil/hwcontext_qsv.c         av_log(ctx, AV_LOG_ERROR,
ctx               253 libavutil/hwcontext_qsv.c         av_log(ctx, AV_LOG_ERROR, "Error initializing a child device context\n");
ctx               265 libavutil/hwcontext_qsv.c     child_frames_ctx->sw_format         = ctx->sw_format;
ctx               266 libavutil/hwcontext_qsv.c     child_frames_ctx->initial_pool_size = ctx->initial_pool_size;
ctx               267 libavutil/hwcontext_qsv.c     child_frames_ctx->width             = FFALIGN(ctx->width, 16);
ctx               268 libavutil/hwcontext_qsv.c     child_frames_ctx->height            = FFALIGN(ctx->height, 16);
ctx               282 libavutil/hwcontext_qsv.c         av_log(ctx, AV_LOG_ERROR, "Error initializing a child frames context\n");
ctx               289 libavutil/hwcontext_qsv.c         for (i = 0; i < ctx->initial_pool_size; i++)
ctx               297 libavutil/hwcontext_qsv.c         for (i = 0; i < ctx->initial_pool_size; i++)
ctx               315 libavutil/hwcontext_qsv.c static int qsv_init_surface(AVHWFramesContext *ctx, mfxFrameSurface1 *surf)
ctx               320 libavutil/hwcontext_qsv.c     desc = av_pix_fmt_desc_get(ctx->sw_format);
ctx               324 libavutil/hwcontext_qsv.c     fourcc = qsv_fourcc_from_pix_fmt(ctx->sw_format);
ctx               340 libavutil/hwcontext_qsv.c     surf->Info.Width          = FFALIGN(ctx->width, 16);
ctx               341 libavutil/hwcontext_qsv.c     surf->Info.CropW          = ctx->width;
ctx               342 libavutil/hwcontext_qsv.c     surf->Info.Height         = FFALIGN(ctx->height, 16);
ctx               343 libavutil/hwcontext_qsv.c     surf->Info.CropH          = ctx->height;
ctx               351 libavutil/hwcontext_qsv.c static int qsv_init_pool(AVHWFramesContext *ctx, uint32_t fourcc)
ctx               353 libavutil/hwcontext_qsv.c     QSVFramesContext              *s = ctx->internal->priv;
ctx               354 libavutil/hwcontext_qsv.c     AVQSVFramesContext *frames_hwctx = ctx->hwctx;
ctx               358 libavutil/hwcontext_qsv.c     if (ctx->initial_pool_size <= 0) {
ctx               359 libavutil/hwcontext_qsv.c         av_log(ctx, AV_LOG_ERROR, "QSV requires a fixed frame pool size\n");
ctx               363 libavutil/hwcontext_qsv.c     s->surfaces_internal = av_mallocz_array(ctx->initial_pool_size,
ctx               368 libavutil/hwcontext_qsv.c     for (i = 0; i < ctx->initial_pool_size; i++) {
ctx               369 libavutil/hwcontext_qsv.c         ret = qsv_init_surface(ctx, &s->surfaces_internal[i]);
ctx               375 libavutil/hwcontext_qsv.c         ret = qsv_init_child_ctx(ctx);
ctx               380 libavutil/hwcontext_qsv.c     ctx->internal->pool_internal = av_buffer_pool_init2(sizeof(mfxFrameSurface1),
ctx               381 libavutil/hwcontext_qsv.c                                                         ctx, qsv_pool_alloc, NULL);
ctx               382 libavutil/hwcontext_qsv.c     if (!ctx->internal->pool_internal)
ctx               386 libavutil/hwcontext_qsv.c     frames_hwctx->nb_surfaces = ctx->initial_pool_size;
ctx               394 libavutil/hwcontext_qsv.c     AVHWFramesContext    *ctx = pthis;
ctx               395 libavutil/hwcontext_qsv.c     QSVFramesContext       *s = ctx->internal->priv;
ctx               396 libavutil/hwcontext_qsv.c     AVQSVFramesContext *hwctx = ctx->hwctx;
ctx               406 libavutil/hwcontext_qsv.c         av_log(ctx, AV_LOG_ERROR, "Mismatching surface properties in an "
ctx               440 libavutil/hwcontext_qsv.c static int qsv_init_internal_session(AVHWFramesContext *ctx,
ctx               443 libavutil/hwcontext_qsv.c     QSVFramesContext              *s = ctx->internal->priv;
ctx               444 libavutil/hwcontext_qsv.c     AVQSVFramesContext *frames_hwctx = ctx->hwctx;
ctx               445 libavutil/hwcontext_qsv.c     QSVDeviceContext   *device_priv  = ctx->device_ctx->internal->priv;
ctx               449 libavutil/hwcontext_qsv.c         .pthis  = ctx,
ctx               462 libavutil/hwcontext_qsv.c         av_log(ctx, AV_LOG_ERROR, "Error initializing an internal session\n");
ctx               507 libavutil/hwcontext_qsv.c         av_log(ctx, AV_LOG_VERBOSE, "Error opening the internal VPP session."
ctx               516 libavutil/hwcontext_qsv.c static int qsv_frames_init(AVHWFramesContext *ctx)
ctx               518 libavutil/hwcontext_qsv.c     QSVFramesContext              *s = ctx->internal->priv;
ctx               519 libavutil/hwcontext_qsv.c     AVQSVFramesContext *frames_hwctx = ctx->hwctx;
ctx               526 libavutil/hwcontext_qsv.c     fourcc = qsv_fourcc_from_pix_fmt(ctx->sw_format);
ctx               528 libavutil/hwcontext_qsv.c         av_log(ctx, AV_LOG_ERROR, "Unsupported pixel format\n");
ctx               532 libavutil/hwcontext_qsv.c     if (!ctx->pool) {
ctx               533 libavutil/hwcontext_qsv.c         ret = qsv_init_pool(ctx, fourcc);
ctx               535 libavutil/hwcontext_qsv.c             av_log(ctx, AV_LOG_ERROR, "Error creating an internal frame pool\n");
ctx               582 libavutil/hwcontext_qsv.c static int qsv_get_buffer(AVHWFramesContext *ctx, AVFrame *frame)
ctx               584 libavutil/hwcontext_qsv.c     frame->buf[0] = av_buffer_pool_get(ctx->pool);
ctx               590 libavutil/hwcontext_qsv.c     frame->width   = ctx->width;
ctx               591 libavutil/hwcontext_qsv.c     frame->height  = ctx->height;
ctx               596 libavutil/hwcontext_qsv.c static int qsv_transfer_get_formats(AVHWFramesContext *ctx,
ctx               606 libavutil/hwcontext_qsv.c     fmts[0] = ctx->sw_format;
ctx               662 libavutil/hwcontext_qsv.c static int qsv_map_from(AVHWFramesContext *ctx,
ctx               665 libavutil/hwcontext_qsv.c     QSVFramesContext *s = ctx->internal->priv;
ctx               733 libavutil/hwcontext_qsv.c static int qsv_transfer_data_child(AVHWFramesContext *ctx, AVFrame *dst,
ctx               736 libavutil/hwcontext_qsv.c     QSVFramesContext *s = ctx->internal->priv;
ctx               810 libavutil/hwcontext_qsv.c static int qsv_transfer_data_from(AVHWFramesContext *ctx, AVFrame *dst,
ctx               813 libavutil/hwcontext_qsv.c     QSVFramesContext  *s = ctx->internal->priv;
ctx               826 libavutil/hwcontext_qsv.c                 ret = qsv_init_internal_session(ctx, &s->session_download, 0);
ctx               848 libavutil/hwcontext_qsv.c             return qsv_transfer_data_child(ctx, dst, src);
ctx               850 libavutil/hwcontext_qsv.c         av_log(ctx, AV_LOG_ERROR, "Surface download not possible\n");
ctx               864 libavutil/hwcontext_qsv.c         av_log(ctx, AV_LOG_ERROR, "Error downloading the surface\n");
ctx               872 libavutil/hwcontext_qsv.c         av_log(ctx, AV_LOG_ERROR, "Error synchronizing the operation: %d\n", err);
ctx               879 libavutil/hwcontext_qsv.c static int qsv_transfer_data_to(AVHWFramesContext *ctx, AVFrame *dst,
ctx               882 libavutil/hwcontext_qsv.c     QSVFramesContext   *s = ctx->internal->priv;
ctx               900 libavutil/hwcontext_qsv.c                 ret = qsv_init_internal_session(ctx, &s->session_upload, 1);
ctx               940 libavutil/hwcontext_qsv.c             return qsv_transfer_data_child(ctx, dst, src_frame);
ctx               942 libavutil/hwcontext_qsv.c         av_log(ctx, AV_LOG_ERROR, "Surface upload not possible\n");
ctx               956 libavutil/hwcontext_qsv.c         av_log(ctx, AV_LOG_ERROR, "Error uploading the surface\n");
ctx               964 libavutil/hwcontext_qsv.c         av_log(ctx, AV_LOG_ERROR, "Error synchronizing the operation\n");
ctx              1064 libavutil/hwcontext_qsv.c static int qsv_frames_get_constraints(AVHWDeviceContext *ctx,
ctx              1089 libavutil/hwcontext_qsv.c static void qsv_device_free(AVHWDeviceContext *ctx)
ctx              1091 libavutil/hwcontext_qsv.c     AVQSVDeviceContext *hwctx = ctx->hwctx;
ctx              1092 libavutil/hwcontext_qsv.c     QSVDevicePriv       *priv = ctx->user_opaque;
ctx              1133 libavutil/hwcontext_qsv.c static int qsv_device_derive_from_child(AVHWDeviceContext *ctx,
ctx              1138 libavutil/hwcontext_qsv.c     AVQSVDeviceContext *hwctx = ctx->hwctx;
ctx              1172 libavutil/hwcontext_qsv.c         av_log(ctx, AV_LOG_ERROR, "Error initializing an MFX session: "
ctx              1180 libavutil/hwcontext_qsv.c         av_log(ctx, AV_LOG_ERROR, "Error querying an MFX session: %d.\n", err);
ctx              1185 libavutil/hwcontext_qsv.c     av_log(ctx, AV_LOG_VERBOSE,
ctx              1193 libavutil/hwcontext_qsv.c         av_log(ctx, AV_LOG_ERROR,
ctx              1201 libavutil/hwcontext_qsv.c         av_log(ctx, AV_LOG_ERROR, "Error setting child device handle: "
ctx              1215 libavutil/hwcontext_qsv.c static int qsv_device_derive(AVHWDeviceContext *ctx,
ctx              1219 libavutil/hwcontext_qsv.c     return qsv_device_derive_from_child(ctx, MFX_IMPL_HARDWARE_ANY,
ctx              1223 libavutil/hwcontext_qsv.c static int qsv_device_create(AVHWDeviceContext *ctx, const char *device,
ctx              1239 libavutil/hwcontext_qsv.c     ctx->user_opaque = priv;
ctx              1240 libavutil/hwcontext_qsv.c     ctx->free        = qsv_device_free;
ctx              1257 libavutil/hwcontext_qsv.c         av_log(ctx, AV_LOG_ERROR, "No supported child device type is enabled\n");
ctx              1272 libavutil/hwcontext_qsv.c     return qsv_device_derive_from_child(ctx, impl, child_device, 0);
ctx               176 libavutil/hwcontext_vaapi.c     VAAPIDeviceContext *ctx = hwdev->internal->priv;
ctx               179 libavutil/hwcontext_vaapi.c     for (i = 0; i < ctx->nb_formats; i++) {
ctx               180 libavutil/hwcontext_vaapi.c         if (ctx->formats[i].pix_fmt == pix_fmt) {
ctx               182 libavutil/hwcontext_vaapi.c                 *image_format = &ctx->formats[i].image_format;
ctx               195 libavutil/hwcontext_vaapi.c     VAAPIDeviceContext *ctx = hwdev->internal->priv;
ctx               281 libavutil/hwcontext_vaapi.c         constraints->valid_sw_formats = av_malloc_array(ctx->nb_formats + 1,
ctx               287 libavutil/hwcontext_vaapi.c         for (i = 0; i < ctx->nb_formats; i++)
ctx               288 libavutil/hwcontext_vaapi.c             constraints->valid_sw_formats[i] = ctx->formats[i].pix_fmt;
ctx               333 libavutil/hwcontext_vaapi.c     VAAPIDeviceContext *ctx = hwdev->internal->priv;
ctx               358 libavutil/hwcontext_vaapi.c     ctx->formats  = av_malloc(image_count * sizeof(*ctx->formats));
ctx               359 libavutil/hwcontext_vaapi.c     if (!ctx->formats) {
ctx               363 libavutil/hwcontext_vaapi.c     ctx->nb_formats = 0;
ctx               373 libavutil/hwcontext_vaapi.c             ctx->formats[ctx->nb_formats].pix_fmt      = pix_fmt;
ctx               374 libavutil/hwcontext_vaapi.c             ctx->formats[ctx->nb_formats].image_format = image_list[i];
ctx               375 libavutil/hwcontext_vaapi.c             ++ctx->nb_formats;
ctx               416 libavutil/hwcontext_vaapi.c     av_freep(&ctx->formats);
ctx               423 libavutil/hwcontext_vaapi.c     VAAPIDeviceContext *ctx = hwdev->internal->priv;
ctx               425 libavutil/hwcontext_vaapi.c     av_freep(&ctx->formats);
ctx               447 libavutil/hwcontext_vaapi.c     VAAPIFramesContext     *ctx = hwfc->internal->priv;
ctx               458 libavutil/hwcontext_vaapi.c     vas = vaCreateSurfaces(hwctx->display, ctx->rt_format,
ctx               461 libavutil/hwcontext_vaapi.c                            ctx->attributes, ctx->nb_attributes);
ctx               491 libavutil/hwcontext_vaapi.c     VAAPIFramesContext     *ctx = hwfc->internal->priv;
ctx               518 libavutil/hwcontext_vaapi.c             ctx->nb_attributes =
ctx               521 libavutil/hwcontext_vaapi.c             ctx->attributes = av_malloc(ctx->nb_attributes *
ctx               522 libavutil/hwcontext_vaapi.c                                         sizeof(*ctx->attributes));
ctx               523 libavutil/hwcontext_vaapi.c             if (!ctx->attributes) {
ctx               529 libavutil/hwcontext_vaapi.c                 ctx->attributes[i] = avfc->attributes[i];
ctx               531 libavutil/hwcontext_vaapi.c                 ctx->attributes[i++] = (VASurfaceAttrib) {
ctx               539 libavutil/hwcontext_vaapi.c                 ctx->attributes[i++] = (VASurfaceAttrib) {
ctx               546 libavutil/hwcontext_vaapi.c             av_assert0(i == ctx->nb_attributes);
ctx               548 libavutil/hwcontext_vaapi.c             ctx->attributes = NULL;
ctx               549 libavutil/hwcontext_vaapi.c             ctx->nb_attributes = 0;
ctx               552 libavutil/hwcontext_vaapi.c         ctx->rt_format = desc->rt_format;
ctx               603 libavutil/hwcontext_vaapi.c     ctx->derive_works = 0;
ctx               612 libavutil/hwcontext_vaapi.c                 ctx->derive_works = 1;
ctx               636 libavutil/hwcontext_vaapi.c     av_freep(&ctx->attributes);
ctx               643 libavutil/hwcontext_vaapi.c     VAAPIFramesContext    *ctx = hwfc->internal->priv;
ctx               646 libavutil/hwcontext_vaapi.c     av_freep(&ctx->attributes);
ctx               667 libavutil/hwcontext_vaapi.c     VAAPIDeviceContext *ctx = hwfc->device_ctx->internal->priv;
ctx               672 libavutil/hwcontext_vaapi.c     for (i = 0; i < ctx->nb_formats; i++) {
ctx               673 libavutil/hwcontext_vaapi.c         if (ctx->formats[i].pix_fmt == hwfc->sw_format)
ctx               677 libavutil/hwcontext_vaapi.c     pix_fmts = av_malloc((ctx->nb_formats + 1) * sizeof(*pix_fmts));
ctx               687 libavutil/hwcontext_vaapi.c     for (i = 0; i < ctx->nb_formats; i++) {
ctx               688 libavutil/hwcontext_vaapi.c         if (ctx->formats[i].pix_fmt == hwfc->sw_format)
ctx               690 libavutil/hwcontext_vaapi.c         av_assert0(k < ctx->nb_formats);
ctx               691 libavutil/hwcontext_vaapi.c         pix_fmts[k++] = ctx->formats[i].pix_fmt;
ctx               740 libavutil/hwcontext_vaapi.c     VAAPIFramesContext *ctx = hwfc->internal->priv;
ctx               752 libavutil/hwcontext_vaapi.c     if (!ctx->derive_works && (flags & AV_HWFRAME_MAP_DIRECT)) {
ctx               790 libavutil/hwcontext_vaapi.c     if (ctx->derive_works && dst->format == hwfc->sw_format &&
ctx              1410 libavutil/hwcontext_vaapi.c static void vaapi_device_free(AVHWDeviceContext *ctx)
ctx              1412 libavutil/hwcontext_vaapi.c     AVVAAPIDeviceContext *hwctx = ctx->hwctx;
ctx              1413 libavutil/hwcontext_vaapi.c     VAAPIDevicePriv      *priv  = ctx->user_opaque;
ctx              1432 libavutil/hwcontext_vaapi.c     AVHWDeviceContext *ctx = context;
ctx              1434 libavutil/hwcontext_vaapi.c     av_log(ctx, AV_LOG_ERROR, "libva: %s", message);
ctx              1439 libavutil/hwcontext_vaapi.c     AVHWDeviceContext *ctx = context;
ctx              1441 libavutil/hwcontext_vaapi.c     av_log(ctx, AV_LOG_VERBOSE, "libva: %s", message);
ctx              1445 libavutil/hwcontext_vaapi.c static int vaapi_device_connect(AVHWDeviceContext *ctx,
ctx              1448 libavutil/hwcontext_vaapi.c     AVVAAPIDeviceContext *hwctx = ctx->hwctx;
ctx              1453 libavutil/hwcontext_vaapi.c     vaSetErrorCallback(display, &vaapi_device_log_error, ctx);
ctx              1454 libavutil/hwcontext_vaapi.c     vaSetInfoCallback (display, &vaapi_device_log_info,  ctx);
ctx              1461 libavutil/hwcontext_vaapi.c         av_log(ctx, AV_LOG_ERROR, "Failed to initialise VAAPI "
ctx              1465 libavutil/hwcontext_vaapi.c     av_log(ctx, AV_LOG_VERBOSE, "Initialised VAAPI connection: "
ctx              1471 libavutil/hwcontext_vaapi.c static int vaapi_device_create(AVHWDeviceContext *ctx, const char *device,
ctx              1485 libavutil/hwcontext_vaapi.c     ctx->user_opaque = priv;
ctx              1486 libavutil/hwcontext_vaapi.c     ctx->free        = vaapi_device_free;
ctx              1496 libavutil/hwcontext_vaapi.c             av_log(ctx, AV_LOG_ERROR, "Invalid connection type %s.\n",
ctx              1515 libavutil/hwcontext_vaapi.c                 av_log(ctx, loglevel, "Failed to open %s as "
ctx              1531 libavutil/hwcontext_vaapi.c                     av_log(ctx, AV_LOG_VERBOSE, "Cannot open "
ctx              1540 libavutil/hwcontext_vaapi.c                         av_log(ctx, AV_LOG_VERBOSE, "Ignoring device %d "
ctx              1548 libavutil/hwcontext_vaapi.c                     av_log(ctx, AV_LOG_VERBOSE, "Trying to use "
ctx              1556 libavutil/hwcontext_vaapi.c                     av_log(ctx, AV_LOG_VERBOSE, "Trying to use "
ctx              1567 libavutil/hwcontext_vaapi.c             av_log(ctx, AV_LOG_VERBOSE, "Cannot open a VA display "
ctx              1580 libavutil/hwcontext_vaapi.c             av_log(ctx, AV_LOG_VERBOSE, "Cannot open X11 display "
ctx              1585 libavutil/hwcontext_vaapi.c                 av_log(ctx, AV_LOG_ERROR, "Cannot open a VA display "
ctx              1590 libavutil/hwcontext_vaapi.c             av_log(ctx, AV_LOG_VERBOSE, "Opened VA display via "
ctx              1598 libavutil/hwcontext_vaapi.c             av_log(ctx, AV_LOG_ERROR, "No VA display found for "
ctx              1601 libavutil/hwcontext_vaapi.c             av_log(ctx, AV_LOG_ERROR, "No VA display found for "
ctx              1612 libavutil/hwcontext_vaapi.c             av_log(ctx, AV_LOG_ERROR, "Failed to set driver name to "
ctx              1618 libavutil/hwcontext_vaapi.c         av_log(ctx, AV_LOG_WARNING, "Driver name setting is not "
ctx              1623 libavutil/hwcontext_vaapi.c     return vaapi_device_connect(ctx, display);
ctx              1626 libavutil/hwcontext_vaapi.c static int vaapi_device_derive(AVHWDeviceContext *ctx,
ctx              1638 libavutil/hwcontext_vaapi.c             av_log(ctx, AV_LOG_ERROR, "DRM instance requires an associated "
ctx              1648 libavutil/hwcontext_vaapi.c                 av_log(ctx, AV_LOG_ERROR, "DRM instance fd does not appear "
ctx              1657 libavutil/hwcontext_vaapi.c                     av_log(ctx, AV_LOG_ERROR, "Failed to find a render node "
ctx              1663 libavutil/hwcontext_vaapi.c                     av_log(ctx, AV_LOG_ERROR, "Failed to open render node %s"
ctx              1668 libavutil/hwcontext_vaapi.c                 av_log(ctx, AV_LOG_VERBOSE, "Using render node %s in place "
ctx              1689 libavutil/hwcontext_vaapi.c         ctx->user_opaque = priv;
ctx              1690 libavutil/hwcontext_vaapi.c         ctx->free        = &vaapi_device_free;
ctx              1694 libavutil/hwcontext_vaapi.c             av_log(ctx, AV_LOG_ERROR, "Failed to open a VA display from "
ctx              1699 libavutil/hwcontext_vaapi.c         return vaapi_device_connect(ctx, display);
ctx               102 libavutil/hwcontext_vdpau.c static int vdpau_init_pixmfts(AVHWDeviceContext *ctx)
ctx               104 libavutil/hwcontext_vdpau.c     AVVDPAUDeviceContext *hwctx = ctx->hwctx;
ctx               105 libavutil/hwcontext_vdpau.c     VDPAUDeviceContext    *priv = ctx->internal->priv;
ctx               138 libavutil/hwcontext_vdpau.c         av_log(ctx, AV_LOG_ERROR, "Error getting the " #id " callback.\n");     \
ctx               144 libavutil/hwcontext_vdpau.c static int vdpau_device_init(AVHWDeviceContext *ctx)
ctx               146 libavutil/hwcontext_vdpau.c     AVVDPAUDeviceContext *hwctx = ctx->hwctx;
ctx               147 libavutil/hwcontext_vdpau.c     VDPAUDeviceContext   *priv  = ctx->internal->priv;
ctx               158 libavutil/hwcontext_vdpau.c     ret = vdpau_init_pixmfts(ctx);
ctx               160 libavutil/hwcontext_vdpau.c         av_log(ctx, AV_LOG_ERROR, "Error querying the supported pixel formats\n");
ctx               167 libavutil/hwcontext_vdpau.c static void vdpau_device_uninit(AVHWDeviceContext *ctx)
ctx               169 libavutil/hwcontext_vdpau.c     VDPAUDeviceContext *priv = ctx->internal->priv;
ctx               176 libavutil/hwcontext_vdpau.c static int vdpau_frames_get_constraints(AVHWDeviceContext *ctx,
ctx               180 libavutil/hwcontext_vdpau.c     VDPAUDeviceContext   *priv  = ctx->internal->priv;
ctx               207 libavutil/hwcontext_vdpau.c     AVHWFramesContext          *ctx = opaque;
ctx               208 libavutil/hwcontext_vdpau.c     VDPAUDeviceContext *device_priv = ctx->device_ctx->internal->priv;
ctx               216 libavutil/hwcontext_vdpau.c     AVHWFramesContext             *ctx = opaque;
ctx               217 libavutil/hwcontext_vdpau.c     VDPAUFramesContext           *priv = ctx->internal->priv;
ctx               218 libavutil/hwcontext_vdpau.c     AVVDPAUDeviceContext *device_hwctx = ctx->device_ctx->hwctx;
ctx               219 libavutil/hwcontext_vdpau.c     VDPAUDeviceContext    *device_priv = ctx->device_ctx->internal->priv;
ctx               226 libavutil/hwcontext_vdpau.c                                    ctx->width, ctx->height, &surf);
ctx               228 libavutil/hwcontext_vdpau.c         av_log(ctx, AV_LOG_ERROR, "Error allocating a VDPAU video surface\n");
ctx               233 libavutil/hwcontext_vdpau.c                            vdpau_buffer_free, ctx, AV_BUFFER_FLAG_READONLY);
ctx               242 libavutil/hwcontext_vdpau.c static int vdpau_frames_init(AVHWFramesContext *ctx)
ctx               244 libavutil/hwcontext_vdpau.c     VDPAUDeviceContext *device_priv = ctx->device_ctx->internal->priv;
ctx               245 libavutil/hwcontext_vdpau.c     VDPAUFramesContext        *priv = ctx->internal->priv;
ctx               250 libavutil/hwcontext_vdpau.c         if (vdpau_pix_fmts[i].frames_sw_format == ctx->sw_format) {
ctx               259 libavutil/hwcontext_vdpau.c         av_log(ctx, AV_LOG_ERROR, "Unsupported sw format: %s\n",
ctx               260 libavutil/hwcontext_vdpau.c                av_get_pix_fmt_name(ctx->sw_format));
ctx               264 libavutil/hwcontext_vdpau.c     if (!ctx->pool) {
ctx               265 libavutil/hwcontext_vdpau.c         ctx->internal->pool_internal = av_buffer_pool_init2(sizeof(VdpVideoSurface), ctx,
ctx               267 libavutil/hwcontext_vdpau.c         if (!ctx->internal->pool_internal)
ctx               277 libavutil/hwcontext_vdpau.c static int vdpau_get_buffer(AVHWFramesContext *ctx, AVFrame *frame)
ctx               279 libavutil/hwcontext_vdpau.c     frame->buf[0] = av_buffer_pool_get(ctx->pool);
ctx               285 libavutil/hwcontext_vdpau.c     frame->width   = ctx->width;
ctx               286 libavutil/hwcontext_vdpau.c     frame->height  = ctx->height;
ctx               291 libavutil/hwcontext_vdpau.c static int vdpau_transfer_get_formats(AVHWFramesContext *ctx,
ctx               295 libavutil/hwcontext_vdpau.c     VDPAUFramesContext *priv  = ctx->internal->priv;
ctx               300 libavutil/hwcontext_vdpau.c         av_log(ctx, AV_LOG_ERROR,
ctx               315 libavutil/hwcontext_vdpau.c static int vdpau_transfer_data_from(AVHWFramesContext *ctx, AVFrame *dst,
ctx               318 libavutil/hwcontext_vdpau.c     VDPAUFramesContext *priv = ctx->internal->priv;
ctx               332 libavutil/hwcontext_vdpau.c             av_log(ctx, AV_LOG_ERROR,
ctx               348 libavutil/hwcontext_vdpau.c         av_log(ctx, AV_LOG_ERROR,
ctx               363 libavutil/hwcontext_vdpau.c         av_log(ctx, AV_LOG_ERROR, "Error retrieving the data from a VDPAU surface\n");
ctx               370 libavutil/hwcontext_vdpau.c static int vdpau_transfer_data_to(AVHWFramesContext *ctx, AVFrame *dst,
ctx               373 libavutil/hwcontext_vdpau.c     VDPAUFramesContext *priv = ctx->internal->priv;
ctx               387 libavutil/hwcontext_vdpau.c             av_log(ctx, AV_LOG_ERROR,
ctx               403 libavutil/hwcontext_vdpau.c         av_log(ctx, AV_LOG_ERROR,
ctx               418 libavutil/hwcontext_vdpau.c         av_log(ctx, AV_LOG_ERROR, "Error uploading the data to a VDPAU surface\n");
ctx               434 libavutil/hwcontext_vdpau.c static void vdpau_device_free(AVHWDeviceContext *ctx)
ctx               436 libavutil/hwcontext_vdpau.c     AVVDPAUDeviceContext *hwctx = ctx->hwctx;
ctx               437 libavutil/hwcontext_vdpau.c     VDPAUDevicePriv       *priv = ctx->user_opaque;
ctx               446 libavutil/hwcontext_vdpau.c static int vdpau_device_create(AVHWDeviceContext *ctx, const char *device,
ctx               449 libavutil/hwcontext_vdpau.c     AVVDPAUDeviceContext *hwctx = ctx->hwctx;
ctx               460 libavutil/hwcontext_vdpau.c     ctx->user_opaque = priv;
ctx               461 libavutil/hwcontext_vdpau.c     ctx->free        = vdpau_device_free;
ctx               465 libavutil/hwcontext_vdpau.c         av_log(ctx, AV_LOG_ERROR, "Cannot open the X11 display %s.\n",
ctx               474 libavutil/hwcontext_vdpau.c         av_log(ctx, AV_LOG_ERROR, "VDPAU device creation on X11 display %s failed.\n",
ctx               483 libavutil/hwcontext_vdpau.c     av_log(ctx, AV_LOG_VERBOSE, "Successfully created a VDPAU device (%s) on "
ctx                78 libavutil/hwcontext_videotoolbox.c static int vt_get_buffer(AVHWFramesContext *ctx, AVFrame *frame)
ctx                80 libavutil/hwcontext_videotoolbox.c     frame->buf[0] = av_buffer_pool_get(ctx->pool);
ctx                86 libavutil/hwcontext_videotoolbox.c     frame->width   = ctx->width;
ctx                87 libavutil/hwcontext_videotoolbox.c     frame->height  = ctx->height;
ctx                92 libavutil/hwcontext_videotoolbox.c static int vt_transfer_get_formats(AVHWFramesContext *ctx,
ctx               100 libavutil/hwcontext_videotoolbox.c     fmts[0] = ctx->sw_format;
ctx               107 libavutil/hwcontext_videotoolbox.c static void vt_unmap(AVHWFramesContext *ctx, HWMapDescriptor *hwmap)
ctx               114 libavutil/hwcontext_videotoolbox.c static int vt_map_frame(AVHWFramesContext *ctx, AVFrame *dst, const AVFrame *src,
ctx               127 libavutil/hwcontext_videotoolbox.c         av_log(ctx, AV_LOG_ERROR, "Unsupported or mismatching pixel format: %s\n",
ctx               132 libavutil/hwcontext_videotoolbox.c     if (CVPixelBufferGetWidth(pixbuf) != ctx->width ||
ctx               133 libavutil/hwcontext_videotoolbox.c         CVPixelBufferGetHeight(pixbuf) != ctx->height) {
ctx               134 libavutil/hwcontext_videotoolbox.c         av_log(ctx, AV_LOG_ERROR, "Inconsistent frame dimensions.\n");
ctx               143 libavutil/hwcontext_videotoolbox.c         av_log(ctx, AV_LOG_ERROR, "Error locking the pixel buffer.\n");
ctx               232 libavutil/hwcontext_videotoolbox.c static int vt_device_create(AVHWDeviceContext *ctx, const char *device,
ctx               236 libavutil/hwcontext_videotoolbox.c         av_log(ctx, AV_LOG_ERROR, "Device selection unsupported.\n");
ctx               281 libavutil/hwcontext_vulkan.c     AVHWDeviceContext *ctx = priv;
ctx               291 libavutil/hwcontext_vulkan.c     av_log(ctx, l, "%s\n", data->pMessage);
ctx               293 libavutil/hwcontext_vulkan.c         av_log(ctx, l, "\t%i: %s\n", i, data->pCmdBufLabels[i].pLabelName);
ctx               298 libavutil/hwcontext_vulkan.c static int check_extensions(AVHWDeviceContext *ctx, int dev, AVDictionary *opts,
ctx               303 libavutil/hwcontext_vulkan.c     VulkanDevicePriv *p = ctx->internal->priv;
ctx               304 libavutil/hwcontext_vulkan.c     AVVulkanDeviceContext *hwctx = ctx->hwctx;
ctx               365 libavutil/hwcontext_vulkan.c         av_log(ctx, AV_LOG_VERBOSE, "Using %s extension \"%s\"\n", mod, tstr);
ctx               380 libavutil/hwcontext_vulkan.c             av_log(ctx, AV_LOG_VERBOSE, "Using %s extension \"%s\"\n", mod, tstr);
ctx               383 libavutil/hwcontext_vulkan.c             av_log(ctx, AV_LOG_ERROR, "Debug extension \"%s\" not found!\n",
ctx               401 libavutil/hwcontext_vulkan.c                 av_log(ctx, AV_LOG_VERBOSE, "Using %s extension \"%s\"\n", mod, token);
ctx               404 libavutil/hwcontext_vulkan.c                 av_log(ctx, AV_LOG_WARNING, "%s extension \"%s\" not found, excluding.\n",
ctx               429 libavutil/hwcontext_vulkan.c static int create_instance(AVHWDeviceContext *ctx, AVDictionary *opts)
ctx               433 libavutil/hwcontext_vulkan.c     VulkanDevicePriv *p = ctx->internal->priv;
ctx               434 libavutil/hwcontext_vulkan.c     AVVulkanDeviceContext *hwctx = ctx->hwctx;
ctx               451 libavutil/hwcontext_vulkan.c     err = check_extensions(ctx, 0, opts, &inst_props.ppEnabledExtensionNames,
ctx               467 libavutil/hwcontext_vulkan.c         av_log(ctx, AV_LOG_ERROR, "Instance creation failure: %s\n",
ctx               486 libavutil/hwcontext_vulkan.c             .pUserData = ctx,
ctx               521 libavutil/hwcontext_vulkan.c static int find_device(AVHWDeviceContext *ctx, VulkanDeviceSelection *select)
ctx               529 libavutil/hwcontext_vulkan.c     AVVulkanDeviceContext *hwctx = ctx->hwctx;
ctx               533 libavutil/hwcontext_vulkan.c         av_log(ctx, AV_LOG_ERROR, "No devices found: %s!\n", vk_ret2str(ret));
ctx               543 libavutil/hwcontext_vulkan.c         av_log(ctx, AV_LOG_ERROR, "Failed enumerating devices: %s\n",
ctx               561 libavutil/hwcontext_vulkan.c     av_log(ctx, AV_LOG_VERBOSE, "GPU listing:\n");
ctx               568 libavutil/hwcontext_vulkan.c         av_log(ctx, AV_LOG_VERBOSE, "    %d: %s (%s) (0x%x)\n", i,
ctx               581 libavutil/hwcontext_vulkan.c         av_log(ctx, AV_LOG_ERROR, "Unable to find device by given UUID!\n");
ctx               585 libavutil/hwcontext_vulkan.c         av_log(ctx, AV_LOG_VERBOSE, "Requested device: %s\n", select->name);
ctx               592 libavutil/hwcontext_vulkan.c         av_log(ctx, AV_LOG_ERROR, "Unable to find device \"%s\"!\n",
ctx               597 libavutil/hwcontext_vulkan.c         av_log(ctx, AV_LOG_VERBOSE, "Requested device: 0x%x\n", select->pci_device);
ctx               604 libavutil/hwcontext_vulkan.c         av_log(ctx, AV_LOG_ERROR, "Unable to find device with PCI ID 0x%x!\n",
ctx               609 libavutil/hwcontext_vulkan.c         av_log(ctx, AV_LOG_VERBOSE, "Requested vendor: 0x%x\n", select->vendor_id);
ctx               616 libavutil/hwcontext_vulkan.c         av_log(ctx, AV_LOG_ERROR, "Unable to find device with Vendor ID 0x%x!\n",
ctx               625 libavutil/hwcontext_vulkan.c         av_log(ctx, AV_LOG_ERROR, "Unable to find device with index %i!\n",
ctx               642 libavutil/hwcontext_vulkan.c static int search_queue_families(AVHWDeviceContext *ctx, VkDeviceCreateInfo *cd)
ctx               647 libavutil/hwcontext_vulkan.c     AVVulkanDeviceContext *hwctx = ctx->hwctx;
ctx               654 libavutil/hwcontext_vulkan.c         av_log(ctx, AV_LOG_ERROR, "Failed to get queues!\n");
ctx               685 libavutil/hwcontext_vulkan.c     av_log(ctx, AV_LOG_VERBOSE, "Using queue family %i (total queues: %i) for %s%s%s\n", \
ctx               688 libavutil/hwcontext_vulkan.c     av_log(ctx, AV_LOG_VERBOSE, "    QF %i flags: %s%s%s%s\n", fidx,                     \
ctx               945 libavutil/hwcontext_vulkan.c static void vulkan_device_free(AVHWDeviceContext *ctx)
ctx               947 libavutil/hwcontext_vulkan.c     VulkanDevicePriv *p = ctx->internal->priv;
ctx               948 libavutil/hwcontext_vulkan.c     AVVulkanDeviceContext *hwctx = ctx->hwctx;
ctx               969 libavutil/hwcontext_vulkan.c static int vulkan_device_create_internal(AVHWDeviceContext *ctx,
ctx               976 libavutil/hwcontext_vulkan.c     VulkanDevicePriv *p = ctx->internal->priv;
ctx               977 libavutil/hwcontext_vulkan.c     AVVulkanDeviceContext *hwctx = ctx->hwctx;
ctx               993 libavutil/hwcontext_vulkan.c     ctx->free = vulkan_device_free;
ctx               996 libavutil/hwcontext_vulkan.c     if ((err = create_instance(ctx, opts)))
ctx              1000 libavutil/hwcontext_vulkan.c     if ((err = find_device(ctx, dev_select)))
ctx              1012 libavutil/hwcontext_vulkan.c     if ((err = search_queue_families(ctx, &dev_info)))
ctx              1015 libavutil/hwcontext_vulkan.c     if ((err = check_extensions(ctx, 1, opts, &dev_info.ppEnabledExtensionNames,
ctx              1031 libavutil/hwcontext_vulkan.c         av_log(ctx, AV_LOG_ERROR, "Device creation failure: %s\n",
ctx              1052 libavutil/hwcontext_vulkan.c static int vulkan_device_init(AVHWDeviceContext *ctx)
ctx              1055 libavutil/hwcontext_vulkan.c     AVVulkanDeviceContext *hwctx = ctx->hwctx;
ctx              1056 libavutil/hwcontext_vulkan.c     VulkanDevicePriv *p = ctx->internal->priv;
ctx              1063 libavutil/hwcontext_vulkan.c                 av_log(ctx, AV_LOG_VERBOSE, "Using device extension %s\n",
ctx              1076 libavutil/hwcontext_vulkan.c     av_log(ctx, AV_LOG_VERBOSE, "Using device: %s\n",
ctx              1078 libavutil/hwcontext_vulkan.c     av_log(ctx, AV_LOG_VERBOSE, "Alignments:\n");
ctx              1079 libavutil/hwcontext_vulkan.c     av_log(ctx, AV_LOG_VERBOSE, "    optimalBufferCopyRowPitchAlignment: %li\n",
ctx              1081 libavutil/hwcontext_vulkan.c     av_log(ctx, AV_LOG_VERBOSE, "    minMemoryMapAlignment:              %li\n",
ctx              1084 libavutil/hwcontext_vulkan.c         av_log(ctx, AV_LOG_VERBOSE, "    minImportedHostPointerAlignment:    %li\n",
ctx              1091 libavutil/hwcontext_vulkan.c         av_log(ctx, AV_LOG_ERROR, "Failed to get queues!\n");
ctx              1097 libavutil/hwcontext_vulkan.c     av_log(ctx, AV_LOG_ERROR, "Invalid %s queue index %i (device has %i queues)!\n", \
ctx              1122 libavutil/hwcontext_vulkan.c static int vulkan_device_create(AVHWDeviceContext *ctx, const char *device,
ctx              1135 libavutil/hwcontext_vulkan.c     return vulkan_device_create_internal(ctx, &dev_select, opts, flags);
ctx              1138 libavutil/hwcontext_vulkan.c static int vulkan_device_derive(AVHWDeviceContext *ctx,
ctx              1155 libavutil/hwcontext_vulkan.c             av_log(ctx, AV_LOG_ERROR, "Unable to get device info from VAAPI!\n");
ctx              1164 libavutil/hwcontext_vulkan.c         return vulkan_device_create_internal(ctx, &dev_select, opts, flags);
ctx              1173 libavutil/hwcontext_vulkan.c             av_log(ctx, AV_LOG_ERROR, "Unable to get device info from DRM fd!\n");
ctx              1182 libavutil/hwcontext_vulkan.c         return vulkan_device_create_internal(ctx, &dev_select, opts, flags);
ctx              1195 libavutil/hwcontext_vulkan.c             av_log(ctx, AV_LOG_ERROR, "Unable to get UUID from CUDA!\n");
ctx              1201 libavutil/hwcontext_vulkan.c         return vulkan_device_create_internal(ctx, &dev_select, opts, flags);
ctx              1209 libavutil/hwcontext_vulkan.c static int vulkan_frames_get_constraints(AVHWDeviceContext *ctx,
ctx              1214 libavutil/hwcontext_vulkan.c     AVVulkanDeviceContext *hwctx = ctx->hwctx;
ctx              1215 libavutil/hwcontext_vulkan.c     VulkanDevicePriv *p = ctx->internal->priv;
ctx              1256 libavutil/hwcontext_vulkan.c static int alloc_mem(AVHWDeviceContext *ctx, VkMemoryRequirements *req,
ctx              1262 libavutil/hwcontext_vulkan.c     VulkanDevicePriv *p = ctx->internal->priv;
ctx              1263 libavutil/hwcontext_vulkan.c     AVVulkanDeviceContext *dev_hwctx = ctx->hwctx;
ctx              1287 libavutil/hwcontext_vulkan.c         av_log(ctx, AV_LOG_ERROR, "No memory type found for flags 0x%x\n",
ctx              1297 libavutil/hwcontext_vulkan.c         av_log(ctx, AV_LOG_ERROR, "Failed to allocate memory: %s\n",
ctx              1360 libavutil/hwcontext_vulkan.c     AVHWDeviceContext *ctx = hwfc->device_ctx;
ctx              1361 libavutil/hwcontext_vulkan.c     VulkanDevicePriv *p = ctx->internal->priv;
ctx              1365 libavutil/hwcontext_vulkan.c     AVVulkanDeviceContext *hwctx = ctx->hwctx;
ctx              1398 libavutil/hwcontext_vulkan.c         if ((err = alloc_mem(ctx, &req.memoryRequirements,
ctx              1415 libavutil/hwcontext_vulkan.c         av_log(ctx, AV_LOG_ERROR, "Failed to bind memory: %s\n",
ctx              1508 libavutil/hwcontext_vulkan.c     AVHWDeviceContext *ctx = hwfc->device_ctx;
ctx              1509 libavutil/hwcontext_vulkan.c     VulkanDevicePriv *p = ctx->internal->priv;
ctx              1510 libavutil/hwcontext_vulkan.c     AVVulkanDeviceContext *hwctx = ctx->hwctx;
ctx              1527 libavutil/hwcontext_vulkan.c         av_log(ctx, AV_LOG_ERROR, "Unable to allocate memory for AVVkFrame!\n");
ctx              1563 libavutil/hwcontext_vulkan.c             av_log(ctx, AV_LOG_ERROR, "Image creation failure: %s\n",
ctx              1962 libavutil/hwcontext_vulkan.c     AVHWDeviceContext *ctx = hwfc->device_ctx;
ctx              1963 libavutil/hwcontext_vulkan.c     AVVulkanDeviceContext *hwctx = ctx->hwctx;
ctx              1964 libavutil/hwcontext_vulkan.c     VulkanDevicePriv *p = ctx->internal->priv;
ctx              1978 libavutil/hwcontext_vulkan.c             av_log(ctx, AV_LOG_ERROR, "Unsupported DMABUF layer format %#08x!\n",
ctx              1985 libavutil/hwcontext_vulkan.c         av_log(ctx, AV_LOG_ERROR, "Unable to allocate memory for AVVkFrame!\n");
ctx              2049 libavutil/hwcontext_vulkan.c             av_log(ctx, AV_LOG_ERROR, "Image creation failure: %s\n",
ctx              2126 libavutil/hwcontext_vulkan.c         err = alloc_mem(ctx, &req, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT,
ctx              2160 libavutil/hwcontext_vulkan.c         av_log(ctx, AV_LOG_ERROR, "Failed to bind memory: %s\n",
ctx              2273 libavutil/hwcontext_vulkan.c     AVHWDeviceContext *ctx = hwfc->device_ctx;
ctx              2274 libavutil/hwcontext_vulkan.c     AVVulkanDeviceContext *hwctx = ctx->hwctx;
ctx              2371 libavutil/hwcontext_vulkan.c                 av_log(ctx, AV_LOG_ERROR, "Failed to export semaphore: %s\n",
ctx              2679 libavutil/hwcontext_vulkan.c     AVHWDeviceContext *ctx = opaque;
ctx              2680 libavutil/hwcontext_vulkan.c     AVVulkanDeviceContext *hwctx = ctx->hwctx;
ctx              2691 libavutil/hwcontext_vulkan.c static int create_buf(AVHWDeviceContext *ctx, AVBufferRef **buf, size_t imp_size,
ctx              2699 libavutil/hwcontext_vulkan.c     AVVulkanDeviceContext *hwctx = ctx->hwctx;
ctx              2700 libavutil/hwcontext_vulkan.c     VulkanDevicePriv *p = ctx->internal->priv;
ctx              2740 libavutil/hwcontext_vulkan.c         av_log(ctx, AV_LOG_ERROR, "Failed to create buffer: %s\n",
ctx              2755 libavutil/hwcontext_vulkan.c     err = alloc_mem(ctx, &req.memoryRequirements, flags,
ctx              2763 libavutil/hwcontext_vulkan.c         av_log(ctx, AV_LOG_ERROR, "Failed to bind memory to buffer: %s\n",
ctx              2765 libavutil/hwcontext_vulkan.c         free_buf(ctx, (uint8_t *)vkbuf);
ctx              2769 libavutil/hwcontext_vulkan.c     *buf = av_buffer_create((uint8_t *)vkbuf, sizeof(*vkbuf), free_buf, ctx, 0);
ctx              2771 libavutil/hwcontext_vulkan.c         free_buf(ctx, (uint8_t *)vkbuf);
ctx              2779 libavutil/hwcontext_vulkan.c static int map_buffers(AVHWDeviceContext *ctx, AVBufferRef **bufs, uint8_t *mem[],
ctx              2783 libavutil/hwcontext_vulkan.c     AVVulkanDeviceContext *hwctx = ctx->hwctx;
ctx              2795 libavutil/hwcontext_vulkan.c             av_log(ctx, AV_LOG_ERROR, "Failed to map buffer memory: %s\n",
ctx              2820 libavutil/hwcontext_vulkan.c             av_log(ctx, AV_LOG_WARNING, "Failed to invalidate memory: %s\n",
ctx              2827 libavutil/hwcontext_vulkan.c static int unmap_buffers(AVHWDeviceContext *ctx, AVBufferRef **bufs,
ctx              2832 libavutil/hwcontext_vulkan.c     AVVulkanDeviceContext *hwctx = ctx->hwctx;
ctx              2853 libavutil/hwcontext_vulkan.c             av_log(ctx, AV_LOG_ERROR, "Failed to flush memory: %s\n",
ctx               140 libavutil/internal.h #define FF_ALLOC_OR_GOTO(ctx, p, size, label)\
ctx               144 libavutil/internal.h         av_log(ctx, AV_LOG_ERROR, "Cannot allocate memory.\n");\
ctx               149 libavutil/internal.h #define FF_ALLOCZ_OR_GOTO(ctx, p, size, label)\
ctx               153 libavutil/internal.h         av_log(ctx, AV_LOG_ERROR, "Cannot allocate memory.\n");\
ctx               158 libavutil/internal.h #define FF_ALLOC_ARRAY_OR_GOTO(ctx, p, nelem, elsize, label)\
ctx               162 libavutil/internal.h         av_log(ctx, AV_LOG_ERROR, "Cannot allocate memory.\n");\
ctx               167 libavutil/internal.h #define FF_ALLOCZ_ARRAY_OR_GOTO(ctx, p, nelem, elsize, label)\
ctx               171 libavutil/internal.h         av_log(ctx, AV_LOG_ERROR, "Cannot allocate memory.\n");\
ctx               266 libavutil/internal.h #   define ff_dlog(ctx, ...) av_log(ctx, AV_LOG_DEBUG, __VA_ARGS__)
ctx               268 libavutil/internal.h #   define ff_dlog(ctx, ...) do { if (0) av_log(ctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
ctx                78 libavutil/log.h     const char* (*item_name)(void* ctx);
ctx               136 libavutil/log.h     AVClassCategory (*get_category)(void* ctx);
ctx               328 libavutil/log.h const char* av_default_item_name(void* ctx);
ctx               143 libavutil/md5.c void av_md5_init(AVMD5 *ctx)
ctx               145 libavutil/md5.c     ctx->len     = 0;
ctx               147 libavutil/md5.c     ctx->ABCD[0] = 0x10325476;
ctx               148 libavutil/md5.c     ctx->ABCD[1] = 0x98badcfe;
ctx               149 libavutil/md5.c     ctx->ABCD[2] = 0xefcdab89;
ctx               150 libavutil/md5.c     ctx->ABCD[3] = 0x67452301;
ctx               154 libavutil/md5.c void av_md5_update(AVMD5 *ctx, const uint8_t *src, int len)
ctx               156 libavutil/md5.c void av_md5_update(AVMD5 *ctx, const uint8_t *src, size_t len)
ctx               162 libavutil/md5.c     j         = ctx->len & 63;
ctx               163 libavutil/md5.c     ctx->len += len;
ctx               167 libavutil/md5.c         memcpy(ctx->block + j, src, cnt);
ctx               172 libavutil/md5.c         body(ctx->ABCD, ctx->block, 1);
ctx               178 libavutil/md5.c            memcpy(ctx->block, src, 64);
ctx               179 libavutil/md5.c            body(ctx->ABCD, ctx->block, 1);
ctx               184 libavutil/md5.c         body(ctx->ABCD, src, nblocks);
ctx               189 libavutil/md5.c         memcpy(ctx->block, src, len);
ctx               192 libavutil/md5.c void av_md5_final(AVMD5 *ctx, uint8_t *dst)
ctx               195 libavutil/md5.c     uint64_t finalcount = av_le2ne64(ctx->len << 3);
ctx               197 libavutil/md5.c     av_md5_update(ctx, "\200", 1);
ctx               198 libavutil/md5.c     while ((ctx->len & 63) != 56)
ctx               199 libavutil/md5.c         av_md5_update(ctx, "", 1);
ctx               201 libavutil/md5.c     av_md5_update(ctx, (uint8_t *) &finalcount, 8);
ctx               204 libavutil/md5.c         AV_WL32(dst + 4 * i, ctx->ABCD[3 - i]);
ctx               213 libavutil/md5.c     AVMD5 ctx;
ctx               215 libavutil/md5.c     av_md5_init(&ctx);
ctx               216 libavutil/md5.c     av_md5_update(&ctx, src, len);
ctx               217 libavutil/md5.c     av_md5_final(&ctx, dst);
ctx                58 libavutil/md5.h void av_md5_init(struct AVMD5 *ctx);
ctx                68 libavutil/md5.h void av_md5_update(struct AVMD5 *ctx, const uint8_t *src, int len);
ctx                70 libavutil/md5.h void av_md5_update(struct AVMD5 *ctx, const uint8_t *src, size_t len);
ctx                79 libavutil/md5.h void av_md5_final(struct AVMD5 *ctx, uint8_t *dst);
ctx              1444 libavutil/opt.c static int parse_key_value_pair(void *ctx, const char **buf,
ctx              1462 libavutil/opt.c         av_log(ctx, AV_LOG_ERROR, "Missing key or no key/value separator found after key '%s'\n", key);
ctx              1467 libavutil/opt.c     av_log(ctx, AV_LOG_DEBUG, "Setting entry with key '%s' to value '%s'\n", key, val);
ctx              1469 libavutil/opt.c     ret = av_opt_set(ctx, key, val, AV_OPT_SEARCH_CHILDREN);
ctx              1471 libavutil/opt.c         av_log(ctx, AV_LOG_ERROR, "Key '%s' not found.\n", key);
ctx              1478 libavutil/opt.c int av_set_options_string(void *ctx, const char *opts,
ctx              1487 libavutil/opt.c         if ((ret = parse_key_value_pair(ctx, &opts, key_val_sep, pairs_sep)) < 0)
ctx              1558 libavutil/opt.c int av_opt_set_from_string(void *ctx, const char *opts,
ctx              1578 libavutil/opt.c                 av_log(ctx, AV_LOG_ERROR, "No option name near '%s'\n", opts);
ctx              1580 libavutil/opt.c                 av_log(ctx, AV_LOG_ERROR, "Unable to parse '%s': %s\n", opts,
ctx              1594 libavutil/opt.c         av_log(ctx, AV_LOG_DEBUG, "Setting '%s' to value '%s'\n", key, value);
ctx              1595 libavutil/opt.c         if ((ret = av_opt_set(ctx, key, value, 0)) < 0) {
ctx              1597 libavutil/opt.c                 av_log(ctx, AV_LOG_ERROR, "Option '%s' not found\n", key);
ctx               419 libavutil/opt.h int av_set_options_string(void *ctx, const char *opts,
ctx               449 libavutil/opt.h int av_opt_set_from_string(void *ctx, const char *opts,
ctx               463 libavutil/ripemd.c av_cold int av_ripemd_init(AVRIPEMD *ctx, int bits)
ctx               465 libavutil/ripemd.c     ctx->digest_len = bits >> 5;
ctx               468 libavutil/ripemd.c         ctx->state[0] = 0x67452301;
ctx               469 libavutil/ripemd.c         ctx->state[1] = 0xEFCDAB89;
ctx               470 libavutil/ripemd.c         ctx->state[2] = 0x98BADCFE;
ctx               471 libavutil/ripemd.c         ctx->state[3] = 0x10325476;
ctx               472 libavutil/ripemd.c         ctx->transform = ripemd128_transform;
ctx               475 libavutil/ripemd.c         ctx->state[0] = 0x67452301;
ctx               476 libavutil/ripemd.c         ctx->state[1] = 0xEFCDAB89;
ctx               477 libavutil/ripemd.c         ctx->state[2] = 0x98BADCFE;
ctx               478 libavutil/ripemd.c         ctx->state[3] = 0x10325476;
ctx               479 libavutil/ripemd.c         ctx->state[4] = 0xC3D2E1F0;
ctx               480 libavutil/ripemd.c         ctx->transform = ripemd160_transform;
ctx               483 libavutil/ripemd.c         ctx->state[0] = 0x67452301;
ctx               484 libavutil/ripemd.c         ctx->state[1] = 0xEFCDAB89;
ctx               485 libavutil/ripemd.c         ctx->state[2] = 0x98BADCFE;
ctx               486 libavutil/ripemd.c         ctx->state[3] = 0x10325476;
ctx               487 libavutil/ripemd.c         ctx->state[4] = 0x76543210;
ctx               488 libavutil/ripemd.c         ctx->state[5] = 0xFEDCBA98;
ctx               489 libavutil/ripemd.c         ctx->state[6] = 0x89ABCDEF;
ctx               490 libavutil/ripemd.c         ctx->state[7] = 0x01234567;
ctx               491 libavutil/ripemd.c         ctx->transform = ripemd256_transform;
ctx               494 libavutil/ripemd.c         ctx->state[0] = 0x67452301;
ctx               495 libavutil/ripemd.c         ctx->state[1] = 0xEFCDAB89;
ctx               496 libavutil/ripemd.c         ctx->state[2] = 0x98BADCFE;
ctx               497 libavutil/ripemd.c         ctx->state[3] = 0x10325476;
ctx               498 libavutil/ripemd.c         ctx->state[4] = 0xC3D2E1F0;
ctx               499 libavutil/ripemd.c         ctx->state[5] = 0x76543210;
ctx               500 libavutil/ripemd.c         ctx->state[6] = 0xFEDCBA98;
ctx               501 libavutil/ripemd.c         ctx->state[7] = 0x89ABCDEF;
ctx               502 libavutil/ripemd.c         ctx->state[8] = 0x01234567;
ctx               503 libavutil/ripemd.c         ctx->state[9] = 0x3C2D1E0F;
ctx               504 libavutil/ripemd.c         ctx->transform = ripemd320_transform;
ctx               509 libavutil/ripemd.c     ctx->count = 0;
ctx               514 libavutil/ripemd.c void av_ripemd_update(AVRIPEMD* ctx, const uint8_t* data, unsigned int len)
ctx               516 libavutil/ripemd.c void av_ripemd_update(AVRIPEMD* ctx, const uint8_t* data, size_t len)
ctx               521 libavutil/ripemd.c     j = ctx->count & 63;
ctx               522 libavutil/ripemd.c     ctx->count += len;
ctx               525 libavutil/ripemd.c         ctx->buffer[j++] = data[i];
ctx               527 libavutil/ripemd.c             ctx->transform(ctx->state, ctx->buffer);
ctx               533 libavutil/ripemd.c         memcpy(&ctx->buffer[j], data, (i = 64 - j));
ctx               534 libavutil/ripemd.c         ctx->transform(ctx->state, ctx->buffer);
ctx               536 libavutil/ripemd.c             ctx->transform(ctx->state, &data[i]);
ctx               540 libavutil/ripemd.c     memcpy(&ctx->buffer[j], &data[i], len - i);
ctx               544 libavutil/ripemd.c void av_ripemd_final(AVRIPEMD* ctx, uint8_t *digest)
ctx               547 libavutil/ripemd.c     uint64_t finalcount = av_le2ne64(ctx->count << 3);
ctx               549 libavutil/ripemd.c     av_ripemd_update(ctx, "\200", 1);
ctx               550 libavutil/ripemd.c     while ((ctx->count & 63) != 56)
ctx               551 libavutil/ripemd.c         av_ripemd_update(ctx, "", 1);
ctx               552 libavutil/ripemd.c     av_ripemd_update(ctx, (uint8_t *)&finalcount, 8); /* Should cause a transform() */
ctx               553 libavutil/ripemd.c     for (i = 0; i < ctx->digest_len; i++)
ctx               554 libavutil/ripemd.c         AV_WL32(digest + i*4, ctx->state[i]);
ctx               273 libavutil/sha.c av_cold int av_sha_init(AVSHA *ctx, int bits)
ctx               275 libavutil/sha.c     ctx->digest_len = bits >> 5;
ctx               278 libavutil/sha.c         ctx->state[0] = 0x67452301;
ctx               279 libavutil/sha.c         ctx->state[1] = 0xEFCDAB89;
ctx               280 libavutil/sha.c         ctx->state[2] = 0x98BADCFE;
ctx               281 libavutil/sha.c         ctx->state[3] = 0x10325476;
ctx               282 libavutil/sha.c         ctx->state[4] = 0xC3D2E1F0;
ctx               283 libavutil/sha.c         ctx->transform = sha1_transform;
ctx               286 libavutil/sha.c         ctx->state[0] = 0xC1059ED8;
ctx               287 libavutil/sha.c         ctx->state[1] = 0x367CD507;
ctx               288 libavutil/sha.c         ctx->state[2] = 0x3070DD17;
ctx               289 libavutil/sha.c         ctx->state[3] = 0xF70E5939;
ctx               290 libavutil/sha.c         ctx->state[4] = 0xFFC00B31;
ctx               291 libavutil/sha.c         ctx->state[5] = 0x68581511;
ctx               292 libavutil/sha.c         ctx->state[6] = 0x64F98FA7;
ctx               293 libavutil/sha.c         ctx->state[7] = 0xBEFA4FA4;
ctx               294 libavutil/sha.c         ctx->transform = sha256_transform;
ctx               297 libavutil/sha.c         ctx->state[0] = 0x6A09E667;
ctx               298 libavutil/sha.c         ctx->state[1] = 0xBB67AE85;
ctx               299 libavutil/sha.c         ctx->state[2] = 0x3C6EF372;
ctx               300 libavutil/sha.c         ctx->state[3] = 0xA54FF53A;
ctx               301 libavutil/sha.c         ctx->state[4] = 0x510E527F;
ctx               302 libavutil/sha.c         ctx->state[5] = 0x9B05688C;
ctx               303 libavutil/sha.c         ctx->state[6] = 0x1F83D9AB;
ctx               304 libavutil/sha.c         ctx->state[7] = 0x5BE0CD19;
ctx               305 libavutil/sha.c         ctx->transform = sha256_transform;
ctx               310 libavutil/sha.c     ctx->count = 0;
ctx               315 libavutil/sha.c void av_sha_update(struct AVSHA *ctx, const uint8_t *data, unsigned int len)
ctx               317 libavutil/sha.c void av_sha_update(struct AVSHA *ctx, const uint8_t *data, size_t len)
ctx               322 libavutil/sha.c     j = ctx->count & 63;
ctx               323 libavutil/sha.c     ctx->count += len;
ctx               326 libavutil/sha.c         ctx->buffer[j++] = data[i];
ctx               328 libavutil/sha.c             ctx->transform(ctx->state, ctx->buffer);
ctx               334 libavutil/sha.c         memcpy(&ctx->buffer[j], data, (i = 64 - j));
ctx               335 libavutil/sha.c         ctx->transform(ctx->state, ctx->buffer);
ctx               337 libavutil/sha.c             ctx->transform(ctx->state, &data[i]);
ctx               341 libavutil/sha.c     memcpy(&ctx->buffer[j], &data[i], len - i);
ctx               345 libavutil/sha.c void av_sha_final(AVSHA* ctx, uint8_t *digest)
ctx               348 libavutil/sha.c     uint64_t finalcount = av_be2ne64(ctx->count << 3);
ctx               350 libavutil/sha.c     av_sha_update(ctx, "\200", 1);
ctx               351 libavutil/sha.c     while ((ctx->count & 63) != 56)
ctx               352 libavutil/sha.c         av_sha_update(ctx, "", 1);
ctx               353 libavutil/sha.c     av_sha_update(ctx, (uint8_t *)&finalcount, 8); /* Should cause a transform() */
ctx               354 libavutil/sha.c     for (i = 0; i < ctx->digest_len; i++)
ctx               355 libavutil/sha.c         AV_WB32(digest + i*4, ctx->state[i]);
ctx                78 libavutil/sha.h void av_sha_update(struct AVSHA *ctx, const uint8_t *data, unsigned int len);
ctx                80 libavutil/sha.h void av_sha_update(struct AVSHA *ctx, const uint8_t *data, size_t len);
ctx               191 libavutil/sha512.c av_cold int av_sha512_init(AVSHA512 *ctx, int bits)
ctx               193 libavutil/sha512.c     ctx->digest_len = bits >> 6;
ctx               196 libavutil/sha512.c         ctx->state[0] = UINT64_C(0x8C3D37C819544DA2);
ctx               197 libavutil/sha512.c         ctx->state[1] = UINT64_C(0x73E1996689DCD4D6);
ctx               198 libavutil/sha512.c         ctx->state[2] = UINT64_C(0x1DFAB7AE32FF9C82);
ctx               199 libavutil/sha512.c         ctx->state[3] = UINT64_C(0x679DD514582F9FCF);
ctx               200 libavutil/sha512.c         ctx->state[4] = UINT64_C(0x0F6D2B697BD44DA8);
ctx               201 libavutil/sha512.c         ctx->state[5] = UINT64_C(0x77E36F7304C48942);
ctx               202 libavutil/sha512.c         ctx->state[6] = UINT64_C(0x3F9D85A86A1D36C8);
ctx               203 libavutil/sha512.c         ctx->state[7] = UINT64_C(0x1112E6AD91D692A1);
ctx               206 libavutil/sha512.c         ctx->state[0] = UINT64_C(0x22312194FC2BF72C);
ctx               207 libavutil/sha512.c         ctx->state[1] = UINT64_C(0x9F555FA3C84C64C2);
ctx               208 libavutil/sha512.c         ctx->state[2] = UINT64_C(0x2393B86B6F53B151);
ctx               209 libavutil/sha512.c         ctx->state[3] = UINT64_C(0x963877195940EABD);
ctx               210 libavutil/sha512.c         ctx->state[4] = UINT64_C(0x96283EE2A88EFFE3);
ctx               211 libavutil/sha512.c         ctx->state[5] = UINT64_C(0xBE5E1E2553863992);
ctx               212 libavutil/sha512.c         ctx->state[6] = UINT64_C(0x2B0199FC2C85B8AA);
ctx               213 libavutil/sha512.c         ctx->state[7] = UINT64_C(0x0EB72DDC81C52CA2);
ctx               216 libavutil/sha512.c         ctx->state[0] = UINT64_C(0xCBBB9D5DC1059ED8);
ctx               217 libavutil/sha512.c         ctx->state[1] = UINT64_C(0x629A292A367CD507);
ctx               218 libavutil/sha512.c         ctx->state[2] = UINT64_C(0x9159015A3070DD17);
ctx               219 libavutil/sha512.c         ctx->state[3] = UINT64_C(0x152FECD8F70E5939);
ctx               220 libavutil/sha512.c         ctx->state[4] = UINT64_C(0x67332667FFC00B31);
ctx               221 libavutil/sha512.c         ctx->state[5] = UINT64_C(0x8EB44A8768581511);
ctx               222 libavutil/sha512.c         ctx->state[6] = UINT64_C(0xDB0C2E0D64F98FA7);
ctx               223 libavutil/sha512.c         ctx->state[7] = UINT64_C(0x47B5481DBEFA4FA4);
ctx               226 libavutil/sha512.c         ctx->state[0] = UINT64_C(0x6A09E667F3BCC908);
ctx               227 libavutil/sha512.c         ctx->state[1] = UINT64_C(0xBB67AE8584CAA73B);
ctx               228 libavutil/sha512.c         ctx->state[2] = UINT64_C(0x3C6EF372FE94F82B);
ctx               229 libavutil/sha512.c         ctx->state[3] = UINT64_C(0xA54FF53A5F1D36F1);
ctx               230 libavutil/sha512.c         ctx->state[4] = UINT64_C(0x510E527FADE682D1);
ctx               231 libavutil/sha512.c         ctx->state[5] = UINT64_C(0x9B05688C2B3E6C1F);
ctx               232 libavutil/sha512.c         ctx->state[6] = UINT64_C(0x1F83D9ABFB41BD6B);
ctx               233 libavutil/sha512.c         ctx->state[7] = UINT64_C(0x5BE0CD19137E2179);
ctx               238 libavutil/sha512.c     ctx->count = 0;
ctx               243 libavutil/sha512.c void av_sha512_update(AVSHA512* ctx, const uint8_t* data, unsigned int len)
ctx               245 libavutil/sha512.c void av_sha512_update(AVSHA512* ctx, const uint8_t* data, size_t len)
ctx               250 libavutil/sha512.c     j = ctx->count & 127;
ctx               251 libavutil/sha512.c     ctx->count += len;
ctx               254 libavutil/sha512.c         ctx->buffer[j++] = data[i];
ctx               256 libavutil/sha512.c             sha512_transform(ctx->state, ctx->buffer);
ctx               262 libavutil/sha512.c         memcpy(&ctx->buffer[j], data, (i = 128 - j));
ctx               263 libavutil/sha512.c         sha512_transform(ctx->state, ctx->buffer);
ctx               265 libavutil/sha512.c             sha512_transform(ctx->state, &data[i]);
ctx               269 libavutil/sha512.c     memcpy(&ctx->buffer[j], &data[i], len - i);
ctx               273 libavutil/sha512.c void av_sha512_final(AVSHA512* ctx, uint8_t *digest)
ctx               276 libavutil/sha512.c     uint64_t finalcount = av_be2ne64(ctx->count << 3);
ctx               278 libavutil/sha512.c     av_sha512_update(ctx, "\200", 1);
ctx               279 libavutil/sha512.c     while ((ctx->count & 127) != 112)
ctx               280 libavutil/sha512.c         av_sha512_update(ctx, "", 1);
ctx               281 libavutil/sha512.c     av_sha512_update(ctx, (uint8_t *)&i, 8);
ctx               282 libavutil/sha512.c     av_sha512_update(ctx, (uint8_t *)&finalcount, 8); /* Should cause a transform() */
ctx               283 libavutil/sha512.c     for (i = 0; i < ctx->digest_len; i++)
ctx               284 libavutil/sha512.c         AV_WB64(digest + i*8, ctx->state[i]);
ctx               285 libavutil/sha512.c     if (ctx->digest_len & 1) /* SHA512/224 is 28 bytes, and is not divisible by 8. */
ctx               286 libavutil/sha512.c         AV_WB32(digest + i*8, ctx->state[i] >> 32);
ctx                28 libavutil/slicethread.c     AVSliceThread   *ctx;
ctx                53 libavutil/slicethread.c static int run_jobs(AVSliceThread *ctx)
ctx                55 libavutil/slicethread.c     unsigned nb_jobs    = ctx->nb_jobs;
ctx                56 libavutil/slicethread.c     unsigned nb_active_threads = ctx->nb_active_threads;
ctx                57 libavutil/slicethread.c     unsigned first_job    = atomic_fetch_add_explicit(&ctx->first_job, 1, memory_order_acq_rel);
ctx                61 libavutil/slicethread.c         ctx->worker_func(ctx->priv, current_job, first_job, nb_jobs, nb_active_threads);
ctx                62 libavutil/slicethread.c     } while ((current_job = atomic_fetch_add_explicit(&ctx->current_job, 1, memory_order_acq_rel)) < nb_jobs);
ctx                70 libavutil/slicethread.c     AVSliceThread *ctx = w->ctx;
ctx                80 libavutil/slicethread.c         if (ctx->finished) {
ctx                85 libavutil/slicethread.c         if (run_jobs(ctx)) {
ctx                86 libavutil/slicethread.c             pthread_mutex_lock(&ctx->done_mutex);
ctx                87 libavutil/slicethread.c             ctx->done = 1;
ctx                88 libavutil/slicethread.c             pthread_cond_signal(&ctx->done_cond);
ctx                89 libavutil/slicethread.c             pthread_mutex_unlock(&ctx->done_mutex);
ctx                99 libavutil/slicethread.c     AVSliceThread *ctx;
ctx               115 libavutil/slicethread.c     *pctx = ctx = av_mallocz(sizeof(*ctx));
ctx               116 libavutil/slicethread.c     if (!ctx)
ctx               119 libavutil/slicethread.c     if (nb_workers && !(ctx->workers = av_calloc(nb_workers, sizeof(*ctx->workers)))) {
ctx               124 libavutil/slicethread.c     ctx->priv        = priv;
ctx               125 libavutil/slicethread.c     ctx->worker_func = worker_func;
ctx               126 libavutil/slicethread.c     ctx->main_func   = main_func;
ctx               127 libavutil/slicethread.c     ctx->nb_threads  = nb_threads;
ctx               128 libavutil/slicethread.c     ctx->nb_active_threads = 0;
ctx               129 libavutil/slicethread.c     ctx->nb_jobs     = 0;
ctx               130 libavutil/slicethread.c     ctx->finished    = 0;
ctx               132 libavutil/slicethread.c     atomic_init(&ctx->first_job, 0);
ctx               133 libavutil/slicethread.c     atomic_init(&ctx->current_job, 0);
ctx               134 libavutil/slicethread.c     pthread_mutex_init(&ctx->done_mutex, NULL);
ctx               135 libavutil/slicethread.c     pthread_cond_init(&ctx->done_cond, NULL);
ctx               136 libavutil/slicethread.c     ctx->done        = 0;
ctx               139 libavutil/slicethread.c         WorkerContext *w = &ctx->workers[i];
ctx               141 libavutil/slicethread.c         w->ctx = ctx;
ctx               148 libavutil/slicethread.c             ctx->nb_threads = main_func ? i : i + 1;
ctx               164 libavutil/slicethread.c void avpriv_slicethread_execute(AVSliceThread *ctx, int nb_jobs, int execute_main)
ctx               169 libavutil/slicethread.c     ctx->nb_jobs           = nb_jobs;
ctx               170 libavutil/slicethread.c     ctx->nb_active_threads = FFMIN(nb_jobs, ctx->nb_threads);
ctx               171 libavutil/slicethread.c     atomic_store_explicit(&ctx->first_job, 0, memory_order_relaxed);
ctx               172 libavutil/slicethread.c     atomic_store_explicit(&ctx->current_job, ctx->nb_active_threads, memory_order_relaxed);
ctx               173 libavutil/slicethread.c     nb_workers             = ctx->nb_active_threads;
ctx               174 libavutil/slicethread.c     if (!ctx->main_func || !execute_main)
ctx               178 libavutil/slicethread.c         WorkerContext *w = &ctx->workers[i];
ctx               185 libavutil/slicethread.c     if (ctx->main_func && execute_main)
ctx               186 libavutil/slicethread.c         ctx->main_func(ctx->priv);
ctx               188 libavutil/slicethread.c         is_last = run_jobs(ctx);
ctx               191 libavutil/slicethread.c         pthread_mutex_lock(&ctx->done_mutex);
ctx               192 libavutil/slicethread.c         while (!ctx->done)
ctx               193 libavutil/slicethread.c             pthread_cond_wait(&ctx->done_cond, &ctx->done_mutex);
ctx               194 libavutil/slicethread.c         ctx->done = 0;
ctx               195 libavutil/slicethread.c         pthread_mutex_unlock(&ctx->done_mutex);
ctx               201 libavutil/slicethread.c     AVSliceThread *ctx;
ctx               207 libavutil/slicethread.c     ctx = *pctx;
ctx               208 libavutil/slicethread.c     nb_workers = ctx->nb_threads;
ctx               209 libavutil/slicethread.c     if (!ctx->main_func)
ctx               212 libavutil/slicethread.c     ctx->finished = 1;
ctx               214 libavutil/slicethread.c         WorkerContext *w = &ctx->workers[i];
ctx               222 libavutil/slicethread.c         WorkerContext *w = &ctx->workers[i];
ctx               228 libavutil/slicethread.c     pthread_cond_destroy(&ctx->done_cond);
ctx               229 libavutil/slicethread.c     pthread_mutex_destroy(&ctx->done_mutex);
ctx               230 libavutil/slicethread.c     av_freep(&ctx->workers);
ctx               245 libavutil/slicethread.c void avpriv_slicethread_execute(AVSliceThread *ctx, int nb_jobs, int execute_main)
ctx                44 libavutil/slicethread.h void avpriv_slicethread_execute(AVSliceThread *ctx, int nb_jobs, int execute_main);
ctx                42 libavutil/tea.c void av_tea_init(AVTEA *ctx, const uint8_t key[16], int rounds)
ctx                47 libavutil/tea.c         ctx->key[i] = AV_RB32(key + (i << 2));
ctx                49 libavutil/tea.c     ctx->rounds = rounds;
ctx                52 libavutil/tea.c static void tea_crypt_ecb(AVTEA *ctx, uint8_t *dst, const uint8_t *src,
ctx                56 libavutil/tea.c     int rounds = ctx->rounds;
ctx                58 libavutil/tea.c     k0 = ctx->key[0];
ctx                59 libavutil/tea.c     k1 = ctx->key[1];
ctx                60 libavutil/tea.c     k2 = ctx->key[2];
ctx                61 libavutil/tea.c     k3 = ctx->key[3];
ctx                95 libavutil/tea.c void av_tea_crypt(AVTEA *ctx, uint8_t *dst, const uint8_t *src, int count,
ctx               102 libavutil/tea.c             tea_crypt_ecb(ctx, dst, src, decrypt, iv);
ctx               112 libavutil/tea.c                 tea_crypt_ecb(ctx, dst, dst, decrypt, NULL);
ctx               115 libavutil/tea.c                 tea_crypt_ecb(ctx, dst, src, decrypt, NULL);
ctx                52 libavutil/tea.h void av_tea_init(struct AVTEA *ctx, const uint8_t key[16], int rounds);
ctx                64 libavutil/tea.h void av_tea_crypt(struct AVTEA *ctx, uint8_t *dst, const uint8_t *src,
ctx               128 libavutil/tests/blowfish.c static void test_blowfish(AVBlowfish *ctx, uint8_t *dst, const uint8_t *src,
ctx               132 libavutil/tests/blowfish.c     av_blowfish_crypt(ctx, dst, src, len, iv, dir);
ctx               152 libavutil/tests/blowfish.c     AVBlowfish *ctx = av_blowfish_alloc();
ctx               153 libavutil/tests/blowfish.c     if (!ctx)
ctx               156 libavutil/tests/blowfish.c     av_blowfish_init(ctx, "abcdefghijklmnopqrstuvwxyz", 26);
ctx               158 libavutil/tests/blowfish.c     test_blowfish(ctx, tmp, plaintext, ciphertext, 1, NULL, 0, "encryption");
ctx               159 libavutil/tests/blowfish.c     test_blowfish(ctx, tmp, ciphertext, plaintext, 1, NULL, 1, "decryption");
ctx               160 libavutil/tests/blowfish.c     test_blowfish(ctx, tmp, tmp, ciphertext, 1, NULL, 0, "Inplace encryption");
ctx               161 libavutil/tests/blowfish.c     test_blowfish(ctx, tmp, tmp, plaintext,  1, NULL, 1, "Inplace decryption");
ctx               163 libavutil/tests/blowfish.c     test_blowfish(ctx, tmp, plaintext2, ciphertext2, 2, iv, 0, "CBC encryption");
ctx               165 libavutil/tests/blowfish.c     test_blowfish(ctx, tmp, ciphertext2, plaintext2, 2, iv, 1, "CBC decryption");
ctx               167 libavutil/tests/blowfish.c     test_blowfish(ctx, tmp, tmp, ciphertext2, 2, iv, 0, "Inplace CBC encryption");
ctx               169 libavutil/tests/blowfish.c     test_blowfish(ctx, tmp, tmp, plaintext2,  2, iv, 1, "Inplace CBC decryption");
ctx               175 libavutil/tests/blowfish.c         av_blowfish_init(ctx, variable_key[i], 8);
ctx               177 libavutil/tests/blowfish.c         av_blowfish_crypt_ecb(ctx, &tmptext_l[i], &tmptext_r[i], 0);
ctx               183 libavutil/tests/blowfish.c         av_blowfish_crypt_ecb(ctx, &tmptext_l[i], &tmptext_r[i], 1);
ctx               190 libavutil/tests/blowfish.c     av_free(ctx);
ctx                37 libavutil/tests/crc.c     const AVCRC *ctx;
ctx                43 libavutil/tests/crc.c         ctx = av_crc_get_table(p[i][0]);
ctx                44 libavutil/tests/crc.c         printf("crc %08X = %X\n", p[i][1], av_crc(ctx, 0, buf, sizeof(buf)));
ctx                31 libavutil/tests/hash.c    struct AVHashContext *ctx = NULL;
ctx                40 libavutil/tests/hash.c        if (av_hash_alloc(&ctx, av_hash_names(i)) < 0)
ctx                43 libavutil/tests/hash.c        av_hash_init(ctx);
ctx                44 libavutil/tests/hash.c        av_hash_update(ctx, src, SRC_BUF_SIZE);
ctx                46 libavutil/tests/hash.c        av_hash_final_hex(ctx, dst, DST_BUF_SIZE);
ctx                47 libavutil/tests/hash.c        printf("%s hex: %s\n", av_hash_get_name(ctx), dst);
ctx                49 libavutil/tests/hash.c        av_hash_init(ctx);
ctx                50 libavutil/tests/hash.c        av_hash_update(ctx, src, SRC_BUF_SIZE);
ctx                51 libavutil/tests/hash.c        av_hash_final_bin(ctx, dst, DST_BUF_SIZE);
ctx                52 libavutil/tests/hash.c        printf("%s bin: ", av_hash_get_name(ctx));
ctx                53 libavutil/tests/hash.c        for (j = 0; j < av_hash_get_size(ctx); j++) {
ctx                58 libavutil/tests/hash.c        av_hash_init(ctx);
ctx                59 libavutil/tests/hash.c        av_hash_update(ctx, src, SRC_BUF_SIZE);
ctx                60 libavutil/tests/hash.c        av_hash_final_b64(ctx, dst, DST_BUF_SIZE);
ctx                61 libavutil/tests/hash.c        printf("%s b64: %s\n", av_hash_get_name(ctx), dst);
ctx                62 libavutil/tests/hash.c        av_hash_freep(&ctx);
ctx                29 libavutil/tests/murmur3.c     struct AVMurMur3 *ctx = av_murmur3_alloc();
ctx                36 libavutil/tests/murmur3.c         av_murmur3_init_seeded(ctx, 256 - i);
ctx                38 libavutil/tests/murmur3.c         av_murmur3_update(ctx, in, i);
ctx                39 libavutil/tests/murmur3.c         av_murmur3_final(ctx, hashes + 16 * i);
ctx                41 libavutil/tests/murmur3.c     av_murmur3_init_seeded(ctx, 0);
ctx                42 libavutil/tests/murmur3.c     av_murmur3_update(ctx, hashes, 256 * 16);
ctx                43 libavutil/tests/murmur3.c     av_murmur3_final(ctx, hash_result);
ctx                45 libavutil/tests/murmur3.c     av_freep(&ctx);
ctx                51 libavutil/tests/murmur3.c     av_murmur3_init(ctx);
ctx                53 libavutil/tests/murmur3.c         av_murmur3_update(ctx, in, 512*1024);
ctx                54 libavutil/tests/murmur3.c     av_murmur3_final(ctx, hash_result);
ctx                99 libavutil/tests/opt.c static const char *test_get_name(void *ctx)
ctx                30 libavutil/tests/ripemd.c     struct AVRIPEMD *ctx;
ctx                34 libavutil/tests/ripemd.c     ctx = av_ripemd_alloc();
ctx                35 libavutil/tests/ripemd.c     if (!ctx)
ctx                41 libavutil/tests/ripemd.c             av_ripemd_init(ctx, lengths[j]);
ctx                43 libavutil/tests/ripemd.c                 av_ripemd_update(ctx, "abc", 3);
ctx                45 libavutil/tests/ripemd.c                 av_ripemd_update(ctx, "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", 56);
ctx                48 libavutil/tests/ripemd.c                     av_ripemd_update(ctx, "a", 1);
ctx                49 libavutil/tests/ripemd.c             av_ripemd_final(ctx, digest);
ctx                77 libavutil/tests/ripemd.c     av_free(ctx);
ctx                27 libavutil/tests/sha.c     struct AVSHA *ctx;
ctx                31 libavutil/tests/sha.c     ctx = av_sha_alloc();
ctx                32 libavutil/tests/sha.c     if (!ctx)
ctx                38 libavutil/tests/sha.c             av_sha_init(ctx, lengths[j]);
ctx                40 libavutil/tests/sha.c                 av_sha_update(ctx, "abc", 3);
ctx                42 libavutil/tests/sha.c                 av_sha_update(ctx, "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", 56);
ctx                45 libavutil/tests/sha.c                     av_sha_update(ctx, "a", 1);
ctx                46 libavutil/tests/sha.c             av_sha_final(ctx, digest);
ctx                72 libavutil/tests/sha.c     av_free(ctx);
ctx                32 libavutil/tests/sha512.c     struct AVSHA512 *ctx;
ctx                36 libavutil/tests/sha512.c     ctx = av_sha512_alloc();
ctx                37 libavutil/tests/sha512.c     if (!ctx)
ctx                44 libavutil/tests/sha512.c             av_sha512_init(ctx, lengths[j]);
ctx                46 libavutil/tests/sha512.c                 av_sha512_update(ctx, "abc", 3);
ctx                48 libavutil/tests/sha512.c                 av_sha512_update(ctx, "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
ctx                52 libavutil/tests/sha512.c                     av_sha512_update(ctx, "a", 1);
ctx                53 libavutil/tests/sha512.c             av_sha512_final(ctx, digest);
ctx                87 libavutil/tests/sha512.c     av_free(ctx);
ctx                62 libavutil/tests/tea.c static void test_tea(struct AVTEA *ctx, uint8_t *dst, const uint8_t *src,
ctx                66 libavutil/tests/tea.c     av_tea_crypt(ctx, dst, src, len, iv, dir);
ctx                82 libavutil/tests/tea.c     struct AVTEA *ctx;
ctx                89 libavutil/tests/tea.c     ctx = av_tea_alloc();
ctx                90 libavutil/tests/tea.c     if (!ctx)
ctx                94 libavutil/tests/tea.c         av_tea_init(ctx, tea_test_key[i], 64);
ctx                96 libavutil/tests/tea.c         test_tea(ctx, buf, tea_test_pt[i], tea_test_ct[i], 1, NULL, 0, "encryption");
ctx                97 libavutil/tests/tea.c         test_tea(ctx, buf, tea_test_ct[i], tea_test_pt[i], 1, NULL, 1, "decryption");
ctx               101 libavutil/tests/tea.c         av_tea_crypt(ctx, ct, src, 4, iv, 0);
ctx               105 libavutil/tests/tea.c         test_tea(ctx, pl, ct, src, 4, iv, 1, "CBC decryption");
ctx               108 libavutil/tests/tea.c         test_tea(ctx, ct, ct, src, 4, iv, 1, "CBC inplace decryption");
ctx               112 libavutil/tests/tea.c     av_free(ctx);
ctx                63 libavutil/tests/xtea.c static void test_xtea(AVXTEA *ctx, uint8_t *dst, const uint8_t *src,
ctx                68 libavutil/tests/xtea.c     crypt(ctx, dst, src, len, iv, dir);
ctx                89 libavutil/tests/xtea.c     AVXTEA *ctx = av_xtea_alloc();
ctx                90 libavutil/tests/xtea.c     if (!ctx)
ctx                94 libavutil/tests/xtea.c         av_xtea_init(ctx, xtea_test_key[i]);
ctx                96 libavutil/tests/xtea.c         test_xtea(ctx, buf, xtea_test_pt[i], xtea_test_ct[i], 1, NULL, 0, "encryption", av_xtea_crypt);
ctx                97 libavutil/tests/xtea.c         test_xtea(ctx, buf, xtea_test_ct[i], xtea_test_pt[i], 1, NULL, 1, "decryption", av_xtea_crypt);
ctx               101 libavutil/tests/xtea.c         av_xtea_le_init(ctx, buf);
ctx               106 libavutil/tests/xtea.c         test_xtea(ctx, buf, pl, ct, 1, NULL, 0, "encryption", av_xtea_le_crypt);
ctx               107 libavutil/tests/xtea.c         test_xtea(ctx, buf, ct, pl, 1, NULL, 1, "decryption", av_xtea_le_crypt);
ctx               111 libavutil/tests/xtea.c         av_xtea_crypt(ctx, ct, src, 4, iv, 0);
ctx               115 libavutil/tests/xtea.c         test_xtea(ctx, pl, ct, src, 4, iv, 1, "CBC decryption", av_xtea_crypt);
ctx               118 libavutil/tests/xtea.c         test_xtea(ctx, ct, ct, src, 4, iv, 1, "CBC inplace decryption", av_xtea_crypt);
ctx               122 libavutil/tests/xtea.c     av_free(ctx);
ctx                53 libavutil/twofish.h int av_twofish_init(struct AVTWOFISH *ctx, const uint8_t *key, int key_bits);
ctx                65 libavutil/twofish.h void av_twofish_crypt(struct AVTWOFISH *ctx, uint8_t *dst, const uint8_t *src, int count, uint8_t* iv, int decrypt);
ctx               110 libavutil/tx.c av_cold void av_tx_uninit(AVTXContext **ctx)
ctx               112 libavutil/tx.c     if (!(*ctx))
ctx               115 libavutil/tx.c     av_free((*ctx)->pfatab);
ctx               116 libavutil/tx.c     av_free((*ctx)->exptab);
ctx               117 libavutil/tx.c     av_free((*ctx)->revtab);
ctx               118 libavutil/tx.c     av_free((*ctx)->tmp);
ctx               120 libavutil/tx.c     av_freep(ctx);
ctx               123 libavutil/tx.c av_cold int av_tx_init(AVTXContext **ctx, av_tx_fn *tx, enum AVTXType type,
ctx               152 libavutil/tx.c     *ctx = s;
ctx               109 libavutil/tx.h int av_tx_init(AVTXContext **ctx, av_tx_fn *tx, enum AVTXType type,
ctx               115 libavutil/tx.h void av_tx_uninit(AVTXContext **ctx);
ctx                47 libavutil/x86/w64xmmtest.h #define testxmmclobbers(func, ctx, ...)                         \
ctx                51 libavutil/x86/w64xmmtest.h     ret = __real_ ## func(ctx, __VA_ARGS__);                    \
ctx                55 libavutil/x86/w64xmmtest.h         av_log(ctx, AV_LOG_ERROR,                               \
ctx                60 libavutil/x86/w64xmmtest.h                 av_log(ctx, AV_LOG_ERROR,                       \
ctx                64 libavutil/x86/w64xmmtest.h                 av_log(ctx, AV_LOG_ERROR,                       \
ctx                42 libavutil/xtea.c void av_xtea_init(AVXTEA *ctx, const uint8_t key[16])
ctx                47 libavutil/xtea.c         ctx->key[i] = AV_RB32(key + (i << 2));
ctx                50 libavutil/xtea.c void av_xtea_le_init(AVXTEA *ctx, const uint8_t key[16])
ctx                55 libavutil/xtea.c         ctx->key[i] = AV_RL32(key + (i << 2));
ctx                58 libavutil/xtea.c static void xtea_crypt_ecb(AVXTEA *ctx, uint8_t *dst, const uint8_t *src,
ctx                63 libavutil/xtea.c     uint32_t k0 = ctx->key[0];
ctx                64 libavutil/xtea.c     uint32_t k1 = ctx->key[1];
ctx                65 libavutil/xtea.c     uint32_t k2 = ctx->key[2];
ctx                66 libavutil/xtea.c     uint32_t k3 = ctx->key[3];
ctx                78 libavutil/xtea.c             v1 -= (((v0 << 4) ^ (v0 >> 5)) + v0) ^ (sum + ctx->key[(sum >> 11) & 3]);
ctx                80 libavutil/xtea.c             v0 -= (((v1 << 4) ^ (v1 >> 5)) + v1) ^ (sum + ctx->key[sum & 3]);
ctx               131 libavutil/xtea.c             v0 += (((v1 << 4) ^ (v1 >> 5)) + v1) ^ (sum + ctx->key[sum & 3]);
ctx               133 libavutil/xtea.c             v1 += (((v0 << 4) ^ (v0 >> 5)) + v0) ^ (sum + ctx->key[(sum >> 11) & 3]);
ctx               178 libavutil/xtea.c static void xtea_le_crypt_ecb(AVXTEA *ctx, uint8_t *dst, const uint8_t *src,
ctx               191 libavutil/xtea.c             v1 -= (((v0 << 4) ^ (v0 >> 5)) + v0) ^ (sum + ctx->key[(sum >> 11) & 3]);
ctx               193 libavutil/xtea.c             v0 -= (((v1 << 4) ^ (v1 >> 5)) + v1) ^ (sum + ctx->key[sum & 3]);
ctx               204 libavutil/xtea.c             v0 += (((v1 << 4) ^ (v1 >> 5)) + v1) ^ (sum + ctx->key[sum & 3]);
ctx               206 libavutil/xtea.c             v1 += (((v0 << 4) ^ (v0 >> 5)) + v0) ^ (sum + ctx->key[(sum >> 11) & 3]);
ctx               214 libavutil/xtea.c static void xtea_crypt(AVXTEA *ctx, uint8_t *dst, const uint8_t *src, int count,
ctx               222 libavutil/xtea.c             crypt(ctx, dst, src, decrypt, iv);
ctx               232 libavutil/xtea.c                 crypt(ctx, dst, dst, decrypt, NULL);
ctx               235 libavutil/xtea.c                 crypt(ctx, dst, src, decrypt, NULL);
ctx               243 libavutil/xtea.c void av_xtea_crypt(AVXTEA *ctx, uint8_t *dst, const uint8_t *src, int count,
ctx               246 libavutil/xtea.c     xtea_crypt(ctx, dst, src, count, iv, decrypt, xtea_crypt_ecb);
ctx               249 libavutil/xtea.c void av_xtea_le_crypt(AVXTEA *ctx, uint8_t *dst, const uint8_t *src, int count,
ctx               252 libavutil/xtea.c     xtea_crypt(ctx, dst, src, count, iv, decrypt, xtea_le_crypt_ecb);
ctx                51 libavutil/xtea.h void av_xtea_init(struct AVXTEA *ctx, const uint8_t key[16]);
ctx                60 libavutil/xtea.h void av_xtea_le_init(struct AVXTEA *ctx, const uint8_t key[16]);
ctx                73 libavutil/xtea.h void av_xtea_crypt(struct AVXTEA *ctx, uint8_t *dst, const uint8_t *src,
ctx                87 libavutil/xtea.h void av_xtea_le_crypt(struct AVXTEA *ctx, uint8_t *dst, const uint8_t *src,
ctx               150 libswresample/audioconvert.c     AudioConvert *ctx;
ctx               155 libswresample/audioconvert.c     ctx = av_mallocz(sizeof(*ctx));
ctx               156 libswresample/audioconvert.c     if (!ctx)
ctx               164 libswresample/audioconvert.c     ctx->channels = channels;
ctx               165 libswresample/audioconvert.c     ctx->conv_f   = f;
ctx               166 libswresample/audioconvert.c     ctx->ch_map   = ch_map;
ctx               168 libswresample/audioconvert.c         memset(ctx->silence, 0x80, sizeof(ctx->silence));
ctx               172 libswresample/audioconvert.c             case 1:ctx->simd_f = cpy1; break;
ctx               173 libswresample/audioconvert.c             case 2:ctx->simd_f = cpy2; break;
ctx               174 libswresample/audioconvert.c             case 4:ctx->simd_f = cpy4; break;
ctx               175 libswresample/audioconvert.c             case 8:ctx->simd_f = cpy8; break;
ctx               179 libswresample/audioconvert.c     if(HAVE_X86ASM && HAVE_MMX) swri_audio_convert_init_x86(ctx, out_fmt, in_fmt, channels);
ctx               180 libswresample/audioconvert.c     if(ARCH_ARM)              swri_audio_convert_init_arm(ctx, out_fmt, in_fmt, channels);
ctx               181 libswresample/audioconvert.c     if(ARCH_AARCH64)          swri_audio_convert_init_aarch64(ctx, out_fmt, in_fmt, channels);
ctx               183 libswresample/audioconvert.c     return ctx;
ctx               186 libswresample/audioconvert.c void swri_audio_convert_free(AudioConvert **ctx)
ctx               188 libswresample/audioconvert.c     av_freep(ctx);
ctx               191 libswresample/audioconvert.c int swri_audio_convert(AudioConvert *ctx, AudioData *out, AudioData *in, int len)
ctx               198 libswresample/audioconvert.c     av_assert0(ctx->channels == out->ch_count);
ctx               200 libswresample/audioconvert.c     if (ctx->in_simd_align_mask) {
ctx               205 libswresample/audioconvert.c         misaligned |= m & ctx->in_simd_align_mask;
ctx               207 libswresample/audioconvert.c     if (ctx->out_simd_align_mask) {
ctx               212 libswresample/audioconvert.c         misaligned |= m & ctx->out_simd_align_mask;
ctx               217 libswresample/audioconvert.c     if(ctx->simd_f && !ctx->ch_map && !misaligned){
ctx               221 libswresample/audioconvert.c         av_assert2(ctx->channels == SWR_CH_MAX || !in->ch[ctx->channels]);
ctx               226 libswresample/audioconvert.c                     ctx->simd_f(out->ch+ch, (const uint8_t **)in->ch+ch, off * (out->planar ? 1 :out->ch_count));
ctx               229 libswresample/audioconvert.c                 ctx->simd_f(out->ch, (const uint8_t **)in->ch, off);
ctx               236 libswresample/audioconvert.c     for(ch=0; ch<ctx->channels; ch++){
ctx               237 libswresample/audioconvert.c         const int ich= ctx->ch_map ? ctx->ch_map[ch] : ch;
ctx               239 libswresample/audioconvert.c         const uint8_t *pi= ich < 0 ? ctx->silence : in->ch[ich];
ctx               244 libswresample/audioconvert.c         ctx->conv_f(po+off*os, pi+off*is, is, os, end);
ctx                68 libswresample/audioconvert.h void swri_audio_convert_free(AudioConvert **ctx);
ctx                76 libswresample/audioconvert.h int swri_audio_convert(AudioConvert *ctx, AudioData *out, AudioData *in, int len);
ctx                36 tests/api/api-band-test.c static void draw_horiz_band(AVCodecContext *ctx, const AVFrame *fr, int offset[4],
ctx                47 tests/api/api-band-test.c     pix_fmt_desc = av_pix_fmt_desc_get(ctx->pix_fmt);
ctx                48 tests/api/api-band-test.c     chroma_w = -((-ctx->width) >> pix_fmt_desc->log2_chroma_w);
ctx                51 tests/api/api-band-test.c     shift_height = -((-ctx->height) >> pix_fmt_desc->log2_chroma_h);
ctx                54 tests/api/api-band-test.c         memcpy(slice_byte_buffer + ctx->width * slice_position + i * ctx->width,
ctx                55 tests/api/api-band-test.c                fr->data[0] + offset[0] + i * fr->linesize[0], ctx->width);
ctx                58 tests/api/api-band-test.c         memcpy(slice_byte_buffer + ctx->width * ctx->height + chroma_w * shift_slice_position + i * chroma_w,
ctx                62 tests/api/api-band-test.c         memcpy(slice_byte_buffer + ctx->width * ctx->height + chroma_w * shift_height + chroma_w * shift_slice_position + i * chroma_w,
ctx                70 tests/api/api-band-test.c     AVCodecContext *ctx= NULL;
ctx               111 tests/api/api-band-test.c     ctx = avcodec_alloc_context3(codec);
ctx               112 tests/api/api-band-test.c     if (!ctx) {
ctx               117 tests/api/api-band-test.c     result = avcodec_parameters_to_context(ctx, origin_par);
ctx               123 tests/api/api-band-test.c     ctx->draw_horiz_band = draw_horiz_band;
ctx               124 tests/api/api-band-test.c     ctx->thread_count = 1;
ctx               126 tests/api/api-band-test.c     result = avcodec_open2(ctx, codec, NULL);
ctx               128 tests/api/api-band-test.c         av_log(ctx, AV_LOG_ERROR, "Can't open decoder\n");
ctx               143 tests/api/api-band-test.c     byte_buffer_size = av_image_get_buffer_size(ctx->pix_fmt, ctx->width, ctx->height, 32);
ctx               171 tests/api/api-band-test.c             result = avcodec_decode_video2(ctx, fr, &got_frame, &pkt);
ctx               179 tests/api/api-band-test.c                                         ctx->pix_fmt, ctx->width, ctx->height, 1);
ctx               201 tests/api/api-band-test.c     avcodec_close(ctx);
ctx               203 tests/api/api-band-test.c     avcodec_free_context(&ctx);
ctx                54 tests/api/api-flac-test.c     AVCodecContext *ctx;
ctx                61 tests/api/api-flac-test.c     ctx = avcodec_alloc_context3(enc);
ctx                62 tests/api/api-flac-test.c     if (!ctx) {
ctx                67 tests/api/api-flac-test.c     ctx->sample_fmt = AV_SAMPLE_FMT_S16;
ctx                68 tests/api/api-flac-test.c     ctx->sample_rate = sample_rate;
ctx                69 tests/api/api-flac-test.c     ctx->channel_layout = ch_layout;
ctx                71 tests/api/api-flac-test.c     result = avcodec_open2(ctx, enc, NULL);
ctx                73 tests/api/api-flac-test.c         av_log(ctx, AV_LOG_ERROR, "Can't open encoder\n");
ctx                77 tests/api/api-flac-test.c     *enc_ctx = ctx;
ctx                84 tests/api/api-flac-test.c     AVCodecContext *ctx;
ctx                87 tests/api/api-flac-test.c     ctx = avcodec_alloc_context3(dec);
ctx                88 tests/api/api-flac-test.c     if (!ctx) {
ctx                93 tests/api/api-flac-test.c     ctx->request_sample_fmt = AV_SAMPLE_FMT_S16;
ctx                95 tests/api/api-flac-test.c     ctx->request_channel_layout = ch_layout;
ctx                96 tests/api/api-flac-test.c     ctx->channel_layout = ch_layout;
ctx                98 tests/api/api-flac-test.c     result = avcodec_open2(ctx, dec, NULL);
ctx               100 tests/api/api-flac-test.c         av_log(ctx, AV_LOG_ERROR, "Can't open decoder\n");
ctx               104 tests/api/api-flac-test.c     *dec_ctx = ctx;
ctx                36 tests/api/api-h264-test.c     AVCodecContext *ctx= NULL;
ctx                76 tests/api/api-h264-test.c     ctx = avcodec_alloc_context3(codec);
ctx                77 tests/api/api-h264-test.c     if (!ctx) {
ctx                82 tests/api/api-h264-test.c     result = avcodec_parameters_to_context(ctx, origin_par);
ctx                88 tests/api/api-h264-test.c     result = avcodec_open2(ctx, codec, NULL);
ctx                90 tests/api/api-h264-test.c         av_log(ctx, AV_LOG_ERROR, "Can't open decoder\n");
ctx               100 tests/api/api-h264-test.c     byte_buffer_size = av_image_get_buffer_size(ctx->pix_fmt, ctx->width, ctx->height, 16);
ctx               122 tests/api/api-h264-test.c             result = avcodec_decode_video2(ctx, fr, &got_frame, &pkt);
ctx               130 tests/api/api-h264-test.c                                         ctx->pix_fmt, ctx->width, ctx->height, 1);
ctx               147 tests/api/api-h264-test.c     avcodec_close(ctx);
ctx               149 tests/api/api-h264-test.c     avcodec_free_context(&ctx);
ctx                76 tests/api/api-seek-test.c                                 AVCodecContext *ctx, AVFrame *fr, uint64_t ts_start, uint64_t ts_end, int no_seeking)
ctx                87 tests/api/api-seek-test.c     byte_buffer_size = av_image_get_buffer_size(ctx->pix_fmt, ctx->width, ctx->height, 16);
ctx               101 tests/api/api-seek-test.c         avcodec_flush_buffers(ctx);
ctx               119 tests/api/api-seek-test.c             result = avcodec_decode_video2(ctx, fr, &got_frame, &pkt);
ctx               127 tests/api/api-seek-test.c                                         ctx->pix_fmt, ctx->width, ctx->height, 1);
ctx               177 tests/api/api-seek-test.c     AVCodecContext *ctx= NULL;
ctx               227 tests/api/api-seek-test.c     ctx = avcodec_alloc_context3(codec);
ctx               228 tests/api/api-seek-test.c     if (!ctx) {
ctx               234 tests/api/api-seek-test.c     result = avcodec_parameters_to_context(ctx, origin_par);
ctx               240 tests/api/api-seek-test.c     result = avcodec_open2(ctx, codec, NULL);
ctx               242 tests/api/api-seek-test.c         av_log(ctx, AV_LOG_ERROR, "Can't open decoder\n");
ctx               253 tests/api/api-seek-test.c     result = compute_crc_of_packets(fmt_ctx, video_stream, ctx, fr, 0, 0, 1);
ctx               259 tests/api/api-seek-test.c             result = compute_crc_of_packets(fmt_ctx, video_stream, ctx, fr, i, j, 0);
ctx               269 tests/api/api-seek-test.c     avcodec_close(ctx);
ctx               271 tests/api/api-seek-test.c     avcodec_free_context(&ctx);
ctx                85 tests/checkasm/opusdsp.c     OpusDSP ctx;
ctx                86 tests/checkasm/opusdsp.c     ff_opus_dsp_init(&ctx);
ctx                88 tests/checkasm/opusdsp.c     if (check_func(ctx.postfilter, "postfilter_15"))
ctx                92 tests/checkasm/opusdsp.c     if (check_func(ctx.postfilter, "postfilter_512"))
ctx                96 tests/checkasm/opusdsp.c     if (check_func(ctx.postfilter, "postfilter_1022"))
ctx               100 tests/checkasm/opusdsp.c     if (check_func(ctx.deemphasis, "deemphasis"))
ctx                53 tests/checkasm/sw_scale.c     struct SwsContext *ctx;
ctx                70 tests/checkasm/sw_scale.c     ctx = sws_alloc_context();
ctx                71 tests/checkasm/sw_scale.c     if (sws_init_context(ctx, NULL, NULL) < 0)
ctx                80 tests/checkasm/sw_scale.c             ctx->srcBpc = hscale_pairs[hpi][0];
ctx                81 tests/checkasm/sw_scale.c             ctx->dstBpc = hscale_pairs[hpi][1];
ctx                82 tests/checkasm/sw_scale.c             ctx->hLumFilterSize = ctx->hChrFilterSize = width;
ctx               113 tests/checkasm/sw_scale.c             ff_getSwsFunc(ctx);
ctx               115 tests/checkasm/sw_scale.c             if (check_func(ctx->hcScale, "hscale_%d_to_%d_width%d", ctx->srcBpc, ctx->dstBpc + 1, width)) {
ctx               127 tests/checkasm/sw_scale.c     sws_freeContext(ctx);
ctx               500 tools/ismindex.c     AVFormatContext *ctx = NULL;
ctx               505 tools/ismindex.c     err = avformat_open_input(&ctx, file, NULL, NULL);
ctx               512 tools/ismindex.c     err = avformat_find_stream_info(ctx, NULL);
ctx               519 tools/ismindex.c     if (ctx->nb_streams < 1) {
ctx               524 tools/ismindex.c     for (i = 0; i < ctx->nb_streams; i++) {
ctx               526 tools/ismindex.c         AVStream *st = ctx->streams[i];
ctx               606 tools/ismindex.c     avformat_close_input(&ctx);
ctx               612 tools/ismindex.c     if (ctx)
ctx               613 tools/ismindex.c         avformat_close_input(&ctx);
ctx               251 tools/qt-faststart.c static int update_chunk_offsets_callback(void *ctx, atom_t *atom)
ctx               253 tools/qt-faststart.c     update_chunk_offsets_context_t *context = ctx;
ctx               328 tools/qt-faststart.c static int upgrade_stco_callback(void *ctx, atom_t *atom)
ctx               330 tools/qt-faststart.c     upgrade_stco_context_t *context = ctx;
ctx               119 tools/sidxindex.c     AVFormatContext *ctx = NULL;
ctx               124 tools/sidxindex.c     err = avformat_open_input(&ctx, file, NULL, NULL);
ctx               131 tools/sidxindex.c     err = avformat_find_stream_info(ctx, NULL);
ctx               138 tools/sidxindex.c     if (ctx->nb_streams < 1) {
ctx               142 tools/sidxindex.c     if (ctx->nb_streams > 1)
ctx               145 tools/sidxindex.c     for (i = 0; i < ctx->nb_streams; i++) {
ctx               147 tools/sidxindex.c         AVStream *st = ctx->streams[i];
ctx               206 tools/sidxindex.c     avformat_close_input(&ctx);
ctx               211 tools/sidxindex.c     if (ctx)
ctx               212 tools/sidxindex.c         avformat_close_input(&ctx);
ctx               185 tools/target_dec_fuzzer.c     AVCodecContext* ctx = avcodec_alloc_context3(c);
ctx               187 tools/target_dec_fuzzer.c     if (!ctx || !parser_avctx)
ctx               190 tools/target_dec_fuzzer.c     if (ctx->max_pixels == 0 || ctx->max_pixels > maxpixels_per_frame)
ctx               191 tools/target_dec_fuzzer.c         ctx->max_pixels = maxpixels_per_frame; //To reduce false positive OOM and hangs
ctx               192 tools/target_dec_fuzzer.c     ctx->refcounted_frames = 1; //To reduce false positive timeouts and focus testing on the refcounted API
ctx               194 tools/target_dec_fuzzer.c     ctx->max_samples = maxsamples_per_frame;
ctx               202 tools/target_dec_fuzzer.c         ctx->width                              = bytestream2_get_le32(&gbc);
ctx               203 tools/target_dec_fuzzer.c         ctx->height                             = bytestream2_get_le32(&gbc);
ctx               204 tools/target_dec_fuzzer.c         ctx->bit_rate                           = bytestream2_get_le64(&gbc);
ctx               205 tools/target_dec_fuzzer.c         ctx->bits_per_coded_sample              = bytestream2_get_le32(&gbc);
ctx               211 tools/target_dec_fuzzer.c             ctx->strict_std_compliance = FF_COMPLIANCE_EXPERIMENTAL;
ctx               213 tools/target_dec_fuzzer.c             ctx->err_recognition = AV_EF_AGGRESSIVE | AV_EF_COMPLIANT | AV_EF_CAREFUL;
ctx               215 tools/target_dec_fuzzer.c                 ctx->err_recognition |= AV_EF_EXPLODE;
ctx               218 tools/target_dec_fuzzer.c             ctx->flags2 |= AV_CODEC_FLAG2_FAST;
ctx               225 tools/target_dec_fuzzer.c         ctx->sample_rate                        = bytestream2_get_le32(&gbc) & 0x7FFFFFFF;
ctx               226 tools/target_dec_fuzzer.c         ctx->channels                           = (unsigned)bytestream2_get_le32(&gbc) % FF_SANE_NB_CHANNELS;
ctx               227 tools/target_dec_fuzzer.c         ctx->block_align                        = bytestream2_get_le32(&gbc) & 0x7FFFFFFF;
ctx               228 tools/target_dec_fuzzer.c         ctx->codec_tag                          = bytestream2_get_le32(&gbc);
ctx               232 tools/target_dec_fuzzer.c             ctx->codec_tag = c->codec_tags[ctx->codec_tag % n];
ctx               235 tools/target_dec_fuzzer.c         ctx->request_channel_layout             = bytestream2_get_le64(&gbc);
ctx               237 tools/target_dec_fuzzer.c         ctx->idct_algo                          = bytestream2_get_byte(&gbc) % 25;
ctx               240 tools/target_dec_fuzzer.c             switch (ctx->codec_id) {
ctx               253 tools/target_dec_fuzzer.c             ctx->extradata = av_mallocz(extradata_size + AV_INPUT_BUFFER_PADDING_SIZE);
ctx               254 tools/target_dec_fuzzer.c             if (ctx->extradata) {
ctx               255 tools/target_dec_fuzzer.c                 ctx->extradata_size = extradata_size;
ctx               256 tools/target_dec_fuzzer.c                 size -= ctx->extradata_size;
ctx               257 tools/target_dec_fuzzer.c                 memcpy(ctx->extradata, data + size, ctx->extradata_size);
ctx               260 tools/target_dec_fuzzer.c         if (av_image_check_size(ctx->width, ctx->height, 0, ctx))
ctx               261 tools/target_dec_fuzzer.c             ctx->width = ctx->height = 0;
ctx               264 tools/target_dec_fuzzer.c     int res = avcodec_open2(ctx, c, &opts);
ctx               266 tools/target_dec_fuzzer.c         avcodec_free_context(&ctx);
ctx               272 tools/target_dec_fuzzer.c     parser_avctx->codec_id = ctx->codec_id;
ctx               334 tools/target_dec_fuzzer.c             int ret = decode_handler(ctx, frame, &got_frame, &avpkt);
ctx               336 tools/target_dec_fuzzer.c             ec_pixels += (ctx->width + 32LL) * (ctx->height + 32LL);
ctx               337 tools/target_dec_fuzzer.c             if (it > 20 || ec_pixels > 4 * ctx->max_pixels)
ctx               338 tools/target_dec_fuzzer.c                 ctx->error_concealment = 0;
ctx               348 tools/target_dec_fuzzer.c             if (ctx->codec_type != AVMEDIA_TYPE_AUDIO)
ctx               364 tools/target_dec_fuzzer.c         decode_handler(ctx, frame, &got_frame, &avpkt);
ctx               370 tools/target_dec_fuzzer.c     avcodec_free_context(&ctx);