MQDecoder

Overview

MQDecoder is a class in Aspose.PDF FOSS for Python.

The MQ arithmetic decoder of Annex C.

This class declares 4 methods for MQDecoder objects in Python programs. Available methods include: __init__, decode, reset_states, restart. All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package. Properties: states.

Properties

NameTypeAccessDescription
stateslist[list[int]]ReadGets the states.

Methods

SignatureDescription
__init__(data: bytes, contexts: int)Calls init(data, contexts) on this MQDecoder instance.
reset_states()Return every context to the initial state of Table D.7.
restart(position: int)(Re)initialise the decoder at position (INITDEC).
decode(context: int)intDecode one bit in context.