Lines Matching refs:codecpar
84 ast->codecpar->sample_rate = avio_rl16(pb); in tmv_read_header()
85 if (!ast->codecpar->sample_rate) { in tmv_read_header()
114 ast->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; in tmv_read_header()
115 ast->codecpar->codec_id = AV_CODEC_ID_PCM_U8; in tmv_read_header()
117 ast->codecpar->channels = 2; in tmv_read_header()
118 ast->codecpar->channel_layout = AV_CH_LAYOUT_STEREO; in tmv_read_header()
120 ast->codecpar->channels = 1; in tmv_read_header()
121 ast->codecpar->channel_layout = AV_CH_LAYOUT_MONO; in tmv_read_header()
123 ast->codecpar->bits_per_coded_sample = 8; in tmv_read_header()
124 ast->codecpar->bit_rate = ast->codecpar->sample_rate * in tmv_read_header()
125 ast->codecpar->bits_per_coded_sample; in tmv_read_header()
126 avpriv_set_pts_info(ast, 32, 1, ast->codecpar->sample_rate); in tmv_read_header()
128 fps.num = ast->codecpar->sample_rate * ast->codecpar->channels; in tmv_read_header()
132 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in tmv_read_header()
133 vst->codecpar->codec_id = AV_CODEC_ID_TMV; in tmv_read_header()
134 vst->codecpar->format = AV_PIX_FMT_PAL8; in tmv_read_header()
135 vst->codecpar->width = char_cols * 8; in tmv_read_header()
136 vst->codecpar->height = char_rows * 8; in tmv_read_header()
144 vst->codecpar->bit_rate = ((tmv->video_chunk_size + tmv->padding) * in tmv_read_header()