Bitmap Rotation and Compression for Memory Reduction
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current picture display methods consume excessive memory resources and reduce image resolution when rotating and resizing high-definition images, leading to performance issues such as delays and reduced user experience.
Innovation Solution
A method and apparatus that compress the original bitmap of an image based on pre-stored rotation angles stored in a device's database, allowing for efficient rotation and display without modifying the image's attributes, thus reducing memory consumption and maintaining original resolution.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If the original bitmap is rotated and resized to display high-definition pictures, then the picture can be displayed in different orientations and resolutions, but a lot of memory resources are consumed and the device experiences pauses and delays
Solution Approach 1:
The patent applies preliminary action by pre-calculating and storing optimized display parameters (rotation angles, scaling factors, cropping regions) in a database before actual picture display. When a picture needs to be displayed, the system queries the pre-computed parameters instead of performing real-time rotation and resizing operations on the original bitmap, thus avoiding excessive memory consumption while maintaining adaptability to different orientations and resolutions
Solution Approach 2:
The patent creates a simplified representation (copy) of the display requirements by storing metadata about rotation angles, scaling ratios, and cropping regions in a database. This copy contains only the essential parameters needed for display adaptation, not the actual picture data, allowing the system to achieve orientation and resolution adaptation with minimal memory usage
2Ease of manufacture
If attributes of all original bitmaps are modified one by one and sizes are adjusted one by one, then pictures can be displayed according to current device screen resolution, but a lot of memory resources are occupied and display time is extended
Solution Approach 1:
The patent extracts only the necessary display parameters (rotation angle, scaling factor, cropping region) from the complex picture processing requirements and stores them separately in a database. This separation allows the system to avoid modifying and storing multiple versions of actual picture data, thereby reducing memory occupation while maintaining device compatibility. The extracted parameters are lightweight metadata that can be quickly queried without processing large image files
Solution Approach 2:
The patent changes the approach from modifying picture data attributes to storing and retrieving display parameter sets. Instead of physically altering original bitmaps to match different screen resolutions, the system stores parameter combinations (rotation angles, scaling ratios, crop coordinates) that describe how to display the original picture correctly on various devices. This parameter-based approach dramatically reduces memory usage while ensuring compatibility
3Quantity of substance
If the original bitmap is compressed to reduce memory occupation, then memory resources are saved, but the picture resolution and definition may be reduced affecting visual effect
Solution Approach 1:
The patent applies preliminary action by pre-calculating optimal display parameters that balance compression and quality. The system pre-determines the appropriate scaling ratios and cropping regions that will achieve acceptable memory occupation rates while preserving the most important visual information. These pre-computed parameters ensure that when pictures are displayed from compressed representations, the visual quality remains acceptable
Solution Approach 2:
The patent applies local quality by using cropping parameters to focus on and preserve the most important regions of pictures. Instead of uniformly compressing the entire image, the system identifies and prioritizes key visual areas through pre-computed cropping parameters, maintaining high definition in important regions while allowing greater compression in less critical areas, thus balancing memory occupation with visual quality
Data Source
AI summary
The present disclosure provides a picture display method and apparatus that relate to the field of image processing and are increase flexibility of picture display and reducing a memory occupation rate of a terminal on the premise of not modifying an attribute of an original picture. The method and apparatus include receiving an instruction for displaying a picture; obtaining, according to an identifier of a to-be-displayed picture included in the instruction, an original bitmap of the to-be-displayed picture and searching, a database of a current device for a pre-stored first rotation angle corresponding to the to-be-displayed picture; adjusting, according to a resolution of a current screen and/or a current window size, a display size of the original bitmap of the to-be-displayed picture, so as to obtain a compressed bitmap of the original bitmap; and displaying, according to the first rotation angle, a compressed bitmap of the original bitmap.


