Lines Matching defs:frame
35 AVIOContext *frame; ///< current frame buffer
36 uint32_t timestamp; ///< current frame timestamp
37 int hdr_size; ///< size of the current frame header
66 ffio_free_dyn_buf(&jpeg->frame);
234 width = AV_RB8(buf + 6); /* frame width in 8 pixel blocks */
235 height = AV_RB8(buf + 7); /* frame height in 8 pixel blocks */
320 /* Skip the current frame in case of the end packet
322 ffio_free_dyn_buf(&jpeg->frame);
324 if ((ret = avio_open_dyn_buf(&jpeg->frame)) < 0)
328 /* Generate a frame and scan headers that can be prepended to the
335 /* Copy JPEG header to frame buffer. */
336 avio_write(jpeg->frame, hdr, jpeg->hdr_size);
339 if (!jpeg->frame) {
341 "Received packet without a start chunk; dropping frame.\n");
346 /* Skip the current frame if timestamp is incorrect.
348 ffio_free_dyn_buf(&jpeg->frame);
353 if (off != avio_tell(jpeg->frame) - jpeg->hdr_size) {
355 "Missing packets; dropping frame.\n");
359 /* Copy data to frame buffer. */
360 avio_write(jpeg->frame, buf, len);
367 avio_write(jpeg->frame, buf, sizeof(buf));
370 if ((ret = ff_rtp_finalize_packet(pkt, &jpeg->frame, st->index)) < 0) {
372 "Error occurred when getting frame buffer.\n");