Haptic Keyframe Position Encoding With Relative Frame Differences
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing haptic encoding methods suffer from relatively low encoding efficiency due to large data redundancy when encoding keyframe position information.
Innovation Solution
Encoding haptic data by determining the encoding position information of a keyframe based on the difference between its position and a previous keyframe, reducing data redundancy and improving encoding efficiency.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Loss of information
If difference information between keyframe position and effect position is encoded, then position information can be represented, but data redundancy increases and encoding efficiency decreases
Solution Approach 1:
Instead of encoding the difference between keyframe position and effect position (conventional approach), the patent encodes the difference between adjacent keyframe positions. This inverted approach reduces data redundancy because consecutive keyframes typically have smaller position differences compared to the effect position, leading to more compact encoding and improved encoding efficiency.
2Quantity of substance
If relative position encoding is used, then data compression is improved, but decoding complexity increases
Solution Approach 1:
The patent performs preliminary accumulation of position differences during the encoding process, storing the cumulative sum of differences. During decoding, the position is reconstructed by accumulating the decoded differences. This preliminary action approach simplifies the decoding process compared to solving complex equations, while still achieving effective data compression through differential encoding.
Data Source
Figure 1
Figure 2
Figure 3~4
AI summary
The present application discloses a method for encoding haptic data, a method for decoding haptic data, and related devices, belonging to the technical field of computers. The method for encoding haptic data in embodiments of the present application includes: obtaining a position of each of a plurality of keyframes of an effect in haptic data, where the plurality of keyframes include a first target keyframe and a second target keyframe, and the second target keyframe is a keyframe located before the first target keyframe; determining encoding position information of the first target keyframe, where the encoding position information of the first target keyframe is determined according to a difference between a position of the first target keyframe and a position of the second target keyframe; and encoding the encoding position information of the first target keyframe to obtain a first encoding result, where an encoding result of the haptic data includes the first encoding result.