CN102281469A - Processing method of bitmap information and set top box - Google Patents

Processing method of bitmap information and set top box Download PDF

Info

Publication number
CN102281469A
CN102281469A CN2011102554516A CN201110255451A CN102281469A CN 102281469 A CN102281469 A CN 102281469A CN 2011102554516 A CN2011102554516 A CN 2011102554516A CN 201110255451 A CN201110255451 A CN 201110255451A CN 102281469 A CN102281469 A CN 102281469A
Authority
CN
China
Prior art keywords
pixel
group
gray values
bitmap
pixel points
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
CN2011102554516A
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.)
Shenzhen Ipanel TV Inc
Original Assignee
Shenzhen Ipanel TV Inc
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 Shenzhen Ipanel TV Inc filed Critical Shenzhen Ipanel TV Inc
Priority to CN2011102554516A priority Critical patent/CN102281469A/en
Publication of CN102281469A publication Critical patent/CN102281469A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

The invention discloses a processing method of bitmap information. The method comprises the following steps: after acquiring a character bitmap to be displayed through calculating, reading position parameters of an effective image in the character bitmap to be displayed, wherein the position parameters are displayed on a screen; counting gray levels of each pixel in the character bitmap to be displayed point by point from the first pixel; dividing the pixels with the continuous same gray level or the continuous different gray levels into a same group; arranging marking information to the each group, wherein the marking information is used to indicate that the gray levels of the pixels in the group are continuous same or continuous different; storing the position parameters of the effective image displayed on the screen and all the marking information of the groups in the character bitmap to be displayed; compressing the bitmap after the character to be displayed is divided. An embodiment of the invention also provides a corresponding set top box.

Description

A kind of processing method of message bit pattern and set-top box
Technical field
The present invention relates to communication technical field, be specifically related to a kind of processing method and set-top box of message bit pattern.
Background technology
Character can show by dot matrix word or vector font when showing, dot matrix word library is installed is needed very big memory headroom, for the very little user side in this flash of set-top box space, is not suitable for installing dot matrix word library.Vector font library is installed in set-top box environment, when wanting character display at every turn, inquire about the descriptor of described character correspondence in the vector font library by font engine, as the borderline key point of font, the derivative information of line etc., descriptor according to described character correspondence is calculated, and calculates the message bit pattern of described character, shows according to described message bit pattern again.
The present inventor finds, all to could obtain the message bit pattern of character before character shows in the prior art through a large amount of calculating, obtain directly to export described bitmap for showing use behind the described message bit pattern, when next time, identical character will repeat to show, repeat to calculate, wasted a lot of times.
Summary of the invention
The embodiment of the invention provides a kind of processing method of message bit pattern, can take very little space and preserve described message bit pattern after once calculate the acquisition message bit pattern.The present invention also provides corresponding set-top box.
A kind of processing method of message bit pattern comprises:
After calculating character bitmap to be shown, read the location parameter that effective image shows in the described character bitmap to be shown on screen;
From first pixel, each gray values of pixel points in the described character bitmap to be shown is added up in pointwise, with gray value consecutive identical or gray value continuously different pixels be divided into same group;
Label information is set for described each group, it is consecutive identical or different continuously that described label information is used for indicating described group of gray values of pixel points;
Preserve the label information of all groups in location parameter that described effective image shows and the described character bitmap to be shown on screen;
Compress the bitmap after described character to be shown divides into groups.
A kind of set-top box comprises:
Computing unit is used to calculate character bitmap to be shown;
Reading unit is used for after described computing unit calculates described character bitmap to be shown, reads the location parameter that effective image shows on screen in the described character bitmap to be shown;
The statistical packet unit, be used for reading described effective image behind the location parameter that shows on the screen at described reading unit, from first pixel, each gray values of pixel points in the described character bitmap to be shown is added up in pointwise, with gray value consecutive identical or gray value continuously different pixels be divided into same group;
Flag setting unit is used for after grouping is finished in described statistical packet unit, label information is set for described each group, and it is consecutive identical or different continuously that described label information is used for indicating described group of gray values of pixel points;
Preserve the unit, be used for after described flag setting unit is provided with label information to each group, preserve the label information of all groups in location parameter that described effective image shows and the described character bitmap to be shown on screen;
Compression unit is used for after the label information of location parameter that described effective image showing on the screen and described all groups of character bitmap to be shown is preserved in described preservation unit, compresses the bitmap after the described character grouping to be shown.
The embodiment of the invention adopts by after calculating character bitmap to be shown, read the location parameter that effective image shows in the described character bitmap to be shown on screen, from first pixel, each gray values of pixel points in the described character bitmap to be shown is added up in pointwise, with gray value consecutive identical or gray value continuously different pixels be divided into same group, label information is set for described each group, it is consecutive identical or different continuously that described label information is used for indicating described group of gray values of pixel points, preserve the label information of all groups in location parameter that described effective image shows and the described character bitmap to be shown on screen, compress the bitmap after the described character grouping to be shown.Compared with prior art, the processing method of the message bit pattern that the embodiment of the invention provides can take very little space and preserve described message bit pattern after once calculate the acquisition message bit pattern.
Description of drawings
Fig. 1 is an embodiment schematic diagram of bitmap information processing method in the embodiment of the invention;
Fig. 2 is set-top box one an embodiment schematic diagram in the embodiment of the invention;
Fig. 3 is another embodiment schematic diagram of set-top box in the embodiment of the invention;
Fig. 4 is another embodiment schematic diagram of set-top box in the embodiment of the invention;
Fig. 5 is another embodiment schematic diagram of set-top box in the embodiment of the invention.
Embodiment
The embodiment of the invention provides a kind of processing method of message bit pattern, can take very little space and preserve described message bit pattern after once calculate the acquisition message bit pattern.The embodiment of the invention also provides corresponding set-top box.Below be elaborated respectively.
101,, read the location parameter that effective image shows in the described character bitmap to be shown on screen by after calculating character bitmap to be shown.
Set-top box is used the page by browser access, the demonstration of character is the descriptor by font engine described character to be shown of inquiry in the vector font library in the page, as the borderline key point of font, the derivative information of line etc., descriptor according to described character correspondence to be shown is calculated, after calculating the bitmap of described character to be shown, could really show described character to be shown according to the location parameter that on screen, shows of effective image in the character bitmap described to be shown and the bitmap of described character to be shown;
Obtain bitmap for avoiding also will recomputating when described character to be shown is next to be shown, described calculate described character bitmap to be shown after, read the location parameter that effective image shows in the described character bitmap to be shown on screen, the described location parameter that shows on screen comprises: the effective image of Width character to be shown wide, the height of the effective image of Height character to be shown, the initial point horizontal direction distance in the left margin distance objective zone of the effective image of Bearingx character to be shown, the initial point vertical direction distance in the distance objective zone, coboundary of the effective image of Bearingy character to be shown, the position that Advance character next to be shown shows, the actual screen width that occupies of promptly current character to be shown.
102, from first pixel, each gray values of pixel points in the described character bitmap to be shown is added up in pointwise, with gray value consecutive identical or gray value continuously different pixels be divided into same group.
The principle that shows is by behind the bitmap that calculates character to be shown, and gray values of pixel points highlights effective image section greater than other gray values of pixel points in the bitmap under effective image of character to be shown;
Since first pixel, more adjacent two gray values of pixel points of pointwise, if adjacent two gray values of pixel points are identical, think that adjacent two gray values of pixel points are consecutive identical, if adjacent two gray values of pixel points differences think that adjacent two gray values of pixel points are different continuously;
Be specially: from first pixel, relatively whether N gray values of pixel points be identical with N-1 gray values of pixel points in pointwise, N is the natural number greater than 1, this is a process that compares continuously, the 2nd pixel compared with the 1st pixel, the 3rd pixel compared with the 2nd pixel, the 4th pixel compared or the like with the 3rd pixel, up to first turnover pixel occurring, so-called turnover pixel is that the front gray values of pixel points of having added up is all identical, this gray values of pixel points is different with the front gray values of pixel points, N-1 all identical N the gray values of pixel points of gray values of pixel points and N-1 gray values of pixel points are inequality promptly, perhaps, in the pixel that the front had been added up, adjacent two gray values of pixel points are all inequality, this gray values of pixel points is identical with adjacent previous gray values of pixel points, in promptly preceding N-1 the pixel, the gray value of per two continuous image vegetarian refreshments is all inequality, N-1 gray values of pixel points is identical with N gray values of pixel points, at this moment will divide into groups at turnover pixel place;
Concrete grouping process can be described as if a preceding N-1 gray values of pixel points is all identical, and N gray values of pixel points and N-1 gray values of pixel points are inequality, and a preceding N-1 pixel is divided into first group;
If in the preceding N-1 pixel, the gray value of per two continuous image vegetarian refreshments is all inequality, N-1 gray values of pixel points is identical with N gray values of pixel points, and a preceding N-2 pixel is divided into first group;
After having divided described first group, N pixel or N-2 pixel are repeated above-mentioned comparison and grouping process as initial pixel, in last pixel in the bitmap all being divided into last group.
103, label information is set for described each group, it is consecutive identical or different continuously that described label information is used for indicating described group of gray values of pixel points.
After being consecutive identical or continuous different grouping according to gray values of pixel points in the bitmap for the bitmap of described character to be shown, label information is set for described grouping, described label information can just be provided with after having divided one group at every turn, also can all divide the back to be provided with in all groups, if after all groups have all been divided, label information is set, before being set again, label information needs to check that gray values of pixel points is consecutive identical or different continuously in described group, if gray values of pixel points is consecutive identical in described group, can be set to 1 by label information, to further count the number of pixel in described group and the common gray value of all pixels simultaneously, pixel if any 5 same grayscale values, gray value is 16, the number and the gray value of described pixel are carried in the described label information, specifically can be expressed as 15,16If gray values of pixel points is continuous difference in described group, can be set to 0 by label information, will further count the number of pixel in described group and the gray value separately of each pixel simultaneously, if any the pixel of 3 continuous different gray values, gray value is respectively 10,12,14, the number of described pixel and each gray values of pixel points are carried in the described label information 0 3,10,12,14
104, preserve the label information of all groups in location parameter that described effective image shows and the described character bitmap to be shown on screen.
To after the pixel in bitmap grouping and label information being set, preserve the label information of each group of record in location parameter that effective image of the character to be shown that reads in the described step 101 shows and the described step 103 on screen.
105, the bitmap after the described character grouping to be shown of compression.
Because of the set-top box memory headroom limited, can not directly preserve the message bit pattern that obtains after the described calculating, preserve the label information of all groups in location parameter that described effective image shows and the described character bitmap to be shown on screen in step 104 after, compress the bitmap after described character to be shown divides into groups, to save internal memory.
106, search the compress bitmap information of described character to be shown according to character to be shown.
Set-top box is used the page by browser access, when running into the character that showed in the past, only the compress bitmap information that need search described character to be shown according to described character to be shown does not need to obtain message bit pattern by calculating again, avoid double counting, saved computing time again.
107,, each gray values of pixel points in each group is filled in the pixel of described character bitmap correspondence to be shown in order according to the described character compression bitmap to be shown of group decompression.
After step 106 finds the compress bitmap information of described character to be shown, compress bitmap according to the described character to be shown of group decompression, the compress bitmap that decompression earlier is first group, and the pixel gray value of preserving in first group is filled in the pixel of corresponding bitmap, if, first group label information is 15,16, means that first group has 5 pixels, each gray values of pixel points is 16, after the decompression, 5 pixels in the bitmap after decompressing are filled since first pixel, each gray values of pixel points is 16, after filling finishes, decompress second group again, if second group label information is 0 3,10,12,14, meaning has 3 pixels in second group, and in order, each gray values of pixel points is 10,12,14, after the decompression, 3 pixels after decompressing to be filled since first pixel, gray value once is filled to 10,12,14, decompress second group again, the principle of filling is same as described above.
108, the location parameter that shows on screen according to the effective image of described character to be shown shows the effective image of described character to be shown.
All groups all decompress and finish, after each gray values of pixel points is all filled and is finished in the bitmap, the location parameter that on screen, shows according to the effective image of described character to be shown, wide as the effective image of character to be shown, the height of the effective image of character to be shown, the initial point horizontal direction distance in the left margin distance objective zone of the effective image of character to be shown, the initial point vertical direction distance in the distance objective zone, coboundary of the effective image of character to be shown, the actual screen width that occupies of current character to be shown, on screen, show effective image of described character to be shown, also just finished the demonstration of described character to be shown.
In the embodiment of the invention, after calculating character bitmap to be shown, read the location parameter that effective image shows in the described character bitmap to be shown on screen, from first pixel, each gray values of pixel points in the described character bitmap to be shown is added up in pointwise, with gray value consecutive identical or gray value continuously different pixels be divided into same group, label information is set for described each group, it is consecutive identical or different continuously that described label information is used for indicating described group of gray values of pixel points, preserve the label information of all groups in location parameter that described effective image shows and the described character bitmap to be shown on screen, compress the bitmap after described character to be shown divides into groups, search the compress bitmap information of described character to be shown according to character to be shown, according to the described character compression bitmap to be shown of group decompression, each gray values of pixel points in each group is filled in the pixel of described character bitmap correspondence to be shown in order, according to the location parameter that the effective image of described character to be shown shows, show the effective image of described character to be shown on screen.Compared with prior art, the embodiment of the invention by the message bit pattern that once calculates character to be shown after, with the packed compressed preservation of described message bit pattern, when repeat to show described character next time, as long as find the described compress bitmap information for the treatment of character, decompressing just can directly show, does not need to carry out a large amount of calculating again and obtains message bit pattern once more, save computing time, accelerated the display speed of character to be shown.
In the above-described embodiments, step 106,107 and 108 can be omitted, omit above-mentioned 3 steps after, the technical scheme that the embodiment of the invention provides is compared with prior art, can after once calculate the acquisition message bit pattern, take very little space and preserve described message bit pattern.
For ease of understanding, below with a concrete application scenarios to the message bit pattern described in the foregoing description
Consult Fig. 2, an embodiment of set-top box comprises in the embodiment of the invention: computing unit 201, reading unit 202, statistical packet unit 203, flag setting unit 204, preserve unit 205, compression unit 206, search unit 207, decompression unit 208 and display unit 209.
Described computing unit 201 is used to calculate character bitmap to be shown;
Described reading unit 202 is used for after described computing unit 201 calculates described character bitmap to be shown, reads the location parameter that effective image shows on screen in the described character bitmap to be shown;
Described statistical packet unit 203, be used for reading described effective image behind the location parameter that shows on the screen at described reading unit 202, from first pixel, each gray values of pixel points in the described character bitmap to be shown is added up in pointwise, with gray value consecutive identical or gray value continuously different pixels be divided into same group;
Described flag setting unit 204 is used for after grouping is finished in described statistical packet unit 203, label information is set for described each group, and it is consecutive identical or different continuously that described label information is used for indicating described group of gray values of pixel points;
Described preservation unit 205 is used for after described flag setting unit 204 is provided with label information to each group, preserves the label information of all groups in location parameter that described effective image shows on screen and the described character bitmap to be shown;
Described compression unit 206 is used for after the label information of location parameter that described effective image showing on the screen and described all groups of character bitmap to be shown is preserved in described preservation unit 205, compresses the bitmap after the described character grouping to be shown.
The described unit 207 of searching is used for behind the described character bitmap to be shown of described compression unit 206 compressions the compress bitmap information of searching described character to be shown according to character to be shown;
Described decompression unit 208, be used for described search unit 207 and find the compress bitmap information of described character to be shown after, according to the described character compression bitmap to be shown of group decompression, each gray values of pixel points in each group is filled in the pixel of described character bitmap correspondence to be shown in order;
Described display unit 209 is used for after decompression unit 208 is finished the decompression of bitmap, according to the location parameter that the effective image of described character to be shown shows on screen, shows the effective image of described character to be shown.
In the embodiment of the invention, after computing unit 201 calculates character bitmap to be shown, reading unit 202 reads the location parameter that effective image shows in the described character bitmap to be shown on screen, statistical packet unit 203 is from first pixel, each gray values of pixel points in the described character bitmap to be shown is added up in pointwise, with gray value consecutive identical or gray value continuously different pixels be divided into same group, flag setting unit 204 is provided with label information for described each group, the label information of all groups in location parameter that the preservation unit described effective image of 205 preservations shows on screen and the described character bitmap to be shown, bitmap after the described character grouping to be shown of compression unit 206 compressions, search unit 207 and search the compress bitmap information of described character to be shown according to character to be shown, decompression unit 208 is according to the described character compression bitmap to be shown of group decompression, each gray values of pixel points in each group is filled in the pixel of described character bitmap correspondence to be shown in order, display unit 209 shows the effective image of described character to be shown according to the location parameter that the effective image of described character to be shown shows on screen.Compared with prior art, the embodiment of the invention by the message bit pattern that once calculates character to be shown after, with the packed compressed preservation of described message bit pattern, when repeat to show described character next time, as long as find the described compress bitmap information for the treatment of character, decompressing just can directly show, does not need to carry out a large amount of calculating again and obtains message bit pattern once more, save computing time, accelerated the display speed of character to be shown.
In the above-described embodiments, searching unit 207, decompression unit 208 and display unit 209 can omit, after omitting above-mentioned 3 unit, the technical scheme that the embodiment of the invention provides compared with prior art, can after once calculate the acquisition message bit pattern, take very little space and preserve described message bit pattern.
Consult Fig. 3, Fig. 4 and Fig. 5, on the foregoing description basis, among another embodiment of set-top box of the present invention, described statistical packet unit 203 comprises: compare subelement 2031 and grouping subelement 2032, described flag setting unit 204 comprises: check that subelement 2041 and mark are provided with subelement 2042, described decompression unit 208 comprises decompression subelement 2081, determines subelement 2082 and searches filling subelement 2083.
Relatively subelement 2031 is used for from first pixel, and relatively whether N gray values of pixel points be identical with N-1 gray values of pixel points in pointwise, and N is the natural number greater than 1;
Grouping subelement 2032, be used at described relatively subelement 2031 relatively after N gray values of pixel points and N-1 the gray values of pixel points, all identical in a preceding N-1 gray values of pixel points, when N gray values of pixel points and N-1 gray values of pixel points are inequality, a preceding N-1 pixel is divided into first group;
Described grouping subelement 2032, be used at described relatively subelement 2031 relatively after N gray values of pixel points and N-1 the gray values of pixel points, in a preceding N-1 pixel, the gray value of per two continuous image vegetarian refreshments is all inequality, when N-1 gray values of pixel points is identical with N gray values of pixel points, a preceding N-2 pixel is divided into first group;
After described grouping subelement 2032 has been divided described first group, N pixel or N-2 pixel are repeated above-mentioned comparison subelement and the comparison and the grouping process of the subelement that divides into groups as initial pixel, in last pixel in the bitmap all being divided into last group.
Check subelement 2041, be used for checking whether described group of gray values of pixel points be consecutive identical;
Mark is provided with subelement 2042, be used for being checked through described group of gray values of pixel points when consecutive identical at described inspection subelement 2041, give described group the consecutive identical label information of gray values of pixel points is set, and in described label information, carry the number and the pixel gray value information of pixel in described group;
Described mark is provided with subelement 2042, be used for being checked through described group of gray values of pixel points continuously not simultaneously at described inspection subelement, give described group gray values of pixel points different label information continuously is set, and in described label information, carry number and each the pixel gray value information of pixel in described group.
Decompression subelement 2081, being used for decompressing, each organizes the character bitmap of preserving to be shown;
Determine subelement 2082, be used for after described decompression subelement 2081 decompresses each group,, determine that the gray values of pixel points that comprises in described group is consecutive identical or different continuously according to described group label information;
Search and fill subelement 2083, be used for when described definite subelement 2082 determines that described group gray values of pixel points is consecutive identical, find corresponding pixel in the character bitmap to be shown after described decompression, the gray value that described label information is carried is filled in each corresponding pixel successively;
Described searching filled subelement 2083, be used for determining that at described definite subelement 2082 described group gray values of pixel points is continuous when inequality, find corresponding pixel in the character bitmap to be shown after described decompression, each pixel corresponding gray of carrying in the described label information is filled in each corresponding pixel successively.
In the embodiment of the invention, specifically described the comparison grouping process of pixel in the bitmap by comparison subelement in the statistical packet unit 203 2031 and grouping subelement 2032, by inspection subelement 2041 in the flag setting unit 204 and mark subelement 2042 is set and has specifically described mark setting up procedure, by the decompression subelement 2081 in the decompression unit 208, determine subelement 2082 and search to fill subelement 2083 and specifically described decompression process compress bitmap to described group.More detailedly illustrated that set-top box provided by the invention compares with set-top box of the prior art, can save computing time, accelerated the display speed of character to be shown.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to finish by program, this program can be stored in the computer-readable recording medium, and storage medium can comprise: ROM, RAM, disk or CD etc.
More than the processing method and the set-top box of the message bit pattern that the embodiment of the invention provided is described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. the processing method of a message bit pattern is characterized in that, comprising:
After calculating character bitmap to be shown, read the location parameter that effective image shows in the described character bitmap to be shown on screen;
From first pixel, each gray values of pixel points in the described character bitmap to be shown is added up in pointwise, with gray value consecutive identical or gray value continuously different pixels be divided into same group;
Label information is set for described each group, it is consecutive identical or different continuously that described label information is used for indicating described group of gray values of pixel points;
Preserve the label information of all groups in location parameter that described effective image shows and the described character bitmap to be shown on screen;
Compress the bitmap after described character to be shown divides into groups.
2. the processing method of message bit pattern according to claim 1, it is characterized in that, from first pixel, each gray values of pixel points in the described character bitmap to be shown is added up in pointwise, with gray value consecutive identical or gray value continuously different pixels be divided into same group step and specifically comprise:
From first pixel, relatively whether N gray values of pixel points be identical with N-1 gray values of pixel points in pointwise, and N is the natural number greater than 1;
If a preceding N-1 gray values of pixel points is all identical, N gray values of pixel points and N-1 gray values of pixel points are inequality, and a preceding N-1 pixel is divided into first group;
If in the preceding N-1 pixel, the gray value of per two continuous image vegetarian refreshments is all inequality, N-1 gray values of pixel points is identical with N gray values of pixel points, and a preceding N-2 pixel is divided into first group;
After having divided described first group, N pixel or N-2 pixel are repeated above-mentioned comparison and grouping process as initial pixel, in last pixel in the bitmap all being divided into last group.
3. the processing method of message bit pattern according to claim 1 and 2 is characterized in that, the step of label information being set for described each group specifically comprises:
Check whether gray values of pixel points is consecutive identical in described group;
If identical, give described group the consecutive identical label information of gray values of pixel points is set, and in described label information, carry the number and the pixel gray value information of pixel in described group;
If different, give described group gray values of pixel points different label information continuously is set, and in described label information, carry number and each the pixel gray value information of pixel in described group.
4. the processing method of message bit pattern according to claim 3 is characterized in that, also comprises after the step of the bitmap after the described character grouping to be shown of described compression:
Search the compress bitmap information of described character to be shown according to character to be shown;
According to the described character compression bitmap to be shown of group decompression, each gray values of pixel points in each group is filled in the pixel of described character bitmap correspondence to be shown in order;
According to the location parameter that the effective image of described character to be shown shows, show the effective image of described character to be shown on screen.
5. the processing method of message bit pattern according to claim 4, it is characterized in that, according to the group described character bitmap to be shown that decompresses, the step that each gray values of pixel points in each group is filled in order in the pixel of described character bitmap correspondence to be shown comprises:
The character bitmap of preserving in each group that decompresses to be shown;
According to described group label information, determine that the gray values of pixel points that comprises in described group is consecutive identical or different continuously;
If the gray values of pixel points in described group is consecutive identical, find corresponding pixel in the character bitmap to be shown after described decompression, the gray value that described label information is carried is filled in each corresponding pixel successively;
If the gray values of pixel points in described group is inequality continuously, find corresponding pixel in the character bitmap to be shown after described decompression, each pixel corresponding gray of carrying in the described label information is filled in each corresponding pixel successively.
6. a set-top box is characterized in that, comprising:
Computing unit is used to calculate character bitmap to be shown;
Reading unit is used for after described computing unit calculates described character bitmap to be shown, reads the location parameter that effective image shows on screen in the described character bitmap to be shown;
The statistical packet unit, be used for reading described effective image behind the location parameter that shows on the screen at described reading unit, from first pixel, each gray values of pixel points in the described character bitmap to be shown is added up in pointwise, with gray value consecutive identical or gray value continuously different pixels be divided into same group;
Flag setting unit is used for after grouping is finished in described statistical packet unit, label information is set for described each group, and it is consecutive identical or different continuously that described label information is used for indicating described group of gray values of pixel points;
Preserve the unit, be used for after described flag setting unit is provided with label information to each group, preserve the label information of all groups in location parameter that described effective image shows and the described character bitmap to be shown on screen;
Compression unit is used for after the label information of location parameter that described effective image showing on the screen and described all groups of character bitmap to be shown is preserved in described preservation unit, compresses the bitmap after the described character grouping to be shown.
7. set-top box according to claim 6 is characterized in that, described statistical packet unit comprises:
Relatively subelement is used for from first pixel, and relatively whether N gray values of pixel points be identical with N-1 gray values of pixel points in pointwise, and N is the natural number greater than 1;
The grouping subelement, be used at described relatively subelement relatively after N gray values of pixel points and N-1 the gray values of pixel points, all identical in a preceding N-1 gray values of pixel points, when N gray values of pixel points and N-1 gray values of pixel points are inequality, a preceding N-1 pixel is divided into first group;
Described grouping subelement, be used at described relatively subelement relatively after N gray values of pixel points and N-1 the gray values of pixel points, in a preceding N-1 pixel, the gray value of per two continuous image vegetarian refreshments is all inequality, when N-1 gray values of pixel points is identical with N gray values of pixel points, a preceding N-2 pixel is divided into first group;
After described grouping subelement has been divided described first group, N pixel or N-2 pixel are repeated above-mentioned comparison subelement and the comparison and the grouping process of the subelement that divides into groups as initial pixel, in last pixel in the bitmap all being divided into last group.
8. according to claim 6 or 7 described set-top box, it is characterized in that described flag setting unit comprises:
Check subelement, be used for checking whether described group of gray values of pixel points be consecutive identical;
Mark is provided with subelement, be used for being checked through described group of gray values of pixel points when consecutive identical at described inspection subelement, give described group the consecutive identical label information of gray values of pixel points is set, and in described label information, carry the number and the pixel gray value information of pixel in described group;
Described mark is provided with subelement, be used for being checked through described group of gray values of pixel points continuously not simultaneously at described inspection subelement, give described group gray values of pixel points different label information continuously is set, and in described label information, carry number and each the pixel gray value information of pixel in described group.
9. set-top box according to claim 8 is characterized in that, also comprises:
Search the unit, be used for after described compression unit compresses described character bitmap to be shown, searching the compress bitmap information of described character to be shown according to character to be shown;
Decompression unit, be used for described search the unit and find the compress bitmap information of described character to be shown after, according to the described character compression bitmap to be shown of group decompression, each gray values of pixel points in each group is filled in the pixel of described character bitmap correspondence to be shown in order;
Display unit is used for after described decompression unit is finished the decompression of described bitmap, according to the location parameter that the effective image of described character to be shown shows on screen, shows the effective image of described character to be shown.
10. set-top box according to claim 9 is characterized in that, described decompression unit comprises:
The decompression subelement, being used for decompressing, each organizes the character bitmap of preserving to be shown;
Determine subelement, be used for after described decompression subelement decompresses each group,, determine that the gray values of pixel points that comprises in described group is consecutive identical or different continuously according to described group label information;
Search the filling subelement, be used for when described definite subelement determines that described group gray values of pixel points is consecutive identical, find corresponding pixel in the character bitmap to be shown after described decompression, the gray value that described label information is carried is filled in each corresponding pixel successively;
The described filling subelement of searching, be used for determining that at described definite subelement described group gray values of pixel points is continuous when inequality, find corresponding pixel in the character bitmap to be shown after described decompression, each pixel corresponding gray of carrying in the described label information is filled in each corresponding pixel successively.
CN2011102554516A 2011-08-31 2011-08-31 Processing method of bitmap information and set top box Pending CN102281469A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102554516A CN102281469A (en) 2011-08-31 2011-08-31 Processing method of bitmap information and set top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102554516A CN102281469A (en) 2011-08-31 2011-08-31 Processing method of bitmap information and set top box

Publications (1)

Publication Number Publication Date
CN102281469A true CN102281469A (en) 2011-12-14

Family

ID=45106596

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102554516A Pending CN102281469A (en) 2011-08-31 2011-08-31 Processing method of bitmap information and set top box

Country Status (1)

Country Link
CN (1) CN102281469A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984517A (en) * 2012-11-21 2013-03-20 华为技术有限公司 Method, device, and system for video data compression and decompression
CN104836974A (en) * 2015-05-06 2015-08-12 京东方科技集团股份有限公司 Video player, display device, video playing system and video playing method
CN110164399A (en) * 2019-07-01 2019-08-23 深圳市卡迪智能科技有限公司 8 bit depth type matrix storage optimization methods
WO2022042053A1 (en) * 2020-08-31 2022-03-03 京东方科技集团股份有限公司 Data processing method and system, and electronic device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938650A (en) * 2009-06-25 2011-01-05 夏普株式会社 Image compressing apparatus, image compressing method, image decompressing apparatus, image decompressing method, image forming apparatus

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938650A (en) * 2009-06-25 2011-01-05 夏普株式会社 Image compressing apparatus, image compressing method, image decompressing apparatus, image decompressing method, image forming apparatus

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
王向阳: "一种新的BMP图像无损压缩编码方法", 《微计算机应用》, 30 November 2001 (2001-11-30) *
籍俊伟; 林小竹: "图像编码中的RLE方法研究", 《石油化工高等学校学报》, 31 March 2004 (2004-03-31), pages 85 - 86 *
颜士刚: "16色BMP格式图像的压缩算法改进", 《河北大学学报》, 31 December 1998 (1998-12-31) *
高玉瑞; 王绍章;: "一种改进的行程编码方法", 《电脑知识与技术》, 16 June 2009 (2009-06-16) *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984517A (en) * 2012-11-21 2013-03-20 华为技术有限公司 Method, device, and system for video data compression and decompression
CN102984517B (en) * 2012-11-21 2016-03-30 华为技术有限公司 The method of video data compression and decompression, device, equipment and system
CN104836974A (en) * 2015-05-06 2015-08-12 京东方科技集团股份有限公司 Video player, display device, video playing system and video playing method
US10225514B2 (en) 2015-05-06 2019-03-05 Boe Technology Group Co., Ltd. Video player, a display apparatus, a video playing system and a video playing method
CN104836974B (en) * 2015-05-06 2019-09-06 京东方科技集团股份有限公司 Video player, display device, audio/video player system and video broadcasting method
CN110164399A (en) * 2019-07-01 2019-08-23 深圳市卡迪智能科技有限公司 8 bit depth type matrix storage optimization methods
WO2022042053A1 (en) * 2020-08-31 2022-03-03 京东方科技集团股份有限公司 Data processing method and system, and electronic device

Similar Documents

Publication Publication Date Title
EP3035683A1 (en) Method and device for image compression, having enhanced matching of fixed-width, variable-length pixel sample strings
US9131227B2 (en) Computing device with video analyzing function and video analyzing method
CN102281469A (en) Processing method of bitmap information and set top box
CN103139567B (en) The method and apparatus of a kind of image compression and decompression
CN104125458A (en) Lossless stored data compression method and device
KR20180077060A (en) Method and apparatus for encoding and decoding lists of pixels
US20110176739A1 (en) Pixel Block Processing
CN102263946B (en) Techniques for storing and retrieving pixel data
CN116244313A (en) JSON data storage and access method, device, computer equipment and medium
CN103780263A (en) Device and method of data compression and recording medium
US20130144850A1 (en) Stream compression and decompression
CN105957476B (en) E-book display panel drive method and e-book
CN102176205A (en) File format for storage of chain code image sequence and decoding algorithm
CN104883477A (en) Video data predistortion processing method and apparatus, and head-mounted display
US10418002B2 (en) Merged access units in frame buffer compression
CN105791819B (en) The decompression method and device of a kind of frame compression method of image, image
US9066079B2 (en) Method of storing a content of a three-dimensional image
CN102708191A (en) Word stock coding and decoding method capable of saving memory
CN110956670A (en) Multi-mode self-adaptive Z value compression algorithm based on depth migration
CN102708109B (en) Raster data reading method and device and raster data writing method and device
CN104809747A (en) Statistical method of image histogram and system thereof
CN105657473A (en) Data processing method and device
CN111901600B (en) Video compression method with low loss
CN110689590B (en) Compression coding method and device for map and mobile terminal equipment
CN103238175A (en) Image processing device, image processing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1163994

Country of ref document: HK

C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20111214