[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN103024395A - Device and method for multi-view video coding mode selection - Google Patents

Device and method for multi-view video coding mode selection Download PDF

Info

Publication number
CN103024395A
CN103024395A CN2012105929087A CN201210592908A CN103024395A CN 103024395 A CN103024395 A CN 103024395A CN 2012105929087 A CN2012105929087 A CN 2012105929087A CN 201210592908 A CN201210592908 A CN 201210592908A CN 103024395 A CN103024395 A CN 103024395A
Authority
CN
China
Prior art keywords
rate
distortion
current macroblock
frame
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.)
Granted
Application number
CN2012105929087A
Other languages
Chinese (zh)
Other versions
CN103024395B (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.)
Tsinghua University
Original Assignee
Tsinghua University
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 Tsinghua University filed Critical Tsinghua University
Priority to CN201210592908.7A priority Critical patent/CN103024395B/en
Publication of CN103024395A publication Critical patent/CN103024395A/en
Application granted granted Critical
Publication of CN103024395B publication Critical patent/CN103024395B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

本发明提出一种多视点视频编码模式选择方法及装置。其中,方法包括以下步骤:输入视频图像和相应的深度图,并将视频图像的每一帧划分为多个基本的编码单元,即宏块;判断当前编码的宏块的位置,设置预测SKIP模式的率失真阈值并计算当前宏块选用SKIP模式下的率失真代价;根据率失真阈值和率失真代价计算当前宏块的运动幅度;以及根据当前宏块的运动幅度大小选取相应的候选模式。根据本发明实施例的方法,通过基于块的自适应阈值来预测SKIP模式,避免了大量不必要的计算,并且根据相邻宏块以及相邻视点对应宏块的运动向量来预测当前宏块的运动幅度,再根据运动幅度的大小检查符合的候选模式,由此可以减小搜索范围、减少运算时间。

The present invention proposes a method and device for selecting a multi-viewpoint video encoding mode. Wherein, the method includes the following steps: input a video image and a corresponding depth map, and divide each frame of the video image into a plurality of basic coding units, namely macroblocks; judge the position of the currently coded macroblock, and set the prediction SKIP mode The rate-distortion threshold and calculate the rate-distortion cost of the current macroblock in SKIP mode; calculate the motion range of the current macro block according to the rate-distortion threshold and the rate-distortion cost; and select the corresponding candidate mode according to the motion range of the current macro block. According to the method of the embodiment of the present invention, by predicting the SKIP mode based on the block-based adaptive threshold, a large amount of unnecessary calculations are avoided, and the motion vector of the current macroblock is predicted according to the motion vector of the adjacent macroblock and the corresponding macroblock of the adjacent view. The motion range, and then check the corresponding candidate patterns according to the size of the motion range, so that the search range can be reduced and the calculation time can be reduced.

Description

多视点视频编码模式选择方法及装置Method and device for selecting multi-view video encoding mode

技术领域technical field

本发明涉及视频编码技术领域,特别涉及一种多视点视频编码模式选择方法及装置。The present invention relates to the technical field of video coding, in particular to a method and device for selecting a multi-viewpoint video coding mode.

背景技术Background technique

随着人们对立体视觉感知需求的不断增长,多视点视频技术吸引了越来越多的国内外学者以及工业界的关注。与普通二维视频相比,多视点视频增加了场景的深度信息,从而能给用户提供视觉上的现实感和逼真感,但是同时也增加了至少一倍的视频数据需要处理。因此,对于多视点视频的编码,引入视差估计的预测方式来去除视点之间的冗余。With the continuous increase of people's demand for stereoscopic vision perception, multi-view video technology has attracted more and more domestic and foreign scholars and industrial circles. Compared with ordinary two-dimensional video, multi-view video increases the depth information of the scene, thereby providing users with a sense of visual reality and lifelikeness, but at the same time it also increases at least double the video data to be processed. Therefore, for multi-view video coding, the prediction method of disparity estimation is introduced to remove the redundancy between views.

现有的视频编码标准,H.264等虽然在编码效率方面具有明显的优势;但它们为提高压缩效率所引入的高计算复杂度反而成了实际应用中所无法承受的缺陷。例如在H.264/MVC的JMVM模型中,为了获得更高的视频编码效率,JMVM提供了7种块的大小(16×16,16×8,8×16,8×8,8×4,4×8,以及4×4)用于运动预测以及视差预测的模式选择。对于inter帧的宏块编码,有11中候选模式:SKIP,inter_16×16,inter_16×8,inter_8×16,inter_8×8,inter_8×4,inter_4×8,inter_4×4,intra_4×4,intra_8×8,,intra_16×16,在选择编码模式的时候则需要对不同的分割模式分别进行运动估计,利用率失真优化(RDO)计算编码代价,比较并选择最小的编码模式作为最优的编码模式。这种多模式运动估计和模式决策具有很高的计算复杂度,其编码时间大约占了总处理时间的一半以上。可见,合理高效的模式决策算法对于视频编码的意义重大。Although existing video coding standards, such as H.264, have obvious advantages in coding efficiency, the high computational complexity they introduce to improve compression efficiency has become an unbearable defect in practical applications. For example, in the JMVM model of H.264/MVC, in order to obtain higher video coding efficiency, JMVM provides 7 block sizes (16×16, 16×8, 8×16, 8×8, 8×4, 4×8, and 4×4) for motion prediction and disparity prediction mode selection. For the macroblock coding of the inter frame, there are 11 candidate modes: SKIP, inter_16×16, inter_16×8, inter_8×16, inter_8×8, inter_8×4, inter_4×8, inter_4×4, intra_4×4, intra_8× 8,, intra_16×16, when selecting the encoding mode, it is necessary to perform motion estimation on different partition modes, use rate distortion optimization (RDO) to calculate the encoding cost, compare and select the smallest encoding mode as the optimal encoding mode. This multi-modal motion estimation and mode decision has high computational complexity, and its encoding time accounts for more than half of the total processing time. It can be seen that a reasonable and efficient mode decision algorithm is of great significance for video coding.

如今,为了满足更广角度的多视点视频图像生成,在进行编码时通常除了输入多视点视频以外,还会输入相应的深度视频,从而可以再输出端生成更多角度的合成视点视频图像。这种编码模式虽然满足了广角甚至全息的视频需求,但是庞大的数据量以及运算量对于视频的实时应用有了很大的限制。Nowadays, in order to meet the needs of wider-angle multi-viewpoint video image generation, in addition to inputting multi-viewpoint video, the corresponding depth video is usually input during encoding, so that synthetic viewpoint video images from more angles can be generated at the output end. Although this encoding mode meets the needs of wide-angle and even holographic video, the huge amount of data and calculations have greatly restricted the real-time application of video.

目前,有不少基于单视点视频编码的快速模式选择方法。但是,由于多视点编码框架中引入了视差估计的预测方法并且引入了视频深度的信息,从而导致大部分已有的单视点视频编码快速算法都不适用于多视点视频的编码。Currently, there are many fast mode selection methods based on single-view video coding. However, most of the existing fast single-view video coding algorithms are not suitable for multi-view video coding due to the introduction of the prediction method of disparity estimation and the introduction of video depth information in the multi-view coding framework.

发明内容Contents of the invention

本发明的目的旨在至少解决上述的技术缺陷之一。The object of the present invention is to solve at least one of the above-mentioned technical drawbacks.

为达到上述目的,本发明一方面的实施例提出一种多视点视频编码模式选择方法,包括以下步骤:S1:输入视频图像和相应的深度图,并将所述视频图像的每一帧划分为多个基本的编码单元,即宏块;S2:判断当前编码的所述宏块的位置,设置预测SKIP模式的率失真阈值并计算当前宏块选用SKIP模式下的率失真代价;S3:根据所述率失真阈值和所述率失真代价计算当前宏块的运动幅度;以及S4:根据当前宏块的所述运动幅度大小选取相应的候选模式。In order to achieve the above object, an embodiment of the present invention proposes a method for selecting a multi-viewpoint video coding mode, including the following steps: S1: Input a video image and a corresponding depth map, and divide each frame of the video image into A plurality of basic coding units, that is, macroblocks; S2: determine the position of the currently encoded macroblock, set the rate-distortion threshold for predicting SKIP mode and calculate the rate-distortion cost of the current macroblock in SKIP mode; S3: according to the Calculate the motion range of the current macroblock based on the rate-distortion threshold and the rate-distortion cost; and S4: Select a corresponding candidate mode according to the motion range of the current macroblock.

根据本发明实施例的方法,通过基于块的自适应阈值来预测SKIP模式,避免了大量不必要的计算,并且根据相邻宏块以及相邻视点对应宏块的运动向量来预测当前宏块的运动幅度,再根据运动幅度的大小检查符合的候选模式,由此可以减小搜索范围、减少运算时间。According to the method of the embodiment of the present invention, by predicting the SKIP mode based on the block-based adaptive threshold, a large amount of unnecessary calculations are avoided, and the motion vector of the current macroblock is predicted according to the motion vector of the adjacent macroblock and the corresponding macroblock of the adjacent view. The motion range, and then check the corresponding candidate patterns according to the size of the motion range, so that the search range can be reduced and the calculation time can be reduced.

在本发明的一个实施例中,所述步骤S2具体包括:S21:如果当前宏块所在帧为I帧或者当前宏块处于所在帧的第一行或者第一列,则使用率失真优化方法检查所有的帧内帧间模式,选择率失真代价最小的模式为最佳编码模式;S22:如果当前宏块所在视点为独立编码视点,同时所在帧不为I帧且当前宏块不处于所在帧的第一行或者第一列,则计算当前宏块选用SKIP模式的第一率失真代价并设置用来预测SKIP模式的第一率失真阈值;以及S23:如果当前宏块所在视点为联合预测编码视点,同时所在帧不为I帧且当前宏块不处于所在帧的第一行或者第一列,则设置用来预测SKIP模式的第二率失真阈值并计算当前宏块选用SKIP模式的第二率失真代价。In one embodiment of the present invention, the step S2 specifically includes: S21: If the frame where the current macroblock is located is an I frame or the current macroblock is located in the first row or first column of the frame, use the rate-distortion optimization method to check For all intra-frame and inter-frame modes, select the mode with the smallest rate-distortion cost as the best coding mode; S22: If the viewpoint of the current macroblock is an independent coding viewpoint, and the current frame is not an I frame and the current macroblock is not in the frame In the first row or column, calculate the first rate-distortion cost of the current macroblock using SKIP mode and set the first rate-distortion threshold used to predict the SKIP mode; and S23: If the view of the current macroblock is a joint predictive coding view , while the frame is not an I frame and the current macroblock is not in the first row or column of the frame, then set the second rate-distortion threshold used to predict the SKIP mode and calculate the second rate for the current macroblock to use the SKIP mode Distortion cost.

在本发明的一个实施例中,所述步骤S3具体包括:比较所述第一率失真代价和所述第一率失真阈值;当所述第一率失真代价小于所述第一率失真阈值时,将SKIP模式为当前宏块的最佳编码模式;以及当所述第一率失真代价大于所述第一率失真阈值时,计算当前宏块的第一运动幅度。In an embodiment of the present invention, the step S3 specifically includes: comparing the first rate-distortion cost with the first rate-distortion threshold; when the first rate-distortion cost is less than the first rate-distortion threshold , setting the SKIP mode as the best coding mode of the current macroblock; and calculating a first motion magnitude of the current macroblock when the first rate-distortion cost is greater than the first rate-distortion threshold.

在本发明的一个实施例中,所述步骤S3还包括:比较所述第二率失真代价和所述第二率失真阈值;当所述第二率失真代价小于所述第二率失真阈值时,将SKIP模式为当前宏块的最佳编码模式;以及当所述第二率失真代价大于所述第二率失真阈值时,计算当前宏块的第一运动幅度。In an embodiment of the present invention, the step S3 further includes: comparing the second rate-distortion cost with the second rate-distortion threshold; when the second rate-distortion cost is smaller than the second rate-distortion threshold , setting SKIP mode as the best coding mode of the current macroblock; and calculating a first motion magnitude of the current macroblock when the second rate-distortion cost is greater than the second rate-distortion threshold.

为达到上述目的,本发明另一方面的实施例提出一种多视点视频编码模式选择装置,包括划分模块,用于输入视频图像和相应的深度图,并将所述视频图像的每一帧划分为多个基本的编码单元,即宏块;判断设置模块,用于判断当前编码的所述宏块的位置,设置预测SKIP模式的率失真阈值并计算当前宏块选用SKIP模式下的率失真代价;计算模块,用于根据所述率失真阈值和所述率失真代价计算当前宏块的运动幅度;以及选取模块,用于根据当前宏块的所述运动幅度大小选取相应的候选模式。In order to achieve the above object, another embodiment of the present invention proposes a multi-view video coding mode selection device, including a division module, which is used to input a video image and a corresponding depth map, and divide each frame of the video image into It is a plurality of basic coding units, that is, macroblocks; a judgment setting module is used to judge the position of the macroblock currently encoded, set the rate-distortion threshold for predicting the SKIP mode and calculate the rate-distortion cost under the SKIP mode for the current macroblock a calculation module, configured to calculate the motion amplitude of the current macroblock according to the rate-distortion threshold and the rate-distortion cost; and a selection module, configured to select a corresponding candidate mode according to the motion amplitude of the current macroblock.

根据本发明实施例的装置,通过基于块的自适应阈值来预测SKIP模式,避免了大量不必要的计算,并且根据相邻宏块以及相邻视点对应宏块的运动向量来预测当前宏块的运动幅度,再根据运动幅度的大小检查符合的候选模式,由此可以减小搜索范围、减少运算时间。According to the device of the embodiment of the present invention, by predicting the SKIP mode based on the block-based adaptive threshold, a large number of unnecessary calculations are avoided, and the motion vector of the current macroblock is predicted according to the motion vector of the adjacent macroblock and the corresponding macroblock of the adjacent view. The motion range, and then check the corresponding candidate patterns according to the size of the motion range, so that the search range can be reduced and the calculation time can be reduced.

在本发明的一个实施例中,所述判断设置模块具体包括:选择单元,用于当当前宏块所在帧为I帧或者当前宏块处于所在帧的第一行或者第一列,则使用率失真优化方法检查所有的帧内帧间模式,选择率失真代价最小的模式为最佳编码模式;第一计算单元,用于当当前宏块所在视点为独立编码视点,同时所在帧不为I帧且当前宏块不处于所在帧的第一行或者第一列,则计算当前宏块选用SKIP模式的第一率失真代价并设置用来预测SKIP模式的第一率失真阈值;以及第二计算单元,用于当当前宏块所在视点为联合预测编码视点,同时所在帧不为I帧且当前宏块不处于所在帧的第一行或者第一列,则设置用来预测SKIP模式的第二率失真阈值并计算当前宏块选用SKIP模式的第二率失真代价。In one embodiment of the present invention, the judgment setting module specifically includes: a selection unit, used to determine the usage rate when the frame where the current macroblock is located is an I frame or the current macroblock is in the first row or first column of the frame where the macroblock is located. The distortion optimization method checks all intra-frame and inter-frame modes, and selects the mode with the smallest rate-distortion cost as the best encoding mode; the first calculation unit is used when the view of the current macroblock is an independent encoding view, and the frame is not an I frame And the current macroblock is not in the first row or the first column of the frame, then calculate the first rate-distortion cost of selecting the SKIP mode for the current macroblock and set the first rate-distortion threshold for predicting the SKIP mode; and the second calculation unit , used to set the second rate used to predict the SKIP mode when the view of the current macroblock is the joint predictive coding view, and the frame is not an I frame and the current macroblock is not in the first row or column of the frame Distortion threshold and calculate the second rate-distortion cost when the current macroblock selects the SKIP mode.

在本发明的一个实施例中,所述计算模块具体包括:第一比较单元,用于比较所述第一率失真代价和所述第一率失真阈值;第一处理单元,用于当所述第一率失真代价小于所述第一率失真阈值时,将SKIP模式为当前宏块的最佳编码模式;以及第二处理单元,用于当所述第一率失真代价大于所述第一率失真阈值时,计算当前宏块的第一运动幅度。In an embodiment of the present invention, the calculation module specifically includes: a first comparison unit, configured to compare the first rate-distortion cost with the first rate-distortion threshold; a first processing unit, configured to When the first rate-distortion cost is less than the first rate-distortion threshold, the SKIP mode is the best coding mode for the current macroblock; and a second processing unit is configured to use when the first rate-distortion cost is greater than the first rate-distortion rate When the distortion threshold is set, the first motion magnitude of the current macroblock is calculated.

在本发明的一个实施例中,所述计算模块具体还包括:第二比较单元,用于比较所述第二率失真代价和所述第二率失真阈值;第三处理单元,用于当所述第二率失真代价小于所述第二率失真阈值时,将SKIP模式为当前宏块的最佳编码模式;以及第四处理单元,用于当所述第二率失真代价大于所述第二率失真阈值时,计算当前宏块的第一运动幅度。In an embodiment of the present invention, the calculation module specifically further includes: a second comparison unit, configured to compare the second rate-distortion cost with the second rate-distortion threshold; a third processing unit, configured to When the second rate-distortion cost is less than the second rate-distortion threshold, set the SKIP mode as the best coding mode for the current macroblock; and a fourth processing unit is configured to use when the second rate-distortion cost is greater than the second When the rate-distortion threshold is set, the first motion magnitude of the current macroblock is calculated.

本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.

附图说明Description of drawings

本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and easy to understand from the following description of the embodiments in conjunction with the accompanying drawings, wherein:

图1为根据本发明一个实施例的多视点视频编码模式选择方法的流程图;FIG. 1 is a flowchart of a method for selecting a multi-viewpoint video coding mode according to an embodiment of the present invention;

图2为根据本发明一个实施例的多视点视频编码模式选择方法的具体流程图;FIG. 2 is a specific flowchart of a method for selecting a multi-viewpoint video coding mode according to an embodiment of the present invention;

图3为根据本发明一个实施例的独立编码视点中,宏块与其时间、空间相邻宏块的位置关系图;FIG. 3 is a positional diagram of a macroblock and its temporal and spatial adjacent macroblocks in an independently encoded viewpoint according to an embodiment of the present invention;

图4为根据本发明一个实施例的联合预测编码视点中,宏块与其时间、空间、视点间相邻宏块的位置关系图;以及FIG. 4 is a diagram of the positional relationship between a macroblock and its adjacent macroblocks in time, space, and view in a joint predictive coding view according to an embodiment of the present invention; and

图5为根据本发明一个实施例的多视点视频编码模式选择装置的框架图。Fig. 5 is a frame diagram of an apparatus for selecting a multi-view video coding mode according to an embodiment of the present invention.

具体实施方式Detailed ways

下面详细描述本发明的实施例,实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能解释为对本发明的限制。Embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention.

图1为本发明实施例的多视点视频编码模式选择方法的流程图。图2为根据本发明一个实施例的多视点视频编码模式选择方法的具体流程图。如图1和图2所示,根据本发明实施例的多视点视频编码模式选择方法,包括以下步骤:FIG. 1 is a flowchart of a method for selecting a multi-viewpoint video coding mode according to an embodiment of the present invention. Fig. 2 is a specific flowchart of a method for selecting a multi-viewpoint video coding mode according to an embodiment of the present invention. As shown in Figure 1 and Figure 2, the method for selecting a multi-viewpoint video coding mode according to an embodiment of the present invention includes the following steps:

S101,输入视频图像和相应的深度图,并将视频图像的每一帧划分为多个基本的编码单元,即宏块。S101. Input a video image and a corresponding depth map, and divide each frame of the video image into multiple basic coding units, namely macroblocks.

S102,判断当前编码的宏块的位置,设置预测SKIP模式的率失真阈值并计算当前宏块选用SKIP模式下的率失真代价。S102. Determine the position of the currently coded macroblock, set the rate-distortion threshold for predicting the SKIP mode, and calculate the rate-distortion cost when the current macroblock selects the SKIP mode.

如果当前宏块所在帧为I帧或者当前宏块处于所在帧的第一行或者第一列,则使用率失真优化方法检查所有的帧内帧间模式,选择率失真代价最小的模式为最佳编码模式。If the frame where the current macroblock is located is an I frame or the current macroblock is in the first row or column of the frame, use the rate-distortion optimization method to check all intra-frame inter-frame modes, and select the mode with the smallest rate-distortion cost as the best encoding mode.

如果当前宏块所在视点为独立编码视点,同时所在帧不为I帧且当前宏块不处于所在帧的第一行或者第一列,则计算当前宏块选用SKIP模式的第一率失真代价RDskip1并设置用来预测SKIP模式的第一率失真阈值

Figure BDA00002693098800061
通过如下公式计算:If the viewpoint of the current macroblock is an independently coded viewpoint, and the frame is not an I frame and the current macroblock is not in the first row or column of the frame, calculate the first rate-distortion cost RD of the current macroblock using SKIP mode skip1 and set the first rate-distortion threshold used to predict SKIP mode
Figure BDA00002693098800061
Calculated by the following formula:

TT skipskip 11 == ΣΣ ii == 11 44 WW ii ·· II ii ·· RDRD coscos tt (( SKIPSKIP )) ii ΣΣ ii == 11 44 WW ii ·· II ii ,,

其中,RDcost(SKIP)i分别为计算当前宏块(图3中宏块0)的左方宏块(图3中宏块1)、上方宏块(图3中宏块2),右上方宏块(图3中宏块3)以及前一帧中与当前宏块所在位置相同的宏块(图3中宏块4)在SKIP模式下的率失真代价。Wi为相应权重系数,由线下训练得出。Among them, RDcost(SKIP) i is to calculate the left macroblock (macroblock 1 in Fig. 3), the upper macroblock (macroblock 2 in Fig. 3), and the upper right macroblock of the current macroblock (macroblock 0 in Fig. 3), respectively. The rate-distortion cost of the block (macroblock 3 in Figure 3) and the macroblock at the same position as the current macroblock in the previous frame (macroblock 4 in Figure 3) in SKIP mode. W i is the corresponding weight coefficient, which is obtained from offline training.

Ii的定义如下所示:The definition of I i is as follows:

如果当前宏块所在视点为联合预测编码视点,同时所在帧不为I帧且当前宏块不处于所在帧的第一行或者第一列,则设置用来预测SKIP模式的第二率失真代价RDskip2并计算当前宏块选用SKIP模式的第二率失真阈值Tskip2If the view of the current macroblock is a joint predictive coding view, and the frame is not an I frame and the current macroblock is not in the first row or column of the frame, then set the second rate-distortion cost RD used to predict the SKIP mode skip2 and calculate the second rate-distortion threshold T skip2 for which the current macroblock selects the SKIP mode.

TT skipskip 22 == ΣΣ ii == 11 1313 WW ii ·· II ii ·&Center Dot; RDRD coscos tt (( SKIPSKIP )) ii ΣΣ ii == 11 1313 WW ii ·&Center Dot; II ii ,,

其中,RDcost(SKIP)i分别为图4中宏块1至宏块13分别在SKIP模式下的率失真代价。这些宏块分别为当前宏块0在当前视点视频中的左方宏块(宏块1)、上方宏块(宏块2)、右上方宏块(宏块3),前一帧中与当前宏块所在位置相同的宏块(宏块4)和相邻已编码视点通过视差位移的宏块(宏块5)及其相邻8个宏块(宏块6~宏块13)。宏块0与宏块5间的视差由当前视点当前宏块的深度推导而出。Wherein, RDcost(SKIP) i are rate-distortion costs of macroblock 1 to macroblock 13 in SKIP mode in FIG. 4 respectively. These macroblocks are the left macroblock (macroblock 1), the upper macroblock (macroblock 2), and the upper right macroblock (macroblock 3) of the current macroblock 0 in the current view video. The macroblock with the same macroblock position (macroblock 4) and the macroblock (macroblock 5) whose adjacent coded viewpoint has been displaced by parallax and its 8 adjacent macroblocks (macroblock 6~macroblock 13). The disparity between macroblock 0 and macroblock 5 is derived from the depth of the current macroblock at the current view.

Wi为相应权重系数,由线下训练得出。Ii的定义如下所示:W i is the corresponding weight coefficient, which is obtained from offline training. The definition of I i is as follows:

Figure BDA00002693098800071
Figure BDA00002693098800071

步骤S103,根据率失真阈值和率失真代价计算当前宏块的运动幅度。Step S103, calculating the motion amplitude of the current macroblock according to the rate-distortion threshold and the rate-distortion cost.

比较第一率失真代价RDskip1和第一率失真阈值

Figure BDA00002693098800072
Compare the first rate-distortion cost RD skip1 with the first rate-distortion threshold
Figure BDA00002693098800072

当第一率失真代价RDskip1小于第一率失真阈值

Figure BDA00002693098800073
时,将SKIP模式为当前宏块的最佳编码模式。When the first rate-distortion cost RD skip1 is less than the first rate-distortion threshold
Figure BDA00002693098800073
When , the SKIP mode is the best coding mode for the current macroblock.

当第一率失真代价RDskip1大于第一率失真阈值

Figure BDA00002693098800074
时,计算当前宏块的第一运动幅度AMV1,AMV1的计算公式如下:When the first rate-distortion cost RD skip1 is greater than the first rate-distortion threshold
Figure BDA00002693098800074
, calculate the first motion amplitude A MV1 of the current macroblock, and the calculation formula of A MV1 is as follows:

首先取图3中宏块1至宏块4的运动矢量MVi,(i=1,2,3,4),并记MVi=(xi,yi)。则, A MV 1 = | Σ i = 1 4 W i · K i · x i Σ i = 1 4 W i | + | Σ i = 1 4 W i · K i · y i Σ i = 1 4 W i | , 其中,Wi为相应权重系数,由线下训练得出,Ki的定义如下所示: First take the motion vectors MV i , (i=1, 2, 3, 4) of macroblock 1 to macroblock 4 in Fig. 3, and record MV i = (xi , y i ). but, A MV 1 = | Σ i = 1 4 W i &Center Dot; K i &Center Dot; x i Σ i = 1 4 W i | + | Σ i = 1 4 W i &Center Dot; K i &Center Dot; the y i Σ i = 1 4 W i | , Among them, W i is the corresponding weight coefficient, which is obtained from offline training, and the definition of K i is as follows:

比较第二率失真代价RDskip2和第二率失真阈值Tskip2Compare the second rate-distortion cost RD skip2 with the second rate-distortion threshold T skip2 .

当第二率失真代价RDskip2小于第二率失真阈值Tskip2时,将SKIP模式为当前宏块的最佳编码模式。When the second rate-distortion cost RD skip2 is smaller than the second rate-distortion threshold T skip2 , the SKIP mode is the best coding mode for the current macroblock.

当第二率失真代价大于第二率失真阈值时,计算当前宏块的第二运动幅度AMV2,AMV2的计算公式如下:When the second rate-distortion cost is greater than the second rate-distortion threshold, the second motion amplitude A MV2 of the current macroblock is calculated, and the calculation formula of A MV2 is as follows:

首先取图4中宏块1至宏块13的运动矢量MVi,(i=1,2,...,13),并记MVi=(xi,yi)。则, A MV 2 = | Σ i = 1 13 W i · K i · x i Σ i = 1 13 W i | + | Σ i = 1 13 W i · K i · y i Σ i = 1 13 W i | , 其中,Wi为相应权重系数,由线下训练得出,Ki的定义如下所示: First take the motion vectors MV i , (i=1, 2, . . . , 13) of macroblock 1 to macroblock 13 in Fig. 4, and record MV i = (xi , y i ). but, A MV 2 = | Σ i = 1 13 W i · K i &Center Dot; x i Σ i = 1 13 W i | + | Σ i = 1 13 W i &Center Dot; K i &Center Dot; the y i Σ i = 1 13 W i | , Among them, W i is the corresponding weight coefficient, which is obtained from offline training, and the definition of K i is as follows:

S104,根据当前宏块的运动幅度大小选取相应的候选模式。S104. Select a corresponding candidate mode according to the magnitude of motion of the current macroblock.

根据当前宏块的运动幅度AMV1或AMV2的大小选取相应的候选模式。A corresponding candidate mode is selected according to the magnitude of the motion amplitude A MV1 or A MV2 of the current macroblock.

(1)当AMV1≤1时,将SKIP和ME16×16作为候选模式并选取率失真最小的模式为当前宏块的最佳编码模式。(1) When A MV1 ≤ 1, take SKIP and ME16×16 as candidate modes and select the mode with the smallest rate-distortion as the best coding mode for the current macroblock.

(2)对于1<AMV1≤2时,将ME16×8,ME8×16作为候选模式进行率失真优化计算并选择率失真代价最小的模式为最佳编码模式。(2) When 1<A MV1 ≤2, use ME16×8 and ME8×16 as candidate modes for rate-distortion optimization calculation and select the mode with the smallest rate-distortion cost as the best coding mode.

(3)对于2<AMV1≤5时,选择MV_P8×8模式为当前宏块编码并使用率失真优化方法选取率失真代价最小的8×8亚宏块的分割情况.(3) When 2<A MV1 ≤5, select the MV_P8×8 mode to encode the current macroblock and use the rate-distortion optimization method to select the segmentation of the 8×8 sub-macroblock with the smallest rate-distortion cost.

(4)对于AMV1>5时,选择DE(16×16,16×8,8×16,8×8),intra_4×4,intra_8×8,intra_16×16为候选模式并选取率失真最小的模式为当前宏块的最佳编码模式。(4) For A MV1 >5, select DE (16×16, 16×8, 8×16, 8×8), intra_4×4, intra_8×8, intra_16×16 as candidate modes and select the one with the smallest rate-distortion mode is the best coding mode for the current macroblock.

(5)当AMV2≤1时,将SKIP和ME16×16作为候选模式并选取率失真最小的模式为当前宏块的最佳编码模式。(5) When A MV2 ≤ 1, take SKIP and ME16×16 as candidate modes and select the mode with the smallest rate-distortion as the best coding mode for the current macroblock.

(6)对于1<AMV2≤2时,将ME16×8,ME8×16作为候选模式进行率失真优化计算并选择率失真代价最小的模式为最佳编码模式。(6) When 1<A MV2 ≤2, use ME16×8 and ME8×16 as candidate modes for rate-distortion optimization calculation and select the mode with the smallest rate-distortion cost as the best coding mode.

(7)对于2<AMV2≤5时,选择MV_P8×8模式为当前宏块编码并使用率失真优化方法选取率失真代价最小的8×8亚宏块的分割情况.(7) When 2<A MV2 ≤ 5, select the MV_P8×8 mode to encode the current macroblock and use the rate-distortion optimization method to select the segmentation of the 8×8 sub-macroblock with the smallest rate-distortion cost.

(8)对于AMV2>5时,选择DE(16×16,16×8,8×16,8×8),intra_4×4,intra_8×8,intra_16×16为候选模式并选取率失真最小的模式为当前宏块的最佳编码模式。(8) For A MV2 >5, select DE (16×16, 16×8, 8×16, 8×8), intra_4×4, intra_8×8, intra_16×16 as candidate modes and select the one with the smallest rate distortion mode is the best coding mode for the current macroblock.

完成当前宏块的编码之后,继续编码下一宏块直到完成视频图像每一帧的多个宏块。After the encoding of the current macroblock is completed, the encoding of the next macroblock is continued until multiple macroblocks of each frame of the video image are completed.

根据本发明实施例的方法,通过基于块的自适应阈值来预测SKIP模式,避免了大量不必要的计算,并且根据相邻宏块以及相邻视点对应宏块的运动向量来预测当前宏块的运动幅度,再根据运动幅度的大小检查符合的候选模式,由此可以减小搜索范围、减少运算时间。According to the method of the embodiment of the present invention, by predicting the SKIP mode based on the block-based adaptive threshold, a large amount of unnecessary calculations are avoided, and the motion vector of the current macroblock is predicted according to the motion vector of the adjacent macroblock and the corresponding macroblock of the adjacent view. The motion range, and then check the corresponding candidate patterns according to the size of the motion range, so that the search range can be reduced and the calculation time can be reduced.

图5为根据本发明一个实施例的多视点视频编码模式选择装置的框架图。如图5所示,根据本发明实施例的多视点视频编码模式选择装置,包括划分模块100、判断设置模块200、计算模块300和选取模块400。Fig. 5 is a frame diagram of an apparatus for selecting a multi-view video coding mode according to an embodiment of the present invention. As shown in FIG. 5 , the device for selecting a multi-view video coding mode according to an embodiment of the present invention includes a division module 100 , a judgment setting module 200 , a calculation module 300 and a selection module 400 .

划分模块100用于输入视频图像和相应的深度图,并将视频图像的每一帧划分为多个基本的编码单元,即宏块。The division module 100 is used to input video images and corresponding depth maps, and divide each frame of the video images into a plurality of basic coding units, namely macroblocks.

判断设置模块200用于判断当前编码的宏块的位置,设置预测SKIP模式的率失真阈值并计算当前宏块选用SKIP模式下的率失真代价。The judgment setting module 200 is used for judging the position of the currently coded macroblock, setting the rate-distortion threshold for predicting the SKIP mode, and calculating the rate-distortion cost when the current macroblock selects the SKIP mode.

在本发明的一个实施例中,判断设置模块200包括选择单元210、第一计算单元220和第二计算单元230。In one embodiment of the present invention, the judgment setting module 200 includes a selection unit 210 , a first calculation unit 220 and a second calculation unit 230 .

选择单元210用于当当前宏块所在帧为I帧或者当前宏块处于所在帧的第一行或者第一列,则使用率失真优化方法检查所有的帧内帧间模式,选择率失真代价最小的模式为最佳编码模式。The selection unit 210 is used to check all the intra-frame and inter-frame modes using the rate-distortion optimization method when the frame where the current macroblock is located is an I frame or the current macroblock is in the first row or column of the frame, and the selection rate-distortion cost is the smallest The mode of is the best encoding mode.

第一计算单元220用于当当前宏块所在视点为独立编码视点,同时所在帧不为I帧且当前宏块不处于所在帧的第一行或者第一列,则计算当前宏块选用SKIP模式的第一率失真代价并设置用来预测SKIP模式的第一率失真阈值。The first calculation unit 220 is used to calculate the SKIP mode for the current macroblock when the viewpoint of the current macroblock is an independently coded viewpoint, and the frame is not an I frame and the current macroblock is not in the first row or the first column of the frame. The first rate-distortion cost and set the first rate-distortion threshold used to predict the SKIP mode.

第一率失真阈值通过如下公式计算: T skip 1 = &Sigma; i = 1 4 W i &CenterDot; I i &CenterDot; RD cos t ( SKIP ) i &Sigma; i = 1 4 W i &CenterDot; I i . First Rate Distortion Threshold Calculated by the following formula: T skip 1 = &Sigma; i = 1 4 W i &Center Dot; I i &Center Dot; RD cos t ( SKIP ) i &Sigma; i = 1 4 W i &Center Dot; I i .

其中,RDcost(SKIP)i分别为计算当前宏块(图3中宏块0)的左方宏块(图3中宏块1)、上方宏块(图3中宏块2),右上方宏块(图3中宏块3)以及前一帧中与当前宏块所在位置相同的宏块(图3中宏块4)在SKIP模式下的率失真代价。Wi为相应权重系数,由线下训练得出。Among them, RDcost(SKIP) i is to calculate the left macroblock (macroblock 1 in Fig. 3), the upper macroblock (macroblock 2 in Fig. 3), and the upper right macroblock of the current macroblock (macroblock 0 in Fig. 3), respectively. The rate-distortion cost of the block (macroblock 3 in Figure 3) and the macroblock at the same position as the current macroblock in the previous frame (macroblock 4 in Figure 3) in SKIP mode. W i is the corresponding weight coefficient, which is obtained from offline training.

Ii的定义如下所示:The definition of I i is as follows:

Figure BDA00002693098800093
Figure BDA00002693098800093

第二计算单元230用于当当前宏块所在视点为联合预测编码视点,同时所在帧不为I帧且当前宏块不处于所在帧的第一行或者第一列,则设置用来预测SKIP模式的第二率失真阈值并计算当前宏块选用SKIP模式的第二率失真代价。The second computing unit 230 is used to set the SKIP mode for prediction when the viewpoint of the current macroblock is the joint predictive coding viewpoint, and the frame is not an I frame and the current macroblock is not in the first row or column of the frame The second rate-distortion threshold of the current macroblock and calculate the second rate-distortion cost for the SKIP mode selected.

第二率失真阈值Tskip2,通过如下公式计算: T skip 2 = &Sigma; i = 1 13 W i &CenterDot; I i &CenterDot; RD cos t ( SKIP ) i &Sigma; i = 1 13 W i &CenterDot; I i , The second rate-distortion threshold T skip2 is calculated by the following formula: T skip 2 = &Sigma; i = 1 13 W i &CenterDot; I i &CenterDot; RD cos t ( SKIP ) i &Sigma; i = 1 13 W i &CenterDot; I i ,

其中,RDcost(SKIP)i分别为图4中宏块1至宏块13分别在SKIP模式下的率失真代价。这些宏块分别为当前宏块0在当前视点视频中的左方宏块(宏块1)、上方宏块(宏块2)、右上方宏块(宏块3),前一帧中与当前宏块所在位置相同的宏块(宏块4)和相邻已编码视点通过视差位移的宏块(宏块5)及其相邻8个宏块(宏块6~宏块13)。宏块0与宏块5间的视差由当前视点当前宏块的深度推导而出。Wherein, RDcost(SKIP) i are rate-distortion costs of macroblock 1 to macroblock 13 in SKIP mode in FIG. 4 respectively. These macroblocks are the left macroblock (macroblock 1), the upper macroblock (macroblock 2), and the upper right macroblock (macroblock 3) of the current macroblock 0 in the current view video. The macroblock with the same macroblock position (macroblock 4) and the macroblock (macroblock 5) whose adjacent coded viewpoint has been displaced by parallax and its 8 adjacent macroblocks (macroblock 6~macroblock 13). The disparity between macroblock 0 and macroblock 5 is derived from the depth of the current macroblock at the current view.

Wi为相应权重系数,由线下训练得出。Ii的定义如下所示:W i is the corresponding weight coefficient, which is obtained from offline training. The definition of I i is as follows:

Figure BDA00002693098800102
Figure BDA00002693098800102

计算模块300用于根据率失真阈值和率失真代价计算当前宏块的运动幅度。The calculation module 300 is used for calculating the motion amplitude of the current macroblock according to the rate-distortion threshold and the rate-distortion cost.

在本发明的一个实施例中,计算模块300包括第一比较单元310、第一处理单元320、第二处理单元330、第二比较单元340、第三处理单元350和第四处理单元360。In an embodiment of the present invention, the calculation module 300 includes a first comparison unit 310 , a first processing unit 320 , a second processing unit 330 , a second comparison unit 340 , a third processing unit 350 and a fourth processing unit 360 .

第一比较单元310用于比较第一率失真代价和第一率失真阈值。The first comparison unit 310 is configured to compare the first rate-distortion cost with the first rate-distortion threshold.

第一处理单元320用于当第一率失真代价小于第一率失真阈值时,将SKIP模式为当前宏块的最佳编码模式。The first processing unit 320 is configured to set the SKIP mode as the best coding mode for the current macroblock when the first rate-distortion cost is smaller than the first rate-distortion threshold.

第二处理单元330用于当第一率失真代价大于第一率失真阈值时,计算当前宏块的第一运动幅度。The second processing unit 330 is configured to calculate a first motion magnitude of the current macroblock when the first rate-distortion cost is greater than a first rate-distortion threshold.

第二比较单元340用于比较第二率失真代价和第二率失真阈值。The second comparing unit 340 is used for comparing the second rate-distortion cost and the second rate-distortion threshold.

第三处理单元350用于当第二率失真代价小于第二率失真阈值时,将SKIP模式为当前宏块的最佳编码模式。The third processing unit 350 is configured to set the SKIP mode as the best coding mode for the current macroblock when the second rate-distortion cost is smaller than the second rate-distortion threshold.

第四处理单元360用于当第二率失真代价大于第二率失真阈值时,计算当前宏块的第一运动幅度。The fourth processing unit 360 is configured to calculate the first motion magnitude of the current macroblock when the second rate-distortion cost is greater than the second rate-distortion threshold.

选取模块400用于根据当前宏块的运动幅度大小选取相应的候选模式。The selecting module 400 is used to select corresponding candidate modes according to the magnitude of motion of the current macroblock.

根据当前宏块的运动幅度AMV1或AMV2的大小选取相应的候选模式。A corresponding candidate mode is selected according to the magnitude of the motion amplitude A MV1 or A MV2 of the current macroblock.

(1)当AMV1≤1时,将SKIP和ME16×16作为候选模式并选取率失真最小的模式为当前宏块的最佳编码模式。(1) When A MV1 ≤ 1, take SKIP and ME16×16 as candidate modes and select the mode with the smallest rate-distortion as the best coding mode for the current macroblock.

(2)对于1<AMV1≤2时,将ME16×8,ME8×16作为候选模式进行率失真优化计算并选择率失真代价最小的模式为最佳编码模式。(2) When 1<A MV1 ≤2, use ME16×8 and ME8×16 as candidate modes for rate-distortion optimization calculation and select the mode with the smallest rate-distortion cost as the best coding mode.

(3)对于2<AMV1≤5时,选择MV_P8×8模式为当前宏块编码并使用率失真优化方法选取率失真代价最小的8×8亚宏块的分割情况.(3) When 2<A MV1 ≤5, select the MV_P8×8 mode to encode the current macroblock and use the rate-distortion optimization method to select the segmentation of the 8×8 sub-macroblock with the smallest rate-distortion cost.

(4)对于AMV1>5时,选择DE(16×16,16×8,8×16,8×8),intra_4×4,intra_8×8,intra_16×16为候选模式并选取率失真最小的模式为当前宏块的最佳编码模式。(4) For A MV1 >5, select DE (16×16, 16×8, 8×16, 8×8), intra_4×4, intra_8×8, intra_16×16 as candidate modes and select the one with the smallest rate-distortion mode is the best coding mode for the current macroblock.

(5)当AMV2≤1时,将SKIP和ME16×16作为候选模式并选取率失真最小的模式为当前宏块的最佳编码模式。(5) When A MV2 ≤ 1, take SKIP and ME16×16 as candidate modes and select the mode with the smallest rate-distortion as the best coding mode for the current macroblock.

(6)对于1<AMV2≤2时,将ME16×8,ME8×16作为候选模式进行率失真优化计算并选择率失真代价最小的模式为最佳编码模式。(6) When 1<A MV2 ≤2, use ME16×8 and ME8×16 as candidate modes for rate-distortion optimization calculation and select the mode with the smallest rate-distortion cost as the best coding mode.

(7)对于2<AMV2≤5时,选择MV_P8×8模式为当前宏块编码并使用率失真优化方法选取率失真代价最小的8×8亚宏块的分割情况.(7) When 2<A MV2 ≤ 5, select the MV_P8×8 mode to encode the current macroblock and use the rate-distortion optimization method to select the segmentation of the 8×8 sub-macroblock with the smallest rate-distortion cost.

(8)对于AMV2>5时,选择DE(16×16,16×8,8×16,8×8),intra_4×4,intra_8×8,intra_16×16为候选模式并选取率失真最小的模式为当前宏块的最佳编码模式。(8) For A MV2 >5, select DE (16×16, 16×8, 8×16, 8×8), intra_4×4, intra_8×8, intra_16×16 as candidate modes and select the one with the smallest rate distortion mode is the best coding mode for the current macroblock.

完成当前宏块的编码之后,继续编码下一宏块直到完成视频图像每一帧的多个宏块。After the encoding of the current macroblock is completed, the encoding of the next macroblock is continued until multiple macroblocks of each frame of the video image are completed.

根据本发明实施例的装置,通过基于块的自适应阈值来预测SKIP模式,避免了大量不必要的计算,并且根据相邻宏块以及相邻视点对应宏块的运动向量来预测当前宏块的运动幅度,再根据运动幅度的大小检查符合的候选模式,由此可以减小搜索范围、减少运算时间。According to the device of the embodiment of the present invention, by predicting the SKIP mode based on the block-based adaptive threshold, a large number of unnecessary calculations are avoided, and the motion vector of the current macroblock is predicted according to the motion vector of the adjacent macroblock and the corresponding macroblock of the adjacent view. The motion range, and then check the corresponding candidate patterns according to the size of the motion range, so that the search range can be reduced and the calculation time can be reduced.

应当理解,本发明的装置实施例中的各个模块和单元的具体操作过程可与方法实施例中的描述相同,此处不再详细描述。It should be understood that the specific operation process of each module and unit in the device embodiment of the present invention may be the same as that described in the method embodiment, and will not be described in detail here.

尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在不脱离本发明的原理和宗旨的情况下在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be construed as limitations to the present invention. Variations, modifications, substitutions, and modifications to the above-described embodiments are possible within the scope of the present invention.

Claims (8)

1.一种多视点视频编码模式选择方法,其特征在于,包括一下步骤:1. A method for selecting a multi-viewpoint video encoding mode, characterized in that it comprises the following steps: S1:输入视频图像和相应的深度图,并将所述视频图像的每一帧划分为多个基本的编码单元,即宏块;S1: Input a video image and a corresponding depth map, and divide each frame of the video image into a plurality of basic coding units, namely macroblocks; S2:判断当前编码的所述宏块的位置,设置预测SKIP模式的率失真阈值并计算当前宏块选用SKIP模式下的率失真代价;S2: Determine the position of the currently encoded macroblock, set the rate-distortion threshold for predicting the SKIP mode, and calculate the rate-distortion cost when the current macroblock selects the SKIP mode; S3:根据所述率失真阈值和所述率失真代价计算当前宏块的运动幅度;以及S3: Calculate the motion range of the current macroblock according to the rate-distortion threshold and the rate-distortion cost; and S4:根据当前宏块的所述运动幅度大小选取相应的候选模式。S4: Select a corresponding candidate mode according to the magnitude of the motion amplitude of the current macroblock. 2.如权利要求1所述的多视点视频编码模式选择方法,其特征在于,所述步骤S2具体包括:2. The method for selecting a multi-viewpoint video coding mode according to claim 1, wherein said step S2 specifically comprises: S21:如果当前宏块所在帧为I帧或者当前宏块处于所在帧的第一行或者第一列,则使用率失真优化方法检查所有的帧内帧间模式,选择率失真代价最小的模式为最佳编码模式;S21: If the frame where the current macroblock is located is an I frame or the current macroblock is in the first row or column of the frame, then use the rate-distortion optimization method to check all intra-frame inter-frame modes, and select the mode with the smallest rate-distortion cost as best encoding mode; S22:如果当前宏块所在视点为独立编码视点,同时所在帧不为I帧且当前宏块不处于所在帧的第一行或者第一列,则计算当前宏块选用SKIP模式的第一率失真代价并设置用来预测SKIP模式的第一率失真阈值;以及S22: If the viewpoint of the current macroblock is an independently coded viewpoint, and the frame is not an I frame and the current macroblock is not in the first row or column of the frame, calculate the first rate-distortion of the current macroblock using SKIP mode cost and set the first rate-distortion threshold used to predict the SKIP mode; and S23:如果当前宏块所在视点为联合预测编码视点,同时所在帧不为I帧且当前宏块不处于所在帧的第一行或者第一列,则设置用来预测SKIP模式的第二率失真阈值并计算当前宏块选用SKIP模式的第二率失真代价。S23: If the viewpoint of the current macroblock is the joint predictive coding viewpoint, and the frame is not an I frame and the current macroblock is not in the first row or the first column of the frame, set the second rate-distortion used to predict the SKIP mode Threshold and calculate the second rate-distortion cost of the SKIP mode for the current macroblock. 3.如权利要求1所述的多视点视频编码模式选择方法,其特征在于,所述步骤S3具体包括:3. The method for selecting a multi-viewpoint video coding mode as claimed in claim 1, wherein said step S3 specifically comprises: 比较所述第一率失真代价和所述第一率失真阈值;comparing the first rate-distortion penalty to the first rate-distortion threshold; 当所述第一率失真代价小于所述第一率失真阈值时,将SKIP模式为当前宏块的最佳编码模式;以及When the first rate-distortion cost is less than the first rate-distortion threshold, the SKIP mode is the best coding mode for the current macroblock; and 当所述第一率失真代价大于所述第一率失真阈值时,计算当前宏块的第一运动幅度。When the first rate-distortion cost is greater than the first rate-distortion threshold, calculate a first motion magnitude of the current macroblock. 4.如权利要求1所述的多视点视频编码模式选择方法,其特征在于,所述步骤S3还包括:4. The method for selecting a multi-viewpoint video coding mode according to claim 1, wherein said step S3 further comprises: 比较所述第二率失真代价和所述第二率失真阈值;comparing the second rate-distortion penalty to the second rate-distortion threshold; 当所述第二率失真代价小于所述第二率失真阈值时,将SKIP模式为当前宏块的最佳编码模式;以及When the second rate-distortion cost is less than the second rate-distortion threshold, the SKIP mode is the best coding mode for the current macroblock; and 当所述第二率失真代价大于所述第二率失真阈值时,计算当前宏块的第一运动幅度。When the second rate-distortion cost is greater than the second rate-distortion threshold, calculate the first motion magnitude of the current macroblock. 5.一种多视点视频编码模式选择装置,包括:5. A device for selecting a multi-viewpoint video encoding mode, comprising: 划分模块,用于输入视频图像和相应的深度图,并将所述视频图像的每一帧划分为多个基本的编码单元,即宏块;A division module for inputting a video image and a corresponding depth map, and dividing each frame of the video image into a plurality of basic coding units, namely macroblocks; 判断设置模块,用于判断当前编码的所述宏块的位置,设置预测SKIP模式的率失真阈值并计算当前宏块选用SKIP模式下的率失真代价;A judgment setting module, configured to judge the position of the currently encoded macroblock, set the rate-distortion threshold for predicting the SKIP mode and calculate the rate-distortion cost for the current macroblock in the SKIP mode; 计算模块,用于根据所述率失真阈值和所述率失真代价计算当前宏块的运动幅度;以及a calculation module, configured to calculate the motion amplitude of the current macroblock according to the rate-distortion threshold and the rate-distortion cost; and 选取模块,用于根据当前宏块的所述运动幅度大小选取相应的候选模式。The selection module is used to select a corresponding candidate mode according to the magnitude of the motion of the current macroblock. 6.如权利要求5所述的多视点视频编码模式选择装置,其特征在于,所述判断设置模块具体包括:6. The multi-viewpoint video coding mode selection device as claimed in claim 5, wherein the judgment setting module specifically includes: 选择单元,用于当当前宏块所在帧为I帧或者当前宏块处于所在帧的第一行或者第一列,则使用率失真优化方法检查所有的帧内帧间模式,选择率失真代价最小的模式为最佳编码模式;The selection unit is used to check all intra-frame and inter-frame modes using the rate-distortion optimization method when the frame where the current macroblock is located is an I frame or the current macroblock is in the first row or first column of the frame, and the selection rate-distortion cost is the smallest The mode of is the best coding mode; 第一计算单元,用于当当前宏块所在视点为独立编码视点,同时所在帧不为I帧且当前宏块不处于所在帧的第一行或者第一列,则计算当前宏块选用SKIP模式的第一率失真代价并设置用来预测SKIP模式的第一率失真阈值;以及The first calculation unit is used to calculate the SKIP mode for the current macroblock when the viewpoint of the current macroblock is an independent coding viewpoint, and the frame is not an I frame and the current macroblock is not in the first row or the first column of the frame. The first rate-distortion cost and set the first rate-distortion threshold used to predict the SKIP mode; and 第二计算单元,用于当当前宏块所在视点为联合预测编码视点,同时所在帧不为I帧且当前宏块不处于所在帧的第一行或者第一列,则设置用来预测SKIP模式的第二率失真阈值并计算当前宏块选用SKIP模式的第二率失真代价。The second calculation unit is used to set the SKIP mode for prediction when the viewpoint of the current macroblock is the joint predictive coding viewpoint, and the frame is not an I frame and the current macroblock is not in the first row or the first column of the frame The second rate-distortion threshold of the current macroblock and calculate the second rate-distortion cost for the SKIP mode selected. 7.如权利要求5所述的多视点视频编码模式选择装置,其特征在于,所述计算模块具体包括:7. The multi-viewpoint video coding mode selection device as claimed in claim 5, wherein the calculation module specifically includes: 第一比较单元,用于比较所述第一率失真代价和所述第一率失真阈值;a first comparison unit, configured to compare the first rate-distortion cost with the first rate-distortion threshold; 第一处理单元,用于当所述第一率失真代价小于所述第一率失真阈值时,将SKIP模式为当前宏块的最佳编码模式;以及A first processing unit, configured to set the SKIP mode as the best coding mode for the current macroblock when the first rate-distortion cost is less than the first rate-distortion threshold; and 第二处理单元,用于当所述第一率失真代价大于所述第一率失真阈值时,计算当前宏块的第一运动幅度。A second processing unit, configured to calculate a first motion magnitude of the current macroblock when the first rate-distortion cost is greater than the first rate-distortion threshold. 8.如权利要求5所述的多视点视频编码模式选择装置,其特征在于,所述计算模块具体还包括:8. The multi-viewpoint video coding mode selection device as claimed in claim 5, wherein the calculation module specifically further comprises: 第二比较单元,用于比较所述第二率失真代价和所述第二率失真阈值;a second comparing unit, configured to compare the second rate-distortion cost with the second rate-distortion threshold; 第三处理单元,用于当所述第二率失真代价小于所述第二率失真阈值时,将SKIP模式为当前宏块的最佳编码模式;以及A third processing unit, configured to set the SKIP mode as the best coding mode for the current macroblock when the second rate-distortion cost is smaller than the second rate-distortion threshold; and 第四处理单元,用于当所述第二率失真代价大于所述第二率失真阈值时,计算当前宏块的第一运动幅度。A fourth processing unit, configured to calculate a first motion magnitude of the current macroblock when the second rate-distortion cost is greater than the second rate-distortion threshold.
CN201210592908.7A 2012-12-31 2012-12-31 Multiple view video coding mode selecting method and device Expired - Fee Related CN103024395B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210592908.7A CN103024395B (en) 2012-12-31 2012-12-31 Multiple view video coding mode selecting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210592908.7A CN103024395B (en) 2012-12-31 2012-12-31 Multiple view video coding mode selecting method and device

Publications (2)

Publication Number Publication Date
CN103024395A true CN103024395A (en) 2013-04-03
CN103024395B CN103024395B (en) 2015-08-12

Family

ID=47972467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210592908.7A Expired - Fee Related CN103024395B (en) 2012-12-31 2012-12-31 Multiple view video coding mode selecting method and device

Country Status (1)

Country Link
CN (1) CN103024395B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103384327A (en) * 2013-04-22 2013-11-06 张新安 AVS fast mode selection algorithm based on adaptive threshold
CN104469336A (en) * 2013-09-25 2015-03-25 中国科学院深圳先进技术研究院 Coding method for multi-view depth video signal
CN105578195A (en) * 2015-12-24 2016-05-11 福州瑞芯微电子股份有限公司 H.264 inter-frame prediction system
CN105578197A (en) * 2015-12-24 2016-05-11 福州瑞芯微电子股份有限公司 Master control system for realizing inter-frame prediction
CN105681808A (en) * 2016-03-16 2016-06-15 同济大学 A fast decision-making method for SCC inter coding unit mode

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404766A (en) * 2008-11-05 2009-04-08 宁波大学 Multi-view point video signal encoding method
US20110044550A1 (en) * 2008-04-25 2011-02-24 Doug Tian Inter-view strip modes with depth

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110044550A1 (en) * 2008-04-25 2011-02-24 Doug Tian Inter-view strip modes with depth
CN101404766A (en) * 2008-11-05 2009-04-08 宁波大学 Multi-view point video signal encoding method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
丁贵广,郭宝龙,戴琼海: "基于提升技术的运动补偿三维小波视频编码", 《系统工程与电子技术》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103384327A (en) * 2013-04-22 2013-11-06 张新安 AVS fast mode selection algorithm based on adaptive threshold
CN104469336A (en) * 2013-09-25 2015-03-25 中国科学院深圳先进技术研究院 Coding method for multi-view depth video signal
CN104469336B (en) * 2013-09-25 2017-01-25 中国科学院深圳先进技术研究院 Coding method for multi-view depth video signals
CN105578195A (en) * 2015-12-24 2016-05-11 福州瑞芯微电子股份有限公司 H.264 inter-frame prediction system
CN105578197A (en) * 2015-12-24 2016-05-11 福州瑞芯微电子股份有限公司 Master control system for realizing inter-frame prediction
CN105578195B (en) * 2015-12-24 2019-03-12 福州瑞芯微电子股份有限公司 A kind of H.264 inter-frame prediction system
CN105578197B (en) * 2015-12-24 2019-04-30 福州瑞芯微电子股份有限公司 A kind of realization inter-prediction master control system
CN105681808A (en) * 2016-03-16 2016-06-15 同济大学 A fast decision-making method for SCC inter coding unit mode

Also Published As

Publication number Publication date
CN103024395B (en) 2015-08-12

Similar Documents

Publication Publication Date Title
CN102648631B (en) For the method and apparatus of coding/decoding high-definition picture
CN101917619B (en) A fast motion estimation method for multi-view video coding
CN103248895B (en) A kind of quick mode method of estimation for HEVC intraframe coding
CN103024395B (en) Multiple view video coding mode selecting method and device
CN103327325B (en) The quick self-adapted system of selection of intra prediction mode based on HEVC standard
CN106105191A (en) For the method and apparatus processing multiview video signal
CN107396102B (en) A kind of inter-frame mode fast selecting method and device based on Merge technological movement vector
CN103098467A (en) Methods and apparatuses for encoding and decoding motion vector
CN103327327B (en) For the inter prediction encoding unit selection method of high-performance video coding HEVC
CN103096063A (en) Motion estimation method and parallax estimation method for adaptively adjusting estimation search range
CN105791862B (en) 3 d video encoding depth map internal schema selection method based on fringe complexity
CN103370934A (en) Multi-view video encoding/decoding apparatus and method
CN105120290A (en) Fast coding method for depth video
CN103338370A (en) Multi-view depth video fast coding method
CN102572439B (en) Method for determining optimal multi-viewpoint video coding mode for coding
CN101895749B (en) Quick parallax estimation and motion estimation method
KR100947447B1 (en) Method and apparatus for fast mode determination in multiview video coding
CN102420990A (en) Multi-view video-oriented fast coding method
CN102387368A (en) Fast selection method of inter-view prediction for multi-view video coding (MVC)
CN115022639B (en) Encoding and decoding method, device and equipment thereof
CN103188500B (en) Encoding method for multi-view video signals
Li et al. A fast inter frame prediction algorithm for multi-view video coding
CN106210741A (en) A kind of based on the deep video encryption algorithm of dependency between viewpoint
WO2021031225A1 (en) Motion vector derivation method and apparatus, and electronic device
CN101459849A (en) Fast motion estimation method based on motion searching scope adaptive regulation of multi-vision-point encoding

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150812