METHOD AND APPARATUS FOR INTRA BLOCK COPY PREDICTION USING SAMPLE PADDING - Patent application
Intra block copy with sample padding in video encoding and decoding addresses inefficiencies in existing techniques by enhancing compression efficiency through improved intra-prediction and motion vector prediction, especially in frames with repetitive content.
Patent Information
- Application Number
- JP2023548253
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-09-13
- Filing Date
- 2022-09-16
- Publication Date
- 2024-10-04
- Estimated Expiration
- 2042-09-16
AI Technical Summary
Existing video encoding techniques face challenges in efficiently reducing redundancy and improving compression efficiency, particularly in intra-prediction methods, due to the varying likelihood of intra-prediction directions and the need for effective motion vector prediction.
Implementing intra block copy (IBC) with sample padding in video encoding and decoding, which involves receiving a current video block, extracting syntax elements, dividing it into subpartitions, and predicting padding and IBC subpartitions based on predefined rules, to enhance compression efficiency.
Enhances video compression efficiency by reducing redundancy and improving encoding and decoding processes, particularly in frames with repetitive patterns, such as those containing significant textual information.
Smart Images

Figure 2024535960000001_ABST
Abstract
Description
[Technical field]
[0001] Incorporation by Reference This application is based on and claims priority to U.S. Provisional Application No. 63 / 252,079, filed October 4, 2021, which is incorporated by reference in its entirety. This application also is based on and claims priority to U.S. Nonprovisional Application No. 17 / 943,449, filed September 13, 2022, which is incorporated by reference in its entirety.
[0002] Technical Field This disclosure describes a set of advanced video coding techniques. More specifically, the disclosed techniques relate to implementing and enhancing Intra Block Copy with Sample Padding (IntraBC or IBC) in video encoding and decoding. [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 (alternatively referred to as frame rate), for example, 60 pictures per second or 60 frames per second. Uncompressed video has specific bitrate 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 at 8 bits per pixel per color channel 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 to reduce redundancy in an uncompressed input video signal through compression. Compression may help reduce the aforementioned bandwidth and / or storage space requirements, in some cases 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 is not fully recoverable 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 is small enough to make the reconstructed signal useful for the intended application, even with some information loss. For video, lossy compression is widely used in many applications. The amount of acceptable distortion depends on the application. For example, users of some consumer video streaming applications may tolerate higher distortion than users of cinema or television broadcast applications. The compression ratio achievable by a particular encoding algorithm can be selected or adjusted to reflect different distortion tolerances: higher tolerable distortion generally allows for an encoding algorithm that results in higher loss and a higher compression ratio.
[0006] Video encoders and decoders may utilize techniques from several broad categories and stages, including 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 a previously reconstructed reference picture. 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 thus can be used as the first picture in a coded video bitstream and video session or as a still image. Samples of a block after intra prediction can be subjected to a transform to the frequency domain, and the transform coefficients so produced 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 coding techniques, does not use intra-prediction. However, some newer video compression techniques include techniques that attempt to code / decode a block to be intra-coded or decoded based on surrounding sample data and / or metadata preceding it in the decoding order, e.g. obtained during the encoding and / or decoding of spatial neighbors. 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 some 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 for a block of video may be coded separately or may be included together 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 neighborhood sample values that are already available. For example, the available values of a particular set of neighborhood samples along a certain direction and / or line may be copied into the predictor block. The reference to the direction used can be coded in the bitstream or may itself be predicted.
[0011] Referring to FIG. 1A, at the bottom right, 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. The point (101) where the arrows converge represents the sample to be predicted. The arrows represent which direction 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 and 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] Continuing to refer to FIG. 1A, at the top left, a square block (104) of 4×4 samples is depicted (indicated by a thick dashed line). 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. Additionally, an exemplary reference sample is shown 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, predicted samples from neighboring neighborhoods adjacent to 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 the 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 sample is 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 some cases, particularly when the orientation 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 techniques continue to develop, the number of possible directions has increased. In H.264 (2003), for example, nine different directions are available for 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. Experimental studies have been performed to help identify the most preferred intra prediction direction, and certain techniques in entropy coding may be used to encode the most preferred direction with a small number of bits while accepting a bit penalty for the directions. Furthermore, sometimes the direction itself can be predicted from nearby directions used in intra prediction of neighboring blocks that have already been decoded.
[0016] FIG. 1B shows a schematic diagram (180) depicting 65 intra prediction directions according to JEM to illustrate the increasing number of prediction directions in various encoding techniques developed over time.
[0017] The way in which the bits representing the intra-prediction directions are mapped to prediction directions in the coded video bitstream can vary from one video coding technique to another, 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. In any case, however, there may be certain intra-prediction directions that are statistically less likely to occur in the video content than certain other directions. Since a goal of video compression is to reduce redundancy, in a well-designed video coding technique, these less likely directions may be represented by more bits than the more likely directions.
[0018] Inter- or inter-prediction may be based on motion compensation, in which blocks of 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., a block) after being spatially shifted in a direction indicated by a motion vector (hereafter MV). In some cases, the reference picture may be the same as the picture currently being reconstructed. 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 (like a temporal dimension).
[0019] In some video compression techniques, the current MV applicable to a region of sample data can be predicted from other MVs, e.g., from 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 significantly reduce the overall amount of data required to encode the MV by relying on removing redundancy in correlated MVs, thereby increasing compression efficiency. MV prediction can work in a directed manner 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 move in a similar direction in the video sequence and can therefore, in some cases, be predicted using similar motion vectors derived from MVs of nearby 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 an MV can then be represented after entropy coding with fewer bits than would be used if the MV were directly encoded rather than predicted from the nearby MV(s). In some cases, the MV prediction may be an instance of lossless compression of a signal (i.e., the MV) derived from the original signal (i.e., the sample stream). In other cases, the MV prediction itself may be lossy, for example due to rounding errors in computing the predictor from some surrounding MVs.
[0020] Various MV prediction mechanisms are described in H.265 / HEVC (ITU-T Rec. H.265, "High Efficiency Video Coding", December 2016). Among the many MV prediction mechanisms specified by H.265, a technique hereafter called "spatial merge" is described below.
[0021] Specifically, referring to Figure 2, a current block (201) contains samples that the encoder found during the motion search process to be predictable from a spatially shifted previous block of the same size. 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 the MV associated with any of the five surrounding samples, denoted A0, A1, and B0, B1, B2 (202 through 206, respectively). In H.265, MV prediction can use predictors from the same reference picture as the neighboring blocks use. Summary of the Invention [Problem to be solved by the invention]
[0022] This disclosure describes various embodiments of methods, apparatus, and computer-readable storage media for performing intra block copy (IBC) padding on a current video block. [Means for solving the problem]
[0023] According to one aspect, certain embodiments of the present disclosure provide a method for performing intra block copy (IBC) padding on a current video block. The method includes receiving, by an apparatus, a current video block in a coded video bitstream, where each reference block partially matches the current video block. The apparatus includes a memory storing instructions and a processor in communication with the memory. The method also includes extracting, by the apparatus, a first syntax element from the coded video bitstream, the first syntax element indicating that IBC padding is available for a current video block; extracting, by the apparatus, a second syntax element from the coded video bitstream, the second syntax element indicating that the current video block is predicted using IBC padding; extracting, by the apparatus, at least one syntax element from the coded video bitstream; partitioning, based on the at least one syntax element, the at least two subpartitions including a padding subpartition and an IBC subpartition; predicting, by the apparatus, the padding subpartition based on a predefined padding rule; and predicting, by the apparatus, the IBC subpartition based on a predefined IBC rule.
[0024] According to another aspect, certain embodiments of the present disclosure provide an apparatus for performing intra block copy (IBC) padding on a current video block, the apparatus including a memory storing instructions and a processor in communication with the memory, the instructions being configured, when executed by the processor, to cause the apparatus to perform the above-described method for video decoding and / or encoding.
[0025] In another aspect, certain embodiments of the present disclosure provide a non-transitory computer-readable medium storing 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.
[0026] These and other aspects and their implementations are described in more detail in the drawings, description, and claims. [Brief description of the drawings]
[0027] Further features, nature and various advantages of the disclosed subject matter will become more apparent from the following detailed description and the accompanying drawings.
[0028] [Figure 1A] 1 shows a schematic illustration of an exemplary subset of intra-prediction directional modes.
[0029] [Figure 1B] 1 illustrates an illustration of an exemplary intra-prediction direction.
[0030] [Diagram 2] 1 shows a schematic illustration of a current block and its surrounding spatial merging candidates for motion vector prediction in an example.
[0031] [Diagram 3] 1 shows a schematic illustration of a simplified block diagram of a communication system according to an example embodiment;
[0032] [Figure 4] 1 shows a schematic illustration of a simplified block diagram of a communication system (400) according to an example embodiment.
[0033] [Diagram 5] 1 shows a schematic illustration of a simplified block diagram of a video decoder in accordance with an example embodiment;
[0034] [Figure 6] 1 shows a schematic illustration of a simplified block diagram of a video encoder according to an example embodiment;
[0035] [Figure 7] 1 shows a block diagram of a video encoder according to another exemplary embodiment.
[0036] [Figure 8] 1 shows a block diagram of a video decoder according to another exemplary embodiment.
[0037] [Figure 9] 1 illustrates a coding block partitioning scheme according to an exemplary embodiment of the present disclosure.
[0038] [Figure 10] 1 illustrates another coding block partitioning scheme according to an exemplary embodiment of the present disclosure.
[0039] [Figure 11] 1 illustrates another coding block partitioning scheme according to an exemplary embodiment of the present disclosure.
[0040] [Figure 12] 1 illustrates an exemplary partitioning of a base block into coding blocks according to an exemplary partitioning scheme.
[0041] [Figure 13] 1 illustrates an exemplary ternary partitioning scheme.
[0042] [Figure 14] 1 illustrates an exemplary quadtree / binary tree coding block partitioning scheme.
[0043] [Figure 15]4 illustrates a scheme for partitioning a coding block into multiple transform blocks and the coding order of the transform blocks according to an exemplary embodiment of the present disclosure.
[0044] [Figure 16] 4 illustrates another scheme for partitioning a coding block into multiple transform blocks and the coding order of the transform blocks according to an exemplary embodiment of the present disclosure.
[0045] [Figure 17] 4 illustrates another scheme for partitioning a coding block into multiple transform blocks, according to an exemplary embodiment of the present disclosure.
[0046] [Figure 18] 1 illustrates the concept of intra block copy (IBC), which uses a reconstructed coded block within the same frame to predict a current coded block.
[0047] [Figure 19] 1 shows exemplary reconstructed samples that can be used as reference samples for IBC.
[0048] [Figure 20] 1 shows exemplary reconstructed samples that can be used as reference samples for IBC, subject to some exemplary constraints.
[0049] [Figure 21] 1 illustrates an exemplary on-chip reference sample memory (RSM) update mechanism for an IBC.
[0050] [Figure 22] 22 illustrates a spatial diagram of the exemplary on-chip RSM update mechanism of FIG. 21.
[0051] [Diagram 23] Another example of an on-chip reference sample memory (RSM) update mechanism for an IBC is shown.
[0052] [Figure 24] 13 shows a comparison of spatial diagrams of an exemplary RSM update mechanism for IBC for horizontally and vertically partitioned superblocks.
[0053] [Diagram 25] 1 shows a flowchart of a method according to an exemplary embodiment of the present disclosure.
[0054] [Figure 26A] Some examples of partial IBC predictions are given below.
[0055] [Figure 26B] Some examples of partial IBC predictions are given below.
[0056] [Figure 27] An example of padding area in a video block is shown below.
[0057] [Figure 28] 1 shows a schematic illustration of a computer system according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0058] The present invention will now be described in detail below with reference to the accompanying drawings, which form a part hereof, and which show, by way of example, specific embodiments of the invention. It should be noted, however, that the invention can be embodied in many different forms, and thus, it is intended that the subject matter covered or claimed be construed as not being limited to any of the embodiments set forth below. It should also be noted that the present invention can be embodied as a method, an apparatus, a component, or a system. Thus, embodiments of the present invention can take the form of, for example, hardware, software, firmware, or any combination thereof.
[0059] Throughout the specification and claims, terms may have a nuanced meaning suggested or implied in the context beyond the explicitly stated meaning. The phrases "in one embodiment" or "in some embodiments" as used herein do not necessarily refer to the same embodiment, and the phrases "in another embodiment" or "in other embodiments" as used herein do not necessarily refer to different embodiments. Similarly, the phrases "in one implementation" or "in some implementations" as used herein do not necessarily refer to the same implementation, and the phrases "in another implementation" or "in other implementations" as used herein do not necessarily refer to different implementations. For example, the claimed subject matter is intended to include combinations of the example embodiments / implementations in whole or in part.
[0060] Generally, terms may be understood, at least in part, from their use in context. For example, terms such as "and," "or," or "and / or," as used herein, may include a variety of meanings that may depend, at least in part, on the context in which such terms are used. Typically, "or," when used to relate a list such as A, B, or C, is intended to mean A, B, and C, as used herein in an inclusive sense, as well as A, B, or C, as used herein in an exclusive sense. Furthermore, the terms "one or more" or "at least one," as used herein, may be used to describe any feature, structure, or characteristic in a singular sense, or may be used to describe a combination of features, structures, or characteristics in a plural sense, at least in part, depending on the context. Similarly, terms such as "a," "an," or "the" may be understood to convey a singular use or to convey a plural use, at least in part, depending on the context. Moreover, the terms "based on" or "determined by" are not necessarily intended to convey an exclusive set of factors, but instead may permit the existence of additional factors not necessarily explicitly recited, again depending at least in part on the context.
[0061] FIG. 3 illustrates a simplified block diagram of a communication system (300) according to an 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., video data of 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 recover a video picture, and display the video picture according to the recovered video data. The one-way data transmission may be implemented in a media service application, etc.
[0062] In another example, the communication system (300) includes a second pair of terminal devices (330) and (340) performing bidirectional transmission of encoded video data, such as may be implemented 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., video data of 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 recover the video pictures, and display the video pictures on an accessible display device in accordance with the recovered video data.
[0063] In the example of FIG. 3, the terminal devices (310), (320), (330), and (340) may be implemented as servers, personal computers, and smartphones, although the applicability of the principles underlying the present disclosure may not be so limited. The embodiments of the present disclosure may be implemented in desktop computers, laptop computers, tablet computers, media players, wearable computers, dedicated video conferencing equipment, and / or others. The network (350) 9 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 and / or wireless communication networks. The communication network (350) 9 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 the present discussion, the architecture and topology of network (350) may not be important to the operation of the present disclosure unless explicitly described.
[0064] 4 illustrates an arrangement of a video encoder and a video decoder in a video streaming environment as an example application for the disclosed subject matter. The disclosed subject matter may be equally applicable to other video-enabled 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.
[0065] The video streaming system may include a video source (401), for example a digital camera, and may include a video capture subsystem (413) that generates a stream of uncompressed video pictures or images (402). In one example, the stream of video pictures (402) includes samples encoded by the digital camera of the video source 401. The stream of video pictures (402), depicted as a thick 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 achieve 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 stream of uncompressed video pictures (402), can be stored on the streaming server (405) for future use or directly stored 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) decodes the incoming copy of the encoded video data (407) and generates an outgoing 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). The 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 some 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 or other video encoding standards.
[0066] 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).
[0067] 5 shows a block diagram of a video decoder (510) according to any of the embodiments of the present disclosure described below. 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.
[0068] 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 hardware / software link to a storage device that stores the encoded video data or a streaming source that transmits the encoded video data. The receiver (531) may receive the encoded 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 the other data. To combat network jitter, a buffer memory (515) may be placed between the receiver (531) and the entropy decoder / parser (520) (hereafter referred to as the "parser"). In some 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) and separate from the video decoder (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 another 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 storage / forwarding 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 buffer memory (515) of sufficient size may be required and may be relatively large in size. Such a buffer memory may be implemented with an adaptive size and may be implemented, at least in part, external to the video decoder (510) in an operating system or similar element (not shown).
[0069] 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 rendering device may be an integral part of the electronic device (530) as shown in FIG. 5, or may be coupled to the electronic device (530) rather than being an integral part. 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 a variety of 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 the 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.
[0070] The parser (520) performs an entropy decoding / parsing operation on the video sequence received from the buffer memory (515), thereby generating symbols (521).
[0071] The reconstruction of the symbols (521) may involve several different processing or functional units, depending on the type of coded video picture or portions thereof (e.g., inter and intra pictures, inter and intra blocks) 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 the several processing or functional units described below is not depicted for simplicity.
[0072] In addition to the functional blocks already mentioned, the video decoder (510) may be conceptually divided into several functional units, as described below. In a practical implementation operating under commercial constraints, many of these functional units may 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 remainder of this disclosure.
[0073] The first unit may include a scaler / inverse transform unit (551), which receives quantized transform coefficients and control information as symbol(s) (521) from the parser (520). The control information includes information indicating what type of inverse transform to use, block size, quantization factors / parameters, quantization scaling matrices, etc. The scaler / inverse transform unit (551) may output a block containing sample values that can be input to an aggregator (555).
[0074] 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 already reconstructed surrounding block information currently stored in the picture buffer (558). The current picture buffer (558) may, for example, buffer a partially reconstructed current picture and / or a fully reconstructed current picture. Depending on the implementation, 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).
[0075] In other cases, the output samples of the scaler / 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 fetch samples used for inter-picture prediction. After motion compensating the fetched samples according to the symbols (521) for the block, these samples may be added by the aggregator (555) to the output of the scaler / inverse transform unit (the output of unit 551 may also be referred to as residual samples or residual signals) to generate output sample information. The addresses in the reference picture memory (557) from which the motion compensation unit (553) fetches the prediction samples may be controlled by a motion vector available to the motion compensation unit (553) in the form of symbols (521). The symbols may have, for example, X, Y components (shift) and a reference picture component (time). Motion compensation may involve interpolation of sample values taken from a reference picture memory (557) when sub-sample accurate motion vectors are used, may be associated with a motion vector prediction mechanism, etc.
[0076] 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 a previous portion (in decoding order) of the coded picture or coded video sequence, as well as to previously reconstructed loop filtered sample values. Several types of loop filters may be included as part of the loop filter unit 556 in various orders, as will be described in more detail below.
[0077] The output of the loop filter unit (556) can be a sample stream, which can be output to a rendering device (512) or can be stored in a reference picture memory (557) for use in future inter-picture prediction.
[0078] Once a 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 (e.g., by the parser (520)) as a reference picture, the current picture buffer (558) can become part of the reference picture memory (557) and a fresh current picture buffer can be reallocated before starting the reconstruction of the subsequent coded picture.
[0079] 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 coded video sequence may conform to the syntax prescribed by the video compression technique or standard being used, in the sense that the coded 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 certain tools from all tools available in the video compression technique or standard as the only tools available for use under that profile. To conform to a standard, the complexity of the coded 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 coded video sequence.
[0080] 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) improvement layers, redundant slices, redundant pictures, forward error correction codes, etc.
[0081] 6 illustrates a block diagram of a video encoder (603) according to an example 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.
[0082] 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).
[0083] 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 that can store pre-prepared videos. 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 pixel 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.
[0084] 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 is one function of the controller (650). In some embodiments, the controller (650) may be operatively coupled to and control other functional units, such as those described below. Such couplings are not depicted for simplicity. 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 certain system design.
[0085] 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). The embedded decoder 633 processes the encoded video stream by the source encoder 630 without entropy encoding, but the decoder (633) reconstructs the symbols to generate sample data in a manner similar to how a (remote) decoder would generate them (in the video compression techniques considered in the disclosed subject matter, any compression between the symbols and the encoded video bitstream in the entropy encoding may be lossless). The reconstructed sample stream (sample data) is input to a reference picture memory (634). Since the 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 fundamental principle of reference picture synchrony (and the resulting drift when synchrony cannot be maintained, for example, due to channel errors) is used to improve coding quality.
[0086] 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 the parser (420), may not be fully implemented in the local decoder (633) at the encoder.
[0087] An observation that can be made at this point is that any decoder technique, except for parsing / entropy decoding, which may only be present in the decoder, may need to be present in substantially the same functional form in the corresponding encoder. For this reason, although the disclosed subject matter may at times focus on decoder operations, this also applies to the decoding portion of an encoder. In this manner, the description of the encoder technique may be shortened, since it is the inverse of the decoder technique, which is described generically. Only in certain areas or aspects is a more detailed description of the encoder provided below.
[0088] 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 attributive form "residual" may be used interchangeably.
[0089] The local video decoder (633) can decode the coded 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 coding engine (632) can advantageously be a lossy process. When the coded video data can be decoded by 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 the reconstructed reference pictures that would be obtained by the far-end (remote) video decoder.
[0090] 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 certain 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 derived from multiple reference pictures stored in the reference picture memory (634).
[0091] 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.
[0092] The output of all the above functional units can be subjected to entropy coding in an entropy coder (645), which converts the symbols produced by the various functional units into a coded video sequence by lossless compression of the symbols according to techniques such as Huffman coding, variable length coding, arithmetic coding, etc.
[0093] The transmitter (640) can buffer the coded video sequence produced 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 coded video data from the video encoder (630) with other data to be transmitted, such as coded audio data and / or auxiliary data streams (sources not shown).
[0094] A controller (650) may manage the operation of the video encoder (603). During encoding, the controller (650) may assign a 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:
[0095] 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, as well as their respective uses and characteristics.
[0096] 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.
[0097] A bidirectionally predictive picture (B picture) may be one that can be encoded and decoded using intra- or inter-prediction that uses up to two motion vectors and reference indices to predict the sample values of each block. Similarly, a multi-predictive picture may use more than two reference pictures and associated metadata for the reconstruction of a single block.
[0098] A source picture is usually spatially divided into multiple sample blocks (e.g., blocks of 4x4, 8x8, 4x8, or 16x16 samples each) and may be 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 prediction 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. A source picture or an intermediate processed picture may be subdivided into other types of blocks for other purposes. The division of coding blocks and other types of blocks may or may not follow the same manner as detailed further below.
[0099] 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.
[0100] 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 forms of redundant data such as redundant pictures and slices, SEI messages, VUI parameter set fragments, etc.
[0101] Video may be captured as multiple source pictures (video pictures) in a temporal sequence. Intra-picture prediction (often abbreviated as intra-prediction) exploits spatial correlations in a given picture, while inter-picture prediction exploits correlations (temporal or otherwise) between pictures. For example, a particular picture to be encoded / decoded, called the 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 can be coded by a vector called a motion vector. The motion vector points to a reference block in the reference picture, and may have a third dimension that identifies the reference picture if multiple reference pictures are used.
[0102] In some exemplary embodiments, bi-prediction techniques can be used for inter-picture prediction. According to such bi-prediction techniques, two reference pictures are used, such as a first reference picture and a second reference picture, both of which precede the current picture in the video in decoding order (but may be past or future, respectively, in display order). 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.
[0103] Furthermore, to improve coding efficiency, merge mode techniques may be used in inter-picture prediction.
[0104] 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 128×128 pixels, 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 of the 32×32 blocks may be further partitioned into four CUs of 16×16 pixels. In some example embodiments, each CU is analyzed during encoding to determine a prediction type for that CU, such as an inter prediction type or an intra prediction type, among various prediction types. A 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 an embodiment, prediction operations in 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 spatial patterns. For example, a luma or chroma PB may include a matrix of values (e.g., luma values) for samples, such as 8×8 pixels, 16×16 pixels, 8×16 pixels, 16×8 samples, etc.
[0105] 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 of sample values (e.g., a predictive block) in a current video picture in a sequence of video pictures and to encode the processed block into a coded picture that is part of a coded video sequence. This exemplary video encoder (703) may be used in place of the video encoder (403) in the example of FIG. 4.
[0106] For example, the video encoder (703) receives a matrix of sample values for a processing block, such as a prediction block, such as 8×8 samples. The video encoder (703) then determines whether the processing block is best coded using intra-mode, inter-mode, or bi-prediction mode, e.g., using rate-distortion optimization (RDO). If it is determined that the processing block is coded in intra-mode, the video encoder (703) may use intra-prediction techniques to encode the processing block into a coded picture; if it is determined that the processing block is coded in inter-mode or bi-prediction mode, the video encoder (703) may use inter-prediction techniques or bi-prediction techniques, respectively, to encode 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 other 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 for determining a prediction mode for a processing block.
[0107] 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 in FIG.
[0108] The inter encoder (730) is configured to receive samples of a current block (e.g., a processing block), compare the block to 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 from an inter encoding technique, 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 encoded video information using a decoding unit 633 (shown as residual decoder 728 in FIG. 7 ) embedded in the example encoder 620 of FIG. 6 , which is described in more detail below.
[0109] 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 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 calculate an intra prediction result (e.g., a predicted block) based on the intra prediction information and reference blocks in the same picture.
[0110] 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.
[0111] 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 a spatial domain to a 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 may be suitably used by the intra-encoder (722) and the inter-encoder (730). For example, the inter-encoder (730) may generate decoded blocks based on the decoded residual data and the inter-prediction information, and the intra-encoder (722) may generate decoded blocks based on the decoded residual data and the intra-prediction information. The decoded blocks may be suitably processed to generate decoded pictures, which may be buffered in a memory circuit (not shown) and used as reference pictures.
[0112] The entropy encoder (725) may be configured to format a bitstream to include the encoded block and perform entropy encoding. The entropy encoder (725) may be 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 an inter mode or a bi-prediction mode, the residual information may not be present.
[0113] 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 coded pictures that are part of a coded video sequence and to decode the coded 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.
[0114] 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 example arrangement of FIG. 8.
[0115] 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- or inter-prediction information, etc.) that may identify the mode in which the block is coded (e.g., intra- or inter-prediction mode, merged submode, or another submode), certain samples or metadata used for prediction by the intra- or inter-decoder (872) or inter-decoder (880), residual information, e.g., in the form of quantized transform coefficients, etc. In one example, if the prediction mode is an inter- or bi-prediction 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).
[0116] An inter decoder (880) may be configured to receive inter prediction information and generate inter prediction results based on the inter prediction information.
[0117] The intra decoder (872) may be configured to receive intra prediction information and generate a prediction result based on the intra prediction information.
[0118] 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 low data volume control information).
[0119] The 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 a reconstructed block, which forms 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.
[0120] It should be noted that the video encoders (403), (603), (703) and the video decoders (410), (510), (810) may be implemented using any suitable technique. 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), (603) and the video decoders (410), (510), (810) may be implemented using one or more processors executing software instructions.
[0121] Turning to block partitioning for encoding and decoding, a general partitioning may start from a base block and follow a predefined set of rules, specific patterns, a partition tree, or any partition structure or scheme. The partitioning may be hierarchical and recursive. After dividing or partitioning the base block according to any of the exemplary partitioning procedures described below or other procedures, or a combination thereof, a final set of partitions or coding blocks may be obtained. Each of these partitions may be one of various partitioning levels in the partitioning hierarchy and may be of various shapes. Each partition may be referred to as a coding block (CB). For various exemplary partitioning implementations described further below, each resulting CB may be of any of the allowable sizes and partitioning levels. Such partitions are referred to as coding blocks because they may be units at which some basic encoding / decoding decisions may be made and encoding / decoding parameters may be optimized, determined, and signaled in the encoded video bitstream. The top or deepest level of the final partitions represents the depth of the coding block partitioning structure of the tree. A coding block may be a luma coding block or a chroma coding block. The CB tree structure for each color may be referred to as a coding block tree (CBT).
[0122] The coding blocks of all color channels may be collectively referred to as a coding unit (CU). The hierarchical structure of all color channels may be collectively referred to as a coding tree unit (CTU). The partitioning pattern or structure for various color channels within a CTU may or may not be the same.
[0123] In some implementations, the partition tree scheme or structure 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 or patterns. Furthermore, whether the luma channel and the chroma channel use the same or different coding partition tree structures and the actual coding partition tree structure 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.
[0124] In some example implementations, a predefined partitioning pattern may be applied to the base block. As shown in FIG. 9, an example 4-way partition tree may start from a first predefined level (e.g., 64×64 block level or other size as the base block size), and the base block may be hierarchically partitioned down to a predefined lowest level (e.g., 4×4 level). For example, the base block may follow four predefined partitioning options or patterns as shown by 902, 904, 906, and 908, and the same partitioning options 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, additional constraints 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 rectangular partitions may not be allowed to be recursive. On the other hand, square partitions are allowed to be recursive. Partitioning according to FIG. 9, with recursion if necessary, produces a final set of coding blocks. A coding tree depth may be further defined to indicate the partition depth from the root node or root block. For example, the coding tree depth for the root node or root block, e.g., a 64x64 block, may be set to 0, and once the root block is further partitioned according to FIG. 9, the coding tree depth is increased by 1. The maximum or deepest level from the 64x64 base block to the 4x4 minimum partition is 4 for the above scheme (starting from level 0). Such a partitioning scheme may be applied to one or more of the color channels. Each color channel may be partitioned independently according to the scheme of FIG. 9 (e.g., a partitioning pattern or option among predefined patterns may be determined independently for each of the color channels at each hierarchical level).Alternatively, two or more of the color channels may share the same hierarchical pattern tree of FIG. 9 (e.g., the same partition pattern or option of the predefined patterns may be selected for two or more color channels at each hierarchical level).
[0125] FIG. 10 illustrates another exemplary predefined partitioning pattern that allows recursive partitioning to form a partitioning tree. As illustrated in FIG. 10, an exemplary 10-way partitioning structure or pattern may be predefined. A root block may start at a predefined level (e.g., from a base block at a 128×128 level or a 64×64 level). The exemplary partitioning structure of FIG. 10 includes various 2:1 / 1:2 and 4:1 / 1:4 rectangular partitions. A partition type with three subpartitions, denoted 1002, 1004, 1006, and 1008, shown in the second row of FIG. 10, may be referred to as a “T” partition. The “T” partitions 1002, 1004, 1006, and 1008 may be referred to as left T, upper T, right T, and lower T. In some exemplary implementations, none of the rectangular partitions of FIG. 10 are allowed to be further subdivided. A coding tree depth may be further defined to indicate the partition depth from the root node or root block. For example, the coding tree depth for the root node or root block, e.g., a 128x128 block, may be set to 0, and once the root block is further partitioned according to FIG. 10, the coding tree depth is increased by 1. In some implementations, only the all-square partitions in 1010 may be allowed to be recursively partitioned to the next level of the partitioning tree according to the pattern of FIG. 10. In other words, for the square partitions in the T-shaped patterns 1002, 1004, 1006, and 1008, recursive partitioning may not be allowed. The partitioning procedure according to FIG. 10, with recursion if necessary, generates a final set of coding blocks. Such a scheme may be applied to one or more of the color channels. In some implementations, further flexibility may be added to the use of partitions below the 8x8 level. For example, 2x2 chroma inter prediction may be used in certain cases.
[0126] In some other example implementations for coding block partitioning, a quadtree structure may be used to partition a base block or an intermediate block into quadtree partitions. Such quadtree partitioning may be applied hierarchically and recursively to any square partitions. Whether a base block or intermediate block or partition is further quadtree partitioned may be adapted to various local characteristics of that base block or intermediate block / partition. The quadtree partitioning at a picture boundary may be further adapted. For example, an implicit quadtree partitioning may be performed at the picture boundary, whereby a block may continue to be quadtree partitioned until its size fits into the picture boundary.
[0127] In some other example implementations, a hierarchical binary partitioning from a base block may be used. For such a scheme, a base block or a mid-level block may be divided into two partitions. The binary partitioning may be horizontal or vertical. For example, a horizontal binary partitioning may divide a base block or a mid-level block into equal left and right partitions. Similarly, a vertical binary partitioning may divide a base block or a mid-level block into equal top and bottom partitions. Such binary partitioning may be hierarchical and recursive. At each of the base block or mid-level blocks, a determination may be made as to whether the binary partitioning scheme should continue and, if the scheme continues further, whether a horizontal or vertical binary partitioning should be used. In some implementations, further partitioning may stop at a predefined minimum partition size (in one or both dimensions). Alternatively, further partitioning may stop once a predefined partitioning level or depth from the base block is reached. In some implementations, the aspect ratio of the partitions may be constrained. For example, the aspect ratio of a partition is no smaller than 1:4 (or no larger than 4:1). Thus, a vertical strip partition with a vertical-to-horizontal aspect ratio of 4:1 can only be further bisected vertically into upper and lower partitions with vertical-to-horizontal aspect ratios of 2:1 each.
[0128] In still other examples, a ternary partitioning scheme may be used to partition the base block or any intermediate blocks, as shown in FIG. 13. The ternary pattern may be implemented vertically, as shown at 1302 in FIG. 13, or horizontally, as shown at 1304 in FIG. 13. The exemplary partitioning ratio in FIG. 13 is shown as 1:2:1, both vertically and horizontally, but other ratios may be predefined. In some implementations, two or more different ratios may be predefined. Such a ternary partitioning scheme may be used to complement a quadtree or binary partitioning structure, such that a ternary tree partitioning can capture objects located at the block center in one contiguous partition, whereas quadtrees and binary trees always split along the block center, thus splitting the objects into separate partitions. In some implementations, the width and height of the exemplary ternary tree partitions are always powers of two to avoid additional transformations.
[0129] The above partitioning schemes may be combined in any manner at different partitioning levels. As an example, the above-mentioned quadtree and binary partitioning schemes may be combined to partition the base block into a quadtree-binary-tree (QTBT) structure. In such a scheme, the base block or intermediate blocks / partitions may be quadtree-partitioned or bipartitioned according to a set of predefined conditions, if specified. A particular example is shown in FIG. 14. In the example of FIG. 14, the base block is first quadtree-partitioned into four partitions, as shown by 1402, 1404, 1406, and 1408. Each resulting partition is then quadtree-partitioned at the next level into four further partitions (such as 1408), bipartitioned (horizontally or vertically) into two further partitions (such as 1402 or 1406; either symmetrically, for example), or not divided (such as 1404). As shown by the overall exemplary partition pattern in 1410 and the corresponding tree structure / representation in 1420, for square partitions, bisection or quadtree partitioning may be allowed recursively, where solid lines represent quaternary partitioning and dashed lines represent binary partitioning. For each binary partition node (non-leaf binary partition), a flag may be used to indicate whether the binary partitioning is horizontal or vertical. For example, as shown in 1420, consistent with the partitioning structure of 1410, flag "0" may represent a horizontal binary partitioning and flag "1" may represent a vertical binary partitioning. For quadtree partitioned partitions, there is no need to indicate the partition type, since quadtree partitioning always splits a block or partition both horizontally and vertically, generating four sub-blocks / partitions of equal size. In some implementations, flag "1" may represent a horizontal binary partitioning and flag "0" may represent a vertical binary partitioning.
[0130] In some example implementations of QTBT, the quadtree and binary partitioning rule sets may be represented by the following predefined parameters and their associated corresponding functions: CTU size: Root node size of the quadtree (size of the base block) MinQTSize: The minimum allowed quadtree leaf node size. · MaxBTSize: The maximum allowed binary tree root node size. · MaxBTDepth: Maximum allowed binary tree depth MinBTSize: The minimum allowed binary tree leaf node size. In some exemplary implementations of the QTBT partitioning structure, the CTU size may be set as 128x128 luma samples with two corresponding 64x64 blocks of chroma samples (if exemplary chroma subsampling is considered and used), MinQTSize may be set as 16x16, MaxBTSize may be set as 64x64, MinBTSize (for both width and height) may be set as 4x4, and MaxBTDepth may be set as 4. Quad-tree partitioning may be applied to the CTU first to generate quad-tree leaf nodes. The quad-tree leaf nodes may have sizes ranging from the minimum allowed size of 16x16 (i.e., MinQTSize) to 128x128 (i.e., CTU size). If a node is 128x128, it will not be split by the binary tree first because its size exceeds MaxBTSize (i.e., 64x64). Otherwise, nodes that do not exceed MaxBTSize may be partitioned by a binary tree. In the example of Figure 14, the base block is 128x128. The base block can only be quadtree partitioned according to a predefined set of rules. The base block has a partition depth of 0. Each of the resulting four partitions is 64x64, does not exceed MaxBTSize, and can be further quadtree or binary tree partitioned at level 1. The process continues. If the depth of the binary tree reaches MaxBTDepth (i.e. 4), no further partitions may be considered. If a binary tree node has a width equal to MinBTSize (i.e. 4), no further horizontal partitions may be considered. Similarly, if a binary tree node has a height equal to MinBTSize, no further vertical partitions may be considered.
[0131] In some example implementations, the above QTBT scheme may be configured to support the flexibility of luma and chroma having the same or separate QTBT structures. For example, for P and B slices, the luma CTB and chroma CTB in one CTU may share the same QTBT structure. However, for an I slice, the luma CTB may be partitioned into CBs by a QTBT structure, and the chroma CTB may be partitioned into chroma CBs by another QTB structure. This means that a CU may be used to refer to different color channels in an I slice. For example, an I slice may consist 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 may consist of coding blocks of all three color components.
[0132] In some other implementations, the QTBT scheme may be supplemented with the ternary partitioning scheme described above. Such implementations may be referred to as multi-type-tree (MTT) structures. For example, in addition to the bipartite division of nodes, one of the ternary partitioning patterns of FIG. 13 may be selected. In some implementations, only square nodes may undergo ternary partitioning. An additional flag may be used to indicate whether the ternary partitioning is horizontal or vertical.
[0133] Two-level or multilevel tree designs such as the QTBT implementation and the QTBT implementation supplemented by a trichotomous partition can be motivated primarily by reduced complexity. In theory, the complexity of traversing a tree is T D where T represents the number of partition types and D is the depth of the tree. Tradeoffs can be made by using multiple types (T) while keeping the depth (D) small.
[0134] 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 intraframe or interframe prediction during the encoding and decoding process. In other words, the CB may be further partitioned into different subpartitions where individual prediction decisions / configurations may be made. In parallel, the CB may be further partitioned into multiple transform blocks (TBs) to delineate 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 different. For example, each partitioning scheme may be performed using its own procedure, for example, based on various characteristics of the video data. The partitioning scheme of the PBs and TBs may be independent in some exemplary implementations. The partitioning schemes and boundaries of the PBs and TBs may be correlated in some other exemplary implementations. In some implementations, for example, the TBs may be partitioned after the PB partitions, and in particular, each PB after being determined after the partitioning of the coding blocks may be further partitioned into one or more TBs. For example, in some implementations, the PB may be divided into 1, 2, 4, or some other number of TBs.
[0135] In some implementations, for the purpose of partitioning base blocks into coding blocks and further into prediction and / or transform blocks, the luma and chroma channels may be treated differently. For example, in some implementations, partitioning of coding blocks into prediction and / or transform blocks may be allowed for the luma channel, while such partitioning of coding blocks into prediction and / or transform blocks may not be allowed for the chroma channel(s). 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 for the luma and chroma channel(s) may be different. For example, coding blocks for the luma channel may be allowed to be partitioned into smaller transform and / or prediction blocks than the chroma channels. In yet another example, the maximum depth of partitioning of a coding block into transform and / or prediction blocks may be different between luma and chroma channels, e.g., a coding block for a luma channel may be allowed to be partitioned into deeper transform and / or prediction blocks than the chroma channel(s). In a specific example, a luma coding block may be partitioned into transform blocks of multiple sizes that can be represented by recursive partitions going down up to two levels, and transform block shapes such as square, 2:1 / 1:2, 4:1 / 1:4, etc., and transform block sizes from 4×4 to 64×64 may be allowed. However, for a chroma block, only the largest possible transform block specified for the luma block may be allowed.
[0136] In some example implementations for partitioning a coding block into PBs, the depth, shape, and / or other characteristics of the PB partitioning may depend on whether the PB is intra-coded or inter-coded.
[0137] Partitioning of coding blocks (or prediction blocks) into transform blocks may be realized in various exemplary manners. Such manners include, but are not limited to, quadtree partitioning and predefined pattern partitioning, recursive or non-recursive, and may take additional consideration of transform blocks at boundaries of coding blocks or prediction blocks. In general, the resulting transform blocks may be at different partitioning levels, may not be the same size, and may not be square shaped (e.g., may be rectangular with an acceptable size and aspect ratio). Further examples are described in more detail below in connection with Figures 15, 16, and 17.
[0138] However, in some other implementations, the CB obtained via any of the above partitioning schemes may be used as a basic or smallest coding block for prediction and / or transformation. In other words, no further partitioning is performed for inter / intra prediction purposes and / or transformation purposes. For example, the CB obtained from the above QTBT scheme may be directly used as a unit for performing prediction. Specifically, such a QTBT structure removes the concept of multiple partition types, i.e., removes the separation of CU, PU and TU, and supports more flexibility for the partition shapes of CU / CB, as described above. In such a QTBT block structure, the CU / CB can have either a square or rectangular shape. The leaf nodes of such a QTBT are used as units for prediction and transformation processing without further partitioning. This means that in such an exemplary QTBT coding block structure, CU, PU, TU have the same block size.
[0139] The various CB partitioning schemes described above and further partitioning of the CB into PBs and / or TBs (including no PB / TB partitioning) may be combined in any manner. The following specific implementations are provided as non-limiting examples.
[0140] Specific exemplary implementations of coding block and transform block partitioning are described below. In such exemplary implementations, a base block may be partitioned into coding blocks using the recursive quadtree partitioning described above (such as those in FIG. 9 and FIG. 10) or a predefined partitioning pattern. At each level, whether further quadtree partitioning of a particular partition should continue may be determined by local video data characteristics. The resulting CBs may be of different sizes at different quadtree partitioning levels. The decision of whether to code a picture region using inter-picture (temporal) 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 partitioned into one, two, four, or other number of PBs according to a predefined PB partitioning type. Inside one PB, the same prediction process may be applied, and related information may be transmitted to the decoder for each PB. After obtaining the residual block by applying the prediction process based on the PB partitioning type, the CB may be partitioned into TBs according to another quadtree structure similar to the coding tree for the CB. In this particular implementation, the CB or TB may be square, but need not be limited thereto. Furthermore, in this particular example, the PB may be square or rectangular in shape for inter prediction, and may only be square for intra prediction. The coding block may be divided, for example, into four square TBs. Each TB may be further divided recursively (using quadtree division) into smaller TBs, called residual quadtrees (RQTs).
[0141] Another exemplary implementation for partitioning the base block into CB, PB, and / or TB is described further below. For example, rather than using multiple partition unit types as shown in FIG. 9 or FIG. 10, a quadtree with nested multi-type trees using bisection and trisection segmentation structures (e.g., QTBT, or QTBT with trisection, as described above) may be used. Separation of CB, PB, and TB (i.e., partitioning CB into PB and / or TB, and partitioning PB into TB) may be abandoned unless required for CBs with sizes too large for the maximum transform length (such CBs may need to be further divided). This exemplary partitioning scheme may be designed to support further flexibility for CB partition shapes, such that prediction and transformation can both 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, the coding tree block (CTB) is first partitioned by a quadtree structure. The quadtree leaf nodes may then be further partitioned by a nested multitype tree structure. An example of a nested multitype tree structure using bisection or trisection is shown in FIG. 11. Specifically, the example multitype tree structure of FIG. 11 includes four partition 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). And CB corresponds to the leaf of the multitype tree. In this example implementation, this segmentation is used for both prediction and transform processing without further partitioning, as long as CB is not too large for the maximum transform length. This means that in most cases, in a quadtree with a nested multitype tree coding block structure, CB, PB, and TB have the same block size.An exception occurs when the maximum supported transform length is smaller than the width or height of a color component of the CB. In some implementations, in addition to the bisection or trisection division, the nested pattern of Figure 11 may further include a quadtree division.
[0142] One example of a quadtree with nested multi-type tree coding block structure of block partitions for one base block (including quadtree, bisection, and trisection split options) is shown in FIG. 12. More specifically, FIG. 12 shows a base block 1200 being quadtree split into four square partitions 1202, 1204, 1206, and 1208. A decision is made for each quadtree split partition to further use the multi-type tree structure and quadtree of FIG. 11 for further splitting. In the example of FIG. 12, partition 1204 is not further split. Partitions 1202 and 1208 each employ another round of quadtree splitting. For partition 1202, the second level quadtree partitioned top-left, top-right, bottom-left, and bottom-right partitions adopt the third level quadtree partitioning, horizontal bisection partition 1104 of FIG. 11, unsplit, and horizontal thirds partition 1108 of FIG. 11, respectively. Partition 1208 adopts another quadtree partitioning, and the second level quadtree partitioned top-left, top-right, bottom-left, and bottom-right partitions adopt the third level vertical thirds partition 1106 of FIG. 11, unsplit, unsplit, and horizontal bisection partition 1104 of FIG. 11, respectively. Two of the subpartitions of the third level top-left partition of 1208 are further partitioned according to the horizontal bisection partition 1104 and horizontal thirds partition 1108 of FIG. 11, respectively. Partition 1206 adopts a second level division pattern into two partitions according to vertical bisection division 1102 of Figure 11, which are further divided at a third level according to horizontal third division 1108 and vertical bisection division 1102 of Figure 11. Furthermore, a fourth level division is applied to one of them according to horizontal bisection division 1104 of Figure 11.
[0143] For the particular example above, the maximum luma transform size may be 64×64 and the maximum supported chroma transform size may be different from the luma, e.g., 32×32. Although the example CB above in Figure 12 is not generally further divided into smaller PBs and / or TBs, if the width or height of a luma or chroma coding block is larger than the maximum transform width or height, the luma or chroma coding block may be automatically divided in the horizontal and / or vertical directions to satisfy the transform size constraints in the horizontal and / or vertical directions.
[0144] In the particular example of partitioning base blocks into CBs above, as mentioned above, the coding tree scheme can support that luma and chroma can have separate block tree structures. For example, for P and B slices, the luma CTB and chroma CTB in one CTU may share the same coding tree structure. For I slices, for example, luma and chroma can have separate coding block tree structures. When the separate block tree structure is applied, the luma CTB is 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 consist of a coding block of the 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.
[0145] If a coding block is further divided into multiple transform blocks, the transform blocks therein may be ordered in the bitstream according to various orders or scanning aspects. 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, as described above, the transform partitioning may support multiple shapes of blocks, e.g., 1:1 (square), 1:2 / 2:1, and 1:4 / 4:1, with the 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 transform block partitioning may be applied only to the luma component, and for the 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, the luma and chroma coding blocks may be implicitly divided into multiple min(W,64)×min(H,64) and min(W,32)×min(H,32) transform blocks, respectively.
[0146] In some example implementations of transform block partitioning, for both intra- and inter-coded blocks, the coding blocks may be further partitioned into multiple transform blocks with a partitioning depth up to a predefined number of levels (e.g., two levels). The depth and size of the transform block partitioning may be related. For some example implementations, the mapping from the transform size of the current depth to the transform size of the next depth is shown below in Table 1. [Table 1]
[0147] Based on the example mapping of Table 1, for a 1:1 square block, the next level transform partition can generate four 1:1 square sub-transform blocks. The transform partition may stop at, for example, 4×4. Thus, the transform size for the current depth 4×4 corresponds to the same transform 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 can generate two 1:1 square sub-transform blocks, and for a 1:4 / 4:1 non-square block, the next level transform partition can generate two 1:2 / 2:1 sub-transform blocks.
[0148] In some example implementations, additional constraints may be applied regarding transform block partitioning for the luma component of an intra-coded block. For example, for each level of transform partitioning, all sub-transform blocks may be constrained to have equal 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, the second level partitioning must be applied to all first level sub-blocks to keep the transform units equal in size. An example of transform block partitioning for an intra-coded square block according to Table 1 is shown in FIG. 15 with the coding order indicated by the arrows. Specifically, 1502 shows a square coding block. The first level partitioning into four equal-sized transform blocks according to Table 1 is shown in 1504, with the coding order indicated by the arrows. The second level division of all first level equal sized blocks into 16 equal sized transform blocks according to Table 1 is shown at 1506 with the coding order indicated by the arrows.
[0149] In some example implementations, the above constraints on intra-coding may not apply for the luma components of inter-coded blocks. For example, after the first level of transform partitioning, any one of the sub-transform blocks may be further partitioned independently for another level. Thus, the resulting transform blocks may or may not be of the same size. An example partitioning of an inter-coded block into transform blocks is shown in FIG. 16 along with the coding order. In the example of FIG. 16, an inter-coded block 1602 is partitioned into transform blocks at two levels according to Table 1. At the first level, the inter-coded block is partitioned into four transform blocks of equal size. Then, only one (but not all) of the four transform blocks is further partitioned into four sub-transform blocks, resulting in a total of seven transform blocks with two different sizes, as indicated by 1604. An example coding order of these seven transform blocks is indicated by the arrows at 1604 in FIG. 16.
[0150] In some example implementations, for a chroma component(s), some additional constraints on the transform block may be applied, e.g., for a chroma component(s), the transform block size may be the same size as the coding block size, but not smaller than a predefined size, e.g., 8×8.
[0151] In some other example implementations, for coding blocks with either width (W) or height (H) greater than 64, both luma and chroma coding blocks may be implicitly divided into multiples of min(W,64)×min(H,64) and min(W,32)×min(H,32) transform units, respectively, where in this disclosure, “min(a,b)” can return the smaller value between a and b.
[0152] FIG. 17 further illustrates another alternative exemplary scheme for partitioning a coding block or a prediction block into transform blocks. As illustrated in FIG. 17, instead of using recursive transform partitioning, a predefined set of partitioning types may be applied to a coding block according to its transform type. In the particular example illustrated in FIG. 17, one of six exemplary partitioning types may be applied to partition a coding block into a varying number of transform blocks. Such a scheme for generating transform block partitioning may be applied to either a coding block or a prediction block.
[0153] More specifically, the partitioning scheme of FIG. 17 provides up to six example partition types for any given transform type (transform type refers to the type of primary transform, e.g., ADST and others). In this scheme, every coding block or predictive block may be assigned a transform partition type based on, e.g., a rate-distortion cost. In one example, the transform partition type assigned to a coding block or predictive block may be determined based on the transform type of the coding block or predictive block. A particular transform partition type may correspond to a transform block partition size and pattern, as illustrated by the six transform partition types illustrated in FIG. 17. The correspondence between the various transform types and the various transform partition types may be predefined. An example is illustrated below. The uppercase English labels indicate transform partition types that may be assigned to a coding block or predictive block based on a rate-distortion cost.
[0154] ·PARTITION_NONE: Allocates the transformation size equal to the block size.
[0155] ·PARTITION_SPLIT: Allocates a transformation size of 1 / 2 the width of the block size and 1 / 2 the height of the block size.
[0156] ·PARTITION_HORZ: Allocates a transformation size with the same width as the block size and 1 / 2 the height of the block size.
[0157] ·PARTITION_VERT: Allocates a transformation size that is 1 / 2 the width of the block size and the same height as the block size.
[0158] ·PARTITION_HORZ4: Allocates a transformation size with the same width as the block size and 1 / 4 of the block size in height.
[0159] ·PARTITION_VERT4: Allocates a transformation size that is 1 / 4 the width of the block size and the same height as the block size.
[0160] In the above example, all of the transform partition types as shown in Figure 17 include uniform transform sizes for the partitioned transform blocks. This is by way of example only and not limitation. In some other implementations, mixed transform block sizes may be used for the partitioned transform blocks in a particular partition type (or pattern).
[0161] A video block (PB or CB; CB is also referred to as PB when not further partitioned into multiple predictive blocks) is predicted in various manners rather than being directly encoded, thereby exploiting various correlations and redundancies in the video data to improve compression efficiency. Correspondingly, such predictions can be made in various modes. For example, a video block may be predicted via intra prediction or inter prediction. In particular, in an inter prediction mode, a video block may be predicted by one or more other reference blocks or inter predictor blocks from one or more other frames, either via single reference or mixed reference inter prediction. For an inter prediction implementation, a reference block may be specified by its frame identifier (temporal location of the reference block) and a motion vector indicating a spatial offset between a current block being encoded or decoded and the reference block (spatial location of the reference block). The reference frame identification and the motion vector may be signaled in the bitstream. The motion vector as a spatial block offset may be signaled directly or may itself be predicted by another reference motion vector or a predictor motion vector. For example, the current motion vector may be predicted directly by a reference motion vector (e.g., of a candidate neighboring block) or by a combination of the reference motion vector and a motion vector difference (MVD) between the current motion vector and the reference motion vector. The latter is sometimes called merge mode with motion vector difference (MMVD). The reference motion vector may be identified in the bitstream, for example, as a pointer to a spatially neighboring block or a temporally neighboring but spatially co-located block of the current block.
[0162] In some other example implementations, intra-block copy (IBC) prediction can be used. In IBC, a current block in a current frame can be predicted using another block in the current frame (not a temporally different frame; hence the term "intra") in combination with a block vector (BV). The block vector indicates the offset of the location of the intra predictor or reference block relative to the location of the predicted block. The location of the coding block can be represented, for example, by the pixel coordinates of its upper left corner relative to the upper left corner of the current frame (or slice). Thus, IBC modes use a similar inter-prediction concept within the current frame. BVs can be predicted, for example, directly by other reference BVs or by combining BV differences between the current BV and the reference BVs, similar to predicting MVs using reference MVs and MV differences in inter prediction. IBC is particularly useful for providing improved coding efficiency, for example, for encoding and decoding video frames with screen content that has a repetitive pattern, such as a significant amount of text information. In text information, identical text segments (letters, symbols, words, phrases, etc.) can appear in different parts of the same frame and can be used to predict each other.
[0163] In some implementations, IBC may be treated as a separate prediction mode besides the normal intra prediction mode and the normal inter prediction mode. Thus, the selection of the prediction mode for a particular block may be made and signaled among three different prediction modes, i.e., intra prediction, inter prediction, and IBC modes. In these implementations, flexibility may be built into each of these modes to optimize the coding efficiency in each of these modes. In some other implementations, IBC may be treated as a sub-mode or branch within the inter prediction mode by using similar motion vector determination, referencing, and coding mechanisms. In such implementations (unified inter prediction and IBC modes), the flexibility of IBC may be somewhat constrained to harmonize common inter prediction modes and IBC modes. However, such implementations are less complex and may still utilize IBC to improve coding efficiency for video frames characterized by screen content, for example. In some example implementations, with the existing pre-specified mechanisms for separate inter prediction and intra prediction modes, the inter prediction modes may be extended to support IBC.
[0164] These prediction mode selections can be made at various levels, including but not limited to the sequence level, frame level, picture level, slice level, CTU level, CT level, CU level, CB level, or PB level. For example, for IBC purposes, a decision of whether an IBC mode is adopted may be made and signaled at the CTU level. If a CTU is signaled as adopting an IBC mode, all coding blocks in the entire CTU may be predicted by IBC. In some other implementations, IBC prediction may be determined at the superblock (SB or superblock) level. Each SB may be divided into multiple CTUs or partitions in various ways (e.g., quadtree partitioning). Examples are provided further below.
[0165] FIG. 18 illustrates an exemplary snapshot of a section of a current frame including multiple CTUs from the decoder's perspective. Each square block, such as 1802, represents a CTU. The CTU may be one of various predefined sizes, such as SB, as described in detail above. Each CTU may include one or more coding blocks (or, for a particular color channel, predicted blocks). The CTUs shaded with horizontal stripes represent CTUs that have already been reconstructed. CTU 1804 represents the CTU currently being reconstructed. Within the current CTU 1804, the coding blocks shaded with horizontal stripes represent blocks that have already been reconstructed within the current CTU, the coding blocks shaded with diagonal lines 1806 are currently being reconstructed, while the non-shaded blocks within the current CTU 1804 are awaiting reconstruction. The other non-shaded CTUs are yet to be processed.
[0166] The position or offset (relative to the current block) of a reference block used to predict a current coding block in IBC may be indicated by a BV as shown by an exemplary arrow in FIG. 18. For example, a BV may indicate a position difference in the form of a vector between a reference block (labeled "Ref" in FIG. 18) and the upper left corner of the current block. Although FIG. 18 is illustrated using a CTU as the basic IBC unit, the underlying principles apply to implementations in which a SB is used as the basic IBC unit. In such implementations, each superblock may be divided into multiple CTUs, and each CTU may be further divided into multiple coding blocks, as described in more detail below.
[0167] As disclosed in more detail below, depending on the location of the reference CTU / SB relative to the current CTU / SB for IBC, the reference CTU / SB may be referred to as a local CTU / SB or a non-local CTU / SB. The local CTU / SB may refer to a CTU / SB that is coincident with the current CTU / SB, or a reconstructed CTU / SB that is close to the current CTU / SB (e.g., the CTU / SB to the left of the current CTU / SB). The non-local CTU / SB may refer to a CTU / SB that is further away from the current CTU / SB. When making an IBC prediction of a current coding block, either or both of the local CTU / SB and the non-local CTU / SB may be searched for a reference block. The specific manner in which the IBC is implemented may depend on whether the reference CTU / SB is local or non-local. This is because the on-chip and off-chip storage management (e.g., off-chip picture buffer (DPB) and / or on-chip memory) of the reconstructed samples for local or non-local CTU / SB references may be different. For example, the reconstructed local CTU / SB samples may be suitable for storage in an on-chip memory of an encoder or decoder for IBC, whereas the reconstructed non-local CTU / SB samples may be stored in an off-chip DPB memory or an external memory.
[0168] In some implementations, the location of a reconstructed block that may be used as a reference block for the current coding block 1804 may be constrained. Such constraints may be the result of various factors and may depend on whether IBC is implemented as an integrated part of a general inter-prediction mode, a special extension of an inter-prediction mode, or a separate independent IBC mode. In some examples, only the current reconstructed CTU / SB sample may be searched to identify an IBC reference block. In some other examples, the current reconstructed CTU / SB sample and another nearby reconstructed CTU / SB sample (e.g., the left neighbor CTU / SB) may be available for reference block search and selection, as indicated by the thick dotted box 1808 in FIG. 18. For such implementations, only the local reconstructed CTU / SB sample may be used for IBC reference block search and selection. In some other examples, certain CTU / SBs may not be available for IBC reference block search and selection for various other reasons. For example, CTU / SB 1810 marked with an cross in FIG. 18 may not currently be available for searching and selecting a reference block for block 1804 because it may be used for a special purpose (e.g., wavefront parallel processing) that will be further described below.
[0169] In some implementations, the area defined by the thick dotted box 1808, as shown in Figure 18, may be referred to as a local search area. Samples within the local search area may be stored in on-chip memory.
[0170] In some implementations, when Intra Block Copy (IntraBC, or IBC) is allowed, the loop filters are disabled. The loop filters include the deblocking filter, the Constrained Directional Enhancement Filter (CDEF), and the Loop Restoration (LR). By doing this, a second picture buffer dedicated to enable / support IntraBC can be avoided.
[0171] In some implementations, constraints on already reconstructed CTU / SBs that are allowed to be used to provide an IBC reference block or reference sample may result from the adoption of parallel decoding, in which multiple coding blocks are decoded simultaneously. An example is shown in FIG. 19, where each square represents a CTU / SB. Parallel decoding may be implemented, where multiple CTU / SBs in every other column (every two columns) in several consecutive rows may be reconstructed in a parallel process, as indicated by the CTU / SBs shaded with diagonal lines in FIG. 19. The other CTU / SBs shaded with horizontal stripes have already been reconstructed, and the unshaded CTU / SBs are yet to be constructed. In such parallel processing, for a currently parallel processed CTU / SB with top-left coordinate (x0,y0), the reconstructed sample at (x,y) can be accessed to predict the current CTU / SB in IBC only if the vertical coordinate y is less than y0 and the horizontal coordinate x is less than x0+2(y0-y), and thus the already constructed CTU / SB shaded with horizontal stripes can be used as a reference for the current blocks to be parallel processed. Note that units of coordinates such as (x0,y0) and (x,y) may include pixels, blocks (e.g., SBs), etc.
[0172] In some implementations, the writeback latency of the most recently reconstructed samples to the off-chip DPB may impose further restrictions on the CTU / SB that may be used to provide the IBC reference samples for the current block. This is especially true when an off-chip DPB is used to hold the IBC reference samples. An example is shown in FIG. 20, where additional constraints may be applied in addition to those shown in FIG. 19. Specifically, to allow for hardware writeback latency, the most recently reconstructed regions may not be accessed by IBC prediction for reference block search and selection. The number of constrained or prohibited most recently reconstructed regions may be 1 to n CTU / SBs, where n is a positive number and n may be positively correlated with the duration of the writeback latency. Thus, in addition to the specific parallelism constraints in Fig. 19, for a current CTU / SB (shaded with diagonal lines), if the coordinates of one top-left position of one current CTU / SB are (x0,y0), then a prediction at position (x,y) is accessible by the IBC if its vertical coordinate y is less than y0 and its horizontal coordinate is less than x0+2(y0-y)-D, where D indicates the number of nearest reconstruction regions (e.g., to the left of the current CTU / SB) that are constrained / prohibited from being used as an IBC reference. Fig. 20 shows such additional CTU / SBs that are restricted / excluded as IBC reference samples for D=2 (in units of blocks, or 2x128 pixels in units of pixels if each block is a 128x128 SB). These additional CTU / SBs that are not available as IBC references are indicated by negative diagonal lines shading.
[0173] In some implementations, the region formed by the striped shaded blocks, as shown in FIG. 20, may be referred to as the non-local search region, and samples within this region may be stored in external memory.
[0174] In some implementations, the IBC architecture may form a dedicated coding mode, where the IBC mode is a third prediction mode other than the intra and inter prediction modes. The bitstream carries an IBC syntax element indicating the IBC mode for a coding unit if the block size is 64x64 or less. Thus, the maximum CU size that can utilize IBC is 64x64 to realize the continuous memory update mechanism of the reference sample memory (RSM). However, the reference sample addressing mechanism remains the same as the HEVC SCC extension by indicating a two-dimensional offset and reusing the vector coding process of inter prediction.
[0175] In some implementations, another special case occurs when a chroma separate tree (CST) is active, in which the encoder cannot derive the chroma BVs from the luma BVs and will use IBC only for luma coding blocks.
[0176] In some implementations, also described in more detail below, both local CTU / SB and non-local CTU / SB search areas may be used for IBC reference block search and selection. Furthermore, when on-chip memory is used, some of the constraints on the availability of already constructed CTU / SB as IBC references in terms of write-back delays may be relaxed or removed. In some further implementations, the manner in which local CTU / SB and non-local CTU / SB are used when coexisting may differ, for example, due to differences in management of buffering of reference blocks using either on-chip or off-chip memory. These implementations are described in more detail in the following disclosure.
[0177] In some implementations, IBC may be implemented as an extension of inter prediction modes that treat the current frame as a reference frame in inter prediction modes, so that blocks in the current frame may be used as prediction references. Such an IBC implementation may follow the coding path for inter prediction, although the IBC process only involves the current frame. In such implementations, the reference structure of the inter prediction modes may be adapted to IBC. In IBC, the representation of the addressing mechanism to the reference samples using BVs may be similar to the motion vectors (MVs) in inter prediction. Thus, IBC may be implemented as a special inter prediction mode that relies on a similar or identical syntax structure and decoding process as the inter prediction modes, based on the current frame as a reference frame.
[0178] In such implementations, IBC may be treated as an inter prediction mode, so that intra-only predicted slices must be predicted slices to allow the use of IBC. In other words, intra-only predicted slices are not inter predicted (because intra prediction modes do not invoke any inter prediction processing path), and thus IBC is not allowed for prediction on such intra-only slices. When IBC is applicable, the encoder extends the reference picture list by one entry for a pointer to the current picture. Thus, the current picture can take up to one picture size buffer of the shared decoded picture buffer (DPB). Signaling for the use of IBC may be implicit in the selection of reference frames in inter prediction modes. For example, if the selected reference picture points to the current picture, the coding unit uses IBC with a coding path such as inter prediction with special IBC extensions, if necessary and available. In some specific implementations, the reference samples in the IBC process may not be loop filtered before being used for prediction, in contrast to regular inter prediction. Furthermore, the corresponding reference current picture may be a long-term reference frame since it is close to the next frames to be encoded or decoded. In some implementations, to minimize memory requirements, the encoder may release the buffer immediately after reconstructing the current picture. The encoder may put a filtered version of the reconstructed picture back into the DPB as a short-term reference. It may then be unfiltered when used for IBC, but will be a reference image for later frames in true inter prediction.
[0179] In the above example implementation, even though IBC is just an extension of inter prediction mode, IBC may be processed with some special procedures that may deviate from normal inter prediction. For example, IBC reference samples may still not be filtered. In other words, reconstructed samples before the in-loop filtering process, including deblocking filtering (DBF), sample adaptive offset (SAO) filtering, component cross-sample offset (CCSO) filtering, etc., may be used for IBC prediction, while normal inter prediction modes use filtered samples for prediction. In another example, luma sample interpolation for IBC may not be performed, and chroma sample interpolation may only be required if the chroma BV is non-integer when derived from the luma BV. In yet another example, if the chroma BV is non-integer and the reference block for IBC is near the boundary of the available area for IBC reference, the surrounding reconstructed samples may be outside the boundary to perform chroma interpolation. To avoid such cases, BVs pointing to a single line adjacent to the boundary are not possible.
[0180] In such implementations, prediction of the current block by IBC can reuse the prediction and coding mechanisms of the inter prediction process, including the reference BV and, for example, additional BV differentials to predict the current BV. However, in some specific implementations, the luma BV may be implemented with integer resolution rather than fractional precision, as in the MV for regular inter prediction.
[0181] In some implementations, all CTUs and SBs shown in Fig. 18 with horizontal stripe shading may be used for IBC reference block search and selection, except for two CTUs (shown by crosses in Fig. 18) at the top right of the current CTU to allow for Wavefront Parallel Processing (WPP), shown as 1810 in Fig. 18. Thus, with some exceptions for parallel processing, it is almost the entire already reconstructed area of the current picture.
[0182] In some other implementations, the area from which the IBC reference block may be searched and selected may be constrained to the local CTU / SB. An example is shown by the thick dotted box 1808 in FIG. 18. In such an example, the CTU / SB to the left of the current CTU may serve as the reference sample area for the IBC at the beginning of the reconstruction process of the current CTU. When using such a local reference area, instead of allocating additional external memory space in the DPB, on-chip memory space may be allocated to keep the local CTU / SB for IBC reference. In some implementations, a fixed on-chip memory may be used for the IBC, thereby reducing the complexity of implementing the IBC in a hardware architecture. Thus, a dedicated IBC mode independent of the normal inter prediction, rather than being implemented as a mere extension of the inter prediction mode, may be implemented for on-chip memory utilization.
[0183] For example, a fixed on-chip memory size for storing local IBC reference samples, e.g., the left CTU or SB, may be 128×128 for each color component. In some implementations, the maximum CTU size may be 128×128. In such a case, the reference sample memory (RSM) may hold samples the size of a single CTU. In some other alternative implementations, the CTU size may be smaller. For example, the CTU size may be 64×64. In this way, the RSM can hold multiple (four in this case) CTUs simultaneously. In still other implementations, the RSM may hold multiple SBs, each of which may contain one or more CTUs, and each CTU may contain multiple coding blocks.
[0184] In some implementations of local on-chip IBC referencing, the on-chip RSM may hold one CTU and implement a continuous update mechanism to replace the reconstructed samples of the left-neighboring CTU with the reconstructed samples of the current CTU. FIG. 21 shows a simplified example of such a continuous RSM update mechanism at four intermediate times during the reconstruction process. In the example of FIG. 21, the RSM has a fixed size to hold one CTU. The CTU may include implicit partitioning. For example, the CTU may be implicitly partitioned into four disjoint regions (e.g., quad-tree partitioning). Each region may contain multiple coding blocks. The CTU may be 128×128 in size, but each of the exemplary regions or partitions may be 64×64 in size for the exemplary quad-tree partitioning. The regions / partitions of the RSM shaded with horizontal stripes at each of the intermediate times hold the corresponding reconstructed reference samples of the left-neighboring CTU, and the regions / partitions shaded with vertical stripes gray hold the corresponding reconstructed reference samples of the current CTU. The coded block of the RSM shaded with diagonal lines represents the current coded block in the current region being coded / decoded / reconstructed.
[0185] At the first intermediate time, which represents the start of the current CTU reconstruction, the RSM may contain reconstructed reference samples of the left neighboring CTU only for each of the four exemplary regions, as shown by 2102. At the remaining three intermediate times, the reconstruction process progressively replaces the reconstructed reference samples of the left neighboring CTU with the reconstructed samples of the current CTU. The reset of a 64×64 region / partition in the RSM occurs when the encoder processes the first coding block of that region / partition. Upon resetting of a region of the RSM, the region is considered blank and does not hold any reconstructed reference samples for the IBC (in other words, the region of the RSM is not ready to be used as an IBC reference sample). As the corresponding current coding block in the region is processed, the corresponding block in the RSM is filled with the reconstructed samples of the corresponding block of the current CTU to be used as reference samples for the IBC for the next current blocks, as shown in FIG. 21 for intermediate times 2104, 2106, and 2108. Once all the coding blocks corresponding to a region / partition of the RSM have been processed, the entire region is filled with the reconstructed samples of these current coding blocks as IBC reference samples. This is indicated by the fully shaded regions with vertical stripes in FIG. 21 at various intermediate times. Thus, at intermediate times 2104 and 2106, some regions / partitions in the RSM hold IBC reference samples from neighboring CTUs, some other regions / partitions hold reference samples from the current CTU entirely, while some regions / partitions hold reference samples from the current CTU partially and are partially blank (not used for IBC reference as a result of the reset process described above). While the last region (e.g. the bottom right region) is being processed, the other three regions all hold the reconstructed samples of the current CTU as reference samples for IBC, while the last region / partition holds the reconstructed samples of the corresponding coding blocks in the current CTU partially and is partially blank until the last coding block of the CTU is reconstructed.Once the last coded block of the CTU has been reconstructed, the entire RSM holds the reconstructed samples of the current CTU and the RSM is ready to be used for the next CTU (if the next CTU is also coded in IBC mode).
[0186] FIG. 22 spatially illustrates the above continuous update implementation of the RSM, especially at an intermediate time instant. That is, both the left neighbor CTU and the current CTU with the current coding block (diagonally shaded block) are shown. The corresponding reconstructed samples for these two CTUs that are in the RSM and are valid as IBC reference samples for the current coding block are shown by horizontal and vertical stripe shading. At a particular reconstruction time instant in this example, the process replaces samples in the RSM that are covered by the non-shaded area in the left neighbor CTU with the area of the current CTU shaded by vertical stripes. The remaining effect samples from the neighbor CTU are shown as horizontal stripe shading.
[0187] In the above example implementation, if the fixed RSM size is the same as the CTU size, the RSM is implemented to contain one CTU. In some other implementations, if the CTU size is smaller, the RSM may contain more than a single CTU. For example, the size of the CTU may be 32×32 and the fixed RSM size may be 128×128. Thus, the RSM may hold samples of 16 CTUs. Following the same underlying RSM update principle described above, the RSM may hold 16 neighboring CTUs of the current 128×128 patch before being reconstructed. As soon as processing of the first coding block of the current 128×128 patch begins, the first 32×32 region of the RSM, initially filled with reconstructed samples of one neighboring CTU, may be updated as described above for the RSM holding a single CTU. The remaining 15 32×32 regions contain the 15 neighboring CTUs as reference samples for IBC. Once the CTU corresponding to the first 32x32 region of the current 128x128 patch being decoded is reconstructed, the first 32x32 region of the RSM is updated with the reconstructed samples of this CTU. The CTU corresponding to the second 32x32 region of the current 128x128 patch may then be processed and finally updated with the reconstructed samples. This process continues until 16 32x32 regions of the RSM contain reconstructed samples of the current 128x128 patch (all 15 CTUs). The decoding process then moves to the next 128x128 patch.
[0188] In some other implementations, BV coding may employ the process specified for inter prediction, but use a simpler rule for candidate list construction. Specifically, the candidate list construction for inter prediction may consist of five spatial candidates, one temporal candidate, and six history-based candidates. A comparison of multiple candidates is necessary for the history-based candidates to avoid duplicate entries in the final candidate list. In addition, the list construction may include pairwise averaged candidates. In contrast, the IBC list construction process may only consider two spatially neighboring BVs and five history-based BV predictors (history-based BVs Predictor, HBVP), where only the first HBVP is compared with the spatial candidate when it is added to the candidate list. While normal inter prediction uses two different candidate lists, one for merge mode and the other for normal mode, the candidate list in IBC is for both cases. However, merge mode can use up to six candidates in the list, while normal mode uses only the first two candidates. Block vector difference (BVD) coding employs a motion vector difference (MVD) process, resulting in a final BV of arbitrary size. This also means that the reconstructed BV may point to areas outside the reference sample area and require correction by removing the absolute offset for each direction using modulo arithmetic with the width and height of the RSM.
[0189] In some other implementations, as an extension of Figures 21 and 22, the RSM may hold a collection of neighboring CTUs. One current CTU at a time is processed, and the portion of the RSM holding the furthest neighboring CTU is updated in the manner described above with the reconstructed current CTU. For the next current CTU, the furthest neighboring CTU in the RSM is also updated and replaced. In this way, the multiple CTUs held in the fixed-size RSM are updated as a moving window of neighboring CTUs for IBS.
[0190] A further specific exemplary implementation of local IBC using on-chip RSM is shown in FIG. 23. In this example, the maximum block size for IBC mode may be limited. For example, the maximum IBC block may be 64×64. The on-chip RSM may be configured with a fixed size, for example, 128×128, corresponding to a superblock (SB). The RSM implementation in FIG. 23 uses similar underlying principles to the implementations in FIG. 21 and FIG. 22. In FIG. 23, the RSM may hold multiple neighboring and / or current CTUs as IBC reference samples. In the example of FIG. 23, the SB may be a quadtree partition. Correspondingly, the RSM may be a quadtree partition into four regions or units, each of which is 64×64. Each of these regions may hold one or more coding blocks. Alternatively, each of these regions may hold one or more CTUs, and each CTU may hold one or more code blocks. The coding order of the quadtree regions may be defined charitably. For example, the coding order may be top left, top right, bottom left, bottom right. The quadtree partitioning of the SB in Figure 23 is just one example. In some other alternative implementations, the SB may be partitioned according to other schemes. The RSM update implementation for the local IBC described herein applies to those alternative partitioning schemes.
[0191] In such a local IBC implementation, the local reference blocks that can be used for IBC prediction may be restricted. For example, it may be required that the reference block and the current block are in the same SB row. Specifically, the local reference block may only be located in the current SB or one SB to the left of the current SB. An exemplary current block as predicted in IBC by another allowed coding block is shown by a dashed arrow in FIG. 23. When the current SB or the left SB is used for IBC reference, the reference sample update procedure in the RSM may follow the reset procedure described above. For example, when any of the 64×64 unit reference sample memories starts updating with reconstructed samples from the current SB, the previous stored reference samples (from the left SB) in the entire 64×64 unit are marked as unavailable for generating IBC prediction samples, which are gradually updated with the reconstructed samples of the current blocks.
[0192] FIG. 23 illustrates, in panel 2302, five exemplary states of the RSM during local IBC decoding of the current SB. Again, the horizontally shaded areas of the RSM in each of the exemplary states hold the corresponding reference samples of the corresponding quadtree region of the left neighboring SB, and the vertically shaded areas / sections hold the corresponding reference samples of the current SB. The diagonally shaded coding blocks of the RSM represent the current coding blocks in the current quadtree region being coded / decoded. At the start of coding of each current SB, the RSM stores samples of the previous coded SB (RSM state (0) in FIG. 23). If the current block is located in one of the four 64×64 quadtree regions in the current SB, the corresponding region in the RSM is reset and used to store samples of the current 64×64 coding region. In this way, the samples in each 64×64 quadtree region of the RSM are gradually updated by the samples of the current SB (states (1) to (3)). Once the current SB is completely encoded, the entire RSM is filled with all samples of the current SB (state (4)).
[0193] Each of the 64x64 regions in panel 2302 of Fig. 23 is labeled with a spatial coding sequence number. Sequences 0-3 represent the four 64x64 quadtree regions of the left neighbor SB, and sequences 4-7 represent the four 64x64 quadtree regions of the current SB panel. In Fig. 23, panel 2304 further illustrates the corresponding spatial distributions in the left neighbor and current SB of reference samples in the 128x28 RSM for RSM state (1), state (2), and state (3) of panel 2302 of Fig. 23. Shaded regions without crosses represent regions with reconstructed samples in the RSM. Shaded regions with crosses indicate regions where the reconstructed samples of the left SB in the RSM are reset (and therefore not available as reference samples for the local IBC).
[0194] The coding order of the 64x64 regions and the corresponding RSM update order can follow either horizontal scanning (as shown above in Figure 23) or vertical scanning. Horizontal scanning starts from the top left and proceeds to the top right, bottom left, and bottom right. Vertical scanning starts from the top left and proceeds to the bottom left, top right, and bottom left. The reference sample update process of the left neighbor SB and the current SB for horizontal scanning and vertical scanning are shown in panels 2402 and 2404 of Figure 24, respectively, for comparison when each of the four 64x64 regions of the current SB is reconstructed. In Figure 24, the 64x64 regions shaded with horizontal stripes without crosses represent the regions with available samples for IBC. The regions shaded with horizontal stripes with crosses represent the regions of the left neighbor SB that have been updated to the corresponding reconstructed samples of the current SB. The unshaded regions represent the unprocessed regions of the current SB. The blocks shaded with diagonal lines represent the current coding blocks being processed.
[0195] As shown in FIG. 24, depending on the position of the current coding block relative to the current SB, the following constraints may be applied regarding the reference blocks for the IBC:
[0196] If the current block falls in the top-left 64x64 area of the current SB, in addition to the already reconstructed samples in the current SB, it can also refer to reference samples in the bottom-right, bottom-left and top-right 64x64 blocks of the left SB, as shown at 2412 (for horizontal scanning) and 2422 (for vertical scanning) in Figure 24.
[0197] If the current block falls on the top right 64x64 block of the current SB, in addition to the already reconstructed samples in the current SB, if the luma sample located at (0,64) relative to the current SB has not yet been reconstructed, the current block can also refer to reference samples in the bottom left 64x64 block and bottom right 64x64 block of the left SB (2414 in Figure 24). Otherwise, the current block can also refer to reference samples in the bottom right 64x64 block of the left SB for IBC (2426 in Figure 24).
[0198] If the current block falls on the bottom-left 64x64 block of the current SB, in addition to the already reconstructed samples in the current SB, if the luma position (64,0) relative to the current SB has not yet been reconstructed, the current block can also refer to reference samples in the top-right 64x64 block and bottom-right 64x64 block of the left SB (2424 in FIG. 24). Otherwise, the current block can also refer to reference samples in the bottom-right 64x64 block of the left SB for IBC (2416 in FIG. 24).
[0199] If the current block falls on the bottom right 64x64 block of the current SB, only already reconstructed samples in the current SB can be referenced for IBC (2418 and 2428 in FIG. 24).
[0200] As mentioned above, in some example implementations, either or both of the local and non-local based CTU / SB may be used for IBC reference block search and selection. Furthermore, when an on-chip RSM is used for local reference, some of the constraints on the availability of already constructed CTU / SB as IBC reference in terms of write-back latency may be relaxed or removed. Such implementations may be applied regardless of whether parallel decoding is employed.
[0201] In some implementations using traditional IntraBC prediction, one of the problems / issues may be: the current coding block needs to find a reference block with the same size in the current picture. If some of the reference blocks do not match the textual pattern of the current block, the encoder may have to split the current block into smaller blocks so that each smaller block can find a good reference block. Or, the encoder may continue to use the existing reference blocks, which may cause the prediction efficiency to be lost.
[0202] The various embodiments and / or implementations described in this disclosure may be performed separately or in any order in combination. Furthermore, each of the method (or embodiment), the encoder, and the decoder may be implemented by a processing circuit (e.g., one or more processors, or one or more integrated circuits). The one or more processors execute a program stored in a non-transitory computer-readable medium. In this disclosure, the term block may be interpreted as a prediction block, a coding block, or a coding unit (CU).
[0203] Various embodiments of the present disclosure include partitioning an IntraBC coded block into two or more subpartitions, some of which are predicted using conventional reference blocks indicated by associated block vectors; and at least one subpartition of the block is predicted using a padding method, where padding sample values may be derived based on a context or signaled in a predefined manner. Such a subpartition of an IntraBC coded block that is predicted using a padding method may be referred to as a padding region (or padding subpartition).
[0204] In various embodiments of the present disclosure, two subpartitions in an IntraBC coding block are used merely as a non-limiting example, and the scope of various embodiments of the present disclosure is not limited to two subpartitions, and an IntraBC coding block may be divided into / include more than two subpartitions.
[0205] FIG. 25 shows a flowchart 2500 of an example method according to the principles underlying the above implementation for IBC prediction with sample padding. The flow of the example decoding method starts at 2501 and may include some or all of the following steps: S2510: Receive a current video block in a coded video bitstream, where a respective reference block partially matches the current video block; S2520: Extract a first syntax element from the coded video bitstream, where the first syntax element indicates that IBC padding is available for the current video block; S2530: Extract a second syntax element from the coded video bitstream, where the second syntax element indicates that the current video block is predicted with IBC padding; S2540: Extract at least one syntax element from the coded video bitstream; S2550: Divide the current video block into at least two sub-partitions based on the at least one syntax element. The at least two sub-partitions include a padding sub-partition and an IBC sub-partition; S2560: predicting the padding sub-partition based on a predefined padding rule; and / or S2570: predicting an IBC sub-partition based on a predefined IBC rule. The exemplary method stops at S2599.
[0206] In various implementations in this disclosure, syntax elements may be referred to as flags.
[0207] In some implementations, the at least one syntax element includes a first syntax element and a second syntax element; and / or S2550 may include partitioning the current video block into the at least two sub-partitions using a horizontal partition or a vertical partition based on a first syntax element, and / or determining whether the padding sub-partition is a first sub-partition or a second sub-partition of the current video block based on a second syntax element.
[0208] In some implementations, the at least one syntax element includes a third syntax element; and / or the third syntax element indicates a ratio of a size of the padding sub-partition relative to the current video block.
[0209] In some implementations, the ratio includes at least one of 1 / 4, 1 / 2, or 3 / 4.
[0210] In some implementations, S2550 may include partitioning the current video block into the at least two sub-partitions along another horizontal or vertical defined direction based on the at least one syntax element.
[0211] In some implementations, S2560 may include predicting the padding subpartition based on neighboring subpartitions that have already been reconstructed.
[0212] As one non-limiting example, predicting the padding subpartition based on already reconstructed neighboring subpartitions includes horizontally extending the rightmost column samples in a neighboring subpartition to the left of the padding subpartition; or vertically extending the bottommost row samples in a neighboring subpartition above the padding subpartition.
[0213] As another non-limiting example, predicting the padding subpartition based on the already reconstructed neighboring subpartitions includes padding the padding subpartition with the topmost sample of the rightmost column in the neighboring subpartition to the left of the padding subpartition; or padding the padding subpartition with the leftmost sample of the bottommost row in the neighboring subpartition above the padding subpartition.
[0214] In some implementations, S2560 may include predicting the padding sub-partition based on neighboring video blocks that have already been reconstructed.
[0215] As one non-limiting example, predicting a padding subpartition based on an already reconstructed neighboring video block includes vertically extending the bottom-most row samples in a corresponding subpartition in a neighboring video block above the padding subpartition; or horizontally extending the right-most column samples in a corresponding subpartition in a neighboring video block to the left of the padding subpartition.
[0216] As another non-limiting example, predicting the padding subpartition based on an already reconstructed neighboring video block includes padding the padding subpartition with the left-most sample of the bottom-most row in a corresponding subpartition in an upper neighboring video block; or padding the padding subpartition with the top-most sample of the right-most column in a corresponding subpartition in a left neighboring video block.
[0217] In some implementations, method 2500 may further include extracting an index from the encoded video bitstream, the index indicating a sample value in the sample buffer, and / or S2560 may include padding the padding subpartition with the sample value indicated by the index.
[0218] In some implementations, the sample buffer includes at least one of a history-based buffer or a spatial-based buffer.
[0219] In some implementations, method 2500 may further include determining an intra-prediction mode for the predefined padding rule; and / or S2560 may include padding the padding sub-partition based on the at least one already-reconstructed neighboring sample according to the intra-prediction mode.
[0220] In some implementations, the intra-prediction mode is determined based on at least one of: being signaled by the coded video bitstream, being derived from neighboring coded information, and / or being selected from at least one pre-defined intra-prediction mode.
[0221] In some implementations, S2560 may further include: vertically extending a bottom row of samples in a corresponding sub-partition in the top neighboring video block of the padding sub-partition in response to the already reconstructed top neighboring video block; horizontally extending a rightmost column of samples in a corresponding sub-partition in the left neighboring video block of the padding sub-partition in response to the already reconstructed left neighboring video block; and / or extracting a third syntax element from the coded video bitstream in response to the already reconstructed top neighboring video block and the left neighboring video block, the third syntax element being for predicting the padding sub-partition. In response to the third syntax element indicating that an above neighboring video block is used to predict the padding sub-partition, performing a step of vertically extending a bottom row of samples in a corresponding sub-partition in an above neighboring video block of the padding sub-partition; and / or performing a step of horizontally extending a rightmost column of samples in a corresponding sub-partition in a left neighboring video block of the padding sub-partition in response to the third syntax element indicating that a left neighboring video block is used to predict the padding sub-partition.
[0222] In various embodiments, an IntraBC coding block may be partitioned into two or more sub-partitions.
[0223] For some implementations, the division of the coding block is done horizontally. At least one of these subpartitions is predicted by padding sample values. The division can be symmetric or asymmetric.
[0224] In some implementations, the division of the coding block is performed vertically. At least one of these subpartitions is predicted by padding sample values. The division can be symmetric or asymmetric.
[0225] For some implementations, the division of the coding block is along a defined direction other than horizontal or vertical. For example, the defined direction may be diagonal (45 degrees diagonal or 135 degrees diagonal). At least one of these subpartitions is predicted by padding sample values. The division may be symmetric or asymmetric.
[0226] In various embodiments, at least one sub-partition of an IntraBC coded block may be padded by at least one of the following padding methods:
[0227] In one method, the padding region is predicted using neighboring subpartitions that have already been reconstructed. For example, referring to FIG. 26A, the second partition (or right subpartition) (2616) of the current block (2610) is padded by extending it horizontally using samples in the rightmost column (2613) in the first partition (or left subpartition) (2612) of the current block (2610). Each row of the second partition (2616) may be predicted by the same value as the corresponding sample in the rightmost column (2613). The first partition (2612) may be predicted in IBC according to the reference block (2670).
[0228] In various embodiments / implementations of the present disclosure, a first (or second) partition / subpartition may not simply refer to "a" partition / subpartition; the first (or second) partition / subpartition may specifically refer to a left (or right) partition / subpartition if the two partitions / subpartitions are in a left-right arrangement, or may refer to an upper (or lower) partition / subpartition if the two partitions / subpartitions are in a top-bottom arrangement.
[0229] In another method, the padding region is predicted using already reconstructed neighboring samples outside the current coding block. For example, referring to FIG. 26B, the second partition (or right subpartition) (2616) of the current block (2610) is padded by vertically extending it using samples of the bottom row (2620) in the reconstructed region of the upper neighborhood. The bottom row (2620) may correspond to the second partition (2616) and may have the same number of sample values as the width (or along the horizontal direction) of the second partition (2616). Each column of the second partition (2616) may be predicted by the same value as the corresponding sample of the bottom row (2620). The first partition (2612) may be predicted with IBC according to the reference block (2670).
[0230] In the third method, the padding area is predicted using already reconstructed samples of neighboring subpartitions. The selection of sample values from the possible candidate set is signaled or derived by both the encoder and the decoder using the same rules. For example, referring to FIG. 26A, the second partition (or right subpartition) (2616) of the current block (2610) is padded by using the top sample value (2614) of the rightmost column (2613) in the first partition (or left subpartition) (2612) of the current block (2610). The second partition (2616) may be predicted by the same value as the sample (2614). The first partition (2612) may be predicted with IBC according to the reference block (2670).
[0231] In the fourth method, the padding region is predicted using already reconstructed neighboring sample values outside the current coding block. The selection of sample values from the possible candidate set is signaled or derived by both the encoder and the decoder using the same rules. For example, referring to FIG. 26B, the second partition (or right subpartition) (2616) of the current block (2610) is padded by using the leftmost sample (2621) of the bottommost row (2620) in the reconstructed region of the upper neighborhood. The bottommost row (2620) may correspond to the second partition (2616) and may have the same number of sample values as the width (or along the horizontal direction) of the second partition (2616). The second partition (2616) may be predicted by the same value as the sample (2621). The first partition (2612) may be predicted with IBC according to the reference block (2670).
[0232] In some implementations, the first partition of the current block may be padded and the second partition may be predicted with IBC according to the reference block, and similarly, as in various implementations / embodiments described in this disclosure, for example, in a vertical block partition, vertical padding may be used for the first partition.
[0233] In some implementations, the current block may be partitioned with a horizontal block partition, where the first partition may point to the upper partition and the second partition may point to the lower partition. With the horizontal block partition, the second partition of the current block may be padded and the first partition may be predicted with IBC according to the reference block. This is similar to various implementations / embodiments described in this disclosure. Alternatively, the first partition of the current block may be padded and the second partition may be predicted with IBC according to the reference block, similar to various implementations / embodiments described in this disclosure. For example, with the horizontal block partition, the first partition may be used for horizontal padding.
[0234] In a fifth method, the padding region is predicted using existing sample values stored in a history-based buffer. An index pointing to an entry in the buffer may be used to indicate which sample in the buffer is used to predict the current padding region. The history-based buffer may be of a fixed size and maintained using a first-in-first-out method. The rules for putting samples into the history buffer may vary. For example, sample values that occur frequently in the current CTU or other window size of recently coded samples may be eligible to be put into the history buffer. In another example, only sample values originating from nearby reconstructed regions may be considered. For example, the right-most column of the left neighbor, the bottom-most row of the upper neighbor, etc.
[0235] In the sixth method, the padding region is predicted using already reconstructed neighboring samples. The prediction is performed using an intra prediction process with the neighboring reconstructed samples as input reference samples. The intra prediction mode can be explicitly signaled, implicitly derived using neighboring coded information, or selected from one or more predefined intra prediction modes (e.g., DC, SMOOTH, SMOOTH-H, SMOOTH-V).
[0236] Various embodiments of this disclosure may include signaling of partitions or padding of sample values.
[0237] In one method, a syntax element in a high-level syntax (slice header, picture header, sequence header, VPS, PPS, SPS, etc.) is used to indicate that the proposed method can be used in IntraBC prediction. This syntax element may be called a flag, for example, ibc_padding_enable_flag.
[0238] When ibc_padding_enable_flag is true, another syntax element may be used to indicate, at the block level, whether the current block is predicted using conventional IntraBC prediction (assuming it is IntraBC coded) or is predicted using padded regions. This syntax element may be called another flag, for example ibc_padding_use_flag.
[0239] If ibc_padding_use_flag is true, additional syntax elements may be used to indicate which part of the block is predicted by the padding operation. With reference to Figure 27, four example options are shown, with either a horizontal or vertical partition, where the padded area is equal to 1 / 4 of the entire block size. Other partitions of the padded area inside the coding block are also possible.
[0240] In some implementations, one syntax element is used to indicate whether horizontal or vertical partitioning is used; another syntax element is used to indicate whether the area to be padded is the first or second subpartition of the block (from left to right, top to bottom).
[0241] In some implementations, an index is used to indicate the size of the padding subpartition. In one example, the size can be chosen to be 3 / 4, 1 / 2, 1 / 4, … of the entire block.
[0242] In various embodiments, when the padding area is determined, the value or values used to predict the padding area may be determined in one of the following non-limiting examples.
[0243] As one non-limiting example, to pad from outside the current coding block using an extension of the neighboring samples, if both the upper and left neighboring samples are available, the upper (or left) neighbor may always be selected for use. Alternatively, a syntax element may be used to indicate which side is being used. If only one side is available, this side is always used. If no neighboring samples are available, such as when the current block is the first block in a picture, tile, or slice, padding may not be used at all.
[0244] As another non-limiting example, some samples in a reconstructed column or row of a neighboring block or neighboring subpartition of the current block may be labeled as candidates for predicting the padding region. For example, the topmost sample, the middle sample, and the bottommost sample from the rightmost neighboring column may be a candidate set for selection. For block-level selection, an index pointing to one of them may be signaled.
[0245] In the embodiments and implementations of the present disclosure, any steps and / or operations may be combined or arranged in any quantity or order as desired. Two or more of the steps and / or operations may be performed in parallel. The embodiments and implementations of the present disclosure may be used separately or combined in any order. Furthermore, each of the method (or embodiment), 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. The term block may be interpreted as a prediction block, a coding block, or a coding unit, i.e., a CU. The term block here may also be used to refer to a transform block. In the following items, when referring to a block size, it may refer to either the width or height of the block, or the maximum value of the width and height, or the minimum value of the width and height, or the area size (width*height), or the aspect ratio (width:height or height:width).
[0246] 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 28 illustrates a computer system (2800) suitable for implementing certain embodiments of the disclosed subject matter.
[0247] Computer software may be coded using any suitable machine code or computer language and may be subject to assembly, compilation, linking, or similar mechanisms to produce code containing instructions that are executable by one or more computer central processing units (CPUs), graphics processing units (GPUs), etc., either directly, or through interpretation, microcode execution, etc.
[0248] The instructions may be executed on various types of computers or components thereof including, for example, personal computers, tablet computers, servers, smart phones, gaming devices, Internet of Things devices, and the like.
[0249] The components illustrated in Figure 28 for the computer system (2800) 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 the computer system (2800).
[0250] The computer system (2800) 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).
[0251] The input human interface devices may include one or more (only one of each is shown) of a keyboard (2801), a mouse (2802), a trackpad (2803), a touch screen (2810), a data glove (not shown), a joystick (2805), a microphone (2806), a scanner (2807), and a camera (2808).
[0252] The computer system (2800) may also include some type of human interface output device. Such human interface output devices may stimulate one or more of the human user's senses, for example, through tactile output, sound, light, and smell / taste. Such human interface output devices may include haptic output devices (e.g., haptic feedback via a touch screen (2810), data gloves (not shown), or joystick (2805); although some haptic feedback devices may not act as input devices), audio output devices (e.g., speakers (2809), headphones (not shown)), visual output devices (e.g., screens (2810) 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).
[0253] The computer system (2800) may also include human accessible storage and associated media, such as optical media including CD / DVD ROM / RW (2820) along with CD / DVD or similar media (2821), thumb drives (2822), removable hard drives or solid state drives (2823), legacy magnetic media such as tapes and floppy disks (not shown), specialized ROM / ASIC / PLD based devices (not shown) such as security dongles, etc.
[0254] 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.
[0255] The computer system (2800) may also include an interface (2854) to one or more communication networks (2855). 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, WLAN, 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 CANBus, etc. Some networks typically require an external network interface adapter that is attached to some kind of general-purpose data port or peripheral bus (2849) (e.g., a USB port of the computer system (2800)). Others are typically integrated into the core of the computer system (2800) 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 (2800) can communicate with other entities. Such communications may be unidirectional, receive only (e.g., broadcast television), unidirectional transmit only (e.g., CANbus to certain CANbus devices), or bidirectional, for example, to other computer systems using local or wide area digital networks. With each of these networks and network interfaces as described above, certain protocols and protocol stacks may be used.
[0256] The aforementioned human interface devices, human accessible storage devices, and network interfaces may be attached to a core (2840) of the computer system (2800).
[0257] The core (2840) may include one or more central processing units (CPUs) (2841), graphics processing units (GPUs) (2842), specialized programmable processing units in the form of field programmable gate arrays (FPGAs) (2843), hardware accelerators for certain tasks (2844), graphics adapters (2850), and the like. These devices may be connected through a system bus (2848), along with read only memory (ROM) (2845), random access memory (2846), and internal mass storage devices (2847), such as internal non-user accessible hard drives, solid state drives (SSDs), and the like. In some computer systems, the system bus (2848) may be accessible in the form of one or more physical plugs to allow expansion with additional CPUs, GPUs, and the like. Peripheral devices may be attached directly to the core's system bus (2848) or through a peripheral bus (2849). In one example, a screen 2810 may be connected to a graphics adapter 2850. Architectures for peripheral buses include PCI, USB, and the like.
[0258] The CPU (2841), GPU (2842), FPGA (2843), and accelerator (2844) can execute certain instructions that may combine to constitute the above-mentioned computer code. The computer code may be stored in ROM (2845) or RAM (2846). Temporary data may also be stored in RAM (2846), while persistent data may be stored, for example, in internal mass storage device (2847). Rapid storage and retrieval in any of the memory devices may be enabled through the use of cache memory, which may be closely associated with one or more of the CPU (2841), GPU (2842), mass storage device (2847), ROM (2845), RAM (2846), etc.
[0259] 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.
[0260] As a non-limiting example, a computer system having the architecture (2800), and specifically the core (2840), can provide functionality as a result of the processor (including 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 some type of storage of the core (2840) of a non-transitory nature such as mass storage (2847) or ROM (2845) internal to the core. Software implementing various embodiments of the present disclosure can be stored in such devices and executed by the core (2840). The computer readable media can include one or more memory devices or chips depending on the particular needs. The software can cause the core (2840) and specifically the processor therein (including CPU, GPU, FPGA, etc.) to perform certain processes or certain specific portions thereof described herein, including defining data structures stored in RAM (2846) and modifying such data structures according to the processes defined by the software. Additionally or alternatively, the computer system may provide functionality as a result of logic hardwired or otherwise embodied in circuitry (e.g., accelerator (2844)), which may operate in place of or together with software to perform particular processes or portions of particular processes described herein. Reference to software includes logic, and vice versa, as appropriate. Reference to a computer-readable medium may include circuitry (e.g., an integrated circuit (IC)) that stores software for execution, circuitry that embodies logic for execution, or both, as appropriate. The present disclosure encompasses any suitable combination of hardware and software.
[0261] While this disclosure has described several exemplary embodiments, there are alterations, substitutions, and various substitute equivalents, which fall within the scope of this disclosure. Thus, it will be appreciated that those skilled in the art will be able to devise many systems and methods that, although not explicitly shown or described herein, embody the principles of the present disclosure and are thus within the spirit and scope of the present disclosure.
[0262] Appendix A: Acronyms IBC: Intra-Block Copy IntraBC: Intra-Block Copy 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 Areas 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-Partition 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 RPS: Reference Picture Set DPB: Decoded Picture Buffer MMVD: Merge Mode with Motion Vector Difference IntraBC or IBC: Intra Block Copy BV: Block Vector BVD: Block Vector Difference RSM: Reference Sample Memory
Claims
1. 1. A method for performing intra block copy (IBC) padding in a current video block of a video bitstream, the method comprising: An apparatus including a memory storing instructions and a processor in communication with the memory, receiving a current video block in a coded video bitstream, each reference block partially matching the current video block; extracting, by the apparatus, a first syntax element from the coded video bitstream, the first syntax element indicating that IBC padding is available for a current video block; extracting, by the apparatus, a second syntax element from the coded video bitstream, the second syntax element indicating that a current video block is predicted using IBC padding; extracting, by the apparatus, at least one syntax element from the encoded video bitstream; partitioning, by the apparatus, a current video block into at least two sub-partitions based on the at least one syntax element, the at least two sub-partitions including a padding sub-partition and an IBC sub-partition; predicting, by the device, the padding sub-partitions based on a predefined padding rule; and predicting, by the apparatus, the IBC sub-partition based on predefined IBC rules. method.
2. the at least one syntax element includes a first syntax element and a second syntax element; Partitioning the current video block into the at least two sub-partitions based on the at least one syntax element includes: partitioning the current video block into the at least two sub-partitions using a horizontal partition or a vertical partition based on the first syntax element; determining whether the padding subpartition is a first subpartition or a second subpartition of a current video block based on the second syntax element. The method of claim 1.
3. the at least one syntax element includes a third syntax element; the third syntax element indicates a ratio of a size of the padding sub-partition to a current video block. The method of claim 2.
4. The ratio includes at least one of 1 / 4, 1 / 2, or 3 / 4; The method according to claim 3.
5. Partitioning the current video block into the at least two sub-partitions based on the at least one syntax element includes: partitioning the current video block into the at least two sub-partitions along a defined direction other than a horizontal or vertical direction based on the at least one syntax element. The method of claim 1.
6. Predicting the padding sub-partitions based on the predefined padding rule includes: predicting the padding sub-partition based on previously reconstructed neighboring sub-partitions; 6. The method according to any one of claims 1 to 5.
7. Predicting the padding sub-partition based on the already reconstructed neighboring sub-partitions: horizontally extending the rightmost column of samples in a neighboring subpartition to the left of the padding subpartition; or vertically extending a bottom row of samples in a neighboring subpartition above the padding subpartition. The method according to claim 6.
8. Predicting the padding sub-partition based on the already reconstructed neighboring sub-partitions: padding the padding subpartition with the topmost sample of the rightmost column in a neighboring subpartition to the left of the padding subpartition; or padding the padding subpartition with the leftmost sample of the bottommost row in a neighboring subpartition above the padding subpartition. The method according to claim 6.
9. Predicting the padding sub-partitions based on the predefined padding rule includes: predicting the padding sub-partition based on previously reconstructed neighboring video blocks.
6. The method according to any one of claims 1 to 5.
10. Predicting the padding sub-partition based on the already reconstructed neighboring video blocks includes: vertically extending a bottom row of samples in a corresponding subpartition in a neighboring video block above the padding subpartition; or horizontally extending a rightmost column of samples in a corresponding subpartition in a left neighboring video block of the padding subpartition.
10. The method of claim 9.
11. Predicting the padding sub-partition based on the already reconstructed neighboring video blocks includes: padding the padding subpartition with the left-most sample of the bottom-most row in a corresponding subpartition in a neighboring video block above; or padding the padding subpartition with a topmost sample of a rightmost column in a corresponding subpartition in a left neighboring video block.
10. The method of claim 9.
12. extracting an index from the encoded video bitstream, the index indicating a sample value in a sample buffer; Predicting the padding sub-partitions based on the predefined padding rule includes: padding the padding subpartition with the sample values indicated by the index.
6. The method according to any one of claims 1 to 5.
13. the sample buffer comprises at least one of a history-based buffer or a spatial-based buffer; The method of claim 12.
14. determining an intra prediction mode for the predefined padding rule; Predicting the padding sub-partitions based on the predefined padding rule includes: padding the padding sub-partition based on at least one already reconstructed neighboring sample according to the intra prediction mode.
6. The method according to any one of claims 1 to 5.
15. The intra prediction modes are: being signaled by said encoded video bitstream; derived from nearby coded information, or Selecting from at least one predefined intra-prediction mode. The method of claim 14 , wherein the determination is based on at least one of:
16. Predicting the padding sub-partitions based on the predefined padding rule includes: vertically extending a bottom row of samples in a corresponding subpartition in an upper neighboring video block of the padding subpartition in response to the upper neighboring video block having already been reconstructed; horizontally extending a rightmost column of samples in a corresponding sub-partition of a left neighboring video block of the padding sub-partition in response to the left neighboring video block having already been reconstructed; or In response to the above neighboring video block and the left neighboring video block already being reconstructed: extracting from the coded video bitstream a third syntax element, the third syntax element indicating whether an above neighboring video block or a left neighboring video block is used to predict the padding sub-partition; in response to the third syntax element indicating that an upper neighboring video block is used to predict the padding sub-partition, vertically extending a bottom row of samples in a corresponding sub-partition in an upper neighboring video block of the padding sub-partition; and performing, in response to the third syntax element indicating that a left neighboring video block is to be used to predict the padding sub-partition, horizontally extending a rightmost column of samples in a corresponding sub-partition in a left neighboring video block of the padding sub-partition.
6. The method according to any one of claims 1 to 5.
17. 1. An apparatus for decoding a current video block of a video bitstream, the apparatus comprising: A memory storing instructions; and a processor in communication with the memory, the processor being configured, when the processor executes the instructions, to cause the apparatus to perform the method of any one of claims 1 to 16. Device.
18. A non-transitory computer readable storage medium storing instructions, the instructions being configured, when executed by the processor, to cause the processor to perform the method of any one of claims 1 to 16. storage medium.
Citation Information
Patent Citations
Method and apparatus for video coding
US20200221109A1
