Video decoding method, device and storage medium

By performing symbol prediction based on a sample subset in the video decoder and selecting the minimum-cost symbol prediction hypothesis, the problem of difficulty in reducing video coding redundancy in the existing technology is solved, and the compression efficiency of video coding is improved.

CN116325751BActive Publication Date: 2024-10-15TENCENT AMERICA LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202180062088.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-09-30
Filing Date
2021-10-04
Publication Date
2024-10-15
Estimated Expiration
2041-10-04

AI Technical Summary

Technical Problem

Existing video coding technology is difficult to effectively reduce redundancy when compressing video signals, especially in scenarios with high bit rates and high storage requirements, and the selection efficiency of intra-frame prediction directions is low, affecting coding efficiency.

Method used

By using processing circuitry in the video decoder, symbol prediction is performed on a subset of multiple transform coefficients based on a subset of samples in the topmost row or leftmost column of the current block, the symbol prediction hypothesis with the smallest cost is selected, and based on the The selected hypothesis performs symbol prediction, reducing the computational cost of the symbol prediction process.

Benefits of technology

It improves the compression efficiency of video coding and reduces redundancy, especially in scenarios with high bit rates and high storage requirements, which improves coding efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116325751B_ABST
    Figure CN116325751B_ABST
Patent Text Reader

Abstract

Aspects of the present disclosure include methods, apparatus, and non-transitory computer-readable storage media for video decoding. An apparatus includes a processing circuit that receives a video bitstream including a coding residual of a current block. The processing circuit determines multiple transform coefficients of the current block based on the coding residual. The processing circuit calculates the cost of a corresponding symbol prediction hypothesis for each of a plurality of symbol prediction hypotheses by performing symbol prediction on a subset of the plurality of transform coefficients based on a subset of samples in at least one of the topmost row or the leftmost column of the current block. The number of samples in the sample subset is a constant. The processing circuit selects a symbol prediction hypothesis with a minimum cost. The processing circuit performs symbol prediction based on the selected symbol prediction hypothesis.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Related Applications

[0002] This application claims the benefit of U.S. Patent Application No. 17 / 490,562, filed on September 30, 2021, entitled “Method and Apparatus for Video Coding,” which claims priority to U.S. Provisional Application No. 63 / 217,021, filed on June 30, 2021, entitled “Low Complexity Signal Prediction.” The disclosures of the prior applications are hereby incorporated by reference in their entirety. Technical Field

[0003] This disclosure describes embodiments that generally relate to video encoding. Background Art

[0004] The background description provided here is to generally present the context of the present disclosure. To the extent that the work described in this background section is by the inventors currently named and aspects of the description that may not qualify as prior art at the time of filing, it is neither explicitly nor implicitly admitted to be prior art to the present disclosure.

[0005] Video encoding and decoding can be performed using inter-picture prediction with motion compensation. Uncompressed video can include a series of pictures, each picture having spatial dimensions of, for example, 1920×1080 luma samples and associated chroma samples. The series of pictures can have a fixed or variable image rate (also informally called frame rate), for example, 60 pictures per second or 60Hz. Uncompressed video has significant bitrate requirements. For example, 1080p60 4:2:0 video (1920x1080 luma sample resolution at 60Hz frame rate) with 8 bits per sample requires a bandwidth of nearly 1.5Gbit / s. One hour of such video requires more than 600GB of storage space.

[0006] One goal of video encoding and decoding is to reduce redundancy in the input video signal through compression. Compression helps reduce the bandwidth 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 techniques that can reconstruct an exact copy of the original signal from the compressed original signal. When lossy compression is used, the reconstructed signal may not be the same as the original signal, but the distortion between the original signal and the reconstructed signal is small enough to make the reconstructed signal useful for the intended application. For video, lossy compression is widely used. The amount of distortion allowed depends on the application; for example, users of certain consumer streaming applications may tolerate higher distortion than users of TV distribution applications. The achievable compression ratio can reflect that higher allowed / tolerable distortion can produce higher compression ratios.

[0007] Video encoders and decoders may utilize several broad categories of techniques including, for example, motion compensation, transforms, quantization, and entropy coding.

[0008] 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 a previously reconstructed reference picture. In some video codecs, pictures are spatially subdivided into blocks of samples. When all sample blocks are encoded in intra-mode, the picture may be an intra-picture. Intra-pictures and their derivatives (e.g., independent decoder refresh pictures) may be used to reset decoder states and may therefore be used as the first picture in a coded video bitstream and video session, or as a still image. Samples of intra-blocks may be transformed, and transform coefficients may be quantized before entropy coding. Intra-prediction may be a technique for minimizing sample values ​​in a pre-transform domain. In some cases, the smaller the transformed DC value, the smaller the AC coefficient, and the fewer bits required to represent the entropy-coded block at a given quantization step size.

[0009] For example, conventional intra-frame coding known from MPEG-2 generation coding techniques does not use intra-frame prediction. However, some newer video compression techniques include techniques that attempt to obtain surrounding sample data and / or metadata during encoding and / or decoding of data blocks that are adjacent in space and preceding in decoding order. Such techniques are hereinafter referred to as "intra-frame prediction" techniques. Note that, at least in some cases, the reference data used for intra-frame prediction comes only from the current picture being reconstructed, not from a reference picture.

[0010] There can be many different forms of intra-frame prediction. When more than one such technique can be used in a given video coding technique, the technique used can be encoded in the intra-frame prediction mode. In some cases, a mode can have sub-modes and / or parameters, which can be encoded separately or contained in a mode codeword. For a given mode, sub-mode and / or parameter combination, which codeword is used will have an impact on the coding efficiency gain through intra-frame prediction, and therefore, on the entropy coding technique that converts the codeword into the bitstream.

[0011] H.264 introduced specific intra-frame prediction modes, which were improved in H.265 and further improved in newer coding technologies, such as the Joint Exploration Model (JEM), Versatile Video Coding (VVC), and Benchmark Set (BMS). The prediction block is formed using the values ​​of neighboring samples that are already available samples. The sample values ​​of neighboring samples are copied to the prediction block according to the direction. A reference to the direction in use can be encoded into the bitstream or can be predicted by itself.

[0012] Referring to FIG. 1A , a subset of 9 known prediction directions from the 33 possible prediction directions of H.265 (corresponding to 33 angular modes of 35 intra modes) is depicted at the bottom right. The point (101) where the arrows converge represents the sample being predicted. The arrows represent the direction from which the predicted sample is coming. For example, arrow (102) indicates that sample (101) is predicted from one or more samples to the upper right at an angle of 45° to the horizontal. Similarly, arrow (103) indicates that sample (101) is predicted from one or more samples to the lower left of sample (101) at an angle of 22.5° to the horizontal.

[0013] Still referring to FIG. 1A , a square block (104) of 4×4 samples is depicted at the upper left (indicated by the thick dashed line). The square block (104) includes 16 samples, each sample 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 (from the top) and the first sample in the X dimension (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 labeled with R are labeled (104) with their Y position (e.g., row index) and X position (column index) relative to the block. In H.264 and H.265, the prediction samples are adjacent to the block being reconstructed; therefore, negative values ​​do not need to be used.

[0014] Intra-picture prediction can work by copying reference sample values ​​from neighboring samples in the appropriate signal prediction direction. For example, assume that the encoded video bitstream contains a signal for this block that indicates a prediction direction consistent with arrow (102) - that is, samples predicted from one or more prediction samples to the upper right at a 45° angle to the horizontal. 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.

[0015] In some cases, the values ​​of multiple reference samples may be combined, for example, by interpolation, in order to calculate the reference sample; in particular, when the direction is not divisible by 45°.

[0016] As video coding techniques have evolved, the number of possible directions has increased. In H.264 (2003), nine different directions could be represented. This was increased to 33 in H.265 (2013), and JEM / VVC / BMS can support up to 65 directions at the time of disclosure. Experiments have been conducted to identify the most likely directions, and certain techniques in entropy coding are used to represent those possible directions with a small number of bits, accepting some penalty for less likely directions. Additionally, the direction itself can sometimes be predicted from adjacent directions used in adjacent already decoded blocks.

[0017] FIG. 1B shows a schematic diagram ( 105 ) depicting 65 intra prediction directions according to JEM to illustrate that the number of prediction directions increases over time.

[0018] The mapping of intra prediction direction bits in the coded video bitstream to represent directions can vary depending on the video coding technique; ranging from simple direct mappings of prediction directions to intra prediction modes, to codewords, to complex adaptive schemes involving the most probable mode, and similar techniques. However, in all cases, some directions are statistically less likely to occur in the video content than some other directions. Since the goal of video compression is to reduce redundancy, in better video coding techniques, those less likely directions will be represented by more bits than those that are more likely.

[0019] Motion compensation may be a lossy compression technique, and may involve techniques where a block of sample data from a previously reconstructed picture or part thereof (reference picture) may be used to predict a newly reconstructed picture or picture part after being spatially shifted in a direction indicated by a motion vector (hereafter 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, the third dimension being an indication of the reference picture in use (the reference picture may indirectly be a temporal dimension).

[0020] In some video compression techniques, the MV applicable to a region of sample data can be predicted from other MVs, for example, from MVs associated with another region of sample data that is spatially adjacent to the region being reconstructed and precedes the MV in decoding order. Doing so can greatly reduce the amount of data required to encode the MV, thereby eliminating redundancy and improving compression. MV prediction can work effectively, for example, because when encoding an input video signal derived from a camera (called natural video), there is a statistical possibility that regions larger than the region to which a single MV can be applied move in similar directions, so in some cases, similar MVs derived from MVs of adjacent regions can be used for prediction. This makes the MV found for a given region similar or identical to the MV predicted from the surrounding MVs, and after entropy coding, this can be represented with fewer bits than would be used if the MV was encoded directly. In some cases, MV prediction can be an example of lossless compression of a signal (i.e., MV) derived from the original signal (i.e., sample stream). In other cases, MV prediction itself may be lossy, for example, when the predicted value is calculated from several surrounding MVs, rounding errors may occur.

[0021] Various MV prediction mechanisms are described in H.265 / HEVC (ITU-T Rec. H.265, "High Efficiency Video Coding", December 2016). Among the many MV prediction mechanisms provided by H.265, this article describes a technique hereinafter referred to as "spatial merging".

[0022] Referring to Figure 1C, the current block (111) may include samples found by the encoder during a motion search process to be predicted from a previous block of the same size that has been spatially shifted. Rather than encoding the MV directly, the MV may be derived from metadata associated with one or more reference pictures, e.g., from the most recent (in decoding order) reference picture, using MVs associated with any of the five surrounding samples, denoted A0, A1 and B0, B1, B2 (112 to 116, respectively). In H.265, MV prediction may use a predictor from the same reference picture being used by a neighboring block. Summary of the invention

[0023] Aspects of the present disclosure include an apparatus for video decoding. An apparatus includes a processing circuit that receives a video bitstream including a coding residual of a current block. The processing circuit determines a plurality of transform coefficients of the current block based on the coding residual. The processing circuit calculates a cost of a corresponding symbol prediction hypothesis for each of a plurality of symbol prediction hypotheses by performing symbol prediction on a subset of the plurality of transform coefficients based on a subset of samples in at least one of a topmost row or a leftmost column of the current block. The number of samples in the sample subset is a constant. The processing circuit selects a symbol prediction hypothesis having a minimum cost. The processing circuit performs symbol prediction according to the selected symbol prediction hypothesis.

[0024] In one embodiment, the constant is predetermined. For example, the constant may be 4 or 8.

[0025] In one embodiment, the constant is determined based on the number of subsets of the plurality of transform coefficients. For example, the number of subsets of the plurality of transform coefficients may be predetermined (e.g., 4×4 low-frequency transform coefficients in a transform block), and the constant may be determined to be less than the predetermined number of subsets of the plurality of transform coefficients. When the subset of the plurality of transform coefficients is predetermined to be 4×4 low-frequency transform coefficients, the constant may be 4 for the topmost row or leftmost column.

[0026] In one embodiment, the constant is determined based on a comparison between a dimension of the block and a threshold. In one example, when the width (or height) of the block is greater than the threshold, the constant in the top row (or leftmost column) may be a first quantity. Otherwise, the constant in the top row (or leftmost column) may be a second quantity that is less than the first quantity.

[0027] In one embodiment, the constant is determined based on a comparison between a dimension of the block and one or more thresholds. In one example, the size of the block can be compared with two thresholds. When the width (or height) of the block is not greater than the first threshold, the constant in the top row (or leftmost column) can be a first quantity. When the width (or height) of the block is greater than the first threshold and less than the second threshold, the constant in the top row (or leftmost column) can be a second quantity. When the width (or height) of the block is greater than the second threshold, the constant in the top row (or leftmost column) can be a third quantity. In another example, the dimension of the block can be compared with different numbers of thresholds.

[0028] In one embodiment, the constant value is determined based on a lookup table that includes multiple values ​​of the constant. Each of the multiple values ​​is associated with a different value of a dimension of the block. For example, when the width (or height) of the block is within a first range, the constant in the top row (or leftmost column) can be a first quantity according to the lookup table. When the width (or height) of the block is within a second range, the constant in the top row (or leftmost column) can be a second quantity according to the lookup table, and so on.

[0029] In one embodiment, the position of the sample subset in at least one of the topmost row or the leftmost column of the current block is determined based on one dimension of the block. For example, the position of the sample subset in the topmost row (or leftmost column) of the block is determined based on the width (or height) of the block.

[0030] In one embodiment, at least two positions of the sample subset in at least one of the topmost row or the leftmost column of the current block are adjacent. For example, the positions of two samples in the topmost row (or the leftmost column) are adjacent to each other.

[0031] In one embodiment, the positions of the subset of samples in at least one of the topmost row or the leftmost column of the current block are evenly spaced.

[0032] In one embodiment, the processing circuit calculates a cost for each of a plurality of symbol prediction hypotheses based on (i) a subset of samples in at least one of a topmost row or a leftmost column of a current block and (ii) neighboring reconstructed samples in at least one of a row above the current block or a column to the left of the current block.

[0033] Aspects of the present disclosure provide methods for video decoding. These methods may perform any one or combination of processes performed by an apparatus for video encoding / decoding. In the method, a video bitstream including a coding residual of a current block is received. Multiple transform coefficients of the current block are determined based on the coding residual. The cost of a corresponding symbol prediction hypothesis is calculated for each of a plurality of symbol prediction hypotheses by performing symbol prediction on a subset of multiple transform coefficients based on a subset of samples in at least one of the top row or leftmost column of the current block. The number of samples in the sample subset is a constant. A symbol prediction hypothesis with a minimum cost is selected. Symbol prediction is performed according to the selected symbol prediction hypothesis.

[0034] Aspects of the present disclosure also provide a non-transitory computer-readable medium storing instructions that, when executed by at least one processor, cause the at least one processor to perform any one or combination of the methods for video decoding. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0036] FIG1A is a schematic diagram of an exemplary set of intra prediction modes;

[0037] FIG1B is a diagram of exemplary intra prediction directions;

[0038] FIG1C is a schematic diagram of a current block and its surrounding spatial merging candidates in an example;

[0039] Figure 2 is a schematic diagram of a simplified block diagram of a communication system according to one embodiment;

[0040] Figure 3 is a schematic diagram of a simplified block diagram of a communication system according to one embodiment;

[0041] Figure 4 is a schematic diagram of a simplified block diagram of a decoder according to one embodiment;

[0042] Figure 5 is a schematic diagram of a simplified block diagram of an encoder according to one embodiment;

[0043] Figure 6 shows a block diagram of an encoder according to another embodiment;

[0044] Figure 7 shows a block diagram of a decoder according to another embodiment;

[0045] Figure 8 An exemplary symbol prediction process according to an embodiment of the present disclosure is shown;

[0046] Fig. 9 shows an exemplary calculation of the cost of a hypothetical reconstruction boundary according to an embodiment of the present disclosure;

[0047] Fig.10 shows an exemplary calculation of the cost of a hypothetical reconstruction boundary according to another embodiment of the present disclosure;

[0048] Fig.11 shows an exemplary calculation of the cost of a hypothetical reconstruction boundary according to another embodiment of the present disclosure;

[0049] Fig.12 shows an exemplary calculation of the cost of a hypothetical reconstruction boundary according to another embodiment of the present disclosure;

[0050] Fig.13 An exemplary symbol prediction process according to another embodiment of the present disclosure is shown;

[0051] Fig.14 shows an exemplary flow chart according to one embodiment; and

[0052] Fig.15 is a schematic diagram of a computer system according to one embodiment. DETAILED DESCRIPTION

[0053] I. Video Decoder and Encoder Systems

[0054] Figure 2A simplified block diagram of a communication system (200) according to an embodiment of the present disclosure is shown. The communication system (200) includes a plurality of terminal devices that can communicate with each other via, for example, a network (250). For example, the communication system (200) includes a first pair of terminal devices (210) and (220) interconnected via the network (250). Figure 2 In the example of , a first pair of terminal devices (210) and (220) perform unidirectional transmission of data. For example, the terminal device (210) can encode video data (e.g., a video picture stream captured by the terminal device (210)) for transmission to another terminal device (220) via the network (250). The encoded video data can be transmitted in the form of one or more encoded video bitstreams. The terminal device (220) can receive the encoded video data from the network (250), decode the encoded video data to restore the video picture, and display the video picture based on the restored video data. Unidirectional data transmission is common in scenarios such as media service applications.

[0055] In another example, the communication system (200) includes a second pair of terminal devices (230) and (240) that perform bidirectional transmission of encoded video data, such as encoded video data generated during a video conference. For bidirectional transmission of data, in one example, each of the terminal devices (230) and (240) can encode video data (e.g., a video picture stream captured by the terminal device) for transmission to another of the terminal devices (230) and (240) via a network (250). Each of the terminal devices (230) and (240) can also receive encoded video data transmitted by another of the terminal devices (230) and (240), 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.

[0056] exist Figure 2In the example of, terminal device (210), terminal apparatus (220), terminal apparatus (230) and terminal apparatus (240) can be shown as a server, a personal computer and a smart phone, but the principles of the present disclosure may not be limited thereto. Embodiments of the present disclosure are applicable to laptop computers, tablet computers, media players and / or dedicated video conferencing equipment. Network (250) represents any number of networks that transmit encoded video data between terminal device (210), terminal apparatus (220), terminal apparatus (230) and terminal apparatus (240), including, for example, lines (wired) and / or wireless communication networks. Communication network (250) can exchange data in circuit switching and / or packet switching channels. Representative networks include telecommunication networks, local area networks, wide area networks and / or the Internet. For the purpose of the current discussion, the architecture and topology of network (250) may be unimportant to the operation of the present disclosure unless explained below.

[0057] As examples of applications of the disclosed subject matter, Figure 3 The placement of a video encoder and a video decoder in a streaming environment is shown. The disclosed subject matter is equally applicable to other video-enabled applications including, for example, video conferencing, digital television, storing compressed video on digital media including CDs, DVDs, memory sticks, etc.

[0058] The streaming system may include: a capture subsystem (313), which may include a video source (301), such as a digital camera; creating, for example, an uncompressed video picture stream (302). In one example, the video picture stream (302) includes samples taken by the digital camera. The video picture stream (302) is depicted as thick lines to emphasize the high amount of data when compared to the encoded video data (304) (or encoded video bitstream), and can be processed by an electronic device (320) including a video encoder (303) coupled to the video source (301). The video encoder (303) may include hardware, software, or a combination thereof to implement or implement various aspects of the disclosed subject matter as described in more detail below. The encoded video data (304) (or encoded video bitstream (304)) is depicted as thin lines to emphasize its lower amount of data when compared to the video picture stream (302), and can be stored on a streaming server (305) for future use. One or more streaming client subsystems (e.g., Figure 3The client subsystems (306) and (308) in the video server (305) can access the streaming server (305) to retrieve copies (307) and (309) of the encoded video data (304). The client subsystem (306) may include, for example, a video decoder (310) in an electronic device (330). The video decoder (310) decodes the copy (307) of the encoded video data and creates an output video picture stream (311) that can be rendered on a display (312) (e.g., a display screen) or other rendering device (not shown). In some streaming systems, the encoded video data (304), the copies (307) and (309) of the encoded video data (e.g., an encoded video bitstream) may be encoded according to certain video coding / 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 Versatile Video Coding (VVC). The disclosed subject matter may be used in the context of VVC.

[0059] It should be noted that the electronic devices (320) and (330) may include other components (not shown). For example, the electronic device (320) may include a video decoder (not shown), and the electronic device (330) may also include a video encoder (not shown).

[0060] Figure 4 A block diagram of a video decoder (410) according to an embodiment of the present disclosure is shown. The video decoder (410) may be included in an electronic device (430). The electronic device (430) may include a receiver (431) (e.g., a receiving circuit). The video decoder (410) may be used to replace Figure 3 The video decoder (310) of the example.

[0061] The receiver (431) can receive one or more encoded video sequences to be decoded by the video decoder (410); in the same or another embodiment, one encoded video sequence at a time, wherein the decoding of each encoded video sequence is independent of the other encoded video sequences. The encoded video sequence can be received from a channel (401), which can be a hardware / software link to a storage device storing the encoded video data. The receiver (431) can receive the encoded video data and other data, such as encoded audio data and / or auxiliary data streams, which can be forwarded to their respective consuming entities (not shown). The receiver (431) can separate the encoded video sequence from the other data. To combat network jitter, a buffer memory (415) can be coupled between the receiver (431) and the entropy decoder / parser (420) (hereinafter referred to as "parser (420)"). In some applications, the buffer memory (415) is part of the video decoder (410). In other cases, it can be external to the video decoder (410) (not shown). In other cases, there may be a buffer memory (not shown) outside the video decoder (410), for example, to combat network jitter, and another buffer memory (415) inside the video decoder (410), for example, to handle playout timing. When the receiver (431) receives data from a store / forward device with sufficient bandwidth and controllability or from an isochronous network, the buffer memory (415) may not be needed, or may be small. For use over a best-effort packet network such as the Internet, a buffer memory (415) may be required, which may be relatively large and may advantageously have an adaptive size and may be implemented at least in part in an operating system or similar element (not shown) external to the video decoder (410).

[0062] The video decoder (410) may include a parser (420) to reconstruct symbols (421) from the encoded video sequence. The categories of these symbols include information for managing the operation of the video decoder (410) and potentially controlling a rendering device such as a rendering device (412) (e.g., a display screen) that is not part of the electronic device (430) but can be coupled to the electronic device (430), such as Figure 4As shown. 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 shown). The parser (420) may parse / entropy decode the received coded video sequence. The coding of the coded video sequence may be based on 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 (420) may extract a set of subgroup parameters of at least one pixel subgroup in the video decoder from the coded video sequence based on at least one parameter corresponding to the group. The subgroup may include a group of pictures (Groups 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 (420) may also extract information from the coded video sequence, such as a transform coefficient, a quantizer parameter value, an MV, etc.

[0063] The parser (420) may perform entropy decoding / parsing operations on the video sequence received from the buffer memory (415) to create symbols (421).

[0064] Depending on the type of coded video picture or part thereof (e.g., inter- and intra-pictures, inter- and intra-blocks) and other factors, the reconstruction of the symbol (421) may involve a number of different units. Which units are involved and how they are involved may be controlled by subgroup control information parsed from the coded video sequence by the parser (420). For clarity, such subgroup control information flow between the parser (420) and the following multiple units is not described.

[0065] In addition to the functional blocks already mentioned, the video decoder (410) can be conceptually subdivided into a number of functional units as described below. In a practical implementation operating under commercial constraints, many of these units interact closely with each other and may be at least partially integrated with each other. However, for the purpose of describing the disclosed subject matter, it is appropriate to conceptually subdivide into the following functional units.

[0066] The first unit is a scaler / inverse transform unit (451). The scaler / inverse transform unit (451) receives quantized transform coefficients and control information, including which transform to use, block size, quantization factor, quantization scaling matrix, etc., as symbols (421) from the parser (420). The scaler / inverse transform unit (451) can output blocks including sample values, which can be input into the aggregator (455).

[0067] In some cases, the output samples of the scalar / inverse transform unit (451) 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 (452). In some cases, the intra-picture prediction unit (452) uses surrounding already-reconstructed information obtained from a current picture buffer (458) to generate a block of the same size and shape as the block being reconstructed. The current picture buffer (458) buffers, for example, a partially reconstructed current picture and / or a fully reconstructed current picture. In some cases, the aggregator (455) adds the prediction information already generated by the intra-prediction unit (452) to the output sample information provided by the scalar / inverse transform unit (451) on a per-sample basis.

[0068] In other cases, the output samples of the scaler / inverse transform unit (451) may belong to an inter-coded and possibly motion compensated block. In this case, the motion compensated prediction unit (453) may access a reference picture memory (457) to obtain samples for prediction. After motion compensation of the obtained samples according to the symbols (421) associated with the block, these samples may be added by an aggregator (455) to the output of the scaler / inverse transform unit (451) (in this case referred to as residual samples or residual signal) to generate output sample information. The addresses within the reference picture memory (457) from which the motion compensated prediction unit (453) obtains the predicted samples may be controlled by motion vectors, and it is feasible for the motion compensated prediction unit (453) to obtain these addresses in the form of symbols (421), which may have, for example, X, Y and reference picture components. When sub-sampled accurate motion vectors (MVs) are used, motion compensation may also include interpolation of sample values ​​obtained from the reference picture memory (457), MV prediction mechanisms, etc.

[0069] The output samples of the aggregator (455) may be subjected to various loop filtering techniques in a loop filter unit (456). The video compression techniques may include loop filtering techniques that are controlled by parameters contained in the coded video sequence (also referred to as the coded video bitstream) and that may be used in the loop filtering unit (456) as symbols (421) from the parser (420) and 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 and to previous reconstructed and loop filtered sample values.

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

[0071] Once fully reconstructed, certain coded pictures can be used as reference pictures for future predictions. For example, once the coded image corresponding to the current picture is fully reconstructed, and the coded picture has been identified as a reference picture (e.g., by the parser (420)), the current picture buffer (458) can become part of the reference picture memory (457), and a new current picture buffer can be reallocated before starting reconstruction of the next coded picture.

[0072] The video decoder (410) may perform decoding operations according to a predetermined video compression technique in a standard such as ITU-T Rec. H.265. 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 conforms to 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 under the profile. Conformance to the standard also requires that the complexity of the coded video sequence is within the range defined by the level of the video compression technique or standard. In some cases, the level limits the maximum picture size, maximum frame rate, maximum reconstruction sampling rate (e.g., measured in megasamples per second), maximum reference picture size, etc. In some cases, the limits set by the level may be further limited by the Hypothetical Reference Decoder (HRD) specification and metadata for HRD buffer management for signaling in the coded video sequence.

[0073] In one embodiment, the receiver (431) can receive additional (redundant) data with the encoded video. The additional data can be included as part of the encoded video sequence. The video decoder (410) can use the additional data to correctly decode the data and / or more accurately reconstruct the original video data. The additional data can be in the form of, for example, temporal, spatial or signal-to-noise ratio (SNR) enhancement layers, redundant slices, redundant pictures, forward error correction codes, etc.

[0074] Figure 5 A block diagram of a video encoder (503) according to an embodiment of the present disclosure is shown. The video encoder (503) is included in an electronic device (520). The electronic device (520) includes a transmitter (540) (e.g., a transmitting circuit). The video encoder (503) can be used to replace Figure 3 The video encoder (303) in the example.

[0075] The video encoder (503) can be used to obtain the video source (501) (which is not Figure 5 In another example, the video source (501) is a part of the electronic device (520) to receive the video samples, and the video source can capture the video pictures to be encoded by the video encoder (503). In another example, the video source (501) is a part of the electronic device (520).

[0076] The video source (501) can provide a source video sequence to be encoded by the video encoder (503) in the form of a digital video sample stream, which can have any suitable bit depth (e.g., 8 bits, 10 bits, 12 bits, ...), any color space (e.g., BT.501 Y CrCB, RGB, ...), and any suitable sampling structure (e.g., YCrCb 4:2:0, Y CrCb4:4:4). In a media service system, the video source (501) can be a storage device that stores previously prepared videos. In a video conferencing system, the video source (501) can be a camera that captures local image information as a video sequence. The video data can be provided in the form of multiple individual pictures that impart motion when viewed in sequence. The pictures themselves can be organized as a spatial array of pixels, where each pixel can include one or more samples, depending on the sampling structure, color space, etc. in use. The relationship between pixels and samples can be easily understood by those skilled in the art. The following description focuses on samples.

[0077] According to one embodiment, the video encoder (503) can encode and compress the pictures of the source video sequence into a coded video sequence (543) in real time or under any other time constraints required by the application. Implementing the appropriate encoding speed is a function of the controller (550). In some embodiments, the controller (550) controls other functional units as described below and is functionally coupled to the other functional units. For clarity, the coupling is not described. The parameters set by the controller (550) may include rate control related parameters (picture skipping, quantizer, lambda value of rate distortion optimization technology, ...), picture size, picture group (GOP) layout, maximum MV allowed reference area, etc. The controller (550) can be configured to have other suitable functions related to the video encoder (503) optimized for a specific system design.

[0078] In some embodiments, the video encoder (503) is configured to operate in an encoding loop. As a simplified description, in one example, the encoding loop may include a source encoder (530) (e.g., for creating symbols, e.g., a symbol stream, based on an input picture to be encoded and a reference picture) and a (local) decoder (533) embedded in the video encoder (503). The decoder (533) reconstructs the symbols in a manner similar to what the (remote) decoder will also create to create sample data (because in the video compression techniques considered in the disclosed subject matter, any compression between the symbols and the encoded video bitstream is lossless). The reconstructed sample stream (sample data) is input to a reference picture memory (534). Since the decoding of the symbol stream results in a bit-accurate result independent of the decoder location (local or remote), the contents in the reference picture memory (534) are also bit-accurate between the local encoder and the remote encoder. In other words, when prediction is used during decoding, the predicted part of the encoder "sees" as a reference picture sample exactly the same sample value as the sample value "seen" by the decoder. This basic principle of reference picture synchronization (and the resulting drift if synchronization cannot be maintained, eg due to channel errors) is also used in some related techniques.

[0079] The operation of the "local" decoder (533) may be identical to the operation of a "remote" decoder such as the video decoder (410), described above in conjunction with Figure 4 However, a brief reference to Figure 4 , since symbols are available and the symbol encoding / decoding of the encoded video sequence by the entropy encoder (545) and the parser (420) can be lossless, the entropy decoding portion of the video decoder (410), including the buffer memory (415) and the parser (420), may not be fully implemented in the local decoder (533).

[0080] It can be observed at this point that, in addition to the parsing / entropy decoding present in the decoder, any decoder technology must also be present in the corresponding encoder in substantially the same functional form. For this reason, the disclosed subject matter focuses on the decoder operation. The description of the encoder technology can be simplified because these technologies are the inverse of the fully described decoder technology. Only in certain areas is a more detailed description required and provided below.

[0081] During operation, in some examples, the source encoder (530) may perform motion compensated predictive coding, which predictively encodes an input picture with reference to one or more previously encoded pictures from a video sequence designated as "reference pictures." In this manner, the encoding engine (532) encodes the differences between pixel blocks of the input picture and pixel blocks of a reference picture that may be selected as a reference for prediction of the input picture.

[0082] The local video decoder (533) can decode the encoded video data of the picture that can be designated as the reference picture based on the symbol created by the source encoder (530). The operation of the encoding engine (532) can be advantageously a lossy process. When the encoded video data can be decoded at the video decoder ( Figure 6 When the video encoder (503) is decoded at a remote location (not shown), the reconstructed video sequence may typically be a copy of the source video sequence with some errors. The local video decoder (533) may replicate the decoding process performed by the video decoder on the reference picture and may cause the reconstructed reference picture to be stored in the reference picture cache (534). In this way, the video encoder (503) may locally store copies of the reconstructed reference pictures that have the same content (absent transmission errors) as the reconstructed reference pictures that will be obtained by the remote video decoder.

[0083] The predictor (535) may perform a prediction search on the encoding engine (532). That is, for a new picture to be encoded, the predictor (535) may search the reference picture memory (534) for sample data (as candidate reference pixel blocks) or certain metadata, such as reference picture motion vectors, block shapes, etc., that may be used as appropriate prediction references for the new picture. The predictor (535) may operate on a sample block-pixel block basis to find an appropriate prediction reference. In some cases, as determined by the search results obtained by the predictor (535), the input picture may have prediction references extracted from multiple reference pictures stored in the reference picture memory (534).

[0084] The controller (550) may manage encoding operations of the source encoder (530), including, for example, the setting of parameters and sub-group parameters for encoding video data.

[0085] The outputs of all the aforementioned functional units may undergo entropy coding in an entropy encoder (545). The entropy encoder (545) converts the symbols generated by the various functional units into a coded video sequence by losslessly compressing the symbols according to techniques such as Huffman coding, variable length coding, arithmetic coding, etc.

[0086] The transmitter (540) can buffer the encoded video sequence created by the entropy encoder (545) in preparation for transmission via a communication channel (560), which can be a hardware / software link to a storage device where the encoded video data will be stored. The transmitter (540) can combine the encoded video data from the video encoder (503) with other data to be transmitted, such as encoded audio data and / or ancillary data streams (source not shown).

[0087] The controller (550) can manage the operation of the video encoder (503). During encoding, the controller (550) can assign a specific encoding picture type to each encoded picture, which can affect the encoding technique applied to the corresponding picture. For example, a picture can generally be assigned one of the following picture types:

[0088] An intra picture (I picture) may be a picture that is encoded and decoded without using any other picture in the sequence as a prediction source. Some video codecs allow different types of intra pictures, including, for example, independent decoder refresh ("IDR") pictures. Those skilled in the art are aware of those variants of I pictures and their corresponding applications and features.

[0089] A predicted picture (P picture) may be a picture encoded and decoded using intra prediction or inter prediction, which uses at most one MV and a reference index to predict sample values ​​of each block.

[0090] Bidirectional prediction pictures (B pictures) can be pictures encoded and decoded using intra prediction or inter prediction, which uses up to two MVs and reference indices to predict the sample values ​​of each block. Similarly, multi-prediction pictures can use more than two reference pictures and related metadata to reconstruct a single block.

[0091] A source picture may typically be spatially subdivided into a number of blocks of samples (e.g., 4×4, 8×8, 4×8, or 16×16 blocks of samples each), and encoded on a block-by-block basis. Blocks are predictively encoded with reference to other (already coded) blocks, where the other blocks are determined by the coding allocations applied to the corresponding pictures of the blocks. For example, blocks of an I picture may be non-predictively coded, or may be predictively coded (spatial prediction or intra prediction) with reference to already coded blocks of the same picture. Blocks of pixels of a P picture are predictively coded with reference to one previously coded reference picture, either via spatial prediction or via temporal prediction. Blocks of a B picture may be predictively coded with reference to one or two previously coded reference pictures, either via spatial prediction or via temporal prediction.

[0092] The video encoder (503) may perform encoding operations according to a predetermined video encoding technique or standard (e.g., ITU-T Rec. H.265). In its operation, the video encoder (503) may perform various compression operations, including predictive encoding operations that exploit temporal and spatial redundancy in the input video sequence. Thus, the encoded video data may conform to the syntax specified by the video encoding technique or standard being used.

[0093] In one embodiment, the transmitter (540) may transmit additional data along with the encoded video. The source encoder (530) may include data that is part of the encoded video sequence. The additional data may include temporal / spatial / SNR enhancement layers, other forms of redundant data (e.g., redundant pictures and slices), SEI messages, VUI parameter set fragments, etc.

[0094] Captured from a video as multiple source pictures (video pictures) in a temporal sequence. Intra-picture prediction (often abbreviated to intra prediction) exploits spatial correlations in a given picture, while inter-picture prediction exploits (temporal or other) correlations between pictures. In one example, a particular picture in encoding / decoding, called the current picture, is divided into blocks. 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 can be encoded by a vector called an MV. In the case of using multiple reference pictures, the MV points to a reference block in a reference picture and can have a third dimension that identifies the reference picture.

[0095] In some embodiments, bidirectional prediction techniques may be used in inter-picture prediction. Two reference pictures are used according to the bidirectional prediction technique, for example, a first reference picture and a second reference picture, both of which are before the current picture in the video in decoding order (but may be in the past and future in display order, respectively). A block in the current picture may be encoded by a first MV pointing to a first reference block in the first reference picture and a second MV pointing to a second reference block in the second reference picture. The block may be predicted by a combination of the first reference block and the second reference block.

[0096] In addition, merge mode techniques can be used in inter-picture prediction to improve coding efficiency.

[0097] According to some embodiments of the present disclosure, for example, inter-picture prediction and intra-picture prediction perform prediction in units of blocks. For example, according to the HEVC standard, pictures in a video picture sequence are divided into coding tree units (Coding Tree Units, CTU for short) for compression, and the CTUs in the pictures have the same size, for example, 64×64 pixels, 32×32 pixels, or 16×16 pixels. Typically, a CTU includes three coding tree blocks (Coding Tree Blocks, CTB for short), i.e., a luminance CTB and two chrominance CTBs. Each CTU can be recursively quadtree-divided into one or more coding units (CUs). For example, a 64×64 pixel CTU can be divided into a 64×64 pixel CU, or 4 32×32 pixel CUs, or 16 16×16 pixel CUs. In one example, each CU is analyzed to determine the prediction type of the CU, for example, an inter-prediction type or an intra-prediction type. According to temporal and / or spatial predictability, the CU is divided into one or more prediction units (Prediction Units, PU for short). Typically, each PU includes a luma prediction block (PB) and two chroma PBs. In an embodiment, the prediction operation in encoding (encoding / decoding) is performed in units of prediction blocks. Using a luma prediction block as an example of a prediction block, the prediction block contains a matrix of pixel values ​​(e.g., luma values), such as 8×8 pixels, 16×16 pixels, 8×16 pixels, 16×8 pixels, etc.

[0098] Figure 6 A schematic diagram of a video encoder (603) according to another embodiment of the present disclosure is shown. The video encoder (603) is configured to receive a processed block (e.g., a prediction block) of sample values ​​within a current video picture in a video picture sequence, and encode the processed block into an encoded image as part of an encoded video sequence. In one example, the video encoder (603) is used to replace Figure 3 The video encoder (303) in the example.

[0099] In the HEVC example, a video encoder (603) receives a matrix of sample values ​​for a processing block, such as a prediction block of 8×8 samples, etc. The video encoder (603) determines whether to best encode the processing block using intra mode, inter mode, or a bidirectional prediction mode such as rate-distortion optimization. When the processing block is to be encoded in intra mode, the video encoder (603) can encode the processing block into a coded picture using intra prediction techniques; and when the processing block is to be encoded in inter mode or bidirectional prediction mode, the video encoder (603) can encode the processing block into a coded picture using inter prediction or bidirectional prediction techniques, respectively. In some video coding techniques, the merge mode can be an inter-picture prediction submode, in which the MV is derived from one or more MV predictors without benefiting from an encoded MV component outside the predictor. In some other video coding techniques, there may be an MV component applicable to the object block. In one example, the video encoder (603) includes other components, such as a mode decision module (not shown) for determining the mode of the processing block.

[0100] exist Figure 6 In the example of FIG. 6 , the video encoder ( 603 ) includes Figure 6 An inter-frame encoder (630), an intra-frame encoder (622), a residual calculator (623), a switch (626), a residual encoder (624), a general controller (621), and an entropy encoder (625) are shown coupled together.

[0101] The inter-frame encoder (630) 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), generate inter-frame prediction information (e.g., description of redundant information according to an inter-frame coding technique, motion vectors, merge mode information), and calculate an inter-frame prediction result (e.g., a prediction block) based on the inter-frame prediction information obtained using any suitable technique. In some examples, the reference picture is a decoded reference picture decoded based on the encoded video information.

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

[0103] The general controller (621) is configured to determine the general control data and control other components of the video encoder (603) based on the general control data. In one example, the general controller (621) determines the mode of the block and provides a control signal to the switch (626) based on the mode. For example, when the mode is intra-frame mode, the general controller (621) controls the switch (626) to select the intra-frame mode result for use by the residual calculator (623), and controls the entropy encoder (625) to select the intra-frame prediction information and include the intra-frame prediction information in the bitstream; when the mode is inter-frame mode, the general controller (621) controls the switch (626) to select the inter-frame prediction result for use by the residual calculator (623), and controls the entropy encoder (625) to select the inter-frame prediction information and include the inter-frame prediction information in the bitstream.

[0104] The residual calculator (623) is configured to calculate the difference (residual data) between the received block and the prediction result selected from the intra encoder (622) or the inter encoder (630). The residual encoder (624) is configured to operate based on the residual data to encode the residual data to generate a transform coefficient. In one example, the residual encoder (624) is configured to convert the residual data from the spatial domain to the frequency domain and generate a transform coefficient. The transform coefficient is then quantized to obtain a quantized transform coefficient. In various embodiments, the video encoder (603) also 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 can be used appropriately by the intra encoder (622) and the inter encoder (630). For example, the inter encoder (630) can generate a decoded block based on the decoded residual data and the inter prediction information, and the intra encoder (622) can generate a decoded block based on the decoded residual data and the intra prediction information. The decoded blocks are processed appropriately to generate a decoded picture, and the decoded picture may be buffered in memory circuitry (not shown) and used as a reference picture in some examples.

[0105] The entropy encoder (625) is configured to format the bitstream to include the coded blocks. The entropy encoder (625) is configured to include various information according to a suitable standard, such as HEVC. In one example, the entropy encoder (625) is configured to include general control data, selected prediction information (e.g., intra prediction information or inter prediction information), residual information, and other suitable information in the bitstream. Note that according to the disclosed subject matter, when the block is encoded in inter mode or the merge sub-mode of the bidirectional prediction mode, there is no residual information.

[0106] Figure 7A schematic diagram of a video decoder (710) according to another embodiment of the present disclosure is shown. The video decoder (710) is configured to receive a coded picture as part of a coded video sequence and decode the coded picture to generate a reconstructed picture. In one example, the video decoder (710) is used to replace Figure 3 A video decoder (310) is shown in an example.

[0107] exist Figure 7 In the example of FIG. 7 , the video decoder ( 710 ) includes Figure 7 An entropy decoder (771), an inter-frame decoder (780), a residual decoder (773), a reconstruction module (774) and an intra-frame decoder (772) are shown coupled together.

[0108] The entropy decoder (771) can be configured to reconstruct certain symbols from the encoded image, which represent syntax elements that constitute the encoded image. Such symbols may include, for example, a mode for encoding a block (e.g., intra-frame mode, inter-frame mode, bidirectional prediction mode, merge sub-mode or the latter two modes in another sub-mode), prediction information (e.g., intra-frame prediction information or inter-frame prediction information) that can identify certain samples or metadata predicted by an intra-frame decoder (772) or an inter-frame decoder (780), such as residual information in the form of quantized transform coefficients, etc. In one example, when the prediction mode is an inter-frame or bidirectional prediction mode, the inter-frame prediction information is provided to the inter-frame decoder (780); and when the prediction type is an intra-frame prediction type, the intra-frame prediction information is provided to the intra-frame decoder (772). The residual information may be subjected to inverse quantization and provided to the residual decoder (773).

[0109] The inter-frame decoder (780) is configured to receive the inter-frame prediction information and generate an inter-frame prediction result based on the inter-frame prediction information.

[0110] The intra decoder (772) is configured to receive intra prediction information and generate a prediction result based on the intra prediction information.

[0111] The residual decoder (773) is configured to perform inverse quantization to extract dequantized transform coefficients and process the dequantized transform coefficients to convert the residual from the frequency domain to the spatial domain. The residual decoder (773) may also require certain control information (to include a quantization parameter (QP)), and this information may be provided by the entropy decoder (771) (the data path is not shown because this may only be a small amount of control information).

[0112] The reconstruction module (774) is configured to combine the residual output by the residual decoder (773) and the prediction result (output by the inter-frame or intra-frame prediction module, as appropriate) in the spatial domain to form a reconstructed block, which can be part of a reconstructed picture, which in turn can be part of a reconstructed video. Note that other suitable operations such as deblocking operations can be performed to improve visual quality.

[0113] Note that the video encoder (303), video encoder (503) and video encoder (603) and video decoder (310), video decoder (410) and video decoder (710) may be implemented using any suitable technology. In one embodiment, the video encoder (303), video encoder (503) and video encoder (603) and video decoder (310), video decoder (410) and video decoder (710) may be implemented using one or more integrated circuits. In another embodiment, the video encoder (303), video encoder (503) and video encoder (603) and video decoder (310), video decoder (410) and video decoder (710) may be implemented using one or more processors that execute software instructions.

[0114] II. Sign Prediction of Transform Coefficients

[0115] In some related examples such as Explorative Compression Model (ECM) 1.0, a symbol prediction process for transform coefficients in residual coding can be implemented. In some cases, non-zero transform coefficients in a portion of a transform block (TB) can be used for the symbol prediction process. A portion of a TB may include low-frequency transform coefficients of the TB. The low-frequency transform coefficients are transform coefficients near the upper left corner of the TB. Under EMC-1.0 test conditions, up to 8 symbols of non-zero transform coefficients in a portion of a TB including the lowest 4x4 frequency components of the TB can be predicted. For example, the upper left portion of a TB (e.g., an 8x8 TB) may include the lowest 4×4 frequency components of the TB.

[0116] When predicting multiple symbols (eg, n symbols) of transform coefficients in a TB, the encoder and / or decoder may search the n symbols in a predetermined search order in order to minimize the cost of discontinuity at the boundary of the TB in the spatial domain.

[0117] Figure 8An exemplary symbol prediction process (800) for minimizing the discontinuity cost at the boundary of a TB according to an embodiment of the present disclosure is shown. In some related examples such as ECM-1.0, the search order of the symbol prediction process can be based on n sign bits, whose order is, for example, the encoding order of the Gray code, which is the order of the binary digital system so that two consecutive values ​​differ in only one bit. Each sign bit can represent the sign of a different transform coefficient. In the present disclosure, each search point of the n sign bits can be referred to as a hypothesis. That is, a combination of n different symbols can be referred to as a hypothesis, where each symbol can be positive or negative. For n sign bits, there are a total of 2 n Assumptions. 2 n The hypothesis is that there are 2 n different combinations, where each sign can be positive or negative.

[0118] exist Figure 8 In the symbol prediction process (800), the symbol prediction process (800) is based on 2 of the n symbol bits. n A symbol prediction hypothesis is selected in a predetermined order from prediction hypotheses, as shown in step (S810). Then, the symbol prediction process (800) uses all sampling positions in the top boundary and / or left boundary of the TB to calculate the cost of the selected symbol prediction hypothesis, compares the cost of the selected symbol prediction hypothesis with the cost of one or more other previously calculated symbol prediction hypotheses, and selects the symbol prediction hypothesis with the lowest cost as the symbol prediction candidate with the lowest cost among the existing calculated costs, as shown in step (S820). In step (S830), the symbol prediction process (800) determines whether all hypotheses have been tested. If all hypotheses have been tested, the symbol in the symbol prediction candidate with the lowest cost can be used as a symbol predictor for predicting the symbol of the transform coefficient of the TB. Otherwise, the symbol prediction process (800) can repeat steps (S810), (S820) and (S830).

[0119] It should be noted that Figure 9-12 The reconstructed pixels in the top row and / or leftmost column of each current block (900)-(1200) in FIG. 1 may be referred to as a hypothetical reconstruction boundary. In some cases, the reconstructed pixels in the top row and / or leftmost column may be reconstructed using predicted values ​​and absolute values ​​of transform coefficients corresponding to these pixels and may not have final reconstructed values.

[0120] Fig. 9 An exemplary calculation of the cost of a hypothetical reconstruction boundary according to an embodiment of the present disclosure is shown. Fig. 9In the example, both the left and top reconstructed neighboring pixels of the current block (900) are available. For each reconstructed pixel p in the leftmost column (or left hand side (LHS)) of the current block (900), 0, y, when available, performs a simple linear prediction using the two left reconstructed neighbors to obtain its prediction pred 0,y =(2·p -1,y -p -2,y ). Prediction pred 0,y and reconstructed pixel p 0,y The absolute difference between is added to the cost of the hypothesis. Similarly, for each reconstructed pixel p in the top row of the current block (900), x,0 , when available, performs a simple linear prediction using the two top reconstructed neighboring pixels to obtain its prediction pred x,0 =(2·p x,-1 -p x,-2 ). Prediction pred x,0 and reconstructed pixel p x,0 The absolute difference between is added to the hypothesized cost. Therefore, the hypothesized cost can be expressed as (Equation 1).

[0121]

[0122] Fig.10 FIG. 2 shows an exemplary calculation of the cost of assuming a reconstruction boundary according to another embodiment of the present disclosure. Fig.10 In , only the left reconstructed neighboring pixels of the current block (1000) are available. Similar to the calculation in (Equation 1), the assumed cost calculation can be expressed by (Equation 2), where only the absolute difference based on the left reconstructed neighboring pixels is considered.

[0123]

[0124] Fig.11 FIG. 2 shows an exemplary calculation of the cost of assuming a reconstruction boundary according to another embodiment of the present disclosure. Fig.11 In , only the top reconstructed neighboring pixels of the current block (1100) are available. Similar to the calculation in (Equation 1), the assumed cost calculation can be expressed by (Equation 3), where only the absolute difference based on the top reconstructed neighboring pixels is considered.

[0125]

[0126] III. Low-complexity symbol prediction

[0127] In some related examples such as ECM-1.0, the cost of the symbol prediction process can be calculated proportional to the width and / or height of the block, as shown in (Equation 1)-(Equation 3). In addition, to predict n symbol bits, the calculation can be performed 2 n It can be found that the cost calculation of the symbol prediction process is a hot spot in the ECM-1.0 decoder. Therefore, it is necessary to reduce this calculation.

[0128] The present disclosure includes methods of reducing the computational cost of a symbol prediction process.

[0129] According to some aspects of the present disclosure, the calculation of the cost can be independent of the width and height of the block. For example, when a predetermined number of pixels of the top and / or left border of the block are used in the calculation of the assumed cost, the calculation of the cost can be independent of the dimensions of the block.

[0130] Fig.12 An exemplary calculation of the cost of a hypothetical reconstruction boundary according to an embodiment of the present disclosure is shown. Fig.12 In , symbol prediction may be applicable to a portion of a TB, which includes (for example) a 4×4 sub-block of the TB having the lowest frequency component (for example, the lowest frequency transform coefficient). When the top reconstructed neighboring pixels of the current block (1200) are available, a predetermined number of pixels (for example, 4 samples from the top boundary of the current block (1200)) may be used in linear prediction similar to (Equation 3). Similarly, when the left reconstructed neighboring pixels of the current block (1200) are available, a predetermined number of pixels (for example, 4 samples from the left boundary of the current block) may be used in linear prediction similar to (Equation 2).

[0131] According to aspects of the present disclosure, the predetermined number of samples in the linear prediction used for cost calculation may be based on the number of lowest frequency components of the symbol prediction. The predetermined number of samples may be independent of the size of the block.

[0132] exist Fig.12 In the example, the current block (1200) has a width w and a height h, which are multiples of 4. The four predetermined top boundary samples p used in linear prediction are 1,0 、p 3,0 、p 5,0 and p 7,0 Can be located in Fig.12 The following horizontal positions are shown:

[0133] x1=w / 8 (Equation 4)

[0134] x2=x1+w / 4 (Equation 5)

[0135] x3=x2+w / 4 (Equation 6)

[0136] x4=x3+w / 4 (Equation 7)

[0137] Here, / represents integer division in hardware implementation or programming language (eg, C programming language).

[0138] Four predetermined left boundary samples p for linear prediction 0,0 、p 0,2 、p 0,4 , and p 0,6 Can be located in Fig.12 The following vertical positions are shown:

[0139] y1=h-1-h / 8 (Equation 8)

[0140] y2=y1-h / 4 (Equation 9)

[0141] y3=y2-h / 4 (Equation 10)

[0142] y4=y3-h / 4 (Equation 11)

[0143] Here, / represents integer division in hardware implementation or programming language (eg, C programming language).

[0144] Fig.13 An exemplary symbol prediction process (1300) for minimizing the discontinuity cost at the boundary of a TB according to an embodiment of the present disclosure is shown. Fig.13 In , the symbol prediction process (1300) is based on sub-sampling of pixels at the boundaries of the TB, so that a predetermined number of pixels can be selected to calculate the cost.

[0145] exist Fig.13 In the process, the symbol prediction process (1300) determines the sub-sampling position of the pixel at the boundary of the TB, as shown in step (S1310). Then, as shown in step (S1320), the symbol prediction process (1300) selects the sub-sampling position of the pixel at the boundary of the TB from the 2 of the n symbol bits. nA symbol prediction hypothesis is selected in a predetermined order from prediction hypotheses. Then, the symbol prediction process (1300) uses the subsampling position in the top boundary and / or the left boundary of the TB to calculate the cost of the selected symbol prediction hypothesis, compares the cost of the selected symbol prediction hypothesis with the cost of one or more other previously calculated symbol prediction hypotheses, and selects the symbol prediction hypothesis with the lowest cost as the symbol prediction candidate with the lowest cost among the existing calculated costs, as shown in step (S1330). In step (S1340), the symbol prediction process (1300) determines whether all hypotheses have been tested. If all hypotheses have been tested, the symbols in the symbol prediction candidates with the lowest cost can be used as a set of symbol predictors for predicting the symbols of the transform coefficients of the TB. Otherwise, the symbol prediction process (1300) can repeat steps (S1310)-(S1340).

[0146] In one embodiment, for a block whose width w and height h are multiples of 4, the subsampling position of the top boundary sample of the block can be expressed as the following horizontal position:

[0147] x1=x 偏移 (Equation 12)

[0148] x2=x1+δx (Equation 13)

[0149] x3=x2+δx (Equation 14)

[0150] x4=x3+δx (Equation 15)

[0151] Where / represents integer division in C, x 偏移 is a predetermined non-negative offset, and δx is the distance between two adjacent samples. 偏移 Example values ​​of may include 0 and w / 8. Example values ​​of δx may include 1 and w / 4.

[0152] The subsampling position of the left boundary sample of the block can be expressed as the following vertical position:

[0153] y1=h-1-y 偏移 (Equation 16)

[0154] y2=y1-δy (Equation 17)

[0155] y3=y2-δy (Equation 18)

[0156] y4=y3-δy (Equation 19)

[0157] Wherein, / represents integer division in hardware implementation or programming language (for example, C programming language), y 偏移 is a predetermined non-negative offset, and δy is the distance between two adjacent samples.偏移 Example values ​​of may include 0 and h / 8. Example values ​​of δy may include 1 and h / 4.

[0158] In one embodiment, for a block whose width w and height h are multiples of 4, the subsampling position of the top boundary sample of the block can be expressed as the following horizontal position:

[0159] x1=x 偏移 (Equation 20)

[0160] x2=x1+δx1 (Equation 21)

[0161] x3=x2+δx2 (Equation 22)

[0162] x4=x3+δx3 (Equation 23)

[0163] Where / represents integer division in hardware implementation or programming language (e.g., C programming language), x 偏移 is a predetermined non-negative offset, δx1, δx2, δx3 are the positive distances between two adjacent samples where x4<w.

[0164] The subsampling position of the left boundary sample of the block can be expressed as the following vertical position:

[0165] y1=h-1-y 偏移 (Equation 24)

[0166] y2=y1-δy1 (Equation 25)

[0167] y3=y2-δy2 (Equation 26)

[0168] y4=y3-δy3 (Equation 27)

[0169] Where / represents integer division in C, y 偏移 is a predetermined non-negative offset, and δy1, δy2, δy3 are the positive distances between two adjacent samples where y4≥4.

[0170] The present disclosure includes methods applicable to video coding systems having a sign prediction process, wherein the signs of low-frequency transform coefficients can be predicted by selecting signs that minimize the cost of discontinuities at the boundaries of a current block (e.g., TB). For example, the present disclosure includes methods for reducing cost calculations by subsampling pixels in the cost calculations.

[0171] According to aspects of the present disclosure, the number of samples in the subsampling process can be based on a predetermined number of low-frequency components in the TB that are suitable for the symbol prediction process. The number of samples in the subsampling process can be independent of the size of the TB. For example, the low-frequency components suitable for the symbol prediction process can be the 4×4 lowest frequency transform coefficients of the TB.

[0172] In one embodiment, the number of samples at the top boundary of the TB used for cost calculation in the symbol prediction process may be predetermined. For example, for a Single Instruction Multiple Data (SIMD) implementation, the predetermined number of samples may be 4 or 8.

[0173] In one embodiment, the number of samples of the left boundary of the TB used for cost calculation in the symbol prediction process can be predetermined. For example, for SIMD implementation, the predetermined number of samples can be 4 or 8.

[0174] In one embodiment, the samples at the top boundary of the TB used for cost calculation in the symbol prediction process may be evenly spaced.

[0175] In one embodiment, the samples at the left border of the TB used for cost calculation in the symbol prediction process may be evenly spaced.

[0176] In some embodiments, the subsampling process can only be applied to TBs of certain sizes. For example, if the number of samples in the subsampling process is 8, the subsampling process can be applied to TBs of 16×16, but not to TBs of 8×8.

[0177] In one embodiment, the number of samples at the top boundary of the TB may be predetermined based on the width w. For example, when the width w is greater than a threshold, the number of samples may be predetermined to be a first number. Otherwise, the number of samples may be predetermined to be a second number. For at least one value of w, the predetermined number may be less than w. For example, when the predetermined number of samples is 4, a 4x4 TB may not be subsampled, but an 8x8 TB may be subsampled.

[0178] In one embodiment, the number of samples at the left border of the TB may be predetermined based on the height h. For example, when the height h is greater than a threshold, the number of samples may be predetermined to be a first number. Otherwise, the number of samples may be predetermined to be a second number. For at least one value of h, the predetermined number may be less than h. For example, when the predetermined number of samples is 4, a 4x4 TB may not be subsampled, but an 8x8 TB may be subsampled.

[0179] In one embodiment, the sampling positions at the top boundary of the TB may be predetermined based on the width w and be evenly spaced. For example, the sampling positions at the top boundary of the TB may be predetermined based on (Equation 12)-(Equation 15).

[0180] In one embodiment, the sampling positions at the top boundary of the TB may be predetermined based on the width w and not evenly spaced. For example, the sampling positions at the top boundary of the TB may be predetermined based on (Equation 20)-(Equation 23).

[0181] In one embodiment, the sampling positions at the top boundary of the TB may be predetermined based on the width w, and at least two sampling positions are adjacent to each other.

[0182] In one embodiment, the sampling positions at the left border of the TB may be predetermined based on the height h and be evenly spaced. For example, the sampling positions at the left border of the TB may be predetermined based on (Equation 16)-(Equation 19).

[0183] In one embodiment, the sampling positions at the left border of the TB may be predetermined based on the height h and not evenly spaced. For example, the sampling positions at the left border of the TB may be predetermined based on (Equation 24)-(Equation 27).

[0184] In one embodiment, the sampling positions at the left boundary of the TB may be predetermined based on the height h, and at least two sampling positions are adjacent to each other.

[0185] IV. Flowchart

[0186] Fig.14 A flow chart outlining an exemplary process (1400) according to an embodiment of the present disclosure is shown. In various embodiments, the process (1400) is performed by a processing circuit, for example, a processing circuit in a terminal device (210), (220), (230), and (240), a processing circuit that performs the functions of a video encoder (303), a processing circuit that performs the functions of a video decoder (310), a processing circuit that performs the functions of a video encoder (503), etc. In some embodiments, the process (1400) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the process (1400).

[0187] The process (1400) may generally start at step (S1410), where the process (1400) receives a video bitstream including a coding residual of a current block. The process (1400) then proceeds to step (S1420).

[0188] At step (S1420), the process (1400) determines a plurality of transform coefficients of the current block based on the encoded residual. Then, the process (1400) proceeds to step (S1430).

[0189] At step (S1430), the process (1400) calculates a cost for each of a plurality of symbol prediction hypotheses by performing symbol prediction on a subset of a plurality of transform coefficients based on a subset of samples in at least one of a topmost row or a leftmost column of a current block. The number of samples in the sample subset is a constant. The process (1400) then proceeds to step (S1440).

[0190] At step (S1440), the process (1400) selects one of the plurality of symbol prediction hypotheses having the minimum cost from among the costs of the plurality of symbol prediction hypotheses. Then, the process (1400) proceeds to step (S1450).

[0191] At step (S1450), the process (1400) performs symbol prediction according to the selected symbol prediction hypothesis. Then, the process (1400) terminates.

[0192] In one embodiment, the constant is predetermined. For example, the constant may be 4 or 8.

[0193] In one embodiment, the constant is determined based on the number of subsets of the plurality of transform coefficients. For example, the number of subsets of the plurality of transform coefficients may be predetermined (e.g., 4×4 low-frequency transform coefficients in a TB), and the constant may be determined to be less than the predetermined number of subsets of the plurality of transform coefficients. When the subset of the plurality of transform coefficients is predetermined to be 4×4 low-frequency transform coefficients, the constant may be 4 for the topmost row or leftmost column.

[0194] In one embodiment, the constant is determined based on a comparison between a dimension of the block and a threshold. In one example, when the width (or height) of the block is greater than the threshold, the constant in the top row (or leftmost column) may be a first quantity. Otherwise, the constant in the top row (or leftmost column) may be a second quantity that is less than the first quantity.

[0195] In one embodiment, the constant is determined based on a comparison between a dimension of the block and one or more thresholds. In one example, the size of the block can be compared with two thresholds. When the width (or height) of the block is not greater than the first threshold, the constant in the top row (or leftmost column) can be a first quantity. When the width (or height) of the block is greater than the first threshold and less than the second threshold, the constant in the top row (or leftmost column) can be a second quantity. When the width (or height) of the block is greater than the second threshold, the constant in the top row (or leftmost column) can be a third quantity. In another example, the dimension of the block can be compared with different numbers of thresholds.

[0196] In one embodiment, the constant is determined based on a lookup table including a plurality of values ​​of the constant. Each of the plurality of values ​​is associated with a different value of a dimension of the block. For example, when the width (or height) of the block is within a first range, the constant in the top row (or leftmost column) may be a first quantity according to the lookup table. When the width (or height) of the block is within a second range, the constant in the top row (or leftmost column) may be a second quantity according to the lookup table, and so on.

[0197] In one embodiment, the position of the sample subset in at least one of the topmost row or the leftmost column of the current block is determined based on one dimension of the block. For example, the position of the sample subset in the topmost row (or leftmost column) of the block is determined based on the width (or height) of the block.

[0198] In one embodiment, at least two positions of the sample subset in at least one of the topmost row or the leftmost column of the current block are adjacent. For example, the positions of two samples in the topmost row (or the leftmost column) are adjacent to each other.

[0199] In one embodiment, the positions of the sample subsets in at least one of the topmost row or leftmost column of the current block are evenly spaced. Fig.12 The four samples p in the top row 1,0 、p 3,0 、p 5,0 and p 7,0 (or p in the leftmost column 0,0 、p 0,2 、p 0,4 and p 0,6 ) are evenly spaced.

[0200] In one embodiment, the process (1400) calculates a cost for each of a plurality of symbol prediction hypotheses based on (i) a subset of samples in at least one of a topmost row or a leftmost column of a current block and (ii) neighboring reconstructed samples in at least one of a row above the current block or a column to the left of the current block.

[0201] V.Computer System

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

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

[0204] The instructions may be executed on various types of computers or components thereof, including, for example, personal computers, tablet computers, servers, smartphones, gaming devices, IoT devices, etc.

[0205] Fig.15 The components of the computer system (1500) shown in the example are exemplary in nature and are not intended to impose any limitation on the scope of use or functionality of computer software implementing embodiments of the present disclosure. The configuration of components should also not be interpreted as having any dependency or requirement on any one component or combination of components shown in the exemplary embodiment of the computer system (1500).

[0206] The computer system (1500) may include certain human interface input devices. Such human interface input devices may respond to input from one or more human users, such as tactile input (e.g., keystrokes, swipes, data glove movements), audio input (e.g., voice, clapping), visual input (e.g., gestures), olfactory input (not shown). Human interface devices may also be used to capture certain media that are not necessarily directly related to a person's conscious input, such as audio (e.g., voice, music, ambient sounds), images (e.g., scanned images, photographic images obtained from a still image camera), and video (e.g., two-dimensional video, three-dimensional video including stereoscopic video).

[0207] Input human interface devices may include one or more of the following (only one of each is depicted): keyboard (1501), mouse (1502), trackpad (1503), touch screen (1510), data gloves (not shown), joystick (1505), microphone (1506), scanner (1507), camera (1508).

[0208] The computer system (1500) may also include certain human-computer interface output devices. Such human-computer interface output devices may stimulate one or more senses of a human user, such as through tactile output, sound, light, and smell / taste. Such human-computer interface output devices may include tactile output devices (e.g., tactile feedback through a touch screen (1510), a data glove (not shown), or a joystick (1505), but there may also be tactile feedback devices that are not used as input devices), audio output devices (e.g., speakers (1509), headphones (not shown)), visual output devices (e.g., screens (1510), including CRT screens, LCD screens, plasma screens, OLED screens, each with or without touch screen input capabilities, each with or without tactile feedback capabilities - some of which are capable of outputting two-dimensional visual output or more than three-dimensional output, through means such as stereo output; virtual reality glasses (not shown), holographic displays, and smoke boxes (not shown)) and printers (not shown). These visual output devices (e.g., screens (1510)) may be connected to the system bus (1548) via a graphics adapter (1550).

[0209] The computer system (1500) may also include human-accessible storage devices and their associated media, such as optical media including a CD / DVD ROM / RW (1520) with a CD / DVD or similar media (1521), a thumb drive (1522), a removable hard drive or solid state drive (1523), traditional magnetic media such as tapes and floppy disks (not shown), dedicated ROM / ASIC / PLD devices such as a security dongle (not shown), and the like.

[0210] 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 include transmission media, carrier waves, or other transient signals.

[0211] The computer system (1500) may also include a communication network interface (1554) to one or more communication networks (1555). The one or more communication networks (1555) may be, for example, wireless, wired, optical. The one or more communication networks (1555) may also be local, wide, metropolitan, vehicular and industrial, real-time, delay-tolerant, etc. Examples of the one or more communication networks (1555) include local area networks such as Ethernet, wireless LAN, 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 CANBus, etc. Some networks typically require an external network interface adapter connected to some common data port or peripheral bus (1549) (e.g., a USB port of the computer system (1500)); others are typically integrated into the core of the computer system (1500) by connecting to a system bus as described below (e.g., an Ethernet interface in a PC computer system or a cellular network interface in a smartphone computer system). Using any of these networks, the computer system (1500) can communicate with other entities. Such communication can be one-way, receive-only (e.g., broadcast television), one-way, send-only (e.g., CANbus to certain CANbus devices), or two-way, for example, to other computer systems using local or wide area digital networks. As described above, certain protocols and protocol stacks can be used on each of these networks and network interfaces.

[0212] The aforementioned human interface devices, human-accessible storage devices, and network interfaces may be attached to the core (1540) of the computer system (1500).

[0213] The core (1540) may include one or more central processing units (CPUs) (1541), graphics processing units (GPUs) (1542), dedicated programmable processing units in the form of field programmable gate areas (FPGAs) (1543), hardware accelerators for specific tasks (1544), graphics adapters (1550), etc. These devices, along with read-only memory (ROM) (1545), random access memory (1546), and internal large-capacity storage (1547) such as internal non-user accessible hard drives and SSDs, may be connected via a system bus (1548). In some computer systems, the system bus (1548) may be accessed in the form of one or more physical plugs to allow expansion of additional CPUs, GPUs, etc. Peripheral devices may be connected to the core's system bus (1548) directly or via a peripheral bus (1549). In one example, a screen (1510) may be connected to a graphics adapter (1550). Peripheral bus architectures include PCI, USB, etc.

[0214] The CPU (1541), GPU (1542), FPGA (1543) and accelerator (1544) can execute certain instructions, which can be combined to form the above-mentioned computer code. The computer code can be stored in ROM (1545) or RAM (1546). Transition data can also be stored in RAM (1546), while permanent data can be stored in, for example, internal mass storage (1547). Fast storage and retrieval of any storage device can be achieved by using a cache memory, which can be closely associated with one or more CPUs (1541), GPUs (1542), mass storage (1547), ROM (1545), RAM (1546), etc.

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

[0216] As an example and not limitation, a computer system (1500) having an architecture, in particular a core (1540), can provide functionality as a result of a processor (including a CPU, GPU, FPGA, accelerator, etc.) that executes software embedded in one or more tangible computer-readable media. Such a computer-readable medium can be a medium associated with a user-accessible mass storage as described above and certain memories of a core (1540) that are non-transitory, for example, a core internal mass storage (1547) or a ROM (1545). Software implementing various embodiments of the present disclosure can be stored in such a device and executed by the core (1540). Depending on specific needs, the computer-readable medium may include one or more storage devices or chips. The software can enable the core (1540) and in particular the processor therein (including a CPU, GPU, FPGA, etc.) to perform a specific process or a specific part of a specific process described herein, including defining a data structure stored in RAM (1546) and modifying such a data structure according to a software-defined process. In addition or as an alternative, the computer system provides functionality as a result of logic hardwired or otherwise contained in a circuit (e.g., accelerator (1144)), which can replace software or operate in conjunction with software to perform specific processes or specific parts of specific processes described herein. Where appropriate, references to software may include logic and vice versa. Where appropriate, references to computer-readable media may include circuits (e.g., integrated circuits (ICs)) storing the software to be executed, circuits containing logic for execution, or both. The present disclosure includes any suitable combination of hardware and software.

[0217] Although the present disclosure has described several exemplary embodiments, there are changes, permutations, and various alternative 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 are therefore within the spirit and scope of the present disclosure.

[0218] Appendix A: Abbreviations

[0219] ALF: Adaptive Loop Filter

[0220] AMVP: Advanced Motion Vector Prediction

[0221] APS: Adaptation Parameter Set

[0222] ASIC: Application-Specific Integrated Circuit

[0223] ATMVP: Alternative / Advanced Temporal Motion Vector Prediction

[0224] AV1: AOMedia Video 1

[0225] AV2: AOMedia Video 2

[0226] BMS: Benchmark Set

[0227] BV: Block Vector

[0228] CANBus: Controller Area Network Bus

[0229] CB: Coding Block

[0230] CC-ALF: Cross-Component Adaptive Loop Filter

[0231] CD: Compact Disc

[0232] CDEF: Constrained Directional Enhancement Filter

[0233] CPR: Current Picture Referencing

[0234] CPU: Central Processing Unit

[0235] CRT: Cathode Ray Tube

[0236] CTB: Coding Tree Block

[0237] CTU: Coding Tree Unit

[0238] CU: Coding Unit

[0239] DPB: Decoder Picture Buffer

[0240] DPCM: Differential Pulse-Code Modulation

[0241] DPS: Decoding Parameter Set

[0242] DVD: Digital Video Disc

[0243] FPGA: Field Programmable Gate Area

[0244] JCCR: Joint CbCr Residual Coding

[0245] JVET: Joint Video Exploration Team

[0246] GOP: Groups of Pictures

[0247] GPU: Graphics Processing Unit

[0248] GSM: Global System for Mobile communications

[0249] HDR: High Dynamic Range

[0250] HEVC: High Efficiency Video Coding

[0251] HRD: Hypothetical Reference Decoder

[0252] IBC: Intra Block Copy

[0253] IC:Integrated Circuit

[0254] ISP: Intra Sub-Partitions

[0255] JEM: Joint Exploration Model

[0256] LAN: Local Area Network

[0257] LCD: Liquid-Crystal Display

[0258] LR: Loop Restoration Filter

[0259] LRU: Loop Restoration Unit

[0260] LTE: Long-Term Evolution

[0261] MPM: Most Probable Mode

[0262] MV: Motion Vector

[0263] OLED: Organic Light-Emitting Diode

[0264] PB: Prediction Blocks

[0265] PCI: Peripheral Component Interconnect

[0266] PDPC: Position Dependent Prediction Combination

[0267] PLD: Programmable Logic Device

[0268] PPS: Picture Parameter Set

[0269] PU: Prediction Unit

[0270] RAM: Random Access Memory

[0271] ROM: Read-Only Memory

[0272] SAO: Sample Adaptive Offset

[0273] SCC: Screen Content Coding

[0274] SDR: Standard Dynamic Range

[0275] SEI: Supplementary Enhancement Information

[0276] SNR: Signal Noise Ratio

[0277] SPS: Sequence Parameter Set

[0278] SSD: Solid-state Drive

[0279] TU: Transform Unit

[0280] USB: Universal Serial Bus

[0281] VPS: Video Parameter Set

[0282] VUI: Video Usability Information

[0283] VVC: Versatile Video Coding

[0284] WAIP: Wide-Angle Intra Prediction

Claims

1. A video decoding method, characterized in that: The method comprises: receiving a video bitstream; determining a plurality of transform coefficients for a current block in the video bitstream; Determine a first sample subset from the reconstructed samples in the topmost row of the current block, and determine a second sample subset from the reconstructed samples in the leftmost column of the current block, wherein positions of first samples in the first sample subset in the topmost row are evenly spaced, or positions of at least two first samples in the first sample subset in the topmost row are adjacent, and positions of second samples in the second sample subset in the leftmost column are evenly spaced, or positions of at least two second samples in the second sample subset in the leftmost column are adjacent; calculating a cost for each of a plurality of symbol prediction hypotheses by performing symbol prediction on a subset of the plurality of transform coefficients using at least one of the first sample subset and the second sample subset, wherein the number of samples in the first sample subset is a first constant less than the total number of samples in a topmost row of the current block, and the number of samples in the second sample subset is a second constant less than the total number of samples in a leftmost column of the current block; selecting, from among the costs of the plurality of symbol prediction hypotheses, a symbol prediction hypothesis of the plurality of symbol prediction hypotheses having a minimum cost; and The symbol prediction is performed according to the selected symbol prediction hypothesis.

2. The method according to claim 1, characterized in that The first constant and the second constant are predetermined.

3. The method according to claim 1, characterized in that The first constant and the second constant are determined based on a number of subsets of the plurality of transform coefficients.

4. The method according to claim 1, characterized in that: A position of a first sample in the first sample subset is determined based on a width of the current block, and a position of a second sample in the second sample subset is determined based on a height of the current block.

5. The method according to claim 1, characterized in that The calculations include: The cost of the corresponding symbol prediction hypothesis is calculated for each of the plurality of symbol prediction hypotheses based on (i) at least one of the first sample subset and the second sample subset of the current block and (ii) adjacent reconstructed samples in at least one of a row above the current block or a column to the left of the current block.

6. A video decoding device, characterized in that: include: A memory for storing instructions; A processor, configured to call the instructions stored in the memory to implement the method described in any one of claims 1 to 5.

7. A non-transitory computer-readable storage medium storing instructions, characterized in that: When executed by at least one processor, the instructions cause the at least one processor to perform the method of any one of claims 1-5.