Method, device and program medium for decoding and processing video code stream

By receiving a first data block including the first transform coefficient in the encoded video code stream of video data, and performing entropy decoding on these symbol values ​​based on the context information, and derive context information using the co-address transform coefficients and the weighted average values ​​of the DC transform coefficients of multiple adjacent data blocks, the problem of high-resolution video bandwidth and storage space requirements in the prior art is solved, and efficient video encoding and improved video quality are achieved.

CN119697390APending Publication Date: 2025-03-25TENCENT AMERICA LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411850920.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-01-11
Filing Date
2022-01-28
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

When existing video encoding technology processes high-resolution video, bandwidth and storage space are required, and lossy compression may lead to information loss and affect video quality.

Method used

The context information is derived using the weighted average of the co-address transform coefficients and the DC transform coefficients of the plurality of adjacent data blocks by receiving a first data block including the first transform coefficients in the encoded video stream of the video data and performing entropy decoding on the symbol values ​​based on the context information.

Benefits of technology

It effectively reduces the number of bits required for decoding video data, improves video encoding efficiency, reduces bandwidth and storage space requirements, and reduces information loss and improves video quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119697390A_ABST
    Figure CN119697390A_ABST
Patent Text Reader

Abstract

The invention provides a method and a device for decoding and processing a video code stream, and a program medium. The method comprises the following steps: receiving a first data block comprising a first transformation coefficient from an encoded video code stream of video data; and entropy decoding is performed on the symbol value of the first transformation coefficient based on context information, the context information is derived based on the symbol value of a second transformation coefficient in a second data block in the video data, the second data block and the first data block are co-located, and co-location means that two data blocks in different channels are located at the same spatial position; and the context information is derived based on a weighted average of symbol values corresponding to DC transform coefficients in a plurality of adjacent data blocks of the first data block, the weight depending on a length of an intersection of the first data block and each adjacent data block.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of an actively modified version of a patent application with an application date of January 28, 2022, Chinese patent application number 202280003873.0, and invention name “Method, device and program medium for decoding video data”. Technical Field

[0002] The present disclosure describes a set of advanced video coding techniques. More specifically, the disclosed techniques relate to implementing entropy encoding and decoding of symbol values ​​of transform coefficients. Background Art

[0003] The background description provided herein is for the purpose of presenting the present disclosure in general. The extent to which the work of the presently named inventors described in this background section and in various aspects of this specification is performed does not indicate that it qualifies as prior art at the time of filing this application, and it is never expressly or impliedly admitted that it is prior art to the present disclosure.

[0004] Video encoding and decoding may be performed using inter-picture prediction with motion compensation. An uncompressed digital video may include a series of pictures, each picture having a spatial size of, for example, 1920×1080 luminance samples and associated full or subsampled chrominance samples. The series of pictures may have a fixed or variable picture rate (alternatively referred to as a frame rate) of, for example, 60 pictures per second or 60 frames per second. For streaming or data processing, uncompressed video has specific bit rate requirements. For example, a video with a pixel resolution of 1920×1080, a frame rate of 60 frames per second, and a chrominance subsampling of 4:2:0 at 8 bits per pixel per color channel requires a bandwidth of nearly 1.5 Gbit / s. One hour of such video requires more than 600 GB of storage space.

[0005] One purpose of video encoding and decoding can be to reduce redundancy in an uncompressed input video signal by compression. Compression can help reduce the bandwidth and / or storage space requirements mentioned above, in some cases by two orders of magnitude or more. Lossless compression and lossy compression and their combinations can be used. Lossless compression refers to a technique that can reconstruct an exact copy of the original signal from the compressed original signal through a decoding process. Lossy compression refers to the following encoding / decoding process: the original video information is not completely preserved during encoding and cannot be completely restored during decoding. When lossy compression is used, the reconstructed signal may be different from the original signal, but the distortion between the original signal and the reconstructed signal is small enough to make the reconstructed signal usable for the intended application, despite the loss of some information. In the case of video, lossy compression is widely used in many applications. The amount of distortion that can be tolerated depends on the application. For example, users of some consumer video streaming applications can tolerate higher distortion than users of movie or television broadcast applications. The compression rate achievable by a specific encoding algorithm can be selected or adjusted to reflect various distortion tolerances: higher tolerable distortion generally allows the encoding algorithm to produce higher losses and higher compression rates.

[0006] Video encoders and decoders may utilize techniques and steps from several broad categories including, for example, motion compensation, Fourier transforms, quantization, and entropy coding.

[0007] Video codec techniques may include a technique known as intra-coding. In intra-coding, sample values ​​are represented without reference to samples or other data from previously reconstructed reference pictures. In some video codecs, pictures are spatially subdivided into blocks of samples. When all blocks of samples are encoded in intra-mode, the picture may be referred to as an intra-picture. Intra-pictures and their derivatives (e.g., independent decoder refresh pictures) can be used to reset the decoder state and can therefore be used as the first picture in an encoded video stream and video session, or as a still image. The samples of the block after intra-prediction can then be transformed into the frequency domain, and the transform coefficients so generated can be quantized before entropy coding. Intra-prediction represents a technique that minimizes sample values ​​in the pre-transform domain. In some cases, the smaller the DC value after the transform and the smaller the AC coefficient, the fewer bits are required to represent the block after entropy coding at a given quantization step size.

[0008] Traditional intra-frame coding, such as known from coding techniques such as MPEG-2, does not use intra-frame prediction. However, some newer video compression techniques include techniques that attempt to encode / decode blocks based on surrounding sample data and / or metadata obtained, for example, during spatially adjacent encoding and / or decoding, that precede the data block being intra-frame encoded / decoded in decoding order. Such techniques are hereinafter referred to as "intra-frame prediction" techniques. It should be noted that, at least in some cases, intra-frame prediction uses only reference data from the current picture being reconstructed, and does not use reference data from other reference pictures.

[0009] Intra-frame prediction can take many different forms. When more than one such technique can be used in a given video coding technique, the technique in use may be referred to as an intra-frame prediction mode. One or more intra-frame prediction modes may be provided in a particular codec. In some cases, a mode may have sub-modes and / or may be associated with various parameters, and the mode / sub-mode information and the intra-frame coding parameters of a video block may be encoded separately or jointly contained in a mode codeword. Which codeword is used for a given mode, sub-mode, and / or parameter combination affects the coding efficiency gain through intra-frame prediction, and therefore affects the entropy coding technique used to convert the codeword into a bitstream.

[0010] H.264 introduced a certain intra-frame prediction mode, which was improved in H.265 and further improved in newer coding technologies such as the Joint Exploration Model (JEM), Next Generation Video Coding (VVC), and Benchmark Set (BMS). Typically, for intra-frame prediction, the values ​​of neighboring samples that have become available can be used to form a prediction block. For example, the available values ​​of a particular set of neighboring samples along a certain direction and / or line can be copied to the prediction block. A reference to the direction used can be encoded in the bitstream, or it can be predicted itself.

[0011] refer to Figure 1A , a subset of 9 prediction directions specified in the 33 possible intra-frame prediction directions of H.265 (corresponding to the 33 angular modes of the 35 intra-frame modes specified in H.265) is depicted at the bottom right. The point (101) where the arrows converge represents the sample being predicted. The arrows represent the directions used by the neighboring samples to predict the sample at 101. For example, arrow (102) indicates that sample (101) is predicted from one or more neighboring samples at a 45 degree angle to the horizontal direction at the top right. Similarly, arrow (103) indicates that sample (101) is predicted from one or more neighboring samples at a 22.5 degree angle to the horizontal direction at the bottom left of sample (101).

[0012] Still reference Figure 1A, a square block (104) of 4×4 samples is depicted in the upper left (indicated by the bold dashed line). The square block (104) includes 16 samples, each of which is labeled with "S", 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 and X dimensions. Since the size of the block is 4×4 samples, S44 is located in the lower right corner. Reference samples are also shown that follow a similar numbering scheme. The reference samples are labeled with R, their Y position (e.g., row index) and X position (column index) relative to the block (104). In H.264 and H.265, prediction samples adjacent to the block being reconstructed are used.

[0013] The intra picture prediction of block 104 may start by copying reference sample values ​​from neighboring samples according to a signaled prediction direction. For example, assuming that the encoded video code stream includes signaling indicating the prediction direction of arrow (102) for this block 104, that is, predicting samples from one or more prediction samples at the top right and at a 45 degree angle to the horizontal direction. In this case, samples S41, S32, S23, and S14 are predicted from the same reference sample R05. Sample S44 is then predicted from reference sample R08.

[0014] In some cases, the values ​​of multiple reference samples may be combined, such as by interpolation, to compute the reference sample; in particular, when the directions do not divide equally by 45 degrees.

[0015] As video coding technology continues to develop, the number of possible directions increases. In H.264 (2003), for example, nine different directions can be used for intra-frame prediction. In H.265 (2013), this increased to 33 directions, and at the time of this disclosure, JEM / VVC / BMS can support up to 65 directions. Experimental studies have been conducted to help identify the most appropriate intra-frame prediction directions, and some techniques in entropy coding can be used to encode those most appropriate directions with a small number of bits, accepting a certain bit cost for the direction. In addition, the direction itself can sometimes be predicted from the neighboring directions used in the intra-frame prediction of decoded neighboring blocks.

[0016] Figure 1B A schematic diagram (180) is shown depicting 65 intra prediction directions according to JEM to illustrate the increase in the number of prediction directions in various encoding techniques developed over time.

[0017] The manner in which the bits representing the intra-prediction direction are mapped to the prediction direction in the coded video bitstream may vary from one video coding technique to another; for example, it may range from a simple direct mapping of the prediction direction to the intra-prediction mode, to a codeword, to a complex adaptive scheme involving the most probable mode, and similar techniques. However, in all cases, there may be certain intra-prediction directions that are statistically less likely to occur in the video content than certain other directions. Since the goal of video compression is to reduce redundancy, in a well-designed video coding technique, those less likely directions may be represented by more bits than more likely directions.

[0018] Inter-picture prediction or inter-prediction may be based on motion compensation. In motion compensation, sample data from a previously reconstructed picture or portion thereof (reference picture) may be used to predict a newly reconstructed picture or picture portion (e.g., block) 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, with the third dimension indicating the reference picture being used (similar to the time dimension).

[0019] In some video compression techniques, the current MV applicable to a region of sample data may be predicted based on other MVs, for example, based on other MVs related to another region of sample data that is spatially adjacent to the region being reconstructed and that precede the current MV in decoding order. This can greatly reduce the total amount of data required to encode the MV by eliminating redundancy in the related MVs, thereby improving compression efficiency. MV prediction can work effectively, for example, because when encoding an input video signal obtained from a camera (called natural video), there is a statistical probability that a larger area than the area where a single MV applies moves in a similar direction in the video sequence, so in some cases, similar motion vectors derived from MVs of neighboring areas can be used to predict the larger area. This makes the actual MV for a given area similar or identical to the MV predicted from the surrounding MVs. Further, after entropy coding, the MV can be represented with fewer bits than when the MV is encoded directly (rather than predicted from neighboring MVs). 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, the MV prediction itself may be lossy, for example due to rounding errors when computing the prediction from multiple surrounding MVs.

[0020] Various MV prediction mechanisms are described in H.265 / HEVC (ITU-T Recommendation H.265, "High Efficiency Video Coding", December 2016). In addition to the various MV prediction mechanisms specified by H.265, described below is a technique hereinafter referred to as "spatial merging".

[0021] Specifically, refer to Figure 2 , the current block (201) includes samples that have been found by the encoder during the motion search process, which can be predicted from a previous block of the same size that has been spatially offset. Instead of encoding the MV directly, the MV can be derived from metadata associated with one or more reference pictures, for example using the MV associated with any of the five surrounding samples labeled A0, A1 and B0, B1, B2 (corresponding to 202 to 206), which is derived from the nearest reference picture (in decoding order). In H.265, MV prediction can use predictors from the same reference picture used by neighboring blocks. Summary of the invention

[0022] The present application provides a method for decoding video data, the method comprising:

[0023] receiving a first data block including first transform coefficients from an encoded video stream of video data; and

[0024] performing entropy decoding on the symbol value of the first transform coefficient based on context information, wherein the context information is derived based on the symbol value of a second transform coefficient in a second data block in the video data, the second data block being co-located with the first data block, wherein the co-location means that two data blocks in different channels are located at the same spatial position;

[0025] And the context information is derived based on a weighted average of symbol values ​​corresponding to DC transform coefficients in multiple neighboring data blocks of the first data block, and the weight depends on the length of the intersection of the first data block and each of the neighboring data blocks.

[0026] An embodiment of the present application provides a device for decoding video data, the device comprising: a processing circuit, wherein the processing circuit is configured to execute the decoding method according to the embodiment of the present application.

[0027] The embodiment of the present application provides a method for processing a video code stream, and the video code stream can be decoded based on the decoding method described in the embodiment of the present application.

[0028] An embodiment of the present application provides a computer device, which includes a circuit, and the circuit is configured to implement the decoding method according to the embodiment of the present application.

[0029] An embodiment of the present application provides a computer-readable program medium, which stores computer code. When the computer code is executed by one or more processors, the computer code enables the one or more processors to implement the decoding method according to the embodiment of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Other features, properties, and various advantages of the disclosed subject matter will become more apparent from the following detailed description and the accompanying drawings, in which:

[0031] Figure 1A A schematic diagram of an exemplary subset of intra-prediction directional modes is shown.

[0032] Figure 1B A diagram of exemplary intra prediction directions is shown.

[0033] Figure 2 A schematic diagram of a current block and its surrounding spatial merging candidates for motion vector prediction in one example is shown.

[0034] Figure 3 A schematic illustration of a simplified block diagram of a communication system is shown according to an exemplary embodiment.

[0035] Figure 4 A schematic illustration of a simplified block diagram of a communication system is shown according to an exemplary embodiment.

[0036] Figure 5 A schematic illustration of a simplified block diagram of a video decoder according to an exemplary embodiment is shown.

[0037] Figure 6 A schematic illustration of a simplified block diagram of a video encoder according to an exemplary embodiment is shown.

[0038] Figure 7 A block diagram of a video encoder according to another exemplary embodiment is shown.

[0039] Figure 8 A block diagram of a video decoder according to another exemplary embodiment is shown.

[0040] Fig. 9 A directional intra prediction mode according to an exemplary embodiment of the present disclosure is shown.

[0041] Fig.10 A non-directional intra prediction mode according to an exemplary embodiment of the present disclosure is shown.

[0042] Fig.11 A recursive intra prediction mode according to an exemplary embodiment of the present disclosure is shown.

[0043] Fig.12 Transform block partitioning and scanning of an intra prediction block according to an exemplary embodiment of the present disclosure are shown.

[0044] Fig.13 Transform block partitioning and scanning of an inter prediction block according to an exemplary embodiment of the present disclosure are shown.

[0045] Fig.14 An exemplary line graph transformation (LGT) according to an exemplary embodiment of the present disclosure is shown.

[0046] Fig.15 Exemplary co-located transform coefficients, co-located sub-blocks, and co-located blocks according to exemplary embodiments of the present disclosure are shown.

[0047] Fig.16 Exemplary shared signaling according to exemplary embodiments of the present disclosure is shown.

[0048] Fig.17 A flow chart of a method according to an exemplary embodiment of the present disclosure is shown.

[0049] Fig.18 A schematic diagram of a computer system according to an exemplary embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0050] Figure 3 A simplified block diagram of a communication system (300) according to one 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 the example of , the first terminal device pair (310) and (320) can perform unidirectional data transmission. For example, the terminal device (310) can encode video data (for example, video data of 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 can be transmitted in the form of one or more encoded video code streams. The terminal device (320) can receive the encoded video data from the network (350), decode the encoded video data to restore the video picture, and display the video picture based on the restored video data. The unidirectional data transmission can be implemented in applications such as media services.

[0051] In another example, the communication system (300) includes a second terminal device pair (330) and (340) that performs bidirectional transmission of encoded video data, which can be implemented, for example, during a video conferencing application. For bidirectional data transmission, in one example, each of the terminal devices (330) and (340) can encode video data (e.g., video data of 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 picture, and can display the video picture on an accessible display device based on the restored video data.

[0052] exist Figure 3 In the example of, terminal device (310), terminal device (320), terminal device (330) and terminal device (340) can be implemented as a server, a personal computer and a smart phone, but the applicability of the basic principles of the present disclosure may not be limited to this. Embodiments of the present disclosure can be implemented in a desktop computer, a laptop computer, a tablet computer, a media player, a wearable computer, a dedicated video conferencing device, etc. Network (350) represents any number or type of network that transmits encoded video data between terminal devices (310), terminal devices (320), terminal devices (330) and terminal devices (340), including, for example, wired (wired) and / or wireless communication networks. The communication network (350) can exchange data in a circuit switching channel, a packet switching channel and / or other types of channels. Representative networks include telecommunication networks, local area networks, wide area networks and / or the Internet. For the purpose of this discussion, unless explicitly stated herein, the architecture and topology of the network (350) may be irrelevant to the operation of the present disclosure.

[0053] As examples of applications for the disclosed subject matter, Figure 4 The placement of the video encoder and the video decoder in a video streaming environment is shown. The disclosed subject matter is equally applicable to other video applications, including, for example, video conferencing, digital TV broadcasting, gaming, virtual reality, storing compressed video on digital media including CDs, DVDs, memory sticks, etc., and the like.

[0054] The video streaming system may include a video acquisition subsystem (413), which may include a video source (401), such as a digital camera, for creating an uncompressed video picture or image stream (402). In one example, the video picture stream (402) includes samples recorded by the digital camera of the video source 401. The video picture stream (402), which is depicted as a thick line to emphasize the high amount of data compared to the encoded video data (404) (or the encoded video bitstream), 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. The encoded video data (404) (or the encoded video bitstream (404)), depicted as thin lines to emphasize the lower data volume compared to the uncompressed video picture stream (402), can be stored on the streaming server (405) for future use, or directly stored in a downstream video device (not shown). One or more streaming client subsystems, such as Figure 4 The client subsystem (406) and the client subsystem (408) in the streaming server (405) 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 uncompressed output video picture stream (411) that can be presented on a display (412) (e.g., a display screen) or other presentation device (not depicted). The video decoder 410 can be configured to perform some or all of the various functions described in the present disclosure. In some streaming systems, the encoded video data (404), (407) and (409) (e.g., video bitstreams) can be encoded according to certain video encoding / compression standards. Examples of these standards include ITU-T Recommendation H.265. In one example, the video coding standard under development is informally referred to as Next Generation Video Coding (VVC). The disclosed subject matter may be used in the context of VVC and other video coding standards.

[0055] 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).

[0056] In the following, Figure 5A block diagram of a video decoder (510) according to any embodiment of the present disclosure is shown. The video decoder (510) may be included 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) in an example of FIG.

[0057] 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 may be decoded at a time, wherein the decoding of each encoded video sequence is independent of the other encoded video sequences. Each video sequence may be associated with multiple video frames or images. The encoded video sequence may be received from a channel (501), which may be a hardware / software link leading to a storage device storing the encoded video data or a streaming source transmitting the encoded video data. The receiver (531) may receive the encoded video data and other data, such as encoded audio data and / or auxiliary data streams that may be forwarded to their respective processing circuits (not depicted). The receiver (531) may separate the encoded video sequence from the other data. To prevent network jitter, a buffer memory (515) may be provided between the receiver (531) and the entropy decoder / parser (520) (hereinafter referred to as "parser (520)"). In some applications, the buffer memory (515) may be implemented as part of the video decoder (510). In other applications, the buffer memory (515) may be located outside the video decoder (510) and separate from the video decoder (510) (not depicted). In still other applications, a buffer memory (not depicted) may be provided outside the video decoder (510) for the purpose of, for example, preventing network jitter, and another additional buffer memory (515) may be provided inside the video decoder (510) for, for example, processing playback timing. When the receiver (531) receives data from a storage / forward device with sufficient bandwidth and controllability or from an isochronous network, the buffer memory (515) may not be required, or the buffer memory may be made smaller. For use on a traffic packet network such as the Internet, a buffer memory (515) of sufficient size may be required, and the size of the buffer memory (515) may be relatively large. Such a buffer memory may be implemented to have an adaptive size and may be implemented at least in part in an operating system or similar element (not depicted) external to the video decoder (510).

[0058] The video decoder (510) may include a parser (520) to reconstruct symbols (521) from the encoded video sequence. The categories of symbols include information for managing the operation of the video decoder (510) and potential information for controlling a presentation device such as a display (512) (e.g., a display screen), which may or may not be an integral part of the electronic device (530), but may be coupled to the electronic device (530), such as Figure 5 As shown. The control information for the rendering device may be in the form of a Supplemental Enhancement Information (SEI message) or a Video Usability Information (VUI) parameter set fragment (not depicted). The parser (520) may parse / entropy decode the encoded video sequence received by the parser (520). The entropy encoding of the encoded 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, etc. The parser (520) may extract a subgroup parameter set for at least one subgroup of the subgroups of pixels in the video decoder from the encoded video sequence based on at least one parameter corresponding to the subgroup. 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), etc. The parser (520) may also extract information from the encoded video sequence, such as transform coefficients (eg, Fourier transform coefficients), quantizer parameter values, motion vectors, etc.

[0059] The parser (520) may perform entropy decoding / parsing operations on the video sequence received from the buffer memory (515), thereby creating symbols (521).

[0060] Depending on the type of coded video picture or portion of coded video picture (e.g., inter-picture and intra-picture, inter-block and intra-block) and other factors, the reconstruction of the symbol (521) may involve a number of different processing or functional units. The units involved and the manner in which the units are involved may be controlled by the parser (520) through subgroup control information parsed from the coded video sequence. For simplicity, such subgroup control information flow between the parser (520) and the various processing or functional units described below is not depicted.

[0061] In addition to the functional blocks already mentioned, the video decoder (510) can be conceptually subdivided into a number of functional units as described below. In actual implementations operating under commercial constraints, many of these functional units interact closely with each other and may be at least partially integrated with each other. However, for the purpose of clearly describing the various functions of the disclosed subject matter, the conceptual subdivision into multiple functions is adopted in the following of this disclosure.

[0062] The first unit may include a sealer / inverse transform unit (551). The sealer / inverse transform unit (551) may receive quantized transform coefficients as symbols (521) and control information from the parser (520), including information indicating which type of inverse transform to use, block size, quantization factors / parameters, quantization scaling matrices, etc. The sealer / inverse transform unit (551) may output a block including sample values, which may be input into an aggregator (555).

[0063] In some cases, the output samples of the scaler / inverse transform (551) may belong to an intra-coded block; that is, a block that does not use prediction information from a previously reconstructed picture, but may use prediction information from a previously reconstructed portion of the current picture. Such prediction information may be provided by an intra-picture prediction unit (552). In some cases, the intra-picture prediction unit (552) may use surrounding block information that has been reconstructed and stored in a current picture buffer (558) to generate a block of the same size and shape as the block being reconstructed. For example, the current picture buffer (558) buffers a partially reconstructed current picture and / or a fully reconstructed current picture. In some implementations, the aggregator (555) may add 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.

[0064] In other cases, the output samples of the scaler / inverse transform unit (551) may belong to a block that is inter-coded and potentially motion compensated. In this case, the motion compensated prediction unit (553) may access the reference picture memory (557) to extract samples for inter-picture prediction. After the extracted samples are motion compensated according to the symbols (521) belonging to the block, these samples may be added to the output of the scaler / inverse transform unit (551) by the aggregator (555) (the output of unit 551 may be referred to as residual samples or residual signals), thereby generating output sample information. The extraction of prediction samples by the motion compensated prediction unit (553) from the address in the reference picture memory (557) may be controlled by a motion vector, which may be provided to the motion compensated prediction unit (553) in the form of symbols (521), which may have, for example, an X component, a Y component (offset), and a reference picture component (time). Motion compensation may also include interpolation of sample values ​​retrieved from the reference picture memory (557) when using sub-sample accurate motion vectors, and may also be associated with motion vector prediction mechanisms, etc.

[0065] The output samples of the aggregator (555) may be subjected to 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 coded video sequence (also referred to as a coded video bitstream) and available to the loop filter unit (556) as symbols (521) from the parser (520), however, the video compression techniques may also be responsive to meta information obtained during decoding of a previous (in decoding order) portion of the coded picture or coded video sequence, as well as to previously reconstructed and loop filtered sample values. A variety of types of loop filters may be included as part of the loop filter unit 556 in various orders, as will be described in further detail below.

[0066] The output of the loop filter unit (556) may be a sample stream that may be output to a rendering device (512) and stored in a reference picture memory (557) for use in future inter-picture prediction.

[0067] Once fully reconstructed, certain coded pictures may be used as reference pictures for future inter-picture 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 reconstruction of a subsequent coded picture.

[0068] The video decoder (510) may perform decoding operations according to a predetermined video compression technique employed in a standard such as ITU-T H.265 Recommendation. The coded video sequence may conform to the syntax specified by the video compression technique or standard used in the sense that the coded 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. To conform to the standard, the complexity of the coded video sequence may be within a 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 defined by the Hypothetical Reference Decoder (HRD) specification and metadata of the HRD buffer management signaled in the coded video sequence.

[0069] In some exemplary embodiments, the receiver (531) may receive additional (redundant) data when receiving the encoded video. The additional data may be included as 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 take the form of, for example, temporal, spatial or signal-to-noise ratio (SNR) enhancement layers, redundant slices, redundant pictures, forward error correction codes, etc.

[0070] Figure 6 A block diagram of a video encoder (603) according to an exemplary embodiment of the present disclosure is shown. The video encoder (603) may be included in an electronic device (620). The electronic device (620) may further include a transmitter (640) (e.g., a transmission circuit). The video encoder (603) may be used to replace Figure 4 A video encoder (403) in an example.

[0071] The video encoder (603) can be used to obtain the video source (601) (not Figure 6 In an example of an electronic device (620) receiving video samples, a video source (601) can capture video images to be encoded by a video encoder (603). In another example, the video source (601) can be implemented as a part of the electronic device (620).

[0072] The video source (601) may provide a source video sequence in the form of a digital video sample stream to be encoded by a video encoder (603), 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 YCrCb, RGB, XYZ, ...), and any suitable sampling structure (e.g., YCrCb 4:2:0, YCrCb 4:4:4). In a media service system, the video source (601) may be a storage device capable of 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 or images that are given motion when viewed sequentially. The picture itself 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. A person of ordinary skill in the art may easily understand the relationship between pixels and samples. The following description focuses on the samples.

[0073] According to some exemplary embodiments, the video encoder (603) may encode and compress the pictures of the 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 constitutes a function of the controller (650). In some embodiments, the controller (650) may be functionally coupled to and control other functional units as described below. For simplicity, the coupling is not depicted 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...), picture size, picture group (GOP) layout, maximum motion vector search range, etc. The controller (650) may be configured to have other suitable functions that are related to the video encoder (603) optimized for a certain system design.

[0074] In some exemplary embodiments, the video encoder (603) may be configured to operate in an encoding loop. As an oversimplified description, in one example, 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, even if the embedded decoder 633 processes a video stream encoded by the source encoder 630 without entropy coding (because in the video compression techniques considered in the disclosed subject matter, any compression between the entropy-coded symbols and the encoded video code stream can be lossless). The reconstructed sample stream (sample data) is input to a reference picture memory (634). Since the decoding of the symbol stream produces a bit-accurate result that is independent of the decoder location (local or remote), the contents of the reference picture memory (634) also correspond bit-accurately 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 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, e.g. due to channel errors) is used to improve encoding quality.

[0075] The operation of the "local" decoder (633) may be similar to that described above in conjunction with Figure 5 The "remote" decoder of the video decoder (510) described in detail is identical. However, additional brief reference is made to Figure 5 , since the symbols are available and the entropy encoder (645) and the parser (520) are capable of losslessly encoding / decoding the symbols into the 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) in the encoder.

[0076] At this point, it can be observed that any decoder technology other than parsing / entropy decoding that can only exist in a decoder must also be present in a corresponding encoder in substantially the same functional form. For this reason, the disclosed subject matter sometimes focuses on decoder operations, which are combined with the decoding portion of the encoder. Therefore, the description of encoder technology can be simplified because encoder technology is mutually inverse to the decoder technology described comprehensively. Hereinafter, only in certain areas or aspects, a more detailed description of the encoder is provided.

[0077] During operation, in some exemplary implementations, the source encoder (630) may perform motion compensated predictive coding that predictively encodes an input picture by referencing one or more previously encoded pictures from a video sequence designated as "reference pictures." In this manner, the encoding engine (632) encodes the differences (or residuals) in color channels 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. The term "residual" and its adjective form "residual" may be used interchangeably.

[0078] The local video decoder (633) may decode the encoded video data of the picture that may be designated as the reference picture based on the symbol created by the source encoder (630). The operation of the encoding engine (632) may advantageously be a lossy process. When the encoded video data may be decoded at the video decoder ( Figure 6 When decoded from a local video decoder (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 far-end (remote) video decoder.

[0079] 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 be used as appropriate prediction references for the new picture. The predictor (635) may operate on a pixel block-by-pixel block basis 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 has prediction references taken from a plurality of reference pictures stored in the reference picture memory (634).

[0080] The controller (650) may manage encoding operations of the source encoder (630), including, for example, setting parameters and subgroup parameters for encoding video data.

[0081] 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.

[0082] The transmitter (640) can buffer the encoded video sequence created by the entropy encoder (645) in preparation for transmission over a communication channel (660), which can be a hardware / software link to a storage device that can store the encoded video data. The transmitter (640) can combine the encoded video data from the video encoder (603) with other data to be transmitted, such as encoded audio data and / or auxiliary data streams (source not shown).

[0083] 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:

[0084] 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 for different types of intra pictures, including, for example, independent decoder refresh ("IDR") pictures. Those of ordinary skill in the art are aware of these variations of I pictures and their corresponding applications and features.

[0085] 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.

[0086] Bidirectional predictive pictures (B pictures), which can be pictures that can be encoded and decoded using intra-frame prediction or inter-frame 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 to reconstruct a single block.

[0087] The source picture may typically be spatially subdivided into a plurality of coding blocks of samples (e.g., blocks of 4×4, 8×8, 4×8, or 16×16 samples), and encoded block by block. These blocks may be predictively encoded with reference to other (already encoded) blocks, which are determined by the coding allocation applied to the corresponding picture of the block. For example, blocks of an I picture may be non-predictively encoded, or blocks of an I picture may be predictively encoded (spatial prediction or intra-frame prediction) with reference to already encoded blocks of the same picture. Blocks of pixels of a P picture may be predictively encoded by spatial prediction with reference to a previously encoded reference picture or by temporal prediction. Blocks of a B picture may be predictively encoded by spatial prediction with reference to one or two previously encoded reference pictures or by temporal prediction. For other purposes, source pictures or intermediately processed pictures may be subdivided into other types of blocks. The division of coding blocks and other types of blocks may or may not follow the same approach, as described in further detail below.

[0088] 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.

[0089] In some exemplary embodiments, 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 temporal / spatial / SNR enhancement layers, other forms of redundant data such as redundant pictures and slices, SEI messages, VUI parameter set fragments, etc.

[0090] The captured video may be taken as a plurality of source pictures (video pictures) in a temporal sequence. Intra-picture prediction (often shortened to intra-prediction) exploits spatial correlations in a given picture, while inter-picture prediction exploits temporal or other correlations between pictures. For example, a particular picture being encoded / decoded may be 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.

[0091] In some exemplary embodiments, a bidirectional prediction technique may be used for inter-picture prediction. According to this bidirectional prediction technique, two reference pictures are used, such as a first reference picture and a second reference picture that precede the current picture in the video in decoding order (but may be in the past or future, respectively, in display order). A block in the current picture may be encoded by a first motion vector pointing to a first reference block in the first reference picture and a second motion vector pointing to a second reference block in the second reference picture. The block may be jointly predicted by a combination of the first reference block and the second reference block.

[0092] In addition, merge mode technology can be used for inter-picture prediction to improve coding efficiency.

[0093] According to some exemplary embodiments of the present disclosure, predictions such as inter-picture prediction and intra-picture prediction are performed in units of blocks. For example, a picture in a video picture sequence is divided into coding tree units (CTUs) for compression, and the CTUs in the picture may have the same size, such as 64×64 pixels, 32×32 pixels, or 16×16 pixels. Typically, a CTU may include three parallel coding tree blocks (CTBs): a luminance CTB and two chrominance CTBs. Each CTU may be recursively divided into one or more coding units (CUs) using a quadtree. For example, a 64×64 pixel CTU may be divided into a 64×64 pixel CU, or four 32×32 pixel CUs. Each of the one or more 32×32 blocks may be further divided into four 16×16 pixel CUs. In some exemplary embodiments, each CU may be analyzed during encoding to determine a prediction type for the CU among a plurality of prediction types, such as an inter prediction type or an intra prediction type. According to temporal and / or spatial predictability, the CU can be divided into one or more prediction units (PUs). Typically, each PU includes a luminance prediction block (PB) and two chrominance PBs. In one embodiment, the prediction operation in encoding (encoding / decoding) is performed in units of prediction blocks. The CU can be divided into PUs (or PBs of different color channels) in various spatial patterns. For example, a luminance or chrominance PB may include a matrix of values ​​(e.g., luminance values) for samples, such as 8×8 pixels, 16×16 pixels, 8×16 pixels, 16×8 pixels, etc.

[0094] Figure 7A diagram of a video encoder (703) according to another exemplary embodiment of the present disclosure is shown. The video encoder (703) is configured to receive a processed block (e.g., a prediction block) of sample values ​​within a current video picture in a sequence of video pictures and encode the processed block into an encoded picture that is part of an encoded video sequence. In an example, the video encoder (703) may be used instead of Figure 4 A video encoder (403) in an example.

[0095] For example, the video encoder (703) receives a matrix of sample values ​​for a processing block, such as a prediction block of 8×8 samples, etc. The video encoder (703) then uses, for example, rate-distortion optimization (RDO) to determine whether to use intra mode, inter mode, or bidirectional prediction mode to best encode the processing block. When it is determined that the processing block is encoded in intra mode, the video encoder (703) may use intra prediction techniques to encode the processing block into an encoded picture; and when it is determined that the processing block is encoded 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 exemplary embodiments, merge mode may be used as a sub-mode of inter-picture prediction, 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 exemplary embodiments, there may be a motion vector component applicable to the subject block. Therefore, the video encoder (703) may include a sub-mode that is not in Figure 7 Components explicitly shown in, such as a mode decision module for determining a prediction mode for a processing block.

[0096] exist Figure 7 In the example of FIG. 7 , the video encoder ( 703 ) includes Figure 7 The exemplary arrangement shown in FIG. 1 includes 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.

[0097] The inter-frame encoder (730) is configured 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 in display order), generate inter-frame prediction information (e.g., redundant information description according to an inter-frame coding technique, motion vectors, merge mode information), and calculate an inter-frame prediction result (e.g., a predicted block) based on the inter-frame prediction information using any suitable technique. In some examples, the reference picture is based on coded video information, using a video code embedded in the video codec. Figure 6The decoding unit 633 in the exemplary encoder 620 (eg Figure 7 The decoded reference picture is decoded by the residual decoder 728, as described in further detail below.

[0098] The intra encoder (722) is configured to receive samples of a current block (e.g., a processing block), compare the block with an encoded block in the same picture, and generate quantization coefficients after transformation, and in some cases also generate intra prediction information (e.g., intra prediction direction information according to one or more intra coding techniques). The intra encoder (722) can calculate an intra prediction result (e.g., a predicted block) based on the intra prediction information and a reference block in the same picture.

[0099] The general controller (721) can be configured to determine general control data and control other components of the video encoder (703) based on the general control data. In one example, the general controller (721) determines a prediction mode of a block and provides a control signal to a switch (726) based on the prediction mode. For example, when the prediction mode is an intra-frame mode, the general controller (721) controls the switch (726) to select an intra-frame mode result for use by the residual calculator (723), and controls the entropy encoder (725) to select intra-frame prediction information and include the intra-frame prediction information in the bitstream; and when the prediction mode of the block is an inter-frame mode, the general controller (721) controls the switch (726) to select an inter-frame prediction result for use by the residual calculator (723), and controls the entropy encoder (725) to select inter-frame prediction information and include the inter-frame prediction information in the bitstream.

[0100] The residual calculator (723) may be configured to calculate the difference (residual data) between the received block and the prediction result of the block selected from the intra encoder (722) or the inter encoder (730). The residual encoder (724) may be configured to encode the residual data to generate a transform coefficient. For example, the residual encoder (724) may be configured to transform the residual data from the spatial domain to the frequency domain to generate the transform coefficient. The transform coefficient is then subjected to quantization to obtain a quantized transform coefficient. In various exemplary embodiments, the video encoder (703) further includes a residual decoder (728). The residual decoder (728) is configured to perform an inverse transform and generate decoded residual data. The decoded residual data may be appropriately used by the intra encoder (722) and the inter encoder (730). For example, the inter encoder (730) may generate a decoded block based on the decoded residual data and the inter prediction information, and the intra encoder (722) may generate a decoded block based on the decoded residual data and the intra prediction information. The decoded blocks are appropriately processed to generate decoded pictures, and the decoded pictures may be buffered in a memory circuit (not shown) and used as reference pictures.

[0101] The entropy encoder (725) may be configured to format the code stream to include the encoded blocks, and to perform entropy encoding. The entropy encoder (725) may be configured to include various information in the code stream. For example, the entropy encoder (725) may be configured to include general control data, selected prediction information (e.g., intra-frame prediction information or inter-frame prediction information), residual information, and other suitable information in the code stream. When the block is encoded in the merge sub-mode of the inter-frame mode or the bidirectional prediction mode, the residual information may not be present.

[0102] Figure 8 A diagram of an exemplary video decoder (810) according to another embodiment of the present disclosure is shown. The video decoder (810) is configured to receive an encoded picture as part of an encoded video sequence and decode the encoded picture to generate a reconstructed picture. In one example, the video decoder (810) may be used instead of Figure 4 A video decoder (410) in an example of FIG.

[0103] exist Figure 8 In the example of FIG. 8 , the video decoder ( 810 ) includes Figure 8 The exemplary arrangement shown in FIG. 8 is 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.

[0104] The entropy decoder (871) may be configured to reconstruct certain symbols from the encoded picture, the symbols representing syntax elements constituting the encoded picture. Such symbols may include, for example, a mode for encoding a block (e.g., intra mode, inter mode, bidirectional prediction mode, merge submode, or another submode), prediction information (e.g., intra prediction information or inter prediction information) that may identify certain samples or metadata used by an intra decoder (872) or an inter decoder (880) for prediction, residual information in the form of, for example, quantized transform coefficients, and the like. In one example, when the prediction mode is an inter or bidirectional prediction mode, the inter prediction information is provided to an inter decoder (880); and when the prediction type is an intra prediction type, the intra prediction information is provided to an intra decoder (872). The residual information may be subjected to inverse quantization and provided to a residual decoder (873).

[0105] The inter-frame decoder (880) may be configured to receive the inter-frame prediction information and generate an inter-frame prediction result based on the inter-frame prediction information.

[0106] The intra decoder (872) may be configured to receive intra prediction information and generate a prediction result based on the intra prediction information.

[0107] The residual decoder (873) may be configured to perform inverse quantization to extract dequantized transform coefficients, and process the dequantized transform coefficients to transform the residual from the frequency domain to the spatial domain. The residual decoder (873) may also utilize certain control information (to include quantizer parameters (QP)) that may be provided by the entropy decoder (871) (data path not depicted as this is only low data volume control information).

[0108] The reconstruction module (874) may be configured to combine the residual output by the residual decoder (873) with the prediction result (which may be output by the inter-frame prediction module or the intra-frame prediction module, as appropriate) in the spatial domain to form a reconstructed block, which forms part of a reconstructed picture, and the reconstructed picture is part of the reconstructed video. It should be noted that other suitable operations such as deblocking operations may also be performed to improve visual quality.

[0109] 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 some exemplary embodiments, 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.

[0110] Returning to the intra prediction process, in the intra prediction process, samples in a block (e.g., a luma prediction block or a chroma prediction block, or a coding block if not further divided into prediction blocks) are predicted by adjacent samples, the next adjacent samples, or samples of one or more other rows, or a combination thereof to generate a prediction block. The residual between the actual block being encoded and the prediction block can then be processed by a transform, followed by quantization. Various intra prediction modes can be made available, and parameters related to intra mode selection and other parameters can be signaled in the bitstream. For example, various intra prediction modes may involve one or more row positions for prediction samples, the direction along which prediction samples are selected from one or more prediction rows, and other special intra prediction models.

[0111] For example, a set of intra-prediction modes (interchangeably referred to as "intra-modes") may include a predetermined number of directional intra-prediction models. As described above in connection with the exemplary implementation of FIG. 1, these intra-prediction modes may correspond to a predetermined number of directions along which samples outside the block are selected as prediction values ​​for samples predicted in a particular block. In another specific exemplary implementation, eight (8) main directional modes may be supported and predefined, corresponding to angles ranging from 45 degrees to 207 degrees from a horizontal axis.

[0112] In some other implementations of intra prediction, in order to further exploit more types of spatial redundancy in directional textures, the directional intra mode can be further extended to a set of angles with finer granularity. For example, the above 8-angle implementation can be configured to provide 8 nominal angles, such as Fig. 9 As shown, these 8 nominal angles are called V_PRED, H_PRED, D45_PRED, D135_PRED, D113_PRED, D157_PRED, D203_PRED and D67_PRED, and for each nominal angle, a predetermined number (e.g., 7) of finer angles can be added. With this extension, a larger total number (e.g., 56 in this example) of directional angles can be used for intra-frame prediction, corresponding to the same number of predetermined directional intra-frame modes. The predicted angle can be represented by the nominal intra-frame angle plus an angle delta. For the specific example above that makes 7 finer angle directions for each nominal angle, the angle delta can be -3 to 3 multiplied by the step size, which is 3 degrees.

[0113] In some implementations, as an alternative to or in addition to the above-mentioned directional intra-frame mode, a predetermined number of non-directional intra-frame prediction modes may be predefined, and a predetermined number of non-directional intra-frame prediction modes may be made available. For example, 5 non-directional intra-frame modes called smooth intra-frame prediction modes may be specified. These non-directional intra-frame mode prediction modes may be specifically referred to as DC intra-frame mode, PAETH intra-frame mode, SMOOTH intra-frame mode, SMOOTH_V intra-frame mode, and SMOOTH_H intra-frame mode. Fig.10 The prediction of samples for a particular block under these exemplary non-directional modes is shown. As an example, Fig.10It is shown that a 4×4 block 1002 is predicted by samples from an upper neighboring row and / or a left neighboring row. A specific sample 1010 in the block 1002 may correspond to a sample 1004 directly above the sample 1010 located in the upper neighboring row of the block 1002, a sample 1006 to the upper left of the sample 1010 as the intersection of the upper neighboring row and the left neighboring row, and a sample 1008 directly to the left of the sample 1010 located in the left neighboring row of the block 1002. For the exemplary DC intra prediction mode, an average of the left neighboring sample 1008 and the upper neighboring sample 1004 may be used as a prediction value for the sample 1010. For the exemplary PAETH intra prediction mode, an upper reference sample 1004, a left reference sample 1008, and an upper left reference sample 1006 may be extracted, and then the value of the three reference samples closest to (upper + left - upper left) may be set as the prediction value for the sample 1010. For the exemplary SMOOTH_V intra prediction mode, sample 1010 can be predicted by performing quadratic interpolation along the vertical direction of the upper left adjacent sample 1006 and the left adjacent sample 1008. For the exemplary SMOOTH_H intra prediction mode, sample 1010 can be predicted by performing quadratic interpolation along the horizontal direction of the upper left adjacent sample 1006 and the upper adjacent sample 10004. For the exemplary SMOOTH intra prediction mode, sample 1010 can be predicted by the average of the quadratic interpolation along the vertical direction and the horizontal direction. The above-mentioned non-directional intra mode implementation is only described as a non-limiting example. Other adjacent rows of samples, other non-directional selections, and ways to combine prediction samples to predict specific samples in the prediction block are also considered.

[0114] At different coding levels (pictures, slices, blocks, units, etc.), a specific intra-frame prediction mode is selected by the encoder from the above-mentioned directional or non-directional modes, which can be represented by a signal in the code stream. In some exemplary implementations, exemplary 8 nominal directional modes and 5 non-angular smooth modes (a total of 13 options) can first be represented by a signal. Then, if the signaled mode is one of the 8 nominal angle intra-frame modes, an index is further signaled to indicate the selected angle increment to the corresponding nominal angle represented by the signal. In some other exemplary implementations, all intra-frame prediction modes can be indexed together (e.g., 56 directional modes plus 5 non-directional modes to generate 61 intra-frame prediction models) for signaling.

[0115] In some example implementations, the example 56 or other number of directional intra prediction modes may be implemented using a unified directional predictor that projects each sample of a block to a reference subsample location and interpolates the reference samples via a 2-tap bilinear filter.

[0116] In some implementations, in order to capture the attenuated spatial correlation of references on edges, additional filter modes called FILTER INTRA modes may be designed. For these modes, in addition to samples outside the block, the predicted samples within the block can be used as intra-frame prediction reference samples for some patches within the block. For example, these modes can be predefined and made available for intra-frame prediction of at least luminance blocks (or only luminance blocks). A predetermined number (e.g., five) of filter intra-frame modes can be pre-designed, each filter intra-frame mode being represented by a set of n-tap filters (e.g., 7-tap filters) to reflect the correlation between, for example, samples in a 4×2 patch and n neighbors adjacent to the patch. In other words, the weight factor of the n-tap filter may depend on the position. Taking an 8×8 block, a 4×2 patch, and a 7-tap filter as an example, Fig.11 As shown, the 8×8 block 1102 can be divided into 8 4×2 slices. Fig.11 In , these patches are represented by B0, Bl, B2, B3, B4, B5, B6 and B7. For each patch, its 7 neighbors (in Fig.11 In the example, R0 to R7 are used to predict the samples in the current slice. For slice B0, all neighbors may have been reconstructed. However, for other slices, some neighbors are located in the current block and may not be reconstructed. The predicted values ​​of the immediate neighbors are used as reference. For example, if the slice is not reconstructed, Fig.11 All neighbors of the indicated patch B7, so instead, the predicted samples of the neighbors are used.

[0117] In some implementations of intra prediction, a color component may be predicted using one or more other color components. The color component may be any one of the components in YCrCb, RGB, XYZ color space, etc. For example, it may be possible to predict a chroma component (e.g., a chroma block) from a luma component (e.g., a luma reference sample), which is referred to as chroma from luma or CfL. In some exemplary implementations, cross-color prediction may only allow from luma to chroma. For example, the chroma samples in a chroma block may be modeled as a linear function of consistently reconstructed luma samples. CfL prediction may be implemented as follows:

[0118] CfL(α)=α×L AC +DC (1)

[0119] Among them, L ACIndicates the AC contribution of the luma component, α indicates the parameters of the linear model, and DC indicates the DC contribution of the chroma component. For example, the AC component is obtained for each sample of the block, while the DC component is obtained for the entire block. Specifically, the reconstructed luma samples can be subsampled to the chroma resolution, and then the average luma value (the DC of luma) can be subtracted from each luma value to form the AC contribution of luma. The AC contribution of luma is then used in the linear model of equation (1) to predict the AC value of the chroma component. In order to estimate or predict the chroma AC component based on the luma AC contribution (rather than requiring the decoder to calculate the scaling parameters), an exemplary CfL implementation may determine the parameter α based on the original chroma samples and signal the parameter α in the bitstream. This reduces the complexity of the decoder and produces more accurate predictions. As for the DC contribution of the chroma component, in some exemplary implementations, the DC contribution of the chroma component may be calculated using an intra-frame DC mode within the chroma component.

[0120] Then, a transformation of the residual of the intra-frame prediction block or the inter-frame prediction block can be implemented, followed by quantization of the transformation coefficients. In order to perform the transformation, before the transformation, the intra-frame coding block and the inter-frame coding block can be further divided into multiple transform blocks (sometimes interchangeably used as "transform units", even if the term "unit" is generally used to represent a set of three color channels, for example, a "coding unit" may include a luminance coding block and a chrominance coding block). In some implementations, the maximum partition depth of the coding block (or prediction block) can be specified (the term "coded block" can be used interchangeably with "coding block"). For example, this division will not exceed 2 levels. The operation of dividing the prediction block into transform blocks can be handled differently between intra-frame prediction blocks and inter-frame prediction blocks. However, in some implementations, this division can be similar between intra-frame prediction blocks and inter-frame prediction blocks.

[0121] In some exemplary implementations, for intra-coded blocks, transform partitioning may be performed in a manner that all transform blocks have the same size, and the transform blocks are encoded in a raster scan order. Fig.12 An example of such a transform block partitioning of an intra-coded block is shown. Specifically, Fig.12 The coding block 1202 is shown to be divided into 16 transform blocks of equal block size, as shown at 1206, by means of a mid-level quadtree partition 1204. An exemplary raster scan order for encoding is represented by Fig.12 The sequence is shown by arrows.

[0122] In some exemplary implementations, for inter-frame coding blocks, the transform unit division may be performed in a recursive manner, where the division depth may be up to a predetermined number of levels (e.g., 2 levels). Fig.13 As shown, the split can stop or continue recursively for any sub-partition and at any level. Specifically, Fig.13An example is shown where a block 1302 is split into four quadtree sub-blocks 1304, one of which is further split into four secondary transform blocks, while the division of the other sub-blocks stops after the first level, resulting in a total of 7 transform blocks of two different sizes. The exemplary raster scan order for encoding is further represented by Fig.13 The sequence of arrows is shown in Figure 2. Fig.13 An exemplary implementation of quadtree partitioning of up to two levels of square transform blocks is shown, but in some generation implementations, transform partitioning can support 1:1 (square), 1:2 / 2:1, and 1:4 / 4:1 transform block shapes and sizes, ranging from 4×4 to 64×64. In some exemplary implementations, if the coding block is less than or equal to 64×64, the transform block partitioning can only be applied to the luma component (in other words, the chroma transform block can be the same as the coding block under this condition). Otherwise, if the coding block width or height is greater than 64, the luma coding block and chroma coding block can be implicitly split into multiples of min(W, 64)×min(H, 64) transform blocks and min(W, 32)×min(H, 32) transform blocks, respectively.

[0123] Subsequently, a main transform may be performed on each of the above transform blocks. The main transform essentially moves the residual in the transform block from the spatial domain to the frequency domain. In some implementations of the actual main transform, in order to support the above exemplary extended coding block partition, multiple transform sizes (ranging from 4-point to 64-point for each of the two dimensions) and transform shapes (square; rectangular with aspect ratios of 2:1 / 1:2 and 4:1 / 1:4) may be allowed.

[0124] Returning to the actual main transform, in some exemplary implementations, the 2-D transform process may involve the use of a hybrid transform kernel (e.g., the hybrid transform kernel may be composed of a different 1-D transform for each dimension of the encoded residual transform block). Exemplary 1-D transform kernels may include, but are not limited to: a) 4-point DCT-2, 8-point DCT-2, 16-point DCT-2, 32-point DCT-2, 64-point DCT-2; b) 4-point asymmetric DST, 8-point asymmetric DST, 16-point asymmetric DST (DST-4, DST-7) and their flipped versions; c) 4-point identity transform, 8-point identity transform, 16-point identity transform, 32-point identity transform. The selection of the transform kernel for each dimension may be based on a rate-distortion (RD) criterion. For example, the basis functions of DCT-2 and asymmetric DST that can be implemented are listed in Table 1.

[0125] Table 1: Exemplary primary transform basis functions (DCT-2, DST-4, and DST-7 for N-point input)

[0126]

[0127]

[0128] In some exemplary implementations, the availability of a hybrid transform kernel for a particular main transform implementation may be based on the transform block size and the prediction mode. Exemplary dependencies are listed in Table 2. For chroma components, transform type selection may be performed in an implicit manner. For example, for intra-prediction residuals, the transform type may be selected based on the intra-prediction mode, as specified in Table 3. For inter-prediction residuals, the transform type for the chroma block may be selected based on the transform type selection for the co-located luma block. Therefore, for chroma components, there is no transform type signaling in the bitstream.

[0129] Table 2: AV1 hybrid transform kernels and their availability based on prediction mode and block size. Here, → and ↓ indicate horizontal and vertical sizes; √ and × indicate kernel availability for block size and prediction mode.

[0130]

[0131]

[0132] Table 3: Transform type selection for chroma component intra prediction residual

[0133] Intra prediction Vertical Transformation Horizontal Transform DC_PRED DCT DCT V_PRED ADST DCT H_PRED DCT ADST D45_PRED DCT DCT D135_PRED ADST ADST D113_PRED ADST DCT D157_PRED DCT ADST D203_PRED DCT ADST D67_PRED ADST DCT SMOOTH_PRED ADST ADST SMOOTH_V_PRED ADST DCT SMOOTH_H_PRED DCT ADST PAETH_PRED ADST ADST

[0134] In some exemplary implementations, a secondary transform may be performed on the main transform coefficients. For example, a LFNST (Low Frequency Non-Separable Transform) may be applied between the forward main transform and quantization (at the encoder) and between dequantization and inverse main transform (at the decoder side) to further decorrelate the main transform coefficients, which is referred to as a simplified secondary transform.

[0135] In some exemplary implementations, the transformation may include: Fig.14 Line Graph Transforms (LGT) shown. A graph can be a general mathematical structure consisting of a collection of vertices and edges, which is used to model similarity relationships between objects of interest. In practice, weighted graphs (where a set of weights are assigned to edges and possibly to vertices) can provide a sparse representation for robust modeling of signals / data. LGT can improve coding efficiency by providing better adaptability to different block statistics. Separable LGT can be designed and optimized by learning a line graph from the data to model the underlying row and column-wise statistics of the block residual signal, where the associated generalized graph Laplacian (GGL) matrix is ​​used to derive the LGT.

[0136] In one implementation, given a weighted graph G(W, V), the GGL matrix can be defined as LE=D-W+V, where W can be an adjacency matrix consisting of non-negative edge weights Wc, D can be an angle matrix, and V can be a matrix indicating weighted self-loops V c1 、V c2 The diagonal matrix of . The matrix L E It can be expressed as:

[0137] where w c >0 (2)

[0138] Subsequently, LGT can be derived through the eigendecomposition of GGL Lc.

[0139] L c =UΦU T (3)

[0140] Where the columns of the orthogonal matrix U are the basis vectors of the LGT, and Φ is the diagonal eigenvalue matrix. In fact, DCT and DST, including DCT-2, DCT-8, and DST-7, are LGTs derived from some form of GGL. DCT-2 is derived by setting Vc1=0; DST-7 is derived by setting Vc=Wc; DCT-8 is derived by setting Vc2=Wc; DST-4 is derived by setting Vc1=2w c DCT-4 is derived by setting Vc2 = 2w c And export.

[0141] LGT can be implemented as matrix multiplication. The 4p LGT core can be derived by setting vc1=2wc in Lc, which means that the 4p LGT core is DST-4. The 8p LGT core can be derived by setting vc1=1.5w in Lc. c 16p, 32p and 64p LGT cores can be derived by setting vc1=w in Lc c By export, it means that the 16p, 32p and 64p LGT cores are DST-7.

[0142] In some implementations, for coefficient encoding, a hierarchical graph scheme can be used compared to an encoding scheme that processes each 2D transform coefficient sequentially. For each transform unit (or transform block), coefficient encoding begins with encoding a skip symbol, and then, if transform encoding is not skipped, the main transform kernel type and block end (EOB) position are signaled. Afterwards, the coefficient values ​​are encoded in a multi-layer hierarchical graph manner plus the symbol value. The hierarchical graph is encoded into three hierarchical planes, namely a low-level plane, an intermediate-level plane, and a high-level plane, and the symbol is encoded into another separate plane. The low-level plane, the intermediate-level plane, and the high-level plane correspond to different coefficient magnitude ranges. The low-level plane corresponds to an exemplary range of 0-2, the intermediate-level plane corresponds to an exemplary range of 3-14, and the high-level plane covers, for example, a range of 15 and above. The three level planes may be encoded as follows: (a) the EOB position is encoded first; (b) the low-level plane and the middle-level plane are encoded together in a backward scanning order, which may include a zigzag scan applied over the entire transform unit; (c) the symbol plane and the high-level plane are encoded together in a forward scanning order; (d) the remainder (coefficient level minus 14) is entropy encoded using an Exp-Golomb code. The context model applied to the low-level plane depends on the main transform direction (bidirectional, horizontal and vertical) and the transform size, and up to a predetermined number (e.g., five) of neighboring (in the frequency domain) coefficients are used to derive the context. The middle-level plane may use a similar context model, but the number of context neighboring coefficients may be reduced, for example, from 5 to 2. The high-level plane may be encoded using an Exp-Golomb code without using a context model. The DC symbol is encoded using a context modeling approach, where a weighted average of the DC symbol values ​​of the upper and left neighboring blocks may be used to derive context information, as described in equation (4) below:

[0143] dc_sum=∑ i∈neighbors dc_sign(i)*overlap(i,curr_block) (4)

[0144] The weight depends on the length of the intersection of the neighboring transform block and the current transform block. The derived context information is used as an index to access the three different contexts for DC symbol encoding, as shown in Equation 5 below. The symbol values ​​of other coefficients can be encoded directly without using a context model.

[0145]

[0146] When entropy encoding is performed as described above, the DC symbol values ​​of the luminance transform block and the chrominance transform block may utilize the DC symbol values ​​from the neighbors to derive context information, for example, the neighbors in space may include the upper neighbors and / or the left neighbors. Subsequently, the entropy encoding of the symbol values ​​of the transform coefficients may be based on the context information.

[0147] In the present disclosure, various embodiments are disclosed for entropy encoding symbol values ​​of co-located chroma transform coefficients using a context model to exploit significant cross-component correlation between symbol values. This correlation can be exploited at different levels (coefficient level, sub-block level, or block level) to derive context for entropy encoding symbol values ​​of chroma channels. Specifically, Fig.15 As shown, correlation may exist at different levels (different frequency ranges). For example, in the Cb block 1502 and the co-located Cr block 1504, the two co-located coefficients A Cb 1510 and A Cr 1512 may share the same symbol value. For another example, in the Cb block 1506 and the co-located Cr block 1508, the coefficients of the two co-located sub-blocks 1514 and 1516 may share the same value. For yet another example, the coefficients of two complete co-located blocks (e.g., Cb block 1506 and co-located Cr block 1508) may share the same value. Thus, correlation may be exploited at various levels to improve entropy coding efficiency.

[0148] In the present disclosure, the term co-located block refers to a block that is located at the same spatial position in another color channel. For example, Cb block 1502 and Cr block 1504 are co-located. During the entropy coding process, one of the co-located coefficients / blocks may be encoded first, and then the other co-located coefficient / block may be encoded. Coefficients are co-located when they belong to spatially co-located blocks and are located at the same frequency position. For example, in Fig.15 In , coefficients 1510 and 1512 are co-site coefficients.

[0149] In the present disclosure, the term co-located chroma block refers to a chroma block located at the same spatial position in another chroma (color) channel. Co-located chroma coefficients refer to the Cr coefficient and Cb coefficient of the co-located Cr block and Cb block at the same position in the frequency domain.

[0150] In the present disclosure, two co-location coefficients may also be referred to as associated coefficients. Similarly, two co-location sub-blocks may also be referred to as associated sub-blocks. Cb 1510 and A Cr 1512 is the association coefficient. Sub-blocks 1514 and 1516 are co-located sub-blocks.

[0151] In the present disclosure, the term block may refer to a transform block, a coding block, a prediction block, etc.

[0152] In this disclosure, the term chroma block may refer to a block located in any chroma (color) channel.

[0153] Derivation of context for entropy coding

[0154] As described previously, the symbol value of one transform coefficient may have a correlation with the co-located transform coefficient. Therefore, when performing entropy coding, the symbol value of one transform coefficient may be derived based on the previously coded co-located transform coefficient.

[0155] In one embodiment, the entropy encoding of the sign value of one chroma (eg, Cb or Cr) transform coefficient depends on the sign value of a previously encoded co-located chroma (eg, Cr or Cb) transform coefficient.

[0156] In one embodiment, to entropy encode a symbol value of a transform coefficient, a context for entropy encoding may be derived based on signal values ​​of previously encoded co-located transform coefficients.

[0157] In one embodiment, to entropy encode the symbol value of a transform coefficient, context may be derived based on signal values ​​of previously encoded co-located transform coefficients only when the transform coefficient is located at a predetermined position (or frequency range) in the transform domain.

[0158] In one implementation, the context derivation process may only be applied to the DC coefficient.

[0159] In one implementation, the context derivation process may only be applicable to the DC coefficient and predetermined low-frequency coefficients.

[0160] In one embodiment, the contextual derivation of the DC sign value of a coefficient may depend on:

[0161] A weighted average of the DC symbol values ​​of the neighboring blocks above and to the left. The weights may be based on predetermined factors; and

[0162] • The sign value of the previously encoded co-located DC coefficient.

[0163] Symbol value signaling

[0164] As described previously, the sign value of one transform coefficient may have a correlation with a co-located transform coefficient.Thus, to signal the sign value of the co-located transform coefficient (rather than using a signal for each chroma channel), a combined signal may be used to jointly signal the sign value.

[0165] Based on this, the present disclosure provides a method for decoding video data, comprising the following steps: receiving an encoded video code stream of video data; extracting a first signal from the encoded video code stream, the first signal indicating whether a first transform coefficient in a first data block and an associated second transform coefficient in a second data block have the same symbol value, and the second data block is co-located with the first data block; and deriving target symbol values ​​of the first transform coefficient and the second transform coefficient based on the first signal.

[0166] In one implementation, in response to a first signal indicating that a first transform coefficient and an associated second transform coefficient have the same sign value, a second signal is extracted from the encoded video code stream, the second signal indicating the sign value of the target symbol value, and the target symbol values ​​of the first transform coefficient and the second transform coefficient are derived based on the first signal and the second signal.

[0167] In one embodiment, two signals may be used for symbol value sharing purposes. These two signals are applicable to the Cb channel and the Cr channel. Fig.16 As shown, first a first signal 1602 may be signaled to indicate whether the sign values ​​of the associated transform coefficients of all relevant color components are the same. Then, a second signal 1604 may be signaled to indicate the sign value itself. The second signal may be encoded to be oriented to a specific color channel, but will be referenced to a co-located channel. Alternatively, the second signal may be encoded to be oriented to the Cb channel and the Cr channel. For example, returning to reference Fig.15 , the first signal may indicate A Cb 1510 and A Cr 1512, the second signal may indicate A Cb 1511 and A Cb The symbol value of 1512.

[0168] In one implementation, the associated transform coefficients in co-located blocks such as Cb block 1506 and Cr block 1508 may be identical. In this case, it may only be necessary to signal the symbol value for one block, and the signaling of the symbol value may be skipped for the co-located block. For example, it may only be necessary to signal the symbol value for block 1506. A flag may be signaled to indicate that the symbol value signaling for block 1508 is skipped. The symbol value of the transform coefficient in block 1508 may be derived from the corresponding transform coefficient in block 1506.

[0169] The same concept can be applied to sub-blocks. Based on this, the present disclosure provides a method for decoding video data, comprising the following steps: receiving an encoded video code stream of video data; extracting a signal from the encoded video code stream, the signal indicating whether each of the symbol values ​​of the transform coefficients in the sub-blocks of the first data block is equal to the symbol value of the associated transform coefficients in the sub-blocks of the second data block, the sub-blocks of the first data block being co-located with the sub-blocks of the second data block; and in response to the signal indicating that each of the symbol values ​​of the transform coefficients in the sub-blocks of the first data block is equal to the symbol value of the associated transform coefficients in the sub-blocks of the second data block, deriving each of the symbol values ​​of the transform coefficients in the sub-blocks of the first data block based on the symbol value of the associated transform coefficients in the sub-blocks of the second data block.

[0170] In one implementation, the sub-block of the first data block overlaps with the first data block, and the sub-block of the second data block overlaps with the second data block.

[0171] The same concept can be applied to sub-blocks. In one implementation, the associated transform coefficients in co-located sub-blocks such as sub-block 1514 and sub-block 1516 can be the same. In this case, it may only be necessary to signal the symbol value for one sub-block, and the signaling of the symbol value can be skipped for the co-located sub-block. For example, it is only necessary to signal the symbol value for sub-block 1514. A flag can be signaled to indicate that the symbol value signaling of sub-block 1516 is skipped. The symbol value of the transform coefficient in sub-block 1516 can be derived from the corresponding transform coefficient in sub-block 1514.

[0172] In one implementation, the size of the sub-block size may include at least one of the following: 4×4, 4×8, 8×4, 4×16, 16×4, 8×8, 8×16, 16×8, 8×32, 32×8, 16×64, 64×16, 16×16, 16×32, 32×16, 32×32, 32×64, 64×32, or 64×64.

[0173] In the above embodiment, Cb / Cr channels / blocks are used for exemplary purposes only. Similar concepts can be applied to other types of channels, such as the luminance channel. For example, a signal can be used to indicate that the sign values ​​of the co-located transform coefficients in the luminance channel, the Cb channel, and the Cr channel are the same.

[0174] Fig.17An exemplary method 1700 for decoding video data is shown. The method 1700 may include some or all of the following steps: step 1710, receiving a first data block including a first transform coefficient from an encoded video bitstream of video data; step 1720, performing entropy decoding on a symbol value of the first transform coefficient based on context information, wherein the context information is derived based on a symbol value of a second transform coefficient in a second data block in the video data, and the second data block is co-located with the first data block, wherein co-location means that two data blocks in different channels are located at the same spatial position.

[0175] In one implementation, the first transform coefficient and the second transform coefficient are DC transform coefficients, and the context information is further derived based on at least one symbol value corresponding to at least one DC transform coefficient in at least one neighboring data block of the first data block.

[0176] In the embodiments of the present disclosure, any steps and / or operations may be combined or arranged in any number or order as desired. Two or more steps and / or operations may be performed in parallel.

[0177] The embodiments of the present disclosure may be used alone or in any order. In addition, each method (or embodiment), encoder and decoder may be implemented by a processing circuit (e.g., one or more processors or one or more integrated circuits). In one example, one or more processors execute a program stored in a non-transitory computer-readable medium. The embodiments of the present disclosure may be applicable to luminance blocks or chrominance blocks.

[0178] The above techniques may be implemented as computer software using computer-readable instructions and physically stored in one or more computer-readable media. Fig.18 A computer system (1800) suitable for implementing certain embodiments of the disclosed subject matter is shown.

[0179] Computer software may be encoded using any suitable machine code or computer language that may be subjected to assembly, compilation, linking or similar mechanisms to create code comprising instructions that may be executed directly by one or more computer central processing units (CPUs), graphics processing units (GPUs), etc., or through interpretation, microcode execution, etc.

[0180] The instructions may be executed on various types of computers or components thereof, including, for example, personal computers, tablet computers, servers, smart phones, gaming devices, Internet of Things devices, and the like.

[0181] Fig.18The components of the computer system (1800) shown are exemplary in nature and are not intended to suggest any limitation on the scope of use or functionality of computer software implementing embodiments of the present disclosure. Neither should the configuration of components be interpreted as having any dependency or requirement relating to any one or combination of components shown in the exemplary embodiment of the computer system (1800).

[0182] The computer system (1800) may include certain human-machine interface input devices. Such human-machine interface input devices may be responsive to input from one or more human users through, for example, tactile input (e.g., keystrokes, swipes, data glove movements), audio input (e.g., voice, clapping), visual input (e.g., gestures), olfactory input (not depicted). Human-machine 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., voice, music, ambient sounds), images (e.g., scanned images, captured images obtained from a still image camera), and videos (e.g., two-dimensional video, three-dimensional video including stereoscopic video).

[0183] The human-machine interface input device may include one or more of the following (only one of each is shown): keyboard (1801), mouse (1802), touchpad (1803), touch screen (1810), data gloves (not shown), joystick (1805), microphone (1806), scanner (1807), camera (1808).

[0184] The computer system (1800) may also include certain human-computer interface output devices. Such human-computer interface output devices may stimulate one or more human user senses 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 of a touch screen (1810), a data glove (not shown), or a joystick (1805), but may also be a tactile feedback device that is not an input device), audio output devices (e.g., speakers (1809), headphones (not depicted)), visual output devices (e.g., screens (1810) including CRT screens, LCD screens, plasma screens, OLED screens, each with or without touch screen input capabilities, each with or without tactile feedback capabilities, some of which are capable of outputting two-dimensional visual outputs or outputs exceeding three dimensions through devices such as stereoscopic image output, virtual reality glasses (not depicted), holographic displays, and smoke boxes (not depicted)), and printers (not depicted).

[0185] The computer system (1800) may also include human-accessible storage devices and their associated media, such as optical media including CD / DVD ROM / RW (1820) with CD / DVD etc. media (1821), thumb drives (1822), removable hard drives or solid-state drives (1823), traditional magnetic media such as tapes and floppy disks (not depicted), dedicated ROM / ASIC / PLD based devices such as security dongles (not depicted), and the like.

[0186] Those skilled in the art should also understand that the term "computer-readable media" used in connection with the presently disclosed subject matter does not encompass transmission media, carrier waves, or other transitory signals.

[0187] The computer system (1800) may also include an interface (1854) to one or more communication networks (1855). The network may be, for example, a wireless network, a wired network, an optical network. The network may further be a local network, a wide area network, a metropolitan area network, a vehicle and industrial network, a real-time network, a delay-tolerant network, etc. Examples of networks include local area networks such as Ethernet, wireless LANs, cellular networks including GSM, 3G, 4G, 5G, LTE, etc., television wired or wireless wide area digital networks including cable television, satellite television, and terrestrial broadcast television, vehicle and industrial networks including CAN buses, etc. Some networks typically require an external network interface adapter attached to some general data port or peripheral bus (1849) (e.g., a USB port of the computer system (1800)); as described below, other network interfaces are typically integrated into the kernel of the computer system (1800) by attaching to the system bus (e.g., connected to an Ethernet interface in a PC computer system or connected to a cellular network interface in a smartphone computer system). The computer system (1800) can use any of these networks to communicate with other entities. Such communications may be one-way receive only (e.g., broadcast television), one-way send only (e.g., CANBus connected to certain CANBus devices), or bidirectional, for example, using a LAN or WAN digital network to connect to other computer systems. As described above, certain protocols and protocol stacks may be used on each of these networks and network interfaces.

[0188] The above-mentioned human-machine interface device, human-machine accessible storage device and network interface may be attached to the kernel (1840) of the computer system (1800).

[0189] The kernel (1840) may include one or more central processing units (CPUs) (1841), graphics processing units (GPUs) (1842), dedicated programmable processing units in the form of field programmable gate arrays (FPGAs) (1843), hardware accelerators (1844) for certain tasks, graphics adapters (1850), and the like. These devices, as well as read-only memory (ROM) (1845), random access memory (1846), internal mass storage (1847) such as internal non-user accessible hard drives, SSDs, and the like, may be connected via a system bus (1848). In some computer systems, the system bus (1848) may be accessed in the form of one or more physical plugs to enable expansion by additional CPUs, GPUs, and the like. Peripheral devices may be attached directly to the kernel's system bus (1848) or to the kernel's system bus (1848) via a peripheral bus (1849). In one example, a screen (1810) may be connected to a graphics adapter (1850). The architecture of the peripheral bus includes PCI, USB, and the like.

[0190] The CPU (1841), GPU (1842), FPGA (1843) and accelerator (1844) can execute certain instructions, which can be combined to form the above-mentioned computer code. The computer code can be stored in ROM (1845) or RAM (1846). Transition data can also be stored in RAM (1846), while permanent data can be stored, for example, in internal mass storage (1847). Fast storage and retrieval to any storage device can be performed by using a cache, which can be closely associated with the following: one or more CPUs (1841), GPUs (1842), mass storage (1847), ROM (1845), RAM (1846), etc.

[0191] The computer readable medium may have thereon computer codes for performing various computer-implemented operations. The medium and computer codes may be those specially designed and constructed for the purposes of the present disclosure, or the medium and computer codes may be of a type well known and available to those skilled in the art of computer software.

[0192] As a non-limiting example, a computer system having an architecture (1800), particularly a kernel (1840), may provide functionality due to one or more processors (including CPUs, GPUs, FPGAs, accelerators, etc.) executing software contained in one or more tangible computer-readable media. Such computer-readable media may be media associated with user-accessible mass storage as described above, as well as memories of certain non-temporary kernels (1840), such as kernel internal mass storage (1847) or ROM (1845). Software implementing various embodiments of the present disclosure may be stored in such devices and executed by the kernel (1840). Depending on specific needs, the computer-readable medium may include one or more storage devices or chips. The software may enable the kernel (1840), particularly the processors therein (including CPUs, GPUs, FPGAs, etc.), to perform specific processes or specific parts of specific processes described herein, including defining data structures stored in RAM (1846) and modifying such data structures according to processes defined by the software. In addition or in the alternative, the computer system may provide functionality due to logic hardwired or otherwise embodied in circuitry (e.g., accelerator (1844)) that may replace software or operate in conjunction with software to perform specific processes or specific portions of specific processes described herein. Where appropriate, references to portions of software may include logic and vice versa. Where appropriate, references to portions of computer-readable media may include circuitry (e.g., integrated circuits (ICs)) storing software for execution, circuitry embodying logic for execution, or both. The present disclosure includes any suitable combination of hardware and software.

[0193] Although the present disclosure has described multiple exemplary embodiments, there are modifications, permutations, and various replacement equivalents that fall within the scope of the present disclosure. Therefore, it should be understood that those skilled in the art will be able to design many systems and methods that, although not explicitly shown or described herein, embody the principles of the present disclosure and therefore fall within the spirit and scope of the present disclosure.

[0194] Appendix A: Acronyms

[0195] JEM: Joint Exploration Model

[0196] VVC: Next Generation Video Coding

[0197] BMS: Benchmark Set

[0198] MV: Motion Vector

[0199] HEVC: High Efficiency Video Coding

[0200] SEI: Supplementary Enhancement Information

[0201] VUI: Video Availability Information

[0202] GOP: Group of Pictures

[0203] TU: Transform Unit

[0204] PU: prediction unit

[0205] CTU: Coding Tree Unit

[0206] CTB: Coding Tree Block

[0207] PB: prediction block

[0208] HRD: Hypothetical Reference Decoder

[0209] SNR: Signal to Noise Ratio

[0210] CPU: Central Processing Unit

[0211] GPU: Graphics Processing Unit

[0212] CRT: cathode ray tube

[0213] LCD: Liquid Crystal Display

[0214] OLED: Organic Light Emitting Diode

[0215] CD: compact disc

[0216] DVD: Digital Video Disc

[0217] ROM: Read Only Memory

[0218] RAM: Random Access Memory

[0219] ASIC: Application-Specific Integrated Circuit

[0220] PLD: Programmable Logic Device

[0221] LAN: Local Area Network

[0222] GSM: Global System for Mobile Communications

[0223] LTE: Long Term Evolution

[0224] CANBus: Controller Area Network Bus

[0225] USB: Universal Serial Bus

[0226] PCI: Peripheral Component Interconnect

[0227] FPGA: Field Programmable Gate Array

[0228] SSD: Solid State Drive

[0229] IC: Integrated Circuit

[0230] HDR: High Dynamic Range

[0231] SDR: Standard Dynamic Range

[0232] JVET: Joint Video Exploration Team

[0233] MPM: Most Probable Mode

[0234] WAIP: Wide Angle Intra Prediction

[0235] CU: Coding Unit

[0236] PU: prediction unit

[0237] TU: Transform Unit

[0238] CTU: Coding Tree Unit

[0239] PDPC: Position Dependent Prediction Combination

[0240] ISP: Intra-frame sub-partitioning

[0241] SPS: Sequence parameter settings

[0242] PPS: Picture Parameter Set

[0243] APS: Adaptive Parameter Set

[0244] VPS: Video Parameter Set

[0245] DPS: Decoding Parameter Set

[0246] ALF: Adaptive Loop Filter

[0247] SAO: Sample Adaptive Offset CC-ALF: Cross-Component Adaptive Loop Filter CDEF: Constrained Directional Enhancement Filter

[0248] CCSO: Cross-Component Sampling Offset

[0249] LSO: Local Sampling Offset

[0250] LR: Loop Restoration Filter

[0251] AV1: AOMedia Video 1

[0252] AV2: AOMedia Video 2

Claims

1. A method for decoding video data, characterized in that: The method comprises: receiving a first data block including first transform coefficients from an encoded video stream of video data; and performing entropy decoding on the symbol value of the first transform coefficient based on context information, wherein the context information is derived based on the symbol value of a second transform coefficient in a second data block in the video data, the second data block being co-located with the first data block, wherein the co-location means that two data blocks in different channels are located at the same spatial position; And the context information is derived based on a weighted average of symbol values ​​corresponding to DC transform coefficients in multiple neighboring data blocks of the first data block, and the weight depends on the length of the intersection of the first data block and each of the neighboring data blocks.

2. The method according to claim 1, characterized in that: The first data block includes a Cb coding block, and the second data block includes a Cr coding block; or The first data block includes a Cr coding block, and the second data block includes a Cb coding block.

3. The method according to claim 1, characterized in that The first transformation coefficient comprises a direct current (DC) transformation coefficient.

4. The method according to claim 1, characterized in that Performing entropy decoding on the symbol value of the first transform coefficient based on the context information includes: Entropy decoding is performed on a symbol value of the first transform coefficient based on the context information only when the first transform coefficient includes a DC transform coefficient, and the second data block is located at the same position as the first data block.

5. The method according to any one of claims 1 to 4, characterized in that The first transform coefficients are located within a predetermined frequency range in the transform domain.

6. The method according to claim 4, characterized in that Performing entropy decoding on the symbol value of the first transform coefficient based on the context information includes: Entropy decoding is performed on the symbol value of the first transform coefficient based on the context information only when the first transform coefficient is located within a predetermined frequency range in the transform domain, and the second data block is located at the same position as the first data block.

7. The method according to claim 5, characterized in that The predetermined frequency range is less than or equal to a predetermined frequency.

8. The method according to claim 1, characterized in that The first transform coefficient and the second transform coefficient are DC transform coefficients, and the method further includes: The context information is derived based on at least one sign value of at least one of the DC transform coefficients corresponding to at least one neighboring data block of the first data block.

9. The method according to claim 8, characterized in that The plurality of adjacent data blocks of the first data block include at least one of the following: an upper adjacent data block of the first data block; and The left adjacent data block of the first data block.

10. A device for decoding video data, characterized in that: The apparatus comprises: a processing circuit configured to perform a decoding method according to any one of claims 1 to 9.

11. A method for processing a video code stream, characterized in that: The video code stream can be decoded based on the decoding method described in any one of claims 1 to 9.

12. A computer device, characterized in that: The computer device comprises a circuit configured to implement the decoding method according to any one of claims 1 to 9.

13. A computer-readable program medium, characterized in that The medium stores computer codes, and when the computer codes are executed by one or more processors, the computer codes enable the one or more processors to implement the decoding method according to any one of claims 1 to 9.