1. Technical Field
The present invention relates generally to cellular wireless communication systems, and more particularly to a distinct hardware video accelerator component to support video compression and decompression within a wireless terminal of a cellular wireless communication system.
2. Related Art
Cellular wireless communication systems support wireless communication services in many populated areas of the world. While cellular wireless communication systems were initially constructed to service voice communications, they are now called upon to support data and video (multimedia) communications as well. The demand for video and data communication services has exploded with the acceptance and widespread use video capable wireless terminals and the Internet. Video and data communications have historically been serviced via wired connections; cellular wireless users now demand that their wireless units also support video and data communications. The demand for wireless communication system video and data communications will only increase with time. Thus, cellular wireless communication systems are currently being created/modified to service these burgeoning demands.
Cellular wireless networks include a “network infrastructure” that wirelessly communicates with wireless terminals within a respective service coverage area. The network infrastructure typically includes a plurality of base stations dispersed throughout the service coverage area, each of which supports wireless communications within a respective cell (or set of sectors). The base stations couple to base station controllers (BSCs), with each BSC serving a plurality of base stations. Each BSC couples to a mobile switching center (MSC). Each BSC also typically directly or indirectly couples to the Internet.
In operation, each base station communicates with a plurality of wireless terminals operating in its cell/sectors. A BSC coupled to the base station routes voice, video, data or multimedia communications between the MSC and a serving base station. The MSC then routes these communications to another MSC or to the PSTN. Typically, BSCs route data communications between a servicing base station and a packet data network that may include or couple to the Internet. Transmissions from base stations to wireless terminals are referred to as “forward link” transmissions while transmissions from wireless terminals to base stations are referred to as “reverse link” transmissions. The volume of data transmitted on the forward link typically exceeds the volume of data transmitted on the reverse link. Such is the case because data users typically issue commands to request data from data sources, e.g., web servers, and the web servers provide the data to the wireless terminals. The great number of wireless terminals communicating with a single base station forces the need to divide the forward and reverse link transmission times amongst the various wireless terminals.
Wireless links between base stations and their serviced wireless terminals typically operate according to one (or more) of a plurality of operating standards. These operating standards define the manner in which the wireless link may be allocated, setup, serviced and torn down. One popular cellular standard is the Global System for Mobile telecommunications (GSM) standard. The GSM standard, or simply GSM, is predominant in Europe and is in use around the globe. While GSM originally serviced only voice communications, it has been modified to also service data communications. GSM General Packet Radio Service (GPRS) operations and the Enhanced Data rates for GSM (or Global) Evolution (EDGE) operations coexist with GSM by sharing the channel bandwidth, slot structure, and slot timing of the GSM standard. GPRS operations and EDGE operations may also serve as migration paths for other standards as well, e.g., IS-136 and Pacific Digital Cellular (PDC).
The GSM standard specifies communications in a time divided format (in multiple channels). The GSM standard specifies a 4.615 ms frame that includes 8 slots of, each including eight slots of approximately 577 μs in duration. Each slot corresponds to a Radio Frequency (RF) burst. A normal RF burst, used to transmit information, typically includes a left side, a midamble, and a right side. The midamble typically contains a training sequence whose exact configuration depends on modulation format used. However, other types of RF bursts are known to those skilled in the art. Each set of four bursts on the forward link carry a partial link layer data block, a full link layer data block, or multiple link layer data blocks. Also included in these four bursts is control information intended for not only the wireless terminal for which the data block is intended but for other wireless terminals as well.
GPRS and EDGE include multiple coding/puncturing schemes and multiple modulation formats, e.g., Gaussian Minimum Shift Keying (GMSK) modulation or Eight Phase Shift Keying (8PSK) modulation. Particular coding/puncturing schemes and modulation formats used at any time depend upon the quality of a servicing forward link channel, e.g., Signal-to-Noise-Ratio (SNR) or Signal-to-Interference-Ratio (SIR) of the channel, Bit Error Rate of the channel, Block Error Rate of the channel, etc. As multiple modulation formats may be used for any RF burst, wireless communication systems require significant processing ability to encode and decode the information contained within the RF bursts. This decision may be further influenced by changing radio conditions and the desired quality level to be associated with the communications.
Video coding standards typically provide video representation in the form of a sequence of rectangular two-dimensional frames. As software is becoming increasingly more powerful with improved microelectronic technologies providing new programmable processors, additional functionalities may be added. These include the application of multimedia content or visual information in a mobile connection. Already today wireless terminals are not limited to only voice communications. Other types of data including real time multimedia may be provided. The need for visual communication is much stronger when using a mobile wireless device utilized in multiple environments. This reinforces the relevance of audiovisual communications in a mobile environment. Users want access to this audiovisual information in real time. This requires that the multimedia be of acceptable quality at low enough rates to be effectively communicated in the cellular wireless environment. The motion picture expert group (MPEG) standard addresses these emerging needs. These standards include standards such as MPEG 4 and MPEG 7 which specify a way of describing various types of multimedia information, including still pictures, video, speech, audio, graphics, 3D models, and synthetic audio and video. The MPEG 4 standard was conceived with the objective of obtaining significantly better compression ratios than could be achieved by conventional coding techniques. However, to achieve low data rates often requires computer intense coding schemes.
These improved coding and decoding efficiencies creates ever-growing demands on the processor within the wireless environment. Unlike a desktop computer coupled to a network via a landline connection a mobile wireless terminal will have a limited data rate between itself and the servicing base station. Additionally, the processors within the wireless terminal are assigned multiple processing duties. The increased coding and decoding associated with video standards such as MPEG 4 require additional processing power in order to maintain real time audio/visual communications. The addition of these processing requirements within the wireless terminal requires new methods with which to balance the processing requirements of the system processor while maintaining these real time audio/visual communications.
In order to overcome the shortcomings of prior devices, the present invention provides a system and method of processing video data that utilizes a distinct hardware video accelerator to support video compression and decompression within a wireless device. More specifically, one embodiment of the present invention provides a system for implementing video coding and decoding operations within a wireless terminal. This system includes a video interface that receives incoming video information and provides outgoing video information, a processor, optimally coupled to the video interface and a video processor accelerator optimally coupled to the processor. The video processor accelerator and processor jointly share the processing of incoming video information and outgoing video information. For example, the video processor accelerator may handle compute intensive algorithms such as fast discreet cosine transformation (FDCT) operations, quantization (QUAN) operations, inverse quantization (IQUAN), and inverse discreet cosine transform (IDCT) operations. Additionally, either the processor or video processor accelerator may also perform motion compensation operations, zigzag operations, run length coding/variable length coding (RLC/VLC) operations, and bit stream formatting.
Another embodiment provides a wireless terminal that utilizes a distinct hardware video accelerator to support video compression and decompression operations. This wireless terminal includes a radio frequency (RF) front end, a baseband and/or system processor, a video input device with which to capture or receive incoming video information, a video display device with which video information is presented, a video interface and a video processing system. The video processing system may further include a processing module, coupled to the video interface, wherein the processing module may in fact be a dedicated portion of the baseband or system processor utilized for video processing, and a video accelerator module operably coupled to the processing module to share video data processing responsibility.
Yet another embodiment of the present invention provides a method by which video or multimedia information is processed within a wireless terminal. This method involves receiving video information at a video processing engine wherein either the video information is to be captured or displayed. Next, the mode of operation of the video processing engine is determined. Based on this mode of operation, the processing of the video information will be divided between a processing module and a dedicated video accelerator module wherein the video accelerator module is configured based on the mode of operation.
Other features and advantages of the present invention will become apparent from the following detailed description of the invention made with reference to the accompanying drawings.
Each of the base stations 103-106 services a cell/set of sectors within which it supports wireless communications. Wireless links that include both forward link components and reverse link components support wireless communications between the base stations and their serviced wireless terminals. These wireless links support digital voice, video, multimedia, and data communications. The cellular wireless communication system 100 may also be backward compatible in supporting analog operations as well. The cellular wireless communication system 100 supports the Global System for Mobile telecommunications (GSM) standard and also the Enhanced Data rates for GSM (or Global) Evolution (EDGE) extension thereof. The cellular wireless communication system 100 may also support the GSM General Packet Radio Service (GPRS) extension to GSM. However, the present invention is also applicable to other standards as well, e.g., TDMA standards, CDMA standards, etc.
Wireless terminals 116, 118, 120, 122, 124, 126, 128, and 130 couple to the cellular wireless communication system 100 via wireless links with the base stations 103-106. As illustrated, wireless terminals may include video and multimedia capable cellular telephones 116 and 118, laptop computers 120 and 122, desktop computers 124 and 126, and data terminals 128 and 130. However, the wireless system supports communications with other types of wireless terminals as known to those skilled in the art as well. As is generally known, devices such as laptop computers 120 and 122, desktop computers 124 and 126, data terminals 128 and 130, and cellular telephones 116 and 118, are enabled to “surf” the Internet 114, transmit and receive data, audio and video communications. Many of these data operations have significant download data-rate (forward link) requirements and upload data-rate (reverse link) requirements in order to support video and multimedia communications. Some or all of the wireless terminals 116-130 are therefore enabled to support the EDGE operating standard, the GSM standard and may support the GPRS standard.
Wireless terminals 116-130 support the pipelined processing of received RF bursts in slots of a GSM frame so that a plurality of slots in each sub-frame of a GSM frame are allocated for forward link transmissions to a single wireless terminal. In one embodiment, a number of slots of a GSM frame are allocated for forward link transmissions to a wireless terminal such that the wireless terminal must receive and process a number of RF bursts, e.g., 2, 3, 4, or more RF bursts, in each GSM frame. The wireless terminal is able to process the RF bursts contained in these slots and still service reverse link transmissions and the other processing requirements of the wireless terminal.
The RF transceiver 202 couples to an antenna 203, to the digital processing components 204, and also to a battery 224 that powers all components of the wireless terminal 200. The physical layer processing, speech COder/DECoder (CODEC), and baseband CODEC functional block 206 couples to the protocol processing, man-machine interface functional block 208 and to a coupled microphone 226 and speaker 228. The protocol processing, man-machine interface functional block 208 couples to a Personal Computing/Data Terminal Equipment interface 210, a keypad 212, a Subscriber Identification Module (SIM) port 213, a camera 214, a flash RAM 216, an SRAM 218, a LCD 220, and LED(s) 222. The camera 214 and LCD 220 may support either/both still pictures and moving pictures. Thus, the wireless terminal 200 of
The processing modules are also referred to herein as accelerators, co-processors, processing modules, or otherwise, and include auxiliary functions 316, an equalizer module 318, an enCOder/DECoder (CODEC) processing module 320, and a video process accelerator module 328. The interconnections of
RAM and ROM service both the system processor 302 and the baseband processor 304. Both the system processor 302 and the baseband processor 304 may couple to shared RAM 326 and ROM 324, couple to separate RAM, coupled to separate ROM, couple to multiple RAM blocks, some shared, some not shared, or may be served in a differing manner by the memory. In one particular embodiment, the system processor 302 and the baseband processor 304 coupled to respective separate RAMs and ROMs and also couple to a shared RAM that services control and data transfers between the devices. The processing modules 316, 318, 320, 322, and 328 may coupled as illustrated in
The system processor 302 services at least a portion of a serviced protocol stack, e.g., GSM/GPRS/EDGE protocol stack. The baseband processor 304 in combination with the modulator/demodulator 322, RF transceiver, equalizer module 318, and/or encoder/decoder module 320 service the Physical Layer (PHY) operations performed by the digital processing components 204. The baseband processor 304 may also services a portion of the GSM/GPRS/EDGE protocol stack.
Still referring to
The combination of the RF front end 202, and base band processor 204, which may include an optional CODEC processing module, receive RF communications that may contain both audio and visual information from the servicing base station. In one embodiment the RF front end 202 and base band processor 204 receive and process RF bursts from servicing base stations. The combination of RF front end 202 and base band processor 204 are operable to receive RF bursts transmitted according to a transmission scheme wherein the transmission scheme includes both a modulation format and a coding format. Base band processor 204 to produce a data block decodes sequences of soft decisions, extracted from the RF bursts. The sequence of soft decisions may decode successfully into the data block as indicated by error correction coding results.
The RF bursts of four time slots of the GPRS block carry a segmented RLC block, a complete RLC block, or two RLC blocks, depending upon a supported Modulation and Coding Scheme (MCS) mode. For example, data block A is carried in slot 0 of sub-frame 1, slot 0 of sub-frame 2, slot 0 of sub-frame 3, and slot 0 of sub-frame 3. Data block A may carry a segmented RLC block, an RLC block, or two RLC blocks. Likewise, data block B is carried in slot 1 of sub-frame 1, slot 1 of sub-frame 2, slot 1 of sub-frame 3, and slot 1 of sub-frame 3. The MCS mode of each set of slots, i.e., slot n of each sub-frame, for the GSM frame is consistent for the GSM frame. Further, the MCS mode of differing sets of slots of the GSM frame, e.g., slot 0 of each sub-frame vs. any of slots 1-7 of each sub-frame, may differ. This ability allows LA to be implemented. As will be described further with reference to
Some coded bits generated by the convolutional encoder are punctured prior to transmission. Puncturing increases the rate of the convolutional code and reduces the redundancy per data block transmitted. Puncturing additionally lowers the bandwidth requirements such that the convolutional encoded signal fits into the available channel bit stream. The convolutional encoded punctured bits are passed to an interleaver, which shuffles various bit streams and segments the interleaved bit streams into the 4 bursts shown.
Each RF burst has a left side, a midamble, and a right side. The left side and right side contain data. The midamble consists of predefined, known bit patterns, the training sequences, which are used for channel estimation to optimize reception with an equalizer and for synchronization. With the help of these training sequences, the equalizer eliminates or reduces the intersymbol interferences, which can be caused by propagation time differences of multipath propagation. A number of training sequences are defined for normal RF bursts in the GSM standard. However, the exact configuration of the training sequences may depend on the modulation format used. Each set of four bursts typically utilizes the same modulation format. By analyzing the training sequence one can determine the modulation format.
A single processing device or a plurality of processing devices operably coupled to memory performs the processing duties. Such a processing device may be a microprocessor, micro-controller, digital signal processor, microcomputer, central processing unit, field programmable gate array, programmable logic device, state machine, logic circuitry, analog circuitry, digital circuitry, and/or any device that manipulates signals (analog and/or digital) based on operational instructions. The memory may be a single memory device or a plurality of memory devices. Such a memory device may be a read-only memory, random access memory, volatile memory, non-volatile memory, static memory, dynamic memory, flash memory, cache memory, and/or any device that stores digital information. Note that when the processing duties are implemented via a state machine, analog circuitry, digital circuitry, and/or logic circuitry, the memory storing the corresponding operational instructions may be embedded within, or external to, the circuitry comprising the state machine, analog circuitry, digital circuitry, and/or logic circuitry. The processing duties include the execution of operational instructions corresponding to at least some of the steps and/or functions may be described later.
Referring particularly to
Operation continues with the baseband processor 304 receiving the baseband signal (step 708). In a typical operation, the RF front end 202, the baseband processor 304, or modulator/demodulator 322 samples the analog baseband signal to digitize the baseband signal. After receipt of the baseband signal (in a digitized format), the baseband processor 304 performs detection of a modulation format of the baseband signal (step 710). This detection of the modulation format determines the modulation format of the corresponding baseband signal. Proper determination of the modulation format is necessary in order to properly estimate the channel quality from the SNR of the channel. According to the GSM standard, the modulation format will be either Gaussian Minimum Shift Keying (GMSK) modulation or Eight Phase Shift Keying (8PSK) modulation. The baseband processor 304 makes the determination (step 712) and appropriately processes the RF bursts based upon the detected modulation format.
The baseband processor performs pre-equalization processing of the RF burst in step 712. The pre-equalization processing operations produce a processed baseband signal. Upon completion of these pre-equalization processing operations, the baseband processor 304 issues a command to the equalizer module 318.
The equalizer module 318, upon receiving the command, prepares to equalize the processed baseband signal based upon the modulation format, e.g., GMSK modulation or 8PSK modulation in step 714. The equalizer module 318 receives the processed baseband signal, settings, and/or parameters from the baseband processor 304 and equalizes the processed baseband signal.
After equalization, the equalizer module 318 then issues an interrupt to the baseband processor 304 indicating that the equalizer operations are complete for the RF bursts. The baseband processor 304 then receives the soft decisions from the equalizer module 318. Next, the baseband processor 304 performs “post-equalization processing” as shown in step 716. This may involve determining an average phase of the left and right sides based upon the soft decisions received from the equalizer module 318 and frequency estimation and tracking based upon the soft decisions received from the equalizer module 318.
The sequences of soft decisions are decoded in step 718 to produce the data bits containing the audio, video and data communications. One particular method of decoding the soft decisions is further detailed in
Data recovery begins in step 806 where, if necessary, the data block is decrypted. The data block is then de-interleaved (step 808) according to a particular format of the data block, e.g. MCS-1 through MCS-9. The data block is then de-punctured (step 810). At step 812, the de-interleaved and de-punctured data block is decoded. Decoding operations may include combining previously received copies of the data block with the current copy of the data block. Data bits of the decoded data block are then processed further (step 814). These data bits may take the form of encoded video data to be displayed on the wireless terminal.
Both encoding and decoding may be performed at the macro-block level. In one embodiment, each macro-block contains 4 8×8 Y components, one 8×8 U components and one 8×8 V components. The driver of the video processing module performs reference macro-block generation, motion compensation in case of the inter-macro block encoding. The unit supports imaged-based motion compensation or half-pixel block-based compensation.
For quantization, the H.263 based simple uniform quantization scheme, MPEG4 based matrix quantization scheme, or other known schemes may be supported. The quantization parameter QP adjusts the quantization level. For example, QP may take integer values between 1 to 31. For matrix based quantization, an 8×8 quantization matrix can be either customized or a default matrix. Mis-match control may be performed prior to the de-quantization data being processed by the IDCT function. It may be based on the sum of all 64 de-quantized values and implemented within the IDCT module.
The image format and data structure of a captured QCIF frame may be described with reference to
At a macro-block level, each macro-block contains 4 luminance blocks Y0, Y1, Y2, Y3, two chrominance blocks U and V. Each block contains 8×8 pixel information. The pixels of the captured frame in YUV formats are store in the memory where an example of QCIF frame is used. Each macro-block is uniquely identified by its location (x_pos, y_pos) in the memory. The pixels of the corresponding Y luminance and the two chrominance blocks are identified by their individual starting memory address. For example if the memory addresses of the Y, U & V for the captured frame start at pY, pU and pV, respectively, then the address pointer for Y1-Y4, U, V blocks of the macro-block (x_pos, y_pos) are as follows:
If motion estimation is performed on ±m pixels, then frame_width=actual_captured_frame_width+2*m.
Interface control registers for the ARM are used to determine the mode of operation (FDCT/IDCT/QUAN/IQUAN) of the video accelerator. A configuration register may be used by the ARM to command the video accelerator to conduct a given mode of operation. While the accelerator is performing a given operation on a current Macro-block, ARM can simultaneously perform other operations on a previous Macro-block. Therefore, save overall encoding time for a given video frame compared to the encoding algorithm using complete software based solution.
Writing to the configuration register triggers the DCT/IDCT/QUAN module of the video accelerator to process the data. The module performs the process as indicated by the contents of the configuration register. An interrupt may be issued when the video accelerator module completes this process. For example, in one embodiment one process averages approximately 3200 cycles at 78 MHz clock rate. If the high frequency of the interrupt (every 3200 cycles) causes problems, the ARM can ignore the interrupt and wait an arbitrary number of cycles while processing other tasks before retrieving the data.
The driver code is transparent to the user of the hardware accelerator. For example, in one embodiment an interface function that sets the values of the quantization matrix in the accelerator when MPEG4 quantization is used. If default quantization is employed, this function only needs to be called once within the encoder setup or decoder setup software. However, when a customized quantization matrix is used, then this function may need to be called more than once. When functioning as an MPEG4 encoder various parameters may be declared to pass/obtain relevant information to/from the accelerator. Prior to calling the interface function, the video processing module may allocate memory to the captured frame, and the output buffers that hold the quantization results.
As previously discussed, the accelerator module contains optimized hardware blocks for the acceleration of key compute intensive compression algorithms. These may be applied to both MPEG as well as JPEG standards. The only encoding/decoding difference between MPEG4 and H.263 quantization is in the quantization matrix loading and ¾ QP value in the configuration register. For MPEG4, input to the DCT is 9-bit signed for inter macro-block whereas for JPEG and MPEG4 intra macro-block, the input to the DCT is 8-bit unsigned integer. Both encoding and decoding are done at the macro-block level.
Since DCT/IDCT/QUAN module operates at macro-block level, each operation contains 4 luminance blocks Y0, Y1, Y2, Y3, one U and one V blocks. Each block contains 8×8 pixel information. For JPEG and MPEG4 intra macro-block forward DCT/QUAN and backward DEQUAN/IDCT operations, input of the forward and output of the backward are 8-bit unsigned integers. 4 words are packed into 32-bit words. The rest of the data formats are 9-bit signed integer where two words are put together into 32-bit word. Each 8×8 block is loaded to the specific memory address of the hardware accelerators that corresponds to the block. For example, memory address for Y0 is 0x00, Y1:0x20, Y2:0x40, Y3:0x60, U:0x80 and V: 0xa0
In summary, the present invention provides a video processor within a wireless terminal to process video information. This video processor may include the operable coupled combination of a processing module, video accelerator module and motion co-processor. This combination allows the compute intensive operations to be offloaded from the processing module onto the video accelerator and/or motion co-processor in order to improve the overall system efficiency. Such a combination may overcome the shortcomings of prior devices by utilizing a distinct and dedicated hardware video accelerator to support video compression and decompression within a wireless device.
As one of average skill in the art will appreciate, the term “substantially” or “approximately”, as may be used herein, provides an industry-accepted tolerance to its corresponding term. Such an industry-accepted tolerance ranges from less than one percent to twenty percent and corresponds to, but is not limited to, component values, integrated circuit process variations, temperature variations, rise and fall times, and/or thermal noise. As one of average skill in the art will further appreciate, the term “operably coupled”, as may be used herein, includes direct coupling and indirect coupling via another component, element, circuit, or module where, for indirect coupling, the intervening component, element, circuit, or module does not modify the information of a signal but may adjust its current level, voltage level, and/or power level. As one of average skill in the art will also appreciate, inferred coupling (i.e., where one element is coupled to another element by inference) includes direct and indirect coupling between two elements in the same manner as “operably coupled”. As one of average skill in the art will further appreciate, the term “compares favorably”, as may be used herein, indicates that a comparison between two or more elements, items, signals, etc., provides a desired relationship. For example, when the desired relationship is that signal 1 has a greater magnitude than signal 2, a favorable comparison may be achieved when the magnitude of signal 1 is greater than that of signal 2 or when the magnitude of signal 2 is less than that of signal 1.
The foregoing description of a preferred embodiment of the invention has been presented for purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise form disclosed, and modifications and variations are possible in light of the above teachings or may be acquired from practice of the invention. The embodiment was chosen and described in order to explain the principles of the invention and its practical application to enable one skilled in the art to utilize the invention in various embodiments and with various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the claims appended hereto, and their equivalents.
This application claims priority to U.S. Provisional Patent Application Ser. No. 60/512,708, filed Oct. 20, 2003, which is incorporated herein by reference for all purposes.
Number | Date | Country | |
---|---|---|---|
60512708 | Oct 2003 | US |