Lines Matching defs:thp
60 ThpDemuxContext *thp = s->priv_data;
67 thp->version = avio_rb32(pb);
72 thp->fps = av_d2q(av_int2float(avio_rb32(pb)), INT_MAX);
73 thp->framecnt = avio_rb32(pb);
74 thp->first_framesz = avio_rb32(pb);
77 thp->compoff = avio_rb32(pb);
79 thp->first_frame = avio_rb32(pb);
80 thp->last_frame = avio_rb32(pb);
82 thp->next_framesz = thp->first_framesz;
83 thp->next_frame = thp->first_frame;
86 avio_seek (pb, thp->compoff, SEEK_SET);
87 thp->compcount = avio_rb32(pb);
90 avio_read(pb, thp->components, 16);
92 for (i = 0; i < thp->compcount; i++) {
93 if (thp->components[i] == 0) {
94 if (thp->vst != 0)
104 avpriv_set_pts_info(st, 64, thp->fps.den, thp->fps.num);
110 st->codec->sample_rate = av_q2d(thp->fps);
111 thp->vst = st;
112 thp->video_stream_index = st->index;
114 if (thp->version == 0x11000)
116 } else if (thp->components[i] == 1) {
117 if (thp->has_audio != 0)
133 thp->audio_stream_index = st->index;
134 thp->has_audio = 1;
144 ThpDemuxContext *thp = s->priv_data;
149 if (thp->audiosize == 0) {
151 if (thp->frame >= thp->framecnt)
154 avio_seek(pb, thp->next_frame, SEEK_SET);
157 thp->next_frame += thp->next_framesz;
158 thp->next_framesz = avio_rb32(pb);
165 if (thp->has_audio)
166 thp->audiosize = avio_rb32(pb); /* Audio size. */
168 thp->frame++;
176 pkt->stream_index = thp->video_stream_index;
178 ret = av_get_packet(pb, pkt, thp->audiosize);
179 if (ret != thp->audiosize) {
184 pkt->stream_index = thp->audio_stream_index;
185 thp->audiosize = 0;
186 thp->frame++;
193 .name = "thp",