Flexible activation of multiple transform selection for inter coding in video coding
By adaptively determining the maximum and minimum block sizes of the inter-frame MTS mode, the decoding efficiency problem of the inter-frame multiple transform selection mode under the fixed block size constraint is solved, and more efficient video decoding is achieved.
Patent Information
- Application Number
- CN202380031179.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-04-07
- Filing Date
- 2023-04-10
- Publication Date
- 2024-11-15
AI Technical Summary
In existing video decoding technologies, the use of inter-frame multiple transform selection modes is limited by a fixed maximum block size, which leads to reduced decoding efficiency and increased computational complexity for certain sequences, images, or slices of video data.
By adaptively determining the maximum and minimum block size of the inter-frame MTS mode, the inter-frame MTS mode can be flexibly enabled or disabled based on the spatiotemporal and resolution characteristics of the video data, and multiple transform kernels can be used to improve decoding efficiency.
It improves the decoding efficiency of certain images in video sequences, reduces computational complexity, and maintains compression gain, adapting to the characteristics of different video content.
Smart Images

Figure CN118975240A_ABST
Abstract
Description
[0001] This application claims the benefit of U.S. Patent Application No. 18 / 297,463, filed on April 7, 2023, and U.S. Provisional Patent Application No. 63 / 362,863, filed on April 12, 2022, the entire contents of which are incorporated herein by reference. U.S. Patent Application No. 18 / 297,463, filed on April 7, 2023, claims the benefit of U.S. Provisional Patent Application No. 63 / 362,863, filed on April 12, 2022. Technical Field
[0002] The present disclosure relates to video encoding and video decoding. Background Art
[0003] Digital video capabilities may 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 radiotelephones, so-called "smart phones", video teleconferencing devices, video streaming devices, etc. Digital video devices implement video coding techniques 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 Coding (AVC), ITU-T H.265 / High Efficiency Video Coding (HEVC), ITU-T H.266 / Versatile Video Coding (VVC), as well as extensions to such standards, and proprietary video codecs / formats such as AO Media Video 1 (AV1) developed by the Alliance for Open Media. Video devices may more efficiently transmit, receive, encode, decode and / or store digital video information by implementing such video decoding techniques.
[0004] Video coding techniques include spatial (intra-picture) prediction and / or temporal (inter-picture) prediction to reduce or remove inherent redundancy in video sequences. For block-based video coding, a video slice (e.g., a video picture or a portion of a video picture) can be divided into video blocks, which can also be referred to as coding tree units (CTUs), coding units (CUs), and / or coding nodes. Video blocks in an intra-coded (I) slice of a picture are encoded using spatial prediction relative to reference samples in neighboring blocks in the same picture. Video blocks in an inter-coded (P or B) slice of a picture can use spatial prediction relative to reference samples in neighboring blocks in the same picture, or temporal prediction relative to reference samples in other reference pictures. Pictures can be referred to as frames, and reference pictures can be referred to as reference frames. Summary of the invention
[0005] In summary, the present disclosure describes techniques for encoding and decoding video data, including techniques for determining when to enable a multiple transform selection (MTS) mode. In summary, an inter-frame MTS mode is a technique for applying transforms when encoding and decoding inter-frame predicted blocks. An inter-frame MTS mode may include applying one or more transforms (e.g., vertical and horizontal transform kernels) from a plurality of possible transforms to video data. The inter-frame MTS technique may increase the number of transforms available for use, thereby improving coding efficiency.
[0006] The present disclosure describes techniques for adaptively determining when an inter-frame MTS mode can be applied to a block of video data. In some examples, a video decoder can determine whether to enable the inter-frame MTS mode for block video data by comparing the size of a block of video data with a maximum and / or minimum block size. However, the video decoder can adaptively determine the minimum and maximum block sizes based on various characteristics of the video data, rather than using static maximum and minimum block sizes. In some examples, a video encoder can signal a syntax element that indicates the maximum or minimum block size for enabling the inter-frame MTS mode at one or more levels (e.g., sequence, picture, and / or slice level) of the coding hierarchy. In this way, the size of the block that can be decoded using the inter-frame MTS mode is flexible and adaptable, thereby improving the decoding efficiency of certain pictures of a video sequence based on the actual spatiotemporal and / or resolution characteristics of the video data.
[0007] In one example, the present disclosure describes a method for decoding video data, the method comprising: adaptively determining one or more of a maximum block size or a minimum block size for applying an inter-frame MTS mode; determining whether to enable the inter-frame MTS mode for a block of video data based on a size of the block compared to one or more of the minimum block size or the maximum block size; and decoding the block using the inter-frame MTS mode based on enabling the inter-frame MTS mode, wherein decoding the block using the inter-frame MTS mode comprises: applying one or more of a plurality of transforms to transform coefficients associated with the block of video data.
[0008] In another example, the present disclosure describes a device configured to decode video data, the device comprising: a memory configured to store blocks of video data; and one or more processors implemented in a circuit and in communication with the memory, the one or more processors configured to: adaptively determine one or more of a maximum block size or a minimum block size for applying an inter-frame MTS mode; determine whether to enable the inter-frame MTS mode for the block based on a size of the block of video data compared to one or more of the minimum block size or the maximum block size; and decode the block using the inter-frame MTS mode based on enabling the inter-frame MTS mode, wherein, in order to decode the block using the inter-frame MTS mode, the one or more processors are configured to: apply one or more of a plurality of transforms to transform coefficients associated with the block of video data.
[0009] In another example, the present disclosure describes an apparatus configured to decode video data, the apparatus comprising: a unit for adaptively determining one or more of a maximum block size or a minimum block size for applying an inter-frame MTS mode; a unit for determining whether to enable the inter-frame MTS mode for a block of video data based on a size of the block compared to one or more of the minimum block size or the maximum block size; and a unit for decoding the block using the inter-frame MTS mode based on enabling the inter-frame MTS mode, wherein decoding the block using the inter-frame MTS mode comprises applying one or more of a plurality of transforms to transform coefficients associated with the block of video data.
[0010] In another example, the present disclosure describes a non-transitory computer-readable storage medium storing instructions that, when executed, cause one or more processors of a device configured to decode video data to: adaptively determine one or more of a maximum block size or a minimum block size for applying an inter-frame MTS mode; determine whether to enable the inter-frame MTS mode for a block of video data based on a size of the block of video data compared to one or more of the minimum block size or the maximum block size; and decode the block using the inter-frame MTS mode based on enabling the inter-frame MTS mode, wherein, in order to decode the block using the inter-frame MTS mode, the one or more processors are configured to: apply one or more of a plurality of transforms to transform coefficients associated with the block of video data.
[0011] In another example, the present disclosure describes a device configured to encode video data, the device comprising: a memory configured to store blocks of video data; and one or more processors implemented in a circuit and in communication with the memory, the one or more processors configured to: adaptively determine one or more of a maximum block size or a minimum block size for applying an inter-frame MTS mode; determine whether to enable the inter-frame MTS mode for the block based on a size of the block of video data compared to one or more of the minimum block size or the maximum block size; and encode the block using the inter-frame MTS mode based on enabling the inter-frame MTS mode, wherein, in order to encode the block using the inter-frame MTS mode, the one or more processors are configured to: apply one or more of a plurality of transforms to transform coefficients associated with the block of video data.
[0012] 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
[0013] Figure 1 is a block diagram illustrating an example video encoding and decoding system that may perform the techniques of this disclosure.
[0014] Figure 2 is a block diagram illustrating an example video encoder that may perform the techniques of this disclosure.
[0015] Figure 3 is a block diagram illustrating an example video decoder that may perform the techniques of this disclosure.
[0016] Figure 4 is a flowchart illustrating an example method for encoding a current block according to techniques of this disclosure.
[0017] Figure 5 is a flow chart illustrating an example method for decoding a current block according to techniques of this disclosure.
[0018] Figure 6 is a flowchart illustrating another example method for encoding a current block according to the techniques of this disclosure.
[0019] Figure 7 is a flow chart illustrating another example method for decoding a current block according to the techniques of this disclosure. DETAILED DESCRIPTION
[0020] Transform coding is a technique used in video coding to compress video data. For example, a video encoder may use a prediction process (e.g., inter-frame prediction) to generate blocks of residual values for blocks of video data. The residual values may then be transformed from the spatial domain to the frequency domain using horizontal and vertical transforms. The application of this transform produces transform coefficients, which typically require fewer bits to represent than the residual values. The transform coefficients may then be quantized and entropy coded to further compress the data. In some examples, a discrete cosine transform (DCT-2) of type 2 may be used in a video codec to perform forward and inverse transforms.
[0021] In addition to DCT-2, which has been adopted in HEVC, a multiple transform selection (inter-MTS) scheme is used for residual decoding of inter-coded blocks in other example codecs (such as VVC). In one example, the inter-MTS mode includes using multiple transforms selected from multiple transform kernels, including type 8 DCT (DCT-8) and type 7 discrete sine transform (DST-7). Both transform kernels can be applied to both vertical and horizontal transforms, which corresponds to four different possible transform combinations.
[0022] In some examples, the use of inter-frame MTS has been limited to certain maximum block sizes to reduce the computational complexity associated with large block sizes. However, limiting inter-frame MTS to a fixed maximum block size may result in reduced decoding efficiency for certain sequences, pictures, or slices of video data. That is, video data with certain spatiotemporal characteristics and / or resolutions may benefit from applying inter-frame MTS at larger block sizes, despite the potential increase in computational complexity.
[0023] In summary, the present disclosure describes techniques for encoding and decoding video data, including techniques for determining when to enable MTS (such as inter-frame MTS mode). Specifically, the present disclosure describes techniques for adaptively determining when the inter-frame MTS mode can be applied to a block of video data. In some examples, a video decoder can determine whether to enable the inter-frame MTS mode for block video data by comparing the size of a block of video data with a maximum and / or minimum block size. However, the video decoder can adaptively determine the minimum and maximum block sizes based on various characteristics of the video data, rather than using a static maximum and minimum block size. In some examples, a video encoder can signal a syntax element that indicates the maximum or minimum block size for enabling the inter-frame MTS mode at one or more levels of the decoding hierarchy (e.g., sequence, picture, and / or slice level). In this way, the size of the block that can be decoded using the inter-frame MTS mode is flexible and adaptable, thereby improving the decoding efficiency of certain pictures of a sequence of video data based on the actual spatiotemporal and / or resolution characteristics of the video data.
[0024] Figure 1 1 is a block diagram illustrating an example video encoding and decoding system 100 that can perform the techniques of the present disclosure. The techniques of the present disclosure are generally directed to decoding (encoding and / or decoding) video data. In general, video data includes any data used to process video. Thus, video data can include original, unencoded video, encoded video, decoded (e.g., reconstructed) video, and video metadata (such as signaling data).
[0025] 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 target device 116. In particular, source device 102 provides the video data to target device 116 via computer-readable medium 110. Source device 102 and target device 116 may include any of a wide range of devices, including desktop computers, notebook computers (i.e., laptop computers), mobile devices, tablet computers, set-top boxes, telephone handsets (such as smartphones), televisions, cameras, display devices, digital media players, video game consoles, video streaming devices, broadcast receiver devices, etc. In some cases, source device 102 and target device 116 may be equipped for wireless communication, and thus may be referred to as wireless communication devices.
[0026] exist Figure 1 In the example of, source device 102 comprises video source 104, memory 106, video encoder 200 and output interface 108. Target device 116 comprises 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 target device 116 can be configured to apply the technology for determining to use multiple transform selection (MTS) mode. Therefore, source device 102 represents an example of video encoding device, and target device 116 represents an example of video decoding device. In other examples, source device and target device can include other components or arrangements. For example, source device 102 can receive video data from an external video source (such as an external camera). Similarly, target device 116 can be connected to an external display device, rather than including an integrated display device.
[0027] like Figure 1The system 100 shown is only one example. In general, any digital video encoding and / or decoding device can perform techniques for determining the use of multiple transform selection modes. The source device 102 and the target device 116 are only examples of such decoding devices as follows: the source device 102 generates a decoding device for the decoded video data for transmission to the target device 116. The present disclosure refers to a "decoding" device as a device that performs decoding (encoding and / or decoding) of data. Therefore, the video encoder 200 and the video decoder 300 represent examples of decoding devices, in particular video encoders and video decoders, respectively. In some examples, the source device 102 and the target device 116 can operate in a substantially symmetrical manner, so that each of the source device 102 and the target device 116 includes a video encoding component and a video decoding component. Therefore, the system 100 can support one-way video transmission or two-way video transmission between the source device 102 and the target device 116, for example, for video streaming, video playback, video broadcasting or video telephony.
[0028] In general, the video source 104 represents the source of video data (i.e., the original, undecoded video data) and a sequential series of pictures (also referred to as "frames") that provide the video data to the video encoder 200, which encodes the data for the pictures. The video source 104 of the source device 102 may include a video capture device (such as a camera, a video archive containing previously captured raw video, and / or a video feed interface) to receive video from a video content provider. As a further alternative, the video source 104 may generate computer graphics-based data as the source video, or a combination of live video, archived video, and computer-generated video. In each case, the video encoder 200 encodes the captured, pre-captured, or computer-generated video data. The video encoder 200 may rearrange the pictures from the order in which they are received (sometimes referred to as the "display order") to a decoding order for decoding. The video encoder 200 may generate a bitstream comprising the encoded video data. Source device 102 may then output the encoded video data onto computer-readable medium 110 via output interface 108 for receipt and / or retrieval by, for example, input interface 122 of target device 116 .
[0029] The memory 106 of the source device 102 and the memory 120 of the target device 116 represent general purpose memories. In some examples, the memory 106, memory 120 can store original video data, for example, original video from the video source 104 and original, decoded video data from the video decoder 300. Additionally or alternatively, the memory 106, memory 120 can store software instructions that can be executed by, for example, the video encoder 200 and the video decoder 300, respectively. Although the memory 106 and memory 120 are shown separately from the video encoder 200 and the video decoder 300 in this example, 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 memory 106, memory 120 can store encoded video data, for example, output from the video encoder 200 and input to the video decoder 300. In some examples, a portion of memory 106, memory 120 may be allocated as one or more video buffers, eg, to store raw, decoded, and / or encoded video data.
[0030] 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 target device 116. In one example, the computer-readable medium 110 represents a communication medium so that the source device 102 can directly send the encoded video data to the target device 116 in real time, for example, via a radio frequency network or a computer-based network. The output interface 108 may modulate the transmission signal including the encoded video data, and the input interface 122 may demodulate the received transmission signal according to a communication standard (such as a wireless communication protocol). The communication medium may include any wireless communication medium or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form a 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 may be used to facilitate communication from the source device 102 to the target device 116.
[0031] In some examples, source device 102 may output the encoded data from output interface 108 to storage device 112. Similarly, target 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 drive, a Blu-ray disc, a DVD, a CD-ROM, flash memory, volatile or non-volatile memory, or any other suitable digital storage medium for storing encoded video data.
[0032] In some examples, source device 102 may output the encoded video data to file server 114 or another intermediate storage device that may store the encoded video data generated by source device 102. Target device 116 may access the stored video data from file server 114 via streaming or downloading.
[0033] The file server 114 may be any type of server device capable of storing and sending the encoded video data to the target device 116. The file server 114 may represent a network server (e.g., for a website), a server configured to provide a file transfer protocol service (such as the File Transfer Protocol (FTP) or the File Delivery over Unidirectional Transport (FLUTE) protocol), a content delivery network (CDN) device, a hypertext transfer protocol (HTTP) server, a Multimedia Broadcast Multicast Service (MBMS) or an enhanced MBMS (eMBMS) server, and / or a network attached storage (NAS) device. The file server 114 may additionally or alternatively implement one or more HTTP streaming protocols, such as Dynamic Adaptive Streaming over HTTP (DASH), HTTP Real-Time Streaming (HLS), Real-Time Streaming Protocol (RTSP), HTTP Dynamic Streaming, etc.
[0034] The target device 116 may access the encoded video data from the file server 114 through 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 both, suitable for accessing the encoded video data stored on the file server 114. The input interface 122 may be configured to operate according to any one or more of the various protocols discussed above for retrieving or receiving media data from the file server 114 or other such protocols for retrieving media data.
[0035] Output interface 108 and input interface 122 may represent wireless transmitters / receivers, modems, wired networking 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 (e.g., encoded video data) according to a cellular communication standard (e.g., 4G, 4G-LTE (Long Term Evolution), Advanced LTE, 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 (e.g., encoded video data) according to other wireless standards (e.g., IEEE 802.11 specifications, IEEE 802.15 specifications (e.g., ZigBee specifications), or ... TM(Zigbee TM )),Bluetooth TM Standards, etc.) to transmit data (such as encoded video data). In some examples, source device 102 and / or target device 116 may include respective system-on-chip (SoC) devices. For example, source device 102 may include a SoC device to perform functions attributed to video encoder 200 and / or output interface 108, and target device 116 may include a SoC device to perform functions attributed to video decoder 300 and / or input interface 122.
[0036] The techniques of the present disclosure may be applied to support video decoding for any of a variety of multimedia applications, such as over-the-air television broadcasts, cable television transmissions, satellite television transmissions, Internet streaming video transmissions 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.
[0037] The input interface 122 of the target 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, which is also used by the video decoder 300, such as syntax elements with values describing characteristics of video blocks or other decoded units (e.g., slices, pictures, groups of pictures, sequences, etc.) and / or processing of video blocks or other decoded units. The display device 118 displays the decoded pictures of the decoded video data to the user. The display device 118 can represent any of a variety of display devices, such as a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or another type of display device.
[0038] Although not in Figure 1 , but in some examples, the video encoder 200 and the video decoder 300 may each be integrated with an audio encoder and / or an audio decoder, and may include appropriate MUX-DEMUX units or other hardware and / or software to process multiplexed streams of both audio and video included in a common data stream.
[0039] The video encoder 200 and the video decoder 300 can each be implemented 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-transitory computer-readable medium, and execute instructions in hardware using one or more processors 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) in the respective device. The device including the video encoder 200 and / or the video decoder 300 can include an integrated circuit, a microprocessor, and / or a wireless communication device, such as a cellular phone.
[0040] The video encoder 200 and the video decoder 300 may operate according to a video coding standard such as ITU-T H.265, also known as High Efficiency Video Coding (HEVC) or an extension thereof such as multi-view and / or scalable video coding 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 Coding (VVC). In other examples, the video encoder 200 and the video decoder 300 may operate according to a proprietary video codec / format such as AOMedia Video 1 (AV1), an extension to AV1, and / or a successor version of AV1 (e.g., AV2). In other examples, the video encoder 200 and the video decoder 300 may operate according to other proprietary formats or industry standards. However, the techniques of the present disclosure are not limited to any particular coding standard or format. In general, the video encoder 200 and the video decoder 300 may be configured to perform the techniques of any video coding techniques of the present disclosure in combination with the use of multiple transforms.
[0041] In general, the video encoder 200 and the video decoder 300 can perform block-based decoding of the picture. The term "block" generally refers to a structure that includes data to be processed (e.g., encoded, decoded, or otherwise used in the encoding and / or decoding process). For example, a block may include a two-dimensional matrix of samples of luminance and / or chrominance data. In general, the video encoder 200 and the video decoder 300 can 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 decode the luminance component and the chrominance component instead of decoding the red, green, and blue (RGB) data for the samples of the picture, wherein the chrominance component may include both a red hue chrominance component and a blue hue chrominance component. In some examples, the video encoder 200 converts the received RGB format data to a YUV representation before encoding, and the video decoder 300 converts the YUV representation to an RGB format. Alternatively, a pre-processing unit and a post-processing unit (not shown) can perform these conversions.
[0042] The present disclosure may generally refer to the decoding (e.g., encoding and decoding) of a picture to include the process of encoding or decoding data for the picture. Similarly, the present disclosure may refer to the decoding of a block of a picture to include the process of encoding or decoding data for the block, for example, prediction and / or residual decoding. The encoded video bitstream typically includes a series of values for syntax elements that represent decoding decisions (e.g., decoding modes) and partitioning of the picture into blocks. Therefore, references to decoding a picture or a block should generally be understood as decoding values for syntax elements that form a picture or a block.
[0043] HEVC defines various blocks, including coding units (CUs), prediction units (PUs), and transform units (TUs). According to HEVC, a video decoder (such as the video encoder 200) divides a coding tree unit (CTU) into CUs according to a quadtree structure. That is, the video decoder divides the CTU and the CU into four equal, non-overlapping squares, and each node of the quadtree has zero or four child nodes. A node without a child node may be referred to as a "leaf node", and the CU of such a leaf node may include one or more PUs and / or one or more TUs. The video decoder may further divide the PU and TU. For example, in HEVC, the residual quadtree (RQT) represents the division of the TU. In HEVC, PU represents inter-frame prediction data, and TU represents residual data. The intra-predicted CU includes intra-frame prediction information, such as an intra-frame mode indication.
[0044] 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 decoder (such as the video encoder 200) divides a picture into a plurality of coding tree units (CTUs). The video encoder 200 may divide 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 removes the concept of multiple partition types, such as the separation between CU, PU, and TU of HEVC. The QTBT structure includes two levels: a first level divided according to quadtree partitioning, and a second level divided 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 the coding units (CUs).
[0045] In the MTT partition structure, blocks can be partitioned using quadtree (QT) partitioning, binary tree (BT) partitioning, and one or more types of ternary tree (TT) (also called ternary tree type (TT)) partitioning. A ternary tree or ternary tree type partitioning is a partitioning of a block into three sub-blocks. In some examples, a ternary tree or ternary tree type partitioning divides a block into three sub-blocks without dividing the original block through the center. The partitioning types in MTT (e.g., QT, BT, and TT) can be symmetric or asymmetric.
[0046] When operating according to the AV1 codec, the video encoder 200 and the video decoder 300 can be configured to decode the video data in the form of blocks. In AV1, the largest decoding block that can be processed is called a super block. In AV1, a super block can be 128x128 luminance samples or 64x64 luminance samples. However, in subsequent video decoding formats (e.g., AV2), super blocks can be defined by different (e.g., larger) luminance sample sizes. In some examples, the super block is the top layer of the block quadtree. The video encoder 200 can further divide the super block into smaller decoding blocks. The video encoder 200 can use square or non-square partitioning to divide the super block and other decoding blocks into smaller blocks. Non-square blocks can include N / 2xN, NxN / 2, N / 4xN and NxN / 4 blocks. The video encoder 200 and the video decoder 300 can perform separate prediction and transformation processes for each decoding block.
[0047] AV1 also defines tiles of video data. A tile is a rectangular array of superblocks that can be decoded independently of other tiles. That is, the video encoder 200 and the video decoder 300 can encode and decode decoded blocks within a tile, respectively, without using video data from other tiles. However, the video encoder 200 and the video decoder 300 can perform filtering across tile boundaries. The size of the tile can be uniform or non-uniform. Tile-based decoding can achieve parallel processing and / or multi-threading implemented by the encoder and decoder.
[0048] 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 respective chroma components).
[0049] The video encoder 200 and the video decoder 300 may be configured to use quadtree partitioning, QTBT partitioning, MTT partitioning, super block partitioning, or other partitioning structures.
[0050] In some examples, a CTU includes a coding tree block (CTB) of luma samples, two corresponding CTBs of chroma samples of a picture with three sample arrays, or a CTB of samples of a monochrome picture or a picture coded using three independent color planes and syntax structures for coding the samples. A CTB can be an NxN block of samples for some value of N, so that the partitioning of the constituent elements into the CTB is a partitioning. The constituent elements are arrays or single samples of one of the three arrays (luminance and two chroma) that make up a picture of 4:2:0, 4:2:2, or 4:4:4 color format, or the array or single sample of the array that makes up a picture of monochrome format. In some examples, the coding block is an MxN block of samples for some values of M and N, so that the partitioning of the CTB into the coding block is a partitioning.
[0051] Blocks (e.g., CTUs or CUs) may be grouped in a picture in various ways. For example, a brick may refer to a CTU row of a rectangular area within a particular tile in a picture. A tile may be a rectangular area of a CTU within a particular tile column and a particular tile row in a picture. A tile column refers to a CTU of a rectangular area with a height equal to the height of the picture and a width specified by a syntax element (e.g., such as in a picture parameter set). A tile row refers to a CTU of a rectangular area with a height specified by a syntax element (e.g., such as in a picture parameter set) and a width equal to the width of the picture.
[0052] In some examples, a tile can be divided into multiple bricks, each of which can include one or more CTU rows within the tile. Tiles that are not divided into multiple bricks can also be called bricks. However, a brick that is a true subset of a tile may not be called a tile. Bricks in a picture can also be arranged in slices. A slice can be an integer number of bricks in a picture that can be exclusively contained in a single network abstraction layer (NAL) unit. In some examples, a slice includes multiple complete tiles, or only a continuous sequence of complete bricks of a tile.
[0053] The present disclosure may use "NxN" and "N by N" interchangeably to refer to the sample dimensions of a block (such as a CU or other video block) in terms of vertical and horizontal dimensions, for example, 16x16 samples or 16 by 16 samples. In general, a 16x16 CU will have 16 samples in the vertical direction (y=16) and 16 samples in the horizontal direction (x=16). Similarly, an NxN 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. Furthermore, a CU need not necessarily have the same number of samples in the horizontal direction as in the vertical direction. For example, a CU may include NxM samples, where M is not necessarily equal to N.
[0054] The video encoder 200 encodes video data representing prediction and / or residual information and other information for a CU. 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 samples of the CU before encoding and the prediction block.
[0055] 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 decoded picture, while intra-frame prediction generally refers to predicting a CU from previously decoded 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, according to the difference between the CU and the reference block. The video encoder 200 can use the sum of absolute differences (SAD), the sum of squared errors (SSD), the mean absolute difference (MAD), the mean square error (MSD) or other such differential calculations to calculate the differential 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.
[0056] 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 zooming in or out, rotation, perspective motion, or other irregular motion types.
[0057] 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 of various directions as well as a plane mode and a DC mode. In general, the video encoder 200 selects an intra prediction mode that describes, for a current block (e.g., a block of a CU), neighboring samples from which the samples of the current block are predicted. Assuming that the video encoder 200 decodes CTUs and CUs in a raster scan order (left to right, top to bottom), such samples can typically be above, above and to the left, or to the left of the current block in the same picture as the current block.
[0058] The video encoder 200 encodes data representing a prediction mode for the current block. For example, for an inter-frame prediction mode, the video encoder 200 may encode data representing which inter-frame prediction mode is used among various available inter-frame prediction modes and motion information for the corresponding mode. For unidirectional inter-frame prediction or bidirectional inter-frame prediction, for example, the video encoder 200 may encode motion vectors using improved motion vector prediction (AMVP) or merge mode. The video encoder 200 may use a similar mode to encode motion vectors for affine motion compensation mode.
[0059] AV1 includes two general techniques for encoding and decoding coded blocks of video data. The two general techniques are intra prediction (e.g., intra prediction or spatial prediction) and inter prediction (e.g., inter prediction or temporal prediction). In the context of AV1, when an intra prediction mode is used to predict a block of a current frame of video data, the video encoder 200 and the video decoder 300 do not use video data from other frames of the video data. For most intra prediction modes, the video encoder 200 encodes a block of the current frame based on the difference between sample values in the current block and prediction values generated from reference samples in the same frame. The video encoder 200 determines the prediction values generated from the reference samples based on the intra prediction mode.
[0060] 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 formed using the corresponding prediction mode for the block. The video encoder 200 can apply one or more transforms to the residual block to generate 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. In addition, 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 the application of one or more transforms.
[0061] As described above, after any transformation to 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 possibly reduce the amount of data used to represent the transform coefficients, 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 bitwise right shift of the value to be quantized.
[0062] 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 higher energy (and therefore lower frequency) transform coefficients in front of the vector, and 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 predefined scan 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 for describing metadata associated with the encoded video data for use by the video decoder 300 when decoding the video data.
[0063] 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 the value of a neighbor of the symbol is a zero value. The probability determination may be based on the context assigned to the symbol.
[0064] The video encoder 200 may further generate syntax data (such as block-based syntax data, picture-based syntax data, and sequence-based syntax data) to the video decoder 300, for example, in a picture header, a block header, a slice header, or other syntax data (such as a sequence parameter set (SPS), a picture parameter set (PPS), or a video parameter set (VPS). The video decoder 300 may likewise decode such syntax data to determine how to decode the corresponding video data.
[0065] In this way, the video encoder 200 can generate a bitstream including the encoded video data, for example, a syntax element describing the partition of the picture into blocks (e.g., CU) and prediction and / or residual information for the blocks. Finally, the video decoder 300 can receive the bitstream and decode the encoded video data.
[0066] In general, the video decoder 300 performs a reciprocal 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 for the bitstream using CABAC in a manner substantially similar to (albeit reciprocal to) the CABAC encoding process of the video encoder 200. The syntax elements may define partitioning information for the partitioning of the picture into CTUs and the partitioning of each CTU according to a corresponding partitioning structure (such as a QTBT structure) to define CUs of the CTUs. The syntax elements may further define prediction information and residual information for a block (e.g., a CU) of video data.
[0067] 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.
[0068] The present disclosure may generally refer to "signaling" certain information (such as syntax elements). The term "signaling" may generally refer to the communication of values for syntax elements and / or other data used to decode the encoded video data. That is, the video encoder 200 may signal values for syntax elements in a bitstream. Generally speaking, signaling refers to generating values in a bitstream. As described above, the source device 102 may transmit the bitstream to the target device 116 substantially in real time or in non-real time, such as may occur when storing syntax elements to the storage device 112 for later retrieval by the target device 116.
[0069] According to the techniques of the present disclosure, as will be described in more detail below, the video encoder 200 and the video decoder 300 may be configured to determine whether to enable an inter-MTS (Multiple Transform Set) mode for a block of a sequence based on the size of the block compared to a minimum block size or a maximum block size, and to decode the block using the inter-MTS mode based on the determination.
[0070] In one example, the video encoder 200 may be configured to: adaptively determine one or more of a maximum block size or a minimum block size for applying an inter-frame MTS mode; determine whether to enable the inter-frame MTS mode for a block of video data based on a size of the block compared to one or more of the minimum block size or the maximum block size; and encode the block using the inter-frame MTS mode based on enabling the inter-frame MTS mode, wherein, in order to encode the block using the inter-frame MTS mode, one or more processors are configured to: apply one or more of a plurality of transforms to a residual value associated with the block of video data. In a reciprocal manner, the video decoder 300 can be configured to: adaptively determine one or more of a maximum block size or a minimum block size for applying the inter-frame MTS mode; determine whether to enable the inter-frame MTS mode for a block of video data based on a size of the block compared to one or more of the minimum block size or the maximum block size; and decode the block using the inter-frame MTS mode based on enabling the inter-frame MTS mode, wherein, in order to decode the block using the inter-frame MTS mode, one or more processors are configured to: apply one or more of a plurality of transforms to transform coefficients associated with the block of video data.
[0071] The Versatile Video Coding (VVC) standard was developed by the Joint Video Experts Team (JVET) of ITU-T and ISO / IEC to achieve massive compression capabilities beyond HEVC for a wide range of applications. The VVC specification was finalized in July 2020 and published by both ITU-T and ISO / IEC. The VVC specification specifies standard bitstream and picture formats, high-level syntax (HLS) and coding unit-level syntax, and parsing and decoding processes. VVC also specifies profile / layer / level (PTL) restrictions, byte stream formats, assumed reference decoders, and supplementary enhancement information (SEI) in annexes.
[0072] Since April 2021, JVET has been developing the Enhanced Compression Model (ECM) software to enhance compression capabilities beyond VVC. The set of decoding tools in the ECM software includes functional blocks in the hybrid video decoding framework, including intra-frame prediction, inter-frame prediction, transform and coefficient decoding, in-loop filtering, and entropy decoding.
[0073] Multiple Transformation Selection in ECM Version 4.0 (ECM-4.0)
[0074] In addition to the DCT-2 transform already adopted in HEVC, a multiple transform selection (MTS) scheme can also be used for residual decoding. In some examples, MTS can be an inter-frame MTS mode for residual decoding of inter-frame decoding blocks. Although the technology of the present disclosure is described with reference to the inter-frame MTS mode, the technology of the present disclosure is also applicable to other MTS modes or technologies, including MTS modes that can be used for non-inter-frame decoding blocks.
[0075] An example inter-frame MTS scheme in ECM uses multiple transforms selected from multiple transform kernels, including a type 8 DCT (referred to as "DCT-8" or "DCT8") and a type 7 discrete sine transform (referred to as "DST-7" or "DST7"). These two transform kernels can be applied to both the vertical transform and the horizontal transform, which corresponds to four different possible combinations of the horizontal transform (trHor) and the vertical transform (trVer). The combinations are as follows:
[0076] {trVer,trHor}={DST7,DST7},{DST7,DCT8},{DCT8,DST7},{DCT8,DCT8}
[0077] For a given block (e.g., CU), the video encoder 200 may signal an MTS index (mts_idx) syntax element to indicate which primary transform kernels are used for the corresponding TUs of the CU. A value of mts_idx=0 indicates that DCT2 will be used for both horizontal and vertical transforms, and values of mts_idx from 1 to 4 (e.g., mts_idx=[1-4]) indicate one of the four MTS candidates shown in Table 1 below.
[0078] Table 1
[0079] mts_idx 0 1 2 3 4 trTypeHor DCT2 DST7 DCT8 DST7 DCT8 trTypeVer DCT2 DST7 DST7 DCT8 DCT8
[0080] The corresponding binarization of mts_idx is shown in Table 2 below:
[0081] Table 2
[0082] mts_idx Binary notation 0 0 1 100 2 101 3 110 4 111
[0083] In one example, the syntax element mts_idx is not signaled when the block contains only DC coefficients, or the position of the last coefficient in the scan order (lastScanPos) is 0. In this case, mts_idx is inferred to be 0 (or DCT2 is applied). On the decoder side, parsing of mts_idx occurs after parsing of the coefficients, so the value of lastScanPos is known when parsing mts_idx.
[0084] In addition, the video encoder 200 can signal an SPS / sequence level flag to indicate whether the inter-frame MTS mode is enabled for the sequence. If it is set to 1, the inter-frame MTS mode is enabled for all frames (e.g., pictures) of the sequence, and all blocks (e.g., blocks from the minimum CU size (e.g., 4) to the maximum CU size (e.g., 256)) are decoded using inter-frame MTS. If the sequence level flag is set to 0, the inter-frame MTS mode is disabled for decoding frames (e.g., pictures) of the sequence.
[0085] In the example of VVC, the inter-MTS mode is only allowed for blocks up to 32 samples in size (e.g., block width <= 32 samples, and block height <= 32 samples) to avoid using larger non-DCT2 transform kernels (size> 32 samples) and to reduce hardware complexity when the inter-MTS mode is enabled at the SPS level. This block size restriction is the same (e.g., fixed at both the video encoder and the video decoder) regardless of all sequences, including sequences with any combination of sequence characteristics (such as spatiotemporal characteristics of the video content, sequence resolution, etc.).
[0086] In one example, spatiotemporal characteristics can include two factors. One factor is spatial complexity. Sequences with mostly uniform areas have lower spatial complexity; and sequences with more details (e.g., edges, textures) can be considered to have high spatial complexity. Another factor is temporal complexity. If the amount of motion between frames is quite high (e.g., captured by a moving camera), such a sequence can be considered to have high temporal complexity. If the motion between frames is small (e.g., from a static camera), such a sequence can be considered to have low temporal complexity.
[0087] Typically, sequences with high spatial complexity and / or high temporal complexity produce higher residual values when encoded. Therefore, it may be beneficial to appropriately configure MTS usage according to these characteristics. In addition, sequences with higher resolution can benefit from decoding with larger transform blocks, and vice versa.
[0088] In some examples, the compression gains of the inter-MTS mode may come at the expense of higher coding complexity, as reported in the following document: T. Hashimoto, T. Ikai "EE2-related: inter MTS refinement on adaptive intra MTS (EE2-4.4)", 25th JVET Meeting, Teleconference, January 2022, JVET-Y0159 (test1): BDR savings of 0.35% and runtime increase of about 20% over ECM-3.0.
[0089] In view of this tradeoff, the present disclosure describes various techniques for enabling inter-frame MTS mode in a manner that allows both compression gain and reduced coding complexity. In a general example, the use of the inter-frame MTS mode can be adaptively limited to certain block sizes to reduce encoder runtime. In particular, instead of limiting the use of the inter-frame MTS mode to a fixed block size, the maximum and / or minimum block size can be adaptively determined at the sequence, picture, and / or slice level. The statistics of the blocks containing residual values can generally depend on the content resolution. For example, low-resolution sequences are typically decoded using block sizes of up to 16, while larger block sizes can be used more frequently for higher resolution sequences. Therefore, in some examples, the block size limits of the present disclosure may depend on the content resolution and / or spatiotemporal characteristics.
[0090] The maximum or minimum block size may be determined based on the spatiotemporal characteristics and / or the sequence resolution at the video encoder 200. In some examples, the video encoder 200 may encode one or more syntax elements indicating the maximum or minimum block size for enabling the inter-MTS mode, and may signal the syntax elements to the video decoder 300 at the sequence, picture, and / or slice level. In other examples, the video decoder 300 may independently determine the maximum or minimum block size based on the spatiotemporal characteristics and / or the sequence resolution in the same manner as the video encoder 200 without receiving or parsing the maximum or minimum block size syntax elements.
[0091] Example
[0092] The examples listed below can be applied independently or in any combination. In order to better achieve a beneficial trade-off between encoder / decoder runtime and compression gain, the following flexible technique for activating inter-MTS mode is described.
[0093] In one example, the maximum (and / or minimum) size of a block to which the inter-frame MTS mode can be applied is signaled at the SPS level. The size can be selected by an encoder (e.g., the video encoder 200) based on the spatiotemporal characteristics of the content and / or the sequence resolution, etc. In this example, if the inter-frame MTS mode is enabled for a sequence (e.g., as indicated by a sequence level flag), the video decoder 300 can determine to limit or enable the use of the inter-frame MTS mode for certain blocks based on the maximum and / or minimum block size signaled at the SPS level.
[0094] In one example, for lower resolution sequences (eg, <= 1080p), the maximum block size limit may be 16 samples, and for higher resolution sequences (eg, > 1080p), the maximum block size limit may be 32 samples.
[0095] In a general example of the present disclosure, the video encoder 200 and the video decoder 300 may be configured to adaptively determine one or more of the maximum block size or the minimum block size for applying the inter-frame MTS mode. That is, the video encoder 200 and the video decoder 300 may adaptively determine the minimum and maximum block sizes based on various characteristics of the video data, rather than using static maximum and minimum block sizes. In some examples, the video encoder 200 may signal one or more syntax elements indicating the maximum or minimum block size for enabling the inter-frame MTS mode. In this way, the size of the block that can be decoded using the inter-frame MTS mode is flexible and adaptable, thereby improving the decoding efficiency of certain pictures of the video sequence based on the actual spatiotemporal and / or resolution characteristics of the video data.
[0096] After adaptively determining the minimum and / or maximum block size for inter-frame MTS, the video encoder 200 and the video decoder 300 can determine whether to enable the inter-frame MTS mode for the block based on the size of the block of video data compared with one or more of the minimum block size or the maximum block size. In some examples, the minimum and maximum block sizes can be multiple samples of the vertical or horizontal dimension of the block. The video encoder 200 and the video decoder 300 compare the minimum vertical or horizontal dimension of the block with the value of the minimum block size. Similarly, the video encoder 200 and the video decoder 300 compare the maximum vertical or horizontal dimension of the block with the value of the maximum block size. In other examples, the minimum or maximum block size can be represented by the total number of samples in the block.
[0097] If only the maximum size is used, then if the size of the block of video data (e.g., horizontal or vertical size) is less than or equal to the maximum size, the video encoder 200 and the video decoder 300 may determine that the block may be decoded using the inter-frame MTS mode. That is, the inter-frame MTS mode is enabled. Otherwise, if the size of the block of video data (e.g., horizontal or vertical size) is greater than the maximum size, the video encoder 200 and the video decoder 300 may determine that the block may not be decoded using the inter-frame MTS mode. That is, the inter-frame MTS mode is disabled.
[0098] If only the minimum size is used, then if the size (e.g., horizontal or vertical size) of the block of video data is greater than or equal to the minimum size, the video encoder 200 and the video decoder 300 may determine that the block may be decoded using the inter-frame MTS mode. That is, the inter-frame MTS mode is enabled. Otherwise, if the size (e.g., horizontal or vertical size) of the block of video data is less than the maximum size, the video encoder 200 and the video decoder 300 may determine that the block may not be decoded using the inter-frame MTS mode. That is, the inter-frame MTS mode is disabled.
[0099] If both the minimum size and the maximum size are used, the video encoder 200 and the video decoder determine whether the size of the block being coded meets both criteria to determine whether to enable the inter-MTS mode.
[0100] Then, the video encoder 200 and the video decoder 300 can encode / decode the block using the inter-MTS mode based on enabling the inter-MTS mode. In particular, the video encoder 200 and the video decoder 300 can apply one or more transforms (or inverse transforms) of the plurality of transforms to transform coefficients associated with the block of video data.
[0101] In one example of the present disclosure, the video encoder 200 may be configured to encode one or more syntax elements indicating one or more of the maximum block size or the minimum block size at a sequence level. Likewise, the video decoder 300 may decode one or more syntax elements indicating one or more of the maximum block size or the minimum block size at a sequence level. In one example, the sequence level is a sequence parameter set (SPS).
[0102] In other examples, the minimum and / or maximum block size information indicating whether the inter-MTS can be applied may be signaled for each slice or each picture. For example, the video encoder 200 and the video decoder 300 may be configured to encode / decode one or more syntax elements indicating the minimum block size or the maximum block size at a picture level (e.g., PPS). In another example, the video encoder 200 and the video decoder 300 may be configured to encode / decode one or more syntax elements indicating the minimum block size or the maximum block size at a slice level (e.g., a slice header).
[0103] In another example of the present disclosure, the maximum and / or minimum block size information indicating whether the inter-frame MTS mode can be applied can be predetermined by the video encoder 200 and the video decoder 300 according to the sequence resolution or other sequence-specific characteristics (temporal and spatial, etc.), and thus no signaling is required. That is, the video decoder 300 can determine the size range to which the inter-frame MTS mode can be applied according to video characteristics such as sequence resolution or other sequence-specific characteristics (temporal and spatial, etc.).
[0104] In another example, the video encoder 200 and the video decoder 300 may determine to apply inter-frame MTS to blocks with a specific aspect ratio. The video encoder 200 may signal the aspect ratios to which inter-frame MTS may be applied at the SPS, slice, and / or picture level. In another example, inter-frame MTS may be disabled (or enabled) for certain inter-frame prediction modes. Information indicating for which inter-frame prediction modes inter-frame MTS is enabled or disabled may be signaled or may be predetermined by the codec (so no signaling is required). Determining the enabling or disabling of inter-frame MTS modes based on aspect ratio or inter-frame prediction mode may be used alone or together, including with the maximum and / or minimum block size restrictions discussed above.
[0105] In another example, only a subset of MTS candidates may be used for inter-MTS. The video encoder 200 may signal information indicating which of multiple MTS transforms (also referred to as MTS candidates) at the SPS, slice, and / or picture level. For example, the video encoder 200 may encode one or more syntax elements indicating a subset of transforms in multiple transforms to be used for decoding a block using an inter-MTS mode. Similarly, the video decoder 300 may decode one or more syntax elements indicating a subset of transforms in multiple transforms to be used for decoding a block using an inter-MTS mode. The video decoder 300 may then apply the inter-MTS mode using the indicated subset of MTS candidates (e.g., a subset of transforms of multiple MTS transforms). In this way, a smaller mts_idx value may be used, thereby reducing overhead signaling and improving coding efficiency.
[0106] In another example, the video encoder 200 can signal inter-MTS usage (e.g., enabling or disabling inter-MTS mode) for each picture or each slice. In this way, the use of inter-MTS can be controlled at a finer granularity level, thereby reducing encoding and / or decoding runtime.
[0107] Figure 2 is a block diagram illustrating an example video encoder 200 that may perform the techniques of this disclosure. Figure 2 For the purpose of explanation, it should not be considered as limiting the techniques widely illustrated and described in the present disclosure. For the purpose of explanation, the present disclosure describes the video encoder 200 according to VCC technology (ITU-T H.266 under development) and HEVC (ITU-T H.265) technology. However, the techniques of the present disclosure can be performed by a video encoding device configured to implement other video coding standards and video coding formats (e.g., AV1 and successors of the AV1 video coding format).
[0108] exist Figure 2In 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 one 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 can be implemented in one or more processors or in processing circuits. For example, the units of the video encoder 200 can be implemented as one or more circuits or logic elements as part of a hardware circuit, or as part of a processor, ASIC, or FPGA. In addition, the video encoder 200 may include additional or alternative processors or processing circuits to perform these functions and other functions.
[0109] The video data memory 230 may store video data to be encoded by the components of the video encoder 200. The video encoder 200 may receive video data from, for example, the video source 104 ( Figure 1 ) receives the video data stored in the video data memory 230. DPB218 can act as a reference picture memory, which stores reference video data for use when the video encoder 200 predicts subsequent video data. Video data memory 230 and DPB 218 can be formed by any one of a variety of memory devices (e.g., dynamic random access memory (DRAM) (including synchronous DRAM (SDRAM)), magnetoresistive RAM (MRAM), resistive RAM (RRAM) or other types of storage devices). Video data memory 230 and DPB 218 can be provided by the same memory device or a separate memory device. In various examples, video data memory 230 can be on the chip with other components of the video encoder 200, as shown, or off-chip relative to those components.
[0110] In the present disclosure, references to the video data memory 230 should not be interpreted as limited to memory inside the video encoder 200 (unless specifically described as such), nor should they be interpreted as limited to memory outside the video encoder 200 (unless specifically described as such). Rather, references to the video data memory 230 should be understood as a reference memory storing video data, where the video encoder 200 receives the video data (e.g., video data of a current block to be encoded) for encoding. Figure 1 The memory 106 may also provide temporary storage for outputs from the various units of the video encoder 200 .
[0111] Shows Figure 2 The various units of the video encoder 200 are described 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 are pre-set on 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 execute software or firmware that causes the programmable circuit to operate in a manner defined by the instructions of the software or firmware. Fixed-function circuits can execute software instructions (e.g., for receiving parameters or outputting parameters), but the type of operation performed by the fixed-function circuit is generally immutable. In some examples, one or more of these units may be different circuit blocks (fixed function or programmable), and in some examples, the one or more units may be integrated circuits.
[0112] 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 (not shown) in the video encoder 200 may store such instructions.
[0113] The video data memory 230 is configured to store received video data. The video encoder 200 may retrieve pictures of 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.
[0114] 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. For 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, and the like.
[0115] The mode selection unit 202 typically coordinates multiple encoding passes to test combinations of encoding parameters and final rate-distortion values for such combinations. The encoding parameters may include: CTU to CU partitioning, prediction mode for CU, transform type for residual data of CU, quantization parameter for residual data of CU, 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.
[0116] The video encoder 200 may divide the picture retrieved from the video data memory 230 into a series of CTUs and encapsulate one or more CTUs in a segment. The mode selection unit 202 may divide the CTUs of the picture according to a tree structure (e.g., the MTT structure, QTBT structure, super block structure, or quadtree structure described above). As described above, the video encoder 200 may form one or more CUs by dividing the CTUs according to the tree structure. Such CUs may also be generally referred to as "video blocks" or "blocks".
[0117] 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 current CU, or in HEVC, the overlapping portion of the PU and TU). For inter prediction of the current block, the motion estimation unit 222 may 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 decoded pictures stored in the DPB 218). Specifically, the motion estimation unit 222 may calculate a value indicating how similar a potential reference block is 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), and the like. The motion estimation unit 222 may typically perform these calculations using the sample-by-sample differences between the current block and the reference block being considered. The motion estimation unit 222 may identify the reference block having the minimum value produced by these calculations, which indicates the reference block that most closely matches the current block.
[0118] 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 vector has fractional sampling accuracy, the motion compensation unit 224 may interpolate the 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 corresponding motion vectors, for example, by sample-by-sample averaging or weighted averaging, and combine the retrieved data.
[0119] When operating according to the AV1 video coding format, the motion estimation unit 222 and the motion compensation unit 224 may be configured to encode coding blocks of video data (e.g., luma and chroma coding blocks) using translational motion compensation, affine motion compensation, overlapped block motion compensation (OBMC), and / or composite inter-frame intra-frame prediction.
[0120] As another example, for intra prediction or intra prediction decoding, the intra prediction unit 226 can generate a prediction block based on samples adjacent to the current block. For example, for directional mode, the intra prediction unit 226 can generally mathematically combine the values of adjacent samples and fill these calculated values across the current block in a defined direction to produce a prediction block. As another example, for DC mode, the intra prediction unit 226 can calculate the average value of adjacent samples to the current block and generate a prediction block to include the resulting average value for each sample of the prediction block.
[0121] When operating according to the AV1 video coding format, the intra prediction unit 226 can be configured to encode coding blocks of video data (e.g., luma and chroma coding blocks) using directional intra prediction, non-directional intra prediction, recursive filtering intra prediction, chroma from luma (CFL) prediction, intra block copy (IBC), and / or palette mode. The mode selection unit 202 may include additional functional units to perform video prediction according to other prediction modes.
[0122] 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.
[0123] In the example where the mode selection unit 202 divides 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 coding 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 2Nx2N, the video encoder 200 may support PU sizes of 2Nx2N or NxN for intra-frame prediction, and support symmetric PU sizes of 2Nx2N, 2NxN, Nx2N, NxN, etc. for inter-frame prediction. The video encoder 200 and the video decoder 300 may also support asymmetric partitioning of PU sizes of 2NxnU, 2NxnD, nLx2N, and nRx2N for inter-frame prediction.
[0124] In an example where the mode selection unit 202 does not further divide the CU into PUs, each CU may be associated with a luma coding block and a corresponding chroma coding block. As described above, the size of a CU may refer to the size of the luma coding block of the CU. The video encoder 200 and the video decoder 300 may support a CU size of 2Nx2N, 2NxN, or Nx2N.
[0125] For other video coding techniques (e.g., intra-block copy mode coding, affine mode coding, and linear model (LM) mode coding, to name a few examples), the mode selection unit 202 generates a prediction block for the current block being encoded via various units associated with the coding technique. In some examples (e.g., palette mode coding), the mode selection unit 202 may not generate a prediction block, but instead generate syntax elements that indicate 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 for encoding.
[0126] As described above, the residual generation unit 204 receives video data for 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.
[0127] 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 (e.g., a primary transform and a secondary transform (e.g., a rotation transform)) on the residual block. In some examples, the transform processing unit 206 does not apply a transform to the residual block.
[0128] The transform processing unit 206 may be configured to apply a transform according to the above-mentioned inter-frame MTS mode. In particular, the transform processing unit 206 may be configured to enable or disable the inter-frame MTS mode using any combination of the techniques of the present disclosure. In one example, the transform processing unit 206 may be configured to adaptively determine one or more of the maximum block size or the minimum block size for applying the inter-frame MTS mode, and determine whether to enable the inter-frame MTS mode for the block based on the size of the block of video data compared to one or more of the minimum block size or the maximum block size. The video encoder 200 including the transform processing unit 206 may decode the block using the inter-frame MTS mode based on enabling the inter-frame MTS mode, wherein, in order to decode the block using the inter-frame MTS mode, the transform processing unit 206 is configured to apply one or more of the multiple transforms to the residual value associated with the video data block.
[0129] When operating according to AV1, the transform processing unit 206 may apply one or more transforms to the residual block to generate a transform coefficient block (referred to herein as a "transform coefficient block"). The transform processing unit 206 may apply various transforms to the residual block to form a transform coefficient block. For example, the transform processing unit 206 may apply a horizontal / vertical transform combination, which may include a discrete cosine transform (DCT), an asymmetric discrete sine transform (ADST), a flipped ADST (e.g., an inverse ADST), and an identity transform (IDTX). When an identity transform is used, a transform may be skipped in one of the vertical or horizontal directions. In some examples, the transform process may be skipped.
[0130] 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 result in a loss of information, and therefore, the precision of the quantized transform coefficients may be lower than the precision of the original transform coefficients produced by the transform processing unit 206.
[0131] The inverse quantization unit 210 and the inverse transform processing unit 212 may apply inverse quantization and inverse transform to the quantized transform coefficient block, respectively, 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 it may have 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 in the prediction block generated by the mode selection unit 202 to generate a reconstructed block.
[0132] Filter unit 216 may perform one or more filtering operations on the reconstructed blocks. For example, filter unit 216 may perform a deblocking operation to reduce blocking artifacts along the edges of the CU. In some examples, the operations of filter unit 216 may be skipped.
[0133] When operating according to AV1, 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 block artifacts along the edge of the CU. In other examples, filter unit 216 may apply a constrained direction enhancement filter (CDEF), which may be applied after deblocking and may include applying an inseparable nonlinear low-pass directional filter based on the estimated edge direction. Filter unit 216 may also include a loop recovery filter applied after CDEF, and may include a separable symmetric normalized Wiener filter or a dual self-guided filter.
[0134] 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 performed, the reconstruction unit 214 can store the reconstructed blocks in the DPB 218. In an example where the operation of the filter unit 216 is performed, the filter unit 216 can store the filtered reconstructed blocks in the DPB 218. The motion estimation unit 222 and the motion compensation unit 224 can retrieve a reference picture from the DPB 218, which is formed by the reconstructed (and possibly filtered) blocks to perform inter-frame prediction on 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.
[0135] 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 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 decoding operation, a syntax-based context-adaptive binary arithmetic decoding (SBAC) operation, a probability interval partitioning entropy (PIPE) decoding operation, an exponential Grunb 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 where the syntax elements are not entropy-encoded.
[0136] The video encoder 200 may output a bitstream including entropy-encoded syntax elements required for reconstructing blocks of a slice or picture. Specifically, the entropy encoding unit 220 may output a bitstream.
[0137] According to AV1, the entropy coding unit 220 may be configured as a symbol-to-symbol adaptive multi-symbol arithmetic decoder. The syntax elements in AV1 include an alphabet of N elements, and the context (e.g., a probability model) includes a set of N probabilities. The entropy coding unit 220 may store the probabilities as an n-bit (e.g., 15-bit) cumulative distribution function (CDF). The entropy coding unit 220 may perform recursive scaling using an update factor based on the alphabet size to update the context.
[0138] The operations described above are described with respect to blocks. Such descriptions should be understood as operations for luma coding blocks and / or chroma coding blocks. As described above, in some examples, the luma coding blocks and chroma coding blocks are the luma and chroma components of a CU. In some examples, the luma coding blocks and chroma coding blocks are the luma components and chroma components of a PU.
[0139] In some examples, operations performed for luma coding blocks do not need to be repeated for chroma coding blocks. For one example, operations for identifying a motion vector (MV) and reference picture for a luma coding block do not need to be repeated to identify an MV and reference picture for a chroma block. Instead, the MV for the luma coding block may be scaled to determine the MV for the chroma block, and the reference picture may be the same. For another example, the intra prediction process may be the same for luma coding blocks and chroma coding blocks.
[0140] Video encoder 200 represents an example of a device configured to encode video data, the device comprising: a memory configured to store the video data; and one or more processing units implemented in circuits and configured to: determine whether to enable inter-frame MTS mode for a block of a sequence based on the size of the block compared to a minimum block size or a maximum block size; and decode the block using the inter-frame MTS mode based on the determination.
[0141] Figure 3 is a block diagram illustrating an example video decoder 300 that may perform the techniques of this disclosure. Figure 3 For the purpose of explanation, it should not be considered as limiting the techniques widely exemplified and described in the present disclosure. For the sake of explanation, the present disclosure describes the video decoder 300 according to VVC technology (ITU-T H.266 under development) and HEVC technology (ITU-T H.265). However, the techniques of the present disclosure can be performed by a video decoding device configured to implement other video decoding standards.
[0142] exist Figure 3In the example of , the video decoder 300 includes a decoded 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 can be implemented in one or more processors or in processing circuits. For example, the units of the video decoder 300 can be implemented as one or more circuits or logic elements, as part of a hardware circuit, or as part of a processor, ASIC, or FPGA. In addition, the video decoder 300 can include additional or alternative processors or processing circuits to perform these functions and other functions.
[0143] 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 for performing predictions according to other prediction modes. For 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.
[0144] When operating according to AV1, the motion compensation unit 316 can be configured to decode the coding blocks of the video data (e.g., both the luma coding blocks and the chroma coding blocks) using translational motion compensation, affine motion compensation, OBMC, and / or composite inter-intra prediction, as described above. The intra prediction unit 318 can be configured to decode the coding blocks of the video data (e.g., both the luma coding blocks and the chroma coding blocks) using directional intra prediction, non-directional intra prediction, recursive filtering intra prediction, CFL, intra block copy (IBC), and / or palette mode, as described above.
[0145] CPB memory 320 may store video data (eg, 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) to obtain video data stored in the CPB memory 320. The CPB memory 320 may include a CPB that stores encoded video data (e.g., syntax elements) from an encoded video bitstream. Moreover, the CPB memory 320 may store video data other than syntax elements of decoded pictures, for example, temporary data representing outputs from various units of the video decoder 300. The DPB 314 typically stores decoded pictures, and the video decoder 300 may output and / or use the decoded pictures as reference video data when decoding subsequent data or pictures of the encoded video bitstream. The CPB memory 320 and the DPB 314 may be formed by any of a variety of memory devices such as DRAM (including SDRAM), MRAM, RRAM, or other types of storage devices. The CPB memory 320 and the DPB 314 may be provided by the same memory device or different memory devices. In various examples, the CPB memory 320 may be on-chip with other components of the video decoder 300, or off-chip relative to those components.
[0146] Additionally or alternatively, in some examples, video decoder 300 may retrieve the video from memory 120 ( Figure 1 ) to retrieve the decoded video data. That is, memory 120 may store data, as discussed above with reference to CPB memory 320. Likewise, when some or all of the functionality of video decoder 300 is implemented using software executed by processing circuitry of video decoder 300, memory 120 may store instructions to be executed by video decoder 300.
[0147] Shows Figure 3 The various units are described to help understand the operations performed by the video decoder 300. These units may be implemented as fixed function circuits, programmable circuits, or a combination thereof. Figure 2 , fixed-function circuits refer to circuits that provide specific functions and are pre-set 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 execute software or firmware that causes the programmable circuit to operate in a manner defined by the instructions of the software or firmware. Fixed-function circuits can execute software instructions (e.g., for receiving parameters or outputting parameters), but the types of operations performed by fixed-function circuits are generally immutable. In some examples, one or more of these units may be different circuit blocks (fixed-function or programmable), and in some examples, the one or more units may be integrated circuits.
[0148] 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 executed 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.
[0149] 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.
[0150] 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 (wherein a block currently being reconstructed (ie, decoded) may be referred to as a "current block").
[0151] The entropy decoding unit 302 may entropy decode syntax elements defining the quantized transform coefficients of the quantized transform coefficient block, as well as transform information such as a quantization parameter (QP) and / or a transform mode indication. 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. For example, the inverse quantization unit 306 may 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.
[0152] 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.
[0153] The inverse transform processing unit 308 may be configured to apply a transform according to the above-mentioned inter-frame MTS mode. In particular, the inverse transform processing unit 308 may be configured to enable or disable the inter-frame MTS mode using any combination of the techniques of the present disclosure. In one example, the inverse transform processing unit 308 may be configured to: adaptively determine one or more of the maximum block size or the minimum block size for applying the inter-frame MTS mode; and determine whether to enable the inter-frame MTS mode for the block based on the size of the block of video data compared to one or more of the minimum block size or the maximum block size. The video decoder 300 including the inverse transform processing unit 308 may decode the block using the inter-frame MTS mode based on enabling the inter-frame MTS mode, wherein in order to decode the block using the inter-frame MTS mode, the inverse transform processing unit 308 is configured to apply one or more transforms (e.g., inverse transforms of multiple transforms) to the residual value associated with the block of video data.
[0154] In addition, prediction processing unit 304 generates a prediction block based on the prediction information syntax element entropy decoded by entropy decoding unit 302. For example, if the prediction information syntax element indicates that the current block is inter-predicted, motion compensation unit 316 can generate a prediction block. In this case, the prediction information syntax element can indicate a reference picture in DPB 314 from which the reference block is retrieved, 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 described for motion compensation unit 224 ( Figure 2 ) to perform inter-frame prediction processing in a manner substantially similar to that described herein.
[0155] As another example, if the prediction information syntax element indicates that the current block is intra-predicted, the intra-prediction unit 318 can generate a prediction block according to the intra-prediction mode indicated by the prediction information syntax element. Again, the intra-prediction unit 318 can generally generate a prediction block in the same manner as the intra-prediction unit 226 ( Figure 2 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 of the current block from the DPB 314.
[0156] 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.
[0157] 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.
[0158] The video decoder 300 may store the reconstructed blocks 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 blocks in 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 blocks in 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 previously 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 use in, for example, Figure 1 The display device 118 is displayed on a display device.
[0159] In this way, the video decoder 300 represents an example of a video decoding device that includes: a memory configured to store video data; and one or more processing units implemented in a circuit and configured to: determine whether to enable the inter-frame MTS mode for a block of a sequence based on the size of the block compared to a minimum block size or a maximum block size; and decode the block using the inter-frame MTS mode based on the determination.
[0160] Figure 4 2 is a flowchart illustrating an example method for encoding a current block according to the techniques of the present disclosure. The current block may include a current CU. Although with respect to the video encoder 200 ( Figure 1 and 2 ), but it should be understood that other devices may be configured to perform the same Figure 4 A similar approach to the one used in this paper.
[0161] 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. 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 prediction block for the current block. The video encoder 200 may then transform the residual block and transform and quantize the coefficients of the residual block (354). The techniques of the present disclosure for determining whether to enable the inter-MTS mode may be performed at process 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).
[0162] Figure 5 1 is a flowchart illustrating an example method for decoding a current block of video data according to the techniques of the present disclosure. The current block may include a current CU. Although with respect to the video decoder 300 ( Figure 1 and 3 ), but it should be understood that other devices may be configured to perform the same Figure 5 A similar approach to the one used in this paper.
[0163] The video decoder 300 may receive entropy-encoded data for a current block (e.g., entropy-encoded prediction information and entropy-encoded data for transform coefficients of a residual block corresponding to the current block) (370). The video decoder 300 may entropy decode the entropy-encoded data to determine the prediction information for the current block and reproduce the 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 as indicated by the prediction information for the current block to calculate a prediction block for the current block. 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 the transform coefficients and apply an inverse transform to the transform coefficients to produce a residual block (378). The techniques of the present disclosure for determining whether to enable an inter-frame MTS mode may be performed at process 378. Finally, the video decoder 300 may decode the current block by combining the prediction block and the residual block (380).
[0164] Figure 6 is a flowchart illustrating another example method for encoding a current block according to the techniques of this disclosure. Figure 6 The techniques may be performed by one or more structural units of the video encoder 200 (including the transform processing unit 206).
[0165] In a first example of the present disclosure, the video encoder 200 is configured to adaptively determine one or more of a maximum block size or a minimum block size for applying an inter-frame MTS mode (600). The video encoder 200 may also determine whether to enable the inter-frame MTS mode for a block based on a size of the block of video data compared to one or more of the minimum block size or the maximum block size (610). The video encoder 200 may then encode the block using the inter-frame MTS mode based on enabling the inter-frame MTS mode, wherein, in order to encode the block using the inter-frame MTS mode, the video encoder 200 is configured to apply one or more of a plurality of transforms to a residual value associated with the block of video data (620).
[0166] In one example, the video encoder 200 is configured to encode one or more syntax elements indicating one or more of a maximum block size or a minimum block size at a sequence level. In one example, the sequence level is a sequence parameter set (SPS).
[0167] In another example, in order to adaptively determine one or more of the maximum block size or the minimum block size, the video encoder 200 is configured to determine one or more of the maximum block size or the minimum block size based on one or more of the spatiotemporal characteristics of the sequence of video data or the resolution of the sequence of video data.
[0168] In another example, the video encoder 200 is configured to encode one or more syntax elements indicating the minimum block size or the maximum block size at the picture level. In yet another example, the video encoder 200 is configured to encode one or more syntax elements indicating the minimum block size or the maximum block size at the slice level.
[0169] To determine whether the inter-frame MTS mode is enabled for a block of video data, the video encoder 200 may be configured to determine whether the inter-frame MTS mode is enabled for a block of video data based on one or more of an aspect ratio of a picture including the block or an inter-frame prediction mode used to encode the block.
[0170] In another example, the video encoder 200 may encode one or more syntax elements indicating a transform subset among a plurality of transforms to be used for decoding a block using the inter MTS mode.
[0171] In a more specific example of encoding a block using the inter-frame MTS mode based on enabling the inter-frame MTS mode, the video encoder 200 can be configured to: apply a prediction process to a block of video data to determine a residual value associated with the block of video data; determine one or more transforms from a plurality of transforms to be used for the inter-frame MTS mode; encode an MTS index indicating one or more transforms from a plurality of transforms to be used for the inter-frame MTS mode; apply the one or more transforms to the residual values to determine transform coefficients associated with the block of video data; and encode the transform coefficients.
[0172] Figure 7 is a flow chart illustrating another example method for decoding a current block according to the techniques of this disclosure. Figure 7 The technique may be performed by one or more structural units of the video decoder 300 (including the inverse transform processing unit 308).
[0173] In a first example of the present disclosure, the video decoder 300 is configured to adaptively determine one or more of a maximum block size or a minimum block size for applying an inter-frame MTS mode (700); and determine whether to enable the inter-frame MTS mode for a block of video data based on a size compared to one or more of the minimum block size or the maximum block size (710). The video decoder 300 can then decode the block using the inter-frame MTS mode based on enabling the inter-frame MTS mode, wherein, in order to decode the block using the inter-frame MTS mode, the video decoder 300 is configured to apply one or more of a plurality of transforms to transform coefficients associated with the block of video data (720).
[0174] In one example, to adaptively determine one or more of the maximum block size or the minimum block size, the video decoder 300 is configured to decode one or more syntax elements indicating one or more of the maximum block size or the minimum block size at a sequence level. In one example, the sequence level is a sequence parameter set (SPS).
[0175] In another example, in order to adaptively determine one or more of the maximum block size or the minimum block size, the video decoder 300 is configured to determine one or more of the maximum block size or the minimum block size based on one or more of the spatiotemporal characteristics of the sequence of video data or the resolution of the sequence of video data.
[0176] In another example, to adaptively determine one or more of the maximum block size or the minimum block size, the video decoder 300 is configured to decode one or more syntax elements indicating the minimum block size or the maximum block size at a picture level.
[0177] In another example, to adaptively determine one or more of the maximum block size or the minimum block size, the video decoder 300 is configured to decode one or more syntax elements indicating the minimum block size or the maximum block size at a slice level.
[0178] In another example, to determine whether the inter-frame MTS mode is enabled for a block of video data, the video decoder 300 is configured to determine whether the inter-frame MTS mode is enabled for a block of video data based on one or more of an aspect ratio of a picture including the block or an inter-frame prediction mode used to decode the block.
[0179] In another example, the video decoder 300 is configured to decode one or more syntax elements indicating a transform subset among a plurality of transforms to be used for decoding a block using the inter MTS mode.
[0180] In a more detailed example of decoding a block using the inter-MTS mode based on enabling the inter-MTS mode, the video decoder 300 is configured to: determine transform coefficients associated with a block of video data; decode an MTS index indicating one or more transforms from a plurality of transforms to be used for the inter-MTS mode; apply the one or more transforms to the transform coefficients to determine residual values associated with the block of video data; and apply a prediction process to the residual values to determine a decoded block of video data.
[0181] Other illustrative aspects of the disclosure are described below.
[0182] Aspect 1A - A method of decoding video data, the method comprising: determining whether to enable inter-frame MTS mode for a block of a sequence based on the size of the block compared to a minimum block size or a maximum block size; and decoding the block using the inter-frame MTS mode based on the determination.
[0183] Aspect 2A-The method according to aspect 1A also includes: decoding one or more syntax elements indicating the minimum block size or the maximum block size at the sequence level.
[0184] Aspect 3A-The method according to aspect 2A, wherein the sequence level is a sequence parameter set (SPS).
[0185] Aspect 4A-The method according to aspect 1A further comprises: decoding one or more syntax elements indicating the minimum block size or the maximum block size at a picture level.
[0186] Aspect 5A-The method according to aspect 1A also includes: decoding one or more syntax elements indicating the minimum block size or the maximum block size at a slice level.
[0187] Aspect 6A-The method according to aspect 1A also includes: determining the minimum block size or the maximum block size based on one or more of sequence resolution or spatiotemporal characteristics.
[0188] Aspect 7A - A method of coding video data, the method comprising: determining whether an inter-MTS mode is enabled for a block of a sequence based on an aspect ratio of a picture; and coding the block using the inter-MTS mode based on the determination.
[0189] Aspect 8A - A method of coding video data, the method comprising: determining whether an inter-MTS mode is enabled for a block of a sequence based on an inter-prediction mode; and coding the block using the inter-MTS mode based on the determination.
[0190] Aspect 9A - A method according to any one of aspects 1A-8A, wherein decoding includes decoding.
[0191] Aspect 10A-A method according to any of aspects 1A-8A, wherein decoding includes encoding.
[0192] Aspect 11A - An apparatus for decoding video data, the apparatus comprising one or more means for performing the method according to any of aspects 1A-10A.
[0193] Aspect 12A - The apparatus of aspect 11A, wherein the one or more units include one or more processors implemented in circuitry.
[0194] Aspect 13A - The apparatus according to any of Aspects 11A and 12A, further comprising: a memory for storing the video data.
[0195] Aspect 14A - The apparatus of any of Aspects 11A-13A, further comprising: a display configured to display the decoded video data.
[0196] Aspect 15A—The device of any of Aspects 11A-14A, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.
[0197] Aspect 16A - The apparatus of any of Aspects 11A-15A, wherein the apparatus comprises a video decoder.
[0198] Aspect 17A - The apparatus of any of Aspects 11A-16A, wherein the apparatus comprises a video encoder.
[0199] Aspect 18A - A computer-readable storage medium having instructions stored thereon, which when executed cause one or more processors to perform a method according to any of Aspects 1A-10A.
[0200] Aspect 1B - A method for decoding video data, the method comprising: adaptively determining one or more of a maximum block size or a minimum block size for applying an inter-frame MTS (multiple transform set) mode; determining whether to enable the inter-frame MTS mode for a block based on the size of the block of video data compared to one or more of the minimum block size or the maximum block size; and decoding the block using the inter-frame MTS mode based on enabling the inter-frame MTS mode, wherein decoding the block using the inter-frame MTS mode comprises: applying one or more of a plurality of transforms to transform coefficients associated with the block of video data.
[0201] Aspect 2B-A method according to aspect 1B, wherein adaptively determining one or more of the maximum block size or the minimum block size includes: decoding one or more syntax elements indicating one or more of the maximum block size or the minimum block size at a sequence level.
[0202] Aspect 3B-A method according to aspect 2B, wherein the sequence level is a sequence parameter set (SPS).
[0203] Aspect 4B - A method according to Aspect 1B, wherein adaptively determining one or more of the maximum block size or the minimum block size includes: determining one or more of the maximum block size or the minimum block size based on one or more of the spatiotemporal characteristics of the sequence of the video data or the resolution of the sequence of the video data.
[0204] Aspect 5B - The method according to aspect 1B, wherein adaptively determining one or more of the maximum block size or the minimum block size includes: decoding one or more syntax elements indicating the minimum block size or the maximum block size at the picture level.
[0205] Aspect 6B-The method according to aspect 1B, wherein adaptively determining one or more of the maximum block size or the minimum block size includes: decoding one or more syntax elements indicating the minimum block size or the maximum block size at a slice level.
[0206] Aspect 7B - A method according to any one of Aspects 1B-6B, wherein determining whether the inter-frame MTS mode is enabled for the block of video data also includes: determining whether the inter-frame MTS mode is enabled for the block of video data based on an aspect ratio of a picture including the block or one or more of an inter-frame prediction mode used to decode the block.
[0207] Aspect 8B - The method according to any of aspects 1B-7B also includes: decoding one or more syntax elements indicating a transform subset of the multiple transforms to be used for decoding the block using the inter-frame MTS mode.
[0208] Aspect 9B - A method according to any one of Aspects 1B-8B, wherein decoding the block using the inter-frame MTS mode based on enabling the inter-frame MTS mode includes: determining transform coefficients associated with the block of video data; decoding an MTS index indicating one or more transforms among the multiple transforms to be used for the inter-frame MTS mode; applying the one or more transforms to the transform coefficients to determine residual values associated with the block of video data; and applying a prediction process to the residual values to determine a decoded block of video data.
[0209] Aspect 10B - The method according to any of aspects 1B-9B, further comprising: displaying a decoded picture including the block of video data.
[0210] Aspect 11B - A device configured to decode video data, the device comprising: a memory configured to store blocks of video data; and one or more processors implemented in a circuit and in communication with the memory, the one or more processors configured to: adaptively determine one or more of a maximum block size or a minimum block size for applying an inter-frame MTS (multiple transform set) mode; determine whether to enable the inter-frame MTS mode for the block based on the size of the block of video data compared to one or more of the minimum block size or the maximum block size; and decode the block using the inter-frame MTS mode based on enabling the inter-frame MTS mode, wherein, in order to decode the block using the inter-frame MTS mode, the one or more processors are configured to: apply one or more of a plurality of transforms to transform coefficients associated with the block of video data.
[0211] Aspect 12B - An apparatus according to Aspect 11B, wherein, in order to adaptively determine one or more of the maximum block size or the minimum block size, the one or more processors are configured to: decode one or more syntax elements indicating one or more of the maximum block size or the minimum block size at a sequence level.
[0212] Aspect 13B - The apparatus of aspect 12B, wherein the sequence level is a sequence parameter set (SPS).
[0213] Aspect 14B - An apparatus according to Aspect 11B, wherein, in order to adaptively determine one or more of the maximum block size or the minimum block size, the one or more processors are configured to: determine one or more of the maximum block size or the minimum block size based on one or more of the spatiotemporal characteristics of the sequence of video data or the resolution of the sequence of video data.
[0214] Aspect 15B - An apparatus according to Aspect 11B, wherein, in order to adaptively determine one or more of the maximum block size or the minimum block size, the one or more processors are configured to: decode one or more syntax elements indicating the minimum block size or the maximum block size at a picture level.
[0215] Aspect 16B - An apparatus according to Aspect 11B, wherein, in order to adaptively determine one or more of the maximum block size or the minimum block size, the one or more processors are configured to: decode one or more syntax elements indicating the minimum block size or the maximum block size at a slice level.
[0216] Aspect 17B - An apparatus according to any one of Aspects 11B-16B, wherein, in order to determine whether the inter-frame MTS mode is enabled for the block of video data, the one or more processors are configured to: determine whether the inter-frame MTS mode is enabled for the block of video data based on an aspect ratio of a picture including the block or one or more of an inter-frame prediction mode used to decode the block.
[0217] Aspect 18B - An apparatus according to any one of Aspects 11B-17B, wherein the one or more processors are further configured to: decode one or more syntax elements indicating a transform subset of the multiple transforms to be used for decoding the block using the inter-frame MTS mode.
[0218] Aspect 19B - An apparatus according to any one of Aspects 11B-18B, wherein, in order to decode the block using the inter-frame MTS mode based on enabling the inter-frame MTS mode, the one or more processors are configured to: determine transform coefficients associated with the block of video data; decode MTS indices indicating one or more transforms among the multiple transforms to be used for the inter-frame MTS mode; apply the one or more transforms to the transform coefficients to determine residual values associated with the block of video data; and apply a prediction process to the residual values to determine a decoded block of video data.
[0219] Aspect 20B - The apparatus according to any of aspects 11B-19B further comprises: a display configured to display a decoded picture including the block of video data.
[0220] Aspect 21B - A device configured to decode video data, the device comprising: a unit for adaptively determining one or more of a maximum block size or a minimum block size for applying an inter-frame MTS (multiple transform set) mode; a unit for determining whether to enable the inter-frame MTS mode for a block of video data based on the size of the block compared to one or more of the minimum block size or the maximum block size; and a unit for decoding the block using the inter-frame MTS mode based on enabling the inter-frame MTS mode, wherein decoding the block using the inter-frame MTS mode includes: applying one or more of a plurality of transforms to transform coefficients associated with the block of video data.
[0221] Aspect 22B - A non-transitory computer-readable storage medium storing instructions that, when executed, cause one or more processors of a device configured to decode video data to: adaptively determine one or more of a maximum block size or a minimum block size for applying an inter-frame MTS (multiple transform set) mode; determine whether to enable the inter-frame MTS mode for a block based on a size of the block of video data compared to one or more of the minimum block size or the maximum block size; and decode the block using the inter-frame MTS mode based on enabling the inter-frame MTS mode, wherein, in order to decode the block using the inter-frame MTS mode, the one or more processors are configured to: apply one or more of a plurality of transforms to transform coefficients associated with the block of video data.
[0222] Aspect 23B - A device configured to encode video data, the device comprising: a memory configured to store blocks of video data; and one or more processors implemented in a circuit and in communication with the memory, the one or more processors configured to: adaptively determine one or more of a maximum block size or a minimum block size for applying an inter-frame MTS (multiple transform set) mode; determine whether to enable the inter-frame MTS mode for the block based on the size of the block of video data compared to one or more of the minimum block size or the maximum block size; and encode the block using the inter-frame MTS mode based on enabling the inter-frame MTS mode, wherein, in order to encode the block using the inter-frame MTS mode, the one or more processors are configured to: apply one or more of a plurality of transforms to a residual value associated with the block of video data.
[0223] Aspect 24B - An apparatus according to Aspect 23B, wherein the one or more processors are further configured to: encode one or more syntax elements indicating one or more of the maximum block size or the minimum block size at a sequence level.
[0224] Aspect 25B - The apparatus according to Aspect 24B, wherein the sequence level is a sequence parameter set (SPS).
[0225] Aspect 26B - An apparatus according to Aspect 23B, wherein, in order to adaptively determine one or more of the maximum block size or the minimum block size, the one or more processors are configured to: determine one or more of the maximum block size or the minimum block size based on one or more of the spatiotemporal characteristics of the sequence of video data or the resolution of the sequence of video data.
[0226] Aspect 27B - The apparatus according to Aspect 23B, wherein the one or more processors are further configured to: encode one or more syntax elements indicating the minimum block size or the maximum block size at a picture level.
[0227] Aspect 28B - The apparatus of Aspect 23B, wherein the one or more processors are further configured to: encode one or more syntax elements indicating the minimum block size or the maximum block size at a slice level.
[0228] Aspect 29B - An apparatus according to any one of Aspects 23B-28B, wherein, in order to determine whether the inter-frame MTS mode is enabled for the block of video data, the one or more processors are configured to: determine whether the inter-frame MTS mode is enabled for the block of video data based on an aspect ratio of a picture including the block or one or more of an inter-frame prediction mode used to encode the block.
[0229] Aspect 30B - An apparatus according to any one of Aspects 23B-29B, wherein the one or more processors are further configured to: encode one or more syntax elements indicating a transform subset of the multiple transforms to be used for decoding the block using the inter-frame MTS mode.
[0230] Aspect 31B - An apparatus according to any one of Aspects 23B-30B, wherein, in order to encode the block using the inter-frame MTS mode based on enabling the inter-frame MTS mode, the one or more processors are configured to: apply a prediction process to the block of video data to determine a residual value associated with the block of video data; determine one or more transforms from the multiple transforms to be used for the inter-frame MTS mode; encode an MTS index, the MTS index indicating the one or more transforms from the multiple transforms to be used for the inter-frame MTS mode; apply the one or more transforms to the residual value to determine a transform coefficient associated with the block of video data; and encode the transform coefficient.
[0231] Aspect 32B - The apparatus according to any of Aspects 23B-31B, further comprising: a camera configured to capture a picture of the block comprising video data.
[0232] It is to be appreciated that, depending on the example, certain actions or events of any of the techniques described herein may be performed in a different sequence, may be added together, merged, or omitted (e.g., not all described actions or events are necessary for practicing the techniques). In addition, in some examples, actions or events may be performed simultaneously, for example, through multithreading, interrupt processing, or multiple processors, rather than sequentially.
[0233] 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 in or sent via a computer-readable medium as one or more instructions or codes, and executed by a hardware-based processing unit. A computer-readable medium may include a computer-readable storage medium corresponding to a tangible medium (such as a data storage medium), or a communication medium including any medium that facilitates the transmission of a computer program from one place to another, for example, according to a communication protocol. In the manner described, a computer-readable medium 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. A data storage medium may be any available medium that can be accessed by one or more computers or one or more processors to retrieve instructions, codes, and / or data structures for the implementation of the technology described in the present disclosure. A computer program product may include a computer-readable medium.
[0234] By way of 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 desired program codes and can be accessed by a computer in the form of instructions or data structures. In addition, any connection is appropriately referred to as a computer-readable medium. For example, if a coaxial cable, optical fiber cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave) is used to send instructions from a website, server or other remote source, then coaxial cable, optical fiber cable, twisted pair, DSL or wireless technology (such as infrared, radio and microwave) is included in the definition of medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carrier waves, signals or other temporary media, but are instead directed to non-temporary, tangible storage media. As used herein, disks and optical disks include compact disks (CDs), laser optical disks, optical disks, digital versatile disks (DVDs), floppy disks and blue-ray disks, wherein disks usually reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included within the scope of computer-readable media.
[0235] Instructions may be executed by one or more processors, such as one or more DSPs, general-purpose microprocessors, ASICs, FPGAs, or other equivalent integrated logic circuits or discrete logic circuits. Therefore, the terms "processor" and "processing circuit" as used herein may refer to any of the aforementioned structures or any other structure suitable for the implementation of the techniques described herein. In addition, in some aspects, the functions described herein may be provided within dedicated hardware modules and / or software modules configured for encoding and decoding, or incorporated into a combined codec. In addition, the techniques may be fully implemented in one or more circuits or logic elements.
[0236] The techniques of the present disclosure may be implemented in a variety of devices or apparatuses, including wireless handsets, integrated circuits (ICs), or collections 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 are not necessarily required to be implemented by different hardware units. Rather, as described above, the various units may be combined in a codec hardware unit, or provided by a group of interoperable hardware units (including one or more processors as described above) in conjunction with appropriate software and / or firmware.
[0237] Various examples have been described. These and other examples are within the scope of the following claims.
Claims
1. A method for decoding video data, the method comprising: Adaptively determining one or more of a maximum block size or a minimum block size for applying an inter-frame MTS (Multiple Transform Set) mode; determining whether to enable the inter-MTS mode for a block of video data based on a size of the block compared to one or more of the minimum block size or the maximum block size; as well as The block is decoded using the inter MTS mode based on enabling the inter MTS mode, wherein decoding the block using the inter MTS mode comprises applying one or more of a plurality of transforms to transform coefficients associated with the block of video data.
2. The method according to claim 1, wherein: Adaptively determining one or more of the maximum block size or the minimum block size includes: One or more syntax elements indicating one or more of the maximum block size or the minimum block size are decoded at a sequence level.
3. The method according to claim 1, wherein: Adaptively determining one or more of the maximum block size or the minimum block size includes: One or more of the maximum block size or the minimum block size is determined based on one or more of spatiotemporal characteristics of the sequence of video data or a resolution of the sequence of video data.
4. The method according to claim 1, wherein: Adaptively determining one or more of the maximum block size or the minimum block size includes: One or more syntax elements indicating the minimum block size or the maximum block size are decoded at a picture level.
5. The method according to claim 1, wherein: Adaptively determining one or more of the maximum block size or the minimum block size includes: One or more syntax elements indicating the minimum block size or the maximum block size are decoded at a slice level.
6. The method according to claim 1, wherein: Determining whether to enable the inter-MTS mode for the block of video data further comprises: Whether the inter-MTS mode is enabled for the block of video data is determined based on one or more of an aspect ratio of a picture including the block or an inter-prediction mode used to decode the block.
7. The method according to claim 1, further comprising: One or more syntax elements indicating a transform subset of the plurality of transforms to be used for decoding the block using the inter MTS mode are decoded.
8. The method according to claim 1, wherein: Decoding the block using the inter-MTS mode based on enabling the inter-MTS mode includes: determining transform coefficients associated with the block of video data; decoding an MTS index indicating one or more transforms of the plurality of transforms to be used for the inter MTS mode; applying the one or more transforms to the transform coefficients to determine a residual value associated with the block of video data; and A prediction process is applied to the residual values to determine a decoded block of the video data.
9. The method according to claim 1, further comprising: A decoded picture including the block of video data is displayed.
10. An apparatus configured to decode video data, the apparatus comprising: a memory configured to store blocks of video data; as well as one or more processors implemented in circuitry and in communication with the memory, the one or more processors being configured to: Adaptively determining one or more of a maximum block size or a minimum block size for applying an inter-frame MTS (Multiple Transform Set) mode; determining whether to enable the inter-MTS mode for a block of video data based on a size of the block compared to one or more of the minimum block size or the maximum block size; as well as The block is decoded using the inter-frame MTS mode based on enabling the inter-frame MTS mode, wherein, in order to decode the block using the inter-frame MTS mode, the one or more processors are configured to: apply one or more of a plurality of transforms to transform coefficients associated with the block of video data.
11. The device according to claim 10, wherein: To adaptively determine one or more of the maximum block size or the minimum block size, the one or more processors are configured to: One or more syntax elements indicating one or more of the maximum block size or the minimum block size are decoded at a sequence level.
12. The device according to claim 10, wherein: To adaptively determine one or more of the maximum block size or the minimum block size, the one or more processors are configured to: One or more of the maximum block size or the minimum block size is determined based on one or more of spatiotemporal characteristics of the sequence of video data or a resolution of the sequence of video data.
13. The device according to claim 10, wherein: To adaptively determine one or more of the maximum block size or the minimum block size, the one or more processors are configured to: One or more syntax elements indicating the minimum block size or the maximum block size are decoded at a picture level.
14. The device according to claim 10, wherein: To adaptively determine one or more of the maximum block size or the minimum block size, the one or more processors are configured to: One or more syntax elements indicating the minimum block size or the maximum block size are decoded at a slice level.
15. The device according to claim 10, wherein: To determine whether the inter-MTS mode is enabled for the block of video data, the one or more processors are configured to: Whether the inter-MTS mode is enabled for the block of video data is determined based on one or more of an aspect ratio of a picture including the block or an inter-prediction mode used to decode the block.
16. The device according to claim 10, wherein: The one or more processors are further configured to: One or more syntax elements indicating a transform subset of the plurality of transforms to be used for decoding the block using the inter MTS mode are decoded.
17. The device according to claim 10, wherein: To decode the block using the inter-MTS mode based on enabling the inter-MTS mode, the one or more processors are configured to: determining transform coefficients associated with the block of video data; decoding an MTS index indicating one or more transforms of the plurality of transforms to be used for the inter MTS mode; applying the one or more transforms to the transform coefficients to determine a residual value associated with the block of video data; as well as A prediction process is applied to the residual values to determine a decoded block of the video data.
18. The apparatus according to claim 10, further comprising: A display is configured to display a decoded picture comprising the block of video data.
19. A non-transitory computer-readable storage medium storing instructions that, when executed, cause one or more processors of a device configured to decode video data to: Adaptively determining one or more of a maximum block size or a minimum block size for applying an inter-frame MTS (Multiple Transform Set) mode; determining whether to enable the inter-MTS mode for a block of video data based on a size of the block compared to one or more of the minimum block size or the maximum block size; and The block is decoded using the inter-MTS mode based on enabling the inter-MTS mode, wherein, To decode the block using the inter MTS mode, the one or more processors are configured to apply one or more of a plurality of transforms to transform coefficients associated with the block of video data.
20. An apparatus configured to encode video data, the apparatus comprising: a memory configured to store blocks of video data; as well as one or more processors implemented in circuitry and in communication with the memory, the one or more processors being configured to: Adaptively determining one or more of a maximum block size or a minimum block size for applying an inter-frame MTS (Multiple Transform Set) mode; determining whether to enable the inter-MTS mode for a block of video data based on a size of the block compared to one or more of the minimum block size or the maximum block size; as well as The block is encoded using the inter-frame MTS mode based on enabling the inter-frame MTS mode, wherein, in order to encode the block using the inter-frame MTS mode, the one or more processors are configured to: apply one or more of a plurality of transforms to residual values associated with the block of video data.
21. The device according to claim 20, wherein: The one or more processors are further configured to: One or more syntax elements indicating one or more of the maximum block size or the minimum block size are encoded at a sequence level.
22. The device according to claim 20, wherein: To adaptively determine one or more of the maximum block size or the minimum block size, the one or more processors are configured to: One or more of the maximum block size or the minimum block size is determined based on one or more of spatiotemporal characteristics of the sequence of video data or a resolution of the sequence of video data.
23. The device according to claim 20, wherein: The one or more processors are further configured to: One or more syntax elements indicating the minimum block size or the maximum block size are encoded at a picture level.
24. The device according to claim 20, wherein: The one or more processors are further configured to: One or more syntax elements indicating the minimum block size or the maximum block size are encoded at a slice level.
25. The device according to claim 20, wherein: To determine whether the inter-MTS mode is enabled for the block of video data, the one or more processors are configured to: Whether the inter-MTS mode is enabled for the block of video data is determined based on one or more of an aspect ratio of a picture including the block or an inter-prediction mode used to encode the block.
26. The device according to claim 20, wherein: The one or more processors are further configured to: One or more syntax elements indicating a transform subset of the plurality of transforms to be used for decoding the block using the inter-MTS mode are encoded.
27. The device according to claim 20, wherein: To encode the block using the inter MTS mode based on enabling the inter MTS mode, the one or more processors are configured to: applying a prediction process to the block of video data to determine a residual value associated with the block of video data; determining one or more transforms of the plurality of transforms to be used for the inter-MTS mode; encoding an MTS index indicating the one or more transforms of the plurality of transforms to be used for the inter MTS mode; applying the one or more transforms to the residual values to determine transform coefficients associated with the block of video data; as well as The transform coefficients are encoded.
28. The apparatus of claim 20, further comprising: A camera is configured to capture a picture of the block comprising the video data.
