Lines Matching refs:dec_ctx

182     ist->sub2video.frame->width  = ist->dec_ctx->width  ? ist->dec_ctx->width  : ist->sub2video.w;
183 ist->sub2video.frame->height = ist->dec_ctx->height ? ist->dec_ctx->height : ist->sub2video.h;
267 av_log(ist->dec_ctx, AV_LOG_ERROR,
625 avcodec_free_context(&ist->dec_ctx);
1439 enum AVMediaType type = ist->dec_ctx->codec_type;
1867 int duration = av_get_audio_frame_duration(ist->dec_ctx, pkt->size);
1869 duration = ist->dec_ctx->frame_size;
1871 (AVRational){1, ist->dec_ctx->sample_rate}, duration,
1890 AVCodecContext *dec = ist->dec_ctx;
2092 AVCodecContext *avctx = ist->dec_ctx;
2179 ret = decode(ist->dec_ctx, decoded_frame, got_output, pkt);
2186 if (ist->st->codecpar->video_delay < ist->dec_ctx->has_b_frames) {
2187 if (ist->dec_ctx->codec_id == AV_CODEC_ID_H264) {
2188 ist->st->codecpar->video_delay = ist->dec_ctx->has_b_frames;
2190 av_log(ist->dec_ctx, AV_LOG_WARNING,
2195 ist->dec_ctx->has_b_frames,
2203 if (ist->dec_ctx->width != decoded_frame->width ||
2204 ist->dec_ctx->height != decoded_frame->height ||
2205 ist->dec_ctx->pix_fmt != decoded_frame->format) {
2210 ist->dec_ctx->width,
2211 ist->dec_ctx->height,
2212 ist->dec_ctx->pix_fmt);
2225 err = ist->hwaccel_retrieve_data(ist->dec_ctx, decoded_frame);
2278 int i, ret = avcodec_decode_subtitle2(ist->dec_ctx,
2296 av_log(ist->dec_ctx, AV_LOG_DEBUG,
2374 ist->dts = ist->st->avg_frame_rate.num ? - ist->dec_ctx->has_b_frames * AV_TIME_BASE / av_q2d(ist->st->avg_frame_rate) : 0;
2398 if (ist->dec_ctx->codec_type != AVMEDIA_TYPE_VIDEO || !ist->decoding_needed)
2412 switch (ist->dec_ctx->codec_type) {
2424 } else if(ist->dec_ctx->framerate.num != 0 && ist->dec_ctx->framerate.den != 0) {
2425 int ticks= av_stream_get_parser(ist->st) ? av_stream_get_parser(ist->st)->repeat_pict+1 : ist->dec_ctx->ticks_per_frame;
2427 ist->dec_ctx->framerate.den * ticks) /
2428 ist->dec_ctx->framerate.num / ist->dec_ctx->ticks_per_frame;
2509 switch (ist->dec_ctx->codec_type) {
2512 if (ist->dec_ctx->sample_rate) {
2513 ist->next_dts += ((int64_t)AV_TIME_BASE * ist->dec_ctx->frame_size) /
2514 ist->dec_ctx->sample_rate;
2527 } else if(ist->dec_ctx->framerate.num != 0) {
2528 int ticks= av_stream_get_parser(ist->st) ? av_stream_get_parser(ist->st)->repeat_pict + 1 : ist->dec_ctx->ticks_per_frame;
2530 ist->dec_ctx->framerate.den * ticks) /
2531 ist->dec_ctx->framerate.num / ist->dec_ctx->ticks_per_frame;
2610 avcodec_get_name(ist->dec_ctx->codec_id), ist->file_index, ist->st->index);
2614 ist->dec_ctx->opaque = ist;
2615 ist->dec_ctx->get_format = get_format;
2618 ist->dec_ctx->thread_safe_callbacks = 1;
2622 if (ist->dec_ctx->codec_id == AV_CODEC_ID_DVB_SUBTITLE &&
2631 ist->dec_ctx->pkt_timebase = ist->st->time_base;
2647 if ((ret = avcodec_open2(ist->dec_ctx, codec, &ist->decoder_opts)) < 0) {
2958 AVCodecContext *dec_ctx = NULL;
2966 dec_ctx = ist->dec_ctx;
3008 else if (dec_ctx && ost->filter->graph->is_meta)
3009 enc_ctx->bits_per_raw_sample = FFMIN(dec_ctx->bits_per_raw_sample,
3039 else if (dec_ctx && ost->filter->graph->is_meta)
3040 enc_ctx->bits_per_raw_sample = FFMIN(dec_ctx->bits_per_raw_sample,
3132 dec = ist->dec_ctx;
3598 debug = input_streams[0]->dec_ctx->debug << 1;
3617 input_streams[i]->dec_ctx->debug = debug;
3842 avctx = ist->dec_ctx;
3853 avctx = ist->dec_ctx;
3917 avctx = ist->dec_ctx;
4004 ifile->ist_index + pkt->stream_index, av_get_media_type_string(ist->dec_ctx->codec_type),
4080 if ((ist->dec_ctx->codec_type == AVMEDIA_TYPE_VIDEO ||
4081 ist->dec_ctx->codec_type == AVMEDIA_TYPE_AUDIO) &&
4118 if ((ist->dec_ctx->codec_type == AVMEDIA_TYPE_VIDEO ||
4119 ist->dec_ctx->codec_type == AVMEDIA_TYPE_AUDIO) &&
4132 av_get_media_type_string(ist->dec_ctx->codec_type),
4161 ifile->ist_index + pkt->stream_index, av_get_media_type_string(ist->dec_ctx->codec_type),
4433 avcodec_close(ist->dec_ctx);
4435 ist->hwaccel_uninit(ist->dec_ctx);