Video Editing Memory Layout for Crash-Safe Image Recovery
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing electronic devices face issues where images can be damaged or lost when an application abnormally terminates during editing, leading to the loss of original or edited images.
Innovation Solution
The electronic device employs a memory configuration with distinct first and second areas having different logical addresses, allowing for the application of a hidden attribute to edited images, generation of temporary files for restoration, and relocation of images within these areas to ensure image recovery even when applications crash.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If an application is used to edit images in real-time, then image editing functionality is provided, but the original image or edited image may be damaged when the application abnormally terminates
Solution Approach 1:
The memory is divided into a first area for storing original images and a second area for storing edited images. This segmentation ensures that original and edited images are stored separately, preventing damage to original images when applications terminate abnormally, while still allowing real-time editing functionality.
Solution Approach 2:
The system applies a hidden attribute to edited images before normal operation ends, preparing them for safe storage in the second area. This preliminary action ensures that when the application terminates abnormally, the edited images are already protected and can be restored without data loss.
2Quantity of substance
If edited images are stored in the same area as original images, then storage space is saved, but image damage or loss occurs when application terminates abnormally
Solution Approach 1:
The memory is segmented into a first area for original images and a second area for edited images. This segmentation protects original images from damage during application termination while maintaining efficient storage through logical separation rather than physical duplication.
Solution Approach 2:
The hidden attribute acts as an intermediary mechanism that marks edited images for safe storage in the second area. This intermediary allows the system to distinguish between original and edited images, enabling protected storage without wasting additional space.
3Reliability
If a hidden attribute is applied to edited images and logical address changes are made, then image restoration capability is improved, but device complexity increases
Solution Approach 1:
The system changes the logical address parameter of images when moving them from the first area to the second area. This parameter change enables the system to distinguish between original and edited images, providing restoration capability while maintaining relatively simple memory management through address manipulation rather than complex data structures.
Data Source
AI summary
According to various embodiments, an electronic device includes: a memory including a first area and a second area having different logical addresses and at least one processor connected to the memory. The at least one processor may be configured to: apply a hidden attribute to a second image generated by editing a first image stored in the first area; generate a temporary file for restoring the first image or the second image, based on at least some frames; locate the first image in the second area by changing a logical address of the first image; release the second image from the hidden attribute in response to identifying the first image as being located in the second area; and delete the temporary file in response to releasing the second image from the hidden attribute.


