Lines Matching defs:avctx

413         if (s->avctx->flags2 & AV_CODEC_FLAG2_NO_OUTPUT) {
425 if (s->avctx->flags2 & AV_CODEC_FLAG2_NO_OUTPUT) {
490 const int interleaved_stats = (s->avctx->flags & AV_CODEC_FLAG_PASS1) && !s->data_partitioning ? 1 : 0;
807 if (s->avctx->flags & AV_CODEC_FLAG_AC_PRED) {
879 s->time_base = FFUDIV(s->time, s->avctx->time_base.den);
894 time = time * s->avctx->time_base.num;
895 s->last_time_base = FFUDIV(time, s->avctx->time_base.den);
897 seconds = FFUDIV(time, s->avctx->time_base.den);
907 put_bits(&s->pb, 1, !!(s->avctx->flags & AV_CODEC_FLAG_CLOSED_GOP));
918 if (s->avctx->profile != FF_PROFILE_UNKNOWN) {
919 profile_and_level_indication = s->avctx->profile << 4;
926 if (s->avctx->level != FF_LEVEL_UNKNOWN)
927 profile_and_level_indication |= s->avctx->level;
986 aspect_ratio_info = ff_h263_aspect_to_info(s->avctx->sample_aspect_ratio);
990 av_reduce(&s->avctx->sample_aspect_ratio.num, &s->avctx->sample_aspect_ratio.den,
991 s->avctx->sample_aspect_ratio.num, s->avctx->sample_aspect_ratio.den, 255);
992 put_bits(&s->pb, 8, s->avctx->sample_aspect_ratio.num);
993 put_bits(&s->pb, 8, s->avctx->sample_aspect_ratio.den);
1008 put_bits(&s->pb, 16, s->avctx->time_base.den);
1029 ff_write_quant_matrix(&s->pb, s->avctx->intra_matrix);
1030 ff_write_quant_matrix(&s->pb, s->avctx->inter_matrix);
1050 if (!(s->avctx->flags & AV_CODEC_FLAG_BITEXACT)) {
1064 if (!(s->avctx->flags & AV_CODEC_FLAG_GLOBAL_HEADER)) {
1065 if (s->avctx->strict_std_compliance < FF_COMPLIANCE_VERY_STRICT) // HACK, the reference sw is buggy
1067 if (s->avctx->strict_std_compliance < FF_COMPLIANCE_VERY_STRICT || picture_number == 0) // HACK, the reference sw is buggy
1080 time_div = FFUDIV(s->time, s->avctx->time_base.den);
1081 time_mod = FFUMOD(s->time, s->avctx->time_base.den);
1086 av_log(s->avctx, AV_LOG_ERROR, "time_incr %"PRIu64" too large\n", time_incr);
1278 static av_cold int encode_init(AVCodecContext *avctx)
1281 MpegEncContext *s = avctx->priv_data;
1284 if (avctx->width >= (1<<13) || avctx->height >= (1<<13)) {
1285 av_log(avctx, AV_LOG_ERROR, "dimensions too large for MPEG-4\n");
1289 if ((ret = ff_mpv_encode_init(avctx)) < 0)
1305 if (s->avctx->flags & AV_CODEC_FLAG_GLOBAL_HEADER) {
1306 s->avctx->extradata = av_malloc(1024);
1307 if (!s->avctx->extradata)
1309 init_put_bits(&s->pb, s->avctx->extradata, 1024);
1317 s->avctx->extradata_size = put_bytes_output(&s->pb);