Lines Matching defs:thp
64 ThpDemuxContext *thp = s->priv_data;
72 thp->version = avio_rb32(pb);
77 thp->fps = av_d2q(av_int2float(avio_rb32(pb)), INT_MAX);
78 thp->framecnt = avio_rb32(pb);
79 thp->first_framesz = avio_rb32(pb);
84 thp->compoff = avio_rb32(pb);
86 thp->first_frame = avio_rb32(pb);
87 thp->last_frame = avio_rb32(pb);
89 thp->next_framesz = thp->first_framesz;
90 thp->next_frame = thp->first_frame;
93 avio_seek (pb, thp->compoff, SEEK_SET);
94 thp->compcount = avio_rb32(pb);
97 avio_read(pb, thp->components, 16);
99 for (i = 0; i < thp->compcount; i++) {
100 if (thp->components[i] == 0) {
101 if (thp->vst != 0)
111 avpriv_set_pts_info(st, 64, thp->fps.den, thp->fps.num);
118 st->duration = thp->framecnt;
119 thp->vst = st;
120 thp->video_stream_index = st->index;
122 if (thp->version == 0x11000)
124 } else if (thp->components[i] == 1) {
125 if (thp->has_audio != 0)
141 thp->audio_stream_index = st->index;
142 thp->has_audio = 1;
152 ThpDemuxContext *thp = s->priv_data;
157 if (thp->audiosize == 0) {
159 if (thp->frame >= thp->framecnt)
162 avio_seek(pb, thp->next_frame, SEEK_SET);
165 thp->next_frame += FFMAX(thp->next_framesz, 1);
166 thp->next_framesz = avio_rb32(pb);
173 if (thp->has_audio)
174 thp->audiosize = avio_rb32(pb); /* Audio size. */
176 thp->frame++;
184 pkt->stream_index = thp->video_stream_index;
186 ret = av_get_packet(pb, pkt, thp->audiosize);
187 if (ret != thp->audiosize) {
192 pkt->stream_index = thp->audio_stream_index;
193 if (thp->audiosize >= 8)
196 thp->audiosize = 0;
197 thp->frame++;
204 .name = "thp",