Sub-pixel motion vector correction for chroma based on scaling ratio and chroma sampling type

By using chroma phase shift to adjust motion vectors in video encoding and decoding technology, the encoding and decoding accuracy problems caused by different resolutions or chroma sampling types of the current picture and the reference picture are solved, and the accuracy and quality of video data processing are improved.

CN114342385BActive Publication Date: 2024-09-24QUALCOMM INC
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202080062677.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-09-10
Filing Date
2020-09-11
Publication Date
2024-09-24
Estimated Expiration
2040-09-11

AI Technical Summary

Technical Problem

When existing video encoding and decoding technology processes the current picture and the reference picture with different resolutions or chroma sampling types, the position indicated by the motion vector is inaccurate, resulting in a decrease in encoding and decoding efficiency and picture quality.

Method used

By adjusting the components of the motion vector based on the chroma phase shift in the horizontal and vertical directions to match the chroma position of the reference picture, and generating chroma samples of the prediction block based on the adjusted position, the accuracy of the encoding and decoding process is ensured.

Benefits of technology

It effectively avoids encoding and decoding problems caused by differences in resolution and chroma sampling types, and improves the processing accuracy and quality of video data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114342385B_ABST
    Figure CN114342385B_ABST
Patent Text Reader

Abstract

A device is configured to modify a horizontal component of a chroma position pointed to by a motion vector of a current block of a current picture based on a chroma phase shift in a horizontal direction. The chroma position is located in a reference picture having a different resolution or a different chroma sampling type than the current picture. The device can modify the vertical component of the chroma position based on the chroma phase shift in a vertical direction. In addition, the device can be generated based on chroma samples of the reference picture corresponding to the modified chroma position chroma samples of a prediction block for the current block of the current picture. The modified chroma position is defined by the modified horizontal component and vertical component of the chroma position. The device can encode and decode the current block based on the prediction block for the current block.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to U.S. Patent Application No. 17 / 017,278, filed on September 10, 2020, which claims the benefit of U.S. Provisional Patent Application No. 62 / 902,271, filed on September 18, 2019, the entire contents of which are incorporated herein by reference. Technical Field

[0003] The present disclosure relates to video encoding and video decoding. Background Art

[0004] Digital video capabilities can be incorporated into a wide range of devices, including digital televisions, digital direct broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, e-book readers, digital cameras, digital recording devices, digital media players, video game devices, video game consoles, cellular or satellite radio telephones (so-called "smart phones"), video teleconferencing equipment, video streaming equipment, etc. Digital video devices implement video codec technologies, such as those described in the standards defined by MPEG-2, MPEG-4, ITU-T H.263, ITU-T H.264 / MPEG-4 Part 10, Advanced Video Codec (AVC), ITU-T H.265 / High Efficiency Video Codec (HEVC), and extensions of such standards. By implementing such video codec technologies, video devices can more efficiently send, receive, encode, decode, and / or store digital video information.

[0005] Video coding techniques include spatial (intra-picture) prediction and / or temporal (inter-picture) prediction to reduce or eliminate redundancy inherent in video sequences. For block-based video coding, a video slice (e.g., a video picture or a portion of a video picture) may be partitioned into video blocks, which may also be referred to as codec tree units (CTUs), codec units (CUs), and / or codec nodes. Video blocks in an intra-coded (I) slice of a picture are encoded using spatial prediction for reference samples in neighboring blocks in the same picture. Video blocks in an inter-coded (P or B) slice of a picture may use spatial prediction for reference samples in neighboring blocks in the same picture, or temporal prediction for reference samples in other reference pictures. Pictures may be referred to as frames, and reference pictures may be referred to as reference frames. Summary of the invention

[0006] In general, the present disclosure describes techniques for determining motion vectors for use with reference picture resampling. As described herein, a video codec (such as a video encoder or a video decoder) may perform inter-frame prediction to generate a prediction block for a current block of a current picture. The video codec may use samples of a reference picture to generate the prediction block. However, the reference picture may have a different resolution or chroma sampling type than the current picture. Due to the difference in resolution or chroma phase shift, the video codec may adjust the motion vector (or the position indicated by the motion vector) of the current block to indicate the correct position in the reference picture.

[0007] In one example, the present disclosure describes a method for encoding and decoding video data, the method comprising: modifying a horizontal component of a chroma position pointed to by a motion vector of a current block of a current picture of the video data based on a chroma phase shift in a horizontal direction, wherein the chroma position is located in a reference picture having a different resolution or a different chroma sampling type than the current picture; modifying a vertical component of the chroma position based on a chroma phase shift in a vertical direction; generating chroma samples of a prediction block for the current block based on chroma samples of the reference picture corresponding to the modified chroma position, wherein the modified chroma position is defined by the modified horizontal component and vertical component of the chroma position; and encoding and decoding the current block based on the prediction block for the current block.

[0008] In another example, the present disclosure describes an apparatus for encoding and decoding video data, comprising: a memory configured to store the video data; and one or more processors implemented in a circuit, the one or more processors configured to: modify a horizontal component of a chroma position pointed to by a motion vector of a current block of a current picture of the video data based on a chroma phase shift in a horizontal direction, wherein the chroma position is located in a reference picture, wherein the chroma position is located in a reference picture having a different resolution or a different chroma sampling type than the current picture; modify a vertical component of the chroma position based on a chroma phase shift in a vertical direction; generate chroma samples of a prediction block for the current block based on chroma samples of the reference picture corresponding to the modified chroma position, wherein the modified chroma position is defined by the modified horizontal and vertical components of the chroma position; and encode and decode the current block based on the prediction block for the current block.

[0009] In another example, the present disclosure describes an apparatus for encoding and decoding video data, comprising: a component for modifying a horizontal component of a chroma position pointed to by a motion vector of a current block of a current picture of the video data based on a chroma phase shift in a horizontal direction, wherein the chroma position is located in a reference picture having a different resolution or a different chroma sampling type than the current picture; a component for modifying a vertical component of the chroma position based on a chroma phase shift in a vertical direction; a component for generating chroma samples of a prediction block for the current block based on chroma samples of the reference picture corresponding to the modified chroma position, wherein the modified chroma position is defined by the modified horizontal and vertical components of the chroma position; and a component for encoding and decoding the current block based on the prediction block for the current block.

[0010] In another example, the present disclosure describes a computer-readable storage medium having instructions stored thereon that, when executed, cause one or more processors to: modify a horizontal component of a chroma position of a motion vector for a current block of a current picture of video data based on a chroma phase shift in a horizontal direction, wherein the chroma position is located in a reference picture having a different resolution or a different chroma sampling type than the current picture; modify a vertical component of the motion vector based on a chroma phase shift in a vertical direction; generate chroma samples of a prediction block for a current block of the current picture based on chroma samples of the reference picture corresponding to a position in the reference picture indicated by the motion vector; and encode and decode the current block based on the prediction block for the current block.

[0011] The details of one or more examples are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will be apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 is a block diagram illustrating an example video encoding and decoding system that may perform the techniques of this disclosure.

[0013] Figure 2 is a conceptual diagram illustrating exemplary chroma sampling types.

[0014] Figure 3 is a block diagram illustrating an example video encoder that may perform the techniques of this disclosure.

[0015] Figure 4 is a block diagram illustrating an example video decoder that may perform the techniques of this disclosure.

[0016] Figure 5 is a flow chart illustrating an example method for encoding a current block in accordance with one or more techniques of this disclosure.

[0017] Figure 6 is a flow chart illustrating an example method for decoding a current block of video data, in accordance with one or more techniques of this disclosure.

[0018] Figure 7 is a flow chart illustrating an example method of encoding and decoding video data in accordance with one or more techniques of this disclosure. DETAILED DESCRIPTION

[0019] A video codec (such as a video encoder or a video decoder) can use inter-frame prediction to generate a prediction block for a current block of a current picture. The video codec can use a motion vector of the current block to determine a position in a reference picture. The video codec can then use samples of the reference picture at the position indicated by the motion vector to generate a prediction block. For example, where a motion vector indicates a sub-pixel position (i.e., a position between two samples), the video codec can interpolate samples of the prediction block based on samples of the reference picture. In the case where the video codec is a video encoder, the video encoder can use the prediction block to generate residual data for the current block. The residual data can then be encoded and signaled. In the case where the video codec is a video decoder, the video decoder can reconstruct the current block using the prediction block and the residual data of the current block.

[0020] In some examples, the current picture and the reference picture have different resolutions or different chroma sampling types. For example, the current picture and the reference picture may be encoded and decoded using different chroma formats. For example, in one example, the current picture may be encoded and decoded using a 4:2:2 chroma format, and the reference picture may be encoded and decoded using a 4:2:0 chroma format. Thus, in this example, the current picture has twice as many chroma samples in the vertical direction as the reference picture. This difference in chroma phase shift may cause the motion vector to indicate an inaccurate position within the reference picture.

[0021] In addition, in a picture encoded and decoded in a 4:2:0 chroma format, there are different chroma sampling types. In a 4:2:0 chroma format, chroma samples are downsampled 2:1 in the horizontal and vertical directions relative to luma samples. Different chroma sampling types correspond to different positions of chroma samples relative to luma samples. This difference in chroma sample type between the current picture and the reference picture is not taken into account, and may reduce encoding and decoding efficiency and may reduce picture quality. Therefore, the current picture and the reference picture may have different resolutions or chroma sampling types.

[0022] The present disclosure describes techniques that can solve these problems. For example, in one example, a video codec (e.g., a video encoder or a video decoder) can modify the horizontal component of the chroma position pointed to by the motion vector of the current block of the current picture based on the chroma phase shift in the horizontal direction. The chroma position is located in a reference picture with a different resolution or a different chroma sampling type than the current picture. In addition, the video codec can modify the vertical component of the motion vector based on the chroma phase shift in the vertical direction. The video codec can generate chroma samples of a prediction block of the current block based on the chroma samples of the reference picture corresponding to the modified chroma position. The modified chroma position is defined by the modified horizontal component and vertical component of the chroma position. The video codec can encode (e.g., encode or decode) the current block based on the prediction block for the current block. By modifying the horizontal component and the vertical component of the chroma position in this way, the video codec can avoid problems that may occur when the current picture and the reference picture have different resolutions or chroma sampling types.

[0023] Figure 1 1 is a block diagram illustrating an exemplary video encoding and decoding system 100 that can perform the techniques of the present disclosure. The techniques of the present disclosure generally relate to encoding and decoding (encoding and / or decoding) video data. Generally, video data includes any data used to process video. Therefore, video data can include original, unencoded video, encoded video, decoded (e.g., reconstructed) video, and video metadata, such as signaling notification data.

[0024] like Figure 1 As shown, in this example, system 100 includes a source device 102 that provides encoded video data to be decoded and displayed by a destination device 116. In particular, source device 102 provides the video data to destination device 116 via computer-readable medium 110. Source device 102 and destination device 116 may include any of a wide range of devices, including desktop computers, mobile devices (e.g., notebook (i.e., laptop) computers, tablet computers, telephone handsets such as smart phones, televisions, cameras, etc.) broadcast receiver devices, set-top boxes, display devices, digital media players, video game consoles, video streaming devices, etc. In some cases, source device 102 and destination device 116 may be equipped for wireless communication, and thus may be referred to as wireless communication devices.

[0025] exist Figure 1In the example of , source device 102 includes video source 104, memory 106, video encoder 200 and output interface 108. Destination device 116 includes input interface 122, video decoder 300, memory 120 and display device 118. According to the present disclosure, the video encoder 200 of source device 102 and the video decoder 300 of destination device 116 can be configured to apply a technique for determining a motion vector for use with reference picture resampling. Therefore, source device 102 represents an example of a video encoding device, and destination device 116 represents an example of a video decoding device. In other examples, the source device and the destination device may include other components or arrangements. For example, source device 102 may receive video data from an external video source such as an external camera. Similarly, destination device 116 may interface with an external display device instead of including an integrated display device.

[0026] like Figure 1 The system 100 shown is only one example. In general, any digital video encoding and / or decoding device can perform techniques for determining motion vectors used with reference picture resampling. The source device 102 and the destination device 116 are only examples of such codec devices, where the source device 102 generates coded video data for transmission to the destination device 116. The present disclosure refers to a "codec" device as a device that performs coding (coding and / or decoding) of data. Therefore, the video encoder 200 and the video decoder 300 represent examples of codec devices, specifically, a video codec and a video decoder, respectively. In some examples, the source device 102 and the destination device 116 can operate in a substantially symmetrical manner, so that each of the source device 102 and the destination device 116 includes a video encoding and decoding component. Therefore, the system 100 can support one-way or two-way video transmission between the source device 102 and the destination device 116, for example, for video streaming, video playback, video broadcasting, or video telephony.

[0027] Typically, video source 104 represents the source of video data (i.e., original, unencoded video data), and provides a continuous series of pictures (also referred to as "frames") of video data to video encoder 200, which encodes the data of the pictures. Video source 104 of source device 102 may include a video capture device, such as a video camera, a video archive containing previously captured original video, and / or a video feed interface receiving video from a video content provider. As a further alternative, video source 104 may generate computer graphics-based data as source video, or a combination of live video, archived video, and computer-generated video. In each case, video encoder 200 encodes captured, pre-captured, or computer-generated video data. Video encoder 200 may rearrange pictures from the order received (sometimes referred to as "display order") into a codec order for encoding. Video encoder 200 may generate a bitstream comprising encoded video data. Source device 102 may then output the encoded video data via output interface 108 onto computer-readable medium 110 for receipt and / or retrieval by, for example, input interface 122 of destination device 116 .

[0028] The memory 106 of the source device 102 and the memory 120 of the destination device 116 represent general purpose memories. In some examples, the memories 106, 120 can store original video data (e.g., original video from the video source 104) and original, decoded video data from the video decoder 300. Additionally or alternatively, the memories 106, 120 can store software instructions that can be executed by, for example, the video encoder 200 and the video decoder 300, respectively. Although in this example, the memory 106 and the memory 120 are shown separately from the video encoder 200 and the video decoder 300, it should be understood that the video encoder 200 and the video decoder 300 can also include internal memories for functionally similar or equivalent purposes. In addition, the memories 106, 120 can store, for example, encoded video data output from the video encoder 200 and input to the video decoder 300. In some examples, portions of the memories 106, 120 can be allocated as one or more video buffers, for example, to store original, decoded and / or encoded video data.

[0029] The computer-readable medium 110 may represent any type of medium or device capable of transmitting the encoded video data from the source device 102 to the destination device 116. In one example, the computer-readable medium 110 represents a communication medium so that the source device 102 can send the encoded video data to the destination device 116 in real time, for example, via a radio frequency network or a computer-based network. According to a communication standard, such as a wireless communication protocol, the output interface 108 can modulate a transmission signal including the encoded video data, and the input interface 122 can demodulate the received transmission signal. The communication medium may include any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form part of a packet-based network such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include a router, a switch, a base station, or any other equipment that helps facilitate communication from the source device 102 to the destination device 116.

[0030] In some examples, computer-readable medium 110 may include storage device 112. Source device 102 may output the encoded data from output interface 108 to storage device 112. Similarly, destination device 116 may access the encoded data from storage device 112 via input interface 122. Storage device 112 may include any of a variety of distributed or locally accessed data storage media, such as a hard disk, Blu-ray disc, DVD, CD-ROM, flash memory, volatile or non-volatile memory, or any other suitable digital storage medium for storing encoded video data.

[0031] In some examples, the computer-readable medium 110 may include a file server 114 or another intermediate storage device that may store the encoded video data generated by the source device 102. The source 102 may output the encoded video data to the file server 114 or another intermediate storage device that may store the encoded video generated by the source device 102. The destination device 116 may access the stored video data from the file server 114 via streaming or downloading. The file server 114 may be any type of server device that can store the encoded video data and send the encoded video data to the destination device 116. The file server 114 may represent a web server (e.g., for a website), a file transfer protocol (FTP) server, a content delivery network device, or a network attached storage (NAS) device. The destination device 116 may access the encoded video data from the file server 114 via any standard data connection, including an Internet connection. This may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., a digital subscriber line (DSL), a cable modem, etc.), or a combination of the two, which are suitable for accessing the encoded video data stored on the file server 114. The file server 114 and the input interface 122 may be configured to operate according to a streaming transfer protocol, a download transfer protocol, or a combination thereof.

[0032] Output interface 108 and input interface 122 may represent wireless transmitters / receivers, modems, wired network components (e.g., Ethernet cards), wireless communication components that operate according to any of the various IEEE 802.11 standards, or other physical components. In examples where output interface 108 and input interface 122 include wireless components, output interface 108 and input interface 122 may be configured to transmit data, such as encoded video data, according to a cellular communication standard such as 4G, 4G-LTE (Long Term Evolution), LTE Advanced, 5G, etc. In some examples where output interface 108 includes a wireless transmitter, output interface 108 and input interface 122 may be configured to transmit data, such as encoded video data, according to other wireless standards, such as the IEEE 802.11 specification, the IEEE 802.15 specification (e.g., ZigBee TM ),Bluetooth TM The source device 102 and / or the destination device 116 may include a corresponding system-on-chip (SoC) device. For example, the source device 102 may include a SoC device that performs functions belonging to the video encoder 200 and / or the output interface 108, and the destination device 116 may include a SoC device that performs functions belonging to the video decoder 300 and / or the input interface 122.

[0033] The techniques disclosed herein can be applied to video encoding and decoding to support any of a variety of multimedia applications, such as over-the-air television broadcasting, cable television transmission, satellite television transmission, Internet streaming video transmission (such as Dynamic Adaptive Streaming over HTTP (DASH)), digital video encoded onto a data storage medium, decoding of digital video stored on a data storage medium, or other applications.

[0034] The input interface 122 of the destination device 116 receives the encoded video bitstream from the computer-readable medium 110 (e.g., a communication medium, a storage device 112, a file server 114, etc.). The encoded video bitstream may include signaling information defined by the video encoder 200, such as syntax elements with values ​​describing characteristics and / or processing of video blocks or other coded units (e.g., slices, pictures, groups of pictures, sequences, etc.), which is also used by the video decoder 300. The display device 118 displays decoded pictures of the decoded video data to a user. The display device 118 may represent any of a variety of display devices, such as a cathode ray tube (CRT), a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or another type of display device.

[0035] Although not in Figure 1 , but in some examples, the video encoder 200 and the video decoder 300 can each be integrated with an audio encoder and / or an audio decoder, and can include appropriate MUX-DEMUX units or other hardware and / or software to process multiplexed streams including audio and video in a common data stream. If applicable, the MUX-DEMUX unit can comply with the ITU H.223 multiplexer protocol, or other protocols such as the User Datagram Protocol (UDP).

[0036] The video encoder 200 and the video decoder 300 can each be described as any of a variety of suitable encoder and / or decoder circuits, such as one or more microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), discrete logic, software, hardware, firmware, or any combination thereof. When the technology is partially implemented in software, the device can store instructions for the software in a suitable non-temporary computer-readable medium and use one or more processors to execute the instructions in hardware to perform the technology of the present disclosure. Each of the video encoder 200 and the video decoder 300 can be included in one or more encoders or decoders, any of which can be integrated as part of a combined encoder / decoder (codec (CODEC)) in a corresponding device. The device including the video encoder 200 and / or the video decoder 300 may include an integrated circuit, a microprocessor, and / or a wireless communication device, such as a cellular phone.

[0037] The video encoder 200 and the video decoder 300 may operate according to a video codec standard such as ITU-T H.265, also known as High Efficiency Video Codec (HEVC), or an extension thereof such as a multi-view and / or scalable video codec extension. Alternatively, the video encoder 200 and the video decoder 300 may operate according to other proprietary or industry standards such as ITU-T H.266, also known as Versatile Video Codec (VVC). The latest draft of the VVC standard is described in: Bross et al., "Versatile Video Coding (Draft 6)", Joint Video Coding Group (JVET) of ITU-T SG 16WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 15th Meeting: Gothenburg, SE, July 3-12, 2019, JVET-O2001-vE (hereinafter referred to as "VVC Draft 6"). The test model for VVC draft 6 is described in: Chen et al., "Algorithm Description for Versatile Video Coding and TestModel 6", Joint Video Coding Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 15th Meeting: Gothenburg, SE, July 3-12, 2019, JVET-O2001-vE (hereinafter referred to as "VTM-6"). However, the technology of the present disclosure is not limited to any particular codec standard.

[0038] Typically, the video encoder 200 and the video decoder 300 can perform block-based encoding and decoding of pictures. The term "block" generally refers to a structure that includes data to be processed (e.g., encoded, decoded, or otherwise used in an encoding process and / or decoding process). For example, a block may include a two-dimensional matrix of samples of luminance and / or chrominance data. Typically, the video encoder 200 and the video decoder 300 can encode and decode video data represented in a YUV (e.g., Y, Cb, Cr) format. That is, the video encoder 200 and the video decoder 300 can encode and decode luminance and chrominance components instead of encoding and decoding red, green, and blue (RGB) data for samples of a picture, where the chrominance components may include both red-toned and blue-toned chrominance components. In some examples, the video encoder 200 converts the received RGB formatted data into a YUV representation before encoding, and the video decoder 300 converts the YUV representation into an RGB format. Alternatively, a pre-processing and post-processing unit (not shown) may perform these conversions.

[0039] The present disclosure may generally relate to the encoding and decoding of pictures (e.g., encoding and decoding) to include the process of encoding or decoding the data of a picture. Similarly, the present disclosure may relate to the encoding and decoding of blocks of pictures to include the process of encoding or decoding the data of the blocks, for example, prediction and / or residual encoding and decoding. The encoded video bitstream generally includes a series of values ​​of syntax elements representing codec decisions (e.g., codec mode) and the partitioning of the picture into blocks. Therefore, references to codec pictures or blocks should generally be understood as codec values ​​of syntax elements used to form pictures or blocks.

[0040] HEVC defines various blocks, including codec units (CUs), prediction units (PUs), and transform units (TUs). According to HEVC, a video codec (such as the video encoder 200) partitions a codec tree unit (CTU) into CUs according to a quadtree structure. That is, the video codec partitions the CTU and CU into four equal, non-overlapping squares, and each node of the quadtree has zero or four child nodes. A node without child nodes may be referred to as a "leaf node", and the CU of this leaf node may include one or more PUs and / or one or more TUs. The video codec may also partition PUs and TUs. For example, in HEVC, a residual quadtree (RQT) represents the partitioning of a TU. In HEVC, a PU represents inter-frame prediction data, and a TU represents residual data. An intra-predicted CU includes intra-frame prediction information, such as an intra-frame mode indication.

[0041] As another example, the video encoder 200 and the video decoder 300 may be configured to operate according to VVC. According to VVC, a video codec (such as the video encoder 200) partitions a picture into a plurality of codec tree units (CTUs). The video encoder 200 may partition the CTU according to a tree structure, such as a quadtree-binary tree (QTBT) structure or a multi-type tree (MTT) structure. The QTBT structure eliminates the concept of multiple partition types, such as the distinction between CU, PU, ​​and TU of HEVC. The QTBT structure includes two layers: a first layer partitioned according to quadtree partitioning and a second layer partitioned according to binary tree partitioning. The root node of the QTBT structure corresponds to the CTU. The leaf nodes of the binary tree correspond to codec units (CUs).

[0042] In the MTT partitioning structure, blocks can be partitioned using quadtree (QT) partitioning, binary tree (BT) partitioning, and one or more types of ternary tree (TT) (also known as ternary tree (TT)) partitioning. A ternary tree or ternary tree partitioning is a partitioning that divides a block into three sub-blocks. In some examples, the ternary tree or ternary tree partitioning divides the block into three sub-blocks without dividing the original block by the center. The partitioning types in MTT (e.g., QT, BT, and TT) can be symmetric or asymmetric.

[0043] In some examples, the video encoder 200 and the video decoder 300 may use a single QTBT or MTT structure to represent each of the luma component and the chroma components, while in other examples, the video encoder 200 and the video decoder 300 may use two or more QTBT or MTT structures, such as one QTBT / MTT structure for the luma component and another QTBT / MTT structure for the two chroma components (or two QTBT / MTT structures for corresponding chroma components).

[0044] The video encoder 200 and the video decoder 300 may be configured to use per-HEVC quadtree segmentation, QTBT segmentation, or MTT segmentation or other segmentation structures. For purposes of explanation, the description of the disclosed techniques is presented with respect to QTBT segmentation. However, it should be understood that the disclosed techniques may also be applied to video codecs configured to use quadtree segmentation or other types of segmentation.

[0045] Blocks (e.g., CTUs or CUs) may be grouped in a picture in various ways. As an example, a brick may refer to a rectangular area of ​​a CTU row within a particular tile in a picture. A slice may be a rectangular area of ​​a CTU within a particular slice column and a particular slice row in a picture. A slice column refers to a rectangular area of ​​a CTU whose height is equal to the picture height and whose width is specified by a syntax element (e.g., in a picture parameter set). A slice row refers to a rectangular area of ​​a CTU whose height is specified by a syntax element (e.g., in a picture parameter set) and whose width is equal to the picture width.

[0046] In some examples, a slice may be partitioned into multiple bricks, each of which may include one or more CTU rows within the slice. A slice that is not partitioned into multiple bricks may also be referred to as a brick. However, a brick that is a true subset of a slice may not be referred to as a slice.

[0047] Tiles in a picture can also be arranged into slices. A slice can be an integer number of picture tiles that can be contained exclusively in a single network abstraction layer (NAL) unit. In some examples, a slice includes a continuous sequence of complete tiles of multiple complete slices or only one slice.

[0048] This disclosure may use "N×N" and "N by N" interchangeably to refer to the sample dimensions of a block (such as a CU or other video block) in the vertical and horizontal dimensions, for example, 16×16 samples or 16 by 16 samples. Typically, a 16×16 CU has 16 samples in the vertical direction (y=16) and 16 samples in the horizontal direction (x=16). Similarly, an N×N CU typically has N samples in the vertical direction and N samples in the horizontal direction, where N represents a non-negative integer value. The samples in a CU may be arranged in rows and columns. In addition, a CU does not necessarily have the same number of samples in the horizontal direction as in the vertical direction. For example, a CU may include N×M samples, where M is not necessarily equal to N.

[0049] The video encoder 200 encodes video data for a CU representing prediction and / or residual information and other information. The prediction information indicates how to predict the CU in order to form a prediction block for the CU. The residual information generally represents the sample-by-sample difference between the CU samples before encoding and the prediction block.

[0050] In order to predict a CU, the video encoder 200 can generally form a prediction block for the CU by inter-frame prediction or intra-frame prediction. Inter-frame prediction generally refers to predicting a CU from data of a previously coded picture, while intra-frame prediction generally refers to predicting a CU from previously coded data of the same picture. In order to perform inter-frame prediction, the video encoder 200 can use one or more motion vectors to generate a prediction block. The video encoder 200 can generally perform a motion search to identify a reference block that closely matches the CU, for example, in terms of the difference between the CU and the reference block. The video encoder 200 can use the sum of absolute differences (SAD), the sum of square differences (SSD), the mean absolute difference (MAD), the mean square difference (MSD), or other such difference calculations to calculate a difference metric to determine whether the reference block closely matches the current CU. In some examples, the video encoder 200 can use unidirectional prediction or bidirectional prediction to predict the current CU.

[0051] The motion vector may have sub-pixel precision. In other words, the motion vector may indicate a position in a reference picture that is between two samples of the reference picture in the horizontal and / or vertical directions. The accuracy of the motion vector refers to the accuracy of the position of the motion vector relative to the position in the reference picture. For example, if the motion vector has an accuracy of 16, the motion vector can indicate a sample of the reference picture or one of 15 positions between a sample of the reference picture and the next sample. When performing inter-frame prediction using a motion vector, the video encoder 200 or the video decoder 300 may apply an interpolation filter to the samples of the reference picture to determine the samples of the prediction block corresponding to the position indicated by the motion vector. For example, if the motion vector indicates a vertical halfway position between two samples of the reference picture, the video encoder 200 or the video decoder 300 may apply an interpolation filter that determines the value of the vertical halfway position between the two samples of the reference picture based on at least two samples of the reference picture.

[0052] Some examples of VVC also provide an affine motion compensation mode, which can be considered an inter-prediction mode. In the affine motion compensation mode, the video encoder 200 can determine two or more motion vectors representing non-translational motion, such as enlargement or reduction, rotation, perspective motion, or other irregular motion types.

[0053] To perform intra prediction, the video encoder 200 can select an intra prediction mode to generate a prediction block. Some examples of VVC provide sixty-seven intra prediction modes, including modes for various directions, as well as a planar mode and a DC mode. Typically, the video encoder 200 selects an intra prediction mode that describes neighboring samples of a current block (e.g., a block of a CU) from which to predict the prediction samples of the current block. Assuming that the video encoder 200 encodes and decodes CTUs and CUs in a raster scan order (from left to right, from top to bottom), such samples can typically be above, above to the left, or to the left of the current block in the same picture as the current block.

[0054] The video encoder 200 encodes data representing the prediction mode of the current block. For example, for inter-frame prediction mode, the video encoder 200 can encode data indicating which of various available inter-frame prediction modes is used, and encode motion information for the corresponding mode. For unidirectional or bidirectional inter-frame prediction, for example, the video encoder 200 can encode motion vectors using advanced motion vector prediction (AMVP) or merge mode. The video encoder 200 can use a similar mode to encode motion vectors for affine motion compensation mode.

[0055] After prediction, such as intra-frame prediction or inter-frame prediction of a block, the video encoder 200 can calculate residual data for the block. The residual data (such as a residual block) represents the sample-by-sample difference between the block and the predicted block for the block, which is formed by using the corresponding prediction mode. The video encoder 200 can apply one or more transforms to the residual block to produce transformed data in a transform domain rather than a sample domain. For example, the video encoder 200 can apply a discrete cosine transform (DCT), an integer transform, a wavelet transform, or a conceptually similar transform to the residual video data. Additionally, the video encoder 200 can apply a secondary transform after the first transform, such as a mode-dependent non-separable secondary transform (MDNSST), a signal-dependent transform, a Karhunen-Loeve transform (KLT), etc. The video encoder 200 generates transform coefficients after applying one or more transforms.

[0056] As described above, after any transforms that produce transform coefficients, the video encoder 200 can perform quantization of the transform coefficients. Quantization generally refers to a process in which transform coefficients are quantized to minimize the amount of data used to represent the transform coefficients, thereby providing further compression. By performing the quantization process, the video encoder 200 can reduce the bit depth associated with some or all of the transform coefficients. For example, the video encoder 200 can round down an n-bit value to an m-bit value during quantization, where n is greater than m. In some examples, to perform quantization, the video encoder 200 can perform a bit-by-bit right shift of the value to be quantized.

[0057] After quantization, the video encoder 200 can scan the transform coefficients to generate a one-dimensional vector from a two-dimensional matrix including the quantized transform coefficients. The scan can be designed to place the higher energy (and therefore lower frequency) transform coefficients in front of the vector and the lower energy (and therefore higher frequency) transform coefficients in the back of the vector. In some examples, the video encoder 200 can scan the quantized transform coefficients using a predetermined scanning order to generate a serialized vector, and then, entropy encode the quantized transform coefficients of the vector. In other examples, the video encoder 200 can perform adaptive scanning. After scanning the quantized transform coefficients to form a one-dimensional vector, the video encoder 200 can entropy encode the one-dimensional vector, for example, according to context adaptive binary arithmetic coding (CABAC). The video encoder 200 can also entropy encode the values ​​of the syntax elements used to describe the metadata associated with the encoded video data for use by the video decoder 300 when decoding the video data.

[0058] To perform CABAC, the video encoder 200 may assign context within a context model to a symbol to be transmitted. The context may relate to, for example, whether neighboring values ​​of the symbol are zero values. The probability determination may be based on the context assigned to the symbol.

[0059] The video encoder 200 may further generate syntax data, such as block-based syntax data, picture-based syntax data, and sequence-based syntax data. The video decoder 300 may likewise decode this syntax data to determine how to decode the corresponding video data.

[0060] In this way, the video encoder 200 can generate a bitstream that includes coded video data, such as syntax elements describing the partitioning of a picture into blocks (e.g., CUs) and prediction and / or residual information for the blocks. Finally, the video decoder 300 can receive the bitstream and decode the coded video data.

[0061] In general, the video decoder 300 performs a process that is the reverse of the process performed by the video encoder 200 to decode the encoded video data of the bitstream. For example, the video decoder 300 may decode the values ​​of the syntax elements of the bitstream using CABAC in a manner substantially similar to but reverse to the CABAC encoding process of the video encoder 200. The syntax elements may define partitioning information for partitioning a picture into CTUs and partitioning each CTU according to a corresponding partitioning structure such as a QTBT structure to define CUs of the CTU. The syntax elements may also define prediction and residual information for a block (e.g., a CU) of video data.

[0062] The residual information may be represented by, for example, quantized transform coefficients. The video decoder 300 may inverse quantize and inverse transform the quantized transform coefficients of the block to reproduce a residual block for the block. The video decoder 300 uses the signaled prediction mode (intra-frame prediction or inter-frame prediction) and related prediction information (e.g., motion information for inter-frame prediction) to form a prediction block for the block. The video decoder 300 may then combine the prediction block and the residual block (on a sample-by-sample basis) to reproduce the original block. The video decoder 300 may perform additional processing, such as performing a deblocking process to reduce visual artifacts along the boundaries of the blocks.

[0063] The bitstream may include a sequence of network abstraction layer (NAL) units. A NAL unit is a grammatical structure of bytes containing an indication of the type of data in the NAL unit and a raw byte sequence payload (RBSP) in the form of a need to be interspersed with emulation prevention bits, containing data. Each NAL unit may include a NAL unit header and may encapsulate an RBSP. The NAL unit header may include a grammatical element indicating a NAL unit type code. The NAL unit type code specified by the NAL unit header of the NAL unit indicates the type of the NAL unit. The RBSP may be a grammatical structure containing an integer number of bytes encapsulated in the NAL unit. In some cases, the RBSP includes zero bits.

[0064] As described above, a bitstream may include representations of coded pictures of video data and associated data. The associated data may include parameter sets. NAL units may encapsulate RBSPs for video parameter sets (VPS), sequence parameter sets (SPS), and picture parameter sets (PPS). VPS is a syntax structure including syntax elements applied to zero or more complete coded video sequences (CVS). SPS is also a syntax structure including syntax elements applied to zero or more entire CVSs. SPS may include syntax elements that identify a VPS that is active when the SPS is active. Therefore, the syntax elements of VPS may generally be more applicable than the syntax elements of SPS. PPS is a syntax structure including syntax elements applied to zero or more coded pictures. PPS may include syntax elements that identify an SPS that is active when the PPS is active. The slice header of a slice may include syntax elements indicating a PPS that is active when the slice is coded.

[0065] Figure 2 is a conceptual diagram illustrating exemplary chroma sample location types for a 4:2:0 chroma format. A picture may be divided into a top field and a bottom field. The top field and the bottom field may correspond to alternating rows of luma samples. Figure 2As shown in the example of , when a picture is encoded using the 4:2:0 chroma format, there may be six different types of chroma sample arrangements 150 for each field. Although the reference field codec explains Figure 2 , but chroma types can be used in frame codecs. In an example using frame codecs, each luma sample of a frame (picture) can be considered to belong to the top field, and chroma types 0 to 3 can be used.

[0066] Specifically, in Figure 2 In an example of , when a picture is encoded using the 4:2:0 chroma format and type 0 chroma samples, every other luma sample position in a row of upper field luma sample positions corresponds to a chroma sample, and the chroma samples are horizontally aligned with the upper field luma sample positions and vertically aligned halfway between the row of upper field luma sample positions and a row of lower field luma sample positions below the row of upper field luma sample positions. When a picture is encoded using the 4:2:0 chroma format and type 0 chroma samples, every other luma sample position in a row of lower field luma sample positions corresponds to a chroma sample, and the chroma samples are horizontally aligned with the lower field luma sample positions and vertically aligned halfway between the row of lower field luma sample positions and a row of upper field luma sample positions above the row of lower field luma sample positions.

[0067] When a picture is encoded using the 4:2:0 chroma format and type 1 chroma samples, every other luma sample position in a row of upper field luma sample positions corresponds to a chroma sample, and the chroma samples are horizontally aligned between the upper field luma sample positions and vertically aligned between the row of upper field luma sample positions and the row of lower field luma sample positions below the row of upper field luma sample positions. When a picture is encoded using the 4:2:0 chroma format and type 0 chroma samples, every other luma sample position in a row of lower field luma sample positions corresponds to a chroma sample, and the chroma samples are horizontally aligned between the lower field luma sample positions and vertically aligned to the middle between the row of lower field luma sample positions and the row of upper field luma sample positions above the row of lower field luma sample positions.

[0068] When a picture is encoded using the 4:2:0 chroma format and type 2 chroma sampling, every other luma sample position in a row of upper field luma sample positions corresponds to a chroma sample, and the chroma sample is directly aligned with the upper field luma sample positions in the row of upper field luma sample positions. When a picture is encoded using the 4:2:0 chroma format and type 2 chroma sampling, every other luma sample position in a row of lower field luma sample positions corresponds to a chroma sample, and the chroma sample is directly aligned with the upper field luma sample positions in the row of upper field luma sample positions above the row of lower field luma sample positions.

[0069] When a picture is encoded using the 4:2:0 chroma format and type 3 chroma samples, every other luma sample in a row of upper field luma sample positions corresponds to a chroma sample that is vertically aligned with the row of upper field luma sample positions and halfway between the upper field luma sample positions. When a picture is encoded using the 4:2:0 chroma format and type 3 chroma samples, every other luma sample in a row of lower field luma sample positions corresponds to a chroma sample that is vertically aligned with the row of upper field luma sample positions above the row of lower field luma sample positions and horizontally aligned halfway between the lower field luma sample positions.

[0070] When a picture is encoded using the 4:2:0 chroma format and type 4 chroma samples, every other luma sample in a row of upper field luma sample positions corresponds to a chroma sample, and the chroma samples are aligned with the lower field luma sample positions below the corresponding upper field luma sample positions. When a picture is encoded using the 4:2:0 chroma format and type 4 chroma samples, every other luma sample in a row of lower field luma sample positions corresponds to a chroma sample, and the chroma samples are aligned with the corresponding lower field luma sample positions.

[0071] When a picture is encoded using the 4:2:0 chroma format and type 5 chroma samples, every other luma sample in a row of upper field luma sample positions corresponds to a chroma sample, and the chroma samples are horizontally aligned at the middle position between the upper field luma sample positions and vertically aligned with the row of lower field luma sample positions below the row of upper field luma sample positions. When a picture is encoded using the 4:2:0 chroma format and type 5 chroma samples, every other luma sample in a row of lower field luma sample positions corresponds to a chroma sample, and the chroma samples are horizontally aligned at the middle position between the lower field luma sample positions and vertically aligned with the row of upper field luma sample positions above the row of lower field luma sample positions.

[0072] In an example using frame coding (ie, when there are no top and bottom fields), every other luma sample in a column of luma sample positions corresponds to a chroma sample, and the chroma samples are vertically and horizontally aligned relative to the top field as described above.

[0073] VVC Draft 6 introduces reference picture resampling (RPR). RPR allows the current picture and the reference picture to have different resolutions. Therefore, in motion compensation, the difference in resolution is taken into account during interpolation filtering by adjusting the interpolation filter phase and the reference block start position. In addition, based on the current picture and reference picture width and height and the current picture and reference picture consistency (conformance) window, the scaling ratio is derived for the horizontal and vertical directions. The scaling ratio in the horizontal and vertical directions can be determined based on the output width (PicOutputWidthL) and output height (PicOutputHeightL) of the picture. In the VTM-6 draft specification, PicOutputWidthL and PicOutputHeightL can be derived as follows:

[0074]

[0075] PicOutputHeightL=pic_height_in_luma_samples-SubHeightC*(conf_win_bottom_offset+conf_win_top_offset) (7-44)

[0076] In equation (7-43), pic_width_in_luma_samples is a syntax element in the PPS that indicates the width of each decoded picture that references the PPS in units of luma samples. In equation (7-44), pic_height_in_luma_samples is a syntax element in the PPS that indicates the height of each decoded picture that references the PPS in units of luma samples. In other words, pic_width_in_luma_samples and pic_height_in_luma_samples are the width and height of the picture. SubWidthC represents the subsampling rate in the horizontal direction (e.g., SubWidthC equals 1 means no subsampling in the horizontal direction, SubWidthC equals 2 means every other sample is removed in the horizontal direction, and so on). Similarly, SubHeightC represents the subsampling rate in the vertical direction (e.g., SubHeightC represents no subsamples in the vertical direction, SubWidthC equals 2 means every other sample is removed in the vertical direction, and so on). The syntax elements conf_win_left_offset, conf_win_right_offset, conf_win_top_offset, and conf_win_bottom_offset specify the samples of the picture in the CVS output from the decoding process according to the rectangular area specified in the picture coordinates for output. In other words, conf_win_right_offset, conf_win_left_offset, conf_win_bottom_offset, conf_win_top_offset are the left, right, bottom, and top offsets in the consistency window.

[0077] In VTM-6, the scaling ratios (i.e., the horizontal scaling ratio (hori_scale_fp) and the vertical scaling ratio (vert_scale_fp)) are derived as follows:

[0078] hori_scale_fp=((fRefWidth<<14)+(PicOutputWidthL>>1)) / PicOutputWidthL(8-753)

[0079] vert_scale_fp=((fRefHeight<<14)+(PicOutputHeightL>>1)) / PicOutputHeightL (8-754)

[0080] The variable fRefWidth is set equal to PicOutputWidthL of the reference picture in luma samples. The variable fRefHeight is set equal to PicOutputHeightL of the reference picture in luma samples. PicOutputWidthL and PicOutputHeightL are variables derived for the current picture.

[0081] The starting position (upper left corner) of the block in the reference picture denoted as (xIntL, yIntL) and the filter phase or offset given in 1 / 16 sample units denoted as (xFracL, yFracL) are derived as follows:

[0082] –(refxSb L ,refySb L L) and (refx L , refy L ) is the luminance position pointed to by the motion vector (refMvLX[0], refMvLX[1]) given in 1 / 16 sample units. The variable refxSb is derived as follows L ,refx L ,refySb L and refy L :

[0083] sbX L =((xSb<<4)+refMvLX)*hori_scale_fp (8-755)

[0084] refx L =((Sign(refxSb)*((Abs(refxSb)+128)>>8)+x L *((hori_scale_fp+8)>>4))+32)>>6 (8-756)

[0085] sb L =((ySb<<4)+refMvLX)*vert_scale_fp (8-757)

[0086] refyL=((Sign(refySb)*((Abs(refySb)+128)>>8)+yL*((vert_scale_fp+8)>>4))+32)>>6 (8-758)

[0087] – Variable xInt L ,yInt L 、xFrac L and yFrac Lis derived as follows:

[0088] xInt L =refx L >>4 (8-759)

[0089] yInt L =refy L >>4 (8-760)

[0090] xFrac L =refx L &15 (8-761)

[0091] yFrac L =refy L &15 (8-762)

[0092] In the above, (xSb, ySb) specifies the top left sample of the current coded sub-block relative to the top left luma sample of the current picture, and refMvLX is the motion vector of the reference picture list LX (where X is 0 and 1).

[0093] In VVC Draft 6, the same process is repeated for the chrominance color components as follows.

[0094] – For each chroma sample position (xC = 0..sbWidth-1, yC = 0..sbHeight-1) in the predicted chroma sample array predSampleLX, the corresponding predicted chroma sample value predSamplesLX[xC][yC] is derived as follows:

[0095] –(refxSb C ,refySb C ) and (refx C , refy C ) is the chrominance position pointed to by the motion vector (mvLX, mvLX) given in 1 / 32 sample units. The variable refxSb is derived as follows C ,refySb C ,refx C and refy C :

[0096] sbX C =((xSb / SubWidthC<<5)+mvLX)*hori_scale_fp (8-763)

[0097] refx C =((Sign(refxSb C )*((Abs(refxSb C)+256)>>9)+xC*((hori_scale_fp+8)>>4))+16)>>5 (8-764)

[0098] sb C =((ySb / SubHeightC<<5)+mvLX)*vert_scale_fp (8-765)

[0099] refy C =((Sign(refySb C )*((Abs(refySb C )+256)>>9)+yC*((vert_scale_fp+8)>>4))+16)>>5 (8-766)

[0100] – Variable xInt C ,yInt C 、xFrac C and yFrac C is derived as follows:

[0101] xInt C =refx C >>5 (8-767)

[0102] yInt C =refy C >>5 (8-768)

[0103] xFrac C =refx C &31 (8-769)

[0104] yFrac C =refy C &31 (8-770)

[0105] In VVC draft 6, chroma has 32 filter phases and luma has 16 filter phases. In other words, a motion vector can indicate one of 16 positions relative to a luma sample, and a motion vector can indicate one of 32 positions relative to a chroma sample. When the chroma filter phases are derived, i.e., taking into account the fractional position xFrac where the resampling is applied, C and yFrac C , meaning that when hori_scale_fp or vert_scale_fp differs from the 1x ratio, a zero phase shift between the luma and chroma component grids is assumed, such as Figure 2 2 as type 2 chroma sampling. In this disclosure, the term 1x ratio refers to a 1 to 1 ratio.

[0106] However, there can be Figure 2 Other chroma types are shown, which can have different zero phase shifts between luma and chroma components. For example, type 2 chroma samples have 0 phase shifts in both horizontal and vertical directions, type 0 chroma samples have 0 phase shifts in horizontal direction and 0.5 phase shifts in vertical direction, and for type 1, both horizontal and vertical phase shifts between components are equal to 0.5.

[0107] When applying interpolation filtering in VVC draft 6, the phase shift between components is not taken into account, that is, it is always 0, so when this zero-phase filtering is applied to non-type 2 chroma sampling, the result of the filtering will change the chroma sampling type from the original input type, which may be undesirable. Changing the chroma sampling type in this way may affect the encoding and decoding efficiency, the output picture, and / or the display / rendering of the picture because there may be a mismatch between the input picture chroma type and the output picture chroma type.

[0108] The techniques of the present disclosure are described for frame codecs. However, the techniques of the present disclosure may also be applicable to frame field codecs. In the latter case, any solution of the present disclosure may be applied to the top field and the bottom field, respectively. For example, if the present disclosure describes syntax elements for frame codecs, a similar syntax element is signaled for the top field, and another similar syntax element is signaled for the bottom field.

[0109] According to the technology of the present disclosure, in order to solve the chroma sampling type problem, the chroma type or horizontal and vertical chroma phase shift information can be signaled in parameter sets such as VPS, SPS, PPS or elsewhere. These phase shifts can indicate the input type of each picture.

[0110] Currently in VVC draft 6, the chroma_sample_loc_type_frame syntax element (also referred to as the chroma_sample_loc_type syntax element) is signaled in the SPS video usability information (VUI) to indicate the phase shift. Since the chroma_sample_loc_type_frame syntax element is signaled in the VUI, the video decoder can ignore the chroma_sample_loc_type_frame syntax element. In an example using field coding, similar syntax elements (e.g., chroma_sample_loc_type_top_field and chroma_sample_loc_type_bottom_field) can be signaled for the upper and lower fields.

[0111] In one example of the present disclosure, the chroma_sample_loc_type_frame syntax element is signaled in the PPS. Therefore, the chroma_sample_loc_type_frame syntax element is not signaled in the ignorable VUI part of the SPS. This is similar to the signaling of the chroma_phase_idc syntax element described by Rapaka et al., "AHG13: Chroma phase offset for SHVC resampling process", Joint Video Coding and Decoding Team (JCT-VC) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 16th Meeting: San Jose, US, January 9-17, 2014, document JCTVC-P0164 (hereinafter referred to as "JCTVC-P0164"), which is signaled in the VPS of the HEVC scalable extension. In JCTVC-P0164, chroma_phase_idc specifies the position of the chroma sample grid for all pictures of the reference VPS. In JCTVC-P0164, the value of chroma_phase_idc is in the range of 0 to 5, inclusive. In JCTVC-P0164, the variables chroma_phase_X and chroma_phase_Y are derived as follows:

[0112] chroma_phase_X=chroma_phase_idc==0||chroma_phase_idc==1||chroma_phase_idc==5

[0113] chroma_phase_Y=(chroma_phase_idc>>2)? 2:(chroma_phase_idc&0x1)

[0114] In another example of the present disclosure, the horizontal and vertical phase shifts are explicitly signaled, for example, which is done in HEVC, where those shifts are signaled for each inter-layer reference picture in the PPS extension. For example, HEVC specifies the phase_hor_chroma_plus8 syntax element and the phase_ver_chroma_plus8 syntax element as follows:

[0115] phase_hor_chroma_plus8[ref_loc_offset_layer_id[i]] ue(v) phase_ver_chroma_plus8[ref_loc_offset_layer_id[i]] ue(v)

[0116] phase_hor_chroma_plus8[ref_loc_offset_layer_id[i]] minus 8 specifies the chroma phase shift in the horizontal direction used in the resampling of the direct reference layer picture with nuh_layer_id equal to ref_loc_offset_layer_id[i]. The value of phase_hor_chroma_plus8[ref_loc_offset_layer_id[i]] shall be in the range of 0 to 63, inclusive. When not present, the value of phase_hor_chroma_plus8[ref_loc_offset_layer_id[i]] is inferred to be equal to 8.

[0117] phase_ver_chroma_plus8[ref_loc_offset_layer_id[i]] minus 8 specifies the chroma phase shift in the vertical direction used during the resampling process of the direct reference layer picture with nuh_layer_id equal to ref_loc_offset_layer_id[i]. The value of phase_ver_chroma_plus8[ref_loc_offset_layer_id[i]] shall be in the range of 0 to 63, inclusive. When not present, the value of phase_ver_chroma_plus8[ref_loc_offset_layer_id[i]] is inferred as follows:

[0118] – If chroma_format_idc is equal to 3 (4:4:4 chroma format), the value of phase_ver_chroma_plus8[ref_loc_offset_layer_id[i]] is derived to be equal to 8.

[0119] – Otherwise, the value of phase_ver_chroma_plus8[ref_loc_offset_layer_id[i]] is derived to be equal to 4*scaledRefRegHeight+refRegHeight / 2) / refRegHeight+4, where the value of scaledRefRegHeight is equal to the value of ScaledRefRegionHeightInSamplesY derived for the direct reference layer picture, where nuh_layer_id is equal to ref_loc_offset_layer_id[i] of the picture referencing this PPS, and the value of refRegHeight is equal to RefLayerRegionHeightInSamplesY derived for the direct reference layer picture, where nuh_layer_id is equal to ref_loc_offset_layer_id[i] of the picture referencing this PPS].

[0120] PhaseHorC=phase_hor_chroma_plus8–8 (H-24)

[0121] PhaseVerC=phase_ver_chroma_plus8–8 (H-25)

[0122] According to one or more techniques of the present disclosure, the phase shift indicates the chroma sampling type of each picture. In one example, the phase shift indicates that a given picture has that particular chroma type, and another picture may have a different type in the same sequence. In another example, such chroma phase shift information may be signaled in the SPS. In this example, the chroma phase shift information indicates that all pictures have that particular chroma type.

[0123] In addition, in some examples of the present disclosure, the chroma type can always be assumed and constrained to remain unchanged across all pictures in a video sequence during the resampling (downsampling or upsampling) process, and when the resampling process is applied, the required chroma phase shifts are derived for each picture, which can be different for each picture to keep the chroma type unchanged. The chroma type can be indicated as described in the above examples. The picture can be an input picture, a current picture, a reference picture, or an output picture.

[0124] The chroma phase shift may be signaled as a positive value. However, the sign of the phase shift may be derived based on whether downsampling (e.g., a scaling ratio less than 1x) or upsampling (e.g., a scaling ratio greater than 1x) is applied. In one example, the sign of the chroma phase shift is positive if downsampling is applied to the horizontal or vertical direction, and negative if upsampling is applied. In some examples, it may be the case that downsampling is applied in one direction and upsampling is applied in the other direction.

[0125] It may be the case that the current picture and the reference picture have different chroma phase shifts. In the case that the current picture and the reference picture have different chroma phase shifts, the current and reference phase shifts are used in the filtering and resampling process.

[0126] In both examples, i.e., the case where downsampling is applied in one direction and upsampling is applied in the other direction (e.g., different resolutions) and the case where the current picture and the reference picture have different chroma phase shifts, the chroma phase shift information is used in the interpolation filtering process considering only zero phase shift. However, the chroma phase shift information can be considered only when resampling is applied, i.e., hori_scale_fp or vert_scale_fp is different from the 1x ratio. This means that the signaled chroma phase shift information is conditionally applied in the filtering, i.e., if hori_scale_fp is different from the 1x ratio, chroma_phase_X is used, and if vert_scale_fp is different from the 1x ratio, chroma_phase_Y is used.

[0127] It should be noted that when the chroma format is not 4:2:0 (e.g., when chroma_format_idc is not equal to 4:2:0), such as 4:2:2 or 4:4:4, chroma subsampling is not applied in the vertical direction (4:2:2) or is not applied at all (4:4:4). In VVC draft 6, the chroma_format_idc syntax element indicates the chroma sampling format (i.e., chroma format). In some examples where the chroma format is not 4:2:0 (e.g., chroma_format_idc is not equal to 4:2:0), the techniques of this disclosure do not apply to vertical filtering of the 4:2:2 format, or to both horizontal and vertical filtering of the 4:4:4 format or monochrome format.

[0128] Table 1. chroma_format_idc and separate_colour_plane_flag

[0129]

[0130] The video decoder 300 can use Table 1 above to determine the chroma format, SubWidthC, and SubHeightC based on the chroma_format_idc syntax element and the separate_colour_plane_flag syntax element that can be signaled in the bitstream. The separate_colour_plane_flag syntax element equal to 1 specifies that the three color components of the 4:4:4 chroma format are encoded and decoded separately. The separate_colour_plane_flag equal to 0 specifies that the color components are not encoded and decoded separately. For example, if the chroma_format_idc syntax element is equal to 3 and the separate_colour_plane_flag syntax element is equal to 0, the chroma format is 4:4:4, SubWidthC is equal to 1, and SubHeightC is equal to 1.

[0131] In one implementation example, as shown in Table 2 below, refxSb is modified C ,refx C ,refySb C , refy C To take into account the chromatic phase shift, which is bracketed in <! >…< / !> The text in the label will be added to VVC draft 6:

[0132] Table 2

[0133]

[0134] In Table 2, addX is set based on the chroma phase shift in the horizontal direction, and addY is set based on the chroma phase shift in the vertical direction. In one example, the chroma phase shift includes a chroma phase shift of a current picture and a chroma phase shift of a reference picture.

[0135] In a more detailed example, if the horizontal scaling ratio (hori_scale_fp) is equal to the 1x ratio or chroma_format_idc is equal to 3 or 0, addX is set equal to 0. Otherwise, if the horizontal scaling ratio is not equal to the 1x ratio and chroma_format_idc is not equal to 3 and is not equal to 1, addX is set based on the chroma phase shift in the horizontal direction. If the vertical scaling ratio (vert_scale_fp) is equal to the 1x ratio or chroma_format_idc is equal to 2, 3, or 0, addY is set equal to 0. Otherwise, if the vertical scaling ratio is not equal to the 1x ratio and chroma_format_idc is not equal to 2, not equal to 3, and not equal to 0, addY is set based on the chroma phase shift in the vertical direction. The values ​​of addX and addY can be set as described in the following examples.

[0136] In some examples, addX and addY are set (eg, by video encoder 200 and video decoder 300) based on a chroma phase shift as shown in the example of Table 3 below:

[0137] Table 3

[0138]

[0139] In the equations of Table 3, (1<<14) is the precision factor for horizontal and vertical scaling. In addition, in the equations of Table 3, the right shift of 2 (divided by 4) comes from the definition of chroma_phase_X and chroma_phase_Y, which have a precision factor of 2 (i.e., 1 corresponds to a 0.5 shift) and a chroma subsampling ratio relative to luma of 2 in the 4:2:0 format. addX and addY are right shifted by 5 due to the number of chroma fraction positions (which is 32, the same as the chroma MV precision).

[0140] Considering other chroma formats such as 4:2:2 and 4:4:4, in one example, the above formula can be modified to include chroma subsampling ratios SubWidthC and SubHeightC as shown in the example of Table 4 below:

[0141] Table 4

[0142]

[0143] In the formula of Table 4, for the case where there is no chroma subsampling in the horizontal or vertical direction, division by 2 is used instead of division by 4 (right shift by 2). That is, as shown in Table 4, in the case where there is no horizontal subsampling, the value of SubWidthC may be equal to 1, and in the case where there is horizontal subsampling, the value of SubWidthC may be equal to 2. Therefore, division by 2 or 4 is performed depending on whether there is horizontal subsampling. Similarly, in the case where there is no vertical subsampling, the value of SubHeightC may be equal to 1, and in the case where there is vertical subsampling, the value of SubHeightC may be equal to 2. Therefore, division by 2 or 4 is performed depending on whether there is vertical subsampling.

[0144] Other numbers of fractional positions may be used, and thus the right shift may be different depending on the number of fractional positions, and other precision representations may be used for the scaling factor and phase. In general, the formulas of Tables 3 and 4 are only examples of integer implementations, and other similar formulas may be used.

[0145] In some examples, the last two steps of the equations in Tables 3 and 4 may be combined by incorporating a shift (5-2) as shown in Table 5 below:

[0146] Table 5

[0147]

[0148] In the examples of Tables 3, 4, and 5, chroma_phase_X and chroma_phase_Y may be the chroma phase shifts of the current (after resampling) picture, and ref_chroma_phase_X and ref_chroma_phase_Y may be the chroma phase shifts of the reference (before resampling) picture.

[0149] If the chroma phase has a precision of 16, the above formula is rewritten as shown in the example of Table 6 below:

[0150] Table 6

[0151] addX=chroma_phase_X*hori_scale_fp–(1<<14)*ref_chroma_phase_X addY=chroma_phase_Y*vert_scale_fp–(1<<14)*ref_chroma_phase_Y

[0152] When other chroma formats (eg, 4:2:2 and 4:4:4) are considered, the video encoder 200 and the video decoder 300 may calculate addX and addY according to the following formulas in Table 7:

[0153] Table 7

[0154]

[0155]

[0156] In another example, instead of dividing by SubWidthC and SubHeightC, the horizontal and vertical chroma phase values ​​may be scaled by SubWidthC and SubHeightC. The scaling may be performed before phase signaling or after phase signaling. In the first case (i.e., in the example where the scaling is performed before phase signaling), smaller amplitude values ​​are signaled, which may be advantageous because fewer bits may be required to signal smaller amplitude values ​​than larger amplitude values.

[0157] In another example, if the chroma phase has a precision of 32, the formula can be rewritten as shown in Table 8 below:

[0158] Table 8

[0159]

[0160] In some examples, a fixed chroma phase may be used. In other words, the chroma phase is always the same and therefore not signaled. For example, the chroma phase corresponding to chroma sample type 0 may be used, since chroma sample type 0 may be the most commonly used chroma format. In this example, chroma_phase_X=ref_chroma_phase_X=0, chroma_phase_Y=ref_chroma_phase_Y=1.

[0161] In another example, the current chroma phase may be fixed, but the reference chroma phase is signaled. In yet another example, the reference chroma phase may be fixed, but the current chroma phase is signaled.

[0162] Therefore, according to the technology of the present disclosure, a video codec (e.g., video encoder 200 or video decoder 300) can modify the horizontal component of the chroma position pointed to by the motion vector of the current block of the current picture of the video data based on the chroma phase shift in the horizontal direction. The chroma position is located in a reference picture with a different resolution or a different chroma sampling type than the current picture. The video codec can also modify the vertical component of the chroma position based on the chroma phase shift in the vertical direction. In addition, the video codec can generate chroma samples of a prediction block for the current block of the current picture based on the chroma samples of the reference picture corresponding to the modified chroma position. The modified chroma position is defined by the modified horizontal component and vertical component of the chroma position. The video codec can encode and decode the current block based on the prediction block for the current block.

[0163] A similar approach can be applied to luma phase. For example, a phase shift in luma can occur when downsampling can be done outside of the codec (in one example, for an input picture to be encoded) and non-zero phase alignment in the downsampling can be utilized. Similarly, upsampling filtering is used in addition to upsampling filtering (in one example, for display), and non-zero phase alignment filtering can be applied. In these examples, a luma phase mismatch between the input / output picture and the encoded or reference picture can occur.

[0164] To avoid this phase mismatch, the luma phase can be signaled and used in the filtering process. In one example, the signaling of the luma phase can be done using HEVC syntax. In HEVC, the luma phase is signaled only for inter-layer pictures (i.e., pictures that depend on pictures in different layers). However, according to the examples of the present disclosure, the HEVC syntax for signaling the luma phase can be applied to the current picture rather than just to the inter-layer pictures. The HEVC syntax and semantics for signaling the luma phase are presented below.

[0165] phase_hor_luma[ref_loc_offset_layer_id[i]] ue(v) phase_ver_luma[ref_loc_offset_layer_id[i]] ue(v)

[0166] phase_hor_luma[ref_loc_offset_layer_id[i]] specifies the luma phase shift in the horizontal direction used during the resampling process of the direct reference layer picture with nuh_layer_id equal to ref_loc_offset_layer_id[i]. The value of phase_hor_luma[ref_loc_offset_layer_id[i]] shall be in the range of 0 to 31, inclusive. When not present, the value of phase_hor_luma[ref_loc_offset_layer_id[i]] is inferred to be equal to 0.

[0167] phase_ver_luma[ref_loc_offset_layer_id[i]] specifies the luma phase shift in the vertical direction used in the resampling of the direct reference layer picture with equal ref_loc_offset_layer_id[i]. The value of phase_ver_luma[ref_loc_offset_layer_id[i]] shall be in the range of 0 to 31, inclusive. When not present, the value of phase_ver_luma[ref_loc_offset_layer_id[i]] is inferred to be equal to 0.

[0168] In other examples, luma phase can be signaled in other ways. For example, luma phase can be signaled using a luma_phase_idc syntax element similar to the chroma_phase_idc syntax element discussed above. The luma_phase_idc syntax element indicates a position offset between one picture relative to another picture (such as a current picture and a reference picture). Luma phase is derived from luma_phase_idc (e.g., in the same manner as chroma phase is derived from chroma_phase_idc syntax elements).

[0169] The horizontal and vertical luma phase shift information may be signaled in a parameter set such as a VPS, SPS, PPS, or others. The phase shift may indicate the input type for each picture. The horizontal and vertical luma phase shifts may be signaled in the same parameter set (such as a PPS) as the chroma phase shift. In another example, the horizontal and vertical luma phase may be signaled in a higher parameter set such as an SPS or VPS, while the chroma phase shift is signaled in the PPS. The idea behind signaling the horizontal and vertical luma phase shifts in a higher parameter set is that the luma phase shift may be a global position shift characteristic for the entire video sequence, while the chroma phase shift may be more specific to a picture.

[0170] As already explained for chroma, modifications similar to those performed in the chroma filters (e.g., in the equations of Tables 3-8) may be performed in luma filtering, taking into account the luma phase of the current picture and the reference picture. Luma modification is applied when the scaling factor is different from the 1x ratio (i.e., the reference picture and the current picture have different widths or heights or both) (e.g., video encoder 200 and video decoder 300).

[0171] sbX L =((xSb<<4)+refMvLX[0])*hori_scale_fp<! >+addX< / !> (8-755)

[0172] refx L =((Sign(refxSb)*((Abs(refxSb)+128)>>8)+x L *((hori_scale_fp+8)>>4))+32)>>6 (8-756)

[0173] sb L =((ySb<<4)+refMvLX[1])*vert_scale_fp<! >+addY< / !> (8-757)

[0174] refyL=((Sign(refySb)*((Abs(refySb)+128)>>8)+yL*((vert_scale_fp+8)>>4))+32)>>6 (8-758)

[0175] In a more detailed example, if hori_scale_fp is equal to 1x ratio, addX is set equal to 0, otherwise addX is set based on the luma phase shift in the horizontal direction. If vert_scale_fp is equal to 1x ratio, addY is set equal to 0; otherwise, addY is set based on the luma phase shift in the vertical direction, for example, as shown in Table 9 below.

[0176] Table 9

[0177]

[0178] where (1<<14) is the precision factor for horizontal and vertical scaling, the right shift of 1 (i.e., division by 2) comes from the definition of chroma_phase_X and chroma_phase_Y, which have a precision factor of 2 (i.e., 1 corresponds to a 0.5 shift), and the right shift of 4 is due to the number of luma fraction positions (which is 16, the same as the luma MV precision).

[0179] In other examples, addX and addY are set based on the brightness phase shift as shown in Table 10 below:

[0180] Table 10

[0181] addX=phase_hor_luma*hori_scale_fp–(1<<14)*ref_phase_hor_luma addY=phase_ver_luma*vert_scale_fp–(1<<14)*ref_phase_ver_luma

[0182] In this example, the luma phase is considered to have a precision factor of 16. The same comments can be applied, some luma phases can be fixed (current or reference), in another example one can be fixed and the other signaled.

[0183] The precision of luma phase and chroma phase may be different, for example, the precision of luma phase is 8, whereas the precision of chroma phase may be 16. In this example, a 0.5 shift of luma corresponds to 4, and a 0.5 shift of chroma corresponds to 8. The dilution of precision for luma and chroma may be set to the same number of fractions in the luma and chroma motion interpolation filters, respectively.

[0184] Therefore, in some examples, the video codec may modify the horizontal component of the luma position pointed to by the motion vector of the current block of the current picture based on the luma phase shift in the horizontal direction. The luma position is located in a reference picture having a different resolution or a different chroma sampling type than the current picture. The video codec may also modify the vertical component of the luma position based on the luma phase shift in the vertical direction. In addition, the video codec may generate luma samples of a prediction block of the current block based on luma samples of a reference picture corresponding to the modified luma position. The modified luma position is defined by the modified horizontal and vertical components of the luma position. The video codec may encode and decode the current block based on the prediction block of the current block.

[0185] The following section of this disclosure describes example solutions for luma and chroma using VVC draft 6, where the precision factor for both luma and chroma phases is 16. Text added to VVC draft 6 by <! >…< / !> The tag indicates that a subset of the example solutions may also be used (eg only chroma phase offset or only predefined fixed phase offset).

[0186]

[0187]

[0188] <!> resample_phase_set_present_flag equal to 1 specifies that a resample phase set is present in the PPS. resample_phase_set_present_flag equal to 0 specifies that a resample phase set is not present in the PPS.

[0189] The resampling phase set specifies the phase offset used in the resampling process of pictures that reference the PPS.

[0190] phase_hor_luma specifies the luma phase shift in the horizontal direction used in the resampling process. The value of phase_hor_luma should be in the range of 0 to 31, inclusive. When not present, the value of phase_hor_luma is inferred to be equal to 0.

[0191] phase_ver_luma specifies the luma phase shift in the vertical direction used in the resampling process. The value of phase_ver_luma should be in the range of 0 to 31, inclusive. When not present, the value of phase_ver_luma is inferred to be equal to 0.

[0192] phase_hor_chroma specifies the chroma phase shift in the horizontal direction used in the resampling process. The value of phase_hor_chroma should be in the range of 0 to 63, inclusive. When not present, the value of phase_hor_chroma is inferred to be equal to 0.

[0193] phase_ver_chroma specifies the chroma phase shift in the vertical direction used in the resampling process. The value of phase_ver_chroma shall be in the range of 0 to 63, inclusive. When not present, the value of phase_ver_chroma is inferred to be equal to 0 if chroma_format_idc is equal to 3 (4:4:4 chroma format), and equal to 8 otherwise.< / !>

[0194] 8.5.6.3 Fractional Sample Interpolation Process

[0195] 8.5.6.3.1 General

[0196] The input to this process is:

[0197] – Luma position (xSb, ySb), which specifies the top left corner sample of the current codec subblock relative to the top left corner luma sample of the current picture,

[0198] – Variable sbWidth specifies the width of the current codec sub-block,

[0199] – The variable sbHeight specifies the height of the current codec sub-block,

[0200] – motion vector offset mvOffset,

[0201] – refine the motion vector refMvLX,

[0202] – the selected reference picture sample array refPicLX,

[0203] – half-sample interpolation filter index hpelIfIdx,

[0204] – bidirectional optical flow flag bdofFlag,

[0205] – Variable cIdx that specifies the color component index of the current block.

[0206] The output of this process is:

[0207] – predSamplesLX, an array of (sbWidth+brdExtSize)x(sbHeight+brdExtSize) predicted sample values.

[0208] The prediction block boundary extension size brdExtSize is derived as follows:

[0209] brdExtSize=(bdofFlag||(inter_affine_flag&&sps_affine_prof_enabled_flag))? 2:0 (8-752)

[0210] The variable fRefWidth is set equal to the PicOutputWidthL of the reference picture in luma samples.

[0211] The variable fRefHeight is set equal to the PicOutputHeightL of the reference picture in luma samples.

[0212] The motion vector mvLX is set equal to (refMvLX-mvOffset).

[0213] – If cIdx is equal to 0, the following applies:

[0214] –The scaling factor and its fixed-point representation are defined as

[0215] hori_scale_fp=((fRefWidth<<14)+(PicOutputWidthL>>1)) / PicOutputWidthL(8-753)

[0216] vert_scale_fp=((fRefHeight<<14)+(PicOutputHeightL>>1)) / PicOutputHeightL (8-754)

[0217] – Let (xIntL, yIntL) be the luma position given in full sample units, and (xFracL, yFracL) be the offset given in 1 / 16 sample units. These variables are used only in this clause to specify fractional sample positions within the reference sample array refPicLX.

[0218] – The upper left coordinate of the boundary block used for reference sample filling (xSbInt L ,ySbInt L ) is set equal to (xSb+(mvLX>>4),ySb+(mvLX>>4)).

[0219] – For each luma sample position (x L =0..sbWidth-1+brdExtSize,y L =0..sbHeight-1+brdExtSize), the corresponding predicted luminance sample value predSamplesLX is derived as follows:

[0220] –Assume (refxSb L ,refySb L ) and (refx L ,refy L ) is the luminance position pointed to by the motion vector (refMvLX, refMvLX) given in 1 / 16 sample units. The variable refxSb L ,refx L ,refySb L and refy L is derived as follows:

[0221] <!> ref_phase_hor_luma is set equal to phase_hor_luma of refPicLX, and ref_phase_ver_luma is set equal to phase_ver_luma of refPicLX.

[0222] addX=hori_scale_fp==(1<<14)? 0:phase_hor_luma*hori_scale_fp–(1<<14)*ref_phase_hor_luma

[0223] addY=vert_scale_fp==(1<<14)? 0:phase_ver_luma*vert_scale_fp–(1<<14)*ref_phase_ver_luma< / !>

[0224] sbX L =((xSb<<4)+refMvLX)*hori_scale_fp<! >+addX< / !> (8-755)

[0225] refx L =((Sign(refxSb)*((Abs(refxSb)+128)>>8)+x L *((hori_scale_fp+8)>>4))+32)>>6 (8-756)

[0226] sb L =((ySb<<4)+refMvLX)*vert_scale_fp<! >+addY< / !> (8-757)

[0227] refyL=((Sign(refySb)*((Abs(refySb)+128)>>8)+yL*((vert_scale_fp+8)>>4))+32)>>6 (8-758)

[0228] – Variable xInt L ,yInt L 、xFrac L and yFrac L is derived as follows:

[0229] xInt L =refx L >>4 (8-759)

[0230] yInt L =refy L >>4 (8-760)

[0231] xFrac L =refx L &15 (8-761)

[0232] yFrac L =refy L &15 (8-762)

[0233] – If bdofFlag is equal to TRUE or (sps_affine_prof_enabled_flag is equal to TRUE and inter_affine_flag[xSb][ySb] is equal to TRUE), and one or more of the following conditions are true, then L +(xFrac L >>3)-1),yIntL +(yFrac L >>3)-1) and refPicLX as input to call the luma integer sample acquisition process as specified in clause 8.5.6.3.3 to derive the predicted luma sample value predSamplesLX[x L ][y L ].

[0234] –x L is equal to 0.

[0235] –x L Equal to sbWidth+1.

[0236] –y L is equal to 0.

[0237] –y L Equal to sbHeight+1.

[0238] – Otherwise, by (xIntL-(brdExtSize>0?1:0), yIntL-(brdExtSize>0?1:0)), (xFracL, yFracL), (xSbInt L ,ySbInt L ), refPicLX, hpelIfIdx, sbWidth, sbHeight and (xSb, ySb) are used as input to call the luma sample 8-tap interpolation filter process as specified in clause 8.5.6.3.2 to derive the predicted luma sample values ​​predSamplesLX[xL][yL].

[0239] – Otherwise (cIdx is not equal to 0), the following applies:

[0240] – Let (xIntC, yIntC) be the chroma position given in full sample units, and (xFracC, yFracC) be the offset given in 1 / 32 sample units. These variables are used only in this clause to specify general fractional sample positions within the reference sample array refPicLX.

[0241] – The upper left coordinate (xSbIntC, ySbIntC) of the boundary block used for reference sample filling is set equal to ((xSb / SubWidthC)+(mvLX>>5),(ySb / SubHeightC)+(mvLX>>5)).

[0242] – For each chroma sample position (xC = 0..sbWidth-1, yC = 0..sbHeight-1) in the predicted chroma sample array predSampleLX, the corresponding predicted chroma sample value predSamplesLX[xC][yC] is derived as follows:

[0243] –Assume (refxSb C ,refySb C ) and (refx C ,refy C ) is the chroma position pointed to by the motion vector (mvLX, mvLX) given in 1 / 32 sample units. The variable refxSb C ,refySb C ,refx C and refy C is derived as follows:

[0244] <!> ref_phase_hor_chroma is set equal to phase_hor_luma of refPicLX, and ref_phase_ver_chroma is set equal to phase_ver_luma of refPicLX.

[0245] addX=hori_scale_fp==(1<<14)? 0:(phase_hor_chroma*hori_scale_fp–(1<<14)*ref_phase_ver_chroma)*2 / SubWidthC

[0246] addY=vert_scale_fp==(1<<14)? 0:(phase_ver_chroma*vert_scale_fp–(1<<14)*ref_phase_ver_chroma)*2 / SubHeightC< / !>

[0247] sbX C =((xSb / SubWidthC<<5)+mvLX)*hori_scale_fp<! >+addX< / !> (8-763)

[0248] refx C =((Sign(refxSb C )*((Abs(refxSb C )+256)>>9)+xC*((hori_scale_fp+8)>>4))+16)>>5 (8-764)

[0249] sb C =((ySb / SubHeightC<<5)+mvLX)*vert_scale_fp<! >+addY< / !> (8-765)

[0250] refy C =((Sign(refySb C )*((Abs(refySb C )+256)>>9)+yC*((vert_scale_fp+8)>>4))+16)>>5 (8-766)

[0251] – Variable xInt C ,yInt C 、xFrac C and yFrac C is derived as follows:

[0252] xIntC=refx C >>5 (8-767)

[0253] yInt C =refy C >>5 (8-768)

[0254] xFrac C =refy C &31 (8-769)

[0255] yFrac C =refy C &31 (8-770)

[0256] – The predicted sample value predSamplesLX is derived by calling the procedure as specified in clause 8.5.6.3.4 with (xIntC, yIntC), (xFracC, yFracC), (xSbIntC, ySbIntC), sbWidth, sbHeight and refPicLX as input.

[0257] The present disclosure may generally relate to "signaling" certain information, such as syntax elements. The term "signaling" may generally refer to the transmission of values ​​of syntax elements and / or other data used to decode encoded video data. That is, the video encoder 200 may signal the values ​​of syntax elements in a bitstream. Generally, signaling refers to generating values ​​in a bitstream. As described above, the source device 102 may transmit the bitstream to the destination device 116 in substantially real time (or non-real time, such as may occur when storing syntax elements to the storage device 112 for later retrieval by the destination device 116).

[0258] Figure 3 is a block diagram illustrating an example video encoder 200 that may perform the techniques of this disclosure. Figure 3 For purposes of explanation and should not be considered a constraint on the techniques broadly exemplified and described in this disclosure. For purposes of illustration, this disclosure describes the video encoder 200 in the context of video codec standards such as the HEVC video codec standard and the developing H.266 video codec standard (VCC). However, the techniques of this disclosure are not limited to these video codec standards and are generally applicable to video encoding and decoding.

[0259] exist Figure 3 In the example of , the video encoder 200 includes a video data memory 230, a mode selection unit 202, a residual generation unit 204, a transform processing unit 206, a quantization unit 208, an inverse quantization unit 210, an inverse transform processing unit 212, a reconstruction unit 214, a filter unit 216, a decoded picture buffer (DPB) 218, and an entropy coding unit 220. Any or all of the video data memory 230, the mode selection unit 202, the residual generation unit 204, the transform processing unit 206, the quantization unit 208, the inverse quantization unit 210, the inverse transform processing unit 212, the reconstruction unit 214, the filter unit 216, the DPB 218, and the entropy coding unit 220 may be implemented in one or more processors or processing circuits. In addition, the video encoder 200 may include additional or alternative processors or processing circuits to perform these and other functions.

[0260] Video data memory 230 may store video data to be encoded by components of video encoder 200. Video encoder 200 may receive video data from, for example, video source 104 ( Figure 1) receives video data stored in the video data memory 230. DPB218 can be used as a reference picture memory that stores reference video data for use by the video encoder 200 when predicting subsequent video data. The video data memory 230 and DPB 218 can be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. The video data memory 230 and DPB 218 can be provided by the same memory device or a separate memory device. In various examples, the video data memory 230 can be on-chip with other components of the video encoder 200, as illustrated, or off-chip relative to those components.

[0261] In the present disclosure, references to the video data memory 230 should not be interpreted as limited to memory internal to the video encoder 200, unless specifically described as such, or to memory external to the video encoder 200, unless specifically described as such. Rather, references to the video data memory 230 should be understood as a reference memory that stores video data received by the video encoder 200 for encoding (e.g., video data of a current block to be encoded). Figure 1 The memory 106 can also provide temporary storage for the outputs of various units of the video encoder 200 .

[0262] Figure 3 The various units are shown to help understand the operations performed by the video encoder 200. These units can be implemented as fixed-function circuits, programmable circuits, or a combination thereof. Fixed-function circuits refer to circuits that provide specific functions and preset operations that can be performed. Programmable circuits refer to circuits that can be programmed to perform various tasks and provide flexible functions in the operations that can be performed. For example, a programmable circuit can run software or firmware so that the programmable circuit operates in a manner defined by the instructions of the software or firmware. Fixed-function circuits can run software instructions (for example, to receive parameters or output parameters), but the type of operation performed by the fixed-function circuit is generally immutable. In some examples, one or more of the units may be different circuit blocks (fixed function or programmable), and in some examples, one or more units may be integrated circuits.

[0263] The video encoder 200 may include an arithmetic logic unit (ALU), an elementary function unit (EFU), a digital circuit, an analog circuit, and / or a programmable core formed by a programmable circuit. In an example where the operation of the video encoder 200 is performed using software executed by a programmable circuit, the memory 106 ( Figure 1) may store instructions (eg, object code) for software received and executed by the video encoder 200, or another memory within the video encoder 200 (not shown) may store such instructions.

[0264] The video data memory 230 is configured to store received video data. The video encoder 200 may retrieve a picture of the video data from the video data memory 230 and provide the video data to the residual generation unit 204 and the mode selection unit 202. The video data in the video data memory 230 may be original video data to be encoded.

[0265] The mode selection unit 202 includes a motion estimation unit 222, a motion compensation unit 224, and an intra prediction unit 226. The mode selection unit 202 may include additional functional units to perform video prediction according to other prediction modes. As an example, the mode selection unit 202 may include a palette unit, an intra block copy unit (which may be part of the motion estimation unit 222 and / or the motion compensation unit 224), an affine unit, a linear model (LM) unit, etc.

[0266] The mode selection unit 202 generally coordinates multiple encoding processes to test combinations of encoding parameters and the resulting rate-distortion values ​​for such combinations. The encoding parameters may include the partitioning of CTUs into CUs, the prediction mode for the CUs, the transform type for the CU residual data, the quantization parameter for the CU residual data, etc. The mode selection unit 202 may ultimately select a combination of encoding parameters that has a better rate-distortion value than other tested combinations.

[0267] The video encoder 200 may partition a picture retrieved from the video data memory 230 into a series of CTUs and encapsulate one or more CTUs in a slice. The mode selection unit 202 may partition the CTUs of the picture according to a tree structure (such as the QTBT structure or quadtree structure of HEVC described above). As described above, the video encoder 200 may form one or more CUs by partitioning the CTUs according to the tree structure. Such CUs may also be generally referred to as "video blocks" or "blocks".

[0268] Typically, the mode selection unit 202 also controls its components (e.g., the motion estimation unit 222, the motion compensation unit 224, and the intra prediction unit 226) to generate a prediction block for the current block (e.g., the overlapping portion of the current CU or PU and TU in HEVC). In order to inter-predict the current block, the motion estimation unit 222 can perform a motion search to identify one or more closely matching reference blocks in one or more reference pictures (e.g., one or more previously coded pictures stored in the DPB 218). In particular, the motion estimation unit 222 can calculate values ​​indicating how similar the potential reference blocks are to the current block, for example, based on the sum of absolute differences (SAD), the sum of squared differences (SSD), the mean absolute difference (MAD), the mean squared difference (MSD), etc. The motion estimation unit 222 can generally perform these calculations using the sample-by-sample difference between the current block and the reference block being considered. The motion estimation unit 222 can identify the reference block with the lowest value obtained from these calculations, indicating the reference block that most closely matches the current block.

[0269] The motion estimation unit 222 may form one or more motion vectors (MVs) that define the position of a reference block in a reference picture relative to a current block in a current picture. The motion estimation unit 222 may then provide the motion vectors to the motion compensation unit 224. For example, for unidirectional inter prediction, the motion estimation unit 222 may provide a single motion vector, and for bidirectional inter prediction, the motion estimation unit 222 may provide two motion vectors. The motion compensation unit 224 may then use the motion vectors to generate a prediction block. For example, the motion compensation unit 224 may use the motion vectors to retrieve data for the reference block. As another example, if the motion vectors have fractional sample precision, the motion compensation unit 224 may interpolate values ​​for the prediction block according to one or more interpolation filters. In addition, for bidirectional inter prediction, the motion compensation unit 224 may retrieve data for two reference blocks identified by the corresponding motion vectors and combine the retrieved data, for example, by sample-by-sample averaging or weighted averaging.

[0270] As another example, for intra prediction or intra prediction codec, the intra prediction unit 226 may generate a prediction block based on samples adjacent to the current block. For example, for directional mode, the intra prediction unit 226 may generally mathematically combine the values ​​of the adjacent samples and pad these calculated values ​​in a defined direction across the current block to produce a prediction block. As another example, for DC mode, the intra prediction unit 226 may calculate an average value of the adjacent samples of the current block and generate a prediction block to include the resulting average value for each sample of the prediction block.

[0271] The mode selection unit 202 provides the prediction block to the residual generation unit 204. The residual generation unit 204 receives the original, uncoded version of the current block from the video data memory 230 and receives the prediction block from the mode selection unit 202. The residual generation unit 204 calculates the sample-by-sample difference between the current block and the prediction block. The resulting sample-by-sample difference defines a residual block for the current block. In some examples, the residual generation unit 204 may also determine the difference between the sample values ​​in the residual block to generate the residual block using residual differential pulse code modulation (RDPCM). In some examples, the residual generation unit 204 may be formed using one or more subtractor circuits that perform binary subtraction.

[0272] In the example where the mode selection unit 202 partitions the CU into PUs, each PU may be associated with a luma prediction unit and a corresponding chroma prediction unit. The video encoder 200 and the video decoder 300 may support PUs of various sizes. As described above, the size of the CU may refer to the size of the luma codec block of the CU, and the size of the PU may refer to the size of the luma prediction unit of the PU. Assuming that the size of a particular CU is 2N×2N, the video encoder 200 may support PU sizes of 2N×2N or N×N for intra-frame prediction, and symmetric PU sizes of 2N×2N, 2N×N, N×2N, N×N or similar for inter-frame prediction. The video encoder 200 and the video decoder 300 may also support asymmetric partitioning of PU sizes of 2N×nU, 2N×nD, nL×2N, and nR×2N for inter-frame prediction.

[0273] In an example where the mode selection unit 202 does not further partition the CU into PUs, each CU may be associated with a luma codec block and a corresponding chroma codec block. As above, the size of a CU may refer to the size of the luma codec block of the CU. The video encoder 200 and the video decoder 300 may support a CU size of 2N×2N, 2N×N, or N×2N.

[0274] For other video codec techniques, such as intra block copy mode codec, affine mode codec, and linear model (LM) mode codec, as a few examples, the mode selection unit 202 generates a prediction block for the current block being encoded via a corresponding unit associated with the codec technique. In some examples, such as palette mode codec, the mode selection unit 202 may not generate a prediction block, but instead generate syntax elements indicating how to reconstruct the block based on the selected palette. In such a mode, the mode selection unit 202 may provide these syntax elements to the entropy coding unit 220 to encode them.

[0275] As described above, the residual generation unit 204 receives video data of a current block and a corresponding prediction block. Then, the residual generation unit 204 generates a residual block for the current block. To generate the residual block, the residual generation unit 204 calculates the sample-by-sample difference between the prediction block and the current block.

[0276] The transform processing unit 206 applies one or more transforms to the residual block to generate a block of transform coefficients (referred to herein as a "transform coefficient block"). The transform processing unit 206 can apply various transforms to the residual block to form a transform coefficient block. For example, the transform processing unit 206 can apply a discrete cosine transform (DCT), a directional transform, a Karhunen-Loeve transform (KLT), or a conceptually similar transform to the residual block. In some examples, the transform processing unit 206 can perform multiple transforms on the residual block, for example, a primary transform and a secondary transform, such as a rotation transform. In some examples, the transform processing unit 206 does not apply a transform to the residual block.

[0277] The quantization unit 208 may quantize the transform coefficients in the transform coefficient block to produce a quantized transform coefficient block. The quantization unit 208 may quantize the transform coefficients of the transform coefficient block according to a quantization parameter (QP) value associated with the current block. The video encoder 200 (e.g., via the mode selection unit 202) may adjust the degree of quantization applied to the transform coefficient block associated with the current block by adjusting the QP value associated with the CU. Quantization may introduce information loss, and therefore, the quantized transform coefficients may have a lower precision than the original transform coefficients produced by the transform processing unit 206.

[0278] The inverse quantization unit 210 and the inverse transform processing unit 212 may apply inverse quantization and inverse transform, respectively, to the quantized transform coefficient block to reconstruct a residual block from the transform coefficient block. The reconstruction unit 214 may generate a reconstructed block corresponding to the current block (although possibly with a certain degree of distortion) based on the reconstructed residual block and the prediction block generated by the mode selection unit 202. For example, the reconstruction unit 214 may add samples of the reconstructed residual block to corresponding samples from the prediction block generated by the mode selection unit 202 to generate a reconstructed block.

[0279] Filter unit 216 may perform one or more filtering operations on the reconstructed block. For example, filter unit 216 may perform a deblocking operation to reduce blocking artifacts along the edge of the CU. In some examples, the operation of filter unit 216 may be skipped.

[0280] The video encoder 200 stores the reconstructed blocks in the DPB 218. For example, in an example where the operation of the filter unit 216 is not required, the reconstruction unit 214 can store the reconstructed blocks to the DPB 218. In an example where the operation of the filter unit 216 is required, the filter unit 216 can store the filtered reconstructed blocks to the DPB 218. The motion estimation unit 222 and the motion compensation unit 224 can retrieve a reference picture formed by the reconstructed (and potentially filtered) blocks from the DPB 218 to perform inter-frame prediction on blocks of subsequently encoded pictures. In addition, the intra-frame prediction unit 226 can use the reconstructed blocks in the DPB 218 of the current picture to perform intra-frame prediction on other blocks in the current picture.

[0281] In general, the entropy coding unit 220 may entropy encode syntax elements received from other functional components of the video encoder 200. For example, the entropy coding unit 220 may entropy encode the quantized transform coefficient blocks from the quantization unit 208. As another example, the entropy coding unit 220 may entropy encode the prediction syntax elements (e.g., motion information for inter-frame prediction or intra-frame mode information for intra-frame prediction) from the mode selection unit 202. The entropy coding unit 220 may perform one or more entropy coding operations on the syntax elements as another example of video data to generate entropy-encoded data. For example, the entropy coding unit 220 may perform a context-adaptive variable length coding (CAVLC) operation, a CABAC operation, a variable-to-variable (V2V) length coding operation, a syntax-based context-adaptive binary arithmetic coding (SBAC) operation, a probability interval partitioning entropy (PIPE) coding operation, an exponential Golomb coding operation, or another type of entropy coding operation on the data. In some examples, the entropy coding unit 220 may operate in a bypass mode, in which the syntax elements are not entropy encoded.

[0282] The video encoder 200 may output a bitstream including entropy-encoded syntax elements required to reconstruct a block of a slice or a picture. In particular, the entropy encoding unit 220 may output a bitstream.

[0283] The above operations are described for blocks. This description should be understood as operations for luma codec blocks and / or chroma codec blocks. As described above, in some examples, the luma codec block and the chroma codec block are the luma component and chroma component of the CU. In some examples, the luma codec block and the chroma codec block are the luma component and chroma component of the PU.

[0284] In some examples, operations performed for luma codec blocks do not need to be repeated for chroma codec blocks. As an example, operations to identify motion vectors (MVs) and reference pictures for luma codec blocks do not need to be repeated for identifying MVs and reference pictures for chroma blocks. Instead, the MVs for luma codec blocks may be scaled to determine MVs for chroma blocks, and the reference pictures may be the same. As another example, the intra prediction process may be the same for luma codec blocks and chroma codec blocks.

[0285] The video encoder 200 represents an example of a device configured to encode video data, including a memory configured to store video data, and one or more processors implemented in a circuit and configured to modify the horizontal component of the chroma position pointed to by the motion vector of the current block of the current picture based on the chroma phase shift in the horizontal direction. The chroma position is located in a reference picture with a different resolution or a different chroma sampling type than the current picture. The one or more processors may also modify the vertical component of the chroma position based on the chroma phase shift in the vertical direction. In addition, the one or more processors may generate chroma samples of a prediction block for the current block based on the chroma samples of the reference picture corresponding to the modified chroma position. The modified chroma position is defined by the modified horizontal component and vertical component of the chroma position. The one or more processors of the video encoder 200 may encode the current block based on the prediction block for the current block.

[0286] In some examples, the video encoder 200 represents an example of a video encoding device that includes a memory configured to store video data, and one or more processors implemented in a circuit and configured to modify the horizontal component of the luma position pointed to by the current block of the current picture based on a luma phase shift in the horizontal direction. The reference picture has a different resolution or a different chroma sampling type than the current picture. The one or more processors may also modify the vertical component of the luma position based on the luma phase shift in the vertical direction. In addition, the one or more processors may generate luma samples of a prediction block for the current block based on luma samples of the reference picture corresponding to the modified luma position. The modified luma position is defined by the modified horizontal component and vertical component of the luma position. The one or more processors of the video encoder 200 may encode the current block based on the prediction block for the current block.

[0287] Figure 4 is a block diagram illustrating an example video decoder 300 that may perform the techniques of this disclosure. Figure 4The techniques widely exemplified and described in this disclosure are for the purpose of explanation, not limitation. For the purpose of explanation, this disclosure describes a video decoder 300 according to the technical description of VCC and HEVC. However, the techniques of this disclosure can be performed by video codec devices configured for other video codec standards.

[0288] exist Figure 4 In the example of , the video decoder 300 includes a coded picture buffer (CPB) memory 320, an entropy decoding unit 302, a prediction processing unit 304, an inverse quantization unit 306, an inverse transform processing unit 308, a reconstruction unit 310, a filter unit 312, and a decoded picture buffer (DPB) 314. Any or all of the CPB memory 320, the entropy decoding unit 302, the prediction processing unit 304, the inverse quantization unit 306, the inverse transform processing unit 308, the reconstruction unit 310, the filter unit 312, and the DPB 314 may be implemented in one or more processors or processing circuits. In addition, the video decoder 300 may include additional or alternative processors or processing circuits to perform these and other functions.

[0289] The prediction processing unit 304 includes a motion compensation unit 316 and an intra prediction unit 318. The prediction processing unit 304 may include additional units to perform predictions according to other prediction modes. As an example, the prediction processing unit 304 may include a palette unit, an intra block copy unit (which may form part of the motion compensation unit 316), an affine unit, a linear model (LM) unit, etc. In other examples, the video decoder 300 may include more, fewer, or different functional components.

[0290] CPB memory 320 may store video data, such as an encoded video bitstream, to be decoded by components of video decoder 300. For example, the video bitstream may be obtained from computer readable medium 110 ( Figure 1) obtains video data stored in CPB memory 320. CPB memory 320 may include a CPB that stores encoded video data (e.g., syntax elements) from an encoded video bitstream. Moreover, CPB memory 320 may store video data other than syntax elements of encoded and decoded pictures, such as temporary data representing outputs from various units of video decoder 300. DPB 314 typically stores decoded pictures, which video decoder 300 may output and / or use as reference video data when decoding subsequent data or pictures of the encoded video bitstream. CPB memory 320 and DPB 314 may be formed by any of a variety of storage devices, such as DRAM, including SDRAM, MRAM, RRAM or other types of storage devices. CPB memory 320 and DPB 314 may be provided by the same memory device or a separate memory device. In various examples, CPB memory 320 may be placed on-chip with other components of video decoder 300, or off-chip relative to those components.

[0291] Additionally or alternatively, in some examples, video decoder 300 may retrieve the video from memory 120 ( Figure 1 ) retrieves the coded video data. That is, the memory 120 may store data using the CPB memory 320 as discussed above. Likewise, when some or all of the functions of the video decoder 300 are implemented in software to be executed by the processing circuitry of the video decoder 300, the memory 120 may store instructions to be executed by the video decoder 300.

[0292] Figure 4 The various units shown are shown to aid in understanding the operations performed by the video decoder 300. These units may be implemented as fixed function circuits, programmable circuits, or a combination thereof. Figure 3 , fixed-function circuits refer to circuits that provide specific functions and are preset in the operations that can be performed. Programmable circuits refer to circuits that can be programmed to perform various tasks and provide flexible functions in the operations that can be performed. For example, a programmable circuit can run software or firmware so that the programmable circuit operates in a manner defined by the instructions of the software or firmware. Fixed-function circuits can run software instructions (for example, to receive parameters or output parameters), but the type of operation performed by the fixed-function circuit is generally immutable. In some examples, one or more of the units may be different circuit blocks (fixed function or programmable), and in some examples, one or more units may be integrated circuits.

[0293] The video decoder 300 may include an ALU, an EFU, a digital circuit, an analog circuit, and / or a programmable core formed by a programmable circuit. In an example where the operation of the video decoder 300 is performed by software running on a programmable circuit, an on-chip or off-chip memory may store instructions (e.g., object code) of the software received and executed by the video decoder 300.

[0294] The entropy decoding unit 302 may receive the encoded video data from the CPB and entropy decode the video data to reproduce the syntax elements. The prediction processing unit 304, the inverse quantization unit 306, the inverse transform processing unit 308, the reconstruction unit 310, and the filter unit 312 may generate decoded video data based on the syntax elements extracted from the bitstream.

[0295] Typically, the video decoder 300 reconstructs a picture on a block-by-block basis. The video decoder 300 may perform a reconstruction operation on each block individually (where the block currently being reconstructed, ie, the decoded block, may be referred to as a "current block").

[0296] The entropy decoding unit 302 may entropy decode syntax elements defining quantized transform coefficients of the quantized transform coefficient block and transform information, such as a quantization parameter (QP) and / or (multiple) transform mode indications. The inverse quantization unit 306 may use the QP associated with the quantized transform coefficient block to determine a degree of quantization, and likewise, determine a degree of inverse quantization for the inverse quantization unit 306 to apply. The inverse quantization unit 306 may, for example, perform a bitwise left shift operation to inverse quantize the quantized transform coefficients. The inverse quantization unit 306 may thereby form a transform coefficient block including the transform coefficients.

[0297] After the inverse quantization unit 306 forms the transform coefficient block, the inverse transform processing unit 308 may apply one or more inverse transforms to the transform coefficient block to generate a residual block associated with the current block. For example, the inverse transform processing unit 308 may apply an inverse DCT, an inverse integer transform, an inverse Karhunen-Loeve transform (KLT), an inverse rotational transform, an inverse directional transform, or another inverse transform to the transform coefficient block.

[0298] In addition, prediction processing unit 304 generates a prediction block based on the prediction information syntax elements entropy decoded by entropy decoding unit 302. For example, if the prediction information syntax elements indicate that the current block is inter-predicted, motion compensation unit 316 can generate the prediction block. In this case, the prediction information syntax elements can indicate a reference picture in DPB 314 from which to retrieve the reference block, and a motion vector that identifies the position of the reference block in the reference picture relative to the current block in the current picture. Motion compensation unit 316 can generally generate a prediction block in the same manner as for motion compensation unit 224 ( Figure 3) is performed in a manner substantially similar to that described herein.

[0299] As another example, if the prediction information syntax element indicates that the current block is intra-predicted, the intra-prediction unit 318 may generate a prediction block according to the intra-prediction mode indicated by the prediction information syntax element. Again, the intra-prediction unit 318 may generally generate a prediction block in the same manner as for the intra-prediction unit 226 ( Figure 3 The intra prediction process is performed in a manner substantially similar to that described in the foregoing description. The intra prediction unit 318 may retrieve data of neighboring samples for the current block from the DPB 314.

[0300] The reconstruction unit 310 may reconstruct the current block using the prediction block and the residual block. For example, the reconstruction unit 310 may add samples of the residual block to corresponding samples of the prediction block to reconstruct the current block.

[0301] The filter unit 312 may perform one or more filtering operations on the reconstructed block. For example, the filter unit 312 may perform a deblocking operation to reduce blocking artifacts along the edges of the reconstructed block. The operations of the filter unit 312 may not necessarily be performed in all examples.

[0302] The video decoder 300 may store the reconstructed block in the DPB 314. For example, in an example where the operation of the filter unit 312 is not performed, the reconstruction unit 310 may store the reconstructed block to the DPB 314. In an example where the operation of the filter unit 312 is performed, the filter unit 312 may store the filtered reconstructed block to the DPB 314. As described above, the DPB 314 may provide reference information to the prediction processing unit 304, such as samples of the current picture for intra-frame prediction and previous decoded pictures for subsequent motion compensation. In addition, the video decoder 300 may output a decoded picture (e.g., a decoded video) from the DPB 314 for subsequent presentation on a display such as a video processor. Figure 1 On a display device such as display device 118.

[0303] In this way, the video decoder 300 represents an example of a video decoding device, which includes a memory configured to store video data, and one or more processor units implemented in a circuit and configured to modify the horizontal component of the chroma position pointed to by the motion vector of the current block of the current picture of the video data based on the chroma phase shift in the horizontal direction, wherein the chroma position is located in a reference picture with a different resolution or a different chroma sampling type than the current picture. The one or more processors can also modify the vertical component of the chroma position based on the chroma phase shift in the vertical direction. In addition, the one or more processors can generate chroma samples of a prediction block for the current block based on the chroma samples of the reference picture corresponding to the modified chroma position. The modified chroma position is defined by the modified horizontal component and vertical component of the chroma position. The one or more processors of the video decoder 300 can decode the current block based on the prediction block for the current block.

[0304] In some examples, the video decoder 300 represents an example of a video decoding device, which includes a memory configured to store video data; and one or more processing units implemented in a circuit and configured to modify the horizontal component of the luma position pointed to by the current block of the current picture based on the luma phase shift in the horizontal direction. The reference picture has a different resolution or a different chroma sampling type than the current picture. The one or more processors may also modify the vertical component of the luma position based on the luma phase shift in the vertical direction. In addition, the one or more processors may generate luma samples of a prediction block for the current block based on the luma samples of the reference picture corresponding to the modified luma position. The modified luma position is defined by the modified horizontal component and vertical component of the luma position. The one or more processors of the video decoder 300 may decode the current block based on the prediction block for the current block.

[0305] Figure 5 2 is a flowchart illustrating an example method for encoding a current block. The current block may include a current CU. Although with respect to the video encoder 200 ( Figure 1 and Figure 3 ), but it should be understood that other devices may be configured to perform similar Figure 5 method.

[0306] In this example, the video encoder 200 initially predicts the current block (350). For example, the video encoder 200 may form a prediction block for the current block. According to one or more techniques of the present disclosure, in an example in which the video encoder 200 predicts the current block using inter-frame prediction from a reference picture having a different resolution or chroma sampling type than the current picture, the video encoder 200 may modify the horizontal component of the chroma position to which the motion vector of the current block points based on the chroma phase shift in the horizontal direction. The chroma position is located in a reference picture that may have a different resolution or a different chroma sampling type than the current picture. In addition, the video encoder 200 may modify the vertical component of the chroma position based on the chroma phase shift in the vertical direction. The video encoder 200 may also generate chroma samples of a prediction block for the current block of the current picture based on the chroma samples of the reference picture corresponding to the modified chroma position. The modified chroma position is defined by the modified horizontal component and vertical component of the chroma position.

[0307] In some examples, the video encoder 200 may modify the horizontal component of the luma position pointed to by the current block of the current picture based on the luma phase shift in the horizontal direction. The reference picture may have a different resolution or a different chroma sampling type than the current picture. The video encoder 200 may also modify the vertical component of the luma position based on the luma phase shift in the vertical direction. In addition, the video encoder 200 may generate luma samples of a prediction block for the current block based on the luma samples of the reference picture corresponding to the modified luma position. The modified luma position is defined by the modified horizontal and vertical components of the luma position.

[0308] The video encoder 200 may then calculate a residual block for the current block (352). To calculate the residual block, the video encoder 200 may calculate the difference between the original, unencoded block and the predicted block for the current block. The video encoder 200 may then transform and quantize the transform coefficients of the residual block (354). Next, the video encoder 200 may scan the quantized transform coefficients of the residual block (356). During or after the scan, the video encoder 200 may entropy encode the transform coefficients (358). For example, the video encoder 200 may encode the transform coefficients using CAVLC or CABAC. The video encoder 200 may then output the entropy encoded data of the block (360).

[0309] Figure 6 is a flowchart illustrating an example method for decoding a current block of video data. The current block may include a current CU. Although with respect to the video decoder 300 ( Figure 1 and Figure 4 ), but it should be understood that other devices may be configured to perform similar Figure 6 method.

[0310] The video decoder 300 may receive entropy coded data for a current block, such as entropy coded prediction information and entropy coded data for transform coefficients of a residual block corresponding to the current block (370). The video decoder 300 may decode the entropy coded data to determine prediction information for the current block and reproduce transform coefficients of the residual block (372). The video decoder 300 may predict the current block (374), for example, using an intra-frame or inter-frame prediction mode indicated by the prediction information of the current block to calculate a prediction block for the current block.

[0311] According to one or more techniques of the present disclosure, in an example where the video decoder 300 predicts a current block using inter-frame prediction from a reference picture that may have a different resolution or chroma sampling type than the current picture, the video decoder 300 may modify the horizontal component of the chroma position pointed to by the motion vector of the current block based on the chroma phase shift in the horizontal direction. In addition, the video decoder 300 may modify the vertical component of the chroma position based on the chroma phase shift in the vertical direction. The video decoder 300 may also generate chroma samples of a predicted block for the current block of the current picture based on the chroma samples of the reference picture corresponding to the modified chroma position. The modified chroma position is defined by the modified horizontal and vertical components of the chroma position.

[0312] In some examples, the video decoder 300 may modify the horizontal component of the luma position pointed to by the current block of the current picture based on the luma phase shift in the horizontal direction. The reference picture may have a different resolution or a different chroma sampling type than the current picture. The video decoder 300 may also modify the vertical component of the luma position based on the luma phase shift in the vertical direction. In addition, the video decoder 300 may generate luma samples of a prediction block for the current block based on the luma samples of the reference picture corresponding to the modified luma position. The modified luma position is defined by the modified horizontal and vertical components of the luma position.

[0313] The video decoder 300 may then inverse scan the reproduced transform coefficients (376) to create a block of quantized transform coefficients. The video decoder 300 may then inverse quantize and inverse transform the transform coefficients to produce a residual block (378). The video decoder 300 may ultimately decode the current block (380) by combining the prediction block and the residual block.

[0314] Figure 7 is a flow chart illustrating an example method of encoding and decoding video data in accordance with one or more techniques of this disclosure. Figure 7 The method may be performed by a video codec such as the video encoder 200 or the video decoder 300 .

[0315] exist Figure 7 In some examples, the video codec may modify a horizontal component of a chroma position pointed to by a motion vector of a current block of a current picture of video data based on a chroma phase shift in a horizontal direction (400). In addition, the video codec may modify a vertical component of the chroma position based on a chroma phase shift in a vertical direction (402). In some examples, the chroma phase shift in the horizontal direction and the chroma phase shift in the vertical direction are signaled in a parameter set. In some examples, the video codec may modify the horizontal component and the vertical component of the chroma position during a motion compensation process.

[0316] In this example, the reference picture and the current picture have different resolutions or chroma sampling types / phase shifts. For example, as an example where the reference picture and the current picture have different resolutions, the chroma samples of the reference picture may be formatted according to a 4:2:0 chroma format, and the chroma samples of the current picture may be formatted according to a 4:4:4 chroma format. As an example where the reference picture and the current picture have chroma sampling types, the chroma samples of the reference picture may be type 0, and the chroma samples of the current picture may be type 1. For example, a chroma phase shift in the horizontal direction and a chroma phase shift in the vertical direction are signaled in the parameter set.

[0317] In some examples, in order to modify the horizontal component of the motion vector and the vertical component of the motion vector, the video codec can determine an initial horizontal component of the chroma position. In the example of Table 2, the initial horizontal component of the chroma position can be equal to (((xSb / SubWidthC<<5)+mvLX)*hori_scale_fp). In addition, the video codec can determine a horizontal addition value (e.g., addX) based on the chroma phase shift in the horizontal direction. The video codec can then determine a modified horizontal component of the chroma position (e.g., refx) by adding the initial horizontal component of the chroma position to the horizontal addition value. C ). In this way, the video codec can effectively modify the horizontal component of the initial motion vector (mvLX) of the current block to determine the horizontal component of the motion vector indicating the actual position in the reference picture used to generate the predicted block. Similarly, to modify the vertical component of the chroma position, the video codec can determine the initial vertical component of the chroma position pointed to by the motion vector. In the example of Table 2, the initial vertical component of the chroma position can be equal to (((ySb / SubHeightC<<5)+mvLX)*vert_scale_fp). In addition, the video codec can determine the vertical increase value (e.g., addY) based on the chroma phase shift in the vertical direction. The video codec can determine the modified vertical component of the chroma position (e.g., refy) by adding the initial vertical component of the chroma position to the vertical increase value. C). In this way, the video codec can effectively modify the vertical component of the initial motion vector (mvLX) of the current block to determine the vertical component of the motion vector indicating the actual position in the reference picture used to generate the prediction block. In some examples, to set the horizontal increase value, the video codec can multiply the chroma phase shift in the horizontal direction by a value equal to the horizontal scaling ratio minus (1<<14), and setting the vertical increase value includes multiplying the chroma phase shift in the vertical direction by a value equal to the vertical scaling ratio minus (1<<14) (e.g., as shown in the examples of Tables 3 to 8).

[0318] As described in the previous paragraph, the video codec can determine a horizontal increase value (e.g., addX) and a vertical increase value (e.g., addY). In some examples, to determine the horizontal increase value, the video codec can determine whether the horizontal scaling ratio is equal to the 1x ratio, whether the vertical scaling ratio is equal to the 1x ratio, whether the chroma format indicator (e.g., chroma_format_idc) indicates that the reference picture is monochrome, and whether the reference picture is encoded using a 4:4:4 chroma format. In these examples, based on the horizontal scaling ratio not being equal to the 1x ratio and the chroma format indicator indicating that the reference picture is not monochrome and is not encoded using the 4:4:4 chroma format, the video codec can set the horizontal increase value based on the chroma phase shift in the horizontal direction. Similarly, based on the vertical scaling ratio not being equal to the 1x ratio and the chroma format indicator indicating that the reference picture is not monochrome, the reference picture is not encoded using the 4:4:4 chroma format, and the reference picture is not encoded using the 4:2:2 chroma format, the vertical increase value is set based on the chroma phase shift in the vertical direction. Therefore, chroma phase shift information may only be considered when resampling is applied, ie, hori_scale_fp or vert_scale_fp is different from the 1x ratio, and the techniques of this disclosure are not applied to vertical filtering of 4:2:2 formats or to both horizontal and vertical filtering of 4:4:4 formats or monochrome formats.

[0319] In addition, the video codec may generate chroma samples of a prediction block for the current block of the current picture based on chroma samples of the reference picture corresponding to the position in the reference picture indicated by the motion vector (404). For example, the video codec may apply an interpolation filter to the samples of the reference picture to interpolate the samples of the prediction block at the position indicated by the motion vector, and similarly, interpolate the samples of the prediction block having an offset relative to the samples of the reference picture corresponding to the offset of the position indicated by the motion vector.

[0320] The video codec may encode and decode the current block based on the prediction block for the current block (406). For example, in an example where the video codec is a video encoder (e.g., video encoder 200), encoding and decoding may refer to encoding and encoding and decoding the current block may include generating chroma residual samples of the current block based on differences between chroma samples of the prediction block for the current block and corresponding chroma samples of the current block. In an example where the video codec is a video decoder (e.g., video decoder 300), encoding and decoding may refer to decoding the current block and encoding and decoding the current block may include reconstructing the chroma samples of the current block by adding the chroma samples of the prediction block for the current block to the corresponding chroma residual samples of the current block.

[0321] The following is a non-exclusive list of examples of one or more techniques according to the present disclosure:

[0322] Example 1. A method for encoding and decoding video data, the method comprising: determining a horizontal component of a motion vector indicating a position in a reference picture based on a chroma phase shift in a horizontal direction, wherein the reference picture and a current picture have different resolutions; determining a vertical component of the motion vector based on a chroma phase shift in a vertical direction; generating chroma samples of a prediction block for a current block of a current picture based on chroma samples of the reference picture corresponding to the position in the reference picture indicated by the motion vector; and encoding and decoding the current block based on the prediction block for the current block.

[0323] Example 2. The method of Example 1, wherein a chroma phase shift in a horizontal direction and a chroma phase shift in a vertical direction are signaled in the parameter set.

[0324] Example 3. The method according to any one of Examples 1-2, wherein encoding and decoding includes decoding.

[0325] Example 4. The method according to Example 4, wherein encoding and decoding the current block includes reconstructing the chroma samples of the current block by adding the chroma samples of the prediction block for the current block to the corresponding chroma residual samples of the current block.

[0326] Example 5. The method of any one of Examples 1-2, wherein encoding and decoding includes encoding.

[0327] Example 6. The method according to Example 5, wherein encoding and decoding the current block comprises: generating chroma residual samples of the current block based on the difference between the chroma samples of the prediction block for the current block and the corresponding chroma samples of the current block.

[0328] Example 7. A method for encoding and decoding video data, the method comprising: determining a horizontal component of a motion vector indicating a position in a reference picture based on a luminance phase shift in a horizontal direction, wherein the reference picture and a current picture have different resolutions; determining a vertical component of the motion vector based on a luminance phase shift in a vertical direction; generating luminance samples of a prediction block for a current block of a current picture based on luminance samples of the reference picture corresponding to the position in the reference picture indicated by the motion vector; and encoding and decoding the current block based on the prediction block for the current block.

[0329] Example 8. The method of Example 7, wherein a luminance phase shift in a horizontal direction and a luminance phase shift in a vertical direction are signaled in the parameter set.

[0330] Example 9. The method of any of Examples 7-8, wherein encoding and decoding includes decoding.

[0331] Example 10. The method of Example 9, wherein encoding and decoding the current block comprises reconstructing luma samples of the current block by adding luma samples of a prediction block of the current block to corresponding luma residual samples of the current block.

[0332] Example 11. The method of any of Examples 7-8, wherein encoding and decoding includes encoding.

[0333] Example 12. The method of Example 11, wherein encoding and decoding the current block comprises generating luma residual samples of the current block based on differences between luma samples of a prediction block for the current block and corresponding luma samples of the current block.

[0334] Example 13. An apparatus for encoding and decoding video data, the apparatus comprising one or more components for performing the method of any of Examples 1-12.

[0335] Example 14. The apparatus of Example 13, wherein the one or more components include one or more processors implemented in a circuit.

[0336] Example 15. The device according to any of Examples 13 and 14, further comprising a memory for storing video data.

[0337] Example 16. The device of any of Examples 13-15, further comprising a display configured to display the decoded video data.

[0338] Example 17. The device of any of Examples 13-16, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.

[0339] Example 18. The device of any of Examples 13-17, wherein the device comprises a video decoder.

[0340] Example 19. The device of any of Examples 13-18, wherein the device comprises a video encoder.

[0341] Example 20. A computer-readable storage medium having instructions stored thereon that, when executed, cause one or more processors to perform the method of any of Examples 1-12.

[0342] It will be appreciated that, depending on the example, certain actions or events of any of the techniques described herein may be performed in a different order, may be added, combined, or omitted altogether (e.g., not all described actions or events are necessary for the practice of the techniques). Additionally, in some examples, actions or events may be performed simultaneously, e.g., via multithreading, interrupt handling, or multiple processors, rather than sequentially.

[0343] In one or more examples, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored as one or more instructions or codes on a computer-readable medium or sent through it and executed by a hardware-based processing unit. Computer-readable media may include computer-readable storage media corresponding to tangible media such as data storage media, or communication media including any media that facilitates the transfer of a computer program from one place to another, for example, according to a communication protocol. In this manner, computer-readable media may generally correspond to (1) a non-temporary tangible computer-readable storage medium, or (2) a communication medium such as a signal or carrier wave. Data storage media may be any available media that can be accessed by one or more computers or one or more processors to retrieve instructions, codes, and / or data structures for implementing the techniques described in the present disclosure. A computer program product may include a computer-readable medium.

[0344] As an example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage devices, flash memory or any other medium that can be used to store the required program code in the form of instructions or data structures and can be accessed by a computer. In addition, any connection is properly referred to as a computer-readable medium. For example, if the instruction is sent from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave), the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology (such as infrared, radio and microwave) are all included in the definition of the medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carriers, signals or other temporary media, but point to non-temporary tangible storage media. Disks and optical disks as used herein include compact discs (CDs), laser optical disks, optical optical disks, digital versatile discs (DVDs), floppy disks and blue-ray discs, wherein the disks usually reproduce data magnetically, and the optical disks reproduce data optically with lasers. The above combination should also be included in the scope of computer-readable media.

[0345] Instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Therefore, the terms "processor" and "processing circuitry" as used herein may refer to any of the aforementioned structures or any other structure suitable for implementing the techniques described herein. In addition, in some aspects, the functionality described herein may be provided in dedicated hardware and / or software modules configured for encoding and decoding, or may be incorporated in a combined codec. Likewise, these techniques may be fully implemented in one or more circuits or logic elements.

[0346] The techniques of the present disclosure may be implemented in a wide variety of devices or apparatuses, including wireless handsets, integrated circuits (ICs), or sets of ICs (e.g., chipsets). Various components, modules, or units are described in the present disclosure to emphasize functional aspects of devices configured to perform the disclosed techniques, but do not necessarily require implementation by different hardware units. Instead, as described above, the various units may be combined in a codec hardware unit, or provided by a collection of interoperable hardware units including one or more processors as described above, in combination with appropriate software and / or firmware.

[0347] Various examples have been described. These and other examples are within the scope of the following claims.

Claims

1. A method for encoding and decoding video data, the method comprising: Determining a modified horizontal component of a chroma position pointed to by a motion vector of a current block of a current picture of the video data based on a chroma phase shift in a horizontal direction, wherein the chroma position is located in a reference picture having a different resolution or a different chroma sampling type than the current picture, wherein determining the modified horizontal component of the chroma position comprises: determining an initial horizontal component of the chroma position; determining a horizontal increase value based on the chroma phase shift in the horizontal direction; and determining a modified horizontal component of the chroma position based on adding an initial horizontal component of the chroma position and the horizontal increase value; Determining a modified vertical component of the chroma position based on the chroma phase shift in the vertical direction, wherein determining the modified vertical component of the chroma position comprises: determining an initial vertical component of the chroma position; determining a vertical increase value based on the chroma phase shift in the vertical direction; and determining a modified vertical component of the chroma position based on adding an initial vertical component of the chroma position and the vertical increase value; generating chroma samples of a prediction block for the current block based on chroma samples of the reference picture corresponding to a modified chroma position defined by a modified horizontal component and a modified vertical component of the chroma position; and The current block is encoded and decoded based on the prediction block for the current block.

2. The method according to claim 1, wherein: The chroma phase shift in the horizontal direction and the chroma phase shift in the vertical direction are signaled in a parameter set.

3. The method according to claim 1, wherein: Determining the level increase includes: The horizontal increase value is set based on the chroma phase shift in the horizontal direction based on the horizontal scaling ratio not being equal to the 1x ratio and the chroma format indicator indicating that the reference picture is not monochrome and is not encoded using a 4:4:4 chroma format, and Determining the vertical increase value includes: Based on the vertical scaling ratio not being equal to the 1x ratio and the chroma format indicator indicating that the reference image is not monochrome, the reference image is not encoded using a 4:4:4 chroma format, and the reference image is not encoded using a 4:2:2 chroma format, the vertical increase value is set based on the chroma phase shift in the vertical direction.

4. The method according to claim 3, wherein: Setting the horizontal increase value includes: multiplying the chroma phase shift in the horizontal direction by a value equal to the horizontal scaling ratio minus (1<<14), and Setting the vertical increase value includes multiplying the chroma phase shift in the vertical direction by a value equal to the vertical scaling ratio minus (1<<14).

5. The method according to claim 1, wherein: Encoding and decoding include decoding.

6. The method according to claim 5, wherein: Encoding and decoding the current block includes reconstructing chroma samples of the current block by adding chroma samples of a prediction block for the current block to corresponding chroma residual samples of the current block.

7. The method according to claim 1, wherein: Codec includes encoding.

8. The method according to claim 7, wherein: Encoding and decoding the current block includes generating chroma residual samples of the current block based on differences between chroma samples of a prediction block for the current block and corresponding chroma samples of the current block.

9. The method according to claim 1, wherein: Determining the modified horizontal component of the chroma position includes determining the modified horizontal component of the chroma position during a motion compensation process, and Determining the modified vertical component of the chroma position includes determining the modified vertical component of the chroma position during the motion compensation process.

10. A device for encoding and decoding video data, the device comprising: A memory configured to store the video data; as well as One or more processors implemented in circuitry, the one or more processors configured to cause the apparatus to: determining a modified horizontal component of a chroma position pointed to by a motion vector of a current block of a current picture of the video data based on a chroma phase shift in a horizontal direction, wherein the chroma position is located in a reference picture, wherein the chroma position is located in a reference picture having a different resolution or a different chroma sampling type than the current picture, wherein to determine the modified horizontal component of the chroma position, the one or more processors are configured to cause the device to: determining an initial horizontal component of the chroma position; determining a horizontal increase value based on the chroma phase shift in the horizontal direction; and determining a modified horizontal component of the chroma position based on adding an initial horizontal component of the chroma position and the horizontal increase value; determining a modified vertical component of the chroma position based on the chroma phase shift in the vertical direction, wherein to determine the modified vertical component of the chroma position, the one or more processors are configured to cause the device to: determining an initial vertical component of the chroma position; determining a vertical increase value based on the chroma phase shift in the vertical direction; and determining a modified vertical component of the chroma position based on adding an initial vertical component of the chroma position and the vertical increase value; generating chroma samples of a prediction block for the current block based on chroma samples of a reference picture corresponding to a modified chroma position defined by a modified horizontal component and a modified vertical component of the chroma position; and The current block is encoded and decoded based on the prediction block for the current block.

11. The device according to claim 10, wherein: The chroma phase shift in the horizontal direction and the chroma phase shift in the vertical direction are signaled in a parameter set.

12. The apparatus of claim 10, wherein: To determine the level increase value, the one or more processors are configured to cause the device to: The horizontal increase value is set based on the chroma phase shift in the horizontal direction based on the horizontal scaling ratio not being equal to the 1x ratio and the chroma format indicator indicating that the reference picture is not monochrome and is not encoded using a 4:4:4 chroma format, and To determine the vertical increase value, the one or more processors are configured to cause the device to: Based on the vertical scaling ratio not being equal to the 1x ratio and the chroma format indicator indicating that the reference image is not monochrome, the reference image is not encoded using a 4:4:4 chroma format, and the reference image is not encoded using a 4:2:2 chroma format, the vertical increase value is set based on the chroma phase shift in the vertical direction.

13. The apparatus of claim 12, wherein: To set the horizontal increase value, the one or more processors are configured to cause the device to multiply the chroma phase shift in the horizontal direction by a value equal to the horizontal scaling ratio minus (1<<14), and To set the vertical increase value, the one or more processors are configured to cause the device to multiply the chroma phase shift in the vertical direction by a value equal to the vertical scaling ratio minus (1<<14).

14. The apparatus according to claim 10, wherein: The apparatus comprises a video decoder.

15. The device according to claim 14, wherein: To encode and decode the current block, the video decoder is configured to reconstruct chroma samples of the current block by adding chroma samples of a prediction block for the current block to corresponding chroma residual samples of the current block.

16. The apparatus according to claim 10, wherein: The apparatus includes a video encoder.

17. The device according to claim 16, wherein: To encode and decode the current block, the video encoder is configured to generate chroma residual samples of the current block based on differences between chroma samples of a prediction block for the current block and corresponding chroma samples of the current block.

18. The device of claim 10, further comprising a display configured to display the decoded video data.

19. The apparatus according to claim 10, wherein: The device includes one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.

20. The apparatus of claim 10, wherein: The one or more processors are configured to cause the device to determine a modified horizontal component of the chroma position during a motion compensation process, and The one or more processors are configured to cause the device to determine a modified vertical component of the chroma position during the motion compensation process.

21. A non-transitory computer-readable storage medium having stored thereon instructions which, when executed, cause one or more processors to: A modified horizontal component of a chroma position of a motion vector of a current block of a current picture of video data is determined based on a chroma phase shift in a horizontal direction, wherein The chroma position is located in a reference picture having a different resolution or a different chroma sampling type than the current picture, wherein the instructions that cause the one or more processors to determine a modified horizontal component of the chroma position include instructions that, when executed, cause the one or more processors to: determining an initial horizontal component of the chroma position; determining a horizontal increase value based on the chroma phase shift in the horizontal direction; and determining a modified horizontal component of the chroma position based on adding an initial horizontal component of the chroma position and the horizontal increase value; determining a modified vertical component of the chroma position based on a chroma phase shift in a vertical direction, wherein the instructions that cause the one or more processors to determine the modified vertical component of the chroma position include instructions that, when executed, cause the one or more processors to: determining an initial vertical component of the chroma position; determining a vertical increase value based on the chroma phase shift in the vertical direction; and determining a modified vertical component of the chroma position based on adding an initial vertical component of the chroma position and the vertical increase value; generating chroma samples of a prediction block for the current block based on chroma samples of a reference picture corresponding to a modified chroma position defined by a modified horizontal component and a modified vertical component of the chroma position; and The current block is encoded and decoded based on the prediction block for the current block.

Citation Information

Patent Citations

  • Scaling ratio and output full resolution picture in video coding

    US20210084311A1

  • Method and apparatus for coding video supporting plurality of layers

    CN105230018A

  • Intra motion compensation extensions

    CN105359532A

  • Reference layer sample position derivation for scalable video coding

    CN105900431A

  • Scalable video encoding / decoding method and apparatus

    CN106464890A