Lines Matching defs:roq
2 * id RoQ (.roq) File Demuxer
26 * for more information on the .roq file format, visit:
72 RoqDemuxContext *roq = s->priv_data;
80 roq->frame_rate = AV_RL16(&preamble[6]);
83 roq->width = roq->height = roq->audio_channels = roq->video_pts =
84 roq->audio_frame_count = 0;
85 roq->audio_stream_index = -1;
86 roq->video_stream_index = -1;
96 RoqDemuxContext *roq = s->priv_data;
124 if (roq->video_stream_index == -1) {
128 avpriv_set_pts_info(st, 63, 1, roq->frame_rate);
129 roq->video_stream_index = st->index;
136 st->codec->width = roq->width = AV_RL16(preamble);
137 st->codec->height = roq->height = AV_RL16(preamble + 2);
162 pkt->stream_index = roq->video_stream_index;
163 pkt->pts = roq->video_pts++;
170 if (roq->audio_stream_index == -1) {
175 roq->audio_stream_index = st->index;
179 st->codec->channels = roq->audio_channels = chunk_type == RoQ_SOUND_STEREO ? 2 : 1;
194 pkt->stream_index = roq->video_stream_index;
195 pkt->pts = roq->video_pts++;
197 pkt->stream_index = roq->audio_stream_index;
198 pkt->pts = roq->audio_frame_count;
199 roq->audio_frame_count += (chunk_size / roq->audio_channels);