CN103686182B - The coded method of a kind of displaying information on screen and coding system - Google Patents

The coded method of a kind of displaying information on screen and coding system Download PDF

Info

Publication number
CN103686182B
CN103686182B CN201310684334.0A CN201310684334A CN103686182B CN 103686182 B CN103686182 B CN 103686182B CN 201310684334 A CN201310684334 A CN 201310684334A CN 103686182 B CN103686182 B CN 103686182B
Authority
CN
China
Prior art keywords
pixel
screen message
lossless
message data
value
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.)
Active
Application number
CN201310684334.0A
Other languages
Chinese (zh)
Other versions
CN103686182A (en
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.)
Shenzhen small fish Technology Co., Ltd.
Original Assignee
洪雪荣
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 洪雪荣 filed Critical 洪雪荣
Priority to CN201310684334.0A priority Critical patent/CN103686182B/en
Publication of CN103686182A publication Critical patent/CN103686182A/en
Application granted granted Critical
Publication of CN103686182B publication Critical patent/CN103686182B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses coded method and the coding system of a kind of displaying information on screen, described method includes: gathers each pixel of original pattern display information to be encoded and obtains original pixel value, obtaining screen message initial data;Decode after original pattern display information to be encoded is carried out lossy coding, obtain the pixel value of decoded each pixel;When the original pixel value of each pixel and the difference of decoded pixel value exceed predetermined threshold level, choosing this pixel is lossless pixel, and is rejected from screen message initial data by its pixel value, obtains the first screen message data;Being reversibly encoded behind the position of the corresponding pixel points that the pixel value of lossless pixel is placed in lossless screen message data, the first screen message data are carried out lossy coding, the numerical value that this twice coding obtains is exactly finally to encode result;The information that computer screen can be shown by the present invention carries out efficient coding so that transient copy is the most clear after the decoding.

Description

The coded method of a kind of displaying information on screen and coding system
Technical field
The present invention relates to computer realm, particularly to coded method and the coding system of a kind of displaying information on screen.
Background technology
In many industries, it usually needs the information of display on current computer screen is preserved or is transferred to other setting Standby upper, but, the information that computer screen show is the most more complicated, and resolution is high, contain much information, and therefore, how will shield Curtain display information carries out encoding becomes the major subjects studied in the industry.
In prior art, when the information showing computer screen carries out static coding, generally use following methods:
(1) lossy coding, such as: JPEG, JPEG2000 etc.;When encoding video, encoding rate is high, to computer graphic When shape encodes, such as word, apply the encoding rate such as window, form low so that decoded figure is unclear;
(2) lossless coding, such as: PNG;When encoding computer character, encoding rate is high, encodes photo Time, encoding rate is low;
(3) multiple compiling method is used in mixed way, and i.e. screen is divided into some pieces (block), becomes according to block pixel change frequency Described some pieces are classified by part and content, and use corresponding coded method to encode some pieces respectively;But, have The boundary not can completely of a little computer graphicals and video is just belonging respectively in different blocks, or certain complete figure Or image-region is assigned in multiple different block, owing to using different encryption algorithms, then the aobvious of corresponding blocks will be made Show that region or its border are caused visual unclear after the decoding.
Summary of the invention
The invention provides coded method and the coding system of a kind of displaying information on screen, with what computer screen was shown Information carries out efficient coding so that after the decoding, and the information that computer screen shows is the most clear.
The present invention provides the coded method of a kind of displaying information on screen, described method to include:
Determine original pattern display information to be encoded, gather each pixel of described original pattern display information to be encoded Point, and obtain the original pixel value of described each pixel, obtain screen message initial data;
Decode after described original pattern display information to be encoded is carried out lossy coding, obtain decoded each pixel Pixel value;
To each pixel, when the original pixel value of this pixel and the difference of decoded pixel value exceed default door During threshold value, this pixel is chosen for lossless pixel, and by former from described screen message for the pixel value of described lossless pixel Beginning data are rejected, obtains the first screen message data;
The pixel value of described lossless pixel is placed in the position of the corresponding pixel points of lossless screen message data, wherein, Described lossless screen message data and described screen message initial data have the pixel quantity of same size;
Described first screen message data are carried out lossy coding, obtains lossy coding numerical value, described lossless screen is believed Breath data are reversibly encoded, and obtain lossless coding numerical value, described lossy coding numerical value and described lossless coding numerical value obtain The coding result of described original pattern display information to be encoded.
Preferably, described method farther includes: to described first screen message data, by the position of disallowable pixel Corresponding pixel value carries out interpolation amendment according to pixel value about, obtains the second screen message data;
Described first screen message data are replaced by described second screen message data.
Preferably, the initial value of described lossless screen message data is invalid value.
Preferably, described method farther includes: described coding result be decoded so that described original pattern shows Information reverting.
Preferably, described described coding result is decoded so that described original pattern display information reverting includes:
Carry out damaging decoding by described lossy coding numerical value, obtain decoded first screen message data;
Described lossless coding numerical value is carried out losslessly encoding, obtains decoded lossless screen message data;
For described decoded lossless screen message data, when the pixel value of pixel is not invalid value, by this picture The pixel value of vegetarian refreshments is inserted into the position of described decoded first screen message data corresponding pixel points so that described original screen Curtain display information reverting.
The present invention also provides for the coding system of a kind of displaying information on screen, and described system includes:
Collecting unit, for determining original pattern display information to be encoded, gathers described original pattern to be encoded and shows Show each pixel of information, and obtain the original pixel value of described each pixel, obtain screen message initial data;
First processing unit, decodes after described original pattern display information to be encoded is carried out lossy coding, Pixel value to decoded each pixel;
Second processing unit, for each pixel, when original pixel value and the decoded pixel of this pixel When the difference of value exceedes predetermined threshold level, this pixel is chosen for lossless pixel, and by the pixel of described lossless pixel Value is rejected from described screen message initial data, obtains the first screen message data;
3rd processing unit, for being placed in the correspondence picture of lossless screen message data by the pixel value of described lossless pixel The position of vegetarian refreshments, wherein, described lossless screen message data and described screen message initial data have the pixel of same size Point quantity;
Coding unit, for described first screen message data are carried out lossy coding, obtains lossy coding numerical value, by institute State lossless screen message data to be reversibly encoded, obtain lossless coding numerical value, by described lossy coding numerical value and described lossless Encoding value obtains the coding result of described original pattern display information to be encoded.
Preferably, described system farther includes: interpolating unit, for described first screen message data, will be picked The pixel value corresponding except the position of pixel carries out interpolation amendment according to pixel value about, obtains the second screen message number According to;And replace described first screen message data by described second screen message data.
Preferably, the initial value of described lossless screen message data is invalid value.
Preferably, described system farther includes:
Decoding unit, for being decoded described coding result so that described original pattern display information reverting.
Preferably, described decoding unit includes:
Damage decoding subelement, for carrying out damaging decoding by described lossy coding numerical value, obtain decoded first screen Curtain information data;
Losslessly encoding subelement, for described lossless coding numerical value is carried out losslessly encoding, obtains decoded lossless screen Curtain information data;
Merge subelement, for for described decoded lossless screen message data, when the pixel value of pixel is not During invalid value, the pixel value of this pixel is inserted into the position of described decoded first screen message data corresponding pixel points Put so that described original pattern display information reverting.
The embodiment of the present invention provides the benefit that: displaying information on screen is encoded in units of pixel by the present invention, gram Take the unsharp problem of different types of block boundary caused in prior art because of divided block, by displaying information on screen Each pixel carry out damaging and lossless identification, carry out lossy coding to damaging pixel, lossless pixel be reversibly encoded, from And improve encoding rate, after ensureing decoding, displaying information on screen is the most clear simultaneously.
Accompanying drawing explanation
Fig. 1 is the flow chart of the coded method of a kind of displaying information on screen of one embodiment of the invention;
Fig. 2 is the structure chart of the coding system of a kind of displaying information on screen of one embodiment of the invention;
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Fig. 1 is the flow chart of the coded method of a kind of displaying information on screen of one embodiment of the invention;As it is shown in figure 1, institute The method of stating includes:
S110, determine original pattern to be encoded display information, gather described original pattern display information to be encoded Each pixel, and obtain the original pixel value of described each pixel, obtain screen message initial data;
S120, described original pattern display information to be encoded is carried out lossy coding after decode, obtain decoded respectively The pixel value of pixel;Here the conventional lossy coding method such as jpeg, jpeg2000 can be used to encode;
S130, to each pixel, when the original pixel value of this pixel and the difference of decoded pixel value exceed During predetermined threshold level, this pixel is chosen for lossless pixel, and by the pixel value of described lossless pixel from described screen Information raw data is rejected, obtains the first screen message data;Here threshold value determine next code encoding rate and Coding quality, user can be according to actual demand predetermined threshold level, and threshold value is the highest, and the lossless pixel chosen is the fewest, right For original pattern display information, more level off to lossy coding;Threshold value is the lowest, and the lossless pixel chosen is the most, to original For displaying information on screen, more level off to lossless coding;
After the pixel value of lossless pixel is rejected from described screen message initial data, due to disallowable pixel The frequency of position is the highest, after the pixel value that the position of disallowable pixel is corresponding becomes blank, can affect code efficiency, because of This, described method farther includes: to described first screen message data, by pixel value corresponding for the position of disallowable pixel Carry out interpolation amendment according to pixel value about, obtain the second screen message data;Replace by described second screen message data Change described first screen message data.
Circulation above-mentioned steps, until all of pixel performs step S140 after being all disposed;
S140, the pixel value of described lossless pixel is placed in the position of the corresponding pixel points of lossless screen message data, Wherein, described lossless screen message data and described screen message initial data have the pixel quantity of same size;
S150, described first screen message data are carried out lossy coding, obtain lossy coding numerical value, by described lossless screen Curtain information data is reversibly encoded, and obtains lossless coding numerical value, by described lossy coding numerical value and described lossless coding numerical value Obtain the coding result of described original pattern display information to be encoded.
In one embodiment of the invention, the initial value of described lossless screen message data is set to invalid value, to carry The encoding rate of high described lossless screen message data, and letter decoding process.
In one embodiment of the invention, described method farther includes:
S160, described coding result is decoded so that described original pattern display information reverting;Specifically include:
S161, carry out damaging decoding by described lossy coding numerical value, obtain decoded first screen message data;
S162, described lossless coding numerical value is carried out losslessly encoding, obtain decoded lossless screen message data;
S163, for described decoded lossless screen message data, when the pixel value of pixel is not invalid value, will The pixel value of this pixel is inserted into the position of described decoded first screen message data corresponding pixel points so that described former Beginning displaying information on screen reduces.
Fig. 2 is the structure chart of the coding system of a kind of displaying information on screen of one embodiment of the invention;Described system 200 is wrapped Include:
Collecting unit 210, for determining original pattern display information to be encoded, gathers described original pattern to be encoded Each pixel of display information, and obtain the original pixel value of described each pixel, obtain screen message initial data;
First processing unit 220, decodes after described original pattern display information to be encoded is carried out lossy coding, Obtain the pixel value of decoded each pixel;
Second processing unit 230, for each pixel, when original pixel value and the decoded picture of this pixel When the difference of element value exceedes predetermined threshold level, this pixel is chosen for lossless pixel, and by the picture of described lossless pixel Element value is rejected from described screen message initial data, obtains the first screen message data;
3rd processing unit 240, for being placed in the right of lossless screen message data by the pixel value of described lossless pixel Answering the position of pixel, wherein, described lossless screen message data and described screen message initial data have same size Pixel quantity;
Coding unit 250, for described first screen message data are carried out lossy coding, obtains lossy coding numerical value, Described lossless screen message data are reversibly encoded, obtain lossless coding numerical value, by described lossy coding numerical value and described Lossless coding numerical value obtains the coding result of described original pattern display information to be encoded.
In one embodiment of the invention, described system processes at described second processing unit 230 and the described 3rd Farther include between unit 240: interpolating unit, for described first screen message data, by the position of disallowable pixel The pixel value putting correspondence carries out interpolation amendment according to pixel value about, obtains the second screen message data;And with described Two screen message data replace described first screen message data.
In one embodiment of the invention, the initial value of described lossless screen message data is invalid value, to improve State the encoding rate of lossless screen message data, and letter decoding process.
In one embodiment of the invention, described system farther includes:
Decoding unit 260, for being decoded described coding result so that described original pattern display information reverting; Specifically include:
Damage decoding subelement 261, for carrying out damaging decoding by described lossy coding numerical value, obtain decoded first Screen message data;
Losslessly encoding subelement 262, for described lossless coding numerical value is carried out losslessly encoding, obtains decoded lossless Screen message data;
Merge subelement 263, for for described decoded lossless screen message data, when the pixel value of pixel When being not invalid value, the pixel value of this pixel is inserted into described decoded first screen message data corresponding pixel points Position so that described original pattern display information reverting.
The embodiment of the present invention provides the benefit that: displaying information on screen is encoded in units of pixel by the present invention, gram Take the unsharp problem of different types of block boundary caused in prior art because of divided block, by displaying information on screen Each pixel carry out damaging and lossless identification, carry out lossy coding to damaging pixel, lossless pixel be reversibly encoded, from And improve encoding rate, after ensureing decoding, displaying information on screen is the most clear simultaneously.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit protection scope of the present invention.All Any modification, equivalent substitution and improvement etc. made within the spirit and principles in the present invention, are all contained in protection scope of the present invention In.

Claims (8)

1. the coded method of a displaying information on screen, it is characterised in that described method includes:
Determine original pattern display information to be encoded, gather each pixel of described original pattern display information to be encoded, And obtain the original pixel value of described each pixel, obtain screen message initial data;
Decode after described original pattern display information to be encoded is carried out lossy coding, obtain the picture of decoded each pixel Element value;
To each pixel, when the original pixel value of this pixel and the difference of decoded pixel value exceed predetermined threshold level Time, this pixel is chosen for lossless pixel, and by the pixel value of described lossless pixel from described screen message original number According to middle rejecting, obtain the first screen message data;
The pixel value of described lossless pixel is placed in the position of the corresponding pixel points of lossless screen message data, wherein, described Lossless screen message data and described screen message initial data have the pixel quantity of same size;
Described first screen message data are carried out lossy coding, obtains lossy coding numerical value, by described lossless screen message number According to being reversibly encoded, obtain lossless coding numerical value, described lossy coding numerical value and described lossless coding numerical value obtain described The coding result of original pattern display information to be encoded;
To described first screen message data, by pixel value corresponding for the position of disallowable pixel according to pixel value about Carry out interpolation amendment, obtain the second screen message data;
Described first screen message data are replaced by described second screen message data.
2. the method for claim 1, it is characterised in that the initial value of described lossless screen message data is invalid value.
3. method as claimed in claim 2, it is characterised in that described method farther includes:
Described coding result is decoded so that described original pattern display information reverting.
4. method as claimed in claim 3, it is characterised in that described described coding result is decoded so that described former The reduction of beginning displaying information on screen includes:
Carry out damaging decoding by described lossy coding numerical value, obtain decoded first screen message data;
Described lossless coding numerical value is carried out losslessly encoding, obtains decoded lossless screen message data;
For described decoded lossless screen message data, when the pixel value of pixel is not invalid value, by this pixel Pixel value be inserted into the position of described decoded first screen message data corresponding pixel points so that described original pattern shows Show information reverting.
5. the coding system of a displaying information on screen, it is characterised in that described system includes:
Collecting unit, for determining original pattern display information to be encoded, gathers described original pattern display letter to be encoded Each pixel of breath, and obtain the original pixel value of described each pixel, obtain screen message initial data;
First processing unit, decodes after described original pattern display information to be encoded is carried out lossy coding, is solved The pixel value of each pixel after Ma;
Second processing unit, for each pixel, when the original pixel value of this pixel and decoded pixel value When difference exceedes predetermined threshold level, this pixel is chosen for lossless pixel, and by the pixel value of described lossless pixel from Described screen message initial data is rejected, obtains the first screen message data;
3rd processing unit, for being placed in the corresponding pixel points of lossless screen message data by the pixel value of described lossless pixel Position, wherein, described lossless screen message data and described screen message initial data have the pixel number of same size Amount;
Coding unit, for described first screen message data are carried out lossy coding, obtains lossy coding numerical value, by described nothing Damage screen message data to be reversibly encoded, obtain lossless coding numerical value, by described lossy coding numerical value and described lossless coding Numerical value obtains the coding result of described original pattern display information to be encoded;
Described system farther includes:
Interpolating unit, for described first screen message data, by pixel value corresponding for the position of disallowable pixel according to Pixel value about carries out interpolation amendment, obtains the second screen message data;And replace by described second screen message data Described first screen message data.
6. system as claimed in claim 5, it is characterised in that the initial value of described lossless screen message data is invalid value.
7. system as claimed in claim 6, it is characterised in that described system farther includes:
Decoding unit, for being decoded described coding result so that described original pattern display information reverting.
8. system as claimed in claim 7, it is characterised in that described decoding unit includes:
Damage decoding subelement, for carrying out damaging decoding by described lossy coding numerical value, obtain decoded first screen letter Breath data;
Losslessly encoding subelement, for described lossless coding numerical value is carried out losslessly encoding, obtains decoded lossless screen letter Breath data;
Merge subelement, for for described decoded lossless screen message data, when the pixel value of pixel is not invalid During value, the pixel value of this pixel is inserted into the position of described decoded first screen message data corresponding pixel points, makes Obtain described original pattern display information reverting.
CN201310684334.0A 2013-12-13 2013-12-13 The coded method of a kind of displaying information on screen and coding system Active CN103686182B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310684334.0A CN103686182B (en) 2013-12-13 2013-12-13 The coded method of a kind of displaying information on screen and coding system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310684334.0A CN103686182B (en) 2013-12-13 2013-12-13 The coded method of a kind of displaying information on screen and coding system

Publications (2)

Publication Number Publication Date
CN103686182A CN103686182A (en) 2014-03-26
CN103686182B true CN103686182B (en) 2016-12-21

Family

ID=50322269

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310684334.0A Active CN103686182B (en) 2013-12-13 2013-12-13 The coded method of a kind of displaying information on screen and coding system

Country Status (1)

Country Link
CN (1) CN103686182B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105635791B (en) * 2015-12-30 2019-03-12 北京奇艺世纪科技有限公司 A kind of detection method and device of fuzzy video image
CN106604032B (en) * 2016-11-29 2020-02-04 西安万像电子科技有限公司 Method and device for compressing Chinese character blocks in image and method and device for compressing image
CN111225210B (en) * 2018-11-26 2022-04-01 深圳市炜博科技有限公司 Video coding method, video coding device and terminal equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2433455A1 (en) * 2001-11-29 2003-06-05 Matsushita Electric Industrial Co., Ltd. Coding distortion removal method, video encoding method, video decoding method, and apparatus and program for the same
CN101653005A (en) * 2007-04-04 2010-02-17 艾利森电话股份有限公司 Frame buffer compression and decompression method for graphics rendering
CN101783952A (en) * 2010-03-01 2010-07-21 广东威创视讯科技股份有限公司 Coding optimization method and coding optimization device for images
CN102098507A (en) * 2010-06-08 2011-06-15 同济大学 Integrative compressing method and device of image
CN103024445A (en) * 2012-12-13 2013-04-03 北京百度网讯科技有限公司 Cloud video transcode method and cloud server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2433455A1 (en) * 2001-11-29 2003-06-05 Matsushita Electric Industrial Co., Ltd. Coding distortion removal method, video encoding method, video decoding method, and apparatus and program for the same
CN101653005A (en) * 2007-04-04 2010-02-17 艾利森电话股份有限公司 Frame buffer compression and decompression method for graphics rendering
CN101783952A (en) * 2010-03-01 2010-07-21 广东威创视讯科技股份有限公司 Coding optimization method and coding optimization device for images
CN102098507A (en) * 2010-06-08 2011-06-15 同济大学 Integrative compressing method and device of image
CN103024445A (en) * 2012-12-13 2013-04-03 北京百度网讯科技有限公司 Cloud video transcode method and cloud server

Also Published As

Publication number Publication date
CN103686182A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
US20200260117A1 (en) Methods and Apparatuses for Coding and Decoding Depth Map
US11259048B2 (en) Adaptive selection of occupancy map precision
KR102499355B1 (en) A shape-adaptive model-based codec for lossy and lossless image compression
CN107995494B (en) The compression method and decompressing method, computer installation, computer readable storage medium of video image data
US8780996B2 (en) System and method for encoding and decoding video data
CN105718534B (en) Information pushing apparatus, information pushing method and client
KR20220029595A (en) Point cloud encoding and decoding methods, encoders, decoders and computer storage media
Mitchell et al. Multilevel graphics representation using block truncation coding
EP3068134A1 (en) Method and device for image compression
CN103686182B (en) The coded method of a kind of displaying information on screen and coding system
CN106971399B (en) Image-mosaics detection method and device
CN110830808A (en) Video frame reconstruction method and device and terminal equipment
CN107103632B (en) Image compression method and device
JP2013247681A (en) Image encoding method and image decoding method
Zhao et al. Candidate value‐based boundary filtering for compressed depth images
CN103986930A (en) Registration picture image compression method suitable for small-capacity information carrier
CN110809158B (en) Image loop filtering processing method and device
CN115174774A (en) Depth image compression method, device, equipment and storage medium
CN105243351A (en) Code scanning method based on mobile terminal
CN106604033B (en) Image coding and logical calculation method and device
Váša et al. Error propagation control in Laplacian mesh compression
CN111539874A (en) Method and device for accelerating video super-resolution reconstruction
CN112887729B (en) Image coding and decoding method and device
CN106488079B (en) A kind of method and device of video denoising
CN102891998B (en) A kind of image scaling, coding method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20170303

Address after: Guangdong city of Shenzhen province Baoan District Xixiang Biwan Biwan road building room 910

Patentee after: Shenzhen small fish Technology Co., Ltd.

Address before: American Texas

Patentee before: Hong Xuerong