Video encoding and decoding method and device
Patent Information
- Application Number
- CN202311027653.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-02-11
- Filing Date
- 2020-02-12
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2040-02-12
AI Technical Summary
Existing video encoding and decoding technology is difficult to effectively reduce redundancy when processing high-resolution videos, resulting in high bandwidth and storage requirements, and unlikely prediction directions occupy more bits in encoding and decoding, affecting efficiency.
By decoding the encoding information of the transform block from the encoded video bitstream, determining whether to perform a secondary transform, and setting some transform coefficients to zero in the transform block, reconstructing the sample using the default values of adjacent transform coefficients, optimizing entropy coding and Quantification process.
It significantly reduces the redundancy of video data, improves encoding and decoding efficiency, reduces bandwidth and storage requirements, and optimizes the entropy coding and quantization process to improve video compression effects.
Smart Images

Figure CN116828181B_ABST
Abstract
Description
[0001] Incorporated herein by reference
[0002] This application claims priority to U.S. Patent Application No. 16 / 787,628, filed on February 11, 2020, entitled “Video Coding Method and Apparatus,” which claims priority to U.S. Provisional Application No. 62 / 804,666, filed on February 12, 2019, entitled “Transform Coefficient Zeroing.” The entire disclosure of the prior application is incorporated herein by reference in its entirety. Technical Field
[0003] This disclosure describes embodiments that generally relate to video encoding and decoding. Background Art
[0004] Video encoding and decoding can be performed using inter-picture prediction techniques with motion compensation. An uncompressed digital video may include a series of pictures, each picture having spatial dimensions of, for example, 1920×1080 luminance samples and associated chrominance samples. The series of pictures may have a fixed or variable picture rate (also informally referred to as a frame rate), such as 60 pictures per second or 60Hz. Uncompressed video has very high bitrate requirements. For example, 1080p604:2:0 video (1920x1080 luminance sample resolution at 60Hz frame rate) with 8 bits per sample requires close to 1.5Gbit / s bandwidth. One hour of such video would require more than 600GB of storage space.
[0005] One goal of video encoding and decoding is to reduce the redundancy of the input video signal through compression. Compression can help reduce the bandwidth or storage space requirements mentioned above, in some cases by two or more orders of magnitude. Both lossless and lossy compression, and combinations of the two, can be used. Lossless compression refers to the technique of reconstructing 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 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 depends on the application. For example, users of some consumer streaming applications can tolerate higher distortion than users of television applications. The achievable compression ratio reflects that higher allowed / tolerable distortion produces higher compression ratios.
[0006] Video encoders and decoders may utilize several broad categories of techniques including, for example: motion compensation, transforms, quantization, and entropy coding.
[0007] Video codec techniques may include known intra-frame coding techniques. In intra-frame coding, sample values are represented without reference to samples or other data of previously reconstructed reference pictures. In some video codecs, pictures are spatially subdivided into sample blocks. When all sample blocks are coded and decoded in intra-frame mode, the picture may be an intra-frame picture. Intra-frame pictures and their derivatives (e.g., independent decoder refresh pictures) may be used to reset decoder states, and may therefore be used as the first picture in an encoded video bitstream and video session, or as a still image. Samples of intra-frame blocks may be used for transformation, and transform coefficients may be quantized before entropy coding. Intra-frame 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 at a given quantization step size.
[0008] Traditional intra-frame codecs, as known from codecs such as MPEG-2, do not use intra-frame prediction. However, some newer video compression techniques include techniques that attempt to derive data blocks from, for example, surrounding sample data and / or metadata that are obtained during encoding / decoding of spatially neighboring blocks and before the decoding order. Such techniques have subsequently been referred to as "intra-frame prediction" techniques. It should be noted that, at least in some cases, intra-frame prediction uses only reference data of the current picture being reconstructed, and not reference data of reference pictures.
[0009] There can be many different forms of intra prediction. When more than one such technique can be used in a given video codec, the techniques used can be coded per intra prediction mode. In some cases, a mode can have sub-modes and / or parameters, and these modes can be coded individually or contained in a mode codeword. Which codeword is used for a given mode / sub-mode / parameter combination affects the codec efficiency gain obtained through intra prediction, and therefore the entropy coding technique used to convert the codewords into a bitstream.
[0010] H.264 introduced an intra prediction mode, which was improved in H.265 and further improved in newer codecs such as the Joint Exploitation Model (JEM), Versatile Video Codec (VVC), Benchmark Sets (BMS), etc. A prediction block can be formed using neighboring sample values belonging to samples that are already available. Sample values of neighboring samples are copied into the prediction block in a certain direction. A reference to the direction used can be encoded in the bitstream or can itself be predicted.
[0011] Reference Figure 1A, a subset of nine known prediction directions from the 33 possible prediction directions of H.265 (corresponding to the 33 angular modes of the 35 intra modes) is depicted at the bottom right. The point (101) where the arrows converge represents the sample being predicted. The arrows represent the direction in which the sample is being predicted. For example, arrow (102) indicates that sample (101) is predicted based on one or more samples at a 45 degree angle to the horizontal direction at the upper right. Similarly, arrow (103) indicates that sample (101) is predicted based on one or more samples at a 22.5 degree angle to the horizontal direction at the lower left.
[0012] Still reference Figure 1A , a square block (104) consisting of 4×4 samples is shown in the upper left (indicated by the thick dashed line). The square block (104) consists of 16 samples, each of which is labeled with "S" and its position in the Y dimension (e.g., row index) and its position in the X dimension (e.g., column index). For example, sample S21 is the second sample in the Y dimension (starting from the top) and the first sample in the X dimension (starting from the left). Similarly, sample S44 is the fourth sample in the block (104) in both the Y dimension and the X dimension. Since the block is a 4×4 size sample, S44 is located in the lower right corner. Reference samples following a similar numbering scheme are also shown. Reference samples are labeled with "R" and their Y position (e.g., row index) and X position (e.g., column index) relative to the block (104). In H.264 and H.265, the prediction samples are adjacent to the block being reconstructed, so there is no need to use negative values.
[0013] Intra-picture prediction can be performed by copying reference sample values from neighboring samples, where the neighboring samples are determined by the signaled prediction direction. For example, assume that the encoded video bitstream includes signaling that, for this block, indicates a prediction direction consistent with arrow (102), that is, the sample is predicted based on one or more prediction samples to the upper right at a 45 degree angle to the horizontal direction. In this case, samples S41, S32, S23, and S14 are predicted based on the same reference sample R05. Then, sample S44 is predicted based on sample R08.
[0014] In some cases, for example by interpolation, the values of multiple reference samples may be combined in order to calculate the reference sample, particularly when the direction is not divisible by 45 degrees.
[0015] As video codecs have evolved, the number of possible directions has increased. In H.264 (2003), nine different directions could be represented. This increased to 33 in H.265 (2013) and JEM / VVC / BMS, and at the time of this disclosure, up to 65 directions can be supported. Experiments have been conducted to identify the most likely directions, and certain techniques in entropy coding are used to represent those possible directions using a small number of bits, accepting some penalty for less likely directions. Additionally, the direction itself can sometimes be predicted based on neighboring directions used in adjacent, already decoded blocks.
[0016] Figure 1B A schematic diagram (180) is shown, which depicts 65 intra prediction directions according to JEM to illustrate the increase in the number of prediction directions over time.
[0017] The mapping from intra prediction directions to bits representing the directions in the coded video bitstream can vary from one video codec to another, for example, ranging from a simple direct mapping of prediction directions to codewords for intra prediction modes, to complex adaptive schemes involving most probable modes and similar techniques. However, in all cases, there may be certain directions in the video content that are statistically less likely to occur than other directions. Since the goal of video compression is to reduce redundancy, in a well-behaved video codec, those less likely directions will be represented using a larger number of bits than more likely directions.
[0018] Video encoding and decoding may be performed using inter-picture prediction with motion compensation. 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 of a reconstructed picture (reference picture) is used for prediction of 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, X and Y, or three dimensions, where the third dimension indicates the reference picture being used (the latter may indirectly be a temporal dimension).
[0019] In some video compression techniques, the MV applied to a region of sample data can be predicted based on other MVs, such as those MVs related to another region of sample data that is spatially adjacent to the region being reconstructed and that precede the MV in decoding order. Doing so can greatly reduce the amount of data required to encode and decode the MV, thereby eliminating redundancy and increasing the amount of compression. MV prediction can be done efficiently, for example, because when encoding and decoding an input video signal derived from a camera (called natural video), there is a statistical probability that regions larger than the region applicable to a single MV move in a similar direction, so in some cases, similar motion vectors derived from MVs of adjacent regions can be used for 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 encoding and decoding, it can be represented with fewer bits than the number of bits used when the MV is directly encoded and decoded. 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 may be lossy, for example due to rounding errors generated when calculating predicted values based on several surrounding MVs.
[0020] H.265 / HEVC (ITU-T H.265 Recommendation, "High Efficiency Video Coding", December 2016) describes various MV prediction mechanisms. Among the various MV prediction mechanisms provided by H.265, this disclosure describes a technique referred to below as "spatial merging".
[0021] Reference Figure 2 , the current block (201) includes samples found by the encoder during motion search, which can be predicted based on a previous block of the same size that has been spatially shifted. The MV is not encoded or decoded directly, but the MV associated with any of the five surrounding samples is used to derive the MV from metadata associated with one or more reference pictures, for example, the most recent (in decoding order) reference picture. The five surrounding samples are represented by A0, A1 and B0, B1, B2 (202 to 206 respectively). In H.265, MV prediction can use the prediction value of the same reference picture being used by the neighboring blocks. Summary of the invention
[0022] Various aspects of the present disclosure provide methods and devices for video encoding and decoding. In some examples, the method for video decoding includes: decoding encoding information of a transform block (TB) from an encoded video bitstream, the encoding information indicating an area of the TB to which a secondary transform is applied, the area including a first sub-area and a second sub-area, the first sub-area having a transform coefficient calculated by the secondary transform; for a current transform coefficient in the TB, when it is determined that an adjacent transform coefficient of the current transform coefficient is located in the second sub-area, determining the current transform coefficient according to a default value of the adjacent transform coefficient; and reconstructing a sample in the TB based on the current transform coefficient.
[0023] Aspects of the present disclosure provide methods and devices for video coding and decoding. In some examples, the method for video decoding includes: decoding encoding information of a transform block TB from an encoded video bitstream; determining whether to perform a secondary transform on a first region of the TB based on the encoding information, the first region including a first sub-region and a second sub-region, the first sub-region having a transform coefficient calculated by the secondary transform; and when determining to perform the secondary transform, determining that the transform coefficient in the second region in the TB is zero, the second region being outside the first region.
[0024] Various aspects of the present disclosure provide methods and devices for video encoding and decoding. In some examples, the method for video decoding includes: decoding encoding information of a transform block TB from an encoded video bitstream, the encoding information indicating an area of the TB where a secondary transform is applied, the area including a first sub-area and a second sub-area, the first sub-area having a transform coefficient calculated by the secondary transform, and the second sub-area being a zeroed area; for a current transform coefficient in the TB, determining whether to use one of the transform coefficients of the second sub-area to determine the current transform coefficient, one of the transform coefficients of the second sub-area being different from the current transform coefficient; when determining to use one of the transform coefficients of the second sub-area to determine the current transform coefficient, determining the current transform coefficient according to a default value of one of the transform coefficients of the second sub-area, regardless of an actual value of one of the transform coefficients of the second sub-area; and reconstructing samples in the TB based on the current transform coefficient.
[0025] Various aspects of the present disclosure provide methods and devices for video encoding and decoding. In some examples, the method for video decoding includes: decoding encoding information of a transform block TB from an encoded video bitstream; determining whether to perform a secondary transform on a first region of the TB based on the encoding information, the first region including a first sub-region and a second sub-region, the first sub-region having a transform coefficient calculated by the secondary transform, and the transform coefficient of the second sub-region being set to zero; and when determining to perform the secondary transform on the first region, wherein the first region includes a second sub-region with the transform coefficient set to zero, determining that the transform coefficient of a second region in the TB is zero, and the second region is outside the first region.
[0026] Aspects of the present disclosure provide methods and devices for video encoding and decoding. In some examples, the device for video decoding includes a processing circuit. The processing circuit can decode the encoding information of a transform block (TB) from an encoded video bitstream. The encoding information can indicate an area of the TB to which a secondary transform is applied. The area may include a first sub-area and a second sub-area, the first sub-area having a transform coefficient calculated by the secondary transform. For a transform coefficient in the TB, the processing circuit can determine whether an adjacent transform coefficient used to determine the transform coefficient is located in the second sub-area. When it is determined that the adjacent transform coefficient is located in the second sub-area, the processing circuit can determine the transform coefficient according to a default value of the adjacent transform coefficient. The processing circuit can reconstruct the sample based on the transform coefficient for the sample in the TB.
[0027] In an embodiment, the transform coefficient in the TB is one of a plurality of transform coefficients in a first coefficient group (CG). A first CG flag of the first CG may indicate whether at least one of the plurality of transform coefficients is a non-zero transform coefficient. A second CG including a transform coefficient is pre-entropy decoded and is adjacent to the first CG. The processing circuit may determine a position of the second CG. When it is determined that the second CG is located in the second sub-region, the processing circuit may determine the first CG flag based on a default value of a second CG flag of the second CG.
[0028] In an embodiment, the transform coefficient in the TB is one of multiple transform coefficients in the first CG. The first CG flag of the first CG may indicate whether at least one of the multiple transform coefficients is a non-zero transform coefficient. The second CG includes a first transform coefficient and a second transform coefficient. The second CG is pre-entropy decoded and is adjacent to the first CG. The processing circuit may determine the position of the second CG. When the portion of the second CG including the second transform coefficient is located in the second sub-region and the first transform coefficient is a non-zero transform coefficient, the processing circuit may determine the first CG flag based on the second CG flag of the second CG.
[0029] In an embodiment, the processing circuit may determine whether the transform coefficient is located in the second sub-region. When it is determined that the transform coefficient is located in the second sub-region, the processing circuit may determine that the transform coefficient is not signaled and is zero. When it is determined that the transform coefficient is not located in the second sub-region, the processing circuit may perform the determining whether the adjacent transform coefficient is located in the second sub-region.
[0030] In an embodiment, the processing circuit may determine a syntax element of the transform coefficient. The syntax element may indicate one of: whether the transform coefficient is a non-zero transform coefficient; the parity of the transform coefficient; whether the transform coefficient is greater than 2; and whether the transform coefficient is greater than 4.
[0031] Aspects of the present disclosure provide methods and devices for video decoding. In some examples, the device for video decoding includes a processing circuit. The processing circuit can decode the encoding information of a transform block (TB) from an encoded video bitstream. The processing circuit can determine whether to perform a secondary transform on a first area of the TB based on the encoding information. The first area may include a first sub-area and a second sub-area, and the first sub-area has a transform coefficient calculated by the secondary transform. When determining to perform the secondary transform, the processing circuit can determine that the transform coefficient in the second area in the TB is zero, wherein the second area is outside the first area.
[0032] In an example, based on the first region, the size and position of a coefficient unit including a plurality of transform coefficients in the TB are determined, and the transform coefficients outside the coefficient unit are zero.
[0033] In an example, the first region is an upper left 8×8 region in the TB, the coefficient unit is the first region, and the second region is adjacent to the upper left 8×8 region.
[0034] In an example, the first sub-region is an upper left 4×4 region in the TB, the coefficient unit is the first sub-region in the first region, and transform coefficients in a combined region including the second region and the second sub-region are zero.
[0035] In an example, the first region is an upper left 4×4 region in the TB, the coefficient unit is the first region, and the second region is adjacent to the upper left 4×4 region.
[0036] Various aspects of the present disclosure provide methods and devices for video decoding. In some examples, the device for video decoding includes: a decoding module for decoding encoding information of a transform block TB from an encoded video bitstream, the encoding information indicating an area of the TB to which a secondary transform is applied, the area including a first sub-area and a second sub-area, the first sub-area having a transform coefficient calculated by the secondary transform; a determination module for determining, for a current transform coefficient in the TB, the current transform coefficient according to a default value of the adjacent transform coefficient when it is determined that the adjacent transform coefficient of the current transform coefficient is located in the second sub-area; and a reconstruction module for reconstructing samples in the TB based on the current transform coefficient.
[0037] Aspects of the present disclosure also provide a non-volatile computer-readable medium storing instructions, which, when executed by a computer for video decoding, enable the computer to perform the video decoding method. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Other features, properties and various advantages of the disclosed subject matter will become further apparent from the following detailed description and accompanying drawings, in which:
[0039] Figure 1A is a schematic diagram of an exemplary subset of intra prediction modes.
[0040] Figure 1B is a schematic diagram of exemplary intra prediction directions.
[0041] Figure 2 Schematic diagram of the current block and its surrounding spatial merging candidates in an example.
[0042] Figure 3 is a schematic diagram of a simplified block diagram of a communication system according to an embodiment.
[0043] Figure 4 is a schematic diagram of a simplified block diagram of a communication system according to an embodiment.
[0044] Figure 5 is a schematic diagram of a simplified block diagram of a decoder according to an embodiment.
[0045] Figure 6 is a schematic diagram of a simplified block diagram of an encoder according to an embodiment.
[0046] Figure 7 A block diagram of an encoder according to another embodiment is shown.
[0047] Figure 8 A block diagram of a decoder according to another embodiment is shown.
[0048] Fig. 9 An example of transform unit syntax is shown.
[0049] Figures 10A-10B An example of residual coding syntax is shown.
[0050] Fig.11 An example of a sub-block scanning process is shown.
[0051] Fig.12 An example of a local template for context selection of the current coefficient is shown.
[0052] Fig.13 An example of residual coding syntax is shown.
[0053] Figures 14A-14D An example of a sub-block transform (SBT) is shown.
[0054] Figures 15A-15F Shown are changes to the specification text of the video codec standard when SBT is used.
[0055] Figures 16A-16D An example of a coefficient unit according to an embodiment of the present disclosure is shown.
[0056] Fig.17 An exemplary coefficient block is shown.
[0057] Fig.18 An exemplary secondary transform including a zeroing method is shown.
[0058] Fig.19 An exemplary secondary transform including a zeroing method is shown.
[0059] Fig. 20 A flow chart of an overview process according to an embodiment of the present disclosure is shown.
[0060] Fig.21 A flowchart of an overview process according to an embodiment of the present disclosure is shown.
[0061] Fig. 22 is a schematic diagram of a computer system according to an embodiment. DETAILED DESCRIPTION
[0062] Figure 3A simplified block diagram of a communication system (300) according to an embodiment of the present disclosure is shown. The communication system (300) includes a plurality of terminal devices that can communicate with each other via, for example, a network (350). For example, the communication system (300) includes a first pair of terminal devices (310) and (320) interconnected via the network (350). Figure 3 In an embodiment, a first pair of terminal devices (310) and (320) perform unidirectional data transmission. For example, the terminal device (310) may encode video data (e.g., a video picture stream collected by the terminal device (310)) for transmission to another terminal device (320) via the network (350). The encoded video data is transmitted in the form of one or more encoded video code streams. The terminal device (320) may receive the encoded video data from the network (350), decode the encoded video data to restore the video data, and display the video picture based on the restored video data. Unidirectional data transmission is more common in applications such as media services.
[0063] In another embodiment, the communication system (300) includes a second pair of terminal devices (330) and (340) that perform bidirectional transmission of encoded video data, which can occur, for example, during a video conference. For bidirectional data transmission, in one example, each of the terminal devices (330) and (340) can encode video data (e.g., a video picture stream collected by the terminal device) for transmission to the other terminal device (330) and (340) via a network (350). Each of the terminal devices (330) and (340) can also receive the encoded video data transmitted by the other terminal device (330) and (340), 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.
[0064] exist Figure 3 In the embodiment of the present disclosure, the terminal devices (310), (320), (330) and (340) may be servers, personal computers and smart phones, but the principles of the present disclosure may not be limited to this. The embodiments of the present disclosure are applicable to laptop computers, tablet computers, media players and / or dedicated video conferencing equipment. The network (350) represents any number of networks that transmit encoded video data between the terminal devices (310), (320), (330) and (340), including, for example, wired (wired) and / or wireless communication networks. The communication network (350) may exchange data in circuit switching and / or packet switching channels. The network may include a telecommunications network, a local area network, a wide area network and / or the Internet. For the purposes of the present disclosure, unless explained below, the architecture and topology of the network (350) may be irrelevant to the operation of the present disclosure.
[0065] As an embodiment of the disclosed subject matter, Figure 4 The placement of the video encoder and video decoder in a streaming environment is shown. The disclosed subject matter 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., and the like.
[0066] The streaming system may include an acquisition subsystem (413), which may include a video source (401) such as a digital camera, which creates an uncompressed video picture stream (402). In an embodiment, the video picture stream (402) includes samples taken by a digital camera. Compared to the encoded video data (404) (or the encoded video bitstream), the video picture stream (402) is depicted as a thick line to emphasize the high data volume of the video picture stream, and the video picture stream (402) can be processed by an electronic device (420), which includes a video encoder (403) coupled to the video source (401). The video encoder (403) may include hardware, software, or a combination of hardware and software to implement or implement various aspects of the disclosed subject matter as described in more detail below. Compared to the video picture stream (402), the encoded video data (404) (or the encoded video bitstream (404)) is depicted as a thin line to emphasize the lower amount of data of the encoded video data (404) (or the encoded video bitstream (404)), which can be stored on the streaming server (405) for future use. One or more streaming client subsystems, such as Figure 4 The client subsystem (406) and the client subsystem (408) in the video transmission system can access the streaming server (405) to retrieve the copy (407) and the copy (409) of the encoded video data (404). The client subsystem (406) may include, for example, a video decoder (410) in the electronic device (430). The video decoder (410) decodes the incoming copy (407) of the encoded video data and generates an output video picture stream (411) that can be presented on a display (412) (e.g., a display screen) or another presentation device (not depicted). In some streaming transmission systems, the encoded video data (404), the video data (407), and the video data (409) (e.g., a video bitstream) can be encoded according to certain video encoding / compression standards. Examples of such standards include ITU-T H.265. In an embodiment, the video codec standard under development is informally referred to as Versatile Video Coding (VVC), and the disclosed subject matter can be used in the context of the VVC standard.
[0067] It should be noted that the electronic device (420) and the electronic device (430) may include other components (not shown). For example, the electronic device (420) may include a video decoder (not shown), and the electronic device (430) may also include a video encoder (not shown).
[0068] Figure 5 A block diagram of a video decoder (510) according to an embodiment of the present disclosure is shown. The video decoder (510) may be provided in an electronic device (530). The electronic device (530) may include a receiver (531) (e.g., a receiving circuit). The video decoder (510) may be used to replace Figure 4 A video decoder (410) of an embodiment.
[0069] The receiver (531) may receive one or more encoded video sequences to be decoded by the video decoder (510); 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 (501), which may be a hardware / software link to a storage device storing the encoded video data. The receiver (531) 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 (531) may separate the encoded video sequence from the other data. To prevent network jitter, a buffer memory (515) may be coupled between the receiver (531) and the entropy decoder / parser (520) (hereinafter referred to as "parser (520)"). In some applications, the buffer memory (515) is part of the video decoder (510). In other cases, the buffer memory (515) may be provided external to the video decoder (510) (not shown). In other cases, a buffer memory (not shown) is provided outside the video decoder (510) to prevent network jitter, for example, and another buffer memory (515) may be configured inside the video decoder (510) to handle broadcast timing, for example. When the receiver (531) 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 (515), or the buffer memory may be made smaller. Of course, in order to use on a service packet network such as the Internet, a buffer memory (515) 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 (510).
[0070] The video decoder (510) may include a parser (520) to reconstruct symbols (521) from the encoded video sequence. The types of symbols include information used to manage the operation of the video decoder (510) and potential information used to control a display device such as a display device (512) (e.g., a display screen) that is not part of the electronic device (530) but can be coupled to the electronic device (530), such as Figure 5 As 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 (520) 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 (520) 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 (520) may also extract information from the encoded video sequence, such as transform coefficients, quantizer parameter values, motion vectors, and so on.
[0071] The parser (520) may perform entropy decoding / parsing operations on the video sequence received from the buffer memory (515), thereby creating symbols (521).
[0072] 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 (521) 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 (520) from the coded video sequence. For the sake of brevity, such subgroup control information flow between the parser (520) and the multiple units below is not described.
[0073] In addition to the functional blocks already mentioned, the video decoder (510) 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.
[0074] The first unit is a sealer / inverse transform unit (551). The sealer / inverse transform unit (551) receives quantized transform coefficients as symbols (521) from the parser (520) and control information, including which transform method to use, block size, quantization factor, quantization scaling matrix, etc. The sealer / inverse transform unit (551) can output a block including sample values, which can be input into an aggregator (555).
[0075] In some cases, the output samples of the scaler / inverse transform unit (551) 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-picture prediction unit (552). In some cases, the intra-picture prediction unit (552) generates a block of the same size and shape as the block being reconstructed using surrounding reconstructed information extracted from a current picture buffer (558). For example, the current picture buffer (558) buffers a partially reconstructed current picture and / or a fully reconstructed current picture. In some cases, the aggregator (555) adds the prediction information generated by the intra-prediction unit (552) to the output sample information provided by the scaler / inverse transform unit (551) on a per-sample basis.
[0076] In other cases, the output samples of the scaler / inverse transform unit (551) may belong to an inter-frame coded and potentially motion compensated block. In this case, the motion compensated prediction unit (553) may access the reference picture memory (557) to extract samples for prediction. After the extracted samples are motion compensated according to the symbols (521), these samples may be added to the output of the scaler / inverse transform unit (551) (in this case referred to as residual samples or residual signals) by the aggregator (555) to generate output sample information. The acquisition of the predicted samples by the motion compensated prediction unit (553) from the address in the reference picture memory (557) may be controlled by a motion vector, and the motion vector is provided to the motion compensated prediction unit (553) in the form of the symbols (521), for example, including X, Y and reference picture components. Motion compensation may also include interpolation of sample values extracted from the reference picture memory (557) when using sub-sample accurate motion vectors, motion vector prediction mechanisms, and the like.
[0077] The output samples of the aggregator (555) may be employed by various loop filtering techniques in a loop filter unit (556). The video compression techniques may include in-loop filter techniques controlled by parameters included in the encoded video sequence (also referred to as the encoded video bitstream) and available to the loop filter unit (556) as symbols (521) from the parser (520). However, in other embodiments, the video compression techniques may also be responsive to meta-information obtained during decoding of a previous (in decoding order) portion of an encoded picture or encoded video sequence, as well as to previously reconstructed and loop filtered sample values.
[0078] The output of the loop filter unit (556) may be a sample stream that may be output to a display device (512) and stored in a reference picture memory (557) for subsequent inter-picture prediction.
[0079] 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 (520)), the current picture buffer (558) may become part of the reference picture memory (557), and a new current picture buffer may be reallocated before starting to reconstruct a subsequent coded picture.
[0080] The video decoder (510) may perform decoding operations according to a predetermined video compression technique, such as in the ITU-T H.265 standard. The encoded video sequence may conform to the syntax specified by the video compression technique or standard used in the sense that the encoded video sequence follows the syntax of the video compression technique or standard and the profile recorded in the video compression technique or standard. Specifically, the profile may select certain tools from all the tools available in the video compression technique 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 technique 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.
[0081] In an embodiment, the receiver (531) 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 (510) 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.
[0082] Figure 6 A block diagram of a video encoder (603) according to an embodiment of the present disclosure is shown. The video encoder (603) is disposed in an electronic device (620). The electronic device (620) includes a transmitter (640) (e.g., a transmission circuit). The video encoder (603) can be used to replace Figure 4 A video encoder (403) in an embodiment.
[0083] The video encoder (603) can be used to obtain the video source (601) (not Figure 6 In another embodiment, the video source (601) is a part of the electronic device (620) to receive video samples, and the video source can collect video images to be encoded by the video encoder (603). In another embodiment, the video source (601) is a part of the electronic device (620).
[0084] The video source (601) may provide a source video sequence in the form of a digital video sample stream to be encoded by the video encoder (603), 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 (601) may be a storage device storing previously prepared videos. In a video conferencing system, the video source (601) 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.
[0085] According to an embodiment, the video encoder (603) may encode and compress pictures of a source video sequence into an encoded video sequence (643) in real time or under any other time constraints required by the application. Implementing an appropriate encoding speed is a function of the controller (650). In some embodiments, the controller (650) controls other functional units as described below and is functionally coupled to these units. For the sake of simplicity, coupling is not indicated in the figure. The parameters set by the controller (650) 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 (650) can be used to have other suitable functions that are related to the video encoder (603) optimized for a certain system design.
[0086] In some embodiments, the video encoder (603) operates in an encoding loop. As a brief description, in embodiments, the encoding loop may include a source encoder (630) (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 (633) embedded in the video encoder (603). The decoder (633) reconstructs the symbols to create sample data in a manner similar to how the (remote) decoder creates sample data (because in the video compression techniques considered in the disclosed subject matter, 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 (634). 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 (634) are also bit-accurately corresponding 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.
[0087] The operation of the "local" decoder (633) can be combined with the above Figure 5 The "remote" decoder described in detail for the video decoder (510) is identical. However, additional brief reference is made to Figure 5 , when symbols are available and the entropy encoder (645) and parser (520) are capable of losslessly encoding / decoding the symbols into an encoded video sequence, the entropy decoding portion of the video decoder (510), including the buffer memory (515) and the parser (520), may not be fully implemented in the local decoder (633).
[0088] At this point it can be observed that any decoder techniques other than 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 disclosed subject matter focuses on decoder operation. The description of encoder techniques can be simplified because encoder techniques are mutually inverse to the decoder techniques described comprehensively. A more detailed description is only required in certain areas and is provided below.
[0089] During operation, in some embodiments, the source encoder (630) 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 (632) encodes the differences between pixel blocks of the input picture and pixel blocks of a reference picture that may be selected as a prediction reference for the input picture.
[0090] The local video decoder (633) may decode the encoded video data that may be designated as a reference picture based on the symbol created by the source encoder (630). The operation of the encoding engine (632) may be a lossy process. When the encoded video data is available at the video decoder ( Figure 6 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 (633) 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 (634). In this way, the video encoder (603) may store a copy of the reconstructed reference picture locally that has common content (absent transmission errors) with the reconstructed reference picture to be obtained by the remote video decoder.
[0091] The predictor (635) may perform a prediction search for the encoding engine (632). That is, for a new picture to be encoded, the predictor (635) may search the reference picture memory (634) 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 (635) 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 (635), 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 (634).
[0092] The controller (650) may manage encoding operations of the source encoder (630), including, for example, setting parameters and subgroup parameters for encoding video data.
[0093] The outputs of all the above functional units may be entropy encoded in an entropy encoder (645). The entropy encoder (645) 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.
[0094] The transmitter (640) may buffer the encoded video sequence created by the entropy encoder (645) in preparation for transmission over a communication channel (660), which may be a hardware / software link to a storage device where the encoded video data will be stored. The transmitter (640) may combine the encoded video data from the video encoder (603) with other data to be transmitted, such as encoded audio data and / or ancillary data streams (source not shown).
[0095] The controller (650) may manage the operation of the video encoder (603). During encoding, the controller (650) 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:
[0096] 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.
[0097] 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.
[0098] 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.
[0099] The source picture may typically be spatially subdivided into blocks of samples (e.g., blocks of 4×4, 8×8, 4×8, or 16×16 samples), and coded block by block. These blocks may be predictively coded with reference to other (already coded) blocks, 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 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.
[0100] The video encoder (603) 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 (603) 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.
[0101] In an embodiment, the transmitter (640) may transmit additional data when transmitting the encoded video. The source encoder (630) may include such data as part of the encoded video sequence. The additional data may include other forms of redundant data such as temporal / spatial / SNR enhancement layers, redundant pictures and slices, supplemental enhancement information (SEI) messages, visual usability information (VUI) parameter set fragments, etc.
[0102] 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.
[0103] 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 in display order, respectively). 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. Specifically, the block may be predicted by a combination of the first reference block and the second reference block.
[0104] In addition, merge mode technology can be used in inter-picture prediction to improve coding efficiency.
[0105] According to some embodiments of the present disclosure, 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 luma prediction block (PB) and two chroma PBs. In an embodiment, the prediction operation in encoding (encoding / decoding) is performed in units of prediction blocks. Taking the luma prediction block as an example of a prediction block, the prediction block includes a matrix of pixel values (e.g., luma values), such as 8×8 pixels, 16×16 pixels, 8×16 pixels, 16×8 pixels, and the like.
[0106] Figure 7 A schematic diagram of a video encoder (703) according to another embodiment of the present disclosure is shown. The video encoder (703) is used to receive a processing block (e.g., a prediction block) of sample values in a current video picture in a video picture sequence, and encode the processing block into an encoded picture that is part of an encoded video sequence. In this embodiment, the video encoder (703) is used to replace Figure 4A video encoder (403) in an embodiment.
[0107] In an HEVC embodiment, a video encoder (703) receives a matrix of sample values for a processing block, such as a prediction block of 8×8 samples. The video encoder (703) uses, for example, rate-distortion 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 (703) 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 (703) 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 (703) includes other components, such as a mode decision module (not shown) for determining the processing block mode.
[0108] exist Figure 7 In an embodiment of the present invention, the video encoder (703) includes: Figure 7 Shown are an inter-frame encoder (730), an intra-frame encoder (722), a residual calculator (723), a switch (726), a residual encoder (724), a general controller (721), and an entropy encoder (725) coupled together.
[0109] The inter-frame encoder (730) 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 embodiments, the reference picture is a decoded reference picture decoded based on the encoded video information.
[0110] The intra-frame encoder (722) 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 an embodiment, the intra-frame encoder (722) 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.
[0111] The general controller (721) is used to determine the general control data and control other components of the video encoder (703) based on the general control data. In an embodiment, the general controller (721) determines the mode of the block and provides a control signal to the switch (726) based on the mode. For example, when the mode is intra mode, the general controller (721) controls the switch (726) to select the intra mode result for use by the residual calculator (723) and controls the entropy encoder (725) to select intra prediction information and add the intra prediction information to the bitstream; and when the mode is inter mode, the general controller (721) controls the switch (726) to select the inter prediction result for use by the residual calculator (723) and controls the entropy encoder (725) to select the inter prediction information and add the inter prediction information to the bitstream.
[0112] The residual calculator (723) is used to calculate the difference (residual data) between the received block and the prediction result selected from the intra-frame encoder (722) or the inter-frame encoder (730). The residual encoder (724) 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 (724) is used to convert the residual data from the spatial 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 (703) also includes a residual decoder (728). The residual decoder (728) 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 (722) and the inter-frame encoder (730). For example, the inter-frame encoder (730) can generate a decoded block based on the decoded residual data and the inter-frame prediction information, and the intra-frame encoder (722) 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.
[0113] The entropy encoder (725) is used to format the code stream to produce an encoded block. The entropy encoder (725) generates various information according to a suitable standard such as the HEVC standard. In an embodiment, the entropy encoder (725) 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.
[0114] Figure 8FIG. 8 is a schematic diagram of a video decoder (810) according to another embodiment of the present disclosure. The video decoder (810) 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 an embodiment, the video decoder (810) is used to replace Figure 4 A video decoder (410) of an embodiment.
[0115] exist Figure 8 In one embodiment, the video decoder (810) includes: Figure 8 An entropy decoder (871), an inter-frame decoder (880), a residual decoder (873), a reconstruction module (874) and an intra-frame decoder (872) coupled together are shown in FIG.
[0116] The entropy decoder (871) may be used to reconstruct certain symbols from the encoded picture, which represent syntax elements constituting the encoded picture. Such symbols may include, for example, a mode for encoding the block (e.g., intra mode, inter mode, bidirectional prediction mode, a merged sub-mode of the latter two, or another sub-mode), prediction information (e.g., intra prediction information or inter prediction information) that may identify certain samples or metadata for prediction by the intra decoder (872) or the inter decoder (880), respectively, residual information in the form of, for example, quantized transform coefficients, and the like. In an embodiment, when the prediction mode is inter or bidirectional prediction mode, the inter prediction information is provided to the inter decoder (880); and when the prediction type is an intra prediction type, the intra prediction information is provided to the intra decoder (872). The residual information may be inverse quantized and provided to the residual decoder (873).
[0117] The inter-frame decoder (880) is used for receiving the inter-frame prediction information and generating an inter-frame prediction result based on the inter-frame prediction information.
[0118] The intra-frame decoder (872) is used to receive intra-frame prediction information and generate a prediction result based on the intra-frame prediction information.
[0119] The residual decoder (873) 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 (873) may also require some control information (to obtain the quantizer parameter QP), and this information can be provided by the entropy decoder (871) (the data path is not indicated because this is only low-volume control information).
[0120] The reconstruction module (874) is used to combine the residual output by the residual decoder (873) 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.
[0121] It should be noted that the video encoder (403), video encoder (603) and video encoder (703) and video decoder (410), video decoder (510) and video decoder (810) may be implemented using any suitable technology. In an embodiment, the video encoder (403), video encoder (603) and video encoder (703) and video decoder (410), video decoder (510) and video decoder (810) may be implemented using one or more integrated circuits. In another embodiment, the video encoder (403), video encoder (603) and video encoder (703) and video decoder (410), video decoder (510) and video decoder (810) may be implemented using one or more processors that execute software instructions.
[0122] In some embodiments, for example in HEVC, the main transform may include 4-point, 8-point, 16-point, and 32-point discrete cosine transform (DCT) type 2 (DCT-2), and the transform kernel matrix may be represented using an 8-bit integer (i.e., an 8-bit transform kernel). The transform kernel matrix of the smaller DCT-2 is a portion of the transform kernel matrix of the larger DCT-2, as shown in Appendix I.
[0123] The DCT-2 kernel matrix exhibits symmetric / antisymmetric properties. Therefore, a "partial butterfly" implementation can be supported to reduce the operation count (e.g., multiplication, addition, subtraction, shift, etc.), and the same result of matrix multiplication can be obtained using partial butterflies.
[0124] In some embodiments, such as in VVC, in addition to the above-mentioned 4-point, 8-point, 16-point and 32-point DCT-2 transforms, additional 2-point and 64-point DCT-2s may also be included. For example, an example of a 64-point DCT-2 kernel used in VVC is shown in Appendix II as a 64×64 matrix.
[0125] In addition to DCT-2 and 4×4 DST-7 used in HEVC, for example, an adaptive multi-transform (AMT) (also called enhanced multi-transform (EMT) or multi-transform selection (MTS)) scheme can be used (for example in VVC) to perform residual coding on inter- and intra-coded blocks. The AMT scheme can use multiple transforms selected from the DCT / DST family in addition to the current transform in HEVC. The newly introduced transform matrices are DST-7, DCT-8. Table 1 shows an example of the basis functions of the selected DST / DCT for N-point input.
[0126]
[0127] Table 1
[0128] The main transform matrix (such as used in VVC) can be used with an 8-bit representation. AMT applies the transform matrix to transform blocks with width and height both less than or equal to 32. Whether AMT is applied can be controlled by a flag (e.g., mts_flag). When mts_flag is equal to 0, in some examples, only DCT-2 is applied to encode the residual data. When mts_flag is equal to 1, 2 binary numbers (bins) can be used to further signal the index (e.g., mts_idx) to identify the horizontal and vertical transforms to be used, for example according to Table 2, where a type value of 1 indicates the use of DST-7 and a type value of 2 indicates the use of DCT-8. In Table 2, the specification of trTypeHor and trTypeVer depends on mts_idx[x][y][cIdx].
[0129] mts_idx[xTbY][yTbY][cIdx] trTypeHor trTypeVer -1 0 0 0 1 1 1 2 1 2 1 2 3 2 2
[0130] Table 2
[0131] In some embodiments, when the above-described signaling-based MTS (i.e., explicit MTS) is not used, an implicit MTS may be applied. With implicit MTS, transform selection is made based on the width and height of the block rather than based on signaling. For example, with implicit MTS, DST-7 is selected for the shorter side of an M×N block (i.e., the smallest of M and N), and DCT-2 is selected for the longer side of the block (i.e., the largest of M and N).
[0132] Exemplary transform kernels are shown in Appendix III, each of which is a matrix composed of basis vectors of DST-7 and DCT-8.
[0133] In some examples, such as in VVC, when the height and width of the coding block are both less than or equal to 64, the TB size is the same as the coding block size. When the height or width of the coding block is greater than 64, when performing a transform (e.g., inverse transform, inverse main transform, etc.) or intra prediction, the coding block is further divided into multiple sub-blocks, where the width and height of each sub-block is less than or equal to 64. One transform can be performed on each sub-block.
[0134] You can Fig. 9 and Figures 10A-10B The relevant syntax and semantics of MTS in some examples in VVC are described in (eg, the relevant syntax is highlighted by boxes 901 and 1001). Fig. 9 An example of transform unit syntax is shown. Figures 10A-10B An example of residual coding syntax is shown. An example of transform unit semantics is as follows. cu_mts_flag[x0][y0] equal to 1 specifies that multi-transform selection is applied to the residual samples of the associated luma transform block. cu_mts_flag[x0][y0] equal to 0 specifies that multi-transform selection is not applied to the residual samples of the associated luma transform block. Array index x0, y0 specifies the position (x0, y0) of the top-left luma sample of the transform block under consideration relative to the top-left luma sample of the picture. When cu_mts_flag[x0][y0] is not present, it is inferred to be equal to 0.
[0135] An example of residual coding semantics is as follows. mts_idx[x0][y0] specifies which transform kernels are applied to the luma residual samples along the horizontal and vertical directions of the current transform block. The array index x0, y0 specifies the position (x0, y0) of the top-left luma sample of the transform block under consideration relative to the top-left luma sample of the picture. When mts_idx[x0][y0] does not exist, it is inferred to be equal to -1.
[0136] In some embodiments, the coding block may be partitioned into sub-blocks having a size of, for example, 4×4. The sub-blocks within the coding block and the transform coefficients within each sub-block may be encoded according to a predefined scanning order. For a sub-block having at least one non-zero transform coefficient, the encoding of the transform coefficients may be divided into multiple scanning passes, for example, 4 scanning passes. During each scanning pass, the transform coefficients (also referred to as coefficients) in each sub-block may be scanned, for example, in a reverse diagonal scanning order.
[0137] Fig.11 An example of a sub-block scanning process (1100) is shown from which different types of syntax elements of transform coefficients can be generated. The sub-block can be a 4×4 sub-block with sixteen coefficients (1110). The sixteen coefficients (1110) can be scanned based on a scanning order, for example, from 0 to 15, such as Fig.11During the first scanning process, the coefficients (1110) are scanned, and three types of syntax elements (1101) to (1103) may be generated for each of the coefficients (1110):
[0138] (i) The first type of syntax element (1101) may be a significance flag (eg, sig_coeff_flag) indicating whether the absolute transform coefficient level or the value of the corresponding transform coefficient (eg, absLevel) is greater than zero. The first type of syntax element may be a binary syntax element.
[0139] (ii) The second type of syntax element (1102) may be a parity flag (e.g., par_level_flag) that indicates the parity of the absolute transform coefficient level of the corresponding transform coefficient. In an example, the parity flag is generated only when the absolute transform coefficient level of the corresponding transform coefficient is non-zero. The second type of syntax element may be a binary syntax element.
[0140] (iii) A third type of syntax element (1103) may be a greater than 1 flag (e.g., rem_abs_gt1_flag) that indicates whether (absLevel-1)>>1 is greater than 0 for the corresponding transform coefficient. In an example, the greater than 1 flag is generated only when the absolute transform coefficient level of the corresponding transform coefficient is non-zero. The third type of syntax element may be a binary syntax element.
[0141] During the second scanning process, a fourth type of syntax element (1104) may be generated. The fourth type of syntax element (1104) may be a greater than 2 flag (e.g., rem_abs_gt2_flag). The fourth type of syntax element (1104) indicates whether the absolute transform coefficient level of the corresponding transform coefficient is greater than 4. In an example, the greater than 2 flag is generated only when (absLevel-1)>>1 is greater than 0 for the corresponding transform coefficient. The fourth type of syntax element may be a binary syntax element.
[0142] During the third scanning process, a fifth type of syntax element (1105) may be generated. The fifth type of syntax element (1105) is denoted by abs_remainder and indicates a residual value of an absolute transform coefficient level of a corresponding transform coefficient greater than 4. In an example, the fifth type of syntax element (1105) is generated only when the absolute transform coefficient level of the corresponding transform coefficient is greater than 4. The fifth type of syntax element may be a non-binary syntax element.
[0143] During the fourth scanning process, a sixth type of syntax element (1106) may be generated for coefficients (1110) having non-zero coefficient levels, indicating the sign of the corresponding transform coefficient (1110).
[0144] The various types of syntax elements (1101 to 1106) described above may be provided to an entropy encoder according to the order of these scanning processes and the scanning order in each process. Different types of syntax elements may be encoded using different entropy coding schemes. For example, in an embodiment, a CABAC-based entropy encoder may be used to encode the significance flag, parity flag, greater than 1 flag, and greater than 2 flag. Conversely, a CABAC bypass entropy encoder (e.g., a binary arithmetic encoder with a fixed probability estimate for an input binary number (bin)) may be used to encode the syntax elements generated during the third and fourth scanning processes.
[0145] Context modeling may be performed to determine context models for bins of certain types of transform coefficient syntax elements. In an embodiment, the context model may be determined based on a local template and the diagonal position of the current coefficient, possibly in combination with other factors.
[0146] Fig.12 An example of a local template (1230) for context selection of a current coefficient (1220) is shown. In order to exploit correlations between transform coefficients, previously encoded coefficients (1220) covered by the local template (1230) may be used in context selection of the current coefficient. The local template (1230) may cover a set of neighboring positions or coefficients of the current coefficient (1220) in a coefficient block (1210). The coefficient block (1210) may have a size of 8×8 coefficients. The coefficient block (1210) is divided into 4 sub-blocks, each sub-block having a size of 4×4 coefficients. Fig.12 In the example of FIG. 1 , the local template (1230) is defined as a 5-position template covering 5 coefficient levels on the lower right side of the current coefficient (1220). When the reverse diagonal scan order is used for multiple scan passes of coefficients within the coefficient block (1210), the adjacent coefficients within the local template (1230) are processed before the current coefficient (1220).
[0147] During context modeling, information about coefficient levels within a local template (1230) may be used to determine a context model. To this end, a metric called template magnitude is defined in some embodiments to measure or indicate the magnitude of transform coefficients or transform coefficient levels within a local template (1230). The template magnitude may then be used as a basis for selecting a context model.
[0148] In one example, the template amplitude is defined as the sum of the partially reconstructed absolute transform coefficient levels within the local template (1230) (e.g., sumAbs1). The partially reconstructed absolute transform coefficient level absLevel1[x][y] may be determined based on the bins of the syntax elements sig_coeff_flag, par_level_flag, rem_abs_gt1_flag of the corresponding transform coefficient. After the first scanning process of the transform coefficients of the sub-block is performed in the entropy encoder or the entropy decoder, three types of syntax elements are obtained. In an embodiment, after the first scanning process, the partially reconstructed absolute transform coefficient level absLevel1[x][y] at the position (x, y) may be determined based on the following:
[0149] absLevel1[x][y]=sig_coeff_flag[x][y]+par_level_flag[x][y]+2*rem_abs_gt1_flag[x][y], where x and y are coordinates relative to the upper left corner of the coefficient block (1210), and absLevel1[x][y] represents the absolute transform coefficient level of the partial reconstruction at the position (x, y).
[0150] d represents the diagonal position of the current coefficient, where d is the sum of x and y, and numSig represents the number of non-zero coefficients in the local template (1230). For example, sumAbs1 represents the sum of the absolute levels absLevel1[x][y] of the partial reconstruction of the coefficients covered by the local template (1230).
[0151] When encoding the sig_coeff_flag of the current coefficient (1220), the context model index is selected based on sumAbs1 and the diagonal position d of the current coefficient (1220). d is the sum of x and y. sumAbs1 represents the sum of the absolute levels absLevel1[x][y] of the partial reconstruction of the coefficient covered by the local template (1230). In an embodiment, for the luma component, the context model index is determined according to:
[0152] ctxSig = 18 * max(0, state - 1) + min(sumAbs1, 5) + (d < 2 ? 12 : (d < 5 ? 6 : 0)) Equation 1, where ctxSig represents the context index of the importance flag syntax element, and "state" specifies the state of the scalar quantizer of the subordinate quantization scheme. In the example, "state" is derived using a state transition process. Equation (1) is equivalent to the following:
[0153] ctxIdBase = 18 * max(0, state - 1) + (d < 2 ? 12 : (d < 5 ? 6 : 0)) Equation 2,
[0154] ctxSig = ctxIdSigTable[min(sumAbs1, 5)] + ctxIdBase Equation 3, where ctxIdBase represents the context index base. The context index base can be determined based on state and the diagonal position d. For example, state can have a value of 0, 1, 2, or 3, and therefore max(0,state-1) can have one of three possible values 0, 1, or 2. For example, (d<2?12:(d<5?6:0)) can take values 12, 6, or 0, corresponding to different ranges of d: d<2, 2<=d<5, or 5<=d. ctxIdSigTable[] can represent an array data structure and store context index offsets of importance flags relative to ctxIdBase. For example, for different sumAbs1 values, min(sumAbs1,5) clips the sumAbs1 value to be less than or equal to 5. The clipped value is then mapped to the context index offset. For example, under the definition of ctxIdSigTable[0-5]={0,1,2,3,4,5}, the clipped values 0, 1, 2, 3, 4, or 5 are mapped to 0, 1, 2, 3, 4, or 5, respectively.
[0155] In an embodiment, for chroma components, the context index may be determined as follows:
[0156] ctxSig = 12 * max(0, state - 1) + min(sumAbs1, 5) + (d < 2 ? 6 : 0), Equation 4, Equation 4 is equivalent to the following Equations 5 and 6.
[0157] ctxIdBase = 12 * max(0, state - 1) + (d < 2 ? 6 : 0), Equation 5,
[0158] ctxSig = ctxIdSigTable[min(sumAbs1, 5)] + ctxIdBase. Equation 6, where state specifies the scalar quantizer used when slave quantization is enabled, and state is derived using the state transition process. Table ctxIdSigTable stores context model index offsets, ctxIdSigTable[0~5]={0,1,2,3,4,5}.
[0159] When encoding the par_level_flag of the current coefficient (1220), the context index may be selected based on sumAbs1, numSig, and the diagonal position d. numSig represents the number of non-zero coefficients in the local template (1230). For example, for the luma component, the context index may be determined based on:
[0160] ctxPar = 1 + min(sumAbs1 - numSig, 4) + (d == 0 ? 15 : (d < 3 ? 10 : (d < 10 ? 5 : 0))) Equation 7, Equation 7 is equivalent to the following:
[0161] ctxIdBase = (d == 0 ? 15 : (d < 3 ? 10 : (d < 10 ? 5 : 0))), Equation 8,
[0162] ctxPar = 1 + ctxIdTable[min(sumAbs1 - numSig, 4)] + ctxIdBase, Equation 9, where ctxPar represents the context index of the parity flag, and ctxIdTable[] represents an array data structure and stores the context index offset relative to the corresponding ctxIdBase. For example, ctxIdTable[0-4] = {0, 1, 2, 3, 4}.
[0163] For chroma, the context index can be determined as follows:
[0164] ctxPar = 1 + min(sumAbs1 - numSig, 4) + (d == 0 ? 5 : 0), Equation 10, Equation 10 is equivalent to the following:
[0165] ctxIdBase = (d == 0 ? 5 : 0), Equation 11,
[0166] ctxPar = 1 + ctxIdTable[min(sumAbs1 - numSig, 4)] + ctxIdBase. Equation 12, where the table ctxIdTable stores context model index offsets, and in the example, ctxIdTable[0-4] = {0, 1, 2, 3, 4}.
[0167] When encoding rem_abs_gt1_flag and rem_abs_gt2_flag of the current coefficient (1220), the context model index may be determined in the same manner as par_level_flag:
[0168] ctxGt1=ctxPar,
[0169] ctxGt2 = ctxPar,
[0170] Among them, ctxGt1 and ctxGt2 represent the context indexes of the greater than 1 flag and the greater than 2 flag respectively.
[0171] Note that different types of syntax elements can use different sets of context models, such as rem_abs_gt1_flag and rem_abs_gt2_flag. Therefore, even if the value of ctxGt1 is equal to the value of ctxGt2, the context model used by rem_abs_gt1_flag is different from the context model used by rem_abs_gt2_flag.
[0172] The primary transform (e.g., a forward primary transform or an inverse primary transform) can utilize a zero-out method or zero-out scheme as described below. In some examples, such as in VVC, for a 64-point (or 64-length) DCT-2, only the first 32 coefficients are calculated and the remaining coefficients are set to 0. Therefore, for an M×N block encoded using a DCT-2 transform, the upper left min(M, 32) x min(N, 32) low-frequency coefficients are retained or calculated. The remaining coefficients can be set to 0 and not signaled. In the example, the remaining coefficients are not calculated. Entropy encoding of the coefficient block can be performed by setting the coefficient block size to min(M, 32) x min(N, 32), so that the coefficient encoding of the M×N block is regarded as a min(M, 32) x min(N, 32) coefficient block.
[0173] In some examples using MTS, for 32-point DST-7 or DCT-8, only the first 16 coefficients are calculated and the remaining coefficients are set to 0. Therefore, for an M×N block transformed using DST-7 or DCT-8, the upper left min(M,16) x min(N,16) low-frequency coefficients are retained. The remaining coefficients can be set to 0 and not signaled. However, unlike the coefficient coding scheme used when applying 64-point zeroed DCT-2, for 32-point MTS, coefficient encoding is performed on the entire M×N block even if M or N is greater than 16. However, when a coefficient group (CG) is outside the upper left 16×16 low-frequency region (i.e., the coefficient group is in the zeroed region), the flag indicating whether the coefficient group has non-zero coefficients (e.g., coded_sub_block_flag) is not signaled. A zeroed region refers to a region in the coefficient block where the coefficients are zero, and therefore the coefficients in the zeroed region are zero. An example of the residual coding syntax is described below, which consists of Fig.13 This is indicated using the highlighted text in box 1301.
[0174] In an embodiment, a pattern-dependent non-separable secondary transform (NSST) may be used between a positive core transform and quantization (e.g., quantization of coefficients) at the encoder side and between dequantization (e.g., dequantization of quantized coefficients) and an inverse core transform at the decoder side. For example, to maintain low complexity, NSST is applied to low-frequency coefficients after the main transform (or core transform). When both the width (W) and height (H) of the transform coefficient block are greater than or equal to 8, 8×8 NSST is applied to the upper left 8×8 region of the transform coefficient block. Otherwise, when the width W or height H of the transform coefficient block is 4, 4×4 NSST is applied, and 4×4 NSST is performed on the upper left min(8,W)×min(8,H) region of the transform coefficient block. The above transform selection method is applicable to both luminance and chrominance components.
[0175] The matrix multiplication implementation of NSST is described below using a 4×4 input block as an example. The 4×4 input block X is written as
[0176]
[0177] In Equation 14, the input block X can be expressed as a vector in:
[0178]
[0179] The non-separable transformation is calculated as in, Denotes the transform coefficient vector, and T is the 16×16 transform matrix. Then, using the scanning order for the input block X (e.g., horizontal scanning order, vertical scanning order, or diagonal scanning order), the 16×1 transform coefficient vector Reorganize into 4×4 blocks. Coefficients with smaller indices can be placed in a 4×4 coefficient block with a smaller scan index.
[0180] The transform kernel of the secondary transform may be selected by the intra prediction mode. For each intra prediction mode, a set of secondary transform kernels may be defined, and the selection may be indicated by an index that may be signaled in the bitstream and / or by other syntax elements (e.g., MTS index).
[0181] In order to reduce the complexity of storing and calculating coefficients in the secondary transform, a secondary transform based on a zeroing scheme may be applied. When the secondary transform includes a zeroing scheme, the secondary transform only calculates the first K coefficients of the M×N block, where K is less than M×N. The remaining (M×NK) coefficients may be set to 0. For example, the remaining (M×NK) coefficients are not calculated.
[0182] 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. In some examples, the residual block is included in the coding block and is smaller than the coding block. Therefore, the transform size in the SBT is smaller than the coding block size. For areas not covered by the residual block, zero residual can be assumed, so no transform processing is performed.
[0183] Figures 14A-14D The sub-block types (SVT-H, SVT-V) supported in SBT are shown (e.g., horizontally or vertically 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 with the letter "A" are residual blocks with transformation, and other areas are assumed to be zero residuals without transformation.
[0184] As an example, Figures 15A-15F Changes to the specification text of a video codec standard (e.g., VVC) when using SBT are shown. Changes, including added text, are shown in boxes (2101) to (2108). As shown, additional syntax elements (e.g., additional overhead bits cu_sbt_flag, cu_sbt_quad_flag, cu_sbt_horizontal_flag, and cu_sbt_pos_flag) may be signaled to indicate the sub-block type (horizontal or vertical), size (half or quarter), and position (left, right, top, or bottom), respectively.
[0185] An example of sequence parameter set RBSP semantics is given below. sps_sbt_enabled_flag equal to 0 specifies that sub-block transform is disabled for inter-predicted CUs. sps_sbt_enabled_flag equal to 1 specifies that sub-block transform is enabled for inter-predicted CUs.
[0186] An example of conventional slice header semantics is given below. slice_sbt_max_size_64_flag equal to 0 specifies that the maximum CU width and height allowed for sub-block transforms is 32. slice_sbt_max_size_64_flag equal to 1 specifies that the maximum CU width and height allowed for sub-block transforms is 64. maxSbtSize may be determined as: maxSbtSize = slice_sbt_max_size_64_flag?64:32.
[0187] Examples of coding unit semantics are given below. cu_sbt_flag[x0][y0] equal to 1 specifies that for the current coding unit, sub-block transform is used. cu_sbt_flag[x0][y0] equal to 0 specifies that for the current coding unit, sub-block transform is not used. When cu_sbt_flag[x0][y0] is not present, its value is inferred to be equal to 0. When sub-block transform is used, the coding unit is tiled into two transform units, one transform unit with residual and the other transform unit without residual.
[0188] In some examples, cu_sbt_quad_flag[x0][y0] equal to 1 specifies that for the current coding unit, the sub-block transform includes a transform unit that is 1 / 4 the size of the current coding unit. In some examples, cu_sbt_quad_flag[x0][y0] equal to 0 specifies that for the current coding unit, the sub-block transform includes a transform unit that is 1 / 2 the size of the current coding unit. When cu_sbt_quad_flag[x0][y0] is not present, its value is inferred to be equal to 0.
[0189] In some examples, cu_sbt_horizontal_flag[x0][y0] equal to 1 specifies that the current coding unit is tiled into 2 transform units by horizontal splitting. cu_sbt_horizontal_flag[x0][y0] equal to 0 specifies that the current coding unit is tiled into 2 transform units by vertical splitting.
[0190] In some examples, when cu_sbt_horizontal_flag[x0][y0] is not present, its value is derived as follows: If cu_sbt_quad_flag[x0][y0] is equal to 1, then cu_sbt_horizontal_flag[x0][y0] is set equal to allowSbtHoriQuad. Otherwise (cu_sbt_quad_flag[x0][y0] is equal to 0), then cu_sbt_horizontal_flag[x0][y0] is set equal to allowSbtHoriHalf.
[0191] In some examples, cu_sbt_pos_flag[x0][y0] equal to 1 specifies that tu_cbf_luma, tu_cbf_cb, and tu_cbf_cr of the first transform unit in the current coding unit are not present in the bitstream. cu_sbt_pos_flag[x0][y0] equal to 0 specifies that tu_cbf_luma, tu_cbf_cb, and tu_cbf_cr of the second transform unit in the current coding unit are not present in the bitstream.
[0192] An example of a transform process for scaled transform coefficients is described below.
[0193] The inputs to this process are: the luminance position (xTbY, yTbY) specifying the upper left sample of the current luminance transform block relative to the upper left luminance sample of the current picture, the variable nTbW specifying the width of the current transform block, the variable nTbH specifying the height of the current transform block, the variable cIdx specifying the color component of the current block, and the (nTbW)×(nTbH) array d[x][y] of scaled transform coefficients, where x=0..nTbW-1, y=0..nTbH-1.
[0194] The output of this process is an (nTbW)×(nTbH) array r[x][y] of residual samples, where x=0..nTbW-1, y=0..nTbH-1.
[0195] If cu_sbt_flag[xTbY][yTbY] is equal to 1, then according to cu_sbt_horizontal_flag[xTbY][yTbY] and cu_sbt_pos_flag[xTbY][yTbY] in Table 3 ( Fig.15F ) exports the variable trTypeHor that specifies the horizontal transformation kernel and the variable trTypeVer that specifies the vertical transformation kernel.
[0196] Otherwise (cu_sbt_flag[xTbY][yTbY] is equal to 0), then according to mts_idx[xTbY][yTbY] and CuPredMode[xTbY][yTbY] in Table 4 ( Fig.15F ) exports the variable trTypeHor that specifies the horizontal transformation kernel and the variable trTypeVer that specifies the vertical transformation kernel.
[0197] The (nTbW)×(nTbH) array r of residual samples is derived as follows:
[0198] The one-dimensional transform process is called for each column x=0..nTbW–1 by taking as input the height nTbH of the transform block, a list d[x][y] with y=0..nTbH-1, and a transform type variable trType set equal to trTypeVer, thereby transforming each (vertical) column of scaled transform coefficients d[x][y] (where x=0..nTbW-1, y=0..nTbH-1) into e[x][y] (where x=0..nTbW-1, y=0..nTbH-1), and outputting a list e[x][y] with y=0..nTbH-1.
[0199] The intermediate sample values g[x][y] for x=0..nTbW-1, y=0..nTbH-1 are derived as follows:
[0200] g[x][y]=Clip3(CoeffMin,CoeffMax,(e[x][y]+256)>>9).
[0201] The one-dimensional transform process is called for each row y=0..nTbH–1 by taking as input the width of the transform block nTbW, the list g[x][y] with x=0..nTbW-1, and the transform type variable trType set equal to trTypeHor, so that each (horizontal) row of the resulting array g[x][y] (where x=0..nTbW-1, y=0..nTbH-1) is transformed into r[x][y] (where x=0..nTbW-1, y=0..nTbH-1), and the output is a list r[x][y] with x=0..nTbW-1.
[0202] In some examples, for 64-point DCT-2 with zeroing and 32-point MTS with zeroing, two different coefficient coding schemes are applied, and thus, coefficient coding is not a unified design.Coefficient coding may refer to entropy coding of transform coefficients.
[0203] For coefficient encoding applied to 32-point MTS with zeroing, although the transform coefficients are assumed to be zero, the transform coefficients of the zeroing area can be scanned. If the design of the encoder is imperfect but the encoder can calculate non-zero coefficients in the zeroing area, the CG at the boundary of the upper left non-zero area can still access the non-zero area to derive context values for entropy encoding the transform coefficients. The encoder and decoder can obtain different context values (for example, the encoder obtains a non-zero value and the decoder obtains a zero value), thereby producing unpredictable behavior for the decoder, such as crashes or mismatches.
[0204] In some examples, SBT is applied which may use 32-point DST-7 / DCT-8, so transform zeroing when applying SBT also needs to be designed appropriately.
[0205] The secondary transform may include zeroing methods, so the transform zeroing when applying the secondary transform needs to be designed appropriately.
[0206] The embodiments described herein may be used alone or in any order. In addition, the embodiments may be implemented by processing circuits (e.g., one or more processors or one or more integrated circuits) in encoders, decoders, etc. In one example, the one or more processors may execute a program stored in a non-volatile computer-readable medium.
[0207] In the present disclosure, embodiments of DST-7 applicable to MTS candidates may be applicable to DST-4, and vice versa. Similarly, embodiments of DCT-8 applicable to MTS candidates may also be applicable to DCT-4, and vice versa.
[0208] In the present disclosure, the secondary transform may refer to NSST or a simplified secondary transform (RST), which is an alternative design of NSST. Embodiments applicable to NSST may be applicable to RST.
[0209] On the decoder side, a coefficient block including transform coefficients may be decoded into a residual block with residual data, so a TU may refer to a coefficient block or a residual block. In the present disclosure, a coefficient unit (or coefficient set) may be defined as a set of transform coefficients (also referred to as coefficients) that includes all coefficients or a portion of coefficients within a TU or coefficient block. For example, a coefficient unit may refer to a subblock that is a minimum subblock including all non-zero coefficients within a coefficient block. For example, for a 64×64TU encoded using only DCT-2, only the low-frequency coefficients in the upper left 32×32 region are retained, and the remaining coefficients in the 64×64TU are set to 0, so the coefficient unit is the upper left 32×32 region in the 64×64TU. In another example, for a 32×32TU encoded using DST-7 or DCT-8, only the low-frequency coefficients in the upper left 16×16 region are retained, and the remaining coefficients in the 32×32TU are set to 0, so the coefficient unit is the upper left 16×16 region in the 32×32TU.
[0210] A TU may have multiple coefficient units, and the multiple coefficient units include all non-zero coefficients within the TU (ie, all non-zero coefficients within the TU are included in the multiple coefficient units). Therefore, coefficients outside the multiple coefficient units in the TU are zero.
[0211] Figures 16A-16D An example of a coefficient unit according to an embodiment of the present disclosure is shown. Fig.16A , the 16×16 coefficient block (1610) includes shaded areas 0, 1A, 2A, and 3A, and a white area 5. The shaded areas 0, 1A, 2A, and 3A may include non-zero transform coefficients, and the white area 5 does not include non-zero transform coefficients (i.e., the transform coefficients in the white area 5 are zero). Fig.16A , there are 4 coefficient units in the coefficient block (1610) (e.g., shaded areas 0, 1A, 2A, and 3A).
[0212] Reference Fig. 16B , the coefficient block (1610) may be divided into shaded areas 0 and 2A, shaded area 1B, and white area 5. Shaded areas 0, 1B, and 2A may include non-zero transform coefficients, and white area 5 does not include non-zero transform coefficients. Fig. 16B , there are 3 coefficient units in the coefficient block (1610) (e.g., shaded areas 0, 1B, and 2A). Fig.16A and Fig. 16B , shaded area 1B includes shaded areas 1A and 3A.
[0213] Reference Fig. 16C, the coefficient block (1610) may be divided into shaded areas 0 and 1A, shaded area 2C, and white area 5. Shaded areas 0, 1A, and 2C may include non-zero transform coefficients, and white area 5 does not include non-zero transform coefficients. Fig. 16C , there are 3 coefficient units in the coefficient block (1610) (e.g., shaded areas 0, 1A, and 2C). Fig.16A and Fig. 16C , shaded area 2C includes shaded areas 2A and 3A.
[0214] Reference Fig.16D , the coefficient block (1610) may be divided into a shaded area 0, a shaded area 1D, and a white area 5. The shaded areas 0 and 1D may include non-zero transform coefficients, and the white area 5 does not include non-zero transform coefficients. Fig.16D , there are 2 coefficient units in the coefficient block (1610) (e.g., shaded areas 0 and 1D). Fig.16A and 16D , shaded area 1D includes shaded areas 1A, 2A and 3A.
[0215] In general, coefficient cells may have any suitable shape or size. Figures 16A-16D , the coefficient units may have a square shape (e.g., coefficient units 1A, 2A, 3A), a rectangular shape (e.g., coefficient units 1B and 2C), an irregular shape (e.g., the "L" shape of coefficient unit 1D). The coefficient encoding may be modified accordingly so that coefficients in zeroed regions such as white region 5 are not signaled in the bitstream.
[0216] The coefficient block may be divided into different numbers of coefficient units. For example, the coefficient block (1610) may be divided into 4, 3, 3, and 2 coefficient units, respectively. Figures 16A-16D shown.
[0217] According to an embodiment of the present disclosure, the coefficient encoding of a TU can be processed in units of coefficient units, where each coefficient unit is independently encoded. Therefore, the coefficient encoding of one coefficient unit in a TU does not need to access the encoding information of another coefficient unit in the TU.
[0218] Various processing orders can be used to process multiple coefficient units in a coefficient block. Fig.16D , the processing circuitry may start processing coefficient units 0 and 1D synchronously. In an example, the processing circuitry may start processing coefficient unit 0 before starting processing coefficient unit 1D. In an example, the processing circuitry may start processing coefficient unit 1D before starting processing coefficient unit 0.
[0219] In some examples, a flag (i.e., a coefficient unit flag) may be used to indicate whether a coefficient unit includes at least a non-zero coefficient. For example, four flags may be used to indicate whether a coefficient unit includes at least a non-zero coefficient. Fig.16A Similarly, the three flags can be used for coefficient units 0 and 1A-3A. Fig. 16B The coefficient units 0, 1B and 2A in Fig. 16C The coefficient units 0, 1A and 2C in Fig.16D The coefficient units in 0 and 1D.
[0220] In some examples, for each coefficient unit, a coefficient unit flag may be signaled. In an example, when a TU has only one coefficient unit, the coefficient unit flag of the one coefficient unit may be inferred from the coefficient block flag (CBF) of the TU, and thus the coefficient unit flag is not signaled. The CBF of the TU may indicate whether the TU has at least one non-zero coefficient.
[0221] In an example, a TU is divided into a plurality of coefficient units, and the TU has non-zero coefficients. If only the last coefficient unit in the processing order has non-zero coefficients, then the coefficient unit flag of the last coefficient unit indicates that the last coefficient unit has non-zero coefficients, and the coefficient unit flag is inferred without being signaled.
[0222] In an embodiment, the coefficient encoding of the coefficient unit may be processed in units of coefficient groups (CGs). The CG may include 16 coefficients in the coefficient unit. The CG may have any suitable shape, such as a square, a rectangle, etc. For example, the CG may be a 4×4 sub-block, a 2×8 sub-block, or an 8×2 sub-block in the coefficient unit.
[0223] In the example, a coefficient unit includes multiple CGs and has non-zero coefficients. If only the last CG in the processing order has a non-zero coefficient, it can be inferred without signaling a flag of the last CG (e.g., coded_sub_block_flag, indicating whether the last CG has a non-zero coefficient), and the flag of the last CG indicates that the last CG has at least one non-zero coefficient.
[0224] In an embodiment, for a TU that is not secondarily transformed coded, the TU has only one coefficient unit.
[0225] In an example, if a main transform including (or using) a return-to-zero method, an SBT, or a combination of a main transform including a return-to-zero method and an SBT is applied to a TU, the size and position of the coefficient unit can be inferred from the main transform including the return-to-zero method and / or the SBT, so that after the main transform including the return-to-zero method and / or the SBT, the coefficient unit includes a non-zero region. The non-zero region includes at least one non-zero coefficient.
[0226] In an example, if a TU does not have a pre-known zeroing region, for example due to a main transform, SBT, etc. including a zeroing method as described above, the size and position of the coefficient unit can be inferred to be the same as that of the TU. In an example, the coefficient unit is a TU.
[0227] In some embodiments, a main transform is applied to an M×N coefficient block and the main transform uses a zeroing method, wherein the main transform may be a non-DCT-2 transform or a combination of a DCT-2 transform and a non-DCT-2 transform. The main transform may include a horizontal M-point transform and a vertical N-point transform. Therefore, when X is the number of coefficients reserved or calculated for the horizontal M-point transform and Y is the number of coefficients reserved or calculated for the vertical N-point transform, the ratio X / M is less than 1 and / or the ratio Y / N is less than 1. According to aspects of the present disclosure, entropy encoding of an M×N coefficient block may be achieved by setting the size of the entropy encoding block to min(M,X)×min(N,Y). Therefore, when entropy encoding an M×N coefficient block, the M×N coefficient block is regarded as a min(M,X)×min(N,Y) region, for example, only the transform coefficients in the upper left min(M,X)×min(N,Y) region are entropy encoded, and the remaining coefficients are not entropy encoded (for example, the remaining coefficients are set to zero). Furthermore, in the example, when the upper left min(M,X)×min(N,Y) region is entropy encoded, the remaining coefficients outside the upper left min(M,X)×min(N,Y) region are not accessed.
[0228] In some examples, the non-DCT-2 transform is a 32-point DST-7 / DCT-8 used in MTS, a 32-point DST-7 / DCT-8 used in SBT, and / or a 32-point DST-7 / DCT-8 used in implicit MTS. When X and Y are 16, the size of the entropy coding block is 16×16, and only the upper left 16×16 region is entropy coded. In addition, in an example, when the upper left 16×16 region is entropy coded, the remaining coefficients outside the upper left 16×16 region are not accessed.
[0229] As described above, a main transform (e.g., a non-DCT-2 transform, or a combination of a DCT-2 transform and a non-DCT-2 transform) may be applied to an M×N coefficient block and the main transform uses a zeroing method. The ratio X / M is less than 1 and / or the ratio Y / N is less than 1. The coefficients in an area outside the upper left min(M,X)×min(N,Y) area in the M×N coefficient block may be considered to be zero, and the area may be referred to as a zeroing area. According to aspects of the present disclosure, entropy encoding of an M×N coefficient block may be implemented on the entire M×N coefficient block. However, when accessing a syntax element of a transform coefficient located in a zeroing area to derive a context value (for entropy encoding of, for example, a current coefficient), a default value of the transform coefficient may be used. The syntax element of the transform coefficient may also be referred to as a coefficient-related syntax element.
[0230] In the example, when the CG flag (e.g., coded_sub_block_flag) of the current CG is entropy encoded, one or more adjacent CG flags of the corresponding one or more adjacent CGs may be used to derive a context value for entropy encoding the CG flag of the current CG. However, if one of the one or more adjacent CGs is located in a zeroed region, a default value (e.g., 0) may be used for one of the one or more adjacent CGs to derive a context value.
[0231] In an example, when entropy encoding is performed on the syntax elements of the current transform coefficient (e.g., coefficient-related flags, such as sig_coeff_flag, par_level_flag, rem_abs_gt1_flag, rem_abs_gt2_flag, etc.), the syntax elements of the neighboring coefficients may be used to derive the context value of the current transform coefficient. When the neighboring coefficient is located in a zeroing region, a default value (e.g., 0) may be used instead.
[0232] Fig.17 A 32×32 coefficient block (1710) is shown including a first region (1720) and a second region (1730). The first region (1720) is the upper left 16×16 region in the coefficient block (1710), and the second region (1730) is outside the first region (1720). The first region (1720) includes CG AC, and the second region (1730) includes CG AB, AR, BB, and CR. In the example, the entropy coding order is a reverse diagonal order starting from the lower right corner of the coefficient block (1710) and ending at the upper left corner of the coefficient block (1710). Therefore, CG AB and AR are entropy encoded before CG A, CG BB is entropy encoded before CG B, and CG CR is entropy encoded before CG C.
[0233] In the example, only the transform coefficients in the first area (1720) are retained, and the remaining coefficients in the second area (1730) are set to 0, so the second area (1730) is also called a zeroing area. In order to entropy encode the first CG flag (e.g., coded_sub_block_flag) of CG A, CG AR (right CG) and CG AB (lower CG) can be accessed to derive the context value of the first CG flag. Since CG AR and AB are located in the zeroing area (1730), default values (e.g., 0) can be assigned to the CG flags of CG AR and AB, respectively. In order to entropy encode the second CG flag (e.g., coded_sub_block_flag) of CG B, CG BB will be accessed to derive the context value. Since CG BB is located in the zeroing area (1730), a default value (e.g., 0) can be assigned to the CG flag of CG BB. In order to entropy encode the third CG flag (e.g., coded_sub_block_flag) of CG C, CG CR will be accessed to derive the context value. Since the CG CR is located in the return-to-zero area (1730), a default value (e.g., 0) may be assigned to the CG flag of the CG CR.
[0234] In some embodiments, a secondary transform including a zeroing method is applied to the upper left M×N region (1820) of the X×Y coefficient block (1810), such as Fig.18 As shown. For example, the first 16 coefficients are retained, and the remaining (M×N-16) coefficients in the upper left M×N region (1820) are set to 0. In the example, X and Y are 32, M and N are 16, so the first 16 coefficients in the 4×4 region 0 are retained, and the remaining (16×16-16) coefficients in region 2 are set to 0. Therefore, region 2 is called a zero region or a zero region. Fig.18 , the X×Y coefficient block (1810) includes three regions, region 0, region 1, and region 2. Region 2 is a zero region generated due to the zeroing method in the secondary transform. Region 0 and / or region 1 may have non-zero transform coefficients. The secondary transform is not applicable to region 1, that is, region 1 is not processed by the secondary transform.
[0235] Entropy encoding of the X×Y coefficient block (1810) may be performed on the entire X×Y coefficient block (1810). However, when accessing coefficient-related syntax elements (i.e., syntax elements of coefficients where the coefficients are located in return-to-zero region 2) to derive context values for entropy encoding, a default value for the coefficient may be used.
[0236] In an embodiment, when the CG flag (e.g., coded_sub_block_flag) of the current CG is entropy encoded, one or more adjacent CG flags of the corresponding one or more adjacent CGs may be used to derive the context value of the CG flag. However, if one of the one or more adjacent CGs is completely located in the zeroing region 2 (which is formed due to the secondary transformation using the zeroing method), a default value (e.g., 0) may be used instead. Fig.18 , region 0 includes CG A, B, and C, and region 2 (e.g., return-to-zero region) includes CG AB, AR, and BB. CG AB and AR are completely located in return-to-zero region 2, so the context value of the first CG flag can be derived by using a default value (e.g., 0) instead of the CG flag of CG AB and AR. CG BB is completely located in return-to-zero region 2, so the context value of the second CG flag can be derived by using a default value (e.g., 0) instead of the CG flag of CG BB.
[0237] In an embodiment, when entropy encoding is performed on the CG flag (e.g., coded_sub_block_flag) of the current CG, the context value of the CG flag may be derived using one or more adjacent CG flags of the corresponding one or more adjacent CGs. However, if one of the one or more adjacent CGs (e.g., Fig.18 If a CG CR in the return-to-zero region 2 is partially located in the return-to-zero region 2, one of the one or more adjacent CGs (for example, Fig.18 The context value is derived by using the non-zero coefficients in CG CR) in .
[0238] In one embodiment, when entropy encoding is performed on the syntax elements of the current transform coefficient (e.g., coefficient-related flags such as sig_coeff_flag, par_level_flag, rem_abs_gt1_flag, rem_abs_gt2_flag, etc.), the syntax elements are not signaled. When the current coefficient is located in a return-to-zero region (e.g., return-to-zero region 2), the current coefficient may be inferred to be a default value indicating that the current coefficient is 0.
[0239] In an embodiment, when entropy encoding is performed on a syntax element (e.g., coefficient-related flags, such as sig_coeff_flag, par_level_flag, rem_abs_gt1_flag, rem_abs_gt2_flag, etc.) of a current transform coefficient, one or more neighboring coefficients may be used to derive a context value of the syntax element. If one of the one or more neighboring coefficients is located in zero area 2, a default value (e.g., 0) may be used instead.
[0240] Reference Fig.19In an embodiment, the coefficient block (1910) includes a first region (1920) and a second region (1930) outside the first region (1920). When a secondary transform (e.g., NSST or SBT) is applied to the first region (1920) and the secondary transform uses a zeroing method that retains only some coefficients (e.g., in the upper left region 0), the second region (1930) to which the secondary transform is not applied may also be regarded as a zeroing region. Fig.19 In the example shown, since the zeroing method is used in the secondary transform, the region 1 between the region 0 and the second region (1930) is a zeroing region. Therefore, the combined zeroing region includes the region 1 and the second region (1930). In the example, the coefficient block (1910) includes only one coefficient unit (e.g., region 0), so only the coefficient unit (e.g., region 0) in the coefficient block (1910) is entropy encoded.
[0241] In an embodiment, the size and position of the coefficient unit in the coefficient block (1910) may be inferred based on a secondary transform including a return-to-zero method. In an example, when the secondary transform is an 8×8 secondary transform, the coefficient unit is the upper left 8×8 region (1920) of the coefficient block (1910). In an example, when the secondary transform is an 8×8 secondary transform including a return-to-zero method on a first region (1920), the coefficient unit is the upper left 4×4 region 0 of the first region (1920), where the return-to-zero method retains the first 16 coefficients in region 0.
[0242] In the example, the secondary transform is an 8×8 secondary transform applied to the first region (1920) (e.g., the upper left 8×8 region in the coefficient block (1910)), and the second region (1930) is outside the upper left 8×8 region (1920). When only 16 coefficients are retained in the secondary transform, the combined zeroed region is outside the upper left 4×4 region 0.
[0243] In the example, the coefficient block includes a 4×4 first region and a second region outside the first region. When a secondary transform is applied to the first region and the secondary transform uses a zeroing method that retains only some coefficients, the second region to which the secondary transform is not applied can be regarded as a zeroing region.
[0244] Fig. 20A flow chart of an overview process (2000) according to an embodiment of the present disclosure is shown. The process (2000) may be used to reconstruct a block encoded in an intra-frame mode, thereby generating a prediction block for the block being reconstructed. In some examples, the process (2000) may be used to reconstruct a block encoded in an inter-frame mode. In various embodiments, the process (2000) is performed by a processing circuit such as a processing circuit in a terminal device (310), (320), (330) and (340), a processing circuit that performs the functions of a video encoder (403), a processing circuit that performs the functions of a video decoder (410), a processing circuit that performs the functions of a video decoder (510), a processing circuit that performs the functions of a video encoder (603), etc. In some embodiments, the process (2000) is implemented in software instructions, so that when the processing circuit executes the software instructions, the processing circuit performs the process (2000). The process starts at (S2001) and proceeds to (S2010).
[0245] At (S2010), encoding information of a transform block (TB) (e.g., a coefficient block) may be decoded from an encoded video bitstream. The encoding information may indicate an area of the TB to which a secondary transform is applied, wherein the area includes a first sub-area and a second sub-area, the first sub-area having transform coefficients calculated by the secondary transform. In an example, the secondary transform uses a zeroing method, and therefore, the transform coefficients in the second sub-area are not calculated by the secondary transform and are set to zero.
[0246] At (S2020), for the transform coefficient in the TB, it may be determined whether an adjacent transform coefficient used to determine the transform coefficient is located in the second sub-region. When it is determined that the adjacent transform coefficient is located in the second sub-region, the process (2000) proceeds to (S2030). Otherwise, the process (2000) proceeds to (S2040).
[0247] At (S2030), the transform coefficient may be determined according to the default value of the adjacent transform coefficient. In some examples, one or more syntax elements of the transform coefficient may be determined according to the default value (e.g., 0) of the adjacent transform coefficient. The syntax element may include coefficient-related flags, such as sig_coeff_flag, a par_level_flag, arem_abs_gt1_flag, arem_abs_gt2_flag, indicating whether the transform coefficient is a non-zero transform coefficient, the parity of the transform coefficient, whether the transform coefficient is greater than 2, and whether the transform coefficient is greater than 4, respectively.
[0248] At (S2040), the transform coefficient may be determined according to the default values of the neighboring transform coefficients. In some examples, one or more syntax elements of the transform coefficient may be determined.
[0249] At (S2050), the sample is reconstructed based on the transform coefficients for the sample in the TB.
[0250] The process (2000) may be modified as appropriate. For example, one or more steps may be modified, omitted, or combined. The order in which the process (2000) is performed may also be modified.
[0251] Other steps may also be added. For example, the transform coefficient in the TB may be one of multiple transform coefficients in the first CG, and the first CG flag of the first CG indicates whether at least one of the multiple transform coefficients is a non-zero transform coefficient. The second CG including the transform coefficient is pre-entropy decoded and is adjacent to the first CG. Process (2000) may include the step of determining the position of the second CG. When it is determined that the second CG is located in the second sub-region, the process (2000) may include the step of determining the first CG flag based on a default value of the second CG. Optionally, when a portion of the second CG is located in the second sub-region and another portion of the second CG includes at least one non-zero coefficient, the process (2000) may include the step of determining the first CG flag based on the at least one non-zero coefficient.
[0252] In some examples, further steps may include determining whether the transform coefficient is located in the second sub-region. When it is determined that the transform coefficient is located in the second sub-region, the transform coefficient is determined not to be signaled and to be zero.
[0253] Fig.21 A flow chart of an overview process (2100) according to an embodiment of the present disclosure is shown. The process (2100) may be used to reconstruct a block encoded in intra-frame mode, thereby generating a prediction block for the block being reconstructed. In some examples, the process (2100) may be used to reconstruct a block encoded in inter-frame mode. In various embodiments, the process (2100) is performed by a processing circuit such as a processing circuit in a terminal device (310), (320), (330) and (340), a processing circuit that performs the functions of a video encoder (403), a processing circuit that performs the functions of a video decoder (410), a processing circuit that performs the functions of a video decoder (510), a processing circuit that performs the functions of a video encoder (603), etc. In some embodiments, the process (2100) is implemented in software instructions, so that when the processing circuit executes the software instructions, the processing circuit performs the process (2100). The process starts at (S2101) and proceeds to (S2110).
[0254] At (S2110), encoding information of a transform block (TB) may be decoded from an encoded video bitstream.
[0255] At (S2120), it can be determined whether to perform a secondary transform on a first region of the TB based on the encoding information, wherein the first region includes a first sub-region and a second sub-region, and the first sub-region has a transform coefficient calculated by the secondary transform. In an example, the secondary transform uses a zeroing method, so the transform coefficient in the second sub-region is not calculated by the secondary transform and is set to zero. When it is determined to perform the secondary transform, the process (2100) proceeds to (S2130). Otherwise, the process (2100) proceeds to (S2199).
[0256] At (S2130), it is determined that the transform coefficient in a second region in the TB is zero, wherein the second region is outside the first region.
[0257] The process (2100) may be modified as appropriate. For example, one or more steps may be modified, omitted, or combined. Other steps may also be added. For example, the size and position of the coefficient units in the TB are determined based on the first region, and the transform coefficients outside the coefficient units are zero. The order in which the process (2100) is performed may also be modified.
[0258] The above techniques may be implemented as computer software via computer-readable instructions and physically stored in one or more computer-readable media. Fig. 22 A computer system (2200) is shown that is suitable for implementing certain embodiments of the disclosed subject matter.
[0259] The computer software may be encoded in any suitable machine code or computer language, and may be assembled, compiled, linked, or the like to create a code comprising instructions, which may be directly executed by one or more computer central processing units (CPUs), graphics processing units (GPUs), etc., or executed by decoding, microcode, or the like.
[0260] The instructions may be executed on various types of computers or components thereof, including, for example, personal computers, tablets, servers, smartphones, gaming devices, IoT devices, etc.
[0261] Fig. 22 The components shown for the computer system (2200) are exemplary in nature and are not intended to impose any limitations on the scope of use or functionality of computer software implementing the disclosed embodiments. Nor should the configuration of the components be interpreted as having any dependency or requirement on any one or combination of components shown in the exemplary embodiment of the computer system (2200).
[0262] The computer system (2200) may include certain human-computer interface input devices. Such human-computer interface input devices may respond to input from one or more human users through tactile input (e.g., keyboard input, sliding, data glove movement), audio input (e.g., sound, applause), visual input (e.g., gestures), and olfactory input (not shown). The human-computer interface devices may also be used to capture certain media that are not necessarily directly related to human conscious input, such as audio (e.g., speech, music, ambient sound), 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).
[0263] The human-computer interface input device may include one or more of the following (only one of which is drawn): keyboard (2201), mouse (2202), touchpad (2203), touch screen (2210), data gloves (not shown), joystick (2205), microphone (2206), scanner (2207), camera (2208).
[0264] The computer system (2200) may also include certain human-computer interface output devices. Such human-computer 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-computer interface output devices may include tactile output devices (e.g., tactile feedback through a touch screen (2210), a data glove (not shown), or a joystick (2205), but there may also be tactile feedback devices that are not used as input devices), audio output devices (e.g., speakers (2209), headphones (not shown)), visual output devices (e.g., screens (2210) including cathode ray tube screens, liquid crystal screens, plasma screens, organic light emitting diode screens, each of which has or does not have a touch screen input function, each of which has or does not have a tactile feedback function - some of which can output two-dimensional visual output or output of more than three dimensions by means such as stereoscopic picture output; virtual reality glasses (not shown), holographic displays, and smoke boxes (not shown)) and printers (not shown).
[0265] The computer system (2200) may also include human-accessible storage devices and their associated media, such as optical media including high-density read-only / rewritable optical disks (CD / DVD ROM / RW) (2220) with CD / DVD or similar media (2221), thumb drives (2222), removable hard disk drives or solid state drives (2223), traditional magnetic media such as tapes and floppy disks (not shown), special-purpose ROM / ASIC / PLD-based devices such as security software protectors (not shown), and the like.
[0266] Those skilled in the art should also understand that the term "computer-readable media" used in connection with the disclosed subject matter does not include transmission media, carrier waves, or other transient signals.
[0267] The computer system (2200) may also include an interface to one or more communication networks. For example, the network may be wireless, wired, or optical. The network may also be a local area network, a wide area network, a metropolitan area network, an in-vehicle network, an industrial network, a real-time network, a delay-tolerant network, and the like. The network also includes local area networks such as Ethernet, wireless local area networks, cellular networks (GSM, 3G, 4G, 5G, LTE, etc.), television wired or wireless wide area digital networks (including cable television, satellite television, and terrestrial broadcast television), in-vehicle and industrial networks (including CANBus), and the like. Some networks typically require an external network interface adapter for connecting to some universal data ports or peripheral buses (2249) (e.g., a USB port of the computer system (2200)); other systems are typically integrated into the core of the computer system (2200) by connecting to the system bus as described below (e.g., an Ethernet interface integrated into a PC computer system or a cellular network interface integrated into a smart phone computer system). By using any of these networks, the computer system (2200) can communicate with other entities. The communication can be one-way, for receiving only (e.g., wireless television), one-way for sending only (e.g., CAN bus to certain CAN bus devices), or two-way, such as to other computer systems via a local or wide area digital network. Each of the above networks and network interfaces can use certain protocols and protocol stacks.
[0268] The above-mentioned human-machine interface devices, human-accessible storage devices, and network interfaces may be connected to the core (2240) of the computer system (2200).
[0269] The core (2240) may include one or more central processing units (CPUs) (2241), graphics processing units (GPUs) (2242), dedicated programmable processing units in the form of field programmable gate arrays (FPGAs) (2243), hardware accelerators for specific tasks (2244), etc. These devices, as well as read-only memory (ROM) (2245), random access memory (2246), internal mass storage (e.g., internal non-user accessible hard disk drives, solid-state drives, etc.) (2247), etc., may be connected via a system bus (2248). In some computer systems, the system bus (2248) may be accessed in the form of one or more physical plugs so that it may be expanded by additional central processing units, graphics processing units, etc. Peripheral devices may be directly attached to the core's system bus (2248), or connected via a peripheral bus (2249). The architecture of the peripheral bus includes PCI, USB, etc.
[0270] The CPU (2241), GPU (2242), FPGA (2243) and accelerator (2244) can execute certain instructions, which can be combined to form the above-mentioned computer code. The computer code can be stored in ROM (2245) or RAM (2246). Transition data can also be stored in RAM (2246), while permanent data can be stored in, for example, internal mass storage (2247). 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 (2241), GPUs (2242), mass storage (2247), ROM (2245), RAM (2246), etc.
[0271] The computer readable medium may have computer code thereon for performing various computer-implemented operations. The medium and computer code may be specially designed and constructed for the purposes of the present disclosure, or may be the medium and code well known and available to those skilled in the art of computer software.
[0272] As an example and not a limitation, a computer system having an architecture (2200), in particular a core (2240), can provide the function of executing software contained in one or more tangible computer-readable media as a processor (including a CPU, GPU, FPGA, accelerator, etc.). Such a computer-readable medium can be a medium associated with the above-mentioned user-accessible mass storage, as well as a specific memory of the core (2240) having non-volatility, such as a core internal mass storage (2247) or ROM (2245). Software implementing various embodiments of the present disclosure can be stored in such a device and executed by the core (2240). Depending on specific needs, the computer-readable medium may include one or more storage devices or chips. The software can enable the core (2240), in particular the processor therein (including a CPU, GPU, FPGA, etc.) to perform a specific process or a specific part of a specific process described herein, including defining a data structure stored in RAM (2246) and modifying such a data structure according to a software-defined process. Additionally or alternatively, the computer system may provide functionality hardwired in logic or otherwise contained in circuitry (e.g., accelerator (2244)) that may operate in place of or in conjunction with software to perform specific processes or specific portions of specific processes described herein. Where appropriate, references to software may include logic and vice versa. Where appropriate, references to computer-readable media may include circuitry (e.g., integrated circuits (ICs)) storing executing software, circuitry containing executing logic, or both. The present disclosure includes any suitable combination of hardware and software.
[0273] Appendix A: Acronyms
[0274] JEM: Joint Exploration Model
[0275] VVC: universal video coding
[0276] BMS: Benchmark set
[0277] MV: Motion Vector
[0278] HEVC: High Efficiency Video Coding
[0279] SEI: Supplementary Enhancement Information
[0280] VUI: Video Usability Information
[0281] GOPs: Groups of Pictures
[0282] TUs: Transform Units
[0283] PUs: Prediction Units
[0284] CTUs: Coding Tree Units
[0285] CTBs: Coding Tree Blocks
[0286] PBs: Prediction Blocks
[0287] HRD: Hypothetical Reference Decoder
[0288] SNR: Signal Noise Ratio
[0289] CPUs: Central Processing Units
[0290] GPUs: Graphics Processing Units
[0291] CRT: Cathode Ray Tube
[0292] LCD: Liquid-Crystal Display
[0293] OLED: Organic Light-Emitting Diode
[0294] CD: Compact Disc
[0295] DVD: Digital Video Disc
[0296] ROM: Read-Only Memory
[0297] RAM: Random Access Memory
[0298] ASIC: Application-Specific Integrated Circuit
[0299] PLD: Programmable Logic Device
[0300] LAN: Local Area Network
[0301] GSM: Global System for Mobile communications
[0302] LTE: Long-Term Evolution
[0303] CANBus: Controller Area Network Bus
[0304] USB: Universal Serial Bus
[0305] PCI: Peripheral Component Interconnect
[0306] FPGA: Field Programmable Gate Areas
[0307] SSD: Solid-state Drive
[0308] IC:Integrated Circuit
[0309] CU: Coding Unit
[0310] Although the present disclosure has described a number of exemplary embodiments, various changes, arrangements and various equivalent substitutions of the embodiments are within the scope of the present disclosure. It should therefore be understood that those skilled in the art are capable of designing a variety of systems and methods, which, although not explicitly shown or described herein, embody the principles of the present disclosure and are therefore within the spirit and scope of the present disclosure.
[0311] Appendix I
[0312] 4x4 Transform
[0313] {64,64,64,64}
[0314] {83,36,-36,-83}
[0315] {64,-64,-64,64}
[0316] {36,-83,83,-36}
[0317] 8x8 Transform
[0318] {64,64,64,64,64,64,64,64}
[0319] {89,75,50,18,-18,-50,-75,-89}
[0320] {83,36,-36,-83,-83,-36,36,83}
[0321] {75,-18,-89,-50,50,89,18,-75}
[0322] {64,-64,-64,64,64,-64,-64,64}
[0323] {50,-89,18,75,-75,-18,89,-50}
[0324] {36,-83,83,-36,-36,83,-83,36}
[0325] {18,-50,75,-89,89,-75,50,-18}
[0326] 16x16 Transform
[0327] {64 64 64 64 64 64 64 64 64 64 64 64 64 64 64}
[0328] {90 87 80 70 57 43 25 9 -9-25-43-57-70-80-87-90}
[0329] {89 75 50 18-18-50-75-89-89-75-50-18 18 50 75 89}
[0330] {87 57 9-43-80-90-70-25 25 70 90 80 43 -9-57-87}
[0331] {83 36-36-83-83-36 36 83 83 36-36-83-83-36 36 83}
[0332] {80 9-70-87-25 57 90 43-43-90-57 25 87 70 -9-80}
[0333] {75-18-89-50 50 89 18-75-75 18 89 50-50-89-18 75}
[0334] {70-43-87 9 90 25-80-57 57 80-25-90 -9 87 43-70}
[0335] {64-64-64 64 64-64-64 64 64-64-64 64 64-64-64 64}
[0336] {57-80-25 90 -9-87 43 70-70-43 87 9-90 25 80-57}
[0337] {50-89 18 75-75-18 89-50-50 89-18-75 75 18-89 50}
[0338] {43-90 57 25-87 70 9-80 80 -9-70 87-25-57 90-43}
[0339] {36-83 83-36-36 83-83 36 36-83 83-36-36 83-83 36}
[0340] {25-70 90-80 43 9-57 87-87 57 -9-43 80-90 70-25}
[0341] {18-50 75-89 89-75 50-18-18 50-75 89-89 75-50 18}
[0342] {9-25 43-57 70-80 87-90 90-87 80-70 57-43 25 -9}
[0343] 32x32 Transform
[0344] {64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 6464 64 64 64 64 64 64}
[0345] {90 90 88 85 82 78 73 67 61 54 46 38 31 22 13 4 -4-13-22-31-38-46-54-61-67-73-78-82-85-88-90-90}
[0346] {90 87 80 70 57 43 25 9 -9-25-43-57-70-80-87-90-90-87-80-70-57-43-25-9 9 25 43 57 70 80 87 90}
[0347] {90 82 67 46 22 -4-31-54-73-85-90-88-78-61-38-13 13 38 61 78 88 90 8573 54 31 4-22-46-67-82-90}
[0348] {89 75 50 18-18-50-75-89-89-75-50-18 18 50 75 89 89 75 50 18-18-50-75-89-89-75-50-18 18 50 75 89}
[0349] {88 67 31-13-54-82-90-78-46 -4 38 73 90 85 61 22-22-61-85-90-73-38 446 78 90 82 54 13-31-67-88}
[0350] {87 57 9-43-80-90-70-25 25 70 90 80 43 -9-57-87-87-57 -9 43 80 90 7025-25-70-90-80-43 9 57 87}
[0351] {85 46-13-67-90-73-22 38 82 88 54 -4-61-90-78-31 31 78 90 61 4-54-88-82-38 22 73 90 67 13-46-85}
[0352] {83 36-36-83-83-36 36 83 83 36-36-83-83-36 36 83 83 36-36-83-83-36 3683 83 36-36-83-83-36 36 83}
[0353] {82 22-54-90-61 13 78 85 31-46-90-67 4 73 88 38-38-88-73 -4 67 90 46-31-85-78-13 61 90 54-22-82}
[0354] {80 9-70-87-25 57 90 43-43-90-57 25 87 70 -9-80-80 -9 70 87 25-57-90-43 43 90 57-25-87-70 9 80}
[0355] {78 -4-82-73 13 85 67-22-88-61 31 90 54-38-90-46 46 90 38-54-90-31 6188 22-67-85-13 73 82 4-78}
[0356] {75-18-89-50 50 89 18-75-75 18 89 50-50-89-18 75 75-18-89-50 50 8918-75-75 18 89 50-50-89-18 75}
[0357] {73-31-90-22 78 67-38-90-13 82 61-46-88 -4 85 54-54-85 4 88 46-61-8213 90 38-67-78 22 90 31-73}
[0358] {70-43-87 9 90 25-80-57 57 80-25-90 -9 87 43-70-70 43 87 -9-90-25 8057-57-80 25 90 9-87-43 70}
[0359] {67-54-78 38 85-22-90 4 90 13-88-31 82 46-73-61 61 73-46-82 31 88-13-90 -4 90 22-85-38 78 54-67}
[0360] {64-64-64 64 64-64-64 64 64-64-64 64 64-64-64 64 64-64-64 64 64-64-6464 64-64-64 64 64-64-64 64}
[0361] {61-73-46 82 31-88-13 90 -4-90 22 85-38-78 54 67-67-54 78 38-85-22 904-90 13 88-31-82 46 73-61}
[0362] {57-80-25 90 -9-87 43 70-70-43 87 9-90 25 80-57-57 80 25-90 9 87-43-70 70 43-87 -9 90-25-80 57}
[0363] {54-85 -4 88-46-61 82 13-90 38 67-78-22 90-31-73 73 31-90 22 78-67-3890-13-82 61 46-88 4 85-54}
[0364] {50-89 18 75-75-18 89-50-50 89-18-75 75 18-89 50 50-89 18 75-75-1889-50-50 89-18-75 75 18-89 50}
[0365] {46-90 38 54-90 31 61-88 22 67-85 13 73-82 4 78-78 -4 82-73-13 85-67-22 88-61-31 90-54-38 90-46}
[0366] {43-90 57 25-87 70 9-80 80 -9-70 87-25-57 90-43-43 90-57-25 87-70 -980-80 9 70-87 25 57-90 43}
[0367] {38-88 73 -4-67 90-46-31 85-78 13 61-90 54 22-82 82-22-54 90-61-1378-85 31 46-90 67 4-73 88-38}
[0368] {36-83 83-36-36 83-83 36 36-83 83-36-36 83-83 36 36-83 83-36-36 83-8336 36-83 83-36-36 83-83 36}
[0369] {31-78 90-61 4 54-88 82-38-22 73-90 67-13-46 85-85 46 13-67 90-73 2238-82 88-54 -4 61-90 78-31}
[0370] {25-70 90-80 43 9-57 87-87 57 -9-43 80-90 70-25-25 70-90 80-43 -9 57-87 87-57 9 43-80 90-70 25}
[0371] {22-61 85-90 73-38 -4 46-78 90-82 54-13-31 67-88 88-67 31 13-54 82-9078-46 4 38-73 90-85 61-22}
[0372] {18-50 75-89 89-75 50-18-18 50-75 89-89 75-50 18 18-50 75-89 89-7550-18-18 50-75 89-89 75-50 18}
[0373] {13 - 38 61 - 78 88 - 90 85 - 73 54 - 31 4 22 - 46 67 - 82 90 - 90 82 - 67 46 - 22 -4 31 - 54 73 - 85 90 - 88 78 - 61 38 - 13}
[0374] {9 - 25 43 - 57 70 - 80 87 - 90 90 - 87 80 - 70 57 - 43 25 -9 -9 25 - 43 57 - 70 80 - 87 90 - 90 87 - 80 70 - 57 43 - 25 9}
[0375] {4 - 13 22 - 31 38 - 46 54 - 61 67 - 73 78 - 82 85 - 88 90 - 90 90 - 90 88 - 85 82 - 78 73 - 67 61 - 54 46 - 38 31 - 22 13 -4}
[0376] Appendix II
[0377] 64 - point DCT - 2 core
[0378] {
[0379] {aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa, aa}
[0380] {bf, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, bq, br, bs, bt, bu, bv, bw, bx, by, bz, ca, cb, cc, cd, ce, cf, cg, ch, ci, cj, ck, -ck, -cj, -ci, -ch, -cg, -cf, -ce, -cd, -cc, -cb, -ca, -bz, -by, -bx, -bw, -bv, -bu, -bt, -bs, -br, -bq, -bp, -bo, -bn, -bm, -bl, -bk, -bj, -bi, -bh, -bg, -bf}
[0381] {ap,aq,ar,as,at,au,av,aw,ax,ay,az,ba,bb,bc,bd,be,-be,-bd,-bc,-bb,-ba,-az,-ay,-ax,-aw,-av,-au,-at,-as,-ar,-aq,-ap ,-ap,-aq,-ar,-as,-at,-au,-av,-aw,-ax,-ay,-az,-ba,-bb,-bc,-bd,-be,be,bd,bc,bb,ba,az,ay,ax,aw,av,au,at,as,ar,aq,ap}
[0382] {bg,bj,bm,bp,bs,bv,by,cb,ce,ch,ck,-ci,-cf,-cc,-bz,-bw,-bt,-bq,-bn,-bk,-bh,-bf,-bi,-bl,-bo,-br,-bu,-bx,-ca,-cd,-cd g,-cj,cj,cg,cd,ca,bx,bu,br,bo,bl,bi,bf,bh,bk,bn,bq,bt,bw,bz,cc,cf,ci,-ck,-ch,-ce,-cb,-by,-bv,-bs,-bp,-bm,-bj,-bg}}
[0383] {ah,ai,aj,ak,al,am,an,ao,-ao,-an,-am,-al,-ak,-aj,-ai,-ah,-ah,-ai,-aj,-ak,-al,-am,-an,-ao,ao,an,am,al,ak,aj,ai,ah ,ah,ai,aj,ak,al,am,an,ao,-ao,-an,-am,-al,-ak,-aj,-ai,-ah,-ah,-ai,-aj,-ak,-al,-am,-an,-ao,ao,an,am,al,ak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w,-bz,cc,-cf,ci,ck,-ch,ce,-cb,by,-bv,bs,-bp,bm,-bj,bg -bg,bj,-bm,bp,-bs,bv,-by,cb,-ce,ch,-ck,-ci,cf,-cc,bz,-bw,bt,-bq,bn,-bk,bh,-bf,bi,-bl,bo,-br,bu,-bx,ca,-cd,cg,-cj}}
[0441] {be,-bd,bc,-bb,ba,-az,ay,-ax,aw,-av,au,-at,as,-ar,aq,-ap,ap,-aq,ar,-as,at,-au,av,-aw,ax,-ay,az,-ba,bb,-bc,bd,-be,-be,bd,-bc,bb,-ba,az,-ay,ax,-aw,av,-au,at,-as,ar,-aq,ap,-ap,aq,-ar,as,-at,au,-av,aw,-ax,ay,-az,ba,-bb,bc,-bd,be}
[0442] {ck,-cj,ci,-ch,cg,-cf,ce,-cd,cc,-cb,ca,-bz,by,-bx,bw,-bv,bu,-bt,bs,-br,bq,-bp,bo,-bn,bm,-bl,bk,-bj,bi,-bh,bg,-bf,bf,-bg,bh,-bi,bj,-bk,bl,-bm,bn,-bo,bp,-bq,br,-bs,bt,-bu,bv,-bw,bx,-by,bz,-ca,cb,-cc,cd,-ce,cf,-cg,ch,-ci,cj,-ck}
[0443] }
[0444] Among them,
[0445] {aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,au,av,aw,ax,ay,az,ba,bb,bc,bd,be,bf,bg,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br,bs,bt,bu,bv,bw,bx,by,bz,ca,cb,cc,cd,ce,cf,cg,ch,ci,cj,ck} = {64,83,36,89,75,50,18,90,87,80,70,57,43,25,9,90,90,88,85,82,78,73,67,61,54,46,38,31,22,13,4,91,90,90,90,88,87,86,84,83,81,79,77,73,71,69,65,62,59,56,52,48,44,41,37,33,28,24,20,15,11,7,2}
[0446] Appendix III
[0447] 4-point DST-7
[0448] {a, b, c, d}
[0449] {c, c, 0, -c}
[0450] {d, -a, -c, b}
[0451] {b, -d, c, -a}
[0452] where {a, b, c, d} = {29, 55, 74, 84}
[0453] 8-point DST-7:
[0454] {a, b, c, d, e, f, g, h,}
[0455] {c, f, h, e, b, -a, -d, -g,}
[0456] {e, g, b, -c, -h, -d, a, f,}
[0457] {g, c, -d, -f, a, h, b, -e,}
[0458] {h, -a, -g, b, f, -c, -e, d,}
[0459] {f, -e, -a, g, -d, -b, h, -c,}
[0460] {d, -h, e, -a, -c, g, -f, b,}
[0461] {b, -d, f, -h, g, -e, c, -a,}
[0462] where {a, b, c, d, e, f, g, h} = {17, 32, 46, 60, 71, 78, 85, 86}
[0463] 16-point DST-7
[0464] {a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p,}
[0465] {c, f, i, l, o, o, l, i, f, c, 0, -c, -f, -i, -l, -o,}
[0466] {e, j, o, m, h, c, -b, -g, -l, -p, -k, -f, -a, d, i, n,}
[0467] {g, n, l, e, -b, -i, -p, -j, -c, d, k, o, h, a, -f, -m,}
[0468] {i,o,f,-c,-l,-l,-c,f,o,i,0,-i,-o,-f,c,l,}
[0469] {k,k,0,-k,-k,0,k,k,0,-k,-k,0,k,k,0,-k,}
[0470] {m,g,-f,-n,-a,l,h,-e,-o,-b,k,i,-d,-p,-c,j,}
[0471] {o,c,-l,-f,i,i,-f,-l,c,o,0,-o,-c,l,f,-i,}
[0472] {p,-a,-o,b,n,-c,-m,d,l,-e,-k,f,j,-g,-i,h,}
[0473] {n,-e,-i,j,d,-o,a,m,-f,-h,k,c,-p,b,l,-g,}
[0474] {l,-i,-c,o,-f,-f,o,-c,-i,l,0,-l,i,c,-o,f,}
[0475] {j,-m,c,g,-p,f,d,-n,i,a,-k,l,-b,-h,o,-e,}
[0476] {h,-p,i,-a,-g,o,-j,b,f,-n,k,-c,-e,m,-l,d,}
[0477] {f,-l,o,-i,c,c,-i,o,-l,f,0,-f,l,-o,i,-c,}
[0478] {d,-h,l,-p,m,-i,e,-a,-c,g,-k,o,-n,j,-f,b,}
[0479] {b,-d,f,-h,j,-l,n,-p,o,-m,k,-i,g,-e,c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d} = {84,74,55,29}
[0521] 8-point DCT-8:
[0522] {a, b, c, d, e, f, g, h}
[0523] {b, e, h, -g, -d, -a, -c, -f}
[0524] {c, h, -e, -a, -f, g, b, d}
[0525] {d, -g, -a, -h, c, e, -f, -b}
[0526] {e, -d, -f, c, g, -b, -h, a}
[0527] {f, -a, g, e, -b, h, d, -c}
[0528] {g, -c, b, -f, -h, d, -a, e}
[0529] {h, -f, d, -b, a, -c, e, -g}
[0530] Among them, {a, b, c, d, e, f, g, h} = {86, 85, 78, 71, 60, 46, 32, 17}
[0531] 16 - point DCT - 8
[0532] {a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p}
[0533] {b, e, h, k, n, 0, -n, -k, -h, -e, -b, -b, -e, -h, -k, -n}
[0534] {c, h, m, -p, -k, -f, -a, -e, -j, -o, n, i, d, b, g, l}
[0535] {d, k, -p, -i, -b, -f, -m, n, g, a, h, o, -l, -e, -c, -j}
[0536] {e, n, -k, -b, -h, 0, h, b, k, -n, -e, -e, -n, k, b, h}
[0537] {f, 0, -f, -f, 0, f, f, 0, -f, -f, 0, f, f, 0, -f, -f}
[0538] {g, -n, -a, -m, h, f, -o, -b, -l, i, e, -p, -c, -k, j, d}
[0539] {h, -k, -e, n, b, 0, -b, -n, e, k, -h, -h, k, e, -n, -b}
[0540] {i, -h, -j, g, k, -f, -l, e, m, -d, -n, c, o, -b, -p, a,}
[0541] {j, -e, -o, a, -n, -f, i, k, -d, -p, b, -m, -g, h, l, -c,}
[0542] {k, -b, n, h, -e, 0, e, -h, -n, b, -k, -k, b, -n, -h, e,}
[0543] {l, -b, i, o, -e, f, -p, -h, c, -m, -k, a, -j, -n, d, -g,}
[0544] {m, -e, d, -l, -n, f, -c, k, o, -g, b, -j, -p, h, -a, i,}
[0545] {n, -h, b, -e, k, 0, -k, e, -b, h, -n, -n, h, -b, e, -k,}
[0546] {o, -k, g, -c, b, -f, j, -n, -p, l, -h, d, -a, e, -i, m,}
[0547] {p, -n, l, -j, h, -f, d, -b, a, -c, e, -g, i, -k, m, -o,}
[0548] Among them, {a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p} = {90, 89, 87, 83, 81, 77, 72, 66, 62, 56, 49, 41, 33, 25, 17, 9} 32-point DCT-8
[0549] {a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E, F,}
[0550] {b, e, h, k, n, q, t, w, z, C, F, -E, -B, -y, -v, -s, -p, -m, -j, -g, -d, -a, -c, -f, -i, -l, -o, -r, -u, -x, -A, -D,}
[0551] {c, h, m, r, w, B, 0, -B, -w, -r, -m, -h, -c, -c, -h, -m, -r, -w, -B, 0, B, w, r, m, h, c, c, h, m, r, w, B,}
[0552] {d,k,r,y,F,-A,-t,-m,-f,-b,-i,-p,-w,-D,C,v,o,h,a,g,n,u,B,-E,-x,-q,-j,-c,-e,-l,-s,-z,}
[0553] {e,n,w,F,-y,-p,-g,-c,-l,-u,-D,A,r,i,a,j,s,B,-C,-t,-k,-b,-h,-q,-z,E,v,m,d,f,o,x,}
[0554] {f,q,B,-A,-p,-e,-g,-r,-C,z,o,d,h,s,D,-y,-n,-c,-i,-t,-E,x,m,b,j,u,F,-w,-l,-a,-k,-v,}
[0555] {g,t,0,-t,-g,-g,-t,0,t,g,g,t,0,-t,-g,-g,-t,0,t,g,g,t,0,-t,-g,-g,-t,0,t,g,g,t,}
[0556] {h,w,-B,-m,-c,-r,0,r,c,m,B,-w,-h,-h,-w,B,m,c,r,0,-r,-c,-m,-B,w,h,h,w,-B,-m,-c,-r,}
[0557] {i,z,-w,-f,-l,-C,t,c,o,F,-q,-a,-r,E,n,d,u,-B,-k,-g,-x,y,h,j,A,-v,-e,-m,-D,s,b,p,}
[0558] {j,C,-r,-b,-u,z,g,m,F,-o,-e,-x,w,d,p,-E,-l,-h,-A,t,a,s,-B,-i,-k,-D,q,c,v,-y,-f,-n,}
[0559] {k,F,-m,-i,-D,o,g,B,-q,-e,-z,s,c,x,-u,-a,-v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-w,-w,c,-r,-B,h,-m,0,m,-h,B,r,-c,w,w,-c,r,B,-h,m,}
[0572] {x,-f,m,-E,-q,b,-t,-B,j,-i,A,u,-c,p,F,-n,e,-w,-y,g,-l,D,r,-a,s,C,-k,h,-z,-v,d,-o,}
[0573] {y,-i,h,-x,-z,j,-g,w,A,-k,f,-v,-B,l,-e,u,C,-m,d,-t,-D,n,-c,s,E,-o,b,-r,-F,p,-a,q,}
[0574] {z,-l,c,-q,E,u,-g,h,-v,-D,p,-b,m,-A,-y,k,-d,r,-F,-t,f,-i,w,C,-o,a,-n,B,x,-j,e,-s,}
[0575] {A,-o,c,-j,v,F,-t,h,-e,q,-C,-y,m,-a,l,-x,-D,r,-f,g,-s,E,w,-k,b,-n,z,B,-p,d,-i,u,}
[0576] {B,-r,h,-c,m,-w,0,w,-m,c,-h,r,-B,-B,r,-h,c,-m,w,0,-w,m,-c,h,-r,B,B,-r,h,-c,m,-w,}
[0577] {C,-u,m,-e,d,-l,t,-B,-D,v,-n,f,-c,k,-s,A,E,-w,o,-g,b,-j,r,-z,-F,x,-p,h,-a,i,-q,y,}
[0578] {D,-x,r,-l,f,-a,g,-m,s,-y,E,C,-w,q,-k,e,-b,h,-n,t,-z,F,B,-v,p,-j,d,-c,i,-o,u,-A,}
[0579] {E, -A, w, -s, o, -k, g, -c, b, -f, j, -n, r, -v, z, -D, -F, B, -x, t, -p, l, -h, d, -a, e, -i, m, -q, u, -y, C,}
[0580] {F, -D, B, -z, x, -v, t, -r, p, -n, l, -j, h, -f, d, -b, a, -c, e, -g, i, -k, m, -o, q, -s, u, -w, y, -A, C, -E,}
[0581] Among them, {a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E, F} = {90, 90, 89, 88, 88, 86, 85, 84, 82, 80, 78, 77, 74, 72, 68, 66, 63, 60, 56, 53, 50, 45, 42, 38, 34, 30, 26, 21, 17, 13, 9, 4}
Claims
1. A video decoding method, characterized in that: include: Decoding information of a transform block TB from an encoded video bitstream, the encoding information indicating an area of the TB to which a secondary transform is applied, the area to which the secondary transform is applied comprising a first sub-area and a second sub-area, the first sub-area having a transform coefficient calculated by the secondary transform, and the second sub-area being a return-to-zero area; When it is determined that an adjacent transform coefficient of a current transform coefficient in the TB is located in the second sub-region and the current transform coefficient is not in the second sub-region, determining a context value of a syntax element of the current transform coefficient according to a default value of a syntax element of the adjacent transform coefficient, wherein the default value of the syntax element of the adjacent transform coefficient is zero; as well as The syntax elements of the current transform coefficient are determined by entropy decoding using context values of the syntax elements of the current transform coefficient, and samples in the TB are reconstructed based on the current transform coefficient.
2. The method according to claim 1, characterized in that: The current transform coefficient in the TB is one of a plurality of transform coefficients in a first coefficient group CG, a first CG flag of the first CG indicating whether at least one of the plurality of transform coefficients is a non-zero transform coefficient; A second CG including transform coefficients is pre-entropy decoded and is adjacent to the first CG, wherein a second CG flag indicates whether at least one of a plurality of transform coefficients in the second CG is a non-zero transform coefficient; and The method further comprises: determining a position of the second CG; and When it is determined that the second CG is located in the second sub-area, the context value of the first CG flag is derived based on a default value of the second CG flag of the second CG, wherein the default value of the second CG flag of the second CG is zero.
3. The method according to claim 1, characterized in that The current transform coefficient in the TB is one of a plurality of transform coefficients in a first CG, and a first CG flag of the first CG indicates whether at least one of the plurality of transform coefficients is a non-zero transform coefficient; A second CG includes a first transform coefficient and a second transform coefficient, the second CG is pre-entropy decoded and is adjacent to the first CG, wherein the second CG flag indicates whether at least one of the plurality of transform coefficients in the second CG is a non-zero transform coefficient; and The method further comprises: determining a position of the second CG; and When a portion of the second CG including the second transform coefficient is located in the second sub-region and the first transform coefficient is a non-zero transform coefficient, a context value of the first CG flag is derived based on the non-zero transform coefficient in the second CG.
4. The method according to claim 1, characterized in that: Further including: determining whether the current transform coefficient is located in the second sub-region; When it is determined that the current transform coefficient is located in the second sub-region, determining that a syntax element of the current transform coefficient is not signaled and is zero; as well as When it is determined that the current transform coefficient is not located in the second sub-region, the determining whether the adjacent transform coefficient is located in the second sub-region is performed.
5. The method according to any one of claims 1 to 4, characterized in that: The syntax element of the current transform coefficient indicates one of: whether the current transform coefficient is a non-zero transform coefficient; the parity of the current transform coefficient; whether the current transform coefficient is greater than 2; and whether the current transform coefficient is greater than 4.
6. A method for video decoding, characterized in that: include: Decoding the encoding information of the transform block TB from the encoded video bit stream; Determining whether to perform a secondary transform on a first region of the TB based on the encoding information, the first region including a first sub-region and a second sub-region, the first sub-region having a transform coefficient calculated by the secondary transform, and the second sub-region being a return-to-zero region; as well as In response to determining that the secondary transform is performed on a first region of the TB, when deriving context values of syntax elements of current transform coefficients of the TB for entropy decoding, transform coefficients in a second region in the TB are regarded as zero, and syntax elements of transform coefficients in the second sub-region and the second region are determined to be default values of zero, and the second region is outside the first region.
7. The method according to claim 6, characterized in that Further including: Based on the first region, a size and a position of a coefficient unit including a plurality of transform coefficients in the TB are determined, and transform coefficients outside the coefficient unit are regarded as zero.
8. The method according to claim 7, characterized in that The first region is an upper left 8×8 region in the TB, the coefficient unit is the first region, and the second region is adjacent to the upper left 8×8 region.
9. The method according to claim 8, characterized in that The first sub-region is an upper left 4×4 region in the TB, the coefficient unit is the first sub-region in the first region, and transform coefficients in a combined region including the second region and the second sub-region are regarded as zero.
10. The method according to claim 7, characterized in that The first region is an upper left 4×4 region in the TB, the coefficient unit is the first region, and the second region is adjacent to the upper left 4×4 region.
11. A video encoding method, characterized in that: include: Determine encoding information of a transform block TB, the encoding information indicating an area of the TB to which a secondary transform is applied, the area to which the secondary transform is applied includes a first sub-area and a second sub-area, the first sub-area has a transform coefficient calculated by the secondary transform, and the second sub-area is a return-to-zero area; When it is determined that an adjacent transform coefficient of a current transform coefficient in the TB is located in the second sub-region and the current transform coefficient is not in the second sub-region, determining a context value of a syntax element of the current transform coefficient according to a default value of a syntax element of the adjacent transform coefficient, wherein the default value of the syntax element of the adjacent transform coefficient is zero; as well as The syntax element of the current transform coefficient is determined by performing entropy coding using a context value of the syntax element of the current transform coefficient.
12. A video encoding method, characterized in that: include: Determine whether to perform a secondary transform on a first area of a transform block TB, the first area includes a first sub-area and a second sub-area, the first sub-area has a transform coefficient calculated by the secondary transform, and the second sub-area is a zero-return area; wherein, in response to determining that the secondary transform is performed on the first area of the TB, when deriving a context value of a syntax element of a current transform coefficient of the TB for entropy coding, the transform coefficient in the second area in the TB is regarded as zero, and the syntax elements of the transform coefficient in the second sub-area and the second area are determined to be a default value of zero, and the second area is outside the first area.
13. A video decoding device, characterized in that: The method comprises a processing circuit configured to execute the method according to any one of claims 1 to 10.
14. A video encoding device, characterized in that: comprising a processing circuit configured to perform the method of claim 11 or 12.
15. A non-volatile computer readable medium, characterized in that: The device is used for storing instructions, and when the instructions are executed by a computer for video encoding or decoding, the computer executes the method according to any one of claims 1 to 12.
16. A method for processing a video stream, characterized in that: The video code stream is generated according to the encoding method according to claim 11 or 12, or is decoded based on the decoding method according to any one of claims 1 to 10.
