• Home
  • Raw
  • Download

Lines Matching refs:vst

90     AVStream *vst, *ast;  in read_header()  local
100 vst = avformat_new_stream(s, NULL); in read_header()
101 if (!vst) in read_header()
104 vst->codecpar->codec_tag = avio_rl32(pb); in read_header()
105 if (vst->codecpar->codec_tag == AV_RL32("SMUS")) { in read_header()
109 vst->codecpar->codec_tag = avio_rl32(pb); in read_header()
110 } while (!avio_feof(pb) && (vst->codecpar->codec_tag & 0xFFFFFF) != AV_RL32("BIK")); in read_header()
118 vst->duration = avio_rl32(pb); in read_header()
120 if (vst->duration > 1000000) { in read_header()
133 vst->codecpar->width = avio_rl32(pb); in read_header()
134 vst->codecpar->height = avio_rl32(pb); in read_header()
144 avpriv_set_pts_info(vst, 64, fps_den, fps_num); in read_header()
145 vst->avg_frame_rate = av_inv_q(vst->time_base); in read_header()
147 vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; in read_header()
148 vst->codecpar->codec_id = AV_CODEC_ID_BINKVIDEO; in read_header()
150 if ((vst->codecpar->codec_tag & 0xFFFFFF) == MKTAG('K', 'B', '2', 0)) { in read_header()
152 vst->codecpar->codec_id = AV_CODEC_ID_NONE; in read_header()
155 if ((ret = ff_get_extradata(s, vst->codecpar, pb, 4)) < 0) in read_header()
167 signature = (vst->codecpar->codec_tag & 0xFFFFFF); in read_header()
168 revision = ((vst->codecpar->codec_tag >> 24) % 0xFF); in read_header()
197 AV_WL32(ast->codecpar->extradata, vst->codecpar->codec_tag); in read_header()
206 for (i = 0; i < vst->duration; i++) { in read_header()
209 if (i == vst->duration - 1) { in read_header()
223 if ((ret = av_add_index_entry(vst, pos, i, next_pos - pos, 0, in read_header()
228 if (vst->index_entries) in read_header()
229 avio_seek(pb, vst->index_entries[0].pos + bink->smush_size, SEEK_SET); in read_header()
309 AVStream *vst = s->streams[0]; in read_seek() local
316 ret = avio_seek(s->pb, vst->index_entries[0].pos + bink->smush_size, SEEK_SET); in read_seek()