[go: up one dir, main page]

CN116567208A - Video encoding/decoding device and method, and non-transitory recording medium - Google Patents

Video encoding/decoding device and method, and non-transitory recording medium Download PDF

Info

Publication number
CN116567208A
CN116567208A CN202310710814.3A CN202310710814A CN116567208A CN 116567208 A CN116567208 A CN 116567208A CN 202310710814 A CN202310710814 A CN 202310710814A CN 116567208 A CN116567208 A CN 116567208A
Authority
CN
China
Prior art keywords
motion vector
resolution
current block
vector resolution
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310710814.3A
Other languages
Chinese (zh)
Inventor
林晶娟
李善英
孙世勋
申在燮
金炯德
李京泽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SK Telecom Co Ltd
Original Assignee
SK Telecom Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from KR1020170025673A external-priority patent/KR20180043151A/en
Application filed by SK Telecom Co Ltd filed Critical SK Telecom Co Ltd
Publication of CN116567208A publication Critical patent/CN116567208A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/109Selection of coding mode or of prediction mode among a plurality of temporal predictive coding modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/53Multi-resolution motion estimation; Hierarchical motion estimation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/119Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/13Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/132Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • H04N19/137Motion inside a coding unit, e.g. average field, frame or block difference
    • H04N19/139Analysis of motion vectors, e.g. their magnitude, direction, variance or reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/174Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a slice, e.g. a line of blocks or a group of blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/44Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/513Processing of motion vectors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/523Motion estimation or motion compensation with sub-pixel accuracy
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • H04N19/91Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • H04N19/96Tree coding, e.g. quad-tree coding

Landscapes

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

Abstract

本公开涉及一种视频编码/解码设备和方法及非暂时性记录介质。本发明提供了一种用于对视频进行编码的方法,该方法包括:确定当前块的运动矢量分辨率的步骤;根据所述运动矢量分辨率来确定所述当前块的运动矢量的步骤;通过使用所述运动矢量来预测所述当前块并且对所述当前块进行编码的步骤;以及对关于所述运动矢量分辨率的信息进行编码的步骤。

The present disclosure relates to a video encoding/decoding device and method and a non-transitory recording medium. The present invention provides a method for encoding video, the method comprising: a step of determining the motion vector resolution of the current block; a step of determining the motion vector of the current block according to the motion vector resolution; by A step of predicting the current block using the motion vector and encoding the current block; and a step of encoding information on the resolution of the motion vector.

Description

视频编码/解码设备和方法及非暂时性记录介质Video encoding/decoding device and method, and non-transitory recording medium

本申请是原案申请号为201780064071.X的发明专利申请(国际申请号:PCT/KR2017/011484,申请日:2017年10月17日,发明名称:用于对图像进行编码或解码的设备和方法)的分案申请。This application is an invention patent application with the original application number 201780064071.X (international application number: PCT/KR2017/011484, application date: October 17, 2017, invention name: device and method for encoding or decoding images ) for a divisional application.

技术领域technical field

本发明涉及高效视频编码或解码。The present invention relates to high efficiency video coding or decoding.

背景技术Background technique

该背景技术部分中所公开的信息仅用于增强对本发明的背景的理解,因此它可能包含未构成现有技术的信息。The information disclosed in this Background section is only for enhancement of understanding of the background of the invention and therefore it may contain information that does not form the prior art.

与音频数据、静止图像数据等相比,视频数据消耗大量数据,因此,需要包括存储器的许多硬件资源来存储或发送视频数据本身,而无需压缩处理。因此,通常,当存储或发送视频数据时,使用编码装置压缩并存储或发送视频数据,并且解码装置接收、解压缩和再现压缩后的视频数据。这种视频压缩技术包括在2013年初建立的编码效率比H.264/AVC提高了约40%的高效视频编码(HEVC)以及H.264/AVC。Compared with audio data, still image data, etc., video data consumes a large amount of data, and therefore, many hardware resources including memory are required to store or transmit the video data itself without compression processing. Therefore, generally, when video data is stored or transmitted, an encoding device is used to compress and store or transmit the video data, and a decoding device receives, decompresses, and reproduces the compressed video data. Such video compression technologies include High Efficiency Video Coding (HEVC), which was established in early 2013, and H.264/AVC, which has a coding efficiency that is about 40% higher than that of H.264/AVC.

在作为用于编码或解码的预测方法的帧间预测编码期间,将关于通过预测当前块得到的残余块的信息和用于预测当前块的运动信息用信号通知给解码设备。这里,运动信息包括关于用于预测当前块的参考图片的信息和关于运动矢量的信息,并且在传统HEVC标准的情况下,以1/4像素为单元表示运动矢量。During inter-prediction encoding, which is a prediction method for encoding or decoding, information on a residual block obtained by predicting a current block and motion information used to predict the current block are signaled to a decoding apparatus. Here, the motion information includes information on a reference picture used to predict a current block and information on a motion vector, and in the case of the legacy HEVC standard, the motion vector is expressed in units of 1/4 pixels.

然而,图像的大小和分辨率以及帧速率逐渐增加,因此,待解码的数据的量也增加。因此,需要效率比传统压缩技术高的压缩技术。However, the size and resolution of images and the frame rate are gradually increasing, and therefore, the amount of data to be decoded is also increasing. Therefore, there is a need for compression techniques that are more efficient than conventional compression techniques.

发明内容Contents of the invention

技术问题technical problem

因此,考虑到以上问题做出了本发明,并且本发明的一个目的是提供用于通过根据诸如图像或块大小的改变这样的图像特性调整运动矢量的分辨率对视频进行高效编码的视频编码或解码技术。Therefore, the present invention has been made in consideration of the above problems, and an object of the present invention is to provide video encoding or decoding technology.

技术方案Technical solutions

按照本发明的一方面,提供了一种对视频进行编码的方法,该方法包括以下步骤:确定当前块的运动矢量分辨率;根据所述当前块的所述运动矢量分辨率来确定所述当前块的运动矢量;使用所述当前块的所述运动矢量来预测所述当前块并且对所述当前块进行编码;以及对关于所述当前块的所述运动矢量分辨率的信息进行编码。According to one aspect of the present invention, there is provided a method for encoding video, the method comprising the following steps: determining the motion vector resolution of the current block; determining the current motion vector resolution according to the motion vector resolution of the current block a motion vector of a block; predicting and encoding the current block using the motion vector of the current block; and encoding information on a resolution of the motion vector of the current block.

按照本发明的另一方面,一种自适应地确定当前块的运动矢量分辨率并且对所述当前块进行解码的视频解码方法包括以下步骤:从比特流中提取关于所述当前块的所述运动矢量分辨率的信息,并且基于关于所述当前块的所述运动矢量分辨率的信息来确定所述当前块的所述运动矢量分辨率;以及使用根据所述当前块的所述运动矢量分辨率确定的所述当前块的运动矢量来预测所述当前块并且对所述当前块进行解码。According to another aspect of the present invention, a video decoding method for adaptively determining the motion vector resolution of a current block and decoding the current block includes the following steps: extracting the motion vector resolution of the current block from a bit stream information on the motion vector resolution, and determine the motion vector resolution of the current block based on the information on the motion vector resolution of the current block; and using the motion vector resolution according to the current block The motion vector of the current block determined by the rate is used to predict the current block and decode the current block.

按照本发明的另一方面,一种用于自适应地确定当前块的运动矢量分辨率并且对所述当前块进行解码的视频解码设备包括:运动矢量分辨率解码器,该运动矢量分辨率解码器被配置为从比特流中提取关于所述当前块的所述运动矢量分辨率的信息,并且基于关于所述当前块的所述运动矢量分辨率的信息来确定所述当前块的所述运动矢量分辨率;以及视频解码器,该视频解码器被配置为使用根据所述当前块的所述运动矢量分辨率确定的所述当前块的运动矢量来预测所述当前块并且对所述当前块进行解码。According to another aspect of the present invention, a video decoding device for adaptively determining a motion vector resolution of a current block and decoding the current block includes: a motion vector resolution decoder, the motion vector resolution decoding The processor is configured to extract information about the motion vector resolution of the current block from a bitstream, and determine the motion of the current block based on the information about the motion vector resolution of the current block vector resolution; and a video decoder configured to predict the current block using the motion vector of the current block determined according to the motion vector resolution of the current block and to predict the current block to decode.

附图说明Description of drawings

图1是示出常见视频编码设备的示意框图,Fig. 1 is a schematic block diagram showing a common video encoding device,

图2是示出使用四叉树加二叉树(QTBT)结构的块分离的示例的图,2 is a diagram showing an example of block separation using a quadtree plus binary tree (QTBT) structure,

图3是示出当前块的邻近块的示例的图,FIG. 3 is a diagram showing an example of neighboring blocks of a current block,

图4是示出根据本发明的实施方式的视频编码设备的图,4 is a diagram illustrating a video encoding device according to an embodiment of the present invention,

图5是例示由帧间预测器124执行的内插和运动估计过程以及参考图片的分辨率的图,FIG. 5 is a diagram illustrating the interpolation and motion estimation process performed by the inter predictor 124 and the resolution of a reference picture,

图6是用于比较两个帧的运动程度的图,Fig. 6 is a graph for comparing the motion degrees of two frames,

图7是示出根据实施方式的分辨率确定器410的示例的图,FIG. 7 is a diagram illustrating an example of a resolution determiner 410 according to an embodiment,

图8是示出在当前CU的运动矢量分辨率信息被编码为分辨率差值时的分辨率编码器430的示例的图,8 is a diagram illustrating an example of the resolution encoder 430 when motion vector resolution information of the current CU is encoded as a resolution difference value,

图9是示出将当前CU的运动矢量表示为分辨率比例因子而非分辨率差值的分辨率编码器430的示例的图,FIG. 9 is a diagram illustrating an example of a resolution encoder 430 representing a motion vector of a current CU as a resolution scale factor instead of a resolution difference,

图10是常见视频解码设备的示意图,Figure 10 is a schematic diagram of a common video decoding device,

图11是示出根据本发明的实施方式的视频解码设备1100的图,FIG. 11 is a diagram illustrating a video decoding device 1100 according to an embodiment of the present invention,

图12是示出根据本发明的第一实施方式的在视频解码设备1100处对视频进行解码的方法的流程图,12 is a flowchart illustrating a method of decoding video at a video decoding device 1100 according to a first embodiment of the present invention,

图13是示出分辨率的自适应确定的示例的图,FIG. 13 is a diagram illustrating an example of adaptive determination of resolution,

图14是示出在图12中添加一些操作的情况的流程图,Fig. 14 is a flow chart showing the case of adding some operations in Fig. 12,

图15是示出根据本发明的第二实施方式的在视频解码设备1100处对视频进行解码的方法的流程图,15 is a flowchart illustrating a method of decoding video at a video decoding device 1100 according to a second embodiment of the present invention,

图16是示出分辨率的自适应确定的另一示例的图,FIG. 16 is a diagram illustrating another example of adaptive determination of resolution,

图17是示出在图15中添加一些操作的情况的流程图,Fig. 17 is a flowchart showing a case where some operations are added in Fig. 15,

图18是示出根据本发明的第三实施方式的在视频解码设备1100处对视频进行解码的方法的流程图,18 is a flowchart illustrating a method of decoding video at a video decoding device 1100 according to a third embodiment of the present invention,

图19是示出在图18的流程图中添加一些操作的情况的流程图。FIG. 19 is a flowchart showing a case where some operations are added to the flowchart of FIG. 18 .

具体实施方式Detailed ways

下文中,将参照附图详细地描述本发明的一些实施方式。关于附图中的元件的附图标记,尽管元件是在不同的附图中示出,但是如有可能,相同的附图标记指定相同的元件。另外,在对本发明的以下描述中,为了清晰简明起见,将省略对并入本文中的已知功能和配置的详细描述。Hereinafter, some embodiments of the present invention will be described in detail with reference to the accompanying drawings. Regarding the reference numerals of elements in the drawings, the same reference numerals designate the same elements, if possible, even though the elements are shown in different drawings. Also, in the following description of the present invention, a detailed description of known functions and configurations incorporated herein will be omitted for clarity and conciseness.

图1是示出常见视频编码设备的示意框图。FIG. 1 is a schematic block diagram illustrating a common video encoding device.

视频编码设备100可以包括块分离器110、预测器120、减法器130、变换器140、量化器145、编码器150、逆量化器160、逆变换器165、加法器170、滤波器单元180和存储器190。视频编码设备100的每个组件可以按硬件芯片的形式实现,或者可以按软件的形式实现,使得一个或更多个微处理器执行与每个组件对应的软件的功能。The video encoding apparatus 100 may include a block separator 110, a predictor 120, a subtractor 130, a transformer 140, a quantizer 145, an encoder 150, an inverse quantizer 160, an inverse transformer 165, an adder 170, a filter unit 180, and memory 190. Each component of the video encoding apparatus 100 may be implemented in the form of a hardware chip, or may be implemented in the form of software such that one or more microprocessors execute the function of the software corresponding to each component.

块分离器110可以将构成视频的每个图片分离成多个编码树单元(CTU),然后可以使用树结构递归地分离CTU。树结构中的叶节点可以是编码单元(CU),CU是编码的基本单元。树结构可以是将节点分离成四个下节点的四叉树(QT)结构或者通过将QT结构与节点被分离成两个下节点的二叉树(BT)结构相混合而形成的四叉树加二叉树(QTBT)结构。The block separator 110 may separate each picture constituting a video into a plurality of coding tree units (CTUs), and then may recursively separate the CTUs using a tree structure. A leaf node in the tree structure may be a coding unit (CU), which is a basic unit of coding. The tree structure may be a quadtree (QT) structure in which a node is split into four lower nodes or a quadtree plus binary tree formed by mixing a QT structure with a binary tree (BT) structure in which a node is split into two lower nodes (QTBT) structure.

在四叉树加二叉树(QTBT)结构中,首先,可以按QT结构分离CTU。然后,可以按BT结构进一步分离QT的叶节点。由块分离器110按QTBT结构分离CTU而生成的分离信息可以被编码器150编码并且可以被发送到解码设备。In the quadtree plus binary tree (QTBT) structure, first, the CTUs can be separated by the QT structure. Then, the leaf nodes of QT can be further separated by BT structure. Split information generated by splitting CTUs in the QTBT structure by the block splitter 110 may be encoded by the encoder 150 and may be transmitted to a decoding device.

在QT中,对指示是否分离对应节点的块的第一标志(QT_split_flag)进行编码。当第一标志为1时,对应节点的块被分离成具有相同大小的四个块,并且当第一标志为0时,对应节点不按QT被进一步分离。In QT, a first flag (QT_split_flag) indicating whether to split the block of the corresponding node is encoded. When the first flag is 1, the block of the corresponding node is split into four blocks having the same size, and when the first flag is 0, the corresponding node is not further split by QT.

在BT中,对指示是否分离对应节点的块的第二标志(BT_split_flag)进行编码。在BT中可以存在多种分离类型。例如,可能存在将对应节点的块水平分离的类型和将块垂直分离成大小相同的两个块的类型这两种类型。另选地,可能存在将对应节点的块分离成具有不对称形状的两个块的另外的类型。可以通过将对应节点的块分离成大小比为1:3的两个矩形块或者通过将对应节点的块在对角方向上分离来形成该不对称形状。在BT具有多种分离类型的情况下,如果对指示块被分离的第二标志进行编码,则可以另外对指示对应块的分离类型的分离类型信息进行编码。In BT, a second flag (BT_split_flag) indicating whether to split the block of the corresponding node is encoded. There can be multiple separation types in BT. For example, there may be two types of a type in which a block of a corresponding node is horizontally separated and a type in which a block is vertically separated into two blocks of the same size. Alternatively, there may be another type of splitting the block of the corresponding node into two blocks having an asymmetric shape. This asymmetrical shape may be formed by splitting the block of the corresponding node into two rectangular blocks with a size ratio of 1:3 or by splitting the block of the corresponding node in a diagonal direction. In case the BT has multiple split types, if the second flag indicating that the block is split is encoded, split type information indicating the split type of the corresponding block may be additionally encoded.

图2是示出使用QTBT结构的块分离的示例的图。图2的(a)示出了通过QTBT结构分离块的示例,图2的(b)表示了以树结构形式分离的块。在图2中,实线表示按QT结构进行的分离,并且虚线表示按BT结构进行的分离。在图2的(b)中,关于层的符号,不带括号的层表示表示QT的层,并且括号中的层表示BT的层。由虚线表示的BT结构中的数字指示分离类型信息。FIG. 2 is a diagram showing an example of block separation using the QTBT structure. (a) of FIG. 2 shows an example of separating blocks by a QTBT structure, and (b) of FIG. 2 shows blocks separated in a tree structure. In FIG. 2 , the solid line indicates the separation by the QT structure, and the broken line indicates the separation by the BT structure. In (b) of FIG. 2 , regarding the symbols of layers, layers without parentheses represent layers representing QT, and layers in parentheses represent layers of BT. Numbers in the BT structure indicated by dotted lines indicate separation type information.

在图2中,作为QT的最上层的CTU可以被分离成层1的四个节点。因此,块分离器110可以生成指示CTU被分离的QT_split_flag=1。不再按QT分离与层1的第一节点对应的块。因此,块分离器110生成QT_split_flag=0。In FIG. 2 , the CTU, which is the uppermost layer of QT, can be separated into four nodes of layer 1 . Therefore, the block splitter 110 may generate QT_split_flag=1 indicating that the CTU is split. The block corresponding to the first node of layer 1 is no longer separated by QT. Therefore, the chunk splitter 110 generates QT_split_flag=0.

然后,与QT的层1的第一节点对应的块可以进行BT。在该实施方式中,假定BT具有两种分离类型:将节点的块水平分离成相同大小的两个块的类型以及将节点的块垂直分离成相同大小的两个块的类型。QT的层1的第一节点成为BT的根节点“(层0)”。与BT的根节点对应的块被进一步分离成“(层1)”的块,因此块分离器110生成指示按BT分离块的BT_split_flag=1。然后,块分离器210生成指示对应块是被水平分离还是被垂直分离的分离类型信息。在图2中,与BT的根节点对应的块被垂直分离,因此生成指示垂直分离的1作为分离类型信息。根据垂直分离类型进一步分离从根节点分离出的“(层1)”的块当中的第一块,因此生成BT_split_flag=1和分离类型信息1。另一方面,从BT的根节点分离出的(层1)的第二块不再被分离,因此生成BT_split_flag=0。Then, the block corresponding to the first node of layer 1 of QT can be BTed. In this embodiment, it is assumed that BT has two split types: a type that splits a block of a node horizontally into two blocks of the same size and a type that splits a block of a node vertically into two blocks of the same size. The first node of layer 1 of QT becomes the root node "(layer 0)" of BT. The block corresponding to the root node of the BT is further split into blocks of "(layer 1)", so the block splitter 110 generates BT_split_flag=1 indicating to split blocks by BT. Then, the block separator 210 generates split type information indicating whether the corresponding block is split horizontally or vertically. In FIG. 2 , the block corresponding to the root node of the BT is vertically split, so 1 indicating vertical split is generated as split type information. The first block among the blocks of "(layer 1)" split from the root node is further split according to the vertical split type, so BT_split_flag=1 and split type information 1 are generated. On the other hand, the second block (layer 1) split from the root node of BT is not split anymore, so BT_split_flag=0 is generated.

为了将关于按QTBT结构分离的块的信息用信号高效通知给解码设备,可以另外对以下信息进行编码。这些信息可以被编码为视频的报头信息,例如,可以被编码成序列参数集(SPS)或图片参数集(PPS)。In order to efficiently signal information about blocks separated by the QTBT structure to a decoding device, the following information may be additionally encoded. Such information may be encoded as header information of the video, for example, may be encoded as a Sequence Parameter Set (SPS) or a Picture Parameter Set (PPS).

-CTU size:QTBT的最上层(即,根节点)的块大小;-CTU size: the block size of the top layer (ie, the root node) of QTBT;

-MinQTSize:QT中允许的叶节点的最小块大小;-MinQTSize: the minimum block size of leaf nodes allowed in QT;

-MaxBTSize:BT中允许的根节点的最大块大小;-MaxBTSize: the maximum block size of the root node allowed in BT;

-MaxBTDepth:BT中允许的最大深度;-MaxBTDepth: maximum depth allowed in BT;

-MinBTSize:BT中允许的叶节点的最小块大小。-MinBTSize: Minimum block size of leaf nodes allowed in BT.

QT中的大小与MinQTSize相同的块没有被进一步分离,因此关于与该块对应的QT的分离信息(第一标志)没有被编码。另外,QT中的大小比MaxBTSize大的块没有BT。因此,关于与该块对应的BT的分离信息(第二标志、分离类型信息)没有被编码。当BT的节点的深度达到MaxBTDepth时,节点的块没有被进一步分离,并且关于对应节点的BT的分离信息(第二标志、分离类型信息)没有被编码。另外,BT中的大小与MinBTSize相同的块没有被进一步分离,并且关于BT的分离信息(第二标志、分离类型信息)没有被编码。如此,QT和BT的根节点或叶节点的最大或最小块大小可以被定义在诸如序列参数集(SPS)或图片参数集(PPS)这样的高层处,因此,能够减少指示CTU是否被分离的信息或指示分离类型的信息的编码量。A block in a QT whose size is the same as MinQTSize is not further separated, so the separation information (first flag) on the QT corresponding to the block is not encoded. Also, blocks with a size larger than MaxBTSize in QT have no BT. Therefore, the split information (second flag, split type information) on the BT corresponding to the block is not encoded. When the depth of the node of the BT reaches MaxBTDepth, the block of the node is not further split, and the split information (second flag, split type information) about the BT of the corresponding node is not encoded. In addition, blocks of the same size as MinBTSize in BT are not further split, and split information (second flag, split type information) on BT is not encoded. In this way, the maximum or minimum block size of the root node or leaf node of QT and BT can be defined at a high layer such as sequence parameter set (SPS) or picture parameter set (PPS), thus, it is possible to reduce the An encoded amount of information or information indicating the type of separation.

可以使用相同的QTBT结构来分离CTU的亮度分量和色度分量。然而,本发明不限于此,并且可以分别使用单独的QTBT结构来分离亮度分量和色度分量。例如,在帧内(I)切片的情况下,可以使用不同的QTBT结构来分离亮度分量和色度分量。The same QTBT structure can be used to separate the luma and chrominance components of a CTU. However, the present invention is not limited thereto, and separate QTBT structures may be used to separate luma components and chrominance components, respectively. For example, in the case of intra (I) slices, different QTBT structures may be used to separate luma and chroma components.

下文中,与待编码或解码的CU对应的块被称为“当前块”。Hereinafter, a block corresponding to a CU to be encoded or decoded is referred to as a 'current block'.

预测器120预测当前块,以生成预测块。预测器120可以包括帧内预测器122和帧间预测器124。The predictor 120 predicts a current block to generate a prediction block. The predictor 120 may include an intra predictor 122 and an inter predictor 124 .

帧内预测器122使用位于包括当前块的当前图片中的当前块周围的像素(参考像素)来预测当前块中的像素。根据预测方向存在多种帧内预测模式,并且根据每种预测模式不同地定义待使用的邻近像素和计算式。The intra predictor 122 predicts pixels in the current block using pixels (reference pixels) located around the current block in the current picture including the current block. There are various intra prediction modes according to prediction directions, and adjacent pixels and calculation expressions to be used are defined differently according to each prediction mode.

帧间预测器124在比当前图片更早被编码和解码的参考图片内搜索与当前块最相似的块,并且使用搜索到的块生成当前块的预测块。另外,帧间预测器124生成与当前图片中的当前块与参考图片中的预测块之间的位移对应的运动矢量。包括关于用于预测当前块的参考图片的信息和关于运动矢量的信息的运动信息由编码器150编码并被发送到视频解码设备。The inter predictor 124 searches for a block most similar to the current block within a reference picture encoded and decoded earlier than the current picture, and generates a prediction block of the current block using the searched block. In addition, the inter predictor 124 generates a motion vector corresponding to a displacement between a current block in a current picture and a prediction block in a reference picture. Motion information including information on a reference picture used to predict a current block and information on a motion vector is encoded by the encoder 150 and transmitted to the video decoding apparatus.

可以使用各种方法使对运动信息进行编码所需的比特数最小化。Various methods can be used to minimize the number of bits required to encode motion information.

在一个示例中,当当前块的参考图片和运动矢量与邻近块的参考图片和运动矢量相同时,可以通过对能够用于识别邻近块的信息进行编码来将关于当前块的运动信息发送到解码设备。这种方法被称为“合并模式”。In one example, when the reference picture and motion vector of the current block are the same as those of the neighboring blocks, the motion information about the current block can be sent to the decoder by encoding the information that can be used to identify the neighboring blocks. equipment. This approach is called "merge mode".

在合并模式下,帧间预测器124可以从当前块的邻近块中选择预定数目的合并候选块(下文中被称为“合并候选”)。In the merge mode, the inter predictor 124 may select a predetermined number of merge candidate blocks (hereinafter referred to as 'merge candidates') from neighboring blocks of the current block.

如图3中所示,当前图片中的与当前块相邻的左块L、上块A、右上块AR、左下块BL和左上块AL中的一些或全部可以被用作用于推导合并候选的邻近块。另外,位于参考图片(其可以与用于预测当前块的参考图片相同或不同)而非当前块所处的当前图片中的块可以被用作合并候选。例如,参考图片中的当前块的共同定位块或与共同定位块相邻的块可以被进一步用作合并候选。As shown in FIG. 3, some or all of the left block L, upper block A, upper right block AR, lower left block BL, and upper left block AL adjacent to the current block in the current picture may be used as neighboring blocks. Also, a block located in a reference picture (which may be the same as or different from the reference picture used to predict the current block) instead of the current picture in which the current block is located may be used as a merging candidate. For example, a co-located block of the current block in a reference picture or a block adjacent to the co-located block may be further used as a merging candidate.

帧间预测器124使用邻近块来构造包括预定数目的合并候选的合并列表。将被用作当前块的运动信息的合并候选在合并列表中所包括的合并候选当中,并且生成用于识别所选择的候选的合并索引信息。所生成的合并索引信息由编码器150编码并被发送到视频解码设备。The inter predictor 124 constructs a merge list including a predetermined number of merge candidates using the neighboring blocks. Merge candidates to be used as motion information of the current block are among the merge candidates included in the merge list, and merge index information for identifying the selected candidate is generated. The generated merge index information is encoded by the encoder 150 and transmitted to the video decoding device.

作为对运动信息进行编码的另一种方法,可以对运动矢量差值(MVD)进行编码。As another method of encoding motion information, motion vector difference (MVD) can be encoded.

在这种方法中,帧间预测器124使用当前块的邻近块来推导当前块的运动矢量的运动矢量预测量(MVP)候选。图3中示出的当前图片中的与当前块邻近的左块L、上块A、右上块AR、左下块BL和左上块AL中的一些或全部可以被用作用于推导MVP候选的邻近块。另外,位于参考图片(其可以与用于预测当前块的参考图片相同或不同)而非当前块所处的当前图片中的块可以被用作用于推导MVP候选的邻近块。例如,可以使用参考图片中的当前块的共同定位块或与共同定位块相邻的块。In this approach, the inter predictor 124 uses neighboring blocks of the current block to derive motion vector predictor (MVP) candidates for the motion vector of the current block. Some or all of the left block L, upper block A, upper right block AR, lower left block BL, and upper left block AL adjacent to the current block in the current picture shown in FIG. 3 may be used as adjacent blocks for deriving MVP candidates . In addition, blocks located in a reference picture (which may be the same as or different from the reference picture used to predict the current block) instead of the current picture in which the current block is located may be used as neighboring blocks for deriving MVP candidates. For example, a co-located block of the current block in a reference picture or a block adjacent to the co-located block may be used.

帧间预测器124使用邻近块的运动矢量来推导MVP候选,并且使用MVP候选来确定当前块的运动矢量的MVP。帧间预测器通过从当前块的运动矢量中减去MVP来计算运动矢量差值(MVD)。The inter predictor 124 uses motion vectors of neighboring blocks to derive MVP candidates, and uses the MVP candidates to determine the MVP of the motion vector of the current block. The inter predictor calculates a motion vector difference (MVD) by subtracting the MVP from the motion vector of the current block.

可以通过将预定义函数(例如,中值或均值的计算)应用于MVP候选来获得MVP。在这种情况下,视频解码设备也知道该预定义函数。由于用于推导MVP候选的邻近块是已经被编码和解码的块,因此视频解码设备已经知道邻近块的运动矢量。因此,视频编码设备100不需要对用于识别MVP候选的信息进行编码。因此,在这种情况下,对关于MVD的信息和关于用于预测当前块的参考图片的信息进行编码。The MVP can be obtained by applying a predefined function (eg, calculation of median or mean) to the MVP candidate. In this case, the video decoding device also knows the predefined function. Since the neighboring blocks used to derive the MVP candidates are already encoded and decoded blocks, the video decoding apparatus already knows the motion vectors of the neighboring blocks. Accordingly, the video encoding apparatus 100 does not need to encode information for identifying MVP candidates. Therefore, in this case, information on the MVD and information on a reference picture used to predict a current block are encoded.

在另一实施方式中,可以通过选择MVP候选中的任一个来确定MVP。在这种情况下,用于识别所选择的MVP候选的信息附加地与关于MVD的信息和关于用于预测当前块的参考图片的信息一起被编码。In another embodiment, the MVP may be determined by selecting any one of the MVP candidates. In this case, information for identifying the selected MVP candidate is additionally encoded together with information on the MVD and information on a reference picture used to predict the current block.

减法器130从当前块中减去由帧内预测器122或帧间预测器124生成的预测块,以生成残余块。The subtracter 130 subtracts the prediction block generated by the intra predictor 122 or the inter predictor 124 from the current block to generate a residual block.

变换器140将残余块中的作为空间域中的值的残余信号变换为频域中的变换系数。变换器140可以使用当前块的大小作为变换单元来变换残余块中的残余信号,或者可以将残余块分离成多个更小的子块并以与子块的大小对应的变换单元变换残余信号。可以存在将残余块分离成较小子块的各种方法。例如,残余块可以被分离成相同预定义大小的子块,或者可以以将残余块作为根节点的四叉树(QT)的方式分离残余块。The transformer 140 transforms the residual signal in the residual block, which is a value in the spatial domain, into a transform coefficient in the frequency domain. The transformer 140 may transform the residual signal in the residual block using the size of the current block as a transformation unit, or may separate the residual block into a plurality of smaller subblocks and transform the residual signal in a transformation unit corresponding to the size of the subblock. There may be various methods of separating the residual block into smaller sub-blocks. For example, the residual block may be split into sub-blocks of the same predefined size, or the residual block may be split in the manner of a quadtree (QT) having the residual block as a root node.

量化器145量化从变换器140输出的变换系数并将量化后的变换系数输出到编码器150。The quantizer 145 quantizes the transform coefficient output from the transformer 140 and outputs the quantized transform coefficient to the encoder 150 .

编码器150使用诸如CABAC这样的编码方案对量化后的变换系数进行编码,以生成比特流。编码器150可以对与块分离相关的诸如CTU size、MinQTSize、MaxBTSize、MaxBTDepth、MinBTSize、QT_split_flag、BT_split_flag和分离类型这样的信息进行编码,并且解码设备可以以与编码设备相同的方式分离块。The encoder 150 encodes the quantized transform coefficients using an encoding scheme such as CABAC to generate a bitstream. The encoder 150 may encode information related to block separation such as CTU size, MinQTSize, MaxBTSize, MaxBTDepth, MinBTSize, QT_split_flag, BT_split_flag, and split type, and the decoding device may separate blocks in the same manner as the encoding device.

编码器150对关于指示当前块是经由帧内预测还是帧间预测进行编码的预测类型的信息进行编码,并且根据预测类型对帧内预测信息或帧间预测信息进行编码。The encoder 150 encodes information on a prediction type indicating whether a current block is encoded via intra prediction or inter prediction, and encodes the intra prediction information or the inter prediction information according to the prediction type.

当对当前块进行帧间预测时,编码器150对帧间预测信息的语法元素进行编码。帧间预测模式的语法元素可以包括以下信息。When inter-predicting a current block, the encoder 150 encodes syntax elements of inter-prediction information. The syntax elements of the inter prediction mode may include the following information.

(1)指示当前块的运动信息是以合并模式编码还是以MVD被编码的模式进行编码的模式信息(1) Mode information indicating whether the motion information of the current block is coded in merge mode or coded in MVD coded mode

(2)运动信息的语法元素(2) Syntactic elements of motion information

当按合并模式对运动信息进行编码时,编码器150将指示在合并候选当中选择哪一个候选作为用于提取当前块的运动信息的候选的合并索引信息编码为运动信息的语法元素。When encoding motion information in a merge mode, the encoder 150 encodes, as a syntax element of the motion information, merge index information indicating which candidate is selected among merge candidates as a candidate for extracting motion information of a current block.

另一方面,当按用于对MVD进行编码的模式对运动信息进行编码时,将关于MVD的信息和关于参考图片的信息编码为运动信息的语法元素。当使用从多个MVP候选中选择任一个候选的方法来确定MVP时,运动信息的语法元素还可以包括用于识别所选择的候选的MVP识别信息。On the other hand, when motion information is encoded in a mode for encoding MVD, information on the MVD and information on a reference picture are encoded as syntax elements of the motion information. When the MVP is determined using a method of selecting any one candidate from a plurality of MVP candidates, the syntax element of the motion information may further include MVP identification information for identifying the selected candidate.

逆量化器160对从量化器145输出的量化后的变换系数进行逆量化,以生成变换系数。逆变换器165将从逆量化器160输出的变换系数从频域变换到空间域,因此重构残余块。The inverse quantizer 160 inverse quantizes the quantized transform coefficients output from the quantizer 145 to generate transform coefficients. The inverse transformer 165 transforms the transform coefficient output from the inverse quantizer 160 from the frequency domain to the spatial domain, thus reconstructing the residual block.

加法器170将重构的残余块和由预测器120生成的预测块相加,以重构当前块。当对具有后续序列的块进行帧内预测时,恢复后的当前块中的像素可以被用作参考像素。The adder 170 adds the reconstructed residual block and the predicted block generated by the predictor 120 to reconstruct the current block. When performing intra prediction on a block having a subsequent sequence, pixels in the restored current block may be used as reference pixels.

滤波器单元180对重构的块之间的边界进行去块滤波,以便去除由于以块为单元进行编码/解码而产生的块效应并将去块滤波后的块存储在存储器190中。当恢复一个图片中的所有块时,恢复后的图片可以被用作对待后续编码的图片中的块进行帧间预测的参考图片。The filter unit 180 performs deblock filtering on a boundary between reconstructed blocks in order to remove blocking artifacts due to encoding/decoding in units of blocks and stores the deblock filtered blocks in the memory 190 . When all blocks in a picture are restored, the restored picture can be used as a reference picture for inter prediction of blocks in a picture to be encoded subsequently.

作为参考,视频编码设备可以使用跳过模式对当前块进行编码。在跳过模式下,只对当前块的运动信息进行编码,而不对诸如关于残余块的信息这样的关于当前块的任何其它信息进行编码。以上提到的合并索引信息可以被用作当前块的运动信息。当已经在跳过模式下对当前块进行编码时,视频解码设备将由从比特流解码出的合并索引信息指示的合并候选的运动信息设置为当前块的运动信息。在跳过模式下,基于当前块的运动信息预测出的预测块被重构为当前块。For reference, a video encoding apparatus may encode a current block using a skip mode. In skip mode, only the motion information of the current block is encoded, and no other information about the current block, such as information about the residual block, is encoded. The above-mentioned merge index information may be used as motion information of the current block. When the current block has been encoded in the skip mode, the video decoding apparatus sets the motion information of the merge candidate indicated by the merge index information decoded from the bitstream as the motion information of the current block. In the skip mode, the prediction block predicted based on the motion information of the current block is reconstructed as the current block.

跳过模式与用于对关于残余块的信息以及当前块的运动信息进行编码的合并模式的不同之处可以在于,除了当前块的运动信息之外没有其它信息在跳过模式下被编码。然而,用于在跳过模式和合并模式下对当前块的运动信息进行编码的方法是相同的,因此,所有以下对合并模式的描述可以以相同方式应用于跳过模式。The skip mode may differ from the merge mode for encoding information on the residual block and motion information of the current block in that no information other than the motion information of the current block is encoded in the skip mode. However, methods for encoding motion information of a current block in skip mode and merge mode are the same, and therefore, all following descriptions of merge mode can be applied to skip mode in the same manner.

图4是示出根据本发明的实施方式的视频编码设备400的图。FIG. 4 is a diagram illustrating a video encoding apparatus 400 according to an embodiment of the present invention.

根据本发明的实施方式的视频编码设备400可以包括分辨率确定器410、视频编码器420和分辨率编码器430。The video encoding apparatus 400 according to an embodiment of the present invention may include a resolution determiner 410 , a video encoder 420 and a resolution encoder 430 .

分辨率确定器410确定用于当前CU的运动估计的运动矢量分辨率。运动矢量分辨率可以是用于表示运动矢量的最小单位。运动矢量分辨率可以指示参考图片中的用于补偿当前CU的运动的分辨率,也就是说,可以指示被内插参考图片的像素。例如,当运动矢量分辨率是1/4像素时,可以将参考图片内插到1/4像素的位置,并且可以测量运动矢量直到1/4像素的单位。这里,用于确定运动矢量的最小单元可以是诸如1/4像素或1/2像素这样的分数像素,或者可以是诸如1个像素、2个像素、3个像素或4个像素这样的整数像素单元。The resolution determiner 410 determines a motion vector resolution for motion estimation of the current CU. Motion vector resolution may be the minimum unit for expressing motion vectors. The motion vector resolution may indicate the resolution in the reference picture for compensating the motion of the current CU, that is, may indicate the pixels of the reference picture being interpolated. For example, when the motion vector resolution is 1/4 pixel, the reference picture can be interpolated to the position of 1/4 pixel, and the motion vector can be measured up to the unit of 1/4 pixel. Here, the minimum unit for determining the motion vector may be a fractional pixel such as 1/4 pixel or 1/2 pixel, or may be an integer pixel such as 1 pixel, 2 pixels, 3 pixels, or 4 pixels unit.

视频编码器420根据所确定的运动矢量分辨率估计以块为单位(即,以CU为单位)的运动以确定CU的运动矢量,并且使用所确定的运动矢量来预测CU并对CU进行编码。The video encoder 420 estimates motion in units of blocks (ie, in units of CUs) according to the determined motion vector resolution to determine the motion vector of the CU, and predicts and encodes the CU using the determined motion vector.

分辨率编码器430对关于用于预测CU的运动矢量的运动矢量分辨率的信息进行编码。The resolution encoder 430 encodes information on a motion vector resolution for predicting a motion vector of a CU.

这里,视频编码器420可以被实施为以上参照图1描述的视频编码设备100。Here, the video encoder 420 may be implemented as the video encoding apparatus 100 described above with reference to FIG. 1 .

分辨率确定器410的功能可以被包括在视频编码设备100中的预测器120的以上提到的功能中,并且可以被集成在预测器120中。The function of the resolution determiner 410 may be included in the above-mentioned functions of the predictor 120 in the video encoding apparatus 100 and may be integrated in the predictor 120 .

分辨率编码器430的功能可以被包括在视频编码设备100的编码器150的以上提到的功能中,并且可以被集成在编码器150中。The function of the resolution encoder 430 may be included in the above-mentioned functions of the encoder 150 of the video encoding apparatus 100 and may be integrated in the encoder 150 .

图5是例示由帧间预测器124执行的内插和运动补偿过程以及运动矢量的分辨率的图。FIG. 5 is a diagram illustrating the interpolation and motion compensation process performed by the inter predictor 124 and the resolution of motion vectors.

图5例示了被存储在存储器190中的参考图片的像素和通过内插参考图片的整数个像素而形成的子像素。如图5中所示,当通过内插滤波器对参考图片的整数个像素A1至F6进行滤波时,例如,可以生成子像素“a”至“s”,并且当执行这种内插时,运动估计和运动补偿的分辨率可以与整数像素分辨率相比增大了2倍、4倍或更多倍。FIG. 5 illustrates pixels of a reference picture stored in the memory 190 and sub-pixels formed by interpolating an integer number of pixels of the reference picture. As shown in FIG. 5, when an integer number of pixels A1 to F6 of a reference picture are filtered by an interpolation filter, for example, sub-pixels "a" to "s" may be generated, and when such interpolation is performed, The resolution of motion estimation and motion compensation can be increased by a factor of 2, 4 or more compared to integer pixel resolution.

运动估计是从内插的参考图片中搜索当前CU的最相似部分并输出对应部分的块和指示对应块的运动矢量的过程。该过程中生成的运动矢量由编码器150编码。Motion estimation is a process of searching for the most similar part of the current CU from an interpolated reference picture and outputting a block of the corresponding part and a motion vector indicating the corresponding block. The motion vectors generated in this process are encoded by the encoder 150 .

在运动估计和运动补偿期间,当预测微动的图像区域时,运动矢量可以以分数像素(1/2像素、1/4像素、1/8像素或1/6像素)为单元表示,并且当预测运动大的图像区域时,可以以一个或更多个整数像素为单元(1个像素、2个像素、3个像素或4个像素为单元)表示运动矢量。During motion estimation and motion compensation, when predicting a fretting image area, the motion vector can be expressed in units of fractional pixels (1/2 pixel, 1/4 pixel, 1/8 pixel, or 1/6 pixel), and when When predicting an image area with large motion, the motion vector may be expressed in units of one or more integer pixels (units of 1 pixel, 2 pixels, 3 pixels or 4 pixels).

图6是用于比较两个帧的运动程度的图。FIG. 6 is a graph for comparing the degrees of motion of two frames.

在图6中,当就包括在其中的对象的运动方面将参考帧和当前帧进行比较时,在这两个帧之间,与图6中的圆对应的对象微动,因此,可以以分数像素为单元估计对应对象的运动,并且因为在这两个帧之间,与三角形对应的物体具有相对大的运动,所以可以以整数像素为单元来估计运动。In FIG. 6, when the reference frame and the current frame are compared in terms of the motion of the objects included therein, between these two frames, the objects corresponding to the circles in FIG. The motion of the corresponding object is estimated in units of pixels, and since the object corresponding to the triangle has a relatively large motion between the two frames, the motion can be estimated in units of integer pixels.

当作为编码目标的CU的帧间预测模式是合并模式时,不直接用信号通知运动信息,而是,用信号通知与从多个运动信息候选中选择的运动信息候选对应的索引值。因此,不发送关于所选择的运动信息候选的运动矢量分辨率的信息。When the inter prediction mode of the CU that is an encoding target is the merge mode, motion information is not directly signaled, but an index value corresponding to a motion information candidate selected from a plurality of motion information candidates is signaled. Therefore, no information on the motion vector resolution of the selected motion information candidate is transmitted.

另一方面,当CU的帧间预测模式是对MVD进行编码的模式时,用信号通知MVD信息,因此,可以根据MVD的分辨率更有效地以分数像素为单元或以整数像素为单元表示MVD信息。On the other hand, when the inter prediction mode of the CU is the mode to encode the MVD, the MVD information is signaled, therefore, the MVD can be represented more efficiently in units of fractional pixels or in units of integer pixels according to the resolution of the MVD information.

图7是示出根据实施方式的分辨率确定器410的示例的图。FIG. 7 is a diagram illustrating an example of a resolution determiner 410 according to an embodiment.

分辨率确定器410可以包括分辨率模式确定器710、替代分辨率确定器720和自适应分辨率确定器730。在一些实施方式中,分辨率确定器410可以以省略分辨率模式确定器710、替代分辨率确定器720和自适应分辨率确定器730中的至少一个组件的形式来实施。The resolution determiner 410 may include a resolution mode determiner 710 , an alternative resolution determiner 720 and an adaptive resolution determiner 730 . In some embodiments, the resolution determiner 410 may be implemented by omitting at least one component of the resolution mode determiner 710 , the alternative resolution determiner 720 and the adaptive resolution determiner 730 .

分辨率模式确定器710确定是否激活自适应运动矢量分辨率模式。例如,可以相对于包括在多个CU中的上层图像单元来选择是否自适应地启用运动矢量分辨率。这里,上层图像单元可以是图像序列、图片、切片、CTU等。当不自适应地启用上层图像单元的运动矢量分辨率时(即,当对应模式不是自适应运动矢量分辨率模式时),将默认运动矢量分辨率应用于上层图像单元中的所有CU。也就是说,诸如1/4像素这样的固定默认运动矢量分辨率可以被应用于上层图像单元中的所有CU。这里,默认运动矢量分辨率可以是由视频编码设备和视频解码设备共享的预定的特定运动矢量分辨率,或者可以是由视频编码设备在上层图像区域中确定的值并且被用信号通知给视频解码设备。另一方面,当启用自适应运动矢量分辨率模式以被应用时,下面将描述的替代分辨率确定器720和自适应分辨率确定器730自适应地确定要被帧间预测的每个CU的运动矢量分辨率。The resolution mode determiner 710 determines whether to activate the adaptive motion vector resolution mode. For example, whether to adaptively enable motion vector resolution may be selected with respect to higher layer image units included in a plurality of CUs. Here, the upper-layer image unit may be an image sequence, a picture, a slice, a CTU, and the like. When the motion vector resolution of the higher layer picture unit is not adaptively enabled (ie, when the corresponding mode is not the adaptive motion vector resolution mode), the default motion vector resolution is applied to all CUs in the higher layer picture unit. That is, a fixed default motion vector resolution such as 1/4 pixel may be applied to all CUs in the upper layer picture unit. Here, the default motion vector resolution may be a predetermined specific motion vector resolution shared by the video encoding device and the video decoding device, or may be a value determined by the video encoding device in the upper layer image area and signaled to the video decoding equipment. On the other hand, when the adaptive motion vector resolution mode is enabled to be applied, the substitute resolution determiner 720 and the adaptive resolution determiner 730 which will be described below adaptively determine the resolution of each CU to be inter-predicted. Motion vector resolution.

当启用自适应运动矢量分辨率模式以被应用时,替代分辨率确定器720确定除了默认运动矢量分辨率之外的替代分辨率。可以针对序列、图片、切片、CTU和CU中的任一个的每个单元应用替代分辨率。可以为与应用自适应运动矢量分辨率模式的图像单元相同的各个图像单元确定替代分辨率。例如,当以SPS为单元应用自适应运动矢量分辨率模式时,也可以以SPS为单元确定替代分辨率,并且当以PPS或切片为单元应用自适应运动矢量分辨率模式时,也可以以PPS或切片为单元确定替代分辨率。另选地,可以为比应用了自适应运动矢量分辨率模式的图像单元小的每个图像单元(例如,切片、CTU或CU)确定替代分辨率。例如,当以SPS为单元应用自适应运动矢量分辨率模式时,可以以作为比SPS低的层的图像单元的PPS、切片和CTU中的任一个为单元确定替代分辨率,并且当以PPS为单元应用自适应运动矢量分辨率模式时,可以以作为比PPS低的层的图像单元的片和CTU中的任一个为单元确定替代分辨率。另选地,可以以待编码的CU为单元确定替代分辨率。When the adaptive motion vector resolution mode is enabled to be applied, the substitute resolution determiner 720 determines a substitute resolution other than the default motion vector resolution. Alternate resolutions may be applied per unit of any of sequences, pictures, slices, CTUs, and CUs. Alternate resolutions may be determined for individual image units identical to the image unit to which the adaptive motion vector resolution mode is applied. For example, when the adaptive motion vector resolution mode is applied in units of SPS, the alternative resolution can also be determined in units of SPS, and when the adaptive motion vector resolution mode is applied in units of PPS or slices, it can also be determined in units of PPS or slice determines an alternate resolution for the cell. Alternatively, an alternative resolution may be determined for each image unit (eg, slice, CTU, or CU) that is smaller than the image unit to which the adaptive motion vector resolution mode is applied. For example, when the adaptive motion vector resolution mode is applied in units of SPS, the alternative resolution may be determined in units of any one of PPS, slice, and CTU, which are picture units of layers lower than the SPS, and when the resolution is determined in units of PPS When the adaptive motion vector resolution mode is applied by unit, an alternative resolution may be determined in units of either a slice or a CTU which is a picture unit of a layer lower than the PPS. Alternatively, the alternative resolution may be determined in units of CUs to be encoded.

替代分辨率确定器720可以选择多个运动矢量分辨率候选当中的一个作为替代分辨率。The alternative resolution determiner 720 may select one of a plurality of motion vector resolution candidates as an alternative resolution.

自适应分辨率确定器730可以确定当前CU的运动矢量分辨率。例如,自适应分辨率确定器730可以将默认运动矢量分辨率和替代分辨率中的任一个确定为当前CU的运动矢量分辨率。The adaptive resolution determiner 730 may determine the motion vector resolution of the current CU. For example, the adaptive resolution determiner 730 may determine any one of a default motion vector resolution and an alternative resolution as the motion vector resolution of the current CU.

分辨率编码器430可以基于由分辨率确定器410确定的信息来生成关于运动矢量分辨率的信息并且对其进行编码。下文中,在从默认运动矢量分辨率和替代分辨率当中确定了当前CU的运动矢量分辨率的情况下,针对第一实施方式和第二实施方式将分辨率编码器430对运动矢量分辨率信息进行编码的方法示例化。The resolution encoder 430 may generate and encode information on motion vector resolution based on the information determined by the resolution determiner 410 . Hereinafter, in the case where the motion vector resolution of the current CU is determined from among the default motion vector resolution and the alternative resolution, the resolution encoder 430 compares the motion vector resolution information with respect to the first and second embodiments. Methods for encoding are instantiated.

第一实施方式first embodiment

在第一实施方式中,用于选择是否在默认运动矢量分辨率和替代分辨率之间自适应地确定运动矢量分辨率的图像单元与用于确定替代分辨率的图像单元相同,并且这两个图像单元均比CU大。In the first embodiment, the image unit used to select whether to adaptively determine the motion vector resolution between the default motion vector resolution and the alternative resolution is the same as the image unit used to determine the alternative resolution, and the two Image units are larger than CUs.

当由分辨率模式确定器710为每个图像序列单元选择了是否自适应地启用运动矢量分辨率时,分辨率编码器430可以将作为指示是否自适应地启用运动矢量分辨率的标志的Adaptive_MV_resolution_enabled_flag(即,第一识别信息)插入到序列参数集(SPS)中。When whether to adaptively enable the motion vector resolution is selected for each image sequence unit by the resolution mode determiner 710, the resolution encoder 430 may set Adaptive_MV_resolution_enabled_flag( That is, the first identification information) is inserted into the sequence parameter set (SPS).

当由分辨率模式确定器710为每个图片单元选择了是否自适应地启用运动矢量分辨率时,分辨率编码器430可以将作为指示是否自适应地启用运动矢量分辨率的标志的Adaptive_MV_resolution_enabled_flag插入到图片参数集(PPS)中。When whether to adaptively enable motion vector resolution is selected for each picture unit by the resolution mode determiner 710, the resolution encoder 430 may insert Adaptive_MV_resolution_enabled_flag, which is a flag indicating whether to adaptively enable motion vector resolution, into in the Picture Parameter Set (PPS).

当由分辨率模式确定器710为每个切片(或CTU)单元选择了是否自适应地启用运动矢量分辨率时,分辨率编码器430可以将作为指示是否自适应地启用运动矢量分辨率的标志的Adaptive_MV_resolution_enabled_flag插入到切片(或CTU)报头中。When whether to adaptively enable the motion vector resolution is selected for each slice (or CTU) unit by the resolution mode determiner 710, the resolution encoder 430 may set the flag as indicating whether to adaptively enable the motion vector resolution The Adaptive_MV_resolution_enabled_flag is inserted into the slice (or CTU) header.

当分辨率模式确定器710选择了自适应地启用运动矢量分辨率的自适应运动矢量分辨率模式时,可以设置Adaptive_MV_resolution_enabled_flag=ON(例如,ON=1)。否则,可以设置Adaptive_MV_resolution_enabled_flag=OFF(例如,在ON=1,OFF=0的情况下)。When the resolution mode determiner 710 selects an adaptive motion vector resolution mode that adaptively enables motion vector resolution, Adaptive_MV_resolution_enabled_flag=ON (for example, ON=1) may be set. Otherwise, Adaptive_MV_resolution_enabled_flag=OFF may be set (for example, in the case of ON=1, OFF=0).

根据第一实施方式,在替代分辨率确定器720处确定替代分辨率的单元与设置Adaptive_MV_resolution_enabled_flag的单元相同。在Adaptive_MV_resolution_enabled_flag=ON的情况下,替代分辨率确定器720确定替代分辨率,并且分辨率编码器430生成指示所确定的替代分辨率的alternative_mv_resolution信息。分辨率编码器430对为与用于设置Adaptive_MV_resolution_enabled_flag的单元相同的各个单元生成的alternative_mv_resolution信息进行编码。According to the first embodiment, a unit of determining a substitute resolution at the substitute resolution determiner 720 is the same as a unit of setting Adaptive_MV_resolution_enabled_flag. In case of Adaptive_MV_resolution_enabled_flag=ON, the alternative resolution determiner 720 determines an alternative resolution, and the resolution encoder 430 generates alternative_mv_resolution information indicating the determined alternative resolution. The resolution encoder 430 encodes alternative_mv_resolution information generated for the same respective units as the unit for setting Adaptive_MV_resolution_enabled_flag.

当选择了多个预定义的运动矢量分辨率候选中的一个作为替代分辨率时,分辨率编码器430可以生成用于识别从所述多个预定义的运动矢量分辨率候选中选择的替代分辨率的信息并将其编码为alternative_mv_resolution信息。When one of a plurality of predefined motion vector resolution candidates is selected as an alternative resolution, the resolution encoder 430 may generate an alternative resolution for identifying the alternative resolution selected from the plurality of predefined motion vector resolution candidates. rate information and encode it as alternative_mv_resolution information.

当自适应分辨率确定器730确定了将用作当前CU的运动矢量分辨率的默认运动矢量分辨率时,分辨率编码器430可以生成指示默认运动矢量分辨率被用作当前CU的运动矢量分辨率的mv_resolution_flag(即,第二识别信息)。When the adaptive resolution determiner 730 determines the default motion vector resolution to be used as the motion vector resolution of the current CU, the resolution encoder 430 may generate a motion vector resolution indicating that the default motion vector resolution is used as the current CU. rate mv_resolution_flag (that is, the second identification information).

当自适应分辨率确定器730确定了将被用作当前CU的运动矢量分辨率的并非默认运动矢量分辨率的替代分辨率时,分辨率编码器430可以生成指示替代分辨率被用作当前CU的运动矢量分辨率的mv_resolution_flag并且对其进行编码。When adaptive resolution determiner 730 determines an alternative resolution other than the default motion vector resolution to be used as the motion vector resolution of the current CU, resolution encoder 430 may generate a mv_resolution_flag of the motion vector resolution and encode it.

第二实施方式second embodiment

在第二实施方式中,与用于确定替代分辨率的图像单元相比,用于选择是否在默认运动矢量分辨率和替代分辨率之间自适应地确定运动矢量分辨率的图像单元是更高层的图像单元,而与CU相比,用于确定替代分辨率的图像单元是更高层的图像单元。In a second embodiment, the image unit used to select whether to adaptively determine the motion vector resolution between the default motion vector resolution and the alternative resolution is a higher layer than the image unit used to determine the alternative resolution , and the picture unit used to determine the alternative resolution is a higher-level picture unit compared to the CU.

第一实施方式是以下的实施方式:用于选择是否在默认运动矢量分辨率和替代分辨率之间自适应地确定运动矢量分辨率的图像单元与用于确定替代分辨率的图像单元相同,并且这两个图像单元均比CU大。The first embodiment is an embodiment in which an image unit for selecting whether to adaptively determine a motion vector resolution between a default motion vector resolution and an alternative resolution is the same as an image unit for determining an alternative resolution, and Both of these picture units are larger than the CU.

当由分辨率模式确定器710为每个图像序列单元选择了是否自适应地启用运动矢量分辨率时,分辨率编码器430可以将作为指示是否自适应地启用运动矢量分辨率的标志的Adaptive_MV_resolution_enabled_flag插入到SPS中。When whether to adaptively enable the motion vector resolution is selected for each image sequence unit by the resolution mode determiner 710, the resolution encoder 430 may insert Adaptive_MV_resolution_enabled_flag which is a flag indicating whether to adaptively enable the motion vector resolution into the SPS.

当由分辨率模式确定器710为每个图片单元选择了是否自适应地启用运动矢量分辨率时,分辨率编码器430可以将作为指示是否自适应地启用运动矢量分辨率的标志的Adaptive_MV_resolution_enabled_flag插入到PPS中。When whether to adaptively enable motion vector resolution is selected for each picture unit by the resolution mode determiner 710, the resolution encoder 430 may insert Adaptive_MV_resolution_enabled_flag, which is a flag indicating whether to adaptively enable motion vector resolution, into In PPS.

这里,当分辨率模式确定器710选择了自适应地启用运动矢量分辨率的自适应运动矢量分辨率模式时,可以设置Adaptive_MV_resolution_enabled_flag=ON。否则,可以设置Adaptive_MV_resolution_enabled_flag=OFF。Here, when the resolution mode determiner 710 selects an adaptive motion vector resolution mode that adaptively enables motion vector resolution, Adaptive_MV_resolution_enabled_flag=ON may be set. Otherwise, Adaptive_MV_resolution_enabled_flag=OFF may be set.

在替代分辨率确定器720处确定替代分辨率的单元可以被确定为比设置Adaptive_MV_resolution_enabled_flag的图像单元小并且比CU大的图像单元(例如,切片或CTU)。在这种情况下,分辨率编码器430可以生成指示每个切片或CTU的替代分辨率的alternative_mv_resolution信息并且对其进行编码。A unit determining a substitute resolution at the substitute resolution determiner 720 may be determined as a picture unit (for example, a slice or a CTU) smaller than a picture unit for which Adaptive_MV_resolution_enabled_flag is set and larger than a CU. In this case, the resolution encoder 430 may generate alternative_mv_resolution information indicating an alternative resolution of each slice or CTU and encode it.

当选择了多个预定义的运动矢量分辨率候选中的一个作为替代分辨率时,分辨率编码器430可以生成用于识别从所述多个预定义的运动矢量分辨率候选中选择的替代分辨率的信息并将其编码为alternative_mv_resolution信息。When one of a plurality of predefined motion vector resolution candidates is selected as an alternative resolution, the resolution encoder 430 may generate an alternative resolution for identifying the alternative resolution selected from the plurality of predefined motion vector resolution candidates. rate information and encode it as alternative_mv_resolution information.

当alternative_mv_resolution信息的值指示0时,不自适应地启用对应切片或CTU中的所有CU的运动矢量分辨率。When the value of alternative_mv_resolution information indicates 0, motion vector resolutions of all CUs in a corresponding slice or CTU are not adaptively enabled.

当自适应地启用运动矢量分辨率时,分辨率编码器430可以为每个切片或CTU生成作为指示是否使用替代分辨率的标志的Alternative_enabled_flag信息,并且可以对Alternative_enabled_flag信息进行编码。When the motion vector resolution is adaptively enabled, the resolution encoder 430 may generate Alternative_enabled_flag information as a flag indicating whether to use an alternative resolution for each slice or CTU, and may encode the Alternative_enabled_flag information.

这里,当使用替代分辨率时,可以为每个切片或CTU生成指示替代分辨率的alternative_mv_resolution信息并且对其进行编码。Here, when an alternative resolution is used, alternative_mv_resolution information indicating an alternative resolution may be generated and encoded for each slice or CTU.

当自适应分辨率确定器730确定使用默认运动矢量分辨率作为当前CU的运动矢量分辨率时,分辨率编码器430可以生成指示默认运动矢量分辨率被用作当前CU的运动矢量分辨率的mv_resolution_flag并且对其进行编码。When the adaptive resolution determiner 730 determines to use the default motion vector resolution as the motion vector resolution of the current CU, the resolution encoder 430 may generate mv_resolution_flag indicating that the default motion vector resolution is used as the motion vector resolution of the current CU and encode it.

当自适应分辨率确定器730确定使用并非默认运动矢量分辨率的替代分辨率作为当前CU的运动矢量分辨率时,分辨率编码器430可以生成指示替代分辨率被用作当前CU的运动矢量分辨率的mv_resolution_flag并且可以对关于mv_resolution_flag的信息进行编码。When adaptive resolution determiner 730 determines to use an alternative resolution other than the default motion vector resolution as the motion vector resolution of the current CU, resolution encoder 430 may generate a motion vector resolution indicating that the alternative resolution is used as the current CU. rate mv_resolution_flag and may encode information about the mv_resolution_flag.

第三实施方式third embodiment

在第二实施方式中,用于在默认运动矢量分辨率和替代分辨率之间自适应地确定运动矢量分辨率的图像单元是比用于确定替代分辨率的图像单元更高的层的图像单元,并且用于确定替代分辨率的图像单元是CU单元。In the second embodiment, the image unit for adaptively determining the motion vector resolution between the default motion vector resolution and the alternative resolution is an image unit of a higher layer than the image unit for determining the alternative resolution , and the picture unit used to determine the alternative resolution is the CU unit.

当由分辨率模式确定器710为每个图像序列单元、每个图片单元、每个切片单元或每个CTU单元选择了是否自适应地启用运动矢量分辨率时,分辨率编码器430可以将作为指示是否自适应地启用运动矢量分辨率的标志的Adaptive_MV_resolution_enabled_flag插入到SPS、PPS、切片报头或CTU报头中。When whether to adaptively enable motion vector resolution is selected by the resolution mode determiner 710 for each image sequence unit, each picture unit, each slice unit, or each CTU unit, the resolution encoder 430 may set the resolution as Adaptive_MV_resolution_enabled_flag indicating whether a flag for motion vector resolution is adaptively enabled is inserted into the SPS, PPS, slice header, or CTU header.

如同第一实施方式和第二实施方式中一样,根据是否自适应地启用运动矢量分辨率的选择结果,可以将Adaptive_MV_resolution_enabled_flag设置为ON或OFF。As in the first and second embodiments, Adaptive_MV_resolution_enabled_flag can be set to ON or OFF according to the selection result of whether to enable the motion vector resolution adaptively.

当分辨率模式确定器710选择了自适应地启用运动矢量分辨率的自适应运动矢量分辨率模式时,如果选择默认运动矢量分辨率作为当前CU的运动矢量分辨率,则分辨率编码器430可以生成指示默认运动矢量分辨率被用作当前CU的运动矢量分辨率的mv_resolution_flag并且对其进行编码。When the resolution mode determiner 710 selects the adaptive motion vector resolution mode that adaptively enables the motion vector resolution, if the default motion vector resolution is selected as the motion vector resolution of the current CU, the resolution encoder 430 may The mv_resolution_flag indicating that the default motion vector resolution is used as the motion vector resolution of the current CU is generated and encoded.

根据第三实施方式,用于由替代分辨率确定器720确定替代分辨率的单元可以是与用于确定运动矢量分辨率的单元相同的CU单元。According to the third embodiment, a unit for determining a substitute resolution by the substitute resolution determiner 720 may be the same CU unit as a unit for determining a motion vector resolution.

当使用并非默认运动矢量分辨率的替代分辨率作为当前CU的运动矢量分辨率时,分辨率编码器430可以生成指示替代分辨率被用作当前CU的运动矢量分辨率的mv_resolution_flag,可以生成关于由替代分辨率确定器720确定的替代分辨率的alternative_mv_resolution信息,并且可以对关于mv_resolution_flag和alternative_mv_resolution的信息进行编码。When an alternative resolution other than the default motion vector resolution is used as the motion vector resolution of the current CU, the resolution encoder 430 may generate mv_resolution_flag indicating that the alternative resolution is used as the motion vector resolution of the current CU, and may generate The alternative resolution determiner 720 determines alternative_mv_resolution information of an alternative resolution, and may encode information on mv_resolution_flag and alternative_mv_resolution.

当选择了多个预定义的运动矢量分辨率候选中的一个作为替代分辨率时,分辨率编码器430可以将用于识别从所述多个预定义的运动矢量分辨率候选中选择的替代分辨率的信息编码为alternative_mv_resolution信息。When one of a plurality of predefined motion vector resolution candidates is selected as an alternative resolution, the resolution encoder 430 may use the Rate information is encoded as alternative_mv_resolution information.

自适应分辨率确定器730可以选择多个运动矢量分辨率候选中的任一个作为当前CU的运动矢量分辨率,而不是选择默认运动矢量分辨率和替代分辨率中的任一个作为当前CU的运动矢量分辨率。在这种情况下,为了对所确定的当前CU的运动矢量分辨率信息进行有效编码,分辨率编码器430可以将当前CU的运动矢量分辨率信息编码为当前CU的运动矢量分辨率与替代分辨率之间的差值或者当前CU的运动矢量分辨率与先前CU的运动矢量分辨率之间的差值,而不是对当前CU的运动矢量分辨率本身进行编码。The adaptive resolution determiner 730 may select any one of a plurality of motion vector resolution candidates as the motion vector resolution of the current CU, instead of selecting any one of the default motion vector resolution and the alternative resolution as the motion vector resolution of the current CU. Vector resolution. In this case, in order to effectively encode the determined motion vector resolution information of the current CU, the resolution encoder 430 may encode the motion vector resolution information of the current CU into the motion vector resolution of the current CU and the alternative resolution rate, or the difference between the motion vector resolution of the current CU and the motion vector resolution of the previous CU, instead of encoding the motion vector resolution of the current CU itself.

图8是示出在当前CU的运动矢量分辨率信息被编码为分辨率差值时的分辨率编码器430的示例的图。FIG. 8 is a diagram illustrating an example of the resolution encoder 430 when motion vector resolution information of a current CU is encoded as a resolution difference value.

如图8中所示,分辨率编码器430可以包括编码信息生成器810和分辨率差值计算器820。下面将针对第四实施方式描述详细操作。As shown in FIG. 8 , the resolution encoder 430 may include an encoding information generator 810 and a resolution difference calculator 820 . Detailed operations will be described below for the fourth embodiment.

第四实施方式Fourth Embodiment

当分辨率模式确定器710以序列、图片、切片或CTU为单位自适应地启用运动矢量分辨率时,编码信息生成器810可以针对作为更高的图像单元的每个序列、每个图片、每个切片单元或每个CTU单元将Adaptive_MV_resolution_enabled_flag设置为ON。When the resolution mode determiner 710 adaptively enables motion vector resolution in units of sequences, pictures, slices, or CTUs, the encoding information generator 810 can target each sequence, each picture, and each slice units or each CTU unit set Adaptive_MV_resolution_enabled_flag to ON.

编码信息生成器810可以针对更高的图像单元中的每个CU检查默认运动矢量分辨率是否被用作对应CU的运动矢量分辨率。当默认运动矢量分辨率被用作当前CU的运动矢量分辨率时,编码信息生成器810可以将与当前CU对应的mv_resolution_flag设置为OFF。当默认运动矢量分辨率未被用作当前CU的运动矢量分辨率并且从多个运动矢量分辨率候选中选择的任一个被用作当前CU的运动矢量分辨率时,编码信息生成器810可以将与当前CU对应的mv_resolution_flag设置为ON。The encoding information generator 810 may check for each CU in a higher picture unit whether a default motion vector resolution is used as the motion vector resolution of the corresponding CU. When the default motion vector resolution is used as the motion vector resolution of the current CU, the encoding information generator 810 may set the mv_resolution_flag corresponding to the current CU to OFF. When the default motion vector resolution is not used as the motion vector resolution of the current CU and any one selected from a plurality of motion vector resolution candidates is used as the motion vector resolution of the current CU, the encoding information generator 810 may set The mv_resolution_flag corresponding to the current CU is set to ON.

当替代分辨率确定器720确定与用于设置Adaptive_MV_resolution_enabled_flag的单元相同的各个图像单元的替代分辨率值时,编码信息生成器810可以将所确定的替代分辨率编码为与用于设置Adaptive_MV_resolution_enabled_flag的单元相同的各个图像单元的alternative_mv_resolution信息。When the alternative resolution determiner 720 determines an alternative resolution value of each image unit that is the same as the unit for setting the Adaptive_MV_resolution_enabled_flag, the encoding information generator 810 may encode the determined alternative resolution as the same unit for setting the Adaptive_MV_resolution_enabled_flag The alternative_mv_resolution information of each image unit.

如上所述,用于确定替代分辨率的单元不限于针对与用于设置Adaptive_MV_resolution_enabled_flag的单元相同的各个图像单元进行确定,而是可以针对每个CU单元进行确定或者可以针对比用于设置Adaptive_MV_resolution_enabled_flag的单元小且比CU单元大的每个图像单元进行确定,但是以上已经给出了对其的描述,因此,省略对其的详细描述。As described above, the unit for determining the alternative resolution is not limited to determining for each image unit that is the same as the unit for setting Adaptive_MV_resolution_enabled_flag, but may be determined for each CU unit or may be for a unit other than the unit for setting Adaptive_MV_resolution_enabled_flag Each image unit that is smaller and larger than the CU unit is determined, but its description has been given above, and thus its detailed description is omitted.

当从多个运动矢量分辨率候选中选择的任一个被用作当前CU的运动矢量分辨率时,分辨率差值计算器820可以计算作为当前CU的运动矢量分辨率与先前CU的运动矢量分辨率之间的差值的分辨率差值(例如,通过从当前CU的运动矢量分辨率中减去先前CU的运动矢量分辨率而得到的值)作为被包括在关于当前CU的运动矢量分辨率的信息中的元素。When any one selected from a plurality of motion vector resolution candidates is used as the motion vector resolution of the current CU, the resolution difference calculator 820 may calculate the difference between the motion vector resolution of the current CU and the motion vector resolution of the previous CU. The resolution difference (for example, the value obtained by subtracting the motion vector resolution of the previous CU from the motion vector resolution of the current CU) is included in the elements in the information.

然而,当当前CU是上层图像单元中的CU当中的按编码顺序的第一CU时,分辨率差值计算器820可以将当前CU的运动矢量分辨率确定为分辨率差值信息,或者可以将由替代分辨率确定器720确定的替代分辨率确定为分辨率差值信息。However, when the current CU is the first CU in encoding order among the CUs in the higher layer image unit, the resolution difference calculator 820 may determine the motion vector resolution of the current CU as the resolution difference information, or may use The alternative resolution determined by the alternative resolution determiner 720 is determined as resolution difference information.

当从多个运动矢量分辨率候选中选择的任一个被用作当前CU的运动矢量分辨率时,分辨率差值计算器820可以计算作为当前CU的运动矢量分辨率与alternative_mv_resolution之间的差值的分辨率差值(例如,通过从当前CU的运动矢量分辨率中减去alternative_mv_resolution而得到的值)作为被包括在关于当前CU的运动矢量分辨率的信息中的元素。When any one selected from a plurality of motion vector resolution candidates is used as the motion vector resolution of the current CU, the resolution difference calculator 820 may calculate as a difference between the motion vector resolution of the current CU and alternative_mv_resolution A resolution difference value of (for example, a value obtained by subtracting alternative_mv_resolution from the motion vector resolution of the current CU) as an element included in the information on the motion vector resolution of the current CU.

由分辨率差值计算器820确定的分辨率差值信息可以被存储为mv_resolution_delta。The resolution difference information determined by the resolution difference calculator 820 may be stored as mv_resolution_delta.

当当前CU的运动矢量分辨率被描述为mv_resolution_delta值时,不需要生成替代分辨率,因此,可以省略替代分辨率确定器720的操作。When the motion vector resolution of the current CU is described as the mv_resolution_delta value, there is no need to generate a substitute resolution, and thus, the operation of the substitute resolution determiner 720 may be omitted.

编码信息生成器810可以基于分辨率模式确定器710和自适应分辨率确定器730的结果来生成关于当前CU的运动矢量分辨率的信息并且对其进行编码。编码信息生成器810可以根据分辨率模式确定器710是否自适应地启用包括在上层图像单元中的CU的运动矢量分辨率来将Adaptive_MV_resolution_enabled_flag编码为ON或OFF。The encoding information generator 810 may generate and encode information on the motion vector resolution of the current CU based on the results of the resolution mode determiner 710 and the adaptive resolution determiner 730 . The encoding information generator 810 may encode Adaptive_MV_resolution_enabled_flag as ON or OFF according to whether the resolution mode determiner 710 adaptively enables the motion vector resolution of the CU included in the higher layer image unit.

当Adaptive_MV_resolution_enabled_flag为ON时,自适应分辨率确定器730选择是否将默认运动矢量分辨率用作当前CU的运动矢量分辨率,或者将从多个运动矢量分辨率候选中选择的任一个确定为当前CU的运动矢量分辨率。编码信息生成器810根据选择对mv_resolution_flag进行编码。当Adaptive_MV_resolution_enabled_flag为OFF时,编码信息生成器810不对mv_resolution_flag进行编码。When Adaptive_MV_resolution_enabled_flag is ON, the adaptive resolution determiner 730 selects whether to use the default motion vector resolution as the motion vector resolution of the current CU, or to determine any one selected from a plurality of motion vector resolution candidates as the current CU motion vector resolution. The encoding information generator 810 encodes mv_resolution_flag according to the selection. When Adaptive_MV_resolution_enabled_flag is OFF, the encoding information generator 810 does not encode mv_resolution_flag.

当mv_resolution_flag为ON时(即,当从多个运动矢量分辨率候选中选择的任一个被用作当前CU的运动矢量分辨率时),编码信息生成器810可以对作为关于由分辨率差值计算器820计算的分辨率差值的信息的mv_resolution_delta进行编码。当mv_resolution_flag为OFF时(即,当默认运动矢量分辨率被用作当前CU的运动矢量分辨率时),编码信息生成器810可以不对mv_resolution_delta进行编码。When mv_resolution_flag is ON (that is, when any one selected from a plurality of motion vector resolution candidates is used as the motion vector resolution of the current CU), the encoding information generator 810 may set the The mv_resolution_delta of the resolution difference information calculated by the unit 820 is encoded. When mv_resolution_flag is OFF (ie, when the default motion vector resolution is used as the motion vector resolution of the current CU), the encoding information generator 810 may not encode mv_resolution_delta.

分辨率编码器430可以将分辨率差值表示为经由除法运算得到的分辨率比例因子而非经由减法运算“-”得到的值。此外,比例因子可以在对数尺度上表示,并且将针对第五实施方式描述对其的详细操作。The resolution encoder 430 may represent the resolution difference value as a resolution scaling factor obtained through a division operation instead of a value obtained through a subtraction operation "-". Furthermore, the scale factor can be expressed on a logarithmic scale, and its detailed operation will be described for the fifth embodiment.

第五实施方式Fifth Embodiment

图9是示出将当前CU的运动矢量分辨率表示为分辨率比例因子而非分辨率差值的分辨率编码器430的示例的图。FIG. 9 is a diagram showing an example of the resolution encoder 430 representing the motion vector resolution of the current CU as a resolution scale factor instead of a resolution difference.

如图9中所示,分辨率编码器430可以包括编码信息生成器910和分辨率比例信息生成器920。图9的分辨率比例信息生成器920可以取代图8的分辨率差值计算器820,并且图9的编码信息生成器910可以取代图8的编码信息生成器810。As shown in FIG. 9 , the resolution encoder 430 may include an encoding information generator 910 and a resolution scale information generator 920 . The resolution ratio information generator 920 of FIG. 9 may replace the resolution difference calculator 820 of FIG. 8 , and the encoding information generator 910 of FIG. 9 may replace the encoding information generator 810 of FIG. 8 .

分辨率差值计算器820和分辨率比例信息生成器920彼此的不同之处在于,分辨率差值计算器820计算分辨率差值并生成mv_resolution_delta作为关于分辨率差值的信息,而分辨率比例信息生成器920计算分辨率比例因子并生成mv_resolution_scale作为关于分辨率比例因子的信息。The resolution difference calculator 820 and the resolution scale information generator 920 are different from each other in that the resolution difference calculator 820 calculates the resolution difference and generates mv_resolution_delta as information on the resolution difference, while the resolution scale The information generator 920 calculates a resolution scale factor and generates mv_resolution_scale as information on the resolution scale factor.

例如,分辨率比例信息生成器920可以计算当前CU的运动矢量分辨率与先前CU的运动矢量分辨率之间的比率(例如,通过将当前CU的运动矢量分辨率除以先前CU的运动矢量分辨率而得到的值)作为被包括在关于当前CU的运动矢量分辨率的信息中的元素。For example, the resolution ratio information generator 920 may calculate the ratio between the motion vector resolution of the current CU and the motion vector resolution of the previous CU (e.g., by dividing the motion vector resolution of the current CU by the motion vector resolution of the previous CU rate) as an element included in the information on the motion vector resolution of the current CU.

然而,当当前CU是上层图像单元中的CU当中的按编码顺序的第一CU时,分辨率比例信息生成器920可以将当前CU的运动矢量分辨率确定为分辨率比例因子信息,或者可以将由替代分辨率确定器720确定的替代分辨率确定为分辨率比例因子信息。However, when the current CU is the first CU in encoding order among the CUs in the higher layer image unit, the resolution scale information generator 920 may determine the motion vector resolution of the current CU as the resolution scale factor information, or may use The alternative resolution determined by the alternative resolution determiner 720 is determined as resolution scale factor information.

分辨率比例信息生成器920可以计算作为当前CU的运动矢量分辨率与alternative_mv_resolution之间的比率的分辨率比例因子(即,通过将当前CU的运动矢量分辨率除以alternative_mv_resolution而得到的值)作为被包括在关于当前CU的运动矢量分辨率的信息中的元素。The resolution scale information generator 920 may calculate a resolution scale factor (ie, a value obtained by dividing the motion vector resolution of the current CU by alternative_mv_resolution) which is a ratio between the motion vector resolution of the current CU and alternative_mv_resolution as the Element included in the information about the motion vector resolution of the current CU.

由分辨率比例信息生成器920确定的分辨率比例因子信息可以被存储为mv_resolution_scale。The resolution scale factor information determined by the resolution scale information generator 920 may be stored as mv_resolution_scale.

除了图8的编码信息生成器810对mv_resolution_delta进行编码,而代替地图9的编码信息生成器910对关于分辨率比例因子的信息(mv_resolution_scale)进行编码之外,图8的编码信息生成器810的其余操作与图9的编码信息生成器910的其余操作可以是相同的。编码信息生成器910对关于分辨率比例因子的信息(mv_resolution_scale)进行编码。除了对mv_resolution_scale而非mv_resolution_delta进行编码之外,编码信息生成器910的操作可以与图8的编码信息生成器810的操作相同。Except that the encoding information generator 810 of FIG. 8 encodes mv_resolution_delta, and instead of the encoding information generator 910 of map 9 encoding the information about the resolution scale factor (mv_resolution_scale), the rest of the encoding information generator 810 of FIG. 8 Operations may be the same as the remaining operations of the encoding information generator 910 of FIG. 9 . The encoding information generator 910 encodes information on a resolution scale factor (mv_resolution_scale). The operation of the encoding information generator 910 may be the same as that of the encoding information generator 810 of FIG. 8 except for encoding mv_resolution_scale instead of mv_resolution_delta.

在视频编码设备的以上实施方式中,用于确定运动矢量分辨率的块的单元被描述为CU,但是不限于此,并且在一些实施方式中,可以是CTU/。当用于确定运动矢量分辨率的块的单元是CTU时,包括在CTU中的所有CU都可以具有相同的运动矢量分辨率值。另外,在对应的CTU中包括的CU当中的按mvp模式编码的所有CU都可以具有与对应CTU的运动矢量分辨率相同的运动矢量分辨率值。In the above embodiments of the video encoding apparatus, a unit of a block for determining a motion vector resolution is described as a CU, but is not limited thereto, and may be a CTU/ in some embodiments. When a unit of a block for determining a motion vector resolution is a CTU, all CUs included in the CTU may have the same motion vector resolution value. In addition, all CUs encoded in the mvp mode among CUs included in the corresponding CTU may have the same motion vector resolution value as that of the corresponding CTU.

下文中,将描述视频解码设备。Hereinafter, a video decoding device will be described.

图10是常见视频解码设备的示意图。Fig. 10 is a schematic diagram of a common video decoding device.

视频解码设备1000可以包括解码器1010、逆量化器1020、逆变换器1030、预测器1040、加法器1050、滤波器单元1060和存储器1070。如同图1的视频编码设备中一样,视频编码设备的每个组件可以按硬件芯片的形式实现或者可以按软件的形式实现,使得微处理器执行与每个组件对应的软件的功能。The video decoding apparatus 1000 may include a decoder 1010 , an inverse quantizer 1020 , an inverse transformer 1030 , a predictor 1040 , an adder 1050 , a filter unit 1060 and a memory 1070 . As in the video encoding device of FIG. 1, each component of the video encoding device may be implemented in the form of a hardware chip or may be implemented in the form of software such that the microprocessor executes the function of the software corresponding to each component.

解码器1010对从视频编码设备接收的比特流进行解码,由此提取与块分离相关的信息以确定待解码的当前块并提取重构当前块所需的预测信息、关于残余块的信息等。The decoder 1010 decodes a bitstream received from the video encoding device, thereby extracting information related to block separation to determine a current block to be decoded and extract prediction information required to reconstruct the current block, information on the residual block, and the like.

解码器1010可以从序列参数集(SPS)或图片参数集(PPS)中提取关于CTU的大小的信息以确定CTU的大小,并且可以将图片分离成具有确定大小的CTU。另外,解码器1010可以将CTU设置为树结构的最上层(即,根节点),并且可以提取CTU的分离信息,以使用树结构来分离CTU。例如,当使用QTBT结构分离CTU时,可以提取与QT的分离相关的第一标志(QT_split_flag),然后,可以将每个节点分离成下层的四个节点。另外,至于与QT的叶节点对应的节点,可以提取与BT的分离相关的第二标志(BT_split_flag)和分离类型信息,并且可以在BT结构中分离对应的叶节点。The decoder 1010 may extract information on the size of a CTU from a sequence parameter set (SPS) or a picture parameter set (PPS) to determine the size of the CTU, and may separate a picture into CTUs having the determined size. In addition, the decoder 1010 may set the CTU as the uppermost layer (ie, root node) of the tree structure, and may extract separation information of the CTU to separate the CTU using the tree structure. For example, when using the QTBT structure to split a CTU, the first flag (QT_split_flag) related to the split of QT can be extracted, and then each node can be split into four lower nodes. In addition, as for a node corresponding to a leaf node of QT, a second flag (BT_split_flag) and split type information related to splitting of BT may be extracted, and the corresponding leaf node may be split in the BT structure.

作为图2的块分离结构的示例,提取与QTBT结构的最上层的节点对应的QT_split_flag。所提取的QT_split_flag的值为1,因此最上层的节点被分离成下层(QT的层1)的四个节点。另外,提取层1的第一节点的QT_split_flag。所提取的QT_split_flag的值为0,因此,不再将层1的第一节点分离成QT结构。As an example of the block split structure of FIG. 2 , QT_split_flag corresponding to the uppermost node of the QTBT structure is extracted. The value of the extracted QT_split_flag is 1, so the uppermost node is split into four nodes of the lower layer (layer 1 of QT). In addition, the QT_split_flag of the first node of layer 1 is extracted. The value of the extracted QT_split_flag is 0, therefore, the first node of layer 1 is no longer split into the QT structure.

由于QT的层1的第一节点是QT的叶节点,因此该操作是在采用QT的层1的第一节点作为BT的根节点的BT之前进行的。提取与BT的根节点即“(层0)”对应的BT_split_flag。由于BT_split_flag为1,因此BT的根节点被分离成“(层1)”的两个节点。由于BT的根节点被分离,因此提取指示与BT的根节点对应的块是被垂直分离还是被水平分类的分离类型信息。由于分离类型信息为1,因此与BT的根节点对应的块被垂直分离。然后,解码器1010从BT的根节点提取被分离的“(层1)”的第一节点的BT_split_flag。由于BT_split_flag为1,因此提取关于“(层1)”的第一节点的块的分离类型信息。由于关于“(层1)”的第一节点的块的分离类型信息为1,因此“(层1)”的第一节点的块被垂直分离。然后,提取从BT的根节点分离出的“(层1)”的第二节点的BT_split_flag。由于BT_split_flag为0,因此节点没有按BT被进一步分离。Since the first node of layer 1 of QT is a leaf node of QT, this operation is performed before the BT that adopts the first node of layer 1 of QT as the root node of BT. BT_split_flag corresponding to "(layer 0)" which is the root node of BT is extracted. Since BT_split_flag is 1, the root node of BT is split into two nodes of "(layer 1)". Since the root node of the BT is split, split type information indicating whether the block corresponding to the root node of the BT is split vertically or sorted horizontally is extracted. Since the split type information is 1, the block corresponding to the root node of the BT is split vertically. Then, the decoder 1010 extracts BT_split_flag of the first node of the split "(layer 1)" from the root node of the BT. Since BT_split_flag is 1, the split type information about the block of the first node of "(layer 1)" is extracted. Since the separation type information on the block of the first node of "(layer 1)" is 1, the block of the first node of "(layer 1)" is vertically separated. Then, BT_split_flag of the second node of "(layer 1)" split from the root node of BT is extracted. Since BT_split_flag is 0, the node is not further split by BT.

以这种方式,解码器1010递归地提取QT_split_flag并且按QT结构分离CTU。解码器提取QT的叶节点的BT_split_flag。当BT_split_flag指示分离时,提取分离类型信息。以这种方式,解码器1510可以识别CTU被分离成如图2A中所示的结构。In this way, the decoder 1010 recursively extracts the QT_split_flag and splits the CTUs by QT structure. The decoder extracts the BT_split_flag of the leaf nodes of the QT. When BT_split_flag indicates split, split type information is extracted. In this way, the decoder 1510 can recognize that a CTU is separated into a structure as shown in FIG. 2A .

当在SPS或PPS中附加地定义诸如MinQTSize、MaxBTSize、MaxBTDepth和MinBTSize这样的信息时,解码器1010可以提取附加信息并且可以使用附加信息来提取关于QT和BT的分离信息。When information such as MinQTSize, MaxBTSize, MaxBTDepth, and MinBTSize are additionally defined in the SPS or PPS, the decoder 1010 may extract additional information and may use the additional information to extract separation information on QT and BT.

例如,QT中的大小与MinQTSize相同的块没有被进一步分离。因此,解码器1010并没有从比特流中提取到与对应块的QT相关的分离信息(QT_split_flag)(即,在比特流中不存在对应块的QT_split_flag)并且将该值自动地设置成0。另外,在QT中,大小比MaxBTSize大的块不具有BT。因此,解码器1510不在QT中提取具有比MaxBTSize大的块的叶节点的BT分离标志,并且自动地将BT分离标志设置为0。另外,当BT的对应节点的深度达到MaxBTDepth时,节点的块没有被进一步分离。因此,不从比特流中提取节点的BT分离标志,并且将该BT分离标志的值自动地设置为0。另外,BT中的大小与MinBTSize相同的块没有被进一步分离。因此,解码器1510没有从比特流中提取到大小与MinBTSize相同的块的BT分离标志,并且将标志的值自动地设置为0。For example, blocks of the same size as MinQTSize in QT are not further separated. Therefore, the decoder 1010 does not extract the split information (QT_split_flag) related to the QT of the corresponding block from the bitstream (ie, the QT_split_flag of the corresponding block does not exist in the bitstream) and automatically sets the value to 0. Also, in QT, blocks with a size larger than MaxBTSize do not have BTs. Therefore, the decoder 1510 does not extract the BT split flag of the leaf node having a block larger than MaxBTSize in QT, and automatically sets the BT split flag to 0. In addition, when the depth of the corresponding node of BT reaches MaxBTDepth, the block of the node is not further separated. Therefore, the BT split flag of a node is not extracted from the bitstream, and the value of the BT split flag is automatically set to 0. Also, blocks of the same size as MinBTSize in BT are not further separated. Therefore, the decoder 1510 does not extract the BT split flag of a block of the same size as MinBTSize from the bitstream, and automatically sets the value of the flag to 0.

当通过分离树结构来确定待解码的当前块时,解码器1010提取关于指示当前块是被帧内预测还是被帧间预测的预测类型的信息。When the current block to be decoded is determined by separating the tree structure, the decoder 1010 extracts information on a prediction type indicating whether the current block is intra-predicted or inter-predicted.

当预测类型信息指示帧间预测时,解码器1010可以提取帧内预测信息的语法元素。首先,提取指示多种编码模式当中的关于当前块的运动信息被编码时采用的模式的模式信息。这里,多种编码模式可以包括合并模式和运动矢量差值(MVD)编码模式。当模式信息指示合并模式时,解码器1010提取指示合并候选当中的从其推导出当前块的运动矢量的候选的合并索引信息作为运动信息的语法元素。另一方面,当模式信息指示MVD编码模式时,解码器1010提取关于MVD的信息和关于由当前块的运动矢量参考的参考图片的信息作为运动矢量的语法元素。当视频编码设备使用多个运动矢量预测量(MVP)候选中的任一个作为当前块的MVP时,MVP识别信息可以被包括在比特流中。因此,在这种情况下,提取MVP识别信息以及关于MVD的信息和关于参考图片的信息作为运动矢量的语法元素。When the prediction type information indicates inter prediction, the decoder 1010 may extract syntax elements of intra prediction information. First, mode information indicating a mode in which motion information about a current block is encoded among a plurality of encoding modes is extracted. Here, the various encoding modes may include a merge mode and a motion vector difference (MVD) encoding mode. When the mode information indicates the merge mode, the decoder 1010 extracts, as a syntax element of the motion information, merge index information indicating a candidate from among the merge candidates from which the motion vector of the current block is derived. On the other hand, when the mode information indicates the MVD encoding mode, the decoder 1010 extracts information on MVD and information on a reference picture referenced by the motion vector of the current block as syntax elements of the motion vector. When a video encoding apparatus uses any one of a plurality of motion vector predictor (MVP) candidates as an MVP of a current block, MVP identification information may be included in a bitstream. Therefore, in this case, MVP identification information as well as information on MVD and information on reference pictures are extracted as syntax elements of motion vectors.

解码器1010提取关于量化后的当前块的变换系数的信息作为关于残余信号的信息。The decoder 1010 extracts information on the quantized transform coefficient of the current block as information on the residual signal.

逆量化器1020对量化后的变换系数进行逆量化,并且逆变换器1030将逆量化后的变换系数从频域逆变换到空间域以重构残余信号,由此产生当前块的残余块。The inverse quantizer 1020 inverse quantizes the quantized transform coefficients, and the inverse transformer 1030 inverse transforms the inverse quantized transform coefficients from a frequency domain to a spatial domain to reconstruct a residual signal, thereby generating a residual block of a current block.

预测器1040可以包括帧内预测器1042和帧间预测器1044。在当前块的预测类型是帧内预测的情况下,帧内预测器1042被启动,并且在当前块的预测类型是帧间预测的情况下,帧间预测器1044被启动。The predictor 1040 may include an intra predictor 1042 and an inter predictor 1044 . In case the prediction type of the current block is intra prediction, the intra predictor 1042 is activated, and in case the prediction type of the current block is inter prediction, the inter predictor 1044 is activated.

帧内预测器1042根据从解码器1010提取的帧内预测模式的语法元素来确定多种帧内预测模式当中的当前块的帧内预测模式,并且根据该帧内预测模式使用当前块的邻近参考像素来预测当前块。The intra predictor 1042 determines the intra prediction mode of the current block among various intra prediction modes from the syntax elements of the intra prediction mode extracted from the decoder 1010, and uses the neighboring reference of the current block according to the intra prediction mode. pixels to predict the current block.

帧间预测器1044使用从解码器1010提取的帧间预测信息的语法元素来确定关于当前块的运动信息,并且使用所确定的运动信息来预测当前块。The inter predictor 1044 determines motion information on the current block using syntax elements of the inter prediction information extracted from the decoder 1010, and predicts the current block using the determined motion information.

首先,帧间预测器1044可以检查从解码器1010提取的帧间预测的模式信息。当模式信息指示合并模式时,帧间预测器1044使用当前块的邻近块来构造包括预定数目的合并候选的合并列表。帧间预测器1044构造合并列表的方法与视频编码设备的帧间预测器124的方法相同。另外,使用从解码器1010接收的合并索引信息,在合并列表中的合并候选当中选择一个合并候选。所选择的合并候选的运动信息(即,合并候选的运动矢量和参考图片)被设置为当前块的运动矢量和参考图片。First, the inter predictor 1044 may check mode information of inter prediction extracted from the decoder 1010 . When the mode information indicates a merge mode, the inter predictor 1044 constructs a merge list including a predetermined number of merge candidates using neighboring blocks of the current block. The method of the inter predictor 1044 constructing the merging list is the same as that of the inter predictor 124 of the video encoding device. Also, using the merge index information received from the decoder 1010, one merge candidate is selected among the merge candidates in the merge list. The motion information of the selected merging candidate (ie, the motion vector and the reference picture of the merging candidate) is set as the motion vector and the reference picture of the current block.

另一方面,当模式信息指示MVD编码模式时,帧间预测器1044使用当前块的邻近块的运动矢量来推导MVP候选,并且使用MVP候选来确定当前块的运动矢量的MVP。由帧间预测器1044推导MVP候选的方法与视频编码设备的帧间预测器124的相同。当视频编码设备使用多个MVP候选中的任一个作为当前块的MVP时,运动信息的语法元素包括MVP识别信息。因此,在这种情况下,帧间预测器1044可以从MVP候选中选择MVP识别信息所指示的候选作为当前块的MVP。然而,当视频编码设备通过将预定义函数应用于多个MVP候选来确定MVP时,帧间预测器1044可以应用与视频编码设备相同的功能来确定MVP。一旦确定了当前块的MVP,帧间预测器1044就将MVP和从解码器1010提取的MVD相加,以推导当前块的运动矢量。另外,帧间预测器1044使用关于从解码器1010提取的参考图片的信息来确定由当前块的运动矢量参考的参考图片。On the other hand, when the mode information indicates the MVD encoding mode, the inter predictor 1044 derives MVP candidates using motion vectors of neighboring blocks of the current block, and determines the MVP of the motion vector of the current block using the MVP candidates. The method of deriving the MVP candidate by the inter predictor 1044 is the same as that of the inter predictor 124 of the video encoding apparatus. When the video encoding apparatus uses any one of a plurality of MVP candidates as the MVP of the current block, the syntax element of the motion information includes MVP identification information. Therefore, in this case, the inter predictor 1044 may select the candidate indicated by the MVP identification information from the MVP candidates as the MVP of the current block. However, when the video encoding device determines the MVP by applying a predefined function to a plurality of MVP candidates, the inter predictor 1044 may apply the same function as the video encoding device to determine the MVP. Once the MVP of the current block is determined, the inter predictor 1044 adds the MVP and the MVD extracted from the decoder 1010 to derive the motion vector of the current block. In addition, the inter predictor 1044 determines a reference picture referred to by the motion vector of the current block using information on the reference picture extracted from the decoder 1010 .

当在合并模式或MVD编码模式下确定当前块的运动矢量和参考图片时,帧间预测器1044使用参考图片中的由运动矢量所指示的位置处的块来生成当前块的预测块。When determining the motion vector of the current block and the reference picture in the merge mode or the MVD encoding mode, the inter predictor 1044 generates a prediction block of the current block using a block at a position indicated by the motion vector in the reference picture.

加法器1050将从逆变换器输出的残余块与从帧间预测器或帧内预测器输出的预测块相加,以重构当前块。重构的当前块中的像素可以被用作用于对稍后待解码的块进行帧内预测的参考像素。The adder 1050 adds the residual block output from the inverse transformer to the prediction block output from the inter predictor or the intra predictor to reconstruct the current block. Pixels in the reconstructed current block may be used as reference pixels for intra prediction of a block to be decoded later.

滤波器单元1060对重构的块之间的边界进行去块滤波,以便去除由逐块编码引起的块效应并将去块滤波后的块存储在存储器1070中。当重构了一个图片中的所有块时,重构的图片可以被用作对后续待编码图片中的块进行帧间预测的参考图片。The filter unit 1060 deblock-filters the boundaries between the reconstructed blocks in order to remove blocking artifacts caused by block-by-block encoding and stores the deblock-filtered blocks in the memory 1070 . When all blocks in a picture are reconstructed, the reconstructed picture can be used as a reference picture for inter-prediction of blocks in a subsequent picture to be encoded.

图11是示出根据本发明的实施方式的视频解码设备1100的图。FIG. 11 is a diagram illustrating a video decoding device 1100 according to an embodiment of the present invention.

根据本发明的实施方式的视频解码设备1100可以包括运动矢量分辨率解码器1110和视频解码器1120。The video decoding apparatus 1100 according to an embodiment of the present invention may include a motion vector resolution decoder 1110 and a video decoder 1120 .

运动矢量分辨率解码器1110从比特流中解析关于当前CU的运动矢量分辨率的信息,并且基于所解析的运动矢量分辨率的信息来确定用于估计当前CU的运动的运动矢量分辨率。The motion vector resolution decoder 1110 parses information about the motion vector resolution of the current CU from the bitstream, and determines the motion vector resolution for estimating the motion of the current CU based on the parsed information of the motion vector resolution.

视频解码器1120根据当前CU的运动矢量分辨率使用所确定的当前CU的运动矢量来预测当前CU并且对其进行解码。The video decoder 1120 predicts and decodes the current CU using the determined motion vector of the current CU according to the motion vector resolution of the current CU.

这里,视频解码器1120可以被实现为以上参照图10描述的视频解码设备1000。Here, the video decoder 1120 may be implemented as the video decoding device 1000 described above with reference to FIG. 10 .

运动矢量分辨率解码器1110的功能可以被包括在视频解码设备1000中的解码器1010的以上提到的功能中,并且可以被集成在解码器1010中。The function of the motion vector resolution decoder 1110 may be included in the above-mentioned functions of the decoder 1010 in the video decoding apparatus 1000 and may be integrated in the decoder 1010 .

图12是示出根据本发明的第一实施方式的视频解码设备1100对视频进行解码的方法的流程图。FIG. 12 is a flowchart illustrating a method of decoding video by the video decoding apparatus 1100 according to the first embodiment of the present invention.

如图12中所示,在根据本发明的第一实施方式的视频解码设备1100中,运动矢量分辨率解码器1110从比特流中解析Adaptive_MV_resolution_enabled_flag(即,第一识别信息)(S1210)。Adaptive_MV_resolution_enabled_flag意指指示运动矢量分辨率是否被自适应启用的识别信息,并且可以是在作为上层图像单元的图像序列、图片、切片和CTU当中的至少一个图像单元中确定的。可以从图像序列、图片、切片和CTU的至少一个上层图像单元的比特流报头中解析Adaptive_MV_resolution_enabled_flag。As shown in FIG. 12, in the video decoding apparatus 1100 according to the first embodiment of the present invention, the motion vector resolution decoder 1110 parses Adaptive_MV_resolution_enabled_flag (ie, first identification information) from a bitstream (S1210). Adaptive_MV_resolution_enabled_flag means identification information indicating whether motion vector resolution is adaptively enabled, and may be determined in at least one image unit among image sequences, pictures, slices, and CTUs that are higher layer image units. The Adaptive_MV_resolution_enabled_flag may be parsed from a bitstream header of at least one upper layer image unit of an image sequence, picture, slice, and CTU.

在解析Adaptive_MV_resolution_enabled_flag之后,运动矢量分辨率解码器后1110检查Adaptive_MV_resolution_enabled_flag是指示上层图像单元中的CU的运动矢量分辨率被自适应启用(即,Adaptive_MV_resolution_enabled_flag为ON)还是指示默认运动矢量分辨率被用作上层图像单元中的CU的运动矢量分辨率(即,Adaptive_MV_resolution_enabled_flag为OFF)(S1220)。After parsing the Adaptive_MV_resolution_enabled_flag, the motion vector resolution decoder post 1110 checks whether the Adaptive_MV_resolution_enabled_flag indicates that the motion vector resolution of the CU in the upper layer picture unit is adaptively enabled (i.e., Adaptive_MV_resolution_enabled_flag is ON) or indicates that the default motion vector resolution is used as the upper layer The motion vector resolution of the CU in the picture unit (ie, Adaptive_MV_resolution_enabled_flag is OFF) (S1220).

作为操作S1220的检查结果,当Adaptive_MV_resolution_enabled_flag为ON时,运动矢量分辨率解码器1110从比特流中解析作为关于替代分辨率的信息的alternative_mv_resolution(S1230)。这里,可以针对与用于Adaptive_MV_resolution_enabled_flag的图像单元相同的各个图像单元解析alternative_mv_resolution,或者可以从比用于Adaptive_MV_resolution_enabled_flag的图像单元小的每个图像单元的比特流中解析alternative_mv_resolution。另外,可以针对用于Adaptive_MV_resolution_enabled_flag的图像单元中的每个CU解析alternative_mv_resolution。As a result of checking in operation S1220, when Adaptive_MV_resolution_enabled_flag is ON, the motion vector resolution decoder 1110 parses alternative_mv_resolution, which is information on alternative resolutions, from the bitstream (S1230). Here, alternative_mv_resolution may be resolved for the same image unit as the image unit used for Adaptive_MV_resolution_enabled_flag, or alternative_mv_resolution may be resolved from a bitstream for each image unit smaller than the image unit used for Adaptive_MV_resolution_enabled_flag. In addition, alternative_mv_resolution may be resolved for each CU in the image unit for Adaptive_MV_resolution_enabled_flag.

在操作S1230之后,运动矢量分辨率解码器1110根据当前CU的编码模式是否是用于对MVD进行编码的模式来确定作为编码目标的当前CU的运动矢量分辨率(S1240)。当在针对每个上层图像单元的比特流中发送关于Adaptive_MV_resolution_enabled_flag和替代分辨率的信息时,还可以针对上层图像单元中的每个CU自适应地确定运动矢量分辨率。After operation S1230, the motion vector resolution decoder 1110 determines the motion vector resolution of the current CU as an encoding target according to whether the encoding mode of the current CU is a mode for encoding MVD (S1240). When information on Adaptive_MV_resolution_enabled_flag and alternative resolutions is transmitted in the bitstream for each higher layer picture unit, the motion vector resolution may also be adaptively determined for each CU in the higher layer picture unit.

当针对图像序列和图片中的一个的每个上层图像单元发送关于Adaptive_MV_resolution_enabled_flag的信息并且针对比上层图像单元小的图像单元的每个切片(或CTU)的比特流中发送alternative_mv_resolution时,还可以针对切片(或CTU)中的每个CU自适应地确定运动矢量分辨率。When information on Adaptive_MV_resolution_enabled_flag is transmitted for each upper layer image unit of one of the image sequence and picture and alternative_mv_resolution is sent in the bitstream for each slice (or CTU) of an image unit smaller than the upper layer image unit, it is also possible for slices Each CU in a (or CTU) adaptively determines the motion vector resolution.

当在操作S1220中检查到Adaptive_MV_resolution_enabled_flag为OFF时,运动矢量分辨率解码器1110执行根据当前CU的编码模式是否是用于对MVD进行编码的模式来确定当前CU的运动矢量分辨率的操作S1240。When it is checked that Adaptive_MV_resolution_enabled_flag is OFF in operation S1220, the motion vector resolution decoder 1110 performs operation S1240 of determining the motion vector resolution of the current CU according to whether the encoding mode of the current CU is a mode for encoding MVD.

这里,操作S1240可以包括操作S1241至S1246。Here, operation S1240 may include operations S1241 to S1246.

在操作S1230之后,运动矢量分辨率解码器1110可以从比特流解析当前CU的编码模式,并且可以检查当前CU的编码模式是否是使用MVP对MVD进行编码的模式(即,mvp模式)(S1241)。After operation S1230, the motion vector resolution decoder 1110 may parse the encoding mode of the current CU from the bitstream, and may check whether the encoding mode of the current CU is a mode for encoding MVD using MVP (ie, mvp mode) (S1241) .

当在操作S1241中检查到当前CU的编码模式是mvp模式时,运动矢量分辨率解码器1110可以检查Adaptive_MV_resolution_enabled_flag是指示上层图像单元中的CU的运动矢量分辨率被自适应启用(即,Adaptive_MV_resolution_enabled_flag为ON)还是指示默认运动矢量分辨率被用作上层图像单元中的CU的运动矢量分辨率(即,Adaptive_MV_resolution_enabled_flag为OFF)(S1242)。When it is checked in operation S1241 that the encoding mode of the current CU is the mvp mode, the motion vector resolution decoder 1110 may check whether the Adaptive_MV_resolution_enabled_flag indicates that the motion vector resolution of the CU in the upper layer image unit is adaptively enabled (that is, Adaptive_MV_resolution_enabled_flag is ON ) also indicates that the default motion vector resolution is used as the motion vector resolution of the CU in the higher layer picture unit (ie, Adaptive_MV_resolution_enabled_flag is OFF) (S1242).

当在操作S1242中检查到Adaptive_MV_resolution_enabled_flag为ON时,运动矢量分辨率解码器1110可以从比特流中解析指示作为默认运动矢量分辨率和替代分辨率中的哪一个被用作当前CU的运动矢量分辨率的识别信息的mv_resolution_flag(即,第二识别信息)(S1243),然后可以执行S1244的后续操作。When it is checked that Adaptive_MV_resolution_enabled_flag is ON in operation S1242, the motion vector resolution decoder 1110 may parse from the bitstream to indicate which one of the default motion vector resolution and the alternative resolution is used as the motion vector resolution of the current CU mv_resolution_flag (that is, the second identification information) of the identification information (S1243), and then the subsequent operation of S1244 can be performed.

这里,虽然mv_resolution_flag被描述为以CU为单位发送,但是在一些实施方式中,mv_resolution_flag可以以CTU为单位进行解析,可以针对对应CTU中的每个CU检查CU是否是mvp模式,并且当对应CU是mvp模式时,可以执行S1244的后续操作。Here, although mv_resolution_flag is described as being sent in units of CUs, in some embodiments, mv_resolution_flag can be parsed in units of CTUs, and it is possible to check whether a CU is in mvp mode for each CU in the corresponding CTU, and when the corresponding CU is In the mvp mode, the subsequent operations of S1244 can be performed.

在解析出mv_resolution_flag之后,运动矢量分辨率解码器1110可以检查mv_resolution_flag的值(S1244)。After parsing out mv_resolution_flag, the motion vector resolution decoder 1110 may check the value of mv_resolution_flag (S1244).

当在操作S1244中检查到mv_resolution_flag指示替代分辨率被用作当前CU的运动矢量分辨率时(即,当mv_resolution_flag为ON时),运动矢量分辨率解码器1110可以将替代分辨率确定为当前CU的运动矢量分辨率(S1245)。When it is checked in operation S1244 that mv_resolution_flag indicates that the alternative resolution is used as the motion vector resolution of the current CU (that is, when mv_resolution_flag is ON), the motion vector resolution decoder 1110 may determine the alternative resolution as the motion vector resolution of the current CU. Motion vector resolution (S1245).

当在操作S1244中检查到mv_resolution_flag指示默认运动矢量分辨率被用作当前CU的运动矢量分辨率时(即,当mv_resolution_flag为OFF时),运动矢量分辨率解码器1110可以确定默认运动矢量分辨率是当前CU的运动矢量分辨率(S1246)。When it is checked in operation S1244 that mv_resolution_flag indicates that the default motion vector resolution is used as the motion vector resolution of the current CU (ie, when mv_resolution_flag is OFF), the motion vector resolution decoder 1110 may determine that the default motion vector resolution is Motion vector resolution of the current CU (S1246).

当在操作S1242中检查到Adaptive_MV_resolution_enabled_flag为OFF时,运动矢量分辨率解码器1110可以将默认运动矢量分辨率确定为当前CU的运动矢量分辨率(S1246)。When it is checked that Adaptive_MV_resolution_enabled_flag is OFF in operation S1242, the motion vector resolution decoder 1110 may determine a default motion vector resolution as the motion vector resolution of the current CU (S1246).

例如,当指示是否自适应地启用运动矢量分辨率的Adaptive_MV_resolution_enabled_flag和指示替代分辨率的alternative_mv_resolution语法位于SPS中时,可以针对每个图像序列单元确定是否应用根据本发明的方法。For example, when Adaptive_MV_resolution_enabled_flag indicating whether motion vector resolution is adaptively enabled and alternative_mv_resolution syntax indicating alternative resolution are located in the SPS, whether to apply the method according to the present invention may be determined for each image sequence unit.

例如,当SPS中的Adaptive_MV_resolution_enabled_flag为ON时,SPS的alternative_mv_resolution值(即,替代分辨率)为4个像素,并且默认运动矢量分辨率为1/4像素,参照SPS的图像序列中的作为编码目标的所有CU的运动矢量分辨率可以被确定为1/4像素或4像素。也就是说,当作为当前CU的报头信息的mv_resolution_flag为OFF时,当前CU的运动矢量分辨率可以被确定为与默认运动矢量分辨率对应的1/4像素,并且当当前CU的mv_resolution_flag为ON时,当前CU的运动矢量分辨率可以被确定为与替代分辨率对应的4像素。For example, when the Adaptive_MV_resolution_enabled_flag in SPS is ON, the alternative_mv_resolution value of SPS (that is, alternative resolution) is 4 pixels, and the default motion vector resolution is 1/4 pixel, refer to the image sequence of SPS as the encoding target The motion vector resolution of all CUs can be determined to be 1/4 pixel or 4 pixels. That is, when mv_resolution_flag which is the header information of the current CU is OFF, the motion vector resolution of the current CU can be determined to be 1/4 pixel corresponding to the default motion vector resolution, and when the mv_resolution_flag of the current CU is ON , the motion vector resolution of the current CU may be determined to be 4 pixels corresponding to the alternative resolution.

当Adaptive_MV_resolution_enabled_flag和alternative_mv_resolution语法位于在PPS(或切片报头)中时,可以以图片为单元(或以切片为单位)确定是否应用了根据本发明的方法。When Adaptive_MV_resolution_enabled_flag and alternative_mv_resolution syntax are located in the PPS (or slice header), whether the method according to the present invention is applied can be determined in units of pictures (or in units of slices).

例如,当PPS中的Adaptive_MV_resolution_enabled_flag为ON,PPS的alternative_mv_resolution值(即,替代分辨率)为4像素并且默认运动矢量分辨率为1/4像素时,参照PPS(或切片报头)的图片(或切片)中的作为编码目标的所有CU的运动矢量分辨率可以被确定为1/4像素或4像素。也就是说,当作为当前CU的报头信息的mv_resolution_flag为OFF时,当前CU的运动矢量分辨率可以被确定为与默认运动矢量分辨率对应的1/4像素,并且当当前CU的mv_resolution_flag为ON时,当前CU的运动矢量分辨率可以被确定为与替代分辨率对应的4像素。For example, when the Adaptive_MV_resolution_enabled_flag in PPS is ON, the alternative_mv_resolution value (ie, alternative resolution) of PPS is 4 pixels, and the default motion vector resolution is 1/4 pixel, a picture (or slice) referring to PPS (or slice header) The motion vector resolutions of all CUs in , which are encoding targets, may be determined to be 1/4 pixel or 4 pixels. That is, when mv_resolution_flag which is the header information of the current CU is OFF, the motion vector resolution of the current CU can be determined to be 1/4 pixel corresponding to the default motion vector resolution, and when the mv_resolution_flag of the current CU is ON , the motion vector resolution of the current CU may be determined to be 4 pixels corresponding to the alternative resolution.

当SPS(或PPS)中Adaptive_MV_resolution_enabled_flag为ON,作为比图像序列(或图片)小的图像单元的切片(或CTU)的报头的alternative_mv_resolution值为4像素并且默认运动矢量分辨率为1/4像素时,对应切片(或CTU)中的作为编码目标的所有CU的运动矢量分辨率可以被确定为与默认运动矢量分辨率对应的1/4像素或与替代分辨率对应的4像素,因此可以以1/4像素或4像素的分辨率表示当前CU的运动矢量。也就是说,当作为当前CU的报头信息的mv_resolution_flag为0(即,OFF)时,以1/4像素的分辨率表示当前CU的运动矢量,并且当当前CU的mv_resolution_flag为ON时,以4像素的分辨率表示当前CU的运动矢量。When the Adaptive_MV_resolution_enabled_flag in SPS (or PPS) is ON, the alternative_mv_resolution value of the header of the slice (or CTU) of the image unit smaller than the image sequence (or picture) is 4 pixels and the default motion vector resolution is 1/4 pixels, The motion vector resolutions of all CUs that are encoding targets in the corresponding slice (or CTU) can be determined to be 1/4 pixel corresponding to the default motion vector resolution or 4 pixels corresponding to the alternative resolution, and thus can be determined at 1/4 4 pixels or a resolution of 4 pixels represents the motion vector of the current CU. That is, when mv_resolution_flag, which is the header information of the current CU, is 0 (that is, OFF), the motion vector of the current CU is expressed at a resolution of 1/4 pixel, and when the mv_resolution_flag of the current CU is ON, the motion vector of the current CU is expressed at a resolution of 4 pixels The resolution of represents the motion vector of the current CU.

当SPS(或PPS)中Adaptive_MV_resolution_enabled_flag为ON,作为比图像序列(或图片)小的图像单元的切片(或CTU)的报头的alternative_mv_resolution值为0并且默认运动矢量分辨率为1/4像素时,对应切片(或CTU)中的作为编码目标的所有CU的运动矢量分辨率可以被确定为与默认运动矢量分辨率对应的1/4像素。这里,可能不需要作为CU的报头信息的mv_resolution_flag。When the Adaptive_MV_resolution_enabled_flag in SPS (or PPS) is ON, the alternative_mv_resolution value of the header of the slice (or CTU) of the image unit smaller than the image sequence (or picture) is 0 and the default motion vector resolution is 1/4 pixel, corresponding Motion vector resolutions of all CUs that are encoding targets in a slice (or CTU) may be determined to be 1/4 pixel corresponding to the default motion vector resolution. Here, mv_resolution_flag which is header information of a CU may not be necessary.

当Adaptive_MV_resolution_enabled_flag在SPS(或PPS)中可以为ON时,可以根据比图像序列(或图片)小的图像单元的切片(或CTU)的报头的Alternative_enabled_flag的值来确定对应切片(或CTU)中的作为编码目标的所有CU的运动矢量分辨率。例如,当Alternative_enabled_flag为OFF并且默认运动矢量分辨率为1/4像素时,可以以与默认运动矢量分辨率对应的1/4像素表示对应切片(或CTU)中的所有CU的运动矢量分辨率,并且可能不需要mv_resolution_flag,mv_resolution_flag是作为编码目标的CU的报头信息。另一方面,当Alternative_enabled_flag为ON,alternative_mv_resolution值为4像素并且默认运动矢量分辨率为1/4像素时,对应切片(或CTU)中的所有CU的运动矢量分辨率可以被确定为与默认运动矢量分辨率对应的1/4像素或与替代分辨率对应的4像素。也就是说,当当前CU的mv_resolution_flag为0(即,OFF)时,可以以1/4像素的分辨率表示当前CU的运动矢量,而当当前CU的mv_resolution_flag为ON时,可以以4像素的分辨率表示当前CU的运动矢量。When Adaptive_MV_resolution_enabled_flag can be ON in SPS (or PPS), the value of Alternative_enabled_flag in the header of the slice (or CTU) of the image unit smaller than the image sequence (or picture) can be determined to determine the corresponding slice (or CTU). Motion vector resolution for all CUs of the encoding target. For example, when Alternative_enabled_flag is OFF and the default motion vector resolution is 1/4 pixel, the motion vector resolution of all CUs in the corresponding slice (or CTU) can be represented by 1/4 pixel corresponding to the default motion vector resolution, And mv_resolution_flag, which is header information of a CU that is an encoding target, may not be needed. On the other hand, when the Alternative_enabled_flag is ON, the alternative_mv_resolution value is 4 pixels and the default motion vector resolution is 1/4 pixel, the motion vector resolutions of all CUs in the corresponding slice (or CTU) can be determined to be the same as the default motion vector resolution 1/4 pixel for a resolution or 4 pixels for an alternate resolution. That is to say, when the mv_resolution_flag of the current CU is 0 (that is, OFF), the motion vector of the current CU can be represented with a resolution of 1/4 pixel, and when the mv_resolution_flag of the current CU is ON, the motion vector of the current CU can be represented with a resolution of 4 pixels The rate represents the motion vector of the current CU.

图13是示出分辨率的自适应确定的示例的图。FIG. 13 is a diagram illustrating an example of adaptive determination of resolution.

当SPS报头的Adaptive_MV_resolution_enabled_flag为ON,切片#0的报头的alternative_mv_resolution为2像素,并且默认运动矢量分辨率(默认MV分辨率)为1/4像素时,包括对应切片#0中的圆的当前CU的运动矢量分辨率可以被确定为与默认运动矢量分辨率对应的1/4像素或与替代分辨率对应的2像素。在这种情况下,当作为当前CU的报头信息的mv_resolution_flag为OFF时,以与默认运动矢量分辨率对应的1/4像素单位表示当前CU的运动矢量,而当当前CU的mv_resolution_flag为ON时,以与alternative_mv_resolution对应的2像素单位表示当前CU的运动矢量。When the Adaptive_MV_resolution_enabled_flag of the SPS header is ON, the alternative_mv_resolution of the header of the slice #0 is 2 pixels, and the default motion vector resolution (default MV resolution) is 1/4 pixel, the current CU including the circle in the corresponding slice #0 The motion vector resolution may be determined to be 1/4 pixel corresponding to the default motion vector resolution or 2 pixels corresponding to the alternate resolution. In this case, when the mv_resolution_flag which is the header information of the current CU is OFF, the motion vector of the current CU is expressed in 1/4 pixel units corresponding to the default motion vector resolution, and when the mv_resolution_flag of the current CU is ON, The motion vector of the current CU is represented in units of 2 pixels corresponding to alternative_mv_resolution.

当切片#1的报头的alternative_mv_resolution为4像素时,包括切片#1中的三角形的当前CU的运动矢量分辨率可以被确定为与默认运动矢量分辨率对应的1/4像素或与替代分辨率对应的4像素。在这种情况下,当作为当前CU的报头信息的mv_resolution_flag为OFF时,以与默认运动矢量分辨率对应的1/4像素单位表示当前CU的运动矢量,而当当前CU的mv_resolution_flag为ON时,以与替代分辨率对应的4像素单位表示当前CU的运动矢量。When the alternative_mv_resolution of the header of slice #1 is 4 pixels, the motion vector resolution of the current CU including triangles in slice #1 can be determined to be 1/4 pixel corresponding to the default motion vector resolution or to correspond to the alternative resolution of 4 pixels. In this case, when the mv_resolution_flag which is the header information of the current CU is OFF, the motion vector of the current CU is expressed in 1/4 pixel units corresponding to the default motion vector resolution, and when the mv_resolution_flag of the current CU is ON, The motion vector of the current CU is expressed in units of 4 pixels corresponding to the alternative resolution.

在操作S1245或S1246之后,视频解码器1120可以使用MVP来推导当前块的运动矢量(S1250)。After operation S1245 or S1246, the video decoder 1120 may derive a motion vector of the current block using the MVP (S1250).

这里,操作S1250可以包括操作S1251至S1255。Here, operation S1250 may include operations S1251 to S1255.

在操作S1251中,视频解码器1120可以推导MVP候选,并且可以从比特流中解析用于从MVP候选中识别当前CU的MVP的信息(mvp_idx)。这里,用于MVP候选的邻近块可以使用图3中示出的当前图片中的与当前CU相邻的左块L、上块A、右上块AR、左下块BL和左上块AL中的一些或全部。In operation S1251, the video decoder 1120 may derive MVP candidates, and may parse information (mvp_idx) for identifying the MVP of the current CU from the MVP candidates from the bitstream. Here, the adjacent blocks for MVP candidates may use some of the left block L, upper block A, upper right block AR, lower left block BL, and upper left block AL adjacent to the current CU in the current picture shown in FIG. all.

视频解码器1120可以检查与mvp_idx对应的块的运动矢量分辨率是否与当前CU的运动矢量分辨率相同(S1252)。The video decoder 1120 may check whether the motion vector resolution of the block corresponding to mvp_idx is the same as that of the current CU (S1252).

当检查到与mvp_idx对应的块的运动矢量分辨率与当前CU的运动矢量分辨率相同时,视频解码器1120可以从比特流对MVD进行解码(S1254)。当检查到与mvp_idx对应的块的运动矢量分辨率与当前CU的运动矢量分辨率不同时,视频解码器1120可以缩放当前块的MVP,使得MVP的分辨率与当前CU的运动矢量分辨率相同(S1253),并且可以从比特流对MVD进行解码(S1254)。When it is checked that the motion vector resolution of the block corresponding to mvp_idx is the same as that of the current CU, the video decoder 1120 may decode the MVD from the bitstream (S1254). When it is checked that the motion vector resolution of the block corresponding to mvp_idx is different from the motion vector resolution of the current CU, the video decoder 1120 may scale the MVP of the current block so that the resolution of the MVP is the same as the motion vector resolution of the current CU ( S1253), and the MVD can be decoded from the bit stream (S1254).

视频解码器1120将从比特流解析的MVD与MVP相加,以生成当前CU的运动矢量(S1255)。The video decoder 1120 adds the MVD and MVP parsed from the bitstream to generate a motion vector of the current CU (S1255).

例如,当当前CU的运动矢量分辨率为2像素,与mvp_idx对应的块的运动矢量分辨率为1/4像素,并且与mvp_idx对应的块的运动矢量被设置为3时,与mvp_idx对应的块的实际运动矢量对应于0.75。当根据与当前CU的运动矢量分辨率对应的2像素运动矢量分辨率来执行缩放时,与mvp_idx对应的块的实际运动矢量被转换为0。可以根据下面的式1表示此转换式。For example, when the motion vector resolution of the current CU is 2 pixels, the motion vector resolution of the block corresponding to mvp_idx is 1/4 pixel, and the motion vector of the block corresponding to mvp_idx is set to 3, the block corresponding to mvp_idx The actual motion vector corresponds to 0.75. When scaling is performed according to the motion vector resolution of 2 pixels corresponding to the motion vector resolution of the current CU, the actual motion vector of the block corresponding to mvp_idx is converted to 0. This conversion formula can be expressed according to Formula 1 below.

[式1][Formula 1]

MV'=Round(MV×neighbor_MV_Resol/curr_MV_Resol)MV'=Round(MV×neighbor_MV_Resol/curr_MV_Resol)

这里,MV表示与mvp_idx对应的块的运动矢量,neighboring_MV_resol表示与mvp_idx对应的块的运动矢量分辨率,current_MV_resol表示当前CU的运动矢量分辨率,MV'是缩放的运动矢量,并且Round表示四舍五入运算。Here, MV represents a motion vector of a block corresponding to mvp_idx, neighboring_MV_resol represents a motion vector resolution of a block corresponding to mvp_idx, current_MV_resol represents a motion vector resolution of a current CU, MV' is a scaled motion vector, and Round represents a rounding operation.

对于运动矢量的x分量和y分量中的每一个,Adaptive_MV_resolution_enabled_flag、mv_resolution_flag、alternative_mv_resolution等可以各自是单独的,并且还可以根据下面的式2针对x分量和y分量中的每一个分别计算CU的运动矢量分辨率。Adaptive_MV_resolution_enabled_flag, mv_resolution_flag, alternative_mv_resolution, etc. may each be separate for each of the x-component and y-component of the motion vector, and the motion vector of the CU may also be calculated separately for each of the x-component and y-component according to Equation 2 below resolution.

[式2][Formula 2]

MVx'=Round(MVx×neighbor_MVx_Resol/curr_MVx_Resol)MV x '=Round(MV x ×neighbor_MV x _Resol/curr_MVx_Resol)

MVy'=Round(MVy×neighbor_MVy_Resol/curr_MVy_Resol)MV y '=Round(MV y ×neighbor_MV y _Resol/curr_MV y _Resol)

作为操作S1241的检查结果,当检查到当前CU的编码模式不是mvp模式(例如,合并模式)时,视频解码器1120可以从时间或空间邻近块的运动矢量(即,合并候选)推导当前CU的运动矢量(S1260)。As a result of the check in operation S1241, when it is checked that the coding mode of the current CU is not the mvp mode (for example, merge mode), the video decoder 1120 may derive the current CU's Motion vector (S1260).

这里,操作S1260可以包括操作S1261至S1264。Here, operation S1260 may include operations S1261 to S1264.

作为操作S1241的检查结果,当检查到当前CU的编码模式不是mvp模式时,视频解码器1120从比特流中解析用于从当前CU的合并候选中识别当前CU的运动矢量的信息(candid_idx)(S1261)。当前CU的合并候选可以使用图3中示出的当前图片中的与当前CU相邻的左块L、上块A、右上块AR、左下块BL和左上块AL中的一些或全部。另外,位于参考图片(其与用于预测当前CU的参考图片相同或不同)而非当前块所处的当前图片中的块可以被用作运动矢量候选(即,合并候选)。例如,参考图片中的当前块的共同定位块或与共同定位块相邻的块可以被进一步用作合并候选。As a result of the check in operation S1241, when it is checked that the encoding mode of the current CU is not the mvp mode, the video decoder 1120 parses the information (candid_idx) for identifying the motion vector of the current CU from the merge candidates of the current CU from the bitstream ( S1261). Merge candidates of the current CU may use some or all of the left block L, upper block A, upper right block AR, lower left block BL, and upper left block AL adjacent to the current CU in the current picture shown in FIG. 3 . In addition, a block located in a reference picture (which is the same as or different from the reference picture used to predict the current CU) instead of the current picture in which the current block is located may be used as a motion vector candidate (ie, a merge candidate). For example, a co-located block of the current block in a reference picture or a block adjacent to the co-located block may be further used as a merging candidate.

视频解码器1120可以检查与从比特流中解析的candid_idx对应的块的运动矢量分辨率是否与为合并模式预定义的运动矢量分辨率相同(S1262)。这里,为合并模式预定义的运动矢量分辨率可以是在图像序列、图片和切片的任一个单元中定义的运动矢量分辨率。The video decoder 1120 may check whether the motion vector resolution of the block corresponding to the candid_idx parsed from the bitstream is the same as the motion vector resolution predefined for the merge mode (S1262). Here, the motion vector resolution predefined for the merge mode may be the motion vector resolution defined in any unit of image sequence, picture, and slice.

当与candid_idx对应的块的运动矢量分辨率与为合并模式预定义的运动矢量分辨率相同时,视频解码器1120可以将与candid_idx对应的块的运动矢量设置为当前CU的运动矢量(S1264)。当与candid_idx对应的块的运动矢量分辨率与预定义的运动矢量分辨率不同时,视频解码器1120可以缩放与candid_idx对应的块的运动矢量,使得与candid_idx对应的块的运动矢量与预定义的运动矢量分辨率相同(S1263),并且可以将缩放后的运动矢量设置为当前CU的运动矢量(S1264)。When the motion vector resolution of the block corresponding to candid_idx is the same as the motion vector resolution predefined for the merge mode, the video decoder 1120 may set the motion vector of the block corresponding to candid_idx as the motion vector of the current CU (S1264). When the motion vector resolution of the block corresponding to candid_idx is different from the predefined motion vector resolution, the video decoder 1120 may scale the motion vector of the block corresponding to candid_idx so that the motion vector of the block corresponding to candid_idx is different from the predefined The motion vector resolutions are the same (S1263), and the scaled motion vector may be set as the motion vector of the current CU (S1264).

作为参考,可以针对每个CU顺序且重复地执行操作S1240、S1250和S1260。For reference, operations S1240, S1250, and S1260 may be sequentially and repeatedly performed for each CU.

图14是示出在图12中添加一些操作的情况的流程图。FIG. 14 is a flowchart showing a case where some operations are added in FIG. 12 .

在图14中,操作S1240可以包括操作S1241、S1242_1、S1242_2、S1243、S1244、S1245和S1246。在图14中,操作S1250可以包括操作S1251、S1252、S1253和S1255。In FIG. 14, operation S1240 may include operations S1241, S1242_1, S1242_2, S1243, S1244, S1245, and S1246. In FIG. 14, operation S1250 may include operations S1251, S1252, S1253, and S1255.

与图12相比,图14包括操作S1240中的操作S1242_1和S1242_2而非图12的操作S1242,并且不包括图12的操作S1250中的操作S1254。Compared with FIG. 12 , FIG. 14 includes operations S1242_1 and S1242_2 in operation S1240 instead of operation S1242 of FIG. 12 , and does not include operation S1254 in operation S1250 of FIG. 12 .

作为参考,在图14的功能块当中,具有与图12的块的附图标记相同的附图标记的功能块执行与图12的块相同的操作,除非其在上下文中具有明显不同的含义。例如,图14的操作S1243与图12的操作S1243相同。For reference, among the functional blocks of FIG. 14 , functional blocks having the same reference numerals as those of the blocks of FIG. 12 perform the same operations as the blocks of FIG. 12 unless they have obviously different meanings in context. For example, operation S1243 of FIG. 14 is the same as operation S1243 of FIG. 12 .

在图14中,当在操作S1241中检查到当前CU的编码模式是使用MVP对MVD进行编码的模式(即,mvp模式)时,视频解码器1120可以从比特流中解析关于MVD的信息(mvd)(S1242_1)。In FIG. 14 , when it is checked in operation S1241 that the encoding mode of the current CU is a mode of encoding MVD using MVP (ie, mvp mode), the video decoder 1120 may parse information about MVD (mvd mode) from a bitstream. )(S1242_1).

在操作S1242_1中解析出MVD之后,运动矢量分辨率解码器1110可以检查MVD是否不为0以及Adaptive_MV_resolution_enabled_flag是否为ON(S1242_2)。当MVD不为0并且Adaptive_MV_resolution_enabled_flag为ON时,运动矢量分辨率解码器1110可以进行操作S1243。当MVD为0或者Adaptive_MV_resolution_enabled_flag不为ON时,运动矢量分辨率解码器1110可以进行操作S1246。After the MVD is resolved in operation S1242_1, the motion vector resolution decoder 1110 may check whether MVD is not 0 and whether Adaptive_MV_resolution_enabled_flag is ON (S1242_2). When MVD is not 0 and Adaptive_MV_resolution_enabled_flag is ON, the motion vector resolution decoder 1110 may proceed to operation S1243. When MVD is 0 or Adaptive_MV_resolution_enabled_flag is not ON, the motion vector resolution decoder 1110 may proceed to operation S1246.

在图14的操作S1252中,当检查到与mvp_idx对应的块的运动矢量分辨率与当前CU的运动矢量分辨率相同时,视频解码器1120将MVD与MVP相加,以计算当前CU的运动矢量(S1255)。在图14的操作S1252中,当检查到与mvp_idx对应的块的运动矢量分辨率与当前CU的运动矢量分辨率不相同时,视频解码器1120可以执行缩放MVP的操作S1253,使得MVP的分辨率与当前CU的运动矢量分辨率相同。在操作S1253之后,视频解码器1120可以执行将MVD与MVP相加以计算当前CU的运动矢量的操作S1255。In operation S1252 of FIG. 14 , when it is checked that the motion vector resolution of the block corresponding to mvp_idx is the same as the motion vector resolution of the current CU, the video decoder 1120 adds the MVD to the MVP to calculate the motion vector of the current CU (S1255). In operation S1252 of FIG. 14 , when it is checked that the motion vector resolution of the block corresponding to mvp_idx is not the same as the motion vector resolution of the current CU, the video decoder 1120 may perform operation S1253 of scaling the MVP so that the resolution of the MVP Same as the motion vector resolution of the current CU. After operation S1253, the video decoder 1120 may perform operation S1255 of adding the MVD to the MVP to calculate the motion vector of the current CU.

操作S1251可以在操作S1242_1之前执行或者可以在操作S1242_1和S1242_2之间执行。Operation S1251 may be performed before operation S1242_1 or may be performed between operations S1242_1 and S1242_2.

图15是示出根据本发明的第二实施方式的在视频解码设备1100处对视频进行解码的方法的流程图。FIG. 15 is a flowchart illustrating a method of decoding video at a video decoding device 1100 according to a second embodiment of the present invention.

作为图15的情况的详细示例,当Adaptive_MV_resolution_enabled_flag位于SPS(PPS、切片或CTU报头)中并且mv_resolution_flag和alternative_mv_resolution信息位于作为编码目标的CU的报头中时,可以根据Adaptive_MV_resolution_enabled_flag值以图像序列为单元(以图片为单元、以片为单元、或者以CTU为单元)确定是否启用根据本发明的自适应运动矢量分辨率模式,并且可以根据mv_resolution_flag值通过基于逐个CU的选择来调整CU的运动矢量分辨率。As a detailed example of the situation in FIG. 15 , when Adaptive_MV_resolution_enabled_flag is located in the SPS (PPS, slice, or CTU header) and mv_resolution_flag and alternative_mv_resolution information are located in the header of the CU that is the encoding target, it is possible to use the Adaptive_MV_resolution_enabled_flag value in units of image sequences (picture unit, slice unit, or CTU unit) determines whether to enable the adaptive motion vector resolution mode according to the present invention, and can adjust the motion vector resolution of a CU by selecting on a CU-by-CU basis according to the mv_resolution_flag value.

例如,当SPS报头(PPS报头、切片报头或CTU报头)中的Adaptive_MV_resolution_enabled_flag为ON,默认运动矢量分辨率为1/4像素,并且作为当前CU的报头信息的mv_resolution_flag为OFF时,不需要alternative_mv_resolution信息来确定当前CU的运动矢量分辨率。在这种情况下,当前CU的运动矢量分辨率可以被确定为与默认运动矢量分辨率对应的1/4像素,并且可以以1/4像素单位表示当前CU的运动矢量。For example, when Adaptive_MV_resolution_enabled_flag in the SPS header (PPS header, slice header, or CTU header) is ON, the default motion vector resolution is 1/4 pixel, and mv_resolution_flag as the header information of the current CU is OFF, the alternative_mv_resolution information is not required to Determines the motion vector resolution of the current CU. In this case, the motion vector resolution of the current CU may be determined to be 1/4 pixel corresponding to the default motion vector resolution, and the motion vector of the current CU may be represented in a 1/4 pixel unit.

另一方面,当mv_resolution_flag为ON并且CU报头的alternative_mv_resolution值为4像素时,当前CU的运动矢量分辨率可以被确定为与替代分辨率对应的4像素,并且可以以与替代分辨率对应的4像素的分辨率表示当前CU的运动矢量。On the other hand, when the mv_resolution_flag is ON and the alternative_mv_resolution value of the CU header is 4 pixels, the motion vector resolution of the current CU can be determined as 4 pixels corresponding to the alternative resolution, and can be determined in 4 pixels corresponding to the alternative resolution The resolution of represents the motion vector of the current CU.

如图15中所示,在根据本发明的第二实施方式的视频解码设备1100中,运动矢量分辨率解码器1110可以从比特流中解析Adaptive_MV_resolution_enabled_flag(S1510)。Adaptive_MV_resolution_enabled_flag意指指示运动矢量分辨率是否被自适应启用的识别信息,并且可以被确定为图像序列、图片、切片和CTU当中的至少一个图像单元(比CU更高层的图像单元)。可以从图像序列、图片、切片和CTU当中的至少一个图像单元的比特流报头中解析Adaptive_MV_resolution_enabled_flag。As shown in FIG. 15, in the video decoding apparatus 1100 according to the second embodiment of the present invention, the motion vector resolution decoder 1110 may parse Adaptive_MV_resolution_enabled_flag from the bitstream (S1510). Adaptive_MV_resolution_enabled_flag means identification information indicating whether motion vector resolution is adaptively enabled, and may be determined as at least one image unit (an image unit of a higher layer than a CU) among image sequences, pictures, slices, and CTUs. Adaptive_MV_resolution_enabled_flag may be parsed from a bitstream header of at least one image unit among image sequences, pictures, slices, and CTUs.

在解析出图像序列、图片、切片或CTU中的至少一个的每个图像单元的Adaptive_MV_resolution_enabled_flag之后,运动矢量分辨率解码器1110可以根据在其中解析出了Adaptive_MV_resolution_enabled_flag的图像单元中的每个块的编码模式是否是用于对MVD进行编码的模式(即,mvp模式)来确定每个块的运动矢量分辨率(S1540)。After parsing the Adaptive_MV_resolution_enabled_flag of each image unit of at least one of the image sequence, picture, slice, or CTU, the motion vector resolution decoder 1110 may, according to the coding mode of each block in the image unit in which the Adaptive_MV_resolution_enabled_flag is parsed, Whether it is a mode for encoding MVD (ie, mvp mode) is used to determine the motion vector resolution of each block (S1540).

这里,操作S1540可以包括操作S1541至S1547。Here, operation S1540 may include operations S1541 to S1547.

在操作S1510之后,运动矢量分辨率解码器1110可以从比特流中解析当前CU的编码模式,并且可以检查当前CU的编码模式是否是使用MVP对MVD进行编码的模式(即,mvp模式)(S1541)。After operation S1510, the motion vector resolution decoder 1110 may parse the encoding mode of the current CU from the bitstream, and may check whether the encoding mode of the current CU is a mode for encoding MVD using MVP (ie, mvp mode) (S1541 ).

当当前CU的编码模式是mvp模式时,检查Adaptive_MV_resolution_enabled_flag是指示上层图像单元中的CU的运动矢量分辨率被自适应地启用(即,Adaptive_MV_resolution_enabled_flag为ON)还是指示默认运动矢量分辨率被用作上层图像单元中的CU中的运动矢量分辨率(即,Adaptive_MV_resolution_enabled_flag为OFF)(S1542)。When the encoding mode of the current CU is mvp mode, check whether the Adaptive_MV_resolution_enabled_flag indicates that the motion vector resolution of the CU in the upper layer image unit is adaptively enabled (that is, Adaptive_MV_resolution_enabled_flag is ON) or indicates that the default motion vector resolution is used as the upper layer image The motion vector resolution in the CU in the unit (ie, Adaptive_MV_resolution_enabled_flag is OFF) (S1542).

当Adaptive_MV_resolution_enabled_flag为OFF时,运动矢量分辨率解码器1110可以使用默认运动矢量分辨率作为当前CU的运动矢量分辨率(S1547)。When Adaptive_MV_resolution_enabled_flag is OFF, the motion vector resolution decoder 1110 may use a default motion vector resolution as the motion vector resolution of the current CU (S1547).

当Adaptive_MV_resolution_enabled_flag为ON时,运动矢量分辨率解码器1110可以从比特流中解析作为指示默认运动矢量分辨率和替代分辨率中的哪一个被用作当前CU的运动矢量分辨率的识别信息的mv_resolution_flag(S1543)。When Adaptive_MV_resolution_enabled_flag is ON, the motion vector resolution decoder 1110 may parse mv_resolution_flag( S1543).

在解析出mv_resolution_flag之后,运动矢量分辨率解码器1110可以检查mv_resolution_flag的值(S1544)。After parsing out mv_resolution_flag, the motion vector resolution decoder 1110 may check the value of mv_resolution_flag (S1544).

当mv_resolution_flag指示替代分辨率被用作当前CU的运动矢量分辨率时(即,当mv_resolution_flag为ON时),运动矢量分辨率解码器1110可以从比特流中解析作为关于当前CU的替代分辨率的信息的alternative_mv_resolution(S1545),并且可以将所解析的替代分辨率设置为当前CU的运动矢量分辨率(S1546)。When mv_resolution_flag indicates that an alternative resolution is used as the motion vector resolution of the current CU (that is, when mv_resolution_flag is ON), the motion vector resolution decoder 1110 may parse from the bitstream as information about the alternative resolution of the current CU alternative_mv_resolution (S1545), and the resolved alternative resolution may be set as the motion vector resolution of the current CU (S1546).

当mv_resolution_flag指示默认运动矢量分辨率被用作当前CU的运动矢量分辨率时(即,当mv_resolution_flag为OFF时),运动矢量分辨率解码器1110可以将默认运动矢量分辨率设置为当前CU的运动矢量分辨率(S1547)。When mv_resolution_flag indicates that the default motion vector resolution is used as the motion vector resolution of the current CU (i.e., when mv_resolution_flag is OFF), the motion vector resolution decoder 1110 may set the default motion vector resolution as the motion vector resolution of the current CU Resolution (S1547).

虽然如上所述已经以CU为单元发送了mv_resolution_flag和/或alternative_mv_resolution信息,但是在一些实施方式中,可以以CTU为单位对mv_resolution_flag和/或alternative_mv_resolution进行编码。检查对应CTU中的每个CU的编码模式是否是mvp模式,然后可以对编码模式为mvp模式的CU执行操作S1540的后续操作。Although mv_resolution_flag and/or alternative_mv_resolution information has been transmitted in units of CUs as described above, in some embodiments, mv_resolution_flag and/or alternative_mv_resolution may be encoded in units of CTUs. It is checked whether the encoding mode of each CU in the corresponding CTU is the mvp mode, and subsequent operations of operation S1540 may be performed on the CU whose encoding mode is the mvp mode.

图16是示出分辨率的自适应确定的另一示例的图。FIG. 16 is a diagram illustrating another example of adaptive determination of resolution.

例如,当SPS(PPS、切片报头或CTU报头)中的Adaptive_MV_resolution_enabled_flag为ON,默认运动矢量分辨率为1/4像素,在包括对应图像序列中的圆形的CU的报头中的mv_resolution_flag为ON并且alternative_mv_resolution为1像素时,对应CU的运动矢量分辨率可以被确定为与替代分辨率对应的1像素并且可以以1像素的分辨率表示CU的运动矢量。For example, when Adaptive_MV_resolution_enabled_flag in SPS (PPS, slice header or CTU header) is ON, the default motion vector resolution is 1/4 pixel, mv_resolution_flag in the header of a CU including a circle in the corresponding image sequence is ON and alternative_mv_resolution When it is 1 pixel, the motion vector resolution of the corresponding CU may be determined to be 1 pixel corresponding to the alternative resolution and the motion vector of the CU may be represented at a resolution of 1 pixel.

当包括对应图像序列中的三角形的CU的报头中的mv_resolution_flag为ON并且alternative_mv_resolution为4像素时,对应CU的运动矢量分辨率可以被确定为与替代分辨率对应的4像素,并且可以以与替代分辨率对应的4像素的分辨率表示CU的运动矢量。在mv_resolution_flag值被设置为OFF的CU的情况下,CU的运动矢量分辨率可以被确定为与默认运动矢量分辨率对应的1/4像素,并且可以以与默认运动矢量分辨率对应的1/4像素的分辨率表示CU的运动矢量。When mv_resolution_flag in the header of a CU including a triangle in the corresponding image sequence is ON and alternative_mv_resolution is 4 pixels, the motion vector resolution of the corresponding CU can be determined to be 4 pixels corresponding to the alternative resolution, and can be determined in the same way as the alternative resolution The resolution of 4 pixels corresponding to the rate represents the motion vector of the CU. In the case of a CU whose mv_resolution_flag value is set to OFF, the motion vector resolution of the CU can be determined to be 1/4 pixel corresponding to the default motion vector resolution, and can be determined by 1/4 pixel corresponding to the default motion vector resolution The resolution of pixels represents the motion vector of the CU.

在操作S1546或S1547之后,视频解码器1120可以使用MVP来推导当前块的运动矢量(S1550)。After operation S1546 or S1547, the video decoder 1120 may derive the motion vector of the current block using the MVP (S1550).

在图15中,操作S1550可以包括操作S1551至S1555。In FIG. 15, operation S1550 may include operations S1551 to S1555.

操作S1551至S1555分别类似于操作S1251至S1255,因此,省略对操作S1551至S1555的详细描述。Operations S1551 to S1555 are similar to operations S1251 to S1255, respectively, and thus, detailed descriptions of operations S1551 to S1555 are omitted.

当在操作S1541中检测到对应CU的编码模式不是mvp模式(例如,合并模式)时,视频解码器1120可以从时间或空间邻近块的运动矢量(即,合并候选)推导当前CU的运动矢量(S1560)。When it is detected in operation S1541 that the encoding mode of the corresponding CU is not the mvp mode (for example, merge mode), the video decoder 1120 may derive the motion vector ( S1560).

这里,操作S1560可以包括操作S1561至S1564。Here, operation S1560 may include operations S1561 to S1564.

操作S1561至S1564分别类似于操作S1261至S1264,因此,省略对操作S1561至S1564的详细描述。Operations S1561 to S1564 are similar to operations S1261 to S1264, respectively, and thus, detailed descriptions of operations S1561 to S1564 are omitted.

图17是示出在图15中添加一些操作的情况的流程图。FIG. 17 is a flowchart showing a case where some operations are added in FIG. 15 .

在图17中,操作S1540可以包括操作S1541、S1542_1、S1542_2、S1543、S1544、S1545、S1546和S1547。在图17中,操作S1550可以包括操作S1551、S1552、S1553和S1555。In FIG. 17 , operation S1540 may include operations S1541, S1542_1, S1542_2, S1543, S1544, S1545, S1546, and S1547. In FIG. 17, operation S1550 may include operations S1551, S1552, S1553, and S1555.

作为参考,在图17的功能块当中,具有与图15的块的附图标记相同的附图标记的功能块执行与图15的块相同的操作,除非其在上下文中具有明显不同的含义。例如,图17的操作S1543与图15的操作S1543相同。For reference, among the functional blocks of FIG. 17 , functional blocks having the same reference numerals as those of the blocks of FIG. 15 perform the same operations as the blocks of FIG. 15 unless they have obviously different meanings in context. For example, operation S1543 of FIG. 17 is the same as operation S1543 of FIG. 15 .

当在图17的操作S1541中检查到当前CU的编码模式是使用MVP对MVD进行编码的模式(即,mvp模式)时,视频解码器1120可以从比特流中解析关于MVD的信息(mvd)(S1542_1)。When it is checked in operation S1541 of FIG. 17 that the encoding mode of the current CU is a mode in which MVD is encoded using MVP (that is, mvp mode), the video decoder 1120 may parse information about MVD (mvd) from the bitstream ( S1542_1).

在操作S1542_1中解析出MVD之后,运动矢量分辨率解码器1110可以检查MVD是否不为0以及Adaptive_MV_resolution_enabled_flag是否为ON(S1542_2)。当MVD不为0并且Adaptive_MV_resolution_enabled_flag为ON时,运动矢量分辨率解码器1110可以进行操作S1543。当MVD为0或者Adaptive_MV_resolution_enabled_flag不为ON时,运动矢量分辨率解码器1110可以进行操作S1547。After the MVD is resolved in operation S1542_1, the motion vector resolution decoder 1110 may check whether MVD is not 0 and Adaptive_MV_resolution_enabled_flag is ON (S1542_2). When MVD is not 0 and Adaptive_MV_resolution_enabled_flag is ON, the motion vector resolution decoder 1110 may proceed to operation S1543. When MVD is 0 or Adaptive_MV_resolution_enabled_flag is not ON, the motion vector resolution decoder 1110 may proceed to operation S1547.

操作S1551可以在操作S1542_1之前执行或者可以在操作S1542_1和S1542_2之间执行。Operation S1551 may be performed before operation S1542_1 or may be performed between operations S1542_1 and S1542_2.

图17的操作S1551、S1552、S1553和S1555分别类似于图14的操作S1251、S1252、S1253和S1255,因此,省略对图17的操作S1551、S1552、S1553和S1555的详细描述。Operations S1551, S1552, S1553, and S1555 of FIG. 17 are similar to operations S1251, S1252, S1253, and S1255 of FIG. 14, respectively, and thus, detailed descriptions of operations S1551, S1552, S1553, and S1555 of FIG. 17 are omitted.

图18是示出根据本发明的第三实施方式的在视频解码设备1100处对视频进行解码的方法的流程图。FIG. 18 is a flowchart illustrating a method of decoding video at a video decoding device 1100 according to a third embodiment of the present invention.

如图18中所示,在根据本发明的第三实施方式的视频解码设备1100中,运动矢量分辨率解码器1110可以从比特流中解析Adaptive_MV_resolution_enabled_flag(S1810)。Adaptive_MV_resolution_enabled_flag意指指示运动矢量分辨率是否被自适应启用的识别信息,并且可以是在作为上层图像单元的图像序列、图片、切片或CTU当中的至少一个图像单元中确定的。可以从图像序列、图片、切片和CTU的至少一个的图像单元的比特流报头中解析Adaptive_MV_resolution_enabled_flag。As shown in FIG. 18, in the video decoding apparatus 1100 according to the third embodiment of the present invention, the motion vector resolution decoder 1110 may parse Adaptive_MV_resolution_enabled_flag from the bitstream (S1810). Adaptive_MV_resolution_enabled_flag means identification information indicating whether motion vector resolution is adaptively enabled, and may be determined in at least one image unit among image sequences, pictures, slices, or CTUs that are higher layer image units. The Adaptive_MV_resolution_enabled_flag may be parsed from a bitstream header of an image unit of at least one of an image sequence, picture, slice, and CTU.

运动矢量分辨率解码器1110可以检查Adaptive_MV_resolution_enabled_flag是指示在图像序列、图片、切片和CTU中的至少一个的上层图像单元中(即,在上层图像单元中的所有CU中)运动矢量分辨率被自适应地启用(即,在ON的情况下)还是指示默认运动矢量分辨率被用作上层图像单元中的所有CU的运动矢量分辨率(在OFF的情况下)(S1820)。The motion vector resolution decoder 1110 may check that the Adaptive_MV_resolution_enabled_flag indicates that the motion vector resolution is adaptive in the upper layer image unit of at least one of the image sequence, picture, slice, and CTU (ie, in all CUs in the upper layer image unit) Whether it is enabled (ie, in the case of ON) or indicates that the default motion vector resolution is used as the motion vector resolution of all CUs in the upper layer picture unit (in the case of OFF) (S1820).

当在操作S1820中检查到Adaptive_MV_resolution_enabled_flag为OFF时,运动矢量分辨率解码器1110可以使用默认运动矢量分辨率作为对应图像单元中的对应CU的运动矢量分辨率(S1822)。When it is checked that Adaptive_MV_resolution_enabled_flag is OFF in operation S1820, the motion vector resolution decoder 1110 may use a default motion vector resolution as the motion vector resolution of the corresponding CU in the corresponding image unit (S1822).

当在操作S1820中检查到Adaptive_MV_resolution_enabled_flag为ON时,运动矢量分辨率解码器1110可以从比特流中解析作为关于替代分辨率的信息的alternative_mv_resolution(S1830)。这里,可以针对与发送Adaptive_MV_resolution_enabled_flag的图像单元相同的各个图像单元从比特流中解析alternative_mv_resolution。When it is checked that Adaptive_MV_resolution_enabled_flag is ON in operation S1820, the motion vector resolution decoder 1110 may parse alternative_mv_resolution, which is information on an alternative resolution, from a bitstream (S1830). Here, alternative_mv_resolution may be parsed from the bitstream for each of the same picture units as the picture unit to which Adaptive_MV_resolution_enabled_flag is transmitted.

另选地,可以针对比发送Adaptive_MV_resolution_enabled_flag的图像单元小并且比作为确定运动矢量分辨率的块单元的CU大的每个图像单元从比特流中解析alternative_mv_resolution。例如,当发送Adaptive_MV_resolution_enabled_flag的图像单元是图像序列和图片中的一个时,解析了alternative_mv_resolution的单元可以是切片(或CTU)。Alternatively, alternative_mv_resolution may be parsed from the bitstream for each image unit smaller than the image unit transmitting the Adaptive_MV_resolution_enabled_flag and larger than the CU which is the block unit for determining the motion vector resolution. For example, when the image unit transmitting the Adaptive_MV_resolution_enabled_flag is one of an image sequence and a picture, the unit for which alternative_mv_resolution is resolved may be a slice (or CTU).

另选地,可以针对用于Adaptive_MV_resolution_enabled_flag的图像单元中的每个CU解析alternative_mv_resolution。Alternatively, alternative_mv_resolution may be resolved for each CU in a picture unit for Adaptive_MV_resolution_enabled_flag.

另外,不能在任何位置都解析alternative_mv_resolution。Also, alternative_mv_resolution cannot be resolved anywhere.

在操作S1830之后,运动矢量分辨率解码器1110可以根据当前CU的编码模式是否是对MVD进行编码的模式来确定当前CU的运动矢量分辨率(S1840)。After operation S1830, the motion vector resolution decoder 1110 may determine the motion vector resolution of the current CU according to whether the encoding mode of the current CU is a mode of encoding MVD (S1840).

这里,操作S1840可以包括操作S1841至S1848。Here, operation S1840 may include operations S1841 to S1848.

在操作S1830之后,运动矢量分辨率解码器1110可以从比特流中解析当前CU的编码模式,并且可以检查当前CU的编码模式是否是使用MVP对MVD进行编码的模式(即,mvp模式)(S1841)。After operation S1830, the motion vector resolution decoder 1110 may parse the encoding mode of the current CU from the bitstream, and may check whether the encoding mode of the current CU is a mode for encoding MVD using MVP (ie, mvp mode) (S1841 ).

当当前CU的编码模式是mvp模式时,运动矢量分辨率解码器1110可以检查Adaptive_MV_resolution_enabled_flag是指示上层图像单元中的CU的运动矢量分辨率被自适应地启用(即,当Adaptive_MV_resolution_enabled_flag为ON时)还是指示默认运动矢量分辨率被用作上层图像单元中的CU的运动矢量分辨率(即,当Adaptive_MV_resolution_enabled_flag为OFF时)(S1842)。When the encoding mode of the current CU is mvp mode, the motion vector resolution decoder 1110 may check whether the Adaptive_MV_resolution_enabled_flag indicates that the motion vector resolution of the CU in the higher layer picture unit is adaptively enabled (that is, when Adaptive_MV_resolution_enabled_flag is ON) or indicates The default motion vector resolution is used as the motion vector resolution of the CU in the higher layer picture unit (ie, when Adaptive_MV_resolution_enabled_flag is OFF) (S1842).

当Adaptive_MV_resolution_enabled_flag为ON时,运动矢量分辨率解码器1110可以从比特流中解析作为指示默认运动矢量分辨率和替代分辨率当中的哪一个分辨率被用作当前CU的运动矢量分辨率的识别信息的mv_resolution_flag(S1843)。When Adaptive_MV_resolution_enabled_flag is ON, the motion vector resolution decoder 1110 can parse from the bitstream as identification information indicating which resolution among the default motion vector resolution and the alternative resolution is used as the motion vector resolution of the current CU mv_resolution_flag (S1843).

另一方面,当Adaptive_MV_resolution_enabled_flag为OFF时,运动矢量分辨率解码器1110可以将默认运动矢量分辨率确定为当前CU的运动矢量分辨率(S1848)。On the other hand, when Adaptive_MV_resolution_enabled_flag is OFF, the motion vector resolution decoder 1110 may determine a default motion vector resolution as the motion vector resolution of the current CU (S1848).

在操作S1843中解析出当前CU的mv_resolution_flag之后,运动矢量分辨率解码器1110可以检查mv_resolution_flag的值(S1844)。After parsing out the mv_resolution_flag of the current CU in operation S1843, the motion vector resolution decoder 1110 may check the value of mv_resolution_flag (S1844).

当在操作S1844中检查到mv_resolution_flag指示使用作为当前CU的运动矢量分辨率与先前CU的运动矢量分辨率之间的差值的分辨率差值来确定当前CU的运动矢量分辨率时(即,当mv_resolution_flag为ON时),运动矢量分辨率解码器1110可以从比特流中解析作为关于当前CU的运动矢量分辨率与先前CU的运动矢量分辨率之间的差值的信息的mv_resolution_delta(S1845)。这里,当不存在alternative_mv_resolution值并且当前CU是上层图像单元中的CU当中的按解码顺序的第一CU时,mv_resolution_delta可以表示指示当前CU的运动矢量分辨率的信息。When it is checked in operation S1844 that mv_resolution_flag indicates that the motion vector resolution of the current CU is determined using a resolution difference value that is a difference between the motion vector resolution of the current CU and the motion vector resolution of the previous CU (that is, when mv_resolution_flag is ON), the motion vector resolution decoder 1110 may parse mv_resolution_delta, which is information on a difference between the motion vector resolution of the current CU and the motion vector resolution of the previous CU, from the bitstream (S1845). Here, when there is no alternative_mv_resolution value and the current CU is the first CU in decoding order among CUs in the higher layer image unit, mv_resolution_delta may represent information indicating the motion vector resolution of the current CU.

运动矢量分辨率解码器1110可以使用mv_resolution_delta来计算当前CU的运动矢量分辨率(S1846),并且可以将计算结果设置为当前CU的运动矢量分辨率(S1847)。The motion vector resolution decoder 1110 may calculate the motion vector resolution of the current CU using mv_resolution_delta (S1846), and may set the calculation result as the motion vector resolution of the current CU (S1847).

当在操作S1844中检查到mv_resolution_flag指示默认运动矢量分辨率被用作当前CU的运动矢量分辨率时(即,当mv_resolution_flag为OFF时),运动矢量分辨率解码器1110可以将默认运动矢量分辨率确定为当前CU的运动矢量分辨率(S1848)。When it is checked in operation S1844 that mv_resolution_flag indicates that the default motion vector resolution is used as the motion vector resolution of the current CU (that is, when mv_resolution_flag is OFF), the motion vector resolution decoder 1110 may determine the default motion vector resolution is the motion vector resolution of the current CU (S1848).

在操作S1846中,当当前CU是上层图像单元中的CU当中的按解码顺序的第一CU时,运动矢量分辨率解码器1110可以将mv_resolution_delta确定为当前CU的运动矢量分辨率。当当前CU是按解码顺序的第一CU之后的CU时,运动矢量分辨率解码器1110可以将mv_resolution_delta与已按编码顺序就在当前CU之前被编码的CU的运动矢量分辨率相加,生成当前CU的运动矢量分辨率。在这种情况下,运动矢量分辨率解码器1110不需要alternative_mv_resolution来生成当前CU的运动矢量分辨率,因此,可以省略从比特流中解析alternative_mv_resolution的操作。In operation S1846, when the current CU is the first CU in decoding order among the CUs in the higher layer image unit, the motion vector resolution decoder 1110 may determine mv_resolution_delta as the motion vector resolution of the current CU. When the current CU is a CU after the first CU in decoding order, the motion vector resolution decoder 1110 may add mv_resolution_delta to the motion vector resolution of the CU that has been encoded immediately before the current CU in encoding order to generate the current CU Motion vector resolution of the CU. In this case, the motion vector resolution decoder 1110 does not need the alternative_mv_resolution to generate the motion vector resolution of the current CU, and thus, the operation of parsing the alternative_mv_resolution from the bitstream may be omitted.

例如,当切片报头中的Adaptive_MV_resolution_enabled_flag为ON,默认运动矢量分辨率为1/4像素,并且作为当前CU的报头信息的mv_resolution_flag为OFF时,可能不需要mv_resolution_delta信息来确定当前CU的运动矢量分辨率。在这种情况下,当前CU的运动矢量分辨率可以被设置为作为默认运动矢量分辨率的1/4像素,并且可以以与运动矢量的默认运动矢量分辨率对应的1/4像素的分辨率表示当前CU的运动矢量。For example, when the Adaptive_MV_resolution_enabled_flag in the slice header is ON, the default motion vector resolution is 1/4 pixel, and the mv_resolution_flag which is the header information of the current CU is OFF, the mv_resolution_delta information may not be needed to determine the motion vector resolution of the current CU. In this case, the motion vector resolution of the current CU can be set to 1/4 pixel as the default motion vector resolution, and can be set at a resolution of 1/4 pixel corresponding to the default motion vector resolution of the motion vector Indicates the motion vector of the current CU.

另一方面,当mv_resolution_flag为ON,当前CU是按解码顺序的第一CU,并且当前CU的mv_resolution_delta为4像素时,当前CU的运动矢量分辨率可以被确定为与mv_resolution_delta对应的4像素,并且可以以4像素的分辨率表示当前CU的运动矢量。当当前CU不是按解码顺序的第一CU时,在当前CU的mv_resolution_flag为ON并且当前CU的mv_resolution_delta为0的情况下,当前CU的运动矢量分辨率可以被设置为通过将当前CU的mv_resolution_delta与当前CU的先前CU的运动矢量分辨率相加而得到的4像素,并且可以以4像素的分辨率表示当前CU的运动矢量。On the other hand, when mv_resolution_flag is ON, the current CU is the first CU in decoding order, and the mv_resolution_delta of the current CU is 4 pixels, the motion vector resolution of the current CU can be determined to be 4 pixels corresponding to the mv_resolution_delta, and can Represents the motion vector of the current CU with a resolution of 4 pixels. When the current CU is not the first CU in decoding order, the motion vector resolution of the current CU can be set by combining the mv_resolution_delta of the current CU with the current The resolution of the motion vector of the previous CU of the CU is added to 4 pixels, and the motion vector of the current CU can be represented at the resolution of 4 pixels.

当当前CU不是按解码顺序的第一CU时,在当前CU的mv_resolution_flag为ON并且当前CU的mv_resolution_delta为-2像素的情况下,当前CU的运动矢量分辨率可以被设置为通过将与mv_resolution_delta对应的-2像素与作为先前CU的运动矢量分辨率的4像素相加而得到的2像素,并且可以以2像素单位表示当前CU的运动矢量。When the current CU is not the first CU in decoding order, in the case where the mv_resolution_flag of the current CU is ON and the mv_resolution_delta of the current CU is -2 pixels, the motion vector resolution of the current CU can be set by setting the - 2 pixels added to 4 pixels which is the motion vector resolution of the previous CU, and the motion vector of the current CU can be expressed in 2-pixel units.

在以上参照图18描述的实施方式中,运动矢量分辨率解码器1110将mv_resolution_delta与当前CU的先前CU的运动矢量分辨率相加以恢复当前CU的运动矢量分辨率,但是本发明不限于此。运动矢量分辨率解码器1110可以将当前CU的mv_resolution_delta与替代分辨率相加,以对当前CU的运动矢量分辨率进行解码。In the embodiment described above with reference to FIG. 18 , the motion vector resolution decoder 1110 adds mv_resolution_delta to the motion vector resolution of the previous CU of the current CU to restore the motion vector resolution of the current CU, but the present invention is not limited thereto. The motion vector resolution decoder 1110 may add the mv_resolution_delta of the current CU to the alternative resolution to decode the motion vector resolution of the current CU.

作为图18的实施方式的示例,当Adaptive_MV_resolution_enabled_flag和alternative_mv_resolution位于切片(图块)报头(SPS、PPS或CTU)中,并且mv_resolution_flag和mv_resolution_delta信息位于切片(图块)(图像序列、图片或CTU)单元中的CU的报头中时,可以根据Adaptive_MV_resolution_enabled_flag来启用是否应用根据本发明的自适应运动矢量分辨率模式和替代分辨率,并且可以根据每个CU的mv_resolution_flag为切片(图块)(图像序列、图片或CTU)单元中的每个CU自适应地确定运动矢量分辨率,并且可以使用mv_resolution_delta来调整当前CU的运动矢量分辨率。As an example of the implementation of FIG. 18 , when Adaptive_MV_resolution_enabled_flag and alternative_mv_resolution are located in a slice (tile) header (SPS, PPS, or CTU), and mv_resolution_flag and mv_resolution_delta information is located in a slice (tile) (image sequence, picture, or CTU) unit When in the header of the CU, whether to apply the adaptive motion vector resolution mode and alternative resolution according to the present invention can be enabled according to the Adaptive_MV_resolution_enabled_flag, and the slice (tile) (image sequence, picture or Each CU in the CTU) unit adaptively determines the motion vector resolution, and mv_resolution_delta can be used to adjust the motion vector resolution of the current CU.

在这种情况下,当前CU的mv_resolution_delta可以被表示为切片(图块)报头(或图像序列、图片或CTU)中的alternative_mv_resolution(即,替代分辨率)与当前CU的运动矢量分辨率之间的差值。运动矢量分辨率解码器1110可以通过将alternative_mv_resolution与mv_resolution_delta相加来计算当前CU的运动矢量分辨率。In this case, the mv_resolution_delta of the current CU can be represented as the difference between the alternative_mv_resolution (i.e., alternative resolution) in the slice (tile) header (or image sequence, picture, or CTU) and the motion vector resolution of the current CU difference. The motion vector resolution decoder 1110 may calculate the motion vector resolution of the current CU by adding alternative_mv_resolution and mv_resolution_delta.

例如,当切片报头的Adaptive_MV_resolution_enabled_flag为ON,作为替代分辨率的alternative_mv_resolution值为4像素,默认运动矢量分辨率为1/4像素,并且作为当前CU的报头信息的mv_resolution_flag为OFF时,可能不需要mv_resolution_delta信息来确定当前CU的运动矢量分辨率。在这种情况下,当前CU的运动矢量分辨率可以被确定为与默认运动矢量分辨率对应的1/4像素,并且可以以1/4像素的分辨率表示当前CU的运动矢量。For example, when the Adaptive_MV_resolution_enabled_flag of the slice header is ON, the alternative_mv_resolution value is 4 pixels as an alternative resolution, the default motion vector resolution is 1/4 pixel, and the mv_resolution_flag as the header information of the current CU is OFF, the mv_resolution_delta information may not be required To determine the motion vector resolution of the current CU. In this case, the motion vector resolution of the current CU may be determined to be 1/4 pixel corresponding to the default motion vector resolution, and the motion vector of the current CU may be represented at a resolution of 1/4 pixel.

当当前CU的mv_resolution_flag为ON并且当前CU的mv_resolution_delta为0时,当前CU的运动矢量分辨率可以被设置为与通过将alternative_mv_resolution与mv_resolution_delta相加而得到的值对应的4像素,并且可以以4像素的分辨率表示当前CU的运动矢量。当当前CU的mv_resolution_flag为ON时,如果当前CU的mv_resolution_delta为-2个像素,则当前CU的运动矢量分辨率可以被设置为与通过将作为切片报头的alternative_mv_resolution的4像素与对应于mv_resolution_delta值的-2像素相加而得到的2像素,并且可以以2像素的分辨率表示当前CU的运动矢量。When the mv_resolution_flag of the current CU is ON and the mv_resolution_delta of the current CU is 0, the motion vector resolution of the current CU can be set to 4 pixels corresponding to the value obtained by adding alternative_mv_resolution to mv_resolution_delta, and can be set in 4 pixels The resolution represents the motion vector of the current CU. When the mv_resolution_flag of the current CU is ON, if the mv_resolution_delta of the current CU is -2 pixels, the motion vector resolution of the current CU can be set to be the same as the 4 pixels of the alternative_mv_resolution as the slice header and corresponding to the mv_resolution_delta value of - 2 pixels obtained by adding 2 pixels, and can represent the motion vector of the current CU with a resolution of 2 pixels.

作为图18的实施方式的另一示例,当Adaptive_MV_resolution_enabled_flag和作为替代分辨率的alternative_mv_resolution位于切片(图块)报头(或SPS、PPS或CTU)中时,可以根据Adaptive_MV_resolution_enabled_flag以切片(图块)(图像序列、图片或CTU)为单元确定是否应用根据本发明的自适应运动矢量分辨率模式和替代分辨率。当mv_resolution_flag和mv_resolution_delta信息位于切片(图块)(图像序列、图片或CTU)单元中的CU的报头中时,可以根据mv_resolution_flag为切片(图块)(图像序列、图片或CTU)单元中的每个CU自适应地确定运动矢量分辨率,并且可以使用mv_resolution_delta来调整当前CU的运动矢量分辨率。As another example of the embodiment of FIG. 18 , when Adaptive_MV_resolution_enabled_flag and alternative_mv_resolution as an alternative resolution are located in the slice (tile) header (or SPS, PPS, or CTU), the slice (tile) (image sequence , picture or CTU) to determine whether to apply the adaptive motion vector resolution mode and alternative resolution according to the present invention. When the mv_resolution_flag and mv_resolution_delta information is located in the header of the CU in the slice (tile) (image sequence, picture or CTU) unit, each of the slice (tile) (image sequence, picture or CTU) units can be The CU adaptively determines the motion vector resolution, and mv_resolution_delta can be used to adjust the motion vector resolution of the current CU.

这里,当前CU的mv_resolution_delta可以被表示为切片(图块)(SPS、PPS或CTU)中的alternative_mv_resolution与当前CU的运动矢量分辨率之间的差值,或者可以被表示为就在当前CU之前被编码的CU的运动矢量分辨率与当前CU的运动矢量分辨率之间的差值。Here, the mv_resolution_delta of the current CU can be expressed as the difference between the alternative_mv_resolution in a slice (tile) (SPS, PPS, or CTU) and the motion vector resolution of the current CU, or can be expressed as The difference between the motion vector resolution of the encoded CU and the motion vector resolution of the current CU.

例如,当当前CU是按解码顺序的第一CU时,当前CU的mv_resolution_delta可以指示切片(图块)(SPS、PPS或CTU)报头中的alternative_mv_resolution与当前CU的运动矢量分辨率之间的差值。当当前CU不是第一CU时,当前CU的mv_resolution_delta可以被表示为就在当前CU之前被编码的运动矢量分辨率与当前CU的运动矢量分辨率之间的差值。For example, when the current CU is the first CU in decoding order, the mv_resolution_delta of the current CU can indicate the difference between the alternative_mv_resolution in the slice (tile) (SPS, PPS or CTU) header and the motion vector resolution of the current CU . When the current CU is not the first CU, mv_resolution_delta of the current CU may be represented as a difference between a motion vector resolution encoded immediately before the current CU and the motion vector resolution of the current CU.

例如,当切片报头的Adaptive_MV_resolution_enabled_flag为ON,替代分辨率为4像素,默认运动矢量分辨率为1/4像素,并且作为当前CU的报头信息的mv_resolution_flag为OFF时,可能不需要当前CU的mv_resolution_delta来确定当前CU的运动矢量分辨率。在这种情况下,当前CU的运动矢量分辨率可以被设置为与默认运动矢量分辨率对应的1/4像素。For example, when the Adaptive_MV_resolution_enabled_flag of the slice header is ON, the alternative resolution is 4 pixels, the default motion vector resolution is 1/4 pixel, and the mv_resolution_flag as the header information of the current CU is OFF, the mv_resolution_delta of the current CU may not be required to determine The motion vector resolution of the current CU. In this case, the motion vector resolution of the current CU may be set to 1/4 pixel corresponding to the default motion vector resolution.

另一方面,当作为当前CU的报头信息的mv_resolution_flag为ON时,当前CU是第一CU,并且CU的mv_resolution_delta为指示作为切片(图块)报头中的alternative_mv_resolution的4像素与当前CU的运动矢量分辨率之间的分辨率差值的+2像素时,当前CU的运动矢量分辨率可以是通过将alternative_mv_resolution 4像素与分辨率差值+2像素相加而得到的6像素。在这种情况下,当第一CU的下一个CU的mv_resolution_flag为ON并且该对应的下一个CU的mv_resolution_delta是-2像素时,该对应的下一个CU的运动矢量分辨率可以为通过将作为先前CU的运动矢量分辨率的6像素与作为该对应的下一个CU的mv_resolution_delta的-2像素相加而得到的4像素。On the other hand, when mv_resolution_flag which is the header information of the current CU is ON, the current CU is the first CU, and the mv_resolution_delta of the CU is 4 pixels indicating the alternative_mv_resolution in the slice (tile) header and the motion vector resolution of the current CU The motion vector resolution of the current CU may be 6 pixels obtained by adding alternative_mv_resolution 4 pixels to the resolution difference +2 pixels. In this case, when the mv_resolution_flag of the next CU of the first CU is ON and the mv_resolution_delta of the corresponding next CU is -2 pixels, the motion vector resolution of the corresponding next CU can be set as the previous 4 pixels obtained by adding 6 pixels of the motion vector resolution of the CU to −2 pixels of the mv_resolution_delta of the corresponding next CU.

在图18的操作S1847或S1848之后,视频解码器1120可以使用MVP来推导当前CU的运动矢量(S1850)。After operation S1847 or S1848 of FIG. 18 , the video decoder 1120 may derive the motion vector of the current CU using the MVP ( S1850 ).

这里,操作S1850可以包括操作S1851至S1855。Here, operation S1850 may include operations S1851 to S1855.

图18的操作S1851至S1855分别类似于图12的操作S1251至S1255,因此,省略对操作S1851至S1855的详细描述。Operations S1851 to S1855 of FIG. 18 are similar to operations S1251 to S1255 of FIG. 12 , respectively, and thus, detailed descriptions of operations S1851 to S1855 are omitted.

当在操作S1841中检测到对应CU的编码模式不是mvp模式时,视频解码器1120可以从时间或空间邻近块的运动矢量(即,合并候选)推导当前CU的运动矢量(S1860)。When it is detected in operation S1841 that the encoding mode of the corresponding CU is not the mvp mode, the video decoder 1120 may derive a motion vector of the current CU from motion vectors of temporally or spatially neighboring blocks (ie, merge candidates) (S1860).

这里,操作S1860可以包括操作S1861至S1864。Here, operation S1860 may include operations S1861 to S1864.

图18的操作S1861至S1864分别类似于图12的操作S1261至S1264,因此,省略对操作S1861至S1864的详细描述。Operations S1861 to S1864 of FIG. 18 are similar to operations S1261 to S1264 of FIG. 12 , respectively, and thus, detailed descriptions of operations S1861 to S1864 are omitted.

图18是用于说明根据本发明的第四实施方式的视频解码设备1100的操作以及根据本发明的第三实施方式的视频解码设备1100的操作的流程图。FIG. 18 is a flowchart for explaining the operation of the video decoding device 1100 according to the fourth embodiment of the present invention and the operation of the video decoding device 1100 according to the third embodiment of the present invention.

也就是说,根据第四实施方式,视频解码器1120可以从比特流中解析mv_resolution_scale而非mv_resolution_delta,并且可以使用所解析的mv_resolution_scale恢复当前CU的运动矢量分辨率。That is, according to the fourth embodiment, the video decoder 1120 may parse mv_resolution_scale instead of mv_resolution_delta from the bitstream, and may restore the motion vector resolution of the current CU using the parsed mv_resolution_scale.

在第三实施方式和第四实施方式中,与图18的操作当中的操作S1845至S1846对应的操作彼此不同,并且其余操作是相同的。In the third embodiment and the fourth embodiment, operations corresponding to operations S1845 to S1846 among the operations of FIG. 18 are different from each other, and the remaining operations are the same.

根据第四实施方式,操作S1845可以被实施为从比特流中解析mv_resolution_scale,并且操作S1846可以被实施为使用mv_resolution_scale恢复当前CU的运动矢量分辨率。According to the fourth embodiment, operation S1845 may be implemented to parse mv_resolution_scale from a bitstream, and operation S1846 may be implemented to restore the motion vector resolution of the current CU using mv_resolution_scale.

当在操作S1844中检查到mv_resolution_flag指示使用作为通过将当前CU的运动矢量分辨率除以先前CU的运动矢量分辨率而得到的值的分辨率比例因子来确定当前CU的运动矢量分辨率时(即,当mv_resolution_flag为ON时),运动矢量分辨率解码器1110可以从比特流中解析作为指示通过将当前CU的运动矢量分辨率除以先前CU的运动矢量分辨率而得到的值的信息的mv_resolution_scale(S1845)。另选地,mv_resolution_scale可以是指示通过将当前CU的运动矢量分辨率除以替代分辨率而得到的值的信息。When it is checked in operation S1844 that mv_resolution_flag indicates that the motion vector resolution of the current CU is determined using a resolution scale factor that is a value obtained by dividing the motion vector resolution of the current CU by the motion vector resolution of the previous CU (ie, , when mv_resolution_flag is ON), the motion vector resolution decoder 1110 may parse from the bitstream mv_resolution_scale ( S1845). Alternatively, mv_resolution_scale may be information indicating a value obtained by dividing the motion vector resolution of the current CU by the alternative resolution.

运动矢量分辨率解码器1110可以用mv_resolution_delta来计算当前CU的运动矢量分辨率(S1846)。The motion vector resolution decoder 1110 may use mv_resolution_delta to calculate the motion vector resolution of the current CU (S1846).

在操作S1846中,当当前CU是上层图像单元中的CU当中的按解码顺序的第一CU时,运动矢量分辨率解码器1110可以将与mv_resolution_scale对应的运动矢量分辨率解析为当前CU的运动矢量分辨率。当当前CU是按解码顺序的第一CU之后的CU时,运动矢量分辨率解码器1110可以通过将就在当前CU之前被编码的CU的运动矢量分辨率乘以当前CU的比例因子来计算当前CU的运动矢量分辨率。在这种情况下,由于不需要替代分辨率来计算当前CU的运动矢量分辨率,因此运动矢量分辨率解码器1110可以省略从比特流中解析alternative_mv_resolution的操作。In operation S1846, when the current CU is the first CU in decoding order among the CUs in the higher layer image unit, the motion vector resolution decoder 1110 may resolve the motion vector resolution corresponding to mv_resolution_scale into the motion vector of the current CU resolution. When the current CU is the CU after the first CU in decoding order, the motion vector resolution decoder 1110 can calculate the current CU by multiplying the motion vector resolution of the CU encoded immediately before the current CU by the scale factor of the current CU. Motion vector resolution of the CU. In this case, since an alternative resolution is not required to calculate the motion vector resolution of the current CU, the motion vector resolution decoder 1110 may omit the operation of parsing alternative_mv_resolution from the bitstream.

作为用mv_resolution_scale计算当前CU的运动矢量分辨率的另一实施方式,运动矢量分辨率解码器1110可以对通过将上层图像单元中的当前CU中的mv_resolution_scale乘以替代分辨率而得到的结果解码为当前CU的运动矢量分辨率。As another embodiment of using mv_resolution_scale to calculate the motion vector resolution of the current CU, the motion vector resolution decoder 1110 can decode the result obtained by multiplying the mv_resolution_scale in the current CU in the upper layer image unit by the alternative resolution into the current Motion vector resolution of the CU.

作为用mv_resolution_scale计算当前CU的运动矢量分辨率的另一实施方式,当当前CU是上层图像单元中的CU当中的按解码顺序的第一CU时,运动矢量分辨率解码器1110可以通过将mv_resolution_scale与替代分辨率相乘对当前CU的运动矢量分辨率进行解码。另一方面,当当前CU是按解码顺序的第一CU之后的CU时,运动矢量分辨率解码器1110可以通过将就在当前CU之前被编码的CU的运动矢量分辨率乘以当前CU的mv_resolution_scale来计算当前CU的运动矢量分辨率。As another embodiment of using mv_resolution_scale to calculate the motion vector resolution of the current CU, when the current CU is the first CU in the decoding order among the CUs in the upper layer picture unit, the motion vector resolution decoder 1110 can combine mv_resolution_scale with Alternate resolution multiplication decodes the motion vector resolution of the current CU. On the other hand, when the current CU is the CU after the first CU in decoding order, the motion vector resolution decoder 1110 can multiply the motion vector resolution of the CU encoded just before the current CU by the mv_resolution_scale of the current CU To calculate the motion vector resolution of the current CU.

作为根据本发明的第四实施方式的视频解码设备1100的操作的示例,当Adaptive_MV_resolution_enabled_flag和alternative_mv_resolution位于切片(图块)报头(SPS、PPS或CTU)中并且mv_resolution_flag和mv_resolution_scale信息位于作为编码目标的当前CU的报头中时,运动矢量分辨率解码器1110可以以切片(图块)(图像序列、图片或CTU)为单元确定是否应用根据本发明的自适应运动矢量分辨率模式和替代分辨率。运动矢量分辨率解码器1110可以以切片(图块)(图像序列、图片或CTU)中的块为单位自适应地启用运动矢量分辨率,并且使用mv_resolution_scale值来调整当前CU的运动矢量分辨率。As an example of the operation of the video decoding device 1100 according to the fourth embodiment of the present invention, when Adaptive_MV_resolution_enabled_flag and alternative_mv_resolution are located in a slice (tile) header (SPS, PPS, or CTU) and mv_resolution_flag and mv_resolution_scale information is located in the current CU that is an encoding target When in the header of , the motion vector resolution decoder 1110 may determine whether to apply the adaptive motion vector resolution mode and alternative resolution according to the present invention in units of slices (tiles) (image sequences, pictures or CTUs). The motion vector resolution decoder 1110 may adaptively enable motion vector resolution in units of blocks in a slice (tile) (image sequence, picture, or CTU), and adjust the motion vector resolution of the current CU using the mv_resolution_scale value.

在这种情况下,当当前CU是作为上层图像单元的切片(图块)(图像序列、图片或CTU)中的第一CU时,mv_resolution_scale可以被表示为与当前CU的运动矢量分辨率对应的值,而当当前CU是第一CU之后的CU时,mv_resolution_scale可以被表示为就在当前CU之前被编码的CU的运动矢量分辨率与当前CU的运动矢量分辨率之间的相乘值。In this case, when the current CU is the first CU in a slice (tile) (image sequence, picture, or CTU) that is an upper-layer image unit, mv_resolution_scale can be expressed as value, and when the current CU is a CU after the first CU, mv_resolution_scale may be expressed as a multiplication value between the motion vector resolution of the CU encoded just before the current CU and the motion vector resolution of the current CU.

例如,当切片报头的Adaptive_MV_resolution_enabled_flag为ON,默认运动矢量分辨率为1/4像素,并且作为当前CU的报头信息的mv_resolution_flag为OFF时,可以不解析当前CU的mv_resolution_scale信息,并且当前CU的运动矢量分辨率可以被设置为与默认运动矢量分辨率对应的1/4像素。For example, when the Adaptive_MV_resolution_enabled_flag of the slice header is ON, the default motion vector resolution is 1/4 pixel, and the mv_resolution_flag as the header information of the current CU is OFF, the mv_resolution_scale information of the current CU may not be parsed, and the motion vector resolution of the current CU The rate can be set to 1/4 pixel corresponding to the default motion vector resolution.

当当前CU的mv_resolution_flag为ON并且当前CU是按解码顺序的第一CU,并且当前CU的mv_resolution_scale为4时,当前CU的运动矢量分辨率可以为与mv_resolution_scale对应的4像素。当当前CU是第一CU的下一个CU,当前CU的mv_resolution_flag为ON,并且当前CU的mv_resolution_scale为1/2时,当前CU的运动矢量分辨率可以被设置为通过将先前CU的运动矢量分辨率的4像素与当前CU的mv_resolution_scale的1/2相乘而得到的2像素。When the mv_resolution_flag of the current CU is ON and the current CU is the first CU in decoding order, and the mv_resolution_scale of the current CU is 4, the motion vector resolution of the current CU may be 4 pixels corresponding to the mv_resolution_scale. When the current CU is the next CU of the first CU, the mv_resolution_flag of the current CU is ON, and the mv_resolution_scale of the current CU is 1/2, the motion vector resolution of the current CU can be set by setting the motion vector resolution of the previous CU 2 pixels obtained by multiplying 4 pixels of the current CU by 1/2 of the mv_resolution_scale of the current CU.

另选地,每个CU的mv_resolution_scale可以被表示为切片(图块)报头(SPS、PPS或CTU)中包括的alternative_mv_resolution与当前块的运动矢量分辨率之间的相乘值。Alternatively, mv_resolution_scale of each CU may be expressed as a multiplication value between alternative_mv_resolution included in a slice (tile) header (SPS, PPS, or CTU) and a motion vector resolution of a current block.

例如,当切片报头的Adaptive_MV_resolution_enabled_flag为ON,作为替代分辨率的alternative_mv_resolution值为4像素,默认运动矢量分辨率为1/4像素,并且作为当前CU的报头信息的mv_resolution_flag为OFF时,可以不解析当前CU的mv_resolution_scale信息,并且当前CU的运动矢量分辨率可以被设置为与默认运动矢量分辨率对应的1/4像素。For example, when the Adaptive_MV_resolution_enabled_flag of the slice header is ON, the alternative_mv_resolution value of the alternative resolution is 4 pixels, the default motion vector resolution is 1/4 pixel, and the mv_resolution_flag of the header information of the current CU is OFF, the current CU may not be parsed mv_resolution_scale information, and the motion vector resolution of the current CU can be set to 1/4 pixel corresponding to the default motion vector resolution.

另一方面,当当前CU的mv_resolution_flag为ON并且当前CU的mv_resolution_scale为1时,当前CU的运动矢量分辨率可以被设置为通过将作为alternative_mv_resolution的4像素与作为当前CU的mv_resolution_scale的1相乘而得到的4像素。当下一个CU的mv_resolution_flag为ON并且mv_resolution_scale为1/2时,该对应的下一个CU的运动矢量分辨率可以被设置为通过将作为替代分辨率的4像素与作为该下一个CU的mv_resolution_scale的1/2相乘而得到的2像素。On the other hand, when the mv_resolution_flag of the current CU is ON and the mv_resolution_scale of the current CU is 1, the motion vector resolution of the current CU can be set to be obtained by multiplying 4 pixels as alternative_mv_resolution by 1 as the mv_resolution_scale of the current CU of 4 pixels. When the mv_resolution_flag of the next CU is ON and the mv_resolution_scale is 1/2, the motion vector resolution of the corresponding next CU can be set by dividing 4 pixels as the alternative resolution with 1/2 of the mv_resolution_scale of the next CU 2 pixels are multiplied by 2.

在另一实施方式中,每个CU的mv_resolution_scale可以用切片(图块)报头(SPS或PPS)中的alternative_mv_resolution值和当前CU的运动矢量分辨率之间的相乘值,或者可以用就在当前CU之前被编码的CU的运动矢量分辨率与当前CU的运动矢量分辨率之间的相乘值来表示。也就是说,当当前CU是按解码顺序的第一CU时,当前CU的mv_resolution_scale可以指示当前CU的运动矢量分辨率与切片(图块)报头(SPS或PPS)中的alternative_mv_resolution之间的相乘值,而当当前CU是第一CU之后的CU时,可以用就在当前CU之前被编码的CU的运动矢量分辨率与当前CU的运动矢量分辨率之间的相乘值来表示当前CU的mv_resolution_scale。In another embodiment, the mv_resolution_scale of each CU can use the multiplication value between the alternative_mv_resolution value in the slice (tile) header (SPS or PPS) and the motion vector resolution of the current CU, or can use the current The CU is represented by the multiplication value between the motion vector resolution of the CU encoded before and the motion vector resolution of the current CU. That is, when the current CU is the first CU in decoding order, the mv_resolution_scale of the current CU can indicate the multiplication between the motion vector resolution of the current CU and the alternative_mv_resolution in the slice (tile) header (SPS or PPS) value, and when the current CU is the CU after the first CU, the multiplication value between the motion vector resolution of the CU encoded just before the current CU and the motion vector resolution of the current CU can be used to represent the current CU mv_resolution_scale.

例如,当切片报头的Adaptive_MV_resolution_enabled_flag为ON,alternative_mv_resolution为4像素,默认运动矢量分辨率为1/4像素,并且作为当前CU的报头信息的mv_resolution_flag为OFF时,当前CU的运动矢量分辨率可以不需要mv_resolution_scale信息,因此,当前CU的运动矢量分辨率可以被设置为与默认运动矢量分辨率对应的1/4像素,并且可以以与默认运动矢量分辨率对应的1/4像素的分辨率表示当前CU的运动矢量。For example, when Adaptive_MV_resolution_enabled_flag of the slice header is ON, alternative_mv_resolution is 4 pixels, the default motion vector resolution is 1/4 pixel, and mv_resolution_flag as the header information of the current CU is OFF, the motion vector resolution of the current CU does not need mv_resolution_scale information, therefore, the motion vector resolution of the current CU can be set to 1/4 pixel corresponding to the default motion vector resolution, and the current CU's Motion vector.

另一方面,当当前CU的mv_resolution_flag为ON并且当前CU的mv_resolution_scale为1时,当前CU的运动矢量分辨率可以被设置为通过将作为切片报头的alternative_mv_resolution的4像素与作为当前CU的mv_resolution_scale的1相乘而得到的4像素。当当前CU是第一CU的下一个CU,当前CU的mv_resolution_flag为ON,并且当前CU的mv_resolution_scale为1/2时,当前CU的运动矢量分辨率可以被设置为通过将作为就在当前CU之前被编码的CU的运动矢量分辨率值的4像素与作为当前CU的mv_resolution_scale的1/2相乘而得到的2像素。On the other hand, when the mv_resolution_flag of the current CU is ON and the mv_resolution_scale of the current CU is 1, the motion vector resolution of the current CU can be set by comparing 4 pixels of alternative_mv_resolution as a slice header with 1 of mv_resolution_scale as the current CU Multiplied by 4 pixels. When the current CU is the next CU of the first CU, the mv_resolution_flag of the current CU is ON, and the mv_resolution_scale of the current CU is 1/2, the motion vector resolution of the current CU can be set by setting as just before the current CU 2 pixels obtained by multiplying 4 pixels of the motion vector resolution value of the coded CU by 1/2 of the mv_resolution_scale of the current CU.

图19是示出在图18的流程图中添加一些操作的情况的流程图。FIG. 19 is a flowchart showing a case where some operations are added to the flowchart of FIG. 18 .

在图19中,操作S1840可以包括操作S1841、S1842_1、S1842_2、S1843、S1844、S1845、S1846、S1847和S1848。另外,图19的操作S1850可以包括操作S1851、S1852、S1853和S1855。In FIG. 19 , operation S1840 may include operations S1841, S1842_1, S1842_2, S1843, S1844, S1845, S1846, S1847, and S1848. In addition, operation S1850 of FIG. 19 may include operations S1851, S1852, S1853, and S1855.

与图18的情况相比,图19包括操作S1240中的操作S1242_1和S1242_2而非图18的操作S1242,并且可以从操作S1850中将图18的操作S1854排除在外。Compared with the case of FIG. 18 , FIG. 19 includes operations S1242_1 and S1242_2 in operation S1240 instead of operation S1242 of FIG. 18 , and operation S1854 of FIG. 18 may be excluded from operation S1850.

作为参考,在图19的功能块当中,具有与图18的块的附图标记相同的附图标记的功能块执行与图18的块相同的操作,除非其在上下文中具有明显不同的含义。例如,图19的操作S1843与图18的操作S1843相同。For reference, among the functional blocks of FIG. 19 , functional blocks having the same reference numerals as those of the blocks of FIG. 18 perform the same operations as the blocks of FIG. 18 unless they have obviously different meanings in context. For example, operation S1843 of FIG. 19 is the same as operation S1843 of FIG. 18 .

当在图19的操作S1841中检查到当前CU的编码模式是使用MVP对MVD进行编码的模式(即,mvp模式)时,视频解码器1120可以从比特流中对关于MVD的信息进行解码(S1842_1)。When it is checked in operation S1841 of FIG. 19 that the encoding mode of the current CU is a mode for encoding MVD using MVP (that is, mvp mode), the video decoder 1120 may decode information about MVD from the bitstream (S1842_1 ).

在对MVD进行解码之后,运动矢量分辨率解码器1110可以检查MVD是否不为0以及Adaptive_MV_resolution_enabled_flag是否为ON(S1842_2)。当作为操作S1842_2中的检查结果,MVD不为0并且Adaptive_MV_resolution_enabled_flag为ON时,运动矢量分辨率解码器1110可以进行操作S1843。当MVD为0或者Adaptive_MV_resolution_enabled_flag不为ON时,运动矢量分辨率解码器1110可以进行操作S1848。After decoding the MVD, the motion vector resolution decoder 1110 may check whether MVD is not 0 and Adaptive_MV_resolution_enabled_flag is ON (S1842_2). When MVD is not 0 and Adaptive_MV_resolution_enabled_flag is ON as a result of the check in operation S1842_2, the motion vector resolution decoder 1110 may proceed to operation S1843. When MVD is 0 or Adaptive_MV_resolution_enabled_flag is not ON, the motion vector resolution decoder 1110 may proceed to operation S1848.

操作S1851可以在操作S1842_1之前执行或者可以在操作S1842_1和S1842_2之间执行。Operation S1851 may be performed before operation S1842_1 or may be performed between operations S1842_1 and S1842_2.

图19的操作S1851、S1852、S1853和S1855分别类似于图14的操作S1251、S1252、S1253和S1255,因此,省略对图19的操作S1851、S1852、S1853和S1855的详细描述。Operations S1851, S1852, S1853, and S1855 of FIG. 19 are similar to operations S1251, S1252, S1253, and S1255 of FIG. 14, respectively, and thus, detailed descriptions of operations S1851, S1852, S1853, and S1855 of FIG. 19 are omitted.

根据本发明的实施方式,已经例示了运动矢量分辨率解码器1110从比特流中解析Adaptive_MV_resolution_enabled_flag的情况,但是在一些实施方式中,视频解码设备1100中的运动矢量分辨率解码器1110可以省略从比特流中解析Adaptive_MV_resolution_enabled_flag的操作。在这种情况下,运动矢量分辨率解码器1110可以执行与当Adaptive_MV_resolution_enabled_flag为ON时执行的操作相同的操作,或者可以执行与当Adaptive_MV_resolution_enabled_flag为OFF时执行的操作相同的操作。相应地,视频编码设备400可以省略对Adaptive_MV_resolution_enabled_flag进行编码的操作。According to the embodiment of the present invention, the case where the motion vector resolution decoder 1110 parses the Adaptive_MV_resolution_enabled_flag from the bitstream has been exemplified, but in some embodiments, the motion vector resolution decoder 1110 in the video decoding device 1100 may omit the The operation of parsing the Adaptive_MV_resolution_enabled_flag in the stream. In this case, the motion vector resolution decoder 1110 may perform the same operation as that performed when Adaptive_MV_resolution_enabled_flag is ON, or may perform the same operation as that performed when Adaptive_MV_resolution_enabled_flag is OFF. Accordingly, the video encoding apparatus 400 may omit the operation of encoding Adaptive_MV_resolution_enabled_flag.

视频解码设备的以上实施方式不限于以CU为单位解析mv_resolution_flag的情况,并且可以以CTU为单位解析mv_resolution_flag,以将默认运动矢量分辨率或替代分辨率中的一个设置为运动矢量分辨率。当以CTU为单位确定运动矢量分辨率时,一个CTU中所包括的所有CU都可以具有相同的运动矢量分辨率。在这种情况下,CTU单元的上层图像单元可以是图像序列、图片或切片中的一个。The above embodiment of the video decoding device is not limited to the case of parsing mv_resolution_flag in units of CUs, and may parse mv_resolution_flag in units of CTUs to set one of a default motion vector resolution or an alternative resolution as the motion vector resolution. When the motion vector resolution is determined in units of CTUs, all CUs included in one CTU may have the same motion vector resolution. In this case, the upper layer image unit of the CTU unit may be one of an image sequence, a picture, or a slice.

虽然已经参照本发明的示例性实施方式具体示出并描述了本发明,但是本领域技术人员将理解的是,可以在不脱离所附的权利要求限定的本发明的精神和范围的情况下在本文中进行形式和细节上的各种改变。示例性的实施方式应该仅仅被认为是描述性的,而不是出于限制的目的。因此,本发明的范围不由本发明的具体实施方式限定,而是由所附的权利要求限定,并且该范围内的所有差异都将被解释为被包括在本发明中。While the invention has been particularly shown and described with reference to exemplary embodiments of the invention, it will be understood by those skilled in the art that other modifications may be made without departing from the spirit and scope of the invention as defined by the appended claims. Various changes in form and details have been made herein. The exemplary embodiments should be considered in a descriptive sense only and not for purposes of limitation. Therefore, the scope of the invention is defined not by the detailed description of the invention but by the appended claims, and all differences within the scope will be construed as being included in the present invention.

相关申请的交叉引用Cross References to Related Applications

本申请基于并要求分别于2016年10月19日和2017年2月27日在韩国知识产权局提交的韩国专利申请No.10-2016-0136066和No.10-2017-0025673的在35U.S.C§119(a)下的优先权,这两个韩国专利申请的公开的全部内容以引用方式并入到本文中。另外,以基于其全部内容特此以引用方式并入的所述韩国专利申请的相同理由,该非临时申请要求除美国之外的国家中的优先权。This application is based on and claims the registration under 35 U.S.C. of Korean Patent Applications No. 10-2016-0136066 and No. 10-2017-0025673 filed in the Korean Intellectual Property Office on October 19, 2016 and February 27, 2017, respectively. Priority under § 119(a), the disclosures of these two Korean patent applications are hereby incorporated by reference in their entirety. In addition, this non-provisional application claims priority in countries other than the United States on the same grounds based on said Korean patent application, the entire content of which is hereby incorporated by reference.

Claims (7)

1.一种对视频进行编码的设备,所述设备包括:1. A device for encoding video, the device comprising: 分辨率确定器,所述分辨率确定器被配置为确定当前块的运动矢量分辨率;a resolution determiner configured to determine a motion vector resolution of the current block; 视频编码器,所述视频编码器被配置为:a video encoder, the video encoder configured to: 根据所述当前块的所述运动矢量分辨率来确定所述当前块的运动矢量,并且determining the motion vector of the current block based on the motion vector resolution of the current block, and 生成作为所述当前块的所述运动矢量和从所述当前块的邻近块推导的运动矢量预测子之间的差的所述当前块的运动矢量差值,并且对关于所述当前块的所述运动矢量差值的信息进行编码;以及generating a motion vector difference value of the current block as a difference between the motion vector of the current block and a motion vector predictor derived from a neighboring block of the current block, and encode the information of the motion vector difference value; and 分辨率编码器,所述分辨率编码器被配置为:a resolution encoder configured to: 将指示是否自适应地确定运动矢量分辨率的启用标志编码到比特流中,其中,所述启用标志被编码到所述比特流的序列参数集或图片参数集中,并且encoding an enable flag indicating whether to adaptively determine motion vector resolution into a bitstream, wherein the enable flag is encoded into a sequence parameter set or a picture parameter set of the bitstream, and 当自适应地确定所述运动矢量分辨率并且所述当前块的所述运动矢量差值为非零时,将关于所述当前块的所述运动矢量分辨率的信息编码到所述比特流中,其中,所述分辨率编码器通过以下步骤对关于所述当前块的所述运动矢量分辨率的信息进行编码,所述步骤包括:encoding information about the motion vector resolution of the current block into the bitstream when the motion vector resolution is adaptively determined and the motion vector difference value of the current block is non-zero , wherein the resolution encoder encodes information about the motion vector resolution of the current block by the following steps, the steps comprising: 将指示所述当前块的所述运动矢量分辨率是否是作为1/4像素单元的默认运动矢量分辨率的mv分辨率标志编码到所述比特流中,以及encoding into the bitstream an mv resolution flag indicating whether the motion vector resolution of the current block is the default motion vector resolution as a quarter pixel unit, and 当所述当前块的所述运动矢量分辨率不是所述默认运动矢量分辨率时,将关于用于指示包括1/2像素单元、1像素单元和4像素单元的多个运动矢量分辨率候选当中的一个的替代分辨率的信息编码到所述比特流中,When the motion vector resolution of the current block is not the default motion vector resolution, among multiple motion vector resolution candidates for indicating 1/2 pixel unit, 1 pixel unit and 4 pixel unit information of an alternate resolution of one encoded into the bitstream, 其中,当未自适应地确定所述运动矢量分辨率时,所述当前块的所述运动矢量分辨率被确定为所述默认运动矢量分辨率,Wherein, when the motion vector resolution is not adaptively determined, the motion vector resolution of the current block is determined as the default motion vector resolution, 其中,当所述当前块的所述运动矢量差值为零时,所述当前块的所述运动矢量分辨率被确定为所述默认运动矢量分辨率。Wherein, when the motion vector difference value of the current block is zero, the motion vector resolution of the current block is determined as the default motion vector resolution. 2.根据权利要求1所述的设备,其中,对关于所述运动矢量分辨率的信息进行编码的步骤包括以下步骤:将所述当前块的所述运动矢量分辨率与在所述当前块之前被编码的块的运动矢量分辨率之间的差值编码为关于所述当前块的所述运动矢量分辨率的信息的一个元素。2. The apparatus according to claim 1 , wherein the step of encoding information about the motion vector resolution comprises the step of comparing the motion vector resolution of the current block with the The difference between the motion vector resolutions of the coded blocks is coded as one element of the information on the motion vector resolution of the current block. 3.根据权利要求1所述的设备,其中,对关于所述运动矢量分辨率的信息进行编码的步骤包括以下步骤:将关于所述当前块的所述运动矢量分辨率与在所述当前块之前被编码的块的运动矢量分辨率之间的比率的信息编码为关于所述当前块的所述运动矢量分辨率的信息的一个元素。3. The apparatus according to claim 1 , wherein the step of encoding information on the motion vector resolution comprises the step of combining the motion vector resolution on the current block with Information on a ratio between motion vector resolutions of previously coded blocks is coded as one element of information on the motion vector resolution of the current block. 4.一种自适应地确定当前块的运动矢量分辨率并且对所述当前块进行解码的视频解码设备,所述视频解码设备包括:4. A video decoding device for adaptively determining a motion vector resolution of a current block and decoding the current block, the video decoding device comprising: 运动矢量分辨率解码器,所述运动矢量分辨率解码器被配置为:a motion vector resolution decoder configured to: 从比特流提取指示是否自适应地确定运动矢量分辨率的启用标志,其中,所述启用标志是从所述比特流的序列参数集或图片参数集中提取的,并且extracting an enable flag indicating whether to adaptively determine motion vector resolution from a bitstream, wherein the enable flag is extracted from a sequence parameter set or a picture parameter set of the bitstream, and 当所述启用标志指示自适应地确定了所述运动矢量分辨率并且所述当前块的所述运动矢量差值为非零时,从所述比特流中提取关于所述当前块的所述运动矢量分辨率的信息,并且基于关于所述当前块的所述运动矢量分辨率的信息来确定所述当前块的所述运动矢量分辨率;以及extracting the motion for the current block from the bitstream when the enabled flag indicates that the motion vector resolution is adaptively determined and the motion vector difference value for the current block is non-zero information of a vector resolution, and determining the motion vector resolution of the current block based on the information about the motion vector resolution of the current block; and 视频解码器,所述视频解码器被配置为从所述比特流提取关于所述当前块的所述运动矢量差值的信息,并且根据所述当前块的所述运动矢量分辨率、所述当前块的所述运动矢量差值和从所述当前块的邻近块推导的运动矢量预测子来确定所述当前块的运动矢量,a video decoder configured to extract information about the motion vector difference value of the current block from the bitstream, and based on the motion vector resolution of the current block, the current determining the motion vector of the current block using the motion vector difference value of the block and the motion vector predictor derived from the neighboring blocks of the current block, 其中,所述运动矢量分辨率解码器通过以下步骤提取关于所述当前块的所述运动矢量分辨率的信息,所述步骤包括:Wherein, the motion vector resolution decoder extracts information about the motion vector resolution of the current block through the following steps, the steps comprising: 从所述比特流提取指示所述当前块的所述运动矢量分辨率是否是作为1/4像素单元的默认运动矢量分辨率的mv分辨率标志;以及extracting from the bitstream an mv resolution flag indicating whether the motion vector resolution of the current block is a default motion vector resolution of 1/4 pixel unit; and 当所述mv分辨率标志指示所述当前块的所述运动矢量分辨率不是所述默认运动矢量分辨率时,从所述比特流提取关于用于指示包括1/2像素单元、1像素单元和4像素单元的多个运动矢量分辨率候选当中的一个的替代分辨率的信息,When the mv resolution flag indicates that the motion vector resolution of the current block is not the default motion vector resolution, extract information from the bitstream for indicating that the motion vector resolution includes 1/2 pixel unit, 1 pixel unit, and information of an alternative resolution among a plurality of motion vector resolution candidates in units of 4 pixels, 其中,当所述启用标志指示未自适应地确定所述运动矢量分辨率时,所述当前块的所述运动矢量分辨率被设置为所述默认运动矢量分辨率,Wherein, when the enabling flag indicates that the motion vector resolution is not adaptively determined, the motion vector resolution of the current block is set as the default motion vector resolution, 其中,当所述当前块的所述运动矢量差值为零时,所述当前块的所述运动矢量分辨率被设置为所述默认运动矢量分辨率。Wherein, when the motion vector difference value of the current block is zero, the motion vector resolution of the current block is set as the default motion vector resolution. 5.根据权利要求4所述的视频解码设备,其中,确定所述当前块的所述运动矢量分辨率的步骤包括以下步骤:从所述比特流中提取关于所述当前块的所述运动矢量分辨率与在所述当前块之前被编码的块的运动矢量分辨率之间的差值的信息作为关于所述当前块的所述运动矢量分辨率的信息的一个元素。5. The video decoding device according to claim 4, wherein the step of determining the motion vector resolution of the current block comprises the step of extracting the motion vector for the current block from the bitstream Information of a difference between a resolution and a motion vector resolution of a block encoded before the current block is used as an element of information on the motion vector resolution of the current block. 6.根据权利要求4所述的视频解码设备,其中,确定所述当前块的所述运动矢量分辨率的步骤包括以下步骤:从所述比特流中提取关于所述当前块的所述运动矢量分辨率与在所述当前块之前被编码的块的运动矢量分辨率之间的比率的信息作为关于所述当前块的所述运动矢量分辨率的信息的一个元素。6. The video decoding device according to claim 4, wherein the step of determining the motion vector resolution of the current block comprises the step of extracting the motion vector for the current block from the bitstream As one element of the information on the motion vector resolution of the current block, information of a ratio between the resolution and the motion vector resolution of a block encoded before the current block. 7.一种存储通过视频编码方法生成的比特流的非暂时性记录介质,所述视频编码方法包括以下步骤:7. A non-transitory recording medium storing a bitstream generated by a video encoding method, the video encoding method comprising the steps of: 将指示是否自适应地确定运动矢量分辨率的启用标志编码到比特流中,其中,所述启用标志被编码到所述比特流的序列参数集或图片参数集中;Encoding an enabling flag indicating whether to adaptively determine a motion vector resolution into a bitstream, wherein the enabling flag is encoded into a sequence parameter set or a picture parameter set of the bitstream; 确定当前块的运动矢量分辨率;Determine the motion vector resolution of the current block; 根据所述当前块的所述运动矢量分辨率来确定所述当前块的运动矢量;determining a motion vector of the current block according to the motion vector resolution of the current block; 生成作为所述当前块的所述运动矢量和从所述当前块的邻近块推导的运动矢量预测子之间的差的所述当前块的运动矢量差值,并且将关于所述当前块的所述运动矢量差值的信息编码到所述比特流中;generating a motion vector difference value of the current block as a difference between the motion vector of the current block and a motion vector predictor derived from a neighboring block of the current block, and encoding the information of the motion vector difference into the bit stream; 当自适应地确定了所述运动矢量分辨率并且所述当前块的所述运动矢量差值为非零时,将关于所述当前块的所述运动矢量分辨率的信息编码到所述比特流中;以及encoding information about the motion vector resolution of the current block into the bitstream when the motion vector resolution is adaptively determined and the motion vector difference value of the current block is non-zero in; and 使用所述当前块的所述运动矢量来预测所述当前块并且对所述当前块进行编码,predicting the current block using the motion vector of the current block and encoding the current block, 其中,对关于所述当前块的所述运动矢量分辨率的信息进行编码的步骤包括以下步骤:Wherein, the step of encoding information about the motion vector resolution of the current block includes the following steps: 将指示所述当前块的所述运动矢量分辨率是否是作为1/4像素单元的默认运动矢量分辨率的mv分辨率标志编码到所述比特流中;以及encoding into the bitstream an mv resolution flag indicating whether the motion vector resolution of the current block is the default motion vector resolution as a quarter pixel unit; and 当所述当前块的所述运动矢量分辨率不是所述默认运动矢量分辨率时,将关于用于指示包括1/2像素单元、1像素单元和4像素单元的多个运动矢量分辨率候选当中的一个的替代分辨率的信息编码到所述比特流中,When the motion vector resolution of the current block is not the default motion vector resolution, among multiple motion vector resolution candidates for indicating 1/2 pixel unit, 1 pixel unit and 4 pixel unit information of an alternate resolution of one encoded into the bitstream, 其中,当未自适应地确定所述运动矢量分辨率时,所述当前块的所述运动矢量分辨率被确定为所述默认运动矢量分辨率,Wherein, when the motion vector resolution is not adaptively determined, the motion vector resolution of the current block is determined as the default motion vector resolution, 其中,当所述当前块的所述运动矢量差值为零时,所述当前块的所述运动矢量分辨率被确定为所述默认运动矢量分辨率。Wherein, when the motion vector difference value of the current block is zero, the motion vector resolution of the current block is determined as the default motion vector resolution.
CN202310710814.3A 2016-10-19 2017-10-17 Video encoding/decoding device and method, and non-transitory recording medium Pending CN116567208A (en)

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
KR10-2016-0136066 2016-10-19
KR20160136066 2016-10-19
KR1020170025673A KR20180043151A (en) 2016-10-19 2017-02-27 Apparatus and Method for Video Encoding or Decoding
KR10-2017-0025673 2017-02-27
CN201780064071.XA CN109845258B (en) 2016-10-19 2017-10-17 Apparatus and method for encoding or decoding image
PCT/KR2017/011484 WO2018074825A1 (en) 2016-10-19 2017-10-17 Device and method for encoding or decoding image

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201780064071.XA Division CN109845258B (en) 2016-10-19 2017-10-17 Apparatus and method for encoding or decoding image

Publications (1)

Publication Number Publication Date
CN116567208A true CN116567208A (en) 2023-08-08

Family

ID=62019191

Family Applications (4)

Application Number Title Priority Date Filing Date
CN202310713793.0A Pending CN116567209A (en) 2016-10-19 2017-10-17 Video encoding/decoding device and method, and non-transitory recording medium
CN202310710814.3A Pending CN116567208A (en) 2016-10-19 2017-10-17 Video encoding/decoding device and method, and non-transitory recording medium
CN202310713813.4A Pending CN116567211A (en) 2016-10-19 2017-10-17 Video encoding/decoding device and method, and non-transitory recording medium
CN202310713804.5A Pending CN116567210A (en) 2016-10-19 2017-10-17 Video encoding/decoding device and method, and non-transitory recording medium

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202310713793.0A Pending CN116567209A (en) 2016-10-19 2017-10-17 Video encoding/decoding device and method, and non-transitory recording medium

Family Applications After (2)

Application Number Title Priority Date Filing Date
CN202310713813.4A Pending CN116567211A (en) 2016-10-19 2017-10-17 Video encoding/decoding device and method, and non-transitory recording medium
CN202310713804.5A Pending CN116567210A (en) 2016-10-19 2017-10-17 Video encoding/decoding device and method, and non-transitory recording medium

Country Status (3)

Country Link
KR (2) KR20240161053A (en)
CN (4) CN116567209A (en)
WO (1) WO2018074825A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102494697B1 (en) 2018-12-21 2023-02-06 삼성전자주식회사 Image encoding apparatus and image decoding apparatus using triangle prediction mode, and image encoding method and image decoding method thereby
WO2022197137A1 (en) * 2021-03-19 2022-09-22 현대자동차주식회사 Video coding method and apparatus using motion vector having adaptive spatial resolution for each component

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100128223A1 (en) * 2007-01-03 2010-05-27 Eytan Blumenthal Method, algorithm and device for testing visual acuity
WO2011021911A2 (en) * 2009-08-21 2011-02-24 에스케이텔레콤 주식회사 Method and apparatus for encoding/decoding images using adaptive motion vector resolution
US8175159B2 (en) * 2002-01-24 2012-05-08 Hitachi, Ltd. Moving picture signal coding method, decoding method, coding apparatus, and decoding apparatus
US20120207220A1 (en) * 2009-08-21 2012-08-16 Sk Telecom Co., Ltd. Method and apparatus for encoding/decoding images using adaptive motion vector resolution
US20120314771A1 (en) * 2009-08-21 2012-12-13 Sk Telecom Co., Ltd. Method and apparatus for interpolating reference picture and method and apparatus for encoding/decoding image using same
US20130182760A1 (en) * 2010-09-30 2013-07-18 Panasonic Corporation Image decoding method, image coding method, image decoding apparatus, image coding apparatus, program, and integrated circuit

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100704626B1 (en) * 2005-02-07 2007-04-09 삼성전자주식회사 Method and device for compressing multi-layer based motion vectors
WO2011021913A2 (en) * 2009-08-21 2011-02-24 에스케이텔레콤 주식회사 Method and apparatus for encoding/decoding motion vector considering accuracy of differential motion vector and apparatus and method for processing images therefor
KR101418104B1 (en) * 2010-03-08 2014-07-16 에스케이 텔레콤주식회사 Motion Vector Coding Method and Apparatus by Using Motion Vector Resolution Combination and Video Coding Method and Apparatus Using Same
KR101479130B1 (en) * 2010-10-18 2015-01-07 에스케이 텔레콤주식회사 Differential Motion Vector Coding/Decoding Apperatus and Method, and Video Coding/Decoding Apperatus and Method using the Same
KR101377529B1 (en) * 2011-01-07 2014-04-10 에스케이텔레콤 주식회사 Video Coding and Decoding Method and Apparatus Using Adaptive Motion Vector Coding/Encoding
US10536701B2 (en) * 2011-07-01 2020-01-14 Qualcomm Incorporated Video coding using adaptive motion vector resolution
US9503720B2 (en) * 2012-03-16 2016-11-22 Qualcomm Incorporated Motion vector coding and bi-prediction in HEVC and its extensions
WO2014120368A1 (en) * 2013-01-30 2014-08-07 Intel Corporation Content adaptive entropy coding for next generation video
US10531116B2 (en) * 2014-01-09 2020-01-07 Qualcomm Incorporated Adaptive motion vector resolution signaling for video coding
CN105874789B (en) * 2014-01-29 2019-10-29 联发科技股份有限公司 Method for utilizing adaptive motion vector precision

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8175159B2 (en) * 2002-01-24 2012-05-08 Hitachi, Ltd. Moving picture signal coding method, decoding method, coding apparatus, and decoding apparatus
US20100128223A1 (en) * 2007-01-03 2010-05-27 Eytan Blumenthal Method, algorithm and device for testing visual acuity
WO2011021911A2 (en) * 2009-08-21 2011-02-24 에스케이텔레콤 주식회사 Method and apparatus for encoding/decoding images using adaptive motion vector resolution
US20120207220A1 (en) * 2009-08-21 2012-08-16 Sk Telecom Co., Ltd. Method and apparatus for encoding/decoding images using adaptive motion vector resolution
US20120314771A1 (en) * 2009-08-21 2012-12-13 Sk Telecom Co., Ltd. Method and apparatus for interpolating reference picture and method and apparatus for encoding/decoding image using same
US20130182760A1 (en) * 2010-09-30 2013-07-18 Panasonic Corporation Image decoding method, image coding method, image decoding apparatus, image coding apparatus, program, and integrated circuit

Also Published As

Publication number Publication date
KR20240161053A (en) 2024-11-12
CN116567211A (en) 2023-08-08
CN116567210A (en) 2023-08-08
KR20240161939A (en) 2024-11-13
WO2018074825A1 (en) 2018-04-26
CN116567209A (en) 2023-08-08

Similar Documents

Publication Publication Date Title
CN109845258B (en) Apparatus and method for encoding or decoding image
JP2023025001A (en) Effective prediction using partition coding
EP2777286B1 (en) Effective wedgelet partition coding
KR102618414B1 (en) Method and Apparatus for Encoding and Decoding Motion Vector
EP3468184B1 (en) Effective wedgelet partition coding using prediction
CN107529063B (en) Encoding method, encoding device, decoding method, and decoding device
TWI853402B (en) Video coding methods and apparatuses
US11671584B2 (en) Inter-prediction method and video decoding apparatus using the same
KR101924088B1 (en) Apparatus and method for video encoding and decoding using adaptive prediction block filtering
US20230396777A1 (en) On boundary padding samples generation in image/video coding
WO2023208131A1 (en) Efficient geometric partitioning mode video coding
KR20240161053A (en) Apparatus and Method for Video Encoding or Decoding
US12323585B2 (en) Inter-prediction method and video decoding apparatus using the same
KR102918360B1 (en) Method for reconstructing chroma block and apparatus using the same
CN117461312A (en) A video encoding and decoding method and device
WO2024146511A1 (en) Representative prediction mode of a block of pixels
HK1202201B (en) Effective wedgelet partition coding

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination