Home
last modified time | relevance | path

Searched refs:ticks_per_frame (Results 1 - 25 of 35) sorted by relevance

12

/third_party/ffmpeg/libavformat/
H A Davformat.c624 if (avctx->ticks_per_frame > 1) { in av_guess_frame_rate()
656 enc_ctx->ticks_per_frame = 2; in avformat_transfer_internal_stream_timing_info()
659 if (copy_tb == AVFMT_TBCF_AUTO && av_q2d(dec_ctx->time_base)*dec_ctx->ticks_per_frame > 2*av_q2d(ist->time_base) in avformat_transfer_internal_stream_timing_info()
663 enc_ctx->time_base.num *= dec_ctx->ticks_per_frame; in avformat_transfer_internal_stream_timing_info()
665 enc_ctx->ticks_per_frame = 2; in avformat_transfer_internal_stream_timing_info()
670 && av_q2d(dec_ctx->time_base)*dec_ctx->ticks_per_frame > av_q2d(ist->time_base) in avformat_transfer_internal_stream_timing_info()
674 enc_ctx->time_base.num *= dec_ctx->ticks_per_frame; in avformat_transfer_internal_stream_timing_info()
H A Ddemux.c677 av_assert0(sti->avctx->ticks_per_frame); in compute_frame_duration()
680 codec_framerate.num * (int64_t)sti->avctx->ticks_per_frame, in compute_frame_duration()
692 if (sti->avctx->ticks_per_frame > 1 && !pc) in compute_frame_duration()
2737 sti->info->codec_info_duration_fields += sti->parser && sti->need_parsing && avctx->ticks_per_frame == 2 in avformat_find_stream_info()
2879 <= avctx->time_base.num * (uint64_t)avctx->ticks_per_frame * st->time_base.den) { in avformat_find_stream_info()
2881 avctx->time_base.den, (int64_t)avctx->time_base.num * avctx->ticks_per_frame, INT_MAX); in avformat_find_stream_info()
/third_party/ffmpeg/libavcodec/
H A Dmpegvideo_parser.c148 avctx->ticks_per_frame = 1; in mpegvideo_extract_headers()
180 avctx->ticks_per_frame = 2; in mpegvideo_extract_headers()
247 avctx->time_base = av_inv_q(av_mul_q(avctx->framerate, (AVRational){avctx->ticks_per_frame, 1})); in mpegvideo_extract_headers()
H A Dvc1_parser.c92 if (avctx->ticks_per_frame > 1){ in vc1_extract_header()
96 // So ticks_per_frame will be 2 in vc1_extract_header()
116 avctx->time_base = av_inv_q(av_mul_q(avctx->framerate, (AVRational){avctx->ticks_per_frame, 1})); in vc1_extract_header()
H A Dlibkvazaar.c88 if (avctx->ticks_per_frame > INT_MAX / avctx->time_base.num) { in libkvazaar_init()
94 cfg->framerate_denom = avctx->time_base.num * avctx->ticks_per_frame; in libkvazaar_init()
H A Dencode.c446 if (avctx->ticks_per_frame && avctx->time_base.num && in encode_preinit_video()
447 avctx->ticks_per_frame > INT_MAX / avctx->time_base.num) { in encode_preinit_video()
449 "ticks_per_frame %d too large for the timebase %d/%d.", in encode_preinit_video()
450 avctx->ticks_per_frame, in encode_preinit_video()
H A Dlibopenh264enc.c164 if (avctx->ticks_per_frame > INT_MAX / avctx->time_base.num) { in svc_encode_init()
169 param.fMaxFrameRate = 1.0 / av_q2d(avctx->time_base) / FFMAX(avctx->ticks_per_frame, 1); in svc_encode_init()
H A Dav1_parser.c166 avctx->time_base = av_inv_q(av_mul_q(avctx->framerate, (AVRational){avctx->ticks_per_frame, 1})); in av1_parser_parse()
H A Dh264_parser.c571 sps->num_units_in_tick * avctx->ticks_per_frame, den, 1 << 30); in parse_nal_units()
627 avctx->time_base = av_inv_q(av_mul_q(avctx->framerate, (AVRational){avctx->ticks_per_frame, 1})); in h264_parse()
H A Davcodec.h521 int ticks_per_frame; member
H A Damfenc_hevc.c112 framerate = AMFConstructRate(avctx->time_base.den, avctx->time_base.num * avctx->ticks_per_frame); in amf_encode_init_hevc()
H A Dlibrav1e.c214 avctx->time_base.num * avctx->ticks_per_frame, in librav1e_encode_init()
H A Damfenc_h264.c145 framerate = AMFConstructRate(avctx->time_base.den, avctx->time_base.num * avctx->ticks_per_frame); in amf_encode_init_h264()
H A Dflashsv2enc.c789 double ideal = ((double)(s->avctx->bit_rate * s->avctx->time_base.den * s->avctx->ticks_per_frame)) / in optimum_use15_7()
806 s->avctx->ticks_per_frame; in optimum_dist()
H A Dh264dec.c385 if (avctx->ticks_per_frame == 1) { in h264_decode_init()
391 avctx->ticks_per_frame = 2; in h264_decode_init()
H A Dpthread_frame.c302 dst->ticks_per_frame = src->ticks_per_frame; in update_context_from_thread()
H A Dlibsvtav1.c248 param->frame_rate_denominator = avctx->time_base.num * avctx->ticks_per_frame; in config_enc_params()
H A Dlibdav1d.c162 c->ticks_per_frame = seq->num_ticks_per_picture; in libdav1d_init_params()
H A Davcodec.c363 avctx->time_base = av_inv_q(av_mul_q(avctx->framerate, (AVRational){avctx->ticks_per_frame, 1})); in avcodec_open2()
H A Dlibx265.c166 ctx->params->fpsDenom = avctx->time_base.num * avctx->ticks_per_frame; in libx265_encode_init()
H A Dmsmpeg4enc.c282 unsigned fps = s->avctx->time_base.den / s->avctx->time_base.num / FFMAX(s->avctx->ticks_per_frame, 1); in ff_msmpeg4_encode_ext_header()
H A Dlibvpxenc.c1756 avctx->ticks_per_frame, flags, ctx->deadline); in vpx_encode()
1764 avctx->ticks_per_frame, flags, ctx->deadline); in vpx_encode()
H A Dnvenc.c1396 ctx->init_encode_params.frameRateDen = avctx->time_base.num * avctx->ticks_per_frame; in nvenc_setup_encoder()
2035 pkt->dts -= FFMAX(ctx->encode_config.frameIntervalP - 1, 0) * FFMAX(avctx->ticks_per_frame, 1) * FFMAX(avctx->time_base.num, 1); in nvenc_set_timestamp()
H A Dav1dec.c709 avctx->ticks_per_frame = seq->timing_info.num_ticks_per_picture_minus_1 + 1; in set_context_with_sequence()
/third_party/ffmpeg/fftools/
H A Dffmpeg.c2425 int ticks= av_stream_get_parser(ist->st) ? av_stream_get_parser(ist->st)->repeat_pict+1 : ist->dec_ctx->ticks_per_frame; in process_input_packet()
2428 ist->dec_ctx->framerate.num / ist->dec_ctx->ticks_per_frame; in process_input_packet()
2528 int ticks= av_stream_get_parser(ist->st) ? av_stream_get_parser(ist->st)->repeat_pict + 1 : ist->dec_ctx->ticks_per_frame; in process_input_packet()
2531 ist->dec_ctx->framerate.num / ist->dec_ctx->ticks_per_frame; in process_input_packet()

Completed in 39 milliseconds

12