WO2012159288A1 - 一种运动矢量预测编解码方法、装置及编解码系统 - Google Patents

一种运动矢量预测编解码方法、装置及编解码系统 Download PDF

Info

Publication number
WO2012159288A1
WO2012159288A1 PCT/CN2011/076186 CN2011076186W WO2012159288A1 WO 2012159288 A1 WO2012159288 A1 WO 2012159288A1 CN 2011076186 W CN2011076186 W CN 2011076186W WO 2012159288 A1 WO2012159288 A1 WO 2012159288A1
Authority
WO
WIPO (PCT)
Prior art keywords
motion vector
current block
block
candidate
data
Prior art date
Application number
PCT/CN2011/076186
Other languages
English (en)
French (fr)
Inventor
徐苏珊
Original Assignee
深圳市融创天下科技股份有限公司
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 深圳市融创天下科技股份有限公司 filed Critical 深圳市融创天下科技股份有限公司
Publication of WO2012159288A1 publication Critical patent/WO2012159288A1/zh

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/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/513Processing of motion vectors
    • H04N19/517Processing of motion vectors by encoding
    • H04N19/52Processing of motion vectors by encoding by predictive encoding

Definitions

  • the present invention relates to the field of video coding and decoding, and in particular, to a motion vector prediction coding and decoding method, apparatus, and codec system.
  • the latest video coding standard H264 has greatly improved image compression efficiency compared to traditional coding standards such as H263, but it also brings some new problems.
  • the image coding algorithm is more precise, and the division of image data is getting smaller and smaller.
  • the minimum processing unit of H264 for luminance data is 4x4.
  • the advantage of this is that the accuracy of motion prediction can be improved during the inter prediction process.
  • the inadequacy is that the refinement of the data processing unit brings about an increase in motion vectors, which requires a large amount of data to transmit motion vectors, resulting in an increase in the code rate. This deficiency is particularly prominent in low-rate video compression, according to statistics in low codes. About 20% to 30% of the data in the video stream is used to transmit motion vectors.
  • the purpose of the embodiments of the present invention is to provide a motion vector predictive coding method, which aims to solve the problem of increasing the motion rate caused by the refinement of the data processing unit in the low bit rate video compression.
  • a motion vector predictive coding method is implemented in this embodiment, where the method includes: acquiring a motion vector wv of a current block after motion prediction;
  • the method further comprises the steps of:
  • the motion vector is simulated and decoded at the encoding end to obtain an optimal motion vector simulation value.
  • the method further comprises the steps of:
  • the motion vector difference mvd is encoded by the entropy coding module to the decoding end.
  • a second object of the embodiments of the present invention is to provide a motion vector predictive coding apparatus, where the apparatus includes:
  • a motion vector acquisition module configured to acquire a motion vector of the current block after motion prediction
  • a candidate motion vector set construction module configured to construct a candidate motion vector set for motion vector predictive coding; specifically: selecting a left block of the current block
  • the motion vector, the motion vector W of the reference block pointed to by the motion vector V of the current block constitutes the candidate motion vector set
  • Each candidate motion vector has its specific motion vector position number in the candidate motion vector set; the optimal motion vector predictor selection module is used to concentrate from the candidate motion vector select the best motion vector predictor 3 ⁇ 4 ⁇ comprising a number of bits motion vector prediction difference value calculation module, a motion vector difference bit number selection module;
  • a motion vector prediction difference bit number calculation module configured to calculate a coded motion vector difference bit number R (mv - mv , where is a motion vector of the current block, is a predicted value of the motion vector, and the value of the pedal is at the candidate motion vector Centralized selection;
  • the apparatus further includes: a motion vector difference sending module, configured to send the motion vector difference to the decoding end by using an entropy encoding module.
  • the device further includes: an analog decoding module, connected to the motion vector difference obtaining module, configured to perform analog decoding on the motion vector at the encoding end to obtain an optimal motion vector analog value WV ⁇ .
  • a third object of the embodiments of the present invention is to provide a motion vector predictive decoding method, where the method includes:
  • the "decoding according to whether the motion stream position number includes the motion vector position number in the code stream data" is specifically:
  • the motion vector predictor WV ⁇ is obtained from the motion vector candidate set according to the motion vector position number, and the calculated motion vector of the current block is further decoded.
  • mvd foot one mv best ;
  • a fourth object of the embodiments of the present invention is to provide a motion vector predictive decoding apparatus, where the apparatus includes:
  • a data receiving module configured to receive code stream data sent by the encoding end, where the code stream data includes a motion vector difference and/or a motion vector position number;
  • a motion vector location number detecting module configured to detect whether the motion vector location number is included in the code stream data
  • a decoding module configured to: when the code stream data does not include a position number of the motion vector, perform motion decoding according to the received motion vector difference to obtain a motion vector v of the current block; and further, when the code stream data includes motion
  • the optimal motion vector predictor WV ⁇ ' is obtained from the motion vector candidate set according to the motion vector position number, and the calculated current block motion vector is further decoded.
  • a fifth object of the embodiments of the present invention is to provide a motion vector predictive coding and decoding system, the system comprising the motion vector predictive coding device and the motion vector predictive decoding device.
  • the embodiment of the invention constructs a set of motion vector analog decoding module on the encoding end, selects the predicted value of the motion vector more accurately by spatial and temporal correlation, reduces the code rate of the encoded motion vector difference, and can compress the motion more finely.
  • Vector data reducing the bit rate of the output.
  • FIG. 1 is a flow chart of a preferred embodiment of a motion vector predictive coding method of the present invention
  • FIG. 2 is a flow chart of a method for performing analog decoding of a motion vector at an encoding end to obtain an optimal motion vector analog value in the method shown in FIG. Figure
  • FIG. 3 is a view showing a candidate motion vector position when the current block is located in the first column and the kth row of the current frame, which is listed in the preferred embodiment of the motion vector predictive coding method of the present invention
  • FIG. 4 is a schematic structural diagram of a preferred embodiment of a motion vector predictive coding apparatus according to the present invention
  • FIG. 5 is a schematic structural diagram of a specific module of an analog decoding module in the apparatus shown in FIG. 4.
  • FIG. 6 is a motion vector predictive decoding of the present invention.
  • a flowchart of a preferred embodiment of the method
  • FIG. 7 is a schematic structural diagram of a preferred embodiment of a motion vector predictive decoding apparatus according to the present invention
  • FIG. 8 is a schematic structural diagram of a preferred embodiment of a motion vector predictive encoding and decoding system according to the present invention.
  • the embodiment of the invention constructs a set of motion vector simulation decoding module on the encoding end, and more precisely selects the predicted value of the motion vector by spatial and temporal correlation, and reduces the code rate of the encoded motion vector difference.
  • Embodiment 1
  • FIG. 1 is a flow chart of a preferred embodiment of a motion vector predictive coding method of the present invention, the method comprising the steps of:
  • the specific method of “building a candidate motion vector set for motion vector predictive coding” is: selecting a motion vector of a block adjacent to a left side of the current block, and a current block.
  • the motion vector wv of the reference block pointed by the motion vector V constitutes a candidate motion vector set
  • Each candidate motion vector has its specific motion vector position number in the candidate motion vector set, for example: ⁇
  • the motion vector position number in the candidate motion vector set can be 1
  • the motion vector position number in the candidate motion vector set may be 5.
  • 3 is a candidate motion vector position map when the current block listed in the preferred embodiment of the motion vector predictive coding method of the present invention is located in the first column and the kth row of the current frame. As shown in FIG.
  • the motion vector of the current block is mv
  • the motion vector of the left block of the current block is V
  • the motion vector of the square of the current block is ⁇
  • the motion vector of the right block of the current block is the foot c
  • the current frame The motion vector of the block in the same position of the previous frame (the first row and the kth row) is that the motion vector of the reference block pointed to by the current block motion vector v is mv E.
  • the specific method of "selecting the optimal motion vector predictive value wv ⁇ '" is as follows: 51031, coded motion vector difference calculation, _ V, i.e., the number of encoded bits of the motion vector prediction difference value required; wherein, WT ⁇ e [WV ⁇ foot where the foot motion vector of the current block, W1 ⁇ is the predicted value of the motion vector, W1 of The value of ⁇ is selected in the set of candidate motion vectors.
  • the motion vector difference is encoded by the entropy coding module and sent to the decoding end.
  • the embodiment of the present invention more precisely selects the predicted value of the motion vector by spatial and temporal correlation, and reduces the code rate of the encoded motion vector difference.
  • the following steps may be added after step S104:
  • FIG. 2 is a flow chart of a method for performing analog decoding on a motion vector to obtain an optimal motion vector analog value
  • is prediction data of the current block image, which is obtained by motion compensation by the temporary motion vector ⁇ ';
  • is the residual data, which is obtained by motion compensation by the current block motion vector.
  • y (i, j) is the reconstructed image data of the i-th row and the j-th column.
  • the first data in the upper left corner of the current reconstructed image block data is the origin, represented by y (0, 0), and 111 and 11 are the current block. Length and width;
  • one represents the data of the left column of the current reconstructed image block data, where i takes values from 0 to n-1;
  • W- 1 represents a row of data on the current reconstructed image block data, where j takes values from 1 to m-1;
  • the encoding end does not need to add a description in the output code stream indicating the position number of the optimal motion vector predictor in the candidate motion vector set;
  • a motion vector predictive coding method is proposed. The motion vector predictive value is more accurately selected by spatial and temporal correlation, and the code rate of the encoded motion vector difference is reduced. The motion vector data can be compressed more finely, and the output is reduced. Code rate.
  • FIG. 4 is a schematic structural diagram of a motion vector predictive coding apparatus according to an embodiment of the present invention, where the motion vector predictive coding apparatus includes:
  • a motion vector acquisition module configured to acquire a motion vector of the current block after motion prediction
  • a candidate motion vector set construction module configured to construct a candidate motion vector set for motion vector predictive coding; specifically: selecting a left neighbor of the current block Motion vector of one block V
  • the motion vector w of the block, the motion vector WV of the reference block pointed to by the motion vector V of the current block constitutes a candidate motion vector set [ ⁇ mv B mv c mv h264 mv D mv E ] ⁇
  • Each candidate motion vector is in the candidate motion vector set
  • An optimal motion vector predictor selection module configured to select an optimal motion vector predictor "" ⁇ ' from the candidate motion vector set, where the motion vector predictive difference bit
  • a motion vector prediction difference bit number calculation module configured to calculate a coded motion vector difference leg, that is, a number of bits required to encode a motion vector prediction difference, where Mv P e [mv A mv B mv c mv h2M mv D WV J, where wv is the motion vector of the current block, is the predicted value of the motion vector, and the value of mv P is selected in the candidate motion vector set;
  • a motion vector difference bit number selection module configured to select a number of coded motion vector difference bits
  • the motion vector predictive coding device may further include an analog decoding module, which is a schematic diagram of a specific module structure of the analog decoding module, as shown in FIG.
  • An analog decoding module is connected to the motion vector difference obtaining module, and is configured to perform analog decoding on the motion vector at the encoding end to obtain an optimal motion vector analog value W1.
  • the analog decoding module further includes a motion vector predictor selection module, Temporary motion vector construction module, reconstructed image block data acquisition module, difference coefficient construction module, optimal motion vector simulation value selection module, and optimal motion vector position number writing module; motion vector predictive value selection module, used to sequentially
  • y (i, j) is the reconstructed image data of the i-th row and the j-th column.
  • the first data in the upper left corner of the current reconstructed image block data is the origin, represented by y (0, 0), and 111 and 11 are the current block. Length and width;
  • one represents the data of the left column of the current reconstructed image block data, where i takes values from 0 to n-1;
  • W- 1 represents a row of data on the current reconstructed image block data, where j takes values from 1 to m-1;
  • An optimal motion vector simulation value selection module is configured to select a motion vector prediction value that minimizes the difference coefficient as an optimal motion vector simulation value ⁇ ;
  • An optimal motion vector position number writing module is configured to: if the optimal motion vector analog value is not equal to the optimal motion vector predictive value, add a specified motion vector predictor value in the output code stream and ⁇ in the candidate motion vector A description of the centralized location number.
  • the prediction value of the motion vector is more accurately selected by spatial and temporal correlation, and the code rate of the encoded motion vector difference is reduced, so that the motion vector data can be compressed more finely, and the output code rate is reduced.
  • FIG. 6 is a flow chart showing a preferred embodiment of a motion vector predictive decoding method according to the present invention, Methods include:
  • step S602 detecting whether the motion vector location number is included in the code stream data, if yes, proceeding to step S603, otherwise proceeding to step S604
  • the motion vector position number is a specific motion vector position number of the candidate motion vector in the candidate motion vector set
  • the code stream data includes a motion vector difference w and/or a motion vector position number
  • the candidate motion vector set is constructed by the encoding end, specifically: selecting a motion vector of a block adjacent to the left side of the current block, a motion vector of the upper square of the current block, a motion vector foot c of the upper right square of the current block,
  • the predicted motion vector wv *2 64 obtained by the current block using the H264 method, the motion vector w of the same position block of the previous frame of the current frame, and the motion vector W of the reference block pointed to by the motion vector V of the current block constitute a candidate motion vector set [ WV 4 pin B mV c foot D ⁇ E ] , each candidate motion vector has its specific position number in the candidate motion vector set, and the motion vector set is jointly maintained by the encoding end and the decoding end;
  • the motion vector position number is a specific position number of the candidate motion vector in the candidate motion vector set.
  • FIG. 7 is a schematic structural diagram of a preferred embodiment of a motion vector predictive decoding apparatus according to the present invention.
  • the motion vector predictive decoding device includes a data receiving module, a motion vector position number detecting module, and a decoding module;
  • a data receiving module configured to receive code stream data sent by the encoding end, where the code stream data includes a motion vector difference mvd and/or a motion vector position sequence number;
  • a motion vector position number detecting module configured to detect whether the code stream data includes a motion vector position number, where the motion vector position number is a specific position number of the candidate motion vector in the candidate motion vector set;
  • a decoding module configured to: when the code stream data does not include a position number of the motion vector, perform a decoding calculation according to the received motion vector difference w to obtain a motion vector v of the current block; and further, when the code stream data is included
  • the optimal motion vector predictor WV ⁇ ' is obtained from the motion vector candidate set according to the motion vector position number, and the calculated motion vector of the current block is further decoded.
  • the candidate motion vector set is constructed by the encoding end, specifically: selecting a motion vector of a block adjacent to the left side of the current block, a motion vector of the upper block of the current block, a motion vector foot c of the upper right square of the current block,
  • the predicted motion vector wv *2 64 obtained by the current block using the H264 method, the motion vector w of the same position block of the previous frame of the current frame, and the motion vector W of the reference block pointed to by the motion vector V of the current block constitute a candidate motion vector set [ WV 4 pin B foot D ⁇ E ] , each candidate motion vector has its specific position number in the candidate motion vector set, and the motion vector set is jointly maintained by the encoding end and the decoding end;
  • the motion vector position number is a specific position number of the candidate motion vector in the candidate motion vector set.
  • FIG. 8 is a schematic structural diagram of a motion vector predictive coding and decoding system according to an embodiment of the present invention, where the system includes a motion vector predictive coding device and a motion vector predictive decoding device.
  • the motion vector predictive coding device includes:
  • a motion vector acquisition module configured to acquire a motion vector of the current block after motion prediction
  • a candidate motion vector set construction module configured to construct a candidate motion vector set for motion vector predictive coding; specifically: selecting a left neighbor of the current block The motion vector of one block ⁇ , the motion vector of the upper square of the current block ⁇ , the motion vector foot c of the upper right square of the current block, the predicted motion vector w ⁇ 264 obtained by the current block using the H264 method, the previous frame of the current frame motion vectors w same position of the block, the motion vector v of the current block points to the motion vectors w reference block, constituting the candidate motion vector set [ ⁇ mv B mv c mv h264 mv D mv E] ⁇ for each candidate motion vector candidate motion
  • the vector set has its specific motion vector position number;
  • An optimal motion vector predictor selection module configured to select an optimal motion vector predictor "" ⁇ ' from the candidate motion vector set, where the motion vector predictive difference bit number calculation module and the motion vector
  • a motion vector prediction difference bit number calculation module configured to calculate a coded motion vector difference bit number R(mv - mvp ) ⁇ where wv P e mv B mv c mv h264 mv D wvj, where is the motion vector of the current block, Wl ⁇ is a predicted value of a motion vector, and a value of Wl ⁇ is selected in the candidate motion vector set;
  • the motion vector predictive coding device may further include: a motion vector difference transmitting module, configured to send the motion vector difference mvd to the entropy encoding module to Decoding end
  • the motion vector predictive coding device may further include an analog decoding module, which is a schematic diagram of a specific module structure of the analog decoding module, as shown in FIG.
  • An analog decoding module is connected to the motion vector difference obtaining module, and is configured to perform analog decoding on the motion vector at the encoding end to obtain an optimal motion vector analog value W1.
  • the analog decoding module further includes a motion vector predictor selection module, The temporary motion vector construction module, the reconstructed image block data acquisition module, the difference coefficient construction module, the optimal motion vector simulation value selection module, and the optimal motion vector position number writing module.
  • wvt is the motion vector difference between the current block motion vector and the optimal motion vector predictor
  • prediction data of the current block image, which is obtained by motion compensation by the temporary motion vector ⁇ ';
  • is the residual data, which is obtained by motion compensation by the current block motion vector.
  • y (i, j) is the reconstructed image data of the i-th row and the j-th column, and the first data in the upper left corner of the current reconstructed image block data is the origin, represented by y (0, 0), 111 and 11 are The length and width of the current block;
  • one represents the data in the left column of the current reconstructed image block data, where i takes values from 0 to n-1;
  • W- 1 represents a row of data on the current reconstructed image block data, wherein j takes values from 1 to m-1; an optimal motion vector simulation value selection module is used to select a motion vector prediction value that minimizes the difference coefficient Simulated decoding optimal motion vector simulation value ⁇ .
  • Optimal motion vector position number writing module for adding an indication in the output code stream if the optimal motion vector simulation value is not equal to the optimal motion vector prediction value The description of the optimal motion vector predictor and the position number in the candidate motion vector set.
  • the motion vector predictive decoding device includes a data receiving module, a motion vector position number detecting module, and a decoding module; a data receiving module, configured to receive code stream data sent by the encoding end, where the code stream data includes a motion vector difference mvd and/or a motion vector position sequence number;
  • a motion vector position number detecting module configured to detect whether the code stream data includes a motion vector position number, where the motion vector position number is a specific motion vector position number of the candidate motion vector in the candidate motion vector set;
  • a decoding module configured to: when the code stream data does not include the position number of the motion vector, perform decoding calculation according to the received motion vector difference w to obtain a motion vector of the current block; and also be used to include a motion vector position in the code stream data.
  • the optimal motion vector predictor is obtained from the motion vector candidate set according to the motion vector position number, and the calculated motion vector of the current block is further decoded.
  • the candidate motion vector set is constructed by the encoding end, specifically: selecting a motion vector of a block adjacent to the left side of the current block, a motion vector of the upper block of the current block, a motion vector foot c of the upper right square of the current block,
  • the predicted motion vector wv *2 64 obtained by the current block using the H264 method, the motion vector w of the same position block of the previous frame of the current frame, and the motion vector W of the reference block pointed to by the motion vector V of the current block constitute a candidate motion vector set [ WV 4 pin B mV c foot D ⁇ E ] , each candidate motion vector has its specific position number in the candidate motion vector set, and the motion vector set is jointly maintained by the encoding end and the decoding end;
  • the motion vector position number is a specific position number of the candidate motion vector in the candidate motion vector set.
  • the prediction value of the motion vector is more accurately selected by spatial and temporal correlation, and the code rate of the encoded motion vector difference is reduced, so that the motion vector data can be compressed more finely, and the output code rate is reduced.
  • the storage medium may be a ROM, a RAM, a magnetic disk, an optical disk, or the like.

Landscapes

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

Abstract

本发明公开一种运动矢量预测编解码方法、装置及编解码系统。通过构建特定的运动矢量候选集,并根据所述运动矢量候选集在编码端模拟解码,将从所述候选运动矢量集中选取的最优运动矢量预测值与模拟解码中的最优运动矢量模拟值进行比较,确定是否在输出码流中增加指明最优运动矢量预测值在候选运动矢量集中的位置序号的描述,解码端通过检测接收的码流数据中是否包含运动矢量位置序号采用不同的解码方法。本发明通过空间和时间相关性更精确地选择运动矢量的预测值,减小编码运动矢量差值的码率,可以更精细地压缩运动矢量数据,减少输出的码率。

Description

一种运动矢量预测编解码方法、 装置及编解码系统 技术领域
本发明涉及视频编解码领域, 尤其涉及一种运动矢量预测编解码方法、装 置及编解码系统。
背景技术
随着视频应用不断开展,视频编码标准和算法也得到了快速发展,例如最 新视频编码标准 H264相比传统的编码标准如 H263 图像压缩效率有极大地提 升,但同时也带来一些了新的问题。新的视频编码标准中图像编码算法更加精 细, 对图像数据的划分也越来越小, 例如 H264对亮度数据最小处理单元就是 4x4。 这样做的优点是在帧间预测过程中, 可以提升运动预测的准确度。 不足 之处是数据处理单元的精细化带来运动矢量的增加,需要耗费大量的数据来传 输运动矢量, 导致码率的增加, 这个不足在低码率视频压缩中尤其突出, 据统 计在低码率视频流中约 20%到 30%的数据是用来传输运动矢量的。
发明内容
本发明实施例的目的在于提出一种运动矢量预测编码方法,旨在解决现有 技术在低码率视频压缩中, 数据处理单元的精细化带来运动矢量的增加, 导致 码率的增加问题。
本发明实施例一种运动矢量预测编码方法是这样实现的, 所述方法包括: 获取经过运动预测后的当前块的运动矢量 wv
构建用于运动矢量预测编码的候选运动矢量集;
从所述候选运动矢量集中选取最优运动矢量预测值^1^';
求取所述当前块的运动矢量 和所述最优运动矢量预测值 的运动 矢量差腳 <
优选地, 步骤求取所述当前块的运动矢量 和所述最优运动矢量预测值 脚^的运动矢量差之后还包括步骤: 在所述编码端对运动矢量 进行模拟解码, 以获取最优运动矢量模拟值 。 优选地, 步骤求取当前块的运动矢量 和所述最优运动矢量预测值 WV^' 的运动矢量差 mvd之后还包括步骤:
将所述运动矢量差 mvd经熵编码模块编码发送至解码端。
本发明实施例的第二目的在于提出一种运动矢量预测编码装置,所述装置 包括:
运动矢量获取模块, 用于获取经过运动预测后的当前块的运动矢量 ; 候选运动矢量集构建模块,用于构建用于运动矢量预测编码的候选运动矢 量集; 具体为: 选取当前块的左边块的运动矢量^^、 当前块的正上方块的运 动矢量 、 当前块的右上方块的运动矢量 腳 c 、 当前块使用 H264方法得到 的预测运动矢量 ^264、 当前帧的前一帧相同位置块的运动矢量 、 当前块 的运动矢量 V指向的参考块的运动矢量 W , 构成所述候选运动矢量集
[ ^ mvB mvc mvh264 mvD mvE ] ^ 每一个候选运动矢量在候选运动矢量 集中均有其特定的运动矢量位置序号; 最优运动矢量预测值选取模块,用于从候选运动矢量集中选取最优运动矢 量预测值¾^ 其包括运动矢量预测差值比特数计算模块、 运动矢量差比特 数选择模块;
运动矢量预测差值比特数计算模块, 用于计算编码运动矢量差比特数 R(mv - mv , 其中 是当前块的运动矢量, 是运动矢量 的预测值, 腳 Ρ 的值在所述候选运动矢量集中选择;
运动矢量差比特数选择模块, 用于选择使得编码运动矢量差比特数 最小的运动矢量预测值 ^作为最优运动矢量预测值 v^ ; 运动矢量差求取模块, 用于求取当前块的运动矢量 和所述最优运动矢 量预测值 的运动矢量差 。 优选地, 所述装置进一步包括: 运动矢量差发送模块, 用于将所述运动矢量差 经熵编码模块编码发送 至解码端。 优选地, 所述装置进一步包括: 模拟解码模块, 与所述运动矢量差求取模块相连, 用于在所述编码端对所 述运动矢量 进行模拟解码, 以获取最优运动矢量模拟值 WV^。
本发明实施例的第三目的在于提出一种运动矢量预测解码方法,所述方法 包括:
接收编码端发送的码流数据;
检测所述码流数据中是否包含运动矢量在候选运动矢量集中的位置序号; 根据所述码流数据中是否包含运动矢量位置序号, 采用不同的方式解码。 所述 "根据所述码流数据中是否包含运动矢量位置序号, 采用不同的方式 解码"具体为:
当所述码流数据中包含所述运动矢量位置序号时,根据所述运动矢量位置 序号, 从运动矢量候选集中获取最优运动矢量预测值 WV^, 进一步解码计算 的出当前块的运动矢量卿 , 其中, mvd =腳一 mvbest
当所述码流数据中不包含所述位置序号时, 根据接收到的运动矢量差 进行解码计算得出当前块的运动矢量 wv, 其中, mvd = mv _ mvbesi ;
本发明实施例的第四目的在于提出一种运动矢量预测解码装置,所述装置 包括:
数据接收模块, 用于接收编码端发送的码流数据,所述码流数据包括运动 矢量差和 /或运动矢量位置序号;
运动矢量位置序号检测模块,用于检测所述码流数据中是否包含运动矢量 位置序号;
解码模块,用于当所述码流数据中不包含运动矢量的位置序号时,根据接 收到的运动矢量差 进行解码计算得出当前块的运动矢量 v ;还用于当码流 数据中包含运动矢量位置序号时,根据所述运动矢量位置序号, 从运动矢量候 选集中获取最优运动矢量预测值 WV^', 进一步解码计算的出当前块运动矢量 mv
本发明实施例的第五目的在于提出一种运动矢量预测编解码系统,, 所述 系统包括所述运动矢量预测编码装置和所述运动矢量预测解码装置。 本发明的有益效果
本发明实施例通过在编码端构建一套运动矢量模拟解码模块,通过空间和 时间相关性更精确地选择运动矢量的预测值, 减小编码运动矢量差值的码率, 可以更精细地压缩运动矢量数据, 减少输出的码率。
附图说明
下面将结合附图及实施例对本发明作进一步说明, 附图中:
图 1是本发明的运动矢量预测编码方法的优选实施例的流程图; 图 2是图 1所示的方法中在编码端对运动矢量进行模拟解码,以获取最优 运动矢量模拟值的方法流程图;
图 3 是本发明的运动矢量预测编码方法的优选实施例中列举的当前块位 于当前帧的第 1列第 k行时的候选运动矢量位置图;
图 4是本发明的运动矢量预测编码装置的优选实施例的结构示意图; 图 5为图 4所示的装置中的模拟解码模块的具体模块的结构示意图; 图 6为本发明的运动矢量预测解码方法的优选实施例的流程图; 图 7为本发明的运动矢量预测解码装置的优选实施例的结构示意图; 图 8为本发明的运动矢量预测编解码系统的优选实施例的结构示意图。
具体实施方式
为了使本发明的目的、技术方案及优点更加清楚明白, 以下结合附图和实 施例, 对本发明进行进一步详细说明, 为了便于说明, 仅示出了与本发明实施 例相关的部分。 应当理解, 此处所描写的具体实施例, 仅仅用于解释本发明, 并不用以限制本发明。
本发明实施例通过在编码端构建一套运动矢量模拟解码模块, 通过空间和 时间相关性更精确地选择运动矢量的预测值, 减小编码运动矢量差值的码率, 实施例一
图 1是本发明的运动矢量预测编码方法的优选实施例的流程图,所述方法 包括以下步骤:
5101 , 获取经过运动预测后的当前块的运动矢量 ;
5102 , 构建用于运动矢量预测编码的候选运动矢量集; 所述 "构建用于运动矢量预测编码的候选运动矢量集"具体方法为: 选取 当前块的左边邻近一个块的运动矢量 ^、 当前块的正上方块的运动矢量 mvB 、 当前块的右上方块的运动矢量 腳 c 、 当前块使用 H264方法得到的预测 运动矢量 64、 当前帧的前一帧相同位置块的运动矢量 w 、 当前块的运动 矢量 V指向的参考块的运动矢量 wv 构成候选运动矢量集
[ ^ mvB mvc mvh264 mvD mvE ] ^ 每一个候选运动矢量在候选运动矢量 集中均有其特定的运动矢量位置序号, 例如: ^在候选运动矢量集中的运动 矢量位置序号可以为 1, w 在候选运动矢量集中的运动矢量位置序号可以为 5。 如图 3 所示的是本发明的运动矢量预测编码方法的优选实施例中列举的 当前块位于当前帧的第 1列第 k行时的候选运动矢量位置图。如图 3所示, 当 前块的运动矢量为 mv, 当前块的左边块的运动矢量为 V 当前块得正上方 块的运动矢量为^ , 当前块得右上方块的运动矢量为 腳 c ; 当前帧得前一 帧相同位置 (第 1列第 k行) 块的运动矢量为 , 当前块得运动矢量 v指 向的参考块的运动矢量为 mvE。
5103 , 从候选运动矢量集中选取最优运动矢量预测值 ;
所述 "选取最优运动矢量预测值 wv^' " 的具体方法如下: 51031 , 计算编码运动矢量差 , _ V ,即编码运动矢量预测差值需 要的比特数; 其中, WT^ e [WV^ 腳 腳 其中 是当 前块运动矢量, W1 ^是运动矢量 的预测值, W1 ^的值在所 述候选运动矢量集中选择。
51032 , 选择使得编码运动矢量差比特数 最小的运动矢量 预测值 为最优运动矢量预测值^^ .
5104, 求取当前块运动矢量 和所述最优运动矢量预测值 wv 的运动矢 mvd mvd = mv— mvbest
SI 06, 将所述运动矢量差 经熵编码模块编码发送至解码端。
本发明实施例通过空间和时间相关性更精确地选择运动矢量的预测值,减 小了编码运动矢量差值的码率。 为了进一步地减少传输运动矢量预测模式需要的码率, 在步骤 S104之后 还可增加以下步骤:
5105 , 在编码端对运动矢量进行模拟解码, 以获取最优运动矢量模拟值 脚
图 2是所述编码端对运动矢量进行模拟解码,以获取最优运动矢量模拟值 的方法流程图;
所述 "对运动矢量进行模拟解码, 以获取最优运动矢量模拟值"具体方法 为:
51051 , 依次从所述候选运动矢量集中选出运动矢量预测值 ;
51052, 构建临时运动矢量 mvi = mvd + mvp
51053, 获取当前重构图像块数据 , ¾ = ΖΛ + ^ ; 射:
Ζ 为当前块图像的预测数据, 其是通过所述临时运动矢量 ζ' 进行运动补偿获取的;
^^为残差数据, 其是通过当前块运动矢量 进行运动补偿获 取的。
51054, 构建差异系数 Erf ;
Figure imgf000009_0001
其中,
y (i, j)为第 i行第 j列的重构图像数据, 当前重构图像块 数据 中左上角第一个数据为原点, 用 y (0, 0)表示, 111和11是 当前块的长和宽;
',一 表示当前重构图像块数据 左边一列数据, 其中 i 的取值从 0到 n-1;
W一1, 表示的当前重构图像块数据 上边一行数据, 其中 j的取值从 1到 m-1;
51055, 选择使差异系数 最小的运动矢量预测值 Wl ^作为最优运动矢 量模拟值""
如果所述最优运动矢量模拟值"" ^等于最优运动矢量预测值 wv^', 在已 知 w和 的情况下, 解码端在解码时可直接根据公式 w =腳 得出 当前块的运动矢量 , 则编码端不需要在输出码流中增加指明最优运动矢量 预测值在候选运动矢量集中的位置序号的描述;
如果所述最优运动矢量模拟值"" ^不等于最优运动矢量预测值""^', 解 码端无法正确选出最优运动矢量预测值 WV^' , 则编码端需要在输出码流中增 加指明最优运动矢量预测值 Wl ^'在候选运动矢量集中的位置序号的描述; 解 码端根据所述位置序号,获取最优运动矢量预测值 WV^' ;在已知 ^^和"^^的 情况下, 从而进一步根据公式 w =腳 - i^得出当前块的运动矢量 。 本发明实施例提出一种的运动矢量预测编码方法, 通过空间和时间相关性 更精确地选择运动矢量的预测值,减小编码运动矢量差值的码率,可以更精细 地压缩运动矢量数据, 减少输出的码率。
实施例二
图 4是本发明实施例一种运动矢量预测编码装置结构示意图,所述运动矢 量预测编码装置包括:
运动矢量获取模块, 用于获取经过运动预测后的当前块的运动矢量; 候选运动矢量集构建模块,用于构建用于运动矢量预测编码的候选运动矢 量集; 具体为: 选取当前块的左边邻近一个块的运动矢量 V 当前块的正上 方块的运动矢量^ 、 当前块的右上方块的运动矢量 腳 c、 当前块使用 H264 方法得到的预测运动矢量 WVM64、当前帧的前一帧相同位置块的运动矢量 w 、 当前块的运动矢量 V指向的参考块的运动矢量 WV 构成候选运动矢量集 [ ^ mvB mvc mvh264 mvD mvE ] ^ 每一个候选运动矢量在候选运动矢量 集中均有其特定的运动矢量位置序号。 最优运动矢量预测值选取模块,用于从候选运动矢量集中选取最优运动矢 量预测值""^', 其包括运动矢量预测差值比特数计算模块和运动矢量差比特 数选择模块;
运动矢量预测差值比特数计算模块, 用于计算编码运动矢量差 腳 , 即编码运动矢量预测差值需要的比特数, 其中, mvP e [mvA mvB mvc mvh2M mvD WVJ,其中 wv是当前块的运动矢量, 是 运动矢量的预测值, mvP的值在所述候选运动矢量集中选择;
运动矢量差比特数选择模块, 用于选择使得编码运动矢量差比特数
_ Wl ^最小的运动矢量预测值 Wl ^作为最优运动矢量预测值 ; 运动矢量差求取模块, 用于求取当前块的运动矢量 和所述最优运动矢 量预测值 mVbest的运动矢量差 mvd, mvd = mv— mvbest; 进一步地, 所述运动矢量预测编码装置还可包括: 运动矢量差发送模块, 用于将所述运动矢量差 mvd经熵编码模块编码发送 至解码端;
进一步地, 所述运动矢量预测编码装置还可以包括模拟解码模块, 如图 5 所述为所述模拟解码模块的具体模块结构示意图。
模拟解码模块, 与所述运动矢量差求取模块相连, 用于在编码端对运动矢 量 进行模拟解码, 以获取最优运动矢量模拟值 Wl 所述模拟解码模块进一步包括运动矢量预测值选取模块、临时运动矢量构 建模块、重构图像块数据获取模块、差异系数构建模块、 最优运动矢量模拟值 选取模块以及最优运动矢量位置序号写入模块; 运动矢量预测值选取模块, 用于依次从所述候选运动矢量集中选出运动矢 量预测值^^ 临时运动矢量构建模块, 用于构建临时运动矢量 W, mvi = mvd + mvp ; 其中 wvt 是当前块运动矢量和所述最优运动矢量预测值的运动矢量差, mvd = mv - mvbest · 重构图像块数据获取模块, 用于获取当前重构图像块数据 , Y- = ZR + X R ; 其中: ζ 为当前块图像的预测数据, 其是通过所述临时运动矢量 ζ' 进行运动补偿获取的; ^^为残差数据, 其是通过当前块运动矢量 进行运动补偿获取的。 差异系数构建模块, 用于求构建差异系数 Erf ;
Figure imgf000012_0001
其中,
y (i, j)为第 i行第 j列的重构图像数据, 当前重构图像块 数据 中左上角第一个数据为原点, 用 y (0,0)表示, 111和11是 当前块的长和宽;
',一 表示当前重构图像块数据 左边一列数据, 其中 i 的取值从 0到 n-1;
W一1, 表示的当前重构图像块数据 上边一行数据, 其中 j的取值从 1到 m-1;
最优运动矢量模拟值选取模块, 用于选择使差异系数 最小的运动矢量 预测值 作为最优运动矢量模拟值 ^;
最优运动矢量位置序号写入模块,用于如果所述最优运动矢量模拟值 不等于最优运动矢量预测值 , 则在输出码流中增加指明最优运动矢量预 测值而 ^在候选运动矢量集中的位置序号的描述。
本发明实施例通过空间和时间相关性更精确地选择运动矢量的预测值, 减 小编码运动矢量差值的码率,可以更精细地压缩运动矢量数据,减少输出的码 率。 实施例三
图 6所示为本发明的运动矢量预测解码方法的优选实施例的流程图, 所述 方法包括:
5601 , 接收编码端发送的码流数据;
5602 , 检测所述码流数据中是否包含运动矢量位置序号, 是则进入步骤 S603 , 否则进入步骤 S604
所述运动矢量位置序号为候选运动矢量在候选运动矢量集中的特定的运 动矢量位置序号;
5603 ,根据所述运动矢量位置序号,从运动矢量候选集中获取最优运动矢 量预测值 , 进一步解码计算的出当前块运动矢量 ;
其中, mvd = mv - vbest
5604 , 对接收到的运动矢量差 w进行解码计算得出当前块运动矢量 v ; 其中, mvd = mv - vbest
所述码流数据包括运动矢量差 w和 /或运动矢量位置序号;
所述候选运动矢量集由编码端构建, 具体为:选取当前块的左边邻近一个 块的运动矢量^^、当前块的正上方块的运动矢量^ 、 当前块的右上方块的 运动矢量 腳 c 、 当前块使用 H264方法得到的预测运动矢量 wv*264、 当前帧的 前一帧相同位置块的运动矢量 w 、 当前块的运动矢量 V指向的参考块的运 动矢量 W , 构成候选运动矢量集 [WV 4 腳 B mVc 腳 腳 D ^E ] , 每 一个候选运动矢量在候选运动矢量集中均有其特定的位置序号,所述运动矢量 集由编码端和解码端共同维护;
所述运动矢量位置序号为候选运动矢量在候选运动矢量集中的特定的位 置序号。 实施例四
图 7为本发明的运动矢量预测解码装置的优选实施例的结构示意图。 所述运动矢量预测解码装置包括数据接收模块、运动矢量位置序号检测模 块、 解码模块;
数据接收模块, 用于接收编码端发送的码流数据,所述码流数据包括运动 矢量差 mvd和 /或运动矢量位置序号;
运动矢量位置序号检测模块,用于检测所述码流数据中是否包含运动矢量 位置序号,所述运动矢量位置序号为候选运动矢量在候选运动矢量集中的特定 的位置序号; 解码模块,用于当所述码流数据中不包含运动矢量的位置序号时,根据接 收到的运动矢量差 w进行解码计算得出当前块的运动矢量 v ;还用于当码流 数据中包含运动矢量位置序号时,根据所述运动矢量位置序号, 从运动矢量候 选集中获取最优运动矢量预测值 WV^', 进一步解码计算的出当前块的运动矢 量 o
所述候选运动矢量集由编码端构建, 具体为:选取当前块的左边邻近一个 块的运动矢量^^、 当前块的正上方块的运动矢量^ 、 当前块的右上方块的 运动矢量 腳 c 、 当前块使用 H264方法得到的预测运动矢量 wv*264、 当前帧的 前一帧相同位置块的运动矢量 w 、 当前块的运动矢量 V指向的参考块的运 动矢量 W , 构成候选运动矢量集 [WV 4 腳 B 腳 腳 D ^E ] , 每 一个候选运动矢量在候选运动矢量集中均有其特定的位置序号,所述运动矢量 集由编码端和解码端共同维护;
所述运动矢量位置序号为候选运动矢量在候选运动矢量集中的特定的位 置序号。 实施五
图 8为本发明实施例一种运动矢量预测编解码系统结构示意图,所述系统 包括运动矢量预测编码装置和运动矢量预测解码装置。
所述运动矢量预测编码装置包括:
运动矢量获取模块, 用于获取经过运动预测后的当前块的运动矢量 ; 候选运动矢量集构建模块,用于构建用于运动矢量预测编码的候选运动矢 量集; 具体为: 选取当前块的左边邻近一个块的运动矢量^^、 当前块的正上 方块的运动矢量^ 、 当前块的右上方块的运动矢量 腳 c 、 当前块使用 H264 方法得到的预测运动矢量 w^264、当前帧的前一帧相同位置块的运动矢量 w 、 当前块的运动矢量 v指向的参考块的运动矢量 w , 构成候选运动矢量集 [ ^ mvB mvc mvh264 mvD mvE ] ^ 每一个候选运动矢量在候选运动矢量 集中均有其特定的运动矢量位置序号; 最优运动矢量预测值选取模块,用于从候选运动矢量集中选取最优运动矢 量预测值""^', 其包括运动矢量预测差值比特数计算模块和运动矢量差比特 数选择模块;
运动矢量预测差值比特数计算模块, 用于计算编码运动矢量差比特数 R(mv - mvp ) ^ 其中, wvP e mvB mvc mvh264 mvD wvj, 其中 是当前 块的运动矢量, Wl ^是运动矢量 的预测值, Wl ^的值在所述候选运动矢量集 中选择;
运动矢量差比特数选择模块, 用于选择使得编码运动矢量差比特数 最小的运动矢量预测值, P作为最优运动矢量预测值 运动矢量差求取模块, 用于求取当前块的运动矢量 和所述最优运动矢 量预测值 的运动矢量差 w; 进一步地, 所述运动矢量预测编码装置还可包括: 运动矢量差发送模块, 用于将所述运动矢量差 mvd经熵编码模块编码发送 至解码端;
进一步地, 所述运动矢量预测编码装置还可以包括模拟解码模块, 如图 5 所述为所述模拟解码模块的具体模块结构示意图。
模拟解码模块, 与所述运动矢量差求取模块相连, 用于在编码端对运动矢 量 进行模拟解码, 以获取最优运动矢量模拟值 Wl 所述模拟解码模块进一步包括运动矢量预测值选取模块、临时运动矢量构 建模块、重构图像块数据获取模块、差异系数构建模块、 最优运动矢量模拟值 选取模块以及最优运动矢量位置序号写入模块。 运动矢量预测值选取模块, 用于依次从所述候选运动矢量集中选出运动矢 量预测值^^ 临时运动矢量构建模块, 用于构建临时运动矢量 W, mvi = mvd + mvp ; 其中 wvt 是当前块运动矢量和所述最优运动矢量预测值的运动矢量差, mvd = mv - mvbest · 重构图像块数据获取模块, 用于获取当前重构图像块数据 , Y- = ZR + X R ; 其中: ζ 为当前块图像的预测数据, 其是通过所述临时运动矢量 ζ' 进行运动补偿获取的;
^^为残差数据, 其是通过当前块运动矢量 进行运动补偿获取的。 差异系数构建模块, 用于求构建差异系数 Erf ;
Figure imgf000016_0001
其中, y (i, j)为第 i行第 j列的重构图像数据, 当前重构图像块 数据 中左上角第一个数据为原点, 用 y (0,0)表示, 111和11是 当前块的长和宽;
',一 表示当前重构图像块数据 左边一列数据, 其中 i 的取值从 0到 n-1 ;
W一1, 表示的当前重构图像块数据 上边一行数据, 其中 j的取值从 1到 m-1 ; 最优运动矢量模拟值选取模块, 用于选择使差异系数 最小的运动矢量 预测值 为模拟出的解码最优运动矢量模拟值^ . 最优运动矢量位置序号写入模块,用于如果所述最优运动矢量模拟值 不等于最优运动矢量预测值 , 则在输出码流中增加指明最优运动矢量预 测值而 ^在候选运动矢量集中的位置序号的描述。
所述运动矢量预测解码装置包括数据接收模块、运动矢量位置序号检测模 块以及解码模块; 数据接收模块, 用于接收编码端发送的码流数据,所述码流数据包括运动 矢量差 mvd和 /或运动矢量位置序号;
运动矢量位置序号检测模块,用于检测所述码流数据中是否包含运动矢量 位置序号,所述运动矢量位置序号为候选运动矢量在候选运动矢量集中的特定 的运动矢量位置序号;
解码模块,用于当码流数据中不包含运动矢量的位置序号时,根据接收到 的运动矢量差 w进行解码计算得出当前块的运动矢量 ;还用于当码流数据 中包含运动矢量位置序号时,根据所述运动矢量位置序号, 从运动矢量候选集 中获取最优运动矢量预测值 ,进一步解码计算的出当前块的运动矢量 。
所述候选运动矢量集由编码端构建, 具体为:选取当前块的左边邻近一个 块的运动矢量^^、 当前块的正上方块的运动矢量^ 、 当前块的右上方块的 运动矢量 腳 c 、 当前块使用 H264方法得到的预测运动矢量 wv*264、 当前帧的 前一帧相同位置块的运动矢量 w 、 当前块的运动矢量 V指向的参考块的运 动矢量 W , 构成候选运动矢量集 [WV 4 腳 B mVc 腳 腳 D ^E ] , 每 一个候选运动矢量在候选运动矢量集中均有其特定的位置序号,所述运动矢量 集由编码端和解码端共同维护;
所述运动矢量位置序号为候选运动矢量在候选运动矢量集中的特定的位 置序号。
本发明实施例通过空间和时间相关性更精确地选择运动矢量的预测值, 减 小编码运动矢量差值的码率,可以更精细地压缩运动矢量数据,减少输出的码 率。
本领域的普通技术人员可以理解,实现上述实施例方法中的全部或部分步 骤是可以通过程序指令相关硬件来完成的,所述的程序可以存储于一计算机可 读取存储介质中, 所述的存储介质可以为 R0M、 RAM, 磁盘、 光盘等。
以上所述仅为本发明的较佳实施例而已, 并不用以限制本发明, 凡在本发 明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明 的保护范围之内。

Claims

权 利 要 求
1、 一种运动矢量预测编码方法, 所述方法包括:
获取经过运动预测后的当前块的运动矢量 ;
构建用于运动矢量预测编码的候选运动矢量集;
从所述候选运动矢量集中选取最优运动矢量预测值""^';
求取所述当前块的运动矢量 和所述最优运动矢量预测值 WV^'的运动 矢量差腳 ;
将所述运动矢量差 mvd熵编码后发送至解码端;
其特征在于,
所述 "构建用于运动矢量预测编码的候选运动矢量集"具体方法为: 选取 当前块的左边块的运动矢量^^、当前块的正上方块的运动矢量^ 、当前块 的右上方块的运动矢量 腳 c 、 当前块使用 H264 方法得到的预测运动矢量 ,A264、 当前帧的前一帧相同位置块的运动矢量^^、 当前块的运动矢量指向 的 参 考 块 的 运 动 矢 量 W , 构 成 所 述 候 选 运 动 矢 量 集 [mvA mvB mvc mvh264 mvD wv£ ]。
2、 如权利要求 1所述的运动矢量预测编码方法, 其特征在于, 步骤求取 所述当前块的运动矢量 和所述最优运动矢量预测值 的运动矢量差之 后还包括步骤:
在所述编码端对运动矢量 进行模拟解码, 以获取最优运动矢量模拟值 腳 。
3、 如权利要求 1所述的运动矢量预测编码方法, 其特征在于, 所述从所 述候选运动矢量集中选取最优运动矢量预测值 Wl ^'具体为: 计算编码运动矢量差比特数 ^,-^^);
选择使所述编码运动矢量差比特数 ^,-^ ^最小的运动矢量预测值^^ 作为最优运动矢量预测值 wv^'; 其中, l ^是运动矢量 的预测值, l ^的值在所述候选运动矢量集中选 择, 腳是当前块的运动矢量。
4、 如权利要求 2所述的运动矢量预测编码方法, 其特征在于, 所述 "在 编码端对运动矢量 进行模拟解码, 以获取最优运动矢量模拟值 具体 为:
依次从所述候选运动矢量集中选出所述运动矢量预测值 ;
构建临时运动矢量腳 , 腳 = mv j -\- mvp; 获取当前重构图像块数据 , Y- = ZR + X R ; 其中: ζ 为当前块图像的预测数据, 通过所述临时运动矢量"^进行 运动补偿获取的; ^^为残差数据, 通过当前块运动矢量 进行运动补偿获取 的; 构建差异系数 Erf ;
Figure imgf000019_0001
其中, y (i, j)为第 i行第 j列的重构图像数据,所述当前重构图像块数据 中左 上角第一个数据为原点, m和 n是当前块的长和宽;
',一 D表示所述当前重构图像块数据 左边一列数据, 其中 i的取值从 0 到 n- 1 ;
^一1, 表示所述当前重构图像块数据 上边一行数据, 其中 j的取值从 1 到 m-1 ; 选择使所述差异系数 最小的运动矢量预测值^ ^作为所述最优运动矢 量模拟值 ^。
5、 如权利要求 4所述的运动矢量预测编码方法, 其特征在于, 所述 "选 择使差异系数 最小的运动矢量预测值作为所述解码最优运动矢量模拟值 "还包括: 如果所述最优运动矢量模拟值"" ^等于最优运动矢量预测值 WV^', 则所 述编码端不在输出码流中增加指明最优运动矢量预测值 Wl ^'在候选运动矢量 集中的位置序号的描述; 如果所述最优运动矢量模拟值"" ^不等于最优运动矢量预测值""^', 则 所述编码端在输出码流中增加指明最优运动矢量预测值 Wl ^'在候选运动矢量 集中的位置序号的描述。
6、 一种运动矢量预测编码装置, 其特征在于, 所述装置包括:
运动矢量获取模块, 用于获取经过运动预测后的当前块的运动矢量 ; 候选运动矢量集构建模块,用于构建用于运动矢量预测编码的候选运动矢 量集; 具体为: 选取当前块的左边块的运动矢量 V 当前块的正上方块的运 动矢量 、 当前块的右上方块的运动矢量 腳 c 、 当前块使用 H264方法得到 的预测运动矢量 ^264、 当前帧的前一帧相同位置块的运动矢量 w 、 当前块 的运动矢量 V指向的参考块的运动矢量 wv 构成所述候选运动矢量集
[ ^ mvB mvc mvh264 mvD mvE ] ^ 每一个候选运动矢量在候选运动矢量 集中均有其特定的运动矢量位置序号;
最优运动矢量预测值选取模块,用于从候选运动矢量集中选取最优运动矢 量预测值""^', 其包括运动矢量预测差值比特数计算模块和运动矢量差比特 数选择模块;
运动矢量预测差值比特数计算模块, 用于计算编码运动矢量差比特数 R(mv -脚 p ) , 其中 是当前块的运动矢量, p是运动矢量腳 的预测值, 腳 p 的值在所述候选运动矢量集中选择;
运动矢量差比特数选择模块, 用于选择使得编码运动矢量差比特数 最小的运动矢量预测值, P作为最优运动矢量预测值 运动矢量差求取模块, 用于求取当前块的运动矢量 和所述最优运动矢 量预测值 的运动矢量差 w 。
7、 如权利要求 6所述的运动矢量预测编码装置, 其特征在于, 所述装置 进一步包括:
运动矢量差发送模块, 用于将所述运动矢量差 mvd经熵编码模块编码发送 至解码端。
8、 如权利要求 6所述的运动矢量预测编码装置, 其特征在于, 所述装置 进一步包括:
模拟解码模块, 与所述运动矢量差求取模块相连, 用于在所述编码端对所 述运动矢量 进行模拟解码, 以获取最优运动矢量模拟值 WV^。
9、 如权利要求 8所述的运动矢量预测编码装置, 其特征在于, 所述模拟 解码模块包括:
运动矢量预测值选取模块, 用于依次从所述候选运动矢量集中选出所述运 动矢量预测值 Wl
临时运动矢量构建模块, 用于构建临时运动矢量 W, mvi = mvd + mvp ; 重构图像块数据获取模块, 用于获取当前重构图像块数据 , Υ^ = ζκ + χ κ , 其中: Ζ 为当前块图像的预测数据, 通过所述临时运动矢量"^进行 运动补偿获取的,
^^为残差数据, 通过当前块运动矢量 进行运动补偿获取的; 差异系数构建模块, 用于求构建差异系数 Erf
Figure imgf000021_0001
其中, y (i, j)为第 i行第 j列的重构图像数据,所述当前重构图像块数据 中左上角第一个数据为原点, m和 n是当前块的长和宽,
',一 D表示所述当前重构图像块数据 左边一列数据, 其中 i的取值 从 0到 n-l,
^一1, 表示所述当前重构图像块数据 上边一行数据,其中 j的取值 从 1到 m-1 ; 最优运动矢量模拟值选取模块, 用于选择使所述差异系数 最小的运动 矢量预测值^^作为所述最优运动矢量模拟值 ; 最优运动矢量位置序号写入模块,用于如果所述最优运动矢量模拟值 不等于最优运动矢量预测值 , 则在输出码流中增加指明最优运动矢量预 测值而 ^在候选运动矢量集中的位置序号的描述。
10、 一种运动矢量预测解码方法, 其特征在于, 所述方法包括:
接收编码端发送的码流数据;
检测所述码流数据中是否包含运动矢量在候选运动矢量集中的运动矢量 位置序号;
根据所述码流数据中是否包含运动矢量位置序号, 采用不同的方式解码。
1 1、如权利要求 10所述的运动矢量预测解码方法,其特征在于,所述"根 据所述码流数据中是否包含运动矢量位置序号,采用不同的方式解码 "具体为: 当所述码流数据中包含所述运动矢量位置序号时,根据所述运动矢量位置 序号, 从运动矢量候选集中获取最优运动矢量预测值 wv^, 进一步解码计算 的出当前块的运动矢量卿, 其中, mvd - mv - mvbest
当所述码流数据中不包含所述位置序号时, 根据接收到的运动矢量差 w 进行解码计算得出当前块的运动矢量 wv, 其中, mvd = mv _ mvbesi
12、 如权利要求 10或 1 1所述的运动矢量预测解码方法, 其特征在于, 所述码流数据包括运动矢量差 w和 /或所述运动矢量位置序号; 所述候选运动矢量集由编码端构建, 具体为:选取当前块的左边块的运动 矢量^^、 当前块的正上方块的运动矢量^ 、 当前块的右上方块的运动矢量 腳 c 、 当前块使用 H264方法得到的预测运动矢量 wv 、 当前帧的前一帧相 同位置块的运动矢量 w 、 当前块的运动矢量 v指向的参考块的运动矢量 腳 E , 构成候选运动矢量集 [WV 4 mVB 腳 C mVk264 脚 D mVE } ^ 每一个候 选运动矢量在候选运动矢量集中均有其特定的运动矢量位置序号。
13、 一种运动矢量预测解码装置, 其特征在于, 所述装置包括: 数据接收模块, 用于接收编码端发送的码流数据,所述码流数据包括运动 矢量差 mvd和 /或运动矢量位置序号;
运动矢量位置序号检测模块,用于检测所述码流数据中是否包含运动矢量 位置序号;
解码模块,用于当所述码流数据中不包含运动矢量的位置序号时,根据接 收到的运动矢量差 w进行解码计算得出当前块的运动矢量 v ;还用于当码流 数据中包含运动矢量位置序号时,根据所述运动矢量位置序号, 从运动矢量候 选集中获取最优运动矢量预测值 WV^', 进一步解码计算的出当前块的运动矢 v
14、 如权利要求 13所述的运动矢量预测解码装置, 其特征在于, 所述候选运动矢量集由编码端构建, 具体为:选取当前块的左边块的运动 矢量 V 当前块的正上方块的运动矢量^ 、 当前块的右上方块的运动矢量 腳 c 、 当前块使用 H264方法得到的预测运动矢量 wv 、 当前帧的前一帧相 同位置块的运动矢量 w 、 当前块的运动矢量 V指向的参考块的运动矢量 腳 E , 构成候选运动矢量集 [WV 4 mVB 腳 C mVk264 脚 D mVE } ^ 每一个候 选运动矢量在候选运动矢量集中均有其特定的运动矢量位置序号。
15、 一种运动矢量预测编解码系统, 其特征在于, 所述系统包括权利要求 6和权利要求 13所述的运动矢量预测编码装置和运动矢量预测解码装置。
PCT/CN2011/076186 2011-05-25 2011-06-23 一种运动矢量预测编解码方法、装置及编解码系统 WO2012159288A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110139043.4 2011-05-25
CN201110139043.4A CN102227132B (zh) 2011-05-25 2011-05-25 一种运动矢量预测编解码方法、装置及编解码系统

Publications (1)

Publication Number Publication Date
WO2012159288A1 true WO2012159288A1 (zh) 2012-11-29

Family

ID=44808086

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/076186 WO2012159288A1 (zh) 2011-05-25 2011-06-23 一种运动矢量预测编解码方法、装置及编解码系统

Country Status (2)

Country Link
CN (1) CN102227132B (zh)
WO (1) WO2012159288A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI679876B (zh) 2011-10-31 2019-12-11 日商Jvc建伍股份有限公司 動態影像解碼裝置及動態影像解碼方法
PL409214A1 (pl) 2011-11-08 2015-07-20 Kt Corporation Sposób i urządzenie do skanowania współczynników na podstawie trybu podziału jednostki predykcji
CN103108178B (zh) * 2011-11-11 2016-03-30 华为技术有限公司 视频图像编解码的方法及装置
CN102769748B (zh) * 2012-07-02 2014-12-24 华为技术有限公司 运动矢量预测方法、装置及系统
CN104704819B (zh) 2012-10-03 2016-12-21 联发科技股份有限公司 3d视频编码的视差矢量推导和视图间运动矢量预测的方法及装置
CN103338372A (zh) * 2013-06-15 2013-10-02 浙江大学 一种视频处理方法及装置
KR20180048736A (ko) * 2015-09-24 2018-05-10 엘지전자 주식회사 영상 코딩 시스템에서 인터 예측 방법 및 장치
CN114501020A (zh) * 2016-08-21 2022-05-13 上海天荷电子信息有限公司 使用最近运动矢量和邻近运动矢量的图像压缩方法和装置
CN111919439B (zh) * 2018-04-02 2022-01-14 华为技术有限公司 一种运动矢量的获取方法和装置、一种运动矢量集合的构建方法和装置及计算机可读存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101198064A (zh) * 2007-12-10 2008-06-11 武汉大学 一种分辨率分层技术中的运动矢量预测方法
CN101605262A (zh) * 2009-07-09 2009-12-16 杭州士兰微电子股份有限公司 可变块尺寸运动预测方法和装置
CN101631244A (zh) * 2008-07-15 2010-01-20 索尼株式会社 运动矢量检测设备和方法、图像编码设备和程序
CN101860754A (zh) * 2009-12-16 2010-10-13 香港应用科技研究院有限公司 运动矢量编码和解码的方法和装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1319384C (zh) * 2005-01-27 2007-05-30 浙江大学 硬件计算能力资源在运动估计中的优化分配方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101198064A (zh) * 2007-12-10 2008-06-11 武汉大学 一种分辨率分层技术中的运动矢量预测方法
CN101631244A (zh) * 2008-07-15 2010-01-20 索尼株式会社 运动矢量检测设备和方法、图像编码设备和程序
CN101605262A (zh) * 2009-07-09 2009-12-16 杭州士兰微电子股份有限公司 可变块尺寸运动预测方法和装置
CN101860754A (zh) * 2009-12-16 2010-10-13 香港应用科技研究院有限公司 运动矢量编码和解码的方法和装置

Also Published As

Publication number Publication date
CN102227132B (zh) 2017-04-12
CN102227132A (zh) 2011-10-26

Similar Documents

Publication Publication Date Title
WO2012159288A1 (zh) 一种运动矢量预测编解码方法、装置及编解码系统
US8693543B2 (en) Inter-frame prediction coding method, device and system
JP6779954B2 (ja) 方法、装置、及びプログラム
RU2513707C1 (ru) Способ и устройство для кодирования и декодирования вектора движения
CN101595735B (zh) 对视频进行编码和解码的方法和设备
CN104769947B (zh) 一种基于p帧的多假设运动补偿编码方法
KR20200078609A (ko) 비디오 코딩을 위한 방법 및 장치
WO2016131229A1 (zh) 用于视频图像编码和解码的方法、编码设备和解码设备
WO2015010317A1 (zh) 一种基于p帧的多假设运动补偿方法
US20100208814A1 (en) Inter-frame prediction coding method and device
WO2012119456A1 (zh) 视频图像的编解码方法、编码装置、解码装置及其系统
RU2007137490A (ru) Масштабируемое видеокодирование с двухуровневым кодированием и одноуровневым декодированием
US20160134886A1 (en) Method for obtaining motion information
CN104410864B (zh) Hevc中基于残差能量的错误隐藏方法
CN104067616A (zh) 对图像的块进行编码的方法和设备以及对应的重建方法和设备
CN103262543A (zh) 用于视频解码的数据丢失隐蔽
WO2008083599A1 (en) Multi-view video encoding and decoding method and apparatus
TW202304202A (zh) 解碼方法、編碼方法、裝置、設備及存儲介質
CN104811729A (zh) 一种视频多参考帧编码方法
WO2019183906A1 (zh) 帧间预测的方法和装置
WO2012122836A1 (zh) 视频编解码处理方法和装置
WO2012175023A1 (zh) 一种帧内预测方法和系统
CN102263952B (zh) 一种基于对象的快速双目立体视频分形压缩与解压缩方法
CN112449180B (zh) 一种编解码方法、装置及其设备
KR101230856B1 (ko) 화면내 부호화 모드의 결정 방법 및 이를 활용한 분산 비디오 부호화 기법 코덱

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11866184

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 24/04/2014)

122 Ep: pct application non-entry in european phase

Ref document number: 11866184

Country of ref document: EP

Kind code of ref document: A1