Video decoding method, device and electronic device
By flexibly dividing the coding blocks and processing the transformation units, the problem of low encoding and decoding efficiency in the existing technology is solved, and more efficient motion vector encoding and decoding and hardware performance optimization are achieved.
Patent Information
- Application Number
- CN202080018966.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-20
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2040-03-20
AI Technical Summary
Existing video coding technologies are relatively simple in their block division methods, resulting in low encoding and decoding efficiency and difficulty in effectively reducing the amount of motion vector encoding and decoding data.
A flexible coding block partitioning method is adopted, which divides the coding block into sub-processing units (SPUs) and further into transform units. Using a controllable maximum allowable transform unit size, combined with sequential processing such as raster scanning, vertical scanning, zigzag or diagonal scanning, the performance of the encoder and decoder is improved.
It improves encoding and decoding efficiency, reduces the amount of motion vector encoding and decoding data, optimizes hardware complexity, and enhances the performance of hardware encoders and decoders.
Smart Images

Figure CN113994676B_ABST
Abstract
Description
[0001] Incorporation by Reference
[0002] This application claims the benefit of U.S. Patent Application No. 16 / 824,440, filed on March 19, 2020, for "Method and Apparatus for Video Coding," which claims the benefit of U.S. Provisional Application No. 62 / 822,757, filed on March 22, 2019, for "VPDU Compatible Max Transform Control." The disclosures of these prior applications are incorporated herein by reference in their entirety. Technical Field
[0003] The present application relates to video coding and decoding, and in particular to a video decoding method, device and electronic device. Background Art
[0004] The background description provided herein is intended to generally present the context of the present application. To the extent described in this background section, the work of the inventors currently named, as well as various aspects of the description that may not have the qualification of being prior art at the time of filing this application, are neither explicitly nor implicitly considered to be prior art of the present application.
[0005] Encoding and decoding of video can be performed using inter-frame prediction with motion compensation. Uncompressed digital video may include a series of pictures, each picture having a certain spatial dimension, such as 1920×1080 luminance samples and associated chrominance samples. The series of pictures can have a fixed or variable picture rate (informally, also called frame rate), for example, 60 pictures per second or 60 Hertz (Hz). Uncompressed video has significant requirements for bit rate. For example, 1080p60 4:2:0 video (1920×1080 luminance sample resolution at 60Hz frame rate) with 8 bits per sample requires a bandwidth of nearly 1.5Gbit / s. Such video requires more than 600GB of storage space for one hour.
[0006] One purpose of video encoding and decoding can be to reduce redundancy in the input video signal through compression. Compression can help reduce the above-mentioned bandwidth or storage space requirements, in some cases, by two or more orders of magnitude. Both lossless compression and lossy compression and their combinations can be used for video encoding and decoding. Lossless compression refers to a technique that can reconstruct an exact copy of the original signal from the compressed original signal. When lossy compression is used, the reconstructed signal may not be exactly the same as the original signal, but the distortion between the original signal and the reconstructed signal is small enough that the reconstructed signal can be used for the intended application. Lossy compression is widely used in video. The amount of distortion allowed by lossy compression depends on the application; for example, users of certain consumer streaming applications can tolerate higher distortion than users of television distribution applications. The achievable compression ratio can reflect that the higher the allowable / tolerable distortion, the higher the compression ratio.
[0007] Video encoders and decoders may use several broad categories of techniques including, for example, motion compensation, transforms, quantization, and entropy coding.
[0008] Video coding techniques may include intra-coding techniques. In intra-coding techniques, sample values are represented without reference to samples or other data in previously reconstructed reference pictures. In some video coding techniques, a picture is spatially divided into blocks of samples. When all sample blocks are encoded using intra-mode, the picture may be an intra-picture. Intra-pictures and their derivatives, such as pictures refreshed by independent decoders, may be used to reset the state of the decoder and may therefore be used as the first picture in an encoded video stream and video session, or as a still picture. Samples of an intra-block may be transformed, and the transform coefficients may be quantized prior to entropy coding. Intra-prediction may be a technique for minimizing sample values in a pre-transform domain. In some cases, the smaller the transformed DC value and the smaller the AC coefficient, the fewer bits are required to represent the entropy-coded block given a quantization step size.
[0009] Traditional intra-frame coding techniques, such as the known MPEG-2 coding techniques, do not use intra-frame prediction. However, some newer video compression techniques include techniques that attempt to use, for example, neighboring sample data and / or metadata obtained during the encoding / decoding of spatially adjacent and preceding data blocks in decoding order. Such techniques are therefore referred to as "intra-frame prediction" techniques. Intra-frame prediction, at least in some cases, uses only reference data in the picture currently being reconstructed, and not reference data in reference pictures.
[0010] Intra-frame prediction can take many forms. When more than one such technique can be used for a given video coding technique, an intra-frame prediction mode can be used to encode the technique used. In some cases, some modes have sub-modes and / or parameters, which can be encoded separately or can be included in the mode codeword. Which codeword is used for a given mode / sub-mode / parameter combination will affect the coding efficiency gain through intra-frame prediction, as will the entropy coding technique used to translate the codeword into the bitstream.
[0011] The H.264 standard introduced a certain mode of intra-frame prediction, which was improved in the H.265 standard and further improved in newer coding techniques, such as the Joint Exploration Model (JEM), Versatile Video Coding (VVC), Benchmark Sets (BMS), etc. The prediction sub-block can be formed using the values of neighboring samples belonging to samples that are already available. The sample values of the neighboring samples are copied to the prediction sub-block in one direction. The reference to the direction used can be encoded into the bitstream, or it can be predicted itself.
[0012] Motion compensation may be a lossy compression technique and may involve a technique where a block of sample data from a previously reconstructed picture or part thereof (reference picture) is used to predict a newly reconstructed picture or part of a picture after being spatially shifted in a direction indicated by a motion vector (hereinafter MV). In some cases, the reference picture may be the same as the picture currently being reconstructed. The MV may have two dimensions: an X dimension and a Y dimension, or three dimensions, with the third dimension being used to indicate the reference picture in use (the latter may indirectly be a temporal dimension).
[0013] In some video compression techniques, the MV applicable to a certain sample data region can be predicted based on other MVs, for example, based on the MV related to another sample data region that is spatially adjacent to the region being reconstructed and whose decoding order precedes the MV. This can substantially reduce the amount of data required to encode and decode the MV, thereby eliminating redundancy and enhancing compression. MV prediction can be performed efficiently, for example, because when encoding an input video signal derived from a camera (called natural video), there is a statistical likelihood that multiple regions larger than the region to which a single MV can be applied move in similar directions, so in some cases similar motion vectors derived from multiple MVs of adjacent regions can be used for MV prediction. This results in the MV found for a given region being similar or identical to the MV predicted from the surrounding MVs, and after entropy coding and decoding, it can be represented with fewer bits than the number of bits used to directly code and decode the MV. In some cases, MV prediction can be an example of lossless compression of a signal (i.e., MV) derived from the original signal (i.e., sample stream). In other cases, MV prediction itself can be lossy, for example, because there will be rounding errors when calculating predictors from several surrounding MVs.
[0014] Various MV prediction mechanisms are described in H.265 / HEVC (ITU-T H.265 Recommendation, "High Efficiency Video Coding", December 2016). Among the various MV prediction mechanisms provided by H.265, this application describes a technique referred to below as "spatial merging".
[0015] refer to Figure 1 , the current block (101) includes samples found by the encoder during motion search that can be predicted from a previous block of the same size as the current block and spatially shifted. Instead of encoding the MV directly, the MV can be derived from metadata associated with one or more reference pictures, for example, from the temporally closest (in decoding order) reference picture using the MV associated with any of the five surrounding samples, denoted A0, A1, B0, B1, B2 (102 to 106, respectively). In H.265, the reference picture used for MV prediction can be the same as the reference picture used for neighboring blocks.
[0016] In some technologies, the coding blocks are divided, but these division methods are still relatively simple and the encoding and decoding efficiency is not high. Summary of the invention
[0017] Aspects of the present application provide video encoding / decoding methods and devices. In some examples, a video decoding device includes a processing circuit. The processing circuit is configured to: receive a coding block with a width of W pixels and a height of H pixels; divide the coding block into sub-processing units (SPUs), each SPU having a width of W pixels or K pixels, whichever is smaller, and a height of H pixels or K pixels, whichever is smaller, where K is the dimension of a virtual pipeline data unit (VPDU) with an area of K×K pixels; and divide each SPU into transform units. The maximum allowed transform unit size for each transform unit is M pixels.
[0018] In one embodiment, a syntax element indicating a maximum allowed transform unit size of the M pixels may be received in a code stream. The transform units of the SPU are processed in an SPU processing order. In one example, the SPU processing order for processing the SPU is one of a raster scan order, a vertical scan order, a zigzag order, or a diagonal scan order. In addition,
[0019] The order for processing the transform units within each SPU is one of a raster scan order, a vertical scan order, a zigzag order, or a diagonal scan order. In one example, both the SPU processing order and the order for processing the transform units within each SPU are raster scan order. In addition, in one embodiment, K is 64 and M is 32.
[0020] Aspects of the present application provide a non-transitory computer-readable storage medium, and when the instructions are executed by a computer for video decoding, the computer performs the video decoding method.
[0021] Aspects of the present application also provide a video decoding device, including: a receiving module, used to receive a coding block with a width of W pixels and a height of H pixels; a dividing module, used to divide the coding block into sub-processing units SPU, each SPU has a width of W pixels or K pixels, whichever is smaller, and a height of H pixels or K pixels, whichever is smaller, where K is the dimension of a virtual pipeline data unit VPDU with an area of K×K pixels; and divide each SPU into transformation units, and the maximum allowed transformation unit size of each transformation unit is M pixels.
[0022] Aspects of the present application also provide an electronic device, including a memory for storing computer-readable instructions; a processor for reading the computer-readable instructions and executing the video decoding method according to the instructions of the computer-readable instructions.
[0023] The video decoding method, device and electronic device of the embodiment of the present application are more flexible in the division of coding blocks, using a controllable maximum allowable transform unit size or a configurable maximum allowable transform unit size. This flexibility of the maximum allowable transform unit size can have an impact on the hardware complexity of implementing the encoder (for example, the size of the intermediate buffer of the pipeline, the number of multipliers, etc.), potentially improving the performance of the hardware encoder and decoder. In addition, since the transform blocks generated by dividing the coding blocks are compatible with the requirements of pipeline processing based on the VPDU size, the encoding and decoding efficiency can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Further features, nature and various advantages of the subject matter disclosed in this application will become more apparent from the following detailed description and accompanying drawings, in which:
[0025] Figure 1 Schematic diagram of the current block and its surrounding spatial merging candidates in an example.
[0026] Figure 2 is a schematic diagram of a simplified block diagram of a communication system according to one embodiment.
[0027] Figure 3 is a schematic diagram of a simplified block diagram of a communication system according to another embodiment.
[0028] Figure 4 is a schematic diagram of a simplified block diagram of a decoder according to one embodiment.
[0029] Figure 5 is a schematic diagram of a simplified block diagram of an encoder according to one embodiment.
[0030] Figure 6 A block diagram of an encoder according to another embodiment is shown.
[0031] Figure 7 A block diagram of a decoder according to another embodiment is shown.
[0032] Fig. 8A A CTU partitioned using a quadtree plus binary tree (QTBT) structure is shown.
[0033] Figure 8B A QTBT structure is shown.
[0034] Fig. 9A A horizontal center-side ternary tree is shown.
[0035] Fig. 9B A vertical center-side triple tree is shown.
[0036] FIG. 10A to FIG. 10DThe transform core matrices of 4-point DCT-2 transform, 8-point DCT-2 transform, 16-point DCT-2 transform and 32-point DCT-2 transform are shown respectively.
[0037] FIG. 11A to FIG. 11E A 64x64 transform kernel matrix for a 64-point DCT-2 transform is shown.
[0038] Fig.12 Transform basis functions for selected discrete sine transform (DST) / discrete cosine transform (DCT) transforms of adaptive multi-transform (AMT) are shown.
[0039] Fig.13 A table illustrating a mapping relationship between an mts_idx value and a corresponding horizontal transform or vertical transform is shown.
[0040] FIG. 14A to FIG. 14D The transformation core matrix of the DST-7 transformation is shown.
[0041] FIG. 15A to FIG. 15D A transform kernel matrix of DCT-8 transform is shown.
[0042] Fig.16 The number of sub-partitions depending on the block size is shown.
[0043] Fig.17 A scenario is shown where a block is divided into two sub-partitions.
[0044] Fig.18 A scenario is shown where a block is divided into four sub-partitions.
[0045] FIG. 19A to FIG. 19B An example syntax table is shown, which includes relevant syntax elements for signaling intra sub-partitioning (ISP) codec mode.
[0046] FIG. 20A to FIG. 20D The supported sub-block types, sizes and positions in the sub-block transform (SBT) are shown.
[0047] FIG. 21A to FIG. 21I Shown are changes to the specification text of the video codec standard when using SBT.
[0048] Fig. 22 Different YUV formats (eg, 4:4:4, 4:2:2, 4:1:1, and 4:2:0) are shown for use in some embodiments.
[0049] Fig.23 Examples of ternary tree (TT) partitioning and binary tree (BT) partitioning that are not allowed are shown.
[0050] Fig.24A coding block of size 128x64 samples is shown.
[0051] Fig.25 A coding block of size 128x32 samples is shown.
[0052] Fig.26 A coding block of size 128x32 samples is shown.
[0053] Fig. 27 A flowchart outlining a transform block partitioning and processing method according to an embodiment of the present application is shown.
[0054] Fig.28 is a schematic diagram of a computer system according to an embodiment. DETAILED DESCRIPTION
[0055] I. Video Codec Encoders and Decoders
[0056] Figure 2 A simplified block diagram of a communication system (200) according to an embodiment disclosed in the present application is illustrated. The communication system (200) includes a plurality of terminal devices that can communicate with each other via, for example, a network (250). For example, the communication system (200) includes a first pair of terminal devices (210) and (220) interconnected via the network (250). Figure 2 In the example, a first pair of terminal devices (210) and (220) perform unidirectional data transmission. For example, the terminal device (210) may encode video data (e.g., a video picture stream collected by the terminal device (210)) for transmission to another terminal device (220) via the network (250). The encoded video data may be transmitted in the form of one or more encoded video code streams. The terminal device (220) may receive the encoded video data from the network (250), decode the encoded video data to recover the video data, and display the video picture based on the recovered video data. Unidirectional data transmission may be common in applications such as media services.
[0057] In another example, the communication system (200) includes a second pair of terminal devices (230) and (240) that perform bidirectional transmission of encoded video data, which can occur, for example, during a video conference. For bidirectional data transmission, each of the terminal devices (230) and (240) can encode video data (e.g., a video picture stream collected by the terminal device) for transmission to the other terminal device (230) and (240) through the network (250). Each of the terminal devices (230) and (240) can also receive the encoded video data transmitted by the other terminal device (230) and (240), and can decode the encoded video data to restore the video data, and can display the video picture on an accessible display device based on the restored video data.
[0058] exist Figure 2 In the example of, terminal device (210), terminal device (220), terminal device (230) and terminal device (240) may be illustrated as a server, a personal computer and a smart phone, but the principles disclosed in the present application may not be limited to this. The embodiments disclosed in the present application are applicable to laptop computers, tablet computers, media players and / or dedicated video conferencing equipment. Network (250) represents any number of networks that transmit encoded video data between terminal devices (210), terminal devices (220), terminal devices (230) and terminal devices (240), including, for example, wired (wired) and / or wireless communication networks. Communication network (250) can exchange data in circuit switching and / or packet switching channels. Representative networks may include telecommunication networks, local area networks, wide area networks and / or the Internet. For the purpose of this discussion, unless explained below, the architecture and topology of network (250) may be irrelevant to the operation disclosed in the present application.
[0059] As an example of the application of the subject matter disclosed in this application, Figure 3 The placement of the video encoder and video decoder in a streaming environment is shown. The subject matter disclosed in this application is equally applicable to other video-enabled applications, including, for example, video conferencing, digital TV, storing compressed video on digital media including CDs, DVDs, memory sticks, etc.
[0060] The streaming system may include an acquisition subsystem (313), which may include a video source (301) such as a digital camera, which creates, for example, an uncompressed video picture stream (302). In one example, the video picture stream (302) includes samples captured by the digital camera. The video picture stream (302) is depicted as a bold line to emphasize that it has a higher data volume than the encoded video data (304) (or the encoded video bitstream). The video picture stream (302) is depicted as a bold line to emphasize the high data volume of the video picture stream. The video picture stream (302) may be processed by an electronic device (320), which includes a video encoder (303) coupled to the video source (301). The video encoder (303) may include hardware, software, or a combination of hardware and software to implement or implement various aspects of the disclosed subject matter as described in more detail below. The encoded video data (204) (or the encoded video code stream (204)) is depicted as a thin line to emphasize that it has a lower data volume compared to the video picture stream (302), which can be stored on the streaming server (305) for future use. One or more streaming client subsystems, such as Figure 3 A client subsystem (306) and a client subsystem (308) in a streaming server (305) may access a streaming server (305) to retrieve a copy (307) and a copy (309) of encoded video data (304). The client subsystem (306) may include, for example, a video decoder (310) in an electronic device (330). The video decoder (310) decodes the incoming copy (307) of the encoded video data and generates an output video picture stream (311) that can be presented on a display (312) (e.g., a display screen) or another presentation device (not depicted). In some streaming systems, the encoded video data (304), the video data (307), and the video data (309) (e.g., a video bitstream) may be encoded according to certain video encoding / compression standards. Examples of such standards include ITU-T Recommendation H.265. In one example, the video coding standard under development is informally referred to as Versatile Video Coding (VVC), and the present application may be used in the context of the VVC standard.
[0061] It should be noted that the electronic device (320) and the electronic device (330) may include other components (not shown). For example, the electronic device (320) may include a video decoder (not shown), and the electronic device (330) may also include a video encoder (not shown).
[0062] Figure 44 is a block diagram of a video decoder (410) according to an embodiment disclosed in the present application. The video decoder (410) may be provided in an electronic device (430). The electronic device (430) may include a receiver (431) (eg, a receiving circuit). The video decoder (410) may be used to replace Figure 3 The video decoder (310) of the example.
[0063] The receiver (431) may receive one or more encoded video sequences to be decoded by the video decoder (410); in the same or another embodiment, one encoded video sequence is received at a time, wherein the decoding of each encoded video sequence is independent of the other encoded video sequences. The encoded video sequence may be received from a channel (401), which may be a hardware / software link to a storage device storing the encoded video data. The receiver (431) may receive the encoded video data as well as other data, such as encoded audio data and / or auxiliary data streams that may be forwarded to their respective consuming entities (not shown). The receiver (431) may separate the encoded video sequence from the other data. To prevent network jitter, a buffer memory (415) may be coupled between the receiver (431) and the entropy decoder / parser (420) (hereinafter referred to as "parser (420)"). In some applications, the buffer memory (415) is part of the video decoder (410). In other cases, the buffer memory (415) may be provided external to the video decoder (410) (not shown). In other cases, a buffer memory (not shown) is provided outside the video decoder (410) to prevent network jitter, for example, and another buffer memory (415) may be configured inside the video decoder (410) to handle broadcast timing, for example. When the receiver (431) receives data from a storage / forward device with sufficient bandwidth and controllability, or from an isochronous network, it may not be necessary to configure the buffer memory (415), or the buffer memory may be made smaller. For use on a best-effort service packet network such as the Internet, a buffer memory (415) may also be required, and the buffer memory may be relatively large and have an adaptive size, and may be at least partially implemented in an operating system or a similar element (not shown) outside the video decoder (410).
[0064] The video decoder (410) may include a parser (420) to reconstruct symbols (421) from the encoded video sequence. The types of symbols include information for managing the operation of the video decoder (410) and potential information for controlling a display device such as a display device (412) (e.g., a display screen) that is not part of the electronic device (430) but can be coupled to the electronic device (430), such as Figure 4As shown in . The control information for the display device may be a parameter set fragment (not indicated) of Supplemental Enhancement Information (SEI message) or Video Usability Information (VUI). The parser (420) may parse / entropy decode the received coded video sequence. The encoding of the coded video sequence may be performed according to a video coding technique or standard, and may follow various principles, including variable length coding, Huffman coding, arithmetic coding with or without context sensitivity, and the like. The parser (420) may extract a subgroup parameter set of at least one subgroup of the subgroups of pixels in the video decoder from the coded video sequence based on at least one parameter corresponding to the group. The subgroup may include a Group of Pictures (GOP), a picture, a tile, a slice, a macroblock, a Coding Unit (CU), a block, a Transform Unit (TU), a Prediction Unit (PU), and the like. The parser (420) may also extract information from the encoded video sequence, such as transform coefficients, quantizer parameter values, motion vectors, and so on.
[0065] The parser (420) may perform entropy decoding / parsing operations on the video sequence received from the buffer memory (415), thereby creating symbols (421).
[0066] Depending on the type of coded video picture or portion of coded video picture (e.g., inter- and intra-pictures, inter- and intra-blocks) and other factors, the reconstruction of the symbol (421) may involve multiple different units. Which units are involved and how they are involved may be controlled by subgroup control information parsed by the parser (420) from the coded video sequence. For the sake of brevity, such subgroup control information flow between the parser (420) and the multiple units below is not described.
[0067] In addition to the functional blocks already mentioned, the video decoder (410) can be conceptually subdivided into several functional units as described below. In a practical embodiment operating under commercial constraints, many of these units interact closely with each other and can be integrated with each other. However, for the purpose of describing the disclosed subject matter, the conceptual subdivision into the following functional units is appropriate.
[0068] The first unit is a sealer / inverse transform unit (451). The sealer / inverse transform unit (451) receives quantized transform coefficients as symbols (421) from the parser (420) and control information, including which transform method to use, block size, quantization factor, quantization scaling matrix, etc. The sealer / inverse transform unit (451) can output a block including sample values, which can be input into an aggregator (455).
[0069] In some cases, the output samples of the scaler / inverse transform unit (451) may belong to an intra-coded block; that is, a block that does not use predictive information from a previously reconstructed picture, but may use predictive information from a previously reconstructed portion of the current picture. Such predictive information may be provided by an intra-prediction unit (452). In some cases, the intra-prediction unit (452) uses surrounding reconstructed information extracted from a current picture buffer (458) to generate a block of the same size and shape as the block being reconstructed. For example, the current picture buffer (458) buffers a partially reconstructed current picture and / or a fully reconstructed current picture. In some cases, the aggregator (455) adds the prediction information generated by the intra-prediction unit (452) to the output sample information provided by the scaler / inverse transform unit (451) on a per-sample basis.
[0070] In other cases, the output samples of the scaler / inverse transform unit (451) may belong to an inter-frame coded and potentially motion compensated block. In this case, the motion compensated prediction unit (453) may access the reference picture memory (457) to extract samples for prediction. After the extracted samples are motion compensated according to the symbols (421) belonging to the block, these samples may be added to the output of the scaler / inverse transform unit (451) (in this case referred to as residual samples or residual signals) by the aggregator (455) to generate output sample information. The acquisition of the predicted samples by the motion compensated prediction unit (453) from the address in the reference picture memory (457) may be controlled by a motion vector, and the motion vector is provided to the motion compensated prediction unit (453) in the form of the symbols (421), for example, including X, Y and reference picture components. Motion compensation may also include interpolation of sample values extracted from the reference picture memory (457) when using sub-sample accurate motion vectors, motion vector prediction mechanisms, etc.
[0071] The output samples of the aggregator (455) may be used by various loop filtering techniques in a loop filter unit (456). The video compression techniques may include in-loop filter techniques that are controlled by parameters included in the coded video sequence (also referred to as the coded video bitstream) and made available to the loop filter unit (456) as symbols (421) from the parser (420), but may also be responsive to meta-information obtained during decoding of a coded picture or a previous (in decoding order) portion of the coded video sequence, and to previously reconstructed and loop filtered sample values.
[0072] The output of the loop filter unit (456) may be a sample stream that may be output to a display device (412) and stored in a reference picture memory (457) for subsequent inter-picture prediction.
[0073] Once fully reconstructed, certain coded pictures may be used as reference pictures for future prediction. For example, once the coded picture corresponding to the current picture is fully reconstructed, and the coded picture is identified as a reference picture (e.g., by the parser (420)), the current picture buffer (458) may become part of the reference picture memory (457), and a new current picture buffer may be reallocated before starting to reconstruct a subsequent coded picture.
[0074] The video decoder (410) may perform decoding operations according to a predetermined video compression technique in a standard such as ITU-T H.265 Recommendation. The encoded video sequence may conform to the syntax specified by the video compression technology or standard used in the sense that the encoded video sequence follows the syntax of the video compression technology or standard and the profile recorded in the video compression technology or standard. Specifically, the profile may select certain tools from all the tools available in the video compression technology or standard as the only tools available for use under the profile. For compliance, the complexity of the encoded video sequence is also required to be within the range defined by the hierarchy of the video compression technology or standard. In some cases, the hierarchy limits the maximum picture size, the maximum frame rate, the maximum reconstruction sampling rate (measured in, for example, mega samples per second), the maximum reference picture size, etc. In some cases, the limits set by the hierarchy may be further limited by the Hypothetical Reference Decoder (HRD) specification and metadata of the HRD buffer management signaled in the encoded video sequence.
[0075] In an embodiment, the receiver (431) may receive additional (redundant) data along with the encoded video. The additional data may be part of the encoded video sequence. The additional data may be used by the video decoder (410) to properly decode the data and / or more accurately reconstruct the original video data. The additional data may be in the form of, for example, temporal, spatial or signal-to-noise ratio (SNR) enhancement layers, redundant slices, redundant pictures, forward error correction codes, etc.
[0076] Figure 5 1 is a block diagram of a video encoder (503) according to an embodiment disclosed in the present application. The video encoder (503) is provided in an electronic device (520). The electronic device (520) includes a transmitter (540) (e.g., a transmission circuit). The video encoder (503) can be used to replace Figure 3 A video encoder (303) in an embodiment.
[0077] The video encoder (503) can be used to obtain the video source (501) (not Figure 5 In another embodiment, the video source (501) is a part of the electronic device (520) in the example, and receives the video samples. The video source can collect video images to be encoded by the video encoder (503). In another embodiment, the video source (501) is a part of the electronic device (520).
[0078] The video source (501) may provide a source video sequence in the form of a digital video sample stream to be encoded by the video encoder (503), wherein the digital video sample stream may have any suitable bit depth (e.g., 8-bit, 10-bit, 12-bit, ...), any color space (e.g., BT.601 Y CrCB, RGB, ...), and any suitable sampling structure (e.g., Y CrCb 4:2:0, Y CrCb 4:4:4). In a media service system, the video source (501) may be a storage device storing previously prepared videos. In a video conferencing system, the video source (501) may be a camera that captures local image information as a video sequence. The video data may be provided as a plurality of separate pictures that are given motion when viewed sequentially. The pictures themselves may be constructed as a spatial pixel array, wherein each pixel may include one or more samples depending on the sampling structure, color space, etc. used. The relationship between pixels and samples may be easily understood by those skilled in the art. The following description focuses on samples.
[0079] According to an embodiment, the video encoder (503) may encode and compress pictures of a source video sequence into an encoded video sequence (543) in real time or under any other time constraints required by the application. Implementing an appropriate encoding speed is a function of the controller (550). In some embodiments, the controller (550) controls other functional units as described below and is functionally coupled to these units. For the sake of simplicity, couplings are not shown in the figure. The parameters set by the controller (550) may include rate control related parameters (picture skipping, quantizer, lambda value of rate distortion optimization technology, etc.), picture size, group of pictures (GOP) layout, maximum motion vector search range, etc. The controller (550) can be used to have other suitable functions that are related to the video encoder (503) optimized for a certain system design.
[0080] In some embodiments, the video encoder (503) operates in an encoding loop. As a simple description, in one example, the encoding loop may include a source encoder (530) (e.g., responsible for creating symbols, such as a symbol stream, based on an input picture to be encoded and a reference picture) and a (local) decoder (533) embedded in the video encoder (503). The decoder (533) reconstructs the symbols to create sample data in a manner similar to the way the (remote) decoder creates sample data (because in the video compression technology considered by the subject matter disclosed in this application, any compression between the symbols and the encoded video code stream is lossless). The reconstructed sample stream (sample data) is input to a reference picture memory (534). Since the decoding of the symbol stream produces bit-accurate results that are independent of the decoder location (local or remote), the contents of the reference picture memory (534) are also bit-accurate between the local encoder and the remote encoder. In other words, the reference picture samples "seen" by the prediction part of the encoder are exactly the same as the sample values that the decoder will "see" when using the prediction during decoding. This basic principle of reference picture synchronization (and the drift that occurs when synchronization cannot be maintained, eg due to channel errors) is also used in some related techniques.
[0081] The operation of the "local" decoder (533) may be combined with, for example, Figure 4 The "remote" decoder described in detail for the video decoder (410) is identical. However, additional brief reference is made to Figure 4 , when symbols are available and the entropy encoder (545) and parser (420) are capable of losslessly encoding / decoding the symbols into the encoded video sequence, the entropy decoding portion of the video decoder (410), including the buffer memory (415) and the parser (420), may not be fully implemented in the local decoder (533).
[0082] At this point, it can be observed that any decoder technology other than the parsing / entropy decoding present in the decoder must also be present in the corresponding encoder in substantially the same functional form. For this reason, the present application focuses on decoder operation. The description of encoder technology can be simplified because encoder technology is mutually inverse to the decoder technology described comprehensively. A more detailed description is only needed in certain areas and is provided below.
[0083] During operation, in some examples, the source encoder (530) may perform motion compensated predictive coding. The motion compensated predictive coding predictively encodes an input picture with reference to one or more previously encoded pictures from a video sequence designated as "reference pictures." In this manner, the encoding engine (532) encodes the difference between a pixel block of the input picture and a pixel block of a reference picture that may be selected as a prediction reference for the input picture.
[0084] The local video decoder (533) may decode the encoded video data of the picture that may be designated as the reference picture based on the symbol created by the source encoder (530). The operation of the encoding engine (532) may be a lossy process. When the encoded video data is available at the video decoder ( Figure 5 When the video sequence is decoded at a remote location (not shown), the reconstructed video sequence may typically be a copy of the source video sequence with some errors. The local video decoder (533) replicates the decoding process that may be performed by the video decoder on the reference picture and may cause the reconstructed reference picture to be stored in the reference picture cache (534). In this way, the video encoder (503) may locally store a copy of the reconstructed reference picture that has common content (absent transmission errors) with the reconstructed reference picture to be obtained by the remote video decoder.
[0085] The predictor (535) may perform a prediction search for the encoding engine (532). That is, for a new picture to be encoded, the predictor (535) may search the reference picture memory (534) for sample data (as candidate reference pixel blocks) or certain metadata, such as reference picture motion vectors, block shapes, etc., that may serve as appropriate prediction references for the new picture. The predictor (535) may operate pixel-by-pixel based on sample blocks to find a suitable prediction reference. In some cases, based on the search results obtained by the predictor (535), it may be determined that the input picture may have prediction references taken from a plurality of reference pictures stored in the reference picture memory (534).
[0086] The controller (550) may manage encoding operations of the source encoder (530), including, for example, setting parameters and subgroup parameters for encoding video data.
[0087] The outputs of all the above functional units may be entropy encoded in an entropy encoder (545). The entropy encoder (545) performs lossless compression on the symbols generated by the various functional units according to techniques such as Huffman coding, variable length coding, arithmetic coding, etc., thereby converting the symbols into a coded video sequence.
[0088] The transmitter (540) may buffer the encoded video sequence created by the entropy encoder (545) in preparation for transmission over a communication channel (560), which may be a hardware / software link to a storage device where the encoded video data will be stored. The transmitter (540) may combine the encoded video data from the video encoder (503) with other data to be transmitted, such as encoded audio data and / or ancillary data streams (source not shown).
[0089] The controller (550) may manage the operation of the video encoder (503). During encoding, the controller (550) may assign a certain coded picture type to each coded picture, but this may affect the coding techniques that can be applied to the corresponding picture. For example, a picture may generally be assigned to any of the following picture types:
[0090] An intra picture (I picture) may be a picture that can be encoded and decoded without using any other picture in the sequence as a prediction source. Some video codecs allow different types of intra pictures, including, for example, Independent Decoder Refresh ("IDR") pictures. Those skilled in the art are aware of the variations of I pictures and their corresponding applications and features.
[0091] A predictive picture (P picture) may be a picture that can be encoded and decoded using intra prediction or inter prediction, which uses at most one motion vector and a reference index to predict sample values for each block.
[0092] Bidirectional predictive pictures (B pictures), which can be pictures that can be encoded and decoded using intra prediction or inter prediction, which uses up to two motion vectors and reference indices to predict the sample values of each block. Similarly, multiple predictive pictures can use more than two reference pictures and associated metadata for reconstruction of a single block.
[0093] The source picture may typically be spatially subdivided into a number of blocks of samples (e.g., blocks of 4×4, 8×8, 4×8, or 16×16 samples each), and coded block by block. These blocks may be predictively coded with reference to other (already coded) blocks, which are determined according to the coding allocation applied to the block's corresponding picture. For example, blocks of an I picture may be non-predictively coded, or the blocks may be predictively coded (spatial prediction or intra-frame prediction) with reference to already coded blocks of the same picture. Blocks of pixels of a P picture may be predictively coded by spatial prediction with reference to one previously coded reference picture or by temporal prediction. Blocks of a B picture may be predictively coded by spatial prediction with reference to one or two previously coded reference pictures or by temporal prediction.
[0094] The video encoder (503) may perform encoding operations according to a predetermined video encoding technique or standard, such as ITU-T H.265 Recommendation. In operation, the video encoder (503) may perform various compression operations, including predictive encoding operations that exploit temporal and spatial redundancy in an input video sequence. Thus, the encoded video data may conform to the syntax specified by the video encoding technique or standard used.
[0095] In an embodiment, the transmitter (540) may transmit additional data along with the encoded video. The source encoder (530) may include such data as part of the encoded video sequence. The additional data may include temporal / spatial / SNR enhancement layers, redundant pictures and slices and other forms of redundant data, SEI messages, VUI parameter set fragments, etc.
[0096] The captured video may be taken as a plurality of source pictures (video pictures) in a temporal sequence. Intra-picture prediction (often simplified to intra-prediction) exploits spatial correlations in a given picture, while inter-picture prediction exploits (temporal or other) correlations between pictures. In an embodiment, a particular picture being encoded / decoded is divided into blocks, and the particular picture being encoded / decoded is referred to as the current picture. When a block in the current picture is similar to a reference block in a reference picture that was previously encoded in the video and is still buffered, the block in the current picture may be encoded by a vector called a motion vector. The motion vector points to a reference block in a reference picture, and in the case where multiple reference pictures are used, the motion vector may have a third dimension that identifies the reference picture.
[0097] In some embodiments, bidirectional prediction techniques may be used in inter-picture prediction. According to the bidirectional prediction technique, two reference pictures are used, for example, a first reference picture and a second reference picture that are both before the current picture in the video in decoding order (but may be in the past and future respectively in display order). A block in the current picture may be encoded by a first motion vector pointing to a first reference block in the first reference picture and a second motion vector pointing to a second reference block in the second reference picture. The block may be predicted by a combination of the first reference block and the second reference block.
[0098] In addition, merge mode technology can be used in inter-picture prediction to improve coding efficiency.
[0099] According to some embodiments disclosed in the present application, predictions such as inter-picture prediction and intra-picture prediction are performed in blocks. For example, according to the HEVC standard, pictures in a video picture sequence are divided into coding tree units (CTUs) for compression, and the CTUs in the pictures have the same size, such as 64×64 pixels, 32×32 pixels, or 16×16 pixels. In general, a CTU includes three coding tree blocks (CTBs), which are a luminance CTB and two chrominance CTBs. Furthermore, each CTU can be split into one or more coding units (CUs) using a quadtree. For example, a 64×64 pixel CTU can be split into a 64×64 pixel CU, or 4 32×32 pixel CUs, or 16 16×16 pixel CUs. In an embodiment, each CU is analyzed to determine the prediction type for the CU, such as an inter-prediction type or an intra-prediction type. In addition, depending on temporal and / or spatial predictability, the CU is split into one or more prediction units (PUs). Typically, each PU includes a luminance prediction block (PB) and two chrominance PBs. In an embodiment, the prediction operation in encoding (encoding / decoding) is performed in units of prediction blocks. Taking the luminance prediction block as an example of a prediction block, the prediction block includes a matrix of pixel values (e.g., luminance values), such as 8×8 pixels, 16×16 pixels, 8×16 pixels, 16×8 pixels, and the like.
[0100] Figure 6 A diagram of a video encoder (603) according to another embodiment of the present disclosure is shown. The video encoder (603) is configured to receive a processed block (e.g., a prediction block) of sample values within a current video picture in a video picture sequence and encode the processed block into an encoded picture that is part of an encoded video sequence. In this embodiment, the video encoder (603) is configured to replace Figure 3The video encoder (303) in the example.
[0101] In the HEVC example, the video encoder (603) receives a matrix of sample values for a processing block, such as a prediction block of 8×8 samples. The video encoder (603) uses, for example, rate-distortion (RD) optimization to determine whether to use intra mode, inter mode, or bidirectional prediction mode to encode the processing block. When encoding the processing block in intra mode, the video encoder (603) may use intra prediction techniques to encode the processing block into an encoded picture; and when encoding the processing block in inter mode or bidirectional prediction mode, the video encoder (603) may use inter prediction or bidirectional prediction techniques to encode the processing block into an encoded picture, respectively. In some video encoding techniques, the merge mode may be an inter-picture prediction submode, in which a motion vector is derived from one or more motion vector predictors without the aid of an encoded motion vector component external to the predictor. In some other video encoding techniques, there may be a motion vector component applicable to the subject block. In an embodiment, the video encoder (603) includes other components, such as a mode decision module (not shown) for determining the processing block mode.
[0102] exist Figure 6 In the example of FIG. 6 , the video encoder ( 603 ) includes: Figure 6 Shown are an inter-frame encoder (630), an intra-frame encoder (622), a residual calculator (623), a switch (626), a residual encoder (624), a common controller (621), and an entropy encoder (625) coupled together.
[0103] The inter-frame encoder (630) is used to receive samples of a current block (e.g., a processing block), compare the block with one or more reference blocks in a reference picture (e.g., blocks in a previous picture and a subsequent picture), generate inter-frame prediction information (e.g., redundant information description according to an inter-frame coding technique, motion vectors, merge mode information), and calculate an inter-frame prediction result (e.g., a predicted block) based on the inter-frame prediction information using any suitable technique. In some examples, the reference picture is a decoded reference picture decoded based on the encoded video information.
[0104] The intra-frame encoder (622) is used to receive samples of a current block (e.g., a processing block), compare the block with an encoded block in the same picture in some cases, generate quantization coefficients after transformation, and in some cases also generate intra-frame prediction information (e.g., intra-frame prediction direction information according to one or more intra-frame coding techniques). In one example, the intra-frame encoder (622) also calculates an intra-frame prediction result (e.g., a predicted block) based on the intra-frame prediction information and a reference block in the same picture.
[0105] The general controller (621) is used to determine the general control data and control other components of the video encoder (603) based on the general control data. In an embodiment, the general controller (621) determines the mode of the block and provides a control signal to the switch (626) based on the mode. For example, when the mode is intra mode, the general controller (621) controls the switch (626) to select the intra mode result for use by the residual calculator (623) and controls the entropy encoder (625) to select the intra prediction information and add the intra prediction information to the bitstream; and when the mode is inter mode, the general controller (621) controls the switch (626) to select the inter prediction result for use by the residual calculator (623) and controls the entropy encoder (625) to select the inter prediction information and add the inter prediction information to the bitstream.
[0106] The residual calculator (623) is used to calculate the difference (residual data) between the received block and the prediction result selected from the intra-frame encoder (622) or the inter-frame encoder (630). The residual encoder (624) is used to operate based on the residual data to encode the residual data to generate a transform coefficient. In an embodiment, the residual encoder (624) is used to convert the residual data from the time domain to the frequency domain and generate a transform coefficient. The transform coefficient is then processed by quantization to obtain a quantized transform coefficient. In various embodiments, the video encoder (603) also includes a residual decoder (628). The residual decoder (628) is used to perform an inverse transform and generate decoded residual data. The decoded residual data can be used appropriately by the intra-frame encoder (622) and the inter-frame encoder (630). For example, the inter-frame encoder (630) can generate a decoded block based on the decoded residual data and the inter-frame prediction information, and the intra-frame encoder (622) can generate a decoded block based on the decoded residual data and the intra-frame prediction information. The decoded blocks are appropriately processed to generate a decoded picture, and in some embodiments, the decoded picture may be buffered in a memory circuit (not shown) and used as a reference picture.
[0107] The entropy encoder (625) is used to format the code stream to produce an encoded block. The entropy encoder (625) generates various information according to a suitable standard such as the HEVC standard. In an embodiment, the entropy encoder (625) is used to obtain general control data, selected prediction information (such as intra-frame prediction information or inter-frame prediction information), residual information, and other suitable information in the code stream. It should be noted that according to the disclosed subject matter, when the block is encoded in the inter-frame mode or the merge sub-mode of the bidirectional prediction mode, there is no residual information.
[0108] Figure 7A diagram of a video decoder (710) according to another embodiment disclosed in the present application is shown. The video decoder (710) is used to receive an encoded image as part of an encoded video sequence and decode the encoded image to generate a reconstructed picture. In one example, the video decoder (710) is used to replace Figure 3 The video decoder (310) of the example.
[0109] exist Figure 7 In the example of FIG. 7 , the video decoder ( 710 ) includes Figure 7 An entropy decoder (771), an inter-frame decoder (780), a residual decoder (773), a reconstruction module (774) and an intra-frame decoder (772) coupled together are shown in FIG.
[0110] The entropy decoder (771) can be used to reconstruct certain symbols from the encoded picture, which represent syntax elements that constitute the encoded picture. Such symbols may include, for example, a mode for encoding the block (e.g., intra-frame mode, inter-frame mode, bidirectional prediction mode, a merged sub-mode of the latter two, or another sub-mode), prediction information (e.g., intra-frame prediction information or inter-frame prediction information) that can identify certain samples or metadata for prediction by the intra-frame decoder (772) or the inter-frame decoder (780), respectively, residual information in the form of, for example, quantized transform coefficients, etc. In one example, when the prediction mode is an inter-frame prediction mode or a bidirectional prediction mode, the inter-frame prediction information is provided to the inter-frame decoder (780); and when the prediction type is an intra-frame prediction type, the intra-frame prediction information is provided to the intra-frame decoder (772). The residual information can be inverse quantized and provided to the residual decoder (773).
[0111] The inter-frame decoder (780) is used for receiving the inter-frame prediction information and generating an inter-frame prediction result based on the inter-frame prediction information.
[0112] The intra-frame decoder (772) is used to receive intra-frame prediction information and generate a prediction result based on the intra-frame prediction information.
[0113] The residual decoder (773) is used to perform inverse quantization to extract dequantized transform coefficients, and process the dequantized transform coefficients to convert the residual from the frequency domain to the spatial domain. The residual decoder (773) may also require some control information (to obtain the quantizer parameter QP), and this information can be provided by the entropy decoder (771) (the data path is not indicated because this is only low-volume control information).
[0114] The reconstruction module (774) is used to combine the residual output by the residual decoder (773) with the prediction result (which can be output by the inter-frame prediction module or the intra-frame prediction module) in the spatial domain to form a reconstructed block, which can be part of a reconstructed picture, which in turn can be part of a reconstructed video. It should be noted that other suitable operations such as deblocking operations can be performed to improve visual quality.
[0115] It should be noted that the video encoder (303), video encoder (503) and video encoder (603) and video decoder (310), video decoder (410) and video decoder (710) may be implemented using any suitable technology. In an embodiment, the video encoder (303), video encoder (503) and video encoder (603) and video decoder (310), video decoder (410) and video decoder (710) may be implemented using one or more integrated circuits. In another embodiment, the video encoder (303), video encoder (503) and video encoder (503) and video decoder (310), video decoder (410) and video decoder (710) may be implemented using one or more processors that execute software instructions.
[0116] II. Transformation Processing Technology
[0117] 1. Quadtree block partition structure
[0118] The block partitioning structure is called a coding tree. In some embodiments, the coding tree unit (CTU) is partitioned into coding units (CUs) using a quadtree structure to accommodate various local characteristics. The decision to encode a picture area using inter-picture (temporal) prediction or intra-picture (spatial) prediction is made at the CU level. Each CU can be further partitioned into one prediction unit (PU), two PUs, or four PUs depending on the PU partitioning type. Within a PU, the same prediction process is applied, and relevant information is sent to the decoder in units of PUs.
[0119] After obtaining the residual block by applying the prediction process based on the PU partition type, the CU can be divided into transform units (TUs) according to another quadtree structure. It can be seen that there are multiple partition concepts, including: CU, PU and TU. In some embodiments, the CU or TU can only be square in shape, while the PU can be square or rectangular in shape. In some embodiments, the coding block can be further divided into four square sub-blocks, and a transform is performed on each sub-block (ie, TU). Each TU can be further recursively divided into smaller TUs using a quadtree structure called a residual quadtree (RQT).
[0120] In some embodiments, implicit quadtree partitioning may be used at a picture boundary, so that a block is continuously quadtree partitioned until its size fits within the picture boundary.
[0121] 2. Quadtree plus binary tree (QTBT) block partition structure
[0122] In some embodiments, a quadtree plus binary tree (QTBT) structure is used. The QTBT structure removes the concept of multiple partition types (CU concept, PU concept and TU concept) and supports greater flexibility in the CU partition shape. In the QTBT block structure, the CU can have either a square shape or a rectangular shape.
[0123] Fig. 8A A CTU (810) is shown, and CTU (810) uses Figure 8B The QTBT structure (820) shown in FIG. 8 is divided. The CTU (810) is first divided by a quadtree structure. The quadtree leaf nodes are further divided by a binary tree structure or a quadtree structure. In the binary tree partitioning, there can be two types of partitioning: symmetric horizontal partitioning and symmetric vertical partitioning. The binary tree leaf nodes are called CUs, which can be used for prediction and transform processing without any further partitioning. Accordingly, CUs, PUs, and TUs have the same block size in the QTBT coding block structure.
[0124] In some embodiments, a CU may include coding blocks (CBs) with different color components. For example, in the case of a P slice and a B slice in a 4:2:0 chroma format, a CU includes a luma CB and two chroma CBs. A CU may include a CB with a single color component. For example, in the case of an I slice, a CU includes only a luma CB or only two chroma CBs.
[0125] In some embodiments, the following parameters are defined for the QTBT partitioning scheme:
[0126] –CTU size: The root node size of the quadtree, for example, the same concept as in the HEVC standard.
[0127] –MinQTSize: Minimum allowed quadtree leaf node size.
[0128] –MaxBTSize: Maximum allowed binary tree root node size.
[0129] –MaxBTDepth: Maximum allowed binary tree depth.
[0130] –MinBTSize: The minimum allowed binary tree leaf node size.
[0131] In one example of a QTBT partitioning structure, CTUsize is set to be 128×128 luma samples with two corresponding 64×64 blocks of chroma samples, MinQTSize is set to 16×16, MaxBTSize is set to 64×64, MinBTSize (for both width and height) is set to 4×4, and MaxBTDepth is set to 4. Quadtree partitioning is first applied to the CTU to generate quadtree leaf nodes. The size of the quadtree leaf node can range from 16×16 (i.e., MinQTSize) to 128×128 (i.e., CTU size). If the quadtree leaf node is 128×128, it will not be further split by the binary tree because its size exceeds MaxBTSize (i.e., 64×64). Otherwise, the quadtree leaf node can be further divided by the binary tree. Therefore, the quadtree leaf node is also the root node of the binary tree, and its binary tree depth is 0.
[0132] When the binary tree depth reaches MaxBTDepth (i.e., 4), no further splits are considered. When the width of the binary tree node is equal to MinBTSize (i.e., 4), no further horizontal splits are considered. Similarly, when the height of the binary tree node is equal to MinBTSize, no further vertical splits are considered. The leaf nodes of the binary tree are further processed through prediction and transform processing without any further partitioning. In an embodiment, the maximum CTU size is 256×256 luma samples.
[0133] exist Fig. 8A and 8B In FIG, solid lines represent quadtree partitioning and dashed lines represent binary tree partitioning. At each partition (i.e., non-leaf) node of the binary tree, a flag is signaled to indicate which partition type (i.e., horizontal partitioning or vertical partitioning) is used. For example, 0 indicates horizontal partitioning and 1 indicates vertical partitioning. For quadtree partitioning, there is no need to indicate the partition type because quadtree partitioning always partitions a block horizontally and vertically to produce 4 sub-blocks of equal size.
[0134] In some embodiments, the QTBT scheme supports flexibility for luma and chroma with separate QTBT structures. For example, for P and B slices, the luma blocks and chroma blocks in one CTU share the same QTBT structure. However, for I slices, the luma CTBs are divided into CUs by one QTBT structure, while the chroma blocks are divided into CUs by another QTBT structure. Therefore, a CU in an I slice consists of a coding block with a luma component or a coding block with two chroma components, and a CU in a P slice or a B slice consists of a coding block with all three color components.
[0135] In some embodiments, inter prediction for small blocks is constrained to reduce memory access for motion compensation. For example, 4×8 blocks and 8×4 blocks do not support bidirectional prediction, while 4×4 blocks do not support inter prediction.
[0136] 3. Ternary Tree (TT) Block Partition Structure
[0137] In some embodiments, a multi-type tree (MTT) structure is used to partition the picture. The MTT structure is a more flexible tree structure than the QTBT structure. In the MTT, in addition to the quadtree and the binary tree, the following are also used: Fig. 9A and Fig. 9B The horizontal center-side ternary tree and the vertical center-side ternary tree are shown. The ternary tree partition can complement the quadtree partition and the binary tree partition. For example, the ternary tree partition can capture objects located in the center of the block, while the quadtree partition and the binary tree partition split across the center of the block. The width and height of the partitions of the ternary tree are powers of 2, so no additional transform partition is required.
[0138] 4. Main transformation example
[0139] In some embodiments, a 4-point DCT-2 transform, an 8-point DCT-2 transform, a 16-point DCT-2 transform, and a 32-point DCT-2 transform are used as the primary transform. FIG. 10A to FIG. 10D The transform core matrix of 4-point DCT-2, the transform core matrix of 8-point DCT-2, the transform core matrix of 16-point DCT-2 and the transform core matrix of 32-point DCT-2 are shown respectively. The elements of these transform core matrices can be represented by 8-bit integers, so these transform core matrices are called 8-bit transform cores. FIG. 10A to FIG. 10D As shown, the transform core matrix of the smaller DCT-2 is a part of the transform core matrix of the larger DCT-2.
[0140] The DCT-2 core matrix has symmetric / antisymmetric properties. Therefore, the so-called "partial butterfly" implementation can be supported to reduce the number of operation counts (multiplication, addition / subtraction, shift). The same matrix multiplication result can be obtained using the partial butterfly implementation.
[0141] 5. Additional Master Transformation Examples
[0142] In some embodiments, in addition to the above-mentioned 4-point DCT-2 transform, 8-point DCT-2 transform, 16-point DCT-2 transform, and 32-point DCT-2 transform, an additional 2-point DCT-2 transform and 64-point DCT-2 transform are used. FIG. 11A to FIG. 11E A 64×64 transform kernel matrix of a 64-point DCT-2 transform is shown.
[0143] In some embodiments, in addition to the DCT-2 transform and the 4×4 DST-7 transform, an adaptive multi-transform (AMT) (also known as enhanced multi-transform (EMT) or multi-transform selection (MTS)) is used for residual coding and decoding of inter-frame coded blocks and intra-frame coded blocks. In addition to the DCT-2 transform, AMT also uses multiple selected transforms of the discrete cosine transform (DCT) / discrete sine transform (DST) family, such as the transform core matrix of the DST-7 transform or the transform core matrix of the DCT-8 transform. Fig.12 The transform basis functions for the selected DST / DCT transform are shown.
[0144] In some embodiments, the DST / DCT transform core matrix used in AMT is represented by an 8-bit representation. In some embodiments, AMT is applied to CUs whose width and height are both less than or equal to 32. Whether AMT is applied can be controlled by a flag represented by mts_flag. For example, when mts_flag is equal to 0, only DCT-2 is applied to encode the residual block. When mts_flag is equal to 1, two binary numbers (bins) can be further used to signal the index represented by mts_idx to specify the horizontal transform and vertical transform to be used.
[0145] Fig.13 A table (1300) illustrating the mapping relationship between the mts_idx value and the corresponding horizontal transform or vertical transform is shown. The row (1301) where the mts_idx value is -1 corresponds to the scene where mts_flag is equal to 0 and DCT-2 transform is used. The rows (1302) to (1305) where the mts_idx value is 0, 1, 2 or 3 correspond to the scene where mts_flag is equal to 1. In the two right columns of the table (1300), 0 indicates the DCT-2 transform type, 1 indicates the DST-7 transform type, and 2 indicates the DCT-8 transform type.
[0146] FIG. 14A to FIG. 14D The transformation core matrix of the DST-7 transformation is shown. FIG. 15A to FIG. 15D A transform kernel matrix of DCT-8 transform is shown.
[0147] 6. Intra-frame sub-partitioning (ISP) codec mode
[0148] In some embodiments, an intra sub-partitioning (ISP) coding mode is used. In the ISP coding mode, the luma intra prediction block can be vertically or horizontally divided into 2 sub-partitions or 4 sub-partitions. The number of sub-partitions may depend on the size of the block. Fig.16 The number of sub-partitions depending on the block size is shown. Fig.17 A scenario is shown where a block is divided into two sub-partitions. Fig.18A scenario of dividing a block into four sub-partitions is shown. In an example, all sub-partitions satisfy the condition of having at least 16 samples. In an example, ISP is not applied to chrominance components.
[0149] In one example, for each of the subpartitions divided from the coding block, a residual signal is generated by entropy decoding the coefficients sent by the encoder, and then inverse quantizing and inverse transforming. Then, intra-frame prediction is performed on the first subpartition in the subpartition to generate a prediction signal. The prediction signal is added to the corresponding residual signal of the first subpartition to obtain the corresponding reconstructed sample. Thereafter, the value of the reconstructed sample of the first subpartition can be used to generate a prediction value for the second subpartition in the subpartition. The process can be repeated subpartition by subpartition until all subpartitions of the coding block have been reconstructed. In one example, all subpartitions share the same intra-frame mode.
[0150] In an embodiment, only intra modes that are part of the most probable mode (MPM) list are used to test the ISP codec mode. Therefore, if a block uses ISP, the MPM flag can be inferred to be 1. In addition, when ISP is used for a block, the corresponding MPM list is modified to exclude DC mode and to prioritize horizontal intra mode for ISP horizontal splits and vertical intra mode for vertical splits.
[0151] In the ISP codec mode, each sub-partition can be regarded as a sub-TU because the transformation and reconstruction of each sub-partition are performed separately.
[0152] Figures 19A to 19B An exemplary syntax table (1900) is shown, which includes relevant syntax elements for signaling ISP codec mode. As shown in box (1910), the syntax element intra_subpartitions_mode_flag indicates whether ISP is used. The syntax element intra_subpartitions_split_flag indicates the direction of the partition (vertical or horizontal).
[0153] 7. Sub-Block Transform (SBT)
[0154] In some embodiments, a sub-block transform (SBT), also known as a spatially varying transform (SVT), is used. SBT can be applied to inter-frame prediction residuals. For example, the coding block can be divided into sub-blocks, and only a portion of the sub-blocks are used as residual blocks. The remaining sub-blocks are assumed to have zero residuals. Therefore, the residual block is smaller than the coding block, and the transform size in the SBT is smaller than the coding block size. For areas not covered by the residual block, no transform processing is performed.
[0155] Figures 20A to 20DThe sub-block types (SVT-H, SVT-V) supported in SBT are shown (e.g., vertically partitioned or horizontally partitioned), sizes, and positions (e.g., left half, left quarter, right half, right quarter, top half, top quarter, bottom half, bottom quarter). The shaded areas marked by the letter "A" are residual blocks with transformation, while other areas are zero residuals assumed to be without transformation.
[0156] For example, Figures 21A to 21I 2 shows the changes to the specification text of the video codec standard (e.g., VVC) developed by the Joint Video Experts Group (JVET) when using SBT. The added text is shown in boxes (2101) to (2113). Figures 21A to 21I As shown, additional syntax elements cu_sbt_flag, cu_sbt_quad_flag, cu_sbt_horizontal_flag, and cu_sbt_pos_flag are signaled to indicate the sub-block type (horizontal or vertical), size (half or quarter), and position (left or right, top or bottom), respectively.
[0157] 8. YUV format
[0158] Fig. 22 Different YUV formats (e.g., 4:4:4, 4:2:2, 4:1:1, and 4:2:0) used in some embodiments are shown. In one example, cross-component linear model intra prediction is used for the 4:2:0 format. A six-tap interpolation filter can be used to obtain the same Fig. 22 The chroma samples shown correspond to the downsampled luma samples. The downsampled luma samples Rec'L[x,y] can be obtained by the following formula based on the nearby reconstructed luma samples (given by Rec L [x,y] represents) to calculate:
[0159] Rec' L [x,y]=(2×Rec L [2x,2y]+2×Rec L [2x,2y+1]+
[0160] Rec L [2x-1,2y]+Rec L [2x+1,2y]+
[0161] Rec L [2x-1,2y+1]+Rec L [2x+1,2y+1]+4)>>3
[0162] 9. Virtual Pipeline Data Unit (VPDU)
[0163] A virtual pipeline data unit (VPDU) is defined as a non-overlapping unit in a picture. In a hardware decoder, consecutive VPDUs are processed simultaneously by multiple pipeline stages. At most pipeline stages, the size of the VPDU is roughly proportional to the size of the buffer. It is expected to keep the VPDU at a specific size (e.g., 64×64 or smaller). The maximum transform block (TB) size can be specified in the video codec standard to match the VPDU size required by some hardware decoders. However, in some examples, when ternary tree (TT) partitioning and binary tree (BT) partitioning are used without specific constraints, the resulting transform blocks may not be aligned with the expected maximum transform block size (e.g., 64×64) or VPDU size.
[0164] To keep the VPDU size to 64×64 luma samples, the following normative partitioning constraints apply in some embodiments (with modifications to the syntax signaling):
[0165] – For CUs with width or height or both width and height equal to 128, TT partitioning is not allowed,
[0166] – For a 128×N CU, N≤64 (i.e., width equals 128 and height less than 128), horizontal BT splitting is not allowed.
[0167] – For N×128 CUs, N≤64 (i.e., height equals 128 and width less than 128), vertical BT splitting is not allowed.
[0168] Fig.23 Examples of TT partitioning and BT partitioning that are not allowed are shown.
[0169] III. Transform Block Partitioning and Processing Techniques
[0170] In some embodiments, a fixed maximum allowed transform unit (TU) size (e.g., 64×64 pixels or samples) is used. For example, by performing tree-based partitioning, a picture or slice can be divided into coding blocks for intra prediction processing or inter prediction processing. For transform processing, when the coding block is larger than the maximum allowed TU size (e.g., the side length is greater than 64 samples, or both the width and height are greater than 64 samples), the coding block can be further divided into sub-blocks so that the size of the resulting sub-blocks is consistent with the maximum allowed TU size.
[0171] The fixed maximum allowed TU size adopted may be specified in the video codec standard, and accordingly the size of the VPDU processed by the multi-stage pipeline may be determined at the hardware encoder or decoder. The size of the transform block produced by the transform block partitioning according to the maximum allowed TU size matches the VPDU size required by the pipeline encoder or decoder.
[0172] Instead, in some embodiments, a controllable maximum allowed TU size or a configurable maximum allowed TU size is adopted. For example, in addition to the size of 64×64 samples, the maximum TU size can be other sizes, such as 32×32 samples, 16×16 samples, etc. The maximum TU size can be determined on the encoder side and signaled to the decoder side. This flexibility of the maximum allowed TU size can have an impact on the hardware complexity of implementing the encoder (e.g., pipeline intermediate buffer size, number of multipliers, etc.), potentially improving the performance of the hardware encoder, and is therefore desirable.
[0173] When a controllable maximum allowed TU size is used, the maximum TU size (e.g., 16×16 samples) may be smaller than the VPDU size (e.g., 64×64 samples). In this scenario, in some embodiments, a specific transform block partitioning technique is used to partition the coding block into transform blocks. These transform blocks have the maximum allowed TU size. At the same time, the partitioning of these transform blocks is compatible with the VPDU size. In other words, the generated transform blocks are compatible with the requirements of pipeline processing based on the VPDU size.
[0174] In addition, in some embodiments, the transform blocks are processed according to a specific order so that the processed blocks can be combined into a VPDU suitable for pipeline processing. For example, the processing of the transform blocks at the decoder may include entropy decoding, inverse quantization, inverse transformation, etc. For example, the pipeline processing may include block reconstruction, deblocking, sample adaptive offset (SAO) processing, adaptive loop filter (ALF) processing, etc.
[0175] 1. Example A
[0176] In one example, the maximum allowed TU size is set to M samples (e.g., a size of M×M samples). The VPDU size is set to K samples (e.g., a size of K×K samples). The coding block (or CU) has a width of W samples and a height of H samples. The coding block can be divided in the following manner based on the VPDU size K and the maximum allowed TU size M. First, the coding block of size W×H samples can be divided into multiple sub-blocks, called sub-processing units (SPUs), and each SPU has a size of Min(W, K)×Min(H, K) (the smallest of W and K×the smallest of H and K) samples. Then, each SPU is further divided into transform blocks (or TUs) of size M×M samples. These transform blocks can be called sub-TUs.
[0177] In addition, in one example, each SPU is considered as a VPDU, and these VPDUs can be processed through a multi-stage pipeline. The SPUs can be processed in a first order. Based on the first order of processing the SPUs, the order of processing the sub-TUs can be determined. For example, the first SPU and the second SPU are processed continuously through a multi-stage pipeline. Therefore, the sub-TU in the first SPU is first processed (e.g., entropy decoding, inverse quantization, and inverse transformation) and input into the multi-stage pipeline. The sub-TU in the second SPU is then processed and input into the multi-stage pipeline. By processing the sub-PUs in this order, the pipeline processing requirements based on VPDU can be met.
[0178] Furthermore, within each SPU, sub-TUs may be processed in a second order.
[0179] In various embodiments, the first order for processing the SPU and the second order for processing the sub-TU within the SPU may be one of a raster scan order, a vertical scan order (e.g., scanning the SPU or sub-TU by column from left to right, or vice versa), a zigzag order, a diagonal scan order, and the like.
[0180] In different embodiments, the first order and the second order may be the same or different. For example, in one embodiment, the first order for processing an SPU and the second order for processing a sub-TU within an SPU are both raster scan orders.
[0181] 2. Example B
[0182] Fig.24 A coding block (or CU) (2410) of size W×H samples is shown, where W=128 and H=64. The maximum allowed TU size M=32 samples is signaled from the encoder to the decoder. The VPDU size is specified as K=64 samples. In order to align the transform block with the VPDU, the coding block (2410) is first partitioned into a 64×64 SPU (2420) on the left and a 64×64 SPU (2430) on the right. The left SPU (2420) and the right SPU (2430) can then be further divided into sub-TUs (labeled 0 to 7), each sub-TU having a size of 32×32 samples. The sub-TUs labeled by 0, 1, 2, and 3 are included in the first SPU (2420), while the sub-TUs labeled by 4, 5, 6, and 7 are included in the second SPU (2430).
[0183] In a configured order or in a default order, the SPU (2420) on the left may be processed first, and then the SPU (2430) on the right may be processed. Within the SPU (2420) or each SPU in the SPU (2430), a raster scan order may be specified (or defaulted) for processing the generated sub-TUs (labeled 0 to 7). Accordingly, the sub-TUs labeled 0 to 7 are processed in the order indicated by the arrow (2451).
[0184] 3. Example C
[0185] Fig.25 A coding block (2510) of size W×H samples is shown, where W=128 and H=32. The maximum allowed TU size M=16 samples is signaled from the encoder to the decoder. The VPDU size is specified as K=64 samples. The smaller of W and K is 64, and the smaller of H and K is 32. Therefore, in order to align the transform block with the VPDU, the size of the SPU can be determined to be 64×32 samples. The coding block (2510) is divided into a SPU (2520) on the left and an SPU (2530) on the right, each SPU having a size of 64×32 samples. The two SPUs, SPU (2520) and SPU (2530), can be processed in a left-to-right order.
[0186] Each of the two SPUs, SPU (2520) and SPU (2530), can be further partitioned into sub-TUs (labeled 0 to 15), each of which has the maximum allowed TU size (16×16 samples). Fig.25 As shown, the SPU (2520) on the left is divided into sub-TUs labeled from 0 to 7, and the SPU (2530) on the right is divided into sub-TUs labeled from 8 to 15. Within each SPU in SPU (2520) and SPU (2530), the sub-TUs can be processed in a raster scan order. Accordingly, the sub-TUs labeled from 0 to 15 can be executed in the order shown by arrow (2551).
[0187] 4. Example D
[0188] Fig.26 A coded block (2610) of size W×H samples is shown, where W=128 and H=32. The maximum allowed TU size M=16 samples is signaled from the encoder to the decoder. The VPDU size is specified as K=64 samples. Fig.25 In a similar manner to the example, the coding block (2610) can be divided into two SPUs: (2620) and (2630), and each SPU can be further divided into sub-TUs labeled from 0 to 15. SPU (2620) and SPU (2630) can be in the same Fig.25 , processing from left to right. However, Fig.25 The difference between the examples is that in SPU (2620) and SPU (2630), the sub-TUs in each SPU are processed in a zigzag scanning order.
[0189] 5. Example E
[0190] Fig. 27 A flowchart outlining a transform block partitioning and processing method (2700) according to an embodiment of the present application is shown. The method (2700) may be used to reconstruct a block encoded in an intra-frame mode or a block encoded in an inter-frame mode. In various embodiments, the method (2700) is performed by a processing circuit, such as a processing circuit in a terminal device (210), a terminal device (220), a terminal device (230), and a terminal device (240), a processing circuit that performs the functions of a video decoder (310), a processing circuit that performs the functions of a video decoder (410), etc. In some embodiments, the method (2700) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the method (2700). The method starts at (S2701) and proceeds to (S2710).
[0191] At (S2710), a syntax element indicating a maximum allowed TU size M may be received from a code stream. For example, a controllable maximum allowed TU size may be used. The maximum allowed TU size may be determined at the encoder and signaled to the decoder.
[0192] At (S2720), a coding block having a width of W pixels and a height of H pixels may be received at the decoder. For example, a syntax element indicating a coding block having the width and the height may be received from a code stream at the decoder.
[0193] At (S2730), the coding block is divided into SPUs. For example, a VPDU size of K×K samples (or pixels) may be preconfigured to a decoder. Based on the VPDU size and the size of the coding block, the size of the SPU may be determined. For example, the width of the SPU may be the smaller of W pixels or K pixels, and the height of the SPU may be the smaller of H pixels or K pixels. Accordingly, the coding block may be divided into SPUs, each SPU having the determined width and height.
[0194] At (S2740), each SPU is divided into sub-TUs, and the maximum allowed TU size of each sub-TU is M.
[0195] At (S2750), the sub-TUs of the SPU are processed in the SPU processing order. For example, the SPU processing order may be predetermined to process the SPUs, for example, through a multi-stage pipeline. Within each SPU, the sub-TUs may be processed in a predetermined order. Alternatively, the order for processing the SPUs or sub-TUs may be controllable and signaled from the decoder.
[0196] For example, according to the SPU processing order and the sub-TU processing order within each SPU, the residual signal of each sub-TU can be obtained through a series of decoding operations (e.g., transform coefficient entropy decoding, inverse quantization, inverse transformation, etc.). In one example, the residual signal can be combined SPU by SPU and input to a multi-stage pipeline. The method can proceed to (S2799) and terminate at (S2799).
[0197] IV. Computer System
[0198] The techniques described above may be implemented as computer software using computer-readable instructions and physically stored in one or more computer-readable storage media. Fig.28 A computer system (2800) suitable for implementing certain embodiments of the disclosed subject matter is shown.
[0199] The computer software may be encoded using any suitable machine code or computer language, which may be subjected to assembly, compilation, linking or similar mechanisms to create code comprising instructions that may be executed directly or through interpretation, microcode execution, etc., by one or more computer central processing units (CPU), graphics processing units (GPU), etc.
[0200] The instructions may be executed on various types of computers or computer components, including, for example, personal computers, tablets, servers, smart phones, gaming devices, Internet of Things devices, etc.
[0201] Fig.28 The components for computer system (2800) shown in the example are exemplary in nature and are not intended to imply any limitation on the scope of use or functionality of computer software implementing embodiments of the present application. Nor should the configuration of components be interpreted as having any dependency or requirement on any one or combination of components shown in the exemplary embodiment of computer system (2800).
[0202] The computer system (2800) may include certain human-machine interface input devices. Such human-machine interface input devices may be responsive to input by one or more human users, for example, through tactile input (e.g., keystrokes, swipes, data glove movements), audio input (e.g., voice, taps), visual input (e.g., gestures), olfactory input (not depicted). The human-machine interface devices may also be used to capture certain media that may not be directly related to a person's conscious input, such as audio (e.g., speech, music, ambient sounds), images (e.g., scanned images, photographic images obtained from a still image camera), and videos (e.g., two-dimensional video, three-dimensional video including stereoscopic video).
[0203] Input human-machine interface devices may include one or more of the following (only one of each is depicted): keyboard (2801), mouse (2802), track pad (2803), touch screen (2810), data gloves (not shown), joystick (2805), microphone (2806), scanner (2807), camera (2808).
[0204] The computer system (2800) may also include certain human-machine interface output devices. Such human-machine interface output devices may stimulate the senses of one or more human users through, for example, tactile output, sound, light, and smell / taste. Such human-machine interface output devices may include tactile output devices (e.g., tactile feedback of a touch screen (2810), a data glove (not shown), or a joystick (2805), although there may also be tactile feedback devices that do not serve as input devices), audio output devices (e.g., speakers (2809), headphones (not depicted)), visual output devices (e.g., screens (2810), including CRT screens, LCD screens, plasma screens, OLED screens, each with or without touch screen input capabilities, each with or without tactile feedback capabilities - some of which are capable of outputting two-dimensional visual output or output greater than three dimensions through, for example, stereographic output; virtual reality glasses (not depicted), holographic displays, and smoke boxes (not depicted)), and printers (not depicted).
[0205] The computer system (2800) may also include human-accessible storage devices and associated media for the storage devices, such as optical media including CD / DVD ROM / RW (2820) with CD / DVD etc. media (2821), thumb drives (2822), removable hard drives or solid-state drives (2823), legacy magnetic media such as tapes and floppy disks (not depicted), ROM / ASIC / PLD based specialized devices such as security protection devices (not depicted), and the like.
[0206] Those skilled in the art will also appreciate that the term "computer-readable storage medium" used in connection with the presently disclosed subject matter does not encompass transmission media, carrier waves, or other transient signals.
[0207] The computer system (2800) may also include an interface to one or more communication networks. The network may be, for example, wireless, wired, optical. The network may also be local, wide area, metropolitan, vehicle-mounted and industrial, real-time, delay-tolerant, and the like. Examples of networks include local area networks such as Ethernet, wireless LAN, cellular networks including GSM, 3G, 4G, 5G, LTE, etc., TV wired or wireless wide area digital networks including cable TV, satellite TV, and terrestrial broadcast TV, vehicle-mounted networks and industrial networks including CAN buses, and the like. Some networks typically require an external network interface adapter attached to some universal data ports or peripheral buses (2849) (e.g., a USB port of the computer system (2800)); other networks are typically integrated into the core of the computer system (2800) by attaching to the system bus as described below (e.g., integrated into a PC computer system via an Ethernet interface, or integrated into a smart phone computer system via a cellular network interface). By using any of these networks, the computer system (2800) can communicate with other entities. Such communications may be one-way receive only (e.g. broadcast TV), one-way send only (e.g. a CAN bus connected to certain CAN bus devices), or bidirectional, such as connecting to other computer systems using a local area digital network or a wide area digital network. Certain protocols and protocol stacks may be used on each of the networks and network interfaces such as those described above.
[0208] The above-mentioned human-machine interface device, human-accessible storage device, and network interface may be attached to the core (2840) of the computer system (2800).
[0209] The core (2840) may include one or more central processing units (CPUs) (2841), graphics processing units (GPUs) (2842), dedicated programmable processing units in the form of field programmable gate areas (FPGAs) (2843), hardware accelerators for certain tasks (2844), and the like. These devices, along with read-only memory (ROM) (2845), random access memory (2846), and internal mass storage devices (2847) such as internal non-user accessible hard drives, SSDs, etc., may be connected via a system bus (2848). In some computer systems, the system bus (2848) may be accessible via one or more physical plugs to enable expansion with additional CPUs, GPUs, and the like. Peripheral devices may be attached to the core's system bus (2848) directly or via a peripheral bus (2849). Architectures for peripheral buses include PCI, USB, and the like.
[0210] The CPU (2841), GPU (2842), FPGA (2843), and accelerator (2844) can execute certain instructions, which in combination can constitute the above-mentioned computer code. The computer code can be stored in ROM (2845) or RAM (2846). Transient data can also be stored in RAM (2846), while permanent data can be stored, for example, in an internal mass storage device (2847). Fast storage and retrieval of any memory device can be achieved by using a cache memory, which can be closely associated with one or more CPUs (2841), GPUs (2842), mass storage devices (2847), ROMs (2845), RAMs (2846), etc.
[0211] The computer readable storage medium may have computer codes for performing various computer-implemented operations. The media and computer codes may be media and computer codes designed and constructed specifically for the purpose of this application, or may be of a type well known and available to technicians in the computer software field.
[0212] By way of example and not limitation, a computer system having the architecture (2800) and in particular the core (2840) may provide functionality resulting from the execution of software embodied in one or more tangible computer-readable storage media by a processor (including a CPU, GPU, FPGA, accelerator, etc.). Such computer-readable storage media may be media associated with the user-accessible mass storage device introduced above and certain storage devices of a non-temporary nature of the core (2840), such as a core internal mass storage device (2847) or ROM (2845). Software implementing various embodiments of the present application may be stored in such devices and executed by the core (2840). Depending on specific needs, the computer-readable storage medium may include one or more memory devices or chips. The software may enable the core (2840) and, in particular, the processor therein (including a CPU, GPU, FPGA, etc.) to perform a specific process or a specific portion of a specific process described herein, including defining a data structure stored in the RAM (2846) and modifying such a data structure according to a process defined by the software. Additionally or alternatively, the computer system may provide functionality produced by logic hardwired or otherwise embodied in circuits (e.g., accelerators (2844)) that may operate in place of or in conjunction with software to perform specific processes or specific portions of specific processes described herein. References to software may encompass logic, and vice versa, where appropriate. References to computer-readable storage media may encompass circuits (e.g., integrated circuits (ICs)) storing software for execution, circuits embodying logic for execution, or both, where appropriate. The present application encompasses any suitable combination of hardware and software.
[0213] Appendix A: Acronyms
[0214] ASIC: Application-Specific Integrated Circuit
[0215] BMS:benchmark set, benchmark set
[0216] CANBus: Controller Area Network Bus, Controller Area Network Bus
[0217] CBF: Coded Block Flag, coded block flag
[0218] CD: Compact Disc, CD
[0219] CPUs: Central Processing Units, Central Processing Units
[0220] CRT: Cathode Ray Tube, cathode ray tube
[0221] CTBs: Coding Tree Blocks, coding tree blocks
[0222] CTUs: Coding Tree Units, coding tree unit
[0223] CU: Coding Unit, coding unit
[0224] DVD: Digital Video Disc, digital video disc
[0225] FPGA: Field Programmable Gate Areas, Field Programmable Gate Array
[0226] GOPs: Groups of Pictures, picture groups
[0227] GPUs: Graphics Processing Units, Graphics Processing Units
[0228] GSM: Global System for Mobile communications, Global System for Mobile Communications
[0229] HEVC: High Efficiency Video Coding, High Efficiency Video Coding
[0230] HRD:Hypothetical Reference Decoder, Hypothetical Reference Decoder
[0231] ISP: Intra Sub-Partitions, intra-frame sub-partitions
[0232] IC: Integrated Circuit
[0233] JEM: joint exploration model, joint development model
[0234] LAN: Local Area Network, local area network
[0235] LCD:Liquid-Crystal Display, liquid crystal display
[0236] LTE: Long-Term Evolution
[0237] MPM: Most Probable Mode, most likely mode
[0238] MV: Motion Vector
[0239] OLED: Organic Light-Emitting Diode
[0240] PBs: Prediction Blocks, prediction blocks
[0241] PCI: Peripheral Component Interconnect, peripheral device interconnect
[0242] PLD: Programmable Logic Device, Programmable Logic Device
[0243] PUs: Prediction Units, prediction units
[0244] RAM: Random Access Memory, Random Access Memory
[0245] ROM: Read-Only Memory, read-only memory
[0246] SBT: Sub-block Transform, sub-block transform
[0247] SEI: Supplementary Enhancement Information, auxiliary enhancement information
[0248] SNR:Signal Noise Ratio, signal-to-noise ratio
[0249] SSD: solid-state drive, solid-state drive
[0250] TUs: Transform Units, Transformation Unit
[0251] USB: Universal Serial Bus, Universal Serial Bus
[0252] VPDU:Virtual Pipeline Data Unit, virtual pipeline data unit
[0253] VUI:Video Usability Information, video availability information
[0254] VVC: versatile video coding, multifunctional video coding
[0255] Although the present application describes several exemplary embodiments, various modifications, permutations and combinations, and various alternative equivalents are possible within the scope of the present application. Therefore, it should be understood that within the spirit and scope of the application, those skilled in the art can design various systems and methods that are not explicitly shown or described herein but can embody the principles of the present application.
Claims
1. A video decoding method, characterized in that: include: Receiving a syntax element for indicating a maximum allowed transform unit size of M pixels in a bitstream, a first notification signal for indicating a processing order of a sub-processing unit SPU, and a second notification signal for indicating a processing order of transform units within the SPU; Receive a coded block with a width of W pixels and a height of H pixels; Dividing the coding block into sub-processing units SPU aligned with the virtual pipeline data unit VPDU according to the size of the VPDU, each SPU having a width of W pixels or K pixels, whichever is smaller, and a height of H pixels or K pixels, whichever is smaller, where K is the dimension of the VPDU having an area of K×K pixels; and Divide each SPU into transform units according to a maximum allowed transform unit size indicated by the syntax element, the maximum allowed transform unit size of each transform unit being the M pixels; wherein the maximum allowed transform unit size is controllable or configurable; The SPU is subjected to multi-stage pipeline decoding processing according to the SPU processing order indicated by the first notification signal, wherein the transform unit in each SPU is subjected to processing according to the processing order indicated by the second notification signal.
2. The method according to claim 1, characterized in that The SPU processing order is one of a raster scan order, a vertical scan order, a zigzag order, or a diagonal scan order.
3. The method according to claim 1, characterized in that: The processing order of the transform units in each SPU is one of a raster scan order, a vertical scan order, a zigzag order or a diagonal scan order.
4. The method according to claim 1, characterized in that: The SPU processing order and the processing order of transform units within each SPU are both raster scan orders.
5. The method according to any one of claims 1 to 4, characterized in that: K is 64 and M is 32.
6. A video decoding device, characterized in that: comprising a circuit configured to: Receiving a syntax element for indicating a maximum allowed transform unit size of M pixels in a bitstream, a first notification signal for indicating a processing order of a sub-processing unit SPU, and a second notification signal for indicating a processing order of transform units within the SPU; Receive a coded block with a width of W pixels and a height of H pixels; Dividing the coding block into sub-processing units SPU aligned with the virtual pipeline data unit VPDU according to the size of the VPDU, each SPU having a width of W pixels or K pixels, whichever is smaller, and a height of H pixels or K pixels, whichever is smaller, where K is the dimension of the VPDU having an area of K×K pixels; and Divide each SPU into transform units according to a maximum allowed transform unit size indicated by the syntax element, the maximum allowed transform unit size of each transform unit being the M pixels; wherein the maximum allowed transform unit size is controllable or configurable; The SPU is subjected to multi-stage pipeline decoding processing according to the SPU processing order indicated by the first notification signal, wherein the transform unit in each SPU is subjected to processing according to the processing order indicated by the second notification signal.
7. The device according to claim 6, characterized in that The SPU processing order is one of a raster scan order, a vertical scan order, a zigzag order, or a diagonal scan order.
8. The device according to claim 6, characterized in that The processing order of the transform units within each SPU is one of a raster scan order, a vertical scan order, a zigzag order, or a diagonal scan order.
9. The device according to claim 6, characterized in that The SPU processing order and the processing order of transform units within each SPU are both raster scan orders.
10. The device according to any one of claims 6 to 9, characterized in that K is 64 and M is 32.
11. A video decoding device, characterized in that: include: A receiving module, configured to receive a syntax element indicating a maximum allowed transform unit size of M pixels in a bitstream, a first notification signal indicating a processing order of a sub-processing unit SPU, and a second notification signal indicating a processing order of transform units within the SPU; and receive a coding block having a width of W pixels and a height of H pixels; A partitioning module, configured to partition the coding block into sub-processing units SPU aligned with the virtual pipeline data unit VPDU according to the size of the VPDU, each SPU having a width of W pixels or K pixels, whichever is smaller, and a height of H pixels or K pixels, whichever is smaller, wherein K is a dimension of the VPDU with an area of K×K pixels; and to partition each SPU into transform units according to the maximum allowed transform unit size indicated by the syntax element, wherein the maximum allowed transform unit size of each transform unit is the M pixels; wherein the maximum allowed transform unit size is controllable or configurable; A processing unit is used to perform multi-stage pipeline decoding processing on the SPU according to the SPU processing order indicated by the first notification signal, wherein the transformation unit in each SPU performs processing according to the processing order indicated by the second notification signal.
12. An electronic device, characterized in that: The invention comprises a memory for storing computer-readable instructions; a processor for reading the computer-readable instructions and executing the method according to any one of claims 1 to 5 as instructed by the computer-readable instructions.
Citation Information
Patent Citations
Method and apparatus for video coding
US20200304789A1
Vpdu compatible max transform control
US62822757P0
Method and apparatus for encoding video in consideration of scanning order of coding units having hierarchical structure, and method and apparatus for decoding video in consideration of scanning order of coding units having hierarchical structure
EP2950542A1
