CN101257590B - Coding, decoding method and device, display system - Google Patents

Coding, decoding method and device, display system Download PDF

Info

Publication number
CN101257590B
CN101257590B CN2008101027843A CN200810102784A CN101257590B CN 101257590 B CN101257590 B CN 101257590B CN 2008101027843 A CN2008101027843 A CN 2008101027843A CN 200810102784 A CN200810102784 A CN 200810102784A CN 101257590 B CN101257590 B CN 101257590B
Authority
CN
China
Prior art keywords
current pixel
unit
synchronous mark
encoded radio
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
CN2008101027843A
Other languages
Chinese (zh)
Other versions
CN101257590A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2008101027843A priority Critical patent/CN101257590B/en
Publication of CN101257590A publication Critical patent/CN101257590A/en
Application granted granted Critical
Publication of CN101257590B publication Critical patent/CN101257590B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of this invention relates to a method, an apparatus and a display system for encoding and decoding, wherein, the coding method includes: encoding the graphic data according to display sequence, obtaining encoding data and storing the data. The decoding method includes: reading the encoding data, decoding the data, obtaining decoding data and displaying the decoding data. The encoding apparatus includes a encoding module used for encoding the graphic data according to display sequence, and obtaining encoding data; and a memory module used for storing the encoding data. The decoding device includes a decoding module used for reading the encoding data, decoding the data and obtaining decoding data; and a displaying module used for displaying the decoding data. The invention reads the encoding data according to displaying sequence and decodes the encoding data, thus reduces band-width occupied by the system, reduces memory space and enhances system performance.

Description

Coding, coding/decoding method and device, display system
Technical field
The embodiment of the invention relates to the image field, relates in particular to a kind of coding, coding/decoding method and device, display system.
Background technology
For a lot of these diji of client (for example top box of digital machine), need in local internal memory, preserve a large amount of graph datas, this graph data mainly adopts the data format of index data form, 15 bits (bit) or 24bit.The image displaying quality of the data format of employing 24bit is best, but shared memory headroom is bigger, has increased the cost of this diji of client; Adopt data format or the index data form of 15bit, saved the memory space of local internal memory, but reduced the display quality of image.Along with the user is more and more higher to the requirement of image displaying quality, the data format of 15bit or index data form can not satisfy the demands, and simultaneously in order to save memory space, make the graphics data compression algorithm arise at the historic moment.
As shown in Figure 1, schematic diagram for image display system in the prior art, graph data is stored in the local internal memory 11, its data format comprises the data format of index data form, 16bit, 24bit and 32bit, when calling certain interface, video output unit (Video Output Unit, hereinafter to be referred as: VOU) 12 from local internal memory 11, read graph data, after treatment, sending to display 13 shows.If adopt the data format of index data form or 16bit, reduce memory space, and reduced bandwidth, improved the performance of system, but the information transmitted amount reduces greatly, has reduced the display quality of image; If adopt the data format of 24bit or 32bit, then increased the memory space of local internal memory 11, and increased bandwidth.
As shown in Figure 2, schematic diagram for another image display system in the prior art, on this diji of client, being stored in after the graphics data compression in the local internal memory 21, when calling certain interface, at first from local internal memory 21, read corresponding figure packed data earlier, utilize graphic decoder 24 that the figure packed data is decoded, be stored in then in the local internal memory 21, utilize VOU22 to read decoded graph data, send on the display 23 and show with behavior unit.This system has taken a large amount of bandwidth, and needing in image display process has influenced the performance of system through three bus operations; Because decoded view data also need be stored in the local internal memory 21, its data volume is bigger, has taken very big memory space; Existing compression algorithm is complicated, and this compression algorithm is lossy compression, has reduced image displaying quality.
Summary of the invention
The embodiment of the invention provides a kind of coding method and device, to reduce shared system bandwidth, reduces memory space, and the performance of system is provided.
The embodiment of the invention provides a kind of coding/decoding method and device, to reduce shared system bandwidth, reduces memory space, and the performance of system is provided.
The embodiment of the invention provides a kind of display system, to reduce shared system bandwidth, reduces memory space, and the performance of system is provided.
The embodiment of the invention provides a kind of coding method, comprising:
With the pixel is that graph data is encoded by unit, when being line scanning during as if demonstration, the coded data of one-row pixels is formed the coding unit;
Store described coded data.
The embodiment of the invention provides a kind of coding/decoding method, comprising:
Reading with the pixel is the graph data that unit encodes, and is that unit decodes with the pixel, obtains decoded data;
With behavior unit, show described decoded data.
The embodiment of the invention provides a kind of code device, comprising:
Coding module, being used for the pixel is that graph data is encoded by unit, when being line scanning during as if demonstration, the coded data of one-row pixels is formed the coding unit;
Memory module is used to store described coded data.
The embodiment of the invention provides a kind of decoding device, comprising:
Decoder module, being used to read with the pixel is the graph data that unit encodes, and is that unit decodes with the pixel, obtains decoded data;
First display module is used for behavior unit, shows described decoded data.
The embodiment of the invention provides a kind of display system, comprises encoding apparatus and decoding apparatus;
Wherein said code device comprises:
Coding module, being used for the pixel is that graph data is encoded by unit, when being line scanning during as if demonstration, the coded data of one-row pixels is formed the coding unit;
Memory module is used to store described coded data.
Described decoding device comprises:
Decoder module, being used to read with the pixel is the graph data that unit encodes, and is that unit decodes with the pixel, obtains decoded data;
First display module is used for behavior unit, shows described decoded data.
Coding method that the embodiment of the invention provides and device by encoding according to DISPLAY ORDER, can directly show when making decoding, do not need to store in the internal memory after the decoding, reduce shared system bandwidth, reduced memory space, improved the performance of system.
Coding/decoding method that the embodiment of the invention provides and device by reading the graph data of encoding according to DISPLAY ORDER, do not need to store in the internal memory after decoding, can directly show, reduce shared system bandwidth, reduced memory space, improved the performance of system.
The display system that the embodiment of the invention provides, by encoding according to DISPLAY ORDER, and read the graph data of encoding according to DISPLAY ORDER, after decoding, do not need to store in the internal memory, can directly show, reduce shared system bandwidth, reduced memory space, improved the performance of system.
Description of drawings
Fig. 1 is the schematic diagram of image display system in the prior art;
Fig. 2 is the schematic diagram of another image display system in the prior art;
Fig. 3 is the flow chart of the embodiment of the invention one coding method;
Fig. 4 is the flow chart of the embodiment of the invention two coding methods;
Fig. 5 is the flow chart of the embodiment of the invention one coding/decoding method;
Fig. 6 is the flow chart of the embodiment of the invention two coding/decoding methods;
Fig. 7 is the schematic diagram of first coding module in the embodiment of the invention code device;
Fig. 8 is the schematic diagram of first decoder module in the embodiment of the invention decoding device;
Fig. 9 is the schematic diagram of embodiment of the invention display system.
Embodiment
Below by drawings and Examples, the technical scheme of the embodiment of the invention is described in further detail.
As shown in Figure 3, the flow chart for the embodiment of the invention one coding method specifically comprises the steps:
Step 101, graph data is encoded, obtain coded data according to DISPLAY ORDER;
Step 102, memory encoding data.
For this diji of client as teaching machine top box and so on, adopt the mode of line scanning to come the display graphics data, therefore, present embodiment can be unit with the pixel when graph data is encoded.
Embodiment of the invention coding method is further introduced the technical scheme of the embodiment of the invention so that the RGB888 graph data is encoded to example.
As shown in Figure 4, flow chart for the embodiment of the invention two coding methods, in the present embodiment RGB888 image being carried out a subdifferential handles, with the differential value of pixel as the pixel characteristic value, with 3 horizontal pixels is example, be respectively a pixel, current pixel and next pixel, the source code value of its pixel (being pixel value) is used P (n-1) respectively, P (n) and P (n+1) represent, then the current pixel differential value is P (n-1)-P (n), the differential value of the next pixel of current pixel is P (n)-P (n+1), that is to say that the current pixel characteristic value is the difference of the source code value of the source code value of current pixel and previous pixel; In the present embodiment, for the ease of graph data is effectively compressed, in coded data, be provided with synchronous mark position and element marking value, wherein the synchronous mark position can comprise three numerical value, be respectively first synchronous mark " FEh " (taking 8bit), second synchronous mark " FFh " (taking 8bit), the 3rd synchronous mark " 10 " (taking 2bit); Wherein the element marking value is " 0 " (taking 1bit); Present embodiment is with the 3bit current pixel differential value of encoding, and is as shown in table 1:
The correspondence table of table 1 current pixel differential value and feature coding value
The current pixel differential value The feature coding value
+3 011
+2 010
+1 001
0 000
-1 100
-2 101
-3 110
When calculating the current pixel differential value, the table of comparisons 1 finds out characteristic of correspondence encoded radio with it, and it is write in the coded data.
Further, step 101 can specifically comprise the steps:
Step 201, according to next pixel differential value, assignment is carried out in the synchronous mark position, and the source code value of synchronous mark position and current pixel is write in the coded data as encoded radio;
The source code value of current pixel is meant the pixel value of the current pixel of 8bit.
Step 202, with next pixel as current pixel, calculate the current pixel differential value, judge that the current pixel differential value is whether in prescribed limit, if then execution in step 203; Otherwise, execution in step 201;
In the present embodiment, be specially and judge that current differential value is whether in the scope of [3 ,+3].
Step 203, according to synchronous mark position and current pixel differential value, generate encoded radio, write in the coded data;
Step 204, execution in step 202 are all encoded until all graph datas.
Wherein step 201 can specifically comprise:
The differential value of the next pixel of step 2011, calculating current pixel;
Step 2012, judge whether next pixel differential value is 0, if then execution in step 2013; Otherwise, execution in step 2014;
Step 2013, be " FEh " with synchronous mark position assignment, execution in step 2015;
Step 2014, be " FFh " with synchronous mark position assignment, execution in step 2015;
Step 2015, synchronous mark position and source code value are write in the coded data as encoded radio.
Wherein step 203 can specifically comprise:
Step 2031, judge whether the synchronous mark position is " FEh ", if then execution in step 2033; Otherwise, execution in step 2032;
Step 2032, according to current pixel differential value generating feature encoded radio, write in the coded data execution in step 204;
This step is specially: the table of comparisons 1, search current pixel differential value characteristic of correspondence encoded radio, and write in the coded data.
Step 2033, judge whether the current pixel differential value is 0; If then execution in step 2034; Otherwise, execution in step 2035;
Step 2034, generation current pixel mark value are " 0 ", and it are write in the coded data execution in step 204 as encoded radio;
Step 2035, be " 10 ", and itself and the encoded radio that generates according to the current pixel differential value are write in the coded data execution in step 204 synchronous mark position assignment.
For instance, if the source code value of first three of certain a graph data pixel is represented with P1, P2 and P3 respectively, wherein P1=08h, P2=08h, P3=07h, then according to step 2011, current pixel is first pixel (the source code value is P1), and obtaining next pixel (the source code value is P2) differential value is P1-P2=08h-08h=0, jumps to step 2013 according to step 2012, the value that obtains the synchronous mark position is " FEh ", obtains coded data " FE08h " according to step 2015; According to step 202, current pixel is second pixel (the source code value is P2), obtaining the current pixel differential value is P1-P2=08h-08h=0, because 0 in prescribed limit, promptly [3, + 3] in the scope, redirect execution in step 2031 is because this moment, the synchronous mark position was " FEh ", redirect execution in step 2033, judging the current pixel differential value is 0, jump procedure 2034, and generating the element marking value is " 0 ", write in the coded data, then this moment, coded data was " FE08h 0 ", redirect execution in step 204, and then redirect execution in step 202; According to step 202, current pixel is the 3rd pixel (the source code value is P3), and the current pixel differential value is P2-P3=08h-07h=1, because 1 in prescribed limit, jump procedure 2031, judge the synchronous mark position and be " FEh ", jump procedure 2033 is according to step 2033, judging the current pixel differential value is not 0, jump procedure 2035 is " 10 " with synchronous mark position assignment, and obtains coded data for " FE08h0 10 001 ".
Embodiment of the invention coding method is that unit encodes with the pixel, when being line scanning during as if demonstration, the coded data of one-row pixels can be formed a coding unit, thus direct demonstration the after being convenient to decode; If when being not line scanning when showing, also can encode not according to the coding unit that the coded data of one-row pixels is formed.
Present embodiment can directly show when making decoding by encoding according to DISPLAY ORDER, does not need to store in the internal memory after the decoding, has reduced shared system bandwidth, has reduced memory space, has improved the performance of system; The present embodiment coded data is compressed to about 40% of graph data, saves about 40% memory space; In addition, coded data obtains through lossless compressiong, compares with the employing 16bit shown in Figure 2 or the prior art of index data form, and the display quality of figure is significantly improved.
As shown in Figure 5, the flow chart for the embodiment of the invention one coding/decoding method specifically comprises the steps:
Step 301, read the graph data of encoding, and decode, obtain decoded data according to DISPLAY ORDER;
Step 302, demonstration decoded data.
For this diji of client as teaching machine top box and so on, adopt the mode of line scanning to come the display graphics data, therefore, present embodiment can be a unit with the pixel when graph data is decoded, and decodes according to DISPLAY ORDER; Before step 302, can also comprise, decoded data is deposited in the buffer memory, like this, when demonstration is not line scanning, can deposit in the buffer memory direct demonstration the after being convenient to decode in carrying out coded data with row coding unit.
Embodiment of the invention coding/decoding method is further introduced the technical scheme of the embodiment of the invention so that the RGB888 graph data is decoded as example.
As shown in Figure 6, be the flow chart of the embodiment of the invention two coding/decoding methods, the present embodiment coding/decoding method is directed to the embodiment of the invention two coding methods, and corresponding with it, step 301 specifically comprises the steps:
Step 401, read the synchronous mark position;
Step 402, read the source code value of current pixel, write in the decoded data;
Step 403, with next pixel as current pixel, according to the synchronous mark position, read the encoded radio of current pixel;
Step 404, when the encoded radio of current pixel is current pixel differential value characteristic of correspondence encoded radio, then, obtain the decode value of current pixel and write in the decoded data execution in step 403 according to the encoded radio and the described source code value of current pixel; When the encoded radio of current pixel is not current pixel differential value characteristic of correspondence encoded radio, assignment is carried out in the synchronous mark position, execution in step 405;
Step 405, execution in step 402 are all decoded until described graph data.
Wherein step 403 and step 404 can specifically comprise:
Step 4031, with next pixel as current pixel, judge whether the synchronous mark position is " FFh ", if then execution in step 4032; Otherwise, execution in step 4035;
Step 4032, read the encoded radio of current pixel,, judge whether encoded radio is current pixel differential value characteristic of correspondence encoded radio, if then execution in step 4033 by look-up table 1; Otherwise, execution in step 4034;
Step 4033, according to current pixel differential value and source code value, obtain the decode value of current pixel and write in the decoded data, with next pixel as current pixel, execution in step 4032;
Because the current pixel differential value is the difference of source code value of source code value and the previous pixel of current pixel, therefore can be according to the pixel value of source code value and difference acquisition current pixel.
Step 4034, according to the encoded radio of current pixel, assignment is carried out in the synchronous mark position, execution in step 405;
Step 4035, according to the encoded radio and the source code value of current pixel, obtain the decode value of current pixel and write in the decoded data;
Step 4036, with next pixel as current pixel, read the encoded radio of current pixel, judge whether encoded radio is current pixel mark value " 0 ", if then execution in step 4035; Otherwise, execution in step 4037;
Wherein, whether the step of judgement can also be 0 for first bit of judging encoded radio.
Step 4037, judge whether encoded radio comprises the 3rd synchronous mark " 10 ", if then execution in step 4032; Otherwise, execution in step 4038;
Wherein, whether the step of judgement can also be 0 for second bit of judging encoded radio.
Step 4038, assignment is carried out in the synchronous mark position, execution in step 405.
This step is to be " FEh " in the synchronous mark position, and preceding two bits of the encoded radio of current pixel are to be carried out under 1 the situation, by above-mentioned coding method as can be known, if the current pixel differential value in prescribed limit and the synchronous mark position be " FEh ", can generate current pixel mark value and the 3rd synchronous mark (" 0 " or " 10 "), therefore can determine that the current pixel differential value is not in prescribed limit at this moment, preceding two bits of the encoded radio of current pixel are preceding two bits of synchronous mark position, then will be according to encoded radio to synchronous mark position assignment again.
For instance, if obtain coded data for " FE08h 0 10 001 ", according to step 401, know that the synchronous mark position is " FEh ", according to step 402, read the source code value " 08h " of current pixel, obtain decoded data " 08h ", according to step 4031, judge the synchronous mark position for " FEh ", jump procedure 4035, according to the encoded radio of current pixel be " 0 " as can be known, the source code value of current pixel is identical with the source code value of previous pixel, therefore obtains decoded data " 08h 08h "; According to step 4036, judge that first bit of encoded radio is " 1 ", rather than " 0 ", jump procedure 4037, judge encoded radio and comprise the 3rd synchronous mark " 10 ", jump procedure 4032, the encoded radio that reads current pixel is " 001 ", the table of comparisons 1, judging this encoded radio is 1 characteristic of correspondence encoded radio, and jump procedure 4033 is according to the source code value " 08h " and the difference 1 of previous pixel, the source code value that obtains current pixel is 07h, is " 08h 08h 07h " thereby obtain decoded data.
Present embodiment since not need the decoding after with the decoded data write memory in, reduced shared system space, compare with prior art shown in Figure 1, saved 70% system bandwidth, compare with the prior art of employing 24bit data format shown in Figure 2, saved 40% system bandwidth; The coding/decoding method of present embodiment, its graph data is compressed to about 40%, saves about 40% memory space; Because coding/decoding method is simpler, has reduced hard-wired difficulty, has saved logical resource; Present embodiment can not need extra row cache, has saved the quantity of internal RAM, has also improved the yield of chip; In addition, the graph data that reads of present embodiment obtains through lossless compressiong, compares with the employing 16bit shown in Figure 2 or the prior art of index data form, and the display quality of figure is significantly improved.
Embodiment of the invention code device specifically comprises: coding module, be used for graph data being encoded according to DISPLAY ORDER, and obtain coded data; Memory module is used to store described coded data.
Wherein coding module can be first coding module, and being used for the pixel is unit, according to DISPLAY ORDER graph data is encoded, and obtains coded data.
As shown in Figure 7, the schematic diagram for first coding module in the embodiment of the invention code device can comprise: lock unit 41 is used for when judging the current pixel characteristic value not in prescribed limit the time assignment being carried out in the synchronous mark position; Eigenvalue calculation unit 42 is used to calculate current pixel characteristic value and next pixel characteristic value; First judging unit 43 is used to judge that described current pixel characteristic value is whether in prescribed limit; Coding unit 44, be used for the source code value of synchronous mark position and current pixel is write coded data as encoded radio, and when judging described current pixel characteristic value in prescribed limit the time, generate encoded radio according to described synchronous mark position and described current pixel characteristic value, and write coded data.
Wherein lock unit 41 can comprise: second judging unit 411 is used to judge whether the next pixel characteristic value of obtaining according to described eigenvalue calculation unit is 0; The first assignment unit 412 is used for when judging next pixel characteristic value and be 0, is first synchronous mark with synchronous mark position assignment; When judging next pixel characteristic value and be not 0, be second synchronous mark with synchronous mark position assignment.
Wherein coding unit 44 can comprise: the 3rd judging unit 441 is used to judge whether described synchronous mark position is first synchronous mark; First coding unit 442 is used for generating encoded radio according to described current pixel characteristic value when judging described synchronous mark position and be not first synchronous mark, writes in the coded data; The 4th judging unit 443 is used to judge whether described current pixel characteristic value is 0; Second coding unit 444 is used for generating the current pixel mark value when judging described current pixel characteristic value and be 0, and described current pixel mark value is write in the coded data as encoded radio; When judging described current pixel characteristic value and be not 0, be the 3rd synchronous mark with synchronous mark position assignment, and described current synchronous mark position and the encoded radio that generates according to described current pixel characteristic value are write in the coded data.
Embodiment of the invention code device is that unit encodes with the pixel, when being line scanning during as if demonstration, the coded data of one-row pixels can be formed a coding unit, thus direct demonstration the after being convenient to decode; If when being not line scanning when showing, also can encode not according to the coding unit that the coded data of one-row pixels is formed.
Present embodiment can directly show when making decoding by encoding according to DISPLAY ORDER, does not need to store in the internal memory after the decoding, has reduced shared system bandwidth, has reduced memory space, has improved the performance of system; Show that through experiment the present embodiment coded data is compressed to about 40% of graph data, can save the memory space about 40%; In addition, coded data obtains through lossless compressiong, compares with the employing 16bit shown in Figure 2 or the prior art of index data form, and the display quality of figure is significantly improved.
Embodiment of the invention decoding device specifically comprises: decoder module, and be used to read the graph data of encoding, and decode according to DISPLAY ORDER, obtain decoded data; Display module is used to show decoded data.
Wherein decoder module can be first decoder module, be used to read the graph data of encoding according to DISPLAY ORDER, and with the pixel unit, decode according to DISPLAY ORDER, obtain decoded data; Display module can be specially first display module, is used for behavior unit, shows decoded data.
As shown in Figure 8, the schematic diagram for first decoder module in the embodiment of the invention decoding device can comprise: synchronous reading unit 51 is used to read described synchronous mark position; Encoded radio reading unit 52 is used for reading the encoded radio of current pixel according to described synchronous mark position; Decoding unit 53, be used to read the source code value of described current pixel, write in the decoded data, and when the encoded radio of described current pixel is current pixel characteristic value corresponding codes value, then according to the encoded radio and the described source code value of described current pixel, obtain the decode value of current pixel and write in the decoded data; The 3rd assignment unit 54 is used for when the encoded radio of described current pixel is not current pixel characteristic value corresponding codes value assignment being carried out in described synchronous mark position.
Wherein decoding unit 53 can comprise: the 5th judging unit 531 is used to judge whether described synchronous mark position is second synchronous mark; The 6th judging unit 532 is used for judging whether the encoded radio of the current pixel that encoded radio reading unit 52 obtains is current pixel characteristic value corresponding codes value when judging described synchronous mark position and be second synchronous mark; First decoding unit 533 when being used to judge described encoded radio and being current pixel characteristic value corresponding codes value, according to described current pixel characteristic value and described source code value, obtains the decode value of current pixel and writes in the decoded data; The 7th judging unit 534 is used to judge whether the encoded radio of current pixel is the current pixel mark value; Second decoding unit 535, be used for when judging described synchronous mark position and be not second synchronous mark or when judging described current pixel marker bit and being the first pixel sign, according to the encoded radio and the described source code value of described current pixel, obtain the decode value of current pixel and write in the decoded data; The 8th judging unit 536 is used for when the encoded radio of judging current pixel is not the current pixel mark value, judges whether the encoded radio of current pixel comprises the 3rd synchronous mark; When comprising the 3rd synchronous mark in the encoded radio of judging described current pixel, then judge whether comprise the current pixel characteristic value in the described encoded radio by described the 6th judging unit 532; The 4th assignment unit 537 is used for when the encoded radio of judging described current pixel does not comprise the 3rd synchronous mark, and assignment is carried out in described synchronous mark position.
The current pixel mark value can be " 0 ", and the 3rd synchronous mark can be " 10 ", and above-mentioned the 7th judging unit 534 can be specially the 9th judging unit, is used to judge whether first bit of the encoded radio of current pixel is 0; The 8th judging unit 536 can be specially the tenth judging unit, is used to judge whether second bit of the encoded radio of current pixel is 0.
Present embodiment can also comprise buffer module, is used for the described decoded data of buffer memory.When demonstration is not line scanning in, the direct demonstration after being convenient to decode can be deposited in the buffer module with carrying out coded data with row coding unit.
Present embodiment since not need the decoding after with the decoded data write memory in, reduced shared system space, show through experiment, compare with prior art shown in Figure 1, can save 70% system bandwidth, compare with the prior art of employing 24bit data format shown in Figure 2, can save 40% system bandwidth; The decoding device of present embodiment, its graph data is compressed to about 40%, saves about 40% memory space; Because decoding device is simpler, has reduced hard-wired difficulty, has saved logical resource; Present embodiment can not need extra row cache, has saved the quantity of internal RAM, has also improved the yield of chip; In addition, the graph data that reads of present embodiment obtains through lossless compressiong, compares with the employing 16bit shown in Figure 2 or the prior art of index data form, and the display quality of figure is significantly improved.
As shown in Figure 9, the schematic diagram for embodiment of the invention display system comprises encoding apparatus and decoding apparatus, and wherein code device can comprise: coding module 31, be used for graph data being encoded according to DISPLAY ORDER, and obtain coded data; Memory module 32 is used for the memory encoding data.Decoding device can comprise: decoder module 33, and be used to read the graph data of encoding, and decode according to DISPLAY ORDER, obtain decoded data; Display module 34 is used to show described decoded data.
Further, embodiment of the invention display system can comprise arbitrary decoding device described in arbitrary code device described in the embodiment of the invention code device and the embodiment of the invention decoding device.
Present embodiment since not need the decoding after with the decoded data write memory in, reduced shared system space, show through experiment, compare with prior art shown in Figure 1, can save the system bandwidth about 70%, compare with the prior art of employing 24bit data format shown in Figure 2, can save the system bandwidth about 40%; The display system of present embodiment, its graph data is compressed to about 40%, saves about 40% memory space; Because decoding device is simpler, has reduced hard-wired difficulty, has saved logical resource; Present embodiment can not need extra row cache, has saved the quantity of internal RAM, has also improved the yield of chip; In addition, the graph data that reads of present embodiment obtains through lossless compressiong, compares with the employing 16bit shown in Figure 2 or the prior art of index data form, and the display quality of figure is significantly improved.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is when carrying out, execution comprises the step of said method embodiment, and aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to the technical scheme of the explanation embodiment of the invention, is not intended to limit; Although the embodiment of the invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of each embodiment technical scheme of the embodiment of the invention.

Claims (21)

1. coding method is characterized in that comprising:
With the pixel is that graph data is encoded by unit, when being line scanning during as if demonstration, the coded data of one-row pixels is formed the coding unit;
Store described coded data.
2. coding method according to claim 1 is characterized in that, described is that unit encodes graph data and comprises with the pixel:
Step 11, assignment is carried out in the synchronous mark position, and the source code value of described synchronous mark position and current pixel is write in the coded data as encoded radio;
Step 12, with next pixel as current pixel, calculate the current pixel characteristic value, judge that described current pixel characteristic value is whether in prescribed limit, if then execution in step 13; Otherwise, execution in step 11;
Step 13, generate encoded radio, and write in the coded data according to described synchronous mark position and described current pixel characteristic value;
Step 14, execution in step 12 are all encoded until all graph datas.
3. coding method according to claim 2 is characterized in that, described step 11 comprises:
Step 111, the next pixel characteristic value of calculating;
Step 112, judge whether next pixel characteristic value is 0, if then execution in step 13; Otherwise, execution in step 114;
Step 113, be first synchronous mark with synchronous mark position assignment, execution in step 115;
Step 114, be second synchronous mark with synchronous mark position assignment, execution in step 115;
Step 115, the source code value of described synchronous mark position and current pixel is write in the coded data as encoded radio.
4. coding method according to claim 3 is characterized in that, described step 13 comprises:
Step 131, judge whether described synchronous mark position is first synchronous mark, if then execution in step 133; Otherwise, execution in step 132;
Step 132, generate encoded radio, write in the coded data execution in step 14 according to described current pixel characteristic value;
Step 133, judge whether described current pixel characteristic value is 0; If then execution in step 134; Otherwise, execution in step 135;
Step 134, generate the current pixel mark value, and described current pixel mark value is write in the coded data execution in step 14 as encoded radio;
Step 135, be the 3rd synchronous mark, and described synchronous mark position and the encoded radio that generates according to described current pixel characteristic value are write in the coded data execution in step 14 synchronous mark position assignment.
5. according to claim 2,3 or 4 arbitrary described coding methods, it is characterized in that the difference of the source code value that described current pixel characteristic value is a current pixel and the source code value of previous pixel.
6. coding/decoding method is characterized in that comprising:
Reading with the pixel is the graph data that unit encodes, and is that unit decodes with the pixel, obtains decoded data;
With behavior unit, show described decoded data.
7. coding/decoding method according to claim 6 is characterized in that, described reading with the pixel is the graph data that unit encodes, and is that unit decodes and comprises with the pixel:
Step 21, read the synchronous mark position;
Step 22, read the source code value of current pixel, write in the decoded data;
Step 23, with next pixel as current pixel, according to described synchronous mark position, read the encoded radio of current pixel;
Step 24, when the encoded radio of described current pixel is current pixel characteristic value corresponding codes value, then, obtain the decode value of current pixel and write in the decoded data execution in step 23 according to the encoded radio and the described source code value of described current pixel;
When the encoded radio of described current pixel is not current pixel characteristic value corresponding codes value, assignment is carried out in described synchronous mark position, execution in step 25;
Step 25, execution in step 22 are all decoded until described graph data.
8. coding/decoding method according to claim 7 is characterized in that, described step 23 and step 24 comprise:
Step 231, with next pixel as current pixel, judge whether described synchronous mark position is second synchronous mark, if then execution in step 232; Otherwise, execution in step 235;
Step 232, read the encoded radio of current pixel, judge whether described encoded radio is current pixel characteristic value corresponding codes value, if then execution in step 233; Otherwise, execution in step 234;
Step 233, according to described current pixel characteristic value and described source code value, obtain the decode value of current pixel and write in the decoded data;
Step 234, according to the encoded radio of current pixel, assignment is carried out in described synchronous mark position, execution in step 25;
Step 235, according to the encoded radio and the described source code value of described current pixel, obtain the decode value of current pixel and write in the decoded data;
Step 236, with next pixel as current pixel, read the encoded radio of described current pixel, judge whether described encoded radio is the current pixel mark value, if then execution in step 235; Otherwise, execution in step 237;
Step 237, judge whether described encoded radio comprises the 3rd synchronous mark, if then execution in step 232; Otherwise, execution in step 238;
Step 238, assignment is carried out in described synchronous mark position, execution in step 25.
9. coding/decoding method according to claim 8 is characterized in that, described current pixel mark value is " 0 ", and described the 3rd synchronous mark is " 10 ";
Described step 236 is specially: next pixel as current pixel, is read the encoded radio of described current pixel, judge whether first bit of described encoded radio is 0, if then execution in step 235; Otherwise, execution in step 237;
Described step 237 is specially: whether second bit of judging described encoded radio is 0; Not that then execution in step 232; Otherwise, execution in step 238.
10. according to claim 7,8 or 9 arbitrary described coding/decoding methods, it is characterized in that the difference of the source code value that described current pixel characteristic value is a current pixel and the source code value of previous pixel.
11. coding/decoding method according to claim 6 is characterized in that, also comprises before the described demonstration decoded data: decoded data is deposited in the buffer memory.
12. a code device is characterized in that comprising:
Coding module, being used for the pixel is that graph data is encoded by unit, when being line scanning during as if demonstration, the coded data of one-row pixels is formed the coding unit;
Memory module is used to store described coded data.
13. code device according to claim 12 is characterized in that, described coding module comprises:
Lock unit is used for assignment is carried out in the synchronous mark position;
The eigenvalue calculation unit is used to calculate current pixel characteristic value and next pixel characteristic value;
First judging unit is used to judge that described current pixel characteristic value is whether in prescribed limit;
Coding unit, be used for the source code value of synchronous mark position and current pixel is write coded data as encoded radio, and, generate encoded radio according to described synchronous mark position and described current pixel characteristic value, and write coded data when judging described current pixel characteristic value in prescribed limit the time.
14. code device according to claim 13 is characterized in that, described lock unit comprises:
Second judging unit is used to judge whether the next pixel characteristic value of obtaining according to described eigenvalue calculation unit is 0;
The first assignment unit is used for when judging next pixel characteristic value and be 0, is first synchronous mark with synchronous mark position assignment; When judging next pixel characteristic value and be not 0, be second synchronous mark with synchronous mark position assignment.
15. code device according to claim 14 is characterized in that, described coding unit comprises:
The 3rd judging unit is used to judge whether described synchronous mark position is first synchronous mark;
First coding unit is used for generating encoded radio according to described current pixel characteristic value when judging described synchronous mark position and be not first synchronous mark, writes in the coded data;
The 4th judging unit is used to judge whether described current pixel characteristic value is 0;
Second coding unit is used for generating the current pixel mark value when judging described current pixel characteristic value and be 0, and described current pixel mark value is write in the coded data as encoded radio; When judging described current pixel characteristic value and be not 0, be the 3rd synchronous mark with synchronous mark position assignment, and described synchronous mark position and the encoded radio that generates according to described current pixel characteristic value are write in the coded data.
16. a decoding device is characterized in that comprising:
Decoder module, being used to read with the pixel is the graph data that unit encodes, and is that unit decodes with the pixel, obtains decoded data;
First display module is used for behavior unit, shows described decoded data.
17. decoding device according to claim 16 is characterized in that, described decoder module comprises:
Reading unit is used to read the synchronous mark position synchronously;
The encoded radio reading unit is used for reading the encoded radio of current pixel according to described synchronous mark position;
Decoding unit, be used to read the source code value of current pixel, write in the decoded data, and when the encoded radio of described current pixel is current pixel characteristic value corresponding codes value, then according to the encoded radio and the described source code value of described current pixel, obtain the decode value of current pixel and write in the decoded data;
The 3rd assignment unit is used for when the encoded radio of described current pixel is not current pixel characteristic value corresponding codes value assignment being carried out in described synchronous mark position.
18. decoding device according to claim 17 is characterized in that, described decoding unit comprises:
The 5th judging unit is used to judge whether described synchronous mark position is second synchronous mark;
The 6th judging unit is used for judging whether the encoded radio of the current pixel that described encoded radio reading unit obtains is current pixel characteristic value corresponding codes value when judging described synchronous mark position and be second synchronous mark;
First decoding unit when being used to judge described encoded radio and being current pixel characteristic value corresponding codes value, according to described current pixel characteristic value and described source code value, obtains the decode value of current pixel and writes in the decoded data;
The 7th judging unit is used to judge whether the encoded radio of current pixel is the current pixel mark value;
Second decoding unit, be used for when judging described synchronous mark position and be not second synchronous mark or when judging described current pixel marker bit and being the first pixel sign, according to the encoded radio and the described source code value of described current pixel, obtain the decode value of current pixel and write in the decoded data;
The 8th judging unit is used for when the encoded radio of judging current pixel is not the current pixel mark value, judges whether the encoded radio of current pixel comprises the 3rd synchronous mark; When comprising the 3rd synchronous mark in the encoded radio of judging described current pixel, then by whether comprising the current pixel characteristic value in the described encoded radio of described the 6th judgment unit judges;
The 4th assignment unit is used for when the encoded radio of judging described current pixel does not comprise the 3rd synchronous mark, and assignment is carried out in described synchronous mark position.
19. decoding device according to claim 18 is characterized in that, described current pixel mark value is " 0 ", and described the 3rd synchronous mark is " 10 ";
Described the 7th judging unit is specially the 9th judging unit, is used to judge whether first bit of the encoded radio of current pixel is 0;
Described the 8th judging unit is specially the tenth judging unit, is used to judge whether second bit of the encoded radio of current pixel is 0.
20. decoding device according to claim 16 is characterized in that also comprising: buffer module is used for the described decoded data of buffer memory.
21. a display system is characterized in that comprising encoding apparatus and decoding apparatus;
Wherein said code device comprises:
Coding module, being used for the pixel is that graph data is encoded by unit, when being line scanning during as if demonstration, the coded data of one-row pixels is formed the coding unit;
Memory module is used to store described coded data;
Described decoding device comprises:
Decoder module, being used to read with the pixel is the graph data that unit encodes, and is that unit decodes with the pixel, obtains decoded data;
First display module is used for behavior unit, shows described decoded data.
CN2008101027843A 2008-03-26 2008-03-26 Coding, decoding method and device, display system Active CN101257590B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101027843A CN101257590B (en) 2008-03-26 2008-03-26 Coding, decoding method and device, display system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101027843A CN101257590B (en) 2008-03-26 2008-03-26 Coding, decoding method and device, display system

Publications (2)

Publication Number Publication Date
CN101257590A CN101257590A (en) 2008-09-03
CN101257590B true CN101257590B (en) 2010-06-02

Family

ID=39892018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101027843A Active CN101257590B (en) 2008-03-26 2008-03-26 Coding, decoding method and device, display system

Country Status (1)

Country Link
CN (1) CN101257590B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108229233B (en) * 2017-04-27 2021-10-08 深圳市创梦天地科技有限公司 Decoding method and device
CN111124099A (en) * 2018-10-12 2020-05-08 北京小米移动软件有限公司 State control method, device and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1220065A (en) * 1996-04-25 1999-06-16 太阳微系统公司 System and method for creating trick play video streams from compressed normal play video bitstream

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1220065A (en) * 1996-04-25 1999-06-16 太阳微系统公司 System and method for creating trick play video streams from compressed normal play video bitstream

Also Published As

Publication number Publication date
CN101257590A (en) 2008-09-03

Similar Documents

Publication Publication Date Title
US10212440B2 (en) Virtual frame buffer system and method
US7039241B1 (en) Method and apparatus for compression and decompression of color data
US20090010533A1 (en) Method and apparatus for displaying an encoded image
CN100524452C (en) Digital image storage, displaying method and device
CN107995494A (en) The compression method of vedio data and decompressing method, computer installation, computer-readable recording medium
CN102821279A (en) Picture compression method keeping with alpha channel
JP5156655B2 (en) Image processing device
CN111885346B (en) Picture code stream synthesis method, terminal, electronic device and storage medium
CN101616318A (en) Be used to play up or the method for decoding compressed multimedia data and the device of being correlated with
CN105933708A (en) Data compression-decompression method and device
CN104853132A (en) Delay video recording method and system
CN102263946B (en) Techniques for storing and retrieving pixel data
CN100539700C (en) Method for encoding images and device
CN101257590B (en) Coding, decoding method and device, display system
CN101511025A (en) Method and apparatus for compressing and decompressing image
US10062142B2 (en) Stutter buffer transfer techniques for display systems
CN110191341B (en) Depth data coding method and decoding method
CN105791819B (en) The decompression method and device of a kind of frame compression method of image, image
CN101847394B (en) Storage mapping method and device for encoding and displaying video files
CN101489052A (en) Subtitle data processing method and apparatus
CN108184113B (en) Image compression coding method and system based on inter-image reference
CN101754034B (en) Uncompressing system of discrete cosine transform compression diagram data with transparent attribute and method
US9066105B2 (en) Image processing device, image processing system and method for having computer perform image processing based on sub-block coding unit
CN101742329B (en) Image coding method and device
CN101261605A (en) Fusion memory device and 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
C14 Grant of patent or utility model
GR01 Patent grant