JP6717562B2 - Image coding method, image decoding method, image coding device, and image decoding device - Google Patents

Image coding method, image decoding method, image coding device, and image decoding device Download PDF

Info

Publication number
JP6717562B2
JP6717562B2 JP2015022526A JP2015022526A JP6717562B2 JP 6717562 B2 JP6717562 B2 JP 6717562B2 JP 2015022526 A JP2015022526 A JP 2015022526A JP 2015022526 A JP2015022526 A JP 2015022526A JP 6717562 B2 JP6717562 B2 JP 6717562B2
Authority
JP
Japan
Prior art keywords
unit
image
decoding
information
arithmetic
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
Application number
JP2015022526A
Other languages
Japanese (ja)
Other versions
JP2016146556A (en
Inventor
健吾 寺田
健吾 寺田
寿郎 笹井
寿郎 笹井
哲史 吉川
哲史 吉川
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.)
Panasonic Intellectual Property Corp of America
Original Assignee
Panasonic Intellectual Property Corp of America
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 Panasonic Intellectual Property Corp of America filed Critical Panasonic Intellectual Property Corp of America
Priority to JP2015022526A priority Critical patent/JP6717562B2/en
Publication of JP2016146556A publication Critical patent/JP2016146556A/en
Application granted granted Critical
Publication of JP6717562B2 publication Critical patent/JP6717562B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、画像符号化方法及び画像復号方法に関するものである。 The present invention relates to an image coding method and an image decoding method.

画像(動画像を含む)を符号化する画像符号化方法、または、画像を復号化する画像復号化方法に関する技術として、非特許文献1に記載の技術がある。 As a technique related to an image encoding method for encoding an image (including a moving image) or an image decoding method for decoding an image, there is a technique described in Non-Patent Document 1.

Joint Collaborative Team on Video Coding (JCT−VC) of ITU−T SG16 WP3 and ISO/IEC JTC1/SC29/WG11 12th Meeting: Geneva, CH, 14−23 Jan. 2013 JCTVC−L1003_v34.doc, High Efficiency Video Coding (HEVC) text specification draft 10 (for FDIS & Last Call) http://phenix.it−sudparis.eu/jct/doc_end_user/documents/12_Geneva/wg11/JCTVC−L1003−v34.zipJoint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG16 WP3 and ISO/IEC JTC1/SC29/WG11 12th Meeting: Geneva, J., 14-23. 2013 JCTVC-L1003_v34. doc, High Efficiency Video Coding (HEVC) text specification draft 10 (for FDIS & Last Call) http: //phenix. it-suparis. eu/jct/doc_end_user/documents/12_Geneva/wg11/JCTVC-L1003-v34. zip

しかしながら、従来技術に係る画像符号化方法または画像復号方法において、非効率的な処理が用いられる場合がある。 However, in the image encoding method or the image decoding method according to the related art, inefficient processing may be used.

そこで、本発明は、画像を効率的に符号化する画像符号化方法、または、画像を効率的に復号する画像復号方法を提供する。 Therefore, the present invention provides an image coding method for efficiently coding an image or an image decoding method for efficiently decoding an image.

本発明の一態様に係る画像符号化装置は、画像信号に対して算術符号化を行なう画像符号化方法であって、前記算術符号化に用いるコンテキスト、並びに区間を示すRange及び前記区間の最小位置を示すLow位置の少なくとも何れかを導出するための情報を符号化する符号化ステップと、前記画像信号の算術符号化開始時に、前記情報に基づき前記算術符号化の初期化を行う初期化ステップとを含む。 An image coding apparatus according to an aspect of the present invention is an image coding method for performing arithmetic coding on an image signal, wherein a context used for the arithmetic coding, a Range indicating a section, and a minimum position of the section. A coding step for coding information for deriving at least any one of the Low positions indicating the following, and an initialization step for initializing the arithmetic coding based on the information at the start of the arithmetic coding of the image signal. including.

また、本発明の一態様に係る画像復号方法は、画像を符号化して生成されるビットストリームに対して算術復号を行なう画像復号方法であって、前記算術復号に用いるコンテキスト、並びに区間を示すRange及び前記区間の最小位置を示すLow位置の少なくとも何れかを導出するための情報を復号する復号ステップと、前記ビットストリームの算術復号開始時に、前記情報に基づき前記算術復号の初期化を行う初期化ステップとを含む。 An image decoding method according to an aspect of the present invention is an image decoding method for performing arithmetic decoding on a bitstream generated by encoding an image, and is a Range indicating a context and a section used for the arithmetic decoding. And a decoding step of decoding information for deriving at least one of a Low position indicating the minimum position of the section, and an initialization for initializing the arithmetic decoding based on the information at the start of the arithmetic decoding of the bitstream. And steps.

なお、これらの全般的または具体的な態様は、システム、方法、集積回路、コンピュータプログラムまたはコンピュータ読み取り可能なCD−ROMなどの記録媒体で実現されてもよく、システム、方法、集積回路、コンピュータプログラムおよび記録媒体の任意な組み合わせで実現されてもよい。 Note that these general or specific aspects may be realized by a recording medium such as a system, a method, an integrated circuit, a computer program or a computer-readable CD-ROM, and the system, the method, the integrated circuit, the computer program. It may be realized by any combination of the recording medium and the recording medium.

本発明の画像符号化方法及び画像復号方法は、画像を効率的に符号化または復号することができる。 The image encoding method and the image decoding method of the present invention can efficiently encode or decode an image.

実施の形態1に係る画像符号化装置のブロック図である。3 is a block diagram of an image coding apparatus according to Embodiment 1. FIG. 実施の形態1に係る画像符号化処理のフローチャートである。7 is a flowchart of an image encoding process according to the first embodiment. 実施の形態1に係る可変長符号化部のブロック図である。4 is a block diagram of a variable length coding unit according to the first embodiment. FIG. 実施の形態1に係る可変長符号化処理のフローチャートである。6 is a flowchart of a variable length coding process according to the first embodiment. 実施の形態1に係るコンテキスト初期値設定処理のフローチャートである。5 is a flowchart of a context initial value setting process according to the first embodiment. 実施の形態1に係るコンテキストインデックスの一例を示す図である。FIG. 6 is a diagram showing an example of a context index according to the first embodiment. 実施の形態1に係る算術符号化器初期値設定処理のフローチャートである。5 is a flowchart of arithmetic encoder initial value setting processing according to the first embodiment. 実施の形態1に係るコンテキスト格納処理のフローチャートである。5 is a flowchart of context storage processing according to the first embodiment. 実施の形態1に係る算術符号化器データ格納処理のフローチャートである。5 is a flowchart of arithmetic encoder data storage processing according to the first embodiment. 実施の形態1に係るコンテキスト、Range及びLow位置の初期値に関するシンタックスを示す図である。FIG. 6 is a diagram showing syntax related to initial values of context, Range and Low positions according to the first embodiment. 実施の形態2に係る画像復号装置のブロック図である。7 is a block diagram of an image decoding device according to Embodiment 2. FIG. 実施の形態2に係る画像復号処理のフローチャートである。9 is a flowchart of image decoding processing according to the second embodiment. 実施の形態2に係る可変長復号部のブロック図である。FIG. 6 is a block diagram of a variable length decoding unit according to the second embodiment. 実施の形態2に係る可変長復号処理のフローチャートである。9 is a flowchart of a variable length decoding process according to the second embodiment. 実施の形態2に係るコンテキスト初期値設定処理のフローチャートである。9 is a flowchart of a context initial value setting process according to the second embodiment. 実施の形態2に係る算術復号器初期値設定処理のフローチャートである。7 is a flowchart of arithmetic decoder initial value setting processing according to the second embodiment. コンテンツ配信サービスを実現するコンテンツ供給システムの全体構成図である。1 is an overall configuration diagram of a content supply system that realizes a content distribution service. デジタル放送用システムの全体構成図である。1 is an overall configuration diagram of a digital broadcasting system. テレビの構成例を示すブロック図である。It is a block diagram which shows the structural example of a television. 光ディスクである記録メディアに情報の読み書きを行う情報再生/記録部の構成例を示すブロック図である。FIG. 3 is a block diagram showing a configuration example of an information reproducing/recording unit that reads and writes information from and on a recording medium that is an optical disc. 光ディスクである記録メディアの構造例を示す図である。It is a figure which shows the structural example of the recording medium which is an optical disk. 携帯電話の一例を示す図である。It is a figure which shows an example of a mobile telephone. 携帯電話の構成例を示すブロック図である。It is a block diagram which shows the structural example of a mobile telephone. 多重化データの構成を示す図である。It is a figure which shows the structure of multiplexed data. 各ストリームが多重化データにおいてどのように多重化されているかを模式的に示す図である。It is a figure which shows typically how each stream was multiplexed in the multiplexed data. PESパケット列に、ビデオストリームがどのように格納されるかを更に詳しく示した図である。It is a figure which showed in more detail how a video stream is stored in a PES packet sequence. 多重化データにおけるTSパケットとソースパケットの構造を示す図である。It is a figure which shows the structure of the TS packet and source packet in multiplexed data. PMTのデータ構成を示す図である。It is a figure which shows the data structure of PMT. 多重化データ情報の内部構成を示す図である。It is a figure which shows the internal structure of multiplexed data information. ストリーム属性情報の内部構成を示す図である。It is a figure which shows the internal structure of stream attribute information. 映像データを識別するステップを示す図である。It is a figure which shows the step which identifies video data. 各実施の形態の動画像符号化方法および動画像復号化方法を実現する集積回路の構成例を示すブロック図である。It is a block diagram which shows the structural example of the integrated circuit which implement|achieves the moving image encoding method and moving image decoding method of each embodiment. 駆動周波数を切り替える構成を示す図である。It is a figure which shows the structure which switches a drive frequency. 映像データを識別し、駆動周波数を切り替えるステップを示す図である。It is a figure which shows the step which identifies video data and switches a drive frequency. 映像データの規格と駆動周波数を対応づけたルックアップテーブルの一例を示す図である。It is a figure which shows an example of the look-up table which matched the standard and drive frequency of video data. 信号処理部のモジュールを共有化する構成の一例を示す図である。It is a figure which shows an example of the structure which shares the module of a signal processing part. 信号処理部のモジュールを共有化する構成の他の一例を示す図である。It is a figure which shows another example of the structure which shares the module of a signal processing part.

(本発明の基礎となった知見)
本発明者は、「背景技術」の欄において記載した、画像を符号化する画像符号化装置、または画像を復号する画像復号装置に関して、以下の問題が生じることを見出した。
(Findings that form the basis of the present invention)
The present inventor has found that the following problems occur in the image coding apparatus that codes an image or the image decoding apparatus that decodes an image described in the “Background Art” section.

近年、デジタル映像機器の技術進歩が著しく、ビデオカメラ又はテレビチューナから入力された映像信号(時系列順に並んだ複数のピクチャ)が圧縮符号化され、得られたデータがDVD又はハードディスク等の記録メディアに記録される機会が増えている。画像符号化規格としてはH.264/AVC(MPEG−4 AVC)があるが、次世代の標準規格としてHEVC(High Efficiency Video Coding)規格(非特許文献1)が規格化された。 2. Description of the Related Art In recent years, technological advances in digital video equipment have been remarkable, and video signals (a plurality of pictures arranged in chronological order) input from a video camera or a TV tuner are compression-coded, and the obtained data is a recording medium such as a DVD or a hard disk. The chances of being recorded in are increasing. The image encoding standard is H.264. Although there is H.264/AVC (MPEG-4 AVC), the HEVC (High Efficiency Video Coding) standard (Non-Patent Document 1) has been standardized as a next-generation standard.

HEVC規格(非特許文献1)における画像符号化方法は、符号化画像を予測するステップと、予測画像と符号化対象画像との差分を求めるステップと、差分画像を周波数係数に変換するステップと、周波数係数及び予測情報を算術符号化するステップとを含む。算術符号化では、画像符号化装置は、まず符号化対象信号を多値信号から二値信号(0と1の信号)に変換(二値化)し、二値信号(bin)を算術符号化することで符号列を生成する。また、算術符号化では、画像符号化装置は、符号化対象の信号毎にコンテキストを選択し、コンテキストに応じたシンボル発生確率を基に区間を設定して符号列を送出する。また、画像符号化装置は、符号化された対象信号の値に応じてコンテキストのシンボル発生確率を更新するとともに、算術符号化器内の区間の幅を示すRangeと区間の下の位置を示すLow位置とを更新していく。 An image encoding method according to the HEVC standard (Non-Patent Document 1) includes a step of predicting an encoded image, a step of obtaining a difference between a predicted image and an image to be encoded, and a step of converting the difference image into a frequency coefficient. Arithmetically encoding the frequency coefficient and the prediction information. In arithmetic coding, an image coding apparatus first converts (binarizes) a signal to be coded from a multi-valued signal into a binary signal (a signal of 0 and 1) and arithmetically codes a binary signal (bin). By doing so, a code string is generated. In arithmetic coding, the image coding apparatus selects a context for each signal to be coded, sets a section based on the symbol occurrence probability according to the context, and sends the code string. Further, the image coding apparatus updates the symbol occurrence probability of the context according to the value of the coded target signal, and at the same time, indicates the width of the section in the arithmetic encoder and the Low indicating the position below the section. Position and update.

ここで、算術符号化では前述したとおりコンテキスト、Range、及びLow位置の更新が逐次必要であるため、並列処理が困難である。近年、画像のサイズが4K又は8Kという風に大きくなってきており、また、マルチコアなプロセッサが多く存在してきたため、処理を分散して高速処理を実現したいという要望が多かった。HEVC規格ではそれを解決する手段としてスライス分割、タイル分割、及びWPP(ウェーブフロント・パラレル・プロセッシング)のツールがある。スライス分割及びタイル分割はスライス又はタイル間のコンテキスト、Range及びLow位置の依存関係を排除することによって並列処理を可能にするツールである。 Here, in the arithmetic coding, parallel processing is difficult because the context, the Range, and the Low position are sequentially updated as described above. In recent years, the size of an image has increased to 4K or 8K, and since there are many multi-core processors, there are many demands for distributed processing to realize high-speed processing. In the HEVC standard, there are tools for slicing, tile partitioning, and WPP (wavefront parallel processing) as means for solving this. Slice division and tile division are tools that enable parallel processing by eliminating the context, slice and tile position dependency between slices or tiles.

また、WPPは符号ブロックが画面左端の場合に右上の符号ブロックの符号化後のコンテキストをコピーして使用するツールである。WPPでは、画面左端の符号ブロックは右上の符号ブロックの符号化後に符号化をスタートできる。これにより、コンテキストの学習効率と並列処理とを両立できる。また、非独立スライスセグメントというツールもあり、これはコンテキストの依存関係を残したまま、スライス分割を行うツールである。 WPP is a tool for copying the coded context of the upper right code block and using it when the code block is at the left end of the screen. In WPP, the code block at the left end of the screen can start encoding after the code block at the upper right is encoded. Thereby, the learning efficiency of context and parallel processing can be compatible. There is also a tool called non-independent slice segment, which is a tool for slice division while leaving context dependency.

しかしながら、スライス分割及びタイル分割ではコンテキストの依存関係を排除するため、前に学習したシンボル発生確率を利用できない。これにより、符号化効率が低下してしまうという課題があった。また、WPPではRange及びLow位置は符号ブロック列毎に独立に更新しなければならないため、符号ブロック列の終端(画面右端ブロック)で算術符号化器内部のビット吐き出し処理が必要である。これにより、符号化効率が低下するという課題があった。 However, since the slice division and the tile division eliminate the context dependency, the previously learned symbol occurrence probability cannot be used. As a result, there is a problem that the coding efficiency is reduced. Further, in WPP, the Range and Low positions must be updated independently for each code block string, and therefore the bit discharge process inside the arithmetic encoder is required at the end of the code block string (the right end block of the screen). As a result, there is a problem that the coding efficiency is reduced.

本発明の一態様に係る画像符号化方法は、画像信号に対して算術符号化を行なう画像符号化方法であって、前記算術符号化に用いるコンテキスト、並びに区間を示すRange及び前記区間の最小位置を示すLow位置の少なくとも何れかを導出するための情報を符号化する符号化ステップと、前記画像信号の算術符号化開始時に、前記情報に基づき前記算術符号化の初期化を行う初期化ステップとを含む。 An image coding method according to an aspect of the present invention is an image coding method that performs arithmetic coding on an image signal, and includes a context used for the arithmetic coding, a range indicating a section, and a minimum position of the section. A coding step for coding information for deriving at least any one of the Low positions indicating the following, and an initialization step for initializing the arithmetic coding based on the information at the start of the arithmetic coding of the image signal. including.

例えば、前記情報は、コンテキストの複数の初期値のセットのうちいずれかを指定するインデックスを含み、前記初期化ステップでは、前記インデックスで指定される初期値のセットを用いて前記初期化を行ってもよい。 For example, the information includes an index that specifies one of a plurality of sets of initial values of the context, and the initialization step uses the set of initial values specified by the index to perform the initialization. Good.

例えば、前記情報は、予め定められた固定値により初期値を設定するモードと、符号列内の情報を基に初期値を設定するモードとを切り替えるためのフラグを含み、前記初期化ステップでは、前記フラグで指定されるモードを用いて前記初期化を行ってもよい。 For example, the information includes a flag for switching between a mode for setting an initial value by a predetermined fixed value and a mode for setting an initial value based on the information in the code string, and in the initialization step, The initialization may be performed using a mode designated by the flag.

また、本発明の一態様に係る画像復号方法は、画像を符号化して生成されるビットストリームに対して算術復号を行なう画像復号方法であって、前記算術復号に用いるコンテキスト、並びに区間を示すRange及び前記区間の最小位置を示すLow位置の少なくとも何れかを導出するための情報を復号する復号ステップと、前記ビットストリームの算術復号開始時に、前記情報に基づき前記算術復号の初期化を行う初期化ステップとを含む。 An image decoding method according to an aspect of the present invention is an image decoding method for performing arithmetic decoding on a bitstream generated by encoding an image, and is a Range indicating a context and a section used for the arithmetic decoding. And a decoding step of decoding information for deriving at least one of a Low position indicating the minimum position of the section, and an initialization for initializing the arithmetic decoding based on the information at the start of the arithmetic decoding of the bitstream. And steps.

例えば、前記情報は、コンテキストの複数の初期値のセットのうちいずれかを指定するインデックスを含み、前記初期化ステップでは、前記インデックスで指定される初期値のセットを用いて前記初期化を行ってもよい。 For example, the information includes an index that specifies one of a plurality of sets of initial values of the context, and the initialization step uses the set of initial values specified by the index to perform the initialization. Good.

例えば、前記情報は、予め定められた固定値により初期値を設定するモードと、符号列内の情報を基に初期値を設定するモードとを切り替えるためのフラグを含み、前記初期化ステップでは、前記フラグで指定されるモードを用いて前記初期化を行ってもよい。 For example, the information includes a flag for switching between a mode for setting an initial value by a predetermined fixed value and a mode for setting an initial value based on the information in the code string, and in the initialization step, The initialization may be performed using a mode designated by the flag.

また、本発明の一態様に係る画像符号化装置は、画像信号に対して算術符号化を行なう画像符号化装置であって、前記算術符号化に用いるコンテキスト、並びに区間を示すRange及び前記区間の最小位置を示すLow位置の少なくとも何れかを導出するための情報を符号化する符号化部と、前記画像信号の算術符号化開始時に、前記情報に基づき前記算術符号化の初期化を行う初期化部とを備える。 An image coding apparatus according to an aspect of the present invention is an image coding apparatus that performs arithmetic coding on an image signal, and includes a context used for the arithmetic coding, a Range indicating a section, and a section indicating the section. An encoding unit that encodes information for deriving at least one of a Low position indicating a minimum position, and an initialization unit that initializes the arithmetic coding based on the information when the arithmetic coding of the image signal is started. And a section.

また、本発明の一態様に係る画像復号装置は、画像を符号化して生成されるビットストリームに対して算術復号を行なう画像復号装置であって、前記算術復号に用いるコンテキスト、並びに区間を示すRange及び前記区間の最小位置を示すLow位置の少なくとも何れかを導出するための情報を復号する復号部と、前記ビットストリームの算術復号開始時に、前記情報に基づき前記算術復号の初期化を行う初期化部とを備える。 An image decoding device according to an aspect of the present invention is an image decoding device that performs arithmetic decoding on a bitstream generated by encoding an image, and is a Range indicating a context and a section used for the arithmetic decoding. And a decoding unit for decoding information for deriving at least one of a Low position indicating the minimum position of the section, and an initialization for initializing the arithmetic decoding based on the information when the arithmetic decoding of the bitstream is started. And a section.

なお、これらの全般的または具体的な態様は、システム、方法、集積回路、コンピュータプログラムまたはコンピュータ読み取り可能なCD−ROMなどの記録媒体で実現されてもよく、システム、方法、集積回路、コンピュータプログラムおよび記録媒体の任意な組み合わせで実現されてもよい。 Note that these general or specific aspects may be realized by a recording medium such as a system, a method, an integrated circuit, a computer program or a computer-readable CD-ROM, and the system, the method, the integrated circuit, the computer program. It may be realized by any combination of the recording medium and the recording medium.

以下、実施の形態について、図面を参照しながら具体的に説明する。なお、以下で説明する実施の形態は、いずれも包括的または具体的な例を示すものである。以下の実施の形態で示される数値、形状、材料、構成要素、構成要素の配置位置及び接続形態、ステップ、ステップの順序などは、一例であり、本発明を限定する主旨ではない。 Hereinafter, embodiments will be specifically described with reference to the drawings. It should be noted that each of the embodiments described below shows a comprehensive or specific example. Numerical values, shapes, materials, constituent elements, arrangement positions and connection forms of constituent elements, steps, order of steps, and the like shown in the following embodiments are examples, and are not intended to limit the present invention.

(実施の形態1)
<全体構成>
図1は、本実施の形態における画像符号化装置100の構成を示すブロック図である。図1に示す画像符号化装置100は、符号ブロック分割部101と、減算部102と、変換部103と、可変長符号化部104と、逆変換部105と、加算部106と、フレームメモリ107と、予測部108とを備える。
(Embodiment 1)
<Overall structure>
FIG. 1 is a block diagram showing the configuration of image coding apparatus 100 according to the present embodiment. The image coding apparatus 100 shown in FIG. 1 includes a code block division unit 101, a subtraction unit 102, a conversion unit 103, a variable length coding unit 104, an inverse conversion unit 105, an addition unit 106, and a frame memory 107. And a prediction unit 108.

<動作(全体)>
次に、図2を参照しつつ、符号化処理全体のフローについて説明する。
<Operation (overall)>
Next, the flow of the entire encoding process will be described with reference to FIG.

まず、符号ブロック分割部101は、入力画像を符号ブロックに分割し、符号ブロックを順次、減算部102及び予測部108に出力する(S111)。 First, the code block division unit 101 divides the input image into code blocks, and sequentially outputs the code blocks to the subtraction unit 102 and the prediction unit 108 (S111).

次に、予測部108は予測ブロックを生成する(S112)。減算部102は符号ブロックから予測ブロックを減算することで差分ブロックを生成する(S113)。変換部103は、差分ブロックを周波数変換することで量子化係数を生成する(S114)。逆変換部105は、量子化係数を逆周波数変換することで復号差分ブロックを生成する(S115)。 Next, the prediction unit 108 generates a prediction block (S112). The subtraction unit 102 generates a difference block by subtracting the prediction block from the code block (S113). The conversion unit 103 frequency-converts the difference block to generate quantized coefficients (S114). The inverse transform unit 105 generates a decoded difference block by performing inverse frequency transform on the quantized coefficient (S115).

加算部106は、予測ブロックと復号差分ブロックとを加算することで復号ブロックを生成する(S116)。この復号ブロックは、フレームメモリ107に格納され、予測部108による予測処理に用いられる。また、可変長符号化部104は、量子化係数を可変長符号化することで符号列を生成する(S117)。また、画像符号化装置100は、符号化対象画像内の全符号ブロックの符号化が完了するまでS112からS117を繰り返す(S118)。 The addition unit 106 generates a decoded block by adding the prediction block and the decoded difference block (S116). This decoded block is stored in the frame memory 107 and used for the prediction process by the prediction unit 108. Also, the variable length coding unit 104 variable length codes the quantized coefficient to generate a code string (S117). In addition, the image coding apparatus 100 repeats S112 to S117 until the coding of all code blocks in the coding target image is completed (S118).

以降、特徴的な可変長符号化部104について詳細を説明する。 Hereinafter, the characteristic variable length coding unit 104 will be described in detail.

<可変長符号化部104の構成>
図3は、可変長符号化部104の構成を示すブロック図である。可変長符号化部104は、二値化部111と、算術符号化部112と、コンテキスト格納部113と、コンテキスト初期値設定部114と、算術符号化器データ格納部115と、算術符号化器初期値設定部116と、ゴロム符号化部117とを備える。
<Structure of variable length coding unit 104>
FIG. 3 is a block diagram showing the configuration of the variable length coding unit 104. The variable length coding unit 104 includes a binarization unit 111, an arithmetic coding unit 112, a context storage unit 113, a context initial value setting unit 114, an arithmetic encoder data storage unit 115, and an arithmetic encoder. An initial value setting unit 116 and a Golomb coding unit 117 are provided.

算術符号化は、符号化対象となる二値信号における各ビットの発生確率(コンテキスト値)を用いた符号化であり、確率値で区間を分割及び更新することで信号の高圧縮化を実現する。例えば、二値信号のあるビットが「0」となる確率が0.7であり、「1」となる確率が0.3の場合、「0」が符号化されると、ビットの符号化に用いられた当該区間の下から70%の部分が新しい区間に設定される。また、「1」が符号化されると、当該区間の上から30%の部分が、新しい区間に設定される。算術符号化では、この区間更新が繰り返されることで、区間は順次短くなり、最終区間に含まれる実数値の二進数表現を用いて、算術符号化部112の出力信号が生成される。 Arithmetic encoding is encoding using the occurrence probability (context value) of each bit in a binary signal to be encoded, and realizes high compression of a signal by dividing and updating an interval with a probability value. .. For example, when the probability that a certain bit of a binary signal is "0" is 0.7 and the probability that it is "1" is 0.3, if "0" is encoded, the bit is encoded. A 70% portion from the bottom of the used section is set to a new section. When "1" is encoded, the upper 30% of the section is set as a new section. In arithmetic coding, the intervals are sequentially shortened by repeating this interval update, and the output signal of the arithmetic coding unit 112 is generated using the binary representation of the real value included in the final interval.

<可変長符号化処理>
次に、図4を参照しつつ、可変長符号化処理(S117)について説明する。
<Variable length coding processing>
Next, the variable length coding process (S117) will be described with reference to FIG.

まず、コンテキスト初期値設定部114は、算術符号化時に使用する確率に対応するコンテキストの初期値を設定する(S131)。算術符号化器初期値設定部116は、算術符号化時に使用する区間を示すRangeの初期値と区間の最小位置を示すLow位置の初期値とを設定する(S132)。 First, the context initial value setting unit 114 sets the initial value of the context corresponding to the probability of use in arithmetic coding (S131). The arithmetic encoder initial value setting unit 116 sets an initial value of Range indicating a section used during arithmetic encoding and an initial value of a Low position indicating a minimum position of the section (S132).

次に二値化部111は、符号化するシンタックス要素を二値化することで二値信号を生成する(S133)。算術符号化部112は二値信号を算術符号化する(S134)。算術符号化部112は、算術符号化において、Range、Low位置及びコンテキストの更新、並びに正規化(ビット送出)を行う。 Next, the binarizing unit 111 binarizes the syntax element to be encoded to generate a binary signal (S133). The arithmetic coding unit 112 arithmetically codes the binary signal (S134). In the arithmetic coding, the arithmetic coding unit 112 updates the Range, the Low position and the context, and normalizes (transmits bits).

次に、コンテキスト格納部113及び算術符号化器データ格納部115は、更新されたコンテキスト、Range及びLow位置を格納する(S135及びS136)。 Next, the context storage unit 113 and the arithmetic encoder data storage unit 115 store the updated context, Range and Low position (S135 and S136).

可変長符号化部104は、符号ブロック内の全シンタックス要素の符号化が完了するまでS131からS136を繰り返す(S137)。 The variable-length coding unit 104 repeats S131 to S136 until coding of all syntax elements in the code block is completed (S137).

以降、特徴的なコンテキスト初期値設定処理(S131)、算術符号化器初期値設定処理(S132)、コンテキスト格納処理(S135)、及び算術符号化器データ格納処理(S136)について詳細を説明する。 The characteristic context initial value setting process (S131), arithmetic coder initial value setting process (S132), context storing process (S135), and arithmetic coder data storing process (S136) will be described in detail below.

<コンテキスト初期値設定処理>
図5を参照しつつ、コンテキスト初期値設定処理(S131)について説明する。
<Context initial value setting process>
The context initial value setting process (S131) will be described with reference to FIG.

まず、コンテキスト初期値設定部114は、処理対象のシンタックス要素が、独立スライスセグメントまたはタイルの最初のシンタックス要素である場合(S141でYes)、コンテキストインデックスを設定する(S142)。このコンテキストインデックスはゴロム符号化部117によって符号化される(S143)。コンテキスト初期値設定部114は、そのコンテキストインデックスに応じた値をコンテキスト初期値として算術符号化部112に設定する(S144)。 First, if the syntax element to be processed is the first syntax element of the independent slice segment or tile (Yes in S141), the context initial value setting unit 114 sets a context index (S142). This context index is encoded by the Golomb encoding unit 117 (S143). The context initial value setting unit 114 sets a value corresponding to the context index in the arithmetic coding unit 112 as a context initial value (S144).

ここで独立スライスセグメントとは前述した非独立スライスセグメントではないスライスセグメントであり、先に符号化したスライスセグメントとコンテキストの依存関係が無いスライスセグメントである。コンテキストインデックスとは、いくつか設けられているコンテキスト群の初期値のセットのうち、そのどれを使うかを示す情報である。 Here, the independent slice segment is a slice segment that is not the above-described non-independent slice segment and has no context dependency relationship with the previously encoded slice segment. The context index is information indicating which of the set of initial values of the provided context groups is used.

図6は、コンテキストインデックスの一例を示す図である。この例ではコンテキストインデックスが0の場合はコンテキスト番号が「0」、「1」、「2」のコンテキストには初期値「153」、「200」、「185」が使用される。コンテキストの数値により、MPS(発生確率が高いシンボル(0または1))の情報(HEVC規格のvalMps)と、発生確率を導出するための番号(HEVC規格のpStateIdx)とを含む情報が示される。 FIG. 6 is a diagram showing an example of the context index. In this example, when the context index is 0, initial values “153”, “200”, and “185” are used for contexts having context numbers “0”, “1”, and “2”. The value of the context indicates information including MPS (symbol (0 or 1) with high occurrence probability) (HEVC standard valMps) and a number for deriving the occurrence probability (HEVC standard pStateIdx).

コンテキスト初期値設定部114は、コンテキストインデックスを入力画像の特徴等を用いて決定する。また、コンテキスト初期値設定部114は、暫定的に1度符号化を行い、効率のよいコンテキストをある程度見極めてからコンテキストインデックスを決定してもよい。 The context initial value setting unit 114 determines the context index using the characteristics of the input image and the like. Also, the context initial value setting unit 114 may provisionally perform the once encoding, and determine the context index based on the degree of efficient context to some extent.

一方、処理対象のシンタックス要素が、WPP時の画面左端符号ブロックの最初のシンタックス要素である場合(S145でYes)、または非独立スライスセグメントの最初のシンタックス要素である場合(S146でYes)、コンテキスト格納部113に格納されている格納コンテキストをコンテキスト初期値として算術符号化部112に設定する(S147)。なお、コンテキスト格納処理については後述する。 On the other hand, if the syntax element to be processed is the first syntax element of the screen leftmost code block at the time of WPP (Yes in S145), or the first syntax element of the non-independent slice segment (Yes in S146). ), the storage context stored in the context storage unit 113 is set in the arithmetic coding unit 112 as a context initial value (S147). The context storage process will be described later.

<算術符号化器初期値設定処理>
図7を参照しつつ、算術符号化器初期値設定処理(S132)について説明する。
<Arithmetic encoder initial value setting process>
The arithmetic coder initial value setting process (S132) will be described with reference to FIG.

処理対象のシンタックス要素が、スライスセグメントまたはタイルの最初のシンタックス要素である場合(S151でYes)、またはWPP時の画面左端符号ブロックの最初のシンタックス要素の場合(S152でYes)、算術符号化器初期値設定部116は、算術エンジン初期化タイプフラグを設定し(S153)、算術エンジン初期化タイプフラグのビットを符号列に送出する(S154)。ここでスライスセグメントは独立及び非独立両方のスライスセグメントを含む。また、算術エンジン初期化タイプフラグは、HEVCの方法と、格納Range及び格納Low位置をコピーして使用する方法とを切り替えるためのフラグである。例えば、算術符号化器初期値設定部116は、算術エンジン初期化タイプフラグを、スライス又はタイルの分割数及び入力画像の特徴等を用いて決定する。なお、算術エンジン初期化タイプフラグを、符号化を実施するユーザが任意に設定してもよい。 Arithmetic if the syntax element to be processed is the first syntax element of the slice segment or tile (Yes in S151) or the first syntax element of the leftmost code block of the screen at WPP (Yes in S152) The encoder initial value setting unit 116 sets the arithmetic engine initialization type flag (S153) and sends the bits of the arithmetic engine initialization type flag to the code string (S154). Here, the slice segment includes both independent and non-independent slice segments. The arithmetic engine initialization type flag is a flag for switching between the HEVC method and the method of copying and using the stored Range and stored Low positions. For example, the arithmetic coder initial value setting unit 116 determines the arithmetic engine initialization type flag using the number of slices or tile divisions and the characteristics of the input image. The arithmetic engine initialization type flag may be arbitrarily set by the user who performs the encoding.

次に、算術エンジン初期化タイプフラグが「0」の場合(S155でYes)、算術符号化器初期値設定部116は、「510」をRange初期値として、「0」をLow位置初期値として算術符号化部112に設定する(S156及びS157)。つまり、算術符号化器初期値設定部116は、固定値をRange及びLow位置の初期値に設定する。 Next, when the arithmetic engine initialization type flag is “0” (Yes in S155), the arithmetic encoder initial value setting unit 116 sets “510” as the Range initial value and “0” as the Low position initial value. It is set in the arithmetic coding unit 112 (S156 and S157). That is, the arithmetic encoder initial value setting unit 116 sets the fixed value to the initial value of the Range and Low positions.

一方、算術エンジン初期化タイプフラグが「1」の場合(S155でNo)、ゴロム符号化部117は、算術符号化器データ格納部115に格納されている格納RangeをRange初期値として、算術符号化器データ格納部115に格納されている格納Low位置をLow位置初期値としてゴロム符号化を行う(S158及びS159)。なお、算術符号化器データ格納処理については後述する。 On the other hand, when the arithmetic engine initialization type flag is “1” (No in S155), the Golomb coding unit 117 sets the stored Range stored in the arithmetic coder data storage unit 115 as the Range initial value and sets the arithmetic code. Golomb coding is performed using the stored Low position stored in the digitizer data storage unit 115 as the Low position initial value (S158 and S159). The arithmetic encoder data storage processing will be described later.

次に、算術符号化器初期値設定部116は、上記のRange初期値及びLow位置初期値を算術符号化部112に設定する(S160及びS161)。 Next, the arithmetic encoder initial value setting unit 116 sets the Range initial value and the Low position initial value in the arithmetic encoder 112 (S160 and S161).

<コンテキスト格納処理>
図8を参照しつつ、コンテキスト格納処理(S135)について説明する。
<Context storage processing>
The context storing process (S135) will be described with reference to FIG.

処理対象のシンタックス要素が、WPP時の左端から2番目の符号ブロックの最後のシンタックス要素である場合(S161でYes)、またはスライスセグメントの最後のシンタックス要素である場合(S162でYes)、コンテキスト格納部113は、更新されたコンテキストを格納コンテキストにコピー(退避)する(S163)。これはWPP時の次の符号ブロック列の先頭ブロック(左端ブロック)、または次の非独立スライスセグメントの先頭でこの格納コンテキストを使用するためである。この格納コンテキストは、図5のS147でコンテキスト初期値として使用される。 When the syntax element to be processed is the last syntax element of the second code block from the left end in WPP (Yes in S161), or the last syntax element of the slice segment (Yes in S162) The context storage unit 113 copies (saves) the updated context to the storage context (S163). This is because this storage context is used at the head block (left end block) of the next code block sequence at the time of WPP or the head of the next non-independent slice segment. This storage context is used as a context initial value in S147 of FIG.

<算術符号化器データ格納処理>
図9を参照しつつ、算術符号化器データ格納処理(S136)について説明する。
<Arithmetic encoder data storage processing>
The arithmetic encoder data storage processing (S136) will be described with reference to FIG.

処理対象のシンタックス要素が、スライスセグメントまたはタイルの最後のシンタックス要素である場合(S171でYes)、またはWPP時の右端の符号ブロックの最後のシンタックス要素である場合(S172でYes)であって、かつ、算術エンジン初期化タイプフラグが0の場合(S173でYes)、算術符号化器データ格納部115は、算術符号化器内に残ったビットを吐き出す送出処理を行う(S174)。また、算術エンジン初期化タイプフラグが0ではない場合(1の場合)(S173でNo)、算術符号化器データ格納部115は、更新されたRange及びLow位置を格納Range及び格納Low位置にコピー(退避)する(S175及びS176)。これは次のスライスセグメントの先頭またはWPP時の次の符号ブロック列の先頭ブロック(左端ブロック)で格納Range及び格納Low位置を使用するためである。この格納Range及び格納Low位置は、図7のS158、S159、S160及びS161でRange初期値及びLow位置初期値として使用される。 When the syntax element to be processed is the last syntax element of the slice segment or tile (Yes in S171), or the last syntax element of the rightmost code block in WPP (Yes in S172). If there is and the arithmetic engine initialization type flag is 0 (Yes in S173), the arithmetic encoder data storage unit 115 performs a transmission process for ejecting the bits remaining in the arithmetic encoder (S174). When the arithmetic engine initialization type flag is not 0 (1) (No in S173), the arithmetic encoder data storage unit 115 copies the updated Range and Low positions to the stored Range and stored Low positions. (Evacuation) (S175 and S176). This is because the storage Range and storage Low positions are used at the head of the next slice segment or the head block (left end block) of the next code block sequence at the time of WPP. The stored Range and the stored Low position are used as the Range initial value and the Low position initial value in S158, S159, S160, and S161 of FIG.

<効果>
以上、本実施の形態によれば、Range及びLow位置を符号化することにより、スライス分割、タイル分割又はWPPを用いた場合の符号化効率の低下を抑制することができる。より具体的には、Range及びLow位置を符号化することにより、次に符号化するスライス、タイル又は符号ブロック列に対して算術符号化器の内部状態を引き続き使用することができる。これにより、スライス、タイル又は符号ブロック列終端の内部ビット吐き出し処理が不要となる。内部ビットを吐き出す処理を無くすことによって発生符号量を減らすことができ、スライス、タイル又は符号ブロック列が多い場合でも符号化効率の低下を抑制することができる。
<Effect>
As described above, according to the present embodiment, by encoding the Range and Low positions, it is possible to suppress a decrease in encoding efficiency when slice division, tile division, or WPP is used. More specifically, encoding the Range and Low positions allows the internal state of the arithmetic encoder to continue to be used for the next slice, tile or code block sequence to be encoded. As a result, the internal bit discharging process at the end of the slice, tile, or code block sequence becomes unnecessary. It is possible to reduce the amount of generated codes by eliminating the process of discharging internal bits, and it is possible to suppress the deterioration of coding efficiency even when there are many slices, tiles, or code block sequences.

また、コンテキスト初期値の種類を増やすことにより、スライス分割、タイル分割又はWPPを用いた場合の符号化効率の低下を抑制することができる。より具体的には、コンテキストインデックスに応じてコンテキストの初期値にバリエーションを持たせている。入力画像に応じてコンテキストインデックスを切り替えることにより、より画像に合致したシンボル発生確率を使用できる。これにより、スライス、タイル又は符号ブロック列が多い場合であり、コンテキストの学習効率を上げられない場合でも発生符号量を抑えることができる。 In addition, by increasing the types of context initial values, it is possible to suppress a decrease in coding efficiency when slice division, tile division, or WPP is used. More specifically, the initial value of the context has variations according to the context index. By switching the context index according to the input image, it is possible to use the symbol occurrence probability that better matches the image. As a result, the generated code amount can be suppressed even when the number of slices, tiles, or code block sequences is large, and the context learning efficiency cannot be improved.

また、算術エンジン初期化タイプフラグによってRange及びLow位置の初期値設定方法を切り替え可能にし、発生符号量の小さい方法を状況に応じて選択可能にしている。これにより、算術符号化器内部のビット吐き出し処理による発生符号量とRange及びLow位置を符号化する場合の発生符号量とのうち、発生符号量が小さい方を選択することができるので、より符号化効率を向上させることが可能となる。 The arithmetic engine initialization type flag makes it possible to switch the method for setting the initial values of the Range and Low positions, and it is possible to select a method with a small generated code amount according to the situation. This makes it possible to select one of the generated code amount due to the bit discharge processing inside the arithmetic encoder and the generated code amount when encoding the Range and Low positions, whichever has the smaller generated code amount. It is possible to improve the conversion efficiency.

図10にコンテキスト、Range及びLow位置の初期値に関するシンタックスを示す。ここでfirst_syntax_element_in_independent_sliceは、対象シンタックス要素が独立スライスセグメント時の先頭シンタックス要素である場合に1となるフラグである。first_syntax_element_in_tileは、対象シンタックス要素がタイルの先頭シンタックス要素の場合に1となるフラグである。cabac_context_indexはコンテキストインデックスを示す。first_syntax_element_in_slice_segmentは、対象シンタックス要素が独立/非独立を含めたスライスセグメントの先頭シンタックス要素の場合に1となるフラグである。first_syntax_element_in_left_block_WPPは、対象シンタックス要素がWPP時の画面左端符号ブロックの先頭シンタックス要素の場合に1となるフラグである。init_cabac_engine_type_flagは算術エンジン初期化タイプフラグである。init_cabac_engine_rangeはRange初期値を示す。init_cabac_engine_lowはLow位置初期値を示す。Descriptorは符号列の記述子を示し、ueは符号なしゴロム符号を示し、uは符号なし整数値を示す。括弧内の数値はビット量を示し、vは可変長であることを示す。 FIG. 10 shows the syntax regarding the initial values of the context, the Range and the Low position. Here, first_syntax_element_in_independent_slice is a flag that becomes 1 when the target syntax element is the first syntax element in the independent slice segment. first_syntax_element_in_tile is a flag that becomes 1 when the target syntax element is the head syntax element of the tile. cabac_context_index indicates a context index. first_syntax_element_in_slice_segment is a flag that becomes 1 when the target syntax element is the first syntax element of a slice segment including independent/non-independent. first_syntax_element_in_left_block_WPP is a flag that becomes 1 when the target syntax element is the head syntax element of the leftmost code block of the screen at the time of WPP. init_cabac_engine_type_flag is an arithmetic engine initialization type flag. init_cabac_engine_range indicates a Range initial value. init_cabac_engine_low indicates a low position initial value. Descriptor represents a code string descriptor, ue represents an unsigned Golomb code, and u represents an unsigned integer value. The numerical value in the parentheses indicates the bit amount, and v indicates the variable length.

なお、本実施の形態では、処理対象のシンタックス要素が、スライスセグメントまたはタイルの最初のシンタックス要素の場合、またはWPP時の画面左端符号ブロックの最初のシンタックス要素の場合に算術エンジン初期化タイプフラグを符号化しているが、算術エンジン初期化タイプフラグを、ピクチャ先頭で1回、もしくはシーケンス先頭で1回設定し、全スライス、全タイル、又は全符号ブロック列で算術エンジン初期化タイプフラグを共通に使用してもよい。そうすれば算術エンジン初期化タイプフラグの符号化回数を減らすことができるので符号量を削減することができる。 In the present embodiment, the arithmetic engine initialization is performed when the syntax element to be processed is the first syntax element of the slice segment or tile or the first syntax element of the leftmost code block of the screen at WPP. Although the type flag is encoded, the arithmetic engine initialization type flag is set once at the beginning of the picture or once at the beginning of the sequence, and the arithmetic engine initialization type flag is set for all slices, all tiles, or all code block strings. May be commonly used. By doing so, the number of times the arithmetic engine initialization type flag is coded can be reduced, so that the code amount can be reduced.

また、上記説明では、画像符号化装置100は、WPP時には右上の符号ブロックのコンテキストをコンテキスト初期値として使用しているが、その限りではなく、上の符号ブロック又は任意の場所の符号ブロックのコンテキストを使用してもよい。符号化対象の符号ブロックとの相関が高い符号ブロックのコンテキストを使用することによって符号化効率を向上させることができる。 Further, in the above description, the image coding apparatus 100 uses the context of the upper right code block as the context initial value at the time of WPP, but this is not the only option, and the context of the upper code block or the code block at an arbitrary location is used. May be used. The coding efficiency can be improved by using the context of the code block having a high correlation with the code block to be coded.

また、上記説明では、画像符号化装置100は、図5のS143、図6のS158及びS159でコンテキストインデックス、Range初期値及びLow位置初期値をゴロム符号化しているが、他の符号化方法を用いてもよく、例えば固定長で符号化してもよい。また、画像符号化装置100は、特定の値との差分を符号化してもよい。例えば、画像符号化装置100は、「510」からRange初期値を減算した数値を符号化してもよい。画像符号化装置100は、その減算の対象となる特定の値をピクチャ単位、スライス単位、又はタイル単位で設定しておいてもよいし、予測手段を用いてコンテキストインデックス、Range初期値、及びLow位置初期値を予測し、予測値を減算対象となる特定の値に設定してもよい。そうすることにより符号化するデータに偏りを持たせることができるので、発生頻度の高いデータを短い符号長で符号化することができる。 Further, in the above description, the image encoding apparatus 100 Golomb-encodes the context index, the Range initial value, and the Low position initial value in S143 of FIG. 5 and S158 and S159 of FIG. 6, but other encoding methods may be used. It may be used, for example, it may be encoded with a fixed length. Further, the image coding apparatus 100 may code the difference from a specific value. For example, the image coding apparatus 100 may code a numerical value obtained by subtracting the Range initial value from “510”. The image coding apparatus 100 may set a specific value to be subtracted in a picture unit, a slice unit, or a tile unit, or may use a prediction unit to obtain a context index, a Range initial value, and a Low. The position initial value may be predicted and the predicted value may be set to a specific value to be subtracted. By doing so, the data to be encoded can be biased, so that the data with high occurrence frequency can be encoded with a short code length.

また、上記説明では、画像符号化装置100は、WPP時又は非独立スライスセグメントの場合には格納コンテキストをコンテキスト初期値に設定しているが、独立スライスセグメント又はタイルと同様にコンテキストインデックスを用いてコンテキスト初期値を設定してもよい。コピーする対象の右上の符号ブロック又はスライスセグメントと符号化対象の符号ブロックとの相関が異なる場合はこうすることによって符号化効率を高めることができる。 Further, in the above description, the image coding apparatus 100 sets the storage context to the context initial value at the time of WPP or in the case of a non-independent slice segment, but using the context index similarly to the independent slice segment or tile. The context initial value may be set. If the correlation between the code block or slice segment at the upper right of the copy target and the code block of the coding target is different, the coding efficiency can be improved by doing so.

更に、本実施の形態における処理は、ソフトウェアで実現してもよい。そして、このソフトウェアをダウンロード等により配布してもよい。また、このソフトウェアをCD−ROMなどの記録媒体に記録して流布してもよい。なお、このことは、本明細書における他の実施の形態においても該当する。 Further, the processing in this embodiment may be realized by software. Then, this software may be distributed by downloading or the like. Also, this software may be recorded in a recording medium such as a CD-ROM and distributed. Note that this also applies to other embodiments in this specification.

(実施の形態2)
<全体構成>
図11は、本実施の形態における画像復号装置200の構成を示すブロック図である。図11に示す画像復号装置200は、可変長復号部201と、逆変換部202と、加算部203と、復号ブロック結合部204と、フレームメモリ205とを備える。
(Embodiment 2)
<Overall structure>
FIG. 11 is a block diagram showing the configuration of image decoding apparatus 200 in the present embodiment. The image decoding device 200 shown in FIG. 11 includes a variable length decoding unit 201, an inverse conversion unit 202, an addition unit 203, a decoding block combination unit 204, and a frame memory 205.

<動作(全体)>
次に、図12を参照しつつ、復号処理全体のフローについて説明する。
<Operation (overall)>
Next, the flow of the entire decoding process will be described with reference to FIG.

まず、可変長復号部201は、符号列を可変長復号することで周波数変換された符号ブロックを取得する(S211)。 First, the variable length decoding unit 201 acquires a frequency-converted code block by performing variable length decoding on a code string (S211).

次に、逆変換部202は、周波数変換された符号ブロックを逆周波数変換することで復号差分ブロックを生成する(S212)。加算部203は、復号差分ブロックと、動き補償ブロックとを加算することで復号ブロックを生成する(S213)。画像復号装置200は、復号対象画像内の全符号ブロックの復号が完了するまでS211からS213を繰り返す(S214)。 Next, the inverse transform unit 202 generates a decoded difference block by inverse frequency transforming the frequency-transformed code block (S212). The addition unit 203 generates a decoded block by adding the decoded difference block and the motion compensation block (S213). The image decoding apparatus 200 repeats S211 to S213 until the decoding of all code blocks in the image to be decoded is completed (S214).

次に、復号ブロック結合部204は、復号対象画像内の復号ブロックを結合することで画像を復号する(S215)。また、得られた画像及び復号ブロックはフレームメモリ205に格納される。 Next, the decoding block combination unit 204 decodes the image by combining the decoding blocks in the decoding target image (S215). Further, the obtained image and decoded block are stored in the frame memory 205.

以降、特徴的な可変長復号部201について詳細を説明する。 Hereinafter, the characteristic variable length decoding unit 201 will be described in detail.

<可変長復号部201の構成>
図13は、可変長復号部201の内部構成を示すブロック図である。図13に示すように可変長復号部201は、ゴロム復号部211と、算術復号器初期値設定部212と、算術復号部213と、コンテキスト格納部214と、コンテキスト初期値設定部215と、多値化部216とを備える。
<Configuration of variable length decoding unit 201>
FIG. 13 is a block diagram showing the internal configuration of the variable length decoding unit 201. As shown in FIG. 13, the variable length decoding unit 201 includes a Golomb decoding unit 211, an arithmetic decoder initial value setting unit 212, an arithmetic decoding unit 213, a context storage unit 214, a context initial value setting unit 215, and a multi-value decoding unit. And a digitization unit 216.

<可変長復号処理>
次に、図14を参照しつつ、可変長復号処理について説明する。
<Variable length decoding process>
Next, the variable length decoding process will be described with reference to FIG.

まず、コンテキスト初期値設定部215は、算術復号時に使用するコンテキストの初期値を設定する(S231)。算術復号器初期値設定部212は、算術復号時に使用するRangeの初期値及びLow位置の初期値を設定する(S232)。 First, the context initial value setting unit 215 sets the initial value of the context used during arithmetic decoding (S231). The arithmetic decoder initial value setting unit 212 sets the initial value of Range and the initial value of the Low position used at the time of arithmetic decoding (S232).

次に算術復号部213は、符号列を算術復号することで二値信号を生成する(S233)。多値化部216は、二値信号から多値信号であるシンタックス要素を取得する(S234)。算術復号部213は、算術復号において、Range、Low位置及びコンテキストの更新、正規化、並びにビット取得を行う。 Next, the arithmetic decoding unit 213 generates a binary signal by arithmetically decoding the code string (S233). The multi-level conversion unit 216 acquires the syntax element that is a multi-level signal from the binary signal (S234). The arithmetic decoding unit 213 updates, normalizes, and acquires bits in Range, Low position, and context in arithmetic decoding.

次に、コンテキスト格納部214は、更新されたコンテキストを格納する(S235)。 Next, the context storage unit 214 stores the updated context (S235).

可変長復号部201は、符号ブロック内の全シンタックス要素の復号が完了するまでS231からS235を繰り返す(S236)。 The variable length decoding unit 201 repeats S231 to S235 until the decoding of all syntax elements in the code block is completed (S236).

以降、特徴的なコンテキスト初期値設定処理(S231)、算術復号器初期値設定処理(S232)について詳細を説明する。なお、コンテキスト格納処理(S235)は実施の形態1のコンテキスト格納処理と同様であるため、説明を省略する。 The characteristic context initial value setting process (S231) and the arithmetic decoder initial value setting process (S232) will be described in detail below. Note that the context storage process (S235) is the same as the context storage process of the first embodiment, so description will be omitted.

<コンテキスト初期値設定処理>
図15を参照しつつ、コンテキスト初期値設定処理(S231)について説明する。
<Context initial value setting process>
The context initial value setting process (S231) will be described with reference to FIG.

処理対象のシンタックス要素が、独立スライスセグメントまたはタイルの最初のシンタックス要素である場合(S241でYes)、ゴロム復号部211は、コンテキストインデックスをゴロム復号によって復号する(S242)。コンテキスト初期値設定部215は、そのコンテキストインデックスに応じた値をコンテキスト初期値として算術復号部213に設定する(S243)。 When the syntax element to be processed is the first syntax element of the independent slice segment or tile (Yes in S241), the Golomb decoding unit 211 decodes the context index by Golomb decoding (S242). The context initial value setting unit 215 sets a value corresponding to the context index in the arithmetic decoding unit 213 as a context initial value (S243).

一方、処理対象のシンタックス要素が、WPP時の画面左端符号ブロックの最初のシンタックス要素である場合(S244でYes)、または非独立スライスセグメントの最初のシンタックス要素である場合(S245でYes)、コンテキスト初期値設定部215は、コンテキスト格納部に格納されている格納コンテキストをコンテキスト初期値として算術復号部213に設定する(S246)。 On the other hand, when the syntax element to be processed is the first syntax element of the leftmost code block of the screen at the time of WPP (Yes in S244) or the first syntax element of the non-independent slice segment (Yes in S245). ), the context initial value setting unit 215 sets the storage context stored in the context storage unit as the context initial value in the arithmetic decoding unit 213 (S246).

<算術復号器初期値設定処理>
図16を参照しつつ、算術復号器初期値設定処理(S232)について説明する。
<Arithmetic decoder initial value setting processing>
The arithmetic decoder initial value setting process (S232) will be described with reference to FIG.

処理対象のシンタックス要素が、スライスセグメントまたはタイルの最初のシンタックス要素である場合(S251でYes)、またはWPP時の画面左端符号ブロックの最初のシンタックス要素である場合(S252でYes)、算術復号器初期値設定部212は、算術エンジン初期化タイプフラグを符号列から取得する(S253)。ここでスライスセグメントは独立及び非独立両方のスライスセグメントを含む。 When the syntax element to be processed is the first syntax element of the slice segment or tile (Yes in S251), or the first syntax element of the screen leftmost code block at the time of WPP (Yes in S252), The arithmetic decoder initial value setting unit 212 acquires the arithmetic engine initialization type flag from the code string (S253). Here, the slice segment includes both independent and non-independent slice segments.

次に、算術エンジン初期化タイプフラグが「0」の場合(S254でYes)、算術復号器初期値設定部212は、「510」をRange初期値として、「0」をLow位置初期値として算術復号部213に設定する(S255及びS256)。つまり、算術復号器初期値設定部212は、固定値をRange及びLow位置の初期値に設定する。 Next, when the arithmetic engine initialization type flag is “0” (Yes in S254), the arithmetic decoder initial value setting unit 212 uses “510” as the Range initial value and “0” as the Low position initial value. It sets in the decoding part 213 (S255 and S256). That is, the arithmetic decoder initial value setting unit 212 sets the fixed value as the initial value of the Range and Low positions.

算術エンジン初期化タイプフラグが「1」の場合(S254でNo)、ゴロム復号部211は、Range初期値及びLow位置初期値をゴロム復号する(S257及びS258)。算術復号器初期値設定部212は、Range初期値及びLow位置初期値を算術復号部213に設定する(S259及びS260)。 When the arithmetic engine initialization type flag is "1" (No in S254), the Golomb decoding unit 211 Golomb-decodes the Range initial value and the Low position initial value (S257 and S258). The arithmetic decoder initial value setting unit 212 sets the Range initial value and the Low position initial value in the arithmetic decoding unit 213 (S259 and S260).

<効果>
以上により、本実施の形態に係る画像復号装置200は、実施の形態1と同様の効果を実現できる。
<Effect>
As described above, the image decoding device 200 according to the present embodiment can achieve the same effects as those of the first embodiment.

以上、実施の形態に係る画像符号化方法に及び画像復号方法ついて説明したが、本発明は、この実施の形態に限定されるものではない。 Although the image coding method and the image decoding method according to the embodiment have been described above, the present invention is not limited to this embodiment.

また、上記実施の形態に係る画像符号化装置及び画像復号装置に含まれる各処理部は典型的には集積回路であるLSIとして実現される。これらは個別に1チップ化されてもよいし、一部又は全てを含むように1チップ化されてもよい。 Further, each processing unit included in the image encoding device and the image decoding device according to the above embodiments is typically realized as an LSI which is an integrated circuit. These may be individually made into one chip, or may be made into one chip so as to include a part or all of them.

また、集積回路化はLSIに限るものではなく、専用回路又は汎用プロセッサで実現してもよい。LSI製造後にプログラムすることが可能なFPGA(Field Programmable Gate Array)、又はLSI内部の回路セルの接続や設定を再構成可能なリコンフィギュラブル・プロセッサを利用してもよい。 Further, the integrated circuit is not limited to the LSI, and may be realized by a dedicated circuit or a general-purpose processor. An FPGA (Field Programmable Gate Array) that can be programmed after the LSI is manufactured, or a reconfigurable processor that can reconfigure connection and settings of circuit cells inside the LSI may be used.

上記各実施の形態において、各構成要素は、専用のハードウェアで構成されるか、各構成要素に適したソフトウェアプログラムを実行することによって実現されてもよい。各構成要素は、CPU又はプロセッサなどのプログラム実行部が、ハードディスク又は半導体メモリなどの記録媒体に記録されたソフトウェアプログラムを読み出して実行することによって実現されてもよい。 In each of the above-described embodiments, each component may be configured by dedicated hardware, or may be realized by executing a software program suitable for each component. Each component may be realized by a program execution unit such as a CPU or a processor reading and executing a software program recorded in a recording medium such as a hard disk or a semiconductor memory.

言い換えると、画像符号化装置及び画像復号装置は、処理回路(processing circuitry)と、当該処理回路に電気的に接続された(当該処理回路からアクセス可能な)記憶装置(storage)とを備える。処理回路は、専用のハードウェア及びプログラム実行部の少なくとも一方を含む。また、記憶装置は、処理回路がプログラム実行部を含む場合には、当該プログラム実行部により実行されるソフトウェアプログラムを記憶する。処理回路は、記憶装置を用いて、上記実施の形態に係る画像符号化方法又は画像復号方法を実行する。 In other words, the image encoding device and the image decoding device include a processing circuit and a storage device electrically connected to the processing circuit (accessible from the processing circuit). The processing circuit includes at least one of dedicated hardware and a program execution unit. Further, when the processing circuit includes a program execution unit, the storage device stores the software program executed by the program execution unit. The processing circuit uses the storage device to execute the image encoding method or the image decoding method according to the above-described embodiment.

さらに、本発明は上記ソフトウェアプログラムであってもよいし、上記プログラムが記録された非一時的なコンピュータ読み取り可能な記録媒体であってもよい。また、上記プログラムは、インターネット等の伝送媒体を介して流通させることができるのは言うまでもない。 Further, the present invention may be the above software program or a non-transitory computer-readable recording medium in which the above program is recorded. Needless to say, the above program can be distributed via a transmission medium such as the Internet.

また、上記で用いた数字は、全て本発明を具体的に説明するために例示するものであり、本発明は例示された数字に制限されない。 Further, all the numbers used above are examples for specifically explaining the present invention, and the present invention is not limited to the exemplified numbers.

また、ブロック図における機能ブロックの分割は一例であり、複数の機能ブロックを一つの機能ブロックとして実現したり、一つの機能ブロックを複数に分割したり、一部の機能を他の機能ブロックに移してもよい。また、類似する機能を有する複数の機能ブロックの機能を単一のハードウェア又はソフトウェアが並列又は時分割に処理してもよい。 Also, the division of functional blocks in the block diagram is an example, and multiple functional blocks are realized as one functional block, one functional block is divided into multiple, and some functions are moved to other functional blocks. May be. Further, the functions of a plurality of functional blocks having similar functions may be processed in parallel or in time division by a single piece of hardware or software.

また、上記の予測画像生成方法、符号化方法又は復号方法に含まれるステップが実行される順序は、本発明を具体的に説明するために例示するためのものであり、上記以外の順序であってもよい。また、上記ステップの一部が、他のステップと同時(並列)に実行されてもよい。 Further, the order in which the steps included in the predictive image generation method, the encoding method, or the decoding method described above are executed for the purpose of specifically describing the present invention, and may be other than the order described above. May be. In addition, some of the above steps may be executed simultaneously (in parallel) with other steps.

また、各実施の形態において説明した処理は、単一の装置(システム)を用いて集中処理することによって実現してもよく、あるいは、複数の装置を用いて分散処理することによって実現してもよい。また、上記プログラムを実行するコンピュータは、単数であってもよく、複数であってもよい。すなわち、集中処理を行ってもよく、あるいは分散処理を行ってもよい。 The processing described in each embodiment may be realized by centralized processing using a single device (system), or may be realized by distributed processing using a plurality of devices. Good. Moreover, the computer that executes the program may be a single computer or a plurality of computers. That is, centralized processing may be performed or distributed processing may be performed.

以上、本発明の一つ又は複数の態様に係る予測画像生成装置、符号化装置及び復号装置について、実施の形態に基づいて説明したが、本発明は、この実施の形態に限定されるものではない。本発明の趣旨を逸脱しない限り、当業者が思いつく各種変形を本実施の形態に施したものや、異なる実施の形態における構成要素を組み合わせて構築される形態も、本発明の一つ又は複数の態様の範囲内に含まれてもよい。 Although the prediction image generation device, the encoding device, and the decoding device according to one or more aspects of the present invention have been described above based on the embodiment, the present invention is not limited to this embodiment. Absent. As long as it does not depart from the spirit of the present invention, various modifications made by those skilled in the art may be applied to the present embodiment, or a configuration constructed by combining components in different embodiments may be one or more of the present invention. It may be included in the range of the aspect.

(実施の形態3)
上記各実施の形態で示した動画像符号化方法(画像符号化方法)または動画像復号化方法(画像復号方法)の構成を実現するためのプログラムを記憶メディアに記録することにより、上記各実施の形態で示した処理を独立したコンピュータシステムにおいて簡単に実施することが可能となる。記憶メディアは、磁気ディスク、光ディスク、光磁気ディスク、ICカード、半導体メモリ等、プログラムを記録できるものであればよい。
(Embodiment 3)
By recording a program for realizing the configuration of the moving picture coding method (picture coding method) or the moving picture decoding method (picture decoding method) shown in each of the above embodiments in a storage medium, each of the above embodiments can be performed. It is possible to easily carry out the processing shown in the above form in an independent computer system. The storage medium may be a magnetic disk, an optical disk, a magneto-optical disk, an IC card, a semiconductor memory, or any other medium capable of recording a program.

さらにここで、上記各実施の形態で示した動画像符号化方法(画像符号化方法)や動画像復号化方法(画像復号方法)の応用例とそれを用いたシステムを説明する。当該システムは、画像符号化方法を用いた画像符号化装置、及び画像復号方法を用いた画像復号装置からなる画像符号化復号装置を有することを特徴とする。システムにおける他の構成について、場合に応じて適切に変更することができる。 Further, application examples of the moving picture coding method (picture coding method) and the moving picture decoding method (picture decoding method) shown in each of the above-described embodiments and a system using the same will be described. The system is characterized by having an image encoding/decoding device including an image encoding device using the image encoding method and an image decoding device using the image decoding method. Other configurations in the system can be appropriately changed depending on the case.

図17は、コンテンツ配信サービスを実現するコンテンツ供給システムex100の全体構成を示す図である。通信サービスの提供エリアを所望の大きさに分割し、各セル内にそれぞれ固定無線局である基地局ex106、ex107、ex108、ex109、ex110が設置されている。 FIG. 17 is a diagram showing the overall configuration of a content supply system ex100 that realizes a content distribution service. A communication service providing area is divided into desired sizes, and base stations ex106, ex107, ex108, ex109, and ex110, which are fixed wireless stations, are installed in each cell.

このコンテンツ供給システムex100は、インターネットex101にインターネットサービスプロバイダex102および電話網ex104、および基地局ex106からex110を介して、コンピュータex111、PDA(Personal Digital Assistant)ex112、カメラex113、携帯電話ex114、ゲーム機ex115などの各機器が接続される。 This content supply system ex100 includes a computer ex111, a PDA (Personal Digital Assistant) ex112, a camera ex113, a mobile phone ex114, and a game machine ex115 via the Internet ex101 via an Internet service provider ex102, a telephone network ex104, and base stations ex106 to ex110. Each device such as is connected.

しかし、コンテンツ供給システムex100は図17のような構成に限定されず、いずれかの要素を組合せて接続するようにしてもよい。また、固定無線局である基地局ex106からex110を介さずに、各機器が電話網ex104に直接接続されてもよい。また、各機器が近距離無線等を介して直接相互に接続されていてもよい。 However, the content supply system ex100 is not limited to the configuration shown in FIG. 17, and any element may be combined and connected. Also, each device may be directly connected to the telephone network ex104 without going through the base stations ex106 to ex110 which are fixed wireless stations. In addition, the devices may be directly connected to each other via short-range wireless communication or the like.

カメラex113はデジタルビデオカメラ等の動画撮影が可能な機器であり、カメラex116はデジタルカメラ等の静止画撮影、動画撮影が可能な機器である。また、携帯電話ex114は、GSM(登録商標)(Global System for Mobile Communications)方式、CDMA(Code Division Multiple Access)方式、W−CDMA(Wideband-Code Division Multiple Access)方式、若しくはLTE(Long Term Evolution)方式、HSPA(High Speed Packet Access)の携帯電話機、またはPHS(Personal Handyphone System)等であり、いずれでも構わない。 The camera ex113 is a device such as a digital video camera capable of shooting moving images, and the camera ex116 is a device such as a digital camera capable of shooting still images and moving images. In addition, the mobile phone ex114 has a GSM (registered trademark) (Global System for Mobile Communications) system, a CDMA (Code Division Multiple Access) system, a W-CDMA (Wideband-Code Division Multiple Access) system, or an LTE (Long Term Evolution) system. System, HSPA (High Speed Packet Access) mobile phone, PHS (Personal Handyphone System), or the like.

コンテンツ供給システムex100では、カメラex113等が基地局ex109、電話網ex104を通じてストリーミングサーバex103に接続されることで、ライブ配信等が可能になる。ライブ配信では、ユーザがカメラex113を用いて撮影するコンテンツ(例えば、音楽ライブの映像等)に対して上記各実施の形態で説明したように符号化処理を行い(即ち、本発明の一態様に係る画像符号化装置として機能する)、ストリーミングサーバex103に送信する。一方、ストリーミングサーバex103は要求のあったクライアントに対して送信されたコンテンツデータをストリーム配信する。クライアントとしては、上記符号化処理されたデータを復号化することが可能な、コンピュータex111、PDAex112、カメラex113、携帯電話ex114、ゲーム機ex115等がある。配信されたデータを受信した各機器では、受信したデータを復号化処理して再生する(即ち、本発明の一態様に係る画像復号装置として機能する)。 In the content supply system ex100, the camera ex113 and the like are connected to the streaming server ex103 through the base station ex109 and the telephone network ex104, so that live distribution and the like can be performed. In the live distribution, the encoding process is performed as described in each of the above embodiments on the content (for example, the image of the live music) that the user shoots with the camera ex113 (that is, according to one embodiment of the present invention. (Functions as the image encoding device), and transmits to the streaming server ex103. On the other hand, the streaming server ex103 streams the content data transmitted to the requesting client. Examples of clients include a computer ex111, a PDA ex112, a camera ex113, a mobile phone ex114, a game console ex115, and the like that can decode the encoded data. Each device that receives the distributed data decodes and plays the received data (that is, functions as an image decoding device according to one aspect of the present invention).

なお、撮影したデータの符号化処理はカメラex113で行っても、データの送信処理をするストリーミングサーバex103で行ってもよいし、互いに分担して行ってもよい。同様に配信されたデータの復号化処理はクライアントで行っても、ストリーミングサーバex103で行ってもよいし、互いに分担して行ってもよい。また、カメラex113に限らず、カメラex116で撮影した静止画像および/または動画像データを、コンピュータex111を介してストリーミングサーバex103に送信してもよい。この場合の符号化処理はカメラex116、コンピュータex111、ストリーミングサーバex103のいずれで行ってもよいし、互いに分担して行ってもよい。 The captured data may be coded by the camera ex113, the streaming server ex103 that performs the data transmission process, or the coding processes may be shared. Similarly, the decoding process of the distributed data may be performed by the client, the streaming server ex103, or the processes shared by the clients. Further, not limited to the camera ex113, still images and/or moving image data captured by the camera ex116 may be transmitted to the streaming server ex103 via the computer ex111. The encoding process in this case may be performed by any of the camera ex116, the computer ex111, and the streaming server ex103, or may be shared by the other.

また、これら符号化・復号化処理は、一般的にコンピュータex111や各機器が有するLSIex500において処理する。LSIex500は、ワンチップであっても複数チップからなる構成であってもよい。なお、動画像符号化・復号化用のソフトウェアをコンピュータex111等で読み取り可能な何らかの記録メディア(CD−ROM、フレキシブルディスク、ハードディスクなど)に組み込み、そのソフトウェアを用いて符号化・復号化処理を行ってもよい。さらに、携帯電話ex114がカメラ付きである場合には、そのカメラで取得した動画データを送信してもよい。このときの動画データは携帯電話ex114が有するLSIex500で符号化処理されたデータである。 Further, these encoding/decoding processes are generally processed by the computer ex111 and the LSI ex500 included in each device. The LSI ex500 may be a single chip or may be configured by a plurality of chips. It should be noted that the moving picture coding/decoding software is installed in some recording medium (CD-ROM, flexible disk, hard disk, etc.) that can be read by the computer ex111 and the like, and the coding/decoding processing is performed using the software. May be. Furthermore, when the mobile phone ex114 has a camera, the moving image data acquired by the camera may be transmitted. The moving image data at this time is data encoded by the LSI ex500 included in the mobile phone ex114.

また、ストリーミングサーバex103は複数のサーバや複数のコンピュータであって、データを分散して処理したり記録したり配信するものであってもよい。 Further, the streaming server ex103 may be a plurality of servers or a plurality of computers, and may decentralize data for processing, recording, or distributing.

以上のようにして、コンテンツ供給システムex100では、符号化されたデータをクライアントが受信して再生することができる。このようにコンテンツ供給システムex100では、ユーザが送信した情報をリアルタイムでクライアントが受信して復号化し、再生することができ、特別な権利や設備を有さないユーザでも個人放送を実現できる。 As described above, in the content supply system ex100, the client can receive and reproduce the encoded data. As described above, in the content supply system ex100, the client can receive, decode, and reproduce the information transmitted by the user in real time, and a user who does not have a special right or facility can realize personal broadcasting.

なお、コンテンツ供給システムex100の例に限らず、図18に示すように、デジタル放送用システムex200にも、上記各実施の形態の少なくとも動画像符号化装置(画像符号化装置)または動画像復号化装置(画像復号装置)のいずれかを組み込むことができる。具体的には、放送局ex201では映像データに音楽データなどが多重化された多重化データが電波を介して通信または衛星ex202に伝送される。この映像データは上記各実施の形態で説明した動画像符号化方法により符号化されたデータである(即ち、本発明の一態様に係る画像符号化装置によって符号化されたデータである)。これを受けた放送衛星ex202は、放送用の電波を発信し、この電波を衛星放送の受信が可能な家庭のアンテナex204が受信する。受信した多重化データを、テレビ(受信機)ex300またはセットトップボックス(STB)ex217等の装置が復号化して再生する(即ち、本発明の一態様に係る画像復号装置として機能する)。 Note that not only the example of the content supply system ex100, but also the digital broadcasting system ex200, as shown in FIG. 18, at least the moving image encoding device (image encoding device) or the moving image decoding device according to each of the above embodiments. Any of the devices (image decoding device) can be incorporated. Specifically, in the broadcast station ex201, multiplexed data in which music data and the like are multiplexed with video data is communicated or transmitted to the satellite ex202 via radio waves. This video data is data encoded by the moving image encoding method described in each of the above-described embodiments (that is, data encoded by the image encoding device according to one aspect of the present invention). Receiving this, the broadcasting satellite ex202 emits a radio wave for broadcasting, and the antenna ex204 of the home capable of receiving the satellite broadcast receives this radio wave. The received multiplexed data is decoded and reproduced by a device such as a television (receiver) ex300 or a set top box (STB) ex217 (that is, functions as an image decoding device according to one embodiment of the present invention).

また、DVD、BD等の記録メディアex215に記録した多重化データを読み取り復号化する、または記録メディアex215に映像信号を符号化し、さらに場合によっては音楽信号と多重化して書き込むリーダ/レコーダex218にも上記各実施の形態で示した動画像復号化装置または動画像符号化装置を実装することが可能である。この場合、再生された映像信号はモニタex219に表示され、多重化データが記録された記録メディアex215により他の装置やシステムにおいて映像信号を再生することができる。また、ケーブルテレビ用のケーブルex203または衛星/地上波放送のアンテナex204に接続されたセットトップボックスex217内に動画像復号化装置を実装し、これをテレビのモニタex219で表示してもよい。このときセットトップボックスではなく、テレビ内に動画像復号化装置を組み込んでもよい。 In addition, a reader/recorder ex218 that reads and decodes multiplexed data recorded on a recording medium ex215 such as a DVD or a BD, or encodes a video signal on the recording medium ex215, and in some cases, writes the multiplexed signal together with a music signal. The moving picture decoding apparatus or the moving picture coding apparatus shown in each of the above embodiments can be mounted. In this case, the reproduced video signal is displayed on the monitor ex219, and the video signal can be reproduced in another device or system by the recording medium ex215 in which the multiplexed data is recorded. Further, the moving picture decoding apparatus may be mounted in the set top box ex217 connected to the cable ex203 for cable television or the antenna ex204 for satellite/terrestrial broadcasting, and this may be displayed on the monitor ex219 of the television. At this time, the moving picture decoding apparatus may be incorporated in the television instead of the set top box.

図19は、上記各実施の形態で説明した動画像復号化方法および動画像符号化方法を用いたテレビ(受信機)ex300を示す図である。テレビex300は、上記放送を受信するアンテナex204またはケーブルex203等を介して映像データに音声データが多重化された多重化データを取得、または出力するチューナex301と、受信した多重化データを復調する、または外部に送信する多重化データに変調する変調/復調部ex302と、復調した多重化データを映像データと、音声データとに分離する、または信号処理部ex306で符号化された映像データ、音声データを多重化する多重/分離部ex303を備える。 FIG. 19 is a diagram showing a television (receiver) ex300 using the moving picture decoding method and the moving picture coding method described in the above embodiments. The television ex300 obtains or outputs the multiplexed data in which the audio data is multiplexed with the video data via the antenna ex204 or the cable ex203 for receiving the broadcast, and the tuner ex301, and demodulates the received multiplexed data, Alternatively, a modulation/demodulation unit ex302 that modulates the multiplexed data to be transmitted to the outside, and the demodulated multiplexed data is separated into video data and audio data, or video data and audio data encoded by the signal processing unit ex306. And a multiplexing/demultiplexing unit ex303 for multiplexing.

また、テレビex300は、音声データ、映像データそれぞれを復号化する、またはそれぞれの情報を符号化する音声信号処理部ex304、映像信号処理部ex305(本発明の一態様に係る画像符号化装置または画像復号装置として機能する)を有する信号処理部ex306と、復号化した音声信号を出力するスピーカex307、復号化した映像信号を表示するディスプレイ等の表示部ex308を有する出力部ex309とを有する。さらに、テレビex300は、ユーザ操作の入力を受け付ける操作入力部ex312等を有するインタフェース部ex317を有する。さらに、テレビex300は、各部を統括的に制御する制御部ex310、各部に電力を供給する電源回路部ex311を有する。インタフェース部ex317は、操作入力部ex312以外に、リーダ/レコーダex218等の外部機器と接続されるブリッジex313、SDカード等の記録メディアex216を装着可能とするためのスロット部ex314、ハードディスク等の外部記録メディアと接続するためのドライバex315、電話網と接続するモデムex316等を有していてもよい。なお記録メディアex216は、格納する不揮発性/揮発性の半導体メモリ素子により電気的に情報の記録を可能としたものである。テレビex300の各部は同期バスを介して互いに接続されている。 In addition, the television ex300 includes an audio signal processing unit ex304 and a video signal processing unit ex305 that decode audio data and video data, respectively, or code the respective information (the image coding device or the image according to one embodiment of the present invention). A signal processing unit ex306 having a function as a decoding device), a speaker ex307 for outputting a decoded audio signal, and an output unit ex309 having a display unit ex308 such as a display for displaying the decoded video signal. Furthermore, the television ex300 has an interface unit ex317 having an operation input unit ex312 and the like for receiving an input of a user operation. Further, the television ex300 includes a control unit ex310 that controls each unit in an integrated manner, and a power supply circuit unit ex311 that supplies electric power to each unit. The interface unit ex317 is, in addition to the operation input unit ex312, a bridge unit ex313 connected to an external device such as a reader/recorder ex218, a slot unit ex314 for mounting a recording medium ex216 such as an SD card, and an external recording such as a hard disk. It may have a driver ex315 for connecting to a medium, a modem ex316 for connecting to a telephone network, and the like. Note that the recording medium ex216 is capable of electrically recording information by a non-volatile/volatile semiconductor memory element that stores the information. The respective units of the television ex300 are connected to each other via a synchronous bus.

まず、テレビex300がアンテナex204等により外部から取得した多重化データを復号化し、再生する構成について説明する。テレビex300は、リモートコントローラex220等からのユーザ操作を受け、CPU等を有する制御部ex310の制御に基づいて、変調/復調部ex302で復調した多重化データを多重/分離部ex303で分離する。さらにテレビex300は、分離した音声データを音声信号処理部ex304で復号化し、分離した映像データを映像信号処理部ex305で上記各実施の形態で説明した復号化方法を用いて復号化する。復号化した音声信号、映像信号は、それぞれ出力部ex309から外部に向けて出力される。出力する際には、音声信号と映像信号が同期して再生するよう、バッファex318、ex319等に一旦これらの信号を蓄積するとよい。また、テレビex300は、放送等からではなく、磁気/光ディスク、SDカード等の記録メディアex215、ex216から多重化データを読み出してもよい。次に、テレビex300が音声信号や映像信号を符号化し、外部に送信または記録メディア等に書き込む構成について説明する。テレビex300は、リモートコントローラex220等からのユーザ操作を受け、制御部ex310の制御に基づいて、音声信号処理部ex304で音声信号を符号化し、映像信号処理部ex305で映像信号を上記各実施の形態で説明した符号化方法を用いて符号化する。符号化した音声信号、映像信号は多重/分離部ex303で多重化され外部に出力される。多重化する際には、音声信号と映像信号が同期するように、バッファex320、ex321等に一旦これらの信号を蓄積するとよい。なお、バッファex318、ex319、ex320、ex321は図示しているように複数備えていてもよいし、1つ以上のバッファを共有する構成であってもよい。さらに、図示している以外に、例えば変調/復調部ex302や多重/分離部ex303の間等でもシステムのオーバフロー、アンダーフローを避ける緩衝材としてバッファにデータを蓄積することとしてもよい。 First, a configuration in which the television ex300 decodes and reproduces multiplexed data acquired from the outside by the antenna ex204 or the like will be described. The television ex300 receives a user operation from the remote controller ex220 and the like, and under the control of the control unit ex310 having a CPU and the like, the multiplexing/demultiplexing unit ex303 separates the multiplexed data demodulated by the modulation/demodulation unit ex302. Further, in the television ex300, the separated audio data is decoded by the audio signal processing unit ex304, and the separated video data is decoded by the video signal processing unit ex305 using the decoding method described in each of the above embodiments. The decoded audio signal and video signal are output from the output unit ex309 to the outside. When outputting, these signals may be temporarily stored in the buffers ex318, ex319, etc. so that the audio signals and the video signals are reproduced in synchronization. Further, the television ex300 may read the multiplexed data from the recording media ex215 and ex216 such as a magnetic/optical disk and an SD card, not from broadcasting or the like. Next, a configuration in which the television ex300 encodes an audio signal or a video signal and transmits the signal externally or writes the signal on a recording medium will be described. The television ex300 receives a user operation from the remote controller ex220 or the like, and under the control of the control unit ex310, the audio signal processing unit ex304 encodes the audio signal, and the video signal processing unit ex305 converts the video signal into the above-described embodiments. Encoding is performed using the encoding method described in. The encoded audio signal and video signal are multiplexed by the multiplexer/demultiplexer ex303 and output to the outside. When multiplexing, these signals may be temporarily stored in the buffers ex320 and ex321 so that the audio signals and the video signals are synchronized. Note that a plurality of buffers ex318, ex319, ex320, and ex321 may be provided as illustrated, or one or more buffers may be shared. Further, other than the illustrated one, data may be stored in the buffer as a buffer material for avoiding system overflow and underflow, for example, between the modulation/demodulation unit ex302 and the multiplexing/demultiplexing unit ex303.

また、テレビex300は、放送等や記録メディア等から音声データ、映像データを取得する以外に、マイクやカメラのAV入力を受け付ける構成を備え、それらから取得したデータに対して符号化処理を行ってもよい。なお、ここではテレビex300は上記の符号化処理、多重化、および外部出力ができる構成として説明したが、これらの処理を行うことはできず、上記受信、復号化処理、外部出力のみが可能な構成であってもよい。 In addition, the television ex300 has a configuration for receiving AV input of a microphone or a camera, in addition to acquiring audio data and video data from broadcasting or recording media, and performs an encoding process on the data acquired from them. Good. Note that, here, the television ex300 has been described as a configuration capable of the above-described encoding processing, multiplexing, and external output, but these processing cannot be performed, and only the above-described reception, decoding processing, and external output are possible. It may be configured.

また、リーダ/レコーダex218で記録メディアから多重化データを読み出す、または書き込む場合には、上記復号化処理または符号化処理はテレビex300、リーダ/レコーダex218のいずれで行ってもよいし、テレビex300とリーダ/レコーダex218が互いに分担して行ってもよい。 When the reader/recorder ex218 reads or writes the multiplexed data from the recording medium, the decoding process or the encoding process may be performed by either the television ex300 or the reader/recorder ex218, or the television ex300. The reader/recorder ex218 may share the work with each other.

一例として、光ディスクからデータの読み込みまたは書き込みをする場合の情報再生/記録部ex400の構成を図20に示す。情報再生/記録部ex400は、以下に説明する要素ex401、ex402、ex403、ex404、ex405、ex406、ex407を備える。光ヘッドex401は、光ディスクである記録メディアex215の記録面にレーザスポットを照射して情報を書き込み、記録メディアex215の記録面からの反射光を検出して情報を読み込む。変調記録部ex402は、光ヘッドex401に内蔵された半導体レーザを電気的に駆動し記録データに応じてレーザ光の変調を行う。再生復調部ex403は、光ヘッドex401に内蔵されたフォトディテクタにより記録面からの反射光を電気的に検出した再生信号を増幅し、記録メディアex215に記録された信号成分を分離して復調し、必要な情報を再生する。バッファex404は、記録メディアex215に記録するための情報および記録メディアex215から再生した情報を一時的に保持する。ディスクモータex405は記録メディアex215を回転させる。サーボ制御部ex406は、ディスクモータex405の回転駆動を制御しながら光ヘッドex401を所定の情報トラックに移動させ、レーザスポットの追従処理を行う。システム制御部ex407は、情報再生/記録部ex400全体の制御を行う。上記の読み出しや書き込みの処理はシステム制御部ex407が、バッファex404に保持された各種情報を利用し、また必要に応じて新たな情報の生成・追加を行うと共に、変調記録部ex402、再生復調部ex403、サーボ制御部ex406を協調動作させながら、光ヘッドex401を通して、情報の記録再生を行うことにより実現される。システム制御部ex407は例えばマイクロプロセッサで構成され、読み出し書き込みのプログラムを実行することでそれらの処理を実行する。 As an example, FIG. 20 shows the configuration of the information reproducing/recording unit ex400 when reading or writing data from the optical disc. The information reproducing/recording unit ex400 includes elements ex401, ex402, ex403, ex404, ex405, ex406, ex407 described below. The optical head ex401 irradiates a laser spot on the recording surface of the recording medium ex215, which is an optical disc, to write information, detects the reflected light from the recording surface of the recording medium ex215, and reads information. The modulation recording unit ex402 electrically drives a semiconductor laser incorporated in the optical head ex401 to modulate the laser light according to the recording data. The reproduction demodulation unit ex403 amplifies the reproduction signal obtained by electrically detecting the reflected light from the recording surface by the photodetector built in the optical head ex401, separates the signal component recorded in the recording medium ex215, and demodulates it. To reproduce the correct information. The buffer ex404 temporarily holds information to be recorded on the recording medium ex215 and information reproduced from the recording medium ex215. The disk motor ex405 rotates the recording medium ex215. The servo control unit ex406 moves the optical head ex401 to a predetermined information track while controlling the rotation drive of the disk motor ex405, and performs a laser spot tracking process. The system control unit ex407 controls the entire information reproducing/recording unit ex400. The system control unit ex407 uses the various types of information held in the buffer ex404 for the above-mentioned read/write processing, and also generates/adds new information as necessary, and also the modulation recording unit ex402 and the reproduction/demodulation unit. This is realized by recording/reproducing information through the optical head ex401 while operating the ex403 and the servo control unit ex406 in cooperation. The system control unit ex407 is composed of, for example, a microprocessor, and executes these processes by executing a read/write program.

以上では、光ヘッドex401はレーザスポットを照射するとして説明したが、近接場光を用いてより高密度な記録を行う構成であってもよい。 Although the optical head ex401 has been described above as irradiating a laser spot, it may be configured to perform recording with higher density by using near-field light.

図21に光ディスクである記録メディアex215の模式図を示す。記録メディアex215の記録面には案内溝(グルーブ)がスパイラル状に形成され、情報トラックex230には、予めグルーブの形状の変化によってディスク上の絶対位置を示す番地情報が記録されている。この番地情報はデータを記録する単位である記録ブロックex231の位置を特定するための情報を含み、記録や再生を行う装置において情報トラックex230を再生し番地情報を読み取ることで記録ブロックを特定することができる。また、記録メディアex215は、データ記録領域ex233、内周領域ex232、外周領域ex234を含んでいる。ユーザデータを記録するために用いる領域がデータ記録領域ex233であり、データ記録領域ex233より内周または外周に配置されている内周領域ex232と外周領域ex234は、ユーザデータの記録以外の特定用途に用いられる。情報再生/記録部ex400は、このような記録メディアex215のデータ記録領域ex233に対して、符号化された音声データ、映像データまたはそれらのデータを多重化した多重化データの読み書きを行う。 FIG. 21 shows a schematic diagram of a recording medium ex215 which is an optical disc. A guide groove (groove) is formed in a spiral shape on the recording surface of the recording medium ex215, and address information indicating an absolute position on the disc is recorded in advance on the information track ex230 due to a change in the shape of the groove. This address information includes information for specifying the position of the recording block ex231 which is a unit for recording data, and specifies the recording block by reproducing the information track ex230 and reading the address information in the device for recording or reproducing. You can The recording medium ex215 includes a data recording area ex233, an inner peripheral area ex232, and an outer peripheral area ex234. The area used for recording the user data is the data recording area ex233, and the inner peripheral area ex232 and the outer peripheral area ex234 arranged on the inner or outer circumference of the data recording area ex233 are used for a specific purpose other than the recording of the user data. Used. The information reproducing/recording unit ex400 reads/writes encoded audio data, video data, or multiplexed data obtained by multiplexing these data from/into the data recording area ex233 of the recording medium ex215.

以上では、1層のDVD、BD等の光ディスクを例に挙げ説明したが、これらに限ったものではなく、多層構造であって表面以外にも記録可能な光ディスクであってもよい。また、ディスクの同じ場所にさまざまな異なる波長の色の光を用いて情報を記録したり、さまざまな角度から異なる情報の層を記録したりなど、多次元的な記録/再生を行う構造の光ディスクであってもよい。 In the above description, an optical disc such as a single-layer DVD or BD has been described as an example, but the optical disc is not limited to these and may be an optical disc that has a multi-layer structure and is capable of recording other than the surface. Also, an optical disc having a structure for performing multi-dimensional recording/reproduction, such as recording information on the same place of the disc by using lights of various different wavelengths or recording layers of different information from various angles. May be

また、デジタル放送用システムex200において、アンテナex205を有する車ex210で衛星ex202等からデータを受信し、車ex210が有するカーナビゲーションex211等の表示装置に動画を再生することも可能である。なお、カーナビゲーションex211の構成は例えば図19に示す構成のうち、GPS受信部を加えた構成が考えられ、同様なことがコンピュータex111や携帯電話ex114等でも考えられる。 Further, in the digital broadcasting system ex200, it is also possible for a car ex210 having an antenna ex205 to receive data from a satellite ex202 or the like and reproduce a moving image on a display device such as a car navigation ex211 included in the car ex210. Note that the configuration of the car navigation ex211 may be, for example, a configuration including a GPS receiving unit in the configuration shown in FIG. 19, and the same may be considered in the computer ex111, the mobile phone ex114, or the like.

図22Aは、上記実施の形態で説明した動画像復号化方法および動画像符号化方法を用いた携帯電話ex114を示す図である。携帯電話ex114は、基地局ex110との間で電波を送受信するためのアンテナex350、映像、静止画を撮ることが可能なカメラ部ex365、カメラ部ex365で撮像した映像、アンテナex350で受信した映像等が復号化されたデータを表示する液晶ディスプレイ等の表示部ex358を備える。携帯電話ex114は、さらに、操作キー部ex366を有する本体部、音声を出力するためのスピーカ等である音声出力部ex357、音声を入力するためのマイク等である音声入力部ex356、撮影した映像、静止画、録音した音声、または受信した映像、静止画、メール等の符号化されたデータもしくは復号化されたデータを保存するメモリ部ex367、又は同様にデータを保存する記録メディアとのインタフェース部であるスロット部ex364を備える。 FIG. 22A is a diagram showing a mobile phone ex114 that uses the moving picture decoding method and the moving picture coding method described in the above embodiments. The mobile phone ex114 has an antenna ex350 for transmitting and receiving radio waves to and from the base station ex110, a camera unit ex365 that can take a video image and a still image, an image captured by the camera unit ex365, an image received by the antenna ex350, and the like. Is provided with a display unit ex358 such as a liquid crystal display for displaying the decoded data. The mobile phone ex114 further includes a main body unit having an operation key unit ex366, a voice output unit ex357 that is a speaker for outputting voice, a voice input unit ex356 that is a microphone for inputting voice, a captured image, A memory unit ex367 for storing encoded data or decoded data such as a still image, recorded voice, or received video, still image, mail, or the like, or an interface unit with a recording medium for storing data. A certain slot part ex364 is provided.

さらに、携帯電話ex114の構成例について、図22Bを用いて説明する。携帯電話ex114は、表示部ex358及び操作キー部ex366を備えた本体部の各部を統括的に制御する主制御部ex360に対して、電源回路部ex361、操作入力制御部ex362、映像信号処理部ex355、カメラインタフェース部ex363、LCD(Liquid Crystal Display)制御部ex359、変調/復調部ex352、多重/分離部ex353、音声信号処理部ex354、スロット部ex364、メモリ部ex367がバスex370を介して互いに接続されている。 Furthermore, a configuration example of the mobile phone ex114 will be described with reference to FIG. 22B. The mobile phone ex114 has a power supply circuit unit ex361, an operation input control unit ex362, and a video signal processing unit ex355 with respect to a main control unit ex360 that integrally controls each unit of the main body including a display unit ex358 and an operation key unit ex366. The camera interface unit ex363, the LCD (Liquid Crystal Display) control unit ex359, the modulation/demodulation unit ex352, the multiplexing/demultiplexing unit ex353, the audio signal processing unit ex354, the slot unit ex364, and the memory unit ex367 are connected to each other via a bus ex370. ing.

電源回路部ex361は、ユーザの操作により終話及び電源キーがオン状態にされると、バッテリパックから各部に対して電力を供給することにより携帯電話ex114を動作可能な状態に起動する。 When the call ends and the power key is turned on by the user's operation, the power supply circuit unit ex361 activates the mobile phone ex114 by supplying power from the battery pack to each unit.

携帯電話ex114は、CPU、ROM、RAM等を有する主制御部ex360の制御に基づいて、音声通話モード時に音声入力部ex356で収音した音声信号を音声信号処理部ex354でデジタル音声信号に変換し、これを変調/復調部ex352でスペクトラム拡散処理し、送信/受信部ex351でデジタルアナログ変換処理および周波数変換処理を施した後にアンテナex350を介して送信する。また携帯電話ex114は、音声通話モード時にアンテナex350を介して受信した受信データを増幅して周波数変換処理およびアナログデジタル変換処理を施し、変調/復調部ex352でスペクトラム逆拡散処理し、音声信号処理部ex354でアナログ音声信号に変換した後、これを音声出力部ex357から出力する。 The mobile phone ex114 converts the audio signal picked up by the audio input unit ex356 in the audio call mode into a digital audio signal by the audio signal processing unit ex354, under the control of the main control unit ex360 having a CPU, a ROM, a RAM, and the like. The modulation/demodulation unit ex352 performs spread spectrum processing on this, and the transmission/reception unit ex351 performs digital-analog conversion processing and frequency conversion processing, and then transmits via the antenna ex350. In addition, the mobile phone ex114 amplifies the received data received through the antenna ex350 in the voice call mode, performs frequency conversion processing and analog-digital conversion processing, performs spectrum despreading processing in the modulation/demodulation unit ex352, and performs voice signal processing unit. After being converted into an analog audio signal in ex354, this is output from the audio output unit ex357.

さらにデータ通信モード時に電子メールを送信する場合、本体部の操作キー部ex366等の操作によって入力された電子メールのテキストデータは操作入力制御部ex362を介して主制御部ex360に送出される。主制御部ex360は、テキストデータを変調/復調部ex352でスペクトラム拡散処理をし、送信/受信部ex351でデジタルアナログ変換処理および周波数変換処理を施した後にアンテナex350を介して基地局ex110へ送信する。電子メールを受信する場合は、受信したデータに対してこのほぼ逆の処理が行われ、表示部ex358に出力される。 Furthermore, when sending an electronic mail in the data communication mode, the text data of the electronic mail input by operating the operation key unit ex366 of the main body unit is sent to the main control unit ex360 via the operation input control unit ex362. The main control unit ex360 transmits the text data to the base station ex110 via the antenna ex350 after the modulation/demodulation unit ex352 performs spread spectrum processing and the transmission/reception unit ex351 performs digital/analog conversion processing and frequency conversion processing. .. When receiving an e-mail, the received data is subjected to almost the opposite process and output to the display unit ex358.

データ通信モード時に映像、静止画、または映像と音声を送信する場合、映像信号処理部ex355は、カメラ部ex365から供給された映像信号を上記各実施の形態で示した動画像符号化方法によって圧縮符号化し(即ち、本発明の一態様に係る画像符号化装置として機能する)、符号化された映像データを多重/分離部ex353に送出する。また、音声信号処理部ex354は、映像、静止画等をカメラ部ex365で撮像中に音声入力部ex356で収音した音声信号を符号化し、符号化された音声データを多重/分離部ex353に送出する。 When transmitting video, still image, or video and audio in the data communication mode, the video signal processing unit ex355 compresses the video signal supplied from the camera unit ex365 by the moving image coding method described in each of the above embodiments. The encoded video data is encoded (that is, functions as the image encoding device according to an aspect of the present invention), and the encoded video data is sent to the multiplexing/demultiplexing unit ex353. Further, the audio signal processing unit ex354 encodes the audio signal picked up by the audio input unit ex356 while the video unit, the still image, and the like are being captured by the camera unit ex365, and sends the encoded audio data to the multiplexing/demultiplexing unit ex353. To do.

多重/分離部ex353は、映像信号処理部ex355から供給された符号化された映像データと音声信号処理部ex354から供給された符号化された音声データを所定の方式で多重化し、その結果得られる多重化データを変調/復調部(変調/復調回路部)ex352でスペクトラム拡散処理をし、送信/受信部ex351でデジタルアナログ変換処理及び周波数変換処理を施した後にアンテナex350を介して送信する。 The multiplexing/demultiplexing unit ex353 multiplexes the coded video data supplied from the video signal processing unit ex355 and the coded audio data supplied from the audio signal processing unit ex354 by a predetermined method, and the result is obtained. Modulation/demodulation unit (modulation/demodulation circuit unit) ex352 performs spread spectrum processing on the multiplexed data, and transmission/reception unit ex351 performs digital-analog conversion processing and frequency conversion processing, and then transmits the data via antenna ex350.

データ通信モード時にホームページ等にリンクされた動画像ファイルのデータを受信する場合、または映像およびもしくは音声が添付された電子メールを受信する場合、アンテナex350を介して受信された多重化データを復号化するために、多重/分離部ex353は、多重化データを分離することにより映像データのビットストリームと音声データのビットストリームとに分け、同期バスex370を介して符号化された映像データを映像信号処理部ex355に供給するとともに、符号化された音声データを音声信号処理部ex354に供給する。映像信号処理部ex355は、上記各実施の形態で示した動画像符号化方法に対応した動画像復号化方法によって復号化することにより映像信号を復号し(即ち、本発明の一態様に係る画像復号装置として機能する)、LCD制御部ex359を介して表示部ex358から、例えばホームページにリンクされた動画像ファイルに含まれる映像、静止画が表示される。また音声信号処理部ex354は、音声信号を復号し、音声出力部ex357から音声が出力される。 Decode the multiplexed data received via the antenna ex350 when receiving the data of the moving image file linked to the homepage or the like in the data communication mode or when receiving the e-mail with the attached video and/or audio. In order to do so, the demultiplexing/demultiplexing unit ex353 separates the multiplexed data into a bit stream of video data and a bit stream of audio data, and processes the encoded video data via the synchronous bus ex370. In addition to supplying to the unit ex355, the encoded audio data is supplied to the audio signal processing unit ex354. The video signal processing unit ex355 decodes the video signal by performing decoding by the moving picture decoding method corresponding to the moving picture coding method described in each of the above-described embodiments (that is, the image according to one embodiment of the present invention). The display unit ex358 displays, via the LCD control unit ex359, a video image or a still image included in a moving image file linked to a home page, for example. Further, the audio signal processing unit ex354 decodes the audio signal and the audio output unit ex357 outputs the audio.

また、上記携帯電話ex114等の端末は、テレビex300と同様に、符号化器・復号化器を両方持つ送受信型端末の他に、符号化器のみの送信端末、復号化器のみの受信端末という3通りの実装形式が考えられる。さらに、デジタル放送用システムex200において、映像データに音楽データなどが多重化された多重化データを受信、送信するとして説明したが、音声データ以外に映像に関連する文字データなどが多重化されたデータであってもよいし、多重化データではなく映像データ自体であってもよい。 Further, the terminal such as the mobile phone ex114 is a transmission/reception terminal having both encoders/decoders, as well as the television ex300, as well as a transmission terminal having only an encoder and a receiving terminal having only a decoder. There are three possible implementation formats. Further, in the digital broadcasting system ex200, it has been described that the multiplexed data in which the music data and the like are multiplexed in the video data is received and transmitted, but the data in which the character data and the like related to the video are multiplexed in addition to the audio data. Or the video data itself may be used instead of the multiplexed data.

このように、上記各実施の形態で示した動画像符号化方法あるいは動画像復号化方法を上述したいずれの機器・システムに用いることは可能であり、そうすることで、上記各実施の形態で説明した効果を得ることができる。 As described above, it is possible to use the moving picture coding method or the moving picture decoding method shown in each of the above-described embodiments in any of the above-described devices and systems, and by doing so, in each of the above-described embodiments, The effect described can be obtained.

また、本発明はかかる上記実施の形態に限定されるものではなく、本発明の範囲を逸脱することなく種々の変形または修正が可能である。 Further, the present invention is not limited to the above-described embodiment, and various changes or modifications can be made without departing from the scope of the present invention.

(実施の形態4)
上記各実施の形態で示した動画像符号化方法または装置と、MPEG−2、MPEG4−AVC、VC−1など異なる規格に準拠した動画像符号化方法または装置とを、必要に応じて適宜切替えることにより、映像データを生成することも可能である。
(Embodiment 4)
The moving picture coding method or device shown in each of the above embodiments and the moving picture coding method or device conforming to different standards such as MPEG-2, MPEG4-AVC, and VC-1 are appropriately switched as necessary. By doing so, it is possible to generate video data.

ここで、それぞれ異なる規格に準拠する複数の映像データを生成した場合、復号する際に、それぞれの規格に対応した復号方法を選択する必要がある。しかしながら、復号する映像データが、どの規格に準拠するものであるか識別できないため、適切な復号方法を選択することができないという課題を生じる。 Here, when a plurality of video data conforming to different standards are generated, when decoding, it is necessary to select a decoding method corresponding to each standard. However, since it is not possible to identify which standard the video data to be decoded complies with, a problem arises in that an appropriate decoding method cannot be selected.

この課題を解決するために、映像データに音声データなどを多重化した多重化データは、映像データがどの規格に準拠するものであるかを示す識別情報を含む構成とする。上記各実施の形態で示す動画像符号化方法または装置によって生成された映像データを含む多重化データの具体的な構成を以下説明する。多重化データは、MPEG−2トランスポートストリーム形式のデジタルストリームである。 In order to solve this problem, multiplexed data obtained by multiplexing audio data and the like on video data includes identification information indicating which standard the video data complies with. A specific configuration of multiplexed data including video data generated by the moving picture coding method or apparatus shown in each of the above embodiments will be described below. The multiplexed data is a digital stream in the MPEG-2 transport stream format.

図23は、多重化データの構成を示す図である。図23に示すように多重化データは、ビデオストリーム、オーディオストリーム、プレゼンテーショングラフィックスストリーム(PG)、インタラクティブグラフィックスストリームのうち、1つ以上を多重化することで得られる。ビデオストリームは映画の主映像および副映像を、オーディオストリーム(IG)は映画の主音声部分とその主音声とミキシングする副音声を、プレゼンテーショングラフィックスストリームは、映画の字幕をそれぞれ示している。ここで主映像とは画面に表示される通常の映像を示し、副映像とは主映像の中に小さな画面で表示する映像のことである。また、インタラクティブグラフィックスストリームは、画面上にGUI部品を配置することにより作成される対話画面を示している。ビデオストリームは、上記各実施の形態で示した動画像符号化方法または装置、従来のMPEG−2、MPEG4−AVC、VC−1などの規格に準拠した動画像符号化方法または装置によって符号化されている。オーディオストリームは、ドルビーAC−3、Dolby Digital Plus、MLP、DTS、DTS−HD、または、リニアPCMのなどの方式で符号化されている。 FIG. 23 is a diagram showing the structure of multiplexed data. As shown in FIG. 23, the multiplexed data can be obtained by multiplexing at least one of a video stream, an audio stream, a presentation graphics stream (PG), and an interactive graphics stream. The video stream indicates the main video and sub-video of the movie, the audio stream (IG) indicates the main audio part of the movie and the sub-audio that mixes with the main audio, and the presentation graphics stream indicates the subtitle of the movie. Here, the main video refers to a normal video displayed on the screen, and the sub video refers to a video displayed on the small screen in the main video. The interactive graphics stream indicates an interactive screen created by arranging GUI parts on the screen. The video stream is encoded by the moving picture coding method or apparatus shown in each of the above-described embodiments and the moving picture coding method or apparatus conforming to the standards such as the conventional MPEG-2, MPEG4-AVC, VC-1 and the like. ing. The audio stream is encoded by a method such as Dolby AC-3, Dolby Digital Plus, MLP, DTS, DTS-HD, or linear PCM.

多重化データに含まれる各ストリームはPIDによって識別される。例えば、映画の映像に利用するビデオストリームには0x1011が、オーディオストリームには0x1100から0x111Fまでが、プレゼンテーショングラフィックスには0x1200から0x121Fまでが、インタラクティブグラフィックスストリームには0x1400から0x141Fまでが、映画の副映像に利用するビデオストリームには0x1B00から0x1B1Fまで、主音声とミキシングする副音声に利用するオーディオストリームには0x1A00から0x1A1Fが、それぞれ割り当てられている。 Each stream included in the multiplexed data is identified by PID. For example, 0x1011 is used for a video stream used for movie images, 0x1100 to 0x111F is used for an audio stream, 0x1200 to 0x121F is used for presentation graphics, and 0x1400 to 0x141F is used for an interactive graphics stream. 0x1B00 to 0x1B1F are assigned to the video stream used for the sub video, and 0x1A00 to 0x1A1F are assigned to the audio stream used for the sub audio mixed with the main audio.

図24は、多重化データがどのように多重化されるかを模式的に示す図である。まず、複数のビデオフレームからなるビデオストリームex235、複数のオーディオフレームからなるオーディオストリームex238を、それぞれPESパケット列ex236およびex239に変換し、TSパケットex237およびex240に変換する。同じくプレゼンテーショングラフィックスストリームex241およびインタラクティブグラフィックスex244のデータをそれぞれPESパケット列ex242およびex245に変換し、さらにTSパケットex243およびex246に変換する。多重化データex247はこれらのTSパケットを1本のストリームに多重化することで構成される。 FIG. 24 is a diagram schematically showing how multiplexed data is multiplexed. First, the video stream ex235 including a plurality of video frames and the audio stream ex238 including a plurality of audio frames are converted into PES packet strings ex236 and ex239, respectively, and converted into TS packets ex237 and ex240. Similarly, the data of the presentation graphics stream ex241 and the data of the interactive graphics ex244 are converted into PES packet strings ex242 and ex245, respectively, and further converted into TS packets ex243 and ex246. The multiplexed data ex247 is configured by multiplexing these TS packets into one stream.

図25は、PESパケット列に、ビデオストリームがどのように格納されるかをさらに詳しく示している。図25における第1段目はビデオストリームのビデオフレーム列を示す。第2段目は、PESパケット列を示す。図25の矢印yy1,yy2,yy3,yy4に示すように、ビデオストリームにおける複数のVideo Presentation UnitであるIピクチャ、Bピクチャ、Pピクチャは、ピクチャ毎に分割され、PESパケットのペイロードに格納される。各PESパケットはPESヘッダを持ち、PESヘッダには、ピクチャの表示時刻であるPTS(Presentation Time−Stamp)やピクチャの復号時刻であるDTS(Decoding Time−Stamp)が格納される。 FIG. 25 shows in more detail how the video stream is stored in the PES packet sequence. The first row in FIG. 25 shows a video frame sequence of a video stream. The second row shows the PES packet sequence. As shown by arrows yy1, yy2, yy3, and yy4 in FIG. 25, a plurality of Video Presentation Units of I picture, B picture, and P picture in the video stream are divided for each picture and stored in the payload of the PES packet. .. Each PES packet has a PES header, and the PES header stores PTS (Presentation Time-Stamp) which is the display time of the picture and DTS (Decoding Time-Stamp) which is the decoding time of the picture.

図26は、多重化データに最終的に書き込まれるTSパケットの形式を示している。TSパケットは、ストリームを識別するPIDなどの情報を持つ4ByteのTSヘッダとデータを格納する184ByteのTSペイロードから構成される188Byte固定長のパケットであり、上記PESパケットは分割されTSペイロードに格納される。BD−ROMの場合、TSパケットには、4ByteのTP_Extra_Headerが付与され、192Byteのソースパケットを構成し、多重化データに書き込まれる。TP_Extra_HeaderにはATS(Arrival_Time_Stamp)などの情報が記載される。ATSは当該TSパケットのデコーダのPIDフィルタへの転送開始時刻を示す。多重化データには図26下段に示すようにソースパケットが並ぶこととなり、多重化データの先頭からインクリメントする番号はSPN(ソースパケットナンバー)と呼ばれる。 FIG. 26 shows the format of TS packets finally written in the multiplexed data. The TS packet is a 188-byte fixed-length packet composed of a 4-byte TS header having information such as PID for identifying a stream and a 184-byte TS payload storing data. The PES packet is divided and stored in the TS payload. It In the case of BD-ROM, TP_Extra_Header of 4 bytes is added to the TS packet to form a source packet of 192 bytes, which is written in the multiplexed data. Information such as ATS (Arrival_Time_Stamp) is described in TP_Extra_Header. ATS indicates the transfer start time of the TS packet to the PID filter of the decoder. Source packets are arranged in the multiplexed data as shown in the lower part of FIG. 26, and the number incremented from the beginning of the multiplexed data is called SPN (source packet number).

また、多重化データに含まれるTSパケットには、映像・音声・字幕などの各ストリーム以外にもPAT(Program Association Table)、PMT(Program Map Table)、PCR(Program Clock Reference)などがある。PATは多重化データ中に利用されるPMTのPIDが何であるかを示し、PAT自身のPIDは0で登録される。PMTは、多重化データ中に含まれる映像・音声・字幕などの各ストリームのPIDと各PIDに対応するストリームの属性情報を持ち、また多重化データに関する各種ディスクリプタを持つ。ディスクリプタには多重化データのコピーを許可・不許可を指示するコピーコントロール情報などがある。PCRは、ATSの時間軸であるATC(Arrival Time Clock)とPTS・DTSの時間軸であるSTC(System Time Clock)の同期を取るために、そのPCRパケットがデコーダに転送されるATSに対応するSTC時間の情報を持つ。 The TS packets included in the multiplexed data include PAT (Program Association Table), PMT (Program Map Table), PCR (Program Clock Reference), and the like, in addition to streams such as video, audio, and subtitles. The PAT indicates what the PID of the PMT used in the multiplexed data is, and the PID of the PAT itself is registered as 0. The PMT has PID of each stream such as video/audio/caption included in the multiplexed data and attribute information of the stream corresponding to each PID, and also has various descriptors related to the multiplexed data. The descriptor includes copy control information for instructing permission/prohibition of copying of multiplexed data. The PCR corresponds to the ATS whose PCR packet is transferred to the decoder in order to synchronize the ATC (Arrival Time Clock) which is the time axis of the ATS and the STC (System Time Clock) which is the time axis of the PTS/DTS. Holds STC time information.

図27はPMTのデータ構造を詳しく説明する図である。PMTの先頭には、そのPMTに含まれるデータの長さなどを記したPMTヘッダが配置される。その後ろには、多重化データに関するディスクリプタが複数配置される。上記コピーコントロール情報などが、ディスクリプタとして記載される。ディスクリプタの後には、多重化データに含まれる各ストリームに関するストリーム情報が複数配置される。ストリーム情報は、ストリームの圧縮コーデックなどを識別するためストリームタイプ、ストリームのPID、ストリームの属性情報(フレームレート、アスペクト比など)が記載されたストリームディスクリプタから構成される。ストリームディスクリプタは多重化データに存在するストリームの数だけ存在する。 FIG. 27 is a diagram for explaining the data structure of the PMT in detail. At the beginning of the PMT, a PMT header describing the length of data included in the PMT and the like is arranged. Behind it, a plurality of descriptors regarding multiplexed data are arranged. The copy control information and the like are described as descriptors. A plurality of stream information regarding each stream included in the multiplexed data is arranged after the descriptor. The stream information is composed of a stream type, a stream PID for identifying a compression codec of the stream, and a stream descriptor in which stream attribute information (frame rate, aspect ratio, etc.) is described. There are as many stream descriptors as there are streams in the multiplexed data.

記録媒体などに記録する場合には、上記多重化データは、多重化データ情報ファイルと共に記録される。 When recorded on a recording medium or the like, the multiplexed data is recorded together with the multiplexed data information file.

多重化データ情報ファイルは、図28に示すように多重化データの管理情報であり、多重化データと1対1に対応し、多重化データ情報、ストリーム属性情報とエントリマップから構成される。 The multiplexed data information file is management information of multiplexed data as shown in FIG. 28, and corresponds to the multiplexed data in a one-to-one correspondence, and is composed of multiplexed data information, stream attribute information, and an entry map.

多重化データ情報は図28に示すようにシステムレート、再生開始時刻、再生終了時刻から構成されている。システムレートは多重化データの、後述するシステムターゲットデコーダのPIDフィルタへの最大転送レートを示す。多重化データ中に含まれるATSの間隔はシステムレート以下になるように設定されている。再生開始時刻は多重化データの先頭のビデオフレームのPTSであり、再生終了時刻は多重化データの終端のビデオフレームのPTSに1フレーム分の再生間隔を足したものが設定される。 As shown in FIG. 28, the multiplexed data information includes a system rate, a reproduction start time, and a reproduction end time. The system rate indicates the maximum transfer rate of multiplexed data to the PID filter of the system target decoder described later. The interval between ATSs included in the multiplexed data is set to be equal to or lower than the system rate. The playback start time is the PTS of the first video frame of the multiplexed data, and the playback end time is set to the PTS of the video frame at the end of the multiplexed data plus the playback interval of one frame.

ストリーム属性情報は図29に示すように、多重化データに含まれる各ストリームについての属性情報が、PID毎に登録される。属性情報はビデオストリーム、オーディオストリーム、プレゼンテーショングラフィックスストリーム、インタラクティブグラフィックスストリーム毎に異なる情報を持つ。ビデオストリーム属性情報は、そのビデオストリームがどのような圧縮コーデックで圧縮されたか、ビデオストリームを構成する個々のピクチャデータの解像度がどれだけであるか、アスペクト比はどれだけであるか、フレームレートはどれだけであるかなどの情報を持つ。オーディオストリーム属性情報は、そのオーディオストリームがどのような圧縮コーデックで圧縮されたか、そのオーディオストリームに含まれるチャンネル数は何であるか、何の言語に対応するか、サンプリング周波数がどれだけであるかなどの情報を持つ。これらの情報は、プレーヤが再生する前のデコーダの初期化などに利用される。 As shown in FIG. 29, as the stream attribute information, attribute information about each stream included in the multiplexed data is registered for each PID. The attribute information has different information for each video stream, audio stream, presentation graphics stream, and interactive graphics stream. The video stream attribute information includes what kind of compression codec the video stream was compressed with, what is the resolution of each picture data that constitutes the video stream, what is the aspect ratio, and what is the frame rate. It has information such as how much it is. The audio stream attribute information includes what compression codec the audio stream was compressed with, what the number of channels included in the audio stream, what language it corresponds to, what sampling frequency, etc. With information. These pieces of information are used for initialization of the decoder before reproduction by the player.

本実施の形態においては、上記多重化データのうち、PMTに含まれるストリームタイプを利用する。また、記録媒体に多重化データが記録されている場合には、多重化データ情報に含まれる、ビデオストリーム属性情報を利用する。具体的には、上記各実施の形態で示した動画像符号化方法または装置において、PMTに含まれるストリームタイプ、または、ビデオストリーム属性情報に対し、上記各実施の形態で示した動画像符号化方法または装置によって生成された映像データであることを示す固有の情報を設定するステップまたは手段を設ける。この構成により、上記各実施の形態で示した動画像符号化方法または装置によって生成した映像データと、他の規格に準拠する映像データとを識別することが可能になる。 In the present embodiment, of the multiplexed data, the stream type included in the PMT is used. When multiplexed data is recorded on the recording medium, the video stream attribute information included in the multiplexed data information is used. Specifically, in the moving picture coding method or apparatus shown in each of the above embodiments, the moving picture coding shown in each of the above embodiments is applied to the stream type included in the PMT or the video stream attribute information. There is provided a step or means for setting unique information indicating that the video data is generated by the method or apparatus. With this configuration, it is possible to distinguish between the video data generated by the moving picture coding method or apparatus shown in each of the above embodiments and the video data compliant with other standards.

また、本実施の形態における動画像復号化方法のステップを図30に示す。ステップexS100において、多重化データからPMTに含まれるストリームタイプ、または、多重化データ情報に含まれるビデオストリーム属性情報を取得する。次に、ステップexS101において、ストリームタイプ、または、ビデオストリーム属性情報が上記各実施の形態で示した動画像符号化方法または装置によって生成された多重化データであることを示しているか否かを判断する。そして、ストリームタイプ、または、ビデオストリーム属性情報が上記各実施の形態で示した動画像符号化方法または装置によって生成されたものであると判断された場合には、ステップexS102において、上記各実施の形態で示した動画像復号方法により復号を行う。また、ストリームタイプ、または、ビデオストリーム属性情報が、従来のMPEG−2、MPEG4−AVC、VC−1などの規格に準拠するものであることを示している場合には、ステップexS103において、従来の規格に準拠した動画像復号方法により復号を行う。 Further, FIG. 30 shows steps of the moving picture decoding method according to the present embodiment. In step exS100, the stream type included in the PMT or the video stream attribute information included in the multiplexed data information is acquired from the multiplexed data. Next, in step exS101, it is determined whether or not the stream type or the video stream attribute information indicates that the data is multiplexed data generated by the moving picture coding method or apparatus described in each of the above embodiments. To do. If it is determined that the stream type or the video stream attribute information is generated by the moving picture coding method or apparatus described in each of the above embodiments, in step exS102, each of the above embodiments is performed. Decoding is performed by the moving picture decoding method shown in the form. If the stream type or the video stream attribute information indicates that the stream type or the video stream attribute information complies with the standard such as the conventional MPEG-2, MPEG4-AVC, or VC-1, in step exS103, the conventional Decoding is performed by a moving image decoding method that conforms to the standard.

このように、ストリームタイプ、または、ビデオストリーム属性情報に新たな固有値を設定することにより、復号する際に、上記各実施の形態で示した動画像復号化方法または装置で復号可能であるかを判断することができる。従って、異なる規格に準拠する多重化データが入力された場合であっても、適切な復号化方法または装置を選択することができるため、エラーを生じることなく復号することが可能となる。また、本実施の形態で示した動画像符号化方法または装置、または、動画像復号方法または装置を、上述したいずれの機器・システムに用いることも可能である。 In this way, by setting a new eigenvalue in the stream type or the video stream attribute information, it is possible to determine whether the moving image decoding method or device shown in each of the above embodiments can be used for decoding. You can judge. Therefore, even when multiplexed data conforming to different standards is input, an appropriate decoding method or device can be selected, and therefore decoding can be performed without causing an error. Further, the moving picture coding method or apparatus or the moving picture decoding method or apparatus shown in the present embodiment can be used in any of the above-described devices and systems.

(実施の形態5)
上記各実施の形態で示した動画像符号化方法および装置、動画像復号化方法および装置は、典型的には集積回路であるLSIで実現される。一例として、図31に1チップ化されたLSIex500の構成を示す。LSIex500は、以下に説明する要素ex501、ex502、ex503、ex504、ex505、ex506、ex507、ex508、ex509を備え、各要素はバスex510を介して接続している。電源回路部ex505は電源がオン状態の場合に各部に対して電力を供給することで動作可能な状態に起動する。
(Embodiment 5)
The moving picture coding method and apparatus and the moving picture decoding method and apparatus shown in each of the above embodiments are typically realized by an LSI which is an integrated circuit. As an example, FIG. 31 illustrates a configuration of the LSI ex500 that is made into one chip. The LSI ex500 includes elements ex501, ex502, ex503, ex504, ex505, ex506, ex507, ex508, and ex509, which are described below, and each element is connected via a bus ex510. The power supply circuit unit ex505 starts up in an operable state by supplying electric power to each unit when the power supply is on.

例えば符号化処理を行う場合には、LSIex500は、CPUex502、メモリコントローラex503、ストリームコントローラex504、駆動周波数制御部ex512等を有する制御部ex501の制御に基づいて、AV I/Oex509によりマイクex117やカメラex113等からAV信号を入力する。入力されたAV信号は、一旦SDRAM等の外部のメモリex511に蓄積される。制御部ex501の制御に基づいて、蓄積したデータは処理量や処理速度に応じて適宜複数回に分けるなどされ信号処理部ex507に送られ、信号処理部ex507において音声信号の符号化および/または映像信号の符号化が行われる。ここで映像信号の符号化処理は上記各実施の形態で説明した符号化処理である。信号処理部ex507ではさらに、場合により符号化された音声データと符号化された映像データを多重化するなどの処理を行い、ストリームI/Oex506から外部に出力する。この出力された多重化データは、基地局ex107に向けて送信されたり、または記録メディアex215に書き込まれたりする。なお、多重化する際には同期するよう、一旦バッファex508にデータを蓄積するとよい。 For example, when performing the encoding process, the LSI ex500 uses the AV I/O ex509 to control the microphone ex117 and the camera ex113 under the control of the control unit ex501 including the CPU ex502, the memory controller ex503, the stream controller ex504, and the drive frequency control unit ex512. AV signal is input from the above. The input AV signal is temporarily stored in an external memory ex511 such as SDRAM. Based on the control of the control unit ex501, the accumulated data is appropriately divided into a plurality of times according to the processing amount and the processing speed, and is sent to the signal processing unit ex507, and the signal processing unit ex507 encodes the audio signal and/or video. The signal is encoded. Here, the encoding process of the video signal is the encoding process described in each of the above embodiments. The signal processing unit ex507 further performs processing such as multiplexing encoded audio data and encoded video data, as the case may be, and outputs the stream I/O ex506 to the outside. The output multiplexed data is transmitted to the base station ex107 or written in the recording medium ex215. Note that data may be temporarily stored in the buffer ex508 so as to be synchronized when multiplexing.

なお、上記では、メモリex511がLSIex500の外部の構成として説明したが、LSIex500の内部に含まれる構成であってもよい。バッファex508も1つに限ったものではなく、複数のバッファを備えていてもよい。また、LSIex500は1チップ化されてもよいし、複数チップ化されてもよい。 Note that, in the above, the memory ex511 is described as a configuration outside the LSI ex500, but may be a configuration included inside the LSI ex500. The number of buffers ex508 is not limited to one, and a plurality of buffers may be provided. The LSI ex500 may be made into one chip or may be made into a plurality of chips.

また、上記では、制御部ex501が、CPUex502、メモリコントローラex503、ストリームコントローラex504、駆動周波数制御部ex512等を有するとしているが、制御部ex501の構成は、この構成に限らない。例えば、信号処理部ex507がさらにCPUを備える構成であってもよい。信号処理部ex507の内部にもCPUを設けることにより、処理速度をより向上させることが可能になる。また、他の例として、CPUex502が信号処理部ex507、または信号処理部ex507の一部である例えば音声信号処理部を備える構成であってもよい。このような場合には、制御部ex501は、信号処理部ex507、またはその一部を有するCPUex502を備える構成となる。 In the above description, the control unit ex501 has the CPU ex502, the memory controller ex503, the stream controller ex504, the drive frequency control unit ex512, and the like, but the configuration of the control unit ex501 is not limited to this configuration. For example, the signal processing unit ex507 may further include a CPU. By providing a CPU inside the signal processing unit ex507 as well, the processing speed can be further improved. Further, as another example, the CPU ex502 may be configured to include a signal processing unit ex507 or an audio signal processing unit that is a part of the signal processing unit ex507. In such a case, the control unit ex501 is configured to include the signal processing unit ex507 or the CPU ex502 having a part thereof.

なお、ここでは、LSIとしたが、集積度の違いにより、IC、システムLSI、スーパーLSI、ウルトラLSIと呼称されることもある。 It should be noted that although the name used here is LSI, it may also be called IC, system LSI, super LSI, or ultra LSI depending on the degree of integration.

また、集積回路化の手法はLSIに限るものではなく、専用回路または汎用プロセッサで実現してもよい。LSI製造後に、プログラムすることが可能なFPGA(Field Programmable Gate Array)や、LSI内部の回路セルの接続や設定を再構成可能なリコンフィギュラブル・プロセッサを利用してもよい。このようなプログラマブル・ロジック・デバイスは、典型的には、ソフトウェア又はファームウェアを構成するプログラムを、ロードする又はメモリ等から読み込むことで、上記各実施の形態で示した動画像符号化方法、又は動画像復号化方法を実行することができる。 Further, the method of circuit integration is not limited to LSI, and it may be realized by a dedicated circuit or a general-purpose processor. A field programmable gate array (FPGA) that can be programmed after the LSI is manufactured, or a reconfigurable processor capable of reconfiguring the connection and setting of circuit cells inside the LSI may be used. Such a programmable logic device is typically loaded with a program constituting software or firmware or read from a memory or the like to thereby obtain the moving image coding method or moving image shown in each of the above embodiments. An image decoding method can be performed.

さらには、半導体技術の進歩または派生する別技術によりLSIに置き換わる集積回路化の技術が登場すれば、当然、その技術を用いて機能ブロックの集積化を行ってもよい。バイオ技術の適応等が可能性としてありえる。 Furthermore, if integrated circuit technology comes out to replace LSI's as a result of the advancement of semiconductor technology or a derivative other technology, it is naturally also possible to carry out function block integration using this technology. There is a possibility that biotechnology will be applied.

(実施の形態6)
上記各実施の形態で示した動画像符号化方法または装置によって生成された映像データを復号する場合、従来のMPEG−2、MPEG4−AVC、VC−1などの規格に準拠する映像データを復号する場合に比べ、処理量が増加することが考えられる。そのため、LSIex500において、従来の規格に準拠する映像データを復号する際のCPUex502の駆動周波数よりも高い駆動周波数に設定する必要がある。しかし、駆動周波数を高くすると、消費電力が高くなるという課題が生じる。
(Embodiment 6)
When decoding the video data generated by the moving picture coding method or apparatus shown in each of the above embodiments, the video data complying with the conventional standards such as MPEG-2, MPEG4-AVC, and VC-1 are decoded. It is conceivable that the processing amount will increase as compared with the case. Therefore, in the LSI ex500, it is necessary to set the drive frequency higher than the drive frequency of the CPU ex502 when decoding the video data conforming to the conventional standard. However, when the driving frequency is increased, there is a problem that power consumption increases.

この課題を解決するために、テレビex300、LSIex500などの動画像復号化装置は、映像データがどの規格に準拠するものであるかを識別し、規格に応じて駆動周波数を切替える構成とする。図32は、本実施の形態における構成ex800を示している。駆動周波数切替え部ex803は、映像データが、上記各実施の形態で示した動画像符号化方法または装置によって生成されたものである場合には、駆動周波数を高く設定する。そして、上記各実施の形態で示した動画像復号化方法を実行する復号処理部ex801に対し、映像データを復号するよう指示する。一方、映像データが、従来の規格に準拠する映像データである場合には、映像データが、上記各実施の形態で示した動画像符号化方法または装置によって生成されたものである場合に比べ、駆動周波数を低く設定する。そして、従来の規格に準拠する復号処理部ex802に対し、映像データを復号するよう指示する。 In order to solve this problem, the moving picture decoding apparatus such as the television ex300 and the LSI ex500 is configured to identify which standard the video data complies with and switch the drive frequency according to the standard. FIG. 32 shows a configuration ex800 in the present embodiment. The drive frequency switching unit ex803 sets the drive frequency high when the video data is generated by the moving picture coding method or apparatus shown in each of the above embodiments. Then, the decoding processing unit ex801 that executes the moving picture decoding method described in each of the above embodiments is instructed to decode the video data. On the other hand, when the video data is video data complying with the conventional standard, as compared with the case where the video data is generated by the moving picture coding method or device shown in each of the above embodiments, Set the drive frequency low. Then, the decoding processing unit ex802 conforming to the conventional standard is instructed to decode the video data.

より具体的には、駆動周波数切替え部ex803は、図31のCPUex502と駆動周波数制御部ex512から構成される。また、上記各実施の形態で示した動画像復号化方法を実行する復号処理部ex801、および、従来の規格に準拠する復号処理部ex802は、図31の信号処理部ex507に該当する。CPUex502は、映像データがどの規格に準拠するものであるかを識別する。そして、CPUex502からの信号に基づいて、駆動周波数制御部ex512は、駆動周波数を設定する。また、CPUex502からの信号に基づいて、信号処理部ex507は、映像データの復号を行う。ここで、映像データの識別には、例えば、実施の形態4で記載した識別情報を利用することが考えられる。識別情報に関しては、実施の形態4で記載したものに限られず、映像データがどの規格に準拠するか識別できる情報であればよい。例えば、映像データがテレビに利用されるものであるか、ディスクに利用されるものであるかなどを識別する外部信号に基づいて、映像データがどの規格に準拠するものであるか識別可能である場合には、このような外部信号に基づいて識別してもよい。また、CPUex502における駆動周波数の選択は、例えば、図34のような映像データの規格と、駆動周波数とを対応付けたルックアップテーブルに基づいて行うことが考えられる。ルックアップテーブルを、バッファex508や、LSIの内部メモリに格納しておき、CPUex502がこのルックアップテーブルを参照することにより、駆動周波数を選択することが可能である。 More specifically, the drive frequency switching unit ex803 includes the CPU ex502 and the drive frequency control unit ex512 of FIG. Further, the decoding processing unit ex801 that executes the moving picture decoding method described in each of the above-described embodiments and the decoding processing unit ex802 that conforms to the conventional standard correspond to the signal processing unit ex507 in FIG. The CPU ex502 identifies which standard the video data complies with. Then, the drive frequency control unit ex512 sets the drive frequency based on the signal from the CPU ex502. Further, the signal processing unit ex507 decodes the video data based on the signal from the CPU ex502. Here, for identification of the video data, for example, the identification information described in the fourth embodiment may be used. The identification information is not limited to that described in the fourth embodiment, and may be any information as long as it can identify which standard the video data complies with. For example, it is possible to identify which standard the video data complies with based on an external signal that identifies whether the video data is used for a television or a disc. In some cases, identification may be performed based on such an external signal. Further, it is conceivable that the selection of the driving frequency in the CPU ex502 is performed based on, for example, a look-up table as shown in FIG. The lookup table can be stored in the buffer ex508 or the internal memory of the LSI, and the CPU ex502 can select the drive frequency by referring to the lookup table.

図33は、本実施の形態の方法を実施するステップを示している。まず、ステップexS200では、信号処理部ex507において、多重化データから識別情報を取得する。次に、ステップexS201では、CPUex502において、識別情報に基づいて映像データが上記各実施の形態で示した符号化方法または装置によって生成されたものであるか否かを識別する。映像データが上記各実施の形態で示した符号化方法または装置によって生成されたものである場合には、ステップexS202において、駆動周波数を高く設定する信号を、CPUex502が駆動周波数制御部ex512に送る。そして、駆動周波数制御部ex512において、高い駆動周波数に設定される。一方、従来のMPEG−2、MPEG4−AVC、VC−1などの規格に準拠する映像データであることを示している場合には、ステップexS203において、駆動周波数を低く設定する信号を、CPUex502が駆動周波数制御部ex512に送る。そして、駆動周波数制御部ex512において、映像データが上記各実施の形態で示した符号化方法または装置によって生成されたものである場合に比べ、低い駆動周波数に設定される。 FIG. 33 shows steps for carrying out the method of the present embodiment. First, in step exS200, the signal processing unit ex507 acquires identification information from the multiplexed data. Next, in step exS201, the CPU ex502 discriminates based on the identification information whether or not the video data is generated by the encoding method or apparatus shown in each of the above embodiments. When the video data is generated by the encoding method or apparatus described in each of the above-described embodiments, in step exS202, the CPU ex502 sends a signal for setting a high drive frequency to the drive frequency control unit ex512. Then, the drive frequency control unit ex512 sets a high drive frequency. On the other hand, when the video data indicates that the video data conforms to the conventional standards such as MPEG-2, MPEG4-AVC, and VC-1, in step exS203, the CPU ex502 drives a signal for setting the driving frequency low. It is sent to the frequency control unit ex512. Then, in the drive frequency control unit ex512, the drive frequency is set to be lower than that in the case where the video data is generated by the encoding method or apparatus described in each of the above embodiments.

さらに、駆動周波数の切替えに連動して、LSIex500またはLSIex500を含む装置に与える電圧を変更することにより、省電力効果をより高めることが可能である。例えば、駆動周波数を低く設定する場合には、これに伴い、駆動周波数を高く設定している場合に比べ、LSIex500またはLSIex500を含む装置に与える電圧を低く設定することが考えられる。 Furthermore, the power saving effect can be further enhanced by changing the voltage applied to the LSI ex500 or a device including the LSI ex500 in conjunction with the switching of the drive frequency. For example, when the drive frequency is set low, the voltage applied to the LSI ex500 or a device including the LSI ex500 may be set lower accordingly as compared with the case where the drive frequency is set high.

また、駆動周波数の設定方法は、復号する際の処理量が大きい場合に、駆動周波数を高く設定し、復号する際の処理量が小さい場合に、駆動周波数を低く設定すればよく、上述した設定方法に限らない。例えば、MPEG4−AVC規格に準拠する映像データを復号する処理量の方が、上記各実施の形態で示した動画像符号化方法または装置により生成された映像データを復号する処理量よりも大きい場合には、駆動周波数の設定を上述した場合の逆にすることが考えられる。 Further, the method of setting the driving frequency may be such that when the processing amount for decoding is large, the driving frequency is set high, and when the processing amount for decoding is small, the driving frequency is set low. Not limited to the method. For example, when the processing amount for decoding the video data compliant with the MPEG4-AVC standard is larger than the processing amount for decoding the video data generated by the moving picture coding method or apparatus described in each of the above embodiments. For this, it is conceivable that the setting of the drive frequency is reversed from the case described above.

さらに、駆動周波数の設定方法は、駆動周波数を低くする構成に限らない。例えば、識別情報が、上記各実施の形態で示した動画像符号化方法または装置によって生成された映像データであることを示している場合には、LSIex500またはLSIex500を含む装置に与える電圧を高く設定し、従来のMPEG−2、MPEG4−AVC、VC−1などの規格に準拠する映像データであることを示している場合には、LSIex500またはLSIex500を含む装置に与える電圧を低く設定することも考えられる。また、他の例としては、識別情報が、上記各実施の形態で示した動画像符号化方法または装置によって生成された映像データであることを示している場合には、CPUex502の駆動を停止させることなく、従来のMPEG−2、MPEG4−AVC、VC−1などの規格に準拠する映像データであることを示している場合には、処理に余裕があるため、CPUex502の駆動を一時停止させることも考えられる。識別情報が、上記各実施の形態で示した動画像符号化方法または装置によって生成された映像データであることを示している場合であっても、処理に余裕があれば、CPUex502の駆動を一時停止させることも考えられる。この場合は、従来のMPEG−2、MPEG4−AVC、VC−1などの規格に準拠する映像データであることを示している場合に比べて、停止時間を短く設定することが考えられる。 Furthermore, the method of setting the drive frequency is not limited to the configuration of lowering the drive frequency. For example, when the identification information indicates that it is video data generated by the moving picture coding method or apparatus described in each of the above-described embodiments, the voltage applied to the LSI ex500 or the apparatus including the LSI ex500 is set to be high. However, when it is shown that the video data is based on the conventional standards such as MPEG-2, MPEG4-AVC, and VC-1, it may be possible to set a low voltage to be applied to the LSI ex500 or a device including the LSI ex500. To be Further, as another example, when the identification information indicates that the video data is generated by the moving picture coding method or apparatus described in each of the above-described embodiments, the driving of the CPU ex502 is stopped. However, if it indicates that the video data complies with the conventional standards such as MPEG-2, MPEG4-AVC, and VC-1, the CPU ex502 must be temporarily stopped because there is enough processing. Can also be considered. Even if the identification information indicates that it is the video data generated by the moving picture coding method or apparatus described in each of the above embodiments, if there is a margin in the processing, the CPU ex502 is temporarily driven. It is possible to stop it. In this case, it is conceivable to set the stop time shorter than that in the case where it is shown that the video data complies with the conventional standards such as MPEG-2, MPEG4-AVC, and VC-1.

このように、映像データが準拠する規格に応じて、駆動周波数を切替えることにより、省電力化を図ることが可能になる。また、電池を用いてLSIex500またはLSIex500を含む装置を駆動している場合には、省電力化に伴い、電池の寿命を長くすることが可能である。 In this way, it is possible to save power by switching the drive frequency according to the standard with which the video data complies. Further, when the LSI ex500 or a device including the LSI ex500 is driven by using a battery, it is possible to prolong the life of the battery due to power saving.

(実施の形態7)
テレビや、携帯電話など、上述した機器・システムには、異なる規格に準拠する複数の映像データが入力される場合がある。このように、異なる規格に準拠する複数の映像データが入力された場合にも復号できるようにするために、LSIex500の信号処理部ex507が複数の規格に対応している必要がある。しかし、それぞれの規格に対応する信号処理部ex507を個別に用いると、LSIex500の回路規模が大きくなり、また、コストが増加するという課題が生じる。
(Embodiment 7)
A plurality of video data conforming to different standards may be input to the above-mentioned devices and systems such as a television and a mobile phone. As described above, the signal processing unit ex507 of the LSI ex500 needs to be compatible with a plurality of standards in order to enable decoding even when a plurality of video data conforming to different standards are input. However, if the signal processing units ex507 corresponding to the respective standards are individually used, the circuit scale of the LSI ex500 becomes large and the cost increases.

この課題を解決するために、上記各実施の形態で示した動画像復号方法を実行するための復号処理部と、従来のMPEG−2、MPEG4−AVC、VC−1などの規格に準拠する復号処理部とを一部共有化する構成とする。この構成例を図35Aのex900に示す。例えば、上記各実施の形態で示した動画像復号方法と、MPEG4−AVC規格に準拠する動画像復号方法とは、エントロピー符号化、逆量子化、デブロッキング・フィルタ、動き補償などの処理において処理内容が一部共通する。共通する処理内容については、MPEG4−AVC規格に対応する復号処理部ex902を共有し、MPEG4−AVC規格に対応しない、本発明の一態様に特有の他の処理内容については、専用の復号処理部ex901を用いるという構成が考えられる。特に、本発明の一態様は、エントロピー符号化に特徴を有していることから、例えば、エントロピー符号化については専用の復号処理部ex901を用い、それ以外の逆量子化、デブロッキング・フィルタ、動き補償のいずれか、または、全ての処理については、復号処理部を共有することが考えられる。復号処理部の共有化に関しては、共通する処理内容については、上記各実施の形態で示した動画像復号化方法を実行するための復号処理部を共有し、MPEG4−AVC規格に特有の処理内容については、専用の復号処理部を用いる構成であってもよい。 In order to solve this problem, a decoding processing unit for executing the moving picture decoding method shown in each of the above-described embodiments, and decoding conforming to the conventional standards such as MPEG-2, MPEG4-AVC, and VC-1. A part of the processing unit is shared. An example of this configuration is shown as ex900 in FIG. 35A. For example, the moving picture decoding method shown in each of the above embodiments and the moving picture decoding method conforming to the MPEG4-AVC standard are processed in processing such as entropy coding, dequantization, deblocking filter, and motion compensation. Some contents are common. For common processing contents, the decoding processing unit ex902 corresponding to the MPEG4-AVC standard is shared, and for other processing contents specific to one aspect of the present invention that do not correspond to the MPEG4-AVC standard, a dedicated decoding processing unit is used. A configuration using ex901 can be considered. In particular, one aspect of the present invention is characterized by entropy coding, and therefore, for example, a dedicated decoding processing unit ex901 is used for entropy coding, and other dequantization, deblocking filter, It is conceivable to share the decoding processing unit for any or all of the motion compensation processes. Regarding the common processing contents regarding the sharing of the decoding processing unit, the decoding processing unit for executing the moving picture decoding method shown in each of the above embodiments is shared, and the processing contents specific to the MPEG4-AVC standard. For, the configuration may be such that a dedicated decoding processing unit is used.

また、処理を一部共有化する他の例を図35Bのex1000に示す。この例では、本発明の一態様に特有の処理内容に対応した専用の復号処理部ex1001と、他の従来規格に特有の処理内容に対応した専用の復号処理部ex1002と、本発明の一態様に係る動画像復号方法と他の従来規格の動画像復号方法とに共通する処理内容に対応した共用の復号処理部ex1003とを用いる構成としている。ここで、専用の復号処理部ex1001、ex1002は、必ずしも本発明の一態様、または、他の従来規格に特有の処理内容に特化したものではなく、他の汎用処理を実行できるものであってもよい。また、本実施の形態の構成を、LSIex500で実装することも可能である。 In addition, another example of partially sharing the processing is shown in ex1000 of FIG. 35B. In this example, a dedicated decoding processing unit ex1001 corresponding to the processing content specific to one aspect of the present invention, a dedicated decoding processing unit ex1002 corresponding to the processing content specific to another conventional standard, and one aspect of the present invention The common decoding processing unit ex1003 corresponding to the processing content common to the moving picture decoding method according to the present invention and the moving picture decoding method according to another conventional standard is used. Here, the dedicated decoding processing units ex1001 and ex1002 are not necessarily specialized to the processing contents specific to one aspect of the present invention or other conventional standards, and can execute other general-purpose processing. Good. Further, the configuration of this embodiment can be mounted on the LSI ex500.

このように、本発明の一態様に係る動画像復号方法と、従来の規格の動画像復号方法とで共通する処理内容について、復号処理部を共有することにより、LSIの回路規模を小さくし、かつ、コストを低減することが可能である。 As described above, by sharing the decoding processing unit with respect to the processing content common to the moving image decoding method according to one aspect of the present invention and the conventional standard moving image decoding method, the circuit scale of the LSI is reduced, In addition, it is possible to reduce the cost.

本発明は、画像処理装置、画像の撮像装置及び画像の再生装置に適用可能である。具体的には、デジタルスチルカメラ、ムービー、カメラ機能付き携帯電話機、及びスマートフォンなどに、本発明は適用可能である。 The present invention can be applied to an image processing device, an image capturing device, and an image reproducing device. Specifically, the present invention can be applied to a digital still camera, a movie, a mobile phone with a camera function, a smartphone, and the like.

100 画像符号化装置
101 符号ブロック分割部
102 減算部
103 変換部
104 可変長符号化部
105 逆変換部
106 加算部
107 フレームメモリ
108 予測部
111 二値化部
112 算術符号化部
113 コンテキスト格納部
114 コンテキスト初期値設定部
115 算術符号化器データ格納部
116 算術符号化器初期値設定部
117 ゴロム符号化部
200 画像復号装置
201 可変長復号部
202 逆変換部
203 加算部
204 復号ブロック結合部
205フレームメモリ
211 ゴロム復号部
212 算術復号器初期値設定部
213 算術復号部
214 コンテキスト格納部
215 コンテキスト初期値設定部
216 多値化部
100 image coding apparatus 101 code block division unit 102 subtraction unit 103 conversion unit 104 variable length coding unit 105 inverse conversion unit 106 addition unit 107 frame memory 108 prediction unit 111 binarization unit 112 arithmetic coding unit 113 context storage unit 114 Context initial value setting unit 115 Arithmetic encoder data storage unit 116 Arithmetic encoder initial value setting unit 117 Golomb encoding unit 200 Image decoding device 201 Variable length decoding unit 202 Inverse conversion unit 203 Adder unit 204 Decoding block combining unit 205 frames Memory 211 Golomb decoding unit 212 Arithmetic decoder initial value setting unit 213 Arithmetic decoding unit 214 Context storage unit 215 Context initial value setting unit 216 Multivalued unit

Claims (6)

画像信号に対して算術符号化を行なう画像符号化方法であって、
前記算術符号化に用いる区間を示すRange及び前記区間の最小位置を示すLow位置の少なくとも何れかを導出するための情報を符号化する符号化ステップと、
前記画像信号の算術符号化開始時に、前記情報に基づき前記算術符号化の初期化を行う初期化ステップとを含み、
前記情報は、予め定められた固定値により前記Range及び前記Low位置の少なくとも何れかの初期値を設定するモードと、符号列内の情報を基に前記Range及び前記Low位置の少なくとも何れかの初期値を設定するモードとを切り替えるためのフラグを含み、
前記初期化ステップでは、前記フラグで指定されるモードを用いて前記初期化を行う
画像符号化方法。
An image coding method for performing arithmetic coding on an image signal, comprising:
An encoding step of encoding information for deriving at least one of a Range indicating a section used for the arithmetic encoding and a Low position indicating a minimum position of the section;
At the start of arithmetic encoding of the image signal, including an initialization step of performing initialization of the arithmetic encoding based on the information,
The information is a mode for setting an initial value of at least one of the Range and the Low position by a predetermined fixed value, and an initial value of at least one of the Range and the Low position based on information in a code string. Includes a flag to switch between setting mode and
The image encoding method, wherein in the initialization step, the initialization is performed using a mode designated by the flag.
前記情報は、コンテキストの複数の初期値のセットのうちいずれかを指定するインデックスを含み、
前記初期化ステップでは、前記インデックスで指定される初期値のセットを用いて前記初期化を行う
請求項1記載の画像符号化方法。
The information includes an index that specifies one of a plurality of initial value sets for the context,
The image encoding method according to claim 1, wherein in the initialization step, the initialization is performed using a set of initial values specified by the index.
画像を符号化して生成されるビットストリームに対して算術復号を行なう画像復号方法であって、
前記算術復号に用いる区間を示すRange及び前記区間の最小位置を示すLow位置の少なくとも何れかを導出するための情報を復号する復号ステップと、
前記ビットストリームの算術復号開始時に、前記情報に基づき前記算術復号の初期化を行う初期化ステップとを含み、
前記情報は、予め定められた固定値により前記Range及び前記Low位置の少なくとも何れかの初期値を設定するモードと、符号列内の情報を基に前記Range及び前記Low位置の少なくとも何れかの初期値を設定するモードとを切り替えるためのフラグを含み、
前記初期化ステップでは、前記フラグで指定されるモードを用いて前記初期化を行う
画像復号方法。
An image decoding method for performing arithmetic decoding on a bitstream generated by encoding an image,
A decoding step of decoding information for deriving at least one of a Range indicating a section used for the arithmetic decoding and a Low position indicating a minimum position of the section;
At the start of arithmetic decoding of the bitstream, including an initialization step of initializing the arithmetic decoding based on the information,
The information is a mode for setting an initial value of at least one of the Range and the Low position by a predetermined fixed value, and an initial value of at least one of the Range and the Low position based on information in a code string. Includes a flag to switch between setting mode and
The image decoding method, wherein in the initialization step, the initialization is performed using a mode designated by the flag.
前記情報は、コンテキストの複数の初期値のセットのうちいずれかを指定するインデックスを含み、
前記初期化ステップでは、前記インデックスで指定される初期値のセットを用いて前記初期化を行う
請求項3記載の画像復号方法。
The information includes an index that specifies one of a plurality of initial value sets for the context,
The image decoding method according to claim 3, wherein in the initialization step, the initialization is performed using a set of initial values specified by the index.
画像信号に対して算術符号化を行なう画像符号化装置であって、
前記算術符号化に用いる区間を示すRange及び前記区間の最小位置を示すLow位置の少なくとも何れかを導出するための情報を符号化する符号化部と、
前記画像信号の算術符号化開始時に、前記情報に基づき前記算術符号化の初期化を行う初期化部とを備え、
前記情報は、予め定められた固定値により前記Range及び前記Low位置の少なくとも何れかの初期値を設定するモードと、符号列内の情報を基に前記Range及び前記Low位置の少なくとも何れかの初期値を設定するモードとを切り替えるためのフラグを含み、
前記初期化部は、前記フラグで指定されるモードを用いて前記初期化を行う
画像符号化装置。
An image encoding device for performing arithmetic encoding on an image signal, comprising:
An encoding unit that encodes information for deriving at least one of a Range indicating a section used for the arithmetic encoding and a Low position indicating a minimum position of the section,
At the start of arithmetic coding of the image signal, an initialization unit that initializes the arithmetic coding based on the information,
The information is a mode for setting an initial value of at least one of the Range and the Low position by a predetermined fixed value, and an initial value of at least one of the Range and the Low position based on information in a code string. Includes a flag to switch between setting mode and
The image encoding device, wherein the initialization unit performs the initialization using a mode designated by the flag.
画像を符号化して生成されるビットストリームに対して算術復号を行なう画像復号装置であって、
前記算術復号に用いる区間を示すRange及び前記区間の最小位置を示すLow位置の少なくとも何れかを導出するための情報を復号する復号部と、
前記ビットストリームの算術復号開始時に、前記情報に基づき前記算術復号の初期化を行う初期化部とを備え、
前記情報は、予め定められた固定値により前記Range及び前記Low位置の少なくとも何れかの初期値を設定するモードと、符号列内の情報を基に前記Range及び前記Low位置の少なくとも何れかの初期値を設定するモードとを切り替えるためのフラグを含み、
前記初期化部は、前記フラグで指定されるモードを用いて前記初期化を行う
画像復号装置。
An image decoding device for performing arithmetic decoding on a bitstream generated by encoding an image,
A decoding unit that decodes information for deriving at least one of a Range indicating a section used for the arithmetic decoding and a Low position indicating a minimum position of the section;
At the start of arithmetic decoding of the bitstream, an initialization unit that initializes the arithmetic decoding based on the information,
The information is a mode for setting an initial value of at least one of the Range and the Low position by a predetermined fixed value, and an initial value of at least one of the Range and the Low position based on information in a code string. Includes a flag to switch between setting mode and
The image decoding device, wherein the initialization unit performs the initialization using a mode designated by the flag.
JP2015022526A 2015-02-06 2015-02-06 Image coding method, image decoding method, image coding device, and image decoding device Active JP6717562B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015022526A JP6717562B2 (en) 2015-02-06 2015-02-06 Image coding method, image decoding method, image coding device, and image decoding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015022526A JP6717562B2 (en) 2015-02-06 2015-02-06 Image coding method, image decoding method, image coding device, and image decoding device

Publications (2)

Publication Number Publication Date
JP2016146556A JP2016146556A (en) 2016-08-12
JP6717562B2 true JP6717562B2 (en) 2020-07-01

Family

ID=56686526

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015022526A Active JP6717562B2 (en) 2015-02-06 2015-02-06 Image coding method, image decoding method, image coding device, and image decoding device

Country Status (1)

Country Link
JP (1) JP6717562B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6994868B2 (en) * 2017-08-09 2022-01-14 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Coding device, decoding device, coding method, and decoding method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4062711B2 (en) * 2006-04-17 2008-03-19 俊宏 南 Video encoding device
JP2013131786A (en) * 2010-04-09 2013-07-04 Mitsubishi Electric Corp Video encoder and video decoder
US9338465B2 (en) * 2011-06-30 2016-05-10 Sharp Kabushiki Kaisha Context initialization based on decoder picture buffer
US9332259B2 (en) * 2012-01-18 2016-05-03 Qualcomm Incorporated Indication of use of wavefront parallel processing in video coding

Also Published As

Publication number Publication date
JP2016146556A (en) 2016-08-12

Similar Documents

Publication Publication Date Title
JP6222589B2 (en) Decoding method and decoding apparatus
JP6210396B2 (en) Decoding method and decoding apparatus
JP6341426B2 (en) Image decoding method and image decoding apparatus
JP5932733B2 (en) Image decoding method and image decoding apparatus
JP6633136B2 (en) Image encoding method, image encoding device, and image decoding device
JP6210368B2 (en) Image decoding method and image decoding apparatus
WO2013094199A1 (en) Method for encoding image, image-encoding device, method for decoding image, image-decoding device, and image encoding/decoding device
WO2013175736A1 (en) Video encoding method, video encoding device, video decoding method, video decoding device, and video encoding/decoding device
JP6489337B2 (en) Arithmetic decoding method and arithmetic coding method
KR101888218B1 (en) Image-encoding method, image-decoding method, image-encoding device, image-decoding device, and image-encoding/decoding device
JP6717562B2 (en) Image coding method, image decoding method, image coding device, and image decoding device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180202

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20181204

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20190304

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190425

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190924

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20191219

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: 20200512

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200611

R150 Certificate of patent or registration of utility model

Ref document number: 6717562

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150