JP4559785B2 - Signal processing method and signal processing apparatus - Google Patents

Signal processing method and signal processing apparatus Download PDF

Info

Publication number
JP4559785B2
JP4559785B2 JP2004200202A JP2004200202A JP4559785B2 JP 4559785 B2 JP4559785 B2 JP 4559785B2 JP 2004200202 A JP2004200202 A JP 2004200202A JP 2004200202 A JP2004200202 A JP 2004200202A JP 4559785 B2 JP4559785 B2 JP 4559785B2
Authority
JP
Japan
Prior art keywords
scan
data
read
memory
signal processing
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
JP2004200202A
Other languages
Japanese (ja)
Other versions
JP2005160021A (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 Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
Matsushita Electric Industrial Co Ltd
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 Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP2004200202A priority Critical patent/JP4559785B2/en
Publication of JP2005160021A publication Critical patent/JP2005160021A/en
Application granted granted Critical
Publication of JP4559785B2 publication Critical patent/JP4559785B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、信号処理方法およびその装置に関し、特に高速化が要求されるブロック単位の符号化方法およびその装置に関するものである。   The present invention relates to a signal processing method and apparatus, and more particularly to a block-unit encoding method and apparatus for which high speed is required.

画像圧縮の分野には、MPEG、JPEGなどに代表される画像符号化技術がある。これらの符号化技術は、画像を複数のブロックに分割し、ブロック単位で順次符号化を行う画像圧縮技術である。JPEGに代表される静止画像符号化技術においては、この小さな領域(ブロック)内における空間冗長性を利用して情報量の削減(圧縮)を実現しようとするフレーム内予測符号化(以下、イントラ符号化)が用いられており、MPEGに代表される動画像符号化においては、静止画に比べ、より膨大な情報量を圧縮する要求に応えるため、前記イントラ符号化に加えて、時間方向予測を利用して情報量の削減を図るフレーム間予測符号化(以下、インター符号化)を用いた符号化が用いられている。   In the field of image compression, there are image encoding techniques represented by MPEG, JPEG and the like. These encoding technologies are image compression technologies that divide an image into a plurality of blocks and sequentially perform encoding in units of blocks. In a still image coding technique represented by JPEG, intra-frame predictive coding (hereinafter referred to as intra coding) that attempts to reduce (compress) the amount of information using spatial redundancy in this small area (block). In video coding represented by MPEG, in order to meet the demand for compressing a huge amount of information compared to still images, in addition to the intra coding, temporal direction prediction is performed. Coding using inter-frame predictive coding (hereinafter referred to as inter coding) that uses information to reduce the amount of information is used.

以下、これらの符号化技術において共通して行われる処理について、図22を参照して簡単に説明する。まず、ブロック分割された画像データに対して直交変換手段において離散コサイン変換(以下、DCT)が行われる。次に、より符号化効率(圧縮効率)を高めるために、人間の目には視覚的に識別することが困難である高周波成分をカットするため、量子化手段においてDCT係数に対して量子化が施され量子化DCT係数が得られる。この量子化DCT係数は、ラスタスキャンと呼ばれる書き込み順で記憶ユニットに一時的に記憶される。以上のようにして記憶ユニットに一時的に記憶された量子化DCT係数は、次にジグザグスキャンと呼ばれる読み出し順に読み出され、符号化手段において例えばハフマン符号化が順次行われる。このように、ブロック単位の符号化においては量子化DCT係数が生成される順序と、量子化DCT係数に対して符号化を行う順序とが異なるため、データの並べ替え(スキャンの変更)を実施するための上記記憶ユニットが欠かせない。   Hereinafter, processing performed in common in these encoding techniques will be briefly described with reference to FIG. First, discrete cosine transform (hereinafter referred to as DCT) is performed on the image data divided into blocks by an orthogonal transform unit. Next, in order to further increase the coding efficiency (compression efficiency), in order to cut high-frequency components that are difficult to be visually identified by the human eye, the quantization means performs quantization on the DCT coefficients. A quantized DCT coefficient is obtained. The quantized DCT coefficients are temporarily stored in the storage unit in a writing order called raster scan. The quantized DCT coefficients temporarily stored in the storage unit as described above are then read in the reading order called zigzag scanning, and, for example, Huffman encoding is sequentially performed in the encoding means. As described above, in order to encode block units, the order in which the quantized DCT coefficients are generated differs from the order in which the quantized DCT coefficients are encoded, so data rearrangement (scan change) is performed. The above storage unit is indispensable.

以上のような符号化における高速化を実現するため、メモリへの書き込み、および読み出し制御の高速化技術が知られている(例えば、特許文献1の図9〜図11参照)。   In order to realize high-speed encoding in the above-described manner, a high-speed technique for writing to and reading from a memory is known (see, for example, FIGS. 9 to 11 in Patent Document 1).

以下、特許文献1に開示された技術について、具体的に説明する。   Hereinafter, the technique disclosed in Patent Document 1 will be specifically described.

図23の信号処理装置1001は、特許文献1に開示された典型的な信号処理装置の一例であり、上述のようなデータの並べ替えを高速に行うことが可能な装置である。図24(a)は記憶ユニットの書き込みスキャン(ラスタスキャン)を、図24(b)は同記憶ユニットの読み出しスキャン(ジグザグスキャン)をそれぞれ表している。   A signal processing device 1001 in FIG. 23 is an example of a typical signal processing device disclosed in Patent Document 1, and is a device capable of performing data rearrangement as described above at high speed. FIG. 24A shows a write scan (raster scan) of the storage unit, and FIG. 24B shows a read scan (zigzag scan) of the storage unit.

図23の信号処理装置1001は、書き込みスキャン(第1のスキャン)順に連続する2個のデータ(ここでは、量子化DCT係数で、以下、係数と称す)を入力する入力端子2,3と、これら入力端子2,3から入力される係数を複数のメモリへ振り分けるための入力選択器4,5と、第1のメモリ701および第2のメモリ702で構成されて係数を一時的に記憶する記憶ユニット7と、この記憶ユニット7から読み出された2個の係数から各々1つを選択する出力選択器9,10と、これら出力選択器9,10により選択された2個の係数を出力する出力端子11,12と、記憶ユニット7の書き込みおよび読み出しを制御するためのメモリ制御回路8とで構成される。   The signal processing apparatus 1001 in FIG. 23 includes input terminals 2 and 3 for inputting two pieces of data (here, quantized DCT coefficients, hereinafter referred to as coefficients) that are consecutive in the write scan (first scan) order, The input selectors 4 and 5 for distributing the coefficients input from the input terminals 2 and 3 to a plurality of memories, and the first memory 701 and the second memory 702, and a memory for temporarily storing the coefficients The unit 7, output selectors 9 and 10 for selecting one of the two coefficients read from the storage unit 7, and the two coefficients selected by the output selectors 9 and 10 are output. It comprises output terminals 11 and 12 and a memory control circuit 8 for controlling writing and reading of the storage unit 7.

以上のような信号処理装置1001を用いてデータの並べ替えが高速に行われる様子を、以下に示す。   A state in which data rearrangement is performed at high speed using the signal processing apparatus 1001 as described above will be described below.

〈書き込み制御の説明〉
まず、入力端子2,3から入力された2個の係数は入力選択器4,5へ入力される。第1の入力選択器4は、メモリ制御回路8より入力される選択信号S1に基づいて、入力端子2および入力端子3から並列に入力された係数のうち、第1のメモリ701に書き込むべき係数を選択し、第1のメモリ701への書き込みデータWD1として出力する。一方、第2の入力選択器5は、メモリ制御回路8より入力される選択信号S2に基づいて、入力端子2および入力端子3から並列に入力された係数のうち、第2のメモリ702に書き込むべき係数を選択し、第2のメモリ702への書き込みデータWD2として出力する。
<Description of write control>
First, the two coefficients input from the input terminals 2 and 3 are input to the input selectors 4 and 5. The first input selector 4 is a coefficient to be written to the first memory 701 among the coefficients input in parallel from the input terminal 2 and the input terminal 3 based on the selection signal S1 input from the memory control circuit 8. And is output as write data WD1 to the first memory 701. On the other hand, the second input selector 5 writes the coefficient input in parallel from the input terminal 2 and the input terminal 3 to the second memory 702 based on the selection signal S2 input from the memory control circuit 8. A power coefficient is selected and output as write data WD2 to the second memory 702.

ここで、選択信号S1およびS2は、第1のメモリ701および第2のメモリ702から読み出しスキャン順に連続する係数を2係数ずつ並列に読み出すことができるように、書き込みスキャン順に連続する係数を、予め第1のメモリ701および第2のメモリ702へ1係数ずつ書き分けるように生成される。   Here, the selection signals S1 and S2 are pre-set with coefficients that are consecutive in the write scan order so that the coefficients that are consecutive in the read scan order can be read in parallel by two coefficients from the first memory 701 and the second memory 702. It is generated so as to be written into the first memory 701 and the second memory 702 by one coefficient.

また、第1のメモリ701は、メモリ制御回路8より供給されるアドレスA1と、ライトイネーブル信号WE1とに従って、第1の入力選択器4から供給される書き込みデータWD1をアドレスA1に順次書き込んでいく。一方、第2のメモリ702は、メモリ制御回路8より供給されるアドレスA2と、ライトイネーブル信号WE2とに従って、第2の入力選択器5から供給される書き込みデータWD2をアドレスA2に順次書き込んでいく。   The first memory 701 sequentially writes the write data WD1 supplied from the first input selector 4 to the address A1 in accordance with the address A1 supplied from the memory control circuit 8 and the write enable signal WE1. . On the other hand, the second memory 702 sequentially writes the write data WD2 supplied from the second input selector 5 to the address A2 in accordance with the address A2 supplied from the memory control circuit 8 and the write enable signal WE2. .

以上のような制御によって、第1のメモリ701および第2のメモリ702へ係数が書き分けられた場合のメモリマップの一例を図25(a)および図25(b)に示す。また、このようなメモリマップを有する第1のメモリ701および第2のメモリ702の書き込み時におけるアドレッシングの具体例を、図26(a)に示す。   FIG. 25A and FIG. 25B show an example of a memory map when the coefficients are written in the first memory 701 and the second memory 702 by the control as described above. FIG. 26A shows a specific example of addressing at the time of writing in the first memory 701 and the second memory 702 having such a memory map.

〈読み出し制御の説明〉
次に、読み出しスキャン順に連続する量子化DCT係数を2係数ずつ並列に読み出す制御について説明する。
<Description of read control>
Next, a description will be given of control for reading in parallel two quantized DCT coefficients that are consecutive in the reading scan order.

まず、上述の書き込み制御によって、第1のメモリ701および第2のメモリ702に書き分けられた係数を、それぞれのメモリから1係数ずつ並列に読み出すように、メモリ制御回路8は第1のメモリ701および第2のメモリ702に対して、図26(b)に示すようなアドレスA1およびA2を順次供給し、同時にリードイネーブル信号RE1およびRE2を供給する。これにより、第1のメモリ701からは0、16、9、10、…、47、63といった順に量子化DCT係数がRD1に順次読み出される。一方、第2のメモリ702からは、1、8、2、3、…、55、62といった順に量子化DCT係数がRD2に順次読み出される。   First, the memory control circuit 8 reads the coefficients written in the first memory 701 and the second memory 702 in parallel by the above-described write control from the respective memories in parallel by the first memory 701 and the first memory 701. Addresses A1 and A2 as shown in FIG. 26B are sequentially supplied to the second memory 702, and at the same time, read enable signals RE1 and RE2 are supplied. As a result, the quantized DCT coefficients are sequentially read from the first memory 701 in the order of 0, 16, 9, 10,. On the other hand, the quantized DCT coefficients are sequentially read from the second memory 702 to the RD 2 in the order of 1, 8, 2, 3,.

以上のように、RD1およびRD2から1係数ずつ読み出された2個の係数は出力選択器9,10に入力され、読み出しスキャン(第2のスキャン)順に早い方の係数が出力端子11へ、遅い方の係数が出力端子12へ出力されるように、メモリ制御回路8は第1の出力選択器9に対して選択信号S4を供給し、第2の出力選択器10に対して選択信号S5を供給する。   As described above, the two coefficients read out one by one from RD1 and RD2 are input to the output selectors 9 and 10, and the earlier coefficient in the reading scan (second scan) order is output to the output terminal 11. The memory control circuit 8 supplies the selection signal S4 to the first output selector 9 and the selection signal S5 to the second output selector 10 so that the slower coefficient is output to the output terminal 12. Supply.

すなわち、出力端子11には、0、8、9、3、…、62といった順に、出力端子12には、1、16、2、10、…、63といった順に量子化DCT係数が出力される。このような制御を行うことにより、係数の並べ替えを高速に行うことができる。
特開平11−252338号公報
That is, the quantized DCT coefficients are output to the output terminal 11 in the order of 0, 8, 9, 3,..., 62 and the output terminal 12 in the order of 1, 16, 2, 10,. By performing such control, the coefficients can be rearranged at high speed.
JP-A-11-252338

上記のように、記憶ユニットを2個のメモリで構成し、読み出しスキャン順に連続する2個のデータを異なるメモリから同時に読み出せるように、予めデータの書き込みの際に2個のメモリに書き込みスキャン(第1のスキャン)順に連続するデータを異なるメモリに書き分けるようにしておけば、データの並列読み出しが可能となり、高速な符号化を実現することが可能となる。   As described above, the storage unit is composed of two memories, and in order to be able to simultaneously read two consecutive data in the reading scan order from different memories, the write scan ( If the consecutive data in the first scan) is written in different memories, the data can be read in parallel, and high-speed encoding can be realized.

しかしながら、JPEGにおける符号化のように読み出しスキャン(第2のスキャン)がジグザグスキャンしか存在しないような場合は、上記技術を用いることで高速なスキャンの変更を実現できるが、例えば、動画像における低ビットレート符号化を実現するための画像圧縮技術であるMPEG−4の場合などのように、読み出しスキャンが複数(水平方向優先スキャン、垂直方向優先スキャン、ジグザグスキャン)存在する場合は、上記技術で対応することは困難である。   However, in the case where only the zigzag scan is present as the readout scan (second scan) as in JPEG encoding, it is possible to realize a high-speed scan change by using the above technique. When there are a plurality of read scans (horizontal priority scan, vertical priority scan, zigzag scan), as in MPEG-4, which is an image compression technique for realizing bit rate encoding, the above technique is used. It is difficult to respond.

上記低ビットレート符号化を実現するMPEG−4は、近年携帯電話をはじめ、様々な機器において応用されているが、今後さらにブロードバンド化が進むにつれ、より高解像度な画像に対応した符号化およびより高いフレームレートに対応した符号化への要求が高まっていくことが容易に予想される。   MPEG-4, which realizes the low bit rate encoding, has been applied to various devices such as mobile phones in recent years. However, as broadbandization further progresses in the future, encoding corresponding to higher resolution images and more It is easily expected that the demand for encoding corresponding to a high frame rate will increase.

このようなMPEG−4においては、低ビットレートを実現するために様々な新しい技術が取り入れられているが、その中の1つにフレーム内予測符号化(イントラ符号化)における符号化効率の向上を図った予測符号化がある。   In such MPEG-4, various new technologies are adopted to realize a low bit rate, and one of them is improvement of encoding efficiency in intra-frame prediction encoding (intra encoding). There is predictive coding that aims to

MPEG−4では、イントラ符号化における符号化効率の向上を図るため、符号化対象ブロックに隣接する複数のブロックの中から最適な予測ブロックを1つ選択し、その予測ブロックとの差分を順次符号化していく。その様子を、図27を用いて説明する。   In MPEG-4, in order to improve coding efficiency in intra coding, one optimum prediction block is selected from a plurality of blocks adjacent to the block to be coded, and the difference from the prediction block is sequentially encoded. It will become. This will be described with reference to FIG.

図27においてブロックXは符号化対象ブロックであり、ブロックA、B、CはそれぞれブロックXに隣接するブロックである。ブロックX、A、B、Cともに複数のDCT係数で構成されている。   In FIG. 27, a block X is an encoding target block, and blocks A, B, and C are blocks adjacent to the block X, respectively. Blocks X, A, B, and C are each composed of a plurality of DCT coefficients.

ブロックXの予測ブロックPは、(式1)のように選択される。すなわち、
(式1)
if(|σA−σB|<|σB−σC|)
P=C
else
P=A
である。ここで、
σA:ブロックAのDC係数
σB:ブロックBのDC係数
σC:ブロックCのDC係数
|z|:zの絶対値
である。つまり、隣接するブロックA、B、CのDC係数の勾配を計算し、勾配の大きい方のブロックが符号化対象ブロックXの予測ブロックPとして選択される。
The prediction block P of the block X is selected as in (Equation 1). That is,
(Formula 1)
if (| σA−σB | <| σB−σC |)
P = C
else
P = A
It is. here,
σA: DC coefficient of block A σB: DC coefficient of block B σC: DC coefficient of block C | z |: Absolute value of z. That is, the gradient of the DC coefficient of adjacent blocks A, B, and C is calculated, and the block with the larger gradient is selected as the prediction block P of the encoding target block X.

例えば、上記(式1)により、予測ブロックPとしてブロックCが選択された場合は、ブロックXはブロックCとの差分が符号化されることになり、ブロックAが選択された場合はブロックAとの差分が符号化されることになる(係数予測符号化)。   For example, when the block C is selected as the prediction block P according to (Equation 1), the difference between the block X and the block C is encoded, and when the block A is selected, the block A Are encoded (coefficient predictive encoding).

また、MPEG−4では、このような係数予測符号化としてDC予測符号化と、DC/AC予測符号化との2種類の予測手法をサポートしている。   In addition, MPEG-4 supports two types of prediction methods such as DC prediction encoding and DC / AC prediction encoding as such coefficient prediction encoding.

DC予測符号化とは、以上のようにして選択された予測ブロックの係数のうちDC係数のみを予測対象とした符号化であり、符号化における係数の読み出しスキャンについてはジグザグスキャン(第2のスキャン)固定である。   The DC predictive coding is a coding in which only DC coefficients are predicted among the coefficients of the prediction block selected as described above, and a zigzag scan (second scan) is used for the coefficient reading scan in the coding. ) Fixed.

それに対してDC/AC予測符号化とは、上述のDC予測符号化よりもより符号化効率の向上を図ることを目的とした予測符号化であり、予測ブロックの係数のうちDC係数のみならず、AC係数についても予測対象とした符号化である。例えば、予測ブロックPとしてブロックCが選択された場合は、ブロックCの上端の係数すべてが予測対象の係数となり、ブロックAが選択された場合は、ブロックAの左端の係数すべてが予測対象の係数となる。また、符号化における読み出しスキャンについても、予測ブロックPとしてブロックCが選択された場合は水平方向優先スキャン(第3のスキャン)となり、予測ブロックPとしてブロックAが選択された場合は垂直方向優先スキャン(第4のスキャン)となる。すなわち、選択される予測ブロックPによっては、符号化における読み出しスキャンも変化する。   On the other hand, DC / AC predictive coding is predictive coding intended to improve the coding efficiency more than the above-described DC predictive coding, and includes not only the DC coefficient among the coefficients of the prediction block. Also, the AC coefficient is also a prediction target. For example, when the block C is selected as the prediction block P, all the coefficients at the upper end of the block C are the coefficients to be predicted, and when the block A is selected, all the coefficients at the left end of the block A are the coefficients to be predicted. It becomes. Also, with respect to the read scan in encoding, when block C is selected as the prediction block P, horizontal direction priority scan (third scan) is performed, and when block A is selected as the prediction block P, vertical direction priority scan is performed. (Fourth scan). That is, depending on the prediction block P selected, the readout scan in encoding also changes.

また、DC予測符号化の場合と比較して、DC/AC予測符号化の方が符号化効率の向上が図れると判断された場合はDC/AC予測符号化が用いられ、符号化効率の向上が図れないと判断された場合はDC予測符号化の方が用いられるといったように、DC予測符号化とDC/AC予測符号化とが適応的に切替え制御されるため、MPEG−4符号化においては、符号化における読み出しスキャンは、JPEGなどのように1種類だけではなく、水平方向優先スキャン、垂直方向優先スキャン、ジグザグスキャンといった3種類の読み出しスキャンに対応する必要がある。しかも、DC予測のみを用いた符号化を行う場合は、読み出しスキャンがジグザグスキャン固定であるため、特許文献1の技術を用いれば係数の並列読み出しが実現可能であるが、DC/AC予測を用いた符号化を行う場合は、ブロックにおけるDCT係数の書き込みが完了(AC予測効果の判定が完了)するまで、この3種類の読み出しスキャンの中から1つの読み出しスキャンが確定されないため、書き込みスキャン順に連続する2個のDCT係数を、2個のメモリに振り分ける際には、いずれの読み出しスキャンが選択された場合にも、選択された読み出しスキャン順に連続する2個の係数を並列に読み出せるようにしておく必要がある。   Also, when it is determined that the DC / AC predictive coding can improve the coding efficiency compared to the DC predictive coding, the DC / AC predictive coding is used, and the coding efficiency is improved. In the MPEG-4 encoding, the DC predictive encoding and the DC / AC predictive encoding are adaptively controlled so that the DC predictive encoding is used. The reading scan in encoding needs to correspond to not only one type such as JPEG but also three types of read scan such as horizontal direction priority scan, vertical direction priority scan, and zigzag scan. In addition, when encoding using only DC prediction is performed, since the reading scan is fixed in a zigzag scan, parallel reading of coefficients can be realized using the technique of Patent Document 1, but DC / AC prediction is used. When the coding is performed, one read scan is not determined from the three types of read scans until the writing of DCT coefficients in the block is completed (AC prediction effect determination is completed). When allocating the two DCT coefficients to the two memories, the two consecutive coefficients in the selected reading scan order can be read in parallel regardless of which reading scan is selected. It is necessary to keep.

このような読み出しスキャンが複数必要となる符号化において特許文献1に開示されている技術を応用した具体例を図28(a)〜図28(d)に示す。図28(a)は図24(a)に対応する第1のスキャン(ラスタスキャン)を、図28(b)は図24(b)に対応する第2のスキャン(ジグザグスキャン)を、図28(c)は第3のスキャン(水平方向優先スキャン)を、図28(d)は第4のスキャン(垂直方向優先スキャン)をそれぞれ表している。   Specific examples in which the technique disclosed in Patent Document 1 is applied to encoding that requires a plurality of read scans are shown in FIGS. 28 (a) to 28 (d). 28A shows a first scan (raster scan) corresponding to FIG. 24A, FIG. 28B shows a second scan (zigzag scan) corresponding to FIG. 24B, and FIG. (C) represents the third scan (horizontal priority scan), and FIG. 28 (d) represents the fourth scan (vertical scan priority).

図28(b)〜図28(d)からも明らかなように、記憶ユニットを2個のメモリで構成し、3種類の読み出しスキャンすべての場合において、読み出しスキャン順に連続する2個の係数を異なる2個のメモリから同時に読み出すことは困難である。図示の例では、図28(c)に示した第3のスキャンにおいて、係数2、3および係数6、7は第2のメモリ702から読み出す必要があり、これらの係数はそれぞれ異なるアドレスに記憶されているため、一度に2係数並列で読み出すことはできない。また、同スキャンにおいて、係数16、17および係数10、11は第1のメモリ701から読み出す必要があり、これらの係数はそれぞれ異なるアドレスに記憶されているため、一度に2係数並列で読み出すことはできないのである。   As is clear from FIGS. 28B to 28D, the storage unit is composed of two memories, and in the case of all three types of read scans, two coefficients that are consecutive in the read scan order are different. It is difficult to read from two memories simultaneously. In the example shown in the figure, in the third scan shown in FIG. 28C, the coefficients 2, 3 and the coefficients 6, 7 need to be read from the second memory 702, and these coefficients are stored in different addresses. Therefore, it is not possible to read two coefficients in parallel at a time. In the same scan, the coefficients 16 and 17 and the coefficients 10 and 11 need to be read from the first memory 701, and these coefficients are stored in different addresses. It is not possible.

ここに示した例は、2個の係数を並列に読み出す際に、記憶ユニットを2個のメモリで構成した場合のメモリ分割の一例にすぎないが、2個の係数を2個のメモリにどのように振り分けても上記課題を解決することは困難である。   The example shown here is only an example of memory division when the storage unit is configured by two memories when reading two coefficients in parallel. However, which of the two coefficients is stored in two memories? Thus, it is difficult to solve the above-mentioned problem even if it is distributed.

上記のような課題を解決するため、本発明の目的は、符号化における係数の読み出しスキャンが複数存在し、かつそれらの読み出しスキャンが記憶ユニットへの係数書き込み時に予め決定されていないような場合においても、読み出しスキャン順に連続する2個の係数を常に異なるメモリから連続して読み出すことができ、安価で、かつ高速なデータの並べ替えができる信号処理方法およびその装置を提供することにある。   In order to solve the above-described problems, the object of the present invention is to provide a case where there are a plurality of coefficient readout scans in encoding and these readout scans are not determined in advance when the coefficients are written to the storage unit. It is another object of the present invention to provide a signal processing method and apparatus capable of continuously reading two coefficients that are consecutive in the reading scan order from different memories, and capable of rearranging data at low cost and at high speed.

本発明に係る第1の信号処理方法は、複数のデータで構成された2次元のブロックデータを処理する信号処理方法であって、前記ブロックデータを記憶するように、行方向あるいは列方向のラスタスキャン順に連続する2個のデータをm個のメモリ(mは3以上の整数)へ順次書き分けるステップと、データの並べ替えを実現するように、前記m個のメモリから複数のデータを読み出し、ジグザグスキャン、水平方向優先スキャンあるいは垂直方向優先スキャンのうち選択された読み出しスキャン順に連続する2個のデータを順次選択するステップとを備えたことを特徴としている。   A first signal processing method according to the present invention is a signal processing method for processing two-dimensional block data composed of a plurality of data, and is a raster in a row direction or a column direction so as to store the block data. A step of sequentially writing two pieces of data in the scan order into m pieces of memory (m is an integer of 3 or more) and a plurality of pieces of data are read from the m pieces of memory so as to rearrange the data, and zigzag A step of sequentially selecting two pieces of data that are selected in the order of reading scan selected from among scan, horizontal direction priority scan, and vertical direction priority scan.

このようにすれば、書き込みスキャン順に連続する2個のデータから複数のスキャン順のうち選択された読み出しスキャン順に連続する2個のデータに高速に並べ替え(スキャンの変更)を行うことができる。具体的には、行方向あるいは列方向のラスタスキャン順からジグザグスキャン順または水平方向優先スキャン順または垂直方向優先スキャン順への高速なデータの並べ替えができる。   In this way, it is possible to perform high-speed rearrangement (scan change) from two data that are consecutive in the write scan order to two data that are consecutive in the selected read scan order among the plurality of scan orders. Specifically, the data can be rearranged at high speed from the raster scan order in the row direction or the column direction to the zigzag scan order, the horizontal direction priority scan order, or the vertical direction priority scan order.

本発明に係る第2の信号処理方法は、前記第1の信号処理方法において、前記選択された2個のデータに対して符号化処理を行うステップと、前記符号化処理が完了した後に、前記m個のメモリから読み出された複数のデータから行方向あるいは列方向のラスタスキャン順に連続する2個のデータを順次選択し、該選択した2個のデータに対して動画像符号化におけるフレーム間予測符号化時に必要となる参照画像を生成するための処理を行うステップとをさらに備えたことを特徴としている。   According to the second signal processing method of the present invention, in the first signal processing method, a step of performing an encoding process on the selected two pieces of data, and after the encoding process is completed, Two consecutive data are sequentially selected from a plurality of data read out from m memories in the order of raster scanning in the row direction or the column direction, and between the frames in the moving image encoding for the selected two data And a step of performing a process for generating a reference image necessary for predictive encoding.

このようにすれば、高速に並べ替えが行われたデータに対する符号化を早期に開始することができ、さらに符号化そのものの高速化も期待できる。また、高速に並べ替えが行われたデータに対する復号化(参照画像生成)についても早期に開始することができ、さらに復号化そのものを高速化することも期待できる。   In this way, it is possible to start encoding data that has been rearranged at high speed at an early stage, and further increase the speed of the encoding itself. Also, decoding (reference image generation) for data that has been rearranged at high speed can be started early, and it can be expected that the decoding itself will be accelerated.

本発明に係る第3の信号処理方法は、前記第1の信号処理方法において、前記m個のメモリの各々は、少なくとも1つの書き込みポートを有し、かつ互いに独立した読み出しが可能な読み出しポートを2つ以上有するメモリであり、前記データの並べ替えのためのデータ読み出しを前記m個のメモリの各々のある読み出しポートから行って、前記ジグザグスキャン、水平方向優先スキャンあるいは垂直方向優先スキャンのうち選択された読み出しスキャン順に連続する2個のデータに対して符号化処理を行うステップと、前記符号化処理と並行して、前記m個のメモリの各々の他の1つの読み出しポートから読み出された複数のデータから行方向あるいは列方向のラスタスキャン順に連続する2個のデータを順次選択し、該選択した2個のデータに対して動画像符号化におけるフレーム間予測符号化時に必要となる参照画像を生成するための処理を行うステップとをさらに備えたことを特徴としている。   According to a third signal processing method of the present invention, in the first signal processing method, each of the m memories has at least one write port and a read port that can read data independently of each other. A memory having two or more, wherein data reading for rearranging the data is performed from a read port of each of the m memories, and selected from the zigzag scan, the horizontal priority scan, or the vertical priority scan A step of performing an encoding process on two consecutive data in the read scan order, and in parallel with the encoding process, the read data is read from another read port of each of the m memories. Two consecutive data items are sequentially selected from a plurality of data in the raster scan order in the row direction or the column direction, and the selected two data items are selected. It is characterized by further comprising a processing step of performing for generating a reference image needed when inter-frame prediction coding in the moving picture coding on data.

こうすれば、高速に複数のデータの並べ替えを実現でき、符号化処理および動画像符号化におけるフレーム間予測符号化時に必要となる参照画像を生成するための処理を並列実行できるため、前記第2の信号処理方法よりもさらに高速化が期待できる。   In this way, a plurality of data can be rearranged at high speed, and the processing for generating a reference image necessary for the interframe predictive encoding in the encoding process and the moving image encoding can be executed in parallel. The speed can be expected to be higher than that of the second signal processing method.

本発明に係る第の信号処理方法は、複数のデータで構成された2次元のブロックデータを処理する信号処理方法であって、前記ブロックデータを記憶するように、ジグザグスキャン、水平方向優先スキャンあるいは垂直方向優先スキャンのうち選択された書き込みスキャン順に連続する2個のデータをm個のメモリ(mは3以上の整数)へ順次書き分けるステップと、データの並べ替えを実現するように、前記m個のメモリから複数のデータを読み出し、行方向あるいは列方向のラスタスキャン順に連続する2個のデータを順次選択するステップとを備えたことを特徴としている。 A fourth signal processing method according to the present invention is a signal processing method for processing two-dimensional block data composed of a plurality of data, wherein zigzag scanning, horizontal direction priority scanning is performed so as to store the block data. Alternatively, in the vertical direction priority scan, the step of sequentially writing two pieces of data in the selected write scan order into m memories (m is an integer of 3 or more) and the rearrangement of the data so as to realize data rearrangement. A step of reading a plurality of data from one memory and sequentially selecting two pieces of data in the order of raster scanning in the row direction or the column direction.

こうすれば、複数のスキャン順のうち選択された書き込みスキャン順から読み出しスキャン順へのデータの並べ替えを高速に実行することができる。   In this way, data can be rearranged at high speed from the selected write scan order to the read scan order among the plurality of scan orders.

本発明に係る第の信号処理方法は、前記第の信号処理方法において、前記選択された2個のデータに対して復号処理を行うステップをさらに備えたことを特徴としている。 The fifth signal processing method according to the present invention is characterized in that the fourth signal processing method further comprises a step of performing a decoding process on the two selected data.

こうすれば、データの高速な並べ替え結果を用いた復号処理を実現できる。   By doing so, it is possible to realize a decoding process using a high-speed data rearrangement result.

本発明に係る第の信号処理方法は、設定された動作モードに応じて、第1の動作モードにおいては前記第1〜第3の信号処理方法のいずれかを用いてデータの並べ替えを行い、第2の動作モードにおいては前記第又は第の信号処理方法を用いてデータの並べ替えを行うことを特徴としている。 According to a sixth signal processing method of the present invention, data is rearranged using any one of the first to third signal processing methods in the first operation mode according to the set operation mode. In the second operation mode, data is rearranged using the fourth or fifth signal processing method.

こうすれば、書き込みスキャン順から複数のスキャン順のうち選択された読み出しスキャン順へのデータの並べ替えと、複数のスキャン順のうち選択された書き込みスキャン順から読み出しスキャン順へのデータの並べ替えとを、設定された動作モードに応じて適宜切り替えながら実施するようにしたため、安価で、かつ高速なデータの並べ替えが実現できる。   By doing this, the data is rearranged from the write scan order to the selected read scan order among the multiple scan orders, and the data is rearranged from the selected write scan order to the read scan order among the multiple scan orders. Is performed while switching appropriately according to the set operation mode, so that data can be rearranged at low cost and at high speed.

本発明に係る第1の信号処理装置は、複数のデータで構成された2次元のブロックデータを処理する信号処理装置であって、前記ブロックデータを記憶するためのm個(mは3以上の整数)のメモリで構成された記憶手段と、行方向あるいは列方向のラスタスキャン順に連続する2個のデータの中から前記m個のメモリへの書き込みデータを選択する複数の入力選択器と、前記m個のメモリから読み出された複数のデータの中から、ジグザグスキャン、水平方向優先スキャンあるいは垂直方向優先スキャンのうち選択された読み出しスキャン順に連続する2個のデータを選択する複数の出力選択器と、前記記憶手段へのブロックデータの書き込みおよび読み出し制御を行うとともに、前記複数の入力選択器および前記複数の出力選択器に対して選択信号を供給するためのメモリ制御手段とを備えたことを特徴としている。   A first signal processing apparatus according to the present invention is a signal processing apparatus that processes two-dimensional block data composed of a plurality of data, and m (m is 3 or more) for storing the block data. An integer) memory, a plurality of input selectors for selecting write data to the m memories from two consecutive data in the row- or column-direction raster scan order, A plurality of output selectors for selecting two consecutive data in the order of reading scan selected from among zigzag scan, horizontal direction priority scan, and vertical direction priority scan among a plurality of data read from m memories And writing and reading control of block data to the storage means, and for the plurality of input selectors and the plurality of output selectors It is characterized in that a memory control means for supplying a selection signal.

このように構成することで、書き込みスキャン順から複数のスキャン順のうち選択された読み出しスキャン順へのデータの並べ替えを高速に実行する装置を提供できる。   With this configuration, it is possible to provide an apparatus that performs high-speed data rearrangement from the write scan order to the read scan order selected from among the multiple scan orders.

本発明に係る第2の信号処理装置は、前記第1の信号処理装置において、前記記憶手段を構成するm個のメモリの各々は、少なくとも1つの書き込みポートを有し、かつ互いに独立した読み出しが可能な読み出しポートを2つ以上有するメモリであることを特徴としている。   According to a second signal processing device of the present invention, in the first signal processing device, each of the m memories constituting the storage means has at least one write port, and can be read independently of each other. The memory is characterized by having two or more possible read ports.

このように構成すれば、書き込みスキャン順から複数の読み出しスキャン順へのデータの並べ替えを並列に実行できるため、前記第1の信号処理装置よりもさらに高速に実行する装置を提供できる。   According to this configuration, since data rearrangement from the write scan order to the plurality of read scan orders can be executed in parallel, it is possible to provide an apparatus that executes even faster than the first signal processing apparatus.

本発明に係る第3の信号処理装置は、前記第1の信号処理装置において、前記m個のメモリに対して供給されるクロックの制御を個別に行うためのクロック制御手段をさらに備えたことを特徴としている。   A third signal processing apparatus according to the present invention further includes clock control means for individually controlling clocks supplied to the m memories in the first signal processing apparatus. It is a feature.

このように構成すれば、m個のメモリへのクロック供給を個別に行うことができ、高速、かつ低消費電力化を実現した信号処理装置を提供できる。   With this configuration, it is possible to individually supply clocks to m memories, and to provide a signal processing device that realizes high speed and low power consumption.

本発明に係る第4の信号処理装置は、前記第3の信号処理装置において、前記クロック制御手段は、行方向あるいは列方向のラスタスキャン順に連続する2個のデータを前記m個のメモリへ書き分ける際に、書き込みが発生するメモリに対してはクロックを供給し、書き込みが発生しないメモリに対してはクロックを停止するよう制御するとともに、ジグザグスキャン、水平方向優先スキャンあるいは垂直方向優先スキャンのうち選択された読み出しスキャン順に連続する2個のデータを選択するために、読み出しサイクルが発生するメモリに対してはクロックを供給し、読み出しサイクルが発生しないメモリに対してはクロックを停止するよう制御することを特徴としている。   In a fourth signal processing device according to the present invention, in the third signal processing device, the clock control unit writes two consecutive data in the row scan direction or the column scan sequence in the m memories. In this case, the clock is supplied to the memory where writing occurs and the clock is stopped for the memory where writing does not occur, and the zigzag scan, the horizontal priority scan or the vertical priority scan is selected. In order to select two consecutive data in the read scan order, control is performed so that a clock is supplied to a memory in which a read cycle occurs and a clock is stopped for a memory in which no read cycle occurs. It is characterized by.

こうすれば、データの並べ替えに必要となるメモリアクセスが発生するメモリに対してはクロックの供給を行い、メモリアクセスが発生しないメモリに対してはクロックの供給を停止するといった制御を適応的に実行するため、より低消費電力化が期待できる。   In this way, it is possible to adaptively perform control such as supplying a clock to a memory in which a memory access necessary for data rearrangement occurs and stopping a clock supply to a memory in which no memory access occurs. Because of this, lower power consumption can be expected.

本発明に係る第1の撮像システムは、前記第1〜第の信号処理装置のいずれかを含んで画像処理を行う画像処理回路と、前記画像処理回路へ画像信号を出力するセンサと、前記センサへ光を結像する光学系とを備えたことを特徴としている。 The first imaging system according to the present invention includes an image processing circuit that performs image processing including any of the first to fourth signal processing devices, a sensor that outputs an image signal to the image processing circuit, And an optical system for imaging light onto the sensor.

このように構成すれば、データ並べ替えの高速実行に伴って画像処理の高速化が期待できる。   With this configuration, it is possible to expect an increase in image processing speed as data rearrangement is performed at high speed.

本発明に係る第2の撮像システムは、前記第1の撮像システムにおいて、前記センサから得た画像信号をデジタル信号に変換して前記画像処理回路へ供給する変換器をさらに備えたことを特徴としている。   According to a second imaging system of the present invention, the first imaging system further includes a converter that converts an image signal obtained from the sensor into a digital signal and supplies the digital signal to the image processing circuit. Yes.

こうすれば、デジタル信号処理の利点を発揮することができる。   In this way, the advantages of digital signal processing can be exhibited.

本発明によれば、総じてデータの並べ替えを高速に実行することができる。   According to the present invention, data can be rearranged at high speed as a whole.

以下、本発明の実施の形態について、図面を参照して説明する。   Embodiments of the present invention will be described below with reference to the drawings.

《第1の実施形態》
図1は、本発明の第1の実施形態に係る信号処理装置1の構成を示すブロック図、図2は、図1に示す信号処理装置1を用いた本発明の信号処理方法を示すフローチャートである。
<< First Embodiment >>
FIG. 1 is a block diagram showing a configuration of a signal processing apparatus 1 according to the first embodiment of the present invention, and FIG. 2 is a flowchart showing a signal processing method of the present invention using the signal processing apparatus 1 shown in FIG. is there.

本実施形態は、読み出しスキャン順に連続する2個のデータ(係数)を並列に読み出せるようにするために、記憶ユニット7をm個(mは3以上の整数)のメモリで構成したことを特徴とする。以下、m=3の場合を例に説明していく。   The present embodiment is characterized in that the storage unit 7 is configured by m memories (m is an integer of 3 or more) so that two data (coefficients) that are consecutive in the reading scan order can be read in parallel. And Hereinafter, a case where m = 3 will be described as an example.

図1の信号処理装置1は、書き込みスキャン(第1のスキャン)順に連続する2個のデータを入力する入力端子2,3と、これら入力端子2,3から入力される量子化DCT係数をm個(ここでは、m=3)のメモリへ振り分けるための入力選択器4,5,6と、第1のメモリ701と第2のメモリ702と第3のメモリ703とで構成されてデータを一時的に記憶する記憶ユニット7と、この記憶ユニット7から読み出されたm個のデータから各々1つのデータを選択する出力選択器9,10と、これら出力選択器9,10により選択された2個のデータを出力する出力端子11,12と、読み出しスキャンを選択するために必要となる符号化対象ブロックに隣接したブロック(A、B、C)のDC係数(σA、σB、σC)を入力する予測係数入力端子13と、DC予測符号化とDC/AC予測符号化とのモード切替えを設定する設定端子14と、この設定端子14により設定された符号化モードに従って記憶ユニット7の書き込み、読み出しを制御し、各選択器4,5,6,9,10に対して選択信号S1、S2、S3、S4、S5をそれぞれ供給するためのメモリ制御回路8とで構成される。   The signal processing apparatus 1 shown in FIG. 1 has input terminals 2 and 3 for inputting two pieces of continuous data in the order of write scan (first scan), and the quantized DCT coefficient input from these input terminals 2 and 3 is m. It consists of input selectors 4, 5, 6 for distributing to (here, m = 3) memories, a first memory 701, a second memory 702, and a third memory 703 to temporarily store data. Storage unit 7 for storing data, output selectors 9 and 10 for selecting one data from each of m data read from the storage unit 7, and 2 selected by these output selectors 9 and 10 The DC terminals (σA, σB, σC) of the blocks (A, B, C) adjacent to the encoding target block necessary for selecting the reading scan and the output terminals 11 and 12 for outputting pieces of data are input. Prediction A number input terminal 13, a setting terminal 14 for setting mode switching between DC prediction encoding and DC / AC prediction encoding, and writing and reading of the storage unit 7 according to the encoding mode set by the setting terminal 14 The memory control circuit 8 supplies the selection signals S1, S2, S3, S4, and S5 to the selectors 4, 5, 6, 9, and 10, respectively.

以下、図2〜図8を参照して本実施形態の信号処理方法について説明する。   Hereinafter, the signal processing method of this embodiment will be described with reference to FIGS.

図2に示すように、まず、複数の読み出しスキャン(第1のスキャン、第2のスキャン、第3のスキャン、第4のスキャン)のうち、いずれのスキャンが選択されても、選択された読み出しスキャン順に連続する2個の係数が並列に読み出せるように、書き込みスキャン(第1のスキャン)順に連続する2個の係数が第1のメモリ701あるいは第2のメモリ702あるいは第3のメモリ703に書き分けられる(ステップ100)。次に符号化に必要となるブロックの係数すべての書き込みが完了したかを判断する(ステップ101)。符号化に必要となるブロックの係数とは、例えばMPEG−4などの場合は、複数のブロックで構成された1マクロブロック分の係数のことであり、すべての係数書き込みが完了するまでステップ100、ステップ101を繰り返し行う。   As shown in FIG. 2, first, the selected readout is selected regardless of which of the plurality of readout scans (first scan, second scan, third scan, and fourth scan) is selected. Two coefficients that are consecutive in the write scan (first scan) order are stored in the first memory 701, the second memory 702, or the third memory 703 so that two coefficients that are consecutive in the scan order can be read in parallel. They are written separately (step 100). Next, it is determined whether or not writing of all the block coefficients necessary for encoding is completed (step 101). For example, in the case of MPEG-4, the coefficient of a block necessary for encoding is a coefficient for one macro block composed of a plurality of blocks. Step 100, until all coefficient writing is completed. Step 101 is repeated.

以上のようにして、すべての係数を第1のメモリ701、第2のメモリ702および第3のメモリ703へ書き分けた一例を図3(a)に示す。図3(a)において左下向き斜線のハッチング部は第1のメモリ701の領域を、右下向き斜線のハッチング部は第2のメモリ702の領域を、無ハッチング部は第3のメモリ703の領域をそれぞれ示し、書き込みスキャン(第1のスキャン)順(0、8、16、24、…、55、63)に連続する2個の係数が図3(a)に示すようにそれぞれのメモリ領域へ書き分けられる。このように書き分ける場合、メモリ制御回路8は、第1のメモリ701、第2のメモリ702および第3のメモリ703に対して図4(a)〜図4(c)に示すようなそれぞれのアドレスA1、A2、A3を供給する。また、メモリ制御回路8は、第1のメモリ701、第2のメモリ702および第3のメモリ703の書き込みデータWD1、WD2、WD3を制御するため、入力選択器4,5,6に対して制御信号S1、S2、S3を供給し、入力選択器4,5,6はそれぞれ選択信号S1、S2、S3に基づいて図4(a)〜図4(c)に示すような書き込みデータWD1、WD2、WD3を順次選択し、第1のメモリ701、第2のメモリ702および第3のメモリ703は、メモリ制御回路8より供給されるライトイネーブル信号WE1、WE2、WE3に従って、各メモリの各アドレスに係数を書き込んでいく。   FIG. 3A shows an example in which all the coefficients are written in the first memory 701, the second memory 702, and the third memory 703 as described above. In FIG. 3A, the hatched portion with the lower left diagonal line indicates the area of the first memory 701, the hatched portion with the lower right oblique line indicates the area of the second memory 702, and the non-hatched area indicates the area of the third memory 703. Each of the two coefficients shown in the order of writing scan (first scan) (0, 8, 16, 24,..., 55, 63) is written into each memory area as shown in FIG. It is done. In this case, the memory control circuit 8 uses the addresses shown in FIGS. 4A to 4C for the first memory 701, the second memory 702, and the third memory 703, respectively. A1, A2, and A3 are supplied. In addition, the memory control circuit 8 controls the input selectors 4, 5, and 6 in order to control the write data WD 1, WD 2, and WD 3 in the first memory 701, the second memory 702, and the third memory 703. The signals S1, S2, and S3 are supplied, and the input selectors 4, 5, and 6 are written based on the selection signals S1, S2, and S3, respectively, and write data WD1, WD2 as shown in FIGS. , WD3 are sequentially selected, and the first memory 701, the second memory 702, and the third memory 703 are assigned to each address of each memory in accordance with the write enable signals WE1, WE2, WE3 supplied from the memory control circuit 8. Write the coefficients.

以上の書き込み制御における各メモリのアドレス(A1、A2、A3)、書き込みデータ(WD1、WD2、WD3)およびライトイネーブル信号(WE1、WE2、WE3)の様子を図5に示す。図5において、WE1、WE2、WE3が1の場合に書き込みが行われ、0の場合は書き込みは行われない。   FIG. 5 shows the states of the addresses (A1, A2, A3), write data (WD1, WD2, WD3) and write enable signals (WE1, WE2, WE3) of each memory in the above write control. In FIG. 5, writing is performed when WE1, WE2, and WE3 are 1, and writing is not performed when 0.

以上のようにして、書き込みスキャン(第1のスキャン)順に連続する2個の係数すべてが、それぞれ第1のメモリ701、第2のメモリ702および第3のメモリ703へ書き込み終わったら、次に読み出しスキャンの判定が行われる(図2のステップ102)。読み出しスキャンの判定は、設定端子14から設定される符号化モード(DC予測符号化、DC/AC予測符号化)と、予測係数入力端子13から入力される隣接ブロック(A、B、C)のDC係数(σA、σB、σC)とを用いて以下のように行われる。   As described above, when all the two coefficients consecutive in the write scan (first scan) order are written to the first memory 701, the second memory 702, and the third memory 703, respectively, the next reading is performed. Scan determination is performed (step 102 in FIG. 2). The determination of the readout scan is made by the coding mode (DC prediction coding, DC / AC prediction coding) set from the setting terminal 14 and the adjacent blocks (A, B, C) inputted from the prediction coefficient input terminal 13. This is performed as follows using DC coefficients (σA, σB, σC).

符号化モードがDC予測符号化に設定されている場合は、読み出しスキャンはジグザグスキャン(第2のスキャン)と判定し、符号化モードがDC/AC予測符号化に設定されている場合は、まず隣接ブロックのDC係数(σA、σB、σC)の勾配を算出する。算出された勾配の結果から予測ブロックPを判断し、予測ブロックPがブロックCと判断された場合は、DC予測符号化の場合と比較して符号化効率の向上が図れる時は、読み出しスキャンは水平方向優先スキャン(第3のスキャン)と判定し、符号化効率の向上が図れない時は、ジグザグスキャン(第2のスキャン)と判定する。また、算出された勾配の結果から予測ブロックPを判断し、予測ブロックPがブロックAと判断された場合は、DC予測符号化の場合と比較して符号化効率の向上が図れる時は、読み出しスキャンは垂直方向優先スキャン(第4のスキャン)と判定し、符号化効率の向上が図れない時は、ジグザグスキャン(第2のスキャン)と判定する。   When the encoding mode is set to DC predictive encoding, the readout scan is determined to be a zigzag scan (second scan). When the encoding mode is set to DC / AC predictive encoding, The gradient of the DC coefficient (σA, σB, σC) of the adjacent block is calculated. When the prediction block P is determined from the calculated gradient result and the prediction block P is determined to be the block C, when the encoding efficiency can be improved as compared with the case of the DC prediction encoding, the read scan is performed. If it is determined that the scan is the priority scan in the horizontal direction (third scan) and the encoding efficiency cannot be improved, the scan is determined as the zigzag scan (second scan). Further, the prediction block P is determined from the calculated gradient result, and when the prediction block P is determined to be block A, reading is performed when the encoding efficiency can be improved as compared with the case of DC prediction encoding. The scan is determined to be a vertical direction priority scan (fourth scan), and when the encoding efficiency cannot be improved, it is determined to be a zigzag scan (second scan).

以上のようにして、読み出しスキャンの判定が行われた結果、読み出しスキャンがジグザグスキャン(第2のスキャン)となった場合は、図3(b)に示すように、第1のメモリ701、第2のメモリ702および第3のメモリ703からジグザグスキャン順に連続する2個の係数を並列に読み出していく(ステップ103)。ステップ103における各メモリの読み出し制御の様子を図6に示す。ジグザグスキャンの場合、係数の読み出し順は、0、1、8、16、9、2、…、47、55、62、63というような具合であるが、メモリ制御回路8は各メモリに対して、読み出しアドレスA1、A2、A3およびリードイネーブル信号RE1、RE2、RE3を供給し、これらの係数を3つのメモリ701〜703から適宜読み出し、ジグザグスキャン順に連続する2係数を出力選択器9,10において選択することにより、出力端子11,12に2係数ずつ並列に出力される。   As a result of the determination of the read scan as described above, when the read scan becomes a zigzag scan (second scan), as shown in FIG. Two consecutive coefficients in the zigzag scan order are read out in parallel from the second memory 702 and the third memory 703 (step 103). FIG. 6 shows the state of read control of each memory in step 103. In the case of zigzag scanning, the coefficient reading order is 0, 1, 8, 16, 9, 2,..., 47, 55, 62, 63, etc. , Read address A1, A2, A3 and read enable signals RE1, RE2, RE3 are supplied, these coefficients are read out from the three memories 701 to 703 as appropriate, and two coefficients that are consecutive in the zigzag scan order are output in the output selectors 9 and 10. By selecting, two coefficients are output to the output terminals 11 and 12 in parallel.

すなわち、出力端子11,12に最初に出力すべき2係数である(0,1)の係数のうち、係数0は第1のメモリ701から読み出され(RD1)、同時に係数1は第2のメモリ702から読み出される(RD2)。このようにして読み出された2係数のうちジグザグスキャン順に早い方の係数(0)を出力端子11に出力し、遅い方の係数(1)を出力端子12に出力するように、メモリ制御回路8は出力選択器9,10に対して選択信号S4、S5を供給する。   That is, among the coefficients (0, 1) that are the first two coefficients to be output to the output terminals 11 and 12, the coefficient 0 is read from the first memory 701 (RD1), and at the same time, the coefficient 1 is the second coefficient. Read from the memory 702 (RD2). The memory control circuit is configured so that the earlier coefficient (0) in the zigzag scan order is output to the output terminal 11 and the later coefficient (1) is output to the output terminal 12 among the two coefficients read in this way. 8 supplies selection signals S4 and S5 to the output selectors 9 and 10.

出力端子11,12へ次に出力すべき2係数である(8,16)の係数のうち、係数8は第3のメモリ703から読み出され(RD3)、同時に係数16は第2のメモリ702から読み出される(RD2)。このようにして読み出された2係数のうちジグザグスキャン順に早い方の係数(8)を出力端子11に出力し、遅い方の係数(16)を出力端子12に出力するように、メモリ制御回路8は出力選択器9,10に対して選択信号S4、S5を供給する。以後、同様にして2個ずつ並列に係数を順次読み出して第1の処理(符号化)が行われる(ステップ106)。   Of the two coefficients (8, 16) to be output next to the output terminals 11, 12, the coefficient 8 is read from the third memory 703 (RD3), and at the same time, the coefficient 16 is the second memory 702. (RD2). The memory control circuit is configured so that the earlier coefficient (8) in the zigzag scan order is output to the output terminal 11 and the later coefficient (16) is output to the output terminal 12 among the two coefficients read in this way. 8 supplies selection signals S4 and S5 to the output selectors 9 and 10. Thereafter, the coefficients are sequentially read out in parallel two by two in the same manner, and the first processing (encoding) is performed (step 106).

また、読み出しスキャンの判定が行われた結果、読み出しスキャンが水平方向優先スキャン(第3のスキャン)となった場合は、図3(c)に示すように、第1のメモリ701、第2のメモリ702および第3のメモリ703から水平方向優先スキャン順に連続する2個の係数を並列に読み出していく(ステップ104)。ステップ104における各メモリの読み出し制御の様子を図7に示す。2係数ずつ並列に読み出し、順次第1の処理を行っていく様子は、上述のジグザグスキャンの場合と同様であるため、具体的な説明は省略する。   As a result of the determination of the read scan, when the read scan becomes the horizontal direction priority scan (third scan), as shown in FIG. 3C, the first memory 701, the second memory 701, Two consecutive coefficients are read out in parallel from the memory 702 and the third memory 703 in the order of priority scanning in the horizontal direction (step 104). FIG. 7 shows the state of reading control of each memory in step 104. The manner in which two coefficients are read out in parallel and the first processing is sequentially performed is the same as in the case of the zigzag scan described above, and thus a detailed description thereof will be omitted.

また、読み出しスキャンの判定が行われた結果、読み出しスキャンが垂直方向優先スキャン(第4のスキャン)となった場合は、図3(d)に示すように、第1のメモリ701、第2のメモリ702および第3のメモリ703から垂直方向優先スキャン順に連続する2個の係数を並列に読み出していく(ステップ105)。ステップ105における各メモリの読み出し制御の様子を図8に示す。2係数ずつ並列に読み出し、順次第1の処理を行っていく様子は、上述のジグザグスキャンの場合と同様であるため、具体的な説明は省略する。   As a result of the determination of the read scan, when the read scan becomes the vertical direction priority scan (fourth scan), as shown in FIG. Two consecutive coefficients are read out in parallel from the memory 702 and the third memory 703 in the order of priority scanning in the vertical direction (step 105). FIG. 8 shows the state of reading control of each memory in step 105. The manner in which two coefficients are read out in parallel and the first processing is sequentially performed is the same as in the case of the zigzag scan described above, and thus a detailed description thereof will be omitted.

以上のようにして、すべての係数を読み出し、符号化が完了するまでステップ102からステップ106までの処理を繰り返し行う(ステップ107)。すべての係数を読み出し、第1の処理が完了すれば、次に書き込みスキャンと同一のスキャン(第1のスキャン)順に各メモリからの読み出しを行い(ステップ108)、順次第2の処理(復号化)を行い参照画像が生成される(ステップ109)。参照画像の生成が完了するまでステップ108〜ステップ109の動作を繰り返し行う(ステップ110)。第2の処理(復号化)が必要となる理由は、動画像符号化の場合は、フレーム間予測符号化を行うために、前フレームの画像データ(参照データ)を必要とし、現在の符号化対象ブロックの復号化(逆量子化、逆DCTなど)を行っておく必要があるからである。   As described above, all the coefficients are read out, and the processing from step 102 to step 106 is repeated until the encoding is completed (step 107). When all the coefficients are read and the first processing is completed, reading from each memory is performed in the same scan (first scan) order as the write scan (step 108), and the second processing (decoding) is sequentially performed. ) To generate a reference image (step 109). Steps 108 to 109 are repeated until the generation of the reference image is completed (step 110). The reason why the second process (decoding) is necessary is that, in the case of moving picture coding, in order to perform interframe predictive coding, image data (reference data) of the previous frame is required, and the current coding is performed. This is because it is necessary to perform decoding (inverse quantization, inverse DCT, etc.) of the target block.

以上のことからも明らかなように、2個のデータの並列書き込み、並列読み出しを実現するために、記憶ユニット7をm個(mは3以上の整数)のメモリで構成すれば、複数の読み出しスキャンの中からいずれのスキャンが選択された場合においても、読み出しスキャン順に連続する2個のデータ(係数)を並列に順次読み出せるように書き込みスキャン順に連続する2個のデータをそれぞれ異なるメモリに書き分けることが可能となり、結果的に書き込み、読み出しにおけるスキャンの変更が高速に行われるため、高速な符号化を実現することが可能となる。また、この目的を達成するために、記憶ユニット7についてメモリの構成を工夫したのであり、容量の増加は一切ない。   As is clear from the above, in order to realize parallel writing and reading of two pieces of data, if the storage unit 7 is composed of m memories (m is an integer of 3 or more), a plurality of readings are performed. Regardless of which scan is selected from among the scans, the two data (coefficients) that are consecutive in the read scan order are written in different memories, so that the two data (coefficients) that are consecutive in the read scan order can be sequentially read in parallel. As a result, scanning changes in writing and reading are performed at a high speed, so that high-speed encoding can be realized. In order to achieve this object, the memory configuration of the storage unit 7 has been devised, and there is no increase in capacity.

《第2の実施形態》
次に、本発明の第2の実施形態に係る信号処理装置201について、図9および図10を参照して説明する。
<< Second Embodiment >>
Next, a signal processing device 201 according to the second embodiment of the present invention will be described with reference to FIG. 9 and FIG.

本実施の形態は、記憶ユニット7を構成するm個(ここでは、m=3)のメモリを、少なくとも1つの書き込みポート(ポートA)と、互いに独立した読み出しが可能な少なくとも2つの読み出しポート(ポートA、ポートB)とを有するメモリで構成し、m個のメモリは複数の読み出しポートから互いに異なる読み出しスキャン順に並列読み出しできるようにし、第1の処理(符号化)と第2の処理(復号化)とを同時に実行できるようにしたという点で、第1の実施形態とは異なる。   In this embodiment, m (here, m = 3) memories constituting the storage unit 7 are divided into at least one write port (port A) and at least two read ports that can be read independently of each other (port A). Port A, port B), and the m memories can be read in parallel from the plurality of read ports in different read scan orders, and the first process (encoding) and the second process (decoding) Is different from the first embodiment in that it can be executed simultaneously.

以下、第1の実施形態と異なる部分について具体的に説明していく。   Hereinafter, a different part from 1st Embodiment is demonstrated concretely.

図9において、第1のメモリ701、第2のメモリ702および第3のメモリ703はそれぞれ書き込み、読み出しが独立に可能なポートAと、読み出し専用のポートBとを備える。ポートAとポートBとは、互いに独立した読み出しが可能なポートである。記憶ユニット7を上記のように複数のポートから互いに独立して並列に読み出し可能なm個のメモリで構成した場合の符号化方法について、図10に示したフローチャートを参照しながら第1の実施形態と異なる部分を以下に説明する。   In FIG. 9, a first memory 701, a second memory 702, and a third memory 703 each include a port A capable of writing and reading independently and a port B dedicated to reading. Port A and port B are ports that can be read independently of each other. First Embodiment With reference to the flowchart shown in FIG. 10, the encoding method in the case where the storage unit 7 is constituted by m memories that can be read in parallel independently from each other from a plurality of ports as described above will be described. Different parts will be described below.

まず、第1の実施形態の場合と同様に複数の読み出しスキャン(第1のスキャン、第2のスキャン、第3のスキャン、第4のスキャン)のうち、いずれのスキャンが選択されても、選択された読み出しスキャン順に連続する2個の係数が並列に読み出せるように、書き込みスキャン(第1のスキャン)順に連続する2個の係数が第1のメモリ701あるいは第2のメモリ702あるいは第3のメモリ703に書き分けられる。第1の実施形態と異なる点は、複数存在する(ここでは2個)ポートのうち書き込み/読み出し兼用ポートであるポートAを用いて書き込むという点である(ステップ200)。   First, as in the case of the first embodiment, any of the plurality of readout scans (first scan, second scan, third scan, fourth scan) is selected regardless of which scan is selected. The two coefficients that are consecutive in the write scan (first scan) order are the first memory 701, the second memory 702, or the third memory so that the two coefficients that are consecutive in the read scan order can be read in parallel. It is written in the memory 703. The difference from the first embodiment is that writing is performed using port A which is a writing / reading port among a plurality (two in this case) of ports (step 200).

また、第1の実施形態の場合は、ステップ101においてすべての係数を各メモリへ書き終えたら、まず第1の処理(ステップ102〜ステップ107)を行い、その後に第2の処理(ステップ108〜ステップ110)を行っていたが、本実施形態においては、互いに独立した読み出し動作が可能なポートAおよびポートBを用いて、それぞれ異なる読み出しスキャンで読み出しを同時に行うことによって、第1の処理(符号化)と第2の処理(復号化)とを並列実行させようとしたものである。   In the case of the first embodiment, after all the coefficients have been written in each memory in step 101, first processing (step 102 to step 107) is performed first, and then second processing (step 108 to step 108). Step 110) is performed, but in the present embodiment, the first processing (symbol) is performed by simultaneously performing reading by different reading scans using the port A and the port B that are capable of independent reading operations. And the second process (decoding) are to be executed in parallel.

すなわち、第1の処理に必要な係数の読み出し(ステップ203、ステップ204、ステップ205)についてはポートAを用いて行い、第2の処理に必要な係数の読み出し(ステップ208)についてはポートBを用いて行うことによって、それぞれの処理が独立して並列に実行できるため、第1の実施形態の場合と比較して、より高速な動画像符号化を実現することが可能となる。ちなみに、ポートAとポートBとは並列読み出しされるため、ポートBより読み出されるデータ(RDB1、RDB2、RDB3)は、出力選択器209,210に入力され、メモリ制御回路8より供給される選択信号S6、S7に基づいて読み出しスキャン順に連続する2個の係数が選択され、第2の処理を実行するための出力端子211,212に出力される。   That is, the reading of the coefficients necessary for the first processing (step 203, step 204, step 205) is performed using port A, and the reading of the coefficients necessary for the second processing (step 208) is performed using port B. By using this method, each process can be executed independently and in parallel. Therefore, it is possible to realize higher-speed moving image encoding as compared with the case of the first embodiment. Incidentally, since the port A and the port B are read in parallel, the data (RDB1, RDB2, RDB3) read from the port B is input to the output selectors 209 and 210 and supplied from the memory control circuit 8 Two coefficients consecutive in the reading scan order are selected based on S6 and S7, and are output to the output terminals 211 and 212 for executing the second processing.

《第3の実施形態》
図11は、本発明の第3の実施形態に係る信号処理装置301の構成を示すブロック図である。第1および第2の実施形態と大きく異なる点は、記憶ユニット7を構成するm個(ここではm=3)のメモリのクロックを制御するクロック制御回路30を新たに備えた点である。
<< Third Embodiment >>
FIG. 11 is a block diagram showing a configuration of a signal processing device 301 according to the third embodiment of the present invention. A significant difference from the first and second embodiments is that a clock control circuit 30 for controlling the clocks of m memories (here, m = 3) constituting the storage unit 7 is newly provided.

第1および第2の実施形態において、m個のメモリへの書き込みおよび読み出し制御を考えた時、図5〜図8に示すようにすべてのクロックサイクルにおいて全メモリが動作する必要はない。書き込み制御においては、図5に示すように、2個の係数をm個(m>2)のメモリに並列に書き込む際には、書き込む必要がないメモリが存在する。このような場合、クロック制御回路30は書き込む必要がないメモリのクロックを停止するよう制御する。例えば、係数0(WD1=0)と係数8(WD3=8)とを書き込むサイクルでは、係数0が第1のメモリ701に書き込まれ、係数8が第3のメモリ703に書き込まれるようメモリ制御回路8により制御されるため、第2のメモリ702については書き込みサイクルが発生しない。よって、クロック制御回路30は、第2のメモリ702に対してクロック停止信号CKE2を供給し、クロックを停止させる。   In the first and second embodiments, when writing and reading control to m memories are considered, it is not necessary for all the memories to operate in every clock cycle as shown in FIGS. In the write control, as shown in FIG. 5, when writing two coefficients to m (m> 2) memories in parallel, there is a memory that does not need to be written. In such a case, the clock control circuit 30 controls to stop the clock of the memory that does not need to be written. For example, in a cycle in which coefficient 0 (WD1 = 0) and coefficient 8 (WD3 = 8) are written, the memory control circuit is configured so that coefficient 0 is written to the first memory 701 and coefficient 8 is written to the third memory 703. 8, no write cycle occurs in the second memory 702. Therefore, the clock control circuit 30 supplies the clock stop signal CKE2 to the second memory 702 to stop the clock.

第1のメモリ701および第3のメモリ703についても同様に書き込みが発生しないサイクルについては、クロック制御回路30からクロック停止信号CKE1およびCKE3が供給され、第1のメモリ701および第3のメモリ703はCKE1およびCKE3に基づいてクロックを停止する。   Similarly, in the cycle in which writing does not occur in the first memory 701 and the third memory 703, clock stop signals CKE1 and CKE3 are supplied from the clock control circuit 30, and the first memory 701 and the third memory 703 The clock is stopped based on CKE1 and CKE3.

以上のように本実施形態においては、書き込みおよび読み出しが発生するサイクルのみ各メモリにクロックが供給されるように制御されるため、より低消費電力化を図った信号処理装置の実現が可能となる。   As described above, in this embodiment, control is performed so that a clock is supplied to each memory only in a cycle in which writing and reading occur, so that it is possible to realize a signal processing device that further reduces power consumption. .

なお、図1の構成にクロック制御回路30を付加したものを図11に示したが、図9の構成に同様のクロック制御回路30を付加することとしてもよい。   Although the configuration in which the clock control circuit 30 is added to the configuration in FIG. 1 is shown in FIG. 11, a similar clock control circuit 30 may be added to the configuration in FIG.

《第4の実施形態》
図12は、本発明の第4の実施形態に係る信号処理装置401の構成を示すブロック図である。第1の実施形態と大きく異なる点は、記憶ユニット7を複数(m個)のメモリで構成するのではなく、1つのメモリ(第1のメモリ701)で構成している点である。また、第1の実施形態におけるm個のメモリは1つの読み出しポートを有するメモリであるのに対し、本実施形態における第1のメモリ701は、少なくとも1つの書き込みポートを有し、かつ互いに独立した読み出しが可能な読み出しポートを少なくとも2つ有しているという点で異なる。
<< Fourth Embodiment >>
FIG. 12 is a block diagram showing a configuration of a signal processing device 401 according to the fourth embodiment of the present invention. A significant difference from the first embodiment is that the storage unit 7 is not composed of a plurality of (m) memories, but is composed of one memory (first memory 701). The m memories in the first embodiment are memories having one read port, whereas the first memory 701 in this embodiment has at least one write port and is independent of each other. The difference is that it has at least two read ports capable of reading.

以下、図13に示したフローチャートを参照しながら、動作を具体的に説明していく。   The operation will be specifically described below with reference to the flowchart shown in FIG.

〈書き込み制御方法の説明〉
図12において第1のメモリ701は、入力端子2および3から入力される第1のスキャン順に連続する2個のデータ(WDAU、WDAL)をペアにしてWDAとし、ポートAを通じて第1のメモリ701の1つのアドレスに順次書き込んでいく。ポートAにおける第1のメモリ701への書き込み制御は、メモリ制御回路8より供給される書き込みアドレスAAと、ライトイネーブル信号WEAとを用いて行われる(ステップ400)。ブロックのデータすべてを書き込むまでステップ400を繰り返し行う(ステップ101)。このようにして、すべてのデータを第1のメモリ701へ書き込んだ一例を図14(a)および図14(b)に示す。図14(a)は、第1のメモリ701のメモリマップを2次元イメージで示したものであり、1つのアドレスに2個のデータが一時的に記憶されている様子が伺える。また、図14(b)は第1のメモリ701の書き込みアドレスAAと書き込みデータWDA(WDAU、WDAL)とを示したものである。この場合のAA、WDAU、WDALの遷移を図15に示す。図15に示すように、書き込み制御は、例えば、書き込みスキャン(第1のスキャン)順に連続する2個のデータ0、8がアドレス0に、次のデータ16、24がアドレス8にといった具合に、順次記憶されていく。
<Description of write control method>
In FIG. 12, the first memory 701 is a pair of two data (WDAU, WDAL) consecutive in the first scan order input from the input terminals 2 and 3 to form a WDA. One address is sequentially written. Write control to the first memory 701 at the port A is performed using the write address AA supplied from the memory control circuit 8 and the write enable signal WEA (step 400). Step 400 is repeated until all the block data is written (step 101). An example in which all data is written to the first memory 701 in this way is shown in FIGS. 14 (a) and 14 (b). FIG. 14A shows a memory map of the first memory 701 as a two-dimensional image, and it can be seen that two data are temporarily stored at one address. FIG. 14B shows a write address AA and write data WDA (WDAU, WDAL) in the first memory 701. FIG. 15 shows transitions of AA, WDAU, and WDAL in this case. As shown in FIG. 15, for example, the write control is performed in such a way that two data 0 and 8 consecutive in the order of write scan (first scan) are at address 0, the next data 16 and 24 are at address 8, and so on. It is memorized sequentially.

〈読み出し制御方法の説明〉
第1の実施形態の説明で記載している判定方法を用いて読み出しスキャンの判定を行う(ステップ102)。読み出しスキャンが確定すれば、読み出しスキャン(第2のスキャンあるいは第3のスキャンあるいは第4のスキャン)順に連続する2個のデータがポートAおよびポートBを用いて読み出される。具体的には、読み出しスキャン順に連続する2個のデータのうち、早い方のデータをポートAから読み出し、遅い方のデータをポートBから並列に読み出す。その様子を図16〜図18に示す。図16は読み出しスキャンがジグザグスキャンの場合のポートAの読み出しアドレスAAと読み出しデータRDAおよびポートBの読み出しアドレスABと読み出しデータRDBを示しており、図17は読み出しスキャンが水平方向優先スキャンの場合のポートAの読み出しアドレスAAと読み出しデータRDAおよびポートBの読み出しアドレスABと読み出しデータRDBを示しており、図18は読み出しスキャンが垂直方向優先スキャンの場合のポートAの読み出しアドレスAAおよび読み出しデータRDAを示している。
<Description of read control method>
The read scan is determined using the determination method described in the description of the first embodiment (step 102). If the read scan is confirmed, two data that are consecutive in the order of the read scan (second scan, third scan, or fourth scan) are read using port A and port B. Specifically, of the two pieces of data that are consecutive in the reading scan order, the earlier data is read from the port A, and the later data is read from the port B in parallel. This is shown in FIGS. FIG. 16 shows the read address AA and read data RDA of port A when the read scan is a zigzag scan, and the read address AB and read data RDB of port B. FIG. 17 shows the case where the read scan is a horizontal priority scan. FIG. 18 shows the read address AA and read data RDA of the port A, and the read address AB and read data RDB of the port B. FIG. 18 shows the read address AA and read data RDA of the port A when the read scan is the vertical priority scan. Show.

読み出しスキャンがジグザグスキャンの場合(図16)を例にとって具体的に説明すると、ジグザグスキャン順に連続するデータを2個ずつ並列に読み出すためには、(0,1)、(8,16)、(9,2)、(3,10)、…、(62,63)といったような順序で読み出す必要がある。このように読み出すために、ポートAからは2個のデータのうち早い方のデータ(0、8、9、3、…、62)を読み出すために必要な読み出しアドレスAAが0、0、1、3、…、30といったようにメモリ制御回路8より供給され、それぞれのアドレスAAに記憶されているデータが、(0,8)、(0,8)、(1,9)、(3,11)、…、(54,62)のような順序で2個ずつ読み出される。このように読み出された2個ずつのデータのうち、読み出しスキャン順に早い方のデータ(0、8、9、3、…、62)を選択し出力端子11に出力するため、メモリ制御回路8は第1の出力選択器9に対して選択信号S4を供給し、第1の出力選択器9はS4に基づいて、読み出しスキャン順に早い方のデータを順次選択し出力端子11に出力する。また、ポートAからの読み出しと並行して、ポートBからは2個のデータのうち遅い方のデータ(1、16、2、10、…、63)を読み出すために必要な読み出しアドレスABが、1、8、2、2、…、31といったようにメモリ制御回路8より供給され、それぞれのアドレスABに記憶されているデータが、(1,9)、(16,24)、(2,10)、(2,10)、…、(55,63)のような順序で2個ずつ読み出される。このように読み出された2個ずつのデータのうち、読み出しスキャン順に遅い方のデータ(1、16、2、10、…、63)を選択し出力端子12に出力するため、メモリ制御回路8は第2の出力選択器10に対して選択信号S5を供給し、第2の出力選択器10はS5に基づいて、読み出しスキャン順に遅い方のデータを順次選択し出力端子12に出力する。以上の動作がステップ403における並列読み出し動作(第2のスキャン)である。その他の動作制御については第1の実施形態の場合と同様であるため、ここでは詳細な説明を省略する。   More specifically, taking the case where the reading scan is a zigzag scan (FIG. 16) as an example, in order to read out two consecutive data in the zigzag scan order in parallel, (0, 1), (8, 16), ( 9, 2), (3, 10),..., (62, 63) need to be read in the order. In order to read out in this way, the read address AA required to read out the earlier data (0, 8, 9, 3,..., 62) out of the two data from the port A is 0, 0, 1, 3,..., 30 and so on, the data supplied from the memory control circuit 8 and stored in the respective addresses AA are (0, 8), (0, 8), (1, 9), (3, 11 ),..., (54, 62). Of the two data read out in this way, the earlier data (0, 8, 9, 3,..., 62) in the reading scan order is selected and output to the output terminal 11, so that the memory control circuit 8 Supplies a selection signal S4 to the first output selector 9, and the first output selector 9 sequentially selects the earlier data in the reading scan order based on S4 and outputs it to the output terminal 11. In parallel with the reading from the port A, the read address AB required for reading the later data (1, 16, 2, 10,..., 63) out of the two data from the port B is: The data supplied from the memory control circuit 8 such as 1, 8, 2, 2,... 31 and stored in the respective addresses AB are (1, 9), (16, 24), (2, 10 ), (2, 10),..., (55, 63). Of the two data read out in this way, the data (1, 16, 2, 10,..., 63) that is later in reading scan order is selected and output to the output terminal 12, so that the memory control circuit 8 Supplies a selection signal S5 to the second output selector 10, and the second output selector 10 sequentially selects the later data in the reading scan order based on S5 and outputs the selected data to the output terminal 12. The above operation is the parallel reading operation (second scan) in step 403. Since other operation control is the same as that in the first embodiment, detailed description thereof is omitted here.

以上のようにして、書き込み、読み出し制御を行うことにより、記憶ユニット7を1つのメモリで構成しても2個のデータを並列に読み出すことができ、高速なスキャンの変更が可能となる。また、第1、第2および第3の実施形態のように記憶ユニット7を複数(m個)のメモリで構成する必要がなく、半導体装置などで本発明を実施するような場合には、当該メモリの占有する面積の面においてはさらに安価な装置を実現することができる。   By performing the writing and reading control as described above, two pieces of data can be read in parallel even if the storage unit 7 is configured by one memory, and a high-speed scan can be changed. Further, unlike the first, second, and third embodiments, it is not necessary to configure the storage unit 7 with a plurality of (m) memories, and when the present invention is implemented in a semiconductor device or the like, In terms of the area occupied by the memory, a more inexpensive device can be realized.

《第5の実施形態》
図19は、本発明の第5の実施形態に係る信号処理方法を示すフローチャートである。信号処理装置としては、第1の実施形態と同様のもの(図1)を使用して行う。
<< Fifth Embodiment >>
FIG. 19 is a flowchart showing a signal processing method according to the fifth embodiment of the present invention. The signal processing apparatus is the same as that in the first embodiment (FIG. 1).

本実施形態は、信号処理装置1を用いて動画像の復号化における高速なスキャンの変更を実施しようとしたものであり、以下、図19を参照して具体的に説明する。   In the present embodiment, a high-speed scan change is performed in the decoding of a moving image using the signal processing device 1, and will be specifically described below with reference to FIG.

符号化の場合は、第1のメモリ701、第2のメモリ702および第3のメモリ703への書き込みは第1のスキャン固定で、読み出しスキャンは第1のスキャン、第2のスキャン、第3のスキャンあるいは第4のスキャンのうちいずれか1つであったのに対して、復号化(本実施形態)の場合は、書き込みスキャンは、第2のスキャン、第3のスキャンあるいは第4のスキャンのうちいずれか1つであり、読み出しスキャンは第1のスキャン固定となる。   In the case of encoding, writing to the first memory 701, the second memory 702, and the third memory 703 is fixed to the first scan, and the reading scan is the first scan, the second scan, and the third scan In the case of decoding (this embodiment), the write scan is the second scan, the third scan, or the fourth scan, which is one of the scan and the fourth scan. Any one of them, and the reading scan is fixed to the first scan.

〈書き込み制御方法の説明〉
まず、書き込みスキャンを選択するために必要となる復号化対象ブロックに隣接したブロック(A、B、C)のDC係数(σA、σB、σC)が予測係数入力端子13より入力され、DC予測符号化とDC/AC予測符号化とのモード切替えの設定が設定端子14より入力され、書き込みスキャン(第2のスキャンあるいは第3のスキャンあるいは第4のスキャン)の判定が行われる(ステップ500)。判定方法については、第1の実施形態の説明において記載した方法と同様である。
<Description of write control method>
First, DC coefficients (σA, σB, σC) of blocks (A, B, C) adjacent to a decoding target block necessary for selecting a write scan are input from the prediction coefficient input terminal 13, and a DC prediction code The setting of mode switching between normalization and DC / AC predictive coding is input from the setting terminal 14, and a write scan (second scan, third scan, or fourth scan) is determined (step 500). The determination method is the same as the method described in the description of the first embodiment.

次に、ステップ500にて判定された書き込みスキャンに従ってm個(ここでは、m=3)のメモリ701,702,703に書き込みスキャン順に連続する2個のデータが書き込まれ(ステップ503〜ステップ505)、すべてのデータが書き込まれるまで繰り返し書き込みを行う(ステップ506)。書き込み制御において各メモリへ供給される書き込みアドレスおよび書き込みデータについては、図6〜図8と同様である。   Next, in accordance with the write scan determined in step 500, two pieces of continuous data in the order of the write scan are written in m (here, m = 3) memories 701, 702, and 703 (step 503 to step 505). The writing is repeated until all the data is written (step 506). The write address and write data supplied to each memory in the write control are the same as those shown in FIGS.

〈読み出し制御方法の説明〉
ステップ506において、すべてのデータの書き込みが完了したと判断されたら、第1のスキャン順に連続する2個の係数をm個のメモリ701,702,703から順次読み出し、出力選択器9,10において第1のスキャン順に連続する2個の係数を選択することにより、第1のスキャン順に連続する2個のデータが出力端子11,12に順次出力される(ステップ507)。読み出し制御において各メモリへ供給されるアドレスと読み出しデータは、図5と同様である。
<Description of read control method>
If it is determined in step 506 that all data has been written, the two consecutive coefficients in the first scan order are sequentially read from the m memories 701, 702, and 703, and the output selectors 9 and 10 By selecting two coefficients that are consecutive in one scan order, two data that are consecutive in the first scan order are sequentially output to the output terminals 11 and 12 (step 507). The address and read data supplied to each memory in the read control are the same as in FIG.

このように順次読み出された第1のスキャン順に連続する2個のデータに対して順次復号化処理が施され(ステップ508)、すべてのデータの読み出しおよび復号化が完了するまで(ステップ509)、繰り返し行われる。   Decoding processing is sequentially performed on the two data sequentially read in the first scan order in this way (step 508) until all data is read and decoded (step 509). Repeatedly.

以上のような信号処理方法を用いることにより、動画像の復号化処理におけるデータの並べ替え(スキャンの変更)についても符号化処理の場合と同様に高速化を図ることが可能となる。   By using the signal processing method as described above, it is possible to increase the speed of data rearrangement (scan change) in the moving picture decoding process as in the case of the encoding process.

《第6の実施形態》
図20は、本発明の第6の実施形態に係る信号処理方法を示すフローチャートである。本実施形態は、第1の実施形態に示すような信号処理装置1を符号化の場合と復号化の場合とで共用することにより、安価で、かつ高速なデータの並べ替えを実現しようとしたものである。
<< Sixth Embodiment >>
FIG. 20 is a flowchart showing a signal processing method according to the sixth embodiment of the present invention. In the present embodiment, the signal processing device 1 as shown in the first embodiment is shared between the case of encoding and the case of decoding, thereby attempting to realize low-speed and high-speed data rearrangement. Is.

まず、設定された動作モードの判定を行う(ステップ600)。動作モードが符号化の場合は、ステップ601において図2に示すステップ100〜ステップ110と同様の処理が行われ、高速なデータの並べ替えが行われる。また、動作モードが復号化の場合は、ステップ602において図19に示すステップ500〜ステップ509と同様の処理が行われ、高速なデータの並べ替えが行われる。   First, the set operation mode is determined (step 600). When the operation mode is encoding, in step 601, the same processing as in steps 100 to 110 shown in FIG. 2 is performed, and high-speed data rearrangement is performed. If the operation mode is decoding, the same processing as in steps 500 to 509 shown in FIG. 19 is performed in step 602, and high-speed data rearrangement is performed.

以上のようにして、符号化における高速なデータの並べ替えと復号化における高速なデータの並べ替えとを、1つの信号処理装置を排他的に用いることにより、安価で、かつ高速に実現できる。   As described above, high-speed data rearrangement in encoding and high-speed data rearrangement in decoding can be realized at low cost and at high speed by exclusively using one signal processing device.

《第7の実施形態》
図21は、本発明の第7の実施形態における撮像システム501、例えばデジタルスチルカメラ(DSC)の構成を示すブロック図である。図21中の信号処理装置506は、上記本発明の第1〜第6の実施形態に係る信号処理装置のうちのいずれかである。
<< Seventh Embodiment >>
FIG. 21 is a block diagram illustrating a configuration of an imaging system 501, for example, a digital still camera (DSC), according to the seventh embodiment of the present invention. A signal processing device 506 in FIG. 21 is one of the signal processing devices according to the first to sixth embodiments of the present invention.

図21によれば、光学系502を通って入射した画像光はセンサ503上に結像される。センサ503はタイミング制御回路509によって駆動されることにより、結像された画像光を蓄積し、電気信号へと光電変換する。センサ503から読み出された電気信号は、アナログ・デジタル変換器(ADC)504によってデジタル信号へと変換された後に、当該信号処理装置506を含む画像処理回路505に入力される。この画像処理回路505においては、Y/C処理、エッジ処理、画像の拡大縮小、および本発明を用いた画像圧縮伸張処理などの画像処理が行われる。画像処理された信号は、記録転送回路507においてメディアヘの記録あるいは転送が行われる。記録あるいは転送された信号は、再生回路508により再生される。この撮像システム501の全体は、システム制御回路510によって制御されている。   According to FIG. 21, the image light incident through the optical system 502 is imaged on the sensor 503. The sensor 503 is driven by the timing control circuit 509 to accumulate the imaged image light and photoelectrically convert it into an electrical signal. The electrical signal read from the sensor 503 is converted into a digital signal by an analog / digital converter (ADC) 504 and then input to an image processing circuit 505 including the signal processing device 506. The image processing circuit 505 performs image processing such as Y / C processing, edge processing, image enlargement / reduction, and image compression / expansion processing using the present invention. The image-processed signal is recorded or transferred to a medium in a recording / transfer circuit 507. The recorded or transferred signal is reproduced by the reproduction circuit 508. The entire imaging system 501 is controlled by a system control circuit 510.

なお、本発明に係る信号処理装置506における画像処理は必ずしも光学系502を介してセンサ503に結像された画像光に基づく信号のみに適用されるものではなく、例えば外部装置から電気信号として入力される画像信号を処理する際にも適用可能であることは言うまでもない。   Note that the image processing in the signal processing device 506 according to the present invention is not necessarily applied only to a signal based on the image light imaged on the sensor 503 via the optical system 502, and is input as an electrical signal from an external device, for example. Needless to say, the present invention can also be applied to processing an image signal to be processed.

本発明に係る信号処理方法および信号処理装置は、複数の書き込みスキャンおよび複数の読み出しスキャンが存在するような場合においても、高速なデータの並べ替え(スキャンの変更)を容易に実現できるため、安価で、かつ高速な符号化および復号化が要求される画像符号化復号化システムへの応用が可能である。   The signal processing method and signal processing apparatus according to the present invention are inexpensive because they can easily realize high-speed data rearrangement (scan change) even when there are a plurality of write scans and a plurality of read scans. Therefore, it can be applied to an image encoding / decoding system that requires high-speed encoding and decoding.

特に、近年、低ビットレート符号化技術として注目されているMPEG−4を搭載したカメラ付き携帯電話、PDAなどの携帯機器などに有用であり、さらに、低ビットレートでの高画質・長時間動画記録の需要が高まっているDSCや、これらの携帯機器との連携を図ったAV機器などにも有用である。   In particular, it is useful for camera-equipped mobile phones equipped with MPEG-4, which has been attracting attention as a low-bit-rate encoding technology in recent years, portable devices such as PDAs, etc. Furthermore, high-quality, long-time video at low bit rates It is also useful for DSCs for which the demand for recording is increasing, and AV devices that are linked with these portable devices.

本発明の第1の実施形態に係る信号処理装置の構成を示す図である。It is a figure which shows the structure of the signal processing apparatus which concerns on the 1st Embodiment of this invention. 本発明の第1の実施形態における信号処理方法を示すフローチャートである。It is a flowchart which shows the signal processing method in the 1st Embodiment of this invention. (a)〜(d)は、本発明の第1の実施形態における複数のメモリのメモリマップを2次元イメージで示し、かつ4つのスキャン順を示した図である。(A)-(d) is the figure which showed the memory map of the some memory in the 1st Embodiment of this invention with a two-dimensional image, and showed four scanning orders. (a)〜(c)は、本発明の第1の実施形態における複数のメモリのメモリマップを1次元イメージで示した図である。(A)-(c) is the figure which showed the memory map of the some memory in the 1st Embodiment of this invention with the one-dimensional image. 本発明の第1の実施形態における複数のメモリの書き込み制御をラスタスキャンの場合について示した図である。It is the figure which showed the write-in control of the some memory in the 1st Embodiment of this invention about the case of a raster scan. 本発明の第1の実施形態における複数のメモリの読み出し制御をジグザグスキャンの場合について示した図である。It is the figure which showed the read-out control of the some memory in the 1st Embodiment of this invention about the case of a zigzag scan. 本発明の第1の実施形態における複数のメモリの読み出し制御を水平方向優先スキャンの場合について示した図である。It is the figure which showed the read-out control of the some memory in the 1st Embodiment of this invention about the case of a horizontal direction priority scan. 本発明の第1の実施形態における複数のメモリの読み出し制御を垂直方向優先スキャンの場合について示した図である。It is the figure which showed the read-out control of the some memory in the 1st Embodiment of this invention about the case of a vertical direction priority scan. 本発明の第2の実施形態に係る信号処理装置の構成を示す図である。It is a figure which shows the structure of the signal processing apparatus which concerns on the 2nd Embodiment of this invention. 本発明の第2の実施形態における信号処理方法を示すフローチャートである。It is a flowchart which shows the signal processing method in the 2nd Embodiment of this invention. 本発明の第3の実施形態に係る信号処理装置の構成を示す図である。It is a figure which shows the structure of the signal processing apparatus which concerns on the 3rd Embodiment of this invention. 本発明の第4の実施形態に係る信号処理装置の構成を示す図である。It is a figure which shows the structure of the signal processing apparatus which concerns on the 4th Embodiment of this invention. 本発明の第4の実施形態における信号処理方法を示すフローチャートである。It is a flowchart which shows the signal processing method in the 4th Embodiment of this invention. (a)および(b)は、本発明の第4の実施形態におけるメモリのメモリマップを2次元イメージおよび1次元イメージでそれぞれ示した図である。(A) And (b) is the figure which each showed the memory map of the memory in the 4th Embodiment of this invention with the two-dimensional image and the one-dimensional image. 本発明の第4の実施形態におけるメモリの書き込み制御をラスタスキャンの場合について示した図である。It is the figure which showed the write-in control of the memory in the 4th Embodiment of this invention about the case of a raster scan. 本発明の第4の実施形態におけるメモリの読み出し制御をジグザグスキャンの場合について示した図である。It is the figure which showed the reading control of the memory in the 4th Embodiment of this invention about the case of a zigzag scan. 本発明の第4の実施形態におけるメモリの読み出し制御を水平方向優先スキャンの場合について示した図である。It is the figure which showed the reading control of the memory in the 4th Embodiment of this invention about the case of a horizontal direction priority scan. 本発明の第4の実施形態におけるメモリの読み出し制御を垂直方向優先スキャンの場合について示した図である。It is the figure which showed the read-out control of the memory in the 4th Embodiment of this invention about the case of a vertical direction priority scan. 本発明の第5の実施形態における信号処理方法を示すフローチャートである。It is a flowchart which shows the signal processing method in the 5th Embodiment of this invention. 本発明の第6の実施形態における信号処理方法を示すフローチャートである。It is a flowchart which shows the signal processing method in the 6th Embodiment of this invention. 本発明の第7の実施形態における撮像システムの構成を示す図である。It is a figure which shows the structure of the imaging system in the 7th Embodiment of this invention. 従来の一般的な画像符号化装置の構成を示す図である。It is a figure which shows the structure of the conventional general image coding apparatus. 従来の信号処理装置の構成を示す図である。It is a figure which shows the structure of the conventional signal processing apparatus. (a)および(b)は、従来の信号処理装置における複数のメモリのメモリマップを2次元イメージで示し、かつ2つのスキャン順を示した図である。(A) And (b) is the figure which showed the memory map of the some memory in the conventional signal processing apparatus with a two-dimensional image, and showed two scanning orders. (a)および(b)は、従来の信号処理装置における複数のメモリのメモリマップを1次元イメージで示した図である。(A) And (b) is the figure which showed the memory map of the some memory in the conventional signal processing apparatus with the one-dimensional image. (a)および(b)は、従来の信号処理装置における複数のメモリの書き込みおよび読み出し制御をそれぞれ示した図である。(A) And (b) is the figure which showed the write-in and read-out control of the some memory in the conventional signal processing apparatus, respectively. 従来の係数予測方法を説明する図である。It is a figure explaining the conventional coefficient prediction method. (a)〜(d)は、従来の信号処理方法では本発明の課題を解決できないことを具体的に示す図である。(A)-(d) is a figure which shows concretely that the subject of this invention cannot be solved with the conventional signal processing method.

1,201,301,401,1001 信号処理装置
2,3 入力端子
4,5,6 入力選択器
9,10,209,210 出力選択器
7 記憶ユニット
8 メモリ制御回路
11,12,211,212 出力端子
13 予測係数入力端子
14 設定端子
30 クロック制御回路
501 撮像システム
502 光学系
503 センサ
504 アナログ・デジタル変換器(ADC)
505 画像処理回路
506 信号処理装置
507 記録転送回路
508 再生回路
509 タイミング制御回路
510 システム制御回路
701 第1のメモリ
702 第2のメモリ
703 第3のメモリ
1, 201, 301, 401, 1001 Signal processing device 2, 3 Input terminals 4, 5, 6 Input selector 9, 10, 209, 210 Output selector 7 Storage unit 8 Memory control circuit 11, 12, 211, 212 Output Terminal 13 Prediction coefficient input terminal 14 Setting terminal 30 Clock control circuit 501 Imaging system 502 Optical system 503 Sensor 504 Analog to digital converter (ADC)
505 Image processing circuit 506 Signal processing device 507 Recording transfer circuit 508 Reproduction circuit 509 Timing control circuit 510 System control circuit 701 First memory 702 Second memory 703 Third memory

Claims (12)

複数のデータで構成された2次元のブロックデータを処理する信号処理方法であって、
前記ブロックデータを記憶するように、行方向あるいは列方向のラスタスキャン順に連続する2個のデータをm個のメモリ(mは3以上の整数)へ順次書き分けるステップと、
データの並べ替えを実現するように、前記m個のメモリから複数のデータを読み出し、ジグザグスキャン、水平方向優先スキャンあるいは垂直方向優先スキャンのうち選択された読み出しスキャン順に連続する2個のデータを順次選択するステップとを備えたことを特徴とする信号処理方法。
A signal processing method for processing two-dimensional block data composed of a plurality of data,
Sequentially writing two pieces of data in the order of raster scanning in the row direction or the column direction to m memories (m is an integer of 3 or more) so as to store the block data;
In order to realize data rearrangement, a plurality of data are read from the m memories, and two consecutive data in order of the read scan selected in the zigzag scan, the horizontal priority scan or the vertical priority scan are sequentially And a selecting step.
請求項1記載の信号処理方法において、
前記選択された2個のデータに対して符号化処理を行うステップと、
前記符号化処理が完了した後に、前記m個のメモリから読み出された複数のデータから行方向あるいは列方向のラスタスキャン順に連続する2個のデータを順次選択し、該選択した2個のデータに対して動画像符号化におけるフレーム間予測符号化時に必要となる参照画像を生成するための処理を行うステップとをさらに備えたことを特徴とする信号処理方法。
The signal processing method according to claim 1,
Performing an encoding process on the selected two pieces of data;
After the encoding process is completed, two consecutive data are sequentially selected from the plurality of data read from the m memories in the row- or column-direction raster scan order, and the selected two data And a step of performing a process for generating a reference image necessary for inter-frame predictive coding in moving picture coding.
請求項1記載の信号処理方法において、
前記m個のメモリの各々は、少なくとも1つの書き込みポートを有し、かつ互いに独立した読み出しが可能な読み出しポートを2つ以上有するメモリであり、
前記データの並べ替えのためのデータ読み出しを前記m個のメモリの各々のある読み出しポートから行って、前記ジグザグスキャン、水平方向優先スキャンあるいは垂直方向優先スキャンのうち選択された読み出しスキャン順に連続する2個のデータに対して符号化処理を行うステップと、
前記符号化処理と並行して、前記m個のメモリの各々の他の1つの読み出しポートから読み出された複数のデータから行方向あるいは列方向のラスタスキャン順に連続する2個のデータを順次選択し、該選択した2個のデータに対して動画像符号化におけるフレーム間予測符号化時に必要となる参照画像を生成するための処理を行うステップとをさらに備えたことを特徴とする信号処理方法。
The signal processing method according to claim 1,
Each of the m memories is a memory having at least one write port and two or more read ports capable of reading independent from each other,
Data reading for rearranging the data is performed from a certain read port of each of the m memories, and continues in the order of the read scan selected from among the zigzag scan, the horizontal direction priority scan, and the vertical direction priority scan. Performing an encoding process on each piece of data;
In parallel with the encoding process, two consecutive data items in the order of raster scan in the row direction or the column direction are sequentially selected from a plurality of data read from the other one read port of each of the m memories. And a step of performing a process for generating a reference image necessary for inter-frame predictive coding in moving picture coding on the selected two pieces of data. .
複数のデータで構成された2次元のブロックデータを処理する信号処理方法であって、
前記ブロックデータを記憶するように、ジグザグスキャン、水平方向優先スキャンあるいは垂直方向優先スキャンのうち選択された書き込みスキャン順に連続する2個のデータをm個のメモリ(mは3以上の整数)へ順次書き分けるステップと、
データの並べ替えを実現するように、前記m個のメモリから複数のデータを読み出し、行方向あるいは列方向のラスタスキャン順に連続する2個のデータを順次選択するステップとを備えたことを特徴とする信号処理方法。
A signal processing method for processing two-dimensional block data composed of a plurality of data,
In order to store the block data, two consecutive data in the order of the write scan selected from zigzag scan, horizontal priority scan or vertical priority scan are sequentially transferred to m memories (m is an integer of 3 or more). A step to separate,
A step of reading a plurality of data from the m memories and sequentially selecting two consecutive data in a row scan or column scan order so as to realize data rearrangement. Signal processing method.
請求項記載の信号処理方法において、
前記選択された2個のデータに対して復号処理を行うステップをさらに備えたことを特徴とする信号処理方法。
The signal processing method according to claim 4 , wherein
The signal processing method further comprising the step of performing a decoding process on the two selected data.
設定された動作モードに応じて、第1の動作モードにおいては請求項1〜3のいずれか1項に記載の信号処理方法を用いてデータの並べ替えを行い、第2の動作モードにおいては請求項又は記載の信号処理方法を用いてデータの並べ替えを行うことを特徴とする信号処理方法。 According to the set operation mode, data is rearranged using the signal processing method according to any one of claims 1 to 3 in the first operation mode, and charged in the second operation mode. 6. A signal processing method comprising rearranging data using the signal processing method according to item 4 or 5 . 複数のデータで構成された2次元のブロックデータを処理する信号処理装置であって、
前記ブロックデータを記憶するためのm個(mは3以上の整数)のメモリで構成された記憶手段と、
行方向あるいは列方向のラスタスキャン順に連続する2個のデータの中から前記m個のメモリへの書き込みデータを選択する複数の入力選択器と、
前記m個のメモリから読み出された複数のデータの中から、ジグザグスキャン、水平方向優先スキャンあるいは垂直方向優先スキャンのうち選択された読み出しスキャン順に連続する2個のデータを選択する複数の出力選択器と、
前記記憶手段へのブロックデータの書き込みおよび読み出し制御を行うとともに、前記複数の入力選択器および前記複数の出力選択器に対して選択信号を供給するためのメモリ制御手段とを備えたことを特徴とする信号処理装置。
A signal processing apparatus for processing two-dimensional block data composed of a plurality of data,
Storage means composed of m (m is an integer of 3 or more) memories for storing the block data;
A plurality of input selectors for selecting data to be written to the m memories from two consecutive data in the row- or column-direction raster scan order;
A plurality of output selections for selecting two consecutive data in the order of the read scan selected from the zigzag scan, the horizontal direction priority scan, or the vertical direction priority scan among the plurality of data read from the m memories. And
Memory control means for writing and reading block data to and from the storage means and supplying selection signals to the plurality of input selectors and the plurality of output selectors, Signal processing device.
請求項記載の信号処理装置において、
前記記憶手段を構成するm個のメモリの各々は、少なくとも1つの書き込みポートを有し、かつ互いに独立した読み出しが可能な読み出しポートを2つ以上有するメモリであることを特徴とする信号処理装置。
The signal processing device according to claim 7 ,
Each of the m memories constituting the storage means is a memory having at least one write port and having two or more read ports capable of reading independently of each other.
請求項記載の信号処理装置において、
前記m個のメモリに対して供給されるクロックの制御を個別に行うためのクロック制御手段をさらに備えたことを特徴とする信号処理装置。
The signal processing device according to claim 7 ,
A signal processing apparatus, further comprising clock control means for individually controlling clocks supplied to the m memories.
請求項記載の信号処理装置において、
前記クロック制御手段は、行方向あるいは列方向のラスタスキャン順に連続する2個のデータを前記m個のメモリへ書き分ける際に、書き込みが発生するメモリに対してはクロックを供給し、書き込みが発生しないメモリに対してはクロックを停止するよう制御するとともに、ジグザグスキャン、水平方向優先スキャンあるいは垂直方向優先スキャンのうち選択された読み出しスキャン順に連続する2個のデータを選択するために、読み出しサイクルが発生するメモリに対してはクロックを供給し、読み出しサイクルが発生しないメモリに対してはクロックを停止するよう制御することを特徴とする信号処理装置。
The signal processing device according to claim 9 , wherein
The clock control means supplies a clock to a memory in which writing occurs when writing two consecutive data in the row direction or column direction in the raster scan order to the m memories, and no writing occurs. The memory is controlled to stop the clock, and a read cycle is generated to select two consecutive data in the selected read scan order among zigzag scan, horizontal direction priority scan, or vertical direction priority scan. A signal processing apparatus, wherein a clock is supplied to a memory that performs a control, and a clock is stopped for a memory that does not generate a read cycle.
請求項10のいずれか1項に記載の信号処理装置を含んで画像処理を行う画像処理回路と、
前記画像処理回路へ画像信号を出力するセンサと、
前記センサへ光を結像する光学系とを備えたことを特徴とする撮像システム。
An image processing circuit that includes the signal processing device according to any one of claims 7 to 10 and performs image processing;
A sensor for outputting an image signal to the image processing circuit;
An imaging system comprising: an optical system that focuses light on the sensor.
請求項11記載の撮像システムにおいて、
前記センサから得た画像信号をデジタル信号に変換して前記画像処理回路へ供給する変換器をさらに備えたことを特徴とする撮像システム。
The imaging system according to claim 11 , wherein
An imaging system, further comprising a converter that converts an image signal obtained from the sensor into a digital signal and supplies the digital signal to the image processing circuit.
JP2004200202A 2003-11-06 2004-07-07 Signal processing method and signal processing apparatus Active JP4559785B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004200202A JP4559785B2 (en) 2003-11-06 2004-07-07 Signal processing method and signal processing apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2003376962 2003-11-06
JP2004200202A JP4559785B2 (en) 2003-11-06 2004-07-07 Signal processing method and signal processing apparatus

Publications (2)

Publication Number Publication Date
JP2005160021A JP2005160021A (en) 2005-06-16
JP4559785B2 true JP4559785B2 (en) 2010-10-13

Family

ID=34741445

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004200202A Active JP4559785B2 (en) 2003-11-06 2004-07-07 Signal processing method and signal processing apparatus

Country Status (1)

Country Link
JP (1) JP4559785B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9432679B2 (en) 2005-11-01 2016-08-30 Entropic Communications, Llc Data processing system
JP2008048258A (en) * 2006-08-18 2008-02-28 Fujitsu Ltd Image data storage unit, and storing method
JP5421609B2 (en) 2009-02-17 2014-02-19 キヤノン株式会社 Scan conversion device, image encoding device, and control method thereof
JP5004986B2 (en) 2009-03-19 2012-08-22 キヤノン株式会社 Scan conversion device, image encoding device, and control method thereof
JP5302769B2 (en) 2009-05-14 2013-10-02 キヤノン株式会社 Scan conversion apparatus, image encoding apparatus, and control method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05328332A (en) * 1992-05-14 1993-12-10 Nippon Telegr & Teleph Corp <Ntt> High parallel movement-compensated computing element
JPH0613913A (en) * 1991-05-23 1994-01-21 Sony Corp Data string rearrangement circuit
JPH08167856A (en) * 1994-10-12 1996-06-25 Matsushita Electric Ind Co Ltd Decoding circuit for run length code
JPH08265755A (en) * 1995-03-22 1996-10-11 Canon Inc Picture processor and picture processing method
JPH11252338A (en) * 1998-03-05 1999-09-17 Kanebo Ltd Data processor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0613913A (en) * 1991-05-23 1994-01-21 Sony Corp Data string rearrangement circuit
JPH05328332A (en) * 1992-05-14 1993-12-10 Nippon Telegr & Teleph Corp <Ntt> High parallel movement-compensated computing element
JPH08167856A (en) * 1994-10-12 1996-06-25 Matsushita Electric Ind Co Ltd Decoding circuit for run length code
JPH08265755A (en) * 1995-03-22 1996-10-11 Canon Inc Picture processor and picture processing method
JPH11252338A (en) * 1998-03-05 1999-09-17 Kanebo Ltd Data processor

Also Published As

Publication number Publication date
JP2005160021A (en) 2005-06-16

Similar Documents

Publication Publication Date Title
JP4909779B2 (en) Image data transfer method, image processing apparatus, and imaging system
JPH05236466A (en) Device and method for inter-frame predictive image encoding for motion compensation
US8184700B2 (en) Image decoder
JPH0818953A (en) Dynamic picture decoding display device
JP2001275116A (en) Image processor
JPWO2008120434A1 (en) Decoding circuit, decoding method, encoding circuit, and encoding method
KR100793286B1 (en) Digital video codec using small size buffer memory, and method for controlling the same
JP2010288166A (en) Moving picture encoder, broadcast wave recorder, and program
US7929777B2 (en) Variable length decoding device, variable length decoding method and image capturing system
JPH08289302A (en) Image decoding device
US7844123B2 (en) Orthogonal transformation apparatus and imaging system
CN103109535B (en) Image-reproducing method, image-reproducing apparatus, camera system and regenerative system
US7542612B2 (en) Signal processing method and signal processing device
JPH07226917A (en) Picture reproducing system and device therefor
JP3990392B2 (en) Variable length decoding apparatus, variable length decoding method, and imaging system
JP4559785B2 (en) Signal processing method and signal processing apparatus
US8588300B1 (en) Efficient transcoding between formats using macroblock buffer
JP5053774B2 (en) Video encoding device
KR101602871B1 (en) Method and apparatus for data encoding, method and apparatus for data decoding
EP2315447A1 (en) Motion detection device
JPH07298264A (en) Image data processing method, storage device used for the method and processing unit of image data
JP2009071802A (en) Dynamic image encoding method and device, and imaging system
JP3129279B2 (en) Encoding device, encoding method, and recording medium
JP3296758B2 (en) Moving picture coding apparatus and moving picture coding / reproducing apparatus
JPH0955946A (en) Moving picture signal decoding device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070523

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090820

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090825

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091009

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091201

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100105

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100723

R150 Certificate of patent or registration of utility model

Ref document number: 4559785

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130730

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250