DATA PROCESSING APPARATUS FOR TRANSMITTING/RECEIVING COMPRESSION-RELATED INDICATION INFORMATION VIA CAMERA INTERFACE AND RELATED DATA PROCESSING METHOD
A data processing apparatus has a compressor and an output interface. The compressor generates a compressed multimedia data by compressing a multimedia data according to a compression algorithm. The output interface records indication information in an output bitstream, and outputs the output bitstream via a camera interface, wherein the output bitstream is derived from the compressed multimedia data, and the indication information is set in response to the compression algorithm employed by the compressor. Another data processing apparatus has a de-compressor and an input interface. The de-compressor de-compresses a compressed multimedia data derived from an input bitstream. The input interface receives the input bitstream via a camera interface, parses indication information included in the input bitstream, and configures the de-compressor to employ a de-compression algorithm as indicated by the indication information.
Latest MEDIATEK INC. Patents:
- Video encoder with motion compensated temporal filtering
- Antenna for multi-broadband and multi-polarization communication
- Dynamic frame rate adjustment mechanism
- METHOD FOR ADJUSTING TIME-AVERAGED PARAMETERS OF TRANSMITTING POWER OF RADIO MODULE AND ASSOCIATED RADIO MODULE
- Memory Inline Cypher Engine with Confidentiality, Integrity, and Anti-Replay for Artificial Intelligence or Machine Learning Accelerator
This application claims the benefit of U.S. provisional application No. 61/729,426, filed on Nov. 23, 2012 and incorporated herein by reference.
BACKGROUNDThe disclosed embodiments of the present invention relate to transmitting and receiving multimedia data over a camera interface, and more particularly, to a data processing apparatus for transmitting/receiving compression-related indication information via a camera interface and related data processing method.
A camera interface is disposed between a first chip and a second chip to transmit multimedia data from the first chip to the second chip for further processing. For example, the first chip may include a camera module, and the second chip may include an image signal processor (ISP). The multimedia data may include image data (i.e., a single still image) or video data (i.e., a video sequence composed of images). When a camera sensor with a higher resolution is employed in the camera module, the multimedia data transmitted over the camera interface would have a larger data size/data rate, which increases the power consumption of the camera interface inevitably. If the camera module and the ISP are both located at a portable device (e.g., a smartphone) powered by a battery device, the battery life is shortened due to the increased power consumption of the camera interface. Thus, there is a need for an innovative design which can effectively reduce the power consumption of the camera interface.
SUMMARYIn accordance with exemplary embodiments of the present invention, a data processing apparatus for transmitting/receiving compression-related indication information via a camera interface and related data processing method are proposed.
According to a first aspect of the present invention, an exemplary data processing apparatus is disclosed. The exemplary data processing apparatus has a compressor and an output interface. The compressor is arranged for generating a compressed multimedia data by compressing a multimedia data according to a compression algorithm. The output interface is arranged for recording indication information in an output bitstream and outputting the output bitstream via a camera interface, wherein the output bitstream is derived from the compressed multimedia data, and the indication information is set in response to the compression algorithm employed by the compressor.
According to a second aspect of the present invention, an exemplary data processing apparatus is disclosed. The exemplary data processing apparatus has a de-compressor and an input interface. The de-compressor is arranged for de-compressing a compressed multimedia data derived from an input bitstream. The input interface is arranged for receiving the input bitstream via a camera interface, parsing indication information included in the input bitstream, and configuring the de-compressor to employ a de-compression algorithm as indicated by the indication information.
According to a third aspect of the present invention, an exemplary data processing method is disclosed. The exemplary data processing method includes at least the following steps: generating a compressed multimedia data by compressing a multimedia data according to a compression algorithm; and recording indication information in an output bitstream and outputting the output bitstream via a camera interface, wherein the output bitstream is derived from the compressed multimedia data, and the indication information is set in response to the compression algorithm.
According to a fourth aspect of the present invention, an exemplary data processing method is disclosed. The exemplary data processing method includes at least the following steps: de-compressing a compressed multimedia data derived from an input bitstream; and receiving the input bitstream via a camera interface, parsing indication information included in the input bitstream, and configuring the de-compressing step to employ a de-compression algorithm as indicated by the indication information.
These and other objectives of the present 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.
Certain terms are used throughout the description and following claims to refer to particular components. As one skilled in the art will appreciate, manufacturers may refer to a component by different names. This document does not intend to distinguish between components that differ in name but not function. In the following description and in the claims, the terms “include” and “comprise” are used in an open-ended fashion, and thus should be interpreted to mean “include, but not limited to . . . ”. Also, the term “couple” is intended to mean either an indirect or direct electrical connection. Accordingly, if one device is coupled to another device, that connection may be through a direct electrical connection, or through an indirect electrical connection via other devices and connections.
The present invention proposes applying data compression to a multimedia data and then transmitting a compressed multimedia data over a camera interface. As the data size/data rate of the compressed multimedia data is smaller than that of the original un-compressed multimedia data, the power consumption of the camera interface is reduced correspondingly. Besides, the de-compression algorithm employed by a receiving end which receives and de-compresses a compressed multimedia data is required to be compliant with the compression algorithm employed by a transmitting end which generates and transmits the compressed multimedia data; otherwise, the receiving end fails to correctly de-compress the compressed multimedia data. Therefore, the present invention further proposes transmitting/receiving the compression-related indication information via the camera interface, such that the de-compression algorithm of the receiving end is properly configured based on the compression-related indication information. Further details will be described as below.
The camera module 102 is coupled to the camera interface 103, and supports un-compressed data transmission and compressed data transmission. When the camera module 102 is used to transmit un-compressed data to the ISP 104, the camera module 102 generates the un-compressed multimedia data D1 according to an input multimedia data derived from capturing the incident light, and transmits the un-compressed multimedia data D1 over the camera interface 103. When the camera module 102 is used to transmit compressed data to the ISP 104, the camera module 102 generates a compressed multimedia data D1′ according to the input multimedia data derived from capturing the incident light, and transmits the compressed multimedia data D1′ over the camera interface 103. By way of example, but not limitation, the input multimedia data obtained by capturing the incident light and used for generating the un-compressed multimedia data D1/compressed multimedia data D1′ may be an image data or a video data.
As shown in
The output interface 114 is arranged for packing/packetizing the un-compressed multimedia data D1/compressed multimedia data D1′ into an output bitstream according to the transmission protocol of the camera interface 103, and transmits the output bitstream to the ISP 104 via the camera interface 103. When the compression mode of the camera module 102 is enabled, the compressor 117 further sets indication information INFO in response to the compression algorithm employed. Besides, the output interface 114 further records the indication information INFO in the output bitstream. In this way, when the output bitstream is transmitted from the camera module 102 to the ISP 104, the compression-related indication information (e.g., the indication information INFO) is also transmitted via the camera interface 103.
Regarding the ISP 104, it communicates with the camera module 102 via the camera interface 103. In this embodiment, the ISP 104 is coupled to the camera interface 103, and supports un-compressed data reception and compressed data reception. When the camera module 102 transmits the un-compressed data D1 to the ISP 104, the ISP 104 is operated under a non-decompression mode to receive an un-compressed data D2 from the camera interface 103, generate a processed multimedia data according to the un-compressed data D2, and send the processed multimedia data to one or multiple processors, such as a display processor 106_1, a video processor 106_2, and/or a graphic processor 106_3, for further processing. When the camera module 102 transmits the compressed data D1′ to the ISP 104, the ISP 104 is operated under a de-compression mode to receive a compressed multimedia data D2′ from the camera interface 103, generate a processed multimedia data according to the compressed data D2′, and send the processed multimedia data to one or multiple processors, such as the display processor 106_1, the video processor 106_2, and/or the graphic processor 106_3, for further processing. If there is no error introduced during the data transmission, the un-compressed data D1 transmitted under the non-compression mode should be identical to the un-compressed data D2 received under the non-decompression mode, and the compressed data D1′ transmitted under the compression mode should be identical to the compressed data D2′ received under the de-compression mode.
As shown in
The input interface 124 is arranged for receiving the input bitstream from the camera interface 103, and un-packing/un-packetizing the input bitstream into un-compressed multimedia data D2/compressed multimedia data D2′ according to the transmission protocol of the camera interface 103. When the de-compression mode of the ISP 104 is enabled, the input interface 124 is further arranged for parsing the indication information INFO included in the input bitstream, and configuring the de-compressor 127 to employ a de-compression algorithm as indicated by the indication information INFO. In addition to the compressed data transmission between the camera module 102 and the ISP 104, information handshaking is realized through the camera interface 103. Therefore, with the help of the indication information INFO supplied from the camera module 102, the de-compressor 127 of the ISP 104 is properly configured to employ an adequate de-compression algorithm needed for de-compressing the compressed data D2′ correctly.
In one exemplary design, the output interface 114 records the indication information INFO by setting a command set in a payload portion of the output bitstream transmitted over the camera interface 103, and the input interface 124 obtains the indication information INFO by parsing a command set in a payload portion of the input bitstream received from the camera interface 103. Please refer to
Step 400: Start.
Step 402: Configure the compressor 117 to employ a compression algorithm.
Step 404: Set the indication information INFO in response to the compression algorithm employed by the compressor 117.
Step 406: Record the indication information INFO in an output bitstream. For example, the indication information INFO is recorded by setting a command set in a payload portion of the output bitstream.
Step 408: Transmit the output bitstream over the camera interface 103.
Step 410: Receive an input bitstream from the camera interface 103.
Step 412: Parse the indication information INFO included in the input bitstream. For example, the indication information INFO is obtained by parsing a command set in a payload portion of the input bitstream.
Step 414: Configure the de-compressor 127 to employ a de-compression algorithm as indicated by the indication information INFO.
Step 416: End.
It should be noted that steps 402-408 are performed by the camera module 102, and steps 410-414 are performed by the ISP 104. As a person skilled in the art can readily understand details of each step shown in
It should be noted that the same handshaking mechanism may be applied to a data processing system equipped with virtual channel capability. Please refer to
The virtual channel is to provide separate channels (e.g., 506_1 and 506_2) for different data flows that are interleaved in the data stream transmitted over the camera interface 103. Thus, the receiving end will monitor the channel ID numbers and de-multiplex the interleaved data streams (e.g., the aforementioned first data stream and second data stream) to their appropriate channels 506_1, 506_2. More specifically, the channel controller 504 is arranged to direct data streams to individual channels 506_1, 506_2 under the control of the channel detector 502. In this embodiment, the output interface 114 of the camera module 102 is further arranged for recording a channel ID number IDCH in a header portion of the output bitstream to indicate which one of the channels 506_1, 506_2 should be connected for receiving the output bitstream.
The channel detector 502 is implemented for receiving an input bitstream from the camera interface 103, and identifying the channel ID number IDCH from the header portion of the input bitstream. Next, the channel controller 504 dispatches the input bitstream, including the header portion and the payload portion shown in
Step 700: Start.
Step 702: Configure the compressor 117 to employ a compression algorithm.
Step 704: Set the indication information INFO in response to the compression algorithm employed by the compressor 117.
Step 706: Set the channel ID number IDCH indicative of which channel should be connected for data transmission.
Step 708: Record the channel ID number IDCH and the indication information INFO in an output bitstream. For example, the indication information INFO is recorded by setting a command set in a payload portion of the output bitstream, and the channel ID number IDCH is recorded by setting a header portion of the output bitstream.
Step 710: Transmit the output bitstream over the camera interface 103.
Step 712: Get the channel ID number IDCH from an input bitstream. For example, the channel ID number IDCH is obtained by parsing a header portion of the input bitstream.
Step 714: Dispatch the input bitstream to a selected channel with the channel ID number IDCH.
Step 716: Receive the input bitstream dispatched from the channel controller 504.
Step 718: Parse the indication information INFO included in the input bitstream. For example, the indication information INFO is obtained by parsing a command set in a payload portion of the input bitstream.
Step 720: Configure the de-compressor 127 to employ a de-compression algorithm as indicated by the indication information INFO.
Step 722: End.
It should be noted that steps 702-710 are performed by the camera module 102, step 712 is performed by the channel detector 502, step 714 is performed by the channel controller 504, and steps 716-720 are performed by the ISP 104. As a person skilled in the art can readily understand details of each step shown in
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method 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.
Claims
1. A data processing apparatus comprising:
- a compressor, arranged for generating a compressed multimedia data by compressing a multimedia data according to a compression algorithm; and
- an output interface, arranged for recording indication information in an output bitstream and outputting the output bitstream via a camera interface, wherein the output bitstream is derived from the compressed multimedia data, and the indication information is set in response to the compression algorithm employed by the compressor.
2. The data processing apparatus of claim 1, wherein the camera interface is a camera serial interface (CSI) standardized by a Mobile Industry Processor Interface (MIPI).
3. The data processing apparatus of claim 1, wherein the output interface records the indication information by setting a command set in a payload portion of the output bitstream.
4. The data processing apparatus of claim 3, wherein a first end of the camera interface is coupled to the output interface of the data processing apparatus, and a second end of the camera interface is allowed to be coupled to another data processing apparatus via any of a plurality of channels; the output interface further records a channel identification (ID) number in a header portion of the output bitstream to indicate which one of the channels is connected for receiving the output bitstream.
5. A data processing apparatus comprising:
- a de-compressor, arranged for de-compressing a compressed multimedia data derived from an input bitstream; and
- an input interface, arranged for receiving the input bitstream via a camera interface, parsing indication information included in the input bitstream, and configuring the de-compressor to employ a de-compression algorithm as indicated by the indication information.
6. The data processing apparatus of claim 5, wherein the camera interface is a camera serial interface (CSI) standardized by a Mobile Industry Processor Interface (MIPI).
7. The data processing apparatus of claim 5, wherein the input interface obtains the indication information by parsing a command set in a payload portion of the input bitstream.
8. The data processing apparatus of claim 7, wherein one end of the camera interface is allowed to be coupled to the data processing apparatus via any of a plurality of channels; and a specific channel selected from the channels according to a channel identification (ID) number recorded in a header portion of the input bitstream is connected for receiving the input bitstream.
9. A data processing method comprising:
- generating a compressed multimedia data by compressing a multimedia data according to a compression algorithm; and
- recording indication information in an output bitstream and outputting the output bitstream via a camera interface, wherein the output bitstream is derived from the compressed multimedia data, and the indication information is set in response to the compression algorithm.
10. The data processing method of claim 9, wherein the camera interface is a camera serial interface (CSI) standardized by a Mobile Industry Processor Interface (MIPI).
11. The data processing method of claim 9, wherein the step of recording the indication information in the output bitstream comprises:
- recording the indication information by setting a command set in a payload portion of the output bitstream.
12. The data processing method of claim 11, wherein a first end of the camera interface is coupled to the output bitstream, and a second end of the camera interface is allowed to be coupled to a data processing apparatus via any of a plurality of channels; and the data processing method further comprises:
- recording a channel identification (ID) number in a header portion of the output bitstream to indicate which one of the channels is connected for receiving the output bitstream.
13. The data processing method of claim 9, wherein the indication information is adjusted when at least one of a compression ratio, a compression unit size, a color format, and a bit depth of the compression algorithm is changed.
14. A data processing method comprising:
- de-compressing a compressed multimedia data derived from an input bitstream; and
- receiving the input bitstream via a camera interface, parsing indication information included in the input bitstream, and configuring the de-compressing step to employ a de-compression algorithm as indicated by the indication information.
15. The data processing method of claim 14, wherein the camera interface is a camera serial interface (CSI) standardized by a Mobile Industry Processor Interface (MIPI).
16. The data processing method of claim 14, wherein the step of parsing the indication information included in the input bitstream comprises:
- obtaining the indication information by parsing a command set in a payload portion of the input bitstream.
17. The data processing method of claim 16, wherein one end of the camera interface is allowed to be coupled to any of a plurality of channels; and the data processing method further comprises:
- receiving the input bitstream from the camera interface via a specific channel selected from the channels according to a channel identification (ID) number recorded in a header portion of the input bitstream.
18. The data processing method of claim 14, wherein the indication information is adjusted when at least one of a compression ratio, a compression unit size, a color format, and a bit depth of the compression algorithm is changed.
Type: Application
Filed: Aug 13, 2013
Publication Date: May 29, 2014
Applicant: MEDIATEK INC. (Hsin-Chu)
Inventors: Chi-Cheng Ju (Hsinchu City), Tsu-Ming Liu (Hsinchu City)
Application Number: 13/965,210
International Classification: H04N 5/232 (20060101);