Lines Matching refs:enc_ctx
91 AVCodecContext *dec_ctx, *enc_ctx;
113 enc_ctx = out_stream->codec;
124 enc_ctx->height = dec_ctx->height;
125 enc_ctx->width = dec_ctx->width;
126 enc_ctx->sample_aspect_ratio = dec_ctx->sample_aspect_ratio;
128 enc_ctx->pix_fmt = encoder->pix_fmts[0];
130 enc_ctx->time_base = dec_ctx->time_base;
132 enc_ctx->sample_rate = dec_ctx->sample_rate;
133 enc_ctx->channel_layout = dec_ctx->channel_layout;
134 enc_ctx->channels = av_get_channel_layout_nb_channels(enc_ctx->channel_layout);
136 enc_ctx->sample_fmt = encoder->sample_fmts[0];
137 enc_ctx->time_base = (AVRational){1, enc_ctx->sample_rate};
141 ret = avcodec_open2(enc_ctx, encoder, NULL);
160 enc_ctx->flags |= CODEC_FLAG_GLOBAL_HEADER;
184 AVCodecContext *enc_ctx, const char *filter_spec)
232 (uint8_t*)&enc_ctx->pix_fmt, sizeof(enc_ctx->pix_fmt),
270 (uint8_t*)&enc_ctx->sample_fmt, sizeof(enc_ctx->sample_fmt),
278 (uint8_t*)&enc_ctx->channel_layout,
279 sizeof(enc_ctx->channel_layout), AV_OPT_SEARCH_CHILDREN);
286 (uint8_t*)&enc_ctx->sample_rate, sizeof(enc_ctx->sample_rate),