Lines Matching refs:bpp
58 … unsigned bpp; ///< bits per plane to decode (differs from bits_per_coded_sample if HAM) member
279 s->bpp = bytestream_get_byte(&buf); in extract_header()
288 if (s->bpp > 8) { in extract_header()
291 } else if (s->ham != (s->bpp > 6 ? 6 : 4)) { in extract_header()
292 … av_log(avctx, AV_LOG_ERROR, "Invalid number of hold bits for HAM: %u, BPP: %u\n", s->ham, s->bpp); in extract_header()
298 if (s->bpp >= 8 && !s->ham) { in extract_header()
305 if (s->bpp > 16) { in extract_header()
306 av_log(avctx, AV_LOG_ERROR, "bpp %d too large for palette\n", s->bpp); in extract_header()
310 … s->mask_palbuf = av_malloc((2 << s->bpp) * sizeof(uint32_t) + AV_INPUT_BUFFER_PADDING_SIZE); in extract_header()
316 s->bpp++; in extract_header()
321 if (!s->bpp || s->bpp > 32) { in extract_header()
322 av_log(avctx, AV_LOG_ERROR, "Invalid number of bitplanes: %u\n", s->bpp); in extract_header()
325 if (s->video_size && s->planesize * s->bpp * avctx->height > s->video_size) in extract_header()
377 s->ham_palbuf[(1 << s->bpp) + i] = s->ham_palbuf[i] | 0xFF000000; in extract_header()
439 s->bpp = avctx->bits_per_coded_sample; in decode_init()
442 s->video_size = FFALIGN(avctx->width, 2) * avctx->height * s->bpp; in decode_init()
445 s->video[0] = av_calloc(FFALIGN(avctx->width, 2) * avctx->height, s->bpp); in decode_init()
446 s->video[1] = av_calloc(FFALIGN(avctx->width, 2) * avctx->height, s->bpp); in decode_init()
810 int w, int bpp, int dst_size) in decode_short_horizontal_delta() argument
813 int pitch = planepitch * bpp; in decode_short_horizontal_delta()
822 for (k = 0; k < bpp; k++) { in decode_short_horizontal_delta()
863 int w, int xor, int bpp, int dst_size) in decode_byte_vertical_delta() argument
866 int dstpitch = ncolumns * bpp; in decode_byte_vertical_delta()
875 for (k = 0; k < bpp; k++) { in decode_byte_vertical_delta()
930 int w, int h, int bpp, int dst_size) in decode_delta_j() argument
941 pitch = planepitch * bpp; in decode_delta_j()
960 if (cols * bpp == 0 || bytestream2_get_bytes_left(&gb) < cols * bpp) { in decode_delta_j()
961 av_log(NULL, AV_LOG_ERROR, "cols*bpp is invalid (%"PRId32"*%d)", cols, bpp); in decode_delta_j()
971 for (d = 0; d < bpp; d++) { in decode_delta_j()
986 if ((cols * bpp) & 1) in decode_delta_j()
1005 for (d = 0; d < bpp; d++) { in decode_delta_j()
1029 if ((rows * bytes * bpp) & 1) in decode_delta_j()
1041 int w, int bpp, int dst_size) in decode_short_vertical_delta() argument
1044 int dstpitch = ncolumns * bpp * 2; in decode_short_vertical_delta()
1057 for (k = 0; k < bpp; k++) { in decode_short_vertical_delta()
1109 int w, int bpp, int dst_size) in decode_long_vertical_delta() argument
1112 int dstpitch = ((w + 15) / 16 * 2) * bpp; in decode_long_vertical_delta()
1126 for (k = 0; k < bpp; k++) { in decode_long_vertical_delta()
1195 int w, int bpp, int dst_size) in decode_short_vertical_delta2() argument
1198 int dstpitch = ncolumns * bpp * 2; in decode_short_vertical_delta2()
1207 for (k = 0; k < bpp; k++) { in decode_short_vertical_delta2()
1255 int w, int bpp, int dst_size) in decode_long_vertical_delta2() argument
1258 int dstpitch = ((w + 15) / 16 * 2) * bpp; in decode_long_vertical_delta2()
1269 for (k = 0; k < bpp; k++) { in decode_long_vertical_delta2()
1337 int w, int flag, int bpp, int dst_size) in decode_delta_d() argument
1340 int pitch = planepitch * bpp; in decode_delta_d()
1347 if (buf_end - buf <= 4 * bpp) in decode_delta_d()
1351 bytestream2_init(&ptrs, buf, bpp * 4); in decode_delta_d()
1353 for (k = 0; k < bpp; k++) { in decode_delta_d()
1396 int w, int flag, int bpp, int dst_size) in decode_delta_e() argument
1399 int pitch = planepitch * bpp; in decode_delta_e()
1406 if (buf_end - buf <= 4 * bpp) in decode_delta_e()
1410 bytestream2_init(&ptrs, buf, bpp * 4); in decode_delta_e()
1412 for (k = 0; k < bpp; k++) { in decode_delta_e()
1451 int w, int flag, int bpp, int dst_size) in decode_delta_l() argument
1459 int pitch = planepitch * bpp; in decode_delta_l()
1468 dstpitch = flag ? (((w + 7) / 8) * bpp): 2; in decode_delta_l()
1470 for (k = 0; k < bpp; k++) { in decode_delta_l()
1519 …ap (compression 0x%0x, bpp %i, ham %i, interlaced %i)", s->compression, s->bpp, s->ham, s->is_inte… in unsupported()
1570 for (plane = 0; plane < s->bpp; plane++) { in decode_frame()
1582 for (plane = 0; plane < s->bpp; plane++) { in decode_frame()
1612 for (plane = 0; plane < s->bpp && buf < buf_end; plane++) { in decode_frame()
1621 for (plane = 0; plane < s->bpp && buf < buf_end; plane++) { in decode_frame()
1631 for (plane = 0; plane < s->bpp && buf < buf_end; plane++) { in decode_frame()
1667 for (plane = 0; plane < s->bpp; plane++) { in decode_frame()
1680 for (plane = 0; plane < s->bpp; plane++) { in decode_frame()
1691 for (plane = 0; plane < s->bpp; plane++) { in decode_frame()
1705 for (plane = 0; plane < s->bpp; plane++) { in decode_frame()
1733 for (plane = 0; plane < s->bpp; plane++) { in decode_frame()
1745 for (plane = 0; plane < s->bpp; plane++) { in decode_frame()
1762 for (plane = 0; plane < s->bpp; plane++) { in decode_frame()
1792 … decode_short_horizontal_delta(s->video[0], buf, buf_end, avctx->width, s->bpp, s->video_size); in decode_frame()
1796 …decode_byte_vertical_delta(s->video[0], buf, buf_end, avctx->width, s->is_brush, s->bpp, s->video_… in decode_frame()
1801 … decode_short_vertical_delta(s->video[0], buf, buf_end, avctx->width, s->bpp, s->video_size); in decode_frame()
1803 … decode_long_vertical_delta(s->video[0], buf, buf_end, avctx->width, s->bpp, s->video_size); in decode_frame()
1808 … decode_short_vertical_delta2(s->video[0], buf, buf_end, avctx->width, s->bpp, s->video_size); in decode_frame()
1810 … decode_long_vertical_delta2(s->video[0], buf, buf_end, avctx->width, s->bpp, s->video_size); in decode_frame()
1814 … decode_delta_j(s->video[0], buf, buf_end, avctx->width, avctx->height, s->bpp, s->video_size); in decode_frame()
1820 … decode_delta_d(s->video[0], buf, buf_end, avctx->width, s->is_interlaced, s->bpp, s->video_size); in decode_frame()
1826 … decode_delta_e(s->video[0], buf, buf_end, avctx->width, s->is_interlaced, s->bpp, s->video_size); in decode_frame()
1830 decode_delta_l(s->video[0], buf, buf_end, avctx->width, s->is_short, s->bpp, s->video_size); in decode_frame()
1846 for (plane = 0; plane < s->bpp; plane++) { in decode_frame()
1873 s->ham_palbuf[(1 << s->bpp) + i] = s->ham_palbuf[i] | 0xFF000000; in decode_frame()
1878 for (plane = 0; plane < s->bpp; plane++) { in decode_frame()