JP5359785B2 - Image processing device - Google Patents
Image processing device Download PDFInfo
- Publication number
- JP5359785B2 JP5359785B2 JP2009249461A JP2009249461A JP5359785B2 JP 5359785 B2 JP5359785 B2 JP 5359785B2 JP 2009249461 A JP2009249461 A JP 2009249461A JP 2009249461 A JP2009249461 A JP 2009249461A JP 5359785 B2 JP5359785 B2 JP 5359785B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- alpha
- image
- compression
- buffer
- 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.)
- Active
Links
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
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,
従来のこの種の動画再生装置では、フレームの一枚一枚をなす画像データを圧縮符号化した圧縮符号化画像データとそれらの画像データと対をなすアルファデータを圧縮符号化した圧縮符号化アルファデータとをパターン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.
以下、図面を参照し、この発明の実施の形態を説明する。
図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
ここで、バス101Bに接続されたパターンROM104には、複数種類の動画の圧縮符号化画像データ、およびそれらの圧縮符号化画像データと組み合わせて利用される複数種類の圧縮符号化アルファデータが各々の属性情報とともに記憶されている。パターンROM104内における各種圧縮符号化画像データは、動画の各フレームの画像を16×16画素のマクロブロックに分割し、分割したマクロブロックの各々に非可逆圧縮符号化処理(より具体的には、DCT(Discrete Cosine Transform)、フレーム間予測符号化処理、ハフマン符号化などの処理)を施して得られたデータである。
Here, in the
また、パターン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
図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
動画デコーダ25は、パターンROM I/F24から供給される圧縮符号化画像データを1マクロブロック分ずつ復号化する装置である。アルファデータデコーダ26は、パターンROM I/F24から供給される圧縮符号化アルファデータを1マクロブロック分ずつ復号化する装置である。
The moving
キャッシュ制御部12は、動画デコーダ25による復号化において再利用される復号化済みの画像データを外部メモリモジュール102から取得してキャッシュメモリ11に記憶し、動画デコーダ25の要求に応じてその復号化済みの画像データをキャッシュメモリ11から取り出して動画デコーダ25に供給する。
The
外部メモリI/F27は、動画デコーダ25から復号結果として出力される画像データを格納する画像データバッファである2つのバッファ27A1および27A2と、アルファデータデコーダ26から復号結果として出力されるアルファデータを格納するアルファデータバッファである2つのバッファ27B1および27B2とを内蔵している。外部メモリI/F27は、バッファ27A1および27A2を交互に利用しつつ、動画デコーダ25から出力される画像データをバッファ27A1および27A2に蓄積し、蓄積した画像データをバスI/F21Cを介して外部メモリモジュール102に転送する。また、外部メモリI/F27は、バッファ27B1および27B2を交互に利用しつつ、アルファデータデコーダ26から出力されるアルファデータをバッファ27B1および27B2に蓄積し、蓄積したアルファデータをバスI/F21Cを介して外部メモリモジュール102に転送する。
The external memory I /
当該画像処理装置100および外部メモリモジュール102とともにバス101Cに接続されている描画装置105は、外部メモリモジュール102に記憶された動画の画像データおよびアルファデータを読み出し、図示しない表示装置の表示内容に反映させる描画処理を実行する。その際、描画装置105は、外部メモリモジュール102から読み出したアルファデータを用いて、表示内容において動画の背景画像となる画像と、動画を構成する1フレーム分の画像(外部メモリモジュール102から読み出した画像データ)とのアルファブレンディングを行う。
The
以上が本実施形態による画像処理装置100の構成の概略であるが、この画像処理装置100の特徴は、次の点にある。
<特徴1>復号対象の圧縮符号化アルファデータが予め設定された分解能である4ビットと異なる分解能のアルファデータを圧縮符号化したものである場合、圧縮符号化アルファデータを復号化して得られたアルファデータに代えてそのアルファデータを4ビットの分解能のアルファデータに変換したものを復号結果とする点。
<特徴2>圧縮符号化画像データの復号結果である画像データおよび圧縮符号化アルファデータの復号結果であるアルファデータを所定画素数分の画像データおよびアルファデータ毎にマージして外部メモリモジュール102に転送する点。
The above is the outline of the configuration of the
<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
以下、このような特徴を可能にするための仕組みについて説明する。本実施形態において、ホストCPU103は、復号対象とされた圧縮符号化画像データおよび圧縮符号化アルファデータや各々の属性情報の格納開始アドレス等をレジスタ群23の中の所定のレジスタに制御情報として書き込んだ後、圧縮符号化画像データおよび圧縮符号化アルファデータの両方の復号化の実行を指示する復号実行コマンド、圧縮符号化画像データの復号化の実行のみを指示する復号実行コマンド、および圧縮符号化アルファデータの復号化の実行のみを指示する復号実行コマンドの3種類のコマンドのうちいずれかをホストI/F22内のコマンドバッファ22Aに書き込む。
Hereinafter, a mechanism for enabling such a feature will be described. In the present embodiment, the
より具体的には、ホスト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
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
データV3210
これは、ブロックにおける4つの画素の各々のV値の代表値(例えば、4つの画素の各々のV値の平均値)を8ビットのビット列として示したデータである。
データY3
これは、ブロックにおける右下の画素のY値を8ビットのビット列として示したデータである。
データY2
これは、ブロックにおける右上の画素のY値を8ビットのビット列として示したデータである。
データα3
これは、ブロックにおける右下の画素の透明度を4ビットのビット列として示したデータである。
データα2
これは、ブロックにおける右上の画素の透明度を4ビットのビット列として示したデータである。
データU3210
これは、ブロックにおける4つの画素の各々のU値の代表値(例えば、4つの画素の各々のU値の平均値)を8ビットのビット列として示したデータである。
データY1
これは、ブロックにおける左下の画素のY値を8ビットのビット列として示したデータである。
データY0
これは、ブロックにおける左上の画素のY値を8ビットのビット列として示したデータである。
データα1
これは、ブロックにおける左下の画素の透明度を4ビットのビット列として示したデータである。
データα0
これは、ブロックにおける左上の画素の透明度を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
When the decoding execution command is written in the
動画デコーダ25は、圧縮符号化画像データに所定の復号化処理を施して1マクロブロック分の画像データを生成し、その1マクロブロック分の画像データを8×8ブロックに分割する。そして、動画デコーダ25は、この8×8ブロックを1ブロックずつ走査し、各ブロックからデータV3210,Y3,Y2,U3210,Y1,およびY0を順に取り出して外部メモリI/F27へ供給する。
The moving
また、アルファデータデコーダ26は、パターンROM104による圧縮符号化アルファデータの出力の開始に先立って同ROM104から出力された属性情報を取得し、同ROM104から以降に供給される圧縮符号化アルファデータの圧縮符号化対象であった元のアルファデータの分解能を求める。そして、パターンROM104からパターンROM I/F24を介して圧縮符号化アルファデータが供給され始めると、次のような処理を行う。
Further, the
アルファデータデコーダ26は、圧縮符号化アルファデータに所定の復号化処理を施して1マクロブロック分のアルファデータのマトリクス(16×16個のアルファデータのマトリクス)を生成する。そして、アルファデータデコーダ26は、属性情報により求めておいた分解能が4ビットであった場合には、復号化処理によって得た1マクロブロック分の各アルファデータをそのまま8×8ブロックに分割し、属性情報により求めておいた分解能が4ビットと異なるものであった場合には、復号化処理によって得た1マクロブロック分の各アルファデータ(1ビット、2ビット、または3ビットの分解能のアルファデータ)を4ビットの分解能のアルファデータに変換してから8×8ブロックに分割する。
The
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ブロックずつ走査し、各ブロックからデータα3,α2,α1,α0を2つずつ(より具体的には、データα3およびα2の組(合計8ビット)とデータα1およびα0の組(合計8ビット))順に取り出して外部メモリI/F27へ供給する。
The
図4において、外部メモリI/F27は、バッファ27A1および27A2のうち一方を書込用、他方を読出用とし、動画デコーダ25から圧縮符号化画像データの復号結果として供給されてくるデータV3210,Y3,Y2,U3210,Y1,Y0を書込用のバッファ27A1(またはバッファ27A2)における格納先バイトアドレスに順に書き込んでいく。そして、書込用のバッファ27A1(またはバッファ27A2)へ1マクロブロック分の復号結果が蓄積される都度、書込用のバッファ27A1(またはバッファ27A2)と読出用のバッファ27A2(またはバッファ27A1)とを切り換え、書込み用に切り換えたバッファ27A2(またはバッファ27A1)への次の1マクロブロック分の復号結果の書込みと、読出用に切り換えたバッファ27A1(またはバッファ27A2)内の復号結果のバスI/F21Cへの供給とを行う。
4, the external memory I /
また、外部メモリI/F27は、バッファ27B1および27B2のうち一方を書込用、他方を読出用とし、アルファデータデコーダ26から圧縮符号化アルファデータの復号結果として供給されてくるデータα3,α2,α1,α0を書込用のバッファ27B1(またはバッファ27B2)における格納先バイトアドレスに順に書き込んでいく。そして、書込用のバッファ27B1(またはバッファ27B2)へ1マクロブロック分の復号結果が蓄積される都度、書込用のバッファ27B1(またはバッファ27B2)と読出用のバッファ27B2(またはバッファ27B1)とを切り換え、書込み用に切り換えたバッファ27B2(またはバッファ27B1)への次の1マクロブロック分の復号結果の書込みと、読出用に切り換えたバッファ27B1(またはバッファ27B2)内の復号結果のバスI/F21Cへの供給とを行う。
The external memory I /
バスI/F21Cは、動画デコーダ25およびアルファデータデコーダ26から外部メモリI/F27を介して供給されてくるデータV3210,Y3,Y2,U3210,Y1,Y0およびデータα3,α2,α1,α0を上述したデータ構造の64ビットのデータ(図3(B))へとマージし、マージしたデータを外部メモリモジュール102に転送するマージ手段としての役割を果たす。より詳細に説明すると、バスI/F21Cは、自身のメモリをリングバッファ89として利用し、第1および第2の書込み処理を並行して行う。第1の書込み処理は、1マクロブロック分のデータの書込みを終える度にリングバッファ89におけるバッファ90−k(k=1,2…)の書込み先ポインタを1つ進めつつ、外部メモリI/F27から供給されるデータV3210,Y3,Y2,U3210,Y1,Y0をその供給時の書込み先ポインタが示すバッファ90−kに書き込む処理である。第2の書込み処理は、1マクロブロック分のデータの書込みを終える度にリングバッファ89におけるバッファ90−k(k=1,2…)の書込み先ポインタを1つ進めつつ、外部メモリI/F27から供給されるデータα3,α2,α1,α0をその供給時の書込み先ポインタが示すバッファ90−kに書き込む処理である。バスI/F21Cは、この第1および第2の書込み処理において共通のバッファ90−kにデータV3210,Y3,Y2,U3210,Y1,Y0およびデータα3,α2,α1,α0を書き込むときに、上述したデータ構造をなすようにデータV3210,Y3,Y2,U3210,Y1,Y0およびデータα3,α2,α1,α0をマージする。そして、バスI/F21Cは、バッファ90−kに1マクロブロック分のデータV3210,Y3,Y2,U3210,Y1,Y0およびデータα3,α2,α1,α0の両方が蓄積されると、蓄積したデータV3210,Y3,Y2,U3210,Y1,Y0およびデータα3,α2,α1,α0を1マクロブロック分の復号結果として外部メモリモジュール102へDMA(Direct
Memory Access )転送する。ここで、バッファ90−kに1マクロブロック分のデータV3210,Y3,Y2,U3210,Y1,Y0およびデータα3,α2,α1,α0の両方が蓄積される都度行われるDMA転送では、図6に示すように、1フレームの画像を分割した複数個のマクロブロックの各々の復号結果(1マクロブロック分のデータV3210,Y3,Y2,U3210,Y1,Y0,α3,α2,α1,α0)が外部メモリモジュール102内においてマクロブロックのラスタスキャン順のレイアウトで格納されるように、各々の格納先アドレスを指定する。
The bus I /
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
b1.圧縮符号化画像データの復号化の実行のみを指示する復号実行コマンドがコマンドバッファ22Aに書き込まれた場合
この場合、動画デコーダ25は、圧縮符号化画像データを復号化して1マクロブロック分の画像データを生成し、生成した画像データからデータV3210,Y3,Y2,U3210,Y1,Y0を取り出し、外部メモリI/F27内のバッファ27A1および27A2を介してバスI/F21Cに送る。アルファデータデコーダ26は、圧縮符号化アルファデータの復号化を行わず、その代わりに4ビットの分解能の最大値(1111)のデータα3,α2,α1,α0(全画素の透明度を100パーセントとするアルファデータ)を外部メモリI/F27内のバッファ27B1および27B2を介してバスI/F21Cに送る。バスI/F21Cは、動画デコーダ25およびアルファデータデコーダ26の各々から供給される1マクロブロック分のデータV3210,Y3,Y2,U3210,Y1,Y0,α3,α2,α1,およびα0をマージして外部メモリモジュール102に転送する。
b1. When a decoding execution command for instructing only execution of decoding of compressed encoded image data is written in the
c1.圧縮符号化アルファデータの復号化の実行のみを指示する復号実行コマンドがコマンドバッファ22Aに書き込まれた場合
この場合、動画デコーダ25は、圧縮符号化画像データを復号化せず、その代わりに8ビットの分解能における最小値(00000000)のデータV3210,Y3,Y2,U3210,Y1,Y0(透明な画像を示す画像データ)を外部メモリI/F27内のバッファ27A1および27A2を介してバスI/F21Cに送る。アルファデータデコーダ26は、圧縮符号化アルファデータを復号化して1マクロブロック分のアルファデータを生成し、このアルファデータ(データα3,α2,α1,α0)を外部メモリI/F27内のバッファ27B1および27B2を介してバスI/F21Cに送る。バスI/F21Cは、動画デコーダ25およびアルファデータデコーダ26の各々から供給される1マクロブロック分のデータV3210,Y3,Y2,U3210,Y1,Y0,α3,α2,α1,α0をマージして外部メモリモジュール102に転送する。
c1. When a decoding execution command for instructing only execution of decoding of compression-encoded alpha data is written in the
以上説明したように、本実施形態では、画像処理装置100は、復号対象の圧縮符号化アルファデータが4ビットと異なる分解能のアルファデータを圧縮符号化したものである場合に、4ビットの分解能のアルファデータをその圧縮符号化アルファデータの復号結果として描画装置105に引き渡す。よって、画像処理装置100は、圧縮符号化アルファデータの復号結果を描画装置105に引き渡す度にその復号結果が何ビットの分解能であるかまでを同装置105に通知する必要がなくなる。従って、圧縮符号化画像データおよび圧縮符号化アルファデータの復号化からその復号結果を用いたアルファブレンディングまでの処理をより高速化できる。
As described above, in this embodiment, the
また、本実施形態では、画像処理装置100は、動画デコーダ25による復号結果であるデータV3210,Y3,Y2,U3210,Y1,Y0と、アルファデータデコーダ26による復号結果であるデータα3,α2,α1,α0とを64ビットずつマージし、このマージしたデータを外部メモリモジュール102へ転送する。これにより、外部メモリモジュール102では、1ブロックのアルファブレンディングに必要な10種類のデータV3210,Y3,Y2,U3210,Y1,Y0、α3,α2,α1,α0が連続したアドレス領域に格納される。よって、圧縮符号化画像データの復号結果であるデータV3210,Y3,Y2,U3210,Y1,Y0と圧縮符号化アルファデータの復号結果であるα3,α2,α1,α0を別のアドレス領域に分けて格納させる場合に比べて、描画装置105によるデータV3210,Y3,Y2,U3210,Y1,Y0、α3,α2,α1,α0の読み出しの所要時間が短くなり、処理を高速化できる。
Further, in the present embodiment, the
また、本実施形態では、画像処理装置100は、圧縮符号化アルファデータの復号化の実行のみを指示する復号実行コマンドが与えられた場合、8ビットの分解能における最小値(00000000)のデータV3210,Y3,Y2,U3210,Y1,Y0を圧縮符号化画像データの復号結果の代わりとし、この最小値(00000000)のデータV3210,Y3,Y2,U3210,Y1,Y0を圧縮符号化アルファデータの復号結果であるデータα3,α2,α1,α0とともに外部メモリモジュール102に転送する。よって、圧縮符号化アルファデータの復号化の実行のみを指示することにより、動画の背景画像となる画像の色の強弱を変更し、一種のエフェクトを実現することができる。
In the present embodiment, the
<他の実施形態>
以上、この発明の実施形態を説明したが、この発明には、他にも各種の実施形態が考えられる。例えば、以下の通りである。
(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
Claims (2)
画像のアルファブレンディングに用いるアルファデータを圧縮符号化した圧縮符号化アルファデータを復号化するアルファデータデコーダと、
前記動画デコーダから復号結果として出力される画像データを格納する画像データバッファと、
前記アルファデータデコーダから復号結果として出力されるアルファデータを格納するアルファデータバッファと、
1フレームの画像を分割した1マクロブロック分の画像データが前記画像データバッファに蓄積され、かつ前記アルファデータバッファに1マクロブロック分のアルファデータが蓄積されると、前記画像データバッファに蓄積された画像データと前記アルファデータバッファに蓄積されたアルファデータとをマクロブロック毎に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;
An image data buffer for storing image data output as a decoding result from the video decoder;
An alpha data buffer for storing alpha data output as a decoding result from the alpha data decoder;
When image data for one macro block obtained by dividing one frame of image is accumulated in the image data buffer, and when alpha data for one macro block is accumulated in the alpha data buffer, the image data is accumulated in the image data buffer. An image processing apparatus comprising: merge means for merging image data and alpha data stored in the alpha data buffer into one data for each macroblock and transferring the data to an external memory module.
を具備することを特徴とする請求項1に記載の画像処理装置。
Two image data buffers and two alpha data buffers are incorporated, and each time one macroblock image data obtained by dividing one frame image is stored in one of the two image data buffers, one of the two image data buffers is stored. Each time the macro data of one macroblock stored in the image data buffer is supplied to the merging means and the alpha data of one macroblock is stored in one of the two alpha data buffers, The image processing apparatus according to claim 1, further comprising: an external memory interface that supplies alpha data for one macroblock stored in a data buffer to the merge unit.
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 JP2011097370A (en) | 2011-05-12 |
JP5359785B2 true 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) |
Family Cites Families (7)
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 |
JP3612918B2 (en) * | 1996-11-08 | 2005-01-26 | 松下電器産業株式会社 | Image coding apparatus and image decoding apparatus |
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 |
JP4568120B2 (en) * | 2005-01-04 | 2010-10-27 | 株式会社東芝 | Playback device |
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 |
-
2009
- 2009-10-29 JP JP2009249461A patent/JP5359785B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2011097370A (en) | 2011-05-12 |
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 | |
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 | |
JP2020195038A (en) | Image processing apparatus, image processing method, and program | |
JP2004312116A (en) | Image decoding/reproducing device | |
KR20130010337A (en) | Apparatus and method for processing image | |
JPH1032781A (en) | Picture data write/read method for memory |
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 |