JP2014082603A - Image processor - Google Patents

Image processor Download PDF

Info

Publication number
JP2014082603A
JP2014082603A JP2012228453A JP2012228453A JP2014082603A JP 2014082603 A JP2014082603 A JP 2014082603A JP 2012228453 A JP2012228453 A JP 2012228453A JP 2012228453 A JP2012228453 A JP 2012228453A JP 2014082603 A JP2014082603 A JP 2014082603A
Authority
JP
Japan
Prior art keywords
data
video
video data
encoding
encoded
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2012228453A
Other languages
Japanese (ja)
Other versions
JP6024374B2 (en
Inventor
Yoshiji Yoshida
佳司 吉田
Kunikazu Suzuki
邦和 鈴木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yamaha Corp
Original Assignee
Yamaha Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yamaha Corp filed Critical Yamaha Corp
Priority to JP2012228453A priority Critical patent/JP6024374B2/en
Publication of JP2014082603A publication Critical patent/JP2014082603A/en
Application granted granted Critical
Publication of JP6024374B2 publication Critical patent/JP6024374B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To reduce capacity of a memory of a captured destination and access band width while occurrence of overwriting with overflow of data is avoided when video data being an object of high image quality video processing is captured.SOLUTION: An image processor includes: an encoding section for encoding video data in a raster scanning direction and writing it in a capture memory; and a decoding section for reading data for the number of fields required for high image quality video processing from the memory to decode data. The encoding section is allowed to estimate a size of encoded data of the video data for one screen on the basis of a size of the encoded data to front division data by one when division data obtained by dividing the video data for one screen into a plurality of pieces of data in the raster scanning direction is encoded and is allowed to perform processing for increasing a quantization parameter when the estimated encoded data size exceeds idle capacity of the memory when encoding for one screen is started.

Description

この発明は、画像処理技術に関し、特に、映像を高画質化する技術に関する。   The present invention relates to an image processing technique, and more particularly to a technique for improving the image quality of a video.

従来のCRTに代わって液晶ディスプレイが急速に普及している。液晶ディスプレイでは映像の表示方式としてプログレッシブ方式が採用されている。テレビ放送の映像信号やDVD−Videoの映像信号はインタレース方式に準拠したものであるため、液晶ディスプレイを表示器として用いた表示装置の中には、インタレース方式の映像を高い画質で表示することを可能にする高画質映像処理回路を有しているものがある。この種の高画質映像処理回路における処理の一例としては、動き適応型IP変換や動き適応型ノイズリダクションが挙げられる。   Liquid crystal displays are rapidly becoming popular in place of conventional CRTs. The liquid crystal display employs a progressive method as a video display method. Since TV broadcast video signals and DVD-Video video signals are compliant with the interlace method, a display device using a liquid crystal display as a display device displays an interlaced image with high image quality. Some have a high-quality video processing circuit that makes this possible. Examples of processing in this type of high-quality video processing circuit include motion adaptive IP conversion and motion adaptive noise reduction.

動き適応型IP変換とは、インタレース方式の映像データをプログレッシブ方式の映像データに変換するIP変換の1つである。動き適応型IP変換では、変換対象のフィールドとその前後のフィールドに亙る被写体の動きの大きさが検出され、動きが大きければ前後のフィールドの情報を利用したIP変換が行われる一方、動きが小さければ変換対象のフィールドの情報のみを利用したIP変換が行われる。なお、IP変換の詳細については特許文献1を参照されたい。動き適応型ノイズリダクションにおいても同様に被写体の動きの大きさに応じて処理が切り替えられる。このように、動き適応型IP変換や動き適応型ノイズリダクションでは、被写体の動きの大きさを求めるために処理対象のフィールドの前後のフィールドを参照する必要があるため、被写体の動きの大きさの特定の際に参照するフィールド数分ずつ各フィールドの映像を表す映像データをメモリに保持(以下、「映像のキャプチャ」という)しつつ、それらの処理を実行することが必要となる。   Motion adaptive IP conversion is one type of IP conversion that converts interlaced video data into progressive video data. In motion-adaptive IP conversion, the size of a subject's movement over the field to be converted and the fields before and after the field to be converted is detected. If the movement is large, IP conversion is performed using information in the preceding and following fields, but the movement is small. For example, IP conversion using only the information of the conversion target field is performed. Refer to Patent Document 1 for details of IP conversion. Similarly, in motion adaptive noise reduction, the process is switched according to the magnitude of the movement of the subject. In this way, in motion adaptive IP conversion and motion adaptive noise reduction, it is necessary to refer to the fields before and after the field to be processed in order to obtain the magnitude of the subject's motion. It is necessary to execute the processing while holding the video data representing the video of each field by the number of fields to be referred to at a specific time (hereinafter referred to as “video capture”).

特開平10−145817号公報Japanese Patent Laid-Open No. 10-145817

高画質映像処理の対象となる映像が高解像度化すると、映像のキャプチャ先のメモリとして大容量のものを用いることが必要となり、映像のキャプチャ先となるメモリにアクセスする際の帯域幅(すなわち、メモリからデータを読み出す際、およびメモリにデータを書き込む際の帯域幅)も十分に大きくする必要がある。また、近年では、複数種の映像の各々に高画質映像処理を施しつつPiP(Picture in picture)方式或いはPoP(Picture on
picture)方式で1つの映像に合成して表示装置に表示させることも一般に行われており、合成する映像数が増加すると、映像のキャプチャ先のメモリの記憶容量や帯域幅をさらに大きくすることが必要となる。しかし、このようなメモリの大容量化や広帯域化に対応するには画像処理装置の基板設計に高度かつ高価な技術が必要となる、といった問題がある。
When the resolution of a high-quality video processing target video is increased, it is necessary to use a large-capacity video capture destination memory, and the bandwidth for accessing the video capture destination memory (that is, It is necessary to sufficiently increase the bandwidth when reading data from the memory and when writing data to the memory. In recent years, the PiP (Picture in picture) method or PoP (Picture on
It is also common to combine images into a single image and display them on a display device. When the number of images to be combined increases, the storage capacity and bandwidth of the video capture destination memory can be further increased. Necessary. However, in order to cope with such an increase in memory capacity and bandwidth, there is a problem that advanced and expensive technology is required for designing the substrate of the image processing apparatus.

本発明は上記課題に鑑みて為されたものであり、高画質映像処理などの画像処理の対象の映像データをバッファに格納する際に、バッファの容量をオーバーして上書きをしてしまうなどの破綻が発生することを回避しつつ、当該バッファの記憶容量および当該バッファにアクセスする際の帯域幅を削減することを可能にする技術を提供することを目的とする。   The present invention has been made in view of the above problems, and when storing video data subject to image processing such as high-quality video processing in a buffer, the buffer capacity is overwritten and overwritten. It is an object of the present invention to provide a technique capable of reducing the storage capacity of the buffer and the bandwidth when accessing the buffer while avoiding the occurrence of a failure.

上記課題を解決するために本発明は、処理対象の映像データをラスタスキャン方向にエンコードして映像キャプチャ用メモリに書き込むエンコード部と、前記映像キャプチャ用メモリから画像処理に必要となる画面分のデータを読み出してデコードし、各画面の映像データを出力するデコード部と、前記デコード部から出力される映像データに画像処理を施して出力する画像処理部と、を備え、前記処理対象の1画面分の映像データをラスタスキャン方向に複数に分割して得られるデータを分割データとしたとき、前記エンコード部は、各分割データをエンコードする際に、1つ手前の分割データまでのエンコード結果から1画面分の映像データをエンコードした場合のデータサイズを推定し、当該データサイズと前記映像キャプチャ用メモリの空き容量とに基づいて当該分割データをエンコードする際のパラメータを調整する圧縮率調整手段を含んでいることを特徴とする画像処理装置を提供する。なお、上記画像処理部による画像処理の具体例としては、動き適応型IP変換や動き適応型ノイズリダクションなどの高画質映像処理が挙げられ、1画面分の映像データとは1フィールドの映像を表す映像データ、或いは1フレームの映像を表す映像データのことを言う。   In order to solve the above-described problems, the present invention provides an encoding unit that encodes video data to be processed in a raster scan direction and writes it in a video capture memory, and data for a screen required for image processing from the video capture memory. A decoding unit that reads out and decodes the video data of each screen, and an image processing unit that performs image processing on the video data output from the decoding unit and outputs the processed video data. When the data obtained by dividing the video data into a plurality of parts in the raster scan direction is divided data, the encoding unit encodes each divided data into one screen from the encoding result up to the previous divided data. Estimate the data size when video data for a minute is encoded, and the data size and the video capture memo It provides an image processing apparatus according to claim containing a compression ratio adjusting means for adjusting a parameter for encoding the divided data based on the free space of. Specific examples of the image processing by the image processing unit include high-quality video processing such as motion adaptive IP conversion and motion adaptive noise reduction, and one screen of video data represents one field of video. Video data or video data representing one frame of video.

本発明によれば、画像処理の処理対象となる映像データはエンコード部によるエンコードを経て映像キャプチャ用メモリに格納されるため、当該メモリの容量および当該メモリにアクセスする際の帯域幅を、エンコードを行わない従来技術に比較して小さくすることができる。また、映像キャプチャ用メモリとして従来と同程度の容量を有するものを用いる場合には、当該メモリに格納可能なフィールド数或いはフレーム数が従来よりも多くなるため、高画質映像処理における参照フィールド数或いは参照フレーム数を従来よりも増やし、より緻密な高画質映像処理を行うことが可能になる。   According to the present invention, since the video data to be processed in the image processing is stored in the video capture memory after being encoded by the encoding unit, the capacity of the memory and the bandwidth when accessing the memory are encoded. The size can be reduced as compared with the conventional technique which is not performed. In addition, when a video capture memory having the same capacity as the conventional one is used, the number of fields or frames that can be stored in the memory is larger than the conventional one. It is possible to increase the number of reference frames as compared with the conventional case and perform more precise high-quality video processing.

また、本発明においては、分割データのエンコードを行う毎に、1つ手前の分割データまでのエンコード結果から1画面分の映像データをエンコードした場合のデータサイズが推定され、推定されたデータサイズが映像キャプチャ用メモリの空き容量を上回っている場合には、圧縮効率が高くなるように(すなわち、エンコード後のデータサイズがより小さくなるように)当該分割データをエンコードする際のパラメータが調整される。このため、映像キャプチャ用メモリへのエンコードデータの書き込みの際に、オーバーフローに伴う上書きなどの破綻が発生することを確実に回避できる。   In the present invention, each time encoding of divided data is performed, the data size when video data for one screen is encoded is estimated from the encoding result up to the previous divided data, and the estimated data size is When the free space of the video capture memory is exceeded, the parameters for encoding the divided data are adjusted so that the compression efficiency becomes high (that is, the data size after encoding becomes smaller). . For this reason, when writing the encoded data to the video capture memory, it is possible to reliably avoid the occurrence of a failure such as overwriting due to the overflow.

より好ましい態様においては、エンコード部は、各分割データをエンコードする際に、推定された前記データサイズが予め定めた最大エンコードデータサイズを上回っている場合に、圧縮効率が高くなるように前記パラメータを調整する第2の圧縮率調整手段を含んでいることを特徴とする。詳細については実施形態の説明において明らかにするが、このような態様によれば、画像処理部による処理を経た映像データの表す映像に対して要求される画質が得られる範囲で目標最大圧縮率を定めておけば、オーバーフローに伴う上書きといった破綻の回避と画質の維持とを両立させることが可能になる。   In a more preferred aspect, the encoding unit sets the parameter so as to increase the compression efficiency when the estimated data size exceeds a predetermined maximum encoded data size when encoding each divided data. It includes a second compression rate adjusting means for adjusting. Although details will be clarified in the description of the embodiment, according to such an aspect, the target maximum compression rate is set within a range in which the required image quality can be obtained for the video represented by the video data processed by the image processing unit. If it is determined, it is possible to achieve both avoidance of failure such as overwriting due to overflow and maintenance of image quality.

本発明の画像処理装置の一実施形態の画像処理LSI1の構成例を示す図である。It is a figure which shows the structural example of image processing LSI1 of one Embodiment of the image processing apparatus of this invention. 同画像処理LSI1の表示制御部80が実行する合成処理を説明するための図である。It is a figure for demonstrating the synthetic | combination process which the display control part 80 of the image processing LSI1 performs. 同画像処理LSI1に接続される外部メモリ内に確保されるエンコードデータバッファを説明するための図である。4 is a diagram for explaining an encoded data buffer secured in an external memory connected to the image processing LSI 1. FIG. 本実施形態における圧縮率、量子化パラメータおよび画質の評価値の時間遷移の一例を示す図である。It is a figure which shows an example of the time transition of the compression rate in this embodiment, a quantization parameter, and the evaluation value of an image quality. 同画像処理LSI1の外部映像データ用エンコーダ30が実行する第1圧縮率調整処理を説明するための図である。It is a figure for demonstrating the 1st compression rate adjustment process which the encoder 30 for external video data of the image processing LSI1 performs. 同画像処理LSI1の外部映像データ用エンコーダ30が実行する第2圧縮率調整処理を説明するための図である。It is a figure for demonstrating the 2nd compression rate adjustment process which the encoder 30 for external video data of the image processing LSI1 performs.

以下、図面を参照しつつ本発明の実施形態を説明する。
図1は、本発明の画像処理装置の一実施形態の画像処理LSI1の構成例を示す図である。画像処理LSI1は、インタレース方式のアナログ映像信号やデジタル映像データに高画質映像処理を施し、高画質映像処理後の映像とOSDメニューとを合成して液晶ディスプレイなどの表示装置にリアルタイム表示させるものである。図1に示すように、画像処理LSI1は、アナログフロントエンド(図1では、「AFE」と表記、以下、本明細書でも同様)10、ビデオデコーダ20、外部映像データ用エンコーダ30、外部映像データ用デコーダ40、高画質映像処理部50、補正処理部60、OSD描画部70、表示制御部80、ホストCPU−I/F90、SDRAM−I/F100、ROM−I/F110、および共有ワークメモリ120を含んでいる。ホストCPU−I/F90には、画像処理LSIの作動制御を行うホストCPUが接続される。SDRAM−I/F100には、SDRAM等の外部メモリが接続される。そして、ROM−I/F110には、OSDメニューを構成するスプライト等のパターンデータを格納したパターンROMが接続される。共有ワークメモリ120は、高画質映像処理部50による高画質映像処理や補正処理部60による補正処理を経た外部映像の映像データやOSD描画部により生成されたOSDメニューの映像データを格納するワークメモリとして機能する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a diagram illustrating a configuration example of an image processing LSI 1 according to an embodiment of the image processing apparatus of the present invention. The image processing LSI 1 performs high-quality video processing on interlaced analog video signals and digital video data, synthesizes the video after high-quality video processing and the OSD menu, and displays them on a display device such as a liquid crystal display in real time. It is. As shown in FIG. 1, the image processing LSI 1 includes an analog front end (in FIG. 1, expressed as “AFE”, hereinafter the same in this specification) 10, a video decoder 20, an external video data encoder 30, external video data Decoder 40, high-quality video processing unit 50, correction processing unit 60, OSD drawing unit 70, display control unit 80, host CPU-I / F 90, SDRAM-I / F 100, ROM-I / F 110, and shared work memory 120 Is included. A host CPU that controls the operation of the image processing LSI is connected to the host CPU-I / F 90. An external memory such as an SDRAM is connected to the SDRAM-I / F 100. The ROM-I / F 110 is connected to a pattern ROM that stores pattern data such as sprites constituting the OSD menu. The shared work memory 120 stores external video data that has undergone high-quality video processing by the high-quality video processing unit 50 and correction processing by the correction processing unit 60 and OSD menu video data generated by the OSD drawing unit. Function as.

AFE10には、例えばテレビ放送の映像信号やDVD−Videoの映像信号、ビデオカメラの出力映像信号などのインタレース方式のアナログ映像信号が与えられる。AFE10は、与えられたアナログ映像信号にA/D変換を施し、変換結果であるデジタル形式の映像データ(すなわち、インタレース方式における各フィールドの映像データ)をビデオデコーダ20に与える。ビデオデコーダ20は、AFE10の出力する映像データから、同期信号、輝度成分、色成分を分離し、各々を表すデジタルデータを外部映像データ用エンコーダ30に与える。   For example, an interlaced analog video signal such as a video signal of a television broadcast, a video signal of a DVD-Video, or an output video signal of a video camera is given to the AFE 10. The AFE 10 performs A / D conversion on the given analog video signal, and provides the video decoder 20 with digital format video data (that is, video data of each field in the interlace method) as a conversion result. The video decoder 20 separates the synchronization signal, the luminance component, and the color component from the video data output from the AFE 10 and supplies digital data representing each to the external video data encoder 30.

外部映像データ用エンコーダ30には、ビデオデコーダ20から与えられる映像データの他に、この映像データの表す映像と合成される映像を表すデジタル映像データ(例えば、ITU601、ITU656フォーマットの映像データ)が与えられる。外部映像データ用エンコーダ30は、複数チャネルの映像データの各々を非可逆圧縮するエンコード処理を時分割方式で実行し、各映像データのエンコード結果(以下、エンコードデータ)をSDRAM−I/F100に接続された外部メモリへ書き込む。外部映像データ用エンコーダ30の入力段には、時分割処理をスムーズに行うために、チャネル毎にバッファが設けられている。   In addition to the video data supplied from the video decoder 20, the external video data encoder 30 is supplied with digital video data (for example, video data in ITU601, ITU656 format) that represents a video to be combined with the video represented by this video data. It is done. The external video data encoder 30 executes an encoding process for irreversibly compressing each of the video data of a plurality of channels in a time-sharing manner, and connects an encoding result (hereinafter, encoded data) of each video data to the SDRAM-I / F 100. To the external memory In the input stage of the external video data encoder 30, a buffer is provided for each channel in order to perform time division processing smoothly.

外部映像データ用デコーダ40は、画像処理LSI1における映像の表示タイミング(例えば、表示制御部80により指示されるタイミング)にしたがってエンコードデータを外部メモリから読み出してデコードし、輝度(Y)、色(Cb、Cr)データとして高画質映像処理部50に与える。つまり、本実施形態では、SDRAM−I/F100に接続された外部メモリが「映像キャプチャ用のメモリ」として用いられる。本実施形態では、外部メモリを「映像キャプチャ用のメモリ」として用いるが、共有ワークメモリ120を映像キャプチャ用のメモリとして用いても勿論良く、両メモリの何れを映像キャプチャ用メモリとして用いるのかについては、映像入力のチャネル数、各映像の解像度等に応じて定めれば良い。   The external video data decoder 40 reads out and decodes the encoded data from the external memory in accordance with the video display timing (for example, the timing instructed by the display control unit 80) in the image processing LSI 1, and performs luminance (Y), color (Cb , Cr) is provided to the high quality video processing unit 50 as data. That is, in the present embodiment, an external memory connected to the SDRAM-I / F 100 is used as a “video capture memory”. In this embodiment, the external memory is used as a “video capture memory”. However, the shared work memory 120 may of course be used as a video capture memory. Which of the two memories is used as a video capture memory? It may be determined according to the number of video input channels, the resolution of each video, and the like.

外部映像データ用エンコーダ30によるエンコード処理、および外部映像データ用デコーダ40によるデコード処理(以下、両者をまとめて「コーデック処理」と呼ぶ場合がある)は、ラスタスキャン方向に複数ライン分ずつ分割して行われる。このため、外部映像データ用デコーダ40の後段の各部(高画質映像処理部50、補正処理部60、OSD描画部70および表示制御部80)における処理についても、少量のメモリ(すなわち、複数ライン分のメモリ)でラスタ単位に実行することができる。   The encoding process by the external video data encoder 30 and the decoding process by the external video data decoder 40 (hereinafter sometimes collectively referred to as “codec processing”) are divided into a plurality of lines in the raster scan direction. Done. For this reason, a small amount of memory (that is, a plurality of lines) is also used for the processing in each of the subsequent stages of the external video data decoder 40 (high-quality video processing unit 50, correction processing unit 60, OSD drawing unit 70, and display control unit 80). Can be executed in raster units.

高画質映像処理部50は、外部映像データ用デコーダ40から与えられる映像データに、動き適応型IP変換、動き適応型ノイズリダクション等の高画質映像処理を施して補正処理部60に与える。補正処理部60は、高画質映像処理部50による処理を経た映像データに対して、拡大縮小処理、回転処理、或いはカメラ映像の歪み補正などの各種補正処理を施し、外部映像レイヤの映像データとして共有ワークメモリ120に書き込む。OSD描画部70は、外部映像に重ねて表示装置に表示させるメニューや付属情報の映像を表す映像データをラスタ単位で生成し、OSDレイヤの映像データとして共有ワークメモリ120に書き込む。表示制御部80は、共有ワークメモリ120から各レイヤの映像データを読み出し、ラスタ(複数ラインのバッファ)単位で図2(a)のように重ね合わせて図2(b)に示すレイアウトの1画面分の映像データを生成し表示装置(図示略)へ出力する。なお、各レイヤを重ねる際の優先順位についてはユーザに自由に指定させるようにすれば良い。
以上が画像処理LSI1の構成である。
The high quality video processing unit 50 subjects the video data supplied from the external video data decoder 40 to high quality video processing such as motion adaptive IP conversion, motion adaptive noise reduction, and the like, and supplies the video data to the correction processing unit 60. The correction processing unit 60 performs various correction processing such as enlargement / reduction processing, rotation processing, or camera video distortion correction on the video data that has undergone the processing by the high-quality video processing unit 50 to obtain video data of the external video layer. Write to shared work memory 120. The OSD drawing unit 70 generates, in raster units, video data representing a menu or video of attached information that is displayed on the display device over the external video, and writes it in the shared work memory 120 as video data of the OSD layer. The display control unit 80 reads the video data of each layer from the shared work memory 120, and superimposes them in raster (multiple line buffer) units as shown in FIG. 2A, thereby displaying one screen of the layout shown in FIG. Video data for the remaining minutes is generated and output to a display device (not shown). In addition, what is necessary is just to let a user specify freely about the priority at the time of overlapping each layer.
The above is the configuration of the image processing LSI 1.

本実施形態の特徴は、高画質映像処理の処理対象となる映像データをエンコードし、そのエンコード結果のエンコードデータを映像キャプチャ用メモリ(本実施形態では、外部メモリ)へ書き込む外部映像データ用エンコーダ30と、映像キャプチャ用メモリに記憶されたエンコードデータを読み出してデコードし、デコード結果の映像データを高画質映像処理部50に与える外部映像データ用デコーダ40を設けた点にある。このように、高画質映像処理の処理対象となる映像データにエンコードを施して映像キャプチャ用メモリへ格納するようにしたため、本実施形態によれば、エンコードを施さずに映像のキャプチャを行う従来技術に比較して映像キャプチャ用のメモリの容量が少なくて済み、また、映像キャプチャ用のメモリにアクセスする際の帯域幅(本実施形態では、SDRAM−I/F100を介したデータ伝送の帯域幅)も従来に比較して狭くて済む。加えて、本実施形態では、外部映像データ用エンコーダ30に本実施形態の特徴を顕著に示す処理を実行させることにより、高画質映像処理の処理対象の映像のキャプチャを行う際にオーバーフローに伴う上書きなどの破綻が発生することを回避することができる。以下、本実施形態の特徴を顕著に示す外部映像データ用エンコーダ30を中心に説明する。   A feature of the present embodiment is that an external video data encoder 30 that encodes video data to be processed in high-quality video processing and writes the encoded data of the encoding result to a video capture memory (in this embodiment, an external memory). And an external video data decoder 40 that reads and decodes the encoded data stored in the video capture memory and supplies the decoded video data to the high-quality video processing unit 50. As described above, since the video data to be processed in high-quality video processing is encoded and stored in the video capture memory, according to the present embodiment, the conventional technology for capturing video without performing the encoding. Compared to the above, the capacity of the video capture memory is small, and the bandwidth for accessing the video capture memory (in this embodiment, the bandwidth of data transmission via the SDRAM-I / F 100) However, it is narrower than before. In addition, in the present embodiment, by causing the external video data encoder 30 to execute processing that clearly shows the features of the present embodiment, overwriting due to overflow when capturing the video to be processed in high-quality video processing is performed. It is possible to avoid the occurrence of such failures. The following description focuses on the external video data encoder 30 that clearly shows the features of the present embodiment.

本実施形態では、映像データのコーデック処理をリアルタイムに遅延なく行うことが必要となるため、外部映像データ用エンコーダ30におけるエンコードアルゴリズムとして1パスのエンコードアルゴリズム(すなわち、エンコード対象の映像データの解析処理と圧縮処理とを同時並列に進めるエンコードアルゴリズム)が採用されている。このエンコードアルゴリズムによる圧縮率r(エンコード結果のデータサイズをエンコード前の映像データのデータサイズで除算した値×100)は、MPEG等における場合と同様に量子化パラメータqPに応じて定まる。具体的には、量子化パラメータqPが大きいほど圧縮率rは低く(エンコード結果のデータサイズは小さく、すなわち、圧縮効率は高く)なり、エンコードデータをデコードして得られる映像データの表す映像の画質は低下する。なお、画質を評価するための指標値としては、PSNR(ピーク信号対雑音比)を用いることが考えられる。   In this embodiment, since it is necessary to perform codec processing of video data in real time without delay, a one-pass encoding algorithm (that is, analysis processing of video data to be encoded) is used as an encoding algorithm in the external video data encoder 30. An encoding algorithm that advances the compression process simultaneously and in parallel is employed. The compression rate r by this encoding algorithm (value obtained by dividing the data size of the encoding result by the data size of the video data before encoding × 100) is determined according to the quantization parameter qP as in the case of MPEG or the like. Specifically, the larger the quantization parameter qP, the lower the compression ratio r (the data size of the encoding result is smaller, that is, the higher the compression efficiency), and the image quality of the video represented by the video data obtained by decoding the encoded data Will decline. Note that it is conceivable to use PSNR (peak signal to noise ratio) as an index value for evaluating the image quality.

本実施形態では、画像処理LSI1による処理を経て表示装置に表示される映像に対して許容される画質に応じて、目標とする圧縮率rの最大値(以下、目標最大圧縮率)がユーザによって設定される。一方、外部映像データ用エンコーダ30では、この目標最大圧縮率に応じて量子化パラメータqPの初期値が設定される。換言すれば、外部映像データ用エンコーダ30は、目標最大圧縮率の設定を介して量子化パラメータの初期値を可変に設定できるように構成されている。目標最大圧縮率の設定を介して量子化パラメータの初期値を可変に設定する構成としては、目標最大圧縮率として想定し得る複数種の値の各々に対応付けて、量子化パラメータqPの初期値を書き込んだテーブルを外部映像データ用エンコーダ30に記憶させておき、ユーザにより設定された目標最大圧縮率に応じた量子化パラメータを当該テーブルから読み出す処理を外部映像データ用エンコーダ30に実行させる構成が考えられる。   In the present embodiment, the maximum value of the target compression rate r (hereinafter referred to as the target maximum compression rate) is set by the user according to the image quality allowed for the video displayed on the display device through the processing by the image processing LSI 1. Is set. On the other hand, in the external video data encoder 30, the initial value of the quantization parameter qP is set according to the target maximum compression rate. In other words, the external video data encoder 30 is configured so that the initial value of the quantization parameter can be variably set through the setting of the target maximum compression rate. As a configuration for variably setting the initial value of the quantization parameter via the setting of the target maximum compression rate, the initial value of the quantization parameter qP is associated with each of a plurality of types of values that can be assumed as the target maximum compression rate. Is stored in the external video data encoder 30, and the external video data encoder 30 executes a process of reading the quantization parameter corresponding to the target maximum compression rate set by the user from the table. Conceivable.

また、外部映像データ用エンコーダ30は、目標最大圧縮率に基づいて、1チャネル分の映像データの記憶に必要な容量の記憶領域を外部メモリ内に確保する。本実施形態では、高画質映像処理の処理対象となる映像データはインタレース方式のアナログ映像信号にA/D変換を施して得られたものであり、外部映像データ用エンコーダ30は、1フィールドの目標最大エンコードデータサイズに応じた容量のバッファを1チャネル毎に8フィールド(すなわち、4フレーム)分ずつ確保する(図3参照)。これは、映像入力と合成後の映像出力が非同期であること、各映像データのエンコード結果(圧縮率)にバラツキが生じることを考慮したためである。なお、1フィールドの目標最大エンコードデータサイズ(バイト)は、目標最大圧縮率をr%、映像の水平解像度をX、垂直解像度をYとし、1画素の画素値が24ビットで表現されているとすると、以下の式(1)により算出される。
1フィールドの目標最大エンコードデータサイズ(バイト)
=X×Y/2×24×r/100/8・・・(1)
図3に示すように外部メモリ内に確保された各バッファへのエンコードデータの書き込みと同バッファからのエンコードデータの読み出しは非同期で行われ、これらバッファはFIFOとして機能する。
Further, the external video data encoder 30 secures a storage area in the external memory having a capacity necessary for storing video data for one channel based on the target maximum compression rate. In this embodiment, the video data to be processed by the high-quality video processing is obtained by subjecting an interlaced analog video signal to A / D conversion, and the external video data encoder 30 has one field. A buffer having a capacity corresponding to the target maximum encoded data size is secured for 8 fields (that is, 4 frames) for each channel (see FIG. 3). This is because the video input and the synthesized video output are asynchronous, and the encoding result (compression rate) of each video data varies. Note that the target maximum encoded data size (bytes) of one field is expressed as a pixel value of 24 bits, where the target maximum compression rate is r%, the horizontal resolution of the video is X, and the vertical resolution is Y. Then, it calculates with the following formula | equation (1).
Target maximum encoded data size for 1 field (bytes)
= X × Y / 2 × 24 × r / 100/8 (1)
As shown in FIG. 3, the writing of encoded data to each buffer secured in the external memory and the reading of encoded data from the same buffer are performed asynchronously, and these buffers function as a FIFO.

映像データのエンコードでは、通常、前フィールドのエンコードデータサイズから次のフィールドをエンコードする際の量子化パラメータqPを決定し(最初のフィールドについては初期値を用いる)、1フィールド内では固定の量子化パラメータqPを用いてラスタスキャン方向に上から下へ映像データをエンコードすることが一般的である。本実施形態の外部映像データ用エンコーダ30においても、同様に量子化パラメータqPの制御が為される。これは、各フィールドの圧縮率が目標最大圧縮率からばらつかないようにするためである。図4は、ある映像をエンコードする際の量子化パラメータqP、圧縮率r、画質を示す指標値PSNRの関係を時間軸方向に示した図である。図4に示す例では、フィールドF1のエンコードの際に瞬間的に圧縮率rが目標最大圧縮率を超えているため、次のフィールドF2のエンコードでは圧縮率rが低下するように量子化パラメータqPが引き上げられている。逆にフィールドF3のエンコードでは圧縮率rが目標最大圧縮率を下回っているため、次のフィールドF4のエンコードでは圧縮率rが目標最大圧縮率に近づくように、量子化パラメータqPが引き下げられている。   In the encoding of video data, a quantization parameter qP for encoding the next field is usually determined from the encoded data size of the previous field (initial value is used for the first field). It is common to encode video data from top to bottom in the raster scan direction using the parameter qP. In the external video data encoder 30 of this embodiment, the quantization parameter qP is similarly controlled. This is to prevent the compression rate of each field from varying from the target maximum compression rate. FIG. 4 is a diagram illustrating the relationship between the quantization parameter qP, the compression ratio r, and the index value PSNR indicating the image quality in the time axis direction when encoding a certain video. In the example shown in FIG. 4, since the compression rate r instantaneously exceeds the target maximum compression rate at the time of encoding the field F1, the quantization parameter qP is set so that the compression rate r decreases in the encoding of the next field F2. Has been raised. On the contrary, since the compression rate r is lower than the target maximum compression rate in the encoding of the field F3, the quantization parameter qP is lowered so that the compression rate r approaches the target maximum compression rate in the encoding of the next field F4. .

しかしながら、量子化パラメータqPをフィールド単位で固定とする態様では、処理対象の映像にスノーノイズのような圧縮しにくい映像のフィールドが含まれていた場合に、当該フィールドにおける圧縮率が目標最大圧縮率をはるかに上回り、FIFO残量によってはオーバーフローに伴う上書きなどの破綻が発生する可能性がある。このような破綻の発生を回避するため、本実施形態の外部映像データ用エンコーダ30には、量子化パラメータqPをよりきめ細やかに調整するための(換言すれば、圧縮率をきめ細やかに調整するための)第1圧縮率調整手段30Aと第2圧縮率調整手段30Bとが設けられている。   However, in the aspect in which the quantization parameter qP is fixed in units of fields, when the video to be processed includes a field of video that is difficult to compress, such as snow noise, the compression rate in the field is the target maximum compression rate. There is a possibility that failure such as overwriting accompanying overflow will occur depending on the remaining FIFO. In order to avoid the occurrence of such a failure, the external video data encoder 30 of the present embodiment adjusts the quantization parameter qP more finely (in other words, the compression rate is finely adjusted. A first compression rate adjusting means 30A and a second compression rate adjusting means 30B are provided.

前述したように、外部映像データ用エンコーダ30におけるエンコード処理は、1フィールド分の映像データをラスタスキャン方向に複数に分割して得られる分割データ毎に行われる。第1圧縮率調整手段30Aは、分割データのエンコードを行う際に、1つ手前の分割データまでのエンコード結果のデータサイズから1フィールド分の映像データをエンコードした場合のエンコードデータのデータサイズを推定し、推定されたデータサイズがFIFOの空き容量を上回る場合には、より低い圧縮率で当該分割データがエンコードされるように量子化パラメータqPを調整する。つまり、第1圧縮率調整手段30Aは、FIFO残量が足りなくなると判断した場合には、1フィールド内でも段階的に量子化パラメータを引き上げる。量子化パラメータqPが引き上げられれば圧縮率rは低下し(図4参照)、FIFOのオーバーフローが回避される。   As described above, the encoding process in the external video data encoder 30 is performed for each divided data obtained by dividing video data for one field into a plurality of parts in the raster scan direction. When encoding the divided data, the first compression rate adjusting unit 30A estimates the data size of the encoded data when the video data for one field is encoded from the data size of the encoding result up to the previous divided data. If the estimated data size exceeds the FIFO free space, the quantization parameter qP is adjusted so that the divided data is encoded at a lower compression rate. That is, when the first compression rate adjustment unit 30A determines that the FIFO remaining amount is insufficient, the first compression rate adjustment unit 30A gradually increases the quantization parameter even within one field. If the quantization parameter qP is increased, the compression ratio r decreases (see FIG. 4), and FIFO overflow is avoided.

図5は、1フィールドの映像データを垂直方向に4等分してエンコードする場合の第1圧縮率調整手段30Aの動作を説明するための図である。量子化パラメータqPを調整するか否かの判断は、図5に示すように、分割データのエンコード結果のFIFOへ書き込みを行う毎に実行される。より詳細に説明すると、第1圧縮率調整手段30Aは、分割データのエンコード結果のFIFOへの書き込みを行う毎に、1フィールド分の映像データをエンコードした場合のエンコードデータのデータサイズを、それまでにエンコードした分割データのエンコードデータのデータサイズに基づいて推定し、推定されたデータサイズがその1フィールドのエンコード開始時のFIFOの空き容量(FIFOの容量)を上回っている場合には、量子化パラメータを所定量だけ(或いは、所定の割合で)引き上げる。   FIG. 5 is a diagram for explaining the operation of the first compression ratio adjusting unit 30A when encoding video data of one field by dividing it into four equal parts in the vertical direction. Whether or not the quantization parameter qP is to be adjusted is determined every time the division data encoding result is written into the FIFO, as shown in FIG. More specifically, the first compression ratio adjusting unit 30A determines the data size of the encoded data when the video data for one field is encoded each time writing the encoded result of the divided data into the FIFO. If the estimated data size is larger than the FIFO free capacity at the start of encoding of that one field (FIFO capacity), quantization is performed. Increase the parameter by a predetermined amount (or at a predetermined rate).

例えば、図5の領域Aに対応する分割データのエンコード結果のFIFOへの書き込みを行った時点では、第1圧縮率調整手段30Aは、当該エンコード結果のデータサイズE1に係数K1を乗算して得られる値を1フィールド分の映像データをエンコードした場合のエンコードデータのデータサイズの推定値としてFIFOの空き容量との比較を行う。同様に、図5の領域Bに対応する分割データのエンコード結果のFIFOへの書き込みを行った時点では、第1圧縮率調整手段30Aは、当該エンコード結果のデータサイズと領域Aに対応するエンコードデータのデータサイズの和E12に係数K2を乗算して得られる値を、1フィールド分の映像データをエンコードした場合のエンコードデータのデータサイズの推定値としてFIFOの空き容量との比較を行う。そして、図5の領域Cに対応する分割データのエンコード結果のFIFOへの書き込みを行った時点では、第1圧縮率調整手段30Aは、当該エンコード結果のデータサイズと領域Aおよび領域Bの各々に対応するエンコードデータのサイズの和E123に係数K3を乗算して得られる値を、1フィールド分の映像データをエンコードした場合のエンコードデータのデータサイズの推定値としてFIFOの空き容量との比較を行う。ここで、上記係数K1、K2、およびK3の各々としてどのような値を用いるかについては適宜実験を行って定めれば良い。具体的には、本実施形態ではエンコード対象の映像データはラスタスキャン方向に4等分されているのであるから、K1=4+安全係数(或いは、4×安全係数)、K2=4/2+安全係数(或いは、4/2×安全係数)、K3=4/3+安全係数(或いは、4/3×安全係数)とし、各安全係数を実験により定めるようにすれば良い。   For example, at the time when the encoding result of the divided data corresponding to the area A in FIG. 5 is written into the FIFO, the first compression ratio adjustment unit 30A obtains the data size E1 of the encoding result by multiplying by the coefficient K1. This value is compared with the FIFO free space as an estimated value of the data size of the encoded data when video data for one field is encoded. Similarly, at the time when the encoding result of the divided data corresponding to the area B in FIG. 5 is written to the FIFO, the first compression ratio adjusting unit 30A encodes the data size of the encoding result and the encoded data corresponding to the area A. A value obtained by multiplying the sum E12 of the data size by the coefficient K2 is compared with the FIFO free space as an estimated value of the data size of the encoded data when one field of video data is encoded. Then, at the time when the encoding result of the divided data corresponding to the area C in FIG. 5 is written to the FIFO, the first compression ratio adjusting unit 30A sets the data size of the encoding result and each of the area A and the area B. The value obtained by multiplying the corresponding encoded data size sum E123 by the coefficient K3 is compared with the FIFO free space as the estimated data size of the encoded data when one field of video data is encoded. . Here, what value should be used as each of the coefficients K1, K2, and K3 may be determined through appropriate experiments. Specifically, in this embodiment, since the video data to be encoded is divided into four equal parts in the raster scan direction, K1 = 4 + safety factor (or 4 × safety factor), K2 = 4/2 + safety factor. (Or 4/2 × safety factor), K3 = 4/3 + safety factor (or 4/3 × safety factor), and each safety factor may be determined by experiment.

次いで、第2圧縮率調整手段30Bについて説明する。
前述したように、本実施形態では、第1圧縮率調整手段30Aの働きによって、映像データをFIFOへ書き込む際にオーバーフローに伴う上書きなどの破綻が発生することを回避することができる。しかし、ここで留意しなければならないのは、映像キャプチャ用メモリに十分な空きがあり、その空き容量との比較では量子化パラメータqP(換言すれば、圧縮率)の調整は必要ないと判断されるような場合であっても、目標最大圧縮率を上回る圧縮率でエンコードされたエンコードデータが映像キャプチャ用メモリに無制限に書き込まれるのは好ましくない、という点である。その理由は以下の通りである。目標最大圧縮率を上回る圧縮率でエンコードされたエンコードデータの書き込みが頻発すると、映像キャプチャ用メモリの空き容量は時間の経過とともに急速に減少する。映像キャプチャ用メモリの空き容量が時間の経過とともに急速に減少したとしても、本実施形態では、第1圧縮率調整手段30Aの働きによってオーバーフローに伴う上書きなどの破綻の発生は回避される。しかし、圧縮率が急速に引き下げられると、表示装置に表示される映像の画質が急速に低下してしまう。つまり、映像キャプチャ用メモリに十分な空きがあるからといって、目標最大圧縮率を上回る圧縮率でエンコードされたエンコードデータの書き込みを無制限に許容してしまうと、後続の映像の画質を大きく低下させてしまう虞がある。第2圧縮率調整手段30Bは、このような事態の発生を回避するために設けられている。
Next, the second compression rate adjusting unit 30B will be described.
As described above, in the present embodiment, it is possible to avoid the occurrence of failure such as overwriting due to overflow when writing the video data to the FIFO by the function of the first compression ratio adjusting unit 30A. However, it should be noted here that there is sufficient space in the video capture memory, and it is determined that adjustment of the quantization parameter qP (in other words, the compression rate) is not necessary in comparison with the free space. Even in such a case, it is not preferable that encoded data encoded at a compression ratio exceeding the target maximum compression ratio is written indefinitely in the video capture memory. The reason is as follows. If writing of encoded data encoded at a compression rate exceeding the target maximum compression rate occurs frequently, the free space in the video capture memory rapidly decreases with time. Even if the free capacity of the video capture memory rapidly decreases with time, in the present embodiment, the occurrence of failure such as overwriting due to overflow is avoided by the action of the first compression rate adjusting means 30A. However, when the compression rate is rapidly lowered, the image quality of the video displayed on the display device is rapidly lowered. In other words, even if there is enough space in the video capture memory, if you allow unlimited writing of encoded data encoded at a compression rate that exceeds the target maximum compression rate, the image quality of the subsequent video will be greatly reduced. There is a risk of letting you. The second compression rate adjusting means 30B is provided to avoid the occurrence of such a situation.

より詳細に説明すると、第2圧縮率調整手段30Bは、分割データのエンコードおよびFIFOへの書き込みを行う毎に、それまでにエンコードした分割データのエンコードデータのデータサイズがその分割データ分の最大エンコードデータサイズを上回るか否か判定し、上回る場合には、量子化パラメータを所定量だけ(或いは、所定の割合で)引き上げる。ここで、最大エンコードデータサイズとは、第2圧縮率調整手段30Bによる上記調整をすることで大きな画質低下を防ぐことが可能となるように予め設定された、1フィールド分のデータサイズである。   More specifically, each time the second compression ratio adjustment unit 30B encodes the divided data and writes it to the FIFO, the data size of the encoded data of the divided data encoded so far is the maximum encoding for the divided data. It is determined whether or not the data size is exceeded. If so, the quantization parameter is increased by a predetermined amount (or at a predetermined rate). Here, the maximum encoded data size is a data size for one field that is set in advance so that a large deterioration in image quality can be prevented by performing the above-described adjustment by the second compression ratio adjusting unit 30B.

例えば、第2圧縮率調整手段30Bは、図6の領域Aに対応する分割データのエンコード結果のFIFOへの書き込みを行った時点では、当該エンコード結果のデータサイズE1と1フィールド分の目標最大エンコードデータサイズ(前掲式(1))に所定の係数M1を乗算することにより算出した領域Aに対応する最大エンコードデータサイズとを比較し、前者が後者を上回っている場合に量子化パラメータを引き上げる。なお、データサイズE1から1フィールドのエンコードデータサイズを推定し、推定されたエンコードデータサイズと1フィールド分の最大エンコードデータサイズとの大小比較を行い、前者のほうが大きい場合に量子化パラメータqPを引き上げるようにしても良い。また、図6の領域Bに対応する分割データのエンコード結果のFIFOへの書き込みを行った時点では、第2圧縮率調整手段30Bは、当該エンコード結果のデータサイズと領域Aに対応するエンコードデータのデータサイズの和E12と1フィールド分の目標最大エンコードデータサイズに所定の係数M2を乗算することにより算出された領域A+領域Bに対応する最大エンコードデータサイズとを比較し、前者が後者を上回っている場合に量子化パラメータを引き上げる。そして、図6の領域Cに対応する分割データのエンコード結果のFIFOへの書き込みを行った時点では、第2圧縮率調整手段30Bは、当該分割データのエンコード結果のデータサイズと領域Aおよび領域Bの各々に対応する各エンコードデータのデータサイズの和E123と1フィールド分の目標最大エンコードデータサイズに所定の係数M3を乗算することにより算出された領域A+領域B+領域Cに対応する最大エンコードデータサイズとを比較し、前者が後者を上回っている場合に量子化パラメータを引き上げる。   For example, the second compression rate adjusting unit 30B, when writing the encoded result of the divided data corresponding to the area A in FIG. 6 to the FIFO, the data size E1 of the encoded result and the target maximum encoding for one field. The maximum encoded data size corresponding to the area A calculated by multiplying the data size (formula (1)) by a predetermined coefficient M1 is compared, and if the former exceeds the latter, the quantization parameter is raised. Note that the encoding data size of one field is estimated from the data size E1, the size of the estimated encoding data size is compared with the maximum encoding data size for one field, and the quantization parameter qP is increased when the former is larger. You may do it. Further, at the time when the encoding result of the divided data corresponding to the area B in FIG. 6 is written to the FIFO, the second compression ratio adjusting unit 30B determines the data size of the encoding result and the encoded data corresponding to the area A. The data size sum E12 is compared with the maximum encoded data size corresponding to the region A + region B calculated by multiplying the target maximum encoded data size for one field by a predetermined coefficient M2, and the former exceeds the latter. Increase the quantization parameter. Then, at the time when the encoding result of the divided data corresponding to the area C in FIG. 6 is written into the FIFO, the second compression ratio adjusting unit 30B determines the data size, area A, and area B of the encoded result of the divided data. The maximum encoded data size corresponding to the region A + region B + region C calculated by multiplying the sum E123 of the data size of each encoded data corresponding to each of the above and the target maximum encoded data size for one field by a predetermined coefficient M3 And the quantization parameter is increased when the former exceeds the latter.

以上説明したように本実施形態の画像処理LSIにおいては、高画質映像処理の処理対象の映像データは外部映像データ用エンコーダ30によるエンコードを経て映像キャプチャ用メモリに格納される。このため、映像キャプチャ用メモリの役割を果たす外部メモリの容量および当該外部メモリにアクセスする際の帯域幅を、エンコードを行わない従来技術に比較して小さくすることができる。また、上記外部メモリとして従来と同程度の記憶容量を有するものを用いる場合には、その外部メモリに格納可能なエンコードデータの数が従来よりも多くなるため、高画質映像処理における参照フレーム数を従来よりも増やし、より緻密な高画質映像処理を行うことが可能になる。   As described above, in the image processing LSI of this embodiment, the video data to be processed in the high-quality video processing is stored in the video capture memory after being encoded by the external video data encoder 30. For this reason, it is possible to reduce the capacity of the external memory that plays the role of the video capture memory and the bandwidth when accessing the external memory as compared with the conventional technique that does not perform encoding. In addition, when the external memory having the same storage capacity as that of the conventional memory is used, the number of encoded data that can be stored in the external memory is larger than that of the conventional memory. It becomes possible to perform more precise high-quality video processing than before.

加えて、本実施形態では、映像キャプチャ用メモリの空き容量に応じて量子化パラメータ(換言すれば、映像データの圧縮率)が調整されるため、外部メモリへのエンコードデータの書き込みの際にオーバーフローに伴う上書きなどの破綻が発生することもない。   In addition, in this embodiment, since the quantization parameter (in other words, the compression rate of the video data) is adjusted according to the free space of the video capture memory, overflow occurs when writing encoded data to the external memory. There will be no failure such as overwriting.

以上本発明の一実施形態について説明したが、この実施形態に以下の変形を加えても勿論良い。
(1)上記実施形態では、第1圧縮率調整手段30Aによる量子化パラメータの調整と第2圧縮率調整手段30Bによる量子化パラメータの調整とを行う場合について説明した。しかし、第1圧縮率調整手段30Aによる調整のみでも、映像キャプチャ用メモリへのエンコードデータの書き込みの際のメモリ破壊を回避することができるため、第2圧縮率調整手段30Bを省略しても良い。なお、上記実施形態では、量子化パラメータqPの調整により圧縮率の調整を実現したが、圧縮率を調整するためのパラメータについてはエンコードアルゴリズムとの関係で定めるようにすれば良い。
Although one embodiment of the present invention has been described above, it goes without saying that the following modifications may be added to this embodiment.
(1) In the above embodiment, the case where the quantization parameter adjustment by the first compression rate adjustment unit 30A and the quantization parameter adjustment by the second compression rate adjustment unit 30B are performed has been described. However, since only the adjustment by the first compression rate adjustment unit 30A can avoid the memory destruction at the time of writing the encoded data to the video capture memory, the second compression rate adjustment unit 30B may be omitted. . In the above embodiment, the compression rate is adjusted by adjusting the quantization parameter qP. However, the parameters for adjusting the compression rate may be determined in relation to the encoding algorithm.

(2)上記実施形態では、外部映像データ用デコーダ40の後段に高画質映像処理部50および補正処理部60からなる画像処理部を設けたが、他の種類の画像編集処理を実行する画像処理部を外部映像データ用デコーダ40の後段に設けても良い。また、上記実施形態では、インタレース方式における1フィールド分の映像データをラスタスキャン方向に複数に分割して得られる分割データ毎に圧縮率の調整を行う場合について説明したが、プログレッシブ方式における1フレーム分の映像データをラスタスキャン方向に複数に分割して得られる分割データ毎に圧縮率の調整を行っても良い。要は、1画面分の映像データをラスタスキャン方向に複数に分割して得られる分割データ毎に圧縮率の調整を行う態様であれば良い。 (2) In the above-described embodiment, the image processing unit including the high-quality video processing unit 50 and the correction processing unit 60 is provided in the subsequent stage of the external video data decoder 40. However, image processing for executing other types of image editing processing May be provided after the external video data decoder 40. In the above embodiment, the case where the compression rate is adjusted for each divided data obtained by dividing video data for one field in the interlace method into a plurality of raster scan directions has been described. However, one frame in the progressive method is used. The compression ratio may be adjusted for each piece of divided data obtained by dividing the video data for a plurality of pieces in the raster scan direction. In short, any mode may be used as long as the compression ratio is adjusted for each divided data obtained by dividing video data for one screen into a plurality of raster scan directions.

(3)上記実施形態では、高画質映像処理の対象となる映像をキャプチャするためのメモリとしてSDRAM−I/F100に接続された外部メモリを用いた。しかしながら、前述したように、共有ワークメモリ120(すなわち、画像処理LSI1に内蔵されたメモリ)に映像キャプチャ用メモリの役割を担わせても良く、このような態様によれば、外部メモリを省略して画像表示システム全体の製造コストを引き下げることが可能になる。 (3) In the above embodiment, an external memory connected to the SDRAM-I / F 100 is used as a memory for capturing a video that is a target of high-quality video processing. However, as described above, the shared work memory 120 (that is, the memory built in the image processing LSI 1) may serve as the video capture memory. According to such an aspect, the external memory is omitted. Thus, the manufacturing cost of the entire image display system can be reduced.

(4)DSP(Digital
Signal Processor)などのコンピュータを、外部映像データ用エンコーダ30、外部映像データ用デコーダ40、および外部映像データ用デコーダ40の出力する映像データに各種画像処理を施すための画像処理部として機能させるプログラムを提供しても良い。ここで、このようなプログラムの具体的な提供態様としては、CD−ROM(Compact Disk-Read Only Memory)などのコンピュータ読み取り可能な記録媒体に当該プログラムを記録して配布する態様やインターネットなどの電気通信回線経由のダウンロードにより配布する態様が考えられる。
(4) DSP (Digital
A program that causes a computer such as a signal processor to function as an image processing unit for performing various image processing on the video data output from the external video data encoder 30, the external video data decoder 40, and the external video data decoder 40. May be provided. Here, as a specific provision mode of such a program, a mode in which the program is recorded and distributed on a computer-readable recording medium such as a CD-ROM (Compact Disk-Read Only Memory) or an electric such as the Internet A mode of distribution by downloading via a communication line is conceivable.

10…アナログフロントエンド、20…ビデオデコーダ、30…外部映像データ用エンコーダ、40…外部映像データ用デコーダ、50…高画質映像処理部、60…補正処理部、70…OSD描画部、80…表示制御部、90…ホストCPU−I/F、100…SDRAM−I/F、110…ROM−I/F、120…共有ワークメモリ。   DESCRIPTION OF SYMBOLS 10 ... Analog front end, 20 ... Video decoder, 30 ... External video data encoder, 40 ... External video data decoder, 50 ... High quality video processing part, 60 ... Correction processing part, 70 ... OSD drawing part, 80 ... Display Control unit 90 ... Host CPU-I / F, 100 ... SDRAM-I / F, 110 ... ROM-I / F, 120 ... Shared work memory.

Claims (3)

処理対象の映像データをラスタスキャン方向にエンコードして映像キャプチャ用メモリに書き込むエンコード部と、
前記映像キャプチャ用メモリから画像処理に必要となる画面分のデータを読み出してデコードし、各画面の映像データを出力するデコード部と、
前記デコード部から出力される映像データに画像処理を施して出力する画像処理部と、を備え、
前記処理対象の1画面分の映像データをラスタスキャン方向に複数に分割して得られるデータを分割データとしたとき、前記エンコード部は、
各分割データをエンコードする際に、1つ手前の分割データまでのエンコード結果から1画面分の映像データをエンコードした場合のデータサイズを推定し、当該データサイズと前記映像キャプチャ用メモリの空き容量とに基づいて当該分割データをエンコードする際のパラメータを調整する圧縮率調整手段を含んでいる
ことを特徴とする画像処理装置。
An encoding unit that encodes video data to be processed in a raster scan direction and writes it to a video capture memory;
Read and decode data for the screen necessary for image processing from the video capture memory, and output the video data of each screen;
An image processing unit that performs image processing on the video data output from the decoding unit and outputs the video data;
When the data obtained by dividing the video data for one screen to be processed into a plurality of parts in the raster scan direction is divided data, the encoding unit includes:
When each divided data is encoded, the data size when the video data for one screen is encoded is estimated from the encoding result up to the previous divided data, and the data size and the free space of the video capture memory are estimated. An image processing apparatus comprising: a compression ratio adjusting unit that adjusts a parameter for encoding the divided data based on the above.
前記エンコード部は、
各分割データをエンコードする際に、推定された前記データサイズが予め定めた最大エンコードデータサイズを上回っている場合に、圧縮効率が高くなるように前記パラメータを調整する第2の圧縮率調整手段を含んでいる
ことを特徴とする請求項1に記載の画像処理装置。
The encoding unit is
A second compression ratio adjusting unit configured to adjust the parameter so that the compression efficiency is increased when the estimated data size exceeds a predetermined maximum encoded data size when encoding each divided data; The image processing apparatus according to claim 1, further comprising:
前記エンコード部へ入力される映像データはアナログ映像信号にA/D変換を施して得られるデータであり、
前記画像処理部から出力される映像データと他の映像データとを合成して、表示器に表示させる1画面分の映像データを生成して出力する合成手段をさらに有することを特徴とする請求項1または請求項2に記載の画像処理装置。
The video data input to the encoding unit is data obtained by subjecting an analog video signal to A / D conversion,
The video data output from the image processing unit and other video data are combined to generate and output video data for one screen to be displayed on a display device. The image processing apparatus according to claim 1 or 2.
JP2012228453A 2012-10-15 2012-10-15 Image processing device Active JP6024374B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012228453A JP6024374B2 (en) 2012-10-15 2012-10-15 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012228453A JP6024374B2 (en) 2012-10-15 2012-10-15 Image processing device

Publications (2)

Publication Number Publication Date
JP2014082603A true JP2014082603A (en) 2014-05-08
JP6024374B2 JP6024374B2 (en) 2016-11-16

Family

ID=50786417

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012228453A Active JP6024374B2 (en) 2012-10-15 2012-10-15 Image processing device

Country Status (1)

Country Link
JP (1) JP6024374B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0418857A (en) * 1990-04-23 1992-01-23 Ricoh Co Ltd Picture data compression system
JPH05161108A (en) * 1991-12-06 1993-06-25 Ricoh Co Ltd Method and device for controlling code quantity
JPH06152984A (en) * 1992-11-06 1994-05-31 Canon Inc Picture processor
JPH10126748A (en) * 1996-10-15 1998-05-15 Hitachi Ltd Format conversion signal processing method for image signal and its circuit
JP2010103689A (en) * 2008-10-22 2010-05-06 Seiko Epson Corp Image processing apparatus, integrated circuit device, and electronic apparatus
WO2011159511A2 (en) * 2010-06-16 2011-12-22 Silicon Image, Inc. Mechanism for memory reduction in picture-in-picture video generation

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0418857A (en) * 1990-04-23 1992-01-23 Ricoh Co Ltd Picture data compression system
JPH05161108A (en) * 1991-12-06 1993-06-25 Ricoh Co Ltd Method and device for controlling code quantity
JPH06152984A (en) * 1992-11-06 1994-05-31 Canon Inc Picture processor
JPH10126748A (en) * 1996-10-15 1998-05-15 Hitachi Ltd Format conversion signal processing method for image signal and its circuit
JP2010103689A (en) * 2008-10-22 2010-05-06 Seiko Epson Corp Image processing apparatus, integrated circuit device, and electronic apparatus
WO2011159511A2 (en) * 2010-06-16 2011-12-22 Silicon Image, Inc. Mechanism for memory reduction in picture-in-picture video generation

Also Published As

Publication number Publication date
JP6024374B2 (en) 2016-11-16

Similar Documents

Publication Publication Date Title
US10666945B2 (en) Image processing device and image processing method for decoding a block of an image
US8831103B2 (en) Image processing apparatus and method
US8098291B2 (en) Image pickup apparatus, control method, and control program, and data processing apparatus, method, and program for recording a moving image and a still image
US20080304758A1 (en) Image-signal processing apparatus, image-signal processing method and image-signal processing program
JP4693546B2 (en) Digital noise reduction apparatus and method, and video signal processing apparatus
JP4762352B1 (en) Image processing apparatus and image processing method
US20130216150A1 (en) Image processing device, image processing method, and program
US8446965B2 (en) Compression noise reduction apparatus, compression noise reduction method, and storage medium therefor
US9386310B2 (en) Image reproducing method, image reproducing device, image reproducing program, imaging system, and reproducing system
US8548272B2 (en) Image signal processing apparatus, image signal processing method, camera apparatus, image display apparatus, and image signal output apparatus
EP2334081A1 (en) Image processing device and method
US8559526B2 (en) Apparatus and method for processing decoded images
JP2010035157A (en) Image processing device
JP6024374B2 (en) Image processing device
US8526506B1 (en) System and method for transcoding with quality enhancement
US20100165205A1 (en) Video signal sharpening apparatus, image processing apparatus, and video signal sharpening method
US20100215286A1 (en) Image processing apparatus and image processing method
US8270773B2 (en) Image processing apparatus and image processing method
JP2003333370A (en) Signal processing apparatus
JP2012004890A (en) Video signal output device, and video signal output method
JP2011139356A (en) Display device, display method, program, and record medium
US20210136378A1 (en) Adaptive quality boosting for low latency video coding
JP4991884B2 (en) Image processing apparatus and image processing method
JP2005005997A (en) Image data processor
US20100045857A1 (en) Image Processor and Image Processing Method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150820

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160516

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160524

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160722

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20160913

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160926

R151 Written notification of patent or utility model registration

Ref document number: 6024374

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151