JP2009010763A - Image processing apparatus and method - Google Patents

Image processing apparatus and method Download PDF

Info

Publication number
JP2009010763A
JP2009010763A JP2007171048A JP2007171048A JP2009010763A JP 2009010763 A JP2009010763 A JP 2009010763A JP 2007171048 A JP2007171048 A JP 2007171048A JP 2007171048 A JP2007171048 A JP 2007171048A JP 2009010763 A JP2009010763 A JP 2009010763A
Authority
JP
Japan
Prior art keywords
image signal
encoding
image
difficulty level
level information
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.)
Withdrawn
Application number
JP2007171048A
Other languages
Japanese (ja)
Inventor
Toru Okazaki
透 岡崎
Hiroshi Kobayashi
博 小林
Kiyoshi Ikeda
潔 池田
Yoichi Hirota
洋一 廣田
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.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2007171048A priority Critical patent/JP2009010763A/en
Publication of JP2009010763A publication Critical patent/JP2009010763A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing apparatus which actualizes a high compression ratio keeping an image quality of an image signal after a re-encoding process more excellent. <P>SOLUTION: The apparatus includes a decoding processing portion 10, a filter processing portion 121, an encoding processing portion 11 and a filter controlling portion 122. The decoding processing portion 10 extracts first difficulty-level information for showing the difficulty to encode from the image signal encoded by a first encoding system input from an input means and decodes the image signal. The filter processing portion 121 applies a filter processing to the decoded image signal. The encoding processing portion 11 extracts a second difficulty-level information for showing the difficulty to encode from the image signal to which the filter processing portion 121 has applied the filter processing, encodes the image signal based on a second encoding system, and outputs it. The filter controlling portion 122 controls intensity of the filter processing which the filter processing portion 121 applies to the image signal according to the first difficulty-level information extracted by the decoding processing portion 10 and the second difficulty-level information extracted by the encoding processing portion 11. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、第1の符号化方式で符号化された画像信号を復号して、復号した画像信号を第1の符号化方式と異なる第2の符号化方式の画像信号に変換する画像処理装置、及び、画像処理方法に関するものである。   The present invention decodes an image signal encoded by the first encoding method, and converts the decoded image signal into an image signal of a second encoding method different from the first encoding method. And an image processing method.

近年、動画像データをデジタルデータとして取り扱い、その際、効率の高い情報の伝送や蓄積を目的とし、動画像情報特有の冗長性を利用して、離散コサイン変換等の直交変換処理と動き補償処理により画像信号を圧縮するMPEG(Moving Picture Expert Group)等の符号化方式に準拠した装置が、放送局などの情報配信、及び、一般家庭における情報受信の双方において普及しつつある。   In recent years, moving image data has been handled as digital data. At that time, orthogonal transformation processing such as discrete cosine transformation and motion compensation processing have been performed for the purpose of efficient transmission and storage of information. An apparatus that complies with an encoding scheme such as MPEG (Moving Picture Expert Group) that compresses an image signal by means of an information signal is becoming widespread in both information distribution such as broadcasting stations and information reception in general homes.

特に、MPEG2方式(ISO/IEC13818−2)は、汎用動画像符号化方式として定義されており、また、飛び越し走査画像及び順次走査画像の双方、並びに、標準解像度画像及び高精細画像を網羅しており、プロフェッショナル用途及びコンシューマ用途の広範なアプリケーションに現在広く用いられている。   In particular, the MPEG2 system (ISO / IEC13818-2) is defined as a general-purpose moving image encoding system, and covers both interlaced scanning images and progressive scanning images, as well as standard resolution images and high-definition images. And is now widely used in a wide range of professional and consumer applications.

MPEG2方式では、例えば720×480の画サイズの標準解像度の飛び越し走査画像であれば4〜8[Mbps]のビットレートを割り当て、1920×1080の画サイズの高解像度の飛び越し走査画像であれば18〜22[Mbps]のビットレートを割り当てることによって、画質が良好に保たれた状態で画像信号を符号化することができる。   In the MPEG2 system, for example, a bit rate of 4 to 8 [Mbps] is assigned for a standard resolution interlaced scan image with a picture size of 720 × 480, and 18 for a high resolution interlaced scan image with a picture size of 1920 × 1080. By assigning a bit rate of ˜22 [Mbps], it is possible to encode an image signal while maintaining good image quality.

また、MPEG2方式は、主に放送用など高画質の状態で符号化する画像信号を対象としていたが、MPEG1方式に対して、低いビットレート、すなわちより高圧縮率の符号化方式には対応していなかった。このような高圧縮率の符号化方式に対応した符号化方式として、MPEG4方式の標準化が行われた。この画像符号化方式に関しては、1998年12月にISO/IEC14496−2として、この規格が国際標準方式として承認された。   In addition, the MPEG2 system was mainly intended for image signals encoded in a high-quality state such as for broadcasting. However, the MPEG2 system is compatible with an encoding system with a lower bit rate, that is, a higher compression rate than the MPEG1 system. It wasn't. As an encoding method corresponding to such a high compression rate encoding method, standardization of the MPEG4 method was performed. With regard to this image coding system, this standard was approved as an international standard system in December 1998 as ISO / IEC 14496-2.

以上のようなMPEG方式よりもさらに圧縮効率の高い画像符号化方式として、JVT(Joint Video Team)と呼ばれる符号化方式が提案されている。   As an image encoding method with higher compression efficiency than the MPEG method as described above, an encoding method called JVT (Joint Video Team) has been proposed.

ところで、従来デジタル放送に用いられている動画像符号化方式は、主にMPEG方式である。このようなデジタル放送を記録保存してその後再生できるようにする、いわゆるデジタルビデオレコーダなどの画像処理装置には、より高画質で長時間の記録を行えるように、MPEG方式で送られてきた画像信号を一旦復号して、より高圧縮率を実現できるJVT方式などの符号化方式によって再符号化するものがある。   By the way, the moving picture encoding method conventionally used for digital broadcasting is mainly the MPEG method. An image processing apparatus such as a so-called digital video recorder that records and stores such digital broadcasts and can subsequently reproduce the images is sent in the MPEG format so that it can be recorded for a long time with higher image quality. There is one in which a signal is once decoded and re-encoded by an encoding method such as a JVT method capable of realizing a higher compression rate.

このような再符号化の対象となる画像信号、すなわちMPEG方式で送られてきた画像信号の復号画像には、MPEG方式による画像信号を符号化するときに発生してしまうブロックノイズなどの画質劣化が含まれている。このため、再符号化処理を行う画像処理装置では、このような画質劣化が含まれた画像信号を直接JVT方式によって再符号化処理を施そうとすると、その劣化部分を再現するために余計な情報量が割かれ、圧縮効率が悪くなるだけでなく、劣化がより強調されてしまう場合があり得る。   For such an image signal to be re-encoded, that is, a decoded image of an image signal sent by the MPEG method, image quality degradation such as block noise that occurs when the image signal by the MPEG method is encoded. It is included. For this reason, in an image processing apparatus that performs re-encoding processing, if an image signal including such image quality deterioration is directly subjected to re-encoding processing by the JVT method, it is unnecessary to reproduce the deteriorated portion. There is a possibility that not only the amount of information is broken and the compression efficiency is deteriorated, but also deterioration is more emphasized.

このような画質劣化を低減するため、画像信号の再符号化処理を行う画像処理装置には、復号処理を施した画像信号に対して、MPEG方式などによる符号化処理を行ったときに含まれる画質劣化を弱めるため、例えばローパスフィルタ処理を施す場合がある。ここで、画像処理装置は、画像信号に対して、一様の強度でローパスフィルタ処理を施すと、符号化処理が比較的易しく画質劣化がほとんど生じていない画像領域まで必要以上にぼかしてしまうこととなるため必ずしも望ましくない。   In order to reduce such image quality degradation, an image processing apparatus that performs re-encoding processing of an image signal is included when encoding processing using an MPEG method or the like is performed on an image signal subjected to decoding processing. In order to weaken image quality deterioration, for example, low-pass filter processing may be performed. Here, if the image processing apparatus performs low-pass filter processing with a uniform intensity on the image signal, the encoding process is relatively easy, and an image region in which image quality degradation hardly occurs is unnecessarily blurred. Therefore, it is not always desirable.

そのため、再符号化処理には、画質劣化の度合いに応じてフィルタ処理の強度を制御することが、上述した画質劣化を低減するのに有効となる。具体的に、画像処理装置は、たとえ復号画像信号にほとんど画質劣化が見られないときでも、再符号化処理時に符号化が易しい部分と難しい部分とを判断し、易しい部分をなるべくフィルタ処理を施さずに、難しい部分の高域周波数成分のみを除去することができれば、より効率の良い再符号化が可能となる。一般的に、符号化の難しい部分は、動きの激しい部分であったり、絵柄が複雑だったりする場合が多いため、上述したようなローパスフィルタなどで画像信号の高域周波数成分を除去したとしても、視覚特性上画質劣化が分かりにくいからである。   Therefore, in the re-encoding process, controlling the strength of the filter process according to the degree of image quality deterioration is effective in reducing the image quality deterioration described above. Specifically, the image processing apparatus determines a part that is easy to encode and a part that is difficult to encode at the time of re-encoding processing even when there is almost no deterioration in image quality in the decoded image signal, and performs filtering processing on the easy part as much as possible. Without removing only the difficult high-frequency components, the re-encoding can be performed more efficiently. In general, the difficult part to encode is a part with a lot of movement or a complicated pattern, so even if the high-frequency component of the image signal is removed by the low-pass filter as described above. This is because image quality deterioration is difficult to understand due to visual characteristics.

従来の画像処理装置では、再符号化処理の前段として、画像信号に対して復号処理を施すときに得られる符号化情報に基づいて、符号化するときの難しさの度合いを評価して、フィルタ処理の強度を制御している。   In the conventional image processing apparatus, as the pre-stage of the re-encoding process, the degree of difficulty in encoding is evaluated based on the encoding information obtained when the decoding process is performed on the image signal, and the filter The intensity of processing is controlled.

また、特許文献1においては、画像信号を復号するときに得られるサブデータに基づいて、復号された画像信号を復号する情報処理装置が記載されている。   Patent Document 1 describes an information processing apparatus that decodes a decoded image signal based on sub-data obtained when the image signal is decoded.

特開2006―20147号公報JP 2006-20147 A

しかしながら、MPEG方式で符号化することが難しい画像が、JVT方式で符号化することが難しい画像になるという関係は必ずしも成立しない。例えば、画面がフェードイン又はフェードアウトするような画像信号は、MPEG方式によって符号化することは難しいが、フェード用に特化した符号化処理モードを有するJVT方式によって符号化することは比較的容易である。このように、復号処理で得られた符号化の難しさを示す情報は、再符号化処理における符号化の難しさと一致しない場合がある。   However, the relationship that an image that is difficult to encode using the MPEG method becomes an image that is difficult to encode using the JVT method does not necessarily hold. For example, an image signal whose screen fades in or out is difficult to encode by the MPEG method, but it is relatively easy to encode by the JVT method having an encoding processing mode specialized for fading. is there. As described above, the information indicating the difficulty of encoding obtained by the decoding process may not coincide with the difficulty of encoding in the re-encoding process.

本発明は、このような実情に鑑みて提案されたものであり、再符号化するときに画質劣化を低減するために復号された画像信号に対して施すフィルタ処理の強度を適切に制御することによって、再符号化処理後の画像信号の画質をより良好に保ちつつ高圧縮率を実現する画像処理装置、及び、画像処理方法を提供することを目的とする。   The present invention has been proposed in view of such circumstances, and appropriately controls the strength of filter processing applied to a decoded image signal in order to reduce image quality degradation when re-encoding. Accordingly, an object of the present invention is to provide an image processing apparatus and an image processing method that realize a high compression rate while maintaining better image quality of the image signal after the re-encoding process.

上述した課題を解決するための手段として、本発明に係る画像処理装置は、第1の符号化方式で符号化された画像信号を入力する入力手段と、上記入力手段により入力された画像信号から上記第1の符号化方式で画像信号を符号化する難しさを示す第1の難易度情報を抽出するとともに、該画像信号を該第1の符号化方式に基づいて復号する復号手段と、上記復号手段により復号された画像信号にフィルタ処理を施すフィルタ処理手段と、上記フィルタ処理手段がフィルタ処理を施した画像信号から、上記第1の符号化方式と異なる第2の符号化方式で画像信号を符号化する難しさを示す第2の難易度情報を抽出するとともに、該画像信号を該第2の符号化方式に基づいて符号化して出力する符号化手段と、上記復号手段が抽出した第1の難易度情報と、上記符号化手段が抽出した第2の難易度情報とに応じて、上記フィルタ処理手段が画像信号に施すフィルタ処理の強度を制御する制御手段とを備える。   As means for solving the above-described problems, an image processing apparatus according to the present invention includes an input means for inputting an image signal encoded by the first encoding method, and an image signal input by the input means. Decoding means for extracting first difficulty level information indicating difficulty in encoding an image signal by the first encoding method, and decoding the image signal based on the first encoding method; A filter processing unit that performs a filtering process on the image signal decoded by the decoding unit, and an image signal that has a second encoding scheme different from the first encoding scheme, from the image signal that has been subjected to the filtering process by the filter processing unit. The second difficulty level information indicating the difficulty of encoding the image signal, the encoding means for encoding and outputting the image signal based on the second encoding method, and the decoding means extracted by the decoding means 1 difficulty Comprising a degree information, in accordance with the second difficulty information extracted by the above encoding means, said filtering means and control means for controlling the intensity of the filtering process applied to the image signal.

また、本発明に係る画像処理方法は、第1の符号化方式で符号化された画像信号を入力する入力工程と、上記入力工程により入力された画像信号から上記第1の符号化方式で画像信号を符号化する難しさを示す第1の難易度情報を抽出するとともに、該画像信号を該第1の符号化方式に基づいて復号する復号工程と、上記復号工程により復号された画像信号にフィルタ処理を施すフィルタ処理工程と、上記フィルタ処理工程によりフィルタ処理を施した画像信号から、上記第1の符号化方式と異なる第2の符号化方式で画像信号を符号化する難しさを示す第2の難易度情報を抽出するとともに、該画像信号を該第2の符号化方式に基づいて符号化して出力する符号化工程と、上記復号工程で抽出される第1の難易度情報と、上記符号化工程で抽出される第2の難易度情報とに応じて、上記フィルタ処理工程が画像信号に施すフィルタ処理の強度を制御する制御工程とを有する。   The image processing method according to the present invention includes an input step of inputting an image signal encoded by the first encoding method, and an image by the first encoding method from the image signal input by the input step. Extracting first difficulty level information indicating difficulty in encoding a signal, decoding the image signal based on the first encoding method, and decoding the image signal into the image signal decoded by the decoding step A filter processing step for performing filter processing, and a second encoding method indicating difficulty in encoding an image signal by a second encoding method different from the first encoding method from the image signal subjected to the filter processing by the filter processing step. 2 difficulty level information is extracted, the image signal is encoded based on the second encoding method and output, the first difficulty level information extracted in the decoding step, and In the encoding process Depending on the second difficulty information issued, the filtering step and a control step of controlling the intensity of the filtering process applied to the image signal.

本発明では、画像信号を復号するときに抽出される第1の符号化方式で画像信号を符号化する難しさを示す第1の難易度と、画像信号を符号化するときに抽出される第2の符号化方式で画像信号を符号化する難しさを示す第2の難易度とに応じて、画像信号に施すフィルタ処理の強度を制御するので、復号された画像信号を再符号化するときに画質劣化を低減するために施すフィルタ処理の強度を適切に制御することができるので、画質を良好に保ちつつ高圧縮率が実現できるように画像信号を第2の符号化方式に符号化することができる。   In the present invention, the first difficulty level indicating the difficulty of encoding the image signal by the first encoding method extracted when decoding the image signal, and the first difficulty level extracted when encoding the image signal. When the reencoding of the decoded image signal is performed because the strength of the filter processing applied to the image signal is controlled according to the second difficulty level indicating the difficulty of encoding the image signal by the encoding method 2 Therefore, it is possible to appropriately control the strength of the filter processing performed to reduce the image quality degradation, so that the image signal is encoded into the second encoding method so that a high compression rate can be realized while maintaining a good image quality. be able to.

本発明が適用された画像処理装置は、第1の符号化方式で符号化された画像信号を復号して、第1の符号化方式と異なる第2の符号化方式の画像信号に変換する、いわゆる再符号化処理を行う画像処理装置である。以下では、図1に示すような第1の実施形態に係る画像処理装置1を用いて、本発明を実施するための最良の形態について説明する。   An image processing apparatus to which the present invention is applied decodes an image signal encoded by the first encoding method, and converts the image signal into an image signal of a second encoding method different from the first encoding method. This is an image processing apparatus that performs so-called re-encoding processing. Hereinafter, the best mode for carrying out the present invention will be described using the image processing apparatus 1 according to the first embodiment as shown in FIG.

この画像処理装置1は、例えばデジタル放送波がデジタルチューナによって復調されたMPEG方式の符号化データをベースバンドビデオ信号に復号して、復号したベースバンド信号を、DVDや、BD(Blu-ray Disc)や、HDDVD(High-Definition Digital Versatile Disc)などの高密度記録媒体の記録用データとして、MPEG方式よりも圧縮効率の高いAVC方式の符号化データに変換する処理を行う装置である。   The image processing apparatus 1 decodes, for example, MPEG encoded data obtained by demodulating a digital broadcast wave by a digital tuner into a baseband video signal, and converts the decoded baseband signal into a DVD or a BD (Blu-ray Disc). ) And HDDVD (High-Definition Digital Versatile Disc) recording data on a high-density recording medium such as HDV (High-Definition Digital Versatile Disc).

具体的に、画像処理装置1は、図1に示すように、外部から入力したMPEG2方式などの第1の符号化方式の画像信号を復号してベースバンドビデオ信号などの復号された画像信号を出力する復号処理部10と、復号された画像信号をMPEG2方式よりも圧縮効率の高いAVC方式などの第2の符号化方式の画像信号に符号化する符号化処理部11と、復号処理部10で復号された画像信号に含まれるブロック歪みノイズなどを低減する処理を行うフィルタ処理部121と、フィルタ処理部121の動作特性を制御するフィルタ制御部122と、再符号化処理が施された画像信号のビットストリームのビットレートをユーザによる操作入力により設定するユーザインタフェース123とを備える。   Specifically, as shown in FIG. 1, the image processing apparatus 1 decodes an image signal of a first encoding method such as an MPEG2 method that is input from the outside and outputs a decoded image signal such as a baseband video signal. A decoding processing unit 10 for outputting, an encoding processing unit 11 for encoding the decoded image signal into an image signal of a second encoding method such as an AVC method having higher compression efficiency than the MPEG2 method, and a decoding processing unit 10 A filter processing unit 121 that performs processing to reduce block distortion noise included in the image signal decoded in step S1, a filter control unit 122 that controls operation characteristics of the filter processing unit 121, and an image that has been subjected to re-encoding processing. And a user interface 123 for setting a bit rate of a signal bit stream by an operation input by a user.

本実施形態に係る画像処理装置1は、後述するように復号処理部10で画像信号を復号するときに抽出される第1の符号化方式に係る情報と、符号化処理部11で復号された画像信号を符号化するときに抽出される第2の符号化方式に係る情報とに応じて、フィルタ制御部122がフィルタ処理部121の動作特性を制御することにより、画質を良好に保ちつつ高圧縮率が実現できるように、画像信号を第2の符号化方式で符号化するものである。   As will be described later, the image processing apparatus 1 according to the present embodiment includes information related to the first encoding method extracted when the decoding processing unit 10 decodes an image signal, and the encoding processing unit 11 has decoded the information. The filter control unit 122 controls the operation characteristics of the filter processing unit 121 according to the information related to the second encoding method extracted when the image signal is encoded. The image signal is encoded by the second encoding method so that the compression rate can be realized.

フィルタ制御部122の具体的な処理に関する説明に先立ち、復号処理部10及び符号化処理部11の構成と動作について説明する。   Prior to description regarding specific processing of the filter control unit 122, configurations and operations of the decoding processing unit 10 and the encoding processing unit 11 will be described.

復号処理部10は、バッファ101と、可逆復号部102と、逆量子化部103と、逆直交変換部104と、加算器105と、画面並べ替え部106と、フレームメモリ107と、動き補償部108とを備える。   The decoding processing unit 10 includes a buffer 101, a lossless decoding unit 102, an inverse quantization unit 103, an inverse orthogonal transform unit 104, an adder 105, a screen rearrangement unit 106, a frame memory 107, and a motion compensation unit. 108.

バッファ101は、外部から第1の符号化方式で符号化された画像信号を入力して、入力した画像信号を一時的に記憶して、他の復号処理を行う処理部との同期を図って、順次記憶した画像信号を可逆復号部102に供給する。   The buffer 101 receives an image signal encoded by the first encoding method from the outside, temporarily stores the input image signal, and synchronizes with a processing unit that performs other decoding processing. Then, the sequentially stored image signals are supplied to the lossless decoding unit 102.

可逆復号部102は、バッファ101から供給される画像信号に対して、第1の符号化方式に基づいて、可変長復号化や算術復号化などの処理を施して、量子化された直交変換係数を逆量子化部103に供給する。   The lossless decoding unit 102 performs processing such as variable length decoding and arithmetic decoding on the image signal supplied from the buffer 101 based on the first encoding method, and quantized orthogonal transform coefficients. Is supplied to the inverse quantization unit 103.

また、可逆復号部102は、第1の符号化方式で符号化された画像信号がインター符号化されたフレーム画像データのとき、このフレーム画像データのヘッダ部に格納された動きベクトルを復号することにより抽出し、抽出した動きベクトルを動き補償部108に供給する。   In addition, the lossless decoding unit 102 decodes a motion vector stored in the header part of the frame image data when the image signal encoded by the first encoding method is inter-encoded frame image data. And the extracted motion vector is supplied to the motion compensation unit 108.

逆量子化部103は、可逆復号部102から供給される量子化された直交変換係数に対して逆量子化処理を施して、この直交変換係数を逆直交変換部104に供給する。   The inverse quantization unit 103 performs an inverse quantization process on the quantized orthogonal transform coefficient supplied from the lossless decoding unit 102 and supplies the orthogonal transform coefficient to the inverse orthogonal transform unit 104.

逆直交変換部104は、逆量子化部103で生成された直交変換係数に対して逆離散コサイン変換や逆カルーネン・レーベ変換などの逆直交変換処理を施して、復号されたフレーム画像データを加算器105に供給する。   The inverse orthogonal transform unit 104 performs inverse orthogonal transform processing such as inverse discrete cosine transform and inverse Karhunen-Labe transform on the orthogonal transform coefficient generated by the inverse quantization unit 103, and adds the decoded frame image data To the vessel 105.

加算器105は、フレーム画像データがインター符号化されているとき、逆直交変換部104から供給されるフレーム画像データに、後述する動き補償部108によって生成された予測フレーム画像データを加算して、画面並べ替え部106及びフレームメモリ107に供給する。なお、フレーム画像データがイントラ符号化されているとき、加算器105は、上述した加算処理を行わずに逆直交変換部104から供給されたフレーム画像データを画面並べ替え部106に供給する。   When the frame image data is inter-coded, the adder 105 adds the predicted frame image data generated by the motion compensation unit 108 described later to the frame image data supplied from the inverse orthogonal transform unit 104, This is supplied to the screen rearrangement unit 106 and the frame memory 107. When the frame image data is intra-coded, the adder 105 supplies the frame image data supplied from the inverse orthogonal transform unit 104 to the screen rearrangement unit 106 without performing the above-described addition processing.

画面並べ替え部106は、逆直交変換部104から供給されるフレーム画像データを時間軸方向に並び換える。そして、画面並べ替え部106は、時間軸方向に並び換えたフレーム画像データをベースバンドビデオ信号としてフィルタ処理部121に供給する。   The screen rearrangement unit 106 rearranges the frame image data supplied from the inverse orthogonal transform unit 104 in the time axis direction. Then, the screen rearrangement unit 106 supplies the frame image data rearranged in the time axis direction to the filter processing unit 121 as a baseband video signal.

フレームメモリ107は、逆直交変換部104から供給されたフレーム画像データを、インター符号化されたフレーム画像データを復号するための参照フレーム画像データとして記憶する。   The frame memory 107 stores the frame image data supplied from the inverse orthogonal transform unit 104 as reference frame image data for decoding the inter-coded frame image data.

動き補償部108は、処理対象のフレーム画像データがインター符号化されているとき、可逆復号部102から供給される動きベクトルと、フレームメモリ107に記憶された参照フレーム画像データとに応じて、予測フレーム画像データを生成して加算器105に供給する。   When the frame image data to be processed is inter-coded, the motion compensation unit 108 performs prediction according to the motion vector supplied from the lossless decoding unit 102 and the reference frame image data stored in the frame memory 107. Frame image data is generated and supplied to the adder 105.

以上のような構成を有する復号処理部10では、外部から入力した符号化データをベースバンドビデオ信号に復号して、復号したベースバンドビデオ信号をフィルタ処理部121に供給する。さらに、本実施形態に係る復号処理部10では、可逆復号部102が、可逆復号処理時において、フレーム画像データのマクロブロックのヘッダ部に格納された量子化値と発生ビット量を、第1の符号化方式で画像信号を符号化する難しさを示す第1の難易度として抽出してフィルタ制御部122に供給する。また、可逆復号部102は、上述した第1の難易度に加えて、画像信号の前後のフレームにシーンチェンジがあるかを示すシーンチェンジ情報と、インター符号化されたフレーム画像データに含まれる動きベクトル情報とを抽出してフィルタ制御部122に供給する。   The decoding processing unit 10 having the above configuration decodes encoded data input from the outside into a baseband video signal, and supplies the decoded baseband video signal to the filter processing unit 121. Furthermore, in the decoding processing unit 10 according to the present embodiment, the lossless decoding unit 102 uses the first quantization value and the generated bit amount stored in the header part of the macroblock of the frame image data during the lossless decoding process. The first difficulty level indicating the difficulty of encoding the image signal by the encoding method is extracted and supplied to the filter control unit 122. In addition to the first difficulty level described above, the lossless decoding unit 102 includes scene change information indicating whether or not there is a scene change in frames before and after the image signal, and motion included in the inter-coded frame image data. Vector information is extracted and supplied to the filter control unit 122.

また、符号化処理部11は、復号処理部10によって画像信号が復号される第1の符号化方式に対して、第2の符号化方式の符号化データに変換する処理を行うため、画面並べ替え部109と、減算器110と、直交変換部111と、量子化部112と、可逆符号化部113と、バッファ114と、逆量子化部115と、逆直交変換部116と、フレームメモリ117と、動きベクトル生成部118と、動き補償部119と、レート制御部120とを備える。   In addition, the encoding processing unit 11 performs a process of converting the first encoding method in which the image signal is decoded by the decoding processing unit 10 into encoded data of the second encoding method. Replacement unit 109, subtractor 110, orthogonal transform unit 111, quantization unit 112, lossless encoding unit 113, buffer 114, inverse quantization unit 115, inverse orthogonal transform unit 116, and frame memory 117 A motion vector generation unit 118, a motion compensation unit 119, and a rate control unit 120.

画面並べ替え部109は、後述するフィルタ処理部121から供給される画像信号を構成する各フレーム画像データを、第2の符号化方式に係る画像圧縮情報のGOP(Group of Picture)構造に応じてフレーム画像データを並べ替えて減算器110に供給する。また、画面並べ替え部109は、減算器110に供給するフレーム画像データにインター符号化処理を施すとき、このフレーム画像データを動きベクトル生成部118に供給する。   The screen rearrangement unit 109 converts each frame image data constituting the image signal supplied from the filter processing unit 121 described later according to a GOP (Group of Picture) structure of image compression information according to the second encoding method. The frame image data is rearranged and supplied to the subtractor 110. Further, the screen rearrangement unit 109 supplies the frame image data to the motion vector generation unit 118 when performing the inter encoding process on the frame image data supplied to the subtractor 110.

減算器110は、フレーム画像データにインター符号化処理を施すとき、このフレーム画像データと、後述する動き補償部119から供給される予測フレーム画像データとの差分を示す画像データを算出して、算出した画像データを直交変換部111に供給する。なお、フレーム画像データにイントラ符号化処理を施すとき、減算器110は、画面並べ替え部109から供給されるフレーム画像データに上述した差分処理を施さない。   The subtractor 110 calculates image data indicating a difference between the frame image data and predicted frame image data supplied from a motion compensation unit 119 described later when performing inter coding processing on the frame image data. The processed image data is supplied to the orthogonal transform unit 111. Note that when the intra-coding process is performed on the frame image data, the subtractor 110 does not perform the above-described difference process on the frame image data supplied from the screen rearrangement unit 109.

直交変換部111は、減算器110から供給されるフレーム画像データに対して、離散コサイン変換やカルーネン・レーベ変換などの直交変換処理を施して、直交変換係数を量子化部112に供給する。   The orthogonal transform unit 111 performs orthogonal transform processing such as discrete cosine transform and Karhunen-Loeve transform on the frame image data supplied from the subtractor 110 and supplies orthogonal transform coefficients to the quantization unit 112.

量子化部112は、後述するレート制御部120からの制御命令に応じた量子化値で、直交変換部111から供給される直交変換係数を量子化して、量子化された直交変換係数を可逆符号化部113及び逆量子化部115に供給する。   The quantization unit 112 quantizes the orthogonal transform coefficient supplied from the orthogonal transform unit 111 with a quantized value corresponding to a control command from the rate control unit 120, which will be described later, and converts the quantized orthogonal transform coefficient into a lossless code. To the quantization unit 113 and the inverse quantization unit 115.

可逆符号化部113は、後述する動きベクトル生成部118から供給される動きベクトルに対して可変長符号化や算術符号化などの可逆符号化処理を施す。そして、可逆符号化部113は、量子化部112から供給される量子化された直交変換係数からなる符号化データのヘッダ部に、上述した可逆符号化処理が施された動きベクトルを格納して、この符号化データをバッファ114に供給する。   The lossless encoding unit 113 performs lossless encoding processing such as variable length encoding and arithmetic encoding on a motion vector supplied from a motion vector generation unit 118 described later. Then, the lossless encoding unit 113 stores the motion vector that has been subjected to the above-described lossless encoding process in the header portion of the encoded data that includes the quantized orthogonal transform coefficients supplied from the quantization unit 112. The encoded data is supplied to the buffer 114.

バッファ114は、可逆符号化部113から供給される符号化データを記憶して、記憶した符号化データを連続したビットストリームとなる画像信号として外部へ出力する。また、バッファ114は、外部へ出力するビットストリームのビットレートに関する情報をレート制御部120に供給する。   The buffer 114 stores the encoded data supplied from the lossless encoding unit 113, and outputs the stored encoded data to the outside as an image signal that becomes a continuous bit stream. Further, the buffer 114 supplies information related to the bit rate of the bit stream output to the outside to the rate control unit 120.

逆量子化部115は、量子化部112から供給される量子化された直交変換係数に対して逆量子化処理を施し、逆量子化された直交変換係数を逆直交変換部116に供給する。   The inverse quantization unit 115 performs inverse quantization processing on the quantized orthogonal transform coefficient supplied from the quantization unit 112 and supplies the inversely quantized orthogonal transform coefficient to the inverse orthogonal transform unit 116.

逆直交変換部116は、逆量子化部115から供給される直交変換係数に対して逆直交変換処理を施し、復号したフレーム画像データをフレームメモリ117に供給する。   The inverse orthogonal transform unit 116 performs an inverse orthogonal transform process on the orthogonal transform coefficient supplied from the inverse quantization unit 115 and supplies the decoded frame image data to the frame memory 117.

フレームメモリ117は、逆直交変換部116から供給される復号したフレーム画像データを参照フレーム画像データとして記憶する。   The frame memory 117 stores the decoded frame image data supplied from the inverse orthogonal transform unit 116 as reference frame image data.

動きベクトル生成部118は、画面並べ替え部106から供給されるフレーム画像データから動きベクトルを生成して、生成した動きベクトルを可逆符号化部113及び動き補償部119に供給する。   The motion vector generation unit 118 generates a motion vector from the frame image data supplied from the screen rearrangement unit 106, and supplies the generated motion vector to the lossless encoding unit 113 and the motion compensation unit 119.

動き補償部119は、動きベクトル生成部118で生成された動きベクトルと、フレームメモリ117に記憶された参照フレーム画像データとに応じて、予測フレーム画像データを生成して、生成した予測フレーム画像データを減算器110に供給する。   The motion compensation unit 119 generates predicted frame image data according to the motion vector generated by the motion vector generation unit 118 and the reference frame image data stored in the frame memory 117, and generates the generated predicted frame image data. Is supplied to the subtractor 110.

レート制御部120は、バッファ114から供給されるビットレート情報と、ユーザインタフェース123から供給される設定ビットレート情報とに応じて符号化データのビットレートを制御するため、量子化部112で直交変換係数を量子化する量子化値を設定する。   The rate controller 120 controls the bit rate of the encoded data according to the bit rate information supplied from the buffer 114 and the set bit rate information supplied from the user interface 123. Set the quantization value to quantize the coefficients.

以上のような構成からなる符号化処理部11では、第1の符号化方式と第2の符号化方式とが互いに異なれば具体的な方式に限定されないが、特に第1の符号化方式よりも圧縮効率の高い符号化方式を第2の符号化方式として再符号化処理を画像信号に施し、DVDなどの記憶媒体に記憶することによって、記憶領域を有効に利用してより高画質の画像信号を記憶媒体に記憶させることができる。   The encoding processing unit 11 configured as described above is not limited to a specific method as long as the first encoding method and the second encoding method are different from each other, but particularly than the first encoding method. A high-quality image signal is obtained by effectively using the storage area by performing re-encoding processing on the image signal using the encoding method with high compression efficiency as the second encoding method and storing the image signal in a storage medium such as a DVD. Can be stored in a storage medium.

さらに、符号化処理部11は、量子化部112が直交変換係数を量子化するときの量子化値と、可逆符号化部113が生成する符号化データの発生ビット量とに関する情報を、第2の符号化方式で画像信号を符号化する難しさを示す第2の難易度としてフィルタ制御部122に供給する。   Further, the encoding processing unit 11 obtains information about the quantization value when the quantization unit 112 quantizes the orthogonal transform coefficient and the generated bit amount of the encoded data generated by the lossless encoding unit 113, as the second Is supplied to the filter control unit 122 as the second difficulty level indicating the difficulty of encoding the image signal by the encoding method.

次に、復号処理部10で復号されたベースバンドビデオ信号などの画像信号に対して、フィルタ処理を施すフィルタ処理部121と、このフィルタ処理部121の動作特性を制御するフィルタ制御部122とに係る構成について、図2及び図3を参照して説明する。   Next, a filter processing unit 121 that performs filter processing on an image signal such as a baseband video signal decoded by the decoding processing unit 10, and a filter control unit 122 that controls operating characteristics of the filter processing unit 121. Such a configuration will be described with reference to FIGS.

フィルタ処理部121は、第1の符号化方式で符号化された画像信号に含まれるブロックノイズ、フレームノイズや、モスキートノイズなどを低減するため、具体的には、復号された画像信号に対して高域周波数成分を除去する処理を施すため、図3に示すように、画像信号の高域周波数成分を抽出するハイパスフィルタ121aと、ハイパスフィルタ121aで抽出した高域周波数成分の画像信号のゲインを調整するゲイン調整部121bと、入力した画像信号からゲイン調整部121bでゲインを調整した画像信号を加算する加算器121cとを備える。   Specifically, the filter processing unit 121 reduces block noise, frame noise, mosquito noise, and the like included in the image signal encoded by the first encoding method. In order to perform the process of removing the high frequency component, as shown in FIG. 3, the high pass filter 121a for extracting the high frequency component of the image signal and the gain of the image signal of the high frequency component extracted by the high pass filter 121a are set. A gain adjustment unit 121b for adjustment and an adder 121c for adding the image signal whose gain is adjusted by the gain adjustment unit 121b from the input image signal are provided.

ハイパスフィルタ121aは、復号処理部10から供給される画像信号から、高域周波数成分を抽出する処理を行う。具体的に、ハイパスフィルタ121aは、画像信号を構成するフレーム画像データの注目画素の画素値と注目画素の隣接画素の画素値とから、加重平均演算をすることにより、各フレーム画像データの高域周波数成分を抽出する。そして、ハイパスフィルタ121aは、高域周波数成分を抽出した画像信号をゲイン調整部121bに供給する。   The high pass filter 121a performs a process of extracting a high frequency component from the image signal supplied from the decoding processing unit 10. Specifically, the high-pass filter 121a performs a weighted average operation from the pixel value of the pixel of interest of the frame image data constituting the image signal and the pixel value of the adjacent pixel of the pixel of interest, thereby obtaining a high frequency filter for each frame image data. Extract frequency components. Then, the high pass filter 121a supplies the image signal obtained by extracting the high frequency component to the gain adjusting unit 121b.

ゲイン調整部121bは、例えば図4に示すように、各画素の画素値が大きくなるのに伴って負の値に単調に減少するように、ハイパスフィルタ121aから供給される画像信号のゲインを調節する。すなわち、ゲイン調整部121bは、高域周波数成分の画素値を反転させた画像信号を生成する。そして、ゲイン調整部121bは、上述したようにゲインを調整した画像信号を加算器121cに供給する。   For example, as shown in FIG. 4, the gain adjustment unit 121b adjusts the gain of the image signal supplied from the high-pass filter 121a so as to monotonously decrease to a negative value as the pixel value of each pixel increases. To do. That is, the gain adjustment unit 121b generates an image signal obtained by inverting the pixel value of the high frequency component. Then, the gain adjustment unit 121b supplies the image signal with the gain adjusted as described above to the adder 121c.

加算器121cは、復号処理部10から供給された画像信号と、ゲイン調整部121bから供給される画像信号とを加算する。ここで、復号処理部10から供給された画像信号は、高域周波数成分の画素値を反転させた画像信号が加算される。よって、加算器121cは、高域周波数成分が除去された画像信号を出力する。そして、加算器121cは、加算処理を施した画像信号を符号化処理部11に供給する。   The adder 121c adds the image signal supplied from the decoding processing unit 10 and the image signal supplied from the gain adjustment unit 121b. Here, the image signal supplied from the decoding processing unit 10 is added with the image signal obtained by inverting the pixel value of the high frequency component. Therefore, the adder 121c outputs the image signal from which the high frequency component has been removed. Then, the adder 121c supplies the image signal subjected to the addition process to the encoding processing unit 11.

以上のような構成からなるフィルタ処理部121では、後述するフィルタ制御部122からの制御命令に従って、例えば図5に示すように1つのフレーム画像データを4×4の合計16個の画像領域に分割して、画像領域毎に、ハイパスフィルタ121aの特性とゲイン調整部121bのゲイン特性とをフィルタ係数を決定することによりフィルタ処理の強度を制御して、上述したような画像信号から高域周波数成分を除去する処理を行う。   The filter processing unit 121 configured as described above divides one frame image data into a total of 16 image areas of 4 × 4 as shown in FIG. 5, for example, in accordance with a control command from the filter control unit 122 described later. Then, for each image area, the filter processing intensity is controlled by determining the filter coefficient based on the characteristics of the high-pass filter 121a and the gain characteristic of the gain adjusting unit 121b, so that the high frequency component from the image signal as described above is controlled. The process which removes is performed.

このように複数の画像領域に分割するのは、1つの画面内において符号化の難易度や絵柄の複雑さが一様ではなく、画像領域毎に適した強度のフィルタ処理を施す必要があるからである。   Dividing into a plurality of image areas in this way is because the degree of difficulty in encoding and the complexity of the pattern are not uniform within one screen, and it is necessary to perform filter processing with an intensity suitable for each image area. It is.

ここで、隣接する画像領域のフィルタ処理の強度の差が大きいとフィルタ処理を施した画像信号に境界線が見えてしまう可能性がある。そこで、フィルタ処理部121は、各画像領域の境界部分に図5の点線及び斜線で示される平滑化処理を施す平滑化領域を設けて、この平滑化領域のフィルタ処理の強度を隣接画像領域のフィルタ処理の強度を用いて、境界線を視覚的に見えにくくする平滑化処理を施す。   Here, if the difference in the intensity of the filter processing between adjacent image regions is large, there is a possibility that a boundary line is seen in the image signal subjected to the filter processing. Therefore, the filter processing unit 121 provides a smoothing region for performing the smoothing process indicated by the dotted line and the hatched line in FIG. 5 at the boundary portion of each image region, and the filter processing strength of this smoothing region is set to the adjacent image region. Using the strength of the filter process, a smoothing process is performed to make the boundary line difficult to see visually.

フィルタ処理部121は、図5に示すような各画像領域の境界部分の縦方向と横方向とにそれぞれ1段の平滑化領域を設ける場合に限らず、例えば、図6に示すように、各画像領域の境界部分の縦方向と横方向とにそれぞれ2段階で強度の異なる平滑化領域を設けて、フィルタ処理を行うようにしてもよい。   The filter processing unit 121 is not limited to the case where one level of smoothing region is provided in each of the vertical direction and the horizontal direction of the boundary portion of each image region as illustrated in FIG. 5. For example, as illustrated in FIG. Filtering processing may be performed by providing smoothing regions having different intensities in two stages in the vertical direction and the horizontal direction of the boundary portion of the image region.

図6に示すような平滑化領域を設けたとき、フィルタ処理部121は、注目画像領域Aを合計9個に分割した部分毎にフィルタ強度を平滑化する。ここで、注目画像領域Aは、図7に示すように、右方向に画像領域Bと隣接し、下方向に画像領域Cと隣接し、右斜め下方向に画像領域Dと隣接しているものとする。また、各画像領域には、垂直方向の境界線を中心軸とした第1の平滑化領域X1と、垂直方向の境界線を中心軸として第1の平滑化領域X1よりも水平方向の幅が広く第1の平滑化領域X1を除いた第2の平滑化領域X2とが設けられているものとする。さらに、各画像領域には、水平方向の境界線を中心軸とした第3の平滑化領域Y1と、水平方向の境界線を中心軸として第3の平滑化領域Y1よりも垂直方向に幅が広く第3の平滑化領域Y1を除いた第4の平滑化領域Y2とが設けられているものとする。   When a smoothing region as shown in FIG. 6 is provided, the filter processing unit 121 smoothes the filter strength for each portion obtained by dividing the target image region A into a total of nine. Here, the attention image area A is adjacent to the image area B in the right direction, adjacent to the image area C in the lower direction, and adjacent to the image area D in the lower right direction as shown in FIG. And Each image region has a first smoothing region X1 with a vertical boundary line as a central axis, and a horizontal width greater than that of the first smoothing region X1 with the vertical boundary line as a central axis. It is assumed that a second smoothing region X2 excluding the first smoothing region X1 is provided. Furthermore, each image region has a third smoothing region Y1 with the horizontal boundary line as the central axis, and a width in the vertical direction with respect to the horizontal smoothing line Y1 with the horizontal boundary line as the central axis. It is assumed that a fourth smoothing region Y2 excluding the third smoothing region Y1 is provided.

注目画像領域Aは、平滑化処理を施さない部分A0と、平滑化処理を施す合計8つの部分A1〜A8とに分けられる。部分A1は、第2の平滑化領域X2にだけ該当する部分である。部分A2は、第1の平滑化領域X1にだけ該当する部分である。部分A3は、第4の平滑化領域Y2にだけ該当する部分である。部分A4は、第2の平滑化領域X2と第4の平滑化領域Y2との重複部分である。部分A5は、第1の平滑化領域X1と第4の平滑化領域Y2との重複部分である。部分A6は、第3の平滑化領域Y1にだけ該当する部分である。部分A7は、第2の平滑化領域X2と第3の平滑化領域Y1との重複部分である。部分A8は、第1の平滑化領域X1と第3の平滑化領域Y1との重複部分である。   The target image area A is divided into a part A0 that is not subjected to the smoothing process and a total of eight parts A1 to A8 that are subjected to the smoothing process. The portion A1 is a portion corresponding only to the second smoothing region X2. The portion A2 is a portion corresponding only to the first smoothing region X1. The portion A3 is a portion corresponding only to the fourth smoothing region Y2. The portion A4 is an overlapping portion between the second smoothing region X2 and the fourth smoothing region Y2. The portion A5 is an overlapping portion between the first smoothing region X1 and the fourth smoothing region Y2. The portion A6 is a portion corresponding only to the third smoothing region Y1. The portion A7 is an overlapping portion between the second smoothing region X2 and the third smoothing region Y1. The portion A8 is an overlapping portion between the first smoothing region X1 and the third smoothing region Y1.

フィルタ処理部121は、後述するフィルタ制御部122によって設定された画像領域A、B、C、Dのフィルタ処理の強度がそれぞれS(A)、S(B)、S(C)、S(D)のとき、注目画像領域Aを構成する各部分A0〜A8のフィルタ処理の強度S(A0)〜A(A8)を下記式(1)〜(9)により算出する。   The filter processing unit 121 has S (A), S (B), S (C), and S (D, respectively, with the intensity of the filter processing of the image areas A, B, C, and D set by the filter control unit 122 described later. ), The intensities S (A0) to A (A8) of the filter processing of the portions A0 to A8 constituting the target image area A are calculated by the following equations (1) to (9).

S(A0)=S(A) ・・・式(1)
S(A1)=(3×S(A)+S(B))/4 ・・・式(2)
S(A2)=(S(A)+S(B))/2 ・・・式(3)
S(A3)=(3×S(A)+S(C))/4 ・・・式(4)
S(A4)=(9×S(A)+3×S(B)+3×S(C)+S(D))/16 ・・・式(5)
S(A5)=(3×S(A)+3×S(B)+S(C)+S(D))/8 ・・・式(6)
S(A6)=(S(A)+S(C))/2 ・・・式(7)
S(A7)=(3×S(A)+S(B)+3×S(C)+S(D))/8 ・・・式(8)
S(A8)=(S(A)+S(B)+S(C)+S(D))/4 ・・・式(9)
S (A0) = S (A) (1)
S (A1) = (3 × S (A) + S (B)) / 4 Formula (2)
S (A2) = (S (A) + S (B)) / 2 Formula (3)
S (A3) = (3 × S (A) + S (C)) / 4 Formula (4)
S (A4) = (9 × S (A) + 3 × S (B) + 3 × S (C) + S (D)) / 16 Equation (5)
S (A5) = (3 × S (A) + 3 × S (B) + S (C) + S (D)) / 8 (8)
S (A6) = (S (A) + S (C)) / 2 Formula (7)
S (A7) = (3 × S (A) + S (B) + 3 × S (C) + S (D)) / 8 (8)
S (A8) = (S (A) + S (B) + S (C) + S (D)) / 4 (9)

このようにして、フィルタ処理部121は、注目画像領域のフィルタ処理の強度と、この注目画像領域に隣接する画像領域のフィルタ処理の強度とを用いて、上述した加重平均値を算出することによりフィルタ処理の強度を平滑化して、隣接する画像領域の境界線を見えにくくすることができる。   In this way, the filter processing unit 121 calculates the above-described weighted average value by using the filter processing strength of the target image region and the filter processing strength of the image region adjacent to the target image region. The intensity of the filtering process can be smoothed to make it difficult to see the boundary line between adjacent image areas.

また、同じ位置に属する画像領域のフィルタ処理の強度を、例えば1フレーム毎に変化させるなど時間軸方向に急激に変化させることは、画質劣化を招くことにより望ましくない。よって、フィルタ処理部121は、同じ位置に属する画像領域のフィルタ処理の強度を、例えば時間軸方向に連続した複数フレーム分の平均値とする。このように時間軸方向にフィルタ処理の強度を平滑化することで、フィルタ処理部121は、フィルタ処理の強度を急激に変化させないようにして、フィルタ処理を施した画像信号の画質劣化を低減することができる。   In addition, it is not desirable to change the strength of the filtering process of image regions belonging to the same position in the time axis direction suddenly, for example, every frame, because it causes image quality deterioration. Therefore, the filter processing unit 121 sets the filter processing intensity of image regions belonging to the same position as, for example, an average value for a plurality of frames continuous in the time axis direction. By smoothing the strength of the filter processing in the time axis direction in this way, the filter processing unit 121 reduces the image quality deterioration of the image signal subjected to the filter processing so as not to change the strength of the filter processing suddenly. be able to.

以上のような構成からなるフィルタ処理部121の動作特性を制御するフィルタ制御部122は、具体的に、ハイパスフィルタ121aの特性とゲイン調整部121bのゲイン特性を決定するフィルタ係数を算出する。すなわち、フィルタ制御部122は、フィルタ処理部121が行う画像信号の高域周波数成分を除去する強度を制御するため、メモリ122aと、メモリ122bと、重み係数設定部122cと、乗算器122dと、乗算器122eと、加算器122fと、フィルタ係数算出部122gとを備える。   Specifically, the filter control unit 122 that controls the operation characteristics of the filter processing unit 121 configured as described above calculates filter coefficients that determine the characteristics of the high-pass filter 121a and the gain characteristics of the gain adjustment unit 121b. That is, the filter control unit 122 controls the strength for removing the high frequency component of the image signal performed by the filter processing unit 121, so that the memory 122a, the memory 122b, the weighting factor setting unit 122c, the multiplier 122d, A multiplier 122e, an adder 122f, and a filter coefficient calculation unit 122g are provided.

メモリ122aには、復号処理部10から供給される第1の難易度に係る情報が記憶される。具体的に、フィルタ制御部122は、画像領域毎に、量子化値と発生ビット量との乗算値の総和を算出して、この算出値を各画像領域の第1の難易度としてメモリ122aに記憶させる。フィルタ制御部122は、メモリ122aに記憶させた第1の難易度を画像領域毎に乗算器122dに順次供給する。   Information related to the first difficulty level supplied from the decryption processing unit 10 is stored in the memory 122a. Specifically, the filter control unit 122 calculates the sum of the multiplication values of the quantized value and the generated bit amount for each image area, and stores the calculated value in the memory 122a as the first difficulty level of each image area. Remember. The filter control unit 122 sequentially supplies the first difficulty level stored in the memory 122a to the multiplier 122d for each image area.

メモリ122bには、符号化処理部11から供給される第2の難易度に係る情報が記憶される。具体的に、フィルタ制御部122は、画像領域毎に、量子化値と発生ビット量との乗算値の総和を算出して、この算出値を各画像領域の第2の難易度としてメモリ122bに記憶させる。フィルタ制御部122は、メモリ122bに記憶させた第2の難易度を画像領域毎に乗算器122eに順次供給する。   Information relating to the second difficulty level supplied from the encoding processing unit 11 is stored in the memory 122b. Specifically, the filter control unit 122 calculates the sum of the multiplication values of the quantization value and the generated bit amount for each image area, and stores the calculated value in the memory 122b as the second difficulty level of each image area. Remember me. The filter control unit 122 sequentially supplies the second difficulty level stored in the memory 122b to the multiplier 122e for each image region.

重み係数設定部122cは、復号処理部10から供給される動きベクトルに応じて、後述する乗算器122dで第1の難易度に乗算する第1の重み係数αと、後述する乗算器122eで第2の難易度に乗算する第2の重み係数βとを設定する。   The weighting factor setting unit 122c, according to the motion vector supplied from the decoding processing unit 10, a first weighting factor α that is multiplied by a first difficulty level by a multiplier 122d described later, and a multiplier 122e described later. A second weighting coefficient β to multiply the difficulty level of 2 is set.

具体的に、重み係数設定部122cでは、動きベクトル情報から、上述した画像領域毎に動きベクトルの平均値や分散値を算出する。そして、重み係数設定部122cは、算出した画像領域内の動きの大きさに応じて0から1まで単調増加する値を第1の重み係数αとして設定し、画像領域内の動きの大きさに応じて1から0まで単調減少する値を第2の重み係数βとして設定する。ここで、第2の重み係数βの値は、1−αである。   Specifically, the weight coefficient setting unit 122c calculates an average value and a variance value of motion vectors for each image area described above from the motion vector information. Then, the weighting factor setting unit 122c sets, as the first weighting factor α, a value that monotonically increases from 0 to 1 according to the calculated magnitude of motion in the image area, and sets the magnitude of motion in the image area. Accordingly, a value that monotonously decreases from 1 to 0 is set as the second weighting coefficient β. Here, the value of the second weighting coefficient β is 1−α.

このようにして、重み係数設定部122cは、動きが大きい画像領域に対して第1の重み係数αを第2の重み係数βよりも大きく設定し、動きが小さい画像領域に対して第1の重み係数αを第2の重み係数βよりも小さく設定する。そして、重み係数設定部122cは、第1の重み係数αを乗算器122dに、第2の重み係数βを乗算器122eにそれぞれ供給する。   In this way, the weighting factor setting unit 122c sets the first weighting factor α to be larger than the second weighting factor β for the image region with large motion, and sets the first weighting factor α for the image region with small motion. The weighting factor α is set smaller than the second weighting factor β. The weighting factor setting unit 122c supplies the first weighting factor α to the multiplier 122d and the second weighting factor β to the multiplier 122e.

乗算器122dは、メモリ122aから供給される第1の難易度と、重み係数設定部122cから供給される第1の重み係数αとを乗算して加算器122fに供給する。   The multiplier 122d multiplies the first difficulty level supplied from the memory 122a by the first weighting factor α supplied from the weighting factor setting unit 122c and supplies the result to the adder 122f.

乗算器122eは、メモリ122bから供給される第2の難易度と、重み係数設定部122cから供給される第1の重み係数βとを乗算して加算器122fに供給する。   The multiplier 122e multiplies the second difficulty level supplied from the memory 122b by the first weighting factor β supplied from the weighting factor setting unit 122c and supplies the result to the adder 122f.

加算器122fは、乗算器122dから供給される乗算値と、乗算器122eから供給される乗算値とを加算して、重み付け処理が施された符号化難易度としてフィルタ係数算出部122gに供給する。   The adder 122f adds the multiplication value supplied from the multiplier 122d and the multiplication value supplied from the multiplier 122e, and supplies the result to the filter coefficient calculation unit 122g as an encoding difficulty level subjected to weighting processing. .

フィルタ係数算出部122gは、加算器122fから供給される符号化難易度と、ユーザインタフェース123から供給される設定ビットレートとに応じて、例えば次のようにしてフィルタ処理部121の特性を制御するためのフィルタ係数を算出する。   The filter coefficient calculation unit 122g controls the characteristics of the filter processing unit 121 as follows, for example, according to the encoding difficulty level supplied from the adder 122f and the set bit rate supplied from the user interface 123. The filter coefficient for calculating is calculated.

すなわち、フィルタ係数算出部122gは、予めレジスタなどの内部メモリに、図8に示すような、符号化難易度と設定ビットレートとフィルタ強度との対応関係を示すテーブルを記憶しておき、このテーブルを参照して得られるフィルタ強度に応じてフィルタ処理部121のフィルタ係数を算出する。   That is, the filter coefficient calculation unit 122g stores in advance an internal memory such as a register such as a table showing the correspondence relationship between the encoding difficulty level, the set bit rate, and the filter strength as shown in FIG. The filter coefficient of the filter processing unit 121 is calculated according to the filter strength obtained with reference to FIG.

このテーブルは、符号化難易度を難易度の低い値から0〜20の21段階に割り当て、設定ビットレートを低い値から再符号化モードEP、LP、SP、XPに割り当てたものである。ここで再符号化モードEPは、他のモードに対して低画質であるが、再符号化した画像信号を記憶媒体に記憶するときに長時間記憶可能なモードである。また、再符号化モードXPは、他のモードに対して高画質であるが記録可能時間が短いモードである。   In this table, the encoding difficulty level is assigned to 21 levels from 0 to 20 from the low difficulty level, and the set bit rate is assigned to the re-encoding modes EP, LP, SP, and XP from the low value. Here, the re-encoding mode EP is a mode in which the image quality is lower than that of the other modes, but can be stored for a long time when the re-encoded image signal is stored in the storage medium. In addition, the re-encoding mode XP is a mode that has higher image quality than other modes but has a short recordable time.

フィルタ係数算出部122gは、上述したテーブルに対して、21分割した符号化難易度度と、4つの各再符号化モードに対応する合計84通りの条件毎に、強度が弱いものから0〜6に分けたフィルタ強度を設定して、予めレジスタなどの内部メモリに記憶する。フィルタ係数算出部122gは、適切な強度となるようにフィルタ処理部121のフィルタ係数を算出するため、図8に示すように、各再符号化モードに対応する設定ビットレートの値が高くなるのに伴ってフィルタ強度の値を小さくするようにし、符号化難易度の値が大きくなるのに伴ってフィルタ強度の値を大きくするように、テーブルを設定する。なお、フィルタ係数算出部122gは、上述したように、各再符号化モードに対応する設定ビットレートの値が高くなるのに伴ってフィルタ強度の値を小さくするようにし、符号化難易度の値が大きくなるのに伴ってフィルタ強度の値を大きくするように設定したテーブルであれば、図8に示すものに限定されない。   The filter coefficient calculation unit 122g performs 0 to 6 from the weakest intensity for each of 84 conditions corresponding to the four levels of encoding difficulty and the four re-encoding modes for the above-described table. Are set in advance and stored in an internal memory such as a register in advance. Since the filter coefficient calculation unit 122g calculates the filter coefficient of the filter processing unit 121 so as to have an appropriate strength, as shown in FIG. 8, the value of the set bit rate corresponding to each re-encoding mode becomes high. Accordingly, the table is set so that the value of the filter strength is decreased along with the increase of the value of the difficulty level of encoding as the value of the encoding difficulty level is increased. Note that, as described above, the filter coefficient calculation unit 122g decreases the filter strength value as the set bit rate value corresponding to each re-encoding mode increases, and the value of the encoding difficulty level. The table is not limited to that shown in FIG. 8 as long as the table is set so that the value of the filter strength increases as the value increases.

このようなテーブルを有するフィルタ係数算出部122gは、加算器122fから供給される符号化難易度と、ユーザインタフェース123から供給される設定ビットレートに対応する再符号化モードから、このテーブルで対応付けられたフィルタ強度を参照してフィルタ係数を算出して、フィルタ処理部121に供給する。   The filter coefficient calculation unit 122g having such a table associates with this table from the encoding difficulty level supplied from the adder 122f and the re-encoding mode corresponding to the set bit rate supplied from the user interface 123. The filter coefficient is calculated with reference to the obtained filter strength and supplied to the filter processing unit 121.

以上のような構成からなるフィルタ制御部122では、図9に示すようなフローチャートに従って、フィルタ制御部122のフィルタ係数を算出する。   The filter control unit 122 configured as described above calculates the filter coefficient of the filter control unit 122 according to the flowchart shown in FIG.

ステップS1において、フィルタ制御部122は、復号処理部10から供給されるシーンチェンジ情報D1に基づいて、復号処理部10から供給される画像信号のストリームにシーンチェンジがあるか否かを判断する。ここで、フィルタ制御部122は、シーンチェンジがないときステップS2に進み、シーンチェンジがあるときステップS4に進む。   In step S <b> 1, the filter control unit 122 determines whether there is a scene change in the stream of the image signal supplied from the decoding processing unit 10 based on the scene change information D <b> 1 supplied from the decoding processing unit 10. Here, the filter control unit 122 proceeds to step S2 when there is no scene change, and proceeds to step S4 when there is a scene change.

ステップS2において、フィルタ制御部122は、復号処理部10から供給される動きベクトル情報に応じて、重み係数設定部122cにより第1の重み係数α及び第2の重み係数βを設定する。   In step S2, the filter control unit 122 sets the first weighting factor α and the second weighting factor β by the weighting factor setting unit 122c according to the motion vector information supplied from the decoding processing unit 10.

ステップS3において、フィルタ制御部122は、乗算器122dにより、ステップS2で設定した第1の重み係数αとメモリ122aに記憶された第1の難易度D3とを乗算し、乗算器122eにより、ステップS2で設定した第2の重み係数βとメモリ122bに記憶された第2の難易度D4とを乗算し、これら2つの乗算値を加算器122fにより加算した値を、符号化難易度として算出して、ステップS6に進む。   In step S3, the filter control unit 122 multiplies the first weighting factor α set in step S2 by the multiplier 122d and the first difficulty D3 stored in the memory 122a, and the multiplier 122e performs the step. The second weighting factor β set in S2 is multiplied by the second difficulty level D4 stored in the memory 122b, and a value obtained by adding these two multiplied values by the adder 122f is calculated as the encoding difficulty level. Then, the process proceeds to step S6.

ステップS4において、フィルタ制御部122は、重み係数設定部122cにより第1の重み係数αの値を1に、第2の重み係数βの値を0にそれぞれ設定する。そして、フィルタ制御部122は、ステップS5の処理工程に進む。   In step S4, the filter control unit 122 sets the value of the first weighting factor α to 1 and the value of the second weighting factor β to 0 by the weighting factor setting unit 122c. And the filter control part 122 progresses to the process process of step S5.

ステップS5において、フィルタ制御部122は、乗算器122dにより、ステップS4で設定した第1の重み係数αとメモリ122aに記憶された第1の難易度D3とを乗算し、乗算器122eにより、ステップS4で設定した第2の重み係数βとメモリ122bに記憶された第2の難易度D4とを乗算し、これら2つの乗算値を加算器122fにより加算した値を、符号化難易度として算出する。ここで、フィルタ制御部122は、第1の重み係数αの値を1に、第2の重み係数βの値を0にそれぞれ設定しているので、メモリ122aに記憶された第1の難易度D1を重み付け処理を施した符号化難易度として算出してステップS6に進む。   In step S5, the filter control unit 122 multiplies the first weighting coefficient α set in step S4 by the multiplier 122d and the first difficulty D3 stored in the memory 122a, and the multiplier 122e performs the step. The second weight coefficient β set in S4 is multiplied by the second difficulty level D4 stored in the memory 122b, and a value obtained by adding these two multiplied values by the adder 122f is calculated as the encoding difficulty level. . Here, since the filter control unit 122 sets the value of the first weighting factor α to 1 and the value of the second weighting factor β to 0, the first difficulty level stored in the memory 122a. D1 is calculated as the encoding difficulty level that has been subjected to the weighting process, and the process proceeds to step S6.

ステップS6において、フィルタ制御部122は、フィルタ係数算出部122gにより、ステップ3又はステップS5において算出された符号化難易度から上述したように0〜21刻みで量子化した符号化難易度を設定してステップS7に進む。   In step S6, the filter control unit 122 sets the encoding difficulty level quantized in increments of 0 to 21 as described above from the encoding difficulty level calculated in step 3 or step S5 by the filter coefficient calculation unit 122g. Then, the process proceeds to step S7.

ステップS7において、フィルタ制御部122は、フィルタ係数算出部122gにより、ステップS6で設定した符号化難易度と、ユーザインタフェース123から供給される設定ビットレートD5に対応する符号化モードとを用いて、テーブルを参照することによりフィルタ強度を選択する。そしてフィルタ制御部122は、フィルタ係数算出部122gにより、選択したフィルタ強度に応じたフィルタ係数D6を算出してフィルタ処理部121に供給して、本処理工程を終了する。   In step S7, the filter control unit 122 uses the encoding difficulty level set in step S6 by the filter coefficient calculation unit 122g and the encoding mode corresponding to the set bit rate D5 supplied from the user interface 123, Filter strength is selected by referring to the table. Then, the filter control unit 122 calculates the filter coefficient D6 corresponding to the selected filter strength by the filter coefficient calculation unit 122g, supplies the filter coefficient D6 to the filter processing unit 121, and ends this processing step.

以上のような処理工程により、フィルタ制御部122は、復号処理部10が画像信号を復号するときに抽出される第1の符号化方式で画像信号を符号化する難しさを示す第1の難易度と、符号化処理部11が画像信号を符号化するときに抽出される第2の符号化方式で画像信号を符号化する難しさを示す第2の難易度とに応じて、フィルタ処理部121が画像信号に施すフィルタ処理の強度を制御するので、以下の理由によりフィルタ処理部121のフィルタ係数を適切に決定することができる。   Through the processing steps as described above, the filter control unit 122 is the first difficulty indicating the difficulty of encoding the image signal by the first encoding method extracted when the decoding processing unit 10 decodes the image signal. And a second difficulty level indicating the difficulty of encoding the image signal by the second encoding method extracted when the encoding processing unit 11 encodes the image signal. Since 121 controls the strength of the filter processing applied to the image signal, the filter coefficient of the filter processing unit 121 can be appropriately determined for the following reason.

第1の理由は、一般的に、時間軸方向に動きが少ない画像、すなわち、動きベクトルの値が小さい画像に対しては、第2の符号化方式で符号化する難しさの度合いが変化しないので、第1の難易度よりも第2の符号化方式と対応関係にある第2の難易度を用いてフィルタ強度を制御することが望ましいからである。また、第2の理由は、シーンチェンジや動きベクトルの値が大きい画像領域などの時間軸方向に動きが大きい画像に対しては、第2の難易度が過去に符号化処理を行ったときの符号化の難しさを示す値なので、現在処理対象の画像領域の動き情報と対応関係が精度良くとれている第1の難易度を用いてフィルタ強度を制御することが望ましいからである。   The first reason is that, generally, the degree of difficulty of encoding with the second encoding method does not change for an image with little motion in the time axis direction, that is, an image with a small motion vector value. Therefore, it is desirable to control the filter strength using the second difficulty level that has a correspondence relationship with the second encoding method rather than the first difficulty level. The second reason is that when the second difficulty level has been subjected to encoding processing in the past for an image having a large motion in the time axis direction such as an image region having a large scene change or motion vector value. This is because it is a value indicating the difficulty of encoding, and it is desirable to control the filter strength using the first difficulty level in which the correspondence relationship with the motion information of the image region currently being processed is accurately taken.

このような特性に注目して、フィルタ制御部122は、ステップS1の判断処理においてシーンチェンジがあるとき第1の難易度のみを用いてフィルタ強度を制御する。また、シーンチェンジがないとき、フィルタ制御部122は、ステップS2及びステップS3により、動きベクトル情報に基づく画像領域の動きの大きさに応じて、第1の難易度と第2の難易度とを加重平均した値を符号化難易度として用いてフィルタ強度を制御する。   Paying attention to such characteristics, the filter control unit 122 controls the filter strength using only the first difficulty level when there is a scene change in the determination process of step S1. Further, when there is no scene change, the filter control unit 122 sets the first difficulty level and the second difficulty level according to the magnitude of the motion of the image area based on the motion vector information in step S2 and step S3. The filter strength is controlled using the weighted average value as the encoding difficulty level.

なお、フィルタ制御部122は、上述した加重平均演算で得られる符号化難易度を用いてフィルタ強度を制御する場合に限定されず、例えば、次のようにしてフィルタ強度を制御するようにしてもよい。   The filter control unit 122 is not limited to the case where the filter strength is controlled using the encoding difficulty level obtained by the above-described weighted average calculation. For example, the filter strength may be controlled as follows. Good.

すなわち、フィルタ制御部122は、各画像領域の第1の難易度の変化を過去数フレーム分に亘って検出して、この検出結果により第1の難易度の変化が所定の閾値より小さいとき、第1の難易度のみ用いてフィルタ強度を制御するというようにしてもよい。また、フィルタ制御部122は、各画像領域の第2の難易度の変化を過去数フレーム分に亘って検出して、この検出結果により第2の難易度の変化が所定の閾値より大きいとき、第2の難易度のみを用いてフィルタ強度を制御するというようにしてもよい。   That is, the filter control unit 122 detects a change in the first difficulty level of each image region over the past several frames, and when the change in the first difficulty level is smaller than a predetermined threshold based on the detection result, The filter strength may be controlled using only the first difficulty level. Further, the filter control unit 122 detects a change in the second difficulty level of each image region over the past several frames, and when the change in the second difficulty level is larger than a predetermined threshold based on the detection result, The filter strength may be controlled using only the second difficulty level.

以上のようにして、フィルタ制御部122は、復号処理部10が画像信号を復号するときに抽出される動きベクトル情報と、第1の難易度と、第2の難易度とに応じて、上述したように画像信号に対して施すフィルタ処理の強度を適切に制御することができるので、画質を良好に保ちつつ高圧縮率が実現できるように画像信号を第2の符号化方式に符号化することができる。   As described above, the filter control unit 122 is configured according to the motion vector information extracted when the decoding processing unit 10 decodes the image signal, the first difficulty level, and the second difficulty level. As described above, since the intensity of the filter processing applied to the image signal can be appropriately controlled, the image signal is encoded into the second encoding method so that a high compression rate can be realized while maintaining good image quality. be able to.

また、フィルタ制御部122は、ステップS7において、フィルタ係数算出部122gが、ユーザインタフェース123から供給される設定ビットレートに応じて、フィルタ強度を制御する。具体的に、フィルタ係数算出部122gは、例えば再符号化モードXPのようにビットレートが比較的高いとき圧縮率を低くすることができるので、予め内部メモリに記憶しているテーブルを参照して相対的に強度の低いフィルタ強度を選択する。また、フィルタ係数算出部122gは、例えば再符号化モードEPのようにビットレートが比較的低いときより圧縮率を高くするために、予め内部メモリに記憶しているテーブルを参照して相対的に強度の高いフィルタ強度を選択する。このような処理をフィルタ係数算出部122gが行うことによって、フィルタ制御部122は、ユーザによって設定される再符号化モードに応じて画質を良好に保ちつつ高圧縮率が実現できるように画像信号を第2の符号化方式に符号化することができる。   In step S7, the filter control unit 122 controls the filter strength according to the set bit rate supplied from the user interface 123 by the filter coefficient calculation unit 122g. Specifically, the filter coefficient calculation unit 122g can reduce the compression rate when the bit rate is relatively high, for example, in the re-encoding mode XP, so refer to a table stored in the internal memory in advance. Select a filter strength that is relatively low. Further, the filter coefficient calculation unit 122g refers to a table stored in advance in the internal memory in order to increase the compression rate compared to when the bit rate is relatively low as in the re-encoding mode EP, for example. Select a strong filter strength. By performing such processing by the filter coefficient calculation unit 122g, the filter control unit 122 outputs the image signal so that a high compression rate can be realized while maintaining good image quality according to the re-encoding mode set by the user. The second encoding method can be encoded.

また、上述した画像処理装置1では、復号処理部10が画像信号を復号するときに得られる動きベクトルを用いてフィルタ強度を制御していたが、図10に示すような第2の実施形態として、符号化処理部11の動きベクトル生成部118が生成する動きベクトルをフィルタ制御部122に供給して、符号化処理部11で画像信号を符号化するときに得られる動きベクトルを用いてフィルタ強度を制御するようにしてもよい。   In the image processing apparatus 1 described above, the filter strength is controlled using a motion vector obtained when the decoding processing unit 10 decodes an image signal. However, as a second embodiment as shown in FIG. The motion vector generated by the motion vector generation unit 118 of the encoding processing unit 11 is supplied to the filter control unit 122, and the filter strength is obtained using the motion vector obtained when the encoding processing unit 11 encodes the image signal. May be controlled.

具体的に、この第2の実施形態に係るフィルタ制御部122は、符号化処理部11から供給される動きベクトルに応じて、第1の難易度と第2の難易度とを加重平均した値を符号化難易度として用いてフィルタ強度を制御する。   Specifically, the filter control unit 122 according to the second embodiment is a weighted average of the first difficulty level and the second difficulty level according to the motion vector supplied from the encoding processing unit 11. Is used as the encoding difficulty level to control the filter strength.

また、上述した第1及び第2の実施形態に係る画像処理装置1は、フィルタ制御部122が動きベクトル情報に応じてフィルタ強度を設定する処理を行うが、図11に示すような第3の実施形態として、復号処理部10又は符号化処理部11から動きベクトルをフィルタ制御部122に供給せずに、フィルタ制御部122が、復号処理部10から供給される第1の難易度及び符号化処理部11から供給される第2の難易度のみを用いてフィルタ強度を制御するようにしてもよい。   In the image processing apparatus 1 according to the first and second embodiments described above, the filter control unit 122 performs processing for setting the filter strength in accordance with the motion vector information. In the embodiment, the first difficulty level and the encoding that the filter control unit 122 supplies from the decoding processing unit 10 without supplying the motion vector from the decoding processing unit 10 or the encoding processing unit 11 to the filter control unit 122. The filter strength may be controlled using only the second difficulty level supplied from the processing unit 11.

この第3の実施形態に係るフィルタ制御部122は、例えば次のようにして、第1の難易度と第2の難易度とからフィルタ強度を制御する。   The filter control unit 122 according to the third embodiment controls the filter strength from the first difficulty level and the second difficulty level, for example, as follows.

すなわち、フィルタ制御部122は、各画像領域の第1の難易度の変化を過去数フレーム分に亘って検出して、この検出結果により第1の難易度の変化が所定の閾値より小さいとき、第1の難易度のみ用いてフィルタ強度を制御する。また、フィルタ制御部122は、各画像領域の第2の難易度の変化を過去数フレーム分に亘って検出して、この検出結果により第2の難易度の変化が所定の閾値より大きいとき、第2の難易度のみ用いてフィルタ強度を制御する。   That is, the filter control unit 122 detects a change in the first difficulty level of each image region over the past several frames, and when the change in the first difficulty level is smaller than a predetermined threshold based on the detection result, The filter strength is controlled using only the first difficulty level. Further, the filter control unit 122 detects a change in the second difficulty level of each image region over the past several frames, and when the change in the second difficulty level is larger than a predetermined threshold based on the detection result, The filter strength is controlled using only the second difficulty level.

なお、フィルタ制御部122は、上述したように、閾値に応じた判断結果によって第1の難易度又は第2の難易度のみを用いてフィルタ強度を制御する場合に限定されるものではなく、例えば、第1の難易度及び第2の難易度の過去数フレーム分の変化に応じて、第1の難易度と第2の難易度とを加重平均演算した値である符号化難易度を用いてフィルタ強度を設定するようにしてもよい。   Note that, as described above, the filter control unit 122 is not limited to the case where the filter strength is controlled using only the first difficulty level or the second difficulty level according to the determination result according to the threshold. The encoding difficulty level is a value obtained by performing a weighted average operation on the first difficulty level and the second difficulty level according to changes in the first difficulty level and the second difficulty level for the past several frames. The filter strength may be set.

以上のような処理工程により、フィルタ制御部122は、復号処理部10が画像信号を復号するときに抽出される第1の符号化方式で画像信号を符号化する難しさを示す第1の難易度と、符号化処理部11が画像信号を符号化するときに抽出される第2の符号化方式で画像信号を符号化する難しさを示す第2の難易度とに応じて、フィルタ処理部121が画像信号に施すフィルタ処理の強度を制御するので、以下の理由により、再符号化処理によって生じる画質劣化を抑制しつつ高圧縮率の画像信号を第2の符号化方式に符号化することができる。   Through the processing steps as described above, the filter control unit 122 is the first difficulty indicating the difficulty of encoding the image signal by the first encoding method extracted when the decoding processing unit 10 decodes the image signal. And a second difficulty level indicating the difficulty of encoding the image signal by the second encoding method extracted when the encoding processing unit 11 encodes the image signal. Since 121 controls the strength of the filter processing applied to the image signal, the image signal having a high compression rate is encoded into the second encoding method while suppressing deterioration in image quality caused by the re-encoding processing for the following reason. Can do.

第1の理由は、一般的に時間軸方向に動きが少ない画像に対しては、第2の符号化方式で符号化する難しさの度合いが変化しないので、第1の難易度よりも第2の符号化方式と対応関係にある第2の難易度を用いてフィルタ強度を制御することが望ましいからである。また、第2の理由は、シーンチェンジや動きベクトルの値が大きい画像領域などの時間軸方向に動きが大きい画像に対しては、第2の難易度が過去に符号化処理を行ったときの符号化の難しさを示す値なので、現在処理対象の画像領域の動き情報と対応関係が精度良くとれている第1の難易度を用いてフィルタ強度を制御することが望ましいからである。   The first reason is that, for an image that generally has little movement in the time axis direction, the degree of difficulty of encoding with the second encoding method does not change, so the second difficulty level is higher than the first difficulty level. This is because it is desirable to control the filter strength using the second difficulty level corresponding to the encoding method. The second reason is that when the second difficulty level has been subjected to encoding processing in the past for an image having a large motion in the time axis direction such as an image region having a large scene change or motion vector value. This is because it is a value indicating the difficulty of encoding, and it is desirable to control the filter strength using the first difficulty level in which the correspondence relationship with the motion information of the image region currently being processed is accurately taken.

また、上述した第1から第3の実施形態に係る画像処理装置1は、少なくとも第1の難易度及び第2の難易度とを用いてフィルタ強度を制御するものであるが、図12に示すような第4の実施形態に係る画像処理装置1は、外部から入力した第1の符号化方式で符号化されている画像信号を記憶装置に一旦記憶して、その後再符号化処理を行う装置である。   The image processing apparatus 1 according to the first to third embodiments described above controls the filter strength using at least the first difficulty level and the second difficulty level, and is shown in FIG. The image processing apparatus 1 according to the fourth embodiment as described above is an apparatus that temporarily stores an image signal encoded by the first encoding method input from the outside in a storage device, and then performs re-encoding processing. It is.

具体的に、第4の実施形態に係る画像処理装置1は、上述した第1の実施形態に係る画像処理装置1の構成に加えて、入力画像記憶部131と、難易度情報抽出部132と、難易度情報記憶部133と、ビットレート算出部134とを備える。   Specifically, the image processing apparatus 1 according to the fourth embodiment includes an input image storage unit 131, a difficulty level information extraction unit 132, in addition to the configuration of the image processing apparatus 1 according to the first embodiment described above. The difficulty level information storage unit 133 and the bit rate calculation unit 134 are provided.

入力画像記憶部131は、例えばハードディスク等の記憶媒体からなり、外部から入力した第1の符号化方式で符号化された画像信号を記憶して、記憶した画像信号をバッファ101に供給する。   The input image storage unit 131 is formed of a storage medium such as a hard disk, for example, stores an image signal encoded by the first encoding method input from the outside, and supplies the stored image signal to the buffer 101.

難易度情報抽出部132は、外部から入力した第1の符号化方式で符号化された画像信号のヘッダ情報を解析して、量子化値とマクロブロック単位の発生ビット量と第1の難易度情報として抽出して、難易度情報記憶部133に供給する。   The difficulty level information extraction unit 132 analyzes the header information of the image signal encoded by the first encoding method input from the outside, and determines the quantization value, the generated bit amount for each macroblock, and the first difficulty level. Extracted as information and supplied to the difficulty level information storage unit 133.

難易度情報記憶部133は、難易度情報抽出部132から供給される第1の難易度に係る情報を、画像領域毎に、入力画像記憶部131に記憶されている画像信号と対応付けて記憶する。そして、難易度情報記憶部133は、入力画像記憶部131がバッファ101に供給する画像信号に対応する第1の難易度をフィルタ制御部122及びビットレート算出部134に供給する。このように第4の実施形態に係る画像処理装置1では、再符号化処理時において、復号処理部10からフィルタ制御部122に第1の難易度に係る情報を供給することなく、予め第1の難易度に係る情報を記憶した難易度情報記憶部133からフィルタ制御部122に第1の難易度に係る情報を供給することができる。   The difficulty level information storage unit 133 stores information related to the first difficulty level supplied from the difficulty level information extraction unit 132 in association with an image signal stored in the input image storage unit 131 for each image area. To do. The difficulty level information storage unit 133 supplies the first difficulty level corresponding to the image signal supplied from the input image storage unit 131 to the buffer 101 to the filter control unit 122 and the bit rate calculation unit 134. As described above, in the image processing device 1 according to the fourth embodiment, at the time of the re-encoding process, the decoding processing unit 10 does not supply the information related to the first difficulty level to the filter control unit 122 in advance. The information related to the first difficulty level can be supplied from the difficulty level information storage unit 133 storing the information related to the difficulty level to the filter control unit 122.

ビットレート算出部134は、難易度情報記憶部133から第1の難易度に係る情報として供給される量子化値とマクロブロック単位の発生ビット量とから再符号化に適したビットレートを算出して、ユーザインタフェース123に供給する。具体的に、ビットレート算出部134では、量子化値とマクロブロック単位の発生ビット量とを乗算してフレーム毎にこの乗算値の総和を算出して各フレーム毎の最適ビットレート情報を算出する。   The bit rate calculation unit 134 calculates a bit rate suitable for re-encoding from the quantization value supplied as information related to the first difficulty level from the difficulty level information storage unit 133 and the generated bit amount in units of macroblocks. To the user interface 123. Specifically, the bit rate calculation unit 134 multiplies the quantization value and the generated bit amount in units of macroblocks, calculates the sum of the multiplication values for each frame, and calculates optimum bit rate information for each frame. .

ユーザインタフェース123に供給されたビットレート情報は、ユーザに再符号化を行う最適なビットレートとして、表示装置などにより提示される。そして、ユーザインタフェース123では、ユーザに提示されたビットレート情報に応じてユーザによって設定ビットレートが設定され、設定ビットレートがレート制御部120に供給される。   The bit rate information supplied to the user interface 123 is presented to the user as an optimum bit rate for re-encoding by a display device or the like. In the user interface 123, the set bit rate is set by the user according to the bit rate information presented to the user, and the set bit rate is supplied to the rate control unit 120.

このように第4の実施形態に係る画像処理装置1では、最適ビットレート情報をユーザに提示して、ユーザの好みに応じてより最適なビットレートを設定することができる。例えば、画像処理装置1では、画質劣化よりも長時間の記憶媒体への記録を望むユーザに対して、ユーザインタフェース123により、最適ビットレートよりも低いビットレートを設定ビットレートとして符号化処理部11を制御することができる。また、画像処理装置1では、記憶媒体への記録時間よりも画質の劣化をできるだけ抑えることを望むユーザに対して、ユーザインタフェース123により、最適ビットレートよりも高いビットレートを設定ビットレートとして符号化処理部11を制御することができる。   As described above, the image processing apparatus 1 according to the fourth embodiment can present the optimum bit rate information to the user and set a more optimum bit rate according to the user's preference. For example, in the image processing apparatus 1, for a user who desires to record on a storage medium for a longer time than image quality degradation, the user interface 123 sets a bit rate lower than the optimum bit rate as the set bit rate. Can be controlled. In addition, the image processing apparatus 1 encodes a bit rate higher than the optimum bit rate as a set bit rate by the user interface 123 for a user who wants to suppress degradation in image quality as much as possible rather than the recording time to the storage medium. The processing unit 11 can be controlled.

なお、ビットレート算出部134によって算出される最適ビットレート情報は、ユーザインタフェース123を介さずに符号化処理部11のレート制御部120に供給されるようにしてもよい。   Note that the optimum bit rate information calculated by the bit rate calculation unit 134 may be supplied to the rate control unit 120 of the encoding processing unit 11 without using the user interface 123.

以上のような構成を有する第4の実施形態に係る画像処理装置1では、フィルタ制御部122がフィルタ強度を制御するのに用いる第1の難易度に係る情報を利用して、再符号化に適したビットレートを算出することができる。このような再符号化に適したビットレートを用いることによって、画像処理装置1では、再符号化処理によって生じる画質劣化を抑制しつつ高圧縮率の画像信号を第2の符号化方式に符号化することができる。さらに、このようにして符号化された画像信号を記録媒体に記録するときには、単位記憶領域に対してより長時間画像信号を記憶することができ、効率よく記憶領域を利用することができる。   In the image processing apparatus 1 according to the fourth embodiment having the above-described configuration, re-encoding is performed using information on the first difficulty level that the filter control unit 122 uses to control the filter strength. A suitable bit rate can be calculated. By using a bit rate suitable for such re-encoding, the image processing apparatus 1 encodes a high-compression image signal into the second encoding method while suppressing image quality degradation caused by the re-encoding process. can do. Furthermore, when the image signal encoded in this way is recorded on the recording medium, the image signal can be stored for a longer time in the unit storage area, and the storage area can be used efficiently.

次に、本発明に係る画像処理装置を、画像信号を複数の伝送媒体を介して伝送する通信システム2に適用した実施形態について説明する。   Next, an embodiment in which the image processing apparatus according to the present invention is applied to a communication system 2 that transmits an image signal via a plurality of transmission media will be described.

通信システム2は、図13に示すように、符号化装置201と、伝送媒体202と、本発明が適用された符号化方式変換装置203と、伝送媒体204と、復号装置205とから構成される。   As illustrated in FIG. 13, the communication system 2 includes an encoding device 201, a transmission medium 202, an encoding scheme conversion device 203 to which the present invention is applied, a transmission medium 204, and a decoding device 205. .

符号化装置201は、ベースバンドビデオ信号を第1の符号化方式で符号化した画像信号を伝送媒体202を介して、符号化方式変換装置203に供給する。   The encoding device 201 supplies an image signal obtained by encoding the baseband video signal by the first encoding method to the encoding method conversion device 203 via the transmission medium 202.

具体的に、符号化装置201は、図14に示すように、A/D変換部301と、画面並べ替え部302と、減算器303と、直交変換部304と、量子化部305と、可逆符号化部306と、バッファ307と、逆量子化部308と、逆直交変換部309と、フレームメモリ310と、動きベクトル生成部311と、動き補償部312と、レート制御部313とを備える。   Specifically, as illustrated in FIG. 14, the encoding device 201 includes an A / D conversion unit 301, a screen rearrangement unit 302, a subtractor 303, an orthogonal transformation unit 304, a quantization unit 305, and a lossless unit. The encoding unit 306 includes a buffer 307, an inverse quantization unit 308, an inverse orthogonal transform unit 309, a frame memory 310, a motion vector generation unit 311, a motion compensation unit 312, and a rate control unit 313.

A/D変換部301は、伝送対象のアナログソースの画像信号をデジタル信号の画像信号に変換して、画面並べ替え部302に供給する。   The A / D converter 301 converts the image signal of the analog source to be transmitted into an image signal of a digital signal and supplies it to the screen rearrangement unit 302.

画面並べ替え部302は、A/D変換部301から供給される画像信号を第1の符号化方式に係る画像圧縮情報のGOP構造に応じてフレーム画像データを並べ替えて減算器303に供給する。   The screen rearrangement unit 302 rearranges the frame image data of the image signal supplied from the A / D conversion unit 301 according to the GOP structure of the image compression information related to the first encoding method, and supplies the frame image data to the subtracter 303. .

減算器303は、フレーム画像データにインター符号化処理を施すとき、このフレーム画像データと、後述する動き補償部312から供給される予測フレーム画像データとの差分を示す画像データを算出して、算出した画像データを直交変換部304に供給する。なお、フレーム画像データにイントラ符号化処理を施すとき、減算器303は、画面並べ替え部302から供給されるフレーム画像データに上述した差分処理を施さない。   The subtractor 303 calculates image data indicating a difference between the frame image data and predicted frame image data supplied from a motion compensation unit 312 described later when performing inter coding processing on the frame image data. The processed image data is supplied to the orthogonal transform unit 304. Note that when the intra-coding process is performed on the frame image data, the subtractor 303 does not perform the above-described difference process on the frame image data supplied from the screen rearrangement unit 302.

直交変換部304は、減算器303から供給されるフレーム画像データに対して、離散コサイン変換やカルーネン・レーベ変換などの直交変換処理を施して、直交変換係数を量子化部305に供給する。   The orthogonal transform unit 304 performs orthogonal transform processing such as discrete cosine transform and Karhunen-Loeve transform on the frame image data supplied from the subtractor 303 and supplies orthogonal transform coefficients to the quantization unit 305.

量子化部305は、後述するレート制御部313から供給される制御命令に応じた量子化値で、直交変換部304から供給される直交変換係数を量子化して、量子化された直交変換係数を可逆符号化部306及び逆量子化部308に供給する。   The quantization unit 305 quantizes the orthogonal transform coefficient supplied from the orthogonal transform unit 304 with a quantization value corresponding to a control command supplied from the rate control unit 313 described later, and converts the quantized orthogonal transform coefficient into a quantized orthogonal transform coefficient. This is supplied to the lossless encoding unit 306 and the inverse quantization unit 308.

可逆符号化部306は、後述する動きベクトル生成部311から供給される動きベクトルに対して可変長符号化や算術符号化などの可逆符号化処理を施す。そして、可逆符号化部306は、量子化部305から供給される量子化された直交変換係数からなる符号化データのヘッダ部に、上述した可逆符号化処理が施された動きベクトルを格納して、この符号化データをバッファ307に供給する。   The lossless encoding unit 306 performs lossless encoding processing such as variable length encoding and arithmetic encoding on a motion vector supplied from a motion vector generation unit 311 described later. Then, the lossless encoding unit 306 stores the motion vector subjected to the above-described lossless encoding process in the header portion of the encoded data including the quantized orthogonal transform coefficients supplied from the quantization unit 305. The encoded data is supplied to the buffer 307.

バッファ307は、可逆符号化部306から供給される符号化データを記憶して、記憶した符号化データを連続したビットストリームとなる画像信号として外部へ出力する。また、バッファ307は、外部へ出力するビットストリームのビットレートに関する情報をレート制御部313に供給する。   The buffer 307 stores the encoded data supplied from the lossless encoding unit 306 and outputs the stored encoded data to the outside as an image signal that becomes a continuous bit stream. Further, the buffer 307 supplies information related to the bit rate of the bit stream output to the outside to the rate control unit 313.

逆量子化部308は、量子化部305から供給される量子化された直交変換係数に対して逆量子化処理を施して、逆量子化された直交変換係数を逆直交変換部309に供給する。   The inverse quantization unit 308 performs an inverse quantization process on the quantized orthogonal transform coefficient supplied from the quantization unit 305 and supplies the inversely quantized orthogonal transform coefficient to the inverse orthogonal transform unit 309. .

逆直交変換部309は、逆量子化部308から供給される直交変換係数に対して逆直交変換処理を施して、復号したフレーム画像データをフレームメモリ310に供給する。   The inverse orthogonal transform unit 309 performs an inverse orthogonal transform process on the orthogonal transform coefficient supplied from the inverse quantization unit 308 and supplies the decoded frame image data to the frame memory 310.

フレームメモリ310は、逆直交変換部309から供給される復号したフレーム画像データを参照フレーム画像データとして記憶する。   The frame memory 310 stores the decoded frame image data supplied from the inverse orthogonal transform unit 309 as reference frame image data.

動きベクトル生成部311は、画面並べ替え部302から供給されるフレーム画像データから動きベクトルを生成して、生成した動きベクトルを可逆符号化部306及び動き補償部312に供給する。   The motion vector generation unit 311 generates a motion vector from the frame image data supplied from the screen rearrangement unit 302, and supplies the generated motion vector to the lossless encoding unit 306 and the motion compensation unit 312.

動き補償部312は、動きベクトル生成部311で生成された動きベクトルと、フレームメモリ310に記憶された参照フレーム画像データとに応じて、予測フレーム画像データを生成して、生成した予測フレーム画像データを減算器303に供給する。   The motion compensation unit 312 generates predicted frame image data according to the motion vector generated by the motion vector generation unit 311 and the reference frame image data stored in the frame memory 310, and generates the generated predicted frame image data. Is supplied to the subtractor 303.

レート制御部313は、バッファ307から供給されるビットレート情報に応じて符号化データのビットレートを制御するため、量子化部305で直交変換係数を量子化する量子化値を制御する。   The rate control unit 313 controls the quantization value for quantizing the orthogonal transform coefficient in the quantization unit 305 in order to control the bit rate of the encoded data according to the bit rate information supplied from the buffer 307.

また、伝送媒体202は、衛星放送波、ケーブルTV網、電話回線網、携帯電話回線網などの放送媒体や通信媒体に加えて、光ディスク、磁気ディスク、及び半導体メモリなどの記憶媒体であってもよい。   Further, the transmission medium 202 may be a storage medium such as an optical disk, a magnetic disk, and a semiconductor memory, in addition to a broadcast medium and a communication medium such as a satellite broadcast wave, a cable TV network, a telephone line network, and a mobile phone line network. Good.

符号化方式変換装置203は、伝送媒体202から伝送されてくる第1の符号化方式で符号化された画像信号をベースバンドビデオ信号に復号する復号装置203aと、復号装置203aで復号された画像信号にフィルタ処理を施すフィルタ装置203bと、フィルタ装置203bでフィルタ処理を施したベースバンドビデオ信号を第2の符号化方式で符号化して伝送媒体204へ出力する符号化装置203cとを備える。   The encoding method conversion device 203 decodes an image signal encoded by the first encoding method transmitted from the transmission medium 202 into a baseband video signal, and an image decoded by the decoding device 203a. A filtering device 203b that performs filtering on the signal, and an encoding device 203c that encodes the baseband video signal that has been filtered by the filtering device 203b using the second encoding method and outputs the encoded signal to the transmission medium 204 are provided.

符号化方式変換装置203の具体的な構成に係る説明は、上述した第1から第4の実施形態に係る画像処理装置1の構成のいずれかと同様なので省略する。   The description related to the specific configuration of the encoding method conversion apparatus 203 is the same as that of any of the configurations of the image processing apparatus 1 according to the first to fourth embodiments described above, and will be omitted.

伝送媒体204は、衛星放送波、ケーブルTV網、電話回線網、及び携帯電話回線網などの放送媒体や通信媒体に加えて、光ディスク、磁気ディスク、及び半導体メモリなどの記憶媒体であってもよい。   The transmission medium 204 may be a storage medium such as an optical disk, a magnetic disk, and a semiconductor memory in addition to a broadcast medium and a communication medium such as a satellite broadcast wave, a cable TV network, a telephone line network, and a mobile phone line network. .

復号装置205は、伝送媒体204から伝送されてくる第2の符号化方式で符号化された画像信号を復号して、復号したベースバンドビデオ信号を例えば表示装置に表示するものである。   The decoding device 205 decodes the image signal encoded by the second encoding method transmitted from the transmission medium 204, and displays the decoded baseband video signal on, for example, a display device.

具体的に、復号装置205は、図15に示すように、バッファ401と、可逆復号部402と、逆量子化部403と、逆直交変換部404と、加算器405と、画面並べ替え部406と、D/A変換部407と、フレームメモリ408と、動き補償部409とを備える。   Specifically, as illustrated in FIG. 15, the decoding device 205 includes a buffer 401, a lossless decoding unit 402, an inverse quantization unit 403, an inverse orthogonal transform unit 404, an adder 405, and a screen rearrangement unit 406. A D / A conversion unit 407, a frame memory 408, and a motion compensation unit 409.

バッファ401は、第2の符号化方式で符号化された画像信号を一時的に記憶して、他の復号処理を行う処理部との同期を図って、順次記憶した画像信号を可逆復号部402に供給する。   The buffer 401 temporarily stores an image signal encoded by the second encoding method, synchronizes with a processing unit that performs other decoding processing, and the lossless decoding unit 402 sequentially stores the image signal. To supply.

可逆復号部402は、バッファ401から供給される画像信号に対して、第2の符号化方式に基づいて、可変長復号化や算術復号化などの処理を施して、量子化された直交変換係数を逆量子化部403に供給する。   The lossless decoding unit 402 performs processing such as variable length decoding and arithmetic decoding on the image signal supplied from the buffer 401 based on the second encoding method, and quantized orthogonal transform coefficients Is supplied to the inverse quantization unit 403.

また、可逆復号部402は、第2の符号化方式で符号化された画像信号がインター符号化されたフレーム画像データのとき、このフレーム画像データのヘッダ部に格納された動きベクトルを復号して、復号した動きベクトルを動き補償部409に供給する。   In addition, when the image signal encoded by the second encoding method is inter-encoded frame image data, the lossless decoding unit 402 decodes the motion vector stored in the header portion of the frame image data. The decoded motion vector is supplied to the motion compensation unit 409.

逆量子化部403は、可逆復号部402から供給される量子化された直交変換係数に対して逆量子化処理を施して、この直交変換係数を逆直交変換部404に供給する。   The inverse quantization unit 403 performs an inverse quantization process on the quantized orthogonal transform coefficient supplied from the lossless decoding unit 402 and supplies the orthogonal transform coefficient to the inverse orthogonal transform unit 404.

逆直交変換部404は、逆量子化部403で生成された直交変換係数に対して逆離散コサイン変換や逆カルーネン・レーベ変換などの逆直交変換処理を施して、復号されたフレーム画像データを加算器405に供給する。   The inverse orthogonal transform unit 404 performs inverse orthogonal transform processing such as inverse discrete cosine transform and inverse Karhunen-Labe transform on the orthogonal transform coefficient generated by the inverse quantization unit 403, and adds the decoded frame image data To the container 405.

加算器405は、フレーム画像データがインター符号化されているとき、逆直交変換部404から供給されるフレーム画像データに、後述する動き補償部409によって生成された予測フレーム画像データを加算して、画面並べ替え部406及びフレームメモリ408に供給する。なお、フレーム画像データがイントラ符号化されているとき、加算器405は、上述した加算処理を行わずに逆直交変換部404から供給されたフレーム画像データを画面並べ替え部406に供給する。   When the frame image data is inter-coded, the adder 405 adds the predicted frame image data generated by the motion compensation unit 409 described later to the frame image data supplied from the inverse orthogonal transform unit 404, and This is supplied to the screen rearrangement unit 406 and the frame memory 408. When the frame image data is intra-coded, the adder 405 supplies the frame image data supplied from the inverse orthogonal transform unit 404 to the screen rearrangement unit 406 without performing the above-described addition processing.

画面並べ替え部406は、逆直交変換部404から供給されるフレーム画像データを時間軸方向に並び換える。そして、画面並べ替え部406は、時間軸方向に並び換えたフレーム画像データをベースバンドビデオ信号としてD/A変換部407に供給する。   The screen rearranging unit 406 rearranges the frame image data supplied from the inverse orthogonal transform unit 404 in the time axis direction. Then, the screen rearrangement unit 406 supplies the frame image data rearranged in the time axis direction to the D / A conversion unit 407 as a baseband video signal.

D/A変換部407は、ベースバンドビデオ信号をデジタル信号からアナログ信号に変換して、表示装置などに出力する。   The D / A conversion unit 407 converts the baseband video signal from a digital signal to an analog signal and outputs the analog signal to a display device or the like.

フレームメモリ408は、逆直交変換部404から供給されたフレーム画像データを、インター符号化されたフレーム画像データを復号するための参照フレーム画像データとして記憶する。   The frame memory 408 stores the frame image data supplied from the inverse orthogonal transform unit 404 as reference frame image data for decoding the inter-coded frame image data.

動き補償部409は、処理対象のフレーム画像データがインター符号化されているとき、可逆復号部402から供給される動きベクトルと、フレームメモリ408に記憶された参照フレーム画像データとに応じて、予測フレーム画像データを生成して加算器405に供給する。   When the frame image data to be processed is inter-coded, the motion compensation unit 409 performs prediction according to the motion vector supplied from the lossless decoding unit 402 and the reference frame image data stored in the frame memory 408. Frame image data is generated and supplied to the adder 405.

以上のような構成からなる通信システム2では、特に伝送媒体202から伝送されてくる第1の符号化方式で符号化された画像信号を、符号化方式変換装置203によって、画質を良好に保ちつつ高圧縮率が実現できるように画像信号を第2の符号化方式に変換した画像信号を伝送媒体204に出力することができるので、より高画質でより高い伝送効率で画像信号を伝送することができる。   In the communication system 2 configured as described above, in particular, an image signal encoded by the first encoding method transmitted from the transmission medium 202 is maintained by the encoding method converter 203 while maintaining good image quality. Since the image signal obtained by converting the image signal into the second encoding method so as to achieve a high compression rate can be output to the transmission medium 204, the image signal can be transmitted with higher image quality and higher transmission efficiency. it can.

第1の実施形態に係る画像処理装置の構成を示すブロック図である。1 is a block diagram illustrating a configuration of an image processing apparatus according to a first embodiment. フィルタ処理部とフィルタ制御部との構成に注目した画像処理装置の全体構成を示すブロック図である。It is a block diagram which shows the whole structure of the image processing apparatus which paid its attention to the structure of a filter process part and a filter control part. フィルタ処理部の構成を示すブロック図である。It is a block diagram which shows the structure of a filter process part. ゲイン調整部の入出力特性を示すグラフである。It is a graph which shows the input-output characteristic of a gain adjustment part. 4×4の合計16個の画像領域に分割して、画像領域の各境界部分に縦方向と横方向とにそれぞれ1段の平滑化領域を設けたフレーム画像を示す図である。It is a figure which shows the frame image which divided | segmented into a total of 16 image area | regions of 4x4, and provided the smoothing area | region of 1 step | paragraph in the vertical direction and the horizontal direction at each boundary part of an image area, respectively. 4×4の合計16個の画像領域に分割して、画像領域の各境界部分に縦方向と横方向とにそれぞれ2段の平滑化領域を設けたフレーム画像を示す図である。It is a figure which shows the frame image which divided | segmented into a total of 16 image area | regions of 4x4, and provided the smoothing area | region of 2 steps | paragraphs to each boundary part of an image area in the vertical direction and a horizontal direction, respectively. 注目画像領域に対する平滑化処理の説明に供する図である。It is a figure where it uses for description of the smoothing process with respect to an attention image area | region. 符号化難易度と再符号化モードとフィルタ強度との対応関係を示す図である。It is a figure which shows the correspondence of encoding difficulty, re-encoding mode, and filter strength. フィルタ制御部に係る動作の説明に供するフローチャートである。It is a flowchart with which it uses for description of the operation | movement which concerns on a filter control part. 第2の実施形態に係る画像処理装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image processing apparatus which concerns on 2nd Embodiment. 第3の実施形態に係る画像処理装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image processing apparatus which concerns on 3rd Embodiment. 第4の実施形態に係る画像処理装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image processing apparatus which concerns on 4th Embodiment. 通信システムの全体構成を模式的に示す図である。It is a figure which shows typically the whole structure of a communication system. 復号装置の全体構成を示すブロック図である。It is a block diagram which shows the whole structure of a decoding apparatus. 符号化装置の全体構成を示すブロック図である。It is a block diagram which shows the whole structure of an encoding apparatus.

符号の説明Explanation of symbols

1 画像処理装置、2 通信システム、10 復号処理部、11 符号化処理部、101、114、307、401 バッファ、102、402 可逆復号部、103、115、308、403 逆量子化部、104、116、309、404 逆直交変換部、105、121c、122f、405 加算器、106、109、302、406 画面並べ替え部、107、117、310、408 フレームメモリ、108、119、312、409 動き補償部、110、303 減算器、111、304 直交変換部、112、305 量子化部、113、306 可逆符号化部、118、311 動きベクトル生成部、120、313 レート制御部、121 フィルタ処理部、121a ハイパスフィルタ、121b ゲイン調整部、122 フィルタ制御部、122a、122b メモリ、122c 重み係数設定部、122d、122e 乗算器、122g フィルタ係数算出部、123 ユーザインタフェース、131 入力画像記憶部、132 難易度情報抽出部、133 難易度情報記憶部、134 ビットレート算出部、201、203c 符号化装置、202、204 伝送媒体、203 符号化方式変換装置、203a、205 復号装置、203b フィルタ装置、301 A/D変換部、407 D/A変換部、   DESCRIPTION OF SYMBOLS 1 Image processing apparatus, 2 Communication system, 10 Decoding processing part, 11 Encoding processing part, 101, 114, 307, 401 Buffer, 102, 402 Lossless decoding part, 103, 115, 308, 403 Inverse quantization part, 104, 116, 309, 404 Inverse orthogonal transform unit, 105, 121c, 122f, 405 Adder, 106, 109, 302, 406 Screen rearrangement unit, 107, 117, 310, 408 Frame memory, 108, 119, 312, 409 Motion Compensation unit, 110, 303 Subtractor, 111, 304 Orthogonal transformation unit, 112, 305 Quantization unit, 113, 306 Lossless encoding unit, 118, 311 Motion vector generation unit, 120, 313 Rate control unit, 121 Filter processing unit 121a high-pass filter, 121b gain adjustment unit, 122f Control unit, 122a, 122b memory, 122c weight coefficient setting unit, 122d, 122e multiplier, 122g filter coefficient calculation unit, 123 user interface, 131 input image storage unit, 132 difficulty level information extraction unit, 133 difficulty level information storage unit , 134 Bit rate calculation unit, 201, 203c Encoding device, 202, 204 Transmission medium, 203 Coding method conversion device, 203a, 205 Decoding device, 203b Filter device, 301 A / D conversion unit, 407 D / A conversion unit ,

Claims (9)

第1の符号化方式で符号化された画像信号を入力する入力手段と、
上記入力手段により入力された画像信号から上記第1の符号化方式で画像信号を符号化する難しさを示す第1の難易度情報を抽出するとともに、該画像信号を該第1の符号化方式に基づいて復号する復号手段と、
上記復号手段により復号された画像信号にフィルタ処理を施すフィルタ処理手段と、
上記フィルタ処理手段がフィルタ処理を施した画像信号から、上記第1の符号化方式と異なる第2の符号化方式で画像信号を符号化する難しさを示す第2の難易度情報を抽出するとともに、該画像信号を該第2の符号化方式に基づいて符号化して出力する符号化手段と、
上記復号手段が抽出した第1の難易度情報と、上記符号化手段が抽出した第2の難易度情報とに応じて、上記フィルタ処理手段が画像信号に施すフィルタ処理の強度を制御する制御手段とを備える画像処理装置。
Input means for inputting an image signal encoded by the first encoding method;
First difficulty level information indicating the difficulty of encoding the image signal by the first encoding method is extracted from the image signal input by the input means, and the image signal is converted to the first encoding method. Decoding means for decoding based on
Filter processing means for performing filter processing on the image signal decoded by the decoding means;
The second difficulty level information indicating the difficulty of encoding the image signal by the second encoding method different from the first encoding method is extracted from the image signal subjected to the filter processing by the filter processing means. Encoding means for encoding and outputting the image signal based on the second encoding method;
Control means for controlling the strength of the filter processing applied to the image signal by the filter processing means in accordance with the first difficulty level information extracted by the decoding means and the second difficulty level information extracted by the encoding means. An image processing apparatus comprising:
上記復号手段は、上記入力手段により入力された画像信号の画像を所定の画像領域に分割し、分割した各画像領域毎に上記第1の難易度情報を抽出するとともに、該画像信号を該第1の符号化方式に基づいて復号し、
上記フィルタ処理手段は、上記復号手段で復号された画像信号の上記各画像領域に、該各画像領域毎に設定された強度のフィルタ処理を施し、
上記符号化手段は、上記フィルタ処理手段によりフィルタ処理を施した画像信号の画像を上記画像領域に分割して、分割した各画像領域毎の上記第2の難易度情報を抽出するとともに、該画像信号を該第2の符号化方式に基づいて符号化し、
上記制御手段は、上記復号手段が抽出した上記各画像領域に対応する上記第1の難易度情報と、上記符号化手段が抽出した上記各画像領域に対応する上記第2の難易度情報とに応じて、上記画像領域毎に上記フィルタ処理手段が施すフィルタ処理の強度を制御することを特徴とする請求項1記載の画像処理装置。
The decoding unit divides the image of the image signal input by the input unit into predetermined image areas, extracts the first difficulty level information for each divided image area, and extracts the image signal from the first image area. Decoding based on the encoding scheme of 1,
The filter processing means performs a filter process of intensity set for each image area on each image area of the image signal decoded by the decoding means,
The encoding means divides the image of the image signal filtered by the filter processing means into the image areas, extracts the second difficulty level information for each divided image area, and Encoding a signal based on the second encoding scheme;
The control means includes the first difficulty level information corresponding to each image area extracted by the decoding means and the second difficulty level information corresponding to each image area extracted by the encoding means. The image processing apparatus according to claim 1, wherein the intensity of the filter processing performed by the filter processing unit is controlled for each image region.
上記復号手段は、上記入力手段により入力された画像信号から上記第1の難易度情報と動きベクトルとを抽出して、該画像信号を上記第1の符号化方式に基づいて復号し、
上記制御手段は、上記復号手段が抽出した第1の難易度情報と、上記符号化手段が抽出した第2の難易度情報と、該復号手段が抽出した動きベクトルとに応じて、上記フィルタ処理手段が画像信号に施すフィルタ処理の強度を制御することを特徴とする請求項1記載の画像処理装置。
The decoding means extracts the first difficulty level information and the motion vector from the image signal input by the input means, and decodes the image signal based on the first encoding method;
The control means performs the filtering process according to the first difficulty level information extracted by the decoding means, the second difficulty level information extracted by the encoding means, and the motion vector extracted by the decoding means. 2. The image processing apparatus according to claim 1, wherein the intensity of the filtering process applied to the image signal by the means is controlled.
上記符号化手段は、上記フィルタ処理手段によりフィルタ処理を施した画像信号から、上記第2の難易度情報と動きベクトルとを抽出するとともに、該画像信号を該第2の符号化方式に基づいて符号化し、
上記制御手段は、上記復号手段が抽出した第1の難易度情報と、上記符号化手段が抽出した第2の難易度情報と、該符号化手段が抽出した動きベクトルとに応じて、上記フィルタ処理手段が画像信号に施すフィルタ処理の強度を制御することを特徴とする請求項1記載の画像処理装置。
The encoding means extracts the second difficulty level information and a motion vector from the image signal filtered by the filter processing means, and extracts the image signal based on the second encoding method. Encoding,
The control means includes the filter according to the first difficulty level information extracted by the decoding means, the second difficulty level information extracted by the encoding means, and the motion vector extracted by the encoding means. 2. The image processing apparatus according to claim 1, wherein the processing means controls the strength of the filter processing applied to the image signal.
上記制御手段は、上記復号手段が抽出した上記第1の難易度情報の時間軸方向の変化と、上記復号手段が抽出した第2の難易度情報の時間軸方向への変化とに応じて、上記フィルタ処理手段が画像信号に施すフィルタ処理の強度を制御することを特徴とする請求項1記載の画像処理装置。   The control means, according to the change in the time axis direction of the first difficulty information extracted by the decoding means and the change in the time axis direction of the second difficulty information extracted by the decoding means, 2. The image processing apparatus according to claim 1, wherein the filter processing means controls the strength of the filter processing applied to the image signal. 上記符号化手段によって符号化される画像信号のビットレートを設定するビットレート設定手段を更に備え、
上記制御手段は、上記復号手段が抽出した第1の難易度情報と、上記符号化手段が抽出した第2の難易度情報と、上記ビットレート設定手段で設定されたビットレートとに応じて、上記フィルタ処理手段が画像信号に施すフィルタ処理の強度を制御することを特徴とする請求項1記載の画像処理装置。
Bit rate setting means for setting the bit rate of the image signal encoded by the encoding means,
In accordance with the first difficulty level information extracted by the decoding means, the second difficulty level information extracted by the encoding means, and the bit rate set by the bit rate setting means, 2. The image processing apparatus according to claim 1, wherein the filter processing means controls the strength of the filter processing applied to the image signal.
上記入力手段により入力された画像信号を記憶するとともに、記憶した画像信号を上記復号手段に読み出す第1の記憶手段と、
上記入力手段により入力された画像信号から、該画像信号の量子化値と単位データ当たりの発生ビット量とを上記第1の難易度情報として抽出する抽出手段と、
上記第1の記憶手段に記憶された画像信号と対応付けて、上記抽出手段により抽出された上記第1の難易度情報を記憶する第2の記憶手段と、
上記第2の記憶手段に上記第1の難易度情報として記憶されている量子化値と発生ビット量に応じてビットレートを算出するビットレート算出手段とを更に備え、
上記ビットレート設定手段は、上記ビットレート算出手段により算出されたビットレートを上記符号化手段によって符号化される画像信号のビットレートに設定することを特徴とする請求項6記載の画像処理装置。
A first storage means for storing the image signal input by the input means and reading the stored image signal to the decoding means;
Extraction means for extracting the quantized value of the image signal and the generated bit amount per unit data as the first difficulty level information from the image signal input by the input means;
Second storage means for storing the first difficulty level information extracted by the extraction means in association with the image signal stored in the first storage means;
A bit rate calculating means for calculating a bit rate according to the quantization value stored as the first difficulty level information in the second storage means and the generated bit amount;
7. The image processing apparatus according to claim 6, wherein the bit rate setting means sets the bit rate calculated by the bit rate calculating means to a bit rate of an image signal encoded by the encoding means.
上記入力手段により入力された画像信号を記憶するとともに、記憶した画像信号を上記復号手段に読み出す第1の記憶手段と、
上記入力手段により入力された画像信号から、該画像信号の量子化値と単位データ当たりの発生ビット量とを上記第1の難易度情報として抽出する抽出手段と、
上記第1の記憶手段に記憶された画像信号と対応付けて、上記抽出手段により抽出された上記第1の難易度情報を記憶する第2の記憶手段と、
上記第2の記憶手段に上記第1の難易度情報として記憶されている量子化値と発生ビット量に応じて上記符号化手段が符号化するときに適したビットレートを算出するビットレート算出手段とを更に備え、
上記ビットレート設定手段は、上記ビットレート算出手段により算出されたビットレートを提示し、提示されたビットレートに応じて上記符号化手段によって符号化される画像信号のビットレートを設定することを特徴とする請求項6記載の画像処理装置。
A first storage means for storing the image signal input by the input means and reading the stored image signal to the decoding means;
Extraction means for extracting the quantized value of the image signal and the generated bit amount per unit data as the first difficulty level information from the image signal input by the input means;
Second storage means for storing the first difficulty level information extracted by the extraction means in association with the image signal stored in the first storage means;
Bit rate calculating means for calculating a bit rate suitable for encoding by the encoding means in accordance with the quantization value stored as the first difficulty level information and the generated bit amount in the second storage means And further comprising
The bit rate setting means presents the bit rate calculated by the bit rate calculation means, and sets the bit rate of the image signal encoded by the encoding means according to the presented bit rate. The image processing apparatus according to claim 6.
第1の符号化方式で符号化された画像信号を入力する入力工程と、
上記入力工程により入力された画像信号から上記第1の符号化方式で画像信号を符号化する難しさを示す第1の難易度情報を抽出するとともに、該画像信号を該第1の符号化方式に基づいて復号する復号工程と、
上記復号工程により復号された画像信号にフィルタ処理を施すフィルタ処理工程と、
上記フィルタ処理工程によりフィルタ処理を施した画像信号から、上記第1の符号化方式と異なる第2の符号化方式で画像信号を符号化する難しさを示す第2の難易度情報を抽出するとともに、該画像信号を該第2の符号化方式に基づいて符号化して出力する符号化工程と、
上記復号工程で抽出される第1の難易度情報と、上記符号化工程で抽出される第2の難易度情報とに応じて、上記フィルタ処理工程で画像信号に施すフィルタ処理の強度を制御する制御工程とを有する画像処理方法。
An input step of inputting an image signal encoded by the first encoding method;
First difficulty level information indicating the difficulty of encoding the image signal by the first encoding method is extracted from the image signal input by the input step, and the image signal is extracted from the first encoding method. A decoding step for decoding based on:
A filter processing step of performing filter processing on the image signal decoded by the decoding step;
While extracting the second difficulty level information indicating the difficulty of encoding the image signal by the second encoding method different from the first encoding method from the image signal subjected to the filtering process by the filtering process step An encoding step of encoding and outputting the image signal based on the second encoding method;
The intensity of the filter processing applied to the image signal in the filter processing step is controlled according to the first difficulty level information extracted in the decoding step and the second difficulty level information extracted in the encoding step. An image processing method including a control step.
JP2007171048A 2007-06-28 2007-06-28 Image processing apparatus and method Withdrawn JP2009010763A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007171048A JP2009010763A (en) 2007-06-28 2007-06-28 Image processing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007171048A JP2009010763A (en) 2007-06-28 2007-06-28 Image processing apparatus and method

Publications (1)

Publication Number Publication Date
JP2009010763A true JP2009010763A (en) 2009-01-15

Family

ID=40325381

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007171048A Withdrawn JP2009010763A (en) 2007-06-28 2007-06-28 Image processing apparatus and method

Country Status (1)

Country Link
JP (1) JP2009010763A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014116890A (en) * 2012-12-12 2014-06-26 Mitsubishi Electric Corp Image encoding device
CN113542739A (en) * 2021-07-15 2021-10-22 Oppo广东移动通信有限公司 Image encoding method and apparatus, image decoding method and apparatus, medium, and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014116890A (en) * 2012-12-12 2014-06-26 Mitsubishi Electric Corp Image encoding device
CN113542739A (en) * 2021-07-15 2021-10-22 Oppo广东移动通信有限公司 Image encoding method and apparatus, image decoding method and apparatus, medium, and device
CN113542739B (en) * 2021-07-15 2023-10-20 Oppo广东移动通信有限公司 Image encoding method and device, image decoding method and device, medium and equipment

Similar Documents

Publication Publication Date Title
US11328452B2 (en) Image processing device and method
RU2680349C1 (en) Images processing device and images processing method
US10666945B2 (en) Image processing device and image processing method for decoding a block of an image
KR102005209B1 (en) Image processor and image processing method
JP4867497B2 (en) Information processing apparatus and method, decoding apparatus and method, program, and information processing system
WO2011125729A1 (en) Image processing device and image processing method
WO2011018965A1 (en) Image processing device and method
US20030219160A1 (en) Method of adaptively encoding and decoding motion image and apparatus therefor
US20120243611A1 (en) Image processing apparatus and method as well as program
JP2006025077A (en) Encoder, encoding method, program therefor, and recording medium recording program therefor
WO2012098790A1 (en) Image processing device and image processing method
WO2012063878A1 (en) Image processing device, and image processing method
WO2011125866A1 (en) Image processing device and method
WO2012050021A1 (en) Image processing device and method
JP2004518338A (en) Method and system for enhancing the sharpness of an encoded video
JP2007336468A (en) Re-encoding apparatus, re-encoding method and program
JP2009010763A (en) Image processing apparatus and method
US20120314966A1 (en) Image coding apparatus, image decoding apparatus, image coding method, image decoding method, and program
JP2006197186A (en) Image encoding device and battery driving decoder
WO2011162299A1 (en) Information processing device and information processing method

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20100907