1. Field of the Invention
The present invention relates to an image decoding apparatus, and more specifically, to an image decoding apparatus utilized in an image player.
2. Description of the Prior Art
As technology improves, the computation ability of a CPU (central processing unit) of a computer is enhanced. Therefore, technology of image processing nowadays depends on a CPU to perform the operation of image encoding or decoding. It is well known that image processing is one kind of technology, which needs to perform a large number of computations. Hence, whether a personal computer or an image player is processing an image file, the load on a CPU is very heavy during the period of image processing.
Please refer to
Generally speaking, after the CPU 10 receives the compressed file 30 (such as a JPEG (Joint Photographic Experts Group) file) stored in an optical disc (not shown), the CPU 10 gets an instruction for decoding a compressed image from the RAM 50 and then decodes the compressed file 30. During the decoding process, the CPU 10 continuously accesses data of the compressed file 30 and then stores the decoded image data of the compressed file 30 to RAM 50. Therefore, data is transmitted constantly within buses connected between the CPU 10 and the RAM 50 and the CPU 10 and the compressed file 30. After the CPU 10 finishes decoding the process of the compressed file 30, the decoded image data is transmitted from the RAM 50 to be stored into the frame buffer 20. The video encoder 40 appropriately encodes the decoded image data stored in the frame buffer 20 and outputs the encoding result to a screen of a computer or a TV (not shown in
However, when displaying the compressed file 30 at a high resolution, the computation ability of the CPU 10 is limited. Therefore, decoding the compressed file 30 consumes a very long time and causes the situation in which image display on a screen of a computer or a TV idles or experiences delays. If the situation occurs in which image display idles or delays, especially on an image player that is playing images, a consumer will not likely purchase the image player.
It is therefore an objective of the claimed invention to provide an image decoding apparatus for decoding a compressed file. When decoding a compressed file to generate a corresponding image, the image decoding apparatus can decrease the load on a CPU and increase the speed of decoding the compressed file. Therefore the quality of image display on a TV screen can be substantially improved, and the situation in which image display idles or delays will occur less.
According to the claimed invention, an image decoding apparatus is disclosed for decoding a compressed file. The image decoding apparatus contains a CPU which receives a compressed file; a compressed file decoder which receives the compressed file outputted from the CPU, generates a decoded image data and then encodes the decoded image data into a digital video signal; a frame buffer connected to the compressed file decoder for storing the decoded image data; and an analog video encoder which receives the digital video signal and converts the digital video signal to a TV signal.
According to the claimed invention, an image decoding apparatus is disclosed for decoding a compressed file. The image decoding apparatus contains a decoder core utilized for receiving a compressed file and producing a frame composed of a plurality of minimum coded units for the compressed file; an adjusting operation unit utilized for selecting a shown range in the frame, applying a resize operation or a rotation operation on the shown range, and then converting the shown range on which the resize operation or the rotation operation has been performed into the decoded image data; a frame buffer utilized for storing the decoded image data; and a digital video encoder utilized for reading the decoded image data stored in the frame buffer and encoding the decoded image data to generate a digital video signal.
These and other objectives of the claimed invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Please refer to
After receiving the compressed file 205 by the CPU 210, the CPU 210 does not process the compressed file 205 and transmits the compressed file 205 to the compressed file decoder 220. The compressed file decoder 220 converts the compressed file 205 to a decoded image data, and then stores the decoded image data into the frame buffer 240. The compressed file decoder 220 also converts the decoded image data stored in the frame buffer 240 to a digital video signal and transmits the digital video signal to an analog video encoder 230. The analog video encoder 230 receives the digital video signal outputted by the compressed file decoder 220 and converts the digital video signal into a TV signal that conforms to the NTSC or the PAL standard. Then, the TV signal is transmitted to a TV screen (not shown in
Furthermore, please refer to
Furthermore, the adjusting operation unit 224 comprises a crop unit 225 and a resize unit 226. The crop unit 225 is utilized for selecting the shown range. The resize unit 226 is utilized for applying a resize operation or a rotation operation on the shown range.
Generally speaking, when the compressed file 205 is received by the decoder core 223, the format and the parameters of the compressed file 205 are recorded along with a sampling factor in the header of the compressed file 205. The decoder core 223 generates the plurality of minimum coded units according to the sampling factor. Please refer to
According to the embodiment of the present invention, after a compressed file 205 is received by the CPU 210, the CPU 210 immediately transmits the compressed file 205 to the compressed file decoder 220. The compressed file decoder 220 decodes the compressed file 205 and outputs the digital video signal to the analog video encoder 230. The analog video encoder 230 generates the TV signal that conforms to the NTSC or the PAL standard. Then, the TV signal is transmitted to a TV screen to display the image corresponding to the compressed file 205 on the TV screen.
Therefore, according to the present invention, the input FIFO buffer 222, the decoder core 223, the adjusting operation unit 224, the output FIFO buffer 227, and the digital video encoder 228 are integrated into the compressed file decoder 220. Hence, when the compressed file 205 is decoded, the load on the CPU 210 can be substantially decreased.
Furthermore, each component of the compressed file decoder 220 has a specific function and a pipeline structure is used in designing the elements of the compressed file decoder 220. Therefore, after the compressed file 205 is received by the compressed file decoder 220, each of the elements of the compressed file decoder 202 sequentially executes to decode the compressed file 205 to generate a corresponding decoded image data. Hence, when displaying the image corresponding to the compressed file 205, the quality of image display on a TV screen can be substantially improved, and the situation in which image display idles or delays will occur less.
Moreover, the compressed file decoder 220 according to the present invention can further provide various operation modes according to a user's choice. For example, after a user selects an operation mode, the decoded image data after some operation(s) (a resize operation or a rotation operation) applied by the adjusting operation unit 224 is temporarily stored in the output FIFO buffer 227. Then the decoded image data stored in the output FIFO buffer 227 is transmitted back to the CPU 210 to be processed by the CPU 210. Or after a user selects an operation mode, the CPU 210 can directly access the decoded image data stored in the frame buffer 240.
Therefore, the present invention adds a compressed file decoder in the image decoding apparatus to decrease the load on a CPU and increase the speed of decoding a compressed file.
Those skilled in the art will readily observe that numerous modifications and alterations of the device may be made while retaining the teachings of the invention. Accordingly, that above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
092120173 | Jul 2003 | TW | national |