Lines Matching refs:preamble
75 unsigned char preamble[RoQ_CHUNK_PREAMBLE_SIZE];
81 if (get_buffer(pb, preamble, RoQ_CHUNK_PREAMBLE_SIZE) !=
84 roq->framerate = AV_RL16(&preamble[6]);
93 if (get_buffer(pb, preamble, RoQ_CHUNK_PREAMBLE_SIZE) !=
97 chunk_type = AV_RL16(&preamble[0]);
98 chunk_size = AV_RL32(&preamble[2]);
103 /* fetch the width and height; reuse the preamble bytes */
104 if (get_buffer(pb, preamble, RoQ_CHUNK_PREAMBLE_SIZE) !=
107 roq->width = AV_RL16(&preamble[0]);
108 roq->height = AV_RL16(&preamble[2]);
128 av_log(s, AV_LOG_ERROR, " unknown RoQ chunk type (%04X)\n", AV_RL16(&preamble[0]));
183 unsigned char preamble[RoQ_CHUNK_PREAMBLE_SIZE];
192 /* get the next chunk preamble */
193 if ((ret = get_buffer(pb, preamble, RoQ_CHUNK_PREAMBLE_SIZE)) !=
197 chunk_type = AV_RL16(&preamble[0]);
198 chunk_size = AV_RL32(&preamble[2]);
214 if (get_buffer(pb, preamble, RoQ_CHUNK_PREAMBLE_SIZE) !=
217 chunk_size = AV_RL32(&preamble[2]) + RoQ_CHUNK_PREAMBLE_SIZE * 2 +
240 /* copy over preamble */
241 memcpy(pkt->data, preamble, RoQ_CHUNK_PREAMBLE_SIZE);