HK40022994B - Method and device for decoding video and computer apparatus - Google Patents
Method and device for decoding video and computer apparatus Download PDFInfo
- Publication number
- HK40022994B HK40022994B HK42020012762.9A HK42020012762A HK40022994B HK 40022994 B HK40022994 B HK 40022994B HK 42020012762 A HK42020012762 A HK 42020012762A HK 40022994 B HK40022994 B HK 40022994B
- Authority
- HK
- Hong Kong
- Prior art keywords
- block
- sub
- current block
- size
- video
- Prior art date
Links
Description
通过引用并入本文Incorporated herein by reference
本申请要求于2018年10月1日提交的、申请号为62/739,632、发明名称为"子块合并模式约束的方法"的美国临时申请、以及于2018年10月6日提交的、申请号为62/742,322、发明名称为“对基于子块的合并列表创建进行约束的方法”的美国临时申请、以及于2019年9月3日提交的、申请号为16/559,257、发明名称为“视频编码的方法和装置”的美国申请的优先权,其全部内容通过引用并入本申请中。This application claims priority to U.S. Provisional Application No. 62/739,632, filed on October 1, 2018, entitled “Method for Constraining Sub-Block Merging Modes,” U.S. Provisional Application No. 62/742,322, filed on October 6, 2018, entitled “Method for Constraining Sub-Block-Based Merging List Creation,” and U.S. Application No. 16/559,257, filed on September 3, 2019, entitled “Method and Apparatus for Video Coding,” the entire contents of which are incorporated herein by reference.
技术领域Technical Field
本申请涉及视频编解码技术,特别涉及视频解码的方法和装置、计算机设备。The present application relates to video coding and decoding technology, and in particular to a method and apparatus for video decoding, and computer equipment.
背景技术Background Art
通过具有运动补偿的帧间图片预测技术,可以进行视频编码和解码。未压缩的数字视频可包括一系列图片,每个图片具有例如1920×1080亮度样本及相关色度样本的空间维度。所述系列图片具有固定的或可变的图片速率(也非正式地称为帧率),例如每秒60个图片或60Hz。未压缩的视频具有非常大的比特率要求。例如,每个样本8比特的1080p60 4:2:0的视频(1920x1080亮度样本分辨率,60Hz帧率)要求接近1.5Gbit/s带宽。一小时这样的视频就需要超过600GB的存储空间。Video encoding and decoding are made possible by inter-picture prediction techniques with motion compensation. An uncompressed digital video may comprise a series of pictures, each picture having spatial dimensions of, for example, 1920×1080 luma samples and associated chroma samples. The series of pictures has a fixed or variable picture rate (also informally referred to as a frame rate), for example, 60 pictures per second or 60 Hz. Uncompressed video has very large bitrate requirements. For example, 1080p60 4:2:0 video (1920x1080 luma sample resolution, 60 Hz frame rate) with 8 bits per sample requires close to 1.5 Gbit/s of bandwidth. One hour of such video would require over 600 GB of storage space.
视频编码和解码的一个目的,是通过压缩减少输入视频信号的冗余信息。视频压缩可以帮助降低对上述带宽或存储空间的要求,在某些情况下可降低两个或更多数量级。无损和有损压缩,以及两者的组合均可采用。无损压缩是指从压缩的原始信号中重建原始信号精确副本的技术。当使用有损压缩时,重建信号可能与原始信号不完全相同,但是原始信号和重建信号之间的失真足够小,使得重建信号可用于预期应用。有损压缩广泛应用于视频。容许的失真量取决于应用。例如,相比于电视应用的用户,某些消费流媒体应用的用户可以容忍更高的失真。可实现的压缩比反映出:较高的允许/容许失真可产生较高的压缩比。One goal of video encoding and decoding is to reduce redundant information in the input video signal through compression. Video compression can help reduce the bandwidth or storage space requirements mentioned above, in some cases by two or more orders of magnitude. Both lossless and lossy compression, as well as combinations of the two, can be used. Lossless compression refers to techniques that reconstruct an exact replica of the original signal from a compressed original. When lossy compression is used, the reconstructed signal may not be exactly the same as the original, but the distortion between the original and the reconstructed signal is small enough that the reconstructed signal is usable for the intended application. Lossy compression is widely used in video. The amount of distortion allowed depends on the application. For example, users of some consumer streaming applications may be able to tolerate higher distortion than users of television applications. The achievable compression ratio reflects the fact that higher allowed/tolerable distortion results in higher compression ratios.
运动补偿可以是一种有损压缩技术,且可涉及如下技术:来自先前重建的图片或重建图片一部分(参考图片)的样本数据块在空间上按运动矢量(下文称为MV)指示的方向移位后,用于新重建的图片或图片部分的预测。在某些情况下,参考图片可与当前正在重建的图片相同。MV可具有两个维度X和Y,或者三个维度,其中第三个维度表示使用中的参考图片(后者间接地可为时间维度)。Motion compensation can be a lossy compression technique and may involve using a block of sample data from a previously reconstructed picture or part of a reconstructed picture (reference picture) for prediction of a newly reconstructed picture or part of a picture, after being spatially shifted in the direction indicated by a motion vector (hereinafter MV). In some cases, the reference picture may be the same as the picture currently being reconstructed. The MV may have two dimensions, X and Y, or three dimensions, where the third dimension indicates the reference picture being used (the latter may indirectly be the temporal dimension).
在一些视频压缩技术中,应用于某个样本数据区域的MV可根据其它MV来预测,例如根据与正在重建的区域空间相邻的另一个样本数据区域相关的、且按解码顺序在该MV前面的那些MV。这样做可以大大减少编码MV所需的数据量,从而消除冗余信息并增加压缩量。MV预测可以有效地进行,例如,当对从相机导出的输入视频信号(称为自然视频)进行编码时,存在一种统计上的可能性,即面积大于单个MV适用区域的区域,会朝着类似的方向移动,因此,在某些情况下,可以用邻近区域的MV导出的相似运动矢量进行预测。这导致针对给定区域发现的MV与根据周围MV预测的MV相似或相同,并且在熵编码之后,又可以用比直接编码MV时使用的比特数更少的比特数来表示。在某些情况下,MV预测可以是对从原始信号(即样本流)导出的信号(即MV)进行无损压缩的示例。在其它情况下,MV预测本身可能是有损的,例如由于根据几个周围MV计算预测值时产生的取整误差。In some video compression techniques, the MV applied to a region of sample data can be predicted based on other MVs, such as those associated with another region of sample data that is spatially adjacent to the region being reconstructed and that precedes the MV in decoding order. This can significantly reduce the amount of data required to encode the MV, thereby eliminating redundant information and increasing compression. MV prediction can be effective, for example, when encoding an input video signal derived from a camera (referred to as natural video). There is a statistical probability that regions larger than the region to which a single MV applies will move in a similar direction. Therefore, in some cases, similar motion vectors derived from MVs in neighboring regions can be used for prediction. This results in the MV discovered for a given region being similar or identical to the MV predicted from surrounding MVs and, after entropy coding, can be represented using fewer bits than would be used if the MV were encoded directly. In some cases, MV prediction can be an example of lossless compression of a signal (i.e., an MV) derived from the original signal (i.e., a sample stream). In other cases, MV prediction can itself be lossy, for example due to rounding errors when calculating the predicted value based on several surrounding MVs.
H.265/HEVC(ITU-T Rec.H.265,“高效视频编码”,2016年12月)描述了各种MV预测机制。在H.265所提供的多种MV预测机制中,本文描述的是一种下文称为“空间合并”的技术。H.265/HEVC (ITU-T Rec. H.265, “High Efficiency Video Coding”, December 2016) describes various MV prediction mechanisms. Among the various MV prediction mechanisms provided by H.265, this document describes a technique hereinafter referred to as “spatial merging”.
发明内容Summary of the Invention
本申请实施例提供了视频解码的方法和装置、计算机设备,旨在解决当图片内的区域包括大量小编码块时,使用基于子块的合并模式处理这些小编码块造成的硬件实现成本过高的问题。The embodiments of the present application provide a method and apparatus for video decoding, and a computer device, which aim to solve the problem of excessively high hardware implementation costs caused by using a sub-block-based merging mode to process a large number of small coding blocks when an area within a picture includes these small coding blocks.
本申请的实施例提供了一种视频解码的方法。该方法可以包括:An embodiment of the present application provides a method for video decoding. The method may include:
接收图片中的当前块;Receive the current block in the image;
确定所述当前块的尺寸是否小于或等于尺寸阈值;determining whether a size of the current block is less than or equal to a size threshold;
当所述当前块的尺寸小于或等于所述尺寸阈值时,禁用一种或多种类型的基于子块的合并候选解码所述当前块;当所述当前块的尺寸大于所述尺寸阈值时,接收第一标志,所述第一标志指示所述基于子块的合并候选列表是否用于解码所述当前块。When the size of the current block is less than or equal to the size threshold, disabling one or more types of sub-block based merge candidate decoding of the current block; when the size of the current block is greater than the size threshold, receiving a first flag indicating whether the sub-block based merge candidate list is used to decode the current block.
本申请的实施例提供了视频解码的另一种方法。该方法可以包括:An embodiment of the present application provides another method for video decoding. The method may include:
根据基于子块的合并候选列表接收待解码图片中的当前块,所述基于子块的合并候选列表包括一种或多种类型的基于子块的合并候选;receiving a current block in a to-be-decoded picture according to a sub-block based merge candidate list, wherein the sub-block based merge candidate list includes one or more types of sub-block based merge candidates;
对于所述一种或多种类型的基于子块的合并候选中的每一种,确定所述当前块的尺寸是否小于或等于与该种类型对应的尺寸阈值;以及For each of the one or more types of sub-block based merge candidates, determining whether a size of the current block is less than or equal to a size threshold corresponding to the type; and
当所述当前块的尺寸小于或等于所述对应的尺寸阈值时,禁用所述该种类型的基于子块的合并候选解码所述当前块;当所述当前块的尺寸大于所述对应的尺寸阈值时,接收第一标志,所述第一标志指示所述基于子块的合并候选列表是否用于解码所述当前块。When the size of the current block is less than or equal to the corresponding size threshold, disabling the sub-block based merge candidate list of the type for decoding the current block; when the size of the current block is greater than the corresponding size threshold, receiving a first flag indicating whether the sub-block based merge candidate list is used for decoding the current block.
本申请的实施例还提供了一种视频解码的装置,包括:An embodiment of the present application further provides a video decoding apparatus, comprising:
接收模块,用于接收图片中的当前块;A receiving module, configured to receive a current block in the image;
确定模块,用于确定所述当前块的尺寸是否小于或等于尺寸阈值;以及a determining module, configured to determine whether the size of the current block is less than or equal to a size threshold; and
处理模块,用于当所述当前块的尺寸小于或等于尺寸阈值时,禁用一种或多种类型的基于子块的合并候选解码所述当前块;当所述当前块的尺寸大于所述尺寸阈值时,接收第一标志,所述第一标志指示所述基于子块的合并候选列表是否用于解码所述当前块。A processing module is configured to disable one or more types of sub-block based merge candidate lists for decoding the current block when the size of the current block is less than or equal to a size threshold; and receive a first flag when the size of the current block is greater than the size threshold, the first flag indicating whether the sub-block based merge candidate list is used for decoding the current block.
本申请的实施例还提供了一种视频解码的装置,包括:An embodiment of the present application further provides a video decoding apparatus, comprising:
块接收模块,用于根据基于子块的合并候选列表接收待解码图片中的当前块,所述基于子块的合并候选列表包括一种或多种类型的基于子块的合并候选;a block receiving module, configured to receive a current block in a to-be-decoded picture according to a sub-block based merge candidate list, wherein the sub-block based merge candidate list includes one or more types of sub-block based merge candidates;
尺寸确定模块,用于对于所述一种或多种类型的基于子块的合并候选中的每一种,确定所述当前块的尺寸是否小于或等于与该种类型对应的尺寸阈值;以及a size determination module configured to determine, for each of the one or more types of sub-block-based merge candidates, whether a size of the current block is less than or equal to a size threshold corresponding to the type; and
块处理模块,用于当所述当前块的尺寸小于或等于所述对应的尺寸阈值时,禁用所述该种类型的基于子块的合并候选解码所述当前块;当所述当前块的尺寸大于所述对应的尺寸阈值时,接收第一标志,所述第一标志指示所述基于子块的合并候选列表是否用于解码所述当前块。a block processing module, configured to, when the size of the current block is less than or equal to the corresponding size threshold, disable the sub-block-based merge candidate list of the type for decoding the current block; and, when the size of the current block is greater than the corresponding size threshold, receive a first flag indicating whether the sub-block-based merge candidate list is used for decoding the current block.
本申请的实施例还提供了一种计算机设备,所述设备包括一个或多个处理器和一个或多个存储器,所述一个或多个存储器中存储有至少一条指令,所述至少一条指令由所述一个或多个处理器加载并执行以实现如上所述的视频解码的方法。An embodiment of the present application also provides a computer device, which includes one or more processors and one or more memories, wherein the one or more memories store at least one instruction, and the at least one instruction is loaded and executed by the one or more processors to implement the video decoding method as described above.
在本申请的实施例中,通过禁用某种类型的基于子块的合并候选解码当前块,可以避免修剪子块合并列表可能导致的高昂的计算成本,从而解决当图片内的区域包括大量小编码块时,使用基于子块的合并模式处理这些小编码块造成的硬件实现成本过高的问题。In an embodiment of the present application, by disabling a certain type of sub-block based merge candidate decoding of the current block, the high computational cost that may be caused by pruning the sub-block merge list can be avoided, thereby solving the problem of excessive hardware implementation cost caused by using a sub-block based merge mode to process these small coding blocks when the area within the picture includes a large number of small coding blocks.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
根据以下详细描述和附图,所公开的主题的其他特征、性质和各种优点将进一步明确,其中:Other features, properties, and various advantages of the disclosed subject matter will become further apparent from the following detailed description and accompanying drawings, in which:
图1是根据一实施例的当前块及其周围空间合并候选的示意图。FIG1 is a schematic diagram of a current block and its surrounding spatial merging candidates according to an embodiment.
图2是根据一实施例的通信系统的简化框图的示意图。FIG2 is a schematic diagram of a simplified block diagram of a communication system according to an embodiment.
图3是根据另一实施例的通信系统的简化框图的示意图。FIG3 is an illustration of a simplified block diagram of a communication system according to another embodiment.
图4是根据一实施例的解码器的简化框图的示意图。FIG4 is a schematic diagram of a simplified block diagram of a decoder according to an embodiment.
图5是根据一实施例的编码器的简化框图的示意图。FIG5 is a schematic diagram of a simplified block diagram of an encoder according to an embodiment.
图6是根据另一实施例的编码器的框图。FIG6 is a block diagram of an encoder according to another embodiment.
图7是根据另一实施例的解码器的框图。FIG7 is a block diagram of a decoder according to another embodiment.
图8是根据一实施例的基于子块的时间运动矢量预测(SbTMVP)模式的编码过程的示意图。FIG8 is a diagram illustrating an encoding process of a sub-block based temporal motion vector prediction (SbTMVP) mode according to an embodiment.
图9A至图9B是根据一实施例的平面运动矢量(MV)预测过程的示意图。9A and 9B are diagrams illustrating a planar motion vector (MV) prediction process according to an embodiment.
图10是根据一实施例的空时运动矢量预测(STMVP)模式的过程的示意图。FIG10 is a diagram illustrating a process of a spatio-temporal motion vector prediction (STMVP) mode according to an embodiment.
图11至图13是根据一些实施例的语法表。11-13 are syntax tables according to some embodiments.
图14是根据一些实施例的禁用一种或多种类型的基于子块的合并候选的过程的示意图。FIG14 is a diagram illustrating a process of disabling one or more types of sub-block based merge candidates according to some embodiments.
图15是根据一些实施例的禁用某种类型的基于子块的合并候选的过程的示意图。FIG15 is a diagram illustrating a process of disabling certain types of sub-block based merge candidates according to some embodiments.
图16是根据一实施例的计算机系统的示意图。FIG16 is a schematic diagram of a computer system according to an embodiment.
具体实施方式DETAILED DESCRIPTION
参照图1,当前块(101)包括编码器在运动搜索过程中发现的样本,所述样本可以根据空间移动了相同大小的先前块进行预测。不直接对该MV进行编码,而是通过使用与五个周围样本中的任何一个相关联的MV,从与一个或多个参考图片相关联的元数据中导出该MV,例如从最近的(按解码顺序)参考图片中导出该MV。其中,五个周围样本分别用A0、A1和B0、B1、B2(分别为102到106)表示。在H.265中,MV预测可使用相邻块正在使用的同一参考图片的预测值。1 , the current block (101) includes samples found by the encoder during motion search that can be predicted from a previous block that has been spatially shifted by the same amount. This MV is not encoded directly, but is derived from metadata associated with one or more reference pictures, such as the most recent (in decoding order) reference picture, using the MV associated with any of the five surrounding samples, denoted by A0, A1 and B0, B1, B2 (102 to 106 respectively). In H.265, MV prediction can use prediction values from the same reference picture being used by neighboring blocks.
I.视频编码编码器和解码器I. Video Coding Encoders and Decoders
图2是根据本申请公开的实施例的通信系统(200)的简化框图。通信系统(200)包括多个终端装置,所述终端装置可通过例如网络(250)彼此通信。举例来说,通信系统(200)包括通过网络(250)互连的第一终端装置(210)和第二终端装置(220)。在图2的实施例中,第一终端装置(210)和第二终端装置(220)执行单向数据传输。举例来说,第一终端装置(210)可对视频数据(例如由终端装置(210)采集的视频图片流)进行编码以通过网络(250)传输到第二端装置(220)。已编码的视频数据以一个或多个已编码视频码流形式传输。第二终端装置(220)可从网络(250)接收已编码视频数据,对已编码视频数据进行解码以恢复视频数据,并根据恢复的视频数据显示视频图片。单向数据传输在媒体服务等应用中是较常见的。FIG2 is a simplified block diagram of a communication system (200) according to an embodiment disclosed in the present application. The communication system (200) includes a plurality of terminal devices, which can communicate with each other via, for example, a network (250). For example, the communication system (200) includes a first terminal device (210) and a second terminal device (220) interconnected via the network (250). In the embodiment of FIG2 , the first terminal device (210) and the second terminal device (220) perform unidirectional data transmission. For example, the first terminal device (210) can encode video data (e.g., a video picture stream collected by the terminal device (210)) for transmission to the second terminal device (220) via the network (250). The encoded video data is transmitted in the form of one or more encoded video code streams. The second terminal device (220) can receive the encoded video data from the network (250), decode the encoded video data to recover the video data, and display the video picture based on the recovered video data. Unidirectional data transmission is more common in applications such as media services.
在另一实施例中,通信系统(200)包括执行已编码视频数据的双向传输的第三终端装置(230)和第四终端装置(240),所述双向传输可例如在视频会议期间发生。对于双向数据传输,第三终端装置(230)和第四终端装置(240)中的每个终端装置可对视频数据(例如由终端装置采集的视频图片流)进行编码,以通过网络(250)传输到第三终端装置(230)和第四终端装置(240)中的另一终端装置。第三终端装置(230)和第四终端装置(240)中的每个终端装置还可接收由第三终端装置(230)和第四终端装置(240)中的另一终端装置传输的已编码视频数据,且可对所述已编码视频数据进行解码以恢复视频数据,且可根据恢复的视频数据在可访问的显示装置上显示视频图片。In another embodiment, a communication system (200) includes a third terminal device (230) and a fourth terminal device (240) that perform bidirectional transmission of encoded video data, which can occur, for example, during a video conference. For bidirectional data transmission, each of the third terminal device (230) and the fourth terminal device (240) can encode video data (e.g., a video picture stream collected by the terminal device) for transmission to the other terminal device of the third terminal device (230) and the fourth terminal device (240) via a network (250). Each of the third terminal device (230) and the fourth terminal device (240) can also receive the encoded video data transmitted by the other terminal device of the third terminal device (230) and the fourth terminal device (240), and can decode the encoded video data to restore the video data, and can display the video picture on an accessible display device based on the restored video data.
在图2的实施例中,第一终端装置(210)、第二终端装置(220)、第三终端装置(230)和第四终端装置(240)可为服务器、个人计算机和智能电话,但本申请公开的原理可不限于此。本申请公开的实施例适用于膝上型计算机、平板电脑、媒体播放器和/或专用视频会议设备。网络(250)表示在第一终端装置(210)、第二终端装置(220)、第三终端装置(230)和第四终端装置(240)之间传送已编码视频数据的任何数目的网络,包括例如有线(连线的)和/或无线通信网络。通信网络(250)可在电路交换和/或分组交换信道中交换数据。该网络可包括电信网络、局域网、广域网和/或互联网。出于本申请的目的,除非在下文中有所解释,否则网络(250)的架构和拓扑对于本申请公开的操作来说可能是无关紧要的。In the embodiment of FIG2 , the first terminal device (210), the second terminal device (220), the third terminal device (230) and the fourth terminal device (240) may be servers, personal computers and smart phones, but the principles disclosed in the present application may not be limited thereto. The embodiments disclosed in the present application are applicable to laptop computers, tablet computers, media players and/or dedicated video conferencing equipment. The network (250) represents any number of networks that transmit encoded video data between the first terminal device (210), the second terminal device (220), the third terminal device (230) and the fourth terminal device (240), including, for example, wired (wired) and/or wireless communication networks. The communication network (250) may exchange data in circuit switching and/or packet switching channels. The network may include a telecommunications network, a local area network, a wide area network and/or the Internet. For the purposes of the present application, unless otherwise explained below, the architecture and topology of the network (250) may be irrelevant to the operations disclosed in the present application.
作为实施例,图3示出视频编码器和视频解码器在流式传输环境中的放置方式。本申请所公开主题可同等地适用于其它支持视频的应用,包括例如视频会议、数字TV、在包括CD、DVD、存储棒等的数字介质上存储压缩视频等等。As an example, FIG3 shows the placement of a video encoder and a video decoder in a streaming environment. The subject matter disclosed in this application is equally applicable to other video-enabled applications, including, for example, video conferencing, digital TV, storing compressed video on digital media including CDs, DVDs, memory sticks, etc.
流式传输系统可包括采集子系统(313),所述采集子系统可包括数码相机等视频源(301),所述视频源创建未压缩的视频图片流(302)。在实施例中,视频图片流(302)包括由数码相机拍摄的样本。相较于已编码的视频数据(304)(或已编码的视频码流),视频图片流(302)被描绘为粗线以强调高数据量的视频图片流,视频图片流(302)可由电子装置(320)处理,所述电子装置(320)包括耦接到视频源(301)的视频编码器(303)。视频编码器(303)可包括硬件、软件或软硬件组合以实现或实施如下文更详细地描述的所公开主题的各方面。相较于视频图片流(302),已编码的视频数据(304)(或已编码的视频码流(304))被描绘为细线以强调较低数据量的已编码的视频数据(304)(或已编码的视频码流(304)),其可存储在流式传输服务器(305)上以供将来使用。一个或多个流式传输客户端子系统,例如图3中的客户端子系统(306)和客户端子系统(308),可访问流式传输服务器(305)以检索已编码的视频数据(304)的副本(307)和副本(309)。客户端子系统(306)可包括例如电子装置(330)中的视频解码器(310)。视频解码器(310)对已编码的视频数据的传入副本(307)进行解码,且产生可在显示器(312)(例如显示屏)或另一呈现装置(未描绘)上呈现的输出视频图片流(311)。在一些流式传输系统中,可根据某些视频编码/压缩标准对已编码的视频数据(304)、视频数据(307)和视频数据(309)(例如视频码流)进行编码。该些标准的实施例包括ITU-TH.265。在实施例中,正在开发的视频编码标准非正式地称为下一代视频编码(Versatile Video Coding,VVC),本申请可用于VVC标准的上下文中。The streaming system may include an acquisition subsystem (313), which may include a video source (301) such as a digital camera, which creates an uncompressed video picture stream (302). In an embodiment, the video picture stream (302) includes samples captured by the digital camera. The video picture stream (302) is depicted as a thick line to emphasize the high data volume of the video picture stream compared to the encoded video data (304) (or encoded video bitstream), and the video picture stream (302) can be processed by an electronic device (320), which includes a video encoder (303) coupled to the video source (301). The video encoder (303) may include hardware, software, or a combination of hardware and software to implement or implement various aspects of the disclosed subject matter as described in more detail below. Compared to the video picture stream (302), the encoded video data (304) (or the encoded video code stream (304)) is depicted as a thin line to emphasize the lower amount of data of the encoded video data (304) (or the encoded video code stream (304)), which can be stored on the streaming server (305) for future use. One or more streaming client subsystems, such as the client subsystem (306) and the client subsystem (308) in Figure 3, can access the streaming server (305) to retrieve a copy (307) and a copy (309) of the encoded video data (304). The client subsystem (306) can include, for example, a video decoder (310) in an electronic device (330). The video decoder (310) decodes the incoming copy (307) of the encoded video data and produces an output video picture stream (311) that can be presented on a display (312) (e.g., a display screen) or another presentation device (not depicted). In some streaming systems, the coded video data (304), video data (307), and video data (309) (e.g., a video bitstream) may be encoded according to certain video coding/compression standards. Examples of such standards include ITU-T H.265. In an embodiment, the video coding standard under development is informally referred to as Versatile Video Coding (VVC), and the present application may be used in the context of the VVC standard.
应注意,电子装置(320)和电子装置(330)可包括其它组件(未示出)。举例来说,电子装置(320)可包括视频解码器(未示出),且电子装置(330)还可包括视频编码器(未示出)。It should be noted that the electronic device (320) and the electronic device (330) may include other components (not shown). For example, the electronic device (320) may include a video decoder (not shown), and the electronic device (330) may also include a video encoder (not shown).
图4是根据本申请公开的实施例的视频解码器(410)的框图。视频解码器(410)可设置在电子装置(430)中。电子装置(430)可包括接收器(431)(例如接收电路)。视频解码器(410)可用于代替图3实施例中的视频解码器(310)。FIG4 is a block diagram of a video decoder (410) according to an embodiment disclosed herein. The video decoder (410) may be provided in an electronic device (430). The electronic device (430) may include a receiver (431) (e.g., a receiving circuit). The video decoder (410) may be used in place of the video decoder (310) in the embodiment of FIG3 .
接收器(431)可接收将由视频解码器(410)解码的一个或多个已编码视频序列;在同一实施例或另一实施例中,一次接收一个已编码视频序列,其中每个已编码视频序列的解码独立于其它已编码视频序列。可从信道(401)接收已编码视频序列,所述信道可以是通向存储已编码的视频数据的存储装置的硬件/软件链路。接收器(431)可接收已编码的视频数据以及其它数据,例如,可转发到它们各自的使用实体(未标示)的已编码音频数据和/或辅助数据流。接收器(431)可将已编码视频序列与其它数据分开。为了防止网络抖动,缓冲存储器(415)可耦接在接收器(431)与熵解码器/解析器(420)(此后称为“解析器(420)”)之间。在某些应用中,缓冲存储器(415)是视频解码器(410)的一部分。在其它情况下,所述缓冲存储器(415)可设置在视频解码器(410)外部(未标示)。而在其它情况下,视频解码器(410)的外部设置缓冲存储器(未标示)以例如防止网络抖动,且在视频解码器(410)的内部可配置另一缓冲存储器(415)以例如处理播出定时。而当接收器(431)从具有足够带宽和可控性的存储/转发装置或从等时同步网络接收数据时,也可能不需要配置缓冲存储器(415),或可以将所述缓冲存储器做得较小。当然,为了在互联网等业务分组网络上使用,也可能需要缓冲存储器(415),所述缓冲存储器可相对较大且可具有自适应性大小,且可至少部分地实施于操作系统或视频解码器(410)外部的类似元件(未标示)中。A receiver (431) may receive one or more encoded video sequences to be decoded by a video decoder (410); in the same or another embodiment, one encoded video sequence is received at a time, wherein each encoded video sequence is decoded independently of the other encoded video sequences. The encoded video sequence may be received from a channel (401), which may be a hardware/software link to a storage device storing the encoded video data. The receiver (431) may receive the encoded video data as well as other data, such as encoded audio data and/or auxiliary data streams, which may be forwarded to their respective consuming entities (not shown). The receiver (431) may separate the encoded video sequence from the other data. To prevent network jitter, a buffer memory (415) may be coupled between the receiver (431) and the entropy decoder/parser (420) (hereinafter referred to as "parser (420)"). In some applications, the buffer memory (415) is part of the video decoder (410). In other cases, the buffer memory (415) may be provided external to the video decoder (410) (not shown). In other cases, a buffer memory (not shown) is provided external to the video decoder (410) to, for example, mitigate network jitter, and another buffer memory (415) may be provided internally to the video decoder (410) to, for example, handle broadcast timing. Furthermore, when the receiver (431) receives data from a store/forward device with sufficient bandwidth and controllability or from an isochronous network, the buffer memory (415) may not be required, or the buffer memory may be smaller. Of course, for use on a traffic packet network such as the Internet, the buffer memory (415) may also be required. The buffer memory may be relatively large and have an adaptive size, and may be at least partially implemented in an operating system or similar component (not shown) external to the video decoder (410).
视频解码器(410)可包括解析器(420)以根据已编码视频序列重建符号(421)。这些符号的类别包括用于管理视频解码器(410)的操作的信息,以及用以控制显示装置(412)(例如,显示屏)等显示装置的潜在信息,所述显示装置不是电子装置(430)的组成部分,但可耦接到电子装置(430),如图4中所示。用于显示装置的控制信息可以是辅助增强信息(Supplemental Enhancement Information,SEI消息)或视频可用性信息(VideoUsability Information,VUI)的参数集片段(未标示)。解析器(420)可对接收到的已编码视频序列进行解析/熵解码。已编码视频序列的编码可根据视频编码技术或标准进行,且可遵循各种原理,包括可变长度编码、霍夫曼编码(Huffman coding)、具有或不具有上下文灵敏度的算术编码等等。解析器(420)可基于对应于群组的至少一个参数,从已编码视频序列提取用于视频解码器中的像素的子群中的至少一个子群的子群参数集。子群可包括图片群组(Group of Pictures,GOP)、图片、图块、切片、宏块、编码单元(Coding Unit,CU)、块、变换单元(Transform Unit,TU)、预测单元(Prediction Unit,PU)等等。解析器(420)还可从已编码视频序列提取信息,例如变换系数、量化器参数值、运动矢量等等。The video decoder (410) may include a parser (420) to reconstruct symbols (421) from a coded video sequence. The categories of these symbols include information for managing the operation of the video decoder (410) and potential information for controlling a display device, such as a display device (412) (e.g., a display screen), which is not part of the electronic device (430) but can be coupled to the electronic device (430), as shown in Figure 4. The control information for the display device can be a parameter set segment (not shown) of Supplemental Enhancement Information (SEI) or Video Usability Information (VUI). The parser (420) can parse/entropy decode the received coded video sequence. The coding of the coded video sequence can be performed according to a video coding technique or standard and can follow various principles, including variable length coding, Huffman coding, arithmetic coding with or without context sensitivity, etc. The parser (420) may extract a subgroup parameter set for at least one of the subgroups of pixels in the video decoder from the coded video sequence based on at least one parameter corresponding to the group. The subgroup may include a group of pictures (GOP), a picture, a tile, a slice, a macroblock, a coding unit (CU), a block, a transform unit (TU), a prediction unit (PU), etc. The parser (420) may also extract information such as transform coefficients, quantizer parameter values, motion vectors, etc. from the coded video sequence.
解析器(420)可对从缓冲存储器(415)接收的视频序列执行熵解码/解析操作,从而创建符号(421)。The parser (420) may perform entropy decoding/parsing operations on the video sequence received from the buffer memory (415), thereby creating symbols (421).
取决于已编码视频图片或一部分已编码视频图片(例如:帧间图片和帧内图片、帧间块和帧内块)的类型以及其它因素,符号(421)的重建可涉及多个不同单元。涉及哪些单元以及涉及方式可由解析器(420)从已编码视频序列解析的子群控制信息控制。为了简洁起见,未描述解析器(420)与下文的多个单元之间的此类子群控制信息流。Depending on the type of coded video picture or portion of a coded video picture (e.g., inter-frame and intra-frame pictures, inter-frame blocks and intra-frame blocks) and other factors, the reconstruction of the symbol (421) may involve multiple different units. Which units are involved and how they are involved can be controlled by subgroup control information parsed from the coded video sequence by the parser (420). For the sake of brevity, the flow of such subgroup control information between the parser (420) and the multiple units below is not described.
除已经提及的功能块以外,视频解码器(410)可在概念上细分成如下文所描述的数个功能单元。在商业约束下运行的实际实施例中,这些单元中的许多单元彼此紧密交互并且可以彼此集成。然而,出于描述所公开主题的目的,概念上细分成下文的功能单元是适当的。In addition to the functional blocks already mentioned, the video decoder (410) can be conceptually broken down into several functional units as described below. In practical embodiments operating under commercial constraints, many of these units interact closely with each other and may be integrated with each other. However, for the purposes of describing the disclosed subject matter, the conceptual breakdown into the following functional units is appropriate.
第一单元是缩放器/逆变换单元(451)。缩放器/逆变换单元(451)从解析器(420)接收作为符号(421)的量化变换系数以及控制信息,包括使用哪种变换方式、块大小、量化因子、量化缩放矩阵等。缩放器/逆变换单元(451)可输出包括样本值的块,所述样本值可输入到聚合器(455)中。The first unit is a scaler/inverse transform unit (451). The scaler/inverse transform unit (451) receives quantized transform coefficients as symbols (421) from the parser (420) along with control information, including which transform method to use, block size, quantization factor, quantization scaling matrix, etc. The scaler/inverse transform unit (451) may output a block comprising sample values, which may be input to an aggregator (455).
在一些情况下,缩放器/逆变换单元(451)的输出样本可属于帧内编码块;即:不使用来自先前重建的图片的预测性信息,但可使用来自当前图片的先前重建部分的预测性信息的块。此类预测性信息可由帧内图片预测单元(452)提供。在一些情况下,帧内图片预测单元(452)采用从当前图片缓冲器(458)提取的已重建信息生成大小和形状与正在重建的块相同的周围块。举例来说,当前图片缓冲器(458)缓冲部分重建的当前图片和/或完全重建的当前图片。在一些情况下,聚合器(455)基于每个样本,将帧内预测单元(452)生成的预测信息添加到由缩放器/逆变换单元(451)提供的输出样本信息中。In some cases, the output samples of the scaler/inverse transform unit (451) may belong to an intra-coded block; that is, a block that does not use predictive information from a previously reconstructed picture, but may use predictive information from a previously reconstructed portion of the current picture. Such predictive information may be provided by the intra-picture prediction unit (452). In some cases, the intra-picture prediction unit (452) uses reconstructed information extracted from the current picture buffer (458) to generate surrounding blocks of the same size and shape as the block being reconstructed. For example, the current picture buffer (458) buffers partially reconstructed current pictures and/or fully reconstructed current pictures. In some cases, the aggregator (455) adds the prediction information generated by the intra-prediction unit (452) to the output sample information provided by the scaler/inverse transform unit (451) on a per-sample basis.
在其它情况下,缩放器/逆变换单元(451)的输出样本可属于帧间编码和潜在运动补偿块。在此情况下,运动补偿预测单元(453)可访问参考图片存储器(457)以提取用于预测的样本。在根据符号(421)对提取的样本进行运动补偿之后,这些样本可由聚合器(455)添加到缩放器/逆变换单元(451)的输出(在这种情况下被称作残差样本或残差信号),从而生成输出样本信息。运动补偿预测单元(453)从参考图片存储器(457)内的地址获取预测样本可受到运动矢量控制,且所述运动矢量以所述符号(421)的形式而供运动补偿预测单元(453)使用,所述符号(421)例如是包括X、Y和参考图片分量。运动补偿还可包括在使用子样本精确运动矢量时,从参考图片存储器(457)提取的样本值的内插、运动矢量预测机制等等。In other cases, the output samples of the scaler/inverse transform unit (451) may belong to inter-frame coded and potentially motion compensated blocks. In this case, the motion compensated prediction unit (453) may access the reference picture memory (457) to extract samples for prediction. After the extracted samples are motion compensated according to the symbols (421), these samples may be added to the output of the scaler/inverse transform unit (451) (in this case referred to as residual samples or residual signal) by the aggregator (455) to generate output sample information. The retrieval of the prediction samples by the motion compensated prediction unit (453) from the address in the reference picture memory (457) may be controlled by a motion vector, and the motion vector is provided to the motion compensated prediction unit (453) in the form of the symbols (421), which may include, for example, X, Y and reference picture components. Motion compensation may also include interpolation of sample values extracted from the reference picture memory (457) when using sub-sample accurate motion vectors, motion vector prediction mechanisms, etc.
聚合器(455)的输出样本可在环路滤波器单元(456)中被各种环路滤波技术采用。视频压缩技术可包括环路内滤波器技术,所述环路内滤波器技术受控于包括在已编码视频序列(也称作已编码视频码流)中的参数,且所述参数作为来自解析器(420)的符号(421)可用于环路滤波器单元(456)。然而,在其他实施例中,视频压缩技术还可响应于在解码已编码图片或已编码视频序列的先前(按解码次序)部分期间获得的元信息,以及响应于先前重建且经过环路滤波的样本值。The output samples of the aggregator (455) may be used by various loop filtering techniques in a loop filter unit (456). The video compression techniques may include in-loop filtering techniques that are controlled by parameters included in the coded video sequence (also referred to as the coded video bitstream) and made available to the loop filter unit (456) as symbols (421) from the parser (420). However, in other embodiments, the video compression techniques may also be responsive to meta-information obtained during decoding of a coded picture or a previous (in decoding order) portion of the coded video sequence, as well as to previously reconstructed and loop-filtered sample values.
环路滤波器单元(456)的输出可以是样本流,所述样本流可输出到显示装置(412)以及存储在参考图片存储器(457),以用于后续的帧间图片预测。The output of the loop filter unit (456) may be a sample stream that may be output to a display device (412) and stored in a reference picture memory (457) for subsequent inter-picture prediction.
一旦完全重建,某些已编码图片就可用作参考图片以用于将来预测。举例来说,一旦对应于当前图片的已编码图片被完全重建,且已编码图片(通过例如解析器(420))被识别为参考图片,则当前图片缓冲器(458)可变为参考图片存储器(457)的一部分,且可在开始重建后续已编码图片之前重新分配新的当前图片缓冲器。Once fully reconstructed, certain coded pictures can be used as reference pictures for future prediction. For example, once the coded picture corresponding to the current picture is fully reconstructed and the coded picture is identified as a reference picture (e.g., by the parser (420)), the current picture buffer (458) can become part of the reference picture memory (457) and a new current picture buffer can be reallocated before starting to reconstruct a subsequent coded picture.
视频解码器(410)可根据例如ITU-T H.265标准中的预定视频压缩技术执行解码操作。在已编码视频序列遵循视频压缩技术或标准的语法以及视频压缩技术或标准中记录的配置文件的意义上,已编码视频序列可符合所使用的视频压缩技术或标准指定的语法。具体地说,配置文件可从视频压缩技术或标准中可用的所有工具中选择某些工具作为在所述配置文件下可供使用的仅有工具。对于合规性,还要求已编码视频序列的复杂度处于视频压缩技术或标准的层级所限定的范围内。在一些情况下,层级限制最大图片大小、最大帧率、最大重建取样率(以例如每秒兆(mega)个样本为单位进行测量)、最大参考图片大小等。在一些情况下,由层级设定的限制可通过假想参考解码器(Hypothetical ReferenceDecoder,HRD)规范和在已编码视频序列中用信号表示的HRD缓冲器管理的元数据来进一步限定。The video decoder (410) may perform decoding operations according to a predetermined video compression technique, such as that in the ITU-T H.265 standard. The encoded video sequence may conform to the syntax specified by the video compression technology or standard used in the sense that the encoded video sequence follows the syntax of the video compression technology or standard and the profile recorded in the video compression technology or standard. Specifically, the profile may select certain tools from all the tools available in the video compression technology or standard as the only tools available for use under the profile. For compliance, the complexity of the encoded video sequence is also required to be within the range defined by the level of the video compression technology or standard. In some cases, the level limits the maximum picture size, maximum frame rate, maximum reconstruction sampling rate (measured in, for example, megasamples per second), maximum reference picture size, etc. In some cases, the limits set by the level may be further defined by the Hypothetical Reference Decoder (HRD) specification and metadata about the HRD buffer management signaled in the encoded video sequence.
在实施例中,接收器(431)可连同已编码视频一起接收附加(冗余)数据。所述附加数据可以是已编码视频序列的一部分。所述附加数据可由视频解码器(410)用以对数据进行适当解码和/或较准确地重建原始视频数据。附加数据可呈例如时间、空间或信噪比(signal noise ratio,SNR)增强层、冗余切片、冗余图片、前向纠错码等形式。In an embodiment, a receiver (431) may receive additional (redundant) data along with the encoded video. The additional data may be part of the encoded video sequence. The additional data may be used by the video decoder (410) to properly decode the data and/or more accurately reconstruct the original video data. The additional data may be in the form of, for example, temporal, spatial, or signal-to-noise ratio (SNR) enhancement layers, redundant slices, redundant pictures, forward error correction codes, and the like.
图5是根据本申请公开的实施例的视频编码器(503)的框图。视频编码器(503)设置于电子装置(520)中。电子装置(520)包括传输器(540)(例如传输电路)。视频编码器(503)可用于代替图3实施例中的视频编码器(303)。FIG5 is a block diagram of a video encoder (503) according to an embodiment disclosed herein. The video encoder (503) is provided in an electronic device (520). The electronic device (520) includes a transmitter (540) (e.g., a transmission circuit). The video encoder (503) can be used to replace the video encoder (303) in the embodiment of FIG3 .
视频编码器(503)可从视频源(501)(并非图5实施例中的电子装置(520)的一部分)接收视频样本,所述视频源可采集将由视频编码器(503)编码的视频图像。在另一实施例中,视频源(501)是电子装置(520)的一部分。The video encoder (503) may receive video samples from a video source (501) (not part of the electronic device (520) in the embodiment of FIG5 ), which may capture video images to be encoded by the video encoder (503). In another embodiment, the video source (501) is part of the electronic device (520).
视频源(501)可提供将由视频编码器(503)编码的呈数字视频样本流形式的源视频序列,所述数字视频样本流可具有任何合适位深度(例如:8位、10位、12位……)、任何色彩空间(例如BT.601Y CrCB、RGB……)和任何合适取样结构(例如Y CrCb 4:2:0、Y CrCb 4:4:4)。在媒体服务系统中,视频源(501)可以是存储先前已准备的视频的存储装置。在视频会议系统中,视频源(501)可以是采集本地图像信息作为视频序列的相机。可将视频数据提供为多个单独的图片,当按顺序观看时,这些图片被赋予运动。图片自身可构建为空间像素阵列,其中取决于所用的取样结构、色彩空间等,每个像素可包括一个或多个样本。所属领域的技术人员可以很容易理解像素与样本之间的关系。下文侧重于描述样本。The video source (501) may provide a source video sequence in the form of a stream of digital video samples to be encoded by the video encoder (503), wherein the stream of digital video samples may have any suitable bit depth (e.g., 8-bit, 10-bit, 12-bit, ...), any color space (e.g., BT.601 Y CrCB, RGB, ...), and any suitable sampling structure (e.g., Y CrCb 4:2:0, Y CrCb 4:4:4). In a media serving system, the video source (501) may be a storage device storing previously prepared videos. In a video conferencing system, the video source (501) may be a camera that captures local image information as a video sequence. The video data may be provided as a plurality of individual pictures that are given motion when viewed sequentially. The pictures themselves may be constructed as a spatial array of pixels, where each pixel may include one or more samples depending on the sampling structure, color space, etc. used. The relationship between pixels and samples may be readily understood by those skilled in the art. The following description focuses on samples.
根据实施例,视频编码器(503)可实时或在由应用所要求的任何其它时间约束下,将源视频序列的图片编码且压缩成已编码视频序列(543)。施行适当的编码速度是控制器(550)的一个功能。在一些实施例中,控制器(550)控制如下文所描述的其它功能单元且在功能上耦接到这些单元。为了简洁起见,图中未标示耦接。由控制器(550)设置的参数可包括速率控制相关参数(图片跳过、量化器、率失真优化技术的λ值等)、图片大小、图片群组(group of pictures,GOP)布局,最大运动矢量搜索范围等。控制器(550)可用于具有其它合适的功能,这些功能涉及针对某一系统设计优化的视频编码器(503)。According to an embodiment, the video encoder (503) may encode and compress pictures of a source video sequence into an encoded video sequence (543) in real time or under any other time constraints required by the application. Implementing an appropriate encoding speed is a function of the controller (550). In some embodiments, the controller (550) controls other functional units as described below and is functionally coupled to these units. For the sake of simplicity, the coupling is not shown in the figure. The parameters set by the controller (550) may include rate control related parameters (picture skipping, quantizer, lambda value of rate-distortion optimization technology, etc.), picture size, group of pictures (GOP) layout, maximum motion vector search range, etc. The controller (550) may be used to have other suitable functions that are related to the video encoder (503) optimized for a certain system design.
在一些实施例中,视频编码器(503)在编码环路中进行操作。作为简单的描述,在实施例中,编码环路可包括源编码器(530)(例如,负责基于待编码的输入图片和参考图片创建符号,例如符号流)和嵌入于视频编码器(503)中的(本地)解码器(533)。解码器(533)以类似于(远程)解码器创建样本数据的方式重建符号以创建样本数据(因为在本申请所考虑的视频压缩技术中,符号与已编码视频码流之间的任何压缩是无损的)。将重建的样本流(样本数据)输入到参考图片存储器(534)。由于符号流的解码产生与解码器位置(本地或远程)无关的位精确结果,因此参考图片存储器(534)中的内容在本地编码器与远程编码器之间也是按比特位精确对应的。换句话说,编码器的预测部分“看到”的参考图片样本与解码器将在解码期间使用预测时所“看到”的样本值完全相同。这种参考图片同步性基本原理(以及在例如因信道误差而无法维持同步性的情况下产生的漂移)也用于一些相关技术。In some embodiments, the video encoder (503) operates in a coding loop. As a simplified description, in embodiments, the coding loop may include a source encoder (530) (e.g., responsible for creating symbols, such as a symbol stream, based on the input picture to be encoded and the reference picture) and a (local) decoder (533) embedded in the video encoder (503). The decoder (533) reconstructs the symbols to create sample data in a manner similar to how the (remote) decoder creates sample data (because in the video compression technology considered in this application, any compression between the symbols and the encoded video code stream is lossless). The reconstructed sample stream (sample data) is input to a reference picture memory (534). Since the decoding of the symbol stream produces bit-accurate results regardless of the decoder location (local or remote), the contents of the reference picture memory (534) are also bit-accurate between the local encoder and the remote encoder. In other words, the reference picture samples "seen" by the prediction part of the encoder are exactly the same sample values that the decoder will "see" when using the prediction during decoding. This basic principle of reference picture synchronization (and the resulting drift when synchronization cannot be maintained, eg due to channel errors) is also used in some related techniques.
“本地”解码器(533)的操作可与例如已在上文结合图4详细描述视频解码器(410)的“远程”解码器相同。然而,另外简要参考图4,当符号可用且熵编码器(545)和解析器(420)能够无损地将符号编码/解码为已编码视频序列时,包括缓冲存储器(415)和解析器(420)在内的视频解码器(410)的熵解码部分,可能无法完全在本地解码器(533)中实施。The operation of the "local" decoder (533) may be identical to the "remote" decoder of, for example, the video decoder (410) described in detail above in conjunction with FIG4. However, with additional brief reference to FIG4, when symbols are available and the entropy encoder (545) and parser (420) are capable of losslessly encoding/decoding the symbols into an encoded video sequence, the entropy decoding portion of the video decoder (410), including the buffer memory (415) and parser (420), may not be fully implemented in the local decoder (533).
此时可以观察到,除存在于解码器中的解析/熵解码之外的任何解码器技术,也必定以基本上相同的功能形式存在于对应的编码器中。出于此原因,本申请侧重于解码器操作。可简化编码器技术的描述,因为编码器技术与全面地描述的解码器技术互逆。仅在某些区域中需要更详细的描述,并且在下文提供。At this point, it can be observed that any decoder technology other than parsing/entropy decoding present in the decoder must also be present in a substantially identical functional form in the corresponding encoder. For this reason, this application focuses on the decoder operation. The description of the encoder technology can be simplified because the encoder technology is mutually inverse to the decoder technology described comprehensively. A more detailed description is only required in certain areas and is provided below.
在操作期间,在一些实施例中,源编码器(530)可执行运动补偿预测编码。参考来自视频序列中被指定为“参考图片”的一个或多个先前已编码图片,所述运动补偿预测编码对输入图片进行预测性编码。以此方式,编码引擎(532)对输入图片的像素块与参考图片的像素块之间的差异进行编码,所述参考图片可被选作所述输入图片的预测参考。During operation, in some embodiments, the source encoder (530) may perform motion-compensated predictive coding. The motion-compensated predictive coding predictively encodes an input picture with reference to one or more previously encoded pictures in a video sequence designated as "reference pictures." In this manner, the encoding engine (532) encodes the differences between pixel blocks of the input picture and pixel blocks of a reference picture that may be selected as a prediction reference for the input picture.
本地视频解码器(533)可基于源编码器(530)创建的符号,对可指定为参考图片的已编码视频数据进行解码。编码引擎(532)的操作可为有损过程。当已编码视频数据可在视频解码器(图5中未示)处被解码时,重建的视频序列通常可以是带有一些误差的源视频序列的副本。本地视频解码器(533)复制解码过程,所述解码过程可由视频解码器对参考图片执行,且可使重建的参考图片存储在参考图片高速缓存(534)中。以此方式,视频编码器(503)可在本地存储重建的参考图片的副本,所述副本与将由远端视频解码器获得的重建参考图片具有共同内容(不存在传输误差)。The local video decoder (533) can decode the encoded video data that can be designated as a reference picture based on the symbols created by the source encoder (530). The operation of the encoding engine (532) can be a lossy process. When the encoded video data can be decoded at a video decoder (not shown in Figure 5), the reconstructed video sequence can generally be a copy of the source video sequence with some errors. The local video decoder (533) replicates the decoding process that can be performed by the video decoder on the reference picture and can cause the reconstructed reference picture to be stored in the reference picture cache (534). In this way, the video encoder (503) can locally store a copy of the reconstructed reference picture that has common content (absent transmission errors) with the reconstructed reference picture that will be obtained by the remote video decoder.
预测器(535)可针对编码引擎(532)执行预测搜索。即,对于将要编码的新图片,预测器(535)可在参考图片存储器(534)中搜索可作为所述新图片的适当预测参考的样本数据(作为候选参考像素块)或某些元数据,例如参考图片运动矢量、块形状等。预测器(535)可基于样本块逐像素块操作,以找到合适的预测参考。在一些情况下,根据预测器(535)获得的搜索结果,可确定输入图片可具有从参考图片存储器(534)中存储的多个参考图片取得的预测参考。The predictor (535) may perform a prediction search for the encoding engine (532). That is, for a new picture to be encoded, the predictor (535) may search the reference picture memory (534) for sample data (as candidate reference pixel blocks) or certain metadata, such as reference picture motion vectors, block shapes, etc., that may serve as suitable prediction references for the new picture. The predictor (535) may operate on a pixel-by-pixel-block basis based on sample blocks to find a suitable prediction reference. In some cases, based on the search results obtained by the predictor (535), it may be determined that the input picture may have prediction references taken from multiple reference pictures stored in the reference picture memory (534).
控制器(550)可管理源编码器(530)的编码操作,包括例如设置用于对视频数据进行编码的参数和子群参数。The controller (550) may manage encoding operations of the source encoder (530), including, for example, setting parameters and subgroup parameters for encoding video data.
可在熵编码器(545)中对所有上述功能单元的输出进行熵编码。熵编码器(545)根据例如霍夫曼编码、可变长度编码、算术编码等技术对各种功能单元生成的符号进行无损压缩,从而将所述符号转换成已编码视频序列。The outputs of all the above functional units may be entropy coded in an entropy encoder (545). The entropy encoder (545) losslessly compresses the symbols generated by the various functional units using techniques such as Huffman coding, variable length coding, arithmetic coding, etc., thereby converting the symbols into a coded video sequence.
传输器(540)可缓冲由熵编码器(545)创建的已编码视频序列,从而为通过通信信道(560)进行传输做准备,所述通信信道可以是通向将存储已编码的视频数据的存储装置的硬件/软件链路。传输器(540)可将来自视频编码器(503)的已编码视频数据与要传输的其它数据合并,所述其它数据例如是已编码音频数据和/或辅助数据流(未示出来源)。The transmitter (540) can buffer the encoded video sequence created by the entropy encoder (545) in preparation for transmission over a communication channel (560), which can be a hardware/software link to a storage device where the encoded video data will be stored. The transmitter (540) can combine the encoded video data from the video encoder (503) with other data to be transmitted, such as encoded audio data and/or an auxiliary data stream (source not shown).
控制器(550)可管理视频编码器(503)的操作。在编码期间,控制器(550)可以为每个已编码图片分配某一已编码图片类型,但这可能影响可应用于相应的图片的编码技术。例如,通常可将图片分配为以下任一种图片类型:The controller (550) can manage the operation of the video encoder (503). During encoding, the controller (550) can assign a certain coded picture type to each coded picture, but this may affect the coding techniques that can be applied to the corresponding picture. For example, a picture can generally be assigned to any of the following picture types:
帧内图片(I图片),其可以是不将序列中的任何其它图片用作预测源就可被编码和解码的图片。一些视频编解码器容许不同类型的帧内图片,包括例如独立解码器刷新(Independent Decoder Refresh,“IDR”)图片。所属领域的技术人员了解I图片的变体及其相应的应用和特征。An intra picture (I picture) can be a picture that can be encoded and decoded without using any other picture in the sequence as a prediction source. Some video codecs allow different types of intra pictures, including, for example, Independent Decoder Refresh (IDR) pictures. Those skilled in the art are aware of the variations of I pictures and their corresponding applications and features.
预测性图片(P图片),其可以是可使用帧内预测或帧间预测进行编码和解码的图片,所述帧内预测或帧间预测使用至多一个运动矢量和参考索引来预测每个块的样本值。A predictive picture (P picture) may be a picture that can be encoded and decoded using intra prediction or inter prediction, which uses at most one motion vector and a reference index to predict sample values for each block.
双向预测性图片(B图片),其可以是可使用帧内预测或帧间预测进行编码和解码的图片,所述帧内预测或帧间预测使用至多两个运动矢量和参考索引来预测每个块的样本值。类似地,多个预测性图片可使用多于两个参考图片和相关联元数据以用于重建单个块。Bidirectionally predictive pictures (B pictures) can be encoded and decoded using intra prediction or inter prediction, which uses up to two motion vectors and reference indices to predict sample values for each block. Similarly, multiple predictive pictures can use more than two reference pictures and associated metadata to reconstruct a single block.
源图片通常可在空间上细分成多个样本块(例如,4×4、8×8、4×8或16×16个样本的块),且逐块进行编码。这些块可参考其它(已编码)块进行预测编码,根据应用于块的相应图片的编码分配来确定所述其它块。举例来说,I图片的块可进行非预测编码,或所述块可参考同一图片的已经编码的块来进行预测编码(空间预测或帧内预测)。P图片的像素块可参考一个先前编码的参考图片通过空间预测或通过时域预测进行预测编码。B图片的块可参考一个或两个先前编码的参考图片通过空间预测或通过时域预测进行预测编码。A source picture is typically spatially subdivided into blocks of samples (e.g., blocks of 4×4, 8×8, 4×8, or 16×16 samples) and coded block by block. These blocks may be predictively coded with reference to other (already coded) blocks, determined according to the coding allocation applied to the block's corresponding picture. For example, blocks of an I picture may be non-predictively coded, or they may be predictively coded (spatial or intra-predicted) with reference to already coded blocks of the same picture. Pixel blocks of a P picture may be predictively coded using spatial prediction with reference to one previously coded reference picture or using temporal prediction. Blocks of a B picture may be predictively coded using spatial prediction with reference to one or two previously coded reference pictures or using temporal prediction.
视频编码器(503)可根据例如ITU-T H.265建议书的预定视频编码技术或标准执行编码操作。在操作中,视频编码器(503)可执行各种压缩操作,包括利用输入视频序列中的时间和空间冗余的预测编码操作。因此,已编码视频数据可符合所用视频编码技术或标准指定的语法。The video encoder (503) may perform encoding operations according to a predetermined video coding technique or standard, such as ITU-T Recommendation H.265. In operation, the video encoder (503) may perform various compression operations, including predictive coding operations that exploit temporal and spatial redundancy in the input video sequence. Thus, the encoded video data may conform to the syntax specified by the video coding technique or standard used.
在实施例中,传输器(540)可在传输已编码的视频时传输附加数据。源编码器(530)可将此类数据作为已编码视频序列的一部分。附加数据可包括时间/空间/SNR增强层、冗余图片和切片等其它形式的冗余数据、SEI消息、VUI参数集片段等。In an embodiment, the transmitter (540) may transmit additional data along with the encoded video. The source encoder (530) may include such data as part of the encoded video sequence. The additional data may include temporal/spatial/SNR enhancement layers, redundant pictures and slices, and other forms of redundant data, SEI messages, VUI parameter set fragments, and the like.
采集到的视频可作为呈时间序列的多个源图片(视频图片)。帧内图片预测(常常简化为帧内预测)利用给定图片中的空间相关性,而帧间图片预测则利用图片之间的(时间或其它)相关性。在实施例中,将正在编码/解码的特定图片分割成块,正在编码/解码的特定图片被称作当前图片。在当前图片中的块类似于视频中先前已编码且仍被缓冲的参考图片中的参考块时,可通过称作运动矢量的矢量对当前图片中的块进行编码。所述运动矢量指向参考图片中的参考块,且在使用多个参考图片的情况下,所述运动矢量可具有识别参考图片的第三维度。The captured video may be presented as a temporal sequence of multiple source pictures (video pictures). Intra-picture prediction (often shortened to intra prediction) exploits spatial correlation within a given picture, while inter-picture prediction exploits correlation (temporal or otherwise) between pictures. In an embodiment, a particular picture being encoded/decoded is divided into blocks, and the particular picture being encoded/decoded is referred to as the current picture. When a block in the current picture is similar to a reference block in a previously encoded and buffered reference picture in the video, the block in the current picture can be encoded using a vector called a motion vector. The motion vector points to the reference block in a reference picture, and when multiple reference pictures are used, the motion vector may have a third dimension that identifies the reference picture.
在一些实施例中,双向预测技术可用于帧间图片预测中。根据双向预测技术,使用两个参考图片,例如按解码次序都在视频中的当前图片之前(但按显示次序可能分别是过去和将来)第一参考图片和第二参考图片。可通过指向第一参考图片中的第一参考块的第一运动矢量和指向第二参考图片中的第二参考块的第二运动矢量对当前图片中的块进行编码。具体来说,可通过第一参考块和第二参考块的组合来预测所述块。In some embodiments, bidirectional prediction techniques can be used for inter-picture prediction. According to bidirectional prediction techniques, two reference pictures are used, for example, a first reference picture and a second reference picture, both preceding the current picture in the video in decoding order (but potentially in the past and future, respectively, in display order). A block in the current picture can be encoded using a first motion vector pointing to a first reference block in the first reference picture and a second motion vector pointing to a second reference block in the second reference picture. Specifically, the block can be predicted using a combination of the first and second reference blocks.
此外,合并模式技术可用于帧间图片预测中以改善编码效率。In addition, merge mode technology can be used in inter-picture prediction to improve coding efficiency.
根据本申请公开的一些实施例,帧间图片预测和帧内图片预测等预测的执行以块为单位。举例来说,根据HEVC标准,将视频图片序列中的图片分割成编码树单元(codingtree unit,CTU)以用于压缩,图片中的CTU具有相同大小,例如64×64像素、32×32像素或16×16像素。一般来说,CTU包括三个编码树块(coding tree block,CTB),所述三个编码树块是一个亮度CTB和两个色度CTB。更进一步的,还可将每个CTU以四叉树拆分为一个或多个编码单元(coding unit,CU)。举例来说,可将64×64像素的CTU拆分为一个64×64像素的CU,或4个32×32像素的CU,或16个16×16像素的CU。在实施例中,分析每个CU以确定用于CU的预测类型,例如帧间预测类型或帧内预测类型。此外,取决于时间和/或空间可预测性,将CU拆分为一个或多个预测单元(prediction unit,PU)。通常,每个PU包括亮度预测块(prediction block,PB)和两个色度PB。在实施例中,编码(编码/解码)中的预测操作以预测块为单位来执行。以亮度预测块作为预测块为例,预测块包括像素值(例如,亮度值)的矩阵,例如8×8像素、16×16像素、8×16像素、16×8像素等等。According to some embodiments disclosed in the present application, predictions such as inter-picture prediction and intra-picture prediction are performed in units of blocks. For example, according to the HEVC standard, pictures in a video picture sequence are divided into coding tree units (CTUs) for compression, and the CTUs in the pictures have the same size, such as 64×64 pixels, 32×32 pixels, or 16×16 pixels. Generally speaking, a CTU includes three coding tree blocks (CTBs), which are a luminance CTB and two chrominance CTBs. Furthermore, each CTU can be split into one or more coding units (CUs) using a quadtree. For example, a 64×64 pixel CTU can be split into a 64×64 pixel CU, or four 32×32 pixel CUs, or sixteen 16×16 pixel CUs. In an embodiment, each CU is analyzed to determine the prediction type used for the CU, such as an inter prediction type or an intra prediction type. In addition, depending on temporal and/or spatial predictability, the CU is split into one or more prediction units (PUs). Typically, each PU includes a luma prediction block (PB) and two chroma PBs. In an embodiment, the prediction operation in encoding (encoding/decoding) is performed in units of prediction blocks. Taking the luma prediction block as an example, the prediction block includes a matrix of pixel values (e.g., luma values), such as 8×8 pixels, 16×16 pixels, 8×16 pixels, 16×8 pixels, and the like.
图6是根据本申请公开的另一实施例的视频编码器(603)的图。视频编码器(603)用于接收视频图片序列中的当前视频图片内的样本值的处理块(例如预测块),且将所述处理块编码到作为已编码视频序列的一部分的已编码图片中。在本实施例中,视频编码器(603)用于代替图3实施例中的视频编码器(303)。FIG6 is a diagram of a video encoder (603) according to another embodiment disclosed herein. The video encoder (603) is configured to receive a processed block (e.g., a prediction block) of sample values within a current video picture in a sequence of video pictures and encode the processed block into an encoded picture that is part of an encoded video sequence. In this embodiment, the video encoder (603) replaces the video encoder (303) in the embodiment of FIG3 .
在HEVC实施例中,视频编码器(603)接收用于处理块的样本值的矩阵,所述处理块为例如8×8样本的预测块等。视频编码器(603)使用例如率失真(rate-distortion,RD)优化来确定是否使用帧内模式、帧间模式或双向预测模式来编码所述处理块。当在帧内模式中编码处理块时,视频编码器(603)可使用帧内预测技术以将处理块编码到已编码图片中;且当在帧间模式或双向预测模式中编码处理块时,视频编码器(603)可分别使用帧间预测或双向预测技术将处理块编码到已编码图片中。在某些视频编码技术中,合并模式可以是帧间图片预测子模式,其中,在不借助预测值外部的已编码运动矢量分量的情况下,从一个或多个运动矢量预测值导出运动矢量。在某些其它视频编码技术中,可存在适用于主题块的运动矢量分量。在实施例中,视频编码器(603)包括其它组件,例如用于确定处理块模式的模式决策模块(未示出)。In an HEVC embodiment, a video encoder (603) receives a matrix of sample values for a processing block, such as a prediction block of 8×8 samples. The video encoder (603) uses, for example, rate-distortion (RD) optimization to determine whether to use intra mode, inter mode, or bi-prediction mode to encode the processing block. When encoding the processing block in intra mode, the video encoder (603) may use intra prediction techniques to encode the processing block into an encoded picture; and when encoding the processing block in inter mode or bi-prediction mode, the video encoder (603) may use inter prediction or bi-prediction techniques, respectively, to encode the processing block into an encoded picture. In some video coding techniques, merge mode may be an inter-picture prediction submode, in which motion vectors are derived from one or more motion vector predictors without resorting to coded motion vector components external to the predictor. In some other video coding techniques, there may be motion vector components applicable to the subject block. In an embodiment, the video encoder (603) includes other components, such as a mode decision module (not shown) for determining the processing block mode.
在图6的实施例中,视频编码器(603)包括如图6所示的耦接到一起的帧间编码器(630)、帧内编码器(622)、残差计算器(623)、开关(626)、残差编码器(624)、通用控制器(621)和熵编码器(625)。In the embodiment of Figure 6, the video encoder (603) includes an inter-frame encoder (630), an intra-frame encoder (622), a residual calculator (623), a switch (626), a residual encoder (624), a general controller (621) and an entropy encoder (625) coupled together as shown in Figure 6.
帧间编码器(630)用于接收当前块(例如处理块)的样本、比较所述块与参考图片中的一个或多个参考块(例如先前图片和后来图片中的块)、生成帧间预测信息(例如根据帧间编码技术的冗余信息描述、运动矢量、合并模式信息)、以及基于帧间预测信息使用任何合适的技术计算帧间预测结果(例如已预测块)。在一些实施例中,参考图片是基于已编码的视频信息解码的已解码参考图片。The inter-frame encoder (630) is configured to receive samples of a current block (e.g., a processing block), compare the current block with one or more reference blocks in a reference picture (e.g., blocks in a previous picture and a subsequent picture), generate inter-frame prediction information (e.g., redundant information description according to an inter-frame coding technique, motion vectors, merge mode information), and calculate an inter-frame prediction result (e.g., a predicted block) based on the inter-frame prediction information using any suitable technique. In some embodiments, the reference picture is a decoded reference picture decoded based on the encoded video information.
帧内编码器(622)用于接收当前块(例如处理块)的样本、在一些情况下比较所述块与同一图片中已编码的块、在变换之后生成量化系数、以及在一些情况下还(例如根据一个或多个帧内编码技术的帧内预测方向信息)生成帧内预测信息。在实施例中,帧内编码器(622)还基于帧内预测信息和同一图片中的参考块计算帧内预测结果(例如已预测块)。The intra-frame encoder (622) is configured to receive samples of a current block (e.g., a processing block), compare the block with previously encoded blocks in the same picture in some cases, generate quantized coefficients after transformation, and in some cases also generate intra-frame prediction information (e.g., intra-frame prediction direction information based on one or more intra-frame coding techniques). In an embodiment, the intra-frame encoder (622) further calculates an intra-frame prediction result (e.g., a predicted block) based on the intra-frame prediction information and a reference block in the same picture.
通用控制器(621)用于确定通用控制数据,且基于所述通用控制数据控制视频编码器(603)的其它组件。在实施例中,通用控制器(621)确定块的模式,且基于所述模式将控制信号提供到开关(626)。举例来说,当所述模式是帧内模式时,通用控制器(621)控制开关(626)以选择供残差计算器(623)使用的帧内模式结果,且控制熵编码器(625)以选择帧内预测信息且将所述帧内预测信息添加在码流中;以及当所述模式是帧间模式时,通用控制器(621)控制开关(626)以选择供残差计算器(623)使用的帧间预测结果,且控制熵编码器(625)以选择帧间预测信息且将所述帧间预测信息添加在码流中。The general controller (621) is used to determine general control data and control other components of the video encoder (603) based on the general control data. In an embodiment, the general controller (621) determines the mode of the block and provides a control signal to the switch (626) based on the mode. For example, when the mode is intra mode, the general controller (621) controls the switch (626) to select the intra mode result for use by the residual calculator (623) and controls the entropy encoder (625) to select intra prediction information and add the intra prediction information to the bitstream; and when the mode is inter mode, the general controller (621) controls the switch (626) to select the inter prediction result for use by the residual calculator (623) and controls the entropy encoder (625) to select inter prediction information and add the inter prediction information to the bitstream.
残差计算器(623)用于计算所接收的块与选自帧内编码器(622)或帧间编码器(630)的预测结果之间的差(残差数据)。残差编码器(624)用于基于残差数据操作,以对残差数据进行编码以生成变换系数。在实施例中,残差编码器(624)用于将残差数据从时域转换到频域,且生成变换系数。变换系数接着经由量化处理以获得量化的变换系数。在各种实施例中,视频编码器(603)还包括残差解码器(628)。残差解码器(628)用于执行逆变换,且生成已解码残差数据。已解码残差数据可适当地由帧内编码器(622)和帧间编码器(630)使用。举例来说,帧间编码器(630)可基于已解码残差数据和帧间预测信息生成已解码块,且帧内编码器(622)可基于已解码残差数据和帧内预测信息生成已解码块。适当处理已解码块以生成已解码图片,且在一些实施例中,所述已解码图片可在存储器电路(未示出)中缓冲并用作参考图片。The residual calculator (623) is used to calculate the difference (residual data) between the received block and the prediction result selected from the intra-frame encoder (622) or the inter-frame encoder (630). The residual encoder (624) is used to operate based on the residual data to encode the residual data to generate transform coefficients. In an embodiment, the residual encoder (624) is used to convert the residual data from the time domain to the frequency domain and generate transform coefficients. The transform coefficients are then quantized to obtain quantized transform coefficients. In various embodiments, the video encoder (603) also includes a residual decoder (628). The residual decoder (628) is used to perform an inverse transform and generate decoded residual data. The decoded residual data can be used appropriately by the intra-frame encoder (622) and the inter-frame encoder (630). For example, the inter-frame encoder (630) can generate a decoded block based on the decoded residual data and inter-frame prediction information, and the intra-frame encoder (622) can generate a decoded block based on the decoded residual data and intra-frame prediction information. The decoded blocks are appropriately processed to generate a decoded picture, and in some embodiments, the decoded picture may be buffered in a memory circuit (not shown) and used as a reference picture.
熵编码器(625)用于将码流格式化以产生已编码的块。熵编码器(625)根据HEVC标准等合适标准产生各种信息。在实施例中,熵编码器(625)用于获得通用控制数据、所选预测信息(例如帧内预测信息或帧间预测信息)、残差信息和码流中的其它合适的信息。应注意,根据所公开的主题,当在帧间模式或双向预测模式的合并子模式中对块进行编码时,不存在残差信息。The entropy encoder (625) is used to format the codestream to produce encoded blocks. The entropy encoder (625) generates various information according to a suitable standard, such as the HEVC standard. In an embodiment, the entropy encoder (625) is used to obtain general control data, selected prediction information (e.g., intra-frame prediction information or inter-frame prediction information), residual information, and other suitable information from the codestream. It should be noted that according to the disclosed subject matter, when encoding a block in inter-frame mode or the merge sub-mode of bidirectional prediction mode, there is no residual information.
图7是根据本申请公开的另一实施例的视频解码器(710)的图。视频解码器(710)用于接收作为已编码视频序列的一部分的已编码图像,且对所述已编码图像进行解码以生成重建的图片。在实施例中,视频解码器(710)用于代替图3实施例中的视频解码器(310)。FIG7 is a diagram of a video decoder (710) according to another embodiment disclosed herein. The video decoder (710) is configured to receive an encoded image as part of an encoded video sequence and decode the encoded image to generate a reconstructed picture. In one embodiment, the video decoder (710) replaces the video decoder (310) in the embodiment of FIG3 .
在图7实施例中,视频解码器(710)包括如图7中所示耦接到一起的熵解码器(771)、帧间解码器(780)、残差解码器(773)、重建模块(774)和帧内解码器(772)。In the FIG. 7 embodiment, the video decoder ( 710 ) includes an entropy decoder ( 771 ), an inter-frame decoder ( 780 ), a residual decoder ( 773 ), a reconstruction module ( 774 ), and an intra-frame decoder ( 772 ) coupled together as shown in FIG. 7 .
熵解码器(771)可用于根据已编码图片来重建某些符号,这些符号表示构成所述已编码图片的语法元素。此类符号可包括例如用于对所述块进行编码的模式(例如帧内模式、帧间模式、双向预测模式、后两者的合并子模式或另一子模式)、可分别识别供帧内解码器(772)或帧间解码器(780)用以进行预测的某些样本或元数据的预测信息(例如帧内预测信息或帧间预测信息)、呈例如量化的变换系数形式的残差信息等等。在实施例中,当预测模式是帧间或双向预测模式时,将帧间预测信息提供到帧间解码器(780);以及当预测类型是帧内预测类型时,将帧内预测信息提供到帧内解码器(772)。残差信息可经由逆量化并提供到残差解码器(773)。The entropy decoder (771) is operable to reconstruct certain symbols representing syntax elements constituting the coded picture from the coded picture. Such symbols may include, for example, the mode used to encode the block (e.g., intra mode, inter mode, bidirectional prediction mode, a combined submode of the latter two, or another submode), prediction information (e.g., intra prediction information or inter prediction information) that can identify certain samples or metadata for prediction by the intra decoder (772) or the inter decoder (780), respectively, residual information in the form of, for example, quantized transform coefficients, and the like. In an embodiment, when the prediction mode is inter or bidirectional prediction mode, the inter prediction information is provided to the inter decoder (780); and when the prediction type is intra prediction type, the intra prediction information is provided to the intra decoder (772). The residual information may be inverse quantized and provided to the residual decoder (773).
帧间解码器(780)用于接收帧间预测信息,且基于所述帧间预测信息生成帧间预测结果。The inter-frame decoder (780) is configured to receive inter-frame prediction information and generate an inter-frame prediction result based on the inter-frame prediction information.
帧内解码器(772)用于接收帧内预测信息,且基于所述帧内预测信息生成预测结果。The intra-frame decoder (772) is configured to receive intra-frame prediction information and generate a prediction result based on the intra-frame prediction information.
残差解码器(773)用于执行逆量化以提取解量化的变换系数,且处理所述解量化的变换系数,以将残差从频域转换到空间域。残差解码器(773)还可能需要某些控制信息(用以获得量化器参数QP),且所述信息可由熵解码器(771)提供(未标示数据路径,因为这仅仅是低量控制信息)。The residual decoder (773) is used to perform inverse quantization to extract dequantized transform coefficients and process the dequantized transform coefficients to convert the residual from the frequency domain to the spatial domain. The residual decoder (773) may also require certain control information (to obtain the quantizer parameter QP), and this information can be provided by the entropy decoder (771) (the data path is not shown because this is only low-level control information).
重建模块(774)用于在空间域中组合由残差解码器(773)输出的残差与预测结果(可由帧间预测模块或帧内预测模块输出)以形成重建的块,所述重建的块可以是重建的图片的一部分,所述重建的图片继而可以是重建的视频的一部分。应注意,可执行解块操作等其它合适的操作来改善视觉质量。The reconstruction module (774) is used to combine the residual output by the residual decoder (773) with the prediction result (which may be output by the inter-frame prediction module or the intra-frame prediction module) in the spatial domain to form a reconstructed block. The reconstructed block can be part of a reconstructed picture, which in turn can be part of a reconstructed video. It should be noted that other suitable operations such as deblocking operations can be performed to improve visual quality.
应注意,可使用任何合适的技术来实施视频编码器(303)、视频编码器(503)和视频编码器(603)以及视频解码器(310)、视频解码器(410)和视频解码器(710)。在实施例中,可使用一个或多个集成电路来实施视频编码器(303)、视频编码器(503)和视频编码器(603)以及视频解码器(310)、视频解码器(410)和视频解码器(710)。在另一实施例中,可使用执行软件指令的一个或多个处理器来实施视频编码器(303)、视频编码器(503)和视频编码器(603)以及视频解码器(310)、视频解码器(410)和视频解码器(710)。It should be noted that the video encoder (303), video encoder (503), and video encoder (603), as well as the video decoder (310), video decoder (410), and video decoder (710) may be implemented using any suitable technology. In one embodiment, the video encoder (303), video encoder (503), and video encoder (603), as well as the video decoder (310), video decoder (410), and video decoder (710) may be implemented using one or more integrated circuits. In another embodiment, the video encoder (303), video encoder (503), and video encoder (603), as well as the video decoder (310), video decoder (410), and video decoder (710) may be implemented using one or more processors executing software instructions.
II.基于子块的合并模式和基于子块的合并候选列表II. Sub-block-based merging mode and sub-block-based merging candidate list
基于子块(或子CU)的合并模式的示例可以包括仿射合并模式、基于子块的时间运动矢量预测(SbTMVP)模式(也称为高级时间运动矢量预测(ATMVP)模式)、帧间平面运动矢量(MV)预测模式、空时运动矢量预测(STMVP)模式等。与不同类型的基于子块的合并模式对应的不同类型的合并候选可以包括在基于子块的合并候选列表中,用于预测编码块的运动矢量。Examples of sub-block (or sub-CU) based merge modes may include affine merge mode, sub-block based temporal motion vector prediction (SbTMVP) mode (also known as advanced temporal motion vector prediction (ATMVP) mode), inter-frame plane motion vector (MV) prediction mode, spatio-temporal motion vector prediction (STMVP) mode, etc. Different types of merge candidates corresponding to different types of sub-block based merge modes may be included in the sub-block based merge candidate list for predicting the motion vector of the coding block.
1.仿射合并模式1. Affine Merge Mode
在仿射运动补偿中,可以使用6参数或简化的4参数仿射模型来有效地预测当前块内的所有样本的运动信息。例如,在仿射已编码或已描述的编码块中,样本的不同部分可以具有不同的运动矢量。在仿射已编码或已描述的块中,具有运动矢量的基本单元被称为子块。在不同的实施例中,子块的尺寸可以小至仅1个样本,也可以大至当前块的尺寸。In affine motion compensation, a 6-parameter or simplified 4-parameter affine model can be used to efficiently predict the motion information of all samples within the current block. For example, in an affine-encoded or described block, different parts of the samples can have different motion vectors. In an affine-encoded or described block, the basic unit with a motion vector is called a sub-block. In different embodiments, the size of a sub-block can be as small as just one sample or as large as the size of the current block.
当仿射合并模式用于编码或解码当前块时,可以使用由仿射合并候选表示的仿射模型为当前块中的每个样本导出运动矢量(相对于目标参考图片)。为了降低实现复杂度,在一些实施例中,仿射运动补偿是基于子块而非基于样本来执行的。例如,每个子块将具有从仿射模型导出的运动矢量。对于每个子块中的样本,运动矢量是相同的。假设每个子块的特定位置(例如子块的左上角或中心点)是相应子块的代表性位置,其可用于导出基于仿射模型的相应运动矢量。在一个示例中,子块具有4×4个样本的尺寸。When the affine merge mode is used to encode or decode the current block, a motion vector (relative to the target reference picture) can be derived for each sample in the current block using the affine model represented by the affine merge candidate. In order to reduce implementation complexity, in some embodiments, affine motion compensation is performed on a sub-block basis rather than on a sample basis. For example, each sub-block will have a motion vector derived from the affine model. The motion vector is the same for the samples in each sub-block. Assuming that a specific position of each sub-block (such as the upper left corner or center point of the sub-block) is a representative position of the corresponding sub-block, it can be used to derive the corresponding motion vector based on the affine model. In one example, the sub-block has a size of 4×4 samples.
在一个实施例中,当使用仿射合并模式时,由当前块的一组控制点处的运动矢量表示的仿射模型被用作合并候选,该合并候选包括在基于子块的合并候选列表中。这种类型的仿射合并候选被称为构建的仿射候选,其是基于当前块的控制点处的运动矢量构建的。In one embodiment, when using affine merge mode, an affine model represented by the motion vectors at a set of control points of the current block is used as a merge candidate, which is included in the sub-block based merge candidate list. This type of affine merge candidate is called a constructed affine candidate, which is constructed based on the motion vectors at the control points of the current block.
在一个实施例中,当使用仿射合并模式时,当前块的空间或时间相邻块的仿射模型被用作合并候选,该合并候选包括在基于子块的合并候选列表中。这种类型的仿射合并候选被称为继承的仿射候选,其是从当前块的仿射已编码的相邻块继承的。In one embodiment, when using affine merge mode, the affine models of the spatial or temporal neighboring blocks of the current block are used as merge candidates, which are included in the sub-block based merge candidate list. This type of affine merge candidate is called an inherited affine candidate, which is inherited from the affine-encoded neighboring blocks of the current block.
使用仿射合并模式可能涉及高计算成本和高存储器存取量。例如,双向仿射合并模式会导致多个双向预测的4×4块,并且可以显著增加存储器的带宽要求。因此,当用硬件实现时,仿射合并模式具有很高的实现复杂度。Using affine merge mode can involve high computational cost and high memory access. For example, a bidirectional affine merge mode results in multiple bidirectionally predicted 4×4 blocks and can significantly increase memory bandwidth requirements. Therefore, when implemented in hardware, affine merge mode has high implementation complexity.
2.基于子块的TMVP(SbTMVP)模式2. Sub-block based TMVP (SbTMVP) mode
在SbTMVP模式中,对HEVC标准中定义的合并模式中所使用的当前块(或当前编码单元)的时间运动矢量预测进行修改。从小于当前块的块中提取多组运动信息(包括运动矢量和参考索引)。图8示出了根据一个实施例的SbTMVP模式的编码过程(800)。In SbTMVP mode, the temporal motion vector prediction for the current block (or current coding unit) used in merge mode defined in the HEVC standard is modified. Multiple sets of motion information (including motion vectors and reference indices) are extracted from blocks smaller than the current block. Figure 8 shows the encoding process (800) of SbTMVP mode according to one embodiment.
在SbTMVP模式编码过程(800)中,可以通过两个步骤获得当前图片(810)中的CU811内的子CU812的运动矢量的预测。第一步骤是用所谓的时间矢量(801)来识别参考图片(820)中的相应块(821)。参考图片(820)被称为运动源图片(820)。第二步骤是将当前CU(811)分割成子CU(812),并从对应于每个子CU(812)的块(822)获取运动矢量的预测以及每个子CU(812)的参考索引。在一个示例中,每个子CU(812)都是具有N×N个样本尺寸的正方形块。在一个示例中,默认将N设置为8。In the SbTMVP mode encoding process (800), the prediction of the motion vector of the sub-CU812 within the CU811 in the current picture (810) can be obtained in two steps. The first step is to identify the corresponding block (821) in the reference picture (820) using the so-called time vector (801). The reference picture (820) is called the motion source picture (820). The second step is to split the current CU (811) into sub-CUs (812) and obtain the prediction of the motion vector and the reference index of each sub-CU (812) from the block (822) corresponding to each sub-CU (812). In one example, each sub-CU (812) is a square block with a size of N×N samples. In one example, N is set to 8 by default.
在第一步骤中,参考图片(820)和相应块(821)可以通过当前CU(811)的空间相邻块之一的运动信息来确定。在一些实施中,为了避免相邻块的重复扫描过程,当前CU(811)的合并候选列表中的第一合并候选可用作时间矢量(801)。例如,将合并候选列表上的第一可用运动矢量及其相关联的参考索引设置为时间矢量(801)和运动源图片的索引(820)。这样,与HEVC中的时间运动矢量预测相比,可以更精确地识别相应块(821),其中,相应块(有时称为并置块)总是处于相对于当前CU的右下或中心位置。In a first step, a reference picture (820) and a corresponding block (821) may be determined by using motion information of one of the spatially neighboring blocks of the current CU (811). In some implementations, to avoid repeated scanning of neighboring blocks, the first merge candidate in the merge candidate list of the current CU (811) may be used as the temporal vector (801). For example, the first available motion vector on the merge candidate list and its associated reference index are set to the temporal vector (801) and the index (820) of the motion source picture. This allows for more accurate identification of the corresponding block (821) compared to temporal motion vector prediction in HEVC, where the corresponding block (sometimes referred to as a collocated block) is always in the lower right or center position relative to the current CU.
在第二步骤中,对于每个子CU(812),使用块(822)的运动信息(823)(来自覆盖块(822)的中心样本的最小运动栅格)来导出子CU(812)的运动信息。在识别出对应的N×N块(822)的运动信息(823)之后,以与HEVC中的时间运动矢量预测相同的方式,将运动信息(823)转换为当前子CU(812)的运动矢量和参考索引。例如,可以应用运动缩放和其它过程。例如,解码器可以检查是否满足低延迟条件(即,当前图片的所有参考图片的图片顺序号(POC)小于当前图片的POC)。在一些示例中,运动矢量MVx(对应于参考图片列表X的运动矢量)可用于预测每个子CU(812)的运动矢量MVy(其中X等于0或1且Y等于1-X)。In a second step, for each sub-CU (812), motion information for the sub-CU (812) is derived using the motion information (823) of the block (822) (from the minimum motion grid covering the center sample of the block (822). After identifying the motion information (823) of the corresponding N×N block (822), the motion information (823) is converted into a motion vector and reference index for the current sub-CU (812) in the same manner as temporal motion vector prediction in HEVC. For example, motion scaling and other processes may be applied. For example, the decoder may check whether a low latency condition is met (i.e., the picture order number (POC) of all reference pictures of the current picture is less than the POC of the current picture). In some examples, the motion vector MVx (corresponding to the motion vector of reference picture list X) may be used to predict the motion vector MVy (where X is equal to 0 or 1 and Y is equal to 1-X) for each sub-CU (812).
3.平面MV预测模式3. Planar MV prediction mode
平面MV预测模式(也称为帧间平面MV预测模式,或帧间平面模式)可以提供具有子块MV的特殊合并候选。平面MV预测模式可用于生成平滑的细粒度运动场。图9A-9B示出了根据一个实施例的平面MV预测过程。Planar MV prediction mode (also called inter-frame planar MV prediction mode, or inter-frame planar mode) can provide special merge candidates with sub-block MVs. Planar MV prediction mode can be used to generate smooth fine-grained motion fields. Figures 9A-9B show the planar MV prediction process according to one embodiment.
在图9A-9B中,当前块(901)被划分成子块,例如,每个子块具有4×4个样本的尺寸。当前块(901)可以具有W个样本的宽度和H个样本的高度。位于位置(x,y)处的子块(910)被称为当前子块,其被作为示例来说明子块(910)的运动矢量P(x,y)是如何导出的。坐标(x,y)是相对于当前块(901)内的左上子块(902)的,左上子块(902)的坐标为(0,0)。In Figures 9A-9B, the current block (901) is divided into sub-blocks, for example, each sub-block having a size of 4×4 samples. The current block (901) may have a width of W samples and a height of H samples. The sub-block (910) at position (x, y) is referred to as the current sub-block, which is used as an example to illustrate how the motion vector P(x, y) of the sub-block (910) is derived. The coordinates (x, y) are relative to the upper left sub-block (902) within the current block (901), and the coordinates of the upper left sub-block (902) are (0, 0).
例如,可以通过如下公式在4×4块的基础上对水平线性插值Ph(x,y)和垂直线性插值Pv(x,y)求平均来导出运动矢量P(x,y):For example, the motion vector P(x, y) may be derived by averaging the horizontal linear interpolation Ph (x, y) and the vertical linear interpolation Pv (x, y) on a 4×4 block basis using the following formula:
P(x,y)=(H×Ph(x,y)+W×Pv(x,y)+H×W)/(2×H×W)P(x, y)=(H×P h (x, y)+W×P v (x, y)+H×W)/(2×H×W)
在一个示例中,水平线性插值Ph(x,y)和垂直线性插值Pv(x,y)可以根据下式导出:In one example, the horizontal linear interpolation Ph (x, y) and the vertical linear interpolation Pv (x, y) can be derived according to the following formula:
Ph(x,y)=(W-1-x)×L(-1,y)+(x+1)×R(W,y)P h (x, y)=(W-1-x)×L(-1, y)+(x+1)×R(W, y)
Pv(x,y)=(H-1-y)×A(x,-1)+(y+1)×B(x,H)P v (x, y)=(H-1-y)×A(x,-1)+(y+1)×B(x, H)
其中,L(-1,y)和R(W,y)是当前块(901)左侧和右侧的4×4块(911)和4×4块(912)的运动矢量,A(x,-1)和B(x,H)是当前块(901)上方和底部的4×4块(913)和4×4块(914)的运动矢量。Wherein, L(-1, y) and R(W, y) are the motion vectors of the 4×4 block (911) and the 4×4 block (912) on the left and right sides of the current block (901), and A(x, -1) and B(x, H) are the motion vectors of the 4×4 block (913) and the 4×4 block (914) above and below the current block (901).
右列相邻4×4块的运动矢量的计算可以基于右下角时间相邻4×4块(905)的导出运动信息(由BR表示)和右上角相邻4×4块(904)的运动信息(由AR表示)。底行相邻4×4块的运动矢量的计算可以基于右下角相邻4×4块(905)的导出运动信息和左下角相邻4×4块(903)的运动信息(由BL表示)。The motion vector of the right column adjacent 4×4 block can be calculated based on the derived motion information (denoted by BR) of the lower right temporal adjacent 4×4 block (905) and the motion information (denoted by AR) of the upper right adjacent 4×4 block (904). The motion vector of the bottom row adjacent 4×4 block can be calculated based on the derived motion information of the lower right adjacent 4×4 block (905) and the motion information (denoted by BL) of the lower left adjacent 4×4 block (903).
例如,运动矢量R(W,y)和B(x,H)可以根据下式确定:For example, the motion vectors R(W, y) and B(x, H) can be determined according to the following equations:
R(W,y)=((H-y-1)AR+(y+1)BR)/HR(W,y)=((H-y-1)AR+(y+1)BR)/H
B(x,H)=((W-x-1)BL+(x+1)BR)/W.B(x,H)=((W-x-1)BL+(x+1)BR)/W.
4.STMVP模式4.STMVP model
在STMVP模式中,可以按照光栅扫描顺序递归地导出当前CU(或当前块)的子CU的运动矢量。图10示出了根据一个实施例的STMVP过程。在图10中,8×8CU(1010)被划分成四个4×4子CU(或子块)A、B、C、和D。当前图片中的当前CU(1010)的四个相邻4×4块被标记为a、b、c、和d。在其他示例中,子CU可以具有不同的尺寸。In STMVP mode, the motion vectors of the sub-CUs of the current CU (or current block) can be recursively derived in raster scan order. Figure 10 shows the STMVP process according to one embodiment. In Figure 10, the 8×8 CU (1010) is divided into four 4×4 sub-CUs (or sub-blocks) A, B, C, and D. The four adjacent 4×4 blocks of the current CU (1010) in the current picture are labeled a, b, c, and d. In other examples, the sub-CUs can have different sizes.
例如,子CU A的运动推导可以通过识别子CU A的两个空间相邻块来开始。第一个考虑的相邻块是子CU A之上的4×4块(块c)。如果块c不可用或者被帧内编码,则检查子CUA上方的其它4×4块(从块c开始从左到右检查)。第二个相邻块是子CU A左侧的4×4块(块b)。如果块b不可用或者被帧内编码,则检查子CU A左侧的其它块(从块b开始从上到下检查)。从每个参考图片列表的两个相邻块获得的运动信息被缩放为给定列表的第一参考图片。接下来,例如,根据与HEVC中规定的TMVP推导相同的过程来导出子块A的时间运动矢量预测值。例如,提取位置D处的参考图片中的并置块的运动信息并相应地进行缩放。最后,在检索并缩放两个空间相邻块和一个时间相邻块(如果可用)的运动信息之后,可针对每个参考图片列表分别对所有可用运动矢量(最多3个)求平均。平均运动矢量被指定为当前子CU(1010)的运动矢量预测。For example, the motion derivation of sub-CU A can start by identifying two spatial neighboring blocks of sub-CU A. The first neighboring block considered is the 4×4 block above sub-CU A (block c). If block c is not available or is intra-coded, check the other 4×4 blocks above sub-CU A (check from left to right starting from block c). The second neighboring block is the 4×4 block to the left of sub-CU A (block b). If block b is not available or is intra-coded, check the other blocks to the left of sub-CU A (check from top to bottom starting from block b). The motion information obtained from the two neighboring blocks of each reference picture list is scaled to the first reference picture of the given list. Next, for example, the temporal motion vector prediction value of sub-block A is derived according to the same process as the TMVP derivation specified in HEVC. For example, the motion information of the collocated block in the reference picture at position D is extracted and scaled accordingly. Finally, after retrieving and scaling the motion information of two spatial neighboring blocks and one temporal neighboring block (if available), all available motion vectors (up to 3) can be averaged for each reference picture list. The average motion vector is designated as the motion vector prediction for the current sub-CU (1010).
5.基于子块的帧间合并候选列表5. Sub-block based inter-frame merging candidate list
仿射合并模式、帧间平面模式、STMVP模式、和SbTMVP模式都是基于子块的合并模式。当使用基于子块的合并模式来处理当前块时,当前块被划分成子块。导出这些子块中的MV值,并将其用作对当前块进行编码或解码的MV预测。应注意,仿射合并模式、帧间平面模式、STMVP模式、和SbTMVP模式是被当作示例来说明基于子块的合并模式的。在其他示例中,可以使用其他类型的基于子块的合并模式。Affine merge mode, inter-frame plane mode, STMVP mode, and SbTMVP mode are all sub-block-based merge modes. When using sub-block-based merge mode to process the current block, the current block is divided into sub-blocks. The MV values in these sub-blocks are derived and used as the MV prediction for encoding or decoding the current block. It should be noted that affine merge mode, inter-frame plane mode, STMVP mode, and SbTMVP mode are used as examples to illustrate sub-block-based merge modes. In other examples, other types of sub-block-based merge modes can be used.
在一个实施例中,可以确定对应于不同的基于子块的合并模式的不同类型的基于子块的合并候选,并将其包括在基于子块的合并候选列表中,以用于处理当前块。基于子块的合并候选列表可以与基于块的帧间合并候选列表分离,如在HEVC或通用视频编码(VVC)、VTM-2.0的测试模型中所使用的一样。In one embodiment, different types of sub-block based merge candidates corresponding to different sub-block based merge modes may be determined and included in a sub-block based merge candidate list for processing the current block. The sub-block based merge candidate list may be separate from the block based inter-frame merge candidate list, as used in the test model of HEVC or Universal Video Coding (VVC), VTM-2.0.
在一个实施例中,可以根据以下步骤来构建基于子块的合并候选列表:In one embodiment, a sub-block-based merge candidate list may be constructed according to the following steps:
(i)插入SbTMVP候选,其包括以SbTMVP模式导出的子块运动矢量。(i) Insert SbTMVP candidates, which include sub-block motion vectors derived in SbTMVP mode.
(ii)插入STMVP候选,其包括以STMVP模式导出的子块运动矢量。(ii) Insert STMVP candidates, which include sub-block motion vectors derived in STMVP mode.
(iii)插入以仿射合并模式获得的一组继承的仿射候选。(iii) Insert a set of inherited affine candidates obtained in affine merge mode.
(iv)插入以仿射合并模式获得的一组构建的仿射候选。(iv) Insert a set of constructed affine candidates obtained in affine merge mode.
(v)插入平面MV预测候选,其包括以平面MV预测模式导出的子块运动矢量。(v) Insert a plane MV prediction candidate, which includes the sub-block motion vector derived in plane MV prediction mode.
(vi)填充零运动矢量。(vi) Fill with zero motion vectors.
在上述步骤中,将不同类型的基于子块的合并候选添加到基于子块的合并候选列表,直到达到基于子块的合并候选列表的最大允许数量。当可用的基于子块的合并候选不能填充基于子块的合并候选列表的所有位置时,可以填充生成的候选(例如,零运动矢量)。In the above steps, different types of sub-block based merge candidates are added to the sub-block based merge candidate list until the maximum allowed number of sub-block based merge candidate lists is reached. When the available sub-block based merge candidates cannot fill all positions of the sub-block based merge candidate list, generated candidates (e.g., zero motion vectors) may be filled.
当使用单独的基于子块的帧间合并候选列表时,在比特流中的合并标志之后可以存在使用标志,以指示基于子块的合并候选列表的使用。When a separate sub-block based inter merge candidate list is used, a usage flag may be present after the merge flag in the bitstream to indicate the use of the sub-block based merge candidate list.
III.启用和禁用基于子块的帧间合并候选列表III. Enabling and disabling sub-block based inter-frame merge candidate lists
在一些实施例中,基于子块的帧间合并候选列表(也称为子块合并列表或子块合并候选列表)与基于块的帧间合并候选列表(或称为块合并列表)分离。当使用子块合并列表时,可能导致高昂的计算成本。例如,当将基于子块的合并候选添加到子块合并列表时,可以执行修剪过程。修剪过程可涉及将待添加的候选与子块合并列表上的候选进行比较。如上所述,子块合并列表上的候选可以包括来自多个子块的运动矢量,这些运动矢量远多于块合并列表上的候选的运动矢量。因此,与块合并列表相比,修剪子块合并列表可能导致更高的计算成本。因此,当图片内的区域包括大量小编码块时,使用基于子块的合并模式处理这些小编码块可能成本过高。In some embodiments, a sub-block based inter-frame merge candidate list (also referred to as a sub-block merge list or a sub-block merge candidate list) may be separated from a block-based inter-frame merge candidate list (or referred to as a block merge list). When a sub-block merge list is used, high computational costs may be incurred. For example, when a sub-block based merge candidate is added to a sub-block merge list, a pruning process may be performed. The pruning process may involve comparing the candidate to be added with the candidates on the sub-block merge list. As described above, the candidates on the sub-block merge list may include motion vectors from multiple sub-blocks, which are far more than the motion vectors of the candidates on the block merge list. Therefore, pruning the sub-block merge list may result in higher computational costs compared to the block merge list. Therefore, when an area within a picture includes a large number of small coding blocks, it may be too costly to process these small coding blocks using a sub-block based merge mode.
为了解决上述问题,在一些实施例中,当当前块与尺寸阈值相比具有较小尺寸时,可以禁用子块合并列表。结果,基于子块的合并模式不会用于编码或解码尺寸较小的当前块。To address the above issues, in some embodiments, when the current block has a smaller size than a size threshold, the sub-block merge list may be disabled. As a result, the sub-block based merge mode will not be used to encode or decode the smaller current block.
在一些实施例中,当在单独的列表中构建基于子块的合并候选时,可以使用当前块尺寸的阈值。当当前块尺寸低于阈值时,对当前块禁用基于子块的合并列表。在一些实施例中,当在单独的列表中构建基于子块的合并候选时,可以使用当前块的像素(或样本)数量的阈值。当块的像素的数量低于阈值时,对当前块禁用基于子块的合并列表。In some embodiments, a threshold value of the current block size may be used when constructing sub-block based merge candidates in a separate list. When the current block size is below the threshold, the sub-block based merge list is disabled for the current block. In some embodiments, a threshold value of the number of pixels (or samples) of the current block may be used when constructing sub-block based merge candidates in a separate list. When the number of pixels of the block is below the threshold, the sub-block based merge list is disabled for the current block.
在一些实施例中,当子块合并候选列表被用作单独的合并列表时,在子块合并候选列表中只包括基于子块的候选。基于子块的候选可以是任何种类的基于子块的帧间合并候选,并不限于前述的基于子块的合并候选类型(仿射候选、SbTMVP候选、STMVP候选、平面MV候选等)。可以使用一组统一的条件来启用或禁用与子块合并候选列表相关联的基于子块的MV预测模式。In some embodiments, when the sub-block merge candidate list is used as a separate merge list, only sub-block-based candidates are included in the sub-block merge candidate list. The sub-block-based candidate can be any type of sub-block-based inter-frame merge candidate and is not limited to the aforementioned sub-block-based merge candidate types (affine candidate, SbTMVP candidate, STMVP candidate, planar MV candidate, etc.). A unified set of conditions can be used to enable or disable the sub-block-based MV prediction mode associated with the sub-block merge candidate list.
实施例AExample A
在一个实施例中,可以使用预定义阈值来约束可以使用基于子块的合并列表的当前块的尺寸。当当前块的高度或宽度小于阈值时,将不使用基于子块的合并列表。换句话说,对当前块禁用所有子块合并模式。基于子块的合并列表的使用标志可以被推断为假。在一个示例中,预定义阈值可以是16个亮度样本。在另一个示例中,预定义阈值可以是8个亮度样本。阈值的值可以是任何数字,并不限于这些示例。In one embodiment, a predefined threshold can be used to constrain the size of the current block for which a sub-block-based merge list can be used. When the height or width of the current block is less than the threshold, the sub-block-based merge list will not be used. In other words, all sub-block merge modes are disabled for the current block. The flag for using a sub-block-based merge list can be inferred to be false. In one example, the predefined threshold can be 16 luma samples. In another example, the predefined threshold can be 8 luma samples. The threshold value can be any number and is not limited to these examples.
在另一个实施例中,可以在比特流中发信号通知阈值而不是预定义阈值。例如,可以在序列参数集(SPS)、图片参数集(PPS)、条带头、图块组头等中用信号通知阈值。In another embodiment, the threshold value may be signaled in the bitstream instead of a predefined threshold value. For example, the threshold value may be signaled in a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, a tile group header, etc.
图11示出了根据本申请的一个实施例的语法表(1100)。语法表(1100)包括16行语法,其描述如何在比特流中传输语法元素以及当在解码器中处理比特流时如何解析语法元素。这些语法元素提供在坐标为[x0,y0]的位置处解码当前块(或编码单元)所需的参数。FIG11 shows a syntax table (1100) according to one embodiment of the present application. The syntax table (1100) includes 16 lines of syntax that describe how syntax elements are transmitted in the bitstream and how to parse the syntax elements when the bitstream is processed in the decoder. These syntax elements provide the parameters required to decode the current block (or coding unit) at the coordinates [x0, y0].
具体地,在第3行,通过检查cu_skip_flag[x0][y0]来确定是否要使用跳过模式。如果不使用跳过模式,则从第9行开始,考虑合并模式。当使用跳过模式处理当前块时,当前块的残差被编码并在比特流中传输。当使用合并模式处理当前块时,不产生或编码残差信号。Specifically, at line 3, it is determined whether skip mode is to be used by checking cu_skip_flag[x0][y0]. If skip mode is not to be used, then starting at line 9, merge mode is considered. When skip mode is used to process the current block, the residual of the current block is encoded and transmitted in the bitstream. When merge mode is used to process the current block, no residual signal is generated or encoded.
当使用跳过模式时,在第4行,通过检查条件“(sps_affine_enabled_flag||sps_atmvp_enabled_flag||sps_mvplanar_enabled_flag)&&!(cbWidth<8||cbHeight<8)”来确定是启用还是禁用子块合并列表。特别地,条件“!(cbWidth<8||cbHeight<8)”指示当前块的宽度(由cbWidth表示)或高度(cbHeight)是否小于阈值(8个样本)。当当前块的宽度(由cbWidth表示)或高度(cbHeight)小于阈值时,条件“!(cbWidth<8||cbHeight<8)”将为假。相应地,条件“(sps_affine_enabled_flag||sps_atmvp_enabled_flag||sps_mvplanar_enabled_flag)&&!(cbWidth<8||cbHeight<8)”将为假,并且将禁用子块合并列表。When skip mode is used, on line 4, whether to enable or disable the sub-block merge list is determined by checking the condition "(sps_affine_enabled_flag||sps_atmvp_enabled_flag||sps_mvplanar_enabled_flag)&&!(cbWidth<8||cbHeight<8)". In particular, the condition "!(cbWidth<8||cbHeight<8)" indicates whether the width (represented by cbWidth) or height (cbHeight) of the current block is less than a threshold (8 samples). When the width (represented by cbWidth) or height (cbHeight) of the current block is less than the threshold, the condition "!(cbWidth<8||cbHeight<8)" will be false. Accordingly, the condition "(sps_affine_enabled_flag||sps_atmvp_enabled_flag||sps_mvplanar_enabled_flag)&&!(cbWidth<8||cbHeight<8)" will be false, and the sub-block merge list will be disabled.
如果启用子块合并列表(例如,宽度或高度中的任一个大于或等于阈值(8个样本)),则在比特流中传输语法元素“merge_subblock_flag[x0][y0]”(其为使用标志)。或者换言之,比特流中的下一语法元素被解释为“merge_subblock_flag[x0][y0]”。例如,语法元素“merge_subblock_flag[x0][y0]”可以指示是否要使用子块合并列表。If the sub-block merge list is enabled (e.g., either the width or the height is greater than or equal to the threshold (8 samples)), the syntax element "merge_subblock_flag[x0][y0]" (which is a usage flag) is transmitted in the bitstream. Or in other words, the next syntax element in the bitstream is interpreted as "merge_subblock_flag[x0][y0]". For example, the syntax element "merge_subblock_flag[x0][y0]" can indicate whether the sub-block merge list is to be used.
相反,如果禁用子块合并列表,则语法元素“merge_subblock_flag[x0][y0]”将不在比特流中传输。相应地,解码器将“merge_subblock_flag[x0][y0]”推断为假,并且将不使用子块合并列表来解码当前块。Conversely, if the sub-block merge list is disabled, the syntax element "merge_subblock_flag[x0][y0]" will not be transmitted in the bitstream. Accordingly, the decoder infers "merge_subblock_flag[x0][y0]" to be false and will not use the sub-block merge list to decode the current block.
类似地,当使用合并模式时,在第11行,使用尺寸阈值(8个样本)来确定下一个语法元素是否是“merge_subblock_flag[x0][y0]”。当当前块的权重或高度大于或等于尺寸阈值时,下一个语法元素不是“merge_subblock_flag[x0][y0]”。解码器将“merge_subblock_flag[x0][y0]]”解释为假,并且将不使用子块合并列表来解码当前块。Similarly, when merge mode is used, on line 11, a size threshold (8 samples) is used to determine whether the next syntax element is "merge_subblock_flag[x0][y0]". When the weight or height of the current block is greater than or equal to the size threshold, the next syntax element is not "merge_subblock_flag[x0][y0]". The decoder interprets "merge_subblock_flag[x0][y0]] as false and will not use the sub-block merge list to decode the current block.
实施例BExample B
在另一个实施例中,可以使用预定义阈值来约束可以使用基于子块的合并列表的当前块的尺寸。当当前块的高度和宽度都小于阈值时,对当前块禁用所有子块合并模式。基于子块的合并列表的使用标志可以被推断为假。在一个示例中,预定义阈值可以是16个亮度样本。在另一个示例中,预定义阈值可以是8个亮度样本。阈值的值可以是任何数量的样本,并不限于这些示例。In another embodiment, a predefined threshold can be used to constrain the size of the current block for which a sub-block-based merge list can be used. When both the height and width of the current block are less than the threshold, all sub-block merge modes are disabled for the current block. The flag for using a sub-block-based merge list can be inferred to be false. In one example, the predefined threshold can be 16 luma samples. In another example, the predefined threshold can be 8 luma samples. The threshold value can be any number of samples and is not limited to these examples.
在另一个实施例中,可以在比特流中发信号通知阈值而不是预定义阈值。例如,可以在序列参数集(SPS)、图片参数集(PPS)、条带头、图块组头等中用信号通知阈值。In another embodiment, the threshold value may be signaled in the bitstream instead of a predefined threshold value. For example, the threshold value may be signaled in a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, a tile group header, etc.
图12示出了根据本申请的一个实施例的语法表(1200)。语法表(1200)类似于语法表(1100)。在第4行和第11行使用尺寸阈值(16个样本)来确定是否禁用子块合并列表解码位置[x0,y0]处的当前块。对比于图11,用于比较当前块的宽度和高度的条件表示为“!(cbWidth<16&&cbHeight<16)”。当当前块的宽度和高度都小于16个样本时,条件将为假,并且将禁用子块合并列表。相应地,下一个语法元素不是“merge_subblock_flag[x0][y0]”。语法元素“merge_subblock_flag[x0][y0]”将被推断为假。Figure 12 shows a syntax table (1200) according to an embodiment of the present application. Syntax table (1200) is similar to syntax table (1100). A size threshold (16 samples) is used in lines 4 and 11 to determine whether to disable the sub-block merge list decoding of the current block at position [x0, y0]. Compared to Figure 11, the condition for comparing the width and height of the current block is expressed as "!(cbWidth<16&&cbHeight<16)". When the width and height of the current block are both less than 16 samples, the condition will be false and the sub-block merge list will be disabled. Accordingly, the next syntax element is not "merge_subblock_flag[x0][y0]". The syntax element "merge_subblock_flag[x0][y0]" will be inferred to be false.
实施例CExample C
在另一个实施例中,可以使用表示编码块内的样本的数量的预定义阈值来约束可以使用基于子块的合并列表的当前块的尺寸。当当前块的亮度样本的数量小于阈值时,对当前块禁用所有子块合并模式。基于子块的合并列表的使用标志可以被推断为假。在一个示例中,阈值可以是64个亮度样本。在另一个示例中,阈值可以是128个亮度样本。阈值的值可以是任何数字,并不限于这些示例。In another embodiment, a predefined threshold representing the number of samples within a coding block can be used to constrain the size of the current block for which sub-block-based merge lists can be used. When the number of luma samples in the current block is less than the threshold, all sub-block merge modes are disabled for the current block. The flag for using sub-block-based merge lists can be inferred to be false. In one example, the threshold can be 64 luma samples. In another example, the threshold can be 128 luma samples. The value of the threshold can be any number and is not limited to these examples.
在另一个实施例中,可以在比特流中发信号通知阈值而不是预定义阈值。例如,可以在序列参数集(SPS)、图片参数集(PPS)、条带头、图块组头等中用信号通知阈值。In another embodiment, the threshold value may be signaled in the bitstream instead of a predefined threshold value. For example, the threshold value may be signaled in a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, a tile group header, etc.
图13示出了根据本申请的一个实施例的语法表(1300)。语法表(1300)类似于语法表(1100)。在第4行和第11行使用尺寸阈值(编码块内的64个样本)来确定是否禁用基于子块的合并列表解码位置[x0,y0]处的当前块。对比于图11,用于比较当前块的尺寸的条件表示为“!(cbWidth*cbHeight<64)”。由当前块内的样本的数量表示的当前块的尺寸由cbWidth*cbHeight来表示。当当前块内的样本的数量小于64个样本时,条件将为假,并且将禁用子块合并列表。相应地,下一个语法元素不是“merge_subblock_flag[x0][y0]”。语法元素“merge_subblock_flag[x0][y0]”将被推断为假。FIG13 shows a syntax table (1300) according to an embodiment of the present application. The syntax table (1300) is similar to the syntax table (1100). A size threshold (64 samples within the coding block) is used in lines 4 and 11 to determine whether to disable sub-block based merge list decoding of the current block at position [x0, y0]. In contrast to FIG11 , the condition for comparing the size of the current block is expressed as “!(cbWidth*cbHeight<64)”. The size of the current block represented by the number of samples within the current block is represented by cbWidth*cbHeight. When the number of samples within the current block is less than 64 samples, the condition will be false and the sub-block merge list will be disabled. Accordingly, the next syntax element is not “merge_subblock_flag[x0][y0]”. The syntax element “merge_subblock_flag[x0][y0]” will be inferred to be false.
IV.禁用基于子块的合并候选的类别IV. Disabling Classes of Sub-Block-Based Merge Candidates
为了解决由于采用基于子块的合并列表而导致的高计算成本的问题,在一些实施例中,可以单独禁用一种或多种特定类型的子块合并模式。当与模式特定的尺寸阈值(或类型相关尺寸阈值)相比当前块的尺寸较小时,可禁用相应的子块合并模式。结果,禁用的子块合并模式的候选不会被添加到用于编码或解码当前块的子块合并列表。To address the high computational cost associated with using a sub-block-based merge list, in some embodiments, one or more specific types of sub-block merge modes can be individually disabled. When the size of the current block is smaller than a mode-specific size threshold (or type-dependent size threshold), the corresponding sub-block merge mode can be disabled. Consequently, candidates for the disabled sub-block merge modes are not added to the sub-block merge list used to encode or decode the current block.
在一些实施例中,当在单独的合并列表中构建基于子块的合并候选时(与基于块的合并列表分离),可以使用当前块尺寸的单独条件来禁用每种类别的基于子块的合并候选,使得禁用的类别的候选可以不被添加到单独的合并列表。In some embodiments, when constructing sub-block based merge candidates in a separate merge list (separate from the block based merge list), a separate condition of the current block size may be used to disable each category of sub-block based merge candidates so that candidates of the disabled category may not be added to the separate merge list.
在一些实施例中,将一些类别的基于子块的合并候选有条件地包括在子块合并列表中。子块合并列表可以不总是包括基于子块的合并候选的所有类别。In some embodiments, some categories of sub-block based merge candidates are conditionally included in the sub-block merge list.The sub-block merge list may not always include all categories of sub-block based merge candidates.
类似地,在一些实施例中,当子块合并候选列表被用作单独的合并列表时,仅包括基于子块的候选。基于子块的候选可以是任何种类的基于子块的帧间合并候选,并不限于前述的基于子块的合并候选类型(仿射候选、SbTMVP候选、STMVP候选、平面MV候选等)。Similarly, in some embodiments, when the sub-block merge candidate list is used as a separate merge list, only sub-block based candidates are included. The sub-block based candidate can be any type of sub-block based inter-frame merge candidate, and is not limited to the aforementioned sub-block based merge candidate types (affine candidate, SbTMVP candidate, STMVP candidate, planar MV candidate, etc.).
实施例DExample D
在一个实施例中,当满足当前块的尺寸的条件时,仿射合并候选可以不被添加到子块合并候选列表。条件可以是以下之一:In one embodiment, when the condition of the size of the current block is met, the affine merge candidate may not be added to the sub-block merge candidate list. The condition may be one of the following:
(a)当前块的高度或宽度小于阈值,例如样本数量;(a) The height or width of the current block is less than a threshold, such as the number of samples;
(b)当前块的高度或宽度小于或等于阈值;(b) the height or width of the current block is less than or equal to the threshold;
(c)当前块的高度和宽度均小于阈值;(c) The height and width of the current block are both smaller than the threshold;
(d)当前块的高度和宽度均小于或等于阈值;(d) The height and width of the current block are both less than or equal to the threshold;
(e)高度*宽度的值小于阈值;(e) The value of height*width is less than the threshold;
(f)高度*宽度的值小于或等于阈值。(f) The value of height*width is less than or equal to the threshold.
在一个实施例中,当当前块的宽度和高度中的任一个小于8个亮度样本时,可以禁用仿射合并候选,并且不将其添加到子块合并候选列表。In one embodiment, when either of the width and height of the current block is less than 8 luma samples, the affine merge candidate may be disabled and not added to the sub-block merge candidate list.
实施例EExample E
在一个实施例中,当满足当前块的尺寸的另一个条件时,SbTMVP候选可以不被添加到子块合并候选列表。条件可以是以下之一:In one embodiment, when another condition of the size of the current block is met, the SbTMVP candidate may not be added to the sub-block merge candidate list. The condition may be one of the following:
(a)当前块的高度或宽度小于阈值;(a) The height or width of the current block is less than the threshold;
(b)当前块的高度或宽度小于或等于阈值;(b) the height or width of the current block is less than or equal to the threshold;
(c)当前块的高度和宽度均小于阈值;(c) The height and width of the current block are both smaller than the threshold;
(d)当前块的高度和宽度均小于或等于阈值;(d) The height and width of the current block are both less than or equal to the threshold;
(e)高度*宽度的值小于阈值;(e) The value of height*width is less than the threshold;
(f)高度*宽度的值小于或等于阈值。(f) The value of height*width is less than or equal to the threshold.
在一个实施例中,当当前块的宽度和高度均小于8个亮度样本时,可以禁用SbTMVP候选,并且不将其添加到子块合并候选列表。In one embodiment, when both the width and height of the current block are less than 8 luma samples, the SbTMVP candidate may be disabled and not added to the sub-block merge candidate list.
实施例FExample F
当满足当前块的尺寸的另一个条件时,平面MV预测候选可以不被添加到子块合并候选列表。条件可以是以下之一:When another condition of the size of the current block is met, the plane MV prediction candidate may not be added to the sub-block merging candidate list. The condition may be one of the following:
(a)当前块的高度或宽度小于阈值;(a) The height or width of the current block is less than the threshold;
(b)当前块的高度或宽度小于或等于阈值;(b) the height or width of the current block is less than or equal to the threshold;
(c)当前块的高度和宽度均小于阈值;(c) The height and width of the current block are both smaller than the threshold;
(d)当前块的高度和宽度均小于或等于阈值;(d) The height and width of the current block are both less than or equal to the threshold;
(e)高度*宽度的值小于阈值;(e) The value of height*width is less than the threshold;
(f)高度*宽度的值小于或等于阈值。(f) The value of height*width is less than or equal to the threshold.
在一个实施例中,当当前块的宽度和高度均小于16个亮度样本时,可以禁用SbTMVP候选,并且不将其添加到候选列表。In one embodiment, when both the width and height of the current block are less than 16 luma samples, the SbTMVP candidate may be disabled and not added to the candidate list.
实施例GExample G
还可以使用每种类别的单独条件来有条件地禁用除了在实施例D-F中描述的基于子块的合并候选的类别之外的其它类别的基于子块的合并候选。It is also possible to conditionally disable categories of sub-block based merge candidates other than the categories of sub-block based merge candidates described in Embodiments D-F using separate conditions for each category.
实施例HExample H
在一个实施例中,构建子块合并列表时,当子块合并候选列表为空,或者可用的基于子块的合并候选的数量小于候选的最大允许数量时,可以将一些生成的合并候选添加到子块合并列表,直到候选的数量等于最大允许数量。In one embodiment, when constructing a sub-block merge list, when the sub-block merge candidate list is empty, or the number of available sub-block-based merge candidates is less than the maximum allowed number of candidates, some generated merge candidates may be added to the sub-block merge list until the number of candidates equals the maximum allowed number.
在一个实施例中,零运动候选被用于子块合并候选列表上的那些剩余的空位置,直到子块合并候选列表填满。这些零候选具有零空间位移和参考图片索引,该参考图片索引从零开始并且每当新的零运动候选添加到列表中时都会增加。这些候选使用的参考图片的数量是1和2,分别用于单向预测和双向预测。In one embodiment, zero motion candidates are used for the remaining empty positions on the sub-block merging candidate list until the sub-block merging candidate list is filled. These zero candidates have zero spatial displacement and a reference picture index that starts at zero and increases each time a new zero motion candidate is added to the list. The number of reference pictures used by these candidates is 1 and 2, for unidirectional prediction and bidirectional prediction, respectively.
例如,第一零候选可以使用在第一参考图片列表L0上索引为0的第一参考图片和在第二参考图片列表L1上索引为0的第一参考图片,用于当前块的子块中的双向预测(每个包括两个运动矢量)。第二零候选可以使用列表L0上索引为1的第二参考图片和列表L1上索引为1的第二参考图片,用于当前块的子块中的双向预测(每个包括两个运动矢量)。For example, the first zero candidate may use the first reference picture indexed 0 on the first reference picture list L0 and the first reference picture indexed 0 on the second reference picture list L1 for bidirectional prediction in the subblock of the current block (each including two motion vectors). The second zero candidate may use the second reference picture indexed 1 on the list L0 and the second reference picture indexed 1 on the list L1 for bidirectional prediction in the subblock of the current block (each including two motion vectors).
在另一个实施例中,如果有至少2个基于子块的候选被添加到子块合并列表,并且候选中的至少第一候选具有列表L0上的MV且候选中的第二候选具有列表L1上的MV,则生成基于组合式双向预测子块的候选。在一个示例中,组合式双向预测子块合并候选仅用于B-条带(B-Slice)。通过在每个子块上将第一候选的第一参考图片列表(例如,表L0或表L1)运动参数与第二候选的第二参考图片列表(例如,表L1或表L0)运动参数组合起来,生成组合式双向预测子块候选。如果这两组运动参数提供不同的运动假设,则它们将形成新的基于双向预测子块的候选。在一个示例中,如果在添加了所有可用的基于组合式双向预测子块候选之后,子块合并列表仍未满,则将零运动候选添加到子块合并列表,直到子块合并列表填满。In another embodiment, if at least two sub-block-based candidates are added to the sub-block merge list, and at least the first candidate among the candidates has an MV on list L0 and the second candidate among the candidates has an MV on list L1, a combined bi-predicted sub-block-based candidate is generated. In one example, the combined bi-predicted sub-block merge candidate is only used for B-slices. The combined bi-predicted sub-block candidate is generated by combining the first reference picture list (e.g., table L0 or table L1) motion parameters of the first candidate with the second reference picture list (e.g., table L1 or table L0) motion parameters of the second candidate for each sub-block. If the two sets of motion parameters provide different motion hypotheses, they will form a new bi-predicted sub-block-based candidate. In one example, if the sub-block merge list is still not full after adding all available combined bi-predicted sub-block-based candidates, zero motion candidates are added to the sub-block merge list until the sub-block merge list is full.
实施例IExample 1
在一个实施例中,可以预定义在前述条件中使用的类型相关阈值,其中前述条件用于分别确定是否禁用特定类型的子块合并候选。In one embodiment, type-dependent thresholds used in the aforementioned conditions may be predefined, where the aforementioned conditions are used to respectively determine whether to disable a specific type of sub-block merging candidate.
在另一个实施例中,可在比特流中发信号通知在前述条件中使用的类型相关阈值,其中前述条件用于分别确定是否禁用特定类型的子块合并候选。例如,可以在序列参数集(SPS)、图片参数集(PPS)、条带头、图块组头等中用信号通知类型相关阈值。In another embodiment, type-dependent thresholds used in the aforementioned conditions for respectively determining whether to disable a particular type of sub-block merging candidate may be signaled in the bitstream. For example, the type-dependent thresholds may be signaled in a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, a tile group header, etc.
实施例JExample J
使用当前块的尺寸的单独条件来禁用每种类别的基于子块的合并候选的机制可以应用于具有残差数据的基于子块的合并模式,或者应用于跳过模式,其使用基于子块的合并模式而不编码残差数据。例如,当使用子块合并列表处理当前块时,可以在不使用跳过模式时对当前块的残差进行编码。相反,在其他示例中,可以使用跳过模式。相应地,使用子块合并列表来处理当前块而不对残差进行编码。The mechanism of disabling each category of sub-block-based merge candidates using a separate condition based on the size of the current block can be applied to sub-block-based merge modes with residual data, or to skip mode, which uses sub-block-based merge modes without encoding residual data. For example, when processing the current block using a sub-block merge list, the residual of the current block can be encoded when skip mode is not used. Conversely, in other examples, skip mode can be used. Accordingly, the current block is processed using a sub-block merge list without encoding the residual.
此外,对于具有残差数据的合并模式和用于处理编码块的跳过模式,应用于相同类型的子块合并候选的约束可以不同。例如,第一尺寸阈值可用来禁用用于具有残差数据的合并模式的仿射模式。第二尺寸阈值可用来禁用用于跳过模式的仿射模式。第一尺寸阈值和第二尺寸阈值可以不同。Furthermore, the constraints applied to sub-block merge candidates of the same type can be different for merge mode with residual data and skip mode for processing coding blocks. For example, a first size threshold can be used to disable affine mode for merge mode with residual data. A second size threshold can be used to disable affine mode for skip mode. The first size threshold and the second size threshold can be different.
在各种实施例中,当使用跳过模式(没有残差数据的基于子块的合并模式)或具有残差数据的基于子块的合并模式对当前块进行编码时,可以禁用基于子块的合并候选,以便用以下方式之一来构建基于子块的合并列表。In various embodiments, when the current block is encoded using skip mode (sub-block based merge mode without residual data) or sub-block based merge mode with residual data, sub-block based merge candidates may be disabled so that a sub-block based merge list may be constructed in one of the following ways.
在一个实施例中,可以禁用所有基于子块的合并候选。换言之,禁用整个基于子块的合并列表,并且没有候选可被添加到基于子块的合并列表。In one embodiment, all sub-block based merge candidates may be disabled. In other words, the entire sub-block based merge list is disabled, and no candidate may be added to the sub-block based merge list.
在另一个实施例中,仅禁用仿射合并候选且不将其添加到列表。In another embodiment, affine merge candidates are simply disabled and not added to the list.
在另一个实施例中,仅禁用除仿射合并候选之外的基于子块的合并候选且不将其添加到列表。In another embodiment, sub-block based merge candidates except affine merge candidates are simply disabled and not added to the list.
在另一个实施例中,使用不同的条件禁用仿射合并候选和其它基于子块的候选。In another embodiment, different conditions are used to disable affine merge candidates and other sub-block based candidates.
V.禁用基于子块的合并模式的过程V. Procedure for disabling sub-block based merging mode
图14示出了根据本申请的一些实施例的禁用一种或多种类型的基于子块的合并候选的过程(1400)。过程(1400)可以被执行以解码当前块。在各种实施例中,过程(1400)由处理电路执行,例如终端设备(210)、(220)、(230)和(240)中的处理电路、执行视频解码器(310)的功能的处理电路、执行视频解码器(410)的功能的处理电路、执行视频解码器(710)的功能的处理电路等。在一些实施例中,过程(1400)以软件指令实现,因此当处理电路执行软件指令时,处理电路执行过程(1400)。该过程开始于步骤(S1401)并执行步骤(S1410)。FIG14 illustrates a process (1400) for disabling one or more types of sub-block based merge candidates according to some embodiments of the present application. The process (1400) may be performed to decode the current block. In various embodiments, the process (1400) is performed by a processing circuit, such as a processing circuit in a terminal device (210), (220), (230), and (240), a processing circuit that performs the functions of a video decoder (310), a processing circuit that performs the functions of a video decoder (410), a processing circuit that performs the functions of a video decoder (710), or the like. In some embodiments, the process (1400) is implemented as software instructions, so that when the processing circuit executes the software instructions, the processing circuit performs the process (1400). The process begins at step (S1401) and performs step (S1410).
在步骤(S1410)处,可以接收当前块。例如,当前块可以具有由当前块的宽度和高度表示的特定尺寸。At step (S1410), a current block may be received. For example, the current block may have a specific size represented by a width and a height of the current block.
在步骤(S1420)处,确定当前块的尺寸是否小于或等于尺寸阈值。在一个示例中,当当前块的高度和宽度中的一个小于或等于阈值时,可以确定当前块的尺寸小于或等于尺寸阈值。在一个示例中,当当前块的高度和宽度均小于或等于阈值时,确定当前块的尺寸小于或等于尺寸阈值。在一个示例中,当当前块中的样本的数量小于或等于阈值时,确定当前块的尺寸小于或等于尺寸阈值。在不同的示例中,可以使用不同的尺寸阈值。At step (S1420), it is determined whether the size of the current block is less than or equal to a size threshold. In one example, the size of the current block may be determined to be less than or equal to the size threshold when one of the height and width of the current block is less than or equal to the threshold. In one example, the size of the current block may be determined to be less than or equal to the size threshold when both the height and width of the current block are less than or equal to the threshold. In one example, the size of the current block may be determined to be less than or equal to the size threshold when the number of samples in the current block is less than or equal to the threshold. In different examples, different size thresholds may be used.
在步骤(S1430),当当前块的尺寸小于或等于尺寸阈值时,可禁用一种或多种类型的基于子块的合并候选解码当前块。In step ( S1430 ), when the size of the current block is less than or equal to the size threshold, one or more types of sub-block based merging candidates may be disabled for decoding the current block.
在一个示例中,尺寸阈值是为一种或多种基于子块的合并模式指定的类型相关尺寸阈值。因此,相应的基于子块的合并模式被禁用。换言之,与相应的一个或多个禁用的基于子块的合并模式对应的一种或多种类型的基于子块的合并候选不用于构建用于解码当前块的子块合并列表。In one example, the size threshold is a type-dependent size threshold specified for one or more sub-block-based merge modes. Therefore, the corresponding sub-block-based merge modes are disabled. In other words, one or more types of sub-block-based merge candidates corresponding to the corresponding one or more disabled sub-block-based merge modes are not used to construct a sub-block merge list for decoding the current block.
在一些示例中,一种或多种类型的基于子块的合并候选中的每一种可具有相应的类型相关尺寸阈值。对于不同类型的基于子块的合并候选的子集或者全部,这些相应的类型相关尺寸阈值可以不同或相同。可以针对每种类型相关尺寸阈值执行步骤(S1420)及(S1430),使得每种类型的基于子块的合并候选可根据其相应的类型相关尺寸阈值而被分别禁用。In some examples, each of one or more types of sub-block based merge candidates may have a corresponding type-dependent size threshold. These corresponding type-dependent size thresholds may be different or the same for a subset or all of the different types of sub-block based merge candidates. Steps (S1420) and (S1430) may be performed for each type-dependent size threshold, such that each type of sub-block based merge candidate may be disabled separately according to its corresponding type-dependent size threshold.
在一个实施例中,指定尺寸阈值以用于禁用基于子块的合并候选列表。相应地,禁用基于子块的合并列表。换言之,没有子块合并列表用于解码当前块。过程(1400)可以进行到步骤(S1499)并在步骤(S1499)结束。In one embodiment, a size threshold is specified for disabling sub-block-based merge candidate lists. Accordingly, sub-block-based merge lists are disabled. In other words, no sub-block merge list is used for decoding the current block. The process (1400) may proceed to step (S1499) and end at step (S1499).
图15示出了根据本申请的一些实施例的禁用某种类型的基于子块的合并候选的过程(1600)。过程(1600)可以被执行以解码当前块。在各种实施例中,过程(1600)由处理电路执行,例如终端设备(210)、(220)、(230)和(240)中的处理电路、执行视频解码器(310)的功能的处理电路、执行视频解码器(410)的功能的处理电路、执行视频解码器(710)的功能的处理电路等。在一些实施例中,过程(1600)以软件指令实现,因此当处理电路执行软件指令时,处理电路执行过程(1600)。该过程开始于步骤(S1601)并执行步骤(S1610)。FIG15 illustrates a process (1600) for disabling a certain type of sub-block-based merge candidate according to some embodiments of the present application. The process (1600) may be performed to decode the current block. In various embodiments, the process (1600) is performed by a processing circuit, such as a processing circuit in a terminal device (210), (220), (230), and (240), a processing circuit that performs the functions of a video decoder (310), a processing circuit that performs the functions of a video decoder (410), a processing circuit that performs the functions of a video decoder (710), or the like. In some embodiments, the process (1600) is implemented as software instructions, so that when the processing circuit executes the software instructions, the processing circuit performs the process (1600). The process begins at step (S1601) and performs step (S1610).
在步骤(S1610)处,根据基于子块的合并候选列表接收待解码图片中的当前块,该基于子块的合并候选列表包括一种或多种类型的基于子块的合并候选。例如,当前块可以具有由当前块的宽度和高度表示的特定尺寸。At step (S1610), a current block in a to-be-decoded picture is received according to a sub-block-based merge candidate list, the sub-block-based merge candidate list including one or more types of sub-block-based merge candidates. For example, the current block may have a specific size represented by a width and a height of the current block.
在步骤(S1620)处,对于一种或多种类型的基于子块的合并候选中的每一种,确定当前块的尺寸是否小于或等于与该种类型对应的尺寸阈值。在一个示例中,当当前块的高度和宽度中的一个小于或等于阈值时,可以确定当前块的尺寸小于或等于尺寸阈值。在一个示例中,当当前块的高度和宽度均小于或等于阈值时,确定当前块的尺寸小于或等于尺寸阈值。在一个示例中,当当前块中的样本的数量小于或等于阈值时,确定当前块的尺寸小于或等于尺寸阈值。在实施例中,一种或多种类型的基于子块的合并候选的的尺寸阈值可以是相同的。At step (S1620), for each of one or more types of sub-block based merge candidates, it is determined whether the size of the current block is less than or equal to a size threshold corresponding to that type. In one example, when one of the height and width of the current block is less than or equal to the threshold, the size of the current block may be determined to be less than or equal to the size threshold. In one example, when both the height and width of the current block are less than or equal to the threshold, the size of the current block is determined to be less than or equal to the size threshold. In one example, when the number of samples in the current block is less than or equal to the threshold, the size of the current block is determined to be less than or equal to the size threshold. In an embodiment, the size thresholds for one or more types of sub-block based merge candidates may be the same.
在步骤(S1630),当当前块的尺寸小于或等于对应的尺寸阈值时,禁用该种类型的基于子块的合并候选解码当前块。In step (S1630), when the size of the current block is less than or equal to the corresponding size threshold, this type of sub-block based merging candidate decoding of the current block is disabled.
过程(1600)可以进行到步骤(S1699)并在步骤(S1699)结束。The process (1600) may proceed to step (S1699) and end at step (S1699).
本申请实施例提供了一种视频解码的装置,包括:An embodiment of the present application provides a video decoding apparatus, including:
接收模块,用于接收图片中的当前块;A receiving module, configured to receive a current block in the image;
确定模块,用于确定所述当前块的尺寸是否小于或等于尺寸阈值;以及a determining module, configured to determine whether the size of the current block is less than or equal to a size threshold; and
处理模块,用于当所述当前块的尺寸小于或等于尺寸阈值时,禁用一种或多种类型的基于子块的合并候选解码所述当前块。A processing module is configured to disable one or more types of sub-block based merging candidates for decoding the current block when the size of the current block is less than or equal to a size threshold.
本申请实施例还提供了一种视频解码的装置,包括:The embodiment of the present application further provides a video decoding apparatus, comprising:
块接收模块,用于根据基于子块的合并候选列表接收待解码图片中的当前块,所述基于子块的合并候选列表包括一种或多种类型的基于子块的合并候选;a block receiving module, configured to receive a current block in a to-be-decoded picture according to a sub-block based merge candidate list, wherein the sub-block based merge candidate list includes one or more types of sub-block based merge candidates;
尺寸确定模块,用于对于所述一种或多种类型的基于子块的合并候选中的每一种,确定所述当前块的尺寸是否小于或等于相应的尺寸阈值;以及a size determination module configured to determine, for each of the one or more types of sub-block based merge candidates, whether a size of the current block is less than or equal to a corresponding size threshold; and
块处理模块,用于当所述当前块的尺寸小于或等于所述相应的尺寸阈值时,禁用所述相应的类型的基于子块的合并候选解码所述当前块。The block processing module is configured to disable the corresponding type of sub-block based merging candidate decoding of the current block when the size of the current block is less than or equal to the corresponding size threshold.
本申请实施例中所述模块的具体功能及实现可参照上述实施例中的视频解码方法的具体流程。The specific functions and implementations of the modules described in the embodiments of the present application can refer to the specific processes of the video decoding method in the above embodiments.
本申请实施例还提供了一种计算机设备,所述设备包括一个或多个处理器和一个或多个存储器,所述一个或多个存储器中存储有至少一条指令,所述至少一条指令由所述一个或多个处理器加载并执行以实现如上实施例所述的视频解码的方法。An embodiment of the present application also provides a computer device, which includes one or more processors and one or more memories, wherein at least one instruction is stored in the one or more memories, and the at least one instruction is loaded and executed by the one or more processors to implement the video decoding method described in the above embodiment.
本申请实施例还提供了一种非易失性计算机可读存储介质,其存储指令,当所述指令由用于视频解码的计算机执行时,使得所述计算机执行如上实施例所述的视频解码的方法。An embodiment of the present application further provides a non-volatile computer-readable storage medium storing instructions, which, when executed by a computer for video decoding, enables the computer to perform the video decoding method described in the above embodiment.
VI.计算机系统VI. Computer Systems
上述技术可以通过计算机可读指令实现为计算机软件,并且物理地存储在一个或多个计算机可读介质中。例如,图16示出了计算机系统(1500),其适于实现所公开主题的某些实施例。The above techniques can be implemented as computer software via computer-readable instructions and physically stored in one or more computer-readable media.For example, Figure 16 illustrates a computer system (1500) suitable for implementing certain embodiments of the disclosed subject matter.
所述计算机软件可通过任何合适的机器代码或计算机语言进行编码,通过汇编、编译、链接等机制创建包括指令的代码,所述指令可由一个或多个计算机中央处理单元(CPU),图形处理单元(GPU)等直接执行或通过译码、微代码等方式执行。The computer software may be encoded in any suitable machine code or computer language, and may be assembled, compiled, linked, or other mechanisms to create code comprising instructions, which may be directly executed by one or more computer central processing units (CPUs), graphics processing units (GPUs), or the like, or executed through decoding, microcode, or the like.
所述指令可以在各种类型的计算机或其组件上执行,包括例如个人计算机、平板电脑、服务器、智能手机、游戏设备、物联网设备等。The instructions may be executed on various types of computers or components thereof, including, for example, personal computers, tablets, servers, smartphones, gaming devices, IoT devices, and the like.
图16所示的用于计算机系统(1500)的组件本质上是示例性的,并不用于对实现本申请实施例的计算机软件的使用范围或功能进行任何限制。也不应将组件的配置解释为与计算机系统(1500)的示例性实施例中所示的任一组件或其组合具有任何依赖性或要求。The components for the computer system (1500) shown in FIG16 are exemplary in nature and are not intended to limit the scope of use or functionality of the computer software implementing the embodiments of the present application. Nor should the configuration of the components be interpreted as having any dependency or requirement on any component or combination of components shown in the exemplary embodiment of the computer system (1500).
计算机系统(1500)可以包括某些人机界面输入设备。这种人机界面输入设备可以通过触觉输入(如:键盘输入、滑动、数据手套移动)、音频输入(如:声音、掌声)、视觉输入(如:手势)、嗅觉输入(未示出),对一个或多个人类用户的输入做出响应。所述人机界面设备还可用于捕获某些媒体,气与人类有意识的输入不必直接相关,如音频(例如:语音、音乐、环境声音)、图像(例如:扫描图像、从静止影像相机获得的摄影图像)、视频(例如二维视频、包括立体视频的三维视频)。The computer system (1500) may include certain human-computer interface input devices. Such human-computer interface input devices may respond to input from one or more human users through tactile input (e.g., keyboard input, swiping, data glove movement), audio input (e.g., sound, applause), visual input (e.g., gestures), and olfactory input (not shown). The human-computer interface devices may also be used to capture certain media that are not necessarily directly related to conscious human input, such as audio (e.g., speech, music, ambient sound), images (e.g., scanned images, photographic images obtained from a still camera), and video (e.g., two-dimensional video, three-dimensional video including stereoscopic video).
人机界面输入设备可包括以下中的一个或多个(仅绘出其中一个):键盘(1501)、鼠标(1502)、触控板(1503)、触摸屏(1510)、数据手套(未示出)、操纵杆(1505)、麦克风(1506)、扫描仪(1507)、照相机(1508)。The human-computer interface input device may include one or more of the following (only one of which is depicted): keyboard (1501), mouse (1502), touchpad (1503), touch screen (1510), data gloves (not shown), joystick (1505), microphone (1506), scanner (1507), camera (1508).
计算机系统(1500)还可以包括某些人机界面输出设备。这种人机界面输出设备可以通过例如触觉输出、声音、光和嗅觉/味觉来刺激一个或多个人类用户的感觉。这样的人机界面输出设备可包括触觉输出设备(例如通过触摸屏(1510)、数据手套(未示出)或操纵杆(1505)的触觉反馈,但也可以有不用作输入设备的触觉反馈设备)、音频输出设备(例如,扬声器(1509)、耳机(未示出))、视觉输出设备(例如,包括阴极射线管屏幕、液晶屏幕、等离子屏幕、有机发光二极管屏的屏幕(1510),其中每一个都具有或没有触摸屏输入功能、每一个都具有或没有触觉反馈功能——其中一些可通过诸如立体画面输出的手段输出二维视觉输出或三维以上的输出;虚拟现实眼镜(未示出)、全息显示器和放烟箱(未示出))以及打印机(未示出)。The computer system (1500) may also include certain human-computer interface output devices. Such human-computer interface output devices may stimulate one or more senses of a human user through, for example, tactile output, sound, light, and smell/taste. Such human-computer interface output devices may include tactile output devices (e.g., tactile feedback through a touch screen (1510), a data glove (not shown), or a joystick (1505), but there may also be tactile feedback devices that are not used as input devices), audio output devices (e.g., speakers (1509), headphones (not shown)), visual output devices (e.g., screens (1510) including cathode ray tube screens, liquid crystal screens, plasma screens, organic light emitting diode screens, each with or without touch screen input capabilities, each with or without tactile feedback capabilities—some of which may output two-dimensional visual output or output in more than three dimensions through means such as stereoscopic image output; virtual reality glasses (not shown), holographic displays, and cigarette boxes (not shown)), and printers (not shown).
计算机系统(1500)还可以包括人可访问的存储设备及其相关介质,如包括具有CD/DVD的高密度只读/可重写式光盘(CD/DVD ROM/RW)(1520)或类似介质(1521)的光学介质、拇指驱动器(1522)、可移动硬盘驱动器或固体状态驱动器(1523),诸如磁带和软盘(未示出)的传统磁介质,诸如安全软件保护器(未示出)等的基于ROM/ASIC/PLD的专用设备,等等。The computer system (1500) may also include human-accessible storage devices and their associated media, such as optical media including high-density read-only/rewritable compact discs (CD/DVD ROM/RW) (1520) with CD/DVD or similar media (1521), thumb drives (1522), removable hard drives or solid-state drives (1523), traditional magnetic media such as tapes and floppy disks (not shown), dedicated ROM/ASIC/PLD-based devices such as security software dongles (not shown), and the like.
本领域技术人员还应当理解,结合所公开的主题使用的术语“计算机可读介质”不包括传输介质、载波或其它瞬时信号。Those skilled in the art will also understand that the term "computer-readable media" used in connection with the disclosed subject matter does not include transmission media, carrier waves, or other transient signals.
计算机系统(1500)还可以包括通往一个或多个通信网络的接口。例如,网络可以是无线的、有线的、光学的。网络还可为局域网、广域网、城域网、车载网络和工业网络、实时网络、延迟容忍网络等等。网络还包括以太网、无线局域网、蜂窝网络(GSM、3G、4G、5G、LTE等)等局域网、电视有线或无线广域数字网络(包括有线电视、卫星电视、和地面广播电视)、车载和工业网络(包括CANBus)等等。某些网络通常需要外部网络接口适配器,用于连接到某些通用数据端口或外围总线(1549)(例如,计算机系统(1500)的USB端口);其它系统通常通过连接到如下所述的系统总线集成到计算机系统(1500)的核心(例如,以太网接口集成到PC计算机系统或蜂窝网络接口集成到智能电话计算机系统)。通过使用这些网络中的任何一个,计算机系统(1500)可以与其它实体进行通信。所述通信可以是单向的,仅用于接收(例如,无线电视),单向的仅用于发送(例如CAN总线到某些CAN总线设备),或双向的,例如通过局域或广域数字网络到其它计算机系统。上述的每个网络和网络接口可使用某些协议和协议栈。The computer system (1500) may also include an interface to one or more communication networks. For example, the network may be wireless, wired, or optical. The network may also be a local area network, a wide area network, a metropolitan area network, an in-vehicle network, an industrial network, a real-time network, a delay-tolerant network, and the like. Networks also include local area networks such as Ethernet, wireless local area networks, cellular networks (GSM, 3G, 4G, 5G, LTE, etc.), television wired or wireless wide area digital networks (including cable television, satellite television, and terrestrial broadcast television), in-vehicle and industrial networks (including CANBus), and the like. Some networks typically require an external network interface adapter for connecting to some universal data port or peripheral bus (1549) (for example, a USB port of the computer system (1500)); other systems are typically integrated into the core of the computer system (1500) by connecting to a system bus as described below (for example, an Ethernet interface integrated into a PC computer system or a cellular network interface integrated into a smartphone computer system). By using any of these networks, the computer system (1500) can communicate with other entities. The communication can be one-way, for receiving only (e.g., wireless television), one-way, for sending only (e.g., a CAN bus to certain CAN bus devices), or two-way, such as to other computer systems via a local or wide area digital network. Each of the above networks and network interfaces can use certain protocols and protocol stacks.
上述的人机界面设备、人可访问的存储设备以及网络接口可以连接到计算机系统(1500)的核心(1540)。The aforementioned human-machine interface devices, human-accessible storage devices, and network interfaces may be connected to the core (1540) of the computer system (1500).
核心(1540)可包括一个或多个中央处理单元(CPU)(1541)、图形处理单元(GPU)(1542)、以现场可编程门阵列(FPGA)(1543)形式的专用可编程处理单元、用于特定任务的硬件加速器(1544)等。这些设备以及只读存储器(ROM)(1545)、随机存取存储器(1546)、内部大容量存储器(例如内部非用户可存取硬盘驱动器、固态硬盘等)(1547)等可通过系统总线(1548)进行连接。在某些计算机系统中,可以以一个或多个物理插头的形式访问系统总线(1548),以便可通过额外的中央处理单元、图形处理单元等进行扩展。外围装置可直接附接到核心的系统总线(1548),或通过外围总线(1549)进行连接。外围总线的体系结构包括外部控制器接口PCI、通用串行总线USB等。The core (1540) may include one or more central processing units (CPUs) (1541), graphics processing units (GPUs) (1542), dedicated programmable processing units in the form of field programmable gate arrays (FPGAs) (1543), hardware accelerators for specific tasks (1544), and the like. These devices, as well as read-only memory (ROM) (1545), random access memory (1546), internal mass storage (e.g., internal non-user accessible hard disk drives, solid-state drives, etc.) (1547), and the like, may be connected via a system bus (1548). In some computer systems, the system bus (1548) may be accessed in the form of one or more physical plugs so that it can be expanded with additional central processing units, graphics processing units, and the like. Peripheral devices may be attached directly to the core's system bus (1548) or connected via a peripheral bus (1549). Peripheral bus architectures include PCI (Peripheral Controller Interface), USB (Universal Serial Bus), and the like.
CPU(1541)、GPU(1542)、FPGA(1543)和加速器(1544)可以执行某些指令,这些指令组合起来可以构成上述计算机代码。该计算机代码可以存储在ROM(1545)或RAM(1546)中。过渡数据也可以存储在RAM(1546)中,而永久数据可以存储在例如内部大容量存储器(1547)中。通过使用高速缓冲存储器可实现对任何存储器设备的快速存储和检索,高速缓冲存储器可与一个或多个CPU(1541)、GPU(1542)、大容量存储器(1547)、ROM(1545)、RAM(1546)等紧密关联。The CPU (1541), GPU (1542), FPGA (1543), and accelerator (1544) can execute certain instructions, which, when combined, can constitute the aforementioned computer code. The computer code can be stored in ROM (1545) or RAM (1546). Transient data can also be stored in RAM (1546), while permanent data can be stored, for example, in internal mass storage (1547). Fast storage and retrieval of any memory device can be achieved by using a cache memory, which can be closely associated with one or more CPUs (1541), GPUs (1542), mass storage (1547), ROM (1545), RAM (1546), etc.
所述计算机可读介质上可具有计算机代码,用于执行各种计算机实现的操作。介质和计算机代码可以是为本申请的目的而特别设计和构造的,也可以是计算机软件领域的技术人员所熟知和可用的介质和代码。The computer readable medium may have computer code thereon for performing various computer-implemented operations. The medium and computer code may be specially designed and constructed for the purposes of this application, or may be medium and code well known and available to those skilled in the art of computer software.
作为实施例而非限制,具有体系结构(1500)的计算机系统,特别是核心(1540),可以作为处理器(包括CPU、GPU、FPGA、加速器等)提供执行包含在一个或多个有形的计算机可读介质中的软件的功能。这种计算机可读介质可以是与上述的用户可访问的大容量存储器相关联的介质,以及具有非易失性的核心(1540)的特定存储器,例如核心内部大容量存储器(1547)或ROM(1545)。实现本申请的各种实施例的软件可以存储在这种设备中并且由核心(1540)执行。根据特定需要,计算机可读介质可包括一个或一个以上存储设备或芯片。该软件可以使得核心(1540)特别是其中的处理器(包括CPU、GPU、FPGA等)执行本文所述的特定过程或特定过程的特定部分,包括定义存储在RAM(1546)中的数据结构以及根据软件定义的过程来修改这种数据结构。另外或作为替代,计算机系统可以提供逻辑硬连线或以其它方式包含在电路(例如,加速器(1544))中的功能,该电路可以代替软件或与软件一起运行以执行本文所述的特定过程或特定过程的特定部分。在适当的情况下,对软件的引用可以包括逻辑,反之亦然。在适当的情况下,对计算机可读介质的引用可包括存储执行软件的电路(如集成电路(IC)),包含执行逻辑的电路,或两者兼备。本申请包括任何合适的硬件和软件组合。As an example and not a limitation, a computer system having architecture (1500), in particular core (1540), can provide functionality as a processor (including a CPU, GPU, FPGA, accelerator, etc.) to execute software contained in one or more tangible computer-readable media. Such computer-readable media can be media associated with the aforementioned user-accessible mass storage, as well as specific memory of the core (1540) having non-volatile properties, such as core internal mass storage (1547) or ROM (1545). Software implementing various embodiments of the present application can be stored in such a device and executed by the core (1540). Depending on specific needs, the computer-readable medium may include one or more storage devices or chips. The software can enable the core (1540), in particular the processor therein (including a CPU, GPU, FPGA, etc.) to perform a specific process or a specific part of a specific process described herein, including defining a data structure stored in RAM (1546) and modifying such a data structure according to a software-defined process. Additionally or alternatively, the computer system may provide functionality hardwired in logic or otherwise contained in circuitry (e.g., accelerator (1544)) that may operate in place of or in conjunction with software to perform a particular process or a particular portion of a particular process described herein. Where appropriate, references to software may include logic and vice versa. Where appropriate, references to computer-readable media may include circuitry (e.g., an integrated circuit (IC)) storing the executing software, circuitry containing the executing logic, or both. The present application includes any suitable combination of hardware and software.
附录A:首字母缩写词Appendix A: Acronyms
JEM:联合开发模型JEM: Joint Development Model
VVC:通用视频编码VVC: Versatile Video Coding
BMS:基准集合BMS: Benchmark Collection
MV:运动矢量MV: Motion Vector
HEVC:高效视频编码HEVC: High Efficiency Video Coding
SEI:补充增强信息SEI: Supplemental Enhancement Information
VUI:视频可用性信息VUI: Video Availability Information
GOPs:图片组GOPs: Group of Pictures
TUs:变换单元TUs: Transformation Units
PUs:预测单元PUs: prediction units
CTUs:编码树单元CTUs: Coding Tree Units
CTBs:编码树块CTBs: Coding Tree Blocks
PBs:预测块PBs: prediction blocks
HRD:假设参考解码器HRD: Hypothesized Reference Decoder
SNR:信噪比SNR: Signal-to-Noise Ratio
CPUs:中央处理单元CPUs: Central Processing Units
GPUs:图形处理单元GPUs: Graphics Processing Units
CRT:阴极射线管CRT: cathode ray tube
LCD:液晶显示LCD: Liquid Crystal Display
OLED:有机发光二极管OLED: Organic Light-Emitting Diode
CD:光盘CD: compact disc
DVD:数字化视频盘DVD: Digital Video Disc
ROM:只读存储器ROM: Read-Only Memory
RAM:随机存取存储器RAM: Random Access Memory
ASIC:专用集成电路ASIC: Application-Specific Integrated Circuit
PLD:可编程逻辑设备PLD: Programmable Logic Device
LAN:局域网LAN: Local Area Network
GSM:全球移动通信系统GSM: Global System for Mobile Communications
LTE:长期演进LTE: Long Term Evolution
CANBus:控制器局域网络总线CANBus: Controller Area Network Bus
USB:通用串行总线USB: Universal Serial Bus
PCI:外围设备互连PCI: Peripheral Component Interconnect
FPGA:现场可编程栅极区域门阵列FPGA: Field Programmable Gate Array
SSD:固态驱动器SSD: Solid State Drive
IC:集成电路IC: integrated circuit
CU:编码单元CU: Coding Unit
HMVP:基于历史的运动矢量预测HMVP: History-based Motion Vector Prediction
MVP:运动矢量预测MVP: Motion Vector Prediction
TMVP:时间运动矢量预测TMVP: Temporal Motion Vector Prediction
TPM:三角预测模式TPM: Triangular Prediction Model
VTM:通用视频编码测试模型VTM: Universal Video Coding Test Model
ATMVP:高级时间运动矢量预测ATMVP: Advanced Temporal Motion Vector Prediction
SbTMVP:子块时间运动矢量预测SbTMVP: Sub-block Temporal Motion Vector Prediction
POC:图片顺序号POC: Image sequence number
STMVP:空时运动矢量预测STMVP: Spatio-Temporal Motion Vector Prediction
SPS:序列参数集SPS: Sequence Parameter Set
PPS:图片参数集PPS: Picture Parameter Set
虽然本申请已对多个示例性实施例进行了描述,但实施例的各种变更、排列和各种等同替换均属于本申请的范围内。因此应理解,本领域技术人员能够设计多种系统和方法,所述系统和方法虽然未在本文中明确示出或描述,但其体现了本申请的原则,因此属于本申请的精神和范围之内。Although this application has described a number of exemplary embodiments, various modifications, permutations, and equivalent substitutions of the embodiments are within the scope of this application. Therefore, it should be understood that those skilled in the art will be able to design a variety of systems and methods that, although not explicitly shown or described herein, embody the principles of this application and are therefore within the spirit and scope of this application.
Claims (14)
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US62/739,632 | 2018-10-01 | ||
| US62/742,322 | 2018-10-06 | ||
| US16/559,257 | 2019-09-03 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| HK40022994A HK40022994A (en) | 2020-11-27 |
| HK40022994B true HK40022994B (en) | 2022-07-08 |
Family
ID=
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112313952B (en) | Method and device for video encoding and decoding | |
| CN110944202B (en) | Video encoding and decoding method, device, computer equipment and storage medium | |
| CN111937387B (en) | Method and apparatus for history-based motion vector prediction using parallel processing | |
| CN111989918B (en) | Video decoding method, device and storage medium | |
| CN116530080B (en) | Video decoding method, device and non-transitory computer readable medium | |
| CN112055971B (en) | Video encoding and decoding method, codec and storage medium | |
| CN118827975A (en) | Video encoding and decoding method, device and medium | |
| CN114827598B (en) | Video coding method, device, computer equipment and storage medium | |
| CN116723315A (en) | Video decoding method and device, video encoding method and device, and storage medium | |
| CN113785564B (en) | Video encoding and decoding method and device | |
| CN110971902B (en) | Video decoding method and device and computer equipment | |
| CN113424546B (en) | Video decoding or encoding method and device | |
| CN113661702B (en) | Video encoding and decoding method, device and storage medium | |
| CN113196745B (en) | Video encoding and decoding methods and devices | |
| CN116325745B (en) | Video encoding and decoding method and device, computer equipment and storage medium | |
| CN113557527B (en) | Video decoding method, video decoder and medium | |
| CN118042155A (en) | Video encoding and decoding method, device and storage medium | |
| CN118694949A (en) | Video encoding and decoding method, device, readable medium and computer system | |
| CN113348664B (en) | Video decoding method, device and computer readable medium | |
| CN114270857B (en) | Method and apparatus for signaling a skip mode flag | |
| CN113228649B (en) | Video decoding method, device and storage medium | |
| CN116264863B (en) | Method, apparatus and computer-readable storage medium for video decoding | |
| CN118433379A (en) | Video encoding and decoding method, device, computer equipment and storage medium | |
| CN116325726B (en) | Video encoding and decoding method and device, computer equipment and storage medium | |
| JP7767510B2 (en) | METHOD AND APPARATUS FOR VIDEO CODING - Patent application |