CN102075752A - Image coding method, image decoding method and device for embedded system - Google Patents

Image coding method, image decoding method and device for embedded system Download PDF

Info

Publication number
CN102075752A
CN102075752A CN 201110006246 CN201110006246A CN102075752A CN 102075752 A CN102075752 A CN 102075752A CN 201110006246 CN201110006246 CN 201110006246 CN 201110006246 A CN201110006246 A CN 201110006246A CN 102075752 A CN102075752 A CN 102075752A
Authority
CN
China
Prior art keywords
color
pixel
values
color elements
image
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
CN 201110006246
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.)
BEIJING BEWINNER COMMUNICATIONS TECHNOLOGY Co Ltd
Original Assignee
BEIJING BEWINNER COMMUNICATIONS TECHNOLOGY 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 BEIJING BEWINNER COMMUNICATIONS TECHNOLOGY Co Ltd filed Critical BEIJING BEWINNER COMMUNICATIONS TECHNOLOGY Co Ltd
Priority to CN 201110006246 priority Critical patent/CN102075752A/en
Publication of CN102075752A publication Critical patent/CN102075752A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides an image coding method, an image decoding method, an image coding device and an image decoding device for an embedded system. The image coding method comprises the following steps of: mapping a color value or a color index of each pixel in an image in which pixels are arranged in M rows*N columns into a color unit, wherein the color unit comprises a plurality of bytes and is used for storing the color value or the color index of the pixel; storing values of M and N in a header data set; connecting the color units sequentially to form a one-dimensional color unit set; and merging the color unit set and the header data set to form image coding data. The image coding method can be widely applied to the image processing process of the embedded system, and the problem that hardware resources of the embedded system in the image processing process are limit is solved.

Description

The image encoding of embedded system, coding/decoding method and device
Technical field
The present invention relates to a kind of image processing techniques, particularly the image processing techniques in embedded system.
Background technology
In embedded system, standards such as PNG, GIF or BMP are still adopted in the coding of image, decoding mostly at present.The benefit that adopts these standards is to have extraordinary compatibility, and embedded system can be used a large amount of existing images that meet above-mentioned standard.Special this class embedded system of picture mobile phone can be utilized very many conventional images resources, brings a lot of facilities to the user undoubtedly.
But in embedded system, image adopts these standards also to have tangible unfavorable factor.Above-mentioned graphics standard is owing to will consider problems such as compatibility, so more complicated, to the requirement of system hardware than higher.The image of resource handle now to(for) bigger hardware system such as PC has not been a problem, therefore can bring favorable experience to the user, and hardware resource remains a problem for embedded system.With widely used mobile phone is example, because the requirement of aspects such as energy consumption and volume, its hardware resource is limited.And mobile phone limited hardware resource will seem that some is painstaking when handling the image of above-mentioned standard, be exactly the action of an application drawing picture as user's impression after, the result can occur lentamente, so that suspects it is to have crashed, and causes unnecessary misoperation.
Embedded system more applications environment such as present mobile phone are to be connected in the network, the amount of information that needs to handle heightens, the task of needing simultaneously to handle image also has a large amount of growths, causes the problem of hardware resource incompatibility image processing of embedded system more outstanding like this.
Summary of the invention
In order to solve the limited problem of hardware resource that embedded system exists in handling image, the invention provides a kind of image coding and decoding method of embedded system, simplified image processing process, to adapt to embedded system limited hardware resource.
Technical scheme of the present invention is as follows:
The method for encoding images of embedded system comprises the steps:
A, to pixel arrangement be M capable * image of N row in each pixel carry out: the color-values or the color index of this pixel are mapped to a color elements, and described color elements comprises some bytes, is used to deposit the color-values or the color index of described pixel; M, N are natural number, and the numerical value of described M and N is deposited in the data set;
The described color elements that B, the steps A that is linked in sequence obtain becomes one dimension color elements group; Described color elements group merges into image coded data with described data set.
Also comprise the steps: in the steps A
Described color elements is also deposited the number with the continuous pixel of described current processed pixels adjacency except that the color-values of depositing current processed pixels or color index, described continuous pixel is identical with the color-values or the color index of described current processed pixels.
The number of the described continuous pixel that described color elements is deposited is less than 256.
The picture decoding method of embedded system comprises the steps:
A ', obtain image coded data;
B ', the M that deposits according to the data set in the described image coded data and the numerical value of N, color-values that the color elements in the described image coded data is deposited or color index color-values pointed are given the respective pixel in the decoded image.
Step B ' also comprises the steps:
If described color elements also deposit with current processed pixels in abutting connection with and with the color-values of described current processed pixels or color index the number a of identical continuous pixel, then continuous a pixel of described current processed pixels adjacency given the color-values of described current processed pixels or the color-values of color index sensing.
The picture coding device of embedded system comprises the structure color elements module that is linked in sequence and makes up the coded data module;
Make up the color elements module: be used for to pixel arrangement be M capable * each pixels of image of N row carries out: the color-values or the color index of this pixel are mapped to a color elements, described color elements comprises some bytes, is used to deposit the color-values or the color index of described pixel; M, N are natural number, and the numerical value of described M and N is deposited in the data set;
Make up the coded data module: the color elements that the described structure color elements module that is used to be linked in sequence obtains becomes one dimension color elements group; Described color elements group merges into image coded data with described data set.
The described color elements of described structure color elements module construction is except that the color-values of depositing current processed pixels or color index, also deposit the number with the continuous pixel of described current processed pixels adjacency, described continuous pixel is identical with the color-values or the color index of described current processed pixels.
The number of the described continuous pixel that the described color elements of structure color elements module construction is deposited is less than 256.
The picture decoding apparatus of embedded system, comprise be linked in sequence obtain coded data module and decoder module;
Obtain the coded data module: be used to obtain image coded data;
Decoder module: be used for the M that deposits according to a described image coded data data set and the numerical value of N, color-values that the color elements in the described image coded data is deposited or color index color-values pointed are given the respective pixel in the decoded image.
Described decoder module: also be used for judge described color elements also deposit with current processed pixels in abutting connection with and during the number a of identical continuous pixel, give the color-values of described current processed pixels or the color-values of color index sensing with the color-values of described current processed pixels or color index with continuous a pixel of described current processed pixels adjacency.
Technique effect of the present invention:
Image coding and decoding method of the present invention is succinct, image file behind the coding only need comprise the information of the row and the row of original image, add an one-dimension array that is made of color elements and get final product, file structure is simple, and the system hardware resources that coding, decoding need is few.When the image file behind the coding was decoded, the color-values of each pixel that color elements is deposited was carried out the order recovery according to the row of original image and the information of row, can finish decoding equally, and algorithm is succinct.Therefore the present invention is low to the hardware requirement of embedded system, can realize purpose of the present invention.
Description of drawings
Fig. 1 is the flow chart of an embodiment of coding method of the present invention.
Fig. 2 is the flow chart of another embodiment of coding method of the present invention.
Fig. 3 is the flow chart of an embodiment of coding/decoding method of the present invention.
Fig. 4 is the flow chart of another embodiment of coding/decoding method of the present invention.
Fig. 5 is an embodiment of a data set in the encoded data structure of the present invention.
Fig. 6 is first embodiment of volume data structure in the coded data of the present invention.
Fig. 7 is second embodiment of volume data structure in the coded data of the present invention.
Fig. 8 is the 3rd embodiment of volume data structure in the coded data of the present invention.
Fig. 9 is the 4th embodiment of volume data structure in the coded data of the present invention.
Figure 10 is the schematic diagram of code device of the present invention.
Figure 11 is the schematic diagram of decoding device of the present invention.
Embodiment
In conjunction with the accompanying drawings technical scheme of the present invention is elaborated in this part.
Fig. 1 has shown an embodiment of coding method of the present invention.The order of following foundation flow process shown in Figure 1 describes.
Make up the color elements step: to pixel arrangement be M capable * image of N row in each pixel all carry out following steps: the color-values or the color index of this pixel are mapped to a color elements.M is capable * and the implication of N row is that there be M pixel in delegation in the image, and one shows N pixel, and M, N are natural number certainly.Aforementioned color elements is the data that are made of some bytes, is used to deposit the color-values or the color index of described pixel (pixel that promptly has mapping relations with color elements).Color index is meant when having similar color-values storehouse, the index of certain color-values correspondence in the storehouse.Data set is one group of data, wherein deposits the information of the capable and N row of the M of described image, and the coded data of each image all has a stature data set.
Make up the coded data step: the described color elements that is linked in sequence becomes one dimension color elements group.Said order is not limited under the one-dimensional case from left to right among the present invention, under the two-dimensional case from left to right, order from top to bottom, just the order in the Code And Decode is corresponding getting final product.The color elements group merges into image coded data with a data set.
Fig. 2 has shown another embodiment of coding method of the present invention, and is just more complicated with embodiment illustrated in fig. 1 corresponding, considered the situation of compression and employing palette.Belong to the structure color elements step scope among Fig. 1 among Fig. 2 before the 6th step, belong to the structure coded data step scope among Fig. 1 after the 6th step.Below describe the content of each step among Fig. 2 in detail.
The first, obtain view data.Acquisition needs the image encoded data, has obtained the information of the row and the row of image simultaneously, as the pixel arrangement of image be M capable * the N row, then the capable information with the N row of M need when decoding, so this information must hand on.This information that must transmit is written in the data after the image encoding.Data after the image encoding comprise a data set and the volume data that is linked in sequence.Fig. 5 has shown an example of a data burst structure, and wherein the space of a certain information of each grid representative storage can be recorded in the information under must transmitting here.The picture traverse pixel count is exactly to deposit the space that image N is listed as this information among Fig. 5, and in like manner, the picture altitude pixel count is the space of depositing this information of image M row.
The second, whether need palette.Palette is a storehouse of storage chromatic value, sets up index for this storehouse, only needs the index (abbreviating color index among the present invention as) of the color-values of storage respective pixel to get final product like this in color elements.If the employing palette then is provided with in the data of palette behind the coding, promptly in volume data, increase palette data memory space (referring to Fig. 8 and Fig. 9).If do not need palette, then color elements is directly stored the color-values of respective pixel.8 bitmaps for commonly used on the embedded device can adopt palette, thereby make each data cell only take 2 bytes under compact model.Certainly, for less picture, do not adopt palette can avoid because the additional system expense of using palette to bring.
The 3rd, order is obtained the color-values of image pixel.Here order is obtained image pixel and is meant from the image top left corner pixel and begins from left to right to choose successively in the first row pixel, after finishing the first row pixel and choosing, chooses successively from left to right since the second row leftmost side pixel again.By that analogy, up to having selected last pixel of image (image lower right corner pixel).In Fig. 2, be a cyclic process from this step to " whether being the last pixel of image " this step, this step is chosen a pixel and is adopted subsequent step (up to " whether being the last pixel of image " this step) to handle then successively.
The 4th, whether compress.Whether adopt compress mode to encode in the decision of this step, this can cause follow-up two kinds of different coding methods (the 5th and the 6th step).
The 5th, finish the coding 1 of respective pixel.If the 4th step does not adopt compression, then carry out this step.In this step, color elements is arrived in the color-values mapping (depositing in other words) of pixel, if adopt palette, then the color index with pixel deposits color elements in.After finishing this step, with the color elements sequence arrangement, repeat the 3rd to the 5th step, color elements is arranged in the color elements group of one dimension.Color elements with the corresponding relation that is mapped to the pixel of this color elements is in the color elements group: Z=(X-1) * N+Y, Z is the sequence number of color elements in the color elements group, X is the abscissa of described pixel in image, and Y is the ordinate of described pixel in image; Z, X and Y are natural number.
Carry out the 9th step after finishing the 5th step.
The 6th, finish the coding 2 of respective pixel.If the 4th step adopts compression, then carry out this step.After in this step the color-values of pixel (being current processed pixels) or color index being deposited into color elements, if follow-up circulation knows that the color-values (or color index) of plurality of pixels is identical with this pixel after this pixel, then add up the number of such later pixel, color-values (or color index) up to follow-up pixel changes, and the number of accumulating is contributed in this color unit.The color-values that usually can occur contiguous pixels in a sub-picture is identical, and above-mentioned processing method just can greatly be saved the memory space of coding back data.
In order to make the space of storing with the color-values number in the color elements only need 1 byte, to guarantee bigger compression ratio, the number that the qualification color elements is deposited the described pixel of aforementioned accumulative total is less than 256.This is equivalent to surpass 255 situation for the contiguous pixels number of same color-values (or color index), (number of the described pixel that this color elements is deposited is 255 after first color elements, be that identical continuous 255 pixel mapping of color-values are to this color elements) additional color unit of increase, color-values or the color index identical with last color elements are deposited in the additional color unit, and last color elements is shone upon the number (promptly since the 256th number that pixel is accumulated) of the continuous pixel with same color value or color index after last pixel of correspondence.If surpass 255 once more since the 256th number that pixel is accumulated, then behind this additional color unit, set up a similar additional color unit again, the number of pixels of guaranteeing each color elements storage is less than 256.The additional color unit also is a color elements, just divides description conveniently to play the title of a difference for this step.For example, the number of the contiguous pixels that color-values is identical is 1024, and then correspondence is set up 5 color elements, and these 5 color elements are deposited identical color-values, wherein preceding 4 color elements all have a byte to deposit numerical value 255, and it all is 255 that representative has same color value contiguous pixels quantity; Byte of last color elements has been deposited numerical value 4, and it is 4 that representative has same color value contiguous pixels quantity.So far, the number of having expressed the identical contiguous pixels of color-values with 5 color elements is 1024 such a case.
The 7th, whether be the end of line pixel.After finishing, the 6th step carries out this step.This step judges whether the pixel when pre-treatment is the end of line pixel, if then will carry out the 8th step, if not then carrying out the 9th step.
The 8th, the end-of-line indicator unit is set.If, then after the color elements of this end of line pixel mapping, connect an end-of-line indicator unit (for example storing the content of 0xFF0xFF 0x00 data) as the end-of-line indicator unit when the pixel of pre-treatment is the end of line pixel.Such purpose is the position of can clearly entering a new line when decoding, simplifies line feed and judges, improves delivery efficiency.Carry out the 9th step after executing the 8th step.
The 9th, whether be the last pixel of image.Whether the interpretation of this step finishes the encoding process to image, if finish, then finishes cataloged procedure, if do not finish, then gets back to third step and selects next pixel to handle.
Structure to Fig. 5 coding extremely shown in Figure 9 back data describes.
What Fig. 5 showed is the data structure of a data set, comprises the content and the corresponding storage size of storage.
Format identification (FID):, when decoding, read this sign and can take corresponding coding/decoding method in order to show the coding method of employing.The example of storage data: 0xCD 0xCD.
Version number: show the concrete version number of coding method, for example 5.12 is 0x05 0x0C.
Picture traverse pixel: as previously mentioned, no longer repeat.When reading images, can deposit the picture traverse information of obtaining in this space.
Picture altitude pixel: as previously mentioned, no longer repeat.When reading images, can deposit the picture altitude information of obtaining in this space.
For example, for the image of 240 pixels * 320 pixels, the data of picture traverse pixel should be 0x00 0xF0, and the data of picture altitude pixel should be 0x01 0x40.
Compressing mark: be used to show whether adopt compression.The 4th step in Fig. 1 if determine to adopt compression, then leaves this information in compressing mark, and for example, two kinds of values of 0x00 and 0x01 are represented respectively not compress and compressed; 0x02-0xFF represents to keep, and promptly should be worth undefined temporarily.
Palette sign: be used to show whether adopt palette.Second step in Fig. 1 if adopt palette, then leaves this information in the palette sign, for example, represents not adopt palette with 0x00, and 0x01 represents to adopt palette; 0x02-0xFF represents to keep, and promptly should be worth undefined temporarily.
Transparent sign: be used for presentation video and whether used Transparent color.For example, represent not use Transparent color, represent to have used Transparent color with 0x01 with 0x00; Represent to keep with 0x02-0xFF, promptly should be worth undefined temporarily.
Transparent color: the transparent color of RGB565 form.Effective during the transparent 0x01 of being designated (Transparent color has been used in expression).Transparent color is in the appointment of when coding, generally use use in the described image less than a color value.According to transparent color value, the pixel of all these color values is all done transparence and is handled during decoding.
Image volume length word joint number: show the byte number that view data is used altogether, whether the view data that verification receives when being used in decoding is effective.
Keep: be the expansion item of reserving, so that use during expanded function later on.
Fig. 6 to Fig. 7 has shown the structure of volume data in the data of coding back, and the order from left to right that color elements is arranged is corresponding to the order of third step selected pixels among Fig. 2.
The structure of the volume data that Fig. 6 shows is not adopt palette, the structure under the situation that does not also have to compress.Each color elements has two bytes, is used to deposit the color-values of pixel.
The structure of the volume data that Fig. 7 shows is not adopt palette, and the structure under the situation of compression is arranged.Each color elements has three bytes, and two bytes are used to deposit the color-values of pixel, and the 3rd byte deposited the continuous number of pixels with same color value after this color elements respective pixel.
The structure of the volume data that Fig. 8 shows is to adopt palette, the structure in the absence of compression.Comprise palette data in the volume data,, then palette data is joined in the volume data if second step is determined to adopt palette in Fig. 2.Deposit the color index of respective pixel in the color elements that is linked in sequence.
The structure of the volume data that Fig. 9 shows is to adopt palette, and the structure under the situation of compression is arranged.Comprise palette data in the volume data,, then palette data is joined in the volume data if second step is determined to adopt palette in Fig. 2.Have two bytes to deposit the color index of pixel in the color elements that is linked in sequence, the 3rd byte deposited the continuous number of pixels with same hue index after this color elements respective pixel.
Fig. 3 has shown the flow process of an embodiment of picture decoding method of the present invention, below describes by the order of flow process.
Obtain the coded data step: obtain coded data according to coding method formation shown in Figure 1.
Decoding step: the information of the capable and N row of the M that deposits according in the coded data data set, color-values that color elements is deposited or color index color-values pointed are given the respective pixel in the decoded image.The corresponding relation of respective pixel and color elements can preestablish, and has provided an example among the coding/decoding method embodiment shown in Figure 4.
Fig. 4 has shown another embodiment of picture decoding method of the present invention, mainly is the further refinement to decoding step among Fig. 3, below each step among Fig. 4 is elaborated.
The first, obtain a data of image encoding file.This step will be from the coded data of the image that receives the information in the read head data set, these information are extremely important for follow-up decoding step, as the information that shows picture traverse and height introduced among Fig. 5, whether adopt palette, whether compress or the like information.
The second, whether data are illegal.This step judges whether the coded data of obtaining is correct, as verifying according to image volume length word joint number in the data set.If judgment data illegal (or makeing mistakes) is then carried out the error handling processing step, and then finish decode procedure.If data legal (or correct) are then carried out third step.
The 3rd, whether palette is arranged.This step judges whether coded data has adopted palette, judges as palette sign in the utilization data set.If coded data has adopted palette, then carry out and obtain the palette data step, execute and carry out the 4th step after obtaining the palette data step.If coded data does not adopt palette, then directly carry out the 4th step.
The 4th, order is obtained color elements.This step is cyclic process up to " giving respective pixel with color-values " step, from first color elements, each color elements is handled through this cyclic process.The order here is corresponding with the order in the cataloged procedure, and the color elements group is an one-dimension array, chooses successively from left to right to get final product.The corresponding relation of location of pixels is in color elements and the image: the corresponding relation of the pixel of color elements and the mapping of this color elements is: Z=(X-1) * N+Y, Z is the sequence number of color elements in color elements group byte sequence, X is the abscissa of described pixel in image, and Y is the ordinate of described pixel in image; Z, X and Y are natural number.
The 5th, whether palette is arranged.This step still is to judge whether coded data has adopted palette, and this judged result can be that the result from third step directly inherits, and also the information that can reuse in the data set is judged.If adopted palette, what then deposit in the color elements is color index, the color-values of color index sensing is given the pixel of color elements correspondence " giving respective pixel with color-values ".The 6th step is carried out in the complete back of this step.If do not adopt palette, then directly carry out the 6th step.
The 6th, whether compress.Judge whether coded data has compression, for example from the beginning the compressing mark in the data set is judged.If judge that coded data has compression, then carry out the decompression step.So-called decompression step reads the number of pixels with same color value (not adopting palette) or color index (employing palette) exactly from color elements, and gives same color-values in the pixel (i.e. the identical continuous pixel of the color-values of this color elements correspondence) that " giving respective pixel with color-values " step (the tenth step) will be worked as pre-treatment color elements correspondence.Carry out the 7th step after the decompression step.If not compression then only needs to give corresponding pixel with the color-values of color-values in the color elements or color index sensing " giving respective pixel with color-values ".
Under the situation of compressed encoding, mode that can be by memory copying is the homochromy non-transparent data of the company's of output being aligned directly, and in embedded development, this is than the lifting that has on the single-point delivery efficiency one by one at double.
For transparent data, directly to select to ignore output and get final product, transparence that Here it is is handled.
The 7th, whether arrive end of line.Whether the pixel of judging the color elements correspondence is the end of line pixel.Whether be connected with the end of line recognition unit after for example judging color elements.If the pixel of color elements correspondence is the end of line pixel, then carry out the 8th step.If the pixel of color elements correspondence is not the end of line pixel, then carry out the 4th step.
The 8th, whether finish.Whether the pixel of judging the color elements correspondence is last pixel of image, if then finish decode procedure, if not, then carry out the tenth step.
The tenth, give respective pixel with color-values.According to the result of abovementioned steps, give corresponding pixel with color-values.Carry out the 4th step then.
Figure 10 has shown the principle of code device of the present invention, comprises the structure color elements module that is linked in sequence and makes up the coded data module.Code device has been realized aforesaid coding method, and each module is respectively applied for and carries out correlation step in the coding method in the device.Below code device of the present invention is carried out brief description.
Make up the color elements module in the code device shown in Figure 10: be used for to pixel arrangement be M capable * each pixels of image of N row carries out following steps: the color-values or the color index of this pixel are mapped to a color elements, described color elements comprises some bytes, is used to deposit the color-values or the color index of described pixel; M, N are natural number, and the numerical value of M and N is deposited in the data set.
Make up the coded data module: being used to be linked in sequence makes up the color elements that the color elements module obtains and becomes one dimension color elements group, and described color elements group merges into image coded data with described data set.
The color elements that makes up the color elements module construction with the corresponding relation that is mapped to the pixel of this color elements is:
Z=(X-1) * N+Y, Z are the sequence number of color elements in the color elements group, and X is the abscissa of described pixel in image, and Y is the ordinate of described pixel in image; Z, X and Y are natural number.
The described color elements that makes up the color elements module construction is except that the color-values of depositing current processed pixels or color index, also deposit the number with the continuous pixel of current processed pixels adjacency, described continuous pixel is identical with the color-values or the color index of described current processed pixels.
Make up the coded data module: also be used for after the color elements of last pixel correspondence of described image delegation, connecting the end-of-line indicator unit.
The number of the described continuous pixel that the described color elements of structure color elements module construction is deposited is less than 256.
Figure 11 has shown the principle of decoding device of the present invention, and this device has been realized aforesaid coding/decoding method, and each module is respectively applied for and carries out correlation step in the described coding/decoding method in the device.Below decoding device of the present invention is described.
The picture decoding apparatus of embedded system comprise be linked in sequence obtain coded data module and decoder module.
Obtain the coded data module: be used to obtain the data behind the coding;
Decoder module: be used for the information (being the numerical value of M and N) of the capable and N row of the described M that deposits according to a described image coded data data set, color-values that the color elements in the described image coded data is deposited or color index color-values pointed are given the respective pixel in the decoded image.
Decoder module with the color elements pass corresponding with described respective pixel in the described color elements group is:
Z=(X-1) * N+Y, Z are the sequence number of color elements in the color elements group, and X is the abscissa of described respective pixel in image, and Y is the ordinate of described respective pixel in image; Z, X and Y are natural number.
Decoder module: also be used for judge described color elements also deposit with current processed pixels (pixel that this color elements is corresponding) in abutting connection with and during the number a of identical continuous pixel, give the color-values of current processed pixels or the color-values of color index sensing with the color-values of described current processed pixels or color index with continuous a pixel of described current processed pixels adjacency.
Decoder module: also be used for comprising the end-of-line indicator unit judging the color elements group, first pixel of next line of pixel of having finished processing in the back image of then will decoding corresponding to the end-of-line indicator unit after a color elements.

Claims (10)

1. the method for encoding images of embedded system is characterized in that comprising the steps:
A, to pixel arrangement be M capable * image of N row in each pixel carry out: the color-values or the color index of this pixel are mapped to a color elements, and described color elements comprises some bytes, is used to deposit the color-values or the color index of described pixel; M, N are natural number, and the numerical value of described M and N is deposited in the data set;
The described color elements that B, the steps A that is linked in sequence obtain becomes one dimension color elements group; Described color elements group merges into image coded data with described data set.
2. according to the method for encoding images of the described embedded system of claim 1, it is characterized in that also comprising the steps: in the steps A
Described color elements is also deposited the number with the continuous pixel of described current processed pixels adjacency except that the color-values of depositing current processed pixels or color index, described continuous pixel is identical with the color-values or the color index of described current processed pixels.
3. according to the method for encoding images of the described embedded system of claim 2, the number that it is characterized in that the described continuous pixel that described color elements is deposited is less than 256.
4. the picture decoding method of embedded system is characterized in that comprising the steps:
A ', obtain image coded data;
B ', the M that deposits according to the data set in the described image coded data and the numerical value of N, color-values that the color elements in the described image coded data is deposited or color index color-values pointed are given the respective pixel in the decoded image.
5. according to the picture decoding method of the described embedded system of claim 4, it is characterized in that step B ' also comprises the steps:
If described color elements also deposit with current processed pixels in abutting connection with and with the color-values of described current processed pixels or color index the number a of identical continuous pixel, then continuous a pixel of described current processed pixels adjacency given the color-values of described current processed pixels or the color-values of color index sensing.
6. the picture coding device of embedded system is characterized in that comprising the structure color elements module that is linked in sequence and makes up the coded data module;
Make up the color elements module: be used for to pixel arrangement be M capable * each pixels of image of N row carries out: the color-values or the color index of this pixel are mapped to a color elements, described color elements comprises some bytes, is used to deposit the color-values or the color index of described pixel; M, N are natural number, and the numerical value of described M and N is deposited in the data set;
Make up the coded data module: the color elements that the described structure color elements module that is used to be linked in sequence obtains becomes one dimension color elements group; Described color elements group merges into image coded data with described data set.
7. according to the described code device of claim 6, the described color elements that it is characterized in that described structure color elements module construction is except that the color-values of depositing current processed pixels or color index, also deposit the number with the continuous pixel of described current processed pixels adjacency, described continuous pixel is identical with the color-values or the color index of described current processed pixels.
8. according to the described code device of claim 7, the number that it is characterized in that making up the described continuous pixel that the described color elements of color elements module construction deposits is less than 256.
9. the picture decoding apparatus of embedded system, it is characterized in that comprising be linked in sequence obtain coded data module and decoder module;
Obtain the coded data module: be used to obtain image coded data;
Decoder module: be used for the M that deposits according to a described image coded data data set and the numerical value of N, color-values that the color elements in the described image coded data is deposited or color index color-values pointed are given the respective pixel in the decoded image.
10. according to the described picture decoding apparatus of claim 9, it is characterized in that described decoder module:
Also be used for judge described color elements also deposit with current processed pixels in abutting connection with and during the number a of identical continuous pixel, give the color-values of described current processed pixels or the color-values of color index sensing with the color-values of described current processed pixels or color index with continuous a pixel of described current processed pixels adjacency.
CN 201110006246 2011-01-11 2011-01-11 Image coding method, image decoding method and device for embedded system Pending CN102075752A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110006246 CN102075752A (en) 2011-01-11 2011-01-11 Image coding method, image decoding method and device for embedded system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110006246 CN102075752A (en) 2011-01-11 2011-01-11 Image coding method, image decoding method and device for embedded system

Publications (1)

Publication Number Publication Date
CN102075752A true CN102075752A (en) 2011-05-25

Family

ID=44034075

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110006246 Pending CN102075752A (en) 2011-01-11 2011-01-11 Image coding method, image decoding method and device for embedded system

Country Status (1)

Country Link
CN (1) CN102075752A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523367A (en) * 2011-12-29 2012-06-27 北京创想空间商务通信服务有限公司 Real-time image compression and reduction method based on plurality of palettes
CN104023235A (en) * 2013-02-28 2014-09-03 美国博通公司 Indexed color history in image coding
WO2015139176A1 (en) * 2014-03-17 2015-09-24 富士通株式会社 Palette-based coding device and method and image processing device
WO2015192340A1 (en) * 2014-06-18 2015-12-23 富士通株式会社 Palette-based image coding method, device and image processing device
WO2016106554A1 (en) * 2014-12-30 2016-07-07 富士通株式会社 Image coding method and apparatus and image processing device
CN105900422A (en) * 2014-06-12 2016-08-24 富士通株式会社 Three-dimensional palette based image coding method, device and image processing apparatus
CN107810637A (en) * 2015-05-27 2018-03-16 株式会社Kt Method and apparatus for handling vision signal
CN108184082A (en) * 2018-01-22 2018-06-19 豪威科技(上海)有限公司 Image data transmission system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1630371A (en) * 2003-12-19 2005-06-22 联想(北京)有限公司 A method of lossless image compression applied to real time transmission
CN101261740A (en) * 2008-03-27 2008-09-10 于培宁 An image storage and processing method
US20090010533A1 (en) * 2007-07-05 2009-01-08 Mediatek Inc. Method and apparatus for displaying an encoded image
CN101625847A (en) * 2009-08-06 2010-01-13 杭州电子科技大学 Rapid display method of large-size non-compressed digital image
CN101908891A (en) * 2010-08-23 2010-12-08 南京信息工程大学 Medical image ROI (Region of Interest) compression method based on lifting wavelet and PCNN (Pulse Coupled Neural Network)

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1630371A (en) * 2003-12-19 2005-06-22 联想(北京)有限公司 A method of lossless image compression applied to real time transmission
US20090010533A1 (en) * 2007-07-05 2009-01-08 Mediatek Inc. Method and apparatus for displaying an encoded image
CN101261740A (en) * 2008-03-27 2008-09-10 于培宁 An image storage and processing method
CN101625847A (en) * 2009-08-06 2010-01-13 杭州电子科技大学 Rapid display method of large-size non-compressed digital image
CN101908891A (en) * 2010-08-23 2010-12-08 南京信息工程大学 Medical image ROI (Region of Interest) compression method based on lifting wavelet and PCNN (Pulse Coupled Neural Network)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523367A (en) * 2011-12-29 2012-06-27 北京创想空间商务通信服务有限公司 Real-time image compression and reduction method based on plurality of palettes
CN104023235A (en) * 2013-02-28 2014-09-03 美国博通公司 Indexed color history in image coding
CN104023235B (en) * 2013-02-28 2017-12-26 安华高科技通用Ip(新加坡)公司 Indexed color history in Image Coding
WO2015139176A1 (en) * 2014-03-17 2015-09-24 富士通株式会社 Palette-based coding device and method and image processing device
CN105637861A (en) * 2014-03-17 2016-06-01 富士通株式会社 Palette-based coding device and method and image processing device
CN105637861B (en) * 2014-03-17 2018-11-20 富士通株式会社 Code device, method and image processing equipment based on palette
CN105900422A (en) * 2014-06-12 2016-08-24 富士通株式会社 Three-dimensional palette based image coding method, device and image processing apparatus
WO2015192340A1 (en) * 2014-06-18 2015-12-23 富士通株式会社 Palette-based image coding method, device and image processing device
WO2016106554A1 (en) * 2014-12-30 2016-07-07 富士通株式会社 Image coding method and apparatus and image processing device
CN107810637A (en) * 2015-05-27 2018-03-16 株式会社Kt Method and apparatus for handling vision signal
CN107810637B (en) * 2015-05-27 2022-02-15 株式会社Kt Method and apparatus for processing video signal
CN108184082A (en) * 2018-01-22 2018-06-19 豪威科技(上海)有限公司 Image data transmission system and method

Similar Documents

Publication Publication Date Title
CN102075752A (en) Image coding method, image decoding method and device for embedded system
CN1681330B (en) Adaptive 2n-ary tree generating method, and method and apparatus for encoding and decoding 3d volume data using it
JP2021518694A (en) Methods and devices for coding / decoding point clouds that represent 3D objects
CN107273301A (en) Data handling system
CN102244784B (en) Method for compressing and displaying picture including transparent information
CN105681807A (en) Method and device for calculating sub pixel motion vector based on H264 protocol
CN112308754B (en) Multi-decoding-end parallel extraction method for high-capacity robust watermark application
CN101261740A (en) An image storage and processing method
CN103929644A (en) Video fingerprint database building method and device and video fingerprint recognition method and device
CN105451061A (en) Screen sharing method and device
KR20200140825A (en) Method and apparatus for encoding/decoding a point cloud representing a 3D object
CN108259908A (en) For coding and decoding the method and apparatus of pixel list
CN104050622A (en) Color image blind-watermarking method based on ternary coding
CN101751897A (en) Lookup table compression and decompression method and relevant device thereof
CN101459854B (en) Encoding/decoding apparatus for picture compression and encoding/decoding method therefor
CN104580804B (en) The method and system that a kind of picture compression uploads
CN103810668A (en) Double color image blind watermarking method based on singular value decomposition
CN107005657A (en) Method, device, chip and the camera of processing data
CN109600616A (en) A kind of code stream packaging method based on H.264 video compression standard
CN106534874B (en) The compression of texture brick and decompression method and the device using this method
CN107592297B (en) Method, system and terminal equipment for mobile detection
EP3614672A1 (en) A method and apparatus for encoding/decoding a point cloud representing a 3d object
CN103999490B (en) The terminable position encoded and decoded method and apparatus based on space tree
CN105141962A (en) H.264/AVC video bitstream oriented large volume data hiding method
CN101583029B (en) Entropy decoding circuit, entropy decoding method and entropy decoding method using pipeline mode

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20110525