Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6097326B2 - Block size determination method, block size determination device, and block size determination program - Google Patents
[go: Go Back, main page]

JP6097326B2 - Block size determination method, block size determination device, and block size determination program - Google Patents

Block size determination method, block size determination device, and block size determination program Download PDF

Info

Publication number
JP6097326B2
JP6097326B2 JP2015067116A JP2015067116A JP6097326B2 JP 6097326 B2 JP6097326 B2 JP 6097326B2 JP 2015067116 A JP2015067116 A JP 2015067116A JP 2015067116 A JP2015067116 A JP 2015067116A JP 6097326 B2 JP6097326 B2 JP 6097326B2
Authority
JP
Japan
Prior art keywords
size
block
encoding
determination
mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2015067116A
Other languages
Japanese (ja)
Other versions
JP2016187140A (en
Inventor
暁経 三反崎
暁経 三反崎
隆一 谷田
隆一 谷田
正樹 北原
正樹 北原
清水 淳
淳 清水
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NTT Inc
NTT Inc USA
Original Assignee
Nippon Telegraph and Telephone Corp
NTT Inc USA
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 Nippon Telegraph and Telephone Corp, NTT Inc USA filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2015067116A priority Critical patent/JP6097326B2/en
Publication of JP2016187140A publication Critical patent/JP2016187140A/en
Application granted granted Critical
Publication of JP6097326B2 publication Critical patent/JP6097326B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Description

本発明は、動画像符号化装置において、符号化対象のブロックサイズを決定するブロックサイズ決定方法、ブロックサイズ決定装置及びブロックサイズ決定プログラムに関する。   The present invention relates to a block size determination method, a block size determination device, and a block size determination program for determining a block size to be encoded in a moving image encoding device.

近年、ブロードバンドサービスの普及に伴い、ネットワークを介して動画像コンテンツを視聴することが容易になり、ネットワーク上のデータの半分以上が動画像データになるとも言われている。この状況において、ネットワーク帯域を有効利用するため、動画像符号化が用いられており、現在では例えばMPEG2やH.264/AVC等の動画像符号化方式が挙げられる。さらに符号化効率を向上させる方式としてH.265/HEVCも挙げられる。HEVC(High Efficiency Video Coding)では符号化効率をH.264の2倍に向上させることが可能な一方で、符号化処理負荷が爆発的に増加する。   In recent years, with the spread of broadband services, it has become easier to view moving image content over a network, and it is said that more than half of the data on the network becomes moving image data. In this situation, in order to make effective use of the network bandwidth, moving picture coding is used. H.264 / AVC and other moving image encoding schemes can be mentioned. Further, as a method for improving the encoding efficiency, H.264 is used. 265 / HEVC is also mentioned. In HEVC (High Efficiency Video Coding), the encoding efficiency is H.264. While it is possible to improve to twice that of H.264, the encoding processing load increases explosively.

この増加の一因としてCU(Coding Unit:符号化対象ユニット)という概念が挙げられる。これまでのH.264ではMB(MacroBlock)という16x16画素単位で符号化処理が行われていた。HEVCでは、LCU(Large CU:最大符号化ユニット)は最大64x64画素、CUはそれ以下(64x64画素〜8x8画素)で可変サイズにできる。HEVCの参照ソフトウェア(HM)ではCUサイズ分(4パターン)、符号化処理を行い、最適なCUサイズを決定している。これに対し、CUサイズを早期に決定し、符号化処理を高速化する手法が提案されている(例えば、特許文献1参照)。   One reason for this increase is the concept of CU (Coding Unit). H. In H.264, encoding processing is performed in units of 16 × 16 pixels called MB (MacroBlock). In HEVC, LCU (Large CU: maximum coding unit) can be variable size with a maximum of 64 × 64 pixels and CU less than that (64 × 64 pixels to 8 × 8 pixels). The HEVC reference software (HM) performs an encoding process for the CU size (4 patterns) to determine the optimum CU size. On the other hand, a method for determining the CU size at an early stage and speeding up the encoding process has been proposed (see, for example, Patent Document 1).

特開2014−127891号公報JP 2014-127891 A

ところで、特許文献1に記載の従来技術では、4レイヤー分(CUサイズが64x64画素、32x32画素、16x16画素、8x8画素)のコスト算出を行わず、2または3レイヤー分のコスト算出により、最適なCUサイズを決定することができる。   By the way, in the prior art described in Patent Document 1, the cost calculation for 4 layers (CU size is 64 × 64 pixels, 32 × 32 pixels, 16 × 16 pixels, 8 × 8 pixels) is not performed, and the cost calculation for 2 or 3 layers is optimal. The CU size can be determined.

しかしながら、原理的に最低でも2レイヤー分のコスト算出が必要となり、高速化の観点で十分ではないという問題がある。   However, in principle, it is necessary to calculate costs for at least two layers, which is not sufficient from the viewpoint of speeding up.

本発明は、このような事情に鑑みてなされたもので、動画像符号化装置において、符号化を行う際のコスト算出の処理回数を減らし、演算処理の高速化を図ることができるブロックサイズ決定方法、ブロックサイズ決定装置及びブロックサイズ決定プログラムを提供することを目的とする。   The present invention has been made in view of such circumstances, and in a moving image encoding apparatus, a block size determination that can reduce the number of times of cost calculation processing when performing encoding and increase the speed of arithmetic processing. It is an object to provide a method, a block size determining apparatus, and a block size determining program.

本発明は、動画像を符号化する際の符号化対象ブロックのサイズを決定し、決定した前記符号化対象ブロックのサイズに基づいて符号化する動画像符号化装置が行うブロックサイズ決定方法であって、参照先フレームの最大符号化ブロックを参照して、該最大符号化ブロック内に占める割合が最大のブロックのサイズに前記符号化対象ブロックのサイズを仮決定する仮決定ステップと、前記最大符号化ブロック内に占める割合が最大の符号化モードがイントラモードであるか否かを判定する第1の判定ステップと、前記第1の判定ステップによる判定の結果、前記符号化モードがイントラモードである場合に、仮決定した前記符号化対象ブロックのサイズを1サイズ大きくすることができる条件を満たすか否かを判定する第2の判定ステップと、前記第2の判定ステップによる判定の結果、前記条件を満たす場合に、仮決定した前記符号化対象ブロックのサイズを1サイズ大きくして前記符号化対象ブロックのサイズに決定し、前記符号化モードがイントラモードでなく、前記条件も満たさない場合は、仮決定した前記符号化対象ブロックのサイズに決定するブロックサイズ決定ステップとを有することを特徴とする。   The present invention relates to a block size determination method performed by a moving image encoding apparatus that determines the size of a target block for encoding a moving image and performs encoding based on the determined size of the target block. A provisional determination step of referring to the maximum encoding block of the reference frame and tentatively determining the size of the encoding target block to the size of the block having the maximum ratio in the maximum encoding block; and the maximum code A first determination step for determining whether or not an encoding mode occupying the largest in a block is an intra mode, and the result of determination in the first determination step is that the encoding mode is an intra mode. In this case, a second determination step of determining whether or not a condition that allows the temporarily determined size of the encoding target block to be increased by one size is satisfied If, as a result of the determination in the second determination step, the condition is satisfied, the temporarily determined size of the encoding target block is increased by one size to determine the size of the encoding target block, and the encoding mode Is not an intra mode, and if the condition is not satisfied, a block size determination step for determining the size of the encoding target block that is provisionally determined is included.

本発明は、動画像を符号化する際の符号化対象ブロックのサイズを決定し、決定した前記符号化対象ブロックのサイズに基づいて符号化する動画像符号化装置が行うブロックサイズ決定方法であって、参照先フレームの最大符号化ブロックを参照して、該最大符号化ブロック内に占める割合が最大のブロックのサイズに前記符号化対象ブロックのサイズを仮決定する仮決定ステップと、前記最大符号化ブロック内に占める割合が最大の符号化モードがイントラモードであるか否かを判定する第1の判定ステップと、前記第1の判定ステップによる判定の結果、前記符号化モードが前記イントラモードでない場合に、前記最大符号化ブロック内に占める割合が最大の符号化モードがインターモードであるか否かを判定する第2の判定ステップと、前記第2の判定ステップによる判定の結果、前記符号化モードがインターモードである場合に、仮決定した前記符号化対象ブロックのサイズを1サイズ大きくすることができる条件を満たすか否かを判定する第3の判定ステップと、前記第3の判定ステップによる判定の結果、前記条件を満たし、かつ前記符号化モードがイントラモードである場合に、仮決定した前記符号化対象ブロックのサイズを1サイズ大きくして前記符号化対象ブロックのサイズに決定し、前記符号化モードがイントラモードでもインターモードでもなく、前記条件も満たさない場合は、仮決定した前記符号化対象ブロックのサイズに決定するブロックサイズ決定ステップとを有することを特徴とする。   The present invention relates to a block size determination method performed by a moving image encoding apparatus that determines the size of a target block for encoding a moving image and performs encoding based on the determined size of the target block. A provisional determination step of referring to the maximum encoding block of the reference frame and tentatively determining the size of the encoding target block to the size of the block having the maximum ratio in the maximum encoding block; and the maximum code A first determination step for determining whether or not an encoding mode occupying the largest proportion in a coded block is an intra mode, and the result of determination in the first determination step is that the encoding mode is not the intra mode. A second determination step for determining whether or not the encoding mode having the largest ratio in the maximum encoding block is the inter mode; As a result of the determination in the second determination step, when the encoding mode is an inter mode, it is determined whether or not a condition that allows the temporarily determined size of the encoding target block to be increased by one size is satisfied. As a result of the determination by the third determination step and the third determination step, when the condition is satisfied and the encoding mode is the intra mode, the temporarily determined size of the encoding target block is increased by one size. Then, when the encoding mode is neither intra mode nor inter mode and the conditions are not satisfied, the block size determination is determined to be the temporarily determined size of the encoding target block. And a step.

本発明は、請求項1または請求項2に記載のブロックサイズ決定方法を使用して、HEVC(高効率映像符号化)において符号化対象ユニットのサイズを決定するブロックサイズ決定方法であって、符号化対象の最大符号化ユニットにおいて用いられる量子化パラメータが所定の値より大きい場合は、請求項1に記載のブロックサイズ決定方法により決定された符号化対象ブロックのサイズを前記符号化対象ユニットのサイズとして決定し、前記量子化パラメータが所定の値以下の場合は請求項2に記載のブロックサイズ決定方法により決定された符号化対象ブロックのサイズを前記符号化対象ユニットのサイズとして決定することを特徴とする。   The present invention is a block size determination method for determining the size of a unit to be encoded in HEVC (High Efficiency Video Coding) using the block size determination method according to claim 1 or 2, wherein When the quantization parameter used in the maximum encoding unit to be encoded is larger than a predetermined value, the size of the encoding target block determined by the block size determination method according to claim 1 is set as the size of the encoding target unit. When the quantization parameter is equal to or smaller than a predetermined value, the size of the encoding target block determined by the block size determination method according to claim 2 is determined as the size of the encoding target unit. And

本発明は、動画像を符号化する際の符号化対象ブロックのサイズを決定するブロックサイズ決定装置であって、参照先フレームの最大符号化ブロックを参照して、該最大符号化ブロック内に占める割合が最大のブロックのサイズに前記符号化対象ブロックのサイズを仮決定する仮決定手段と、前記最大符号化ブロック内に占める割合が最大の符号化モードがイントラモードであるか否かを判定する第1の判定手段と、前記第1の判定手段による判定の結果、前記符号化モードがイントラモードである場合に、仮決定した前記符号化対象ブロックのサイズを1サイズ大きくすることができる条件を満たすか否かを判定する第2の判定手段と、前記第2の判定手段による判定の結果、前記条件を満たす場合に、仮決定した前記符号化対象ブロックのサイズを1サイズ大きくして前記符号化対象ブロックのサイズに決定し、前記符号化モードがイントラモードでなく、前記条件も満たさない場合は、仮決定した前記符号化対象ブロックのサイズに決定するブロックサイズ決定手段とを備えることを特徴とする。   The present invention relates to a block size determination device that determines the size of a target block for encoding a moving image, and refers to the maximum encoded block of a reference frame and occupies the maximum encoded block. Temporary determination means for tentatively determining the size of the encoding target block to the size of the block having the maximum ratio, and determining whether or not the encoding mode having the maximum ratio in the maximum encoding block is the intra mode As a result of determination by the first determination unit and the first determination unit, when the encoding mode is the intra mode, the condition that the temporarily determined size of the block to be encoded can be increased by one size is satisfied. A second determination unit that determines whether or not the condition is satisfied; and, as a result of determination by the second determination unit, the encoding target block that is provisionally determined when the condition is satisfied The size is increased by one size and determined to be the size of the block to be encoded. When the encoding mode is not the intra mode and the condition is not satisfied, the block to be determined as the temporarily determined size of the block to be encoded Size determining means.

本発明は、動画像を符号化する際の符号化対象ブロックのサイズを決定するブロックサイズ決定装置であって、参照先フレームの最大符号化ブロックを参照して、該最大符号化ブロック内に占める割合が最大のブロックのサイズに前記符号化対象ブロックのサイズを仮決定する仮決定手段と、前記最大符号化ブロック内に占める割合が最大の符号化モードがイントラモードであるか否かを判定する第1の判定手段と、前記第1の判定手段による判定の結果、前記符号化モードが前記イントラモードでない場合に、前記最大符号化ブロック内に占める割合が最大の符号化モードがインターモードであるか否かを判定する第2の判定手段と、前記第2の判定手段による判定の結果、前記符号化モードがインターモードである場合に、仮決定した前記符号化対象ブロックのサイズを1サイズ大きくすることができる条件を満たすか否かを判定する第3の判定手段と、前記第3の判定手段による判定の結果、前記条件を満たし、かつ前記符号化モードがイントラモードである場合に、仮決定した前記符号化対象ブロックのサイズを1サイズ大きくして前記符号化対象ブロックのサイズに決定し、前記符号化モードがイントラモードでもインターモードでもなく、前記条件も満たさない場合は、仮決定した前記符号化対象ブロックのサイズに決定するブロックサイズ決定手段とを備えることを特徴とする。   The present invention relates to a block size determination device that determines the size of a target block for encoding a moving image, and refers to the maximum encoded block of a reference frame and occupies the maximum encoded block. Temporary determination means for tentatively determining the size of the encoding target block to the size of the block having the maximum ratio, and determining whether or not the encoding mode having the maximum ratio in the maximum encoding block is the intra mode As a result of determination by the first determination unit and the first determination unit, when the encoding mode is not the intra mode, the encoding mode having the largest ratio in the maximum encoding block is the inter mode. A second determination means for determining whether or not the encoding mode is an inter mode as a result of the determination by the second determination means; A third determination unit that determines whether or not a condition capable of increasing the size of the block to be encoded by one size is satisfied; a result of determination by the third determination unit; When the mode is an intra mode, the temporarily determined size of the encoding target block is increased by one size to determine the size of the encoding target block, and the encoding mode is neither an intra mode nor an inter mode, If the condition is not satisfied, a block size determining unit that determines the size of the encoding target block that is provisionally determined is provided.

本発明は、コンピュータに、前記ブロックサイズ決定方法を実行させるためのブロックサイズ決定プログラムである。   The present invention is a block size determination program for causing a computer to execute the block size determination method.

本発明によれば、コスト算出の処理回数を減らすことにより、演算処理の高速化を図ることができるという効果が得られる。   According to the present invention, it is possible to increase the speed of arithmetic processing by reducing the number of times of cost calculation processing.

参照ソフトウェア(HM)が実装されているCUサイズ決定を行う処理装置の構成を示すブロック図である。It is a block diagram which shows the structure of the processing apparatus which performs CU size determination in which the reference software (HM) is mounted. 最適なCU分割の抽出方法を示す説明図である。It is explanatory drawing which shows the extraction method of the optimal CU division | segmentation. 図2示すケースにおける最適化後のCU分割例を示す説明図である。It is explanatory drawing which shows the example of CU division | segmentation after the optimization in the case shown in FIG. 特許文献1の記載の技術を使用して高速化を図った例を示す図である。It is a figure which shows the example which aimed at speeding-up using the technique of patent document 1. FIG. 本発明の第1実施形態による動画像符号化装置の構成を示すブロック図である。It is a block diagram which shows the structure of the moving image encoder by 1st Embodiment of this invention. 図5に示すプレ処理部60がCUサイズを決定する処理(プレ処理)の動作を示すフローチャートである。6 is a flowchart showing an operation of a process (pre-process) in which the pre-processing unit 60 shown in FIG. 5 determines a CU size. 参照LCUの例を示す説明図である。It is explanatory drawing which shows the example of reference LCU. 第1選択処理の処理動作を示す説明図である。It is explanatory drawing which shows the processing operation of a 1st selection process. 第1選択処理の処理動作を示す説明図である。It is explanatory drawing which shows the processing operation of a 1st selection process. 第2実施形態によるCUサイズを決定する処理(プレ処理)の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the process (pre-process) which determines CU size by 2nd Embodiment.

以下、図面を参照して、本発明の実施形態による動画像符号化装置を説明する。本実施形態は、画像符号化において、符号化対象サイズ(CU)を決定することで、符号化処理の高速化するものである。例えばH.264におけるブロックサイズ決定や、HEVCにおけるCU(Coding Unit)、PU(Prediction Unit)、TU(Transform Unit)の各サイズ決定で用いることができる。以下ではHEVCのCUサイズ決定を例にして説明する。   Hereinafter, a moving picture coding apparatus according to an embodiment of the present invention will be described with reference to the drawings. The present embodiment speeds up the encoding process by determining the encoding target size (CU) in image encoding. For example, H.C. It can be used for block size determination in H.264, and size determination of CU (Coding Unit), PU (Prediction Unit), and TU (Transform Unit) in HEVC. Hereinafter, the determination of the HEVC CU size will be described as an example.

本実施形態は、最低でも2レイヤー分のコスト算出をする方式ではなく、最低1レイヤー分のコスト算出により、最適なCUサイズを決定するものであるため、従来手法よりも演算量を削減可能であり、演算処理の高速化を行うことができるものである。   This embodiment is not a method of calculating the cost for at least two layers, but determines the optimal CU size by calculating the cost for at least one layer, so the amount of calculation can be reduced compared to the conventional method. Yes, it is possible to speed up the arithmetic processing.

図1は、HEVC標準化団体が配布している参照ソフトウェア(HM)が実装されているCUサイズ決定を行う処理装置の構成を示すブロック図である。まず、CUサイズが64画素x64画素(以下、n画素xn画素をnxn(nは、8、16、32、64)と称する)の場合に対し、64x64コスト算出部10において、RD(Rate Distortion)コストを算出する。   FIG. 1 is a block diagram illustrating a configuration of a processing apparatus that performs CU size determination in which reference software (HM) distributed by an HEVC standardization organization is installed. First, when the CU size is 64 pixels × 64 pixels (hereinafter, n pixels xn pixels are referred to as nxn (n is 8, 16, 32, 64)), the 64 × 64 cost calculation unit 10 performs RD (Rate Distortion). Calculate the cost.

次に、同様に32x32コスト算出部20、16x16コスト算出部30、8x8コスト算出部40において、それぞれのCUサイズレイヤーにおけるRDコストを算出する。32x32のRDコストとは、面積で64x64となるように、32x32サイズのコストを4個分合わせたものである。同様に16x16のRDコストとは16x16サイズのコストを16個合わせたもの、8x8のコストとは8x8サイズのコストを64個合わせたものである。   Next, similarly, the 32 × 32 cost calculation unit 20, the 16 × 16 cost calculation unit 30, and the 8 × 8 cost calculation unit 40 calculate the RD cost in each CU size layer. The 32 × 32 RD cost is a combination of four 32 × 32 size costs so that the area is 64 × 64. Similarly, the 16x16 RD cost is the sum of 16 16x16 size costs, and the 8x8 cost is the sum of 64 8x8 size costs.

これらの結果を用い、CUパタン最適化部50は、LCU内の最適なCU分割方法を抽出し、CUサイズを決定して出力する。図2は、最適なCU分割の抽出方法を示す説明図である。まず64x64のCUサイズからRDコストを算出し、次にそのサイズを縦横半分(元の1/4サイズ)32x32にし、それぞれのRDコストを算出する。   Using these results, the CU pattern optimization unit 50 extracts the optimal CU partitioning method in the LCU, determines the CU size, and outputs it. FIG. 2 is an explanatory diagram showing an optimal CU partition extraction method. First, the RD cost is calculated from the 64 × 64 CU size, and then the size is set to the vertical and horizontal half (original 1/4 size) 32 × 32, and the respective RD costs are calculated.

RDコストとは発生情報量とフラグ情報を合算したものとする。分割されたユニットの中に記載された数値は発生情報量である。さらに例えば斜線網掛け部分のCU(左下のユニット)を縦横半分(元の1/16サイズ)16x16にし、RDコストを算出する。最後にさらに例えば縦線網掛け部分のCU(左上のユニット)を縦横半分(元の1/64サイズ)8x8にし、RDコストを算出する。   The RD cost is the sum of the generated information amount and the flag information. The numerical value described in the divided unit is the amount of generated information. Further, for example, the CU (lower left unit) in the hatched portion is set to 16 × 16 in the vertical and horizontal half (original 1/16 size), and the RD cost is calculated. Finally, for example, the CU (upper left unit) of the shaded portion of the vertical line is set to 8 × 8 in the vertical and horizontal half (original 1/64 size), and the RD cost is calculated.

ここで、例えばCUの分割状態を示すフラグ情報がフラグ1個につき10という情報量が必要だとすると、32x32のレイヤーは発生情報量が200+210+300+220=930、フラグ情報が10×4=40となり、合算するとRDコストは970となる。これは64x64のRDコスト(64x64の場合は発生情報量1000、フラグ情報は0のためRDコストは1000)と比較し、小さくなる。この場合はCUを4分割して32x32を選択する方がトータルの情報量を小さくすることができる。   For example, if the flag information indicating the division state of the CU requires an information amount of 10 per flag, the generated information amount of the 32 × 32 layer is 200 + 210 + 300 + 220 = 930, and the flag information is 10 × 4 = 40. The cost is 970. This is smaller than the RD cost of 64 × 64 (the generated information amount is 1000 for 64 × 64, and the RD cost is 1000 because the flag information is 0). In this case, the total amount of information can be reduced by dividing the CU into four and selecting 32 × 32.

次に、例えば斜線部分で同様に縦線網掛け部分のCUは分割した方がトータルの情報量を小さくでき(RDコスト=80+60+30+50+10×4=260)、縦線網掛け部分のCUはさらに分割した方がトータルの情報量を小さくすることができる(RDコスト=10+10+5+10+10×4=75)。このようにRDコストが小さくなるようなCU分割パタンを抽出する。図3は、図2示すケースにおける最適化後のCU分割例を示す説明図である。図3に示す例では、発生情報量が805となるため、フラグ情報(3×10×4=120)を加えてもRDコストは925となり、分割を行わない場合に比べてRDコストを小さくすることができる。   Next, the total amount of information can be reduced by dividing the CU in the shaded portion of the vertical line similarly, for example (RD cost = 80 + 60 + 30 + 50 + 10 × 4 = 260), and the CU in the shaded portion of the vertical line is further divided. The total amount of information can be reduced (RD cost = 10 + 10 + 5 + 10 + 10 × 4 = 75). In this way, a CU division pattern that reduces the RD cost is extracted. FIG. 3 is an explanatory diagram showing an example of CU division after optimization in the case shown in FIG. In the example shown in FIG. 3, since the amount of generated information is 805, the RD cost becomes 925 even if flag information (3 × 10 × 4 = 120) is added, and the RD cost is reduced compared to the case where no division is performed. be able to.

HMの4レイヤー分のコスト算出が必要な処理に対して、特許文献1の記載の技術を使用して高速化を図った例を説明する。図4は、特許文献1の記載の技術を使用して高速化を図った例を示す図である。まずコスト算出部100において、あるCUサイズレイヤー1のRDコストを算出する。次にコスト算出部200において、別のCUサイズレイヤー2のRDコストを算出する。   An example will be described in which the technique described in Patent Document 1 is used to increase the speed of processing that requires cost calculation for four layers of HM. FIG. 4 is a diagram showing an example of speeding up using the technique described in Patent Document 1. First, the cost calculation unit 100 calculates the RD cost of a certain CU size layer 1. Next, the cost calculation unit 200 calculates the RD cost of another CU size layer 2.

これらのRDコストをコスト比較部300において比較する。比較結果により、CUサイズをレイヤー1〜4のいずれかのサイズと決定することができる。HMでは4レイヤー分のコスト算出が必要なのに対し、本手法では最小で2レイヤー分のコスト算出で最適なCUサイズ決定をすることが可能となる。   The cost comparison unit 300 compares these RD costs. Based on the comparison result, the CU size can be determined as any one of the layers 1 to 4. In HM, cost calculation for four layers is required, whereas in this method, it is possible to determine the optimum CU size by calculating cost for two layers at a minimum.

<第1実施形態>
次に、本発明の第1実施形態による動画像符号化装置を説明する。図5は同実施形態の構成を示すブロック図である。この図において、符号60は、プレ処理を行うことにより、CUサイズを決定するプレ処理部である。符号70は、決定したCUサイズのみ(1レイヤ分のみ)でコスト算出を行うコスト算出部である。HMや従来手法では複数レイヤーのコスト算出をした結果からCUサイズを決定するのに対し、本実施形態ではプレ処理のみでCUサイズを決定し、決定したCUサイズでのみ(1レイヤー分のみ)コスト算出を行う。プレ処理はコスト算出に比べて、処理負荷が非常に低い。
<First Embodiment>
Next, the moving picture coding apparatus according to the first embodiment of the present invention will be described. FIG. 5 is a block diagram showing the configuration of the embodiment. In this figure, reference numeral 60 denotes a pre-processing unit that determines the CU size by performing pre-processing. Reference numeral 70 denotes a cost calculation unit that performs cost calculation using only the determined CU size (only for one layer). In the HM and the conventional method, the CU size is determined from the result of calculating the costs of a plurality of layers. In the present embodiment, the CU size is determined only by the pre-processing, and the cost is determined only by the determined CU size (for only one layer). Perform the calculation. The pre-processing has a very low processing load compared to the cost calculation.

次に、図6を参照して、図5に示すプレ処理部60がCUサイズを決定する処理(プレ処理)の動作を説明する。図6は、図5に示すプレ処理部60がCUサイズを決定する処理(プレ処理)の動作を示すフローチャートである。まず、プレ処理部60は、所定の(ここの説明では、符号化対象フレーム内の符号化対象LCU(以下では対象LCUと称する)と空間的に同一の)参照フレーム内LCU(以下では参照LCUと称する)を参照する(ステップS1)。   Next, with reference to FIG. 6, the operation of the processing (pre-processing) in which the pre-processing unit 60 shown in FIG. 5 determines the CU size will be described. FIG. 6 is a flowchart showing the operation of the processing (preprocessing) in which the preprocessing unit 60 shown in FIG. 5 determines the CU size. First, the pre-processing unit 60 performs a predetermined reference frame LCU (hereinafter referred to as a reference LCU) (which is spatially the same as an encoding target LCU in the encoding target frame (hereinafter referred to as a target LCU) in this description). Is referred to (step S1).

次に、プレ処理部60は、参照LCU内の面積比(参照LCU内の占める割合)が最も高いCUサイズを、対象LCUにおけるCUサイズとして仮決定する(ステップS2)。例えば、参照LCU内において、32x32のCUサイズの占める割合が75%、16x16のCUサイズの占める割合が25%の場合、CUサイズとして32x32に仮決定されることになる。また、参照LCU内のCUサイズが全て32x32の場合は、32x32がCUサイズとして仮決定される。また、参照LCU内において、32x32のCUサイズの占める割合が50%、16x16のCUサイズの占める割合が50%の場合、最も高いCUサイズが2つあることになるため、この場合は、CUサイズの大きいサイズである32x32がCUサイズとして仮決定されることになる。   Next, the pre-processing unit 60 provisionally determines the CU size having the highest area ratio in the reference LCU (ratio occupied in the reference LCU) as the CU size in the target LCU (step S2). For example, in the reference LCU, when the ratio of the 32 × 32 CU size is 75% and the ratio of the 16 × 16 CU size is 25%, the CU size is provisionally determined to be 32 × 32. If all the CU sizes in the reference LCU are 32 × 32, 32 × 32 is provisionally determined as the CU size. Further, in the reference LCU, when the proportion of the 32 × 32 CU size is 50% and the proportion of the 16 × 16 CU size is 50%, there are two highest CU sizes. In this case, the CU size 32 × 32, which is a large size, is provisionally determined as the CU size.

全てのフレームに対して、図6に示す処理を施した場合、LCU内のCUサイズは、1種類となるはずであるが、図6に示す処理を施すか否かは、選択可能であるため、参照LCU内が複数種類のCUサイズになっている場合もある。この場合に、参照LCU内の面積比(参照LCU内の占める割合)が最も高いCUサイズを選択してその選択したCUサイズに仮決定する。   When the processing shown in FIG. 6 is performed on all the frames, the CU size in the LCU should be one type, but whether or not to perform the processing shown in FIG. 6 can be selected. The reference LCU may have a plurality of types of CU sizes. In this case, a CU size having the highest area ratio in the reference LCU (occupied ratio in the reference LCU) is selected and temporarily determined as the selected CU size.

次に、プレ処理部60は、参照LCU内で面積比(LCU内の占める割合)が最も高い符号化モードがイントラか否かを判定し(ステップS3)、参照LCU内の面積比が最も高い符号化モードがイントラモード以外の場合はステップS2で仮決定したCUサイズを最終的なCUサイズとして、処理を終了する(ステップS6)。仮決定されたCUサイズが、32x32であれば、最終的なCUサイズは、32x32となる。   Next, the pre-processing unit 60 determines whether or not the coding mode having the highest area ratio (ratio occupied in the LCU) in the reference LCU is intra (step S3), and the area ratio in the reference LCU is the highest. If the encoding mode is other than the intra mode, the CU size provisionally determined in step S2 is set as the final CU size, and the process ends (step S6). If the temporarily determined CU size is 32 × 32, the final CU size is 32 × 32.

一方、参照LCU内の面積比が最も高い符号化モードがイントラモードの場合(ステップS3でYes)、プレ処理部60は、以下のいずれか1つの条件分岐を行う(ステップS4)。いずれの条件でも同様の効果を奏する。
(a)対象CUにおいて、アクティビティが低い、かつ静止領域である。
(b)参照フレームのレイヤーが所定値以下である。
On the other hand, when the coding mode having the highest area ratio in the reference LCU is the intra mode (Yes in step S3), the pre-processing unit 60 performs any one of the following conditional branches (step S4). The same effect is obtained under any conditions.
(A) The target CU has a low activity and a static area.
(B) The layer of the reference frame is not more than a predetermined value.

ここでアクティビティとは、例えば輝度の分散値を意味する。また、レイヤーとは階層構造GOP(Group Of Picture)における階層を意味し、Iピクチャがレイヤー0、Pピクチャがレイヤー1などとなる。なお、条件(a)、(b)のうち複数の条件を”かつ”あるいは”または”で組み合わせた条件にて条件分岐を行ってもよい。   Here, the activity means, for example, a luminance dispersion value. A layer means a hierarchy in a hierarchical structure GOP (Group Of Picture), where an I picture is a layer 0, a P picture is a layer 1, and the like. It should be noted that conditional branching may be performed under a condition in which a plurality of conditions among conditions (a) and (b) are combined with “and” or “or”.

上記条件分岐における条件を満たす場合(ステップS4でYes)、プレ処理部60は、以下の(A)、(B)のうち、いずれか1つの処理を行い、ステップS2で仮決定したCUサイズを変更する(ステップS5)。いずれの処理でも同様の効果を奏する。
(A)仮決定CUサイズが32x32の場合は、64x64に拡大する(仮決定CUサイズが8x8、16x16の場合は適用なし)。
(B)仮決定CUサイズより1サイズ大きくする(仮決定CUサイズが8x8、16x16、32x32全ての場合に適用)。
When the condition in the conditional branch is satisfied (Yes in Step S4), the pre-processing unit 60 performs any one of the following (A) and (B), and sets the CU size provisionally determined in Step S2. Change (step S5). Both processes have the same effect.
(A) When the tentatively determined CU size is 32 × 32, the size is expanded to 64 × 64 (not applicable when the tentatively determined CU size is 8 × 8 or 16 × 16).
(B) One size larger than the tentatively determined CU size (applicable to all tentatively determined CU sizes of 8x8, 16x16, and 32x32).

ここで、1サイズ大きくするとは、仮決定のCUサイズが8x8であれば16x16に、仮決定のCUサイズが16x16であれば32x32にすることである。   Here, increasing the size by one means that if the temporarily determined CU size is 8 × 8, the size is 16 × 16, and if the temporarily determined CU size is 16 × 16, the size is 32 × 32.

一方、上記条件分岐(ステップS4)における条件を満たさない場合、プレ処理部60は、ステップS2で仮決定したCUサイズを最終的なCUサイズとして、処理を終了する(ステップS6)。   On the other hand, when the condition in the conditional branch (step S4) is not satisfied, the pre-processing unit 60 sets the CU size provisionally determined in step S2 as the final CU size and ends the processing (step S6).

コスト算出部70は、図6に示すプレ処理部60の処理動作を行った後に決定したCUサイズのみ(1レイヤー分のみ)でコスト算出を行う。図6に示す処理動作を行った場合、LCU内は、1種類のCUサイズのみとなるので、コスト算出の処理が1回で済むことになる。   The cost calculation unit 70 performs cost calculation using only the CU size (only one layer) determined after the processing operation of the pre-processing unit 60 illustrated in FIG. 6 is performed. When the processing operation shown in FIG. 6 is performed, only one type of CU size is stored in the LCU, so that the cost calculation process only needs to be performed once.

このように、画像符号化におけるユニットサイズを決定する際に、所定の事前処理(プレ処理)を行うことにより、従来は複数回必要であったユニットサイズ決定に必要なコスト算出処理の回数を1回とすることが可能となり、この結果符号化演算量を抑制することができる。   As described above, when determining the unit size in image coding, by performing predetermined pre-processing (pre-processing), the number of times of cost calculation processing required for unit size determination, which has been conventionally required multiple times, is set to 1. The number of encoding operations can be suppressed as a result.

前述した説明では、対象LCUと空間的に同一の参照フレーム内LCUを所定の参照LCUとしたが、図7に示す通り、この他に、参照LCU選択処理を行い、空間的に同一の参照フレーム内LCUとその周辺の複数LCUを候補とし、この中から第1の選択処理により選択されるLCU、対象LCUと空間的に同一の参照フレーム内LCUにおける動きベクトルを加味し、第2の選択処理により選択されるLCUとしても、同様の効果を奏する。   In the above description, the reference LCU in the reference frame that is spatially the same as the target LCU is the predetermined reference LCU. However, as shown in FIG. The second selection process includes the inner LCU and a plurality of surrounding LCUs as candidates, taking into account the LCU selected by the first selection process and the motion vector in the reference frame LCU spatially identical to the target LCU. The same effect can be achieved with the LCU selected by the above.

ここで、第1の選択処理について図8を参照して説明する。例えば、空間的に同一の参照フレーム内LCUと、その周辺8個(合計9個)のLCUを参照LCU候補とする。この場合、この9つのLCU候補の中で最もCU数が少ないLCU、ここではCU数が13の(斜線網掛け部分)LCUを所定の参照LCUとして選択し、前述した処理と同様に(a)、(b)の条件分岐を行う。   Here, the first selection process will be described with reference to FIG. For example, spatially identical reference frame LCUs and eight surrounding LCUs (9 in total) are used as reference LCU candidates. In this case, the LCU with the smallest number of CUs among the nine LCU candidates, here, the LCU with 13 CUs (shaded shaded portion) is selected as the predetermined reference LCU, and (a) , (B) conditional branching is performed.

なお、第1の選択処理の参照LCU候補として、空間的に同一の参照フレーム内LCUと、その周辺LCUをあげたが、参照フレーム内のLCU全体、対象LCUと同一スライスとなる参照フレーム内のLCU全体、対象LCUと同一LCUラインとなる参照フレーム内のLCU全体を候補としても同様の効果を奏する。   As reference LCU candidates for the first selection process, spatially identical reference frame LCUs and their peripheral LCUs are listed, but the entire LCU in the reference frame and the reference slice in the same slice as the target LCU are included. The same effect can be obtained even if the entire LCU and the entire LCU in the reference frame that is the same LCU line as the target LCU are candidates.

また同様に、第2の選択処理について図9を用いて説明する。例えば、対象LCUサイズが64x64、空間的に同一の参照フレーム内LCUにおける動きベクトルが(48、−50)だったとする。この場合は、動きベクトルを加味し、空間的に同一の参照フレーム内LCUを(48、−50)移動した場所に最も近い右下のLCU(実線で示すLCU)を参照LCUとして選択し、前述した処理と同様に(a)、(b)の条件分岐を行う。   Similarly, the second selection process will be described with reference to FIG. For example, assume that the target LCU size is 64 × 64 and the motion vectors in the spatially identical reference frame LCU are (48, −50). In this case, the lower right LCU (LCU indicated by a solid line) closest to the place where the spatially identical reference frame LCU is moved (48, -50) is selected as the reference LCU, taking into account the motion vector. The conditional branching of (a) and (b) is performed in the same manner as the above processing.

<第2実施形態>
次に、本発明の第2実施形態による動画像符号化装置を説明する。第2実施形態における構成は図5に示す構成と同様であるので、ここでは詳細な説明を省略する。第2実施形態による動画像符号化装置が第1実施形態による動画像符号化装置と異なる点は、プレ処理の処理動作の一部が異なる点である。図10は、第2実施形態によるCUサイズを決定する処理(プレ処理)の動作を示すフローチャートである。
Second Embodiment
Next, a video encoding apparatus according to the second embodiment of the present invention will be described. Since the configuration in the second embodiment is the same as the configuration shown in FIG. 5, detailed description thereof is omitted here. The video encoding apparatus according to the second embodiment is different from the video encoding apparatus according to the first embodiment in that a part of the pre-processing processing operation is different. FIG. 10 is a flowchart showing the operation of the process (pre-process) for determining the CU size according to the second embodiment.

図10を参照して、本実施形態におけるCUサイズ決定処理(プレ処理)の動作を説明する。まず、プレ処理部60は、参照先フレームの所定の参照LCUを参照し(ステップS11)、参照LCU内の面積比が最も高いCUサイズを、対象LCUにおけるCUサイズとして仮決定する(ステップS12)。   With reference to FIG. 10, the operation of the CU size determination process (pre-process) in this embodiment will be described. First, the pre-processing unit 60 refers to a predetermined reference LCU of a reference frame (step S11), and temporarily determines a CU size having the highest area ratio in the reference LCU as a CU size in the target LCU (step S12). .

次に、プレ処理部60は、LCU内で面積比が最も高い符号化モードがイントラであるか否かを判定する(ステップS13)。この結果、参照LCU内の面積比が最も高い符号化モードがイントラモードの場合は、後述の(C)、(D)の処理を行い、仮決定CUサイズを変更し、CUサイズを決定する(ステップS16)。   Next, the pre-processing unit 60 determines whether or not the coding mode having the highest area ratio in the LCU is intra (step S13). As a result, when the encoding mode having the highest area ratio in the reference LCU is the intra mode, the processes (C) and (D) described later are performed, the provisionally determined CU size is changed, and the CU size is determined ( Step S16).

一方、参照LCU内の面積比が最も高い符号化モードがイントラでない場合(ステップS13でNo)、プレ処理部60は、LCU内で面積比が最も高い符号化モードがインターであるか否かを判定する(ステップS14)。この結果、参照LCU内の面積比が最も高い符号化モードがイントラ、インター符号化以外(Skipモードまたはマージモード)の場合(ステップS14でNo)、プレ処理部60は、ステップS12で仮決定したCUサイズを最終的なCUサイズとして、処理を終了する(ステップS17)。   On the other hand, when the coding mode having the highest area ratio in the reference LCU is not intra (No in step S13), the pre-processing unit 60 determines whether or not the coding mode having the highest area ratio in the LCU is inter. Determination is made (step S14). As a result, when the coding mode having the highest area ratio in the reference LCU is other than intra or inter coding (Skip mode or merge mode) (No in Step S14), the pre-processing unit 60 is provisionally determined in Step S12. The process is terminated with the CU size as the final CU size (step S17).

一方、参照LCU内の面積比が最も高い符号化モードがインターモードの場合(ステップS14でYes)、プレ処理部60は、以下の(c)〜(e)いずれかの1つの条件分岐を行う。いずれの条件も同様の効果を奏する。
(c)対象CUにおいて、アクティビティが低い、かつ静止領域である。
(d)参照LCU内の全CUにおいて動きベクトルが小さい。
(e)参照フレームのレイヤーが所定値以下である。
なお、条件(c)〜(e)のうち複数の条件を”かつ”あるいは”または”で組み合わせた条件にて条件分岐を行ってもよい。
On the other hand, when the encoding mode having the highest area ratio in the reference LCU is the inter mode (Yes in step S14), the pre-processing unit 60 performs one conditional branch of any of the following (c) to (e). . Both conditions have the same effect.
(C) The target CU has a low activity and a static area.
(D) The motion vector is small in all CUs in the reference LCU.
(E) The layer of the reference frame is not more than a predetermined value.
It should be noted that conditional branching may be performed under a condition in which a plurality of conditions among conditions (c) to (e) are combined with “and” or “or”.

上記条件分岐における条件を満たす場合(ステップS15でYes)、プレ処理部60は、以下の(C)、(D)のいずれかの処理を行い、ステップS12で仮決定したCUサイズを変更する(ステップS16)。
(C)仮決定CUサイズが32x32の場合は、64x64に拡大する(仮決定CUサイズが8x8、16x16の場合は適用なし)。
(D)仮決定CUサイズより1サイズ大きくする(仮決定CUサイズが8x8、16x16、32x32全ての場合に適用)。
When the condition in the conditional branch is satisfied (Yes in step S15), the pre-processing unit 60 performs any of the following processes (C) and (D), and changes the CU size provisionally determined in step S12 ( Step S16).
(C) When the tentatively determined CU size is 32 × 32, the size is expanded to 64 × 64 (not applicable when the tentatively determined CU size is 8 × 8 or 16 × 16).
(D) One size larger than the temporarily determined CU size (applicable to all of the temporarily determined CU sizes of 8 × 8, 16 × 16, and 32 × 32).

一方、上記条件分岐における条件を満たさない場合、プレ処理部60は、ステップS12で仮決定したCUサイズを最終的なCUサイズとして、処理を終了する(ステップS17)。   On the other hand, if the condition in the conditional branch is not satisfied, the pre-processing unit 60 sets the CU size provisionally determined in step S12 as the final CU size and ends the process (step S17).

コスト算出部70は、図10に示すプレ処理部60の処理動作を行った後に決定したCUサイズのみ(1レイヤー分のみ)でコスト算出を行う。図10に示す処理動作を行った場合、LCU内は、1種類のCUサイズのみとなるので、コスト算出の処理が1回で済むことになる。   The cost calculation unit 70 performs cost calculation using only the CU size (only one layer) determined after performing the processing operation of the pre-processing unit 60 shown in FIG. When the processing operation shown in FIG. 10 is performed, the LCU has only one type of CU size, so that the cost calculation process can be performed only once.

このように、画像符号化におけるユニットサイズを決定する際に、所定の事前処理(プレ処理)を行うことにより、従来は複数回必要であったユニットサイズ決定に必要なコスト算出処理の回数を1回とすることが可能となり、この結果符号化演算量を抑制することができる。   As described above, when determining the unit size in image coding, by performing predetermined pre-processing (pre-processing), the number of times of cost calculation processing required for unit size determination, which has been conventionally required multiple times, is set to 1. The number of encoding operations can be suppressed as a result.

なお、前述した説明において、仮決定したCUサイズを「最終CUサイズとする」を、「参照LCU内における最大CUサイズを最終CUサイズとする」とする場合も同様の効果を奏する。   In the above description, the same effect can be obtained when the tentatively determined CU size is set to “final CU size” and “the maximum CU size in the reference LCU is set to final CU size”.

また、前述した第1実施形態、第2実施形態を組み合わせることや、対象LCUにおいて用いられる量子化パラメータQPが高い場合は第1実施形態を、QPが低い場合は第2実施形態を適用することなどが可能であり、同様の効果を奏する。   Also, combining the first and second embodiments described above, or applying the first embodiment when the quantization parameter QP used in the target LCU is high, and applying the second embodiment when the QP is low. It is possible to achieve the same effect.

以上説明したように、画像符号化におけるユニットサイズを決定する際に、所定の事前処理を行うことにより、従来は複数回必要であったユニットサイズ決定に必要なコスト算出処理の回数を1回とすることが可能となり、この結果符号化演算量を抑制することができる。   As described above, when determining the unit size in image encoding, by performing predetermined pre-processing, the number of cost calculation processes required for unit size determination, which was conventionally required multiple times, is set to one time. As a result, the amount of encoding calculation can be suppressed.

この構成によれば、画像符号化における符号化対象サイズを決定することで、符号化処理の高速化を図ることができる。また、前述した処理を行うことにより、H.264におけるブロックサイズ決定や、H.265/HEVCにおけるCU(Coding Unit)、PU(Prediction Unit)、TU(Transform Unit)の各サイズ決定の際に高速に処理することができる。   According to this configuration, it is possible to increase the speed of the encoding process by determining the encoding target size in the image encoding. In addition, by performing the processing described above, H.264 block size determination, H.264 In 265 / HEVC, processing can be performed at high speed when each size of CU (Coding Unit), PU (Prediction Unit), and TU (Transform Unit) is determined.

前述した実施形態における動画像符号化装置の全部または一部をコンピュータで実現するようにしてもよい。その場合、この機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することによって実現してもよい。なお、ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものとする。また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムを送信する場合の通信線のように、短時間の間、動的にプログラムを保持するもの、その場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリのように、一定時間プログラムを保持しているものも含んでもよい。また上記プログラムは、前述した機能の一部を実現するためのものであってもよく、さらに前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるものであってもよく、PLD(Programmable Logic Device)やFPGA(Field Programmable Gate Array)等のハードウェアを用いて実現されるものであってもよい。   You may make it implement | achieve all or one part of the moving image encoder in embodiment mentioned above with a computer. In that case, a program for realizing this function may be recorded on a computer-readable recording medium, and the program recorded on this recording medium may be read into a computer system and executed. Here, the “computer system” includes an OS and hardware such as peripheral devices. The “computer-readable recording medium” refers to a storage device such as a flexible medium, a magneto-optical disk, a portable medium such as a ROM and a CD-ROM, and a hard disk incorporated in a computer system. Furthermore, the “computer-readable recording medium” dynamically holds a program for a short time like a communication line when transmitting a program via a network such as the Internet or a communication line such as a telephone line. In this case, a volatile memory inside a computer system serving as a server or a client in that case may be included and a program held for a certain period of time. Further, the program may be a program for realizing a part of the above-described functions, and may be a program capable of realizing the functions described above in combination with a program already recorded in a computer system. It may be realized using hardware such as PLD (Programmable Logic Device) or FPGA (Field Programmable Gate Array).

以上、図面を参照して本発明の実施の形態を説明してきたが、上記実施の形態は本発明の例示に過ぎず、本発明が上記実施の形態に限定されるものではないことは明らかである。したがって、本発明の技術思想及び範囲を逸脱しない範囲で構成要素の追加、省略、置換、その他の変更を行ってもよい。   As mentioned above, although embodiment of this invention has been described with reference to drawings, the said embodiment is only the illustration of this invention, and it is clear that this invention is not limited to the said embodiment. is there. Therefore, additions, omissions, substitutions, and other modifications of the components may be made without departing from the technical idea and scope of the present invention.

コスト算出の処理回数を減らし、演算処理の高速化を図ることが不可欠な用途にも適用できる。   It can also be applied to applications where it is indispensable to reduce the number of times of cost calculation processing and to speed up arithmetic processing.

60・・・プレ処理部、70・・・コスト算出部   60: Pre-processing unit, 70: Cost calculation unit

Claims (9)

動画像を符号化する際の符号化対象ブロックのサイズを決定し、決定した前記符号化対象ブロックのサイズに基づいて符号化する動画像符号化装置が行うブロックサイズ決定方法であって、
参照先フレームの最大符号化ブロックを参照して、該最大符号化ブロック内に占める割合が最大のブロックのサイズに前記符号化対象ブロックのサイズを仮決定する仮決定ステップと、
前記最大符号化ブロック内に占める割合が最大の符号化モードがイントラモードであるか否かを判定する第1の判定ステップと、
前記第1の判定ステップによる判定の結果、前記符号化モードがイントラモードである場合に、仮決定した前記符号化対象ブロックのサイズを1サイズ大きくすることができる条件として、前記符号化対象ブロックにおいてアクティビティが低いかつ静止領域であるという点と前記参照先フレームのレイヤーが所定値以下であるという点とのうち少なくとも一つを満たすか否かを判定する第2の判定ステップと、
前記第2の判定ステップによる判定の結果、前記条件を満たす場合に、仮決定した前記符号化対象ブロックのサイズを1サイズ大きくして前記符号化対象ブロックのサイズに決定し、前記符号化モードがイントラモードでないか、又は、前記条件満たさない場合は、仮決定した前記符号化対象ブロックのサイズに決定するブロックサイズ決定ステップと
を有することを特徴とするブロックサイズ決定方法。
A block size determination method performed by a video encoding device that determines a size of a block to be encoded when encoding a video and performs encoding based on the determined size of the block to be encoded,
A provisional determination step of referring to the maximum encoding block of the reference frame and tentatively determining the size of the encoding target block to the size of the block having the maximum ratio in the maximum encoding block;
A first determination step of determining whether or not an encoding mode having a maximum ratio in the maximum encoding block is an intra mode;
As a result of the determination in the first determination step, when the encoding mode is the intra mode, the condition that the temporarily determined size of the encoding target block can be increased by one size is as follows . A second determination step for determining whether or not at least one of a point that the activity is low and the still region is satisfied and a point that the layer of the reference frame is equal to or less than a predetermined value is satisfied;
As a result of the determination in the second determination step, if the condition is satisfied, the temporarily determined size of the encoding target block is increased by one size to determine the size of the encoding target block, and the encoding mode is squid such in intra mode or, if that does not satisfy the above condition, the block size determination method characterized by having a block size determination step of determining the size of the temporary determined the encoding target block.
前記ブロックサイズ決定ステップにおいて、仮決定した前記符号化対象ブロックのサイズが(32x32)である場合、仮決定した前記符号化対象ブロックのサイズを(64x64)に拡大する、請求項1に記載のブロックサイズ決定方法。2. The block according to claim 1, wherein, in the block size determination step, when the temporarily determined size of the encoding target block is (32 × 32), the temporarily determined size of the encoding target block is expanded to (64 × 64). 3. Sizing method. 前記ブロックサイズ決定ステップにおいて、仮決定した前記符号化対象ブロックのサイズが(8x8)、(16x16)又は(32x32)である場合、仮決定した前記符号化対象ブロックのサイズを1サイズ大きくする、請求項1に記載のブロックサイズ決定方法。In the block size determination step, if the temporarily determined size of the encoding target block is (8x8), (16x16), or (32x32), the size of the temporarily determined encoding target block is increased by one size. Item 2. The block size determination method according to Item 1. 動画像を符号化する際の符号化対象ブロックのサイズを決定し、決定した前記符号化対象ブロックのサイズに基づいて符号化する動画像符号化装置が行うブロックサイズ決定方法であって、
参照先フレームの最大符号化ブロックを参照して、該最大符号化ブロック内に占める割合が最大のブロックのサイズに前記符号化対象ブロックのサイズを仮決定する仮決定ステップと、
前記最大符号化ブロック内に占める割合が最大の符号化モードがイントラモードであるか否かを判定する第1の判定ステップと、
前記第1の判定ステップによる判定の結果、前記符号化モードが前記イントラモードでない場合に、前記最大符号化ブロック内に占める割合が最大の符号化モードがインターモードであるか否かを判定する第2の判定ステップと、
前記第2の判定ステップによる判定の結果、前記符号化モードがインターモードである場合に、仮決定した前記符号化対象ブロックのサイズを1サイズ大きくすることができる条件として、前記符号化対象ブロックにおいてアクティビティが低いかつ静止領域であるという点と前記参照先フレームの最大符号化ブロック内の全符号化ブロックにおいて動きベクトルが小さいという点と前記参照先フレームのレイヤーが所定値以下であるという点とのうち少なくとも一つを満たすか否かを判定する第3の判定ステップと、
前記第3の判定ステップによる判定の結果、前記条件を満たすか記符号化モードがイントラモードである場合に、仮決定した前記符号化対象ブロックのサイズを1サイズ大きくして前記符号化対象ブロックのサイズに決定し、前記符号化モードがイントラモードでもインターモードでもないか、又は、前記条件満たさない場合は、仮決定した前記符号化対象ブロックのサイズに決定するブロックサイズ決定ステップと
を有することを特徴とするブロックサイズ決定方法。
A block size determination method performed by a video encoding device that determines a size of a block to be encoded when encoding a video and performs encoding based on the determined size of the block to be encoded,
A provisional determination step of referring to the maximum encoding block of the reference frame and tentatively determining the size of the encoding target block to the size of the block having the maximum ratio in the maximum encoding block;
A first determination step of determining whether or not an encoding mode having a maximum ratio in the maximum encoding block is an intra mode;
As a result of the determination in the first determination step, when the encoding mode is not the intra mode, it is determined whether or not the encoding mode having the maximum ratio in the maximum encoding block is the inter mode. 2 determination steps;
As a result of the determination in the second determination step, when the encoding mode is the inter mode, as a condition that the temporarily determined size of the encoding target block can be increased by one size , the encoding target block The point that the activity is low and the area is still, the point that the motion vector is small in all the coding blocks in the maximum coding block of the reference frame, and the layer of the reference frame is equal to or less than a predetermined value. A third determination step for determining whether or not at least one of them is satisfied;
Results of the determination by the third determining step, carded satisfy the condition, prior SL when the coding mode is the intra mode, the encoding target size provisionally determined the encoding target block and one size larger determining the block size, squid do in the encoding mode inter mode in intra mode or, if that does not satisfy the above condition, a block size determination step of determining the size of the temporary determined the encoding target block A block size determination method comprising:
請求項1から4のいずれか1項に記載のブロックサイズ決定方法を使用して、HEVC(高効率映像符号化)において符号化対象ユニットのサイズを決定するブロックサイズ決定方法であって、
符号化対象の最大符号化ユニットにおいて用いられる量子化パラメータが所定の値より大きい場合は、請求項1から3のいずれか1項に記載のブロックサイズ決定方法により決定された符号化対象ブロックのサイズを前記符号化対象ユニットのサイズとして決定し、前記量子化パラメータが所定の値以下の場合は請求項に記載のブロックサイズ決定方法により決定された符号化対象ブロックのサイズを前記符号化対象ユニットのサイズとして決定することを特徴とするブロックサイズ決定方法。
A block size determination method for determining a size of an encoding target unit in HEVC (High Efficiency Video Coding) using the block size determination method according to any one of claims 1 to 4 .
The size of the encoding target block determined by the block size determination method according to any one of claims 1 to 3 , when a quantization parameter used in the maximum encoding unit to be encoded is larger than a predetermined value. Is determined as the size of the encoding target unit, and when the quantization parameter is equal to or smaller than a predetermined value, the size of the encoding target block determined by the block size determination method according to claim 4 is determined as the encoding target unit. A block size determination method characterized by determining as a size of a block.
動画像を符号化する際の符号化対象ブロックのサイズを決定するブロックサイズ決定装置であって、
参照先フレームの最大符号化ブロックを参照して、該最大符号化ブロック内に占める割合が最大のブロックのサイズに前記符号化対象ブロックのサイズを仮決定する仮決定手段と、
前記最大符号化ブロック内に占める割合が最大の符号化モードがイントラモードであるか否かを判定する第1の判定手段と、
前記第1の判定手段による判定の結果、前記符号化モードがイントラモードである場合に、仮決定した前記符号化対象ブロックのサイズを1サイズ大きくすることができる条件として、前記符号化対象ブロックにおいてアクティビティが低いかつ静止領域であるという点と前記参照先フレームのレイヤーが所定値以下であるという点とのうち少なくとも一つを満たすか否かを判定する第2の判定手段と、
前記第2の判定手段による判定の結果、前記条件を満たす場合に、仮決定した前記符号化対象ブロックのサイズを1サイズ大きくして前記符号化対象ブロックのサイズに決定し、前記符号化モードがイントラモードでないか、又は、前記条件満たさない場合は、仮決定した前記符号化対象ブロックのサイズに決定するブロックサイズ決定手段と
を備えることを特徴とするブロックサイズ決定装置。
A block size determination device for determining the size of a block to be encoded when encoding a moving image,
Temporary determination means for temporarily determining the size of the block to be encoded to the size of the block having the maximum ratio in the maximum encoded block with reference to the maximum encoded block of the reference frame;
First determination means for determining whether or not an encoding mode having a maximum ratio in the maximum encoding block is an intra mode;
Said first determining means according to the determination result, when the coding mode is intra mode, the size of the temporary determined the encoding target block as a condition can be increased one size, in the encoding target block Second determination means for determining whether or not at least one of a point that the activity is low and a still area and a layer of the reference frame is equal to or less than a predetermined value is satisfied;
As a result of the determination by the second determination means, if the condition is satisfied, the temporarily determined size of the encoding target block is increased by one size to determine the size of the encoding target block, and the encoding mode is squid such in intra mode or, if that does not satisfy the above condition, the block size determining device, characterized in that it comprises a block size determining means for determining the size of the temporary determined the encoding target block.
動画像を符号化する際の符号化対象ブロックのサイズを決定するブロックサイズ決定装置であって、
参照先フレームの最大符号化ブロックを参照して、該最大符号化ブロック内に占める割合が最大のブロックのサイズに前記符号化対象ブロックのサイズを仮決定する仮決定手段と、
前記最大符号化ブロック内に占める割合が最大の符号化モードがイントラモードであるか否かを判定する第1の判定手段と、
前記第1の判定手段による判定の結果、前記符号化モードが前記イントラモードでない場合に、前記最大符号化ブロック内に占める割合が最大の符号化モードがインターモードであるか否かを判定する第2の判定手段と、
前記第2の判定手段による判定の結果、前記符号化モードがインターモードである場合に、仮決定した前記符号化対象ブロックのサイズを1サイズ大きくすることができる条件として、前記符号化対象ブロックにおいてアクティビティが低いかつ静止領域であるという点と前記参照先フレームの最大符号化ブロック内の全符号化ブロックにおいて動きベクトルが小さいという点と前記参照先フレームのレイヤーが所定値以下であるという点とのうち少なくとも一つを満たすか否かを判定する第3の判定手段と、
前記第3の判定手段による判定の結果、前記条件を満たすか記符号化モードがイントラモードである場合に、仮決定した前記符号化対象ブロックのサイズを1サイズ大きくして前記符号化対象ブロックのサイズに決定し、前記符号化モードがイントラモードでもインターモードでもないか、又は、前記条件満たさない場合は、仮決定した前記符号化対象ブロックのサイズに決定するブロックサイズ決定手段と
を備えることを特徴とするブロックサイズ決定装置。
A block size determination device for determining the size of a block to be encoded when encoding a moving image,
Temporary determination means for temporarily determining the size of the block to be encoded to the size of the block having the maximum ratio in the maximum encoded block with reference to the maximum encoded block of the reference frame;
First determination means for determining whether or not an encoding mode having a maximum ratio in the maximum encoding block is an intra mode;
As a result of the determination by the first determination means, when the encoding mode is not the intra mode, it is determined whether or not the encoding mode having the maximum ratio in the maximum encoding block is the inter mode. Two determination means;
The second determination means according to the determination result, when the coding mode is an inter mode, the size of the temporary determined the encoding target block as a condition can be increased one size, in the encoding target block The point that the activity is low and the area is still, the point that the motion vector is small in all the coding blocks in the maximum coding block of the reference frame, and the layer of the reference frame is equal to or less than a predetermined value. Third determining means for determining whether or not at least one of them is satisfied;
Results of determination by said third determination means, carded satisfy the condition, prior SL when the coding mode is the intra mode, the encoding target size provisionally determined the encoding target block and one size larger determining the block size, squid do in the encoding mode inter mode in intra mode or, if that does not satisfy the above condition, the block size determining means for determining the size of the temporary determined the encoding target block A block size determining apparatus comprising:
動画像を符号化する際の符号化対象ブロックのサイズを決定し、決定した前記符号化対象ブロックのサイズに基づいて符号化する動画像符号化装置が行うブロックサイズ決定方法であって、A block size determination method performed by a video encoding device that determines a size of a block to be encoded when encoding a video and performs encoding based on the determined size of the block to be encoded,
参照先フレームの最大符号化ブロックを参照して、該最大符号化ブロック内に占める割合が最大のブロックのサイズに前記符号化対象ブロックのサイズを仮決定する仮決定ステップと、A provisional determination step of referring to the maximum encoding block of the reference frame and tentatively determining the size of the encoding target block to the size of the block having the maximum ratio in the maximum encoding block;
前記最大符号化ブロック内に占める割合が最大の符号化モードがイントラモードであるか否かを判定する第1の判定ステップと、A first determination step of determining whether or not an encoding mode having a maximum ratio in the maximum encoding block is an intra mode;
前記第1の判定ステップによる判定の結果、前記符号化モードがイントラモードである場合に、所定条件を満たすか否かを判定する第2の判定ステップと、A second determination step for determining whether or not a predetermined condition is satisfied when the encoding mode is an intra mode as a result of the determination in the first determination step;
前記第2の判定ステップによる判定の結果、前記所定条件を満たす場合に、仮決定した前記符号化対象ブロックのサイズを判定する第3の判定ステップと、As a result of determination by the second determination step, when the predetermined condition is satisfied, a third determination step of determining the temporarily determined size of the encoding target block;
仮決定した前記符号化対象ブロックのサイズの判定の結果に応じて、仮決定した前記符号化対象ブロックのサイズを1サイズ大きくするか否かを決定するブロックサイズ決定ステップとA block size determining step for determining whether or not to temporarily increase the size of the encoding target block by one size according to a result of the determination of the size of the encoding target block determined temporarily;
を有することを特徴とするブロックサイズ決定方法。A block size determination method characterized by comprising:
コンピュータに、請求項1から5、8のいずれか1項に記載のブロックサイズ決定方法を実行させるためのブロックサイズ決定プログラム。 A block size determination program for causing a computer to execute the block size determination method according to any one of claims 1 to 5 and 8 .
JP2015067116A 2015-03-27 2015-03-27 Block size determination method, block size determination device, and block size determination program Active JP6097326B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015067116A JP6097326B2 (en) 2015-03-27 2015-03-27 Block size determination method, block size determination device, and block size determination program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015067116A JP6097326B2 (en) 2015-03-27 2015-03-27 Block size determination method, block size determination device, and block size determination program

Publications (2)

Publication Number Publication Date
JP2016187140A JP2016187140A (en) 2016-10-27
JP6097326B2 true JP6097326B2 (en) 2017-03-15

Family

ID=57202666

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015067116A Active JP6097326B2 (en) 2015-03-27 2015-03-27 Block size determination method, block size determination device, and block size determination program

Country Status (1)

Country Link
JP (1) JP6097326B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113973202B (en) * 2021-10-12 2025-08-05 百果园技术(新加坡)有限公司 Video encoding method, device, equipment and storage medium
JP7450078B1 (en) 2023-02-15 2024-03-14 Nttイノベーティブデバイス株式会社 Video encoding device and video encoding method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1860796B (en) * 2004-07-12 2010-06-16 索尼株式会社 Encoding method, encoding device, decoding method, and decoding device
WO2010070818A1 (en) * 2008-12-16 2010-06-24 株式会社日立製作所 Moving image encoding device, moving image encoding method, moving image decoding device and moving image decoding method
CN104272734A (en) * 2012-05-15 2015-01-07 索尼公司 Image processing device and image processing method
JP5755781B2 (en) * 2014-05-07 2015-07-29 フラウンホーファー−ゲゼルシャフト・ツール・フェルデルング・デル・アンゲヴァンテン・フォルシュング・アインゲトラーゲネル・フェライン Interplane prediction

Also Published As

Publication number Publication date
JP2016187140A (en) 2016-10-27

Similar Documents

Publication Publication Date Title
KR102800978B1 (en) A method and an apparatus for processing a video signal using subblock-based motion compensation
TWI759389B (en) Low-complexity sign prediction for video coding
JP4047879B2 (en) Motion vector detection apparatus and motion vector detection method
US10652570B2 (en) Moving image encoding device, moving image encoding method, and recording medium for recording moving image encoding program
JP5719410B2 (en) Image coding method, image coding apparatus, and image coding program
KR102327942B1 (en) Method and device for determining coding unit partitioning, computing device and readable storage medium
US20200228831A1 (en) Intra prediction mode based image processing method, and apparatus therefor
WO2010029850A1 (en) Image coding device, image decoding device, image coding method, image decoding method, and program
JP6569665B2 (en) Image decoding apparatus, image decoding method, and integrated circuit
CN111586405B (en) Prediction mode rapid selection method based on ALF filtering in multifunctional video coding
KR20210134555A (en) Apparatus and method for intra-prediction based video encoding or decoding
WO2018171888A1 (en) Apparatus and method for de-blocking filtering
US20160269737A1 (en) Intra prediction device and intra prediction method
JP6097326B2 (en) Block size determination method, block size determination device, and block size determination program
US10237561B2 (en) Video coding apparatus and video coding method
JP5770647B2 (en) Image encoding method, image encoding device, image decoding method, image decoding device, and programs thereof
WO2013014693A1 (en) Video decoding method and image encoding method
CN118414826A (en) System and method for video encoding using image segmentation
US20250159250A1 (en) Image decoding device, image decoding method, and program
JP7595145B2 (en) Video encoding device and video encoding method
JP2024115731A (en) VIDEO ENCODING APPARATUS AND VIDEO ENCODING METHOD
JP2013207402A (en) Image encoding device and program
US10743009B2 (en) Image processing apparatus and image processing method
JP6492847B2 (en) Video encoding system, video encoding circuit, and video encoding method
JP6308409B2 (en) Moving picture coding apparatus and moving picture coding method

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20161108

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170104

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170217

R150 Certificate of patent or registration of utility model

Ref document number: 6097326

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350