Lines Matching defs:vst
45 AVStream *ast, *vst;
54 vst = avformat_new_stream(s, NULL);
55 if (!vst)
58 if ((ret = ff_alloc_extradata(vst->codecpar, 2)) < 0)
62 vst->codecpar->extradata[0] = avio_r8(pb);
63 vst->codecpar->extradata[1] = avio_r8(pb);
66 vst->codecpar->width = avio_rl16(pb);
67 vst->codecpar->height = avio_rl16(pb);
91 avpriv_set_pts_info(vst, 64, msecs_per_frame, 1000000);
92 vst->avg_frame_rate = av_inv_q(vst->time_base);
93 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;
94 vst->codecpar->codec_id = AV_CODEC_ID_MOTIONPIXELS;
96 mvi->get_int = (vst->codecpar->width * (int64_t)vst->codecpar->height < (1 << 16)) ? avio_rl16 : avio_rl24;