Lines Matching defs:vst

117 static int scan_file(AVFormatContext *avctx, AVStream *vst, AVStream *ast, int file)
119 FFStream *const vsti = ffstream(vst), *const asti = ffstream(ast);
132 if (vst && type == MKTAG('R','A','W','I') && size >= 164) {
149 vst->codecpar->width = width;
150 vst->codecpar->height = height;
151 vst->codecpar->bits_per_coded_sample = bits_per_coded_sample;
156 vst->codecpar->format = AV_PIX_FMT_BAYER_RGGB16LE;
157 vst->codecpar->codec_tag = MKTAG('B', 'I', 'T', 16);
190 } else if (vst && type == MKTAG('V', 'I', 'D', 'F') && size >= 4) {
202 } else if (vst && type == MKTAG('W','B','A','L') && size >= 28) {
261 AVStream *vst = NULL, *ast = NULL;
288 vst = avformat_new_stream(avctx, NULL);
289 if (!vst)
291 vsti = ffstream(vst);
293 vst->id = 0;
294 vst->nb_frames = nb_video_frames;
297 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;
300 vst->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO;
303 vst->codecpar->format = AV_PIX_FMT_YUV420P;
304 vst->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO;
305 vst->codecpar->codec_tag = 0;
308 vst->codecpar->codec_id = AV_CODEC_ID_MJPEG;
309 vst->codecpar->codec_tag = 0;
312 vst->codecpar->codec_id = AV_CODEC_ID_H264;
313 vst->codecpar->codec_tag = 0;
336 if (vst) {
340 avpriv_set_pts_info(vst, 64, framerate.den, framerate.num);
348 ret = scan_file(avctx, vst, ast, 100);
370 ret = scan_file(avctx, vst, ast, i);
380 if (vst)
381 vst->duration = vsti->nb_index_entries;
385 if ((vst && !vsti->nb_index_entries) || (ast && !asti->nb_index_entries)) {
390 if (vst && ast)
392 else if (vst)