JP2009111712A - Video encoding device and method - Google Patents

Video encoding device and method Download PDF

Info

Publication number
JP2009111712A
JP2009111712A JP2007281834A JP2007281834A JP2009111712A JP 2009111712 A JP2009111712 A JP 2009111712A JP 2007281834 A JP2007281834 A JP 2007281834A JP 2007281834 A JP2007281834 A JP 2007281834A JP 2009111712 A JP2009111712 A JP 2009111712A
Authority
JP
Japan
Prior art keywords
encoding
slice
picture
unit
video
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
JP2007281834A
Other languages
Japanese (ja)
Other versions
JP2009111712A5 (en
JP4926912B2 (en
Inventor
Shingo Nozawa
慎吾 野澤
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 JP2007281834A priority Critical patent/JP4926912B2/en
Publication of JP2009111712A publication Critical patent/JP2009111712A/en
Publication of JP2009111712A5 publication Critical patent/JP2009111712A5/ja
Application granted granted Critical
Publication of JP4926912B2 publication Critical patent/JP4926912B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a video encoding device and method for improving the quality of video by reducing a decrease in encoding efficiency while performing effective slice division for decentralization of encoding and decoding processes. <P>SOLUTION: The video encoding device has a block encoding decision unit which decides kinds of encoding of blocks to be encoded included in input video data, a slice division unit which divides a picture included in the input video data into slices comprising one or more blocks to be encoded, and a block encoding unit which encodes the input video data by the blocks to be encoded, and the slice division unit changes the number of slices constituting the picture in accordance with the distribution of encoding kinds of the blocks to be encoded. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、映像データを圧縮符号化する映像符号化装置及び方法に関する。   The present invention relates to a video encoding apparatus and method for compressing and encoding video data.

近年、デジタル信号処理技術の進歩により、動画像や静止画像、音声等、大量のデジタル情報を高能率符号化し、小型の記録媒体への記録や通信媒体による伝送を行うことが可能になっている。このような技術を応用し、テレビ放送やビデオカメラの映像をストリームに変換できる映像符号化装置の開発が行われている。   In recent years, with the advancement of digital signal processing technology, it has become possible to efficiently encode a large amount of digital information such as moving images, still images, and voices, and to perform recording on a small recording medium or transmission via a communication medium. . By applying such technology, video encoding devices capable of converting TV broadcast and video camera images into streams have been developed.

映像情報を蓄積又は伝送するための高能率な圧縮符号化方式として、MPEG(Moving Picture Experts Group)−2及びMPEG−4が知られている。さらに、MPEG−4 Part−10:AVCが規格化されている。MPEG4 Part−10:AVC(ISO/IEC 14496−10)は、H.264とも呼ばれている。これらの圧縮方式は、動画像中の相関性を利用した圧縮方法であり、少ない劣化で高い圧縮率を実現している。   MPEG (Moving Picture Experts Group) -2 and MPEG-4 are known as high-efficiency compression encoding systems for storing or transmitting video information. Furthermore, MPEG-4 Part-10: AVC is standardized. MPEG4 Part-10: AVC (ISO / IEC 14496-10) is an H.264 standard. It is also called H.264. These compression methods are compression methods using correlation in moving images, and realize a high compression rate with little deterioration.

H.264方式では、入力される映像情報に含まれる画像一枚一枚(フレーム又はフィールド)を、ピクチャという処理単位として扱い、このピクチャを1個以上のスライスという単位に分割できる。さらにスライスを1個以上のマクロブロックという単位に分割して符号化処理を行っている。1枚のピクチャを1個のスライスとして扱うこと、すなわち、ピクチャをスライス分割せずに符号化することも可能であるが、符号化処理を分散させる目的で、1枚のピクチャを2個以上のスライスに分割して符号化することは少なくない。例えば、昨今の主流であるマルチコア型のCPUを用いて符号化データを復号化する場合、ピクチャを複数のスライスに分割し、各スライスを各コアに割り当てる事で、効率的な復号化処理が可能である。   H. In the H.264 system, each image (frame or field) included in input video information is handled as a processing unit called a picture, and this picture can be divided into one or more slices. Further, the slice is divided into units of one or more macroblocks for encoding processing. Although it is possible to handle one picture as one slice, that is, to encode a picture without dividing the picture into slices, for the purpose of distributing the encoding process, one picture is divided into two or more pictures. There are many cases where encoding is performed by dividing into slices. For example, when decoding encoded data using a multi-core type CPU that is the mainstream in recent years, efficient decoding processing is possible by dividing a picture into multiple slices and assigning each slice to each core It is.

また、ピクチャをスライスに分割する技術としては、ピクチャ内の画像ブロックの画像パターンを判定することにより画像ブロックを分類して、分類結果に基づいて複数のスライスを構成する提案がなされている(例えば、特許文献1参照。)。
特開2006−114979号公報
In addition, as a technique for dividing a picture into slices, a proposal has been made to classify image blocks by determining an image pattern of image blocks in a picture and configure a plurality of slices based on the classification result (for example, , See Patent Document 1).
JP 2006-114979 A

図6はスライス分割の一例を示す図である。900はピクチャであり、901乃至904はそれぞれスライスである。図6のように、一般的なスライス分割は、ピクチャをほぼ等間隔に短冊状に分割する。各スライスは、水平方向又は垂直方向の1又は複数のマクロブロックから構成される。図6の905及び906はピクチャ900に含まれるマクロブロックの一例である。   FIG. 6 is a diagram illustrating an example of slice division. 900 is a picture, and 901 to 904 are slices. As shown in FIG. 6, in general slice division, a picture is divided into strips at substantially equal intervals. Each slice is composed of one or a plurality of macroblocks in the horizontal direction or the vertical direction. 905 and 906 in FIG. 6 are examples of macroblocks included in the picture 900.

ところで、例えばH.264方式では、スライスの境界を跨いだマクロブロック間の相関性を符号化に活かすことができないという問題がある。すなわち、図6のマクロブロック905を符号化する際に、スライス境界を跨いで上側に接するマクロブロック906との相関性を利用できない。H.264方式の符号化では、イントラ符号化において近接マクロブロックからのイントラ予測により効果的な符号化が可能であるが、図6のようにスライス分割すると左右の相関性は利用できるが上下の相関性を十分に利用できず符号化効率が低下する可能性がある。また、前述の特許文献1の方法でスライス分割した場合、上下及び左右の相関性まで十分に活用できなくなる恐れがある。このようにマクロブロック間の相関性が低下した場合、画質を維持するために、そのマクロブロックにより多くの符号量を必要としていた。   By the way, for example In the H.264 system, there is a problem in that the correlation between macroblocks straddling slice boundaries cannot be utilized for encoding. That is, when the macroblock 905 of FIG. 6 is encoded, the correlation with the macroblock 906 that touches the upper side across the slice boundary cannot be used. H. In the H.264 coding, effective coding is possible by intra prediction from adjacent macroblocks in intra coding. However, when slice division is performed as shown in FIG. May not be sufficiently utilized, and encoding efficiency may be reduced. Further, when the slice is divided by the method of Patent Document 1 described above, there is a possibility that the vertical and horizontal correlations cannot be fully utilized. When the correlation between the macroblocks is lowered in this way, a large amount of code is required for the macroblock in order to maintain the image quality.

したがって従来の方法では、スライス分割によって符号化や復号化処理の分散の効果は期待できるものの、符号化の処理効率が低下し、映像品質まで低下する可能性があった。   Therefore, in the conventional method, although the effect of distribution of encoding and decoding processing can be expected by slice division, the encoding processing efficiency may be reduced and the video quality may be reduced.

本発明はこのような課題を考慮して、符号化や復号化処理の分散のために有効なスライス分割を行いつつ、符号化効率の低下を軽減し、映像の品質を向上させられる映像符号化装置及び方法を提供することを目的とする。   In consideration of such a problem, the present invention performs video slice that reduces the decrease in coding efficiency and improves the video quality while performing effective slice division for distribution of coding and decoding processing. An object is to provide an apparatus and method.

上記目的を達成するために、本発明の映像符号化装置は、映像データの符号化を行う映像符号化装置であって、入力された映像データに含まれる符号化対象ブロックの符号化種別を判定する判定手段と、前記入力された映像データに含まれるピクチャを、1以上の前記符号化対象ブロックから構成されるスライスに分割する分割手段と、前記スライス分割手段によって分割されたスライスを符号化の単位として、前記入力された映像データを前記符号化対象ブロックごとに符号化する符号化手段とを有し、前記スライス分割手段は、前記判定手段により判定された前記符号化対象ブロックの符号化種別の分布に応じて、前記ピクチャを構成するスライスの個数を変化させることを特徴とする。   In order to achieve the above object, a video encoding device of the present invention is a video encoding device that encodes video data, and determines an encoding type of an encoding target block included in input video data. Determination means for dividing, a dividing means for dividing a picture included in the input video data into slices composed of one or more blocks to be encoded, and a slice divided by the slice dividing means are encoded. And encoding means for encoding the input video data for each of the encoding target blocks, and the slice dividing means is an encoding type of the encoding target block determined by the determination means The number of slices constituting the picture is changed in accordance with the distribution of.

また、本発明の映像符号化方法は、映像データを符号化するための映像符号化方法であって、入力された映像データに含まれる符号化対象ブロックの符号化種別を判定する判定工程と、前記入力された映像データに含まれるピクチャを、1以上の前記符号化対象ブロックから構成されるスライスに分割するスライス分割工程と、前記スライスを符号化の単位として、前記入力された映像データを前記符号化対象ブロックごとに符号化する符号化工程とを有し、前記スライス分割工程において、前記判定工程で判定された前記符号化対象ブロックの符号化種別の分布に応じて、前記ピクチャを構成するスライスの個数を変化させることを特徴とする。   The video encoding method of the present invention is a video encoding method for encoding video data, and a determination step of determining an encoding type of an encoding target block included in input video data; A slice dividing step of dividing a picture included in the input video data into slices composed of one or more encoding target blocks, and the input video data as the encoding unit. An encoding step for encoding each block to be encoded, and in the slice division step, the picture is configured according to a distribution of encoding types of the block to be encoded determined in the determination step It is characterized by changing the number of slices.

本発明によれば、符号化や復号化処理の分散のために有効なスライス分割を行うことができるとともに、符号化効率の低下を軽減し、映像の品質を向上させることができる。   According to the present invention, it is possible to perform slice division effective for distribution of encoding and decoding processes, reduce a decrease in encoding efficiency, and improve video quality.

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

図1は本実施例に係る映像符号化装置のブロック図である。図1において101は映像データ入力部、102はブロック符号化判定部、103はスライス分割部、104はブロック符号化部、105はストリーム出力部である。ストリーム出力部105からは符号化データ(ストリーム)が出力される。   FIG. 1 is a block diagram of a video encoding apparatus according to the present embodiment. In FIG. 1, 101 is a video data input unit, 102 is a block coding determination unit, 103 is a slice division unit, 104 is a block coding unit, and 105 is a stream output unit. The stream output unit 105 outputs encoded data (stream).

映像データ入力部101から入力されるピクチャデータは、ブロック符号化判定部102及びスライス分割部103に供給される。ブロック符号化判定部102は、入力されたピクチャデータを構成するブロック毎に、符号化種別を判定する。ここでいうブロックとは、複数の画素情報を含む、例えばマクロブロック等の符号化処理単位である。また、符号化種別の判定とは、例えば符号化対象のブロックが、他のピクチャとの相関を利用するインター符号化をすべきブロックか、或いはピクチャ内の隣接するブロック間の相関を利用するイントラ符号化をすべきブロックかを判定することである。さらに、符号化対象ブロックの相関の対象となる画素列や、相関の算出方法などもブロック符号化判定部102が判定する。ブロック符号化判定部102の判定結果は、スライス分割部103とブロック符号化部104に符号化のための情報として供給される。   Picture data input from the video data input unit 101 is supplied to the block encoding determination unit 102 and the slice division unit 103. The block coding determination unit 102 determines the coding type for each block constituting the input picture data. The block here is a unit of encoding processing such as a macroblock including a plurality of pieces of pixel information. In addition, the determination of the encoding type is, for example, whether the block to be encoded is a block to be inter-encoded using the correlation with other pictures or an intra-frame using the correlation between adjacent blocks in the picture. It is to determine whether the block is to be encoded. Further, the block coding determination unit 102 also determines a pixel sequence to be correlated of the encoding target block, a correlation calculation method, and the like. The determination result of the block encoding determination unit 102 is supplied to the slice dividing unit 103 and the block encoding unit 104 as information for encoding.

スライス分割部103は、映像データ入力部101から入力されるピクチャデータに関して、ブロック符号化判定部102の判定結果に基づくピクチャ内の各ブロックの符号化種別の分布から、該ピクチャをスライス分割すべきか否かを決定する。例えば、ピクチャ内の符号化対象ブロックのうち、所定の割合(例えば4割)を超えるブロックがイントラ符号化すべきと判定されたならば、スライスを跨ぐ相関を考慮して、該ピクチャをスライス分割しない(単一のスライスとする)ように設定する。反対に、例えば、イントラ符号化すべきと判定されたブロックが所定の割合以下(例えば4割以下)ならば、符号化や復号化処理の分散を考慮してスライス分割を行うように設定する。あるいは、イントラ符号化すべきと判定されたブロックが全体に占める割合に応じて、スライス分割の個数を決定しても良い。このようにイントラ符号化される符号化対象ブロックの割合に応じて、スライス分割数は変化する。なお、スライスはピクチャ内の1以上の符号化対象ブロックを含んで構成され、ピクチャ全体を単一のスライスとすることもできる。   Whether the slice division unit 103 should divide the picture into slices based on the distribution of the coding type of each block in the picture based on the determination result of the block coding determination unit 102 with respect to the picture data input from the video data input unit 101 Decide whether or not. For example, if it is determined that blocks exceeding a predetermined ratio (for example, 40%) among the encoding target blocks in the picture should be intra-encoded, the picture is not divided into slices in consideration of the cross-slice correlation. Set to be a single slice. On the other hand, for example, if the number of blocks determined to be intra-encoded is less than a predetermined ratio (for example, 40% or less), the slice division is set in consideration of the distribution of encoding and decoding processes. Alternatively, the number of slice divisions may be determined according to the ratio of blocks determined to be intra-coded to the whole. Thus, the number of slice divisions changes according to the ratio of the encoding target blocks that are intra-encoded. A slice includes one or more encoding target blocks in a picture, and the entire picture can be a single slice.

このようにして、スライス分割部103は、映像データ入力部101から供給されるピクチャデータに、ブロック符号化判定部102の判定結果に基づいたスライス分割の設定を施し、ピクチャデータをブロック符号化部104に供給する。また、スライス分割部103は、スライス分割されるブロックの位置等の情報を符号化のための情報として、前記ピクチャデータとともにブロック符号化部104に供給する。   In this manner, the slice division unit 103 performs slice division setting on the picture data supplied from the video data input unit 101 based on the determination result of the block encoding determination unit 102, and the picture data is converted into the block encoding unit. 104 is supplied. Further, the slice dividing unit 103 supplies information such as the position of the block to be divided into slices to the block encoding unit 104 together with the picture data as information for encoding.

ブロック符号化部104は、前記ブロック符号化判定部102から供給される各ブロックの符号化種別の情報(ブロック符号化判定情報)に従って、スライス分割部103から供給されるピクチャデータをブロックごとに符号化する。ブロック符号化部104は、入力されるピクチャデータがスライス分割されている場合は、設定されたスライス分割に関する情報(スライス分割設定情報)に従って、各スライスを単位とする符号化を行うことになる。さらに、ブロック符号化部104は、符号化処理の結果得られる符号化データ(ストリーム)をストリーム出力部105から出力する。   The block encoding unit 104 encodes the picture data supplied from the slice dividing unit 103 for each block according to the encoding type information (block encoding determination information) of each block supplied from the block encoding determination unit 102. Turn into. When the input picture data is divided into slices, the block encoding unit 104 performs encoding in units of each slice according to the set slice division information (slice division setting information). Further, the block encoding unit 104 outputs encoded data (stream) obtained as a result of the encoding process from the stream output unit 105.

ここで図5を用いて、ブロック符号化部104の詳細について説明する。図5は、ブロック符号化部104を詳細に表わしたブロック図である。   Here, details of the block encoding unit 104 will be described with reference to FIG. FIG. 5 is a block diagram showing the block encoding unit 104 in detail.

図5において、ブロック符号化部104は、入力される符号化対象ブロックごとに符号化処理を行う。ブロック符号化部104には、符号化対象ブロックのデータが入力されるとともに、ブロック符号化判定部102から供給されるブロック符号化判定情報及びスライス分割部103から供給されるスライス分割設定情報も入力される。   In FIG. 5, the block encoding unit 104 performs an encoding process for each input encoding target block. The block encoding unit 104 receives the data of the encoding target block, and also inputs the block encoding determination information supplied from the block encoding determining unit 102 and the slice division setting information supplied from the slice dividing unit 103 Is done.

減算器14は、予測符号化を行う場合には、入力される符号化対象ブロックデータ(画像データ)と、スイッチ38からの予測値との差分を算出し、この差分データを整数精度の離散コサイン変換(DCT)を行う整数変換部16に出力する。減算器14は、予測符号化を行わない場合には、入力される画像データをそのまま整数変換部16に出力する。   When performing the predictive coding, the subtractor 14 calculates a difference between the input block data (image data) to be encoded and the predicted value from the switch 38, and uses the difference data as an integer precision discrete cosine. It outputs to the integer conversion part 16 which performs conversion (DCT). The subtracter 14 outputs the input image data to the integer conversion unit 16 as it is when the predictive encoding is not performed.

整数変換部16は、減算器14からの画像データを整数精度で、例えば4×4画素ブロック単位で離散コサイン変換し、その結果であるDCT変換係数を量子化部18に出力する。   The integer transform unit 16 performs discrete cosine transform on the image data from the subtractor 14 with integer precision, for example, in units of 4 × 4 pixel blocks, and outputs the resulting DCT transform coefficients to the quantization unit 18.

量子化部18は、整数変換部16からのDCT変換係数に対して量子化処理を行い、得られる量子化変換係数をエントロピー符号化部40及び逆量子化部20に出力する。   The quantization unit 18 performs a quantization process on the DCT transform coefficient from the integer transform unit 16 and outputs the obtained quantized transform coefficient to the entropy coding unit 40 and the inverse quantization unit 20.

エントロピー符号化部40は、量子化部18からの量子化変換係数をエントロピー符号化する。例えばH.264符号化方式の場合、エントロピー符号化としてCABAC(Context−Based Adaptive Binary Arithmetic Coding)が使用できる。或いは、CAVLC(Context−Based Adaptive Variable Length)を使用することもできる。エントロピー符号化部40は、例えばCABAC方式によって、入力したスライス分割設定情報に基づいて、スライスを基本単位として符号化処理を行う。エントロピー符号化部40はまた、動き推定部36からの動きベクトル情報を符号化データに多重して、符号化データ(ストリーム)を出力する。なお、出力ストリーム中には、スライス分割されたブロックの位置やスライスの符号化タイプ(Iスライス、Pスライス或いはBスライス)等の情報も多重化され、復号処理で利用可能となる。   The entropy encoding unit 40 entropy encodes the quantized transform coefficient from the quantization unit 18. For example, H.C. In the case of the H.264 encoding method, CABAC (Context-Based Adaptive Binary Arithmetic Coding) can be used as entropy encoding. Alternatively, CAVLC (Context-Based Adaptive Variable Length) can also be used. The entropy encoding unit 40 performs an encoding process using a slice as a basic unit based on the input slice division setting information, for example, by the CABAC method. The entropy encoding unit 40 also multiplexes the motion vector information from the motion estimation unit 36 with the encoded data, and outputs the encoded data (stream). It should be noted that information such as the position of the slice-divided block and the coding type (I slice, P slice, or B slice) of the slice is also multiplexed in the output stream and can be used in the decoding process.

逆量子化部20は、量子化部18からの量子化変数係数をDCT変換係数に戻し、逆整数変換部22に送出する。逆整数変換部22は、逆量子化部20からのDCT変換係数に逆整数変換処理を施し、減算器14の出力データに相当するデータを復元する。   The inverse quantization unit 20 returns the quantization variable coefficient from the quantization unit 18 to the DCT transform coefficient and sends it to the inverse integer transform unit 22. The inverse integer transform unit 22 performs an inverse integer transform process on the DCT transform coefficient from the inverse quantization unit 20 to restore data corresponding to the output data of the subtractor 14.

加算器24は、予測符号化を利用していない場合には、逆整数変換部22の出力データをそのまま出力し、予測符号化を利用している場合には、逆整数変換部22の出力データにスイッチ38からの予測値を加算して出力する。加算器24の出力データが、いわゆる局所復号データである。加算器24の出力は、ピクチャ内予測によるイントラ符号化のために、フレームメモリ26に格納される。また、ピクチャ間予測によるインター符号化のために、デブロッキングフィルタ30を介して、フレームメモリ32に格納される。デブロッキングフィルタ30は、局所復号データにおけるブロックノイズを低減するために使用される。   The adder 24 outputs the output data of the inverse integer transform unit 22 as it is when the predictive encoding is not used, and the output data of the inverse integer transform unit 22 when the predictive encoding is used. The predicted value from the switch 38 is added to and output. The output data of the adder 24 is so-called local decoded data. The output of the adder 24 is stored in the frame memory 26 for intra coding by intra-picture prediction. Further, it is stored in the frame memory 32 via the deblocking filter 30 for inter coding by inter-picture prediction. The deblocking filter 30 is used to reduce block noise in the locally decoded data.

動き推定部36は、後述するインター予測に関連して、入力される符号化対象ブロックデータをフレームメモリ32に格納された局所復号データと比較して、画像内の物体の動きを推定する。フレームメモリ32に格納された局所復号データは、現ピクチャの表示タイミングよりも前又は後ろに位置するピクチャを構成するものであり、ピクチャ間の予測の参照画像として利用される。動き推定部36によって検出された動きベクトルは、インター予測部34とエントロピー符号化部40に供給される。   The motion estimation unit 36 estimates the motion of the object in the image by comparing the input encoding target block data with the locally decoded data stored in the frame memory 32 in relation to the inter prediction described later. The locally decoded data stored in the frame memory 32 constitutes a picture located before or after the display timing of the current picture, and is used as a reference image for prediction between pictures. The motion vector detected by the motion estimation unit 36 is supplied to the inter prediction unit 34 and the entropy encoding unit 40.

また、動き推定部36は、入力されるスライス分割設定情報に基づいて、スライスの境界を越えた動きベクトルの検出を禁止するよう動作する。さらに、動き推定部36は、入力されるブロック符号化判定情報を利用して符号化対象ブロックに適した参照画像や参照画素列の選択を行うこともできる。   In addition, the motion estimation unit 36 operates to prohibit detection of a motion vector that exceeds the boundary between slices based on the input slice division setting information. Furthermore, the motion estimation unit 36 can also select a reference image and a reference pixel sequence suitable for the encoding target block using the input block coding determination information.

イントラ予測部28は、フレームメモリ26に格納された局所復号データを参照して、予測処理を行って、同じピクチャ内から予測値を算出して出力する。イントラ予測部28は、そのピクチャがスライス分割されているときは、入力したスライス分割情報に基づいて、ピクチャ内かつ同じスライス内の情報のみを用いて予測処理を行って、予測値を算出する。ここでのイントラ予測は、符号化済みの画素ブロックに含まれる隣接画素の情報を用いて、予測対象ブロックの予測値を生成するものである。   The intra prediction unit 28 refers to the locally decoded data stored in the frame memory 26, performs a prediction process, calculates a prediction value from the same picture, and outputs it. When the picture is divided into slices, the intra prediction unit 28 performs prediction processing using only information in the picture and the same slice based on the input slice division information, and calculates a prediction value. The intra prediction here is to generate a prediction value of a prediction target block using information on adjacent pixels included in an encoded pixel block.

インター予測部34は、動き推定部36により推定された動きベクトルにしたがって、フレームメモリ32に格納された参照画像から予測に使用する画像データを決定し、ピクチャ間の予測値(いわゆる、動き補償予測値)を算出して出力する。   The inter prediction unit 34 determines image data to be used for prediction from the reference image stored in the frame memory 32 according to the motion vector estimated by the motion estimation unit 36, and predicts inter-picture prediction values (so-called motion compensation prediction). Value) is calculated and output.

スイッチ38は、符号化対象ブロックをイントラ予測で符号化(イントラ符号化)するか、インター予測で符号化(インター符号化)するかに応じて、イントラ予測部28の予測値又はインター予測部34の予測値を選択する。スイッチ38の選択結果が予測符号化の予測値として減算器14に供給される。スイッチ38は入力されるブロック符号化判定情報に基づいてイントラ符号化とインター符号化の選択的な切替動作を行う。ただし、スライス分割の位置によっては、ブロック符号化判定情報で指定されたイントラ符号化或いはインター符号化が適さなくなる場合もあるので、そのような場合は適切なほうに切り替えて出力する。   The switch 38 uses the prediction value of the intra prediction unit 28 or the inter prediction unit 34 depending on whether the block to be encoded is encoded by intra prediction (intra encoding) or encoded by inter prediction (inter encoding). Select the predicted value of. The selection result of the switch 38 is supplied to the subtractor 14 as a predicted value of predictive coding. The switch 38 selectively switches between intra coding and inter coding based on the input block coding determination information. However, depending on the position of the slice division, intra coding or inter coding specified by the block coding determination information may not be suitable. In such a case, the output is switched to an appropriate one.

このように本実施例によれば、ピクチャを構成するブロック(例えばマクロブロック)の符号化種別の分布に応じて、スライス分割の有無を適応的に切り替える。スライス分割により符号化効率が犠牲になる可能性が高い場合には分割無し、符号化効率への影響が小さい場合には分割有りというようにピクチャ毎に切り替えることで、ストリーム全体として符号化効率を維持したまま、スライス分割による処理分散を実現できる。   Thus, according to the present embodiment, the presence or absence of slice division is adaptively switched according to the distribution of the coding types of blocks (for example, macroblocks) constituting a picture. By switching from picture to picture, such as no division when coding efficiency is likely to be sacrificed by slice division, and there is division when the effect on coding efficiency is small, the coding efficiency of the entire stream is improved. Processing dispersion by slice division can be realized while maintaining.

上述したスライス分割の判定について、他の実施例を説明する。図2はピクチャ内のスライスやブロックの構成例を示す図である。図2において、200はピクチャ、201乃至204は分割時に想定されるスライスに相当する。また、205乃至207は、それぞれ想定されるスライス分割ラインの下側に接するブロック(例えばマクロブロック)である。   Another embodiment of the above-described slice division determination will be described. FIG. 2 is a diagram illustrating a configuration example of slices and blocks in a picture. In FIG. 2, 200 is a picture, and 201 to 204 are slices assumed at the time of division. Reference numerals 205 to 207 denote blocks (for example, macroblocks) that are in contact with the lower side of each assumed slice division line.

本実施例では、符号化対象のブロック205乃至207におけるイントラ符号化と判定されるブロックの割合に応じて、スライス分割の有無を判定するようにする。また、205乃至207の全ブロックで分割を判定するのではなく、分割位置に応じて、205、206、207を個々に分布を判定し、分割位置個々に分割の有無を決定してもよい。   In the present embodiment, the presence / absence of slice division is determined according to the proportion of blocks determined to be intra-coded in the blocks 205 to 207 to be coded. Further, instead of determining the division in all blocks 205 to 207, the distribution of 205, 206, and 207 may be individually determined according to the division position, and the presence / absence of division may be determined for each division position.

また、単にイントラ符号化の比率を求めるのではなく、上下の参照を用いたイントラ符号化の比率から分割の有無を決定する方が、より効果的な制御が可能である。   Further, more effective control can be achieved by determining whether or not to divide from the ratio of intra coding using upper and lower references, instead of simply obtaining the ratio of intra coding.

図3は、たとえばH.264符号化方式における、ピクチャの並びを示す図である。301はIピクチャ、302はPピクチャ、303はBピクチャである。Iピクチャはすべてのブロックをイントラ符号化する。PピクチャやBピクチャは、前後のピクチャとの相関を利用したインター符号化を用いても良いし、ピクチャ内の相関を利用したイントラ符号化を用いても良い。   FIG. FIG. 2 is a diagram illustrating a sequence of pictures in the H.264 encoding scheme. 301 is an I picture, 302 is a P picture, and 303 is a B picture. In the I picture, all blocks are intra-coded. For P and B pictures, inter coding using the correlation with the preceding and following pictures may be used, or intra coding using the correlation within the picture may be used.

図3のIピクチャ301はイントラ符号化ブロックの比率が100%である。そのため、明らかにIピクチャは、イントラ符号化による、スライスを跨いだ相関を利用できる可能性が高い。こうした性質を用いることで、上述した実施例1の構成において、Iピクチャならばスライス分割を常に行わない(単一のスライスとする)ように設定するようにすると良い。以上のように構成することでより効率的な制御が可能になる。このような構成も本発明の範疇である。   In the I picture 301 in FIG. 3, the ratio of intra-coded blocks is 100%. For this reason, obviously, an I picture is highly likely to be able to use correlation across slices by intra coding. By using such properties, in the configuration of the first embodiment described above, it is preferable to set so that slice division is not always performed (a single slice) for an I picture. By configuring as described above, more efficient control becomes possible. Such a configuration is also within the scope of the present invention.

上述した実施例1では、イントラ符号化の上下の相関に着目して説明してきたが、他の符号化種別においても、上下のブロック(例えばマクロブロック)間の相関が符号化の効率に影響を与える場合、スライス分割の決定に用いることができる。たとえば、H.264では、インター符号化においても、インター予測に用いる動きベクトルの符号化において、上下のブロック間の相関を用いている。   In the first embodiment described above, the description has been given focusing on the upper and lower correlations of intra coding. However, in other coding types, the correlation between the upper and lower blocks (for example, macroblocks) affects the coding efficiency. If given, it can be used to determine slice division. For example, H.M. In H.264, the correlation between the upper and lower blocks is also used in the coding of the motion vector used for the inter prediction in the inter coding.

図4はピクチャ内のスライスやブロックの構成例を示す図である。図4において、400はピクチャ、401乃至404は分割時に想定されるスライスに相当する。また、405乃至408は、それぞれ符号化対象ブロック(例えばマクロブロック)である。   FIG. 4 is a diagram illustrating a configuration example of slices and blocks in a picture. In FIG. 4, 400 is a picture, and 401 to 404 are slices assumed at the time of division. Reference numerals 405 to 408 denote encoding target blocks (for example, macro blocks), respectively.

図4の例では、スライス分割位置(スライス境界)を挟んで上下に接するブロック405とブロック406の動きベクトルは近似しており、相関が高い。一方、ブロック407と408とでは、同じ配置条件であっても、動きベクトルの相関が低い。前者のように相関が高い組み合わせが相当数を越える場合、この位置でのスライス分割は符号化効率に少なからず影響を与えるはずである。   In the example of FIG. 4, the motion vectors of the blocks 405 and 406 that are in contact with each other with the slice division position (slice boundary) interposed therebetween are approximate, and the correlation is high. On the other hand, the blocks 407 and 408 have a low correlation of motion vectors even under the same arrangement condition. When the number of combinations with high correlation exceeds a considerable number as in the former case, the slice division at this position should have a significant impact on the coding efficiency.

したがって、上述したスライス分割部103は、スライス分割を想定している位置(境界部)を挟むブロック間の動きベクトルの相関を考慮して、スライス分割すべきか否か(ブロック分割の有無)を決定すると良い。すなわち、スライス分割を想定する位置(境界部)で、相関が高いブロックが例えば4割を超える場合は分割せず、4割以下の場合は分割を行うといった制御を行う。以上のように構成することでより効果的な制御が可能になる。   Therefore, the slice division unit 103 described above determines whether or not to perform slice division (presence / absence of block division) in consideration of the correlation of motion vectors between blocks sandwiching a position (boundary part) that assumes slice division. Good. That is, at a position (boundary portion) where slice division is assumed, control is performed such that a block having a high correlation exceeds 40%, for example, and is not divided when it is 40% or less. By configuring as described above, more effective control becomes possible.

なお、上記各実施例では、図1に示したブロック図に基づいて、映像データ入力部101から供給される映像データを符号化する映像符号化装置を例に説明してきたが、該映像データ入力部101の代わりに、撮像部を有する構成であっても良い。撮像部が被写体を撮影して得た映像データを出力し、該映像データを上述した映像符号化装置によって符号化する構成となる。すなわち、本実施例の映像符号化装置を撮像装置に搭載して、撮像装置の一部として機能させることも、本発明の範疇である。   In each of the above embodiments, the video encoding device that encodes the video data supplied from the video data input unit 101 has been described as an example based on the block diagram shown in FIG. Instead of the unit 101, a configuration having an imaging unit may be used. The imaging unit outputs video data obtained by photographing the subject, and the video data is encoded by the video encoding device described above. That is, it is also within the scope of the present invention to mount the video encoding apparatus of the present embodiment in an imaging apparatus so as to function as a part of the imaging apparatus.

本発明の実施形態に係る映像符号化装置のブロック図である。It is a block diagram of the video coding apparatus which concerns on embodiment of this invention. ピクチャ内のスライスやブロックの構成例を示す図である。It is a figure which shows the structural example of the slice and block in a picture. ピクチャの並びを示す図である。It is a figure which shows the arrangement | sequence of a picture. ピクチャ内のスライスやブロックの構成例を示す図である。It is a figure which shows the structural example of the slice and block in a picture. ブロック符号化部を詳細に表わしたブロック図である。It is a block diagram showing the block encoding part in detail. スライス分割の一例を示す図である。It is a figure which shows an example of a slice division | segmentation.

符号の説明Explanation of symbols

101 映像データ入力部
102 ブロック符号化判定部
103 スライス分割部
104 ブロック符号化部
DESCRIPTION OF SYMBOLS 101 Video data input part 102 Block encoding determination part 103 Slice division part 104 Block encoding part

Claims (10)

映像データの符号化を行う映像符号化装置であって、
入力された映像データに含まれる符号化対象ブロックの符号化種別を判定する判定手段と、
前記入力された映像データに含まれるピクチャを、1以上の前記符号化対象ブロックから構成されるスライスに分割する分割手段と、
前記スライス分割手段によって分割されたスライスを符号化の単位として、前記入力された映像データを前記符号化対象ブロックごとに符号化する符号化手段とを有し、
前記スライス分割手段は、前記判定手段により判定された前記符号化対象ブロックの符号化種別の分布に応じて、前記ピクチャを構成するスライスの個数を変化させることを特徴とする映像符号化装置。
A video encoding device for encoding video data,
Determining means for determining an encoding type of an encoding target block included in the input video data;
Division means for dividing a picture included in the input video data into slices composed of one or more encoding target blocks;
An encoding unit that encodes the input video data for each of the encoding target blocks, with the slice divided by the slice dividing unit as an encoding unit;
The video coding apparatus characterized in that the slice dividing means changes the number of slices constituting the picture in accordance with the distribution of the coding type of the coding target block determined by the determining means.
前記符号化種別は、前記符号化対象ブロックをイントラ符号化することを示すことを特徴とする請求項1に記載の映像符号化装置。   The video encoding apparatus according to claim 1, wherein the encoding type indicates that the encoding target block is intra-encoded. 前記符号化種別は、前記符号化対象ブロックをインター符号化することを示すことを特徴とする請求項1に記載の映像符号化装置。   The video encoding apparatus according to claim 1, wherein the encoding type indicates that the encoding target block is inter-encoded. 前記スライス分割手段は、前記ピクチャ内において、前記判定手段によりイントラ符号化と判定された符号化対象ブロックが所定の割合を超える場合は、当該ピクチャを単一のスライスとすることを特徴とする請求項1に記載の映像符号化装置。   The slice dividing unit is characterized in that, in the picture, when the coding target block determined to be intra-coded by the determining unit exceeds a predetermined ratio, the picture is made a single slice. Item 2. The video encoding device according to Item 1. 前記スライス分割手段は、前記ピクチャ内において、前記判定手段によりイントラ符号化と判定された符号化対象ブロックが所定の割合以下の場合は、当該ピクチャを複数のスライスに分割することを特徴とする請求項1または4に記載の映像符号化装置。   The slice dividing unit divides the picture into a plurality of slices when a coding target block determined to be intra-coded by the determining unit is equal to or less than a predetermined ratio in the picture. Item 5. The video encoding device according to Item 1 or 4. 前記スライス分割手段は、スライス分割を想定する分割位置の下側に接する符号化対象ブロックが前記判定手段によりイントラ符号化と判定される割合に応じてブロック分割の有無を決定することを特徴とする請求項1に記載の映像符号化装置。   The slice dividing unit determines whether or not to perform block division according to a ratio at which a coding target block adjacent to a lower side of a division position assuming slice division is determined to be intra-coded by the determination unit. The video encoding device according to claim 1. 前記スライス分割手段は、前記ピクチャがIピクチャである場合は、当該ピクチャを単一のスライスとすることを特徴とする請求項1に記載の映像符号化装置。   2. The video encoding apparatus according to claim 1, wherein, when the picture is an I picture, the slice dividing unit sets the picture as a single slice. 前記スライス分割手段は、スライス分割を想定する分割位置の上下に接する複数の符号化対象ブロックの相関に応じてブロック分割の有無を決定することを特徴とする請求項1に記載の映像符号化装置。   2. The video encoding apparatus according to claim 1, wherein the slice dividing unit determines presence / absence of block division according to a correlation of a plurality of encoding target blocks that are in contact with each other above and below a division position assuming slice division. . 前記符号化手段は、前記判定手段から供給される判定情報と前記スライス分割手段から供給されるスライス分割設定情報とを用いて前記符号化対象ブロックのイントラ符号化及びインター符号化を選択的に行うことを特徴とする請求項1乃至8のいずれか1項に記載の映像符号化装置。   The encoding unit selectively performs intra encoding and inter encoding of the encoding target block using determination information supplied from the determination unit and slice division setting information supplied from the slice division unit. The video encoding device according to claim 1, wherein the video encoding device is a video encoding device. 映像データを符号化するための映像符号化方法であって、
入力された映像データに含まれる符号化対象ブロックの符号化種別を判定する判定工程と、
前記入力された映像データに含まれるピクチャを、1以上の前記符号化対象ブロックから構成されるスライスに分割するスライス分割工程と、
前記スライスを符号化の単位として、前記入力された映像データを前記符号化対象ブロックごとに符号化する符号化工程とを有し、
前記スライス分割工程において、前記判定工程で判定された前記符号化対象ブロックの符号化種別の分布に応じて、前記ピクチャを構成するスライスの個数を変化させることを特徴とする映像符号化方法。
A video encoding method for encoding video data,
A determination step of determining an encoding type of an encoding target block included in the input video data;
A slice dividing step of dividing a picture included in the input video data into slices composed of one or more encoding target blocks;
An encoding step of encoding the input video data for each of the encoding target blocks using the slice as an encoding unit;
The video coding method characterized in that, in the slice division step, the number of slices constituting the picture is changed in accordance with the distribution of the coding type of the coding target block determined in the determination step.
JP2007281834A 2007-10-30 2007-10-30 Video encoding apparatus and method Expired - Fee Related JP4926912B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007281834A JP4926912B2 (en) 2007-10-30 2007-10-30 Video encoding apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007281834A JP4926912B2 (en) 2007-10-30 2007-10-30 Video encoding apparatus and method

Publications (3)

Publication Number Publication Date
JP2009111712A true JP2009111712A (en) 2009-05-21
JP2009111712A5 JP2009111712A5 (en) 2010-12-02
JP4926912B2 JP4926912B2 (en) 2012-05-09

Family

ID=40779729

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007281834A Expired - Fee Related JP4926912B2 (en) 2007-10-30 2007-10-30 Video encoding apparatus and method

Country Status (1)

Country Link
JP (1) JP4926912B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107396116A (en) * 2012-01-30 2017-11-24 三星电子株式会社 Video coding and decoding device and non-transitory computer-readable storage media

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0715729A (en) * 1993-03-11 1995-01-17 Matsushita Electric Ind Co Ltd Image coding method and circuit, device therefor and optical disk
JPH07115649A (en) * 1993-10-15 1995-05-02 Mitsubishi Electric Corp Video signal encoder/decoder
JPH07264600A (en) * 1994-03-16 1995-10-13 Fujitsu Ltd Synchronous word multiplexing system for image encoded data
JPH08242445A (en) * 1995-03-06 1996-09-17 Hitachi Ltd Coding method for image signal, transmission method and its decoder
JPH10234043A (en) * 1997-02-20 1998-09-02 Toshiba Corp Dynamic image encoder and decoder
JP2006340183A (en) * 2005-06-03 2006-12-14 Canon Inc Image coding apparatus and image coding method
JP2007060488A (en) * 2005-08-26 2007-03-08 Sony Corp Image processing element, image processing method, recording medium and program
JP2007158778A (en) * 2005-12-06 2007-06-21 Kddi Corp Forming method and device of trick reproducing content, transmitting method and device of trick reproducing compressed moving picture data, and trick reproducing content forming program
JP2007318726A (en) * 2006-04-27 2007-12-06 Canon Inc Image coding apparatus and method, and program and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0715729A (en) * 1993-03-11 1995-01-17 Matsushita Electric Ind Co Ltd Image coding method and circuit, device therefor and optical disk
JPH07115649A (en) * 1993-10-15 1995-05-02 Mitsubishi Electric Corp Video signal encoder/decoder
JPH07264600A (en) * 1994-03-16 1995-10-13 Fujitsu Ltd Synchronous word multiplexing system for image encoded data
JPH08242445A (en) * 1995-03-06 1996-09-17 Hitachi Ltd Coding method for image signal, transmission method and its decoder
JPH10234043A (en) * 1997-02-20 1998-09-02 Toshiba Corp Dynamic image encoder and decoder
JP2006340183A (en) * 2005-06-03 2006-12-14 Canon Inc Image coding apparatus and image coding method
JP2007060488A (en) * 2005-08-26 2007-03-08 Sony Corp Image processing element, image processing method, recording medium and program
JP2007158778A (en) * 2005-12-06 2007-06-21 Kddi Corp Forming method and device of trick reproducing content, transmitting method and device of trick reproducing compressed moving picture data, and trick reproducing content forming program
JP2007318726A (en) * 2006-04-27 2007-12-06 Canon Inc Image coding apparatus and method, and program and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107396116A (en) * 2012-01-30 2017-11-24 三星电子株式会社 Video coding and decoding device and non-transitory computer-readable storage media
CN107396116B (en) * 2012-01-30 2020-03-27 三星电子株式会社 Video encoding and decoding apparatus and non-transitory computer-readable storage medium

Also Published As

Publication number Publication date
JP4926912B2 (en) 2012-05-09

Similar Documents

Publication Publication Date Title
US9838698B2 (en) Video encoding method and apparatus, and video decoding apparatus
KR101441269B1 (en) Dynamic image decoding device and dynamic image decoding method
KR100949917B1 (en) Fast Encoding Method and System Via Adaptive Intra Prediction
JP4769605B2 (en) Video coding apparatus and method
US20070098067A1 (en) Method and apparatus for video encoding/decoding
KR101960470B1 (en) A rate control method of video coding processes supporting off-line cabac based on a bit estimator and an appratus using it
JP2008154060A (en) Moving image coding apparatus
JP5100572B2 (en) Encoder
JP2011091772A (en) Image encoder
JP5800077B2 (en) Video decoding method
JP4926912B2 (en) Video encoding apparatus and method
CA2895855C (en) Video encoding and decoding apparatus and method using quantization in sub-blocks
KR20110067648A (en) Method for encoding/decoding image and apparatus for performing the same
JP5790722B2 (en) Video coding method
KR20150139354A (en) Method and apparatus of inter-prediction for video encoding/decoding

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20100201

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20100630

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101014

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20101014

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110929

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111004

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111205

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120208

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

Free format text: PAYMENT UNTIL: 20150217

Year of fee payment: 3

R151 Written notification of patent or utility model registration

Ref document number: 4926912

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20150217

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees