Encoding end-of-block flags between components

By employing joint EOB flags and entropy decoding for color components, the video encoding and decoding process achieves enhanced compression efficiency, addressing redundancy and optimizing bit allocation in video data.

JP7586588B2Active Publication Date: 2024-11-19TENCENT AMERICA LLC
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2023525007
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2022-01-14
Filing Date
2022-01-28
Publication Date
2024-11-19
Estimated Expiration
2042-01-28

AI Technical Summary

Technical Problem

Existing video encoding and decoding technologies face challenges in efficiently reducing redundancy and optimizing bit allocation for intra-prediction modes and motion vectors, leading to suboptimal compression ratios and increased data requirements.

Method used

The implementation of advanced video encoding techniques that utilize joint End of Block (EOB) flags for color components, entropy decoding methods, and context-based flag derivation to enhance compression efficiency by optimizing the representation of EOB flags across different color components.

Benefits of technology

This approach improves video compression efficiency by reducing bit allocation inefficiencies, leading to more effective data reduction and better utilization of bandwidth and storage resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007586588000005
    Figure 0007586588000005
  • Figure 0007586588000006
    Figure 0007586588000006
  • Figure 0007586588000007
    Figure 0007586588000007
Patent Text Reader

Abstract

A method, apparatus, and computer-readable storage medium for encoding / decoding video data in a decoder, the method including receiving a first end-of-block (EOB) flag associated with a first color component of a data block from the video data, deriving a context for entropy encoding the first EOB flag based on a second EOB flag associated with a second color component of the data block of the video data, and performing entropy decoding of the first EOB flag based on the derived context.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] [Incorporated by reference] This application claims the benefit of priority to U.S. Provisional Application No. 63 / 225,273, filed July 23, 2021, and U.S. Nonprovisional Application No. 17 / 576,255, filed January 14, 2022, the entire contents of both applications being incorporated by reference.

[0002] [Technical field] This disclosure relates generally to a set of advanced video encoding / decoding techniques, and more specifically to designs for encoding of inter-component End of Block flags. [Background technology]

[0003] This background discussion provided herein is intended to generally present the context of the present disclosure. Work of the inventors named in this application, to the extent that their work is described in this background section, and aspects of this description that may not otherwise qualify as prior art at the time of the filing of this application, are not admitted, either explicitly or implicitly, as prior art to the present disclosure.

[0004] Video encoding and decoding can be performed using inter-picture prediction with motion compensation. Uncompressed digital video can include a sequence of pictures, each having spatial dimensions of, for example, 1920x1080 luminance samples and associated full or subsampled chrominance samples. The sequence of pictures can have a fixed or variable picture rate (also called frame rate), for example, a picture rate of 60 pictures per second or 60 frames per second. Uncompressed video has specific bit rate requirements for streaming or data processing. For example, a video with a pixel resolution of 1920x1080, a frame rate of 60 frames per second, and 4:2:0 chroma subsampling with 8 bits per color channel per pixel requires a bandwidth approaching 1.5 Gbit / s. One hour of such video requires more than 600 Gbytes of storage space.

[0005] One goal of video encoding and decoding may be the reduction of redundancy in an uncompressed input video signal through compression. Compression may help reduce the above bandwidth and / or storage space requirements, possibly by more than one order of magnitude. Both lossless and lossy compression, as well as combinations thereof, may be used. Lossless compression refers to techniques where an exact copy of the original signal can be reconstructed from the compressed original signal through a decoding process. Lossy compression refers to an encoding / decoding process where the original video information is not fully preserved during encoding and cannot be fully recovered during decoding. When using lossy compression, the reconstructed signal may not be identical to the original signal, but the distortion between the original and reconstructed signals will be small enough to render the reconstructed signal useful for the intended application despite some information loss. For video, lossy compression is widely used in many applications. The amount of acceptable distortion depends on the application. For example, a user of a particular consumer video streaming application may tolerate higher distortion than a user of a movie or television broadcast application. The compression ratio achievable by a particular encoding algorithm can be selected or adjusted to reflect different distortion tolerances; generally, higher tolerable distortion permits encoding algorithms that result in higher loss and higher compression ratios.

[0006] Video encoders and decoders can utilize techniques from a number of broad categories and steps, including, for example, motion compensation, Fourier transform, quantization, and entropy coding.

[0007] Video codec techniques can include a technique known as intra-coding. In intra-coding, sample values ​​are represented without reference to samples or other data from previously reconstructed reference pictures. In some video codecs, a picture is spatially divided into blocks of samples. If all blocks of samples are coded in intra mode, the picture can be called an intra-picture. Intra-pictures and their derivatives, such as independent decoder refresh pictures, can be used to reset the decoder state and therefore can be used as the first picture in a coded video bitstream and video session or as a still image. The samples of the block after intra-prediction can then be subjected to a transform to the frequency domain, and the transform coefficients so generated can be quantized before entropy coding. Intra-prediction refers to a technique that minimizes the sample values ​​in the pre-transform domain. In some cases, the smaller the DC value and the smaller the AC coefficients after the transform, the fewer bits are required for a given quantization step size to represent the block after entropy coding.

[0008] Traditional intra-coding, e.g. as known from MPEG-2 generation encoding techniques, does not use intra-prediction. However, some newer video compression techniques include techniques that attempt to encode / decode a block based on surrounding sample data and / or metadata that are obtained during the encoding and / or decoding of its spatial neighbors and that precede in decoding order the block of data being intra-coded or decoded. Such techniques are referred to below as "intra-prediction" techniques. It should be noted that, at least in some cases, intra-prediction uses only reference data from the current picture being reconstructed and not from other reference pictures.

[0009] There may be various forms of intra prediction. If more than one such technique is available in a given video coding technique, the technique used may be referred to as an intra prediction mode. One or more intra prediction modes may be provided in a particular codec. In certain cases, a mode may have sub-modes and / or may be associated with various parameters, and the mode / sub-mode information and intra coding parameters of a block of video may be coded separately or may be included jointly in a mode codeword. Which codeword to use for a given mode, sub-mode and / or parameter combination may affect the coding efficiency gain through intra prediction, as well as the entropy coding technique used to convert the codeword into a bitstream.

[0010] Certain modes of intra prediction were introduced in H.264, refined in H.265, and further refined in newer coding techniques such as the joint exploration model (JEM), versatile video coding (VVC), and benchmark set (BMS). In general, for intra prediction, a predictor block can be formed using neighboring sample values ​​that become available. For example, available values ​​of a particular set of neighboring samples along a particular direction and / or line may be copied into the predictor block. A reference to the direction used can be coded in the bitstream or may be predicted itself.

[0011] Referring to FIG. 1A, a subset of nine predictor directions specified in the 33 possible intra predictor directions of H.265 (corresponding to the 33 angle modes out of the 35 intra modes specified in H.265) is depicted at the bottom right. The point (101) where the arrows converge represents the sample to be predicted. The arrows represent the direction when neighboring samples are used to predict the sample at 101. For example, arrow (102) indicates that sample (101) is predicted from neighboring sample(s) to the top right at an angle of 45 degrees from the horizontal. Similarly, arrow (103) indicates that sample (101) is predicted from neighboring sample(s) to the bottom left of sample (101) at an angle of 22.5 degrees from the horizontal.

[0012] 1A, a square block (104) of 4×4 samples is depicted at the top left (shown in bold dashed lines). The square block (104) contains 16 samples, each labeled with an “S” and its position in the Y dimension (e.g., row index) and its position in the X dimension (e.g., column index). For example, sample S21 is the second sample (from the top) in the Y dimension and the first sample (from the left) in the X dimension. Similarly, sample S44 is the fourth sample in the block (104) in both the Y and X dimensions. Since the block is 4×4 samples in size, S44 is at the bottom right. Also shown is an exemplary reference sample that follows a similar numbering scheme. The reference sample is labeled R and its Y position (e.g., row index) and X position (column index) relative to the block (104). In both H.264 and H.265, neighboring prediction samples in the vicinity of the block being reconstructed are used.

[0013] Intra-picture prediction of block 104 may begin by copying reference sample values ​​from neighboring samples according to a signaled prediction direction. For example, assume that the coded video bitstream includes signaling indicating the prediction direction of the arrow (102) for this block 104. That is, the samples are predicted from the top right predicted sample(s) at an angle of 45 degrees from the horizontal. In such a case, samples S41, S32, S23, and S14 are predicted from the same reference sample R05. Then sample S44 is predicted from reference sample R08.

[0014] In certain cases, especially when the direction is not divisible by 45 degrees, the values ​​of multiple reference samples may be combined, for example by interpolation, to calculate the reference sample.

[0015] As video coding technology continues to develop, the number of possible directions has increased. In H.264 (2003), for example, nine different directions are available for table intra prediction. This increases to 33 in H.265 (2013), and JEM / VVC / BMS at the time of this disclosure can support up to 65 directions. Experiments are performed to help identify the most suitable intra prediction directions, and certain techniques may be used in entropy coding to code these most suitable directions with a small number of bits while accepting a certain bit penalty for the direction. Furthermore, in some cases, the direction itself can be predicted from the neighboring directions used in the intra prediction of the decoded neighboring blocks.

[0016] FIG. 1B shows a schematic diagram (180) illustrating the 65 intra prediction directions according to JEM to illustrate the increasing number of prediction directions in various coding techniques developed over time.

[0017] The scheme of mapping intra-prediction direction bits to prediction directions in the coded video bitstream may vary from one video coding technique to another, for example ranging from a simple direct mapping of prediction directions to intra-prediction modes to complex adaptation schemes involving codewords, most probable modes, and similar techniques. However, in all cases, there may be certain directions of intra-prediction that are statistically less likely to occur in the video content than certain other directions. Since the goal of video compression is to reduce redundancy, in a well-designed video coding technique, these less likely methods may be represented by a larger number of bits than the more likely directions.

[0018] Inter-picture prediction or inter-prediction may be based on motion compensation. In motion compensation, sample data from a previously reconstructed picture or part thereof (reference picture) may be used for prediction of a newly reconstructed picture or part thereof (e.g., block) after being spatially shifted in a direction indicated by a motion vector (hereinafter, MV). In some cases, the reference picture may be the same as the picture currently being reconstructed. The MV may have two dimensions, X and Y, or three dimensions, with the third dimension being an indication of the reference picture to be used (similar to the temporal dimension).

[0019] In some video compression techniques, the current MV applicable to a particular region of sample data can be predicted from other MVs, e.g., other MVs associated with other regions of sample data that are spatially adjacent to the region being reconstructed and that precede the current MV in decoding order. Doing so can substantially reduce the overall amount of data required to encode the MV by relying on reducing redundancy in the associated MVs, thereby increasing compression efficiency. MV prediction can work effectively because, for example, when encoding an input video signal derived from a camera (known as natural video), there is a statistical probability that regions larger than the region to which a single MV is applicable in a video sequence move in similar directions and therefore can potentially be predicted using similar motion vectors derived from MVs of neighboring regions. The result is that the actual MV for a given region is similar or identical to the MV predicted from the surrounding MVs. Such MVs may then be represented with fewer bits after entropy encoding than would be used if the MVs were directly encoded instead of predicted from neighboring MVs. In some cases, MV prediction can be an example of lossless compression of a signal (i.e., MV) derived from the original signal (i.e., sample stream). In other cases, the MV prediction itself may be lossy, for example due to rounding errors in computing the predictor from several surrounding MVs.

[0020] H.265 / HEVC (ITU-T Rec. H.265, "High Efficiency Video Coding", December 2016) describes various MV prediction mechanisms. Among the many MV prediction mechanisms specified by H.265, a technique hereafter referred to as "spatial merge" is described herein.

[0021] Specifically, referring to FIG. 2, a current block (201) contains samples that the encoder found during the motion search process to be predictable from a previous block of the same size but spatially shifted. Instead of directly encoding its MV, the MV can be derived from metadata associated with one or more reference pictures, e.g., from the most recent reference picture (in decoding order), using MVs associated with any of the five surrounding samples, denoted A0, A1, and B0, B1, B2 (202-206, respectively). In H.265, MV prediction can use predictors from the same reference picture as the neighboring blocks use. Summary of the Invention

[0022] Aspects of this disclosure provide methods and apparatus for video encoding and decoding.

[0023] Aspects of the present disclosure also provide a non-transitory computer-readable medium having stored thereon instructions that, when executed by a computer, cause the computer to perform a method for video decoding and / or encoding.

[0024] According to one aspect, an embodiment of the present disclosure provides a method for decoding video data in a decoder, the method including receiving a first end of block (EOB) flag associated with a first color component of a data block from the video data, deriving a context for entropy encoding the first EOB flag based on a second EOB flag associated with a second color component of the data block of the video data, and performing entropy decoding of the first EOB flag based on the derived context.

[0025] According to another aspect, an embodiment of the present disclosure provides a method for decoding video data at a decoder, the method including receiving a joint EOB flag associated with a color component of a data block from the video data, the joint EOB flag indicating an EOB flag value for each of the color components of the data block, and processing the color components of the data block based on the joint EOB flag.

[0026] According to another aspect, an embodiment of the present disclosure provides a method for decoding video data in a decoder, the method including: receiving a first flag associated with two chroma color components of a data block from the video data, the first flag indicating whether EOB flags respectively associated with one of the two chroma color components of the data block are equal or not, receiving a second flag indicating an EOB flag value of one of the two chroma color components of the data block, and deriving an EOB flag value of the other of the two chroma color components of the data block based on the first flag and the second flag.

[0027] According to another aspect, an embodiment of the present disclosure provides a method for decoding video data in a decoder, the method including the steps of receiving a first flag associated with two chroma color components of a data block and a luma color component of the data block using the two chroma color components, the first flag indicating whether EOB flags associated with one of the two chroma color components of the data block and the luma color component of the data block, respectively, are equal, receiving a second flag indicating an EOB flag value of the luma color component of the data block, and deriving an EOB flag value of the luma color component of the data block based on the second flag.

[0028] According to another aspect, an embodiment of the present disclosure provides an apparatus for video encoding and / or decoding, the apparatus including a memory storing instructions and a processor in communication with the memory, the processor being configured, when executing the instructions, to cause the apparatus to perform the above-described method for video decoding and / or encoding.

[0029] According to yet another aspect, an embodiment of the present disclosure provides a non-transitory computer-readable medium having stored thereon instructions that, when executed by a computer for video decoding and / or encoding, cause the computer to perform the above-described method for video decoding and / or encoding.

[0030] These and other aspects and their implementations are described in more detail in the drawings, detailed description, and claims. [Brief description of the drawings]

[0031] Further features, nature and various advantages of the disclosed subject matter will become more apparent from the following detailed description and the accompanying drawings. [Figure 1A] 1 shows a schematic diagram of an example subset of intra-prediction direction modes. [Figure 1B] 1 shows an illustrative diagram of an exemplary intra-prediction direction. [Diagram 2] 1 illustrates a schematic diagram of a current block and its surrounding spatial merging candidates for motion vector prediction in one example. [Diagram 3] 1 illustrates a simplified block diagram of a communication system in accordance with an exemplary embodiment; [Figure 4] 4 shows a simplified block diagram schematic of a communication system (400) in accordance with an example embodiment. [Diagram 5] 1 shows a schematic diagram of a simplified block diagram of a video decoder according to an exemplary embodiment; [Figure 6] 1 shows a schematic diagram of a simplified block diagram of a video encoder according to an example embodiment; [Figure 7]1 shows a block diagram of a video encoder according to an example embodiment. [Figure 8] 2 shows a block diagram of a video decoder according to an exemplary embodiment; [Figure 9] 1 illustrates a coding block partitioning scheme according to an exemplary embodiment of the present disclosure. [Figure 10] 4 illustrates another scheme for coding block partitioning according to an exemplary embodiment of the present disclosure. [Figure 11] 4 illustrates another scheme for coding block partitioning according to an exemplary embodiment of the present disclosure. [Figure 12] 4 illustrates another scheme for coding block partitioning according to an exemplary embodiment of the present disclosure. [Figure 13] 4 illustrates a scheme for splitting a coding block into multiple transform blocks and a coding order for the transform blocks according to an exemplary embodiment of the present disclosure. [Figure 14] 4 illustrates another scheme for splitting a coding block into multiple transform blocks and the coding order of the transform blocks according to an exemplary embodiment of the present disclosure. [Figure 15] 4 illustrates another scheme for splitting a coding block into multiple transform blocks according to an exemplary embodiment of the present disclosure. [Figure 16] 1 illustrates a flow chart according to an exemplary embodiment of the present disclosure. [Figure 17] 1 shows a schematic diagram of a computer system according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0032] FIG. 3 illustrates a simplified block diagram of a communication system (300) according to one embodiment of the present disclosure. The communication system (300) includes a plurality of terminal devices that can communicate with each other, for example, via a network (350). For example, the communication system (300) includes a first pair of terminal devices (310) and (320) interconnected via the network (350). In the example of FIG. 3, the first pair of terminal devices (310) and (320) may perform unidirectional transmission of data. For example, the terminal device (310) may encode video data (e.g., a stream of video pictures captured by the terminal device (310)) for transmission to the other terminal device (320) via the network (350). The encoded video data may be transmitted in the form of one or more encoded video bitstreams. The terminal device (320) may receive the encoded video data from the network (350), decode the encoded video data to reconstruct the video pictures, and display the video pictures according to the reconstructed video data. The one-way data transmission may be implemented in a media service application or the like.

[0033] In another example, the communication system (300) includes a second pair of terminal devices (330) and (340) performing bidirectional transmission of encoded video data, which may be implemented, for example, during a video conferencing application. For the bidirectional transmission of data, in one example, each of the terminal devices (330) and (340) may encode video data (e.g., a stream of video pictures captured by the terminal device) for transmission to the other of the terminal devices (330) and (340) over the network (350). Each of the terminal devices (330) and (340) may receive the encoded video data transmitted by the other of the terminal devices (330) and (340), decode the encoded video data to reconstruct the video pictures, and display the video pictures on an accessible display device in accordance with the reconstructed video data.

[0034] In the example of FIG. 3, the terminal devices (310), (320), (330), and (340) may be implemented as servers, personal computers, and smartphones, although applicability of the underlying principles of the present disclosure may not be limited thereto. The embodiments of the present disclosure may be implemented in desktop computers, laptop computers, tablet computers, media players, wearable computers, and / or dedicated video conferencing equipment. The network (350) represents any number or type of network that conveys encoded video data between the terminal devices (310), (320), (330), and (340), including, for example, wired (wired) and / or wireless communication networks. The communication network (350) may exchange data in circuit-switched, packet-switched, and / or other types of channels. Exemplary networks include telecommunications networks, local area networks, wide area networks, and / or the Internet. For purposes of discussion herein, the architecture and topology of the network (350) may not be important to the operation of the present disclosure, unless explicitly described below.

[0035] 4 shows an arrangement of video encoders and video decoders in a video streaming environment as an example of an application for the disclosed subject matter. The disclosed subject matter may be equally applicable to other video applications including, for example, video conferencing, digital TV broadcasting, gaming, virtual reality, storage of compressed video on digital media including CDs, DVDs, memory sticks, etc.

[0036] The video streaming system may include a video source (401), e.g., a digital camera, and may include a video capture subsystem (413) that generates, e.g., a stream of uncompressed video pictures or images (402). In one example, the stream of video pictures (402) includes samples recorded by the digital camera of the video source 401. The stream of video pictures (402), depicted as a bold line to emphasize its high data volume compared to the encoded video data (404) (or encoded video bitstream), may be processed by an electronic device (420) that includes a video encoder (403) coupled to the video source (401). The video encoder (403) may include hardware, software, or a combination thereof to enable or implement aspects of the disclosed subject matter, as described in more detail below. The encoded video data (404) (or encoded video bitstream (404)), depicted as a thin line to emphasize its lower data volume compared to the uncompressed video picture stream (402), can be stored on the streaming server (405) for future use or directly on a downstream video device (not shown). One or more streaming client subsystems, such as the client subsystems (406) and (408) of FIG. 4, can access the streaming server (405) to retrieve copies (407) and (409) of the encoded video data (404). The client subsystem (406) can include a video decoder (410), for example within the electronic device (430). The video decoder (410) can decode an input copy of the encoded video data (407) and generate an output stream of uncompressed video pictures (411) that can be rendered on a display (412) (e.g., a display screen) or other rendering device (not shown). Video decoder 410 may be configured to perform some or all of the various functions described in this disclosure.In some streaming systems, the encoded video data (404), (407), and (409) (e.g., video bitstreams) may be encoded according to a particular video encoding / compression standard. Examples of these standards include ITU-T Recommendation H.265. In one example, a video encoding standard under development is informally known as Versatile Video Coding (VVC). The disclosed subject matter may be used in the context of VVC and other video encoding standards.

[0037] It is noted that electronic devices 420 and 430 may include other components (not shown). For example, electronic device 420 may include a video decoder (not shown), and electronic device 430 may also include a video encoder (not shown).

[0038] 5 shows a block diagram of a video decoder (510) according to any of the following embodiments of the present disclosure. The video decoder (510) can be included in an electronic device (530). The electronic device (530) can include a receiver (531) (e.g., a receiving circuit). The video decoder (510) can be used in place of the video decoder (310) in the example of FIG. 4.

[0039] The receiver (531) may receive one or more coded video sequences to be decoded by the video decoder (510). In the same or another embodiment, one coded video sequence may be decoded at a time, and the decoding of each coded video sequence is independent of the other coded video sequences. Each video sequence may be associated with multiple video frames or images. The coded video sequences may be received from a channel (501), which may be a storage device that stores the coded video data or a hardware / software link to a streaming source that transmits the coded video data. The receiver (531) may receive the coded video data together with other data, such as coded audio data and / or auxiliary data streams, which may be forwarded through respective processing circuits (not shown). The receiver (531) may separate the coded video sequences from other data. To combat network jitter, a buffer memory (515) may be located between the receiver (531) and the entropy decoder / parser (520) (hereinafter the "parser"). In certain applications, the buffer memory (515) may be implemented as part of the video decoder (510). In other applications, it may be external to the video decoder (510) (not shown). In still other applications, there may be a buffer memory (not shown) external to the video decoder (510), e.g., to combat network jitter, and there may be an additional buffer memory (515) internal to the video decoder (510), e.g., to handle playback timing. If the receiver (531) is receiving data from a store / forward device of sufficient bandwidth and controllability, or from an isochronous network, the buffer memory (515) may not be needed or may be small. For use with best-effort packet networks such as the Internet, a sufficient size of the buffer memory (515) may be required, and the size may be relatively large.Such a buffer memory may be implemented with an adaptive size and may be implemented, at least in part, outside the video decoder (510) in an operating system or similar element (not shown).

[0040] The video decoder (510) may include a parser (520) for reconstructing symbols (521) from the coded video sequence. These categories of symbols include information used to manage the operation of the video decoder (510) and potentially information for controlling a rendering device such as a display (512) (e.g., a display screen). The display may or may not be an integral part of the electronic device (530) as shown in FIG. 5 and may be coupled to the electronic device (530). The control information for the rendering device(s) may be in the form of Supplementary Enhancement Information (SEI) messages or Video Usability Information (VUI) parameter set fragments (not shown). The parser (520) may parse / entropy decode the coded video sequence received by the parser (520). The entropy coding of the coded video sequence may follow a video coding technique or standard and may follow various principles including variable length coding, Huffman coding, arithmetic coding with or without context sensitivity, etc. The parser (520) may extract from the coded video sequence a set of subgroup parameters for at least one of the subgroups of pixels in the video decoder based on at least one parameter corresponding to the subgroup. The subgroups may include a Group of Pictures (GOP), a picture, a tile, a slice, a macroblock, a coding unit (CU), a block, a transform unit (TU), a prediction unit (PU), etc. The parser (520) may also extract information from the coded video sequence such as transform coefficients (e.g., Fourier transform coefficients), quantizer parameter values, motion vectors, etc.

[0041] The parser (520) can perform an entropy decoding / parsing operation on the video sequence received from the buffer memory (515) to generate symbols (521).

[0042] The reconstruction of the symbols (521) may involve several different processing or functional units, depending on the type of coded video picture or portion thereof (e.g., inter and intra picture, inter and intra block) and other factors. The units involved and how they are involved may be controlled by subgroup control information parsed by the parser (520) from the coded video sequence. The flow of such subgroup control information between the parser (520) and several of the processing or functional units described below is not depicted for the sake of simplicity.

[0043] In addition to the functional blocks already mentioned, the video decoder (510) can be conceptually divided into several functional units, as described below. In a practical implementation working under commercial constraints, many of these functional units will interact closely with each other and may be at least partially integrated with each other. However, for purposes of clearly describing the various functions of the disclosed subject matter, a conceptual subdivision into functional units is adopted in the following disclosure.

[0044] The first unit may include a scalar / inverse transform unit (551), which may receive quantized transform coefficients and control information as symbol(s) (521) from the parser (520). The control information may include information indicating what type of inverse transform to use, block size, quantization coefficients / parameters, quantization scaling matrices, etc. The scalar / inverse transform unit (551) may output a block containing sample values ​​that can be input to an aggregator (555).

[0045] In some cases, the output samples of the scaler / inverse transform (551) may relate to intra-coded blocks, i.e., blocks that do not use prediction information from a previously reconstructed picture, but may use prediction information from a previously reconstructed portion of the current picture. Such prediction information may be provided by an intra-picture prediction unit (552). In some cases, the intra-picture prediction unit (552) may generate a block of the same size and shape as the block being reconstructed using surrounding block information already reconstructed and stored in a current picture buffer (558). The current picture buffer (558) may, for example, buffer a partially reconstructed current picture and / or a fully reconstructed current picture. In some implementations, the aggregator (555) may add, on a sample-by-sample basis, the prediction information generated by the intra-prediction unit (552) to the output sample information provided by the scaler / inverse transform unit (551).

[0046] In other cases, the output samples of the scalar / inverse transform unit (551) may relate to an inter-coded, potentially motion-compensated block. In such a case, the motion compensation prediction unit (553) may access the reference picture memory (557) to retrieve samples used for inter-picture prediction. After motion compensating the retrieved samples according to the symbols (521) for the block, these samples may be added by an aggregator (555) to the output of the scalar / inverse transform unit (the output of unit 551 may be referred to as a residual sample or residual signal) to generate output sample information. The address in the reference picture memory (557) from which the motion compensation unit (553) retrieves the prediction samples may be controlled by a motion vector available to the motion compensation unit (553) in the form of a symbol (521). The symbol may have, for example, an X, a Y component (shift), and a reference picture component (time). Motion compensation may involve the interpolation of sample values ​​taken from a reference picture memory (557) when sub-sample accurate motion vectors are used, and may also involve motion vector prediction mechanisms, etc.

[0047] The output samples of the aggregator (555) may be subjected to various loop filtering techniques in a loop filter unit (556). Video compression techniques may include in-loop filter techniques that are controlled by parameters contained in the coded video sequence (also called the coded video bitstream) and made available to the loop filter unit (556) as symbols (521) from the parser (520), but may also be responsive to meta-information obtained during decoding of previous portions (in decoding order) of the coded picture or coded video sequence, as well as to previously reconstructed loop filtered sample values. As will be described in more detail below, several types of loop filters may be included as part of the loop filter unit 556, in various orders.

[0048] The output of the loop filter unit (556) can be a sample stream, which can be output to a rendering device (512) or stored in a reference picture memory (557) for use in future inter-picture prediction.

[0049] Once a particular coded picture is fully reconstructed, it can be used as a reference picture for future inter-picture prediction. For example, once a coded picture corresponding to a current picture is fully reconstructed and the coded picture is identified as a reference picture (e.g., by the parser (520)), the current picture buffer (558) can become part of the reference picture memory (557), and a fresh current picture buffer can be reallocated before beginning reconstruction of a subsequent coded picture.

[0050] The video decoder (510) may perform decoding operations according to a given video compression technique adopted in a standard such as ITU-T Recommendation H.265. The encoded video sequence may conform to the syntax prescribed by the video compression technique or standard being used, in the sense that the encoded video sequence conforms to the syntax of the video compression technique or standard and the profile documented in the video compression technique or standard. Specifically, the profile may select a particular tool from all tools available in the video compression technique or standard as the only tool available for use under that profile. To conform to a standard, the complexity of the encoded video sequence may be within a range defined by a level of the video compression technique or standard. In some cases, the level constrains the maximum picture size, maximum frame rate, maximum reconstruction sample rate (e.g., measured in units of megasamples per second), maximum reference picture size, etc. The limits set by the level may be further constrained through a Hypothetical Reference Decoder (HRD) specification and metadata for HRD buffer management, possibly signaled in the encoded video sequence.

[0051] In some exemplary embodiments, the receiver (531) may receive additional (redundant) data along with the encoded video. The additional data may be included as part of the encoded video sequence(s). The additional data may be used by the video decoder (510) to properly decode the data and / or to more accurately reconstruct the original video data. The additional data may be in the form of, for example, temporal, spatial, or signal-to-noise ratio (SNR) enhancement layers, redundant slices, redundant pictures, forward error correction codes, etc.

[0052] 6 shows a block diagram of a video encoder (603) according to an exemplary embodiment of the present disclosure. The video encoder (603) may be included in an electronic device (620). The electronic device (620) may further include a transmitter (640) (e.g., a transmitting circuit). The video encoder (603) may be used in place of the video encoder (403) in the example of FIG. 4.

[0053] The video encoder (603) can receive video samples from a video source (601) (which is not part of the electronic device (620) in the example of FIG. 6) that can capture video images to be encoded by the video encoder (603). In another example, the video source (601) can be implemented as part of the electronic device (620).

[0054] The video source (601) may provide a source video sequence to be encoded by the video encoder (603) in the form of a digital video sample stream that may be of any suitable bit depth (e.g., 8-bit, 10-bit, 12-bit, ...), any color space (e.g., BT.601 YCrCB, RGB, XYZ, ...), and any suitable sampling structure (e.g., YCrCb 4:2:0, YCrCb 4:4:4). In a media service system, the video source (601) may be a storage device capable of storing pre-prepared video. In a video conferencing system, the video source (601) may be a camera that captures image information locally as a video sequence. The video data may be provided as a number of individual pictures or images that impart motion when viewed in sequence. The picture itself may be organized as a spatial array of pixels, each of which may contain one or more samples, depending on the sampling structure, color space, etc., in use. Those skilled in the art can easily understand the relationship between pixels and samples. The following description focuses on samples.

[0055] According to some example embodiments, the video encoder (603) can encode and compress pictures of a source video sequence into an encoded video sequence (643) in real-time or under any other time constraint required by an application. Enforcing an appropriate encoding rate constitutes one function of the controller (650). In some embodiments, the controller (650) may be operatively coupled to and control other functional units, as described below. Such couplings are not depicted for the sake of brevity. Parameters set by the controller (650) may include parameters related to rate control (picture skip, quantizer, lambda value for rate-distortion optimization techniques, ...), picture size, group of pictures (GOP) layout, maximum motion vector search range, etc. The controller (650) can be configured to have other suitable functions for the video encoder (603) optimized for a particular system design.

[0056] In some example embodiments, the video encoder (603) may be configured to operate in an encoding loop. As a simplistic explanation, in one example, the encoding loop may include a source encoder (630) (e.g., responsible for generating symbols such as a symbol stream based on an input picture to be encoded and a reference picture(s)) and a (local) decoder (633) embedded in the video encoder (603). Even if the embedded decoder 633 processes the encoded video stream without entropy coding by the source decoder 630, the decoder (633) reconstructs the symbols to generate sample data in a similar manner as a (remote) decoder would also generate them (in the video compression techniques considered in the disclosed subject matter, any compression between the symbols in the entropy coding and the encoded video bitstream may be lossless). The reconstructed sample stream (sample data) is input to a reference picture memory (634). Since decoding of the symbol stream yields bit-accurate results regardless of the decoder location (local or remote), the contents of the reference picture memory (634) are also bit-accurate between the local and remote encoders. In other words, the prediction part of the encoder "sees" exactly the same sample values ​​as the reference picture samples that the decoder "sees" when using the prediction during decoding. This basic principle of reference picture synchrony (and the resulting drift when synchrony cannot be maintained, e.g., due to channel errors) is used to improve coding quality.

[0057] The operation of the "local" decoder (633) may be the same as the operation of a "remote" decoder, e.g., the video decoder (410), already described in detail above in connection with Figure 5. However, referring also briefly to Figure 5, because symbols are available and the encoding / decoding of symbols into a coded video sequence by the entropy coder (645) and parser (420) may be lossless, the entropy decoding portion of the video decoder (410), including the buffer memory (415) and parser (420), may not be fully implemented in the encoder's local decoder (633).

[0058] An observation that can be made at this point is that any decoder technique, except for parsing / entropy decoding, which may only exist in the decoder, may need to exist in substantially the same functional form in the corresponding encoder. For this reason, the disclosed subject matter may sometimes focus on the decoder operation, which is similar to the decoding portion of the encoder. Thus, a description of the encoder technique may be omitted, since it is the inverse of the decoder technique, which is described generically. Only in certain areas or aspects of the encoder is a more detailed description provided below.

[0059] In operation, in some example implementations, the source encoder (630) may perform motion-compensated predictive encoding, 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 (632) encodes differences (or residuals) in color channels between pixel blocks of the input picture and pixel blocks of a reference picture(s) that may be selected as a predictive reference for the input picture. The terms "residual" and its derivative "residual" may be used interchangeably.

[0060] The local video decoder (633) can decode the encoded video data of pictures that may be designated as reference pictures based on the symbols generated by the source encoder (630). The operation of the encoding engine (632) can advantageously be a lossy process. When the encoded video data can be decoded in a video decoder (not shown in FIG. 6), the reconstructed video sequence can be a copy of the source video sequence, typically with some errors. The local video decoder (633) can replicate the decoding process that may be performed on the reference pictures by the video decoder and store the reconstructed reference pictures in a reference picture cache (634). In this way, the video encoder (603) can locally store copies of reconstructed reference pictures that have common content (in the absence of transmission errors) as reconstructed reference pictures that would be obtained by a far-end (remote) video decoder.

[0061] The predictor (635) may perform a prediction search for the coding engine (632). That is, for a new picture to be coded, the predictor (635) may search the reference picture memory (634) for sample data (as candidate reference pixel blocks) or specific metadata, such as reference picture motion vectors, block shapes, etc., that may serve as suitable prediction references for the new picture. The predictor (635) may operate on a sample block-by-pixel block basis to find suitable prediction references. In some cases, as determined by the search results obtained by the predictor (635), the input picture may have prediction references drawn from multiple reference pictures stored in the reference picture memory (634).

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

[0063] The output of all of the above functional units may undergo entropy coding in an entropy coder (645), which converts the symbols produced 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.

[0064] The transmitter (640) can buffer the encoded video sequence generated by the entropy encoder (645) and prepare it for transmission over a communication channel (660), which may be a hardware / software link to a storage device that stores the encoded video data. The transmitter (640) can merge the encoded video data from the video encoder (630) with other data to be transmitted, such as encoded audio data and / or auxiliary data streams (sources not shown).

[0065] The controller (650) may manage the operation of the video encoder (603). During encoding, the controller (650) may assign a certain coding picture type to each coded picture. The coding picture type may affect the coding technique that may be applied to each picture. For example, pictures may often be assigned as one of the following picture types:

[0066] An intra picture (I-picture) may be one that can be coded and decoded without using other pictures in a sequence as a source of prediction. Some video codecs allow different types of intra pictures, including, for example, Independent Decoder Refresh ("IDR") pictures. Those skilled in the art will recognize these variations of I-pictures and their respective uses and characteristics.

[0067] A predictive picture (P-picture) may be one that can be encoded and decoded using intra- or inter-prediction, which uses at most one motion vector and reference index to predict the sample values ​​of each block.

[0068] Bidirectionally predicted pictures (B-pictures) may be those that can be coded and decoded using intra- or inter-prediction, which uses up to two motion vectors and reference indices to predict the sample values ​​of each block. Similarly, multi-predictive pictures can use more than two reference pictures and associated metadata for the reconstruction of a single block.

[0069] A source picture may typically be spatially divided into multiple sample coding blocks (e.g., blocks of 4x4, 8x8, 4x8, or 16x16 samples each) and coded block by block. Blocks may be predictively coded with reference to other (already coded) blocks, as determined by the coding assignment applied to the respective picture of the block. For example, blocks of an I picture may be non-predictively coded or predictively coded with reference to already coded blocks of the same picture (spatial or intra prediction). Pixel blocks of a P picture may be predictively coded via spatial prediction or via temporal prediction with reference to one previously coded reference picture. Blocks of a B picture may be predictively coded via spatial prediction or via temporal prediction with reference to one or two previously coded reference pictures. Source pictures or intermediate processing pictures may be subdivided into other types of blocks for other purposes. As will be explained in more detail below, the division of coding blocks and other types of blocks may or may not follow the same scheme.

[0070] The video encoder (603) may perform encoding operations according to a given video encoding technique or standard, such as ITU-T Recommendation H.265. In its operations, the video encoder (603) 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 a syntax specified by the video encoding technique or standard used.

[0071] In some example embodiments, the transmitter (640) may transmit additional data along with the encoded video. The source encoder (630) may include such data as part of the encoded video sequence. The additional data may include temporal / spatial / SNR enhancement layers, other types of redundant data such as redundant pictures and slices, SEI messages, VUI parameter set fragments, etc.

[0072] A video may be captured as multiple source pictures (video pictures) in a temporal sequence. Intra-picture prediction (often abbreviated as intra-prediction) exploits spatial correlation in a given picture, while inter-picture prediction exploits temporal or other correlation between pictures. For example, a particular picture to be coded / decoded, called a current picture, may be divided into blocks. If a block in the current picture resembles a reference block in a previously coded and still buffered reference picture in the video, it may be coded by a vector called a motion vector. A motion vector points to a reference block in a reference picture, and may have a third dimension that identifies the reference picture if multiple reference pictures are used.

[0073] In some exemplary embodiments, bidirectional prediction techniques can be used in inter-picture prediction. Such bidirectional prediction techniques use two reference pictures, such as a first reference picture and a second reference picture, both of which precede the current picture in decoding order (but may be past or future, respectively, in display order) in the video. A block in the current picture can be coded by a first motion vector that points to a first reference block in the first reference picture and a second motion vector that points to a second reference block in the second reference picture. A block can be jointly predicted by a combination of the first and second reference blocks.

[0074] Furthermore, to improve coding efficiency, merge mode techniques may be used in inter-picture prediction.

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

[0076] 7 shows a diagram of a video encoder (703) according to another exemplary embodiment of the present disclosure. The video encoder (703) is configured to receive a processed block (e.g., a predictive block) of sample values ​​in a current video picture in a sequence of video pictures and to encode the processed block into an encoded picture that is part of an encoded video sequence. The exemplary video encoder (703) may be used in place of the video encoder (403) in the example of FIG. 4.

[0077] For example, the video encoder (703) receives a matrix of sample values ​​for a processing block, such as a predictive block, such as 8×8 samples. The video encoder (703) then determines whether the processing block is best coded using an intra mode, an inter mode, or a bi-directional predictive mode, for example using rate-distortion optimization (RDO). If it is determined that the processing block is coded in an intra mode, the video encoder (703) may use intra prediction techniques to code the processing block into a coded picture. If it is determined that the processing block is coded in an inter mode or a bi-directional predictive mode, the video encoder (703) may use inter prediction techniques or bi-directional prediction techniques, respectively, to code the processing block into a coded picture. In some exemplary embodiments, a merge mode may be used as a sub-mode of inter-picture prediction, in which a motion vector is derived from one or more motion vector predictors, but without the benefit of coded motion vector components outside the predictors. In some exemplary embodiments, there may be motion vector components applicable to the current block. Thus, the video encoder (703) may include components not explicitly shown in FIG. 7, such as a mode decision module (not shown) for determining a prediction mode for a processing block.

[0078] In the example of FIG. 7, the video encoder (703) includes an inter-encoder (730), an intra-encoder (722), a residual calculator (723), a switch (726), a residual encoder (724), a general controller (721), and an entropy coder (725) coupled together as shown in the exemplary arrangement of FIG.

[0079] The inter encoder (730) is configured to receive samples of a current block (e.g., a processing block), compare the block with one or more reference blocks in a reference picture (e.g., blocks in previous and subsequent pictures in display order), generate inter prediction information (e.g., a description of redundant information due to inter coding techniques, motion vectors, merge mode information), and calculate an inter prediction result (e.g., a predicted block) based on the inter prediction information using any suitable technique. In some examples, the reference picture is a decoded reference picture that has been decoded based on the coded video information using a decoding unit 633 (shown as a residual decoder 728 in FIG. 7, as described in more detail below) embedded in the example encoder 620 of FIG. 6.

[0080] The intra encoder (722) is configured to receive samples of a current block (e.g., a processing block), compare the block to blocks already encoded in the same picture, generate transformed and quantized coefficients, and possibly also generate intra prediction information (e.g., intra prediction direction information according to one or more intra encoding techniques). The intra encoder (722) may also calculate intra prediction results (e.g., predicted blocks) based on the intra prediction information and reference blocks in the same picture.

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

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

[0083] The entropy encoder (725) is configured to format a bitstream to include the encoded block and to perform entropy encoding. The entropy encoder (725) is configured to include various information in the bitstream. For example, the entropy encoder (725) may be 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. When encoding a block in a merged sub-mode of either the inter mode or the bi-prediction mode, the residual information may not be present.

[0084] 8 shows a diagram of an exemplary video decoder (810) according to another embodiment of the present disclosure. The video decoder (810) is configured to receive encoded pictures that are part of an encoded video sequence and decode the encoded pictures to generate reconstructed pictures. In one example, the video decoder (810) may be used in place of the video decoder (410) in the example of FIG. 4.

[0085] In the example of FIG. 8, the video decoder (810) includes an entropy decoder (871), an inter decoder (880), a residual decoder (873), a reconstruction module (874), and an intra decoder (872) coupled together as shown in the exemplary configuration of FIG. 8.

[0086] The entropy decoder (871) may be configured to reconstruct from the coded picture certain symbols that represent the syntax elements of which the coded picture is composed. Such symbols may include, for example, prediction information (e.g., intra-mode, inter-mode, bi-predictive mode, merged sub-mode, or another sub-mode) that may identify the mode in which the block is coded, certain samples or metadata used for prediction by the intra-decoder (872) or inter-decoder (880), residual information, for example in the form of quantized transform coefficients, etc. In one example, if the prediction mode is an inter- or bi-predictive mode, the inter-prediction information is provided to the inter-decoder (880). If the prediction type is an intra-prediction type, the intra-prediction information is provided to the intra-decoder (872). The residual information may undergo inverse quantization and is provided to the residual decoder (873).

[0087] An inter decoder (880) may be configured to receive inter prediction information and generate inter prediction results based on the inter prediction information.

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

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

[0090] A reconstruction module (874) may be configured to combine, in the spatial domain, the residual output by the residual decoder (873) and the prediction result (output by the intra- or inter-prediction module, as the case may be) to form reconstructed blocks that form part of the reconstructed picture as part of the reconstructed video. Note that other suitable operations, such as deblocking operations, may also be performed to improve visual quality.

[0091] It should be noted that the video encoders (403), (603), (703) and the video decoders (410), (510), (810) may be implemented using any suitable technology. In some exemplary embodiments, the video encoders (403), (603), (703) and the video decoders (410), (510), (810) may be implemented using one or more integrated circuits. In other embodiments, the video encoders (403), (603), (703) and the video decoders (410), (510), (810) may be implemented using one or more processors executing software instructions.

[0092] With regard to coding block partitioning, in some exemplary implementations, a predefined pattern may be applied. As shown in FIG. 9, an exemplary four-way partition tree may be used starting from a first predefined level (e.g., 64×64 block level) to a second predefined level (e.g., 4×4 level). For example, a base block may be subject to four partition choices shown at 902, 904, 906, and 908, and a partition designated as R is allowed with recursive partitioning, where the same partition tree as shown in FIG. 9 may be repeated at a lower scale down to the lowest level (e.g., 4×4 level). In some implementations, further restrictions may be applied to the partitioning scheme of FIG. 9. In the implementation of FIG. 9, rectangular partitions (e.g., 1:2 / 2:1 rectangular partitions) may be allowed but not recursively, and square partitions are allowed to be recursively. Partitioning by recursion according to FIG. 9 produces a final set of coding blocks, if necessary. Such a scheme may be applied to one or more of the color channels.

[0093] FIG. 10 shows an example of another predefined partition pattern that allows recursive partitioning to form a partition tree. As shown in FIG. 10, for example, 10 different partition structures or patterns may be predefined. The root block may start at a predefined level (e.g., from the 128×128 level or the 64×64 level). The exemplary partition structure in FIG. 10 includes various 2:1 / 1:2 and 4:1 / 1:4 rectangular partitions. A partition type having three subpartitions, shown as 1002, 1004, 1006, and 1008 in the second row of FIG. 10, may be referred to as a "T type" partition. The "T type" partitions 1002, 1004, 1006, and 1008 may be referred to as left T type, top T type, right T type, and bottom T type. In some implementations, none of the rectangular partitions in FIG. 10 are allowed to be further subdivided. A coding tree depth may be further defined to indicate the depth of division from the root node or root block. For example, in the example of a 128x128 block, the coding tree depth of the root node or root block may be set to 0, and after one further split of the root block according to FIG. 10, the coding tree depth increases by 1. In some implementations, only the full square partition at 1010 may be allowed to recursively partition into the next level of the partition tree according to the pattern of FIG. 10. In other words, recursive partitioning may not be allowed for square partitions having patterns 1002, 1004, 1006, and 1006. Partitioning by recursion according to FIG. 10 produces a final set of coding blocks, if necessary. Such a scheme may be applied to one or more of the color channels.

[0094] After splitting or partitioning the base block according to any of the above partition procedures or other procedures, again a final set of partitions or coding blocks may be obtained. Each of these partitions may be one of various partition levels. Each of the partitions may be called a coding block (CB). In the above various exemplary partition implementations, each resulting CB can be of any allowed size and partition level. They are called coding blocks because they form a unit where some basic coding / decoding decisions are made and coding / decoding parameters may be optimized and determined to be signaled in the coded video bitstream. The top level in the final partition represents the depth of the coding block partition tree. A coding block may be a luma coding block or a chroma coding block.

[0095] In some other example implementations, a quadtree structure may be used to recursively partition the base luma and chroma blocks into coding units. Such partitioning structures may be called coding tree units (CTUs), and the CTUs are partitioned into coding units (CUs) by using the quadtree structure to adapt the partitions to various local characteristics of the base CTU. In such implementations, an implicit quadtree partitioning may be performed at picture boundaries, such that a block retains the quadtree partitioning until its size fits the picture boundary. The term CU is used to collectively refer to the units of luma and chroma coding blocks (CBs).

[0096] In some implementations, the CB may be further partitioned. For example, the CB may be further partitioned into multiple prediction blocks (PBs) for the purpose of intra- or inter-frame prediction during the encoding and decoding process. In other words, the CB may be further partitioned into different sub-partitions, where individual prediction determinations / configurations may be performed. In parallel, the CB may be further partitioned into multiple transform blocks (TBs) for the purpose of indicating the level at which the transformation or inverse transformation of the video data is performed. The partitioning scheme of the CB into PBs and TBs may be the same or may not be the same. For example, each partitioning scheme may be performed using a unique procedure, for example, based on various characteristics of the video data. In some exemplary implementations, the partitioning schemes of the PBs and TBs may be independent. In some other exemplary implementations, the partitioning schemes and boundaries of the PBs and TBs may be correlated. In some implementations, for example, the TBs may be partitioned after the PB partitions, and in particular, each PB may be further partitioned into one or more TBs after being determined following the partitioning of the coding block. For example, in some implementations, the PB may be partitioned into one, two, four, or other number of TBs.

[0097] In some implementations, the luma and chroma channels may be treated separately for partitioning of base blocks into coding blocks and for partitioning into predictive and / or transform blocks. For example, in some implementations, partitioning of coding blocks into predictive and / or transform blocks may be allowed for luma channels, but such partitioning of coding blocks into predictive and / or transform blocks may not be allowed for chroma channels. In such implementations, transformation and / or prediction of luma blocks may be performed only at the coding block level. In another example, the minimum transform block size of luma and chroma channels may be different, e.g., coding blocks of luma channels may be allowed to be partitioned into smaller transform and / or predictive blocks than chroma channels. In yet another example, the maximum depth of partitioning of coding blocks into transform and / or predictive blocks may be different between luma and chroma channels, e.g., coding blocks of luma channels may be allowed to be partitioned into deeper transform and / or predictive blocks than chroma channels. As a specific example, a luma coding block may be partitioned into transform blocks of multiple sizes that can be expressed with a recursive partition going down to two levels, and transform block shapes such as square, 2:1 / 1:2 and 4:1 / 1:4, and transform block sizes from 4×4 to 64×64 may be allowed. However, for chroma blocks, only the largest possible transform block designated for the luma block may be allowed.

[0098] In some example implementations of partitioning a coding block into PBs, the depth, shape, and / or other characteristics of the PB partition may depend on whether the PB is intra-coded or inter-coded.

[0099] Partitioning of coding blocks (or prediction blocks) into transform blocks may be performed in various exemplary manners, including but not limited to quadtree partitioning and partitioning of a predetermined pattern, recursive or non-recursive, and with further consideration of transform blocks at boundaries of coding blocks or prediction blocks. In general, the resulting transform blocks may result in different partitioning levels, may not be the same size, and may not need to be square in shape (e.g., they may be rectangular with some allowed size and aspect ratio).

[0100] In some implementations, a coding partition tree scheme or structure may be used. The coding partition tree scheme used for the luma channel and the chroma channel may not need to be the same. In other words, the luma channel and the chroma channel may have separate coding tree structures. Furthermore, whether the luma channel and the chroma channel use the same or different coding partition tree structures, and the coding partition tree structure actually used may depend on whether the slice being coded is a P slice, a B slice, or an I slice. For example, for an I slice, the chroma channel and the luma channel may have separate coding partition tree structures or coding partition tree structure modes, while for a P or B slice, the luma channel and the chroma channel may share the same coding partition tree scheme. When separate coding partition tree structures or modes are applied, the luma channel may be partitioned into CBs by one coding partition tree structure, and the chroma channel may be partitioned into chroma CBs by another coding partition tree structure.

[0101] An exemplary implementation of partitions of coding blocks and transform blocks is described below. In such an exemplary implementation, a base coding block may be divided into coding blocks using the recursive quadtree division described above. At each level, whether to continue further quadtree division of a particular partition may be determined by local video data characteristics. The resulting CB may result in various quadtree division levels with various sizes. The decision to code a picture region using inter-picture (temporal) prediction or intra-picture (spatial) prediction may be made at the CB level (or at the CU level for all three color channels). Each CB may be further divided into one, two, four or other number of PBs according to the PB division type. Inside one PB, the same prediction process may be applied and related information is transmitted to the decoder on a PB basis. After obtaining the residual block by applying the prediction process based on the PB division type, the CB can be partitioned into TBs according to another quadtree structure similar to the coding tree of the CB. In this particular implementation, the CB or TB may be square shaped, but need not be limited thereto. Furthermore, in this particular example, the PB may be square or rectangular in shape for inter prediction, and only square in shape for intra prediction. The coding block may be further divided, for example, into four square TBs. Each TB may be further divided recursively (using quad-tree division) into smaller TBs, which are called residual quad-trees (RQTs).

[0102] Another example of partitioning the base coding block into CB and other PBs and / or TBs is described below. For example, instead of using multiple partition unit types as shown in FIG. 10, a quadtree with nested multi-type trees using bipartition and tripartition segment structures may be used. The separation of the concepts of CB, PB and TB (i.e., partition of CB into PB and / or TB, and partition of PB into TB) may be discarded unless necessary for CBs with sizes that are too large for the maximum transform length, and such CBs may need to be further partitioned. This exemplary partitioning scheme may be designed to support greater flexibility on CB partition shapes, such that both prediction and transformation can be performed at the CB level without further partitioning. In such a coding tree structure, the CB may have either a square or rectangular shape. Specifically, a coding tree block (CTB) may first be partitioned by a quadtree structure. Then, the quadtree leaf nodes may be further partitioned by a multi-type tree structure. An example of a multi-type tree structure is shown in FIG. 11. Specifically, the exemplary multi-type tree structure of FIG. 11 includes four split types called vertical bisection (SPLIT_BT_VER) (1102), horizontal bisection (SPLIT_BT_HOR) (1104), vertical trisection (SPLIT_TT_VER) (1106), and horizontal trisection (SPLIT_TT_HOR) (1108). Then, CB corresponds to the leaf of the multi-type tree. In this exemplary implementation, this segmentation is used for both prediction and transformation processes without further partitioning, as long as CB is not too large for the maximum transformation length. This means that in most cases, CB, PB, and TB have the same block size in a quadtree with a nested multi-type tree coding block structure. An exception occurs when the maximum supported transformation length is smaller than the width or height of the color components of CB.

[0103] An example of a quadtree with nested multi-type tree coding block structure of block partitions for one CTB is shown in FIG. 12. More specifically, FIG. 12 shows that a CTB 1200 is a quadtree divided into four square partitions 1202, 1204, 1206 and 1208. A decision regarding further using the multi-type tree structure of FIG. 11 for division is made for each of the quadtree division partitions. In the example of FIG. 12, partition 1204 is not further divided. Partitions 1202 and 1208 each adopt a different quadtree division. For partition 1202, the upper left, upper right, lower left and lower right partitions of the second level quadtree division adopt the division of the third level quadtree, 1104 of FIG. 11, no division and 1108 of FIG. 11, respectively. Partition 1208 employs another quadtree partitioning, where the top-left, top-right, bottom-left and bottom-right partitions of the second level quadtree partitioning employ the third level partitioning of 1106 in FIG. 11 , no partitioning, no partitioning and 1104 in FIG. 11 , respectively. Two of the subpartitions of the top-left partition of the third level of 1208 are further partitioned according to 1104 and 1108. Partition 1206 employs the second level partitioning pattern according to 1102 in FIG. 11 into two partitions, where the two partitions are further partitioned at the third level according to 1108 and 1102 in FIG. 11 . A fourth level partitioning is further applied to one of them according to 1104 in FIG. 11 .

[0104] In the above example, the maximum luma transform size may be 64 x 64, and the maximum supported chroma transform size may be different from the luma, e.g., 32 x 32. If the width or height of a luma coding block or a chroma coding block is larger than the maximum transform width or height, the luma coding block or the chroma coding block may be automatically split in the horizontal and / or vertical direction to meet the transform size limitation in that direction.

[0105] In the above specific example of partitioning the base coding blocks into CBs, the coding tree scheme may support the function that luma and chroma have separate block tree structures. For example, for P slices and B slices, the luma CTB and chroma CTB in one CTU may share the same coding tree structure. For example, for I slices, luma and chroma may have separate coding block tree structures. When the separate block tree mode is applied, the luma CTB may be partitioned into luma CBs by one coding tree structure, and the chroma CTB is partitioned into chroma CBs by another coding tree structure. This means that a CU in an I slice may be composed of a coding block of a luma component or a coding block of two chroma components, and a CU in a P or B slice is always composed of coding blocks of all three color components, unless the video is monochrome.

[0106] Exemplary implementations for partitioning coding or prediction blocks into transform blocks and the coding order of the transform blocks are described in further detail below. In some exemplary implementations, the transform partitions may support multiple shapes of transform blocks, e.g., 1:1 (square), 1:2 / 2:1, and 1:4 / 4:1, with transform block sizes ranging from, e.g., 4×4 to 64×64. In some implementations, if the coding block is 64×64 or smaller, the partitioning of the transform blocks may only be applied to the luma component, and for chroma blocks, the transform block size is the same as the coding block size. Otherwise, if the width or height of the coding block is greater than 64, both the luma coding block and the chroma coding block may be implicitly divided into transform blocks that are multiples of min(W,64)×min(H,64) and min(W,32)×min(H,32), respectively.

[0107] In some example implementations, for both intra-coded blocks and inter-coded blocks, the coding blocks may be further partitioned into multiple transform blocks by a partition depth up to a predetermined number of levels (e.g., two levels). The partition depth and size of the transform blocks may be related. An example mapping from the transform size of the current depth to the transform size of the next depth is shown in Table 1 below. [Table 1]

[0108] Based on the example mapping of Table 1, for a 1:1 square block, the next level transform partition may create four 1:1 square sub-transform blocks. The transform partition may stop at, for example, 4×4. Thus, a transform size of 4×4 for the current depth corresponds to the same size of 4×4 for the next depth. In the example of Table 1, for a 1:2 / 2:1 non-square block, the next level transform partition creates two 1:1 square sub-transform blocks, and for a 1:4 / 4:1 non-square block, the next level transform partition creates two 1:2 / 2:1 sub-transform blocks.

[0109] In some example implementations, further restrictions may be applied for the luma components of intra-coded blocks. For example, for each level of transform partitioning, all sub-transform blocks may be restricted to have the same size. For example, for a 32×16 coding block, the level 1 transform partitioning creates two 16×16 sub-transform blocks, and the level 2 transform partitioning creates eight 8×8 sub-transform blocks. In other words, to keep the transform units the same size, the second level partitioning must be applied to all first level sub-blocks. An example of transform block partitioning for an intra-coded square block according to Table 1 is shown in FIG. 13 with the coding order indicated by the arrows. Specifically, 1302 indicates a square coding block. The first level partitioning according to Table 1 into four equal-sized transform blocks is shown in 1304 with the coding order indicated by the arrows. The second level partitioning of all first level equal-sized blocks according to Table 1 into 16 equal-sized transform blocks is shown in 1306 with the coding order indicated by the arrows.

[0110] In some example implementations, the above intra-coding restrictions may not apply for the luma components of an inter-coded block. For example, after the first level of transform splitting, any one of the sub-transform blocks may be further split independently at one further level. Thus, the resulting transform blocks may or may not be of the same size. An example of splitting an inter-coded block into transform blocks in its coding order is shown in FIG. 14. In the example of FIG. 14, an inter-coded block 1402 is split into transform blocks at two levels according to Table 1. At the first level, the inter-coded block is split into four transform blocks of equal size. Then, only one (but not all) of the four transform blocks is further split into four sub-transform blocks, resulting in a total of seven transform blocks having two different sizes, as shown at 1404. An example coding order of these seven transform blocks is indicated by arrows at 1404 in FIG. 14.

[0111] In some example implementations, for chroma components, some further restrictions on the transform blocks may be applied: for example, for chroma components, the transform block size can be as large as the coding block size, but cannot be smaller than a certain size, e.g., 8×8.

[0112] In some other example implementations, for coding blocks whose either width (W) or height (H) is greater than 64, both the luma coding block and the chroma coding block may be implicitly divided into multiples of min(W,64)×min(H,64) and min(W,32)×min(H,32) transform units, respectively.

[0113] Figure 15 further illustrates another exemplary scheme for partitioning a coding block or a prediction block into transform blocks. As shown in Figure 15, instead of using recursive transform partitions, a predefined set of partition types may be applied to a coding block according to its transform type. In the particular example shown in Figure 15, one of six exemplary partition types may be applied to split the coding block into a varying number of transform blocks. Such a scheme may be applied to either a coding block or a prediction block.

[0114] More specifically, the partition scheme of FIG. 15 provides up to six partition types for any given transform type shown in FIG. 15. In this scheme, each coding block or predictive block may be assigned a transform type based on, for example, a rate-distortion cost. In one example, the partition type assigned to a coding block or predictive block may be determined based on the transform partition type of the coding block or predictive block. A particular partition type may correspond to a transform block division size and pattern (or partition type), as illustrated by the four partition types shown in FIG. 15. Correspondence between various transform types and various partition types may be predefined. An exemplary correspondence with capitalized labels indicating transform types that may be assigned to a coding block or predictive block based on rate-distortion cost is shown below.

[0115] ·PARTITION_NONE: Allocate the transformation size equal to the block size.

[0116] ·PARTITION_SPLIT: Allocates a transformation size of 1 / 2 the width of the block size and 1 / 2 the height of the block size.

[0117] ·PARTITION_HORZ: Allocates a transformation size with the same width as the block size and 1 / 2 the height of the block size.

[0118] ·PARTITION_VERT: Allocates a transformation size that is 1 / 2 the width of the block size and the same height as the block size.

[0119] ·PARTITION_HORZ4: Allocates a transformation size with the same width as the block size and 1 / 4 of the block size in height.

[0120] ·PARTITION_VERT4: Allocates a transformation size that is 1 / 4 of the block size in width and the same height as the block size.

[0121] In the above example, all partition types shown in Figure 15 include uniform transform sizes for the partitioned transform blocks. This is not a limitation but is merely an example. In some other implementations, mixed transform block sizes may be used for the partitioned transform blocks in a particular partition type (or pattern).

[0122] With regard to some example implementations of signaling specific types for coding blocks / units, as shown in the example syntax in Table 2 below, for each intra and inter coding unit, a flag, namely, skip_txfm flag, may be signaled in the coded bitstream and may be represented by a read_skip() function to obtain these flags from the bitstream. This flag may indicate whether the transform coefficients are all zero in the current coding unit. In some example implementations, for example, if this flag is signaled with a value of 1, other transform coefficient-related syntax, such as EOB (End of Block), does not need to be signaled for any coding block of the coding unit and can be derived as a predefined and associated value or data structure for a block of zero transform coefficients. For inter coding blocks, as shown in the example in Table 2, this flag may be signaled after a skip_mode flag indicating that the coding unit may be skipped for various reasons. If skip_mode is true, the coding unit should be skipped and there is no need to signal the skip_txfm flag and the skip_txfm flag is inferred as 1. Otherwise, if skip_mode is false, detailed information about the coding unit is included in the bitstream and a skip_txfm flag is further signaled to indicate whether the coding unit is all zeros or not. [Table 2]

[0123] With regard to the encoding and decoding (entropy coding) of the residual transform coefficients in each of the color components, for each transform block, the encoding of the transform coefficients begins with the signaling of a skip code, followed by the transform kernel type and the EOB (End-of-Block) position if the skip code is 0 (i.e., the transform coding is not skipped). Then, based on its level (range of values), each coefficient value is mapped to a corresponding level map and code.

[0124] After the EOB position is coded, the low-level map and the mid-level map may be coded in backward scan order, the former indicating whether the magnitude of the coefficient is within the low level (e.g., between 0 and 2) and the latter indicating whether the range is between 3 and 14. The next step is to code the residual values ​​of the coefficients larger than the high level (e.g., 14) as well as the signs of the coefficients in forward scan order, for example by Exp-Golomb coding.

[0125] Regarding the use of context modeling, the coding of the low-level maps may incorporate the transform size and direction and up to five neighboring coefficient information for improved compression efficiency. On the other hand, the coding of the mid-level maps may follow a similar approach to the low-level amplitude coding, except that the number of neighboring coefficients is reduced to two. The signs of the AC coefficients and the Exp-Golomb signs of the residual levels may be coded without a context model, and the signs of the DC coefficients may be coded using the DC signs of its neighboring transform blocks. Instead of using uniform context modeling to code the EOB flag, which indicates whether the transform block has only zero coefficients or at least one non-zero coefficient, different context modeling may be selected for different color components. For example, seven contexts may be used for the luma color component. The context for coding the EOB flag may depend on the upper and left neighboring luma transform coefficient levels and / or on whether the current coding block size and the transform block size are the same or not. In another example, for the chroma color components, six contexts (three contexts for the U component and three contexts for the V component) may be used with separate context modeling applied to the U and V color components using the same method, and the derivation of the context model may depend on the transform block size and / or the upper and left adjacent transform coefficient blocks.

[0126] In some example implementations, the chroma residuals may be coded jointly. Such coding schemes may be based on some statistical correlation between the chroma channels. For example, in many cases, Cr and Cb chroma coefficients may be similar in amplitude and therefore may be coded jointly to improve coding efficiency while only introducing small color distortions, e.g., at the transform block level where the transform coefficients are signaled. The use (activation) of the joint chroma coding mode may be indicated, for example, by a flag tu_joint_cbcr_residual_flag at the transform unit (TU containing both luma and chroma) or transform block level, and the selected mode is implicitly indicated by the chroma coding block flag (CBF, Coded Block Flag).

[0127] Specifically, if one or both chroma CBFs of a TU are equal to 1, the flag tu_joint_cbcr_residual_flag may be present. Chroma quantization parameter (QP) offset values ​​may be signaled for joint chroma residual coding modes in the Picture Parameter Set (PPS) and slice header to distinguish them from the chroma QP offset values ​​signaled for normal chroma residual coding modes. These chroma QP offset values ​​may be used to derive chroma QP values ​​for blocks coded using joint chroma residual coding modes. If a corresponding joint chroma coding mode (mode 2 in Table 3 below) is active in a TU, this chroma QP offset may be added to the chroma QP derived from the applied luma during quantization and decoding of that TU. For other modes (modes 1 and 3 in Table 3), the chroma QP is derived in the same way as for a conventional Cb or Cr block. The reconstruction process of chroma residuals (resCb and resCr) from the transmitted transform blocks is shown in Table 3. When this mode is activated (mode 2), a single joint chroma residual block (resJointC[x][y] in Table 3) is signaled, and the residual block of Cb (resCb) and the residual block of Cr (resCr) may be derived considering information such as tu_cbf_cb, tu_cbf_cr, and CSign (e.g., the sign value specified in the slice header) rather than at the transform block level. In some implementations, CSign may be -1 in most cases.

[0128] Table 3 shows the different modes of chroma residual reconstruction. The value CSign is the sign value (+1 or 1), which is specified in the slice header. resJointC[][] is the residual to be transmitted. [Table 3]

[0129] In some example implementations, the above three joint chroma coding modes may be supported only for intra-coded CUs. For inter-coded CUs, only mode 2 is supported. Therefore, for inter-coded CUs, the syntax element tu_joint_cbcr_residual_flag may be present only if both chroma CBFs are 1.

[0130] In particular, an inter-component coefficient sign encoding method may be implemented that utilizes the coefficient sign value of a first color component to encode the coefficient sign of a second color component. For example, the sign value of a Cb transform coefficient may be used as a context to encode the sign of other Cr transform coefficients. Such inter-component encoding may be implemented for transform coefficient pairs (coefficient by coefficient) of color components. The principles underlying such implementations, and other implementations described in more detail below, are not limited to Cr and Cb components. They may be applicable between any two of the three color components. In this regard, the luma channel is considered as one of the color components. In some implementations, there may be a strong inter-component correlation for the encoding of the EOB flag between the U and V color components. That is, if a non-zero EOB flag is signaled for the U color component, it is highly likely that the EOB flag of the co-located V color component is also non-zero, and vice versa.

[0131] In this disclosure, various embodiments are disclosed for utilizing correlations between chroma components (e.g., Cb and Cr components, or U and V components), or between luma and chroma components. The correlations may be used by an encoder / decoder to improve coding and signaling efficiency. These embodiments may be applied to various video coding techniques. Also, these embodiments may be applied to different color formats, such as YCbCr, RGB, etc. YCbCr is used only as an example to describe various embodiments.

[0132] In the following example implementations, the term chroma channel may generally refer to both Cb and Cr color components (or channels), or both U and V color components (or channels). The term luma channel may include a luma component or a Y component. A luma component or channel may be referred to as a luma color component or channel. Y, U, and V are used below to represent the three color components. Furthermore, the terms "coded block" and "coding" block are used interchangeably to mean either a block to be coded or a block that has already been coded. These may be blocks of any of the three color components. Three corresponding color coded / coded blocks may be for a coded / coding unit.

[0133] Alternatively, in some example implementations, the data block may include three color components. In other words, the data block may include three layers, with each layer corresponding to one color component. In some implementations, the three color components in the data block may be co-located.

[0134] In the following example implementations, the term "level value" may refer to the magnitude or amplitude of a transform coefficient value.

[0135] In one embodiment, the EOB flag of one color component may be used to derive a context for entropy coding the EOB flag of another color component. The two color components may be co-located. In this disclosure, two color components are co-located if they are at the same spatial location.

[0136] Although the above one color component and another color component may not be limited to specific color components, in some example implementations, the EOB flag of the Cb (or Cr) color component may be used to derive a context for entropy coding the EOB flag of the Cr (or Cb) color component.

[0137] In one implementation, the EOB flag of the luma (Y) color component may be used to derive a context for entropy coding the EOB flag of the Cb (and / or Cr) color component.

[0138] In one implementation, the EOB flag of the Cb (and / or Cr) color component may be used to derive a context for entropy coding the EOB flag of the luma (Y) color component.

[0139] In some example implementations, a shared EOB flag may be jointly coded and / or signaled for multiple color components. The use of a shared EOB flag may improve coding efficiency and reduce signaling overhead.

[0140] In some implementations, one common syntax for the jointly encoded EOB may be coded and / or signaled, and the common syntax may be used to indicate EOB flag values ​​for each of multiple color components.

[0141] For example, the luma EOB flag and the chroma EOB flag may be coded together using one syntax (e.g., JOINT_EOB or EOBS) with, for example, eight different values, each value indicating a unique combination of different EOB flag values ​​of multiple (e.g., three) components. See Table 4 below for an example. [Table 4]

[0142] In another example, the Cb EOB flag and the Cr EOB flag are coded together using one syntax (e.g., JOINT_EOB) with four different values, each value indicating a unique combination of different EOB flag values ​​of the Cb and Cr color components. The same concept in Table 4 may be applied to this example as well. Using such a scheme, it is possible to exploit the correlation between the EOB flags of various color components to improve coding. For example, some of the EOB values ​​in Table 4 may have a much higher probability than other values ​​(e.g., values ​​111 and 000 representing the same flag value for EOB for all colors), thereby providing superior coding efficiency when the three EOB flags are coded together.

[0143] In one embodiment, instead of directly signaling the EOB flag for each component, a multi-level encoding scheme may be implemented. In this scheme, multiple flags may be implemented. A first flag may be coded / signaled to indicate whether the EOB of multiple color components is the same or not, and then one or more flags are coded / signaled to indicate the EOB flag of one or more color components (but not all color components), and the EOB of other remaining color components can be derived based on the signaled flag. This scheme is further illustrated by the following example.

[0144] In one implementation, this scheme is applied to Cb and Cr components. A first flag (i.e., flag0) may be signaled to indicate whether the EOB flags of Cb and Cr are equal, and then a second flag (i.e., flag1) may be signaled to indicate the value of the EOB flag of Cb (or Cr). For example, the EOB flag of Cb may be coded / signaled as 0 or 1. Then, the value of the EOB flag of Cr (or Cb) may be derived based on flag0 and flag1. For example, as follows:

[0145] If flag0=1 (ie, the EOB flags of Cb and Cr are equal) and flag1=1 (eg, the EOB flag of the Cb component is 1), then the EOB flag of the Cr component is also 1.

[0146] If flag0=0 (ie, the EOB flags of Cb and Cr are not equal) and flag1=1 (eg, the EOB flag of the Cb component is 1), then the EOB flag of the Cr component is 0.

[0147] In one implementation, the scheme is applied to the luma component and two chroma components. An exemplary flow for determining the EOB flag for each component is described below.

[0148] 1. The first flag (i.e., flag0) may be encoded / signaled to indicate whether the luma and chroma EOB flags are equal or not.

[0149] 2. A second flag (i.e., flag1) may be encoded / signaled to indicate whether the luma EOB flag is 0 or 1.

[0150] If flag0 is coded / signaled with a value indicating that the luma and chroma EOB flags have the same value, derive the EOB flags for the Cb and Cr components based on flag1. The EOB flag determination process may end here.

[0151] If flag0 is coded / signaled with a value indicating that the luma and chroma EOB flags have different values, a third flag (i.e., flag2) may be coded / signaled to further indicate whether the Cb and Cr components have the same EOB flag value or not.

[0152] A fourth flag (i.e., flag3) may be encoded / signaled to indicate whether the Cb (or Cr) EOB flag is 0 or 1. Based on flag2 and flag3, the EOB values ​​for the Cb and Cr components may be derived accordingly.

[0153] Therefore, based on the above maximum four signaled flags, the EOB values ​​of the luma, Cb and Cr color components may be derived accordingly.

[0154] In the technology of using CBF to replace EOB, the same concept as described in the above embodiment may be applied, and will not be described in detail here.

[0155] 16 illustrates an example method 1600 for decoding video data. The method 1600 may include some or all of the following: receiving a first end of block (EOB) flag associated with a first color component of a data block from the video data 1610; deriving a context for entropy encoding the first EOB flag based on a second EOB flag associated with a second color component of the data block of the video data 1620; and performing entropy decoding of the first EOB flag based on the derived context 1630. In some implementations, the first color component may be co-located with the second color component.

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

[0157] The embodiments of the present disclosure may be used individually or combined in any order. Furthermore, each of the methods (or embodiments), the encoder and the decoder may be implemented by a processing circuit (e.g., one or more processors or one or more integrated circuits). In one example, the one or more processors execute a program stored on a non-transitory computer-readable medium. The embodiments of the present disclosure may be applied to a luma block or a chroma block.

[0158] The techniques described above can be implemented as computer software using computer-readable instructions and can be physically stored on one or more computer-readable media. For example, Figure 17 illustrates a computer system (1700) suitable for implementing certain embodiments of the disclosed subject matter.

[0159] Computer software can be coded using any suitable machine code or computer language and can be subject to assembly, compilation, linking, or similar mechanisms to produce code containing instructions that can be executed by one or more computer central processing units (CPUs), graphics processing units (GPUs), etc., either directly, or through interpretation, microcode execution, etc.

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

[0161] 17 for computer system (1700) are exemplary in nature and are not intended to suggest any limitation as to the scope of use or functionality of the computer software implementing the embodiments of the present disclosure, nor should the arrangement of components be interpreted as having any dependency or requirement regarding any one or combination of components illustrated in the exemplary embodiment of computer system (1700).

[0162] The computer system (1700) may include certain human interface input devices that may be responsive to input by one or more human users through, for example, tactile input (e.g., keystrokes, swipes, data glove movements), audio input (e.g., voice, clapping), visual input (e.g., gestures), and olfactory input (not shown). Human interface devices may also be used to capture certain media that are not necessarily directly related to conscious human input, such as audio (e.g., speech, music, ambient sounds), images (e.g., scanned images, photographic images obtained from still image cameras), and video (e.g., two-dimensional video, three-dimensional video including stereoscopic video).

[0163] The input human interface devices may include one or more (only one of each is shown) of a keyboard (1701), a mouse (1702), a trackpad (1703), a touch screen (1710), a data glove (not shown), a joystick (1705), a microphone (1706), a scanner (1707), and a camera (1708).

[0164] The computer system (1700) may also include certain human interface output devices. Such human interface output devices may stimulate one or more of the human user's senses, for example, through haptic output, sound, light, and smell / taste. Such human interface output devices may include haptic output devices (e.g., haptic feedback via a touch screen (1710), data gloves (not shown), or joystick (1705); although there may be haptic feedback devices that do not act as input devices), audio output devices (e.g., speakers (1709), headphones (not shown)), visual output devices (e.g., screens (1710), including CRT screens, LCD screens, plasma screens, OLED screens; each may or may not have touch screen input capability, each may or may not have haptic feedback capability, some of which may output two-dimensional visual output or higher than three-dimensional output through such means as stereoscopic output; virtual reality glasses (not shown), holographic displays, and smoke tanks (not shown)), and printers (not shown).

[0165] The computer system (1700) may also include human accessible storage devices and associated media, such as optical media including CD / DVD ROM / RW (1720) along with CD / DVD or similar media (1721), thumb drives (1722), removable hard drives or solid state drives (1723), legacy magnetic media such as tapes and floppy disks (not shown), specialized ROM / ASIC / PLD based devices (not shown) such as security dongles, etc.

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

[0167] The computer system (1700) may also include an interface (1754) to one or more communication networks (1755). The networks may be, for example, wireless, wired, optical. The networks may further be local, wide area, metropolitan, in-vehicle and industrial, real-time, delay tolerant, etc. Examples of networks include Ethernet, wireless LAN, cellular networks including GSM, 3G, 4G, 5G, LTE, etc., TV wired or wireless wide area digital networks including cable television, satellite television, terrestrial broadcast television, in-vehicle and industrial including CAN Bus, etc. Certain networks usually require an external network interface adapter that is attached to a particular general-purpose data port or peripheral bus (1749) (e.g., a USB port of the computer system (1700)). Others are usually integrated into the core of the computer system (1700) by attachment to a system bus as described below (e.g., an Ethernet interface to a PC computer system or a cellular network interface to a smartphone computer system). Using any of these networks, the computer system (1700) may communicate with other entities. Such communications may be unidirectional, receive only (e.g., broadcast television), unidirectional transmit only (e.g., CANbus to a particular CANbus device), or bidirectional, for example, to other computer systems using local or wide area digital networks. Each of these networks and network interfaces as described above may use specific protocols and protocol stacks.

[0168] The aforementioned human interface devices, human accessible storage devices, and network interfaces may be attached to a core (1740) of the computer system (1700).

[0169] The cores (1740) may include one or more central processing units (CPUs) (1741), graphics processing units (GPUs) (1742), specialized programmable processing units in the form of field programmable gate arrays (FPGAs) (1743), hardware accelerators for specific tasks (1744), graphics adapters (1750), etc. These devices may be connected through a system bus (1748), along with read only memory (ROM) (1745), random access memory (1746), internal mass storage devices (1747), such as internal non-user accessible hard drives, solid state drives (SSDs), etc. In some computer systems, the system bus (1748) may be accessible in the form of one or more physical plugs to allow expansion with additional CPUs, GPUs, etc. Peripheral devices may be attached directly to the core's system bus (1748) or through a peripheral bus (1749). In one example, a screen (1710) may be connected to the graphics adapter (1750). Architectures for peripheral buses include PCI, USB, and the like.

[0170] The CPU (1741), GPU (1742), FPGA (1743), and accelerator (1744) may execute certain instructions that may combine to constitute the above-mentioned computer code. The computer code may be stored in a ROM (1745) or a RAM (1746). Temporary data may also be stored in the RAM (1746), while persistent data may be stored, for example, in an internal mass storage device (1747). Rapid storage and retrieval from any of the memory devices may be enabled through the use of a cache memory that may be closely associated with one or more of the CPU (1741), GPU (1742), mass storage device (1747), ROM (1745), RAM (1746), etc.

[0171] The computer-readable medium can have computer code thereon for performing various computer-implemented operations. The medium and computer code may be those specially designed and constructed for the purposes of the present disclosure, or they may be of the kind well known and available to those having skill in the computer software arts.

[0172] As a non-limiting example, a computer system having the architecture (1700), and in particular the core (1740), can provide functionality as a result of a processor (including a CPU, GPU, FPGA, accelerator, etc.) executing software embodied in one or more tangible computer-readable media. Such computer-readable media can be user-accessible mass storage as introduced above, as well as media associated with a particular store of the core (1740) that is non-transitory in nature, such as a mass storage device (1747) internal to the core or a ROM (1745). Software implementing various embodiments of the present disclosure can be stored in such devices and executed by the core (1740).

[0173] While this disclosure describes several exemplary embodiments, modifications, permutations, and various substitute equivalents exist and fall within the scope of this disclosure. It will thus be recognized that those skilled in the art will be able to devise numerous systems and methods that, although not explicitly shown or described herein, embody the principles of this disclosure and are therefore within its spirit and scope.

[0174] Appendix A: Abbreviations JEM: joint exploration model VVC: versatile video coding BMS: benchmark set MV: Motion Vector HEVC: High Efficiency Video Coding SEI: Supplementary Enhancement Information VUI: Video Usability Information GOP: Group of Pictures TU: Transform Unit PU: Prediction Unit CTU: Coding Tree Unit CTB: Coding Tree Block PB: Prediction Block HRD: Hypothetical Reference Decoder SNR: Signal Noise Ratio CPU: Central Processing Unit GPU: Graphics Processing Unit CRT: Cathode Ray Tube LCD: Liquid-Crystal Display OLED: Organic Light-Emitting Diode CD: Compact Disc DVD: Digital Video Disc ROM: Read-Only Memory RAM: Random Access Memory ASIC: Application-Specific Integrated Circuit PLD: Programmable Logic Device LAN: Local Area Network GSM: Global System for Mobile communications LTE: Long-Term Evolution CANBus: Controller Area Network Bus USB: Universal Serial Bus PCI: Peripheral Component Interconnect FPGA: Field Programmable Gate Area SSD: solid-state drive IC: Integrated Circuit HDR: high dynamic range SDR: standard dynamic range JVET: Joint Video Exploration Team MPM: most probable mode WAIP: Wide-Angle Intra Prediction CU: Coding Unit PU: Prediction Unit TU: Transform Unit CTU: Coding Tree Unit PDPC: Position Dependent Prediction Combination ISP: Intra Sub-Partitions SPS: Sequence Parameter Setting PPS: Picture Parameter Set APS: Adaptation Parameter Set VPS: Video Parameter Set DPS: Decoding Parameter Set ALF: Adaptive Loop Filter SAO: Sample Adaptive Offset CC-ALF: Cross-Component Adaptive Loop Filter CDEF: Constrained Directional Enhancement Filter CCSO: Cross-Component Sample Offset LSO: Local Sample Offset LR: Loop Restoration Filter AV1: AOMedia Video 1 AV2: AOMedia Video 2

Claims

1. 1. A method for a decoder to decode video data, comprising: receiving a first end of block (EOB) flag associated with a first color component of a data block from the video data; deriving a context for entropy coding the first EOB flag based on a second EOB flag associated with a second color component of the data block of the video data; performing entropy decoding of the first EOB flag based on the derived context; The method includes:

2. The first color component of the data block is Cb color component, Cr color component, or Luma Color Components The method of claim 1 , comprising one of:

3. the first color component comprises a luma color component; The method of claim 1 or 2, wherein the second color component comprises one of a Cb color component or a Cr color component.

4. the first color component includes one of a Cb color component or a Cr color component; The method of claim 1 or 2, wherein the second color component comprises a luma color component.

5. the first color component includes a Cb (or Cr) color component, The method of claim 1 or 2, wherein the second color component comprises a Cr (or Cb) color component.

6. A device comprising circuitry configured to perform the method of any one of claims 1 to 5.

7. A computer program which, when executed by one or more processors, causes said one or more processors to perform a method according to any one of claims 1 to 5.

8. 1. A method for an encoder to encode video data, comprising: generating a first end of block (EOB) flag associated with a first color component of a data block of the video data; deriving a context for entropy coding the first EOB flag based on a second EOB flag associated with a second color component of the data block of the video data; performing entropy coding of the first EOB flag based on the derived context; The method includes:

Citation Information

Patent Citations

  • Video encoding method and device using hierarchical data units, and video decoding method and device

    JP2014506064A

  • Apparatus and method for entropy encoding and decoding

    JP2018530211A

  • Coding the last significant coefficient flag

    JP2020522181A

  • Device and method for entropy encoding and decoding

    US20180205972A1

  • Coding of last significant coefficient flags

    US20200084474A1