1. Field of the Invention
The invention relates to an integrated coder/decoder (CODEC) apparatus, and more particularly, to an integrated CODEC apparatus and method for controlling a CODEC module according to the original data format of incoming data or according to a target data format of outgoing data.
2. Description of the Prior Art
With the continued development in the field of multimedia, new advances and usages are producing different user requirements. Because of this, the Moving Picture Experts Group (MPEG) of the International Standards organization (ISO) has established video compression standards to provide a standard data interface for apparatuses with different formats. Following these standards, each company can individually produce their own encoder and decoder. These CODECs (coder/decoder) with different formats provide appropriate compression ratios for data processing according to different user requirements. For example, for higher transmitted data bandwidths, a technique having a smaller compression ratio such as MPEG-1 can be used. For lower transmitted data bandwidths, for example transmitted video passing through a cell phone handset, a technique having a higher compression ratio such as MPEG-4 can be used. Additionally, because of this plurality of devices using different formats, it is often required to convert multimedia data being compressed with a first data format to multimedia data being compressed with a second data format.
However, prior art CODEC apparatuses are implemented using integrated circuits (ICs) which only code/decode data of a single format. If a computer system needs to process data with different formats using multiple CODEC techniques, the development and manufacturing costs of using only one chip to perform this hardware based processing and simultaneously support different CODEC techniques is extremely high. On the other hand, if software-based processing is used to support the different CODEC techniques, the load and efficiency of the computer system will be seriously degraded.
One objective of the claimed invention is therefore to provide an integrated CODEC apparatus and method that controls a CODEC module according to an original data format of incoming data or according to a target data format of outgoing data, to solve the above-mentioned problems.
According to an exemplary embodiment of the claimed invention, an integrated coder/decoder (CODEC) apparatus is disclosed for converting incoming data into outgoing data. The integrated CODEC apparatus comprises a plurality of CODEC modules, each CODEC module for encoding the incoming data to produce the outgoing data or for decoding the incoming data to produce the outgoing data; and a processing unit electrically coupled to the plurality of CODEC modules for controlling at least one of the CODEC modules to convert the incoming data into the outgoing data according to an original data format of the incoming data or according to a target data format of the outgoing data.
According to another exemplary embodiment of the claimed invention, an integrated coder/decoder (CODEC) method is disclosed for converting incoming data into outgoing data. The integrated CODEC method comprises the following steps: (a) providing a plurality of CODEC modules, each CODEC module for encoding the incoming data to produce the outgoing data or for decoding the incoming data to produce the outgoing data; and (b) controlling at least one of the CODEC modules to convert the incoming data into the outgoing data according to an original data format of the incoming data or according to a target data format of the outgoing data.
The claimed invention determines which CODEC modules are required to be controlled according to an original data format of incoming data or according to a target data format of outgoing data, and converts the data format accordingly. It is an advantage of the present invention integrated CODEC apparatus that development costs are low because the integrated CODEC apparatus can be implemented using hardware. Additionally, when the present invention integrated CODEC apparatus uses hardware processing techniques to perform CODEC operations, the efficiency of a system using the integrated CODEC apparatus is not degraded such as is experienced when using software-based operations.
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
Please refer to
Step 100: Input incoming data DATAi for processing.
Step 102: The processing unit 20 controls at least one of the CODEC modules 22, 24 according to the original data format of the incoming data DATAi or a target data format of the outgoing data DATAo.
Step 104: CODEC module 22 or CODEC module 24 performs a CODEC processing operation to produce outgoing data DATAo.
Step 106: Output the processed outgoing data DATAo.
According to the above steps, after the incoming data DATAi is transmitted to the integrated CODEC apparatus 10 (step 100), the processing unit 20 is able to determine the original data format of the incoming DATAi or the desired target data format of the outgoing data DATAo. According to the result of this determination, the processing unit 20 controls the appropriate CODEC module(s) 22, 24 (step 102). For example, if the original data format is the above-mentioned first data format, the processing unit 20 will determine that it is required to control CODEC module 22 to decode the incoming data DATAi to produce outgoing data DATAo corresponding to the above-mentioned second data format (step 104). If the original data format is the above-mentioned third data format, the processing unit 20 will determine that it is required to control CODEC module 24 to decode the incoming data DATAi to produce outgoing data DATAo corresponding to the above-mentioned fourth data format (step 104). If the target data format is the above-mentioned second data format, the processing unit 20 will determine that it is required to control CODEC module 22 to encode the incoming data DATAi to produce outgoing data DATAo corresponding to the above-mentioned second data format (step 104). If the target data format is the above-mentioned fourth data format, the processing unit 20 will determine that it is required to control CODEC module 24 to encode the incoming data DATAi to produce outgoing data DATAo corresponding to the above-mentioned fourth data format (step 104). Finally, by controlling the appropriate CODEC module(s) 22, 24, the integrated CODEC apparatus 10 is able to perform the correct CODEC operation on the incoming data DATAi and properly output the desired outgoing data DATAo (step 106).
Please note that the integrated CODEC apparatus 10 can expand functionality by cascading CODEC modules 22, 24. For example, if the original data format is the first data format and the target data format is the fourth data format, the processing unit 20 controls CODEC module 22 to connect to CODEC module 24. That is, the data outputted by CODEC module 22 becomes the data inputted to CODEC module 24. In this way, the integrated CODEC apparatus 10 receives incoming data DATAi corresponding to the first data format and produces the desired outgoing data DATAo corresponding to the fourth data format. For example, the integrated CODEC module 10 can be used in an encryption/decryption system. In this embodiment, CODEC modules 22, 24 are each used to encrypt raw data to produce the desired decrypted data, or to decrypt encrypted data to produce the raw data. Additionally, the processing unit 20 can simultaneously control CODEC module 22, 24 to produce a cascaded structure. In this organization of CODEC modules 22, 24, it is possible to perform a prearranged encoding operation to encrypt the incoming data DATAi and produce the desired outgoing data DATAo, or to perform a corresponding decryption operation to decrypt the incoming data DATAi and produce the desired outgoing data DATAo.
The integrated CODEC apparatus 10 can also be used in a multimedia processing system. In this embodiment, if CODEC module 22 complies with a first video compression standard (such as MPEG-1, MPEG-2, and MPEG-4), and CODEC module 24 complies with a second video compression standard (such as MPEG-1, MPEG-2, and MPEG-4), then CODEC modules 22, 24 can be used to encode raw data to produce a bit stream compliant with one of the video compression standards or to decode a bit stream compliant with one of the video standards to produce the raw data. In addition, the integrated CODEC apparatus 10 can be used in cascaded organization of the CODEC modules 22, 24 to convert a first bit stream having a first format into another bit stream having a second format. For example, CODEC module 22 can decode a video bit stream according to the MPEG-2 standard, while the CODEC 24 performs a encoding operation according to the MPEG-4 standard. Because of this, if the incoming data DATAi is a video bit stream compliant with the MPEG-2 standard but a user instead wants to obtain a video bit stream compliant with the MPEG-4 standard, the processing unit 20 can simultaneously control CODEC modules 22, 24 to form a cascade structure. In this way, after CODEC module 22 decodes the incoming DATAi and produces the corresponding raw data, the raw data is inputted into CODEC module 24. Next, CODEC module 24 performs an encoding operation on the raw data according to the MPEG-4 standard. Finally, the integrated CODEC apparatus 10 outputs the user desired outgoing data DATAo being compliant with the MPEG-4 standard.
The present invention integrated CODEC apparatus and method determines which CODEC modules are required according to an original data format of incoming data or a target data format of outgoing data. Because the present invention integrated CODEC apparatus can be implemented using hardware, the development costs are low. Additionally, when the present invention CODEC apparatus uses hardware processing techniques to perform CODEC operations, this avoids degrading the efficiency of the system as is experienced when using software based operations.
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, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
093112755 | May 2004 | TW | national |