Lines Matching defs:roq
2 * id RoQ (.roq) File Demuxer
26 * for more information on the .roq file format, visit:
73 RoqDemuxContext *roq = s->priv_data;
81 roq->frame_rate = AV_RL16(&preamble[6]);
84 roq->width = roq->height = roq->audio_channels = roq->video_pts =
85 roq->audio_frame_count = 0;
86 roq->audio_stream_index = -1;
87 roq->video_stream_index = -1;
97 RoqDemuxContext *roq = s->priv_data;
127 if (roq->video_stream_index == -1) {
131 avpriv_set_pts_info(st, 63, 1, roq->frame_rate);
132 roq->video_stream_index = st->index;
139 st->codec->width = roq->width = AV_RL16(preamble);
140 st->codec->height = roq->height = AV_RL16(preamble + 2);
148 if (roq->video_stream_index < 0)
167 pkt->stream_index = roq->video_stream_index;
168 pkt->pts = roq->video_pts++;
175 if (roq->audio_stream_index == -1) {
180 roq->audio_stream_index = st->index;
191 roq->audio_channels = st->codec->channels;
200 if (roq->video_stream_index < 0)
211 pkt->stream_index = roq->video_stream_index;
212 pkt->pts = roq->video_pts++;
214 pkt->stream_index = roq->audio_stream_index;
215 pkt->pts = roq->audio_frame_count;
216 roq->audio_frame_count += (chunk_size / roq->audio_channels);
238 .name = "roq",