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
| Name | Type | Access | Description |
|---|---|---|---|
states | list[list[int]] | Read | Gets the states. |
Methods
| Signature | Description |
|---|---|
__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) → int | Decode one bit in context. |