Lines Matching defs:vst
119 AVStream *vst = NULL, *ast = NULL;
150 vst = avformat_new_stream(s, NULL);
151 if (!vst)
153 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;
154 vst->codecpar->codec_tag = video_format;
155 vst->codecpar->width = read_line_and_int(pb, &error); // video width
156 vst->codecpar->height = read_line_and_int(pb, &error); // video height
157 vst->codecpar->bits_per_coded_sample = read_line_and_int(pb, &error); // video bits per sample
160 switch (vst->codecpar->codec_tag) {
163 vst->codecpar->codec_id = AV_CODEC_ID_ESCAPE122;
167 vst->codecpar->codec_id = AV_CODEC_ID_ESCAPE124;
169 vst->codecpar->bits_per_coded_sample = 16;
172 vst->codecpar->codec_id = AV_CODEC_ID_ESCAPE130;
176 av_fourcc2str(vst->codecpar->codec_tag));
177 vst->codecpar->codec_id = AV_CODEC_ID_NONE;
186 if (vst)
187 avpriv_set_pts_info(vst, 32, fps.den, fps.num);
265 if (vst && rpl->frames_per_chunk > 1 && vst->codecpar->codec_tag != 124)
268 "Video stream will be broken!\n", av_fourcc2str(vst->codecpar->codec_tag));
283 if (vst) {
285 vst->duration = number_of_chunks * (int64_t)rpl->frames_per_chunk;
299 if (vst)
300 av_add_index_entry(vst, offset, i * rpl->frames_per_chunk,