CN107330947A - A kind of Memory Optimize Method of video cartoon picture storage - Google Patents

A kind of Memory Optimize Method of video cartoon picture storage Download PDF

Info

Publication number
CN107330947A
CN107330947A CN201710515463.5A CN201710515463A CN107330947A CN 107330947 A CN107330947 A CN 107330947A CN 201710515463 A CN201710515463 A CN 201710515463A CN 107330947 A CN107330947 A CN 107330947A
Authority
CN
China
Prior art keywords
picture
video cartoon
cartoon picture
pictures
frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710515463.5A
Other languages
Chinese (zh)
Inventor
朱晓东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Tour Century Technology Co Ltd
Original Assignee
Xiamen Tour Century Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Tour Century Technology Co Ltd filed Critical Xiamen Tour Century Technology Co Ltd
Priority to CN201710515463.5A priority Critical patent/CN107330947A/en
Publication of CN107330947A publication Critical patent/CN107330947A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Image Processing (AREA)

Abstract

The invention provides a kind of Memory Optimize Method of video cartoon picture storage, comprise the following steps:Video cartoon picture is extracted, based on the video cartoon picture, each frame PNG pictures in the video cartoon picture are obtained;Based on the PNG pictures, JPG pictures are converted into;Based on the JPG pictures, the reproduction of video cartoon picture is converted into.A kind of Memory Optimize Method of video cartoon picture storage of the present invention, after video cartoon picture is extracted, PNG pictures are converted into JPG pictures by Alpha channel datas, then Alpha port numbers data are deleted, internal memory is consumed so as to reduce video cartoon picture processing, to reach the purpose of memory optimization, the internal memory of picture during reduction operation.

Description

A kind of Memory Optimize Method of video cartoon picture storage
Technical field
The present invention relates to field of Computer Graphics, especially a kind of Memory Optimize Method of video cartoon picture storage.
Background technology
Currently, the scope that various wearable virtual reality electronic equipments are used in everybody life is quite varied.With Multimedia technology is continued to develop, by a variety of acoustooptical effects that it possesses, in above-mentioned wearable virtual reality electronic equipment The upper various multimedia messages of broadcasting are that the institute of users is common desired.
However, animation file is general all larger, in order to adapt to be played on wearable virtual reality electronic equipment, generally need Processing is compressed to it.Existing cartoon compressing method is divided into two classes:
1st, each content frame is compressed respectively, then decompresses and show frame by frame when playing.Such method realization is simple, but Compression ratio is often very undesirable;
2nd, animated content is considered as an entirety, color signal is separated with luminance signal and carrier chrominance signal, then damage pressure Contracting, such as MPEG., its advantage is that compression ratio is high, but operand is big.Can not smooth playing in the equipment using low speed chip.Greatly Most such compression algorithms are based on 24 RGB color domain spaces.For the LCD only 12bit color depths of current a large amount of handheld devices, The dual waste of space and time are caused in data transfer and decompression operation.
And on existing wearable virtual reality electronic equipment, the hardware condition provided also varies.Most When playing multimedia messages, particularly animation file on several wearable virtual reality electronic equipment electronic equipments, it is easy to make Into wearable virtual reality electronic equipment low memory, and cause the discontinuous problem of video playback.
The content of the invention
The present invention provides a kind of Memory Optimize Method of video cartoon picture storage, to solve existing wearable virtual reality Animated video stored memory consumes excessive technical problem on electronic equipment.
According to an aspect of the invention, there is provided a kind of Memory Optimize Method of video cartoon picture storage, including with Lower step:
Step S1. extracts video cartoon picture, based on the video cartoon picture, obtains each in the video cartoon picture Frame PNG pictures;
Step S2. is based on the PNG pictures, is converted into JPG pictures;
Step S3. is based on the JPG pictures, is converted into the reproduction of video cartoon picture.
On the basis of such scheme preferably, the step S1 includes in detail:
Step S1.1 is based on video cartoon picture, obtains each frame PNG pictures in the memory block of the video cartoon picture File is described with animation;Wherein, the animation describes file and describes the store path of picture and each frame picture of the animation Pictorial information cited in face;
Step S1.2 describes file based on the animation, is filtered out from acquired picture not by the figure cited in the animation Piece, obtains picture redundancy collection;
Step S1.3 is in the corresponding memory block of the resource store path, and the picture that will be contained in the picture redundancy concentration is deleted Remove.
On the basis of such scheme preferably, the step S2 includes in detail:
Step S2.1 is based on each frame PNG pictures, to extract the Alpha channel datas for obtaining each frame PNG pictures;
The Alpha channel datas of each frame PNG pictures are converted into JPG pictures by step S2.2.
On the basis of such scheme preferably, also include between the step S2 and S3:
By the video cartoon picture compression obtained by the step S1, and by the Alpha passages in the step S2.1 Data are rejected.
A kind of Memory Optimize Method of video cartoon picture storage of the present invention, after video cartoon picture is extracted, PNG pictures are converted into JPG pictures by Alpha channel datas, then Alpha port numbers data are deleted, regarded so as to reduce The processing of frequency motion picture consumes internal memory, to reach the purpose of memory optimization, the internal memory of picture during reduction operation.
Brief description of the drawings
Fig. 1 is the flow chart of the model animation interlock method based on Unity3D of the present invention.
Embodiment
With reference to the accompanying drawings and examples, the embodiment to the present invention is described in further detail.Implement below Example is used to illustrate the present invention, but is not limited to the scope of the present invention.
Refer to shown in Fig. 1, the Memory Optimize Method for providing a kind of storage of video cartoon picture of the invention, including with Lower step:
Step S1. extracts video cartoon picture, based on the video cartoon picture, obtains each in the video cartoon picture Frame PNG pictures;
Step S2. is based on the PNG pictures, is converted into JPG pictures;
Step S3. is based on the JPG pictures, is converted into the reproduction of video cartoon picture.
As the preferred embodiments of the present invention, step S1 of the invention includes in detail:
Step S1.1 is based on video cartoon picture, obtains each frame PNG pictures in the memory block of the video cartoon picture File is described with animation;Wherein, the animation describes file and describes the store path of picture and each frame picture of the animation Pictorial information cited in face;
Step S1.2 describes file based on the animation, is filtered out from acquired picture not by the figure cited in the animation Piece, obtains picture redundancy collection;
Step S1.3 is in the corresponding memory block of the resource store path, and the picture that will be contained in the picture redundancy concentration is deleted Remove.
As the preferred embodiments of the present invention, step S2 of the invention includes in detail:
Step S2.1 is based on each frame PNG pictures, to extract the Alpha channel datas for obtaining each frame PNG pictures;
The Alpha channel datas of each frame PNG pictures are converted into JPG pictures by step S2.2.
As the preferred embodiments of the present invention, also include between step S2 and S3 of the invention:
By the video cartoon picture compression obtained by the step S1, and by the Alpha passages in the step S2.1 Data are rejected.
A kind of Memory Optimize Method of video cartoon picture storage of the present invention, after video cartoon picture is extracted, PNG pictures are converted into JPG pictures by Alpha channel datas, then Alpha port numbers data are deleted, regarded so as to reduce The processing of frequency motion picture consumes internal memory, to reach the purpose of memory optimization, the internal memory of picture during reduction operation.
Finally, the present processes are only preferably embodiment, are not intended to limit the scope of the present invention.It is all Within the spirit and principles in the present invention, any modification, equivalent substitution and improvements made etc. should be included in the protection of the present invention Within the scope of.

Claims (4)

1. a kind of Memory Optimize Method of video cartoon picture storage, it is characterised in that comprise the following steps:
Step S1. extracts video cartoon picture, based on the video cartoon picture, obtains each in the video cartoon picture Frame PNG pictures;
Step S2. is based on the PNG pictures, is converted into JPG pictures;
Step S3. is based on the JPG pictures, is converted into the reproduction of video cartoon picture.
2. a kind of Memory Optimize Method of video cartoon picture storage as claimed in claim 1, it is characterised in that the step S1 includes in detail:
Step S1.1 is based on video cartoon picture, obtains each frame PNG pictures in the memory block of the video cartoon picture File is described with animation;Wherein, the animation describes file and describes the store path of picture and each frame picture of the animation Pictorial information cited in face;
Step S1.2 describes file based on the animation, is filtered out from acquired picture not by the figure cited in the animation Piece, obtains picture redundancy collection;
Step S1.3 will be contained in the picture deletion that the picture redundancy is concentrated in the corresponding memory block of resource store path.
3. a kind of Memory Optimize Method of video cartoon picture storage as claimed in claim 1, it is characterised in that the step S2 includes in detail:
Step S2.1 is based on each frame PNG pictures, to extract the Alpha channel datas for obtaining each frame PNG pictures;
The Alpha channel datas of each frame PNG pictures are converted into JPG pictures by step S2.2.
4. a kind of Memory Optimize Method of video cartoon picture storage as claimed in claim 3, it is characterised in that the step Also include between S2 and S3:
By the video cartoon picture compression obtained by the step S1, and by the Alpha passages in the step S2.1 Data are rejected.
CN201710515463.5A 2017-06-29 2017-06-29 A kind of Memory Optimize Method of video cartoon picture storage Pending CN107330947A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710515463.5A CN107330947A (en) 2017-06-29 2017-06-29 A kind of Memory Optimize Method of video cartoon picture storage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710515463.5A CN107330947A (en) 2017-06-29 2017-06-29 A kind of Memory Optimize Method of video cartoon picture storage

Publications (1)

Publication Number Publication Date
CN107330947A true CN107330947A (en) 2017-11-07

Family

ID=60199123

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710515463.5A Pending CN107330947A (en) 2017-06-29 2017-06-29 A kind of Memory Optimize Method of video cartoon picture storage

Country Status (1)

Country Link
CN (1) CN107330947A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110060310A (en) * 2019-01-30 2019-07-26 阿里巴巴集团控股有限公司 File compression method, device and equipment
CN110120087A (en) * 2019-04-15 2019-08-13 深圳市思为软件技术有限公司 The label for labelling method, apparatus and terminal device of three-dimensional sand table
CN111147861A (en) * 2020-01-02 2020-05-12 广州虎牙科技有限公司 Image compression method, device, user equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103514616A (en) * 2013-09-02 2014-01-15 北京新学堂网络科技有限公司 Method for reducing size of mobile electronic magazine file
CN103988148A (en) * 2011-12-14 2014-08-13 高通股份有限公司 Static image power management
CN105677883A (en) * 2016-01-14 2016-06-15 网易(杭州)网络有限公司 Animation resource optimization method and device
CN106339210A (en) * 2016-08-09 2017-01-18 腾讯科技(深圳)有限公司 Webpage game data processing method and related device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103988148A (en) * 2011-12-14 2014-08-13 高通股份有限公司 Static image power management
CN103514616A (en) * 2013-09-02 2014-01-15 北京新学堂网络科技有限公司 Method for reducing size of mobile electronic magazine file
CN105677883A (en) * 2016-01-14 2016-06-15 网易(杭州)网络有限公司 Animation resource optimization method and device
CN106339210A (en) * 2016-08-09 2017-01-18 腾讯科技(深圳)有限公司 Webpage game data processing method and related device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110060310A (en) * 2019-01-30 2019-07-26 阿里巴巴集团控股有限公司 File compression method, device and equipment
CN110060310B (en) * 2019-01-30 2023-10-20 创新先进技术有限公司 File compression method, device and equipment
CN110120087A (en) * 2019-04-15 2019-08-13 深圳市思为软件技术有限公司 The label for labelling method, apparatus and terminal device of three-dimensional sand table
CN111147861A (en) * 2020-01-02 2020-05-12 广州虎牙科技有限公司 Image compression method, device, user equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
AU2010341605B2 (en) Systems and methods for video-aware screen capture and compression
CN109272565A (en) Animation playing method, device, storage medium and terminal
WO2020010997A1 (en) Video frame extraction method and apparatus, computer readable medium, and electronic device
CN107886560B (en) Animation resource processing method and device
WO2018184458A1 (en) Picture file processing method and device, and storage medium
US9386319B2 (en) Post-process filter for decompressed screen content
CN107330947A (en) A kind of Memory Optimize Method of video cartoon picture storage
CN108235055B (en) Method and device for realizing transparent video in AR scene
US20130147787A1 (en) Systems and Methods for Transmitting Visual Content
WO2005112592A3 (en) Graphics processing system and method
CN105224390A (en) A kind of method of virtual desktop compression
JP5156655B2 (en) Image processing device
WO2018184464A1 (en) Picture file processing method and device, and storage medium
CN104067627B (en) Method, device, system and computer-readable medium that a kind of video is redirected
US20140333662A1 (en) Multi-sampling anti-aliasing compression by use of unreachable bit combinations
US20210233572A1 (en) Video processing method, electronic device, and storage medium
CN104219555B (en) Video display devices and method in a kind of Android system terminal
CN102224727A (en) Image processing apparatus, image processing method and program
CN112653905B (en) Image processing method, device, equipment and storage medium
CN104219537B (en) The method, apparatus and system of video data processing
CN109905715A (en) It is inserted into the code stream conversion method and system of SEI data
KR102437726B1 (en) Apparatus and method for storing snack culture contents
CN102509313B (en) Encapsulating method of multimedia image data
CN108200433B (en) Image compression and decompression method
CN108933945B (en) GIF picture compression method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20171107

WD01 Invention patent application deemed withdrawn after publication