Lines Matching defs:roq
2 * id RoQ (.roq) File Demuxer
26 * for more information on the .roq file format, visit:
70 RoqDemuxContext *roq = s->priv_data;
83 roq->width = roq->height = roq->audio_channels = roq->video_pts =
84 roq->audio_frame_count = 0;
85 roq->audio_stream_index = -1;
91 roq->video_stream_index = st->index;
102 RoqDemuxContext *roq = s->priv_data;
130 if (!roq->width || !roq->height) {
131 AVStream *st = s->streams[roq->video_stream_index];
134 st->codec->width = roq->width = AV_RL16(preamble);
135 st->codec->height = roq->height = AV_RL16(preamble + 2);
160 pkt->stream_index = roq->video_stream_index;
161 pkt->pts = roq->video_pts++;
168 if (roq->audio_stream_index == -1) {
173 roq->audio_stream_index = st->index;
177 st->codec->channels = roq->audio_channels = chunk_type == RoQ_SOUND_STEREO ? 2 : 1;
192 pkt->stream_index = roq->video_stream_index;
193 pkt->pts = roq->video_pts++;
195 pkt->stream_index = roq->audio_stream_index;
196 pkt->pts = roq->audio_frame_count;
197 roq->audio_frame_count += (chunk_size / roq->audio_channels);