Home
last modified time | relevance | path

Searched refs:codecpar (Results 1 - 25 of 431) sorted by relevance

12345678910>>...18

/third_party/ffmpeg/libavformat/
H A Dmusx.c69 st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; in musx_read_header()
70 st->codecpar->codec_id = AV_CODEC_ID_ADPCM_PSX; in musx_read_header()
71 st->codecpar->ch_layout.nb_channels = 2; in musx_read_header()
72 st->codecpar->sample_rate = 32000; in musx_read_header()
73 st->codecpar->block_align = 0x80 * st->codecpar->ch_layout.nb_channels; in musx_read_header()
76 st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; in musx_read_header()
80 st->codecpar->ch_layout.nb_channels = 2; in musx_read_header()
81 st->codecpar->sample_rate = 44100; in musx_read_header()
87 st->codecpar in musx_read_header()
[all...]
H A Dgenh.c56 st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; in genh_read_header()
57 st->codecpar->ch_layout.nb_channels = avio_rl32(s->pb); in genh_read_header()
58 if (st->codecpar->ch_layout.nb_channels <= 0) in genh_read_header()
60 if (st->codecpar->ch_layout.nb_channels == 1) in genh_read_header()
61 st->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO; in genh_read_header()
62 else if (st->codecpar->ch_layout.nb_channels == 2) in genh_read_header()
63 st->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_STEREO; in genh_read_header()
66 if (align < 0 || align > INT_MAX / st->codecpar->ch_layout.nb_channels) in genh_read_header()
68 st->codecpar->block_align = align * st->codecpar in genh_read_header()
[all...]
H A Dxwma.c78 ret = ff_get_wav_header(s, pb, st->codecpar, size, 0); in xwma_read_header()
87 if (st->codecpar->codec_id == AV_CODEC_ID_WMAV2) { in xwma_read_header()
88 int ch = st->codecpar->ch_layout.nb_channels; in xwma_read_header()
89 int sr = st->codecpar->sample_rate; in xwma_read_header()
90 int br = st->codecpar->bit_rate; in xwma_read_header()
107 st->codecpar->bit_rate = br; in xwma_read_header()
112 if (st->codecpar->codec_id != AV_CODEC_ID_WMAV2 && in xwma_read_header()
113 st->codecpar->codec_id != AV_CODEC_ID_WMAPRO) { in xwma_read_header()
115 av_fourcc2str(st->codecpar->codec_tag), in xwma_read_header()
116 st->codecpar in xwma_read_header()
[all...]
H A Dmsf.c55 st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; in msf_read_header()
57 st->codecpar->ch_layout.nb_channels = avio_rb32(s->pb); in msf_read_header()
58 if (st->codecpar->ch_layout.nb_channels <= 0 || in msf_read_header()
59 st->codecpar->ch_layout.nb_channels >= INT_MAX / 1024) in msf_read_header()
62 st->codecpar->sample_rate = avio_rb32(s->pb); in msf_read_header()
63 if (st->codecpar->sample_rate <= 0) in msf_read_header()
67 case 0: st->codecpar->codec_id = AV_CODEC_ID_PCM_S16BE; break; in msf_read_header()
68 case 1: st->codecpar->codec_id = AV_CODEC_ID_PCM_S16LE; break; in msf_read_header()
69 case 3: st->codecpar->block_align = 16 * st->codecpar in msf_read_header()
[all...]
H A Diff.c279 st->codecpar->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC; in parse_dsd_prop()
280 st->codecpar->ch_layout.nb_channels = avio_rb16(pb); in parse_dsd_prop()
281 if (size < 2 + st->codecpar->ch_layout.nb_channels * 4) in parse_dsd_prop()
283 if (st->codecpar->ch_layout.nb_channels > FF_ARRAY_ELEMS(dsd_layout)) { in parse_dsd_prop()
287 for (i = 0; i < st->codecpar->ch_layout.nb_channels; i++) in parse_dsd_prop()
291 if (d->layout.nb_channels == st->codecpar->ch_layout.nb_channels && in parse_dsd_prop()
293 st->codecpar->ch_layout = d->layout; in parse_dsd_prop()
302 st->codecpar->codec_tag = tag = avio_rl32(pb); in parse_dsd_prop()
303 st->codecpar->codec_id = ff_codec_get_id(dsd_codec_tags, tag); in parse_dsd_prop()
304 if (!st->codecpar in parse_dsd_prop()
[all...]
H A Davisynth.c255 st->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in avisynth_create_stream_video()
256 st->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO; in avisynth_create_stream_video()
257 st->codecpar->width = avs->vi->width; in avisynth_create_stream_video()
258 st->codecpar->height = avs->vi->height; in avisynth_create_stream_video()
271 st->codecpar->format = AV_PIX_FMT_YUV444P10; in avisynth_create_stream_video()
275 st->codecpar->format = AV_PIX_FMT_YUV422P10; in avisynth_create_stream_video()
279 st->codecpar->format = AV_PIX_FMT_YUV420P10; in avisynth_create_stream_video()
283 st->codecpar->format = AV_PIX_FMT_YUV444P12; in avisynth_create_stream_video()
287 st->codecpar->format = AV_PIX_FMT_YUV422P12; in avisynth_create_stream_video()
291 st->codecpar in avisynth_create_stream_video()
[all...]
H A Ddsfdec.c108 st->codecpar->ch_layout = dsf_channel_layout[channel_type]; in dsf_read_header()
109 if (!st->codecpar->ch_layout.nb_channels) in dsf_read_header()
112 st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; in dsf_read_header()
114 if (!st->codecpar->ch_layout.nb_channels) { in dsf_read_header()
115 st->codecpar->ch_layout.nb_channels = channels; in dsf_read_header()
116 } else if (channels != st->codecpar->ch_layout.nb_channels) { in dsf_read_header()
120 st->codecpar->sample_rate = avio_rl32(pb) / 8; in dsf_read_header()
122 if (st->codecpar->ch_layout.nb_channels <= 0) in dsf_read_header()
126 case 1: st->codecpar->codec_id = AV_CODEC_ID_DSD_LSBF_PLANAR; break; in dsf_read_header()
127 case 8: st->codecpar in dsf_read_header()
[all...]
H A Doggparseogm.c58 st->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in ogm_header()
61 st->codecpar->codec_id = ff_codec_get_id(ff_codec_bmp_tags, tag); in ogm_header()
62 st->codecpar->codec_tag = tag; in ogm_header()
63 if (st->codecpar->codec_id == AV_CODEC_ID_MPEG4) in ogm_header()
66 st->codecpar->codec_type = AVMEDIA_TYPE_SUBTITLE; in ogm_header()
67 st->codecpar->codec_id = AV_CODEC_ID_TEXT; in ogm_header()
72 st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; in ogm_header()
77 st->codecpar->codec_id = ff_codec_get_id(ff_codec_wav_tags, cid); in ogm_header()
79 if (st->codecpar->codec_id != AV_CODEC_ID_AAC) in ogm_header()
95 if(st->codecpar in ogm_header()
[all...]
H A Damr.c56 AVCodecParameters *par = s->streams[0]->codecpar; in amr_write_header()
102 st->codecpar->codec_tag = MKTAG('s', 'a', 'm', 'r'); in amr_read_header()
103 st->codecpar->codec_id = AV_CODEC_ID_AMR_NB; in amr_read_header()
104 st->codecpar->sample_rate = 8000; in amr_read_header()
105 st->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO; in amr_read_header()
108 st->codecpar->codec_tag = MKTAG('s', 'a', 'w', 'b'); in amr_read_header()
109 st->codecpar->codec_id = AV_CODEC_ID_AMR_WB; in amr_read_header()
110 st->codecpar->sample_rate = 16000; in amr_read_header()
111 st->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO; in amr_read_header()
114 st->codecpar in amr_read_header()
[all...]
H A Dnistspheredec.c46 st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; in nist_read_header()
61 if (!st->codecpar->bits_per_coded_sample) in nist_read_header()
62 st->codecpar->bits_per_coded_sample = bps << 3; in nist_read_header()
65 if (st->codecpar->codec_id == AV_CODEC_ID_NONE) in nist_read_header()
66 st->codecpar->codec_id = ff_get_pcm_codec_id(st->codecpar->bits_per_coded_sample, in nist_read_header()
69 st->codecpar->codec_id = AV_CODEC_ID_PCM_ALAW; in nist_read_header()
72 st->codecpar->codec_id = AV_CODEC_ID_PCM_MULAW; in nist_read_header()
74 st->codecpar->codec_id = AV_CODEC_ID_SHORTEN; in nist_read_header()
75 if (ff_alloc_extradata(st->codecpar, in nist_read_header()
[all...]
H A Drpl.c153 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in rpl_read_header()
154 vst->codecpar->codec_tag = video_format; in rpl_read_header()
155 vst->codecpar->width = read_line_and_int(pb, &error); // video width in rpl_read_header()
156 vst->codecpar->height = read_line_and_int(pb, &error); // video height in rpl_read_header()
157 vst->codecpar->bits_per_coded_sample = read_line_and_int(pb, &error); // video bits per sample in rpl_read_header()
160 switch (vst->codecpar->codec_tag) { in rpl_read_header()
163 vst->codecpar->codec_id = AV_CODEC_ID_ESCAPE122; in rpl_read_header()
167 vst->codecpar->codec_id = AV_CODEC_ID_ESCAPE124; in rpl_read_header()
169 vst->codecpar->bits_per_coded_sample = 16; in rpl_read_header()
172 vst->codecpar in rpl_read_header()
[all...]
H A Dbintext.c59 st->codecpar->codec_tag = 0; in init_stream()
60 st->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in init_stream()
63 st->codecpar->width = (80<<3); in init_stream()
64 st->codecpar->height = (25<<4); in init_stream()
178 st->codecpar->codec_id = AV_CODEC_ID_BINTEXT; in bintext_read_header()
180 if ((ret = ff_alloc_extradata(st->codecpar, 2)) < 0) in bintext_read_header()
182 st->codecpar->extradata[0] = 16; in bintext_read_header()
183 st->codecpar->extradata[1] = 0; in bintext_read_header()
191 predict_width(st->codecpar, bin->fsize, got_width); in bintext_read_header()
192 if (st->codecpar in bintext_read_header()
[all...]
H A Ddcstr.c43 st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; in dcstr_read_header()
44 st->codecpar->ch_layout.nb_channels = avio_rl32(s->pb); in dcstr_read_header()
45 st->codecpar->sample_rate = avio_rl32(s->pb); in dcstr_read_header()
46 if (st->codecpar->sample_rate <= 0) in dcstr_read_header()
53 if (st->codecpar->ch_layout.nb_channels <= 0 || mult <= 0 || in dcstr_read_header()
54 mult > INT_MAX / st->codecpar->ch_layout.nb_channels) { in dcstr_read_header()
56 st->codecpar->ch_layout.nb_channels, mult); in dcstr_read_header()
59 st->codecpar->ch_layout.nb_channels *= mult; in dcstr_read_header()
60 if (!align || align > INT_MAX / st->codecpar->ch_layout.nb_channels) in dcstr_read_header()
62 st->codecpar in dcstr_read_header()
[all...]
H A Dcodec2.c128 int mode = codec2_mode_from_extradata(st->codecpar->extradata); in codec2_read_header_common()
130 st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; in codec2_read_header_common()
131 st->codecpar->codec_id = AV_CODEC_ID_CODEC2; in codec2_read_header_common()
132 st->codecpar->sample_rate = 8000; in codec2_read_header_common()
133 st->codecpar->format = AV_SAMPLE_FMT_S16; in codec2_read_header_common()
134 st->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO; in codec2_read_header_common()
135 st->codecpar->bit_rate = codec2_mode_bit_rate(s, mode); in codec2_read_header_common()
136 st->codecpar->frame_size = codec2_mode_frame_size(s, mode); in codec2_read_header_common()
137 st->codecpar->block_align = codec2_mode_block_align(s, mode); in codec2_read_header_common()
139 if (st->codecpar in codec2_read_header_common()
[all...]
H A Dvqf.c113 st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; in vqf_read_header()
114 st->codecpar->codec_id = AV_CODEC_ID_TWINVQ; in vqf_read_header()
139 st->codecpar->ch_layout.nb_channels = AV_RB32(comm_chunk) + 1; in vqf_read_header()
144 if (st->codecpar->ch_layout.nb_channels <= 0) { in vqf_read_header()
149 st->codecpar->bit_rate = (int64_t)read_bitrate * 1000; in vqf_read_header()
178 st->codecpar->sample_rate = 44100; in vqf_read_header()
181 st->codecpar->sample_rate = 22050; in vqf_read_header()
184 st->codecpar->sample_rate = 11025; in vqf_read_header()
191 st->codecpar->sample_rate = rate_flag*1000; in vqf_read_header()
195 if (read_bitrate / st->codecpar in vqf_read_header()
[all...]
H A Dcafdec.c74 st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; in read_desc_chunk()
75 st->codecpar->sample_rate = av_clipd(av_int2double(avio_rb64(pb)), 0, INT_MAX); in read_desc_chunk()
76 st->codecpar->codec_tag = avio_rl32(pb); in read_desc_chunk()
79 st->codecpar->block_align = caf->bytes_per_packet; in read_desc_chunk()
81 st->codecpar->ch_layout.nb_channels = avio_rb32(pb); in read_desc_chunk()
82 st->codecpar->bits_per_coded_sample = avio_rb32(pb); in read_desc_chunk()
84 if (caf->bytes_per_packet < 0 || caf->frames_per_packet < 0 || st->codecpar->ch_layout.nb_channels < 0) in read_desc_chunk()
89 st->codecpar->bit_rate = (uint64_t)st->codecpar->sample_rate * (uint64_t)caf->bytes_per_packet * 8 in read_desc_chunk()
92 st->codecpar in read_desc_chunk()
[all...]
H A Dads.c46 st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; in ads_read_header()
48 st->codecpar->sample_rate = avio_rl32(s->pb); in ads_read_header()
49 if (st->codecpar->sample_rate <= 0) in ads_read_header()
51 st->codecpar->ch_layout.nb_channels = avio_rl32(s->pb); in ads_read_header()
52 if (st->codecpar->ch_layout.nb_channels <= 0) in ads_read_header()
55 if (align <= 0 || align > INT_MAX / st->codecpar->ch_layout.nb_channels) in ads_read_header()
59 st->codecpar->codec_id = AV_CODEC_ID_PCM_S16LE_PLANAR; in ads_read_header()
61 st->codecpar->codec_id = AV_CODEC_ID_ADPCM_PSX; in ads_read_header()
63 st->codecpar->block_align = st->codecpar in ads_read_header()
[all...]
H A Dsierravmd.c120 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in vmd_read_header()
121 vst->codecpar->codec_id = vmd->is_indeo3 ? AV_CODEC_ID_INDEO3 : AV_CODEC_ID_VMDVIDEO; in vmd_read_header()
122 vst->codecpar->codec_tag = 0; /* no fourcc */ in vmd_read_header()
123 vst->codecpar->width = width; in vmd_read_header()
124 vst->codecpar->height = height; in vmd_read_header()
125 if(vmd->is_indeo3 && vst->codecpar->width > 320){ in vmd_read_header()
126 vst->codecpar->width >>= 1; in vmd_read_header()
127 vst->codecpar->height >>= 1; in vmd_read_header()
129 if ((ret = ff_alloc_extradata(vst->codecpar, VMD_HEADER_SIZE)) < 0) in vmd_read_header()
131 memcpy(vst->codecpar in vmd_read_header()
[all...]
H A Doggparsedirac.c37 if (st->codecpar->codec_id == AV_CODEC_ID_DIRAC) in dirac_header()
44 st->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in dirac_header()
45 st->codecpar->codec_id = AV_CODEC_ID_DIRAC; in dirac_header()
46 st->codecpar->width = dsh->width; in dirac_header()
47 st->codecpar->height = dsh->height; in dirac_header()
48 st->codecpar->format = dsh->pix_fmt; in dirac_header()
49 st->codecpar->color_range = dsh->color_range; in dirac_header()
50 st->codecpar->color_trc = dsh->color_trc; in dirac_header()
51 st->codecpar->color_primaries = dsh->color_primaries; in dirac_header()
52 st->codecpar in dirac_header()
[all...]
H A Dacm.c45 st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; in acm_read_header()
46 st->codecpar->codec_id = AV_CODEC_ID_INTERPLAY_ACM; in acm_read_header()
48 ret = ff_get_extradata(s, st->codecpar, s->pb, 14); in acm_read_header()
52 st->codecpar->ch_layout.nb_channels = AV_RL16(st->codecpar->extradata + 8); in acm_read_header()
53 st->codecpar->sample_rate = AV_RL16(st->codecpar->extradata + 10); in acm_read_header()
54 if (st->codecpar->ch_layout.nb_channels <= 0 || st->codecpar->sample_rate <= 0) in acm_read_header()
57 st->duration = AV_RL32(st->codecpar in acm_read_header()
[all...]
H A Drtpdec_rfc4175.c60 stream->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO; in rfc4175_parse_format()
64 stream->codecpar->codec_id = AV_CODEC_ID_BITPACKED; in rfc4175_parse_format()
75 stream->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO; in rfc4175_parse_format()
85 stream->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO; in rfc4175_parse_format()
95 stream->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO; in rfc4175_parse_format()
104 stream->codecpar->format = pixfmt; in rfc4175_parse_format()
105 stream->codecpar->codec_tag = tag; in rfc4175_parse_format()
106 stream->codecpar->bits_per_coded_sample = av_get_bits_per_pixel(desc); in rfc4175_parse_format()
110 stream->codecpar->field_order = AV_FIELD_TT; in rfc4175_parse_format()
112 stream->codecpar in rfc4175_parse_format()
[all...]
H A Dgdv.c99 ast->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; in gdv_read_header()
100 ast->codecpar->codec_tag = 0; in gdv_read_header()
101 ast->codecpar->sample_rate = avio_rl16(pb); in gdv_read_header()
102 ast->codecpar->ch_layout.nb_channels = 1 + !!(snd_flags & 2); in gdv_read_header()
104 ast->codecpar->codec_id = AV_CODEC_ID_GREMLIN_DPCM; in gdv_read_header()
106 ast->codecpar->codec_id = (snd_flags & 4) ? AV_CODEC_ID_PCM_S16LE : AV_CODEC_ID_PCM_U8; in gdv_read_header()
109 avpriv_set_pts_info(ast, 64, 1, ast->codecpar->sample_rate); in gdv_read_header()
110 gdv->audio_size = (ast->codecpar->sample_rate / fps) * in gdv_read_header()
111 ast->codecpar->ch_layout.nb_channels * in gdv_read_header()
120 vst->codecpar in gdv_read_header()
[all...]
H A Dtmv.c84 ast->codecpar->sample_rate = avio_rl16(pb); in tmv_read_header()
85 if (!ast->codecpar->sample_rate) { in tmv_read_header()
118 ast->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; in tmv_read_header()
119 ast->codecpar->codec_id = AV_CODEC_ID_PCM_U8; in tmv_read_header()
120 av_channel_layout_default(&ast->codecpar->ch_layout, !!(features & TMV_STEREO) + 1); in tmv_read_header()
121 ast->codecpar->bits_per_coded_sample = 8; in tmv_read_header()
122 ast->codecpar->bit_rate = ast->codecpar->sample_rate * in tmv_read_header()
123 ast->codecpar->bits_per_coded_sample; in tmv_read_header()
124 avpriv_set_pts_info(ast, 32, 1, ast->codecpar in tmv_read_header()
[all...]
H A Dmvi.c58 if ((ret = ff_alloc_extradata(vst->codecpar, 2)) < 0) in read_header()
62 vst->codecpar->extradata[0] = avio_r8(pb); in read_header()
63 vst->codecpar->extradata[1] = avio_r8(pb); in read_header()
66 vst->codecpar->width = avio_rl16(pb); in read_header()
67 vst->codecpar->height = avio_rl16(pb); in read_header()
69 ast->codecpar->sample_rate = avio_rl16(pb); in read_header()
84 avpriv_set_pts_info(ast, 64, 1, ast->codecpar->sample_rate); in read_header()
85 ast->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; in read_header()
86 ast->codecpar->codec_id = AV_CODEC_ID_PCM_U8; in read_header()
87 ast->codecpar in read_header()
[all...]
H A Dvag.c43 st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; in vag_read_header()
44 st->codecpar->codec_id = AV_CODEC_ID_ADPCM_PSX; in vag_read_header()
45 st->codecpar->ch_layout.nb_channels = 1 + (avio_rb32(s->pb) == 0x00000004); in vag_read_header()
47 if (st->codecpar->ch_layout.nb_channels > 1) { in vag_read_header()
52 st->codecpar->sample_rate = avio_rb32(s->pb); in vag_read_header()
53 if (st->codecpar->sample_rate <= 0) in vag_read_header()
57 st->codecpar->block_align = 0x1000 * st->codecpar->ch_layout.nb_channels; in vag_read_header()
61 st->codecpar->block_align = 16 * st->codecpar in vag_read_header()
[all...]

Completed in 10 milliseconds

12345678910>>...18