Nothing Special   »   [go: up one dir, main page]

CN105872543B - A kind of fast schema selection method in MVD viewpoints graduated encoding - Google Patents

A kind of fast schema selection method in MVD viewpoints graduated encoding Download PDF

Info

Publication number
CN105872543B
CN105872543B CN201610190391.7A CN201610190391A CN105872543B CN 105872543 B CN105872543 B CN 105872543B CN 201610190391 A CN201610190391 A CN 201610190391A CN 105872543 B CN105872543 B CN 105872543B
Authority
CN
China
Prior art keywords
current
video
coding
vision point
texture
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.)
Expired - Fee Related
Application number
CN201610190391.7A
Other languages
Chinese (zh)
Other versions
CN105872543A (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.)
SHANGHAI UNIVERSITY
Original Assignee
SHANGHAI 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 SHANGHAI UNIVERSITY filed Critical SHANGHAI UNIVERSITY
Priority to CN201610190391.7A priority Critical patent/CN105872543B/en
Publication of CN105872543A publication Critical patent/CN105872543A/en
Application granted granted Critical
Publication of CN105872543B publication Critical patent/CN105872543B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/146Data rate or code amount at the encoder output
    • H04N19/147Data rate or code amount at the encoder output according to rate distortion criteria
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/30Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using hierarchical techniques, e.g. scalability

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

本发明公开了一种MVD视点可分级编码中的快速模式选择方法。基本层编码,纹理视频T2采用全遍历的编码模式选择方法,纹理视频T1根据当前MB的纹理复杂度、空间相邻MB和视间对应MB的编码模式简化候选编码模式;纹理视频T2编码进一步考虑了当前MB的运动特性。增强层编码,深度视频D2利用当前MB的深度边界分布情况及纹理视频T2对应MB的编码模式,深度视频D0/D1利用当前MB在SKIP或Inter16x16模式下CBP值及深度视频D2对应MB编码模式简化编码候选模式。本发明在编码基本层纹理视频和增强层深度视频时,利用视点间的相关性、宏块本身的复杂度以及运动情况等信息,提前终止编码模式的选择过程,降低编码的时间复杂度,解决了MVD编码过程中编码模式选择时间开销过大的问题。

The invention discloses a fast mode selection method in MVD viewpoint scalable coding. Basic layer coding, texture video T2 adopts the full traversal coding mode selection method, texture video T1 simplifies candidate coding modes according to the texture complexity of the current MB, spatially adjacent MBs, and inter-view corresponding MBs; texture video T2 coding further considers The motion characteristics of the current MB. Enhancement layer encoding, depth video D2 uses the depth boundary distribution of the current MB and the encoding mode of the MB corresponding to the texture video T2, depth video D0/D1 uses the CBP value of the current MB in SKIP or Inter16x16 mode and the encoding mode corresponding to the depth video D2 to simplify Encode candidate patterns. When encoding the texture video of the base layer and the depth video of the enhancement layer, the present invention uses information such as the correlation between viewpoints, the complexity of the macroblock itself, and the motion situation to terminate the selection process of the encoding mode in advance, reduce the time complexity of encoding, and solve the problem of It solves the problem that the encoding mode selection time overhead is too large in the MVD encoding process.

Description

一种MVD视点可分级编码中的快速模式选择方法A Fast Mode Selection Method in MVD Viewpoint Scalable Coding

技术领域technical field

本发明涉及一种视点可分级编码中的快速模式选择方法,尤其涉及一种MVD视点可分级编码中的快速模式选择方法,属于视频编码技术领域。The invention relates to a fast mode selection method in viewpoint scalable coding, in particular to a fast mode selection method in MVD viewpoint scalable coding, and belongs to the technical field of video coding.

背景技术Background technique

三维立体电视(3DTV)系统,利用人双眼观察物体的角度差异而辨识物体的远近这个原理,将编码后的3D视频传入人的左右眼,使观众在观看电视节目的时候可以体验强烈的立体感。多视点视频加深度(Multi-view Video plus Depth,MVD)格式的3D视频由于综合了多视点视频(Multi View Video,MVV)和纹理视频加深度(Video plus Depth,V+D)的特性,在目前的3DTV系统中占据重要的地位。The three-dimensional stereoscopic television (3DTV) system uses the principle of recognizing the distance of an object by observing the angle difference of the object with two eyes, and transmits the encoded 3D video to the left and right eyes of the person, so that the audience can experience a strong stereoscopic effect when watching TV programs. sense. The 3D video in multi-view video plus depth (Multi-view Video plus Depth, MVD) format combines the characteristics of multi-view video (Multi View Video, MVV) and texture video plus depth (Video plus Depth, V+D). Occupy an important position in the current 3DTV system.

深度视频由一幅幅连续的深度帧组成,而深度帧中的每一个点的深度像素值表示拍摄场景中的点与摄像机之间的距离,其取值范围为[0-255]。深度图使用YUV颜色空间表示的时候只有亮度分量Y,而没有色度分量U和V,所以可以将深度图看作一张256色灰度图。在H.264/AVC视频编码标准中,采用了以宏块(Macro Block,MB)为基本单位的编码技术,MB大小为16×16,它又可以划分成4个子宏块,每个子宏块的大小为8×8。对于MB的编码块模式(Coded Block Pattern,CBP)值,它表示MB亮度和色度的残差编码方式,使用6位二进制数字表示:b5b4b3b2b1b0,其中b3b2b1b0分别表示4个亮度块,b5b4表示两个色度块,如果子宏块的残差系数没有被编码传输,则该位置0,否则置1,其各二进制位的分布方式见图1。由于深度视频没有色度分量,所以b5b4=00。因此,深度视频MB的CBP取值范围为0≤CBP≤15。The depth video is composed of successive depth frames, and the depth pixel value of each point in the depth frame represents the distance between the point in the shooting scene and the camera, and its value range is [0-255]. When the depth map is expressed in the YUV color space, there is only the brightness component Y, but no chroma components U and V, so the depth map can be regarded as a 256-color grayscale map. In the H.264/AVC video coding standard, the coding technology based on the macro block (Macro Block, MB) is adopted. The MB size is 16×16, and it can be divided into 4 sub-macro blocks. Each sub-macro block The size is 8x8. For the coded block pattern (Coded Block Pattern, CBP) value of MB, it indicates the residual coding method of MB luma and chrominance, using 6 binary numbers to represent: b 5 b 4 b 3 b 2 b 1 b 0 , where b 3 b 2 b 1 b 0 respectively represent 4 luma blocks, b 5 b 4 represent two chrominance blocks, if the residual coefficient of the sub-macroblock has not been encoded and transmitted, then this position is 0, otherwise it is set to 1, and each binary See Figure 1 for the distribution of bits. Since depth video has no chroma component, b 5 b 4 =00. Therefore, the CBP value range of the depth video MB is 0≤CBP≤15.

在MVD视频编码中,时间开销主要集中在MB编码模式选择过程,占编码总时间的60%以上,严重制约了视频实时传输的应用。在编码模式选择过程中,MB编码模式具有两种类型:帧内编码模式和帧间编码模式。帧内编码模式又可具体划分为Intra16x16、Intra8x8及Intra4x4;帧间编码模式可具体划分成SKIP、Inter16x16、Inter16x8、Inter8x16及Inter8x8。其中,Inter8x8又包括4种划分方式:Inter8x8、Inter8x4、Inter4x8及Inter4x4。In MVD video coding, the time overhead is mainly concentrated in the MB coding mode selection process, accounting for more than 60% of the total coding time, which severely restricts the application of real-time video transmission. In the coding mode selection process, there are two types of MB coding modes: intra coding mode and inter coding mode. The intra-frame coding mode can be specifically divided into Intra16x16, Intra8x8, and Intra4x4; the inter-frame coding mode can be specifically divided into SKIP, Inter16x16, Inter16x8, Inter8x16, and Inter8x8. Among them, Inter8x8 includes four division methods: Inter8x8, Inter8x4, Inter4x8 and Inter4x4.

在联合多视点视频编码参考软件(Joint Multi-view Video Model,JMVM)中,根据率失真优化准则(Rate Distortion Optimization,RDO)来选择MB的编码模式。在拉格朗日参数λmode和量化参数Q确定后,选择使率失真代价函数Jm最小的宏块编码方式作为当前宏块S的最优编码方式。率失真代价函数如下:In the joint multi-view video coding reference software (Joint Multi-view Video Model, JMVM), the MB coding mode is selected according to the rate-distortion optimization criterion (Rate Distortion Optimization, RDO). After the Lagrangian parameter λ mode and the quantization parameter Q are determined, the macroblock coding method that minimizes the rate-distortion cost function J m is selected as the optimal coding method for the current macroblock S. The rate-distortion cost function is as follows:

Jm(Im|Q,λmode)=λmode×R(Im|Q)+D(Im|Q)m∈Mode (1)J m (I m |Q,λ mode )=λ mode ×R(I m |Q)+D(I m |Q)m∈Mode (1)

其中,Im为宏块的编码模式,R为编码后比特流的比特率,Mode为候选宏块编码模式,D为失真度,由MB的原始像素和重建像素决定,在JMVM中,它有两种计算方式,分别为:Among them, Im is the coding mode of the macroblock, R is the bit rate of the coded bit stream, Mode is the coding mode of the candidate macroblock, and D is the distortion degree, which is determined by the original pixels and reconstructed pixels of the MB. In JMVM, it has There are two calculation methods, namely:

其中,(x,y)表示像素点在宏块内的坐标,p(x,y)为宏块的原始像素值,p'(x,y)为宏块的重建像素值。Wherein, (x, y) represents the coordinates of the pixel in the macroblock, p(x, y) is the original pixel value of the macroblock, and p'(x, y) is the reconstructed pixel value of the macroblock.

MB最终编码方式I由下面的关系式得到:The final encoding method I of MB is obtained by the following relational expression:

在JMVM中,MB的模式选择按照上述率失真优化准则,计算每一种宏块编码模式的率失真代价值,然后选择出MB编码模式。这种做法可以保证MB得到最优的编码模式,但是全遍历的选择做法大大增加了MB编码的时间复杂度。所以需要降低MVD在可分级编码中的时间复杂度,其核心问题就是在保证率失真可接受的条件下,快速选择出MB的编码模式。In JMVM, MB mode selection follows the above-mentioned rate-distortion optimization criterion, calculates the rate-distortion cost value of each macroblock coding mode, and then selects the MB coding mode. This method can ensure that the MB gets the optimal coding mode, but the selection method of full traversal greatly increases the time complexity of MB coding. Therefore, it is necessary to reduce the time complexity of MVD in scalable coding. The core problem is to quickly select the coding mode of MB under the condition that the rate-distortion is acceptable.

发明内容Contents of the invention

本发明的目的本发明的目的在于针对已有技术存在的缺陷,提供一种MVD视点可分级编码中的快速模式选择方法。Object of the present invention The object of the present invention is to provide a method for fast mode selection in MVD viewpoint scalable coding, aiming at the defects existing in the prior art.

为实现上述目的,本发明采用下述技术方案:To achieve the above object, the present invention adopts the following technical solutions:

一种MVD视点可分级编码中的快速模式选择方法,对视点V0,V1和V2进行编码;所述各视点均由纹理视频和相应的深度视频组成;所述视点V0,V1和V2的纹理视频T0、T1和T2作为基本层,所述视点V0,V1和V2的深度视频D0、D1和D2作为增强层,编码顺序为视点V0的纹理视频T0-视点V2的纹理视频T2-视点V1的纹理视频T1-视点V2的深度视频D2-视点V1的深度视频D1-视点V0的深度视频D0;所述各视点的纹理视频和深度视频均划分为大小相等的MB;包括以下具体步骤:A fast mode selection method in MVD viewpoint scalable coding, encoding viewpoint V0, V1 and V2; each viewpoint is composed of texture video and corresponding depth video; texture video of the viewpoint V0, V1 and V2 T0, T1, and T2 are used as the base layer, and the depth videos D0, D1, and D2 of the viewpoints V0, V1, and V2 are used as the enhancement layer, and the encoding sequence is the texture video T0 of the viewpoint V0-the texture video T2 of the viewpoint V2-the texture of the viewpoint V1 Video T1-depth video D2 of viewpoint V2-depth video D1 of viewpoint V1-depth video D0 of viewpoint V0; the texture video and depth video of each viewpoint are divided into MBs of equal size; the following specific steps are included:

步骤1.基本层编码:所述视点V0的纹理视频T0的各MB使用全遍历的编码模式选择流程选择出各MB的最佳编码模式;所述视点V2的纹理视频T2,利用当前MB的纹理复杂度及其与视点V0的纹理视频T0中对应MB的编码模式相关性简化编码候选模式集合,选择当前MB的编码模式;所述视点V1的纹理视频T1,利用当前MB的运动快慢情况及其与视点V0的纹理视频T0和视点V2的T2中对应MB的编码模式相关性简化编码候选模式集合,选择当前MB的编码模式;Step 1. Base layer coding: use the full traversal coding mode selection process to select the best coding mode for each MB of the texture video T0 of the viewpoint V0; use the texture video T2 of the viewpoint V2 to use the texture of the current MB The complexity and its correlation with the coding mode of the corresponding MB in the texture video T0 of the viewpoint V0 simplify the coding candidate mode set, and select the coding mode of the current MB; the texture video T1 of the viewpoint V1 uses the motion speed of the current MB and its Simplify the encoding candidate mode set for the correlation between the texture video T0 of the viewpoint V0 and the coding mode of the corresponding MB in the T2 of the viewpoint V2, and select the coding mode of the current MB;

步骤2.增强层编码:所述视点V2的深度视频D2,利用当前MB中的深度边界分布情况及其与视点V2的纹理视频T2间的编码模式相关性简化编码候选模式,选择当前MB的编码模式;所述视点V1的深度视频D1,利用当前MB在SKIP或Inter16x16模式下的CBP值的大小及其与视点V2的深度视频D2中对应MB编码模式的相关性简化编码候选模式,从中选择当前MB的编码模式;所述视点V0的深度视频D0的编码模式选择方法与所述视点V1的深度视频D1的编码模式选择方法相同。Step 2. Enhancement layer coding: the depth video D2 of the viewpoint V2, using the depth boundary distribution in the current MB and its correlation with the coding mode of the texture video T2 of the viewpoint V2, simplify the coding candidate mode, and select the coding of the current MB mode: for the depth video D1 of the viewpoint V1, use the size of the CBP value of the current MB in SKIP or Inter16x16 mode and its correlation with the corresponding MB coding mode in the depth video D2 of the viewpoint V2 to simplify the encoding candidate mode, and select the current MB encoding mode; the encoding mode selection method of the depth video D0 of the viewpoint V0 is the same as the encoding mode selection method of the depth video D1 of the viewpoint V1.

上述步骤1中所述视点V2的纹理视频T2简化当前MB的编码候选模式集合的方法,包括以下步骤:The method for simplifying the encoding candidate mode set of the current MB for the texture video T2 of the viewpoint V2 described in step 1 includes the following steps:

步骤1-A1:分别设置下限阈值Th1和上限阈值Th2的初值;判断当前MB的左MB、上MB和视点V0的纹理视频T0中对应MB的编码模式是否为SKIP或Inter16x16编码模式;如果是转向步骤1-A2;否则转向步骤1-A3;Step 1-A1: Set the initial values of the lower limit threshold Th 1 and the upper limit threshold Th 2 respectively; determine whether the encoding mode of the corresponding MB in the left MB, the upper MB, and the texture video T0 of the viewpoint V0 of the current MB is SKIP or Inter16x16 encoding mode; If it is go to step 1-A2; otherwise go to step 1-A3;

步骤1-A2:当前MB的候选模式设定为SKIP和Inter16x16编码模式;转向步骤1-A8;Step 1-A2: The candidate mode of the current MB is set to SKIP and Inter16x16 encoding mode; turn to step 1-A8;

步骤1-A3:判断当前MB的纹理复杂度MAD是否满足MAD<Th1,;如果是,转向步骤1-A4;否则转向步骤1-A5;Step 1-A3: Determine whether the texture complexity MAD of the current MB satisfies MAD<Th 1 ; if yes, go to step 1-A4; otherwise, go to step 1-A5;

当前MB的纹理复杂度的计算方法为:The calculation method of the texture complexity of the current MB is:

其中,p(i,j)表示当前MB内(i,j)坐标处的像素值,avg表示当前MB的像素平均值。Among them, p(i, j) represents the pixel value at the coordinate (i, j) in the current MB, and avg represents the pixel average value of the current MB.

步骤1-A4:当前MB的候选模式设定为SKIP、Inter16x16和Intra16x16编码模式,并更新Th1为:Step 1-A4: The candidate mode of the current MB is set to SKIP, Inter16x16 and Intra16x16 coding mode, and Th 1 is updated as:

转向步骤1-A8;Go to step 1-A8;

步骤1-A5:判断当前MB的纹理复杂度MAD是否满足MAD>Th2;如果是,转向步骤1-A6;否则转向步骤1-A7;Step 1-A5: Determine whether the texture complexity MAD of the current MB satisfies MAD>Th 2 ; if yes, go to step 1-A6; otherwise, go to step 1-A7;

步骤1-A6:当前MB的候选模式设定为Inter8x8、Inter8x4、Inter4x8、Inter4x4、Intra8x8和Intra4x4,并更新Th2为:Step 1-A6: The candidate mode of the current MB is set to Inter8x8, Inter8x4, Inter4x8, Inter4x4, Intra8x8 and Intra4x4, and update Th 2 as:

转向步骤1-A8;Go to step 1-A8;

步骤1-A7:当前MB的候选模式设定为Inter16x16、Inter16x8、Inter8x16和全部帧内编码模式;Step 1-A7: The candidate mode of the current MB is set to Inter16x16, Inter16x8, Inter8x16 and all intra-frame coding modes;

步骤1-A8:结束。Step 1-A8: End.

上述步骤1中所述视点V1的纹理视频T1简化当前MB的编码候选模式的方法,包括以下步骤:The method for simplifying the coding candidate mode of the current MB for the texture video T1 of the viewpoint V1 described in step 1 includes the following steps:

步骤1-B1:判断当前MB的左MB、上MB、所述视点V0的纹理视频T0中对应MB、所述视点V2的纹理视频T2中对应MB的编码模式是否为SKIP或Inter16x16,如果是转向步骤1-B2;否则转向步骤1-B3;Step 1-B1: Determine whether the encoding mode of the left MB, the upper MB of the current MB, the corresponding MB in the texture video T0 of the viewpoint V0, and the corresponding MB in the texture video T2 of the viewpoint V2 is SKIP or Inter16x16. Step 1-B2; otherwise go to step 1-B3;

步骤1-B2:当前MB的候选模式设定为SKIP和Inter16x16编码模式;转向步骤1-B8;Step 1-B2: The candidate mode of the current MB is set to SKIP and Inter16x16 encoding mode; turn to step 1-B8;

步骤1-B3:根据当前MB的左MB、上MB、所述视点V0的纹理视频T0中对应MB、所述视点V2的纹理视频T2中对应MB的运动矢量的平均值将当前MB划分为运动缓慢、中度运动和运动剧烈三种情况类型:Step 1-B3: According to the average value of the motion vectors of the left MB, the upper MB of the current MB, the corresponding MB in the texture video T0 of the viewpoint V0, and the corresponding MB in the texture video T2 of the viewpoint V2, the current MB is divided into motion There are three types of situations: slow, moderate and vigorous exercise:

式中D1和D2分别第一和第二划分阈值;D为当前MB的运动矢量距离,其计算方法为:In the formula, D1 and D2 are the first and second division thresholds respectively; D is the motion vector distance of the current MB, and its calculation method is:

D=|x|+|y| (5)D=|x|+|y| (5)

其中,i=1...6,xi和yi分别为参考宏块当前MB的左MB、上MB、所述视点V1的纹理视频T1中前向参考帧中对应MB、所述视点V1的纹理视频T1中后向参考帧中对应MB、所述视点V0的纹理视频T0中对应MB和所述视点V2的纹理视频T2中对应MB的水平和垂直运动矢量值;Wherein, i=1...6, x i and y i are the left MB of the current MB of the reference macroblock, the upper MB, the corresponding MB in the forward reference frame of the texture video T1 of the viewpoint V1, the viewpoint V1 The horizontal and vertical motion vector values corresponding to the MB in the backward reference frame of the texture video T1, the corresponding MB in the texture video T0 of the viewpoint V0, and the corresponding MB in the texture video T2 of the viewpoint V2;

如果当前MB为运动缓慢类型,转向步骤1-B4;如果当前MB为中度运动类型,转向步骤1-B5;如果当前MB为运动剧烈类型,转向步骤1-B7;If the current MB is of slow movement type, turn to step 1-B4; if the current MB is of moderate movement type, turn to step 1-B5; if the current MB is of vigorous movement type, turn to step 1-B7;

步骤1-B4:当前MB的候选模式设定为SKIP和Inter16x16编码模式;转向步骤1-B7;Step 1-B4: The candidate mode of the current MB is set to SKIP and Inter16x16 encoding mode; turn to step 1-B7;

步骤1-B5:当前MB的候选模式设定为Inter16x16,Inter16x8、Inter8x16和Inter8x8编码模式;转向步骤1-B7;Step 1-B5: The candidate mode of the current MB is set to Inter16x16, Inter16x8, Inter8x16 and Inter8x8 encoding modes; turn to step 1-B7;

步骤1-B6:当前MB的候选模式设定为所有编码模式;转向步骤1-B7;Step 1-B6: the candidate mode of the current MB is set to all encoding modes; turn to step 1-B7;

步骤1-B7:结束。Step 1-B7: End.

上述步骤2中所述视点V2的深度视频D2简化当前MB的编码候选模式的方法,包括以下步骤:The method for simplifying the encoding candidate mode of the current MB for the depth video D2 of the viewpoint V2 described in step 2 includes the following steps:

步骤2-A1:判断当前MB在视点V2的纹理视频T2中对应MB的编码模式是否为SKIP或Inter16x16;如果是转向步骤1-A2;否则转向步骤1-A3;Step 2-A1: Determine whether the encoding mode of the MB corresponding to the texture video T2 of the viewpoint V2 is SKIP or Inter16x16; if so, turn to step 1-A2; otherwise, turn to step 1-A3;

步骤2-A2:当前MB的候选模式设定为SKIP和Inter16x16编码模式;转向步骤2-A6;Step 2-A2: The candidate mode of the current MB is set to SKIP and Inter16x16 encoding mode; turn to step 2-A6;

步骤2-A3:计算当前MB中含有深度边界的子宏块的个数Num;如果子宏块的个数Num为Step 2-A3: Calculate the number Num of sub-macroblocks containing depth boundaries in the current MB; if the number Num of sub-macroblocks is

0,转向步骤2-A2;如果子宏块的个数Num为1,转向步骤2-A4;否则,转向步骤2-A5;0, turn to step 2-A2; if the number Num of sub-macroblocks is 1, turn to step 2-A4; otherwise, turn to step 2-A5;

步骤2-A4:当前MB的候选模式设定为SKIP、Inter16x16、Inter16x16、Inter16x8和Inter8x16编码模式;转向步骤1-B8;转向步骤2-A6;Step 2-A4: The candidate mode of the current MB is set to SKIP, Inter16x16, Inter16x16, Inter16x8 and Inter8x16 encoding modes; turn to step 1-B8; turn to step 2-A6;

步骤2-A5:当前MB的候选模式设定为Inter16x8、Inter8x16、Inter8x8、Inter8x4、Inter4x8以及和Inter4x4编码模式;转向步骤2-A6;Step 2-A5: The candidate mode of the current MB is set to Inter16x8, Inter8x16, Inter8x8, Inter8x4, Inter4x8 and Inter4x4 coding mode; turn to step 2-A6;

步骤2-A6:结束。Step 2-A6: End.

上述步骤2中所述视点V1的深度视频D1简化当前MB的编码候选模式的方法,包括以下步骤:The method for simplifying the coding candidate mode of the current MB for the depth video D1 of the viewpoint V1 described in step 2 includes the following steps:

步骤2-B1:判断当前MB在视点V2的深度视频D2中对应MB的编码模式是否为SKIP或Inter16x16,并且当前MB在视点V2的深度视频D2中对应MB的CBP=0;如果是转向步骤1-B2;否则转向步骤1-B3;Step 2-B1: Determine whether the encoding mode of the MB corresponding to the current MB in the depth video D2 of the viewpoint V2 is SKIP or Inter16x16, and the CBP of the MB corresponding to the current MB in the depth video D2 of the viewpoint V2 is CBP=0; if it is, go to step 1 -B2; otherwise turn to step 1-B3;

步骤2-B2:当前MB的候选模式设定为SKIP和Inter16x16编码模式;转向步骤2-B7;Step 2-B2: The candidate mode of the current MB is set to SKIP and Inter16x16 encoding mode; turn to step 2-B7;

步骤2-B3:当前MB在SKIP和Inter16x16模式中首先根据率失真优化准则选择出一个预选模式,如果CBP=0,转向步骤2-B4;如果CBP=7,11,13,14,15,转向步骤2-B5;否则转向步骤2-B6;Step 2-B3: In the SKIP and Inter16x16 modes, the current MB first selects a pre-selected mode according to the rate-distortion optimization criterion, if CBP=0, turn to step 2-B4; if CBP=7, 11, 13, 14, 15, turn to Step 2-B5; otherwise turn to step 2-B6;

步骤2-B4:当前MB的帧间预测模式选择步骤2-B3中选出的预测模式;转向步骤2-B7;Step 2-B4: The inter prediction mode of the current MB selects the prediction mode selected in step 2-B3; turn to step 2-B7;

步骤2-B5:当前MB的候选模式设定为Inter8x8、Inter8x4、Inter4x8和Inter4x4编码模式;转向步骤2-B7;Step 2-B5: The candidate mode of the current MB is set to Inter8x8, Inter8x4, Inter4x8 and Inter4x4 encoding modes; turn to step 2-B7;

步骤2-B6:当前MB的候选模式设定为Inter16x16、Inter16x8、Inter8x16以及Inter8x8编码模式;转向步骤2-B7;Step 2-B6: The candidate mode of the current MB is set to Inter16x16, Inter16x8, Inter8x16 and Inter8x8 encoding modes; turn to step 2-B7;

步骤2-B7:结束。Step 2-B7: End.

所述步骤1中,确定视点V2的纹理视频T2的当前MB在视点V1的纹理视频T1的对应MB的方法和确定V0的纹理视频T0的当前MB在视点V1的纹理视频T1和视点V2的纹理视频T2的对应MB的方法相同,由全局视差矢量GDV确定,其计算方式如下:In the step 1, the method of determining the current MB of the texture video T2 of the viewpoint V2 is in the corresponding MB of the texture video T1 of the viewpoint V1 and determining the texture of the texture video T1 of the viewpoint V1 and the texture of the viewpoint V2 of the current MB of the texture video T0 of the V0 The method of corresponding MB of video T2 is the same, determined by the global disparity vector GDV, and its calculation method is as follows:

其中,POCcurr、POCahead和POCbehind表示在时间轴上的图像序列号POC值,即图像帧的显示顺序,GDVahead和GDVbehind分别表示离当前编码帧最近的两个关键帧的GDV值,其计算方式如下:Among them, POC curr , POC ahead and POC behind represent the POC value of the image sequence number on the time axis, that is, the display order of the image frames, GDV ahead and GDV behind represent the GDV values of the two key frames closest to the current encoding frame, respectively, It is calculated as follows:

其中,img_l、img_r分别表示左、右视点中对应的关键帧,R为一块固定区域的像素个数,x和y分别表示左、右视点水平和垂直位置偏移量;Among them, img_l and img_r respectively represent the corresponding key frames in the left and right viewpoints, R is the number of pixels in a fixed area, x and y represent the horizontal and vertical position offsets of the left and right viewpoints respectively;

所述步骤2中,确定视点V2的深度视频D2的当前MB在视点V1的深度视频D1的对应MB的方法和确定V0的深度视频D0的当前MB在视点V1的深度视频D1和视点V2的深度视频D2的对应MB的方法均与步骤1中确定视点V2的纹理视频T2的当前MB在视点V1的纹理视频T1的对应MB的方法相同。In the step 2, the method of determining the current MB of the depth video D2 of the viewpoint V2 in the corresponding MB of the depth video D1 of the viewpoint V1 and determining the depth of the current MB of the depth video D0 of V0 in the depth video D1 of the viewpoint V1 and the depth of the viewpoint V2 The method of the corresponding MB of the video D2 is the same as the method of determining the corresponding MB of the texture video T1 of the viewpoint V1 in the current MB of the texture video T2 of the viewpoint V2 in step 1.

本发明与现有技术相比较,具有如下显而易见的突出实质性特点和显著技术进步:Compared with the prior art, the present invention has the following obvious outstanding substantive features and significant technological progress:

本发明在编码基本层纹理视频和增强层深度视频时,利用视点间的相关性、宏块本身的复杂度以及运动特征等信息,提前终止编码模式的选择过程,降低编码的时间复杂度,解决了MVD编码过程中编码模式选择时间开销过大的问题。When encoding the texture video of the base layer and the depth video of the enhancement layer, the present invention uses information such as the correlation between viewpoints, the complexity of the macroblock itself, and the motion characteristics to terminate the selection process of the encoding mode in advance, reduce the time complexity of encoding, and solve the problem of It solves the problem that the encoding mode selection time overhead is too large in the MVD encoding process.

附图说明:Description of drawings:

图1为宏块CBP值中各二进制位分布图;Fig. 1 is each binary bit distribution figure in the macroblock CBP value;

图2为MVD视频可分级编码的视点间编码预测结构;Fig. 2 is the inter-view coding prediction structure of MVD video scalable coding;

图3为本发明的流程图;Fig. 3 is a flowchart of the present invention;

图4为本发明中基本层视点V1中纹理视频T1的编码模式选择过程;Fig. 4 is the encoding mode selection process of the texture video T1 in the base layer viewpoint V1 in the present invention;

图5为本发明中基本层视点V2中纹理视频T2的编码模式选择过程;Fig. 5 is the encoding mode selection process of the texture video T2 in the base layer viewpoint V2 in the present invention;

图6为本发明中增强层视点V2中深度视频D2的编码模式选择过程;Fig. 6 is the encoding mode selection process of the depth video D2 in the enhancement layer viewpoint V2 in the present invention;

图7为本发明中增强层视点V1中深度视频D1的编码模式选择过程。FIG. 7 shows the encoding mode selection process of the depth video D1 in the enhancement layer view V1 in the present invention.

具体实施方式:Detailed ways:

本发明的优选实施例结合附图详述如下:Preferred embodiments of the present invention are described in detail as follows in conjunction with accompanying drawings:

实施例1:Example 1:

参见图1~图7,一种MVD视点可分级编码中的快速模式选择方法,对视点V0,V1和V2进行编码;所述各视点均由纹理视频和相应的深度视频组成;所述视点V0,V1和V2的纹理视频T0、T1和T2作为基本层,所述视点V0,V1和V2的深度视频D0、D1和D2作为增强层,编码顺序为视点V0的纹理视频T0-视点V2的纹理视频T2-视点V1的纹理视频T1-视点V2的深度视频D2-视点V1的深度视频D1-视点V0的深度视频D0;包括以下具体步骤:Referring to Figures 1 to 7, a fast mode selection method in MVD viewpoint scalable coding encodes viewpoints V0, V1 and V2; each viewpoint is composed of texture video and corresponding depth video; the viewpoint V0 , the texture videos T0, T1 and T2 of V1 and V2 are used as the base layer, the depth videos D0, D1 and D2 of the viewpoint V0, V1 and V2 are used as the enhancement layer, and the encoding sequence is the texture video T0 of the viewpoint V0-the texture of the viewpoint V2 Video T2-texture video T1-viewpoint V1-depth video D2-viewpoint V1-depth video D1-viewpoint V0 depth video D0; including the following specific steps:

步骤1.基本层编码:所述视点V0的纹理视频T0划分为1个以上MB,使用全遍历的编码模式选择流程选择出各MB的最佳编码模式;所述视点V2的纹理视频T2,利用当前MB的纹理复杂度及其与视点V0的纹理视频T0中对应MB的编码模式相关性简化编码候选模式集合,选择当前MB的编码模式;所述视点V1的纹理视频T1,利用当前MB的运动快慢情况及其与视点V0的纹理视频T0和视点V2的T2中对应宏块的编码模式相关性简化编码候选模式集合,选择当前MB的编码模式;Step 1. Basic layer coding: the texture video T0 of the viewpoint V0 is divided into more than one MB, and the best coding mode for each MB is selected using the full traversal coding mode selection process; the texture video T2 of the viewpoint V2 is used The texture complexity of the current MB and its correlation with the encoding mode of the corresponding MB in the texture video T0 of the viewpoint V0 simplify the encoding candidate mode set, and select the encoding mode of the current MB; the texture video T1 of the viewpoint V1 uses the motion of the current MB Simplify the encoding candidate mode set and select the encoding mode of the current MB based on the speed and slowness and its correlation with the encoding mode of the corresponding macroblock in the texture video T0 of the viewpoint V0 and the corresponding macroblock in the T2 of the viewpoint V2;

步骤2.增强层编码:所述视点V2的深度视频D2,利用当前MB中的深度边界分布情况及其与视点V2的纹理视频T2间的编码模式相关性简化编码候选模式,选择当前MB的编码模式;所述视点V1的深度视频D1,利用当前MB在SKIP或Inter16x16模式下的CBP值的大小及其与视点V2的深度视频D2中对应MB编码模式的相关性简化编码候选模式,从中选择当前MB的编码模式;所述视点V0的深度视频D0的编码模式选择方法与所述视点V1的深度视频D1的编码模式选择方法相同。Step 2. Enhancement layer coding: the depth video D2 of the viewpoint V2, using the depth boundary distribution in the current MB and its correlation with the coding mode of the texture video T2 of the viewpoint V2, simplify the coding candidate mode, and select the coding of the current MB mode: for the depth video D1 of the viewpoint V1, use the size of the CBP value of the current MB in SKIP or Inter16x16 mode and its correlation with the corresponding MB coding mode in the depth video D2 of the viewpoint V2 to simplify the encoding candidate mode, and select the current MB encoding mode; the encoding mode selection method of the depth video D0 of the viewpoint V0 is the same as the encoding mode selection method of the depth video D1 of the viewpoint V1.

上述步骤1中所述视点V2的纹理视频T2简化当前MB的编码候选模式集合的方法,包括以下步骤:The method for simplifying the encoding candidate mode set of the current MB for the texture video T2 of the viewpoint V2 described in step 1 includes the following steps:

步骤1-A1:分别设置下限阈值Th1和上限阈值Th2的初值为5和15;判断当前MB的左MB、上MB和视点V0的纹理视频T0中对应MB的编码模式是否为SKIP或Inter16x16编码模式;如果是转向步骤1-A2;否则转向步骤1-A3;Step 1-A1: Set the initial values of the lower threshold Th 1 and the upper threshold Th 2 to 5 and 15 respectively; determine whether the coding mode of the corresponding MB in the left MB, upper MB of the current MB, and texture video T0 of the viewpoint V0 is SKIP or Inter16x16 encoding mode; if it is turn to step 1-A2; otherwise turn to step 1-A3;

步骤1-A2:当前MB的候选模式设定为SKIP和Inter16x16编码模式;转向步骤1-A8;Step 1-A2: The candidate mode of the current MB is set to SKIP and Inter16x16 encoding mode; turn to step 1-A8;

步骤1-A3:判断当前MB的纹理复杂度MAD是否满足MAD<Th1;如果是,转向步骤1-A4;否则转向步骤1-A5;Step 1-A3: Determine whether the texture complexity MAD of the current MB satisfies MAD<Th 1 ; if yes, turn to step 1-A4; otherwise turn to step 1-A5;

当前MB的纹理复杂度的计算方法为:The calculation method of the texture complexity of the current MB is:

其中,p(i,j)表示当前MB内(i,j)坐标处的像素值,avg表示当前MB的像素平均值。Among them, p(i, j) represents the pixel value at the coordinate (i, j) in the current MB, and avg represents the pixel average value of the current MB.

步骤1-A4:当前MB的候选模式设定为SKIP、Inter16x16和Intra16x16编码模式,并更新Th1为:Step 1-A4: The candidate mode of the current MB is set to SKIP, Inter16x16 and Intra16x16 coding mode, and Th 1 is updated as:

转向步骤1-A8;Go to step 1-A8;

步骤1-A5:判断当前MB的纹理复杂度MAD是否满足MAD>Th2;如果是转向步骤1-A6;否则转向步骤1-A7;Step 1-A5: Judging whether the texture complexity MAD of the current MB satisfies MAD>Th 2 ; if so, go to step 1-A6; otherwise, go to step 1-A7;

步骤1-A6:当前MB的候选模式设定为Inter8x8、Inter8x4、Inter4x8、Inter4x4、Intra8x8和Intra4x4,并更新Th2为:Step 1-A6: The candidate mode of the current MB is set to Inter8x8, Inter8x4, Inter4x8, Inter4x4, Intra8x8 and Intra4x4, and update Th 2 as:

转向步骤1-A8;Go to step 1-A8;

步骤1-A7:当前MB的候选模式设定为Inter16x16、Inter16x8、Inter8x16和全部帧内编码模式;Step 1-A7: The candidate mode of the current MB is set to Inter16x16, Inter16x8, Inter8x16 and all intra-frame coding modes;

步骤1-A8:结束。Step 1-A8: End.

上述步骤1中所述视点V1的纹理视频T1简化当前MB的编码候选模式的方法,包括以下步骤:The method for simplifying the coding candidate mode of the current MB for the texture video T1 of the viewpoint V1 described in step 1 includes the following steps:

步骤1-B1:判断当前MB的左MB、上MB、所述视点V0的纹理视频T0中对应MB、所述视点V2的纹理视频T2中对应MB的编码模式是否为SKIP或Inter16x16,如果是转向步骤1-B2;否则转向步骤1-B3;Step 1-B1: Determine whether the encoding mode of the left MB, the upper MB of the current MB, the corresponding MB in the texture video T0 of the viewpoint V0, and the corresponding MB in the texture video T2 of the viewpoint V2 is SKIP or Inter16x16. Step 1-B2; otherwise go to step 1-B3;

步骤1-B2:当前MB的候选模式设定为SKIP和Inter16x16编码模式;转向步骤1-B8;Step 1-B2: The candidate mode of the current MB is set to SKIP and Inter16x16 encoding mode; turn to step 1-B8;

步骤1-B3:根据当前MB的左MB、上MB、所述视点V0的纹理视频T0中对应MB、所述视点V2的纹理视频T2中对应MB的运动矢量的平均值将当前MB划分为运动缓慢、中度运动和运动剧烈三种情况类型:Step 1-B3: According to the average value of the motion vectors of the left MB, the upper MB of the current MB, the corresponding MB in the texture video T0 of the viewpoint V0, and the corresponding MB in the texture video T2 of the viewpoint V2, the current MB is divided into motion There are three types of situations: slow, moderate and vigorous exercise:

式中D1和D2分别第一和第二划分阈值;D为当前MB的运动矢量的距离,其计算方法为:In the formula, D1 and D2 are the first and second division thresholds respectively; D is the distance of the motion vector of the current MB, and its calculation method is:

D=|x|+|y| (5)D=|x|+|y| (5)

其中,i=1...6,xi和yi分别为参考宏块当前MB的左MB、上MB、所述视点V1的纹理视频T1中前向参考帧中对应MB、所述视点V1的纹理视频T1中后向参考帧中对应MB、所述视点V0的纹理视频T0中对应MB和所述视点V2的纹理视频T2中对应MB的水平和垂直运动矢量值;Wherein, i=1...6, x i and y i are the left MB of the current MB of the reference macroblock, the upper MB, the corresponding MB in the forward reference frame of the texture video T1 of the viewpoint V1, the viewpoint V1 The horizontal and vertical motion vector values corresponding to the MB in the backward reference frame of the texture video T1, the corresponding MB in the texture video T0 of the viewpoint V0, and the corresponding MB in the texture video T2 of the viewpoint V2;

如果当前MB为运动缓慢类型,转向步骤1-B4;如果当前MB为中度运动类型,转向步骤1-B5;如果当前MB为运动剧烈类型,转向步骤1-B7;If the current MB is of slow movement type, turn to step 1-B4; if the current MB is of moderate movement type, turn to step 1-B5; if the current MB is of vigorous movement type, turn to step 1-B7;

步骤1-B4:当前MB的候选模式设定为SKIP和Inter16x16编码模式;转向步骤1-B7;Step 1-B4: The candidate mode of the current MB is set to SKIP and Inter16x16 encoding mode; turn to step 1-B7;

步骤1-B5:当前MB的候选模式设定为Inter16x16,Inter16x8、Inter8x16和Inter8x8编码模式;转向步骤1-B7;Step 1-B5: The candidate mode of the current MB is set to Inter16x16, Inter16x8, Inter8x16 and Inter8x8 encoding modes; turn to step 1-B7;

步骤1-B6:当前MB的候选模式设定为所有编码模式;转向步骤1-B7;Step 1-B6: the candidate mode of the current MB is set to all encoding modes; turn to step 1-B7;

步骤1-B7:结束。Step 1-B7: End.

上述步骤2中所述视点V2的深度视频D2简化当前MB的编码候选模式的方法,包括以下步骤:The method for simplifying the encoding candidate mode of the current MB for the depth video D2 of the viewpoint V2 described in step 2 includes the following steps:

步骤2-A1:判断当前MB在视点V2的纹理视频T2中对应MB的编码模式是否为SKIP或Inter16x16;如果是转向步骤1-A2;否则转向步骤1-A3;Step 2-A1: Determine whether the encoding mode of the MB corresponding to the texture video T2 of the viewpoint V2 is SKIP or Inter16x16; if so, turn to step 1-A2; otherwise, turn to step 1-A3;

步骤2-A2:当前MB的候选模式设定为SKIP和Inter16x16编码模式;转向步骤2-A6;Step 2-A2: The candidate mode of the current MB is set to SKIP and Inter16x16 encoding mode; turn to step 2-A6;

步骤2-A3:计算当前MB中含有深度边界的子宏块的个数Num;如果子宏块的个数Num为0,转向步骤2-A2;如果子宏块的个数Num为1,转向步骤2-A4;否则,转向步骤2-A5;Step 2-A3: Calculate the number Num of sub-macroblocks containing depth boundaries in the current MB; if the number Num of sub-macroblocks is 0, turn to step 2-A2; if the number Num of sub-macroblocks is 1, turn to Step 2-A4; Otherwise, go to Step 2-A5;

步骤2-A4:当前MB的候选模式设定为SKIP、Inter16x16、Inter16x16、Inter16x8和Inter8x16编码模式;转向步骤1-B8;转向步骤2-A6;Step 2-A4: The candidate mode of the current MB is set to SKIP, Inter16x16, Inter16x16, Inter16x8 and Inter8x16 encoding modes; turn to step 1-B8; turn to step 2-A6;

步骤2-A5:当前MB的候选模式设定为Inter16x8、Inter8x16、Inter8x8、Inter8x4、Inter4x8以及和Inter4x4编码模式;转向步骤2-A6;Step 2-A5: The candidate mode of the current MB is set to Inter16x8, Inter8x16, Inter8x8, Inter8x4, Inter4x8 and Inter4x4 coding mode; turn to step 2-A6;

步骤2-A6:结束。Step 2-A6: End.

上述步骤2中所述视点V1的深度视频D1简化当前MB的编码候选模式的方法,包括以下步骤:The method for simplifying the coding candidate mode of the current MB for the depth video D1 of the viewpoint V1 described in step 2 includes the following steps:

步骤2-B1:判断当前MB在视点V2的深度视频D2中对应MB的编码模式是否为SKIP或Inter16x16,并且当前MB在视点V2的深度视频D2中对应MB的CBP=0;如果是,转向步骤1-B2;否则转向步骤1-B3;Step 2-B1: Determine whether the encoding mode of the corresponding MB of the current MB in the depth video D2 of the viewpoint V2 is SKIP or Inter16x16, and the CBP of the corresponding MB of the current MB in the depth video D2 of the viewpoint V2=0; if yes, go to step 1-B2; otherwise go to step 1-B3;

步骤2-B2:当前MB的候选模式设定为SKIP和Inter16x16编码模式;转向步骤2-B7;Step 2-B2: The candidate mode of the current MB is set to SKIP and Inter16x16 encoding mode; turn to step 2-B7;

步骤2-B3:当前MB在SKIP和Inter16x16模式中首先根据率失真优化准则选择出一个预选模式,如果CBP=0,转向步骤2-B4;如果CBP=7,11,13,14,15,转向步骤2-B5;否则转向步骤2-B6;Step 2-B3: In the SKIP and Inter16x16 modes, the current MB first selects a pre-selected mode according to the rate-distortion optimization criterion, if CBP=0, turn to step 2-B4; if CBP=7, 11, 13, 14, 15, turn to Step 2-B5; otherwise turn to step 2-B6;

步骤2-B4:当前MB的帧间预测模式选择步骤2-B3中选出的预测模式;转向步骤2-B7;Step 2-B4: The inter prediction mode of the current MB selects the prediction mode selected in step 2-B3; turn to step 2-B7;

步骤2-B5:当前MB的候选模式设定为Inter8x8、Inter8x4、Inter4x8和Inter4x4编码模式;转向步骤2-B7;Step 2-B5: The candidate mode of the current MB is set to Inter8x8, Inter8x4, Inter4x8 and Inter4x4 encoding modes; turn to step 2-B7;

步骤2-B6:当前MB的候选模式设定为Inter16x16、Inter16x8、Inter8x16以及Inter8x8编码模式;转向步骤2-B7;Step 2-B6: The candidate mode of the current MB is set to Inter16x16, Inter16x8, Inter8x16 and Inter8x8 encoding modes; turn to step 2-B7;

步骤2-B7:结束。Step 2-B7: End.

所述步骤1中,确定视点V2的纹理视频T2的当前MB在视点V1的纹理视频T1的对应MB的方法和确定V0的纹理视频T0的当前MB在视点V1的纹理视频T1和视点V2的纹理视频T2的对应MB的方法相同,由全局视差矢量GDV确定,其计算方式如下:In the step 1, the method of determining the current MB of the texture video T2 of the viewpoint V2 is in the corresponding MB of the texture video T1 of the viewpoint V1 and determining the texture of the texture video T1 of the viewpoint V1 and the texture of the viewpoint V2 of the current MB of the texture video T0 of the V0 The method of corresponding MB of video T2 is the same, determined by the global disparity vector GDV, and its calculation method is as follows:

其中,POCcurr、POCahead和POCbehind表示在时间轴上的图像序列号POC值,即图像帧的显示顺序,GDVahead和GDVbehind分别表示离当前编码帧最近的两个关键帧的GDV值,其计算方式如下;Among them, POC curr , POC ahead and POC behind represent the POC value of the image sequence number on the time axis, that is, the display order of the image frames, GDV ahead and GDV behind represent the GDV values of the two key frames closest to the current encoding frame, respectively, It is calculated as follows;

其中,img_l、img_r分别表示左、右视点中对应的关键帧,R为一块固定区域的像素个数,x和y分别表示左、右视点水平和垂直位置偏移量;Among them, img_l and img_r respectively represent the corresponding key frames in the left and right viewpoints, R is the number of pixels in a fixed area, x and y represent the horizontal and vertical position offsets of the left and right viewpoints respectively;

所述步骤2中,确定视点V2的深度视频D2的当前MB在视点V1的深度视频D1的对应MB的方法和确定V0的深度视频D0的当前MB在视点V1的深度视频D1和视点V2的深度视频D2的对应MB的方法均与步骤1中确定视点V2的纹理视频T2的当前MB在视点V1的纹理视频T1的对应MB的方法相同。In the step 2, the method of determining the current MB of the depth video D2 of the viewpoint V2 in the corresponding MB of the depth video D1 of the viewpoint V1 and determining the depth of the current MB of the depth video D0 of V0 in the depth video D1 of the viewpoint V1 and the depth of the viewpoint V2 The method of the corresponding MB of the video D2 is the same as the method of determining the corresponding MB of the texture video T1 of the viewpoint V1 in the current MB of the texture video T2 of the viewpoint V2 in step 1.

本文所描述的具体实施方式仅是对本发明精神作举例说明。本发明所属技术领域的技术人员可以对所描述的具体实施案例做修改、补充或采用类似的方式替代,但并不会偏离本发明的精神或者超越所附权利要求书所定义的范围。The specific embodiments described herein are only examples to illustrate the spirit of the present invention. Those skilled in the technical field to which the present invention belongs may modify, supplement or replace in a similar manner to the described specific implementation cases, but they will not deviate from the spirit of the present invention or go beyond the scope defined in the appended claims.

Claims (6)

1. the fast schema selection method in a kind of MVD viewpoints graduated encoding, to vision point 0, V1 and V2 are encoded;It is special Sign is:Each viewpoint is made of texture video and corresponding deep video;The texture video of the vision point 0, V1 and V2 T0, T1 and T2 are as Primary layer, the vision point 0, and as enhancement layer, coded sequence is deep video D0, D1 and D2 of V1 and V2 The deep video D2- of the texture video T1- vision points 2 of the texture video T2- vision points 1 of the texture video T0- vision points 2 of vision point 0 The deep video D0 of the deep video D1- vision points 0 of vision point 1;It is characterized in that:Including step in detail below:
Step 1. Primary layer encodes:The texture video T0 of the vision point 0 is divided into 1 or more MB, uses the coding mould traversed entirely Formula selection process selecting goes out the forced coding pattern of each MB;The texture video T2 of the vision point 2 is multiple using the texture of current MB Miscellaneous degree and its coding mode correlation that MB is corresponded to the texture video T0 of vision point 0 simplify coding candidate pattern set, selection The coding mode of current MB;The texture video T1 of the vision point 1, using current MB movement speed situation and its with vision point 0 Texture video T0 and vision point 2 T2 in correspond to the coding mode correlation of MB and simplify coding candidate pattern set, selection is current The coding mode of MB;
Step 2. enhancement layer coding:The deep video D2 of the vision point 2, using in current MB depth boundary distribution situation and Coding mode correlation between its texture video T2 with vision point 2 simplifies coding candidate pattern, selects the coding mould of current MB Formula;The deep video D1 of the vision point 1, using CBP values of the current MB under SKIP or Inter16x16 patterns size and its The correlation that MB coding modes are corresponded to the deep video D2 of vision point 2 simplifies coding candidate pattern, therefrom selects current MB's Coding mode;The volume of the coding mode selection method of the deep video D0 of the vision point 0 and the deep video D1 of the vision point 1 Pattern selection method is identical.
2. the fast schema selection method in MVD viewpoints graduated encoding according to claim 1;It is characterized in that:Institute State vision point 2 texture video T2 simplify current MB coding candidate pattern set method, include the following steps:
Step 1-A1:Lower threshold Th is respectively set1With upper limit threshold Th2Initial value;Judge left MB, the upper MB of current MB and regards Whether the coding mode that MB is corresponded in the texture video T0 of point V0 is SKIP or Inter16x16 coding modes;It is walked if it is turning to Rapid 1-A2;Otherwise step 1-A3 is turned to;
Step 1-A2:The candidate pattern of current MB is set as SKIP and Inter16x16 coding modes;Turn to step 1-A8;
Step 1-A3:Judge whether the Texture complication MAD of current MB meets MAD < Th1, if so, turning to step 1-A4;It is no Then turn to step 1-A5;
Currently the computational methods of the Texture complication of MB are:
Wherein, p (i, j) indicates that the pixel value at (i, j) coordinate, avg indicate the pixel average of current MB in current MB;
Step 1-A4:The candidate pattern of current MB is set as SKIP, Inter16x16 and Intra16x16 coding mode, and updates Th1For:
Turn to step 1-A8;
Step 1-A5:Judge whether the Texture complication MAD of current MB meets MAD > Th2;If so, turning to step 1-A6;It is no Then turn to step 1-A7;
Step 1-A6:The candidate pattern of current MB be set as Inter8x8, Inter8x4, Inter4x8, Inter4x4, Intra8x8 and Intra4x4, and update Th2For:
Turn to step 1-A8;
Step 1-A7:The candidate pattern of current MB is set as compiling in Inter16x16, Inter16x8, Inter8x16 and whole frame Pattern;
Step 1-A8:Terminate.
3. the fast schema selection method in MVD viewpoints graduated encoding according to claim 1;It is characterized in that:Step The method that the texture video T1 of vision point 1 described in rapid 1 simplifies the coding candidate pattern of current MB, includes the following steps:
Step 1-B1:Judge to correspond to MB, the vision point 2 in the texture video T0 of the left MB of current MB, upper MB, the vision point 0 Texture video T2 in correspond to whether the coding mode of MB is SKIP or Inter16x16, if it is turn to step 1-B2;Otherwise Turn to step 1-B3;
Step 1-B2:The candidate pattern of current MB is set as SKIP and Inter16x16 coding modes;Turn to step 1-B7;
Step 1-B3:According to the left MB of current MB, upper MB, the vision point 0 texture video T0 in correspond to MB, the vision point 2 Texture video T2 in correspond to MB motion vector average value by current MB be divided into movement slowly, moderate activity and movement it is acute Strong three kinds of situation types:
D in formula1And D2Respectively first and second divide threshold value;D is the distance of the motion vector of current MB, and computational methods are:
D=&#124;x&#124;+&#124;y&#124; (5)
Wherein, i=1...6, xiAnd yiThe left MB of respectively current MB, upper MB, the vision point 1 texture video T1 in forward direction join Examine the texture video for corresponding to MB, the vision point 0 in the texture video T1 for corresponding to MB, the vision point 1 in frame in backward reference frame The horizontal and vertical movement vector value that MB is corresponded in the texture video T2 of MB and the vision point 2 is corresponded in T0;
If current MB is to move slow type, step 1-B4 is turned to;If current MB is moderate activity type, step 1- is turned to B5;If current MB is motion intense type, step 1-B7 is turned to;
Step 1-B4:The candidate pattern of current MB is set as SKIP and Inter16x16 coding modes;Turn to step 1-B7;
Step 1-B5:The candidate pattern of current MB is set as Inter16x16, and Inter16x8, Inter8x16 and Inter8x8 are compiled Pattern;Turn to step 1-B7;
Step 1-B6:The candidate pattern of current MB is set as all coding modes;Turn to step 1-B7;
Step 1-B7:Terminate.
4. the fast schema selection method in MVD viewpoints graduated encoding according to claim 1;It is characterized in that:Step The method that the deep video D2 of vision point 2 described in rapid 2 simplifies the coding candidate pattern of current MB, includes the following steps:
Step 2-A1:Judge current MB corresponded in the texture video T2 of vision point 2 MB coding mode whether be SKIP or Inter16x16;If it is steering step 2-A2;Otherwise step 2-A3 is turned to;
Step 2-A2:The candidate pattern of current MB is set as SKIP and Inter16x16 coding modes;Turn to step 2-A6;
Step 2-A3:Calculate the number Num of the sub-macroblock containing depth boundary in current MB;If the number Num of sub-macroblock is 0, turn to step 2-A2;If the number Num of sub-macroblock is 1, step 2-A4 is turned to;Otherwise, step 2-A5 is turned to;
Step 2-A4:The candidate pattern of current MB be set as SKIP, Inter16x16, Inter16x16, Inter16x8 and Inter8x16 coding modes;Turn to step 2-A6;
Step 2-A5:The candidate pattern of current MB be set as Inter16x8, Inter8x16, Inter8x8, Inter8x4, Inter4x8 and with Inter4x4 coding modes;Turn to step 2-A6;
Step 2-A6:Terminate.
5. the fast schema selection method in MVD viewpoints graduated encoding according to claim 1;It is characterized in that:On State vision point 1 described in step 2 deep video D1 simplify current MB coding candidate pattern method, include the following steps:
Step 2-B1:Judge current MB corresponded in the deep video D2 of vision point 2 MB coding mode whether be SKIP or Inter16x16, and current MB corresponds to the CBP=0 of MB in the deep video D2 of vision point 2;If it is steering step 2-B2; Otherwise step 2-B3 is turned to;
Step 2-B2:The candidate pattern of current MB is set as SKIP and Inter16x16 coding modes;Turn to step 2-B7;
Step 2-B3:Current MB selects one in advance according to rate-distortion optimization criterion first in SKIP and Inter16x16 patterns Lectotype turns to step 2-B4 if CBP=0;If CBP=7,11,13,14,15, turn to step 2-B5;Otherwise step is turned to Rapid 2-B6;
Step 2-B4:The prediction mode selected in the inter-frame forecast mode selection step 2-B3 of current MB;Turn to step 2-B7;
Step 2-B5:The candidate pattern of current MB is set as Inter8x8, Inter8x4, Inter4x8 and Inter4x4 coding mould Formula;Turn to step 2-B7;
Step 2-B6:The candidate pattern of current MB is set as Inter16x16, Inter16x8, Inter8x16 and Inter8x8 Coding mode;Turn to step 2-B7;
Step 2-B7:Terminate.
6. the fast schema selection method in MVD viewpoints graduated encoding according to claim 1;It is characterized in that:Institute State in step 1, determine the current MB of the texture video T2 of vision point 2 in the method for the correspondence MB of the texture video T1 of vision point 1 and Determine the current MB of the texture video T0 of V0 the texture video T1 of vision point 1 and the texture video T2 of vision point 2 correspondence MB Method is identical, determines that calculation is as follows by global disparity vector GDV:
Wherein, POCcurr、POCaheadAnd POCbehindIndicate image sequence POC values on a timeline, the i.e. display of picture frame Sequentially, GDVaheadAnd GDVbehindThe GDV values of two key frames nearest from current encoded frame are indicated respectively, and calculation is such as Under:
Wherein, img_l, img_r indicate that corresponding key frame in left and right viewpoint, R are the pixel of one piece of fixed area respectively Number, x and y indicate left and right viewpoint horizontal and vertical position offset respectively;
In the step 2, determine the current MB of the deep video D2 of vision point 2 the deep video D1 of vision point 1 correspondence MB Pairs of the current MB of the deep video D0 of method and determining V0 in the deep video D1 of vision point 1 and the deep video D2 of vision point 2 Answer the method for MB with the current MB for the texture video T2 that vision point 2 is determined in step 1 vision point 1 texture video T1 it is corresponding The method of MB is identical.
CN201610190391.7A 2016-03-30 2016-03-30 A kind of fast schema selection method in MVD viewpoints graduated encoding Expired - Fee Related CN105872543B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610190391.7A CN105872543B (en) 2016-03-30 2016-03-30 A kind of fast schema selection method in MVD viewpoints graduated encoding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610190391.7A CN105872543B (en) 2016-03-30 2016-03-30 A kind of fast schema selection method in MVD viewpoints graduated encoding

Publications (2)

Publication Number Publication Date
CN105872543A CN105872543A (en) 2016-08-17
CN105872543B true CN105872543B (en) 2018-10-23

Family

ID=56627319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610190391.7A Expired - Fee Related CN105872543B (en) 2016-03-30 2016-03-30 A kind of fast schema selection method in MVD viewpoints graduated encoding

Country Status (1)

Country Link
CN (1) CN105872543B (en)

Citations (4)

* 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
KR20110075568A (en) * 2009-12-28 2011-07-06 경희대학교 산학협력단 Multiview Image Coding Method
CN102572439A (en) * 2012-03-14 2012-07-11 清华大学深圳研究生院 Method for determining optimal multi-viewpoint video coding mode for coding
CN103338370A (en) * 2013-06-05 2013-10-02 宁波大学 Multi-view depth video fast coding method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006246431A (en) * 2005-02-07 2006-09-14 Matsushita Electric Ind Co Ltd Image coding apparatus and method

Patent Citations (4)

* 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
KR20110075568A (en) * 2009-12-28 2011-07-06 경희대학교 산학협력단 Multiview Image Coding Method
CN102572439A (en) * 2012-03-14 2012-07-11 清华大学深圳研究生院 Method for determining optimal multi-viewpoint video coding mode for coding
CN103338370A (en) * 2013-06-05 2013-10-02 宁波大学 Multi-view depth video fast coding method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于多视点视频的差错控制技术;廖小僮;《电视技术》;20100312;第34卷(第3期);第11-13页 *

Also Published As

Publication number Publication date
CN105872543A (en) 2016-08-17

Similar Documents

Publication Publication Date Title
JP7248741B2 (en) Efficient Multiview Coding with Depth Map Estimation and Update
CN102055982B (en) Coding and decoding methods and devices for three-dimensional video
Yea et al. View synthesis prediction for multiview video coding
CN101170702B (en) Multi-view video coding method
CN100563339C (en) A Multi-channel Video Stream Coding Method Using Depth Information
US10349083B2 (en) Method for low-latency illumination compensation process and Depth Lookup Table based coding
US20140002599A1 (en) Competition-based multiview video encoding/decoding device and method thereof
CN107623850B (en) A Fast Screen Content Coding Method Based on Spatiotemporal Correlation
CN106210722B (en) The coding method of depth of seam division video residual error layer data based on HEVC
WO2012099438A2 (en) Method of adaptive frame prediction for multiview video sequence coding
CN104602028B (en) A kind of three-dimensional video-frequency B frames entire frame loss error concealing method
WO2016155070A1 (en) Method for acquiring adjacent disparity vectors in multi-texture multi-depth video
CN108347605B (en) Quick decision-making method for 3D video depth image quad-tree coding structure division
CN101867813A (en) Multiview Video Coding Method for Interactive Applications
CN102595145A (en) Method for error concealment of whole frame loss of stereoscopic video
CN101262606A (en) A processing method of multi-viewpoint video
Balota et al. Overview and quality analysis in 3D-HEVC emergent video coding standard
Kitahara et al. Multi-view video coding using view interpolation and reference picture selection
De Silva et al. Intra mode selection for depth map coding to minimize rendering distortions in 3D video
Dricot et al. Full parallax super multi-view video coding
CN105872561B (en) A kind of gradable multi-view point video plus depth macro-block coding pattern fast selecting method
CN105872543B (en) A kind of fast schema selection method in MVD viewpoints graduated encoding
Seo et al. Motion information sharing mode for depth video coding
CN103702120B (en) Subjective distortion estimation method for synthetic viewpoint
CN102946538B (en) A Fast Intra-Frame Mode Selection Method Suitable for Underground Distributed Video Coding

Legal Events

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

Granted publication date: 20181023

CF01 Termination of patent right due to non-payment of annual fee