Lines Matching defs:bpp
72 unsigned int bpp, bppcount;
321 return; /* <= 8bpp unsupported */
374 unsigned int bpp, uint8_t* dst,
378 switch (bpp) {
410 uint8_t shift = is_dng ? 0 : 16 - bpp;
415 dst16[i] = get_bits(&gb, bpp) << shift;
442 const uint8_t *src, int lnum, int width, int bpp)
450 dst[i] = get_bits(&gb, bpp);
532 if (s->bpp < 8 && s->avctx->pix_fmt == AV_PIX_FMT_PAL8) {
533 horizontal_fill(s, s->bpp, dst, 1, src, 0, width, 0);
597 if (s->bpp < 8 && s->avctx->pix_fmt == AV_PIX_FMT_PAL8) {
598 horizontal_fill(s, s->bpp, dst, 1, src, 0, width, 0);
627 if (s->bpp < 8 && s->avctx->pix_fmt == AV_PIX_FMT_PAL8)
629 horizontal_fill(s, s->bpp, dst, 1, dst, 0, width, 0);
676 is_u16 = (s->bpp > 8);
701 av_log(s->avctx, AV_LOG_ERROR, "DNGs with bpp <= 8 and 1 component are unsupported\n");
731 int width = ((s->width * s->bpp) + 7) >> 3;
745 int bytes_per_row = (((s->width - 1) / s->subsampling[0] + 1) * s->bpp *
758 av_assert0(s->bpp == 24);
761 av_assert0(width == (s->bpp * s->width + 7) >> 3);
815 if (s->bpp < 8 && s->avctx->pix_fmt == AV_PIX_FMT_PAL8)
816 horizontal_fill(s, s->bpp, dst, 1, dst, 0, width, 0);
821 unpack_gray(s, p, dst, strip_start + line, width, s->bpp);
872 horizontal_fill(s, s->bpp * (s->avctx->pix_fmt == AV_PIX_FMT_PAL8 || s->is_bayer),
884 is_u16 = (s->bpp / s->bppcount > 8);
888 elements = width / pixel_size_bytes * pixel_size_bits / s->bpp * s->bppcount; // need to account for [1, 16] bpp
918 horizontal_fill(s, s->bpp * (s->avctx->pix_fmt == AV_PIX_FMT_PAL8),
930 horizontal_fill(s, s->bpp * (s->avctx->pix_fmt == AV_PIX_FMT_PAL8),
946 unpack_gray(s, p, dst, strip_start + line, width, s->bpp);
1032 if (s->bpp >= 100 || s->bppcount >= 10) {
1034 "Unsupported image parameters: bpp=%d, bppcount=%d\n",
1035 s->bpp, s->bppcount);
1039 switch (s->planar * 1000 + s->bpp * 10 + s->bppcount + s->is_bayer * 10000) {
1139 "bpp=40 without PHOTOMETRIC_SEPARATED is unsupported\n");
1163 "This format is not supported (bpp=%d, bppcount=%d)\n",
1164 s->bpp, s->bppcount);
1192 for (i = 0; i < 1<<s->bpp; i++)
1193 pal[i] = 0xFFU << 24 | i * 255 / ((1<<s->bpp) - 1) * 0x010101;
1282 "This format is not supported (bpp=%d, %d components)\n",
1288 s->bpp = value;
1294 s->bpp = 0;
1298 s->bpp += ff_tget(&s->gb, type, s->le);
1301 s->bpp = -1;
1317 s->bpp *= value;
1752 if (s->bpp > 64U) {
1754 "This format is not supported (bpp=%d, %d components)\n",
1755 s->bpp, count);
1756 s->bpp = 0;
1794 s->bppcount = s->bpp = 1;
1882 if (s->bpp % s->bppcount)
1884 bps = s->bpp / s->bppcount;
2021 soff = s->bpp >> 3;
2057 int c = (s->avctx->pix_fmt == AV_PIX_FMT_PAL8 ? (1<<s->bpp) - 1 : 255);
2112 if (s->is_bayer && s->white_level && s->bpp == 16 && !is_dng) {