Lines Matching refs:dec_ctx
119 AVCodecContext *dec_ctx;
130 if ((dec_ctx = stream->codec)) {
131 if ((dec = dec_ctx->codec)) {
138 printf("codec_type=%s\n", media_type_string(dec_ctx->codec_type));
139 printf("codec_time_base=%d/%d\n", dec_ctx->time_base.num, dec_ctx->time_base.den);
142 a = dec_ctx->codec_tag & 0xff;
143 b = dec_ctx->codec_tag>>8 & 0xff;
144 c = dec_ctx->codec_tag>>16 & 0xff;
145 d = dec_ctx->codec_tag>>24 & 0xff;
151 printf("\ncodec_tag=0x%04x\n", dec_ctx->codec_tag);
153 switch (dec_ctx->codec_type) {
155 printf("width=%d\n", dec_ctx->width);
156 printf("height=%d\n", dec_ctx->height);
157 printf("has_b_frames=%d\n", dec_ctx->has_b_frames);
158 if (dec_ctx->sample_aspect_ratio.num) {
159 printf("sample_aspect_ratio=%d:%d\n", dec_ctx->sample_aspect_ratio.num,
160 dec_ctx->sample_aspect_ratio.den);
162 dec_ctx->width * dec_ctx->sample_aspect_ratio.num,
163 dec_ctx->height * dec_ctx->sample_aspect_ratio.den,
168 printf("pix_fmt=%s\n", dec_ctx->pix_fmt != PIX_FMT_NONE ?
169 av_pix_fmt_descriptors[dec_ctx->pix_fmt].name : "unknown");
174 dec_ctx->sample_rate,
176 printf("channels=%d\n", dec_ctx->channels);
177 printf("bits_per_sample=%d\n", av_get_bits_per_sample(dec_ctx->codec_id));