[go: up one dir, main page]

JP2013128188A - Image encoder - Google Patents

Image encoder Download PDF

Info

Publication number
JP2013128188A
JP2013128188A JP2011276617A JP2011276617A JP2013128188A JP 2013128188 A JP2013128188 A JP 2013128188A JP 2011276617 A JP2011276617 A JP 2011276617A JP 2011276617 A JP2011276617 A JP 2011276617A JP 2013128188 A JP2013128188 A JP 2013128188A
Authority
JP
Japan
Prior art keywords
image
encoding
encoder
picture
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.)
Pending
Application number
JP2011276617A
Other languages
Japanese (ja)
Inventor
Yukifumi Kobayashi
幸史 小林
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2011276617A priority Critical patent/JP2013128188A/en
Publication of JP2013128188A publication Critical patent/JP2013128188A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

【課題】
入力画像を画質の異なる2つの符号化方式で符号化する際のデータバスの負荷を軽減する。
【解決手段】
入力動画像の各画像データは、DRAM104に格納される。符号化器(101)は、DRAM104の画像データを読み出し、HD画質で符号化する。符号化器(102)は、DRAM104からBピクチャ以外で符号化すべき画像データを読み出し、符号化器(101)の符号化と同時にSD画質で符号化する。入力動画像の同時符号化の終了後、符号化器(101)は、符号化器(102)で符号化しなかったBピクチャに対応する符号化画像を復号化し、符号化器(102)は、符号化器(101)で復号化した画像をBピクチャとして符号化する。
【選択図】 図1
【Task】
The load on the data bus when the input image is encoded by two encoding methods having different image qualities is reduced.
[Solution]
Each image data of the input moving image is stored in the DRAM 104. The encoder (101) reads the image data of the DRAM 104 and encodes it with HD image quality. The encoder (102) reads out image data to be encoded other than the B picture from the DRAM 104, and encodes it with SD image quality simultaneously with the encoding of the encoder (101). After completing the simultaneous encoding of the input moving image, the encoder (101) decodes the encoded image corresponding to the B picture that has not been encoded by the encoder (102), and the encoder (102) The image decoded by the encoder (101) is encoded as a B picture.
[Selection] Figure 1

Description

本発明は、動画像データを圧縮符号化する画像符号化装置に関し、特に入力画像を画像サイズ又はフォーマットの異なる2系統で同時記録する画像符号化装置に関する。   The present invention relates to an image encoding apparatus that compresses and encodes moving image data, and more particularly to an image encoding apparatus that simultaneously records an input image in two systems having different image sizes or formats.

近年、1920×1080画素の、いわゆるフルHD(High Definition)サイズの動画像を撮影及び記録できるデジタルビデオカムコーダが広く普及している。また、インターネットにおけるブロードバンドインフラの整備と普及に伴い、インターネットを通じて動画像を配信すること、動画像を動画共有サイトにアップロードすることが、普通に行われている。   In recent years, digital video camcorders that can shoot and record a moving image of a so-called full HD (High Definition) size of 1920 × 1080 pixels have become widespread. Also, with the development and spread of broadband infrastructure on the Internet, it is common to distribute moving images over the Internet and upload moving images to video sharing sites.

通常、保存しておきたい動画像は高画質で残しておきたいので、フルHDサイズ、かつ高ビットレートで記録することが多い。しかし、インターネット上の動画共有サイトにアップロードする場合などには、フルHDサイズかつ高ビットレートではファイルサイズが大きすぎて扱いづらい。このような場合、ファイルサイズを小さくするため、パーソナルコンピュータ等を使い、記録画像を再生し、画像サイズを小さくし、低ビットレートで再符号化を行うことがある。   Usually, since a moving image to be stored is desired to be kept with high image quality, it is often recorded at a full HD size and a high bit rate. However, when uploading to a video sharing site on the Internet, the file size is too large and difficult to handle at full HD size and high bit rate. In such a case, in order to reduce the file size, a recorded image may be reproduced using a personal computer or the like, the image size may be reduced, and re-encoding may be performed at a low bit rate.

このように2系統の異なる符号化処理を行いたい場合、記録画像を再符号化する手間がかかる。また、最初の符号化による劣化を含んだ画像を再符号化することで、劣化が助長される。   Thus, when it is desired to perform two different encoding processes, it takes time to re-encode the recorded image. Further, re-encoding an image including deterioration due to the first encoding promotes deterioration.

他方、撮影画像を高画質と低画質の2系統で同時に符号化・記録することが提案されている(特許文献1,2)。これにより、再符号化の手間を省くことができ、再符号化による画質劣化も生じない。   On the other hand, it has been proposed to encode and record a captured image simultaneously in two systems of high image quality and low image quality (Patent Documents 1 and 2). Thereby, the trouble of re-encoding can be saved and image quality deterioration due to re-encoding does not occur.

特開2004−343576号公報JP 2004-343576 A 特開2006−33393号公報JP 2006-33393 A

2系統の符号化処理を同時に行う場合、1系統の符号化処理しか行わない場合に比べてデータバス上を流れるデータ量が大幅に増加する。そのため、各符号化器が十分な処理性能を持っている場合でも、バスボトルネックにより、符号化処理が所定の処理サイクル数で終了しないケースが起こりうる。このような場合、符号化が終了しなかったフレームはコマ落ちしてしまい、正しい画像を符号化処理することができない。   When two systems of encoding processing are performed simultaneously, the amount of data flowing on the data bus is greatly increased compared to when only one system of encoding processing is performed. Therefore, even when each encoder has sufficient processing performance, there may occur a case where the encoding process does not end with a predetermined number of processing cycles due to a bus bottleneck. In such a case, frames that have not been encoded are dropped, and a correct image cannot be encoded.

本発明は、少ない負荷で画質の異なる2つの動画記録を実現する画像符号化装置を提示することを目的とする。   An object of the present invention is to present an image encoding device that realizes two moving image recordings having different image quality with a small load.

本発明に係る画像符号化装置は、入力画像を第1の画像サイズの動画像として符号化する第1の符号化手段と、前記入力画像を前記第1の画像サイズよりも小さい第2の画像サイズの動画像として符号化する第2の符号化手段と、前記第1の符号化手段により符号化された動画像を記録媒体に記録する記録手段とを具備し、前記第2の符号化手段は、前記第1の符号化手段と同時動作をするときには、前記入力画像を構成する一部の画像を符号化し、前記同時動作の終了後に、前記入力画像を構成する前記一部の画像以外の画像に対して、前記記録媒体に記録される前記第1の符号化手段により符号化された画像を前記第1の符号化手段で復号化したものを符号化することを特徴とする。   An image encoding apparatus according to the present invention includes a first encoding unit that encodes an input image as a moving image having a first image size, and a second image that is smaller than the first image size. Second encoding means for encoding as a moving image of a size, and recording means for recording the moving image encoded by the first encoding means on a recording medium, wherein the second encoding means When the simultaneous operation with the first encoding means is performed, a part of the image constituting the input image is encoded, and after the completion of the simultaneous operation, other than the part of the image constituting the input image. The image is encoded by decoding the image encoded by the first encoding unit recorded on the recording medium by the first encoding unit.

本発明によれば、2系統の異なる符号化処理を同時に行う場合に第2の符号化手段の符号化対象画像を制限することで、データバス上に流れるデータ量を削減できる。バスボトルネックを低減することにより、コマ落ちをすることなく正常に符号化処理を行うことが可能となる。   According to the present invention, it is possible to reduce the amount of data flowing on the data bus by limiting the encoding target images of the second encoding unit when two different encoding processes are performed simultaneously. By reducing the bus bottleneck, the encoding process can be normally performed without dropping frames.

本発明の一実施例の概略構成ブロック図である。It is a schematic block diagram of one Example of this invention. 2つの符号化部による各ピクチャの符号化シーケンス例を示す模式図である。It is a schematic diagram which shows the example of an encoding sequence of each picture by two encoding parts. 本実施例の符号化処理の動作フローチャートである。It is an operation | movement flowchart of the encoding process of a present Example. 2つの符号化部による各ピクチャの別の符号化シーケンス例を示す模式図である。It is a schematic diagram which shows another example of an encoding sequence of each picture by two encoding parts. 本発明の別の実施例の概略構成ブロック図である。It is a schematic block diagram of another embodiment of the present invention. 図5に示す実施例の符号化制御の動作フローチャートである。6 is an operation flowchart of encoding control of the embodiment shown in FIG. 5. 図5に示す実施例における各ピクチャの符号化シーケンス例の模式図である。It is a schematic diagram of the example of an encoding sequence of each picture in the embodiment shown in FIG.

以下、図面を参照して、本発明の実施例を詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

図1は、本発明に係る画像符号化装置の一実施例の概略構成ブロック図を示す。本実施例では、2系統の符号化処理として、フルHDサイズのH.264符号化方式とSDサイズのMPEG−2符号化方式を採用するが、符号化方式および画像サイズはこの説明例に限ったものではない。すなわち、符号化方式および画像サイズは、後に説明する条件を満たす限り、どのようなものでもよい。   FIG. 1 shows a schematic block diagram of an embodiment of an image encoding apparatus according to the present invention. In the present embodiment, full HD size H.264 is used as the two encoding processes. The H.264 encoding method and the SD size MPEG-2 encoding method are employed, but the encoding method and the image size are not limited to this example. That is, any encoding scheme and image size may be used as long as the conditions described later are satisfied.

第1の符号化器101は、フルHDサイズ(第1の画像サイズ)の画像をH.264符号化方式で符号化処理および復号処理を行うことのできる符号化器である。第2の符号化器102はSD(Standard Definition:720×480画素)サイズ(第2の画像サイズ)の画像をMPEG−2符号化方式で符号化処理および復号処理を行うことのできる符号化器である。また、第2の符号化器102は、フルHDサイズ(第1の画像サイズ)からSDサイズ(第2の画像サイズ)への縮小機能を持つ。   The first encoder 101 converts a full HD size (first image size) image into an H.264 format. This is an encoder capable of performing an encoding process and a decoding process using the H.264 encoding method. The second encoder 102 can encode and decode an SD (Standard Definition: 720 × 480 pixels) size (second image size) image using the MPEG-2 encoding method. It is. Further, the second encoder 102 has a function of reducing the full HD size (first image size) to the SD size (second image size).

カメラ信号処理103は入力画像データにフィルタ処理などの画像処理を行い、データバス107およびメモリインターフェイス105を通じてDRAM104に画像データを格納する。DRAM104に格納された画像データが符号化対象画像データとなる。以降、この符号化対象画像を原画像と記す。制御用CPU106は、画像符号化装置の全体処理の制御を行う。   The camera signal processing 103 performs image processing such as filter processing on the input image data, and stores the image data in the DRAM 104 through the data bus 107 and the memory interface 105. The image data stored in the DRAM 104 is the encoding target image data. Hereinafter, this encoding target image is referred to as an original image. The control CPU 106 controls the overall processing of the image encoding device.

符号化器101,102は、DRAM104に格納されている原画像データをメモリインターフェイス105及びデータバス107を介して読み出し、それぞれ符号化処理を行う。符号化器101,102は、それぞれ単独で動作させた場合には所定の時間内に処理を行う能力があるとする。例えば、30フレーム/秒の画像の場合、1フレーム当たり33ms以内で処理を終えることができる。   The encoders 101 and 102 read the original image data stored in the DRAM 104 via the memory interface 105 and the data bus 107, and perform encoding processing respectively. It is assumed that the encoders 101 and 102 are capable of performing processing within a predetermined time when operated independently. For example, in the case of an image of 30 frames / second, the processing can be completed within 33 ms per frame.

符号化器101,102により符号化された動画像データは、記録媒体108に記録される。記録媒体108は、ハードディスク又は不揮発性半導体メモリ等からなる記録媒体と当該記録媒体のインタフェース(記録部)とを有する。   The moving image data encoded by the encoders 101 and 102 is recorded on the recording medium 108. The recording medium 108 includes a recording medium including a hard disk or a nonvolatile semiconductor memory and an interface (recording unit) of the recording medium.

2系統の同時記録を行う場合、符号化器101,102の両方を同時に動作させる必要がある。符号化器101,102には十分な処理性能があるが、画像データは共通のデータバス107を通じて読み出すことになるので、バスの競合が起きる。すなわち、符号化器101が画像データをDRAM104から読み出しているとき、符号化器102はDRAM1−4の画像データにアクセスできない。逆も同様である。このバス競合により、画像データの読み出し動作が遅くなり、所定の処理サイクル数で符号化処理が終了しないケースが発生しうる。   When performing simultaneous recording of two systems, it is necessary to operate both the encoders 101 and 102 simultaneously. The encoders 101 and 102 have sufficient processing performance, but image data is read through the common data bus 107, and bus contention occurs. That is, when the encoder 101 reads image data from the DRAM 104, the encoder 102 cannot access the image data in the DRAM 1-4. The reverse is also true. Due to this bus contention, the image data read operation is delayed, and there may occur a case where the encoding process does not end in a predetermined number of processing cycles.

本実施例では、このような問題を、以下に説明するようにデータバス107を介したデータアクセス量を減らすことで、解決する。   In this embodiment, such a problem is solved by reducing the data access amount via the data bus 107 as described below.

H.264符号化方式とMPEG−2符号化方式には、Iピクチャ(Intraピクチャ)と、Pピクチャ(Predictiveピクチャ)と、Bピクチャ(Bidirectional Predictiveピクチャ)の3種類のピクチャタイプがある。Iピクチャは、画面内の情報だけで符号化を行う画面内符号化のピクチャである。Pピクチャは、前方予測により符号化を行うピクチャである。Bピクチャは、前方予測と後方予測の双方向予測により符号化を行うピクチャである。通常、IピクチャとPピクチャは、それより後に符号化されるピクチャの参照画像となるが、Bピクチャは、何れの参照画像にもならない。   H. In the H.264 encoding method and the MPEG-2 encoding method, there are three types of picture types: an I picture (Intra picture), a P picture (Predictive picture), and a B picture (Bidirectional Predictive picture). The I picture is a picture of intra-picture coding that performs coding only with information in the picture. A P picture is a picture that is encoded by forward prediction. A B picture is a picture that is encoded by bidirectional prediction of forward prediction and backward prediction. Normally, an I picture and a P picture are reference pictures for pictures that are encoded later, but a B picture is not a reference picture.

2系統の同時記録を行う際、符号化器101は全ての原画像の符号化を行うが、符号化器102はIピクチャとPピクチャのみを原画像から符号化を行う。即ち、符号化器102は、Bピクチャの原画像からの符号化を行わない。なお、符号化器102でのBピクチャに該当する画像の符号化は、同時記録の符号化動作が終了した後に符号化器101で符号化した符号化ストリームを復号処理し、その復号画像を入力画像として再符号化することにより実現する。このような処理により、同時記録時におけるデータバス107を介したデータアクセス量を削減できる。Bピクチャは、参照画像にならないので、原画像から符号化しなくても、他のピクチャの画質に影響しない。   When performing simultaneous recording of two systems, the encoder 101 encodes all original images, while the encoder 102 encodes only I pictures and P pictures from the original images. That is, the encoder 102 does not perform encoding from an original image of a B picture. Note that the encoding of the image corresponding to the B picture in the encoder 102 is performed by decoding the encoded stream encoded by the encoder 101 after the simultaneous recording encoding operation is completed, and inputting the decoded image. This is realized by re-encoding as an image. Such processing can reduce the amount of data access via the data bus 107 during simultaneous recording. Since the B picture does not become a reference image, it does not affect the image quality of other pictures even if it is not encoded from the original image.

一般に、参照画像が劣化すると、その後段で符号化される画像に劣化が伝播するので、画質劣化の影響が大きくなる。全ての画像を再符号化する場合に比べて、参照画像となりうるIピクチャとPピクチャを元の原画像を用いて符号化を行うので、IピクチャとPピクチャには、再符号化による画質劣化がない。本実施例では、再符号化はBピクチャのみとなるので、SD画像に対して画質劣化を最小限に抑えた良好な符号化画像データを得ることができる。   In general, when the reference image is degraded, the degradation is propagated to an image encoded in the subsequent stage, and thus the influence of the image quality degradation is increased. Compared to the case where all the images are re-encoded, the I picture and the P picture that can be the reference images are encoded using the original original image. There is no. In this embodiment, since only re-encoding is performed for B pictures, it is possible to obtain good encoded image data with minimal image quality degradation with respect to SD images.

そもそも、Bピクチャでは双方向予測を行うため、Iピクチャ及びPピクチャと比較して、参照画像の読み込みのためのデータアクセス量が非常に多い。従って、同時記録時に符号化器102がBピクチャの符号化を行わないことで、データバス107を介したデータアクセス量を大幅に削減できる。   In the first place, since B pictures are bi-directionally predicted, the amount of data access for reading a reference picture is very large compared to I pictures and P pictures. Therefore, the amount of data access via the data bus 107 can be greatly reduced by the encoder 102 not encoding the B picture during simultaneous recording.

図2は、本実施例の符号化シーケンス例を示す。符号化順に並ぶ原画像201〜206に対し、符号化器101,102は、IBBPBB…構成のGOP(Group Of Picture)でIピクチャ、Bピクチャ及びPピクチャを生成する。すなわち、符号化器101は、原画像201〜206から、Iピクチャ211、Bピクチャ212,213、Pピクチャ214及びBピクチャ215,216の符号化ストリームを作成する。他方、符号化器102は、同時記録時には、原画像201からIピクチャ221を、原画像204からPピクチャ224を生成する。符号化器101,102により符号化された動画像データは、記録媒体108に記録される。   FIG. 2 shows an example of an encoding sequence of the present embodiment. For the original images 201 to 206 arranged in the encoding order, the encoders 101 and 102 generate an I picture, a B picture, and a P picture by a GOP (Group Of Picture) having an IBBPBB. That is, the encoder 101 creates an encoded stream of I picture 211, B pictures 212 and 213, P picture 214, and B pictures 215 and 216 from the original images 201-206. On the other hand, the encoder 102 generates an I picture 221 from the original image 201 and a P picture 224 from the original image 204 at the time of simultaneous recording. The moving image data encoded by the encoders 101 and 102 is recorded on the recording medium 108.

同時記録の終了後に、符号化器101がBピクチャ212,213,215,216を復号化し、符号化器102が再符号化によりBピクチャ222,223,225,226を生成する。これにより、SD画質の符号化ストリームが生成される。ここで生成されるBピクチャ222,223,225,226の符号化画像データは、記録媒体108に先に記録された符号化画像データからなる符号化ストリームにマージされる。   After the simultaneous recording is completed, the encoder 101 decodes the B pictures 212, 213, 215, and 216, and the encoder 102 generates B pictures 222, 223, 225, and 226 by re-encoding. As a result, an encoded stream of SD image quality is generated. The encoded image data of the B pictures 222, 223, 225, and 226 generated here is merged into an encoded stream including the encoded image data recorded on the recording medium 108.

図3は、本実施例の符号化処理の動作フローチャートを示す。2系統の同時記録処理として、符号化器101が原画像201〜206を符号化し、符号化器102が原画像201,204を符号化する(S31)。符号化されたストリームはDRAM104に格納される。   FIG. 3 shows an operation flowchart of the encoding process of the present embodiment. As two simultaneous recording processes, the encoder 101 encodes the original images 201 to 206, and the encoder 102 encodes the original images 201 and 204 (S31). The encoded stream is stored in the DRAM 104.

同時記録の終了後、符号化器102は、不足するBピクチャの参照画像となるIピクチャ221の符号化画像データを記録媒体108から読み出し、復号化する(S32)。符号化器101は、符号化器102の入力画像となるBピクチャ212,213を記録媒体108から読み出し、復号化する(S33)。符号化器102は、符号化器101で復号されたBピクチャ212,213の画像を入力画像としてBピクチャ222,223を符号化する(S34)。必要なBピクチャの符号化器101による復号化及び符号化器102による符号化が完了するまで(S35)、S32、S33、S34を繰り返す。   After the simultaneous recording is completed, the encoder 102 reads out the encoded image data of the I picture 221 that is the reference image of the insufficient B picture from the recording medium 108 and decodes it (S32). The encoder 101 reads out the B pictures 212 and 213, which are input images of the encoder 102, from the recording medium 108 and decodes them (S33). The encoder 102 encodes the B pictures 222 and 223 using the images of the B pictures 212 and 213 decoded by the encoder 101 as input images (S34). S32, S33, and S34 are repeated until necessary B picture decoding by the encoder 101 and encoding by the encoder 102 are completed (S35).

以上の処理により、符号化器102による全画像の符号化ストリームが完成する。   Through the above processing, an encoded stream of all images by the encoder 102 is completed.

本実施例では、符号化器102は、符号化器101と同時動作又は同時符号化をするときには、入力画像を構成する一部の画像のみを符号化する。そして、同時動作又は同時符号化の終了後に、符号化器102は、入力画像の前記一部の画像以外の画像、即ち未だ符号化していない画像に対して、符号化器101による符号化画像を再符号化する。   In the present embodiment, the encoder 102 encodes only a part of the images constituting the input image when performing simultaneous operation or simultaneous encoding with the encoder 101. Then, after the end of the simultaneous operation or the simultaneous encoding, the encoder 102 applies the encoded image by the encoder 101 to an image other than the partial image of the input image, that is, an image that has not been encoded yet. Re-encode.

このような処理により、同時記録時のデータバス107上の転送データ量を大幅に削減でき、その結果、バスボトルネックによるコマ落ちを防止できる。Bピクチャのみを再符号化するので、全画像を再符号化する場合と比較して、再符号化による画質劣化を最小限に抑えることができ、処理時間も短縮できる。   By such processing, the amount of data transferred on the data bus 107 during simultaneous recording can be greatly reduced, and as a result, frame dropping due to a bus bottleneck can be prevented. Since only the B picture is re-encoded, image quality degradation due to re-encoding can be minimized and the processing time can be shortened as compared with the case where all the images are re-encoded.

同時記録時に符号化器102がBピクチャだけではなく、Pピクチャの符号化も行わないようにしてもよい。こうすることで、同時記録時のデータバスの競合を更に緩和できる。但し、再符号化の対象となるピクチャが増えることで、相対的に,実施例1よりも画質は劣化する。   At the time of simultaneous recording, the encoder 102 may not encode not only the B picture but also the P picture. In this way, data bus contention during simultaneous recording can be further alleviated. However, as the number of pictures to be re-encoded increases, the image quality is relatively deteriorated as compared with the first embodiment.

図4は、図2に対応する本実施例の符号化シーケンス例を示す。図4では、符号化順に並ぶ原画像401〜409に対し、符号化器101,102は、IBBPBB…構成のGOPでIピクチャ、Bピクチャ及びPピクチャを生成する。具体的には、符号化器101は、原画像401〜409からIピクチャ411、Bピクチャ412,413、Pピクチャ414、Bピクチャ415,416、Pピクチャ417、Bピクチャ418,219・・・の符号化ストリームを作成する。他方、符号化器102は、同時記録時には、原画像401からIピクチャ421を、原画像407からIピクチャ427を生成する。同時記録の終了後には、符号化器101がBピクチャ212,213,215,216を復号化し、符号化器102が再符号化によりBピクチャ222,223,225,226を生成する。これにより、SD画質の符号化ストリームが生成される。   FIG. 4 shows an example of an encoding sequence of the present embodiment corresponding to FIG. 4, for the original images 401 to 409 arranged in the encoding order, the encoders 101 and 102 generate an I picture, a B picture, and a P picture with a GOP having a configuration of IBBPBB. Specifically, the encoder 101 generates I picture 411, B pictures 412, 413, P picture 414, B pictures 415, 416, P picture 417, B pictures 418, 219,. Create an encoded stream. On the other hand, the encoder 102 generates an I picture 421 from the original image 401 and an I picture 427 from the original image 407 during simultaneous recording. After the simultaneous recording is completed, the encoder 101 decodes the B pictures 212, 213, 215, and 216, and the encoder 102 generates B pictures 222, 223, 225, and 226 by re-encoding. As a result, an encoded stream of SD image quality is generated.

実施例1の場合と比較し、同時記録時に符号化器102はBピクチャだけでなく、Pピクチャの符号化も行わないので、データバス107を介したデータアクセス量をさらに削減できる。   Compared to the case of the first embodiment, the encoder 102 does not encode not only the B picture but also the P picture at the time of simultaneous recording, so that the data access amount via the data bus 107 can be further reduced.

図5は、本発明の第3実施例の概略構成ブロック図を示す。図1と同じ構成要素には同じ符号を付してある。図1との相違部分を主に説明する。   FIG. 5 shows a schematic block diagram of a third embodiment of the present invention. The same components as those in FIG. 1 are denoted by the same reference numerals. Differences from FIG. 1 will be mainly described.

符号化制御部501が、符号化器101a及び第2の符号化器102aのピクチャごとの処理サイクル数に従い、それぞれの符号化方式を変更する。具体的に説明すると、符号化制御部501は、同時記録時に、符号化器101aの処理サイクル数(以降、「第1の処理サイクル数」と記す)との符号化器102aの処理サイクル数(以降、「第2の処理サイクル数」と記す)を受け取る。符号化制御部501は、これらの処理サイクル数を用いて、2種類の符号化方式を制御する。一つは、同時記録時に符号化器101a,102aが共に、通常どおりに全ての原画像を符号化する方式である。これを、通常符号化処理モードと記す。もう一つは、同時記録時に符号化器101aは全ての原画像の符号化処理を行うが、符号化器102aはIピクチャとPピクチャのみ、原画像の符号化処理を行い、Bピクチャの符号化処理を行わない方式である。これを、特殊符号化処理モードと記す。特殊符号化処理モードは実施例1として説明した符号化方式である。特殊符号化処理モードでは、符号化器102aはBピクチャの符号化処理を行わないので、通常符号化処理モードと比較し、平均の処理サイクル数を少なくすることができる。   The encoding control unit 501 changes each encoding method according to the number of processing cycles for each picture of the encoder 101a and the second encoder 102a. More specifically, the encoding control unit 501 indicates the number of processing cycles of the encoder 102a (hereinafter referred to as “first processing cycle number”) at the time of simultaneous recording. Hereinafter, it is referred to as “second processing cycle number”). The encoding control unit 501 controls two types of encoding methods using these processing cycle numbers. One is a method in which both the encoders 101a and 102a encode all original images as usual during simultaneous recording. This is referred to as a normal encoding processing mode. The other is that the encoder 101a performs encoding processing of all original images at the time of simultaneous recording, while the encoder 102a performs encoding processing of the original images only for I pictures and P pictures, and the encoding of B pictures. This is a method that does not perform the conversion process. This is referred to as a special encoding processing mode. The special encoding processing mode is the encoding method described as the first embodiment. In the special encoding processing mode, the encoder 102a does not perform the B picture encoding processing, and therefore, the average number of processing cycles can be reduced as compared with the normal encoding processing mode.

図6は、符号化制御部501による符号化モード制御の動作フローチャートを示す。符号化制御部501は、フレームごとに符号化器101aから第1の処理サイクル数を、符号化器102aから第2の処理サイクル数を受け取る(S61)。符号化制御部501は、第1の処理サイクル数と第2の処理サイクル数の内の多い方を選択し、現在のフレームの処理サイクル数とする(S62)。符号化制御部501は、現在のフレームの処理サイクル数、およびそれ以前のフレーム単位の平均処理サイクル数から、現在のフレーム単位の平均処理サイクル数Cavgを算出する(S63)。   FIG. 6 shows an operation flowchart of encoding mode control by the encoding control unit 501. The encoding control unit 501 receives the first processing cycle number from the encoder 101a and the second processing cycle number from the encoder 102a for each frame (S61). The encoding control unit 501 selects the larger one of the first processing cycle number and the second processing cycle number and sets it as the processing number of the current frame (S62). The encoding control unit 501 calculates the average processing cycle number Cavg in the current frame unit from the processing cycle number in the current frame and the average processing cycle number in the previous frame unit (S63).

現在のモードが通常符号化処理モードか特殊符号化処理モードかによって処理が分岐する(S64)。現在のモードが通常符号化処理モードの場合(S64)、符号化制御部501は、平均処理サイクル数Cavgを所定サイクル数αと比較する(S65)。平均処理サイクル数Cavgが所定サイクル数αよりも小さい場合(S65)、符号化制御部501は、通常符号化処理モードを継続する(S66)。平均処理サイクル数Cavgが所定サイクル数α以上の場合(S65)、符号化制御部501は、特殊符号化モードに変更する(S67)。   Processing branches depending on whether the current mode is the normal encoding processing mode or the special encoding processing mode (S64). When the current mode is the normal encoding processing mode (S64), the encoding control unit 501 compares the average processing cycle number Cavg with the predetermined cycle number α (S65). When the average processing cycle number Cavg is smaller than the predetermined cycle number α (S65), the encoding control unit 501 continues the normal encoding processing mode (S66). When the average processing cycle number Cavg is equal to or greater than the predetermined cycle number α (S65), the encoding control unit 501 changes to the special encoding mode (S67).

現在のモードが特殊符号化処理モードの場合(S64)、符号化制御部501は、平均処理サイクル数Cavgを所定サイクル数βと比較する(S68)。平均処理サイクル数Cavgが所定サイクル数βよりも大きい場合(S68)、符号化制御部501は、特殊符号化処理モードを継続する(S69)。平均処理サイクル数Cavgが所定サイクル数β以下の場合(S68)、符号化制御部501は、通常符号化処理モードに変更する(S70)。ここで、βはαより小さい。   When the current mode is the special encoding processing mode (S64), the encoding control unit 501 compares the average processing cycle number Cavg with the predetermined cycle number β (S68). When the average processing cycle number Cavg is larger than the predetermined cycle number β (S68), the encoding control unit 501 continues the special encoding processing mode (S69). When the average processing cycle number Cavg is equal to or less than the predetermined cycle number β (S68), the encoding control unit 501 changes to the normal encoding processing mode (S70). Here, β is smaller than α.

全画像の符号化が終了するまで、S61以降を繰り返す(S71)。全画像の符号化が終了すると(S71)、特殊符号化処理モード時に符号化器102aが符号化を行わなかった画像について、符号化器101aによる復号化と符号化器102aによる再符号化を実行する(S72)。これにより、符号化器102aによる全画像の符号化が完成する。   S61 and subsequent steps are repeated until encoding of all images is completed (S71). When the encoding of all the images is completed (S71), decoding by the encoder 101a and re-encoding by the encoder 102a are performed on the image that has not been encoded by the encoder 102a in the special encoding processing mode. (S72). Thereby, encoding of all the images by the encoder 102a is completed.

図6に示すフローでは、平均処理サイクル数がαを超えると特殊符号化処理モードになるので、その後の平均処理サイクル数は小さくなっていく。十分に平均処理サイクル数が小さくなった場合、即ち、平均処理サイクル数がβよりも小さくなった場合に、通常符号化処理モードに復帰する。α、βを適切に設定することで、平均処理サイクル数を所望サイクル数以下に収めることができる。また、必要な部分しか再符号化処理を行わないので、全てのBピクチャを再符号化する場合と比較し、良好な画像を得ることができる。   In the flow shown in FIG. 6, since the special encoding processing mode is entered when the average processing cycle number exceeds α, the subsequent average processing cycle number becomes smaller. When the average processing cycle number is sufficiently small, that is, when the average processing cycle number is smaller than β, the normal encoding processing mode is restored. By appropriately setting α and β, the average number of processing cycles can be kept below the desired number of cycles. In addition, since only the necessary part is re-encoded, a better image can be obtained as compared with the case where all the B pictures are re-encoded.

符号化制御部501は結局、平均処理サイクル数に従い、符号化器102aが同時符号化の終了後に符号化すべき画像の符号化の有無又は範囲を制御する。   After all, the encoding control unit 501 controls the presence / absence or range of an image to be encoded by the encoder 102a after the end of the simultaneous encoding according to the average number of processing cycles.

図1に示す構成において、2系統の同時記録時に符号化器101の符号化におけるGOP構成と、符号化器102の符号化におけるGOP構成を異ならせることで、データバス107のデータ転送量を削減できる。   In the configuration shown in FIG. 1, the data transfer amount of the data bus 107 is reduced by making the GOP configuration in the encoding of the encoder 101 different from the GOP configuration in the encoding of the encoder 102 during simultaneous recording of two systems. it can.

実施例1との相違部分を詳細に説明する。図7は、符号化器101,102のそれぞれのGOP構成例を示す。図7に示す例では、符号化器101の符号化におけるGOP構成はBIBPBP・・・であり、符号化器102の符号化におけるGOP構成はIBPBPB・・・となっている。符号化器102がBピクチャとして符号化を行うべき画像として、原画像の代わりに、同時記録終了後に符号化器101の復号画像を用いる。原画像の代替とする画像は、劣化の少ないものであるのが好ましく、この点で、IピクチャとPピクチャが原画像の代替として好ましい。   Differences from the first embodiment will be described in detail. FIG. 7 shows a GOP configuration example of each of the encoders 101 and 102. In the example shown in FIG. 7, the GOP configuration in the encoding of the encoder 101 is BIBPBP..., And the GOP configuration in the encoding of the encoder 102 is IBPBPB. As an image to be encoded by the encoder 102 as a B picture, a decoded image of the encoder 101 is used after the simultaneous recording, instead of the original image. An image to be substituted for the original image is preferably one with little deterioration, and in this respect, an I picture and a P picture are preferred as substitutes for the original image.

換言すると、本実施例では、符号化器102のBピクチャに対して符号化器101のIピクチャ又はPピクチャが対応するように、両者のGOP構成を異ならせる。これにより、符号化器102のBピクチャに対し、符号化器101のIピクチャ又はPピクチャからの再符号化が可能となり、再符号化による画質劣化を低減できる。   In other words, in this embodiment, the GOP configurations of the two are made different so that the I picture or P picture of the encoder 101 corresponds to the B picture of the encoder 102. As a result, the B picture of the encoder 102 can be re-encoded from the I picture or P picture of the encoder 101, and image quality degradation due to re-encoding can be reduced.

Claims (5)

入力画像を第1の画像サイズの動画像として符号化する第1の符号化手段と、
前記入力画像を前記第1の画像サイズよりも小さい第2の画像サイズの動画像として符号化する第2の符号化手段と、
前記第1の符号化手段により符号化された動画像を記録媒体に記録する記録手段
とを具備し、
前記第2の符号化手段は、前記第1の符号化手段と同時動作をするときには、前記入力画像を構成する一部の画像を符号化し、前記同時動作の終了後に、前記入力画像を構成する前記一部の画像以外の画像に対して、前記記録媒体に記録される前記第1の符号化手段により符号化された画像を前記第1の符号化手段で復号化したものを符号化する
ことを特徴とする画像符号化装置。
First encoding means for encoding an input image as a moving image of a first image size;
Second encoding means for encoding the input image as a moving image having a second image size smaller than the first image size;
Recording means for recording the moving image encoded by the first encoding means on a recording medium,
When the second encoding means operates simultaneously with the first encoding means, it encodes a part of the image constituting the input image, and configures the input image after the simultaneous operation ends. Encoding an image other than the partial image, which is obtained by decoding the image encoded by the first encoding unit recorded on the recording medium by the first encoding unit. An image encoding device characterized by the above.
前記入力画像を構成する前記一部の画像は、前記第2の符号化手段が画面内符号化する画像であることを特徴とする請求項1に記載の画像符号化装置。   The image coding apparatus according to claim 1, wherein the partial image constituting the input image is an image that is encoded by the second encoding unit. 更に、前記第1の符号化手段及び前記第2の符号化手段からそれぞれの処理サイクル数の情報を受け取り、前記第2の符号化手段による前記一部の画像の符号化の有無を制御する符号化制御手段を具備することを特徴とする請求項1又は2に記載の画像符号化装置。   Further, a code that receives information on the number of processing cycles from each of the first encoding unit and the second encoding unit, and controls whether or not the partial image is encoded by the second encoding unit. The image coding apparatus according to claim 1, further comprising: a coding control unit. 前記一部の画像が、前記第2の符号化手段が他の画像を符号化する際に参照画像となる画像であることを特徴とする請求項1ないし3の何れか1項に記載の画像符号化装置。   4. The image according to claim 1, wherein the partial image is an image that becomes a reference image when the second encoding unit encodes another image. 5. Encoding device. 前記第1の符号化手段の符号化シーケンスを表すGOP構成と前記第2の符号化手段の符号化シーケンスを表すGOP構成とが異なり、前記第2の符号化手段による符号化で参照画像とならない画像が、前記第1の符号化手段による符号化で参照画像となりうる画像と対応することを特徴とする請求項1乃至4の何れか1項に記載の画像符号化装置。   The GOP configuration representing the coding sequence of the first coding means is different from the GOP configuration representing the coding sequence of the second coding means, and does not become a reference image by the coding by the second coding means. 5. The image encoding device according to claim 1, wherein an image corresponds to an image that can be a reference image by encoding by the first encoding unit. 6.
JP2011276617A 2011-12-19 2011-12-19 Image encoder Pending JP2013128188A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011276617A JP2013128188A (en) 2011-12-19 2011-12-19 Image encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011276617A JP2013128188A (en) 2011-12-19 2011-12-19 Image encoder

Publications (1)

Publication Number Publication Date
JP2013128188A true JP2013128188A (en) 2013-06-27

Family

ID=48778483

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011276617A Pending JP2013128188A (en) 2011-12-19 2011-12-19 Image encoder

Country Status (1)

Country Link
JP (1) JP2013128188A (en)

Similar Documents

Publication Publication Date Title
US8817873B2 (en) Image coding/recording apparatus and image coding/recording method
TWI390988B (en) Information processing apparatus and information processing method
US8675979B2 (en) Transcoder, method of transcoding, and digital recorder
JP5011017B2 (en) Image decoding device
KR20040094441A (en) Editing of encoded a/v sequences
US20050238100A1 (en) Video encoding method for encoding P frame and B frame using I frames
JP4262139B2 (en) Signal processing device
JP4174728B2 (en) Information processing apparatus, information processing method, recording medium, and program
US11025932B2 (en) Methods and systems for facilitating multimedia data encoding using storage buffers
CN117596392B (en) Coding information determining method of coding block and related product
JP2013128188A (en) Image encoder
WO2006040896A1 (en) Moving picture re-encoder, moving picture editor, program, and recording medium
JP7565733B2 (en) STREAM TRANSMISSION DEVICE, STREAM GENERATION DEVICE, AND PROGRAM
JP4786602B2 (en) Information processing apparatus and program
JP5057872B2 (en) Information processing apparatus and program
JP5355234B2 (en) Encoding apparatus and encoding method
JP2014075688A (en) Image processor and image processing method
JP3897783B2 (en) Image processing apparatus, control method therefor, computer program, and computer-readable storage medium
US11611749B2 (en) Encoding apparatus, image capturing apparatus, control method, and storage medium
JP4614895B2 (en) Transcoder and transcoding method
JP2009010586A (en) Transcoder and transcoding method
JP4979355B2 (en) Image coding apparatus and image coding method
JP2007228096A (en) Digital moving picture recording apparatus and digital moving picture recording method
JP2005159832A (en) Signal processing device
KR100730689B1 (en) Video data encoder and its control method