Home
last modified time | relevance | path

Searched refs:vst (Results 1 – 25 of 36) sorted by relevance

12

/third_party/ffmpeg/libavformat/
Dbink.c90 AVStream *vst, *ast; in read_header() local
100 vst = avformat_new_stream(s, NULL); in read_header()
101 if (!vst) in read_header()
104 vst->codecpar->codec_tag = avio_rl32(pb); in read_header()
105 if (vst->codecpar->codec_tag == AV_RL32("SMUS")) { in read_header()
109 vst->codecpar->codec_tag = avio_rl32(pb); in read_header()
110 } while (!avio_feof(pb) && (vst->codecpar->codec_tag & 0xFFFFFF) != AV_RL32("BIK")); in read_header()
118 vst->duration = avio_rl32(pb); in read_header()
120 if (vst->duration > 1000000) { in read_header()
133 vst->codecpar->width = avio_rl32(pb); in read_header()
[all …]
Dmlvdec.c120 static int scan_file(AVFormatContext *avctx, AVStream *vst, AVStream *ast, int file) in scan_file() argument
134 if (vst && type == MKTAG('R','A','W','I') && size >= 164) { in scan_file()
151 vst->codecpar->width = width; in scan_file()
152 vst->codecpar->height = height; in scan_file()
153 vst->codecpar->bits_per_coded_sample = bits_per_coded_sample; in scan_file()
158 vst->codecpar->format = AV_PIX_FMT_BAYER_RGGB16LE; in scan_file()
159 vst->codecpar->codec_tag = MKTAG('B', 'I', 'T', 16); in scan_file()
192 } else if (vst && type == MKTAG('V', 'I', 'D', 'F') && size >= 4) { in scan_file()
194 …ff_add_index_entry(&vst->index_entries, &vst->nb_index_entries, &vst->index_entries_allocated_size, in scan_file()
202 } else if (vst && type == MKTAG('W','B','A','L') && size >= 28) { in scan_file()
[all …]
Dgdv.c74 AVStream *vst, *ast; in gdv_read_header() local
80 vst = avformat_new_stream(ctx, 0); in gdv_read_header()
81 if (!vst) in gdv_read_header()
84 vst->start_time = 0; in gdv_read_header()
85 vst->duration = in gdv_read_header()
86 vst->nb_frames = avio_rl16(pb); in gdv_read_header()
119 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in gdv_read_header()
120 vst->codecpar->codec_id = AV_CODEC_ID_GDV; in gdv_read_header()
121 vst->codecpar->codec_tag = 0; in gdv_read_header()
122 vst->codecpar->width = avio_rl16(pb); in gdv_read_header()
[all …]
Dnuv.c69 static int get_codec_data(AVFormatContext *s, AVIOContext *pb, AVStream *vst, in get_codec_data() argument
74 if (!vst && !myth) in get_codec_data()
85 if (vst && subtype == 'R') { in get_codec_data()
86 if ((ret = ff_get_extradata(NULL, vst->codecpar, pb, size)) < 0) in get_codec_data()
99 if (vst) { 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()
[all …]
Dsmush.c50 AVStream *vst, *ast; in smush_read_header() local
142 vst = avformat_new_stream(ctx, 0); in smush_read_header()
143 if (!vst) in smush_read_header()
146 smush->video_stream_index = vst->index; in smush_read_header()
148 avpriv_set_pts_info(vst, 64, 1, 15); in smush_read_header()
150 vst->start_time = 0; in smush_read_header()
151 vst->duration = in smush_read_header()
152 vst->nb_frames = nframes; in smush_read_header()
153 vst->avg_frame_rate = av_inv_q(vst->time_base); in smush_read_header()
154 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in smush_read_header()
[all …]
Dmvi.c45 AVStream *ast, *vst; in read_header() local
54 vst = avformat_new_stream(s, NULL); in read_header()
55 if (!vst) in read_header()
58 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()
92 avpriv_set_pts_info(vst, 64, msecs_per_frame, 1000000); in read_header()
93 vst->avg_frame_rate = av_inv_q(vst->time_base); in read_header()
[all …]
Drpl.c119 AVStream *vst = NULL, *ast = NULL; in rpl_read_header() local
149 vst = avformat_new_stream(s, NULL); in rpl_read_header()
150 if (!vst) in rpl_read_header()
152 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in rpl_read_header()
153 vst->codecpar->codec_tag = video_format; in rpl_read_header()
154 vst->codecpar->width = read_line_and_int(pb, &error); // video width in rpl_read_header()
155 vst->codecpar->height = read_line_and_int(pb, &error); // video height in rpl_read_header()
156vst->codecpar->bits_per_coded_sample = read_line_and_int(pb, &error); // video bits per sample in rpl_read_header()
159 switch (vst->codecpar->codec_tag) { in rpl_read_header()
162 vst->codecpar->codec_id = AV_CODEC_ID_ESCAPE122; in rpl_read_header()
[all …]
Dsmjpegdec.c49 AVStream *ast = NULL, *vst = NULL; in smjpeg_read_header() local
107 if (vst) { in smjpeg_read_header()
114 vst = avformat_new_stream(s, 0); in smjpeg_read_header()
115 if (!vst) in smjpeg_read_header()
117 vst->nb_frames = avio_rb32(pb); in smjpeg_read_header()
118 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in smjpeg_read_header()
119 vst->codecpar->width = avio_rb16(pb); in smjpeg_read_header()
120 vst->codecpar->height = avio_rb16(pb); in smjpeg_read_header()
121 vst->codecpar->codec_tag = avio_rl32(pb); in smjpeg_read_header()
122 vst->codecpar->codec_id = ff_codec_get_id(ff_codec_smjpeg_video_tags, in smjpeg_read_header()
[all …]
Dhnm.c63 AVStream *vst; in hnm_read_header() local
80 if (!(vst = avformat_new_stream(s, NULL))) in hnm_read_header()
83 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in hnm_read_header()
84 vst->codecpar->codec_id = AV_CODEC_ID_HNM4_VIDEO; in hnm_read_header()
85 vst->codecpar->codec_tag = 0; in hnm_read_header()
86 vst->codecpar->width = width; in hnm_read_header()
87 vst->codecpar->height = height; in hnm_read_header()
88 if ((ret = ff_alloc_extradata(vst->codecpar, 1)) < 0) in hnm_read_header()
92 vst->codecpar->extradata[0] = width == 640 ? 0x4a : 0x40; in hnm_read_header()
94 vst->start_time = 0; in hnm_read_header()
[all …]
Dimx.c54 AVStream *vst, *ast; in simbiosis_imx_read_header() local
57 vst = avformat_new_stream(s, NULL); in simbiosis_imx_read_header()
59 if (!vst || !ast) in simbiosis_imx_read_header()
64 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in simbiosis_imx_read_header()
65 vst->codecpar->codec_tag = 0; in simbiosis_imx_read_header()
66 vst->codecpar->format = AV_PIX_FMT_PAL8; in simbiosis_imx_read_header()
67 vst->codecpar->codec_id = AV_CODEC_ID_SIMBIOSIS_IMX; in simbiosis_imx_read_header()
68 vst->start_time = 0; in simbiosis_imx_read_header()
69 vst->duration = in simbiosis_imx_read_header()
70 vst->nb_frames = avio_rl32(pb); in simbiosis_imx_read_header()
[all …]
Dsierravmd.c89 AVStream *st = NULL, *vst = NULL; in vmd_read_header() local
116 vst = avformat_new_stream(s, NULL); in vmd_read_header()
117 if (!vst) in vmd_read_header()
119 avpriv_set_pts_info(vst, 33, 1, 10); in vmd_read_header()
120 vmd->video_stream_index = vst->index; in vmd_read_header()
121 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in vmd_read_header()
122 vst->codecpar->codec_id = vmd->is_indeo3 ? AV_CODEC_ID_INDEO3 : AV_CODEC_ID_VMDVIDEO; in vmd_read_header()
123 vst->codecpar->codec_tag = 0; /* no fourcc */ in vmd_read_header()
124 vst->codecpar->width = width; in vmd_read_header()
125 vst->codecpar->height = height; in vmd_read_header()
[all …]
Dcdg.c31 AVStream *vst; in read_header() local
34 vst = avformat_new_stream(s, NULL); in read_header()
35 if (!vst) in read_header()
38 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in read_header()
39 vst->codecpar->codec_id = AV_CODEC_ID_CDGRAPHICS; in read_header()
42 avpriv_set_pts_info(vst, 32, 1, 300); in read_header()
48 vst->duration = (ret * (int64_t)vst->time_base.den) / (CDG_PACKET_SIZE * 300); in read_header()
Dpmpdec.c54 AVStream *vst = avformat_new_stream(s, NULL); in pmp_header() local
55 if (!vst) in pmp_header()
57 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in pmp_header()
61 vst->codecpar->codec_id = AV_CODEC_ID_MPEG4; in pmp_header()
64 vst->codecpar->codec_id = AV_CODEC_ID_H264; in pmp_header()
71 vst->codecpar->width = avio_rl32(pb); in pmp_header()
72 vst->codecpar->height = avio_rl32(pb); in pmp_header()
76 avpriv_set_pts_info(vst, 32, tb_num, tb_den); in pmp_header()
77 vst->nb_frames = index_cnt; in pmp_header()
78 vst->duration = index_cnt; in pmp_header()
[all …]
Dmvdec.c292 AVStream *ast = NULL, *vst = NULL; //initialization to suppress warning in mv_read_header() local
310 vst = avformat_new_stream(avctx, NULL); in mv_read_header()
311 if (!vst) in mv_read_header()
313 avpriv_set_pts_info(vst, 64, 1, 15); in mv_read_header()
314 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in mv_read_header()
315 vst->avg_frame_rate = av_inv_q(vst->time_base); in mv_read_header()
316 vst->nb_frames = avio_rb32(pb); in mv_read_header()
320 vst->codecpar->codec_id = AV_CODEC_ID_MVC1; in mv_read_header()
323 vst->codecpar->format = AV_PIX_FMT_ARGB; in mv_read_header()
324 vst->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO; in mv_read_header()
[all …]
Dswfdec.c221 AVStream *vst = NULL, *ast = NULL, *st = 0; in swf_read_packet() local
253 vst = avformat_new_stream(s, NULL); in swf_read_packet()
254 if (!vst) in swf_read_packet()
256 vst->id = ch_id; in swf_read_packet()
257 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in swf_read_packet()
258 vst->codecpar->codec_id = ff_codec_get_id(ff_swf_codec_tags, avio_r8(pb)); in swf_read_packet()
259 avpriv_set_pts_info(vst, 16, 256, swf->frame_rate); in swf_read_packet()
409 vst = avformat_new_stream(s, NULL); in swf_read_packet()
410 if (!vst) { in swf_read_packet()
414 vst->id = -3; /* -3 to avoid clash with video stream and audio stream */ in swf_read_packet()
[all …]
Drmdec.c768 RMDemuxContext *rm, RMStream *vst, in rm_assemble_video_frame() argument
818 if((seq & 0x7F) == 1 || vst->curpic_num != pic_num){ in rm_assemble_video_frame()
823 vst->slices = ((hdr & 0x3F) << 1) + 1; in rm_assemble_video_frame()
824 vst->videobufsize = len2 + 8*vst->slices + 1; in rm_assemble_video_frame()
825 av_packet_unref(&vst->pkt); //FIXME this should be output. in rm_assemble_video_frame()
826 if ((ret = av_new_packet(&vst->pkt, vst->videobufsize)) < 0) in rm_assemble_video_frame()
828 vst->videobufpos = 8*vst->slices + 1; in rm_assemble_video_frame()
829 vst->cur_slice = 0; in rm_assemble_video_frame()
830 vst->curpic_num = pic_num; in rm_assemble_video_frame()
831 vst->pktpos = avio_tell(pb); in rm_assemble_video_frame()
[all …]
Dtmv.c71 AVStream *vst, *ast; in tmv_read_header() local
78 if (!(vst = avformat_new_stream(s, NULL))) 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()
137 avpriv_set_pts_info(vst, 32, fps.den, fps.num); in tmv_read_header()
144 vst->codecpar->bit_rate = ((tmv->video_chunk_size + tmv->padding) * in tmv_read_header()
Dpaf.c96 AVStream *ast, *vst; in read_header() local
101 vst = avformat_new_stream(s, 0); in read_header()
102 if (!vst) in read_header()
105 vst->start_time = 0; in read_header()
106 vst->nb_frames = in read_header()
107 vst->duration = in read_header()
111 vst->codecpar->width = avio_rl32(pb); in read_header()
112 vst->codecpar->height = avio_rl32(pb); in read_header()
115 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in read_header()
116 vst->codecpar->codec_tag = 0; in read_header()
[all …]
Djvdec.c76 AVStream *vst, *ast; in read_header() local
84 vst = avformat_new_stream(s, NULL); in read_header()
85 if (!ast || !vst) in read_header()
88 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in read_header()
89 vst->codecpar->codec_id = AV_CODEC_ID_JV; in read_header()
90 vst->codecpar->codec_tag = 0; /* no fourcc */ in read_header()
91 vst->codecpar->width = avio_rl16(pb); in read_header()
92 vst->codecpar->height = avio_rl16(pb); in read_header()
93 vst->duration = in read_header()
94 vst->nb_frames = in read_header()
[all …]
Dvivo.c124 AVStream *ast, *vst; in vivo_read_header() local
131 vst = avformat_new_stream(s, NULL); in vivo_read_header()
133 if (!ast || !vst) in vivo_read_header()
187 vst->codecpar->width = value_int; in vivo_read_header()
189 vst->codecpar->height = value_int; in vivo_read_header()
222 avpriv_set_pts_info(vst, 64, fps.num, fps.den); in vivo_read_header()
226 vst->start_time = 0; in vivo_read_header()
227 vst->codecpar->codec_tag = 0; in vivo_read_header()
228 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in vivo_read_header()
231 vst->codecpar->codec_id = AV_CODEC_ID_H263; in vivo_read_header()
Damvenc.c96 AVStream *vst, *ast; in amv_init() local
106 vst = s->streams[AMV_STREAM_VIDEO]; in amv_init()
109 if (vst->codecpar->codec_id != AV_CODEC_ID_AMV) { in amv_init()
127 amv->us_per_frame = av_rescale(AV_TIME_BASE, vst->time_base.num, vst->time_base.den); in amv_init()
269 AVStream *vst = s->streams[AMV_STREAM_VIDEO]; in amv_write_header() local
283 AV_WL32(amvh + 32, vst->codecpar->width); in amv_write_header()
284 AV_WL32(amvh + 36, vst->codecpar->height); in amv_write_header()
285 AV_WL32(amvh + 40, vst->time_base.den); in amv_write_header()
286 AV_WL32(amvh + 44, vst->time_base.num); in amv_write_header()
293 amv_write_vlist(s, vst->codecpar); in amv_write_header()
[all …]
Dxmv.c291 AVStream *vst = avformat_new_stream(s, NULL); in xmv_process_packet_header() local
292 if (!vst) in xmv_process_packet_header()
295 avpriv_set_pts_info(vst, 32, 1, 1000); in xmv_process_packet_header()
297 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in xmv_process_packet_header()
298 vst->codecpar->codec_id = AV_CODEC_ID_WMV2; in xmv_process_packet_header()
299 vst->codecpar->codec_tag = MKBETAG('W', 'M', 'V', '2'); in xmv_process_packet_header()
300 vst->codecpar->width = xmv->video_width; in xmv_process_packet_header()
301 vst->codecpar->height = xmv->video_height; in xmv_process_packet_header()
303 vst->duration = xmv->video_duration; in xmv_process_packet_header()
305 xmv->video.stream_index = vst->index; in xmv_process_packet_header()
[all …]
Ddv.c46 AVStream* vst; member
287 par = c->vst->codecpar; in dv_extract_video_info()
289 avpriv_set_pts_info(c->vst, 64, c->sys->time_base.num, in dv_extract_video_info()
291 c->vst->avg_frame_rate = av_inv_q(c->vst->time_base); in dv_extract_video_info()
298 c->vst->sample_aspect_ratio = c->sys->sar[is16_9]; in dv_extract_video_info()
325 c->vst = avformat_new_stream(s, NULL); in dv_init_demux()
326 if (!c->vst) in dv_init_demux()
330 c->vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in dv_init_demux()
331 c->vst->codecpar->codec_id = AV_CODEC_ID_DVVIDEO; in dv_init_demux()
332 c->vst->codecpar->bit_rate = 25000000; in dv_init_demux()
[all …]
Dlibmodplug.c248 AVStream *vst = avformat_new_stream(s, NULL); in modplug_read_header() local
249 if (!vst) { in modplug_read_header()
253 avpriv_set_pts_info(vst, 64, 1, 1000); in modplug_read_header()
254 vst->duration = st->duration; in modplug_read_header()
255 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in modplug_read_header()
256 vst->codecpar->codec_id = AV_CODEC_ID_XBIN; in modplug_read_header()
257 vst->codecpar->width = modplug->w << 3; in modplug_read_header()
258 vst->codecpar->height = modplug->h << 3; in modplug_read_header()
/third_party/ffmpeg/libavdevice/
Dlibdc1394.c101 AVStream* vst; in dc1394_read_common() local
141 vst = avformat_new_stream(c, NULL); in dc1394_read_common()
142 if (!vst) { in dc1394_read_common()
146 avpriv_set_pts_info(vst, 64, 1, 1000); in dc1394_read_common()
147 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in dc1394_read_common()
148 vst->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO; in dc1394_read_common()
149 vst->codecpar->width = fmt->width; in dc1394_read_common()
150 vst->codecpar->height = fmt->height; in dc1394_read_common()
151 vst->codecpar->format = fmt->pix_fmt; in dc1394_read_common()
152 vst->avg_frame_rate = framerate; in dc1394_read_common()
[all …]

12