avifilelib.bmp module¶
Decoders for Microsoft BMP formats.
This package provides decoders capable of decoding frames encoded using the Microsoft Bitmap formats.
-
class
avifilelib.bmp.
BMP16Decoder
(width, height, colors=None)¶ Bases:
avifilelib.bmp.BMPDecoderBase
Decoder for 16-bit bitmaps.
This class implements a decoder for the 16-bit bitmaps.
-
BIT_COUNT
= 16¶
-
BLUE_MASK
= 31¶
-
BLUE_SHIFT
= 0¶
-
COMPRESSION
= 0¶
-
GREEN_MASK
= 992¶
-
GREEN_SHIFT
= 5¶
-
RED_MASK
= 31744¶
-
RED_SHIFT
= 10¶
-
-
class
avifilelib.bmp.
BMP24Decoder
(width, height, colors=None)¶ Bases:
avifilelib.bmp.BMPDecoderBase
Decoder for 24-bit bitmaps.
This class implements a decoder for the 24-bit bitmaps.
-
BIT_COUNT
= 24¶
-
COMPRESSION
= 0¶
-
-
class
avifilelib.bmp.
BMP32Decoder
(width, height, colors=None)¶ Bases:
avifilelib.bmp.BMPDecoderBase
Decoder for 32-bit bitmaps.
This class implements a decoder for the 32-bit bitmaps.
-
BIT_COUNT
= 32¶
-
COMPRESSION
= 0¶
-
-
class
avifilelib.bmp.
BMP8Decoder
(width, height, colors=None)¶ Bases:
avifilelib.bmp.BMPDecoderBase
Decoder for 8-bit bitmaps.
This class implements a decoder for the 8-bit bitmaps.
-
BIT_COUNT
= 8¶
-
COMPRESSION
= 0¶
-
-
class
avifilelib.bmp.
BMPDecoderBase
(width, height, colors=None)¶ Bases:
avifilelib.decoder.DecoderBase
Base class for bitmap decoders.
Parameters: -
COMPRESSION
= (<BI_COMPRESSION.BI_RGB: 0>,)¶
-
classmethod
for_avi_stream
(stream_definition)¶ Attempts to find a decoder implementation for a stream.
Subclasses of
BMPDecoderBase
are selected by matching the value of BIT_COUNT.Returns: A subclass of BMPDecoderBase
.Return type: object
-
image
¶ Gets a copy of the image.
-
-
class
avifilelib.bmp.
BMPFileHeader
(type, size, reserved1, reserved2, offbits)¶ Bases:
object
BITMAPFILEHEADER structure.
Parameters: -
classmethod
from_buffer
(buffer)¶
-
classmethod
from_file
(file)¶
-
classmethod