Lines Matching defs:buf_end

552  * @param buf_end the EOF of source byterun1 compressed bitstream
809 const uint8_t *buf, const uint8_t *buf_end,
819 bytestream2_init(&ptrs, buf, buf_end - buf);
829 if (ofssrc >= buf_end - buf)
832 bytestream2_init(&gb, buf + ofssrc, buf_end - (buf + ofssrc));
862 const uint8_t *buf, const uint8_t *buf_end,
872 bytestream2_init(&ptrs, buf, buf_end - buf);
881 if (ofssrc >= buf_end - buf)
884 bytestream2_init(&gb, buf + ofssrc, buf_end - (buf + ofssrc));
929 const uint8_t *buf, const uint8_t *buf_end,
944 bytestream2_init(&gb, buf, buf_end - buf);
1040 const uint8_t *buf, const uint8_t *buf_end,
1050 if (buf_end - buf <= 64)
1053 bytestream2_init(&ptrs, buf, buf_end - buf);
1054 bytestream2_init(&dptrs, buf + 32, (buf_end - buf) - 32);
1064 if (ofssrc >= buf_end - buf)
1067 if (ofsdata >= buf_end - buf)
1070 bytestream2_init(&gb, buf + ofssrc, buf_end - (buf + ofssrc));
1071 bytestream2_init(&dgb, buf + ofsdata, buf_end - (buf + ofsdata));
1108 const uint8_t *buf, const uint8_t *buf_end,
1118 if (buf_end - buf <= 64)
1122 bytestream2_init(&ptrs, buf, buf_end - buf);
1123 bytestream2_init(&dptrs, buf + 32, (buf_end - buf) - 32);
1133 if (ofssrc >= buf_end - buf)
1136 if (ofsdata >= buf_end - buf)
1139 bytestream2_init(&gb, buf + ofssrc, buf_end - (buf + ofssrc));
1140 bytestream2_init(&dgb, buf + ofsdata, buf_end - (buf + ofsdata));
1194 const uint8_t *buf, const uint8_t *buf_end,
1204 bytestream2_init(&ptrs, buf, buf_end - buf);
1213 if (ofssrc >= buf_end - buf)
1216 bytestream2_init(&gb, buf + ofssrc, buf_end - (buf + ofssrc));
1254 const uint8_t *buf, const uint8_t *buf_end,
1266 bytestream2_init(&ptrs, buf, buf_end - buf);
1275 if (ofssrc >= buf_end - buf)
1278 bytestream2_init(&gb, buf + ofssrc, buf_end - (buf + ofssrc));
1336 const uint8_t *buf, const uint8_t *buf_end,
1347 if (buf_end - buf <= 4 * bpp)
1359 if (ofssrc >= buf_end - buf)
1362 bytestream2_init(&gb, buf + ofssrc, buf_end - (buf + ofssrc));
1395 const uint8_t *buf, const uint8_t *buf_end,
1406 if (buf_end - buf <= 4 * bpp)
1418 if (ofssrc >= buf_end - buf)
1421 bytestream2_init(&gb, buf + ofssrc, buf_end - (buf + ofssrc));
1450 const uint8_t *buf, const uint8_t *buf_end,
1462 if (buf_end - buf <= 64)
1465 bytestream2_init(&off0, buf, buf_end - buf);
1466 bytestream2_init(&off1, buf + 32, buf_end - (buf + 32));
1478 if (2LL * poff0 >= buf_end - buf)
1481 if (2LL * poff1 >= buf_end - buf)
1484 bytestream2_init(&dgb, buf + 2 * poff0, buf_end - (buf + 2 * poff0));
1485 bytestream2_init(&ogb, buf + 2 * poff1, buf_end - (buf + 2 * poff1));
1534 const uint8_t *buf_end = buf + buf_size;
1574 for (y = 0; y < avctx->height && buf < buf_end; y++) {
1576 decodeplane8(row, buf, FFMIN(s->planesize, buf_end - buf), plane);
1587 if (start >= buf_end)
1589 decodeplane8(s->ham_buf, start, FFMIN(s->planesize, buf_end - start), plane);
1598 for (y = 0; y < avctx->height && buf < buf_end; y++) {
1600 memcpy(row, buf, FFMIN(raw_width, buf_end - buf));
1610 memcpy(s->video[0], buf, FFMIN(buf_end - buf, s->video_size));
1615 for (plane = 0; plane < s->bpp && buf < buf_end; plane++) {
1616 decodeplane8(row, buf, FFMIN(s->planesize, buf_end - buf), plane);
1624 for (plane = 0; plane < s->bpp && buf < buf_end; plane++) {
1625 decodeplane8(s->ham_buf, buf, FFMIN(s->planesize, buf_end - buf), plane);
1634 for (plane = 0; plane < s->bpp && buf < buf_end; plane++) {
1636 FFMIN(s->planesize, buf_end - buf), plane);
1643 for (y = 0; y < avctx->height && buf_end > buf; y++) {
1645 memcpy(row, buf, FFMIN(avctx->width, buf_end - buf));
1649 for (y = 0; y < avctx->height && buf_end > buf; y++) {
1651 memcpy(s->ham_buf, buf, FFMIN(avctx->width, buf_end - buf));
1737 for (y = 0; y < avctx->height && buf < buf_end; y++) {
1739 decodeplane8(row, buf, FFMIN(s->planesize, buf_end - buf), plane);
1750 if (start >= buf_end)
1752 decodeplane8(s->ham_buf, start, FFMIN(s->planesize, buf_end - start), plane);
1795 decode_short_horizontal_delta(s->video[0], buf, buf_end, avctx->width, s->bpp, s->video_size);
1799 decode_byte_vertical_delta(s->video[0], buf, buf_end, avctx->width, s->is_brush, s->bpp, s->video_size);
1804 decode_short_vertical_delta(s->video[0], buf, buf_end, avctx->width, s->bpp, s->video_size);
1806 decode_long_vertical_delta(s->video[0], buf, buf_end, avctx->width, s->bpp, s->video_size);
1811 decode_short_vertical_delta2(s->video[0], buf, buf_end, avctx->width, s->bpp, s->video_size);
1813 decode_long_vertical_delta2(s->video[0], buf, buf_end, avctx->width, s->bpp, s->video_size);
1817 decode_delta_j(s->video[0], buf, buf_end, avctx->width, avctx->height, s->bpp, s->video_size);
1823 decode_delta_d(s->video[0], buf, buf_end, avctx->width, s->is_interlaced, s->bpp, s->video_size);
1829 decode_delta_e(s->video[0], buf, buf_end, avctx->width, s->is_interlaced, s->bpp, s->video_size);
1833 decode_delta_l(s->video[0], buf, buf_end, avctx->width, s->is_short, s->bpp, s->video_size);