• Home
  • Raw
  • Download

Lines Matching refs:vid

74     BVID_DemuxContext *vid = s->priv_data;  in vid_read_header()  local
83 vid->nframes = avio_rl16(pb); in vid_read_header()
84 vid->width = avio_rl16(pb); in vid_read_header()
85 vid->height = avio_rl16(pb); in vid_read_header()
86 vid->bethsoft_global_delay = avio_rl16(pb); in vid_read_header()
89 ret = av_image_check_size(vid->width, vid->height, 0, s); in vid_read_header()
94 vid->video_index = -1; in vid_read_header()
95 vid->audio_index = -1; in vid_read_header()
96 vid->sample_rate = DEFAULT_SAMPLE_RATE; in vid_read_header()
103 static int read_frame(BVID_DemuxContext *vid, AVIOContext *pb, AVPacket *pkt, in read_frame() argument
115 if (vid->video_index < 0) { in read_frame()
119 vid->video_index = st->index; in read_frame()
120 if (vid->audio_index < 0) { in read_frame()
125 avpriv_set_pts_info(st, 64, 185, vid->sample_rate); in read_frame()
128 st->codecpar->width = vid->width; in read_frame()
129 st->codecpar->height = vid->height; in read_frame()
131 st = s->streams[vid->video_index]; in read_frame()
144 duration = vid->bethsoft_global_delay + avio_rl16(pb); in read_frame()
196 pkt->stream_index = vid->video_index; in read_frame()
202 if (vid->has_palette) { in read_frame()
210 memcpy(pdata, vid->palette, BVID_PALETTE_SIZE); in read_frame()
211 vid->has_palette = 0; in read_frame()
214 vid->nframes--; // used to check if all the frames were read in read_frame()
223 BVID_DemuxContext *vid = s->priv_data; in vid_read_packet() local
229 if(vid->is_finished || avio_feof(pb)) in vid_read_packet()
235 if (vid->has_palette) { in vid_read_packet()
237 vid->has_palette = 0; in vid_read_packet()
239 if (avio_read(pb, vid->palette, BVID_PALETTE_SIZE) != BVID_PALETTE_SIZE) { in vid_read_packet()
242 vid->has_palette = 1; in vid_read_packet()
248 vid->sample_rate = 1000000 / (256 - avio_r8(pb)); in vid_read_packet()
250 if (vid->audio_index < 0) { in vid_read_packet()
254 vid->audio_index = st->index; in vid_read_packet()
260 st->codecpar->sample_rate = vid->sample_rate; in vid_read_packet()
263 avpriv_set_pts_info(st, 64, 1, vid->sample_rate); in vid_read_packet()
272 pkt->stream_index = vid->audio_index; in vid_read_packet()
280 return read_frame(vid, pb, pkt, block_type, s); in vid_read_packet()
283 if(vid->nframes != 0) in vid_read_packet()
285 vid->is_finished = 1; in vid_read_packet()