JP2011097370A - Image processing apparatus - Google Patents

Image processing apparatus Download PDF

Info

Publication number
JP2011097370A
JP2011097370A JP2009249461A JP2009249461A JP2011097370A JP 2011097370 A JP2011097370 A JP 2011097370A JP 2009249461 A JP2009249461 A JP 2009249461A JP 2009249461 A JP2009249461 A JP 2009249461A JP 2011097370 A JP2011097370 A JP 2011097370A
Authority
JP
Japan
Prior art keywords
data
alpha
image
compression
image data
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
JP2009249461A
Other languages
Japanese (ja)
Other versions
JP5359785B2 (en
Inventor
Noriyuki Funakubo
則之 船窪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yamaha Corp
Original Assignee
Yamaha Corp
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 Yamaha Corp filed Critical Yamaha Corp
Priority to JP2009249461A priority Critical patent/JP5359785B2/en
Publication of JP2011097370A publication Critical patent/JP2011097370A/en
Application granted granted Critical
Publication of JP5359785B2 publication Critical patent/JP5359785B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To increase speed of processing from the decoding of compressed encoded image data and compressed encoded alpha data to alpha blending using the decoded results. <P>SOLUTION: A moving image decoder 25 and an alpha data decoder 26 supply decoded results of the compressed encoded image data and the compressed encoded alpha data to an external memory I/F 27 by one macroblock at a time, and writes the decoded results in a buffer 27A<SB>1</SB>(or 27A<SB>2</SB>) and a buffer 27B<SB>1</SB>(or 27B<SB>2</SB>) of the external memory. A bus I/F 21C merges the decoded results written in the buffer 27A<SB>1</SB>(or 27A<SB>2</SB>) and a buffer 27B<SB>1</SB>(or 27B<SB>2</SB>) into 64-bit data and transfers the data to an external memory module 102. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

この発明は、動画の圧縮符号化画像データおよび圧縮符号化アルファデータを復号化する技術に関する。   The present invention relates to a technology for decoding moving image compression-encoded image data and compression-encoded alpha data.

動画再生装置のなかには、MPEG(Moving
Picture Expert Group)などの圧縮アルゴリズムにより圧縮符号化された圧縮符号化画像データを復号化する画像処理装置や、画像処理装置による復号結果を用いて画像を描画する描画装置などの複数種類の回路から構成されているものがある。この動画再生装置内の描画装置による画像の描画に関連した技術として、アルファブレンディングがある。このアルファブレンディングは、描画対象である画像(以下、ソース画像という。)の各画素のカラー値(例えば、R、G、Bの各成分の輝度)と各画素の透明度を示すアルファデータと、ソース画像の背景となる画像(以下、ディスティネーション画像という。)の各画素のカラー値とに基づき、ソース画像を重ねた後のディスティネーション画像の各画素のカラー値を演算する技術である。さらに詳述すると、このアルファブレンディングでは、図7に示すように、ソース画像を構成する1つの画素(以下、ソース画素という。)のカラー値がSC、ソース画素のアルファデータがα、ディスティネーション画像におけるソース画素と同じ位置の画素(以下、ディスティネーション画素という。)のカラー値がD、である場合、次式に示すカラー値D’を算出し、ソース画素をディスティネーション画素に重ねた後のカラー値とする。
D’=α・SC+(1−α)・D ……(1)
これにより、ソース画像を重ねたディスティネーション画像がそのソース画像越しに透けて見える状態を演出することができる。このアルファブレンディングに関する技術を開示した文献として、例えば、特許文献1がある。
Some video playback devices include MPEG (Moving
From multiple types of circuits such as an image processing device that decodes compression-encoded image data that has been compression-encoded by a compression algorithm such as Picture Expert Group, and a drawing device that draws an image using the decoding result of the image processing device Some are configured. Alpha blending is a technique related to drawing of an image by a drawing device in the moving image reproducing device. In this alpha blending, color data (for example, luminance of each component of R, G, B) of each pixel of an image to be rendered (hereinafter referred to as a source image), alpha data indicating the transparency of each pixel, and a source This is a technique for calculating the color value of each pixel of the destination image after overlapping the source image based on the color value of each pixel of the image serving as the background of the image (hereinafter referred to as the destination image). More specifically, in this alpha blending, as shown in FIG. 7, the color value of one pixel constituting the source image (hereinafter referred to as source pixel) is SC, the alpha data of the source pixel is α, and the destination image When the color value of the pixel at the same position as the source pixel (hereinafter referred to as the destination pixel) is D, the color value D ′ shown in the following equation is calculated, and the source pixel is overlaid on the destination pixel Color value.
D ′ = α · SC + (1−α) · D (1)
Thereby, it is possible to produce a state in which the destination image on which the source images are superimposed can be seen through the source image. For example, Patent Document 1 discloses a document that discloses a technique related to this alpha blending.

特開2006−191240号公報JP 2006-191240 A

従来のこの種の動画再生装置では、フレームの一枚一枚をなす画像データを圧縮符号化した圧縮符号化画像データとそれらの画像データと対をなすアルファデータを圧縮符号化した圧縮符号化アルファデータとをパターンROM内に準備し、パターンROM内の圧縮符号化画像データおよび圧縮符号化アルファデータを一対ずつ順に復号化し、この2種類の復号結果を用いてフレーム1枚分のアルファブレンディングを行っていた。しかしながら、この場合、1フレームの画像の描画に必要な圧縮符号化画像データの復号結果と圧縮符号化アルファデータの復号結果がメモリの別領域に書き込まれるため、それらの2種類の復号結果の両方を読み出すのに時間がかかってしまい、このことが処理の高速化の障害の一つになっていた。   In this type of conventional moving image reproducing apparatus, compression-encoded alpha data obtained by compression-encoding compression-encoded image data obtained by compression-encoding image data constituting each frame and alpha data forming a pair with these image data is provided. Data is prepared in the pattern ROM, and the compression-encoded image data and compression-encoded alpha data in the pattern ROM are sequentially decoded one by one, and alpha blending for one frame is performed using these two types of decoding results. It was. However, in this case, since the decoding result of the compression-encoded image data and the decoding result of the compression-encoded alpha data necessary for drawing one frame image are written in different areas of the memory, both of these two types of decoding results It took a long time to read the data, and this was one of the obstacles to speeding up the processing.

本発明は、このような背景の下に案出されたものであり、圧縮符号化画像データおよび圧縮符号化アルファデータの復号化からその復号結果を用いたアルファブレンディングまでの処理を高速化することを目的とする。   The present invention has been devised under such a background, and speeds up processing from decoding of compression-encoded image data and compression-encoded alpha data to alpha blending using the decoding result. With the goal.

本発明は、画像を圧縮符号化した圧縮符号化画像データを復号化する動画デコーダと、画像のアルファブレンディングに用いるアルファデータを圧縮符号化した圧縮符号化アルファデータを復号化するアルファデータデコーダと、前記動画デコーダから復号結果として出力される画像データおよび当該画像データに使用される復号結果として前記アルファデータデコーダから出力されるアルファデータを1フレームの画像を分割した所定画素数分の画像データおよびアルファデータ毎にマージして外部メモリモジュールに転送するマージ手段とを具備することを特徴とする画像処理装置を提供する。   The present invention includes a moving image decoder that decodes compression-encoded image data obtained by compression-encoding an image, an alpha data decoder that decodes compression-encoded alpha data obtained by compression-encoding alpha data used for image alpha blending, Image data and alpha corresponding to a predetermined number of pixels obtained by dividing an image data output as a decoding result from the moving picture decoder and alpha data output from the alpha data decoder as a decoding result used for the image data into one frame image There is provided an image processing apparatus comprising merging means for merging data and transferring them to an external memory module.

この画像処理装置は、圧縮符号化画像データおよび圧縮符号化アルファデータを記憶しているパターンROMやそれらの復号結果を用いたアルファブレンディングを行う描画装置とともに動画再生装置を構成する。この画像処理装置では、圧縮符号化画像データの復号結果である画像データおよび圧縮符号化アルファデータの復号結果であるアルファデータを所定画素数分の画像データおよびアルファデータ毎にマージして外部メモリモジュールに転送する。これにより、外部メモリモジュールでは、所定画素数分の画像のアルファブレンディングに必要な2種類の復号結果が連続したアドレス領域に格納される。よって、圧縮符号化画像データの復号結果である所定画素数分の画像データと圧縮符号化アルファデータの復号結果である所定画素数分のアルファデータとを別領域に分けて格納させる場合に比べて、描画装置による復号結果の読み出しの所要時間が短くなり、処理を高速化できる。   This image processing apparatus constitutes a moving image reproducing apparatus together with a pattern ROM that stores compression-encoded image data and compression-encoded alpha data and a drawing apparatus that performs alpha blending using the decoding results thereof. In this image processing apparatus, image data that is a decoding result of compression-encoded image data and alpha data that is a decoding result of compression-encoded alpha data are merged into image data and alpha data for a predetermined number of pixels, and the external memory module Forward to. Thus, in the external memory module, two types of decoding results necessary for alpha blending of an image for a predetermined number of pixels are stored in a continuous address area. Therefore, compared to a case where image data for a predetermined number of pixels, which is a decoding result of compression-encoded image data, and alpha data for a predetermined number of pixels, which is a decoding result of compression-encoded alpha data, are stored separately in separate areas. The time required for reading the decoding result by the drawing apparatus is shortened, and the processing can be speeded up.

この発明の一実施形態である画像処理装置を含む動画再生装置の構成を示すブロック図である。It is a block diagram which shows the structure of the moving image reproduction apparatus containing the image processing apparatus which is one Embodiment of this invention. 同画像処理装置に与えられる復号実行コマンドのデータ構造を示す図である。It is a figure which shows the data structure of the decoding execution command given to the image processing apparatus. 同画像処理装置による圧縮符号化画像データおよび圧縮符号化アルファデータの復号結果を示す図である。It is a figure which shows the decoding result of the compression encoding image data and compression encoding alpha data by the image processing apparatus. 同画像処理装置の動画デコーダ、アルファデータデコーダ、外部メモリインターフェース、およびバスI/Fの動作を示す図である。It is a figure which shows the operation | movement of the moving image decoder of the same image processing apparatus, an alpha data decoder, an external memory interface, and bus | bath I / F. 同画像処理装置におけるアルファデータの分解能の変換に用いられる変換テーブルを示す図である。It is a figure which shows the conversion table used for conversion of the resolution of the alpha data in the image processing apparatus. 同画像処理装置から外部メモリモジュールへの復号結果の転送の手順を示す図である。It is a figure which shows the procedure of the transfer of the decoding result from the image processing apparatus to an external memory module. アルファブレンディングの処理内容を示す図である。It is a figure which shows the processing content of alpha blending.

以下、図面を参照し、この発明の実施の形態を説明する。
図1は、この発明の一実施形態である画像処理装置100を含む動画再生装置1の構成を示すブロック図である。画像処理装置100は、ホストCPU103からのコマンドをバス101Aを介して受け取り、このコマンドに従って、バス101Bに接続されたパターンROM104から動画の圧縮符号化画像データおよび圧縮符号化アルファデータを受け取って復号化を行い、復号結果である動画の画像データおよびアルファデータをバス101Cに接続された外部メモリモジュール102を介して描画装置105に引き渡す。
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 is a block diagram showing a configuration of a moving image playback apparatus 1 including an image processing apparatus 100 according to an embodiment of the present invention. The image processing apparatus 100 receives a command from the host CPU 103 via the bus 101A, and receives and decodes the compressed encoded image data and the compressed encoded alpha data of the moving image from the pattern ROM 104 connected to the bus 101B according to the command. The image data and alpha data of the moving image as the decoding result are delivered to the drawing device 105 via the external memory module 102 connected to the bus 101C.

ここで、バス101Bに接続されたパターンROM104には、複数種類の動画の圧縮符号化画像データ、およびそれらの圧縮符号化画像データと組み合わせて利用される複数種類の圧縮符号化アルファデータが各々の属性情報とともに記憶されている。パターンROM104内における各種圧縮符号化画像データは、動画の各フレームの画像を16×16画素のマクロブロックに分割し、分割したマクロブロックの各々に非可逆圧縮符号化処理(より具体的には、DCT(Discrete Cosine Transform)、フレーム間予測符号化処理、ハフマン符号化などの処理)を施して得られたデータである。   Here, in the pattern ROM 104 connected to the bus 101B, a plurality of types of compression-encoded image data of a plurality of types of moving images and a plurality of types of compression-encoded alpha data used in combination with those compression-encoded image data are stored. Stored with attribute information. Various compression-coded image data in the pattern ROM 104 is obtained by dividing each frame image of a moving image into 16 × 16 pixel macroblocks, and irreversible compression coding processing (more specifically, Data obtained by performing DCT (Discrete Cosine Transform), inter-frame predictive coding processing, Huffman coding, and the like.

また、パターンROM104内における各種圧縮符号化アルファデータは、各フレームの画像における各画素の透明度を表したアルファデータのマトリックスをマクロブロック(16×16)に分割し、分割したマクロブロックの各々に可逆圧縮符号化処理(より具体的には、DPCM(Differential Pulse Code Modulation)やハフマン符号化などの処理)を施して得られたデータである。パターンROM104内における圧縮符号化アルファデータには、各画素の透明度を1ビットの分解能(2階調)で表したアルファデータを圧縮符号化したものと、各画素の透明度を2ビットの分解能(4階調)で表したアルファデータを圧縮符号化したものと、各画素の透明度を3ビットの分解能(8階調)で表したアルファデータを圧縮符号化したものと、各画素の透明度を4ビットの分解能(16階調)で表したアルファデータを圧縮符号化したものの4種類がある。パターンROM104内におけるこれら4種類の圧縮符号化アルファデータの各々の属性情報には、圧縮符号化対象であった元のアルファデータの分解能が、1ビット、2ビット、3ビット、4ビットのいずれであるかが記述されている。   In addition, various compression-coded alpha data in the pattern ROM 104 is obtained by dividing a matrix of alpha data representing the transparency of each pixel in an image of each frame into macroblocks (16 × 16), and reversibly for each of the divided macroblocks. Data obtained by performing compression encoding processing (more specifically, processing such as DPCM (Differential Pulse Code Modulation) and Huffman encoding). The compression-encoded alpha data in the pattern ROM 104 includes compression-encoded alpha data representing the transparency of each pixel with 1-bit resolution (2 gradations) and transparency of each pixel with a 2-bit resolution (4 (Gradation) alpha data expressed by compression encoding, transparency data of each pixel expressed by 3-bit resolution (8 gradations) compression data encoding, and transparency of each pixel by 4 bits There are four types, which are compression-encoded alpha data expressed in 16 resolutions. In the attribute information of each of these four types of compression-encoded alpha data in the pattern ROM 104, the resolution of the original alpha data that was the object of compression encoding is either 1 bit, 2 bits, 3 bits, or 4 bits. It is described whether there is.

図1において、バスI/F(インターフェース)21A、21Bおよび21Cは、各々バス101A、101Bおよび101Cを介したデータの授受の仲介をするインターフェースである。ホストI/F22は、バス101Aに接続されたホストCPU103が出力する各種コマンドをバスI/F21Aを介して受信して内蔵のコマンドバッファ22Aに格納し、格納したコマンドを画像処理装置100内の関係する各部に供給するインターフェースである。レジスタ群23は、画像処理装置100内の各部の制御のための制御情報あるいは各部間で授受されるデータを記憶するためのレジスタの集合体である。パターンROM I/F24は、各々FIFO(First-In First-Out;先入れ先出し)バッファであるバッファ24Aおよび24Bを内蔵している。このパターンROM I/F24は、バス101Bに接続されたパターンROM104内の圧縮符号化画像データをバスI/F21Bを介して受け取ってバッファ24Aに蓄積し、蓄積した圧縮符号化画像データを古いものから順に動画デコーダ25に供給する。また、パターンROM I/F24は、バス101Bに接続されたパターンROM104内の圧縮符号化アルファデータをバスI/F21Bを介して受け取ってバッファ24Bに蓄積し、蓄積した圧縮符号化アルファデータを古いものから順にアルファデータデコーダ26に供給する。   In FIG. 1, bus I / Fs (interfaces) 21A, 21B, and 21C are interfaces that mediate transmission / reception of data via buses 101A, 101B, and 101C, respectively. The host I / F 22 receives various commands output from the host CPU 103 connected to the bus 101A via the bus I / F 21A, stores them in the built-in command buffer 22A, and stores the stored commands in the image processing apparatus 100. It is an interface supplied to each part. The register group 23 is a collection of registers for storing control information for controlling each unit in the image processing apparatus 100 or data exchanged between the units. The pattern ROM I / F 24 includes buffers 24A and 24B, each of which is a FIFO (First-In First-Out) buffer. The pattern ROM I / F 24 receives the compressed encoded image data in the pattern ROM 104 connected to the bus 101B via the bus I / F 21B, stores it in the buffer 24A, and stores the stored compressed encoded image data from the oldest one. It supplies to the moving image decoder 25 in order. The pattern ROM I / F 24 receives the compression encoded alpha data in the pattern ROM 104 connected to the bus 101B via the bus I / F 21B and stores it in the buffer 24B. The stored compression encoded alpha data is old. Are supplied to the alpha data decoder 26 in order.

動画デコーダ25は、パターンROM I/F24から供給される圧縮符号化画像データを1マクロブロック分ずつ復号化する装置である。アルファデータデコーダ26は、パターンROM I/F24から供給される圧縮符号化アルファデータを1マクロブロック分ずつ復号化する装置である。   The moving picture decoder 25 is a device that decodes compression-encoded image data supplied from the pattern ROM I / F 24 by one macro block. The alpha data decoder 26 is a device that decodes the compression encoded alpha data supplied from the pattern ROM I / F 24 by one macro block.

キャッシュ制御部12は、動画デコーダ25による復号化において再利用される復号化済みの画像データを外部メモリモジュール102から取得してキャッシュメモリ11に記憶し、動画デコーダ25の要求に応じてその復号化済みの画像データをキャッシュメモリ11から取り出して動画デコーダ25に供給する。   The cache control unit 12 acquires the decoded image data to be reused in the decoding by the moving picture decoder 25 from the external memory module 102 and stores it in the cache memory 11, and the decoding is performed in response to a request from the moving picture decoder 25. The completed image data is extracted from the cache memory 11 and supplied to the moving picture decoder 25.

外部メモリI/F27は、動画デコーダ25から復号結果として出力される画像データを格納する画像データバッファである2つのバッファ27Aおよび27Aと、アルファデータデコーダ26から復号結果として出力されるアルファデータを格納するアルファデータバッファである2つのバッファ27Bおよび27Bとを内蔵している。外部メモリI/F27は、バッファ27Aおよび27Aを交互に利用しつつ、動画デコーダ25から出力される画像データをバッファ27Aおよび27Aに蓄積し、蓄積した画像データをバスI/F21Cを介して外部メモリモジュール102に転送する。また、外部メモリI/F27は、バッファ27Bおよび27Bを交互に利用しつつ、アルファデータデコーダ26から出力されるアルファデータをバッファ27Bおよび27Bに蓄積し、蓄積したアルファデータをバスI/F21Cを介して外部メモリモジュール102に転送する。 The external memory I / F 27 includes two buffers 27A 1 and 27A 2 that are image data buffers for storing image data output as a decoding result from the moving picture decoder 25, and alpha data output as a decoding result from the alpha data decoder 26. It has a built-in two and buffers 27B 1 and 27B 2 are alpha data buffer for storing. The external memory I / F 27, while utilizing a buffer 27A 1 and 27A 2 alternately, and storing image data outputted from the video decoder 25 to the buffer 27A 1 and 27A 2, the stored image data bus I / F21c To the external memory module 102. The external memory I / F 27 accumulates the alpha data output from the alpha data decoder 26 in the buffers 27B 1 and 27B 2 while alternately using the buffers 27B 1 and 27B 2, and stores the accumulated alpha data in the bus I The data is transferred to the external memory module 102 via / F21C.

当該画像処理装置100および外部メモリモジュール102とともにバス101Cに接続されている描画装置105は、外部メモリモジュール102に記憶された動画の画像データおよびアルファデータを読み出し、図示しない表示装置の表示内容に反映させる描画処理を実行する。その際、描画装置105は、外部メモリモジュール102から読み出したアルファデータを用いて、表示内容において動画の背景画像となる画像と、動画を構成する1フレーム分の画像(外部メモリモジュール102から読み出した画像データ)とのアルファブレンディングを行う。   The drawing device 105 connected to the bus 101C together with the image processing device 100 and the external memory module 102 reads the moving image data and alpha data stored in the external memory module 102 and reflects them on the display content of a display device (not shown). The drawing process to be executed is executed. At that time, the drawing apparatus 105 uses the alpha data read from the external memory module 102 to display an image that is a background image of the moving image in the display content and an image for one frame constituting the moving image (read from the external memory module 102). Alpha blending with image data.

以上が本実施形態による画像処理装置100の構成の概略であるが、この画像処理装置100の特徴は、次の点にある。
<特徴1>復号対象の圧縮符号化アルファデータが予め設定された分解能である4ビットと異なる分解能のアルファデータを圧縮符号化したものである場合、圧縮符号化アルファデータを復号化して得られたアルファデータに代えてそのアルファデータを4ビットの分解能のアルファデータに変換したものを復号結果とする点。
<特徴2>圧縮符号化画像データの復号結果である画像データおよび圧縮符号化アルファデータの復号結果であるアルファデータを所定画素数分の画像データおよびアルファデータ毎にマージして外部メモリモジュール102に転送する点。
The above is the outline of the configuration of the image processing apparatus 100 according to the present embodiment. The features of the image processing apparatus 100 are as follows.
<Characteristic 1> When compression-encoded alpha data to be decoded is compression-encoded alpha data having a resolution different from 4 bits, which is a preset resolution, obtained by decoding compression-encoded alpha data The decoding result is obtained by converting the alpha data into alpha data having a 4-bit resolution instead of the alpha data.
<Characteristic 2> Image data that is a decoding result of compression-encoded image data and alpha data that is a decoding result of compression-encoded alpha data are merged into image data and alpha data for a predetermined number of pixels and stored in the external memory module 102. The point to transfer.

以下、このような特徴を可能にするための仕組みについて説明する。本実施形態において、ホストCPU103は、復号対象とされた圧縮符号化画像データおよび圧縮符号化アルファデータや各々の属性情報の格納開始アドレス等をレジスタ群23の中の所定のレジスタに制御情報として書き込んだ後、圧縮符号化画像データおよび圧縮符号化アルファデータの両方の復号化の実行を指示する復号実行コマンド、圧縮符号化画像データの復号化の実行のみを指示する復号実行コマンド、および圧縮符号化アルファデータの復号化の実行のみを指示する復号実行コマンドの3種類のコマンドのうちいずれかをホストI/F22内のコマンドバッファ22Aに書き込む。   Hereinafter, a mechanism for enabling such a feature will be described. In the present embodiment, the host CPU 103 writes the compression encoded image data and compression encoded alpha data to be decoded, the storage start address of each attribute information, and the like as control information in a predetermined register in the register group 23. After that, a decoding execution command for instructing execution of decoding of both compression encoded image data and compression encoded alpha data, a decoding execution command for instructing only execution of decoding of the compression encoded image data, and compression encoding One of the three types of decoding execution commands for instructing only execution of decoding of alpha data is written to the command buffer 22A in the host I / F 22.

より具体的には、ホストCPU103は、図2に示すように、復号実行コマンドをなす全ビットのうちの2ビットを復号対象制御ビットとし、圧縮符号化画像データおよび圧縮符号化アルファデータの両方の復号化の実行を指示する場合は、復号対象制御ビットを「00」または「01」とした復号実行コマンドをコマンドバッファ22Aに書き込む。また、圧縮符号化画像データの復号化の実行のみを指示する場合は、復号対象制御ビットを「10」とした復号実行コマンドをコマンドバッファ22Aに書き込み、圧縮符号化アルファデータの復号化の実行のみを指示する場合は、復号対象制御ビットを「11」とした復号実行コマンドをコマンドバッファ22Aに書き込む。復号実行コマンドがコマンドバッファ22Aに書き込まれると、動画デコーダ25、アルファデータデコーダ26、外部メモリI/F27、およびバスI/F21Cが次のように連携をとりながら動作する。   More specifically, as shown in FIG. 2, the host CPU 103 sets 2 bits out of all the bits constituting the decoding execution command as decoding target control bits, and both of the compression encoded image data and the compression encoded alpha data. When instructing execution of decoding, a decoding execution command with the decoding target control bit set to “00” or “01” is written to the command buffer 22A. When instructing only execution of decoding of compression-encoded image data, a decoding execution command with the decoding target control bit set to “10” is written in the command buffer 22A, and only execution of decoding of compression-encoded alpha data is performed. Is written, the decoding execution command with the decoding target control bit set to “11” is written to the command buffer 22A. When the decoding execution command is written in the command buffer 22A, the moving picture decoder 25, the alpha data decoder 26, the external memory I / F 27, and the bus I / F 21C operate in cooperation as follows.

a1.圧縮符号化画像データおよび圧縮符号化アルファデータの両方の復号化の実行を指示する復号実行コマンドがコマンドバッファ22Aに書き込まれた場合
この場合、図3(A)に示すように、圧縮符号化画像データおよび圧縮符号化アルファデータを復号化して1マクロブロック(16×16画素)分のYUV色空間の画像データおよびアルファデータのマトリクスを生成し、その画像データおよびアルファデータのマトリクスの各々を水平方向と垂直方向に8等分して2×2画素分ずつの8×8個のブロックに分割する。そして、図3(B)に示すように、8×8個のブロックの各々について、各画素のカラー値(より具体的には、Y値(輝度)、U値(色差)、およびV値(色差)の3種類のカラー値)とアルファデータとをマージした64ビットのデータを復号結果として外部メモリモジュール102へ転送する。64ビットのデータは次のデータから構成される。
a1. When a decoding execution command instructing execution of decoding of both compressed encoded image data and compressed encoded alpha data is written in the command buffer 22A. In this case, as shown in FIG. Data and compression-encoded alpha data are decoded to generate one macroblock (16 × 16 pixels) YUV color space image data and alpha data matrix, and each of the image data and alpha data matrix is horizontally And divided into 8 × 8 blocks of 2 × 2 pixels. Then, as shown in FIG. 3B, for each of 8 × 8 blocks, the color value (more specifically, the Y value (luminance), U value (color difference), and V value ( 64-bit data obtained by merging the three color values (color difference) and alpha data is transferred to the external memory module 102 as a decoding result. The 64-bit data is composed of the following data.

データV3210
これは、ブロックにおける4つの画素の各々のV値の代表値(例えば、4つの画素の各々のV値の平均値)を8ビットのビット列として示したデータである。
データY
これは、ブロックにおける右下の画素のY値を8ビットのビット列として示したデータである。
データY
これは、ブロックにおける右上の画素のY値を8ビットのビット列として示したデータである。
データα
これは、ブロックにおける右下の画素の透明度を4ビットのビット列として示したデータである。
データα
これは、ブロックにおける右上の画素の透明度を4ビットのビット列として示したデータである。
データU3210
これは、ブロックにおける4つの画素の各々のU値の代表値(例えば、4つの画素の各々のU値の平均値)を8ビットのビット列として示したデータである。
データY
これは、ブロックにおける左下の画素のY値を8ビットのビット列として示したデータである。
データY
これは、ブロックにおける左上の画素のY値を8ビットのビット列として示したデータである。
データα
これは、ブロックにおける左下の画素の透明度を4ビットのビット列として示したデータである。
データα
これは、ブロックにおける左上の画素の透明度を4ビットのビット列として示したデータである。
Data V 3210
This is data indicating a representative value of V values of each of the four pixels in the block (for example, an average value of V values of each of the four pixels) as an 8-bit bit string.
Data Y 3
This is data indicating the Y value of the lower right pixel in the block as an 8-bit bit string.
Data Y 2
This is data indicating the Y value of the upper right pixel in the block as an 8-bit bit string.
Data α 3
This is data indicating the transparency of the lower right pixel in the block as a 4-bit bit string.
Data α 2
This is data indicating the transparency of the upper right pixel in the block as a 4-bit bit string.
Data U 3210
This is data representing a representative value of U values of each of four pixels in the block (for example, an average value of U values of each of four pixels) as an 8-bit bit string.
Data Y 1
This is data indicating the Y value of the lower left pixel in the block as an 8-bit bit string.
Data Y 0
This is data indicating the Y value of the upper left pixel in the block as an 8-bit bit string.
Data α 1
This is data indicating the transparency of the lower left pixel in the block as a 4-bit bit string.
Data α 0
This is data indicating the transparency of the upper left pixel in the block as a 4-bit bit string.

図4は、この場合における、動画デコーダ25、アルファデータデコーダ26、外部メモリI/F27、およびバスI/F21Cの動作を示す図である。
動画デコーダ25は、復号実行コマンドがコマンドバッファ22Aに書き込まれると、レジスタ群23の中のレジスタに制御情報として書き込まれている格納開始アドレスを参照し、この格納開始アドレスを含むデータ要求をパターンROM I/F24を介してパターンROM104に送る。データ要求を受け取ったパターンROM104は、そのデータ要求に従い、属性情報を同ROM104から読み出して出力した後、フレーム1,フレーム2…の圧縮符号化画像データおよび圧縮符号化アルファデータを順に読み出して出力する。パターンROM104から出力された圧縮符号化画像データおよび圧縮符号化アルファデータは、パターンROM I/F24のバッファ24Aおよび24Bを介して動画デコーダ25およびアルファデータデコーダ26に供給される。
FIG. 4 is a diagram showing operations of the moving picture decoder 25, the alpha data decoder 26, the external memory I / F 27, and the bus I / F 21C in this case.
When the decoding execution command is written in the command buffer 22A, the moving picture decoder 25 refers to the storage start address written as control information in the register in the register group 23, and sends a data request including this storage start address to the pattern ROM. The data is sent to the pattern ROM 104 via the I / F 24. In response to the data request, the pattern ROM 104 reads the attribute information from the ROM 104 and outputs it, and then sequentially reads out and outputs the compressed encoded image data and the compressed encoded alpha data of the frames 1, 2 and so on. . The compression-encoded image data and compression-encoded alpha data output from the pattern ROM 104 are supplied to the moving picture decoder 25 and the alpha data decoder 26 via the buffers 24A and 24B of the pattern ROM I / F 24.

動画デコーダ25は、圧縮符号化画像データに所定の復号化処理を施して1マクロブロック分の画像データを生成し、その1マクロブロック分の画像データを8×8ブロックに分割する。そして、動画デコーダ25は、この8×8ブロックを1ブロックずつ走査し、各ブロックからデータV3210,Y,Y,U3210,Y,およびYを順に取り出して外部メモリI/F27へ供給する。 The moving picture decoder 25 performs a predetermined decoding process on the compression-encoded image data to generate image data for one macroblock, and divides the image data for one macroblock into 8 × 8 blocks. Then, the moving picture decoder 25 scans the 8 × 8 blocks one block at a time, sequentially extracts data V 3210 , Y 3 , Y 2 , U 3210 , Y 1 , and Y 0 from each block, and external memory I / F 27. To supply.

また、アルファデータデコーダ26は、パターンROM104による圧縮符号化アルファデータの出力の開始に先立って同ROM104から出力された属性情報を取得し、同ROM104から以降に供給される圧縮符号化アルファデータの圧縮符号化対象であった元のアルファデータの分解能を求める。そして、パターンROM104からパターンROM I/F24を介して圧縮符号化アルファデータが供給され始めると、次のような処理を行う。   Further, the alpha data decoder 26 acquires the attribute information output from the ROM 104 prior to the start of the output of the compression encoded alpha data by the pattern ROM 104, and compresses the compression encoded alpha data supplied thereafter from the ROM 104. Find the resolution of the original alpha data that was to be encoded. When compression-encoded alpha data starts to be supplied from the pattern ROM 104 via the pattern ROM I / F 24, the following processing is performed.

アルファデータデコーダ26は、圧縮符号化アルファデータに所定の復号化処理を施して1マクロブロック分のアルファデータのマトリクス(16×16個のアルファデータのマトリクス)を生成する。そして、アルファデータデコーダ26は、属性情報により求めておいた分解能が4ビットであった場合には、復号化処理によって得た1マクロブロック分の各アルファデータをそのまま8×8ブロックに分割し、属性情報により求めておいた分解能が4ビットと異なるものであった場合には、復号化処理によって得た1マクロブロック分の各アルファデータ(1ビット、2ビット、または3ビットの分解能のアルファデータ)を4ビットの分解能のアルファデータに変換してから8×8ブロックに分割する。   The alpha data decoder 26 performs a predetermined decoding process on the compression-encoded alpha data to generate an alpha data matrix (16 × 16 alpha data matrix) for one macroblock. Then, when the resolution obtained from the attribute information is 4 bits, the alpha data decoder 26 divides each alpha data for one macro block obtained by the decoding process into 8 × 8 blocks as it is, If the resolution determined by the attribute information is different from 4 bits, each piece of alpha data (1 bit, 2 bits, or 3 bits of alpha data) obtained by decoding processing is obtained. ) Is converted into alpha data having a resolution of 4 bits and then divided into 8 × 8 blocks.

1ビット、2ビット、および3ビットの分解能のアルファデータから4ビットの分解能のアルファデータへの変換は、1ビットの分解能における最小値(0)と最大値(1)の2階調分のビット列と、2ビットの分解能における最小値(00)から最大値(11)までの間の4階調分のビット列と、3ビットの分解能における最小値(000)から最大値(111)までの間の8階調分のビット列と、4ビットの分解能における最小値(0000)から最大値(1111)までの間の16階調分のビット列とを対応付けた変換テーブルを参照して行う。図5は、変換テーブルの一例を示す図である。   Conversion from alpha data of 1-bit, 2-bit, and 3-bit resolution to alpha data of 4-bit resolution is a bit string for two gradations of minimum value (0) and maximum value (1) in 1-bit resolution. And a bit string for four gradations between a minimum value (00) and a maximum value (11) at a resolution of 2 bits, and between a minimum value (000) and a maximum value (111) at a resolution of 3 bits. This is performed by referring to a conversion table in which a bit string for 8 gradations and a bit string for 16 gradations between the minimum value (0000) and the maximum value (1111) in a resolution of 4 bits are associated. FIG. 5 is a diagram illustrating an example of the conversion table.

アルファデータデコーダ26は、1マクロブロック分の各アルファデータを8×8ブロックに分割した後、その8×8ブロックを1ブロックずつ走査し、各ブロックからデータα,α,α,αを2つずつ(より具体的には、データαおよびαの組(合計8ビット)とデータαおよびαの組(合計8ビット))順に取り出して外部メモリI/F27へ供給する。 The alpha data decoder 26 divides each piece of alpha data for one macro block into 8 × 8 blocks, and then scans the 8 × 8 block one block at a time, and outputs data α 3 , α 2 , α 1 , α from each block. 0 one by two (more specifically, the data alpha 3 and alpha 2 pairs (a total of 8 bits) and data alpha 1 and alpha 0 the pairs (a total of 8 bits)) supplied is taken out in the order to the external memory I / F 27 To do.

図4において、外部メモリI/F27は、バッファ27Aおよび27Aのうち一方を書込用、他方を読出用とし、動画デコーダ25から圧縮符号化画像データの復号結果として供給されてくるデータV3210,Y,Y,U3210,Y,Yを書込用のバッファ27A(またはバッファ27A)における格納先バイトアドレスに順に書き込んでいく。そして、書込用のバッファ27A(またはバッファ27A)へ1マクロブロック分の復号結果が蓄積される都度、書込用のバッファ27A(またはバッファ27A)と読出用のバッファ27A(またはバッファ27A)とを切り換え、書込み用に切り換えたバッファ27A(またはバッファ27A)への次の1マクロブロック分の復号結果の書込みと、読出用に切り換えたバッファ27A(またはバッファ27A)内の復号結果のバスI/F21Cへの供給とを行う。 4, the external memory I / F 27 is, for writing the one of the buffers 27A 1 and 27A 2, and the other as a read, data V supplied thereto as a result of decoding the compression encoded image data from the video decoder 25 3210 , Y 3 , Y 2 , U 3210 , Y 1 , Y 0 are sequentially written to the storage destination byte address in the write buffer 27A 1 (or buffer 27A 2 ). Then, each time the buffer 27A 1 for writing (or buffer 27A 2) to one macroblock decoding result is stored, the buffer 27A 1 for writing (or buffer 27A 2) a buffer 27A 2 for reading ( Alternatively, the buffer 27A 1 ) is switched and the decoding result for the next one macroblock is written into the buffer 27A 2 (or buffer 27A 1 ) switched for writing and the buffer 27A 1 (or buffer 27A switched for reading). 2 ) The decoding result in ( 2 ) is supplied to the bus I / F 21C.

また、外部メモリI/F27は、バッファ27Bおよび27Bのうち一方を書込用、他方を読出用とし、アルファデータデコーダ26から圧縮符号化アルファデータの復号結果として供給されてくるデータα,α,α,αを書込用のバッファ27B(またはバッファ27B)における格納先バイトアドレスに順に書き込んでいく。そして、書込用のバッファ27B(またはバッファ27B)へ1マクロブロック分の復号結果が蓄積される都度、書込用のバッファ27B(またはバッファ27B)と読出用のバッファ27B(またはバッファ27B)とを切り換え、書込み用に切り換えたバッファ27B(またはバッファ27B)への次の1マクロブロック分の復号結果の書込みと、読出用に切り換えたバッファ27B(またはバッファ27B)内の復号結果のバスI/F21Cへの供給とを行う。 The external memory I / F 27 includes a buffer 27B 1 and 27B for writing one of the two, and for reading the other data alpha 3 from alpha data decoder 26 supplied thereto as a result of decoding the compression-encoded alpha data , Α 2 , α 1 , α 0 are sequentially written into the storage byte address in the write buffer 27B 1 (or buffer 27B 2 ). Then, each time the buffer 27B 1 for writing (or buffer 27B 2) to one macroblock decoding result is stored, the buffer 27B 1 for writing (or buffer 27B 2) a buffer 27B 2 for reading ( Alternatively, the buffer 27B 1 ) is switched, the decoding result for the next one macroblock is written into the buffer 27B 2 (or buffer 27B 1 ) switched for writing, and the buffer 27B 1 (or buffer 27B switched for reading). 2 ) The decoding result in ( 2 ) is supplied to the bus I / F 21C.

バスI/F21Cは、動画デコーダ25およびアルファデータデコーダ26から外部メモリI/F27を介して供給されてくるデータV3210,Y,Y,U3210,Y,Yおよびデータα,α,α,αを上述したデータ構造の64ビットのデータ(図3(B))へとマージし、マージしたデータを外部メモリモジュール102に転送するマージ手段としての役割を果たす。より詳細に説明すると、バスI/F21Cは、自身のメモリをリングバッファ89として利用し、第1および第2の書込み処理を並行して行う。第1の書込み処理は、1マクロブロック分のデータの書込みを終える度にリングバッファ89におけるバッファ90−k(k=1,2…)の書込み先ポインタを1つ進めつつ、外部メモリI/F27から供給されるデータV3210,Y,Y,U3210,Y,Yをその供給時の書込み先ポインタが示すバッファ90−kに書き込む処理である。第2の書込み処理は、1マクロブロック分のデータの書込みを終える度にリングバッファ89におけるバッファ90−k(k=1,2…)の書込み先ポインタを1つ進めつつ、外部メモリI/F27から供給されるデータα,α,α,αをその供給時の書込み先ポインタが示すバッファ90−kに書き込む処理である。バスI/F21Cは、この第1および第2の書込み処理において共通のバッファ90−kにデータV3210,Y,Y,U3210,Y,Yおよびデータα,α,α,αを書き込むときに、上述したデータ構造をなすようにデータV3210,Y,Y,U3210,Y,Yおよびデータα,α,α,αをマージする。そして、バスI/F21Cは、バッファ90−kに1マクロブロック分のデータV3210,Y,Y,U3210,Y,Yおよびデータα,α,α,αの両方が蓄積されると、蓄積したデータV3210,Y,Y,U3210,Y,Yおよびデータα,α,α,αを1マクロブロック分の復号結果として外部メモリモジュール102へDMA(Direct
Memory Access )転送する。ここで、バッファ90−kに1マクロブロック分のデータV3210,Y,Y,U3210,Y,Yおよびデータα,α,α,αの両方が蓄積される都度行われるDMA転送では、図6に示すように、1フレームの画像を分割した複数個のマクロブロックの各々の復号結果(1マクロブロック分のデータV3210,Y,Y,U3210,Y,Y,α,α,α,α)が外部メモリモジュール102内においてマクロブロックのラスタスキャン順のレイアウトで格納されるように、各々の格納先アドレスを指定する。
The bus I / F 21C is supplied with data V 3210 , Y 3 , Y 2 , U 3210 , Y 1 , Y 0 and data α 3 , supplied from the moving picture decoder 25 and the alpha data decoder 26 via the external memory I / F 27. α 2 , α 1 , α 0 are merged into 64-bit data (FIG. 3B) having the above-described data structure, and serve as merging means for transferring the merged data to the external memory module 102. More specifically, the bus I / F 21C uses its own memory as the ring buffer 89 and performs the first and second write processes in parallel. The first write process advances the write destination pointer of the buffer 90-k (k = 1, 2,...) In the ring buffer 89 by one each time the writing of data for one macroblock is completed, and the external memory I / F 27 Is a process of writing the data V 3210 , Y 3 , Y 2 , U 3210 , Y 1 , and Y 0 supplied from the data into the buffer 90-k indicated by the write destination pointer at the time of supply. The second write process advances the write destination pointer of the buffer 90-k (k = 1, 2,...) In the ring buffer 89 by one each time the writing of data for one macroblock is completed, and the external memory I / F 27. Is a process of writing the data α 3 , α 2 , α 1 , α 0 supplied from the buffer 90-k indicated by the write destination pointer at the time of supply. The bus I / F 21C stores data V 3210 , Y 3 , Y 2 , U 3210 , Y 1 , Y 0 and data α 3 , α 2 , α in the common buffer 90-k in the first and second write processes. 1 , α 0 , data V 3210 , Y 3 , Y 2 , U 3210 , Y 1 , Y 0 and data α 3 , α 2 , α 1 , α 0 are merged to form the above-described data structure. To do. Then, the bus I / F21c are data V 3210 of one macro block in the buffer 90-k, Y 3, Y 2, U 3210, Y 1, Y 0 and the data alpha 3, alpha 2, alpha 1, the alpha 0 When both are accumulated, the accumulated data V 3210 , Y 3 , Y 2 , U 3210 , Y 1 , Y 0 and the data α 3 , α 2 , α 1 , α 0 are externally converted as decoding results for one macroblock. DMA (Direct to memory module 102
Memory Access) Transfer. Here, both data V 3210 , Y 3 , Y 2 , U 3210 , Y 1 , Y 0 and data α 3 , α 2 , α 1 , α 0 for one macroblock are stored in the buffer 90-k. each time the DMA transfer performed, as shown in FIG. 6, each of the decoding result of a plurality of macro-blocks obtained by dividing an image of one frame (one macroblock data V 3210, Y 3, Y 2 , U 3210, Y 1 , Y 0 , α 3 , α 2 , α 1 , α 0 ) are stored in the external memory module 102 in a raster block order layout of the macroblocks.

b1.圧縮符号化画像データの復号化の実行のみを指示する復号実行コマンドがコマンドバッファ22Aに書き込まれた場合
この場合、動画デコーダ25は、圧縮符号化画像データを復号化して1マクロブロック分の画像データを生成し、生成した画像データからデータV3210,Y,Y,U3210,Y,Yを取り出し、外部メモリI/F27内のバッファ27Aおよび27Aを介してバスI/F21Cに送る。アルファデータデコーダ26は、圧縮符号化アルファデータの復号化を行わず、その代わりに4ビットの分解能の最大値(1111)のデータα,α,α,α(全画素の透明度を100パーセントとするアルファデータ)を外部メモリI/F27内のバッファ27Bおよび27Bを介してバスI/F21Cに送る。バスI/F21Cは、動画デコーダ25およびアルファデータデコーダ26の各々から供給される1マクロブロック分のデータV3210,Y,Y,U3210,Y,Y,α,α,α,およびαをマージして外部メモリモジュール102に転送する。
b1. When a decoding execution command for instructing only execution of decoding of compressed encoded image data is written in the command buffer 22A In this case, the moving picture decoder 25 decodes the compressed encoded image data and outputs image data for one macroblock. And V 3210 , Y 3 , Y 2 , U 3210 , Y 1 , Y 0 are taken out from the generated image data, and the bus I / F 21 C is passed through the buffers 27 A 1 and 27 A 2 in the external memory I / F 27. Send to. The alpha data decoder 26 does not decode the compression-encoded alpha data. Instead, the data α 3 , α 2 , α 1 , α 0 (the transparency of all pixels is set to the maximum value (1111) of 4-bit resolution. alpha data) to 100% sends to the bus I / F21c through a buffer 27B 1 and 27B 2 in the external memory I / F 27. The bus I / F 21C includes data V 3210 , Y 3 , Y 2 , U 3210 , Y 1 , Y 0 , α 3 , α 2 , 1 macroblock supplied from each of the video decoder 25 and the alpha data decoder 26. α 1 and α 0 are merged and transferred to the external memory module 102.

c1.圧縮符号化アルファデータの復号化の実行のみを指示する復号実行コマンドがコマンドバッファ22Aに書き込まれた場合
この場合、動画デコーダ25は、圧縮符号化画像データを復号化せず、その代わりに8ビットの分解能における最小値(00000000)のデータV3210,Y,Y,U3210,Y,Y(透明な画像を示す画像データ)を外部メモリI/F27内のバッファ27Aおよび27Aを介してバスI/F21Cに送る。アルファデータデコーダ26は、圧縮符号化アルファデータを復号化して1マクロブロック分のアルファデータを生成し、このアルファデータ(データα,α,α,α)を外部メモリI/F27内のバッファ27Bおよび27Bを介してバスI/F21Cに送る。バスI/F21Cは、動画デコーダ25およびアルファデータデコーダ26の各々から供給される1マクロブロック分のデータV3210,Y,Y,U3210,Y,Y,α,α,α,αをマージして外部メモリモジュール102に転送する。
c1. When a decoding execution command for instructing only execution of decoding of compression-encoded alpha data is written in the command buffer 22A In this case, the moving picture decoder 25 does not decode the compression-encoded image data, but instead uses 8-bit data. Data V 3210 , Y 3 , Y 2 , U 3210 , Y 1 , Y 0 (image data indicating a transparent image) in the resolution of the image data are stored in buffers 27A 1 and 27A 2 in the external memory I / F 27. To the bus I / F 21C. The alpha data decoder 26 decodes the compression-encoded alpha data to generate alpha data for one macroblock, and this alpha data (data α 3 , α 2 , α 1 , α 0 ) is stored in the external memory I / F 27. send to the bus I / F21c through the buffer 27B 1 and 27B 2. The bus I / F 21C includes data V 3210 , Y 3 , Y 2 , U 3210 , Y 1 , Y 0 , α 3 , α 2 , 1 macroblock supplied from each of the video decoder 25 and the alpha data decoder 26. α 1 and α 0 are merged and transferred to the external memory module 102.

以上説明したように、本実施形態では、画像処理装置100は、復号対象の圧縮符号化アルファデータが4ビットと異なる分解能のアルファデータを圧縮符号化したものである場合に、4ビットの分解能のアルファデータをその圧縮符号化アルファデータの復号結果として描画装置105に引き渡す。よって、画像処理装置100は、圧縮符号化アルファデータの復号結果を描画装置105に引き渡す度にその復号結果が何ビットの分解能であるかまでを同装置105に通知する必要がなくなる。従って、圧縮符号化画像データおよび圧縮符号化アルファデータの復号化からその復号結果を用いたアルファブレンディングまでの処理をより高速化できる。   As described above, in this embodiment, the image processing apparatus 100 has a 4-bit resolution when the compression-coded alpha data to be decoded is compression-coded alpha data having a resolution different from 4 bits. The alpha data is delivered to the rendering apparatus 105 as a decoding result of the compression-encoded alpha data. Therefore, the image processing apparatus 100 does not need to notify the apparatus 105 of how many bits the resolution of the decoding result is every time the decoding result of the compression-encoded alpha data is delivered to the drawing apparatus 105. Therefore, it is possible to increase the processing speed from the decoding of the compression encoded image data and the compression encoded alpha data to the alpha blending using the decoding result.

また、本実施形態では、画像処理装置100は、動画デコーダ25による復号結果であるデータV3210,Y,Y,U3210,Y,Yと、アルファデータデコーダ26による復号結果であるデータα,α,α,αとを64ビットずつマージし、このマージしたデータを外部メモリモジュール102へ転送する。これにより、外部メモリモジュール102では、1ブロックのアルファブレンディングに必要な10種類のデータV3210,Y,Y,U3210,Y,Y、α,α,α,αが連続したアドレス領域に格納される。よって、圧縮符号化画像データの復号結果であるデータV3210,Y,Y,U3210,Y,Yと圧縮符号化アルファデータの復号結果であるα,α,α,αを別のアドレス領域に分けて格納させる場合に比べて、描画装置105によるデータV3210,Y,Y,U3210,Y,Y、α,α,α,αの読み出しの所要時間が短くなり、処理を高速化できる。 Further, in the present embodiment, the image processing apparatus 100 is the data V 3210 , Y 3 , Y 2 , U 3210 , Y 1 , Y 0 that are the decoding results by the moving picture decoder 25, and the decoding results by the alpha data decoder 26. The data α 3 , α 2 , α 1 , α 0 are merged 64 bits at a time, and the merged data is transferred to the external memory module 102. Thereby, in the external memory module 102, ten types of data V 3210 , Y 3 , Y 2 , U 3210 , Y 1 , Y 0 , α 3 , α 2 , α 1 , α 0 necessary for alpha blending of one block. Are stored in consecutive address areas. Therefore, data V 3210 , Y 3 , Y 2 , U 3210 , Y 1 , Y 0 that are the decoding results of the compression-encoded image data and α 3 , α 2 , α 1 , which are the decoding results of the compression-encoded alpha data. The data V 3210 , Y 3 , Y 2 , U 3210 , Y 1 , Y 0 , α 3 , α 2 , α 1 , α by the drawing device 105 are compared with the case where α 0 is stored separately in another address area. The time required for reading 0 is shortened, and the processing can be speeded up.

また、本実施形態では、画像処理装置100は、圧縮符号化アルファデータの復号化の実行のみを指示する復号実行コマンドが与えられた場合、8ビットの分解能における最小値(00000000)のデータV3210,Y,Y,U3210,Y,Yを圧縮符号化画像データの復号結果の代わりとし、この最小値(00000000)のデータV3210,Y,Y,U3210,Y,Yを圧縮符号化アルファデータの復号結果であるデータα,α,α,αとともに外部メモリモジュール102に転送する。よって、圧縮符号化アルファデータの復号化の実行のみを指示することにより、動画の背景画像となる画像の色の強弱を変更し、一種のエフェクトを実現することができる。 In the present embodiment, the image processing apparatus 100 receives the data V 3210 having the minimum value (00000000) in the 8-bit resolution when a decoding execution command for instructing only the decoding of the compression-encoded alpha data is given. , Y 3 , Y 2 , U 3210 , Y 1 , Y 0 instead of the decoding result of the compression-encoded image data, the data V 3210 , Y 3 , Y 2 , U 3210 , Y 1 of this minimum value (00000000) , Y 0 are transferred to the external memory module 102 together with the data α 3 , α 2 , α 1 , α 0 which are the decoding results of the compression encoded alpha data. Therefore, by instructing only the execution of the decoding of the compression-encoded alpha data, it is possible to change the intensity of the color of the image that becomes the background image of the moving image and realize a kind of effect.

<他の実施形態>
以上、この発明の実施形態を説明したが、この発明には、他にも各種の実施形態が考えられる。例えば、以下の通りである。
(1)上記実施形態では、圧縮符号化画像データの復号結果である画像データおよび圧縮符号化アルファデータの復号結果であるアルファデータを1ブロック(2×2画素)分の画像データおよびアルファデータ毎にマージした。しかし、1ブロック(2×2画素)分と異なる所定画素数分の画像データおよびアルファデータ毎にマージしてもよい。
<Other embodiments>
As mentioned above, although embodiment of this invention was described, various other embodiment can be considered to this invention. For example, it is as follows.
(1) In the above embodiment, image data that is a decoding result of compression-encoded image data and alpha data that is a decoding result of compression-encoded alpha data are converted into image data and alpha data for one block (2 × 2 pixels). Merged. However, the image data and alpha data for a predetermined number of pixels different from one block (2 × 2 pixels) may be merged.

(2)上記実施形態では、画像データおよびアルファデータのマトリクスを16×16画素数分ずつ分割したものを1つのマクロブロックとした。しかし、画像データおよびアルファデータのマトリクスを16×16画素と異なる所定画素数分ずつ分割したものを1つのマクロブロックとしてもよい。 (2) In the above embodiment, one macroblock is obtained by dividing a matrix of image data and alpha data by the number of 16 × 16 pixels. However, one macroblock may be obtained by dividing a matrix of image data and alpha data by a predetermined number of pixels different from 16 × 16 pixels.

1……動画再生装置、100……画像処理装置、101A,101B,101C……バス、103……ホストCPU、104……パターンROM、105……描画装置、11……キャッシュメモリ、12……キャッシュ制御部、21A,21B,21C……バスI/F、22……ホストI/F、23……レジスタ群、24……パターンROM I/F、25……動画デコーダ、26……アルファデータデコーダ、27……外部メモリI/F
DESCRIPTION OF SYMBOLS 1 ... Moving image reproducing device, 100 ... Image processing device, 101A, 101B, 101C ... Bus, 103 ... Host CPU, 104 ... Pattern ROM, 105 ... Drawing device, 11 ... Cache memory, 12 ... Cache control unit, 21A, 21B, 21C ...... Bus I / F, 22 ... Host I / F, 23 ... Register group, 24 ... Pattern ROM I / F, 25 ... Movie decoder, 26 ... Alpha data Decoder, 27 ... External memory I / F

Claims (2)

画像を圧縮符号化した圧縮符号化画像データを復号化する動画デコーダと、
画像のアルファブレンディングに用いるアルファデータを圧縮符号化した圧縮符号化アルファデータを復号化するアルファデータデコーダと、
前記動画デコーダから復号結果として出力される画像データおよび当該画像データに使用される復号結果として前記アルファデータデコーダから出力されるアルファデータを1フレームの画像を分割した所定画素数分の画像データおよびアルファデータ毎にマージして外部メモリモジュールに転送するマージ手段と
を具備することを特徴とする画像処理装置。
A video decoder that decodes compression-encoded image data obtained by compression-encoding an image;
An alpha data decoder for decoding compression-encoded alpha data obtained by compression-encoding alpha data used for alpha blending of an image;
Image data and alpha corresponding to a predetermined number of pixels obtained by dividing an image data output as a decoding result from the moving picture decoder and alpha data output from the alpha data decoder as a decoding result used for the image data into one frame image An image processing apparatus comprising: merge means for merging data and transferring the data to an external memory module.
前記動画デコーダから復号結果として出力される画像データを格納するための2つの画像データバッファと、前記アルファデータデコーダから復号結果として出力される画像データを格納するための2つのアルファデータバッファとを内蔵し、1フレームの画像を分割した1マクロブロック分の画像データが2つの画像データバッファのうち一方に蓄積される都度、その一方の画像データバッファに蓄積された1マクロブロック分の画像データを前記マージ手段に供給するとともに、前記1マクロブロック分の画像データが2つのアルファデータバッファのうち一方に蓄積される都度、その一方のアルファデータバッファに蓄積された1マクロブロック分のアルファデータを前記マージ手段に供給する外部メモリインターフェース
を具備することを特徴とする請求項1に記載の画像処理装置。
Built-in two image data buffers for storing image data output as decoding results from the moving picture decoder, and two alpha data buffers for storing image data output as decoding results from the alpha data decoder Each time image data for one macroblock obtained by dividing an image of one frame is accumulated in one of the two image data buffers, the image data for one macroblock accumulated in one of the image data buffers is Each time the image data for one macroblock is stored in one of the two alpha data buffers, the alpha data for one macroblock stored in one of the alpha data buffers is merged with the merge means. Comprising an external memory interface for supplying means The image processing apparatus according to claim 1.
JP2009249461A 2009-10-29 2009-10-29 Image processing device Active JP5359785B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009249461A JP5359785B2 (en) 2009-10-29 2009-10-29 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009249461A JP5359785B2 (en) 2009-10-29 2009-10-29 Image processing device

Publications (2)

Publication Number Publication Date
JP2011097370A true JP2011097370A (en) 2011-05-12
JP5359785B2 JP5359785B2 (en) 2013-12-04

Family

ID=44113816

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009249461A Active JP5359785B2 (en) 2009-10-29 2009-10-29 Image processing device

Country Status (1)

Country Link
JP (1) JP5359785B2 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08241068A (en) * 1995-03-03 1996-09-17 Matsushita Electric Ind Co Ltd Information recording medium, device and method for decoding bit map data
JPH10215459A (en) * 1996-11-08 1998-08-11 Matsushita Electric Ind Co Ltd Image coder and image decoder
JPH1132337A (en) * 1997-05-15 1999-02-02 Matsushita Electric Ind Co Ltd Data structure for transmitting picture and encoding method and decoding method
JP2001186522A (en) * 1997-07-10 2001-07-06 Matsushita Electric Ind Co Ltd Image-coding method and image-decoding method
JP2006191240A (en) * 2005-01-04 2006-07-20 Toshiba Corp Reproducing apparatus
JP2008176148A (en) * 2007-01-19 2008-07-31 Nintendo Co Ltd Liquid crystal display controller and liquid crystal display control program
JP2009017472A (en) * 2007-07-09 2009-01-22 Renesas Technology Corp Image decoding unit and image decoding method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08241068A (en) * 1995-03-03 1996-09-17 Matsushita Electric Ind Co Ltd Information recording medium, device and method for decoding bit map data
JPH10215459A (en) * 1996-11-08 1998-08-11 Matsushita Electric Ind Co Ltd Image coder and image decoder
JPH1132337A (en) * 1997-05-15 1999-02-02 Matsushita Electric Ind Co Ltd Data structure for transmitting picture and encoding method and decoding method
JP2001186522A (en) * 1997-07-10 2001-07-06 Matsushita Electric Ind Co Ltd Image-coding method and image-decoding method
JP2006191240A (en) * 2005-01-04 2006-07-20 Toshiba Corp Reproducing apparatus
JP2008176148A (en) * 2007-01-19 2008-07-31 Nintendo Co Ltd Liquid crystal display controller and liquid crystal display control program
JP2009017472A (en) * 2007-07-09 2009-01-22 Renesas Technology Corp Image decoding unit and image decoding method

Also Published As

Publication number Publication date
JP5359785B2 (en) 2013-12-04

Similar Documents

Publication Publication Date Title
JP5051087B2 (en) Lossless compression coding apparatus and lossless decoding apparatus
US10026146B2 (en) Image processing device including a progress notifier which outputs a progress signal
KR100201981B1 (en) The memory control apparatus and image decoder using that
JP2007293533A (en) Processor system and data transfer method
JP5157796B2 (en) Lossless compression encoding apparatus and decoding apparatus for image data
JP6679290B2 (en) Semiconductor device
JP3940672B2 (en) Image processing apparatus and image processing method
JP2010098352A (en) Image information encoder
JP2007158550A (en) Image processing apparatus, and image processing method
JP5359785B2 (en) Image processing device
US8462168B2 (en) Decompression system and method for DCT-base compressed graphic data with transparent attribute
JP2011097371A (en) Image processor
JP2008053848A (en) Image processor and image processing method
US20210075440A1 (en) System, Apparatus and Method for Data Compaction and Decompaction
US20060170708A1 (en) Circuits for processing encoded image data using reduced external memory access and methods of operating the same
TWI835238B (en) Image processing method and image processing device
TWI835236B (en) Image processing method and image processing device
JP5731816B2 (en) Image processing apparatus and image processing method
US20240048740A1 (en) Image processing method and image processing device for enhancing image processing efficiency
US20240048734A1 (en) Image processing method and image processing device for enhancing image processing efficiency
JP4461303B2 (en) Video decoding apparatus and video decoding method
JP2005142699A (en) Image companding apparatus
JP3984981B2 (en) Image encoding method, apparatus and program thereof, and image decoding method, apparatus and program thereof
KR0130452B1 (en) Picture decoding apparatus
JP2020195038A (en) Image processing apparatus, image processing method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120820

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130416

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130423

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130621

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130806

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130819

R150 Certificate of patent or registration of utility model

Ref document number: 5359785

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150