WO2010031259A1 - 图像解码和缩放的方法及装置、图像显示系统 - Google Patents

图像解码和缩放的方法及装置、图像显示系统 Download PDF

Info

Publication number
WO2010031259A1
WO2010031259A1 PCT/CN2009/071362 CN2009071362W WO2010031259A1 WO 2010031259 A1 WO2010031259 A1 WO 2010031259A1 CN 2009071362 W CN2009071362 W CN 2009071362W WO 2010031259 A1 WO2010031259 A1 WO 2010031259A1
Authority
WO
WIPO (PCT)
Prior art keywords
scaling
decoding
stripe
unit
image block
Prior art date
Application number
PCT/CN2009/071362
Other languages
English (en)
French (fr)
Inventor
孟新建
石彦
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2010031259A1 publication Critical patent/WO2010031259A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/59Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial sub-sampling or interpolation, e.g. alteration of picture size or resolution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/423Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements
    • H04N19/426Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements using memory downsizing methods
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/44Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder

Definitions

  • the present invention relates to the field of image processing, and in particular, to a method and apparatus for image decoding and scaling, and an image display system.
  • JPEG is developed by the Joint Photographic Exper t s Group and is the most commonly used compression standard for still images.
  • the JPEG compression standard is widely used in products and fields such as digital cameras, digital photo frames, network transmission, and Internet web pages. In practical applications, it is usually necessary to first decode the image in JPEG format, then scale the decoded image, and finally output the scaled image to the display or perform other operations.
  • JPEG Joint Photographic Experts Group
  • DCT Discrete Cosine Transform
  • JPEG uses the chroma format of YCbCr, which divides the original image data into 8x8 macroblocks, and encodes the three components of Y, Cb, and Cr of each macroblock according to their respective ratios.
  • Minimum coding unit Mini leg m Coding Uni t, MCU.
  • MCU Minimum coding unit
  • the decoding process mainly includes entropy decoding, inverse quantization and discrete cosine inverse transform.
  • the prior art typically uses spatial scaling to scale. Performing line-by-row scaling on each scan line in the decoded image; when scaling the pixels in the current scan line, the pixel area in the scan line adjacent to the current scan line is also needed in the decoded image. data.
  • the processing method used when decoding and scaling a JPEG format image is Code and scaling are two separate processes. First, the entire image of one frame is decoded, and the data of the decoded whole frame image is stored in the memory; when zooming, the scan line currently needed to be scaled and the data of the adjacent row of the scan line are read from the memory. , Scales the current scan line.
  • Embodiments of the present invention provide a method and apparatus for image decoding and scaling, and an image display system, which reduces the occupied storage resources when decoding and scaling an image.
  • a method of image decoding and scaling comprising:
  • the current image is divided into at least three strips, the strip includes a plurality of consecutive minimum image encoding units, and the following steps are performed to complete the decoding and scaling of the image:
  • the at least one stripe-decoded unscaled reconstructed image block of the current image is scaled according to a scaling order, and the stripe scaling completion indication information is output.
  • An image decoding and scaling apparatus includes:
  • control unit configured to divide the current image into at least three stripes, configure, control the decoding unit, and the scaling unit;
  • a decoding unit configured to decode, according to the striping, the at least one stripe according to the decoding sequence, to obtain the stripe-decoded reconstructed image block, and output stripe decoding completion indication information
  • An image display system comprising:
  • a storage interface unit configured to obtain an original image from an external storage medium
  • control unit configured to divide the current image into at least three stripes, configure, control the decoding unit, and the scaling unit;
  • a decoding unit configured to decode, according to the striping, the at least one stripe according to the decoding sequence, to obtain the stripe-decoded reconstructed image block, and output stripe decoding completion indication information
  • a stripe storage unit configured to store a stripe-decoded reconstructed image block output by the decoding unit
  • a scaling unit configured to: according to the stripe decoding completion indication information, at least one stripe in the stripe storage unit according to a scaling order Decoding the reconstructed image block to perform scaling, and outputting stripe scaling completion indication information
  • a display storage unit configured to store the reconstructed image block after the current image is scaled
  • a display output unit configured to output the scaled reconstructed image block stored in the display storage unit in display order.
  • the image is divided into at least three strips; the following steps are looped until the image decoding and scaling are completed: according to the stripe scaling completion indication information, the current at least one stripe is decoded according to the decoding order, and the weight of the stripe decoding is obtained.
  • the image block is output, and the stripe decoding completion indication information is output; according to the stripe decoding completion indication information, the reconstructed image block decoded by the at least one stripe of the current image is scaled according to the scaling order, and the stripe scaling completion indication information is output.
  • the memory only needs to store a plurality of decoded image blocks after decoding the image in the process of decoding and scaling the image, and does not need to store the reconstructed image after decoding the entire frame image after decoding the complete frame image, thereby Reduce the storage resource consumption and save storage space.
  • FIG. 2 is a schematic diagram of a method for image decoding and scaling according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of another method for image decoding and scaling according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a method for performing inverse discrete cosine transform with frequency domain scaling according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of an image decoding and scaling apparatus according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of an image display system according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a digital photo frame according to an embodiment of the present invention.
  • an embodiment of the present invention provides a method for image decoding and scaling, including:
  • the size of each strip may be determined based on the ratio of the size of the original image to the size of the image display, the storage allocation, and the decoding processing capability, the strip including a plurality of consecutive minimum image encoding units.
  • the method includes: decoding the first stripe and the second stripe of the current image according to the decoding order, respectively obtaining the reconstructed image block corresponding to the first stripe and the second stripe , scales the reconstructed image block of the first stripe.
  • the indication information is expanded according to the strip, according to the predetermined The stripe size, the image decoding of at least one stripe is performed in the decoding order, and the stripe decoding completion indication information is output.
  • stripe decoding completion indication information scale the at least one stripe-decoded unscaled reconstructed image block of the current image according to a scaling order, and output stripe scaling completion indication information.
  • the reconstructed image block decoded by the at least one stripe is spatially scaled to a specified display image size according to the scaling order, and the output stripe scaling is completed. Instructions.
  • decoding and scaling are performed in units of strips, and decoding and scaling are performed in a crossover manner, so that the buffer for decoding and scaling requires only three stripe-sized capacities, thereby saving storage resources.
  • a method for image decoding and scaling provided by another embodiment of the present invention includes:
  • the current image is divided into at least three stripes, and the strip includes a plurality of consecutive minimum image coding units;
  • the stripe is defined to include one or more consecutive minimum image coding unit rows.
  • the size of the divided strips can be determined according to the storage allocation and decoding capabilities.
  • the strip takes a minimum coding unit (Minim for Coding Uni t, MCU), and the format of the JPEG file is Basel ine4: 2: 0, then one MCU includes Y component 16 x 1 6 and Cb component 8 x 8 , Cr component 8 ⁇ 8. Therefore, when the original image size of the JPEG file is 4672 X 3504 and the frequency domain scaling is 4, a stripe of the JPEG file is decoded by frequency domain scaling, and the output reconstructed image block is a Y component. 1 168 x 4, Cb component 584 x 2, Cr component 584 x 2 , the stripe needs to occupy a storage capacity of 7008 bytes.
  • the decoding performs frequency domain scaling on the strip according to the configured frequency domain ratio.
  • Entropy decoding and inverse quantization of a stripe of the JPEG file according to the decoding order performing inverse discrete cosine transform with frequency domain scaling according to horizontal scale 4 of frequency domain scaling, vertical ratio 4, and outputting over frequency domain
  • the stripe of the decoded reconstructed image block is scaled, and the "one stripe decoding completion" indication information is output.
  • the decoding unit When there is no stripe of the JPEG file that is not decoded, the decoding unit no longer performs decoding, and outputs "image decoding complete" indication information.
  • the decoding process further performs frequency domain scaling on the strip according to the configured frequency domain ratio to further save space, including:
  • the respective scaling parameters of the frequency domain scaling and the spatial domain scaling may be determined according to the ratio of the size of the original image to the size of the image display, and the decoding capability.
  • the frequency domain scaling ratio parameter If the required LCD display resolution is 800 X 480 and the memory SDRAM capacity is 8 MByte s, the memory can be allocated to the strip buffer area with a storage capacity of 1.2 MBytes.
  • the step of determining the frequency domain ratio parameter comprises: obtaining a JPEG file; determining that the related format information of the file is Ba se l ine4 : 2: 0 format, and the original image size of the file is 4672 ⁇ 3504.
  • the frequency domain scaling factor be expressed as K; the value of K is 1, 2, 4, 8.
  • the frequency domain scaling factor be expressed as K; the value of K is 1, 2, 4, 8.
  • a method of performing inverse discrete cosine transform with frequency domain scaling according to a ratio of frequency domain scaling includes:
  • the first intermediate coefficient matrix is represented as T.
  • the first intermediate coefficient matrix transposed coefficient matrix to obtain a second intermediate, the second intermediate coefficient matrix ⁇ ⁇ .
  • the third intermediate coefficient matrix is denoted as ⁇ '.
  • the inverse discrete cosine transform operation with frequency domain scaling can effectively reduce the complexity of the discrete cosine inverse transform operation, and avoid frequency domain scaling. Large, so as to better guarantee the quality of the image after scaling.
  • the stripe buffer in memory can be a first in first out (FIFO) buffer queue.
  • FIFO first in first out
  • the storage area corresponding to the reconstructed image block that is the first to be scaled in the current memory is determined, and the reconstructed image block decoded by the stripe is stored in the storage area.
  • the memory stores three stripe-decoded reconstructed image blocks. Therefore, starting from the fourth strip, when the reconstructed image block after the strip decoding is stored in the memory, there is no free storage area in the memory. Therefore, starting from the fourth strip, the storage area corresponding to the reconstructed image block which is the earliest to be scaled is sequentially stored in the memory.
  • the decoding unit outputs a "one stripe decoding complete" indication. Therefore, when the scaling unit receives the "one stripe decoding completion" indication information for the first time, the indication information is the indication information output after the first stripe decoding is completed, that is, only one of the current memories is not performed.
  • the scaled reconstructed image block is over-scaled, and the reconstructed image block is not the last slice-decoded reconstructed image block.
  • step 302 the process goes to step 302 to continue decoding the second stripe in the decoding order, and output "one stripe decoding completion" indication information.
  • the scaling unit After the second stripe decoded reconstructed image block is stored in the memory, the scaling unit has received the "one stripe decoding complete" indication message twice. It can be seen that the first and second strips have been decoded, and the reconstructed image blocks after strip decoding are not scaled, that is, there are two reconstructed image blocks in the current memory that have not been scaled. Then proceed to step 305.
  • the scaling unit When the scaling unit receives the "image decoding complete" indication information, there is only one reconstructed image block that has not been scaled in the memory, and the reconstructed image block is determined to be reconstructed after the last stripe decoding. An image block, the reconstructed image block is scaled, and an "image decoding and scaling completion" indication information is output.
  • At least one of the reconstructed image blocks stored in the memory is scaled according to a scaling order
  • the scaling unit When the scaling unit receives the "one stripe decoding complete" indication information for the second time, that is, when there are two reconstructed image blocks that have not been scaled in the current memory, the reconstructed image block after the first stripe decoding is performed. Zoom. When the zoom is complete, the "One Strip Zoom Complete" indication is output.
  • the scaling here refers to the spatial domain scaling, and accordingly, the spatial domain scaling factor needs to be determined.
  • the airspace scaling is determined according to the ratio of the size of the original image and the size of the image display, and the horizontal and vertical scaling of the frequency domain scaling.
  • the horizontal ratio is 1.46
  • the vertical ratio is 1.825.
  • the spatial domain scaling operation needs to be performed according to the image data of the current scanning line and the image data of the adjacent rows of the scanning line. Therefore, at least three stripped decoded reconstructed image blocks are stored in the memory.
  • the memory stores three stripe-decoded reconstructed image blocks. Therefore, when the JPEG file is decoded and scaled, the occupied storage capacity is 21 024 bytes, which is within the storage capacity that the memory can be allocated to the strip buffer. 306. Determine whether the image decoding and scaling are all completed.
  • the at least one undecoded strip of the current image is decoded according to the decoding order according to the stripe scaling completion indication information, and the reconstructed image block after the strip decoding is obtained.
  • Strip decoding completion indication information If it is determined that the image decoding and scaling are not all completed, the at least one undecoded strip of the current image is decoded according to the decoding order according to the stripe scaling completion indication information, and the reconstructed image block after the strip decoding is obtained.
  • the decoding unit receives the "one stripe scaling completion" indication information, and continues to decode the next stripe in the decoding order, and outputs "one stripe decoding completion” indication information.
  • the image decoding and scaling method provided by the embodiment of the present invention, by dividing the image into at least three stripes, looping the following steps until the image decoding and scaling is completed: according to the striping scaling completion indication information, at least one of the current images according to the decoding order The undecoded stripe is decoded to obtain the reconstructed image block after the stripe decoding, and the stripe decoding completion indication information is output; according to the stripe decoding completion indication information, the at least one stripe of the current image is decoded and unscaled according to the scaling order. The image block is reconstructed for scaling, and the stripe scaling completion indication information is output.
  • the memory only needs to store a plurality of decoded image blocks after decoding the image in the process of decoding and scaling the image, and does not need to store the reconstructed image after decoding the entire frame image after decoding the complete frame image, thereby Reduce the storage resource consumption and save storage space.
  • frequency domain scaling is performed during decoding, and the reconstructed image block decoded by the frequency domain scaling is stored in the memory, thereby further reducing the storage space and storage access occupied by the decoded image. the amount.
  • the spatial domain scales the reconstructed image block after the stripe decoding of the frequency domain scaling, the amount of computation required is also reduced.
  • an embodiment of the present invention provides an image decoding and scaling apparatus, including: a control unit 501, configured to divide a current image into at least three stripes, and configure, control, and a decoding unit 502 and a scaling unit 504;
  • the decoding unit 502 is configured to perform, according to the stripe scaling completion indication information, the current to the decoding order Decoding one less stripe to obtain a reconstructed image block after stripe decoding, and outputting stripe decoding completion indication information;
  • the storage unit 503 is configured to store the stripe-decoded reconstructed image block output by the decoding unit 502.
  • the scaling unit 504 is configured to scale, according to the stripe decoding completion indication information, the reconstructed image block decoded by at least one stripe in the storage unit 503 according to the scaling order, and output stripe scaling completion indication information.
  • the decoding unit 502 includes a discrete cosine inverse transform sub-unit 506 for performing inverse discrete cosine transform with frequency domain scaling according to the configured frequency domain scaling parameter, and outputting the reduced stripe decoded reconstructed image block.
  • the control unit 501 includes: a scaling configuration sub-unit 505, configured to determine a frequency domain scaling parameter and a spatial domain scaling parameter, and output the frequency domain scaling parameter to a discrete cosine inverse transform sub-unit 506 in the decoding unit 502,
  • the spatial domain scaling parameter is output to the scaling unit 504.
  • the scaling configuration sub-unit 505 determines the frequency domain scaling parameter and the spatial domain scaling parameter according to the ratio of the size of the original image and the size of the image display and the decoding processing capability.
  • the strip dividing subunit 510 is configured to determine a size of the strip according to a ratio of a size of the original image and a size of the image display, a storage allocation and a decoding processing capability, and divide the current image into a plurality of stripes.
  • the decoding unit 502 reads one strip according to the decoding order, and the decoding unit 502 performs entropy decoding and inverse quantization on the strip to obtain an intermediate result, and the discrete cosine inverse transform sub-unit 506 according to the received frequency domain scaling parameter.
  • the intermediate result performs an inverse discrete cosine transform with frequency domain scaling, and outputs the reduced reconstructed image block after the stripe decoding, and the decoding unit 502 outputs "one stripe decoding completion" indication information.
  • the decoding unit 502 After the decoding unit 502 decodes the second strip of the image, there are two unscaled stripe decoded reconstructed image blocks in the storage unit 503, and the scaling unit 504 starts to scale the first stripe decoded reconstruction. Image block. After the scaling unit 504 has scaled the reconstructed image block, the "one strip zoom completion" indication information is output. The decoding unit 502 receives the "one strip zoom completion" indication information, It can be seen that the scaling unit 504 has scaled a slice-decoded reconstructed image block, and the decoding unit 502 continues to decode the slice in the decoding order.
  • the decoding unit 502 starts decoding the third strip and continues to decode the strip in the decoding order each time the "one stripe zoom complete" indication message is received.
  • the decoding unit 502 After decoding the last strip, the decoding unit 502 receives the "one strip scaling completion" indication information again. At this time, there is no strip that has not been decoded, the decoding unit 502 does not decode, and the decoding unit 502 outputs "image decoding.” Complete the "instruction message.
  • the storage unit 503 includes a storage control sub-unit 507, configured to determine, if there is no free storage area in the current storage unit 503, a storage area corresponding to the reconstructed image block that is the first to be scaled in the current storage unit 503, The reconstructed image block after strip decoding is stored in the storage area.
  • the reconstructed image blocks decoded by the first, second, and third strips are directly stored in the storage unit 503.
  • the storage control sub-unit 507 determines the storage area corresponding to the reconstructed image block that is the earliest zoomed in the current storage unit 503, and reconstructs the reconstructed image after the stripe is decoded.
  • the block is stored in the storage area.
  • the scaling unit 504 includes:
  • a stripe scaling sub-unit 511 configured to perform spatial domain scaling on the reconstructed image block of the strip according to the spatial scaling parameter
  • the stripe scaling determining sub-unit 508 is configured to determine whether there are at least two un-zoomed stripe-decoded reconstructed image blocks in the storage unit 503.
  • the scaling unit 504 further includes a final stripe judging sub-unit 509, configured to determine that the stripe is decoded after there is only one stripped-decoded reconstructed image block in the storage unit 503. Whether the reconstructed image block is the reconstructed image block after the last stripe decoding of the image.
  • the stripe scaling determination sub-unit 508 determines that there is only one reconstructed image block that has not been scaled in the current storage unit 503.
  • the last stripe judging subunit 509 does not receive the "image decoding complete” indication information, and therefore determines that the reconstructed image block is not the reconstructed map after the last stripe decoding of the image. Like a block.
  • the scaling unit 504 does not perform scaling.
  • the stripe scaling determining sub-unit 508 determines that there are two reconstructed image blocks that have not been scaled in the current storage unit 503.
  • the scaling unit 504 acquires a reconstructed image block that is the oldest decoded in the reconstructed image block.
  • the scaling unit 504 performs spatial domain scaling on the acquired reconstructed image block according to the received spatial domain scaling parameter.
  • the scaling unit 504 outputs "one strip scaling completed" indication information.
  • the scaling unit 504 starts from the second reception of the "one stripe decoding completion" indication information, and each time the "one stripe decoding completion" indication information is received, the stripe scaling determination sub-unit 508 can determine There are two reconstructed image blocks that have not been scaled in the current storage unit 503. The scaling unit 504 continues to scale the reconstructed image block in a scaling order.
  • the last strip determination sub-unit 509 determines that there is only one reconstructed image block that has not been scaled in the current storage unit 503, and the reconstructed image A block is a reconstructed image block after the last strip of the image is decoded.
  • the scaling unit 504 scales the reconstructed image block; after the scaling is completed, the "Image Decoding Zoom Complete” indication information is output.
  • the above scaling unit 504 scales the reconstructed image block, which can be understood to be performed by the strip scale sub-unit 511 in the scaling unit 504.
  • the apparatus for image decoding and scaling provided by the embodiment of the present invention, by dividing the image into at least three strips, loops the following steps until the image decoding and zooming is completed: according to the stripe scaling completion indication information, at least one of the current images according to the decoding order The undecoded stripe is decoded to obtain the reconstructed image block after the stripe decoding, and the stripe decoding completion indication information is output; according to the stripe decoding completion indication information, the at least one stripe of the current image is decoded and unscaled according to the scaling order. The image block is reconstructed for scaling, and the stripe scaling completion indication information is output.
  • the memory only needs to store a plurality of decoded image blocks after decoding the image in the process of decoding and scaling the image, and does not need to store the reconstructed image after decoding the entire frame image after decoding the complete frame image, thereby Reduce the storage resource consumption and save storage space.
  • frequency domain scaling is performed during decoding, and the reconstructed image block decoded by the frequency domain scaling is stored in the memory, thereby further reducing the storage space occupied by the decoded image and Storage access.
  • the spatial domain scales the reconstructed image block after the stripe decoding that has been subjected to frequency domain scaling, the amount of computation required is also reduced.
  • an embodiment of the present invention further provides an image display system, including:
  • a storage interface unit 610 configured to obtain an original image from an external storage medium
  • the control unit 601 is configured to divide the current image into at least three stripes, and configure and control the decoding unit.
  • the decoding unit 602 is configured to: according to the stripe scaling completion indication information, decode at least one current stripe according to a decoding order, obtain a reconstructed image block after stripe decoding, and output stripe decoding completion indication information;
  • a stripe storage unit 603, configured to store the stripe-decoded reconstructed image block output by the decoding unit 602;
  • the scaling unit 604 is configured to: according to the stripe decoding completion indication information, scale the reconstructed image block decoded by the at least one stripe in the strip storage unit 603 according to the scaling order, and output stripe scaling completion indication information;
  • a display storage unit 605 configured to store the reconstructed image block after the current image is scaled
  • the display output unit 606 is configured to output the scaled reconstructed image block stored in the display storage unit 605 in display order.
  • the decoding unit 602 includes a discrete cosine inverse transform sub-unit for performing inverse discrete cosine transform with frequency domain scaling according to the configured frequency domain scaling parameter, and outputting the reduced stripe decoded reconstructed image block.
  • the control unit 601 includes a scaling configuration subunit, configured to determine a frequency domain scaling parameter and a spatial domain scaling parameter, output the frequency domain scaling parameter to the discrete cosine inverse transform subunit, and output the spatial domain scaling The parameters are given to the scaling unit 604.
  • An image display system by dividing an image into at least three stripes, The following steps are performed until the image decoding is completed: according to the stripe scaling completion indication information, at least one undecoded strip of the current image is decoded according to the decoding order to obtain a stripped decoded reconstructed image block, and an output stripe decoding completion indication is performed. Information; according to the stripe decoding completion indication information, the at least one stripe-decoded unscaled reconstructed image block of the current image is scaled according to a scaling order, and the stripe scaling completion indication information is output.
  • the memory only needs to store a plurality of decoded image blocks after decoding the image in the process of decoding and scaling the image, and does not need to store the reconstructed image after decoding the entire frame image after decoding the complete frame image, thereby Reduce the storage resource consumption and save storage space.
  • frequency domain scaling is performed during decoding, and the reconstructed image block decoded by the frequency domain scaling is stored in the memory, thereby further reducing the storage space occupied by the decoded image and Storage access.
  • the spatial domain scales the sliced decoded reconstructed image block subjected to frequency domain scaling, the amount of computation required is also reduced.
  • the decoding unit and the scaling unit in the image display system described above decode and scale the image in units of stripes, so that the stripe storage unit requires only three stripe-sized capacities, saving storage resources.
  • the image display system may be a digital photo frame, a mobile phone, or the like that requires image zoom display. A specific embodiment of an image display system will be described below by taking a digital photo frame as an example.
  • a digital photo frame includes:
  • a memory card interface unit 710 configured to read an original image from the memory card
  • the digital photo frame can be connected to a memory card such as a flash memory, and the memory card interface unit 710 reads the original image stored in the memory card.
  • a memory card such as a flash memory
  • the control unit 701 is configured to divide the current image into at least three stripes, and configure, control, and a decoding unit.
  • the control unit 701 includes:
  • the scaling configuration subunit 705 is configured to determine a frequency domain scaling parameter and a spatial domain scaling parameter, output the frequency domain scaling parameter to the decoding unit 702, or output the spatial domain scaling parameter to the scaling unit 704;
  • the strip dividing subunit 714 is configured to determine the size of the strip according to the ratio of the size of the original image and the size of the image display, the storage allocation and the decoding processing capability, and divide the current image into a plurality of stripes.
  • the decoding unit 702 is configured to: according to the stripe scaling completion indication information, decode at least one current stripe according to a decoding order, obtain a reconstructed image block after stripe decoding, and output stripe decoding completion indication information;
  • the decoding unit 702 includes a discrete cosine inverse transform sub-unit 706, configured to perform frequency domain scaling parameters configured by the sub-unit 705 according to the scaling ratio, perform inverse discrete cosine transform with frequency domain scaling, and output stripe decoding of frequency domain scaling. After reconstructing the image block.
  • the decoding unit 702 reads one strip in the decoding order.
  • Decoding unit 702 performs entropy decoding and inverse quantization on the strip to obtain an intermediate result.
  • the discrete cosine inverse transform sub-unit 706 performs a discrete cosine inverse transform with frequency domain scaling on the intermediate result according to the received frequency domain scaling parameter, and outputs the reduced stripe decoded reconstructed image block.
  • the decoding unit 702 outputs "one strip decoding completion" indication information.
  • the decoding unit 702 After the decoding unit 702 decodes the second strip of the image, there are two unscaled stripe decoded reconstructed image blocks in the stripe storage unit 703, and the scaling unit 704 starts to scale the first stripe decoded image. Reconstruct the image block.
  • the scaling unit 704 outputs a "one stripe zoom completion" indication message after the reconstructed image block is scaled.
  • the decoding unit 702 receives the "one stripe scaling completion" indication information, and it can be seen that the scaling unit 704 has scaled a stripe-decoded reconstructed image block, and the decoding unit 702 continues to decode the stripe in the decoding order.
  • the decoding unit 702 starts decoding the third strip and continues to decode the strip in the decoding order each time the "one stripe zoom complete" indication message is received.
  • the decoding unit 702 After decoding the last stripe, the decoding unit 702 receives the "one stripe scaling completion" indication information again. At this time, there is no stripe that has not been decoded, the decoding unit 702 does not decode anymore, and the decoding unit 702 outputs "image decoding.” Complete the "instruction message.
  • the stripe storage unit 703 includes a storage control sub-unit 707 for determining that the reconstructed image block corresponding to the earliest completion of the scaling in the current stripe storage unit 703 is corresponding if there is no free storage area in the current stripe storage unit 703.
  • the storage area stores the reconstructed image block decoded by the stripe into the storage area.
  • the reconstructed image blocks decoded by the first, second, and third strips are directly stored in the storage unit 703.
  • the storage control sub-unit 707 determines the storage area corresponding to the reconstructed image block that is the earliest zoomed in the current stripe storage unit 703, and decodes the stripe.
  • the image block is stored in the storage area.
  • the scaling unit 704 is configured to scale, according to the stripe decoding completion indication information, the reconstructed image block decoded by at least one stripe in the strip storage unit 703 according to the scaling order, and output stripe scaling completion indication information.
  • the scaling unit 704 includes: a stripe scaling sub-unit 713, configured to perform spatial domain scaling on the reconstructed image block of the strip according to the spatial domain scaling parameter.
  • the stripe scaling determining sub-unit 708 is configured to determine whether there are at least two un-zoomed stripe-decoded reconstructed image blocks in the stripe storage unit 703.
  • the scaling unit 704 further includes a last stripe judging subunit 709, configured to determine the stripe when there is only one undecoded stripe-decoded reconstructed image block in the stripe storage unit 703 Whether the decoded reconstructed image block is the reconstructed image block after the last stripe decoding of the image.
  • the stripe scaling determining sub-unit 708 determines that there is only one unscaled reconstructed image block in the current stripe storage unit 703.
  • the last stripe judging subunit 709 does not receive the "image decoding complete” indication information, and therefore determines that the reconstructed image block is not the reconstructed image block after the last stripe decoding of the image.
  • the scaling unit 704 does not scale.
  • the stripe scaling determining sub-unit 708 determines that there are two unscaled reconstructed image blocks in the current stripe storage unit 703. .
  • the scaling unit 704 acquires the earliest decoding in the reconstructed image block. Reconstructed image block.
  • the scaling unit 704 performs spatial domain scaling on the acquired reconstructed image block according to the received spatial domain scaling parameter.
  • the scaling unit 704 outputs "one strip scaling completion" indication information.
  • the scaling unit 704 outputs the scaled reconstructed image block to the display storage unit 712.
  • the scaling unit 704 starts from the second reception of the "one stripe decoding completion" indication information, and each time the "one stripe decoding completion" indication information is received, the stripe scaling determination sub-unit 708 can determine There are two reconstructed image blocks that have not been scaled in the current stripe storage unit 703. The scaling unit 704 continues to scale the reconstructed image block in a scaling order.
  • the last stripe judging subunit 709 determines that there is only one unscaled reconstructed image block in the current stripe storage unit 703, and determines the weight.
  • the image block is the reconstructed image block after the last strip of the image is decoded.
  • the scaling unit 704 scales the reconstructed image block, and after the scaling is completed, outputs "image decoding down-complete" indication information.
  • the above scaling unit 704 scales the reconstructed image block, which can be understood to be performed by the strip scale sub-unit 713 in the scaling unit 704.
  • the display storage unit 712 is configured to store the scaled reconstructed image block of the scaling unit 704.
  • the display output unit 711 is configured to output the scaled reconstructed image block stored in the display storage unit 712.
  • the display output unit 711 reads the scaled reconstructed image block stored in the display storage unit 712 and outputs it to a display such as an LCD liquid crystal panel.
  • the digital photo frame provided by the embodiment of the present invention divides the image into at least three strips, and loops the following steps until the image decoding and zooming is completed: according to the stripe scaling completion indication information, at least one undecoded strip of the current image according to the decoding order. Performing decoding to obtain a reconstructed image block after strip decoding, and outputting stripe decoding completion indication information; according to the stripe decoding completion indication information, the unscaled reconstructed image block after decoding at least one strip of the current image according to the scaling order Zooming, output striping zoom completion instructions. Therefore, the memory only needs to store several strips of the reconstructed image block after decoding the image in the process of decoding and scaling the image, and does not need to store the entire frame after decoding the complete frame image.
  • the reconstructed image after the image is decoded, thereby reducing the occupation of the storage resource and saving the storage space.
  • frequency domain scaling is performed during decoding, and the reconstructed image block decoded by the frequency domain scaling is stored in the memory, thereby further reducing the storage space occupied by the decoded image and Storage access.
  • the storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Acces s Memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Description

图像解码和缩放的方法及装置、 图像显示系统 本申请要求于 2008 年 9 月 18 日提交中国专利局、 申请号为 200810161208. 6 , 发明名称为 "图像解码和缩放的方法及装置、 图像显示系 统" 的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。
技术领域
本发明涉及图像处理领域, 尤其涉及一种图像解码和缩放的方法及装置、 图像显示系统。
背景技术
JPEG由联合图像专家组 ( Joint Photographic Exper t s Group )制定, 是最常用的静态图像的压缩标准。 JPEG压缩标准广泛用于数码相机、 数码像 框、 网络传送、 互联网网页等产品和领域中。 在实际的应用中, 通常都需要 先对 JPEG格式的图像进行解码, 然后将解码后的图像进行缩放, 最后将缩放 后的图像输出到显示屏上或进行其它操作。
JPEG压缩标准对图像进行编码时,通常采用基于离散余弦变换(Di screte Cos ine Transform, DCT ) 的方法。 对图像编码时, JPEG采用的是 YCbCr的色 度格式, 将原始图像数据划分为 8x8的宏块, 通过对每一个宏块的 Y、 Cb、 Cr 三个分量按照各自的比例进行编码, 来获取最小编码单元(Mini腿 m Coding Uni t , MCU ) 。 在对图像进行解码时, 以 MCU为解码单元, 采用与编码时相反 的流程顺序, 如图 1所示, 解码的流程主要包括熵解码, 反量化和离散余弦反 变换。
在对解码后的图像进行缩放时, 现有技术中通常采用空域缩放的方法进 行缩放。 对解码后的一帧图像中的每一个扫描行进行逐行缩放; 对当前扫描 行中的像素进行缩放时, 还需要解码后的图像中, 与当前扫描行相邻的扫描 行中像素区域的数据。
现有技术中, 对 JPEG格式图像进行解码和缩放时采用的处理方法是, 解 码和缩放是两个先后独立的过程。 先对一帧图像整体进行解码, 将解码后的 一整帧图像的数据都存入存储器; 进行缩放时, 从存储器中读取当前需要缩 放的扫描行和与该扫描行的相邻行的数据, 对当前扫描行进行缩放。
在实现本发明的过程中, 发明人发现现有技术中至少存在如下问题: 现 有技术中对 JPEG格式图像进行解码和缩放采用的处理方法, 需要为解码后的 整帧图像分配很大的存储空间, 例如, 对 4096 x 4096的图像, 需要占用的存 储容量为 16MByt es以上, 从而造成了消耗的存储资源过高的问题。 发明内容
本发明实施例提供了一种图像解码和缩放的方法及装置、 图像显示系统 , 使得解码、 缩放图像时, 减小所占用的存储资源。
一种图像解码和缩放的方法, 包括:
将当前图像分为至少三个条带, 所述条带包括多个连续的最小图像编码 单元, 循环进行以下步骤完成图像的解码缩放:
根据条带缩放完成指示信息, 按照解码顺序对当前图像的至少一个未解 码条带进行解码, 得到条带解码后的重构图像块, 输出条带解码完成指示信 息;
根据条带解码完成指示信息, 按照缩放顺序对当前图像的至少一个条带 解码后的未缩放重构图像块进行缩放, 输出条带缩放完成指示信息。
一种图像解码和缩放装置, 包括:
控制单元, 用于将当前图像分为至少三个条带, 配置、 控制解码单元和 缩放单元;
解码单元, 用于根据条带缩放完成指示信息, 按照解码顺序对当前至少 一个条带进行解码, 得到条带解码后的重构图像块, 输出条带解码完成指示 信息;
存储单元, 用于存储所述解码单元输出的条带解码后的重构图像块; 缩放单元, 用于根据条带解码完成指示信息, 按照缩放顺序对存储单元 中至少一个条带解码后的重构图像块进行缩放, 输出条带缩放完成指示信息。 一种图像显示系统, 包括:
存储接口单元, 用于从外部存储介质中获取原始图像;
控制单元, 用于将当前图像分为至少三个条带, 配置、 控制解码单元和 缩放单元;
解码单元, 用于根据条带缩放完成指示信息, 按照解码顺序对当前至少 一个条带进行解码, 得到条带解码后的重构图像块, 输出条带解码完成指示 信息;
条带存储单元, 用于存储所述解码单元输出的条带解码后的重构图像块; 缩放单元, 用于根据条带解码完成指示信息, 按照缩放顺序对条带存储 单元中至少一个条带解码后的重构图像块进行缩放, 输出条带缩放完成指示 信息;
显示存储单元, 用于存储当前图像缩放后的重构图像块;
显示输出单元, 用于按照显示顺序输出所述显示存储单元中存储的缩放 后的重构图像块。
本发明实施例将图像分为至少三个条带; 循环以下步骤直至图像解码缩 放完成: 根据条带缩放完成指示信息, 按照解码顺序对当前至少一个条带进 行解码, 得到条带解码后的重构图像块, 输出条带解码完成指示信息; 根据 条带解码完成指示信息, 按照缩放顺序对当前图像的至少一个条带解码后的 重构图像块进行缩放, 输出条带缩放完成指示信息。 因此, 存储器只需要在 解码、 缩放图像的过程中, 存储图像的几个条带解码后的重构图像块, 不需 要在解码完整帧图像后, 存储整帧图像解码后的重构图像, 从而减小了存储 资源的占用量, 节省了存储空间。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面 描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为现有技术中图像解码的流程图;
图 2为本发明实施例一种图像解码和缩放的方法示意图;
图 3为本发明实施例另一种图像解码和缩放的方法示意图;
图 4为本发明实施例执行带频域缩放的离散余弦反变换的方法示意图; 图 5为本发明实施例一种图像解码和缩放装置结构示意图;
图 6为本发明实施例一种图像显示系统结构示意图;
图 7为本发明实施例一种数码相框结构示意图。
具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作 出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
如图 2所示, 本发明实施例提供一种图像解码和缩放的方法, 包括:
201、 将当前图像分为至少三个条带, 所述条带包括多个连续的最小图像 编码单元, 循环进行以下步骤完成图像的解码缩放:
具体地, 可以根据原始图像的尺寸和图像显示的尺寸之比、 存储分配和 解码处理能力, 确定每个条带的大小, 所述条带包括多个连续的最小图像编 码单元。 在循环执行所述解码缩放的步骤之前包括: 按照解码顺序解码当前 图像的第一个条带和第二个条带, 分别获得第一个条带和第二个条带对应的 重构图像块, 对第一个条带的重构图像块进行缩放。
202、 根据条带缩放完成指示信息, 按照解码顺序对当前图像的至少一个 未解码条带进行解码, 得到条带解码后的重构图像块, 输出条带解码完成指 示信息;
在上一个条带缩放完成后, 根据条带缩放完成指示信息, 按照预先确定 的条带大小, 按照解码顺序执行至少一个条带的图像解码, 输出条带解码完 成指示信息。
203、 根据条带解码完成指示信息, 按照缩放顺序对当前图像的至少一个 条带解码后的未缩放重构图像块进行缩放, 输出条带缩放完成指示信息。
具体地, 在上一个条带解码完成后, 根据条带解码完成指示信息, 按照 缩放顺序对至少一个条带解码后的重构图像块进行空域缩放到指定的显示图 像大小, 输出条带缩放完成指示信息。
本发明实施例以条带为单位进行解码和缩放, 解码和缩放交叉进行, 这 样用于解码和缩放的緩存只需要三个条带大小的容量即可, 节省了存储资源。
如图 3 所示, 本发明又一个实施例提供的一种图像解码和缩放的方法, 包括:
301、 将当前图像分为至少三个条带, 所述条带包括多个连续的最小图像 编码单元;
本实施例以图像压缩格式为 JPEG为例介绍, 这里条带定义为包括一个或 多个连续的最小图像编码单元行。 实际应用中可以根据存储分配和解码能力, 确定所划分的条带的大小。 例如, 条带取一个最小编码单元(Minim讓 Coding Uni t , MCU )行, 所述 JPEG文件的格式为 Basel ine4: 2: 0, 则一个 MCU包括 Y分量 16 x 1 6、 Cb分量 8 x 8、 Cr分量 8 χ 8。 因此, 当所述 JPEG文件的原始 图像尺寸为 4672 X 3504 , 频域缩放比例为 4时, 所述 JPEG文件的一个条带经 过带频域缩放的解码后, 输出的重构图像块为 Y分量 1 168 x 4、 Cb分量 584 x 2、 Cr分量 584 x 2 , 所述条带需占用的存储容量为 7008bytes。
302、 按照解码顺序对当前图像的至少一个未解码条带进行解码, 得到条 带解码后的重构图像块, 输出条带解码完成指示信息;
解码时进一步地, 按照配置的频域比例对条带进行频域缩放。 按照解码 顺序先对所述 JPEG文件的一个条带进行熵解码、 反量化, 根据频域缩放的水 平比例 4、 垂直比例 4 , 执行带频域缩放的离散余弦反变换, 输出进行过频域 缩放的所述条带解码后的重构图像块, 并输出 "一个条带解码完成" 指示信 息。
当不存在未被解码的所述 JPEG文件的条带时, 解码单元不再进行解码, 输出 "图像解码完成" 指示信息。
解码时进一步地, 按照配置的频域比例对条带进行频域缩放, 以进一步 节省空间, 包括:
A、 确定频域缩放比例参数;
具体地, 可以根据原始图像的尺寸与图像显示的尺寸之比、 解码能力, 确定频域缩放和空域缩放的各自缩放比例参数。 这里先举例介绍确定频域缩 放比例参数。 若要求的 LCD显示屏分辨率为 800 X 480 , 存储器 SDRAM容量为 8MByte s , 所述存储器可供分配给条带緩存区的存储容量为 1. 2MBytes。
确定频域比例参数的步骤包括: 获取一个 JPEG文件; 确定所述文件的相 关格式信息为 Ba se l ine4 : 2: 0格式,所述文件的原始图像尺寸为 4672 χ 3504。 对于 JPEG文件, 频域缩放的水平比例和垂直比例总是相等, 设所述频域缩放 比例参数表示为 K; K的数值为 1、 2、 4、 8。 确定原始图像的尺寸和图像显示 的尺寸之比为: 水平 Kh = 5. 8 , 垂直 Kv = 7. 3 ; 取二者中小的值记为 Kd , 即 Kd=5. 8 ; 取 1、 2、 4、 8中小于 Kd并最接近于 Kd的值, 作为频域缩放比例参 数 K , 即频域缩放比例 K=4。
Β、 根据所述频域缩放比例参数执行带频域缩放的离散余弦反变换, 输出 进行过频域缩放的条带解码后的重构图像块。 如图 4 所示, 根据频域缩放的比例执行带频域缩放的离散余弦反变换的 方法, 包括:
401、 获取频域缩放用的原始 DCT系数矩阵; 获取条带的每个 MCU的 DCT系数矩阵, 根据频域缩放比例 Κ,得到 N=8 /k , 从所述 DCT系数矩阵中,截取以其左上角为起点的 N X N的原始 DCT系数矩阵。 所述条带的一个 MCU的 DCT系数矩阵表示为 X,所述原始 DCT系数矩阵表 示为 X'。
Figure imgf000009_0001
K=4, 即 N=2; 截取 2x2的原始 DCT系数矩阵 X':
Figure imgf000009_0002
402、对所述原始 DCT系数矩阵进行一维列运算,得到第一中间系数矩阵; 对所述原始 DCT 系数矩阵进行一维离散余弦反变换(IDCT) 列运算, 得 到一个 N X N大小的第一中间系数矩阵。 所述第一中间系数矩阵表示为 T。
进行 2x2IDCT列运算:
T = B X X
其中 K=4时, 离散余弦反变换运 : 口下:
Figure imgf000009_0003
得到第一中间系数矩阵 Τ:
τ τ
½ο o
Τ =
τ τ a b c d a e f g
a = = cos (4*pi/16)
b = = COS (l*pi/16) a d f 一 g -a 一 b 一 c -e
c = = COS (2*pi/16) a e 一 f 一 b -a g c d
d = = COS (3*pi/16) a g 一 c -e a d 一 f 一 b
e = = COS (5*pi/16) B =
a 一 g 一 c e a -d 一 f b
f = = COS (6*pi/16)
/16) a -e 一 f b -a 一 g c -d
g = = COS (7*pi
a 一 c f g -a b 一 c e
a 一 b c -d a -e f 一 g
K=2时, 离散余弦反变换运算系数矩阵 B为:
Figure imgf000010_0001
其中, c = X cos (2*pi/16) f = -χ/2 cos (6*pi/16)
K=8时, 离散余弦反变换运算系数矩阵 B为:
Figure imgf000010_0002
403、 对所述第一中间系数矩阵进行转置, 得到第二中间系数矩阵, 所述 第二中间系数矩阵为 Ττ
404、对所述第二中间系数矩阵进行一维行运算,得到第三中间系数矩阵; 对所述第二中间系数矩阵进行一维 IDCT行运算, 得到一个 ΝχΝ大小的 第三中间系数矩阵。 所述第三中间系数矩阵表示为 Υ'。
进行 2x2 IDCT行运算:
Υ' = B X Ττ 得到第三中间系数矩阵 Υ': γ'= ιοο ιοι
V V
ho ιη 405、 对所述第三中间系数矩阵进行转置。 转置后得到频域缩放后的系数矩阵 Y。
Υ= ( Υ' ) τ
利用按照上述方法所得到的频域缩放的水平比例参数和垂直比例参数, 进行带频域缩放的离散余弦反变换运算, 可以有效降低离散余弦反变换运算 的复杂度, 并且, 避免频域缩放过大, 从而更好地保证缩放后的图像质量。
303、 将所述条带解码后的重构图像块存入存储器;
存储器中条带緩存可以为先进先出 (FIFO )緩存队列。
若当前存储器中不存在空闲的存储区域, 则确定当前存储器中最早完成 缩放的重构图像块对应的存储区域, 将所述条带解码后的重构图像块存入所 述存储区域。
本发明实施例中存储器存储三个条带解码后的重构图像块。 因此, 从第 四个条带开始, 所述条带解码后的重构图像块存入存储器时, 存储器不存在 空闲的存储区域。 因此, 从第四个条带开始, 依次存入存储器中最早完成缩 放的重构图像块对应的存储区域。
304、 判断所述存储器中是否存在至少两个未进行过缩放的所述重构图像 块;
如果所述存储器中只存在一个未进行过缩放的所述重构图像块, 则判断 所述未进行过缩放的重构图像块是否为最后一个条带解码后的重构图像块。
每解码完一个条带, 解码单元都会输出一个 "一个条带解码完成" 指示 信息。 由此可知, 缩放单元第一次接收到 "一个条带解码完成" 指示信息时, 所述指示信息为第一个条带解码完成后所输出的指示信息, 即当前存储器中 只存在一个未进行过缩放的重构图像块, 并且所述重构图像块不是最后一个 条带解码后的重构图像块。
于是,跳至步骤 302 ,按照解码顺序继续对第二个条带进行解码,输出 "一 个条带解码完成" 指示信息。 第二个条带解码后的重构图像块存入存储器后, 缩放单元已两次接收到 "一个条带解码完成" 指示信息。 由此可知, 第一、 第二个条带均已解码完 成, 且条带解码后的重构图像块均未被缩放, 即当前存储器中存在两个未进 行过缩放的重构图像块。 接着进行步骤 305。
当缩放单元接收到 "图像解码完成" 指示信息时, 此时存储器中只存在 一个未进行过缩放的所述重构图像块, 判定所述重构图像块为最后一个条带 解码后的重构图像块, 对所述重构图像块进行缩放, 输出 "图像解码缩放完 成" 指示信息。
305、 若存储器中存在至少两个未进行过缩放的所述重构图像块, 则按照 缩放顺序对存入存储器的至少一个所述重构图像块进行缩放;
如果存储器中存在至少两个未进行过缩放的重构图像块, 则确定存储器 中最早存入的所述未进行过缩放的重构图像块, 获取所述最早存入的未进行 过缩放的重构图像块, 以及与其相邻的重构图像块, 根据上述获取到的重构 图像块信息, 对所述最早存入的未进行过缩放的重构图像块进行缩放。 缩放 完成后, 输出 "一个条带缩放完成" 指示信息。
缩放单元第二次接收到 "一个条带解码完成" 指示信息时, 即当前存储 器中存在两个未进行过缩放的重构图像块时, 对第一个条带解码后的重构图 像块进行缩放。 缩放完成后, 输出 "一个条带缩放完成" 指示信息。
这里的缩放, 指的是空域缩放, 相应地需要确定空域缩放比例系数, 具 体地, 根据原始图像的尺寸和图像显示的尺寸之比, 以及频域缩放的水平比 例和垂直比例, 确定空域缩放的水平比例为 1. 46 , 垂直比例为 1. 825。
进行空域缩放时, 需要根据当前扫描行的图像数据, 以及所述扫描行的 相邻行的图像数据, 进行空域缩放操作, 因此, 存储器中至少存储三个条带 解码后的重构图像块, 本发明实施例中存储器存储三个条带解码后的重构图 像块。 因此, 所述 JPEG文件解码缩放时, 所占用的存储容量为 21 024bytes , 在存储器可供分配给条带緩存区的存储容量范围内。 306、 判断所述图像解码缩放是否全部完成;
如果接收到 "图像解码缩放完成" 指示信息, 则所述 JPEG文件被全部解 码缩放完成, 停止解码缩放所述 JPEG文件。
307、 若判断所述图像解码缩放未全部完成, 则根据条带缩放完成指示信 息, 按照解码顺序对当前图像的至少一个未解码条带进行解码, 得到条带解 码后的重构图像块, 输出条带解码完成指示信息。
如果图像缩放还未完成, 解码单元接收到 "一个条带缩放完成" 指示信 息, 则按照解码顺序继续对下一个条带进行解码, 输出 "一个条带解码完成" 指示信息。
本发明实施例提供的图像解码和缩放的方法, 通过将图像分为至少三个 条带, 循环以下步骤直至图像解码缩放完成: 根据条带缩放完成指示信息, 按照解码顺序对当前图像的至少一个未解码条带进行解码, 得到条带解码后 的重构图像块, 输出条带解码完成指示信息; 根据条带解码完成指示信息, 按照缩放顺序对当前图像的至少一个条带解码后的未缩放重构图像块进行缩 放, 输出条带缩放完成指示信息。 因此, 存储器只需要在解码、 缩放图像的 过程中, 存储图像的几个条带解码后的重构图像块, 不需要在解码完整帧图 像后, 存储整帧图像解码后的重构图像, 从而减小了存储资源的占用量, 节 省了存储空间。
本发明实施例中, 在解码期间进行频域缩放, 将进行过频域缩放的条带 解码后的重构图像块存入存储器中, 进一步减少了解码后的图像所占用的存 储空间和存储访问量。 空域缩放所述进行过频域缩放的条带解码后的重构图 像块时, 所需要的运算量也减小了。
如图 5所示, 本发明实施例提供一种图像解码和缩放装置, 包括: 控制单元 501 , 用于将当前图像分为至少三个条带, 配置、 控制解码单元 502和缩放单元 504;
解码单元 502 , 用于根据条带缩放完成指示信息, 按照解码顺序对当前至 少一个条带进行解码, 得到条带解码后的重构图像块, 输出条带解码完成指 示信息;
存储单元 503 ,用于存储所述解码单元 502输出的条带解码后的重构图像 块。
缩放单元 504 , 用于根据条带解码完成指示信息, 按照缩放顺序对存储单 元 503 中至少一个条带解码后的重构图像块进行缩放, 输出条带缩放完成指 示信息。
所述解码单元 502包括离散余弦反变换子单元 506 ,用于根据配置的频域 缩放比例参数, 执行带频域缩放的离散余弦反变换, 输出缩小的条带解码后 的重构图像块。
所述控制单元 501包括: 缩放比例配置子单元 505 , 用于确定频域缩放比 例参数和空域缩放比例参数, 输出所述频域缩放比例参数给解码单元 502 中 的离散余弦反变换子单元 506 , 输出空域缩放比例参数给缩放单元 504。 具体 地, 缩放比例配置子单元 505根据原始图像的尺寸和图像显示的尺寸之比和 解码处理能力, 确定频域缩放比例参数和空域缩放比例参数。
条带划分子单元 510 , 用于根据原始图像的尺寸和图像显示的尺寸之比、 存储分配和解码处理能力, 确定条带的大小, 并将当前图像划分为多个条带。
解码单元 502按照解码顺序读取一个条带, 解码单元 502对所述条带执 行熵解码、 反量化, 得到一个中间结果, 离散余弦反变换子单元 506根据接 收的频域缩放比例参数, 对所述中间结果执行带频域缩放的离散余弦反变换, 输出缩小的条带解码后的重构图像块, 解码单元 502输出 "一个条带解码完 成" 指示信息。
当解码单元 502解码完图像的第二个条带后, 存储单元 503中存在两个 未缩放的条带解码后的重构图像块, 缩放单元 504 开始缩放第一个条带解码 后的重构图像块。 缩放单元 504 缩放完重构图像块后, 输出 "一个条带缩放 完成" 指示信息。 解码单元 502接收到所述 "一个条带缩放完成" 指示信息, 可知缩放单元 504 已缩放完一个条带解码后的重构图像块, 解码单元 502按 照解码顺序继续解码条带。
因此, 解码单元 502从解码第三个条带开始, 每次接收到 "一个条带缩 放完成" 指示信息, 就按照解码顺序继续解码条带。
解码单元 502解码完最后一个条带后, 再次接收到 "一个条带缩放完成" 指示信息, 此时不存在未进行过解码的条带, 解码单元 502 不再解码, 解码 单元 502输出 "图像解码完成" 指示信息。
所述存储单元 503包括存储控制子单元 507 ,用于若当前存储单元 503中 不存在空闲的存储区域, 则确定当前存储单元 503 中最早完成缩放的重构图 像块对应的存储区域, 将所述条带解码后的重构图像块存入所述存储区域。
第一、第二、第三个条带解码后的重构图像块直接存入所述存储单元 503。 从第四个条带解码后的重构图像块开始, 存储控制子单元 507 确定当前存储 单元 503 中最早完成缩放的重构图像块对应的存储区域, 将所述条带解码后 的重构图像块存入所述存储区域。
所述缩放单元 504包括:
条带缩放子单元 511 ,用于根据空域缩放比例参数对条带的重构图像块进 行空域缩放;
条带缩放判断子单元 508 ,用于判断所述存储单元 503中是否存在至少两 个未进行过缩放的条带解码后的重构图像块。
所述缩放单元 504还包括最后条带判断子单元 509 ,用于当所述存储单元 503中只存在一个未进行过缩放的条带解码后的重构图像块时,判断所述条带 解码后的重构图像块是否为图像最后一个条带解码后的重构图像块。
所述缩放单元 504 第一次接收到 "一个条带解码完成" 指示信息时, 所 述条带缩放判断子单元 508判断当前存储单元 503中只存在一个未进行过缩 放的重构图像块。 所述最后条带判断子单元 509 未接收到 "图像解码完成" 指示信息, 因此判断所述重构图像块不是图像最后一个条带解码后的重构图 像块。 所述缩放单元 504不进行缩放。
所述缩放单元 504 第二次接收到 "一个条带解码完成" 指示信息时, 所 述条带缩放判断子单元 508判断当前存储单元 503中存在两个未进行过缩放 的重构图像块。 所述缩放单元 504 获取所述重构图像块中最早进行解码的重 构图像块。 缩放单元 504根据接收到的空域缩放比例参数, 对获取到的重构 图像块进行空域缩放。 缩放单元 504输出 "一个条带缩放完成" 指示信息。
因此, 所述缩放单元 504从第二次接收到 "一个条带解码完成" 指示信 息开始, 每次接收到 "一个条带解码完成" 指示信息, 所述条带缩放判断子 单元 508可判断出当前存储单元 503中存在两个未进行过缩放的重构图像块。 所述缩放单元 504就按照缩放顺序继续缩放重构图像块。
所述缩放单元 504接收到 "图像解码完成" 指示信息后, 所述最后条带 判断子单元 509判断当前存储单元 503 中只存在一个未进行过缩放的重构图 像块, 且所述重构图像块是图像最后一个条带解码后的重构图像块。 缩放单 元 504对所述重构图像块进行缩放; 缩放完成后, 输出 "图像解码缩放完成" 指示信息。
以上缩放单元 504对重构图像块进行缩放,均可以理解为由缩放单元 504 中的条带缩放子单元 511执行。
本发明实施例提供的图像解码和缩放的装置, 通过将图像分为至少三个 条带, 循环以下步骤直至图像解码缩放完成: 根据条带缩放完成指示信息, 按照解码顺序对当前图像的至少一个未解码条带进行解码, 得到条带解码后 的重构图像块, 输出条带解码完成指示信息; 根据条带解码完成指示信息, 按照缩放顺序对当前图像的至少一个条带解码后的未缩放重构图像块进行缩 放, 输出条带缩放完成指示信息。 因此, 存储器只需要在解码、 缩放图像的 过程中, 存储图像的几个条带解码后的重构图像块, 不需要在解码完整帧图 像后, 存储整帧图像解码后的重构图像, 从而减小了存储资源的占用量, 节 省了存储空间。 另外, 本发明实施例中, 在解码期间进行频域缩放, 将进行过频域缩放 的条带解码后的重构图像块存入存储器中, 进一步减少了解码后的图像所占 用的存储空间和存储访问量。 空域缩放所述进行过频域缩放的条带解码后的 重构图像块时, 所需要的运算量也减小了。
如图 6所示, 本发明实施例还提供一种图像显示系统, 包括:
存储接口单元 610 , 用于从外部存储介质中获取原始图像;
控制单元 601 , 用于将当前图像分为至少三个条带, 配置、 控制解码单元
602和缩放单元 604;
解码单元 602 , 用于根据条带缩放完成指示信息, 按照解码顺序对当前至 少一个条带进行解码, 得到条带解码后的重构图像块, 输出条带解码完成指 示信息;
条带存储单元 603 ,用于存储所述解码单元 602输出的条带解码后的重构 图像块;
缩放单元 604 , 用于根据条带解码完成指示信息, 按照缩放顺序对条带存 储单元 603 中至少一个条带解码后的重构图像块进行缩放, 输出条带缩放完 成指示信息;
显示存储单元 605 , 用于存储当前图像缩放后的重构图像块;
显示输出单元 606 ,用于按照显示顺序输出所述显示存储单元 605中存储 的缩放后的重构图像块。
所述解码单元 602 包括离散余弦反变换子单元, 用于根据配置的频域缩 放比例参数, 执行带频域缩放的离散余弦反变换, 输出缩小的条带解码后的 重构图像块。
所述控制单元 601 包括缩放比例配置子单元, 用于确定频域缩放比例参 数和空域缩放比例参数, 输出所述频域缩放比例参数给所述离散余弦反变换 子单元, 输出所述空域缩放比例参数给所述缩放单元 604。
本发明实施例提供的图像显示系统, 通过将图像分为至少三个条带, 循 环以下步骤直至图像解码缩放完成: 根据条带缩放完成指示信息, 按照解码 顺序对当前图像的至少一个未解码条带进行解码, 得到条带解码后的重构图 像块, 输出条带解码完成指示信息; 根据条带解码完成指示信息, 按照缩放 顺序对当前图像的至少一个条带解码后的未缩放重构图像块进行缩放, 输出 条带缩放完成指示信息。 因此, 存储器只需要在解码、 缩放图像的过程中, 存储图像的几个条带解码后的重构图像块, 不需要在解码完整帧图像后, 存 储整帧图像解码后的重构图像, 从而减小了存储资源的占用量, 节省了存储 空间。
另外, 本发明实施例中, 在解码期间进行频域缩放, 将进行过频域缩放 的条带解码后的重构图像块存入存储器中, 进一步减少了解码后的图像所占 用的存储空间和存储访问量。 空域缩放所述进行过频域缩放的条带解码后的 重构图像块时, 所需要的运算量也减小了。
上述图像显示系统中的解码单元和缩放单元, 对图像以条带为单位进行 解码和缩放, 因此条带存储单元仅需要三个条带大小的容量即可, 节省了存 储资源。 图像显示系统可以是数码相框, 手机等需要进行图像缩放显示的设 备。 下面以数码相框为例介绍图像显示系统的一个具体实施方式。
如图 7所示, 一种数码相框, 包括:
存储卡接口单元 710 , 用于从存储卡中读取原始图像;
数码相框可以连接闪存等存储卡, 存储卡接口单元 710读取存储卡中存 储的原始图像。
控制单元 701 , 用于将当前图像分为至少三个条带, 配置、 控制解码单元 和缩放单元;
所述控制单元 701包括:
缩放比例配置子单元 705 ,用于确定频域缩放比例参数和空域缩放比例参 数, 输出所述频域缩放比例参数给解码单元 702 , 或输出所述空域缩放比例参 数给缩放单元 704; 条带划分子单元 714 , 用于根据原始图像的尺寸和图像显示的尺寸之比、 存储分配和解码处理能力, 确定条带的大小, 并将当前图像划分为多个条带。
解码单元 702 , 用于根据条带缩放完成指示信息, 按照解码顺序对当前至 少一个条带进行解码, 得到条带解码后的重构图像块, 输出条带解码完成指 示信息;
所述解码单元 702包括离散余弦反变换子单元 706 ,用于根据缩放比例配 置子单元 705配置的频域缩放比例参数, 执行带频域缩放的离散余弦反变换, 输出频域缩放的条带解码后的重构图像块。
解码单元 702按照解码顺序读取一个条带。 解码单元 702对所述条带执 行熵解码、 反量化, 得到一个中间结果。 离散余弦反变换子单元 706根据接 收的频域缩放比例参数, 对所述中间结果执行带频域缩放的离散余弦反变换, 输出缩小的条带解码后的重构图像块。 解码单元 702输出 "一个条带解码完 成" 指示信息。
当解码单元 702解码完图像的第二个条带后, 条带存储单元 703中存在 两个未缩放的条带解码后的重构图像块, 缩放单元 704 开始缩放第一个条带 解码后的重构图像块。 缩放单元 704 缩放完重构图像块后, 输出 "一个条带 缩放完成" 指示信息。 解码单元 702接收到所述 "一个条带缩放完成" 指示 信息, 可知缩放单元 704 已缩放完一个条带解码后的重构图像块, 解码单元 702按照解码顺序继续解码条带。
因此, 解码单元 702从解码第三个条带开始, 每次接收到 "一个条带缩 放完成" 指示信息, 就按照解码顺序继续解码条带。
解码单元 702解码完最后一个条带后, 再次接收到 "一个条带缩放完成" 指示信息, 此时不存在未进行过解码的条带, 解码单元 702 不再解码, 解码 单元 702输出 "图像解码完成" 指示信息。
条带存储单元 703 ,用于存储所述解码单元 702输出的条带解码后的重构 图像块; 所述条带存储单元 703包括存储控制子单元 707 ,用于若当前条带存储单 元 703中不存在空闲的存储区域, 则确定当前条带存储单元 703 中最早完成 缩放的重构图像块对应的存储区域, 将所述条带解码后的重构图像块存入所 述存储区域。
第一、第二、第三个条带解码后的重构图像块直接存入所述存储单元 703。 从第四个条带解码后的重构图像块开始, 存储控制子单元 707 确定当前条带 存储单元 703 中最早完成缩放的重构图像块对应的存储区域, 将所述条带解 码后的重构图像块存入所述存储区域。
缩放单元 704 , 用于根据条带解码完成指示信息, 按照缩放顺序对条带存 储单元 703 中至少一个条带解码后的重构图像块进行缩放, 输出条带缩放完 成指示信息。
所述缩放单元 704包括: 条带缩放子单元 713 , 用于根据空域缩放比例参 数对条带的重构图像块进行空域缩放。
条带缩放判断子单元 708 ,用于判断所述条带存储单元 703中是否存在至 少两个未进行过缩放的条带解码后的重构图像块。
所述缩放单元 704还包括最后条带判断子单元 709 ,用于当所述条带存储 单元 703 中只存在一个未进行过缩放的条带解码后的重构图像块时, 判断所 述条带解码后的重构图像块是否为图像最后一个条带解码后的重构图像块。
所述缩放单元 704 第一次接收到 "一个条带解码完成" 指示信息时, 所 述条带缩放判断子单元 708判断当前条带存储单元 703中只存在一个未进行 过缩放的重构图像块, 所述最后条带判断子单元 709 未接收到 "图像解码完 成" 指示信息, 因此判断所述重构图像块不是图像最后一个条带解码后的重 构图像块。 所述缩放单元 704不进行缩放。
所述缩放单元 704 第二次接收到 "一个条带解码完成" 指示信息时, 所 述条带缩放判断子单元 708判断当前条带存储单元 703中存在两个未进行过 缩放的重构图像块。 所述缩放单元 704 获取所述重构图像块中最早进行解码 的重构图像块。 缩放单元 704根据接收到的空域缩放比例参数, 对获取到的 重构图像块进行空域缩放。 缩放单元 704输出 "一个条带缩放完成" 指示信 息。 缩放单元 704将所述缩放后的重构图像块输出到显示存储单元 712中。
因此, 所述缩放单元 704从第二次接收到 "一个条带解码完成" 指示信 息开始, 每次接收到 "一个条带解码完成" 指示信息, 所述条带缩放判断子 单元 708可判断出当前条带存储单元 703 中存在两个未进行过缩放的重构图 像块。 所述缩放单元 704就按照缩放顺序继续缩放重构图像块。
所述缩放单元 704接收到 "图像解码完成" 指示信息后, 所述最后条带 判断子单元 709判断当前条带存储单元 703中只存在一个未进行过缩放的重 构图像块, 判定所述重构图像块是图像最后一个条带解码后的重构图像块。 缩放单元 704对所述重构图像块进行缩放, 缩放完成后, 输出 "图像解码缩 放完成" 指示信息。
以上缩放单元 704对重构图像块进行缩放,均可以理解为由缩放单元 704 中的条带缩放子单元 713执行。 显示存储单元 712 , 用于存储缩放单元 704缩放后的重构图像块。
显示输出单元 711 ,用于输出显示存储单元 712中存储的缩放后的所述重 构图像块。
显示输出单元 711读取显示存储单元 712 中存储的缩放后的所述重构图 像块, 输出到显示器如 LCD液晶屏上。
本发明实施例提供的数码相框, 通过将图像分为至少三个条带, 循环以 下步骤直至图像解码缩放完成: 根据条带缩放完成指示信息, 按照解码顺序 对当前图像的至少一个未解码条带进行解码, 得到条带解码后的重构图像块, 输出条带解码完成指示信息; 根据条带解码完成指示信息, 按照缩放顺序对 当前图像的至少一个条带解码后的未缩放重构图像块进行缩放, 输出条带缩 放完成指示信息。 因此, 存储器只需要在解码、 缩放图像的过程中, 存储图 像的几个条带解码后的重构图像块, 不需要在解码完整帧图像后, 存储整帧 图像解码后的重构图像, 从而减小了存储资源的占用量, 节省了存储空间。 另外, 本发明实施例中, 在解码期间进行频域缩放, 将进行过频域缩放 的条带解码后的重构图像块存入存储器中, 进一步减少了解码后的图像所占 用的存储空间和存储访问量。 空域缩放所述进行过频域缩放的条带解码后的 重构图像块时, 所需要的运算量也减小了。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流 程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储于 一计算机可读取存储介质中, 该程序在执行时, 可包括如上述各方法的实施 例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体( Read-Only Memory, ROM )或随机存储记忆体 ( Random Acces s Memory, RAM )等。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应以权利要求的保护范围为准。

Claims

权利 要求 书
1、 一种图像解码和缩放的方法, 其特征在于, 包括:
将当前图像分为至少三个条带, 所述条带包括多个连续的最小图像编码单 元, 循环进行以下步骤完成图像的解码缩放:
根据条带缩放完成指示信息, 按照解码顺序对当前图像的至少一个未解码 条带进行解码, 得到条带解码后的重构图像块, 输出条带解码完成指示信息; 根据条带解码完成指示信息, 按照缩放顺序对当前图像的至少一个条带解 码后的未缩放重构图像块进行缩放, 输出条带缩放完成指示信息。
2、 根据权利要求 1所述的图像解码和缩放的方法, 其特征在于, 在循环执 行所述解码缩放的步骤之前包括: 按照解码顺序解码当前图像的第一个条带和 第二个条带, 分别获得第一个条带和第二个条带对应的重构图像块, 对第一个 条带的重构图像块进行缩放。
3、 根据权利要求 1所述的图像解码和缩放的方法, 其特征在于, 所述按照 解码顺序对当前图像的至少一个未解码条带进行解码还包括:
确定频 i或缩放比例参数;
根据所述频域缩放比例参数执行带频域缩放的离散余弦反变换, 输出进行 过频域缩放的条带解码后的重构图像块。
4、 根据权利要求 1所述的图像解码和缩放的方法, 其特征在于, 所述得到 条带解码后的重构图像块之后还包括: 将所述重构图像块存入存储器; 所述存 储器的容量包括至少三个条带的解码重构图像的大小。
5、 根据权利要求 4所述的图像解码和缩放的方法, 其特征在于, 所述将所 述重构图像块存入存储器包括:
若当前存储器中不存在空闲的存储区域, 则确定当前存储器中最早完成缩 放的重构图像块对应的存储区域;
将所述条带解码后的重构图像块存入所述最早完成缩放的重构图像块对应 的存储区域。
6、 根据权利要求 4所述的图像解码和缩放的方法, 其特征在于, 所述按照 缩放顺序对当前图像的至少一个条带解码后的未缩放重构图像块进行缩放的步 骤之前包括:
判断所述存储器中是否存在至少两个未进行过缩放的所述重构图像块; 若是, 则对存入存储器的至少一个未进行过缩放的重构图像块进行缩放。
7、 根据权利要求 6所述的图像解码和缩放的方法, 其特征在于, 所述按照 缩放顺序对当前图像的至少一个条带解码后的未缩放重构图像块进行缩放的步 骤之前还包括:
如果判断所述存储器中只存在一个未进行过缩放的所述重构图像块, 则判 断所述未进行过缩放的重构图像块是否为最后一个条带解码后的重构图像块; 若是, 则对所述未进行过缩放的重构图像块进行缩放; 判断当前图像解码 缩放全部完成。
8、 一种图像解码和缩放装置, 其特征在于, 包括:
控制单元(501 ), 用于将当前图像分为至少三个条带, 配置、 控制解码单 元( 502 )和缩放单元( 504 );
解码单元( 502 ), 用于根据条带缩放完成指示信息, 按照解码顺序对当前 至少一个条带进行解码, 得到条带解码后的重构图像块, 输出条带解码完成指 示信息;
存储单元( 503 ), 用于存储所述解码单元( 502 )输出的条带解码后的重构 图像块;
缩放单元( 504 ), 用于根据条带解码完成指示信息, 按照缩放顺序对存储 单元( 503 ) 中至少一个条带解码后的重构图像块进行缩放, 输出条带缩放完成 指示信息。
9、 根据权利要求 8所述的图像解码和缩放装置, 其特征在于, 所述解码单 元( 502 ) 包括:
离散余弦反变换子单元 ( 506 ), 用于根据配置的频域缩放比例参数, 执行 带频域缩放的离散余弦反变换 , 输出缩小的条带解码后的重构图像块。
10、 根据权利要求 9 所述的图像解码和缩放装置, 其特征在于, 所述控制 单元(501 ) 包括:
缩放比例配置子单元 ( 505 ), 用于确定频域缩放比例参数和空域缩放比例 参数, 输出所述频域缩放比例参数给所述离散余弦反变换子单元( 506 ), 输出 所述空域缩放比例参数给所述缩放单元( 504 )。
11、 根据权利要求 8 所述的图像解码和缩放装置, 其特征在于, 所述存储 单元( 503 ) 包括:
存储控制子单元( 507 ), 用于若当前存储单元( 503 ) 中不存在空闲的存储 区域, 则确定当前存储单元( 503 ) 中最早完成缩放的重构图像块对应的存储区 域; 将所述条带解码后的重构图像块存入所述存储区域。
12、 一种图像显示系统, 其特征在于, 包括:
存储接口单元(610 ), 用于从外部存储介质中获取原始图像;
控制单元(601 ), 用于将当前图像分为至少三个条带, 配置、 控制解码单 元( 602 )和缩放单元( 604 );
解码单元( 602 ), 用于根据条带缩放完成指示信息, 按照解码顺序对当前 至少一个条带进行解码, 得到条带解码后的重构图像块, 输出条带解码完成指 示信息;
条带存储单元( 603 ), 用于存储所述解码单元( 602 )输出的条带解码后的 重构图像块;
缩放单元( 604 ), 用于根据条带解码完成指示信息, 按照缩放顺序对条带 存储单元( 603 ) 中至少一个条带解码后的重构图像块进行缩放, 输出条带缩放 完成指示信息;
显示存储单元( 605 ), 用于存储当前图像缩放后的重构图像块;
显示输出单元( 606 ), 用于按照显示顺序输出所述显示存储单元( 605 ) 中 存储的缩放后的重构图像块。
1 3、根据权利要求 12所述的图像显示系统,其特征在于,所述解码单元( 602 ) 包括:
离散余弦反变换子单元, 用于根据配置的频域缩放比例参数, 执行带频域 缩放的离散余弦反变换 , 输出缩小的条带解码后的重构图像块。
14、根据权利要求 1 3所述的图像显示系统,其特征在于,所述控制单元( 601 ) 包括:
缩放比例配置子单元, 用于确定频域缩放比例参数和空域缩放比例参数, 输出所述频域缩放比例参数给所述离散余弦反变换子单元, 输出所述空域缩放 比例参数给所述缩放单元( 604 )。
PCT/CN2009/071362 2008-09-18 2009-04-20 图像解码和缩放的方法及装置、图像显示系统 WO2010031259A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN 200810161208 CN101370142B (zh) 2008-09-18 2008-09-18 图像解码和缩放的方法及装置、图像显示系统
CN200810161208.6 2008-09-18

Publications (1)

Publication Number Publication Date
WO2010031259A1 true WO2010031259A1 (zh) 2010-03-25

Family

ID=40413726

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/071362 WO2010031259A1 (zh) 2008-09-18 2009-04-20 图像解码和缩放的方法及装置、图像显示系统

Country Status (2)

Country Link
CN (1) CN101370142B (zh)
WO (1) WO2010031259A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101370142B (zh) * 2008-09-18 2011-05-04 华为技术有限公司 图像解码和缩放的方法及装置、图像显示系统
CN102044065B (zh) * 2009-10-20 2013-07-03 瑞昱半导体股份有限公司 图像区块内缩小的设计方法
CN102129702B (zh) * 2010-01-12 2013-07-03 北大方正集团有限公司 一种图像缩略图的制作方法及其系统
CN102572207B (zh) * 2010-12-30 2014-05-14 无锡华润矽科微电子有限公司 一种适于jpeg图像的颜色空间转换方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1819660A (zh) * 2005-02-07 2006-08-16 上海芯华微电子有限公司 视频码流的跨多个条带的解码方法及其装置
CN1822656A (zh) * 2006-01-13 2006-08-23 深圳创维-Rgb电子有限公司 采用嵌入式Linux系统的电视机显示高分辨率JPEG图片的方法
CN101043588A (zh) * 2006-03-24 2007-09-26 深圳Tcl新技术有限公司 电视图像缩放装置
US20080144953A1 (en) * 2006-12-13 2008-06-19 Canon Kabushiki Kaisha Image processing apparatus and method thereof
CN101370142A (zh) * 2008-09-18 2009-02-18 华为技术有限公司 图像解码和缩放的方法及装置、图像显示系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1819660A (zh) * 2005-02-07 2006-08-16 上海芯华微电子有限公司 视频码流的跨多个条带的解码方法及其装置
CN1822656A (zh) * 2006-01-13 2006-08-23 深圳创维-Rgb电子有限公司 采用嵌入式Linux系统的电视机显示高分辨率JPEG图片的方法
CN101043588A (zh) * 2006-03-24 2007-09-26 深圳Tcl新技术有限公司 电视图像缩放装置
US20080144953A1 (en) * 2006-12-13 2008-06-19 Canon Kabushiki Kaisha Image processing apparatus and method thereof
CN101370142A (zh) * 2008-09-18 2009-02-18 华为技术有限公司 图像解码和缩放的方法及装置、图像显示系统

Also Published As

Publication number Publication date
CN101370142A (zh) 2009-02-18
CN101370142B (zh) 2011-05-04

Similar Documents

Publication Publication Date Title
US11943444B2 (en) Restricted upsampling process in matrix-based intra prediction
US11196989B2 (en) Video encoding method, device and storage medium using resolution information
US8503827B2 (en) Apparatus and method for decoding image data
KR101226877B1 (ko) 부호화 장치, 부호화 방법 및 부호화 프로그램, 및 촬상장치
JP5502988B2 (ja) 画像を回転させる装置および方法
US8331446B2 (en) Method and device for reordering video information
US20230328263A1 (en) Syntax signaling and parsing based on colour component
EP1446953A2 (en) Multiple channel video transcoding
US20090129478A1 (en) Deblocking filter
US20150146785A1 (en) Video decoder memory bandwidth compression
US6205181B1 (en) Interleaved strip data storage system for video processing
WO2010031259A1 (zh) 图像解码和缩放的方法及装置、图像显示系统
CN111669597B (zh) 调色板解码装置和方法
CN111510717B (zh) 图像拼接方法和装置
US20090304073A1 (en) Systems and Methods for the Bandwidth Efficient Processing of Data
US7787700B2 (en) Signal processing method, signal processing apparatus, computer-readable medium and a data recording medium
JP2004165733A (ja) 画像変換装置及び画像変換方法並びに記録媒体
JP4109151B2 (ja) 画像処理装置
JP2004354593A (ja) 画像サイズの変更方法及装置
US7848581B2 (en) System and method for decoding and viewing of image files
TWI833620B (zh) 圖像編碼裝置、圖像編碼方法、圖像解碼裝置及圖像解碼方法
TWI426465B (zh) 使用jpeg用於顯示及記錄的彩色影像旋轉之方法及裝置
CN116347089A (zh) Jpeg图像处理方法及其装置、电子设备、存储介质
KR100221003B1 (ko) 디지탈화상 복호장치
KR20040063650A (ko) 비디오 코덱의 리사이징 시스템

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09813980

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09813980

Country of ref document: EP

Kind code of ref document: A1