Index Color Bitmap Reduces Memory for Picture Display
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current picture display technologies in electronic devices, such as smartphones, consume excessive memory due to the true color format used in bitmap objects, leading to system errors and instability, especially in devices with limited memory.
Innovation Solution
The method involves obtaining original picture information, performing indexing operations to create an indexed object, and establishing a bitmap object in an index color format using a color table and pixel buffer, reducing memory occupation by half or quarter compared to true color formats.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Measurement precision
If a bitmap object of true color format is used to display picture content, then the display quality is improved, but the memory occupation increases
Solution Approach 1:
The patent segments the color information into two parts: a color table containing all unique colors and an indexed pixel buffer containing only index values. This segmentation allows the display to maintain true color quality through the color table while reducing memory usage in the pixel buffer from 16 bits per pixel to 8 bits per pixel, since each pixel only needs to store a reference index rather than full color data.
Solution Approach 2:
The patent creates a simplified copy of the color information by storing only index references in the pixel buffer instead of complete color values. The color table serves as a lookup copy that maps these indices to actual color values, enabling memory-efficient storage while preserving the ability to retrieve full color information for display.
2Measurement precision
If a bitmap object of true color format is used to display picture content, then the color accuracy is improved, but the system stability deteriorates
Solution Approach 1:
By segmenting color data into a separate color table and an indexed pixel buffer, the patent reduces the memory footprint of the bitmap object. This segmentation prevents memory exhaustion that would cause system errors, while the color table preserves accurate color representation for display quality.
Solution Approach 2:
The patent changes the parameter representation from storing full 16-bit color values at each pixel to storing 8-bit index values that reference a color table. This parameter transformation maintains color accuracy through the lookup mechanism while reducing memory occupation to prevent system instability.
3Reliability
If the memory occupation is reduced by using index color format, then the system stability is improved, but the device complexity increases
Solution Approach 1:
The patent introduces a color table as an intermediary data structure that bridges the simplified indexed pixel buffer and the full-color display requirements. This intermediary layer enables the system to work with compact 8-bit index data while maintaining the ability to render accurate colors, thus improving stability without requiring fundamentally complex processing changes.
Data Source
AI summary
The present disclosure describes a method, an apparatus, and a non-transitory computer readable storage medium for displaying pictures in an application. The method includes obtaining original picture information and performing an indexing operation on the original picture information to obtain an indexed object. The method also includes performing a de-indexing operation on the indexed object, and establishing a bitmap object of an index color format according to a color table and a pixel buffer in the indexed object. The method further includes displaying the picture in the application by using the bitmap object. By using the present disclosure, a memory occupation rate in an electronic device can be effectively reduced, thereby solving the existing problem and improving the functionality and stability of the application in the electronic device.


