Lines Matching refs:enc_ctx
1557 ost->enc_ctx = avcodec_alloc_context3(ost->enc);
1558 if (!ost->enc_ctx) {
1562 ost->enc_ctx->codec_type = type;
1617 ost->enc_ctx->flags |= AV_CODEC_FLAG_BITEXACT;
1672 ost->enc_ctx->codec_tag = tag;
1677 ost->enc_ctx->flags |= AV_CODEC_FLAG_QSCALE;
1678 ost->enc_ctx->global_quality = FF_QP2LAMBDA * qscale;
1696 ost->enc_ctx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;
1808 video_enc = ost->enc_ctx;
2047 audio_enc = ost->enc_ctx;
2179 subtitle_enc = ost->enc_ctx;
2385 if (ost->enc_ctx->ch_layout.order != AV_CHANNEL_ORDER_UNSPEC) {
2387 err = av_channel_layout_copy(&f->ch_layout, &ost->enc_ctx->ch_layout);
2397 av_channel_layout_default(&f->ch_layout, ost->enc_ctx->ch_layout.nb_channels);
2403 if (ost->enc->ch_layouts[i].nb_channels == ost->enc_ctx->ch_layout.nb_channels)
2415 av_channel_layout_default(&f->ch_layout, ost->enc_ctx->ch_layout.nb_channels);
2797 switch (ost->enc_ctx->codec_type) {
2800 f->width = ost->enc_ctx->width;
2801 f->height = ost->enc_ctx->height;
2802 if (ost->enc_ctx->pix_fmt != AV_PIX_FMT_NONE) {
2803 f->format = ost->enc_ctx->pix_fmt;
2809 if (ost->enc_ctx->sample_fmt != AV_SAMPLE_FMT_NONE) {
2810 f->format = ost->enc_ctx->sample_fmt;
2814 if (ost->enc_ctx->sample_rate) {
2815 f->sample_rate = ost->enc_ctx->sample_rate;
2819 if (ost->enc_ctx->ch_layout.nb_channels) {