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.BMPDecoderBaseDecoder 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.BMPDecoderBaseDecoder 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.BMPDecoderBaseDecoder 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.BMPDecoderBaseDecoder 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.DecoderBaseBase 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
BMPDecoderBaseare 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:
objectBITMAPFILEHEADER structure.
Parameters: -
classmethod
from_buffer(buffer)¶
-
classmethod
from_file(file)¶
-
classmethod