CN105224698A - Picture-storage system and method - Google Patents

Picture-storage system and method Download PDF

Info

Publication number
CN105224698A
CN105224698A CN201510790732.XA CN201510790732A CN105224698A CN 105224698 A CN105224698 A CN 105224698A CN 201510790732 A CN201510790732 A CN 201510790732A CN 105224698 A CN105224698 A CN 105224698A
Authority
CN
China
Prior art keywords
picture
block
compressed textures
module
storage system
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
CN201510790732.XA
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.)
SHENGQU INFORMATION TECHNOLOGY (SHANGHAI) Co Ltd
Original Assignee
SHENGQU INFORMATION TECHNOLOGY (SHANGHAI) 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 SHENGQU INFORMATION TECHNOLOGY (SHANGHAI) Co Ltd filed Critical SHENGQU INFORMATION TECHNOLOGY (SHANGHAI) Co Ltd
Priority to CN201510790732.XA priority Critical patent/CN105224698A/en
Publication of CN105224698A publication Critical patent/CN105224698A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system
    • G06F16/1744Redundancy elimination performed by the file system using compression, e.g. sparse files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a kind of picture-storage system, comprise cutting module, compressed textures modular converter and compression module, picture cutting whole into sections, after removing invalid block, can be converted to compressed textures form by remaining piece and carries out compressing and storing.The present invention also provides a kind of picture-storage method, can reduce picture resource memory capacity, thus reduces capacity and the resource EMS memory occupation amount of game client.Use compressed textures form to raise the efficiency, make image when minimum distortion, reach less memory capacity.In online game, draw separately and memory management after using this method can read picture block, reduce resource EMS memory occupation amount, and the texture format using GPU to identify is raised the efficiency.

Description

Picture-storage system and method
Technical field
The present invention relates to picture processing field, particularly relate to a kind of picture-storage system and method.
Background technology
Most of network game client takes up space comparatively large, wherein especially headed by picture resource occupancy.Under normal circumstances, conventional image file format memory capacity is large, and EMS memory occupation amount is large, and can not identify by GPU.Therefore, need to decode to picture in CPU internal memory.Some picture format can show abundant color and details, but memory capacity is large.If but selected the form that memory capacity is little, there is larger distortion in figure sector-meeting.
Summary of the invention
In order to solve prior art Problems existing, the invention provides a kind of picture-storage system, comprising:
Cutting module, for removing invalid block by picture cutting whole into sections;
Compressed textures modular converter, for converting compressed textures form to by remaining piece; And
Compression module, for compressing the picture of compressed textures form and storing.
Optionally, described picture-storage system also comprises flating module, for carrying out dithering process to picture to be optimized the transparent transition of picture.
Optionally, described shake module only carries out dithering process to the partial block that effect after cutting whole into sections is poor.
Optionally, described invalid block is the block that transparency is greater than a particular value.
Optionally, invalid block is the block not having image.
Optionally, described compressed textures form is DXT form.
Optionally, the method compressed the picture of compressed textures form is Zlib compression.
The present invention also provides a kind of picture-storage method, comprising:
Cutting module is by picture cutting whole into sections and remove invalid block;
Compressed textures modular converter converts compressed textures form to by remaining piece; And
The picture of compression module to compressed textures form compresses and stores.
Optionally, after the described invalid block of removal, by flating module, dithering process is carried out to the partial block that effect in rest block is poor.
Optionally, described compressed textures form is DXT form.
The invention provides a kind of picture-storage system, comprise cutting module, compressed textures modular converter and compression module, picture cutting whole into sections, after removing invalid block, can be converted to compressed textures form by remaining piece and carries out compressing and storing.The present invention also provides a kind of picture-storage method, can reduce picture resource memory capacity, thus reduces capacity and the resource EMS memory occupation amount of game client.Use compressed textures form to raise the efficiency, make image when minimum distortion, reach less memory capacity.In online game, draw separately and memory management after using this method can read picture block, reduce resource EMS memory occupation amount, and the texture format using GPU to identify is raised the efficiency.
Accompanying drawing explanation
Fig. 1 is the structural representation of picture-storage system described in one embodiment of the invention;
Fig. 2 is the picture schematic diagram after cutting module cutting in picture-storage system described in one embodiment of the invention;
Fig. 3 is the process flow diagram of picture-storage method described in one embodiment of the invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in further detail.According to the following describes and claims, advantages and features of the invention will be clearer.It should be noted that, accompanying drawing all adopts the form that simplifies very much and all uses non-ratio accurately, only in order to object that is convenient, the aid illustration embodiment of the present invention lucidly.
The invention provides a kind of picture-storage system, as shown in Figure 1, comprising:
Cutting module 10, for removing invalid block by picture cutting whole into sections;
Compressed textures modular converter 30, for converting compressed textures form to by remaining piece; And
Compression module 40, for compressing the picture of compressed textures form and storing.
In the present embodiment, picture-storage system also comprises flating module 20, is connected between described cutting module 10 and described compressed textures modular converter 30, for carrying out dithering process to picture to be optimized the transparent transition of picture.In a preferred version, described shake module 20 only carries out dithering process to the partial block of effect after cutting whole into sections poor (such as transparent transition effect is poor).The flating algorithm of described shake module 20 can be optimized the transparent transition of image block, improves display effect.
Described invalid block after cutting is the block that transparency is greater than a particular value, namely after to whole image cutting whole into sections, the block that transparency is higher is that content is relatively less, even negligible piece, therefore the implication that removing this partial block can not affect whole picture is expressed, and also can reduce the space shared by file after picture compression simultaneously.In the present embodiment, invalid block can also be the block not having image.The concrete inactive portion which kind of feature to remove image according to, the present invention does not impose any restrictions.As shown in Figure 2, cutting is carried out to former picture 100 and form multiple image block.Image 110 centered by described effective image place, sleazy piece of its periphery is side images 120.Wherein, because side images 120 there is no content, therefore can directly remove; And in the present embodiment, the image block 1 in center image 110 and image block 2 are the block without content formed after cutting, therefore can be judged to be invalid block and remove.After removing the invalid block (image block 1 and image block 2) in above-mentioned side images 120 and center image, remaining active block can convert compressed textures form to through described compressed textures modular converter 30.
Be understandable that, the cutting of cutting module 10 pairs of pictures is less, then the invalid block can removed is more, and the effect reducing shared capacity after compression is better.According to considering size after the precision of images and compression, the size of cutting module 10 cutting image can be set.
In the present embodiment, described compressed textures form is DXT form.Be understandable that, the present invention does not limit concrete compressed textures form, as long as described texture format is the texture format that GPU can identify.The texture format using GPU to identify can improve the speed and efficiency played up, also can reduce texture memory demand simultaneously.Make image when minimum distortion, reach less memory capacity, accelerate process texture being uploaded to texture memory simultaneously.
In the picture-storage system of the present embodiment, the method compressed the picture of compressed textures form is Zlib compression.Certainly, for concrete compressed format and compression method, the present invention is not restricted.
The present invention also provides a kind of picture-storage method, as shown in Figure 3, comprising:
Cutting module is by picture cutting whole into sections and remove invalid block;
Compressed textures modular converter converts compressed textures form to by remaining piece; And
The picture of compression module to compressed textures form compresses and stores.
Optionally, after the described invalid block of removal, by flating module, dithering process is carried out to the partial block that effect in rest block is poor, carry out compressed textures modular converter converts compressed textures form to step by remaining piece afterwards again.
The present invention is when picture, by image by transparency or other feature ablation inactive portion, and press ad hoc rules piecemeal, and reject invalid block by transparency or other features, after converting the view data of final each piece to compressed textures form (such as: DXT form etc.), finally compressed (such as zlib compression etc.) by data compression algorithm again, finally store, reduce the cost stored; Described system comprises image cutting whole into sections module, flating module, compressed textures modular converter and data compressing module.The present invention can reduce picture resource memory capacity, thus reduces capacity and the resource EMS memory occupation amount of game client.Use compressed textures form to raise the efficiency, make image when minimum distortion, reach less memory capacity.In online game, draw separately and memory management after using this method can read picture block, reduce resource EMS memory occupation amount, and the texture format using GPU to identify is raised the efficiency.
Obviously, those skilled in the art can carry out various change and modification to invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. a picture-storage system, is characterized in that, comprising:
Cutting module, for removing invalid block by picture cutting whole into sections;
Compressed textures modular converter, for converting compressed textures form to by remaining piece; And
Compression module, for compressing the picture of compressed textures form and storing.
2. picture-storage system as claimed in claim 1, is characterized in that, also comprise flating module, for carrying out dithering process to picture to be optimized the transparent transition of picture.
3. picture-storage system as claimed in claim 2, it is characterized in that, described shake module only carries out dithering process to the partial block that effect after cutting whole into sections is poor.
4. picture-storage system as claimed in claim 1, it is characterized in that, described invalid block is the block that transparency is greater than a particular value.
5. picture-storage system as claimed in claim 1, it is characterized in that, invalid block is the block not having image.
6. picture-storage system as claimed in claim 1, it is characterized in that, described compressed textures form is DXT form.
7. picture-storage system as claimed in claim 1, is characterized in that, the method compressed the picture of compressed textures form is Zlib compression.
8. a picture-storage method, is characterized in that, comprising:
Cutting module is by picture cutting whole into sections and remove invalid block;
Compressed textures modular converter converts compressed textures form to by remaining piece; And
The picture of compression module to compressed textures form compresses and stores.
9. picture-storage method as claimed in claim 8, is characterized in that, after the described invalid block of removal, carries out dithering process by flating module to the partial block that effect in rest block is poor.
10. picture-storage method as claimed in claim 8, it is characterized in that, described compressed textures form is DXT form.
CN201510790732.XA 2015-11-17 2015-11-17 Picture-storage system and method Pending CN105224698A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510790732.XA CN105224698A (en) 2015-11-17 2015-11-17 Picture-storage system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510790732.XA CN105224698A (en) 2015-11-17 2015-11-17 Picture-storage system and method

Publications (1)

Publication Number Publication Date
CN105224698A true CN105224698A (en) 2016-01-06

Family

ID=54993666

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510790732.XA Pending CN105224698A (en) 2015-11-17 2015-11-17 Picture-storage system and method

Country Status (1)

Country Link
CN (1) CN105224698A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107480035A (en) * 2017-08-23 2017-12-15 广州优视网络科技有限公司 A kind of inspection method of picture committed memory situation
CN109427063A (en) * 2017-08-30 2019-03-05 广州极飞科技有限公司 The storage method and device of image data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101536526A (en) * 2006-08-31 2009-09-16 Ati科技公司 Texture compression techniques
CN101917474A (en) * 2010-08-12 2010-12-15 中兴通讯股份有限公司 Method, system and device for downloading file
CN102096939A (en) * 2011-02-25 2011-06-15 浙江工业大学 Medical mass data-oriented multi-resolution volume rendering method
CN102368329A (en) * 2011-10-24 2012-03-07 龙芯中科技术有限公司 Texture image transparency channel processing system in graphic system, apparatus thereof and method thereof
US20150009205A1 (en) * 2013-07-03 2015-01-08 ArcSoft ( Hangzhou) Multimedia Technology Co., Ltd. Method of Improving Ericsson Texture Compression 1 Image Quality

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101536526A (en) * 2006-08-31 2009-09-16 Ati科技公司 Texture compression techniques
CN101917474A (en) * 2010-08-12 2010-12-15 中兴通讯股份有限公司 Method, system and device for downloading file
CN102096939A (en) * 2011-02-25 2011-06-15 浙江工业大学 Medical mass data-oriented multi-resolution volume rendering method
CN102368329A (en) * 2011-10-24 2012-03-07 龙芯中科技术有限公司 Texture image transparency channel processing system in graphic system, apparatus thereof and method thereof
US20150009205A1 (en) * 2013-07-03 2015-01-08 ArcSoft ( Hangzhou) Multimedia Technology Co., Ltd. Method of Improving Ericsson Texture Compression 1 Image Quality

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107480035A (en) * 2017-08-23 2017-12-15 广州优视网络科技有限公司 A kind of inspection method of picture committed memory situation
CN107480035B (en) * 2017-08-23 2021-02-19 阿里巴巴(中国)有限公司 Method for checking memory occupation condition of picture
CN109427063A (en) * 2017-08-30 2019-03-05 广州极飞科技有限公司 The storage method and device of image data

Similar Documents

Publication Publication Date Title
JP7431742B2 (en) Method and apparatus for encoding/decoding a point cloud representing a three-dimensional object
CN100524452C (en) Digital image storage, displaying method and device
CN101802872B (en) Depth buffer compression
WO2016172994A1 (en) Image coding and decoding method and device
JP7389751B2 (en) Method and apparatus for encoding/decoding a point cloud representing a three-dimensional object
CN110728725B (en) Hardware-friendly real-time system-oriented lossless texture compression method
JP2018110390A (en) Method and device for coding and decoding pixel list
US20240104780A1 (en) Image compression method and apparatus, and intelligent terminal and computer-readable storage medium
CN101996227A (en) Document compression system and method
CN105224698A (en) Picture-storage system and method
CN106651971A (en) Graphic data compression device and graphic data compression method
CN102521847B (en) Method and device for segmenting bitmap (BMP) image with ultra-high resolution
CN109479127A (en) Use video coding compressed picture segment data
CN108765289A (en) A kind of extraction splicing of digital picture and reduction fill method
WO2021138788A1 (en) Intra-frame prediction method and apparatus, coder, decoder and storage medium
EP3614672A1 (en) A method and apparatus for encoding/decoding a point cloud representing a 3d object
CN102129702A (en) Image thumbnail making method and system thereof
US11189006B2 (en) Managing data for transportation
CN105306941A (en) Video coding method
JP5731816B2 (en) Image processing apparatus and image processing method
WO2024119518A1 (en) Encoding method, decoding method, and decoder, encoder, code stream and storage medium
CN105007490B (en) Jpeg compression algorithms based on OmapL138 chips
CN114339305B (en) Virtual desktop image processing method and related device
CN115965616B (en) Iris image processing method and device and electronic equipment
US20240171786A1 (en) Coding of displacements using skew flag for vertex mesh (v-mesh)

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160106

RJ01 Rejection of invention patent application after publication