Lines Matching defs:vst
66 * @param vst video stream of which to change parameters
71 static int get_codec_data(AVFormatContext *s, AVIOContext *pb, AVStream *vst,
76 if (!vst && !myth)
87 if (vst && subtype == 'R') {
88 if ((ret = ff_get_extradata(NULL, vst->codecpar, pb, size)) < 0)
101 if (vst) {
102 vst->codecpar->codec_tag = avio_rl32(pb);
103 vst->codecpar->codec_id =
104 ff_codec_get_id(ff_codec_bmp_tags, vst->codecpar->codec_tag);
105 if (vst->codecpar->codec_tag == MKTAG('R', 'J', 'P', 'G'))
106 vst->codecpar->codec_id = AV_CODEC_ID_NUV;
166 AVStream *vst = NULL, *ast = NULL;
200 vst = avformat_new_stream(s, NULL);
201 if (!vst)
203 ctx->v_id = vst->index;
209 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;
210 vst->codecpar->codec_id = AV_CODEC_ID_NUV;
211 vst->codecpar->width = width;
212 vst->codecpar->height = height;
213 vst->codecpar->bits_per_coded_sample = 10;
214 vst->sample_aspect_ratio = av_d2q(aspect * height / width,
217 vst->r_frame_rate =
219 vst->avg_frame_rate = av_d2q(fps, 60000);
220 avpriv_set_pts_info(vst, 32, 1, 1000);
241 if ((ret = get_codec_data(s, pb, vst, ast, is_mythtv)) < 0)
244 ctx->rtjpg_video = vst && vst->codecpar->codec_id == AV_CODEC_ID_NUV;