ctx               419 ffmpeg.c       static int decode_interrupt_cb(void *ctx)
ctx               459 ffmpeg.c               AVFormatContext *s = of->ctx;
ctx               497 ffmpeg.c               avformat_close_input(&input_files[i]->ctx);
ctx               932 ffmpeg.c                   && input_files[ist->file_index]->ctx->nb_streams == 1
ctx              1211 ffmpeg.c               for (i = 0; i < of->ctx->nb_streams; i++)
ctx              1291 ffmpeg.c                       do_video_out(of->ctx, ost, filtered_frame, float_pts);
ctx              1300 ffmpeg.c                       do_audio_out(of->ctx, ost, filtered_frame);
ctx              1355 ffmpeg.c                      i, f->ctx->filename);
ctx              1389 ffmpeg.c                      i, of->ctx->filename);
ctx              1391 ffmpeg.c               for (j = 0; j < of->ctx->nb_streams; j++) {
ctx              1451 ffmpeg.c           oc = output_files[0]->ctx;
ctx              1603 ffmpeg.c               AVFormatContext *os = output_files[ost->file_index]->ctx;
ctx              1724 ffmpeg.c               start_time = f->ctx->start_time;
ctx              1780 ffmpeg.c           if (ost->st->codec->codec_type == AVMEDIA_TYPE_VIDEO && (of->ctx->oformat->flags & AVFMT_RAWPICTURE)) {
ctx              1788 ffmpeg.c           write_frame(of->ctx, &opkt, ost);
ctx              2142 ffmpeg.c               do_subtitle_out(output_files[ost->file_index]->ctx, ost, ist, &subtitle);
ctx              2304 ffmpeg.c               if (!strcmp(output_files[i]->ctx->oformat->name, "rtp")) {
ctx              2305 ffmpeg.c                   avc[j] = output_files[i]->ctx;
ctx              2471 ffmpeg.c                   AVFormatContext *avf = output_files[ost->file_index]->ctx;
ctx              2511 ffmpeg.c           AVStream *st = file->ctx->streams[pkt->stream_index];
ctx              2515 ffmpeg.c           av_log(file->ctx, AV_LOG_WARNING,
ctx              2537 ffmpeg.c               const AVOption *o = av_opt_find(of->ctx, "fflags", NULL, 0, 0);
ctx              2540 ffmpeg.c               av_opt_eval_flags(of->ctx, o, e->value, &format_flags);
ctx              2598 ffmpeg.c               oc = output_files[i]->ctx;
ctx              2616 ffmpeg.c               oc  = output_files[ost->file_index]->ctx;
ctx              3082 ffmpeg.c               for (j = 0; j < ifile->ctx->nb_programs; j++) {
ctx              3083 ffmpeg.c                   AVProgram *p = ifile->ctx->programs[j];
ctx              3097 ffmpeg.c               oc = output_files[i]->ctx;
ctx              3117 ffmpeg.c               av_dump_format(output_files[i]->ctx, i, output_files[i]->ctx->filename, 1);
ctx              3220 ffmpeg.c               AVFormatContext *os  = output_files[ost->file_index]->ctx;
ctx              3227 ffmpeg.c                   for (j = 0; j < of->ctx->nb_streams; j++)
ctx              3367 ffmpeg.c               ret = av_read_frame(f->ctx, &pkt);
ctx              3382 ffmpeg.c                   av_log(f->ctx, AV_LOG_WARNING,
ctx              3389 ffmpeg.c                       av_log(f->ctx, AV_LOG_ERROR,
ctx              3431 ffmpeg.c               if (f->ctx->pb ? !f->ctx->pb->seekable :
ctx              3432 ffmpeg.c                   strcmp(f->ctx->iformat->name, "lavfi"))
ctx              3473 ffmpeg.c           return av_read_frame(f->ctx, pkt);
ctx              3509 ffmpeg.c           is  = ifile->ctx;
ctx              3885 ffmpeg.c               os = output_files[i]->ctx;
ctx               334 ffmpeg.h           AVFormatContext *ctx;
ctx               454 ffmpeg.h           AVFormatContext *ctx;
ctx               119 ffmpeg_dxva2.c     DXVA2Context         *ctx;
ctx               127 ffmpeg_dxva2.c     DXVA2Context *ctx = ist->hwaccel_ctx;
ctx               130 ffmpeg_dxva2.c     if (ctx->surfaces) {
ctx               131 ffmpeg_dxva2.c         for (i = 0; i < ctx->num_surfaces; i++) {
ctx               132 ffmpeg_dxva2.c             if (ctx->surfaces[i])
ctx               133 ffmpeg_dxva2.c                 IDirect3DSurface9_Release(ctx->surfaces[i]);
ctx               136 ffmpeg_dxva2.c     av_freep(&ctx->surfaces);
ctx               137 ffmpeg_dxva2.c     av_freep(&ctx->surface_infos);
ctx               138 ffmpeg_dxva2.c     ctx->num_surfaces = 0;
ctx               139 ffmpeg_dxva2.c     ctx->surface_age  = 0;
ctx               141 ffmpeg_dxva2.c     if (ctx->decoder) {
ctx               142 ffmpeg_dxva2.c         IDirectXVideoDecoder_Release(ctx->decoder);
ctx               143 ffmpeg_dxva2.c         ctx->decoder = NULL;
ctx               150 ffmpeg_dxva2.c     DXVA2Context *ctx = ist->hwaccel_ctx;
ctx               156 ffmpeg_dxva2.c     if (ctx->decoder)
ctx               159 ffmpeg_dxva2.c     if (ctx->decoder_service)
ctx               160 ffmpeg_dxva2.c         IDirectXVideoDecoderService_Release(ctx->decoder_service);
ctx               162 ffmpeg_dxva2.c     if (ctx->d3d9devmgr && ctx->deviceHandle != INVALID_HANDLE_VALUE)
ctx               163 ffmpeg_dxva2.c         IDirect3DDeviceManager9_CloseDeviceHandle(ctx->d3d9devmgr, ctx->deviceHandle);
ctx               165 ffmpeg_dxva2.c     if (ctx->d3d9devmgr)
ctx               166 ffmpeg_dxva2.c         IDirect3DDeviceManager9_Release(ctx->d3d9devmgr);
ctx               168 ffmpeg_dxva2.c     if (ctx->d3d9device)
ctx               169 ffmpeg_dxva2.c         IDirect3DDevice9_Release(ctx->d3d9device);
ctx               171 ffmpeg_dxva2.c     if (ctx->d3d9)
ctx               172 ffmpeg_dxva2.c         IDirect3D9_Release(ctx->d3d9);
ctx               174 ffmpeg_dxva2.c     if (ctx->d3dlib)
ctx               175 ffmpeg_dxva2.c         FreeLibrary(ctx->d3dlib);
ctx               177 ffmpeg_dxva2.c     if (ctx->dxva2lib)
ctx               178 ffmpeg_dxva2.c         FreeLibrary(ctx->dxva2lib);
ctx               180 ffmpeg_dxva2.c     av_frame_free(&ctx->tmp_frame);
ctx               189 ffmpeg_dxva2.c     DXVA2Context        *ctx = w->ctx;
ctx               192 ffmpeg_dxva2.c     for (i = 0; i < ctx->num_surfaces; i++) {
ctx               193 ffmpeg_dxva2.c         if (ctx->surfaces[i] == w->surface) {
ctx               194 ffmpeg_dxva2.c             ctx->surface_infos[i].used = 0;
ctx               206 ffmpeg_dxva2.c     DXVA2Context *ctx = ist->hwaccel_ctx;
ctx               213 ffmpeg_dxva2.c     for (i = 0; i < ctx->num_surfaces; i++) {
ctx               214 ffmpeg_dxva2.c         surface_info *info = &ctx->surface_infos[i];
ctx               215 ffmpeg_dxva2.c         if (!info->used && (old_unused == -1 || info->age < ctx->surface_infos[old_unused].age))
ctx               224 ffmpeg_dxva2.c     surface = ctx->surfaces[i];
ctx               238 ffmpeg_dxva2.c     w->ctx     = ctx;
ctx               241 ffmpeg_dxva2.c     w->decoder = ctx->decoder;
ctx               244 ffmpeg_dxva2.c     ctx->surface_infos[i].used = 1;
ctx               245 ffmpeg_dxva2.c     ctx->surface_infos[i].age  = ctx->surface_age++;
ctx               256 ffmpeg_dxva2.c     DXVA2Context       *ctx = ist->hwaccel_ctx;
ctx               264 ffmpeg_dxva2.c     ctx->tmp_frame->width  = frame->width;
ctx               265 ffmpeg_dxva2.c     ctx->tmp_frame->height = frame->height;
ctx               266 ffmpeg_dxva2.c     ctx->tmp_frame->format = AV_PIX_FMT_NV12;
ctx               268 ffmpeg_dxva2.c     ret = av_frame_get_buffer(ctx->tmp_frame, 32);
ctx               278 ffmpeg_dxva2.c     av_image_copy_plane(ctx->tmp_frame->data[0], ctx->tmp_frame->linesize[0],
ctx               282 ffmpeg_dxva2.c     av_image_copy_plane(ctx->tmp_frame->data[1], ctx->tmp_frame->linesize[1],
ctx               288 ffmpeg_dxva2.c     ret = av_frame_copy_props(ctx->tmp_frame, frame);
ctx               293 ffmpeg_dxva2.c     av_frame_move_ref(frame, ctx->tmp_frame);
ctx               297 ffmpeg_dxva2.c     av_frame_unref(ctx->tmp_frame);
ctx               305 ffmpeg_dxva2.c     DXVA2Context *ctx;
ctx               314 ffmpeg_dxva2.c     ctx = av_mallocz(sizeof(*ctx));
ctx               315 ffmpeg_dxva2.c     if (!ctx)
ctx               318 ffmpeg_dxva2.c     ctx->deviceHandle = INVALID_HANDLE_VALUE;
ctx               320 ffmpeg_dxva2.c     ist->hwaccel_ctx           = ctx;
ctx               325 ffmpeg_dxva2.c     ctx->d3dlib = LoadLibrary("d3d9.dll");
ctx               326 ffmpeg_dxva2.c     if (!ctx->d3dlib) {
ctx               330 ffmpeg_dxva2.c     ctx->dxva2lib = LoadLibrary("dxva2.dll");
ctx               331 ffmpeg_dxva2.c     if (!ctx->dxva2lib) {
ctx               336 ffmpeg_dxva2.c     createD3D = (pDirect3DCreate9 *)GetProcAddress(ctx->d3dlib, "Direct3DCreate9");
ctx               341 ffmpeg_dxva2.c     createDeviceManager = (pCreateDeviceManager9 *)GetProcAddress(ctx->dxva2lib, "DXVA2CreateDirect3DDeviceManager9");
ctx               347 ffmpeg_dxva2.c     ctx->d3d9 = createD3D(D3D_SDK_VERSION);
ctx               348 ffmpeg_dxva2.c     if (!ctx->d3d9) {
ctx               358 ffmpeg_dxva2.c     IDirect3D9_GetAdapterDisplayMode(ctx->d3d9, adapter, &d3ddm);
ctx               367 ffmpeg_dxva2.c     hr = IDirect3D9_CreateDevice(ctx->d3d9, adapter, D3DDEVTYPE_HAL, GetShellWindow(),
ctx               369 ffmpeg_dxva2.c                                  &d3dpp, &ctx->d3d9device);
ctx               375 ffmpeg_dxva2.c     hr = createDeviceManager(&resetToken, &ctx->d3d9devmgr);
ctx               381 ffmpeg_dxva2.c     hr = IDirect3DDeviceManager9_ResetDevice(ctx->d3d9devmgr, ctx->d3d9device, resetToken);
ctx               387 ffmpeg_dxva2.c     hr = IDirect3DDeviceManager9_OpenDeviceHandle(ctx->d3d9devmgr, &ctx->deviceHandle);
ctx               393 ffmpeg_dxva2.c     hr = IDirect3DDeviceManager9_GetVideoService(ctx->d3d9devmgr, ctx->deviceHandle, &IID_IDirectXVideoDecoderService, (void **)&ctx->decoder_service);
ctx               399 ffmpeg_dxva2.c     ctx->tmp_frame = av_frame_alloc();
ctx               400 ffmpeg_dxva2.c     if (!ctx->tmp_frame)
ctx               419 ffmpeg_dxva2.c     DXVA2Context *ctx = ist->hwaccel_ctx;
ctx               426 ffmpeg_dxva2.c     hr = IDirectXVideoDecoderService_GetDecoderConfigurations(ctx->decoder_service, device_guid, desc, NULL, &cfg_count, &cfg_list);
ctx               464 ffmpeg_dxva2.c     DXVA2Context *ctx = ist->hwaccel_ctx;
ctx               476 ffmpeg_dxva2.c     hr = IDirectXVideoDecoderService_GetDecoderDeviceGuids(ctx->decoder_service, &guid_count, &guid_list);
ctx               496 ffmpeg_dxva2.c         hr = IDirectXVideoDecoderService_GetDecoderRenderTargets(ctx->decoder_service, mode->guid, &target_count, &target_list);
ctx               541 ffmpeg_dxva2.c     ctx->num_surfaces = 4;
ctx               545 ffmpeg_dxva2.c         ctx->num_surfaces += 16;
ctx               547 ffmpeg_dxva2.c         ctx->num_surfaces += 2;
ctx               551 ffmpeg_dxva2.c         ctx->num_surfaces += s->thread_count;
ctx               553 ffmpeg_dxva2.c     ctx->surfaces      = av_mallocz(ctx->num_surfaces * sizeof(*ctx->surfaces));
ctx               554 ffmpeg_dxva2.c     ctx->surface_infos = av_mallocz(ctx->num_surfaces * sizeof(*ctx->surface_infos));
ctx               556 ffmpeg_dxva2.c     if (!ctx->surfaces || !ctx->surface_infos) {
ctx               561 ffmpeg_dxva2.c     hr = IDirectXVideoDecoderService_CreateSurface(ctx->decoder_service,
ctx               564 ffmpeg_dxva2.c                                                    ctx->num_surfaces - 1,
ctx               567 ffmpeg_dxva2.c                                                    ctx->surfaces, NULL);
ctx               569 ffmpeg_dxva2.c         av_log(NULL, loglevel, "Failed to create %d video surfaces\n", ctx->num_surfaces);
ctx               573 ffmpeg_dxva2.c     hr = IDirectXVideoDecoderService_CreateVideoDecoder(ctx->decoder_service, &device_guid,
ctx               574 ffmpeg_dxva2.c                                                         &desc, &config, ctx->surfaces,
ctx               575 ffmpeg_dxva2.c                                                         ctx->num_surfaces, &ctx->decoder);
ctx               581 ffmpeg_dxva2.c     ctx->decoder_guid   = device_guid;
ctx               582 ffmpeg_dxva2.c     ctx->decoder_config = config;
ctx               584 ffmpeg_dxva2.c     dxva_ctx->cfg           = &ctx->decoder_config;
ctx               585 ffmpeg_dxva2.c     dxva_ctx->decoder       = ctx->decoder;
ctx               586 ffmpeg_dxva2.c     dxva_ctx->surface       = ctx->surfaces;
ctx               587 ffmpeg_dxva2.c     dxva_ctx->surface_count = ctx->num_surfaces;
ctx               589 ffmpeg_dxva2.c     if (IsEqualGUID(&ctx->decoder_guid, &DXVADDI_Intel_ModeH264_E))
ctx               602 ffmpeg_dxva2.c     DXVA2Context *ctx;
ctx               610 ffmpeg_dxva2.c     ctx = ist->hwaccel_ctx;
ctx               618 ffmpeg_dxva2.c     if (ctx->decoder)
ctx               242 ffmpeg_filter.c         s = input_files[file_idx]->ctx;
ctx               296 ffmpeg_filter.c     AVFilterContext *ctx;
ctx               312 ffmpeg_filter.c     ctx = avfilter_graph_alloc_filter(graph, trim, filter_name);
ctx               313 ffmpeg_filter.c     if (!ctx)
ctx               317 ffmpeg_filter.c         ret = av_opt_set_int(ctx, "durationi", duration,
ctx               321 ffmpeg_filter.c         ret = av_opt_set_int(ctx, "starti", start_time,
ctx               325 ffmpeg_filter.c         av_log(ctx, AV_LOG_ERROR, "Error configuring the %s filter", name);
ctx               329 ffmpeg_filter.c     ret = avfilter_init_str(ctx, NULL);
ctx               333 ffmpeg_filter.c     ret = avfilter_link(*last_filter, *pad_idx, ctx, 0);
ctx               337 ffmpeg_filter.c     *last_filter = ctx;
ctx               537 ffmpeg_filter.c         for (i=0; i<of->ctx->nb_streams; i++)
ctx               538 ffmpeg_filter.c             if (of->ctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO)
ctx               541 ffmpeg_filter.c         if (i<of->ctx->nb_streams) {
ctx               562 ffmpeg_filter.c     AVFilterContext *ctx = inout->filter_ctx;                      \
ctx               563 ffmpeg_filter.c     AVFilterPad *pads = in ? ctx->input_pads  : ctx->output_pads;  \
ctx               564 ffmpeg_filter.c     int       nb_pads = in ? ctx->nb_inputs   : ctx->nb_outputs;   \
ctx               570 ffmpeg_filter.c     avio_printf(pb, "%s", ctx->filter->name);                      \
ctx               591 ffmpeg_filter.c     AVFormatContext *avf = input_files[ist->file_index]->ctx;
ctx               648 ffmpeg_filter.c         fr = av_guess_frame_rate(input_files[ist->file_index]->ctx, ist->st, NULL);
ctx               717 ffmpeg_filter.c         if (!start_at_zero && f->ctx->start_time != AV_NOPTS_VALUE)
ctx               718 ffmpeg_filter.c             tsoffset += f->ctx->start_time;
ctx               826 ffmpeg_filter.c         if (!start_at_zero && f->ctx->start_time != AV_NOPTS_VALUE)
ctx               827 ffmpeg_filter.c             tsoffset += f->ctx->start_time;
ctx               250 ffmpeg_opt.c               if (check_stream_specifier(input_files[sync_file_idx]->ctx,
ctx               251 ffmpeg_opt.c                                          input_files[sync_file_idx]->ctx->streams[i], sync) == 1) {
ctx               284 ffmpeg_opt.c                       check_stream_specifier(input_files[m->file_index]->ctx,
ctx               285 ffmpeg_opt.c                                              input_files[m->file_index]->ctx->streams[m->stream_index],
ctx               291 ffmpeg_opt.c                   if (check_stream_specifier(input_files[file_idx]->ctx, input_files[file_idx]->ctx->streams[i],
ctx               372 ffmpeg_opt.c       st = input_files[m->file_idx]->ctx->streams[m->stream_idx];
ctx               945 ffmpeg_opt.c       f->ctx        = ic;
ctx              1609 ffmpeg_opt.c       AVFormatContext *is = ifile->ctx;
ctx              1610 ffmpeg_opt.c       AVFormatContext *os = ofile->ctx;
ctx              1810 ffmpeg_opt.c       of->ctx = oc;
ctx              2137 ffmpeg_opt.c                         input_files[in_file_index]->ctx : NULL, o);
ctx              2146 ffmpeg_opt.c                   if (input_files[i]->ctx->nb_chapters) {
ctx              2162 ffmpeg_opt.c           av_dict_copy(&oc->metadata, input_files[0]->ctx->metadata,
ctx              2247 ffmpeg_opt.c                       AVCodecContext *c = input_files[j]->ctx->streams[i]->codec;
ctx                67 ffmpeg_vdpau.c     VDPAUContext *ctx = ist->hwaccel_ctx;
ctx                73 ffmpeg_vdpau.c     if (ctx->decoder_destroy)
ctx                74 ffmpeg_vdpau.c         ctx->decoder_destroy(ctx->decoder);
ctx                76 ffmpeg_vdpau.c     if (ctx->device_destroy)
ctx                77 ffmpeg_vdpau.c         ctx->device_destroy(ctx->device);
ctx                79 ffmpeg_vdpau.c     if (ctx->dpy)
ctx                80 ffmpeg_vdpau.c         XCloseDisplay(ctx->dpy);
ctx                82 ffmpeg_vdpau.c     av_frame_free(&ctx->tmp_frame);
ctx                91 ffmpeg_vdpau.c     VDPAUContext *ctx = opaque;
ctx                93 ffmpeg_vdpau.c     ctx->video_surface_destroy(surface);
ctx               100 ffmpeg_vdpau.c     VDPAUContext        *ctx = ist->hwaccel_ctx;
ctx               116 ffmpeg_vdpau.c                                      vdpau_release_buffer, ctx,
ctx               126 ffmpeg_vdpau.c     err = ctx->video_surface_create(ctx->device, chroma, width, height,
ctx               130 ffmpeg_vdpau.c                ctx->get_error_string(err));
ctx               144 ffmpeg_vdpau.c     VDPAUContext       *ctx = ist->hwaccel_ctx;
ctx               148 ffmpeg_vdpau.c     err = ctx->video_surface_get_parameters(surface, &chroma_type,
ctx               149 ffmpeg_vdpau.c                                             &ctx->tmp_frame->width,
ctx               150 ffmpeg_vdpau.c                                             &ctx->tmp_frame->height);
ctx               153 ffmpeg_vdpau.c                ctx->get_error_string(err));
ctx               156 ffmpeg_vdpau.c     ctx->tmp_frame->format = ctx->pix_fmt;
ctx               158 ffmpeg_vdpau.c     ret = av_frame_get_buffer(ctx->tmp_frame, 32);
ctx               162 ffmpeg_vdpau.c     ctx->tmp_frame->width  = frame->width;
ctx               163 ffmpeg_vdpau.c     ctx->tmp_frame->height = frame->height;
ctx               165 ffmpeg_vdpau.c     err = ctx->video_surface_get_bits(surface, ctx->vdpau_format,
ctx               166 ffmpeg_vdpau.c                                       (void * const *)ctx->tmp_frame->data,
ctx               167 ffmpeg_vdpau.c                                       ctx->tmp_frame->linesize);
ctx               170 ffmpeg_vdpau.c                ctx->get_error_string(err));
ctx               175 ffmpeg_vdpau.c     if (ctx->vdpau_format == VDP_YCBCR_FORMAT_YV12)
ctx               176 ffmpeg_vdpau.c         FFSWAP(uint8_t*, ctx->tmp_frame->data[1], ctx->tmp_frame->data[2]);
ctx               178 ffmpeg_vdpau.c     ret = av_frame_copy_props(ctx->tmp_frame, frame);
ctx               183 ffmpeg_vdpau.c     av_frame_move_ref(frame, ctx->tmp_frame);
ctx               187 ffmpeg_vdpau.c     av_frame_unref(ctx->tmp_frame);
ctx               203 ffmpeg_vdpau.c     VDPAUContext *ctx;
ctx               208 ffmpeg_vdpau.c     ctx = av_mallocz(sizeof(*ctx));
ctx               209 ffmpeg_vdpau.c     if (!ctx)
ctx               212 ffmpeg_vdpau.c     ist->hwaccel_ctx           = ctx;
ctx               217 ffmpeg_vdpau.c     ctx->tmp_frame = av_frame_alloc();
ctx               218 ffmpeg_vdpau.c     if (!ctx->tmp_frame)
ctx               221 ffmpeg_vdpau.c     ctx->dpy = XOpenDisplay(ist->hwaccel_device);
ctx               222 ffmpeg_vdpau.c     if (!ctx->dpy) {
ctx               227 ffmpeg_vdpau.c     display = XDisplayString(ctx->dpy);
ctx               229 ffmpeg_vdpau.c     err = vdp_device_create_x11(ctx->dpy, XDefaultScreen(ctx->dpy), &ctx->device,
ctx               230 ffmpeg_vdpau.c                                 &ctx->get_proc_address);
ctx               240 ffmpeg_vdpau.c     err = ctx->get_proc_address(ctx->device, id, &tmp);                         \
ctx               245 ffmpeg_vdpau.c     ctx->result = tmp;                                                          \
ctx               265 ffmpeg_vdpau.c         err = ctx->video_surface_query(ctx->device, VDP_CHROMA_TYPE_420,
ctx               270 ffmpeg_vdpau.c                    ctx->get_error_string(err));
ctx               281 ffmpeg_vdpau.c     ctx->vdpau_format = vdpau_formats[i][0];
ctx               282 ffmpeg_vdpau.c     ctx->pix_fmt      = vdpau_formats[i][1];
ctx               288 ffmpeg_vdpau.c         vdpau_ctx->render = ctx->decoder_render;
ctx               292 ffmpeg_vdpau.c     if (av_vdpau_bind_context(s, ctx->device, ctx->get_proc_address, 0))
ctx               295 ffmpeg_vdpau.c     ctx->get_information_string(&vendor);
ctx               314 ffmpeg_vdpau.c     VDPAUContext *ctx;
ctx               323 ffmpeg_vdpau.c     ctx       = ist->hwaccel_ctx;
ctx               332 ffmpeg_vdpau.c     if (ctx->decoder)
ctx               333 ffmpeg_vdpau.c         ctx->decoder_destroy(ctx->decoder);
ctx               335 ffmpeg_vdpau.c     err = ctx->decoder_create(ctx->device, profile,
ctx               337 ffmpeg_vdpau.c                               16, &ctx->decoder);
ctx               340 ffmpeg_vdpau.c                ctx->get_error_string(err));
ctx               344 ffmpeg_vdpau.c     vdpau_ctx->decoder = ctx->decoder;
ctx              2844 ffplay.c       static int decode_interrupt_cb(void *ctx)
ctx              2846 ffplay.c           VideoState *is = ctx;
ctx               369 ffprobe.c          WriterContext *ctx = obj;
ctx               370 ffprobe.c          if (!prev && ctx->writer && ctx->writer->priv_class && ctx->priv)
ctx               371 ffprobe.c              return ctx->priv;
ctx               751 ffprobe.c      static const char *name##_get_name(void *ctx)       \
ctx               789 ffserver.c         AVFormatContext *ctx;
ctx               828 ffserver.c             ctx = c->rtp_ctx[i];
ctx               829 ffserver.c             if (ctx) {
ctx               830 ffserver.c                 av_write_trailer(ctx);
ctx               831 ffserver.c                 av_dict_free(&ctx->metadata);
ctx               832 ffserver.c                 av_freep(&ctx->streams[0]);
ctx               833 ffserver.c                 av_freep(&ctx);
ctx               840 ffserver.c         ctx = &c->fmt_ctx;
ctx               844 ffserver.c             if (ctx->oformat && avio_open_dyn_buf(&ctx->pb) >= 0) {
ctx               845 ffserver.c                 av_write_trailer(ctx);
ctx               847 ffserver.c                 avio_close_dyn_buf(ctx->pb, &c->pb_buffer);
ctx               851 ffserver.c         for(i=0; i<ctx->nb_streams; i++)
ctx               852 ffserver.c             av_freep(&ctx->streams[i]);
ctx               853 ffserver.c         av_freep(&ctx->streams);
ctx               854 ffserver.c         av_freep(&ctx->priv_data);
ctx              2119 ffserver.c         AVFormatContext *ctx;
ctx              2124 ffserver.c             ctx = avformat_alloc_context();
ctx              2125 ffserver.c             c->fmt_ctx = *ctx;
ctx              2126 ffserver.c             av_freep(&ctx);
ctx              2263 ffserver.c                             ctx = c->rtp_ctx[c->packet_stream_index];
ctx              2264 ffserver.c                             if(!ctx) {
ctx              2268 ffserver.c                             codec = ctx->streams[0]->codec;
ctx              2272 ffserver.c                             ctx = &c->fmt_ctx;
ctx              2274 ffserver.c                             codec = ctx->streams[pkt.stream_index]->codec;
ctx              2283 ffserver.c                             ret = ffio_open_dyn_packet_buf(&ctx->pb, max_packet_size);
ctx              2285 ffserver.c                             ret = avio_open_dyn_buf(&ctx->pb);
ctx              2291 ffserver.c                         ost = ctx->streams[pkt.stream_index];
ctx              2293 ffserver.c                         ctx->pb->seekable = 0;
ctx              2299 ffserver.c                         if ((ret = av_write_frame(ctx, &pkt)) < 0) {
ctx              2306 ffserver.c                         len = avio_close_dyn_buf(ctx->pb, &c->pb_buffer);
ctx              2326 ffserver.c             ctx = &c->fmt_ctx;
ctx              2328 ffserver.c             if (avio_open_dyn_buf(&ctx->pb) < 0) {
ctx              2333 ffserver.c             av_write_trailer(ctx);
ctx              2334 ffserver.c             len = avio_close_dyn_buf(ctx->pb, &c->pb_buffer);
ctx              3250 ffserver.c         AVFormatContext *ctx;
ctx              3258 ffserver.c         ctx = avformat_alloc_context();
ctx              3259 ffserver.c         if (!ctx)
ctx              3261 ffserver.c         ctx->oformat = av_guess_format("rtp", NULL, NULL);
ctx              3266 ffserver.c         ctx->nb_streams = 1;
ctx              3267 ffserver.c         ctx->streams = av_mallocz_array(ctx->nb_streams, sizeof(AVStream *));
ctx              3268 ffserver.c         if (!ctx->streams)
ctx              3270 ffserver.c         ctx->streams[0] = st;
ctx              3295 ffserver.c                 snprintf(ctx->filename, sizeof(ctx->filename),
ctx              3299 ffserver.c                 snprintf(ctx->filename, sizeof(ctx->filename),
ctx              3303 ffserver.c             if (ffurl_open(&h, ctx->filename, AVIO_FLAG_WRITE, NULL, NULL) < 0)
ctx              3323 ffserver.c         if (ffio_open_dyn_packet_buf(&ctx->pb, max_packet_size) < 0) {
ctx              3327 ffserver.c         if (avformat_write_header(ctx, NULL) < 0) {
ctx              3332 ffserver.c             av_free(ctx);
ctx              3335 ffserver.c         avio_close_dyn_buf(ctx->pb, &dummy_buf);
ctx              3338 ffserver.c         c->rtp_ctx[stream_index] = ctx;
ctx               327 ffserver_config.c static int ffserver_set_codec(AVCodecContext *ctx, const char *codec_name,
ctx               332 ffserver_config.c     if (!codec || codec->type != ctx->codec_type) {
ctx               338 ffserver_config.c     if (ctx->codec_id == AV_CODEC_ID_NONE && !ctx->priv_data) {
ctx               339 ffserver_config.c         if ((ret = avcodec_get_context_defaults3(ctx, codec)) < 0)
ctx               341 ffserver_config.c         ctx->codec = codec;
ctx               343 ffserver_config.c     if (ctx->codec_id != codec->id)
ctx               348 ffserver_config.c                             codec_name, avcodec_get_name(ctx->codec_id));
ctx               522 ffserver_config.c     AVCodecContext *ctx;
ctx               528 ffserver_config.c         ctx = config->dummy_vctx;
ctx               534 ffserver_config.c         ctx = config->dummy_actx;
ctx               556 ffserver_config.c         if ((ret = ffserver_set_codec(ctx, codec_name, config)) < 0)
ctx               558 ffserver_config.c         if (!ctx->codec || !ctx->priv_data)
ctx               564 ffserver_config.c     o = av_opt_find(ctx, option, NULL, type | AV_OPT_FLAG_ENCODING_PARAM,
ctx               569 ffserver_config.c         o = av_opt_find(ctx, option, NULL, 0, 0);
ctx               573 ffserver_config.c         if (!hinted && ctx->codec_id == AV_CODEC_ID_NONE) {
ctx               582 ffserver_config.c     } else if ((ret = av_opt_set(ctx, option, arg, AV_OPT_SEARCH_CHILDREN)) < 0) {
ctx                47 libavcodec/aac_adtstoasc_bsf.c     AACBSFContext *ctx = bsfc->priv_data;
ctx                72 libavcodec/aac_adtstoasc_bsf.c     if (!ctx->first_frame_done) {
ctx               110 libavcodec/aac_adtstoasc_bsf.c         ctx->first_frame_done = 1;
ctx              3350 libavcodec/aacdec.c static int read_payload_length_info(struct LATMContext *ctx, GetBitContext *gb)
ctx              3354 libavcodec/aacdec.c     if (ctx->frame_length_type == 0) {
ctx              3361 libavcodec/aacdec.c     } else if (ctx->frame_length_type == 1) {
ctx              3362 libavcodec/aacdec.c         return ctx->frame_length;
ctx              3363 libavcodec/aacdec.c     } else if (ctx->frame_length_type == 3 ||
ctx              3364 libavcodec/aacdec.c                ctx->frame_length_type == 5 ||
ctx              3365 libavcodec/aacdec.c                ctx->frame_length_type == 7) {
ctx               258 libavcodec/aacpsy.c static av_cold void lame_window_init(AacPsyContext *ctx, AVCodecContext *avctx)
ctx               263 libavcodec/aacpsy.c         AacPsyChannel *pch = &ctx->ch[i];
ctx               297 libavcodec/aacpsy.c static av_cold int psy_3gpp_init(FFPsyContext *ctx) {
ctx               302 libavcodec/aacpsy.c     const int chan_bitrate = ctx->avctx->bit_rate / ctx->avctx->channels;
ctx               303 libavcodec/aacpsy.c     const int bandwidth    = ctx->avctx->cutoff ? ctx->avctx->cutoff : AAC_CUTOFF(ctx->avctx);
ctx               306 libavcodec/aacpsy.c     ctx->model_priv_data = av_mallocz(sizeof(AacPsyContext));
ctx               307 libavcodec/aacpsy.c     pctx = (AacPsyContext*) ctx->model_priv_data;
ctx               310 libavcodec/aacpsy.c     pctx->frame_bits   = chan_bitrate * AAC_BLOCK_SIZE_LONG / ctx->avctx->sample_rate;
ctx               311 libavcodec/aacpsy.c     pctx->pe.min       =  8.0f * AAC_BLOCK_SIZE_LONG * bandwidth / (ctx->avctx->sample_rate * 2.0f);
ctx               312 libavcodec/aacpsy.c     pctx->pe.max       = 12.0f * AAC_BLOCK_SIZE_LONG * bandwidth / (ctx->avctx->sample_rate * 2.0f);
ctx               313 libavcodec/aacpsy.c     ctx->bitres.size   = 6144 - pctx->frame_bits;
ctx               314 libavcodec/aacpsy.c     ctx->bitres.size  -= ctx->bitres.size % 8;
ctx               315 libavcodec/aacpsy.c     pctx->fill_level   = ctx->bitres.size;
ctx               319 libavcodec/aacpsy.c         const uint8_t *band_sizes = ctx->bands[j];
ctx               320 libavcodec/aacpsy.c         float line_to_frequency = ctx->avctx->sample_rate / (j ? 256.f : 2048.0f);
ctx               321 libavcodec/aacpsy.c         float avg_chan_bits = chan_bitrate * (j ? 128.0f : 1024.0f) / ctx->avctx->sample_rate;
ctx               330 libavcodec/aacpsy.c         for (g = 0; g < ctx->num_bands[j]; g++) {
ctx               336 libavcodec/aacpsy.c         for (g = 0; g < ctx->num_bands[j] - 1; g++) {
ctx               348 libavcodec/aacpsy.c         for (g = 0; g < ctx->num_bands[j]; g++) {
ctx               357 libavcodec/aacpsy.c     pctx->ch = av_mallocz_array(ctx->avctx->channels, sizeof(AacPsyChannel));
ctx               359 libavcodec/aacpsy.c     lame_window_init(pctx, ctx->avctx);
ctx               388 libavcodec/aacpsy.c static av_unused FFPsyWindowInfo psy_3gpp_window(FFPsyContext *ctx,
ctx               394 libavcodec/aacpsy.c     int br               = ctx->avctx->bit_rate / ctx->avctx->channels;
ctx               396 libavcodec/aacpsy.c     AacPsyContext *pctx = (AacPsyContext*) ctx->model_priv_data;
ctx               474 libavcodec/aacpsy.c static int calc_bit_demand(AacPsyContext *ctx, float pe, int bits, int size,
ctx               485 libavcodec/aacpsy.c     ctx->fill_level += ctx->frame_bits - bits;
ctx               486 libavcodec/aacpsy.c     ctx->fill_level  = av_clip(ctx->fill_level, 0, size);
ctx               487 libavcodec/aacpsy.c     fill_level = av_clipf((float)ctx->fill_level / size, clip_low, clip_high);
ctx               488 libavcodec/aacpsy.c     clipped_pe = av_clipf(pe, ctx->pe.min, ctx->pe.max);
ctx               499 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               501 libavcodec/aacpsy.c     ctx->pe.max = FFMAX(pe, ctx->pe.max);
ctx               502 libavcodec/aacpsy.c     ctx->pe.min = FFMIN(pe, ctx->pe.min);
ctx               504 libavcodec/aacpsy.c     return FFMIN(ctx->frame_bits * bit_factor, ctx->frame_bits + size - bits);
ctx               618 libavcodec/aacpsy.c static void psy_3gpp_analyze_channel(FFPsyContext *ctx, int channel,
ctx               621 libavcodec/aacpsy.c     AacPsyContext *pctx = (AacPsyContext*) ctx->model_priv_data;
ctx               627 libavcodec/aacpsy.c     const int      num_bands   = ctx->num_bands[wi->num_windows == 8];
ctx               628 libavcodec/aacpsy.c     const uint8_t *band_sizes  = ctx->bands[wi->num_windows == 8];
ctx               673 libavcodec/aacpsy.c     ctx->ch[channel].entropy = pe;
ctx               674 libavcodec/aacpsy.c     desired_bits = calc_bit_demand(pctx, pe, ctx->bitres.bits, ctx->bitres.size, wi->num_windows == 8);
ctx               680 libavcodec/aacpsy.c     if (ctx->bitres.bits > 0)
ctx               681 libavcodec/aacpsy.c         desired_pe *= av_clipf(pctx->pe.previous / PSY_3GPP_BITS_TO_PE(ctx->bitres.bits),
ctx               777 libavcodec/aacpsy.c             FFPsyBand  *psy_band = &ctx->ch[channel].psy_bands[w+g];
ctx               787 libavcodec/aacpsy.c static void psy_3gpp_analyze(FFPsyContext *ctx, int channel,
ctx               791 libavcodec/aacpsy.c     FFPsyChannelGroup *group = ff_psy_find_group(ctx, channel);
ctx               794 libavcodec/aacpsy.c         psy_3gpp_analyze_channel(ctx, channel + ch, coeffs[ch], &wi[ch]);
ctx               804 libavcodec/aacpsy.c static void lame_apply_block_type(AacPsyChannel *ctx, FFPsyWindowInfo *wi, int uselongblock)
ctx               808 libavcodec/aacpsy.c         if (ctx->next_window_seq == EIGHT_SHORT_SEQUENCE)
ctx               812 libavcodec/aacpsy.c         if (ctx->next_window_seq == ONLY_LONG_SEQUENCE)
ctx               813 libavcodec/aacpsy.c             ctx->next_window_seq = LONG_START_SEQUENCE;
ctx               814 libavcodec/aacpsy.c         if (ctx->next_window_seq == LONG_STOP_SEQUENCE)
ctx               815 libavcodec/aacpsy.c             ctx->next_window_seq = EIGHT_SHORT_SEQUENCE;
ctx               818 libavcodec/aacpsy.c     wi->window_type[0] = ctx->next_window_seq;
ctx               819 libavcodec/aacpsy.c     ctx->next_window_seq = blocktype;
ctx               822 libavcodec/aacpsy.c static FFPsyWindowInfo psy_lame_window(FFPsyContext *ctx, const float *audio,
ctx               825 libavcodec/aacpsy.c     AacPsyContext *pctx = (AacPsyContext*) ctx->model_priv_data;
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               158 libavcodec/aic.c static int aic_decode_header(AICContext *ctx, const uint8_t *src, int size)
ctx               164 libavcodec/aic.c         av_log(ctx->avctx, AV_LOG_ERROR, "Invalid version %d\n", src[0]);
ctx               168 libavcodec/aic.c         av_log(ctx->avctx, AV_LOG_ERROR, "Invalid header size %d\n", src[1]);
ctx               175 libavcodec/aic.c         av_log(ctx->avctx, AV_LOG_ERROR, "Frame size should be %"PRIu32" got %d\n",
ctx               179 libavcodec/aic.c     if (width != ctx->avctx->width || height != ctx->avctx->height) {
ctx               180 libavcodec/aic.c         av_log(ctx->avctx, AV_LOG_ERROR,
ctx               182 libavcodec/aic.c                ctx->avctx->width, ctx->avctx->height, width, height);
ctx               185 libavcodec/aic.c     ctx->quant      = src[15];
ctx               186 libavcodec/aic.c     ctx->interlaced = ((src[16] >> 4) == 3);
ctx               304 libavcodec/aic.c static int aic_decode_slice(AICContext *ctx, int mb_x, int mb_y,
ctx               309 libavcodec/aic.c     int slice_width = FFMIN(ctx->slice_width, ctx->mb_width - mb_x);
ctx               312 libavcodec/aic.c     int16_t *base_y = ctx->data_ptr[COEFF_LUMA];
ctx               313 libavcodec/aic.c     int16_t *base_c = ctx->data_ptr[COEFF_CHROMA];
ctx               314 libavcodec/aic.c     int16_t *ext_y  = ctx->data_ptr[COEFF_LUMA_EXT];
ctx               315 libavcodec/aic.c     int16_t *ext_c  = ctx->data_ptr[COEFF_CHROMA_EXT];
ctx               316 libavcodec/aic.c     const int ystride = ctx->frame->linesize[0];
ctx               318 libavcodec/aic.c     Y = ctx->frame->data[0] + mb_x * 16 + mb_y * 16 * ystride;
ctx               320 libavcodec/aic.c         C[i] = ctx->frame->data[i + 1] + mb_x * 8
ctx               321 libavcodec/aic.c                + mb_y * 8 * ctx->frame->linesize[i + 1];
ctx               324 libavcodec/aic.c     memset(ctx->slice_data, 0,
ctx               325 libavcodec/aic.c            sizeof(*ctx->slice_data) * slice_width * AIC_BAND_COEFFS);
ctx               327 libavcodec/aic.c         if ((ret = aic_decode_coeffs(&gb, ctx->data_ptr[i],
ctx               329 libavcodec/aic.c                                      !ctx->interlaced)) < 0)
ctx               334 libavcodec/aic.c             if (!ctx->interlaced)
ctx               335 libavcodec/aic.c                 recombine_block(ctx->block, ctx->scantable.permutated,
ctx               338 libavcodec/aic.c                 recombine_block_il(ctx->block, ctx->scantable.permutated,
ctx               340 libavcodec/aic.c             unquant_block(ctx->block, ctx->quant, ctx->quant_matrix);
ctx               341 libavcodec/aic.c             ctx->idsp.idct(ctx->block);
ctx               343 libavcodec/aic.c             if (!ctx->interlaced) {
ctx               345 libavcodec/aic.c                 ctx->idsp.put_signed_pixels_clamped(ctx->block, dst, ystride);
ctx               348 libavcodec/aic.c                 ctx->idsp.put_signed_pixels_clamped(ctx->block, dst,
ctx               355 libavcodec/aic.c             recombine_block(ctx->block, ctx->scantable.permutated,
ctx               357 libavcodec/aic.c             unquant_block(ctx->block, ctx->quant, ctx->quant_matrix);
ctx               358 libavcodec/aic.c             ctx->idsp.idct(ctx->block);
ctx               359 libavcodec/aic.c             ctx->idsp.put_signed_pixels_clamped(ctx->block, C[blk],
ctx               360 libavcodec/aic.c                                                 ctx->frame->linesize[blk + 1]);
ctx               371 libavcodec/aic.c     AICContext *ctx    = avctx->priv_data;
ctx               379 libavcodec/aic.c     ctx->frame            = data;
ctx               380 libavcodec/aic.c     ctx->frame->pict_type = AV_PICTURE_TYPE_I;
ctx               381 libavcodec/aic.c     ctx->frame->key_frame = 1;
ctx               383 libavcodec/aic.c     off = FFALIGN(AIC_HDR_SIZE + ctx->num_x_slices * ctx->mb_height * 2, 4);
ctx               390 libavcodec/aic.c     if ((ret = aic_decode_header(ctx, buf, buf_size)) < 0)
ctx               393 libavcodec/aic.c     if ((ret = ff_get_buffer(avctx, ctx->frame, 0)) < 0)
ctx               397 libavcodec/aic.c                      ctx->num_x_slices * ctx->mb_height * 2);
ctx               399 libavcodec/aic.c     for (y = 0; y < ctx->mb_height; y++) {
ctx               400 libavcodec/aic.c         for (x = 0; x < ctx->mb_width; x += ctx->slice_width) {
ctx               407 libavcodec/aic.c             if ((ret = aic_decode_slice(ctx, x, y,
ctx               422 libavcodec/aic.c     AICContext *ctx = avctx->priv_data;
ctx               426 libavcodec/aic.c     ctx->avctx = avctx;
ctx               430 libavcodec/aic.c     ff_idctdsp_init(&ctx->idsp, avctx);
ctx               434 libavcodec/aic.c     ff_init_scantable(ctx->idsp.idct_permutation, &ctx->scantable, scan);
ctx               436 libavcodec/aic.c         ctx->quant_matrix[ctx->idsp.idct_permutation[i]] = aic_quant_matrix[i];
ctx               438 libavcodec/aic.c     ctx->mb_width  = FFALIGN(avctx->width,  16) >> 4;
ctx               439 libavcodec/aic.c     ctx->mb_height = FFALIGN(avctx->height, 16) >> 4;
ctx               441 libavcodec/aic.c     ctx->num_x_slices = (ctx->mb_width + 15) >> 4;
ctx               442 libavcodec/aic.c     ctx->slice_width  = 16;
ctx               444 libavcodec/aic.c         if (!(ctx->mb_width % i) && (ctx->mb_width / i < 32)) {
ctx               445 libavcodec/aic.c             ctx->slice_width  = ctx->mb_width / i;
ctx               446 libavcodec/aic.c             ctx->num_x_slices = i;
ctx               451 libavcodec/aic.c     ctx->slice_data = av_malloc_array(ctx->slice_width, AIC_BAND_COEFFS
ctx               452 libavcodec/aic.c                                 * sizeof(*ctx->slice_data));
ctx               453 libavcodec/aic.c     if (!ctx->slice_data) {
ctx               460 libavcodec/aic.c         ctx->data_ptr[i] = ctx->slice_data + ctx->slice_width
ctx               468 libavcodec/aic.c     AICContext *ctx = avctx->priv_data;
ctx               470 libavcodec/aic.c     av_freep(&ctx->slice_data);
ctx               250 libavcodec/alsdec.c static av_cold void dprint_specific_config(ALSDecContext *ctx)
ctx               253 libavcodec/alsdec.c     AVCodecContext *avctx    = ctx->avctx;
ctx               254 libavcodec/alsdec.c     ALSSpecificConfig *sconf = &ctx->sconf;
ctx               280 libavcodec/alsdec.c static av_cold int read_specific_config(ALSDecContext *ctx)
ctx               286 libavcodec/alsdec.c     ALSSpecificConfig *sconf = &ctx->sconf;
ctx               287 libavcodec/alsdec.c     AVCodecContext *avctx    = ctx->avctx;
ctx               340 libavcodec/alsdec.c     ctx->cur_frame_length = sconf->frame_length;
ctx               358 libavcodec/alsdec.c         ctx->cs_switch = 1;
ctx               366 libavcodec/alsdec.c                 ctx->cs_switch = 0;
ctx               407 libavcodec/alsdec.c             ctx->crc_table = av_crc_get_table(AV_CRC_32_IEEE_LE);
ctx               408 libavcodec/alsdec.c             ctx->crc       = 0xFFFFFFFF;
ctx               409 libavcodec/alsdec.c             ctx->crc_org   = ~get_bits_long(&gb, 32);
ctx               417 libavcodec/alsdec.c     dprint_specific_config(ctx);
ctx               425 libavcodec/alsdec.c static int check_specific_config(ALSDecContext *ctx)
ctx               427 libavcodec/alsdec.c     ALSSpecificConfig *sconf = &ctx->sconf;
ctx               434 libavcodec/alsdec.c             avpriv_report_missing_feature(ctx->avctx,   \
ctx               511 libavcodec/alsdec.c static void get_block_sizes(ALSDecContext *ctx, unsigned int *div_blocks,
ctx               514 libavcodec/alsdec.c     ALSSpecificConfig *sconf     = &ctx->sconf;
ctx               515 libavcodec/alsdec.c     GetBitContext *gb            = &ctx->gb;
ctx               525 libavcodec/alsdec.c     ctx->num_blocks = 0;
ctx               526 libavcodec/alsdec.c     parse_bs_info(*bs_info, 0, 0, &ptr_div_blocks, &ctx->num_blocks);
ctx               543 libavcodec/alsdec.c     for (b = 0; b < ctx->num_blocks; b++)
ctx               544 libavcodec/alsdec.c         div_blocks[b] = ctx->sconf.frame_length >> div_blocks[b];
ctx               546 libavcodec/alsdec.c     if (ctx->cur_frame_length != ctx->sconf.frame_length) {
ctx               547 libavcodec/alsdec.c         unsigned int remaining = ctx->cur_frame_length;
ctx               549 libavcodec/alsdec.c         for (b = 0; b < ctx->num_blocks; b++) {
ctx               552 libavcodec/alsdec.c                 ctx->num_blocks = b + 1;
ctx               564 libavcodec/alsdec.c static int read_const_block_data(ALSDecContext *ctx, ALSBlockData *bd)
ctx               566 libavcodec/alsdec.c     ALSSpecificConfig *sconf = &ctx->sconf;
ctx               567 libavcodec/alsdec.c     AVCodecContext *avctx    = ctx->avctx;
ctx               568 libavcodec/alsdec.c     GetBitContext *gb        = &ctx->gb;
ctx               594 libavcodec/alsdec.c static void decode_const_block_data(ALSDecContext *ctx, ALSBlockData *bd)
ctx               608 libavcodec/alsdec.c static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd)
ctx               610 libavcodec/alsdec.c     ALSSpecificConfig *sconf = &ctx->sconf;
ctx               611 libavcodec/alsdec.c     AVCodecContext *avctx    = ctx->avctx;
ctx               612 libavcodec/alsdec.c     GetBitContext *gb        = &ctx->gb;
ctx               771 libavcodec/alsdec.c             *bd->ltp_lag      = get_bits(gb, ctx->ltp_lag_length);
ctx               781 libavcodec/alsdec.c             bd->raw_samples[1] = decode_rice(gb, FFMIN(s[0] + 3, ctx->s_max));
ctx               783 libavcodec/alsdec.c             bd->raw_samples[2] = decode_rice(gb, FFMIN(s[0] + 1, ctx->s_max));
ctx               810 libavcodec/alsdec.c                         delta[sb], sx[sb], &high, &low, &value, ctx->bgmc_lut, ctx->bgmc_lut_status);
ctx               866 libavcodec/alsdec.c     if (!sconf->mc_coding || ctx->js_switch)
ctx               875 libavcodec/alsdec.c static int decode_var_block_data(ALSDecContext *ctx, ALSBlockData *bd)
ctx               877 libavcodec/alsdec.c     ALSSpecificConfig *sconf = &ctx->sconf;
ctx               888 libavcodec/alsdec.c     int32_t *lpc_cof_reversed = ctx->lpc_cof_reversed_buffer;
ctx               984 libavcodec/alsdec.c static int read_block(ALSDecContext *ctx, ALSBlockData *bd)
ctx               987 libavcodec/alsdec.c     GetBitContext *gb        = &ctx->gb;
ctx               992 libavcodec/alsdec.c         ret = read_var_block_data(ctx, bd);
ctx               994 libavcodec/alsdec.c         ret = read_const_block_data(ctx, bd);
ctx              1003 libavcodec/alsdec.c static int decode_block(ALSDecContext *ctx, ALSBlockData *bd)
ctx              1010 libavcodec/alsdec.c         decode_const_block_data(ctx, bd);
ctx              1012 libavcodec/alsdec.c         ret = decode_var_block_data(ctx, bd); // always return 0
ctx              1029 libavcodec/alsdec.c static int read_decode_block(ALSDecContext *ctx, ALSBlockData *bd)
ctx              1033 libavcodec/alsdec.c     if ((ret = read_block(ctx, bd)) < 0)
ctx              1036 libavcodec/alsdec.c     return decode_block(ctx, bd);
ctx              1058 libavcodec/alsdec.c static int decode_blocks_ind(ALSDecContext *ctx, unsigned int ra_frame,
ctx              1067 libavcodec/alsdec.c     bd.const_block      = ctx->const_block;
ctx              1068 libavcodec/alsdec.c     bd.shift_lsbs       = ctx->shift_lsbs;
ctx              1069 libavcodec/alsdec.c     bd.opt_order        = ctx->opt_order;
ctx              1070 libavcodec/alsdec.c     bd.store_prev_samples = ctx->store_prev_samples;
ctx              1071 libavcodec/alsdec.c     bd.use_ltp          = ctx->use_ltp;
ctx              1072 libavcodec/alsdec.c     bd.ltp_lag          = ctx->ltp_lag;
ctx              1073 libavcodec/alsdec.c     bd.ltp_gain         = ctx->ltp_gain[0];
ctx              1074 libavcodec/alsdec.c     bd.quant_cof        = ctx->quant_cof[0];
ctx              1075 libavcodec/alsdec.c     bd.lpc_cof          = ctx->lpc_cof[0];
ctx              1076 libavcodec/alsdec.c     bd.prev_raw_samples = ctx->prev_raw_samples;
ctx              1077 libavcodec/alsdec.c     bd.raw_samples      = ctx->raw_samples[c];
ctx              1080 libavcodec/alsdec.c     for (b = 0; b < ctx->num_blocks; b++) {
ctx              1083 libavcodec/alsdec.c         if ((ret = read_decode_block(ctx, &bd)) < 0) {
ctx              1085 libavcodec/alsdec.c             zero_remaining(b, ctx->num_blocks, div_blocks, bd.raw_samples);
ctx              1098 libavcodec/alsdec.c static int decode_blocks(ALSDecContext *ctx, unsigned int ra_frame,
ctx              1102 libavcodec/alsdec.c     ALSSpecificConfig *sconf = &ctx->sconf;
ctx              1109 libavcodec/alsdec.c     bd[0].const_block      = ctx->const_block;
ctx              1110 libavcodec/alsdec.c     bd[0].shift_lsbs       = ctx->shift_lsbs;
ctx              1111 libavcodec/alsdec.c     bd[0].opt_order        = ctx->opt_order;
ctx              1112 libavcodec/alsdec.c     bd[0].store_prev_samples = ctx->store_prev_samples;
ctx              1113 libavcodec/alsdec.c     bd[0].use_ltp          = ctx->use_ltp;
ctx              1114 libavcodec/alsdec.c     bd[0].ltp_lag          = ctx->ltp_lag;
ctx              1115 libavcodec/alsdec.c     bd[0].ltp_gain         = ctx->ltp_gain[0];
ctx              1116 libavcodec/alsdec.c     bd[0].quant_cof        = ctx->quant_cof[0];
ctx              1117 libavcodec/alsdec.c     bd[0].lpc_cof          = ctx->lpc_cof[0];
ctx              1118 libavcodec/alsdec.c     bd[0].prev_raw_samples = ctx->prev_raw_samples;
ctx              1122 libavcodec/alsdec.c     bd[1].const_block      = ctx->const_block;
ctx              1123 libavcodec/alsdec.c     bd[1].shift_lsbs       = ctx->shift_lsbs;
ctx              1124 libavcodec/alsdec.c     bd[1].opt_order        = ctx->opt_order;
ctx              1125 libavcodec/alsdec.c     bd[1].store_prev_samples = ctx->store_prev_samples;
ctx              1126 libavcodec/alsdec.c     bd[1].use_ltp          = ctx->use_ltp;
ctx              1127 libavcodec/alsdec.c     bd[1].ltp_lag          = ctx->ltp_lag;
ctx              1128 libavcodec/alsdec.c     bd[1].ltp_gain         = ctx->ltp_gain[0];
ctx              1129 libavcodec/alsdec.c     bd[1].quant_cof        = ctx->quant_cof[0];
ctx              1130 libavcodec/alsdec.c     bd[1].lpc_cof          = ctx->lpc_cof[0];
ctx              1131 libavcodec/alsdec.c     bd[1].prev_raw_samples = ctx->prev_raw_samples;
ctx              1135 libavcodec/alsdec.c     for (b = 0; b < ctx->num_blocks; b++) {
ctx              1141 libavcodec/alsdec.c         bd[0].raw_samples  = ctx->raw_samples[c    ] + offset;
ctx              1142 libavcodec/alsdec.c         bd[1].raw_samples  = ctx->raw_samples[c + 1] + offset;
ctx              1147 libavcodec/alsdec.c         if ((ret = read_decode_block(ctx, &bd[0])) < 0 ||
ctx              1148 libavcodec/alsdec.c             (ret = read_decode_block(ctx, &bd[1])) < 0)
ctx              1154 libavcodec/alsdec.c                 av_log(ctx->avctx, AV_LOG_WARNING, "Invalid channel pair.\n");
ctx              1170 libavcodec/alsdec.c     memmove(ctx->raw_samples[c] - sconf->max_order,
ctx              1171 libavcodec/alsdec.c             ctx->raw_samples[c] - sconf->max_order + sconf->frame_length,
ctx              1172 libavcodec/alsdec.c             sizeof(*ctx->raw_samples[c]) * sconf->max_order);
ctx              1177 libavcodec/alsdec.c     zero_remaining(b, ctx->num_blocks, div_blocks, bd[0].raw_samples);
ctx              1178 libavcodec/alsdec.c     zero_remaining(b, ctx->num_blocks, div_blocks, bd[1].raw_samples);
ctx              1191 libavcodec/alsdec.c static int read_channel_data(ALSDecContext *ctx, ALSChannelData *cd, int c)
ctx              1193 libavcodec/alsdec.c     GetBitContext *gb       = &ctx->gb;
ctx              1195 libavcodec/alsdec.c     unsigned int channels   = ctx->avctx->channels;
ctx              1202 libavcodec/alsdec.c             av_log(ctx->avctx, AV_LOG_ERROR, "Invalid master channel.\n");
ctx              1218 libavcodec/alsdec.c                 current->time_diff_index = get_bits(gb, ctx->ltp_lag_length - 3) + 3;
ctx              1227 libavcodec/alsdec.c         av_log(ctx->avctx, AV_LOG_ERROR, "Damaged channel data.\n");
ctx              1238 libavcodec/alsdec.c static int revert_channel_correlation(ALSDecContext *ctx, ALSBlockData *bd,
ctx              1244 libavcodec/alsdec.c     unsigned int channels = ctx->avctx->channels;
ctx              1252 libavcodec/alsdec.c         revert_channel_correlation(ctx, bd, cd, reverted, offset,
ctx              1259 libavcodec/alsdec.c         av_log(ctx->avctx, AV_LOG_WARNING, "Invalid channel correlation.\n");
ctx              1263 libavcodec/alsdec.c     bd->const_block = ctx->const_block + c;
ctx              1264 libavcodec/alsdec.c     bd->shift_lsbs  = ctx->shift_lsbs + c;
ctx              1265 libavcodec/alsdec.c     bd->opt_order   = ctx->opt_order + c;
ctx              1266 libavcodec/alsdec.c     bd->store_prev_samples = ctx->store_prev_samples + c;
ctx              1267 libavcodec/alsdec.c     bd->use_ltp     = ctx->use_ltp + c;
ctx              1268 libavcodec/alsdec.c     bd->ltp_lag     = ctx->ltp_lag + c;
ctx              1269 libavcodec/alsdec.c     bd->ltp_gain    = ctx->ltp_gain[c];
ctx              1270 libavcodec/alsdec.c     bd->lpc_cof     = ctx->lpc_cof[c];
ctx              1271 libavcodec/alsdec.c     bd->quant_cof   = ctx->quant_cof[c];
ctx              1272 libavcodec/alsdec.c     bd->raw_samples = ctx->raw_samples[c] + offset;
ctx              1279 libavcodec/alsdec.c         int32_t *master = ctx->raw_samples[ch[dep].master_channel] + offset;
ctx              1323 libavcodec/alsdec.c static int read_frame_data(ALSDecContext *ctx, unsigned int ra_frame)
ctx              1325 libavcodec/alsdec.c     ALSSpecificConfig *sconf = &ctx->sconf;
ctx              1326 libavcodec/alsdec.c     AVCodecContext *avctx    = ctx->avctx;
ctx              1327 libavcodec/alsdec.c     GetBitContext *gb = &ctx->gb;
ctx              1339 libavcodec/alsdec.c         ctx->js_switch = get_bits1(gb);
ctx              1343 libavcodec/alsdec.c     if (!sconf->mc_coding || ctx->js_switch) {
ctx              1350 libavcodec/alsdec.c             get_block_sizes(ctx, div_blocks, &bs_info);
ctx              1363 libavcodec/alsdec.c                 ret = decode_blocks_ind(ctx, ra_frame, c,
ctx              1369 libavcodec/alsdec.c                 ret = decode_blocks(ctx, ra_frame, c, div_blocks, js_blocks);
ctx              1377 libavcodec/alsdec.c             memmove(ctx->raw_samples[c] - sconf->max_order,
ctx              1378 libavcodec/alsdec.c                     ctx->raw_samples[c] - sconf->max_order + sconf->frame_length,
ctx              1379 libavcodec/alsdec.c                     sizeof(*ctx->raw_samples[c]) * sconf->max_order);
ctx              1384 libavcodec/alsdec.c         int            *reverted_channels = ctx->reverted_channels;
ctx              1388 libavcodec/alsdec.c             if (ctx->chan_data[c] < ctx->chan_data_buffer) {
ctx              1389 libavcodec/alsdec.c                 av_log(ctx->avctx, AV_LOG_ERROR, "Invalid channel data.\n");
ctx              1396 libavcodec/alsdec.c         bd.prev_raw_samples = ctx->prev_raw_samples;
ctx              1398 libavcodec/alsdec.c         get_block_sizes(ctx, div_blocks, &bs_info);
ctx              1400 libavcodec/alsdec.c         for (b = 0; b < ctx->num_blocks; b++) {
ctx              1403 libavcodec/alsdec.c                 av_log(ctx->avctx, AV_LOG_WARNING,
ctx              1410 libavcodec/alsdec.c                 bd.const_block = ctx->const_block + c;
ctx              1411 libavcodec/alsdec.c                 bd.shift_lsbs  = ctx->shift_lsbs + c;
ctx              1412 libavcodec/alsdec.c                 bd.opt_order   = ctx->opt_order + c;
ctx              1413 libavcodec/alsdec.c                 bd.store_prev_samples = ctx->store_prev_samples + c;
ctx              1414 libavcodec/alsdec.c                 bd.use_ltp     = ctx->use_ltp + c;
ctx              1415 libavcodec/alsdec.c                 bd.ltp_lag     = ctx->ltp_lag + c;
ctx              1416 libavcodec/alsdec.c                 bd.ltp_gain    = ctx->ltp_gain[c];
ctx              1417 libavcodec/alsdec.c                 bd.lpc_cof     = ctx->lpc_cof[c];
ctx              1418 libavcodec/alsdec.c                 bd.quant_cof   = ctx->quant_cof[c];
ctx              1419 libavcodec/alsdec.c                 bd.raw_samples = ctx->raw_samples[c] + offset;
ctx              1422 libavcodec/alsdec.c                 if ((ret = read_block(ctx, &bd)) < 0)
ctx              1424 libavcodec/alsdec.c                 if ((ret = read_channel_data(ctx, ctx->chan_data[c], c)) < 0)
ctx              1429 libavcodec/alsdec.c                 ret = revert_channel_correlation(ctx, &bd, ctx->chan_data,
ctx              1435 libavcodec/alsdec.c                 bd.const_block = ctx->const_block + c;
ctx              1436 libavcodec/alsdec.c                 bd.shift_lsbs  = ctx->shift_lsbs + c;
ctx              1437 libavcodec/alsdec.c                 bd.opt_order   = ctx->opt_order + c;
ctx              1438 libavcodec/alsdec.c                 bd.store_prev_samples = ctx->store_prev_samples + c;
ctx              1439 libavcodec/alsdec.c                 bd.use_ltp     = ctx->use_ltp + c;
ctx              1440 libavcodec/alsdec.c                 bd.ltp_lag     = ctx->ltp_lag + c;
ctx              1441 libavcodec/alsdec.c                 bd.ltp_gain    = ctx->ltp_gain[c];
ctx              1442 libavcodec/alsdec.c                 bd.lpc_cof     = ctx->lpc_cof[c];
ctx              1443 libavcodec/alsdec.c                 bd.quant_cof   = ctx->quant_cof[c];
ctx              1444 libavcodec/alsdec.c                 bd.raw_samples = ctx->raw_samples[c] + offset;
ctx              1446 libavcodec/alsdec.c                 if ((ret = decode_block(ctx, &bd)) < 0)
ctx              1457 libavcodec/alsdec.c             memmove(ctx->raw_samples[c] - sconf->max_order,
ctx              1458 libavcodec/alsdec.c                     ctx->raw_samples[c] - sconf->max_order + sconf->frame_length,
ctx              1459 libavcodec/alsdec.c                     sizeof(*ctx->raw_samples[c]) * sconf->max_order);
ctx              1473 libavcodec/alsdec.c     ALSDecContext *ctx       = avctx->priv_data;
ctx              1475 libavcodec/alsdec.c     ALSSpecificConfig *sconf = &ctx->sconf;
ctx              1481 libavcodec/alsdec.c     if ((ret = init_get_bits8(&ctx->gb, buffer, buffer_size)) < 0)
ctx              1488 libavcodec/alsdec.c     ra_frame = sconf->ra_distance && !(ctx->frame_id % sconf->ra_distance);
ctx              1492 libavcodec/alsdec.c         ctx->cur_frame_length = FFMIN(sconf->samples - ctx->frame_id * (uint64_t) sconf->frame_length,
ctx              1495 libavcodec/alsdec.c         ctx->cur_frame_length = sconf->frame_length;
ctx              1498 libavcodec/alsdec.c     if ((invalid_frame = read_frame_data(ctx, ra_frame)) < 0)
ctx              1499 libavcodec/alsdec.c         av_log(ctx->avctx, AV_LOG_WARNING,
ctx              1502 libavcodec/alsdec.c     ctx->frame_id++;
ctx              1505 libavcodec/alsdec.c     frame->nb_samples = ctx->cur_frame_length;
ctx              1513 libavcodec/alsdec.c         shift = bps - ctx->avctx->bits_per_raw_sample;                               \
ctx              1514 libavcodec/alsdec.c         if (!ctx->cs_switch) {                                                       \
ctx              1515 libavcodec/alsdec.c             for (sample = 0; sample < ctx->cur_frame_length; sample++)               \
ctx              1517 libavcodec/alsdec.c                     *dest++ = ctx->raw_samples[c][sample] << shift;                  \
ctx              1519 libavcodec/alsdec.c             for (sample = 0; sample < ctx->cur_frame_length; sample++)               \
ctx              1521 libavcodec/alsdec.c                     *dest++ = ctx->raw_samples[sconf->chan_pos[c]][sample] << shift; \
ctx              1525 libavcodec/alsdec.c     if (ctx->avctx->bits_per_raw_sample <= 16) {
ctx              1535 libavcodec/alsdec.c         if (ctx->avctx->bits_per_raw_sample == 24) {
ctx              1539 libavcodec/alsdec.c                  sample < ctx->cur_frame_length * avctx->channels;
ctx              1550 libavcodec/alsdec.c                 ctx->crc = av_crc(ctx->crc_table, ctx->crc, (uint8_t*)(&v), 3);
ctx              1556 libavcodec/alsdec.c                 if (ctx->avctx->bits_per_raw_sample <= 16) {
ctx              1558 libavcodec/alsdec.c                     int16_t *dest = (int16_t*) ctx->crc_buffer;
ctx              1560 libavcodec/alsdec.c                          sample < ctx->cur_frame_length * avctx->channels;
ctx              1564 libavcodec/alsdec.c                     ctx->bdsp.bswap_buf((uint32_t *) ctx->crc_buffer,
ctx              1566 libavcodec/alsdec.c                                         ctx->cur_frame_length * avctx->channels);
ctx              1568 libavcodec/alsdec.c                 crc_source = ctx->crc_buffer;
ctx              1573 libavcodec/alsdec.c             ctx->crc = av_crc(ctx->crc_table, ctx->crc, crc_source,
ctx              1574 libavcodec/alsdec.c                               ctx->cur_frame_length * avctx->channels *
ctx              1580 libavcodec/alsdec.c         if (ctx->cur_frame_length != sconf->frame_length &&
ctx              1581 libavcodec/alsdec.c             ctx->crc_org != ctx->crc) {
ctx              1591 libavcodec/alsdec.c                                  (get_bits_count(&ctx->gb) + 7) >> 3;
ctx              1601 libavcodec/alsdec.c     ALSDecContext *ctx = avctx->priv_data;
ctx              1603 libavcodec/alsdec.c     av_freep(&ctx->sconf.chan_pos);
ctx              1605 libavcodec/alsdec.c     ff_bgmc_end(&ctx->bgmc_lut, &ctx->bgmc_lut_status);
ctx              1607 libavcodec/alsdec.c     av_freep(&ctx->const_block);
ctx              1608 libavcodec/alsdec.c     av_freep(&ctx->shift_lsbs);
ctx              1609 libavcodec/alsdec.c     av_freep(&ctx->opt_order);
ctx              1610 libavcodec/alsdec.c     av_freep(&ctx->store_prev_samples);
ctx              1611 libavcodec/alsdec.c     av_freep(&ctx->use_ltp);
ctx              1612 libavcodec/alsdec.c     av_freep(&ctx->ltp_lag);
ctx              1613 libavcodec/alsdec.c     av_freep(&ctx->ltp_gain);
ctx              1614 libavcodec/alsdec.c     av_freep(&ctx->ltp_gain_buffer);
ctx              1615 libavcodec/alsdec.c     av_freep(&ctx->quant_cof);
ctx              1616 libavcodec/alsdec.c     av_freep(&ctx->lpc_cof);
ctx              1617 libavcodec/alsdec.c     av_freep(&ctx->quant_cof_buffer);
ctx              1618 libavcodec/alsdec.c     av_freep(&ctx->lpc_cof_buffer);
ctx              1619 libavcodec/alsdec.c     av_freep(&ctx->lpc_cof_reversed_buffer);
ctx              1620 libavcodec/alsdec.c     av_freep(&ctx->prev_raw_samples);
ctx              1621 libavcodec/alsdec.c     av_freep(&ctx->raw_samples);
ctx              1622 libavcodec/alsdec.c     av_freep(&ctx->raw_buffer);
ctx              1623 libavcodec/alsdec.c     av_freep(&ctx->chan_data);
ctx              1624 libavcodec/alsdec.c     av_freep(&ctx->chan_data_buffer);
ctx              1625 libavcodec/alsdec.c     av_freep(&ctx->reverted_channels);
ctx              1626 libavcodec/alsdec.c     av_freep(&ctx->crc_buffer);
ctx              1639 libavcodec/alsdec.c     ALSDecContext *ctx = avctx->priv_data;
ctx              1640 libavcodec/alsdec.c     ALSSpecificConfig *sconf = &ctx->sconf;
ctx              1641 libavcodec/alsdec.c     ctx->avctx = avctx;
ctx              1648 libavcodec/alsdec.c     if ((ret = read_specific_config(ctx)) < 0) {
ctx              1653 libavcodec/alsdec.c     if ((ret = check_specific_config(ctx)) < 0) {
ctx              1658 libavcodec/alsdec.c         ret = ff_bgmc_init(avctx, &ctx->bgmc_lut, &ctx->bgmc_lut_status);
ctx              1674 libavcodec/alsdec.c     ctx->s_max = sconf->resolution > 1 ? 31 : 15;
ctx              1677 libavcodec/alsdec.c     ctx->ltp_lag_length = 8 + (avctx->sample_rate >=  96000) +
ctx              1683 libavcodec/alsdec.c     ctx->quant_cof        = av_malloc(sizeof(*ctx->quant_cof) * num_buffers);
ctx              1684 libavcodec/alsdec.c     ctx->lpc_cof          = av_malloc(sizeof(*ctx->lpc_cof)   * num_buffers);
ctx              1685 libavcodec/alsdec.c     ctx->quant_cof_buffer = av_malloc(sizeof(*ctx->quant_cof_buffer) *
ctx              1687 libavcodec/alsdec.c     ctx->lpc_cof_buffer   = av_malloc(sizeof(*ctx->lpc_cof_buffer) *
ctx              1689 libavcodec/alsdec.c     ctx->lpc_cof_reversed_buffer = av_malloc(sizeof(*ctx->lpc_cof_buffer) *
ctx              1692 libavcodec/alsdec.c     if (!ctx->quant_cof              || !ctx->lpc_cof        ||
ctx              1693 libavcodec/alsdec.c         !ctx->quant_cof_buffer       || !ctx->lpc_cof_buffer ||
ctx              1694 libavcodec/alsdec.c         !ctx->lpc_cof_reversed_buffer) {
ctx              1702 libavcodec/alsdec.c         ctx->quant_cof[c] = ctx->quant_cof_buffer + c * sconf->max_order;
ctx              1703 libavcodec/alsdec.c         ctx->lpc_cof[c]   = ctx->lpc_cof_buffer   + c * sconf->max_order;
ctx              1707 libavcodec/alsdec.c     ctx->const_block     = av_malloc (sizeof(*ctx->const_block) * num_buffers);
ctx              1708 libavcodec/alsdec.c     ctx->shift_lsbs      = av_malloc (sizeof(*ctx->shift_lsbs)  * num_buffers);
ctx              1709 libavcodec/alsdec.c     ctx->opt_order       = av_malloc (sizeof(*ctx->opt_order)   * num_buffers);
ctx              1710 libavcodec/alsdec.c     ctx->store_prev_samples = av_malloc(sizeof(*ctx->store_prev_samples) * num_buffers);
ctx              1711 libavcodec/alsdec.c     ctx->use_ltp         = av_mallocz(sizeof(*ctx->use_ltp)  * num_buffers);
ctx              1712 libavcodec/alsdec.c     ctx->ltp_lag         = av_malloc (sizeof(*ctx->ltp_lag)  * num_buffers);
ctx              1713 libavcodec/alsdec.c     ctx->ltp_gain        = av_malloc (sizeof(*ctx->ltp_gain) * num_buffers);
ctx              1714 libavcodec/alsdec.c     ctx->ltp_gain_buffer = av_malloc (sizeof(*ctx->ltp_gain_buffer) *
ctx              1717 libavcodec/alsdec.c     if (!ctx->const_block || !ctx->shift_lsbs ||
ctx              1718 libavcodec/alsdec.c         !ctx->opt_order || !ctx->store_prev_samples ||
ctx              1719 libavcodec/alsdec.c         !ctx->use_ltp  || !ctx->ltp_lag ||
ctx              1720 libavcodec/alsdec.c         !ctx->ltp_gain || !ctx->ltp_gain_buffer) {
ctx              1727 libavcodec/alsdec.c         ctx->ltp_gain[c] = ctx->ltp_gain_buffer + c * 5;
ctx              1731 libavcodec/alsdec.c         ctx->chan_data_buffer  = av_malloc(sizeof(*ctx->chan_data_buffer) *
ctx              1733 libavcodec/alsdec.c         ctx->chan_data         = av_malloc(sizeof(*ctx->chan_data) *
ctx              1735 libavcodec/alsdec.c         ctx->reverted_channels = av_malloc(sizeof(*ctx->reverted_channels) *
ctx              1738 libavcodec/alsdec.c         if (!ctx->chan_data_buffer || !ctx->chan_data || !ctx->reverted_channels) {
ctx              1745 libavcodec/alsdec.c             ctx->chan_data[c] = ctx->chan_data_buffer + c * num_buffers;
ctx              1747 libavcodec/alsdec.c         ctx->chan_data         = NULL;
ctx              1748 libavcodec/alsdec.c         ctx->chan_data_buffer  = NULL;
ctx              1749 libavcodec/alsdec.c         ctx->reverted_channels = NULL;
ctx              1754 libavcodec/alsdec.c     ctx->prev_raw_samples = av_malloc (sizeof(*ctx->prev_raw_samples) * sconf->max_order);
ctx              1755 libavcodec/alsdec.c     ctx->raw_buffer       = av_mallocz(sizeof(*ctx->     raw_buffer)  * avctx->channels * channel_size);
ctx              1756 libavcodec/alsdec.c     ctx->raw_samples      = av_malloc (sizeof(*ctx->     raw_samples) * avctx->channels);
ctx              1759 libavcodec/alsdec.c     if (!ctx->prev_raw_samples || !ctx->raw_buffer|| !ctx->raw_samples) {
ctx              1766 libavcodec/alsdec.c     ctx->raw_samples[0] = ctx->raw_buffer + sconf->max_order;
ctx              1768 libavcodec/alsdec.c         ctx->raw_samples[c] = ctx->raw_samples[c - 1] + channel_size;
ctx              1773 libavcodec/alsdec.c         ctx->crc_buffer = av_malloc(sizeof(*ctx->crc_buffer) *
ctx              1774 libavcodec/alsdec.c                                     ctx->cur_frame_length *
ctx              1777 libavcodec/alsdec.c         if (!ctx->crc_buffer) {
ctx              1784 libavcodec/alsdec.c     ff_bswapdsp_init(&ctx->bdsp);
ctx              1798 libavcodec/alsdec.c     ALSDecContext *ctx = avctx->priv_data;
ctx              1800 libavcodec/alsdec.c     ctx->frame_id = 0;
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               321 libavcodec/amrwbdec.c static void decode_pitch_vector(AMRWBContext *ctx,
ctx               327 libavcodec/amrwbdec.c     float *exc     = ctx->excitation;
ctx               328 libavcodec/amrwbdec.c     enum Mode mode = ctx->fr_cur_mode;
ctx               332 libavcodec/amrwbdec.c                               &ctx->base_pitch_lag, subframe, mode);
ctx               335 libavcodec/amrwbdec.c                               &ctx->base_pitch_lag, subframe);
ctx               337 libavcodec/amrwbdec.c     ctx->pitch_lag_int = pitch_lag_int;
ctx               342 libavcodec/amrwbdec.c     ctx->acelpf_ctx.acelp_interpolatef(exc,
ctx               351 libavcodec/amrwbdec.c         memcpy(ctx->pitch_vector, exc, AMRWB_SFR_SIZE * sizeof(float));
ctx               354 libavcodec/amrwbdec.c             ctx->pitch_vector[i] = 0.18 * exc[i - 1] + 0.64 * exc[i] +
ctx               356 libavcodec/amrwbdec.c         memcpy(exc, ctx->pitch_vector, AMRWB_SFR_SIZE * sizeof(float));
ctx               584 libavcodec/amrwbdec.c static void pitch_sharpening(AMRWBContext *ctx, float *fixed_vector)
ctx               590 libavcodec/amrwbdec.c         fixed_vector[i] -= fixed_vector[i - 1] * ctx->tilt_coef;
ctx               593 libavcodec/amrwbdec.c     for (i = ctx->pitch_lag_int; i < AMRWB_SFR_SIZE; i++)
ctx               594 libavcodec/amrwbdec.c         fixed_vector[i] += fixed_vector[i - ctx->pitch_lag_int] * 0.85;
ctx               608 libavcodec/amrwbdec.c                           CELPMContext *ctx)
ctx               610 libavcodec/amrwbdec.c     double p_ener = (double) ctx->dot_productf(p_vector, p_vector,
ctx               613 libavcodec/amrwbdec.c     double f_ener = (double) ctx->dot_productf(f_vector, f_vector,
ctx               630 libavcodec/amrwbdec.c static float *anti_sparseness(AMRWBContext *ctx,
ctx               635 libavcodec/amrwbdec.c     if (ctx->fr_cur_mode > MODE_8k85) // no filtering in higher modes
ctx               638 libavcodec/amrwbdec.c     if (ctx->pitch_gain[0] < 0.6) {
ctx               640 libavcodec/amrwbdec.c     } else if (ctx->pitch_gain[0] < 0.9) {
ctx               646 libavcodec/amrwbdec.c     if (ctx->fixed_gain[0] > 3.0 * ctx->fixed_gain[1]) {
ctx               653 libavcodec/amrwbdec.c             if (ctx->pitch_gain[i] < 0.6)
ctx               659 libavcodec/amrwbdec.c         if (ir_filter_nr > ctx->prev_ir_filter_nr + 1)
ctx               664 libavcodec/amrwbdec.c     ctx->prev_ir_filter_nr = ir_filter_nr;
ctx               666 libavcodec/amrwbdec.c     ir_filter_nr += (ctx->fr_cur_mode == MODE_8k85);
ctx               773 libavcodec/amrwbdec.c static void synthesis(AMRWBContext *ctx, float *lpc, float *excitation,
ctx               777 libavcodec/amrwbdec.c     ctx->acelpv_ctx.weighted_vector_sumf(excitation, ctx->pitch_vector, fixed_vector,
ctx               778 libavcodec/amrwbdec.c                             ctx->pitch_gain[0], fixed_gain, AMRWB_SFR_SIZE);
ctx               781 libavcodec/amrwbdec.c     if (ctx->pitch_gain[0] > 0.5 && ctx->fr_cur_mode <= MODE_8k85) {
ctx               783 libavcodec/amrwbdec.c         float energy = ctx->celpm_ctx.dot_productf(excitation, excitation,
ctx               788 libavcodec/amrwbdec.c         float pitch_factor = 0.25 * ctx->pitch_gain[0] * ctx->pitch_gain[0];
ctx               791 libavcodec/amrwbdec.c             excitation[i] += pitch_factor * ctx->pitch_vector[i];
ctx               797 libavcodec/amrwbdec.c     ctx->celpf_ctx.celp_lp_synthesis_filterf(samples, lpc, excitation,
ctx               831 libavcodec/amrwbdec.c static void upsample_5_4(float *out, const float *in, int o_size, CELPMContext *ctx)
ctx               844 libavcodec/amrwbdec.c             out[i] = ctx->dot_productf(in0 + int_part,
ctx               863 libavcodec/amrwbdec.c static float find_hb_gain(AMRWBContext *ctx, const float *synth,
ctx               869 libavcodec/amrwbdec.c     if (ctx->fr_cur_mode == MODE_23k85)
ctx               872 libavcodec/amrwbdec.c     tilt = ctx->celpm_ctx.dot_productf(synth, synth + 1, AMRWB_SFR_SIZE - 1) /
ctx               873 libavcodec/amrwbdec.c            ctx->celpm_ctx.dot_productf(synth, synth, AMRWB_SFR_SIZE);
ctx               888 libavcodec/amrwbdec.c static void scaled_hb_excitation(AMRWBContext *ctx, float *hb_exc,
ctx               892 libavcodec/amrwbdec.c     float energy = ctx->celpm_ctx.dot_productf(synth_exc, synth_exc,
ctx               897 libavcodec/amrwbdec.c         hb_exc[i] = 32768.0 - (uint16_t) av_lfg_get(&ctx->prng);
ctx              1013 libavcodec/amrwbdec.c static void hb_synthesis(AMRWBContext *ctx, int subframe, float *samples,
ctx              1017 libavcodec/amrwbdec.c     enum Mode mode = ctx->fr_cur_mode;
ctx              1023 libavcodec/amrwbdec.c         ctx->acelpv_ctx.weighted_vector_sumf(e_isf, isf_past, isf, isfp_inter[subframe],
ctx              1034 libavcodec/amrwbdec.c         lpc_weighting(hb_lpc, ctx->lp_coef[subframe], 0.6, LP_ORDER);
ctx              1037 libavcodec/amrwbdec.c     ctx->celpf_ctx.celp_lp_synthesis_filterf(samples, hb_lpc, exc, AMRWB_SFR_SIZE_16k,
ctx              1076 libavcodec/amrwbdec.c static void update_sub_state(AMRWBContext *ctx)
ctx              1078 libavcodec/amrwbdec.c     memmove(&ctx->excitation_buf[0], &ctx->excitation_buf[AMRWB_SFR_SIZE],
ctx              1081 libavcodec/amrwbdec.c     memmove(&ctx->pitch_gain[1], &ctx->pitch_gain[0], 5 * sizeof(float));
ctx              1082 libavcodec/amrwbdec.c     memmove(&ctx->fixed_gain[1], &ctx->fixed_gain[0], 1 * sizeof(float));
ctx              1084 libavcodec/amrwbdec.c     memmove(&ctx->samples_az[0], &ctx->samples_az[AMRWB_SFR_SIZE],
ctx              1086 libavcodec/amrwbdec.c     memmove(&ctx->samples_up[0], &ctx->samples_up[AMRWB_SFR_SIZE],
ctx              1088 libavcodec/amrwbdec.c     memmove(&ctx->samples_hb[0], &ctx->samples_hb[AMRWB_SFR_SIZE_16k],
ctx              1095 libavcodec/amrwbdec.c     AMRWBContext *ctx  = avctx->priv_data;
ctx              1097 libavcodec/amrwbdec.c     AMRWBFrame   *cf   = &ctx->frame;
ctx              1119 libavcodec/amrwbdec.c     header_size      = decode_mime_header(ctx, buf);
ctx              1120 libavcodec/amrwbdec.c     if (ctx->fr_cur_mode > MODE_SID) {
ctx              1122 libavcodec/amrwbdec.c                "Invalid mode %d\n", ctx->fr_cur_mode);
ctx              1125 libavcodec/amrwbdec.c     expected_fr_size = ((cf_sizes_wb[ctx->fr_cur_mode] + 7) >> 3) + 1;
ctx              1134 libavcodec/amrwbdec.c     if (!ctx->fr_quality || ctx->fr_cur_mode > MODE_SID)
ctx              1137 libavcodec/amrwbdec.c     if (ctx->fr_cur_mode == MODE_SID) { /* Comfort noise frame */
ctx              1142 libavcodec/amrwbdec.c     ff_amr_bit_reorder((uint16_t *) &ctx->frame, sizeof(AMRWBFrame),
ctx              1143 libavcodec/amrwbdec.c         buf + header_size, amr_bit_orderings_by_mode[ctx->fr_cur_mode]);
ctx              1146 libavcodec/amrwbdec.c     if (ctx->fr_cur_mode == MODE_6k60) {
ctx              1147 libavcodec/amrwbdec.c         decode_isf_indices_36b(cf->isp_id, ctx->isf_cur);
ctx              1149 libavcodec/amrwbdec.c         decode_isf_indices_46b(cf->isp_id, ctx->isf_cur);
ctx              1152 libavcodec/amrwbdec.c     isf_add_mean_and_past(ctx->isf_cur, ctx->isf_q_past);
ctx              1153 libavcodec/amrwbdec.c     ff_set_min_dist_lsf(ctx->isf_cur, MIN_ISF_SPACING, LP_ORDER - 1);
ctx              1155 libavcodec/amrwbdec.c     stab_fac = stability_factor(ctx->isf_cur, ctx->isf_past_final);
ctx              1157 libavcodec/amrwbdec.c     ctx->isf_cur[LP_ORDER - 1] *= 2.0;
ctx              1158 libavcodec/amrwbdec.c     ff_acelp_lsf2lspd(ctx->isp[3], ctx->isf_cur, LP_ORDER);
ctx              1161 libavcodec/amrwbdec.c     if (ctx->first_frame) {
ctx              1162 libavcodec/amrwbdec.c         ctx->first_frame = 0;
ctx              1163 libavcodec/amrwbdec.c         memcpy(ctx->isp_sub4_past, ctx->isp[3], LP_ORDER * sizeof(double));
ctx              1165 libavcodec/amrwbdec.c     interpolate_isp(ctx->isp, ctx->isp_sub4_past);
ctx              1168 libavcodec/amrwbdec.c         ff_amrwb_lsp2lpc(ctx->isp[sub], ctx->lp_coef[sub], LP_ORDER);
ctx              1175 libavcodec/amrwbdec.c         decode_pitch_vector(ctx, cur_subframe, sub);
ctx              1177 libavcodec/amrwbdec.c         decode_fixed_vector(ctx->fixed_vector, cur_subframe->pul_ih,
ctx              1178 libavcodec/amrwbdec.c                             cur_subframe->pul_il, ctx->fr_cur_mode);
ctx              1180 libavcodec/amrwbdec.c         pitch_sharpening(ctx, ctx->fixed_vector);
ctx              1182 libavcodec/amrwbdec.c         decode_gains(cur_subframe->vq_gain, ctx->fr_cur_mode,
ctx              1183 libavcodec/amrwbdec.c                      &fixed_gain_factor, &ctx->pitch_gain[0]);
ctx              1185 libavcodec/amrwbdec.c         ctx->fixed_gain[0] =
ctx              1187 libavcodec/amrwbdec.c                                   ctx->celpm_ctx.dot_productf(ctx->fixed_vector,
ctx              1188 libavcodec/amrwbdec.c                                                                ctx->fixed_vector,
ctx              1191 libavcodec/amrwbdec.c                        ctx->prediction_error,
ctx              1195 libavcodec/amrwbdec.c         voice_fac      = voice_factor(ctx->pitch_vector, ctx->pitch_gain[0],
ctx              1196 libavcodec/amrwbdec.c                                       ctx->fixed_vector, ctx->fixed_gain[0],
ctx              1197 libavcodec/amrwbdec.c                                       &ctx->celpm_ctx);
ctx              1198 libavcodec/amrwbdec.c         ctx->tilt_coef = voice_fac * 0.25 + 0.25;
ctx              1202 libavcodec/amrwbdec.c             ctx->excitation[i] *= ctx->pitch_gain[0];
ctx              1203 libavcodec/amrwbdec.c             ctx->excitation[i] += ctx->fixed_gain[0] * ctx->fixed_vector[i];
ctx              1204 libavcodec/amrwbdec.c             ctx->excitation[i] = truncf(ctx->excitation[i]);
ctx              1208 libavcodec/amrwbdec.c         synth_fixed_gain = noise_enhancer(ctx->fixed_gain[0], &ctx->prev_tr_gain,
ctx              1211 libavcodec/amrwbdec.c         synth_fixed_vector = anti_sparseness(ctx, ctx->fixed_vector,
ctx              1216 libavcodec/amrwbdec.c         synthesis(ctx, ctx->lp_coef[sub], synth_exc, synth_fixed_gain,
ctx              1217 libavcodec/amrwbdec.c                   synth_fixed_vector, &ctx->samples_az[LP_ORDER]);
ctx              1220 libavcodec/amrwbdec.c         de_emphasis(&ctx->samples_up[UPS_MEM_SIZE],
ctx              1221 libavcodec/amrwbdec.c                     &ctx->samples_az[LP_ORDER], PREEMPH_FAC, ctx->demph_mem);
ctx              1223 libavcodec/amrwbdec.c         ctx->acelpf_ctx.acelp_apply_order_2_transfer_function(&ctx->samples_up[UPS_MEM_SIZE],
ctx              1224 libavcodec/amrwbdec.c             &ctx->samples_up[UPS_MEM_SIZE], hpf_zeros, hpf_31_poles,
ctx              1225 libavcodec/amrwbdec.c             hpf_31_gain, ctx->hpf_31_mem, AMRWB_SFR_SIZE);
ctx              1227 libavcodec/amrwbdec.c         upsample_5_4(sub_buf, &ctx->samples_up[UPS_FIR_SIZE],
ctx              1228 libavcodec/amrwbdec.c                      AMRWB_SFR_SIZE_16k, &ctx->celpm_ctx);
ctx              1231 libavcodec/amrwbdec.c         ctx->acelpf_ctx.acelp_apply_order_2_transfer_function(hb_samples,
ctx              1232 libavcodec/amrwbdec.c             &ctx->samples_up[UPS_MEM_SIZE], hpf_zeros, hpf_400_poles,
ctx              1233 libavcodec/amrwbdec.c             hpf_400_gain, ctx->hpf_400_mem, AMRWB_SFR_SIZE);
ctx              1235 libavcodec/amrwbdec.c         hb_gain = find_hb_gain(ctx, hb_samples,
ctx              1238 libavcodec/amrwbdec.c         scaled_hb_excitation(ctx, hb_exc, synth_exc, hb_gain);
ctx              1240 libavcodec/amrwbdec.c         hb_synthesis(ctx, sub, &ctx->samples_hb[LP_ORDER_16k],
ctx              1241 libavcodec/amrwbdec.c                      hb_exc, ctx->isf_cur, ctx->isf_past_final);
ctx              1244 libavcodec/amrwbdec.c         hb_fir_filter(hb_samples, bpf_6_7_coef, ctx->bpf_6_7_mem,
ctx              1245 libavcodec/amrwbdec.c                       &ctx->samples_hb[LP_ORDER_16k]);
ctx              1247 libavcodec/amrwbdec.c         if (ctx->fr_cur_mode == MODE_23k85)
ctx              1248 libavcodec/amrwbdec.c             hb_fir_filter(hb_samples, lpf_7_coef, ctx->lpf_7_mem,
ctx              1256 libavcodec/amrwbdec.c         update_sub_state(ctx);
ctx              1260 libavcodec/amrwbdec.c     memcpy(ctx->isp_sub4_past, ctx->isp[3], LP_ORDER * sizeof(ctx->isp[3][0]));
ctx              1261 libavcodec/amrwbdec.c     memcpy(ctx->isf_past_final, ctx->isf_cur, LP_ORDER * sizeof(float));
ctx               174 libavcodec/apedec.c     void (*entropy_decode_mono)(struct APEContext *ctx, int blockstodecode);
ctx               175 libavcodec/apedec.c     void (*entropy_decode_stereo)(struct APEContext *ctx, int blockstodecode);
ctx               176 libavcodec/apedec.c     void (*predictor_decode_mono)(struct APEContext *ctx, int count);
ctx               177 libavcodec/apedec.c     void (*predictor_decode_stereo)(struct APEContext *ctx, int count);
ctx               180 libavcodec/apedec.c static void ape_apply_filters(APEContext *ctx, int32_t *decoded0,
ctx               183 libavcodec/apedec.c static void entropy_decode_mono_0000(APEContext *ctx, int blockstodecode);
ctx               184 libavcodec/apedec.c static void entropy_decode_stereo_0000(APEContext *ctx, int blockstodecode);
ctx               185 libavcodec/apedec.c static void entropy_decode_mono_3860(APEContext *ctx, int blockstodecode);
ctx               186 libavcodec/apedec.c static void entropy_decode_stereo_3860(APEContext *ctx, int blockstodecode);
ctx               187 libavcodec/apedec.c static void entropy_decode_mono_3900(APEContext *ctx, int blockstodecode);
ctx               188 libavcodec/apedec.c static void entropy_decode_stereo_3900(APEContext *ctx, int blockstodecode);
ctx               189 libavcodec/apedec.c static void entropy_decode_stereo_3930(APEContext *ctx, int blockstodecode);
ctx               190 libavcodec/apedec.c static void entropy_decode_mono_3990(APEContext *ctx, int blockstodecode);
ctx               191 libavcodec/apedec.c static void entropy_decode_stereo_3990(APEContext *ctx, int blockstodecode);
ctx               193 libavcodec/apedec.c static void predictor_decode_mono_3800(APEContext *ctx, int count);
ctx               194 libavcodec/apedec.c static void predictor_decode_stereo_3800(APEContext *ctx, int count);
ctx               195 libavcodec/apedec.c static void predictor_decode_mono_3930(APEContext *ctx, int count);
ctx               196 libavcodec/apedec.c static void predictor_decode_stereo_3930(APEContext *ctx, int count);
ctx               197 libavcodec/apedec.c static void predictor_decode_mono_3950(APEContext *ctx, int count);
ctx               198 libavcodec/apedec.c static void predictor_decode_stereo_3950(APEContext *ctx, int count);
ctx               318 libavcodec/apedec.c static inline void range_start_decoding(APEContext *ctx)
ctx               320 libavcodec/apedec.c     ctx->rc.buffer = bytestream_get_byte(&ctx->ptr);
ctx               321 libavcodec/apedec.c     ctx->rc.low    = ctx->rc.buffer >> (8 - EXTRA_BITS);
ctx               322 libavcodec/apedec.c     ctx->rc.range  = (uint32_t) 1 << EXTRA_BITS;
ctx               326 libavcodec/apedec.c static inline void range_dec_normalize(APEContext *ctx)
ctx               328 libavcodec/apedec.c     while (ctx->rc.range <= BOTTOM_VALUE) {
ctx               329 libavcodec/apedec.c         ctx->rc.buffer <<= 8;
ctx               330 libavcodec/apedec.c         if(ctx->ptr < ctx->data_end) {
ctx               331 libavcodec/apedec.c             ctx->rc.buffer += *ctx->ptr;
ctx               332 libavcodec/apedec.c             ctx->ptr++;
ctx               334 libavcodec/apedec.c             ctx->error = 1;
ctx               336 libavcodec/apedec.c         ctx->rc.low    = (ctx->rc.low << 8)    | ((ctx->rc.buffer >> 1) & 0xFF);
ctx               337 libavcodec/apedec.c         ctx->rc.range  <<= 8;
ctx               347 libavcodec/apedec.c static inline int range_decode_culfreq(APEContext *ctx, int tot_f)
ctx               349 libavcodec/apedec.c     range_dec_normalize(ctx);
ctx               350 libavcodec/apedec.c     ctx->rc.help = ctx->rc.range / tot_f;
ctx               351 libavcodec/apedec.c     return ctx->rc.low / ctx->rc.help;
ctx               359 libavcodec/apedec.c static inline int range_decode_culshift(APEContext *ctx, int shift)
ctx               361 libavcodec/apedec.c     range_dec_normalize(ctx);
ctx               362 libavcodec/apedec.c     ctx->rc.help = ctx->rc.range >> shift;
ctx               363 libavcodec/apedec.c     return ctx->rc.low / ctx->rc.help;
ctx               373 libavcodec/apedec.c static inline void range_decode_update(APEContext *ctx, int sy_f, int lt_f)
ctx               375 libavcodec/apedec.c     ctx->rc.low  -= ctx->rc.help * lt_f;
ctx               376 libavcodec/apedec.c     ctx->rc.range = ctx->rc.help * sy_f;
ctx               380 libavcodec/apedec.c static inline int range_decode_bits(APEContext *ctx, int n)
ctx               382 libavcodec/apedec.c     int sym = range_decode_culshift(ctx, n);
ctx               383 libavcodec/apedec.c     range_decode_update(ctx, 1, sym);
ctx               432 libavcodec/apedec.c static inline int range_get_symbol(APEContext *ctx,
ctx               438 libavcodec/apedec.c     cf = range_decode_culshift(ctx, 16);
ctx               442 libavcodec/apedec.c         range_decode_update(ctx, 1, cf);
ctx               444 libavcodec/apedec.c             ctx->error=1;
ctx               450 libavcodec/apedec.c     range_decode_update(ctx, counts_diff[symbol], counts[symbol]);
ctx               479 libavcodec/apedec.c static inline int ape_decode_value_3860(APEContext *ctx, GetBitContext *gb,
ctx               486 libavcodec/apedec.c     if (ctx->fileversion > 3880) {
ctx               498 libavcodec/apedec.c         av_log(ctx->avctx, AV_LOG_ERROR, "Too many bits: %d\n", rice->k);
ctx               511 libavcodec/apedec.c static inline int ape_decode_value_3900(APEContext *ctx, APERice *rice)
ctx               516 libavcodec/apedec.c     overflow = range_get_symbol(ctx, counts_3970, counts_diff_3970);
ctx               519 libavcodec/apedec.c         tmpk = range_decode_bits(ctx, 5);
ctx               524 libavcodec/apedec.c     if (tmpk <= 16 || ctx->fileversion < 3910) {
ctx               526 libavcodec/apedec.c             av_log(ctx->avctx, AV_LOG_ERROR, "Too many bits: %d\n", tmpk);
ctx               529 libavcodec/apedec.c         x = range_decode_bits(ctx, tmpk);
ctx               531 libavcodec/apedec.c         x = range_decode_bits(ctx, 16);
ctx               532 libavcodec/apedec.c         x |= (range_decode_bits(ctx, tmpk - 16) << 16);
ctx               534 libavcodec/apedec.c         av_log(ctx->avctx, AV_LOG_ERROR, "Too many bits: %d\n", tmpk);
ctx               545 libavcodec/apedec.c static inline int ape_decode_value_3990(APEContext *ctx, APERice *rice)
ctx               554 libavcodec/apedec.c     overflow = range_get_symbol(ctx, counts_3980, counts_diff_3980);
ctx               557 libavcodec/apedec.c         overflow  = range_decode_bits(ctx, 16) << 16;
ctx               558 libavcodec/apedec.c         overflow |= range_decode_bits(ctx, 16);
ctx               562 libavcodec/apedec.c         base = range_decode_culfreq(ctx, pivot);
ctx               563 libavcodec/apedec.c         range_decode_update(ctx, 1, base);
ctx               572 libavcodec/apedec.c         base_hi = range_decode_culfreq(ctx, base_hi + 1);
ctx               573 libavcodec/apedec.c         range_decode_update(ctx, 1, base_hi);
ctx               574 libavcodec/apedec.c         base_lo = range_decode_culfreq(ctx, 1 << bbits);
ctx               575 libavcodec/apedec.c         range_decode_update(ctx, 1, base_lo);
ctx               588 libavcodec/apedec.c static void decode_array_0000(APEContext *ctx, GetBitContext *gb,
ctx               596 libavcodec/apedec.c         out[i] = get_rice_ook(&ctx->gb, 10);
ctx               603 libavcodec/apedec.c         out[i] = get_rice_ook(&ctx->gb, rice->k);
ctx               612 libavcodec/apedec.c         out[i] = get_rice_ook(&ctx->gb, rice->k);
ctx               632 libavcodec/apedec.c static void entropy_decode_mono_0000(APEContext *ctx, int blockstodecode)
ctx               634 libavcodec/apedec.c     decode_array_0000(ctx, &ctx->gb, ctx->decoded[0], &ctx->riceY,
ctx               638 libavcodec/apedec.c static void entropy_decode_stereo_0000(APEContext *ctx, int blockstodecode)
ctx               640 libavcodec/apedec.c     decode_array_0000(ctx, &ctx->gb, ctx->decoded[0], &ctx->riceY,
ctx               642 libavcodec/apedec.c     decode_array_0000(ctx, &ctx->gb, ctx->decoded[1], &ctx->riceX,
ctx               646 libavcodec/apedec.c static void entropy_decode_mono_3860(APEContext *ctx, int blockstodecode)
ctx               648 libavcodec/apedec.c     int32_t *decoded0 = ctx->decoded[0];
ctx               651 libavcodec/apedec.c         *decoded0++ = ape_decode_value_3860(ctx, &ctx->gb, &ctx->riceY);
ctx               654 libavcodec/apedec.c static void entropy_decode_stereo_3860(APEContext *ctx, int blockstodecode)
ctx               656 libavcodec/apedec.c     int32_t *decoded0 = ctx->decoded[0];
ctx               657 libavcodec/apedec.c     int32_t *decoded1 = ctx->decoded[1];
ctx               661 libavcodec/apedec.c         *decoded0++ = ape_decode_value_3860(ctx, &ctx->gb, &ctx->riceY);
ctx               663 libavcodec/apedec.c         *decoded1++ = ape_decode_value_3860(ctx, &ctx->gb, &ctx->riceX);
ctx               666 libavcodec/apedec.c static void entropy_decode_mono_3900(APEContext *ctx, int blockstodecode)
ctx               668 libavcodec/apedec.c     int32_t *decoded0 = ctx->decoded[0];
ctx               671 libavcodec/apedec.c         *decoded0++ = ape_decode_value_3900(ctx, &ctx->riceY);
ctx               674 libavcodec/apedec.c static void entropy_decode_stereo_3900(APEContext *ctx, int blockstodecode)
ctx               676 libavcodec/apedec.c     int32_t *decoded0 = ctx->decoded[0];
ctx               677 libavcodec/apedec.c     int32_t *decoded1 = ctx->decoded[1];
ctx               681 libavcodec/apedec.c         *decoded0++ = ape_decode_value_3900(ctx, &ctx->riceY);
ctx               682 libavcodec/apedec.c     range_dec_normalize(ctx);
ctx               684 libavcodec/apedec.c     ctx->ptr -= 1;
ctx               685 libavcodec/apedec.c     range_start_decoding(ctx);
ctx               687 libavcodec/apedec.c         *decoded1++ = ape_decode_value_3900(ctx, &ctx->riceX);
ctx               690 libavcodec/apedec.c static void entropy_decode_stereo_3930(APEContext *ctx, int blockstodecode)
ctx               692 libavcodec/apedec.c     int32_t *decoded0 = ctx->decoded[0];
ctx               693 libavcodec/apedec.c     int32_t *decoded1 = ctx->decoded[1];
ctx               696 libavcodec/apedec.c         *decoded0++ = ape_decode_value_3900(ctx, &ctx->riceY);
ctx               697 libavcodec/apedec.c         *decoded1++ = ape_decode_value_3900(ctx, &ctx->riceX);
ctx               701 libavcodec/apedec.c static void entropy_decode_mono_3990(APEContext *ctx, int blockstodecode)
ctx               703 libavcodec/apedec.c     int32_t *decoded0 = ctx->decoded[0];
ctx               706 libavcodec/apedec.c         *decoded0++ = ape_decode_value_3990(ctx, &ctx->riceY);
ctx               709 libavcodec/apedec.c static void entropy_decode_stereo_3990(APEContext *ctx, int blockstodecode)
ctx               711 libavcodec/apedec.c     int32_t *decoded0 = ctx->decoded[0];
ctx               712 libavcodec/apedec.c     int32_t *decoded1 = ctx->decoded[1];
ctx               715 libavcodec/apedec.c         *decoded0++ = ape_decode_value_3990(ctx, &ctx->riceY);
ctx               716 libavcodec/apedec.c         *decoded1++ = ape_decode_value_3990(ctx, &ctx->riceX);
ctx               720 libavcodec/apedec.c static int init_entropy_decoder(APEContext *ctx)
ctx               723 libavcodec/apedec.c     if (ctx->fileversion >= 3900) {
ctx               724 libavcodec/apedec.c         if (ctx->data_end - ctx->ptr < 6)
ctx               726 libavcodec/apedec.c         ctx->CRC = bytestream_get_be32(&ctx->ptr);
ctx               728 libavcodec/apedec.c         ctx->CRC = get_bits_long(&ctx->gb, 32);
ctx               732 libavcodec/apedec.c     ctx->frameflags = 0;
ctx               733 libavcodec/apedec.c     if ((ctx->fileversion > 3820) && (ctx->CRC & 0x80000000)) {
ctx               734 libavcodec/apedec.c         ctx->CRC &= ~0x80000000;
ctx               736 libavcodec/apedec.c         if (ctx->data_end - ctx->ptr < 6)
ctx               738 libavcodec/apedec.c         ctx->frameflags = bytestream_get_be32(&ctx->ptr);
ctx               742 libavcodec/apedec.c     ctx->riceX.k = 10;
ctx               743 libavcodec/apedec.c     ctx->riceX.ksum = (1 << ctx->riceX.k) * 16;
ctx               744 libavcodec/apedec.c     ctx->riceY.k = 10;
ctx               745 libavcodec/apedec.c     ctx->riceY.ksum = (1 << ctx->riceY.k) * 16;
ctx               747 libavcodec/apedec.c     if (ctx->fileversion >= 3900) {
ctx               749 libavcodec/apedec.c         ctx->ptr++;
ctx               751 libavcodec/apedec.c         range_start_decoding(ctx);
ctx               773 libavcodec/apedec.c static void init_predictor_decoder(APEContext *ctx)
ctx               775 libavcodec/apedec.c     APEPredictor *p = &ctx->predictor;
ctx               782 libavcodec/apedec.c     if (ctx->fileversion < 3930) {
ctx               783 libavcodec/apedec.c         if (ctx->compression_level == COMPRESSION_LEVEL_FAST) {
ctx               799 libavcodec/apedec.c     if (ctx->fileversion < 3930) {
ctx               932 libavcodec/apedec.c static void predictor_decode_stereo_3800(APEContext *ctx, int count)
ctx               934 libavcodec/apedec.c     APEPredictor *p = &ctx->predictor;
ctx               935 libavcodec/apedec.c     int32_t *decoded0 = ctx->decoded[0];
ctx               936 libavcodec/apedec.c     int32_t *decoded1 = ctx->decoded[1];
ctx               939 libavcodec/apedec.c     if (ctx->compression_level == COMPRESSION_LEVEL_HIGH) {
ctx               943 libavcodec/apedec.c     } else if (ctx->compression_level == COMPRESSION_LEVEL_EXTRA_HIGH) {
ctx               946 libavcodec/apedec.c         if (ctx->fileversion >= 3830) {
ctx               960 libavcodec/apedec.c         if (ctx->compression_level == COMPRESSION_LEVEL_FAST) {
ctx               987 libavcodec/apedec.c static void predictor_decode_mono_3800(APEContext *ctx, int count)
ctx               989 libavcodec/apedec.c     APEPredictor *p = &ctx->predictor;
ctx               990 libavcodec/apedec.c     int32_t *decoded0 = ctx->decoded[0];
ctx               993 libavcodec/apedec.c     if (ctx->compression_level == COMPRESSION_LEVEL_HIGH) {
ctx               996 libavcodec/apedec.c     } else if (ctx->compression_level == COMPRESSION_LEVEL_EXTRA_HIGH) {
ctx               999 libavcodec/apedec.c         if (ctx->fileversion >= 3830) {
ctx              1010 libavcodec/apedec.c         if (ctx->compression_level == COMPRESSION_LEVEL_FAST) {
ctx              1062 libavcodec/apedec.c static void predictor_decode_stereo_3930(APEContext *ctx, int count)
ctx              1064 libavcodec/apedec.c     APEPredictor *p = &ctx->predictor;
ctx              1065 libavcodec/apedec.c     int32_t *decoded0 = ctx->decoded[0];
ctx              1066 libavcodec/apedec.c     int32_t *decoded1 = ctx->decoded[1];
ctx              1068 libavcodec/apedec.c     ape_apply_filters(ctx, ctx->decoded[0], ctx->decoded[1], count);
ctx              1090 libavcodec/apedec.c static void predictor_decode_mono_3930(APEContext *ctx, int count)
ctx              1092 libavcodec/apedec.c     APEPredictor *p = &ctx->predictor;
ctx              1093 libavcodec/apedec.c     int32_t *decoded0 = ctx->decoded[0];
ctx              1095 libavcodec/apedec.c     ape_apply_filters(ctx, ctx->decoded[0], NULL, count);
ctx              1159 libavcodec/apedec.c static void predictor_decode_stereo_3950(APEContext *ctx, int count)
ctx              1161 libavcodec/apedec.c     APEPredictor *p = &ctx->predictor;
ctx              1162 libavcodec/apedec.c     int32_t *decoded0 = ctx->decoded[0];
ctx              1163 libavcodec/apedec.c     int32_t *decoded1 = ctx->decoded[1];
ctx              1165 libavcodec/apedec.c     ape_apply_filters(ctx, ctx->decoded[0], ctx->decoded[1], count);
ctx              1188 libavcodec/apedec.c static void predictor_decode_mono_3950(APEContext *ctx, int count)
ctx              1190 libavcodec/apedec.c     APEPredictor *p = &ctx->predictor;
ctx              1191 libavcodec/apedec.c     int32_t *decoded0 = ctx->decoded[0];
ctx              1194 libavcodec/apedec.c     ape_apply_filters(ctx, ctx->decoded[0], NULL, count);
ctx              1248 libavcodec/apedec.c static void init_filter(APEContext *ctx, APEFilter *f, int16_t *buf, int order)
ctx              1254 libavcodec/apedec.c static void do_apply_filter(APEContext *ctx, int version, APEFilter *f,
ctx              1262 libavcodec/apedec.c         res = ctx->adsp.scalarproduct_and_madd_int16(f->coeffs,
ctx              1308 libavcodec/apedec.c static void apply_filter(APEContext *ctx, APEFilter *f,
ctx              1312 libavcodec/apedec.c     do_apply_filter(ctx, ctx->fileversion, &f[0], data0, count, order, fracbits);
ctx              1314 libavcodec/apedec.c         do_apply_filter(ctx, ctx->fileversion, &f[1], data1, count, order, fracbits);
ctx              1317 libavcodec/apedec.c static void ape_apply_filters(APEContext *ctx, int32_t *decoded0,
ctx              1323 libavcodec/apedec.c         if (!ape_filter_orders[ctx->fset][i])
ctx              1325 libavcodec/apedec.c         apply_filter(ctx, ctx->filters[i], decoded0, decoded1, count,
ctx              1326 libavcodec/apedec.c                      ape_filter_orders[ctx->fset][i],
ctx              1327 libavcodec/apedec.c                      ape_filter_fracbits[ctx->fset][i]);
ctx              1331 libavcodec/apedec.c static int init_frame_decoder(APEContext *ctx)
ctx              1334 libavcodec/apedec.c     if ((ret = init_entropy_decoder(ctx)) < 0)
ctx              1336 libavcodec/apedec.c     init_predictor_decoder(ctx);
ctx              1339 libavcodec/apedec.c         if (!ape_filter_orders[ctx->fset][i])
ctx              1341 libavcodec/apedec.c         init_filter(ctx, ctx->filters[i], ctx->filterbuf[i],
ctx              1342 libavcodec/apedec.c                     ape_filter_orders[ctx->fset][i]);
ctx              1347 libavcodec/apedec.c static void ape_unpack_mono(APEContext *ctx, int count)
ctx              1349 libavcodec/apedec.c     if (ctx->frameflags & APE_FRAMECODE_STEREO_SILENCE) {
ctx              1351 libavcodec/apedec.c         av_log(ctx->avctx, AV_LOG_DEBUG, "pure silence mono\n");
ctx              1355 libavcodec/apedec.c     ctx->entropy_decode_mono(ctx, count);
ctx              1358 libavcodec/apedec.c     ctx->predictor_decode_mono(ctx, count);
ctx              1361 libavcodec/apedec.c     if (ctx->channels == 2) {
ctx              1362 libavcodec/apedec.c         memcpy(ctx->decoded[1], ctx->decoded[0], count * sizeof(*ctx->decoded[1]));
ctx              1366 libavcodec/apedec.c static void ape_unpack_stereo(APEContext *ctx, int count)
ctx              1369 libavcodec/apedec.c     int32_t *decoded0 = ctx->decoded[0];
ctx              1370 libavcodec/apedec.c     int32_t *decoded1 = ctx->decoded[1];
ctx              1372 libavcodec/apedec.c     if (ctx->frameflags & APE_FRAMECODE_STEREO_SILENCE) {
ctx              1374 libavcodec/apedec.c         av_log(ctx->avctx, AV_LOG_DEBUG, "pure silence stereo\n");
ctx              1378 libavcodec/apedec.c     ctx->entropy_decode_stereo(ctx, count);
ctx              1381 libavcodec/apedec.c     ctx->predictor_decode_stereo(ctx, count);
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               246 libavcodec/ass_split.c static const char *ass_split_section(ASSSplitContext *ctx, const char *buf)
ctx               248 libavcodec/ass_split.c     const ASSSection *section = &ass_sections[ctx->current_section];
ctx               249 libavcodec/ass_split.c     int *number = &ctx->field_number[ctx->current_section];
ctx               250 libavcodec/ass_split.c     int *order = ctx->field_order[ctx->current_section];
ctx               255 libavcodec/ass_split.c             ctx->current_section = -1;
ctx               280 libavcodec/ass_split.c             ctx->field_order[ctx->current_section] = order;
ctx               284 libavcodec/ass_split.c                 uint8_t *ptr, *struct_ptr = realloc_section_array(ctx);
ctx               292 libavcodec/ass_split.c                     ctx->field_order[ctx->current_section] = order;
ctx               316 libavcodec/ass_split.c                         uint8_t *ptr = (uint8_t *)&ctx->ass + section->offset;
ctx               331 libavcodec/ass_split.c static int ass_split(ASSSplitContext *ctx, const char *buf)
ctx               336 libavcodec/ass_split.c     if (ctx->current_section >= 0)
ctx               337 libavcodec/ass_split.c         buf = ass_split_section(ctx, buf);
ctx               345 libavcodec/ass_split.c                     ctx->current_section = i;
ctx               346 libavcodec/ass_split.c                     buf = ass_split_section(ctx, buf);
ctx               358 libavcodec/ass_split.c     ASSSplitContext *ctx = av_mallocz(sizeof(*ctx));
ctx               359 libavcodec/ass_split.c     ctx->current_section = -1;
ctx               360 libavcodec/ass_split.c     if (ass_split(ctx, buf) < 0) {
ctx               361 libavcodec/ass_split.c         ff_ass_split_free(ctx);
ctx               364 libavcodec/ass_split.c     return ctx;
ctx               367 libavcodec/ass_split.c static void free_section(ASSSplitContext *ctx, const ASSSection *section)
ctx               369 libavcodec/ass_split.c     uint8_t *ptr = (uint8_t *)&ctx->ass + section->offset;
ctx               374 libavcodec/ass_split.c         count = (int *)((uint8_t *)&ctx->ass + section->offset_count);
ctx               388 libavcodec/ass_split.c         av_freep((uint8_t *)&ctx->ass + section->offset);
ctx               391 libavcodec/ass_split.c ASSDialog *ff_ass_split_dialog(ASSSplitContext *ctx, const char *buf,
ctx               399 libavcodec/ass_split.c                 free_section(ctx, &ass_sections[i]);
ctx               402 libavcodec/ass_split.c     count = ctx->ass.dialogs_count;
ctx               403 libavcodec/ass_split.c     if (ass_split(ctx, buf) == 0)
ctx               404 libavcodec/ass_split.c         dialog = ctx->ass.dialogs + count;
ctx               406 libavcodec/ass_split.c         *number = ctx->ass.dialogs_count - count;
ctx               410 libavcodec/ass_split.c void ff_ass_split_free(ASSSplitContext *ctx)
ctx               412 libavcodec/ass_split.c     if (ctx) {
ctx               415 libavcodec/ass_split.c             free_section(ctx, &ass_sections[i]);
ctx               416 libavcodec/ass_split.c             av_freep(&(ctx->field_order[i]));
ctx               418 libavcodec/ass_split.c         av_free(ctx);
ctx               518 libavcodec/ass_split.c ASSStyle *ff_ass_style_get(ASSSplitContext *ctx, const char *style)
ctx               520 libavcodec/ass_split.c     ASS *ass = &ctx->ass;
ctx               124 libavcodec/ass_split.h ASSDialog *ff_ass_split_dialog(ASSSplitContext *ctx, const char *buf,
ctx               132 libavcodec/ass_split.h void ff_ass_split_free(ASSSplitContext *ctx);
ctx               190 libavcodec/ass_split.h ASSStyle *ff_ass_style_get(ASSSplitContext *ctx, const char *style);
ctx               225 libavcodec/atrac3plus.c                            Atrac3pChanUnitCtx *ctx, AVCodecContext *avctx)
ctx               229 libavcodec/atrac3plus.c         chan->num_coded_vals = ctx->num_quant_units;
ctx               232 libavcodec/atrac3plus.c         if (chan->num_coded_vals > ctx->num_quant_units) {
ctx               254 libavcodec/atrac3plus.c static int add_wordlen_weights(Atrac3pChanUnitCtx *ctx,
ctx               262 libavcodec/atrac3plus.c     for (i = 0; i < ctx->num_quant_units; i++) {
ctx               284 libavcodec/atrac3plus.c static int subtract_sf_weights(Atrac3pChanUnitCtx *ctx,
ctx               291 libavcodec/atrac3plus.c     for (i = 0; i < ctx->used_quant_units; i++) {
ctx               338 libavcodec/atrac3plus.c static int decode_channel_wordlen(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx               344 libavcodec/atrac3plus.c     Atrac3pChanParams *chan     = &ctx->channels[ch_num];
ctx               345 libavcodec/atrac3plus.c     Atrac3pChanParams *ref_chan = &ctx->channels[0];
ctx               351 libavcodec/atrac3plus.c         for (i = 0; i < ctx->num_quant_units; i++)
ctx               356 libavcodec/atrac3plus.c             if ((ret = num_coded_units(gb, chan, ctx, avctx)) < 0)
ctx               369 libavcodec/atrac3plus.c             if ((ret = num_coded_units(gb, chan, ctx, avctx)) < 0)
ctx               392 libavcodec/atrac3plus.c         if ((ret = num_coded_units(gb, chan, ctx, avctx)) < 0)
ctx               439 libavcodec/atrac3plus.c         if ((ret = num_coded_units(gb, chan, ctx, avctx)) < 0)
ctx               457 libavcodec/atrac3plus.c         for (i = chan->num_coded_vals; i < ctx->num_quant_units; i++)
ctx               461 libavcodec/atrac3plus.c                      : ctx->num_quant_units - chan->split_point;
ctx               467 libavcodec/atrac3plus.c         return add_wordlen_weights(ctx, chan, weight_idx, avctx);
ctx               481 libavcodec/atrac3plus.c static int decode_channel_sf_idx(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx               487 libavcodec/atrac3plus.c     Atrac3pChanParams *chan     = &ctx->channels[ch_num];
ctx               488 libavcodec/atrac3plus.c     Atrac3pChanParams *ref_chan = &ctx->channels[0];
ctx               492 libavcodec/atrac3plus.c         for (i = 0; i < ctx->used_quant_units; i++)
ctx               499 libavcodec/atrac3plus.c             for (i = 0; i < ctx->used_quant_units; i++) {
ctx               506 libavcodec/atrac3plus.c                 UNPACK_SF_VQ_SHAPE(gb, chan->qu_sf_idx, ctx->used_quant_units);
ctx               517 libavcodec/atrac3plus.c                 for (i = num_long_vals; i < ctx->used_quant_units; i++)
ctx               524 libavcodec/atrac3plus.c                 if (num_long_vals > ctx->used_quant_units || delta_bits == 7) {
ctx               535 libavcodec/atrac3plus.c                 for (i = num_long_vals; i < ctx->used_quant_units; i++)
ctx               548 libavcodec/atrac3plus.c             for (i = 1; i < ctx->used_quant_units; i++) {
ctx               556 libavcodec/atrac3plus.c             UNPACK_SF_VQ_SHAPE(gb, chan->qu_sf_idx, ctx->used_quant_units);
ctx               558 libavcodec/atrac3plus.c             for (i = 0; i < ctx->used_quant_units; i++) {
ctx               568 libavcodec/atrac3plus.c             for (i = 0; i < ctx->used_quant_units; i++)
ctx               578 libavcodec/atrac3plus.c                 UNPACK_SF_VQ_SHAPE(gb, chan->qu_sf_idx, ctx->used_quant_units);
ctx               583 libavcodec/atrac3plus.c                 for (i = 1; i < ctx->used_quant_units; i++) {
ctx               592 libavcodec/atrac3plus.c                 for (i = 1; i < ctx->used_quant_units; i++) {
ctx               602 libavcodec/atrac3plus.c         return subtract_sf_weights(ctx, chan, weight_idx, avctx);
ctx               616 libavcodec/atrac3plus.c static int decode_quant_wordlen(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx               622 libavcodec/atrac3plus.c         memset(ctx->channels[ch_num].qu_wordlen, 0,
ctx               623 libavcodec/atrac3plus.c                sizeof(ctx->channels[ch_num].qu_wordlen));
ctx               625 libavcodec/atrac3plus.c         if ((ret = decode_channel_wordlen(gb, ctx, ch_num, avctx)) < 0)
ctx               631 libavcodec/atrac3plus.c     for (i = ctx->num_quant_units - 1; i >= 0; i--)
ctx               632 libavcodec/atrac3plus.c         if (ctx->channels[0].qu_wordlen[i] ||
ctx               633 libavcodec/atrac3plus.c             (num_channels == 2 && ctx->channels[1].qu_wordlen[i]))
ctx               635 libavcodec/atrac3plus.c     ctx->used_quant_units = i + 1;
ctx               649 libavcodec/atrac3plus.c static int decode_scale_factors(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx               654 libavcodec/atrac3plus.c     if (!ctx->used_quant_units)
ctx               658 libavcodec/atrac3plus.c         memset(ctx->channels[ch_num].qu_sf_idx, 0,
ctx               659 libavcodec/atrac3plus.c                sizeof(ctx->channels[ch_num].qu_sf_idx));
ctx               661 libavcodec/atrac3plus.c         if ((ret = decode_channel_sf_idx(gb, ctx, ch_num, avctx)) < 0)
ctx               676 libavcodec/atrac3plus.c static int get_num_ct_values(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx               683 libavcodec/atrac3plus.c         if (num_coded_vals > ctx->used_quant_units) {
ctx               690 libavcodec/atrac3plus.c         return ctx->used_quant_units;
ctx               694 libavcodec/atrac3plus.c     num_vals = get_num_ct_values(gb, ctx, avctx);                       \
ctx               729 libavcodec/atrac3plus.c static int decode_channel_code_tab(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx               733 libavcodec/atrac3plus.c     int mask = ctx->use_full_table ? 7 : 3; /* mask for modular arithmetic */
ctx               735 libavcodec/atrac3plus.c     Atrac3pChanParams *chan     = &ctx->channels[ch_num];
ctx               736 libavcodec/atrac3plus.c     Atrac3pChanParams *ref_chan = &ctx->channels[0];
ctx               742 libavcodec/atrac3plus.c         num_bits = ctx->use_full_table + 2;
ctx               746 libavcodec/atrac3plus.c         vlc_tab = ctx->use_full_table ? &ct_vlc_tabs[1]
ctx               751 libavcodec/atrac3plus.c         if (ctx->use_full_table) {
ctx               763 libavcodec/atrac3plus.c             vlc_tab = ctx->use_full_table ? &ct_vlc_tabs[3]
ctx               782 libavcodec/atrac3plus.c static int decode_code_table_indexes(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx               787 libavcodec/atrac3plus.c     if (!ctx->used_quant_units)
ctx               790 libavcodec/atrac3plus.c     ctx->use_full_table = get_bits1(gb);
ctx               793 libavcodec/atrac3plus.c         memset(ctx->channels[ch_num].qu_tab_idx, 0,
ctx               794 libavcodec/atrac3plus.c                sizeof(ctx->channels[ch_num].qu_tab_idx));
ctx               796 libavcodec/atrac3plus.c         if ((ret = decode_channel_code_tab(gb, ctx, ch_num, avctx)) < 0)
ctx               854 libavcodec/atrac3plus.c static void decode_spectrum(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx               862 libavcodec/atrac3plus.c         chan = &ctx->channels[ch_num];
ctx               869 libavcodec/atrac3plus.c         for (qu = 0; qu < ctx->used_quant_units; qu++) {
ctx               876 libavcodec/atrac3plus.c                 if (!ctx->use_full_table)
ctx               889 libavcodec/atrac3plus.c             } else if (ch_num && ctx->channels[0].qu_wordlen[qu] && !codetab) {
ctx               892 libavcodec/atrac3plus.c                        &ctx->channels[0].spectrum[ff_atrac3p_qu_to_spec_pos[qu]],
ctx               895 libavcodec/atrac3plus.c                 chan->qu_wordlen[qu] = ctx->channels[0].qu_wordlen[qu];
ctx               903 libavcodec/atrac3plus.c         if (ctx->used_quant_units > 2) {
ctx               904 libavcodec/atrac3plus.c             num_specs = atrac3p_subband_to_num_powgrps[ctx->num_coded_subbands - 1];
ctx               949 libavcodec/atrac3plus.c static void decode_window_shape(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx               955 libavcodec/atrac3plus.c         get_subband_flags(gb, ctx->channels[ch_num].wnd_shape,
ctx               956 libavcodec/atrac3plus.c                           ctx->num_subbands);
ctx               968 libavcodec/atrac3plus.c static int decode_gainc_npoints(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx               972 libavcodec/atrac3plus.c     Atrac3pChanParams *chan     = &ctx->channels[ch_num];
ctx               973 libavcodec/atrac3plus.c     Atrac3pChanParams *ref_chan = &ctx->channels[0];
ctx              1049 libavcodec/atrac3plus.c                                       Atrac3pChanUnitCtx *ctx,
ctx              1074 libavcodec/atrac3plus.c static int decode_gainc_levels(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx              1078 libavcodec/atrac3plus.c     Atrac3pChanParams *chan     = &ctx->channels[ch_num];
ctx              1079 libavcodec/atrac3plus.c     Atrac3pChanParams *ref_chan = &ctx->channels[0];
ctx              1099 libavcodec/atrac3plus.c                 gainc_level_mode1m(gb, ctx, &chan->gain_data[sb]);
ctx              1107 libavcodec/atrac3plus.c                         gainc_level_mode1m(gb, ctx, &chan->gain_data[sb]);
ctx              1114 libavcodec/atrac3plus.c                 gainc_level_mode1m(gb, ctx, &chan->gain_data[0]);
ctx              1156 libavcodec/atrac3plus.c static inline void gainc_loc_mode0(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx              1179 libavcodec/atrac3plus.c static inline void gainc_loc_mode1(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx              1211 libavcodec/atrac3plus.c static int decode_gainc_loc_codes(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx              1218 libavcodec/atrac3plus.c     Atrac3pChanParams *chan     = &ctx->channels[ch_num];
ctx              1219 libavcodec/atrac3plus.c     Atrac3pChanParams *ref_chan = &ctx->channels[0];
ctx              1225 libavcodec/atrac3plus.c                 gainc_loc_mode0(gb, ctx, &chan->gain_data[sb], i);
ctx              1252 libavcodec/atrac3plus.c                                 gainc_loc_mode0(gb, ctx, dst, i);  // direct coding
ctx              1269 libavcodec/atrac3plus.c                 gainc_loc_mode1(gb, ctx, &chan->gain_data[sb]);
ctx              1279 libavcodec/atrac3plus.c                     gainc_loc_mode1(gb, ctx, dst);
ctx              1287 libavcodec/atrac3plus.c                 gainc_loc_mode0(gb, ctx, &chan->gain_data[0], i);
ctx              1322 libavcodec/atrac3plus.c                         gainc_loc_mode0(gb, ctx, &chan->gain_data[sb], i);
ctx              1365 libavcodec/atrac3plus.c static int decode_gainc_data(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx              1371 libavcodec/atrac3plus.c         memset(ctx->channels[ch_num].gain_data, 0,
ctx              1372 libavcodec/atrac3plus.c                sizeof(*ctx->channels[ch_num].gain_data) * ATRAC3P_SUBBANDS);
ctx              1377 libavcodec/atrac3plus.c                 ctx->channels[ch_num].num_gain_subbands = get_bits(gb, 4) + 1;
ctx              1379 libavcodec/atrac3plus.c                 ctx->channels[ch_num].num_gain_subbands = coded_subbands;
ctx              1381 libavcodec/atrac3plus.c             if ((ret = decode_gainc_npoints(gb, ctx, ch_num, coded_subbands)) < 0 ||
ctx              1382 libavcodec/atrac3plus.c                 (ret = decode_gainc_levels(gb, ctx, ch_num, coded_subbands))  < 0 ||
ctx              1383 libavcodec/atrac3plus.c                 (ret = decode_gainc_loc_codes(gb, ctx, ch_num, coded_subbands, avctx)) < 0)
ctx              1387 libavcodec/atrac3plus.c                 for (sb = coded_subbands; sb < ctx->channels[ch_num].num_gain_subbands; sb++)
ctx              1388 libavcodec/atrac3plus.c                     ctx->channels[ch_num].gain_data[sb] =
ctx              1389 libavcodec/atrac3plus.c                         ctx->channels[ch_num].gain_data[sb - 1];
ctx              1392 libavcodec/atrac3plus.c             ctx->channels[ch_num].num_gain_subbands = 0;
ctx              1408 libavcodec/atrac3plus.c static void decode_tones_envelope(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx              1412 libavcodec/atrac3plus.c     Atrac3pWavesData *dst = ctx->channels[ch_num].tones_info;
ctx              1413 libavcodec/atrac3plus.c     Atrac3pWavesData *ref = ctx->channels[0].tones_info;
ctx              1416 libavcodec/atrac3plus.c         for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) {
ctx              1427 libavcodec/atrac3plus.c         for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) {
ctx              1449 libavcodec/atrac3plus.c static int decode_band_numwavs(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx              1454 libavcodec/atrac3plus.c     Atrac3pWavesData *dst = ctx->channels[ch_num].tones_info;
ctx              1455 libavcodec/atrac3plus.c     Atrac3pWavesData *ref = ctx->channels[0].tones_info;
ctx              1460 libavcodec/atrac3plus.c         for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++)
ctx              1465 libavcodec/atrac3plus.c         for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++)
ctx              1472 libavcodec/atrac3plus.c         for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++)
ctx              1481 libavcodec/atrac3plus.c         for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++)
ctx              1488 libavcodec/atrac3plus.c     for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++)
ctx              1490 libavcodec/atrac3plus.c             if (ctx->waves_info->tones_index + dst[sb].num_wavs > 48) {
ctx              1493 libavcodec/atrac3plus.c                        ctx->waves_info->tones_index + dst[sb].num_wavs,
ctx              1497 libavcodec/atrac3plus.c             dst[sb].start_index           = ctx->waves_info->tones_index;
ctx              1498 libavcodec/atrac3plus.c             ctx->waves_info->tones_index += dst[sb].num_wavs;
ctx              1513 libavcodec/atrac3plus.c static void decode_tones_frequency(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx              1518 libavcodec/atrac3plus.c     Atrac3pWavesData *dst = ctx->channels[ch_num].tones_info;
ctx              1519 libavcodec/atrac3plus.c     Atrac3pWavesData *ref = ctx->channels[0].tones_info;
ctx              1522 libavcodec/atrac3plus.c         for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) {
ctx              1525 libavcodec/atrac3plus.c             iwav      = &ctx->waves_info->waves[dst[sb].start_index];
ctx              1547 libavcodec/atrac3plus.c         for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) {
ctx              1550 libavcodec/atrac3plus.c             iwav = &ctx->waves_info->waves[ref[sb].start_index];
ctx              1551 libavcodec/atrac3plus.c             owav = &ctx->waves_info->waves[dst[sb].start_index];
ctx              1573 libavcodec/atrac3plus.c static void decode_tones_amplitude(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx              1579 libavcodec/atrac3plus.c     Atrac3pWavesData *dst = ctx->channels[ch_num].tones_info;
ctx              1580 libavcodec/atrac3plus.c     Atrac3pWavesData *ref = ctx->channels[0].tones_info;
ctx              1583 libavcodec/atrac3plus.c         for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) {
ctx              1586 libavcodec/atrac3plus.c             wsrc = &ctx->waves_info->waves[dst[sb].start_index];
ctx              1587 libavcodec/atrac3plus.c             wref = &ctx->waves_info->waves[ref[sb].start_index];
ctx              1611 libavcodec/atrac3plus.c         for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) {
ctx              1614 libavcodec/atrac3plus.c             if (ctx->waves_info->amplitude_mode)
ctx              1616 libavcodec/atrac3plus.c                     ctx->waves_info->waves[dst[sb].start_index + i].amp_sf = get_bits(gb, 6);
ctx              1618 libavcodec/atrac3plus.c                 ctx->waves_info->waves[dst[sb].start_index].amp_sf = get_bits(gb, 6);
ctx              1622 libavcodec/atrac3plus.c         for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) {
ctx              1625 libavcodec/atrac3plus.c             if (ctx->waves_info->amplitude_mode)
ctx              1627 libavcodec/atrac3plus.c                     ctx->waves_info->waves[dst[sb].start_index + i].amp_sf =
ctx              1631 libavcodec/atrac3plus.c                 ctx->waves_info->waves[dst[sb].start_index].amp_sf =
ctx              1637 libavcodec/atrac3plus.c         for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) {
ctx              1645 libavcodec/atrac3plus.c                         ctx->waves_info->waves[refwaves[dst[sb].start_index + i]].amp_sf : 34;
ctx              1646 libavcodec/atrac3plus.c                 ctx->waves_info->waves[dst[sb].start_index + i].amp_sf = (pred + delta) & 0x3F;
ctx              1651 libavcodec/atrac3plus.c         for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) {
ctx              1655 libavcodec/atrac3plus.c                 ctx->waves_info->waves[dst[sb].start_index + i].amp_sf =
ctx              1657 libavcodec/atrac3plus.c                     ? ctx->waves_info->waves[refwaves[dst[sb].start_index + i]].amp_sf
ctx              1673 libavcodec/atrac3plus.c static void decode_tones_phase(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx              1678 libavcodec/atrac3plus.c     Atrac3pWavesData *dst = ctx->channels[ch_num].tones_info;
ctx              1680 libavcodec/atrac3plus.c     for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) {
ctx              1683 libavcodec/atrac3plus.c         wparam = &ctx->waves_info->waves[dst[sb].start_index];
ctx              1698 libavcodec/atrac3plus.c static int decode_tones_info(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx              1705 libavcodec/atrac3plus.c         memset(ctx->channels[ch_num].tones_info, 0,
ctx              1706 libavcodec/atrac3plus.c                sizeof(*ctx->channels[ch_num].tones_info) * ATRAC3P_SUBBANDS);
ctx              1708 libavcodec/atrac3plus.c     ctx->waves_info->tones_present = get_bits1(gb);
ctx              1709 libavcodec/atrac3plus.c     if (!ctx->waves_info->tones_present)
ctx              1712 libavcodec/atrac3plus.c     memset(ctx->waves_info->waves, 0, sizeof(ctx->waves_info->waves));
ctx              1714 libavcodec/atrac3plus.c     ctx->waves_info->amplitude_mode = get_bits1(gb);
ctx              1715 libavcodec/atrac3plus.c     if (!ctx->waves_info->amplitude_mode) {
ctx              1720 libavcodec/atrac3plus.c     ctx->waves_info->num_tone_bands =
ctx              1725 libavcodec/atrac3plus.c         get_subband_flags(gb, ctx->waves_info->tone_sharing, ctx->waves_info->num_tone_bands);
ctx              1726 libavcodec/atrac3plus.c         get_subband_flags(gb, ctx->waves_info->tone_master,  ctx->waves_info->num_tone_bands);
ctx              1727 libavcodec/atrac3plus.c         if (get_subband_flags(gb, ctx->waves_info->phase_shift,
ctx              1728 libavcodec/atrac3plus.c                               ctx->waves_info->num_tone_bands)) {
ctx              1734 libavcodec/atrac3plus.c     ctx->waves_info->tones_index = 0;
ctx              1737 libavcodec/atrac3plus.c         for (i = 0; i < ctx->waves_info->num_tone_bands; i++)
ctx              1738 libavcodec/atrac3plus.c             band_has_tones[i] = !ch_num ? 1 : !ctx->waves_info->tone_sharing[i];
ctx              1740 libavcodec/atrac3plus.c         decode_tones_envelope(gb, ctx, ch_num, band_has_tones);
ctx              1741 libavcodec/atrac3plus.c         if ((ret = decode_band_numwavs(gb, ctx, ch_num, band_has_tones,
ctx              1745 libavcodec/atrac3plus.c         decode_tones_frequency(gb, ctx, ch_num, band_has_tones);
ctx              1746 libavcodec/atrac3plus.c         decode_tones_amplitude(gb, ctx, ch_num, band_has_tones);
ctx              1747 libavcodec/atrac3plus.c         decode_tones_phase(gb, ctx, ch_num, band_has_tones);
ctx              1751 libavcodec/atrac3plus.c         for (i = 0; i < ctx->waves_info->num_tone_bands; i++) {
ctx              1752 libavcodec/atrac3plus.c             if (ctx->waves_info->tone_sharing[i])
ctx              1753 libavcodec/atrac3plus.c                 ctx->channels[1].tones_info[i] = ctx->channels[0].tones_info[i];
ctx              1755 libavcodec/atrac3plus.c             if (ctx->waves_info->tone_master[i])
ctx              1756 libavcodec/atrac3plus.c                 FFSWAP(Atrac3pWavesData, ctx->channels[0].tones_info[i],
ctx              1757 libavcodec/atrac3plus.c                        ctx->channels[1].tones_info[i]);
ctx              1764 libavcodec/atrac3plus.c int ff_atrac3p_decode_channel_unit(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
ctx              1770 libavcodec/atrac3plus.c     ctx->num_quant_units = get_bits(gb, 5) + 1;
ctx              1771 libavcodec/atrac3plus.c     if (ctx->num_quant_units > 28 && ctx->num_quant_units < 32) {
ctx              1774 libavcodec/atrac3plus.c                ctx->num_quant_units);
ctx              1778 libavcodec/atrac3plus.c     ctx->mute_flag = get_bits1(gb);
ctx              1781 libavcodec/atrac3plus.c     if ((ret = decode_quant_wordlen(gb, ctx, num_channels, avctx)) < 0)
ctx              1784 libavcodec/atrac3plus.c     ctx->num_subbands       = atrac3p_qu_to_subband[ctx->num_quant_units - 1] + 1;
ctx              1785 libavcodec/atrac3plus.c     ctx->num_coded_subbands = ctx->used_quant_units
ctx              1786 libavcodec/atrac3plus.c                               ? atrac3p_qu_to_subband[ctx->used_quant_units - 1] + 1
ctx              1789 libavcodec/atrac3plus.c     if ((ret = decode_scale_factors(gb, ctx, num_channels, avctx)) < 0)
ctx              1792 libavcodec/atrac3plus.c     if ((ret = decode_code_table_indexes(gb, ctx, num_channels, avctx)) < 0)
ctx              1795 libavcodec/atrac3plus.c     decode_spectrum(gb, ctx, num_channels, avctx);
ctx              1798 libavcodec/atrac3plus.c         get_subband_flags(gb, ctx->swap_channels, ctx->num_coded_subbands);
ctx              1799 libavcodec/atrac3plus.c         get_subband_flags(gb, ctx->negate_coeffs, ctx->num_coded_subbands);
ctx              1802 libavcodec/atrac3plus.c     decode_window_shape(gb, ctx, num_channels);
ctx              1804 libavcodec/atrac3plus.c     if ((ret = decode_gainc_data(gb, ctx, num_channels, avctx)) < 0)
ctx              1807 libavcodec/atrac3plus.c     if ((ret = decode_tones_info(gb, ctx, num_channels, avctx)) < 0)
ctx              1811 libavcodec/atrac3plus.c     ctx->noise_present = get_bits1(gb);
ctx              1812 libavcodec/atrac3plus.c     if (ctx->noise_present) {
ctx              1813 libavcodec/atrac3plus.c         ctx->noise_level_index = get_bits(gb, 4);
ctx              1814 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               207 libavcodec/atrac3plus.h void ff_atrac3p_power_compensation(Atrac3pChanUnitCtx *ctx, int ch_index,
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                78 libavcodec/atrac3plusdec.c static av_cold int set_channel_params(ATRAC3PContext *ctx,
ctx                81 libavcodec/atrac3plusdec.c     memset(ctx->channel_blocks, 0, sizeof(ctx->channel_blocks));
ctx                88 libavcodec/atrac3plusdec.c         ctx->num_channel_blocks = 1;
ctx                89 libavcodec/atrac3plusdec.c         ctx->channel_blocks[0]  = CH_UNIT_MONO;
ctx                93 libavcodec/atrac3plusdec.c         ctx->num_channel_blocks = 1;
ctx                94 libavcodec/atrac3plusdec.c         ctx->channel_blocks[0]  = CH_UNIT_STEREO;
ctx                98 libavcodec/atrac3plusdec.c         ctx->num_channel_blocks = 2;
ctx                99 libavcodec/atrac3plusdec.c         ctx->channel_blocks[0]  = CH_UNIT_STEREO;
ctx               100 libavcodec/atrac3plusdec.c         ctx->channel_blocks[1]  = CH_UNIT_MONO;
ctx               104 libavcodec/atrac3plusdec.c         ctx->num_channel_blocks = 3;
ctx               105 libavcodec/atrac3plusdec.c         ctx->channel_blocks[0]  = CH_UNIT_STEREO;
ctx               106 libavcodec/atrac3plusdec.c         ctx->channel_blocks[1]  = CH_UNIT_MONO;
ctx               107 libavcodec/atrac3plusdec.c         ctx->channel_blocks[2]  = CH_UNIT_MONO;
ctx               111 libavcodec/atrac3plusdec.c         ctx->num_channel_blocks = 4;
ctx               112 libavcodec/atrac3plusdec.c         ctx->channel_blocks[0]  = CH_UNIT_STEREO;
ctx               113 libavcodec/atrac3plusdec.c         ctx->channel_blocks[1]  = CH_UNIT_MONO;
ctx               114 libavcodec/atrac3plusdec.c         ctx->channel_blocks[2]  = CH_UNIT_STEREO;
ctx               115 libavcodec/atrac3plusdec.c         ctx->channel_blocks[3]  = CH_UNIT_MONO;
ctx               119 libavcodec/atrac3plusdec.c         ctx->num_channel_blocks = 5;
ctx               120 libavcodec/atrac3plusdec.c         ctx->channel_blocks[0]  = CH_UNIT_STEREO;
ctx               121 libavcodec/atrac3plusdec.c         ctx->channel_blocks[1]  = CH_UNIT_MONO;
ctx               122 libavcodec/atrac3plusdec.c         ctx->channel_blocks[2]  = CH_UNIT_STEREO;
ctx               123 libavcodec/atrac3plusdec.c         ctx->channel_blocks[3]  = CH_UNIT_MONO;
ctx               124 libavcodec/atrac3plusdec.c         ctx->channel_blocks[4]  = CH_UNIT_MONO;
ctx               128 libavcodec/atrac3plusdec.c         ctx->num_channel_blocks = 5;
ctx               129 libavcodec/atrac3plusdec.c         ctx->channel_blocks[0]  = CH_UNIT_STEREO;
ctx               130 libavcodec/atrac3plusdec.c         ctx->channel_blocks[1]  = CH_UNIT_MONO;
ctx               131 libavcodec/atrac3plusdec.c         ctx->channel_blocks[2]  = CH_UNIT_STEREO;
ctx               132 libavcodec/atrac3plusdec.c         ctx->channel_blocks[3]  = CH_UNIT_STEREO;
ctx               133 libavcodec/atrac3plusdec.c         ctx->channel_blocks[4]  = CH_UNIT_MONO;
ctx               146 libavcodec/atrac3plusdec.c     ATRAC3PContext *ctx = avctx->priv_data;
ctx               157 libavcodec/atrac3plusdec.c     ff_mdct_init(&ctx->ipqf_dct_ctx, 5, 1, 32.0 / 32768.0);
ctx               159 libavcodec/atrac3plusdec.c     ff_atrac3p_init_imdct(avctx, &ctx->mdct_ctx);
ctx               161 libavcodec/atrac3plusdec.c     ff_atrac_init_gain_compensation(&ctx->gainc_ctx, 6, 2);
ctx               165 libavcodec/atrac3plusdec.c     if ((ret = set_channel_params(ctx, avctx)) < 0)
ctx               168 libavcodec/atrac3plusdec.c     ctx->my_channel_layout = avctx->channel_layout;
ctx               170 libavcodec/atrac3plusdec.c     ctx->ch_units = av_mallocz_array(ctx->num_channel_blocks, sizeof(*ctx->ch_units));
ctx               171 libavcodec/atrac3plusdec.c     ctx->fdsp = avpriv_float_dsp_alloc(avctx->flags & CODEC_FLAG_BITEXACT);
ctx               173 libavcodec/atrac3plusdec.c     if (!ctx->ch_units || !ctx->fdsp) {
ctx               178 libavcodec/atrac3plusdec.c     for (i = 0; i < ctx->num_channel_blocks; i++) {
ctx               180 libavcodec/atrac3plusdec.c             ctx->ch_units[i].channels[ch].ch_num          = ch;
ctx               181 libavcodec/atrac3plusdec.c             ctx->ch_units[i].channels[ch].wnd_shape       = &ctx->ch_units[i].channels[ch].wnd_shape_hist[0][0];
ctx               182 libavcodec/atrac3plusdec.c             ctx->ch_units[i].channels[ch].wnd_shape_prev  = &ctx->ch_units[i].channels[ch].wnd_shape_hist[1][0];
ctx               183 libavcodec/atrac3plusdec.c             ctx->ch_units[i].channels[ch].gain_data       = &ctx->ch_units[i].channels[ch].gain_data_hist[0][0];
ctx               184 libavcodec/atrac3plusdec.c             ctx->ch_units[i].channels[ch].gain_data_prev  = &ctx->ch_units[i].channels[ch].gain_data_hist[1][0];
ctx               185 libavcodec/atrac3plusdec.c             ctx->ch_units[i].channels[ch].tones_info      = &ctx->ch_units[i].channels[ch].tones_info_hist[0][0];
ctx               186 libavcodec/atrac3plusdec.c             ctx->ch_units[i].channels[ch].tones_info_prev = &ctx->ch_units[i].channels[ch].tones_info_hist[1][0];
ctx               189 libavcodec/atrac3plusdec.c         ctx->ch_units[i].waves_info      = &ctx->ch_units[i].wave_synth_hist[0];
ctx               190 libavcodec/atrac3plusdec.c         ctx->ch_units[i].waves_info_prev = &ctx->ch_units[i].wave_synth_hist[1];
ctx               198 libavcodec/atrac3plusdec.c static void decode_residual_spectrum(Atrac3pChanUnitCtx *ctx,
ctx               209 libavcodec/atrac3plusdec.c     if (ctx->mute_flag) {
ctx               215 libavcodec/atrac3plusdec.c     for (qu = 0, RNG_index = 0; qu < ctx->used_quant_units; qu++)
ctx               216 libavcodec/atrac3plusdec.c         RNG_index += ctx->channels[0].qu_sf_idx[qu] +
ctx               217 libavcodec/atrac3plusdec.c                      ctx->channels[1].qu_sf_idx[qu];
ctx               219 libavcodec/atrac3plusdec.c     for (sb = 0; sb < ctx->num_coded_subbands; sb++, RNG_index += 128)
ctx               227 libavcodec/atrac3plusdec.c         for (qu = 0; qu < ctx->used_quant_units; qu++) {
ctx               228 libavcodec/atrac3plusdec.c             src        = &ctx->channels[ch].spectrum[ff_atrac3p_qu_to_spec_pos[qu]];
ctx               233 libavcodec/atrac3plusdec.c             if (ctx->channels[ch].qu_wordlen[qu] > 0) {
ctx               234 libavcodec/atrac3plusdec.c                 q = ff_atrac3p_sf_tab[ctx->channels[ch].qu_sf_idx[qu]] *
ctx               235 libavcodec/atrac3plusdec.c                     ff_atrac3p_mant_tab[ctx->channels[ch].qu_wordlen[qu]];
ctx               241 libavcodec/atrac3plusdec.c         for (sb = 0; sb < ctx->num_coded_subbands; sb++)
ctx               242 libavcodec/atrac3plusdec.c             ff_atrac3p_power_compensation(ctx, ch, &out[ch][0],
ctx               246 libavcodec/atrac3plusdec.c     if (ctx->unit_type == CH_UNIT_STEREO) {
ctx               247 libavcodec/atrac3plusdec.c         for (sb = 0; sb < ctx->num_coded_subbands; sb++) {
ctx               248 libavcodec/atrac3plusdec.c             if (ctx->swap_channels[sb]) {
ctx               255 libavcodec/atrac3plusdec.c             if (ctx->negate_coeffs[sb])
ctx               262 libavcodec/atrac3plusdec.c static void reconstruct_frame(ATRAC3PContext *ctx, Atrac3pChanUnitCtx *ch_unit,
ctx               270 libavcodec/atrac3plusdec.c             ff_atrac3p_imdct(ctx->fdsp, &ctx->mdct_ctx,
ctx               271 libavcodec/atrac3plusdec.c                              &ctx->samples[ch][sb * ATRAC3P_SUBBAND_SAMPLES],
ctx               272 libavcodec/atrac3plusdec.c                              &ctx->mdct_buf[ch][sb * ATRAC3P_SUBBAND_SAMPLES],
ctx               277 libavcodec/atrac3plusdec.c             ff_atrac_gain_compensation(&ctx->gainc_ctx,
ctx               278 libavcodec/atrac3plusdec.c                                        &ctx->mdct_buf[ch][sb * ATRAC3P_SUBBAND_SAMPLES],
ctx               283 libavcodec/atrac3plusdec.c                                        &ctx->time_buf[ch][sb * ATRAC3P_SUBBAND_SAMPLES]);
ctx               292 libavcodec/atrac3plusdec.c         memset(&ctx->time_buf[ch][ch_unit->num_subbands * ATRAC3P_SUBBAND_SAMPLES],
ctx               296 libavcodec/atrac3plusdec.c                sizeof(ctx->time_buf[ch][ch_unit->num_subbands * ATRAC3P_SUBBAND_SAMPLES]));
ctx               304 libavcodec/atrac3plusdec.c                     ff_atrac3p_generate_tones(ch_unit, ctx->fdsp, ch, sb,
ctx               305 libavcodec/atrac3plusdec.c                                               &ctx->time_buf[ch][sb * 128]);
ctx               310 libavcodec/atrac3plusdec.c         ff_atrac3p_ipqf(&ctx->ipqf_dct_ctx, &ch_unit->ipqf_ctx[ch],
ctx               311 libavcodec/atrac3plusdec.c                         &ctx->time_buf[ch][0], &ctx->outp_buf[ch][0]);
ctx               330 libavcodec/atrac3plusdec.c     ATRAC3PContext *ctx = avctx->priv_data;
ctx               339 libavcodec/atrac3plusdec.c     if ((ret = init_get_bits8(&ctx->gb, avpkt->data, avpkt->size)) < 0)
ctx               342 libavcodec/atrac3plusdec.c     if (get_bits1(&ctx->gb)) {
ctx               347 libavcodec/atrac3plusdec.c     while (get_bits_left(&ctx->gb) >= 2 &&
ctx               348 libavcodec/atrac3plusdec.c            (ch_unit_id = get_bits(&ctx->gb, 2)) != CH_UNIT_TERMINATOR) {
ctx               353 libavcodec/atrac3plusdec.c         if (ch_block >= ctx->num_channel_blocks ||
ctx               354 libavcodec/atrac3plusdec.c             ctx->channel_blocks[ch_block] != ch_unit_id) {
ctx               360 libavcodec/atrac3plusdec.c         ctx->ch_units[ch_block].unit_type = ch_unit_id;
ctx               363 libavcodec/atrac3plusdec.c         if ((ret = ff_atrac3p_decode_channel_unit(&ctx->gb,
ctx               364 libavcodec/atrac3plusdec.c                                                   &ctx->ch_units[ch_block],
ctx               369 libavcodec/atrac3plusdec.c         decode_residual_spectrum(&ctx->ch_units[ch_block], ctx->samples,
ctx               371 libavcodec/atrac3plusdec.c         reconstruct_frame(ctx, &ctx->ch_units[ch_block],
ctx               375 libavcodec/atrac3plusdec.c             memcpy(samples_p[out_ch_index + i], ctx->outp_buf[i],
ctx               411 libavcodec/atrac3plusdsp.c void ff_atrac3p_power_compensation(Atrac3pChanUnitCtx *ctx, int ch_index,
ctx               417 libavcodec/atrac3plusdsp.c     int swap_ch = (ctx->unit_type == CH_UNIT_STEREO && ctx->swap_channels[sb]) ? 1 : 0;
ctx               419 libavcodec/atrac3plusdsp.c     if (ctx->channels[ch_index ^ swap_ch].power_levs[subband_to_powgrp[sb]] == ATRAC3P_POWER_COMP_OFF)
ctx               427 libavcodec/atrac3plusdsp.c     g1 = &ctx->channels[ch_index ^ swap_ch].gain_data[sb];
ctx               428 libavcodec/atrac3plusdsp.c     g2 = &ctx->channels[ch_index ^ swap_ch].gain_data_prev[sb];
ctx               438 libavcodec/atrac3plusdsp.c     grp_lev = pwc_levs[ctx->channels[ch_index ^ swap_ch].power_levs[subband_to_powgrp[sb]]] / (1 << gcv);
ctx               442 libavcodec/atrac3plusdsp.c         if (ctx->channels[ch_index].qu_wordlen[qu] <= 0)
ctx               445 libavcodec/atrac3plusdsp.c         qu_lev = ff_atrac3p_sf_tab[ctx->channels[ch_index].qu_sf_idx[qu]] *
ctx               446 libavcodec/atrac3plusdsp.c                  ff_atrac3p_mant_tab[ctx->channels[ch_index].qu_wordlen[qu]] /
ctx               447 libavcodec/atrac3plusdsp.c                  (1 << ctx->channels[ch_index].qu_wordlen[qu]) * grp_lev;
ctx                46 libavcodec/audioconvert.c     AVAudioConvert *ctx;
ctx                49 libavcodec/audioconvert.c     ctx = av_malloc(sizeof(AVAudioConvert));
ctx                50 libavcodec/audioconvert.c     if (!ctx)
ctx                52 libavcodec/audioconvert.c     ctx->in_channels = in_channels;
ctx                53 libavcodec/audioconvert.c     ctx->out_channels = out_channels;
ctx                54 libavcodec/audioconvert.c     ctx->fmt_pair = out_fmt + AV_SAMPLE_FMT_NB*in_fmt;
ctx                55 libavcodec/audioconvert.c     return ctx;
ctx                58 libavcodec/audioconvert.c void av_audio_convert_free(AVAudioConvert *ctx)
ctx                60 libavcodec/audioconvert.c     av_free(ctx);
ctx                63 libavcodec/audioconvert.c int av_audio_convert(AVAudioConvert *ctx,
ctx                71 libavcodec/audioconvert.c     for(ch=0; ch<ctx->out_channels; ch++){
ctx                81 libavcodec/audioconvert.c if(ctx->fmt_pair == ofmt + AV_SAMPLE_FMT_NB*ifmt){\
ctx                67 libavcodec/audioconvert.h void av_audio_convert_free(AVAudioConvert *ctx);
ctx                80 libavcodec/audioconvert.h int av_audio_convert(AVAudioConvert *ctx,
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               177 libavcodec/ccaption_dec.c     CCaptionSubContext *ctx = avctx->priv_data;
ctx               179 libavcodec/ccaption_dec.c     av_bprint_init(&ctx->buffer, 0, AV_BPRINT_SIZE_UNLIMITED);
ctx               181 libavcodec/ccaption_dec.c     ctx->mode = CCMODE_ROLLUP_2;
ctx               182 libavcodec/ccaption_dec.c     ctx->rollup = 2;
ctx               188 libavcodec/ccaption_dec.c     ctx->pktbuf = av_buffer_alloc(128);
ctx               189 libavcodec/ccaption_dec.c     if( !ctx->pktbuf) {
ctx               199 libavcodec/ccaption_dec.c     CCaptionSubContext *ctx = avctx->priv_data;
ctx               200 libavcodec/ccaption_dec.c     av_bprint_finalize( &ctx->buffer, NULL);
ctx               201 libavcodec/ccaption_dec.c     av_buffer_unref(&ctx->pktbuf);
ctx               208 libavcodec/ccaption_dec.c static int write_char (CCaptionSubContext *ctx, char *row,uint8_t col, char ch)
ctx               220 libavcodec/ccaption_dec.c         av_log(ctx, AV_LOG_WARNING,"Data Ignored since exceeding screen width\n");
ctx               268 libavcodec/ccaption_dec.c static struct Screen *get_writing_screen(CCaptionSubContext *ctx)
ctx               270 libavcodec/ccaption_dec.c     switch (ctx->mode) {
ctx               273 libavcodec/ccaption_dec.c         return ctx->screen + !ctx->active_screen;
ctx               280 libavcodec/ccaption_dec.c         return ctx->screen + ctx->active_screen;
ctx               286 libavcodec/ccaption_dec.c static void roll_up(CCaptionSubContext *ctx)
ctx               291 libavcodec/ccaption_dec.c     if(ctx->mode == CCMODE_TEXT)
ctx               294 libavcodec/ccaption_dec.c     screen = get_writing_screen(ctx);
ctx               299 libavcodec/ccaption_dec.c     keep_lines = FFMIN(ctx->cursor_row + 1, ctx->rollup);
ctx               301 libavcodec/ccaption_dec.c     for( i = 0; i < ctx->cursor_row - keep_lines; i++ )
ctx               306 libavcodec/ccaption_dec.c         const int i_row = ctx->cursor_row - keep_lines + i + 1;
ctx               315 libavcodec/ccaption_dec.c     UNSET_FLAG(screen->row_used, ctx->cursor_row);
ctx               319 libavcodec/ccaption_dec.c static int reap_screen(CCaptionSubContext *ctx, int64_t pts)
ctx               323 libavcodec/ccaption_dec.c     struct Screen *screen = ctx->screen + ctx->active_screen;
ctx               324 libavcodec/ccaption_dec.c     ctx->start_time = ctx->startv_time;
ctx               334 libavcodec/ccaption_dec.c             av_bprintf(&ctx->buffer, "%s\\N", str);
ctx               335 libavcodec/ccaption_dec.c             ret = av_bprint_is_complete(&ctx->buffer);
ctx               343 libavcodec/ccaption_dec.c     ctx->startv_time = pts;
ctx               344 libavcodec/ccaption_dec.c     ctx->end_time = pts;
ctx               348 libavcodec/ccaption_dec.c static void handle_textattr( CCaptionSubContext *ctx, uint8_t hi, uint8_t lo )
ctx               352 libavcodec/ccaption_dec.c     struct Screen *screen = get_writing_screen(ctx);
ctx               353 libavcodec/ccaption_dec.c     char *row = screen->characters[ctx->cursor_row];
ctx               358 libavcodec/ccaption_dec.c     ctx->cursor_color =  pac2_attribs[i][0];
ctx               359 libavcodec/ccaption_dec.c     ctx->cursor_font = pac2_attribs[i][1];
ctx               361 libavcodec/ccaption_dec.c     SET_FLAG(screen->row_used,ctx->cursor_row);
ctx               362 libavcodec/ccaption_dec.c     ret = write_char(ctx, row, ctx->cursor_column, ' ');
ctx               364 libavcodec/ccaption_dec.c         ctx->cursor_column++;
ctx               367 libavcodec/ccaption_dec.c static void handle_pac( CCaptionSubContext *ctx, uint8_t hi, uint8_t lo )
ctx               373 libavcodec/ccaption_dec.c     struct Screen *screen = get_writing_screen(ctx);
ctx               378 libavcodec/ccaption_dec.c         av_log(ctx, AV_LOG_DEBUG,"Invalid pac index encountered\n");
ctx               384 libavcodec/ccaption_dec.c     ctx->cursor_row = row_map[index] - 1;
ctx               385 libavcodec/ccaption_dec.c     ctx->cursor_color =  pac2_attribs[lo][0];
ctx               386 libavcodec/ccaption_dec.c     ctx->cursor_font = pac2_attribs[lo][1];
ctx               387 libavcodec/ccaption_dec.c     ctx->cursor_column = 0;
ctx               389 libavcodec/ccaption_dec.c     row = screen->characters[ctx->cursor_row];
ctx               391 libavcodec/ccaption_dec.c         ret = write_char(ctx, row, ctx->cursor_column, ' ');
ctx               393 libavcodec/ccaption_dec.c             ctx->cursor_column++;
ctx               401 libavcodec/ccaption_dec.c static int handle_edm(CCaptionSubContext *ctx,int64_t pts)
ctx               404 libavcodec/ccaption_dec.c     struct Screen *screen = ctx->screen + ctx->active_screen;
ctx               406 libavcodec/ccaption_dec.c     reap_screen(ctx, pts);
ctx               408 libavcodec/ccaption_dec.c     ctx->screen_changed = 1;
ctx               412 libavcodec/ccaption_dec.c static int handle_eoc(CCaptionSubContext *ctx, int64_t pts)
ctx               415 libavcodec/ccaption_dec.c     ret = handle_edm(ctx,pts);
ctx               416 libavcodec/ccaption_dec.c     ctx->active_screen = !ctx->active_screen;
ctx               417 libavcodec/ccaption_dec.c     ctx->cursor_column = 0;
ctx               421 libavcodec/ccaption_dec.c static void handle_delete_end_of_row( CCaptionSubContext *ctx, char hi, char lo)
ctx               423 libavcodec/ccaption_dec.c     struct Screen *screen = get_writing_screen(ctx);
ctx               424 libavcodec/ccaption_dec.c     char *row = screen->characters[ctx->cursor_row];
ctx               425 libavcodec/ccaption_dec.c     write_char(ctx, row, ctx->cursor_column, 0);
ctx               429 libavcodec/ccaption_dec.c static void handle_char(CCaptionSubContext *ctx, char hi, char lo, int64_t pts)
ctx               431 libavcodec/ccaption_dec.c     struct Screen *screen = get_writing_screen(ctx);
ctx               432 libavcodec/ccaption_dec.c     char *row = screen->characters[ctx->cursor_row];
ctx               435 libavcodec/ccaption_dec.c     SET_FLAG(screen->row_used,ctx->cursor_row);
ctx               437 libavcodec/ccaption_dec.c     ret = write_char(ctx, row, ctx->cursor_column, hi);
ctx               439 libavcodec/ccaption_dec.c         ctx->cursor_column++;
ctx               442 libavcodec/ccaption_dec.c         ret = write_char(ctx, row, ctx->cursor_column, lo);
ctx               444 libavcodec/ccaption_dec.c             ctx->cursor_column++;
ctx               446 libavcodec/ccaption_dec.c     write_char(ctx, row, ctx->cursor_column, 0);
ctx               449 libavcodec/ccaption_dec.c     ctx->prev_cmd[0] = 0;
ctx               450 libavcodec/ccaption_dec.c     ctx->prev_cmd[1] = 0;
ctx               452 libavcodec/ccaption_dec.c        av_dlog(ctx, "(%c,%c)\n",hi,lo);
ctx               454 libavcodec/ccaption_dec.c        av_dlog(ctx, "(%c)\n",hi);
ctx               457 libavcodec/ccaption_dec.c static int process_cc608(CCaptionSubContext *ctx, int64_t pts, uint8_t hi, uint8_t lo)
ctx               461 libavcodec/ccaption_dec.c     if ( hi == ctx->prev_cmd[0] && lo == ctx->prev_cmd[1]) {
ctx               465 libavcodec/ccaption_dec.c         handle_pac(ctx, hi, lo);
ctx               468 libavcodec/ccaption_dec.c         handle_textattr(ctx, hi, lo);
ctx               471 libavcodec/ccaption_dec.c         ctx->mode = CCMODE_POPON;
ctx               473 libavcodec/ccaption_dec.c         handle_delete_end_of_row(ctx, hi, lo);
ctx               475 libavcodec/ccaption_dec.c         ctx->rollup = 2;
ctx               476 libavcodec/ccaption_dec.c         ctx->mode = CCMODE_ROLLUP_2;
ctx               478 libavcodec/ccaption_dec.c         ctx->rollup = 3;
ctx               479 libavcodec/ccaption_dec.c         ctx->mode = CCMODE_ROLLUP_3;
ctx               481 libavcodec/ccaption_dec.c         ctx->rollup = 4;
ctx               482 libavcodec/ccaption_dec.c         ctx->mode = CCMODE_ROLLUP_4;
ctx               485 libavcodec/ccaption_dec.c         ctx->mode = CCMODE_PAINTON;
ctx               488 libavcodec/ccaption_dec.c         ctx->mode = CCMODE_TEXT;
ctx               491 libavcodec/ccaption_dec.c         ret = handle_edm(ctx, pts);
ctx               494 libavcodec/ccaption_dec.c         av_dlog(ctx, "carriage return\n");
ctx               495 libavcodec/ccaption_dec.c         reap_screen(ctx, pts);
ctx               496 libavcodec/ccaption_dec.c         roll_up(ctx);
ctx               497 libavcodec/ccaption_dec.c         ctx->screen_changed = 1;
ctx               498 libavcodec/ccaption_dec.c         ctx->cursor_column = 0;
ctx               501 libavcodec/ccaption_dec.c         av_dlog(ctx, "handle_eoc\n");
ctx               502 libavcodec/ccaption_dec.c         ret = handle_eoc(ctx, pts);
ctx               505 libavcodec/ccaption_dec.c         handle_char(ctx, hi, lo, pts);
ctx               508 libavcodec/ccaption_dec.c         av_dlog(ctx, "Unknown command 0x%hhx 0x%hhx\n", hi, lo);
ctx               512 libavcodec/ccaption_dec.c      ctx->prev_cmd[0] = hi;
ctx               513 libavcodec/ccaption_dec.c      ctx->prev_cmd[1] = lo;
ctx               522 libavcodec/ccaption_dec.c     CCaptionSubContext *ctx = avctx->priv_data;
ctx               529 libavcodec/ccaption_dec.c     if ( ctx->pktbuf->size < len) {
ctx               530 libavcodec/ccaption_dec.c         ret = av_buffer_realloc(&ctx->pktbuf, len);
ctx               532 libavcodec/ccaption_dec.c             av_log(ctx, AV_LOG_WARNING, "Insufficient Memory of %d truncated to %d\n",len, ctx->pktbuf->size);
ctx               533 libavcodec/ccaption_dec.c             len = ctx->pktbuf->size;
ctx               537 libavcodec/ccaption_dec.c     memcpy(ctx->pktbuf->data, avpkt->data, len);
ctx               538 libavcodec/ccaption_dec.c     bptr = ctx->pktbuf->data;
ctx               549 libavcodec/ccaption_dec.c             process_cc608(ctx, avpkt->pts, *(bptr + i + 1) & 0x7f, *(bptr + i + 2) & 0x7f);
ctx               550 libavcodec/ccaption_dec.c         if(ctx->screen_changed && *ctx->buffer.str)
ctx               552 libavcodec/ccaption_dec.c             int start_time = av_rescale_q(ctx->start_time, avctx->time_base, (AVRational){ 1, 100 });
ctx               553 libavcodec/ccaption_dec.c             int end_time = av_rescale_q(ctx->end_time, avctx->time_base, (AVRational){ 1, 100 });
ctx               554 libavcodec/ccaption_dec.c             av_dlog(ctx, "cdp writing data (%s)\n",ctx->buffer.str);
ctx               555 libavcodec/ccaption_dec.c             ret = ff_ass_add_rect(sub, ctx->buffer.str, start_time, end_time - start_time , 0);
ctx               558 libavcodec/ccaption_dec.c             sub->pts = av_rescale_q(ctx->start_time, avctx->time_base, AV_TIME_BASE_Q);
ctx               559 libavcodec/ccaption_dec.c             ctx->screen_changed = 0;
ctx               560 libavcodec/ccaption_dec.c             av_bprint_clear(&ctx->buffer);
ctx                39 libavcodec/cllc.c static int read_code_table(CLLCContext *ctx, GetBitContext *gb, VLC *vlc)
ctx                60 libavcodec/cllc.c             av_log(ctx->avctx, AV_LOG_ERROR,
ctx                84 libavcodec/cllc.c static int read_argb_line(CLLCContext *ctx, GetBitContext *gb, int *top_left,
ctx               100 libavcodec/cllc.c     for (i = 0; i < ctx->avctx->width; i++) {
ctx               153 libavcodec/cllc.c static int read_rgb24_component_line(CLLCContext *ctx, GetBitContext *gb,
ctx               166 libavcodec/cllc.c     for (i = 0; i < ctx->avctx->width; i++) {
ctx               183 libavcodec/cllc.c static int read_yuv_component_line(CLLCContext *ctx, GetBitContext *gb,
ctx               195 libavcodec/cllc.c     for (i = 0; i < ctx->avctx->width >> is_chroma; i++) {
ctx               211 libavcodec/cllc.c static int decode_argb_frame(CLLCContext *ctx, GetBitContext *gb, AVFrame *pic)
ctx               213 libavcodec/cllc.c     AVCodecContext *avctx = ctx->avctx;
ctx               231 libavcodec/cllc.c         ret = read_code_table(ctx, gb, &vlc[i]);
ctx               236 libavcodec/cllc.c             av_log(ctx->avctx, AV_LOG_ERROR,
ctx               244 libavcodec/cllc.c         read_argb_line(ctx, gb, pred, vlc, dst);
ctx               255 libavcodec/cllc.c static int decode_rgb24_frame(CLLCContext *ctx, GetBitContext *gb, AVFrame *pic)
ctx               257 libavcodec/cllc.c     AVCodecContext *avctx = ctx->avctx;
ctx               274 libavcodec/cllc.c         ret = read_code_table(ctx, gb, &vlc[i]);
ctx               279 libavcodec/cllc.c             av_log(ctx->avctx, AV_LOG_ERROR,
ctx               288 libavcodec/cllc.c             read_rgb24_component_line(ctx, gb, &pred[j], &vlc[j], &dst[j]);
ctx               299 libavcodec/cllc.c static int decode_yuv_frame(CLLCContext *ctx, GetBitContext *gb, AVFrame *pic)
ctx               301 libavcodec/cllc.c     AVCodecContext *avctx = ctx->avctx;
ctx               321 libavcodec/cllc.c         avpriv_request_sample(ctx->avctx, "Blocked YUV");
ctx               327 libavcodec/cllc.c         ret = read_code_table(ctx, gb, &vlc[i]);
ctx               332 libavcodec/cllc.c             av_log(ctx->avctx, AV_LOG_ERROR,
ctx               340 libavcodec/cllc.c         read_yuv_component_line(ctx, gb, &pred[0], &vlc[0], dst[0], 0); /* Y */
ctx               341 libavcodec/cllc.c         read_yuv_component_line(ctx, gb, &pred[1], &vlc[1], dst[1], 1); /* U */
ctx               342 libavcodec/cllc.c         read_yuv_component_line(ctx, gb, &pred[2], &vlc[1], dst[2], 1); /* V */
ctx               357 libavcodec/cllc.c     CLLCContext *ctx = avctx->priv_data;
ctx               386 libavcodec/cllc.c     av_fast_padded_malloc(&ctx->swapped_buf,
ctx               387 libavcodec/cllc.c                           &ctx->swapped_buf_size, data_size);
ctx               388 libavcodec/cllc.c     if (!ctx->swapped_buf) {
ctx               394 libavcodec/cllc.c     ctx->bdsp.bswap16_buf((uint16_t *) ctx->swapped_buf, (uint16_t *) src,
ctx               397 libavcodec/cllc.c     if ((ret = init_get_bits8(&gb, ctx->swapped_buf, data_size)) < 0)
ctx               419 libavcodec/cllc.c         ret = decode_yuv_frame(ctx, &gb, pic);
ctx               432 libavcodec/cllc.c         ret = decode_rgb24_frame(ctx, &gb, pic);
ctx               444 libavcodec/cllc.c         ret = decode_argb_frame(ctx, &gb, pic);
ctx               464 libavcodec/cllc.c     CLLCContext *ctx = avctx->priv_data;
ctx               466 libavcodec/cllc.c     av_freep(&ctx->swapped_buf);
ctx               473 libavcodec/cllc.c     CLLCContext *ctx = avctx->priv_data;
ctx               476 libavcodec/cllc.c     ctx->avctx            = avctx;
ctx               477 libavcodec/cllc.c     ctx->swapped_buf      = NULL;
ctx               478 libavcodec/cllc.c     ctx->swapped_buf_size = 0;
ctx               480 libavcodec/cllc.c     ff_bswapdsp_init(&ctx->bdsp);
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               129 libavcodec/dirac_arith.h static inline int dirac_get_arith_bit(DiracArith *c, int ctx)
ctx               131 libavcodec/dirac_arith.h     int prob_zero = c->contexts[ctx];
ctx               161 libavcodec/dirac_arith.h     c->contexts[ctx] += ff_dirac_prob_branchless[prob_zero>>8][bit];
ctx                53 libavcodec/dnxhddec.c     void (*decode_dct_block)(struct DNXHDContext *ctx, int16_t *block,
ctx                63 libavcodec/dnxhddec.c static void dnxhd_decode_dct_block_8(DNXHDContext *ctx, int16_t *block,
ctx                65 libavcodec/dnxhddec.c static void dnxhd_decode_dct_block_10(DNXHDContext *ctx, int16_t *block,
ctx                67 libavcodec/dnxhddec.c static void dnxhd_decode_dct_block_10_444(DNXHDContext *ctx, int16_t *block,
ctx                72 libavcodec/dnxhddec.c     DNXHDContext *ctx = avctx->priv_data;
ctx                74 libavcodec/dnxhddec.c     ctx->avctx = avctx;
ctx                75 libavcodec/dnxhddec.c     ctx->cid = -1;
ctx                79 libavcodec/dnxhddec.c static int dnxhd_init_vlc(DNXHDContext *ctx, uint32_t cid)
ctx                81 libavcodec/dnxhddec.c     if (cid != ctx->cid) {
ctx                85 libavcodec/dnxhddec.c             av_log(ctx->avctx, AV_LOG_ERROR, "unsupported cid %d\n", cid);
ctx                88 libavcodec/dnxhddec.c         if (ff_dnxhd_cid_table[index].bit_depth != ctx->bit_depth) {
ctx                89 libavcodec/dnxhddec.c             av_log(ctx->avctx, AV_LOG_ERROR, "bit depth mismatches %d %d\n", ff_dnxhd_cid_table[index].bit_depth, ctx->bit_depth);
ctx                92 libavcodec/dnxhddec.c         ctx->cid_table = &ff_dnxhd_cid_table[index];
ctx                94 libavcodec/dnxhddec.c         ff_free_vlc(&ctx->ac_vlc);
ctx                95 libavcodec/dnxhddec.c         ff_free_vlc(&ctx->dc_vlc);
ctx                96 libavcodec/dnxhddec.c         ff_free_vlc(&ctx->run_vlc);
ctx                98 libavcodec/dnxhddec.c         init_vlc(&ctx->ac_vlc, DNXHD_VLC_BITS, 257,
ctx                99 libavcodec/dnxhddec.c                  ctx->cid_table->ac_bits, 1, 1,
ctx               100 libavcodec/dnxhddec.c                  ctx->cid_table->ac_codes, 2, 2, 0);
ctx               101 libavcodec/dnxhddec.c         init_vlc(&ctx->dc_vlc, DNXHD_DC_VLC_BITS, ctx->bit_depth + 4,
ctx               102 libavcodec/dnxhddec.c                  ctx->cid_table->dc_bits, 1, 1,
ctx               103 libavcodec/dnxhddec.c                  ctx->cid_table->dc_codes, 1, 1, 0);
ctx               104 libavcodec/dnxhddec.c         init_vlc(&ctx->run_vlc, DNXHD_VLC_BITS, 62,
ctx               105 libavcodec/dnxhddec.c                  ctx->cid_table->run_bits, 1, 1,
ctx               106 libavcodec/dnxhddec.c                  ctx->cid_table->run_codes, 2, 2, 0);
ctx               108 libavcodec/dnxhddec.c         ff_init_scantable(ctx->idsp.idct_permutation, &ctx->scantable,
ctx               110 libavcodec/dnxhddec.c         ctx->cid = cid;
ctx               115 libavcodec/dnxhddec.c static int dnxhd_decode_header(DNXHDContext *ctx, AVFrame *frame,
ctx               122 libavcodec/dnxhddec.c     int old_bit_depth = ctx->bit_depth;
ctx               125 libavcodec/dnxhddec.c         av_log(ctx->avctx, AV_LOG_ERROR, "buffer too small (%d < 640).\n",
ctx               131 libavcodec/dnxhddec.c         av_log(ctx->avctx, AV_LOG_ERROR, "error in header\n");
ctx               135 libavcodec/dnxhddec.c         ctx->cur_field = buf[5] & 1;
ctx               137 libavcodec/dnxhddec.c         frame->top_field_first  = first_field ^ ctx->cur_field;
ctx               138 libavcodec/dnxhddec.c         av_log(ctx->avctx, AV_LOG_DEBUG,
ctx               139 libavcodec/dnxhddec.c                "interlaced %d, cur field %d\n", buf[5] & 3, ctx->cur_field);
ctx               142 libavcodec/dnxhddec.c     ctx->height = AV_RB16(buf + 0x18);
ctx               143 libavcodec/dnxhddec.c     ctx->width  = AV_RB16(buf + 0x1a);
ctx               145 libavcodec/dnxhddec.c     av_dlog(ctx->avctx, "width %d, height %d\n", ctx->width, ctx->height);
ctx               148 libavcodec/dnxhddec.c         ctx->bit_depth = ctx->avctx->bits_per_raw_sample = 10;
ctx               151 libavcodec/dnxhddec.c             ctx->decode_dct_block = dnxhd_decode_dct_block_10_444;
ctx               152 libavcodec/dnxhddec.c             ctx->pix_fmt = AV_PIX_FMT_YUV444P10;
ctx               153 libavcodec/dnxhddec.c             ctx->is_444 = 1;
ctx               155 libavcodec/dnxhddec.c             ctx->decode_dct_block = dnxhd_decode_dct_block_10;
ctx               156 libavcodec/dnxhddec.c             ctx->pix_fmt = AV_PIX_FMT_YUV422P10;
ctx               157 libavcodec/dnxhddec.c             ctx->is_444 = 0;
ctx               160 libavcodec/dnxhddec.c         ctx->bit_depth = ctx->avctx->bits_per_raw_sample = 8;
ctx               162 libavcodec/dnxhddec.c         ctx->pix_fmt = AV_PIX_FMT_YUV422P;
ctx               163 libavcodec/dnxhddec.c         ctx->is_444 = 0;
ctx               164 libavcodec/dnxhddec.c         ctx->decode_dct_block = dnxhd_decode_dct_block_8;
ctx               166 libavcodec/dnxhddec.c         av_log(ctx->avctx, AV_LOG_ERROR, "invalid bit depth value (%d).\n",
ctx               170 libavcodec/dnxhddec.c     if (ctx->bit_depth != old_bit_depth) {
ctx               171 libavcodec/dnxhddec.c         ff_blockdsp_init(&ctx->bdsp, ctx->avctx);
ctx               172 libavcodec/dnxhddec.c         ff_idctdsp_init(&ctx->idsp, ctx->avctx);
ctx               176 libavcodec/dnxhddec.c     av_dlog(ctx->avctx, "compression id %d\n", cid);
ctx               178 libavcodec/dnxhddec.c     if ((ret = dnxhd_init_vlc(ctx, cid)) < 0)
ctx               183 libavcodec/dnxhddec.c     if (ctx->width != ctx->cid_table->width) {
ctx               184 libavcodec/dnxhddec.c         av_reduce(&ctx->avctx->sample_aspect_ratio.num,
ctx               185 libavcodec/dnxhddec.c                   &ctx->avctx->sample_aspect_ratio.den,
ctx               186 libavcodec/dnxhddec.c                   ctx->width, ctx->cid_table->width, 255);
ctx               187 libavcodec/dnxhddec.c         ctx->width = ctx->cid_table->width;
ctx               190 libavcodec/dnxhddec.c     if (buf_size < ctx->cid_table->coding_unit_size) {
ctx               191 libavcodec/dnxhddec.c         av_log(ctx->avctx, AV_LOG_ERROR, "incorrect frame size (%d < %d).\n",
ctx               192 libavcodec/dnxhddec.c                buf_size, ctx->cid_table->coding_unit_size);
ctx               196 libavcodec/dnxhddec.c     ctx->mb_width  = ctx->width >> 4;
ctx               197 libavcodec/dnxhddec.c     ctx->mb_height = buf[0x16d];
ctx               199 libavcodec/dnxhddec.c     av_dlog(ctx->avctx,
ctx               200 libavcodec/dnxhddec.c             "mb width %d, mb height %d\n", ctx->mb_width, ctx->mb_height);
ctx               202 libavcodec/dnxhddec.c     if ((ctx->height + 15) >> 4 == ctx->mb_height && frame->interlaced_frame)
ctx               203 libavcodec/dnxhddec.c         ctx->height <<= 1;
ctx               205 libavcodec/dnxhddec.c     if (ctx->mb_height > 68 ||
ctx               206 libavcodec/dnxhddec.c         (ctx->mb_height << frame->interlaced_frame) > (ctx->height + 15) >> 4) {
ctx               207 libavcodec/dnxhddec.c         av_log(ctx->avctx, AV_LOG_ERROR,
ctx               208 libavcodec/dnxhddec.c                "mb height too big: %d\n", ctx->mb_height);
ctx               212 libavcodec/dnxhddec.c     for (i = 0; i < ctx->mb_height; i++) {
ctx               213 libavcodec/dnxhddec.c         ctx->mb_scan_index[i] = AV_RB32(buf + 0x170 + (i << 2));
ctx               214 libavcodec/dnxhddec.c         av_dlog(ctx->avctx, "mb scan index %d\n", ctx->mb_scan_index[i]);
ctx               215 libavcodec/dnxhddec.c         if (buf_size < ctx->mb_scan_index[i] + 0x280LL) {
ctx               216 libavcodec/dnxhddec.c             av_log(ctx->avctx, AV_LOG_ERROR,
ctx               218 libavcodec/dnxhddec.c                    buf_size, ctx->mb_scan_index[i] + 0x280);
ctx               226 libavcodec/dnxhddec.c static av_always_inline void dnxhd_decode_dct_block(DNXHDContext *ctx,
ctx               237 libavcodec/dnxhddec.c     const uint8_t *ac_level = ctx->cid_table->ac_level;
ctx               238 libavcodec/dnxhddec.c     const uint8_t *ac_flags = ctx->cid_table->ac_flags;
ctx               239 libavcodec/dnxhddec.c     const int eob_index     = ctx->cid_table->eob_index;
ctx               240 libavcodec/dnxhddec.c     OPEN_READER(bs, &ctx->gb);
ctx               242 libavcodec/dnxhddec.c     if (!ctx->is_444) {
ctx               245 libavcodec/dnxhddec.c             scale = ctx->chroma_scale;
ctx               246 libavcodec/dnxhddec.c             weight_matrix = ctx->cid_table->chroma_weight;
ctx               249 libavcodec/dnxhddec.c             scale = ctx->luma_scale;
ctx               250 libavcodec/dnxhddec.c             weight_matrix = ctx->cid_table->luma_weight;
ctx               255 libavcodec/dnxhddec.c             scale = ctx->chroma_scale;
ctx               256 libavcodec/dnxhddec.c             weight_matrix = ctx->cid_table->chroma_weight;
ctx               258 libavcodec/dnxhddec.c             scale = ctx->luma_scale;
ctx               259 libavcodec/dnxhddec.c             weight_matrix = ctx->cid_table->luma_weight;
ctx               263 libavcodec/dnxhddec.c     UPDATE_CACHE(bs, &ctx->gb);
ctx               264 libavcodec/dnxhddec.c     GET_VLC(len, bs, &ctx->gb, ctx->dc_vlc.table, DNXHD_DC_VLC_BITS, 1);
ctx               266 libavcodec/dnxhddec.c         level = GET_CACHE(bs, &ctx->gb);
ctx               267 libavcodec/dnxhddec.c         LAST_SKIP_BITS(bs, &ctx->gb, len);
ctx               270 libavcodec/dnxhddec.c         ctx->last_dc[component] += level;
ctx               272 libavcodec/dnxhddec.c     block[0] = ctx->last_dc[component];
ctx               276 libavcodec/dnxhddec.c     UPDATE_CACHE(bs, &ctx->gb);
ctx               277 libavcodec/dnxhddec.c     GET_VLC(index1, bs, &ctx->gb, ctx->ac_vlc.table,
ctx               284 libavcodec/dnxhddec.c         sign = SHOW_SBITS(bs, &ctx->gb, 1);
ctx               285 libavcodec/dnxhddec.c         SKIP_BITS(bs, &ctx->gb, 1);
ctx               288 libavcodec/dnxhddec.c             level += SHOW_UBITS(bs, &ctx->gb, index_bits) << 7;
ctx               289 libavcodec/dnxhddec.c             SKIP_BITS(bs, &ctx->gb, index_bits);
ctx               293 libavcodec/dnxhddec.c             UPDATE_CACHE(bs, &ctx->gb);
ctx               294 libavcodec/dnxhddec.c             GET_VLC(index2, bs, &ctx->gb, ctx->run_vlc.table,
ctx               296 libavcodec/dnxhddec.c             i += ctx->cid_table->run[index2];
ctx               300 libavcodec/dnxhddec.c             av_log(ctx->avctx, AV_LOG_ERROR, "ac tex damaged %d, %d\n", n, i);
ctx               304 libavcodec/dnxhddec.c         j     = ctx->scantable.permutated[i];
ctx               312 libavcodec/dnxhddec.c         UPDATE_CACHE(bs, &ctx->gb);
ctx               313 libavcodec/dnxhddec.c         GET_VLC(index1, bs, &ctx->gb, ctx->ac_vlc.table,
ctx               317 libavcodec/dnxhddec.c     CLOSE_READER(bs, &ctx->gb);
ctx               320 libavcodec/dnxhddec.c static void dnxhd_decode_dct_block_8(DNXHDContext *ctx, int16_t *block,
ctx               323 libavcodec/dnxhddec.c     dnxhd_decode_dct_block(ctx, block, n, qscale, 4, 32, 6);
ctx               326 libavcodec/dnxhddec.c static void dnxhd_decode_dct_block_10(DNXHDContext *ctx, int16_t *block,
ctx               329 libavcodec/dnxhddec.c     dnxhd_decode_dct_block(ctx, block, n, qscale, 6, 8, 4);
ctx               332 libavcodec/dnxhddec.c static void dnxhd_decode_dct_block_10_444(DNXHDContext *ctx, int16_t *block,
ctx               335 libavcodec/dnxhddec.c     dnxhd_decode_dct_block(ctx, block, n, qscale, 6, 32, 6);
ctx               338 libavcodec/dnxhddec.c static int dnxhd_decode_macroblock(DNXHDContext *ctx, AVFrame *frame,
ctx               341 libavcodec/dnxhddec.c     int shift1 = ctx->bit_depth == 10;
ctx               348 libavcodec/dnxhddec.c     qscale = get_bits(&ctx->gb, 11);
ctx               349 libavcodec/dnxhddec.c     skip_bits1(&ctx->gb);
ctx               351 libavcodec/dnxhddec.c     if (qscale != ctx->last_qscale) {
ctx               353 libavcodec/dnxhddec.c             ctx->luma_scale[i]   = qscale * ctx->cid_table->luma_weight[i];
ctx               354 libavcodec/dnxhddec.c             ctx->chroma_scale[i] = qscale * ctx->cid_table->chroma_weight[i];
ctx               356 libavcodec/dnxhddec.c         ctx->last_qscale = qscale;
ctx               360 libavcodec/dnxhddec.c         ctx->bdsp.clear_block(ctx->blocks[i]);
ctx               361 libavcodec/dnxhddec.c         ctx->decode_dct_block(ctx, ctx->blocks[i], i, qscale);
ctx               363 libavcodec/dnxhddec.c     if (ctx->is_444) {
ctx               365 libavcodec/dnxhddec.c             ctx->bdsp.clear_block(ctx->blocks[i]);
ctx               366 libavcodec/dnxhddec.c             ctx->decode_dct_block(ctx, ctx->blocks[i], i, qscale);
ctx               376 libavcodec/dnxhddec.c     dest_u = frame->data[1] + ((y * dct_linesize_chroma) << 4) + (x << (3 + shift1 + ctx->is_444));
ctx               377 libavcodec/dnxhddec.c     dest_v = frame->data[2] + ((y * dct_linesize_chroma) << 4) + (x << (3 + shift1 + ctx->is_444));
ctx               379 libavcodec/dnxhddec.c     if (frame->interlaced_frame && ctx->cur_field) {
ctx               387 libavcodec/dnxhddec.c     if (!ctx->is_444) {
ctx               388 libavcodec/dnxhddec.c         ctx->idsp.idct_put(dest_y,                               dct_linesize_luma, ctx->blocks[0]);
ctx               389 libavcodec/dnxhddec.c         ctx->idsp.idct_put(dest_y + dct_x_offset,                dct_linesize_luma, ctx->blocks[1]);
ctx               390 libavcodec/dnxhddec.c         ctx->idsp.idct_put(dest_y + dct_y_offset,                dct_linesize_luma, ctx->blocks[4]);
ctx               391 libavcodec/dnxhddec.c         ctx->idsp.idct_put(dest_y + dct_y_offset + dct_x_offset, dct_linesize_luma, ctx->blocks[5]);
ctx               393 libavcodec/dnxhddec.c         if (!(ctx->avctx->flags & CODEC_FLAG_GRAY)) {
ctx               395 libavcodec/dnxhddec.c             ctx->idsp.idct_put(dest_u,                dct_linesize_chroma, ctx->blocks[2]);
ctx               396 libavcodec/dnxhddec.c             ctx->idsp.idct_put(dest_v,                dct_linesize_chroma, ctx->blocks[3]);
ctx               397 libavcodec/dnxhddec.c             ctx->idsp.idct_put(dest_u + dct_y_offset, dct_linesize_chroma, ctx->blocks[6]);
ctx               398 libavcodec/dnxhddec.c             ctx->idsp.idct_put(dest_v + dct_y_offset, dct_linesize_chroma, ctx->blocks[7]);
ctx               401 libavcodec/dnxhddec.c         ctx->idsp.idct_put(dest_y,                               dct_linesize_luma, ctx->blocks[0]);
ctx               402 libavcodec/dnxhddec.c         ctx->idsp.idct_put(dest_y + dct_x_offset,                dct_linesize_luma, ctx->blocks[1]);
ctx               403 libavcodec/dnxhddec.c         ctx->idsp.idct_put(dest_y + dct_y_offset,                dct_linesize_luma, ctx->blocks[6]);
ctx               404 libavcodec/dnxhddec.c         ctx->idsp.idct_put(dest_y + dct_y_offset + dct_x_offset, dct_linesize_luma, ctx->blocks[7]);
ctx               406 libavcodec/dnxhddec.c         if (!(ctx->avctx->flags & CODEC_FLAG_GRAY)) {
ctx               408 libavcodec/dnxhddec.c             ctx->idsp.idct_put(dest_u,                               dct_linesize_chroma, ctx->blocks[2]);
ctx               409 libavcodec/dnxhddec.c             ctx->idsp.idct_put(dest_u + dct_x_offset,                dct_linesize_chroma, ctx->blocks[3]);
ctx               410 libavcodec/dnxhddec.c             ctx->idsp.idct_put(dest_u + dct_y_offset,                dct_linesize_chroma, ctx->blocks[8]);
ctx               411 libavcodec/dnxhddec.c             ctx->idsp.idct_put(dest_u + dct_y_offset + dct_x_offset, dct_linesize_chroma, ctx->blocks[9]);
ctx               412 libavcodec/dnxhddec.c             ctx->idsp.idct_put(dest_v,                               dct_linesize_chroma, ctx->blocks[4]);
ctx               413 libavcodec/dnxhddec.c             ctx->idsp.idct_put(dest_v + dct_x_offset,                dct_linesize_chroma, ctx->blocks[5]);
ctx               414 libavcodec/dnxhddec.c             ctx->idsp.idct_put(dest_v + dct_y_offset,                dct_linesize_chroma, ctx->blocks[10]);
ctx               415 libavcodec/dnxhddec.c             ctx->idsp.idct_put(dest_v + dct_y_offset + dct_x_offset, dct_linesize_chroma, ctx->blocks[11]);
ctx               422 libavcodec/dnxhddec.c static int dnxhd_decode_macroblocks(DNXHDContext *ctx, AVFrame *frame,
ctx               426 libavcodec/dnxhddec.c     for (y = 0; y < ctx->mb_height; y++) {
ctx               427 libavcodec/dnxhddec.c         ctx->last_dc[0] =
ctx               428 libavcodec/dnxhddec.c         ctx->last_dc[1] =
ctx               429 libavcodec/dnxhddec.c         ctx->last_dc[2] = 1 << (ctx->bit_depth + 2); // for levels +2^(bitdepth-1)
ctx               430 libavcodec/dnxhddec.c         init_get_bits(&ctx->gb, buf + ctx->mb_scan_index[y], (buf_size - ctx->mb_scan_index[y]) << 3);
ctx               431 libavcodec/dnxhddec.c         for (x = 0; x < ctx->mb_width; x++) {
ctx               433 libavcodec/dnxhddec.c             dnxhd_decode_macroblock(ctx, frame, x, y);
ctx               445 libavcodec/dnxhddec.c     DNXHDContext *ctx = avctx->priv_data;
ctx               454 libavcodec/dnxhddec.c     if ((ret = dnxhd_decode_header(ctx, picture, buf, buf_size, first_field)) < 0)
ctx               458 libavcodec/dnxhddec.c         (ctx->width != avctx->width || ctx->height != avctx->height)) {
ctx               460 libavcodec/dnxhddec.c                avctx->width, avctx->height, ctx->width, ctx->height);
ctx               463 libavcodec/dnxhddec.c     if (avctx->pix_fmt != AV_PIX_FMT_NONE && avctx->pix_fmt != ctx->pix_fmt) {
ctx               465 libavcodec/dnxhddec.c                av_get_pix_fmt_name(avctx->pix_fmt), av_get_pix_fmt_name(ctx->pix_fmt));
ctx               469 libavcodec/dnxhddec.c     avctx->pix_fmt = ctx->pix_fmt;
ctx               470 libavcodec/dnxhddec.c     ret = ff_set_dimensions(avctx, ctx->width, ctx->height);
ctx               481 libavcodec/dnxhddec.c     dnxhd_decode_macroblocks(ctx, picture, buf + 0x280, buf_size - 0x280);
ctx               484 libavcodec/dnxhddec.c         buf      += ctx->cid_table->coding_unit_size;
ctx               485 libavcodec/dnxhddec.c         buf_size -= ctx->cid_table->coding_unit_size;
ctx               496 libavcodec/dnxhddec.c     DNXHDContext *ctx = avctx->priv_data;
ctx               498 libavcodec/dnxhddec.c     ff_free_vlc(&ctx->ac_vlc);
ctx               499 libavcodec/dnxhddec.c     ff_free_vlc(&ctx->dc_vlc);
ctx               500 libavcodec/dnxhddec.c     ff_free_vlc(&ctx->run_vlc);
ctx               105 libavcodec/dnxhdenc.c static int dnxhd_10bit_dct_quantize(MpegEncContext *ctx, int16_t *block,
ctx               108 libavcodec/dnxhdenc.c     const uint8_t *scantable= ctx->intra_scantable.scantable;
ctx               109 libavcodec/dnxhdenc.c     const int *qmat = n<4 ? ctx->q_intra_matrix[qscale] : ctx->q_chroma_intra_matrix[qscale];
ctx               113 libavcodec/dnxhdenc.c     ctx->fdsp.fdct(block);
ctx               131 libavcodec/dnxhdenc.c static av_cold int dnxhd_init_vlc(DNXHDEncContext *ctx)
ctx               134 libavcodec/dnxhdenc.c     int max_level = 1 << (ctx->cid_table->bit_depth + 2);
ctx               136 libavcodec/dnxhdenc.c     FF_ALLOCZ_ARRAY_OR_GOTO(ctx->m.avctx, ctx->vlc_codes,
ctx               137 libavcodec/dnxhdenc.c                       max_level, 4 * sizeof(*ctx->vlc_codes), fail);
ctx               138 libavcodec/dnxhdenc.c     FF_ALLOCZ_ARRAY_OR_GOTO(ctx->m.avctx, ctx->vlc_bits,
ctx               139 libavcodec/dnxhdenc.c                       max_level, 4 * sizeof(*ctx->vlc_bits), fail);
ctx               140 libavcodec/dnxhdenc.c     FF_ALLOCZ_OR_GOTO(ctx->m.avctx, ctx->run_codes,
ctx               142 libavcodec/dnxhdenc.c     FF_ALLOCZ_OR_GOTO(ctx->m.avctx, ctx->run_bits,
ctx               145 libavcodec/dnxhdenc.c     ctx->vlc_codes += max_level * 2;
ctx               146 libavcodec/dnxhdenc.c     ctx->vlc_bits  += max_level * 2;
ctx               158 libavcodec/dnxhdenc.c                 if (ctx->cid_table->ac_level[j] >> 1 == alevel &&
ctx               159 libavcodec/dnxhdenc.c                     (!offset || (ctx->cid_table->ac_flags[j] & 1) && offset) &&
ctx               160 libavcodec/dnxhdenc.c                     (!run    || (ctx->cid_table->ac_flags[j] & 2) && run)) {
ctx               161 libavcodec/dnxhdenc.c                     av_assert1(!ctx->vlc_codes[index]);
ctx               163 libavcodec/dnxhdenc.c                         ctx->vlc_codes[index] =
ctx               164 libavcodec/dnxhdenc.c                             (ctx->cid_table->ac_codes[j] << 1) | (sign & 1);
ctx               165 libavcodec/dnxhdenc.c                         ctx->vlc_bits[index] = ctx->cid_table->ac_bits[j] + 1;
ctx               167 libavcodec/dnxhdenc.c                         ctx->vlc_codes[index] = ctx->cid_table->ac_codes[j];
ctx               168 libavcodec/dnxhdenc.c                         ctx->vlc_bits[index]  = ctx->cid_table->ac_bits[j];
ctx               175 libavcodec/dnxhdenc.c                 ctx->vlc_codes[index] =
ctx               176 libavcodec/dnxhdenc.c                     (ctx->vlc_codes[index] << ctx->cid_table->index_bits) | offset;
ctx               177 libavcodec/dnxhdenc.c                 ctx->vlc_bits[index] += ctx->cid_table->index_bits;
ctx               182 libavcodec/dnxhdenc.c         int run = ctx->cid_table->run[i];
ctx               184 libavcodec/dnxhdenc.c         ctx->run_codes[run] = ctx->cid_table->run_codes[i];
ctx               185 libavcodec/dnxhdenc.c         ctx->run_bits[run]  = ctx->cid_table->run_bits[i];
ctx               192 libavcodec/dnxhdenc.c static av_cold int dnxhd_init_qmat(DNXHDEncContext *ctx, int lbias, int cbias)
ctx               197 libavcodec/dnxhdenc.c     const uint8_t *luma_weight_table   = ctx->cid_table->luma_weight;
ctx               198 libavcodec/dnxhdenc.c     const uint8_t *chroma_weight_table = ctx->cid_table->chroma_weight;
ctx               200 libavcodec/dnxhdenc.c     FF_ALLOCZ_ARRAY_OR_GOTO(ctx->m.avctx, ctx->qmatrix_l,
ctx               201 libavcodec/dnxhdenc.c                       (ctx->m.avctx->qmax + 1), 64 * sizeof(int), fail);
ctx               202 libavcodec/dnxhdenc.c     FF_ALLOCZ_ARRAY_OR_GOTO(ctx->m.avctx, ctx->qmatrix_c,
ctx               203 libavcodec/dnxhdenc.c                       (ctx->m.avctx->qmax + 1), 64 * sizeof(int), fail);
ctx               204 libavcodec/dnxhdenc.c     FF_ALLOCZ_ARRAY_OR_GOTO(ctx->m.avctx, ctx->qmatrix_l16,
ctx               205 libavcodec/dnxhdenc.c                       (ctx->m.avctx->qmax + 1), 64 * 2 * sizeof(uint16_t),
ctx               207 libavcodec/dnxhdenc.c     FF_ALLOCZ_ARRAY_OR_GOTO(ctx->m.avctx, ctx->qmatrix_c16,
ctx               208 libavcodec/dnxhdenc.c                       (ctx->m.avctx->qmax + 1), 64 * 2 * sizeof(uint16_t),
ctx               211 libavcodec/dnxhdenc.c     if (ctx->cid_table->bit_depth == 8) {
ctx               213 libavcodec/dnxhdenc.c             int j = ctx->m.idsp.idct_permutation[ff_zigzag_direct[i]];
ctx               214 libavcodec/dnxhdenc.c             weight_matrix[j] = ctx->cid_table->luma_weight[i];
ctx               216 libavcodec/dnxhdenc.c         ff_convert_matrix(&ctx->m, ctx->qmatrix_l, ctx->qmatrix_l16,
ctx               217 libavcodec/dnxhdenc.c                           weight_matrix, ctx->m.intra_quant_bias, 1,
ctx               218 libavcodec/dnxhdenc.c                           ctx->m.avctx->qmax, 1);
ctx               220 libavcodec/dnxhdenc.c             int j = ctx->m.idsp.idct_permutation[ff_zigzag_direct[i]];
ctx               221 libavcodec/dnxhdenc.c             weight_matrix[j] = ctx->cid_table->chroma_weight[i];
ctx               223 libavcodec/dnxhdenc.c         ff_convert_matrix(&ctx->m, ctx->qmatrix_c, ctx->qmatrix_c16,
ctx               224 libavcodec/dnxhdenc.c                           weight_matrix, ctx->m.intra_quant_bias, 1,
ctx               225 libavcodec/dnxhdenc.c                           ctx->m.avctx->qmax, 1);
ctx               227 libavcodec/dnxhdenc.c         for (qscale = 1; qscale <= ctx->m.avctx->qmax; qscale++) {
ctx               229 libavcodec/dnxhdenc.c                 ctx->qmatrix_l[qscale][i]      <<= 2;
ctx               230 libavcodec/dnxhdenc.c                 ctx->qmatrix_c[qscale][i]      <<= 2;
ctx               231 libavcodec/dnxhdenc.c                 ctx->qmatrix_l16[qscale][0][i] <<= 2;
ctx               232 libavcodec/dnxhdenc.c                 ctx->qmatrix_l16[qscale][1][i] <<= 2;
ctx               233 libavcodec/dnxhdenc.c                 ctx->qmatrix_c16[qscale][0][i] <<= 2;
ctx               234 libavcodec/dnxhdenc.c                 ctx->qmatrix_c16[qscale][1][i] <<= 2;
ctx               239 libavcodec/dnxhdenc.c         for (qscale = 1; qscale <= ctx->m.avctx->qmax; qscale++) {
ctx               241 libavcodec/dnxhdenc.c                 int j = ctx->m.idsp.idct_permutation[ff_zigzag_direct[i]];
ctx               254 libavcodec/dnxhdenc.c                 ctx->qmatrix_l[qscale][j] = (1 << (DNX10BIT_QMAT_SHIFT + 1)) /
ctx               256 libavcodec/dnxhdenc.c                 ctx->qmatrix_c[qscale][j] = (1 << (DNX10BIT_QMAT_SHIFT + 1)) /
ctx               262 libavcodec/dnxhdenc.c     ctx->m.q_chroma_intra_matrix16 = ctx->qmatrix_c16;
ctx               263 libavcodec/dnxhdenc.c     ctx->m.q_chroma_intra_matrix   = ctx->qmatrix_c;
ctx               264 libavcodec/dnxhdenc.c     ctx->m.q_intra_matrix16        = ctx->qmatrix_l16;
ctx               265 libavcodec/dnxhdenc.c     ctx->m.q_intra_matrix          = ctx->qmatrix_l;
ctx               272 libavcodec/dnxhdenc.c static av_cold int dnxhd_init_rc(DNXHDEncContext *ctx)
ctx               274 libavcodec/dnxhdenc.c     FF_ALLOCZ_ARRAY_OR_GOTO(ctx->m.avctx, ctx->mb_rc, (ctx->m.avctx->qmax + 1), 8160 * sizeof(RCEntry), fail);
ctx               275 libavcodec/dnxhdenc.c     if (ctx->m.avctx->mb_decision != FF_MB_DECISION_RD)
ctx               276 libavcodec/dnxhdenc.c         FF_ALLOCZ_ARRAY_OR_GOTO(ctx->m.avctx, ctx->mb_cmp,
ctx               277 libavcodec/dnxhdenc.c                           ctx->m.mb_num, sizeof(RCCMPEntry), fail);
ctx               279 libavcodec/dnxhdenc.c     ctx->frame_bits = (ctx->cid_table->coding_unit_size -
ctx               280 libavcodec/dnxhdenc.c                        640 - 4 - ctx->min_padding) * 8;
ctx               281 libavcodec/dnxhdenc.c     ctx->qscale = 1;
ctx               282 libavcodec/dnxhdenc.c     ctx->lambda = 2 << LAMBDA_FRAC_BITS; // qscale 2
ctx               290 libavcodec/dnxhdenc.c     DNXHDEncContext *ctx = avctx->priv_data;
ctx               306 libavcodec/dnxhdenc.c     ctx->cid = ff_dnxhd_find_cid(avctx, bit_depth);
ctx               307 libavcodec/dnxhdenc.c     if (!ctx->cid) {
ctx               313 libavcodec/dnxhdenc.c     av_log(avctx, AV_LOG_DEBUG, "cid %d\n", ctx->cid);
ctx               315 libavcodec/dnxhdenc.c     index = ff_dnxhd_get_cid_table(ctx->cid);
ctx               318 libavcodec/dnxhdenc.c     ctx->cid_table = &ff_dnxhd_cid_table[index];
ctx               320 libavcodec/dnxhdenc.c     ctx->m.avctx    = avctx;
ctx               321 libavcodec/dnxhdenc.c     ctx->m.mb_intra = 1;
ctx               322 libavcodec/dnxhdenc.c     ctx->m.h263_aic = 1;
ctx               324 libavcodec/dnxhdenc.c     avctx->bits_per_raw_sample = ctx->cid_table->bit_depth;
ctx               326 libavcodec/dnxhdenc.c     ff_blockdsp_init(&ctx->bdsp, avctx);
ctx               327 libavcodec/dnxhdenc.c     ff_fdctdsp_init(&ctx->m.fdsp, avctx);
ctx               328 libavcodec/dnxhdenc.c     ff_mpv_idct_init(&ctx->m);
ctx               329 libavcodec/dnxhdenc.c     ff_mpegvideoencdsp_init(&ctx->m.mpvencdsp, avctx);
ctx               330 libavcodec/dnxhdenc.c     ff_pixblockdsp_init(&ctx->m.pdsp, avctx);
ctx               331 libavcodec/dnxhdenc.c     ff_dct_encode_init(&ctx->m);
ctx               333 libavcodec/dnxhdenc.c     if (!ctx->m.dct_quantize)
ctx               334 libavcodec/dnxhdenc.c         ctx->m.dct_quantize = ff_dct_quantize_c;
ctx               336 libavcodec/dnxhdenc.c     if (ctx->cid_table->bit_depth == 10) {
ctx               337 libavcodec/dnxhdenc.c         ctx->m.dct_quantize     = dnxhd_10bit_dct_quantize;
ctx               338 libavcodec/dnxhdenc.c         ctx->get_pixels_8x4_sym = dnxhd_10bit_get_pixels_8x4_sym;
ctx               339 libavcodec/dnxhdenc.c         ctx->block_width_l2     = 4;
ctx               341 libavcodec/dnxhdenc.c         ctx->get_pixels_8x4_sym = dnxhd_8bit_get_pixels_8x4_sym;
ctx               342 libavcodec/dnxhdenc.c         ctx->block_width_l2     = 3;
ctx               346 libavcodec/dnxhdenc.c         ff_dnxhdenc_init_x86(ctx);
ctx               348 libavcodec/dnxhdenc.c     ctx->m.mb_height = (avctx->height + 15) / 16;
ctx               349 libavcodec/dnxhdenc.c     ctx->m.mb_width  = (avctx->width  + 15) / 16;
ctx               352 libavcodec/dnxhdenc.c         ctx->interlaced   = 1;
ctx               353 libavcodec/dnxhdenc.c         ctx->m.mb_height /= 2;
ctx               356 libavcodec/dnxhdenc.c     ctx->m.mb_num = ctx->m.mb_height * ctx->m.mb_width;
ctx               359 libavcodec/dnxhdenc.c         ctx->m.intra_quant_bias = avctx->intra_quant_bias;
ctx               361 libavcodec/dnxhdenc.c     if ((ret = dnxhd_init_qmat(ctx, ctx->m.intra_quant_bias, 0)) < 0)
ctx               366 libavcodec/dnxhdenc.c     if (ctx->nitris_compat)
ctx               367 libavcodec/dnxhdenc.c         ctx->min_padding = 1600;
ctx               369 libavcodec/dnxhdenc.c     if ((ret = dnxhd_init_vlc(ctx)) < 0)
ctx               371 libavcodec/dnxhdenc.c     if ((ret = dnxhd_init_rc(ctx)) < 0)
ctx               374 libavcodec/dnxhdenc.c     FF_ALLOCZ_OR_GOTO(ctx->m.avctx, ctx->slice_size,
ctx               375 libavcodec/dnxhdenc.c                       ctx->m.mb_height * sizeof(uint32_t), fail);
ctx               376 libavcodec/dnxhdenc.c     FF_ALLOCZ_OR_GOTO(ctx->m.avctx, ctx->slice_offs,
ctx               377 libavcodec/dnxhdenc.c                       ctx->m.mb_height * sizeof(uint32_t), fail);
ctx               378 libavcodec/dnxhdenc.c     FF_ALLOCZ_OR_GOTO(ctx->m.avctx, ctx->mb_bits,
ctx               379 libavcodec/dnxhdenc.c                       ctx->m.mb_num * sizeof(uint16_t), fail);
ctx               380 libavcodec/dnxhdenc.c     FF_ALLOCZ_OR_GOTO(ctx->m.avctx, ctx->mb_qscale,
ctx               381 libavcodec/dnxhdenc.c                       ctx->m.mb_num * sizeof(uint8_t), fail);
ctx               400 libavcodec/dnxhdenc.c     ctx->thread[0] = ctx;
ctx               402 libavcodec/dnxhdenc.c         ctx->thread[i] = av_malloc(sizeof(DNXHDEncContext));
ctx               403 libavcodec/dnxhdenc.c         memcpy(ctx->thread[i], ctx, sizeof(DNXHDEncContext));
ctx               413 libavcodec/dnxhdenc.c     DNXHDEncContext *ctx = avctx->priv_data;
ctx               419 libavcodec/dnxhdenc.c     buf[5] = ctx->interlaced ? ctx->cur_field + 2 : 0x01;
ctx               422 libavcodec/dnxhdenc.c     AV_WB16(buf + 0x18, avctx->height >> ctx->interlaced); // ALPF
ctx               424 libavcodec/dnxhdenc.c     AV_WB16(buf + 0x1d, avctx->height >> ctx->interlaced); // NAL
ctx               426 libavcodec/dnxhdenc.c     buf[0x21] = ctx->cid_table->bit_depth == 10 ? 0x58 : 0x38;
ctx               427 libavcodec/dnxhdenc.c     buf[0x22] = 0x88 + (ctx->interlaced << 2);
ctx               428 libavcodec/dnxhdenc.c     AV_WB32(buf + 0x28, ctx->cid); // CID
ctx               429 libavcodec/dnxhdenc.c     buf[0x2c] = ctx->interlaced ? 0 : 0x80;
ctx               434 libavcodec/dnxhdenc.c     AV_WB16(buf + 0x16a, ctx->m.mb_height * 4 + 4); // MSIPS
ctx               435 libavcodec/dnxhdenc.c     buf[0x16d] = ctx->m.mb_height; // Ns
ctx               438 libavcodec/dnxhdenc.c     ctx->msip = buf + 0x170;
ctx               442 libavcodec/dnxhdenc.c static av_always_inline void dnxhd_encode_dc(DNXHDEncContext *ctx, int diff)
ctx               451 libavcodec/dnxhdenc.c     put_bits(&ctx->m.pb, ctx->cid_table->dc_bits[nbits] + nbits,
ctx               452 libavcodec/dnxhdenc.c              (ctx->cid_table->dc_codes[nbits] << nbits) +
ctx               457 libavcodec/dnxhdenc.c void dnxhd_encode_block(DNXHDEncContext *ctx, int16_t *block,
ctx               463 libavcodec/dnxhdenc.c     dnxhd_encode_dc(ctx, block[0] - ctx->m.last_dc[n]);
ctx               464 libavcodec/dnxhdenc.c     ctx->m.last_dc[n] = block[0];
ctx               467 libavcodec/dnxhdenc.c         j = ctx->m.intra_scantable.permutated[i];
ctx               472 libavcodec/dnxhdenc.c             put_bits(&ctx->m.pb, ctx->vlc_bits[rlevel], ctx->vlc_codes[rlevel]);
ctx               474 libavcodec/dnxhdenc.c                 put_bits(&ctx->m.pb, ctx->run_bits[run_level],
ctx               475 libavcodec/dnxhdenc.c                          ctx->run_codes[run_level]);
ctx               479 libavcodec/dnxhdenc.c     put_bits(&ctx->m.pb, ctx->vlc_bits[0], ctx->vlc_codes[0]); // EOB
ctx               483 libavcodec/dnxhdenc.c void dnxhd_unquantize_c(DNXHDEncContext *ctx, int16_t *block, int n,
ctx               490 libavcodec/dnxhdenc.c     weight_matrix = (n & 2) ? ctx->cid_table->chroma_weight
ctx               491 libavcodec/dnxhdenc.c                             : ctx->cid_table->luma_weight;
ctx               494 libavcodec/dnxhdenc.c         int j = ctx->m.intra_scantable.permutated[i];
ctx               499 libavcodec/dnxhdenc.c                 if (ctx->cid_table->bit_depth == 10) {
ctx               511 libavcodec/dnxhdenc.c                 if (ctx->cid_table->bit_depth == 10) {
ctx               536 libavcodec/dnxhdenc.c int dnxhd_calc_ac_bits(DNXHDEncContext *ctx, int16_t *block, int last_index)
ctx               542 libavcodec/dnxhdenc.c         j = ctx->m.intra_scantable.permutated[i];
ctx               546 libavcodec/dnxhdenc.c             bits += ctx->vlc_bits[(level << 1) |
ctx               547 libavcodec/dnxhdenc.c                     !!run_level] + ctx->run_bits[run_level];
ctx               555 libavcodec/dnxhdenc.c void dnxhd_get_blocks(DNXHDEncContext *ctx, int mb_x, int mb_y)
ctx               557 libavcodec/dnxhdenc.c     const int bs = ctx->block_width_l2;
ctx               559 libavcodec/dnxhdenc.c     const uint8_t *ptr_y = ctx->thread[0]->src[0] +
ctx               560 libavcodec/dnxhdenc.c                            ((mb_y << 4) * ctx->m.linesize) + (mb_x << bs + 1);
ctx               561 libavcodec/dnxhdenc.c     const uint8_t *ptr_u = ctx->thread[0]->src[1] +
ctx               562 libavcodec/dnxhdenc.c                            ((mb_y << 4) * ctx->m.uvlinesize) + (mb_x << bs);
ctx               563 libavcodec/dnxhdenc.c     const uint8_t *ptr_v = ctx->thread[0]->src[2] +
ctx               564 libavcodec/dnxhdenc.c                            ((mb_y << 4) * ctx->m.uvlinesize) + (mb_x << bs);
ctx               565 libavcodec/dnxhdenc.c     PixblockDSPContext *pdsp = &ctx->m.pdsp;
ctx               567 libavcodec/dnxhdenc.c     pdsp->get_pixels(ctx->blocks[0], ptr_y,      ctx->m.linesize);
ctx               568 libavcodec/dnxhdenc.c     pdsp->get_pixels(ctx->blocks[1], ptr_y + bw, ctx->m.linesize);
ctx               569 libavcodec/dnxhdenc.c     pdsp->get_pixels(ctx->blocks[2], ptr_u,      ctx->m.uvlinesize);
ctx               570 libavcodec/dnxhdenc.c     pdsp->get_pixels(ctx->blocks[3], ptr_v,      ctx->m.uvlinesize);
ctx               572 libavcodec/dnxhdenc.c     if (mb_y + 1 == ctx->m.mb_height && ctx->m.avctx->height == 1080) {
ctx               573 libavcodec/dnxhdenc.c         if (ctx->interlaced) {
ctx               574 libavcodec/dnxhdenc.c             ctx->get_pixels_8x4_sym(ctx->blocks[4],
ctx               575 libavcodec/dnxhdenc.c                                     ptr_y + ctx->dct_y_offset,
ctx               576 libavcodec/dnxhdenc.c                                     ctx->m.linesize);
ctx               577 libavcodec/dnxhdenc.c             ctx->get_pixels_8x4_sym(ctx->blocks[5],
ctx               578 libavcodec/dnxhdenc.c                                     ptr_y + ctx->dct_y_offset + bw,
ctx               579 libavcodec/dnxhdenc.c                                     ctx->m.linesize);
ctx               580 libavcodec/dnxhdenc.c             ctx->get_pixels_8x4_sym(ctx->blocks[6],
ctx               581 libavcodec/dnxhdenc.c                                     ptr_u + ctx->dct_uv_offset,
ctx               582 libavcodec/dnxhdenc.c                                     ctx->m.uvlinesize);
ctx               583 libavcodec/dnxhdenc.c             ctx->get_pixels_8x4_sym(ctx->blocks[7],
ctx               584 libavcodec/dnxhdenc.c                                     ptr_v + ctx->dct_uv_offset,
ctx               585 libavcodec/dnxhdenc.c                                     ctx->m.uvlinesize);
ctx               587 libavcodec/dnxhdenc.c             ctx->bdsp.clear_block(ctx->blocks[4]);
ctx               588 libavcodec/dnxhdenc.c             ctx->bdsp.clear_block(ctx->blocks[5]);
ctx               589 libavcodec/dnxhdenc.c             ctx->bdsp.clear_block(ctx->blocks[6]);
ctx               590 libavcodec/dnxhdenc.c             ctx->bdsp.clear_block(ctx->blocks[7]);
ctx               593 libavcodec/dnxhdenc.c         pdsp->get_pixels(ctx->blocks[4],
ctx               594 libavcodec/dnxhdenc.c                          ptr_y + ctx->dct_y_offset, ctx->m.linesize);
ctx               595 libavcodec/dnxhdenc.c         pdsp->get_pixels(ctx->blocks[5],
ctx               596 libavcodec/dnxhdenc.c                          ptr_y + ctx->dct_y_offset + bw, ctx->m.linesize);
ctx               597 libavcodec/dnxhdenc.c         pdsp->get_pixels(ctx->blocks[6],
ctx               598 libavcodec/dnxhdenc.c                          ptr_u + ctx->dct_uv_offset, ctx->m.uvlinesize);
ctx               599 libavcodec/dnxhdenc.c         pdsp->get_pixels(ctx->blocks[7],
ctx               600 libavcodec/dnxhdenc.c                          ptr_v + ctx->dct_uv_offset, ctx->m.uvlinesize);
ctx               605 libavcodec/dnxhdenc.c int dnxhd_switch_matrix(DNXHDEncContext *ctx, int i)
ctx               614 libavcodec/dnxhdenc.c     DNXHDEncContext *ctx = avctx->priv_data;
ctx               616 libavcodec/dnxhdenc.c     int qscale = ctx->qscale;
ctx               618 libavcodec/dnxhdenc.c     ctx = ctx->thread[threadnr];
ctx               620 libavcodec/dnxhdenc.c     ctx->m.last_dc[0] =
ctx               621 libavcodec/dnxhdenc.c     ctx->m.last_dc[1] =
ctx               622 libavcodec/dnxhdenc.c     ctx->m.last_dc[2] = 1 << (ctx->cid_table->bit_depth + 2);
ctx               624 libavcodec/dnxhdenc.c     for (mb_x = 0; mb_x < ctx->m.mb_width; mb_x++) {
ctx               625 libavcodec/dnxhdenc.c         unsigned mb = mb_y * ctx->m.mb_width + mb_x;
ctx               631 libavcodec/dnxhdenc.c         dnxhd_get_blocks(ctx, mb_x, mb_y);
ctx               634 libavcodec/dnxhdenc.c             int16_t *src_block = ctx->blocks[i];
ctx               636 libavcodec/dnxhdenc.c             int n = dnxhd_switch_matrix(ctx, i);
ctx               639 libavcodec/dnxhdenc.c             last_index = ctx->m.dct_quantize(&ctx->m, block, 4 & (2*i),
ctx               641 libavcodec/dnxhdenc.c             ac_bits   += dnxhd_calc_ac_bits(ctx, block, last_index);
ctx               643 libavcodec/dnxhdenc.c             diff = block[0] - ctx->m.last_dc[n];
ctx               649 libavcodec/dnxhdenc.c             av_assert1(nbits < ctx->cid_table->bit_depth + 4);
ctx               650 libavcodec/dnxhdenc.c             dc_bits += ctx->cid_table->dc_bits[nbits] + nbits;
ctx               652 libavcodec/dnxhdenc.c             ctx->m.last_dc[n] = block[0];
ctx               655 libavcodec/dnxhdenc.c                 dnxhd_unquantize_c(ctx, block, i, qscale, last_index);
ctx               656 libavcodec/dnxhdenc.c                 ctx->m.idsp.idct(block);
ctx               660 libavcodec/dnxhdenc.c         ctx->mb_rc[qscale][mb].ssd  = ssd;
ctx               661 libavcodec/dnxhdenc.c         ctx->mb_rc[qscale][mb].bits = ac_bits + dc_bits + 12 +
ctx               662 libavcodec/dnxhdenc.c                                       8 * ctx->vlc_bits[0];
ctx               670 libavcodec/dnxhdenc.c     DNXHDEncContext *ctx = avctx->priv_data;
ctx               672 libavcodec/dnxhdenc.c     ctx = ctx->thread[threadnr];
ctx               673 libavcodec/dnxhdenc.c     init_put_bits(&ctx->m.pb, (uint8_t *)arg + 640 + ctx->slice_offs[jobnr],
ctx               674 libavcodec/dnxhdenc.c                   ctx->slice_size[jobnr]);
ctx               676 libavcodec/dnxhdenc.c     ctx->m.last_dc[0] =
ctx               677 libavcodec/dnxhdenc.c     ctx->m.last_dc[1] =
ctx               678 libavcodec/dnxhdenc.c     ctx->m.last_dc[2] = 1 << (ctx->cid_table->bit_depth + 2);
ctx               679 libavcodec/dnxhdenc.c     for (mb_x = 0; mb_x < ctx->m.mb_width; mb_x++) {
ctx               680 libavcodec/dnxhdenc.c         unsigned mb = mb_y * ctx->m.mb_width + mb_x;
ctx               681 libavcodec/dnxhdenc.c         int qscale = ctx->mb_qscale[mb];
ctx               684 libavcodec/dnxhdenc.c         put_bits(&ctx->m.pb, 12, qscale << 1);
ctx               686 libavcodec/dnxhdenc.c         dnxhd_get_blocks(ctx, mb_x, mb_y);
ctx               689 libavcodec/dnxhdenc.c             int16_t *block = ctx->blocks[i];
ctx               690 libavcodec/dnxhdenc.c             int overflow, n = dnxhd_switch_matrix(ctx, i);
ctx               691 libavcodec/dnxhdenc.c             int last_index = ctx->m.dct_quantize(&ctx->m, block, 4 & (2*i),
ctx               694 libavcodec/dnxhdenc.c             dnxhd_encode_block(ctx, block, last_index, n);
ctx               698 libavcodec/dnxhdenc.c     if (put_bits_count(&ctx->m.pb) & 31)
ctx               699 libavcodec/dnxhdenc.c         put_bits(&ctx->m.pb, 32 - (put_bits_count(&ctx->m.pb) & 31), 0);
ctx               700 libavcodec/dnxhdenc.c     flush_put_bits(&ctx->m.pb);
ctx               704 libavcodec/dnxhdenc.c static void dnxhd_setup_threads_slices(DNXHDEncContext *ctx)
ctx               708 libavcodec/dnxhdenc.c     for (mb_y = 0; mb_y < ctx->m.mb_height; mb_y++) {
ctx               710 libavcodec/dnxhdenc.c         ctx->slice_offs[mb_y] = offset;
ctx               711 libavcodec/dnxhdenc.c         ctx->slice_size[mb_y] = 0;
ctx               712 libavcodec/dnxhdenc.c         for (mb_x = 0; mb_x < ctx->m.mb_width; mb_x++) {
ctx               713 libavcodec/dnxhdenc.c             unsigned mb = mb_y * ctx->m.mb_width + mb_x;
ctx               714 libavcodec/dnxhdenc.c             ctx->slice_size[mb_y] += ctx->mb_bits[mb];
ctx               716 libavcodec/dnxhdenc.c         ctx->slice_size[mb_y]   = (ctx->slice_size[mb_y] + 31) & ~31;
ctx               717 libavcodec/dnxhdenc.c         ctx->slice_size[mb_y] >>= 3;
ctx               718 libavcodec/dnxhdenc.c         thread_size = ctx->slice_size[mb_y];
ctx               726 libavcodec/dnxhdenc.c     DNXHDEncContext *ctx = avctx->priv_data;
ctx               728 libavcodec/dnxhdenc.c     int partial_last_row = (mb_y == ctx->m.mb_height - 1) &&
ctx               729 libavcodec/dnxhdenc.c                            ((avctx->height >> ctx->interlaced) & 0xF);
ctx               731 libavcodec/dnxhdenc.c     ctx = ctx->thread[threadnr];
ctx               732 libavcodec/dnxhdenc.c     if (ctx->cid_table->bit_depth == 8) {
ctx               733 libavcodec/dnxhdenc.c         uint8_t *pix = ctx->thread[0]->src[0] + ((mb_y << 4) * ctx->m.linesize);
ctx               734 libavcodec/dnxhdenc.c         for (mb_x = 0; mb_x < ctx->m.mb_width; ++mb_x, pix += 16) {
ctx               735 libavcodec/dnxhdenc.c             unsigned mb = mb_y * ctx->m.mb_width + mb_x;
ctx               740 libavcodec/dnxhdenc.c                 sum  = ctx->m.mpvencdsp.pix_sum(pix, ctx->m.linesize);
ctx               741 libavcodec/dnxhdenc.c                 varc = ctx->m.mpvencdsp.pix_norm1(pix, ctx->m.linesize);
ctx               744 libavcodec/dnxhdenc.c                 int bh = FFMIN((avctx->height >> ctx->interlaced) - 16 * mb_y, 16);
ctx               748 libavcodec/dnxhdenc.c                         uint8_t val = pix[x + y * ctx->m.linesize];
ctx               756 libavcodec/dnxhdenc.c             ctx->mb_cmp[mb].value = varc;
ctx               757 libavcodec/dnxhdenc.c             ctx->mb_cmp[mb].mb    = mb;
ctx               760 libavcodec/dnxhdenc.c         int const linesize = ctx->m.linesize >> 1;
ctx               761 libavcodec/dnxhdenc.c         for (mb_x = 0; mb_x < ctx->m.mb_width; ++mb_x) {
ctx               762 libavcodec/dnxhdenc.c             uint16_t *pix = (uint16_t *)ctx->thread[0]->src[0] +
ctx               764 libavcodec/dnxhdenc.c             unsigned mb  = mb_y * ctx->m.mb_width + mb_x;
ctx               782 libavcodec/dnxhdenc.c             ctx->mb_cmp[mb].value = sqmean - mean * mean;
ctx               783 libavcodec/dnxhdenc.c             ctx->mb_cmp[mb].mb    = mb;
ctx               789 libavcodec/dnxhdenc.c static int dnxhd_encode_rdo(AVCodecContext *avctx, DNXHDEncContext *ctx)
ctx               796 libavcodec/dnxhdenc.c         ctx->qscale = q;
ctx               798 libavcodec/dnxhdenc.c                         NULL, NULL, ctx->m.mb_height);
ctx               801 libavcodec/dnxhdenc.c     lambda  = ctx->lambda;
ctx               810 libavcodec/dnxhdenc.c         for (y = 0; y < ctx->m.mb_height; y++) {
ctx               811 libavcodec/dnxhdenc.c             for (x = 0; x < ctx->m.mb_width; x++) {
ctx               814 libavcodec/dnxhdenc.c                 int mb     = y * ctx->m.mb_width + x;
ctx               816 libavcodec/dnxhdenc.c                     unsigned score = ctx->mb_rc[q][mb].bits * lambda +
ctx               817 libavcodec/dnxhdenc.c                                      ((unsigned) ctx->mb_rc[q][mb].ssd << LAMBDA_FRAC_BITS);
ctx               823 libavcodec/dnxhdenc.c                 bits += ctx->mb_rc[qscale][mb].bits;
ctx               824 libavcodec/dnxhdenc.c                 ctx->mb_qscale[mb] = qscale;
ctx               825 libavcodec/dnxhdenc.c                 ctx->mb_bits[mb]   = ctx->mb_rc[qscale][mb].bits;
ctx               828 libavcodec/dnxhdenc.c             if (bits > ctx->frame_bits)
ctx               835 libavcodec/dnxhdenc.c             if (bits > ctx->frame_bits)
ctx               839 libavcodec/dnxhdenc.c         if (bits < ctx->frame_bits) {
ctx               863 libavcodec/dnxhdenc.c     ctx->lambda = lambda;
ctx               867 libavcodec/dnxhdenc.c static int dnxhd_find_qscale(DNXHDEncContext *ctx)
ctx               877 libavcodec/dnxhdenc.c     qscale = ctx->qscale;
ctx               880 libavcodec/dnxhdenc.c         ctx->qscale = qscale;
ctx               882 libavcodec/dnxhdenc.c         ctx->m.avctx->execute2(ctx->m.avctx, dnxhd_calc_bits_thread,
ctx               883 libavcodec/dnxhdenc.c                                NULL, NULL, ctx->m.mb_height);
ctx               884 libavcodec/dnxhdenc.c         for (y = 0; y < ctx->m.mb_height; y++) {
ctx               885 libavcodec/dnxhdenc.c             for (x = 0; x < ctx->m.mb_width; x++)
ctx               886 libavcodec/dnxhdenc.c                 bits += ctx->mb_rc[qscale][y*ctx->m.mb_width+x].bits;
ctx               888 libavcodec/dnxhdenc.c             if (bits > ctx->frame_bits)
ctx               895 libavcodec/dnxhdenc.c         if (bits < ctx->frame_bits) {
ctx               919 libavcodec/dnxhdenc.c             if (qscale >= ctx->m.avctx->qmax)
ctx               924 libavcodec/dnxhdenc.c     ctx->qscale = qscale;
ctx               986 libavcodec/dnxhdenc.c static int dnxhd_encode_fast(AVCodecContext *avctx, DNXHDEncContext *ctx)
ctx               990 libavcodec/dnxhdenc.c     if ((ret = dnxhd_find_qscale(ctx)) < 0)
ctx               992 libavcodec/dnxhdenc.c     for (y = 0; y < ctx->m.mb_height; y++) {
ctx               993 libavcodec/dnxhdenc.c         for (x = 0; x < ctx->m.mb_width; x++) {
ctx               994 libavcodec/dnxhdenc.c             int mb = y * ctx->m.mb_width + x;
ctx               996 libavcodec/dnxhdenc.c             ctx->mb_qscale[mb] = ctx->qscale;
ctx               997 libavcodec/dnxhdenc.c             ctx->mb_bits[mb] = ctx->mb_rc[ctx->qscale][mb].bits;
ctx               998 libavcodec/dnxhdenc.c             max_bits += ctx->mb_rc[ctx->qscale][mb].bits;
ctx              1000 libavcodec/dnxhdenc.c                 delta_bits = ctx->mb_rc[ctx->qscale][mb].bits -
ctx              1001 libavcodec/dnxhdenc.c                              ctx->mb_rc[ctx->qscale + 1][mb].bits;
ctx              1002 libavcodec/dnxhdenc.c                 ctx->mb_cmp[mb].mb = mb;
ctx              1003 libavcodec/dnxhdenc.c                 ctx->mb_cmp[mb].value =
ctx              1004 libavcodec/dnxhdenc.c                     delta_bits ? ((ctx->mb_rc[ctx->qscale][mb].ssd -
ctx              1005 libavcodec/dnxhdenc.c                                    ctx->mb_rc[ctx->qscale + 1][mb].ssd) * 100) /
ctx              1015 libavcodec/dnxhdenc.c                             NULL, NULL, ctx->m.mb_height);
ctx              1016 libavcodec/dnxhdenc.c         radix_sort(ctx->mb_cmp, ctx->m.mb_num);
ctx              1017 libavcodec/dnxhdenc.c         for (x = 0; x < ctx->m.mb_num && max_bits > ctx->frame_bits; x++) {
ctx              1018 libavcodec/dnxhdenc.c             int mb = ctx->mb_cmp[x].mb;
ctx              1019 libavcodec/dnxhdenc.c             max_bits -= ctx->mb_rc[ctx->qscale][mb].bits -
ctx              1020 libavcodec/dnxhdenc.c                         ctx->mb_rc[ctx->qscale + 1][mb].bits;
ctx              1021 libavcodec/dnxhdenc.c             ctx->mb_qscale[mb] = ctx->qscale + 1;
ctx              1022 libavcodec/dnxhdenc.c             ctx->mb_bits[mb]   = ctx->mb_rc[ctx->qscale + 1][mb].bits;
ctx              1028 libavcodec/dnxhdenc.c static void dnxhd_load_picture(DNXHDEncContext *ctx, const AVFrame *frame)
ctx              1032 libavcodec/dnxhdenc.c     for (i = 0; i < ctx->m.avctx->thread_count; i++) {
ctx              1033 libavcodec/dnxhdenc.c         ctx->thread[i]->m.linesize    = frame->linesize[0] << ctx->interlaced;
ctx              1034 libavcodec/dnxhdenc.c         ctx->thread[i]->m.uvlinesize  = frame->linesize[1] << ctx->interlaced;
ctx              1035 libavcodec/dnxhdenc.c         ctx->thread[i]->dct_y_offset  = ctx->m.linesize  *8;
ctx              1036 libavcodec/dnxhdenc.c         ctx->thread[i]->dct_uv_offset = ctx->m.uvlinesize*8;
ctx              1039 libavcodec/dnxhdenc.c     ctx->m.avctx->coded_frame->interlaced_frame = frame->interlaced_frame;
ctx              1040 libavcodec/dnxhdenc.c     ctx->cur_field = frame->interlaced_frame && !frame->top_field_first;
ctx              1046 libavcodec/dnxhdenc.c     DNXHDEncContext *ctx = avctx->priv_data;
ctx              1051 libavcodec/dnxhdenc.c     if ((ret = ff_alloc_packet2(avctx, pkt, ctx->cid_table->frame_size)) < 0)
ctx              1055 libavcodec/dnxhdenc.c     dnxhd_load_picture(ctx, frame);
ctx              1059 libavcodec/dnxhdenc.c         ctx->src[i] = frame->data[i];
ctx              1060 libavcodec/dnxhdenc.c         if (ctx->interlaced && ctx->cur_field)
ctx              1061 libavcodec/dnxhdenc.c             ctx->src[i] += frame->linesize[i];
ctx              1067 libavcodec/dnxhdenc.c         ret = dnxhd_encode_rdo(avctx, ctx);
ctx              1069 libavcodec/dnxhdenc.c         ret = dnxhd_encode_fast(avctx, ctx);
ctx              1076 libavcodec/dnxhdenc.c     dnxhd_setup_threads_slices(ctx);
ctx              1079 libavcodec/dnxhdenc.c     for (i = 0; i < ctx->m.mb_height; i++) {
ctx              1080 libavcodec/dnxhdenc.c         AV_WB32(ctx->msip + i * 4, offset);
ctx              1081 libavcodec/dnxhdenc.c         offset += ctx->slice_size[i];
ctx              1082 libavcodec/dnxhdenc.c         av_assert1(!(ctx->slice_size[i] & 3));
ctx              1085 libavcodec/dnxhdenc.c     avctx->execute2(avctx, dnxhd_encode_thread, buf, NULL, ctx->m.mb_height);
ctx              1087 libavcodec/dnxhdenc.c     av_assert1(640 + offset + 4 <= ctx->cid_table->coding_unit_size);
ctx              1089 libavcodec/dnxhdenc.c            ctx->cid_table->coding_unit_size - 4 - offset - 640);
ctx              1091 libavcodec/dnxhdenc.c     AV_WB32(buf + ctx->cid_table->coding_unit_size - 4, 0x600DC0DE); // EOF
ctx              1093 libavcodec/dnxhdenc.c     if (ctx->interlaced && first_field) {
ctx              1095 libavcodec/dnxhdenc.c         ctx->cur_field ^= 1;
ctx              1096 libavcodec/dnxhdenc.c         buf            += ctx->cid_table->coding_unit_size;
ctx              1100 libavcodec/dnxhdenc.c     avctx->coded_frame->quality = ctx->qscale * FF_QP2LAMBDA;
ctx              1109 libavcodec/dnxhdenc.c     DNXHDEncContext *ctx = avctx->priv_data;
ctx              1110 libavcodec/dnxhdenc.c     int max_level        = 1 << (ctx->cid_table->bit_depth + 2);
ctx              1113 libavcodec/dnxhdenc.c     av_free(ctx->vlc_codes - max_level * 2);
ctx              1114 libavcodec/dnxhdenc.c     av_free(ctx->vlc_bits - max_level * 2);
ctx              1115 libavcodec/dnxhdenc.c     av_freep(&ctx->run_codes);
ctx              1116 libavcodec/dnxhdenc.c     av_freep(&ctx->run_bits);
ctx              1118 libavcodec/dnxhdenc.c     av_freep(&ctx->mb_bits);
ctx              1119 libavcodec/dnxhdenc.c     av_freep(&ctx->mb_qscale);
ctx              1120 libavcodec/dnxhdenc.c     av_freep(&ctx->mb_rc);
ctx              1121 libavcodec/dnxhdenc.c     av_freep(&ctx->mb_cmp);
ctx              1122 libavcodec/dnxhdenc.c     av_freep(&ctx->slice_size);
ctx              1123 libavcodec/dnxhdenc.c     av_freep(&ctx->slice_offs);
ctx              1125 libavcodec/dnxhdenc.c     av_freep(&ctx->qmatrix_c);
ctx              1126 libavcodec/dnxhdenc.c     av_freep(&ctx->qmatrix_l);
ctx              1127 libavcodec/dnxhdenc.c     av_freep(&ctx->qmatrix_c16);
ctx              1128 libavcodec/dnxhdenc.c     av_freep(&ctx->qmatrix_l16);
ctx              1131 libavcodec/dnxhdenc.c         av_freep(&ctx->thread[i]);
ctx                97 libavcodec/dnxhdenc.h void ff_dnxhdenc_init_x86(DNXHDEncContext *ctx);
ctx               185 libavcodec/dv.c int ff_dv_init_dynamic_tables(DVVideoContext *ctx, const AVDVProfile *d)
ctx               197 libavcodec/dv.c                     dv_calc_mb_coordinates(d, c, s, j, &ctx->work_chunks[i].mb_coordinates[0]);
ctx               198 libavcodec/dv.c                     ctx->work_chunks[i++].buf_offset = p;
ctx               249 libavcodec/dvbsubdec.c static DVBSubObject* get_object(DVBSubContext *ctx, int object_id)
ctx               251 libavcodec/dvbsubdec.c     DVBSubObject *ptr = ctx->object_list;
ctx               260 libavcodec/dvbsubdec.c static DVBSubCLUT* get_clut(DVBSubContext *ctx, int clut_id)
ctx               262 libavcodec/dvbsubdec.c     DVBSubCLUT *ptr = ctx->clut_list;
ctx               271 libavcodec/dvbsubdec.c static DVBSubRegion* get_region(DVBSubContext *ctx, int region_id)
ctx               273 libavcodec/dvbsubdec.c     DVBSubRegion *ptr = ctx->region_list;
ctx               282 libavcodec/dvbsubdec.c static void delete_region_display_list(DVBSubContext *ctx, DVBSubRegion *region)
ctx               290 libavcodec/dvbsubdec.c         object = get_object(ctx, display->object_id);
ctx               305 libavcodec/dvbsubdec.c                     obj2_ptr = &ctx->object_list;
ctx               328 libavcodec/dvbsubdec.c static void delete_cluts(DVBSubContext *ctx)
ctx               330 libavcodec/dvbsubdec.c     while (ctx->clut_list) {
ctx               331 libavcodec/dvbsubdec.c         DVBSubCLUT *clut = ctx->clut_list;
ctx               333 libavcodec/dvbsubdec.c         ctx->clut_list = clut->next;
ctx               339 libavcodec/dvbsubdec.c static void delete_objects(DVBSubContext *ctx)
ctx               341 libavcodec/dvbsubdec.c     while (ctx->object_list) {
ctx               342 libavcodec/dvbsubdec.c         DVBSubObject *object = ctx->object_list;
ctx               344 libavcodec/dvbsubdec.c         ctx->object_list = object->next;
ctx               350 libavcodec/dvbsubdec.c static void delete_regions(DVBSubContext *ctx)
ctx               352 libavcodec/dvbsubdec.c     while (ctx->region_list) {
ctx               353 libavcodec/dvbsubdec.c         DVBSubRegion *region = ctx->region_list;
ctx               355 libavcodec/dvbsubdec.c         ctx->region_list = region->next;
ctx               357 libavcodec/dvbsubdec.c         delete_region_display_list(ctx, region);
ctx               367 libavcodec/dvbsubdec.c     DVBSubContext *ctx = avctx->priv_data;
ctx               371 libavcodec/dvbsubdec.c         ctx->composition_id = -1;
ctx               372 libavcodec/dvbsubdec.c         ctx->ancillary_id   = -1;
ctx               378 libavcodec/dvbsubdec.c         ctx->composition_id = AV_RB16(avctx->extradata);
ctx               379 libavcodec/dvbsubdec.c         ctx->ancillary_id   = AV_RB16(avctx->extradata + 2);
ctx               382 libavcodec/dvbsubdec.c     ctx->version = -1;
ctx               383 libavcodec/dvbsubdec.c     ctx->prev_start = AV_NOPTS_VALUE;
ctx               450 libavcodec/dvbsubdec.c     DVBSubContext *ctx = avctx->priv_data;
ctx               453 libavcodec/dvbsubdec.c     delete_regions(ctx);
ctx               455 libavcodec/dvbsubdec.c     delete_objects(ctx);
ctx               457 libavcodec/dvbsubdec.c     delete_cluts(ctx);
ctx               459 libavcodec/dvbsubdec.c     av_freep(&ctx->display_definition);
ctx               461 libavcodec/dvbsubdec.c     while (ctx->display_list) {
ctx               462 libavcodec/dvbsubdec.c         display = ctx->display_list;
ctx               463 libavcodec/dvbsubdec.c         ctx->display_list = display->next;
ctx               758 libavcodec/dvbsubdec.c     DVBSubContext *ctx = avctx->priv_data;
ctx               760 libavcodec/dvbsubdec.c     DVBSubDisplayDefinition *display_def = ctx->display_definition;
ctx               777 libavcodec/dvbsubdec.c         avpriv_request_sample(ctx, "Different Version of Segment asked Twice\n");
ctx               780 libavcodec/dvbsubdec.c     for (display = ctx->display_list; display; display = display->next) {
ctx               781 libavcodec/dvbsubdec.c         region = get_region(ctx, display->region_id);
ctx               786 libavcodec/dvbsubdec.c     if(ctx->compute_edt == 0) {
ctx               787 libavcodec/dvbsubdec.c         sub->end_display_time = ctx->time_out * 1000;
ctx               789 libavcodec/dvbsubdec.c     } else if (ctx->prev_start != AV_NOPTS_VALUE) {
ctx               790 libavcodec/dvbsubdec.c         sub->end_display_time = av_rescale_q((sub->pts - ctx->prev_start ), AV_TIME_BASE_Q, (AVRational){ 1, 1000 }) - 1;
ctx               806 libavcodec/dvbsubdec.c         for (display = ctx->display_list; display; display = display->next) {
ctx               807 libavcodec/dvbsubdec.c             region = get_region(ctx, display->region_id);
ctx               824 libavcodec/dvbsubdec.c             clut = get_clut(ctx, region->clut);
ctx               881 libavcodec/dvbsubdec.c     DVBSubContext *ctx = avctx->priv_data;
ctx               883 libavcodec/dvbsubdec.c     DVBSubRegion *region = get_region(ctx, display->region_id);
ctx               997 libavcodec/dvbsubdec.c     DVBSubContext *ctx = avctx->priv_data;
ctx              1010 libavcodec/dvbsubdec.c     object = get_object(ctx, object_id);
ctx              1057 libavcodec/dvbsubdec.c     DVBSubContext *ctx = avctx->priv_data;
ctx              1082 libavcodec/dvbsubdec.c     clut = get_clut(ctx, clut_id);
ctx              1094 libavcodec/dvbsubdec.c         clut->next = ctx->clut_list;
ctx              1095 libavcodec/dvbsubdec.c         ctx->clut_list = clut;
ctx              1157 libavcodec/dvbsubdec.c     DVBSubContext *ctx = avctx->priv_data;
ctx              1172 libavcodec/dvbsubdec.c     region = get_region(ctx, region_id);
ctx              1182 libavcodec/dvbsubdec.c         region->next = ctx->region_list;
ctx              1183 libavcodec/dvbsubdec.c         ctx->region_list = region;
ctx              1233 libavcodec/dvbsubdec.c     delete_region_display_list(ctx, region);
ctx              1239 libavcodec/dvbsubdec.c         object = get_object(ctx, object_id);
ctx              1247 libavcodec/dvbsubdec.c             object->next = ctx->object_list;
ctx              1248 libavcodec/dvbsubdec.c             ctx->object_list = object;
ctx              1283 libavcodec/dvbsubdec.c     DVBSubContext *ctx = avctx->priv_data;
ctx              1300 libavcodec/dvbsubdec.c     if (ctx->version == version) {
ctx              1304 libavcodec/dvbsubdec.c     ctx->time_out = timeout;
ctx              1305 libavcodec/dvbsubdec.c     ctx->version = version;
ctx              1307 libavcodec/dvbsubdec.c     av_dlog(avctx, "Page time out %ds, state %d\n", ctx->time_out, page_state);
ctx              1309 libavcodec/dvbsubdec.c     if(ctx->compute_edt == 1)
ctx              1313 libavcodec/dvbsubdec.c         delete_regions(ctx);
ctx              1314 libavcodec/dvbsubdec.c         delete_objects(ctx);
ctx              1315 libavcodec/dvbsubdec.c         delete_cluts(ctx);
ctx              1318 libavcodec/dvbsubdec.c     tmp_display_list = ctx->display_list;
ctx              1319 libavcodec/dvbsubdec.c     ctx->display_list = NULL;
ctx              1348 libavcodec/dvbsubdec.c         display->next = ctx->display_list;
ctx              1349 libavcodec/dvbsubdec.c         ctx->display_list = display;
ctx              1367 libavcodec/dvbsubdec.c static void save_display_set(DVBSubContext *ctx)
ctx              1384 libavcodec/dvbsubdec.c     for (display = ctx->display_list; display; display = display->next) {
ctx              1385 libavcodec/dvbsubdec.c         region = get_region(ctx, display->region_id);
ctx              1422 libavcodec/dvbsubdec.c         for (display = ctx->display_list; display; display = display->next) {
ctx              1423 libavcodec/dvbsubdec.c             region = get_region(ctx, display->region_id);
ctx              1431 libavcodec/dvbsubdec.c             clut = get_clut(ctx, region->clut);
ctx              1473 libavcodec/dvbsubdec.c     DVBSubContext *ctx = avctx->priv_data;
ctx              1474 libavcodec/dvbsubdec.c     DVBSubDisplayDefinition *display_def = ctx->display_definition;
ctx              1489 libavcodec/dvbsubdec.c         ctx->display_definition = display_def;
ctx              1518 libavcodec/dvbsubdec.c     DVBSubContext *ctx = avctx->priv_data;
ctx              1520 libavcodec/dvbsubdec.c     if(ctx->compute_edt == 0)
ctx              1523 libavcodec/dvbsubdec.c     save_display_set(ctx);
ctx              1534 libavcodec/dvbsubdec.c     DVBSubContext *ctx = avctx->priv_data;
ctx              1581 libavcodec/dvbsubdec.c         if (page_id == ctx->composition_id || page_id == ctx->ancillary_id ||
ctx              1582 libavcodec/dvbsubdec.c             ctx->composition_id == -1 || ctx->ancillary_id == -1) {
ctx              1634 libavcodec/dvbsubdec.c         if(ctx->compute_edt == 1 )
ctx              1635 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               389 libavcodec/dvdsubdec.c                     guess_palette(ctx, (uint32_t*)sub_header->rects[0]->pict.data[1],
ctx               517 libavcodec/dvdsubdec.c     DVDSubContext *ctx = avctx->priv_data;
ctx               519 libavcodec/dvdsubdec.c     if (ctx->buf_size >= sizeof(ctx->buf) - buf_size) {
ctx               524 libavcodec/dvdsubdec.c     memcpy(ctx->buf + ctx->buf_size, buf, buf_size);
ctx               525 libavcodec/dvdsubdec.c     ctx->buf_size += buf_size;
ctx               533 libavcodec/dvdsubdec.c     DVDSubContext *ctx = avctx->priv_data;
ctx               539 libavcodec/dvdsubdec.c     if (ctx->buf_size) {
ctx               545 libavcodec/dvdsubdec.c         buf = ctx->buf;
ctx               546 libavcodec/dvdsubdec.c         buf_size = ctx->buf_size;
ctx               549 libavcodec/dvdsubdec.c     is_menu = decode_dvd_subtitles(ctx, sub, buf, buf_size);
ctx               565 libavcodec/dvdsubdec.c     if (ctx->forced_subs_only && !(sub->rects[0]->flags & AV_SUBTITLE_FLAG_FORCED))
ctx               572 libavcodec/dvdsubdec.c     snprintf(ppm_name, sizeof(ppm_name), "/tmp/%05d.ppm", ctx->sub_id++);
ctx               581 libavcodec/dvdsubdec.c     ctx->buf_size = 0;
ctx               586 libavcodec/dvdsubdec.c static void parse_palette(DVDSubContext *ctx, char *p)
ctx               590 libavcodec/dvdsubdec.c     ctx->has_palette = 1;
ctx               592 libavcodec/dvdsubdec.c         ctx->palette[i] = strtoul(p, &p, 16);
ctx               598 libavcodec/dvdsubdec.c static int parse_ifo_palette(DVDSubContext *ctx, char *p)
ctx               608 libavcodec/dvdsubdec.c     ctx->has_palette = 0;
ctx               610 libavcodec/dvdsubdec.c         av_log(ctx, AV_LOG_WARNING, "Unable to open IFO file \"%s\": %s\n", p, av_err2str(AVERROR(errno)));
ctx               614 libavcodec/dvdsubdec.c         av_log(ctx, AV_LOG_WARNING, "\"%s\" is not a proper IFO file\n", p);
ctx               642 libavcodec/dvdsubdec.c                     ctx->palette[i] = (r << 16) + (g << 8) + b;
ctx               645 libavcodec/dvdsubdec.c                 ctx->has_palette = 1;
ctx               649 libavcodec/dvdsubdec.c     if (ctx->has_palette == 0) {
ctx               650 libavcodec/dvdsubdec.c         av_log(ctx, AV_LOG_WARNING, "Failed to read palette from IFO file \"%s\"\n", p);
ctx               660 libavcodec/dvdsubdec.c     DVDSubContext *ctx = (DVDSubContext*) avctx->priv_data;
ctx               679 libavcodec/dvdsubdec.c             parse_palette(ctx, data + 8);
ctx               700 libavcodec/dvdsubdec.c     DVDSubContext *ctx = avctx->priv_data;
ctx               706 libavcodec/dvdsubdec.c     if (ctx->ifo_str)
ctx               707 libavcodec/dvdsubdec.c         parse_ifo_palette(ctx, ctx->ifo_str);
ctx               708 libavcodec/dvdsubdec.c     if (ctx->palette_str)
ctx               709 libavcodec/dvdsubdec.c         parse_palette(ctx, ctx->palette_str);
ctx               710 libavcodec/dvdsubdec.c     if (ctx->has_palette) {
ctx               714 libavcodec/dvdsubdec.c             av_log(avctx, AV_LOG_DEBUG, " 0x%06x", ctx->palette[i]);
ctx               723 libavcodec/dvdsubdec.c     DVDSubContext *ctx = avctx->priv_data;
ctx               724 libavcodec/dvdsubdec.c     ctx->buf_size = 0;
ctx                38 libavcodec/dxva2.c unsigned ff_dxva2_get_surface_index(const struct dxva_context *ctx,
ctx                44 libavcodec/dxva2.c     for (i = 0; i < ctx->surface_count; i++)
ctx                45 libavcodec/dxva2.c         if (ctx->surface[i] == surface)
ctx                53 libavcodec/dxva2.c                            struct dxva_context *ctx,
ctx                63 libavcodec/dxva2.c     hr = IDirectXVideoDecoder_GetBuffer(ctx->decoder, type,
ctx                84 libavcodec/dxva2.c     hr = IDirectXVideoDecoder_ReleaseBuffer(ctx->decoder, type);
ctx               101 libavcodec/dxva2.c     struct dxva_context *ctx = avctx->hwaccel_context;
ctx               109 libavcodec/dxva2.c         hr = IDirectXVideoDecoder_BeginFrame(ctx->decoder,
ctx               121 libavcodec/dxva2.c     result = ff_dxva2_commit_buffer(avctx, ctx, &buffer[buffer_count],
ctx               132 libavcodec/dxva2.c         result = ff_dxva2_commit_buffer(avctx, ctx, &buffer[buffer_count],
ctx               160 libavcodec/dxva2.c     hr = IDirectXVideoDecoder_Execute(ctx->decoder, &exec);
ctx               167 libavcodec/dxva2.c     hr = IDirectXVideoDecoder_EndFrame(ctx->decoder, NULL);
ctx                45 libavcodec/dxva2_h264.c static void fill_picture_parameters(struct dxva_context *ctx, const H264Context *h,
ctx                54 libavcodec/dxva2_h264.c                        ff_dxva2_get_surface_index(ctx, &current_picture->f),
ctx                70 libavcodec/dxva2_h264.c                                ff_dxva2_get_surface_index(ctx, &r->f),
ctx               117 libavcodec/dxva2_h264.c     if (ctx->workaround & FF_DXVA2_WORKAROUND_SCALING_LIST_ZIGZAG)
ctx               119 libavcodec/dxva2_h264.c     else if (ctx->workaround & FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO)
ctx               123 libavcodec/dxva2_h264.c     pp->StatusReportFeedbackNumber    = 1 + ctx->report_id++;
ctx               159 libavcodec/dxva2_h264.c static void fill_scaling_lists(struct dxva_context *ctx, const H264Context *h, DXVA_Qmatrix_H264 *qm)
ctx               163 libavcodec/dxva2_h264.c     if (ctx->workaround & FF_DXVA2_WORKAROUND_SCALING_LIST_ZIGZAG) {
ctx               184 libavcodec/dxva2_h264.c static int is_slice_short(struct dxva_context *ctx)
ctx               186 libavcodec/dxva2_h264.c     assert(ctx->cfg->ConfigBitstreamRaw == 1 ||
ctx               187 libavcodec/dxva2_h264.c            ctx->cfg->ConfigBitstreamRaw == 2);
ctx               188 libavcodec/dxva2_h264.c     return ctx->cfg->ConfigBitstreamRaw == 2;
ctx               214 libavcodec/dxva2_h264.c     struct dxva_context *ctx = avctx->hwaccel_context;
ctx               245 libavcodec/dxva2_h264.c                 if (ctx->workaround & FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO)
ctx               246 libavcodec/dxva2_h264.c                     index = ff_dxva2_get_surface_index(ctx, &r->f);
ctx               248 libavcodec/dxva2_h264.c                     index = get_refpic_index(pp, ff_dxva2_get_surface_index(ctx, &r->f));
ctx               296 libavcodec/dxva2_h264.c     struct dxva_context *ctx = avctx->hwaccel_context;
ctx               309 libavcodec/dxva2_h264.c     if (FAILED(IDirectXVideoDecoder_GetBuffer(ctx->decoder,
ctx               328 libavcodec/dxva2_h264.c         if (is_slice_short(ctx))
ctx               343 libavcodec/dxva2_h264.c         if (!is_slice_short(ctx)) {
ctx               365 libavcodec/dxva2_h264.c     if (FAILED(IDirectXVideoDecoder_ReleaseBuffer(ctx->decoder,
ctx               376 libavcodec/dxva2_h264.c     if (is_slice_short(ctx)) {
ctx               384 libavcodec/dxva2_h264.c     return ff_dxva2_commit_buffer(avctx, ctx, sc,
ctx               395 libavcodec/dxva2_h264.c     struct dxva_context *ctx = avctx->hwaccel_context;
ctx               398 libavcodec/dxva2_h264.c     if (!ctx->decoder || !ctx->cfg || ctx->surface_count <= 0)
ctx               403 libavcodec/dxva2_h264.c     fill_picture_parameters(ctx, h, &ctx_pic->pp);
ctx               406 libavcodec/dxva2_h264.c     fill_scaling_lists(ctx, h, &ctx_pic->qm);
ctx               419 libavcodec/dxva2_h264.c     struct dxva_context *ctx = avctx->hwaccel_context;
ctx               432 libavcodec/dxva2_h264.c     if (is_slice_short(ctx))
ctx                56 libavcodec/dxva2_hevc.c static void fill_picture_parameters(struct dxva_context *ctx, const HEVCContext *h,
ctx                76 libavcodec/dxva2_hevc.c     fill_picture_entry(&pp->CurrPic, ff_dxva2_get_surface_index(ctx, current_picture->frame), 0);
ctx               168 libavcodec/dxva2_hevc.c             fill_picture_entry(&pp->RefPicList[j], ff_dxva2_get_surface_index(ctx, frame->frame), !!(frame->flags & HEVC_FRAME_FLAG_LONG_REF));
ctx               179 libavcodec/dxva2_hevc.c                 pp->ref_list[k] = get_refpic_index(pp, ff_dxva2_get_surface_index(ctx, rpl->ref[j]->frame)); \
ctx               190 libavcodec/dxva2_hevc.c     pp->StatusReportFeedbackNumber = 1 + ctx->report_id++;
ctx               193 libavcodec/dxva2_hevc.c static void fill_scaling_lists(struct dxva_context *ctx, const HEVCContext *h, DXVA_Qmatrix_HEVC *qm)
ctx               235 libavcodec/dxva2_hevc.c     struct dxva_context *ctx = avctx->hwaccel_context;
ctx               248 libavcodec/dxva2_hevc.c     if (FAILED(IDirectXVideoDecoder_GetBuffer(ctx->decoder,
ctx               287 libavcodec/dxva2_hevc.c     if (FAILED(IDirectXVideoDecoder_ReleaseBuffer(ctx->decoder,
ctx               302 libavcodec/dxva2_hevc.c     return ff_dxva2_commit_buffer(avctx, ctx, sc,
ctx               313 libavcodec/dxva2_hevc.c     struct dxva_context *ctx = avctx->hwaccel_context;
ctx               316 libavcodec/dxva2_hevc.c     if (!ctx->decoder || !ctx->cfg || ctx->surface_count <= 0)
ctx               321 libavcodec/dxva2_hevc.c     fill_picture_parameters(ctx, h, &ctx_pic->pp);
ctx               324 libavcodec/dxva2_hevc.c     fill_scaling_lists(ctx, h, &ctx_pic->qm);
ctx                39 libavcodec/dxva2_mpeg2.c                                     struct dxva_context *ctx,
ctx                47 libavcodec/dxva2_mpeg2.c     pp->wDecodedPictureIndex         = ff_dxva2_get_surface_index(ctx, current_picture->f);
ctx                50 libavcodec/dxva2_mpeg2.c         pp->wForwardRefPictureIndex  = ff_dxva2_get_surface_index(ctx, s->last_picture.f);
ctx                54 libavcodec/dxva2_mpeg2.c         pp->wBackwardRefPictureIndex = ff_dxva2_get_surface_index(ctx, s->next_picture.f);
ctx               105 libavcodec/dxva2_mpeg2.c                                        struct dxva_context *ctx,
ctx               153 libavcodec/dxva2_mpeg2.c     struct dxva_context *ctx = avctx->hwaccel_context;
ctx               163 libavcodec/dxva2_mpeg2.c     if (FAILED(IDirectXVideoDecoder_GetBuffer(ctx->decoder,
ctx               192 libavcodec/dxva2_mpeg2.c     if (FAILED(IDirectXVideoDecoder_ReleaseBuffer(ctx->decoder,
ctx               203 libavcodec/dxva2_mpeg2.c     return ff_dxva2_commit_buffer(avctx, ctx, sc,
ctx               215 libavcodec/dxva2_mpeg2.c     struct dxva_context *ctx = avctx->hwaccel_context;
ctx               219 libavcodec/dxva2_mpeg2.c     if (!ctx->decoder || !ctx->cfg || ctx->surface_count <= 0)
ctx               223 libavcodec/dxva2_mpeg2.c     fill_picture_parameters(avctx, ctx, s, &ctx_pic->pp);
ctx               224 libavcodec/dxva2_mpeg2.c     fill_quantization_matrices(avctx, ctx, s, &ctx_pic->qm);
ctx                37 libavcodec/dxva2_vc1.c                                     struct dxva_context *ctx, const VC1Context *v,
ctx                54 libavcodec/dxva2_vc1.c     pp->wDeblockedPictureIndex  = ff_dxva2_get_surface_index(ctx, current_picture->f);
ctx                56 libavcodec/dxva2_vc1.c         pp->wForwardRefPictureIndex = ff_dxva2_get_surface_index(ctx, s->last_picture.f);
ctx                60 libavcodec/dxva2_vc1.c         pp->wBackwardRefPictureIndex = ff_dxva2_get_surface_index(ctx, s->next_picture.f);
ctx                85 libavcodec/dxva2_vc1.c                                       ((ctx->cfg->ConfigIntraResidUnsigned != 0)   << 6) |
ctx                86 libavcodec/dxva2_vc1.c                                       ((ctx->cfg->ConfigResidDiffAccelerator != 0) << 5) |
ctx                94 libavcodec/dxva2_vc1.c     ctx->report_id++;
ctx                95 libavcodec/dxva2_vc1.c     if (ctx->report_id >= (1 << 16))
ctx                96 libavcodec/dxva2_vc1.c         ctx->report_id = 1;
ctx                97 libavcodec/dxva2_vc1.c     pp->bPicScanFixed           = ctx->report_id >> 8;
ctx                98 libavcodec/dxva2_vc1.c     pp->bPicScanMethod          = ctx->report_id & 0xff;
ctx               183 libavcodec/dxva2_vc1.c     struct dxva_context *ctx = avctx->hwaccel_context;
ctx               200 libavcodec/dxva2_vc1.c     if (FAILED(IDirectXVideoDecoder_GetBuffer(ctx->decoder,
ctx               219 libavcodec/dxva2_vc1.c     if (FAILED(IDirectXVideoDecoder_ReleaseBuffer(ctx->decoder,
ctx               231 libavcodec/dxva2_vc1.c     return ff_dxva2_commit_buffer(avctx, ctx, sc,
ctx               241 libavcodec/dxva2_vc1.c     struct dxva_context *ctx = avctx->hwaccel_context;
ctx               244 libavcodec/dxva2_vc1.c     if (!ctx->decoder || !ctx->cfg || ctx->surface_count <= 0)
ctx               248 libavcodec/dxva2_vc1.c     fill_picture_parameters(avctx, ctx, v, &ctx_pic->pp);
ctx               132 libavcodec/fic.c static int fic_decode_block(FICContext *ctx, GetBitContext *gb,
ctx               140 libavcodec/fic.c         ctx->frame->key_frame = 0;
ctx               141 libavcodec/fic.c         ctx->frame->pict_type = AV_PICTURE_TYPE_P;
ctx               154 libavcodec/fic.c                                      ctx->qmat[ff_zigzag_direct[i]];
ctx               163 libavcodec/fic.c     FICContext *ctx        = avctx->priv_data;
ctx               175 libavcodec/fic.c         int stride   = ctx->frame->linesize[p];
ctx               176 libavcodec/fic.c         uint8_t* dst = ctx->frame->data[p] + (y_off >> !!p) * stride;
ctx               179 libavcodec/fic.c             for (x = 0; x < (ctx->aligned_width >> !!p); x += 8) {
ctx               182 libavcodec/fic.c                 if ((ret = fic_decode_block(ctx, &gb, dst + x, stride, tctx->block)) != 0)
ctx               204 libavcodec/fic.c     FICContext *ctx = avctx->priv_data;
ctx               205 libavcodec/fic.c     uint8_t *ptr    = ctx->cursor_buf;
ctx               232 libavcodec/fic.c         dstptr[i] = ctx->final_frame->data[i]                        +
ctx               233 libavcodec/fic.c                     (ctx->final_frame->linesize[i] * (cur_y >> !!i)) +
ctx               243 libavcodec/fic.c         fic_alpha_blend(dstptr[0] + ctx->final_frame->linesize[0],
ctx               250 libavcodec/fic.c         dstptr[0] += ctx->final_frame->linesize[0] * 2;
ctx               251 libavcodec/fic.c         dstptr[1] += ctx->final_frame->linesize[1];
ctx               252 libavcodec/fic.c         dstptr[2] += ctx->final_frame->linesize[2];
ctx               259 libavcodec/fic.c     FICContext *ctx = avctx->priv_data;
ctx               269 libavcodec/fic.c     if ((ret = ff_reget_buffer(avctx, ctx->frame)) < 0)
ctx               284 libavcodec/fic.c         if (!ctx->final_frame) {
ctx               298 libavcodec/fic.c     ctx->qmat = src[23] ? fic_qmat_hq : fic_qmat_lq;
ctx               335 libavcodec/fic.c     ctx->slice_h = 16 * (ctx->aligned_height >> 4) / nslices;
ctx               336 libavcodec/fic.c     if (ctx->slice_h % 16)
ctx               337 libavcodec/fic.c         ctx->slice_h = FFALIGN(ctx->slice_h - 16, 16);
ctx               354 libavcodec/fic.c     ctx->frame->key_frame = 1;
ctx               355 libavcodec/fic.c     ctx->frame->pict_type = AV_PICTURE_TYPE_I;
ctx               358 libavcodec/fic.c     av_fast_malloc(&ctx->slice_data, &ctx->slice_data_size,
ctx               359 libavcodec/fic.c                    nslices * sizeof(ctx->slice_data[0]));
ctx               360 libavcodec/fic.c     if (!ctx->slice_data_size) {
ctx               364 libavcodec/fic.c     memset(ctx->slice_data, 0, nslices * sizeof(ctx->slice_data[0]));
ctx               369 libavcodec/fic.c         int y_off   = ctx->slice_h * slice;
ctx               370 libavcodec/fic.c         int slice_h = ctx->slice_h;
ctx               378 libavcodec/fic.c             slice_h      = FFALIGN(avctx->height - ctx->slice_h * (nslices - 1), 16);
ctx               388 libavcodec/fic.c         ctx->slice_data[slice].src      = sdata + slice_off;
ctx               389 libavcodec/fic.c         ctx->slice_data[slice].src_size = slice_size;
ctx               390 libavcodec/fic.c         ctx->slice_data[slice].slice_h  = slice_h;
ctx               391 libavcodec/fic.c         ctx->slice_data[slice].y_off    = y_off;
ctx               394 libavcodec/fic.c     if ((ret = avctx->execute(avctx, fic_decode_slice, ctx->slice_data,
ctx               395 libavcodec/fic.c                               NULL, nslices, sizeof(ctx->slice_data[0]))) < 0)
ctx               398 libavcodec/fic.c     av_frame_free(&ctx->final_frame);
ctx               399 libavcodec/fic.c     ctx->final_frame = av_frame_clone(ctx->frame);
ctx               400 libavcodec/fic.c     if (!ctx->final_frame) {
ctx               406 libavcodec/fic.c     if ((ret = ff_reget_buffer(avctx, ctx->final_frame)) < 0) {
ctx               413 libavcodec/fic.c         memcpy(ctx->cursor_buf, src + 59, 32 * 32 * 4);
ctx               419 libavcodec/fic.c     if ((ret = av_frame_ref(data, ctx->final_frame)) < 0)
ctx               427 libavcodec/fic.c     FICContext *ctx = avctx->priv_data;
ctx               429 libavcodec/fic.c     av_freep(&ctx->slice_data);
ctx               430 libavcodec/fic.c     av_frame_free(&ctx->final_frame);
ctx               431 libavcodec/fic.c     av_frame_free(&ctx->frame);
ctx               438 libavcodec/fic.c     FICContext *ctx = avctx->priv_data;
ctx               441 libavcodec/fic.c     ctx->avctx            = avctx;
ctx               442 libavcodec/fic.c     ctx->aligned_width    = FFALIGN(avctx->width,  16);
ctx               443 libavcodec/fic.c     ctx->aligned_height   = FFALIGN(avctx->height, 16);
ctx               448 libavcodec/fic.c     ctx->frame = av_frame_alloc();
ctx               449 libavcodec/fic.c     if (!ctx->frame)
ctx               164 libavcodec/g2meet.c static av_cold void jpg_free_context(JPGContext *ctx)
ctx               169 libavcodec/g2meet.c         ff_free_vlc(&ctx->dc_vlc[i]);
ctx               170 libavcodec/g2meet.c         ff_free_vlc(&ctx->ac_vlc[i]);
ctx               173 libavcodec/g2meet.c     av_freep(&ctx->buf);
ctx               349 libavcodec/g729dec.c     G729Context* ctx = avctx->priv_data;
ctx               361 libavcodec/g729dec.c     ctx->gain_coeff = 16384; // 1.0 in (1.14)
ctx               364 libavcodec/g729dec.c         ctx->past_quantizer_outputs[k] = ctx->past_quantizer_output_buf[k];
ctx               366 libavcodec/g729dec.c             ctx->past_quantizer_outputs[k][i - 1] = (18717 * i) >> 3;
ctx               369 libavcodec/g729dec.c     ctx->lsp[0] = ctx->lsp_buf[0];
ctx               370 libavcodec/g729dec.c     ctx->lsp[1] = ctx->lsp_buf[1];
ctx               371 libavcodec/g729dec.c     memcpy(ctx->lsp[0], lsp_init, 10 * sizeof(int16_t));
ctx               373 libavcodec/g729dec.c     ctx->exc = &ctx->exc_base[PITCH_DELAY_MAX+INTERPOL_LEN];
ctx               375 libavcodec/g729dec.c     ctx->pitch_delay_int_prev = PITCH_DELAY_MIN;
ctx               378 libavcodec/g729dec.c     ctx->rand_value = 21845;
ctx               382 libavcodec/g729dec.c         ctx->quant_energy[i] = -14336; // -14 in (5.10)
ctx               384 libavcodec/g729dec.c     ff_audiodsp_init(&ctx->adsp);
ctx               385 libavcodec/g729dec.c     ctx->adsp.scalarproduct_int16 = scalarproduct_int16_c;
ctx               403 libavcodec/g729dec.c     G729Context *ctx = avctx->priv_data;
ctx               428 libavcodec/g729dec.c         ctx->onset = 0;
ctx               429 libavcodec/g729dec.c         ctx->voice_decision = DECISION_VOICE;
ctx               452 libavcodec/g729dec.c         lsf_restore_from_previous(ctx->lsfq, ctx->past_quantizer_outputs,
ctx               453 libavcodec/g729dec.c                                   ctx->ma_predictor_prev);
ctx               455 libavcodec/g729dec.c         lsf_decode(ctx->lsfq, ctx->past_quantizer_outputs,
ctx               458 libavcodec/g729dec.c         ctx->ma_predictor_prev = ma_predictor;
ctx               461 libavcodec/g729dec.c     tmp = ctx->past_quantizer_outputs[MA_NP];
ctx               462 libavcodec/g729dec.c     memmove(ctx->past_quantizer_outputs + 1, ctx->past_quantizer_outputs,
ctx               464 libavcodec/g729dec.c     ctx->past_quantizer_outputs[0] = tmp;
ctx               466 libavcodec/g729dec.c     ff_acelp_lsf2lsp(ctx->lsp[1], ctx->lsfq, 10);
ctx               468 libavcodec/g729dec.c     ff_acelp_lp_decode(&lp[0][0], &lp[1][0], ctx->lsp[1], ctx->lsp[0], 10);
ctx               470 libavcodec/g729dec.c     FFSWAP(int16_t*, ctx->lsp[1], ctx->lsp[0]);
ctx               490 libavcodec/g729dec.c             pitch_delay_3x   = 3 * ctx->pitch_delay_int_prev;
ctx               493 libavcodec/g729dec.c                 pitch_delay_3x   = 3 * ctx->pitch_delay_int_prev;
ctx               497 libavcodec/g729dec.c             int pitch_delay_min = av_clip(ctx->pitch_delay_int_prev - 5,
ctx               514 libavcodec/g729dec.c             ctx->rand_value = g729_prng(ctx->rand_value);
ctx               515 libavcodec/g729dec.c             fc_indexes   = ctx->rand_value & ((1 << format->fc_indexes_bits) - 1);
ctx               517 libavcodec/g729dec.c             ctx->rand_value = g729_prng(ctx->rand_value);
ctx               518 libavcodec/g729dec.c             pulses_signs = ctx->rand_value;
ctx               547 libavcodec/g729dec.c                                      av_clip(ctx->past_gain_pitch[0], SHARP_MIN, SHARP_MAX),
ctx               551 libavcodec/g729dec.c         memmove(ctx->past_gain_pitch+1, ctx->past_gain_pitch, 5 * sizeof(int16_t));
ctx               552 libavcodec/g729dec.c         ctx->past_gain_code[1] = ctx->past_gain_code[0];
ctx               555 libavcodec/g729dec.c             ctx->past_gain_pitch[0] = (29491 * ctx->past_gain_pitch[0]) >> 15; // 0.90 (0.15)
ctx               556 libavcodec/g729dec.c             ctx->past_gain_code[0]  = ( 2007 * ctx->past_gain_code[0] ) >> 11; // 0.98 (0.11)
ctx               561 libavcodec/g729dec.c                 ctx->past_gain_pitch[0]  = cb_gain_1st_6k4[gc_1st_index][0] +
ctx               574 libavcodec/g729dec.c                 ctx->past_gain_pitch[0]  = cb_gain_1st_8k[gc_1st_index][0] +
ctx               581 libavcodec/g729dec.c             ctx->past_gain_code[0] = ff_acelp_decode_gain_code(&ctx->adsp, gain_corr_factor,
ctx               583 libavcodec/g729dec.c                                                                ctx->quant_energy,
ctx               598 libavcodec/g729dec.c                 ctx->past_gain_code[0] >>= 1;
ctx               602 libavcodec/g729dec.c         ff_acelp_update_past_gain(ctx->quant_energy, gain_corr_factor, 2, frame_erasure);
ctx               605 libavcodec/g729dec.c         ff_acelp_interpolate(ctx->exc + i * SUBFRAME_SIZE,
ctx               606 libavcodec/g729dec.c                              ctx->exc + i * SUBFRAME_SIZE - pitch_delay_3x / 3,
ctx               611 libavcodec/g729dec.c         ff_acelp_weighted_vector_sum(ctx->exc + i * SUBFRAME_SIZE,
ctx               612 libavcodec/g729dec.c                                      ctx->exc + i * SUBFRAME_SIZE, fc,
ctx               613 libavcodec/g729dec.c                                      (!ctx->was_periodic && frame_erasure) ? 0 : ctx->past_gain_pitch[0],
ctx               614 libavcodec/g729dec.c                                      ( ctx->was_periodic && frame_erasure) ? 0 : ctx->past_gain_code[0],
ctx               617 libavcodec/g729dec.c         memcpy(synth, ctx->syn_filter_data, 10 * sizeof(int16_t));
ctx               622 libavcodec/g729dec.c             ctx->exc  + i * SUBFRAME_SIZE,
ctx               630 libavcodec/g729dec.c                 ctx->exc_base[j] >>= 2;
ctx               636 libavcodec/g729dec.c             ctx->onset = g729d_onset_decision(ctx->onset, ctx->past_gain_code);
ctx               637 libavcodec/g729dec.c             ctx->voice_decision = g729d_voice_decision(ctx->onset, ctx->voice_decision, ctx->past_gain_pitch);
ctx               639 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               654 libavcodec/g729dec.c                     ctx->exc  + i * SUBFRAME_SIZE,
ctx               662 libavcodec/g729dec.c         memcpy(ctx->syn_filter_data, synth+SUBFRAME_SIZE, 10 * sizeof(int16_t));
ctx               671 libavcodec/g729dec.c                 &ctx->adsp,
ctx               672 libavcodec/g729dec.c                 &ctx->ht_prev_data,
ctx               676 libavcodec/g729dec.c                 ctx->residual,
ctx               677 libavcodec/g729dec.c                 ctx->res_filter_data,
ctx               678 libavcodec/g729dec.c                 ctx->pos_filter_data,
ctx               687 libavcodec/g729dec.c         ctx->gain_coeff = ff_g729_adaptive_gain_control(
ctx               692 libavcodec/g729dec.c                 ctx->gain_coeff);
ctx               695 libavcodec/g729dec.c             ctx->pitch_delay_int_prev = FFMIN(ctx->pitch_delay_int_prev + 1, PITCH_DELAY_MAX);
ctx               697 libavcodec/g729dec.c             ctx->pitch_delay_int_prev = pitch_delay_int[i];
ctx               699 libavcodec/g729dec.c         memcpy(synth+8, ctx->hpf_z, 2*sizeof(int16_t));
ctx               702 libavcodec/g729dec.c                 ctx->hpf_f,
ctx               705 libavcodec/g729dec.c         memcpy(ctx->hpf_z, synth+8+SUBFRAME_SIZE, 2*sizeof(int16_t));
ctx               708 libavcodec/g729dec.c     ctx->was_periodic = is_periodic;
ctx               711 libavcodec/g729dec.c     memmove(ctx->exc_base, ctx->exc_base + 2 * SUBFRAME_SIZE, (PITCH_DELAY_MAX+INTERPOL_LEN)*sizeof(int16_t));
ctx                90 libavcodec/gsmdec_template.c static void short_term_synth(GSMContext *ctx, int16_t *dst, const int16_t *src)
ctx                94 libavcodec/gsmdec_template.c     int *lar = ctx->lar[ctx->lar_idx];
ctx                95 libavcodec/gsmdec_template.c     int *lar_prev = ctx->lar[ctx->lar_idx ^ 1];
ctx                99 libavcodec/gsmdec_template.c         dst[i] = filter_value(src[i], rrp, ctx->v);
ctx               104 libavcodec/gsmdec_template.c         dst[i] = filter_value(src[i], rrp, ctx->v);
ctx               109 libavcodec/gsmdec_template.c         dst[i] = filter_value(src[i], rrp, ctx->v);
ctx               114 libavcodec/gsmdec_template.c         dst[i] = filter_value(src[i], rrp, ctx->v);
ctx               116 libavcodec/gsmdec_template.c     ctx->lar_idx ^= 1;
ctx               132 libavcodec/gsmdec_template.c     GSMContext *ctx = avctx->priv_data;
ctx               134 libavcodec/gsmdec_template.c     int16_t *ref_dst = ctx->ref_buf + 120;
ctx               135 libavcodec/gsmdec_template.c     int *lar = ctx->lar[ctx->lar_idx];
ctx               154 libavcodec/gsmdec_template.c     memcpy(ctx->ref_buf, ctx->ref_buf + 160, 120 * sizeof(*ctx->ref_buf));
ctx               155 libavcodec/gsmdec_template.c     short_term_synth(ctx, samples, ctx->ref_buf + 120);
ctx               158 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                31 libavcodec/h263dsp.h void ff_h263dsp_init(H263DSPContext *ctx);
ctx                32 libavcodec/h263dsp.h void ff_h263dsp_init_x86(H263DSPContext *ctx);
ctx              1287 libavcodec/h264_cabac.c     unsigned long ctx = 0;
ctx              1289 libavcodec/h264_cabac.c     ctx += h->mb_field_decoding_flag & !!h->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] == h->slice_num);
ctx              1292 libavcodec/h264_cabac.c     return get_cabac_noinline( &h->cabac, &(h->cabac_state+70)[ctx] );
ctx              1300 libavcodec/h264_cabac.c         int ctx=0;
ctx              1302 libavcodec/h264_cabac.c             ctx++;
ctx              1304 libavcodec/h264_cabac.c             ctx++;
ctx              1305 libavcodec/h264_cabac.c         if( get_cabac_noinline( &h->cabac, &state[ctx] ) == 0 )
ctx              1327 libavcodec/h264_cabac.c     int ctx = 0;
ctx              1351 libavcodec/h264_cabac.c         ctx++;
ctx              1353 libavcodec/h264_cabac.c         ctx++;
ctx              1356 libavcodec/h264_cabac.c         ctx += 13;
ctx              1357 libavcodec/h264_cabac.c     return get_cabac_noinline( &h->cabac, &h->cabac_state[11+ctx] );
ctx              1377 libavcodec/h264_cabac.c     int ctx = 0;
ctx              1381 libavcodec/h264_cabac.c         ctx++;
ctx              1384 libavcodec/h264_cabac.c         ctx++;
ctx              1386 libavcodec/h264_cabac.c     if( get_cabac_noinline( &h->cabac, &h->cabac_state[64+ctx] ) == 0 )
ctx              1398 libavcodec/h264_cabac.c     int cbp_b, cbp_a, ctx, cbp = 0;
ctx              1403 libavcodec/h264_cabac.c     ctx = !(cbp_a & 0x02) + 2 * !(cbp_b & 0x04);
ctx              1404 libavcodec/h264_cabac.c     cbp += get_cabac_noinline(&h->cabac, &h->cabac_state[73 + ctx]);
ctx              1405 libavcodec/h264_cabac.c     ctx = !(cbp   & 0x01) + 2 * !(cbp_b & 0x08);
ctx              1406 libavcodec/h264_cabac.c     cbp += get_cabac_noinline(&h->cabac, &h->cabac_state[73 + ctx]) << 1;
ctx              1407 libavcodec/h264_cabac.c     ctx = !(cbp_a & 0x08) + 2 * !(cbp   & 0x01);
ctx              1408 libavcodec/h264_cabac.c     cbp += get_cabac_noinline(&h->cabac, &h->cabac_state[73 + ctx]) << 2;
ctx              1409 libavcodec/h264_cabac.c     ctx = !(cbp   & 0x04) + 2 * !(cbp   & 0x02);
ctx              1410 libavcodec/h264_cabac.c     cbp += get_cabac_noinline(&h->cabac, &h->cabac_state[73 + ctx]) << 3;
ctx              1414 libavcodec/h264_cabac.c     int ctx;
ctx              1420 libavcodec/h264_cabac.c     ctx = 0;
ctx              1421 libavcodec/h264_cabac.c     if( cbp_a > 0 ) ctx++;
ctx              1422 libavcodec/h264_cabac.c     if( cbp_b > 0 ) ctx += 2;
ctx              1423 libavcodec/h264_cabac.c     if( get_cabac_noinline( &h->cabac, &h->cabac_state[77 + ctx] ) == 0 )
ctx              1426 libavcodec/h264_cabac.c     ctx = 4;
ctx              1427 libavcodec/h264_cabac.c     if( cbp_a == 2 ) ctx++;
ctx              1428 libavcodec/h264_cabac.c     if( cbp_b == 2 ) ctx += 2;
ctx              1429 libavcodec/h264_cabac.c     return 1 + get_cabac_noinline( &h->cabac, &h->cabac_state[77 + ctx] );
ctx              1462 libavcodec/h264_cabac.c     int ctx  = 0;
ctx              1466 libavcodec/h264_cabac.c             ctx++;
ctx              1468 libavcodec/h264_cabac.c             ctx += 2;
ctx              1471 libavcodec/h264_cabac.c             ctx++;
ctx              1473 libavcodec/h264_cabac.c             ctx += 2;
ctx              1476 libavcodec/h264_cabac.c     while( get_cabac( &h->cabac, &h->cabac_state[54+ctx] ) ) {
ctx              1478 libavcodec/h264_cabac.c         ctx = (ctx>>2)+4;
ctx              1535 libavcodec/h264_cabac.c     int ctx = 0;
ctx              1554 libavcodec/h264_cabac.c         ctx++;
ctx              1557 libavcodec/h264_cabac.c         ctx += 2;
ctx              1559 libavcodec/h264_cabac.c     return base_ctx[cat] + ctx;
ctx              1695 libavcodec/h264_cabac.c         uint8_t *ctx = coeff_abs_level1_ctx[node_ctx] + abs_level_m1_ctx_base; \
ctx              1699 libavcodec/h264_cabac.c         if( get_cabac( CC, ctx ) == 0 ) { \
ctx              1708 libavcodec/h264_cabac.c             ctx = coeff_abs_levelgt1_ctx[is_dc && chroma422][node_ctx] + abs_level_m1_ctx_base; \
ctx              1711 libavcodec/h264_cabac.c             while( coeff_abs < 15 && get_cabac( CC, ctx ) ) { \
ctx              1933 libavcodec/h264_cabac.c         int ctx = 0;
ctx              1937 libavcodec/h264_cabac.c             ctx++;
ctx              1939 libavcodec/h264_cabac.c             ctx++;
ctx              1941 libavcodec/h264_cabac.c         if( !get_cabac_noinline( &h->cabac, &h->cabac_state[27+ctx] ) ){
ctx              2346 libavcodec/h264_cabac.c             int ctx= 2;
ctx              2349 libavcodec/h264_cabac.c             while( get_cabac_noinline( &h->cabac, &h->cabac_state[60 + ctx] ) ) {
ctx              2350 libavcodec/h264_cabac.c                 ctx= 3;
ctx                66 libavcodec/h264_mp4toannexb_bsf.c static int h264_extradata_to_annexb(H264BSFContext *ctx, AVCodecContext *avctx, const int padding)
ctx                76 libavcodec/h264_mp4toannexb_bsf.c     ctx->sps_offset = ctx->pps_offset = -1;
ctx                83 libavcodec/h264_mp4toannexb_bsf.c         ctx->sps_offset = 0;
ctx               113 libavcodec/h264_mp4toannexb_bsf.c                 ctx->pps_offset = (extradata - 1) - (avctx->extradata + 4);
ctx               145 libavcodec/h264_mp4toannexb_bsf.c     H264BSFContext *ctx = bsfc->priv_data;
ctx               161 libavcodec/h264_mp4toannexb_bsf.c     if (!ctx->extradata_parsed) {
ctx               162 libavcodec/h264_mp4toannexb_bsf.c         ret = h264_extradata_to_annexb(ctx, avctx, FF_INPUT_BUFFER_PADDING_SIZE);
ctx               165 libavcodec/h264_mp4toannexb_bsf.c         ctx->length_size      = ret;
ctx               166 libavcodec/h264_mp4toannexb_bsf.c         ctx->new_idr          = 1;
ctx               167 libavcodec/h264_mp4toannexb_bsf.c         ctx->idr_sps_seen     = 0;
ctx               168 libavcodec/h264_mp4toannexb_bsf.c         ctx->idr_pps_seen     = 0;
ctx               169 libavcodec/h264_mp4toannexb_bsf.c         ctx->extradata_parsed = 1;
ctx               176 libavcodec/h264_mp4toannexb_bsf.c         if (buf + ctx->length_size > buf_end)
ctx               179 libavcodec/h264_mp4toannexb_bsf.c         for (nal_size = 0, i = 0; i<ctx->length_size; i++)
ctx               182 libavcodec/h264_mp4toannexb_bsf.c         buf      += ctx->length_size;
ctx               189 libavcodec/h264_mp4toannexb_bsf.c             ctx->idr_sps_seen = ctx->new_idr = 1;
ctx               191 libavcodec/h264_mp4toannexb_bsf.c             ctx->idr_pps_seen = ctx->new_idr = 1;
ctx               193 libavcodec/h264_mp4toannexb_bsf.c             if (!ctx->idr_sps_seen) {
ctx               194 libavcodec/h264_mp4toannexb_bsf.c                 if (ctx->sps_offset == -1)
ctx               198 libavcodec/h264_mp4toannexb_bsf.c                                          avctx->extradata + ctx->sps_offset,
ctx               199 libavcodec/h264_mp4toannexb_bsf.c                                          ctx->pps_offset != -1 ? ctx->pps_offset : avctx->extradata_size - ctx->sps_offset,
ctx               202 libavcodec/h264_mp4toannexb_bsf.c                     ctx->idr_sps_seen = 1;
ctx               211 libavcodec/h264_mp4toannexb_bsf.c         if (!ctx->new_idr && unit_type == 5 && (buf[1] & 0x80))
ctx               212 libavcodec/h264_mp4toannexb_bsf.c             ctx->new_idr = 1;
ctx               215 libavcodec/h264_mp4toannexb_bsf.c         if (ctx->new_idr && unit_type == 5 && !ctx->idr_sps_seen && !ctx->idr_pps_seen) {
ctx               220 libavcodec/h264_mp4toannexb_bsf.c             ctx->new_idr = 0;
ctx               222 libavcodec/h264_mp4toannexb_bsf.c         } else if (ctx->new_idr && unit_type == 5 && ctx->idr_sps_seen && !ctx->idr_pps_seen) {
ctx               223 libavcodec/h264_mp4toannexb_bsf.c             if (ctx->pps_offset == -1) {
ctx               229 libavcodec/h264_mp4toannexb_bsf.c                                         avctx->extradata + ctx->pps_offset, avctx->extradata_size - ctx->pps_offset,
ctx               236 libavcodec/h264_mp4toannexb_bsf.c             if (!ctx->new_idr && unit_type == 1) {
ctx               237 libavcodec/h264_mp4toannexb_bsf.c                 ctx->new_idr = 1;
ctx               238 libavcodec/h264_mp4toannexb_bsf.c                 ctx->idr_sps_seen = 0;
ctx               239 libavcodec/h264_mp4toannexb_bsf.c                 ctx->idr_pps_seen = 0;
ctx               245 libavcodec/h264_mp4toannexb_bsf.c         cumul_size += nal_size + ctx->length_size;
ctx               598 libavcodec/hevc_cabac.c #define GET_CABAC(ctx) get_cabac(&s->HEVClc->cc, &s->HEVClc->cabac_state[ctx])
ctx                42 libavcodec/hqx.c typedef int (*mb_decode_func)(HQXContext *ctx, AVFrame *pic,
ctx               263 libavcodec/hqx.c static int hqx_decode_422(HQXContext *ctx, AVFrame *pic,
ctx               271 libavcodec/hqx.c     if (ctx->interlaced)
ctx               279 libavcodec/hqx.c         int vlc_index = ctx->dcb - 9;
ctx               282 libavcodec/hqx.c         ret = decode_block(gb, &ctx->dc_vlc[vlc_index], quants,
ctx               283 libavcodec/hqx.c                            ctx->dcb, ctx->block[i], &last_dc);
ctx               288 libavcodec/hqx.c     put_blocks(pic, 0, x,      y, flag, ctx->block[0], ctx->block[2], hqx_quant_luma);
ctx               289 libavcodec/hqx.c     put_blocks(pic, 0, x + 8,  y, flag, ctx->block[1], ctx->block[3], hqx_quant_luma);
ctx               290 libavcodec/hqx.c     put_blocks(pic, 2, x >> 1, y, flag, ctx->block[4], ctx->block[5], hqx_quant_chroma);
ctx               291 libavcodec/hqx.c     put_blocks(pic, 1, x >> 1, y, flag, ctx->block[6], ctx->block[7], hqx_quant_chroma);
ctx               296 libavcodec/hqx.c static int hqx_decode_422a(HQXContext *ctx, AVFrame *pic,
ctx               305 libavcodec/hqx.c     cbp = get_vlc2(gb, ctx->cbp_vlc.table, ctx->cbp_vlc.bits, 1);
ctx               308 libavcodec/hqx.c         memset(ctx->block[i], 0, sizeof(**ctx->block) * 64);
ctx               310 libavcodec/hqx.c         ctx->block[i][0] = -0x800;
ctx               312 libavcodec/hqx.c         if (ctx->interlaced)
ctx               326 libavcodec/hqx.c                 int vlc_index = ctx->dcb - 9;
ctx               327 libavcodec/hqx.c                 ret = decode_block(gb, &ctx->dc_vlc[vlc_index], quants,
ctx               328 libavcodec/hqx.c                                    ctx->dcb, ctx->block[i], &last_dc);
ctx               335 libavcodec/hqx.c     put_blocks(pic, 3, x,      y, flag, ctx->block[ 0], ctx->block[ 2], hqx_quant_luma);
ctx               336 libavcodec/hqx.c     put_blocks(pic, 3, x + 8,  y, flag, ctx->block[ 1], ctx->block[ 3], hqx_quant_luma);
ctx               337 libavcodec/hqx.c     put_blocks(pic, 0, x,      y, flag, ctx->block[ 4], ctx->block[ 6], hqx_quant_luma);
ctx               338 libavcodec/hqx.c     put_blocks(pic, 0, x + 8,  y, flag, ctx->block[ 5], ctx->block[ 7], hqx_quant_luma);
ctx               339 libavcodec/hqx.c     put_blocks(pic, 2, x >> 1, y, flag, ctx->block[ 8], ctx->block[ 9], hqx_quant_chroma);
ctx               340 libavcodec/hqx.c     put_blocks(pic, 1, x >> 1, y, flag, ctx->block[10], ctx->block[11], hqx_quant_chroma);
ctx               345 libavcodec/hqx.c static int hqx_decode_444(HQXContext *ctx, AVFrame *pic,
ctx               353 libavcodec/hqx.c     if (ctx->interlaced)
ctx               361 libavcodec/hqx.c         int vlc_index = ctx->dcb - 9;
ctx               364 libavcodec/hqx.c         ret = decode_block(gb, &ctx->dc_vlc[vlc_index], quants,
ctx               365 libavcodec/hqx.c                            ctx->dcb, ctx->block[i], &last_dc);
ctx               370 libavcodec/hqx.c     put_blocks(pic, 0, x,     y, flag, ctx->block[0], ctx->block[ 2], hqx_quant_luma);
ctx               371 libavcodec/hqx.c     put_blocks(pic, 0, x + 8, y, flag, ctx->block[1], ctx->block[ 3], hqx_quant_luma);
ctx               372 libavcodec/hqx.c     put_blocks(pic, 2, x,     y, flag, ctx->block[4], ctx->block[ 6], hqx_quant_chroma);
ctx               373 libavcodec/hqx.c     put_blocks(pic, 2, x + 8, y, flag, ctx->block[5], ctx->block[ 7], hqx_quant_chroma);
ctx               374 libavcodec/hqx.c     put_blocks(pic, 1, x,     y, flag, ctx->block[8], ctx->block[10], hqx_quant_chroma);
ctx               375 libavcodec/hqx.c     put_blocks(pic, 1, x + 8, y, flag, ctx->block[9], ctx->block[11], hqx_quant_chroma);
ctx               380 libavcodec/hqx.c static int hqx_decode_444a(HQXContext *ctx, AVFrame *pic,
ctx               389 libavcodec/hqx.c     cbp = get_vlc2(gb, ctx->cbp_vlc.table, ctx->cbp_vlc.bits, 1);
ctx               392 libavcodec/hqx.c         memset(ctx->block[i], 0, sizeof(**ctx->block) * 64);
ctx               394 libavcodec/hqx.c         ctx->block[i][0] = -0x800;
ctx               396 libavcodec/hqx.c         if (ctx->interlaced)
ctx               407 libavcodec/hqx.c                 int vlc_index = ctx->dcb - 9;
ctx               408 libavcodec/hqx.c                 ret = decode_block(gb, &ctx->dc_vlc[vlc_index], quants,
ctx               409 libavcodec/hqx.c                                    ctx->dcb, ctx->block[i], &last_dc);
ctx               416 libavcodec/hqx.c     put_blocks(pic, 3, x,     y, flag, ctx->block[ 0], ctx->block[ 2], hqx_quant_luma);
ctx               417 libavcodec/hqx.c     put_blocks(pic, 3, x + 8, y, flag, ctx->block[ 1], ctx->block[ 3], hqx_quant_luma);
ctx               418 libavcodec/hqx.c     put_blocks(pic, 0, x,     y, flag, ctx->block[ 4], ctx->block[ 6], hqx_quant_luma);
ctx               419 libavcodec/hqx.c     put_blocks(pic, 0, x + 8, y, flag, ctx->block[ 5], ctx->block[ 7], hqx_quant_luma);
ctx               420 libavcodec/hqx.c     put_blocks(pic, 2, x,     y, flag, ctx->block[ 8], ctx->block[10], hqx_quant_chroma);
ctx               421 libavcodec/hqx.c     put_blocks(pic, 2, x + 8, y, flag, ctx->block[ 9], ctx->block[11], hqx_quant_chroma);
ctx               422 libavcodec/hqx.c     put_blocks(pic, 1, x,     y, flag, ctx->block[12], ctx->block[14], hqx_quant_chroma);
ctx               423 libavcodec/hqx.c     put_blocks(pic, 1, x + 8, y, flag, ctx->block[13], ctx->block[15], hqx_quant_chroma);
ctx               432 libavcodec/hqx.c static int decode_slice(HQXContext *ctx, AVFrame *pic, GetBitContext *gb,
ctx               435 libavcodec/hqx.c     int mb_w = (ctx->width  + 15) >> 4;
ctx               436 libavcodec/hqx.c     int mb_h = (ctx->height + 15) >> 4;
ctx               479 libavcodec/hqx.c             decode_func(ctx, pic, gb, mb_x * 16, mb_y * 16);
ctx               489 libavcodec/hqx.c     HQXContext *ctx = avctx->priv_data;
ctx               534 libavcodec/hqx.c     ctx->interlaced = !(src[2] & 0x80);
ctx               535 libavcodec/hqx.c     ctx->format     = src[2] & 7;
ctx               536 libavcodec/hqx.c     ctx->dcb        = (src[3] & 3) + 8;
ctx               537 libavcodec/hqx.c     ctx->width      = AV_RB16(src + 4);
ctx               538 libavcodec/hqx.c     ctx->height     = AV_RB16(src + 6);
ctx               542 libavcodec/hqx.c     if (ctx->dcb == 8) {
ctx               543 libavcodec/hqx.c         av_log(avctx, AV_LOG_ERROR, "Invalid DC precision %d.\n", ctx->dcb);
ctx               546 libavcodec/hqx.c     ret = av_image_check_size(ctx->width, ctx->height, 0, avctx);
ctx               549 libavcodec/hqx.c                ctx->width, ctx->height);
ctx               553 libavcodec/hqx.c     avctx->coded_width         = FFALIGN(ctx->width,  16);
ctx               554 libavcodec/hqx.c     avctx->coded_height        = FFALIGN(ctx->height, 16);
ctx               555 libavcodec/hqx.c     avctx->width               = ctx->width;
ctx               556 libavcodec/hqx.c     avctx->height              = ctx->height;
ctx               559 libavcodec/hqx.c     switch (ctx->format) {
ctx               578 libavcodec/hqx.c         av_log(avctx, AV_LOG_ERROR, "Invalid format: %d.\n", ctx->format);
ctx               597 libavcodec/hqx.c         ret = decode_slice(ctx, pic, &gb, slice, decode_func);
ctx               614 libavcodec/hqx.c     HQXContext *ctx = avctx->priv_data;
ctx               616 libavcodec/hqx.c     ff_free_vlc(&ctx->cbp_vlc);
ctx               618 libavcodec/hqx.c         ff_free_vlc(&ctx->dc_vlc[i]);
ctx               626 libavcodec/hqx.c     HQXContext *ctx = avctx->priv_data;
ctx               627 libavcodec/hqx.c     int ret = ff_hqx_init_vlcs(ctx);
ctx                63 libavcodec/hqx.h int ff_hqx_init_vlcs(HQXContext *ctx);
ctx              2147 libavcodec/hqxvlc.c         ret = init_vlc(&ctx->dc_vlc[idx], HQX_DC_VLC_BITS,                    \
ctx              2155 libavcodec/hqxvlc.c av_cold int ff_hqx_init_vlcs(HQXContext *ctx)
ctx              2157 libavcodec/hqxvlc.c     int ret = init_vlc(&ctx->cbp_vlc, 5, FF_ARRAY_ELEMS(cbp_vlc_lens),
ctx                51 libavcodec/indeo2.c static int ir2_decode_plane(Ir2Context *ctx, int width, int height, uint8_t *dst,
ctx                63 libavcodec/indeo2.c         int c = ir2_get_code(&ctx->gb);
ctx                80 libavcodec/indeo2.c             int c = ir2_get_code(&ctx->gb);
ctx               105 libavcodec/indeo2.c static int ir2_decode_plane_inter(Ir2Context *ctx, int width, int height, uint8_t *dst,
ctx               119 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               179 libavcodec/indeo3.c     ctx->width  = luma_width ;
ctx               180 libavcodec/indeo3.c     ctx->height = luma_height;
ctx               198 libavcodec/indeo3.c         ctx->planes[p].pitch  = !p ? luma_pitch  : chroma_pitch;
ctx               199 libavcodec/indeo3.c         ctx->planes[p].width  = !p ? luma_width  : chroma_width;
ctx               200 libavcodec/indeo3.c         ctx->planes[p].height = !p ? luma_height : chroma_height;
ctx               202 libavcodec/indeo3.c         ctx->planes[p].buffers[0] = av_malloc(!p ? luma_size : chroma_size);
ctx               203 libavcodec/indeo3.c         ctx->planes[p].buffers[1] = av_malloc(!p ? luma_size : chroma_size);
ctx               205 libavcodec/indeo3.c         if (!ctx->planes[p].buffers[0] || !ctx->planes[p].buffers[1]) {
ctx               206 libavcodec/indeo3.c             free_frame_buffers(ctx);
ctx               211 libavcodec/indeo3.c         memset(ctx->planes[p].buffers[0], 0x40, ctx->planes[p].pitch);
ctx               212 libavcodec/indeo3.c         memset(ctx->planes[p].buffers[1], 0x40, ctx->planes[p].pitch);
ctx               215 libavcodec/indeo3.c         ctx->planes[p].pixels[0] = ctx->planes[p].buffers[0] + ctx->planes[p].pitch;
ctx               216 libavcodec/indeo3.c         ctx->planes[p].pixels[1] = ctx->planes[p].buffers[1] + ctx->planes[p].pitch;
ctx               217 libavcodec/indeo3.c         memset(ctx->planes[p].pixels[0], 0, ctx->planes[p].pitch * ctx->planes[p].height);
ctx               218 libavcodec/indeo3.c         memset(ctx->planes[p].pixels[1], 0, ctx->planes[p].pitch * ctx->planes[p].height);
ctx               232 libavcodec/indeo3.c static int copy_cell(Indeo3DecodeContext *ctx, Plane *plane, Cell *cell)
ctx               239 libavcodec/indeo3.c     dst         = plane->pixels[ctx->buf_sel] + offset_dst;
ctx               250 libavcodec/indeo3.c         av_log(ctx->avctx, AV_LOG_ERROR,
ctx               256 libavcodec/indeo3.c     src         = plane->pixels[ctx->buf_sel ^ 1] + offset;
ctx               264 libavcodec/indeo3.c                 ctx->hdsp.put_pixels_tab[0][0](dst, src, plane->pitch, h);
ctx               269 libavcodec/indeo3.c             ctx->hdsp.put_pixels_tab[1][0](dst, src, plane->pitch, h);
ctx               274 libavcodec/indeo3.c             ctx->hdsp.put_pixels_tab[2][0](dst, src, plane->pitch, h);
ctx               426 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               104 libavcodec/indeo4.c static int decode_pic_hdr(IVI45DecContext *ctx, AVCodecContext *avctx)
ctx               109 libavcodec/indeo4.c     if (get_bits(&ctx->gb, 18) != 0x3FFF8) {
ctx               114 libavcodec/indeo4.c     ctx->prev_frame_type = ctx->frame_type;
ctx               115 libavcodec/indeo4.c     ctx->frame_type      = get_bits(&ctx->gb, 3);
ctx               116 libavcodec/indeo4.c     if (ctx->frame_type == 7) {
ctx               117 libavcodec/indeo4.c         av_log(avctx, AV_LOG_ERROR, "Invalid frame type: %d\n", ctx->frame_type);
ctx               122 libavcodec/indeo4.c     if (ctx->frame_type == IVI4_FRAMETYPE_BIDIR)
ctx               123 libavcodec/indeo4.c         ctx->has_b_frames = 1;
ctx               126 libavcodec/indeo4.c     ctx->transp_status = get_bits1(&ctx->gb);
ctx               128 libavcodec/indeo4.c     if (ctx->transp_status) {
ctx               129 libavcodec/indeo4.c         ctx->has_transp = 1;
ctx               134 libavcodec/indeo4.c     if (get_bits1(&ctx->gb)) {
ctx               139 libavcodec/indeo4.c     ctx->data_size = get_bits1(&ctx->gb) ? get_bits(&ctx->gb, 24) : 0;
ctx               142 libavcodec/indeo4.c     if (ctx->frame_type >= IVI4_FRAMETYPE_NULL_FIRST) {
ctx               150 libavcodec/indeo4.c     if (get_bits1(&ctx->gb)) {
ctx               151 libavcodec/indeo4.c         skip_bits_long(&ctx->gb, 32);
ctx               155 libavcodec/indeo4.c     pic_size_indx = get_bits(&ctx->gb, 3);
ctx               157 libavcodec/indeo4.c         pic_conf.pic_height = get_bits(&ctx->gb, 16);
ctx               158 libavcodec/indeo4.c         pic_conf.pic_width  = get_bits(&ctx->gb, 16);
ctx               165 libavcodec/indeo4.c     if (get_bits1(&ctx->gb)) {
ctx               166 libavcodec/indeo4.c         pic_conf.tile_height = scale_tile_size(pic_conf.pic_height, get_bits(&ctx->gb, 4));
ctx               167 libavcodec/indeo4.c         pic_conf.tile_width  = scale_tile_size(pic_conf.pic_width,  get_bits(&ctx->gb, 4));
ctx               169 libavcodec/indeo4.c         ctx->uses_tiling = 1;
ctx               177 libavcodec/indeo4.c     if (get_bits(&ctx->gb, 2)) {
ctx               185 libavcodec/indeo4.c     pic_conf.luma_bands = decode_plane_subdivision(&ctx->gb);
ctx               188 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(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         skip_bits(&ctx->gb, 8);
ctx               251 libavcodec/indeo4.c     if (get_bits1(&ctx->gb)) {
ctx               255 libavcodec/indeo4.c     align_get_bits(&ctx->gb);
ctx               269 libavcodec/indeo4.c static int decode_band_hdr(IVI45DecContext *ctx, IVIBandDesc *band,
ctx               276 libavcodec/indeo4.c     plane    = get_bits(&ctx->gb, 2);
ctx               277 libavcodec/indeo4.c     band_num = get_bits(&ctx->gb, 4);
ctx               283 libavcodec/indeo4.c     band->is_empty = get_bits1(&ctx->gb);
ctx               288 libavcodec/indeo4.c         if (get_bits1(&ctx->gb))
ctx               289 libavcodec/indeo4.c             skip_bits(&ctx->gb, 16);
ctx               291 libavcodec/indeo4.c         band->is_halfpel = get_bits(&ctx->gb, 2);
ctx               299 libavcodec/indeo4.c             ctx->uses_fullpel = 1;
ctx               302 libavcodec/indeo4.c         band->checksum_present = get_bits1(&ctx->gb);
ctx               304 libavcodec/indeo4.c             band->checksum = get_bits(&ctx->gb, 16);
ctx               306 libavcodec/indeo4.c         indx = get_bits(&ctx->gb, 2);
ctx               314 libavcodec/indeo4.c         band->inherit_mv     = get_bits1(&ctx->gb);
ctx               315 libavcodec/indeo4.c         band->inherit_qdelta = get_bits1(&ctx->gb);
ctx               317 libavcodec/indeo4.c         band->glob_quant = get_bits(&ctx->gb, 5);
ctx               319 libavcodec/indeo4.c         if (!get_bits1(&ctx->gb) || ctx->frame_type == IVI4_FRAMETYPE_INTRA) {
ctx               320 libavcodec/indeo4.c             transform_id = get_bits(&ctx->gb, 5);
ctx               338 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             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               466 libavcodec/indeo4.c static int decode_mb_info(IVI45DecContext *ctx, IVIBandDesc *band,
ctx               479 libavcodec/indeo4.c     mb_type_bits = ctx->frame_type == IVI4_FRAMETYPE_BIDIR ? 2 : 1;
ctx               482 libavcodec/indeo4.c     mv_scale = (ctx->planes[0].bands[0].mb_size >> 3) - (band->mb_size >> 3);
ctx               500 libavcodec/indeo4.c             if (get_bits1(&ctx->gb)) {
ctx               501 libavcodec/indeo4.c                 if (ctx->frame_type == IVI4_FRAMETYPE_INTRA) {
ctx               509 libavcodec/indeo4.c                 if (!band->plane && !band->band_num && ctx->in_q) {
ctx               510 libavcodec/indeo4.c                     mb->q_delta = get_vlc2(&ctx->gb, ctx->mb_vlc.tab->table,
ctx               534 libavcodec/indeo4.c                 } else if (ctx->frame_type == IVI4_FRAMETYPE_INTRA ||
ctx               535 libavcodec/indeo4.c                            ctx->frame_type == IVI4_FRAMETYPE_INTRA1) {
ctx               538 libavcodec/indeo4.c                     mb->type = get_bits(&ctx->gb, mb_type_bits);
ctx               541 libavcodec/indeo4.c                 mb->cbp = get_bits(&ctx->gb, blks_per_mb);
ctx               547 libavcodec/indeo4.c                            ctx->in_q)) {
ctx               548 libavcodec/indeo4.c                     mb->q_delta = get_vlc2(&ctx->gb, ctx->mb_vlc.tab->table,
ctx               568 libavcodec/indeo4.c                         mv_delta = get_vlc2(&ctx->gb, ctx->mb_vlc.tab->table,
ctx               571 libavcodec/indeo4.c                         mv_delta = get_vlc2(&ctx->gb, ctx->mb_vlc.tab->table,
ctx               577 libavcodec/indeo4.c                             mv_delta = get_vlc2(&ctx->gb,
ctx               578 libavcodec/indeo4.c                                                 ctx->mb_vlc.tab->table,
ctx               581 libavcodec/indeo4.c                             mv_delta = get_vlc2(&ctx->gb,
ctx               582 libavcodec/indeo4.c                                                 ctx->mb_vlc.tab->table,
ctx               616 libavcodec/indeo4.c     align_get_bits(&ctx->gb);
ctx               627 libavcodec/indeo4.c static void switch_buffers(IVI45DecContext *ctx)
ctx               631 libavcodec/indeo4.c     switch (ctx->prev_frame_type) {
ctx               639 libavcodec/indeo4.c     switch (ctx->frame_type) {
ctx               648 libavcodec/indeo4.c         FFSWAP(int, ctx->dst_buf, ctx->ref_buf);
ctx               650 libavcodec/indeo4.c         FFSWAP(int, ctx->ref_buf, ctx->b_ref_buf);
ctx               651 libavcodec/indeo4.c         FFSWAP(int, ctx->dst_buf, ctx->ref_buf);
ctx               656 libavcodec/indeo4.c static int is_nonnull_frame(IVI45DecContext *ctx)
ctx               658 libavcodec/indeo4.c     return ctx->frame_type < IVI4_FRAMETYPE_NULL_FIRST;
ctx               664 libavcodec/indeo4.c     IVI45DecContext *ctx = avctx->priv_data;
ctx               669 libavcodec/indeo4.c     memcpy(ctx->rvmap_tabs, ff_ivi_rvmap_tabs, sizeof(ff_ivi_rvmap_tabs));
ctx               673 libavcodec/indeo4.c     ctx->pic_conf.pic_width  = 0;
ctx               674 libavcodec/indeo4.c     ctx->pic_conf.pic_height = 0;
ctx               678 libavcodec/indeo4.c     ctx->decode_pic_hdr   = decode_pic_hdr;
ctx               679 libavcodec/indeo4.c     ctx->decode_band_hdr  = decode_band_hdr;
ctx               680 libavcodec/indeo4.c     ctx->decode_mb_info   = decode_mb_info;
ctx               681 libavcodec/indeo4.c     ctx->switch_buffers   = switch_buffers;
ctx               682 libavcodec/indeo4.c     ctx->is_nonnull_frame = is_nonnull_frame;
ctx               684 libavcodec/indeo4.c     ctx->is_indeo4 = 1;
ctx               686 libavcodec/indeo4.c     ctx->dst_buf   = 0;
ctx               687 libavcodec/indeo4.c     ctx->ref_buf   = 1;
ctx               688 libavcodec/indeo4.c     ctx->b_ref_buf = 3; /* buffer 2 is used for scalability mode */
ctx               689 libavcodec/indeo4.c     ctx->p_frame = av_frame_alloc();
ctx               690 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(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_long(&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               330 libavcodec/indeo5.c     ctx->frame_num = get_bits(&ctx->gb, 8);
ctx               332 libavcodec/indeo5.c     if (ctx->frame_type == FRAMETYPE_INTRA) {
ctx               333 libavcodec/indeo5.c         if ((ret = decode_gop_header(ctx, avctx)) < 0) {
ctx               335 libavcodec/indeo5.c             ctx->gop_invalid = 1;
ctx               338 libavcodec/indeo5.c         ctx->gop_invalid = 0;
ctx               341 libavcodec/indeo5.c     if (ctx->frame_type == FRAMETYPE_INTER_SCAL && !ctx->is_scalable) {
ctx               343 libavcodec/indeo5.c         ctx->frame_type = FRAMETYPE_INTER;
ctx               347 libavcodec/indeo5.c     if (ctx->frame_type != FRAMETYPE_NULL) {
ctx               348 libavcodec/indeo5.c         ctx->frame_flags = get_bits(&ctx->gb, 8);
ctx               350 libavcodec/indeo5.c         ctx->pic_hdr_size = (ctx->frame_flags & 1) ? get_bits_long(&ctx->gb, 24) : 0;
ctx               352 libavcodec/indeo5.c         ctx->checksum = (ctx->frame_flags & 0x10) ? get_bits(&ctx->gb, 16) : 0;
ctx               355 libavcodec/indeo5.c         if (ctx->frame_flags & 0x20)
ctx               356 libavcodec/indeo5.c             skip_hdr_extension(&ctx->gb); /* XXX: untested */
ctx               359 libavcodec/indeo5.c         ret = ff_ivi_dec_huff_desc(&ctx->gb, ctx->frame_flags & 0x40,
ctx               360 libavcodec/indeo5.c                                    IVI_MB_HUFF, &ctx->mb_vlc, avctx);
ctx               364 libavcodec/indeo5.c         skip_bits(&ctx->gb, 3); /* FIXME: unknown meaning! */
ctx               367 libavcodec/indeo5.c     align_get_bits(&ctx->gb);
ctx               381 libavcodec/indeo5.c static int decode_band_hdr(IVI45DecContext *ctx, IVIBandDesc *band,
ctx               387 libavcodec/indeo5.c     band_flags = get_bits(&ctx->gb, 8);
ctx               394 libavcodec/indeo5.c     band->data_size = (ctx->frame_flags & 0x80) ? get_bits_long(&ctx->gb, 24) : 0;
ctx               404 libavcodec/indeo5.c         band->num_corr = get_bits(&ctx->gb, 8); /* get number of correction pairs */
ctx               413 libavcodec/indeo5.c             band->corr[i] = get_bits(&ctx->gb, 8);
ctx               417 libavcodec/indeo5.c     band->rvmap_sel = (band_flags & 0x40) ? get_bits(&ctx->gb, 3) : 8;
ctx               420 libavcodec/indeo5.c     ret = ff_ivi_dec_huff_desc(&ctx->gb, band_flags & 0x80, IVI_BLK_HUFF,
ctx               425 libavcodec/indeo5.c     band->checksum_present = get_bits1(&ctx->gb);
ctx               427 libavcodec/indeo5.c         band->checksum = get_bits(&ctx->gb, 16);
ctx               429 libavcodec/indeo5.c     band->glob_quant = get_bits(&ctx->gb, 5);
ctx               433 libavcodec/indeo5.c         align_get_bits(&ctx->gb);
ctx               434 libavcodec/indeo5.c         skip_hdr_extension(&ctx->gb);
ctx               437 libavcodec/indeo5.c     align_get_bits(&ctx->gb);
ctx               453 libavcodec/indeo5.c static int decode_mb_info(IVI45DecContext *ctx, IVIBandDesc *band,
ctx               476 libavcodec/indeo5.c     mv_scale = (ctx->planes[0].bands[0].mb_size >> 3) - (band->mb_size >> 3);
ctx               487 libavcodec/indeo5.c             if (get_bits1(&ctx->gb)) {
ctx               488 libavcodec/indeo5.c                 if (ctx->frame_type == FRAMETYPE_INTRA) {
ctx               496 libavcodec/indeo5.c                 if (!band->plane && !band->band_num && (ctx->frame_flags & 8)) {
ctx               497 libavcodec/indeo5.c                     mb->q_delta = get_vlc2(&ctx->gb, ctx->mb_vlc.tab->table,
ctx               516 libavcodec/indeo5.c                 } else if (ctx->frame_type == FRAMETYPE_INTRA) {
ctx               519 libavcodec/indeo5.c                     mb->type = get_bits1(&ctx->gb);
ctx               523 libavcodec/indeo5.c                 mb->cbp = get_bits(&ctx->gb, blks_per_mb);
ctx               530 libavcodec/indeo5.c                                            (ctx->frame_flags & 8))) {
ctx               531 libavcodec/indeo5.c                         mb->q_delta = get_vlc2(&ctx->gb, ctx->mb_vlc.tab->table,
ctx               551 libavcodec/indeo5.c                         mv_delta = get_vlc2(&ctx->gb, ctx->mb_vlc.tab->table,
ctx               554 libavcodec/indeo5.c                         mv_delta = get_vlc2(&ctx->gb, ctx->mb_vlc.tab->table,
ctx               581 libavcodec/indeo5.c     align_get_bits(&ctx->gb);
ctx               592 libavcodec/indeo5.c static void switch_buffers(IVI45DecContext *ctx)
ctx               594 libavcodec/indeo5.c     switch (ctx->prev_frame_type) {
ctx               597 libavcodec/indeo5.c         ctx->buf_switch ^= 1;
ctx               598 libavcodec/indeo5.c         ctx->dst_buf = ctx->buf_switch;
ctx               599 libavcodec/indeo5.c         ctx->ref_buf = ctx->buf_switch ^ 1;
ctx               602 libavcodec/indeo5.c         if (!ctx->inter_scal) {
ctx               603 libavcodec/indeo5.c             ctx->ref2_buf   = 2;
ctx               604 libavcodec/indeo5.c             ctx->inter_scal = 1;
ctx               606 libavcodec/indeo5.c         FFSWAP(int, ctx->dst_buf, ctx->ref2_buf);
ctx               607 libavcodec/indeo5.c         ctx->ref_buf = ctx->ref2_buf;
ctx               613 libavcodec/indeo5.c     switch (ctx->frame_type) {
ctx               615 libavcodec/indeo5.c         ctx->buf_switch = 0;
ctx               618 libavcodec/indeo5.c         ctx->inter_scal = 0;
ctx               619 libavcodec/indeo5.c         ctx->dst_buf = ctx->buf_switch;
ctx               620 libavcodec/indeo5.c         ctx->ref_buf = ctx->buf_switch ^ 1;
ctx               630 libavcodec/indeo5.c static int is_nonnull_frame(IVI45DecContext *ctx)
ctx               632 libavcodec/indeo5.c     return ctx->frame_type != FRAMETYPE_NULL;
ctx               641 libavcodec/indeo5.c     IVI45DecContext  *ctx = avctx->priv_data;
ctx               647 libavcodec/indeo5.c     memcpy(ctx->rvmap_tabs, ff_ivi_rvmap_tabs, sizeof(ff_ivi_rvmap_tabs));
ctx               652 libavcodec/indeo5.c     ctx->pic_conf.pic_width     = avctx->width;
ctx               653 libavcodec/indeo5.c     ctx->pic_conf.pic_height    = avctx->height;
ctx               654 libavcodec/indeo5.c     ctx->pic_conf.chroma_width  = (avctx->width  + 3) >> 2;
ctx               655 libavcodec/indeo5.c     ctx->pic_conf.chroma_height = (avctx->height + 3) >> 2;
ctx               656 libavcodec/indeo5.c     ctx->pic_conf.tile_width    = avctx->width;
ctx               657 libavcodec/indeo5.c     ctx->pic_conf.tile_height   = avctx->height;
ctx               658 libavcodec/indeo5.c     ctx->pic_conf.luma_bands    = ctx->pic_conf.chroma_bands = 1;
ctx               660 libavcodec/indeo5.c     result = ff_ivi_init_planes(ctx->planes, &ctx->pic_conf, 0);
ctx               666 libavcodec/indeo5.c     ctx->buf_switch = 0;
ctx               667 libavcodec/indeo5.c     ctx->inter_scal = 0;
ctx               669 libavcodec/indeo5.c     ctx->decode_pic_hdr   = decode_pic_hdr;
ctx               670 libavcodec/indeo5.c     ctx->decode_band_hdr  = decode_band_hdr;
ctx               671 libavcodec/indeo5.c     ctx->decode_mb_info   = decode_mb_info;
ctx               672 libavcodec/indeo5.c     ctx->switch_buffers   = switch_buffers;
ctx               673 libavcodec/indeo5.c     ctx->is_nonnull_frame = is_nonnull_frame;
ctx               675 libavcodec/indeo5.c     ctx->is_indeo4 = 0;
ctx               929 libavcodec/ivi_common.c static int decode_band(IVI45DecContext *ctx,
ctx               935 libavcodec/ivi_common.c     band->buf     = band->bufs[ctx->dst_buf];
ctx               940 libavcodec/ivi_common.c     if (ctx->is_indeo4 && ctx->frame_type == IVI4_FRAMETYPE_BIDIR) {
ctx               941 libavcodec/ivi_common.c         band->ref_buf   = band->bufs[ctx->b_ref_buf];
ctx               942 libavcodec/ivi_common.c         band->b_ref_buf = band->bufs[ctx->ref_buf];
ctx               944 libavcodec/ivi_common.c         band->ref_buf   = band->bufs[ctx->ref_buf];
ctx               947 libavcodec/ivi_common.c     band->data_ptr  = ctx->frame_data + (get_bits_count(&ctx->gb) >> 3);
ctx               949 libavcodec/ivi_common.c     result = ctx->decode_band_hdr(ctx, band, avctx);
ctx               961 libavcodec/ivi_common.c     band->rv_map = &ctx->rvmap_tabs[band->rvmap_sel];
ctx               975 libavcodec/ivi_common.c     pos = get_bits_count(&ctx->gb);
ctx               985 libavcodec/ivi_common.c         tile->is_empty = get_bits1(&ctx->gb);
ctx               988 libavcodec/ivi_common.c                                       (ctx->planes[0].bands[0].mb_size >> 3) - (band->mb_size >> 3));
ctx               993 libavcodec/ivi_common.c             tile->data_size = ivi_dec_tile_data_size(&ctx->gb);
ctx              1000 libavcodec/ivi_common.c             result = ctx->decode_mb_info(ctx, band, tile, avctx);
ctx              1004 libavcodec/ivi_common.c             result = ivi_decode_blocks(&ctx->gb, band, tile, avctx);
ctx              1011 libavcodec/ivi_common.c             if (((get_bits_count(&ctx->gb) - pos) >> 3) != tile->data_size) {
ctx              1047 libavcodec/ivi_common.c     align_get_bits(&ctx->gb);
ctx              1055 libavcodec/ivi_common.c     IVI45DecContext *ctx = avctx->priv_data;
ctx              1061 libavcodec/ivi_common.c     init_get_bits(&ctx->gb, buf, buf_size * 8);
ctx              1062 libavcodec/ivi_common.c     ctx->frame_data = buf;
ctx              1063 libavcodec/ivi_common.c     ctx->frame_size = buf_size;
ctx              1065 libavcodec/ivi_common.c     result = ctx->decode_pic_hdr(ctx, avctx);
ctx              1071 libavcodec/ivi_common.c     if (ctx->gop_invalid)
ctx              1074 libavcodec/ivi_common.c     if (ctx->is_indeo4 && ctx->frame_type == IVI4_FRAMETYPE_NULL_LAST) {
ctx              1075 libavcodec/ivi_common.c         if (ctx->got_p_frame) {
ctx              1076 libavcodec/ivi_common.c             av_frame_move_ref(data, ctx->p_frame);
ctx              1078 libavcodec/ivi_common.c             ctx->got_p_frame = 0;
ctx              1085 libavcodec/ivi_common.c     if (ctx->gop_flags & IVI5_IS_PROTECTED) {
ctx              1090 libavcodec/ivi_common.c     if (!ctx->planes[0].bands) {
ctx              1095 libavcodec/ivi_common.c     ctx->switch_buffers(ctx);
ctx              1099 libavcodec/ivi_common.c     if (ctx->is_nonnull_frame(ctx)) {
ctx              1100 libavcodec/ivi_common.c         ctx->buf_invalid[ctx->dst_buf] = 1;
ctx              1102 libavcodec/ivi_common.c             for (b = 0; b < ctx->planes[p].num_bands; b++) {
ctx              1103 libavcodec/ivi_common.c                 result = decode_band(ctx, &ctx->planes[p].bands[b], avctx);
ctx              1111 libavcodec/ivi_common.c         ctx->buf_invalid[ctx->dst_buf] = 0;
ctx              1113 libavcodec/ivi_common.c         if (ctx->is_scalable)
ctx              1117 libavcodec/ivi_common.c             if (!ctx->planes[p].bands[0].buf)
ctx              1121 libavcodec/ivi_common.c     if (ctx->buf_invalid[ctx->dst_buf])
ctx              1126 libavcodec/ivi_common.c     if (!ctx->is_nonnull_frame(ctx))
ctx              1129 libavcodec/ivi_common.c     result = ff_set_dimensions(avctx, ctx->planes[0].width, ctx->planes[0].height);
ctx              1136 libavcodec/ivi_common.c     if (ctx->is_scalable) {
ctx              1137 libavcodec/ivi_common.c         if (ctx->is_indeo4)
ctx              1138 libavcodec/ivi_common.c             ff_ivi_recompose_haar(&ctx->planes[0], frame->data[0], frame->linesize[0]);
ctx              1140 libavcodec/ivi_common.c             ff_ivi_recompose53   (&ctx->planes[0], frame->data[0], frame->linesize[0]);
ctx              1142 libavcodec/ivi_common.c         ivi_output_plane(&ctx->planes[0], frame->data[0], frame->linesize[0]);
ctx              1145 libavcodec/ivi_common.c     ivi_output_plane(&ctx->planes[2], frame->data[1], frame->linesize[1]);
ctx              1146 libavcodec/ivi_common.c     ivi_output_plane(&ctx->planes[1], frame->data[2], frame->linesize[2]);
ctx              1155 libavcodec/ivi_common.c     if (ctx->is_indeo4 && ctx->frame_type == IVI4_FRAMETYPE_INTRA) {
ctx              1159 libavcodec/ivi_common.c         while (get_bits(&ctx->gb, 8)) {
ctx              1160 libavcodec/ivi_common.c             if (get_bits_left(&ctx->gb) < 8)
ctx              1163 libavcodec/ivi_common.c         left = get_bits_count(&ctx->gb) & 0x18;
ctx              1164 libavcodec/ivi_common.c         skip_bits_long(&ctx->gb, 64 - left);
ctx              1165 libavcodec/ivi_common.c         if (get_bits_left(&ctx->gb) > 18 &&
ctx              1166 libavcodec/ivi_common.c             show_bits_long(&ctx->gb, 21) == 0xBFFF8) { // syncheader + inter type
ctx              1168 libavcodec/ivi_common.c             pkt.data = avpkt->data + (get_bits_count(&ctx->gb) >> 3);
ctx              1169 libavcodec/ivi_common.c             pkt.size = get_bits_left(&ctx->gb) >> 3;
ctx              1170 libavcodec/ivi_common.c             ff_ivi_decode_frame(avctx, ctx->p_frame, &ctx->got_p_frame, &pkt);
ctx              1182 libavcodec/ivi_common.c     IVI45DecContext *ctx = avctx->priv_data;
ctx              1184 libavcodec/ivi_common.c     ivi_free_buffers(&ctx->planes[0]);
ctx              1186 libavcodec/ivi_common.c     if (ctx->mb_vlc.cust_tab.table)
ctx              1187 libavcodec/ivi_common.c         ff_free_vlc(&ctx->mb_vlc.cust_tab);
ctx              1190 libavcodec/ivi_common.c     if (ctx->is_indeo4) {
ctx              1191 libavcodec/ivi_common.c     if (ctx->is_scalable)
ctx              1193 libavcodec/ivi_common.c     if (ctx->uses_tiling)
ctx              1195 libavcodec/ivi_common.c     if (ctx->has_b_frames)
ctx              1197 libavcodec/ivi_common.c     if (ctx->has_transp)
ctx              1199 libavcodec/ivi_common.c     if (ctx->uses_haar)
ctx              1201 libavcodec/ivi_common.c     if (ctx->uses_fullpel)
ctx              1206 libavcodec/ivi_common.c     av_frame_free(&ctx->p_frame);
ctx               261 libavcodec/ivi_common.h     int             (*decode_pic_hdr)  (struct IVI45DecContext *ctx, AVCodecContext *avctx);
ctx               262 libavcodec/ivi_common.h     int             (*decode_band_hdr) (struct IVI45DecContext *ctx, IVIBandDesc *band, AVCodecContext *avctx);
ctx               263 libavcodec/ivi_common.h     int             (*decode_mb_info)  (struct IVI45DecContext *ctx, IVIBandDesc *band, IVITile *tile, AVCodecContext *avctx);
ctx               264 libavcodec/ivi_common.h     void            (*switch_buffers)  (struct IVI45DecContext *ctx);
ctx               265 libavcodec/ivi_common.h     int             (*is_nonnull_frame)(struct IVI45DecContext *ctx);
ctx               259 libavcodec/jpeg2000.h                                AVCodecContext *ctx);
ctx               416 libavcodec/jpeglsenc.c static av_cold int encode_init_ls(AVCodecContext *ctx)
ctx               418 libavcodec/jpeglsenc.c     ctx->coded_frame = av_frame_alloc();
ctx               419 libavcodec/jpeglsenc.c     if (!ctx->coded_frame)
ctx               422 libavcodec/jpeglsenc.c     ctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
ctx               423 libavcodec/jpeglsenc.c     ctx->coded_frame->key_frame = 1;
ctx               425 libavcodec/jpeglsenc.c     if (ctx->pix_fmt != AV_PIX_FMT_GRAY8  &&
ctx               426 libavcodec/jpeglsenc.c         ctx->pix_fmt != AV_PIX_FMT_GRAY16 &&
ctx               427 libavcodec/jpeglsenc.c         ctx->pix_fmt != AV_PIX_FMT_RGB24  &&
ctx               428 libavcodec/jpeglsenc.c         ctx->pix_fmt != AV_PIX_FMT_BGR24) {
ctx               429 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               273 libavcodec/kmvc.c     bytestream2_init(&ctx->g, avpkt->data, avpkt->size);
ctx               278 libavcodec/kmvc.c     header = bytestream2_get_byte(&ctx->g);
ctx               281 libavcodec/kmvc.c     if (bytestream2_peek_byte(&ctx->g) == 127) {
ctx               282 libavcodec/kmvc.c         bytestream2_skip(&ctx->g, 3);
ctx               284 libavcodec/kmvc.c             ctx->pal[i + (header & 0x81)] = 0xFFU << 24 | bytestream2_get_be24(&ctx->g);
ctx               285 libavcodec/kmvc.c             bytestream2_skip(&ctx->g, 1);
ctx               287 libavcodec/kmvc.c         bytestream2_seek(&ctx->g, -127 * 4 - 3, SEEK_CUR);
ctx               301 libavcodec/kmvc.c         for (i = 1; i <= ctx->palsize; i++) {
ctx               302 libavcodec/kmvc.c             ctx->pal[i] = 0xFFU << 24 | bytestream2_get_be24(&ctx->g);
ctx               308 libavcodec/kmvc.c         memcpy(ctx->pal, pal, AVPALETTE_SIZE);
ctx               311 libavcodec/kmvc.c     if (ctx->setpal) {
ctx               312 libavcodec/kmvc.c         ctx->setpal = 0;
ctx               317 libavcodec/kmvc.c     memcpy(frame->data[1], ctx->pal, 1024);
ctx               319 libavcodec/kmvc.c     blocksize = bytestream2_get_byte(&ctx->g);
ctx               325 libavcodec/kmvc.c     memset(ctx->cur, 0, 320 * 200);
ctx               329 libavcodec/kmvc.c         memcpy(ctx->cur, ctx->prev, 320 * 200);
ctx               332 libavcodec/kmvc.c         kmvc_decode_intra_8x8(ctx, avctx->width, avctx->height);
ctx               335 libavcodec/kmvc.c         kmvc_decode_inter_8x8(ctx, avctx->width, avctx->height);
ctx               343 libavcodec/kmvc.c     src = ctx->cur;
ctx               351 libavcodec/kmvc.c     if (ctx->cur == ctx->frm0) {
ctx               352 libavcodec/kmvc.c         ctx->cur = ctx->frm1;
ctx               353 libavcodec/kmvc.c         ctx->prev = ctx->frm0;
ctx               355 libavcodec/kmvc.c         ctx->cur = ctx->frm0;
ctx               356 libavcodec/kmvc.c         ctx->prev = ctx->frm1;
ctx               246 libavcodec/libopenjpegdec.c     LibOpenJPEGContext *ctx = avctx->priv_data;
ctx               248 libavcodec/libopenjpegdec.c     opj_set_default_decoder_parameters(&ctx->dec_params);
ctx               258 libavcodec/libopenjpegdec.c     LibOpenJPEGContext *ctx = avctx->priv_data;
ctx               290 libavcodec/libopenjpegdec.c     ctx->dec_params.cp_limit_decoding = LIMIT_TO_MAIN_HEADER;
ctx               291 libavcodec/libopenjpegdec.c     ctx->dec_params.cp_layer          = ctx->lowqual;
ctx               293 libavcodec/libopenjpegdec.c     opj_setup_decoder(dec, &ctx->dec_params);
ctx               338 libavcodec/libopenjpegdec.c     ctx->dec_params.cp_limit_decoding = NO_LIMITATION;
ctx               339 libavcodec/libopenjpegdec.c     ctx->dec_params.cp_reduce = avctx->lowres;
ctx               341 libavcodec/libopenjpegdec.c     opj_setup_decoder(dec, &ctx->dec_params);
ctx               215 libavcodec/libopenjpegenc.c     LibOpenJPEGContext *ctx = avctx->priv_data;
ctx               218 libavcodec/libopenjpegenc.c     opj_set_default_encoder_parameters(&ctx->enc_params);
ctx               220 libavcodec/libopenjpegenc.c     ctx->enc_params.cp_rsiz = ctx->profile;
ctx               221 libavcodec/libopenjpegenc.c     ctx->enc_params.mode = !!avctx->global_quality;
ctx               222 libavcodec/libopenjpegenc.c     ctx->enc_params.cp_cinema = ctx->cinema_mode;
ctx               223 libavcodec/libopenjpegenc.c     ctx->enc_params.prog_order = ctx->prog_order;
ctx               224 libavcodec/libopenjpegenc.c     ctx->enc_params.numresolution = ctx->numresolution;
ctx               225 libavcodec/libopenjpegenc.c     ctx->enc_params.cp_disto_alloc = ctx->disto_alloc;
ctx               226 libavcodec/libopenjpegenc.c     ctx->enc_params.cp_fixed_alloc = ctx->fixed_alloc;
ctx               227 libavcodec/libopenjpegenc.c     ctx->enc_params.cp_fixed_quality = ctx->fixed_quality;
ctx               228 libavcodec/libopenjpegenc.c     ctx->enc_params.tcp_numlayers = ctx->numlayers;
ctx               229 libavcodec/libopenjpegenc.c     ctx->enc_params.tcp_rates[0] = FFMAX(avctx->compression_level, 0) * 2;
ctx               231 libavcodec/libopenjpegenc.c     if (ctx->cinema_mode > 0) {
ctx               232 libavcodec/libopenjpegenc.c         cinema_parameters(&ctx->enc_params);
ctx               235 libavcodec/libopenjpegenc.c     ctx->image = mj2_create_image(avctx, &ctx->enc_params);
ctx               236 libavcodec/libopenjpegenc.c     if (!ctx->image) {
ctx               251 libavcodec/libopenjpegenc.c     opj_image_destroy(ctx->image);
ctx               252 libavcodec/libopenjpegenc.c     ctx->image = NULL;
ctx               463 libavcodec/libopenjpegenc.c     LibOpenJPEGContext *ctx = avctx->priv_data;
ctx               464 libavcodec/libopenjpegenc.c     opj_image_t *image      = ctx->image;
ctx               560 libavcodec/libopenjpegenc.c     compress = opj_create_compress(ctx->format);
ctx               566 libavcodec/libopenjpegenc.c     opj_setup_encoder(compress, &ctx->enc_params, image);
ctx               574 libavcodec/libopenjpegenc.c     memset(&ctx->event_mgr, 0, sizeof(opj_event_mgr_t));
ctx               575 libavcodec/libopenjpegenc.c     ctx->event_mgr.info_handler    = info_callback;
ctx               576 libavcodec/libopenjpegenc.c     ctx->event_mgr.error_handler   = error_callback;
ctx               577 libavcodec/libopenjpegenc.c     ctx->event_mgr.warning_handler = warning_callback;
ctx               578 libavcodec/libopenjpegenc.c     opj_set_event_mgr((opj_common_ptr) compress, &ctx->event_mgr, avctx);
ctx               604 libavcodec/libopenjpegenc.c     LibOpenJPEGContext *ctx = avctx->priv_data;
ctx               606 libavcodec/libopenjpegenc.c     opj_image_destroy(ctx->image);
ctx               607 libavcodec/libopenjpegenc.c     ctx->image = NULL;
ctx                43 libavcodec/libvpxdec.c     VP8Context *ctx = avctx->priv_data;
ctx                52 libavcodec/libvpxdec.c     if (vpx_codec_dec_init(&ctx->decoder, iface, &deccfg, 0) != VPX_CODEC_OK) {
ctx                53 libavcodec/libvpxdec.c         const char *error = vpx_codec_error(&ctx->decoder);
ctx               118 libavcodec/libvpxdec.c     VP8Context *ctx = avctx->priv_data;
ctx               124 libavcodec/libvpxdec.c     if (vpx_codec_decode(&ctx->decoder, avpkt->data, avpkt->size, NULL, 0) !=
ctx               126 libavcodec/libvpxdec.c         const char *error  = vpx_codec_error(&ctx->decoder);
ctx               127 libavcodec/libvpxdec.c         const char *detail = vpx_codec_error_detail(&ctx->decoder);
ctx               136 libavcodec/libvpxdec.c     if ((img = vpx_codec_get_frame(&ctx->decoder, &iter))) {
ctx               166 libavcodec/libvpxdec.c     VP8Context *ctx = avctx->priv_data;
ctx               167 libavcodec/libvpxdec.c     vpx_codec_destroy(&ctx->decoder);
ctx               134 libavcodec/libvpxenc.c     VP8Context *ctx = avctx->priv_data;
ctx               135 libavcodec/libvpxenc.c     const char *error  = vpx_codec_error(&ctx->encoder);
ctx               136 libavcodec/libvpxenc.c     const char *detail = vpx_codec_error_detail(&ctx->encoder);
ctx               230 libavcodec/libvpxenc.c     VP8Context *ctx = avctx->priv_data;
ctx               238 libavcodec/libvpxenc.c     res = vpx_codec_control(&ctx->encoder, id, val);
ctx               250 libavcodec/libvpxenc.c     VP8Context *ctx = avctx->priv_data;
ctx               252 libavcodec/libvpxenc.c     vpx_codec_destroy(&ctx->encoder);
ctx               253 libavcodec/libvpxenc.c     if (ctx->is_alpha)
ctx               254 libavcodec/libvpxenc.c         vpx_codec_destroy(&ctx->encoder_alpha);
ctx               255 libavcodec/libvpxenc.c     av_freep(&ctx->twopass_stats.buf);
ctx               258 libavcodec/libvpxenc.c     free_frame_list(ctx->coded_frame_list);
ctx               265 libavcodec/libvpxenc.c     VP8Context *ctx = avctx->priv_data;
ctx               275 libavcodec/libvpxenc.c         ctx->is_alpha = 1;
ctx               296 libavcodec/libvpxenc.c     enccfg.g_lag_in_frames= ctx->lag_in_frames;
ctx               308 libavcodec/libvpxenc.c     } else if (ctx->crf >= 0) {
ctx               343 libavcodec/libvpxenc.c         if (ctx->crf < enccfg.rc_min_quantizer || ctx->crf > enccfg.rc_max_quantizer) {
ctx               346 libavcodec/libvpxenc.c                        ctx->crf, enccfg.rc_min_quantizer, enccfg.rc_max_quantizer);
ctx               387 libavcodec/libvpxenc.c         ctx->twopass_stats.sz  = strlen(avctx->stats_in) * 3 / 4;
ctx               388 libavcodec/libvpxenc.c         ctx->twopass_stats.buf = av_malloc(ctx->twopass_stats.sz);
ctx               389 libavcodec/libvpxenc.c         if (!ctx->twopass_stats.buf) {
ctx               392 libavcodec/libvpxenc.c                    ctx->twopass_stats.sz);
ctx               395 libavcodec/libvpxenc.c         decode_size = av_base64_decode(ctx->twopass_stats.buf, avctx->stats_in,
ctx               396 libavcodec/libvpxenc.c                                        ctx->twopass_stats.sz);
ctx               402 libavcodec/libvpxenc.c         ctx->twopass_stats.sz      = decode_size;
ctx               403 libavcodec/libvpxenc.c         enccfg.rc_twopass_stats_in = ctx->twopass_stats;
ctx               412 libavcodec/libvpxenc.c     enccfg.g_error_resilient = ctx->error_resilient || ctx->flags & VP8F_ERROR_RESILIENT;
ctx               416 libavcodec/libvpxenc.c     res = vpx_codec_enc_init(&ctx->encoder, iface, &enccfg, flags);
ctx               422 libavcodec/libvpxenc.c     if (ctx->is_alpha) {
ctx               424 libavcodec/libvpxenc.c         res = vpx_codec_enc_init(&ctx->encoder_alpha, iface, &enccfg_alpha, flags);
ctx               433 libavcodec/libvpxenc.c     codecctl_int(avctx, VP8E_SET_CPUUSED,          ctx->cpu_used);
ctx               434 libavcodec/libvpxenc.c     if (ctx->flags & VP8F_AUTO_ALT_REF)
ctx               435 libavcodec/libvpxenc.c         ctx->auto_alt_ref = 1;
ctx               436 libavcodec/libvpxenc.c     if (ctx->auto_alt_ref >= 0)
ctx               437 libavcodec/libvpxenc.c         codecctl_int(avctx, VP8E_SET_ENABLEAUTOALTREF, ctx->auto_alt_ref);
ctx               438 libavcodec/libvpxenc.c     if (ctx->arnr_max_frames >= 0)
ctx               439 libavcodec/libvpxenc.c         codecctl_int(avctx, VP8E_SET_ARNR_MAXFRAMES,   ctx->arnr_max_frames);
ctx               440 libavcodec/libvpxenc.c     if (ctx->arnr_strength >= 0)
ctx               441 libavcodec/libvpxenc.c         codecctl_int(avctx, VP8E_SET_ARNR_STRENGTH,    ctx->arnr_strength);
ctx               442 libavcodec/libvpxenc.c     if (ctx->arnr_type >= 0)
ctx               443 libavcodec/libvpxenc.c         codecctl_int(avctx, VP8E_SET_ARNR_TYPE,        ctx->arnr_type);
ctx               452 libavcodec/libvpxenc.c         ctx->static_thresh = avctx->mb_threshold;
ctx               456 libavcodec/libvpxenc.c     codecctl_int(avctx, VP8E_SET_STATIC_THRESHOLD,  ctx->static_thresh);
ctx               457 libavcodec/libvpxenc.c     if (ctx->crf >= 0)
ctx               458 libavcodec/libvpxenc.c         codecctl_int(avctx, VP8E_SET_CQ_LEVEL,          ctx->crf);
ctx               459 libavcodec/libvpxenc.c     if (ctx->max_intra_rate >= 0)
ctx               460 libavcodec/libvpxenc.c         codecctl_int(avctx, VP8E_SET_MAX_INTRA_BITRATE_PCT, ctx->max_intra_rate);
ctx               464 libavcodec/libvpxenc.c         if (ctx->lossless >= 0)
ctx               465 libavcodec/libvpxenc.c             codecctl_int(avctx, VP9E_SET_LOSSLESS, ctx->lossless);
ctx               466 libavcodec/libvpxenc.c         if (ctx->tile_columns >= 0)
ctx               467 libavcodec/libvpxenc.c             codecctl_int(avctx, VP9E_SET_TILE_COLUMNS, ctx->tile_columns);
ctx               468 libavcodec/libvpxenc.c         if (ctx->tile_rows >= 0)
ctx               469 libavcodec/libvpxenc.c             codecctl_int(avctx, VP9E_SET_TILE_ROWS, ctx->tile_rows);
ctx               470 libavcodec/libvpxenc.c         if (ctx->frame_parallel >= 0)
ctx               471 libavcodec/libvpxenc.c             codecctl_int(avctx, VP9E_SET_FRAME_PARALLEL_DECODING, ctx->frame_parallel);
ctx               472 libavcodec/libvpxenc.c         if (ctx->aq_mode >= 0)
ctx               473 libavcodec/libvpxenc.c             codecctl_int(avctx, VP9E_SET_AQ_MODE, ctx->aq_mode);
ctx               477 libavcodec/libvpxenc.c     av_log(avctx, AV_LOG_DEBUG, "Using deadline: %d\n", ctx->deadline);
ctx               480 libavcodec/libvpxenc.c     vpx_img_wrap(&ctx->rawimg, VPX_IMG_FMT_I420, avctx->width, avctx->height, 1,
ctx               483 libavcodec/libvpxenc.c     if (ctx->is_alpha)
ctx               484 libavcodec/libvpxenc.c         vpx_img_wrap(&ctx->rawimg_alpha, VPX_IMG_FMT_I420, avctx->width, avctx->height, 1,
ctx               499 libavcodec/libvpxenc.c                              VP8Context *ctx)
ctx               509 libavcodec/libvpxenc.c         dst->frame_number = ++ctx->frame_number;
ctx               510 libavcodec/libvpxenc.c         dst->have_sse = ctx->have_sse;
ctx               511 libavcodec/libvpxenc.c         if (ctx->have_sse) {
ctx               516 libavcodec/libvpxenc.c             memcpy(dst->sse, ctx->sse, sizeof(dst->sse));
ctx               517 libavcodec/libvpxenc.c             ctx->have_sse = 0;
ctx               597 libavcodec/libvpxenc.c     VP8Context *ctx = avctx->priv_data;
ctx               604 libavcodec/libvpxenc.c     if (ctx->coded_frame_list) {
ctx               605 libavcodec/libvpxenc.c         struct FrameListData *cx_frame = ctx->coded_frame_list;
ctx               610 libavcodec/libvpxenc.c         ctx->coded_frame_list = cx_frame->next;
ctx               616 libavcodec/libvpxenc.c     while ((pkt = vpx_codec_get_cx_data(&ctx->encoder, &iter)) &&
ctx               617 libavcodec/libvpxenc.c             (!ctx->is_alpha ||
ctx               618 libavcodec/libvpxenc.c              (ctx->is_alpha && (pkt_alpha = vpx_codec_get_cx_data(&ctx->encoder_alpha, &iter_alpha))))) {
ctx               626 libavcodec/libvpxenc.c                 av_assert0(!ctx->coded_frame_list);
ctx               627 libavcodec/libvpxenc.c                 cx_pktcpy(&cx_frame, pkt, pkt_alpha, ctx);
ctx               640 libavcodec/libvpxenc.c                 cx_pktcpy(cx_frame, pkt, pkt_alpha, ctx);
ctx               651 libavcodec/libvpxenc.c                 if (ctx->is_alpha) {
ctx               662 libavcodec/libvpxenc.c                 coded_frame_add(&ctx->coded_frame_list, cx_frame);
ctx               666 libavcodec/libvpxenc.c             struct vpx_fixed_buf *stats = &ctx->twopass_stats;
ctx               681 libavcodec/libvpxenc.c             av_assert0(!ctx->have_sse);
ctx               682 libavcodec/libvpxenc.c             ctx->sse[0] = pkt->data.psnr.sse[0];
ctx               683 libavcodec/libvpxenc.c             ctx->sse[1] = pkt->data.psnr.sse[1];
ctx               684 libavcodec/libvpxenc.c             ctx->sse[2] = pkt->data.psnr.sse[2];
ctx               685 libavcodec/libvpxenc.c             ctx->sse[3] = pkt->data.psnr.sse[3];
ctx               686 libavcodec/libvpxenc.c             ctx->have_sse = 1;
ctx               700 libavcodec/libvpxenc.c     VP8Context *ctx = avctx->priv_data;
ctx               708 libavcodec/libvpxenc.c         rawimg                      = &ctx->rawimg;
ctx               715 libavcodec/libvpxenc.c         if (ctx->is_alpha) {
ctx               717 libavcodec/libvpxenc.c             rawimg_alpha = &ctx->rawimg_alpha;
ctx               739 libavcodec/libvpxenc.c     res = vpx_codec_encode(&ctx->encoder, rawimg, timestamp,
ctx               740 libavcodec/libvpxenc.c                            avctx->ticks_per_frame, flags, ctx->deadline);
ctx               746 libavcodec/libvpxenc.c     if (ctx->is_alpha) {
ctx               747 libavcodec/libvpxenc.c         res = vpx_codec_encode(&ctx->encoder_alpha, rawimg_alpha, timestamp,
ctx               748 libavcodec/libvpxenc.c                                avctx->ticks_per_frame, flags, ctx->deadline);
ctx               758 libavcodec/libvpxenc.c         unsigned int b64_size = AV_BASE64_SIZE(ctx->twopass_stats.sz);
ctx               766 libavcodec/libvpxenc.c         av_base64_encode(avctx->stats_out, b64_size, ctx->twopass_stats.buf,
ctx               767 libavcodec/libvpxenc.c                          ctx->twopass_stats.sz);
ctx               103 libavcodec/libx264.c static int encode_nals(AVCodecContext *ctx, AVPacket *pkt,
ctx               106 libavcodec/libx264.c     X264Context *x4 = ctx->priv_data;
ctx               116 libavcodec/libx264.c     if ((ret = ff_alloc_packet2(ctx, pkt, size)) < 0)
ctx               124 libavcodec/libx264.c             av_log(ctx, AV_LOG_ERROR, "Error: nal buffer is too small\n");
ctx               160 libavcodec/libx264.c static int X264_frame(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame,
ctx               163 libavcodec/libx264.c     X264Context *x4 = ctx->priv_data;
ctx               173 libavcodec/libx264.c     x4->pic.img.i_plane = avfmt2_num_planes(ctx->pix_fmt);
ctx               193 libavcodec/libx264.c         if (x4->params.vui.i_sar_height != ctx->sample_aspect_ratio.den ||
ctx               194 libavcodec/libx264.c             x4->params.vui.i_sar_width  != ctx->sample_aspect_ratio.num) {
ctx               195 libavcodec/libx264.c             x4->params.vui.i_sar_height = ctx->sample_aspect_ratio.den;
ctx               196 libavcodec/libx264.c             x4->params.vui.i_sar_width  = ctx->sample_aspect_ratio.num;
ctx               200 libavcodec/libx264.c         if (x4->params.rc.i_vbv_buffer_size != ctx->rc_buffer_size / 1000 ||
ctx               201 libavcodec/libx264.c             x4->params.rc.i_vbv_max_bitrate != ctx->rc_max_rate    / 1000) {
ctx               202 libavcodec/libx264.c             x4->params.rc.i_vbv_buffer_size = ctx->rc_buffer_size / 1000;
ctx               203 libavcodec/libx264.c             x4->params.rc.i_vbv_max_bitrate = ctx->rc_max_rate    / 1000;
ctx               208 libavcodec/libx264.c             x4->params.rc.i_bitrate != ctx->bit_rate / 1000) {
ctx               209 libavcodec/libx264.c             x4->params.rc.i_bitrate = ctx->bit_rate / 1000;
ctx               273 libavcodec/libx264.c         ret = encode_nals(ctx, pkt, nal, nnal);
ctx               284 libavcodec/libx264.c         ctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
ctx               287 libavcodec/libx264.c         ctx->coded_frame->pict_type = AV_PICTURE_TYPE_P;
ctx               291 libavcodec/libx264.c         ctx->coded_frame->pict_type = AV_PICTURE_TYPE_B;
ctx               297 libavcodec/libx264.c         ctx->coded_frame->quality = (pic_out.i_qpplus1 - 1) * FF_QP2LAMBDA;
ctx                66 libavcodec/libx265.c     libx265Context *ctx = avctx->priv_data;
ctx                70 libavcodec/libx265.c     x265_param_free(ctx->params);
ctx                72 libavcodec/libx265.c     if (ctx->encoder)
ctx                73 libavcodec/libx265.c         x265_encoder_close(ctx->encoder);
ctx                80 libavcodec/libx265.c     libx265Context *ctx = avctx->priv_data;
ctx                96 libavcodec/libx265.c     ctx->params = x265_param_alloc();
ctx                97 libavcodec/libx265.c     if (!ctx->params) {
ctx               102 libavcodec/libx265.c     if (x265_param_default_preset(ctx->params, ctx->preset, ctx->tune) < 0) {
ctx               107 libavcodec/libx265.c     ctx->params->frameNumThreads = avctx->thread_count;
ctx               108 libavcodec/libx265.c     ctx->params->fpsNum          = avctx->time_base.den;
ctx               109 libavcodec/libx265.c     ctx->params->fpsDenom        = avctx->time_base.num * avctx->ticks_per_frame;
ctx               110 libavcodec/libx265.c     ctx->params->sourceWidth     = avctx->width;
ctx               111 libavcodec/libx265.c     ctx->params->sourceHeight    = avctx->height;
ctx               112 libavcodec/libx265.c     ctx->params->bEnablePsnr     = !!(avctx->flags & CODEC_FLAG_PSNR);
ctx               122 libavcodec/libx265.c         if (x265_param_parse(ctx->params, "sar", sar) == X265_PARAM_BAD_VALUE) {
ctx               131 libavcodec/libx265.c         ctx->params->internalCsp = X265_CSP_I420;
ctx               135 libavcodec/libx265.c         ctx->params->internalCsp = X265_CSP_I422;
ctx               139 libavcodec/libx265.c         ctx->params->internalCsp = X265_CSP_I444;
ctx               143 libavcodec/libx265.c     if (ctx->crf >= 0) {
ctx               146 libavcodec/libx265.c         snprintf(crf, sizeof(crf), "%2.2f", ctx->crf);
ctx               147 libavcodec/libx265.c         if (x265_param_parse(ctx->params, "crf", crf) == X265_PARAM_BAD_VALUE) {
ctx               148 libavcodec/libx265.c             av_log(avctx, AV_LOG_ERROR, "Invalid crf: %2.2f.\n", ctx->crf);
ctx               152 libavcodec/libx265.c         ctx->params->rc.bitrate         = avctx->bit_rate / 1000;
ctx               153 libavcodec/libx265.c         ctx->params->rc.rateControlMode = X265_RC_ABR;
ctx               157 libavcodec/libx265.c         ctx->params->bRepeatHeaders = 1;
ctx               159 libavcodec/libx265.c     if (ctx->x265_opts) {
ctx               163 libavcodec/libx265.c         if (!av_dict_parse_string(&dict, ctx->x265_opts, "=", ":", 0)) {
ctx               165 libavcodec/libx265.c                 int parse_ret = x265_param_parse(ctx->params, en->key, en->value);
ctx               184 libavcodec/libx265.c     ctx->encoder = x265_encoder_open(ctx->params);
ctx               185 libavcodec/libx265.c     if (!ctx->encoder) {
ctx               195 libavcodec/libx265.c         avctx->extradata_size = x265_encoder_headers(ctx->encoder, &nal, &nnal);
ctx               219 libavcodec/libx265.c     libx265Context *ctx = avctx->priv_data;
ctx               229 libavcodec/libx265.c     x265_picture_init(ctx->params, &x265pic);
ctx               246 libavcodec/libx265.c     ret = x265_encoder_encode(ctx->encoder, &nal, &nnal,
ctx                78 libavcodec/libxavs.c static int encode_nals(AVCodecContext *ctx, AVPacket *pkt,
ctx                81 libavcodec/libxavs.c     XavsContext *x4 = ctx->priv_data;
ctx                91 libavcodec/libxavs.c     if ((ret = ff_alloc_packet2(ctx, pkt, size)) < 0)
ctx                94 libavcodec/libzvbi-teletextdec.c static int create_ass_text(TeletextContext *ctx, const char *text, char **ass)
ctx                98 libavcodec/libzvbi-teletextdec.c     const int ts_start    = av_rescale_q(ctx->pts,          AV_TIME_BASE_Q,        (AVRational){1, 100});
ctx                99 libavcodec/libzvbi-teletextdec.c     const int ts_duration = av_rescale_q(ctx->sub_duration, (AVRational){1, 1000}, (AVRational){1, 100});
ctx               128 libavcodec/libzvbi-teletextdec.c static int gen_sub_text(TeletextContext *ctx, AVSubtitleRect *sub_rect, vbi_page *page, int chop_top)
ctx               143 libavcodec/libzvbi-teletextdec.c         av_log(ctx, AV_LOG_ERROR, "vbi_print error\n");
ctx               151 libavcodec/libzvbi-teletextdec.c     if (ctx->chop_spaces) {
ctx               182 libavcodec/libzvbi-teletextdec.c         if ((ret = create_ass_text(ctx, buf.str, &sub_rect->ass)) < 0) {
ctx               186 libavcodec/libzvbi-teletextdec.c         av_log(ctx, AV_LOG_DEBUG, "subtext:%s:txetbus\n", sub_rect->ass);
ctx               194 libavcodec/libzvbi-teletextdec.c static void fix_transparency(TeletextContext *ctx, AVSubtitleRect *sub_rect, vbi_page *page,
ctx               212 libavcodec/libzvbi-teletextdec.c                     if (!ctx->transparent_bg)
ctx               226 libavcodec/libzvbi-teletextdec.c static int gen_sub_bitmap(TeletextContext *ctx, AVSubtitleRect *sub_rect, vbi_page *page, int chop_top)
ctx               243 libavcodec/libzvbi-teletextdec.c         av_log(ctx, AV_LOG_DEBUG, "dropping empty page %3x\n", page->pgno);
ctx               258 libavcodec/libzvbi-teletextdec.c     fix_transparency(ctx, sub_rect, page, chop_top, cmax, resx, resy);
ctx               259 libavcodec/libzvbi-teletextdec.c     sub_rect->x = ctx->x_offset;
ctx               260 libavcodec/libzvbi-teletextdec.c     sub_rect->y = ctx->y_offset + chop_top * BITMAP_CHAR_HEIGHT;
ctx               277 libavcodec/libzvbi-teletextdec.c         av_dlog(ctx, "palette %0x\n", ((uint32_t *)sub_rect->pict.data[1])[ci]);
ctx               286 libavcodec/libzvbi-teletextdec.c     TeletextContext *ctx = user_data;
ctx               297 libavcodec/libzvbi-teletextdec.c     av_log(ctx, AV_LOG_DEBUG, "decoded page %s.%02x\n",
ctx               300 libavcodec/libzvbi-teletextdec.c     if (strcmp(ctx->pgno, "*") && !strstr(ctx->pgno, pgno_str))
ctx               302 libavcodec/libzvbi-teletextdec.c     if (ctx->handler_ret < 0)
ctx               305 libavcodec/libzvbi-teletextdec.c     res = vbi_fetch_vt_page(ctx->vbi, &page,
ctx               318 libavcodec/libzvbi-teletextdec.c     if (!vbi_export_stdio(ctx->ex, stderr, &page))
ctx               319 libavcodec/libzvbi-teletextdec.c         fprintf(stderr, "failed: %s\n", vbi_export_errstr(ctx->ex));
ctx               322 libavcodec/libzvbi-teletextdec.c     vpt = vbi_classify_page(ctx->vbi, ev->ev.ttx_page.pgno, &subno, &lang);
ctx               323 libavcodec/libzvbi-teletextdec.c     chop_top = ctx->chop_top ||
ctx               326 libavcodec/libzvbi-teletextdec.c     av_log(ctx, AV_LOG_DEBUG, "%d x %d page chop:%d\n",
ctx               329 libavcodec/libzvbi-teletextdec.c     if (ctx->nb_pages < MAX_BUFFERED_PAGES) {
ctx               330 libavcodec/libzvbi-teletextdec.c         if ((new_pages = av_realloc_array(ctx->pages, ctx->nb_pages + 1, sizeof(TeletextPage)))) {
ctx               331 libavcodec/libzvbi-teletextdec.c             TeletextPage *cur_page = new_pages + ctx->nb_pages;
ctx               332 libavcodec/libzvbi-teletextdec.c             ctx->pages = new_pages;
ctx               334 libavcodec/libzvbi-teletextdec.c             cur_page->pts = ctx->pts;
ctx               338 libavcodec/libzvbi-teletextdec.c                 res = (ctx->format_id == 0) ?
ctx               339 libavcodec/libzvbi-teletextdec.c                     gen_sub_bitmap(ctx, cur_page->sub_rect, &page, chop_top) :
ctx               340 libavcodec/libzvbi-teletextdec.c                     gen_sub_text  (ctx, cur_page->sub_rect, &page, chop_top);
ctx               343 libavcodec/libzvbi-teletextdec.c                     ctx->handler_ret = res;
ctx               345 libavcodec/libzvbi-teletextdec.c                     ctx->pages[ctx->nb_pages++] = *cur_page;
ctx               348 libavcodec/libzvbi-teletextdec.c                 ctx->handler_ret = AVERROR(ENOMEM);
ctx               351 libavcodec/libzvbi-teletextdec.c             ctx->handler_ret = AVERROR(ENOMEM);
ctx               355 libavcodec/libzvbi-teletextdec.c         av_log(ctx, AV_LOG_ERROR, "Buffered too many pages, dropping page %s.\n", pgno_str);
ctx               356 libavcodec/libzvbi-teletextdec.c         ctx->handler_ret = AVERROR(ENOSYS);
ctx               368 libavcodec/libzvbi-teletextdec.c static int slice_to_vbi_lines(TeletextContext *ctx, uint8_t* buf, int size)
ctx               383 libavcodec/libzvbi-teletextdec.c                 ctx->sliced[lines].id = VBI_SLICED_TELETEXT_B;
ctx               384 libavcodec/libzvbi-teletextdec.c                 ctx->sliced[lines].line = (line_offset > 0 ? (line_offset + (field_parity ? 0 : 313)) : 0);
ctx               386 libavcodec/libzvbi-teletextdec.c                     ctx->sliced[lines].data[i] = vbi_rev8(buf[4 + i]);
ctx               394 libavcodec/libzvbi-teletextdec.c         av_log(ctx, AV_LOG_WARNING, "%d bytes remained after slicing data\n", size);
ctx               400 libavcodec/libzvbi-teletextdec.c     TeletextContext *ctx = avctx->priv_data;
ctx               404 libavcodec/libzvbi-teletextdec.c     if (!ctx->vbi) {
ctx               405 libavcodec/libzvbi-teletextdec.c         if (!(ctx->vbi = vbi_decoder_new()))
ctx               407 libavcodec/libzvbi-teletextdec.c         if (!vbi_event_handler_add(ctx->vbi, VBI_EVENT_TTX_PAGE, handler, ctx)) {
ctx               408 libavcodec/libzvbi-teletextdec.c             vbi_decoder_delete(ctx->vbi);
ctx               409 libavcodec/libzvbi-teletextdec.c             ctx->vbi = NULL;
ctx               415 libavcodec/libzvbi-teletextdec.c         ctx->pts = av_rescale_q(pkt->pts, avctx->pkt_timebase, AV_TIME_BASE_Q);
ctx               425 libavcodec/libzvbi-teletextdec.c         ctx->handler_ret = pkt->size;
ctx               428 libavcodec/libzvbi-teletextdec.c             if ((lines = slice_to_vbi_lines(ctx, pkt->data + 1, pkt->size - 1)) < 0)
ctx               431 libavcodec/libzvbi-teletextdec.c                     ctx, pkt->size, lines, (double)pkt->pts/90000.0);
ctx               437 libavcodec/libzvbi-teletextdec.c                     av_log(avctx, AV_LOG_DEBUG, " %d", ctx->sliced[i].line);
ctx               440 libavcodec/libzvbi-teletextdec.c                 vbi_decode(ctx->vbi, ctx->sliced, lines, 0.0);
ctx               441 libavcodec/libzvbi-teletextdec.c                 ctx->lines_processed += lines;
ctx               444 libavcodec/libzvbi-teletextdec.c         ctx->pts = AV_NOPTS_VALUE;
ctx               445 libavcodec/libzvbi-teletextdec.c         ret = ctx->handler_ret;
ctx               452 libavcodec/libzvbi-teletextdec.c     if (ctx->nb_pages) {
ctx               454 libavcodec/libzvbi-teletextdec.c         sub->format = ctx->format_id;
ctx               456 libavcodec/libzvbi-teletextdec.c         sub->end_display_time = ctx->sub_duration;
ctx               458 libavcodec/libzvbi-teletextdec.c         sub->pts = ctx->pages->pts;
ctx               460 libavcodec/libzvbi-teletextdec.c         if (ctx->pages->sub_rect->type != SUBTITLE_NONE) {
ctx               464 libavcodec/libzvbi-teletextdec.c                 sub->rects[0] = ctx->pages->sub_rect;
ctx               473 libavcodec/libzvbi-teletextdec.c             subtitle_rect_free(&ctx->pages->sub_rect);
ctx               475 libavcodec/libzvbi-teletextdec.c         for (i = 0; i < ctx->nb_pages - 1; i++)
ctx               476 libavcodec/libzvbi-teletextdec.c             ctx->pages[i] = ctx->pages[i + 1];
ctx               477 libavcodec/libzvbi-teletextdec.c         ctx->nb_pages--;
ctx               489 libavcodec/libzvbi-teletextdec.c     TeletextContext *ctx = avctx->priv_data;
ctx               498 libavcodec/libzvbi-teletextdec.c     if (ctx->format_id == 0) {
ctx               503 libavcodec/libzvbi-teletextdec.c     ctx->vbi = NULL;
ctx               504 libavcodec/libzvbi-teletextdec.c     ctx->pts = AV_NOPTS_VALUE;
ctx               509 libavcodec/libzvbi-teletextdec.c         ctx->ex = vbi_export_new("text", &t);
ctx               512 libavcodec/libzvbi-teletextdec.c     av_log(avctx, AV_LOG_VERBOSE, "page filter: %s\n", ctx->pgno);
ctx               513 libavcodec/libzvbi-teletextdec.c     return (ctx->format_id == 1) ? ff_ass_subtitle_header_default(avctx) : 0;
ctx               518 libavcodec/libzvbi-teletextdec.c     TeletextContext *ctx = avctx->priv_data;
ctx               520 libavcodec/libzvbi-teletextdec.c     av_dlog(avctx, "lines_total=%u\n", ctx->lines_processed);
ctx               521 libavcodec/libzvbi-teletextdec.c     while (ctx->nb_pages)
ctx               522 libavcodec/libzvbi-teletextdec.c         subtitle_rect_free(&ctx->pages[--ctx->nb_pages].sub_rect);
ctx               523 libavcodec/libzvbi-teletextdec.c     av_freep(&ctx->pages);
ctx               525 libavcodec/libzvbi-teletextdec.c     vbi_decoder_delete(ctx->vbi);
ctx               526 libavcodec/libzvbi-teletextdec.c     ctx->vbi = NULL;
ctx               527 libavcodec/libzvbi-teletextdec.c     ctx->pts = AV_NOPTS_VALUE;
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               120 libavcodec/mimic.c     MimicContext *ctx = avctx->priv_data;
ctx               123 libavcodec/mimic.c     av_freep(&ctx->swap_buf);
ctx               124 libavcodec/mimic.c     ctx->swap_buf_size = 0;
ctx               126 libavcodec/mimic.c     for (i = 0; i < FF_ARRAY_ELEMS(ctx->frames); i++) {
ctx               127 libavcodec/mimic.c         if (ctx->frames[i].f)
ctx               128 libavcodec/mimic.c             ff_thread_release_buffer(avctx, &ctx->frames[i]);
ctx               129 libavcodec/mimic.c         av_frame_free(&ctx->frames[i].f);
ctx               133 libavcodec/mimic.c         ff_free_vlc(&ctx->vlc);
ctx               140 libavcodec/mimic.c     MimicContext *ctx = avctx->priv_data;
ctx               145 libavcodec/mimic.c     ctx->prev_index = 0;
ctx               146 libavcodec/mimic.c     ctx->cur_index  = 15;
ctx               148 libavcodec/mimic.c     if ((ret = init_vlc(&ctx->vlc, 11, FF_ARRAY_ELEMS(huffbits),
ctx               153 libavcodec/mimic.c     ff_blockdsp_init(&ctx->bdsp, avctx);
ctx               154 libavcodec/mimic.c     ff_bswapdsp_init(&ctx->bbdsp);
ctx               155 libavcodec/mimic.c     ff_hpeldsp_init(&ctx->hdsp, avctx->flags);
ctx               156 libavcodec/mimic.c     ff_idctdsp_init(&ctx->idsp, avctx);
ctx               157 libavcodec/mimic.c     ff_init_scantable(ctx->idsp.idct_permutation, &ctx->scantable, col_zag);
ctx               159 libavcodec/mimic.c     for (i = 0; i < FF_ARRAY_ELEMS(ctx->frames); i++) {
ctx               160 libavcodec/mimic.c         ctx->frames[i].f = av_frame_alloc();
ctx               161 libavcodec/mimic.c         if (!ctx->frames[i].f) {
ctx               232 libavcodec/mimic.c static int vlc_decode_block(MimicContext *ctx, int num_coeffs, int qscale)
ctx               234 libavcodec/mimic.c     int16_t *block = ctx->dct_block;
ctx               237 libavcodec/mimic.c     ctx->bdsp.clear_block(block);
ctx               239 libavcodec/mimic.c     block[0] = get_bits(&ctx->gb, 8) << 3;
ctx               246 libavcodec/mimic.c         vlc = get_vlc2(&ctx->gb, ctx->vlc.table, ctx->vlc.bits, 3);
ctx               259 libavcodec/mimic.c         value = get_bits(&ctx->gb, num_bits);
ctx               270 libavcodec/mimic.c         block[ctx->scantable.permutated[pos]] = coeff;
ctx               276 libavcodec/mimic.c static int decode(MimicContext *ctx, int quality, int num_coeffs,
ctx               285 libavcodec/mimic.c         const int stride    = ctx->flipped_ptrs[ctx->cur_index ].linesize[plane];
ctx               286 libavcodec/mimic.c         const uint8_t *src  = ctx->flipped_ptrs[ctx->prev_index].data[plane];
ctx               287 libavcodec/mimic.c         uint8_t       *dst  = ctx->flipped_ptrs[ctx->cur_index ].data[plane];
ctx               289 libavcodec/mimic.c         for (y = 0; y < ctx->num_vblocks[plane]; y++) {
ctx               290 libavcodec/mimic.c             for (x = 0; x < ctx->num_hblocks[plane]; x++) {
ctx               295 libavcodec/mimic.c                 if (is_iframe || get_bits1(&ctx->gb) == is_chroma) {
ctx               299 libavcodec/mimic.c                     if (is_chroma || is_iframe || !get_bits1(&ctx->gb)) {
ctx               300 libavcodec/mimic.c                         if ((ret = vlc_decode_block(ctx, num_coeffs,
ctx               302 libavcodec/mimic.c                             av_log(ctx->avctx, AV_LOG_ERROR, "Error decoding "
ctx               306 libavcodec/mimic.c                         ctx->idsp.idct_put(dst, stride, ctx->dct_block);
ctx               308 libavcodec/mimic.c                         unsigned int backref = get_bits(&ctx->gb, 4);
ctx               309 libavcodec/mimic.c                         int index            = (ctx->cur_index + backref) & 15;
ctx               310 libavcodec/mimic.c                         uint8_t *p           = ctx->flipped_ptrs[index].data[0];
ctx               312 libavcodec/mimic.c                         if (index != ctx->cur_index && p) {
ctx               313 libavcodec/mimic.c                             ff_thread_await_progress(&ctx->frames[index],
ctx               316 libavcodec/mimic.c                                  ctx->flipped_ptrs[ctx->prev_index].data[plane];
ctx               317 libavcodec/mimic.c                             ctx->hdsp.put_pixels_tab[1][0](dst, p, stride, 8);
ctx               319 libavcodec/mimic.c                             av_log(ctx->avctx, AV_LOG_ERROR,
ctx               324 libavcodec/mimic.c                     ff_thread_await_progress(&ctx->frames[ctx->prev_index],
ctx               326 libavcodec/mimic.c                     ctx->hdsp.put_pixels_tab[1][0](dst, src, stride, 8);
ctx               331 libavcodec/mimic.c             src += (stride - ctx->num_hblocks[plane]) << 3;
ctx               332 libavcodec/mimic.c             dst += (stride - ctx->num_hblocks[plane]) << 3;
ctx               334 libavcodec/mimic.c             ff_thread_report_progress(&ctx->frames[ctx->cur_index],
ctx               346 libavcodec/mimic.c static void prepare_avpic(MimicContext *ctx, AVPicture *dst, AVFrame *src)
ctx               349 libavcodec/mimic.c     dst->data[0] = src->data[0] + ( ctx->avctx->height       - 1) * src->linesize[0];
ctx               350 libavcodec/mimic.c     dst->data[1] = src->data[2] + ((ctx->avctx->height >> 1) - 1) * src->linesize[2];
ctx               351 libavcodec/mimic.c     dst->data[2] = src->data[1] + ((ctx->avctx->height >> 1) - 1) * src->linesize[1];
ctx               362 libavcodec/mimic.c     MimicContext *ctx  = avctx->priv_data;
ctx               384 libavcodec/mimic.c     if (!ctx->avctx) {
ctx               393 libavcodec/mimic.c         ctx->avctx     = avctx;
ctx               398 libavcodec/mimic.c             ctx->num_vblocks[i] = FF_CEIL_RSHIFT(height,   3 + !!i);
ctx               399 libavcodec/mimic.c             ctx->num_hblocks[i] =                width >> (3 + !!i);
ctx               401 libavcodec/mimic.c     } else if (width != ctx->avctx->width || height != ctx->avctx->height) {
ctx               406 libavcodec/mimic.c     if (is_pframe && !ctx->frames[ctx->prev_index].f->data[0]) {
ctx               411 libavcodec/mimic.c     ff_thread_release_buffer(avctx, &ctx->frames[ctx->cur_index]);
ctx               412 libavcodec/mimic.c     ctx->frames[ctx->cur_index].f->pict_type = is_pframe ? AV_PICTURE_TYPE_P :
ctx               414 libavcodec/mimic.c     if ((res = ff_thread_get_buffer(avctx, &ctx->frames[ctx->cur_index],
ctx               418 libavcodec/mimic.c     ctx->next_prev_index = ctx->cur_index;
ctx               419 libavcodec/mimic.c     ctx->next_cur_index  = (ctx->cur_index - 1) & 15;
ctx               421 libavcodec/mimic.c     prepare_avpic(ctx, &ctx->flipped_ptrs[ctx->cur_index],
ctx               422 libavcodec/mimic.c                   ctx->frames[ctx->cur_index].f);
ctx               426 libavcodec/mimic.c     av_fast_padded_malloc(&ctx->swap_buf, &ctx->swap_buf_size, swap_buf_size);
ctx               427 libavcodec/mimic.c     if (!ctx->swap_buf)
ctx               430 libavcodec/mimic.c     ctx->bbdsp.bswap_buf(ctx->swap_buf,
ctx               433 libavcodec/mimic.c     init_get_bits(&ctx->gb, ctx->swap_buf, swap_buf_size << 3);
ctx               435 libavcodec/mimic.c     res = decode(ctx, quality, num_coeffs, !is_pframe);
ctx               436 libavcodec/mimic.c     ff_thread_report_progress(&ctx->frames[ctx->cur_index], INT_MAX, 0);
ctx               439 libavcodec/mimic.c             ff_thread_release_buffer(avctx, &ctx->frames[ctx->cur_index]);
ctx               444 libavcodec/mimic.c     if ((res = av_frame_ref(data, ctx->frames[ctx->cur_index].f)) < 0)
ctx               448 libavcodec/mimic.c     ctx->prev_index = ctx->next_prev_index;
ctx               449 libavcodec/mimic.c     ctx->cur_index  = ctx->next_cur_index;
ctx               452 libavcodec/mimic.c     ff_thread_release_buffer(avctx, &ctx->frames[ctx->cur_index]);
ctx               459 libavcodec/mimic.c     MimicContext *ctx = avctx->priv_data;
ctx               462 libavcodec/mimic.c     for (i = 0; i < FF_ARRAY_ELEMS(ctx->frames); i++) {
ctx               463 libavcodec/mimic.c         ctx->frames[i].f = av_frame_alloc();
ctx               464 libavcodec/mimic.c         if (!ctx->frames[i].f) {
ctx               116 libavcodec/motion-test.c     AVCodecContext *ctx;
ctx               129 libavcodec/motion-test.c     ctx = avcodec_alloc_context3(NULL);
ctx               130 libavcodec/motion-test.c     ctx->flags |= CODEC_FLAG_BITEXACT;
ctx               133 libavcodec/motion-test.c     ff_me_cmp_init(&cctx, ctx);
ctx               138 libavcodec/motion-test.c         ff_me_cmp_init(&mmxctx, ctx);
ctx               149 libavcodec/motion-test.c     av_free(ctx);
ctx               131 libavcodec/mpeg12dec.c #define check_scantable_index(ctx, x)                                         \
ctx               134 libavcodec/mpeg12dec.c             av_log(ctx->avctx, AV_LOG_ERROR, "ac-tex damaged at %d %d\n",     \
ctx               135 libavcodec/mpeg12dec.c                    ctx->mb_x, ctx->mb_y);                                     \
ctx              1153 libavcodec/mpeg12dec.c     Mpeg1Context *ctx = avctx->priv_data, *ctx_from = avctx_from->priv_data;
ctx              1154 libavcodec/mpeg12dec.c     MpegEncContext *s = &ctx->mpeg_enc_ctx, *s1 = &ctx_from->mpeg_enc_ctx;
ctx              1166 libavcodec/mpeg12dec.c     if (!ctx->mpeg_enc_ctx_allocated)
ctx               142 libavcodec/mpeg4video.h int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb);
ctx               149 libavcodec/mpeg4video.h int ff_mpeg4_decode_partitions(Mpeg4DecContext *ctx);
ctx               151 libavcodec/mpeg4video.h int ff_mpeg4_decode_video_packet_header(Mpeg4DecContext *ctx);
ctx               115 libavcodec/mpeg4videodec.c static inline int mpeg4_is_resync(Mpeg4DecContext *ctx)
ctx               117 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx               121 libavcodec/mpeg4videodec.c     if (s->workaround_bugs & FF_BUG_NO_PADDING && !ctx->resync_marker)
ctx               165 libavcodec/mpeg4videodec.c static int mpeg4_decode_sprite_trajectory(Mpeg4DecContext *ctx, GetBitContext *gb)
ctx               167 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx               187 libavcodec/mpeg4videodec.c     for (i = 0; i < ctx->num_sprite_warping_points; i++) {
ctx               195 libavcodec/mpeg4videodec.c         if (!(ctx->divx_version == 500 && ctx->divx_build == 413))
ctx               203 libavcodec/mpeg4videodec.c         ctx->sprite_traj[i][0] = d[i][0] = x;
ctx               204 libavcodec/mpeg4videodec.c         ctx->sprite_traj[i][1] = d[i][1] = y;
ctx               207 libavcodec/mpeg4videodec.c         ctx->sprite_traj[i][0] = ctx->sprite_traj[i][1] = 0;
ctx               217 libavcodec/mpeg4videodec.c     if (ctx->divx_version == 500 && ctx->divx_build == 413) {
ctx               255 libavcodec/mpeg4videodec.c     switch (ctx->num_sprite_warping_points) {
ctx               265 libavcodec/mpeg4videodec.c         ctx->sprite_shift[0]   =
ctx               266 libavcodec/mpeg4videodec.c         ctx->sprite_shift[1]   = 0;
ctx               279 libavcodec/mpeg4videodec.c         ctx->sprite_shift[0]   =
ctx               280 libavcodec/mpeg4videodec.c         ctx->sprite_shift[1]   = 0;
ctx               308 libavcodec/mpeg4videodec.c         ctx->sprite_shift[0]  = alpha + rho;
ctx               309 libavcodec/mpeg4videodec.c         ctx->sprite_shift[1]  = alpha + rho + 2;
ctx               344 libavcodec/mpeg4videodec.c         ctx->sprite_shift[0]  = alpha + beta + rho - min_ab;
ctx               345 libavcodec/mpeg4videodec.c         ctx->sprite_shift[1]  = alpha + beta + rho - min_ab + 2;
ctx               349 libavcodec/mpeg4videodec.c     if (s->sprite_delta[0][0] == a << ctx->sprite_shift[0] &&
ctx               352 libavcodec/mpeg4videodec.c         s->sprite_delta[1][1] == a << ctx->sprite_shift[0]) {
ctx               353 libavcodec/mpeg4videodec.c         s->sprite_offset[0][0] >>= ctx->sprite_shift[0];
ctx               354 libavcodec/mpeg4videodec.c         s->sprite_offset[0][1] >>= ctx->sprite_shift[0];
ctx               355 libavcodec/mpeg4videodec.c         s->sprite_offset[1][0] >>= ctx->sprite_shift[1];
ctx               356 libavcodec/mpeg4videodec.c         s->sprite_offset[1][1] >>= ctx->sprite_shift[1];
ctx               361 libavcodec/mpeg4videodec.c         ctx->sprite_shift[0] = 0;
ctx               362 libavcodec/mpeg4videodec.c         ctx->sprite_shift[1] = 0;
ctx               365 libavcodec/mpeg4videodec.c         int shift_y = 16 - ctx->sprite_shift[0];
ctx               366 libavcodec/mpeg4videodec.c         int shift_c = 16 - ctx->sprite_shift[1];
ctx               372 libavcodec/mpeg4videodec.c             ctx->sprite_shift[i]     = 16;
ctx               374 libavcodec/mpeg4videodec.c         s->real_sprite_warping_points = ctx->num_sprite_warping_points;
ctx               380 libavcodec/mpeg4videodec.c static int decode_new_pred(Mpeg4DecContext *ctx, GetBitContext *gb) {
ctx               381 libavcodec/mpeg4videodec.c     int len = FFMIN(ctx->time_increment_bits + 3, 15);
ctx               395 libavcodec/mpeg4videodec.c int ff_mpeg4_decode_video_packet_header(Mpeg4DecContext *ctx)
ctx               397 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx               415 libavcodec/mpeg4videodec.c     if (ctx->shape != RECT_SHAPE) {
ctx               430 libavcodec/mpeg4videodec.c     if (ctx->shape != BIN_ONLY_SHAPE) {
ctx               436 libavcodec/mpeg4videodec.c     if (ctx->shape == RECT_SHAPE)
ctx               446 libavcodec/mpeg4videodec.c         skip_bits(&s->gb, ctx->time_increment_bits);      /* time_increment */
ctx               452 libavcodec/mpeg4videodec.c         if (ctx->shape != BIN_ONLY_SHAPE) {
ctx               456 libavcodec/mpeg4videodec.c                 ctx->vol_sprite_usage == GMC_SPRITE) {
ctx               457 libavcodec/mpeg4videodec.c                 if (mpeg4_decode_sprite_trajectory(ctx, &s->gb) < 0)
ctx               478 libavcodec/mpeg4videodec.c     if (ctx->new_pred)
ctx               479 libavcodec/mpeg4videodec.c         decode_new_pred(ctx, &s->gb);
ctx               489 libavcodec/mpeg4videodec.c static inline int get_amv(Mpeg4DecContext *ctx, int n)
ctx               491 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx               500 libavcodec/mpeg4videodec.c         if (ctx->divx_version == 500 && ctx->divx_build == 413)
ctx               507 libavcodec/mpeg4videodec.c         shift = ctx->sprite_shift[0];
ctx               589 libavcodec/mpeg4videodec.c static int mpeg4_decode_partition_a(Mpeg4DecContext *ctx)
ctx               591 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx               661 libavcodec/mpeg4videodec.c                         ctx->vol_sprite_usage == GMC_SPRITE) {
ctx               666 libavcodec/mpeg4videodec.c                         mx = get_amv(ctx, 0);
ctx               667 libavcodec/mpeg4videodec.c                         my = get_amv(ctx, 1);
ctx               717 libavcodec/mpeg4videodec.c                         ctx->vol_sprite_usage == GMC_SPRITE &&
ctx               738 libavcodec/mpeg4videodec.c                             mx = get_amv(ctx, 0);
ctx               739 libavcodec/mpeg4videodec.c                             my = get_amv(ctx, 1);
ctx               876 libavcodec/mpeg4videodec.c int ff_mpeg4_decode_partitions(Mpeg4DecContext *ctx)
ctx               878 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx               883 libavcodec/mpeg4videodec.c     mb_num = mpeg4_decode_partition_a(ctx);
ctx               939 libavcodec/mpeg4videodec.c static inline int mpeg4_decode_block(Mpeg4DecContext *ctx, int16_t *block,
ctx               942 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx               952 libavcodec/mpeg4videodec.c         if (ctx->use_intra_dc_vlc) {
ctx              1192 libavcodec/mpeg4videodec.c         if (!ctx->use_intra_dc_vlc) {
ctx              1212 libavcodec/mpeg4videodec.c     Mpeg4DecContext *ctx = (Mpeg4DecContext *)s;
ctx              1219 libavcodec/mpeg4videodec.c     ctx->use_intra_dc_vlc = s->qscale < ctx->intra_dc_threshold;
ctx              1240 libavcodec/mpeg4videodec.c                 && ctx->vol_sprite_usage == GMC_SPRITE) {
ctx              1269 libavcodec/mpeg4videodec.c             if (mpeg4_decode_block(ctx, block[i], i, cbp & 32, s->mb_intra, ctx->rvlc) < 0) {
ctx              1281 libavcodec/mpeg4videodec.c         if (mpeg4_is_resync(ctx))
ctx              1286 libavcodec/mpeg4videodec.c         if (mpeg4_is_resync(ctx)) {
ctx              1297 libavcodec/mpeg4videodec.c     Mpeg4DecContext *ctx = (Mpeg4DecContext *)s;
ctx              1316 libavcodec/mpeg4videodec.c                     ctx->vol_sprite_usage == GMC_SPRITE) {
ctx              1322 libavcodec/mpeg4videodec.c                     s->mv[0][0][0] = get_amv(ctx, 0);
ctx              1323 libavcodec/mpeg4videodec.c                     s->mv[0][0][1] = get_amv(ctx, 1);
ctx              1351 libavcodec/mpeg4videodec.c             ctx->vol_sprite_usage == GMC_SPRITE && (cbpc & 16) == 0)
ctx              1372 libavcodec/mpeg4videodec.c                 mx             = get_amv(ctx, 0);
ctx              1373 libavcodec/mpeg4videodec.c                 my             = get_amv(ctx, 1);
ctx              1617 libavcodec/mpeg4videodec.c         ctx->use_intra_dc_vlc = s->qscale < ctx->intra_dc_threshold;
ctx              1628 libavcodec/mpeg4videodec.c             if (mpeg4_decode_block(ctx, block[i], i, cbp & 32, 1, 0) < 0)
ctx              1637 libavcodec/mpeg4videodec.c         if (mpeg4_decode_block(ctx, block[i], i, cbp & 32, 0, 0) < 0)
ctx              1645 libavcodec/mpeg4videodec.c         int next = mpeg4_is_resync(ctx);
ctx              1705 libavcodec/mpeg4videodec.c static int decode_vol_header(Mpeg4DecContext *ctx, GetBitContext *gb)
ctx              1707 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx              1727 libavcodec/mpeg4videodec.c     if ((ctx->vol_control_parameters = get_bits1(gb))) { /* vol control parameter */
ctx              1753 libavcodec/mpeg4videodec.c     ctx->shape = get_bits(gb, 2); /* vol shape */
ctx              1754 libavcodec/mpeg4videodec.c     if (ctx->shape != RECT_SHAPE)
ctx              1756 libavcodec/mpeg4videodec.c     if (ctx->shape == GRAY_SHAPE && vo_ver_id != 1) {
ctx              1769 libavcodec/mpeg4videodec.c     ctx->time_increment_bits = av_log2(s->avctx->framerate.num - 1) + 1;
ctx              1770 libavcodec/mpeg4videodec.c     if (ctx->time_increment_bits < 1)
ctx              1771 libavcodec/mpeg4videodec.c         ctx->time_increment_bits = 1;
ctx              1776 libavcodec/mpeg4videodec.c         s->avctx->framerate.den = get_bits(gb, ctx->time_increment_bits);
ctx              1782 libavcodec/mpeg4videodec.c     ctx->t_frame = 0;
ctx              1784 libavcodec/mpeg4videodec.c     if (ctx->shape != BIN_ONLY_SHAPE) {
ctx              1785 libavcodec/mpeg4videodec.c         if (ctx->shape == RECT_SHAPE) {
ctx              1808 libavcodec/mpeg4videodec.c             ctx->vol_sprite_usage = get_bits1(gb);    /* vol_sprite_usage */
ctx              1810 libavcodec/mpeg4videodec.c             ctx->vol_sprite_usage = get_bits(gb, 2);  /* vol_sprite_usage */
ctx              1812 libavcodec/mpeg4videodec.c         if (ctx->vol_sprite_usage == STATIC_SPRITE)
ctx              1814 libavcodec/mpeg4videodec.c         if (ctx->vol_sprite_usage == STATIC_SPRITE ||
ctx              1815 libavcodec/mpeg4videodec.c             ctx->vol_sprite_usage == GMC_SPRITE) {
ctx              1816 libavcodec/mpeg4videodec.c             if (ctx->vol_sprite_usage == STATIC_SPRITE) {
ctx              1826 libavcodec/mpeg4videodec.c             ctx->num_sprite_warping_points = get_bits(gb, 6);
ctx              1827 libavcodec/mpeg4videodec.c             if (ctx->num_sprite_warping_points > 3) {
ctx              1830 libavcodec/mpeg4videodec.c                        ctx->num_sprite_warping_points);
ctx              1831 libavcodec/mpeg4videodec.c                 ctx->num_sprite_warping_points = 0;
ctx              1835 libavcodec/mpeg4videodec.c             ctx->sprite_brightness_change = get_bits1(gb);
ctx              1836 libavcodec/mpeg4videodec.c             if (ctx->vol_sprite_usage == STATIC_SPRITE)
ctx              1936 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_i += 8 * get_bits1(gb);  /* opaque */
ctx              1937 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_i += 8 * get_bits1(gb);  /* transparent */
ctx              1938 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_i += 8 * get_bits1(gb);  /* intra_cae */
ctx              1939 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_i += 8 * get_bits1(gb);  /* inter_cae */
ctx              1940 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_i += 8 * get_bits1(gb);  /* no_update */
ctx              1941 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_i += 8 * get_bits1(gb);  /* upampling */
ctx              1944 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_i += 8 * get_bits1(gb);  /* intra_blocks */
ctx              1945 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_p += 8 * get_bits1(gb);  /* inter_blocks */
ctx              1946 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_p += 8 * get_bits1(gb);  /* inter4v_blocks */
ctx              1947 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_i += 8 * get_bits1(gb);  /* not coded blocks */
ctx              1954 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_i += 8 * get_bits1(gb);  /* dct_coeffs */
ctx              1955 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_i += 8 * get_bits1(gb);  /* dct_lines */
ctx              1956 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_i += 8 * get_bits1(gb);  /* vlc_syms */
ctx              1957 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_i += 4 * get_bits1(gb);  /* vlc_bits */
ctx              1960 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_p += 8 * get_bits1(gb);  /* apm */
ctx              1961 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_p += 8 * get_bits1(gb);  /* npm */
ctx              1962 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_b += 8 * get_bits1(gb);  /* interpolate_mc_q */
ctx              1963 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_p += 8 * get_bits1(gb);  /* forwback_mc_q */
ctx              1964 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_p += 8 * get_bits1(gb);  /* halfpel2 */
ctx              1965 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_p += 8 * get_bits1(gb);  /* halfpel4 */
ctx              1972 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_i += 8 * get_bits1(gb);  /* sadct */
ctx              1973 libavcodec/mpeg4videodec.c                     ctx->cplx_estimation_trash_p += 8 * get_bits1(gb);  /* qpel */
ctx              1982 libavcodec/mpeg4videodec.c             ctx->cplx_estimation_trash_i =
ctx              1983 libavcodec/mpeg4videodec.c             ctx->cplx_estimation_trash_p =
ctx              1984 libavcodec/mpeg4videodec.c             ctx->cplx_estimation_trash_b = 0;
ctx              1987 libavcodec/mpeg4videodec.c         ctx->resync_marker = !get_bits1(gb); /* resync_marker_disabled */
ctx              1991 libavcodec/mpeg4videodec.c             ctx->rvlc = get_bits1(gb);
ctx              1994 libavcodec/mpeg4videodec.c             ctx->new_pred = get_bits1(gb);
ctx              1995 libavcodec/mpeg4videodec.c             if (ctx->new_pred) {
ctx              2004 libavcodec/mpeg4videodec.c             ctx->new_pred = 0;
ctx              2007 libavcodec/mpeg4videodec.c         ctx->scalability = get_bits1(gb);
ctx              2009 libavcodec/mpeg4videodec.c         if (ctx->scalability) {
ctx              2023 libavcodec/mpeg4videodec.c             ctx->enhancement_type = get_bits1(gb);
ctx              2029 libavcodec/mpeg4videodec.c                 ctx->scalability = 0;
ctx              2041 libavcodec/mpeg4videodec.c                ctx->time_increment_bits,
ctx              2044 libavcodec/mpeg4videodec.c                ctx->scalability ? "scalability " :"" , s->quarter_sample ? "qpel " : "",
ctx              2045 libavcodec/mpeg4videodec.c                s->data_partitioning ? "partition " : "", ctx->rvlc ? "rvlc " : ""
ctx              2056 libavcodec/mpeg4videodec.c static int decode_user_data(Mpeg4DecContext *ctx, GetBitContext *gb)
ctx              2058 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx              2077 libavcodec/mpeg4videodec.c         ctx->divx_version = ver;
ctx              2078 libavcodec/mpeg4videodec.c         ctx->divx_build   = build;
ctx              2080 libavcodec/mpeg4videodec.c         if (s->divx_packed && !ctx->showed_packed_warning) {
ctx              2084 libavcodec/mpeg4videodec.c             ctx->showed_packed_warning = 1;
ctx              2099 libavcodec/mpeg4videodec.c             ctx->lavc_build = 4600;
ctx              2102 libavcodec/mpeg4videodec.c         ctx->lavc_build = build;
ctx              2107 libavcodec/mpeg4videodec.c         ctx->xvid_build = build;
ctx              2114 libavcodec/mpeg4videodec.c     Mpeg4DecContext *ctx = avctx->priv_data;
ctx              2115 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx              2117 libavcodec/mpeg4videodec.c     if (ctx->xvid_build == -1 && ctx->divx_version == -1 && ctx->lavc_build == -1) {
ctx              2123 libavcodec/mpeg4videodec.c             ctx->xvid_build = 0;
ctx              2126 libavcodec/mpeg4videodec.c     if (ctx->xvid_build == -1 && ctx->divx_version == -1 && ctx->lavc_build == -1)
ctx              2128 libavcodec/mpeg4videodec.c             ctx->vol_control_parameters == 0)
ctx              2129 libavcodec/mpeg4videodec.c             ctx->divx_version = 400;  // divx 4
ctx              2131 libavcodec/mpeg4videodec.c     if (ctx->xvid_build >= 0 && ctx->divx_version >= 0) {
ctx              2132 libavcodec/mpeg4videodec.c         ctx->divx_version =
ctx              2133 libavcodec/mpeg4videodec.c         ctx->divx_build   = -1;
ctx              2143 libavcodec/mpeg4videodec.c         if (ctx->divx_version >= 500 && ctx->divx_build < 1814)
ctx              2146 libavcodec/mpeg4videodec.c         if (ctx->divx_version > 502 && ctx->divx_build < 1814)
ctx              2149 libavcodec/mpeg4videodec.c         if (ctx->xvid_build <= 3U)
ctx              2152 libavcodec/mpeg4videodec.c         if (ctx->xvid_build <= 1U)
ctx              2155 libavcodec/mpeg4videodec.c         if (ctx->xvid_build <= 12U)
ctx              2158 libavcodec/mpeg4videodec.c         if (ctx->xvid_build <= 32U)
ctx              2166 libavcodec/mpeg4videodec.c         if (ctx->lavc_build < 4653U)
ctx              2169 libavcodec/mpeg4videodec.c         if (ctx->lavc_build < 4655U)
ctx              2172 libavcodec/mpeg4videodec.c         if (ctx->lavc_build < 4670U)
ctx              2175 libavcodec/mpeg4videodec.c         if (ctx->lavc_build <= 4712U)
ctx              2178 libavcodec/mpeg4videodec.c         if (ctx->divx_version >= 0)
ctx              2180 libavcodec/mpeg4videodec.c         if (ctx->divx_version == 501 && ctx->divx_build == 20020416)
ctx              2183 libavcodec/mpeg4videodec.c         if (ctx->divx_version < 500U)
ctx              2186 libavcodec/mpeg4videodec.c         if (ctx->divx_version >= 0)
ctx              2209 libavcodec/mpeg4videodec.c                s->workaround_bugs, ctx->lavc_build, ctx->xvid_build,
ctx              2210 libavcodec/mpeg4videodec.c                ctx->divx_version, ctx->divx_build, s->divx_packed ? "p" : "");
ctx              2212 libavcodec/mpeg4videodec.c     if (CONFIG_MPEG4_DECODER && ctx->xvid_build >= 0 &&
ctx              2223 libavcodec/mpeg4videodec.c static int decode_vop_header(Mpeg4DecContext *ctx, GetBitContext *gb)
ctx              2225 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx              2231 libavcodec/mpeg4videodec.c         ctx->vol_control_parameters == 0 && !(s->flags & CODEC_FLAG_LOW_DELAY)) {
ctx              2248 libavcodec/mpeg4videodec.c     if (ctx->time_increment_bits == 0 ||
ctx              2249 libavcodec/mpeg4videodec.c         !(show_bits(gb, ctx->time_increment_bits + 1) & 1)) {
ctx              2253 libavcodec/mpeg4videodec.c         for (ctx->time_increment_bits = 1;
ctx              2254 libavcodec/mpeg4videodec.c              ctx->time_increment_bits < 16;
ctx              2255 libavcodec/mpeg4videodec.c              ctx->time_increment_bits++) {
ctx              2258 libavcodec/mpeg4videodec.c                  ctx->vol_sprite_usage == GMC_SPRITE)) {
ctx              2259 libavcodec/mpeg4videodec.c                 if ((show_bits(gb, ctx->time_increment_bits + 6) & 0x37) == 0x30)
ctx              2261 libavcodec/mpeg4videodec.c             } else if ((show_bits(gb, ctx->time_increment_bits + 5) & 0x1F) == 0x18)
ctx              2266 libavcodec/mpeg4videodec.c                "my guess is %d bits ;)\n", ctx->time_increment_bits);
ctx              2267 libavcodec/mpeg4videodec.c         if (s->avctx->framerate.num && 4*s->avctx->framerate.num < 1<<ctx->time_increment_bits) {
ctx              2268 libavcodec/mpeg4videodec.c             s->avctx->framerate.num = 1<<ctx->time_increment_bits;
ctx              2276 libavcodec/mpeg4videodec.c         time_increment = get_bits(gb, ctx->time_increment_bits);
ctx              2303 libavcodec/mpeg4videodec.c         if (ctx->t_frame == 0)
ctx              2304 libavcodec/mpeg4videodec.c             ctx->t_frame = s->pb_time;
ctx              2305 libavcodec/mpeg4videodec.c         if (ctx->t_frame == 0)
ctx              2306 libavcodec/mpeg4videodec.c             ctx->t_frame = 1;  // 1/0 protection
ctx              2307 libavcodec/mpeg4videodec.c         s->pp_field_time = (ROUNDED_DIV(s->last_non_b_time, ctx->t_frame) -
ctx              2308 libavcodec/mpeg4videodec.c                             ROUNDED_DIV(s->last_non_b_time - s->pp_time, ctx->t_frame)) * 2;
ctx              2309 libavcodec/mpeg4videodec.c         s->pb_field_time = (ROUNDED_DIV(s->time, ctx->t_frame) -
ctx              2310 libavcodec/mpeg4videodec.c                             ROUNDED_DIV(s->last_non_b_time - s->pp_time, ctx->t_frame)) * 2;
ctx              2335 libavcodec/mpeg4videodec.c     if (ctx->new_pred)
ctx              2336 libavcodec/mpeg4videodec.c         decode_new_pred(ctx, gb);
ctx              2338 libavcodec/mpeg4videodec.c     if (ctx->shape != BIN_ONLY_SHAPE &&
ctx              2341 libavcodec/mpeg4videodec.c                       ctx->vol_sprite_usage == GMC_SPRITE))) {
ctx              2349 libavcodec/mpeg4videodec.c     if (ctx->shape != RECT_SHAPE) {
ctx              2350 libavcodec/mpeg4videodec.c         if (ctx->vol_sprite_usage != 1 || s->pict_type != AV_PICTURE_TYPE_I) {
ctx              2367 libavcodec/mpeg4videodec.c     if (ctx->shape != BIN_ONLY_SHAPE) {
ctx              2368 libavcodec/mpeg4videodec.c         skip_bits_long(gb, ctx->cplx_estimation_trash_i);
ctx              2370 libavcodec/mpeg4videodec.c             skip_bits_long(gb, ctx->cplx_estimation_trash_p);
ctx              2372 libavcodec/mpeg4videodec.c             skip_bits_long(gb, ctx->cplx_estimation_trash_b);
ctx              2378 libavcodec/mpeg4videodec.c         ctx->intra_dc_threshold = ff_mpeg4_dc_threshold[get_bits(gb, 3)];
ctx              2399 libavcodec/mpeg4videodec.c         (ctx->vol_sprite_usage == STATIC_SPRITE ||
ctx              2400 libavcodec/mpeg4videodec.c          ctx->vol_sprite_usage == GMC_SPRITE)) {
ctx              2401 libavcodec/mpeg4videodec.c         if (mpeg4_decode_sprite_trajectory(ctx, gb) < 0)
ctx              2403 libavcodec/mpeg4videodec.c         if (ctx->sprite_brightness_change)
ctx              2406 libavcodec/mpeg4videodec.c         if (ctx->vol_sprite_usage == STATIC_SPRITE)
ctx              2410 libavcodec/mpeg4videodec.c     if (ctx->shape != BIN_ONLY_SHAPE) {
ctx              2447 libavcodec/mpeg4videodec.c                    s->data_partitioning, ctx->resync_marker,
ctx              2448 libavcodec/mpeg4videodec.c                    ctx->num_sprite_warping_points, s->sprite_warping_accuracy,
ctx              2450 libavcodec/mpeg4videodec.c                    ctx->vol_control_parameters ? " VOLC" : " ", ctx->intra_dc_threshold,
ctx              2451 libavcodec/mpeg4videodec.c                    ctx->cplx_estimation_trash_i, ctx->cplx_estimation_trash_p,
ctx              2452 libavcodec/mpeg4videodec.c                    ctx->cplx_estimation_trash_b,
ctx              2458 libavcodec/mpeg4videodec.c         if (!ctx->scalability) {
ctx              2459 libavcodec/mpeg4videodec.c             if (ctx->shape != RECT_SHAPE && s->pict_type != AV_PICTURE_TYPE_I)
ctx              2462 libavcodec/mpeg4videodec.c             if (ctx->enhancement_type) {
ctx              2474 libavcodec/mpeg4videodec.c     if (s->vo_type == 0 && ctx->vol_control_parameters == 0 &&
ctx              2475 libavcodec/mpeg4videodec.c         ctx->divx_version == -1 && s->picture_number == 0) {
ctx              2500 libavcodec/mpeg4videodec.c int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb)
ctx              2502 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx              2519 libavcodec/mpeg4videodec.c                 (ctx->divx_version >= 0 || ctx->xvid_build >= 0) || s->codec_tag == AV_RL32("QMP4")) {
ctx              2593 libavcodec/mpeg4videodec.c             if ((ret = decode_vol_header(ctx, gb)) < 0)
ctx              2596 libavcodec/mpeg4videodec.c             decode_user_data(ctx, gb);
ctx              2614 libavcodec/mpeg4videodec.c     return decode_vop_header(ctx, gb);
ctx              2645 libavcodec/mpeg4videodec.c     Mpeg4DecContext *ctx = avctx->priv_data;
ctx              2646 libavcodec/mpeg4videodec.c     MpegEncContext    *s = &ctx->m;
ctx              2706 libavcodec/mpeg4videodec.c     Mpeg4DecContext *ctx = avctx->priv_data;
ctx              2707 libavcodec/mpeg4videodec.c     MpegEncContext *s = &ctx->m;
ctx              2710 libavcodec/mpeg4videodec.c     ctx->divx_version =
ctx              2711 libavcodec/mpeg4videodec.c     ctx->divx_build   =
ctx              2712 libavcodec/mpeg4videodec.c     ctx->xvid_build   =
ctx              2713 libavcodec/mpeg4videodec.c     ctx->lavc_build   = -1;
ctx              2723 libavcodec/mpeg4videodec.c     ctx->time_increment_bits = 4; /* default value for broken headers */
ctx              1720 libavcodec/mpegaudiodec_template.c static void mp_flush(MPADecodeContext *ctx)
ctx              1722 libavcodec/mpegaudiodec_template.c     memset(ctx->synth_buf, 0, sizeof(ctx->synth_buf));
ctx              1723 libavcodec/mpegaudiodec_template.c     memset(ctx->mdct_buf, 0, sizeof(ctx->mdct_buf));
ctx              1724 libavcodec/mpegaudiodec_template.c     ctx->last_buf_size = 0;
ctx              1725 libavcodec/mpegaudiodec_template.c     ctx->dither_state = 0;
ctx                32 libavcodec/mss1.c     MSS12Context   ctx;
ctx               120 libavcodec/mss1.c static int decode_pal(MSS12Context *ctx, ArithCoder *acoder)
ctx               123 libavcodec/mss1.c     uint32_t *pal = ctx->pal + 256 - ctx->free_colours;
ctx               125 libavcodec/mss1.c     if (!ctx->free_colours)
ctx               128 libavcodec/mss1.c     ncol = arith_get_number(acoder, ctx->free_colours + 1);
ctx               142 libavcodec/mss1.c     MSS1Context *ctx = avctx->priv_data;
ctx               143 libavcodec/mss1.c     MSS12Context *c = &ctx->ctx;
ctx               154 libavcodec/mss1.c     if ((ret = ff_reget_buffer(avctx, ctx->pic)) < 0)
ctx               157 libavcodec/mss1.c     c->pal_pic    =  ctx->pic->data[0] + ctx->pic->linesize[0] * (avctx->height - 1);
ctx               158 libavcodec/mss1.c     c->pal_stride = -ctx->pic->linesize[0];
ctx               162 libavcodec/mss1.c         ff_mss12_slicecontext_reset(&ctx->sc);
ctx               164 libavcodec/mss1.c         ctx->pic->key_frame = 1;
ctx               165 libavcodec/mss1.c         ctx->pic->pict_type = AV_PICTURE_TYPE_I;
ctx               169 libavcodec/mss1.c         ctx->pic->key_frame = 0;
ctx               170 libavcodec/mss1.c         ctx->pic->pict_type = AV_PICTURE_TYPE_P;
ctx               172 libavcodec/mss1.c     c->corrupted = ff_mss12_decode_rect(&ctx->sc, &acoder, 0, 0,
ctx               176 libavcodec/mss1.c     memcpy(ctx->pic->data[1], c->pal, AVPALETTE_SIZE);
ctx               177 libavcodec/mss1.c     ctx->pic->palette_has_changed = pal_changed;
ctx               179 libavcodec/mss1.c     if ((ret = av_frame_ref(data, ctx->pic)) < 0)
ctx               193 libavcodec/mss1.c     c->ctx.avctx       = avctx;
ctx               199 libavcodec/mss1.c     ret = ff_mss12_decode_init(&c->ctx, 0, &c->sc, NULL);
ctx               210 libavcodec/mss1.c     MSS1Context * const ctx = avctx->priv_data;
ctx               212 libavcodec/mss1.c     av_frame_free(&ctx->pic);
ctx               213 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                94 libavcodec/mss12.h int ff_mss12_decode_rect(SliceContext *ctx, ArithCoder *acoder,
ctx               100 libavcodec/mss12.h int ff_mss12_decode_end(MSS12Context *ctx);
ctx               159 libavcodec/mss2.c static int decode_pal_v2(MSS12Context *ctx, const uint8_t *buf, int buf_size)
ctx               162 libavcodec/mss2.c     uint32_t *pal = ctx->pal + 256 - ctx->free_colours;
ctx               164 libavcodec/mss2.c     if (!ctx->free_colours)
ctx               168 libavcodec/mss2.c     if (ncol > ctx->free_colours || buf_size < 2 + ncol * 3)
ctx               374 libavcodec/mss2.c     MSS2Context *ctx  = avctx->priv_data;
ctx               375 libavcodec/mss2.c     MSS12Context *c   = &ctx->c;
ctx               426 libavcodec/mss2.c         ctx->dsp.upsample_plane(f->data[0], f->linesize[0], w,      h);
ctx               427 libavcodec/mss2.c         ctx->dsp.upsample_plane(f->data[1], f->linesize[1], w+1 >> 1, h+1 >> 1);
ctx               428 libavcodec/mss2.c         ctx->dsp.upsample_plane(f->data[2], f->linesize[2], w+1 >> 1, h+1 >> 1);
ctx               436 libavcodec/mss2.c         ctx->dsp.mss2_blit_wmv9_masked(c->rgb_pic + y * c->rgb_stride + x * 3,
ctx               444 libavcodec/mss2.c         ctx->dsp.mss2_blit_wmv9(c->rgb_pic + y * c->rgb_stride + x * 3,
ctx               467 libavcodec/mss2.c     MSS2Context *ctx = avctx->priv_data;
ctx               468 libavcodec/mss2.c     MSS12Context *c  = &ctx->c;
ctx               492 libavcodec/mss2.c         ctx->split_position = c->slice_split;
ctx               497 libavcodec/mss2.c                     ctx->split_position = get_bits(&gb, 16);
ctx               499 libavcodec/mss2.c                     ctx->split_position = get_bits(&gb, 12);
ctx               501 libavcodec/mss2.c                 ctx->split_position = get_bits(&gb, 8) << 4;
ctx               504 libavcodec/mss2.c                 ctx->split_position = avctx->height / 2;
ctx               507 libavcodec/mss2.c         ctx->split_position = avctx->height;
ctx               509 libavcodec/mss2.c     if (c->slice_split && (ctx->split_position < 1 - is_555 ||
ctx               510 libavcodec/mss2.c                            ctx->split_position > avctx->height - 1))
ctx               520 libavcodec/mss2.c     if (is_555 && (has_wmv9 || has_mv || c->slice_split && ctx->split_position))
ctx               524 libavcodec/mss2.c     if (ctx->last_pic->format != avctx->pix_fmt)
ctx               525 libavcodec/mss2.c         av_frame_unref(ctx->last_pic);
ctx               602 libavcodec/mss2.c         if (ctx->last_pic->data[0]) {
ctx               603 libavcodec/mss2.c             av_assert0(frame->linesize[0] == ctx->last_pic->linesize[0]);
ctx               604 libavcodec/mss2.c             c->last_rgb_pic = ctx->last_pic->data[0] +
ctx               605 libavcodec/mss2.c                               ctx->last_pic->linesize[0] * (avctx->height - 1);
ctx               611 libavcodec/mss2.c         if ((ret = ff_reget_buffer(avctx, ctx->last_pic)) < 0)
ctx               613 libavcodec/mss2.c         if ((ret = av_frame_ref(frame, ctx->last_pic)) < 0)
ctx               636 libavcodec/mss2.c             ff_mss12_slicecontext_reset(&ctx->sc[0]);
ctx               638 libavcodec/mss2.c                 ff_mss12_slicecontext_reset(&ctx->sc[1]);
ctx               645 libavcodec/mss2.c                                  ctx->split_position, 0,
ctx               653 libavcodec/mss2.c                                      ctx->split_position, 1,
ctx               666 libavcodec/mss2.c             if (c->corrupted = ff_mss12_decode_rect(&ctx->sc[0], &acoder, 0, 0,
ctx               668 libavcodec/mss2.c                                                     ctx->split_position))
ctx               678 libavcodec/mss2.c                 if (c->corrupted = ff_mss12_decode_rect(&ctx->sc[1], &acoder, 0,
ctx               679 libavcodec/mss2.c                                                         ctx->split_position,
ctx               681 libavcodec/mss2.c                                                         avctx->height - ctx->split_position))
ctx               709 libavcodec/mss2.c                     ctx->dsp.mss2_gray_fill_masked(dst, c->rgb_stride,
ctx               728 libavcodec/mss2.c         av_frame_unref(ctx->last_pic);
ctx               729 libavcodec/mss2.c         ret = av_frame_ref(ctx->last_pic, frame);
ctx               800 libavcodec/mss2.c     MSS2Context *const ctx = avctx->priv_data;
ctx               802 libavcodec/mss2.c     av_frame_free(&ctx->last_pic);
ctx               804 libavcodec/mss2.c     ff_mss12_decode_end(&ctx->c);
ctx               805 libavcodec/mss2.c     av_freep(&ctx->c.pal_pic);
ctx               806 libavcodec/mss2.c     av_freep(&ctx->c.last_pal_pic);
ctx               814 libavcodec/mss2.c     MSS2Context * const ctx = avctx->priv_data;
ctx               815 libavcodec/mss2.c     MSS12Context *c = &ctx->c;
ctx               818 libavcodec/mss2.c     if (ret = ff_mss12_decode_init(c, 1, &ctx->sc[0], &ctx->sc[1]))
ctx               820 libavcodec/mss2.c     ctx->last_pic   = av_frame_alloc();
ctx               824 libavcodec/mss2.c     if (!c->pal_pic || !c->last_pal_pic || !ctx->last_pic) {
ctx               832 libavcodec/mss2.c     ff_mss2dsp_init(&ctx->dsp);
ctx               833 libavcodec/mss2.c     ff_qpeldsp_init(&ctx->qdsp);
ctx               623 libavcodec/mss3.c static void reset_coders(MSS3Context *ctx, int quality)
ctx               628 libavcodec/mss3.c         ctx->btype[i].last_type = SKIP_BLOCK;
ctx               630 libavcodec/mss3.c             model_reset(&ctx->btype[i].bt_model[j]);
ctx               631 libavcodec/mss3.c         ctx->fill_coder[i].fill_val = 0;
ctx               632 libavcodec/mss3.c         model_reset(&ctx->fill_coder[i].coef_model);
ctx               633 libavcodec/mss3.c         model256_reset(&ctx->image_coder[i].esc_model);
ctx               634 libavcodec/mss3.c         model256_reset(&ctx->image_coder[i].vec_entry_model);
ctx               635 libavcodec/mss3.c         model_reset(&ctx->image_coder[i].vec_size_model);
ctx               637 libavcodec/mss3.c             model_reset(&ctx->image_coder[i].vq_model[j]);
ctx               638 libavcodec/mss3.c         if (ctx->dct_coder[i].quality != quality) {
ctx               639 libavcodec/mss3.c             ctx->dct_coder[i].quality = quality;
ctx               640 libavcodec/mss3.c             ff_mss34_gen_quant_mat(ctx->dct_coder[i].qmat, quality, !i);
ctx               642 libavcodec/mss3.c         memset(ctx->dct_coder[i].prev_dc, 0,
ctx               643 libavcodec/mss3.c                sizeof(*ctx->dct_coder[i].prev_dc) *
ctx               644 libavcodec/mss3.c                ctx->dct_coder[i].prev_dc_stride *
ctx               645 libavcodec/mss3.c                ctx->dct_coder[i].prev_dc_height);
ctx               646 libavcodec/mss3.c         model_reset(&ctx->dct_coder[i].dc_model);
ctx               647 libavcodec/mss3.c         model2_reset(&ctx->dct_coder[i].sign_model);
ctx               648 libavcodec/mss3.c         model256_reset(&ctx->dct_coder[i].ac_model);
ctx               649 libavcodec/mss3.c         if (ctx->haar_coder[i].quality != quality) {
ctx               650 libavcodec/mss3.c             ctx->haar_coder[i].quality = quality;
ctx               651 libavcodec/mss3.c             ctx->haar_coder[i].scale   = 17 - 7 * quality / 50;
ctx               653 libavcodec/mss3.c         model_reset(&ctx->haar_coder[i].coef_hi_model);
ctx               654 libavcodec/mss3.c         model256_reset(&ctx->haar_coder[i].coef_model);
ctx               658 libavcodec/mss3.c static av_cold void init_coders(MSS3Context *ctx)
ctx               664 libavcodec/mss3.c             model_init(&ctx->btype[i].bt_model[j], 5);
ctx               665 libavcodec/mss3.c         model_init(&ctx->fill_coder[i].coef_model, 12);
ctx               666 libavcodec/mss3.c         model256_init(&ctx->image_coder[i].esc_model);
ctx               667 libavcodec/mss3.c         model256_init(&ctx->image_coder[i].vec_entry_model);
ctx               668 libavcodec/mss3.c         model_init(&ctx->image_coder[i].vec_size_model, 3);
ctx               670 libavcodec/mss3.c             model_init(&ctx->image_coder[i].vq_model[j], 5);
ctx               671 libavcodec/mss3.c         model_init(&ctx->dct_coder[i].dc_model, 12);
ctx               672 libavcodec/mss3.c         model256_init(&ctx->dct_coder[i].ac_model);
ctx               673 libavcodec/mss3.c         model_init(&ctx->haar_coder[i].coef_hi_model, 12);
ctx               674 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                66 libavcodec/nvenc.c typedef CUresult(CUDAAPI *PCUCTXDESTROY)(CUcontext ctx);
ctx               275 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx               276 libavcodec/nvenc.c     NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
ctx               331 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx               332 libavcodec/nvenc.c     NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
ctx               385 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx               386 libavcodec/nvenc.c     NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
ctx               440 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx               441 libavcodec/nvenc.c     NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
ctx               481 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx               482 libavcodec/nvenc.c     NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
ctx               494 libavcodec/nvenc.c     ctx->last_dts = AV_NOPTS_VALUE;
ctx               496 libavcodec/nvenc.c     ctx->encode_config.version = NV_ENC_CONFIG_VER;
ctx               497 libavcodec/nvenc.c     ctx->init_encode_params.version = NV_ENC_INITIALIZE_PARAMS_VER;
ctx               507 libavcodec/nvenc.c     if (ctx->gpu >= dl_fn->nvenc_device_count) {
ctx               508 libavcodec/nvenc.c         av_log(avctx, AV_LOG_FATAL, "Requested GPU %d, but only %d GPUs are available!\n", ctx->gpu, dl_fn->nvenc_device_count);
ctx               513 libavcodec/nvenc.c     ctx->cu_context = NULL;
ctx               514 libavcodec/nvenc.c     cu_res = dl_fn->cu_ctx_create(&ctx->cu_context, 0, dl_fn->nvenc_devices[ctx->gpu]);
ctx               530 libavcodec/nvenc.c     encode_session_params.device = ctx->cu_context;
ctx               533 libavcodec/nvenc.c     nv_status = p_nvenc->nvEncOpenEncodeSessionEx(&encode_session_params, &ctx->nvencoder);
ctx               535 libavcodec/nvenc.c         ctx->nvencoder = NULL;
ctx               541 libavcodec/nvenc.c     if (ctx->preset) {
ctx               542 libavcodec/nvenc.c         if (!strcmp(ctx->preset, "hp")) {
ctx               544 libavcodec/nvenc.c         } else if (!strcmp(ctx->preset, "hq")) {
ctx               546 libavcodec/nvenc.c         } else if (!strcmp(ctx->preset, "bd")) {
ctx               548 libavcodec/nvenc.c         } else if (!strcmp(ctx->preset, "ll")) {
ctx               551 libavcodec/nvenc.c         } else if (!strcmp(ctx->preset, "llhp")) {
ctx               554 libavcodec/nvenc.c         } else if (!strcmp(ctx->preset, "llhq")) {
ctx               557 libavcodec/nvenc.c         } else if (!strcmp(ctx->preset, "default")) {
ctx               560 libavcodec/nvenc.c             av_log(avctx, AV_LOG_FATAL, "Preset \"%s\" is unknown! Supported presets: hp, hq, bd, ll, llhp, llhq, default\n", ctx->preset);
ctx               566 libavcodec/nvenc.c     nv_status = p_nvenc->nvEncGetEncodePresetConfig(ctx->nvencoder, NV_ENC_CODEC_H264_GUID, encoder_preset, &preset_config);
ctx               573 libavcodec/nvenc.c     ctx->init_encode_params.encodeGUID = NV_ENC_CODEC_H264_GUID;
ctx               574 libavcodec/nvenc.c     ctx->init_encode_params.encodeHeight = avctx->height;
ctx               575 libavcodec/nvenc.c     ctx->init_encode_params.encodeWidth = avctx->width;
ctx               583 libavcodec/nvenc.c         ctx->init_encode_params.darHeight = dh;
ctx               584 libavcodec/nvenc.c         ctx->init_encode_params.darWidth = dw;
ctx               586 libavcodec/nvenc.c         ctx->init_encode_params.darHeight = avctx->height;
ctx               587 libavcodec/nvenc.c         ctx->init_encode_params.darWidth = avctx->width;
ctx               595 libavcodec/nvenc.c                   ctx->init_encode_params.darWidth * 44,
ctx               596 libavcodec/nvenc.c                   ctx->init_encode_params.darHeight * 45,
ctx               598 libavcodec/nvenc.c         ctx->init_encode_params.darHeight = dh;
ctx               599 libavcodec/nvenc.c         ctx->init_encode_params.darWidth = dw;
ctx               602 libavcodec/nvenc.c     ctx->init_encode_params.frameRateNum = avctx->time_base.den;
ctx               603 libavcodec/nvenc.c     ctx->init_encode_params.frameRateDen = avctx->time_base.num * avctx->ticks_per_frame;
ctx               606 libavcodec/nvenc.c     ctx->max_surface_count = (num_mbs >= 8160) ? 32 : 48;
ctx               608 libavcodec/nvenc.c     ctx->init_encode_params.enableEncodeAsync = 0;
ctx               609 libavcodec/nvenc.c     ctx->init_encode_params.enablePTD = 1;
ctx               611 libavcodec/nvenc.c     ctx->init_encode_params.presetGUID = encoder_preset;
ctx               613 libavcodec/nvenc.c     ctx->init_encode_params.encodeConfig = &ctx->encode_config;
ctx               614 libavcodec/nvenc.c     memcpy(&ctx->encode_config, &preset_config.presetCfg, sizeof(ctx->encode_config));
ctx               615 libavcodec/nvenc.c     ctx->encode_config.version = NV_ENC_CONFIG_VER;
ctx               619 libavcodec/nvenc.c         ctx->encode_config.encodeCodecConfig.h264Config.maxNumRefFrames = avctx->refs;
ctx               625 libavcodec/nvenc.c             ctx->encode_config.frameIntervalP = avctx->max_b_frames + 1;
ctx               628 libavcodec/nvenc.c         ctx->encode_config.gopLength = avctx->gop_size;
ctx               629 libavcodec/nvenc.c         ctx->encode_config.encodeCodecConfig.h264Config.idrPeriod = avctx->gop_size;
ctx               631 libavcodec/nvenc.c         ctx->encode_config.frameIntervalP = 0;
ctx               632 libavcodec/nvenc.c         ctx->encode_config.gopLength = 1;
ctx               633 libavcodec/nvenc.c         ctx->encode_config.encodeCodecConfig.h264Config.idrPeriod = 1;
ctx               637 libavcodec/nvenc.c     if (ctx->encode_config.frameIntervalP >= 2)
ctx               638 libavcodec/nvenc.c         ctx->last_dts = -2;
ctx               641 libavcodec/nvenc.c         ctx->encode_config.rcParams.averageBitRate = avctx->bit_rate;
ctx               644 libavcodec/nvenc.c         ctx->encode_config.rcParams.maxBitRate = avctx->rc_max_rate;
ctx               646 libavcodec/nvenc.c     if (ctx->cbr) {
ctx               647 libavcodec/nvenc.c         if (!ctx->twopass) {
ctx               648 libavcodec/nvenc.c             ctx->encode_config.rcParams.rateControlMode = NV_ENC_PARAMS_RC_CBR;
ctx               649 libavcodec/nvenc.c         } else if (ctx->twopass == 1 || isLL) {
ctx               650 libavcodec/nvenc.c             ctx->encode_config.rcParams.rateControlMode = NV_ENC_PARAMS_RC_2_PASS_QUALITY;
ctx               652 libavcodec/nvenc.c             ctx->encode_config.encodeCodecConfig.h264Config.adaptiveTransformMode = NV_ENC_H264_ADAPTIVE_TRANSFORM_ENABLE;
ctx               653 libavcodec/nvenc.c             ctx->encode_config.encodeCodecConfig.h264Config.fmoMode = NV_ENC_H264_FMO_DISABLE;
ctx               658 libavcodec/nvenc.c             ctx->encode_config.rcParams.rateControlMode = NV_ENC_PARAMS_RC_CBR;
ctx               661 libavcodec/nvenc.c         ctx->encode_config.rcParams.rateControlMode = NV_ENC_PARAMS_RC_CONSTQP;
ctx               662 libavcodec/nvenc.c         ctx->encode_config.rcParams.constQP.qpInterB = avctx->global_quality;
ctx               663 libavcodec/nvenc.c         ctx->encode_config.rcParams.constQP.qpInterP = avctx->global_quality;
ctx               664 libavcodec/nvenc.c         ctx->encode_config.rcParams.constQP.qpIntra = avctx->global_quality;
ctx               669 libavcodec/nvenc.c         ctx->encode_config.rcParams.rateControlMode = NV_ENC_PARAMS_RC_VBR;
ctx               671 libavcodec/nvenc.c         ctx->encode_config.rcParams.enableMinQP = 1;
ctx               672 libavcodec/nvenc.c         ctx->encode_config.rcParams.enableMaxQP = 1;
ctx               674 libavcodec/nvenc.c         ctx->encode_config.rcParams.minQP.qpInterB = avctx->qmin;
ctx               675 libavcodec/nvenc.c         ctx->encode_config.rcParams.minQP.qpInterP = avctx->qmin;
ctx               676 libavcodec/nvenc.c         ctx->encode_config.rcParams.minQP.qpIntra = avctx->qmin;
ctx               678 libavcodec/nvenc.c         ctx->encode_config.rcParams.maxQP.qpInterB = avctx->qmax;
ctx               679 libavcodec/nvenc.c         ctx->encode_config.rcParams.maxQP.qpInterP = avctx->qmax;
ctx               680 libavcodec/nvenc.c         ctx->encode_config.rcParams.maxQP.qpIntra = avctx->qmax;
ctx               684 libavcodec/nvenc.c         ctx->encode_config.rcParams.vbvBufferSize = avctx->rc_buffer_size;
ctx               687 libavcodec/nvenc.c         ctx->encode_config.frameFieldMode = NV_ENC_PARAMS_FRAME_FIELD_MODE_FIELD;
ctx               689 libavcodec/nvenc.c         ctx->encode_config.frameFieldMode = NV_ENC_PARAMS_FRAME_FIELD_MODE_FRAME;
ctx               694 libavcodec/nvenc.c         ctx->encode_config.profileGUID = NV_ENC_H264_PROFILE_BASELINE_GUID;
ctx               697 libavcodec/nvenc.c         ctx->encode_config.profileGUID = NV_ENC_H264_PROFILE_MAIN_GUID;
ctx               701 libavcodec/nvenc.c         ctx->encode_config.profileGUID = NV_ENC_H264_PROFILE_HIGH_GUID;
ctx               705 libavcodec/nvenc.c         ctx->encode_config.profileGUID = NV_ENC_H264_PROFILE_HIGH_GUID;
ctx               709 libavcodec/nvenc.c     ctx->encode_config.encodeCodecConfig.h264Config.h264VUIParameters.colourDescriptionPresentFlag = 1;
ctx               710 libavcodec/nvenc.c     ctx->encode_config.encodeCodecConfig.h264Config.h264VUIParameters.videoSignalTypePresentFlag = 1;
ctx               712 libavcodec/nvenc.c     ctx->encode_config.encodeCodecConfig.h264Config.h264VUIParameters.colourMatrix = avctx->colorspace;
ctx               713 libavcodec/nvenc.c     ctx->encode_config.encodeCodecConfig.h264Config.h264VUIParameters.colourPrimaries = avctx->color_primaries;
ctx               714 libavcodec/nvenc.c     ctx->encode_config.encodeCodecConfig.h264Config.h264VUIParameters.transferCharacteristics = avctx->color_trc;
ctx               716 libavcodec/nvenc.c     ctx->encode_config.encodeCodecConfig.h264Config.h264VUIParameters.videoFullRangeFlag = avctx->color_range == AVCOL_RANGE_JPEG;
ctx               718 libavcodec/nvenc.c     ctx->encode_config.encodeCodecConfig.h264Config.disableSPSPPS = (avctx->flags & CODEC_FLAG_GLOBAL_HEADER) ? 1 : 0;
ctx               719 libavcodec/nvenc.c     ctx->encode_config.encodeCodecConfig.h264Config.repeatSPSPPS = (avctx->flags & CODEC_FLAG_GLOBAL_HEADER) ? 0 : 1;
ctx               721 libavcodec/nvenc.c     nv_status = p_nvenc->nvEncInitializeEncoder(ctx->nvencoder, &ctx->init_encode_params);
ctx               728 libavcodec/nvenc.c     ctx->input_surfaces = av_malloc(ctx->max_surface_count * sizeof(*ctx->input_surfaces));
ctx               730 libavcodec/nvenc.c     if (!ctx->input_surfaces) {
ctx               735 libavcodec/nvenc.c     ctx->output_surfaces = av_malloc(ctx->max_surface_count * sizeof(*ctx->output_surfaces));
ctx               737 libavcodec/nvenc.c     if (!ctx->output_surfaces) {
ctx               742 libavcodec/nvenc.c     for (surfaceCount = 0; surfaceCount < ctx->max_surface_count; ++surfaceCount) {
ctx               772 libavcodec/nvenc.c         nv_status = p_nvenc->nvEncCreateInputBuffer(ctx->nvencoder, &allocSurf);
ctx               779 libavcodec/nvenc.c         ctx->input_surfaces[surfaceCount].lockCount = 0;
ctx               780 libavcodec/nvenc.c         ctx->input_surfaces[surfaceCount].input_surface = allocSurf.inputBuffer;
ctx               781 libavcodec/nvenc.c         ctx->input_surfaces[surfaceCount].format = allocSurf.bufferFmt;
ctx               782 libavcodec/nvenc.c         ctx->input_surfaces[surfaceCount].width = allocSurf.width;
ctx               783 libavcodec/nvenc.c         ctx->input_surfaces[surfaceCount].height = allocSurf.height;
ctx               790 libavcodec/nvenc.c         nv_status = p_nvenc->nvEncCreateBitstreamBuffer(ctx->nvencoder, &allocOut);
ctx               793 libavcodec/nvenc.c             ctx->output_surfaces[surfaceCount++].output_surface = NULL;
ctx               798 libavcodec/nvenc.c         ctx->output_surfaces[surfaceCount].output_surface = allocOut.bitstreamBuffer;
ctx               799 libavcodec/nvenc.c         ctx->output_surfaces[surfaceCount].size = allocOut.size;
ctx               800 libavcodec/nvenc.c         ctx->output_surfaces[surfaceCount].busy = 0;
ctx               813 libavcodec/nvenc.c         nv_status = p_nvenc->nvEncGetSequenceParams(ctx->nvencoder, &payload);
ctx               830 libavcodec/nvenc.c     if (ctx->encode_config.frameIntervalP > 1)
ctx               833 libavcodec/nvenc.c     if (ctx->encode_config.rcParams.averageBitRate > 0)
ctx               834 libavcodec/nvenc.c         avctx->bit_rate = ctx->encode_config.rcParams.averageBitRate;
ctx               841 libavcodec/nvenc.c         p_nvenc->nvEncDestroyInputBuffer(ctx->nvencoder, ctx->input_surfaces[i].input_surface);
ctx               842 libavcodec/nvenc.c         if (ctx->output_surfaces[i].output_surface)
ctx               843 libavcodec/nvenc.c             p_nvenc->nvEncDestroyBitstreamBuffer(ctx->nvencoder, ctx->output_surfaces[i].output_surface);
ctx               846 libavcodec/nvenc.c     if (ctx->nvencoder)
ctx               847 libavcodec/nvenc.c         p_nvenc->nvEncDestroyEncoder(ctx->nvencoder);
ctx               849 libavcodec/nvenc.c     if (ctx->cu_context)
ctx               850 libavcodec/nvenc.c         dl_fn->cu_ctx_destroy(ctx->cu_context);
ctx               856 libavcodec/nvenc.c     ctx->nvencoder = NULL;
ctx               857 libavcodec/nvenc.c     ctx->cu_context = NULL;
ctx               864 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx               865 libavcodec/nvenc.c     NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
ctx               869 libavcodec/nvenc.c     av_freep(&ctx->timestamp_list.data);
ctx               870 libavcodec/nvenc.c     av_freep(&ctx->output_surface_ready_queue.data);
ctx               871 libavcodec/nvenc.c     av_freep(&ctx->output_surface_queue.data);
ctx               873 libavcodec/nvenc.c     for (i = 0; i < ctx->max_surface_count; ++i) {
ctx               874 libavcodec/nvenc.c         p_nvenc->nvEncDestroyInputBuffer(ctx->nvencoder, ctx->input_surfaces[i].input_surface);
ctx               875 libavcodec/nvenc.c         p_nvenc->nvEncDestroyBitstreamBuffer(ctx->nvencoder, ctx->output_surfaces[i].output_surface);
ctx               877 libavcodec/nvenc.c     ctx->max_surface_count = 0;
ctx               879 libavcodec/nvenc.c     p_nvenc->nvEncDestroyEncoder(ctx->nvencoder);
ctx               880 libavcodec/nvenc.c     ctx->nvencoder = NULL;
ctx               882 libavcodec/nvenc.c     dl_fn->cu_ctx_destroy(ctx->cu_context);
ctx               883 libavcodec/nvenc.c     ctx->cu_context = NULL;
ctx               894 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx               895 libavcodec/nvenc.c     NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
ctx               898 libavcodec/nvenc.c     uint32_t *slice_offsets = av_mallocz(ctx->encode_config.encodeCodecConfig.h264Config.sliceModeData * sizeof(*slice_offsets));
ctx               912 libavcodec/nvenc.c     nv_status = p_nvenc->nvEncLockBitstream(ctx->nvencoder, &lock_params);
ctx               920 libavcodec/nvenc.c         p_nvenc->nvEncUnlockBitstream(ctx->nvencoder, tmpoutsurf->output_surface);
ctx               926 libavcodec/nvenc.c     nv_status = p_nvenc->nvEncUnlockBitstream(ctx->nvencoder, tmpoutsurf->output_surface);
ctx               953 libavcodec/nvenc.c     pkt->dts = timestamp_queue_dequeue(&ctx->timestamp_list);
ctx               956 libavcodec/nvenc.c     if (ctx->encode_config.frameIntervalP >= 2)
ctx               962 libavcodec/nvenc.c     if (ctx->last_dts != AV_NOPTS_VALUE && pkt->dts <= ctx->last_dts)
ctx               963 libavcodec/nvenc.c         pkt->dts = ctx->last_dts + 1;
ctx               965 libavcodec/nvenc.c     ctx->last_dts = pkt->dts;
ctx               974 libavcodec/nvenc.c     timestamp_queue_dequeue(&ctx->timestamp_list);
ctx               986 libavcodec/nvenc.c     NvencContext *ctx = avctx->priv_data;
ctx               987 libavcodec/nvenc.c     NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
ctx               997 libavcodec/nvenc.c         for (i = 0; i < ctx->max_surface_count; ++i) {
ctx               998 libavcodec/nvenc.c             if (!ctx->input_surfaces[i].lockCount) {
ctx               999 libavcodec/nvenc.c                 inSurf = &ctx->input_surfaces[i];
ctx              1011 libavcodec/nvenc.c         nv_status = p_nvenc->nvEncLockInputBuffer(ctx->nvencoder, &lockBufferParams);
ctx              1070 libavcodec/nvenc.c         nv_status = p_nvenc->nvEncUnlockInputBuffer(ctx->nvencoder, inSurf->input_surface);
ctx              1076 libavcodec/nvenc.c         for (i = 0; i < ctx->max_surface_count; ++i)
ctx              1077 libavcodec/nvenc.c             if (!ctx->output_surfaces[i].busy)
ctx              1080 libavcodec/nvenc.c         if (i == ctx->max_surface_count) {
ctx              1086 libavcodec/nvenc.c         ctx->output_surfaces[i].input_surface = inSurf;
ctx              1092 libavcodec/nvenc.c         pic_params.outputBitstream = ctx->output_surfaces[i].output_surface;
ctx              1108 libavcodec/nvenc.c         pic_params.codecPicParams.h264PicParams.sliceMode = ctx->encode_config.encodeCodecConfig.h264Config.sliceMode;
ctx              1109 libavcodec/nvenc.c         pic_params.codecPicParams.h264PicParams.sliceModeData = ctx->encode_config.encodeCodecConfig.h264Config.sliceModeData;
ctx              1112 libavcodec/nvenc.c         memcpy(&pic_params.rcParams, &ctx->encode_config.rcParams, sizeof(NV_ENC_RC_PARAMS));
ctx              1115 libavcodec/nvenc.c         res = timestamp_queue_enqueue(&ctx->timestamp_list, frame->pts);
ctx              1123 libavcodec/nvenc.c     nv_status = p_nvenc->nvEncEncodePicture(ctx->nvencoder, &pic_params);
ctx              1126 libavcodec/nvenc.c         res = out_surf_queue_enqueue(&ctx->output_surface_queue, &ctx->output_surfaces[i]);
ctx              1131 libavcodec/nvenc.c         ctx->output_surfaces[i].busy = 1;
ctx              1140 libavcodec/nvenc.c         while (ctx->output_surface_queue.count) {
ctx              1141 libavcodec/nvenc.c             tmpoutsurf = out_surf_queue_dequeue(&ctx->output_surface_queue);
ctx              1142 libavcodec/nvenc.c             res = out_surf_queue_enqueue(&ctx->output_surface_ready_queue, tmpoutsurf);
ctx              1149 libavcodec/nvenc.c             res = out_surf_queue_enqueue(&ctx->output_surface_ready_queue, &ctx->output_surfaces[i]);
ctx              1154 libavcodec/nvenc.c             ctx->output_surfaces[i].busy = 1;
ctx              1158 libavcodec/nvenc.c     if (ctx->output_surface_ready_queue.count) {
ctx              1159 libavcodec/nvenc.c         tmpoutsurf = out_surf_queue_dequeue(&ctx->output_surface_ready_queue);
ctx                53 libavcodec/on2avc.c     void (*wtf)(struct On2AVCContext *ctx, float *out, float *in, int size);
ctx               314 libavcodec/options.c static int dummy_init(AVCodecContext *ctx)
ctx               317 libavcodec/options.c     ctx->extradata_size = 8;
ctx               318 libavcodec/options.c     ctx->extradata = av_malloc(ctx->extradata_size);
ctx               319 libavcodec/options.c     ctx->coded_frame = av_frame_alloc();
ctx               323 libavcodec/options.c static int dummy_close(AVCodecContext *ctx)
ctx               325 libavcodec/options.c     av_freep(&ctx->extradata);
ctx               326 libavcodec/options.c     ctx->extradata_size = 0;
ctx               327 libavcodec/options.c     av_frame_free(&ctx->coded_frame);
ctx               331 libavcodec/options.c static int dummy_encode(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
ctx               415 libavcodec/options.c static void test_copy_print_codec(const AVCodecContext *ctx)
ctx               418 libavcodec/options.c            ctx->codec ? ctx->codec->name : "NULL",
ctx               419 libavcodec/options.c            ctx->width, ctx->height,
ctx               420 libavcodec/options.c            ctx->priv_data ? "set" : "null");
ctx               421 libavcodec/options.c     if (ctx->codec && ctx->codec->priv_class && ctx->codec->priv_data_size) {
ctx               424 libavcodec/options.c         av_opt_get_int(ctx->priv_data, "num", 0, &i64);
ctx               425 libavcodec/options.c         av_opt_get(ctx->priv_data, "str", 0, (uint8_t**)&str);
ctx                34 libavcodec/opus_parser.c     OpusContext ctx;
ctx                77 libavcodec/opus_parser.c static int opus_find_frame_end(AVCodecParserContext *ctx, AVCodecContext *avctx,
ctx                80 libavcodec/opus_parser.c     OpusParseContext *s = ctx->priv_data;
ctx               118 libavcodec/opus_parser.c         ret = ff_opus_parse_extradata(avctx, &s->ctx);
ctx               123 libavcodec/opus_parser.c         av_freep(&s->ctx.channel_maps);
ctx               128 libavcodec/opus_parser.c         ret = ff_opus_parse_packet(&s->pkt, payload, payload_len, s->ctx.nb_streams > 1);
ctx               135 libavcodec/opus_parser.c         ctx->duration = s->pkt.frame_count * s->pkt.frame_duration;
ctx               155 libavcodec/opus_parser.c static int opus_parse(AVCodecParserContext *ctx, AVCodecContext *avctx,
ctx               159 libavcodec/opus_parser.c     OpusParseContext *s = ctx->priv_data;
ctx               163 libavcodec/opus_parser.c     next = opus_find_frame_end(ctx, avctx, buf, buf_size, &header_len);
ctx               554 libavcodec/opusdec.c static av_cold void opus_decode_flush(AVCodecContext *ctx)
ctx               556 libavcodec/opusdec.c     OpusContext *c = ctx->priv_data;
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               326 libavcodec/pgssubdec.c     PGSSubContext *ctx = avctx->priv_data;
ctx               337 libavcodec/pgssubdec.c     palette = find_palette(id, &ctx->palettes);
ctx               339 libavcodec/pgssubdec.c         if (ctx->palettes.count >= MAX_EPOCH_PALETTES) {
ctx               343 libavcodec/pgssubdec.c         palette = &ctx->palettes.palette[ctx->palettes.count++];
ctx               383 libavcodec/pgssubdec.c     PGSSubContext *ctx = avctx->priv_data;
ctx               391 libavcodec/pgssubdec.c     ctx->presentation.pts = pts;
ctx               403 libavcodec/pgssubdec.c     ctx->presentation.id_number = bytestream_get_be16(&buf);
ctx               422 libavcodec/pgssubdec.c     ctx->presentation.palette_id = bytestream_get_byte(&buf);
ctx               423 libavcodec/pgssubdec.c     ctx->presentation.object_count = bytestream_get_byte(&buf);
ctx               424 libavcodec/pgssubdec.c     if (ctx->presentation.object_count > MAX_OBJECT_REFS) {
ctx               427 libavcodec/pgssubdec.c                ctx->presentation.object_count);
ctx               428 libavcodec/pgssubdec.c         ctx->presentation.object_count = 2;
ctx               435 libavcodec/pgssubdec.c     for (i = 0; i < ctx->presentation.object_count; i++)
ctx               440 libavcodec/pgssubdec.c             ctx->presentation.object_count = i;
ctx               444 libavcodec/pgssubdec.c         ctx->presentation.objects[i].id = bytestream_get_be16(&buf);
ctx               445 libavcodec/pgssubdec.c         ctx->presentation.objects[i].window_id = bytestream_get_byte(&buf);
ctx               446 libavcodec/pgssubdec.c         ctx->presentation.objects[i].composition_flag = bytestream_get_byte(&buf);
ctx               448 libavcodec/pgssubdec.c         ctx->presentation.objects[i].x = bytestream_get_be16(&buf);
ctx               449 libavcodec/pgssubdec.c         ctx->presentation.objects[i].y = bytestream_get_be16(&buf);
ctx               452 libavcodec/pgssubdec.c         if (ctx->presentation.objects[i].composition_flag & 0x80) {
ctx               453 libavcodec/pgssubdec.c             ctx->presentation.objects[i].crop_x = bytestream_get_be16(&buf);
ctx               454 libavcodec/pgssubdec.c             ctx->presentation.objects[i].crop_y = bytestream_get_be16(&buf);
ctx               455 libavcodec/pgssubdec.c             ctx->presentation.objects[i].crop_w = bytestream_get_be16(&buf);
ctx               456 libavcodec/pgssubdec.c             ctx->presentation.objects[i].crop_h = bytestream_get_be16(&buf);
ctx               460 libavcodec/pgssubdec.c                 ctx->presentation.objects[i].x, ctx->presentation.objects[i].y);
ctx               462 libavcodec/pgssubdec.c         if (ctx->presentation.objects[i].x > avctx->width ||
ctx               463 libavcodec/pgssubdec.c             ctx->presentation.objects[i].y > avctx->height) {
ctx               465 libavcodec/pgssubdec.c                    ctx->presentation.objects[i].x,
ctx               466 libavcodec/pgssubdec.c                    ctx->presentation.objects[i].y,
ctx               468 libavcodec/pgssubdec.c             ctx->presentation.objects[i].x = 0;
ctx               469 libavcodec/pgssubdec.c             ctx->presentation.objects[i].y = 0;
ctx               493 libavcodec/pgssubdec.c     PGSSubContext *ctx = avctx->priv_data;
ctx               498 libavcodec/pgssubdec.c     pts = ctx->presentation.pts != AV_NOPTS_VALUE ? ctx->presentation.pts : sub->pts;
ctx               501 libavcodec/pgssubdec.c     ctx->presentation.pts = AV_NOPTS_VALUE;
ctx               510 libavcodec/pgssubdec.c     if (!ctx->presentation.object_count)
ctx               512 libavcodec/pgssubdec.c     sub->rects = av_mallocz_array(ctx->presentation.object_count, sizeof(*sub->rects));
ctx               516 libavcodec/pgssubdec.c     palette = find_palette(ctx->presentation.palette_id, &ctx->palettes);
ctx               520 libavcodec/pgssubdec.c                ctx->presentation.palette_id);
ctx               524 libavcodec/pgssubdec.c     for (i = 0; i < ctx->presentation.object_count; i++) {
ctx               536 libavcodec/pgssubdec.c         object = find_object(ctx->presentation.objects[i].id, &ctx->objects);
ctx               540 libavcodec/pgssubdec.c                    ctx->presentation.objects[i].id);
ctx               548 libavcodec/pgssubdec.c         if (ctx->presentation.objects[i].composition_flag & 0x40)
ctx               551 libavcodec/pgssubdec.c         sub->rects[i]->x    = ctx->presentation.objects[i].x;
ctx               552 libavcodec/pgssubdec.c         sub->rects[i]->y    = ctx->presentation.objects[i].y;
ctx               587 libavcodec/pgssubdec.c         if (!ctx->forced_subs_only || ctx->presentation.objects[i].composition_flag & 0x40)
ctx                33 libavcodec/ppc/videodsp_ppc.c av_cold void ff_videodsp_init_ppc(VideoDSPContext *ctx, int bpc)
ctx                35 libavcodec/ppc/videodsp_ppc.c     ctx->prefetch = prefetch_ppc;
ctx                48 libavcodec/proresdec2.c     ProresContext *ctx = avctx->priv_data;
ctx                53 libavcodec/proresdec2.c     ff_blockdsp_init(&ctx->bdsp, avctx);
ctx                54 libavcodec/proresdec2.c     ff_proresdsp_init(&ctx->prodsp, avctx);
ctx                57 libavcodec/proresdec2.c                                   ctx->prodsp.idct_permutation_type);
ctx                59 libavcodec/proresdec2.c     permute(ctx->progressive_scan, ff_prores_progressive_scan, idct_permutation);
ctx                60 libavcodec/proresdec2.c     permute(ctx->interlaced_scan, ff_prores_interlaced_scan, idct_permutation);
ctx                65 libavcodec/proresdec2.c static int decode_frame_header(ProresContext *ctx, const uint8_t *buf,
ctx                94 libavcodec/proresdec2.c     ctx->frame_type = (buf[12] >> 2) & 3;
ctx                95 libavcodec/proresdec2.c     ctx->alpha_info = buf[17] & 0xf;
ctx                97 libavcodec/proresdec2.c     if (ctx->alpha_info > 2) {
ctx                98 libavcodec/proresdec2.c         av_log(avctx, AV_LOG_ERROR, "Invalid alpha mode %d\n", ctx->alpha_info);
ctx               101 libavcodec/proresdec2.c     if (avctx->skip_alpha) ctx->alpha_info = 0;
ctx               103 libavcodec/proresdec2.c     av_dlog(avctx, "frame type %d\n", ctx->frame_type);
ctx               105 libavcodec/proresdec2.c     if (ctx->frame_type == 0) {
ctx               106 libavcodec/proresdec2.c         ctx->scan = ctx->progressive_scan; // permuted
ctx               108 libavcodec/proresdec2.c         ctx->scan = ctx->interlaced_scan; // permuted
ctx               109 libavcodec/proresdec2.c         ctx->frame->interlaced_frame = 1;
ctx               110 libavcodec/proresdec2.c         ctx->frame->top_field_first = ctx->frame_type == 1;
ctx               113 libavcodec/proresdec2.c     if (ctx->alpha_info) {
ctx               128 libavcodec/proresdec2.c         permute(ctx->qmat_luma, ctx->prodsp.idct_permutation, ptr);
ctx               131 libavcodec/proresdec2.c         memset(ctx->qmat_luma, 4, 64);
ctx               139 libavcodec/proresdec2.c         permute(ctx->qmat_chroma, ctx->prodsp.idct_permutation, ptr);
ctx               141 libavcodec/proresdec2.c         memset(ctx->qmat_chroma, 4, 64);
ctx               149 libavcodec/proresdec2.c     ProresContext *ctx = avctx->priv_data;
ctx               176 libavcodec/proresdec2.c     ctx->mb_width  = (avctx->width  + 15) >> 4;
ctx               177 libavcodec/proresdec2.c     if (ctx->frame_type)
ctx               178 libavcodec/proresdec2.c         ctx->mb_height = (avctx->height + 31) >> 5;
ctx               180 libavcodec/proresdec2.c         ctx->mb_height = (avctx->height + 15) >> 4;
ctx               184 libavcodec/proresdec2.c     if (ctx->slice_count != slice_count || !ctx->slices) {
ctx               185 libavcodec/proresdec2.c         av_freep(&ctx->slices);
ctx               186 libavcodec/proresdec2.c         ctx->slices = av_mallocz_array(slice_count, sizeof(*ctx->slices));
ctx               187 libavcodec/proresdec2.c         if (!ctx->slices)
ctx               189 libavcodec/proresdec2.c         ctx->slice_count = slice_count;
ctx               209 libavcodec/proresdec2.c         SliceContext *slice = &ctx->slices[i];
ctx               214 libavcodec/proresdec2.c         while (ctx->mb_width - mb_x < slice_mb_count)
ctx               228 libavcodec/proresdec2.c         if (mb_x == ctx->mb_width) {
ctx               239 libavcodec/proresdec2.c     if (mb_x || mb_y != ctx->mb_height) {
ctx               241 libavcodec/proresdec2.c                mb_y, ctx->mb_height);
ctx               317 libavcodec/proresdec2.c     ProresContext *ctx = avctx->priv_data;
ctx               350 libavcodec/proresdec2.c         out[((pos & block_mask) << 6) + ctx->scan[i]] = ((level ^ sign) - sign);
ctx               362 libavcodec/proresdec2.c     ProresContext *ctx = avctx->priv_data;
ctx               370 libavcodec/proresdec2.c         ctx->bdsp.clear_block(blocks+(i<<6));
ctx               380 libavcodec/proresdec2.c         ctx->prodsp.idct_put(dst, dst_stride, block+(0<<6), qmat);
ctx               381 libavcodec/proresdec2.c         ctx->prodsp.idct_put(dst             +8, dst_stride, block+(1<<6), qmat);
ctx               382 libavcodec/proresdec2.c         ctx->prodsp.idct_put(dst+4*dst_stride  , dst_stride, block+(2<<6), qmat);
ctx               383 libavcodec/proresdec2.c         ctx->prodsp.idct_put(dst+4*dst_stride+8, dst_stride, block+(3<<6), qmat);
ctx               395 libavcodec/proresdec2.c     ProresContext *ctx = avctx->priv_data;
ctx               403 libavcodec/proresdec2.c         ctx->bdsp.clear_block(blocks+(i<<6));
ctx               414 libavcodec/proresdec2.c             ctx->prodsp.idct_put(dst,              dst_stride, block+(0<<6), qmat);
ctx               415 libavcodec/proresdec2.c             ctx->prodsp.idct_put(dst+4*dst_stride, dst_stride, block+(1<<6), qmat);
ctx               471 libavcodec/proresdec2.c static void decode_slice_alpha(ProresContext *ctx,
ctx               482 libavcodec/proresdec2.c         ctx->bdsp.clear_block(blocks+(i<<6));
ctx               486 libavcodec/proresdec2.c     if (ctx->alpha_info == 2) {
ctx               502 libavcodec/proresdec2.c     ProresContext *ctx = avctx->priv_data;
ctx               503 libavcodec/proresdec2.c     SliceContext *slice = &ctx->slices[jobnr];
ctx               505 libavcodec/proresdec2.c     AVFrame *pic = ctx->frame;
ctx               539 libavcodec/proresdec2.c         qmat_luma_scaled  [i] = ctx->qmat_luma  [i] * qscale;
ctx               540 libavcodec/proresdec2.c         qmat_chroma_scaled[i] = ctx->qmat_chroma[i] * qscale;
ctx               543 libavcodec/proresdec2.c     if (ctx->frame_type == 0) {
ctx               564 libavcodec/proresdec2.c     if (ctx->frame_type && ctx->first_field ^ ctx->frame->top_field_first) {
ctx               590 libavcodec/proresdec2.c     if (ctx->alpha_info && pic->data[3] && a_data_size)
ctx               591 libavcodec/proresdec2.c         decode_slice_alpha(ctx, (uint16_t*)dest_a, luma_stride,
ctx               601 libavcodec/proresdec2.c     ProresContext *ctx = avctx->priv_data;
ctx               604 libavcodec/proresdec2.c     avctx->execute2(avctx, decode_slice_thread, NULL, NULL, ctx->slice_count);
ctx               606 libavcodec/proresdec2.c     for (i = 0; i < ctx->slice_count; i++)
ctx               607 libavcodec/proresdec2.c         if (ctx->slices[i].ret < 0)
ctx               608 libavcodec/proresdec2.c             return ctx->slices[i].ret;
ctx               616 libavcodec/proresdec2.c     ProresContext *ctx = avctx->priv_data;
ctx               627 libavcodec/proresdec2.c     ctx->frame = frame;
ctx               628 libavcodec/proresdec2.c     ctx->frame->pict_type = AV_PICTURE_TYPE_I;
ctx               629 libavcodec/proresdec2.c     ctx->frame->key_frame = 1;
ctx               630 libavcodec/proresdec2.c     ctx->first_field = 1;
ctx               635 libavcodec/proresdec2.c     frame_hdr_size = decode_frame_header(ctx, buf, buf_size, avctx);
ctx               660 libavcodec/proresdec2.c     if (ctx->frame_type && buf_size > 0 && ctx->first_field) {
ctx               661 libavcodec/proresdec2.c         ctx->first_field = 0;
ctx               672 libavcodec/proresdec2.c     ProresContext *ctx = avctx->priv_data;
ctx               674 libavcodec/proresdec2.c     av_freep(&ctx->slices);
ctx                83 libavcodec/proresdec_lgpl.c     ProresContext *ctx = avctx->priv_data;
ctx                85 libavcodec/proresdec_lgpl.c     ctx->total_slices     = 0;
ctx                86 libavcodec/proresdec_lgpl.c     ctx->slice_data       = NULL;
ctx                89 libavcodec/proresdec_lgpl.c     ff_proresdsp_init(&ctx->dsp, avctx);
ctx                91 libavcodec/proresdec_lgpl.c     ctx->scantable_type = -1;   // set scantable type to uninitialized
ctx                92 libavcodec/proresdec_lgpl.c     memset(ctx->qmat_luma, 4, 64);
ctx                93 libavcodec/proresdec_lgpl.c     memset(ctx->qmat_chroma, 4, 64);
ctx                99 libavcodec/proresdec_lgpl.c static int decode_frame_header(ProresContext *ctx, const uint8_t *buf,
ctx               127 libavcodec/proresdec_lgpl.c     ctx->frame_type = (buf[12] >> 2) & 3;
ctx               128 libavcodec/proresdec_lgpl.c     if (ctx->frame_type > 2) {
ctx               130 libavcodec/proresdec_lgpl.c                "unsupported frame type: %d\n", ctx->frame_type);
ctx               134 libavcodec/proresdec_lgpl.c     ctx->chroma_factor     = (buf[12] >> 6) & 3;
ctx               135 libavcodec/proresdec_lgpl.c     ctx->mb_chroma_factor  = ctx->chroma_factor + 2;
ctx               136 libavcodec/proresdec_lgpl.c     ctx->num_chroma_blocks = (1 << ctx->chroma_factor) >> 1;
ctx               137 libavcodec/proresdec_lgpl.c     ctx->alpha_info        = buf[17] & 0xf;
ctx               139 libavcodec/proresdec_lgpl.c     if (ctx->alpha_info > 2) {
ctx               140 libavcodec/proresdec_lgpl.c         av_log(avctx, AV_LOG_ERROR, "Invalid alpha mode %d\n", ctx->alpha_info);
ctx               143 libavcodec/proresdec_lgpl.c     if (avctx->skip_alpha) ctx->alpha_info = 0;
ctx               145 libavcodec/proresdec_lgpl.c     switch (ctx->chroma_factor) {
ctx               147 libavcodec/proresdec_lgpl.c         avctx->pix_fmt = ctx->alpha_info ? AV_PIX_FMT_YUVA422P10
ctx               151 libavcodec/proresdec_lgpl.c         avctx->pix_fmt = ctx->alpha_info ? AV_PIX_FMT_YUVA444P10
ctx               156 libavcodec/proresdec_lgpl.c                "unsupported picture format: %d\n", ctx->pic_format);
ctx               160 libavcodec/proresdec_lgpl.c     if (ctx->scantable_type != ctx->frame_type) {
ctx               161 libavcodec/proresdec_lgpl.c         if (!ctx->frame_type)
ctx               162 libavcodec/proresdec_lgpl.c             ff_init_scantable(ctx->dsp.idct_permutation, &ctx->scantable,
ctx               165 libavcodec/proresdec_lgpl.c             ff_init_scantable(ctx->dsp.idct_permutation, &ctx->scantable,
ctx               167 libavcodec/proresdec_lgpl.c         ctx->scantable_type = ctx->frame_type;
ctx               170 libavcodec/proresdec_lgpl.c     if (ctx->frame_type) {      /* if interlaced */
ctx               171 libavcodec/proresdec_lgpl.c         ctx->frame->interlaced_frame = 1;
ctx               172 libavcodec/proresdec_lgpl.c         ctx->frame->top_field_first  = ctx->frame_type & 1;
ctx               174 libavcodec/proresdec_lgpl.c         ctx->frame->interlaced_frame = 0;
ctx               181 libavcodec/proresdec_lgpl.c     ctx->qmat_changed = 0;
ctx               189 libavcodec/proresdec_lgpl.c         if (memcmp(ctx->qmat_luma, ptr, 64)) {
ctx               190 libavcodec/proresdec_lgpl.c             memcpy(ctx->qmat_luma, ptr, 64);
ctx               191 libavcodec/proresdec_lgpl.c             ctx->qmat_changed = 1;
ctx               195 libavcodec/proresdec_lgpl.c         memset(ctx->qmat_luma, 4, 64);
ctx               196 libavcodec/proresdec_lgpl.c         ctx->qmat_changed = 1;
ctx               204 libavcodec/proresdec_lgpl.c         if (memcmp(ctx->qmat_chroma, ptr, 64)) {
ctx               205 libavcodec/proresdec_lgpl.c             memcpy(ctx->qmat_chroma, ptr, 64);
ctx               206 libavcodec/proresdec_lgpl.c             ctx->qmat_changed = 1;
ctx               209 libavcodec/proresdec_lgpl.c         memset(ctx->qmat_chroma, 4, 64);
ctx               210 libavcodec/proresdec_lgpl.c         ctx->qmat_changed = 1;
ctx               217 libavcodec/proresdec_lgpl.c static int decode_picture_header(ProresContext *ctx, const uint8_t *buf,
ctx               246 libavcodec/proresdec_lgpl.c     ctx->slice_width_factor  = slice_width_factor;
ctx               247 libavcodec/proresdec_lgpl.c     ctx->slice_height_factor = slice_height_factor;
ctx               249 libavcodec/proresdec_lgpl.c     ctx->num_x_mbs = (avctx->width + 15) >> 4;
ctx               250 libavcodec/proresdec_lgpl.c     ctx->num_y_mbs = (avctx->height +
ctx               251 libavcodec/proresdec_lgpl.c                       (1 << (4 + ctx->frame->interlaced_frame)) - 1) >>
ctx               252 libavcodec/proresdec_lgpl.c                      (4 + ctx->frame->interlaced_frame);
ctx               254 libavcodec/proresdec_lgpl.c     remainder    = ctx->num_x_mbs & ((1 << slice_width_factor) - 1);
ctx               255 libavcodec/proresdec_lgpl.c     num_x_slices = (ctx->num_x_mbs >> slice_width_factor) + (remainder & 1) +
ctx               258 libavcodec/proresdec_lgpl.c     num_slices = num_x_slices * ctx->num_y_mbs;
ctx               264 libavcodec/proresdec_lgpl.c     if (ctx->total_slices != num_slices) {
ctx               265 libavcodec/proresdec_lgpl.c         av_freep(&ctx->slice_data);
ctx               266 libavcodec/proresdec_lgpl.c         ctx->slice_data = av_malloc_array(num_slices + 1, sizeof(ctx->slice_data[0]));
ctx               267 libavcodec/proresdec_lgpl.c         if (!ctx->slice_data)
ctx               269 libavcodec/proresdec_lgpl.c         ctx->total_slices = num_slices;
ctx               282 libavcodec/proresdec_lgpl.c         ctx->slice_data[i].index = data_ptr;
ctx               283 libavcodec/proresdec_lgpl.c         ctx->slice_data[i].prev_slice_sf = 0;
ctx               286 libavcodec/proresdec_lgpl.c     ctx->slice_data[i].index = data_ptr;
ctx               287 libavcodec/proresdec_lgpl.c     ctx->slice_data[i].prev_slice_sf = 0;
ctx               425 libavcodec/proresdec_lgpl.c static int decode_slice_plane(ProresContext *ctx, ProresThreadData *td,
ctx               445 libavcodec/proresdec_lgpl.c                            plane_size_factor, ctx->scantable.permutated);
ctx               454 libavcodec/proresdec_lgpl.c             ctx->dsp.idct_put(out_ptr,                    linesize, block_ptr, qmat);
ctx               457 libavcodec/proresdec_lgpl.c                 ctx->dsp.idct_put(out_ptr + 8,            linesize, block_ptr, qmat);
ctx               460 libavcodec/proresdec_lgpl.c             ctx->dsp.idct_put(out_ptr + linesize * 4,     linesize, block_ptr, qmat);
ctx               463 libavcodec/proresdec_lgpl.c                 ctx->dsp.idct_put(out_ptr + linesize * 4 + 8, linesize, block_ptr, qmat);
ctx               469 libavcodec/proresdec_lgpl.c             ctx->dsp.idct_put(out_ptr,                    linesize, block_ptr, qmat);
ctx               471 libavcodec/proresdec_lgpl.c             ctx->dsp.idct_put(out_ptr + linesize * 4,     linesize, block_ptr, qmat);
ctx               474 libavcodec/proresdec_lgpl.c                 ctx->dsp.idct_put(out_ptr + 8,            linesize, block_ptr, qmat);
ctx               476 libavcodec/proresdec_lgpl.c                 ctx->dsp.idct_put(out_ptr + linesize * 4 + 8, linesize, block_ptr, qmat);
ctx               531 libavcodec/proresdec_lgpl.c static void decode_alpha_plane(ProresContext *ctx, ProresThreadData *td,
ctx               544 libavcodec/proresdec_lgpl.c     if (ctx->alpha_info == 2)
ctx               561 libavcodec/proresdec_lgpl.c     ProresContext *ctx = avctx->priv_data;
ctx               564 libavcodec/proresdec_lgpl.c     int pic_num   = ctx->pic_num;
ctx               569 libavcodec/proresdec_lgpl.c     AVFrame *pic = ctx->frame;
ctx               577 libavcodec/proresdec_lgpl.c     buf             = ctx->slice_data[slice_num].index;
ctx               578 libavcodec/proresdec_lgpl.c     slice_data_size = ctx->slice_data[slice_num + 1].index - buf;
ctx               605 libavcodec/proresdec_lgpl.c     u_data += (mb_y_pos << 4) * u_linesize + (mb_x_pos << ctx->mb_chroma_factor);
ctx               606 libavcodec/proresdec_lgpl.c     v_data += (mb_y_pos << 4) * v_linesize + (mb_x_pos << ctx->mb_chroma_factor);
ctx               624 libavcodec/proresdec_lgpl.c     a_data_size = ctx->alpha_info ? slice_data_size - coff[3] : 0;
ctx               638 libavcodec/proresdec_lgpl.c     if (ctx->qmat_changed || sf != td->prev_slice_sf) {
ctx               641 libavcodec/proresdec_lgpl.c             td->qmat_luma_scaled[ctx->dsp.idct_permutation[i]]   = ctx->qmat_luma[i]   * sf;
ctx               642 libavcodec/proresdec_lgpl.c             td->qmat_chroma_scaled[ctx->dsp.idct_permutation[i]] = ctx->qmat_chroma[i] * sf;
ctx               647 libavcodec/proresdec_lgpl.c     ret = decode_slice_plane(ctx, td, buf + coff[0], y_data_size,
ctx               656 libavcodec/proresdec_lgpl.c     ret = decode_slice_plane(ctx, td, buf + coff[1], u_data_size,
ctx               658 libavcodec/proresdec_lgpl.c                              mbs_per_slice, ctx->num_chroma_blocks,
ctx               659 libavcodec/proresdec_lgpl.c                              slice_width_factor + ctx->chroma_factor - 1,
ctx               665 libavcodec/proresdec_lgpl.c     ret = decode_slice_plane(ctx, td, buf + coff[2], v_data_size,
ctx               667 libavcodec/proresdec_lgpl.c                              mbs_per_slice, ctx->num_chroma_blocks,
ctx               668 libavcodec/proresdec_lgpl.c                              slice_width_factor + ctx->chroma_factor - 1,
ctx               675 libavcodec/proresdec_lgpl.c         decode_alpha_plane(ctx, td, buf + coff[3], a_data_size,
ctx               683 libavcodec/proresdec_lgpl.c static int decode_picture(ProresContext *ctx, int pic_num,
ctx               690 libavcodec/proresdec_lgpl.c     ctx->pic_num = pic_num;
ctx               691 libavcodec/proresdec_lgpl.c     for (y_pos = 0; y_pos < ctx->num_y_mbs; y_pos++) {
ctx               692 libavcodec/proresdec_lgpl.c         slice_width = 1 << ctx->slice_width_factor;
ctx               694 libavcodec/proresdec_lgpl.c         for (x_pos = 0; x_pos < ctx->num_x_mbs && slice_width;
ctx               696 libavcodec/proresdec_lgpl.c             while (ctx->num_x_mbs - x_pos < slice_width)
ctx               699 libavcodec/proresdec_lgpl.c             ctx->slice_data[slice_num].slice_num   = slice_num;
ctx               700 libavcodec/proresdec_lgpl.c             ctx->slice_data[slice_num].x_pos       = x_pos;
ctx               701 libavcodec/proresdec_lgpl.c             ctx->slice_data[slice_num].y_pos       = y_pos;
ctx               702 libavcodec/proresdec_lgpl.c             ctx->slice_data[slice_num].slice_width = slice_width;
ctx               709 libavcodec/proresdec_lgpl.c                           ctx->slice_data, NULL, slice_num,
ctx               710 libavcodec/proresdec_lgpl.c                           sizeof(ctx->slice_data[0]));
ctx               719 libavcodec/proresdec_lgpl.c     ProresContext *ctx = avctx->priv_data;
ctx               724 libavcodec/proresdec_lgpl.c     ctx->frame            = data;
ctx               725 libavcodec/proresdec_lgpl.c     ctx->frame->pict_type = AV_PICTURE_TYPE_I;
ctx               726 libavcodec/proresdec_lgpl.c     ctx->frame->key_frame = 1;
ctx               737 libavcodec/proresdec_lgpl.c     frame_hdr_size = decode_frame_header(ctx, buf, buf_size, avctx);
ctx               743 libavcodec/proresdec_lgpl.c     if (ff_get_buffer(avctx, ctx->frame, 0) < 0)
ctx               746 libavcodec/proresdec_lgpl.c     for (pic_num = 0; ctx->frame->interlaced_frame - pic_num + 1; pic_num++) {
ctx               747 libavcodec/proresdec_lgpl.c         pic_data_size = decode_picture_header(ctx, buf, buf_size, avctx);
ctx               751 libavcodec/proresdec_lgpl.c         if (decode_picture(ctx, pic_num, avctx))
ctx               757 libavcodec/proresdec_lgpl.c     ctx->frame = NULL;
ctx               766 libavcodec/proresdec_lgpl.c     ProresContext *ctx = avctx->priv_data;
ctx               768 libavcodec/proresdec_lgpl.c     av_freep(&ctx->slice_data);
ctx               287 libavcodec/proresenc_anatoliy.c     ProresContext* ctx = avctx->priv_data;
ctx               288 libavcodec/proresenc_anatoliy.c     FDCTDSPContext *fdsp = &ctx->fdsp;
ctx               322 libavcodec/proresenc_anatoliy.c     ProresContext* ctx = avctx->priv_data;
ctx               325 libavcodec/proresenc_anatoliy.c             buf, data_size, ctx->qmat_luma[qp - 1], 0);
ctx               330 libavcodec/proresenc_anatoliy.c                 ctx->qmat_chroma[qp - 1], 1);
ctx               335 libavcodec/proresenc_anatoliy.c                 ctx->qmat_chroma[qp - 1], 1);
ctx               379 libavcodec/proresenc_anatoliy.c     ProresContext* ctx = avctx->priv_data;
ctx               395 libavcodec/proresenc_anatoliy.c                 (uint16_t *) ctx->fill_y, mb_count << 4, 16);
ctx               398 libavcodec/proresenc_anatoliy.c                 (uint16_t *) ctx->fill_u, mb_count << 3, 16);
ctx               401 libavcodec/proresenc_anatoliy.c                 (uint16_t *) ctx->fill_v, mb_count << 3, 16);
ctx               403 libavcodec/proresenc_anatoliy.c         encode_slice_data(avctx, ctx->fill_y, ctx->fill_u, ctx->fill_v,
ctx               542 libavcodec/proresenc_anatoliy.c     ProresContext* ctx = avctx->priv_data;
ctx               563 libavcodec/proresenc_anatoliy.c         ctx->fill_y = av_malloc(4 * (DEFAULT_SLICE_MB_WIDTH << 8));
ctx               564 libavcodec/proresenc_anatoliy.c         if (!ctx->fill_y)
ctx               566 libavcodec/proresenc_anatoliy.c         ctx->fill_u = ctx->fill_y + (DEFAULT_SLICE_MB_WIDTH << 9);
ctx               567 libavcodec/proresenc_anatoliy.c         ctx->fill_v = ctx->fill_u + (DEFAULT_SLICE_MB_WIDTH << 8);
ctx               585 libavcodec/proresenc_anatoliy.c     ff_fdctdsp_init(&ctx->fdsp, avctx);
ctx               590 libavcodec/proresenc_anatoliy.c         scale_mat(QMAT_LUMA[avctx->profile]  , ctx->qmat_luma[i - 1]  , i);
ctx               591 libavcodec/proresenc_anatoliy.c         scale_mat(QMAT_CHROMA[avctx->profile], ctx->qmat_chroma[i - 1], i);
ctx               603 libavcodec/proresenc_anatoliy.c     ProresContext* ctx = avctx->priv_data;
ctx               605 libavcodec/proresenc_anatoliy.c     av_freep(&ctx->fill_y);
ctx               228 libavcodec/proresenc_kostya.c static void get_slice_data(ProresContext *ctx, const uint16_t *src,
ctx               270 libavcodec/proresenc_kostya.c             ctx->fdct(&ctx->fdsp, esrc, elinesize, blocks);
ctx               273 libavcodec/proresenc_kostya.c                 ctx->fdct(&ctx->fdsp, esrc + 8, elinesize, blocks);
ctx               276 libavcodec/proresenc_kostya.c             ctx->fdct(&ctx->fdsp, esrc + elinesize * 4, elinesize, blocks);
ctx               279 libavcodec/proresenc_kostya.c                 ctx->fdct(&ctx->fdsp, esrc + elinesize * 4 + 8, elinesize, blocks);
ctx               283 libavcodec/proresenc_kostya.c             ctx->fdct(&ctx->fdsp, esrc, elinesize, blocks);
ctx               285 libavcodec/proresenc_kostya.c             ctx->fdct(&ctx->fdsp, esrc + elinesize * 4, elinesize, blocks);
ctx               288 libavcodec/proresenc_kostya.c                 ctx->fdct(&ctx->fdsp, esrc + 8, elinesize, blocks);
ctx               290 libavcodec/proresenc_kostya.c                 ctx->fdct(&ctx->fdsp, esrc + elinesize * 4 + 8, elinesize, blocks);
ctx               299 libavcodec/proresenc_kostya.c static void get_alpha_data(ProresContext *ctx, const uint16_t *src,
ctx               422 libavcodec/proresenc_kostya.c static int encode_slice_plane(ProresContext *ctx, PutBitContext *pb,
ctx               435 libavcodec/proresenc_kostya.c                ctx->scantable, qmat);
ctx               475 libavcodec/proresenc_kostya.c static int encode_alpha_plane(ProresContext *ctx, PutBitContext *pb,
ctx               479 libavcodec/proresenc_kostya.c     const int abits = ctx->alpha_bits;
ctx               512 libavcodec/proresenc_kostya.c     ProresContext *ctx = avctx->priv_data;
ctx               521 libavcodec/proresenc_kostya.c     if (ctx->pictures_per_frame == 1)
ctx               524 libavcodec/proresenc_kostya.c         line_add = ctx->cur_picture_idx ^ !pic->top_field_first;
ctx               526 libavcodec/proresenc_kostya.c     if (ctx->force_quant) {
ctx               527 libavcodec/proresenc_kostya.c         qmat = ctx->quants[0];
ctx               529 libavcodec/proresenc_kostya.c         qmat = ctx->quants[quant];
ctx               531 libavcodec/proresenc_kostya.c         qmat = ctx->custom_q;
ctx               533 libavcodec/proresenc_kostya.c             qmat[i] = ctx->quant_mat[i] * quant;
ctx               536 libavcodec/proresenc_kostya.c     for (i = 0; i < ctx->num_planes; i++) {
ctx               540 libavcodec/proresenc_kostya.c             plane_factor += ctx->chroma_factor - 3;
ctx               541 libavcodec/proresenc_kostya.c         if (!is_chroma || ctx->chroma_factor == CFACTOR_Y444) {
ctx               553 libavcodec/proresenc_kostya.c         linesize = pic->linesize[i] * ctx->pictures_per_frame;
ctx               558 libavcodec/proresenc_kostya.c             get_slice_data(ctx, src, linesize, xp, yp,
ctx               559 libavcodec/proresenc_kostya.c                            pwidth, avctx->height / ctx->pictures_per_frame,
ctx               560 libavcodec/proresenc_kostya.c                            ctx->blocks[0], ctx->emu_buf,
ctx               562 libavcodec/proresenc_kostya.c             sizes[i] = encode_slice_plane(ctx, pb, src, linesize,
ctx               563 libavcodec/proresenc_kostya.c                                           mbs_per_slice, ctx->blocks[0],
ctx               567 libavcodec/proresenc_kostya.c             get_alpha_data(ctx, src, linesize, xp, yp,
ctx               568 libavcodec/proresenc_kostya.c                            pwidth, avctx->height / ctx->pictures_per_frame,
ctx               569 libavcodec/proresenc_kostya.c                            ctx->blocks[0], mbs_per_slice, ctx->alpha_bits);
ctx               570 libavcodec/proresenc_kostya.c             sizes[i] = encode_alpha_plane(ctx, pb, mbs_per_slice,
ctx               571 libavcodec/proresenc_kostya.c                                           ctx->blocks[0], quant);
ctx               672 libavcodec/proresenc_kostya.c static int estimate_slice_plane(ProresContext *ctx, int *error, int plane,
ctx               685 libavcodec/proresenc_kostya.c                          plane_size_factor, ctx->scantable, qmat);
ctx               706 libavcodec/proresenc_kostya.c static int estimate_alpha_plane(ProresContext *ctx, int *error,
ctx               711 libavcodec/proresenc_kostya.c     const int abits = ctx->alpha_bits;
ctx               754 libavcodec/proresenc_kostya.c     ProresContext *ctx = avctx->priv_data;
ctx               760 libavcodec/proresenc_kostya.c     const int min_quant = ctx->profile_info->min_quant;
ctx               761 libavcodec/proresenc_kostya.c     const int max_quant = ctx->profile_info->max_quant;
ctx               769 libavcodec/proresenc_kostya.c     if (ctx->pictures_per_frame == 1)
ctx               772 libavcodec/proresenc_kostya.c         line_add = ctx->cur_picture_idx ^ !pic->top_field_first;
ctx               775 libavcodec/proresenc_kostya.c     for (i = 0; i < ctx->num_planes; i++) {
ctx               779 libavcodec/proresenc_kostya.c             plane_factor[i] += ctx->chroma_factor - 3;
ctx               780 libavcodec/proresenc_kostya.c         if (!is_chroma[i] || ctx->chroma_factor == CFACTOR_Y444) {
ctx               792 libavcodec/proresenc_kostya.c         linesize[i] = pic->linesize[i] * ctx->pictures_per_frame;
ctx               797 libavcodec/proresenc_kostya.c             get_slice_data(ctx, src, linesize[i], xp, yp,
ctx               798 libavcodec/proresenc_kostya.c                            pwidth, avctx->height / ctx->pictures_per_frame,
ctx               802 libavcodec/proresenc_kostya.c             get_alpha_data(ctx, src, linesize[i], xp, yp,
ctx               803 libavcodec/proresenc_kostya.c                            pwidth, avctx->height / ctx->pictures_per_frame,
ctx               804 libavcodec/proresenc_kostya.c                            td->blocks[i], mbs_per_slice, ctx->alpha_bits);
ctx               817 libavcodec/proresenc_kostya.c         for (i = 0; i < ctx->num_planes - !!ctx->alpha_bits; i++) {
ctx               818 libavcodec/proresenc_kostya.c             bits += estimate_slice_plane(ctx, &error, i,
ctx               822 libavcodec/proresenc_kostya.c                                          ctx->quants[q], td);
ctx               824 libavcodec/proresenc_kostya.c         if (ctx->alpha_bits)
ctx               825 libavcodec/proresenc_kostya.c             bits += estimate_alpha_plane(ctx, &error, src, linesize[3],
ctx               833 libavcodec/proresenc_kostya.c     if (slice_bits[max_quant] <= ctx->bits_per_mb * mbs_per_slice) {
ctx               842 libavcodec/proresenc_kostya.c                 qmat = ctx->quants[q];
ctx               846 libavcodec/proresenc_kostya.c                     qmat[i] = ctx->quant_mat[i] * q;
ctx               848 libavcodec/proresenc_kostya.c             for (i = 0; i < ctx->num_planes - !!ctx->alpha_bits; i++) {
ctx               849 libavcodec/proresenc_kostya.c                 bits += estimate_slice_plane(ctx, &error, i,
ctx               855 libavcodec/proresenc_kostya.c             if (ctx->alpha_bits)
ctx               856 libavcodec/proresenc_kostya.c                 bits += estimate_alpha_plane(ctx, &error, src, linesize[3],
ctx               858 libavcodec/proresenc_kostya.c             if (bits <= ctx->bits_per_mb * mbs_per_slice)
ctx               868 libavcodec/proresenc_kostya.c     bits_limit = mbs * ctx->bits_per_mb;
ctx               909 libavcodec/proresenc_kostya.c     ProresContext *ctx = avctx->priv_data;
ctx               910 libavcodec/proresenc_kostya.c     ProresThreadData *td = ctx->tdata + threadnr;
ctx               911 libavcodec/proresenc_kostya.c     int mbs_per_slice = ctx->mbs_per_slice;
ctx               914 libavcodec/proresenc_kostya.c     for (x = mb = 0; x < ctx->mb_width; x += mbs_per_slice, mb++) {
ctx               915 libavcodec/proresenc_kostya.c         while (ctx->mb_width - x < mbs_per_slice)
ctx               922 libavcodec/proresenc_kostya.c     for (x = ctx->slices_width - 1; x >= 0; x--) {
ctx               923 libavcodec/proresenc_kostya.c         ctx->slice_q[x + y * ctx->slices_width] = td->nodes[q].quant;
ctx               933 libavcodec/proresenc_kostya.c     ProresContext *ctx = avctx->priv_data;
ctx               939 libavcodec/proresenc_kostya.c     int slice_hdr_size = 2 + 2 * (ctx->num_planes - 1);
ctx               942 libavcodec/proresenc_kostya.c     int max_slice_size = (ctx->frame_size_upper_bound - 200) / (ctx->pictures_per_frame * ctx->slices_per_picture + 1);
ctx               945 libavcodec/proresenc_kostya.c     pkt_size = ctx->frame_size_upper_bound;
ctx               961 libavcodec/proresenc_kostya.c     bytestream_put_buffer(&buf, ctx->vendor, 4);
ctx               965 libavcodec/proresenc_kostya.c     frame_flags = ctx->chroma_factor << 6;
ctx               974 libavcodec/proresenc_kostya.c     bytestream_put_byte  (&buf, 0x40 | (ctx->alpha_bits >> 3));
ctx               976 libavcodec/proresenc_kostya.c     if (ctx->quant_sel != QUANT_MAT_DEFAULT) {
ctx               980 libavcodec/proresenc_kostya.c             bytestream_put_byte(&buf, ctx->quant_mat[i]);
ctx               983 libavcodec/proresenc_kostya.c             bytestream_put_byte(&buf, ctx->quant_mat[i]);
ctx               989 libavcodec/proresenc_kostya.c     for (ctx->cur_picture_idx = 0;
ctx               990 libavcodec/proresenc_kostya.c          ctx->cur_picture_idx < ctx->pictures_per_frame;
ctx               991 libavcodec/proresenc_kostya.c          ctx->cur_picture_idx++) {
ctx               996 libavcodec/proresenc_kostya.c         bytestream_put_be16  (&buf, ctx->slices_per_picture);
ctx               997 libavcodec/proresenc_kostya.c         bytestream_put_byte  (&buf, av_log2(ctx->mbs_per_slice) << 4); // slice width and height in MBs
ctx              1001 libavcodec/proresenc_kostya.c         buf += ctx->slices_per_picture * 2;
ctx              1004 libavcodec/proresenc_kostya.c         if (!ctx->force_quant) {
ctx              1006 libavcodec/proresenc_kostya.c                                   ctx->mb_height);
ctx              1011 libavcodec/proresenc_kostya.c         for (y = 0; y < ctx->mb_height; y++) {
ctx              1012 libavcodec/proresenc_kostya.c             int mbs_per_slice = ctx->mbs_per_slice;
ctx              1013 libavcodec/proresenc_kostya.c             for (x = mb = 0; x < ctx->mb_width; x += mbs_per_slice, mb++) {
ctx              1014 libavcodec/proresenc_kostya.c                 q = ctx->force_quant ? ctx->force_quant
ctx              1015 libavcodec/proresenc_kostya.c                                      : ctx->slice_q[mb + y * ctx->slices_width];
ctx              1017 libavcodec/proresenc_kostya.c                 while (ctx->mb_width - x < mbs_per_slice)
ctx              1027 libavcodec/proresenc_kostya.c                     int delta = 200 + (ctx->pictures_per_frame *
ctx              1028 libavcodec/proresenc_kostya.c                                 ctx->slices_per_picture + 1) *
ctx              1032 libavcodec/proresenc_kostya.c                     ctx->frame_size_upper_bound += delta;
ctx              1034 libavcodec/proresenc_kostya.c                     if (!ctx->warn) {
ctx              1040 libavcodec/proresenc_kostya.c                         ctx->warn = 1;
ctx              1063 libavcodec/proresenc_kostya.c                 slice_size = slice_hdr_size + sizes[ctx->num_planes - 1];
ctx              1064 libavcodec/proresenc_kostya.c                 for (i = 0; i < ctx->num_planes - 1; i++) {
ctx              1092 libavcodec/proresenc_kostya.c     ProresContext *ctx = avctx->priv_data;
ctx              1097 libavcodec/proresenc_kostya.c     if (ctx->tdata) {
ctx              1099 libavcodec/proresenc_kostya.c             av_freep(&ctx->tdata[i].nodes);
ctx              1101 libavcodec/proresenc_kostya.c     av_freep(&ctx->tdata);
ctx              1102 libavcodec/proresenc_kostya.c     av_freep(&ctx->slice_q);
ctx              1123 libavcodec/proresenc_kostya.c     ProresContext *ctx = avctx->priv_data;
ctx              1136 libavcodec/proresenc_kostya.c     ctx->fdct      = prores_fdct;
ctx              1137 libavcodec/proresenc_kostya.c     ctx->scantable = interlaced ? ff_prores_interlaced_scan
ctx              1139 libavcodec/proresenc_kostya.c     ff_fdctdsp_init(&ctx->fdsp, avctx);
ctx              1141 libavcodec/proresenc_kostya.c     mps = ctx->mbs_per_slice;
ctx              1147 libavcodec/proresenc_kostya.c     if (ctx->profile == PRORES_PROFILE_AUTO) {
ctx              1149 libavcodec/proresenc_kostya.c         ctx->profile = (desc->flags & AV_PIX_FMT_FLAG_ALPHA ||
ctx              1153 libavcodec/proresenc_kostya.c                "through -profile option.\n", ctx->profile == PRORES_PROFILE_4444
ctx              1158 libavcodec/proresenc_kostya.c         if (ctx->profile != PRORES_PROFILE_4444) {
ctx              1162 libavcodec/proresenc_kostya.c             ctx->alpha_bits = 0;
ctx              1164 libavcodec/proresenc_kostya.c         if (ctx->alpha_bits & 7) {
ctx              1169 libavcodec/proresenc_kostya.c         ctx->alpha_bits = 0;
ctx              1172 libavcodec/proresenc_kostya.c     ctx->chroma_factor = avctx->pix_fmt == AV_PIX_FMT_YUV422P10
ctx              1175 libavcodec/proresenc_kostya.c     ctx->profile_info  = prores_profile_info + ctx->profile;
ctx              1176 libavcodec/proresenc_kostya.c     ctx->num_planes    = 3 + !!ctx->alpha_bits;
ctx              1178 libavcodec/proresenc_kostya.c     ctx->mb_width      = FFALIGN(avctx->width,  16) >> 4;
ctx              1181 libavcodec/proresenc_kostya.c         ctx->mb_height = FFALIGN(avctx->height, 32) >> 5;
ctx              1183 libavcodec/proresenc_kostya.c         ctx->mb_height = FFALIGN(avctx->height, 16) >> 4;
ctx              1185 libavcodec/proresenc_kostya.c     ctx->slices_width  = ctx->mb_width / mps;
ctx              1186 libavcodec/proresenc_kostya.c     ctx->slices_width += av_popcount(ctx->mb_width - ctx->slices_width * mps);
ctx              1187 libavcodec/proresenc_kostya.c     ctx->slices_per_picture = ctx->mb_height * ctx->slices_width;
ctx              1188 libavcodec/proresenc_kostya.c     ctx->pictures_per_frame = 1 + interlaced;
ctx              1190 libavcodec/proresenc_kostya.c     if (ctx->quant_sel == -1)
ctx              1191 libavcodec/proresenc_kostya.c         ctx->quant_mat = prores_quant_matrices[ctx->profile_info->quant];
ctx              1193 libavcodec/proresenc_kostya.c         ctx->quant_mat = prores_quant_matrices[ctx->quant_sel];
ctx              1195 libavcodec/proresenc_kostya.c     if (strlen(ctx->vendor) != 4) {
ctx              1200 libavcodec/proresenc_kostya.c     ctx->force_quant = avctx->global_quality / FF_QP2LAMBDA;
ctx              1201 libavcodec/proresenc_kostya.c     if (!ctx->force_quant) {
ctx              1202 libavcodec/proresenc_kostya.c         if (!ctx->bits_per_mb) {
ctx              1204 libavcodec/proresenc_kostya.c                 if (prores_mb_limits[i] >= ctx->mb_width * ctx->mb_height *
ctx              1205 libavcodec/proresenc_kostya.c                                            ctx->pictures_per_frame)
ctx              1207 libavcodec/proresenc_kostya.c             ctx->bits_per_mb   = ctx->profile_info->br_tab[i];
ctx              1208 libavcodec/proresenc_kostya.c         } else if (ctx->bits_per_mb < 128) {
ctx              1213 libavcodec/proresenc_kostya.c         min_quant = ctx->profile_info->min_quant;
ctx              1214 libavcodec/proresenc_kostya.c         max_quant = ctx->profile_info->max_quant;
ctx              1217 libavcodec/proresenc_kostya.c                 ctx->quants[i][j] = ctx->quant_mat[j] * i;
ctx              1220 libavcodec/proresenc_kostya.c         ctx->slice_q = av_malloc(ctx->slices_per_picture * sizeof(*ctx->slice_q));
ctx              1221 libavcodec/proresenc_kostya.c         if (!ctx->slice_q) {
ctx              1226 libavcodec/proresenc_kostya.c         ctx->tdata = av_mallocz(avctx->thread_count * sizeof(*ctx->tdata));
ctx              1227 libavcodec/proresenc_kostya.c         if (!ctx->tdata) {
ctx              1233 libavcodec/proresenc_kostya.c             ctx->tdata[j].nodes = av_malloc((ctx->slices_width + 1)
ctx              1235 libavcodec/proresenc_kostya.c                                             * sizeof(*ctx->tdata->nodes));
ctx              1236 libavcodec/proresenc_kostya.c             if (!ctx->tdata[j].nodes) {
ctx              1241 libavcodec/proresenc_kostya.c                 ctx->tdata[j].nodes[i].prev_node = -1;
ctx              1242 libavcodec/proresenc_kostya.c                 ctx->tdata[j].nodes[i].bits      = 0;
ctx              1243 libavcodec/proresenc_kostya.c                 ctx->tdata[j].nodes[i].score     = 0;
ctx              1249 libavcodec/proresenc_kostya.c         if (ctx->force_quant > 64) {
ctx              1255 libavcodec/proresenc_kostya.c             ctx->quants[0][j] = ctx->quant_mat[j] * ctx->force_quant;
ctx              1256 libavcodec/proresenc_kostya.c             ls += av_log2((1 << 11)  / ctx->quants[0][j]) * 2 + 1;
ctx              1259 libavcodec/proresenc_kostya.c         ctx->bits_per_mb = ls * 8;
ctx              1260 libavcodec/proresenc_kostya.c         if (ctx->chroma_factor == CFACTOR_Y444)
ctx              1261 libavcodec/proresenc_kostya.c             ctx->bits_per_mb += ls * 4;
ctx              1264 libavcodec/proresenc_kostya.c     ctx->frame_size_upper_bound = (ctx->pictures_per_frame *
ctx              1265 libavcodec/proresenc_kostya.c                                    ctx->slices_per_picture + 1) *
ctx              1266 libavcodec/proresenc_kostya.c                                   (2 + 2 * ctx->num_planes +
ctx              1267 libavcodec/proresenc_kostya.c                                    (mps * ctx->bits_per_mb) / 8)
ctx              1270 libavcodec/proresenc_kostya.c     if (ctx->alpha_bits) {
ctx              1272 libavcodec/proresenc_kostya.c          ctx->frame_size_upper_bound += (ctx->pictures_per_frame *
ctx              1273 libavcodec/proresenc_kostya.c                                          ctx->slices_per_picture + 1) *
ctx              1274 libavcodec/proresenc_kostya.c          /* num pixels per slice */     (ctx->mbs_per_slice * 256 *
ctx              1275 libavcodec/proresenc_kostya.c          /* bits per pixel */            (1 + ctx->alpha_bits + 1) + 7 >> 3);
ctx              1278 libavcodec/proresenc_kostya.c     avctx->codec_tag   = ctx->profile_info->tag;
ctx              1282 libavcodec/proresenc_kostya.c            ctx->profile, ctx->slices_per_picture * ctx->pictures_per_frame,
ctx              1283 libavcodec/proresenc_kostya.c            interlaced ? "yes" : "no", ctx->bits_per_mb);
ctx              1285 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     memcpy(ctx->bands,     bands,     sizeof(ctx->bands[0])     *  num_lens);
ctx                43 libavcodec/psymodel.c     memcpy(ctx->num_bands, num_bands, sizeof(ctx->num_bands[0]) *  num_lens);
ctx                51 libavcodec/psymodel.c         ctx->group[i].num_ch = group_map[i] + 1;
ctx                52 libavcodec/psymodel.c         for (j = 0; j < ctx->group[i].num_ch * 2; j++)
ctx                53 libavcodec/psymodel.c             ctx->group[i].ch[j]  = &ctx->ch[k++];
ctx                56 libavcodec/psymodel.c     switch (ctx->avctx->codec_id) {
ctx                58 libavcodec/psymodel.c         ctx->model = &ff_aac_psy_model;
ctx                61 libavcodec/psymodel.c     if (ctx->model->init)
ctx                62 libavcodec/psymodel.c         return ctx->model->init(ctx);
ctx                66 libavcodec/psymodel.c FFPsyChannelGroup *ff_psy_find_group(FFPsyContext *ctx, int channel)
ctx                71 libavcodec/psymodel.c         ch += ctx->group[i++].num_ch;
ctx                73 libavcodec/psymodel.c     return &ctx->group[i-1];
ctx                76 libavcodec/psymodel.c av_cold void ff_psy_end(FFPsyContext *ctx)
ctx                78 libavcodec/psymodel.c     if (ctx->model && ctx->model->end)
ctx                79 libavcodec/psymodel.c         ctx->model->end(ctx);
ctx                80 libavcodec/psymodel.c     av_freep(&ctx->bands);
ctx                81 libavcodec/psymodel.c     av_freep(&ctx->num_bands);
ctx                82 libavcodec/psymodel.c     av_freep(&ctx->group);
ctx                83 libavcodec/psymodel.c     av_freep(&ctx->ch);
ctx                98 libavcodec/psymodel.c     FFPsyPreprocessContext *ctx;
ctx               101 libavcodec/psymodel.c     ctx        = av_mallocz(sizeof(FFPsyPreprocessContext));
ctx               102 libavcodec/psymodel.c     ctx->avctx = avctx;
ctx               111 libavcodec/psymodel.c     ctx->fcoeffs = ff_iir_filter_init_coeffs(avctx, FF_FILTER_TYPE_BUTTERWORTH,
ctx               114 libavcodec/psymodel.c     if (ctx->fcoeffs) {
ctx               115 libavcodec/psymodel.c         ctx->fstate = av_mallocz_array(sizeof(ctx->fstate[0]), avctx->channels);
ctx               117 libavcodec/psymodel.c             ctx->fstate[i] = ff_iir_filter_init_state(FILT_ORDER);
ctx               120 libavcodec/psymodel.c     ff_iir_filter_init(&ctx->fiir);
ctx               122 libavcodec/psymodel.c     return ctx;
ctx               125 libavcodec/psymodel.c void ff_psy_preprocess(struct FFPsyPreprocessContext *ctx, float **audio, int channels)
ctx               128 libavcodec/psymodel.c     int frame_size = ctx->avctx->frame_size;
ctx               129 libavcodec/psymodel.c     FFIIRFilterContext *iir = &ctx->fiir;
ctx               131 libavcodec/psymodel.c     if (ctx->fstate) {
ctx               133 libavcodec/psymodel.c             iir->filter_flt(ctx->fcoeffs, ctx->fstate[ch], frame_size,
ctx               138 libavcodec/psymodel.c av_cold void ff_psy_preprocess_end(struct FFPsyPreprocessContext *ctx)
ctx               141 libavcodec/psymodel.c     ff_iir_filter_free_coeffsp(&ctx->fcoeffs);
ctx               142 libavcodec/psymodel.c     if (ctx->fstate)
ctx               143 libavcodec/psymodel.c         for (i = 0; i < ctx->avctx->channels; i++)
ctx               144 libavcodec/psymodel.c             ff_iir_filter_free_statep(&ctx->fstate[i]);
ctx               145 libavcodec/psymodel.c     av_freep(&ctx->fstate);
ctx               146 libavcodec/psymodel.c     av_free(ctx);
ctx               114 libavcodec/psymodel.h     FFPsyWindowInfo (*window)(FFPsyContext *ctx, const float *audio, const float *la, int channel, int prev_type);
ctx               124 libavcodec/psymodel.h     void (*analyze)(FFPsyContext *ctx, int channel, const float **coeffs, const FFPsyWindowInfo *wi);
ctx               142 libavcodec/psymodel.h int ff_psy_init(FFPsyContext *ctx, AVCodecContext *avctx, int num_lens,
ctx               154 libavcodec/psymodel.h FFPsyChannelGroup *ff_psy_find_group(FFPsyContext *ctx, int channel);
ctx               161 libavcodec/psymodel.h void ff_psy_end(FFPsyContext *ctx);
ctx               182 libavcodec/psymodel.h void ff_psy_preprocess(struct FFPsyPreprocessContext *ctx, float **audio, int channels);
ctx               187 libavcodec/psymodel.h void ff_psy_preprocess_end(struct FFPsyPreprocessContext *ctx);
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     ctx->filter_bits   = (ctx->filter_params - 2) >> 6;
ctx               238 libavcodec/ralf.c     ctx->filter_length = ctx->filter_params - (ctx->filter_bits << 6) - 1;
ctx               240 libavcodec/ralf.c     if (ctx->filter_params == FILTER_RAW) {
ctx               243 libavcodec/ralf.c         ctx->bias[ch] = 0;
ctx               247 libavcodec/ralf.c     ctx->bias[ch] = get_vlc2(gb, set->bias.table, 9, 2);
ctx               248 libavcodec/ralf.c     ctx->bias[ch] = extend_code(gb, ctx->bias[ch], 127, 4);
ctx               250 libavcodec/ralf.c     if (ctx->filter_params == FILTER_NONE) {
ctx               255 libavcodec/ralf.c     if (ctx->filter_params > 1) {
ctx               257 libavcodec/ralf.c         VLC *vlc = set->filter_coeffs[ctx->filter_bits] + 5;
ctx               259 libavcodec/ralf.c         add_bits = ctx->filter_bits;
ctx               261 libavcodec/ralf.c         for (i = 0; i < ctx->filter_length; i++) {
ctx               267 libavcodec/ralf.c             ctx->filter[i] = coeff;
ctx               314 libavcodec/ralf.c static void apply_lpc(RALFContext *ctx, int ch, int length, int bits)
ctx               317 libavcodec/ralf.c     int *audio = ctx->channel_data[ch];
ctx               318 libavcodec/ralf.c     int bias = 1 << (ctx->filter_bits - 1);
ctx               322 libavcodec/ralf.c         int flen = FFMIN(ctx->filter_length, i);
ctx               326 libavcodec/ralf.c             acc += ctx->filter[j] * audio[i - j - 1];
ctx               328 libavcodec/ralf.c             acc = (acc + bias - 1) >> ctx->filter_bits;
ctx               331 libavcodec/ralf.c             acc = (acc + bias) >> ctx->filter_bits;
ctx               341 libavcodec/ralf.c     RALFContext *ctx = avctx->priv_data;
ctx               352 libavcodec/ralf.c     if (ctx->sample_offset + len > ctx->max_frame_size) {
ctx               369 libavcodec/ralf.c         if ((ret = decode_channel(ctx, gb, ch, len, mode[ch], bits[ch])) < 0)
ctx               371 libavcodec/ralf.c         if (ctx->filter_params > 1 && ctx->filter_params != FILTER_RAW) {
ctx               372 libavcodec/ralf.c             ctx->filter_bits += 3;
ctx               373 libavcodec/ralf.c             apply_lpc(ctx, ch, len, bits[ch]);
ctx               378 libavcodec/ralf.c     ch0 = ctx->channel_data[0];
ctx               379 libavcodec/ralf.c     ch1 = ctx->channel_data[1];
ctx               383 libavcodec/ralf.c             dst0[i] = ch0[i] + ctx->bias[0];
ctx               387 libavcodec/ralf.c             dst0[i] = ch0[i] + ctx->bias[0];
ctx               388 libavcodec/ralf.c             dst1[i] = ch1[i] + ctx->bias[1];
ctx               393 libavcodec/ralf.c             ch0[i] += ctx->bias[0];
ctx               395 libavcodec/ralf.c             dst1[i] = ch0[i] - (ch1[i] + ctx->bias[1]);
ctx               400 libavcodec/ralf.c             t  = ch0[i] + ctx->bias[0];
ctx               401 libavcodec/ralf.c             t2 = ch1[i] + ctx->bias[1];
ctx               408 libavcodec/ralf.c             t  =   ch1[i] + ctx->bias[1];
ctx               409 libavcodec/ralf.c             t2 = ((ch0[i] + ctx->bias[0]) << 1) | (t & 1);
ctx               416 libavcodec/ralf.c     ctx->sample_offset += len;
ctx               424 libavcodec/ralf.c     RALFContext *ctx = avctx->priv_data;
ctx               435 libavcodec/ralf.c     if (ctx->has_pkt) {
ctx               436 libavcodec/ralf.c         ctx->has_pkt = 0;
ctx               442 libavcodec/ralf.c         if (memcmp(ctx->pkt, avpkt->data, 2 + table_bytes)) {
ctx               447 libavcodec/ralf.c         src      = ctx->pkt;
ctx               449 libavcodec/ralf.c         memcpy(ctx->pkt + RALF_MAX_PKT_SIZE, avpkt->data + 2 + table_bytes,
ctx               453 libavcodec/ralf.c             memcpy(ctx->pkt, avpkt->data, avpkt->size);
ctx               454 libavcodec/ralf.c             ctx->has_pkt   = 1;
ctx               463 libavcodec/ralf.c     frame->nb_samples = ctx->max_frame_size;
ctx               480 libavcodec/ralf.c     ctx->num_blocks = 0;
ctx               482 libavcodec/ralf.c         ctx->block_size[ctx->num_blocks] = get_bits(&gb, 15);
ctx               484 libavcodec/ralf.c             ctx->block_pts[ctx->num_blocks] = get_bits(&gb, 9);
ctx               486 libavcodec/ralf.c             ctx->block_pts[ctx->num_blocks] = 0;
ctx               488 libavcodec/ralf.c         ctx->num_blocks++;
ctx               493 libavcodec/ralf.c     ctx->sample_offset = 0;
ctx               494 libavcodec/ralf.c     for (i = 0; i < ctx->num_blocks; i++) {
ctx               495 libavcodec/ralf.c         if (bytes_left < ctx->block_size[i]) {
ctx               499 libavcodec/ralf.c         init_get_bits(&gb, block_pointer, ctx->block_size[i] * 8);
ctx               500 libavcodec/ralf.c         if (decode_block(avctx, &gb, samples0 + ctx->sample_offset,
ctx               501 libavcodec/ralf.c                                      samples1 + ctx->sample_offset) < 0) {
ctx               505 libavcodec/ralf.c         block_pointer += ctx->block_size[i];
ctx               506 libavcodec/ralf.c         bytes_left    -= ctx->block_size[i];
ctx               509 libavcodec/ralf.c     frame->nb_samples = ctx->sample_offset;
ctx               510 libavcodec/ralf.c     *got_frame_ptr    = ctx->sample_offset > 0;
ctx               517 libavcodec/ralf.c     RALFContext *ctx = avctx->priv_data;
ctx               519 libavcodec/ralf.c     ctx->has_pkt = 0;
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               462 libavcodec/sanm.c static av_cold int init_buffers(SANMVideoContext *ctx)
ctx               464 libavcodec/sanm.c     av_fast_padded_malloc(&ctx->frm0, &ctx->frm0_size, ctx->buf_size);
ctx               465 libavcodec/sanm.c     av_fast_padded_malloc(&ctx->frm1, &ctx->frm1_size, ctx->buf_size);
ctx               466 libavcodec/sanm.c     av_fast_padded_malloc(&ctx->frm2, &ctx->frm2_size, ctx->buf_size);
ctx               467 libavcodec/sanm.c     if (!ctx->version)
ctx               468 libavcodec/sanm.c         av_fast_padded_malloc(&ctx->stored_frame,
ctx               469 libavcodec/sanm.c                               &ctx->stored_frame_size, ctx->buf_size);
ctx               471 libavcodec/sanm.c     if (!ctx->frm0 || !ctx->frm1 || !ctx->frm2 ||
ctx               472 libavcodec/sanm.c         (!ctx->stored_frame && !ctx->version)) {
ctx               473 libavcodec/sanm.c         destroy_buffers(ctx);
ctx               480 libavcodec/sanm.c static void rotate_bufs(SANMVideoContext *ctx, int rotate_code)
ctx               483 libavcodec/sanm.c         FFSWAP(uint16_t*, ctx->frm1, ctx->frm2);
ctx               484 libavcodec/sanm.c     FFSWAP(uint16_t*, ctx->frm2, ctx->frm0);
ctx               489 libavcodec/sanm.c     SANMVideoContext *ctx = avctx->priv_data;
ctx               491 libavcodec/sanm.c     ctx->avctx   = avctx;
ctx               492 libavcodec/sanm.c     ctx->version = !avctx->extradata_size;
ctx               494 libavcodec/sanm.c     avctx->pix_fmt = ctx->version ? AV_PIX_FMT_RGB565 : AV_PIX_FMT_PAL8;
ctx               496 libavcodec/sanm.c     init_sizes(ctx, avctx->width, avctx->height);
ctx               497 libavcodec/sanm.c     if (init_buffers(ctx)) {
ctx               502 libavcodec/sanm.c     make_glyphs(ctx->p4x4glyphs[0], glyph4_x, glyph4_y, 4);
ctx               503 libavcodec/sanm.c     make_glyphs(ctx->p8x8glyphs[0], glyph8_x, glyph8_y, 8);
ctx               505 libavcodec/sanm.c     if (!ctx->version) {
ctx               513 libavcodec/sanm.c         ctx->subversion = AV_RL16(avctx->extradata);
ctx               515 libavcodec/sanm.c             ctx->pal[i] = 0xFFU << 24 | AV_RL32(avctx->extradata + 2 + i * 4);
ctx               523 libavcodec/sanm.c     SANMVideoContext *ctx = avctx->priv_data;
ctx               525 libavcodec/sanm.c     destroy_buffers(ctx);
ctx               530 libavcodec/sanm.c static int rle_decode(SANMVideoContext *ctx, uint8_t *dst, const int out_size)
ctx               535 libavcodec/sanm.c         opcode = bytestream2_get_byte(&ctx->gb);
ctx               537 libavcodec/sanm.c         if (run_len > left || bytestream2_get_bytes_left(&ctx->gb) <= 0)
ctx               541 libavcodec/sanm.c             color = bytestream2_get_byte(&ctx->gb);
ctx               544 libavcodec/sanm.c             if (bytestream2_get_bytes_left(&ctx->gb) < run_len)
ctx               546 libavcodec/sanm.c             bytestream2_get_bufferu(&ctx->gb, dst, run_len);
ctx               556 libavcodec/sanm.c static int old_codec1(SANMVideoContext *ctx, int top,
ctx               559 libavcodec/sanm.c     uint8_t *dst = ((uint8_t *)ctx->frm0) + left + top * ctx->pitch;
ctx               565 libavcodec/sanm.c         if (bytestream2_get_bytes_left(&ctx->gb) < 2)
ctx               568 libavcodec/sanm.c         len = bytestream2_get_le16u(&ctx->gb);
ctx               569 libavcodec/sanm.c         end = bytestream2_tell(&ctx->gb) + len;
ctx               571 libavcodec/sanm.c         while (bytestream2_tell(&ctx->gb) < end) {
ctx               572 libavcodec/sanm.c             if (bytestream2_get_bytes_left(&ctx->gb) < 2)
ctx               575 libavcodec/sanm.c             code = bytestream2_get_byteu(&ctx->gb);
ctx               581 libavcodec/sanm.c                 val = bytestream2_get_byteu(&ctx->gb);
ctx               586 libavcodec/sanm.c                 if (bytestream2_get_bytes_left(&ctx->gb) < code)
ctx               589 libavcodec/sanm.c                     val = bytestream2_get_byteu(&ctx->gb);
ctx               596 libavcodec/sanm.c         dst += ctx->pitch;
ctx               598 libavcodec/sanm.c     ctx->rotate_code = 0;
ctx               622 libavcodec/sanm.c static int old_codec37(SANMVideoContext *ctx, int top,
ctx               625 libavcodec/sanm.c     int stride = ctx->pitch;
ctx               629 libavcodec/sanm.c     int compr = bytestream2_get_byte(&ctx->gb);
ctx               630 libavcodec/sanm.c     int mvoff = bytestream2_get_byte(&ctx->gb);
ctx               631 libavcodec/sanm.c     int seq   = bytestream2_get_le16(&ctx->gb);
ctx               632 libavcodec/sanm.c     uint32_t decoded_size = bytestream2_get_le32(&ctx->gb);
ctx               635 libavcodec/sanm.c     bytestream2_skip(&ctx->gb, 4);
ctx               636 libavcodec/sanm.c     flags = bytestream2_get_byte(&ctx->gb);
ctx               637 libavcodec/sanm.c     bytestream2_skip(&ctx->gb, 3);
ctx               639 libavcodec/sanm.c     if (decoded_size > ctx->height * stride - left - top * stride) {
ctx               640 libavcodec/sanm.c         decoded_size = ctx->height * stride - left - top * stride;
ctx               641 libavcodec/sanm.c         av_log(ctx->avctx, AV_LOG_WARNING, "Decoded size is too large.\n");
ctx               644 libavcodec/sanm.c     ctx->rotate_code = 0;
ctx               647 libavcodec/sanm.c         rotate_bufs(ctx, 1);
ctx               649 libavcodec/sanm.c     dst  = ((uint8_t*)ctx->frm0) + left + top * stride;
ctx               650 libavcodec/sanm.c     prev = ((uint8_t*)ctx->frm2) + left + top * stride;
ctx               653 libavcodec/sanm.c         av_log(ctx->avctx, AV_LOG_ERROR, "Invalid motion base value %d.\n", mvoff);
ctx               660 libavcodec/sanm.c             bytestream2_get_buffer(&ctx->gb, dst, width);
ctx               663 libavcodec/sanm.c         memset(ctx->frm1, 0, ctx->height * stride);
ctx               664 libavcodec/sanm.c         memset(ctx->frm2, 0, ctx->height * stride);
ctx               667 libavcodec/sanm.c         if (rle_decode(ctx, dst, decoded_size))
ctx               669 libavcodec/sanm.c         memset(ctx->frm1, 0, ctx->frm1_size);
ctx               670 libavcodec/sanm.c         memset(ctx->frm2, 0, ctx->frm2_size);
ctx               683 libavcodec/sanm.c                     if (bytestream2_get_bytes_left(&ctx->gb) < 1)
ctx               685 libavcodec/sanm.c                     code = bytestream2_get_byteu(&ctx->gb);
ctx               688 libavcodec/sanm.c                         if (bytestream2_get_bytes_left(&ctx->gb) < 16)
ctx               691 libavcodec/sanm.c                             bytestream2_get_bufferu(&ctx->gb, dst + i + k * stride, 4);
ctx               694 libavcodec/sanm.c                         if (bytestream2_get_bytes_left(&ctx->gb) < 4)
ctx               697 libavcodec/sanm.c                             memset(dst + i + k * stride, bytestream2_get_byteu(&ctx->gb), 4);
ctx               700 libavcodec/sanm.c                         if (bytestream2_get_bytes_left(&ctx->gb) < 1)
ctx               702 libavcodec/sanm.c                         t = bytestream2_get_byteu(&ctx->gb);
ctx               708 libavcodec/sanm.c                             if (bytestream2_get_bytes_left(&ctx->gb) < 1)
ctx               710 libavcodec/sanm.c                             skip_run = bytestream2_get_byteu(&ctx->gb) + 1;
ctx               718 libavcodec/sanm.c                                        ctx->height, stride, i + mx, j + my);
ctx               734 libavcodec/sanm.c                     code = bytestream2_get_byte(&ctx->gb);
ctx               736 libavcodec/sanm.c                         if (bytestream2_get_bytes_left(&ctx->gb) < 16)
ctx               739 libavcodec/sanm.c                             bytestream2_get_bufferu(&ctx->gb, dst + i + k * stride, 4);
ctx               741 libavcodec/sanm.c                         if (bytestream2_get_bytes_left(&ctx->gb) < 1)
ctx               743 libavcodec/sanm.c                         skip_run = bytestream2_get_byteu(&ctx->gb) + 1;
ctx               751 libavcodec/sanm.c                                    ctx->height, stride, i + mx, j + my);
ctx               760 libavcodec/sanm.c         avpriv_report_missing_feature(ctx->avctx,
ctx               768 libavcodec/sanm.c static int process_block(SANMVideoContext *ctx, uint8_t *dst, uint8_t *prev1,
ctx               775 libavcodec/sanm.c     if (bytestream2_get_bytes_left(&ctx->gb) < 1)
ctx               778 libavcodec/sanm.c     code = bytestream2_get_byteu(&ctx->gb);
ctx               783 libavcodec/sanm.c                 if (bytestream2_get_bytes_left(&ctx->gb) < 4)
ctx               785 libavcodec/sanm.c                 dst[0]          = bytestream2_get_byteu(&ctx->gb);
ctx               786 libavcodec/sanm.c                 dst[1]          = bytestream2_get_byteu(&ctx->gb);
ctx               787 libavcodec/sanm.c                 dst[0 + stride] = bytestream2_get_byteu(&ctx->gb);
ctx               788 libavcodec/sanm.c                 dst[1 + stride] = bytestream2_get_byteu(&ctx->gb);
ctx               791 libavcodec/sanm.c                 if (process_block(ctx, dst, prev1, prev2, stride, tbl, size))
ctx               793 libavcodec/sanm.c                 if (process_block(ctx, dst + size, prev1 + size, prev2 + size,
ctx               799 libavcodec/sanm.c                 if (process_block(ctx, dst, prev1, prev2, stride, tbl, size))
ctx               801 libavcodec/sanm.c                 if (process_block(ctx, dst + size, prev1 + size, prev2 + size,
ctx               807 libavcodec/sanm.c             if (bytestream2_get_bytes_left(&ctx->gb) < 1)
ctx               810 libavcodec/sanm.c             t = bytestream2_get_byteu(&ctx->gb);
ctx               815 libavcodec/sanm.c             if (bytestream2_get_bytes_left(&ctx->gb) < 3)
ctx               818 libavcodec/sanm.c             code = bytestream2_get_byteu(&ctx->gb);
ctx               819 libavcodec/sanm.c             pglyph = (size == 8) ? ctx->p8x8glyphs[code] : ctx->p4x4glyphs[code];
ctx               820 libavcodec/sanm.c             bytestream2_get_bufferu(&ctx->gb, colors, 2);
ctx               831 libavcodec/sanm.c             k = bytestream2_tell(&ctx->gb);
ctx               832 libavcodec/sanm.c             bytestream2_seek(&ctx->gb, tbl + (code & 7), SEEK_SET);
ctx               833 libavcodec/sanm.c             t = bytestream2_get_byte(&ctx->gb);
ctx               834 libavcodec/sanm.c             bytestream2_seek(&ctx->gb, k, SEEK_SET);
ctx               841 libavcodec/sanm.c         int index = prev2 - (const uint8_t *)ctx->frm2;
ctx               843 libavcodec/sanm.c         av_assert2(index >= 0 && index < (ctx->buf_size >> 1));
ctx               846 libavcodec/sanm.c             (ctx->buf_size >> 1) - index < mx + size + (my + size - 1) * stride) {
ctx               847 libavcodec/sanm.c             av_log(ctx->avctx, AV_LOG_ERROR, "MV is invalid.\n");
ctx               858 libavcodec/sanm.c static int old_codec47(SANMVideoContext *ctx, int top,
ctx               863 libavcodec/sanm.c     int stride     = ctx->pitch;
ctx               864 libavcodec/sanm.c     uint8_t *dst   = (uint8_t *)ctx->frm0 + left + top * stride;
ctx               865 libavcodec/sanm.c     uint8_t *prev1 = (uint8_t *)ctx->frm1;
ctx               866 libavcodec/sanm.c     uint8_t *prev2 = (uint8_t *)ctx->frm2;
ctx               867 libavcodec/sanm.c     int tbl_pos = bytestream2_tell(&ctx->gb);
ctx               868 libavcodec/sanm.c     int seq     = bytestream2_get_le16(&ctx->gb);
ctx               869 libavcodec/sanm.c     int compr   = bytestream2_get_byte(&ctx->gb);
ctx               870 libavcodec/sanm.c     int new_rot = bytestream2_get_byte(&ctx->gb);
ctx               871 libavcodec/sanm.c     int skip    = bytestream2_get_byte(&ctx->gb);
ctx               873 libavcodec/sanm.c     bytestream2_skip(&ctx->gb, 9);
ctx               874 libavcodec/sanm.c     decoded_size = bytestream2_get_le32(&ctx->gb);
ctx               875 libavcodec/sanm.c     bytestream2_skip(&ctx->gb, 8);
ctx               877 libavcodec/sanm.c     if (decoded_size > ctx->height * stride - left - top * stride) {
ctx               878 libavcodec/sanm.c         decoded_size = ctx->height * stride - left - top * stride;
ctx               879 libavcodec/sanm.c         av_log(ctx->avctx, AV_LOG_WARNING, "Decoded size is too large.\n");
ctx               883 libavcodec/sanm.c         bytestream2_skip(&ctx->gb, 0x8080);
ctx               885 libavcodec/sanm.c         ctx->prev_seq = -1;
ctx               886 libavcodec/sanm.c         memset(prev1, 0, ctx->height * stride);
ctx               887 libavcodec/sanm.c         memset(prev2, 0, ctx->height * stride);
ctx               892 libavcodec/sanm.c         if (bytestream2_get_bytes_left(&ctx->gb) < width * height)
ctx               895 libavcodec/sanm.c             bytestream2_get_bufferu(&ctx->gb, dst, width);
ctx               900 libavcodec/sanm.c         if (bytestream2_get_bytes_left(&ctx->gb) < ((width + 1) >> 1) * ((height + 1) >> 1))
ctx               907 libavcodec/sanm.c                 dst[stride + i + 1] = bytestream2_get_byteu(&ctx->gb);
ctx               913 libavcodec/sanm.c         if (seq == ctx->prev_seq + 1) {
ctx               916 libavcodec/sanm.c                     if (process_block(ctx, dst + i, prev1 + i, prev2 + i, stride,
ctx               926 libavcodec/sanm.c         memcpy(ctx->frm0, ctx->frm2, ctx->pitch * ctx->height);
ctx               929 libavcodec/sanm.c         memcpy(ctx->frm0, ctx->frm1, ctx->pitch * ctx->height);
ctx               932 libavcodec/sanm.c         if (rle_decode(ctx, dst, decoded_size))
ctx               936 libavcodec/sanm.c         avpriv_report_missing_feature(ctx->avctx,
ctx               940 libavcodec/sanm.c     if (seq == ctx->prev_seq + 1)
ctx               941 libavcodec/sanm.c         ctx->rotate_code = new_rot;
ctx               943 libavcodec/sanm.c         ctx->rotate_code = 0;
ctx               944 libavcodec/sanm.c     ctx->prev_seq = seq;
ctx               949 libavcodec/sanm.c static int process_frame_obj(SANMVideoContext *ctx)
ctx               951 libavcodec/sanm.c     uint16_t codec = bytestream2_get_le16u(&ctx->gb);
ctx               952 libavcodec/sanm.c     uint16_t left  = bytestream2_get_le16u(&ctx->gb);
ctx               953 libavcodec/sanm.c     uint16_t top   = bytestream2_get_le16u(&ctx->gb);
ctx               954 libavcodec/sanm.c     uint16_t w     = bytestream2_get_le16u(&ctx->gb);
ctx               955 libavcodec/sanm.c     uint16_t h     = bytestream2_get_le16u(&ctx->gb);
ctx               958 libavcodec/sanm.c         av_log(ctx->avctx, AV_LOG_ERROR, "Dimensions are invalid.\n");
ctx               962 libavcodec/sanm.c     if (ctx->width < left + w || ctx->height < top + h) {
ctx               963 libavcodec/sanm.c         int ret = ff_set_dimensions(ctx->avctx, FFMAX(left + w, ctx->width),
ctx               964 libavcodec/sanm.c                                     FFMAX(top + h, ctx->height));
ctx               967 libavcodec/sanm.c         init_sizes(ctx, FFMAX(left + w, ctx->width),
ctx               968 libavcodec/sanm.c                    FFMAX(top + h, ctx->height));
ctx               969 libavcodec/sanm.c         if (init_buffers(ctx)) {
ctx               970 libavcodec/sanm.c             av_log(ctx->avctx, AV_LOG_ERROR, "Error resizing buffers.\n");
ctx               974 libavcodec/sanm.c     bytestream2_skip(&ctx->gb, 4);
ctx               979 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               985 libavcodec/sanm.c         return old_codec47(ctx, top, left, w, h);
ctx               988 libavcodec/sanm.c         avpriv_request_sample(ctx->avctx, "Subcodec %d", codec);
ctx               993 libavcodec/sanm.c static int decode_0(SANMVideoContext *ctx)
ctx               995 libavcodec/sanm.c     uint16_t *frm = ctx->frm0;
ctx               998 libavcodec/sanm.c     if (bytestream2_get_bytes_left(&ctx->gb) < ctx->width * ctx->height * 2) {
ctx               999 libavcodec/sanm.c         av_log(ctx->avctx, AV_LOG_ERROR, "Insufficient data for raw frame.\n");
ctx              1002 libavcodec/sanm.c     for (y = 0; y < ctx->height; y++) {
ctx              1003 libavcodec/sanm.c         for (x = 0; x < ctx->width; x++)
ctx              1004 libavcodec/sanm.c             frm[x] = bytestream2_get_le16u(&ctx->gb);
ctx              1005 libavcodec/sanm.c         frm += ctx->pitch;
ctx              1010 libavcodec/sanm.c static int decode_nop(SANMVideoContext *ctx)
ctx              1012 libavcodec/sanm.c     avpriv_request_sample(ctx->avctx, "Unknown/unsupported compression type");
ctx              1045 libavcodec/sanm.c static int draw_glyph(SANMVideoContext *ctx, uint16_t *dst, int index,
ctx              1054 libavcodec/sanm.c         av_log(ctx->avctx, AV_LOG_ERROR, "Ignoring nonexistent glyph #%u.\n", index);
ctx              1058 libavcodec/sanm.c     pglyph = block_size == 8 ? ctx->p8x8glyphs[index] : ctx->p4x4glyphs[index];
ctx              1067 libavcodec/sanm.c static int opcode_0xf7(SANMVideoContext *ctx, int cx, int cy, int block_size, int pitch)
ctx              1069 libavcodec/sanm.c     uint16_t *dst = ctx->frm0 + cx + cy * ctx->pitch;
ctx              1074 libavcodec/sanm.c         if (bytestream2_get_bytes_left(&ctx->gb) < 4)
ctx              1077 libavcodec/sanm.c         indices        = bytestream2_get_le32u(&ctx->gb);
ctx              1078 libavcodec/sanm.c         dst[0]         = ctx->codebook[indices & 0xFF];
ctx              1080 libavcodec/sanm.c         dst[1]         = ctx->codebook[indices & 0xFF];
ctx              1082 libavcodec/sanm.c         dst[pitch]     = ctx->codebook[indices & 0xFF];
ctx              1084 libavcodec/sanm.c         dst[pitch + 1] = ctx->codebook[indices & 0xFF];
ctx              1089 libavcodec/sanm.c         if (bytestream2_get_bytes_left(&ctx->gb) < 3)
ctx              1092 libavcodec/sanm.c         glyph   = bytestream2_get_byteu(&ctx->gb);
ctx              1093 libavcodec/sanm.c         bgcolor = ctx->codebook[bytestream2_get_byteu(&ctx->gb)];
ctx              1094 libavcodec/sanm.c         fgcolor = ctx->codebook[bytestream2_get_byteu(&ctx->gb)];
ctx              1096 libavcodec/sanm.c         draw_glyph(ctx, dst, glyph, fgcolor, bgcolor, block_size, pitch);
ctx              1101 libavcodec/sanm.c static int opcode_0xf8(SANMVideoContext *ctx, int cx, int cy, int block_size, int pitch)
ctx              1103 libavcodec/sanm.c     uint16_t *dst = ctx->frm0 + cx + cy * ctx->pitch;
ctx              1106 libavcodec/sanm.c         if (bytestream2_get_bytes_left(&ctx->gb) < 8)
ctx              1109 libavcodec/sanm.c         dst[0]         = bytestream2_get_le16u(&ctx->gb);
ctx              1110 libavcodec/sanm.c         dst[1]         = bytestream2_get_le16u(&ctx->gb);
ctx              1111 libavcodec/sanm.c         dst[pitch]     = bytestream2_get_le16u(&ctx->gb);
ctx              1112 libavcodec/sanm.c         dst[pitch + 1] = bytestream2_get_le16u(&ctx->gb);
ctx              1117 libavcodec/sanm.c         if (bytestream2_get_bytes_left(&ctx->gb) < 5)
ctx              1120 libavcodec/sanm.c         glyph   = bytestream2_get_byteu(&ctx->gb);
ctx              1121 libavcodec/sanm.c         bgcolor = bytestream2_get_le16u(&ctx->gb);
ctx              1122 libavcodec/sanm.c         fgcolor = bytestream2_get_le16u(&ctx->gb);
ctx              1124 libavcodec/sanm.c         draw_glyph(ctx, dst, glyph, fgcolor, bgcolor, block_size, pitch);
ctx              1129 libavcodec/sanm.c static int good_mvec(SANMVideoContext *ctx, int cx, int cy, int mx, int my,
ctx              1132 libavcodec/sanm.c     int start_pos = cx + mx + (cy + my) * ctx->pitch;
ctx              1133 libavcodec/sanm.c     int end_pos = start_pos + (block_size - 1) * (ctx->pitch + 1);
ctx              1135 libavcodec/sanm.c     int good = start_pos >= 0 && end_pos < (ctx->buf_size >> 1);
ctx              1138 libavcodec/sanm.c         av_log(ctx->avctx, AV_LOG_ERROR,
ctx              1145 libavcodec/sanm.c static int codec2subblock(SANMVideoContext *ctx, int cx, int cy, int blk_size)
ctx              1150 libavcodec/sanm.c     if (bytestream2_get_bytes_left(&ctx->gb) < 1)
ctx              1153 libavcodec/sanm.c     opcode = bytestream2_get_byteu(&ctx->gb);
ctx              1160 libavcodec/sanm.c         if (good_mvec(ctx, cx, cy, mx, my, blk_size)) {
ctx              1161 libavcodec/sanm.c             copy_block(ctx->frm0 + cx      + ctx->pitch *  cy,
ctx              1162 libavcodec/sanm.c                        ctx->frm2 + cx + mx + ctx->pitch * (cy + my),
ctx              1163 libavcodec/sanm.c                        blk_size, ctx->pitch);
ctx              1167 libavcodec/sanm.c         if (bytestream2_get_bytes_left(&ctx->gb) < 2)
ctx              1169 libavcodec/sanm.c         index = bytestream2_get_le16u(&ctx->gb);
ctx              1171 libavcodec/sanm.c         mx = index % ctx->width;
ctx              1172 libavcodec/sanm.c         my = index / ctx->width;
ctx              1174 libavcodec/sanm.c         if (good_mvec(ctx, cx, cy, mx, my, blk_size)) {
ctx              1175 libavcodec/sanm.c             copy_block(ctx->frm0 + cx      + ctx->pitch *  cy,
ctx              1176 libavcodec/sanm.c                        ctx->frm2 + cx + mx + ctx->pitch * (cy + my),
ctx              1177 libavcodec/sanm.c                        blk_size, ctx->pitch);
ctx              1181 libavcodec/sanm.c         copy_block(ctx->frm0 + cx + ctx->pitch * cy,
ctx              1182 libavcodec/sanm.c                    ctx->frm1 + cx + ctx->pitch * cy,
ctx              1183 libavcodec/sanm.c                    blk_size, ctx->pitch);
ctx              1186 libavcodec/sanm.c         opcode_0xf7(ctx, cx, cy, blk_size, ctx->pitch);
ctx              1190 libavcodec/sanm.c         opcode_0xf8(ctx, cx, cy, blk_size, ctx->pitch);
ctx              1196 libavcodec/sanm.c         fill_block(ctx->frm0 + cx + cy * ctx->pitch,
ctx              1197 libavcodec/sanm.c                    ctx->small_codebook[opcode - 0xf9], blk_size, ctx->pitch);
ctx              1200 libavcodec/sanm.c         if (bytestream2_get_bytes_left(&ctx->gb) < 1)
ctx              1202 libavcodec/sanm.c         fill_block(ctx->frm0 + cx + cy * ctx->pitch,
ctx              1203 libavcodec/sanm.c                    ctx->codebook[bytestream2_get_byteu(&ctx->gb)], blk_size, ctx->pitch);
ctx              1206 libavcodec/sanm.c         if (bytestream2_get_bytes_left(&ctx->gb) < 2)
ctx              1208 libavcodec/sanm.c         fill_block(ctx->frm0 + cx + cy * ctx->pitch,
ctx              1209 libavcodec/sanm.c                    bytestream2_get_le16u(&ctx->gb), blk_size, ctx->pitch);
ctx              1213 libavcodec/sanm.c             opcode_0xf8(ctx, cx, cy, blk_size, ctx->pitch);
ctx              1216 libavcodec/sanm.c             if (codec2subblock(ctx, cx, cy, blk_size))
ctx              1218 libavcodec/sanm.c             if (codec2subblock(ctx, cx + blk_size, cy, blk_size))
ctx              1220 libavcodec/sanm.c             if (codec2subblock(ctx, cx, cy + blk_size, blk_size))
ctx              1222 libavcodec/sanm.c             if (codec2subblock(ctx, cx + blk_size, cy + blk_size, blk_size))
ctx              1230 libavcodec/sanm.c static int decode_2(SANMVideoContext *ctx)
ctx              1234 libavcodec/sanm.c     for (cy = 0; cy < ctx->aligned_height; cy += 8)
ctx              1235 libavcodec/sanm.c         for (cx = 0; cx < ctx->aligned_width; cx += 8)
ctx              1236 libavcodec/sanm.c             if (ret = codec2subblock(ctx, cx, cy, 8))
ctx              1242 libavcodec/sanm.c static int decode_3(SANMVideoContext *ctx)
ctx              1244 libavcodec/sanm.c     memcpy(ctx->frm0, ctx->frm2, ctx->frm2_size);
ctx              1248 libavcodec/sanm.c static int decode_4(SANMVideoContext *ctx)
ctx              1250 libavcodec/sanm.c     memcpy(ctx->frm0, ctx->frm1, ctx->frm1_size);
ctx              1254 libavcodec/sanm.c static int decode_5(SANMVideoContext *ctx)
ctx              1260 libavcodec/sanm.c     uint8_t *dst = (uint8_t*)ctx->frm0;
ctx              1262 libavcodec/sanm.c     if (rle_decode(ctx, dst, ctx->buf_size))
ctx              1266 libavcodec/sanm.c     npixels = ctx->npixels;
ctx              1267 libavcodec/sanm.c     frm = ctx->frm0;
ctx              1277 libavcodec/sanm.c static int decode_6(SANMVideoContext *ctx)
ctx              1279 libavcodec/sanm.c     int npixels = ctx->npixels;
ctx              1280 libavcodec/sanm.c     uint16_t *frm = ctx->frm0;
ctx              1282 libavcodec/sanm.c     if (bytestream2_get_bytes_left(&ctx->gb) < npixels) {
ctx              1283 libavcodec/sanm.c         av_log(ctx->avctx, AV_LOG_ERROR, "Insufficient data for frame.\n");
ctx              1287 libavcodec/sanm.c         *frm++ = ctx->codebook[bytestream2_get_byteu(&ctx->gb)];
ctx              1292 libavcodec/sanm.c static int decode_8(SANMVideoContext *ctx)
ctx              1294 libavcodec/sanm.c     uint16_t *pdest = ctx->frm0;
ctx              1296 libavcodec/sanm.c     long npixels = ctx->npixels;
ctx              1298 libavcodec/sanm.c     av_fast_malloc(&ctx->rle_buf, &ctx->rle_buf_size, npixels);
ctx              1299 libavcodec/sanm.c     if (!ctx->rle_buf) {
ctx              1300 libavcodec/sanm.c         av_log(ctx->avctx, AV_LOG_ERROR, "RLE buffer allocation failed.\n");
ctx              1303 libavcodec/sanm.c     rsrc = ctx->rle_buf;
ctx              1305 libavcodec/sanm.c     if (rle_decode(ctx, rsrc, npixels))
ctx              1309 libavcodec/sanm.c         *pdest++ = ctx->codebook[*rsrc++];
ctx              1314 libavcodec/sanm.c typedef int (*frm_decoder)(SANMVideoContext *ctx);
ctx              1321 libavcodec/sanm.c static int read_frame_header(SANMVideoContext *ctx, SANMFrameHeader *hdr)
ctx              1325 libavcodec/sanm.c     if ((ret = bytestream2_get_bytes_left(&ctx->gb)) < 560) {
ctx              1326 libavcodec/sanm.c         av_log(ctx->avctx, AV_LOG_ERROR, "Input frame too short (%d bytes).\n",
ctx              1330 libavcodec/sanm.c     bytestream2_skip(&ctx->gb, 8); // skip pad
ctx              1332 libavcodec/sanm.c     hdr->width  = bytestream2_get_le32u(&ctx->gb);
ctx              1333 libavcodec/sanm.c     hdr->height = bytestream2_get_le32u(&ctx->gb);
ctx              1335 libavcodec/sanm.c     if (hdr->width != ctx->width || hdr->height != ctx->height) {
ctx              1336 libavcodec/sanm.c         avpriv_report_missing_feature(ctx->avctx, "Variable size frames");
ctx              1340 libavcodec/sanm.c     hdr->seq_num     = bytestream2_get_le16u(&ctx->gb);
ctx              1341 libavcodec/sanm.c     hdr->codec       = bytestream2_get_byteu(&ctx->gb);
ctx              1342 libavcodec/sanm.c     hdr->rotate_code = bytestream2_get_byteu(&ctx->gb);
ctx              1344 libavcodec/sanm.c     bytestream2_skip(&ctx->gb, 4); // skip pad
ctx              1347 libavcodec/sanm.c         ctx->small_codebook[i] = bytestream2_get_le16u(&ctx->gb);
ctx              1348 libavcodec/sanm.c     hdr->bg_color = bytestream2_get_le16u(&ctx->gb);
ctx              1350 libavcodec/sanm.c     bytestream2_skip(&ctx->gb, 2); // skip pad
ctx              1352 libavcodec/sanm.c     hdr->rle_output_size = bytestream2_get_le32u(&ctx->gb);
ctx              1354 libavcodec/sanm.c         ctx->codebook[i] = bytestream2_get_le16u(&ctx->gb);
ctx              1356 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, dstpitch, height = ctx->height;
ctx              1372 libavcodec/sanm.c     int 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               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               134 libavcodec/smacker.c static int smacker_decode_bigtree(GetBitContext *gb, HuffContext *hc, DBCtx *ctx)
ctx               142 libavcodec/smacker.c         i1 = ctx->v1->table ? get_vlc2(gb, ctx->v1->table, SMKTREE_BITS, 3) : 0;
ctx               143 libavcodec/smacker.c         i2 = ctx->v2->table ? get_vlc2(gb, ctx->v2->table, SMKTREE_BITS, 3) : 0;
ctx               146 libavcodec/smacker.c         val = ctx->recode1[i1] | (ctx->recode2[i2] << 8);
ctx               147 libavcodec/smacker.c         if(val == ctx->escapes[0]) {
ctx               148 libavcodec/smacker.c             ctx->last[0] = hc->current;
ctx               150 libavcodec/smacker.c         } else if(val == ctx->escapes[1]) {
ctx               151 libavcodec/smacker.c             ctx->last[1] = hc->current;
ctx               153 libavcodec/smacker.c         } else if(val == ctx->escapes[2]) {
ctx               154 libavcodec/smacker.c             ctx->last[2] = hc->current;
ctx               164 libavcodec/smacker.c         r = smacker_decode_bigtree(gb, hc, ctx);
ctx               169 libavcodec/smacker.c         r_new = smacker_decode_bigtree(gb, hc, ctx);
ctx               186 libavcodec/smacker.c     DBCtx ctx;
ctx               262 libavcodec/smacker.c     ctx.escapes[0] = escapes[0];
ctx               263 libavcodec/smacker.c     ctx.escapes[1] = escapes[1];
ctx               264 libavcodec/smacker.c     ctx.escapes[2] = escapes[2];
ctx               265 libavcodec/smacker.c     ctx.v1 = &vlc[0];
ctx               266 libavcodec/smacker.c     ctx.v2 = &vlc[1];
ctx               267 libavcodec/smacker.c     ctx.recode1 = tmp1.values;
ctx               268 libavcodec/smacker.c     ctx.recode2 = tmp2.values;
ctx               269 libavcodec/smacker.c     ctx.last = last;
ctx               280 libavcodec/smacker.c     if (smacker_decode_bigtree(gb, &huff, &ctx) < 0)
ctx               283 libavcodec/smacker.c     if(ctx.last[0] == -1) ctx.last[0] = huff.current++;
ctx               284 libavcodec/smacker.c     if(ctx.last[1] == -1) ctx.last[1] = huff.current++;
ctx               285 libavcodec/smacker.c     if(ctx.last[2] == -1) ctx.last[2] = huff.current++;
ctx               286 libavcodec/smacker.c     if (ctx.last[0] >= huff.length ||
ctx               287 libavcodec/smacker.c         ctx.last[1] >= huff.length ||
ctx               288 libavcodec/smacker.c         ctx.last[2] >= huff.length) {
ctx               114 libavcodec/truemotion2.c static int tm2_read_tree(TM2Context *ctx, uint32_t prefix, int length, TM2Huff *huff)
ctx               118 libavcodec/truemotion2.c         av_log(ctx->avctx, AV_LOG_ERROR, "Tree exceeded its given depth (%i)\n",
ctx               123 libavcodec/truemotion2.c     if (!get_bits1(&ctx->gb)) { /* literal */
ctx               128 libavcodec/truemotion2.c             av_log(ctx->avctx, AV_LOG_DEBUG, "Too many literals\n");
ctx               131 libavcodec/truemotion2.c         huff->nums[huff->num] = get_bits_long(&ctx->gb, huff->val_bits);
ctx               137 libavcodec/truemotion2.c         if ((ret = tm2_read_tree(ctx, prefix << 1, length + 1, huff)) < 0)
ctx               139 libavcodec/truemotion2.c         if ((ret = tm2_read_tree(ctx, (prefix << 1) | 1, length + 1, huff)) < 0)
ctx               145 libavcodec/truemotion2.c static int tm2_build_huff_table(TM2Context *ctx, TM2Codes *code)
ctx               150 libavcodec/truemotion2.c     huff.val_bits = get_bits(&ctx->gb, 5);
ctx               151 libavcodec/truemotion2.c     huff.max_bits = get_bits(&ctx->gb, 5);
ctx               152 libavcodec/truemotion2.c     huff.min_bits = get_bits(&ctx->gb, 5);
ctx               153 libavcodec/truemotion2.c     huff.nodes    = get_bits_long(&ctx->gb, 17);
ctx               159 libavcodec/truemotion2.c         av_log(ctx->avctx, AV_LOG_ERROR, "Incorrect tree parameters - literal "
ctx               164 libavcodec/truemotion2.c         av_log(ctx->avctx, AV_LOG_ERROR, "Incorrect number of Huffman tree "
ctx               183 libavcodec/truemotion2.c     res = tm2_read_tree(ctx, 0, 0, &huff);
ctx               186 libavcodec/truemotion2.c         av_log(ctx->avctx, AV_LOG_ERROR, "Got less codes than expected: %i of %i\n",
ctx               199 libavcodec/truemotion2.c             av_log(ctx->avctx, AV_LOG_ERROR, "Cannot build VLC table\n");
ctx               240 libavcodec/truemotion2.c static inline int tm2_read_header(TM2Context *ctx, const uint8_t *buf)
ctx               246 libavcodec/truemotion2.c         avpriv_request_sample(ctx->avctx, "Old TM2 header");
ctx               251 libavcodec/truemotion2.c         av_log(ctx->avctx, AV_LOG_ERROR, "Not a TM2 header: 0x%08"PRIX32"\n",
ctx               257 libavcodec/truemotion2.c static int tm2_read_deltas(TM2Context *ctx, int stream_id)
ctx               262 libavcodec/truemotion2.c     d  = get_bits(&ctx->gb, 9);
ctx               263 libavcodec/truemotion2.c     mb = get_bits(&ctx->gb, 5);
ctx               267 libavcodec/truemotion2.c         av_log(ctx->avctx, AV_LOG_ERROR, "Incorrect delta table: %i deltas x %i bits\n", d, mb);
ctx               272 libavcodec/truemotion2.c         v = get_bits_long(&ctx->gb, mb);
ctx               274 libavcodec/truemotion2.c             ctx->deltas[stream_id][i] = v - (1 << mb);
ctx               276 libavcodec/truemotion2.c             ctx->deltas[stream_id][i] = v;
ctx               279 libavcodec/truemotion2.c         ctx->deltas[stream_id][i] = 0;
ctx               284 libavcodec/truemotion2.c static int tm2_read_stream(TM2Context *ctx, const uint8_t *buf, int stream_id, int buf_size)
ctx               293 libavcodec/truemotion2.c         av_log(ctx->avctx, AV_LOG_ERROR, "not enough space for len left\n");
ctx               306 libavcodec/truemotion2.c         av_log(ctx->avctx, AV_LOG_ERROR, "invalid stream size\n");
ctx               320 libavcodec/truemotion2.c             init_get_bits(&ctx->gb, buf + pos, (skip - pos) * 8);
ctx               321 libavcodec/truemotion2.c             if ((ret = tm2_read_deltas(ctx, stream_id)) < 0)
ctx               323 libavcodec/truemotion2.c             bytestream2_skip(&gb, ((get_bits_count(&ctx->gb) + 31) >> 5) << 2);
ctx               337 libavcodec/truemotion2.c     init_get_bits(&ctx->gb, buf + pos, (skip - pos) * 8);
ctx               338 libavcodec/truemotion2.c     if ((ret = tm2_build_huff_table(ctx, &codes)) < 0)
ctx               340 libavcodec/truemotion2.c     bytestream2_skip(&gb, ((get_bits_count(&ctx->gb) + 31) >> 5) << 2);
ctx               345 libavcodec/truemotion2.c         av_log(ctx->avctx, AV_LOG_ERROR, "Incorrect number of tokens: %i\n", toks);
ctx               349 libavcodec/truemotion2.c     ret = av_reallocp_array(&ctx->tokens[stream_id], toks, sizeof(int));
ctx               351 libavcodec/truemotion2.c         ctx->tok_lens[stream_id] = 0;
ctx               354 libavcodec/truemotion2.c     ctx->tok_lens[stream_id] = toks;
ctx               360 libavcodec/truemotion2.c         init_get_bits(&ctx->gb, buf + pos, (skip - pos) * 8);
ctx               362 libavcodec/truemotion2.c             if (get_bits_left(&ctx->gb) <= 0) {
ctx               363 libavcodec/truemotion2.c                 av_log(ctx->avctx, AV_LOG_ERROR, "Incorrect number of tokens: %i\n", toks);
ctx               366 libavcodec/truemotion2.c             ctx->tokens[stream_id][i] = tm2_get_token(&ctx->gb, &codes);
ctx               367 libavcodec/truemotion2.c             if (stream_id <= TM2_MOT && ctx->tokens[stream_id][i] >= TM2_DELTAS || ctx->tokens[stream_id][i]<0) {
ctx               368 libavcodec/truemotion2.c                 av_log(ctx->avctx, AV_LOG_ERROR, "Invalid delta token index %d for type %d, n=%d\n",
ctx               369 libavcodec/truemotion2.c                        ctx->tokens[stream_id][i], stream_id, i);
ctx               375 libavcodec/truemotion2.c             ctx->tokens[stream_id][i] = codes.recode[0];
ctx               376 libavcodec/truemotion2.c             if (stream_id <= TM2_MOT && ctx->tokens[stream_id][i] >= TM2_DELTAS) {
ctx               377 libavcodec/truemotion2.c                 av_log(ctx->avctx, AV_LOG_ERROR, "Invalid delta token index %d for type %d, n=%d\n",
ctx               378 libavcodec/truemotion2.c                        ctx->tokens[stream_id][i], stream_id, i);
ctx               388 libavcodec/truemotion2.c static inline int GET_TOK(TM2Context *ctx,int type)
ctx               390 libavcodec/truemotion2.c     if (ctx->tok_ptrs[type] >= ctx->tok_lens[type]) {
ctx               391 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               395 libavcodec/truemotion2.c         if (ctx->tokens[type][ctx->tok_ptrs[type]] >= TM2_DELTAS) {
ctx               396 libavcodec/truemotion2.c             av_log(ctx->avctx, AV_LOG_ERROR, "token %d is too large\n", ctx->tokens[type][ctx->tok_ptrs[type]]);
ctx               399 libavcodec/truemotion2.c         return ctx->deltas[type][ctx->tokens[type][ctx->tok_ptrs[type]++]];
ctx               401 libavcodec/truemotion2.c     return ctx->tokens[type][ctx->tok_ptrs[type]++];
ctx               412 libavcodec/truemotion2.c     Ystride = ctx->y_stride;\
ctx               413 libavcodec/truemotion2.c     Vstride = ctx->uv_stride;\
ctx               414 libavcodec/truemotion2.c     Ustride = ctx->uv_stride;\
ctx               415 libavcodec/truemotion2.c     Y = (ctx->cur?ctx->Y2:ctx->Y1) + by * 4 * Ystride + bx * 4;\
ctx               416 libavcodec/truemotion2.c     V = (ctx->cur?ctx->V2:ctx->V1) + by * 2 * Vstride + bx * 2;\
ctx               417 libavcodec/truemotion2.c     U = (ctx->cur?ctx->U2:ctx->U1) + by * 2 * Ustride + bx * 2;\
ctx               418 libavcodec/truemotion2.c     last = ctx->last + bx * 4;\
ctx               419 libavcodec/truemotion2.c     clast = ctx->clast + bx * 4;
ctx               429 libavcodec/truemotion2.c     Yo = (ctx->cur?ctx->Y1:ctx->Y2) + by * 4 * oYstride + bx * 4;\
ctx               430 libavcodec/truemotion2.c     Vo = (ctx->cur?ctx->V1:ctx->V2) + by * 2 * oVstride + bx * 2;\
ctx               431 libavcodec/truemotion2.c     Uo = (ctx->cur?ctx->U1:ctx->U2) + by * 2 * oUstride + bx * 2;
ctx               441 libavcodec/truemotion2.c static inline void tm2_apply_deltas(TM2Context *ctx, int* Y, int stride, int *deltas, int *last)
ctx               447 libavcodec/truemotion2.c         ct = ctx->D[j];
ctx               455 libavcodec/truemotion2.c         ctx->D[j] = ct;
ctx               491 libavcodec/truemotion2.c static inline void tm2_hi_res_block(TM2Context *ctx, AVFrame *pic, int bx, int by)
ctx               499 libavcodec/truemotion2.c         deltas[i]     = GET_TOK(ctx, TM2_C_HI);
ctx               500 libavcodec/truemotion2.c         deltas[i + 4] = GET_TOK(ctx, TM2_C_HI);
ctx               502 libavcodec/truemotion2.c     tm2_high_chroma(U, Ustride, clast,     ctx->CD,     deltas);
ctx               503 libavcodec/truemotion2.c     tm2_high_chroma(V, Vstride, clast + 2, ctx->CD + 2, deltas + 4);
ctx               507 libavcodec/truemotion2.c         deltas[i] = GET_TOK(ctx, TM2_L_HI);
ctx               509 libavcodec/truemotion2.c     tm2_apply_deltas(ctx, Y, Ystride, deltas, last);
ctx               512 libavcodec/truemotion2.c static inline void tm2_med_res_block(TM2Context *ctx, AVFrame *pic, int bx, int by)
ctx               519 libavcodec/truemotion2.c     deltas[0] = GET_TOK(ctx, TM2_C_LO);
ctx               521 libavcodec/truemotion2.c     tm2_low_chroma(U, Ustride, clast, ctx->CD, deltas, bx);
ctx               523 libavcodec/truemotion2.c     deltas[0] = GET_TOK(ctx, TM2_C_LO);
ctx               525 libavcodec/truemotion2.c     tm2_low_chroma(V, Vstride, clast + 2, ctx->CD + 2, deltas, bx);
ctx               529 libavcodec/truemotion2.c         deltas[i] = GET_TOK(ctx, TM2_L_HI);
ctx               531 libavcodec/truemotion2.c     tm2_apply_deltas(ctx, Y, Ystride, deltas, last);
ctx               534 libavcodec/truemotion2.c static inline void tm2_low_res_block(TM2Context *ctx, AVFrame *pic, int bx, int by)
ctx               542 libavcodec/truemotion2.c     deltas[0] = GET_TOK(ctx, TM2_C_LO);
ctx               544 libavcodec/truemotion2.c     tm2_low_chroma(U, Ustride, clast, ctx->CD, deltas, bx);
ctx               546 libavcodec/truemotion2.c     deltas[0] = GET_TOK(ctx, TM2_C_LO);
ctx               548 libavcodec/truemotion2.c     tm2_low_chroma(V, Vstride, clast + 2, ctx->CD + 2, deltas, bx);
ctx               554 libavcodec/truemotion2.c     deltas[ 0] = GET_TOK(ctx, TM2_L_LO);
ctx               555 libavcodec/truemotion2.c     deltas[ 2] = GET_TOK(ctx, TM2_L_LO);
ctx               556 libavcodec/truemotion2.c     deltas[ 8] = GET_TOK(ctx, TM2_L_LO);
ctx               557 libavcodec/truemotion2.c     deltas[10] = GET_TOK(ctx, TM2_L_LO);
ctx               560 libavcodec/truemotion2.c         last[0] = (last[-1] - ctx->D[0] - ctx->D[1] - ctx->D[2] - ctx->D[3] + last[1]) >> 1;
ctx               562 libavcodec/truemotion2.c         last[0] = (last[1]  - ctx->D[0] - ctx->D[1] - ctx->D[2] - ctx->D[3])>> 1;
ctx               565 libavcodec/truemotion2.c     t1 = ctx->D[0] + ctx->D[1];
ctx               566 libavcodec/truemotion2.c     ctx->D[0] = t1 >> 1;
ctx               567 libavcodec/truemotion2.c     ctx->D[1] = t1 - (t1 >> 1);
ctx               568 libavcodec/truemotion2.c     t2 = ctx->D[2] + ctx->D[3];
ctx               569 libavcodec/truemotion2.c     ctx->D[2] = t2 >> 1;
ctx               570 libavcodec/truemotion2.c     ctx->D[3] = t2 - (t2 >> 1);
ctx               572 libavcodec/truemotion2.c     tm2_apply_deltas(ctx, Y, Ystride, deltas, last);
ctx               575 libavcodec/truemotion2.c static inline void tm2_null_res_block(TM2Context *ctx, AVFrame *pic, int bx, int by)
ctx               585 libavcodec/truemotion2.c     tm2_low_chroma(U, Ustride, clast, ctx->CD, deltas, bx);
ctx               588 libavcodec/truemotion2.c     tm2_low_chroma(V, Vstride, clast + 2, ctx->CD + 2, deltas, bx);
ctx               594 libavcodec/truemotion2.c     ct = ctx->D[0] + ctx->D[1] + ctx->D[2] + ctx->D[3];
ctx               610 libavcodec/truemotion2.c         ctx->D[0] = (tp + (ct >> 2)) - left;
ctx               611 libavcodec/truemotion2.c         left     += ctx->D[0];
ctx               612 libavcodec/truemotion2.c         ctx->D[1] = (tp + (ct >> 1)) - left;
ctx               613 libavcodec/truemotion2.c         left     += ctx->D[1];
ctx               614 libavcodec/truemotion2.c         ctx->D[2] = ((tp + ct) - (ct >> 2)) - left;
ctx               615 libavcodec/truemotion2.c         left     += ctx->D[2];
ctx               616 libavcodec/truemotion2.c         ctx->D[3] = (tp + ct) - left;
ctx               618 libavcodec/truemotion2.c     tm2_apply_deltas(ctx, Y, Ystride, deltas, last);
ctx               621 libavcodec/truemotion2.c static inline void tm2_still_block(TM2Context *ctx, AVFrame *pic, int bx, int by)
ctx               637 libavcodec/truemotion2.c     TM2_RECALC_BLOCK(U, Ustride, clast, ctx->CD);
ctx               638 libavcodec/truemotion2.c     TM2_RECALC_BLOCK(V, Vstride, (clast + 2), (ctx->CD + 2));
ctx               641 libavcodec/truemotion2.c     ctx->D[0] = Yo[3] - last[3];
ctx               642 libavcodec/truemotion2.c     ctx->D[1] = Yo[3 + oYstride] - Yo[3];
ctx               643 libavcodec/truemotion2.c     ctx->D[2] = Yo[3 + oYstride * 2] - Yo[3 + oYstride];
ctx               644 libavcodec/truemotion2.c     ctx->D[3] = Yo[3 + oYstride * 3] - Yo[3 + oYstride * 2];
ctx               656 libavcodec/truemotion2.c static inline void tm2_update_block(TM2Context *ctx, AVFrame *pic, int bx, int by)
ctx               665 libavcodec/truemotion2.c             U[i] = Uo[i] + GET_TOK(ctx, TM2_UPD);
ctx               666 libavcodec/truemotion2.c             V[i] = Vo[i] + GET_TOK(ctx, TM2_UPD);
ctx               675 libavcodec/truemotion2.c     TM2_RECALC_BLOCK(U, Ustride, clast, ctx->CD);
ctx               676 libavcodec/truemotion2.c     TM2_RECALC_BLOCK(V, Vstride, (clast + 2), (ctx->CD + 2));
ctx               679 libavcodec/truemotion2.c     ctx->D[0] = Yo[3] - last[3];
ctx               680 libavcodec/truemotion2.c     ctx->D[1] = Yo[3 + oYstride] - Yo[3];
ctx               681 libavcodec/truemotion2.c     ctx->D[2] = Yo[3 + oYstride * 2] - Yo[3 + oYstride];
ctx               682 libavcodec/truemotion2.c     ctx->D[3] = Yo[3 + oYstride * 3] - Yo[3 + oYstride * 2];
ctx               687 libavcodec/truemotion2.c             Y[i]    = Yo[i] + GET_TOK(ctx, TM2_UPD);
ctx               690 libavcodec/truemotion2.c         ctx->D[j] = last[3] - d;
ctx               696 libavcodec/truemotion2.c static inline void tm2_motion_block(TM2Context *ctx, AVFrame *pic, int bx, int by)
ctx               702 libavcodec/truemotion2.c     mx = GET_TOK(ctx, TM2_MOT);
ctx               703 libavcodec/truemotion2.c     my = GET_TOK(ctx, TM2_MOT);
ctx               704 libavcodec/truemotion2.c     mx = av_clip(mx, -(bx * 4 + 4), ctx->avctx->width  - bx * 4);
ctx               705 libavcodec/truemotion2.c     my = av_clip(my, -(by * 4 + 4), ctx->avctx->height - by * 4);
ctx               707 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               708 libavcodec/truemotion2.c         av_log(ctx->avctx, AV_LOG_ERROR, "MV out of picture\n");
ctx               729 libavcodec/truemotion2.c     TM2_RECALC_BLOCK(U, Ustride, clast, ctx->CD);
ctx               730 libavcodec/truemotion2.c     TM2_RECALC_BLOCK(V, Vstride, (clast + 2), (ctx->CD + 2));
ctx               742 libavcodec/truemotion2.c     ctx->D[0] = Y[3] - last[3];
ctx               743 libavcodec/truemotion2.c     ctx->D[1] = Y[3 + Ystride] - Y[3];
ctx               744 libavcodec/truemotion2.c     ctx->D[2] = Y[3 + Ystride * 2] - Y[3 + Ystride];
ctx               745 libavcodec/truemotion2.c     ctx->D[3] = Y[3 + Ystride * 3] - Y[3 + Ystride * 2];
ctx               750 libavcodec/truemotion2.c static int tm2_decode_blocks(TM2Context *ctx, AVFrame *p)
ctx               753 libavcodec/truemotion2.c     int w = ctx->avctx->width, h = ctx->avctx->height, bw = w >> 2, bh = h >> 2, cw = w >> 1;
ctx               760 libavcodec/truemotion2.c         ctx->tok_ptrs[i] = 0;
ctx               762 libavcodec/truemotion2.c     if (ctx->tok_lens[TM2_TYPE]<bw*bh) {
ctx               763 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               767 libavcodec/truemotion2.c     memset(ctx->last, 0, 4 * bw * sizeof(int));
ctx               768 libavcodec/truemotion2.c     memset(ctx->clast, 0, 4 * bw * sizeof(int));
ctx               771 libavcodec/truemotion2.c         memset(ctx->D, 0, 4 * sizeof(int));
ctx               772 libavcodec/truemotion2.c         memset(ctx->CD, 0, 4 * sizeof(int));
ctx               774 libavcodec/truemotion2.c             type = GET_TOK(ctx, TM2_TYPE);
ctx               777 libavcodec/truemotion2.c                 tm2_hi_res_block(ctx, p, i, j);
ctx               780 libavcodec/truemotion2.c                 tm2_med_res_block(ctx, p, i, j);
ctx               783 libavcodec/truemotion2.c                 tm2_low_res_block(ctx, p, i, j);
ctx               786 libavcodec/truemotion2.c                 tm2_null_res_block(ctx, p, i, j);
ctx               789 libavcodec/truemotion2.c                 tm2_update_block(ctx, p, i, j);
ctx               793 libavcodec/truemotion2.c                 tm2_still_block(ctx, p, i, j);
ctx               797 libavcodec/truemotion2.c                 tm2_motion_block(ctx, p, i, j);
ctx               801 libavcodec/truemotion2.c                 av_log(ctx->avctx, AV_LOG_ERROR, "Skipping unknown block type %i\n", type);
ctx               807 libavcodec/truemotion2.c     Y = (ctx->cur?ctx->Y2:ctx->Y1);
ctx               808 libavcodec/truemotion2.c     U = (ctx->cur?ctx->U2:ctx->U1);
ctx               809 libavcodec/truemotion2.c     V = (ctx->cur?ctx->V2:ctx->V1);
ctx               825 libavcodec/truemotion2.c             memcpy(Y - 4 - 1 * ctx->y_stride, Y - 4, ctx->y_stride);
ctx               826 libavcodec/truemotion2.c             memcpy(Y - 4 - 2 * ctx->y_stride, Y - 4, ctx->y_stride);
ctx               827 libavcodec/truemotion2.c             memcpy(Y - 4 - 3 * ctx->y_stride, Y - 4, ctx->y_stride);
ctx               828 libavcodec/truemotion2.c             memcpy(Y - 4 - 4 * ctx->y_stride, Y - 4, ctx->y_stride);
ctx               830 libavcodec/truemotion2.c             memcpy(Y - 4 + 1 * ctx->y_stride, Y - 4, ctx->y_stride);
ctx               831 libavcodec/truemotion2.c             memcpy(Y - 4 + 2 * ctx->y_stride, Y - 4, ctx->y_stride);
ctx               832 libavcodec/truemotion2.c             memcpy(Y - 4 + 3 * ctx->y_stride, Y - 4, ctx->y_stride);
ctx               833 libavcodec/truemotion2.c             memcpy(Y - 4 + 4 * ctx->y_stride, Y - 4, ctx->y_stride);
ctx               836 libavcodec/truemotion2.c         Y += ctx->y_stride;
ctx               846 libavcodec/truemotion2.c                 memcpy(U - 2 - 1 * ctx->uv_stride, U - 2, ctx->uv_stride);
ctx               847 libavcodec/truemotion2.c                 memcpy(V - 2 - 1 * ctx->uv_stride, V - 2, ctx->uv_stride);
ctx               848 libavcodec/truemotion2.c                 memcpy(U - 2 - 2 * ctx->uv_stride, U - 2, ctx->uv_stride);
ctx               849 libavcodec/truemotion2.c                 memcpy(V - 2 - 2 * ctx->uv_stride, V - 2, ctx->uv_stride);
ctx               851 libavcodec/truemotion2.c                 memcpy(U - 2 + 1 * ctx->uv_stride, U - 2, ctx->uv_stride);
ctx               852 libavcodec/truemotion2.c                 memcpy(V - 2 + 1 * ctx->uv_stride, V - 2, ctx->uv_stride);
ctx               853 libavcodec/truemotion2.c                 memcpy(U - 2 + 2 * ctx->uv_stride, U - 2, ctx->uv_stride);
ctx               854 libavcodec/truemotion2.c                 memcpy(V - 2 + 2 * ctx->uv_stride, V - 2, ctx->uv_stride);
ctx               857 libavcodec/truemotion2.c             U += ctx->uv_stride;
ctx               858 libavcodec/truemotion2.c             V += ctx->uv_stride;
ctx              1290 libavcodec/utils.c static int get_bit_rate(AVCodecContext *ctx)
ctx              1295 libavcodec/utils.c     switch (ctx->codec_type) {
ctx              1300 libavcodec/utils.c         bit_rate = ctx->bit_rate;
ctx              1303 libavcodec/utils.c         bits_per_sample = av_get_bits_per_sample(ctx->codec_id);
ctx              1304 libavcodec/utils.c         bit_rate = bits_per_sample ? ctx->sample_rate * ctx->channels * bits_per_sample : ctx->bit_rate;
ctx              2195 libavcodec/utils.c static int64_t guess_correct_pts(AVCodecContext *ctx,
ctx              2201 libavcodec/utils.c         ctx->pts_correction_num_faulty_dts += dts <= ctx->pts_correction_last_dts;
ctx              2202 libavcodec/utils.c         ctx->pts_correction_last_dts = dts;
ctx              2204 libavcodec/utils.c         ctx->pts_correction_last_dts = reordered_pts;
ctx              2207 libavcodec/utils.c         ctx->pts_correction_num_faulty_pts += reordered_pts <= ctx->pts_correction_last_pts;
ctx              2208 libavcodec/utils.c         ctx->pts_correction_last_pts = reordered_pts;
ctx              2210 libavcodec/utils.c         ctx->pts_correction_last_pts = dts;
ctx              2212 libavcodec/utils.c     if ((ctx->pts_correction_num_faulty_pts<=ctx->pts_correction_num_faulty_dts || dts == AV_NOPTS_VALUE)
ctx                45 libavcodec/vaapi_mpeg4.c     Mpeg4DecContext *ctx = avctx->priv_data;
ctx                46 libavcodec/vaapi_mpeg4.c     MpegEncContext * const s = &ctx->m;
ctx                69 libavcodec/vaapi_mpeg4.c     pic_param->vol_fields.bits.sprite_enable            = ctx->vol_sprite_usage;
ctx                74 libavcodec/vaapi_mpeg4.c     pic_param->vol_fields.bits.reversible_vlc           = ctx->rvlc;
ctx                75 libavcodec/vaapi_mpeg4.c     pic_param->vol_fields.bits.resync_marker_disable    = !ctx->resync_marker;
ctx                76 libavcodec/vaapi_mpeg4.c     pic_param->no_of_sprite_warping_points              = ctx->num_sprite_warping_points;
ctx                77 libavcodec/vaapi_mpeg4.c     for (i = 0; i < ctx->num_sprite_warping_points && i < 3; i++) {
ctx                78 libavcodec/vaapi_mpeg4.c         pic_param->sprite_trajectory_du[i]              = ctx->sprite_traj[i][0];
ctx                79 libavcodec/vaapi_mpeg4.c         pic_param->sprite_trajectory_dv[i]              = ctx->sprite_traj[i][1];
ctx                86 libavcodec/vaapi_mpeg4.c     pic_param->vop_fields.bits.intra_dc_vlc_thr         = mpeg4_get_intra_dc_vlc_thr(ctx);
ctx                43 libavcodec/vble.c static int vble_unpack(VBLEContext *ctx, GetBitContext *gb)
ctx                59 libavcodec/vble.c     for (i = 0; i < ctx->size; i++) {
ctx                67 libavcodec/vble.c             ctx->val[i] = val;
ctx                72 libavcodec/vble.c             ctx->val[i] = 8;
ctx                74 libavcodec/vble.c         allbits += ctx->val[i];
ctx                83 libavcodec/vble.c static void vble_restore_plane(VBLEContext *ctx, AVFrame *pic,
ctx                88 libavcodec/vble.c     uint8_t *val = ctx->val + offset;
ctx               103 libavcodec/vble.c             ctx->hdsp.add_hfyu_median_pred(dst, dst - stride, val,
ctx               118 libavcodec/vble.c     VBLEContext *ctx = avctx->priv_data;
ctx               149 libavcodec/vble.c     if (vble_unpack(ctx, &gb) < 0) {
ctx               155 libavcodec/vble.c     vble_restore_plane(ctx, pic, &gb, 0, offset, avctx->width, avctx->height);
ctx               158 libavcodec/vble.c     if (!(ctx->avctx->flags & CODEC_FLAG_GRAY)) {
ctx               160 libavcodec/vble.c         vble_restore_plane(ctx, pic, &gb, 1, offset, width_uv, height_uv);
ctx               163 libavcodec/vble.c         vble_restore_plane(ctx, pic, &gb, 2, offset, width_uv, height_uv);
ctx               173 libavcodec/vble.c     VBLEContext *ctx = avctx->priv_data;
ctx               174 libavcodec/vble.c     av_freep(&ctx->val);
ctx               181 libavcodec/vble.c     VBLEContext *ctx = avctx->priv_data;
ctx               184 libavcodec/vble.c     ctx->avctx = avctx;
ctx               185 libavcodec/vble.c     ff_huffyuvdsp_init(&ctx->hdsp);
ctx               190 libavcodec/vble.c     ctx->size = avpicture_get_size(avctx->pix_fmt,
ctx               193 libavcodec/vble.c     ctx->val = av_malloc_array(ctx->size, sizeof(*ctx->val));
ctx               195 libavcodec/vble.c     if (!ctx->val) {
ctx                69 libavcodec/vda.c void av_vda_default_free(AVCodecContext *ctx)
ctx                71 libavcodec/vda_h264.c static int vda_sync_decode(VDAContext *ctx, struct vda_context *vda_ctx)
ctx                78 libavcodec/vda_h264.c                                ctx->bitstream,
ctx                79 libavcodec/vda_h264.c                                ctx->bitstream_size);
ctx               303 libavcodec/vda_h264.c     AVCodecContext *ctx = opaque;
ctx               304 libavcodec/vda_h264.c     VDAContext *vda = ctx->internal->hwaccel_priv_data;
ctx               104 libavcodec/vda_h264_dec.c     VDADecoderContext *ctx = avctx->priv_data;
ctx               105 libavcodec/vda_h264_dec.c     ctx->hwaccel_context = avctx->hwaccel_context;
ctx               106 libavcodec/vda_h264_dec.c     avctx->hwaccel_context = &ctx->vda_ctx;
ctx               107 libavcodec/vda_h264_dec.c     ctx->get_format = avctx->get_format;
ctx               109 libavcodec/vda_h264_dec.c     ctx->get_buffer2 = avctx->get_buffer2;
ctx               112 libavcodec/vda_h264_dec.c     ctx->get_buffer = avctx->get_buffer;
ctx               119 libavcodec/vda_h264_dec.c     VDADecoderContext *ctx = avctx->priv_data;
ctx               120 libavcodec/vda_h264_dec.c     avctx->hwaccel_context = ctx->hwaccel_context;
ctx               121 libavcodec/vda_h264_dec.c     avctx->get_format = ctx->get_format;
ctx               122 libavcodec/vda_h264_dec.c     avctx->get_buffer2 = ctx->get_buffer2;
ctx               124 libavcodec/vda_h264_dec.c     avctx->get_buffer = ctx->get_buffer;
ctx               131 libavcodec/vda_h264_dec.c     VDADecoderContext *ctx = avctx->priv_data;
ctx               146 libavcodec/vda_h264_dec.c         pic->format = ctx->pix_fmt;
ctx               159 libavcodec/vda_h264_dec.c     avctx->pix_fmt = ctx->pix_fmt;
ctx               166 libavcodec/vda_h264_dec.c     VDADecoderContext *ctx = avctx->priv_data;
ctx               168 libavcodec/vda_h264_dec.c     ff_vda_destroy_decoder(&ctx->vda_ctx);
ctx               170 libavcodec/vda_h264_dec.c     if (ctx->h264_initialized) {
ctx               180 libavcodec/vda_h264_dec.c     VDADecoderContext *ctx = avctx->priv_data;
ctx               181 libavcodec/vda_h264_dec.c     struct vda_context *vda_ctx = &ctx->vda_ctx;
ctx               185 libavcodec/vda_h264_dec.c     ctx->h264_initialized = 0;
ctx               202 libavcodec/vda_h264_dec.c     ctx->pix_fmt = avctx->get_format(avctx, avctx->codec->pix_fmts);
ctx               203 libavcodec/vda_h264_dec.c     switch (ctx->pix_fmt) {
ctx               236 libavcodec/vda_h264_dec.c     ctx->h264_initialized = 1;
ctx               239 libavcodec/vda_h264_dec.c         SPS *sps = ctx->h264ctx.sps_buffers[i];
ctx               639 libavcodec/vdpau.c void ff_vdpau_mpeg4_decode_picture(Mpeg4DecContext *ctx, const uint8_t *buf,
ctx               642 libavcodec/vdpau.c     MpegEncContext *s = &ctx->m;
ctx               660 libavcodec/vdpau.c     render->info.mpeg4.resync_marker_disable             = !ctx->resync_marker;
ctx                34 libavcodec/vdpau_mpeg4.c     Mpeg4DecContext *ctx = avctx->priv_data;
ctx                35 libavcodec/vdpau_mpeg4.c     MpegEncContext * const s = &ctx->m;
ctx                67 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                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               350 libavcodec/vorbis_parser.c static void vorbis_parser_close(AVCodecParserContext *ctx)
ctx               352 libavcodec/vorbis_parser.c     VorbisParseContext *s = ctx->priv_data;
ctx               132 libavcodec/vp5.c     int node, cg, ctx;
ctx               160 libavcodec/vp5.c         for (ctx=0; ctx<36; ctx++)
ctx               162 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               168 libavcodec/vp5.c                 for (ctx=0; ctx<6; ctx++)
ctx               170 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               181 libavcodec/vp5.c     int b, i, cg, idx, ctx, ctx_last;
ctx               189 libavcodec/vp5.c         ctx = 6*s->coeff_ctx[ff_vp56_b6to4[b]][0]
ctx               192 libavcodec/vp5.c         model2 = model->coeff_dcct[pt][ctx];
ctx               237 libavcodec/vp5.c             ctx = s->coeff_ctx[ff_vp56_b6to4[b]][coeff_idx];
ctx               239 libavcodec/vp5.c             model2 = cg > 2 ? model1 : model->coeff_acct[pt][ct][cg][ctx];
ctx                83 libavcodec/vp56.c     int i, ctx, type;
ctx                85 libavcodec/vp56.c     for (ctx=0; ctx<3; ctx++) {
ctx                88 libavcodec/vp56.c             memcpy(model->mb_types_stats[ctx],
ctx                89 libavcodec/vp56.c                    ff_vp56_pre_def_mb_type_stats[idx][ctx],
ctx                90 libavcodec/vp56.c                    sizeof(model->mb_types_stats[ctx]));
ctx               102 libavcodec/vp56.c                         model->mb_types_stats[ctx][type][i] += (delta ^ -sign) + sign;
ctx               110 libavcodec/vp56.c     for (ctx=0; ctx<3; ctx++) {
ctx               114 libavcodec/vp56.c             p[type] = 100 * model->mb_types_stats[ctx][type][1];
ctx               120 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               134 libavcodec/vp56.c             model->mb_type[ctx][type][1] = 1 + 255 * p0234/(1+p0234+p156789);
ctx               135 libavcodec/vp56.c             model->mb_type[ctx][type][2] = 1 + 255 * p02  / (1+p0234);
ctx               136 libavcodec/vp56.c             model->mb_type[ctx][type][3] = 1 + 255 * p17  / (1+p156789);
ctx               137 libavcodec/vp56.c             model->mb_type[ctx][type][4] = 1 + 255 * p[0] / (1+p02);
ctx               138 libavcodec/vp56.c             model->mb_type[ctx][type][5] = 1 + 255 * p[3] / (1+p34);
ctx               139 libavcodec/vp56.c             model->mb_type[ctx][type][6] = 1 + 255 * p[1] / (1+p17);
ctx               140 libavcodec/vp56.c             model->mb_type[ctx][type][7] = 1 + 255 * p56  / (1+p5689);
ctx               141 libavcodec/vp56.c             model->mb_type[ctx][type][8] = 1 + 255 * p[5] / (1+p56);
ctx               142 libavcodec/vp56.c             model->mb_type[ctx][type][9] = 1 + 255 * p[8] / (1+p89);
ctx               145 libavcodec/vp56.c             p[type] = 100 * model->mb_types_stats[ctx][type][1];
ctx               151 libavcodec/vp56.c                                  VP56mb prev_type, int ctx)
ctx               153 libavcodec/vp56.c     uint8_t *mb_type_model = s->modelp->mb_type[ctx][prev_type];
ctx               210 libavcodec/vp56.c     int ctx, b;
ctx               212 libavcodec/vp56.c     ctx = vp56_get_vectors_predictors(s, row, col, VP56_FRAME_PREVIOUS);
ctx               213 libavcodec/vp56.c     s->mb_type = vp56_parse_mb_type(s, s->mb_type, ctx);
ctx               265 libavcodec/vp6.c     int node, cg, ctx, pos;
ctx               322 libavcodec/vp6.c         for (ctx=0; ctx<3; ctx++)
ctx               324 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               449 libavcodec/vp6.c     int b, i, cg, idx, ctx;
ctx               458 libavcodec/vp6.c         ctx = s->left_block[ff_vp56_b6to4[b]].not_null_dc
ctx               461 libavcodec/vp6.c         model2 = model->coeff_dcct[pt][ctx];
ctx              1134 libavcodec/vp8.c                 const uint8_t *ctx;
ctx              1135 libavcodec/vp8.c                 ctx       = vp8_pred4x4_prob_intra[top[x]][left[y]];
ctx              1136 libavcodec/vp8.c                 *intra4x4 = vp8_rac_get_tree(c, vp8_pred4x4_tree, ctx);
ctx               264 libavcodec/vp9.c static int vp9_alloc_frame(AVCodecContext *ctx, VP9Frame *f)
ctx               266 libavcodec/vp9.c     VP9Context *s = ctx->priv_data;
ctx               269 libavcodec/vp9.c     if ((ret = ff_thread_get_buffer(ctx, &f->tf, AV_GET_BUFFER_FLAG_REF)) < 0)
ctx               273 libavcodec/vp9.c         ff_thread_release_buffer(ctx, &f->tf);
ctx               283 libavcodec/vp9.c         ctx->active_thread_type != FF_THREAD_FRAME) {
ctx               290 libavcodec/vp9.c static void vp9_unref_frame(AVCodecContext *ctx, VP9Frame *f)
ctx               292 libavcodec/vp9.c     ff_thread_release_buffer(ctx, &f->tf);
ctx               296 libavcodec/vp9.c static int vp9_ref_frame(AVCodecContext *ctx, VP9Frame *dst, VP9Frame *src)
ctx               303 libavcodec/vp9.c         vp9_unref_frame(ctx, dst);
ctx               313 libavcodec/vp9.c static int update_size(AVCodecContext *ctx, int w, int h)
ctx               315 libavcodec/vp9.c     VP9Context *s = ctx->priv_data;
ctx               320 libavcodec/vp9.c     if (s->intra_pred_data[0] && w == ctx->width && h == ctx->height)
ctx               323 libavcodec/vp9.c     ctx->width  = w;
ctx               324 libavcodec/vp9.c     ctx->height = h;
ctx               361 libavcodec/vp9.c static int update_block_buffers(AVCodecContext *ctx)
ctx               363 libavcodec/vp9.c     VP9Context *s = ctx->priv_data;
ctx               468 libavcodec/vp9.c static int decode_frame_header(AVCodecContext *ctx,
ctx               471 libavcodec/vp9.c     VP9Context *s = ctx->priv_data;
ctx               478 libavcodec/vp9.c         av_log(ctx, AV_LOG_ERROR, "Failed to initialize bitstream reader\n");
ctx               482 libavcodec/vp9.c         av_log(ctx, AV_LOG_ERROR, "Invalid frame marker\n");
ctx               487 libavcodec/vp9.c         av_log(ctx, AV_LOG_ERROR, "Reserved bit should be zero\n");
ctx               503 libavcodec/vp9.c             av_log(ctx, AV_LOG_ERROR, "Invalid sync code\n");
ctx               508 libavcodec/vp9.c             av_log(ctx, AV_LOG_ERROR, "RGB not supported in profile 0\n");
ctx               523 libavcodec/vp9.c                 av_log(ctx, AV_LOG_ERROR, "Invalid sync code\n");
ctx               542 libavcodec/vp9.c                 av_log(ctx, AV_LOG_ERROR, "Not all references are available\n");
ctx               635 libavcodec/vp9.c             av_log(ctx, AV_LOG_ERROR,
ctx               705 libavcodec/vp9.c     if ((res = update_size(ctx, w, h)) < 0) {
ctx               706 libavcodec/vp9.c         av_log(ctx, AV_LOG_ERROR, "Failed to initialize decoder for %dx%d\n", w, h);
ctx               727 libavcodec/vp9.c             av_log(ctx, AV_LOG_ERROR, "Ran out of memory during range coder init\n");
ctx               749 libavcodec/vp9.c         av_log(ctx, AV_LOG_ERROR, "Invalid compressed header size\n");
ctx               754 libavcodec/vp9.c         av_log(ctx, AV_LOG_ERROR, "Marker bit was set\n");
ctx              1319 libavcodec/vp9.c static void decode_mode(AVCodecContext *ctx)
ctx              1331 libavcodec/vp9.c     VP9Context *s = ctx->priv_data;
ctx              1359 libavcodec/vp9.c                 if (!s->segmentation.update_map && ctx->active_thread_type == FF_THREAD_FRAME) {
ctx              2158 libavcodec/vp9.c static void decode_coeffs(AVCodecContext *ctx)
ctx              2160 libavcodec/vp9.c     VP9Context *s = ctx->priv_data;
ctx              2470 libavcodec/vp9.c static void intra_recon(AVCodecContext *ctx, ptrdiff_t y_off, ptrdiff_t uv_off)
ctx              2472 libavcodec/vp9.c     VP9Context *s = ctx->priv_data;
ctx              2616 libavcodec/vp9.c static void inter_recon(AVCodecContext *ctx)
ctx              2622 libavcodec/vp9.c     VP9Context *s = ctx->priv_data;
ctx              2942 libavcodec/vp9.c static void decode_b(AVCodecContext *ctx, int row, int col,
ctx              2946 libavcodec/vp9.c     VP9Context *s = ctx->priv_data;
ctx              2965 libavcodec/vp9.c         decode_mode(ctx);
ctx              2969 libavcodec/vp9.c             decode_coeffs(ctx);
ctx              3038 libavcodec/vp9.c         intra_recon(ctx, yoff, uvoff);
ctx              3040 libavcodec/vp9.c         inter_recon(ctx);
ctx              3113 libavcodec/vp9.c static void decode_sb(AVCodecContext *ctx, int row, int col, struct VP9Filter *lflvl,
ctx              3116 libavcodec/vp9.c     VP9Context *s = ctx->priv_data;
ctx              3128 libavcodec/vp9.c         decode_b(ctx, row, col, lflvl, yoff, uvoff, bl, bp);
ctx              3134 libavcodec/vp9.c                 decode_b(ctx, row, col, lflvl, yoff, uvoff, bl, bp);
ctx              3137 libavcodec/vp9.c                 decode_b(ctx, row, col, lflvl, yoff, uvoff, bl, bp);
ctx              3140 libavcodec/vp9.c                 decode_b(ctx, row + hbs, col, lflvl, yoff, uvoff, bl, bp);
ctx              3143 libavcodec/vp9.c                 decode_b(ctx, row, col, lflvl, yoff, uvoff, bl, bp);
ctx              3146 libavcodec/vp9.c                 decode_b(ctx, row, col + hbs, lflvl, yoff, uvoff, bl, bp);
ctx              3149 libavcodec/vp9.c                 decode_sb(ctx, row, col, lflvl, yoff, uvoff, bl + 1);
ctx              3150 libavcodec/vp9.c                 decode_sb(ctx, row, col + hbs, lflvl,
ctx              3154 libavcodec/vp9.c                 decode_sb(ctx, row + hbs, col, lflvl, yoff, uvoff, bl + 1);
ctx              3155 libavcodec/vp9.c                 decode_sb(ctx, row + hbs, col + hbs, lflvl,
ctx              3163 libavcodec/vp9.c             decode_sb(ctx, row, col, lflvl, yoff, uvoff, bl + 1);
ctx              3164 libavcodec/vp9.c             decode_sb(ctx, row, col + hbs, lflvl,
ctx              3168 libavcodec/vp9.c             decode_b(ctx, row, col, lflvl, yoff, uvoff, bl, bp);
ctx              3173 libavcodec/vp9.c             decode_sb(ctx, row, col, lflvl, yoff, uvoff, bl + 1);
ctx              3176 libavcodec/vp9.c             decode_sb(ctx, row + hbs, col, lflvl, yoff, uvoff, bl + 1);
ctx              3179 libavcodec/vp9.c             decode_b(ctx, row, col, lflvl, yoff, uvoff, bl, bp);
ctx              3183 libavcodec/vp9.c         decode_sb(ctx, row, col, lflvl, yoff, uvoff, bl + 1);
ctx              3188 libavcodec/vp9.c static void decode_sb_mem(AVCodecContext *ctx, int row, int col, struct VP9Filter *lflvl,
ctx              3191 libavcodec/vp9.c     VP9Context *s = ctx->priv_data;
ctx              3199 libavcodec/vp9.c         decode_b(ctx, row, col, lflvl, yoff, uvoff, b->bl, b->bp);
ctx              3201 libavcodec/vp9.c         decode_b(ctx, row, col, lflvl, yoff, uvoff, b->bl, b->bp);
ctx              3205 libavcodec/vp9.c             decode_b(ctx, row + hbs, col, lflvl, yoff, uvoff, b->bl, b->bp);
ctx              3209 libavcodec/vp9.c             decode_b(ctx, row, col + hbs, lflvl, yoff, uvoff, b->bl, b->bp);
ctx              3212 libavcodec/vp9.c         decode_sb_mem(ctx, row, col, lflvl, yoff, uvoff, bl + 1);
ctx              3215 libavcodec/vp9.c                 decode_sb_mem(ctx, row, col + hbs, lflvl, yoff + 8 * hbs,
ctx              3219 libavcodec/vp9.c                 decode_sb_mem(ctx, row + hbs, col, lflvl, yoff, uvoff, bl + 1);
ctx              3220 libavcodec/vp9.c                 decode_sb_mem(ctx, row + hbs, col + hbs, lflvl,
ctx              3225 libavcodec/vp9.c                 decode_sb_mem(ctx, row, col + hbs, lflvl, yoff, uvoff, bl + 1);
ctx              3230 libavcodec/vp9.c             decode_sb_mem(ctx, row + hbs, col, lflvl, yoff, uvoff, bl + 1);
ctx              3235 libavcodec/vp9.c static void loopfilter_sb(AVCodecContext *ctx, struct VP9Filter *lflvl,
ctx              3238 libavcodec/vp9.c     VP9Context *s = ctx->priv_data;
ctx              3727 libavcodec/vp9.c static av_cold int vp9_decode_free(AVCodecContext *ctx)
ctx              3729 libavcodec/vp9.c     VP9Context *s = ctx->priv_data;
ctx              3734 libavcodec/vp9.c             vp9_unref_frame(ctx, &s->frames[i]);
ctx              3739 libavcodec/vp9.c             ff_thread_release_buffer(ctx, &s->refs[i]);
ctx              3742 libavcodec/vp9.c             ff_thread_release_buffer(ctx, &s->next_refs[i]);
ctx              3753 libavcodec/vp9.c static int vp9_decode_frame(AVCodecContext *ctx, void *frame,
ctx              3758 libavcodec/vp9.c     VP9Context *s = ctx->priv_data;
ctx              3763 libavcodec/vp9.c     if ((res = decode_frame_header(ctx, data, size, &ref)) < 0) {
ctx              3767 libavcodec/vp9.c             av_log(ctx, AV_LOG_ERROR, "Requested reference %d not available\n", ref);
ctx              3779 libavcodec/vp9.c         vp9_unref_frame(ctx, &s->frames[LAST_FRAME]);
ctx              3781 libavcodec/vp9.c         (res = vp9_ref_frame(ctx, &s->frames[LAST_FRAME], &s->frames[CUR_FRAME])) < 0)
ctx              3784 libavcodec/vp9.c         vp9_unref_frame(ctx, &s->frames[CUR_FRAME]);
ctx              3785 libavcodec/vp9.c     if ((res = vp9_alloc_frame(ctx, &s->frames[CUR_FRAME])) < 0)
ctx              3796 libavcodec/vp9.c             ff_thread_release_buffer(ctx, &s->next_refs[i]);
ctx              3807 libavcodec/vp9.c         ctx->color_range = AVCOL_RANGE_JPEG;
ctx              3809 libavcodec/vp9.c         ctx->color_range = AVCOL_RANGE_MPEG;
ctx              3812 libavcodec/vp9.c     case 1: ctx->colorspace = AVCOL_SPC_BT470BG; break;
ctx              3813 libavcodec/vp9.c     case 2: ctx->colorspace = AVCOL_SPC_BT709; break;
ctx              3814 libavcodec/vp9.c     case 3: ctx->colorspace = AVCOL_SPC_SMPTE170M; break;
ctx              3815 libavcodec/vp9.c     case 4: ctx->colorspace = AVCOL_SPC_SMPTE240M; break;
ctx              3831 libavcodec/vp9.c         ctx->active_thread_type == FF_THREAD_FRAME && s->refreshctx && !s->parallelmode;
ctx              3832 libavcodec/vp9.c     if ((res = update_block_buffers(ctx)) < 0) {
ctx              3833 libavcodec/vp9.c         av_log(ctx, AV_LOG_ERROR,
ctx              3851 libavcodec/vp9.c         ff_thread_finish_setup(ctx);
ctx              3853 libavcodec/vp9.c         ff_thread_finish_setup(ctx);
ctx              3929 libavcodec/vp9.c                             decode_sb_mem(ctx, row, col, lflvl_ptr,
ctx              3932 libavcodec/vp9.c                             decode_sb(ctx, row, col, lflvl_ptr,
ctx              3966 libavcodec/vp9.c                         loopfilter_sb(ctx, lflvl_ptr, row, col, yoff2, uvoff2);
ctx              3979 libavcodec/vp9.c             ff_thread_finish_setup(ctx);
ctx              3987 libavcodec/vp9.c             ff_thread_release_buffer(ctx, &s->refs[i]);
ctx              4000 libavcodec/vp9.c static void vp9_decode_flush(AVCodecContext *ctx)
ctx              4002 libavcodec/vp9.c     VP9Context *s = ctx->priv_data;
ctx              4006 libavcodec/vp9.c         vp9_unref_frame(ctx, &s->frames[i]);
ctx              4008 libavcodec/vp9.c         ff_thread_release_buffer(ctx, &s->refs[i]);
ctx              4011 libavcodec/vp9.c static int init_frames(AVCodecContext *ctx)
ctx              4013 libavcodec/vp9.c     VP9Context *s = ctx->priv_data;
ctx              4019 libavcodec/vp9.c             vp9_decode_free(ctx);
ctx              4020 libavcodec/vp9.c             av_log(ctx, AV_LOG_ERROR, "Failed to allocate frame buffer %d\n", i);
ctx              4028 libavcodec/vp9.c             vp9_decode_free(ctx);
ctx              4029 libavcodec/vp9.c             av_log(ctx, AV_LOG_ERROR, "Failed to allocate frame buffer %d\n", i);
ctx              4037 libavcodec/vp9.c static av_cold int vp9_decode_init(AVCodecContext *ctx)
ctx              4039 libavcodec/vp9.c     VP9Context *s = ctx->priv_data;
ctx              4041 libavcodec/vp9.c     ctx->internal->allocate_progress = 1;
ctx              4042 libavcodec/vp9.c     ctx->pix_fmt = AV_PIX_FMT_YUV420P;
ctx              4047 libavcodec/vp9.c     return init_frames(ctx);
ctx                30 libavcodec/vp9_parser.c static void parse_frame(AVCodecParserContext *ctx, const uint8_t *buf, int size)
ctx                32 libavcodec/vp9_parser.c     VP9ParseContext *s = ctx->priv_data;
ctx                35 libavcodec/vp9_parser.c         ctx->pict_type = AV_PICTURE_TYPE_P;
ctx                36 libavcodec/vp9_parser.c         ctx->key_frame = 0;
ctx                38 libavcodec/vp9_parser.c         ctx->pict_type = AV_PICTURE_TYPE_I;
ctx                39 libavcodec/vp9_parser.c         ctx->key_frame = 1;
ctx                43 libavcodec/vp9_parser.c         if (ctx->pts == AV_NOPTS_VALUE)
ctx                44 libavcodec/vp9_parser.c             ctx->pts = s->pts;
ctx                47 libavcodec/vp9_parser.c         s->pts = ctx->pts;
ctx                48 libavcodec/vp9_parser.c         ctx->pts = AV_NOPTS_VALUE;
ctx                52 libavcodec/vp9_parser.c static int parse(AVCodecParserContext *ctx,
ctx                57 libavcodec/vp9_parser.c     VP9ParseContext *s = ctx->priv_data;
ctx                71 libavcodec/vp9_parser.c         parse_frame(ctx, *out_data, *out_size);
ctx               111 libavcodec/vp9_parser.c                 parse_frame(ctx, *out_data, *out_size); \
ctx               124 libavcodec/vp9_parser.c     parse_frame(ctx, data, size);
ctx               102 libavcodec/wavpack.c static void update_error_limit(WavpackFrameContext *ctx)
ctx               106 libavcodec/wavpack.c     for (i = 0; i <= ctx->stereo_in; i++) {
ctx               107 libavcodec/wavpack.c         ctx->ch[i].bitrate_acc += ctx->ch[i].bitrate_delta;
ctx               108 libavcodec/wavpack.c         br[i]                   = ctx->ch[i].bitrate_acc >> 16;
ctx               109 libavcodec/wavpack.c         sl[i]                   = LEVEL_DECAY(ctx->ch[i].slow_level);
ctx               111 libavcodec/wavpack.c     if (ctx->stereo_in && ctx->hybrid_bitrate) {
ctx               124 libavcodec/wavpack.c     for (i = 0; i <= ctx->stereo_in; i++) {
ctx               125 libavcodec/wavpack.c         if (ctx->hybrid_bitrate) {
ctx               127 libavcodec/wavpack.c                 ctx->ch[i].error_limit = wp_exp2(sl[i] - br[i] + 0x100);
ctx               129 libavcodec/wavpack.c                 ctx->ch[i].error_limit = 0;
ctx               131 libavcodec/wavpack.c             ctx->ch[i].error_limit = wp_exp2(br[i]);
ctx               136 libavcodec/wavpack.c static int wv_get_value(WavpackFrameContext *ctx, GetBitContext *gb,
ctx               141 libavcodec/wavpack.c     WvChannel *c = &ctx->ch[channel];
ctx               145 libavcodec/wavpack.c     if ((ctx->ch[0].median[0] < 2U) && (ctx->ch[1].median[0] < 2U) &&
ctx               146 libavcodec/wavpack.c         !ctx->zero && !ctx->one) {
ctx               147 libavcodec/wavpack.c         if (ctx->zeroes) {
ctx               148 libavcodec/wavpack.c             ctx->zeroes--;
ctx               149 libavcodec/wavpack.c             if (ctx->zeroes) {
ctx               163 libavcodec/wavpack.c             ctx->zeroes = t;
ctx               164 libavcodec/wavpack.c             if (ctx->zeroes) {
ctx               165 libavcodec/wavpack.c                 memset(ctx->ch[0].median, 0, sizeof(ctx->ch[0].median));
ctx               166 libavcodec/wavpack.c                 memset(ctx->ch[1].median, 0, sizeof(ctx->ch[1].median));
ctx               173 libavcodec/wavpack.c     if (ctx->zero) {
ctx               175 libavcodec/wavpack.c         ctx->zero = 0;
ctx               193 libavcodec/wavpack.c         if (ctx->one) {
ctx               194 libavcodec/wavpack.c             ctx->one = t & 1;
ctx               197 libavcodec/wavpack.c             ctx->one = t & 1;
ctx               200 libavcodec/wavpack.c         ctx->zero = !ctx->one;
ctx               203 libavcodec/wavpack.c     if (ctx->hybrid && !channel)
ctx               204 libavcodec/wavpack.c         update_error_limit(ctx);
ctx               230 libavcodec/wavpack.c             av_log(ctx->avctx, AV_LOG_ERROR, "k %d is too large\n", add);
ctx               251 libavcodec/wavpack.c     if (ctx->hybrid_bitrate)
ctx               258 libavcodec/wavpack.c         av_log(ctx->avctx, AV_LOG_ERROR, "Too few bits (%d) left\n", ret);
ctx               343 libavcodec/wmavoice.c static av_cold int wmavoice_decode_init(AVCodecContext *ctx)
ctx               346 libavcodec/wmavoice.c     WMAVoiceContext *s = ctx->priv_data;
ctx               356 libavcodec/wmavoice.c     if (ctx->extradata_size != 46) {
ctx               357 libavcodec/wmavoice.c         av_log(ctx, AV_LOG_ERROR,
ctx               359 libavcodec/wmavoice.c                ctx->extradata_size);
ctx               362 libavcodec/wmavoice.c     flags                = AV_RL32(ctx->extradata + 18);
ctx               363 libavcodec/wmavoice.c     s->spillover_bitsize = 3 + av_ceil_log2(ctx->block_align);
ctx               380 libavcodec/wmavoice.c         av_log(ctx, AV_LOG_ERROR,
ctx               402 libavcodec/wmavoice.c     init_get_bits(&s->gb, ctx->extradata + 22, (ctx->extradata_size - 22) << 3);
ctx               404 libavcodec/wmavoice.c         av_log(ctx, AV_LOG_ERROR, "Invalid VBM tree; broken extradata?\n");
ctx               408 libavcodec/wmavoice.c     s->min_pitch_val    = ((ctx->sample_rate << 8)      /  400 + 50) >> 8;
ctx               409 libavcodec/wmavoice.c     s->max_pitch_val    = ((ctx->sample_rate << 8) * 37 / 2000 + 50) >> 8;
ctx               412 libavcodec/wmavoice.c         av_log(ctx, AV_LOG_ERROR, "Invalid pitch range; broken extradata?\n");
ctx               424 libavcodec/wmavoice.c         av_log(ctx, AV_LOG_ERROR,
ctx               426 libavcodec/wmavoice.c                ctx->sample_rate, min_sr, max_sr); // 322-22097 Hz
ctx               437 libavcodec/wmavoice.c         av_log(ctx, AV_LOG_ERROR, "Invalid delta pitch hrange; broken extradata?\n");
ctx               446 libavcodec/wmavoice.c     ctx->channels               = 1;
ctx               447 libavcodec/wmavoice.c     ctx->channel_layout         = AV_CH_LAYOUT_MONO;
ctx               448 libavcodec/wmavoice.c     ctx->sample_fmt             = AV_SAMPLE_FMT_FLT;
ctx              1451 libavcodec/wmavoice.c static int synth_frame(AVCodecContext *ctx, GetBitContext *gb, int frame_idx,
ctx              1456 libavcodec/wmavoice.c     WMAVoiceContext *s = ctx->priv_data;
ctx              1464 libavcodec/wmavoice.c         av_log(ctx, AV_LOG_ERROR,
ctx              1750 libavcodec/wmavoice.c static int synth_superframe(AVCodecContext *ctx, AVFrame *frame,
ctx              1753 libavcodec/wmavoice.c     WMAVoiceContext *s = ctx->priv_data;
ctx              1785 libavcodec/wmavoice.c         avpriv_request_sample(ctx, "WMAPro-in-WMAVoice");
ctx              1792 libavcodec/wmavoice.c             av_log(ctx, AV_LOG_ERROR,
ctx              1821 libavcodec/wmavoice.c     if ((res = ff_get_buffer(ctx, frame, 0)) < 0)
ctx              1841 libavcodec/wmavoice.c         if ((res = synth_frame(ctx, gb, n,
ctx              1946 libavcodec/wmavoice.c static int wmavoice_decode_packet(AVCodecContext *ctx, void *data,
ctx              1949 libavcodec/wmavoice.c     WMAVoiceContext *s = ctx->priv_data;
ctx              1958 libavcodec/wmavoice.c     for (size = avpkt->size; size > ctx->block_align; size -= ctx->block_align);
ctx              1968 libavcodec/wmavoice.c     if (size == ctx->block_align) { // new packet header
ctx              1981 libavcodec/wmavoice.c                 if ((res = synth_superframe(ctx, data, got_frame_ptr)) == 0 &&
ctx              1999 libavcodec/wmavoice.c     if ((res = synth_superframe(ctx, data, got_frame_ptr)) < 0) {
ctx              2021 libavcodec/wmavoice.c static av_cold int wmavoice_decode_end(AVCodecContext *ctx)
ctx              2023 libavcodec/wmavoice.c     WMAVoiceContext *s = ctx->priv_data;
ctx              2035 libavcodec/wmavoice.c static av_cold void wmavoice_flush(AVCodecContext *ctx)
ctx              2037 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               277 libavcodec/x86/videodsp_init.c av_cold void ff_videodsp_init_x86(VideoDSPContext *ctx, int bpc)
ctx               284 libavcodec/x86/videodsp_init.c         ctx->emulated_edge_mc = emulated_edge_mc_mmx;
ctx               287 libavcodec/x86/videodsp_init.c         ctx->prefetch = ff_prefetch_3dnow;
ctx               291 libavcodec/x86/videodsp_init.c         ctx->prefetch = ff_prefetch_mmxext;
ctx               295 libavcodec/x86/videodsp_init.c         ctx->emulated_edge_mc = emulated_edge_mc_sse;
ctx               299 libavcodec/x86/videodsp_init.c         ctx->emulated_edge_mc = emulated_edge_mc_sse2;
ctx               303 libavcodec/x86/videodsp_init.c         ctx->emulated_edge_mc = emulated_edge_mc_avx2;
ctx               161 libavcodec/xan.c     GetByteContext ctx;
ctx               163 libavcodec/xan.c     bytestream2_init(&ctx, src, src_len);
ctx               164 libavcodec/xan.c     while (dest < dest_end && bytestream2_get_bytes_left(&ctx)) {
ctx               165 libavcodec/xan.c         opcode = bytestream2_get_byte(&ctx);
ctx               172 libavcodec/xan.c                 back  = ((opcode & 0x60) << 3) + bytestream2_get_byte(&ctx) + 1;
ctx               175 libavcodec/xan.c                 size = bytestream2_peek_byte(&ctx) >> 6;
ctx               177 libavcodec/xan.c                 back  = (bytestream2_get_be16(&ctx) & 0x3fff) + 1;
ctx               182 libavcodec/xan.c                 back  = ((opcode & 0x10) << 12) + bytestream2_get_be16(&ctx) + 1;
ctx               183 libavcodec/xan.c                 size2 = ((opcode & 0x0c) <<  6) + bytestream2_get_byte(&ctx) + 5;
ctx               188 libavcodec/xan.c                 bytestream2_get_bytes_left(&ctx) < size)
ctx               190 libavcodec/xan.c             bytestream2_get_buffer(&ctx, dest, size);
ctx               198 libavcodec/xan.c             if (dest_end - dest < size || bytestream2_get_bytes_left(&ctx) < size)
ctx               200 libavcodec/xan.c             bytestream2_get_buffer(&ctx, dest, size);
ctx               548 libavcodec/xan.c     GetByteContext ctx;
ctx               551 libavcodec/xan.c     bytestream2_init(&ctx, buf, buf_size);
ctx               552 libavcodec/xan.c     while (bytestream2_get_bytes_left(&ctx) > 8 && tag != VGA__TAG) {
ctx               557 libavcodec/xan.c         tag  = bytestream2_get_le32(&ctx);
ctx               558 libavcodec/xan.c         size = bytestream2_get_be32(&ctx);
ctx               563 libavcodec/xan.c         size = FFMIN(size, bytestream2_get_bytes_left(&ctx));
ctx               578 libavcodec/xan.c                 int r = gamma_corr(bytestream2_get_byteu(&ctx));
ctx               579 libavcodec/xan.c                 int g = gamma_corr(bytestream2_get_byteu(&ctx));
ctx               580 libavcodec/xan.c                 int b = gamma_corr(bytestream2_get_byteu(&ctx));
ctx               582 libavcodec/xan.c                 int r = gamma_lookup[bytestream2_get_byteu(&ctx)];
ctx               583 libavcodec/xan.c                 int g = gamma_lookup[bytestream2_get_byteu(&ctx)];
ctx               584 libavcodec/xan.c                 int b = gamma_lookup[bytestream2_get_byteu(&ctx)];
ctx               593 libavcodec/xan.c             new_pal = bytestream2_get_le32(&ctx);
ctx               602 libavcodec/xan.c             bytestream2_skip(&ctx, size);
ctx               606 libavcodec/xan.c     buf_size = bytestream2_get_bytes_left(&ctx);
ctx               622 libavcodec/xan.c     s->buf = ctx.buffer;
ctx               167 libavdevice/alsa-audio-common.c av_cold int ff_alsa_open(AVFormatContext *ctx, snd_pcm_stream_t mode,
ctx               171 libavdevice/alsa-audio-common.c     AlsaData *s = ctx->priv_data;
ctx               178 libavdevice/alsa-audio-common.c     uint64_t layout = ctx->streams[0]->codec->channel_layout;
ctx               180 libavdevice/alsa-audio-common.c     if (ctx->filename[0] == 0) audio_device = "default";
ctx               181 libavdevice/alsa-audio-common.c     else                       audio_device = ctx->filename;
ctx               187 libavdevice/alsa-audio-common.c         av_log(ctx, AV_LOG_ERROR, "sample format 0x%04x is not supported\n", *codec_id);
ctx               192 libavdevice/alsa-audio-common.c     if (ctx->flags & AVFMT_FLAG_NONBLOCK) {
ctx               197 libavdevice/alsa-audio-common.c         av_log(ctx, AV_LOG_ERROR, "cannot open audio device %s (%s)\n",
ctx               204 libavdevice/alsa-audio-common.c         av_log(ctx, AV_LOG_ERROR, "cannot allocate hardware parameter structure (%s)\n",
ctx               211 libavdevice/alsa-audio-common.c         av_log(ctx, AV_LOG_ERROR, "cannot initialize hardware parameter structure (%s)\n",
ctx               218 libavdevice/alsa-audio-common.c         av_log(ctx, AV_LOG_ERROR, "cannot set access type (%s)\n",
ctx               225 libavdevice/alsa-audio-common.c         av_log(ctx, AV_LOG_ERROR, "cannot set sample format 0x%04x %d (%s)\n",
ctx               232 libavdevice/alsa-audio-common.c         av_log(ctx, AV_LOG_ERROR, "cannot set sample rate (%s)\n",
ctx               239 libavdevice/alsa-audio-common.c         av_log(ctx, AV_LOG_ERROR, "cannot set channel count to %d (%s)\n",
ctx               249 libavdevice/alsa-audio-common.c         av_log(ctx, AV_LOG_ERROR, "cannot set ALSA buffer size (%s)\n",
ctx               259 libavdevice/alsa-audio-common.c         av_log(ctx, AV_LOG_ERROR, "cannot set ALSA period size (%s)\n",
ctx               267 libavdevice/alsa-audio-common.c         av_log(ctx, AV_LOG_ERROR, "cannot set parameters (%s)\n",
ctx               278 libavdevice/alsa-audio-common.c             av_log(ctx, AV_LOG_WARNING, "ALSA channel layout unknown or unimplemented for %s %s.\n",
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               107 libavdevice/decklink_common.cpp     struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx;
ctx               115 libavdevice/decklink_common.cpp         res = ctx->dli->GetDisplayModeIterator (&itermode);
ctx               117 libavdevice/decklink_common.cpp         res = ctx->dlo->GetDisplayModeIterator (&itermode);
ctx               130 libavdevice/decklink_common.cpp     ctx->bmd_mode = bmdModeUnknown;
ctx               131 libavdevice/decklink_common.cpp     while ((ctx->bmd_mode == bmdModeUnknown) && itermode->Next(&mode) == S_OK) {
ctx               140 libavdevice/decklink_common.cpp             ctx->bmd_mode   = mode->GetDisplayMode();
ctx               141 libavdevice/decklink_common.cpp             ctx->bmd_width  = bmd_width;
ctx               142 libavdevice/decklink_common.cpp             ctx->bmd_height = bmd_height;
ctx               143 libavdevice/decklink_common.cpp             ctx->bmd_tb_den = bmd_tb_den;
ctx               144 libavdevice/decklink_common.cpp             ctx->bmd_tb_num = bmd_tb_num;
ctx               145 libavdevice/decklink_common.cpp             ctx->bmd_field_dominance = mode->GetFieldDominance();
ctx               148 libavdevice/decklink_common.cpp                 (ctx->bmd_field_dominance==bmdLowerFieldFirst || ctx->bmd_field_dominance==bmdUpperFieldFirst)?"(i)":"");
ctx               157 libavdevice/decklink_common.cpp     if (ctx->bmd_mode == bmdModeUnknown)
ctx               160 libavdevice/decklink_common.cpp         if (ctx->dli->DoesSupportVideoMode(ctx->bmd_mode, bmdFormat8BitYUV,
ctx               165 libavdevice/decklink_common.cpp         if (ctx->dlo->DoesSupportVideoMode(ctx->bmd_mode, bmdFormat8BitYUV,
ctx               203 libavdevice/decklink_common.cpp     struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx;
ctx               210 libavdevice/decklink_common.cpp         res = ctx->dli->GetDisplayModeIterator (&itermode);
ctx               212 libavdevice/decklink_common.cpp         res = ctx->dlo->GetDisplayModeIterator (&itermode);
ctx                25 libavdevice/decklink_common_c.h     void *ctx;
ctx               163 libavdevice/decklink_dec.cpp         decklink_ctx    *ctx;
ctx               173 libavdevice/decklink_dec.cpp     ctx = (struct decklink_ctx *) cctx->ctx;
ctx               214 libavdevice/decklink_dec.cpp     ctx->frameCount++;
ctx               221 libavdevice/decklink_dec.cpp         c = ctx->video_st->codec;
ctx               222 libavdevice/decklink_dec.cpp         if (ctx->frameCount % 25 == 0) {
ctx               223 libavdevice/decklink_dec.cpp             unsigned long long qsize = avpacket_queue_size(&ctx->queue);
ctx               226 libavdevice/decklink_dec.cpp                     ctx->frameCount,
ctx               233 libavdevice/decklink_dec.cpp                                   ctx->video_st->time_base.den);
ctx               252 libavdevice/decklink_dec.cpp                         "- Frames dropped %u\n", ctx->frameCount, ++ctx->dropped);
ctx               258 libavdevice/decklink_dec.cpp                         "- Frames dropped %u\n", ctx->frameCount, ++ctx->dropped);
ctx               263 libavdevice/decklink_dec.cpp         pkt.pts = frameTime / ctx->video_st->time_base.num;
ctx               275 libavdevice/decklink_dec.cpp         pkt.stream_index = ctx->video_st->index;
ctx               281 libavdevice/decklink_dec.cpp         if (avpacket_queue_put(&ctx->queue, &pkt) < 0) {
ctx               282 libavdevice/decklink_dec.cpp             ++ctx->dropped;
ctx               293 libavdevice/decklink_dec.cpp         c = ctx->audio_st->codec;
ctx               295 libavdevice/decklink_dec.cpp         pkt.size = audioFrame->GetSampleFrameCount() * ctx->audio_st->codec->channels * (16 / 8);
ctx               297 libavdevice/decklink_dec.cpp         audioFrame->GetPacketTime(&audio_pts, ctx->audio_st->time_base.den);
ctx               298 libavdevice/decklink_dec.cpp         pkt.pts = audio_pts / ctx->audio_st->time_base.num;
ctx               309 libavdevice/decklink_dec.cpp         pkt.stream_index = ctx->audio_st->index;
ctx               313 libavdevice/decklink_dec.cpp         if (avpacket_queue_put(&ctx->queue, &pkt) < 0) {
ctx               314 libavdevice/decklink_dec.cpp             ++ctx->dropped;
ctx               331 libavdevice/decklink_dec.cpp     struct decklink_ctx *ctx = (struct decklink_ctx *) cctx->ctx;
ctx               333 libavdevice/decklink_dec.cpp     ctx->input_callback = new decklink_input_callback(avctx);
ctx               334 libavdevice/decklink_dec.cpp     ctx->dli->SetCallback(ctx->input_callback);
ctx               335 libavdevice/decklink_dec.cpp     return ctx->dli->StartStreams();
ctx               343 libavdevice/decklink_dec.cpp     struct decklink_ctx *ctx = (struct decklink_ctx *) cctx->ctx;
ctx               345 libavdevice/decklink_dec.cpp     if (ctx->capture_started) {
ctx               346 libavdevice/decklink_dec.cpp         ctx->dli->StopStreams();
ctx               347 libavdevice/decklink_dec.cpp         ctx->dli->DisableVideoInput();
ctx               348 libavdevice/decklink_dec.cpp         ctx->dli->DisableAudioInput();
ctx               351 libavdevice/decklink_dec.cpp     if (ctx->dli)
ctx               352 libavdevice/decklink_dec.cpp         ctx->dli->Release();
ctx               353 libavdevice/decklink_dec.cpp     if (ctx->dl)
ctx               354 libavdevice/decklink_dec.cpp         ctx->dl->Release();
ctx               356 libavdevice/decklink_dec.cpp     avpacket_queue_end(&ctx->queue);
ctx               358 libavdevice/decklink_dec.cpp     av_freep(&cctx->ctx);
ctx               366 libavdevice/decklink_dec.cpp     struct decklink_ctx *ctx;
ctx               376 libavdevice/decklink_dec.cpp     ctx = (struct decklink_ctx *) av_mallocz(sizeof(struct decklink_ctx));
ctx               377 libavdevice/decklink_dec.cpp     if (!ctx)
ctx               379 libavdevice/decklink_dec.cpp     ctx->list_devices = cctx->list_devices;
ctx               380 libavdevice/decklink_dec.cpp     ctx->list_formats = cctx->list_formats;
ctx               381 libavdevice/decklink_dec.cpp     ctx->preroll      = cctx->preroll;
ctx               382 libavdevice/decklink_dec.cpp     cctx->ctx = ctx;
ctx               391 libavdevice/decklink_dec.cpp     if (ctx->list_devices) {
ctx               409 libavdevice/decklink_dec.cpp             ctx->dl = dl;
ctx               416 libavdevice/decklink_dec.cpp     if (!ctx->dl) {
ctx               422 libavdevice/decklink_dec.cpp     if (ctx->dl->QueryInterface(IID_IDeckLinkInput, (void **) &ctx->dli) != S_OK) {
ctx               425 libavdevice/decklink_dec.cpp         ctx->dl->Release();
ctx               430 libavdevice/decklink_dec.cpp     if (ctx->list_formats) {
ctx               432 libavdevice/decklink_dec.cpp         ctx->dli->Release();
ctx               433 libavdevice/decklink_dec.cpp         ctx->dl->Release();
ctx               437 libavdevice/decklink_dec.cpp     if (ctx->dli->GetDisplayModeIterator(&itermode) != S_OK) {
ctx               439 libavdevice/decklink_dec.cpp         ctx->dl->Release();
ctx               463 libavdevice/decklink_dec.cpp     ctx->audio_st=st;
ctx               471 libavdevice/decklink_dec.cpp     st->codec->width       = ctx->bmd_width;
ctx               472 libavdevice/decklink_dec.cpp     st->codec->height      = ctx->bmd_height;
ctx               474 libavdevice/decklink_dec.cpp     st->codec->time_base.den      = ctx->bmd_tb_den;
ctx               475 libavdevice/decklink_dec.cpp     st->codec->time_base.num      = ctx->bmd_tb_num;
ctx               476 libavdevice/decklink_dec.cpp     st->codec->bit_rate    = avpicture_get_size(st->codec->pix_fmt, ctx->bmd_width, ctx->bmd_height) * 1/av_q2d(st->codec->time_base) * 8;
ctx               489 libavdevice/decklink_dec.cpp     ctx->video_st=st;
ctx               491 libavdevice/decklink_dec.cpp     result = ctx->dli->EnableAudioInput(bmdAudioSampleRate48kHz, bmdAudioSampleType16bitInteger, 2);
ctx               498 libavdevice/decklink_dec.cpp     result = ctx->dli->EnableVideoInput(ctx->bmd_mode,
ctx               507 libavdevice/decklink_dec.cpp     avpacket_queue_init (avctx, &ctx->queue);
ctx               518 libavdevice/decklink_dec.cpp     ctx->dli->Release();
ctx               519 libavdevice/decklink_dec.cpp     ctx->dl->Release();
ctx               527 libavdevice/decklink_dec.cpp     struct decklink_ctx *ctx = (struct decklink_ctx *) cctx->ctx;
ctx               528 libavdevice/decklink_dec.cpp     AVFrame *frame = ctx->video_st->codec->coded_frame;
ctx               530 libavdevice/decklink_dec.cpp     avpacket_queue_get(&ctx->queue, pkt, 1);
ctx               531 libavdevice/decklink_dec.cpp     if (frame && (ctx->bmd_field_dominance == bmdUpperFieldFirst || ctx->bmd_field_dominance == bmdLowerFieldFirst)) {
ctx               533 libavdevice/decklink_dec.cpp         if (ctx->bmd_field_dominance == bmdUpperFieldFirst) {
ctx                41 libavdevice/decklink_enc.cpp     decklink_frame(struct decklink_ctx *ctx, AVFrame *avframe, long width,
ctx                43 libavdevice/decklink_enc.cpp                    _ctx(ctx), _avframe(avframe), _width(width),
ctx                76 libavdevice/decklink_enc.cpp         struct decklink_ctx *ctx = frame->_ctx;
ctx                81 libavdevice/decklink_enc.cpp         sem_post(&ctx->semaphore);
ctx                94 libavdevice/decklink_enc.cpp     struct decklink_ctx *ctx = (struct decklink_ctx *) cctx->ctx;
ctx                97 libavdevice/decklink_enc.cpp     if (ctx->video) {
ctx               113 libavdevice/decklink_enc.cpp     if (ctx->dlo->EnableVideoOutput(ctx->bmd_mode,
ctx               120 libavdevice/decklink_enc.cpp     ctx->output_callback = new decklink_output_callback();
ctx               121 libavdevice/decklink_enc.cpp     ctx->dlo->SetScheduledFrameCompletionCallback(ctx->output_callback);
ctx               124 libavdevice/decklink_enc.cpp     ctx->frames_preroll = c->time_base.den * ctx->preroll;
ctx               126 libavdevice/decklink_enc.cpp         ctx->frames_preroll /= 1000;
ctx               129 libavdevice/decklink_enc.cpp     ctx->frames_buffer = ctx->frames_preroll * 2;
ctx               130 libavdevice/decklink_enc.cpp     ctx->frames_buffer = FFMIN(ctx->frames_buffer, 60);
ctx               131 libavdevice/decklink_enc.cpp     sem_init(&ctx->semaphore, 0, ctx->frames_buffer);
ctx               136 libavdevice/decklink_enc.cpp     ctx->video = 1;
ctx               144 libavdevice/decklink_enc.cpp     struct decklink_ctx *ctx = (struct decklink_ctx *) cctx->ctx;
ctx               147 libavdevice/decklink_enc.cpp     if (ctx->audio) {
ctx               161 libavdevice/decklink_enc.cpp     if (ctx->dlo->EnableAudioOutput(bmdAudioSampleRate48kHz,
ctx               168 libavdevice/decklink_enc.cpp     if (ctx->dlo->BeginAudioPreroll() != S_OK) {
ctx               175 libavdevice/decklink_enc.cpp     ctx->channels = c->channels;
ctx               177 libavdevice/decklink_enc.cpp     ctx->audio = 1;
ctx               185 libavdevice/decklink_enc.cpp     struct decklink_ctx *ctx = (struct decklink_ctx *) cctx->ctx;
ctx               187 libavdevice/decklink_enc.cpp     if (ctx->playback_started) {
ctx               189 libavdevice/decklink_enc.cpp         ctx->dlo->StopScheduledPlayback(ctx->last_pts * ctx->bmd_tb_num,
ctx               190 libavdevice/decklink_enc.cpp                                         &actual, ctx->bmd_tb_den);
ctx               191 libavdevice/decklink_enc.cpp         ctx->dlo->DisableVideoOutput();
ctx               192 libavdevice/decklink_enc.cpp         if (ctx->audio)
ctx               193 libavdevice/decklink_enc.cpp             ctx->dlo->DisableAudioOutput();
ctx               196 libavdevice/decklink_enc.cpp     if (ctx->dlo)
ctx               197 libavdevice/decklink_enc.cpp         ctx->dlo->Release();
ctx               198 libavdevice/decklink_enc.cpp     if (ctx->dl)
ctx               199 libavdevice/decklink_enc.cpp         ctx->dl->Release();
ctx               201 libavdevice/decklink_enc.cpp     if (ctx->output_callback)
ctx               202 libavdevice/decklink_enc.cpp         delete ctx->output_callback;
ctx               204 libavdevice/decklink_enc.cpp     sem_destroy(&ctx->semaphore);
ctx               206 libavdevice/decklink_enc.cpp     av_freep(&cctx->ctx);
ctx               214 libavdevice/decklink_enc.cpp     struct decklink_ctx *ctx = (struct decklink_ctx *) cctx->ctx;
ctx               228 libavdevice/decklink_enc.cpp     tmp->width  = ctx->bmd_width;
ctx               229 libavdevice/decklink_enc.cpp     tmp->height = ctx->bmd_height;
ctx               246 libavdevice/decklink_enc.cpp     frame = new decklink_frame(ctx, avframe, ctx->bmd_width, ctx->bmd_height,
ctx               254 libavdevice/decklink_enc.cpp     sem_wait(&ctx->semaphore);
ctx               257 libavdevice/decklink_enc.cpp     hr = ctx->dlo->ScheduleVideoFrame((struct IDeckLinkVideoFrame *) frame,
ctx               258 libavdevice/decklink_enc.cpp                                       pkt->pts * ctx->bmd_tb_num,
ctx               259 libavdevice/decklink_enc.cpp                                       ctx->bmd_tb_num, ctx->bmd_tb_den);
ctx               267 libavdevice/decklink_enc.cpp     ctx->dlo->GetBufferedVideoFrameCount(&buffered);
ctx               274 libavdevice/decklink_enc.cpp     if (!ctx->playback_started && pkt->pts > ctx->frames_preroll) {
ctx               276 libavdevice/decklink_enc.cpp         if (ctx->audio && ctx->dlo->EndAudioPreroll() != S_OK) {
ctx               281 libavdevice/decklink_enc.cpp         if (ctx->dlo->StartScheduledPlayback(0, ctx->bmd_tb_den, 1.0) != S_OK) {
ctx               285 libavdevice/decklink_enc.cpp         ctx->playback_started = 1;
ctx               294 libavdevice/decklink_enc.cpp     struct decklink_ctx *ctx = (struct decklink_ctx *) cctx->ctx;
ctx               295 libavdevice/decklink_enc.cpp     int sample_count = pkt->size / (ctx->channels << 1);
ctx               298 libavdevice/decklink_enc.cpp     ctx->dlo->GetBufferedAudioSampleFrameCount(&buffered);
ctx               303 libavdevice/decklink_enc.cpp     if (ctx->dlo->ScheduleAudioSamples(pkt->data, sample_count, pkt->pts,
ctx               317 libavdevice/decklink_enc.cpp     struct decklink_ctx *ctx;
ctx               323 libavdevice/decklink_enc.cpp     ctx = (struct decklink_ctx *) av_mallocz(sizeof(struct decklink_ctx));
ctx               324 libavdevice/decklink_enc.cpp     if (!ctx)
ctx               326 libavdevice/decklink_enc.cpp     ctx->list_devices = cctx->list_devices;
ctx               327 libavdevice/decklink_enc.cpp     ctx->list_formats = cctx->list_formats;
ctx               328 libavdevice/decklink_enc.cpp     ctx->preroll      = cctx->preroll;
ctx               329 libavdevice/decklink_enc.cpp     cctx->ctx = ctx;
ctx               338 libavdevice/decklink_enc.cpp     if (ctx->list_devices) {
ctx               349 libavdevice/decklink_enc.cpp             ctx->dl = dl;
ctx               356 libavdevice/decklink_enc.cpp     if (!ctx->dl) {
ctx               362 libavdevice/decklink_enc.cpp     if (ctx->dl->QueryInterface(IID_IDeckLinkOutput, (void **) &ctx->dlo) != S_OK) {
ctx               365 libavdevice/decklink_enc.cpp         ctx->dl->Release();
ctx               370 libavdevice/decklink_enc.cpp     if (ctx->list_formats) {
ctx               372 libavdevice/decklink_enc.cpp         ctx->dlo->Release();
ctx               373 libavdevice/decklink_enc.cpp         ctx->dl->Release();
ctx               377 libavdevice/decklink_enc.cpp     if (ctx->dlo->GetDisplayModeIterator(&itermode) != S_OK) {
ctx               379 libavdevice/decklink_enc.cpp         ctx->dl->Release();
ctx               404 libavdevice/decklink_enc.cpp     ctx->dlo->Release();
ctx               405 libavdevice/decklink_enc.cpp     ctx->dl->Release();
ctx               413 libavdevice/decklink_enc.cpp     struct decklink_ctx *ctx = (struct decklink_ctx *) cctx->ctx;
ctx               416 libavdevice/decklink_enc.cpp     ctx->last_pts = FFMAX(ctx->last_pts, pkt->pts);
ctx                58 libavdevice/dshow.c     struct dshow_ctx *ctx = s->priv_data;
ctx                61 libavdevice/dshow.c     if (ctx->control) {
ctx                62 libavdevice/dshow.c         IMediaControl_Stop(ctx->control);
ctx                63 libavdevice/dshow.c         IMediaControl_Release(ctx->control);
ctx                66 libavdevice/dshow.c     if (ctx->media_event)
ctx                67 libavdevice/dshow.c         IMediaEvent_Release(ctx->media_event);
ctx                69 libavdevice/dshow.c     if (ctx->graph) {
ctx                72 libavdevice/dshow.c         r = IGraphBuilder_EnumFilters(ctx->graph, &fenum);
ctx                77 libavdevice/dshow.c                 if (IGraphBuilder_RemoveFilter(ctx->graph, f) == S_OK)
ctx                84 libavdevice/dshow.c         IGraphBuilder_Release(ctx->graph);
ctx                87 libavdevice/dshow.c     if (ctx->capture_pin[VideoDevice])
ctx                88 libavdevice/dshow.c         libAVPin_Release(ctx->capture_pin[VideoDevice]);
ctx                89 libavdevice/dshow.c     if (ctx->capture_pin[AudioDevice])
ctx                90 libavdevice/dshow.c         libAVPin_Release(ctx->capture_pin[AudioDevice]);
ctx                91 libavdevice/dshow.c     if (ctx->capture_filter[VideoDevice])
ctx                92 libavdevice/dshow.c         libAVFilter_Release(ctx->capture_filter[VideoDevice]);
ctx                93 libavdevice/dshow.c     if (ctx->capture_filter[AudioDevice])
ctx                94 libavdevice/dshow.c         libAVFilter_Release(ctx->capture_filter[AudioDevice]);
ctx                96 libavdevice/dshow.c     if (ctx->device_pin[VideoDevice])
ctx                97 libavdevice/dshow.c         IPin_Release(ctx->device_pin[VideoDevice]);
ctx                98 libavdevice/dshow.c     if (ctx->device_pin[AudioDevice])
ctx                99 libavdevice/dshow.c         IPin_Release(ctx->device_pin[AudioDevice]);
ctx               100 libavdevice/dshow.c     if (ctx->device_filter[VideoDevice])
ctx               101 libavdevice/dshow.c         IBaseFilter_Release(ctx->device_filter[VideoDevice]);
ctx               102 libavdevice/dshow.c     if (ctx->device_filter[AudioDevice])
ctx               103 libavdevice/dshow.c         IBaseFilter_Release(ctx->device_filter[AudioDevice]);
ctx               105 libavdevice/dshow.c     if (ctx->device_name[0])
ctx               106 libavdevice/dshow.c         av_freep(&ctx->device_name[0]);
ctx               107 libavdevice/dshow.c     if (ctx->device_name[1])
ctx               108 libavdevice/dshow.c         av_freep(&ctx->device_name[1]);
ctx               110 libavdevice/dshow.c     if(ctx->mutex)
ctx               111 libavdevice/dshow.c         CloseHandle(ctx->mutex);
ctx               112 libavdevice/dshow.c     if(ctx->event[0])
ctx               113 libavdevice/dshow.c         CloseHandle(ctx->event[0]);
ctx               114 libavdevice/dshow.c     if(ctx->event[1])
ctx               115 libavdevice/dshow.c         CloseHandle(ctx->event[1]);
ctx               117 libavdevice/dshow.c     pktl = ctx->pktl;
ctx               142 libavdevice/dshow.c     struct dshow_ctx *ctx = s->priv_data;
ctx               145 libavdevice/dshow.c     unsigned int buffer_fullness = (ctx->curbufsize[index]*100)/s->max_picture_buffer;
ctx               148 libavdevice/dshow.c     if(dropscore[++ctx->video_frame_num%ndropscores] <= buffer_fullness) {
ctx               151 libavdevice/dshow.c               ctx->device_name[devtype], devtypename, buffer_fullness, s->max_picture_buffer);
ctx               162 libavdevice/dshow.c     struct dshow_ctx *ctx = s->priv_data;
ctx               167 libavdevice/dshow.c     WaitForSingleObject(ctx->mutex, INFINITE);
ctx               185 libavdevice/dshow.c     for(ppktl = &ctx->pktl ; *ppktl ; ppktl = &(*ppktl)->next);
ctx               187 libavdevice/dshow.c     ctx->curbufsize[index] += buf_size;
ctx               189 libavdevice/dshow.c     SetEvent(ctx->event[1]);
ctx               190 libavdevice/dshow.c     ReleaseMutex(ctx->mutex);
ctx               194 libavdevice/dshow.c     ReleaseMutex(ctx->mutex);
ctx               208 libavdevice/dshow.c     struct dshow_ctx *ctx = avctx->priv_data;
ctx               212 libavdevice/dshow.c     const char *device_name = ctx->device_name[devtype];
ctx               213 libavdevice/dshow.c     int skip = (devtype == VideoDevice) ? ctx->video_device_number
ctx               214 libavdevice/dshow.c                                         : ctx->audio_device_number;
ctx               319 libavdevice/dshow.c     struct dshow_ctx *ctx = avctx->priv_data;
ctx               382 libavdevice/dshow.c             if (ctx->video_codec_id != AV_CODEC_ID_RAWVIDEO) {
ctx               383 libavdevice/dshow.c                 if (ctx->video_codec_id != av_codec_get_id(tags, bih->biCompression))
ctx               386 libavdevice/dshow.c             if (ctx->pixel_format != AV_PIX_FMT_NONE &&
ctx               387 libavdevice/dshow.c                 ctx->pixel_format != dshow_pixfmt(bih->biCompression, bih->biBitCount)) {
ctx               390 libavdevice/dshow.c             if (ctx->framerate) {
ctx               391 libavdevice/dshow.c                 int64_t framerate = ((int64_t) ctx->requested_framerate.den*10000000)
ctx               392 libavdevice/dshow.c                                             /  ctx->requested_framerate.num;
ctx               398 libavdevice/dshow.c             if (ctx->requested_width && ctx->requested_height) {
ctx               399 libavdevice/dshow.c                 if (ctx->requested_width  > vcaps->MaxOutputSize.cx ||
ctx               400 libavdevice/dshow.c                     ctx->requested_width  < vcaps->MinOutputSize.cx ||
ctx               401 libavdevice/dshow.c                     ctx->requested_height > vcaps->MaxOutputSize.cy ||
ctx               402 libavdevice/dshow.c                     ctx->requested_height < vcaps->MinOutputSize.cy)
ctx               404 libavdevice/dshow.c                 bih->biWidth  = ctx->requested_width;
ctx               405 libavdevice/dshow.c                 bih->biHeight = ctx->requested_height;
ctx               424 libavdevice/dshow.c             if (ctx->sample_rate) {
ctx               425 libavdevice/dshow.c                 if (ctx->sample_rate > acaps->MaximumSampleFrequency ||
ctx               426 libavdevice/dshow.c                     ctx->sample_rate < acaps->MinimumSampleFrequency)
ctx               428 libavdevice/dshow.c                 fx->nSamplesPerSec = ctx->sample_rate;
ctx               430 libavdevice/dshow.c             if (ctx->sample_size) {
ctx               431 libavdevice/dshow.c                 if (ctx->sample_size > acaps->MaximumBitsPerSample ||
ctx               432 libavdevice/dshow.c                     ctx->sample_size < acaps->MinimumBitsPerSample)
ctx               434 libavdevice/dshow.c                 fx->wBitsPerSample = ctx->sample_size;
ctx               436 libavdevice/dshow.c             if (ctx->channels) {
ctx               437 libavdevice/dshow.c                 if (ctx->channels > acaps->MaximumChannels ||
ctx               438 libavdevice/dshow.c                     ctx->channels < acaps->MinimumChannels)
ctx               440 libavdevice/dshow.c                 fx->nChannels = ctx->channels;
ctx               465 libavdevice/dshow.c     struct dshow_ctx *ctx = avctx->priv_data;
ctx               480 libavdevice/dshow.c                    * ctx->audio_buffer_size / 1000;
ctx               560 libavdevice/dshow.c     struct dshow_ctx *ctx = avctx->priv_data;
ctx               570 libavdevice/dshow.c     int set_format = (devtype == VideoDevice && (ctx->framerate ||
ctx               571 libavdevice/dshow.c                                                 (ctx->requested_width && ctx->requested_height) ||
ctx               572 libavdevice/dshow.c                                                  ctx->pixel_format != AV_PIX_FMT_NONE ||
ctx               573 libavdevice/dshow.c                                                  ctx->video_codec_id != AV_CODEC_ID_RAWVIDEO))
ctx               574 libavdevice/dshow.c                   || (devtype == AudioDevice && (ctx->channels || ctx->sample_rate));
ctx               576 libavdevice/dshow.c     int should_show_properties = (devtype == VideoDevice) ? ctx->show_video_device_dialog : ctx->show_audio_device_dialog;
ctx               602 libavdevice/dshow.c         char *desired_pin_name = devtype == VideoDevice ? ctx->video_pin_name : ctx->audio_pin_name;
ctx               645 libavdevice/dshow.c         if (devtype == AudioDevice && ctx->audio_buffer_size) {
ctx               647 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               705 libavdevice/dshow.c     struct dshow_ctx *ctx = avctx->priv_data;
ctx               711 libavdevice/dshow.c     ctx->device_filter[devtype] = device_filter;
ctx               722 libavdevice/dshow.c     struct dshow_ctx *ctx = avctx->priv_data;
ctx               724 libavdevice/dshow.c     IGraphBuilder *graph = ctx->graph;
ctx               739 libavdevice/dshow.c     ctx->device_filter [devtype] = device_filter;
ctx               752 libavdevice/dshow.c     ctx->device_pin[devtype] = device_pin;
ctx               759 libavdevice/dshow.c     ctx->capture_filter[devtype] = capture_filter;
ctx               770 libavdevice/dshow.c     ctx->capture_pin[devtype] = capture_pin;
ctx               832 libavdevice/dshow.c     struct dshow_ctx *ctx = avctx->priv_data;
ctx               845 libavdevice/dshow.c     ctx->capture_filter[devtype]->stream_index = st->index;
ctx               847 libavdevice/dshow.c     libAVPin_ConnectionMediaType(ctx->capture_pin[devtype], &type);
ctx               926 libavdevice/dshow.c     struct dshow_ctx *ctx = avctx->priv_data;
ctx               927 libavdevice/dshow.c     char **device_name = ctx->device_name;
ctx               963 libavdevice/dshow.c     struct dshow_ctx *ctx = avctx->priv_data;
ctx               975 libavdevice/dshow.c     if (!ctx->list_devices && !parse_device_name(avctx)) {
ctx               980 libavdevice/dshow.c     ctx->video_codec_id = avctx->video_codec_id ? avctx->video_codec_id
ctx               982 libavdevice/dshow.c     if (ctx->pixel_format != AV_PIX_FMT_NONE) {
ctx               983 libavdevice/dshow.c         if (ctx->video_codec_id != AV_CODEC_ID_RAWVIDEO) {
ctx               990 libavdevice/dshow.c     if (ctx->framerate) {
ctx               991 libavdevice/dshow.c         r = av_parse_video_rate(&ctx->requested_framerate, ctx->framerate);
ctx               993 libavdevice/dshow.c             av_log(avctx, AV_LOG_ERROR, "Could not parse framerate '%s'.\n", ctx->framerate);
ctx              1004 libavdevice/dshow.c     ctx->graph = graph;
ctx              1013 libavdevice/dshow.c     if (ctx->list_devices) {
ctx              1021 libavdevice/dshow.c     if (ctx->list_options) {
ctx              1022 libavdevice/dshow.c         if (ctx->device_name[VideoDevice])
ctx              1027 libavdevice/dshow.c         if (ctx->device_name[AudioDevice]) {
ctx              1037 libavdevice/dshow.c     if (ctx->device_name[VideoDevice]) {
ctx              1044 libavdevice/dshow.c     if (ctx->device_name[AudioDevice]) {
ctx              1047 libavdevice/dshow.c             av_log(avctx, AV_LOG_INFO, "Searching for audio device within video devices for %s\n", ctx->device_name[AudioDevice]);
ctx              1056 libavdevice/dshow.c     if (ctx->list_options) {
ctx              1061 libavdevice/dshow.c     ctx->curbufsize[0] = 0;
ctx              1062 libavdevice/dshow.c     ctx->curbufsize[1] = 0;
ctx              1063 libavdevice/dshow.c     ctx->mutex = CreateMutex(NULL, 0, NULL);
ctx              1064 libavdevice/dshow.c     if (!ctx->mutex) {
ctx              1068 libavdevice/dshow.c     ctx->event[1] = CreateEvent(NULL, 1, 0, NULL);
ctx              1069 libavdevice/dshow.c     if (!ctx->event[1]) {
ctx              1079 libavdevice/dshow.c     ctx->control = control;
ctx              1086 libavdevice/dshow.c     ctx->media_event = media_event;
ctx              1094 libavdevice/dshow.c     r = DuplicateHandle(proc, media_event_handle, proc, &ctx->event[0],
ctx              1146 libavdevice/dshow.c     struct dshow_ctx *ctx = s->priv_data;
ctx              1149 libavdevice/dshow.c     while (!ctx->eof && !pktl) {
ctx              1150 libavdevice/dshow.c         WaitForSingleObject(ctx->mutex, INFINITE);
ctx              1151 libavdevice/dshow.c         pktl = ctx->pktl;
ctx              1154 libavdevice/dshow.c             ctx->pktl = ctx->pktl->next;
ctx              1156 libavdevice/dshow.c             ctx->curbufsize[pkt->stream_index] -= pkt->size;
ctx              1158 libavdevice/dshow.c         ResetEvent(ctx->event[1]);
ctx              1159 libavdevice/dshow.c         ReleaseMutex(ctx->mutex);
ctx              1161 libavdevice/dshow.c             if (dshow_check_event_queue(ctx->media_event) < 0) {
ctx              1162 libavdevice/dshow.c                 ctx->eof = 1;
ctx              1166 libavdevice/dshow.c                 WaitForMultipleObjects(2, ctx->event, 0, INFINITE);
ctx              1171 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                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->filename, CDDA_MESSAGE_LOGIT, &err);
ctx                65 libavdevice/libcdio.c         av_log(ctx, AV_LOG_ERROR, "Could not open drive %s.\n", ctx->filename);
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->filename);
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->filename[0] ? ctx->filename : 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               209 libavdevice/openal-dec.c         av_log(ctx, AV_LOG_ERROR, "Error: %s\n", error_msg);
ctx               213 libavdevice/openal-dec.c static int read_close(AVFormatContext* ctx)
ctx               215 libavdevice/openal-dec.c     al_data *ad = ctx->priv_data;
ctx               152 libavdevice/opengl_enc.c #define OPENGL_ERROR_CHECK(ctx) \
ctx               156 libavdevice/opengl_enc.c         av_log(ctx, AV_LOG_ERROR, "OpenGL error occurred in '%s', line %d: %d\n", __FUNCTION__, __LINE__, err_code); \
ctx                45 libavdevice/pulse_audio_enc.c     pa_context *ctx;
ctx                53 libavdevice/pulse_audio_enc.c static void pulse_audio_sink_device_cb(pa_context *ctx, const pa_sink_info *dev,
ctx                58 libavdevice/pulse_audio_enc.c     if (s->ctx != ctx)
ctx                77 libavdevice/pulse_audio_enc.c     if (!(op = pa_context_get_sink_info_by_name(s->ctx, s->device,
ctx                88 libavdevice/pulse_audio_enc.c static void pulse_audio_sink_input_cb(pa_context *ctx, const pa_sink_input_info *i,
ctx                94 libavdevice/pulse_audio_enc.c     if (s->ctx != ctx)
ctx               122 libavdevice/pulse_audio_enc.c     pa_context *ctx = NULL;
ctx               125 libavdevice/pulse_audio_enc.c     if ((ret = ff_pulse_audio_connect_context(&ml, &ctx, s->server, "Update sink input information")) < 0)
ctx               128 libavdevice/pulse_audio_enc.c     if (!(op = pa_context_get_sink_input_info(ctx, pa_stream_get_index(s->stream),
ctx               143 libavdevice/pulse_audio_enc.c     ff_pulse_audio_disconnect_context(&ml, &ctx);
ctx               149 libavdevice/pulse_audio_enc.c static void pulse_event(pa_context *ctx, pa_subscription_event_type_t t,
ctx               155 libavdevice/pulse_audio_enc.c     if (s->ctx != ctx)
ctx               219 libavdevice/pulse_audio_enc.c static void pulse_context_state(pa_context *ctx, void *userdata)
ctx               223 libavdevice/pulse_audio_enc.c     if (s->ctx != ctx)
ctx               226 libavdevice/pulse_audio_enc.c     switch (pa_context_get_state(ctx)) {
ctx               240 libavdevice/pulse_audio_enc.c     while ((state = pa_context_get_state(s->ctx)) != PA_CONTEXT_READY) {
ctx               292 libavdevice/pulse_audio_enc.c static void pulse_context_result(pa_context *ctx, int success, void *userdata)
ctx               296 libavdevice/pulse_audio_enc.c     if (s->ctx != ctx)
ctx               324 libavdevice/pulse_audio_enc.c     op = pa_context_set_sink_input_mute(s->ctx, pa_stream_get_index(s->stream),
ctx               340 libavdevice/pulse_audio_enc.c     op = pa_context_set_sink_input_volume(s->ctx, pa_stream_get_index(s->stream),
ctx               350 libavdevice/pulse_audio_enc.c     op = pa_context_subscribe(s->ctx, PA_SUBSCRIPTION_MASK_SINK_INPUT, pulse_context_result, s);
ctx               424 libavdevice/pulse_audio_enc.c         if (s->ctx) {
ctx               425 libavdevice/pulse_audio_enc.c             pa_context_disconnect(s->ctx);
ctx               426 libavdevice/pulse_audio_enc.c             pa_context_set_state_callback(s->ctx, NULL, NULL);
ctx               427 libavdevice/pulse_audio_enc.c             pa_context_set_subscribe_callback(s->ctx, NULL, NULL);
ctx               428 libavdevice/pulse_audio_enc.c             pa_context_unref(s->ctx);
ctx               429 libavdevice/pulse_audio_enc.c             s->ctx = NULL;
ctx               537 libavdevice/pulse_audio_enc.c     s->ctx = pa_context_new(mainloop_api, s->name);
ctx               538 libavdevice/pulse_audio_enc.c     if (!s->ctx) {
ctx               543 libavdevice/pulse_audio_enc.c     pa_context_set_state_callback(s->ctx, pulse_context_state, s);
ctx               544 libavdevice/pulse_audio_enc.c     pa_context_set_subscribe_callback(s->ctx, pulse_event, h);
ctx               546 libavdevice/pulse_audio_enc.c     if ((ret = pa_context_connect(s->ctx, s->server, 0, NULL)) < 0) {
ctx               557 libavdevice/pulse_audio_enc.c     s->stream = pa_stream_new(s->ctx, stream_name, &sample_spec,
ctx               107 libavdevice/v4l2.c static int device_open(AVFormatContext *ctx)
ctx               109 libavdevice/v4l2.c     struct video_data *s = ctx->priv_data;
ctx               129 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "libavdevice is not build with libv4l2 support.\n");
ctx               144 libavdevice/v4l2.c     if (ctx->flags & AVFMT_FLAG_NONBLOCK) {
ctx               148 libavdevice/v4l2.c     fd = v4l2_open(ctx->filename, flags, 0);
ctx               151 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "Cannot open video device %s: %s\n",
ctx               152 libavdevice/v4l2.c                ctx->filename, av_err2str(err));
ctx               158 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_QUERYCAP): %s\n",
ctx               163 libavdevice/v4l2.c     av_log(ctx, AV_LOG_VERBOSE, "fd:%d capabilities:%x\n",
ctx               167 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "Not a video capture device.\n");
ctx               173 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR,
ctx               186 libavdevice/v4l2.c static int device_init(AVFormatContext *ctx, int *width, int *height,
ctx               189 libavdevice/v4l2.c     struct video_data *s = ctx->priv_data;
ctx               204 libavdevice/v4l2.c         av_log(ctx, AV_LOG_INFO,
ctx               212 libavdevice/v4l2.c         av_log(ctx, AV_LOG_DEBUG,
ctx               220 libavdevice/v4l2.c         av_log(ctx, AV_LOG_DEBUG,
ctx               243 libavdevice/v4l2.c static void list_framesizes(AVFormatContext *ctx, uint32_t pixelformat)
ctx               245 libavdevice/v4l2.c     const struct video_data *s = ctx->priv_data;
ctx               251 libavdevice/v4l2.c             av_log(ctx, AV_LOG_INFO, " %ux%u",
ctx               256 libavdevice/v4l2.c             av_log(ctx, AV_LOG_INFO, " {%u-%u, %u}x{%u-%u, %u}",
ctx               269 libavdevice/v4l2.c static void list_formats(AVFormatContext *ctx, int type)
ctx               271 libavdevice/v4l2.c     const struct video_data *s = ctx->priv_data;
ctx               283 libavdevice/v4l2.c             av_log(ctx, AV_LOG_INFO, "Raw       : %9s : %20s :",
ctx               289 libavdevice/v4l2.c             av_log(ctx, AV_LOG_INFO, "Compressedll      : %9s : %20s :",
ctx               298 libavdevice/v4l2.c             av_log(ctx, AV_LOG_INFO, " Emulated :");
ctx               301 libavdevice/v4l2.c         list_framesizes(ctx, vfd.pixelformat);
ctx               303 libavdevice/v4l2.c         av_log(ctx, AV_LOG_INFO, "\n");
ctx               307 libavdevice/v4l2.c static void list_standards(AVFormatContext *ctx)
ctx               310 libavdevice/v4l2.c     struct video_data *s = ctx->priv_data;
ctx               322 libavdevice/v4l2.c                 av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_ENUMSTD): %s\n", av_err2str(ret));
ctx               326 libavdevice/v4l2.c         av_log(ctx, AV_LOG_INFO, "%2d, %16"PRIx64", %s\n",
ctx               331 libavdevice/v4l2.c static int mmap_init(AVFormatContext *ctx)
ctx               334 libavdevice/v4l2.c     struct video_data *s = ctx->priv_data;
ctx               343 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_REQBUFS): %s\n", av_err2str(res));
ctx               348 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "Insufficient buffer memory\n");
ctx               354 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "Cannot allocate buffer pointers\n");
ctx               359 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "Cannot allocate buffer sizes\n");
ctx               372 libavdevice/v4l2.c             av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_QUERYBUF): %s\n", av_err2str(res));
ctx               378 libavdevice/v4l2.c             av_log(ctx, AV_LOG_ERROR,
ctx               389 libavdevice/v4l2.c             av_log(ctx, AV_LOG_ERROR, "mmap: %s\n", av_err2str(res));
ctx               439 libavdevice/v4l2.c static int init_convert_timestamp(AVFormatContext *ctx, int64_t ts)
ctx               441 libavdevice/v4l2.c     struct video_data *s = ctx->priv_data;
ctx               447 libavdevice/v4l2.c         av_log(ctx, AV_LOG_INFO, "Detected absolute timestamps\n");
ctx               452 libavdevice/v4l2.c     if (ctx->streams[0]->avg_frame_rate.num) {
ctx               457 libavdevice/v4l2.c             int64_t period = av_rescale_q(1, tb, ctx->streams[0]->avg_frame_rate);
ctx               458 libavdevice/v4l2.c             av_log(ctx, AV_LOG_INFO, "Detected monotonic timestamps, converting\n");
ctx               468 libavdevice/v4l2.c     av_log(ctx, AV_LOG_ERROR, "Unknown timestamps\n");
ctx               472 libavdevice/v4l2.c static int convert_timestamp(AVFormatContext *ctx, int64_t *ts)
ctx               474 libavdevice/v4l2.c     struct video_data *s = ctx->priv_data;
ctx               477 libavdevice/v4l2.c         int r = init_convert_timestamp(ctx, *ts);
ctx               493 libavdevice/v4l2.c static int mmap_read_frame(AVFormatContext *ctx, AVPacket *pkt)
ctx               495 libavdevice/v4l2.c     struct video_data *s = ctx->priv_data;
ctx               510 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_DQBUF): %s\n",
ctx               516 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "Invalid buffer index received.\n");
ctx               526 libavdevice/v4l2.c     if (ctx->video_codec_id == AV_CODEC_ID_CPIA)
ctx               530 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR,
ctx               542 libavdevice/v4l2.c             av_log(ctx, AV_LOG_ERROR, "Error allocating a packet.\n");
ctx               569 libavdevice/v4l2.c             av_log(ctx, AV_LOG_ERROR, "Failed to allocate a buffer descriptor\n");
ctx               580 libavdevice/v4l2.c             av_log(ctx, AV_LOG_ERROR, "Failed to create a buffer\n");
ctx               587 libavdevice/v4l2.c     convert_timestamp(ctx, &pkt->pts);
ctx               592 libavdevice/v4l2.c static int mmap_start(AVFormatContext *ctx)
ctx               594 libavdevice/v4l2.c     struct video_data *s = ctx->priv_data;
ctx               607 libavdevice/v4l2.c             av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_QBUF): %s\n",
ctx               617 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_STREAMON): %s\n",
ctx               642 libavdevice/v4l2.c static int v4l2_set_parameters(AVFormatContext *ctx)
ctx               644 libavdevice/v4l2.c     struct video_data *s = ctx->priv_data;
ctx               653 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "Could not parse framerate '%s'.\n",
ctx               661 libavdevice/v4l2.c             av_log(ctx, AV_LOG_DEBUG, "Setting standard: %s\n", s->standard);
ctx               673 libavdevice/v4l2.c                 av_log(ctx, AV_LOG_ERROR, "Unknown or unsupported standard '%s'\n", s->standard);
ctx               679 libavdevice/v4l2.c                 av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_S_STD): %s\n", av_err2str(ret));
ctx               683 libavdevice/v4l2.c             av_log(ctx, AV_LOG_WARNING,
ctx               703 libavdevice/v4l2.c                 av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_ENUMSTD): %s\n", av_err2str(ret));
ctx               707 libavdevice/v4l2.c                 av_log(ctx, AV_LOG_DEBUG,
ctx               720 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_G_PARM): %s\n", av_err2str(ret));
ctx               728 libavdevice/v4l2.c             av_log(ctx, AV_LOG_DEBUG, "Setting time per frame to %d/%d\n",
ctx               735 libavdevice/v4l2.c                 av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_S_PARM): %s\n",
ctx               742 libavdevice/v4l2.c                 av_log(ctx, AV_LOG_INFO,
ctx               749 libavdevice/v4l2.c             av_log(ctx, AV_LOG_WARNING,
ctx               754 libavdevice/v4l2.c         ctx->streams[0]->avg_frame_rate.num = tpf->denominator;
ctx               755 libavdevice/v4l2.c         ctx->streams[0]->avg_frame_rate.den = tpf->numerator;
ctx               756 libavdevice/v4l2.c         ctx->streams[0]->r_frame_rate = ctx->streams[0]->avg_frame_rate;
ctx               758 libavdevice/v4l2.c         av_log(ctx, AV_LOG_WARNING, "Time per frame unknown\n");
ctx               763 libavdevice/v4l2.c static int device_try_init(AVFormatContext *ctx,
ctx               772 libavdevice/v4l2.c     *desired_format = ff_fmt_ff2v4l(pix_fmt, ctx->video_codec_id);
ctx               775 libavdevice/v4l2.c         ret = device_init(ctx, width, height, *desired_format);
ctx               785 libavdevice/v4l2.c             if (ctx->video_codec_id == AV_CODEC_ID_NONE ||
ctx               786 libavdevice/v4l2.c                 ff_fmt_conversion_table[i].codec_id == ctx->video_codec_id) {
ctx               787 libavdevice/v4l2.c                 av_log(ctx, AV_LOG_DEBUG, "Trying to set codec:%s pix_fmt:%s\n",
ctx               792 libavdevice/v4l2.c                 ret = device_init(ctx, width, height, *desired_format);
ctx               802 libavdevice/v4l2.c             av_log(ctx, AV_LOG_ERROR, "Cannot find a proper format for "
ctx               804 libavdevice/v4l2.c                    avcodec_get_name(ctx->video_codec_id), ctx->video_codec_id,
ctx               822 libavdevice/v4l2.c static int v4l2_read_header(AVFormatContext *ctx)
ctx               824 libavdevice/v4l2.c     struct video_data *s = ctx->priv_data;
ctx               832 libavdevice/v4l2.c     st = avformat_new_stream(ctx, NULL);
ctx               843 libavdevice/v4l2.c     s->fd = device_open(ctx);
ctx               849 libavdevice/v4l2.c         av_log(ctx, AV_LOG_DEBUG, "Selecting input_channel: %d\n", s->channel);
ctx               852 libavdevice/v4l2.c             av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_S_INPUT): %s\n", av_err2str(res));
ctx               859 libavdevice/v4l2.c             av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_G_INPUT): %s\n", av_err2str(res));
ctx               868 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_ENUMINPUT): %s\n", av_err2str(res));
ctx               872 libavdevice/v4l2.c     av_log(ctx, AV_LOG_DEBUG, "Current input_channel: %d, input_name: %s, input_std: %"PRIx64"\n",
ctx               876 libavdevice/v4l2.c         list_formats(ctx, s->list_format);
ctx               882 libavdevice/v4l2.c         list_standards(ctx);
ctx               893 libavdevice/v4l2.c             ctx->video_codec_id = codec->id;
ctx               898 libavdevice/v4l2.c             av_log(ctx, AV_LOG_ERROR, "No such input format: %s.\n",
ctx               909 libavdevice/v4l2.c         av_log(ctx, AV_LOG_VERBOSE,
ctx               913 libavdevice/v4l2.c             av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_G_FMT): %s\n",
ctx               920 libavdevice/v4l2.c         av_log(ctx, AV_LOG_VERBOSE,
ctx               924 libavdevice/v4l2.c     res = device_try_init(ctx, pix_fmt, &s->width, &s->height, &desired_format, &codec_id);
ctx               932 libavdevice/v4l2.c     if (codec_id != AV_CODEC_ID_NONE && ctx->video_codec_id == AV_CODEC_ID_NONE)
ctx               933 libavdevice/v4l2.c         ctx->video_codec_id = codec_id;
ctx               935 libavdevice/v4l2.c     if ((res = av_image_check_size(s->width, s->height, 0, ctx)) < 0)
ctx               940 libavdevice/v4l2.c     if ((res = v4l2_set_parameters(ctx)) < 0)
ctx               947 libavdevice/v4l2.c     if ((res = mmap_init(ctx)) ||
ctx               948 libavdevice/v4l2.c         (res = mmap_start(ctx)) < 0)
ctx               977 libavdevice/v4l2.c static int v4l2_read_packet(AVFormatContext *ctx, AVPacket *pkt)
ctx               979 libavdevice/v4l2.c     struct video_data *s = ctx->priv_data;
ctx               980 libavdevice/v4l2.c     AVFrame *frame = ctx->streams[0]->codec->coded_frame;
ctx               984 libavdevice/v4l2.c     if ((res = mmap_read_frame(ctx, pkt)) < 0) {
ctx               996 libavdevice/v4l2.c static int v4l2_read_close(AVFormatContext *ctx)
ctx               998 libavdevice/v4l2.c     struct video_data *s = ctx->priv_data;
ctx              1001 libavdevice/v4l2.c         av_log(ctx, AV_LOG_WARNING, "Some buffers are still owned by the caller on "
ctx              1018 libavdevice/v4l2.c static int v4l2_get_device_list(AVFormatContext *ctx, AVDeviceInfoList *device_list)
ctx              1020 libavdevice/v4l2.c     struct video_data *s = ctx->priv_data;
ctx              1033 libavdevice/v4l2.c         av_log(ctx, AV_LOG_ERROR, "Couldn't open the directory: %s\n", av_err2str(ret));
ctx              1040 libavdevice/v4l2.c         snprintf(ctx->filename, sizeof(ctx->filename), "/dev/%s", entry->d_name);
ctx              1041 libavdevice/v4l2.c         if ((s->fd = device_open(ctx)) < 0)
ctx              1046 libavdevice/v4l2.c             av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_QUERYCAP): %s\n", av_err2str(ret));
ctx              1055 libavdevice/v4l2.c         device->device_name = av_strdup(ctx->filename);
ctx               156 libavdevice/vfwcap.c     struct vfw_ctx *ctx = s->priv_data;
ctx               159 libavdevice/vfwcap.c     unsigned int buffer_fullness = (ctx->curbufsize*100)/s->max_picture_buffer;
ctx               161 libavdevice/vfwcap.c     if(dropscore[++ctx->frame_num%ndropscores] <= buffer_fullness) {
ctx               173 libavdevice/vfwcap.c     struct vfw_ctx *ctx;
ctx               177 libavdevice/vfwcap.c     ctx = s->priv_data;
ctx               184 libavdevice/vfwcap.c     WaitForSingleObject(ctx->mutex, INFINITE);
ctx               198 libavdevice/vfwcap.c     for(ppktl = &ctx->pktl ; *ppktl ; ppktl = &(*ppktl)->next);
ctx               201 libavdevice/vfwcap.c     ctx->curbufsize += vdhdr->dwBytesUsed;
ctx               203 libavdevice/vfwcap.c     SetEvent(ctx->event);
ctx               204 libavdevice/vfwcap.c     ReleaseMutex(ctx->mutex);
ctx               208 libavdevice/vfwcap.c     ReleaseMutex(ctx->mutex);
ctx               214 libavdevice/vfwcap.c     struct vfw_ctx *ctx = s->priv_data;
ctx               217 libavdevice/vfwcap.c     if(ctx->hwnd) {
ctx               218 libavdevice/vfwcap.c         SendMessage(ctx->hwnd, WM_CAP_SET_CALLBACK_VIDEOSTREAM, 0, 0);
ctx               219 libavdevice/vfwcap.c         SendMessage(ctx->hwnd, WM_CAP_DRIVER_DISCONNECT, 0, 0);
ctx               220 libavdevice/vfwcap.c         DestroyWindow(ctx->hwnd);
ctx               222 libavdevice/vfwcap.c     if(ctx->mutex)
ctx               223 libavdevice/vfwcap.c         CloseHandle(ctx->mutex);
ctx               224 libavdevice/vfwcap.c     if(ctx->event)
ctx               225 libavdevice/vfwcap.c         CloseHandle(ctx->event);
ctx               227 libavdevice/vfwcap.c     pktl = ctx->pktl;
ctx               240 libavdevice/vfwcap.c     struct vfw_ctx *ctx = s->priv_data;
ctx               268 libavdevice/vfwcap.c     ctx->hwnd = capCreateCaptureWindow(NULL, 0, 0, 0, 0, 0, HWND_MESSAGE, 0);
ctx               269 libavdevice/vfwcap.c     if(!ctx->hwnd) {
ctx               277 libavdevice/vfwcap.c     ret = SendMessage(ctx->hwnd, WM_CAP_DRIVER_CONNECT, devnum, 0);
ctx               280 libavdevice/vfwcap.c         DestroyWindow(ctx->hwnd);
ctx               284 libavdevice/vfwcap.c     SendMessage(ctx->hwnd, WM_CAP_SET_OVERLAY, 0, 0);
ctx               285 libavdevice/vfwcap.c     SendMessage(ctx->hwnd, WM_CAP_SET_PREVIEW, 0, 0);
ctx               287 libavdevice/vfwcap.c     ret = SendMessage(ctx->hwnd, WM_CAP_SET_CALLBACK_VIDEOSTREAM, 0,
ctx               294 libavdevice/vfwcap.c     SetWindowLongPtr(ctx->hwnd, GWLP_USERDATA, (LONG_PTR) s);
ctx               303 libavdevice/vfwcap.c     bisize = SendMessage(ctx->hwnd, WM_CAP_GET_VIDEOFORMAT, 0, 0);
ctx               311 libavdevice/vfwcap.c     ret = SendMessage(ctx->hwnd, WM_CAP_GET_VIDEOFORMAT, bisize, (LPARAM) bi);
ctx               317 libavdevice/vfwcap.c     ret = av_parse_video_rate(&framerate_q, ctx->framerate);
ctx               319 libavdevice/vfwcap.c         av_log(s, AV_LOG_ERROR, "Could not parse framerate '%s'.\n", ctx->framerate);
ctx               323 libavdevice/vfwcap.c     if (ctx->video_size) {
ctx               324 libavdevice/vfwcap.c         ret = av_parse_video_size(&bi->bmiHeader.biWidth, &bi->bmiHeader.biHeight, ctx->video_size);
ctx               343 libavdevice/vfwcap.c     ret = SendMessage(ctx->hwnd, WM_CAP_SET_VIDEOFORMAT, bisize, (LPARAM) bi);
ctx               353 libavdevice/vfwcap.c     ret = SendMessage(ctx->hwnd, WM_CAP_GET_SEQUENCE_SETUP, sizeof(cparms),
ctx               368 libavdevice/vfwcap.c     ret = SendMessage(ctx->hwnd, WM_CAP_SET_SEQUENCE_SETUP, sizeof(cparms),
ctx               404 libavdevice/vfwcap.c     ctx->mutex = CreateMutex(NULL, 0, NULL);
ctx               405 libavdevice/vfwcap.c     if(!ctx->mutex) {
ctx               409 libavdevice/vfwcap.c     ctx->event = CreateEvent(NULL, 1, 0, NULL);
ctx               410 libavdevice/vfwcap.c     if(!ctx->event) {
ctx               415 libavdevice/vfwcap.c     ret = SendMessage(ctx->hwnd, WM_CAP_SEQUENCE_NOFILE, 0, 0);
ctx               431 libavdevice/vfwcap.c     struct vfw_ctx *ctx = s->priv_data;
ctx               435 libavdevice/vfwcap.c         WaitForSingleObject(ctx->mutex, INFINITE);
ctx               436 libavdevice/vfwcap.c         pktl = ctx->pktl;
ctx               437 libavdevice/vfwcap.c         if(ctx->pktl) {
ctx               438 libavdevice/vfwcap.c             *pkt = ctx->pktl->pkt;
ctx               439 libavdevice/vfwcap.c             ctx->pktl = ctx->pktl->next;
ctx               442 libavdevice/vfwcap.c         ResetEvent(ctx->event);
ctx               443 libavdevice/vfwcap.c         ReleaseMutex(ctx->mutex);
ctx               448 libavdevice/vfwcap.c                 WaitForSingleObject(ctx->event, INFINITE);
ctx               453 libavdevice/vfwcap.c     ctx->curbufsize -= pkt->size;
ctx               424 libavdevice/xcbgrab.c     XCBGrabContext *ctx = s->priv_data;
ctx               426 libavdevice/xcbgrab.c     xcb_disconnect(ctx->conn);
ctx               324 libavdevice/xv.c     AVCodecContext *ctx = s->streams[0]->codec;
ctx               326 libavdevice/xv.c     avpicture_fill(&pict, pkt->data, ctx->pix_fmt, ctx->width, ctx->height);
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               243 libavfilter/aeval.c static int query_formats(AVFilterContext *ctx)
ctx               245 libavfilter/aeval.c     EvalContext *eval = ctx->priv;
ctx               250 libavfilter/aeval.c     ff_set_common_formats (ctx, ff_make_format_list(sample_fmts));
ctx               251 libavfilter/aeval.c     ff_set_common_channel_layouts(ctx, avfilter_make_format64_list(chlayouts));
ctx               252 libavfilter/aeval.c     ff_set_common_samplerates(ctx, ff_make_format_list(sample_rates));
ctx               326 libavfilter/aeval.c static int aeval_query_formats(AVFilterContext *ctx)
ctx               330 libavfilter/aeval.c     AVFilterLink *inlink  = ctx->inputs[0];
ctx               331 libavfilter/aeval.c     AVFilterLink *outlink  = ctx->outputs[0];
ctx               332 libavfilter/aeval.c     EvalContext *eval = ctx->priv;
ctx               345 libavfilter/aeval.c             ff_set_common_channel_layouts(ctx, layouts);
ctx               358 libavfilter/aeval.c     ff_set_common_formats(ctx, formats);
ctx               363 libavfilter/aeval.c     ff_set_common_samplerates(ctx, formats);
ctx               370 libavfilter/aeval.c     AVFilterContext *ctx = outlink->src;
ctx               371 libavfilter/aeval.c     EvalContext *eval = ctx->priv;
ctx               372 libavfilter/aeval.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               378 libavfilter/aeval.c         if ((ret = parse_channel_expressions(ctx, inlink->channels)) < 0)
ctx                58 libavfilter/af_adelay.c static int query_formats(AVFilterContext *ctx)
ctx                71 libavfilter/af_adelay.c     ff_set_common_channel_layouts(ctx, layouts);
ctx                76 libavfilter/af_adelay.c     ff_set_common_formats(ctx, formats);
ctx                81 libavfilter/af_adelay.c     ff_set_common_samplerates(ctx, formats);
ctx               123 libavfilter/af_adelay.c     AVFilterContext *ctx = inlink->dst;
ctx               124 libavfilter/af_adelay.c     AudioDelayContext *s = ctx->priv;
ctx               147 libavfilter/af_adelay.c             av_log(ctx, AV_LOG_ERROR, "Delay must be non negative number.\n");
ctx               166 libavfilter/af_adelay.c         av_log(ctx, AV_LOG_ERROR, "At least one delay >0 must be specified.\n");
ctx               183 libavfilter/af_adelay.c     AVFilterContext *ctx = inlink->dst;
ctx               184 libavfilter/af_adelay.c     AudioDelayContext *s = ctx->priv;
ctx               188 libavfilter/af_adelay.c     if (ctx->is_disabled || !s->delays)
ctx               189 libavfilter/af_adelay.c         return ff_filter_frame(ctx->outputs[0], frame);
ctx               209 libavfilter/af_adelay.c     return ff_filter_frame(ctx->outputs[0], out_frame);
ctx               214 libavfilter/af_adelay.c     AVFilterContext *ctx = outlink->src;
ctx               215 libavfilter/af_adelay.c     AudioDelayContext *s = ctx->priv;
ctx               218 libavfilter/af_adelay.c     ret = ff_request_frame(ctx->inputs[0]);
ctx               219 libavfilter/af_adelay.c     if (ret == AVERROR_EOF && !ctx->is_disabled && s->max_delay) {
ctx               237 libavfilter/af_adelay.c         ret = filter_frame(ctx->inputs[0], frame);
ctx               243 libavfilter/af_adelay.c static av_cold void uninit(AVFilterContext *ctx)
ctx               245 libavfilter/af_adelay.c     AudioDelayContext *s = ctx->priv;
ctx                41 libavfilter/af_aecho.c     void (*echo_samples)(struct AudioEchoContext *ctx, uint8_t **delayptrs,
ctx                86 libavfilter/af_aecho.c static av_cold void uninit(AVFilterContext *ctx)
ctx                88 libavfilter/af_aecho.c     AudioEchoContext *s = ctx->priv;
ctx                99 libavfilter/af_aecho.c static av_cold int init(AVFilterContext *ctx)
ctx               101 libavfilter/af_aecho.c     AudioEchoContext *s = ctx->priv;
ctx               105 libavfilter/af_aecho.c         av_log(ctx, AV_LOG_ERROR, "Missing delays and/or decays.\n");
ctx               121 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               127 libavfilter/af_aecho.c         av_log(ctx, AV_LOG_ERROR, "At least one decay & delay must be set.\n");
ctx               137 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               141 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               148 libavfilter/af_aecho.c     av_log(ctx, AV_LOG_DEBUG, "nb_echoes:%d\n", s->nb_echoes);
ctx               152 libavfilter/af_aecho.c static int query_formats(AVFilterContext *ctx)
ctx               165 libavfilter/af_aecho.c     ff_set_common_channel_layouts(ctx, layouts);
ctx               170 libavfilter/af_aecho.c     ff_set_common_formats(ctx, formats);
ctx               175 libavfilter/af_aecho.c     ff_set_common_samplerates(ctx, formats);
ctx               183 libavfilter/af_aecho.c static void echo_samples_## name ##p(AudioEchoContext *ctx,                 \
ctx               188 libavfilter/af_aecho.c     const double out_gain = ctx->out_gain;                                  \
ctx               189 libavfilter/af_aecho.c     const double in_gain = ctx->in_gain;                                    \
ctx               190 libavfilter/af_aecho.c     const int nb_echoes = ctx->nb_echoes;                                   \
ctx               191 libavfilter/af_aecho.c     const int max_samples = ctx->max_samples;                               \
ctx               201 libavfilter/af_aecho.c         index = ctx->delay_index;                                           \
ctx               208 libavfilter/af_aecho.c                 int ix = index + max_samples - ctx->samples[j];             \
ctx               210 libavfilter/af_aecho.c                 out += dbuf[ix] * ctx->decay[j];                            \
ctx               220 libavfilter/af_aecho.c     ctx->delay_index = index;                                               \
ctx               230 libavfilter/af_aecho.c     AVFilterContext *ctx = outlink->src;
ctx               231 libavfilter/af_aecho.c     AudioEchoContext *s = ctx->priv;
ctx               242 libavfilter/af_aecho.c         av_log(ctx, AV_LOG_ERROR, "Nothing to echo - missing delay samples.\n");
ctx               248 libavfilter/af_aecho.c         av_log(ctx, AV_LOG_WARNING,
ctx               271 libavfilter/af_aecho.c     AVFilterContext *ctx = inlink->dst;
ctx               272 libavfilter/af_aecho.c     AudioEchoContext *s = ctx->priv;
ctx               292 libavfilter/af_aecho.c     return ff_filter_frame(ctx->outputs[0], out_frame);
ctx               297 libavfilter/af_aecho.c     AVFilterContext *ctx = outlink->src;
ctx               298 libavfilter/af_aecho.c     AudioEchoContext *s = ctx->priv;
ctx               301 libavfilter/af_aecho.c     ret = ff_request_frame(ctx->inputs[0]);
ctx               303 libavfilter/af_aecho.c     if (ret == AVERROR_EOF && !ctx->is_disabled && s->fade_out) {
ctx                80 libavfilter/af_afade.c static av_cold int init(AVFilterContext *ctx)
ctx                82 libavfilter/af_afade.c     AudioFadeContext *s = ctx->priv;
ctx                90 libavfilter/af_afade.c static int query_formats(AVFilterContext *ctx)
ctx               105 libavfilter/af_afade.c     ff_set_common_channel_layouts(ctx, layouts);
ctx               110 libavfilter/af_afade.c     ff_set_common_formats(ctx, formats);
ctx               115 libavfilter/af_afade.c     ff_set_common_samplerates(ctx, formats);
ctx               205 libavfilter/af_afade.c     AVFilterContext *ctx = inlink->dst;
ctx               206 libavfilter/af_afade.c     AudioFadeContext *s  = ctx->priv;
ctx                65 libavfilter/af_aformat.c         av_log(ctx, AV_LOG_WARNING, "This syntax is deprecated, use '|' to "\
ctx                78 libavfilter/af_aformat.c             av_log(ctx, AV_LOG_ERROR, "Error parsing " desc ": %s.\n", cur);\
ctx                93 libavfilter/af_aformat.c static av_cold int init(AVFilterContext *ctx)
ctx                95 libavfilter/af_aformat.c     AFormatContext *s = ctx->priv;
ctx               108 libavfilter/af_aformat.c static int query_formats(AVFilterContext *ctx)
ctx               110 libavfilter/af_aformat.c     AFormatContext *s = ctx->priv;
ctx               112 libavfilter/af_aformat.c     ff_set_common_formats(ctx, s->formats ? s->formats :
ctx               114 libavfilter/af_aformat.c     ff_set_common_samplerates(ctx, s->sample_rates ? s->sample_rates :
ctx               116 libavfilter/af_aformat.c     ff_set_common_channel_layouts(ctx, s->channel_layouts ? s->channel_layouts :
ctx                61 libavfilter/af_amerge.c static av_cold void uninit(AVFilterContext *ctx)
ctx                63 libavfilter/af_amerge.c     AMergeContext *am = ctx->priv;
ctx                69 libavfilter/af_amerge.c         if (ctx->input_pads)
ctx                70 libavfilter/af_amerge.c             av_freep(&ctx->input_pads[i].name);
ctx                75 libavfilter/af_amerge.c static int query_formats(AVFilterContext *ctx)
ctx                77 libavfilter/af_amerge.c     AMergeContext *am = ctx->priv;
ctx                84 libavfilter/af_amerge.c         if (!ctx->inputs[i]->in_channel_layouts ||
ctx                85 libavfilter/af_amerge.c             !ctx->inputs[i]->in_channel_layouts->nb_channel_layouts) {
ctx                86 libavfilter/af_amerge.c             av_log(ctx, AV_LOG_WARNING,
ctx                90 libavfilter/af_amerge.c         inlayout[i] = ctx->inputs[i]->in_channel_layouts->channel_layouts[0];
ctx                91 libavfilter/af_amerge.c         if (ctx->inputs[i]->in_channel_layouts->nb_channel_layouts > 1) {
ctx                94 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     ff_set_common_formats(ctx, formats);
ctx               132 libavfilter/af_amerge.c         ff_channel_layouts_ref(layouts, &ctx->inputs[i]->out_channel_layouts);
ctx               136 libavfilter/af_amerge.c     ff_channel_layouts_ref(layouts, &ctx->outputs[0]->in_channel_layouts);
ctx               137 libavfilter/af_amerge.c     ff_set_common_samplerates(ctx, ff_all_samplerates());
ctx               143 libavfilter/af_amerge.c     AVFilterContext *ctx = outlink->src;
ctx               144 libavfilter/af_amerge.c     AMergeContext *am = ctx->priv;
ctx               149 libavfilter/af_amerge.c         if (ctx->inputs[i]->sample_rate != ctx->inputs[0]->sample_rate) {
ctx               150 libavfilter/af_amerge.c             av_log(ctx, AV_LOG_ERROR,
ctx               153 libavfilter/af_amerge.c                    ctx->inputs[i]->sample_rate, i, ctx->inputs[0]->sample_rate);
ctx               157 libavfilter/af_amerge.c     am->bps = av_get_bytes_per_sample(ctx->outputs[0]->format);
ctx               158 libavfilter/af_amerge.c     outlink->sample_rate = ctx->inputs[0]->sample_rate;
ctx               159 libavfilter/af_amerge.c     outlink->time_base   = ctx->inputs[0]->time_base;
ctx               164 libavfilter/af_amerge.c         av_bprint_channel_layout(&bp, -1, ctx->inputs[i]->channel_layout);
ctx               167 libavfilter/af_amerge.c     av_bprint_channel_layout(&bp, -1, ctx->outputs[0]->channel_layout);
ctx               168 libavfilter/af_amerge.c     av_log(ctx, AV_LOG_VERBOSE, "%s\n", bp.str);
ctx               175 libavfilter/af_amerge.c     AVFilterContext *ctx = outlink->src;
ctx               176 libavfilter/af_amerge.c     AMergeContext *am = ctx->priv;
ctx               181 libavfilter/af_amerge.c             if ((ret = ff_request_frame(ctx->inputs[i])) < 0)
ctx               225 libavfilter/af_amerge.c     AVFilterContext *ctx = inlink->dst;
ctx               226 libavfilter/af_amerge.c     AMergeContext *am = ctx->priv;
ctx               227 libavfilter/af_amerge.c     AVFilterLink *const outlink = ctx->outputs[0];
ctx               234 libavfilter/af_amerge.c         if (inlink == ctx->inputs[input_number])
ctx               241 libavfilter/af_amerge.c     ff_bufqueue_add(ctx, &am->in[input_number].queue, av_frame_clone(insamples));
ctx               250 libavfilter/af_amerge.c     outbuf = ff_get_audio_buffer(ctx->outputs[0], nb_samples);
ctx               263 libavfilter/af_amerge.c                                av_make_q(1, ctx->inputs[0]->sample_rate),
ctx               264 libavfilter/af_amerge.c                                ctx->outputs[0]->time_base);
ctx               304 libavfilter/af_amerge.c     return ff_filter_frame(ctx->outputs[0], outbuf);
ctx               307 libavfilter/af_amerge.c static av_cold int init(AVFilterContext *ctx)
ctx               309 libavfilter/af_amerge.c     AMergeContext *am = ctx->priv;
ctx               324 libavfilter/af_amerge.c         ff_insert_inpad(ctx, i, &pad);
ctx               221 libavfilter/af_amix.c     AVFilterContext *ctx = outlink->src;
ctx               222 libavfilter/af_amix.c     MixContext *s      = ctx->priv;
ctx               260 libavfilter/af_amix.c     av_log(ctx, AV_LOG_VERBOSE,
ctx               272 libavfilter/af_amix.c     AVFilterContext *ctx = outlink->src;
ctx               273 libavfilter/af_amix.c     MixContext      *s = ctx->priv;
ctx               342 libavfilter/af_amix.c static int request_samples(AVFilterContext *ctx, int min_samples)
ctx               344 libavfilter/af_amix.c     MixContext *s = ctx->priv;
ctx               354 libavfilter/af_amix.c             ret = ff_request_frame(ctx->inputs[i]);
ctx               389 libavfilter/af_amix.c     AVFilterContext *ctx = outlink->src;
ctx               390 libavfilter/af_amix.c     MixContext      *s = ctx->priv;
ctx               399 libavfilter/af_amix.c         ret = request_samples(ctx, 1);
ctx               415 libavfilter/af_amix.c         ret = ff_request_frame(ctx->inputs[0]);
ctx               430 libavfilter/af_amix.c         ret = request_samples(ctx, wanted_samples);
ctx               456 libavfilter/af_amix.c     AVFilterContext  *ctx = inlink->dst;
ctx               457 libavfilter/af_amix.c     MixContext       *s = ctx->priv;
ctx               458 libavfilter/af_amix.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               461 libavfilter/af_amix.c     for (i = 0; i < ctx->nb_inputs; i++)
ctx               462 libavfilter/af_amix.c         if (ctx->inputs[i] == inlink)
ctx               464 libavfilter/af_amix.c     if (i >= ctx->nb_inputs) {
ctx               465 libavfilter/af_amix.c         av_log(ctx, AV_LOG_ERROR, "unknown input link\n");
ctx               487 libavfilter/af_amix.c static av_cold int init(AVFilterContext *ctx)
ctx               489 libavfilter/af_amix.c     MixContext *s = ctx->priv;
ctx               503 libavfilter/af_amix.c         ff_insert_inpad(ctx, i, &pad);
ctx               513 libavfilter/af_amix.c static av_cold void uninit(AVFilterContext *ctx)
ctx               516 libavfilter/af_amix.c     MixContext *s = ctx->priv;
ctx               529 libavfilter/af_amix.c     for (i = 0; i < ctx->nb_inputs; i++)
ctx               530 libavfilter/af_amix.c         av_freep(&ctx->input_pads[i].name);
ctx               533 libavfilter/af_amix.c static int query_formats(AVFilterContext *ctx)
ctx               545 libavfilter/af_amix.c     ff_set_common_formats(ctx, formats);
ctx               546 libavfilter/af_amix.c     ff_set_common_channel_layouts(ctx, layouts);
ctx               547 libavfilter/af_amix.c     ff_set_common_samplerates(ctx, ff_all_samplerates());
ctx                58 libavfilter/af_apad.c static av_cold int init(AVFilterContext *ctx)
ctx                60 libavfilter/af_apad.c     APadContext *apad = ctx->priv;
ctx                64 libavfilter/af_apad.c         av_log(ctx, AV_LOG_ERROR, "Both whole and pad length are set, this is not possible\n");
ctx                75 libavfilter/af_apad.c     AVFilterContext *ctx = inlink->dst;
ctx                76 libavfilter/af_apad.c     APadContext *apad = ctx->priv;
ctx                80 libavfilter/af_apad.c         av_log(ctx, AV_LOG_DEBUG,
ctx                85 libavfilter/af_apad.c     return ff_filter_frame(ctx->outputs[0], frame);
ctx                90 libavfilter/af_apad.c     AVFilterContext *ctx = outlink->src;
ctx                91 libavfilter/af_apad.c     APadContext *apad = ctx->priv;
ctx                94 libavfilter/af_apad.c     ret = ff_request_frame(ctx->inputs[0]);
ctx                96 libavfilter/af_apad.c     if (ret == AVERROR_EOF && !ctx->is_disabled) {
ctx               106 libavfilter/af_apad.c             av_log(ctx, AV_LOG_DEBUG,
ctx                74 libavfilter/af_aphaser.c static av_cold int init(AVFilterContext *ctx)
ctx                76 libavfilter/af_aphaser.c     AudioPhaserContext *p = 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               101 libavfilter/af_aphaser.c     ff_set_common_channel_layouts(ctx, layouts);
ctx               106 libavfilter/af_aphaser.c     ff_set_common_formats(ctx, formats);
ctx               111 libavfilter/af_aphaser.c     ff_set_common_samplerates(ctx, formats);
ctx               258 libavfilter/af_aphaser.c static av_cold void uninit(AVFilterContext *ctx)
ctx               260 libavfilter/af_aphaser.c     AudioPhaserContext *p = ctx->priv;
ctx                47 libavfilter/af_aresample.c static av_cold int init_dict(AVFilterContext *ctx, AVDictionary **opts)
ctx                49 libavfilter/af_aresample.c     AResampleContext *aresample = ctx->priv;
ctx                74 libavfilter/af_aresample.c static av_cold void uninit(AVFilterContext *ctx)
ctx                76 libavfilter/af_aresample.c     AResampleContext *aresample = ctx->priv;
ctx                80 libavfilter/af_aresample.c static int query_formats(AVFilterContext *ctx)
ctx                82 libavfilter/af_aresample.c     AResampleContext *aresample = ctx->priv;
ctx                87 libavfilter/af_aresample.c     AVFilterLink *inlink  = ctx->inputs[0];
ctx                88 libavfilter/af_aresample.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               108 libavfilter/af_aresample.c         av_log(ctx, AV_LOG_ERROR, "Cannot allocate output samplerates.\n");
ctx               135 libavfilter/af_aresample.c     AVFilterContext *ctx = outlink->src;
ctx               136 libavfilter/af_aresample.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               137 libavfilter/af_aresample.c     AResampleContext *aresample = ctx->priv;
ctx               146 libavfilter/af_aresample.c                                         0, ctx);
ctx               172 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               231 libavfilter/af_aresample.c     AVFilterContext *ctx = outlink->src;
ctx               232 libavfilter/af_aresample.c     AResampleContext *aresample = ctx->priv;
ctx               262 libavfilter/af_aresample.c     AVFilterContext *ctx = outlink->src;
ctx               263 libavfilter/af_aresample.c     AResampleContext *aresample = ctx->priv;
ctx               279 libavfilter/af_aresample.c         ret = ff_request_frame(ctx->inputs[0]);
ctx                57 libavfilter/af_asetnsamples.c static av_cold int init(AVFilterContext *ctx)
ctx                59 libavfilter/af_asetnsamples.c     ASNSContext *asns = ctx->priv;
ctx                62 libavfilter/af_asetnsamples.c     av_log(ctx, AV_LOG_VERBOSE, "nb_out_samples:%d pad:%d\n", asns->nb_out_samples, asns->pad);
ctx                67 libavfilter/af_asetnsamples.c static av_cold void uninit(AVFilterContext *ctx)
ctx                69 libavfilter/af_asetnsamples.c     ASNSContext *asns = ctx->priv;
ctx               129 libavfilter/af_asetnsamples.c     AVFilterContext *ctx = inlink->dst;
ctx               130 libavfilter/af_asetnsamples.c     ASNSContext *asns = ctx->priv;
ctx               131 libavfilter/af_asetnsamples.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               136 libavfilter/af_asetnsamples.c         av_log(ctx, AV_LOG_DEBUG, "No space for %d samples, stretching audio fifo\n", nb_samples);
ctx               139 libavfilter/af_asetnsamples.c             av_log(ctx, AV_LOG_ERROR,
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                61 libavfilter/af_asetrate.c     AVFilterContext *ctx = outlink->src;
ctx                62 libavfilter/af_asetrate.c     ASetRateContext *sr = ctx->priv;
ctx                63 libavfilter/af_asetrate.c     AVFilterLink *inlink = ctx->inputs[0];
ctx                64 libavfilter/af_asetrate.c     AVRational intb = ctx->inputs[0]->time_base;
ctx                74 libavfilter/af_asetrate.c             av_log(ctx, AV_LOG_WARNING, "Time base is inaccurate\n");
ctx                81 libavfilter/af_asetrate.c     AVFilterContext *ctx = inlink->dst;
ctx                82 libavfilter/af_asetrate.c     ASetRateContext *sr = ctx->priv;
ctx                83 libavfilter/af_asetrate.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                51 libavfilter/af_ashowinfo.c static av_cold void uninit(AVFilterContext *ctx)
ctx                53 libavfilter/af_ashowinfo.c     AShowInfoContext *s = ctx->priv;
ctx                57 libavfilter/af_ashowinfo.c static void dump_matrixenc(AVFilterContext *ctx, AVFrameSideData *sd)
ctx                61 libavfilter/af_ashowinfo.c     av_log(ctx, AV_LOG_INFO, "matrix encoding: ");
ctx                70 libavfilter/af_ashowinfo.c     case AV_MATRIX_ENCODING_NONE:           av_log(ctx, AV_LOG_INFO, "none");                break;
ctx                71 libavfilter/af_ashowinfo.c     case AV_MATRIX_ENCODING_DOLBY:          av_log(ctx, AV_LOG_INFO, "Dolby Surround");      break;
ctx                72 libavfilter/af_ashowinfo.c     case AV_MATRIX_ENCODING_DPLII:          av_log(ctx, AV_LOG_INFO, "Dolby Pro Logic II");  break;
ctx                73 libavfilter/af_ashowinfo.c     case AV_MATRIX_ENCODING_DPLIIX:         av_log(ctx, AV_LOG_INFO, "Dolby Pro Logic IIx"); break;
ctx                74 libavfilter/af_ashowinfo.c     case AV_MATRIX_ENCODING_DPLIIZ:         av_log(ctx, AV_LOG_INFO, "Dolby Pro Logic IIz"); break;
ctx                75 libavfilter/af_ashowinfo.c     case AV_MATRIX_ENCODING_DOLBYEX:        av_log(ctx, AV_LOG_INFO, "Dolby EX");            break;
ctx                76 libavfilter/af_ashowinfo.c     case AV_MATRIX_ENCODING_DOLBYHEADPHONE: av_log(ctx, AV_LOG_INFO, "Dolby Headphone");     break;
ctx                77 libavfilter/af_ashowinfo.c     default:                                av_log(ctx, AV_LOG_WARNING, "unknown");          break;
ctx                81 libavfilter/af_ashowinfo.c static void dump_downmix(AVFilterContext *ctx, AVFrameSideData *sd)
ctx                85 libavfilter/af_ashowinfo.c     av_log(ctx, AV_LOG_INFO, "downmix: ");
ctx                87 libavfilter/af_ashowinfo.c         av_log(ctx, AV_LOG_INFO, "invalid data");
ctx                93 libavfilter/af_ashowinfo.c     av_log(ctx, AV_LOG_INFO, "preferred downmix type - ");
ctx                95 libavfilter/af_ashowinfo.c     case AV_DOWNMIX_TYPE_LORO:    av_log(ctx, AV_LOG_INFO, "Lo/Ro");              break;
ctx                96 libavfilter/af_ashowinfo.c     case AV_DOWNMIX_TYPE_LTRT:    av_log(ctx, AV_LOG_INFO, "Lt/Rt");              break;
ctx                97 libavfilter/af_ashowinfo.c     case AV_DOWNMIX_TYPE_DPLII:   av_log(ctx, AV_LOG_INFO, "Dolby Pro Logic II"); break;
ctx                98 libavfilter/af_ashowinfo.c     default:                      av_log(ctx, AV_LOG_WARNING, "unknown");         break;
ctx               101 libavfilter/af_ashowinfo.c     av_log(ctx, AV_LOG_INFO, " Mix levels: center %f (%f ltrt) - "
ctx               108 libavfilter/af_ashowinfo.c static void print_gain(AVFilterContext *ctx, const char *str, int32_t gain)
ctx               110 libavfilter/af_ashowinfo.c     av_log(ctx, AV_LOG_INFO, "%s - ", str);
ctx               112 libavfilter/af_ashowinfo.c         av_log(ctx, AV_LOG_INFO, "unknown");
ctx               114 libavfilter/af_ashowinfo.c         av_log(ctx, AV_LOG_INFO, "%f", gain / 100000.0f);
ctx               115 libavfilter/af_ashowinfo.c     av_log(ctx, AV_LOG_INFO, ", ");
ctx               118 libavfilter/af_ashowinfo.c static void print_peak(AVFilterContext *ctx, const char *str, uint32_t peak)
ctx               120 libavfilter/af_ashowinfo.c     av_log(ctx, AV_LOG_INFO, "%s - ", str);
ctx               122 libavfilter/af_ashowinfo.c         av_log(ctx, AV_LOG_INFO, "unknown");
ctx               124 libavfilter/af_ashowinfo.c         av_log(ctx, AV_LOG_INFO, "%f", (float)peak / UINT32_MAX);
ctx               125 libavfilter/af_ashowinfo.c     av_log(ctx, AV_LOG_INFO, ", ");
ctx               128 libavfilter/af_ashowinfo.c static void dump_replaygain(AVFilterContext *ctx, AVFrameSideData *sd)
ctx               132 libavfilter/af_ashowinfo.c     av_log(ctx, AV_LOG_INFO, "replaygain: ");
ctx               134 libavfilter/af_ashowinfo.c         av_log(ctx, AV_LOG_INFO, "invalid data");
ctx               139 libavfilter/af_ashowinfo.c     print_gain(ctx, "track gain", rg->track_gain);
ctx               140 libavfilter/af_ashowinfo.c     print_peak(ctx, "track peak", rg->track_peak);
ctx               141 libavfilter/af_ashowinfo.c     print_gain(ctx, "album gain", rg->album_gain);
ctx               142 libavfilter/af_ashowinfo.c     print_peak(ctx, "album peak", rg->album_peak);
ctx               145 libavfilter/af_ashowinfo.c static void dump_audio_service_type(AVFilterContext *ctx, AVFrameSideData *sd)
ctx               149 libavfilter/af_ashowinfo.c     av_log(ctx, AV_LOG_INFO, "audio service type: ");
ctx               151 libavfilter/af_ashowinfo.c         av_log(ctx, AV_LOG_INFO, "invalid data");
ctx               156 libavfilter/af_ashowinfo.c     case AV_AUDIO_SERVICE_TYPE_MAIN:              av_log(ctx, AV_LOG_INFO, "Main Audio Service"); break;
ctx               157 libavfilter/af_ashowinfo.c     case AV_AUDIO_SERVICE_TYPE_EFFECTS:           av_log(ctx, AV_LOG_INFO, "Effects");            break;
ctx               158 libavfilter/af_ashowinfo.c     case AV_AUDIO_SERVICE_TYPE_VISUALLY_IMPAIRED: av_log(ctx, AV_LOG_INFO, "Visually Impaired");  break;
ctx               159 libavfilter/af_ashowinfo.c     case AV_AUDIO_SERVICE_TYPE_HEARING_IMPAIRED:  av_log(ctx, AV_LOG_INFO, "Hearing Impaired");   break;
ctx               160 libavfilter/af_ashowinfo.c     case AV_AUDIO_SERVICE_TYPE_DIALOGUE:          av_log(ctx, AV_LOG_INFO, "Dialogue");           break;
ctx               161 libavfilter/af_ashowinfo.c     case AV_AUDIO_SERVICE_TYPE_COMMENTARY:        av_log(ctx, AV_LOG_INFO, "Commentary");         break;
ctx               162 libavfilter/af_ashowinfo.c     case AV_AUDIO_SERVICE_TYPE_EMERGENCY:         av_log(ctx, AV_LOG_INFO, "Emergency");          break;
ctx               163 libavfilter/af_ashowinfo.c     case AV_AUDIO_SERVICE_TYPE_VOICE_OVER:        av_log(ctx, AV_LOG_INFO, "Voice Over");         break;
ctx               164 libavfilter/af_ashowinfo.c     case AV_AUDIO_SERVICE_TYPE_KARAOKE:           av_log(ctx, AV_LOG_INFO, "Karaoke");            break;
ctx               165 libavfilter/af_ashowinfo.c     default:                                      av_log(ctx, AV_LOG_INFO, "unknown");            break;
ctx               169 libavfilter/af_ashowinfo.c static void dump_unknown(AVFilterContext *ctx, AVFrameSideData *sd)
ctx               171 libavfilter/af_ashowinfo.c     av_log(ctx, AV_LOG_INFO, "unknown side data type: %d, size %d bytes", sd->type, sd->size);
ctx               176 libavfilter/af_ashowinfo.c     AVFilterContext *ctx = inlink->dst;
ctx               177 libavfilter/af_ashowinfo.c     AShowInfoContext *s  = ctx->priv;
ctx               203 libavfilter/af_ashowinfo.c     av_log(ctx, AV_LOG_INFO,
ctx               214 libavfilter/af_ashowinfo.c     av_log(ctx, AV_LOG_INFO, "plane_checksums: [ ");
ctx               216 libavfilter/af_ashowinfo.c         av_log(ctx, AV_LOG_INFO, "%08"PRIX32" ", s->plane_checksums[i]);
ctx               217 libavfilter/af_ashowinfo.c     av_log(ctx, AV_LOG_INFO, "]\n");
ctx               222 libavfilter/af_ashowinfo.c         av_log(ctx, AV_LOG_INFO, "  side data - ");
ctx               224 libavfilter/af_ashowinfo.c         case AV_FRAME_DATA_MATRIXENCODING: dump_matrixenc (ctx, sd); break;
ctx               225 libavfilter/af_ashowinfo.c         case AV_FRAME_DATA_DOWNMIX_INFO:   dump_downmix   (ctx, sd); break;
ctx               226 libavfilter/af_ashowinfo.c         case AV_FRAME_DATA_REPLAYGAIN:     dump_replaygain(ctx, sd); break;
ctx               227 libavfilter/af_ashowinfo.c         case AV_FRAME_DATA_AUDIO_SERVICE_TYPE: dump_audio_service_type(ctx, sd); break;
ctx               228 libavfilter/af_ashowinfo.c         default:                           dump_unknown   (ctx, sd); break;
ctx               231 libavfilter/af_ashowinfo.c         av_log(ctx, AV_LOG_INFO, "\n");
ctx                59 libavfilter/af_astats.c static int query_formats(AVFilterContext *ctx)
ctx                71 libavfilter/af_astats.c     ff_set_common_channel_layouts(ctx, layouts);
ctx                76 libavfilter/af_astats.c     ff_set_common_formats(ctx, formats);
ctx                81 libavfilter/af_astats.c     ff_set_common_samplerates(ctx, formats);
ctx               178 libavfilter/af_astats.c static void print_stats(AVFilterContext *ctx)
ctx               180 libavfilter/af_astats.c     AudioStatsContext *s = ctx->priv;
ctx               211 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "Channel: %d\n", c + 1);
ctx               212 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "DC offset: %f\n", p->sigma_x / p->nb_samples);
ctx               213 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "Min level: %f\n", p->min);
ctx               214 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "Max level: %f\n", p->max);
ctx               215 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "Peak level dB: %f\n", LINEAR_TO_DB(FFMAX(-p->min, p->max)));
ctx               216 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               217 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "RMS peak dB: %f\n", LINEAR_TO_DB(sqrt(p->max_sigma_x2)));
ctx               219 libavfilter/af_astats.c             av_log(ctx, AV_LOG_INFO, "RMS trough dB: %f\n",LINEAR_TO_DB(sqrt(p->min_sigma_x2)));
ctx               220 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "Crest factor: %f\n", p->sigma_x2 ? FFMAX(-p->min, p->max) / sqrt(p->sigma_x2 / p->nb_samples) : 1);
ctx               221 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               222 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "Peak count: %"PRId64"\n", p->min_count + p->max_count);
ctx               225 libavfilter/af_astats.c     av_log(ctx, AV_LOG_INFO, "Overall\n");
ctx               226 libavfilter/af_astats.c     av_log(ctx, AV_LOG_INFO, "DC offset: %f\n", max_sigma_x / (nb_samples / s->nb_channels));
ctx               227 libavfilter/af_astats.c     av_log(ctx, AV_LOG_INFO, "Min level: %f\n", min);
ctx               228 libavfilter/af_astats.c     av_log(ctx, AV_LOG_INFO, "Max level: %f\n", max);
ctx               229 libavfilter/af_astats.c     av_log(ctx, AV_LOG_INFO, "Peak level dB: %f\n", LINEAR_TO_DB(FFMAX(-min, max)));
ctx               230 libavfilter/af_astats.c     av_log(ctx, AV_LOG_INFO, "RMS level dB: %f\n", LINEAR_TO_DB(sqrt(sigma_x2 / nb_samples)));
ctx               231 libavfilter/af_astats.c     av_log(ctx, AV_LOG_INFO, "RMS peak dB: %f\n", LINEAR_TO_DB(sqrt(max_sigma_x2)));
ctx               233 libavfilter/af_astats.c         av_log(ctx, AV_LOG_INFO, "RMS trough dB: %f\n", LINEAR_TO_DB(sqrt(min_sigma_x2)));
ctx               234 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               235 libavfilter/af_astats.c     av_log(ctx, AV_LOG_INFO, "Peak count: %f\n", (min_count + max_count) / (double)s->nb_channels);
ctx               236 libavfilter/af_astats.c     av_log(ctx, AV_LOG_INFO, "Number of samples: %"PRId64"\n", nb_samples / s->nb_channels);
ctx               239 libavfilter/af_astats.c static av_cold void uninit(AVFilterContext *ctx)
ctx               241 libavfilter/af_astats.c     AudioStatsContext *s = ctx->priv;
ctx               243 libavfilter/af_astats.c     print_stats(ctx);
ctx                74 libavfilter/af_astreamsync.c static av_cold int init(AVFilterContext *ctx)
ctx                76 libavfilter/af_astreamsync.c     AStreamSyncContext *as = ctx->priv;
ctx                80 libavfilter/af_astreamsync.c                       NULL, NULL, NULL, NULL, 0, ctx);
ctx                82 libavfilter/af_astreamsync.c         av_log(ctx, AV_LOG_ERROR, "Error in expression \"%s\"\n", as->expr_str);
ctx                90 libavfilter/af_astreamsync.c static int query_formats(AVFilterContext *ctx)
ctx                97 libavfilter/af_astreamsync.c         formats = ctx->inputs[i]->in_formats;
ctx                98 libavfilter/af_astreamsync.c         ff_formats_ref(formats, &ctx->inputs[i]->out_formats);
ctx                99 libavfilter/af_astreamsync.c         ff_formats_ref(formats, &ctx->outputs[i]->in_formats);
ctx               101 libavfilter/af_astreamsync.c         ff_formats_ref(rates, &ctx->inputs[i]->out_samplerates);
ctx               102 libavfilter/af_astreamsync.c         ff_formats_ref(rates, &ctx->outputs[i]->in_samplerates);
ctx               103 libavfilter/af_astreamsync.c         layouts = ctx->inputs[i]->in_channel_layouts;
ctx               104 libavfilter/af_astreamsync.c         ff_channel_layouts_ref(layouts, &ctx->inputs[i]->out_channel_layouts);
ctx               105 libavfilter/af_astreamsync.c         ff_channel_layouts_ref(layouts, &ctx->outputs[i]->in_channel_layouts);
ctx               112 libavfilter/af_astreamsync.c     AVFilterContext *ctx = outlink->src;
ctx               113 libavfilter/af_astreamsync.c     int id = outlink == ctx->outputs[1];
ctx               115 libavfilter/af_astreamsync.c     outlink->sample_rate = ctx->inputs[id]->sample_rate;
ctx               116 libavfilter/af_astreamsync.c     outlink->time_base   = ctx->inputs[id]->time_base;
ctx               120 libavfilter/af_astreamsync.c static int send_out(AVFilterContext *ctx, int out_id)
ctx               122 libavfilter/af_astreamsync.c     AStreamSyncContext *as = ctx->priv;
ctx               132 libavfilter/af_astreamsync.c             av_q2d(ctx->outputs[out_id]->time_base) * buf->pts;
ctx               134 libavfilter/af_astreamsync.c                                    (double)ctx->inputs[out_id]->sample_rate;
ctx               135 libavfilter/af_astreamsync.c     ret = ff_filter_frame(ctx->outputs[out_id], buf);
ctx               143 libavfilter/af_astreamsync.c static void send_next(AVFilterContext *ctx)
ctx               145 libavfilter/af_astreamsync.c     AStreamSyncContext *as = ctx->priv;
ctx               151 libavfilter/af_astreamsync.c         send_out(ctx, as->next_out);
ctx               157 libavfilter/af_astreamsync.c             send_out(ctx, i);
ctx               162 libavfilter/af_astreamsync.c     AVFilterContext *ctx = outlink->src;
ctx               163 libavfilter/af_astreamsync.c     AStreamSyncContext *as = ctx->priv;
ctx               164 libavfilter/af_astreamsync.c     int id = outlink == ctx->outputs[1];
ctx               169 libavfilter/af_astreamsync.c             send_next(ctx);
ctx               172 libavfilter/af_astreamsync.c             ff_request_frame(ctx->inputs[as->next_out]);
ctx               182 libavfilter/af_astreamsync.c     AVFilterContext *ctx = inlink->dst;
ctx               183 libavfilter/af_astreamsync.c     AStreamSyncContext *as = ctx->priv;
ctx               184 libavfilter/af_astreamsync.c     int id = inlink == ctx->inputs[1];
ctx               189 libavfilter/af_astreamsync.c     send_next(ctx);
ctx               193 libavfilter/af_astreamsync.c static av_cold void uninit(AVFilterContext *ctx)
ctx               195 libavfilter/af_astreamsync.c     AStreamSyncContext *as = ctx->priv;
ctx                66 libavfilter/af_asyncts.c static av_cold int init(AVFilterContext *ctx)
ctx                68 libavfilter/af_asyncts.c     ASyncContext *s = ctx->priv;
ctx                76 libavfilter/af_asyncts.c static av_cold void uninit(AVFilterContext *ctx)
ctx                78 libavfilter/af_asyncts.c     ASyncContext *s = ctx->priv;
ctx               120 libavfilter/af_asyncts.c static void handle_trimming(AVFilterContext *ctx)
ctx               122 libavfilter/af_asyncts.c     ASyncContext *s = ctx->priv;
ctx               126 libavfilter/af_asyncts.c         av_log(ctx, AV_LOG_VERBOSE, "Trimming %d samples from start\n",
ctx               136 libavfilter/af_asyncts.c     AVFilterContext *ctx = link->src;
ctx               137 libavfilter/af_asyncts.c     ASyncContext      *s = ctx->priv;
ctx               143 libavfilter/af_asyncts.c         ret = ff_request_frame(ctx->inputs[0]);
ctx               148 libavfilter/af_asyncts.c             handle_trimming(ctx);
ctx               179 libavfilter/af_asyncts.c     AVFilterContext  *ctx = inlink->dst;
ctx               180 libavfilter/af_asyncts.c     ASyncContext       *s = ctx->priv;
ctx               181 libavfilter/af_asyncts.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               198 libavfilter/af_asyncts.c         handle_trimming(ctx);
ctx               210 libavfilter/af_asyncts.c         av_log(ctx, AV_LOG_VERBOSE, "Discontinuity - %"PRId64" samples.\n", delta);
ctx               219 libavfilter/af_asyncts.c                 av_log(ctx, AV_LOG_VERBOSE, "Compensating %d samples per second.\n", comp);
ctx               269 libavfilter/af_asyncts.c         av_log(ctx, AV_LOG_WARNING, "Non-monotonous timestamps, dropping "
ctx               283 libavfilter/af_asyncts.c         av_log(ctx, AV_LOG_WARNING, "Non-monotonous timestamps, dropping "
ctx               322 libavfilter/af_atempo.c static int yae_set_tempo(AVFilterContext *ctx, const char *arg_tempo)
ctx               325 libavfilter/af_atempo.c     ATempoContext *atempo = ctx->priv;
ctx               330 libavfilter/af_atempo.c         av_log(ctx, AV_LOG_ERROR, "Invalid tempo value '%s'\n", arg_tempo);
ctx               335 libavfilter/af_atempo.c         av_log(ctx, AV_LOG_ERROR, "Tempo value %f exceeds [0.5, 2.0] range\n",
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              1020 libavfilter/af_atempo.c     ff_set_common_channel_layouts(ctx, layouts);
ctx              1026 libavfilter/af_atempo.c     ff_set_common_formats(ctx, formats);
ctx              1032 libavfilter/af_atempo.c     ff_set_common_samplerates(ctx, formats);
ctx              1039 libavfilter/af_atempo.c     AVFilterContext  *ctx = inlink->dst;
ctx              1040 libavfilter/af_atempo.c     ATempoContext *atempo = ctx->priv;
ctx              1046 libavfilter/af_atempo.c     ctx->outputs[0]->flags |= FF_LINK_FLAG_REQUEST_LOOP;
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              1120 libavfilter/af_atempo.c     AVFilterContext  *ctx = outlink->src;
ctx              1121 libavfilter/af_atempo.c     ATempoContext *atempo = ctx->priv;
ctx              1124 libavfilter/af_atempo.c     ret = ff_request_frame(ctx->inputs[0]);
ctx              1162 libavfilter/af_atempo.c static int process_command(AVFilterContext *ctx,
ctx              1169 libavfilter/af_atempo.c     return !strcmp(cmd, "tempo") ? yae_set_tempo(ctx, arg) : AVERROR(ENOSYS);
ctx               119 libavfilter/af_biquads.c static av_cold int init(AVFilterContext *ctx)
ctx               121 libavfilter/af_biquads.c     BiquadsContext *s = ctx->priv;
ctx               125 libavfilter/af_biquads.c             av_log(ctx, AV_LOG_ERROR, "Invalid frequency %f and/or width %f <= 0\n",
ctx               134 libavfilter/af_biquads.c static int query_formats(AVFilterContext *ctx)
ctx               149 libavfilter/af_biquads.c     ff_set_common_channel_layouts(ctx, layouts);
ctx               154 libavfilter/af_biquads.c     ff_set_common_formats(ctx, formats);
ctx               159 libavfilter/af_biquads.c     ff_set_common_samplerates(ctx, formats);
ctx               235 libavfilter/af_biquads.c     AVFilterContext *ctx    = outlink->src;
ctx               236 libavfilter/af_biquads.c     BiquadsContext *s       = ctx->priv;
ctx               237 libavfilter/af_biquads.c     AVFilterLink *inlink    = ctx->inputs[0];
ctx               243 libavfilter/af_biquads.c         av_log(ctx, AV_LOG_ERROR,
ctx               419 libavfilter/af_biquads.c static av_cold void uninit(AVFilterContext *ctx)
ctx               421 libavfilter/af_biquads.c     BiquadsContext *s = ctx->priv;
ctx               449 libavfilter/af_biquads.c static av_cold int name_##_init(AVFilterContext *ctx) \
ctx               451 libavfilter/af_biquads.c     BiquadsContext *s = ctx->priv;                                      \
ctx               454 libavfilter/af_biquads.c     return init(ctx);                                             \
ctx                70 libavfilter/af_bs2b.c static av_cold int init(AVFilterContext *ctx)
ctx                72 libavfilter/af_bs2b.c     Bs2bContext *bs2b = ctx->priv;
ctx                88 libavfilter/af_bs2b.c static av_cold void uninit(AVFilterContext *ctx)
ctx                90 libavfilter/af_bs2b.c     Bs2bContext *bs2b = ctx->priv;
ctx                96 libavfilter/af_bs2b.c static int query_formats(AVFilterContext *ctx)
ctx               112 libavfilter/af_bs2b.c     ff_set_common_channel_layouts(ctx, layouts);
ctx               117 libavfilter/af_bs2b.c     ff_set_common_formats(ctx, formats);
ctx               122 libavfilter/af_bs2b.c     ff_set_common_samplerates(ctx, formats);
ctx               160 libavfilter/af_bs2b.c     AVFilterContext *ctx = outlink->src;
ctx               161 libavfilter/af_bs2b.c     Bs2bContext    *bs2b = ctx->priv;
ctx               162 libavfilter/af_bs2b.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               121 libavfilter/af_channelmap.c static av_cold int channelmap_init(AVFilterContext *ctx)
ctx               123 libavfilter/af_channelmap.c     ChannelMapContext *s = ctx->priv;
ctx               155 libavfilter/af_channelmap.c             av_log(ctx, AV_LOG_WARNING, "This syntax is deprecated, use "
ctx               172 libavfilter/af_channelmap.c         av_log(ctx, AV_LOG_ERROR, "Too many channels mapped: '%d'.\n", map_entries);
ctx               183 libavfilter/af_channelmap.c                 av_log(ctx, AV_LOG_ERROR, err);
ctx               191 libavfilter/af_channelmap.c                 av_log(ctx, AV_LOG_ERROR, err);
ctx               200 libavfilter/af_channelmap.c                 av_log(ctx, AV_LOG_ERROR, err);
ctx               210 libavfilter/af_channelmap.c                 av_log(ctx, AV_LOG_ERROR, err);
ctx               220 libavfilter/af_channelmap.c                 av_log(ctx, AV_LOG_ERROR, err);
ctx               230 libavfilter/af_channelmap.c                 av_log(ctx, AV_LOG_ERROR, err);
ctx               247 libavfilter/af_channelmap.c             av_log(ctx, AV_LOG_ERROR, "Error parsing channel layout: '%s'.\n",
ctx               260 libavfilter/af_channelmap.c             av_log(ctx, AV_LOG_ERROR,
ctx               265 libavfilter/af_channelmap.c             av_log(ctx, AV_LOG_ERROR,
ctx               273 libavfilter/af_channelmap.c         av_log(ctx, AV_LOG_ERROR, "Output channel layout is not set and "
ctx               290 libavfilter/af_channelmap.c static int channelmap_query_formats(AVFilterContext *ctx)
ctx               292 libavfilter/af_channelmap.c     ChannelMapContext *s = ctx->priv;
ctx               295 libavfilter/af_channelmap.c     ff_set_common_formats(ctx, ff_planar_sample_fmts());
ctx               296 libavfilter/af_channelmap.c     ff_set_common_samplerates(ctx, ff_all_samplerates());
ctx               302 libavfilter/af_channelmap.c     ff_channel_layouts_ref(layouts, &ctx->inputs[0]->out_channel_layouts);
ctx               303 libavfilter/af_channelmap.c     ff_channel_layouts_ref(s->channel_layouts,       &ctx->outputs[0]->in_channel_layouts);
ctx               310 libavfilter/af_channelmap.c     AVFilterContext  *ctx = inlink->dst;
ctx               311 libavfilter/af_channelmap.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               312 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                53 libavfilter/af_channelsplit.c static av_cold int init(AVFilterContext *ctx)
ctx                55 libavfilter/af_channelsplit.c     ChannelSplitContext *s = ctx->priv;
ctx                60 libavfilter/af_channelsplit.c         av_log(ctx, AV_LOG_ERROR, "Error parsing channel layout '%s'.\n",
ctx                74 libavfilter/af_channelsplit.c         ff_insert_outpad(ctx, i, &pad);
ctx                81 libavfilter/af_channelsplit.c static int query_formats(AVFilterContext *ctx)
ctx                83 libavfilter/af_channelsplit.c     ChannelSplitContext *s = ctx->priv;
ctx                87 libavfilter/af_channelsplit.c     ff_set_common_formats    (ctx, ff_planar_sample_fmts());
ctx                88 libavfilter/af_channelsplit.c     ff_set_common_samplerates(ctx, ff_all_samplerates());
ctx                91 libavfilter/af_channelsplit.c     ff_channel_layouts_ref(in_layouts, &ctx->inputs[0]->out_channel_layouts);
ctx                93 libavfilter/af_channelsplit.c     for (i = 0; i < ctx->nb_outputs; i++) {
ctx                98 libavfilter/af_channelsplit.c         ff_channel_layouts_ref(out_layouts, &ctx->outputs[i]->in_channel_layouts);
ctx               106 libavfilter/af_channelsplit.c     AVFilterContext *ctx = inlink->dst;
ctx               109 libavfilter/af_channelsplit.c     for (i = 0; i < ctx->nb_outputs; i++) {
ctx               122 libavfilter/af_channelsplit.c         ret = ff_filter_frame(ctx->outputs[i], buf_out);
ctx                67 libavfilter/af_compand.c     int (*compand)(AVFilterContext *ctx, AVFrame *frame);
ctx                86 libavfilter/af_compand.c static av_cold int init(AVFilterContext *ctx)
ctx                88 libavfilter/af_compand.c     CompandContext *s = ctx->priv;
ctx                93 libavfilter/af_compand.c static av_cold void uninit(AVFilterContext *ctx)
ctx                95 libavfilter/af_compand.c     CompandContext *s = ctx->priv;
ctx               102 libavfilter/af_compand.c static int query_formats(AVFilterContext *ctx)
ctx               114 libavfilter/af_compand.c     ff_set_common_channel_layouts(ctx, layouts);
ctx               119 libavfilter/af_compand.c     ff_set_common_formats(ctx, formats);
ctx               124 libavfilter/af_compand.c     ff_set_common_samplerates(ctx, formats);
ctx               171 libavfilter/af_compand.c static int compand_nodelay(AVFilterContext *ctx, AVFrame *frame)
ctx               173 libavfilter/af_compand.c     CompandContext *s    = ctx->priv;
ctx               174 libavfilter/af_compand.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               212 libavfilter/af_compand.c     return ff_filter_frame(ctx->outputs[0], out_frame);
ctx               217 libavfilter/af_compand.c static int compand_delay(AVFilterContext *ctx, AVFrame *frame)
ctx               219 libavfilter/af_compand.c     CompandContext *s    = ctx->priv;
ctx               220 libavfilter/af_compand.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               283 libavfilter/af_compand.c         err = ff_filter_frame(ctx->outputs[0], out_frame);
ctx               292 libavfilter/af_compand.c     AVFilterContext *ctx = outlink->src;
ctx               293 libavfilter/af_compand.c     CompandContext *s    = ctx->priv;
ctx               328 libavfilter/af_compand.c     AVFilterContext *ctx  = outlink->src;
ctx               329 libavfilter/af_compand.c     CompandContext *s     = ctx->priv;
ctx               345 libavfilter/af_compand.c         av_log(ctx, AV_LOG_ERROR, "Invalid number of channels: %d\n", channels);
ctx               350 libavfilter/af_compand.c         av_log(ctx, AV_LOG_ERROR,
ctx               355 libavfilter/af_compand.c     uninit(ctx);
ctx               362 libavfilter/af_compand.c         uninit(ctx);
ctx               372 libavfilter/af_compand.c             uninit(ctx);
ctx               384 libavfilter/af_compand.c             uninit(ctx);
ctx               391 libavfilter/af_compand.c         av_log(ctx, AV_LOG_ERROR,
ctx               394 libavfilter/af_compand.c         uninit(ctx);
ctx               404 libavfilter/af_compand.c             av_log(ctx, AV_LOG_ERROR,
ctx               406 libavfilter/af_compand.c             uninit(ctx);
ctx               410 libavfilter/af_compand.c             av_log(ctx, AV_LOG_ERROR,
ctx               412 libavfilter/af_compand.c             uninit(ctx);
ctx               416 libavfilter/af_compand.c         av_log(ctx, AV_LOG_DEBUG, "%d: x=%f y=%f\n", i, S(i).x, S(i).y);
ctx               514 libavfilter/af_compand.c         uninit(ctx);
ctx               533 libavfilter/af_compand.c     AVFilterContext *ctx = inlink->dst;
ctx               534 libavfilter/af_compand.c     CompandContext *s    = ctx->priv;
ctx               536 libavfilter/af_compand.c     return s->compand(ctx, frame);
ctx               541 libavfilter/af_compand.c     AVFilterContext *ctx = outlink->src;
ctx               542 libavfilter/af_compand.c     CompandContext *s    = ctx->priv;
ctx               545 libavfilter/af_compand.c     ret = ff_request_frame(ctx->inputs[0]);
ctx               547 libavfilter/af_compand.c     if (ret == AVERROR_EOF && !ctx->is_disabled && s->delay_count)
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                66 libavfilter/af_dcshift.c     ff_set_common_channel_layouts(ctx, layouts);
ctx                71 libavfilter/af_dcshift.c     ff_set_common_formats(ctx, formats);
ctx                76 libavfilter/af_dcshift.c     ff_set_common_samplerates(ctx, formats);
ctx                83 libavfilter/af_dcshift.c     AVFilterContext *ctx = inlink->dst;
ctx                84 libavfilter/af_dcshift.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                86 libavfilter/af_dcshift.c     DCShiftContext *s = ctx->priv;
ctx                78 libavfilter/af_earwax.c static int query_formats(AVFilterContext *ctx)
ctx                86 libavfilter/af_earwax.c     ff_set_common_formats(ctx, formats);
ctx                88 libavfilter/af_earwax.c     ff_set_common_channel_layouts(ctx, layout);
ctx                89 libavfilter/af_earwax.c     ff_set_common_samplerates(ctx, ff_make_format_list(sample_rates));
ctx                75 libavfilter/af_flanger.c static 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               102 libavfilter/af_flanger.c     ff_set_common_channel_layouts(ctx, layouts);
ctx               107 libavfilter/af_flanger.c     ff_set_common_formats(ctx, formats);
ctx               112 libavfilter/af_flanger.c     ff_set_common_samplerates(ctx, formats);
ctx               119 libavfilter/af_flanger.c     AVFilterContext *ctx = inlink->dst;
ctx               120 libavfilter/af_flanger.c     FlangerContext *s = ctx->priv;
ctx               140 libavfilter/af_flanger.c     AVFilterContext *ctx = inlink->dst;
ctx               141 libavfilter/af_flanger.c     FlangerContext *s = ctx->priv;
ctx               198 libavfilter/af_flanger.c     return ff_filter_frame(ctx->outputs[0], out_frame);
ctx               201 libavfilter/af_flanger.c static av_cold void uninit(AVFilterContext *ctx)
ctx               203 libavfilter/af_flanger.c     FlangerContext *s = ctx->priv;
ctx                83 libavfilter/af_join.c     AVFilterContext *ctx = link->dst;
ctx                84 libavfilter/af_join.c     JoinContext       *s = ctx->priv;
ctx                87 libavfilter/af_join.c     for (i = 0; i < ctx->nb_inputs; i++)
ctx                88 libavfilter/af_join.c         if (link == ctx->inputs[i])
ctx                90 libavfilter/af_join.c     av_assert0(i < ctx->nb_inputs);
ctx                97 libavfilter/af_join.c static int parse_maps(AVFilterContext *ctx)
ctx                99 libavfilter/af_join.c     JoinContext *s = ctx->priv;
ctx               105 libavfilter/af_join.c         av_log(ctx, AV_LOG_WARNING, "This syntax is deprecated, use '|' to "
ctx               122 libavfilter/af_join.c             av_log(ctx, AV_LOG_ERROR, "Missing separator '-' in channel "
ctx               130 libavfilter/af_join.c             av_log(ctx, AV_LOG_ERROR, "Invalid " inout " channel: %s.\n", str);\
ctx               134 libavfilter/af_join.c             av_log(ctx, AV_LOG_ERROR, "Channel map describes more than one "   \
ctx               142 libavfilter/af_join.c             av_log(ctx, AV_LOG_ERROR, "Output channel '%s' is not present in "
ctx               150 libavfilter/af_join.c             av_log(ctx, AV_LOG_ERROR, "Multiple maps for output channel "
ctx               158 libavfilter/af_join.c             av_log(ctx, AV_LOG_ERROR, "Invalid input stream index: %d.\n",
ctx               184 libavfilter/af_join.c static av_cold int join_init(AVFilterContext *ctx)
ctx               186 libavfilter/af_join.c     JoinContext *s = ctx->priv;
ctx               190 libavfilter/af_join.c         av_log(ctx, AV_LOG_ERROR, "Error parsing channel layout '%s'.\n",
ctx               207 libavfilter/af_join.c     if ((ret = parse_maps(ctx)) < 0)
ctx               223 libavfilter/af_join.c         ff_insert_inpad(ctx, i, &pad);
ctx               229 libavfilter/af_join.c static av_cold void join_uninit(AVFilterContext *ctx)
ctx               231 libavfilter/af_join.c     JoinContext *s = ctx->priv;
ctx               234 libavfilter/af_join.c     for (i = 0; i < ctx->nb_inputs; i++) {
ctx               235 libavfilter/af_join.c         av_freep(&ctx->input_pads[i].name);
ctx               244 libavfilter/af_join.c static int join_query_formats(AVFilterContext *ctx)
ctx               246 libavfilter/af_join.c     JoinContext *s = ctx->priv;
ctx               251 libavfilter/af_join.c     ff_channel_layouts_ref(layouts, &ctx->outputs[0]->in_channel_layouts);
ctx               253 libavfilter/af_join.c     for (i = 0; i < ctx->nb_inputs; i++) {
ctx               257 libavfilter/af_join.c         ff_channel_layouts_ref(layouts, &ctx->inputs[i]->out_channel_layouts);
ctx               260 libavfilter/af_join.c     ff_set_common_formats    (ctx, ff_planar_sample_fmts());
ctx               261 libavfilter/af_join.c     ff_set_common_samplerates(ctx, ff_all_samplerates());
ctx               266 libavfilter/af_join.c static void guess_map_matching(AVFilterContext *ctx, ChannelMap *ch,
ctx               271 libavfilter/af_join.c     for (i = 0; i < ctx->nb_inputs; i++) {
ctx               272 libavfilter/af_join.c         AVFilterLink *link = ctx->inputs[i];
ctx               284 libavfilter/af_join.c static void guess_map_any(AVFilterContext *ctx, ChannelMap *ch,
ctx               289 libavfilter/af_join.c     for (i = 0; i < ctx->nb_inputs; i++) {
ctx               290 libavfilter/af_join.c         AVFilterLink *link = ctx->inputs[i];
ctx               305 libavfilter/af_join.c     AVFilterContext *ctx = outlink->src;
ctx               306 libavfilter/af_join.c     JoinContext       *s = ctx->priv;
ctx               311 libavfilter/af_join.c     if (!(inputs = av_mallocz_array(ctx->nb_inputs, sizeof(*inputs))))
ctx               320 libavfilter/af_join.c         inlink = ctx->inputs[ch->input];
ctx               327 libavfilter/af_join.c             av_log(ctx, AV_LOG_ERROR, "Requested channel %s is not present in "
ctx               343 libavfilter/af_join.c             guess_map_matching(ctx, ch, inputs);
ctx               351 libavfilter/af_join.c             guess_map_any(ctx, ch, inputs);
ctx               354 libavfilter/af_join.c             av_log(ctx, AV_LOG_ERROR, "Could not find input channel for "
ctx               360 libavfilter/af_join.c         ch->in_channel_idx = av_get_channel_layout_channel_index(ctx->inputs[ch->input]->channel_layout,
ctx               365 libavfilter/af_join.c     av_log(ctx, AV_LOG_VERBOSE, "mappings: ");
ctx               368 libavfilter/af_join.c         av_log(ctx, AV_LOG_VERBOSE, "%d.%s => %s ", ch->input,
ctx               372 libavfilter/af_join.c     av_log(ctx, AV_LOG_VERBOSE, "\n");
ctx               374 libavfilter/af_join.c     for (i = 0; i < ctx->nb_inputs; i++) {
ctx               376 libavfilter/af_join.c             av_log(ctx, AV_LOG_WARNING, "No channels are used from input "
ctx               387 libavfilter/af_join.c     AVFilterContext *ctx = outlink->src;
ctx               388 libavfilter/af_join.c     JoinContext *s       = ctx->priv;
ctx               396 libavfilter/af_join.c     for (i = 0; i < ctx->nb_inputs; i++) {
ctx               397 libavfilter/af_join.c         AVFilterLink *inlink = ctx->inputs[i];
ctx               407 libavfilter/af_join.c             for (j = 1; !i && j < ctx->nb_inputs; j++)
ctx               408 libavfilter/af_join.c                 ctx->inputs[j]->request_samples = nb_samples;
ctx               489 libavfilter/af_join.c     for (i = 0; i < ctx->nb_inputs; i++)
ctx                88 libavfilter/af_ladspa.c static void print_ctl_info(AVFilterContext *ctx, int level,
ctx                94 libavfilter/af_ladspa.c     av_log(ctx, level, "c%i: %s [", ctl, s->desc->PortNames[map[ctl]]);
ctx                97 libavfilter/af_ladspa.c         av_log(ctx, level, "toggled (1 or 0)");
ctx               100 libavfilter/af_ladspa.c             av_log(ctx, level, " (default %i)", (int)values[ctl]);
ctx               103 libavfilter/af_ladspa.c             av_log(ctx, level, "<int>");
ctx               106 libavfilter/af_ladspa.c                 av_log(ctx, level, ", min: %i", (int)h->LowerBound);
ctx               109 libavfilter/af_ladspa.c                 av_log(ctx, level, ", max: %i", (int)h->UpperBound);
ctx               112 libavfilter/af_ladspa.c                 av_log(ctx, level, " (value %d)", (int)values[ctl]);
ctx               114 libavfilter/af_ladspa.c                 av_log(ctx, level, " (default %d)", (int)values[ctl]);
ctx               116 libavfilter/af_ladspa.c             av_log(ctx, level, "<float>");
ctx               119 libavfilter/af_ladspa.c                 av_log(ctx, level, ", min: %f", h->LowerBound);
ctx               122 libavfilter/af_ladspa.c                 av_log(ctx, level, ", max: %f", h->UpperBound);
ctx               125 libavfilter/af_ladspa.c                 av_log(ctx, level, " (value %f)", values[ctl]);
ctx               127 libavfilter/af_ladspa.c                 av_log(ctx, level, " (default %f)", values[ctl]);
ctx               131 libavfilter/af_ladspa.c             av_log(ctx, level, ", multiple of sample rate");
ctx               134 libavfilter/af_ladspa.c             av_log(ctx, level, ", logarithmic scale");
ctx               137 libavfilter/af_ladspa.c     av_log(ctx, level, "]\n");
ctx               142 libavfilter/af_ladspa.c     AVFilterContext *ctx = inlink->dst;
ctx               143 libavfilter/af_ladspa.c     LADSPAContext *s = ctx->priv;
ctx               152 libavfilter/af_ladspa.c         out = ff_get_audio_buffer(ctx->outputs[0], in->nb_samples);
ctx               175 libavfilter/af_ladspa.c         print_ctl_info(ctx, AV_LOG_VERBOSE, s, i, s->ocmap, s->octlv, 1);
ctx               180 libavfilter/af_ladspa.c     return ff_filter_frame(ctx->outputs[0], out);
ctx               185 libavfilter/af_ladspa.c     AVFilterContext *ctx = outlink->src;
ctx               186 libavfilter/af_ladspa.c     LADSPAContext *s = ctx->priv;
ctx               191 libavfilter/af_ladspa.c     if (ctx->nb_inputs)
ctx               192 libavfilter/af_ladspa.c         return ff_request_frame(ctx->inputs[0]);
ctx               209 libavfilter/af_ladspa.c         print_ctl_info(ctx, AV_LOG_INFO, s, i, s->ocmap, s->octlv, 1);
ctx               255 libavfilter/af_ladspa.c static int connect_ports(AVFilterContext *ctx, AVFilterLink *link)
ctx               257 libavfilter/af_ladspa.c     LADSPAContext *s = ctx->priv;
ctx               268 libavfilter/af_ladspa.c             av_log(ctx, AV_LOG_ERROR, "Could not instantiate plugin.\n");
ctx               284 libavfilter/af_ladspa.c     av_log(ctx, AV_LOG_DEBUG, "handles: %d\n", s->nb_handles);
ctx               291 libavfilter/af_ladspa.c     AVFilterContext *ctx = inlink->dst;
ctx               293 libavfilter/af_ladspa.c     return connect_ports(ctx, inlink);
ctx               298 libavfilter/af_ladspa.c     AVFilterContext *ctx = outlink->src;
ctx               301 libavfilter/af_ladspa.c     if (ctx->nb_inputs) {
ctx               302 libavfilter/af_ladspa.c         AVFilterLink *inlink = ctx->inputs[0];
ctx               309 libavfilter/af_ladspa.c         LADSPAContext *s = ctx->priv;
ctx               314 libavfilter/af_ladspa.c         ret = connect_ports(ctx, outlink);
ctx               352 libavfilter/af_ladspa.c static int set_control(AVFilterContext *ctx, unsigned long port, LADSPA_Data value)
ctx               354 libavfilter/af_ladspa.c     LADSPAContext *s = ctx->priv;
ctx               360 libavfilter/af_ladspa.c         av_log(ctx, AV_LOG_ERROR, "Control c%ld is out of range [0 - %lu].\n",
ctx               367 libavfilter/af_ladspa.c         av_log(ctx, AV_LOG_ERROR,
ctx               375 libavfilter/af_ladspa.c         av_log(ctx, AV_LOG_ERROR,
ctx               386 libavfilter/af_ladspa.c static av_cold int init(AVFilterContext *ctx)
ctx               388 libavfilter/af_ladspa.c     LADSPAContext *s = ctx->priv;
ctx               398 libavfilter/af_ladspa.c         av_log(ctx, AV_LOG_ERROR, "No plugin name provided\n");
ctx               431 libavfilter/af_ladspa.c         av_log(ctx, AV_LOG_ERROR, "Failed to load '%s'\n", s->dl_name);
ctx               437 libavfilter/af_ladspa.c         av_log(ctx, AV_LOG_ERROR, "Could not find ladspa_descriptor: %s\n", dlerror());
ctx               443 libavfilter/af_ladspa.c         av_log(ctx, AV_LOG_INFO, "The '%s' library contains the following plugins:\n", s->dl_name);
ctx               444 libavfilter/af_ladspa.c         av_log(ctx, AV_LOG_INFO, "I = Input Channels\n");
ctx               445 libavfilter/af_ladspa.c         av_log(ctx, AV_LOG_INFO, "O = Output Channels\n");
ctx               446 libavfilter/af_ladspa.c         av_log(ctx, AV_LOG_INFO, "I:O %-25s %s\n", "Plugin", "Description");
ctx               447 libavfilter/af_ladspa.c         av_log(ctx, AV_LOG_INFO, "\n");
ctx               452 libavfilter/af_ladspa.c             av_log(ctx, AV_LOG_INFO, "%lu:%lu %-25s %s\n", inputs, outputs, desc->Label,
ctx               454 libavfilter/af_ladspa.c             av_log(ctx, AV_LOG_VERBOSE, "Maker: %s\n",
ctx               456 libavfilter/af_ladspa.c             av_log(ctx, AV_LOG_VERBOSE, "Copyright: %s\n",
ctx               464 libavfilter/af_ladspa.c                 av_log(ctx, AV_LOG_ERROR, "Could not find plugin: %s\n", s->plugin);
ctx               518 libavfilter/af_ladspa.c             av_log(ctx, AV_LOG_INFO,
ctx               522 libavfilter/af_ladspa.c             av_log(ctx, AV_LOG_INFO,
ctx               526 libavfilter/af_ladspa.c                 print_ctl_info(ctx, AV_LOG_INFO, s, i, s->icmap, s->ictlv, 0);
ctx               542 libavfilter/af_ladspa.c             av_log(ctx, AV_LOG_ERROR, "Invalid syntax.\n");
ctx               546 libavfilter/af_ladspa.c         if ((ret = set_control(ctx, i, val)) < 0)
ctx               554 libavfilter/af_ladspa.c             av_log(ctx, AV_LOG_ERROR, "Control c%d must be set.\n", i);
ctx               555 libavfilter/af_ladspa.c             print_ctl_info(ctx, AV_LOG_ERROR, s, i, s->icmap, s->ictlv, 0);
ctx               569 libavfilter/af_ladspa.c         if (ff_insert_inpad(ctx, ctx->nb_inputs, &pad) < 0) {
ctx               575 libavfilter/af_ladspa.c     av_log(ctx, AV_LOG_DEBUG, "ports: %lu\n", nb_ports);
ctx               576 libavfilter/af_ladspa.c     av_log(ctx, AV_LOG_DEBUG, "inputs: %lu outputs: %lu\n",
ctx               578 libavfilter/af_ladspa.c     av_log(ctx, AV_LOG_DEBUG, "input controls: %lu output controls: %lu\n",
ctx               584 libavfilter/af_ladspa.c static int query_formats(AVFilterContext *ctx)
ctx               586 libavfilter/af_ladspa.c     LADSPAContext *s = ctx->priv;
ctx               595 libavfilter/af_ladspa.c     ff_set_common_formats(ctx, formats);
ctx               602 libavfilter/af_ladspa.c         ff_set_common_samplerates(ctx, formats);
ctx               606 libavfilter/af_ladspa.c         ff_set_common_samplerates(ctx, ff_make_format_list(sample_rates));
ctx               615 libavfilter/af_ladspa.c         ff_set_common_channel_layouts(ctx, layouts);
ctx               617 libavfilter/af_ladspa.c         AVFilterLink *outlink = ctx->outputs[0];
ctx               620 libavfilter/af_ladspa.c             AVFilterLink *inlink = ctx->inputs[0];
ctx               643 libavfilter/af_ladspa.c static av_cold void uninit(AVFilterContext *ctx)
ctx               645 libavfilter/af_ladspa.c     LADSPAContext *s = ctx->priv;
ctx               667 libavfilter/af_ladspa.c     if (ctx->nb_inputs)
ctx               668 libavfilter/af_ladspa.c         av_freep(&ctx->input_pads[0].name);
ctx               671 libavfilter/af_ladspa.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               680 libavfilter/af_ladspa.c     return set_control(ctx, port, value);
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               110 libavfilter/af_pan.c         av_log(ctx, AV_LOG_ERROR,
ctx               119 libavfilter/af_pan.c                                   &pan->nb_output_channels, arg, ctx);
ctx               127 libavfilter/af_pan.c             av_log(ctx, AV_LOG_ERROR,
ctx               134 libavfilter/af_pan.c                 av_log(ctx, AV_LOG_ERROR,
ctx               146 libavfilter/af_pan.c             av_log(ctx, AV_LOG_ERROR,
ctx               158 libavfilter/af_pan.c             av_log(ctx, AV_LOG_ERROR,
ctx               169 libavfilter/af_pan.c                 av_log(ctx, AV_LOG_ERROR,
ctx               176 libavfilter/af_pan.c                 av_log(ctx, AV_LOG_ERROR,
ctx               186 libavfilter/af_pan.c                 av_log(ctx, AV_LOG_ERROR, "Syntax error near \"%.8s\"\n", arg);
ctx               223 libavfilter/af_pan.c static int query_formats(AVFilterContext *ctx)
ctx               225 libavfilter/af_pan.c     PanContext *pan = ctx->priv;
ctx               226 libavfilter/af_pan.c     AVFilterLink *inlink  = ctx->inputs[0];
ctx               227 libavfilter/af_pan.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               233 libavfilter/af_pan.c     ff_set_common_formats(ctx, ff_all_formats(AVMEDIA_TYPE_AUDIO));
ctx               238 libavfilter/af_pan.c     ff_set_common_samplerates(ctx, formats);
ctx               255 libavfilter/af_pan.c     AVFilterContext *ctx = link->dst;
ctx               256 libavfilter/af_pan.c     PanContext *pan = ctx->priv;
ctx               276 libavfilter/af_pan.c         av_log(ctx, AV_LOG_ERROR,
ctx               286 libavfilter/af_pan.c                                   0, ctx);
ctx               327 libavfilter/af_pan.c                     av_log(ctx, AV_LOG_WARNING,
ctx               351 libavfilter/af_pan.c         av_log(ctx, AV_LOG_VERBOSE, "o%d = %s\n", i, buf);
ctx               355 libavfilter/af_pan.c         av_log(ctx, AV_LOG_INFO, "Pure channel mapping detected:");
ctx               358 libavfilter/af_pan.c                 av_log(ctx, AV_LOG_INFO, " M");
ctx               360 libavfilter/af_pan.c                 av_log(ctx, AV_LOG_INFO, " %d", pan->channel_map[i]);
ctx               361 libavfilter/af_pan.c         av_log(ctx, AV_LOG_INFO, "\n");
ctx               388 libavfilter/af_pan.c static av_cold void uninit(AVFilterContext *ctx)
ctx               390 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     ff_set_common_formats(ctx, formats);
ctx               331 libavfilter/af_replaygain.c     ff_set_common_channel_layouts(ctx, layout);
ctx               336 libavfilter/af_replaygain.c     ff_set_common_samplerates(ctx, formats);
ctx               343 libavfilter/af_replaygain.c     AVFilterContext *ctx = inlink->dst;
ctx               344 libavfilter/af_replaygain.c     ReplayGainContext *s = ctx->priv;
ctx               549 libavfilter/af_replaygain.c     AVFilterContext *ctx = inlink->dst;
ctx               550 libavfilter/af_replaygain.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               551 libavfilter/af_replaygain.c     ReplayGainContext *s = ctx->priv;
ctx               578 libavfilter/af_replaygain.c static av_cold void uninit(AVFilterContext *ctx)
ctx               580 libavfilter/af_replaygain.c     ReplayGainContext *s = ctx->priv;
ctx               583 libavfilter/af_replaygain.c     av_log(ctx, AV_LOG_INFO, "track_gain = %+.2f dB\n", gain);
ctx               584 libavfilter/af_replaygain.c     av_log(ctx, AV_LOG_INFO, "track_peak = %.6f\n", s->peak);
ctx                50 libavfilter/af_resample.c static av_cold int init(AVFilterContext *ctx, AVDictionary **opts)
ctx                52 libavfilter/af_resample.c     ResampleContext *s = ctx->priv;
ctx                77 libavfilter/af_resample.c static av_cold void uninit(AVFilterContext *ctx)
ctx                79 libavfilter/af_resample.c     ResampleContext *s = ctx->priv;
ctx                88 libavfilter/af_resample.c static int query_formats(AVFilterContext *ctx)
ctx                90 libavfilter/af_resample.c     AVFilterLink *inlink  = ctx->inputs[0];
ctx                91 libavfilter/af_resample.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               114 libavfilter/af_resample.c     AVFilterContext *ctx = outlink->src;
ctx               115 libavfilter/af_resample.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               116 libavfilter/af_resample.c     ResampleContext   *s = ctx->priv;
ctx               141 libavfilter/af_resample.c             av_log(ctx, AV_LOG_VERBOSE, "lavr option: %s=%s\n", e->key, e->value);
ctx               166 libavfilter/af_resample.c     av_log(ctx, AV_LOG_VERBOSE,
ctx               176 libavfilter/af_resample.c     AVFilterContext *ctx = outlink->src;
ctx               177 libavfilter/af_resample.c     ResampleContext   *s = ctx->priv;
ctx               182 libavfilter/af_resample.c         ret = ff_request_frame(ctx->inputs[0]);
ctx               212 libavfilter/af_resample.c     AVFilterContext  *ctx = inlink->dst;
ctx               213 libavfilter/af_resample.c     ResampleContext    *s = ctx->priv;
ctx               214 libavfilter/af_resample.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               244 libavfilter/af_resample.c                 av_log(ctx, AV_LOG_WARNING, "First timestamp is missing, "
ctx               117 libavfilter/af_silencedetect.c     AVFilterContext *ctx = inlink->dst;
ctx               118 libavfilter/af_silencedetect.c     SilenceDetectContext *s = ctx->priv;
ctx               156 libavfilter/af_silencedetect.c static int query_formats(AVFilterContext *ctx)
ctx               171 libavfilter/af_silencedetect.c     ff_set_common_channel_layouts(ctx, layouts);
ctx               176 libavfilter/af_silencedetect.c     ff_set_common_formats(ctx, formats);
ctx               181 libavfilter/af_silencedetect.c     ff_set_common_samplerates(ctx, formats);
ctx                90 libavfilter/af_silenceremove.c static av_cold int init(AVFilterContext *ctx)
ctx                92 libavfilter/af_silenceremove.c     SilenceRemoveContext *s = ctx->priv;
ctx               113 libavfilter/af_silenceremove.c     AVFilterContext *ctx = inlink->dst;
ctx               114 libavfilter/af_silenceremove.c     SilenceRemoveContext *s = ctx->priv;
ctx               199 libavfilter/af_silenceremove.c     AVFilterContext *ctx = inlink->dst;
ctx               200 libavfilter/af_silenceremove.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               201 libavfilter/af_silenceremove.c     SilenceRemoveContext *s = ctx->priv;
ctx               390 libavfilter/af_silenceremove.c     AVFilterContext *ctx = outlink->src;
ctx               391 libavfilter/af_silenceremove.c     SilenceRemoveContext *s = ctx->priv;
ctx               394 libavfilter/af_silenceremove.c     ret = ff_request_frame(ctx->inputs[0]);
ctx               407 libavfilter/af_silenceremove.c             ret = ff_filter_frame(ctx->inputs[0], frame);
ctx               414 libavfilter/af_silenceremove.c static int query_formats(AVFilterContext *ctx)
ctx               425 libavfilter/af_silenceremove.c     ff_set_common_channel_layouts(ctx, layouts);
ctx               430 libavfilter/af_silenceremove.c     ff_set_common_formats(ctx, formats);
ctx               435 libavfilter/af_silenceremove.c     ff_set_common_samplerates(ctx, formats);
ctx               440 libavfilter/af_silenceremove.c static av_cold void uninit(AVFilterContext *ctx)
ctx               442 libavfilter/af_silenceremove.c     SilenceRemoveContext *s = ctx->priv;
ctx               111 libavfilter/af_volume.c static av_cold int init(AVFilterContext *ctx)
ctx               113 libavfilter/af_volume.c     VolumeContext *vol = ctx->priv;
ctx               119 libavfilter/af_volume.c     return set_expr(&vol->volume_pexpr, vol->volume_expr, ctx);
ctx               122 libavfilter/af_volume.c static av_cold void uninit(AVFilterContext *ctx)
ctx               124 libavfilter/af_volume.c     VolumeContext *vol = ctx->priv;
ctx               130 libavfilter/af_volume.c static int query_formats(AVFilterContext *ctx)
ctx               132 libavfilter/af_volume.c     VolumeContext *vol = ctx->priv;
ctx               160 libavfilter/af_volume.c     ff_set_common_channel_layouts(ctx, layouts);
ctx               165 libavfilter/af_volume.c     ff_set_common_formats(ctx, formats);
ctx               170 libavfilter/af_volume.c     ff_set_common_samplerates(ctx, formats);
ctx               253 libavfilter/af_volume.c static int set_volume(AVFilterContext *ctx)
ctx               255 libavfilter/af_volume.c     VolumeContext *vol = ctx->priv;
ctx               260 libavfilter/af_volume.c             av_log(ctx, AV_LOG_ERROR, "Invalid value NaN for volume\n");
ctx               263 libavfilter/af_volume.c             av_log(ctx, AV_LOG_WARNING, "Invalid value NaN for volume, setting to 0\n");
ctx               269 libavfilter/af_volume.c     av_log(ctx, AV_LOG_VERBOSE, "n:%f t:%f pts:%f precision:%s ",
ctx               276 libavfilter/af_volume.c         av_log(ctx, AV_LOG_VERBOSE, "volume_i:%d/255 ", vol->volume_i);
ctx               278 libavfilter/af_volume.c     av_log(ctx, AV_LOG_VERBOSE, "volume:%f volume_dB:%f\n",
ctx               287 libavfilter/af_volume.c     AVFilterContext *ctx = outlink->src;
ctx               288 libavfilter/af_volume.c     VolumeContext *vol   = ctx->priv;
ctx               289 libavfilter/af_volume.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               314 libavfilter/af_volume.c     return set_volume(ctx);
ctx               317 libavfilter/af_volume.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               320 libavfilter/af_volume.c     VolumeContext *vol = ctx->priv;
ctx               324 libavfilter/af_volume.c         if ((ret = set_expr(&vol->volume_pexpr, args, ctx)) < 0)
ctx               327 libavfilter/af_volume.c             set_volume(ctx);
ctx               339 libavfilter/af_volume.c     AVFilterContext *ctx = inlink->dst;
ctx               397 libavfilter/af_volume.c         set_volume(ctx);
ctx                36 libavfilter/af_volumedetect.c static int query_formats(AVFilterContext *ctx)
ctx                47 libavfilter/af_volumedetect.c     ff_set_common_formats(ctx, formats);
ctx                54 libavfilter/af_volumedetect.c     AVFilterContext *ctx = inlink->dst;
ctx                55 libavfilter/af_volumedetect.c     VolDetectContext *vd = ctx->priv;
ctx                86 libavfilter/af_volumedetect.c static void print_stats(AVFilterContext *ctx)
ctx                88 libavfilter/af_volumedetect.c     VolDetectContext *vd = ctx->priv;
ctx                95 libavfilter/af_volumedetect.c     av_log(ctx, AV_LOG_INFO, "n_samples: %"PRId64"\n", nb_samples);
ctx               112 libavfilter/af_volumedetect.c     av_log(ctx, AV_LOG_INFO, "mean_volume: %.1f dB\n", -logdb(power));
ctx               118 libavfilter/af_volumedetect.c     av_log(ctx, AV_LOG_INFO, "max_volume: %.1f dB\n", -logdb(max_volume * max_volume));
ctx               124 libavfilter/af_volumedetect.c         av_log(ctx, AV_LOG_INFO, "histogram_%ddb: %"PRId64"\n", i, histdb[i]);
ctx               129 libavfilter/af_volumedetect.c static av_cold void uninit(AVFilterContext *ctx)
ctx               131 libavfilter/af_volumedetect.c     print_stats(ctx);
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                84 libavfilter/asrc_anullsrc.c     ff_set_common_formats        (ctx, ff_all_formats(AVMEDIA_TYPE_AUDIO));
ctx                85 libavfilter/asrc_anullsrc.c     ff_set_common_channel_layouts(ctx, avfilter_make_format64_list(chlayouts));
ctx                86 libavfilter/asrc_anullsrc.c     ff_set_common_samplerates    (ctx, ff_make_format_list(sample_rates));
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               181 libavfilter/asrc_flite.c         av_log(ctx, AV_LOG_ERROR,
ctx               193 libavfilter/asrc_flite.c static av_cold void uninit(AVFilterContext *ctx)
ctx               195 libavfilter/asrc_flite.c     FliteContext *flite = ctx->priv;
ctx               205 libavfilter/asrc_flite.c static int query_formats(AVFilterContext *ctx)
ctx               207 libavfilter/asrc_flite.c     FliteContext *flite = ctx->priv;
ctx               215 libavfilter/asrc_flite.c     ff_set_common_channel_layouts(ctx, chlayouts);
ctx               217 libavfilter/asrc_flite.c     ff_set_common_formats(ctx, sample_formats);
ctx               219 libavfilter/asrc_flite.c     ff_set_common_samplerates (ctx, sample_rates);
ctx               226 libavfilter/asrc_flite.c     AVFilterContext *ctx = outlink->src;
ctx               227 libavfilter/asrc_flite.c     FliteContext *flite = ctx->priv;
ctx               232 libavfilter/asrc_flite.c     av_log(ctx, AV_LOG_VERBOSE, "voice:%s fmt:%s sample_rate:%d\n",
ctx               123 libavfilter/asrc_sine.c static av_cold int init(AVFilterContext *ctx)
ctx               125 libavfilter/asrc_sine.c     SineContext *sine = ctx->priv;
ctx               142 libavfilter/asrc_sine.c static av_cold void uninit(AVFilterContext *ctx)
ctx               144 libavfilter/asrc_sine.c     SineContext *sine = ctx->priv;
ctx               149 libavfilter/asrc_sine.c static av_cold int query_formats(AVFilterContext *ctx)
ctx               151 libavfilter/asrc_sine.c     SineContext *sine = ctx->priv;
ctx               157 libavfilter/asrc_sine.c     ff_set_common_formats (ctx, ff_make_format_list(sample_fmts));
ctx               158 libavfilter/asrc_sine.c     ff_set_common_channel_layouts(ctx, avfilter_make_format64_list(chlayouts));
ctx               159 libavfilter/asrc_sine.c     ff_set_common_samplerates(ctx, ff_make_format_list(sample_rates));
ctx               115 libavfilter/avf_avectorscope.c static int query_formats(AVFilterContext *ctx)
ctx               119 libavfilter/avf_avectorscope.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               120 libavfilter/avf_avectorscope.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               147 libavfilter/avf_avectorscope.c     AVFilterContext *ctx = inlink->dst;
ctx               148 libavfilter/avf_avectorscope.c     AudioVectorScopeContext *s = ctx->priv;
ctx               176 libavfilter/avf_avectorscope.c     AVFilterContext *ctx = inlink->dst;
ctx               177 libavfilter/avf_avectorscope.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               178 libavfilter/avf_avectorscope.c     AudioVectorScopeContext *s = ctx->priv;
ctx               239 libavfilter/avf_avectorscope.c static av_cold void uninit(AVFilterContext *ctx)
ctx               241 libavfilter/avf_avectorscope.c     AudioVectorScopeContext *s = ctx->priv;
ctx                77 libavfilter/avf_concat.c static int query_formats(AVFilterContext *ctx)
ctx                79 libavfilter/avf_concat.c     ConcatContext *cat = ctx->priv;
ctx                93 libavfilter/avf_concat.c             ff_formats_ref(formats, &ctx->outputs[idx]->in_formats);
ctx                98 libavfilter/avf_concat.c                 ff_formats_ref(rates, &ctx->outputs[idx]->in_samplerates);
ctx               102 libavfilter/avf_concat.c                 ff_channel_layouts_ref(layouts, &ctx->outputs[idx]->in_channel_layouts);
ctx               107 libavfilter/avf_concat.c                 ff_formats_ref(formats, &ctx->inputs[idx]->out_formats);
ctx               109 libavfilter/avf_concat.c                     ff_formats_ref(rates, &ctx->inputs[idx]->out_samplerates);
ctx               110 libavfilter/avf_concat.c                     ff_channel_layouts_ref(layouts, &ctx->inputs[idx]->out_channel_layouts);
ctx               112 libavfilter/avf_concat.c                 idx += ctx->nb_outputs;
ctx               123 libavfilter/avf_concat.c     AVFilterContext *ctx = outlink->src;
ctx               124 libavfilter/avf_concat.c     ConcatContext *cat   = ctx->priv;
ctx               127 libavfilter/avf_concat.c     AVFilterLink *inlink = ctx->inputs[in_no];
ctx               136 libavfilter/avf_concat.c         inlink = ctx->inputs[in_no += ctx->nb_outputs];
ctx               145 libavfilter/avf_concat.c             av_log(ctx, AV_LOG_ERROR, "Input link %s parameters "
ctx               148 libavfilter/avf_concat.c                    ctx->input_pads[in_no].name, inlink->w, inlink->h,
ctx               151 libavfilter/avf_concat.c                    ctx->input_pads[out_no].name, outlink->w, outlink->h,
ctx               162 libavfilter/avf_concat.c static int push_frame(AVFilterContext *ctx, unsigned in_no, AVFrame *buf)
ctx               164 libavfilter/avf_concat.c     ConcatContext *cat = ctx->priv;
ctx               165 libavfilter/avf_concat.c     unsigned out_no = in_no % ctx->nb_outputs;
ctx               166 libavfilter/avf_concat.c     AVFilterLink * inlink = ctx-> inputs[ in_no];
ctx               167 libavfilter/avf_concat.c     AVFilterLink *outlink = ctx->outputs[out_no];
ctx               189 libavfilter/avf_concat.c     AVFilterContext *ctx  = inlink->dst;
ctx               190 libavfilter/avf_concat.c     ConcatContext *cat    = ctx->priv;
ctx               194 libavfilter/avf_concat.c         av_log(ctx, AV_LOG_ERROR, "Frame after EOF on input %s\n",
ctx               195 libavfilter/avf_concat.c                ctx->input_pads[in_no].name);
ctx               197 libavfilter/avf_concat.c     } else if (in_no >= cat->cur_idx + ctx->nb_outputs) {
ctx               198 libavfilter/avf_concat.c         ff_bufqueue_add(ctx, &cat->in[in_no].queue, buf);
ctx               200 libavfilter/avf_concat.c         return push_frame(ctx, in_no, buf);
ctx               207 libavfilter/avf_concat.c     AVFilterContext *ctx = inlink->dst;
ctx               209 libavfilter/avf_concat.c     AVFilterLink *outlink = ctx->outputs[in_no % ctx->nb_outputs];
ctx               216 libavfilter/avf_concat.c     AVFilterContext *ctx = inlink->dst;
ctx               218 libavfilter/avf_concat.c     AVFilterLink *outlink = ctx->outputs[in_no % ctx->nb_outputs];
ctx               228 libavfilter/avf_concat.c static void close_input(AVFilterContext *ctx, unsigned in_no)
ctx               230 libavfilter/avf_concat.c     ConcatContext *cat = ctx->priv;
ctx               234 libavfilter/avf_concat.c     av_log(ctx, AV_LOG_VERBOSE, "EOF on %s, %d streams left in segment.\n",
ctx               235 libavfilter/avf_concat.c            ctx->input_pads[in_no].name, cat->nb_in_active);
ctx               238 libavfilter/avf_concat.c static void find_next_delta_ts(AVFilterContext *ctx, int64_t *seg_delta)
ctx               240 libavfilter/avf_concat.c     ConcatContext *cat = ctx->priv;
ctx               242 libavfilter/avf_concat.c     unsigned imax = i + ctx->nb_outputs;
ctx               252 libavfilter/avf_concat.c static int send_silence(AVFilterContext *ctx, unsigned in_no, unsigned out_no,
ctx               255 libavfilter/avf_concat.c     ConcatContext *cat = ctx->priv;
ctx               256 libavfilter/avf_concat.c     AVFilterLink *outlink = ctx->outputs[out_no];
ctx               260 libavfilter/avf_concat.c     AVRational rate_tb = { 1, ctx->inputs[in_no]->sample_rate };
ctx               286 libavfilter/avf_concat.c static int flush_segment(AVFilterContext *ctx)
ctx               289 libavfilter/avf_concat.c     ConcatContext *cat = ctx->priv;
ctx               293 libavfilter/avf_concat.c     find_next_delta_ts(ctx, &seg_delta);
ctx               294 libavfilter/avf_concat.c     cat->cur_idx += ctx->nb_outputs;
ctx               295 libavfilter/avf_concat.c     cat->nb_in_active = ctx->nb_outputs;
ctx               296 libavfilter/avf_concat.c     av_log(ctx, AV_LOG_VERBOSE, "Segment finished at pts=%"PRId64"\n",
ctx               299 libavfilter/avf_concat.c     if (cat->cur_idx < ctx->nb_inputs) {
ctx               304 libavfilter/avf_concat.c             ret = send_silence(ctx, cat->cur_idx - ctx->nb_outputs + str, str,
ctx               311 libavfilter/avf_concat.c         str_max = cat->cur_idx + ctx->nb_outputs;
ctx               314 libavfilter/avf_concat.c                 ret = push_frame(ctx, str, ff_bufqueue_get(&cat->in[str].queue));
ctx               325 libavfilter/avf_concat.c     AVFilterContext *ctx = outlink->src;
ctx               326 libavfilter/avf_concat.c     ConcatContext *cat   = ctx->priv;
ctx               333 libavfilter/avf_concat.c         if (in_no >= ctx->nb_inputs)
ctx               336 libavfilter/avf_concat.c             ret = ff_request_frame(ctx->inputs[in_no]);
ctx               339 libavfilter/avf_concat.c             close_input(ctx, in_no);
ctx               343 libavfilter/avf_concat.c         str_max = cat->cur_idx + ctx->nb_outputs - 1;
ctx               348 libavfilter/avf_concat.c             ret = ff_request_frame(ctx->inputs[str]);
ctx               350 libavfilter/avf_concat.c                 close_input(ctx, str);
ctx               354 libavfilter/avf_concat.c         ret = flush_segment(ctx);
ctx               357 libavfilter/avf_concat.c         in_no += ctx->nb_outputs;
ctx               361 libavfilter/avf_concat.c static av_cold int init(AVFilterContext *ctx)
ctx               363 libavfilter/avf_concat.c     ConcatContext *cat = ctx->priv;
ctx               377 libavfilter/avf_concat.c                 ff_insert_inpad(ctx, ctx->nb_inputs, &pad);
ctx               390 libavfilter/avf_concat.c             ff_insert_outpad(ctx, ctx->nb_outputs, &pad);
ctx               394 libavfilter/avf_concat.c     cat->in = av_calloc(ctx->nb_inputs, sizeof(*cat->in));
ctx               397 libavfilter/avf_concat.c     cat->nb_in_active = ctx->nb_outputs;
ctx               401 libavfilter/avf_concat.c static av_cold void uninit(AVFilterContext *ctx)
ctx               403 libavfilter/avf_concat.c     ConcatContext *cat = ctx->priv;
ctx               406 libavfilter/avf_concat.c     for (i = 0; i < ctx->nb_inputs; i++) {
ctx               407 libavfilter/avf_concat.c         av_freep(&ctx->input_pads[i].name);
ctx               410 libavfilter/avf_concat.c     for (i = 0; i < ctx->nb_outputs; i++)
ctx               411 libavfilter/avf_concat.c         av_freep(&ctx->output_pads[i].name);
ctx               118 libavfilter/avf_showcqt.c static av_cold void uninit(AVFilterContext *ctx)
ctx               122 libavfilter/avf_showcqt.c     ShowCQTContext *s = ctx->priv;
ctx               136 libavfilter/avf_showcqt.c static int query_formats(AVFilterContext *ctx)
ctx               140 libavfilter/avf_showcqt.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               141 libavfilter/avf_showcqt.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               173 libavfilter/avf_showcqt.c static void load_freetype_font(AVFilterContext *ctx)
ctx               176 libavfilter/avf_showcqt.c     ShowCQTContext *s = ctx->priv;
ctx               224 libavfilter/avf_showcqt.c             av_log(ctx, AV_LOG_WARNING, "Font is not monospace\n");
ctx               255 libavfilter/avf_showcqt.c     av_log(ctx, AV_LOG_WARNING, "Error while loading freetype font, using default font instead\n");
ctx               318 libavfilter/avf_showcqt.c     AVFilterContext *ctx = outlink->src;
ctx               319 libavfilter/avf_showcqt.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               320 libavfilter/avf_showcqt.c     ShowCQTContext *s = ctx->priv;
ctx               342 libavfilter/avf_showcqt.c         av_log(ctx, AV_LOG_ERROR, "Rate (%u) is not divisible by fps*count (%u*%u)\n", rate, s->fps, s->count);
ctx               356 libavfilter/avf_showcqt.c     load_freetype_font(ctx);
ctx               359 libavfilter/avf_showcqt.c         av_log(ctx, AV_LOG_WARNING, "Freetype is not available, ignoring fontfile option\n");
ctx               363 libavfilter/avf_showcqt.c     av_log(ctx, AV_LOG_INFO, "Calculating spectral kernel, please wait\n");
ctx               365 libavfilter/avf_showcqt.c     ret = av_expr_parse(&tlength_expr, s->tlength, expr_vars, NULL, NULL, NULL, NULL, 0, ctx);
ctx               370 libavfilter/avf_showcqt.c                         expr_funcs, NULL, NULL, 0, ctx);
ctx               375 libavfilter/avf_showcqt.c                         expr_fontcolor_funcs, NULL, NULL, 0, ctx);
ctx               399 libavfilter/avf_showcqt.c             av_log(ctx, AV_LOG_WARNING, "at freq %g: tlength is nan, setting it to %g\n", freq, s->timeclamp);
ctx               402 libavfilter/avf_showcqt.c             av_log(ctx, AV_LOG_WARNING, "at freq %g: tlength is %g, setting it to %g\n", freq, tlength, TLENGTH_MIN);
ctx               405 libavfilter/avf_showcqt.c             av_log(ctx, AV_LOG_WARNING, "at freq %g: tlength is %g, setting it to %g\n", freq, tlength, s->timeclamp);
ctx               411 libavfilter/avf_showcqt.c             av_log(ctx, AV_LOG_WARNING, "at freq %g: volume is nan, setting it to 0\n", freq);
ctx               416 libavfilter/avf_showcqt.c             av_log(ctx, AV_LOG_WARNING, "at freq %g: volume is %g, setting it to %g\n", freq, volume, VOLUME_MAX);
ctx               496 libavfilter/avf_showcqt.c     av_log(ctx, AV_LOG_INFO, "Elapsed time %.6f s (fft_len=%u, num_coeffs=%u)\n", 1e-6 * (end_time-start_time), fft_len, num_coeffs);
ctx               530 libavfilter/avf_showcqt.c     AVFilterContext *ctx = inlink->dst;
ctx               531 libavfilter/avf_showcqt.c     ShowCQTContext *s = ctx->priv;
ctx               532 libavfilter/avf_showcqt.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               708 libavfilter/avf_showcqt.c     AVFilterContext *ctx = inlink->dst;
ctx               709 libavfilter/avf_showcqt.c     ShowCQTContext *s = ctx->priv;
ctx               108 libavfilter/avf_showspectrum.c static av_cold void uninit(AVFilterContext *ctx)
ctx               110 libavfilter/avf_showspectrum.c     ShowSpectrumContext *s = ctx->priv;
ctx               122 libavfilter/avf_showspectrum.c static int query_formats(AVFilterContext *ctx)
ctx               126 libavfilter/avf_showspectrum.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               127 libavfilter/avf_showspectrum.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               158 libavfilter/avf_showspectrum.c     AVFilterContext *ctx = outlink->src;
ctx               159 libavfilter/avf_showspectrum.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               160 libavfilter/avf_showspectrum.c     ShowSpectrumContext *s = ctx->priv;
ctx               181 libavfilter/avf_showspectrum.c             av_log(ctx, AV_LOG_ERROR, "Unable to create RDFT context. "
ctx               266 libavfilter/avf_showspectrum.c     av_log(ctx, AV_LOG_VERBOSE, "s:%dx%d RDFT window size:%d\n",
ctx               300 libavfilter/avf_showspectrum.c     AVFilterContext *ctx = inlink->dst;
ctx               301 libavfilter/avf_showspectrum.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               302 libavfilter/avf_showspectrum.c     ShowSpectrumContext *s = ctx->priv;
ctx               491 libavfilter/avf_showspectrum.c     AVFilterContext *ctx = inlink->dst;
ctx               492 libavfilter/avf_showspectrum.c     ShowSpectrumContext *s = ctx->priv;
ctx                79 libavfilter/avf_showwaves.c static av_cold void uninit(AVFilterContext *ctx)
ctx                81 libavfilter/avf_showwaves.c     ShowWavesContext *showwaves = ctx->priv;
ctx                87 libavfilter/avf_showwaves.c static int query_formats(AVFilterContext *ctx)
ctx                91 libavfilter/avf_showwaves.c     AVFilterLink *inlink = ctx->inputs[0];
ctx                92 libavfilter/avf_showwaves.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               123 libavfilter/avf_showwaves.c     AVFilterContext *ctx = outlink->src;
ctx               124 libavfilter/avf_showwaves.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               125 libavfilter/avf_showwaves.c     ShowWavesContext *showwaves = ctx->priv;
ctx               133 libavfilter/avf_showwaves.c         av_log(ctx, AV_LOG_ERROR, "Could not allocate showwaves buffer\n");
ctx               143 libavfilter/avf_showwaves.c     av_log(ctx, AV_LOG_VERBOSE, "s:%dx%d r:%f n:%d\n",
ctx               150 libavfilter/avf_showwaves.c     AVFilterContext *ctx = outlink->src;
ctx               151 libavfilter/avf_showwaves.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               234 libavfilter/avf_showwaves.c     AVFilterContext *ctx = inlink->dst;
ctx               235 libavfilter/avf_showwaves.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               236 libavfilter/avf_showwaves.c     ShowWavesContext *showwaves = ctx->priv;
ctx               287 libavfilter/avf_showwaves.c static av_cold int init(AVFilterContext *ctx)
ctx               289 libavfilter/avf_showwaves.c     ShowWavesContext *showwaves = ctx->priv;
ctx                45 libavfilter/avfilter.c void ff_tlog_ref(void *ctx, AVFrame *ref, int end)
ctx                48 libavfilter/avfilter.c     ff_tlog(ctx,
ctx                55 libavfilter/avfilter.c         ff_tlog(ctx, " a:%d/%d s:%dx%d i:%c iskey:%d type:%c",
ctx                64 libavfilter/avfilter.c         ff_tlog(ctx, " cl:%"PRId64"d n:%d r:%d",
ctx                70 libavfilter/avfilter.c     ff_tlog(ctx, "]%s", end ? "\n" : "");
ctx               319 libavfilter/avfilter.c void ff_tlog_link(void *ctx, AVFilterLink *link, int end)
ctx               322 libavfilter/avfilter.c         ff_tlog(ctx,
ctx               333 libavfilter/avfilter.c         ff_tlog(ctx,
ctx               410 libavfilter/avfilter.c static int set_enable_expr(AVFilterContext *ctx, const char *expr)
ctx               414 libavfilter/avfilter.c     AVExpr *old = ctx->enable;
ctx               416 libavfilter/avfilter.c     if (!(ctx->filter->flags & AVFILTER_FLAG_SUPPORT_TIMELINE)) {
ctx               417 libavfilter/avfilter.c         av_log(ctx, AV_LOG_ERROR, "Timeline ('enable' option) not supported "
ctx               418 libavfilter/avfilter.c                "with filter '%s'\n", ctx->filter->name);
ctx               426 libavfilter/avfilter.c     if (!ctx->var_values) {
ctx               427 libavfilter/avfilter.c         ctx->var_values = av_calloc(VAR_VARS_NB, sizeof(*ctx->var_values));
ctx               428 libavfilter/avfilter.c         if (!ctx->var_values) {
ctx               434 libavfilter/avfilter.c     ret = av_expr_parse((AVExpr**)&ctx->enable, expr_dup, var_names,
ctx               435 libavfilter/avfilter.c                         NULL, NULL, NULL, NULL, 0, ctx->priv);
ctx               437 libavfilter/avfilter.c         av_log(ctx->priv, AV_LOG_ERROR,
ctx               445 libavfilter/avfilter.c     av_free(ctx->enable_str);
ctx               446 libavfilter/avfilter.c     ctx->enable_str = expr_dup;
ctx               554 libavfilter/avfilter.c     AVFilterContext *ctx = filter_ctx;
ctx               555 libavfilter/avfilter.c     return ctx->name ? ctx->name : ctx->filter->name;
ctx               560 libavfilter/avfilter.c     AVFilterContext *ctx = obj;
ctx               561 libavfilter/avfilter.c     if (!prev && ctx->filter && ctx->filter->priv_class && ctx->priv)
ctx               562 libavfilter/avfilter.c         return ctx->priv;
ctx               607 libavfilter/avfilter.c static int default_execute(AVFilterContext *ctx, avfilter_action_func *func, void *arg,
ctx               613 libavfilter/avfilter.c         int r = func(ctx, arg, i, nb_jobs);
ctx               761 libavfilter/avfilter.c static int process_options(AVFilterContext *ctx, AVDictionary **options,
ctx               776 libavfilter/avfilter.c         o = av_opt_next(ctx->priv, o);
ctx               789 libavfilter/avfilter.c                 av_log(ctx, AV_LOG_ERROR, "No option name near '%s'\n", args);
ctx               791 libavfilter/avfilter.c                 av_log(ctx, AV_LOG_ERROR, "Unable to parse '%s': %s\n", args,
ctx               799 libavfilter/avfilter.c             while ((o = av_opt_next(ctx->priv, o))); /* discard all remaining shorthand */
ctx               804 libavfilter/avfilter.c         av_log(ctx, AV_LOG_DEBUG, "Setting '%s' to value '%s'\n", key, value);
ctx               806 libavfilter/avfilter.c         if (av_opt_find(ctx, key, NULL, 0, 0)) {
ctx               807 libavfilter/avfilter.c             ret = av_opt_set(ctx, key, value, 0);
ctx               815 libavfilter/avfilter.c         if ((ret = av_opt_set(ctx->priv, key, value, 0)) < 0) {
ctx               816 libavfilter/avfilter.c             if (!av_opt_find(ctx->priv, key, NULL, 0, AV_OPT_SEARCH_CHILDREN | AV_OPT_SEARCH_FAKE_OBJ)) {
ctx               818 libavfilter/avfilter.c                 av_log(ctx, AV_LOG_ERROR, "Option '%s' not found\n", key);
ctx               831 libavfilter/avfilter.c     if (ctx->enable_str) {
ctx               832 libavfilter/avfilter.c         ret = set_enable_expr(ctx, ctx->enable_str);
ctx               846 libavfilter/avfilter.c int avfilter_init_dict(AVFilterContext *ctx, AVDictionary **options)
ctx               850 libavfilter/avfilter.c     ret = av_opt_set_dict(ctx, options);
ctx               852 libavfilter/avfilter.c         av_log(ctx, AV_LOG_ERROR, "Error applying generic filter options.\n");
ctx               856 libavfilter/avfilter.c     if (ctx->filter->flags & AVFILTER_FLAG_SLICE_THREADS &&
ctx               857 libavfilter/avfilter.c         ctx->thread_type & ctx->graph->thread_type & AVFILTER_THREAD_SLICE &&
ctx               858 libavfilter/avfilter.c         ctx->graph->internal->thread_execute) {
ctx               859 libavfilter/avfilter.c         ctx->thread_type       = AVFILTER_THREAD_SLICE;
ctx               860 libavfilter/avfilter.c         ctx->internal->execute = ctx->graph->internal->thread_execute;
ctx               862 libavfilter/avfilter.c         ctx->thread_type = 0;
ctx               865 libavfilter/avfilter.c     if (ctx->filter->priv_class) {
ctx               866 libavfilter/avfilter.c         ret = av_opt_set_dict(ctx->priv, options);
ctx               868 libavfilter/avfilter.c             av_log(ctx, AV_LOG_ERROR, "Error applying options to the filter.\n");
ctx               873 libavfilter/avfilter.c     if (ctx->filter->init_opaque)
ctx               874 libavfilter/avfilter.c         ret = ctx->filter->init_opaque(ctx, NULL);
ctx               875 libavfilter/avfilter.c     else if (ctx->filter->init)
ctx               876 libavfilter/avfilter.c         ret = ctx->filter->init(ctx);
ctx               877 libavfilter/avfilter.c     else if (ctx->filter->init_dict)
ctx               878 libavfilter/avfilter.c         ret = ctx->filter->init_dict(ctx, options);
ctx               544 libavfilter/avfilter.h     int (*init)(AVFilterContext *ctx);
ctx               557 libavfilter/avfilter.h     int (*init_dict)(AVFilterContext *ctx, AVDictionary **options);
ctx               569 libavfilter/avfilter.h     void (*uninit)(AVFilterContext *ctx);
ctx               622 libavfilter/avfilter.h     int (*init_opaque)(AVFilterContext *ctx, void *opaque);
ctx              1065 libavfilter/avfilter.h int avfilter_init_str(AVFilterContext *ctx, const char *args);
ctx              1087 libavfilter/avfilter.h int avfilter_init_dict(AVFilterContext *ctx, AVDictionary **options);
ctx              1150 libavfilter/avfilter.h typedef int (avfilter_action_func)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx              1164 libavfilter/avfilter.h typedef int (avfilter_execute_func)(AVFilterContext *ctx, avfilter_action_func *func,
ctx               309 libavfilter/avfiltergraph.c static int filter_query_formats(AVFilterContext *ctx)
ctx               315 libavfilter/avfiltergraph.c     enum AVMediaType type = ctx->inputs  && ctx->inputs [0] ? ctx->inputs [0]->type :
ctx               316 libavfilter/avfiltergraph.c                             ctx->outputs && ctx->outputs[0] ? ctx->outputs[0]->type :
ctx               319 libavfilter/avfiltergraph.c     if ((ret = ctx->filter->query_formats(ctx)) < 0) {
ctx               321 libavfilter/avfiltergraph.c             av_log(ctx, AV_LOG_ERROR, "Query format failed for '%s': %s\n",
ctx               322 libavfilter/avfiltergraph.c                    ctx->name, av_err2str(ret));
ctx               326 libavfilter/avfiltergraph.c     for (i = 0; i < ctx->nb_inputs; i++)
ctx               327 libavfilter/avfiltergraph.c         sanitize_channel_layouts(ctx, ctx->inputs[i]->out_channel_layouts);
ctx               328 libavfilter/avfiltergraph.c     for (i = 0; i < ctx->nb_outputs; i++)
ctx               329 libavfilter/avfiltergraph.c         sanitize_channel_layouts(ctx, ctx->outputs[i]->in_channel_layouts);
ctx               334 libavfilter/avfiltergraph.c     ff_set_common_formats(ctx, formats);
ctx               339 libavfilter/avfiltergraph.c         ff_set_common_samplerates(ctx, samplerates);
ctx               343 libavfilter/avfiltergraph.c         ff_set_common_channel_layouts(ctx, chlayouts);
ctx                66 libavfilter/buffersink.c static av_cold void uninit(AVFilterContext *ctx)
ctx                68 libavfilter/buffersink.c     BufferSinkContext *sink = ctx->priv;
ctx                83 libavfilter/buffersink.c static int add_buffer_ref(AVFilterContext *ctx, AVFrame *ref)
ctx                85 libavfilter/buffersink.c     BufferSinkContext *buf = ctx->priv;
ctx                90 libavfilter/buffersink.c             av_log(ctx, AV_LOG_ERROR,
ctx               104 libavfilter/buffersink.c     AVFilterContext *ctx = link->dst;
ctx               108 libavfilter/buffersink.c     if ((ret = add_buffer_ref(ctx, frame)) < 0)
ctx               112 libavfilter/buffersink.c         av_log(ctx, AV_LOG_WARNING,
ctx               115 libavfilter/buffersink.c                (char *)av_x_if_null(ctx->name, ctx->filter->name));
ctx               121 libavfilter/buffersink.c int attribute_align_arg av_buffersink_get_frame(AVFilterContext *ctx, AVFrame *frame)
ctx               123 libavfilter/buffersink.c     return av_buffersink_get_frame_flags(ctx, frame, 0);
ctx               126 libavfilter/buffersink.c int attribute_align_arg av_buffersink_get_frame_flags(AVFilterContext *ctx, AVFrame *frame, int flags)
ctx               128 libavfilter/buffersink.c     BufferSinkContext *buf = ctx->priv;
ctx               129 libavfilter/buffersink.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               157 libavfilter/buffersink.c static int read_from_fifo(AVFilterContext *ctx, AVFrame *frame,
ctx               160 libavfilter/buffersink.c     BufferSinkContext *s = ctx->priv;
ctx               161 libavfilter/buffersink.c     AVFilterLink   *link = ctx->inputs[0];
ctx               179 libavfilter/buffersink.c int attribute_align_arg av_buffersink_get_samples(AVFilterContext *ctx,
ctx               182 libavfilter/buffersink.c     BufferSinkContext *s = ctx->priv;
ctx               183 libavfilter/buffersink.c     AVFilterLink   *link = ctx->inputs[0];
ctx               195 libavfilter/buffersink.c             return read_from_fifo(ctx, frame, nb_samples);
ctx               199 libavfilter/buffersink.c         ret = av_buffersink_get_frame_flags(ctx, cur_frame, 0);
ctx               202 libavfilter/buffersink.c             return read_from_fifo(ctx, frame, av_audio_fifo_size(s->audio_fifo));
ctx               245 libavfilter/buffersink.c static av_cold int common_init(AVFilterContext *ctx)
ctx               247 libavfilter/buffersink.c     BufferSinkContext *buf = ctx->priv;
ctx               251 libavfilter/buffersink.c         av_log(ctx, AV_LOG_ERROR, "Failed to allocate fifo\n");
ctx               259 libavfilter/buffersink.c void av_buffersink_set_frame_size(AVFilterContext *ctx, unsigned frame_size)
ctx               261 libavfilter/buffersink.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               276 libavfilter/buffersink.c static int compat_read(AVFilterContext *ctx,
ctx               284 libavfilter/buffersink.c         return ff_poll_frame(ctx->inputs[0]);
ctx               291 libavfilter/buffersink.c         ret = av_buffersink_get_frame_flags(ctx, frame, flags);
ctx               293 libavfilter/buffersink.c         ret = av_buffersink_get_samples(ctx, frame, nb_samples);
ctx               299 libavfilter/buffersink.c     if (ctx->inputs[0]->type == AVMEDIA_TYPE_VIDEO) {
ctx               330 libavfilter/buffersink.c int attribute_align_arg av_buffersink_read(AVFilterContext *ctx, AVFilterBufferRef **buf)
ctx               332 libavfilter/buffersink.c     return compat_read(ctx, buf, 0, 0);
ctx               335 libavfilter/buffersink.c int attribute_align_arg av_buffersink_read_samples(AVFilterContext *ctx, AVFilterBufferRef **buf,
ctx               338 libavfilter/buffersink.c     return compat_read(ctx, buf, nb_samples, 0);
ctx               341 libavfilter/buffersink.c int attribute_align_arg av_buffersink_get_buffer_ref(AVFilterContext *ctx,
ctx               346 libavfilter/buffersink.c     av_assert0(    !strcmp(ctx->filter->name, "buffersink")
ctx               347 libavfilter/buffersink.c                 || !strcmp(ctx->filter->name, "abuffersink")
ctx               348 libavfilter/buffersink.c                 || !strcmp(ctx->filter->name, "ffbuffersink")
ctx               349 libavfilter/buffersink.c                 || !strcmp(ctx->filter->name, "ffabuffersink"));
ctx               351 libavfilter/buffersink.c     return compat_read(ctx, bufref, 0, flags);
ctx               356 libavfilter/buffersink.c AVRational av_buffersink_get_frame_rate(AVFilterContext *ctx)
ctx               358 libavfilter/buffersink.c     av_assert0(   !strcmp(ctx->filter->name, "buffersink")
ctx               359 libavfilter/buffersink.c                || !strcmp(ctx->filter->name, "ffbuffersink"));
ctx               361 libavfilter/buffersink.c     return ctx->inputs[0]->frame_rate;
ctx               364 libavfilter/buffersink.c int attribute_align_arg av_buffersink_poll_frame(AVFilterContext *ctx)
ctx               366 libavfilter/buffersink.c     BufferSinkContext *buf = ctx->priv;
ctx               367 libavfilter/buffersink.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               369 libavfilter/buffersink.c     av_assert0(   !strcmp(ctx->filter->name, "buffersink")
ctx               370 libavfilter/buffersink.c                || !strcmp(ctx->filter->name, "abuffersink")
ctx               371 libavfilter/buffersink.c                || !strcmp(ctx->filter->name, "ffbuffersink")
ctx               372 libavfilter/buffersink.c                || !strcmp(ctx->filter->name, "ffabuffersink"));
ctx               377 libavfilter/buffersink.c static av_cold int vsink_init(AVFilterContext *ctx, void *opaque)
ctx               379 libavfilter/buffersink.c     BufferSinkContext *buf = ctx->priv;
ctx               388 libavfilter/buffersink.c     return common_init(ctx);
ctx               393 libavfilter/buffersink.c             av_log(ctx, AV_LOG_ERROR, "Invalid size for " #field ": %d, " \
ctx               398 libavfilter/buffersink.c static int vsink_query_formats(AVFilterContext *ctx)
ctx               400 libavfilter/buffersink.c     BufferSinkContext *buf = ctx->priv;
ctx               412 libavfilter/buffersink.c         ff_set_common_formats(ctx, formats);
ctx               414 libavfilter/buffersink.c         ff_default_query_formats(ctx);
ctx               420 libavfilter/buffersink.c static av_cold int asink_init(AVFilterContext *ctx, void *opaque)
ctx               422 libavfilter/buffersink.c     BufferSinkContext *buf = ctx->priv;
ctx               434 libavfilter/buffersink.c     return common_init(ctx);
ctx               437 libavfilter/buffersink.c static int asink_query_formats(AVFilterContext *ctx)
ctx               439 libavfilter/buffersink.c     BufferSinkContext *buf = ctx->priv;
ctx               456 libavfilter/buffersink.c         ff_set_common_formats(ctx, formats);
ctx               473 libavfilter/buffersink.c                 av_log(ctx, AV_LOG_WARNING,
ctx               478 libavfilter/buffersink.c         ff_set_common_channel_layouts(ctx, layouts);
ctx               488 libavfilter/buffersink.c         ff_set_common_samplerates(ctx, formats);
ctx                55 libavfilter/buffersink.h int av_buffersink_poll_frame(AVFilterContext *ctx);
ctx                70 libavfilter/buffersink.h int av_buffersink_read(AVFilterContext *ctx, AVFilterBufferRef **buf);
ctx                89 libavfilter/buffersink.h int av_buffersink_read_samples(AVFilterContext *ctx, AVFilterBufferRef **buf,
ctx               103 libavfilter/buffersink.h int av_buffersink_get_frame_flags(AVFilterContext *ctx, AVFrame *frame, int flags);
ctx               158 libavfilter/buffersink.h void av_buffersink_set_frame_size(AVFilterContext *ctx, unsigned frame_size);
ctx               163 libavfilter/buffersink.h AVRational av_buffersink_get_frame_rate(AVFilterContext *ctx);
ctx               179 libavfilter/buffersink.h int av_buffersink_get_frame(AVFilterContext *ctx, AVFrame *frame);
ctx               198 libavfilter/buffersink.h int av_buffersink_get_samples(AVFilterContext *ctx, AVFrame *frame, int nb_samples);
ctx                80 libavfilter/buffersrc.c int attribute_align_arg av_buffersrc_write_frame(AVFilterContext *ctx, const AVFrame *frame)
ctx                82 libavfilter/buffersrc.c     return av_buffersrc_add_frame_flags(ctx, (AVFrame *)frame,
ctx                86 libavfilter/buffersrc.c int attribute_align_arg av_buffersrc_add_frame(AVFilterContext *ctx, AVFrame *frame)
ctx                88 libavfilter/buffersrc.c     return av_buffersrc_add_frame_flags(ctx, frame, 0);
ctx                91 libavfilter/buffersrc.c static int av_buffersrc_add_frame_internal(AVFilterContext *ctx,
ctx                94 libavfilter/buffersrc.c int attribute_align_arg av_buffersrc_add_frame_flags(AVFilterContext *ctx, AVFrame *frame, int flags)
ctx               101 libavfilter/buffersrc.c         av_log(ctx, AV_LOG_ERROR, "Layout indicates a different number of channels than actually present\n");
ctx               106 libavfilter/buffersrc.c         return av_buffersrc_add_frame_internal(ctx, frame, flags);
ctx               112 libavfilter/buffersrc.c         ret = av_buffersrc_add_frame_internal(ctx, copy, flags);
ctx               118 libavfilter/buffersrc.c static int av_buffersrc_add_frame_internal(AVFilterContext *ctx,
ctx               121 libavfilter/buffersrc.c     BufferSourceContext *s = ctx->priv;
ctx               137 libavfilter/buffersrc.c     switch (ctx->outputs[0]->type) {
ctx               139 libavfilter/buffersrc.c         CHECK_VIDEO_PARAM_CHANGE(ctx, s, frame->width, frame->height,
ctx               146 libavfilter/buffersrc.c         CHECK_AUDIO_PARAM_CHANGE(ctx, s, frame->sample_rate, frame->channel_layout,
ctx               181 libavfilter/buffersrc.c         if ((ret = ctx->output_pads[0].request_frame(ctx->outputs[0])) < 0)
ctx               205 libavfilter/buffersrc.c int av_buffersrc_add_ref(AVFilterContext *ctx, AVFilterBufferRef *buf,
ctx               208 libavfilter/buffersrc.c     BufferSourceContext *s = ctx->priv;
ctx               251 libavfilter/buffersrc.c     if (ctx->outputs[0]->type  == AVMEDIA_TYPE_VIDEO) {
ctx               291 libavfilter/buffersrc.c     ret = av_buffersrc_add_frame_flags(ctx, frame, flags);
ctx               301 libavfilter/buffersrc.c int av_buffersrc_buffer(AVFilterContext *ctx, AVFilterBufferRef *buf)
ctx               303 libavfilter/buffersrc.c     return av_buffersrc_add_ref(ctx, buf, 0);
ctx               307 libavfilter/buffersrc.c static av_cold int init_video(AVFilterContext *ctx)
ctx               309 libavfilter/buffersrc.c     BufferSourceContext *c = ctx->priv;
ctx               312 libavfilter/buffersrc.c         av_log(ctx, AV_LOG_ERROR, "Invalid parameters provided.\n");
ctx               319 libavfilter/buffersrc.c     av_log(ctx, AV_LOG_VERBOSE, "w:%d h:%d pixfmt:%s tb:%d/%d fr:%d/%d sar:%d/%d sws_param:%s\n",
ctx               370 libavfilter/buffersrc.c static av_cold int init_audio(AVFilterContext *ctx)
ctx               372 libavfilter/buffersrc.c     BufferSourceContext *s = ctx->priv;
ctx               376 libavfilter/buffersrc.c         av_log(ctx, AV_LOG_ERROR, "Sample format was not set or was invalid\n");
ctx               385 libavfilter/buffersrc.c             av_log(ctx, AV_LOG_ERROR, "Invalid channel layout %s.\n",
ctx               392 libavfilter/buffersrc.c                 av_log(ctx, AV_LOG_ERROR,
ctx               401 libavfilter/buffersrc.c         av_log(ctx, AV_LOG_ERROR, "Neither number of channels nor "
ctx               412 libavfilter/buffersrc.c     av_log(ctx, AV_LOG_VERBOSE,
ctx               421 libavfilter/buffersrc.c static av_cold void uninit(AVFilterContext *ctx)
ctx               423 libavfilter/buffersrc.c     BufferSourceContext *s = ctx->priv;
ctx               432 libavfilter/buffersrc.c static int query_formats(AVFilterContext *ctx)
ctx               434 libavfilter/buffersrc.c     BufferSourceContext *c = ctx->priv;
ctx               439 libavfilter/buffersrc.c     switch (ctx->outputs[0]->type) {
ctx               442 libavfilter/buffersrc.c         ff_set_common_formats(ctx, formats);
ctx               446 libavfilter/buffersrc.c         ff_set_common_formats(ctx, formats);
ctx               449 libavfilter/buffersrc.c         ff_set_common_samplerates(ctx, samplerates);
ctx               454 libavfilter/buffersrc.c         ff_set_common_channel_layouts(ctx, channel_layouts);
ctx                99 libavfilter/buffersrc.h int av_buffersrc_buffer(AVFilterContext *ctx, AVFilterBufferRef *buf);
ctx               115 libavfilter/buffersrc.h int av_buffersrc_write_frame(AVFilterContext *ctx, const AVFrame *frame);
ctx               135 libavfilter/buffersrc.h int av_buffersrc_add_frame(AVFilterContext *ctx, AVFrame *frame);
ctx               102 libavfilter/deshake.h     int (* transform)(AVFilterContext *ctx, int width, int height, int cw, int ch,
ctx                36 libavfilter/deshake_opencl.c int ff_opencl_transform(AVFilterContext *ctx,
ctx                44 libavfilter/deshake_opencl.c     DeshakeContext *deshake = ctx->priv;
ctx                52 libavfilter/deshake_opencl.c     param_lu.ctx = param_ch.ctx = ctx;
ctx                57 libavfilter/deshake_opencl.c         av_log(ctx, AV_LOG_ERROR, "Selected interpolate method is invalid\n");
ctx                97 libavfilter/deshake_opencl.c         av_log(ctx, AV_LOG_ERROR, "OpenCL run kernel error occurred: %s\n", av_opencl_errstr(status));
ctx               108 libavfilter/deshake_opencl.c int ff_opencl_deshake_init(AVFilterContext *ctx)
ctx               111 libavfilter/deshake_opencl.c     DeshakeContext *deshake = ctx->priv;
ctx               118 libavfilter/deshake_opencl.c         av_log(ctx, AV_LOG_ERROR, "Unable to get OpenCL command queue in filter 'deshake'\n");
ctx               123 libavfilter/deshake_opencl.c         av_log(ctx, AV_LOG_ERROR, "OpenCL failed to compile program 'avfilter_transform'\n");
ctx               130 libavfilter/deshake_opencl.c             av_log(ctx, AV_LOG_ERROR, "OpenCL failed to create kernel 'avfilter_transform_luma'\n");
ctx               138 libavfilter/deshake_opencl.c             av_log(ctx, AV_LOG_ERROR, "OpenCL failed to create kernel 'avfilter_transform_chroma'\n");
ctx               145 libavfilter/deshake_opencl.c void ff_opencl_deshake_uninit(AVFilterContext *ctx)
ctx               147 libavfilter/deshake_opencl.c     DeshakeContext *deshake = ctx->priv;
ctx               157 libavfilter/deshake_opencl.c int ff_opencl_deshake_process_inout_buf(AVFilterContext *ctx, AVFrame *in, AVFrame *out)
ctx               160 libavfilter/deshake_opencl.c     AVFilterLink *link = ctx->inputs[0];
ctx               161 libavfilter/deshake_opencl.c     DeshakeContext *deshake = ctx->priv;
ctx                33 libavfilter/deshake_opencl.h int ff_opencl_deshake_init(AVFilterContext *ctx);
ctx                35 libavfilter/deshake_opencl.h void ff_opencl_deshake_uninit(AVFilterContext *ctx);
ctx                37 libavfilter/deshake_opencl.h int ff_opencl_deshake_process_inout_buf(AVFilterContext *ctx, AVFrame *in, AVFrame *out);
ctx                39 libavfilter/deshake_opencl.h int ff_opencl_transform(AVFilterContext *ctx,
ctx                24 libavfilter/dualinput.c     AVFilterContext *ctx = fs->parent;
ctx                35 libavfilter/dualinput.c     mainpic->pts = av_rescale_q(mainpic->pts, s->fs.time_base, ctx->outputs[0]->time_base);
ctx                36 libavfilter/dualinput.c     if (secondpic && !ctx->is_disabled)
ctx                37 libavfilter/dualinput.c         mainpic = s->process(ctx, mainpic, secondpic);
ctx                38 libavfilter/dualinput.c     ret = ff_filter_frame(ctx->outputs[0], mainpic);
ctx                43 libavfilter/dualinput.c int ff_dualinput_init(AVFilterContext *ctx, FFDualInputContext *s)
ctx                47 libavfilter/dualinput.c     ff_framesync_init(&s->fs, ctx, 2);
ctx                50 libavfilter/dualinput.c     in[0].time_base = ctx->inputs[0]->time_base;
ctx                51 libavfilter/dualinput.c     in[1].time_base = ctx->inputs[1]->time_base;
ctx                36 libavfilter/dualinput.h     AVFrame *(*process)(AVFilterContext *ctx, AVFrame *main, const AVFrame *second);
ctx                41 libavfilter/dualinput.h int ff_dualinput_init(AVFilterContext *ctx, FFDualInputContext *s);
ctx               255 libavfilter/f_ebur128.c     AVFilterContext *ctx = outlink->src;
ctx               256 libavfilter/f_ebur128.c     EBUR128Context *ebur128 = ctx->priv;
ctx               261 libavfilter/f_ebur128.c         av_log(ctx, AV_LOG_ERROR, "Video size %dx%d is too small, "
ctx               347 libavfilter/f_ebur128.c     AVFilterContext *ctx = inlink->dst;
ctx               348 libavfilter/f_ebur128.c     EBUR128Context *ebur128 = ctx->priv;
ctx               366 libavfilter/f_ebur128.c     AVFilterContext *ctx = outlink->src;
ctx               367 libavfilter/f_ebur128.c     EBUR128Context *ebur128 = ctx->priv;
ctx               456 libavfilter/f_ebur128.c static av_cold int init(AVFilterContext *ctx)
ctx               458 libavfilter/f_ebur128.c     EBUR128Context *ebur128 = ctx->priv;
ctx               470 libavfilter/f_ebur128.c         av_log(ctx, AV_LOG_ERROR,
ctx               496 libavfilter/f_ebur128.c         ff_insert_outpad(ctx, 0, &pad);
ctx               505 libavfilter/f_ebur128.c     ff_insert_outpad(ctx, ebur128->do_video, &pad);
ctx               508 libavfilter/f_ebur128.c     av_log(ctx, AV_LOG_VERBOSE, "EBU +%d scale\n", ebur128->meter);
ctx               543 libavfilter/f_ebur128.c     AVFilterContext *ctx = inlink->dst;
ctx               544 libavfilter/f_ebur128.c     EBUR128Context *ebur128 = ctx->priv;
ctx               630 libavfilter/f_ebur128.c             AVFilterLink *outlink = ctx->outputs[0];
ctx               788 libavfilter/f_ebur128.c             av_log(ctx, ebur128->loglevel, "t: %-10s " LOG_FMT,
ctx               795 libavfilter/f_ebur128.c         av_log(ctx, ebur128->loglevel, "  " str ":");               \
ctx               797 libavfilter/f_ebur128.c             av_log(ctx, ebur128->loglevel, " %5.1f", DBFS(sp[ch])); \
ctx               798 libavfilter/f_ebur128.c         av_log(ctx, ebur128->loglevel, " dBFS");                    \
ctx               805 libavfilter/f_ebur128.c             av_log(ctx, ebur128->loglevel, "\n");
ctx               809 libavfilter/f_ebur128.c     return ff_filter_frame(ctx->outputs[ebur128->do_video], insamples);
ctx               812 libavfilter/f_ebur128.c static int query_formats(AVFilterContext *ctx)
ctx               814 libavfilter/f_ebur128.c     EBUR128Context *ebur128 = ctx->priv;
ctx               817 libavfilter/f_ebur128.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               818 libavfilter/f_ebur128.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               830 libavfilter/f_ebur128.c         outlink = ctx->outputs[1];
ctx               857 libavfilter/f_ebur128.c static av_cold void uninit(AVFilterContext *ctx)
ctx               860 libavfilter/f_ebur128.c     EBUR128Context *ebur128 = ctx->priv;
ctx               862 libavfilter/f_ebur128.c     av_log(ctx, AV_LOG_INFO, "Summary:\n\n"
ctx               882 libavfilter/f_ebur128.c         av_log(ctx, AV_LOG_INFO, "\n\n  " str " peak:\n"         \
ctx               890 libavfilter/f_ebur128.c     av_log(ctx, AV_LOG_INFO, "\n");
ctx               903 libavfilter/f_ebur128.c     for (i = 0; i < ctx->nb_outputs; i++)
ctx               904 libavfilter/f_ebur128.c         av_freep(&ctx->output_pads[i].name);
ctx                51 libavfilter/f_interleave.c inline static int push_frame(AVFilterContext *ctx)
ctx                53 libavfilter/f_interleave.c     InterleaveContext *s = ctx->priv;
ctx                59 libavfilter/f_interleave.c     for (i = 0; i < ctx->nb_inputs; i++) {
ctx                62 libavfilter/f_interleave.c         if (!q->available && !ctx->inputs[i]->closed)
ctx                78 libavfilter/f_interleave.c     av_log(ctx, AV_LOG_DEBUG, "queue:%d -> frame time:%f\n",
ctx                80 libavfilter/f_interleave.c     return ff_filter_frame(ctx->outputs[0], frame);
ctx                85 libavfilter/f_interleave.c     AVFilterContext *ctx = inlink->dst;
ctx                86 libavfilter/f_interleave.c     InterleaveContext *s = ctx->priv;
ctx                90 libavfilter/f_interleave.c         av_log(ctx, AV_LOG_WARNING,
ctx                98 libavfilter/f_interleave.c     av_log(ctx, AV_LOG_DEBUG, "frame pts:%f -> queue idx:%d available:%d\n",
ctx               100 libavfilter/f_interleave.c     ff_bufqueue_add(ctx, &s->queues[in_no], frame);
ctx               102 libavfilter/f_interleave.c     return push_frame(ctx);
ctx               105 libavfilter/f_interleave.c static av_cold int init(AVFilterContext *ctx)
ctx               107 libavfilter/f_interleave.c     InterleaveContext *s = ctx->priv;
ctx               108 libavfilter/f_interleave.c     const AVFilterPad *outpad = &ctx->filter->outputs[0];
ctx               132 libavfilter/f_interleave.c         ff_insert_inpad(ctx, i, &inpad);
ctx               138 libavfilter/f_interleave.c static av_cold void uninit(AVFilterContext *ctx)
ctx               140 libavfilter/f_interleave.c     InterleaveContext *s = ctx->priv;
ctx               143 libavfilter/f_interleave.c     for (i = 0; i < ctx->nb_inputs; i++) {
ctx               146 libavfilter/f_interleave.c         av_freep(&ctx->input_pads[i].name);
ctx               152 libavfilter/f_interleave.c     AVFilterContext *ctx = outlink->src;
ctx               153 libavfilter/f_interleave.c     AVFilterLink *inlink0 = ctx->inputs[0];
ctx               163 libavfilter/f_interleave.c         for (i = 1; i < ctx->nb_inputs; i++) {
ctx               164 libavfilter/f_interleave.c             AVFilterLink *inlink = ctx->inputs[i];
ctx               170 libavfilter/f_interleave.c                 av_log(ctx, AV_LOG_ERROR, "Parameters for input link %s "
ctx               173 libavfilter/f_interleave.c                        ctx->input_pads[i].name, inlink->w, inlink->h,
ctx               190 libavfilter/f_interleave.c     AVFilterContext *ctx = outlink->src;
ctx               191 libavfilter/f_interleave.c     InterleaveContext *s = ctx->priv;
ctx               194 libavfilter/f_interleave.c     for (i = 0; i < ctx->nb_inputs; i++) {
ctx               195 libavfilter/f_interleave.c         if (!s->queues[i].available && !ctx->inputs[i]->closed) {
ctx               196 libavfilter/f_interleave.c             ret = ff_request_frame(ctx->inputs[i]);
ctx               202 libavfilter/f_interleave.c     return push_frame(ctx);
ctx                57 libavfilter/f_perms.c static av_cold int init(AVFilterContext *ctx)
ctx                59 libavfilter/f_perms.c     PermsContext *perms = ctx->priv;
ctx                67 libavfilter/f_perms.c         av_log(ctx, AV_LOG_INFO, "random seed: 0x%08x\n", seed);
ctx                80 libavfilter/f_perms.c     AVFilterContext *ctx = inlink->dst;
ctx                81 libavfilter/f_perms.c     PermsContext *perms = 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               164 libavfilter/f_select.c static av_cold int init(AVFilterContext *ctx)
ctx               166 libavfilter/f_select.c     SelectContext *select = ctx->priv;
ctx               170 libavfilter/f_select.c                              var_names, NULL, NULL, NULL, NULL, 0, ctx)) < 0) {
ctx               171 libavfilter/f_select.c         av_log(ctx, AV_LOG_ERROR, "Error while parsing expression '%s'\n",
ctx               183 libavfilter/f_select.c         pad.type = ctx->filter->inputs[0].type;
ctx               185 libavfilter/f_select.c         ff_insert_outpad(ctx, i, &pad);
ctx               245 libavfilter/f_select.c static double get_scene_score(AVFilterContext *ctx, AVFrame *frame)
ctx               248 libavfilter/f_select.c     SelectContext *select = ctx->priv;
ctx               284 libavfilter/f_select.c static void select_frame(AVFilterContext *ctx, AVFrame *frame)
ctx               286 libavfilter/f_select.c     SelectContext *select = ctx->priv;
ctx               287 libavfilter/f_select.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               313 libavfilter/f_select.c             select->var_values[VAR_SCENE] = get_scene_score(ctx, frame);
ctx               369 libavfilter/f_select.c     AVFilterContext *ctx = inlink->dst;
ctx               370 libavfilter/f_select.c     SelectContext *select = ctx->priv;
ctx               372 libavfilter/f_select.c     select_frame(ctx, frame);
ctx               374 libavfilter/f_select.c         return ff_filter_frame(ctx->outputs[select->select_out], frame);
ctx               382 libavfilter/f_select.c     AVFilterContext *ctx = outlink->src;
ctx               383 libavfilter/f_select.c     SelectContext *select = ctx->priv;
ctx               396 libavfilter/f_select.c static av_cold void uninit(AVFilterContext *ctx)
ctx               398 libavfilter/f_select.c     SelectContext *select = ctx->priv;
ctx               404 libavfilter/f_select.c     for (i = 0; i < ctx->nb_outputs; i++)
ctx               405 libavfilter/f_select.c         av_freep(&ctx->output_pads[i].name);
ctx               412 libavfilter/f_select.c static int query_formats(AVFilterContext *ctx)
ctx               414 libavfilter/f_select.c     SelectContext *select = ctx->priv;
ctx               417 libavfilter/f_select.c         return ff_default_query_formats(ctx);
ctx               423 libavfilter/f_select.c         ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               433 libavfilter/f_select.c static av_cold int aselect_init(AVFilterContext *ctx)
ctx               435 libavfilter/f_select.c     SelectContext *select = ctx->priv;
ctx               438 libavfilter/f_select.c     if ((ret = init(ctx)) < 0)
ctx               442 libavfilter/f_select.c         av_log(ctx, AV_LOG_ERROR, "Scene detection is ignored in aselect filter\n");
ctx               476 libavfilter/f_select.c static av_cold int select_init(AVFilterContext *ctx)
ctx               480 libavfilter/f_select.c     if ((ret = init(ctx)) < 0)
ctx               371 libavfilter/f_sendcmd.c static av_cold int init(AVFilterContext *ctx)
ctx               373 libavfilter/f_sendcmd.c     SendCmdContext *sendcmd = ctx->priv;
ctx               377 libavfilter/f_sendcmd.c         av_log(ctx, AV_LOG_ERROR,
ctx               386 libavfilter/f_sendcmd.c                           &file_buf, &file_bufsize, 0, ctx);
ctx               403 libavfilter/f_sendcmd.c                                sendcmd->commands_str, ctx)) < 0)
ctx               407 libavfilter/f_sendcmd.c         av_log(ctx, AV_LOG_ERROR, "No commands\n");
ctx               413 libavfilter/f_sendcmd.c     av_log(ctx, AV_LOG_DEBUG, "Parsed commands:\n");
ctx               417 libavfilter/f_sendcmd.c         av_log(ctx, AV_LOG_VERBOSE, "start_time:%f end_time:%f index:%d\n",
ctx               421 libavfilter/f_sendcmd.c             av_log(ctx, AV_LOG_VERBOSE,
ctx               430 libavfilter/f_sendcmd.c static av_cold void uninit(AVFilterContext *ctx)
ctx               432 libavfilter/f_sendcmd.c     SendCmdContext *sendcmd = ctx->priv;
ctx               450 libavfilter/f_sendcmd.c     AVFilterContext *ctx = inlink->dst;
ctx               451 libavfilter/f_sendcmd.c     SendCmdContext *sendcmd = ctx->priv;
ctx               477 libavfilter/f_sendcmd.c             av_log(ctx, AV_LOG_VERBOSE,
ctx               488 libavfilter/f_sendcmd.c                     av_log(ctx, AV_LOG_VERBOSE,
ctx               495 libavfilter/f_sendcmd.c                     av_log(ctx, AV_LOG_VERBOSE,
ctx                52 libavfilter/f_zmq.c static av_cold int init(AVFilterContext *ctx)
ctx                54 libavfilter/f_zmq.c     ZMQContext *zmq = ctx->priv;
ctx                58 libavfilter/f_zmq.c         av_log(ctx, AV_LOG_ERROR,
ctx                65 libavfilter/f_zmq.c         av_log(ctx, AV_LOG_ERROR,
ctx                71 libavfilter/f_zmq.c         av_log(ctx, AV_LOG_ERROR,
ctx                81 libavfilter/f_zmq.c static void av_cold uninit(AVFilterContext *ctx)
ctx                83 libavfilter/f_zmq.c     ZMQContext *zmq = ctx->priv;
ctx               117 libavfilter/f_zmq.c static int recv_msg(AVFilterContext *ctx, char **buf, int *buf_size)
ctx               119 libavfilter/f_zmq.c     ZMQContext *zmq = ctx->priv;
ctx               124 libavfilter/f_zmq.c         av_log(ctx, AV_LOG_WARNING,
ctx               131 libavfilter/f_zmq.c             av_log(ctx, AV_LOG_WARNING,
ctx               153 libavfilter/f_zmq.c     AVFilterContext *ctx = inlink->dst;
ctx               154 libavfilter/f_zmq.c     ZMQContext *zmq = ctx->priv;
ctx               164 libavfilter/f_zmq.c         if (recv_msg(ctx, &recv_buf, &recv_buf_size) < 0)
ctx               169 libavfilter/f_zmq.c         if (parse_command(&cmd, recv_buf, ctx) < 0) {
ctx               170 libavfilter/f_zmq.c             av_log(ctx, AV_LOG_ERROR, "Could not parse command #%d\n", zmq->command_count);
ctx               175 libavfilter/f_zmq.c         av_log(ctx, AV_LOG_VERBOSE,
ctx               188 libavfilter/f_zmq.c         av_log(ctx, AV_LOG_VERBOSE,
ctx               192 libavfilter/f_zmq.c             av_log(ctx, AV_LOG_ERROR, "Failed to send reply for command #%d: %s\n",
ctx               204 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 *fifo = ctx->priv;
ctx                62 libavfilter/fifo.c static av_cold void uninit(AVFilterContext *ctx)
ctx                64 libavfilter/fifo.c     FifoContext *fifo = 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               496 libavfilter/formats.c #define SET_COMMON_FORMATS(ctx, fmts, in_fmts, out_fmts, ref, list) \
ctx               500 libavfilter/formats.c     for (i = 0; i < ctx->nb_inputs; i++) {                          \
ctx               501 libavfilter/formats.c         if (ctx->inputs[i] && !ctx->inputs[i]->out_fmts) {          \
ctx               502 libavfilter/formats.c             ref(fmts, &ctx->inputs[i]->out_fmts);                   \
ctx               506 libavfilter/formats.c     for (i = 0; i < ctx->nb_outputs; i++) {                         \
ctx               507 libavfilter/formats.c         if (ctx->outputs[i] && !ctx->outputs[i]->in_fmts) {         \
ctx               508 libavfilter/formats.c             ref(fmts, &ctx->outputs[i]->in_fmts);                   \
ctx               520 libavfilter/formats.c void ff_set_common_channel_layouts(AVFilterContext *ctx,
ctx               523 libavfilter/formats.c     SET_COMMON_FORMATS(ctx, layouts, in_channel_layouts, out_channel_layouts,
ctx               527 libavfilter/formats.c void ff_set_common_samplerates(AVFilterContext *ctx,
ctx               530 libavfilter/formats.c     SET_COMMON_FORMATS(ctx, samplerates, in_samplerates, out_samplerates,
ctx               539 libavfilter/formats.c void ff_set_common_formats(AVFilterContext *ctx, AVFilterFormats *formats)
ctx               541 libavfilter/formats.c     SET_COMMON_FORMATS(ctx, formats, in_formats, out_formats,
ctx               545 libavfilter/formats.c static int default_query_formats_common(AVFilterContext *ctx,
ctx               548 libavfilter/formats.c     enum AVMediaType type = ctx->inputs  && ctx->inputs [0] ? ctx->inputs [0]->type :
ctx               549 libavfilter/formats.c                             ctx->outputs && ctx->outputs[0] ? ctx->outputs[0]->type :
ctx               552 libavfilter/formats.c     ff_set_common_formats(ctx, ff_all_formats(type));
ctx               554 libavfilter/formats.c         ff_set_common_channel_layouts(ctx, layouts());
ctx               555 libavfilter/formats.c         ff_set_common_samplerates(ctx, ff_all_samplerates());
ctx               561 libavfilter/formats.c int ff_default_query_formats(AVFilterContext *ctx)
ctx               563 libavfilter/formats.c     return default_query_formats_common(ctx, ff_all_channel_layouts);
ctx               566 libavfilter/formats.c int ff_query_formats_all(AVFilterContext *ctx)
ctx               568 libavfilter/formats.c     return default_query_formats_common(ctx, ff_all_channel_counts);
ctx               145 libavfilter/formats.h void ff_set_common_channel_layouts(AVFilterContext *ctx,
ctx               147 libavfilter/formats.h void ff_set_common_samplerates(AVFilterContext *ctx,
ctx               155 libavfilter/formats.h void ff_set_common_formats(AVFilterContext *ctx, AVFilterFormats *formats);
ctx               173 libavfilter/formats.h int ff_default_query_formats(AVFilterContext *ctx);
ctx               181 libavfilter/formats.h int ff_query_formats_all(AVFilterContext *ctx);
ctx               309 libavfilter/framesync.c     AVFilterContext *ctx = outlink->src;
ctx               320 libavfilter/framesync.c     ret = ff_request_frame(ctx->inputs[input]);
ctx                96 libavfilter/graphparser.c static int create_filter(AVFilterContext **filt_ctx, AVFilterGraph *ctx, int index,
ctx               114 libavfilter/graphparser.c     *filt_ctx = avfilter_graph_alloc_filter(ctx, filt, inst_name);
ctx               122 libavfilter/graphparser.c         ctx->scale_sws_opts) {
ctx               124 libavfilter/graphparser.c                  args, ctx->scale_sws_opts);
ctx               242 libavfilter/internal.h #define FF_TPRINTF_START(ctx, func) ff_tlog(NULL, "%-16s: ", #func)
ctx               246 libavfilter/internal.h void ff_tlog_ref(void *ctx, AVFrame *ref, int end);
ctx               248 libavfilter/internal.h void ff_tlog_link(void *ctx, AVFilterLink *link, int end);
ctx               333 libavfilter/internal.h int ff_buffersink_read_compat(AVFilterContext *ctx, AVFilterBufferRef **buf);
ctx               334 libavfilter/internal.h int ff_buffersink_read_samples_compat(AVFilterContext *ctx, AVFilterBufferRef **pbuf,
ctx                51 libavfilter/pthread.c     AVFilterContext *ctx;
ctx                92 libavfilter/pthread.c         c->rets[our_job % c->nb_rets] = c->func(c->ctx, c->arg, our_job, c->nb_jobs);
ctx               124 libavfilter/pthread.c static int thread_execute(AVFilterContext *ctx, avfilter_action_func *func,
ctx               127 libavfilter/pthread.c     ThreadContext *c = ctx->graph->internal->thread;
ctx               137 libavfilter/pthread.c     c->ctx         = ctx;
ctx                95 libavfilter/setpts.c static av_cold int init(AVFilterContext *ctx)
ctx                97 libavfilter/setpts.c     SetPTSContext *setpts = ctx->priv;
ctx               101 libavfilter/setpts.c                              var_names, NULL, NULL, NULL, NULL, 0, ctx)) < 0) {
ctx               102 libavfilter/setpts.c         av_log(ctx, AV_LOG_ERROR, "Error while parsing expression '%s'\n", setpts->expr_str);
ctx               119 libavfilter/setpts.c     AVFilterContext *ctx = inlink->dst;
ctx               120 libavfilter/setpts.c     SetPTSContext *setpts = ctx->priv;
ctx               215 libavfilter/setpts.c static av_cold void uninit(AVFilterContext *ctx)
ctx               217 libavfilter/setpts.c     SetPTSContext *setpts = ctx->priv;
ctx                72 libavfilter/settb.c     AVFilterContext *ctx = outlink->src;
ctx                73 libavfilter/settb.c     SetTBContext *settb = ctx->priv;
ctx                74 libavfilter/settb.c     AVFilterLink *inlink = ctx->inputs[0];
ctx                88 libavfilter/settb.c         av_log(ctx, AV_LOG_ERROR, "Invalid expression '%s' for timebase.\n", settb->tb_expr);
ctx                93 libavfilter/settb.c         av_log(ctx, AV_LOG_ERROR,
ctx               109 libavfilter/settb.c     AVFilterContext *ctx = inlink->dst;
ctx               110 libavfilter/settb.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               115 libavfilter/settb.c         av_log(ctx, AV_LOG_DEBUG, "tb:%d/%d pts:%"PRId64" -> tb:%d/%d pts:%"PRId64"\n",
ctx                43 libavfilter/split.c static av_cold int split_init(AVFilterContext *ctx)
ctx                45 libavfilter/split.c     SplitContext *s = ctx->priv;
ctx                53 libavfilter/split.c         pad.type = ctx->filter->inputs[0].type;
ctx                58 libavfilter/split.c         ff_insert_outpad(ctx, i, &pad);
ctx                64 libavfilter/split.c static av_cold void split_uninit(AVFilterContext *ctx)
ctx                68 libavfilter/split.c     for (i = 0; i < ctx->nb_outputs; i++)
ctx                69 libavfilter/split.c         av_freep(&ctx->output_pads[i].name);
ctx                74 libavfilter/split.c     AVFilterContext *ctx = inlink->dst;
ctx                77 libavfilter/split.c     for (i = 0; i < ctx->nb_outputs; i++) {
ctx                80 libavfilter/split.c         if (ctx->outputs[i]->closed)
ctx                88 libavfilter/split.c         ret = ff_filter_frame(ctx->outputs[i], buf_out);
ctx               190 libavfilter/src_movie.c static av_cold int movie_common_init(AVFilterContext *ctx)
ctx               192 libavfilter/src_movie.c     MovieContext *movie = ctx->priv;
ctx               201 libavfilter/src_movie.c         av_log(ctx, AV_LOG_ERROR, "No filename provided!\n");
ctx               210 libavfilter/src_movie.c                  !strcmp(ctx->filter->name, "amovie") ? 'a' : 'v',
ctx               219 libavfilter/src_movie.c         av_log(ctx, AV_LOG_ERROR,
ctx               231 libavfilter/src_movie.c         av_log(ctx, AV_LOG_ERROR,
ctx               236 libavfilter/src_movie.c         av_log(ctx, AV_LOG_WARNING, "Failed to find stream info\n");
ctx               244 libavfilter/src_movie.c                 av_log(ctx, AV_LOG_ERROR,
ctx               252 libavfilter/src_movie.c             av_log(ctx, AV_LOG_ERROR, "%s: could not seek to position %"PRId64"\n",
ctx               270 libavfilter/src_movie.c         st = find_stream(ctx, movie->format_ctx, spec);
ctx               296 libavfilter/src_movie.c         ff_insert_outpad(ctx, i, &pad);
ctx               297 libavfilter/src_movie.c         ret = open_stream(ctx, &movie->st[i]);
ctx               302 libavfilter/src_movie.c             ret = guess_channel_layout(&movie->st[i], i, ctx);
ctx               308 libavfilter/src_movie.c     av_log(ctx, AV_LOG_VERBOSE, "seek_point:%"PRIi64" format_name:%s file_name:%s stream_index:%d\n",
ctx               315 libavfilter/src_movie.c static av_cold void movie_uninit(AVFilterContext *ctx)
ctx               317 libavfilter/src_movie.c     MovieContext *movie = ctx->priv;
ctx               320 libavfilter/src_movie.c     for (i = 0; i < ctx->nb_outputs; i++) {
ctx               321 libavfilter/src_movie.c         av_freep(&ctx->output_pads[i].name);
ctx               331 libavfilter/src_movie.c static int movie_query_formats(AVFilterContext *ctx)
ctx               333 libavfilter/src_movie.c     MovieContext *movie = ctx->priv;
ctx               338 libavfilter/src_movie.c     for (i = 0; i < ctx->nb_outputs; i++) {
ctx               341 libavfilter/src_movie.c         AVFilterLink *outlink = ctx->outputs[i];
ctx               365 libavfilter/src_movie.c     AVFilterContext *ctx = outlink->src;
ctx               366 libavfilter/src_movie.c     MovieContext *movie  = ctx->priv;
ctx               412 libavfilter/src_movie.c static int rewind_file(AVFilterContext *ctx)
ctx               414 libavfilter/src_movie.c     MovieContext *movie = ctx->priv;
ctx               422 libavfilter/src_movie.c         av_log(ctx, AV_LOG_ERROR, "Unable to loop: %s\n", av_err2str(ret));
ctx               427 libavfilter/src_movie.c     for (i = 0; i < ctx->nb_outputs; i++) {
ctx               446 libavfilter/src_movie.c static int movie_push_frame(AVFilterContext *ctx, unsigned out_id)
ctx               448 libavfilter/src_movie.c     MovieContext *movie = ctx->priv;
ctx               460 libavfilter/src_movie.c                     ret = rewind_file(ctx);
ctx               464 libavfilter/src_movie.c                     av_log(ctx, AV_LOG_VERBOSE, "Stream finished, looping.\n");
ctx               495 libavfilter/src_movie.c     outlink = ctx->outputs[pkt_out_id];
ctx               514 libavfilter/src_movie.c         av_log(ctx, AV_LOG_WARNING, "Decode error: %s\n", av_err2str(ret));
ctx               539 libavfilter/src_movie.c     av_dlog(ctx, "movie_push_frame(): file:'%s' %s\n", movie->file_name,
ctx               544 libavfilter/src_movie.c             av_log(ctx, AV_LOG_ERROR, "Format changed %s -> %s, discarding frame\n",
ctx               561 libavfilter/src_movie.c     AVFilterContext *ctx = outlink->src;
ctx               566 libavfilter/src_movie.c         ret = movie_push_frame(ctx, out_id);
ctx                78 libavfilter/trim.c static av_cold int init(AVFilterContext *ctx)
ctx                80 libavfilter/trim.c     TrimContext *s = ctx->priv;
ctx                89 libavfilter/trim.c     AVFilterContext *ctx = inlink->dst;
ctx                90 libavfilter/trim.c     TrimContext       *s = ctx->priv;
ctx               146 libavfilter/trim.c     AVFilterContext *ctx = inlink->dst;
ctx               147 libavfilter/trim.c     TrimContext       *s = ctx->priv;
ctx               190 libavfilter/trim.c     return ff_filter_frame(ctx->outputs[0], frame);
ctx               245 libavfilter/trim.c     AVFilterContext *ctx = inlink->dst;
ctx               246 libavfilter/trim.c     TrimContext       *s = ctx->priv;
ctx               326 libavfilter/trim.c         AVFrame *out = ff_get_audio_buffer(ctx->outputs[0], end_sample - start_sample);
ctx               345 libavfilter/trim.c     return ff_filter_frame(ctx->outputs[0], frame);
ctx                82 libavfilter/unsharp.h     int (* apply_unsharp)(AVFilterContext *ctx, AVFrame *in, AVFrame *out);
ctx               123 libavfilter/unsharp_opencl.c static int generate_mask(AVFilterContext *ctx)
ctx               129 libavfilter/unsharp_opencl.c     UnsharpContext *unsharp = ctx->priv;
ctx               148 libavfilter/unsharp_opencl.c         av_log(ctx, AV_LOG_ERROR, "Luma mask and chroma mask should not be NULL\n");
ctx               152 libavfilter/unsharp_opencl.c         av_log(ctx, AV_LOG_ERROR, "Luma mask and chroma mask should not be NULL\n");
ctx               163 libavfilter/unsharp_opencl.c int ff_opencl_apply_unsharp(AVFilterContext *ctx, AVFrame *in, AVFrame *out)
ctx               166 libavfilter/unsharp_opencl.c     AVFilterLink *link = ctx->inputs[0];
ctx               167 libavfilter/unsharp_opencl.c     UnsharpContext *unsharp = ctx->priv;
ctx               186 libavfilter/unsharp_opencl.c         kernel1.ctx = ctx;
ctx               204 libavfilter/unsharp_opencl.c         kernel2.ctx = ctx;
ctx               232 libavfilter/unsharp_opencl.c             av_log(ctx, AV_LOG_ERROR, "OpenCL run kernel error occurred: %s\n", av_opencl_errstr(status));
ctx               236 libavfilter/unsharp_opencl.c         kernel1.ctx = ctx;
ctx               269 libavfilter/unsharp_opencl.c             av_log(ctx, AV_LOG_ERROR, "OpenCL run kernel error occurred: %s\n", av_opencl_errstr(status));
ctx               281 libavfilter/unsharp_opencl.c int ff_opencl_unsharp_init(AVFilterContext *ctx)
ctx               285 libavfilter/unsharp_opencl.c     UnsharpContext *unsharp = ctx->priv;
ctx               320 libavfilter/unsharp_opencl.c     ret = generate_mask(ctx);
ctx               326 libavfilter/unsharp_opencl.c         av_log(ctx, AV_LOG_ERROR, "Unable to get OpenCL command queue in filter 'unsharp'\n");
ctx               333 libavfilter/unsharp_opencl.c         av_log(ctx, AV_LOG_ERROR, "OpenCL failed to compile program 'unsharp'\n");
ctx               340 libavfilter/unsharp_opencl.c                 av_log(ctx, AV_LOG_ERROR, "OpenCL failed to create kernel 'unsharp_luma'\n");
ctx               347 libavfilter/unsharp_opencl.c                 av_log(ctx, AV_LOG_ERROR, "OpenCL failed to create kernel 'unsharp_chroma'\n");
ctx               356 libavfilter/unsharp_opencl.c                 av_log(ctx, AV_LOG_ERROR, "OpenCL failed to create kernel 'unsharp_default'\n");
ctx               364 libavfilter/unsharp_opencl.c void ff_opencl_unsharp_uninit(AVFilterContext *ctx)
ctx               366 libavfilter/unsharp_opencl.c     UnsharpContext *unsharp = ctx->priv;
ctx               383 libavfilter/unsharp_opencl.c int ff_opencl_unsharp_process_inout_buf(AVFilterContext *ctx, AVFrame *in, AVFrame *out)
ctx               386 libavfilter/unsharp_opencl.c     AVFilterLink *link = ctx->inputs[0];
ctx               387 libavfilter/unsharp_opencl.c     UnsharpContext *unsharp = ctx->priv;
ctx                26 libavfilter/unsharp_opencl.h int ff_opencl_unsharp_init(AVFilterContext *ctx);
ctx                28 libavfilter/unsharp_opencl.h void ff_opencl_unsharp_uninit(AVFilterContext *ctx);
ctx                30 libavfilter/unsharp_opencl.h int ff_opencl_unsharp_process_inout_buf(AVFilterContext *ctx, AVFrame *in, AVFrame *out);
ctx                32 libavfilter/unsharp_opencl.h int ff_opencl_apply_unsharp(AVFilterContext *ctx, AVFrame *in, AVFrame *out);
ctx                46 libavfilter/vf_alphamerge.c static av_cold void uninit(AVFilterContext *ctx)
ctx                48 libavfilter/vf_alphamerge.c     AlphaMergeContext *merge = ctx->priv;
ctx                53 libavfilter/vf_alphamerge.c static int query_formats(AVFilterContext *ctx)
ctx                63 libavfilter/vf_alphamerge.c     ff_formats_ref(main_formats, &ctx->inputs[0]->out_formats);
ctx                64 libavfilter/vf_alphamerge.c     ff_formats_ref(alpha_formats, &ctx->inputs[1]->out_formats);
ctx                65 libavfilter/vf_alphamerge.c     ff_formats_ref(main_formats, &ctx->outputs[0]->in_formats);
ctx                79 libavfilter/vf_alphamerge.c     AVFilterContext *ctx = outlink->src;
ctx                80 libavfilter/vf_alphamerge.c     AVFilterLink *mainlink = ctx->inputs[0];
ctx                81 libavfilter/vf_alphamerge.c     AVFilterLink *alphalink = ctx->inputs[1];
ctx                83 libavfilter/vf_alphamerge.c         av_log(ctx, AV_LOG_ERROR,
ctx                98 libavfilter/vf_alphamerge.c static void draw_frame(AVFilterContext *ctx,
ctx               102 libavfilter/vf_alphamerge.c     AlphaMergeContext *merge = ctx->priv;
ctx               131 libavfilter/vf_alphamerge.c     AVFilterContext *ctx = inlink->dst;
ctx               132 libavfilter/vf_alphamerge.c     AlphaMergeContext *merge = ctx->priv;
ctx               135 libavfilter/vf_alphamerge.c     int is_alpha = (inlink == ctx->inputs[1]);
ctx               138 libavfilter/vf_alphamerge.c     ff_bufqueue_add(ctx, queue, buf);
ctx               150 libavfilter/vf_alphamerge.c         draw_frame(ctx, main_buf, alpha_buf);
ctx               151 libavfilter/vf_alphamerge.c         ret = ff_filter_frame(ctx->outputs[0], main_buf);
ctx               159 libavfilter/vf_alphamerge.c     AVFilterContext *ctx = outlink->src;
ctx               160 libavfilter/vf_alphamerge.c     AlphaMergeContext *merge = ctx->priv;
ctx               166 libavfilter/vf_alphamerge.c         ret = ff_request_frame(ctx->inputs[in]);
ctx                70 libavfilter/vf_aspect.c static av_cold int init(AVFilterContext *ctx)
ctx                72 libavfilter/vf_aspect.c     AspectContext *s = ctx->priv;
ctx                78 libavfilter/vf_aspect.c         av_log(ctx, AV_LOG_WARNING,
ctx                81 libavfilter/vf_aspect.c                                      NULL, NULL, NULL, NULL, NULL, 0, ctx);
ctx                83 libavfilter/vf_aspect.c             av_log(ctx, AV_LOG_ERROR, "Unable to parse ratio numerator \"%s\"\n", s->ratio_expr);
ctx               115 libavfilter/vf_aspect.c     AVFilterContext *ctx = inlink->dst;
ctx               133 libavfilter/vf_aspect.c                                       NULL, NULL, NULL, NULL, NULL, 0, ctx);
ctx               135 libavfilter/vf_aspect.c         ret = av_parse_ratio(aspect_ratio, s->ratio_expr, s->max, 0, ctx);
ctx               140 libavfilter/vf_aspect.c         av_log(ctx, AV_LOG_ERROR,
ctx               145 libavfilter/vf_aspect.c         av_log(ctx, AV_LOG_ERROR,
ctx                48 libavfilter/vf_bbox.c static int query_formats(AVFilterContext *ctx)
ctx                59 libavfilter/vf_bbox.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx                68 libavfilter/vf_bbox.c     AVFilterContext *ctx = inlink->dst;
ctx                69 libavfilter/vf_bbox.c     BBoxContext *bbox = ctx->priv;
ctx                80 libavfilter/vf_bbox.c     av_log(ctx, AV_LOG_INFO,
ctx                94 libavfilter/vf_bbox.c         av_log(ctx, AV_LOG_INFO,
ctx               101 libavfilter/vf_bbox.c     av_log(ctx, AV_LOG_INFO, "\n");
ctx                71 libavfilter/vf_blackdetect.c static int query_formats(AVFilterContext *ctx)
ctx                83 libavfilter/vf_blackdetect.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx                89 libavfilter/vf_blackdetect.c     AVFilterContext *ctx = inlink->dst;
ctx                90 libavfilter/vf_blackdetect.c     BlackDetectContext *blackdetect = ctx->priv;
ctx               108 libavfilter/vf_blackdetect.c static void check_black_end(AVFilterContext *ctx)
ctx               110 libavfilter/vf_blackdetect.c     BlackDetectContext *blackdetect = ctx->priv;
ctx               111 libavfilter/vf_blackdetect.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               124 libavfilter/vf_blackdetect.c     AVFilterContext *ctx = outlink->src;
ctx               125 libavfilter/vf_blackdetect.c     BlackDetectContext *blackdetect = ctx->priv;
ctx               126 libavfilter/vf_blackdetect.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               132 libavfilter/vf_blackdetect.c         check_black_end(ctx);
ctx               140 libavfilter/vf_blackdetect.c     AVFilterContext *ctx = inlink->dst;
ctx               141 libavfilter/vf_blackdetect.c     BlackDetectContext *blackdetect = ctx->priv;
ctx               154 libavfilter/vf_blackdetect.c     av_log(ctx, AV_LOG_DEBUG,
ctx               172 libavfilter/vf_blackdetect.c         check_black_end(ctx);
ctx                49 libavfilter/vf_blackframe.c static int query_formats(AVFilterContext *ctx)
ctx                57 libavfilter/vf_blackframe.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx                67 libavfilter/vf_blackframe.c     AVFilterContext *ctx = inlink->dst;
ctx                68 libavfilter/vf_blackframe.c     BlackFrameContext *s = ctx->priv;
ctx                88 libavfilter/vf_blackframe.c         av_log(ctx, AV_LOG_INFO, "frame:%u pblack:%u pts:%"PRId64" t:%f "
ctx               242 libavfilter/vf_blend.c static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               269 libavfilter/vf_blend.c static AVFrame *blend_frame(AVFilterContext *ctx, AVFrame *top_buf,
ctx               272 libavfilter/vf_blend.c     BlendContext *b = ctx->priv;
ctx               273 libavfilter/vf_blend.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               274 libavfilter/vf_blend.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               293 libavfilter/vf_blend.c         ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(outh, ctx->graph->nb_threads));
ctx               302 libavfilter/vf_blend.c static av_cold int init(AVFilterContext *ctx)
ctx               304 libavfilter/vf_blend.c     BlendContext *b = ctx->priv;
ctx               307 libavfilter/vf_blend.c     b->tblend = !strcmp(ctx->filter->name, "tblend");
ctx               352 libavfilter/vf_blend.c                                 NULL, NULL, NULL, NULL, 0, ctx);
ctx               363 libavfilter/vf_blend.c static int query_formats(AVFilterContext *ctx)
ctx               372 libavfilter/vf_blend.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               376 libavfilter/vf_blend.c static av_cold void uninit(AVFilterContext *ctx)
ctx               378 libavfilter/vf_blend.c     BlendContext *b = ctx->priv;
ctx               392 libavfilter/vf_blend.c     AVFilterContext *ctx = outlink->src;
ctx               393 libavfilter/vf_blend.c     AVFilterLink *toplink = ctx->inputs[TOP];
ctx               394 libavfilter/vf_blend.c     AVFilterLink *bottomlink = ctx->inputs[BOTTOM];
ctx               395 libavfilter/vf_blend.c     BlendContext *b = ctx->priv;
ctx               400 libavfilter/vf_blend.c         av_log(ctx, AV_LOG_ERROR, "inputs must be of same pixel format\n");
ctx               407 libavfilter/vf_blend.c         av_log(ctx, AV_LOG_ERROR, "First input link %s parameters "
ctx               410 libavfilter/vf_blend.c                ctx->input_pads[TOP].name, toplink->w, toplink->h,
ctx               413 libavfilter/vf_blend.c                ctx->input_pads[BOTTOM].name, bottomlink->w, bottomlink->h,
ctx               429 libavfilter/vf_blend.c     if ((ret = ff_dualinput_init(ctx, &b->dinput)) < 0)
ctx               489 libavfilter/vf_blend.c     AVFilterContext *ctx = outlink->src;
ctx               490 libavfilter/vf_blend.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               491 libavfilter/vf_blend.c     BlendContext *b = ctx->priv;
ctx                81 libavfilter/vf_boxblur.c static av_cold int init(AVFilterContext *ctx)
ctx                83 libavfilter/vf_boxblur.c     BoxBlurContext *s = ctx->priv;
ctx                86 libavfilter/vf_boxblur.c         av_log(ctx, AV_LOG_ERROR, "Luma radius expression is not set.\n");
ctx               110 libavfilter/vf_boxblur.c static av_cold void uninit(AVFilterContext *ctx)
ctx               112 libavfilter/vf_boxblur.c     BoxBlurContext *s = ctx->priv;
ctx               118 libavfilter/vf_boxblur.c static int query_formats(AVFilterContext *ctx)
ctx               131 libavfilter/vf_boxblur.c     ff_set_common_formats(ctx, formats);
ctx               138 libavfilter/vf_boxblur.c     AVFilterContext    *ctx = inlink->dst;
ctx               139 libavfilter/vf_boxblur.c     BoxBlurContext *s = ctx->priv;
ctx               163 libavfilter/vf_boxblur.c                                  NULL, NULL, NULL, NULL, NULL, 0, ctx); \
ctx               174 libavfilter/vf_boxblur.c     av_log(ctx, AV_LOG_VERBOSE,
ctx               187 libavfilter/vf_boxblur.c         av_log(ctx, AV_LOG_ERROR,                                       \
ctx               346 libavfilter/vf_boxblur.c     AVFilterContext *ctx = inlink->dst;
ctx               347 libavfilter/vf_boxblur.c     BoxBlurContext *s = ctx->priv;
ctx                60 libavfilter/vf_codecview.c static int query_formats(AVFilterContext *ctx)
ctx                65 libavfilter/vf_codecview.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               195 libavfilter/vf_codecview.c     AVFilterContext *ctx = inlink->dst;
ctx               196 libavfilter/vf_codecview.c     CodecViewContext *s = ctx->priv;
ctx               197 libavfilter/vf_codecview.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                69 libavfilter/vf_colorbalance.c static int query_formats(AVFilterContext *ctx)
ctx                80 libavfilter/vf_colorbalance.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx                86 libavfilter/vf_colorbalance.c     AVFilterContext *ctx = outlink->src;
ctx                87 libavfilter/vf_colorbalance.c     ColorBalanceContext *s = ctx->priv;
ctx               140 libavfilter/vf_colorbalance.c     AVFilterContext *ctx = inlink->dst;
ctx               141 libavfilter/vf_colorbalance.c     ColorBalanceContext *s = ctx->priv;
ctx               142 libavfilter/vf_colorbalance.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               183 libavfilter/vf_colorbalance.c     return ff_filter_frame(ctx->outputs[0], out);
ctx                71 libavfilter/vf_colorchannelmixer.c static int query_formats(AVFilterContext *ctx)
ctx                84 libavfilter/vf_colorchannelmixer.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx                90 libavfilter/vf_colorchannelmixer.c     AVFilterContext *ctx = outlink->src;
ctx                91 libavfilter/vf_colorchannelmixer.c     ColorChannelMixerContext *s = ctx->priv;
ctx               142 libavfilter/vf_colorchannelmixer.c     AVFilterContext *ctx = inlink->dst;
ctx               143 libavfilter/vf_colorchannelmixer.c     ColorChannelMixerContext *s = ctx->priv;
ctx               144 libavfilter/vf_colorchannelmixer.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               322 libavfilter/vf_colorchannelmixer.c     return ff_filter_frame(ctx->outputs[0], out);
ctx               325 libavfilter/vf_colorchannelmixer.c static av_cold void uninit(AVFilterContext *ctx)
ctx               327 libavfilter/vf_colorchannelmixer.c     ColorChannelMixerContext *s = ctx->priv;
ctx                74 libavfilter/vf_colorlevels.c static int query_formats(AVFilterContext *ctx)
ctx                87 libavfilter/vf_colorlevels.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx                93 libavfilter/vf_colorlevels.c     AVFilterContext *ctx = inlink->dst;
ctx                94 libavfilter/vf_colorlevels.c     ColorLevelsContext *s = ctx->priv;
ctx               108 libavfilter/vf_colorlevels.c     AVFilterContext *ctx = inlink->dst;
ctx               109 libavfilter/vf_colorlevels.c     ColorLevelsContext *s = ctx->priv;
ctx               110 libavfilter/vf_colorlevels.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               136 libavfilter/vf_colormatrix.c static void calc_coefficients(AVFilterContext *ctx)
ctx               138 libavfilter/vf_colormatrix.c     ColorMatrixContext *color = ctx->priv;
ctx               156 libavfilter/vf_colormatrix.c                 av_log(ctx, AV_LOG_ERROR, "error calculating conversion coefficients\n");
ctx               165 libavfilter/vf_colormatrix.c static av_cold int init(AVFilterContext *ctx)
ctx               167 libavfilter/vf_colormatrix.c     ColorMatrixContext *color = ctx->priv;
ctx               170 libavfilter/vf_colormatrix.c         av_log(ctx, AV_LOG_ERROR, "Unspecified destination color space\n");
ctx               175 libavfilter/vf_colormatrix.c         av_log(ctx, AV_LOG_ERROR, "Source and destination color space must not be identical\n");
ctx               306 libavfilter/vf_colormatrix.c     AVFilterContext *ctx = inlink->dst;
ctx               307 libavfilter/vf_colormatrix.c     ColorMatrixContext *color = ctx->priv;
ctx               313 libavfilter/vf_colormatrix.c     av_log(ctx, AV_LOG_VERBOSE, "%s -> %s\n",
ctx               319 libavfilter/vf_colormatrix.c static int query_formats(AVFilterContext *ctx)
ctx               328 libavfilter/vf_colormatrix.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               335 libavfilter/vf_colormatrix.c     AVFilterContext *ctx = link->dst;
ctx               336 libavfilter/vf_colormatrix.c     ColorMatrixContext *color = ctx->priv;
ctx               337 libavfilter/vf_colormatrix.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               358 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               373 libavfilter/vf_colormatrix.c     calc_coefficients(ctx);
ctx                93 libavfilter/vf_crop.c static int query_formats(AVFilterContext *ctx)
ctx               105 libavfilter/vf_crop.c     ff_set_common_formats(ctx, formats);
ctx               109 libavfilter/vf_crop.c static av_cold void uninit(AVFilterContext *ctx)
ctx               111 libavfilter/vf_crop.c     CropContext *s = ctx->priv;
ctx               136 libavfilter/vf_crop.c     AVFilterContext *ctx = link->dst;
ctx               137 libavfilter/vf_crop.c     CropContext *s = ctx->priv;
ctx               143 libavfilter/vf_crop.c     s->var_values[VAR_IN_W]  = s->var_values[VAR_IW] = ctx->inputs[0]->w;
ctx               144 libavfilter/vf_crop.c     s->var_values[VAR_IN_H]  = s->var_values[VAR_IH] = ctx->inputs[0]->h;
ctx               164 libavfilter/vf_crop.c                                       NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               169 libavfilter/vf_crop.c                                       NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               175 libavfilter/vf_crop.c                                       NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               181 libavfilter/vf_crop.c         av_log(ctx, AV_LOG_ERROR,
ctx               194 libavfilter/vf_crop.c                              NULL, NULL, NULL, NULL, 0, ctx)) < 0 ||
ctx               196 libavfilter/vf_crop.c                              NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               207 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               213 libavfilter/vf_crop.c         av_log(ctx, AV_LOG_ERROR,
ctx               244 libavfilter/vf_crop.c     AVFilterContext *ctx = link->dst;
ctx               245 libavfilter/vf_crop.c     CropContext *s = ctx->priv;
ctx               275 libavfilter/vf_crop.c     av_dlog(ctx, "n:%d t:%f pos:%f x:%d y:%d x+w:%d y+h:%d\n",
ctx                46 libavfilter/vf_cropdetect.c static int query_formats(AVFilterContext *ctx)
ctx                65 libavfilter/vf_cropdetect.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx                69 libavfilter/vf_cropdetect.c static int checkline(void *ctx, const unsigned char *src, int stride, int len, int bpp)
ctx               120 libavfilter/vf_cropdetect.c     av_log(ctx, AV_LOG_DEBUG, "total:%d\n", total);
ctx               124 libavfilter/vf_cropdetect.c static av_cold int init(AVFilterContext *ctx)
ctx               126 libavfilter/vf_cropdetect.c     CropDetectContext *s = ctx->priv;
ctx               130 libavfilter/vf_cropdetect.c     av_log(ctx, AV_LOG_VERBOSE, "limit:%f round:%d reset_count:%d\n",
ctx               138 libavfilter/vf_cropdetect.c     AVFilterContext *ctx = inlink->dst;
ctx               139 libavfilter/vf_cropdetect.c     CropDetectContext *s = ctx->priv;
ctx               160 libavfilter/vf_cropdetect.c     AVFilterContext *ctx = inlink->dst;
ctx               161 libavfilter/vf_cropdetect.c     CropDetectContext *s = ctx->priv;
ctx               184 libavfilter/vf_cropdetect.c             if (checkline(ctx, frame->data[0] + STEP0 * y, STEP1, LEN, bpp) > limit) {\
ctx               231 libavfilter/vf_cropdetect.c         av_log(ctx, AV_LOG_INFO,
ctx               148 libavfilter/vf_curves.c static int parse_points_str(AVFilterContext *ctx, struct keypoint **points, const char *s)
ctx               161 libavfilter/vf_curves.c             av_log(ctx, AV_LOG_ERROR, "Invalid key point coordinates (%f;%f), "
ctx               169 libavfilter/vf_curves.c                 av_log(ctx, AV_LOG_ERROR, "Key point coordinates (%f;%f) "
ctx               222 libavfilter/vf_curves.c static int interpolate(AVFilterContext *ctx, uint8_t *y, const struct keypoint *points)
ctx               304 libavfilter/vf_curves.c             av_log(ctx, AV_LOG_DEBUG, "f(%f)=%f -> y[%d]=%d\n", xx, yy, x, y[x]);
ctx               318 libavfilter/vf_curves.c static int parse_psfile(AVFilterContext *ctx, const char *fname)
ctx               320 libavfilter/vf_curves.c     CurvesContext *curves = ctx->priv;
ctx               359 libavfilter/vf_curves.c                 av_log(ctx, AV_LOG_DEBUG, "curves %d (intid=%d) [%d points]: [%s]\n",
ctx               374 libavfilter/vf_curves.c static av_cold int init(AVFilterContext *ctx)
ctx               377 libavfilter/vf_curves.c     CurvesContext *curves = ctx->priv;
ctx               395 libavfilter/vf_curves.c         ret = parse_psfile(ctx, curves->psfile);
ctx               415 libavfilter/vf_curves.c         ret = parse_points_str(ctx, comp_points + i, curves->comp_points_str[i]);
ctx               418 libavfilter/vf_curves.c         ret = interpolate(ctx, curves->graph[i], comp_points[i]);
ctx               432 libavfilter/vf_curves.c             av_log(ctx, AV_LOG_VERBOSE, "#%d points:", i);
ctx               434 libavfilter/vf_curves.c                 av_log(ctx, AV_LOG_VERBOSE, " (%f;%f)", point->x, point->y);
ctx               437 libavfilter/vf_curves.c             av_log(ctx, AV_LOG_VERBOSE, "\n");
ctx               438 libavfilter/vf_curves.c             av_log(ctx, AV_LOG_VERBOSE, "#%d values:", i);
ctx               440 libavfilter/vf_curves.c                 av_log(ctx, AV_LOG_VERBOSE, " %02X", curves->graph[i][j]);
ctx               441 libavfilter/vf_curves.c             av_log(ctx, AV_LOG_VERBOSE, "\n");
ctx               457 libavfilter/vf_curves.c static int query_formats(AVFilterContext *ctx)
ctx               467 libavfilter/vf_curves.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               482 libavfilter/vf_curves.c static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               485 libavfilter/vf_curves.c     const CurvesContext *curves = ctx->priv;
ctx               516 libavfilter/vf_curves.c     AVFilterContext *ctx = inlink->dst;
ctx               517 libavfilter/vf_curves.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               534 libavfilter/vf_curves.c     ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(outlink->h, ctx->graph->nb_threads));
ctx               482 libavfilter/vf_dctdnoiz.c     AVFilterContext *ctx = inlink->dst;
ctx               483 libavfilter/vf_dctdnoiz.c     DCTdnoizContext *s = ctx->priv;
ctx               503 libavfilter/vf_dctdnoiz.c         av_log(ctx, AV_LOG_WARNING, "The last %d horizontal pixels won't be denoised\n",
ctx               506 libavfilter/vf_dctdnoiz.c         av_log(ctx, AV_LOG_WARNING, "The last %d vertical pixels won't be denoised\n",
ctx               510 libavfilter/vf_dctdnoiz.c     s->nb_threads = FFMIN3(MAX_THREADS, ctx->graph->nb_threads, max_slice_h);
ctx               511 libavfilter/vf_dctdnoiz.c     av_log(ctx, AV_LOG_DEBUG, "threads: [max=%d hmax=%d user=%d] => %d\n",
ctx               512 libavfilter/vf_dctdnoiz.c            MAX_THREADS, max_slice_h, ctx->graph->nb_threads, s->nb_threads);
ctx               528 libavfilter/vf_dctdnoiz.c                                     NULL, NULL, NULL, NULL, 0, ctx);
ctx               563 libavfilter/vf_dctdnoiz.c static av_cold int init(AVFilterContext *ctx)
ctx               565 libavfilter/vf_dctdnoiz.c     DCTdnoizContext *s = ctx->priv;
ctx               597 libavfilter/vf_dctdnoiz.c static int query_formats(AVFilterContext *ctx)
ctx               603 libavfilter/vf_dctdnoiz.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               611 libavfilter/vf_dctdnoiz.c static int filter_slice(AVFilterContext *ctx,
ctx               615 libavfilter/vf_dctdnoiz.c     DCTdnoizContext *s = ctx->priv;
ctx               661 libavfilter/vf_dctdnoiz.c     AVFilterContext *ctx = inlink->dst;
ctx               662 libavfilter/vf_dctdnoiz.c     DCTdnoizContext *s = ctx->priv;
ctx               688 libavfilter/vf_dctdnoiz.c         ctx->internal->execute(ctx, filter_slice, &td, NULL, s->nb_threads);
ctx               730 libavfilter/vf_dctdnoiz.c static av_cold void uninit(AVFilterContext *ctx)
ctx               733 libavfilter/vf_dctdnoiz.c     DCTdnoizContext *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               194 libavfilter/vf_decimate.c         av_log(ctx, AV_LOG_DEBUG, "1/%d frame drop:\n", dm->cycle);
ctx               196 libavfilter/vf_decimate.c             av_log(ctx, AV_LOG_DEBUG,"  #%d: totdiff=%08"PRIx64" maxbdiff=%08"PRIx64"%s%s%s%s\n",
ctx               234 libavfilter/vf_decimate.c     AVFilterContext *ctx = inlink->dst;
ctx               235 libavfilter/vf_decimate.c     DecimateContext *dm = ctx->priv;
ctx               264 libavfilter/vf_decimate.c static av_cold int decimate_init(AVFilterContext *ctx)
ctx               266 libavfilter/vf_decimate.c     DecimateContext *dm = ctx->priv;
ctx               276 libavfilter/vf_decimate.c     ff_insert_inpad(ctx, INPUT_MAIN, &pad);
ctx               283 libavfilter/vf_decimate.c         ff_insert_inpad(ctx, INPUT_CLEANSRC, &pad);
ctx               288 libavfilter/vf_decimate.c         av_log(ctx, AV_LOG_ERROR, "blockx and blocky settings must be power of two\n");
ctx               297 libavfilter/vf_decimate.c static av_cold void decimate_uninit(AVFilterContext *ctx)
ctx               300 libavfilter/vf_decimate.c     DecimateContext *dm = ctx->priv;
ctx               306 libavfilter/vf_decimate.c     for (i = 0; i < ctx->nb_inputs; i++)
ctx               307 libavfilter/vf_decimate.c         av_freep(&ctx->input_pads[i].name);
ctx               310 libavfilter/vf_decimate.c static int request_inlink(AVFilterContext *ctx, int lid)
ctx               313 libavfilter/vf_decimate.c     DecimateContext *dm = ctx->priv;
ctx               316 libavfilter/vf_decimate.c         AVFilterLink *inlink = ctx->inputs[lid];
ctx               329 libavfilter/vf_decimate.c     AVFilterContext *ctx = outlink->src;
ctx               330 libavfilter/vf_decimate.c     DecimateContext *dm = ctx->priv;
ctx               335 libavfilter/vf_decimate.c     if ((ret = request_inlink(ctx, INPUT_MAIN)) < 0)
ctx               337 libavfilter/vf_decimate.c     if (dm->ppsrc && (ret = request_inlink(ctx, INPUT_CLEANSRC)) < 0)
ctx               342 libavfilter/vf_decimate.c static int query_formats(AVFilterContext *ctx)
ctx               353 libavfilter/vf_decimate.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               359 libavfilter/vf_decimate.c     AVFilterContext *ctx = outlink->src;
ctx               360 libavfilter/vf_decimate.c     DecimateContext *dm = ctx->priv;
ctx               362 libavfilter/vf_decimate.c         ctx->inputs[dm->ppsrc ? INPUT_CLEANSRC : INPUT_MAIN];
ctx               366 libavfilter/vf_decimate.c         av_log(ctx, AV_LOG_ERROR, "The input needs a constant frame rate; "
ctx               371 libavfilter/vf_decimate.c     av_log(ctx, AV_LOG_VERBOSE, "FPS: %d/%d -> %d/%d\n",
ctx                82 libavfilter/vf_dejudder.c     AVFilterContext *ctx = outlink->src;
ctx                83 libavfilter/vf_dejudder.c     DejudderContext *dj = ctx->priv;
ctx                89 libavfilter/vf_dejudder.c     av_log(ctx, AV_LOG_VERBOSE, "cycle:%d\n", dj->cycle);
ctx                94 libavfilter/vf_dejudder.c static av_cold int dejudder_init(AVFilterContext *ctx)
ctx                96 libavfilter/vf_dejudder.c     DejudderContext *dj = ctx->priv;
ctx               112 libavfilter/vf_dejudder.c static av_cold void dejudder_uninit(AVFilterContext *ctx)
ctx               114 libavfilter/vf_dejudder.c     DejudderContext *dj = 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 *dj   = 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               172 libavfilter/vf_delogo.c static int query_formats(AVFilterContext *ctx)
ctx               181 libavfilter/vf_delogo.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               185 libavfilter/vf_delogo.c static av_cold int init(AVFilterContext *ctx)
ctx               187 libavfilter/vf_delogo.c     DelogoContext *s = ctx->priv;
ctx               199 libavfilter/vf_delogo.c     av_log(ctx, AV_LOG_VERBOSE, "x:%d y:%d, w:%d h:%d band:%d show:%d\n",
ctx               318 libavfilter/vf_deshake.c static int deshake_transform_c(AVFilterContext *ctx,
ctx               344 libavfilter/vf_deshake.c static av_cold int init(AVFilterContext *ctx)
ctx               347 libavfilter/vf_deshake.c     DeshakeContext *deshake = ctx->priv;
ctx               358 libavfilter/vf_deshake.c         av_log(ctx, AV_LOG_ERROR, "rx must be a multiple of 16\n");
ctx               375 libavfilter/vf_deshake.c         av_log(ctx, AV_LOG_ERROR, "OpenCL support was not enabled in this build, cannot be selected\n");
ctx               381 libavfilter/vf_deshake.c         ret = ff_opencl_deshake_init(ctx);
ctx               385 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               392 libavfilter/vf_deshake.c static int query_formats(AVFilterContext *ctx)
ctx               400 libavfilter/vf_deshake.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               418 libavfilter/vf_deshake.c static av_cold void uninit(AVFilterContext *ctx)
ctx               420 libavfilter/vf_deshake.c     DeshakeContext *deshake = ctx->priv;
ctx               422 libavfilter/vf_deshake.c         ff_opencl_deshake_uninit(ctx);
ctx                86 libavfilter/vf_drawbox.c static av_cold int init(AVFilterContext *ctx)
ctx                88 libavfilter/vf_drawbox.c     DrawBoxContext *s = ctx->priv;
ctx                93 libavfilter/vf_drawbox.c     else if (av_parse_color(rgba_color, s->color_str, -1, ctx) < 0)
ctx               106 libavfilter/vf_drawbox.c static int query_formats(AVFilterContext *ctx)
ctx               116 libavfilter/vf_drawbox.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               122 libavfilter/vf_drawbox.c     AVFilterContext *ctx = inlink->dst;
ctx               123 libavfilter/vf_drawbox.c     DrawBoxContext *s = ctx->priv;
ctx               150 libavfilter/vf_drawbox.c                                           NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0 && i == NUM_EXPR_EVALS)
ctx               157 libavfilter/vf_drawbox.c                                           NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0 && i == NUM_EXPR_EVALS)
ctx               164 libavfilter/vf_drawbox.c                                           NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0 && i == NUM_EXPR_EVALS)
ctx               171 libavfilter/vf_drawbox.c                                           NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0 && i == NUM_EXPR_EVALS)
ctx               178 libavfilter/vf_drawbox.c                                           NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0 && i == NUM_EXPR_EVALS)
ctx               189 libavfilter/vf_drawbox.c         av_log(ctx, AV_LOG_ERROR, "Size values less than 0 are not acceptable.\n");
ctx               193 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               200 libavfilter/vf_drawbox.c     av_log(ctx, AV_LOG_ERROR,
ctx               295 libavfilter/vf_drawtext.c static int load_glyph(AVFilterContext *ctx, Glyph **glyph_ptr, uint32_t code)
ctx               297 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               362 libavfilter/vf_drawtext.c static int load_font_file(AVFilterContext *ctx, const char *path, int index)
ctx               364 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               369 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR, "Could not load font \"%s\": %s\n",
ctx               377 libavfilter/vf_drawtext.c static int load_font_fontconfig(AVFilterContext *ctx)
ctx               379 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               390 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR, "impossible to init fontconfig\n");
ctx               396 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR, "could not parse fontconfig pat");
ctx               407 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR, "could not substitue fontconfig options"); /* very unlikely */
ctx               416 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR,
ctx               425 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR, "impossible to find font information");
ctx               430 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR, "No file path for %s\n",
ctx               435 libavfilter/vf_drawtext.c     av_log(ctx, AV_LOG_INFO, "Using \"%s\"\n", filename);
ctx               439 libavfilter/vf_drawtext.c     err = load_font_file(ctx, filename, index);
ctx               449 libavfilter/vf_drawtext.c static int load_font(AVFilterContext *ctx)
ctx               451 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               455 libavfilter/vf_drawtext.c     err = load_font_file(ctx, s->fontfile, 0);
ctx               459 libavfilter/vf_drawtext.c     err = load_font_fontconfig(ctx);
ctx               466 libavfilter/vf_drawtext.c static int load_textfile(AVFilterContext *ctx)
ctx               468 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               474 libavfilter/vf_drawtext.c     if ((err = av_file_map(s->textfile, &textbuf, &textbuf_size, 0, ctx)) < 0) {
ctx               475 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR,
ctx               499 libavfilter/vf_drawtext.c static int shape_text(AVFilterContext *ctx)
ctx               501 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               586 libavfilter/vf_drawtext.c static av_cold int init(AVFilterContext *ctx)
ctx               589 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               593 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR, "No font filename provided\n");
ctx               599 libavfilter/vf_drawtext.c             av_log(ctx, AV_LOG_ERROR,
ctx               603 libavfilter/vf_drawtext.c         if ((err = load_textfile(ctx)) < 0)
ctx               609 libavfilter/vf_drawtext.c         if ((err = shape_text(ctx)) < 0)
ctx               614 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_WARNING, "No file to reload\n");
ctx               618 libavfilter/vf_drawtext.c                                                s->tc_opt_string, ctx);
ctx               628 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR,
ctx               634 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR,
ctx               639 libavfilter/vf_drawtext.c     err = load_font(ctx);
ctx               645 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR, "Could not set font size to %d pixels: %s\n",
ctx               652 libavfilter/vf_drawtext.c             av_log(ctx, AV_LOG_ERROR, "Coult not init FT stroker\n");
ctx               662 libavfilter/vf_drawtext.c     load_glyph(ctx, NULL, 0);
ctx               665 libavfilter/vf_drawtext.c     if ((err = load_glyph(ctx, &glyph, ' ')) < 0) {
ctx               666 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR, "Could not set tabsize.\n");
ctx               673 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_WARNING, "expansion=strftime is deprecated.\n");
ctx               681 libavfilter/vf_drawtext.c static int query_formats(AVFilterContext *ctx)
ctx               683 libavfilter/vf_drawtext.c     ff_set_common_formats(ctx, ff_draw_supported_pixel_formats(0));
ctx               697 libavfilter/vf_drawtext.c static av_cold void uninit(AVFilterContext *ctx)
ctx               699 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               722 libavfilter/vf_drawtext.c     AVFilterContext *ctx = inlink->dst;
ctx               723 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               749 libavfilter/vf_drawtext.c                              NULL, NULL, fun2_names, fun2, 0, ctx)) < 0 ||
ctx               751 libavfilter/vf_drawtext.c                              NULL, NULL, fun2_names, fun2, 0, ctx)) < 0)
ctx               758 libavfilter/vf_drawtext.c static int command(AVFilterContext *ctx, const char *cmd, const char *arg, char *res, int res_len, int flags)
ctx               760 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               764 libavfilter/vf_drawtext.c         uninit(ctx);
ctx               766 libavfilter/vf_drawtext.c         if ((ret = av_set_options_string(ctx, arg, "=", ":")) < 0)
ctx               768 libavfilter/vf_drawtext.c         if ((ret = init(ctx)) < 0)
ctx               770 libavfilter/vf_drawtext.c         return config_input(ctx->inputs[0]);
ctx               776 libavfilter/vf_drawtext.c static int func_pict_type(AVFilterContext *ctx, AVBPrint *bp,
ctx               779 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               785 libavfilter/vf_drawtext.c static int func_pts(AVFilterContext *ctx, AVBPrint *bp,
ctx               788 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               797 libavfilter/vf_drawtext.c             av_log(ctx, AV_LOG_ERROR, "Invalid delta '%s'\n", argv[1]);
ctx               821 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR, "Invalid format '%s'\n", fmt);
ctx               827 libavfilter/vf_drawtext.c static int func_frame_num(AVFilterContext *ctx, AVBPrint *bp,
ctx               830 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               836 libavfilter/vf_drawtext.c static int func_metadata(AVFilterContext *ctx, AVBPrint *bp,
ctx               839 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               847 libavfilter/vf_drawtext.c static int func_strftime(AVFilterContext *ctx, AVBPrint *bp,
ctx               863 libavfilter/vf_drawtext.c static int func_eval_expr(AVFilterContext *ctx, AVBPrint *bp,
ctx               866 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               872 libavfilter/vf_drawtext.c                                  &s->prng, 0, ctx);
ctx               874 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR,
ctx               883 libavfilter/vf_drawtext.c static int func_eval_expr_int_format(AVFilterContext *ctx, AVBPrint *bp,
ctx               886 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx               901 libavfilter/vf_drawtext.c                                  &s->prng, 0, ctx);
ctx               903 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR,
ctx               910 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR, "Invalid format '%c' specified,"
ctx               918 libavfilter/vf_drawtext.c             av_log(ctx, AV_LOG_ERROR, "expr_int_format(): Invalid number of positions"
ctx               927 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               935 libavfilter/vf_drawtext.c     av_log(ctx, AV_LOG_DEBUG, "Formatting value %f (expr '%s') with spec '%s'\n",
ctx               962 libavfilter/vf_drawtext.c static int eval_function(AVFilterContext *ctx, AVBPrint *bp, char *fct,
ctx               971 libavfilter/vf_drawtext.c             av_log(ctx, AV_LOG_ERROR, "%%{%s} requires at least %d arguments\n",
ctx               976 libavfilter/vf_drawtext.c             av_log(ctx, AV_LOG_ERROR, "%%{%s} requires at most %d arguments\n",
ctx               983 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR, "%%{%s} is not known\n", fct);
ctx               986 libavfilter/vf_drawtext.c     return functions[i].func(ctx, bp, fct, argc, argv, functions[i].tag);
ctx               989 libavfilter/vf_drawtext.c static int expand_function(AVFilterContext *ctx, AVBPrint *bp, char **rtext)
ctx               997 libavfilter/vf_drawtext.c         av_log(ctx, AV_LOG_ERROR, "Stray %% near '%s'\n", text);
ctx              1007 libavfilter/vf_drawtext.c             av_log(ctx, AV_LOG_ERROR, "Unterminated %%{} near '%s'\n", *rtext);
ctx              1018 libavfilter/vf_drawtext.c     if ((ret = eval_function(ctx, bp, argv[0], argc - 1, argv + 1)) < 0)
ctx              1029 libavfilter/vf_drawtext.c static int expand_text(AVFilterContext *ctx, char *text, AVBPrint *bp)
ctx              1040 libavfilter/vf_drawtext.c             if ((ret = expand_function(ctx, bp, &text)) < 0)
ctx              1094 libavfilter/vf_drawtext.c static int draw_text(AVFilterContext *ctx, AVFrame *frame,
ctx              1097 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx              1098 libavfilter/vf_drawtext.c     AVFilterLink *inlink = ctx->inputs[0];
ctx              1119 libavfilter/vf_drawtext.c         now= frame->pts*av_q2d(ctx->inputs[0]->time_base) + s->basetime/1000000;
ctx              1126 libavfilter/vf_drawtext.c         if ((ret = expand_text(ctx, s->text, &s->expanded_text)) < 0)
ctx              1155 libavfilter/vf_drawtext.c         if ((ret = expand_text(ctx, s->fontcolor_expr, &s->expanded_fontcolor)) < 0)
ctx              1177 libavfilter/vf_drawtext.c             load_glyph(ctx, &glyph, code);
ctx              1270 libavfilter/vf_drawtext.c     AVFilterContext *ctx = inlink->dst;
ctx              1271 libavfilter/vf_drawtext.c     AVFilterLink *outlink = ctx->outputs[0];
ctx              1272 libavfilter/vf_drawtext.c     DrawTextContext *s = ctx->priv;
ctx              1276 libavfilter/vf_drawtext.c         if ((ret = load_textfile(ctx)) < 0)
ctx              1280 libavfilter/vf_drawtext.c             if ((ret = shape_text(ctx)) < 0)
ctx              1292 libavfilter/vf_drawtext.c     draw_text(ctx, frame, frame->width, frame->height);
ctx              1294 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                69 libavfilter/vf_edgedetect.c static av_cold int init(AVFilterContext *ctx)
ctx                71 libavfilter/vf_edgedetect.c     EdgeDetectContext *edgedetect = ctx->priv;
ctx                78 libavfilter/vf_edgedetect.c static int query_formats(AVFilterContext *ctx)
ctx                80 libavfilter/vf_edgedetect.c     const EdgeDetectContext *edgedetect = ctx->priv;
ctx                84 libavfilter/vf_edgedetect.c         ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx                87 libavfilter/vf_edgedetect.c         ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx                97 libavfilter/vf_edgedetect.c     AVFilterContext *ctx = inlink->dst;
ctx                98 libavfilter/vf_edgedetect.c     EdgeDetectContext *edgedetect = ctx->priv;
ctx               113 libavfilter/vf_edgedetect.c static void gaussian_blur(AVFilterContext *ctx, int w, int h,
ctx               291 libavfilter/vf_edgedetect.c     AVFilterContext *ctx = inlink->dst;
ctx               292 libavfilter/vf_edgedetect.c     EdgeDetectContext *edgedetect = ctx->priv;
ctx               293 libavfilter/vf_edgedetect.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               316 libavfilter/vf_edgedetect.c         gaussian_blur(ctx, inlink->w, inlink->h,
ctx               352 libavfilter/vf_edgedetect.c static av_cold void uninit(AVFilterContext *ctx)
ctx               355 libavfilter/vf_edgedetect.c     EdgeDetectContext *edgedetect = ctx->priv;
ctx                65 libavfilter/vf_elbg.c static av_cold int init(AVFilterContext *ctx)
ctx                67 libavfilter/vf_elbg.c     ELBGContext *elbg = ctx->priv;
ctx                76 libavfilter/vf_elbg.c static int query_formats(AVFilterContext *ctx)
ctx                84 libavfilter/vf_elbg.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx                93 libavfilter/vf_elbg.c     AVFilterContext *ctx = inlink->dst;
ctx                94 libavfilter/vf_elbg.c     ELBGContext *elbg = ctx->priv;
ctx               174 libavfilter/vf_elbg.c static av_cold void uninit(AVFilterContext *ctx)
ctx               176 libavfilter/vf_elbg.c     ELBGContext *elbg = ctx->priv;
ctx               183 libavfilter/vf_eq.c static int initialize(AVFilterContext *ctx)
ctx               185 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               211 libavfilter/vf_eq.c static void uninit(AVFilterContext *ctx)
ctx               213 libavfilter/vf_eq.c     EQContext *eq = ctx->priv;
ctx               225 libavfilter/vf_eq.c static int query_formats(AVFilterContext *ctx)
ctx               237 libavfilter/vf_eq.c     ff_set_common_formats(ctx, ff_make_format_list(pixel_fmts_eq));
ctx               244 libavfilter/vf_eq.c     AVFilterContext *ctx = inlink->dst;
ctx               246 libavfilter/vf_eq.c     EQContext *eq = ctx->priv;
ctx               279 libavfilter/vf_eq.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               282 libavfilter/vf_eq.c     EQContext *eq = ctx->priv;
ctx               286 libavfilter/vf_eq.c         ret = set_expr(&eq->contrast_pexpr, args, cmd, ctx);
ctx               291 libavfilter/vf_eq.c         ret = set_expr(&eq->brightness_pexpr, args, cmd, ctx);
ctx               296 libavfilter/vf_eq.c         ret = set_expr(&eq->saturation_pexpr, args, cmd, ctx);
ctx               301 libavfilter/vf_eq.c         ret = set_expr(&eq->gamma_pexpr, args, cmd, ctx);
ctx               306 libavfilter/vf_eq.c         ret = set_expr(&eq->gamma_r_pexpr, args, cmd, ctx);
ctx               311 libavfilter/vf_eq.c         ret = set_expr(&eq->gamma_g_pexpr, args, cmd, ctx);
ctx               316 libavfilter/vf_eq.c         ret = set_expr(&eq->gamma_b_pexpr, args, cmd, ctx);
ctx               321 libavfilter/vf_eq.c         ret = set_expr(&eq->gamma_weight_pexpr, args, cmd, ctx);
ctx                63 libavfilter/vf_extractplanes.c static int query_formats(AVFilterContext *ctx)
ctx               102 libavfilter/vf_extractplanes.c     if (!ctx->inputs[0]->in_formats ||
ctx               103 libavfilter/vf_extractplanes.c         !ctx->inputs[0]->in_formats->nb_formats) {
ctx               107 libavfilter/vf_extractplanes.c     if (!ctx->inputs[0]->out_formats)
ctx               108 libavfilter/vf_extractplanes.c         ff_formats_ref(ff_make_format_list(in_pixfmts), &ctx->inputs[0]->out_formats);
ctx               110 libavfilter/vf_extractplanes.c     avff = ctx->inputs[0]->in_formats;
ctx               129 libavfilter/vf_extractplanes.c     for (i = 0; i < ctx->nb_outputs; i++)
ctx               130 libavfilter/vf_extractplanes.c         ff_formats_ref(ff_make_format_list(out_pixfmts), &ctx->outputs[i]->in_formats);
ctx               136 libavfilter/vf_extractplanes.c     AVFilterContext *ctx = inlink->dst;
ctx               137 libavfilter/vf_extractplanes.c     ExtractPlanesContext *s = ctx->priv;
ctx               147 libavfilter/vf_extractplanes.c         av_log(ctx, AV_LOG_ERROR, "Requested planes not available.\n");
ctx               167 libavfilter/vf_extractplanes.c     AVFilterContext *ctx = outlink->src;
ctx               168 libavfilter/vf_extractplanes.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               169 libavfilter/vf_extractplanes.c     ExtractPlanesContext *s = ctx->priv;
ctx               171 libavfilter/vf_extractplanes.c     const int output = outlink->srcpad - ctx->output_pads;
ctx               208 libavfilter/vf_extractplanes.c     AVFilterContext *ctx = inlink->dst;
ctx               209 libavfilter/vf_extractplanes.c     ExtractPlanesContext *s = ctx->priv;
ctx               212 libavfilter/vf_extractplanes.c     for (i = 0; i < ctx->nb_outputs; i++) {
ctx               213 libavfilter/vf_extractplanes.c         AVFilterLink *outlink = ctx->outputs[i];
ctx               247 libavfilter/vf_extractplanes.c     if (eof == ctx->nb_outputs)
ctx               254 libavfilter/vf_extractplanes.c static av_cold int init(AVFilterContext *ctx)
ctx               256 libavfilter/vf_extractplanes.c     ExtractPlanesContext *s = ctx->priv;
ctx               267 libavfilter/vf_extractplanes.c         name = av_asprintf("out%d", ctx->nb_outputs);
ctx               270 libavfilter/vf_extractplanes.c         s->map[ctx->nb_outputs] = i;
ctx               275 libavfilter/vf_extractplanes.c         ff_insert_outpad(ctx, ctx->nb_outputs, &pad);
ctx               281 libavfilter/vf_extractplanes.c static av_cold void uninit(AVFilterContext *ctx)
ctx               285 libavfilter/vf_extractplanes.c     for (i = 0; i < ctx->nb_outputs; i++)
ctx               286 libavfilter/vf_extractplanes.c         av_freep(&ctx->output_pads[i].name);
ctx               314 libavfilter/vf_extractplanes.c static av_cold int init_alphaextract(AVFilterContext *ctx)
ctx               316 libavfilter/vf_extractplanes.c     ExtractPlanesContext *s = ctx->priv;
ctx               320 libavfilter/vf_extractplanes.c     return init(ctx);
ctx                68 libavfilter/vf_fade.c static av_cold int init(AVFilterContext *ctx)
ctx                70 libavfilter/vf_fade.c     FadeContext *s = ctx->priv;
ctx                82 libavfilter/vf_fade.c         av_log(ctx, AV_LOG_VERBOSE,
ctx                88 libavfilter/vf_fade.c         av_log(ctx, AV_LOG_VERBOSE,
ctx                98 libavfilter/vf_fade.c static int query_formats(AVFilterContext *ctx)
ctx               100 libavfilter/vf_fade.c     const FadeContext *s = ctx->priv;
ctx               120 libavfilter/vf_fade.c         ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               122 libavfilter/vf_fade.c         ff_set_common_formats(ctx, ff_make_format_list(pix_fmts_rgb));
ctx               181 libavfilter/vf_fade.c static int filter_slice_rgb(AVFilterContext *ctx, void *arg, int jobnr,
ctx               184 libavfilter/vf_fade.c     FadeContext *s = ctx->priv;
ctx               197 libavfilter/vf_fade.c static int filter_slice_luma(AVFilterContext *ctx, void *arg, int jobnr,
ctx               200 libavfilter/vf_fade.c     FadeContext *s = ctx->priv;
ctx               220 libavfilter/vf_fade.c static int filter_slice_chroma(AVFilterContext *ctx, void *arg, int jobnr,
ctx               223 libavfilter/vf_fade.c     FadeContext *s = ctx->priv;
ctx               247 libavfilter/vf_fade.c static int filter_slice_alpha(AVFilterContext *ctx, void *arg, int jobnr,
ctx               250 libavfilter/vf_fade.c     FadeContext *s = ctx->priv;
ctx               274 libavfilter/vf_fade.c     AVFilterContext *ctx = inlink->dst;
ctx               275 libavfilter/vf_fade.c     FadeContext *s       = ctx->priv;
ctx               328 libavfilter/vf_fade.c             ctx->internal->execute(ctx, filter_slice_alpha, frame, NULL,
ctx               329 libavfilter/vf_fade.c                                 FFMIN(frame->height, ctx->graph->nb_threads));
ctx               331 libavfilter/vf_fade.c             ctx->internal->execute(ctx, filter_slice_rgb, frame, NULL,
ctx               332 libavfilter/vf_fade.c                                    FFMIN(frame->height, ctx->graph->nb_threads));
ctx               335 libavfilter/vf_fade.c             ctx->internal->execute(ctx, filter_slice_luma, frame, NULL,
ctx               336 libavfilter/vf_fade.c                                 FFMIN(frame->height, ctx->graph->nb_threads));
ctx               340 libavfilter/vf_fade.c                 ctx->internal->execute(ctx, filter_slice_chroma, frame, NULL,
ctx               341 libavfilter/vf_fade.c                                     FFMIN(frame->height, ctx->graph->nb_threads));
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               617 libavfilter/vf_fieldmatch.c static AVFrame *create_weave_frame(AVFilterContext *ctx, int match, int field,
ctx               621 libavfilter/vf_fieldmatch.c     FieldMatchContext *fm = ctx->priv;
ctx               626 libavfilter/vf_fieldmatch.c         AVFilterLink *outlink = ctx->outputs[0];
ctx               644 libavfilter/vf_fieldmatch.c static int checkmm(AVFilterContext *ctx, int *combs, int m1, int m2,
ctx               647 libavfilter/vf_fieldmatch.c     const FieldMatchContext *fm = ctx->priv;
ctx               652 libavfilter/vf_fieldmatch.c             gen_frames[mid] = create_weave_frame(ctx, mid, field,               \
ctx               673 libavfilter/vf_fieldmatch.c     AVFilterContext *ctx  = inlink->dst;
ctx               674 libavfilter/vf_fieldmatch.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               675 libavfilter/vf_fieldmatch.c     FieldMatchContext *fm = ctx->priv;
ctx               720 libavfilter/vf_fieldmatch.c             gen_frames[i] = create_weave_frame(ctx, i, field, fm->prv, fm->src, fm->nxt);
ctx               725 libavfilter/vf_fieldmatch.c         av_log(ctx, AV_LOG_INFO, "COMBS: %3d %3d %3d %3d %3d\n",
ctx               758 libavfilter/vf_fieldmatch.c             match = checkmm(ctx, combs, match, match == fxo[mP] ? fxo[mC] : fxo[mP], gen_frames, field);
ctx               761 libavfilter/vf_fieldmatch.c             match = checkmm(ctx, combs, match, fxo[mN], gen_frames, field);
ctx               764 libavfilter/vf_fieldmatch.c             match = checkmm(ctx, combs, match, fxo[mU], gen_frames, field);
ctx               767 libavfilter/vf_fieldmatch.c             match = checkmm(ctx, combs, match, fxo[mN], gen_frames, field);
ctx               768 libavfilter/vf_fieldmatch.c             match = checkmm(ctx, combs, match, fxo[mU], gen_frames, field);
ctx               769 libavfilter/vf_fieldmatch.c             match = checkmm(ctx, combs, match, fxo[mB], gen_frames, field);
ctx               773 libavfilter/vf_fieldmatch.c             match = checkmm(ctx, combs, match, match == fxo[mP] ? fxo[mC] : fxo[mP], gen_frames, field);
ctx               776 libavfilter/vf_fieldmatch.c             match = checkmm(ctx, combs, match, fxo[mU], gen_frames, field);
ctx               777 libavfilter/vf_fieldmatch.c             match = checkmm(ctx, combs, match, fxo[mB], gen_frames, field);
ctx               788 libavfilter/vf_fieldmatch.c         dst = create_weave_frame(ctx, match, field, fm->prv2, fm->src2, fm->nxt2);
ctx               791 libavfilter/vf_fieldmatch.c             dst = create_weave_frame(ctx, match, field, fm->prv, fm->src, fm->nxt);
ctx               806 libavfilter/vf_fieldmatch.c         av_log(ctx, AV_LOG_WARNING, "Frame #%"PRId64" at %s is still interlaced\n",
ctx               811 libavfilter/vf_fieldmatch.c     av_log(ctx, AV_LOG_DEBUG, "SC:%d | COMBS: %3d %3d %3d %3d %3d (combpel=%d)"
ctx               818 libavfilter/vf_fieldmatch.c static int request_inlink(AVFilterContext *ctx, int lid)
ctx               821 libavfilter/vf_fieldmatch.c     FieldMatchContext *fm = ctx->priv;
ctx               824 libavfilter/vf_fieldmatch.c         AVFilterLink *inlink = ctx->inputs[lid];
ctx               837 libavfilter/vf_fieldmatch.c     AVFilterContext *ctx = outlink->src;
ctx               838 libavfilter/vf_fieldmatch.c     FieldMatchContext *fm = ctx->priv;
ctx               843 libavfilter/vf_fieldmatch.c     if ((ret = request_inlink(ctx, INPUT_MAIN)) < 0)
ctx               845 libavfilter/vf_fieldmatch.c     if (fm->ppsrc && (ret = request_inlink(ctx, INPUT_CLEANSRC)) < 0)
ctx               850 libavfilter/vf_fieldmatch.c static int query_formats(AVFilterContext *ctx)
ctx               858 libavfilter/vf_fieldmatch.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               865 libavfilter/vf_fieldmatch.c     AVFilterContext *ctx = inlink->dst;
ctx               866 libavfilter/vf_fieldmatch.c     FieldMatchContext *fm = ctx->priv;
ctx               893 libavfilter/vf_fieldmatch.c static av_cold int fieldmatch_init(AVFilterContext *ctx)
ctx               895 libavfilter/vf_fieldmatch.c     const FieldMatchContext *fm = ctx->priv;
ctx               905 libavfilter/vf_fieldmatch.c     ff_insert_inpad(ctx, INPUT_MAIN, &pad);
ctx               912 libavfilter/vf_fieldmatch.c         ff_insert_inpad(ctx, INPUT_CLEANSRC, &pad);
ctx               917 libavfilter/vf_fieldmatch.c         av_log(ctx, AV_LOG_ERROR, "blockx and blocky settings must be power of two\n");
ctx               922 libavfilter/vf_fieldmatch.c         av_log(ctx, AV_LOG_ERROR, "Combed pixel should not be larger than blockx x blocky\n");
ctx               929 libavfilter/vf_fieldmatch.c static av_cold void fieldmatch_uninit(AVFilterContext *ctx)
ctx               932 libavfilter/vf_fieldmatch.c     FieldMatchContext *fm = ctx->priv;
ctx               943 libavfilter/vf_fieldmatch.c     for (i = 0; i < ctx->nb_inputs; i++)
ctx               944 libavfilter/vf_fieldmatch.c         av_freep(&ctx->input_pads[i].name);
ctx               949 libavfilter/vf_fieldmatch.c     AVFilterContext *ctx  = outlink->src;
ctx               950 libavfilter/vf_fieldmatch.c     const FieldMatchContext *fm = ctx->priv;
ctx               952 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                63 libavfilter/vf_fieldorder.c         ff_formats_ref(formats, &ctx->inputs[0]->out_formats);
ctx                64 libavfilter/vf_fieldorder.c         ff_formats_ref(formats, &ctx->outputs[0]->in_formats);
ctx                72 libavfilter/vf_fieldorder.c     AVFilterContext   *ctx = inlink->dst;
ctx                73 libavfilter/vf_fieldorder.c     FieldOrderContext *s   = ctx->priv;
ctx                80 libavfilter/vf_fieldorder.c     AVFilterContext   *ctx     = inlink->dst;
ctx                81 libavfilter/vf_fieldorder.c     FieldOrderContext *s       = ctx->priv;
ctx                82 libavfilter/vf_fieldorder.c     AVFilterLink      *outlink = ctx->outputs[0];
ctx                89 libavfilter/vf_fieldorder.c         av_log(ctx, AV_LOG_VERBOSE,
ctx               107 libavfilter/vf_fieldorder.c     av_dlog(ctx,
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     ff_set_common_formats(ctx, formats);
ctx                78 libavfilter/vf_fps.c static av_cold int init(AVFilterContext *ctx)
ctx                80 libavfilter/vf_fps.c     FPSContext *s = ctx->priv;
ctx                87 libavfilter/vf_fps.c     av_log(ctx, AV_LOG_VERBOSE, "fps=%d/%d\n", s->framerate.num, s->framerate.den);
ctx               100 libavfilter/vf_fps.c static av_cold void uninit(AVFilterContext *ctx)
ctx               102 libavfilter/vf_fps.c     FPSContext *s = ctx->priv;
ctx               109 libavfilter/vf_fps.c     av_log(ctx, AV_LOG_VERBOSE, "%d frames in, %d frames out; %d frames dropped, "
ctx               127 libavfilter/vf_fps.c     AVFilterContext *ctx = outlink->src;
ctx               128 libavfilter/vf_fps.c     FPSContext        *s = ctx->priv;
ctx               133 libavfilter/vf_fps.c         ret = ff_request_frame(ctx->inputs[0]);
ctx               142 libavfilter/vf_fps.c             buf->pts = av_rescale_q(s->first_pts, ctx->inputs[0]->time_base,
ctx               172 libavfilter/vf_fps.c     AVFilterContext    *ctx = inlink->dst;
ctx               173 libavfilter/vf_fps.c     FPSContext           *s = ctx->priv;
ctx               174 libavfilter/vf_fps.c     AVFilterLink   *outlink = ctx->outputs[0];
ctx               191 libavfilter/vf_fps.c                 av_log(ctx, AV_LOG_VERBOSE, "Set first pts to (in:%"PRId64" out:%"PRId64")\n",
ctx               198 libavfilter/vf_fps.c             av_log(ctx, AV_LOG_WARNING, "Discarding initial frame(s) with no "
ctx               219 libavfilter/vf_fps.c         av_log(ctx, AV_LOG_DEBUG, "Dropping %d frame(s).\n", drop);
ctx               237 libavfilter/vf_fps.c             av_log(ctx, AV_LOG_DEBUG, "Duplicating frame.\n");
ctx                61 libavfilter/vf_framepack.c static int query_formats(AVFilterContext *ctx)
ctx                64 libavfilter/vf_framepack.c     ff_set_common_formats(ctx, ff_make_format_list(formats_supported));
ctx                68 libavfilter/vf_framepack.c static av_cold void framepack_uninit(AVFilterContext *ctx)
ctx                70 libavfilter/vf_framepack.c     FramepackContext *s = ctx->priv;
ctx                79 libavfilter/vf_framepack.c     AVFilterContext *ctx = outlink->src;
ctx                82 libavfilter/vf_framepack.c     int width            = ctx->inputs[LEFT]->w;
ctx                83 libavfilter/vf_framepack.c     int height           = ctx->inputs[LEFT]->h;
ctx                84 libavfilter/vf_framepack.c     AVRational time_base = ctx->inputs[LEFT]->time_base;
ctx                85 libavfilter/vf_framepack.c     AVRational frame_rate = ctx->inputs[LEFT]->frame_rate;
ctx                88 libavfilter/vf_framepack.c     if (width  != ctx->inputs[RIGHT]->w ||
ctx                89 libavfilter/vf_framepack.c         height != ctx->inputs[RIGHT]->h) {
ctx                90 libavfilter/vf_framepack.c         av_log(ctx, AV_LOG_ERROR,
ctx                93 libavfilter/vf_framepack.c                ctx->inputs[RIGHT]->w, ctx->inputs[RIGHT]->h);
ctx                95 libavfilter/vf_framepack.c     } else if (av_cmp_q(time_base, ctx->inputs[RIGHT]->time_base) != 0) {
ctx                96 libavfilter/vf_framepack.c         av_log(ctx, AV_LOG_ERROR,
ctx                99 libavfilter/vf_framepack.c                ctx->inputs[RIGHT]->time_base.num,
ctx               100 libavfilter/vf_framepack.c                ctx->inputs[RIGHT]->time_base.den);
ctx               102 libavfilter/vf_framepack.c     } else if (av_cmp_q(frame_rate, ctx->inputs[RIGHT]->frame_rate) != 0) {
ctx               103 libavfilter/vf_framepack.c         av_log(ctx, AV_LOG_ERROR,
ctx               106 libavfilter/vf_framepack.c                ctx->inputs[RIGHT]->frame_rate.num,
ctx               107 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               250 libavfilter/vf_framepack.c     AVFilterContext *ctx = outlink->src;
ctx               251 libavfilter/vf_framepack.c     FramepackContext *s = ctx->priv;
ctx               258 libavfilter/vf_framepack.c             ret = ff_request_frame(ctx->inputs[i]);
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                56 libavfilter/vf_framestep.c     av_log(ctx, AV_LOG_VERBOSE, "step:%d frame_rate:%d/%d(%f) -> frame_rate:%d/%d(%f)\n",
ctx                79 libavfilter/vf_frei0r.c static void *load_sym(AVFilterContext *ctx, const char *sym_name)
ctx                81 libavfilter/vf_frei0r.c     Frei0rContext *s = ctx->priv;
ctx                84 libavfilter/vf_frei0r.c         av_log(ctx, AV_LOG_ERROR, "Could not find symbol '%s' in loaded module.\n", sym_name);
ctx                88 libavfilter/vf_frei0r.c static int set_param(AVFilterContext *ctx, f0r_param_info_t info, int index, char *param)
ctx                90 libavfilter/vf_frei0r.c     Frei0rContext *s = ctx->priv;
ctx               114 libavfilter/vf_frei0r.c             if (av_parse_color(rgba, param, -1, ctx) < 0)
ctx               132 libavfilter/vf_frei0r.c     av_log(ctx, AV_LOG_ERROR, "Invalid value '%s' for parameter '%s'.\n",
ctx               137 libavfilter/vf_frei0r.c static int set_params(AVFilterContext *ctx, const char *params)
ctx               139 libavfilter/vf_frei0r.c     Frei0rContext *s = ctx->priv;
ctx               157 libavfilter/vf_frei0r.c             ret = set_param(ctx, info, i, param);
ctx               163 libavfilter/vf_frei0r.c         av_log(ctx, AV_LOG_VERBOSE,
ctx               174 libavfilter/vf_frei0r.c         av_log(ctx, AV_LOG_DEBUG, "value:");
ctx               185 libavfilter/vf_frei0r.c             av_log(ctx, AV_LOG_DEBUG, "%s", d >= 0.5 && d <= 1.0 ? "y" : "n");
ctx               190 libavfilter/vf_frei0r.c             av_log(ctx, AV_LOG_DEBUG, "%f", d);
ctx               195 libavfilter/vf_frei0r.c             av_log(ctx, AV_LOG_DEBUG, "%f/%f/%f", col.r, col.g, col.b);
ctx               200 libavfilter/vf_frei0r.c             av_log(ctx, AV_LOG_DEBUG, "%f/%f", pos.x, pos.y);
ctx               205 libavfilter/vf_frei0r.c             av_log(ctx, AV_LOG_DEBUG, "'%s'", str);
ctx               209 libavfilter/vf_frei0r.c         av_log(ctx, AV_LOG_VERBOSE, ".\n");
ctx               215 libavfilter/vf_frei0r.c static int load_path(AVFilterContext *ctx, void **handle_ptr, const char *prefix, const char *name)
ctx               220 libavfilter/vf_frei0r.c     av_log(ctx, AV_LOG_DEBUG, "Looking for frei0r effect in '%s'.\n", path);
ctx               226 libavfilter/vf_frei0r.c static av_cold int frei0r_init(AVFilterContext *ctx,
ctx               229 libavfilter/vf_frei0r.c     Frei0rContext *s = ctx->priv;
ctx               244 libavfilter/vf_frei0r.c         av_log(ctx, AV_LOG_ERROR, "No filter name provided.\n");
ctx               263 libavfilter/vf_frei0r.c             ret = load_path(ctx, &s->dl_handle, p1, dl_name);
ctx               280 libavfilter/vf_frei0r.c         ret = load_path(ctx, &s->dl_handle, prefix, dl_name);
ctx               286 libavfilter/vf_frei0r.c         ret = load_path(ctx, &s->dl_handle, frei0r_pathlist[i], dl_name);
ctx               291 libavfilter/vf_frei0r.c         av_log(ctx, AV_LOG_ERROR, "Could not find module '%s'.\n", dl_name);
ctx               295 libavfilter/vf_frei0r.c     if (!(f0r_init                = load_sym(ctx, "f0r_init"           )) ||
ctx               296 libavfilter/vf_frei0r.c         !(f0r_get_plugin_info     = load_sym(ctx, "f0r_get_plugin_info")) ||
ctx               297 libavfilter/vf_frei0r.c         !(s->get_param_info  = load_sym(ctx, "f0r_get_param_info" )) ||
ctx               298 libavfilter/vf_frei0r.c         !(s->get_param_value = load_sym(ctx, "f0r_get_param_value")) ||
ctx               299 libavfilter/vf_frei0r.c         !(s->set_param_value = load_sym(ctx, "f0r_set_param_value")) ||
ctx               300 libavfilter/vf_frei0r.c         !(s->update          = load_sym(ctx, "f0r_update"         )) ||
ctx               301 libavfilter/vf_frei0r.c         !(s->construct       = load_sym(ctx, "f0r_construct"      )) ||
ctx               302 libavfilter/vf_frei0r.c         !(s->destruct        = load_sym(ctx, "f0r_destruct"       )) ||
ctx               303 libavfilter/vf_frei0r.c         !(s->deinit          = load_sym(ctx, "f0r_deinit"         )))
ctx               307 libavfilter/vf_frei0r.c         av_log(ctx, AV_LOG_ERROR, "Could not init the frei0r module.\n");
ctx               314 libavfilter/vf_frei0r.c         av_log(ctx, AV_LOG_ERROR,
ctx               323 libavfilter/vf_frei0r.c     av_log(ctx, AV_LOG_VERBOSE,
ctx               335 libavfilter/vf_frei0r.c static av_cold int filter_init(AVFilterContext *ctx)
ctx               337 libavfilter/vf_frei0r.c     Frei0rContext *s = ctx->priv;
ctx               339 libavfilter/vf_frei0r.c     return frei0r_init(ctx, s->dl_name, F0R_PLUGIN_TYPE_FILTER);
ctx               342 libavfilter/vf_frei0r.c static av_cold void uninit(AVFilterContext *ctx)
ctx               344 libavfilter/vf_frei0r.c     Frei0rContext *s = ctx->priv;
ctx               356 libavfilter/vf_frei0r.c     AVFilterContext *ctx = inlink->dst;
ctx               357 libavfilter/vf_frei0r.c     Frei0rContext *s = ctx->priv;
ctx               362 libavfilter/vf_frei0r.c         av_log(ctx, AV_LOG_ERROR, "Impossible to load frei0r instance.\n");
ctx               366 libavfilter/vf_frei0r.c     return set_params(ctx, s->params);
ctx               369 libavfilter/vf_frei0r.c static int query_formats(AVFilterContext *ctx)
ctx               371 libavfilter/vf_frei0r.c     Frei0rContext *s = ctx->priv;
ctx               388 libavfilter/vf_frei0r.c     ff_set_common_formats(ctx, formats);
ctx               454 libavfilter/vf_frei0r.c static av_cold int source_init(AVFilterContext *ctx)
ctx               456 libavfilter/vf_frei0r.c     Frei0rContext *s = ctx->priv;
ctx               461 libavfilter/vf_frei0r.c     return frei0r_init(ctx, s->dl_name, F0R_PLUGIN_TYPE_SOURCE);
ctx               466 libavfilter/vf_frei0r.c     AVFilterContext *ctx = outlink->src;
ctx               467 libavfilter/vf_frei0r.c     Frei0rContext *s = ctx->priv;
ctx               469 libavfilter/vf_frei0r.c     if (av_image_check_size(s->w, s->h, 0, ctx) < 0)
ctx               480 libavfilter/vf_frei0r.c         av_log(ctx, AV_LOG_ERROR, "Impossible to load frei0r instance.\n");
ctx               484 libavfilter/vf_frei0r.c         av_log(ctx, AV_LOG_ERROR, "frei0r filter parameters not set.\n");
ctx               488 libavfilter/vf_frei0r.c     return set_params(ctx, s->params);
ctx               493 libavfilter/vf_fspp.c static int query_formats(AVFilterContext *ctx)
ctx               504 libavfilter/vf_fspp.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               510 libavfilter/vf_fspp.c     AVFilterContext *ctx = inlink->dst;
ctx               511 libavfilter/vf_fspp.c     FSPPContext *fspp = ctx->priv;
ctx               547 libavfilter/vf_fspp.c     AVFilterContext *ctx = inlink->dst;
ctx               548 libavfilter/vf_fspp.c     FSPPContext *fspp = ctx->priv;
ctx               549 libavfilter/vf_fspp.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               610 libavfilter/vf_fspp.c     if (fspp->log2_count && !ctx->is_disabled) {
ctx               654 libavfilter/vf_fspp.c static av_cold void uninit(AVFilterContext *ctx)
ctx               656 libavfilter/vf_fspp.c     FSPPContext *fspp = ctx->priv;
ctx               103 libavfilter/vf_geq.c static av_cold int geq_init(AVFilterContext *ctx)
ctx               105 libavfilter/vf_geq.c     GEQContext *geq = ctx->priv;
ctx               109 libavfilter/vf_geq.c         av_log(ctx, AV_LOG_ERROR, "A luminance or RGB expression is mandatory\n");
ctx               116 libavfilter/vf_geq.c         av_log(ctx, AV_LOG_ERROR, "Either YCbCr or RGB but not both must be specified\n");
ctx               156 libavfilter/vf_geq.c                             NULL, NULL, func2_names, func2, 0, ctx);
ctx               165 libavfilter/vf_geq.c static int geq_query_formats(AVFilterContext *ctx)
ctx               167 libavfilter/vf_geq.c     GEQContext *geq = ctx->priv;
ctx               180 libavfilter/vf_geq.c         ff_set_common_formats(ctx, ff_make_format_list(rgb_pix_fmts));
ctx               182 libavfilter/vf_geq.c         ff_set_common_formats(ctx, ff_make_format_list(yuv_pix_fmts));
ctx               242 libavfilter/vf_geq.c static av_cold void geq_uninit(AVFilterContext *ctx)
ctx               245 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               159 libavfilter/vf_gradfun.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx                44 libavfilter/vf_hflip.c static int query_formats(AVFilterContext *ctx)
ctx                58 libavfilter/vf_hflip.c     ff_set_common_formats(ctx, pix_fmts);
ctx                82 libavfilter/vf_hflip.c static int filter_slice(AVFilterContext *ctx, void *arg, int job, int nb_jobs)
ctx                84 libavfilter/vf_hflip.c     FlipContext *s = ctx->priv;
ctx               152 libavfilter/vf_hflip.c     AVFilterContext *ctx  = inlink->dst;
ctx               153 libavfilter/vf_hflip.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               169 libavfilter/vf_hflip.c     ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(outlink->h, ctx->graph->nb_threads));
ctx                84 libavfilter/vf_histeq.c static av_cold int init(AVFilterContext *ctx)
ctx                86 libavfilter/vf_histeq.c     HisteqContext *histeq = ctx->priv;
ctx                88 libavfilter/vf_histeq.c     av_log(ctx, AV_LOG_VERBOSE,
ctx                95 libavfilter/vf_histeq.c static int query_formats(AVFilterContext *ctx)
ctx               103 libavfilter/vf_histeq.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               109 libavfilter/vf_histeq.c     AVFilterContext *ctx = inlink->dst;
ctx               110 libavfilter/vf_histeq.c     HisteqContext *histeq = ctx->priv;
ctx               132 libavfilter/vf_histeq.c     AVFilterContext   *ctx     = inlink->dst;
ctx               133 libavfilter/vf_histeq.c     HisteqContext     *histeq  = ctx->priv;
ctx               134 libavfilter/vf_histeq.c     AVFilterLink      *outlink = ctx->outputs[0];
ctx               170 libavfilter/vf_histeq.c         av_dlog(ctx, "in[%d]: %u\n", x, histeq->in_histogram[x]);
ctx               246 libavfilter/vf_histeq.c         av_dlog(ctx, "out[%d]: %u\n", x, histeq->out_histogram[x]);
ctx               104 libavfilter/vf_histogram.c static int query_formats(AVFilterContext *ctx)
ctx               106 libavfilter/vf_histogram.c     HistogramContext *h = ctx->priv;
ctx               124 libavfilter/vf_histogram.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               157 libavfilter/vf_histogram.c     AVFilterContext *ctx = outlink->src;
ctx               158 libavfilter/vf_histogram.c     HistogramContext *h = ctx->priv;
ctx               234 libavfilter/vf_histogram.c     AVFilterContext *ctx  = inlink->dst;
ctx               235 libavfilter/vf_histogram.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               198 libavfilter/vf_hqdn3d.c static av_cold int init(AVFilterContext *ctx)
ctx               200 libavfilter/vf_hqdn3d.c     HQDN3DContext *s = ctx->priv;
ctx               211 libavfilter/vf_hqdn3d.c     av_log(ctx, AV_LOG_VERBOSE, "ls:%f cs:%f lt:%f ct:%f\n",
ctx               218 libavfilter/vf_hqdn3d.c static av_cold void uninit(AVFilterContext *ctx)
ctx               220 libavfilter/vf_hqdn3d.c     HQDN3DContext *s = ctx->priv;
ctx               232 libavfilter/vf_hqdn3d.c static int query_formats(AVFilterContext *ctx)
ctx               257 libavfilter/vf_hqdn3d.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               292 libavfilter/vf_hqdn3d.c     AVFilterContext *ctx  = inlink->dst;
ctx               293 libavfilter/vf_hqdn3d.c     HQDN3DContext *s = ctx->priv;
ctx               294 libavfilter/vf_hqdn3d.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               297 libavfilter/vf_hqdn3d.c     int c, direct = av_frame_is_writable(in) && !ctx->is_disabled;
ctx               321 libavfilter/vf_hqdn3d.c     if (ctx->is_disabled) {
ctx                35 libavfilter/vf_hqx.c typedef int (*hqxfunc_t)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx               452 libavfilter/vf_hqx.c static int hq##size##x(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) \
ctx               462 libavfilter/vf_hqx.c static int query_formats(AVFilterContext *ctx)
ctx               465 libavfilter/vf_hqx.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               471 libavfilter/vf_hqx.c     AVFilterContext *ctx = outlink->src;
ctx               472 libavfilter/vf_hqx.c     HQXContext *hqx = ctx->priv;
ctx               473 libavfilter/vf_hqx.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               485 libavfilter/vf_hqx.c     AVFilterContext *ctx = inlink->dst;
ctx               486 libavfilter/vf_hqx.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               487 libavfilter/vf_hqx.c     HQXContext *hqx = ctx->priv;
ctx               501 libavfilter/vf_hqx.c     ctx->internal->execute(ctx, hqx->func, &td, NULL, FFMIN(inlink->h, ctx->graph->nb_threads));
ctx               507 libavfilter/vf_hqx.c static av_cold int init(AVFilterContext *ctx)
ctx               509 libavfilter/vf_hqx.c     HQXContext *hqx = ctx->priv;
ctx               182 libavfilter/vf_hue.c static av_cold int init(AVFilterContext *ctx)
ctx               184 libavfilter/vf_hue.c     HueContext *hue = ctx->priv;
ctx               188 libavfilter/vf_hue.c         av_log(ctx, AV_LOG_ERROR,
ctx               197 libavfilter/vf_hue.c                        hue->expr##_expr, option, ctx);                  \
ctx               207 libavfilter/vf_hue.c     av_log(ctx, AV_LOG_VERBOSE,
ctx               216 libavfilter/vf_hue.c static av_cold void uninit(AVFilterContext *ctx)
ctx               218 libavfilter/vf_hue.c     HueContext *hue = ctx->priv;
ctx               226 libavfilter/vf_hue.c static int query_formats(AVFilterContext *ctx)
ctx               237 libavfilter/vf_hue.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               393 libavfilter/vf_hue.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               396 libavfilter/vf_hue.c     HueContext *hue = ctx->priv;
ctx               402 libavfilter/vf_hue.c                        args, option, ctx);                              \
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               341 libavfilter/vf_idet.c static av_cold void uninit(AVFilterContext *ctx)
ctx               343 libavfilter/vf_idet.c     IDETContext *idet = ctx->priv;
ctx               344 libavfilter/vf_idet.c     int level = strncmp(ctx->name, "auto-inserted", 13) ? AV_LOG_INFO : AV_LOG_DEBUG;
ctx               346 libavfilter/vf_idet.c     av_log(ctx, level, "Repeated Fields: Neither:%6"PRId64" Top:%6"PRId64" Bottom:%6"PRId64"\n",
ctx               351 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               357 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               369 libavfilter/vf_idet.c static int query_formats(AVFilterContext *ctx)
ctx               403 libavfilter/vf_idet.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               414 libavfilter/vf_idet.c static av_cold int init(AVFilterContext *ctx)
ctx               416 libavfilter/vf_idet.c     IDETContext *idet = ctx->priv;
ctx                84 libavfilter/vf_il.c static int query_formats(AVFilterContext *ctx)
ctx                95 libavfilter/vf_il.c     ff_set_common_formats(ctx, formats);
ctx                77 libavfilter/vf_interlace.c static int query_formats(AVFilterContext *ctx)
ctx                79 libavfilter/vf_interlace.c     ff_set_common_formats(ctx, ff_make_format_list(formats_supported));
ctx                83 libavfilter/vf_interlace.c static av_cold void uninit(AVFilterContext *ctx)
ctx                85 libavfilter/vf_interlace.c     InterlaceContext *s = ctx->priv;
ctx                93 libavfilter/vf_interlace.c     AVFilterContext *ctx = outlink->src;
ctx                95 libavfilter/vf_interlace.c     InterlaceContext *s = ctx->priv;
ctx                98 libavfilter/vf_interlace.c         av_log(ctx, AV_LOG_ERROR, "input video height is too small\n");
ctx               103 libavfilter/vf_interlace.c         av_log(ctx, AV_LOG_WARNING, "Lowpass filter is disabled, "
ctx               123 libavfilter/vf_interlace.c     av_log(ctx, AV_LOG_VERBOSE, "%s interlacing %s lowpass filter\n",
ctx               176 libavfilter/vf_interlace.c     AVFilterContext *ctx = inlink->dst;
ctx               177 libavfilter/vf_interlace.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               178 libavfilter/vf_interlace.c     InterlaceContext *s = ctx->priv;
ctx               191 libavfilter/vf_interlace.c         av_log(ctx, AV_LOG_WARNING,
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                81 libavfilter/vf_kerndeint.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
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               111 libavfilter/vf_lenscorrection.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               115 libavfilter/vf_lenscorrection.c static av_cold void uninit(AVFilterContext *ctx)
ctx               117 libavfilter/vf_lenscorrection.c     LenscorrectionCtx *rect = ctx->priv;
ctx               127 libavfilter/vf_lenscorrection.c     AVFilterContext *ctx = outlink->src;
ctx               128 libavfilter/vf_lenscorrection.c     LenscorrectionCtx *rect = ctx->priv;
ctx               129 libavfilter/vf_lenscorrection.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               141 libavfilter/vf_lenscorrection.c     AVFilterContext *ctx = inlink->dst;
ctx               142 libavfilter/vf_lenscorrection.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               143 libavfilter/vf_lenscorrection.c     LenscorrectionCtx *rect = (LenscorrectionCtx*)ctx->priv;
ctx               195 libavfilter/vf_lenscorrection.c         ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(h, ctx->graph->nb_threads));
ctx                61 libavfilter/vf_libopencv.c static int query_formats(AVFilterContext *ctx)
ctx                67 libavfilter/vf_libopencv.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx                75 libavfilter/vf_libopencv.c     int (*init)(AVFilterContext *ctx, const char *args);
ctx                76 libavfilter/vf_libopencv.c     void (*uninit)(AVFilterContext *ctx);
ctx                77 libavfilter/vf_libopencv.c     void (*end_frame_filter)(AVFilterContext *ctx, IplImage *inimg, IplImage *outimg);
ctx                87 libavfilter/vf_libopencv.c static av_cold int smooth_init(AVFilterContext *ctx, const char *args)
ctx                89 libavfilter/vf_libopencv.c     OCVContext *s = ctx->priv;
ctx               107 libavfilter/vf_libopencv.c         av_log(ctx, AV_LOG_ERROR, "Smoothing type '%s' unknown.\n", type_str);
ctx               112 libavfilter/vf_libopencv.c         av_log(ctx, AV_LOG_ERROR,
ctx               119 libavfilter/vf_libopencv.c         av_log(ctx, AV_LOG_ERROR,
ctx               125 libavfilter/vf_libopencv.c     av_log(ctx, AV_LOG_VERBOSE, "type:%s param1:%d param2:%d param3:%f param4:%f\n",
ctx               130 libavfilter/vf_libopencv.c static void smooth_end_frame_filter(AVFilterContext *ctx, IplImage *inimg, IplImage *outimg)
ctx               132 libavfilter/vf_libopencv.c     OCVContext *s = ctx->priv;
ctx               259 libavfilter/vf_libopencv.c static av_cold int dilate_init(AVFilterContext *ctx, const char *args)
ctx               261 libavfilter/vf_libopencv.c     OCVContext *s = ctx->priv;
ctx               278 libavfilter/vf_libopencv.c                               ctx);
ctx               285 libavfilter/vf_libopencv.c     av_log(ctx, AV_LOG_VERBOSE, "iterations_nb:%d\n", dilate->nb_iterations);
ctx               287 libavfilter/vf_libopencv.c         av_log(ctx, AV_LOG_ERROR, "Invalid non-positive value '%d' for nb_iterations\n",
ctx               294 libavfilter/vf_libopencv.c static av_cold void dilate_uninit(AVFilterContext *ctx)
ctx               296 libavfilter/vf_libopencv.c     OCVContext *s = ctx->priv;
ctx               302 libavfilter/vf_libopencv.c static void dilate_end_frame_filter(AVFilterContext *ctx, IplImage *inimg, IplImage *outimg)
ctx               304 libavfilter/vf_libopencv.c     OCVContext *s = ctx->priv;
ctx               309 libavfilter/vf_libopencv.c static void erode_end_frame_filter(AVFilterContext *ctx, IplImage *inimg, IplImage *outimg)
ctx               311 libavfilter/vf_libopencv.c     OCVContext *s = ctx->priv;
ctx               319 libavfilter/vf_libopencv.c     int  (*init)(AVFilterContext *ctx, const char *args);
ctx               320 libavfilter/vf_libopencv.c     void (*uninit)(AVFilterContext *ctx);
ctx               321 libavfilter/vf_libopencv.c     void (*end_frame_filter)(AVFilterContext *ctx, IplImage *inimg, IplImage *outimg);
ctx               330 libavfilter/vf_libopencv.c static av_cold int init(AVFilterContext *ctx)
ctx               332 libavfilter/vf_libopencv.c     OCVContext *s = ctx->priv;
ctx               336 libavfilter/vf_libopencv.c         av_log(ctx, AV_LOG_ERROR, "No libopencv filter name specified\n");
ctx               348 libavfilter/vf_libopencv.c             return s->init(ctx, s->params);
ctx               352 libavfilter/vf_libopencv.c     av_log(ctx, AV_LOG_ERROR, "No libopencv filter named '%s'\n", s->name);
ctx               356 libavfilter/vf_libopencv.c static av_cold void uninit(AVFilterContext *ctx)
ctx               358 libavfilter/vf_libopencv.c     OCVContext *s = ctx->priv;
ctx               361 libavfilter/vf_libopencv.c         s->uninit(ctx);
ctx               367 libavfilter/vf_libopencv.c     AVFilterContext *ctx = inlink->dst;
ctx               368 libavfilter/vf_libopencv.c     OCVContext *s = ctx->priv;
ctx               382 libavfilter/vf_libopencv.c     s->end_frame_filter(ctx, &inimg, &outimg);
ctx                98 libavfilter/vf_lut.c static av_cold void uninit(AVFilterContext *ctx)
ctx               100 libavfilter/vf_lut.c     LutContext *s = ctx->priv;
ctx               126 libavfilter/vf_lut.c static int query_formats(AVFilterContext *ctx)
ctx               128 libavfilter/vf_lut.c     LutContext *s = ctx->priv;
ctx               134 libavfilter/vf_lut.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               195 libavfilter/vf_lut.c     AVFilterContext *ctx = inlink->dst;
ctx               196 libavfilter/vf_lut.c     LutContext *s = ctx->priv;
ctx               245 libavfilter/vf_lut.c                             var_names, funcs1_names, funcs1, NULL, NULL, 0, ctx);
ctx               247 libavfilter/vf_lut.c             av_log(ctx, AV_LOG_ERROR,
ctx               266 libavfilter/vf_lut.c                 av_log(ctx, AV_LOG_ERROR,
ctx               272 libavfilter/vf_lut.c             av_log(ctx, AV_LOG_DEBUG, "val[%d][%d] = %d\n", comp, val, s->lut[comp][val]);
ctx               281 libavfilter/vf_lut.c     AVFilterContext *ctx = inlink->dst;
ctx               282 libavfilter/vf_lut.c     LutContext *s = ctx->priv;
ctx               283 libavfilter/vf_lut.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               391 libavfilter/vf_lut.c static int lut_init(AVFilterContext *ctx)
ctx               404 libavfilter/vf_lut.c static av_cold int lutyuv_init(AVFilterContext *ctx)
ctx               406 libavfilter/vf_lut.c     LutContext *s = ctx->priv;
ctx               421 libavfilter/vf_lut.c static av_cold int lutrgb_init(AVFilterContext *ctx)
ctx               423 libavfilter/vf_lut.c     LutContext *s = ctx->priv;
ctx               442 libavfilter/vf_lut.c static av_cold int negate_init(AVFilterContext *ctx)
ctx               444 libavfilter/vf_lut.c     LutContext *s = ctx->priv;
ctx               447 libavfilter/vf_lut.c     av_log(ctx, AV_LOG_DEBUG, "negate_alpha:%d\n", s->negate_alpha);
ctx               453 libavfilter/vf_lut.c             uninit(ctx);
ctx               202 libavfilter/vf_lut3d.c static int interp_##nbits##_##name(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)         \
ctx               205 libavfilter/vf_lut3d.c     const LUT3DContext *lut3d = ctx->priv;                                                          \
ctx               260 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_ERROR, "Unexpected EOF\n");      \
ctx               267 libavfilter/vf_lut3d.c static int parse_dat(AVFilterContext *ctx, FILE *f)
ctx               269 libavfilter/vf_lut3d.c     LUT3DContext *lut3d = ctx->priv;
ctx               279 libavfilter/vf_lut3d.c             av_log(ctx, AV_LOG_ERROR, "Too large or invalid 3D LUT size\n");
ctx               300 libavfilter/vf_lut3d.c static int parse_cube(AVFilterContext *ctx, FILE *f)
ctx               302 libavfilter/vf_lut3d.c     LUT3DContext *lut3d = ctx->priv;
ctx               313 libavfilter/vf_lut3d.c                 av_log(ctx, AV_LOG_ERROR, "Too large or invalid 3D LUT size\n");
ctx               331 libavfilter/vf_lut3d.c                                 av_log(ctx, AV_LOG_DEBUG, "min: %f %f %f | max: %f %f %f\n",
ctx               352 libavfilter/vf_lut3d.c static int parse_3dl(AVFilterContext *ctx, FILE *f)
ctx               355 libavfilter/vf_lut3d.c     LUT3DContext *lut3d = ctx->priv;
ctx               381 libavfilter/vf_lut3d.c static int parse_m3d(AVFilterContext *ctx, FILE *f)
ctx               383 libavfilter/vf_lut3d.c     LUT3DContext *lut3d = ctx->priv;
ctx               413 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_ERROR, "in and out must be defined\n");
ctx               419 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_ERROR, "invalid in (%d) or out (%d)\n", in, out);
ctx               462 libavfilter/vf_lut3d.c static int query_formats(AVFilterContext *ctx)
ctx               474 libavfilter/vf_lut3d.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               513 libavfilter/vf_lut3d.c     AVFilterContext *ctx = inlink->dst;
ctx               514 libavfilter/vf_lut3d.c     LUT3DContext *lut3d = ctx->priv;
ctx               532 libavfilter/vf_lut3d.c     ctx->internal->execute(ctx, lut3d->interp, &td, NULL, FFMIN(outlink->h, ctx->graph->nb_threads));
ctx               557 libavfilter/vf_lut3d.c static av_cold int lut3d_init(AVFilterContext *ctx)
ctx               562 libavfilter/vf_lut3d.c     LUT3DContext *lut3d = ctx->priv;
ctx               572 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_ERROR, "%s: %s\n", lut3d->file, av_err2str(ret));
ctx               578 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_ERROR, "Unable to guess the format from the extension\n");
ctx               585 libavfilter/vf_lut3d.c         ret = parse_dat(ctx, f);
ctx               587 libavfilter/vf_lut3d.c         ret = parse_3dl(ctx, f);
ctx               589 libavfilter/vf_lut3d.c         ret = parse_cube(ctx, f);
ctx               591 libavfilter/vf_lut3d.c         ret = parse_m3d(ctx, f);
ctx               593 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_ERROR, "Unrecognized '.%s' file type\n", ext);
ctx               598 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_ERROR, "3D LUT is empty\n");
ctx               677 libavfilter/vf_lut3d.c     AVFilterContext *ctx = outlink->src;
ctx               678 libavfilter/vf_lut3d.c     LUT3DContext *lut3d = ctx->priv;
ctx               681 libavfilter/vf_lut3d.c     outlink->w = ctx->inputs[0]->w;
ctx               682 libavfilter/vf_lut3d.c     outlink->h = ctx->inputs[0]->h;
ctx               683 libavfilter/vf_lut3d.c     outlink->time_base = ctx->inputs[0]->time_base;
ctx               684 libavfilter/vf_lut3d.c     if ((ret = ff_dualinput_init(ctx, &lut3d->dinput)) < 0)
ctx               704 libavfilter/vf_lut3d.c     AVFilterContext *ctx = inlink->dst;
ctx               705 libavfilter/vf_lut3d.c     LUT3DContext *lut3d = ctx->priv;
ctx               721 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_INFO, "Padding on the right (%dpx) of the "
ctx               724 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_INFO, "Padding at the bottom (%dpx) of the "
ctx               731 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_WARNING, "The Hald CLUT width does not match the level\n");
ctx               739 libavfilter/vf_lut3d.c         av_log(ctx, AV_LOG_ERROR, "Too large Hald CLUT "
ctx               749 libavfilter/vf_lut3d.c static AVFrame *update_apply_clut(AVFilterContext *ctx, AVFrame *main,
ctx               752 libavfilter/vf_lut3d.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               753 libavfilter/vf_lut3d.c     update_clut(ctx->priv, second);
ctx               757 libavfilter/vf_lut3d.c static av_cold int haldclut_init(AVFilterContext *ctx)
ctx               759 libavfilter/vf_lut3d.c     LUT3DContext *lut3d = ctx->priv;
ctx               764 libavfilter/vf_lut3d.c static av_cold void haldclut_uninit(AVFilterContext *ctx)
ctx               766 libavfilter/vf_lut3d.c     LUT3DContext *lut3d = ctx->priv;
ctx               101 libavfilter/vf_mcdeint.c     AVFilterContext *ctx = inlink->dst;
ctx               102 libavfilter/vf_mcdeint.c     MCDeintContext *mcdeint = ctx->priv;
ctx               109 libavfilter/vf_mcdeint.c         av_log(ctx, AV_LOG_ERROR, "Snow encoder is not enabled in libavcodec\n");
ctx               151 libavfilter/vf_mcdeint.c static av_cold void uninit(AVFilterContext *ctx)
ctx               153 libavfilter/vf_mcdeint.c     MCDeintContext *mcdeint = ctx->priv;
ctx               161 libavfilter/vf_mcdeint.c static int query_formats(AVFilterContext *ctx)
ctx               167 libavfilter/vf_mcdeint.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx                68 libavfilter/vf_mergeplanes.c static av_cold int init(AVFilterContext *ctx)
ctx                70 libavfilter/vf_mergeplanes.c     MergePlanesContext *s = ctx->priv;
ctx                77 libavfilter/vf_mergeplanes.c         av_log(ctx, AV_LOG_ERROR, "Only planar formats with more than one component are supported.\n");
ctx                89 libavfilter/vf_mergeplanes.c             av_log(ctx, AV_LOG_ERROR, "Mapping with out of range input and/or plane number.\n");
ctx               107 libavfilter/vf_mergeplanes.c         if ((ret = ff_insert_inpad(ctx, i, &pad)) < 0){
ctx               116 libavfilter/vf_mergeplanes.c static int query_formats(AVFilterContext *ctx)
ctx               118 libavfilter/vf_mergeplanes.c     MergePlanesContext *s = ctx->priv;
ctx               131 libavfilter/vf_mergeplanes.c         ff_formats_ref(formats, &ctx->inputs[i]->out_formats);
ctx               135 libavfilter/vf_mergeplanes.c     ff_formats_ref(formats, &ctx->outputs[0]->in_formats);
ctx               142 libavfilter/vf_mergeplanes.c     AVFilterContext *ctx = fs->parent;
ctx               143 libavfilter/vf_mergeplanes.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               173 libavfilter/vf_mergeplanes.c     AVFilterContext *ctx = outlink->src;
ctx               174 libavfilter/vf_mergeplanes.c     MergePlanesContext *s = ctx->priv;
ctx               179 libavfilter/vf_mergeplanes.c     ff_framesync_init(&s->fs, ctx, s->nb_inputs);
ctx               184 libavfilter/vf_mergeplanes.c     outlink->w = ctx->inputs[0]->w;
ctx               185 libavfilter/vf_mergeplanes.c     outlink->h = ctx->inputs[0]->h;
ctx               186 libavfilter/vf_mergeplanes.c     outlink->time_base = ctx->inputs[0]->time_base;
ctx               187 libavfilter/vf_mergeplanes.c     outlink->frame_rate = ctx->inputs[0]->frame_rate;
ctx               188 libavfilter/vf_mergeplanes.c     outlink->sample_aspect_ratio = ctx->inputs[0]->sample_aspect_ratio;
ctx               201 libavfilter/vf_mergeplanes.c         AVFilterLink *inlink = ctx->inputs[i];
ctx               207 libavfilter/vf_mergeplanes.c             av_log(ctx, AV_LOG_ERROR, "input #%d link %s SAR %d:%d "
ctx               209 libavfilter/vf_mergeplanes.c                                       i, ctx->input_pads[i].name,
ctx               212 libavfilter/vf_mergeplanes.c                                       ctx->output_pads[0].name,
ctx               243 libavfilter/vf_mergeplanes.c             av_log(ctx, AV_LOG_ERROR, "input %d does not have %d plane\n",
ctx               248 libavfilter/vf_mergeplanes.c             av_log(ctx, AV_LOG_ERROR, "output plane %d depth %d does not "
ctx               255 libavfilter/vf_mergeplanes.c             av_log(ctx, AV_LOG_ERROR, "output plane %d width %d does not "
ctx               262 libavfilter/vf_mergeplanes.c             av_log(ctx, AV_LOG_ERROR, "output plane %d height %d does not "
ctx               281 libavfilter/vf_mergeplanes.c static av_cold void uninit(AVFilterContext *ctx)
ctx               283 libavfilter/vf_mergeplanes.c     MergePlanesContext *s = ctx->priv;
ctx               288 libavfilter/vf_mergeplanes.c     for (i = 0; i < ctx->nb_inputs; i++)
ctx               289 libavfilter/vf_mergeplanes.c         av_freep(&ctx->input_pads[i].name);
ctx                71 libavfilter/vf_mpdecimate.c static int diff_planes(AVFilterContext *ctx,
ctx                76 libavfilter/vf_mpdecimate.c     DecimateContext *decimate = ctx->priv;
ctx               103 libavfilter/vf_mpdecimate.c static int decimate_frame(AVFilterContext *ctx,
ctx               106 libavfilter/vf_mpdecimate.c     DecimateContext *decimate = ctx->priv;
ctx               119 libavfilter/vf_mpdecimate.c         if (diff_planes(ctx,
ctx               130 libavfilter/vf_mpdecimate.c static av_cold int init(AVFilterContext *ctx)
ctx               132 libavfilter/vf_mpdecimate.c     DecimateContext *decimate = ctx->priv;
ctx               138 libavfilter/vf_mpdecimate.c     av_log(ctx, AV_LOG_VERBOSE, "max_drop_count:%d hi:%d lo:%d frac:%f\n",
ctx               144 libavfilter/vf_mpdecimate.c static av_cold void uninit(AVFilterContext *ctx)
ctx               146 libavfilter/vf_mpdecimate.c     DecimateContext *decimate = ctx->priv;
ctx               150 libavfilter/vf_mpdecimate.c static int query_formats(AVFilterContext *ctx)
ctx               162 libavfilter/vf_mpdecimate.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               169 libavfilter/vf_mpdecimate.c     AVFilterContext *ctx = inlink->dst;
ctx               170 libavfilter/vf_mpdecimate.c     DecimateContext *decimate = ctx->priv;
ctx               133 libavfilter/vf_noise.c static int query_formats(AVFilterContext *ctx)
ctx               144 libavfilter/vf_noise.c     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], ctx->graph->nb_threads));
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               123 libavfilter/vf_overlay.c static av_cold void uninit(AVFilterContext *ctx)
ctx               125 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               139 libavfilter/vf_overlay.c static void eval_expr(AVFilterContext *ctx)
ctx               141 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               171 libavfilter/vf_overlay.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               174 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               178 libavfilter/vf_overlay.c         ret = set_expr(&s->x_pexpr, args, cmd, ctx);
ctx               180 libavfilter/vf_overlay.c         ret = set_expr(&s->y_pexpr, args, cmd, ctx);
ctx               188 libavfilter/vf_overlay.c         eval_expr(ctx);
ctx               189 libavfilter/vf_overlay.c         av_log(ctx, AV_LOG_VERBOSE, "x:%f xi:%d y:%f yi:%d\n",
ctx               196 libavfilter/vf_overlay.c static int query_formats(AVFilterContext *ctx)
ctx               198 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               258 libavfilter/vf_overlay.c     ff_formats_ref(main_formats,    &ctx->inputs [MAIN   ]->out_formats);
ctx               259 libavfilter/vf_overlay.c     ff_formats_ref(overlay_formats, &ctx->inputs [OVERLAY]->out_formats);
ctx               260 libavfilter/vf_overlay.c     ff_formats_ref(main_formats,    &ctx->outputs[MAIN   ]->in_formats );
ctx               289 libavfilter/vf_overlay.c     AVFilterContext *ctx  = inlink->dst;
ctx               298 libavfilter/vf_overlay.c     s->var_values[VAR_MAIN_W   ] = s->var_values[VAR_MW] = ctx->inputs[MAIN   ]->w;
ctx               299 libavfilter/vf_overlay.c     s->var_values[VAR_MAIN_H   ] = s->var_values[VAR_MH] = ctx->inputs[MAIN   ]->h;
ctx               300 libavfilter/vf_overlay.c     s->var_values[VAR_OVERLAY_W] = s->var_values[VAR_OW] = ctx->inputs[OVERLAY]->w;
ctx               301 libavfilter/vf_overlay.c     s->var_values[VAR_OVERLAY_H] = s->var_values[VAR_OH] = ctx->inputs[OVERLAY]->h;
ctx               310 libavfilter/vf_overlay.c     if ((ret = set_expr(&s->x_pexpr,      s->x_expr,      "x",      ctx)) < 0 ||
ctx               311 libavfilter/vf_overlay.c         (ret = set_expr(&s->y_pexpr,      s->y_expr,      "y",      ctx)) < 0)
ctx               319 libavfilter/vf_overlay.c         eval_expr(ctx);
ctx               320 libavfilter/vf_overlay.c         av_log(ctx, AV_LOG_VERBOSE, "x:%f xi:%d y:%f yi:%d\n",
ctx               325 libavfilter/vf_overlay.c     av_log(ctx, AV_LOG_VERBOSE,
ctx               327 libavfilter/vf_overlay.c            ctx->inputs[MAIN]->w, ctx->inputs[MAIN]->h,
ctx               328 libavfilter/vf_overlay.c            av_get_pix_fmt_name(ctx->inputs[MAIN]->format),
ctx               329 libavfilter/vf_overlay.c            ctx->inputs[OVERLAY]->w, ctx->inputs[OVERLAY]->h,
ctx               330 libavfilter/vf_overlay.c            av_get_pix_fmt_name(ctx->inputs[OVERLAY]->format),
ctx               337 libavfilter/vf_overlay.c     AVFilterContext *ctx = outlink->src;
ctx               338 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               341 libavfilter/vf_overlay.c     if ((ret = ff_dualinput_init(ctx, &s->dinput)) < 0)
ctx               344 libavfilter/vf_overlay.c     outlink->w = ctx->inputs[MAIN]->w;
ctx               345 libavfilter/vf_overlay.c     outlink->h = ctx->inputs[MAIN]->h;
ctx               346 libavfilter/vf_overlay.c     outlink->time_base = ctx->inputs[MAIN]->time_base;
ctx               364 libavfilter/vf_overlay.c static void blend_image(AVFilterContext *ctx,
ctx               368 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               552 libavfilter/vf_overlay.c static AVFrame *do_blend(AVFilterContext *ctx, AVFrame *mainpic,
ctx               555 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               556 libavfilter/vf_overlay.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               566 libavfilter/vf_overlay.c         eval_expr(ctx);
ctx               567 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               573 libavfilter/vf_overlay.c     blend_image(ctx, mainpic, second, s->x, s->y);
ctx               590 libavfilter/vf_overlay.c static av_cold int init(AVFilterContext *ctx)
ctx               592 libavfilter/vf_overlay.c     OverlayContext *s = ctx->priv;
ctx               595 libavfilter/vf_overlay.c         av_log(ctx, AV_LOG_WARNING,
ctx               226 libavfilter/vf_owdenoise.c     AVFilterContext *ctx = inlink->dst;
ctx               227 libavfilter/vf_owdenoise.c     OWDenoiseContext *s = ctx->priv;
ctx               228 libavfilter/vf_owdenoise.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               260 libavfilter/vf_owdenoise.c static int query_formats(AVFilterContext *ctx)
ctx               270 libavfilter/vf_owdenoise.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               295 libavfilter/vf_owdenoise.c static av_cold void uninit(AVFilterContext *ctx)
ctx               298 libavfilter/vf_owdenoise.c     OWDenoiseContext *s = ctx->priv;
ctx                74 libavfilter/vf_pad.c static int query_formats(AVFilterContext *ctx)
ctx                76 libavfilter/vf_pad.c     ff_set_common_formats(ctx, ff_draw_supported_pixel_formats(0));
ctx                97 libavfilter/vf_pad.c     AVFilterContext *ctx = inlink->dst;
ctx                98 libavfilter/vf_pad.c     PadContext *s = ctx->priv;
ctx               120 libavfilter/vf_pad.c                            NULL, NULL, NULL, NULL, NULL, 0, ctx);
ctx               124 libavfilter/vf_pad.c                                       NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               130 libavfilter/vf_pad.c                                       NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               137 libavfilter/vf_pad.c                            NULL, NULL, NULL, NULL, NULL, 0, ctx);
ctx               141 libavfilter/vf_pad.c                                       NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               147 libavfilter/vf_pad.c                                       NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               153 libavfilter/vf_pad.c         av_log(ctx, AV_LOG_ERROR, "Negative values are not acceptable.\n");
ctx               169 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               177 libavfilter/vf_pad.c         av_log(ctx, AV_LOG_ERROR,
ctx                90 libavfilter/vf_palettegen.c static int query_formats(AVFilterContext *ctx)
ctx               101 libavfilter/vf_palettegen.c     ff_formats_ref(in,  &ctx->inputs[0]->out_formats);
ctx               102 libavfilter/vf_palettegen.c     ff_formats_ref(out, &ctx->outputs[0]->in_formats);
ctx               229 libavfilter/vf_palettegen.c static void write_palette(AVFilterContext *ctx, AVFrame *out)
ctx               231 libavfilter/vf_palettegen.c     const PaletteGenContext *s = ctx->priv;
ctx               242 libavfilter/vf_palettegen.c                     av_log(ctx, AV_LOG_WARNING, "Dupped color: %08X\n", pal[x]);
ctx               293 libavfilter/vf_palettegen.c static AVFrame *get_palette_frame(AVFilterContext *ctx)
ctx               296 libavfilter/vf_palettegen.c     PaletteGenContext *s = ctx->priv;
ctx               297 libavfilter/vf_palettegen.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               305 libavfilter/vf_palettegen.c         av_log(ctx, AV_LOG_ERROR, "Unable to allocate references for %d different colors\n", s->nb_refs);
ctx               350 libavfilter/vf_palettegen.c         av_dlog(ctx, "box #%02X [%6d..%-6d] (%6d) w:%-6"PRIu64" ranges:[%2x %2x %2x] sort by %c (already sorted:%c) ",
ctx               371 libavfilter/vf_palettegen.c         av_dlog(ctx, "split @ i=%-6d with w=%-6"PRIu64" (target=%6"PRIu64")\n", i, box_weight, median);
ctx               379 libavfilter/vf_palettegen.c     av_log(ctx, AV_LOG_INFO, "%d%s colors generated out of %d colors; ratio=%f\n",
ctx               384 libavfilter/vf_palettegen.c     write_palette(ctx, out);
ctx               478 libavfilter/vf_palettegen.c     AVFilterContext *ctx = inlink->dst;
ctx               479 libavfilter/vf_palettegen.c     PaletteGenContext *s = ctx->priv;
ctx               501 libavfilter/vf_palettegen.c     AVFilterContext *ctx = outlink->src;
ctx               502 libavfilter/vf_palettegen.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               503 libavfilter/vf_palettegen.c     PaletteGenContext *s = ctx->priv;
ctx               508 libavfilter/vf_palettegen.c         r = ff_filter_frame(outlink, get_palette_frame(ctx));
ctx               526 libavfilter/vf_palettegen.c static av_cold void uninit(AVFilterContext *ctx)
ctx               529 libavfilter/vf_palettegen.c     PaletteGenContext *s = ctx->priv;
ctx               129 libavfilter/vf_paletteuse.c static int query_formats(AVFilterContext *ctx)
ctx               143 libavfilter/vf_paletteuse.c     ff_formats_ref(in,    &ctx->inputs[0]->out_formats);
ctx               144 libavfilter/vf_paletteuse.c     ff_formats_ref(inpal, &ctx->inputs[1]->out_formats);
ctx               145 libavfilter/vf_paletteuse.c     ff_formats_ref(out,   &ctx->outputs[0]->in_formats);
ctx               854 libavfilter/vf_paletteuse.c     AVFilterContext *ctx = inlink->dst;
ctx               855 libavfilter/vf_paletteuse.c     PaletteUseContext *s = ctx->priv;
ctx               878 libavfilter/vf_paletteuse.c     av_dlog(ctx, "%dx%d rect: (%d;%d) -> (%d,%d) [area:%dx%d]\n",
ctx               895 libavfilter/vf_paletteuse.c     AVFilterContext *ctx = outlink->src;
ctx               896 libavfilter/vf_paletteuse.c     PaletteUseContext *s = ctx->priv;
ctx               898 libavfilter/vf_paletteuse.c     outlink->w = ctx->inputs[0]->w;
ctx               899 libavfilter/vf_paletteuse.c     outlink->h = ctx->inputs[0]->h;
ctx               901 libavfilter/vf_paletteuse.c     outlink->time_base = ctx->inputs[0]->time_base;
ctx               902 libavfilter/vf_paletteuse.c     if ((ret = ff_dualinput_init(ctx, &s->dinput)) < 0)
ctx               909 libavfilter/vf_paletteuse.c     AVFilterContext *ctx = inlink->dst;
ctx               912 libavfilter/vf_paletteuse.c         av_log(ctx, AV_LOG_ERROR,
ctx               940 libavfilter/vf_paletteuse.c static AVFrame *load_apply_palette(AVFilterContext *ctx, AVFrame *main,
ctx               943 libavfilter/vf_paletteuse.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               944 libavfilter/vf_paletteuse.c     PaletteUseContext *s = ctx->priv;
ctx               999 libavfilter/vf_paletteuse.c static av_cold int init(AVFilterContext *ctx)
ctx              1001 libavfilter/vf_paletteuse.c     PaletteUseContext *s = ctx->priv;
ctx              1024 libavfilter/vf_paletteuse.c static av_cold void uninit(AVFilterContext *ctx)
ctx              1027 libavfilter/vf_paletteuse.c     PaletteUseContext *s = ctx->priv;
ctx                52 libavfilter/vf_perspective.c     int (*perspective)(AVFilterContext *ctx,
ctx                87 libavfilter/vf_perspective.c static int query_formats(AVFilterContext *ctx)
ctx                96 libavfilter/vf_perspective.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               123 libavfilter/vf_perspective.c     AVFilterContext *ctx = inlink->dst;
ctx               124 libavfilter/vf_perspective.c     PerspectiveContext *s = ctx->priv;
ctx               139 libavfilter/vf_perspective.c                                          0, 0, ctx);
ctx               251 libavfilter/vf_perspective.c static int resample_cubic(AVFilterContext *ctx, void *arg,
ctx               254 libavfilter/vf_perspective.c     PerspectiveContext *s = ctx->priv;
ctx               330 libavfilter/vf_perspective.c static int resample_linear(AVFilterContext *ctx, void *arg,
ctx               333 libavfilter/vf_perspective.c     PerspectiveContext *s = ctx->priv;
ctx               405 libavfilter/vf_perspective.c static av_cold int init(AVFilterContext *ctx)
ctx               407 libavfilter/vf_perspective.c     PerspectiveContext *s = ctx->priv;
ctx               419 libavfilter/vf_perspective.c     AVFilterContext *ctx = inlink->dst;
ctx               420 libavfilter/vf_perspective.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               421 libavfilter/vf_perspective.c     PerspectiveContext *s = ctx->priv;
ctx               443 libavfilter/vf_perspective.c         ctx->internal->execute(ctx, s->perspective, &td, NULL, FFMIN(td.h, ctx->graph->nb_threads));
ctx               450 libavfilter/vf_perspective.c static av_cold void uninit(AVFilterContext *ctx)
ctx               452 libavfilter/vf_perspective.c     PerspectiveContext *s = ctx->priv;
ctx                71 libavfilter/vf_phase.c static int query_formats(AVFilterContext *ctx)
ctx                80 libavfilter/vf_phase.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               115 libavfilter/vf_phase.c static enum PhaseMode analyze_plane(void *ctx, enum PhaseMode mode, AVFrame *old, AVFrame *new)
ctx               236 libavfilter/vf_phase.c     av_log(ctx, AV_LOG_DEBUG, "mode=%c tdiff=%f bdiff=%f pdiff=%f\n",
ctx               244 libavfilter/vf_phase.c     AVFilterContext *ctx = inlink->dst;
ctx               245 libavfilter/vf_phase.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               246 libavfilter/vf_phase.c     PhaseContext *s = ctx->priv;
ctx               251 libavfilter/vf_phase.c     if (ctx->is_disabled) {
ctx               271 libavfilter/vf_phase.c         mode = analyze_plane(ctx, s->mode, s->frame, in);
ctx               294 libavfilter/vf_phase.c static av_cold void uninit(AVFilterContext *ctx)
ctx               296 libavfilter/vf_phase.c     PhaseContext *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                88 libavfilter/vf_pp.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               120 libavfilter/vf_pp.c     AVFilterContext *ctx = inlink->dst;
ctx               121 libavfilter/vf_pp.c     PPFilterContext *pp = ctx->priv;
ctx               122 libavfilter/vf_pp.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               152 libavfilter/vf_pp.c static av_cold void pp_uninit(AVFilterContext *ctx)
ctx               155 libavfilter/vf_pp.c     PPFilterContext *pp = ctx->priv;
ctx               273 libavfilter/vf_pp7.c static int query_formats(AVFilterContext *ctx)
ctx               284 libavfilter/vf_pp7.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               290 libavfilter/vf_pp7.c     AVFilterContext *ctx = inlink->dst;
ctx               291 libavfilter/vf_pp7.c     PP7Context *pp7 = ctx->priv;
ctx               323 libavfilter/vf_pp7.c     AVFilterContext *ctx = inlink->dst;
ctx               324 libavfilter/vf_pp7.c     PP7Context *pp7 = ctx->priv;
ctx               325 libavfilter/vf_pp7.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               334 libavfilter/vf_pp7.c     if (!ctx->is_disabled) {
ctx               376 libavfilter/vf_pp7.c static av_cold void uninit(AVFilterContext *ctx)
ctx               378 libavfilter/vf_pp7.c     PP7Context *pp7 = ctx->priv;
ctx               148 libavfilter/vf_psnr.c static AVFrame *do_psnr(AVFilterContext *ctx, AVFrame *main,
ctx               151 libavfilter/vf_psnr.c     PSNRContext *s = ctx->priv;
ctx               195 libavfilter/vf_psnr.c static av_cold int init(AVFilterContext *ctx)
ctx               197 libavfilter/vf_psnr.c     PSNRContext *s = ctx->priv;
ctx               208 libavfilter/vf_psnr.c             av_log(ctx, AV_LOG_ERROR, "Could not open stats file %s: %s\n",
ctx               218 libavfilter/vf_psnr.c static int query_formats(AVFilterContext *ctx)
ctx               235 libavfilter/vf_psnr.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               242 libavfilter/vf_psnr.c     AVFilterContext *ctx  = inlink->dst;
ctx               243 libavfilter/vf_psnr.c     PSNRContext *s = ctx->priv;
ctx               247 libavfilter/vf_psnr.c     if (ctx->inputs[0]->w != ctx->inputs[1]->w ||
ctx               248 libavfilter/vf_psnr.c         ctx->inputs[0]->h != ctx->inputs[1]->h) {
ctx               249 libavfilter/vf_psnr.c         av_log(ctx, AV_LOG_ERROR, "Width and height of input videos must be same.\n");
ctx               252 libavfilter/vf_psnr.c     if (ctx->inputs[0]->format != ctx->inputs[1]->format) {
ctx               253 libavfilter/vf_psnr.c         av_log(ctx, AV_LOG_ERROR, "Inputs must be of same pixel format.\n");
ctx               307 libavfilter/vf_psnr.c     AVFilterContext *ctx = outlink->src;
ctx               308 libavfilter/vf_psnr.c     PSNRContext *s = ctx->priv;
ctx               309 libavfilter/vf_psnr.c     AVFilterLink *mainlink = ctx->inputs[0];
ctx               317 libavfilter/vf_psnr.c     if ((ret = ff_dualinput_init(ctx, &s->dinput)) < 0)
ctx               335 libavfilter/vf_psnr.c static av_cold void uninit(AVFilterContext *ctx)
ctx               337 libavfilter/vf_psnr.c     PSNRContext *s = ctx->priv;
ctx               340 libavfilter/vf_psnr.c         av_log(ctx, AV_LOG_INFO, "PSNR average:%0.2f min:%0.2f max:%0.2f\n",
ctx                55 libavfilter/vf_pullup.c static int query_formats(AVFilterContext *ctx)
ctx                66 libavfilter/vf_pullup.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               182 libavfilter/vf_pullup.c     AVFilterContext *ctx = inlink->dst;
ctx               183 libavfilter/vf_pullup.c     PullupContext *s = ctx->priv;
ctx               190 libavfilter/vf_pullup.c         av_log(ctx, AV_LOG_ERROR, "input format does not have such plane\n");
ctx               204 libavfilter/vf_pullup.c     av_log(ctx, AV_LOG_DEBUG, "w: %d h: %d\n", s->metric_w, s->metric_h);
ctx               205 libavfilter/vf_pullup.c     av_log(ctx, AV_LOG_DEBUG, "offset: %d length: %d\n", s->metric_offset, s->metric_length);
ctx               663 libavfilter/vf_pullup.c     AVFilterContext *ctx = inlink->dst;
ctx               664 libavfilter/vf_pullup.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               665 libavfilter/vf_pullup.c     PullupContext *s = ctx->priv;
ctx               673 libavfilter/vf_pullup.c         av_log(ctx, AV_LOG_WARNING, "Could not get buffer!\n");
ctx               737 libavfilter/vf_pullup.c static av_cold void uninit(AVFilterContext *ctx)
ctx               739 libavfilter/vf_pullup.c     PullupContext *s = ctx->priv;
ctx                50 libavfilter/vf_qp.c     AVFilterContext *ctx = inlink->dst;
ctx                51 libavfilter/vf_qp.c     QPContext *s = ctx->priv;
ctx                67 libavfilter/vf_qp.c                                      NULL, NULL, NULL, NULL, 0, 0, ctx);
ctx                79 libavfilter/vf_qp.c     AVFilterContext *ctx = inlink->dst;
ctx                80 libavfilter/vf_qp.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                81 libavfilter/vf_qp.c     QPContext *s = ctx->priv;
ctx                87 libavfilter/vf_qp.c     if (!s->qp_expr_str || ctx->is_disabled)
ctx               206 libavfilter/vf_removelogo.c static int query_formats(AVFilterContext *ctx)
ctx               209 libavfilter/vf_removelogo.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               280 libavfilter/vf_removelogo.c static av_cold int init(AVFilterContext *ctx)
ctx               282 libavfilter/vf_removelogo.c     RemovelogoContext *s = ctx->priv;
ctx               289 libavfilter/vf_removelogo.c         av_log(ctx, AV_LOG_ERROR, "The bitmap file name is mandatory\n");
ctx               294 libavfilter/vf_removelogo.c     if ((ret = load_mask(&s->full_mask_data, &w, &h, s->filename, ctx)) < 0)
ctx               347 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               359 libavfilter/vf_removelogo.c     AVFilterContext *ctx = inlink->dst;
ctx               360 libavfilter/vf_removelogo.c     RemovelogoContext *s = ctx->priv;
ctx               363 libavfilter/vf_removelogo.c         av_log(ctx, AV_LOG_INFO,
ctx               534 libavfilter/vf_removelogo.c static av_cold void uninit(AVFilterContext *ctx)
ctx               536 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                53 libavfilter/vf_repeatfields.c     ff_set_common_formats(ctx, ff_make_format_list(pixel_fmts_eq));
ctx                86 libavfilter/vf_repeatfields.c     AVFilterContext *ctx = inlink->dst;
ctx                88 libavfilter/vf_repeatfields.c     RepeatFieldsContext *s = ctx->priv;
ctx               104 libavfilter/vf_repeatfields.c         av_log(ctx, AV_LOG_WARNING, "Unexpected field flags: "
ctx               110 libavfilter/vf_rotate.c static av_cold int init(AVFilterContext *ctx)
ctx               112 libavfilter/vf_rotate.c     RotContext *rot = ctx->priv;
ctx               116 libavfilter/vf_rotate.c     else if (av_parse_color(rot->fillcolor, rot->fillcolor_str, -1, ctx) >= 0)
ctx               123 libavfilter/vf_rotate.c static av_cold void uninit(AVFilterContext *ctx)
ctx               125 libavfilter/vf_rotate.c     RotContext *rot = ctx->priv;
ctx               131 libavfilter/vf_rotate.c static int query_formats(AVFilterContext *ctx)
ctx               148 libavfilter/vf_rotate.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               190 libavfilter/vf_rotate.c     AVFilterContext *ctx = outlink->src;
ctx               191 libavfilter/vf_rotate.c     RotContext *rot = ctx->priv;
ctx               192 libavfilter/vf_rotate.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               216 libavfilter/vf_rotate.c                              func1_names, func1, NULL, NULL, 0, ctx)) < 0) {
ctx               217 libavfilter/vf_rotate.c         av_log(ctx, AV_LOG_ERROR,
ctx               225 libavfilter/vf_rotate.c                                  func1_names, func1, NULL, NULL, rot, 0, ctx);     \
ctx               227 libavfilter/vf_rotate.c         av_log(ctx, AV_LOG_ERROR,                                                  \
ctx               237 libavfilter/vf_rotate.c                            func1_names, func1, NULL, NULL, rot, 0, ctx);
ctx               371 libavfilter/vf_rotate.c static int filter_slice(AVFilterContext *ctx, void *arg, int job, int nb_jobs)
ctx               376 libavfilter/vf_rotate.c     RotContext *rot = ctx->priv;
ctx               462 libavfilter/vf_rotate.c     AVFilterContext *ctx = inlink->dst;
ctx               463 libavfilter/vf_rotate.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               465 libavfilter/vf_rotate.c     RotContext *rot = ctx->priv;
ctx               480 libavfilter/vf_rotate.c     av_log(ctx, AV_LOG_DEBUG, "n:%f time:%f angle:%f/PI\n",
ctx               507 libavfilter/vf_rotate.c         ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(outh, ctx->graph->nb_threads));
ctx               514 libavfilter/vf_rotate.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               517 libavfilter/vf_rotate.c     RotContext *rot = ctx->priv;
ctx               523 libavfilter/vf_rotate.c                             NULL, NULL, NULL, NULL, 0, ctx);
ctx               525 libavfilter/vf_rotate.c             av_log(ctx, AV_LOG_ERROR,
ctx                58 libavfilter/vf_sab.c static int query_formats(AVFilterContext *ctx)
ctx                68 libavfilter/vf_sab.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               107 libavfilter/vf_sab.c static av_cold int init(AVFilterContext *ctx)
ctx               109 libavfilter/vf_sab.c     SabContext *sab = ctx->priv;
ctx               122 libavfilter/vf_sab.c     av_log(ctx, AV_LOG_VERBOSE,
ctx               140 libavfilter/vf_sab.c static av_cold void uninit(AVFilterContext *ctx)
ctx               142 libavfilter/vf_sab.c     SabContext *sab = ctx->priv;
ctx               114 libavfilter/vf_scale.c static av_cold int init_dict(AVFilterContext *ctx, AVDictionary **opts)
ctx               116 libavfilter/vf_scale.c     ScaleContext *scale = ctx->priv;
ctx               120 libavfilter/vf_scale.c         av_log(ctx, AV_LOG_ERROR,
ctx               131 libavfilter/vf_scale.c             av_log(ctx, AV_LOG_ERROR,
ctx               145 libavfilter/vf_scale.c     av_log(ctx, AV_LOG_VERBOSE, "w:%s h:%s flags:'%s' interl:%d\n",
ctx               164 libavfilter/vf_scale.c static av_cold void uninit(AVFilterContext *ctx)
ctx               166 libavfilter/vf_scale.c     ScaleContext *scale = ctx->priv;
ctx               174 libavfilter/vf_scale.c static int query_formats(AVFilterContext *ctx)
ctx               180 libavfilter/vf_scale.c     if (ctx->inputs[0]) {
ctx               192 libavfilter/vf_scale.c         ff_formats_ref(formats, &ctx->inputs[0]->out_formats);
ctx               194 libavfilter/vf_scale.c     if (ctx->outputs[0]) {
ctx               206 libavfilter/vf_scale.c         ff_formats_ref(formats, &ctx->outputs[0]->in_formats);
ctx               236 libavfilter/vf_scale.c     AVFilterContext *ctx = outlink->src;
ctx               239 libavfilter/vf_scale.c     ScaleContext *scale = ctx->priv;
ctx               264 libavfilter/vf_scale.c                            NULL, NULL, NULL, NULL, NULL, 0, ctx);
ctx               268 libavfilter/vf_scale.c                                       NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               274 libavfilter/vf_scale.c                                       NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               326 libavfilter/vf_scale.c         av_log(ctx, AV_LOG_ERROR, "Rescaled value for width or height is too big.\n");
ctx               404 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                32 libavfilter/vf_separatefields.c     AVFilterContext *ctx = outlink->src;
ctx                33 libavfilter/vf_separatefields.c     SeparateFieldsContext *sf = ctx->priv;
ctx                34 libavfilter/vf_separatefields.c     AVFilterLink *inlink = ctx->inputs[0];
ctx                39 libavfilter/vf_separatefields.c         av_log(ctx, AV_LOG_ERROR, "height must be even\n");
ctx                66 libavfilter/vf_separatefields.c     AVFilterContext *ctx = inlink->dst;
ctx                67 libavfilter/vf_separatefields.c     SeparateFieldsContext *sf = ctx->priv;
ctx                68 libavfilter/vf_separatefields.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               106 libavfilter/vf_separatefields.c     AVFilterContext *ctx = outlink->src;
ctx               107 libavfilter/vf_separatefields.c     SeparateFieldsContext *sf = ctx->priv;
ctx               110 libavfilter/vf_separatefields.c     ret = ff_request_frame(ctx->inputs[0]);
ctx                39 libavfilter/vf_showinfo.c static void dump_stereo3d(AVFilterContext *ctx, AVFrameSideData *sd)
ctx                43 libavfilter/vf_showinfo.c     av_log(ctx, AV_LOG_INFO, "stereoscopic information: ");
ctx                45 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO, "invalid data");
ctx                51 libavfilter/vf_showinfo.c     av_log(ctx, AV_LOG_INFO, "type - ");
ctx                53 libavfilter/vf_showinfo.c     case AV_STEREO3D_2D:                  av_log(ctx, AV_LOG_INFO, "2D");                     break;
ctx                54 libavfilter/vf_showinfo.c     case AV_STEREO3D_SIDEBYSIDE:          av_log(ctx, AV_LOG_INFO, "side by side");           break;
ctx                55 libavfilter/vf_showinfo.c     case AV_STEREO3D_TOPBOTTOM:           av_log(ctx, AV_LOG_INFO, "top and bottom");         break;
ctx                56 libavfilter/vf_showinfo.c     case AV_STEREO3D_FRAMESEQUENCE:       av_log(ctx, AV_LOG_INFO, "frame alternate");        break;
ctx                57 libavfilter/vf_showinfo.c     case AV_STEREO3D_CHECKERBOARD:        av_log(ctx, AV_LOG_INFO, "checkerboard");           break;
ctx                58 libavfilter/vf_showinfo.c     case AV_STEREO3D_LINES:               av_log(ctx, AV_LOG_INFO, "interleaved lines");      break;
ctx                59 libavfilter/vf_showinfo.c     case AV_STEREO3D_COLUMNS:             av_log(ctx, AV_LOG_INFO, "interleaved columns");    break;
ctx                60 libavfilter/vf_showinfo.c     case AV_STEREO3D_SIDEBYSIDE_QUINCUNX: av_log(ctx, AV_LOG_INFO, "side by side "
ctx                62 libavfilter/vf_showinfo.c     default:                              av_log(ctx, AV_LOG_WARNING, "unknown");             break;
ctx                66 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO, " (inverted)");
ctx                81 libavfilter/vf_showinfo.c     AVFilterContext *ctx = inlink->dst;
ctx               106 libavfilter/vf_showinfo.c     av_log(ctx, AV_LOG_INFO,
ctx               122 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO, " %08"PRIX32, plane_checksum[plane]);
ctx               123 libavfilter/vf_showinfo.c     av_log(ctx, AV_LOG_INFO, "] mean:[");
ctx               125 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO, "%"PRId64" ", (sum[plane] + pixelcount[plane]/2) / pixelcount[plane]);
ctx               126 libavfilter/vf_showinfo.c     av_log(ctx, AV_LOG_INFO, "\b] stdev:[");
ctx               128 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO, "%3.1f ",
ctx               130 libavfilter/vf_showinfo.c     av_log(ctx, AV_LOG_INFO, "\b]\n");
ctx               135 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO, "  side data - ");
ctx               138 libavfilter/vf_showinfo.c             av_log(ctx, AV_LOG_INFO, "pan/scan");
ctx               141 libavfilter/vf_showinfo.c             av_log(ctx, AV_LOG_INFO, "A/53 closed captions (%d bytes)", sd->size);
ctx               144 libavfilter/vf_showinfo.c             dump_stereo3d(ctx, sd);
ctx               147 libavfilter/vf_showinfo.c             av_log(ctx, AV_LOG_INFO, "displaymatrix: rotation of %.2f degrees",
ctx               151 libavfilter/vf_showinfo.c             av_log(ctx, AV_LOG_INFO, "afd: value of %"PRIu8, sd->data[0]);
ctx               154 libavfilter/vf_showinfo.c             av_log(ctx, AV_LOG_WARNING, "unknown side data type %d (%d bytes)",
ctx               159 libavfilter/vf_showinfo.c         av_log(ctx, AV_LOG_INFO, "\n");
ctx               165 libavfilter/vf_showinfo.c static int config_props(AVFilterContext *ctx, AVFilterLink *link, int is_out)
ctx               168 libavfilter/vf_showinfo.c     av_log(ctx, AV_LOG_INFO, "config %s time_base: %d/%d, frame_rate: %d/%d\n",
ctx               179 libavfilter/vf_showinfo.c     AVFilterContext *ctx = link->dst;
ctx               180 libavfilter/vf_showinfo.c     return config_props(ctx, link, 0);
ctx               185 libavfilter/vf_showinfo.c     AVFilterContext *ctx = link->src;
ctx               186 libavfilter/vf_showinfo.c     return config_props(ctx, link, 1);
ctx                45 libavfilter/vf_showpalette.c static int query_formats(AVFilterContext *ctx)
ctx                56 libavfilter/vf_showpalette.c     ff_formats_ref(in,  &ctx->inputs[0]->out_formats);
ctx                57 libavfilter/vf_showpalette.c     ff_formats_ref(out, &ctx->outputs[0]->in_formats);
ctx                63 libavfilter/vf_showpalette.c     AVFilterContext *ctx = outlink->src;
ctx                64 libavfilter/vf_showpalette.c     const ShowPaletteContext *s = ctx->priv;
ctx                88 libavfilter/vf_showpalette.c     AVFilterContext *ctx = inlink->dst;
ctx                89 libavfilter/vf_showpalette.c     const ShowPaletteContext *s= ctx->priv;
ctx                90 libavfilter/vf_showpalette.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                45 libavfilter/vf_shuffleplanes.c     AVFilterContext    *ctx = inlink->dst;
ctx                46 libavfilter/vf_shuffleplanes.c     ShufflePlanesContext *s = ctx->priv;
ctx                57 libavfilter/vf_shuffleplanes.c             av_log(ctx, AV_LOG_ERROR,
ctx                65 libavfilter/vf_shuffleplanes.c             av_log(ctx, AV_LOG_ERROR,
ctx                74 libavfilter/vf_shuffleplanes.c             av_log(ctx, AV_LOG_ERROR,
ctx                88 libavfilter/vf_shuffleplanes.c     AVFilterContext          *ctx = inlink->dst;
ctx                89 libavfilter/vf_shuffleplanes.c     ShufflePlanesContext       *s = ctx->priv;
ctx               102 libavfilter/vf_shuffleplanes.c         AVFrame *copy = ff_get_video_buffer(ctx->outputs[0], frame->width, frame->height);
ctx               121 libavfilter/vf_shuffleplanes.c     return ff_filter_frame(ctx->outputs[0], frame);
ctx                84 libavfilter/vf_signalstats.c static av_cold int init(AVFilterContext *ctx)
ctx                87 libavfilter/vf_signalstats.c     SignalstatsContext *s = ctx->priv;
ctx               101 libavfilter/vf_signalstats.c static av_cold void uninit(AVFilterContext *ctx)
ctx               103 libavfilter/vf_signalstats.c     SignalstatsContext *s = ctx->priv;
ctx               110 libavfilter/vf_signalstats.c static int query_formats(AVFilterContext *ctx)
ctx               121 libavfilter/vf_signalstats.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               145 libavfilter/vf_signalstats.c     AVFilterContext *ctx = outlink->src;
ctx               146 libavfilter/vf_signalstats.c     SignalstatsContext *s = ctx->priv;
ctx               161 libavfilter/vf_signalstats.c     s->nb_jobs   = FFMAX(1, FFMIN(inlink->h, ctx->graph->nb_threads));
ctx               183 libavfilter/vf_signalstats.c static int filter_brng(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               186 libavfilter/vf_signalstats.c     const SignalstatsContext *s = ctx->priv;
ctx               222 libavfilter/vf_signalstats.c static int filter_tout(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               225 libavfilter/vf_signalstats.c     const SignalstatsContext *s = ctx->priv;
ctx               272 libavfilter/vf_signalstats.c static int filter_vrep(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               275 libavfilter/vf_signalstats.c     const SignalstatsContext *s = ctx->priv;
ctx               308 libavfilter/vf_signalstats.c     int (*process)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx               318 libavfilter/vf_signalstats.c static int compute_sat_hue_metrics(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               322 libavfilter/vf_signalstats.c     const SignalstatsContext *s = ctx->priv;
ctx               358 libavfilter/vf_signalstats.c     AVFilterContext *ctx = link->dst;
ctx               359 libavfilter/vf_signalstats.c     SignalstatsContext *s = ctx->priv;
ctx               360 libavfilter/vf_signalstats.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               410 libavfilter/vf_signalstats.c     ctx->internal->execute(ctx, compute_sat_hue_metrics, &td_huesat,
ctx               411 libavfilter/vf_signalstats.c                            NULL, FFMIN(s->chromah, ctx->graph->nb_threads));
ctx               450 libavfilter/vf_signalstats.c             ctx->internal->execute(ctx, filters_def[fil].process,
ctx                85 libavfilter/vf_smartblur.c static av_cold int init(AVFilterContext *ctx)
ctx                87 libavfilter/vf_smartblur.c     SmartblurContext *sblur = 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 *sblur = ctx->priv;
ctx               117 libavfilter/vf_smartblur.c static int query_formats(AVFilterContext *ctx)
ctx               127 libavfilter/vf_smartblur.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               304 libavfilter/vf_spp.c static int query_formats(AVFilterContext *ctx)
ctx               322 libavfilter/vf_spp.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               352 libavfilter/vf_spp.c     AVFilterContext *ctx = inlink->dst;
ctx               353 libavfilter/vf_spp.c     SPPContext *spp = ctx->priv;
ctx               354 libavfilter/vf_spp.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               395 libavfilter/vf_spp.c     if (spp->log2_count && !ctx->is_disabled) {
ctx               439 libavfilter/vf_spp.c static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               442 libavfilter/vf_spp.c     SPPContext *spp = ctx->priv;
ctx               454 libavfilter/vf_spp.c static av_cold int init_dict(AVFilterContext *ctx, AVDictionary **opts)
ctx               456 libavfilter/vf_spp.c     SPPContext *spp = ctx->priv;
ctx               482 libavfilter/vf_spp.c static av_cold void uninit(AVFilterContext *ctx)
ctx               484 libavfilter/vf_spp.c     SPPContext *spp = ctx->priv;
ctx               255 libavfilter/vf_stereo3d.c static int query_formats(AVFilterContext *ctx)
ctx               257 libavfilter/vf_stereo3d.c     Stereo3DContext *s = ctx->priv;
ctx               281 libavfilter/vf_stereo3d.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               288 libavfilter/vf_stereo3d.c     AVFilterContext *ctx = outlink->src;
ctx               289 libavfilter/vf_stereo3d.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               290 libavfilter/vf_stereo3d.c     Stereo3DContext *s = ctx->priv;
ctx               303 libavfilter/vf_stereo3d.c             av_log(ctx, AV_LOG_ERROR, "width must be even\n");
ctx               314 libavfilter/vf_stereo3d.c                 av_log(ctx, AV_LOG_ERROR, "height must be multiple of 4\n");
ctx               319 libavfilter/vf_stereo3d.c             av_log(ctx, AV_LOG_ERROR, "height must be even\n");
ctx               369 libavfilter/vf_stereo3d.c         av_log(ctx, AV_LOG_ERROR, "input format %d is not supported\n", s->in.format);
ctx               452 libavfilter/vf_stereo3d.c         av_log(ctx, AV_LOG_ERROR, "output format %d is not supported\n", s->out.format);
ctx               488 libavfilter/vf_stereo3d.c     AVFilterContext *ctx  = inlink->dst;
ctx               489 libavfilter/vf_stereo3d.c     Stereo3DContext *s = ctx->priv;
ctx               490 libavfilter/vf_stereo3d.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               630 libavfilter/vf_stereo3d.c static av_cold void uninit(AVFilterContext *ctx)
ctx               632 libavfilter/vf_stereo3d.c     Stereo3DContext *s = ctx->priv;
ctx                83 libavfilter/vf_subtitles.c static void ass_log(int ass_level, const char *fmt, va_list args, void *ctx)
ctx                89 libavfilter/vf_subtitles.c     av_vlog(ctx, level, fmt, args);
ctx                90 libavfilter/vf_subtitles.c     av_log(ctx, level, "\n");
ctx                93 libavfilter/vf_subtitles.c static av_cold int init(AVFilterContext *ctx)
ctx                95 libavfilter/vf_subtitles.c     AssContext *ass = ctx->priv;
ctx                98 libavfilter/vf_subtitles.c         av_log(ctx, AV_LOG_ERROR, "No filename provided!\n");
ctx               104 libavfilter/vf_subtitles.c         av_log(ctx, AV_LOG_ERROR, "Could not initialize libass.\n");
ctx               107 libavfilter/vf_subtitles.c     ass_set_message_cb(ass->library, ass_log, ctx);
ctx               111 libavfilter/vf_subtitles.c         av_log(ctx, AV_LOG_ERROR, "Could not initialize libass renderer.\n");
ctx               118 libavfilter/vf_subtitles.c static av_cold void uninit(AVFilterContext *ctx)
ctx               120 libavfilter/vf_subtitles.c     AssContext *ass = ctx->priv;
ctx               130 libavfilter/vf_subtitles.c static int query_formats(AVFilterContext *ctx)
ctx               132 libavfilter/vf_subtitles.c     ff_set_common_formats(ctx, ff_draw_supported_pixel_formats(0));
ctx               175 libavfilter/vf_subtitles.c     AVFilterContext *ctx = inlink->dst;
ctx               176 libavfilter/vf_subtitles.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               177 libavfilter/vf_subtitles.c     AssContext *ass = ctx->priv;
ctx               184 libavfilter/vf_subtitles.c         av_log(ctx, AV_LOG_DEBUG, "Change happened at time ms:%f\n", time_ms);
ctx               223 libavfilter/vf_subtitles.c static av_cold int init_ass(AVFilterContext *ctx)
ctx               225 libavfilter/vf_subtitles.c     AssContext *ass = ctx->priv;
ctx               226 libavfilter/vf_subtitles.c     int ret = init(ctx);
ctx               236 libavfilter/vf_subtitles.c         av_log(ctx, AV_LOG_ERROR,
ctx               293 libavfilter/vf_subtitles.c static av_cold int init_subtitles(AVFilterContext *ctx)
ctx               304 libavfilter/vf_subtitles.c     AssContext *ass = ctx->priv;
ctx               307 libavfilter/vf_subtitles.c     ret = init(ctx);
ctx               312 libavfilter/vf_subtitles.c         av_log(ctx, AV_LOG_ERROR, "Could not create a libass track\n");
ctx               319 libavfilter/vf_subtitles.c         av_log(ctx, AV_LOG_ERROR, "Unable to open %s\n", ass->filename);
ctx               345 libavfilter/vf_subtitles.c         av_log(ctx, AV_LOG_ERROR, "Unable to locate subtitle stream in %s\n",
ctx               362 libavfilter/vf_subtitles.c                 av_log(ctx, AV_LOG_DEBUG, "Loading attached font: %s\n",
ctx               368 libavfilter/vf_subtitles.c                 av_log(ctx, AV_LOG_WARNING,
ctx               381 libavfilter/vf_subtitles.c         av_log(ctx, AV_LOG_ERROR, "Failed to find subtitle codec %s\n",
ctx               387 libavfilter/vf_subtitles.c         av_log(ctx, AV_LOG_ERROR,
ctx               433 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 *sai = ctx->priv;
ctx               234 libavfilter/vf_super2xsai.c static int query_formats(AVFilterContext *ctx)
ctx               244 libavfilter/vf_super2xsai.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx                71 libavfilter/vf_swapuv.c static int query_formats(AVFilterContext *ctx)
ctx                82 libavfilter/vf_swapuv.c     ff_set_common_formats(ctx, formats);
ctx                70 libavfilter/vf_telecine.c static av_cold int init(AVFilterContext *ctx)
ctx                72 libavfilter/vf_telecine.c     TelecineContext *s = ctx->priv;
ctx                77 libavfilter/vf_telecine.c         av_log(ctx, AV_LOG_ERROR, "No pattern provided.\n");
ctx                83 libavfilter/vf_telecine.c             av_log(ctx, AV_LOG_ERROR, "Provided pattern includes non-numeric characters.\n");
ctx                93 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                99 libavfilter/vf_telecine.c static int query_formats(AVFilterContext *ctx)
ctx               112 libavfilter/vf_telecine.c     ff_set_common_formats(ctx, pix_fmts);
ctx               144 libavfilter/vf_telecine.c     AVFilterContext *ctx = outlink->src;
ctx               145 libavfilter/vf_telecine.c     TelecineContext *s = ctx->priv;
ctx               146 libavfilter/vf_telecine.c     const AVFilterLink *inlink = ctx->inputs[0];
ctx               150 libavfilter/vf_telecine.c         av_log(ctx, AV_LOG_ERROR, "The input needs a constant frame rate; "
ctx               155 libavfilter/vf_telecine.c     av_log(ctx, AV_LOG_VERBOSE, "FPS: %d/%d -> %d/%d\n",
ctx               161 libavfilter/vf_telecine.c     av_log(ctx, AV_LOG_VERBOSE, "TB: %d/%d -> %d/%d\n",
ctx               171 libavfilter/vf_telecine.c     AVFilterContext *ctx = inlink->dst;
ctx               172 libavfilter/vf_telecine.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               173 libavfilter/vf_telecine.c     TelecineContext *s = ctx->priv;
ctx               246 libavfilter/vf_telecine.c static av_cold void uninit(AVFilterContext *ctx)
ctx               248 libavfilter/vf_telecine.c     TelecineContext *s = ctx->priv;
ctx                59 libavfilter/vf_thumbnail.c static av_cold int init(AVFilterContext *ctx)
ctx                61 libavfilter/vf_thumbnail.c     ThumbContext *thumb = 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", thumb->n_frames);
ctx                91 libavfilter/vf_thumbnail.c static AVFrame *get_best_frame(AVFilterContext *ctx)
ctx                94 libavfilter/vf_thumbnail.c     ThumbContext *thumb = 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 *thumb   = 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 *thumb = ctx->priv;
ctx               172 libavfilter/vf_thumbnail.c     AVFilterContext *ctx = link->src;
ctx               173 libavfilter/vf_thumbnail.c     ThumbContext *thumb = ctx->priv;
ctx               178 libavfilter/vf_thumbnail.c         int ret = ff_request_frame(ctx->inputs[0]);
ctx               180 libavfilter/vf_thumbnail.c             ret = ff_filter_frame(link, get_best_frame(ctx));
ctx               193 libavfilter/vf_thumbnail.c     AVFilterContext *ctx = inlink->dst;
ctx               194 libavfilter/vf_thumbnail.c     ThumbContext *thumb = ctx->priv;
ctx               200 libavfilter/vf_thumbnail.c static int query_formats(AVFilterContext *ctx)
ctx               206 libavfilter/vf_thumbnail.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx                67 libavfilter/vf_tile.c static av_cold int init(AVFilterContext *ctx)
ctx                69 libavfilter/vf_tile.c     TileContext *tile = ctx->priv;
ctx                72 libavfilter/vf_tile.c         av_log(ctx, AV_LOG_ERROR, "Tile size %ux%u is insane.\n",
ctx                80 libavfilter/vf_tile.c         av_log(ctx, AV_LOG_ERROR, "nb_frames must be less than or equal to %dx%d=%d\n",
ctx                88 libavfilter/vf_tile.c static int query_formats(AVFilterContext *ctx)
ctx                90 libavfilter/vf_tile.c     ff_set_common_formats(ctx, ff_draw_supported_pixel_formats(0));
ctx                96 libavfilter/vf_tile.c     AVFilterContext *ctx = outlink->src;
ctx                97 libavfilter/vf_tile.c     TileContext *tile    = ctx->priv;
ctx                98 libavfilter/vf_tile.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               103 libavfilter/vf_tile.c         av_log(ctx, AV_LOG_ERROR, "Total width %ux%u is too much.\n",
ctx               108 libavfilter/vf_tile.c         av_log(ctx, AV_LOG_ERROR, "Total height %ux%u is too much.\n",
ctx               125 libavfilter/vf_tile.c static void get_current_tile_pos(AVFilterContext *ctx, unsigned *x, unsigned *y)
ctx               127 libavfilter/vf_tile.c     TileContext *tile    = ctx->priv;
ctx               128 libavfilter/vf_tile.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               136 libavfilter/vf_tile.c static void draw_blank_frame(AVFilterContext *ctx, AVFrame *out_buf)
ctx               138 libavfilter/vf_tile.c     TileContext *tile    = ctx->priv;
ctx               139 libavfilter/vf_tile.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               142 libavfilter/vf_tile.c     get_current_tile_pos(ctx, &x0, &y0);
ctx               148 libavfilter/vf_tile.c static int end_last_frame(AVFilterContext *ctx)
ctx               150 libavfilter/vf_tile.c     TileContext *tile     = ctx->priv;
ctx               151 libavfilter/vf_tile.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               156 libavfilter/vf_tile.c         draw_blank_frame(ctx, out_buf);
ctx               168 libavfilter/vf_tile.c     AVFilterContext *ctx  = inlink->dst;
ctx               169 libavfilter/vf_tile.c     TileContext *tile     = ctx->priv;
ctx               170 libavfilter/vf_tile.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               191 libavfilter/vf_tile.c     get_current_tile_pos(ctx, &x0, &y0);
ctx               199 libavfilter/vf_tile.c         return end_last_frame(ctx);
ctx               206 libavfilter/vf_tile.c     AVFilterContext *ctx = outlink->src;
ctx               207 libavfilter/vf_tile.c     TileContext *tile    = ctx->priv;
ctx               208 libavfilter/vf_tile.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               213 libavfilter/vf_tile.c         r = end_last_frame(ctx);
ctx                73 libavfilter/vf_tinterlace.c static int query_formats(AVFilterContext *ctx)
ctx                84 libavfilter/vf_tinterlace.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               100 libavfilter/vf_tinterlace.c static av_cold void uninit(AVFilterContext *ctx)
ctx               102 libavfilter/vf_tinterlace.c     TInterlaceContext *tinterlace = ctx->priv;
ctx               111 libavfilter/vf_tinterlace.c     AVFilterContext *ctx = outlink->src;
ctx               114 libavfilter/vf_tinterlace.c     TInterlaceContext *tinterlace = ctx->priv;
ctx               143 libavfilter/vf_tinterlace.c         av_log(ctx, AV_LOG_WARNING, "low_pass_filter flag ignored with mode %d\n",
ctx               171 libavfilter/vf_tinterlace.c     av_log(ctx, AV_LOG_VERBOSE, "mode:%d filter:%s h:%d -> h:%d\n",
ctx               241 libavfilter/vf_tinterlace.c     AVFilterContext *ctx = inlink->dst;
ctx               242 libavfilter/vf_tinterlace.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               243 libavfilter/vf_tinterlace.c     TInterlaceContext *tinterlace = ctx->priv;
ctx                63 libavfilter/vf_transpose.c static int query_formats(AVFilterContext *ctx)
ctx                78 libavfilter/vf_transpose.c     ff_set_common_formats(ctx, pix_fmts);
ctx                84 libavfilter/vf_transpose.c     AVFilterContext *ctx = outlink->src;
ctx                85 libavfilter/vf_transpose.c     TransContext *trans = ctx->priv;
ctx                86 libavfilter/vf_transpose.c     AVFilterLink *inlink = ctx->inputs[0];
ctx                91 libavfilter/vf_transpose.c         av_log(ctx, AV_LOG_WARNING,
ctx                99 libavfilter/vf_transpose.c         av_log(ctx, AV_LOG_VERBOSE,
ctx               121 libavfilter/vf_transpose.c     av_log(ctx, AV_LOG_VERBOSE,
ctx               142 libavfilter/vf_transpose.c static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr,
ctx               145 libavfilter/vf_transpose.c     TransContext *trans = ctx->priv;
ctx               229 libavfilter/vf_transpose.c     AVFilterContext *ctx = inlink->dst;
ctx               230 libavfilter/vf_transpose.c     TransContext *trans = ctx->priv;
ctx               231 libavfilter/vf_transpose.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               253 libavfilter/vf_transpose.c     ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(outlink->h, ctx->graph->nb_threads));
ctx               105 libavfilter/vf_unsharp.c static int apply_unsharp_c(AVFilterContext *ctx, AVFrame *in, AVFrame *out)
ctx               107 libavfilter/vf_unsharp.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               108 libavfilter/vf_unsharp.c     UnsharpContext *unsharp = ctx->priv;
ctx               135 libavfilter/vf_unsharp.c static av_cold int init(AVFilterContext *ctx)
ctx               138 libavfilter/vf_unsharp.c     UnsharpContext *unsharp = ctx->priv;
ctx               146 libavfilter/vf_unsharp.c         av_log(ctx, AV_LOG_ERROR, "OpenCL support was not enabled in this build, cannot be selected\n");
ctx               151 libavfilter/vf_unsharp.c         ret = ff_opencl_unsharp_init(ctx);
ctx               158 libavfilter/vf_unsharp.c static int query_formats(AVFilterContext *ctx)
ctx               166 libavfilter/vf_unsharp.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               171 libavfilter/vf_unsharp.c static int init_filter_param(AVFilterContext *ctx, UnsharpFilterParam *fp, const char *effect_type, int width)
ctx               177 libavfilter/vf_unsharp.c         av_log(ctx, AV_LOG_ERROR,
ctx               183 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               221 libavfilter/vf_unsharp.c static av_cold void uninit(AVFilterContext *ctx)
ctx               223 libavfilter/vf_unsharp.c     UnsharpContext *unsharp = ctx->priv;
ctx               226 libavfilter/vf_unsharp.c         ff_opencl_unsharp_uninit(ctx);
ctx               285 libavfilter/vf_uspp.c static int query_formats(AVFilterContext *ctx)
ctx               296 libavfilter/vf_uspp.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               303 libavfilter/vf_uspp.c     AVFilterContext *ctx = inlink->dst;
ctx               304 libavfilter/vf_uspp.c     USPPContext *uspp = ctx->priv;
ctx               312 libavfilter/vf_uspp.c         av_log(ctx, AV_LOG_ERROR, "SNOW encoder not found.\n");
ctx               373 libavfilter/vf_uspp.c     AVFilterContext *ctx = inlink->dst;
ctx               374 libavfilter/vf_uspp.c     USPPContext *uspp = ctx->priv;
ctx               375 libavfilter/vf_uspp.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               415 libavfilter/vf_uspp.c     if (uspp->log2_count && !ctx->is_disabled) {
ctx               452 libavfilter/vf_uspp.c static av_cold void uninit(AVFilterContext *ctx)
ctx               454 libavfilter/vf_uspp.c     USPPContext *uspp = ctx->priv;
ctx                63 libavfilter/vf_vidstabdetect.c static av_cold int init(AVFilterContext *ctx)
ctx                65 libavfilter/vf_vidstabdetect.c     StabData *sd = 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 *sd = ctx->priv;
ctx                85 libavfilter/vf_vidstabdetect.c static int query_formats(AVFilterContext *ctx)
ctx                96 libavfilter/vf_vidstabdetect.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               102 libavfilter/vf_vidstabdetect.c     AVFilterContext *ctx = inlink->dst;
ctx               103 libavfilter/vf_vidstabdetect.c     StabData *sd = ctx->priv;
ctx               110 libavfilter/vf_vidstabdetect.c                     ff_av2vs_pixfmt(ctx, inlink->format));
ctx               112 libavfilter/vf_vidstabdetect.c         av_log(ctx, AV_LOG_ERROR, "pixel-format error: wrong bits/per/pixel, please report a BUG");
ctx               116 libavfilter/vf_vidstabdetect.c         av_log(ctx, AV_LOG_ERROR, "pixel-format error: log2_chroma_w, please report a BUG");
ctx               121 libavfilter/vf_vidstabdetect.c         av_log(ctx, AV_LOG_ERROR, "pixel-format error: log2_chroma_h, please report a BUG");
ctx               129 libavfilter/vf_vidstabdetect.c         av_log(ctx, AV_LOG_ERROR, "initialization of Motion Detection failed, please report a BUG");
ctx               134 libavfilter/vf_vidstabdetect.c     av_log(ctx, AV_LOG_INFO, "Video stabilization settings (pass 1/2):\n");
ctx               135 libavfilter/vf_vidstabdetect.c     av_log(ctx, AV_LOG_INFO, "     shakiness = %d\n", sd->conf.shakiness);
ctx               136 libavfilter/vf_vidstabdetect.c     av_log(ctx, AV_LOG_INFO, "      accuracy = %d\n", sd->conf.accuracy);
ctx               137 libavfilter/vf_vidstabdetect.c     av_log(ctx, AV_LOG_INFO, "      stepsize = %d\n", sd->conf.stepSize);
ctx               138 libavfilter/vf_vidstabdetect.c     av_log(ctx, AV_LOG_INFO, "   mincontrast = %f\n", sd->conf.contrastThreshold);
ctx               139 libavfilter/vf_vidstabdetect.c     av_log(ctx, AV_LOG_INFO, "        tripod = %d\n", sd->conf.virtualTripod);
ctx               140 libavfilter/vf_vidstabdetect.c     av_log(ctx, AV_LOG_INFO, "          show = %d\n", sd->conf.show);
ctx               141 libavfilter/vf_vidstabdetect.c     av_log(ctx, AV_LOG_INFO, "        result = %s\n", sd->result);
ctx               145 libavfilter/vf_vidstabdetect.c         av_log(ctx, AV_LOG_ERROR, "cannot open transform file %s\n", sd->result);
ctx               149 libavfilter/vf_vidstabdetect.c             av_log(ctx, AV_LOG_ERROR, "cannot write to transform file %s\n", sd->result);
ctx               158 libavfilter/vf_vidstabdetect.c     AVFilterContext *ctx = inlink->dst;
ctx               159 libavfilter/vf_vidstabdetect.c     StabData *sd = ctx->priv;
ctx               175 libavfilter/vf_vidstabdetect.c         av_log(ctx, AV_LOG_ERROR, "motion detection failed");
ctx               180 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               135 libavfilter/vf_vidstabtransform.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               142 libavfilter/vf_vidstabtransform.c     AVFilterContext *ctx = inlink->dst;
ctx               143 libavfilter/vf_vidstabtransform.c     TransformContext *tc = ctx->priv;
ctx               154 libavfilter/vf_vidstabtransform.c                          ff_av2vs_pixfmt(ctx, inlink->format)) ||
ctx               156 libavfilter/vf_vidstabtransform.c                          ff_av2vs_pixfmt(ctx, inlink->format))) {
ctx               157 libavfilter/vf_vidstabtransform.c         av_log(ctx, AV_LOG_ERROR, "unknown pixel format: %i (%s)",
ctx               165 libavfilter/vf_vidstabtransform.c         av_log(ctx, AV_LOG_ERROR, "pixel-format error: bpp %i<>%i  ",
ctx               167 libavfilter/vf_vidstabtransform.c         av_log(ctx, AV_LOG_ERROR, "chroma_subsampl: w: %i<>%i  h: %i<>%i\n",
ctx               177 libavfilter/vf_vidstabtransform.c         av_log(ctx, AV_LOG_INFO, "Virtual tripod mode: relative=0, smoothing=0\n");
ctx               186 libavfilter/vf_vidstabtransform.c         av_log(ctx, AV_LOG_ERROR, "initialization of vid.stab transform failed, please report a BUG\n");
ctx               191 libavfilter/vf_vidstabtransform.c     av_log(ctx, AV_LOG_INFO, "Video transformation/stabilization settings (pass 2/2):\n");
ctx               192 libavfilter/vf_vidstabtransform.c     av_log(ctx, AV_LOG_INFO, "    input     = %s\n", tc->input);
ctx               193 libavfilter/vf_vidstabtransform.c     av_log(ctx, AV_LOG_INFO, "    smoothing = %d\n", tc->conf.smoothing);
ctx               194 libavfilter/vf_vidstabtransform.c     av_log(ctx, AV_LOG_INFO, "    optalgo   = %s\n",
ctx               197 libavfilter/vf_vidstabtransform.c     av_log(ctx, AV_LOG_INFO, "    maxshift  = %d\n", tc->conf.maxShift);
ctx               198 libavfilter/vf_vidstabtransform.c     av_log(ctx, AV_LOG_INFO, "    maxangle  = %f\n", tc->conf.maxAngle);
ctx               199 libavfilter/vf_vidstabtransform.c     av_log(ctx, AV_LOG_INFO, "    crop      = %s\n", tc->conf.crop ? "Black" : "Keep");
ctx               200 libavfilter/vf_vidstabtransform.c     av_log(ctx, AV_LOG_INFO, "    relative  = %s\n", tc->conf.relative ? "True": "False");
ctx               201 libavfilter/vf_vidstabtransform.c     av_log(ctx, AV_LOG_INFO, "    invert    = %s\n", tc->conf.invert ? "True" : "False");
ctx               202 libavfilter/vf_vidstabtransform.c     av_log(ctx, AV_LOG_INFO, "    zoom      = %f\n", tc->conf.zoom);
ctx               203 libavfilter/vf_vidstabtransform.c     av_log(ctx, AV_LOG_INFO, "    optzoom   = %s\n",
ctx               206 libavfilter/vf_vidstabtransform.c         av_log(ctx, AV_LOG_INFO, "    zoomspeed = %g\n", tc->conf.zoomSpeed);
ctx               207 libavfilter/vf_vidstabtransform.c     av_log(ctx, AV_LOG_INFO, "    interpol  = %s\n", getInterpolationTypeName(tc->conf.interpolType));
ctx               212 libavfilter/vf_vidstabtransform.c         av_log(ctx, AV_LOG_ERROR, "cannot open input file %s\n", tc->input);
ctx               219 libavfilter/vf_vidstabtransform.c                 av_log(ctx, AV_LOG_ERROR, "calculating transformations failed\n");
ctx               224 libavfilter/vf_vidstabtransform.c                 av_log(ctx, AV_LOG_ERROR, "error parsing input file %s\n", tc->input);
ctx               232 libavfilter/vf_vidstabtransform.c         av_log(ctx, AV_LOG_ERROR, "error while preprocessing transforms\n");
ctx               243 libavfilter/vf_vidstabtransform.c     AVFilterContext *ctx = inlink->dst;
ctx               244 libavfilter/vf_vidstabtransform.c     TransformContext *tc = ctx->priv;
ctx                94 libavfilter/vf_vignette.c static av_cold int init(AVFilterContext *ctx)
ctx                96 libavfilter/vf_vignette.c     VignetteContext *s = ctx->priv;
ctx               100 libavfilter/vf_vignette.c                             NULL, NULL, NULL, NULL, 0, ctx);                \
ctx               102 libavfilter/vf_vignette.c         av_log(ctx, AV_LOG_ERROR, "Unable to parse expression for '"        \
ctx               114 libavfilter/vf_vignette.c static av_cold void uninit(AVFilterContext *ctx)
ctx               116 libavfilter/vf_vignette.c     VignetteContext *s = ctx->priv;
ctx               123 libavfilter/vf_vignette.c static int query_formats(AVFilterContext *ctx)
ctx               133 libavfilter/vf_vignette.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               201 libavfilter/vf_vignette.c     AVFilterContext *ctx = inlink->dst;
ctx               202 libavfilter/vf_vignette.c     VignetteContext *s = ctx->priv;
ctx               203 libavfilter/vf_vignette.c     AVFilterLink *outlink = ctx->outputs[0];
ctx                62 libavfilter/vf_w3fdif.c static int query_formats(AVFilterContext *ctx)
ctx                77 libavfilter/vf_w3fdif.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               130 libavfilter/vf_w3fdif.c static void deinterlace_plane(AVFilterContext *ctx, AVFrame *out,
ctx               134 libavfilter/vf_w3fdif.c     W3FDIFContext *s = ctx->priv;
ctx               252 libavfilter/vf_w3fdif.c static int filter(AVFilterContext *ctx, int is_second)
ctx               254 libavfilter/vf_w3fdif.c     W3FDIFContext *s = ctx->priv;
ctx               255 libavfilter/vf_w3fdif.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               281 libavfilter/vf_w3fdif.c         deinterlace_plane(ctx, out, s->cur, adj, s->filter, plane);
ctx               290 libavfilter/vf_w3fdif.c     AVFilterContext *ctx = inlink->dst;
ctx               291 libavfilter/vf_w3fdif.c     W3FDIFContext *s = ctx->priv;
ctx               305 libavfilter/vf_w3fdif.c     if ((s->deint && !s->cur->interlaced_frame) || ctx->is_disabled) {
ctx               313 libavfilter/vf_w3fdif.c         return ff_filter_frame(ctx->outputs[0], out);
ctx               319 libavfilter/vf_w3fdif.c     ret = filter(ctx, 0);
ctx               323 libavfilter/vf_w3fdif.c     return filter(ctx, 1);
ctx               328 libavfilter/vf_w3fdif.c     AVFilterContext *ctx = outlink->src;
ctx               329 libavfilter/vf_w3fdif.c     W3FDIFContext *s = ctx->priv;
ctx               337 libavfilter/vf_w3fdif.c         ret = ff_request_frame(ctx->inputs[0]);
ctx               344 libavfilter/vf_w3fdif.c             filter_frame(ctx->inputs[0], next);
ctx               354 libavfilter/vf_w3fdif.c static av_cold void uninit(AVFilterContext *ctx)
ctx               356 libavfilter/vf_w3fdif.c     W3FDIFContext *s = ctx->priv;
ctx                40 libavfilter/vf_xbr.c typedef int (*xbrfunc_t)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
ctx               317 libavfilter/vf_xbr.c static int xbr##size##x(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) \
ctx               330 libavfilter/vf_xbr.c     AVFilterContext *ctx = outlink->src;
ctx               331 libavfilter/vf_xbr.c     XBRContext *xbr = ctx->priv;
ctx               332 libavfilter/vf_xbr.c     AVFilterLink *inlink = ctx->inputs[0];
ctx               339 libavfilter/vf_xbr.c static int query_formats(AVFilterContext *ctx)
ctx               345 libavfilter/vf_xbr.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               351 libavfilter/vf_xbr.c     AVFilterContext *ctx = inlink->dst;
ctx               352 libavfilter/vf_xbr.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               353 libavfilter/vf_xbr.c     XBRContext *xbr = ctx->priv;
ctx               367 libavfilter/vf_xbr.c     ctx->internal->execute(ctx, xbr->func, &td, NULL, FFMIN(inlink->h, ctx->graph->nb_threads));
ctx               376 libavfilter/vf_xbr.c static int init(AVFilterContext *ctx)
ctx               378 libavfilter/vf_xbr.c     XBRContext *xbr = ctx->priv;
ctx               184 libavfilter/vf_yadif.c static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
ctx               186 libavfilter/vf_yadif.c     YADIFContext *s = ctx->priv;
ctx               222 libavfilter/vf_yadif.c static void filter(AVFilterContext *ctx, AVFrame *dstpic,
ctx               225 libavfilter/vf_yadif.c     YADIFContext *yadif = ctx->priv;
ctx               243 libavfilter/vf_yadif.c         ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(h, ctx->graph->nb_threads));
ctx               249 libavfilter/vf_yadif.c static int return_frame(AVFilterContext *ctx, int is_second)
ctx               251 libavfilter/vf_yadif.c     YADIFContext *yadif = ctx->priv;
ctx               252 libavfilter/vf_yadif.c     AVFilterLink *link  = ctx->outputs[0];
ctx               271 libavfilter/vf_yadif.c     filter(ctx, yadif->out, tff ^ !is_second, tff);
ctx               283 libavfilter/vf_yadif.c     ret = ff_filter_frame(ctx->outputs[0], yadif->out);
ctx               314 libavfilter/vf_yadif.c     AVFilterContext *ctx = link->dst;
ctx               315 libavfilter/vf_yadif.c     YADIFContext *yadif = ctx->priv;
ctx               320 libavfilter/vf_yadif.c         return_frame(ctx, 1);
ctx               333 libavfilter/vf_yadif.c         av_log(ctx, AV_LOG_VERBOSE, "Reallocating frame due to differing stride\n");
ctx               341 libavfilter/vf_yadif.c         av_log(ctx, AV_LOG_ERROR, "Failed to reallocate frame\n");
ctx               349 libavfilter/vf_yadif.c         ctx->is_disabled ||
ctx               360 libavfilter/vf_yadif.c         return ff_filter_frame(ctx->outputs[0], yadif->out);
ctx               363 libavfilter/vf_yadif.c     yadif->out = ff_get_video_buffer(ctx->outputs[0], link->w, link->h);
ctx               373 libavfilter/vf_yadif.c     return return_frame(ctx, 0);
ctx               378 libavfilter/vf_yadif.c     AVFilterContext *ctx = link->src;
ctx               379 libavfilter/vf_yadif.c     YADIFContext *yadif = ctx->priv;
ctx               382 libavfilter/vf_yadif.c         return_frame(ctx, 1);
ctx               412 libavfilter/vf_yadif.c static av_cold void uninit(AVFilterContext *ctx)
ctx               414 libavfilter/vf_yadif.c     YADIFContext *yadif = ctx->priv;
ctx               421 libavfilter/vf_yadif.c static int query_formats(AVFilterContext *ctx)
ctx               464 libavfilter/vf_yadif.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               471 libavfilter/vf_yadif.c     AVFilterContext *ctx = link->src;
ctx               483 libavfilter/vf_yadif.c         av_log(ctx, AV_LOG_ERROR, "Video of less than 3 columns or lines is not supported\n");
ctx               104 libavfilter/vf_zoompan.c static av_cold int init(AVFilterContext *ctx)
ctx               106 libavfilter/vf_zoompan.c     ZPContext *s = ctx->priv;
ctx               114 libavfilter/vf_zoompan.c     AVFilterContext *ctx = outlink->src;
ctx               115 libavfilter/vf_zoompan.c     ZPContext *s = ctx->priv;
ctx               125 libavfilter/vf_zoompan.c     AVFilterContext *ctx = inlink->dst;
ctx               126 libavfilter/vf_zoompan.c     AVFilterLink *outlink = ctx->outputs[0];
ctx               127 libavfilter/vf_zoompan.c     ZPContext *s = ctx->priv;
ctx               155 libavfilter/vf_zoompan.c                                       NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               171 libavfilter/vf_zoompan.c                                           NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               181 libavfilter/vf_zoompan.c                                           NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               189 libavfilter/vf_zoompan.c                                           NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0)
ctx               252 libavfilter/vf_zoompan.c static int query_formats(AVFilterContext *ctx)
ctx               268 libavfilter/vf_zoompan.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               272 libavfilter/vf_zoompan.c static av_cold void uninit(AVFilterContext *ctx)
ctx               274 libavfilter/vf_zoompan.c     ZPContext *s = ctx->priv;
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                86 libavfilter/vsrc_cellauto.c static void show_cellauto_row(AVFilterContext *ctx)
ctx                88 libavfilter/vsrc_cellauto.c     CellAutoContext *cellauto = ctx->priv;
ctx                98 libavfilter/vsrc_cellauto.c     av_log(ctx, AV_LOG_DEBUG, "generation:%"PRId64" row:%s|\n", cellauto->generation, line);
ctx               103 libavfilter/vsrc_cellauto.c static int init_pattern_from_string(AVFilterContext *ctx)
ctx               105 libavfilter/vsrc_cellauto.c     CellAutoContext *cellauto = ctx->priv;
ctx               110 libavfilter/vsrc_cellauto.c     av_log(ctx, AV_LOG_DEBUG, "w:%d\n", w);
ctx               114 libavfilter/vsrc_cellauto.c             av_log(ctx, AV_LOG_ERROR,
ctx               132 libavfilter/vsrc_cellauto.c         av_log(ctx, AV_LOG_DEBUG, "%d %c\n", i, *p == '\n' ? 'N' : *p);
ctx               142 libavfilter/vsrc_cellauto.c static int init_pattern_from_file(AVFilterContext *ctx)
ctx               144 libavfilter/vsrc_cellauto.c     CellAutoContext *cellauto = ctx->priv;
ctx               148 libavfilter/vsrc_cellauto.c                       &cellauto->file_buf, &cellauto->file_bufsize, 0, ctx);
ctx               159 libavfilter/vsrc_cellauto.c     return init_pattern_from_string(ctx);
ctx               162 libavfilter/vsrc_cellauto.c static av_cold int init(AVFilterContext *ctx)
ctx               164 libavfilter/vsrc_cellauto.c     CellAutoContext *cellauto = ctx->priv;
ctx               171 libavfilter/vsrc_cellauto.c         av_log(ctx, AV_LOG_ERROR, "Only one of the filename or pattern options can be used\n");
ctx               176 libavfilter/vsrc_cellauto.c         if ((ret = init_pattern_from_file(ctx)) < 0)
ctx               179 libavfilter/vsrc_cellauto.c         if ((ret = init_pattern_from_string(ctx)) < 0)
ctx               200 libavfilter/vsrc_cellauto.c     av_log(ctx, AV_LOG_VERBOSE,
ctx               208 libavfilter/vsrc_cellauto.c static av_cold void uninit(AVFilterContext *ctx)
ctx               210 libavfilter/vsrc_cellauto.c     CellAutoContext *cellauto = ctx->priv;
ctx               228 libavfilter/vsrc_cellauto.c static void evolve(AVFilterContext *ctx)
ctx               230 libavfilter/vsrc_cellauto.c     CellAutoContext *cellauto = ctx->priv;
ctx               252 libavfilter/vsrc_cellauto.c         av_dlog(ctx, "i:%d context:%c%c%c -> cell:%d\n", i,
ctx               259 libavfilter/vsrc_cellauto.c static void fill_picture(AVFilterContext *ctx, AVFrame *picref)
ctx               261 libavfilter/vsrc_cellauto.c     CellAutoContext *cellauto = ctx->priv;
ctx               310 libavfilter/vsrc_cellauto.c static int query_formats(AVFilterContext *ctx)
ctx               313 libavfilter/vsrc_cellauto.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               144 libavfilter/vsrc_life.c static void show_life_grid(AVFilterContext *ctx)
ctx               146 libavfilter/vsrc_life.c     LifeContext *life = ctx->priv;
ctx               156 libavfilter/vsrc_life.c         av_log(ctx, AV_LOG_DEBUG, "%3d: %s\n", i, line);
ctx               162 libavfilter/vsrc_life.c static int init_pattern_from_file(AVFilterContext *ctx)
ctx               164 libavfilter/vsrc_life.c     LifeContext *life = ctx->priv;
ctx               169 libavfilter/vsrc_life.c                            0, ctx)) < 0)
ctx               182 libavfilter/vsrc_life.c     av_log(ctx, AV_LOG_DEBUG, "h:%d max_w:%d\n", h, max_w);
ctx               186 libavfilter/vsrc_life.c             av_log(ctx, AV_LOG_ERROR,
ctx               208 libavfilter/vsrc_life.c             av_log(ctx, AV_LOG_DEBUG, "%d:%d %c\n", i, j, *p == '\n' ? 'N' : *p);
ctx               220 libavfilter/vsrc_life.c static av_cold int init(AVFilterContext *ctx)
ctx               222 libavfilter/vsrc_life.c     LifeContext *life = ctx->priv;
ctx               228 libavfilter/vsrc_life.c     if ((ret = parse_rule(&life->born_rule, &life->stay_rule, life->rule_str, ctx)) < 0)
ctx               232 libavfilter/vsrc_life.c         av_log(ctx, AV_LOG_WARNING,
ctx               257 libavfilter/vsrc_life.c         if ((ret = init_pattern_from_file(ctx)) < 0)
ctx               261 libavfilter/vsrc_life.c     av_log(ctx, AV_LOG_VERBOSE,
ctx               269 libavfilter/vsrc_life.c static av_cold void uninit(AVFilterContext *ctx)
ctx               271 libavfilter/vsrc_life.c     LifeContext *life = ctx->priv;
ctx               290 libavfilter/vsrc_life.c static void evolve(AVFilterContext *ctx)
ctx               292 libavfilter/vsrc_life.c     LifeContext *life = ctx->priv;
ctx               337 libavfilter/vsrc_life.c             av_dlog(ctx, "i:%d j:%d live_neighbors:%d cell:%d -> cell:%d\n", i, j, n, cell, *newbuf);
ctx               345 libavfilter/vsrc_life.c static void fill_picture_monoblack(AVFilterContext *ctx, AVFrame *picref)
ctx               347 libavfilter/vsrc_life.c     LifeContext *life = ctx->priv;
ctx               370 libavfilter/vsrc_life.c static void fill_picture_rgb(AVFilterContext *ctx, AVFrame *picref)
ctx               372 libavfilter/vsrc_life.c     LifeContext *life = ctx->priv;
ctx               414 libavfilter/vsrc_life.c static int query_formats(AVFilterContext *ctx)
ctx               416 libavfilter/vsrc_life.c     LifeContext *life = ctx->priv;
ctx               426 libavfilter/vsrc_life.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               122 libavfilter/vsrc_mandelbrot.c static av_cold int init(AVFilterContext *ctx)
ctx               124 libavfilter/vsrc_mandelbrot.c     MBContext *mb = ctx->priv;
ctx               140 libavfilter/vsrc_mandelbrot.c static av_cold void uninit(AVFilterContext *ctx)
ctx               142 libavfilter/vsrc_mandelbrot.c     MBContext *mb = ctx->priv;
ctx               149 libavfilter/vsrc_mandelbrot.c static int query_formats(AVFilterContext *ctx)
ctx               156 libavfilter/vsrc_mandelbrot.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               162 libavfilter/vsrc_mandelbrot.c     AVFilterContext *ctx = inlink->src;
ctx               163 libavfilter/vsrc_mandelbrot.c     MBContext *mb = ctx->priv;
ctx               165 libavfilter/vsrc_mandelbrot.c     if (av_image_check_size(mb->w, mb->h, 0, ctx) < 0)
ctx               175 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               176 libavfilter/vsrc_mandelbrot.c     MBContext *mb = ctx->priv;
ctx               247 libavfilter/vsrc_mandelbrot.c static void draw_mandelbrot(AVFilterContext *ctx, uint32_t *color, int linesize, int64_t pts)
ctx               249 libavfilter/vsrc_mandelbrot.c     MBContext *mb = ctx->priv;
ctx               253 libavfilter/vsrc_mandelbrot.c     fill_from_cache(ctx, NULL, &in_cidx, NULL, mb->start_y+scale*(-mb->h/2-0.5), scale);
ctx               259 libavfilter/vsrc_mandelbrot.c         fill_from_cache(ctx, NULL, &in_cidx, &next_cidx, ci, scale);
ctx               262 libavfilter/vsrc_mandelbrot.c             fill_from_cache(ctx, color+linesize*y1, &tmp_cidx, NULL, ci + 3*scale/2, scale);
ctx               388 libavfilter/vsrc_mandelbrot.c         fill_from_cache(ctx, NULL, &in_cidx, &next_cidx, ci + scale/2, scale);
ctx               393 libavfilter/vsrc_mandelbrot.c         av_log(ctx, AV_LOG_INFO, "Mandelbrot cache is too small!\n");
ctx               256 libavfilter/vsrc_mptestsrc.c static av_cold int init(AVFilterContext *ctx)
ctx               258 libavfilter/vsrc_mptestsrc.c     MPTestContext *test = ctx->priv;
ctx               264 libavfilter/vsrc_mptestsrc.c     av_log(ctx, AV_LOG_VERBOSE, "rate:%d/%d duration:%f\n",
ctx               274 libavfilter/vsrc_mptestsrc.c     AVFilterContext *ctx = outlink->src;
ctx               275 libavfilter/vsrc_mptestsrc.c     MPTestContext *test = ctx->priv;
ctx               288 libavfilter/vsrc_mptestsrc.c static int query_formats(AVFilterContext *ctx)
ctx               294 libavfilter/vsrc_mptestsrc.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx                62 libavfilter/vsrc_testsrc.c     void (* fill_picture_fn)(AVFilterContext *ctx, AVFrame *frame);
ctx               100 libavfilter/vsrc_testsrc.c static av_cold int init(AVFilterContext *ctx)
ctx               102 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx               108 libavfilter/vsrc_testsrc.c     av_log(ctx, AV_LOG_VERBOSE, "size:%dx%d rate:%d/%d duration:%f sar:%d/%d\n",
ctx               115 libavfilter/vsrc_testsrc.c static av_cold void uninit(AVFilterContext *ctx)
ctx               117 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx               187 libavfilter/vsrc_testsrc.c static void color_fill_picture(AVFilterContext *ctx, AVFrame *picref)
ctx               189 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx               195 libavfilter/vsrc_testsrc.c static av_cold int color_init(AVFilterContext *ctx)
ctx               197 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx               200 libavfilter/vsrc_testsrc.c     return init(ctx);
ctx               203 libavfilter/vsrc_testsrc.c static int color_query_formats(AVFilterContext *ctx)
ctx               205 libavfilter/vsrc_testsrc.c     ff_set_common_formats(ctx, ff_draw_supported_pixel_formats(0));
ctx               211 libavfilter/vsrc_testsrc.c     AVFilterContext *ctx = inlink->src;
ctx               212 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx               220 libavfilter/vsrc_testsrc.c     if (av_image_check_size(test->w, test->h, 0, ctx) < 0)
ctx               229 libavfilter/vsrc_testsrc.c static int color_process_command(AVFilterContext *ctx, const char *cmd, const char *args,
ctx               232 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx               238 libavfilter/vsrc_testsrc.c         ret = av_parse_color(color_rgba, args, -1, ctx);
ctx               286 libavfilter/vsrc_testsrc.c static void haldclutsrc_fill_picture(AVFilterContext *ctx, AVFrame *frame)
ctx               290 libavfilter/vsrc_testsrc.c     const TestSourceContext *hc = ctx->priv;
ctx               349 libavfilter/vsrc_testsrc.c static av_cold int haldclutsrc_init(AVFilterContext *ctx)
ctx               351 libavfilter/vsrc_testsrc.c     TestSourceContext *hc = ctx->priv;
ctx               354 libavfilter/vsrc_testsrc.c     return init(ctx);
ctx               357 libavfilter/vsrc_testsrc.c static int haldclutsrc_query_formats(AVFilterContext *ctx)
ctx               369 libavfilter/vsrc_testsrc.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               375 libavfilter/vsrc_testsrc.c     AVFilterContext *ctx = outlink->src;
ctx               376 libavfilter/vsrc_testsrc.c     TestSourceContext *hc = ctx->priv;
ctx               410 libavfilter/vsrc_testsrc.c static void nullsrc_fill_picture(AVFilterContext *ctx, AVFrame *picref) { }
ctx               412 libavfilter/vsrc_testsrc.c static av_cold int nullsrc_init(AVFilterContext *ctx)
ctx               414 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx               417 libavfilter/vsrc_testsrc.c     return init(ctx);
ctx               526 libavfilter/vsrc_testsrc.c static void test_fill_picture(AVFilterContext *ctx, AVFrame *frame)
ctx               528 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx               636 libavfilter/vsrc_testsrc.c static av_cold int test_init(AVFilterContext *ctx)
ctx               638 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx               641 libavfilter/vsrc_testsrc.c     return init(ctx);
ctx               644 libavfilter/vsrc_testsrc.c static int test_query_formats(AVFilterContext *ctx)
ctx               649 libavfilter/vsrc_testsrc.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               718 libavfilter/vsrc_testsrc.c static void rgbtest_fill_picture(AVFilterContext *ctx, AVFrame *frame)
ctx               720 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx               733 libavfilter/vsrc_testsrc.c                                ctx->outputs[0]->format, test->rgba_map);
ctx               738 libavfilter/vsrc_testsrc.c static av_cold int rgbtest_init(AVFilterContext *ctx)
ctx               740 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx               744 libavfilter/vsrc_testsrc.c     return init(ctx);
ctx               747 libavfilter/vsrc_testsrc.c static int rgbtest_query_formats(AVFilterContext *ctx)
ctx               757 libavfilter/vsrc_testsrc.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               878 libavfilter/vsrc_testsrc.c static int smptebars_query_formats(AVFilterContext *ctx)
ctx               886 libavfilter/vsrc_testsrc.c     ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
ctx               905 libavfilter/vsrc_testsrc.c static void smptebars_fill_picture(AVFilterContext *ctx, AVFrame *picref)
ctx               907 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx               944 libavfilter/vsrc_testsrc.c static av_cold int smptebars_init(AVFilterContext *ctx)
ctx               946 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx               950 libavfilter/vsrc_testsrc.c     return init(ctx);
ctx               972 libavfilter/vsrc_testsrc.c static void smptehdbars_fill_picture(AVFilterContext *ctx, AVFrame *picref)
ctx               974 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx              1049 libavfilter/vsrc_testsrc.c static av_cold int smptehdbars_init(AVFilterContext *ctx)
ctx              1051 libavfilter/vsrc_testsrc.c     TestSourceContext *test = ctx->priv;
ctx              1055 libavfilter/vsrc_testsrc.c     return init(ctx);
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]->codec->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]->codec->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               111 libavformat/adtsenc.c static int adts_write_frame_header(ADTSContext *ctx,
ctx               130 libavformat/adtsenc.c     put_bits(&pb, 2, ctx->objecttype); /* profile_objecttype */
ctx               131 libavformat/adtsenc.c     put_bits(&pb, 4, ctx->sample_rate_index);
ctx               133 libavformat/adtsenc.c     put_bits(&pb, 3, ctx->channel_conf); /* channel_configuration */
ctx               149 libavformat/apngdec.c     APNGDemuxContext *ctx = s->priv_data;
ctx               193 libavformat/apngdec.c         if (acTL_found && ctx->num_play != 1) {
ctx               204 libavformat/apngdec.c                 ctx->num_play = 1;
ctx               207 libavformat/apngdec.c         if ((ctx->num_play == 1 || !acTL_found) &&
ctx               224 libavformat/apngdec.c             ctx->num_frames = AV_RB32(st->codec->extradata + ret + 8);
ctx               225 libavformat/apngdec.c             ctx->num_play   = AV_RB32(st->codec->extradata + ret + 12);
ctx               227 libavformat/apngdec.c                                     ctx->num_frames, ctx->num_play);
ctx               252 libavformat/apngdec.c static int decode_fctl_chunk(AVFormatContext *s, APNGDemuxContext *ctx, AVPacket *pkt)
ctx               272 libavformat/apngdec.c     if (!delay_num || delay_den / delay_num > ctx->max_fps) {
ctx               274 libavformat/apngdec.c         delay_den = ctx->default_fps;
ctx               276 libavformat/apngdec.c     ctx->pkt_duration = av_rescale_q(delay_num,
ctx               311 libavformat/apngdec.c         ctx->is_key_frame = 0;
ctx               315 libavformat/apngdec.c         ctx->is_key_frame = dispose_op == APNG_DISPOSE_OP_BACKGROUND ||
ctx               324 libavformat/apngdec.c     APNGDemuxContext *ctx = s->priv_data;
ctx               341 libavformat/apngdec.c     if (ctx->num_play == 1 && (ret = ffio_ensure_seekback(pb, 46)) < 0)
ctx               351 libavformat/apngdec.c         if ((ret = decode_fctl_chunk(s, ctx, pkt)) < 0)
ctx               370 libavformat/apngdec.c         if (ctx->num_play == 1 && (ret = ffio_ensure_seekback(pb, 8)) < 0)
ctx               383 libavformat/apngdec.c             if (ctx->num_play == 1 && (ret = ffio_ensure_seekback(pb, 8)) < 0)
ctx               391 libavformat/apngdec.c         if (ctx->is_key_frame)
ctx               393 libavformat/apngdec.c         pkt->pts = ctx->pkt_pts;
ctx               394 libavformat/apngdec.c         pkt->duration = ctx->pkt_duration;
ctx               395 libavformat/apngdec.c         ctx->pkt_pts += ctx->pkt_duration;
ctx               398 libavformat/apngdec.c         ctx->cur_loop++;
ctx               399 libavformat/apngdec.c         if (ctx->ignore_loop || ctx->num_play >= 1 && ctx->cur_loop == ctx->num_play) {
ctx              1755 libavformat/avformat.h enum AVDurationEstimationMethod av_fmt_ctx_get_duration_estimation_method(const AVFormatContext* ctx);
ctx              1905 libavformat/avformat.h int avformat_alloc_output_context2(AVFormatContext **ctx, AVOutputFormat *oformat,
ctx              2650 libavformat/avformat.h AVRational av_guess_frame_rate(AVFormatContext *ctx, AVStream *stream, AVFrame *frame);
ctx                61 libavformat/dashenc.c     AVFormatContext *ctx;
ctx               180 libavformat/dashenc.c         if (os->ctx && os->ctx_inited)
ctx               181 libavformat/dashenc.c             av_write_trailer(os->ctx);
ctx               182 libavformat/dashenc.c         if (os->ctx && os->ctx->pb)
ctx               183 libavformat/dashenc.c             av_free(os->ctx->pb);
ctx               186 libavformat/dashenc.c         if (os->ctx)
ctx               187 libavformat/dashenc.c             avformat_free_context(os->ctx);
ctx               204 libavformat/dashenc.c         int timescale = c->use_timeline ? os->ctx->streams[0]->time_base.den : AV_TIME_BASE;
ctx               575 libavformat/dashenc.c         AVFormatContext *ctx;
ctx               596 libavformat/dashenc.c         ctx = avformat_alloc_context();
ctx               597 libavformat/dashenc.c         if (!ctx) {
ctx               601 libavformat/dashenc.c         os->ctx = ctx;
ctx               602 libavformat/dashenc.c         ctx->oformat = oformat;
ctx               603 libavformat/dashenc.c         ctx->interrupt_callback = s->interrupt_callback;
ctx               605 libavformat/dashenc.c         if (!(st = avformat_new_stream(ctx, NULL))) {
ctx               612 libavformat/dashenc.c         ctx->avoid_negative_ts = s->avoid_negative_ts;
ctx               614 libavformat/dashenc.c         ctx->pb = avio_alloc_context(os->iobuf, sizeof(os->iobuf), AVIO_FLAG_WRITE, os, NULL, dash_write, NULL);
ctx               615 libavformat/dashenc.c         if (!ctx->pb) {
ctx               635 libavformat/dashenc.c         if ((ret = avformat_write_header(ctx, &opts)) < 0) {
ctx               639 libavformat/dashenc.c         avio_flush(ctx->pb);
ctx               648 libavformat/dashenc.c         s->avoid_negative_ts = ctx->avoid_negative_ts;
ctx               744 libavformat/dashenc.c     if (os->ctx->streams[0]->codec->extradata_size || !codec->extradata_size)
ctx               754 libavformat/dashenc.c     os->ctx->streams[0]->codec->extradata = extradata;
ctx               755 libavformat/dashenc.c     os->ctx->streams[0]->codec->extradata_size = codec->extradata_size;
ctx               792 libavformat/dashenc.c             av_write_frame(os->ctx, NULL);
ctx               793 libavformat/dashenc.c             os->init_range_length = avio_tell(os->ctx->pb);
ctx               800 libavformat/dashenc.c         start_pos = avio_tell(os->ctx->pb);
ctx               809 libavformat/dashenc.c             write_styp(os->ctx->pb);
ctx               814 libavformat/dashenc.c         av_write_frame(os->ctx, NULL);
ctx               815 libavformat/dashenc.c         avio_flush(os->ctx->pb);
ctx               818 libavformat/dashenc.c         range_length = avio_tell(os->ctx->pb) - start_pos;
ctx               920 libavformat/dashenc.c     return ff_write_chained(os->ctx, 0, pkt, s, 0);
ctx               120 libavformat/dss.c     DSSDemuxContext *ctx = s->priv_data;
ctx               144 libavformat/dss.c     ctx->audio_codec = avio_r8(pb);
ctx               146 libavformat/dss.c     if (ctx->audio_codec == DSS_ACODEC_DSS_SP) {
ctx               149 libavformat/dss.c     } else if (ctx->audio_codec == DSS_ACODEC_G723_1) {
ctx               154 libavformat/dss.c                               ctx->audio_codec);
ctx               170 libavformat/dss.c     ctx->counter = 0;
ctx               171 libavformat/dss.c     ctx->swap    = 0;
ctx               173 libavformat/dss.c     ctx->dss_sp_buf = av_malloc(DSS_FRAME_SIZE + 1);
ctx               174 libavformat/dss.c     if (!ctx->dss_sp_buf)
ctx               182 libavformat/dss.c     DSSDemuxContext *ctx = s->priv_data;
ctx               186 libavformat/dss.c     ctx->counter += DSS_BLOCK_SIZE - DSS_AUDIO_BLOCK_HEADER_SIZE;
ctx               189 libavformat/dss.c static void dss_sp_byte_swap(DSSDemuxContext *ctx,
ctx               194 libavformat/dss.c     if (ctx->swap) {
ctx               201 libavformat/dss.c         dst[1] = ctx->dss_sp_swap_byte;
ctx               204 libavformat/dss.c         ctx->dss_sp_swap_byte = src[DSS_FRAME_SIZE - 2];
ctx               209 libavformat/dss.c     ctx->swap             ^= 1;
ctx               214 libavformat/dss.c     DSSDemuxContext *ctx = s->priv_data;
ctx               219 libavformat/dss.c     if (ctx->counter == 0)
ctx               222 libavformat/dss.c     if (ctx->swap) {
ctx               228 libavformat/dss.c     ctx->counter -= read_size;
ctx               229 libavformat/dss.c     ctx->packet_size = DSS_FRAME_SIZE - 1;
ctx               238 libavformat/dss.c     s->bit_rate = 8LL * ctx->packet_size * st->codec->sample_rate * 512 / (506 * pkt->duration);
ctx               240 libavformat/dss.c     if (ctx->counter < 0) {
ctx               241 libavformat/dss.c         int size2 = ctx->counter + read_size;
ctx               243 libavformat/dss.c         ret = avio_read(s->pb, ctx->dss_sp_buf + offset + buff_offset,
ctx               252 libavformat/dss.c     ret = avio_read(s->pb, ctx->dss_sp_buf + offset + buff_offset,
ctx               257 libavformat/dss.c     dss_sp_byte_swap(ctx, pkt->data, ctx->dss_sp_buf);
ctx               259 libavformat/dss.c     if (ctx->dss_sp_swap_byte < 0) {
ctx               276 libavformat/dss.c     DSSDemuxContext *ctx = s->priv_data;
ctx               281 libavformat/dss.c     if (ctx->counter == 0)
ctx               291 libavformat/dss.c     ctx->packet_size = size;
ctx               292 libavformat/dss.c     ctx->counter -= size;
ctx               306 libavformat/dss.c     if (ctx->counter < 0) {
ctx               307 libavformat/dss.c         int size2 = ctx->counter + size;
ctx               331 libavformat/dss.c     DSSDemuxContext *ctx = s->priv_data;
ctx               333 libavformat/dss.c     if (ctx->audio_codec == DSS_ACODEC_DSS_SP)
ctx               341 libavformat/dss.c     DSSDemuxContext *ctx = s->priv_data;
ctx               343 libavformat/dss.c     av_freep(&ctx->dss_sp_buf);
ctx               351 libavformat/dss.c     DSSDemuxContext *ctx = s->priv_data;
ctx               356 libavformat/dss.c     if (ctx->audio_codec == DSS_ACODEC_DSS_SP)
ctx               359 libavformat/dss.c         seekto = timestamp / 240 * ctx->packet_size / 506 * 512;
ctx               371 libavformat/dss.c     ctx->swap = !!(header[0] & 0x80);
ctx               372 libavformat/dss.c     offset = 2*header[1] + 2*ctx->swap;
ctx               376 libavformat/dss.c         ctx->counter = 0;
ctx               379 libavformat/dss.c         ctx->counter = DSS_BLOCK_SIZE - offset;
ctx               382 libavformat/dss.c     ctx->dss_sp_swap_byte = -1;
ctx               129 libavformat/dump.c static void dump_metadata(void *ctx, AVDictionary *m, const char *indent)
ctx               134 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "%sMetadata:\n", indent);
ctx               138 libavformat/dump.c                 av_log(ctx, AV_LOG_INFO,
ctx               144 libavformat/dump.c                     av_log(ctx, AV_LOG_INFO, "%s", tmp);
ctx               146 libavformat/dump.c                     if (*p == 0xd) av_log(ctx, AV_LOG_INFO, " ");
ctx               147 libavformat/dump.c                     if (*p == 0xa) av_log(ctx, AV_LOG_INFO, "\n%s  %-16s: ", indent, "");
ctx               150 libavformat/dump.c                 av_log(ctx, AV_LOG_INFO, "\n");
ctx               156 libavformat/dump.c static void dump_paramchange(void *ctx, AVPacketSideData *sd)
ctx               176 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "channel count %"PRIu32", ", channels);
ctx               184 libavformat/dump.c         av_log(ctx, AV_LOG_INFO,
ctx               193 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "sample_rate %"PRIu32", ", sample_rate);
ctx               204 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "width %"PRIu32" height %"PRIu32, width, height);
ctx               209 libavformat/dump.c     av_log(ctx, AV_LOG_INFO, "unknown param");
ctx               213 libavformat/dump.c static void print_gain(void *ctx, const char *str, int32_t gain)
ctx               215 libavformat/dump.c     av_log(ctx, AV_LOG_INFO, "%s - ", str);
ctx               217 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "unknown");
ctx               219 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "%f", gain / 100000.0f);
ctx               220 libavformat/dump.c     av_log(ctx, AV_LOG_INFO, ", ");
ctx               223 libavformat/dump.c static void print_peak(void *ctx, const char *str, uint32_t peak)
ctx               225 libavformat/dump.c     av_log(ctx, AV_LOG_INFO, "%s - ", str);
ctx               227 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "unknown");
ctx               229 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "%f", (float) peak / UINT32_MAX);
ctx               230 libavformat/dump.c     av_log(ctx, AV_LOG_INFO, ", ");
ctx               233 libavformat/dump.c static void dump_replaygain(void *ctx, AVPacketSideData *sd)
ctx               238 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "invalid data");
ctx               243 libavformat/dump.c     print_gain(ctx, "track gain", rg->track_gain);
ctx               244 libavformat/dump.c     print_peak(ctx, "track peak", rg->track_peak);
ctx               245 libavformat/dump.c     print_gain(ctx, "album gain", rg->album_gain);
ctx               246 libavformat/dump.c     print_peak(ctx, "album peak", rg->album_peak);
ctx               249 libavformat/dump.c static void dump_stereo3d(void *ctx, AVPacketSideData *sd)
ctx               254 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "invalid data");
ctx               262 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "2D");
ctx               265 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "side by side");
ctx               268 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "top and bottom");
ctx               271 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "frame alternate");
ctx               274 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "checkerboard");
ctx               277 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "interleaved lines");
ctx               280 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "interleaved columns");
ctx               283 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "side by side (quincunx subsampling)");
ctx               286 libavformat/dump.c         av_log(ctx, AV_LOG_WARNING, "unknown");
ctx               291 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, " (inverted)");
ctx               294 libavformat/dump.c static void dump_sidedata(void *ctx, AVStream *st, const char *indent)
ctx               299 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "%sSide data:\n", indent);
ctx               303 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "%s  ", indent);
ctx               307 libavformat/dump.c             av_log(ctx, AV_LOG_INFO, "palette");
ctx               310 libavformat/dump.c             av_log(ctx, AV_LOG_INFO, "new extradata");
ctx               313 libavformat/dump.c             av_log(ctx, AV_LOG_INFO, "paramchange: ");
ctx               314 libavformat/dump.c             dump_paramchange(ctx, &sd);
ctx               317 libavformat/dump.c             av_log(ctx, AV_LOG_INFO, "h263 macroblock info");
ctx               320 libavformat/dump.c             av_log(ctx, AV_LOG_INFO, "replaygain: ");
ctx               321 libavformat/dump.c             dump_replaygain(ctx, &sd);
ctx               324 libavformat/dump.c             av_log(ctx, AV_LOG_INFO, "displaymatrix: rotation of %.2f degrees",
ctx               328 libavformat/dump.c             av_log(ctx, AV_LOG_INFO, "stereo3d: ");
ctx               329 libavformat/dump.c             dump_stereo3d(ctx, &sd);
ctx               332 libavformat/dump.c             av_log(ctx, AV_LOG_WARNING,
ctx               337 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "\n");
ctx                98 libavformat/ffmenc.c static int ffm_write_header_codec_private_ctx(AVFormatContext *s, AVCodecContext *ctx, int type)
ctx               104 libavformat/ffmenc.c     const AVCodec *enc = ctx->codec ? ctx->codec : avcodec_find_encoder(ctx->codec_id);
ctx               110 libavformat/ffmenc.c     if (ctx->priv_data && enc->priv_class && enc->priv_data_size) {
ctx               111 libavformat/ffmenc.c         if ((ret = av_opt_serialize(ctx->priv_data, AV_OPT_FLAG_ENCODING_PARAM | type,
ctx               127 libavformat/ffmenc.c static int ffm_write_header_codec_ctx(AVIOContext *pb, AVCodecContext *ctx, unsigned tag, int type)
ctx               139 libavformat/ffmenc.c     if ((ret = av_opt_serialize(ctx, ENC | type, SKIP_DEFAULTS, &buf, '=', ',')) < 0)
ctx               146 libavformat/ffmenc.c     if ((ret = av_opt_serialize(ctx, 0, SKIP_DEFAULTS | OPT_FLAGS_EXACT, &buf, '=', ',')) < 0)
ctx               167 libavformat/ffmenc.c static int ffm_write_recommended_config(AVIOContext *pb, AVCodecContext *ctx, unsigned tag,
ctx               171 libavformat/ffmenc.c     const AVCodec *enc = ctx->codec ? ctx->codec : avcodec_find_encoder(ctx->codec_id);
ctx               945 libavformat/flvdec.c             AVCodecContext ctx = {0};
ctx               946 libavformat/flvdec.c             ctx.sample_rate = sample_rate;
ctx               947 libavformat/flvdec.c             ctx.bits_per_coded_sample = bits_per_coded_sample;
ctx               948 libavformat/flvdec.c             flv_set_audio_codec(s, st, &ctx, flags & FLV_AUDIO_CODECID_MASK);
ctx               949 libavformat/flvdec.c             sample_rate = ctx.sample_rate;
ctx                47 libavformat/hdsenc.c     AVFormatContext *ctx;
ctx               143 libavformat/hdsenc.c         if (os->ctx && os->ctx_inited)
ctx               144 libavformat/hdsenc.c             av_write_trailer(os->ctx);
ctx               145 libavformat/hdsenc.c         if (os->ctx)
ctx               146 libavformat/hdsenc.c             av_freep(&os->ctx->pb);
ctx               147 libavformat/hdsenc.c         if (os->ctx)
ctx               148 libavformat/hdsenc.c             avformat_free_context(os->ctx);
ctx               341 libavformat/hdsenc.c         AVFormatContext *ctx;
ctx               368 libavformat/hdsenc.c         if (!os->ctx) {
ctx               370 libavformat/hdsenc.c             ctx = avformat_alloc_context();
ctx               371 libavformat/hdsenc.c             if (!ctx) {
ctx               375 libavformat/hdsenc.c             os->ctx = ctx;
ctx               376 libavformat/hdsenc.c             ctx->oformat = oformat;
ctx               377 libavformat/hdsenc.c             ctx->interrupt_callback = s->interrupt_callback;
ctx               379 libavformat/hdsenc.c             ctx->pb = avio_alloc_context(os->iobuf, sizeof(os->iobuf),
ctx               382 libavformat/hdsenc.c             if (!ctx->pb) {
ctx               387 libavformat/hdsenc.c             ctx = os->ctx;
ctx               391 libavformat/hdsenc.c         if (!(st = avformat_new_stream(ctx, NULL))) {
ctx               400 libavformat/hdsenc.c     if (c->streams[c->nb_streams].ctx)
ctx               406 libavformat/hdsenc.c         if ((ret = avformat_write_header(os->ctx, NULL)) < 0) {
ctx               410 libavformat/hdsenc.c         avio_flush(os->ctx->pb);
ctx               411 libavformat/hdsenc.c         for (j = 0; j < os->ctx->nb_streams; j++)
ctx               412 libavformat/hdsenc.c             s->streams[os->first_stream + j]->time_base = os->ctx->streams[j]->time_base;
ctx               475 libavformat/hdsenc.c     avio_flush(os->ctx->pb);
ctx               539 libavformat/hdsenc.c     return ff_write_chained(os->ctx, pkt->stream_index - os->first_stream, pkt, s, 0);
ctx                98 libavformat/hls.c     AVFormatContext *ctx;
ctx               219 libavformat/hls.c         if (pls->ctx) {
ctx               220 libavformat/hls.c             pls->ctx->pb = NULL;
ctx               221 libavformat/hls.c             avformat_close_input(&pls->ctx);
ctx               748 libavformat/hls.c     if (apic && (pls->ctx->nb_streams != 2 || !pls->ctx->streams[1]->attached_pic.data))
ctx               752 libavformat/hls.c         int size = pls->ctx->streams[1]->attached_pic.size;
ctx               756 libavformat/hls.c         if (memcmp(apic->buf->data, pls->ctx->streams[1]->attached_pic.data, size) != 0)
ctx               771 libavformat/hls.c     parse_id3(pls->ctx, pb, &metadata, &timestamp, &apic, &extra_meta);
ctx               784 libavformat/hls.c         if (pls->ctx->nb_streams)
ctx               785 libavformat/hls.c             ff_id3v2_parse_apic(pls->ctx, &extra_meta);
ctx               790 libavformat/hls.c         av_dict_copy(&pls->ctx->metadata, metadata, 0);
ctx               795 libavformat/hls.c             avpriv_report_missing_feature(pls->ctx, "Changing ID3 metadata in HLS audio elementary stream");
ctx               847 libavformat/hls.c                 av_log(pls->ctx, AV_LOG_ERROR, "Too large HLS ID3 tag (%d > %"PRId64" bytes)\n",
ctx               868 libavformat/hls.c             av_log(pls->ctx, AV_LOG_DEBUG, "Stripped %d HLS ID3 bytes\n", tag_got_bytes);
ctx               875 libavformat/hls.c                 av_log(pls->ctx, AV_LOG_DEBUG, "Stripped additional %d HLS ID3 bytes\n", remaining);
ctx              1034 libavformat/hls.c         if (v->ctx && v->ctx->nb_streams &&
ctx              1035 libavformat/hls.c             v->parent->nb_streams >= v->stream_offset + v->ctx->nb_streams) {
ctx              1037 libavformat/hls.c             for (i = v->stream_offset; i < v->stream_offset + v->ctx->nb_streams;
ctx              1161 libavformat/hls.c     for (i = 0; i < pls->ctx->nb_streams; i++) {
ctx              1324 libavformat/hls.c         if (!(pls->ctx = avformat_alloc_context())) {
ctx              1349 libavformat/hls.c             avformat_free_context(pls->ctx);
ctx              1350 libavformat/hls.c             pls->ctx = NULL;
ctx              1353 libavformat/hls.c         pls->ctx->pb       = &pls->pb;
ctx              1356 libavformat/hls.c         if ((ret = ff_copy_whitelists(pls->ctx, s)) < 0)
ctx              1359 libavformat/hls.c         ret = avformat_open_input(&pls->ctx, pls->segments[0]->url, in_fmt, NULL);
ctx              1363 libavformat/hls.c         if (pls->id3_deferred_extra && pls->ctx->nb_streams == 1) {
ctx              1364 libavformat/hls.c             ff_id3v2_parse_apic(pls->ctx, &pls->id3_deferred_extra);
ctx              1365 libavformat/hls.c             avformat_queue_attached_pictures(pls->ctx);
ctx              1370 libavformat/hls.c         pls->ctx->ctx_flags &= ~AVFMTCTX_NOHEADER;
ctx              1371 libavformat/hls.c         ret = avformat_find_stream_info(pls->ctx, NULL);
ctx              1379 libavformat/hls.c         for (j = 0; j < pls->ctx->nb_streams; j++) {
ctx              1381 libavformat/hls.c             AVStream *ist = pls->ctx->streams[j];
ctx              1388 libavformat/hls.c             avcodec_copy_context(st->codec, pls->ctx->streams[j]->codec);
ctx              1400 libavformat/hls.c         stream_offset += pls->ctx->nb_streams;
ctx              1418 libavformat/hls.c             for (k = 0; k < pls->ctx->nb_streams; k++) {
ctx              1484 libavformat/hls.c                                               pls->ctx->streams[pls->pkt.stream_index]->time_base,
ctx              1498 libavformat/hls.c                                          pls->ctx->streams[pls->pkt.stream_index]->time_base,
ctx              1509 libavformat/hls.c     return pls->ctx->streams[pls->pkt.stream_index]->time_base;
ctx              1536 libavformat/hls.c                 ret = av_read_frame(pls->ctx, &pls->pkt);
ctx              1606 libavformat/hls.c                                             pls->ctx->streams[pls->pkt.stream_index]->time_base,
ctx              1654 libavformat/hls.c             stream_index - pls->stream_offset < pls->ctx->nb_streams) {
ctx              1683 libavformat/hls.c         ff_read_frame_flush(pls->ctx);
ctx                25 libavformat/ivfenc.c     AVCodecContext *ctx;
ctx                32 libavformat/ivfenc.c     ctx = s->streams[0]->codec;
ctx                33 libavformat/ivfenc.c     if (ctx->codec_type != AVMEDIA_TYPE_VIDEO ||
ctx                34 libavformat/ivfenc.c         !(ctx->codec_id == AV_CODEC_ID_VP8 || ctx->codec_id == AV_CODEC_ID_VP9)) {
ctx                41 libavformat/ivfenc.c     avio_wl32(pb, ctx->codec_tag ? ctx->codec_tag : AV_RL32("VP80"));
ctx                42 libavformat/ivfenc.c     avio_wl16(pb, ctx->width);
ctx                43 libavformat/ivfenc.c     avio_wl16(pb, ctx->height);
ctx                55 libavformat/latmenc.c static int latm_decode_extradata(LATMContext *ctx, uint8_t *buf, int size)
ctx                60 libavformat/latmenc.c         av_log(ctx, AV_LOG_ERROR, "Extradata is larger than currently supported.\n");
ctx                63 libavformat/latmenc.c     ctx->off = avpriv_mpeg4audio_get_config(&m4ac, buf, size * 8, 1);
ctx                64 libavformat/latmenc.c     if (ctx->off < 0)
ctx                65 libavformat/latmenc.c         return ctx->off;
ctx                67 libavformat/latmenc.c     if (ctx->object_type == AOT_ALS && (ctx->off & 7)) {
ctx                69 libavformat/latmenc.c         av_log(ctx, AV_LOG_ERROR, "BUG: ALS offset is not byte-aligned\n");
ctx                75 libavformat/latmenc.c         av_log(ctx, AV_LOG_ERROR, "Muxing MPEG-4 AOT %d in LATM is not supported\n", m4ac.object_type);
ctx                78 libavformat/latmenc.c     ctx->channel_conf = m4ac.chan_config;
ctx                79 libavformat/latmenc.c     ctx->object_type  = m4ac.object_type;
ctx                86 libavformat/latmenc.c     LATMContext *ctx = s->priv_data;
ctx                93 libavformat/latmenc.c         latm_decode_extradata(ctx, avctx->extradata, avctx->extradata_size) < 0)
ctx               101 libavformat/latmenc.c     LATMContext *ctx = s->priv_data;
ctx               106 libavformat/latmenc.c     put_bits(bs, 1, !!ctx->counter);
ctx               108 libavformat/latmenc.c     if (!ctx->counter) {
ctx               117 libavformat/latmenc.c         if (ctx->object_type == AOT_ALS) {
ctx               118 libavformat/latmenc.c             header_size = avctx->extradata_size-(ctx->off >> 3);
ctx               119 libavformat/latmenc.c             avpriv_copy_bits(bs, &avctx->extradata[ctx->off >> 3], header_size);
ctx               123 libavformat/latmenc.c             avpriv_copy_bits(bs, avctx->extradata, ctx->off + 3);
ctx               125 libavformat/latmenc.c             if (!ctx->channel_conf) {
ctx               128 libavformat/latmenc.c                 skip_bits_long(&gb, ctx->off + 3);
ctx               140 libavformat/latmenc.c     ctx->counter++;
ctx               141 libavformat/latmenc.c     ctx->counter %= ctx->mod;
ctx               146 libavformat/latmenc.c     LATMContext *ctx = s->priv_data;
ctx               171 libavformat/latmenc.c     init_put_bits(&bs, ctx->buffer, pkt->size+1024+MAX_EXTRADATA_SIZE);
ctx               210 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               198 libavformat/librtmp.c     if (ctx->playpath) {
ctx               200 libavformat/librtmp.c         av_strlcat(filename, ctx->playpath, len);
ctx               202 libavformat/librtmp.c     if (ctx->live)
ctx               204 libavformat/librtmp.c     if (ctx->subscribe) {
ctx               206 libavformat/librtmp.c         av_strlcat(filename, ctx->subscribe, len);
ctx               208 libavformat/librtmp.c     if (ctx->client_buffer_time) {
ctx               210 libavformat/librtmp.c         av_strlcat(filename, ctx->client_buffer_time, len);
ctx               212 libavformat/librtmp.c     if (ctx->swfurl || ctx->swfverify) {
ctx               215 libavformat/librtmp.c         if (ctx->swfverify) {
ctx               216 libavformat/librtmp.c             av_strlcat(filename, ctx->swfverify, len);
ctx               219 libavformat/librtmp.c             av_strlcat(filename, ctx->swfurl, len);
ctx               238 libavformat/librtmp.c     if (ctx->buffer_size >= 0 && (flags & AVIO_FLAG_WRITE)) {
ctx               239 libavformat/librtmp.c         int tmp = ctx->buffer_size;
ctx               247 libavformat/librtmp.c     av_freep(&ctx->temp_filename);
ctx               256 libavformat/librtmp.c     LibRTMPContext *ctx = s->priv_data;
ctx               257 libavformat/librtmp.c     RTMP *r = &ctx->rtmp;
ctx               264 libavformat/librtmp.c     LibRTMPContext *ctx = s->priv_data;
ctx               265 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               301 libavformat/librtmp.c     LibRTMPContext *ctx = s->priv_data;
ctx               302 libavformat/librtmp.c     RTMP *r = &ctx->rtmp;
ctx                30 libavformat/libsmbclient.c     SMBCCTX *ctx;
ctx                51 libavformat/libsmbclient.c     libsmbc->ctx = smbc_new_context();
ctx                52 libavformat/libsmbclient.c     if (!libsmbc->ctx) {
ctx                57 libavformat/libsmbclient.c     if (!smbc_init_context(libsmbc->ctx)) {
ctx                62 libavformat/libsmbclient.c     smbc_set_context(libsmbc->ctx);
ctx                64 libavformat/libsmbclient.c     smbc_setOptionUserData(libsmbc->ctx, h);
ctx                65 libavformat/libsmbclient.c     smbc_setFunctionAuthDataWithContext(libsmbc->ctx, libsmbc_get_auth_data);
ctx                68 libavformat/libsmbclient.c         smbc_setTimeout(libsmbc->ctx, libsmbc->timeout);
ctx                70 libavformat/libsmbclient.c         smbc_setWorkgroup(libsmbc->ctx, libsmbc->workgroup);
ctx                87 libavformat/libsmbclient.c     if (libsmbc->ctx) {
ctx                88 libavformat/libsmbclient.c         smbc_free_context(libsmbc->ctx, 1);
ctx                89 libavformat/libsmbclient.c         libsmbc->ctx = NULL;
ctx               263 libavformat/matroskadec.c     AVFormatContext *ctx;
ctx               658 libavformat/matroskadec.c     AVIOContext *pb = matroska->ctx->pb;
ctx               691 libavformat/matroskadec.c     AVIOContext *pb = matroska->ctx->pb;
ctx               725 libavformat/matroskadec.c             av_log(matroska->ctx, AV_LOG_ERROR,
ctx               737 libavformat/matroskadec.c         av_log(matroska->ctx, AV_LOG_ERROR,
ctx               879 libavformat/matroskadec.c     AVIOContext *pb = matroska->ctx->pb;
ctx               883 libavformat/matroskadec.c         av_log(matroska->ctx, AV_LOG_ERROR,
ctx               941 libavformat/matroskadec.c         av_log(matroska->ctx, AV_LOG_DEBUG, "Unknown entry 0x%"PRIX32"\n", id);
ctx               951 libavformat/matroskadec.c         int res = ebml_read_num(matroska, matroska->ctx->pb, 4, &id);
ctx              1016 libavformat/matroskadec.c         av_log(matroska->ctx, AV_LOG_ERROR, "Too many level1 elements or circular seekheads.\n");
ctx              1039 libavformat/matroskadec.c     AVIOContext *pb = matroska->ctx->pb;
ctx              1063 libavformat/matroskadec.c             av_log(matroska->ctx, AV_LOG_ERROR,
ctx              1092 libavformat/matroskadec.c             matroska->segment_start = avio_tell(matroska->ctx->pb);
ctx              1098 libavformat/matroskadec.c                 av_log(matroska->ctx, AV_LOG_ERROR, "Duplicate element\n");
ctx              1112 libavformat/matroskadec.c         av_log(matroska->ctx, AV_LOG_ERROR, "Invalid element\n");
ctx              1114 libavformat/matroskadec.c         av_log(matroska->ctx, AV_LOG_ERROR, "Read error\n");
ctx              1203 libavformat/matroskadec.c     av_log(matroska->ctx, AV_LOG_ERROR, "Invalid track number %d\n", num);
ctx              1421 libavformat/matroskadec.c     int64_t before_pos = avio_tell(matroska->ctx->pb);
ctx              1428 libavformat/matroskadec.c     if (avio_seek(matroska->ctx->pb, offset, SEEK_SET) == offset) {
ctx              1432 libavformat/matroskadec.c             av_log(matroska->ctx, AV_LOG_INFO,
ctx              1454 libavformat/matroskadec.c     avio_seek(matroska->ctx->pb, before_pos, SEEK_SET);
ctx              1467 libavformat/matroskadec.c     if (!matroska->ctx->pb->seekable)
ctx              1502 libavformat/matroskadec.c     if (matroska->ctx->flags & AVFMT_FLAG_IGNIDX)
ctx              1509 libavformat/matroskadec.c         av_log(matroska->ctx, AV_LOG_WARNING, "Working around broken index.\n");
ctx              1530 libavformat/matroskadec.c     if (matroska->ctx->flags & AVFMT_FLAG_IGNIDX)
ctx              1659 libavformat/matroskadec.c             av_log(matroska->ctx, AV_LOG_INFO,
ctx              1681 libavformat/matroskadec.c             av_log(matroska->ctx, AV_LOG_ERROR,
ctx              1698 libavformat/matroskadec.c                     av_log(matroska->ctx, AV_LOG_ERROR,
ctx              1713 libavformat/matroskadec.c                 av_log(matroska->ctx, AV_LOG_ERROR,
ctx              1723 libavformat/matroskadec.c                     av_log(matroska->ctx, AV_LOG_ERROR,
ctx              1927 libavformat/matroskadec.c             av_log(matroska->ctx, AV_LOG_INFO,
ctx              2071 libavformat/matroskadec.c     matroska->ctx = s;
ctx              2081 libavformat/matroskadec.c         av_log(matroska->ctx, AV_LOG_ERROR,
ctx              2088 libavformat/matroskadec.c         av_log(matroska->ctx, AV_LOG_WARNING,
ctx              2098 libavformat/matroskadec.c         if (matroska->ctx->error_recognition & AV_EF_EXPLODE) {
ctx              2106 libavformat/matroskadec.c     pos = avio_tell(matroska->ctx->pb);
ctx              2113 libavformat/matroskadec.c         pos = avio_tell(matroska->ctx->pb);
ctx              2121 libavformat/matroskadec.c         matroska->ctx->duration = matroska->duration * matroska->time_scale *
ctx              2137 libavformat/matroskadec.c             av_log(matroska->ctx, AV_LOG_ERROR, "incomplete attachment\n");
ctx              2302 libavformat/matroskadec.c             av_log(matroska->ctx, AV_LOG_INFO,
ctx              2315 libavformat/matroskadec.c                 av_log(matroska->ctx, AV_LOG_INFO,
ctx              2359 libavformat/matroskadec.c                 av_log(matroska->ctx, AV_LOG_ERROR,
ctx              2368 libavformat/matroskadec.c                 av_log(matroska->ctx, AV_LOG_ERROR,
ctx              2375 libavformat/matroskadec.c                 av_log(matroska->ctx, AV_LOG_ERROR,
ctx              2637 libavformat/matroskadec.c             av_log(matroska->ctx, AV_LOG_ERROR,
ctx              2759 libavformat/matroskadec.c         av_log(matroska->ctx, AV_LOG_ERROR, "EBML block data error\n");
ctx              2767 libavformat/matroskadec.c         av_log(matroska->ctx, AV_LOG_INFO,
ctx              2802 libavformat/matroskadec.c             av_log(matroska->ctx, AV_LOG_ERROR, "File is broken, keyframes not correctly marked!\n");
ctx              2832 libavformat/matroskadec.c             av_log(matroska->ctx, AV_LOG_ERROR, "Invalid packet size\n");
ctx              2890 libavformat/matroskadec.c         matroska->current_cluster_pos        = avio_tell(matroska->ctx->pb);
ctx              2943 libavformat/matroskadec.c     pos = avio_tell(matroska->ctx->pb);
ctx              2968 libavformat/matroskadec.c         int64_t pos = avio_tell(matroska->ctx->pb);
ctx              3130 libavformat/matroskadec.c         ebml_read_num(matroska, matroska->ctx->pb, 4, &cluster_id);
ctx              3131 libavformat/matroskadec.c         ebml_read_length(matroska, matroska->ctx->pb, &cluster_length);
ctx              3337 libavformat/matroskadec.c     before_pos = avio_tell(matroska->ctx->pb);
ctx              3339 libavformat/matroskadec.c     if (avio_seek(matroska->ctx->pb, cues_start, SEEK_SET) == cues_start) {
ctx              3344 libavformat/matroskadec.c         bytes_read += ebml_read_num(matroska, matroska->ctx->pb, 4, &cues_id);
ctx              3345 libavformat/matroskadec.c         bytes_read += ebml_read_length(matroska, matroska->ctx->pb, &cues_length);
ctx              3348 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                62 libavformat/mov.c     int (*parse)(MOVContext *ctx, AVIOContext *pb, MOVAtom atom);
ctx              3266 libavformat/mov.c     AVIOContext ctx;
ctx              3296 libavformat/mov.c     if (ffio_init_context(&ctx, moov_data, moov_len, 0, NULL, NULL, NULL, NULL) != 0)
ctx              3300 libavformat/mov.c     ret = mov_read_default(c, &ctx, atom);
ctx              2520 libavformat/movenc.c     AVFormatContext *ctx = track->rtp_ctx;
ctx              2524 libavformat/movenc.c     ff_sdp_write_media(buf, sizeof(buf), ctx->streams[0], track->src_track,
ctx              2525 libavformat/movenc.c                        NULL, NULL, 0, 0, ctx);
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 = 0.7*AV_TIME_BASE;
ctx               340 libavformat/mpegenc.c     for (i = 0; i < ctx->nb_streams; i++) {
ctx               341 libavformat/mpegenc.c         st     = ctx->streams[i];
ctx               355 libavformat/mpegenc.c                  av_log(ctx, AV_LOG_WARNING,
ctx               395 libavformat/mpegenc.c                 av_log(ctx, AV_LOG_WARNING,
ctx               403 libavformat/mpegenc.c                 av_log(ctx, AV_LOG_WARNING, "buffer size %d, too large\n", stream->max_buffer_size);
ctx               422 libavformat/mpegenc.c     for (i = 0; i < ctx->nb_streams; i++) {
ctx               424 libavformat/mpegenc.c         st     = ctx->streams[i];
ctx               434 libavformat/mpegenc.c             codec_rate = (1 << 21) * 8 * 50 / ctx->nb_streams;
ctx               453 libavformat/mpegenc.c             av_log(ctx, AV_LOG_WARNING, "mux rate %d is too large\n", s->mux_rate);
ctx               509 libavformat/mpegenc.c     for (i = 0; i < ctx->nb_streams; i++) {
ctx               510 libavformat/mpegenc.c         stream                = ctx->streams[i]->priv_data;
ctx               513 libavformat/mpegenc.c     s->system_header_size = get_system_header_size(ctx);
ctx               518 libavformat/mpegenc.c     for (i = 0; i < ctx->nb_streams; i++)
ctx               519 libavformat/mpegenc.c         av_freep(&ctx->streams[i]->priv_data);
ctx               532 libavformat/mpegenc.c static int get_vcd_padding_size(AVFormatContext *ctx, int64_t pts)
ctx               534 libavformat/mpegenc.c     MpegMuxContext *s = ctx->priv_data;
ctx               555 libavformat/mpegenc.c static void put_padding_packet(AVFormatContext *ctx, AVIOContext *pb,
ctx               558 libavformat/mpegenc.c     MpegMuxContext *s = ctx->priv_data;
ctx               573 libavformat/mpegenc.c static int get_nb_frames(AVFormatContext *ctx, StreamInfo *stream, int len)
ctx               589 libavformat/mpegenc.c static int flush_packet(AVFormatContext *ctx, int stream_index,
ctx               592 libavformat/mpegenc.c     MpegMuxContext *s  = ctx->priv_data;
ctx               593 libavformat/mpegenc.c     StreamInfo *stream = ctx->streams[stream_index]->priv_data;
ctx               607 libavformat/mpegenc.c     av_dlog(ctx, "packet ID=%2x PTS=%0.3f\n", id, pts / 90000.0);
ctx               613 libavformat/mpegenc.c         size        = put_pack_header(ctx, buf_ptr, scr);
ctx               623 libavformat/mpegenc.c                 size     = put_system_header(ctx, buf_ptr, id);
ctx               638 libavformat/mpegenc.c                     size     = put_system_header(ctx, buf_ptr, 0);
ctx               641 libavformat/mpegenc.c                     avio_write(ctx->pb, buffer, size);
ctx               643 libavformat/mpegenc.c                     avio_wb32(ctx->pb, PRIVATE_STREAM_2);
ctx               644 libavformat/mpegenc.c                     avio_wb16(ctx->pb, 0x03d4);     // length
ctx               645 libavformat/mpegenc.c                     avio_w8(ctx->pb, 0x00);         // substream ID, 00=PCI
ctx               647 libavformat/mpegenc.c                         avio_w8(ctx->pb, 0x00);
ctx               649 libavformat/mpegenc.c                     avio_wb32(ctx->pb, PRIVATE_STREAM_2);
ctx               650 libavformat/mpegenc.c                     avio_wb16(ctx->pb, 0x03fa);     // length
ctx               651 libavformat/mpegenc.c                     avio_w8(ctx->pb, 0x01);         // substream ID, 01=DSI
ctx               653 libavformat/mpegenc.c                         avio_w8(ctx->pb, 0x00);
ctx               662 libavformat/mpegenc.c                     size        = put_pack_header(ctx, buf_ptr, scr);
ctx               673 libavformat/mpegenc.c                 size     = put_system_header(ctx, buf_ptr, 0);
ctx               679 libavformat/mpegenc.c     avio_write(ctx->pb, buffer, size);
ctx               789 libavformat/mpegenc.c         nb_frames = get_nb_frames(ctx, stream, payload_size - stuffing_size);
ctx               791 libavformat/mpegenc.c         avio_wb32(ctx->pb, startcode);
ctx               793 libavformat/mpegenc.c         avio_wb16(ctx->pb, packet_size);
ctx               797 libavformat/mpegenc.c                 avio_w8(ctx->pb, 0xff);
ctx               800 libavformat/mpegenc.c             avio_w8(ctx->pb, 0x80); /* mpeg2 id */
ctx               817 libavformat/mpegenc.c             avio_w8(ctx->pb, pes_flags); /* flags */
ctx               818 libavformat/mpegenc.c             avio_w8(ctx->pb, header_len - 3 + stuffing_size);
ctx               821 libavformat/mpegenc.c                 put_timestamp(ctx->pb, (pes_flags & 0x40) ? 0x03 : 0x02, pts);
ctx               823 libavformat/mpegenc.c                 put_timestamp(ctx->pb, 0x01, dts);
ctx               826 libavformat/mpegenc.c                 avio_w8(ctx->pb, 0x10); /* flags */
ctx               830 libavformat/mpegenc.c                     avio_wb16(ctx->pb, 0x4000 | stream->max_buffer_size / 128);
ctx               832 libavformat/mpegenc.c                     avio_wb16(ctx->pb, 0x6000 | stream->max_buffer_size / 1024);
ctx               837 libavformat/mpegenc.c                     put_timestamp(ctx->pb, 0x03, pts);
ctx               838 libavformat/mpegenc.c                     put_timestamp(ctx->pb, 0x01, dts);
ctx               840 libavformat/mpegenc.c                     put_timestamp(ctx->pb, 0x02, pts);
ctx               843 libavformat/mpegenc.c                 avio_w8(ctx->pb, 0x0f);
ctx               850 libavformat/mpegenc.c             avio_w8(ctx->pb, 0xff);
ctx               853 libavformat/mpegenc.c                 avio_w8(ctx->pb, 0xff);
ctx               857 libavformat/mpegenc.c             avio_w8(ctx->pb, id);
ctx               860 libavformat/mpegenc.c                 avio_w8(ctx->pb, 7);
ctx               861 libavformat/mpegenc.c                 avio_wb16(ctx->pb, 4); /* skip 3 header bytes */
ctx               862 libavformat/mpegenc.c                 avio_w8(ctx->pb, stream->lpcm_header[0]);
ctx               863 libavformat/mpegenc.c                 avio_w8(ctx->pb, stream->lpcm_header[1]);
ctx               864 libavformat/mpegenc.c                 avio_w8(ctx->pb, stream->lpcm_header[2]);
ctx               867 libavformat/mpegenc.c                 avio_w8(ctx->pb, nb_frames);
ctx               868 libavformat/mpegenc.c                 avio_wb16(ctx->pb, trailer_size + 1);
ctx               874 libavformat/mpegenc.c         av_fifo_generic_read(stream->fifo, ctx->pb,
ctx               884 libavformat/mpegenc.c         put_padding_packet(ctx, ctx->pb, pad_packet_bytes);
ctx               887 libavformat/mpegenc.c         avio_w8(ctx->pb, 0x00);
ctx               889 libavformat/mpegenc.c     avio_flush(ctx->pb);
ctx               902 libavformat/mpegenc.c static void put_vcd_padding_sector(AVFormatContext *ctx)
ctx               910 libavformat/mpegenc.c     MpegMuxContext *s = ctx->priv_data;
ctx               914 libavformat/mpegenc.c         avio_w8(ctx->pb, 0);
ctx               918 libavformat/mpegenc.c     avio_flush(ctx->pb);
ctx               927 libavformat/mpegenc.c static int remove_decoded_packets(AVFormatContext *ctx, int64_t scr)
ctx               931 libavformat/mpegenc.c     for (i = 0; i < ctx->nb_streams; i++) {
ctx               932 libavformat/mpegenc.c         AVStream *st = ctx->streams[i];
ctx               940 libavformat/mpegenc.c                 av_log(ctx, AV_LOG_ERROR,
ctx               954 libavformat/mpegenc.c static int output_packet(AVFormatContext *ctx, int flush)
ctx               956 libavformat/mpegenc.c     MpegMuxContext *s = ctx->priv_data;
ctx               966 libavformat/mpegenc.c     const int64_t max_delay = av_rescale(ctx->max_delay, 90000, AV_TIME_BASE);
ctx               969 libavformat/mpegenc.c     for (i = 0; i < ctx->nb_streams; i++) {
ctx               970 libavformat/mpegenc.c         AVStream *st = ctx->streams[i];
ctx              1005 libavformat/mpegenc.c         for (i = 0; i < ctx->nb_streams; i++) {
ctx              1006 libavformat/mpegenc.c             AVStream *st = ctx->streams[i];
ctx              1015 libavformat/mpegenc.c             av_dlog(ctx, "bumping scr, scr:%f, dts:%f\n",
ctx              1019 libavformat/mpegenc.c                 av_log(ctx, AV_LOG_ERROR,
ctx              1024 libavformat/mpegenc.c             if (remove_decoded_packets(ctx, scr) < 0)
ctx              1027 libavformat/mpegenc.c             av_log(ctx, AV_LOG_ERROR,
ctx              1039 libavformat/mpegenc.c     st     = ctx->streams[best_i];
ctx              1055 libavformat/mpegenc.c         av_dlog(ctx, "dts:%f pts:%f scr:%f stream:%d\n",
ctx              1059 libavformat/mpegenc.c         es_size = flush_packet(ctx, best_i, timestamp_packet->pts,
ctx              1063 libavformat/mpegenc.c         es_size = flush_packet(ctx, best_i, AV_NOPTS_VALUE, AV_NOPTS_VALUE, scr,
ctx              1073 libavformat/mpegenc.c         while ((vcd_pad_bytes = get_vcd_padding_size(ctx, stream->premux_packet->pts)) >= s->packet_size) {
ctx              1074 libavformat/mpegenc.c             put_vcd_padding_sector(ctx);
ctx              1094 libavformat/mpegenc.c     if (remove_decoded_packets(ctx, s->last_scr) < 0)
ctx              1100 libavformat/mpegenc.c static int mpeg_mux_write_packet(AVFormatContext *ctx, AVPacket *pkt)
ctx              1105 libavformat/mpegenc.c     MpegMuxContext *s = ctx->priv_data;
ctx              1106 libavformat/mpegenc.c     AVStream *st      = ctx->streams[stream_index];
ctx              1120 libavformat/mpegenc.c         if (dts == AV_NOPTS_VALUE || (dts < preload && ctx->avoid_negative_ts) || s->is_dvd) {
ctx              1129 libavformat/mpegenc.c         av_log(ctx, AV_LOG_DEBUG, "First SCR: %"PRId64" First DTS: %"PRId64"\n", s->last_scr, dts + preload);
ctx              1135 libavformat/mpegenc.c     av_dlog(ctx, "dts:%f pts:%f flags:%d stream:%d nopts:%d\n",
ctx              1167 libavformat/mpegenc.c         int ret = output_packet(ctx, 0);
ctx              1173 libavformat/mpegenc.c static int mpeg_mux_end(AVFormatContext *ctx)
ctx              1179 libavformat/mpegenc.c         int ret = output_packet(ctx, 1);
ctx              1192 libavformat/mpegenc.c     for (i = 0; i < ctx->nb_streams; i++) {
ctx              1193 libavformat/mpegenc.c         stream = ctx->streams[i]->priv_data;
ctx               598 libavformat/mpegtsenc.c     AVFormatContext *ctx = s->opaque;
ctx               599 libavformat/mpegtsenc.c     mpegts_prefix_m2ts_header(ctx);
ctx               600 libavformat/mpegtsenc.c     avio_write(ctx->pb, packet, TS_PACKET_SIZE);
ctx                73 libavformat/msnwc_tcp.c static int msnwc_tcp_read_header(AVFormatContext *ctx)
ctx                75 libavformat/msnwc_tcp.c     AVIOContext *pb = ctx->pb;
ctx                79 libavformat/msnwc_tcp.c     st = avformat_new_stream(ctx, NULL);
ctx                95 libavformat/msnwc_tcp.c         av_log(ctx, AV_LOG_ERROR, "Could not find valid start.\n");
ctx               102 libavformat/msnwc_tcp.c static int msnwc_tcp_read_packet(AVFormatContext *ctx, AVPacket *pkt)
ctx               104 libavformat/msnwc_tcp.c     AVIOContext *pb = ctx->pb;
ctx               288 libavformat/mxfdec.c static void mxf_free_metadataset(MXFMetadataSet **ctx, int freectx)
ctx               291 libavformat/mxfdec.c     switch ((*ctx)->type) {
ctx               293 libavformat/mxfdec.c         av_freep(&((MXFDescriptor *)*ctx)->extradata);
ctx               296 libavformat/mxfdec.c         av_freep(&((MXFDescriptor *)*ctx)->sub_descriptors_refs);
ctx               299 libavformat/mxfdec.c         av_freep(&((MXFSequence *)*ctx)->structural_components_refs);
ctx               302 libavformat/mxfdec.c         av_freep(&((MXFEssenceGroup *)*ctx)->structural_components_refs);
ctx               306 libavformat/mxfdec.c         av_freep(&((MXFPackage *)*ctx)->tracks_refs);
ctx               307 libavformat/mxfdec.c         av_freep(&((MXFPackage *)*ctx)->name);
ctx               310 libavformat/mxfdec.c         seg = (MXFIndexTableSegment *)*ctx;
ctx               318 libavformat/mxfdec.c     av_freep(ctx);
ctx              2158 libavformat/mxfdec.c static int mxf_metadataset_init(MXFMetadataSet *ctx, enum MXFMetadataSetType type)
ctx              2163 libavformat/mxfdec.c         ((MXFDescriptor*)ctx)->pix_fmt = AV_PIX_FMT_NONE;
ctx              2164 libavformat/mxfdec.c         ((MXFDescriptor*)ctx)->duration = AV_NOPTS_VALUE;
ctx              2175 libavformat/mxfdec.c     MXFMetadataSet *ctx = ctx_size ? av_mallocz(ctx_size) : mxf;
ctx              2178 libavformat/mxfdec.c     if (!ctx)
ctx              2180 libavformat/mxfdec.c     mxf_metadataset_init(ctx, type);
ctx              2205 libavformat/mxfdec.c             avio_read(pb, ctx->uid, 16);
ctx              2206 libavformat/mxfdec.c         } else if ((ret = read_child(ctx, pb, tag, size, uid, -1)) < 0) {
ctx              2207 libavformat/mxfdec.c             mxf_free_metadataset(&ctx, !!ctx_size);
ctx              2215 libavformat/mxfdec.c                 ctx->type = type;
ctx              2216 libavformat/mxfdec.c                 mxf_free_metadataset(&ctx, !!ctx_size);
ctx              2226 libavformat/mxfdec.c     if (ctx_size) ctx->type = type;
ctx              2227 libavformat/mxfdec.c     return ctx_size ? mxf_add_metadata_set(mxf, ctx) : 0;
ctx               154 libavformat/nuv.c     NUVContext *ctx = s->priv_data;
ctx               187 libavformat/nuv.c         ctx->v_id = vst->index;
ctx               189 libavformat/nuv.c         ret = av_image_check_size(width, height, 0, ctx);
ctx               206 libavformat/nuv.c         ctx->v_id = -1;
ctx               212 libavformat/nuv.c         ctx->a_id = ast->index;
ctx               224 libavformat/nuv.c         ctx->a_id = -1;
ctx               229 libavformat/nuv.c     ctx->rtjpg_video = vst && vst->codec->codec_id == AV_CODEC_ID_NUV;
ctx               238 libavformat/nuv.c     NUVContext *ctx = s->priv_data;
ctx               245 libavformat/nuv.c         int copyhdrsize = ctx->rtjpg_video ? HDRSIZE : 0;
ctx               257 libavformat/nuv.c             if (!ctx->rtjpg_video) {
ctx               262 libavformat/nuv.c             if (ctx->v_id < 0) {
ctx               274 libavformat/nuv.c             pkt->stream_index = ctx->v_id;
ctx               285 libavformat/nuv.c             if (ctx->a_id < 0) {
ctx               294 libavformat/nuv.c             pkt->stream_index = ctx->a_id;
ctx               334 libavformat/nuv.c     NUVContext *ctx = s->priv_data;
ctx               358 libavformat/nuv.c                     idx = ctx->v_id;
ctx               361 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               124 libavformat/options.c enum AVDurationEstimationMethod av_fmt_ctx_get_duration_estimation_method(const AVFormatContext* ctx)
ctx               126 libavformat/options.c     return ctx->duration_estimation_method;
ctx                36 libavformat/rawvideodec.c static int rawvideo_read_header(AVFormatContext *ctx)
ctx                38 libavformat/rawvideodec.c     RawVideoDemuxerContext *s = ctx->priv_data;
ctx                42 libavformat/rawvideodec.c     st = avformat_new_stream(ctx, NULL);
ctx                48 libavformat/rawvideodec.c     st->codec->codec_id = ctx->iformat->raw_codec_id;
ctx                51 libavformat/rawvideodec.c         av_log(ctx, AV_LOG_ERROR, "No such pixel format: %s.\n",
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                87 libavformat/rmenc.c     avio_wb32(s,4 + ctx->nb_streams); /* num headers */
ctx                97 libavformat/rmenc.c     for(i=0;i<ctx->nb_streams;i++) {
ctx               124 libavformat/rmenc.c     avio_wb16(s, ctx->nb_streams);    /* num streams */
ctx               135 libavformat/rmenc.c         tag = av_dict_get(ctx->metadata, ff_rm_metadata[i], NULL, 0);
ctx               141 libavformat/rmenc.c         tag = av_dict_get(ctx->metadata, ff_rm_metadata[i], NULL, 0);
ctx               145 libavformat/rmenc.c     for(i=0;i<ctx->nb_streams;i++) {
ctx               238 libavformat/rmenc.c                 av_log(ctx, AV_LOG_ERROR, "Invalid codec tag\n");
ctx               289 libavformat/rmenc.c static void write_packet_header(AVFormatContext *ctx, StreamInfo *stream,
ctx               293 libavformat/rmenc.c     AVIOContext *s = ctx->pb;
ctx               186 libavformat/rtmpcrypt.c     struct AVXTEA ctx;
ctx               188 libavformat/rtmpcrypt.c     av_xtea_init(&ctx, rtmpe8_keys[key_id]);
ctx               189 libavformat/rtmpcrypt.c     av_xtea_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               178 libavformat/rtmpdh.c         BN_CTX *ctx = BN_CTX_new();          \
ctx               179 libavformat/rtmpdh.c         if (!ctx)                            \
ctx               181 libavformat/rtmpdh.c         if (!BN_mod_exp(bn, y, q, p, ctx)) { \
ctx               182 libavformat/rtmpdh.c             BN_CTX_free(ctx);                \
ctx               185 libavformat/rtmpdh.c         BN_CTX_free(ctx);                    \
ctx               539 libavformat/rtmppkt.c static void amf_tag_contents(void *ctx, const uint8_t *data,
ctx               551 libavformat/rtmppkt.c         av_log(ctx, AV_LOG_DEBUG, " number %g\n", av_int2double(AV_RB64(data)));
ctx               554 libavformat/rtmppkt.c         av_log(ctx, AV_LOG_DEBUG, " bool %d\n", *data);
ctx               566 libavformat/rtmppkt.c         av_log(ctx, AV_LOG_DEBUG, " string '%s'\n", buf);
ctx               569 libavformat/rtmppkt.c         av_log(ctx, AV_LOG_DEBUG, " NULL\n");
ctx               576 libavformat/rtmppkt.c         av_log(ctx, AV_LOG_DEBUG, " {\n");
ctx               583 libavformat/rtmppkt.c                     av_log(ctx, AV_LOG_DEBUG, " }\n");
ctx               592 libavformat/rtmppkt.c                 av_log(ctx, AV_LOG_DEBUG, "  %s: ", buf);
ctx               594 libavformat/rtmppkt.c             amf_tag_contents(ctx, data, data_end);
ctx               602 libavformat/rtmppkt.c         av_log(ctx, AV_LOG_DEBUG, " }\n");
ctx               609 libavformat/rtmppkt.c void ff_rtmp_packet_dump(void *ctx, RTMPPacket *p)
ctx               611 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               617 libavformat/rtmppkt.c             amf_tag_contents(ctx, src, src_end);
ctx               624 libavformat/rtmppkt.c         av_log(ctx, AV_LOG_DEBUG, "Server BW = %d\n", AV_RB32(p->data));
ctx               626 libavformat/rtmppkt.c         av_log(ctx, AV_LOG_DEBUG, "Client BW = %d\n", AV_RB32(p->data));
ctx               630 libavformat/rtmppkt.c             av_log(ctx, AV_LOG_DEBUG, " %02X", p->data[i]);
ctx               631 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               541 libavformat/rtpdec.c void ff_rtp_parse_set_dynamic_protocol(RTPDemuxContext *s, PayloadContext *ctx,
ctx               544 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               202 libavformat/rtpdec_h264.c int ff_h264_handle_aggregated_packet(AVFormatContext *ctx, PayloadContext *data, AVPacket *pkt,
ctx               238 libavformat/rtpdec_h264.c                 av_log(ctx, AV_LOG_ERROR,
ctx               281 libavformat/rtpdec_h264.c static int h264_handle_packet_fu_a(AVFormatContext *ctx, PayloadContext *data, AVPacket *pkt,
ctx               288 libavformat/rtpdec_h264.c         av_log(ctx, AV_LOG_ERROR, "Too short data for FU-A H264 RTP packet\n");
ctx               308 libavformat/rtpdec_h264.c static int h264_handle_packet(AVFormatContext *ctx, PayloadContext *data,
ctx               318 libavformat/rtpdec_h264.c         av_log(ctx, AV_LOG_ERROR, "Empty H264 RTP packet\n");
ctx               342 libavformat/rtpdec_h264.c         result = ff_h264_handle_aggregated_packet(ctx, data, pkt, buf, len, 0,
ctx               350 libavformat/rtpdec_h264.c         av_log(ctx, AV_LOG_ERROR,
ctx               357 libavformat/rtpdec_h264.c         result = h264_handle_packet_fu_a(ctx, data, pkt, buf, len,
ctx               364 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               187 libavformat/rtpdec_hevc.c static int hevc_handle_packet(AVFormatContext *ctx, PayloadContext *rtp_hevc_ctx,
ctx               200 libavformat/rtpdec_hevc.c         av_log(ctx, AV_LOG_ERROR, "Too short RTP/HEVC packet, got %d bytes\n", len);
ctx               225 libavformat/rtpdec_hevc.c         avpriv_report_missing_feature(ctx, "Multi-layer HEVC coding\n");
ctx               231 libavformat/rtpdec_hevc.c         av_log(ctx, AV_LOG_ERROR, "Illegal temporal ID in RTP/HEVC packet\n");
ctx               237 libavformat/rtpdec_hevc.c         av_log(ctx, AV_LOG_ERROR, "Unsupported (HEVC) NAL type (%d)\n", nal_type);
ctx               254 libavformat/rtpdec_hevc.c             av_log(ctx, AV_LOG_ERROR,
ctx               281 libavformat/rtpdec_hevc.c         res = ff_h264_handle_aggregated_packet(ctx, rtp_hevc_ctx, pkt, buf, len,
ctx               320 libavformat/rtpdec_hevc.c         av_dlog(ctx, " FU type %d with %d bytes\n", fu_type, len);
ctx               325 libavformat/rtpdec_hevc.c                 av_log(ctx, AV_LOG_ERROR,
ctx               335 libavformat/rtpdec_hevc.c             av_log(ctx, AV_LOG_ERROR, "Illegal combination of S and E bit in RTP/HEVC packet\n");
ctx               349 libavformat/rtpdec_hevc.c         avpriv_report_missing_feature(ctx, "PACI packets for RTP/HEVC\n");
ctx               212 libavformat/rtpdec_jpeg.c static int jpeg_parse_packet(AVFormatContext *ctx, PayloadContext *jpeg,
ctx               224 libavformat/rtpdec_jpeg.c         av_log(ctx, AV_LOG_ERROR, "Too short RTP/JPEG packet.\n");
ctx               239 libavformat/rtpdec_jpeg.c             av_log(ctx, AV_LOG_ERROR, "Too short RTP/JPEG packet.\n");
ctx               249 libavformat/rtpdec_jpeg.c         av_log(ctx, AV_LOG_ERROR,
ctx               254 libavformat/rtpdec_jpeg.c         av_log(ctx, AV_LOG_ERROR, "Unimplemented RTP/JPEG type %d\n", type);
ctx               267 libavformat/rtpdec_jpeg.c                 av_log(ctx, AV_LOG_ERROR, "Too short RTP/JPEG packet.\n");
ctx               278 libavformat/rtpdec_jpeg.c                 av_log(ctx, AV_LOG_WARNING, "Only 8-bit precision is supported.\n");
ctx               282 libavformat/rtpdec_jpeg.c                     av_log(ctx, AV_LOG_ERROR, "Too short RTP/JPEG packet.\n");
ctx               292 libavformat/rtpdec_jpeg.c                         av_log(ctx, AV_LOG_WARNING,
ctx               302 libavformat/rtpdec_jpeg.c                     av_log(ctx, AV_LOG_ERROR,
ctx               307 libavformat/rtpdec_jpeg.c                     av_log(ctx, AV_LOG_ERROR,
ctx               316 libavformat/rtpdec_jpeg.c                 av_log(ctx, AV_LOG_ERROR, "Reserved q value %d\n", q);
ctx               344 libavformat/rtpdec_jpeg.c         av_log(ctx, AV_LOG_ERROR,
ctx               353 libavformat/rtpdec_jpeg.c         av_log(ctx, AV_LOG_ERROR, "RTP timestamps don't match.\n");
ctx               358 libavformat/rtpdec_jpeg.c         av_log(ctx, AV_LOG_ERROR,
ctx               375 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               161 libavformat/rtpdec_mpeg4.c static int aac_parse_packet(AVFormatContext *ctx, PayloadContext *data,
ctx               171 libavformat/rtpdec_mpeg4.c             av_log(ctx, AV_LOG_ERROR, "Invalid parser state\n");
ctx               175 libavformat/rtpdec_mpeg4.c             av_log(ctx, AV_LOG_ERROR, "Invalid AU size\n");
ctx               179 libavformat/rtpdec_mpeg4.c             av_log(ctx, AV_LOG_ERROR, "Out of memory\n");
ctx               196 libavformat/rtpdec_mpeg4.c         av_log(ctx, AV_LOG_ERROR, "Error parsing AU headers\n");
ctx               207 libavformat/rtpdec_mpeg4.c                 av_log(ctx, AV_LOG_ERROR, "Invalid AU size\n");
ctx               220 libavformat/rtpdec_mpeg4.c             av_log(ctx, AV_LOG_ERROR, "Invalid packet received\n");
ctx               232 libavformat/rtpdec_mpeg4.c             av_log(ctx, AV_LOG_ERROR, "Missed some packets, discarding frame\n");
ctx               239 libavformat/rtpdec_mpeg4.c             av_log(ctx, AV_LOG_ERROR, "Out of memory\n");
ctx               250 libavformat/rtpdec_mpeg4.c         av_log(ctx, AV_LOG_ERROR, "First AU larger than packet size\n");
ctx               254 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                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               117 libavformat/rtpdec_vp9.c             av_log(ctx, AV_LOG_ERROR, "Too short RTP/VP9 packet\n");
ctx               124 libavformat/rtpdec_vp9.c                 av_log(ctx, AV_LOG_ERROR, "Too short RTP/VP9 packet\n");
ctx               151 libavformat/rtpdec_vp9.c             av_log(ctx, AV_LOG_ERROR, "Too short RTP/VP9 packet\n");
ctx               183 libavformat/rtpdec_vp9.c                 av_log(ctx, AV_LOG_ERROR, "Too short RTP/VP9 packet\n");
ctx               192 libavformat/rtpdec_vp9.c                     av_log(ctx, AV_LOG_ERROR, "Too short RTP/VP9 packet\n");
ctx               230 libavformat/rtpdec_vp9.c         avpriv_report_missing_feature(ctx, "VP9 scalability structure data");
ctx               240 libavformat/rtpdec_vp9.c         avpriv_report_missing_feature(ctx, "VP9 scalability update structure data");
ctx               253 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         av_log(ctx, AV_LOG_ERROR,
ctx               117 libavformat/rtpdec_xiph.c         av_log(ctx, AV_LOG_ERROR,
ctx               128 libavformat/rtpdec_xiph.c             av_log(ctx, AV_LOG_ERROR, "Out of memory.\n");
ctx               143 libavformat/rtpdec_xiph.c                     av_log(ctx, AV_LOG_ERROR, "Out of memory.\n");
ctx               176 libavformat/rtpdec_xiph.c             av_log(ctx, AV_LOG_ERROR, "RTP timestamps don't match!\n");
ctx               180 libavformat/rtpdec_xiph.c             av_log(ctx, AV_LOG_WARNING,
ctx               192 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               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               119 libavformat/segment.c static void print_csv_escaped_str(AVIOContext *ctx, const char *str)
ctx               124 libavformat/segment.c         avio_w8(ctx, '"');
ctx               128 libavformat/segment.c             avio_w8(ctx, '"');
ctx               129 libavformat/segment.c         avio_w8(ctx, *str);
ctx               132 libavformat/segment.c         avio_w8(ctx, '"');
ctx               500 libavformat/segment.c static int open_null_ctx(AVIOContext **ctx)
ctx               506 libavformat/segment.c     *ctx = avio_alloc_context(buf, buf_size, AVIO_FLAG_WRITE, NULL, NULL, NULL, NULL);
ctx               507 libavformat/segment.c     if (!*ctx) {
ctx                50 libavformat/smoothstreamingenc.c     AVFormatContext *ctx;
ctx               124 libavformat/smoothstreamingenc.c             ret = ffurl_open(&os->out, frag->file, AVIO_FLAG_READ_WRITE, &os->ctx->interrupt_callback, &opts);
ctx               132 libavformat/smoothstreamingenc.c             ffurl_open(&os->out2, frag->infofile, AVIO_FLAG_READ_WRITE, &os->ctx->interrupt_callback, &opts);
ctx               146 libavformat/smoothstreamingenc.c     AVCodecContext *codec = os->ctx->streams[0]->codec;
ctx               179 libavformat/smoothstreamingenc.c         if (os->ctx && os->ctx_inited)
ctx               180 libavformat/smoothstreamingenc.c             av_write_trailer(os->ctx);
ctx               181 libavformat/smoothstreamingenc.c         if (os->ctx && os->ctx->pb)
ctx               182 libavformat/smoothstreamingenc.c             av_freep(&os->ctx->pb);
ctx               183 libavformat/smoothstreamingenc.c         if (os->ctx)
ctx               184 libavformat/smoothstreamingenc.c             avformat_free_context(os->ctx);
ctx               315 libavformat/smoothstreamingenc.c         AVFormatContext *ctx;
ctx               331 libavformat/smoothstreamingenc.c         ctx = avformat_alloc_context();
ctx               332 libavformat/smoothstreamingenc.c         if (!ctx) {
ctx               336 libavformat/smoothstreamingenc.c         os->ctx = ctx;
ctx               337 libavformat/smoothstreamingenc.c         ctx->oformat = oformat;
ctx               338 libavformat/smoothstreamingenc.c         ctx->interrupt_callback = s->interrupt_callback;
ctx               340 libavformat/smoothstreamingenc.c         if (!(st = avformat_new_stream(ctx, NULL))) {
ctx               348 libavformat/smoothstreamingenc.c         ctx->pb = avio_alloc_context(os->iobuf, sizeof(os->iobuf), AVIO_FLAG_WRITE, os, NULL, ism_write, ism_seek);
ctx               349 libavformat/smoothstreamingenc.c         if (!ctx->pb) {
ctx               356 libavformat/smoothstreamingenc.c         if ((ret = avformat_write_header(ctx, &opts)) < 0) {
ctx               360 libavformat/smoothstreamingenc.c         avio_flush(ctx->pb);
ctx               530 libavformat/smoothstreamingenc.c         av_write_frame(os->ctx, NULL);
ctx               531 libavformat/smoothstreamingenc.c         avio_flush(os->ctx->pb);
ctx               599 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               107 libavformat/spdifenc.c     IEC61937Context *ctx = s->priv_data;
ctx               110 libavformat/spdifenc.c     ctx->data_type  = IEC61937_AC3 | (bitstream_mode << 8);
ctx               111 libavformat/spdifenc.c     ctx->pkt_offset = AC3_FRAME_SIZE << 2;
ctx               117 libavformat/spdifenc.c     IEC61937Context *ctx = s->priv_data;
ctx               124 libavformat/spdifenc.c     ctx->hd_buf = av_fast_realloc(ctx->hd_buf, &ctx->hd_buf_size, ctx->hd_buf_filled + pkt->size);
ctx               125 libavformat/spdifenc.c     if (!ctx->hd_buf)
ctx               128 libavformat/spdifenc.c     memcpy(&ctx->hd_buf[ctx->hd_buf_filled], pkt->data, pkt->size);
ctx               130 libavformat/spdifenc.c     ctx->hd_buf_filled += pkt->size;
ctx               131 libavformat/spdifenc.c     if (++ctx->hd_buf_count < repeat){
ctx               132 libavformat/spdifenc.c         ctx->pkt_offset = 0;
ctx               135 libavformat/spdifenc.c     ctx->data_type   = IEC61937_EAC3;
ctx               136 libavformat/spdifenc.c     ctx->pkt_offset  = 24576;
ctx               137 libavformat/spdifenc.c     ctx->out_buf     = ctx->hd_buf;
ctx               138 libavformat/spdifenc.c     ctx->out_bytes   = ctx->hd_buf_filled;
ctx               139 libavformat/spdifenc.c     ctx->length_code = ctx->hd_buf_filled;
ctx               141 libavformat/spdifenc.c     ctx->hd_buf_count  = 0;
ctx               142 libavformat/spdifenc.c     ctx->hd_buf_filled = 0;
ctx               169 libavformat/spdifenc.c     IEC61937Context *ctx = s->priv_data;
ctx               185 libavformat/spdifenc.c     period = ctx->dtshd_rate * (blocks << 5) / sample_rate;
ctx               191 libavformat/spdifenc.c                " (blocks = %d, sample rate = %d)\n", ctx->dtshd_rate, period,
ctx               198 libavformat/spdifenc.c     ctx->pkt_offset = period * 4;
ctx               199 libavformat/spdifenc.c     ctx->data_type = IEC61937_DTSHD | subtype << 8;
ctx               207 libavformat/spdifenc.c             > ctx->pkt_offset - BURST_HEADER_SIZE && core_size) {
ctx               208 libavformat/spdifenc.c         if (!ctx->dtshd_skip)
ctx               211 libavformat/spdifenc.c         if (ctx->dtshd_fallback > 0)
ctx               212 libavformat/spdifenc.c             ctx->dtshd_skip = sample_rate * ctx->dtshd_fallback / (blocks << 5);
ctx               216 libavformat/spdifenc.c             ctx->dtshd_skip = 1;
ctx               218 libavformat/spdifenc.c     if (ctx->dtshd_skip && core_size) {
ctx               220 libavformat/spdifenc.c         if (ctx->dtshd_fallback >= 0)
ctx               221 libavformat/spdifenc.c             --ctx->dtshd_skip;
ctx               224 libavformat/spdifenc.c     ctx->out_bytes   = sizeof(dtshd_start_code) + 2 + pkt_size;
ctx               228 libavformat/spdifenc.c     ctx->length_code = FFALIGN(ctx->out_bytes + 0x8, 0x10) - 0x8;
ctx               230 libavformat/spdifenc.c     av_fast_malloc(&ctx->hd_buf, &ctx->hd_buf_size, ctx->out_bytes);
ctx               231 libavformat/spdifenc.c     if (!ctx->hd_buf)
ctx               234 libavformat/spdifenc.c     ctx->out_buf = ctx->hd_buf;
ctx               236 libavformat/spdifenc.c     memcpy(ctx->hd_buf, dtshd_start_code, sizeof(dtshd_start_code));
ctx               237 libavformat/spdifenc.c     AV_WB16(ctx->hd_buf + sizeof(dtshd_start_code), pkt_size);
ctx               238 libavformat/spdifenc.c     memcpy(ctx->hd_buf + sizeof(dtshd_start_code) + 2, pkt->data, pkt_size);
ctx               245 libavformat/spdifenc.c     IEC61937Context *ctx = s->priv_data;
ctx               262 libavformat/spdifenc.c         ctx->extra_bswap = 1;
ctx               271 libavformat/spdifenc.c         ctx->extra_bswap = 1;
ctx               285 libavformat/spdifenc.c     if (ctx->dtshd_rate)
ctx               290 libavformat/spdifenc.c     case  512 >> 5: ctx->data_type = IEC61937_DTS1; break;
ctx               291 libavformat/spdifenc.c     case 1024 >> 5: ctx->data_type = IEC61937_DTS2; break;
ctx               292 libavformat/spdifenc.c     case 2048 >> 5: ctx->data_type = IEC61937_DTS3; break;
ctx               301 libavformat/spdifenc.c         ctx->out_bytes = core_size;
ctx               302 libavformat/spdifenc.c         ctx->length_code = core_size << 3;
ctx               305 libavformat/spdifenc.c     ctx->pkt_offset = blocks << 7;
ctx               307 libavformat/spdifenc.c     if (ctx->out_bytes == ctx->pkt_offset) {
ctx               311 libavformat/spdifenc.c         ctx->use_preamble = 0;
ctx               312 libavformat/spdifenc.c     } else if (ctx->out_bytes > ctx->pkt_offset - BURST_HEADER_SIZE) {
ctx               328 libavformat/spdifenc.c     IEC61937Context *ctx = s->priv_data;
ctx               339 libavformat/spdifenc.c         ctx->data_type  = IEC61937_MPEG2_EXT;
ctx               340 libavformat/spdifenc.c         ctx->pkt_offset = 4608;
ctx               342 libavformat/spdifenc.c         ctx->data_type  = mpeg_data_type [version & 1][layer];
ctx               343 libavformat/spdifenc.c         ctx->pkt_offset = spdif_mpeg_pkt_offset[version & 1][layer];
ctx               351 libavformat/spdifenc.c     IEC61937Context *ctx = s->priv_data;
ctx               363 libavformat/spdifenc.c     ctx->pkt_offset = hdr.samples << 2;
ctx               366 libavformat/spdifenc.c         ctx->data_type = IEC61937_MPEG2_AAC;
ctx               369 libavformat/spdifenc.c         ctx->data_type = IEC61937_MPEG2_AAC_LSF_2048;
ctx               372 libavformat/spdifenc.c         ctx->data_type = IEC61937_MPEG2_AAC_LSF_4096;
ctx               399 libavformat/spdifenc.c     IEC61937Context *ctx = s->priv_data;
ctx               403 libavformat/spdifenc.c     if (!ctx->hd_buf_count) {
ctx               406 libavformat/spdifenc.c         memcpy(ctx->hd_buf, mat_start_code, sizeof(mat_start_code));
ctx               408 libavformat/spdifenc.c     } else if (ctx->hd_buf_count == 12) {
ctx               411 libavformat/spdifenc.c         memcpy(&ctx->hd_buf[12 * TRUEHD_FRAME_OFFSET - BURST_HEADER_SIZE + MAT_MIDDLE_CODE_OFFSET],
ctx               423 libavformat/spdifenc.c     memcpy(&ctx->hd_buf[ctx->hd_buf_count * TRUEHD_FRAME_OFFSET - BURST_HEADER_SIZE + mat_code_length],
ctx               425 libavformat/spdifenc.c     memset(&ctx->hd_buf[ctx->hd_buf_count * TRUEHD_FRAME_OFFSET - BURST_HEADER_SIZE + mat_code_length + pkt->size],
ctx               428 libavformat/spdifenc.c     if (++ctx->hd_buf_count < 24){
ctx               429 libavformat/spdifenc.c         ctx->pkt_offset = 0;
ctx               432 libavformat/spdifenc.c     memcpy(&ctx->hd_buf[MAT_FRAME_SIZE - sizeof(mat_end_code)], mat_end_code, sizeof(mat_end_code));
ctx               433 libavformat/spdifenc.c     ctx->hd_buf_count = 0;
ctx               435 libavformat/spdifenc.c     ctx->data_type   = IEC61937_TRUEHD;
ctx               436 libavformat/spdifenc.c     ctx->pkt_offset  = 61440;
ctx               437 libavformat/spdifenc.c     ctx->out_buf     = ctx->hd_buf;
ctx               438 libavformat/spdifenc.c     ctx->out_bytes   = MAT_FRAME_SIZE;
ctx               439 libavformat/spdifenc.c     ctx->length_code = MAT_FRAME_SIZE;
ctx               445 libavformat/spdifenc.c     IEC61937Context *ctx = s->priv_data;
ctx               449 libavformat/spdifenc.c         ctx->header_info = spdif_header_ac3;
ctx               452 libavformat/spdifenc.c         ctx->header_info = spdif_header_eac3;
ctx               457 libavformat/spdifenc.c         ctx->header_info = spdif_header_mpeg;
ctx               460 libavformat/spdifenc.c         ctx->header_info = spdif_header_dts;
ctx               463 libavformat/spdifenc.c         ctx->header_info = spdif_header_aac;
ctx               466 libavformat/spdifenc.c         ctx->header_info = spdif_header_truehd;
ctx               467 libavformat/spdifenc.c         ctx->hd_buf = av_malloc(MAT_FRAME_SIZE);
ctx               468 libavformat/spdifenc.c         if (!ctx->hd_buf)
ctx               480 libavformat/spdifenc.c     IEC61937Context *ctx = s->priv_data;
ctx               481 libavformat/spdifenc.c     av_freep(&ctx->buffer);
ctx               482 libavformat/spdifenc.c     av_freep(&ctx->hd_buf);
ctx               486 libavformat/spdifenc.c static av_always_inline void spdif_put_16(IEC61937Context *ctx,
ctx               489 libavformat/spdifenc.c     if (ctx->spdif_flags & SPDIF_FLAG_BIGENDIAN)
ctx               497 libavformat/spdifenc.c     IEC61937Context *ctx = s->priv_data;
ctx               500 libavformat/spdifenc.c     ctx->out_buf = pkt->data;
ctx               501 libavformat/spdifenc.c     ctx->out_bytes = pkt->size;
ctx               502 libavformat/spdifenc.c     ctx->length_code = FFALIGN(pkt->size, 2) << 3;
ctx               503 libavformat/spdifenc.c     ctx->use_preamble = 1;
ctx               504 libavformat/spdifenc.c     ctx->extra_bswap = 0;
ctx               506 libavformat/spdifenc.c     ret = ctx->header_info(s, pkt);
ctx               509 libavformat/spdifenc.c     if (!ctx->pkt_offset)
ctx               512 libavformat/spdifenc.c     padding = (ctx->pkt_offset - ctx->use_preamble * BURST_HEADER_SIZE - ctx->out_bytes) & ~1;
ctx               518 libavformat/spdifenc.c     if (ctx->use_preamble) {
ctx               519 libavformat/spdifenc.c         spdif_put_16(ctx, s->pb, SYNCWORD1);       //Pa
ctx               520 libavformat/spdifenc.c         spdif_put_16(ctx, s->pb, SYNCWORD2);       //Pb
ctx               521 libavformat/spdifenc.c         spdif_put_16(ctx, s->pb, ctx->data_type);  //Pc
ctx               522 libavformat/spdifenc.c         spdif_put_16(ctx, s->pb, ctx->length_code);//Pd
ctx               525 libavformat/spdifenc.c     if (ctx->extra_bswap ^ (ctx->spdif_flags & SPDIF_FLAG_BIGENDIAN)) {
ctx               526 libavformat/spdifenc.c         avio_write(s->pb, ctx->out_buf, ctx->out_bytes & ~1);
ctx               528 libavformat/spdifenc.c         av_fast_malloc(&ctx->buffer, &ctx->buffer_size, ctx->out_bytes + FF_INPUT_BUFFER_PADDING_SIZE);
ctx               529 libavformat/spdifenc.c         if (!ctx->buffer)
ctx               531 libavformat/spdifenc.c         ff_spdif_bswap_buf16((uint16_t *)ctx->buffer, (uint16_t *)ctx->out_buf, ctx->out_bytes >> 1);
ctx               532 libavformat/spdifenc.c         avio_write(s->pb, ctx->buffer, ctx->out_bytes & ~1);
ctx               536 libavformat/spdifenc.c     if (ctx->out_bytes & 1)
ctx               537 libavformat/spdifenc.c         spdif_put_16(ctx, s->pb, ctx->out_buf[ctx->out_bytes - 1] << 8);
ctx               542 libavformat/spdifenc.c            ctx->data_type, ctx->out_bytes, ctx->pkt_offset);
ctx                52 libavformat/tls.c         if ((c)->ctx) \
ctx                53 libavformat/tls.c             SSL_CTX_free((c)->ctx); \
ctx                67 libavformat/tls.c     SSL_CTX *ctx;
ctx               298 libavformat/tls.c     c->ctx = SSL_CTX_new(c->listen ? TLSv1_server_method() : TLSv1_client_method());
ctx               299 libavformat/tls.c     if (!c->ctx) {
ctx               306 libavformat/tls.c         if (!SSL_CTX_load_verify_locations(c->ctx, c->ca_file, NULL))
ctx               309 libavformat/tls.c     if (c->cert_file && !SSL_CTX_use_certificate_chain_file(c->ctx, c->cert_file)) {
ctx               315 libavformat/tls.c     if (c->key_file && !SSL_CTX_use_PrivateKey_file(c->ctx, c->key_file, SSL_FILETYPE_PEM)) {
ctx               324 libavformat/tls.c         SSL_CTX_set_verify(c->ctx, SSL_VERIFY_PEER|SSL_VERIFY_FAIL_IF_NO_PEER_CERT, NULL);
ctx               325 libavformat/tls.c     c->ssl = SSL_new(c->ctx);
ctx               141 libavformat/udp.c static void log_net_error(void *ctx, int level, const char* prefix)
ctx               145 libavformat/udp.c     av_log(ctx, level, "%s: %s\n", prefix, errbuf);
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     AVIOContext *pb = ctx->pb;
ctx                59 libavformat/webvttenc.c static int webvtt_write_packet(AVFormatContext *ctx, AVPacket *pkt)
ctx                61 libavformat/webvttenc.c     AVIOContext  *pb = ctx->pb;
ctx                77 libavformat/wvdec.c static int wv_read_block_header(AVFormatContext *ctx, AVIOContext *pb)
ctx                79 libavformat/wvdec.c     WVContext *wc = ctx->priv_data;
ctx                96 libavformat/wvdec.c         av_log(ctx, AV_LOG_ERROR, "Invalid block header.\n");
ctx               101 libavformat/wvdec.c         av_log(ctx, AV_LOG_ERROR, "Unsupported version %03X\n", wc->header.version);
ctx               123 libavformat/wvdec.c             av_log(ctx, AV_LOG_ERROR,
ctx               137 libavformat/wvdec.c                     av_log(ctx, AV_LOG_ERROR,
ctx               161 libavformat/wvdec.c                     av_log(ctx, AV_LOG_ERROR,
ctx               176 libavformat/wvdec.c             av_log(ctx, AV_LOG_ERROR,
ctx               192 libavformat/wvdec.c         av_log(ctx, AV_LOG_ERROR,
ctx               198 libavformat/wvdec.c         av_log(ctx, AV_LOG_ERROR,
ctx               204 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]->codec->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 && 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                39 libavutil/aarch64/neontest.h #define testneonclobbers(func, ctx, ...)                        \
ctx                43 libavutil/aarch64/neontest.h     ret = __real_ ## func(ctx, __VA_ARGS__);                    \
ctx                47 libavutil/aarch64/neontest.h         av_log(ctx, AV_LOG_ERROR,                               \
ctx                51 libavutil/aarch64/neontest.h                 av_log(ctx, AV_LOG_ERROR,                       \
ctx                54 libavutil/aarch64/neontest.h                 av_log(ctx, AV_LOG_ERROR,                       \
ctx                36 libavutil/arm/neontest.h #define testneonclobbers(func, ctx, ...)                        \
ctx                40 libavutil/arm/neontest.h     ret = __real_ ## func(ctx, __VA_ARGS__);                    \
ctx                44 libavutil/arm/neontest.h         av_log(ctx, AV_LOG_ERROR,                               \
ctx                48 libavutil/arm/neontest.h                 av_log(ctx, AV_LOG_ERROR,                       \
ctx                51 libavutil/arm/neontest.h                 av_log(ctx, AV_LOG_ERROR,                       \
ctx               297 libavutil/blowfish.c     Xr ^=((( ctx->s[0][ Xl >> 24        ] \
ctx               298 libavutil/blowfish.c            + ctx->s[1][(Xl >> 16) & 0xFF])\
ctx               299 libavutil/blowfish.c            ^ ctx->s[2][(Xl >>  8) & 0xFF])\
ctx               300 libavutil/blowfish.c            + ctx->s[3][ Xl        & 0xFF])\
ctx               303 libavutil/blowfish.c av_cold void av_blowfish_init(AVBlowfish *ctx, const uint8_t *key, int key_len)
ctx               308 libavutil/blowfish.c     memcpy(ctx->s, orig_s, sizeof(orig_s));
ctx               318 libavutil/blowfish.c         ctx->p[i] = orig_p[i] ^ data;
ctx               324 libavutil/blowfish.c         av_blowfish_crypt_ecb(ctx, &data_l, &data_r, 0);
ctx               325 libavutil/blowfish.c         ctx->p[i]     = data_l;
ctx               326 libavutil/blowfish.c         ctx->p[i + 1] = data_r;
ctx               331 libavutil/blowfish.c             av_blowfish_crypt_ecb(ctx, &data_l, &data_r, 0);
ctx               332 libavutil/blowfish.c             ctx->s[i][j]     = data_l;
ctx               333 libavutil/blowfish.c             ctx->s[i][j + 1] = data_r;
ctx               338 libavutil/blowfish.c void av_blowfish_crypt_ecb(AVBlowfish *ctx, uint32_t *xl, uint32_t *xr,
ctx               348 libavutil/blowfish.c         Xl ^= ctx->p[AV_BF_ROUNDS + 1];
ctx               350 libavutil/blowfish.c             F(Xl, Xr, ctx->p[i  ]);
ctx               351 libavutil/blowfish.c             F(Xr, Xl, ctx->p[i-1]);
ctx               354 libavutil/blowfish.c         Xr ^= ctx->p[0];
ctx               356 libavutil/blowfish.c         Xl ^= ctx->p[0];
ctx               358 libavutil/blowfish.c             F(Xl, Xr, ctx->p[i  ]);
ctx               359 libavutil/blowfish.c             F(Xr, Xl, ctx->p[i+1]);
ctx               362 libavutil/blowfish.c         Xr ^= ctx->p[AV_BF_ROUNDS + 1];
ctx               369 libavutil/blowfish.c void av_blowfish_crypt(AVBlowfish *ctx, uint8_t *dst, const uint8_t *src,
ctx               380 libavutil/blowfish.c             av_blowfish_crypt_ecb(ctx, &v0, &v1, decrypt);
ctx               406 libavutil/blowfish.c             av_blowfish_crypt_ecb(ctx, &v0, &v1, decrypt);
ctx               524 libavutil/blowfish.c static void test_blowfish(AVBlowfish *ctx, uint8_t *dst, const uint8_t *src,
ctx               528 libavutil/blowfish.c     av_blowfish_crypt(ctx, dst, src, len, iv, dir);
ctx               544 libavutil/blowfish.c     AVBlowfish ctx;
ctx               550 libavutil/blowfish.c     av_blowfish_init(&ctx, "abcdefghijklmnopqrstuvwxyz", 26);
ctx               552 libavutil/blowfish.c     test_blowfish(&ctx, tmp, plaintext, ciphertext, 1, NULL, 0, "encryption");
ctx               553 libavutil/blowfish.c     test_blowfish(&ctx, tmp, ciphertext, plaintext, 1, NULL, 1, "decryption");
ctx               554 libavutil/blowfish.c     test_blowfish(&ctx, tmp, tmp, ciphertext, 1, NULL, 0, "Inplace encryption");
ctx               555 libavutil/blowfish.c     test_blowfish(&ctx, tmp, tmp, plaintext,  1, NULL, 1, "Inplace decryption");
ctx               557 libavutil/blowfish.c     test_blowfish(&ctx, tmp, plaintext2, ciphertext2, 2, iv, 0, "CBC encryption");
ctx               559 libavutil/blowfish.c     test_blowfish(&ctx, tmp, ciphertext2, plaintext2, 2, iv, 1, "CBC decryption");
ctx               561 libavutil/blowfish.c     test_blowfish(&ctx, tmp, tmp, ciphertext2, 2, iv, 0, "Inplace CBC encryption");
ctx               563 libavutil/blowfish.c     test_blowfish(&ctx, tmp, tmp, plaintext2,  2, iv, 1, "Inplace CBC decryption");
ctx               569 libavutil/blowfish.c         av_blowfish_init(&ctx, variable_key[i], 8);
ctx               571 libavutil/blowfish.c         av_blowfish_crypt_ecb(&ctx, &tmptext_l[i], &tmptext_r[i], 0);
ctx               577 libavutil/blowfish.c         av_blowfish_crypt_ecb(&ctx, &tmptext_l[i], &tmptext_r[i], 1);
ctx                47 libavutil/blowfish.h void av_blowfish_init(struct AVBlowfish *ctx, const uint8_t *key, int key_len);
ctx                57 libavutil/blowfish.h void av_blowfish_crypt_ecb(struct AVBlowfish *ctx, uint32_t *xl, uint32_t *xr,
ctx                70 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                52 libavutil/cast5.h int av_cast5_init(struct AVCAST5 *ctx, const uint8_t *key, int key_bits);
ctx                63 libavutil/cast5.h void av_cast5_crypt(struct AVCAST5 *ctx, uint8_t *dst, const uint8_t *src, int count, int decrypt);
ctx                75 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               309 libavutil/crc.c int av_crc_init(AVCRC *ctx, int le, int bits, uint32_t poly, int ctx_size)
ctx               323 libavutil/crc.c             ctx[i] = c;
ctx               327 libavutil/crc.c             ctx[i] = av_bswap32(c);
ctx               330 libavutil/crc.c     ctx[256] = 1;
ctx               335 libavutil/crc.c                 ctx[256 *(j + 1) + i] =
ctx               336 libavutil/crc.c                     (ctx[256 * j + i] >> 8) ^ ctx[ctx[256 * j + i] & 0xFF];
ctx               356 libavutil/crc.c uint32_t av_crc(const AVCRC *ctx, uint32_t crc,
ctx               362 libavutil/crc.c     if (!ctx[256]) {
ctx               364 libavutil/crc.c             crc = ctx[((uint8_t) crc) ^ *buffer++] ^ (crc >> 8);
ctx               368 libavutil/crc.c             crc = ctx[3 * 256 + ( crc        & 0xFF)] ^
ctx               369 libavutil/crc.c                   ctx[2 * 256 + ((crc >> 8 ) & 0xFF)] ^
ctx               370 libavutil/crc.c                   ctx[1 * 256 + ((crc >> 16) & 0xFF)] ^
ctx               371 libavutil/crc.c                   ctx[0 * 256 + ((crc >> 24)       )];
ctx               376 libavutil/crc.c         crc = ctx[((uint8_t) crc) ^ *buffer++] ^ (crc >> 8);
ctx               393 libavutil/crc.c     const AVCRC *ctx;
ctx               399 libavutil/crc.c         ctx = av_crc_get_table(p[i][0]);
ctx               400 libavutil/crc.c         printf("crc %08X = %X\n", p[i][1], av_crc(ctx, 0, buf, sizeof(buf)));
ctx                63 libavutil/crc.h int av_crc_init(AVCRC *ctx, int le, int bits, uint32_t poly, int ctx_size);
ctx                79 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               158 libavutil/hash.c void av_hash_update(AVHashContext *ctx, const uint8_t *src, int len)
ctx               160 libavutil/hash.c     switch (ctx->type) {
ctx               161 libavutil/hash.c     case MD5:     av_md5_update(ctx->ctx, src, len); break;
ctx               162 libavutil/hash.c     case MURMUR3: av_murmur3_update(ctx->ctx, src, len); break;
ctx               166 libavutil/hash.c     case RIPEMD320: av_ripemd_update(ctx->ctx, src, len); break;
ctx               169 libavutil/hash.c     case SHA256:  av_sha_update(ctx->ctx, src, len); break;
ctx               173 libavutil/hash.c     case SHA512:  av_sha512_update(ctx->ctx, src, len); break;
ctx               174 libavutil/hash.c     case CRC32:   ctx->crc = av_crc(ctx->crctab, ctx->crc, src, len); break;
ctx               175 libavutil/hash.c     case ADLER32: ctx->crc = av_adler32_update(ctx->crc, src, len); break;
ctx               179 libavutil/hash.c void av_hash_final(AVHashContext *ctx, uint8_t *dst)
ctx               181 libavutil/hash.c     switch (ctx->type) {
ctx               182 libavutil/hash.c     case MD5:     av_md5_final(ctx->ctx, dst); break;
ctx               183 libavutil/hash.c     case MURMUR3: av_murmur3_final(ctx->ctx, dst); break;
ctx               187 libavutil/hash.c     case RIPEMD320: av_ripemd_final(ctx->ctx, dst); break;
ctx               190 libavutil/hash.c     case SHA256:  av_sha_final(ctx->ctx, dst); break;
ctx               194 libavutil/hash.c     case SHA512:  av_sha512_final(ctx->ctx, dst); break;
ctx               195 libavutil/hash.c     case CRC32:   AV_WB32(dst, ctx->crc ^ UINT32_MAX); break;
ctx               196 libavutil/hash.c     case ADLER32: AV_WB32(dst, ctx->crc); break;
ctx               200 libavutil/hash.c void av_hash_final_bin(struct AVHashContext *ctx, uint8_t *dst, int size)
ctx               203 libavutil/hash.c     unsigned rsize = av_hash_get_size(ctx);
ctx               205 libavutil/hash.c     av_hash_final(ctx, buf);
ctx               211 libavutil/hash.c void av_hash_final_hex(struct AVHashContext *ctx, uint8_t *dst, int size)
ctx               214 libavutil/hash.c     unsigned rsize = av_hash_get_size(ctx), i;
ctx               216 libavutil/hash.c     av_hash_final(ctx, buf);
ctx               221 libavutil/hash.c void av_hash_final_b64(struct AVHashContext *ctx, uint8_t *dst, int size)
ctx               224 libavutil/hash.c     unsigned rsize = av_hash_get_size(ctx), osize;
ctx               226 libavutil/hash.c     av_hash_final(ctx, buf);
ctx               234 libavutil/hash.c void av_hash_freep(AVHashContext **ctx)
ctx               236 libavutil/hash.c     if (*ctx)
ctx               237 libavutil/hash.c         av_freep(&(*ctx)->ctx);
ctx               238 libavutil/hash.c     av_freep(ctx);
ctx                34 libavutil/hash.h int av_hash_alloc(struct AVHashContext **ctx, const char *name);
ctx                49 libavutil/hash.h const char *av_hash_get_name(const struct AVHashContext *ctx);
ctx                68 libavutil/hash.h int av_hash_get_size(const struct AVHashContext *ctx);
ctx                73 libavutil/hash.h void av_hash_init(struct AVHashContext *ctx);
ctx                78 libavutil/hash.h void av_hash_update(struct AVHashContext *ctx, const uint8_t *src, int len);
ctx                83 libavutil/hash.h void av_hash_final(struct AVHashContext *ctx, uint8_t *dst);
ctx                90 libavutil/hash.h void av_hash_final_bin(struct AVHashContext *ctx, uint8_t *dst, int size);
ctx                97 libavutil/hash.h void av_hash_final_hex(struct AVHashContext *ctx, uint8_t *dst, int size);
ctx               105 libavutil/hash.h void av_hash_final_b64(struct AVHashContext *ctx, uint8_t *dst, int size);
ctx               110 libavutil/hash.h void av_hash_freep(struct AVHashContext **ctx);
ctx                44 libavutil/hmac.c static av_cold void sha ## bits ##_init(void *ctx) \
ctx                46 libavutil/hmac.c     av_sha_init(ctx, bits);                        \
ctx                50 libavutil/hmac.c static av_cold void sha ## bits ##_init(void *ctx) \
ctx                52 libavutil/hmac.c     av_sha512_init(ctx, bits);                     \
ctx                53 libavutil/hmac.h void av_hmac_free(AVHMAC *ctx);
ctx                61 libavutil/hmac.h void av_hmac_init(AVHMAC *ctx, const uint8_t *key, unsigned int keylen);
ctx                69 libavutil/hmac.h void av_hmac_update(AVHMAC *ctx, const uint8_t *data, unsigned int len);
ctx                78 libavutil/hmac.h int av_hmac_final(AVHMAC *ctx, uint8_t *out, unsigned int outlen);
ctx                91 libavutil/hmac.h int av_hmac_calc(AVHMAC *ctx, const uint8_t *data, unsigned int len,
ctx               129 libavutil/internal.h #define FF_ALLOC_OR_GOTO(ctx, p, size, label)\
ctx               133 libavutil/internal.h         av_log(ctx, AV_LOG_ERROR, "Cannot allocate memory.\n");\
ctx               138 libavutil/internal.h #define FF_ALLOCZ_OR_GOTO(ctx, p, size, label)\
ctx               142 libavutil/internal.h         av_log(ctx, AV_LOG_ERROR, "Cannot allocate memory.\n");\
ctx               147 libavutil/internal.h #define FF_ALLOC_ARRAY_OR_GOTO(ctx, p, nelem, elsize, label)\
ctx               151 libavutil/internal.h         av_log(ctx, AV_LOG_ERROR, "Cannot allocate memory.\n");\
ctx               156 libavutil/internal.h #define FF_ALLOCZ_ARRAY_OR_GOTO(ctx, p, nelem, elsize, label)\
ctx               160 libavutil/internal.h         av_log(ctx, AV_LOG_ERROR, "Cannot allocate memory.\n");\
ctx                77 libavutil/log.h     const char* (*item_name)(void* ctx);
ctx               135 libavutil/log.h     AVClassCategory (*get_category)(void* ctx);
ctx               301 libavutil/log.h const char* av_default_item_name(void* ctx);
ctx               138 libavutil/md5.c void av_md5_init(AVMD5 *ctx)
ctx               140 libavutil/md5.c     ctx->len     = 0;
ctx               142 libavutil/md5.c     ctx->ABCD[0] = 0x10325476;
ctx               143 libavutil/md5.c     ctx->ABCD[1] = 0x98badcfe;
ctx               144 libavutil/md5.c     ctx->ABCD[2] = 0xefcdab89;
ctx               145 libavutil/md5.c     ctx->ABCD[3] = 0x67452301;
ctx               148 libavutil/md5.c void av_md5_update(AVMD5 *ctx, const uint8_t *src, int len)
ctx               153 libavutil/md5.c     j = ctx->len & 63;
ctx               154 libavutil/md5.c     ctx->len += len;
ctx               158 libavutil/md5.c         memcpy(ctx->block + j, src, cnt);
ctx               163 libavutil/md5.c         body(ctx->ABCD, (uint32_t *)ctx->block, 1);
ctx               169 libavutil/md5.c            memcpy(ctx->block, src, 64);
ctx               170 libavutil/md5.c            body(ctx->ABCD, (uint32_t *) ctx->block, 1);
ctx               175 libavutil/md5.c         body(ctx->ABCD, (uint32_t *)src, nblocks);
ctx               180 libavutil/md5.c         memcpy(ctx->block, src, len);
ctx               183 libavutil/md5.c void av_md5_final(AVMD5 *ctx, uint8_t *dst)
ctx               186 libavutil/md5.c     uint64_t finalcount = av_le2ne64(ctx->len << 3);
ctx               188 libavutil/md5.c     av_md5_update(ctx, "\200", 1);
ctx               189 libavutil/md5.c     while ((ctx->len & 63) != 56)
ctx               190 libavutil/md5.c         av_md5_update(ctx, "", 1);
ctx               192 libavutil/md5.c     av_md5_update(ctx, (uint8_t *)&finalcount, 8);
ctx               195 libavutil/md5.c         AV_WL32(dst + 4*i, ctx->ABCD[3 - i]);
ctx               200 libavutil/md5.c     AVMD5 ctx;
ctx               202 libavutil/md5.c     av_md5_init(&ctx);
ctx               203 libavutil/md5.c     av_md5_update(&ctx, src, len);
ctx               204 libavutil/md5.c     av_md5_final(&ctx, dst);
ctx                49 libavutil/md5.h void av_md5_init(struct AVMD5 *ctx);
ctx                58 libavutil/md5.h void av_md5_update(struct AVMD5 *ctx, const uint8_t *src, int len);
ctx                66 libavutil/md5.h void av_md5_final(struct AVMD5 *ctx, uint8_t *dst);
ctx               162 libavutil/murmur3.c     AVMurMur3 *ctx = av_murmur3_alloc();
ctx               169 libavutil/murmur3.c         av_murmur3_init_seeded(ctx, 256 - i);
ctx               171 libavutil/murmur3.c         av_murmur3_update(ctx, in, i);
ctx               172 libavutil/murmur3.c         av_murmur3_final(ctx, hashes + 16 * i);
ctx               174 libavutil/murmur3.c     av_murmur3_init_seeded(ctx, 0);
ctx               175 libavutil/murmur3.c     av_murmur3_update(ctx, hashes, 256 * 16);
ctx               176 libavutil/murmur3.c     av_murmur3_final(ctx, hash_result);
ctx               178 libavutil/murmur3.c     av_freep(&ctx);
ctx               184 libavutil/murmur3.c     av_murmur3_init(ctx);
ctx               186 libavutil/murmur3.c         av_murmur3_update(ctx, in, 512*1024);
ctx               187 libavutil/murmur3.c     av_murmur3_final(ctx, hash_result);
ctx                34 libavutil/opencl_internal.c         av_log(opencl_param->ctx, AV_LOG_ERROR, "OpenCL kernel must be set\n");
ctx                44 libavutil/opencl_internal.c             av_log(opencl_param->ctx, AV_LOG_ERROR, "Parameter size must not be 0\n");
ctx                50 libavutil/opencl_internal.c             av_log(opencl_param->ctx, AV_LOG_ERROR, "Cannot set kernel argument: %s\n", av_opencl_errstr(status));
ctx                30 libavutil/opencl_internal.h     void *ctx;
ctx              1268 libavutil/opt.c static int parse_key_value_pair(void *ctx, const char **buf,
ctx              1286 libavutil/opt.c         av_log(ctx, AV_LOG_ERROR, "Missing key or no key/value separator found after key '%s'\n", key);
ctx              1291 libavutil/opt.c     av_log(ctx, AV_LOG_DEBUG, "Setting entry with key '%s' to value '%s'\n", key, val);
ctx              1293 libavutil/opt.c     ret = av_opt_set(ctx, key, val, AV_OPT_SEARCH_CHILDREN);
ctx              1295 libavutil/opt.c         av_log(ctx, AV_LOG_ERROR, "Key '%s' not found.\n", key);
ctx              1302 libavutil/opt.c int av_set_options_string(void *ctx, const char *opts,
ctx              1311 libavutil/opt.c         if ((ret = parse_key_value_pair(ctx, &opts, key_val_sep, pairs_sep)) < 0)
ctx              1382 libavutil/opt.c int av_opt_set_from_string(void *ctx, const char *opts,
ctx              1402 libavutil/opt.c                 av_log(ctx, AV_LOG_ERROR, "No option name near '%s'\n", opts);
ctx              1404 libavutil/opt.c                 av_log(ctx, AV_LOG_ERROR, "Unable to parse '%s': %s\n", opts,
ctx              1418 libavutil/opt.c         av_log(ctx, AV_LOG_DEBUG, "Setting '%s' to value '%s'\n", key, value);
ctx              1419 libavutil/opt.c         if ((ret = av_opt_set(ctx, key, value, 0)) < 0) {
ctx              1421 libavutil/opt.c                 av_log(ctx, AV_LOG_ERROR, "Option '%s' not found\n", key);
ctx              1956 libavutil/opt.c static const char *test_get_name(void *ctx)
ctx               463 libavutil/opt.h int av_set_options_string(void *ctx, const char *opts,
ctx               493 libavutil/opt.h int av_opt_set_from_string(void *ctx, const char *opts,
ctx               369 libavutil/ripemd.c av_cold int av_ripemd_init(AVRIPEMD *ctx, int bits)
ctx               371 libavutil/ripemd.c     ctx->digest_len = bits >> 5;
ctx               374 libavutil/ripemd.c         ctx->state[0] = 0x67452301;
ctx               375 libavutil/ripemd.c         ctx->state[1] = 0xEFCDAB89;
ctx               376 libavutil/ripemd.c         ctx->state[2] = 0x98BADCFE;
ctx               377 libavutil/ripemd.c         ctx->state[3] = 0x10325476;
ctx               378 libavutil/ripemd.c         ctx->transform = ripemd128_transform;
ctx               379 libavutil/ripemd.c         ctx->ext = 0;
ctx               382 libavutil/ripemd.c         ctx->state[0] = 0x67452301;
ctx               383 libavutil/ripemd.c         ctx->state[1] = 0xEFCDAB89;
ctx               384 libavutil/ripemd.c         ctx->state[2] = 0x98BADCFE;
ctx               385 libavutil/ripemd.c         ctx->state[3] = 0x10325476;
ctx               386 libavutil/ripemd.c         ctx->state[4] = 0xC3D2E1F0;
ctx               387 libavutil/ripemd.c         ctx->transform = ripemd160_transform;
ctx               388 libavutil/ripemd.c         ctx->ext = 0;
ctx               391 libavutil/ripemd.c         ctx->state[0] = 0x67452301;
ctx               392 libavutil/ripemd.c         ctx->state[1] = 0xEFCDAB89;
ctx               393 libavutil/ripemd.c         ctx->state[2] = 0x98BADCFE;
ctx               394 libavutil/ripemd.c         ctx->state[3] = 0x10325476;
ctx               395 libavutil/ripemd.c         ctx->state[4] = 0x76543210;
ctx               396 libavutil/ripemd.c         ctx->state[5] = 0xFEDCBA98;
ctx               397 libavutil/ripemd.c         ctx->state[6] = 0x89ABCDEF;
ctx               398 libavutil/ripemd.c         ctx->state[7] = 0x01234567;
ctx               399 libavutil/ripemd.c         ctx->transform = ripemd128_transform;
ctx               400 libavutil/ripemd.c         ctx->ext = 1;
ctx               403 libavutil/ripemd.c         ctx->state[0] = 0x67452301;
ctx               404 libavutil/ripemd.c         ctx->state[1] = 0xEFCDAB89;
ctx               405 libavutil/ripemd.c         ctx->state[2] = 0x98BADCFE;
ctx               406 libavutil/ripemd.c         ctx->state[3] = 0x10325476;
ctx               407 libavutil/ripemd.c         ctx->state[4] = 0xC3D2E1F0;
ctx               408 libavutil/ripemd.c         ctx->state[5] = 0x76543210;
ctx               409 libavutil/ripemd.c         ctx->state[6] = 0xFEDCBA98;
ctx               410 libavutil/ripemd.c         ctx->state[7] = 0x89ABCDEF;
ctx               411 libavutil/ripemd.c         ctx->state[8] = 0x01234567;
ctx               412 libavutil/ripemd.c         ctx->state[9] = 0x3C2D1E0F;
ctx               413 libavutil/ripemd.c         ctx->transform = ripemd160_transform;
ctx               414 libavutil/ripemd.c         ctx->ext = 1;
ctx               419 libavutil/ripemd.c     ctx->count = 0;
ctx               423 libavutil/ripemd.c void av_ripemd_update(AVRIPEMD* ctx, const uint8_t* data, unsigned int len)
ctx               427 libavutil/ripemd.c     j = ctx->count & 63;
ctx               428 libavutil/ripemd.c     ctx->count += len;
ctx               431 libavutil/ripemd.c         ctx->buffer[j++] = data[i];
ctx               433 libavutil/ripemd.c             ctx->transform(ctx->state, ctx->buffer, ctx->ext);
ctx               439 libavutil/ripemd.c         memcpy(&ctx->buffer[j], data, (i = 64 - j));
ctx               440 libavutil/ripemd.c         ctx->transform(ctx->state, ctx->buffer, ctx->ext);
ctx               442 libavutil/ripemd.c             ctx->transform(ctx->state, &data[i], ctx->ext);
ctx               446 libavutil/ripemd.c     memcpy(&ctx->buffer[j], &data[i], len - i);
ctx               450 libavutil/ripemd.c void av_ripemd_final(AVRIPEMD* ctx, uint8_t *digest)
ctx               453 libavutil/ripemd.c     uint64_t finalcount = av_le2ne64(ctx->count << 3);
ctx               455 libavutil/ripemd.c     av_ripemd_update(ctx, "\200", 1);
ctx               456 libavutil/ripemd.c     while ((ctx->count & 63) != 56)
ctx               457 libavutil/ripemd.c         av_ripemd_update(ctx, "", 1);
ctx               458 libavutil/ripemd.c     av_ripemd_update(ctx, (uint8_t *)&finalcount, 8); /* Should cause a transform() */
ctx               459 libavutil/ripemd.c     for (i = 0; i < ctx->digest_len; i++)
ctx               460 libavutil/ripemd.c         AV_WL32(digest + i*4, ctx->state[i]);
ctx               469 libavutil/ripemd.c     AVRIPEMD ctx;
ctx               476 libavutil/ripemd.c             av_ripemd_init(&ctx, lengths[j]);
ctx               478 libavutil/ripemd.c                 av_ripemd_update(&ctx, "abc", 3);
ctx               480 libavutil/ripemd.c                 av_ripemd_update(&ctx, "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", 56);
ctx               483 libavutil/ripemd.c                     av_ripemd_update(&ctx, "a", 1);
ctx               484 libavutil/ripemd.c             av_ripemd_final(&ctx, digest);
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               314 libavutil/sha.c void av_sha_update(AVSHA* ctx, const uint8_t* data, unsigned int len)
ctx               318 libavutil/sha.c     j = ctx->count & 63;
ctx               319 libavutil/sha.c     ctx->count += len;
ctx               322 libavutil/sha.c         ctx->buffer[j++] = data[i];
ctx               324 libavutil/sha.c             ctx->transform(ctx->state, ctx->buffer);
ctx               330 libavutil/sha.c         memcpy(&ctx->buffer[j], data, (i = 64 - j));
ctx               331 libavutil/sha.c         ctx->transform(ctx->state, ctx->buffer);
ctx               333 libavutil/sha.c             ctx->transform(ctx->state, &data[i]);
ctx               337 libavutil/sha.c     memcpy(&ctx->buffer[j], &data[i], len - i);
ctx               341 libavutil/sha.c void av_sha_final(AVSHA* ctx, uint8_t *digest)
ctx               344 libavutil/sha.c     uint64_t finalcount = av_be2ne64(ctx->count << 3);
ctx               346 libavutil/sha.c     av_sha_update(ctx, "\200", 1);
ctx               347 libavutil/sha.c     while ((ctx->count & 63) != 56)
ctx               348 libavutil/sha.c         av_sha_update(ctx, "", 1);
ctx               349 libavutil/sha.c     av_sha_update(ctx, (uint8_t *)&finalcount, 8); /* Should cause a transform() */
ctx               350 libavutil/sha.c     for (i = 0; i < ctx->digest_len; i++)
ctx               351 libavutil/sha.c         AV_WB32(digest + i*4, ctx->state[i]);
ctx               360 libavutil/sha.c     AVSHA ctx;
ctx               367 libavutil/sha.c             av_sha_init(&ctx, lengths[j]);
ctx               369 libavutil/sha.c                 av_sha_update(&ctx, "abc", 3);
ctx               371 libavutil/sha.c                 av_sha_update(&ctx, "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", 56);
ctx               374 libavutil/sha.c                     av_sha_update(&ctx, "a", 1);
ctx               375 libavutil/sha.c             av_sha_final(&ctx, digest);
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               242 libavutil/sha512.c void av_sha512_update(AVSHA512* ctx, const uint8_t* data, unsigned int len)
ctx               246 libavutil/sha512.c     j = ctx->count & 127;
ctx               247 libavutil/sha512.c     ctx->count += len;
ctx               250 libavutil/sha512.c         ctx->buffer[j++] = data[i];
ctx               252 libavutil/sha512.c             sha512_transform(ctx->state, ctx->buffer);
ctx               258 libavutil/sha512.c         memcpy(&ctx->buffer[j], data, (i = 128 - j));
ctx               259 libavutil/sha512.c         sha512_transform(ctx->state, ctx->buffer);
ctx               261 libavutil/sha512.c             sha512_transform(ctx->state, &data[i]);
ctx               265 libavutil/sha512.c     memcpy(&ctx->buffer[j], &data[i], len - i);
ctx               269 libavutil/sha512.c void av_sha512_final(AVSHA512* ctx, uint8_t *digest)
ctx               272 libavutil/sha512.c     uint64_t finalcount = av_be2ne64(ctx->count << 3);
ctx               274 libavutil/sha512.c     av_sha512_update(ctx, "\200", 1);
ctx               275 libavutil/sha512.c     while ((ctx->count & 127) != 112)
ctx               276 libavutil/sha512.c         av_sha512_update(ctx, "", 1);
ctx               277 libavutil/sha512.c     av_sha512_update(ctx, (uint8_t *)&i, 8);
ctx               278 libavutil/sha512.c     av_sha512_update(ctx, (uint8_t *)&finalcount, 8); /* Should cause a transform() */
ctx               279 libavutil/sha512.c     for (i = 0; i < ctx->digest_len; i++)
ctx               280 libavutil/sha512.c         AV_WB64(digest + i*8, ctx->state[i]);
ctx               281 libavutil/sha512.c     if (ctx->digest_len & 1) /* SHA512/224 is 28 bytes, and is not divisible by 8. */
ctx               282 libavutil/sha512.c         AV_WB32(digest + i*8, ctx->state[i] >> 32);
ctx               291 libavutil/sha512.c     AVSHA512 ctx;
ctx               299 libavutil/sha512.c             av_sha512_init(&ctx, lengths[j]);
ctx               301 libavutil/sha512.c                 av_sha512_update(&ctx, "abc", 3);
ctx               303 libavutil/sha512.c                 av_sha512_update(&ctx, "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
ctx               307 libavutil/sha512.c                     av_sha512_update(&ctx, "a", 1);
ctx               308 libavutil/sha512.c             av_sha512_final(&ctx, digest);
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                44 libavutil/x86/w64xmmtest.h #define testxmmclobbers(func, ctx, ...)                         \
ctx                48 libavutil/x86/w64xmmtest.h     ret = __real_ ## func(ctx, __VA_ARGS__);                    \
ctx                52 libavutil/x86/w64xmmtest.h         av_log(ctx, AV_LOG_ERROR,                               \
ctx                57 libavutil/x86/w64xmmtest.h                 av_log(ctx, AV_LOG_ERROR,                       \
ctx                61 libavutil/x86/w64xmmtest.h                 av_log(ctx, AV_LOG_ERROR,                       \
ctx                36 libavutil/xtea.c void av_xtea_init(AVXTEA *ctx, const uint8_t key[16])
ctx                41 libavutil/xtea.c         ctx->key[i] = AV_RB32(key + (i << 2));
ctx                44 libavutil/xtea.c static void xtea_crypt_ecb(AVXTEA *ctx, uint8_t *dst, const uint8_t *src,
ctx                49 libavutil/xtea.c     uint32_t k0 = ctx->key[0];
ctx                50 libavutil/xtea.c     uint32_t k1 = ctx->key[1];
ctx                51 libavutil/xtea.c     uint32_t k2 = ctx->key[2];
ctx                52 libavutil/xtea.c     uint32_t k3 = ctx->key[3];
ctx                64 libavutil/xtea.c             v1 -= (((v0 << 4) ^ (v0 >> 5)) + v0) ^ (sum + ctx->key[(sum >> 11) & 3]);
ctx                66 libavutil/xtea.c             v0 -= (((v1 << 4) ^ (v1 >> 5)) + v1) ^ (sum + ctx->key[sum & 3]);
ctx               117 libavutil/xtea.c             v0 += (((v1 << 4) ^ (v1 >> 5)) + v1) ^ (sum + ctx->key[sum & 3]);
ctx               119 libavutil/xtea.c             v1 += (((v0 << 4) ^ (v0 >> 5)) + v0) ^ (sum + ctx->key[(sum >> 11) & 3]);
ctx               164 libavutil/xtea.c void av_xtea_crypt(AVXTEA *ctx, uint8_t *dst, const uint8_t *src, int count,
ctx               171 libavutil/xtea.c             xtea_crypt_ecb(ctx, dst, src, decrypt, iv);
ctx               181 libavutil/xtea.c                 xtea_crypt_ecb(ctx, dst, dst, decrypt, NULL);
ctx               184 libavutil/xtea.c                 xtea_crypt_ecb(ctx, dst, src, decrypt, NULL);
ctx               230 libavutil/xtea.c static void test_xtea(AVXTEA *ctx, uint8_t *dst, const uint8_t *src,
ctx               234 libavutil/xtea.c     av_xtea_crypt(ctx, dst, src, len, iv, dir);
ctx               250 libavutil/xtea.c     AVXTEA ctx;
ctx               258 libavutil/xtea.c         av_xtea_init(&ctx, xtea_test_key[i]);
ctx               260 libavutil/xtea.c         test_xtea(&ctx, buf, xtea_test_pt[i], xtea_test_ct[i], 1, NULL, 0, "encryption");
ctx               261 libavutil/xtea.c         test_xtea(&ctx, buf, xtea_test_ct[i], xtea_test_pt[i], 1, NULL, 1, "decryption");
ctx               265 libavutil/xtea.c         av_xtea_crypt(&ctx, ct, src, 4, iv, 0);
ctx               269 libavutil/xtea.c         test_xtea(&ctx, pl, ct, src, 4, iv, 1, "CBC decryption");
ctx               272 libavutil/xtea.c         test_xtea(&ctx, ct, ct, src, 4, iv, 1, "CBC inplace decryption");
ctx                45 libavutil/xtea.h void av_xtea_init(struct AVXTEA *ctx, const uint8_t key[16]);
ctx                57 libavutil/xtea.h void av_xtea_crypt(struct AVXTEA *ctx, uint8_t *dst, const uint8_t *src,
ctx               128 libswresample/audioconvert.c     AudioConvert *ctx;
ctx               133 libswresample/audioconvert.c     ctx = av_mallocz(sizeof(*ctx));
ctx               134 libswresample/audioconvert.c     if (!ctx)
ctx               142 libswresample/audioconvert.c     ctx->channels = channels;
ctx               143 libswresample/audioconvert.c     ctx->conv_f   = f;
ctx               144 libswresample/audioconvert.c     ctx->ch_map   = ch_map;
ctx               146 libswresample/audioconvert.c         memset(ctx->silence, 0x80, sizeof(ctx->silence));
ctx               150 libswresample/audioconvert.c             case 1:ctx->simd_f = cpy1; break;
ctx               151 libswresample/audioconvert.c             case 2:ctx->simd_f = cpy2; break;
ctx               152 libswresample/audioconvert.c             case 4:ctx->simd_f = cpy4; break;
ctx               153 libswresample/audioconvert.c             case 8:ctx->simd_f = cpy8; break;
ctx               157 libswresample/audioconvert.c     if(HAVE_YASM && HAVE_MMX) swri_audio_convert_init_x86(ctx, out_fmt, in_fmt, channels);
ctx               158 libswresample/audioconvert.c     if(ARCH_ARM)              swri_audio_convert_init_arm(ctx, out_fmt, in_fmt, channels);
ctx               159 libswresample/audioconvert.c     if(ARCH_AARCH64)          swri_audio_convert_init_aarch64(ctx, out_fmt, in_fmt, channels);
ctx               161 libswresample/audioconvert.c     return ctx;
ctx               164 libswresample/audioconvert.c void swri_audio_convert_free(AudioConvert **ctx)
ctx               166 libswresample/audioconvert.c     av_freep(ctx);
ctx               169 libswresample/audioconvert.c int swri_audio_convert(AudioConvert *ctx, AudioData *out, AudioData *in, int len)
ctx               176 libswresample/audioconvert.c     av_assert0(ctx->channels == out->ch_count);
ctx               178 libswresample/audioconvert.c     if (ctx->in_simd_align_mask) {
ctx               183 libswresample/audioconvert.c         misaligned |= m & ctx->in_simd_align_mask;
ctx               185 libswresample/audioconvert.c     if (ctx->out_simd_align_mask) {
ctx               190 libswresample/audioconvert.c         misaligned |= m & ctx->out_simd_align_mask;
ctx               195 libswresample/audioconvert.c     if(ctx->simd_f && !ctx->ch_map && !misaligned){
ctx               199 libswresample/audioconvert.c         av_assert2(ctx->channels == SWR_CH_MAX || !in->ch[ctx->channels]);
ctx               204 libswresample/audioconvert.c                     ctx->simd_f(out->ch+ch, (const uint8_t **)in->ch+ch, off * (out->planar ? 1 :out->ch_count));
ctx               207 libswresample/audioconvert.c                 ctx->simd_f(out->ch, (const uint8_t **)in->ch, off);
ctx               214 libswresample/audioconvert.c     for(ch=0; ch<ctx->channels; ch++){
ctx               215 libswresample/audioconvert.c         const int ich= ctx->ch_map ? ctx->ch_map[ch] : ch;
ctx               217 libswresample/audioconvert.c         const uint8_t *pi= ich < 0 ? ctx->silence : in->ch[ich];
ctx               222 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               496 tools/ismindex.c     AVFormatContext *ctx = NULL;
ctx               501 tools/ismindex.c     err = avformat_open_input(&ctx, file, NULL, NULL);
ctx               508 tools/ismindex.c     err = avformat_find_stream_info(ctx, NULL);
ctx               515 tools/ismindex.c     if (ctx->nb_streams < 1) {
ctx               520 tools/ismindex.c     for (i = 0; i < ctx->nb_streams; i++) {
ctx               522 tools/ismindex.c         AVStream *st = ctx->streams[i];
ctx               602 tools/ismindex.c     avformat_close_input(&ctx);
ctx               608 tools/ismindex.c     if (ctx)
ctx               609 tools/ismindex.c         avformat_close_input(&ctx);
ctx               118 tools/sidxindex.c     AVFormatContext *ctx = NULL;
ctx               123 tools/sidxindex.c     err = avformat_open_input(&ctx, file, NULL, NULL);
ctx               130 tools/sidxindex.c     err = avformat_find_stream_info(ctx, NULL);
ctx               137 tools/sidxindex.c     if (ctx->nb_streams < 1) {
ctx               141 tools/sidxindex.c     if (ctx->nb_streams > 1)
ctx               144 tools/sidxindex.c     for (i = 0; i < ctx->nb_streams; i++) {
ctx               146 tools/sidxindex.c         AVStream *st = ctx->streams[i];
ctx               205 tools/sidxindex.c     avformat_close_input(&ctx);
ctx               210 tools/sidxindex.c     if (ctx)
ctx               211 tools/sidxindex.c         avformat_close_input(&ctx);