CN110944171B - An image prediction method and device - Google Patents
An image prediction method and device Download PDFInfo
- Publication number
- CN110944171B CN110944171B CN201811117183.XA CN201811117183A CN110944171B CN 110944171 B CN110944171 B CN 110944171B CN 201811117183 A CN201811117183 A CN 201811117183A CN 110944171 B CN110944171 B CN 110944171B
- Authority
- CN
- China
- Prior art keywords
- hypothesis
- division
- information
- motion information
- index
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/103—Selection of coding mode or of prediction mode
- H04N19/107—Selection of coding mode or of prediction mode between spatial and temporal predictive coding, e.g. picture refresh
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods 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/17—Methods 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/176—Methods 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/503—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
- H04N19/51—Motion estimation or motion compensation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/60—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
- H04N19/61—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/70—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
本申请实施例公开了一种图像预测方法和相关产品。该方法包括:解析码流获取当前待解码图像块的多假设信息索引;根据多假设信息索引,从多假设信息列表中,得到当前图像块对应的第一多假设信息,第一多假设信息包括运动信息索引和第一标识,第一多假设信息的运动信息索引指示当前待解码图像块的多假设运动信息,第一标识指示多假设方法的第一划分方式,第一多假设信息还包括第一划分方式的参数;根据所述第一标识和所述第一划分方式的参数,使用所述第一划分方式处理多个假设的预测图像块,以得到所述当前待解码图像块的预测图像块。这样,不同的图像块,可使用不同的划分方式来得到图像块的预测块,从而提高了图像预测的效率,降低了解码的时间。
The embodiment of the present application discloses an image prediction method and related products. The method includes: analyzing the code stream to obtain a multi-hypothesis information index of the current image block to be decoded; obtaining the first multi-hypothesis information corresponding to the current image block from the multi-hypothesis information list according to the multi-hypothesis information index, the first multi-hypothesis information includes The motion information index and the first identification, the motion information index of the first multi-hypothesis information indicates the multi-hypothesis motion information of the current image block to be decoded, the first identification indicates the first division method of the multi-hypothesis method, and the first multi-hypothesis information also includes the first A parameter of a division method; according to the first identifier and the parameter of the first division method, use the first division method to process a plurality of hypothetical predicted image blocks, so as to obtain a predicted image of the current image block to be decoded piece. In this way, different image blocks can use different division methods to obtain the prediction block of the image block, thereby improving the efficiency of image prediction and reducing the decoding time.
Description
技术领域technical field
本申请涉及视频编解码技术领域,并且更具体地,涉及一种图像预测方法和设备。The present application relates to the technical field of video coding and decoding, and more specifically, relates to an image prediction method and device.
背景技术Background technique
数字视频能力可并入到多种多样的装置中,包含数字电视、数字直播系统、无线广播系统、个人数字助理(personal digital assistant,PDA)、膝上型或桌上型计算机、平板计算机、电子图书阅读器、数码相机、数字记录装置、数字媒体播放器、视频游戏装置、视频游戏控制台、蜂窝式或卫星无线电电话(所谓的“智能电话”)、视频电话会议装置、视频流式传输装置及其类似者。数字视频装置实施视频压缩技术,例如,在由MPEG-2、MPEG-4、ITU-TH.263、ITU-T H.264/MPEG-4第10部分高级视频编码(AVC)定义的标准、视频编码标准H.265/高效视频编码(high efficiency video coding,HEVC)标准以及此类标准的扩展中所描述的视频压缩技术。视频装置可通过实施此类视频压缩技术来更有效率地发射、接收、编码、解码和/或存储数字视频信息。Digital video capabilities can be incorporated into a wide variety of devices, including digital television, digital broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, electronic Book readers, digital cameras, digital recording devices, digital media players, video game devices, video game consoles, cellular or satellite radiotelephones (so-called "smart phones"), video teleconferencing devices, video streaming devices and its analogues. Digital video devices implement video compression techniques, for example, in the standards defined by MPEG-2, MPEG-4, ITU-TH.263, ITU-T H.264/MPEG-4 Part 10 Advanced Video Coding (AVC), video Coding standard The video compression techniques described in the H.265/High Efficiency Video Coding (HEVC) standard and extensions to such standards. Video devices may more efficiently transmit, receive, encode, decode, and/or store digital video information by implementing such video compression techniques.
视频压缩技术执行空间(图像内)预测和/或时间(图像间)预测以减少或去除视频序列中固有的冗余。对于基于块的视频编码,视频条带(即,视频帧或视频帧的一部分)可划分成若干图像块,所述图像块也可被称作树块、编码单元(coding unit,CU)和/或编码节点。使用关于同一图像中的相邻块中的参考样本的空间预测来编码图像的待帧内编码(I)条带中的图像块。图像的待帧间编码(P或B)条带中的图像块可使用相对于同一图像中的相邻块中的参考样本的空间预测或相对于其它参考图像中的参考样本的时间预测。图像可被称作帧,且参考图像可被称作参考帧。Video compression techniques perform spatial (intra-picture) prediction and/or temporal (inter-picture) prediction to reduce or remove redundancy inherent in video sequences. For block-based video coding, a video slice (i.e., a video frame or a portion of a video frame) may be divided into several image blocks, which may also be referred to as tree blocks, coding units (coding units, CUs) and/or or coded nodes. Image blocks in a to-be-intra-coded (I) slice of an image are coded using spatial prediction with respect to reference samples in neighboring blocks in the same image. Image blocks in a slice of a picture to be inter-coded (P or B) may use spatial prediction with respect to reference samples in neighboring blocks in the same picture or temporal prediction with respect to reference samples in other reference pictures. An image may be referred to as a frame, and a reference image may be referred to as a reference frame.
其中,包含HEVC标准在内的各种视频编码标准提出了用于图像块的预测性编码模式,即基于已经编码的视频数据块来预测当前待编码的块。在帧内预测模式中,基于与当前块在相同的图像中的一或多个先前经解码相邻块来预测当前块;在帧间预测模式中,基于不同图像中的已经解码块来预测当前块。Among them, various video coding standards including the HEVC standard propose predictive coding modes for image blocks, that is, to predict a current block to be coded based on coded video data blocks. In intra prediction mode, the current block is predicted based on one or more previously decoded neighboring blocks in the same picture as the current block; in inter prediction mode, the current block is predicted based on already decoded blocks in a different picture piece.
目前的帧间预测模式中的方法,预测效率不高,从而影响了整个解码过程的执行时间。The current method in the inter-frame prediction mode has low prediction efficiency, thus affecting the execution time of the entire decoding process.
发明内容Contents of the invention
本申请提供一种图像预测方法和装置,能够提高图像预测的效率,进而减小整个解码过程的时间。The present application provides an image prediction method and device, which can improve the efficiency of image prediction, and further reduce the time of the entire decoding process.
第一方面,提供一种图像预测方法,该方法包括:解析码流获取该当前待解码图像块的多假设信息索引;根据该多假设信息索引,从多假设信息列表中,得到该当前图像块对应的第一多假设信息,该第一多假设信息包括运动信息索引和第一标识,该第一多假设信息的该运动信息索引指示该当前待解码图像块的多假设运动信息,该第一标识指示多假设方法的第一划分方式,该第一多假设信息还包括该第一划分方式的参数;根据该当前待解码图像块的多假设编码的运动信息进行运动补偿,以得到多个假设的预测图像块;根据该第一标识和该第一划分方式的参数,使用该第一划分方式处理该多个假设的预测图像块,以得到该当前待解码图像块的预测图像块。In a first aspect, an image prediction method is provided, the method comprising: analyzing a code stream to obtain a multi-hypothesis information index of the current image block to be decoded; obtaining the current image block from a multi-hypothesis information list according to the multi-hypothesis information index Corresponding to the first multi-hypothesis information, the first multi-hypothesis information includes a motion information index and a first identifier, the motion information index of the first multi-hypothesis information indicates the multi-hypothesis motion information of the current image block to be decoded, the first Identify the first division method indicating the multi-hypothesis method, the first multi-hypothesis information also includes the parameters of the first division method; perform motion compensation according to the motion information of the multi-hypothesis encoding of the current image block to be decoded to obtain multiple hypotheses the predicted image block; according to the first identifier and the parameters of the first division method, use the first division method to process the plurality of hypothetical predicted image blocks, so as to obtain the predicted image block of the current image block to be decoded.
一种可能的实现方式下,该多假设信息列表包括至少一条该第一多假设信息,和至少一条第二多假设信息,该第二多假设信息包括运动信息索引和第二标识,该第二多假设信息的该运动信息索引指示一图像块的多假设运动信息,该第二标识指示多假设方法的第二划分方式,该第二多假设信息还包括该第二划分方式的参数。In a possible implementation manner, the multi-hypothesis information list includes at least one piece of the first multi-hypothesis information, and at least one piece of second multi-hypothesis information, where the second multi-hypothesis information includes a motion information index and a second identifier, and the second The motion information index of the multi-hypothesis information indicates the multi-hypothesis motion information of an image block, the second identifier indicates the second division method of the multi-hypothesis method, and the second multi-hypothesis information also includes parameters of the second division mode.
一种可能的实现方式下,该第一标识和该第二标识是同一标记位的不同取值。In a possible implementation manner, the first identifier and the second identifier are different values of the same flag bit.
一种可能的实现方式下,该第一划分方式为三角形划分,该第一划分方式的参数指示该三角形划分的划分方向,该第二划分方式为方形划分,该第二划分方式的参数指示该方形划分的加权系数。In a possible implementation manner, the first division method is triangle division, and the parameter of the first division method indicates the division direction of the triangle division; the second division method is square division, and the parameter of the second division method indicates the The weighting factor for the square division.
应当理解,第一划分方式和第二划分方式是不同的划分方式,每一种划分方式都是用来划分多个假设的预测图像块的,也就是用来划分原始假设的预测图像块和额外假设的预测图像块。关于多假设方法的多种划分预测图像块的具体方法和方式,可以参考JVET-K0144提案(三角形划分)和JVET-K0257提案(方形划分)的内容。It should be understood that the first division method and the second division method are different division methods, and each division method is used to divide a plurality of assumed predicted image blocks, that is, used to divide the original assumed predicted image block and the additional Hypothetical predicted image blocks. For the specific methods and ways of dividing and predicting image blocks in the multi-hypothesis method, please refer to the content of JVET-K0144 proposal (triangular division) and JVET-K0257 proposal (square division).
一种可能的实现方式下,该第一划分方式为三角形划分,该第一划分方式的参数指示该三角形划分的划分方向,或者该第一划分方式为方形划分,该第一划分方式的参数指示该方形划分的加权系数。In a possible implementation manner, the first division method is triangle division, and the parameter of the first division method indicates the division direction of the triangle division, or the first division method is square division, and the parameter of the first division method indicates The weighting factor for this square division.
一种可能的实现方式下,该方法还包括:根据该第一多假设信息的该运动信息索引,从该当前待解码图像块的候选运动信息列表中获取该当前待解码图像块的多假设运动信息,该当前待解码图像块的多假设运动信息包括原始假设的运动信息和额外假设的运动信息。In a possible implementation manner, the method further includes: according to the motion information index of the first multi-hypothesis information, acquiring the multi-hypothesis motion of the current image block to be decoded from the candidate motion information list of the current image block to be decoded Information, the multi-hypothesis motion information of the current image block to be decoded includes the motion information of the original hypothesis and the motion information of the additional hypothesis.
一种可能的实现方式下,该第一多假设信息的运动信息索引包括第一索引和第二索引,该根据该第一多假设信息的该运动信息索引,从该当前待解码图像块的候选运动信息列表中获取该当前待解码图像块的多假设运动信息,包括:根据该第一索引,从该当前图像块的第一候选运动信息列表中获取该原始假设的运动信息,以及根据该第二索引,从该当前图像块的第二候选运动信息列表中获取该额外假设的运动信息。In a possible implementation manner, the motion information index of the first multi-hypothesis information includes a first index and a second index, and according to the motion information index of the first multi-hypothesis information, the candidate of the current image block to be decoded Obtaining the multi-hypothesis motion information of the current image block to be decoded from the motion information list includes: obtaining the motion information of the original hypothesis from the first candidate motion information list of the current image block according to the first index, and obtaining the motion information of the original hypothesis according to the first index The second index is to obtain the motion information of the additional hypothesis from the second candidate motion information list of the current image block.
这样,采用上述的方法,由于码流中携带指示多假设方法的划分标识,解码端可以确定具体在多假设方法中使用那一种划分方式预测图像,也就是说,对不同的图像块,可使用不同的划分方式来得到图像块的预测块,这样图像块能使用更适合自身特点的划分方式,从而提高了图像预测的效率,降低了解码的时间。In this way, using the above method, since the code stream carries the division identifier indicating the multi-hypothesis method, the decoder can determine which division method to use in the multi-hypothesis method to predict the image, that is, for different image blocks, it can be Different division methods are used to obtain the prediction block of the image block, so that the image block can use a division method more suitable for its own characteristics, thereby improving the efficiency of image prediction and reducing the decoding time.
第二方面,提供一种图像预测装置,该装置包含用于执行上述第一方面中的任意一种实现方式中的方法的模块。In a second aspect, an image prediction device is provided, and the device includes a module for performing the method in any one of the implementation manners of the above-mentioned first aspect.
第三方面,提供一种图像预测装置,包括:相互耦合的非易失性存储器和处理器,该处理器调用存储在该存储器中的程序代码以执行第一方面中的任意一种实现方式中的方法的部分或全部步骤。In a third aspect, an image prediction device is provided, including: a non-volatile memory and a processor coupled to each other, and the processor invokes the program code stored in the memory to execute any one of the implementations in the first aspect. some or all steps of the method.
第四方面,提供一种计算机可读存储介质,该计算机可读存储介质存储了程序代码,其中,该程序代码包括用于执行第一方面中的任意一种实现方式中的方法的部分或全部步骤的指令。In a fourth aspect, a computer-readable storage medium is provided, and the computer-readable storage medium stores program code, wherein the program code includes part or all of the method for executing any one of the implementation manners in the first aspect Step instructions.
第五方面,提供一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得该计算机执行第一方面中的任意一种实现方式中的方法的部分或全部步骤的指令。In a fifth aspect, a computer program product is provided. When the computer program product is run on a computer, the computer is instructed to execute some or all steps of the method in any implementation manner in the first aspect.
第六方面,提供一种图像预测设备,该设备包括:存储器,用于存储码流形式的视频数据,该视频数据包括一个或多个图像块;视频解码器,用于解析码流获取该当前待解码图像块的多假设信息索引;根据该多假设信息索引,从多假设信息列表中,得到该当前图像块对应的第一多假设信息,该第一多假设信息包括运动信息索引和第一标识,该第一多假设信息的该运动信息索引指示该当前待解码图像块的多假设运动信息,该第一标识指示多假设方法的第一划分方式,该第一多假设信息还包括该第一划分方式的参数;根据该当前待解码图像块的多假设编码的运动信息进行运动补偿,以得到多个假设的预测图像块;根据该第一标识和该第一划分方式的参数,使用该第一划分方式处理该多个假设的预测图像块,以得到该当前待解码图像块的预测图像块。In a sixth aspect, an image prediction device is provided, which includes: a memory for storing video data in the form of a code stream, the video data including one or more image blocks; a video decoder for parsing the code stream to obtain the current The multi-hypothesis information index of the image block to be decoded; according to the multi-hypothesis information index, the first multi-hypothesis information corresponding to the current image block is obtained from the multi-hypothesis information list, and the first multi-hypothesis information includes the motion information index and the first Identification, the motion information index of the first multi-hypothesis information indicates the multi-hypothesis motion information of the current image block to be decoded, the first identification indicates the first division method of the multi-hypothesis method, and the first multi-hypothesis information also includes the first A parameter of a division method; perform motion compensation according to the motion information of the multi-hypothesis encoding of the current image block to be decoded to obtain multiple hypothetical prediction image blocks; according to the first identifier and the parameters of the first division method, use the The first division manner processes the plurality of hypothetical predicted image blocks to obtain a predicted image block of the current image block to be decoded.
一种可能的实现方式下,该多假设信息列表包括至少一条该第一多假设信息,和至少一条第二多假设信息,该第二多假设信息包括运动信息索引和第二标识,该第二多假设信息的该运动信息索引指示一图像块的多假设运动信息,该第二标识指示多假设方法的第二划分方式,该第二多假设信息还包括该第二划分方式的参数。In a possible implementation manner, the multi-hypothesis information list includes at least one piece of the first multi-hypothesis information, and at least one piece of second multi-hypothesis information, where the second multi-hypothesis information includes a motion information index and a second identifier, and the second The motion information index of the multi-hypothesis information indicates the multi-hypothesis motion information of an image block, the second identifier indicates the second division method of the multi-hypothesis method, and the second multi-hypothesis information also includes parameters of the second division mode.
一种可能的实现方式下,该第一标识和该第二标识是同一标记位的不同取值。In a possible implementation manner, the first identifier and the second identifier are different values of the same flag bit.
一种可能的实现方式下,该第一划分方式为三角形划分,该第一划分方式的参数指示该三角形划分的划分方向,该第二划分方式为方形划分,该第二划分方式的参数指示该方形划分的加权系数。In a possible implementation manner, the first division method is triangle division, and the parameter of the first division method indicates the division direction of the triangle division; the second division method is square division, and the parameter of the second division method indicates the The weighting factor for the square division.
应当理解,第一划分方式和第二划分方式是不同的划分方式,每一种划分方式都是用来划分多个假设的预测图像块的,也就是用来划分原始假设的预测图像块和额外假设的预测图像块。关于多假设方法的多种划分预测图像块的具体方法和方式,可以参考JVET-K0144提案(三角形划分)和JVET-K0257提案(方形划分)的内容。It should be understood that the first division method and the second division method are different division methods, and each division method is used to divide a plurality of assumed predicted image blocks, that is, used to divide the original assumed predicted image block and the additional Hypothetical predicted image blocks. For the specific methods and ways of dividing and predicting image blocks in the multi-hypothesis method, please refer to the content of JVET-K0144 proposal (triangular division) and JVET-K0257 proposal (square division).
一种可能的实现方式下,该第一划分方式为三角形划分,该第一划分方式的参数指示该三角形划分的划分方向,或者该第一划分方式为方形划分,该第一划分方式的参数指示该方形划分的加权系数。In a possible implementation manner, the first division method is triangle division, and the parameter of the first division method indicates the division direction of the triangle division, or the first division method is square division, and the parameter of the first division method indicates The weighting factor for this square division.
一种可能的实现方式下,该视频解码器还用于:根据该第一多假设信息的该运动信息索引,从该当前待解码图像块的候选运动信息列表中获取该当前待解码图像块的多假设运动信息,该当前待解码图像块的多假设运动信息包括原始假设的运动信息和额外假设的运动信息。In a possible implementation manner, the video decoder is further configured to: acquire the motion information of the current image block to be decoded from the candidate motion information list of the current image block to be decoded according to the motion information index of the first multi-hypothesis information. Multi-hypothesis motion information, the multi-hypothesis motion information of the current image block to be decoded includes the motion information of the original hypothesis and the motion information of the additional hypothesis.
一种可能的实现方式下,该第一多假设信息的运动信息索引包括第一索引和第二索引,在该根据该第一多假设信息的该运动信息索引,从该当前待解码图像块的候选运动信息列表中获取该当前待解码图像块的多假设运动信息的方面,该视频解码器还用于:根据该第一索引,从该当前图像块的第一候选运动信息列表中获取该原始假设的运动信息,以及根据该第二索引,从该当前图像块的第二候选运动信息列表中获取该额外假设的运动信息。In a possible implementation manner, the motion information index of the first multi-hypothesis information includes a first index and a second index, and according to the motion information index of the first multi-hypothesis information, the current to-be-decoded image block In terms of acquiring the multi-hypothesis motion information of the current image block to be decoded from the candidate motion information list, the video decoder is further configured to: acquire the original motion information from the first candidate motion information list of the current image block according to the first index The assumed motion information, and according to the second index, obtain the additional assumed motion information from the second candidate motion information list of the current image block.
这样,采用上述的设备,由于码流中携带指示多假设方法的划分标识,解码端可以确定具体在多假设方法中使用那一种划分方式预测图像,也就是说,对不同的图像块,可使用不同的划分方式来得到图像块的预测块,这样图像块能使用更适合自身特点的划分方式,从而提高了图像预测的效率,降低了解码的时间。In this way, using the above-mentioned equipment, since the code stream carries the division identifier indicating the multi-hypothesis method, the decoder can determine which division method to use in the multi-hypothesis method to predict the image, that is, for different image blocks, it can be Different division methods are used to obtain the prediction block of the image block, so that the image block can use a division method more suitable for its own characteristics, thereby improving the efficiency of image prediction and reducing the decoding time.
附图说明Description of drawings
图1是编码系统10的概念性的框图;FIG. 1 is a conceptual block diagram of an
图2是视频编码器20的实例的示意性的框图;FIG. 2 is a schematic block diagram of an example of a
图3是视频解码器30的实例的示意性的框图;FIG. 3 is a schematic block diagram of an example of a
图4是视频编码系统40的实例的说明图;FIG. 4 is an illustration of an example of a video encoding system 40;
图5是一种用于实现本申请方法的装置500的示意图;FIG. 5 is a schematic diagram of a
图6是一种图像预测方法的示意图;Fig. 6 is a schematic diagram of an image prediction method;
图7是一种图像预测装置的示意图。Fig. 7 is a schematic diagram of an image prediction device.
具体实施方式Detailed ways
下面将结合附图,对本申请中的技术方案进行描述。The technical solution in this application will be described below with reference to the accompanying drawings.
以下,参考附图来说明本发明具体的实施方式以及使用本发明具体实施方式的应用实例。视频编码通常是指处理形成视频或视频序列的图片序列。在视频编码领域,术语“图片(picture)”、“帧(frame)”或“图像(image)”可以用作同义词。本申请(或本公开)中使用的视频编码表示视频编码或视频解码。视频编码在源侧执行,通常包括处理(例如,通过压缩)原始视频图片以减少表示该视频图片所需的数据量(从而更高效地存储和/或传输)。视频解码在目的地侧执行,通常包括相对于编码器作逆处理,以重构视频图片。实施例涉及的视频图片(或总称为图片,下文将进行解释)“编码”应理解为涉及视频序列的“编码”或“解码”。编码部分和解码部分的组合也称为编解码(编码和解码)。Hereinafter, specific embodiments of the present invention and application examples using the specific embodiments of the present invention will be described with reference to the drawings. Video coding generally refers to the processing of sequences of pictures that form a video or video sequence. In the field of video coding, the terms "picture", "frame" or "image" may be used as synonyms. Video encoding as used in this application (or this disclosure) means video encoding or video decoding. Video encoding is performed on the source side and typically involves processing (eg, by compressing) raw video pictures to reduce the amount of data needed to represent the video pictures (and thus more efficiently store and/or transmit). Video decoding is performed at the destination and typically involves inverse processing relative to the encoder to reconstruct the video picture. The "encoding" of video pictures (or collectively referred to as pictures, which will be explained below) involved in the embodiments should be understood as involving "encoding" or "decoding" of video sequences. The combination of encoding part and decoding part is also called codec (encoding and decoding).
无损视频编码情况下,可以重构原始视频图片,即经重构视频图片具有与原始视频图片相同的质量(假设存储或传输期间没有传输损耗或其它数据丢失)。在有损视频编码情况下,通过例如量化执行进一步压缩,来减少表示视频图片所需的数据量,而解码器侧无法完全重构视频图片,即经重构视频图片的质量相比原始视频图片的质量较低或较差。In the case of lossless video coding, the original video picture can be reconstructed, ie the reconstructed video picture has the same quality as the original video picture (assuming no transmission loss or other data loss during storage or transmission). In the case of lossy video coding, further compression is performed by, for example, quantization, to reduce the amount of data required to represent a video picture without being able to fully reconstruct the video picture at the decoder side, i.e. the quality of the reconstructed video picture is compared to the original video picture of low or poor quality.
H.261的几个视频编码标准属于“有损混合型视频编解码”(即,将样本域中的空间和时间预测与变换域中用于应用量化的2D变换编码结合)。视频序列的每个图片通常分割成不重叠的块集合,通常在块层级上进行编码。换句话说,编码器侧通常在块(视频块)层级处理亦即编码视频,例如,通过空间(图片内)预测和时间(图片间)预测来产生预测块,从当前块(当前处理或待处理的块)减去预测块以获取残差块,在变换域变换残差块并量化残差块,以减少待传输(压缩)的数据量,而解码器侧将相对于编码器的逆处理部分应用于经编码或经压缩块,以重构用于表示的当前块。另外,编码器复制解码器处理循环,使得编码器和解码器生成相同的预测(例如帧内预测和帧间预测)和/或重构,用于处理亦即编码后续块。Several video coding standards of H.261 belong to "lossy hybrid video codecs" (ie, combining spatial and temporal prediction in the sample domain with 2D transform coding in the transform domain for applying quantization). Each picture of a video sequence is usually partitioned into a non-overlapping set of blocks, usually coded at the block level. In other words, the encoder side usually processes at the block (video block) level, i.e. encodes the video, for example, generates a predicted block through spatial (intra-picture) prediction and temporal (inter-picture) prediction, from the current block (currently processed or to be processed block) minus the predicted block to obtain the residual block, transform the residual block in the transform domain and quantize the residual block to reduce the amount of data to be transmitted (compressed), and the decoder side will be inversely processed relative to the encoder Partially applied to an encoded or compressed block to reconstruct the current block for representation. Additionally, the encoder replicates the decoder processing loop such that the encoder and decoder generate the same predictions (eg, intra and inter predictions) and/or reconstructions for processing, ie encoding, subsequent blocks.
如本文中所用,术语“块”可以为图片或帧的一部分。为便于描述,参考由ITU-T视频编码专家组(Video Coding Experts Group,VCEG)和ISO/IEC运动图像专家组(MotionPicture Experts Group,MPEG)的视频编码联合工作组(Joint Collaboration Team onVideo Coding,JCT-VC)开发的高效视频编码(High-Efficiency Video Coding,HEVC)描述本发明实施例。本领域普通技术人员理解本发明实施例不限于HEVC。可以指CU、PU和TU。在HEVC中,通过使用表示为编码树的四叉树结构将CTU拆分为多个CU。在CU层级处作出是否使用图片间(时间)或图片内(空间)预测对图片区域进行编码的决策。每个CU可以根据PU拆分类型进一步拆分为一个、两个或四个PU。一个PU内应用相同的预测过程,并在PU基础上将相关信息传输到解码器。在通过基于PU拆分类型应用预测过程获取残差块之后,可以根据类似于用于CU的编码树的其它四叉树结构将CU分割成变换单元(transform unit,TU)。在视频压缩技术最新的发展中,使用四叉树和二叉树(Quad-tree and binary tree,QTBT)分割帧来分割编码块。在QTBT块结构中,CU可以为正方形或矩形形状。在XXX中,编码树单元(coding tree unit,CTU)首先由四叉树结构分割。四叉树叶节点进一步由二进制树结构分割。二进制树叶节点称为编码单元(coding unit,CU),所述分段用于预测和变换处理,无需其它任何分割。这表示CU、PU和TU在QTBT编码块结构中的块大小相同。同时,还提出与QTBT块结构一起使用多重分割,例如三叉树分割。As used herein, the term "block" may be a portion of a picture or frame. For ease of description, refer to the Video Coding Joint Working Group (Joint Collaboration Team on Video Coding, JCT) of ITU-T Video Coding Experts Group (Video Coding Experts Group, VCEG) and ISO/IEC Motion Picture Experts Group (Motion Picture Experts Group, MPEG). -High-Efficiency Video Coding (HEVC) developed by VC) describes embodiments of the present invention. Those of ordinary skill in the art understand that embodiments of the present invention are not limited to HEVC. Can refer to CU, PU, and TU. In HEVC, a CTU is split into multiple CUs by using a quadtree structure represented as a coding tree. The decision whether to encode a region of a picture using inter-picture (temporal) or intra-picture (spatial) prediction is made at the CU level. Each CU can be further split into one, two or four PUs according to the PU split type. The same prediction process is applied within a PU and relevant information is transferred to the decoder on a PU basis. After obtaining the residual block by applying a prediction process based on the PU split type, the CU can be partitioned into transform units (TUs) according to other quadtree structures similar to the coding tree used for the CU. In the latest development of video compression technology, quad-tree and binary tree (QTBT) are used to divide the frame to divide the encoding block. In the QTBT block structure, a CU can be square or rectangular in shape. In XXX, the coding tree unit (CTU) is first divided by a quadtree structure. The quadtree leaf nodes are further divided by the binary tree structure. Binary tree leaf nodes are called coding units (CUs), and the segments are used for prediction and transform processing without any other partitioning. This means that CU, PU and TU have the same block size in the QTBT coded block structure. Meanwhile, it is also proposed to use multiple partitions together with the QTBT block structure, such as ternary tree partitioning.
以下基于图1至4描述编码器20、解码器30和编码解码系统10、40的实施例(在基于图6更详细描述本发明实施例之前)。Embodiments of the
图1为绘示示例性编码系统10的概念性或示意性框图,例如,可以利用本申请(本公开)技术的视频编码系统10。视频编码系统10的编码器20(例如,视频编码器20)和解码器30(例如,视频解码器30)表示可用于根据本申请中描述的各种实例执行用于图像预测的技术的设备实例。如图1中所示,编码系统10包括源设备12,用于向例如解码经编码数据13的目的地设备14提供经编码数据13,例如,经编码图片13。FIG. 1 is a conceptual or schematic block diagram illustrating an
源设备12包括编码器20,另外亦即可选地,可以包括图片源16,例如图片预处理单元18的预处理单元18,以及通信接口或通信单元22。The
图片源16可以包括或可以为任何类别的图片捕获设备,用于例如捕获现实世界图片,和/或任何类别的图片或评论(对于屏幕内容编码,屏幕上的一些文字也认为是待编码的图片或图像的一部分)生成设备,例如,用于生成计算机动画图片的计算机图形处理器,或用于获取和/或提供现实世界图片、计算机动画图片(例如,屏幕内容、虚拟现实(virtualreality,VR)图片)的任何类别设备,和/或其任何组合(例如,实景(augmented reality,AR)图片)。
(数字)图片为或者可以视为具有亮度值的采样点的二维阵列或矩阵。阵列中的采样点也可以称为像素(pixel)(像素(picture element)的简称)或像素(pel)。阵列或图片在水平和垂直方向(或轴线)上的采样点数目定义图片的尺寸和/或分辨率。为了表示颜色,通常采用三个颜色分量,即图片可以表示为或包含三个采样阵列。RBG格式或颜色空间中,图片包括对应的红色、绿色及蓝色采样阵列。但是,在视频编码中,每个像素通常以亮度/色度格式或颜色空间表示,例如,YCbCr,包括Y指示的亮度分量(有时也可以用L指示)以及Cb和Cr指示的两个色度分量。亮度(简写为luma)分量Y表示亮度或灰度水平强度(例如,在灰度等级图片中两者相同),而两个色度(简写为chroma)分量Cb和Cr表示色度或颜色信息分量。相应地,YCbCr格式的图片包括亮度采样值(Y)的亮度采样阵列,和色度值(Cb和Cr)的两个色度采样阵列。RGB格式的图片可以转换或变换为YCbCr格式,反之亦然,该过程也称为色彩变换或转换。如果图片是黑白的,该图片可以只包括亮度采样阵列。A (digital) picture is or can be regarded as a two-dimensional array or matrix of sample points with luminance values. The sampling points in the array may also be called pixels (short for picture element) or pixels (pel). The number of samples in the array or picture in the horizontal and vertical directions (or axes) defines the size and/or resolution of the picture. In order to represent a color, three color components are usually used, that is, a picture can be represented as or contain three sample arrays. In the RBG format or color space, the picture includes corresponding red, green and blue sample arrays. However, in video coding, each pixel is usually represented in a luminance/chrominance format or color space, for example, YCbCr, including a luminance component indicated by Y (which can also be indicated by L sometimes) and two chrominances indicated by Cb and Cr portion. The luminance (luma for short) component Y represents the brightness or grayscale level intensity (e.g. both are the same in a grayscale picture), while the two chrominance (chroma for short) components Cb and Cr represent the chrominance or color information components . Correspondingly, a picture in YCbCr format includes a luma sample array of luma sample values (Y), and two chroma sample arrays of chrominance values (Cb and Cr). A picture in RGB format can be converted or converted to YCbCr format and vice versa, this process is also known as color transformation or conversion. If the picture is black and white, the picture may only include an array of luma samples.
图片源16(例如,视频源16)可以为,例如用于捕获图片的相机,例如图片存储器的存储器,包括或存储先前捕获或产生的图片,和/或获取或接收图片的任何类别的(内部或外部)接口。相机可以为,例如,本地的或集成在源设备中的集成相机,存储器可为本地的或例如集成在源设备中的集成存储器。接口可以为,例如,从外部视频源接收图片的外部接口,外部视频源例如为外部图片捕获设备,比如相机、外部存储器或外部图片生成设备,外部图片生成设备例如为外部计算机图形处理器、计算机或服务器。接口可以为根据任何专有或标准化接口协议的任何类别的接口,例如有线或无线接口、光接口。获取图片数据17的接口可以是与通信接口22相同的接口或是通信接口22的一部分。Picture source 16 (e.g., video source 16) may be, for example, a camera for capturing pictures, a memory such as a picture memory that includes or stores previously captured or generated pictures, and/or acquires or receives pictures of any kind (internal or external) interface. The camera may be, for example, an integrated camera local or integrated in the source device, and the memory may be local or an integrated memory, eg integrated in the source device. The interface may be, for example, an external interface that receives pictures from an external video source, such as an external picture capture device, such as a camera, external memory, or an external picture generation device, such as an external computer graphics processor, computer or server. The interface can be any kind of interface according to any proprietary or standardized interface protocol, eg wired or wireless interface, optical interface. The interface for acquiring the
区别于预处理单元18和预处理单元18执行的处理,图片或图片数据17(例如,视频数据16)也可以称为原始图片或原始图片数据17。Different from the
预处理单元18用于接收(原始)图片数据17并对图片数据17执行预处理,以获取经预处理的图片19或经预处理的图片数据19。例如,预处理单元18执行的预处理可以包括整修、色彩格式转换(例如,从RGB转换为YCbCr)、调色或去噪。可以理解,预处理单元18可以是可选组件。The preprocessing
编码器20(例如,视频编码器20)用于接收经预处理的图片数据19并提供经编码图片数据21(下文将进一步描述细节,例如,基于图2或图4)。在一个实例中,编码器20可以用于在编码过程中,将用于指示多假设方法的划分方式的标识和该划分方式的参数携带在图像块的码流中,具体请参考后文相应的段落。An encoder 20 (eg, video encoder 20 ) is used to receive preprocessed
源设备12的通信接口22可以用于接收经编码图片数据21并传输至其它设备,例如,目的地设备14或任何其它设备,以用于存储或直接重构,或用于在对应地存储经编码数据13和/或传输经编码数据13至其它设备之前处理经编码图片数据21,其它设备例如为目的地设备14或任何其它用于解码或存储的设备。The
目的地设备14包括解码器30(例如,视频解码器30),另外亦即可选地,可以包括通信接口或通信单元28、后处理单元32和显示设备34。
目的地设备14的通信接口28用于例如,直接从源设备12或任何其它源接收经编码图片数据21或经编码数据13,任何其它源例如为存储设备,存储设备例如为经编码图片数据存储设备。The
通信接口22和通信接口28可以用于藉由源设备12和目的地设备14之间的直接通信链路或藉由任何类别的网络传输或接收经编码图片数据21或经编码数据13,直接通信链路例如为直接有线或无线连接,任何类别的网络例如为有线或无线网络或其任何组合,或任何类别的私网和公网,或其任何组合。
通信接口22可以例如用于将经编码图片数据21封装成合适的格式,例如包,以在通信链路或通信网络上传输。The
形成通信接口22的对应部分的通信接口28可以例如用于解封装经编码数据13,以获取经编码图片数据21。The
通信接口22和通信接口28都可以配置为单向通信接口,如图1中用于经编码图片数据13的从源设备12指向目的地设备14的箭头所指示,或配置为双向通信接口,以及可以用于例如发送和接收消息来建立连接、确认和交换任何其它与通信链路和/或例如经编码图片数据传输的数据传输有关的信息。Both
解码器30用于接收经编码图片数据21并提供经解码图片数据31或经解码图片31(下文将进一步描述细节,例如,基于图3或图5)。在一个实例中,解码器30可以用于实现本申请描述的图像预测方法。The
目的地设备14的后处理器32用于后处理经解码图片数据31(也称为经重构图片数据),例如,经解码图片131,以获取经后处理图片数据33,例如,经后处理图片33。后处理单元32执行的后处理可以包括,例如,色彩格式转换(例如,从YCbCr转换为RGB)、调色、整修或重采样,或任何其它处理,用于例如准备经解码图片数据31以由显示设备34显示。The post-processor 32 of the
目的地设备14的显示设备34用于接收经后处理图片数据33以向例如用户或观看者显示图片。显示设备34可以为或可以包括任何类别的用于呈现经重构图片的显示器,例如,集成的或外部的显示器或监视器。例如,显示器可以包括液晶显示器(liquid crystaldisplay,LCD)、有机发光二极管(organic light emitting diode,OLED)显示器、等离子显示器、投影仪、微LED显示器、硅基液晶(liquid crystal on silicon,LCoS)、数字光处理器(digital light processor,DLP)或任何类别的其它显示器。The
虽然图1将源设备12和目的地设备14绘示为单独的设备,但设备实施例也可以同时包括源设备12和目的地设备14或同时包括两者的功能性,即源设备12或对应的功能性以及目的地设备14或对应的功能性。在此类实施例中,可以使用相同硬件和/或软件,或使用单独的硬件和/或软件,或其任何组合来实施源设备12或对应的功能性以及目的地设备14或对应的功能性。Although FIG. 1 depicts
本领域技术人员基于描述明显可知,不同单元的功能性或图1所示的源设备12和/或目的地设备14的功能性的存在和(准确)划分可能根据实际设备和应用有所不同。It will be apparent to those skilled in the art based on the description that the functionality of the different units or the presence and (exact) division of the functionality of the
编码器20(例如,视频编码器20)和解码器30(例如,视频解码器30)都可以实施为各种合适电路中的任一个,例如,一个或多个微处理器、数字信号处理器(digital signalprocessor,DSP)、专用集成电路(application-specific integrated circuit,ASIC)、现场可编程门阵列(field-programmable gate array,FPGA)、离散逻辑、硬件或其任何组合。如果部分地以软件实施所述技术,则设备可将软件的指令存储于合适的非暂时性计算机可读存储介质中,且可使用一或多个处理器以硬件执行指令从而执行本公开的技术。前述内容(包含硬件、软件、硬件与软件的组合等)中的任一者可视为一或多个处理器。视频编码器20和视频解码器30中的每一个可以包含在一或多个编码器或解码器中,所述编码器或解码器中的任一个可以集成为对应设备中的组合编码器/解码器(编解码器)的一部分。Both encoder 20 (e.g., video encoder 20) and decoder 30 (e.g., video decoder 30) may be implemented as any of a variety of suitable circuits, e.g., one or more microprocessors, digital signal processors, (digital signal processor, DSP), application-specific integrated circuit (ASIC), field-programmable gate array (field-programmable gate array, FPGA), discrete logic, hardware, or any combination thereof. If the techniques are implemented partially in software, a device may store instructions for the software in a suitable non-transitory computer-readable storage medium and may execute the instructions in hardware using one or more processors to perform the techniques of this disclosure . Any of the foregoing (including hardware, software, a combination of hardware and software, etc.) may be considered as one or more processors. Each of
源设备12可称为视频编码设备或视频编码装置。目的地设备14可称为视频解码设备或视频解码装置。源设备12以及目的地设备14可以是视频编码设备或视频编码装置的实例。
源设备12和目的地设备14可以包括各种设备中的任一个,包含任何类别的手持或静止设备,例如,笔记本或膝上型计算机、移动电话、智能电话、平板或平板计算机、摄像机、台式计算机、机顶盒、电视、显示设备、数字媒体播放器、视频游戏控制台、视频流式传输设备(例如内容服务服务器或内容分发服务器)、广播接收器设备、广播发射器设备等,并可以不使用或使用任何类别的操作系统。
在一些情况下,源设备12和目的地设备14可以经装备以用于无线通信。因此,源设备12和目的地设备14可以为无线通信设备。In some cases,
在一些情况下,图1中所示视频编码系统10仅为示例,本申请的技术可以适用于不必包含编码和解码设备之间的任何数据通信的视频编码设置(例如,视频编码或视频解码)。在其它实例中,数据可从本地存储器检索、在网络上流式传输等。视频编码设备可以对数据进行编码并且将数据存储到存储器,和/或视频解码设备可以从存储器检索数据并且对数据进行解码。在一些实例中,由并不彼此通信而是仅编码数据到存储器和/或从存储器检索数据且解码数据的设备执行编码和解码。In some cases, the
应理解,对于以上参考视频编码器20所描述的实例中的每一个,视频解码器30可以用于执行相反过程。关于信令语法元素,视频解码器30可以用于接收并解析这种语法元素,相应地解码相关视频数据。在一些例子中,视频编码器20可以将一个或多个定义……的语法元素熵编码成经编码视频比特流。在此类实例中,视频解码器30可以解析这种语法元素,并相应地解码相关视频数据。It should be understood that for each of the examples described above with reference to
编码器&编码方法Encoder & Encoding Method
图2示出用于实现本申请(公开)技术的视频编码器20的实例的示意性框图。在图2的实例中,视频编码器20包括残差计算单元204、变换处理单元206、量化单元208、逆量化单元210、逆变换处理单元212、重构单元214、缓冲器216、环路滤波器单元220、经解码图片缓冲器(decoded picture buffer,DPB)230、预测处理单元260和熵编码单元270。预测处理单元260可以包含帧间预测单元244、帧内预测单元254和模式选择单元262。帧间预测单元244可以包含运动估计单元和运动补偿单元(未图示)。图2所示的视频编码器20也可以称为混合型视频编码器或根据混合型视频编解码器的视频编码器。FIG. 2 shows a schematic block diagram of an example of a
例如,残差计算单元204、变换处理单元206、量化单元208、预测处理单元260和熵编码单元270形成编码器20的前向信号路径,而例如逆量化单元210、逆变换处理单元212、重构单元214、缓冲器216、环路滤波器220、经解码图片缓冲器(decoded picture buffer,DPB)230、预测处理单元260形成编码器的后向信号路径,其中编码器的后向信号路径对应于解码器的信号路径(参见图3中的解码器30)。For example, the residual calculation unit 204, the
编码器20通过例如输入202,接收图片201或图片201的块203,例如,形成视频或视频序列的图片序列中的图片。图片块203也可以称为当前图片块或待编码图片块,图片201可以称为当前图片或待编码图片(尤其是在视频编码中将当前图片与其它图片区分开时,其它图片例如同一视频序列亦即也包括当前图片的视频序列中的先前经编码和/或经解码图片)。The
分割segmentation
编码器20的实施例可以包括分割单元(图2中未绘示),用于将图片201分割成多个例如块203的块,通常分割成多个不重叠的块。分割单元可以用于对视频序列中所有图片使用相同的块大小以及定义块大小的对应栅格,或用于在图片或子集或图片群组之间更改块大小,并将每个图片分割成对应的块。Embodiments of
在一个实例中,视频编码器20的预测处理单元260可以用于执行上述分割技术的任何组合。In one example,
如图片201,块203也是或可以视为具有亮度值(采样值)的采样点的二维阵列或矩阵,虽然其尺寸比图片201小。换句话说,块203可以包括,例如,一个采样阵列(例如黑白图片201情况下的亮度阵列)或三个采样阵列(例如,彩色图片情况下的一个亮度阵列和两个色度阵列)或依据所应用的色彩格式的任何其它数目和/或类别的阵列。块203的水平和垂直方向(或轴线)上采样点的数目定义块203的尺寸。Like the picture 201 , the block 203 is also or can be regarded as a two-dimensional array or matrix of samples with luminance values (sample values), although its size is smaller than that of the picture 201 . In other words, block 203 may comprise, for example, one array of samples (e.g., a luma array in the case of a black and white picture 201) or three arrays of samples (e.g., one luma array and two chrominance arrays in the case of a color picture) or according to An array of any other number and/or class of color formats to apply. The number of sampling points in the horizontal and vertical directions (or axes) of the block 203 defines the size of the block 203 .
如图2所示的编码器20用于逐块编码图片201,例如,对每个块203执行编码和预测。The
残差计算residual calculation
残差计算单元204用于基于图片块203和预测块265(下文提供预测块265的其它细节)计算残差块205,例如,通过逐样本(逐像素)将图片块203的样本值减去预测块265的样本值,以在样本域中获取残差块205。The residual calculation unit 204 is configured to calculate the residual block 205 based on the picture block 203 and the predicted block 265 (further details of the predicted
变换transform
变换处理单元206用于在残差块205的样本值上应用例如离散余弦变换(discretecosine transform,DCT)或离散正弦变换(discrete sine transform,DST)的变换,以在变换域中获取变换系数207。变换系数207也可以称为变换残差系数,并在变换域中表示残差块205。The
变换处理单元206可以用于应用DCT/DST的整数近似值,例如为HEVC/H.265指定的变换。与正交DCT变换相比,这种整数近似值通常由某一因子按比例缩放。为了维持经正变换和逆变换处理的残差块的范数,应用额外比例缩放因子作为变换过程的一部分。比例缩放因子通常是基于某些约束条件选择的,例如,比例缩放因子是用于移位运算的2的幂、变换系数的位深度、准确性和实施成本之间的权衡等。例如,在解码器30侧通过例如逆变换处理单元212为逆变换(以及在编码器20侧通过例如逆变换处理单元212为对应逆变换)指定具体比例缩放因子,以及相应地,可以在编码器20侧通过变换处理单元206为正变换指定对应比例缩放因子。The
量化Quantify
量化单元208用于例如通过应用标量量化或向量量化来量化变换系数207,以获取经量化变换系数209。经量化变换系数209也可以称为经量化残差系数209。量化过程可以减少与部分或全部变换系数207有关的位深度。例如,可在量化期间将n位变换系数向下舍入到m位变换系数,其中n大于m。可通过调整量化参数(quantization parameter,QP)修改量化程度。例如,对于标量量化,可以应用不同的标度来实现较细或较粗的量化。较小量化步长对应较细量化,而较大量化步长对应较粗量化。可以通过量化参数(quantizationparameter,QP)指示合适的量化步长。例如,量化参数可以为合适的量化步长的预定义集合的索引。例如,较小的量化参数可以对应精细量化(较小量化步长),较大量化参数可以对应粗糙量化(较大量化步长),反之亦然。量化可以包含除以量化步长以及例如通过逆量化210执行的对应的量化或逆量化,或者可以包含乘以量化步长。根据例如HEVC的一些标准的实施例可以使用量化参数来确定量化步长。一般而言,可以基于量化参数使用包含除法的等式的定点近似来计算量化步长。可以引入额外比例缩放因子来进行量化和反量化,以恢复可能由于在用于量化步长和量化参数的等式的定点近似中使用的标度而修改的残差块的范数。在一个实例实施方式中,可以合并逆变换和反量化的标度。或者,可以使用自定义量化表并在例如比特流中将其从编码器通过信号发送到解码器。量化是有损操作,其中量化步长越大,损耗越大。A
逆量化单元210用于在经量化系数上应用量化单元208的逆量化,以获取经反量化系数211,例如,基于或使用与量化单元208相同的量化步长,应用量化单元208应用的量化方案的逆量化方案。经反量化系数211也可以称为经反量化残差系数211,对应于变换系数207,虽然由于量化造成的损耗通常与变换系数不相同。The
逆变换处理单元212用于应用变换处理单元206应用的变换的逆变换,例如,逆离散余弦变换(discrete cosine transform,DCT)或逆离散正弦变换(discrete sinetransform,DST),以在样本域中获取逆变换块213。逆变换块213也可以称为逆变换经反量化块213或逆变换残差块213。The inverse transform processing unit 212 is configured to apply an inverse transform of the transform applied by the
重构单元214(例如,求和器214)用于将逆变换块213(即经重构残差块213)添加至预测块265,以在样本域中获取经重构块215,例如,将经重构残差块213的样本值与预测块265的样本值相加。The reconstruction unit 214 (e.g. summer 214) is used to add the inverse transform block 213 (i.e. reconstructed residual block 213) to the
可选地,例如线缓冲器216的缓冲器单元216(或简称“缓冲器”216)用于缓冲或存储经重构块215和对应的样本值,用于例如帧内预测。在其它的实施例中,编码器可以用于使用存储在缓冲器单元216中的未经滤波的经重构块和/或对应的样本值来进行任何类别的估计和/或预测,例如帧内预测。Optionally, a buffer unit 216 (or simply "buffer" 216), such as a
例如,编码器20的实施例可以经配置以使得缓冲器单元216不只用于存储用于帧内预测254的经重构块215,也用于环路滤波器单元220(在图2中未示出),和/或,例如使得缓冲器单元216和经解码图片缓冲器单元230形成一个缓冲器。其它实施例可以用于将经滤波块221和/或来自经解码图片缓冲器230的块或样本(图2中均未示出)用作帧内预测254的输入或基础。For example, an embodiment of
环路滤波器单元220(或简称“环路滤波器”220)用于对经重构块215进行滤波以获取经滤波块221,从而顺利进行像素转变或提高视频质量。环路滤波器单元220旨在表示一个或多个环路滤波器,例如去块滤波器、样本自适应偏移(sample-adaptive offset,SAO)滤波器或其它滤波器,例如双边滤波器、自适应环路滤波器(adaptive loop filter,ALF),或锐化或平滑滤波器,或协同滤波器。尽管环路滤波器单元220在图2中示出为环内滤波器,但在其它配置中,环路滤波器单元220可实施为环后滤波器。经滤波块221也可以称为经滤波的经重构块221。经解码图片缓冲器230可以在环路滤波器单元220对经重构编码块执行滤波操作之后存储经重构编码块。A loop filter unit 220 (or "loop filter" 220 for short) is used to filter the reconstructed block 215 to obtain a
编码器20(对应地,环路滤波器单元220)的实施例可以用于输出环路滤波器参数(例如,样本自适应偏移信息),例如,直接输出或由熵编码单元270或任何其它熵编码单元熵编码后输出,例如使得解码器30可以接收并应用相同的环路滤波器参数用于解码。Embodiments of the encoder 20 (respectively, the loop filter unit 220) may be used to output loop filter parameters (e.g., SAO information), for example, directly or by the
经解码图片缓冲器(decoded picture buffer,DPB)230可以为存储参考图片数据供视频编码器20编码视频数据之用的参考图片存储器。DPB 230可由多种存储器设备中的任一个形成,例如动态随机存储器(dynamic random access memory,DRAM)(包含同步DRAM(synchronous DRAM,SDRAM)、磁阻式RAM(magnetoresistive RAM,MRAM)、电阻式RAM(resistive RAM,RRAM))或其它类型的存储器设备。可以由同一存储器设备或单独的存储器设备提供DPB 230和缓冲器216。在某一实例中,经解码图片缓冲器(decoded picturebuffer,DPB)230用于存储经滤波块221。经解码图片缓冲器230可以进一步用于存储同一当前图片或例如先前经重构图片的不同图片的其它先前的经滤波块,例如先前经重构和经滤波块221,以及可以提供完整的先前经重构亦即经解码图片(和对应参考块和样本)和/或部分经重构当前图片(和对应参考块和样本),例如用于帧间预测。在某一实例中,如果经重构块215无需环内滤波而得以重构,则经解码图片缓冲器(decoded picture buffer,DPB)230用于存储经重构块215。The decoded picture buffer (DPB) 230 may be a reference picture memory storing reference picture data for the
预测处理单元260,也称为块预测处理单元260,用于接收或获取块203(当前图片201的当前块203)和经重构图片数据,例如来自缓冲器216的同一(当前)图片的参考样本和/或来自经解码图片缓冲器230的一个或多个先前经解码图片的参考图片数据231,以及用于处理这类数据进行预测,即提供可以为经帧间预测块245或经帧内预测块255的预测块265。
模式选择单元262可以用于选择预测模式(例如帧内或帧间预测模式)和/或对应的用作预测块265的预测块245或255,以计算残差块205和重构经重构块215。The mode selection unit 262 may be used to select a prediction mode (such as an intra or inter prediction mode) and/or the corresponding prediction block 245 or 255 used as the
模式选择单元262的实施例可以用于选择预测模式(例如,从预测处理单元260所支持的那些预测模式中选择),所述预测模式提供最佳匹配或者说最小残差(最小残差意味着传输或存储中更好的压缩),或提供最小信令开销(最小信令开销意味着传输或存储中更好的压缩),或同时考虑或平衡以上两者。模式选择单元262可以用于基于码率失真优化(rate distortion optimization,RDO)确定预测模式,即选择提供最小码率失真优化的预测模式,或选择相关码率失真至少满足预测模式选择标准的预测模式。Embodiments of the mode selection unit 262 may be used to select a prediction mode (e.g., from those supported by the prediction processing unit 260) that provides the best match or the smallest residual (minimum residual means better compression in transmission or storage), or provide minimal signaling overhead (minimum signaling overhead means better compression in transmission or storage), or consider or balance both of the above. The mode selection unit 262 can be used to determine the prediction mode based on rate distortion optimization (RDO), that is, to select the prediction mode that provides the minimum rate distortion optimization, or to select the prediction mode that the relevant rate distortion at least satisfies the prediction mode selection standard .
下文将详细解释编码器20的实例(例如,通过预测处理单元260)执行的预测处理和(例如,通过模式选择单元262)执行的模式选择。The prediction processing performed by an instance of encoder 20 (eg, by prediction processing unit 260 ) and the mode selection (eg, by mode selection unit 262 ) are explained in detail below.
如上文所述,编码器20用于从(预先确定的)预测模式集合中确定或选择最好或最优的预测模式。预测模式集合可以包括例如帧内预测模式和/或帧间预测模式。As mentioned above, the
帧内预测模式集合可以包括35种不同的帧内预测模式,例如,如DC(或均值)模式和平面模式的非方向性模式,或如H.265中定义的方向性模式,或者可以包括67种不同的帧内预测模式,例如,如DC(或均值)模式和平面模式的非方向性模式,或如正在发展中的H.266中定义的方向性模式。The set of intra prediction modes may include 35 different intra prediction modes, for example, non-directional modes such as DC (or mean) mode and planar mode, or directional modes as defined in H.265, or may include 67 different intra prediction modes, eg non-directional modes such as DC (or mean) mode and planar mode, or directional modes as defined in the developing H.266.
(可能的)帧间预测模式集合取决于可用参考图片(即,例如前述存储在DBP 230中的至少部分经解码图片)和其它帧间预测参数,例如取决于是否使用整个参考图片或只使用参考图片的一部分,例如围绕当前块的区域的搜索窗区域,来搜索最佳匹配参考块,和/或例如取决于是否应用如半像素和/或四分之一像素内插的像素内插。The set of (possible) inter prediction modes depends on the available reference pictures (i.e., e.g. the aforementioned at least partially decoded pictures stored in the DBP 230) and other inter prediction parameters, e.g. on whether to use the entire reference picture or only the reference A part of the picture, eg a search window area around the area of the current block, is searched for the best matching reference block, and/or eg depending on whether pixel interpolation such as half-pixel and/or quarter-pixel interpolation is applied.
除了以上预测模式,也可以应用跳过模式和/或直接模式。In addition to the above prediction modes, skip mode and/or direct mode may also be applied.
预测处理单元260可以进一步用于将块203分割成较小的块分区或子块,例如,通过迭代使用四叉树(quad-tree,QT)分割、二进制树(binary-tree,BT)分割或三叉树(triple-tree,TT)分割,或其任何组合,以及用于例如为块分区或子块中的每一个执行预测,其中模式选择包括选择分割的块203的树结构和选择应用于块分区或子块中的每一个的预测模式。The
帧间预测单元244可以包含运动估计(motion estimation,ME)单元(图2中未示出)和运动补偿(motion compensation,MC)单元(图2中未示出)。运动估计单元用于接收或获取图片块203(当前图片201的当前图片块203)和经解码图片231,或至少一个或多个先前经重构块,例如,一个或多个其它/不同先前经解码图片231的经重构块,来进行运动估计。例如,视频序列可以包括当前图片和先前经解码图片31,或换句话说,当前图片和先前经解码图片31可以是形成视频序列的图片序列的一部分,或者形成该图片序列。The
例如,编码器20可以用于从多个其它图片中的同一或不同图片的多个参考块中选择参考块,并向运动估计单元(图2中未示出)提供参考图片(或参考图片索引……)和/或提供参考块的位置(X、Y坐标)与当前块的位置之间的偏移(空间偏移)作为帧间预测参数。该偏移也称为运动向量(motion vector,MV)。For example,
运动补偿单元用于获取,例如接收帧间预测参数,并基于或使用帧间预测参数执行帧间预测来获取帧间预测块245。由运动补偿单元(图2中未示出)执行的运动补偿可以包含基于通过运动估计(可能执行对子像素精确度的内插)确定的运动/块向量取出或生成预测块。内插滤波可从已知像素样本产生额外像素样本,从而潜在地增加可用于编码图片块的候选预测块的数目。一旦接收到用于当前图片块的PU的运动向量,运动补偿单元246可以在一个参考图片列表中定位运动向量指向的预测块。运动补偿单元246还可以生成与块和视频条带相关联的语法元素,以供视频解码器30在解码视频条带的图片块时使用。The motion compensation unit is configured to obtain, eg receive, inter prediction parameters, and perform inter prediction based on or using the inter prediction parameters to obtain an inter prediction block 245 . Motion compensation performed by a motion compensation unit (not shown in FIG. 2 ) may involve fetching or generating a predictive block based on motion/block vectors determined by motion estimation (possibly performing interpolation to sub-pixel precision). Interpolation filtering can generate additional pixel samples from known pixel samples, potentially increasing the number of candidate predictive blocks that can be used to encode a picture block. Upon receiving the motion vector for the PU of the current picture block, motion compensation unit 246 may locate the predictive block to which the motion vector points in a reference picture list. Motion compensation unit 246 may also generate syntax elements associated with blocks and video slices for use by
帧内预测单元254用于获取,例如接收同一图片的图片块203(当前图片块)和一个或多个先前经重构块,例如经重构相邻块,以进行帧内估计。例如,编码器20可以用于从多个(预定)帧内预测模式中选择帧内预测模式。The
编码器20的实施例可以用于基于优化标准选择帧内预测模式,例如基于最小残差(例如,提供最类似于当前图片块203的预测块255的帧内预测模式)或最小码率失真。Embodiments of the
帧内预测单元254进一步用于基于如所选择的帧内预测模式的帧内预测参数确定帧内预测块255。在任何情况下,在选择用于块的帧内预测模式之后,帧内预测单元254还用于向熵编码单元270提供帧内预测参数,即提供指示所选择的用于块的帧内预测模式的信息。在一个实例中,帧内预测单元254可以用于执行下文描述的帧内预测技术的任意组合。The
熵编码单元270用于将熵编码算法或方案(例如,可变长度编码(variable lengthcoding,VLC)方案、上下文自适应VLC(context adaptive VLC,CAVLC)方案、算术编码方案、上下文自适应二进制算术编码(context adaptive binary arithmetic coding,CABAC)、基于语法的上下文自适应二进制算术编码(syntax-based context-adaptive binaryarithmetic coding,SBAC)、概率区间分割熵(probability interval partitioningentropy,PIPE)编码或其它熵编码方法或技术)应用于经量化残差系数209、帧间预测参数、帧内预测参数和/或环路滤波器参数中的单个或所有上(或不应用),以获取可以通过输出272以例如经编码比特流21的形式输出的经编码图片数据21。可以将经编码比特流传输到视频解码器30,或将其存档稍后由视频解码器30传输或检索。熵编码单元270还可用于熵编码正被编码的当前视频条带的其它语法元素。The
视频编码器20的其它结构变型可用于编码视频流。例如,基于非变换的编码器20可以在没有针对某些块或帧的变换处理单元206的情况下直接量化残差信号。在另一实施方式中,编码器20可具有组合成单个单元的量化单元208和逆量化单元210。Other structural variants of the
图3示出示例性视频解码器30,用于实现本申请的技术,即图像预测方法。视频解码器30用于接收例如由编码器20编码的经编码图片数据(例如,经编码比特流)21,以获取经解码图片231。在解码过程期间,视频解码器30从视频编码器20接收视频数据,例如表示经编码视频条带的图片块的经编码视频比特流及相关联的语法元素。FIG. 3 shows an
在图3的实例中,解码器30包括熵解码单元304、逆量化单元310、逆变换处理单元312、重构单元314(例如求和器314)、缓冲器316、环路滤波器320、经解码图片缓冲器330以及预测处理单元360。预测处理单元360可以包含帧间预测单元344、帧内预测单元354和模式选择单元362。在一些实例中,视频解码器30可执行大体上与参照图2的视频编码器20描述的编码遍次互逆的解码遍次。In the example of FIG. 3, the
熵解码单元304用于对经编码图片数据21执行熵解码,以获取例如经量化系数309和/或经解码的编码参数(图3中未示出),例如,帧间预测、帧内预测参数、环路滤波器参数和/或其它语法元素中(经解码)的任意一个或全部。熵解码单元304进一步用于将帧间预测参数、帧内预测参数和/或其它语法元素转发至预测处理单元360。视频解码器30可接收视频条带层级和/或视频块层级的语法元素。The entropy decoding unit 304 is configured to perform entropy decoding on the encoded
逆量化单元310功能上可与逆量化单元110相同,逆变换处理单元312功能上可与逆变换处理单元212相同,重构单元314功能上可与重构单元214相同,缓冲器316功能上可与缓冲器216相同,环路滤波器320功能上可与环路滤波器220相同,经解码图片缓冲器330功能上可与经解码图片缓冲器230相同。The inverse quantization unit 310 may be functionally the same as the inverse quantization unit 110, the inverse
预测处理单元360可以包括帧间预测单元344和帧内预测单元354,其中帧间预测单元344功能上可以类似于帧间预测单元244,帧内预测单元354功能上可以类似于帧内预测单元254。预测处理单元360通常用于执行块预测和/或从经编码数据21获取预测块365,以及从例如熵解码单元304(显式地或隐式地)接收或获取预测相关参数和/或关于所选择的预测模式的信息。The
当视频条带经编码为经帧内编码(I)条带时,预测处理单元360的帧内预测单元354用于基于信号表示的帧内预测模式及来自当前帧或图片的先前经解码块的数据来产生用于当前视频条带的图片块的预测块365。当视频帧经编码为经帧间编码(即B或P)条带时,预测处理单元360的帧间预测单元344(例如,运动补偿单元)用于基于运动向量及从熵解码单元304接收的其它语法元素生成用于当前视频条带的视频块的预测块365。对于帧间预测,可从一个参考图片列表内的一个参考图片中产生预测块。视频解码器30可基于存储于DPB 330中的参考图片,使用默认建构技术来建构参考帧列表:列表0和列表1。When the video slice is coded as an intra-coded (I) slice, intra prediction unit 354 of
预测处理单元360用于通过解析运动向量和其它语法元素,确定用于当前视频条带的视频块的预测信息,并使用预测信息产生用于正经解码的当前视频块的预测块。例如,预测处理单元360使用接收到的一些语法元素确定用于编码视频条带的视频块的预测模式(例如,帧内或帧间预测)、帧间预测条带类型(例如,B条带、P条带或GPB条带)、用于条带的参考图片列表中的一个或多个的建构信息、用于条带的每个经帧间编码视频块的运动向量、条带的每个经帧间编码视频块的帧间预测状态以及其它信息,以解码当前视频条带的视频块。The
逆量化单元310可用于逆量化(即,反量化)在比特流中提供且由熵解码单元304解码的经量化变换系数。逆量化过程可包含使用由视频编码器20针对视频条带中的每一视频块所计算的量化参数来确定应该应用的量化程度并同样确定应该应用的逆量化程度。Inverse quantization unit 310 may be used to inverse quantize (ie, inverse quantize) the quantized transform coefficients provided in the bitstream and decoded by entropy decoding unit 304 . The inverse quantization process may include using quantization parameters calculated by
逆变换处理单元312用于将逆变换(例如,逆DCT、逆整数变换或概念上类似的逆变换过程)应用于变换系数,以便在像素域中产生残差块。An inverse
重构单元314(例如,求和器314)用于将逆变换块313(即经重构残差块313)添加到预测块365,以在样本域中获取经重构块315,例如通过将经重构残差块313的样本值与预测块365的样本值相加。Reconstruction unit 314 (e.g. summer 314) is used to add inverse transform block 313 (i.e. reconstructed residual block 313) to prediction block 365 to obtain reconstructed block 315 in the sample domain, e.g. by adding The sample values of the reconstructed residual block 313 are added to the sample values of the prediction block 365 .
环路滤波器单元320(在编码循环期间或在编码循环之后)用于对经重构块315进行滤波以获取经滤波块321,从而顺利进行像素转变或提高视频质量。在一个实例中,环路滤波器单元320可以用于执行下文描述的滤波技术的任意组合。环路滤波器单元320旨在表示一个或多个环路滤波器,例如去块滤波器、样本自适应偏移(sample-adaptive offset,SAO)滤波器或其它滤波器,例如双边滤波器、自适应环路滤波器(adaptive loop filter,ALF),或锐化或平滑滤波器,或协同滤波器。尽管环路滤波器单元320在图3中示出为环内滤波器,但在其它配置中,环路滤波器单元320可实施为环后滤波器。A
随后将给定帧或图片中的经解码视频块321存储在存储用于后续运动补偿的参考图片的经解码图片缓冲器330中。The decoded video blocks 321 in a given frame or picture are then stored in a decoded picture buffer 330 that stores reference pictures for subsequent motion compensation.
解码器30用于例如,藉由输出332输出经解码图片31,以向用户呈现或供用户查看。The
视频解码器30的其它变型可用于对压缩的比特流进行解码。例如,解码器30可以在没有环路滤波器单元320的情况下生成输出视频流。例如,基于非变换的解码器30可以在没有针对某些块或帧的逆变换处理单元312的情况下直接逆量化残差信号。在另一实施方式中,视频解码器30可以具有组合成单个单元的逆量化单元310和逆变换处理单元312。Other variants of
图4是根据一示例性实施例的包含图2的编码器20和/或图3的解码器30的视频编码系统40的实例的说明图。系统40可以实现本申请的各种技术的组合。在所说明的实施方式中,视频编码系统40可以包含成像设备41、视频编码器20、视频解码器30(和/或藉由处理单元46的逻辑电路47实施的视频编码器)、天线42、一个或多个处理器43、一个或多个存储器44和/或显示设备45。FIG. 4 is an illustrative diagram of an example of a video encoding system 40 including
如图所示,成像设备41、天线42、处理单元46、逻辑电路47、视频编码器20、视频解码器30、处理器43、存储器44和/或显示设备45能够互相通信。如所论述,虽然用视频编码器20和视频解码器30绘示视频编码系统40,但在不同实例中,视频编码系统40可以只包含视频编码器20或只包含视频解码器30。As shown, imaging device 41 , antenna 42 , processing unit 46 , logic circuitry 47 ,
在一些实例中,如图所示,视频编码系统40可以包含天线42。例如,天线42可以用于传输或接收视频数据的经编码比特流。另外,在一些实例中,视频编码系统40可以包含显示设备45。显示设备45可以用于呈现视频数据。在一些实例中,如图所示,逻辑电路47可以通过处理单元46实施。处理单元46可以包含专用集成电路(application-specificintegrated circuit,ASIC)逻辑、图形处理器、通用处理器等。视频编码系统40也可以包含可选处理器43,该可选处理器43类似地可以包含专用集成电路(application-specificintegrated circuit,ASIC)逻辑、图形处理器、通用处理器等。在一些实例中,逻辑电路47可以通过硬件实施,如视频编码专用硬件等,处理器43可以通过通用软件、操作系统等实施。另外,存储器44可以是任何类型的存储器,例如易失性存储器(例如,静态随机存取存储器(Static Random Access Memory,SRAM)、动态随机存储器(Dynamic Random AccessMemory,DRAM)等)或非易失性存储器(例如,闪存等)等。在非限制性实例中,存储器44可以由超速缓存内存实施。在一些实例中,逻辑电路47可以访问存储器44(例如用于实施图像缓冲器)。在其它实例中,逻辑电路47和/或处理单元46可以包含存储器(例如,缓存等)用于实施图像缓冲器等。In some examples, video encoding system 40 may include antenna 42 as shown. For example, antenna 42 may be used to transmit or receive an encoded bitstream of video data. Additionally, in some examples, video encoding system 40 may include display device 45 . Display device 45 may be used to present video data. In some examples, logic circuitry 47 may be implemented by processing unit 46 as shown. The processing unit 46 may include application-specific integrated circuit (ASIC) logic, a graphics processor, a general-purpose processor, and the like. The video encoding system 40 may also include an optional processor 43, which may similarly include application-specific integrated circuit (ASIC) logic, a graphics processor, a general-purpose processor, and the like. In some examples, the logic circuit 47 may be implemented by hardware, such as dedicated hardware for video encoding, etc., and the processor 43 may be implemented by general-purpose software, an operating system, and the like. In addition, the memory 44 can be any type of memory, such as a volatile memory (for example, a static random access memory (Static Random Access Memory, SRAM), a dynamic random access memory (Dynamic Random Access Memory, DRAM), etc.) or a nonvolatile memory memory (for example, flash memory, etc.) and the like. In a non-limiting example, memory 44 may be implemented by cache memory. In some examples, logic circuitry 47 may access memory 44 (eg, to implement an image buffer). In other examples, logic circuitry 47 and/or processing unit 46 may include memory (eg, cache, etc.) for implementing an image buffer or the like.
在一些实例中,通过逻辑电路实施的视频编码器20可以包含(例如,通过处理单元46或存储器44实施的)图像缓冲器和(例如,通过处理单元46实施的)图形处理单元。图形处理单元可以通信耦合至图像缓冲器。图形处理单元可以包含通过逻辑电路47实施的视频编码器20,以实施参照图2和/或本文中所描述的任何其它编码器系统或子系统所论述的各种模块。逻辑电路可以用于执行本文所论述的各种操作。In some examples,
视频解码器30可以以类似方式通过逻辑电路47实施,以实施参照图3的解码器30和/或本文中所描述的任何其它解码器系统或子系统所论述的各种模块。在一些实例中,逻辑电路实施的视频解码器30可以包含(通过处理单元2820或存储器44实施的)图像缓冲器和(例如,通过处理单元46实施的)图形处理单元。图形处理单元可以通信耦合至图像缓冲器。图形处理单元可以包含通过逻辑电路47实施的视频解码器30,以实施参照图3和/或本文中所描述的任何其它解码器系统或子系统所论述的各种模块。
在一些实例中,视频编码系统40的天线42可以用于接收视频数据的经编码比特流。如所论述,经编码比特流可以包含本文所论述的与编码视频帧相关的数据、指示符、索引值、模式选择数据等,例如与编码分割相关的数据(例如,变换系数或经量化变换系数,(如所论述的)可选指示符,和/或定义编码分割的数据)。视频编码系统40还可包含耦合至天线42并用于解码经编码比特流的视频解码器30。显示设备45用于呈现视频帧。In some examples, antenna 42 of video encoding system 40 may be used to receive an encoded bitstream of video data. As discussed, an encoded bitstream may contain data related to encoded video frames, indicators, index values, mode selection data, etc., as discussed herein, such as data related to encoding partitions (e.g., transform coefficients or quantized transform coefficients , (as discussed) an optional indicator, and/or data defining an encoding split). Video encoding system 40 may also include
图5是根据一示例性实施例的可用作图1中的源设备12和目的地设备14中的任一个或两个的装置500的简化框图。装置500可以实现本申请的技术,用于图像预测,装置500可以采用包含多个计算设备的计算系统的形式,或采用例如移动电话、平板计算机、膝上型计算机、笔记本电脑、台式计算机等单个计算设备的形式。FIG. 5 is a simplified block diagram of an
装置500中的处理器502可以为中央处理器。或者,处理器502可以为现有的或今后将研发出的能够操控或处理信息的任何其它类型的设备或多个设备。如图所示,虽然可以使用例如处理器502的单个处理器实践所揭示的实施方式,但是使用一个以上处理器可以实现速度和效率方面的优势。The
在一实施方式中,装置500中的存储器504可以为只读存储器(Read Only Memory,ROM)设备或随机存取存储器(random access memory,RAM)设备。任何其他合适类型的存储设备都可以用作存储器504。存储器504可以包括代码和由处理器502使用总线512访问的数据506。存储器504可进一步包括操作系统508和应用程序510,应用程序510包含至少一个准许处理器502执行本文所描述的方法的程序。例如,应用程序510可以包括应用1到N,应用1到N进一步包括执行本文所描述的方法的视频编码应用。装置500还可包含采用从存储器514形式的附加存储器,该从存储器514例如可以为与移动计算设备一起使用的存储卡。因为视频通信会话可能含有大量信息,这些信息可以整体或部分存储在从存储器514中,并按需要加载到存储器504用于处理。In one embodiment, the
装置500还可包含一或多个输出设备,例如显示器518。在一个实例中,显示器518可以为将显示器和可操作以感测触摸输入的触敏元件组合的触敏显示器。显示器518可以通过总线512耦合于处理器502。除了显示器518还可以提供其它准许用户对装置500编程或以其它方式使用装置500的输出设备,或提供其它输出设备作为显示器518的替代方案。当输出设备是显示器或包含显示器时,显示器可以以不同方式实现,包含通过液晶显示器(liquid crystal display,LCD)、阴极射线管(cathode-ray tube,CRT)显示器、等离子显示器或发光二极管(light emitting diode,LED)显示器,如有机LED(organic LED,OLED)显示器。
装置500还可包含图像感测设备520或与其连通,图像感测设备520例如为相机或为现有的或今后将研发出的可以感测图像的任何其它图像感测设备520,所述图像例如为运行装置500的用户的图像。图像感测设备520可以放置为直接面向运行装置500的用户。在一实例中,可以配置图像感测设备520的位置和光轴以使其视野包含紧邻显示器518的区域且从该区域可见显示器518。The
装置500还可包含声音感测设备522或与其连通,声音感测设备522例如为麦克风或为现有的或今后将研发出的可以感测装置500附近的声音的任何其它声音感测设备。声音感测设备522可以放置为直接面向运行装置500的用户,并可以用于接收用户在运行装置500时发出的声音,例如语音或其它发声。
虽然图5中将装置500的处理器502和存储器504绘示为集成在单个单元中,但是还可以使用其它配置。处理器502的运行可以分布在多个可直接耦合的机器中(每个机器具有一个或多个处理器),或分布在本地区域或其它网络中。存储器504可以分布在多个机器中,例如基于网络的存储器或多个运行装置500的机器中的存储器。虽然此处只绘示单个总线,但装置500的总线512可以由多个总线形成。进一步地,从存储器514可以直接耦合至装置500的其它组件或可以通过网络访问,并且可包括单个集成单元,例如一个存储卡,或多个单元,例如多个存储卡。因此,可以以多种配置实施装置500。下面简单描述本申请涉及的术语:Although
帧内预测编码:用周围邻近的像素值来预测当前的像素值,然后对预测误差进行编码的编码方式。Intra-frame predictive coding: A coding method in which the surrounding pixel values are used to predict the current pixel value, and then the prediction error is coded.
编码图片:含有图片的所有编码树单元的图片的编码表示。Coded picture: A coded representation of a picture that contains all coding tree units of the picture.
运动矢量(motion vector,MV):用于帧间预测的二维矢量,其提供从解码图片中的坐标到参考图片中的坐标的偏移量。motion vector (MV): A two-dimensional vector used for inter prediction that provides an offset from a coordinate in a decoded picture to a coordinate in a reference picture.
预测块:在其上应用相同预测的矩形M×N样本块。Prediction Block: A rectangular M×N block of samples on which the same prediction is applied.
预测过程:使用预测值提供当前被解码的数据元素(例如,样本值或运动矢量)的估计值。Prediction process: The predictor is used to provide an estimate of the data element (eg, sample value or motion vector) currently being decoded.
预测值:指定值或后续数据元素解码过程中使用的先前解码数据元素(例如,样本值或运动矢量)的组合。Predicted value: Specifies a value or combination of previously decoded data elements (eg, sample values or motion vectors) used in the decoding process of subsequent data elements.
参考帧:作为短期参考图片或长期参考图片的图片或帧。参考帧含有可以按解码顺序用于后续图片的解码过程中的帧间预测的样本。Reference Frame: A picture or frame that is either a short-term reference picture or a long-term reference picture. A reference frame contains samples that can be used in decoding order for inter prediction in the decoding process of subsequent pictures.
帧间预测:根据当前块的参考帧中的像素,通过运动矢量指示参考帧中用于预测的像素的位置,产生当前块的预测图像。Inter-frame prediction: According to the pixels in the reference frame of the current block, the position of the pixel used for prediction in the reference frame is indicated by the motion vector, and the predicted image of the current block is generated.
双向预测(B)片:可以使用帧内预测或帧间预测用最多两个运动矢量和参考索引预测每个块的样本值而解码的片。Bi-predictive (B) slice: A slice that can be decoded by predicting sample values for each block with up to two motion vectors and reference indices using intra prediction or inter prediction.
CTU:编码树单元(coding tree unit),一幅图像由多个CTU构成,一个CTU通常对应于一个方形图像区域,包含这个图像区域中的亮度像素和色度像素(或者也可以只包含亮度像素,或者也可以只包含色度像素);CTU中还包含语法元素,这些语法元素指示如何将CTU划分成至少一个编码单元(coding unit,CU),以及解码每个编码单元得到重建图像的方法。CTU: Coding tree unit (coding tree unit), an image is composed of multiple CTUs, a CTU usually corresponds to a square image area, including the brightness pixels and chrominance pixels in this image area (or only brightness pixels , or may only contain chroma pixels); the CTU also contains syntax elements that indicate how to divide the CTU into at least one coding unit (CU), and decode each coding unit to obtain a reconstructed image.
CU:编码单元,对应于图像中一个A×B的矩形区域,包含A×B亮度像素或/和它对应的色度像素,A为矩形的宽,B为矩形的高,A和B可以相同也可以不同,A和B的取值通常为2的整数次幂,例如128、64、32、16、8、4。一个编码单元包含预测图像和残差图像,预测图像与残差图像相加得到编码单元的重建图像。预测图像通过帧内预测或帧间预测生成,残差图像通过对变换系数进行反量化和反变换处理生成。CU: coding unit, corresponding to an A×B rectangular area in the image, including A×B brightness pixels or/and its corresponding chrominance pixels, A is the width of the rectangle, B is the height of the rectangle, A and B can be the same It can also be different, and the values of A and B are usually integer powers of 2, such as 128, 64, 32, 16, 8, and 4. A coding unit includes a predicted image and a residual image, and the predicted image and the residual image are added to obtain a reconstructed image of the coding unit. The predicted image is generated through intra-frame prediction or inter-frame prediction, and the residual image is generated through inverse quantization and inverse transform processing of transform coefficients.
VTM:JVET组织开发的新式编解码器参考软件。VTM: A new codec reference software developed by the JVET organization.
融合编码(merge):一种帧间编码编码方式,其运动矢量不直接在码流中传递。当前块可根据融合序号(merge index)从融合候选列表(merge candidate list)中选择对应的融合候选,将融合候选的运动信息作为当前块的运动信息,或者对融合候选的运动信息经过缩放后作为当前块的运动信息。Fusion coding (merge): An inter-frame coding coding method, the motion vector of which is not directly transmitted in the code stream. The current block can select the corresponding fusion candidate from the merge candidate list according to the merge index, and use the motion information of the fusion candidate as the motion information of the current block, or scale the motion information of the fusion candidate as Motion information for the current block.
本申请描述的图像预测方法与帧间预测有关,多假设方法就是一种帧间预测方法。下面简单描述帧间预测,在视频编解码中主要利用了帧间预测来消除视频中的时域和空域冗余。The image prediction method described in this application is related to inter-frame prediction, and the multi-hypothesis method is an inter-frame prediction method. The inter-frame prediction is briefly described below. In video coding and decoding, inter-frame prediction is mainly used to eliminate temporal and spatial redundancy in video.
帧间预测是基于运动补偿(motion compensation)的预测技术。在帧间预测编码中,由于图像邻近帧中的相同物体存在一定时域相关性,可将图像序列的每一帧划分成许多互不重叠的块,并认为块内所有像素点的运动都相同。主要处理为确定当前块的运动信息,根据运动信息从参考帧中获取参考图像块,产生当前块的预测图像。运动信息包含帧间预测方向、参考帧索引(reference index,ref_idx)、运动矢量(motion vector,MV)等,帧间预测通过帧间预测方向指示当前块使用前向预测、后向预测或双向预测其中的何种预测方向,通过参考帧索引(reference index)指明参考帧(reference frame),通过运动矢量指示当前块(current block)在参考帧中的参考块(reference block)相对当前帧中当前块的位置偏移。运动矢量指示了参考帧中用于预测当前块的参考图像块相对于当前块的位移矢量,因而一个运动矢量对应一个参考图像块。Inter prediction is a prediction technique based on motion compensation. In inter-frame predictive coding, since there is a certain time-domain correlation of the same objects in adjacent frames of the image, each frame of the image sequence can be divided into many non-overlapping blocks, and the motion of all pixels in the block is considered to be the same . The main processing is to determine the motion information of the current block, obtain the reference image block from the reference frame according to the motion information, and generate the prediction image of the current block. Motion information includes inter-frame prediction direction, reference frame index (reference index, ref_idx), motion vector (motion vector, MV), etc., inter-frame prediction indicates that the current block uses forward prediction, backward prediction or bidirectional prediction through the inter-frame prediction direction Which of the prediction directions is specified by the reference frame index (reference index), the reference frame (reference frame) is indicated by the motion vector, and the reference block (reference block) of the current block (current block) in the reference frame is relative to the current block in the current frame position offset. The motion vector indicates the displacement vector of the reference image block used to predict the current block relative to the current block in the reference frame, so one motion vector corresponds to one reference image block.
在编码时,H.265/HEVC、H.266/VVC等视频编码标准把一帧图像划分成互不重叠的编码树单元(Coding Tree Unit,CTU),一个CTU被划分为一个或多个编码单元(CodingUnit,CU)。一个CU包含编码信息,包括预测模式、变换系数等信息。解码端:按照这些编码信息对CU进行相应的预测、反量化、反变换等解码处理,产生这个CU对应的重建图像。When coding, video coding standards such as H.265/HEVC and H.266/VVC divide a frame of image into non-overlapping coding tree units (Coding Tree Unit, CTU), and a CTU is divided into one or more coding tree units. Unit (CodingUnit, CU). A CU contains encoding information, including information such as prediction mode and transform coefficients. Decoding end: perform corresponding prediction, inverse quantization, inverse transformation and other decoding processing on the CU according to the encoding information, and generate a reconstructed image corresponding to the CU.
码流中,运动信息占有大量的数据量。为了降低所需数据量,通常采用预测的方式传送运动信息。总体可以分为inter和merge两种模式:In the code stream, motion information occupies a large amount of data. In order to reduce the amount of data required, motion information is usually transmitted in a predictive manner. Overall, it can be divided into two modes: inter and merge:
Inter mvp模式:传送的运动信息包含:帧间预测方向(前向、后向或双向)、参考帧索引、运动矢量预测值索引、运动矢量残差值。对运动信息中的运动矢量信息通常采用传送实际运动矢量与运动矢量预测值(motion vector predictor,MVP)的差值的方式,编码端将MVP与实际运动矢量之间的运动矢量残差值(motion vector difference,MVD)传递到解码端。其中运动矢量预测可能包含多个预测值,一般在编码段和解码段使用相同的方式构建运动矢量预测候选列表(mvp candidate list),将运动矢量预测值索引(motion vectorpredictor index,MVP index)传递到解码端。Inter mvp mode: The transmitted motion information includes: inter-frame prediction direction (forward, backward or bidirectional), reference frame index, motion vector predictor index, and motion vector residual value. For the motion vector information in the motion information, the method of transmitting the difference between the actual motion vector and the motion vector predictor (motion vector predictor, MVP) is usually adopted, and the encoding end transfers the motion vector residual value (motion vector difference, MVD) to the decoder. The motion vector prediction may contain multiple predictors. Generally, the motion vector prediction candidate list (mvp candidate list) is constructed in the same way in the encoding segment and the decoding segment, and the motion vector predictor index (MVP index) is passed to decoder side.
Merge模式:在编码段和解码段使用相同的方式构建融合运动信息候选列表(merge candidate list),将索引传递到解码端。码流中传送融合索引(merge index)。运动信息候选列表(candidate list)中的运动信息通常从其空域相邻块或参考帧中的时域块中获得,其中由当前块相邻的图像块的运动信息得到的候选运动信息称为空间候选(spatial candidate),由当前块在参考图像中得到的对应位置图像块的运动信息称为时间候选(temporal candidate)。Merge mode: Use the same method to construct a fusion motion information candidate list (merge candidate list) in the encoding segment and decoding segment, and pass the index to the decoding end. The merge index is transmitted in the code stream. The motion information in the motion information candidate list (candidate list) is usually obtained from its spatial adjacent blocks or temporal blocks in the reference frame, where the candidate motion information obtained from the motion information of the image blocks adjacent to the current block is called spatial Candidate (spatial candidate), the motion information of the corresponding position image block obtained from the current block in the reference image is called temporal candidate (temporal candidate).
双向光流(Bi-directional Optical flow,BIO)是一种在基于块的运动补偿技术基础上进行像素级运动矢量优化改良的帧间编码方法(JVET-E1001提案、JVET-K0255提案、JVET-K0119提案等相关技术提案)。双向光流技术不需要额外冗繁的搜索或者额外码流信息就可以在像素级提供改进的运动矢量。双向光流技术对于每个像素的运动轨迹结合光流场和厄米特(Hermite)插值分析,通过最小化运动轨迹与参考框架平面的交点来得到改进运动矢量。过程中需要利用到预测块中各个像素的水平和垂直梯度,对梯度还有特殊的6抽头滤波器进行插值操作。Bi-directional Optical flow (BIO) is an inter-frame coding method based on block-based motion compensation technology for pixel-level motion vector optimization and improvement (JVET-E1001 proposal, JVET-K0255 proposal, JVET-K0119 proposal proposals and other related technical proposals). Bidirectional optical flow technology can provide improved motion vectors at the pixel level without additional tedious searches or additional bitstream information. The two-way optical flow technology combines optical flow field and Hermite interpolation analysis for the motion trajectory of each pixel, and improves the motion vector by minimizing the intersection point between the motion trajectory and the reference frame plane. In the process, the horizontal and vertical gradients of each pixel in the prediction block need to be used, and the gradient and a special 6-tap filter are interpolated.
解码端运动矢量改良(Decoder-side motion vector refinement,DMVR)是一种在解码端通过搜索来对已有运动矢量进行调整的帧间编码方法(JVET-E1001提案、JVET-K0275提案等相关技术提案)。解码端运动矢量改良技术使用在利用双向模式进行帧间预测的编码块上。在解码端,首先利用初始码流中传送的list0的运动矢量MV0和list1的运动矢量MV1通过运动补偿生成的两个预测块得到一个双向模板。使用双向模板在list0和list1的参考帧中初始运动矢量MV0和MV1指示的位置周围进行搜索,找到搜索范围内匹配失真最小的位置作为新的MV0和MV1以及两个新的预测块。利用新的预测块加权生成最终预测块。Decoder-side motion vector refinement (DMVR) is an interframe coding method that adjusts existing motion vectors by searching at the decoding end (JVET-E1001 proposal, JVET-K0275 proposal and other related technical proposals ). The motion vector improvement technology at the decoding end is used on coding blocks that use bi-directional mode for inter-frame prediction. At the decoding end, first use the motion vector MV0 of list0 and the motion vector MV1 of list1 transmitted in the initial code stream to obtain a bidirectional template through two prediction blocks generated by motion compensation. Use the bidirectional template to search around the positions indicated by the initial motion vectors MV0 and MV1 in the reference frames of list0 and list1, and find the position with the smallest matching distortion within the search range as the new MV0 and MV1 and two new prediction blocks. The final prediction block is generated using the new prediction block weights.
在HEVC和之前的标准中,参考帧分为前向和后向两组,分别放置在两个参考帧列表(reference picture list)中,一般命名为list0和list1。通过帧间预测方向指示当前块使用前向预测、后向预测或双向预测其中的何种预测方向,根据预测的方向选择使用不同的参考帧列表list0、list1或者list0和list1。对于选定的参考帧列表,通过参考帧索引指明参考帧。在选定的参考帧中,通过运动矢量指示当前块的预测块在参考帧中的参考块相对当前帧中当前块的位置偏移。然后根据预测方向,使用从list0、list1或者list0和list1中的参考帧中取得的预测块生成最终的预测块。其中当预测方向为单向时,直接使用从list0或list1中的参考帧中取得的预测块,当预测方向为双向时,将list0和list1中的参考帧中取得的预测块通过加权平均的方式合成最终预测块。多假设帧间编码(Multi-Hypothesis Inter Prediction)方法中,把预测块或最终预测块作为当前块的原有假设(Hypothesis),通过增加新的运动信息或预测信息来增加假设的数目来提高编码性能。JVET-K0269和JVET-K0257提案使用了多假设帧间编码方法,但是各自采用不同的方式来实现多假设帧间编码。In HEVC and previous standards, reference frames are divided into forward and backward groups, which are placed in two reference frame lists (reference picture list), generally named list0 and list1. The inter-frame prediction direction indicates which prediction direction the current block uses in forward prediction, backward prediction or bidirectional prediction, and selects and uses different reference frame lists list0, list1 or list0 and list1 according to the direction of prediction. For the selected reference frame list, the reference frame is indicated by the reference frame index. In the selected reference frame, the position offset of the prediction block of the current block relative to the current block in the current frame is indicated by the motion vector. Then according to the prediction direction, use the prediction blocks obtained from the reference frames in list0, list1 or list0 and list1 to generate the final prediction block. Wherein, when the prediction direction is unidirectional, the prediction block obtained from the reference frame in list0 or list1 is directly used; when the prediction direction is bidirectional, the prediction block obtained from the reference frame in list0 and list1 is weighted and averaged Synthesize the final prediction block. In the Multi-Hypothesis Inter Prediction method, the prediction block or the final prediction block is used as the original hypothesis (Hypothesis) of the current block, and the number of assumptions is increased by adding new motion information or prediction information to improve coding. performance. The JVET-K0269 and JVET-K0257 proposals use the multi-hypothesis inter-frame coding method, but each implements the multi-hypothesis inter-frame coding in different ways.
JVET-K0269提案中的多假设编码方法,在原有HEVC或VVC VTM中帧间编码的基础上,通过额外传送运动信息的方式来添加额外的假设。每个额外假设需要传送是否有额外假设的标志(additional hypothesis flag),额外假设的参考帧序号(ref idx add hyp),额外假设的运动矢量预测值信息(mvp add hyp flag),额外假设的运动矢量差异值,和额外假设的加权系数(add hyp weight idx)。额外假设的参考帧序号、运动矢量预测值信息以及运动矢量差异值的含义与HEVC和之前的标准中相同,但是参考帧列表的生成方式不同。额外假设的参考帧列表采取使用HEVC或VVC VTM中list0和list1交替插入的方式生成,其中重复参考帧不再加入列表中。通过额外假设的运动信息取得预测块(额外假设)后,使用额外假设的加权系数将其与原有最终预测块(原有假设)。额外假设的加权系数有两种,分别为1/4和-1/8。The multi-hypothesis coding method in the JVET-K0269 proposal adds additional assumptions by additionally transmitting motion information on the basis of interframe coding in the original HEVC or VVC VTM. Each additional hypothesis needs to transmit whether there is an additional hypothesis flag (additional hypothesis flag), the reference frame number of the additional hypothesis (ref idx add hyp), the motion vector predictor information of the additional hypothesis (mvp add hyp flag), the motion of the additional hypothesis Vector of difference values, and weighting coefficients for additional hypotheses (add hyp weight idx). The additional hypothetical reference frame numbers, motion vector predictor information, and motion vector difference values are the same as in HEVC and previous standards, but the reference frame list is generated differently. The additional hypothetical reference frame list is generated by alternately inserting list0 and list1 in HEVC or VVC VTM, and repeated reference frames are no longer added to the list. After the prediction block (extra hypothesis) is obtained through the motion information of the additional hypothesis, it is compared with the original final prediction block (original hypothesis) by using the weight coefficient of the additional hypothesis. There are two weighting coefficients for additional assumptions, 1/4 and -1/8.
本申请描述的图像预测方法,用于对图像中的至少一个使用帧间预测的图像块使用当前方法进行预测,从而得到预测图像块。后续,就可以基于得到的预测图像块进行进一步的解码处理,以得到该图像块的重建图像,在编码端和解码端中的处理是相同的。下文以解码端为例进行描述。有关编码端的实现,请参考前文描述的编码流程和下文描述的解码端的方法流程。例如,编码端通过遍历,在多假设编码信息列表中得到待编码的图像块的多假设编码信息,该多假设编码信息包括用于表示多假设编码方法的划分方式的标识,以及多假设编码方法的参数。该划分方式划分的是采用多假设编码方法时,对一个待编码图片的多个假设的预测块进行划分时使用的。例如,划分方式为三角形划分,则参数为三角形划分的方向,划分方式为方形划分,则参数为加权系数。The image prediction method described in this application is used to predict at least one image block using inter-frame prediction in an image using the current method, so as to obtain a predicted image block. Subsequently, further decoding processing may be performed based on the obtained predicted image block to obtain a reconstructed image of the image block, and the processing at the encoding end and the decoding end are the same. The following uses the decoding end as an example for description. For the implementation of the encoding end, please refer to the encoding flow described above and the method flow of the decoding end described below. For example, the coding end obtains the multi-hypothesis coding information of the image block to be coded in the multi-hypothesis coding information list by traversing. parameters. This division method is used when the multi-hypothesis coding method is used to divide the prediction blocks of multiple hypotheses of a picture to be coded. For example, if the division method is triangle division, the parameter is the direction of the triangle division, and if the division mode is square division, the parameter is the weighting coefficient.
三角形划分可以参考JVET-K0144提案中的多假设编码方法。在原有HEVC或VVCVTM中帧间编码的基础上,在当前编码块为merge或skip时,将编码块沿对角方向划分为两个三角形的编码块,每个三角形编码块使用从融合运动信息候选列表中得到的单独的运动信息。两个三角形编码块的划分方向和选择融合运动信息候选的组合使用一个组合序号从预设的多假设融合运动信息候选选择和划分组合列表来选择,并且将该序号在码流中传送。两个三角形编码块有一定的重叠区域,采取跟距离有关的加权系数进行加权。Triangulation can refer to the multi-hypothesis encoding method in the JVET-K0144 proposal. On the basis of inter-frame coding in the original HEVC or VVCVTM, when the current coding block is merge or skip, the coding block is divided into two triangular coding blocks along the diagonal direction, and each triangular coding block is used from the fusion motion information candidate The individual sports information obtained in the list. The combination of the division direction of the two triangular coding blocks and the selection of the fusion motion information candidate is selected from the preset multi-hypothesis fusion motion information candidate selection and division combination list using a combination number, and the number is transmitted in the code stream. There is a certain overlapping area between the two triangular coding blocks, and the weighting coefficient related to the distance is used for weighting.
方形划分可以参考JVET-K0257提案,提案中使用一种组合编码方式来实现多假设编码,将组合merge与inter MVP、merge、和帧内编码结合起来使用。在当前原有假设/第一假设为inter MVP模式,并且采用的是单向方式(即仅仅list0或list1)时,使用merge模式生成额外假设。在当前原有假设/第一假设为merge模式时,可以使用融合运动信息候选列表中原有假设/第一假设选定的融合运动信息候选下一个融合运动信息候选作为额外假设的运动信息来生成额外假设。在当前原有假设/第一假设为merge模式时,也可以使用帧内编码模式生成额外的假设,有额外的语法元素标识是否使用该方式。取得预测块(额外假设)后,使用加权系数将其与原有最终预测块。在JVET-K0257提案中,加权系数和方式与多假设的组合有关。For square division, please refer to the JVET-K0257 proposal. In the proposal, a combination coding method is used to realize multi-hypothesis coding, combining merge with inter MVP, merge, and intra coding. When the current original hypothesis/first hypothesis is the inter MVP mode, and the one-way method is used (that is, only list0 or list1), use the merge mode to generate additional hypotheses. When the current original hypothesis/first hypothesis is in the merge mode, you can use the fusion motion information candidate selected by the original hypothesis/first hypothesis in the fusion motion information candidate list and the next fusion motion information candidate as the motion information of the additional hypothesis to generate additional assumption. When the current original hypothesis/first hypothesis is the merge mode, the intra coding mode can also be used to generate additional hypotheses, and there is an additional syntax element to indicate whether to use this mode. After the prediction block (extra hypothesis) is obtained, it is compared with the original final prediction block using weighting coefficients. In the JVET-K0257 proposal, the weighting coefficients and methods are related to the combination of multiple hypotheses.
参考帧列表的生成过程为现有技术,该过程可采用与HEVC相同的方法进行(即在片(SLICE)开始的时候,构建list0和list1),也可采用其他参考帧列表的生成方法(如JVET-K0269提案中的方法),本发明不作限定。为了提高效率,多假设编码方法(例如JVET-K0269提案和JVET-K0257提案)加入除了原有一套前向、后向、或双向预测(第一假设)以外的额外的预测,本发明中称其为额外假设,可能包括第二假设,第三假设等。在本发明中,将原有的一套前向、后向、或双向预测称为原有假设或第一假设。The generation process of the reference frame list is an existing technology, and the process can be carried out in the same way as HEVC (that is, when the slice (SLICE) starts, list0 and list1 are constructed), and other generation methods of the reference frame list can also be used (such as The method in the JVET-K0269 proposal), the present invention is not limited. In order to improve efficiency, multi-hypothesis encoding methods (such as JVET-K0269 proposal and JVET-K0257 proposal) add additional predictions other than the original set of forward, backward, or bidirectional prediction (the first hypothesis), which is called in the present invention For additional assumptions, may include second assumptions, third assumptions, etc. In the present invention, the original set of forward, backward, or bidirectional predictions is called the original hypothesis or the first hypothesis.
下面结合图6描述本申请记载的图像预测方法。该图像预测方法包括:The image prediction method described in this application will be described below with reference to FIG. 6 . The image prediction method includes:
602:解析码流获取该当前待解码图像块的多假设信息索引。602: Analyze the code stream to obtain the multi-hypothesis information index of the current image block to be decoded.
602对应下文提及的步骤1。多假设信息索引就是下文提及的多假设模式信息。602 corresponds to step 1 mentioned below. The multi-hypothesis information index is the multi-hypothesis mode information mentioned below.
604:根据该多假设信息索引,从多假设信息列表中,得到该当前图像块对应的第一多假设信息,该第一多假设信息包括运动信息索引和第一标识,该第一多假设信息的该运动信息索引指示该当前待解码图像块的多假设运动信息,该第一标识指示多假设方法的第一划分方式,该第一多假设信息还包括该第一划分方式的参数。604: Obtain first multi-hypothesis information corresponding to the current image block from the multi-hypothesis information list according to the multi-hypothesis information index, the first multi-hypothesis information includes a motion information index and a first identifier, and the first multi-hypothesis information The motion information index indicates the multi-hypothesis motion information of the current image block to be decoded, the first identifier indicates the first division mode of the multi-hypothesis method, and the first multi-hypothesis information also includes parameters of the first division mode.
一种可能的实现方式下,该多假设信息列表包括至少一条该第一多假设信息,和至少一条第二多假设信息,该第二多假设信息包括运动信息索引和第二标识,该第二多假设信息的该运动信息索引指示一图像块的多假设运动信息,该第二标识指示多假设方法的第二划分方式,该第二多假设信息还包括该第二划分方式的参数。In a possible implementation manner, the multi-hypothesis information list includes at least one piece of the first multi-hypothesis information, and at least one piece of second multi-hypothesis information, where the second multi-hypothesis information includes a motion information index and a second identifier, and the second The motion information index of the multi-hypothesis information indicates the multi-hypothesis motion information of an image block, the second identifier indicates the second division method of the multi-hypothesis method, and the second multi-hypothesis information also includes parameters of the second division mode.
一种可能的实现方式下,该第一标识和该第二标识是同一标记位的不同取值。In a possible implementation manner, the first identifier and the second identifier are different values of the same flag bit.
一种可能的实现方式下,该第一划分方式为三角形划分,该第一划分方式的参数指示该三角形划分的划分方向,该第二划分方式为方形划分,该第二划分方式的参数指示该方形划分的加权系数。当然,也可以该第二划分方式为三角形划分,该第二划分方式的参数指示该三角形划分的划分方向,该第一划分方式为方形划分,该第一划分方式的参数指示该方形划分的加权系数。In a possible implementation manner, the first division method is triangle division, and the parameter of the first division method indicates the division direction of the triangle division; the second division method is square division, and the parameter of the second division method indicates the The weighting factor for the square division. Of course, it is also possible that the second division method is triangular division, the parameter of the second division method indicates the division direction of the triangle division, the first division method is square division, and the parameter of the first division method indicates the weight of the square division coefficient.
应当理解,第一划分方式和第二划分方式是不同的划分方式,每一种划分方式都是用来划分多个假设的预测图像块的,也就是用来划分原始假设的预测图像块和额外假设的预测图像块。关于多假设方法的多种划分预测图像块的具体方法和方式,可以参考JVET-K0144提案(三角形划分)和JVET-K0257提案(方形划分)的内容。It should be understood that the first division method and the second division method are different division methods, and each division method is used to divide a plurality of assumed predicted image blocks, that is, used to divide the original assumed predicted image block and the additional Hypothetical predicted image blocks. For the specific methods and ways of dividing and predicting image blocks in the multi-hypothesis method, please refer to the content of JVET-K0144 proposal (triangular division) and JVET-K0257 proposal (square division).
一种可能的实现方式下,该第一划分方式为三角形划分,该第一划分方式的参数指示该三角形划分的划分方向,或者该第一划分方式为方形划分,该第一划分方式的参数指示该方形划分的加权系数。In a possible implementation manner, the first division method is triangle division, and the parameter of the first division method indicates the division direction of the triangle division, or the first division method is square division, and the parameter of the first division method indicates The weighting factor for this square division.
606:根据该当前待解码图像块的多假设编码的运动信息进行运动补偿,以得到多个假设的预测图像块。606: Perform motion compensation according to the multi-hypothesis encoded motion information of the image block currently to be decoded, so as to obtain multiple hypothetical prediction image blocks.
604和606对应下文的步骤2。604 and 606 correspond to step 2 below.
608:根据该第一标识和该第一划分方式的参数,使用该第一划分方式处理该多个假设的预测图像块,以得到该当前待解码图像块的预测图像块。608: According to the first identifier and the parameters of the first division mode, use the first division mode to process the multiple hypothetical predicted image blocks to obtain a predicted image block of the current image block to be decoded.
608对应下文的步骤3。当前待解码图像块的预测图像块,也可以称为当前待解码图像块的最终帧间预测图像。608 corresponds to step 3 below. The predicted image block of the current image block to be decoded may also be referred to as the final inter-frame predicted image of the current image block to be decoded.
一种可能的实现方式下,该方法还包括:根据该第一多假设信息的该运动信息索引,从该当前待解码图像块的候选运动信息列表中获取该当前待解码图像块的多假设运动信息,该当前待解码图像块的多假设运动信息包括原始假设的运动信息和额外假设的运动信息。In a possible implementation manner, the method further includes: according to the motion information index of the first multi-hypothesis information, acquiring the multi-hypothesis motion of the current image block to be decoded from the candidate motion information list of the current image block to be decoded Information, the multi-hypothesis motion information of the current image block to be decoded includes the motion information of the original hypothesis and the motion information of the additional hypothesis.
一种可能的实现方式下,该第一多假设信息的运动信息索引包括第一索引和第二索引,该根据该第一多假设信息的该运动信息索引,从该当前待解码图像块的候选运动信息列表中获取该当前待解码图像块的多假设运动信息,包括:根据该第一索引,从该当前图像块的第一候选运动信息列表中获取该原始假设的运动信息,以及根据该第二索引,从该当前图像块的第二候选运动信息列表中获取该额外假设的运动信息。In a possible implementation manner, the motion information index of the first multi-hypothesis information includes a first index and a second index, and according to the motion information index of the first multi-hypothesis information, the candidate of the current image block to be decoded Obtaining the multi-hypothesis motion information of the current image block to be decoded from the motion information list includes: obtaining the motion information of the original hypothesis from the first candidate motion information list of the current image block according to the first index, and obtaining the motion information of the original hypothesis according to the first index The second index is to obtain the motion information of the additional hypothesis from the second candidate motion information list of the current image block.
这样,采用上述的方法,由于码流中携带指示多假设方法的划分标识,解码端可以确定具体在多假设方法中使用那一种划分方式预测图像,也就是说,对不同的图像块,可使用不同的划分方式来得到图像块的预测块,这样图像块能使用更适合自身特点的划分方式,从而提高了图像预测的效率,降低了解码的时间。In this way, using the above method, since the code stream carries the division identifier indicating the multi-hypothesis method, the decoder can determine which division method to use in the multi-hypothesis method to predict the image, that is, for different image blocks, it can be Different division methods are used to obtain the prediction block of the image block, so that the image block can use a division method more suitable for its own characteristics, thereby improving the efficiency of image prediction and reducing the decoding time.
下面具体描述使用图6对应的图像预测方法,得到解码的数据块的过程。关于上述图像预测方法的进一步实施细节,可以参考下文的详细描述。以下过程中,当前块就是前文描述的当前图像块。The process of obtaining a decoded data block by using the image prediction method corresponding to FIG. 6 is described in detail below. For further implementation details of the above image prediction method, reference may be made to the detailed description below. In the following process, the current block is the current image block described above.
该解码过程包括步骤1至步骤4。正在执行解码处理的块称为当前块。The decoding process includes steps 1 to 4. A block on which decoding processing is being performed is called a current block.
步骤1:解析当前块的码流,获得当前块的预测模式信息Step 1: Parse the code stream of the current block to obtain the prediction mode information of the current block
具体地说,当前块的模式信息包括且不仅限于merge、skip、inter模式信息、多假设模式信息等编码信息。Specifically, the mode information of the current block includes but not limited to merge, skip, inter mode information, multi-hypothesis mode information and other coding information.
步骤2:根据当前块的预测模式信息,获取当前块的运动信息;Step 2: Obtain the motion information of the current block according to the prediction mode information of the current block;
若根据多假设模式信息得到当前块采用多假设编码模式,则获得该当前块的多假设信息。If it is obtained from the multi-hypothesis mode information that the current block adopts the multi-hypothesis coding mode, the multi-hypothesis information of the current block is obtained.
具体的包括以下内容:Specifically include the following:
生成融合运动信息候选列表。具体包括:将与当前块的空间候选和时域候选加入当前块的融合运动信息候选列表中,其方法与HEVC中的方法相同。如图1所示,空间融合候选包含A0、A1、B0、B1、和B2,时域融合候选包括T0和T1。在VTM中,时域融合候选也包括自适应时域运动矢量预测(ATMVP)技术提供的候选。本发明不涉及生成融合运动信息候选列表相关的过程,该过程可采用HEVC或者VTM中的方法进行,也可采用其他生成融合运动信息候选列表的方法,例如JVET-K0257提案中的方法。Generate a candidate list of fused motion information. Specifically, it includes: adding the spatial candidate and the temporal candidate of the current block to the fusion motion information candidate list of the current block, and the method is the same as that in HEVC. As shown in FIG. 1 , spatial fusion candidates include A0, A1, B0, B1, and B2, and temporal fusion candidates include T0 and T1. In VTM, temporal fusion candidates also include candidates provided by Adaptive Temporal Motion Vector Prediction (ATMVP) techniques. The present invention does not relate to the process related to generating the fusion motion information candidate list. This process can be carried out by using methods in HEVC or VTM, or other methods for generating fusion motion information candidate lists, such as the method in the JVET-K0257 proposal.
然后获取两个假设的运动信息以及多假设运动补偿信息,解码端:根据码流中携带的多假设信息索引,从多假设信息列表(后文也称多假设组合模式和运动信息的组合列表)确定当前块对应的多假设信息。多假设信息列表中每一个多假设信息都包含:运动索引,具体是第一假设(也就是前文的原始假设)的融合运动信息候选列表索引和第二假设(也就是前文的额外假设)的融合运动信息候选列表索引,划分模式标识(也就是前文的第一标识或者第二标识)和划分模式信息(也即是前文的第一划分方式的参数或者第二划分方式的参数)。Then obtain the motion information of two hypotheses and the multi-hypothesis motion compensation information, the decoding end: according to the multi-hypothesis information index carried in the code stream, from the multi-hypothesis information list (hereinafter also referred to as the combination list of multi-hypothesis combination mode and motion information) Determine the multi-hypothesis information corresponding to the current block. Each multi-hypothesis information in the multi-hypothesis information list includes: motion index, specifically the fusion of the fusion motion information candidate list index of the first hypothesis (that is, the original hypothesis above) and the second hypothesis (that is, the additional hypothesis above) The motion information candidate list index, the division mode identifier (that is, the first identifier or the second identifier above) and the division mode information (that is, the parameter of the first division method or the parameter of the second division method above).
根据当前块对应的多假设信息中的第一假设的融合运动信息候选列表索引从融合运动信息候选列表中确认第一假设的运动信息。根据当前块对应的多假设信息中的第二假设的融合运动信息候选列表索引从融合运动信息候选列表中确认第二假设的运动信息。其中,划分模式标识用于指示划分模式为三角形划分或者方形划分,在划分模式标识指示划分模式为三角形划分时,该划分模式信息指示三角形划分模式的划分方向;在划分模式标识指示划分模式为方形划分时,该划分模式信息指示方形划分的加权系数。The motion information of the first hypothesis is confirmed from the fusion motion information candidate list according to the fusion motion information candidate list index of the first hypothesis in the multi-hypothesis information corresponding to the current block. The motion information of the second hypothesis is confirmed from the fusion motion information candidate list according to the fusion motion information candidate list index of the second hypothesis in the multi-hypothesis information corresponding to the current block. Wherein, the division mode identification is used to indicate that the division mode is triangular division or square division. When the division mode identification indicates that the division mode is triangular division, the division mode information indicates the division direction of the triangular division mode; when the division mode identification indicates that the division mode is square When dividing, the division mode information indicates the weighting coefficient of the square division.
其中,划分模式标识用于指示划分模式为三角形划分或者方形划分,在划分模式标识指示划分模式为三角形划分时,该划分模式信息指示三角形划分模式的划分方向;在划分模式标识指示划分模式为方形划分时,该划分模式信息指示方形划分的加权系数。Wherein, the division mode identification is used to indicate that the division mode is triangular division or square division. When the division mode identification indicates that the division mode is triangular division, the division mode information indicates the division direction of the triangular division mode; when the division mode identification indicates that the division mode is square When dividing, the division mode information indicates the weighting coefficient of the square division.
多假设信息列表,即combination[],也就是包含但不仅限于以下示例,其中一个示例中包括多个组合,其中每个组合combination都包括{三角形划分模式或者正方形划分模式的参数,第一假设的融合运动信息候选列表索引,第二假设的融合运动信息候选列表索引,划分模式标记位}。当然,本申请不限定每个组合中,这四个参数的先后顺序,即未列出的示例中,指示的信息的顺序可能不同。The multi-hypothesis information list, that is, combination[], includes but is not limited to the following examples, one of which includes multiple combinations, and each combination combination includes {parameters of triangle division mode or square division mode, the first hypothesis fused motion information candidate list index, fused motion information candidate list index of the second assumption, division mode flag}. Of course, the present application does not limit the sequence of these four parameters in each combination, that is, the sequence of indicated information may be different in examples not listed.
本申请中,方形划分时,第一假设的融合运动信息候选列表索引和第二假设的融合运动信息候选列表索引使用预设的索引组合,包括但不限于index,index+1的组合,也包括index+m,index+n的组合,其中,m和n都小于融合运动信息候选列表的长度,且m不等于n.以及,由于三角形划分的参数列表中,保存有多种具体实现方式,例如可以是40种左右,可随机选取或者指定一部分实现方式,作为本申请描述的多假设信息列表中,三角形划分的参数。In this application, when the square is divided, the first hypothetical fused motion information candidate list index and the second hypothetical fused motion information candidate list index use a preset index combination, including but not limited to the combination of index, index+1, and also includes The combination of index+m, index+n, where m and n are both less than the length of the fusion motion information candidate list, and m is not equal to n. And, because the triangulation parameter list saves a variety of specific implementation methods, for example There can be about 40 types, and a part of implementation methods can be randomly selected or specified as parameters for triangulation in the multi-hypothesis information list described in this application.
示例一到四中的每个,都包括10条多假设信息。Each of Examples 1 to 4 includes 10 pieces of multi-hypothetical information.
示例一:Example one:
示例二:Example two:
示例三:Example three:
示例四:Example four:
如果所有待解码的图像块都只使用三角形划分,划分方式比较多(40多种),且三角形与方形相比,处理复杂度高,导致得到当前块的预测图像块效率较为低下。而如果所有待解码的图像块都只使用方形划分模式,额外假设的运动信息组合方式有限,且原有假设和额外假设都使用方形划分,多假设融合的方式比较单一,编解码效果不好。而本申请中,一个combination只需10个具体的划分方式(一条多假设信息对应一种划分方式),即可满足编解码需求,比单用三角形划分降低了复杂度,还可以保障解码效率和解码的性能。If all image blocks to be decoded are only divided into triangles, there are many division methods (more than 40 types), and the processing complexity of triangles is higher than that of squares, resulting in low efficiency of obtaining the predicted image block of the current block. However, if all the image blocks to be decoded only use the square division mode, the combination of motion information of the additional hypothesis is limited, and both the original hypothesis and the additional hypothesis use square division, the way of multi-hypothesis fusion is relatively simple, and the encoding and decoding effect is not good. However, in this application, a combination only needs 10 specific division methods (one piece of multi-hypothesis information corresponds to a division method), which can meet the encoding and decoding requirements, which reduces the complexity compared with triangular division alone, and can also ensure decoding efficiency and decoding performance.
而使用本申请的方法,由于码流中携带指示多假设方法的划分标识,解码端可以确定具体在多假设方法中使用那一种划分方式预测图像,也就是说,对不同的图像块,可使用不同的划分方式来得到图像块的预测块,这样图像块能使用更适合自身特点的划分方式,从而提高了图像预测的效率,降低了解码的时间。However, with the method of the present application, since the code stream carries the division identifier indicating the multi-hypothesis method, the decoder can determine which division method to use in the multi-hypothesis method to predict the image, that is, for different image blocks, it can be Different division methods are used to obtain the prediction block of the image block, so that the image block can use a division method more suitable for its own characteristics, thereby improving the efficiency of image prediction and reducing the decoding time.
若根据多假设模式信息得到当前块不采用多假设编码模式,则执行:If the current block does not use the multi-hypothesis coding mode according to the multi-hypothesis mode information, execute:
若当前块为merge/skip模式,生成融合运动信息候选列表。具体包括:将与当前块的空间候选和时域候选加入当前块的融合运动信息候选列表中,其方法与HEVC中的方法相同。如图1所示,空间融合候选包含A0、A1、B0、B1、和B2,时域融合候选包括T0和T1。在VTM中,时域融合候选也包括自适应时域运动矢量预测(ATMVP)技术提供的候选。本发明不涉及生成融合运动信息候选列表相关的过程,该过程可采用HEVC或者VTM中的方法进行,也可采用其他生成融合运动信息候选列表的方法。若当前块为Inter MVP模式,则生成运动矢量预测候选列表,为现有技术,可采用HEVC或者VTM中的方法进行,也可采用其他生成运动矢量预测候选列表的方法,本发明不作限定。If the current block is in merge/skip mode, generate a candidate list of fusion motion information. Specifically, it includes: adding the spatial candidate and the temporal candidate of the current block to the fusion motion information candidate list of the current block, and the method is the same as that in HEVC. As shown in FIG. 1 , spatial fusion candidates include A0, A1, B0, B1, and B2, and temporal fusion candidates include T0 and T1. In VTM, temporal fusion candidates also include candidates provided by Adaptive Temporal Motion Vector Prediction (ATMVP) techniques. The present invention does not relate to the process related to generating the fusion motion information candidate list, which can be carried out by using the method in HEVC or VTM, or other methods for generating the fusion motion information candidate list. If the current block is in the Inter MVP mode, generating a motion vector prediction candidate list is a prior art, and can be carried out by using methods in HEVC or VTM, or other methods for generating a motion vector prediction candidate list, which are not limited by the present invention.
然后获取第一假设的运动信息,解码端:若当前块为merge/skip模式,则根据码流中携带的融合索引确定当前块的运动信息。若当前块为Inter MVP模式,则根据码流中传送的帧间预测方向、参考帧索引、运动矢量预测值索引、运动矢量残差值确定当前块运动信息。Then acquire the motion information of the first hypothesis, and the decoder: if the current block is in the merge/skip mode, determine the motion information of the current block according to the fusion index carried in the code stream. If the current block is in the Inter MVP mode, the motion information of the current block is determined according to the inter-frame prediction direction, reference frame index, motion vector predictor index, and motion vector residual value transmitted in the code stream.
步骤3:根据第一假设和第二假设的运动信息,以及划分模式标识和划分模式信息,进行帧间预测,以得到当前块的预测图像。Step 3: Perform inter-frame prediction according to the motion information of the first hypothesis and the second hypothesis, as well as the division mode identifier and division mode information, to obtain a predicted image of the current block.
其中,根据多假设模式信息得到当前块采用多假设编码模式。Wherein, the current block adopts a multi-hypothesis coding mode obtained according to the multi-hypothesis mode information.
利用第一假设和第二假设的运动信息分别得到第一假设和第二假设的预测图像。解码端:利用第一假设和第二假设的运动信息中的参考帧方向、参考帧序号和运动矢量,从参考帧中定位到第一假设和第二假设的参考块,根据多假设组合模式信息得到第一假设和第二假设的预测块。参考帧方向为前向预测是指当前编码单元从前向参考图像集合中选择一个参考图像获取参考块。参考帧方向为后向预测是指当前编码单元从后向参考图像集合中选择一个参考图像获取参考块。参考帧方向为双向预测是指从前向和后向参考图像集合中各选择一个参考图像获取参考块。当使用双向预测方法时,当前编码单元会存在两个参考块,每个参考块各自需要运动矢量和参考帧索引进行指示。Predicted images of the first hypothesis and the second hypothesis are respectively obtained by using the motion information of the first hypothesis and the second hypothesis. Decoder: Use the reference frame direction, reference frame number and motion vector in the motion information of the first hypothesis and the second hypothesis to locate the reference blocks of the first hypothesis and the second hypothesis from the reference frame, and according to the multi-hypothesis combination mode information The prediction blocks of the first hypothesis and the second hypothesis are obtained. The reference frame direction is forward prediction means that the current coding unit selects a reference image from the forward reference image set to obtain the reference block. The reference frame direction is backward prediction means that the current coding unit selects a reference image from the backward reference image set to obtain the reference block. The direction of the reference frame is bidirectional prediction, which refers to selecting a reference image from the forward and backward reference image sets to obtain the reference block. When the bidirectional prediction method is used, there are two reference blocks in the current coding unit, each of which needs to be indicated by a motion vector and a reference frame index.
然后根据参考块内像素点的像素值确定当前块的预测块内像素点像素值。更具体的,按以下方法之一:Then determine the pixel value of the pixel in the prediction block of the current block according to the pixel value of the pixel in the reference block. More specifically, do one of the following:
方法一:当使用三角形多假设模式时,根据多假设方向获得第一假设和第二假设的三角形预测块,使用预设的加权系数从第一假设和第二假设生成最终预测图像,加权系数可以参照JVET-K0144中进行,本发明不做限定。当使用方形多假设模式时,获得第一假设和第二假设的方形预测块,使用预设的加权系数从第一假设和第二假设生成最终预测图像,加权系数可以参照JVET-K0257中进行,本发明不做限定。Method 1: When using the triangular multi-hypothesis mode, obtain the triangular prediction blocks of the first hypothesis and the second hypothesis according to the multi-hypothesis direction, and use the preset weighting coefficients to generate the final prediction image from the first hypothesis and the second hypothesis. The weighting coefficients can be Reference is made to JVET-K0144, and the present invention is not limited thereto. When using the square multi-hypothesis mode, obtain the square prediction blocks of the first hypothesis and the second hypothesis, and use the preset weighting coefficients to generate the final prediction image from the first hypothesis and the second hypothesis. The weighting coefficients can be carried out by referring to JVET-K0257, The present invention is not limited.
方法一:当使用三角形多假设模式时,根据多假设方向获得第一假设和第二假设的方形预测块,使用预设的加权系数从第一假设和第二假设生成最终预测图像,加权系数可以参照JVET-K0144中使用三角形加权系数矩阵进行,本发明不做限定。当使用方形多假设模式时,获得第一假设和第二假设的方形预测块,使用预设的加权系数从第一假设和第二假设生成最终预测图像,加权系数可以参照JVET-K0257中进行,本发明不做限定。Method 1: When using the triangular multi-hypothesis mode, obtain the square prediction blocks of the first hypothesis and the second hypothesis according to the multi-hypothesis direction, and use the preset weighting coefficients to generate the final prediction image from the first hypothesis and the second hypothesis. The weighting coefficients can be Refer to JVET-K0144 using a triangular weighting coefficient matrix, which is not limited in the present invention. When using the square multi-hypothesis mode, obtain the square prediction blocks of the first hypothesis and the second hypothesis, and use the preset weighting coefficients to generate the final prediction image from the first hypothesis and the second hypothesis. The weighting coefficients can refer to JVET-K0257. The present invention is not limited.
若根据多假设模式信息得到当前块不采用多假设编码模式,则利用第一假设的运动信息,进行帧间预测,得到当前块的预测图像。If it is obtained from the multi-hypothesis mode information that the current block does not adopt the multi-hypothesis coding mode, the motion information of the first hypothesis is used to perform inter-frame prediction to obtain a predicted image of the current block.
解码端:利用参考帧方向、参考帧序号和运动矢量,从参考帧中得到预测块。参考帧方向为前向预测是指当前编码单元从前向参考图像集合中选择一个参考图像获取参考块。参考帧方向为后向预测是指当前编码单元从后向参考图像集合中选择一个参考图像获取参考块。参考帧方向为双向预测是指从前向和后向参考图像集合中各选择一个参考图像获取参考块。当使用双向预测方法时,当前编码单元会存在两个参考块,每个参考块各自需要运动矢量和参考帧索引进行指示。然后根据参考块内像素点的像素值确定当前块的预测块内像素点像素值。以上可采用HEVC或者VTM中的方法进行,也可采用其他生成运动矢量预测候选列表的方法,本发明不作限定。Decoder: Obtain the prediction block from the reference frame by using the reference frame direction, reference frame number and motion vector. The reference frame direction is forward prediction means that the current coding unit selects a reference image from the forward reference image set to obtain the reference block. The reference frame direction is backward prediction means that the current coding unit selects a reference image from the backward reference image set to obtain the reference block. The direction of the reference frame is bidirectional prediction, which refers to selecting a reference image from the forward and backward reference image sets to obtain the reference block. When the bidirectional prediction method is used, there are two reference blocks in the current coding unit, each of which needs to be indicated by a motion vector and a reference frame index. Then determine the pixel value of the pixel in the prediction block of the current block according to the pixel value of the pixel in the reference block. The method in HEVC or VTM can be used for the above, and other methods for generating a motion vector prediction candidate list can also be used, which is not limited in the present invention.
步骤4:将当前块的最终帧间预测图像(也就是前文的当前待解码图像块的预测图像块)与残差图像相加,得到当前块的重建图像;Step 4: Add the final inter-frame prediction image of the current block (that is, the prediction image block of the current image block to be decoded above) and the residual image to obtain the reconstructed image of the current block;
解码端:如果当前块存在残差,则将残差信息和预测图像相加,获得当前块的重建图像;如果当前块没有残差,则预测图像为当前块的重建图像。Decoder: If there is a residual in the current block, add the residual information and the predicted image to obtain the reconstructed image of the current block; if there is no residual in the current block, the predicted image is the reconstructed image of the current block.
上述过程为现有技术,例如可采用与HEVC或者VTM相同的方法,也可采用其他运动补偿、图像重建方法,本发明不做限定。The above process is an existing technology, for example, the same method as HEVC or VTM can be used, and other motion compensation and image reconstruction methods can also be used, which is not limited in the present invention.
本申请还描述一种图像预测设备,该设备可以用于执行上述的图像预测方法。The present application also describes an image prediction device, which can be used to implement the above image prediction method.
一种实现方式下,该图像预测设备包括:存储器,用于存储码流形式的视频数据,该视频数据包括一个或多个图像块;视频解码器,用于执行上述各种的图像预测方法(例如图6对应的)和解码方法,一种实现方式下,视频解码器,用于解析码流获取该当前待解码图像块的多假设信息索引;根据该多假设信息索引,从多假设信息列表中,得到该当前图像块对应的第一多假设信息,该第一多假设信息包括运动信息索引和第一标识,该第一多假设信息的该运动信息索引指示该当前待解码图像块的多假设运动信息,该第一标识指示多假设方法的第一划分方式,该第一多假设信息还包括该第一划分方式的参数;根据该当前待解码图像块的多假设编码的运动信息进行运动补偿,以得到多个假设的预测图像块;根据该第一标识和该第一划分方式的参数,使用该第一划分方式处理该多个假设的预测图像块,以得到该当前待解码图像块的预测图像块。In an implementation manner, the image prediction device includes: a memory for storing video data in the form of a code stream, the video data including one or more image blocks; a video decoder for executing the above-mentioned various image prediction methods ( For example, corresponding to FIG. 6 ) and the decoding method, in one implementation mode, the video decoder is used to analyze the code stream to obtain the multi-hypothesis information index of the current image block to be decoded; according to the multi-hypothesis information index, from the multi-hypothesis information list In the method, the first multi-hypothesis information corresponding to the current image block is obtained, the first multi-hypothesis information includes a motion information index and a first identifier, and the motion information index of the first multi-hypothesis information indicates the number of the current image block to be decoded Hypothesis motion information, the first identifier indicates the first division method of the multi-hypothesis method, and the first multi-hypothesis information also includes the parameters of the first division mode; perform motion according to the motion information of the multi-hypothesis encoding of the current image block to be decoded Compensating to obtain a plurality of hypothetical predicted image blocks; according to the first identifier and the parameters of the first division method, using the first division method to process the plurality of hypothetical predicted image blocks to obtain the current image block to be decoded predicted image blocks.
当然,视频解码器还可以执行图6对应的方法的其他各种实现方式,此处不再赘述。另外,显然,视频解码器可以由图5中的处理器运行图5中的存储器中的代码实现。Certainly, the video decoder may also execute various other implementation manners of the method corresponding to FIG. 6 , which will not be repeated here. In addition, obviously, the video decoder can be implemented by the processor in FIG. 5 running the code in the memory in FIG. 5 .
另一种实现方式下,如图7所示,该图像预测设备700包括解析模块701,用于解析码流获取当前待解码图像块的多假设信息索引。In another implementation manner, as shown in FIG. 7 , the image prediction device 700 includes a parsing module 701 for parsing a code stream to obtain a multi-hypothesis information index of the current image block to be decoded.
第一查询模块702,用于根据所述多假设信息索引,从多假设信息列表中,得到所述当前图像块对应的第一多假设信息,所述第一多假设信息包括运动信息索引和第一标识,所述第一多假设信息的所述运动信息索引指示所述当前待解码图像块的多假设运动信息,所述第一标识指示多假设方法的第一划分方式,所述第一多假设信息还包括所述第一划分方式的参数。The first query module 702 is configured to obtain the first multi-hypothesis information corresponding to the current image block from the multi-hypothesis information list according to the multi-hypothesis information index, and the first multi-hypothesis information includes the motion information index and the first multi-hypothesis information An identifier, the motion information index of the first multi-hypothesis information indicates the multi-hypothesis motion information of the current image block to be decoded, the first identifier indicates the first division method of the multi-hypothesis method, and the first multi-hypothesis The assumption information also includes parameters of the first division manner.
运动补偿模块703,用于根据所述当前待解码图像块的多假设编码的运动信息进行运动补偿,以得到多个假设的预测图像块。The motion compensation module 703 is configured to perform motion compensation according to the multi-hypothesis coded motion information of the current image block to be decoded, so as to obtain multiple hypothetical prediction image blocks.
划分处理模块704,用于根据所述第一标识和所述第一划分方式的参数,使用所述第一划分方式处理所述多个假设的预测图像块,以得到所述当前待解码图像块的预测图像块。A division processing module 704, configured to use the first division mode to process the plurality of hypothetical predicted image blocks according to the first identifier and the parameters of the first division mode, so as to obtain the current image block to be decoded predicted image blocks.
上述模块只是示意性划分,实际实施时可以多个模块的功能由一个模块实现。The above-mentioned modules are only schematically divided, and the functions of multiple modules may be realized by one module in actual implementation.
该图像预测设备700可以执行图6对应的方法以及前文各种方法的其他各种实现方式,此处不再赘述。The image prediction device 700 can execute the method corresponding to FIG. 6 and other various implementation manners of the foregoing methods, which will not be repeated here.
使用上述图像预测设备,由于码流中携带指示多假设方法的划分标识,解码端可以确定具体在多假设方法中使用那一种划分方式预测图像,也就是说,对不同的图像块,可使用不同的划分方式来得到图像块的预测块,这样图像块能使用更适合自身特点的划分方式,从而提高了图像预测的效率,降低了解码的时间。Using the above-mentioned image prediction device, since the code stream carries the division identifier indicating the multi-hypothesis method, the decoder can determine which division method to use in the multi-hypothesis method to predict the image, that is, for different image blocks, you can use Different division methods are used to obtain the prediction block of the image block, so that the image block can use a division method more suitable for its own characteristics, thereby improving the efficiency of image prediction and reducing the decoding time.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disc and other media that can store program codes. .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application. Should be covered within the protection scope of this application. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.
Claims (22)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310545957.3A CN116527889A (en) | 2018-09-25 | 2018-09-25 | Image prediction method and device |
| CN201811117183.XA CN110944171B (en) | 2018-09-25 | 2018-09-25 | An image prediction method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811117183.XA CN110944171B (en) | 2018-09-25 | 2018-09-25 | An image prediction method and device |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310545957.3A Division CN116527889A (en) | 2018-09-25 | 2018-09-25 | Image prediction method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110944171A CN110944171A (en) | 2020-03-31 |
| CN110944171B true CN110944171B (en) | 2023-05-09 |
Family
ID=69904947
Family Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811117183.XA Active CN110944171B (en) | 2018-09-25 | 2018-09-25 | An image prediction method and device |
| CN202310545957.3A Pending CN116527889A (en) | 2018-09-25 | 2018-09-25 | Image prediction method and device |
Family Applications After (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310545957.3A Pending CN116527889A (en) | 2018-09-25 | 2018-09-25 | Image prediction method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (2) | CN110944171B (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP7564232B2 (en) | 2020-04-03 | 2024-10-08 | オッポ広東移動通信有限公司 | Inter prediction method, encoder, decoder and storage medium |
| CN113497936B (en) * | 2020-04-08 | 2025-02-18 | Oppo广东移动通信有限公司 | Coding method, decoding method, encoder, decoder and storage medium |
| CN113810696B (en) * | 2020-06-12 | 2024-09-17 | 华为技术有限公司 | Information transmission method, related equipment and system |
| CN117176959B (en) * | 2023-11-02 | 2024-04-09 | 深圳传音控股股份有限公司 | Processing method, processing device and storage medium |
| WO2025242236A1 (en) * | 2025-06-19 | 2025-11-27 | 深圳传音控股股份有限公司 | Image processing method, processing device and storage medium |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| AU2011240486A1 (en) * | 2010-04-14 | 2012-10-11 | Hfi Innovation Inc. | Method for performing localized multihypothesis prediction during video coding of a coding unit, and associated apparatus |
| CN105812819A (en) * | 2015-01-21 | 2016-07-27 | 联发科技股份有限公司 | Method and apparatus for performing hybrid multi-hypothesis motion-compensated prediction in video coding of coding unit |
| CN106658019A (en) * | 2015-10-31 | 2017-05-10 | 华为技术有限公司 | Coding and decoding method and device for reference frame |
| WO2018127188A1 (en) * | 2017-01-06 | 2018-07-12 | Mediatek Inc. | Multi-hypotheses merge mode |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR102344855B1 (en) * | 2010-05-26 | 2021-12-28 | 엘지전자 주식회사 | Method and apparatus for processing a video signal |
| JP6258704B2 (en) * | 2010-11-04 | 2018-01-10 | ジーイー ビデオ コンプレッション エルエルシー | Image coding and decoding supporting block integration and skip mode |
| PL3419290T3 (en) * | 2011-06-30 | 2021-05-31 | JVC Kenwood Corporation | Image coding device, image coding method, image coding program, image decoding device, image decoding method, and image decoding program |
| JP2013145971A (en) * | 2012-01-13 | 2013-07-25 | Jvc Kenwood Corp | Image decoding device, image decoding method, and image decoding program |
| JP5776713B2 (en) * | 2013-03-06 | 2015-09-09 | 株式会社Jvcケンウッド | Image decoding apparatus, image decoding method, image decoding program, receiving apparatus, receiving method, and receiving program |
| CN104769947B (en) * | 2013-07-26 | 2019-02-26 | 北京大学深圳研究生院 | A Multi-hypothesis Motion Compensation Coding Method Based on P Frames |
| CN104717512B (en) * | 2013-12-16 | 2019-07-23 | 浙江大学 | A kind of encoding and decoding method and device for forward double-hypothesis encoding image block |
| JP6036974B2 (en) * | 2015-12-08 | 2016-11-30 | 株式会社Jvcケンウッド | Image encoding device, image encoding method, image encoding program, transmission device, transmission method, and transmission program |
-
2018
- 2018-09-25 CN CN201811117183.XA patent/CN110944171B/en active Active
- 2018-09-25 CN CN202310545957.3A patent/CN116527889A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| AU2011240486A1 (en) * | 2010-04-14 | 2012-10-11 | Hfi Innovation Inc. | Method for performing localized multihypothesis prediction during video coding of a coding unit, and associated apparatus |
| CN105812819A (en) * | 2015-01-21 | 2016-07-27 | 联发科技股份有限公司 | Method and apparatus for performing hybrid multi-hypothesis motion-compensated prediction in video coding of coding unit |
| CN106658019A (en) * | 2015-10-31 | 2017-05-10 | 华为技术有限公司 | Coding and decoding method and device for reference frame |
| WO2018127188A1 (en) * | 2017-01-06 | 2018-07-12 | Mediatek Inc. | Multi-hypotheses merge mode |
Non-Patent Citations (4)
| Title |
|---|
| CE10.1: Combined and multi-hypothesis prediction;Man-Shu Chiang等;《Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11 11th Meeting: Ljubljana, SI, 10–18 July 2018》;第1-6页 * |
| Description of Core Experiment 10: Combined and multi-hypothesis prediction;Chih-Wei Hsu等;《Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11 11th Meeting: Ljubljana, SI, 10–18 July 2018》;第1-8页 * |
| 基于多假设运动补偿预测的边信息改进方法;马力等;《计算机工程》;第37卷(第37期);第248-250页 * |
| 基于自适应采样的多假设预测残差重构算法研究;安文等;《自动化学报》;第43卷(第43期);第2190-2201页 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110944171A (en) | 2020-03-31 |
| CN116527889A (en) | 2023-08-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12273507B2 (en) | Video picture prediction method and apparatus to indicate a maximum length of a first candidate motion vector list | |
| CN115695785B (en) | Image prediction method and device | |
| KR102621958B1 (en) | Candidate motion vector list acquisition method, device, encoder and decoder | |
| CN117596398A (en) | Apparatus and method for inter prediction of geometrically divided blocks of decoding blocks | |
| CN111788833B (en) | Inter-frame prediction method and device and corresponding encoder and decoder | |
| CN111953995A (en) | A method and apparatus for inter-frame prediction | |
| CN110944171B (en) | An image prediction method and device | |
| CN110855998B (en) | Fusion candidate list construction method and device, and fusion candidate list editing/decoding method and device | |
| CN115243048B (en) | Video image decoding and encoding method and device | |
| JP7637633B2 (en) | Picture prediction method and apparatus, and computer-readable storage medium | |
| CN112204962B (en) | Image prediction method, apparatus and computer-readable storage medium | |
| JP2022535859A (en) | Method for constructing MPM list, method for obtaining intra-prediction mode of chroma block, and apparatus | |
| CN110868589A (en) | Inter-frame prediction method, device and encoding/decoding method and device for its application | |
| CN112153389B (en) | Method and device for inter-frame prediction | |
| CN111526362A (en) | Inter-frame prediction method and device | |
| CN113557738B (en) | Video image prediction method and device | |
| CN111010565B (en) | Inter-frame prediction method and device and coding/decoding method and device applied by same | |
| CN112135137B (en) | Video encoder, video decoder and corresponding method | |
| WO2020155791A1 (en) | Inter-frame prediction method and device | |
| US12549711B2 (en) | Video picture prediction method and apparatus | |
| WO2020038357A1 (en) | Fusion candidate list construction method, device and encoding/decoding method and device | |
| CN111726630A (en) | Processing method and device based on triangular prediction unit mode |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |





