gif file rendering method and device
A file and file pointer technology, applied in the computer field, can solve problems such as multi-resources and difficulty in playing GIF animations, and achieve the effect of solving excessive resource occupation, reducing resource occupation, and improving efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0021] refer to figure 1 , figure 1 It is a flow chart of a GIF file rendering method provided by Embodiment 1 of the present invention. In this embodiment, the GIF file rendering method includes:
[0022] Step S11: read the GIF file by means of stream reading.
[0023] Step S12: Decoding the read GIF file and obtaining the decoded frame picture.
[0024] Step S13: rendering the acquired frame picture.
[0025] Step S14: Judging whether the number of acquired frame pictures reaches a predetermined number, if so, end rendering; otherwise, return to and execute the step of decoding the read GIF file and obtaining decoded frame pictures.
[0026] Compared with the prior art, the GIF file rendering method provided by this embodiment adopts the streaming reading method to read the GIF file, and renders it on demand, which reduces the occupation of resources, improves the efficiency of playing GIF animation, and solves the problem of The problem of excessive resource occupation...
Embodiment 2
[0028] refer to figure 2 , figure 2 It is a flow chart of a GIF file rendering method provided by Embodiment 2 of the present invention. In this embodiment, the GIF file rendering method includes:
[0029] Step S21: Read the GIF file by means of stream reading.
[0030] Step S22: Decoding the read GIF file and obtaining the decoded frame picture.
[0031] Step S23: rendering the acquired frame picture.
[0032] Step S24: Judging whether the number of acquired frame pictures reaches a predetermined number, if so, ending rendering; otherwise, returning to and executing the step of decoding the read GIF file and obtaining decoded frame pictures.
[0033] Different from Embodiment 1, in this embodiment, step S21 includes:
[0034] Step S211: Obtain the file path of the GIF file.
[0035] Step S212: Move the file pointer.
[0036] Step S213: Determine whether the file pointer has reached the target position, if so, read the GIF file; otherwise, return and execute the step ...
Embodiment 3
[0039] refer to image 3 , image 3 It is a flow chart of a GIF file rendering method provided by Embodiment 3 of the present invention. In this embodiment, the GIF file rendering method includes:
[0040] Step S31: read the GIF file by means of stream reading.
[0041] Step S32: Decoding the read GIF file and obtaining the decoded frame picture.
[0042] Step S33: rendering the acquired frame picture.
[0043] Step S34: Judging whether the number of acquired frame pictures reaches a predetermined number, if so, ending rendering; otherwise, returning to and executing the step of decoding the read GIF file and obtaining decoded frame pictures.
[0044] Different from Embodiment 1, in this embodiment, step S32 includes:
[0045] Step S321: Set a specific flag and the binary content of the last bit of the specific flag, where the binary content of the last bit of the specific flag is used to indicate the length to be moved by the file pointer. The specific flag bit is, for ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com