Image Encoding Fallback Mode for Bitstream Buffer Overflow
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing video encoding technologies generate variable-bitrate bitstreams that are not suitable for real-time transmission over fixed-bitrate channels, leading to potential bitstream overflow and subsequent image information loss due to buffer overflow.
Innovation Solution
Implement a fallback mode in both encoding and decoding processes to adjust the code length based on the remaining storage space of the bitstream buffer, ensuring that the bitstream does not exceed the maximum allowed storage, thereby preventing overflow or underflow.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If variable-length code is used to improve compression efficiency, then compression efficiency is improved, but bitstream overflow risk increases
Solution Approach 1:
The patent applies dynamics by making the code length adaptive rather than fixed. The encoding device dynamically adjusts the code length of syntax elements based on the current buffer occupancy state. When the buffer has sufficient space, longer variable-length codes are used for better compression. When the buffer is nearly full, the code length is reduced or fixed to ensure the bitstream does not overflow. This dynamic adjustment resolves the contradiction between compression efficiency and overflow risk.
Solution Approach 2:
The patent changes the parameter of code length from a static property to a dynamic one that varies with buffer state. By monitoring buffer occupancy and adjusting the code length parameter accordingly, the system can maintain high compression efficiency while preventing overflow. The encoding device modifies the code length parameter based on real-time buffer status, transforming a fixed parameter into a controllable variable that balances compression and reliability.
2Reliability
If buffer storage space is increased to accommodate variable-bitrate bitstream, then overflow risk is reduced, but device complexity and memory usage increase
Solution Approach 1:
Instead of increasing buffer size, the patent changes the parameter of code length to adapt to the buffer constraints. By making code length variable based on buffer occupancy, the system achieves reliable transmission without requiring excessive buffer storage space. This parameter change approach avoids the complexity and cost of larger buffers while maintaining overflow protection.
Solution Approach 2:
The patent introduces dynamic code length adjustment that responds to buffer state in real-time. This dynamic mechanism allows the system to operate reliably with a fixed, modest buffer size by adapting the encoding parameters to available space. The dynamic adjustment eliminates the need for large static buffers, reducing device complexity while maintaining reliability.
3Reliability
If fixed code length is used to prevent bitstream overflow, then overflow risk is reduced, but compression efficiency decreases
Solution Approach 1:
The patent implements a dynamic coding scheme where the code length is not fixed but adapts based on buffer occupancy. During normal operation when buffer space is充足, variable-length codes provide high compression efficiency. When the buffer approaches capacity, the system transitions to fixed or shorter variable-length codes to prevent overflow. This dynamic behavior maintains compression efficiency while ensuring overflow prevention.
Solution Approach 2:
The patent segments the encoding process into different modes based on buffer state. One mode uses variable-length codes for high compression when buffer space is available, while another mode uses fixed or truncated codes when buffer space is limited. By segmenting the encoding strategy according to buffer occupancy levels, the system achieves both compression efficiency and overflow protection.
Data Source
AI summary
An image decoding method, includes: parsing a bitstream of a to-be-decoded block, and determining whether an image block corresponding to the to-be-decoded block is in a fallback mode in a case that the bitstream of the to-be-decoded block comprises a first codeword; determining a fixed code length of each component of the to-be-decoded block based on an exceeded code length of the bitstream buffer in a case that the image block corresponding to the to-be-decoded block is in the fallback mode and a stored code length of the bitstream buffer exceeds the set overflow line; and decoding the to-be-decoded block by parsing the pixels on each component of the to-be-decoded block in accordance with the fixed code length of the component, thereby avoiding overflowing of the bitstream.


