CN103686182A - Method and system for coding screen display information - Google Patents

Method and system for coding screen display information Download PDF

Info

Publication number
CN103686182A
CN103686182A CN201310684334.0A CN201310684334A CN103686182A CN 103686182 A CN103686182 A CN 103686182A CN 201310684334 A CN201310684334 A CN 201310684334A CN 103686182 A CN103686182 A CN 103686182A
Authority
CN
China
Prior art keywords
pixel
screen
message data
screen message
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.)
Granted
Application number
CN201310684334.0A
Other languages
Chinese (zh)
Other versions
CN103686182B (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

Images

Abstract

The invention discloses a method and system for coding screen display information. The method comprises the steps that pixel points of original screen display information to be coded are collected and original pixel values are obtained so that original screen information data can be obtained; after loss coding is conducted on the original screen display information to be coded, decoding is conducted, so that the pixel value of each pixel point is obtained after decoding is conducted; after a difference value of an original pixel value of each pixel point and the decoded pixel value exceeds a preset threshold value, the pixel point is selected to serve as a lossless pixel point, the pixel value of the lossless pixel point is removed from original screen information data, and therefore first screen information data can be obtained; after the pixel value of the lossless pixel point is placed in the position, corresponding to the pixel point, of the lossless screen information data, lossless coding is conducted, loss coding is conducted on the first screen information data, and the values obtained through the two times of coding are final coding results. The method and system for coding the screen display information can conduct actual coding on the information displayed by a computer screen, and therefore the information displayed by the screen is still clear after being decoded.

Description

A kind of coding method of displaying information on screen and coded system
Technical field
The present invention relates to computer realm, particularly a kind of coding method of displaying information on screen and coded system.
Background technology
In many industries, conventionally the information showing on current computer screen need to be preserved or is transferred on other equipment, but, the information that computer screen shows is more complicated often, and resolution is high, contain much information, therefore, how displaying information on screen is encoded and become the major subjects of research in the industry.
In prior art, when the information that computer screen is shown is carried out static coding, conventionally adopt following methods:
(1) lossy coding, as: JPEG, JPEG2000 etc.; When video is encoded, encoding rate is high, when computer graphical is encoded, as low in encoding rates such as word, application window, forms, makes decoded figure unclear;
(2) lossless coding, as: PNG; When computer character is encoded, encoding rate is high, and when comparison film is encoded, encoding rate is low;
(3) Multi-encoding method is mixed use, screen is divided into some (block), according to piece pixel change frequency composition and content, described some is classified, and adopts corresponding coding method that some are encoded respectively; But, the boundary of some computer graphical and video not can completely just in time belongs to respectively in different piece, or the figure that certain is complete or image-region are assigned in a plurality of different pieces, owing to using different encryption algorithms, will make viewing area or its border of corresponding blocks after decoding, cause visual unclear so.
Summary of the invention
The invention provides a kind of coding method and coded system of displaying information on screen, with the information that computer screen is shown, carry out efficient coding, make after decoding, the information that computer screen shows is still clear.
The invention provides a kind of coding method of displaying information on screen, described method comprises:
Determine original displaying information on screen to be encoded, gather each pixel of described original displaying information on screen to be encoded, and obtain the original pixel value of described each pixel, obtain screen message initial data;
Described original displaying information on screen to be encoded is carried out decoding after lossy coding, obtain the pixel value of decoded each pixel;
To each pixel, when the original pixel value of this pixel and the difference of decoded pixel value surpass preset threshold value, this pixel is chosen for to harmless pixel, and the pixel value of described harmless pixel is rejected from described screen message initial data, obtain the first screen message data;
The position that the pixel value of described harmless pixel is placed in to the corresponding pixel points of harmless screen message data, wherein, described harmless screen message data and described screen message initial data have the pixel quantity of same size;
Described the first screen message data are carried out to lossy coding, obtain lossy coding numerical value, described harmless screen message data are carried out to lossless coding, obtain lossless coding numerical value, by described lossy coding numerical value and described lossless coding numerical value, obtained the coding result of described original displaying information on screen to be encoded.
Preferably, described method further comprises: to described the first screen message data, the pixel value that the position of disallowable pixel is corresponding carries out interpolation modification according to its pixel value around, obtains the second screen message data;
By the first screen message data described in described the second screen message data replacement.
Preferably, the initial value of described harmless screen message data is invalid value.
Preferably, described method further comprises: described coding result is decoded, make described original displaying information on screen reduction.
Preferably, described described coding result is decoded, described original displaying information on screen reduction is comprised:
Described lossy coding numerical value is damaged to decoding, obtain decoded the first screen message data;
Described lossless coding numerical value is carried out to losslessly encoding, obtain decoded harmless screen message data;
For described decoded harmless screen message data, when the pixel value of pixel is not invalid value, the pixel value of this pixel is inserted into the position of described decoded the first screen message data corresponding pixel points, makes described original displaying information on screen reduction.
The present invention also provides a kind of coded system of displaying information on screen, and described system comprises:
Collecting unit, for determining original displaying information on screen to be encoded, gathers each pixel of described original displaying information on screen to be encoded, and obtains the original pixel value of described each pixel, obtains screen message initial data;
The first processing unit, for described original displaying information on screen to be encoded is carried out decoding after lossy coding, obtains the pixel value of decoded each pixel;
The second processing unit, be used for each pixel, when the original pixel value of this pixel and the difference of decoded pixel value surpass preset threshold value, this pixel is chosen for to harmless pixel, and the pixel value of described harmless pixel is rejected from described screen message initial data, obtain the first screen message data;
The 3rd processing unit, for the pixel value of described harmless pixel being placed in to the position of the corresponding pixel points of harmless screen message data, wherein, described harmless screen message data and described screen message initial data have the pixel quantity of same size;
Coding unit, for described the first screen message data are carried out to lossy coding, obtain lossy coding numerical value, described harmless screen message data are carried out to lossless coding, obtain lossless coding numerical value, by described lossy coding numerical value and described lossless coding numerical value, obtained the coding result of described original displaying information on screen to be encoded.
Preferably, described system further comprises: interpolating unit, and for to described the first screen message data, the pixel value that the position of disallowable pixel is corresponding carries out interpolation modification according to its pixel value around, obtains the second screen message data; And by the first screen message data described in described the second screen message data replacement.
Preferably, the initial value of described harmless screen message data is invalid value.
Preferably, described system further comprises:
Decoding unit, for described coding result is decoded, makes described original displaying information on screen reduction.
Preferably, described decoding unit comprises:
Damage decoding subelement, for described lossy coding numerical value is damaged to decoding, obtain decoded the first screen message data;
Losslessly encoding subelement, for described lossless coding numerical value is carried out to losslessly encoding, obtains decoded harmless screen message data;
Merge subelement, be used for for described decoded harmless screen message data, when the pixel value of pixel is not invalid value, the pixel value of this pixel is inserted into the position of described decoded the first screen message data corresponding pixel points, make described original displaying information on screen reduction.
The beneficial effect of the embodiment of the present invention is: the present invention be take pixel and displaying information on screen encoded as unit, overcome the unsharp problem of dissimilar block boundary causing because of divided block in prior art, by each pixel in displaying information on screen, damage and harmless identification, to damaging pixel, carry out lossy coding, harmless pixel is carried out to lossless coding, thereby raising encoding rate guarantees that the rear displaying information on screen of decoding is still clear simultaneously.
Accompanying drawing explanation
Fig. 1 is the flow chart of coding method of a kind of displaying information on screen of one embodiment of the invention;
Fig. 2 is the structure chart of coded system of a kind of displaying information on screen of one embodiment of the invention;
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Fig. 1 is the flow chart of coding method of a kind of displaying information on screen of one embodiment of the invention; As shown in Figure 1, described method comprises:
S110, determine original displaying information on screen to be encoded, gather each pixel of described original displaying information on screen to be encoded, and obtain the original pixel value of described each pixel, obtain screen message initial data;
S120, described original displaying information on screen to be encoded is carried out decoding after lossy coding, obtain the pixel value of decoded each pixel; Here can adopt the conventional lossy coding methods such as jpeg, jpeg2000 to encode;
S130, to each pixel, when the original pixel value of this pixel and the difference of decoded pixel value surpass preset threshold value, this pixel is chosen for to harmless pixel, and the pixel value of described harmless pixel is rejected from described screen message initial data, obtain the first screen message data; The threshold value has here determined encoding rate and the coding quality of next code, and user can be according to actual demand preset threshold value, and threshold value is higher, and the harmless pixel of choosing is fewer, concerning original displaying information on screen, more levels off to lossy coding; Threshold value is lower, and the harmless pixel of choosing is more, concerning original displaying information on screen, more levels off to lossless coding;
After the pixel value of harmless pixel is rejected from described screen message initial data, because the frequency of the position of disallowable pixel is very high, when the position of disallowable pixel, corresponding pixel value becomes after blank, can affect code efficiency, therefore, described method further comprises: to described the first screen message data, the pixel value that the position of disallowable pixel is corresponding carries out interpolation modification according to its pixel value around, obtains the second screen message data; By the first screen message data described in described the second screen message data replacement.
Circulation above-mentioned steps, until all pixels perform step S140 after being all disposed;
S140, the pixel value of described harmless pixel is placed in to the position of the corresponding pixel points of harmless screen message data, wherein, described harmless screen message data and described screen message initial data have the pixel quantity of same size;
S150, described the first screen message data are carried out to lossy coding, obtain lossy coding numerical value, described harmless screen message data are carried out to lossless coding, obtain lossless coding numerical value, by described lossy coding numerical value and described lossless coding numerical value, obtained the coding result of described original displaying information on screen to be encoded.
In one embodiment of the invention, the initial value of described harmless screen message data is made as to invalid value, to improve the encoding rate of described harmless screen message data, and simplifies decode procedure.
In one embodiment of the invention, described method further comprises:
S160, described coding result is decoded, make described original displaying information on screen reduction; Specifically comprise:
S161, described lossy coding numerical value is damaged to decoding, obtain decoded the first screen message data;
S162, described lossless coding numerical value is carried out to losslessly encoding, obtain decoded harmless screen message data;
S163, for described decoded harmless screen message data, when the pixel value of pixel is not invalid value, the pixel value of this pixel is inserted into the position of described decoded the first screen message data corresponding pixel points, makes described original displaying information on screen reduction.
Fig. 2 is the structure chart of coded system of a kind of displaying information on screen of one embodiment of the invention; Described system 200 comprises:
Collecting unit 210, for determining original displaying information on screen to be encoded, gathers each pixel of described original displaying information on screen to be encoded, and obtains the original pixel value of described each pixel, obtains screen message initial data;
The first processing unit 220, for described original displaying information on screen to be encoded is carried out decoding after lossy coding, obtains the pixel value of decoded each pixel;
The second processing unit 230, be used for each pixel, when the original pixel value of this pixel and the difference of decoded pixel value surpass preset threshold value, this pixel is chosen for to harmless pixel, and the pixel value of described harmless pixel is rejected from described screen message initial data, obtain the first screen message data;
The 3rd processing unit 240, for the pixel value of described harmless pixel being placed in to the position of the corresponding pixel points of harmless screen message data, wherein, described harmless screen message data and described screen message initial data have the pixel quantity of same size;
Coding unit 250, for described the first screen message data are carried out to lossy coding, obtain lossy coding numerical value, described harmless screen message data are carried out to lossless coding, obtain lossless coding numerical value, by described lossy coding numerical value and described lossless coding numerical value, obtained the coding result of described original displaying information on screen to be encoded.
In one embodiment of the invention, described system further comprises between described the second processing unit 230 and described the 3rd processing unit 240: interpolating unit, be used for described the first screen message data, the pixel value that the position of disallowable pixel is corresponding carries out interpolation modification according to its pixel value around, obtains the second screen message data; And by the first screen message data described in described the second screen message data replacement.
In one embodiment of the invention, the initial value of described harmless screen message data is invalid value, to improve the encoding rate of described harmless screen message data, and simplifies decode procedure.
In one embodiment of the invention, described system further comprises:
Decoding unit 260, for described coding result is decoded, makes described original displaying information on screen reduction; Specifically comprise:
Damage decoding subelement 261, for described lossy coding numerical value is damaged to decoding, obtain decoded the first screen message data;
Losslessly encoding subelement 262, for described lossless coding numerical value is carried out to losslessly encoding, obtains decoded harmless screen message data;
Merge subelement 263, be used for for described decoded harmless screen message data, when the pixel value of pixel is not invalid value, the pixel value of this pixel is inserted into the position of described decoded the first screen message data corresponding pixel points, makes described original displaying information on screen reduction.
The beneficial effect of the embodiment of the present invention is: the present invention be take pixel and displaying information on screen encoded as unit, overcome the unsharp problem of dissimilar block boundary causing because of divided block in prior art, by each pixel in displaying information on screen, damage and harmless identification, to damaging pixel, carry out lossy coding, harmless pixel is carried out to lossless coding, thereby raising encoding rate guarantees that the rear displaying information on screen of decoding is still clear simultaneously.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any modifications of doing within the spirit and principles in the present invention, be equal to replacement, improvement etc., be all included in protection scope of the present invention.

Claims (10)

1. a coding method for displaying information on screen, is characterized in that, described method comprises:
Determine original displaying information on screen to be encoded, gather each pixel of described original displaying information on screen to be encoded, and obtain the original pixel value of described each pixel, obtain screen message initial data;
Described original displaying information on screen to be encoded is carried out decoding after lossy coding, obtain the pixel value of decoded each pixel;
To each pixel, when the original pixel value of this pixel and the difference of decoded pixel value surpass preset threshold value, this pixel is chosen for to harmless pixel, and the pixel value of described harmless pixel is rejected from described screen message initial data, obtain the first screen message data;
The position that the pixel value of described harmless pixel is placed in to the corresponding pixel points of harmless screen message data, wherein, described harmless screen message data and described screen message initial data have the pixel quantity of same size;
Described the first screen message data are carried out to lossy coding, obtain lossy coding numerical value, described harmless screen message data are carried out to lossless coding, obtain lossless coding numerical value, by described lossy coding numerical value and described lossless coding numerical value, obtained the coding result of described original displaying information on screen to be encoded.
2. the method for claim 1, is characterized in that, described method further comprises:
To described the first screen message data, the pixel value that the position of disallowable pixel is corresponding carries out interpolation modification according to its pixel value around, obtains the second screen message data;
By the first screen message data described in described the second screen message data replacement.
3. method as claimed in claim 1 or 2, is characterized in that, the initial value of described harmless screen message data is invalid value.
4. method as claimed in claim 3, is characterized in that, described method further comprises:
Described coding result is decoded, make described original displaying information on screen reduction.
5. method as claimed in claim 4, is characterized in that, described described coding result is decoded, and described original displaying information on screen reduction is comprised:
Described lossy coding numerical value is damaged to decoding, obtain decoded the first screen message data;
Described lossless coding numerical value is carried out to losslessly encoding, obtain decoded harmless screen message data;
For described decoded harmless screen message data, when the pixel value of pixel is not invalid value, the pixel value of this pixel is inserted into the position of described decoded the first screen message data corresponding pixel points, makes described original displaying information on screen reduction.
6. a coded system for displaying information on screen, is characterized in that, described system comprises:
Collecting unit, for determining original displaying information on screen to be encoded, gathers each pixel of described original displaying information on screen to be encoded, and obtains the original pixel value of described each pixel, obtains screen message initial data;
The first processing unit, for described original displaying information on screen to be encoded is carried out decoding after lossy coding, obtains the pixel value of decoded each pixel;
The second processing unit, be used for each pixel, when the original pixel value of this pixel and the difference of decoded pixel value surpass preset threshold value, this pixel is chosen for to harmless pixel, and the pixel value of described harmless pixel is rejected from described screen message initial data, obtain the first screen message data;
The 3rd processing unit, for the pixel value of described harmless pixel being placed in to the position of the corresponding pixel points of harmless screen message data, wherein, described harmless screen message data and described screen message initial data have the pixel quantity of same size;
Coding unit, for described the first screen message data are carried out to lossy coding, obtain lossy coding numerical value, described harmless screen message data are carried out to lossless coding, obtain lossless coding numerical value, by described lossy coding numerical value and described lossless coding numerical value, obtained the coding result of described original displaying information on screen to be encoded.
7. system as claimed in claim 6, is characterized in that, described system further comprises:
Interpolating unit, for to described the first screen message data, the pixel value that the position of disallowable pixel is corresponding carries out interpolation modification according to its pixel value around, obtains the second screen message data; And by the first screen message data described in described the second screen message data replacement.
8. the system as described in claim 6 or 7, is characterized in that, the initial value of described harmless screen message data is invalid value.
9. system as claimed in claim 8, is characterized in that, described system further comprises:
Decoding unit, for described coding result is decoded, makes described original displaying information on screen reduction.
10. system as claimed in claim 9, is characterized in that, described decoding unit comprises:
Damage decoding subelement, for described lossy coding numerical value is damaged to decoding, obtain decoded the first screen message data;
Losslessly encoding subelement, for described lossless coding numerical value is carried out to losslessly encoding, obtains decoded harmless screen message data;
Merge subelement, be used for for described decoded harmless screen message data, when the pixel value of pixel is not invalid value, the pixel value of this pixel is inserted into the position of described decoded the first screen message data corresponding pixel points, make described original displaying information on screen reduction.
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 true CN103686182A (en) 2014-03-26
CN103686182B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105635791A (en) * 2015-12-30 2016-06-01 北京奇艺世纪科技有限公司 Detection method and apparatus for blurred video image
CN106604032A (en) * 2016-11-29 2017-04-26 苏睿 Compression method of character blocks in image, compression device, image compression method and device
CN111225210A (en) * 2018-11-26 2020-06-02 深圳市炜博科技有限公司 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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105635791A (en) * 2015-12-30 2016-06-01 北京奇艺世纪科技有限公司 Detection method and apparatus for blurred video image
CN106604032A (en) * 2016-11-29 2017-04-26 苏睿 Compression method of character blocks in image, compression device, image compression method and device
CN111225210A (en) * 2018-11-26 2020-06-02 深圳市炜博科技有限公司 Video coding method, video coding device and terminal equipment
CN111225210B (en) * 2018-11-26 2022-04-01 深圳市炜博科技有限公司 Video coding method, video coding device and terminal equipment

Also Published As

Publication number Publication date
CN103686182B (en) 2016-12-21

Similar Documents

Publication Publication Date Title
CN102611823B (en) Method and equipment capable of selecting compression algorithm based on picture content
EP2916543A1 (en) Method for coding/decoding depth image and coding/decoding device
US9386319B2 (en) Post-process filter for decompressed screen content
US20140341282A1 (en) Encoding or decoding method and apparatus
CN105530518B (en) A kind of Video coding, coding/decoding method and device
CN104540000A (en) Method for generating dynamic thumbnail and terminal
EP2858369A1 (en) Hardware efficient sparse FIR filtering in video codec
Mitchell et al. Multilevel graphics representation using block truncation coding
CN103067715A (en) Encoding and decoding methods and encoding and decoding device of range image
CN112352431B (en) Data encoding method, data decoding method, data encoding equipment, data decoding equipment and storage medium
GB2539241A (en) Video processing system
CN103686182A (en) Method and system for coding screen display information
CN111263243A (en) Video coding method and device, computer readable medium and electronic equipment
CN103533377B (en) Frame deletion manipulation detection method based on H.264/AVC (advanced video coding) video
CN104780383A (en) 3D-HEVC (High Efficiency Video Coding) multi-resolution video coding method
CN107103632B (en) Image compression method and device
CN103986930A (en) Registration picture image compression method suitable for small-capacity information carrier
Zhao et al. Candidate value‐based boundary filtering for compressed depth images
CN105163124A (en) Image coding method, image decoding method, image coding device and image decoding device
CN103002282B (en) A kind of number of color adaptive decision-making method and method for compressing image
Gu et al. Simplified depth intra mode selection for 3D video compression
CN115174774A (en) Depth image compression method, device, equipment and storage medium
CN104809747B (en) The statistical method and its system of image histogram
CN112181221A (en) Image processing method and device, computer readable medium and electronic device
CN105072445B (en) A kind of video moving object detection method based on block truncation coding compression domain

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