Lines Matching refs:video

80     VideoProperties video, alpha;
317 static void process_video_header_mdec(AVFormatContext *s, VideoProperties *video)
321 video->width = avio_rl16(pb);
322 video->height = avio_rl16(pb);
323 video->time_base = (AVRational) { 1, 15 };
324 video->codec = AV_CODEC_ID_MDEC;
327 static int process_video_header_vp6(AVFormatContext *s, VideoProperties *video)
332 video->nb_frames = avio_rl32(pb);
334 video->time_base.den = avio_rl32(pb);
335 video->time_base.num = avio_rl32(pb);
336 if (video->time_base.den <= 0 || video->time_base.num <= 0) {
340 video->codec = AV_CODEC_ID_VP6;
345 static void process_video_header_cmv(AVFormatContext *s, VideoProperties *video)
352 video->time_base = (AVRational) { 1, fps };
353 video->codec = AV_CODEC_ID_CMV;
365 for (i = 0; i < 5 && (!ea->audio_codec || !ea->video.codec); i++) {
407 process_video_header_cmv(s, &ea->video);
411 ea->video.codec = AV_CODEC_ID_TGV;
415 process_video_header_mdec(s, &ea->video);
419 ea->video.codec = AV_CODEC_ID_MPEG2VIDEO;
424 ea->video.codec = AV_CODEC_ID_TGQ;
425 ea->video.time_base = (AVRational) { 1, 15 };
429 ea->video.codec = AV_CODEC_ID_TQI;
430 ea->video.time_base = (AVRational) { 1, 15 };
434 ea->video.codec = AV_CODEC_ID_MAD;
436 ea->video.time_base = (AVRational) { avio_rl16(pb), 1000 };
440 err = process_video_header_vp6(s, &ea->video);
490 static int init_video_stream(AVFormatContext *s, VideoProperties *video)
494 if (!video->codec)
497 /* initialize the video decoder stream */
501 video->stream_index = st->index;
503 st->codecpar->codec_id = video->codec;
508 st->codecpar->width = video->width;
509 st->codecpar->height = video->height;
510 st->duration = st->nb_frames = video->nb_frames;
511 if (video->time_base.num)
512 avpriv_set_pts_info(st, 64, video->time_base.num, video->time_base.den);
514 st->avg_frame_rate = av_inv_q(video->time_base);
526 if (init_video_stream(s, &ea->video) || init_video_stream(s, &ea->alpha))
569 if (!ea->video.codec)
623 avpriv_request_sample(s, "video header followed by audio packet");
738 pkt->stream_index = ea->video.stream_index;