• Home
  • Raw
  • Download

Lines Matching refs:codecpar

86                 if ((ret = ff_get_extradata(NULL, vst->codecpar, pb, size)) < 0)  in get_codec_data()
100 vst->codecpar->codec_tag = avio_rl32(pb); in get_codec_data()
101 vst->codecpar->codec_id = in get_codec_data()
102 ff_codec_get_id(ff_codec_bmp_tags, vst->codecpar->codec_tag); in get_codec_data()
103 if (vst->codecpar->codec_tag == MKTAG('R', 'J', 'P', 'G')) in get_codec_data()
104 vst->codecpar->codec_id = AV_CODEC_ID_NUV; in get_codec_data()
111 ast->codecpar->codec_tag = avio_rl32(pb); in get_codec_data()
112 ast->codecpar->sample_rate = avio_rl32(pb); in get_codec_data()
113 if (ast->codecpar->sample_rate <= 0) { in get_codec_data()
114 av_log(s, AV_LOG_ERROR, "Invalid sample rate %d\n", ast->codecpar->sample_rate); in get_codec_data()
117 ast->codecpar->bits_per_coded_sample = avio_rl32(pb); in get_codec_data()
118 ast->codecpar->channels = avio_rl32(pb); in get_codec_data()
119 ast->codecpar->channel_layout = 0; in get_codec_data()
120 if (ast->codecpar->channels <= 0) { in get_codec_data()
121 av_log(s, AV_LOG_ERROR, "Invalid channels %d\n", ast->codecpar->channels); in get_codec_data()
125 id = ff_wav_codec_get_id(ast->codecpar->codec_tag, in get_codec_data()
126 ast->codecpar->bits_per_coded_sample); in get_codec_data()
128 id = ff_codec_get_id(nuv_audio_tags, ast->codecpar->codec_tag); in get_codec_data()
130 id = ff_get_pcm_codec_id(ast->codecpar->bits_per_coded_sample, in get_codec_data()
133 ast->codecpar->codec_id = id; in get_codec_data()
206 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in nuv_header()
207 vst->codecpar->codec_id = AV_CODEC_ID_NUV; in nuv_header()
208 vst->codecpar->width = width; in nuv_header()
209 vst->codecpar->height = height; in nuv_header()
210 vst->codecpar->bits_per_coded_sample = 10; in nuv_header()
227 ast->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; in nuv_header()
228 ast->codecpar->codec_id = AV_CODEC_ID_PCM_S16LE; in nuv_header()
229 ast->codecpar->channels = 2; in nuv_header()
230 ast->codecpar->channel_layout = AV_CH_LAYOUT_STEREO; in nuv_header()
231 ast->codecpar->sample_rate = 44100; in nuv_header()
232 ast->codecpar->bit_rate = 2 * 2 * 44100 * 8; in nuv_header()
233 ast->codecpar->block_align = 2 * 2; in nuv_header()
234 ast->codecpar->bits_per_coded_sample = 16; in nuv_header()
242 ctx->rtjpg_video = vst && vst->codecpar->codec_id == AV_CODEC_ID_NUV; in nuv_header()