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->codecpar->width = roq->width = AV_RL16(preamble);
140 st->codecpar->height = roq->height = AV_RL16(preamble + 2);
148 if (roq->video_stream_index < 0)
170 pkt->stream_index = roq->video_stream_index;
171 pkt->pts = roq->video_pts++;
178 if (roq->audio_stream_index == -1) {
183 roq->audio_stream_index = st->index;
192 roq->audio_channels = st->codecpar->ch_layout.nb_channels;
195 st->codecpar->bit_rate = roq->audio_channels * st->codecpar->sample_rate *
197 st->codecpar->block_align = roq->audio_channels * st->codecpar->bits_per_coded_sample;
201 if (roq->video_stream_index < 0)
213 pkt->stream_index = roq->video_stream_index;
214 pkt->pts = roq->video_pts++;
216 pkt->stream_index = roq->audio_stream_index;
217 pkt->pts = roq->audio_frame_count;
218 roq->audio_frame_count += (chunk_size / roq->audio_channels);
241 .name = "roq",