Home
last modified time | relevance | path

Searched refs:maplength (Results 1 - 2 of 2) sorted by relevance

/third_party/ffmpeg/libavcodec/
H A Dsunrast.c36 unsigned int w, h, depth, type, maptype, maplength, stride, x, y, len, alen; in sunrast_decode_frame() local
54 maplength = AV_RB32(buf + 28); in sunrast_decode_frame()
79 if (maplength > 768) { in sunrast_decode_frame()
87 avctx->pix_fmt = maplength ? AV_PIX_FMT_PAL8 : AV_PIX_FMT_MONOWHITE; in sunrast_decode_frame()
90 avctx->pix_fmt = maplength ? AV_PIX_FMT_PAL8 : AV_PIX_FMT_NONE; in sunrast_decode_frame()
93 avctx->pix_fmt = maplength ? AV_PIX_FMT_PAL8 : AV_PIX_FMT_GRAY8; in sunrast_decode_frame()
121 // maplength is limited to 768 and the right term is limited to INT32_MAX / 256 so the add needs no check in sunrast_decode_frame()
122 if (buf_end - buf < (uint64_t)maplength + (len * h) * 3 / 256) in sunrast_decode_frame()
130 if (depth > 8 && maplength) { in sunrast_decode_frame()
133 } else if (maplength) { in sunrast_decode_frame()
[all...]
H A Dsunrastenc.c38 int maplength; ///< length (bytes) of colormap member
53 bytestream2_put_be32u(&s->p, s->maplength); in sunrast_image_write_header()
65 if (s->maplength) { // palettized in sunrast_image_write_image()
67 int len = s->maplength / 3; in sunrast_image_write_image()
129 s->length = bytestream2_tell_p(&s->p) - 32 - s->maplength; in sunrast_image_write_image()
148 s->maplength = 0; in sunrast_encode_init()
156 s->maplength = 3 * 256; in sunrast_encode_init()
168 s->size = 32 + s->maplength + s->length * s->type; in sunrast_encode_init()

Completed in 2 milliseconds