CN102291576A - Method and device for displaying and recording colored image rotation - Google Patents

Method and device for displaying and recording colored image rotation Download PDF

Info

Publication number
CN102291576A
CN102291576A CN2010102074707A CN201010207470A CN102291576A CN 102291576 A CN102291576 A CN 102291576A CN 2010102074707 A CN2010102074707 A CN 2010102074707A CN 201010207470 A CN201010207470 A CN 201010207470A CN 102291576 A CN102291576 A CN 102291576A
Authority
CN
China
Prior art keywords
plane
jpeg
image
tandem
once
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2010102074707A
Other languages
Chinese (zh)
Other versions
CN102291576B (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.)
VIRTUAL REAL TECHNOLOGIES Co Ltd
Original Assignee
VIRTUAL REAL 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 VIRTUAL REAL TECHNOLOGIES Co Ltd filed Critical VIRTUAL REAL TECHNOLOGIES Co Ltd
Priority to CN 201010207470 priority Critical patent/CN102291576B/en
Publication of CN102291576A publication Critical patent/CN102291576A/en
Application granted granted Critical
Publication of CN102291576B publication Critical patent/CN102291576B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses a method and device for displaying and recording colored image rotation. The method comprises the following steps of: respectively setting operation nodes of a JPEG (Joint Photographic Experts Group) encoder and a JPEG decoder; waiting until the image data are prepared to be encoded; carrying out JPEG encoding and entering information processing again; waiting until the compression of the whole frame of image is finished; setting the operator mode of the JPEG encoder and then carrying out JPEG decoding and entering information upgrading processing again. To display the image on an image output device, the following steps are carried out: carrying out display processing; waiting until the JPEG decoding is finished; and displaying a final image on the display. Hereof, the processing of single frame display is finished. To record the image into a mass storage device, the following steps are carried out: carrying out standard lossless JPEG encoding; waiting until JPEG encoding is finished; and storing the final encoded data into the mass storage device. At the moment, the processing of recording the single frame image is finished. According to the invention, the performance of colored image rotation calculation can be enhanced.

Description

The method and the device of demonstration and record color image rotation
Technical field
The present invention relates to a kind of Color Image Processing, relate in particular to and use method and the device that JPEG (Joint PhotographicCoding Expert Group) shows and record color image rotates.
Background technology
Before the more morning of the smart mobile phone that receives an acclaim recently, the image rotation is very important essential function to the image operation control software application that is used for computer.The demand to rapid image rotation computing capability is lighted in the keen competition in booming smart mobile phone market, even more.At present, the image spinfunction be any image device or peripheral device indispensable part, such as display (as LCD (LCD)) and storage device (as the NAND flash memory).The image rotation is calculated and must be considered image appearance.For example, image file format has a significant impact the size of data tool that rotates computational efficiency and be used at last store.For example, image acquiring apparatus, such as CCD, CMOS camera model etc., the real image that scanning will be extracted, and with the RGB or YUV pattern of the input (the YCbCr model is regarded as the displacement version of the YUV usually) output image information of tandem.
JPEG is the widely used method of lossy compression method that is used for photograph image.Because jpeg algorithm is regarded as the best to the tone with level and smooth change and the actual scene photo of color, so JPEG is most popular digital camera storage format.On the other hand, YUV is welcome color space, is used for normal simulation and the digital picture/video relevant with JPEG.YUV considers people's perception, and with brightness (Y) and two colourities (UV) composition definition color space.The resolution of chroma data is lowered the factor 2, often be called downsampled, in order to reflect human eye to trickle color detail than the more insensitive fact of meticulous luminance detail.For the JPEG coding, YUV422 or YUV420 pattern (downsampled ratio) generally are to be used for reducing size of data with memory image.YUV422 (also being YUV (4:2:2)) is to reduce the factor 2 in the horizontal direction, and YUV420 (also being YUV (4:2:0)) reduces the factor 2 in level and vertical direction.Then, the image of representing with YUV is divided into the block of 6 * 6 pixels.For each block, each Y, U and V data all must experience discrete cosine transform (DCT).
For example, for the YUV422 pattern, 16 (level) * 8 (vertically) blocks (block that also promptly comprises adjacent 8 * 8 pixels of two levels) comprise 28 * 8Y plane, one 8 * 8U plane and one 8 * 8V plane.For the JPEG coding, 28 * 8Y plane, one 8 * 8U plane and one 8 * 8V plane are to be fed in the jpeg coder with following processing order in regular turn: Y plane, Y plane, U plane, V plane, Y plane, Y plane, U plane, V plane etc.Above-mentioned tandem generally is to be expressed as (Y 0Y 1UV) (Y 0Y 1UV) (Y 0Y 1UV) ... tandem.Similarly, for the YUV420 pattern, one 16 (level) * 16 (vertically) block (2 * 2 blocks that also promptly comprise 8 * 8 pixels) comprises 48 * 8Y plane, 28 * 8U plane and 28 * 8V plane.Encode for JPEG, 48 * 8Y plane, 28 * 8U plane and 28 * 8V plane are to be fed in the jpeg coder with following processing order in regular turn: Y plane, Y plane, Y plane, Y plane, U plane, V plane, Y plane, Y plane, Y plane, Y plane, U plane, V plane etc.Above-mentioned tandem generally is to be expressed as (Y 0Y 1Y 2Y 3UV) (Y 0Y 1Y 2Y 3UV) (Y 0Y 1Y 2Y 3UV) ... tandem.
For the image rotation processing, the most direct method is that the entire frame image that extracted of memory image input unit is to memory.Then, for show image rotating in LCD or document image to storage device, the view data of being stored can be rotated order and be read.Yet this method needs lot of data with storage entire frame image.For example, United States Patent (USP) the 7th, 352, disclose a kind of block coding method and system for No. 904, can be on longitudinal direction with scan compression serial data in advance to each block of compressed image, encode and dateout by the initial address that obtains to import in the packed data string, the rotation blocks can be spent and obtain 90 by spending rotation saw-tooth arrangement, quantification and IDCT at longitudinal direction at last Philip Seymour Hoffman (Huffman) coding, 90 that carries out by the system that makes.
For reducing required amount of memory, developed diverse ways.For example, United States Patent (USP) the 7th, 489 discloses a kind of use for No. 823 and enters data set (reentry data set) once more to detect method of compressing data, and wherein packed data is received and decodes.Collect in coding stage at a JPEG earlier and enter data set once more, access during decoding then.During primary importance in decoding packed data, the block of decoding finishes (EOB) flag and is detected.Enter data set once more and have index, point to the second place in the packed data, be right after after primary importance, and decoded information allows decoding be begun by the second place.The second place in the packed data is by access, and entered decoded information in the data once more in order to continue being decoded by the packed data of the second place by access.The information of entering is to collect in coding stage at a JPEG once more, decodes at rotation then.For rotation, it is decoded to enter data set once more, is used for the 2nd JPEG coding/compression stage then, so that the input picture on the required direction of rotation is encoded.
Fig. 1 is shown as the schematic diagram of the information that enters once more of YUV422 pattern collection.As shown in Figure 1, the information of entering comprises the initial address of each Y plane, U plane and V plane coding bit string once more, and direct current (DC) reference value on each Y plane, U plane and V plane in the frequency domain.Therefore, for the YUV422 pattern, the image block of 16 * 8 pixels will need to write down the initial address and the DC reference value on four planes.Similar, for the YUV420 pattern, the image block of 16 * 16 pixels will need to write down the initial address and the DC reference value on six planes.
Summary of the invention
The present invention has been used to overcome the above-mentioned shortcoming of using demonstration of JPEG compression/de-compression and document image spinning solution.Main purpose of the present invention provides that a kind of JPEG of use shows and the method and the device of record color image rotation, enters amount of information once more with what reduce required storage.By reducing the information that enters once more, the memory and the time of collecting and handling the information that enters once more can be lowered, so as to strengthening the performance that the coloured image rotation is calculated.
Another object of the present invention provides a kind of JPEG of use compression and the method and the device of decompress demonstration and record color image rotation, allows more level and smooth decoding processing show transfer processing to make things convenient for non-jitter, to strengthen the user friendly of display system.
For achieving the above object, the invention provides the method and the device of a kind of JPEG of use compression and decompress demonstration and record color image rotation.This method may further comprise the steps: the operator scheme of setting jpeg coder and jpeg decoder respectively; Wait is prepared coding up to view data; Carry out the JPEG coding and enter information processing once more; Wait is up to the compression of finishing the entire frame image; Set the operator scheme of jpeg coder; And then carry out the JPEG decoding and enter information updating once more handling.For display image on image output device, this method may further comprise the steps: show to handle; Wait is finished up to the JPEG decoding; And show that last image is on display.In this, finish the processing that single frame shows.On the other hand, for being recorded to mass storage devices, this method may further comprise the steps: standard non-destructive JPEG coding; Wait is finished up to the JPEG coding; And store last coded data to mass storage devices.At this moment, finish the processing of the single two field picture of record.
The device of use JPEG provided by the invention compression and decompress demonstration and record color image rotation comprises: a jpeg coder has DC DPCM and removes mechanism and zero padding characteristic; One enters the information gathering module once more; And a jpeg decoder, have DC DPCM and remove mechanism and zero padding escape characteristic.
The present invention is by reducing the information that enters once more, and the memory and the time of collecting and handling the information that enters once more can be lowered, and strengthens the performance that the coloured image rotation is calculated.Above-mentioned and other purpose of the present invention, characteristic, characteristics and advantage will be by careful reading detailed description wherein and the suitable better understandings that becomes with reference to the accompanying drawings.
Description of drawings
Fig. 1 is used for the collected schematic diagram that enters information once more of YUV422 pattern for showing in the conventional color image spinning solution.
Fig. 2 is for showing according to the present invention to use the JPEG compression/de-compression to show the also schematic diagram of record color image whirligig in the applied environment of image.
Fig. 3 uses the JPEG compression/de-compression in order to show the also flow chart of the method for record color image rotation for showing according to the present invention.
Fig. 4 is for showing according to the present invention by comprising DC DPCM anergy mechanism and (Y 0UVY 1) input tandem the schematic diagram that disposes the collected information that enters once more again.
Fig. 5 is for showing the schematic diagram that enters information index memory and increase size memory according to the present invention in order to storage once more.
Fig. 6 shows the example that rotates 32 * 16 pixel color images of YUV422 pattern according to the present invention.
The detailed process of the rotary manipulation of example in Fig. 7 A-Fig. 7 H figure displayed map 6.
Description of reference numerals in the above-mentioned accompanying drawing is as follows:
200 coloured image whirligigs
The 201JPEG encoder
203 enter information gathering once more
The 205JPEG decoder
210 image-input devices
The conversion of 220 color spaces
The conversion of 220A RGB to YCbCr color space
The downsampled device of 220B color
230 image output line buffers
240 compressed data buffer
250 a large amount of memory device interface controllers
260 a large amount of store storage apparatuses
270 display line buffers
280 display interface controllers
290 image output devices
301~309B step
701~740 steps
Embodiment
Following conjunction with figs. and component symbol are done more detailed description to embodiments of the present invention, and those of ordinary skills can be implemented after studying this specification carefully according to this.
Fig. 2 is for showing according to the present invention to use the JPEG compression/de-compression to show the also schematic representation of apparatus of record color image rotation in the applied environment of image.As shown in Figure 2, the device 200 of demonstration of the present invention and record color image rotation comprises jpeg coder 201, enters information gathering module 202 and jpeg decoder 203 once more, wherein jpeg coder 201 has hardware direct current (DC) difference pulse code modulation (DPCM) and removes control and zero padding characteristic, has DC DPCM and removes control and zero padding escape characteristic and enter information gathering module 202 and jpeg decoder 203 once more.It should be noted that jpeg coder 201 and jpeg decoder 203 all utilize DC DPCM to remove mechanism and zero padding (or escape) characteristic and strengthen.DC DPCM removes the machine-processed DC value that allows jpeg coder 201 store each Y plane, U plane and V plane in the phase I coding bit string, but defined restarting indicates RST0-RST7 (0xFFD0-0xFFD7) in the non-Joint Photographic Experts Group.DC DPCM releasing mechanism and zero padding (or escape) characteristic of bit group border to memory and performance are provided, will further describe in detail more in this article.
As shown in Figure 2, the device 200 of demonstration of the present invention and record color image rotation is placed between image-input device 210 and a large amount of store storage apparatus 260, so that be rotated to being stored to the image that is extracted by image-input device 210 before a large amount of store storage apparatuses 260, and before being shown on the image output device 290 in the image in will being stored in a large amount of store storage apparatuses 260, be placed between a large amount of store storage apparatuses 260 and the image output device 290.As shown in Figure 2, the image that image-input device 210 is extracted is direct or changed 220 feed-in image output line buffers 230 via color space before image output line buffer 230, at phase I JPEG coding of the present invention, encode then by jpeg coder 201 with DC DPCM releasing mechanism and zero padding characteristic.Color space conversion 220 comprises RGB to YCbCr color space conversion 220A and the downsampled device 220B of color, so that the rgb format of the coloured image that image-input device 210 is extracted converts the yuv format that is used for phase I JPEG coding of the present invention to.For showing image rotating in image output device 290, JPEG coding bit is being connected in series by jpeg decoder 205 decodes, and transmits and is shown in image output device 290 through display line buffer 270 and display interface controller 280 then.On the other hand, before being stored in a large amount of store storage apparatuses 260 via compressed data buffer 240 and a large amount of memory device interface controller 250, JPEG coding bit string also can be decoded then through second stage JPEG encoding process (also being jpeg coder 201) by jpeg decoder 205.
Fig. 3 uses the JPEG compression/de-compression to show the also flow chart of the method for record color image rotation for showing according to the present invention.This flow chart uses the YUV422 pattern to be used as exemplary case, and similar for the explanation of YUV420.Utilize the device 200 of demonstration and the record color image rotation of Fig. 2, as shown in Figure 3, step 301 is set respectively and is shown and the jpeg coder 201 of the device 200 that record color image rotates and the operator scheme of jpeg decoder 205.The operator scheme of setting jpeg coder 201 comprises that releasing jpeg coder DPCM, the input of setting plane conspire to create YUVY and alignment enables the zero padding of Y plane at the bit group.Similarly, the operator scheme of setting jpeg decoder 205 comprises that releasing DC DPCM calculates, sets the plane input and conspires to create YUVY, enables jpeg decoder to jump to the beginning of next bit group when finish on the Y plane.Step 302 is waited for up to view data and is prepared coding.When view data was ready to, step 303 was carried out the JPEG coding and is entered information processing once more.Step 304 is waited for up to the compression of finishing the entire frame image.After the compression of finishing two field picture, the operator scheme of the following setting jpeg coder 201 of step 305: the zero padding of Y plane and the setting quantized value that enable jpeg coder DPCM, set plane input string YYUV, releasing are used for the bit group become 1, also are lossless mode.Step 306 carries out the JPEG decoding and enters information updating once more handling.
After step 306, processing can adopt step 307A to be used for show handling so that display image in image output device, or adopts step 307B to be used for standard non-destructive JPEG coding to be recorded to mass storage devices.Handle branch (step 307A) at showing, step 307B waits for up to the JPEG decoding and finishing, and when the JPEG decoding was finished, last image was shown in display, shown in step 309A.At this moment, finish the processing that frame shows.Similarly, for being recorded to mass storage devices (step 307B), step 308B waits for up to the JPEG coding and finishing, and when the JPEG coding was finished, last coded data was placed into mass storage devices, shown in step 309B.At this moment, finish the processing of the single two field picture of record.
It should be noted that as shown in Figure 3,, need second stage JPEG encoding process for the standard JPEG that stores image rotating encodes the bit string to mass storage devices.Second stage JPEG encoding process is the JPEG encoding process of standard.For keeping the quantized result of phase I JPEG encoding process of the present invention, quantized value is configured to 1, and also, second stage standard JPEG encoding process is the lossless compress to phase I JPEG coding result, shown in step 307B.
Main feature that also it should be noted that the inventive method is to change plane input tandem to jpeg coder and jpeg decoder, shown in step 301 and step 305.At the YUV422 pattern, plane input tandem is by traditional (Y 0Y 1UV) (Y 0Y 1UV) (Y 0Y 1UV) ... change over (Y 0UVY 1) (Y 0UVY 1) (Y 0UVY 1) ... to phase I coding, wherein Y 0And Y 1Be to change mutually.In addition, (Y 0UVY 1) decoding is convenient to tandem to clockwise rotation JPEG, and (Y 1UVY 0) decoding is convenient to tandem to inverse clock rotation JPEG.Similarly, for the YUV420 pattern, plane input tandem is by traditional (Y 0Y 1Y 2Y 3UV) (Y 0Y 1Y 2Y 3UV) (Y 0Y 1Y 2Y 3UV) .. changes over (Y 2Y 0UVY 3Y 1) (Y 2Y 0UVY 3Y 1) (Y 2Y 0UVY 3Y 1) ... to phase I coding, wherein Y 2And Y 0Be to change mutually, and Y 3And Y 1Also can change mutually.In addition, (Y 2Y 0UVY 3Y 1) decoding is convenient to tandem to clockwise rotation JPEG, and (Y 1Y 3UVY 0Y 2) decoding is convenient to string to inverse clock rotation JPEG.
Utilize the change of above-mentioned plane input tandem, at the phase I coding, the information that enters once more that needs to collect is reduced to two start addresss.For the YUV422 pattern, two start addresss that are included in the information that enters once more are a Y plane of YUVY tandem and the start address on U plane.And for the YUV420 pattern, two start addresss that are included in the information that enters once more are a Y plane of YYUVYY tandem and the start address on U plane.By this way, the memory that needs storage to enter information is once more significantly reduced, and the processing time also shortens.
In addition, enter once more the required memory of information except reducing, the JPEG decoding processing also will become more smooth-going because of the time of the start address of coding bit string.For the YUV422 pattern, the decompressed YUV value with the coloured image that obtains single 8 * 8 block of pixels in three planes is arranged now.(Y 0UVY 1) configuration of tandem allows jpeg decoder to Y 0UV three planes or UVY 1Decode in three planes, to obtain the coloured image of single 8 * 8 block of pixels.For the YUV420 pattern, face decompressed YUV value with the coloured image that obtains 28 * 8 block of pixels in Siping City's is arranged now.(Y 2Y 0UVY 3Y 1) configuration of tandem allows jpeg decoder to Y 2Y 0UV Siping City face or UVY 3Y 1Siping City's face is decoded, to obtain the coloured image of 2 16 * 8 block of pixels.Usefulness is enhanced and global solution compresses more efficient and smooth-going.
As mentioned above, jpeg coder 201 is removed machine-processed the reinforcement with DC DPCM.Comprise DCDPCM and remove mechanism, as shown in Figure 4, enable (Y 0UVY 1) configuration again of input tandem, with reduce need be coding/compression calculating store enter amount of information once more.As shown in Figure 4, (Y 0UVY 1) the input tandem has DC DPCM by feed-in and remove in the jpeg coder of mechanism.For JPEG coding/compression, DPCM is disengaged, and the DC reference value that is used for the information that enters once more is to be stored in coding/compressed bits string, indicates and need not to insert JPEG definition RESTART.The information that enters once more of collecting as shown in Figure 4, comprises Y 0Plane coding bit start of string address and U plane coding bit start of string address.
For further reducing the size that record enters the required memory of information once more, can use extra mechanism.Y is not stored in Fig. 5 demonstration 0The whole start address of plane coding bit string and U plane coding bit string but can use index store and increase size memory to rebuild start address.As shown in Figure 5, the start address of index store memory encoding bit string, and increase size memory storage Y 0Plane coding bit size or U plane, V plane and Y 1The sum total of the coding bit size on plane.Parenthetic address number such as (address 0), is meant the address of the memory location of this value of storage.For example, the start address of the row 1 of address 0 storage 8 * 8 coding bit strings of index store, 1st Y is stored in the address 0 that increases size memory 0All bit sums in the plane, and the address 1 storage 1st U+V+Y of increase size memory 1All bit sums in the plane.By this way, Y 0The actual start address of plane coding bit string and U plane coding bit string can utilize and be stored in index store and increase the numerical value in the size memory and rebuild.
Fig. 6 shows the example that rotates 32 * 16 pixel color images of YUV422 pattern according to the present invention.As shown in Figure 6,32 * 16 pixel color images are divided into eight 8 * 8 blocks, are labeled as (1,1), (1,2), (1,3), (1,4), (2,1), (2,2), (2,3) and (2,4) respectively.Arrow color display data input sequence under the original color pixel.32 * 16 coloured images are carried out 90 ° of clockwise rotations, to become 16 * 32 coloured images, as shown in Figure 6.Arrow on the rotary color pixel shows the DISPLAY ORDER of bit string.On original 32 * 16 colour elements and beneath remaining Y plane, U plane and V plane is all planes that need be rotated operational processes.Because exemplary case is the YUV422 pattern, be used for per two adjacent block (also being single 16 * 8 images) so comprise Siping City's face.Therefore, original 32 * 16 colour elements will be divided into four parts, be labeled as 1st, 2nd, 3rd and 4th respectively.
The detailed process of rotary manipulation in Fig. 7 A-Fig. 7 H displayed map 6.Shown in Fig. 7 A, step 701 reads index store with address 1 to obtain 3rd Y 0The beginning bit address on plane, and step 702 at (2,1) block with decoding 3rd Y 0Plane, 3rd U plane, 3rd V plane.Similarly, step 703 reads the increase memory of tool address 4 to obtain 3rd Y 0The coding bit string size on plane, and step 704 is at (2,2) block JPEG decoding, with 3rd Y 0The plane begins bit address and 3rd Y 0The sum total of plane coding bit size is written back to index store address 1.It should be noted that the access index store and increase size memory and can carry out simultaneously.Step 705 decision 3rd Y 0Whether plane, 3rd U plane, the decoding of 3rd V plane are finished; If then handle and proceed to step 706; Otherwise, handle and get back to step 702.
Similarly, in Fig. 7 B, step 706 reads index store with address 0 to obtain 1stY 0The beginning bit address on plane, and replacement JPEG Huffman decoder, and step 707 at (1,1) block with decoding 1st Y 0Plane, 1st U plane, 1st V plane.Similarly, step 708 reads increase memory with address 0 obtaining the coding bit string size on 1st Y0 plane, and step 709 is at (1,2) block JPEG decoding, with 1st Y 0The plane begins bit address and 1st Y 0The sum total of plane coding bit size is written back to index store address 0.Step 710 decision 1st Y 0Whether plane, 1st U plane, the decoding of 1st V plane are finished; If then handle and proceed to step 711; Otherwise, handle and get back to step 707.
Fig. 7 C shows 3rd U plane, 3rd V plane, 3rd Y 1The decoding on plane.Shown in Fig. 7 C, step 711 reads index store with address 1 obtaining the beginning bit address on 3rd U plane, and replacement JPEG Huffman decoder, and step 712 at (2,2) block with decoding 3rd U plane, 3rd V plane, 3rd Y 1The plane.Similarly, step 713 reads increase memory with address 5 to obtain 3rd U+V+Y 1The coding bit string size on plane, and step 714 is at (2,3) block JPEG decoding, with 3rd Y 0The plane begins bit address and 3rd U+V+Y 1The sum total of plane coding bit size is written back to index store address 1.Whether step 715 decision 3rd U plane, 3rd V plane, the decoding of 3rd Y1 plane are finished; If then handle and proceed to step 716; Otherwise, handle and get back to step 702.
Similarly, the step 716-720 of Fig. 7 D is in order to decoding 1st U plane, 1st V plane and 1st Y 1The step on plane.The step 721-725 of Fig. 7 E is in order to decoding 4th Y 0The step on plane, 4th U plane and 4th V plane.The step 726-730 of Fig. 7 F is in order to decoding 2nd Y 0The step on plane, 2nd U plane and 2ndV plane.The step 731-735 of Fig. 7 G is in order to decoding 4th U plane, 4th V plane and 4thY 1The step on plane.The step 736-740 of Fig. 7 H is in order to decoding 2nd U plane, 2nd V plane and 2nd Y 1The step on plane.Omit all detailed descriptions at this.
As mentioned above, jpeg coder 201 of the present invention and jpeg decoder 205 are also strengthened with the zero padding characteristic, to provide the zero padding bit to bit group border, the feasible start address that enters the bit string of information once more can align, and is used as the start address of bit displacement tuple.When Y plane coding bit string size just in time is not a plurality of bit group, by the zero padding bit to the Y plane.Zero padding to bit group border can reduce index store and increase the big or small of size memory and enter the information processing complexity once more, is based on the bit group address now but not the bit address because handle.Jpeg decoder with zero padding characteristic will allow decoding jump to the beginning of next bit tuple when decoded in the Y plane.
Therefore, utilize zero padding, be used for the Y of configuration of JPEG decoding at the Y plane 0UVY 1The input tandem, Y 0The start address on plane and U plane just in time is positioned at bit group border at the YUV422 pattern.The information of entering will comprise the start bit unit group address of JPEG coding bit string once more, but not comprise the bit address.Similarly, for the YUV420 pattern, utilize at Y 0Plane and Y 1The zero padding on plane is the second and the 4th Y plane also, is used for the Y of configuration of JPEG decoding 2Y 0UVY 3Y 1Input tandem, the information that enters once more also will comprise the start bit unit group address of JPEG coding bit string.
In addition, for showing image rotating on image output device, after phase I JPEG encoding process of the present invention, index store must be stored to and open initial value.Index store is stored to and opens initial value and can handle by translation and finish, and also promptly open initial value by translation so that be stored in the value that the value of address n becomes address n-1, and the value of address 0 is to be configured to 0.
Though be that order with best practice YUVY input tandem explains at the YUV422 pattern in the foregoing description, therefore do not limit the scope of the invention, for example also can adopt YVUY input tandem, all can reach identical effect.If use YVUY, then write down the compression tandem start address on first Y plane and V plane.Though in like manner explain at the order of this enforcement of YUV420 pattern with best practice YYUVYY input tandem, therefore do not limit the scope of the invention yet, for example also can adopt YYVUYY input tandem, also can reach identical effect.When using the YYVUYY order, then write down the compression tandem start address on first Y plane and V plane.
Though the present invention describes with reference to preferred embodiment, be appreciated that the present invention is defined in illustrated details.Other have substituted and have revised suggestion in the above description, and other will occur on those of ordinary skills.Therefore, all these to substitute and revise all be will be comprised in as within the defined invention scope in the claims.

Claims (10)

1. one kind shows and the method for record color image rotation, be applicable to that one has the device that a jpeg coder, enters an information gathering module and a jpeg decoder once more, this jpeg coder has DCDPCM and removes mechanism and zero padding characteristic, this jpeg decoder has DC DPCM and removes mechanism and zero padding escape characteristic, and this method comprises:
Set the operator scheme of this jpeg coder and this jpeg decoder respectively;
Wait is prepared coding up to view data;
Carry out the JPEG coding and enter information processing once more;
Wait is up to the compression of finishing the entire frame image;
Set the operator scheme of this jpeg coder;
Carry out the JPEG decoding and enter information updating once more handling; And
Show/recording processing that this demonstration/recording processing further may further comprise the steps:
Be used to show that image rotating is in image output device:
Show and handle;
Wait is finished up to the JPEG decoding; And
Show last image on this image output device to finish the rotary color image that shows single frame; And
Be used to write down image rotating to mass storage devices:
Can't harm the JPEG coding;
Wait is finished up to the JPEG coding; And
Deposit last coded image in this mass storage devices to finish the rotary color image of the single frame of record.
2. according to the described method of claim 1, wherein
This step of setting the operator scheme of this jpeg coder and this jpeg decoder respectively further may further comprise the steps:
Remove jpeg coder DPCM;
Set plane input tandem to this jpeg coder, if the YUV422 pattern, then this plane input tandem is made as YUVY with YVUY is wherein a kind of, if YUV 420 patterns, then this plane imports that tandem is made as YYUVYY and YYVUYY is wherein a kind of;
Enable this jpeg coder Y plane zero padding to be used for the alignment of bit group;
Removing jpeg decoder DC DPCM calculates;
Set plane input tandem to this jpeg coder, if YUV422 pattern, then input tandem in this plane is made as YUVY and YVUY is wherein a kind of, and must be identical with the plane input tandem in the abovementioned steps, if YUV 420 patterns, then input tandem in this plane is made as YYUVYY with YYVUYY is wherein a kind of, and must to import tandem identical with the plane in the abovementioned steps; And
When finishing the Y plane, enable this jpeg decoder to jump to the beginning of next bit tuple.
3. according to the described method of claim 1, wherein
This step of setting this jpeg coder may further comprise the steps:
Enable jpeg coder DPCM;
Set plane input tandem to this jpeg coder, if the YUV422 pattern, then this plane input tandem is made as YUVY with YVUY is wherein a kind of, if YUV 420 patterns, then this plane imports that tandem is made as YYUVYY and YYVUYY is wherein a kind of;
Remove Y plane zero padding to be used for the alignment of bit group; And
Set quantized value and become 1 to become lossless mode.
4. according to the described method of claim 2, wherein
The step of this releasing DC DPCM comprises that further not inserting the defined RESTART of standard JPEG indicates.
5. according to the described method of claim 2, wherein
This once more the information of entering comprise this YUVY input tandem that is used for the YUV422 pattern and be used for the start address on first Y plane of this YYUVYY input tandem of YUV420 pattern and the start address on U plane.
6. according to the described method of claim 2, wherein
This once more the information of entering comprise this YVUY input tandem that is used for the YUV422 pattern and be used for first Y plane of this YYVUYY input tandem of YUV420 pattern and the compression tandem start address on V plane.
7. according to claim 5 or 6 described methods, wherein
This enters information once more and rebuilds by total bit number in U plane, V plane and the Y plane of bit number in the Y plane of the start address of coding bit string, the bit string of encoding and coding bit string.
8. one kind shows and the device of record color image rotation, comprising:
One jpeg coder has DC DPCM and removes mechanism and zero padding characteristic;
One enters the information gathering module once more; And
One jpeg decoder has DC DPCM and removes mechanism and zero padding escape characteristic.
9. according to the described device of claim 8, wherein
This enters the information gathering module once more and comprises that further one is used for the increase size memory of total bit number on the index store of address of beginning bit of memory encoding bit string and a U plane in order to memory encoding bit string, V plane and Y plane.
10. according to the described device of claim 9, wherein
This index store can open initial value with storage by translation.
CN 201010207470 2010-06-17 2010-06-17 Method and device for displaying and recording colored image rotation Expired - Fee Related CN102291576B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010207470 CN102291576B (en) 2010-06-17 2010-06-17 Method and device for displaying and recording colored image rotation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010207470 CN102291576B (en) 2010-06-17 2010-06-17 Method and device for displaying and recording colored image rotation

Publications (2)

Publication Number Publication Date
CN102291576A true CN102291576A (en) 2011-12-21
CN102291576B CN102291576B (en) 2013-07-10

Family

ID=45337648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010207470 Expired - Fee Related CN102291576B (en) 2010-06-17 2010-06-17 Method and device for displaying and recording colored image rotation

Country Status (1)

Country Link
CN (1) CN102291576B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10341345A (en) * 1997-06-05 1998-12-22 Kokusai Electric Co Ltd Image data processing system
CN1953502A (en) * 2005-10-17 2007-04-25 三星电子株式会社 Image data processing apparatus and method using error diffusion

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10341345A (en) * 1997-06-05 1998-12-22 Kokusai Electric Co Ltd Image data processing system
CN1953502A (en) * 2005-10-17 2007-04-25 三星电子株式会社 Image data processing apparatus and method using error diffusion

Also Published As

Publication number Publication date
CN102291576B (en) 2013-07-10

Similar Documents

Publication Publication Date Title
CN103188495B (en) The method of coded video data
CN104244007B (en) Image coding method and device and decoding method and device
CN107273301A (en) Data handling system
CN110691250B (en) Image compression apparatus combining block matching and string matching
GB2451911A (en) Data compression using wavelet transformation
CN1794814A (en) Pipelined deblocking filter
WO2005027506A1 (en) Methods of compressing still pictures for mobile devices
CN103826028A (en) Method and device for compressing picture in lossless way
WO2022117114A1 (en) Systems and methods for transformation based on an intra block copy (ibc) mode
CN101494788B (en) Method and apparatus for compressing and decompressing video image
TWI290438B (en) A pipelined deblocking filter
CN103716634B (en) Method and apparatus for data compression using error plane coding
CN106254877A (en) Processing system for video
CN100559882C (en) Image processor and method
JP2022043029A (en) Method for encoding digital image, decoding method, associated device, user terminal and computer program
CN100539700C (en) Method for encoding images and device
JP3530125B2 (en) Method and apparatus for forming structured polygon mesh data, and storage medium
US8306346B2 (en) Static image compression method and non-transitory computer readable medium having a file with a data structure
US11967119B2 (en) Systems and methods for coding
WO2006049413A1 (en) Mobile terminal and operating method thereof
CN102291576B (en) Method and device for displaying and recording colored image rotation
CN103139566A (en) Method for efficient decoding of variable length codes
CN106464882A (en) Techniques for processing video frames by a video encoder
TWI426465B (en) Method and apparatus of color image rotation for display and recording using jpeg
JP2001061067A (en) Image processing unit, its method, data processing unit and its control 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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130710

Termination date: 20140617

EXPY Termination of patent right or utility model