• Home
  • Raw
  • Download

Lines Matching refs:vst

120 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()
261 AVStream *vst = NULL, *ast = NULL; in read_header() local
287 vst = avformat_new_stream(avctx, NULL); in read_header()
288 if (!vst) in read_header()
290 vst->id = 0; in read_header()
291 vst->nb_frames = nb_video_frames; in read_header()
294 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in read_header()
297 vst->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO; in read_header()
300 vst->codecpar->format = AV_PIX_FMT_YUV420P; in read_header()
301 vst->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO; in read_header()
302 vst->codecpar->codec_tag = 0; in read_header()
305 vst->codecpar->codec_id = AV_CODEC_ID_MJPEG; in read_header()
306 vst->codecpar->codec_tag = 0; in read_header()
309 vst->codecpar->codec_id = AV_CODEC_ID_H264; in read_header()
310 vst->codecpar->codec_tag = 0; in read_header()
332 if (vst) { in read_header()
336 avpriv_set_pts_info(vst, 64, framerate.den, framerate.num); in read_header()
344 ret = scan_file(avctx, vst, ast, 100); in read_header()
366 ret = scan_file(avctx, vst, ast, i); in read_header()
376 if (vst) in read_header()
377 vst->duration = vst->nb_index_entries; in read_header()
381 if ((vst && !vst->nb_index_entries) || (ast && !ast->nb_index_entries)) { in read_header()
387 if (vst && ast) in read_header()
388 avio_seek(pb, FFMIN(vst->index_entries[0].pos, ast->index_entries[0].pos), SEEK_SET); in read_header()
389 else if (vst) in read_header()
390 avio_seek(pb, vst->index_entries[0].pos, SEEK_SET); in read_header()