Lines Matching refs:maplength
36 unsigned int w, h, depth, type, maptype, maplength, stride, x, y, len, alen;
54 maplength = AV_RB32(buf + 28);
79 if (maplength > 768) {
87 avctx->pix_fmt = maplength ? AV_PIX_FMT_PAL8 : AV_PIX_FMT_MONOWHITE;
90 avctx->pix_fmt = maplength ? AV_PIX_FMT_PAL8 : AV_PIX_FMT_NONE;
93 avctx->pix_fmt = maplength ? AV_PIX_FMT_PAL8 : AV_PIX_FMT_GRAY8;
121 // maplength is limited to 768 and the right term is limited to INT32_MAX / 256 so the add needs no check
122 if (buf_end - buf < (uint64_t)maplength + (len * h) * 3 / 256)
130 if (depth > 8 && maplength) {
133 } else if (maplength) {
134 unsigned int len = maplength / 3;
136 if (maplength % 3) {
146 buf += maplength;
148 if (maplength && depth < 8) {