Methods, apparatuses and computer programs for multiple reference line intra prediction
By partitioning video blocks and using the upper adjacent reference line for intra-prediction, the method addresses memory and signaling challenges in multiple reference line selection, enhancing video encoding and decoding efficiency.
Patent Information
- Application Number
- JP2024103568
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-01-06
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-01-18
AI Technical Summary
Existing video coding techniques face challenges in efficiently reducing memory requirements and signaling complexity for multiple reference line selection schemes in intra-prediction, particularly in high-resolution and high-frame rate video streams, which can lead to increased bandwidth and storage needs.
The method involves partitioning video blocks into sub-blocks and using the upper adjacent reference line as the value for all non-adjacent reference lines in intra-prediction, reducing memory requirements by sharing reference line samples across block boundaries.
This approach significantly reduces memory usage and improves encoding efficiency by minimizing the need to store multiple reference lines, thereby optimizing video compression and decoding processes.
Smart Images

Figure 2024123248000001
Abstract
Description
[Technical field]
[0001]
[0001] Related Applications This case is based on and claims priority to U.S. Provisional Application No. 63 / 175,929, filed April 16, 2021, and U.S. Nonprovisional Application No. 17 / 569,681, filed January 6, 2022, both of which are incorporated by reference in their entireties.
[0002]
[0002] TECHNICAL FIELD The present invention relates to video coding and / or decoding techniques, and in particular to an improved low memory design and signaling multiple reference line selection scheme. [Background technology]
[0003] Background of the Disclosure The background discussion provided herein is intended to generally present the context of the present disclosure. Work under the names of the current inventors is not admitted, expressly or impliedly, as prior art to the present disclosure to the extent that such work is described in this background section or in a descriptive manner that may not otherwise qualify as prior art at the time of filing of this case.
[0004]
[0004] Video coding 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 (informally known as frame rate) of, for example, 60 pictures / s, i.e., 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 / s, 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]
[0005] One of the goals of video coding and decoding can be said to be to reduce redundancy in the uncompressed input video signal through compression. Compression can help reduce the aforementioned bandwidth or storage space requirements, in some cases by more than two orders of magnitude. Both lossless and non-lossless compression, as well as combinations thereof, can 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. Non-lossless compression refers to coding / decoding processes where the original video information is not fully preserved during coding and cannot be fully restored during decoding. When using non-lossless compression, the reconstructed signal may not be identical to the original signal, but the distortion between the original and reconstructed signals is made small enough that the reconstructed signal is useful for the intended application, albeit with some information loss. For video, non-lossless compression is widely used in many applications. The amount of distortion that is tolerated depends on the application. For example, a user of a particular consumer streaming application may be able to tolerate higher distortion than a user of a movie or television broadcast application. The compression ratio achievable by a particular coding algorithm can be selected or adjusted to reflect different distortion tolerances; generally, higher distortion tolerances allow coding algorithms that result in higher losses and higher compression ratios.
[0006]
[0006] Video encoders and decoders may utilize techniques from several broad categories and steps, including, for example, motion compensation, Fourier transform, quantization, and entropy coding.
[0007]
[0007] Video codec techniques may include a technique known as intra-coding. In intra-coding, sample values are represented without reference to samples or other data from previously reconstructed reference pictures. In some video codecs, a picture is spatially divided into blocks of samples. If all blocks of samples are coded in intra mode, the picture may be referred to as an intra-picture. Intra-pictures and their derivatives, such as independent decoder refresh pictures, may be used to reset the decoder state and thus may be used as the first picture in a coded video bitstream and video session or as a still image. The samples of the block after intra prediction are then transformed into the frequency domain, and the transform coefficients so produced may 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 transformation, the fewer bits are needed for a given quantization step size to represent the block for entropy coding.
[0008]
[0008] Traditional intra-coding, for example 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 based on surrounding sample data and / or metadata obtained during encoding and / or decoding of its spatial neighbors, which precede the block of data being intra-coded or decoded in decoding order. Such techniques are hereafter referred to as "intra-prediction" techniques. Note that in at least some cases, intra-prediction uses reference data only from the current picture being reconstructed, and not from other reference pictures.
[0009]
[0009] There may be many different forms of intra prediction. In a given video coding technique, if more than one such technique is available, the technique used may be referred to as an intra prediction mode. One or more 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 individually or collectively included in a mode codeword. The codeword used 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]
[0010] Certain intra prediction modes were introduced in H.264, improved in H.265, and further improved in newer coding techniques such as Joint Exploration Model (JEM), Generic Video Coding (VVC), and Benchmark Set (BMS). In general, for intra prediction, a predictor block can be formed using available neighboring sample values. For example, available values of a particular set of neighboring samples along a given direction and / or line can be copied to the predictor block. A reference to the direction in use can be coded in the bitstream or can be predicted itself.
[0011]
[0011] Referring to FIG. 1A, shown at the bottom right is a subset of the 9 prediction directions specified in the 33 possible intra prediction directions of H.265 (corresponding to the 33 angle modes out of the 35 intra modes specified in H.265). The points where the arrows meet (101) represent the samples to be predicted. The arrows indicate a direction, from which neighboring samples are used to predict the sample at 101. For example, arrow (102) indicates that sample (101) is predicted from one or more neighboring samples at an angle of 45 degrees from the horizontal direction toward the top right. Similarly, arrow (103) indicates that sample (101) is predicted from one or more neighboring samples at an angle of 22.5 degrees from the horizontal direction toward the bottom left of sample (101).
[0012]
[0012] With continued reference to FIG. 1A, at the top left is shown a square block (104) of 4x4 samples (indicated by a dashed bold line). The square block (104) contains 16 samples, each labeled with "S" and its position in the Y dimension (e.g., row index) and its position in the X dimension (e.g., column index). For example, sample S21 is the second sample in the Y dimension (from the top) and the first sample in the X dimension (from the left). Similarly, sample S44 is the fourth sample of the block (104) in both the Y and X dimensions. Since the size of the block is 4x4 samples, S44 is at the bottom right. Also shown are reference samples that follow a similar numbering scheme. The reference samples are labeled R and their Y position (e.g., row index) and X position (column index) relative to the block (104). In both H.264 and H.265, samples adjacent to the block are used during reconstruction.
[0013]
[0013] Intra-picture prediction of block 104 can start by copying reference sample values from adjacent samples according to the signaled prediction direction. For example, assume that the video bitstream to be coded contains signaling for this block 104 indicating the prediction direction of the arrow (102), i.e., the samples are predicted from one or more prediction samples towards the top right at an angle of 45 degrees from the horizontal. In that case, samples S41, S32, S23, and S14 are predicted from the same reference sample R05. And sample S44 is predicted from reference sample R08.
[0014]
[0014] In some cases, particularly when the orientation is not evenly divisible by 45 degrees, the values of multiple reference samples can be combined, for example by interpolation, to calculate a reference sample.
[0015]
[0015] The number of possible directions is increasing as video coding technology continues to develop. For example, in H.264 (2003), 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 training has been conducted to help identify the most suitable intra prediction direction, and certain techniques may be used in entropy coding to encode the most suitable direction with fewer bits, while accepting some bit penalty for the direction. Furthermore, often the direction itself can be predicted from the neighboring directions used in the intra prediction of the neighboring block being decoded.
[0016] FIG. 1B shows a schematic (180) illustrating the 65 intra prediction directions according to JEM, illustrating the increasing number of prediction directions in various coding techniques that have evolved over time.
[0017]
[0017] The method of mapping the bits representing the intra-prediction directions to prediction directions in the coded video bitstream may vary from one video coding technique to another; for example, it may range from a simple direct mapping of prediction directions to intra-prediction modes to codewords, to complex adaptation schemes involving the most likely modes, and similar techniques. However, in all cases, there may be certain intra-prediction directions that are statistically less likely to occur in the video content than certain other directions. Since the goal of video compression is to reduce redundancy, in a well-designed video coding technique, less likely directions are represented with more bits than more likely directions.
[0018]
[0018] Inter-picture prediction or inter prediction can be based on motion compensation. In motion compensation, blocks of sample data from a previously reconstructed picture or part of it (reference picture), after a spatial shift in the direction indicated by a motion vector (hereafter called MV), can be used to predict a newly reconstructed picture or part of a picture. In some cases, the reference picture can be the same as the picture currently being reconstructed. MV can have two dimensions X and Y, or three dimensions, the third dimension pointing to the reference picture in use (the latter being the temporal dimension).
[0019]
[0019] In some video compression techniques, the current MV applicable to a particular area of sample data can be predicted, for example, from other MVs associated with other areas of sample data that are spatially adjacent to the area being reconstructed and that precede the current MV in decoding order. In this way, the total amount of data required to code the MV can be significantly reduced, thereby increasing compression efficiency. For example, when coding an input video signal derived from a camera (known as natural video), MV prediction can work effectively because there is a statistical likelihood that areas larger than the area to which a single MV is applicable will move in similar directions in the video sequence, and therefore, in some cases, can be predicted using similar motion vectors derived from MVs of neighboring areas. This results in an actual MV for a given area that is similar or identical to the MV predicted from the surrounding MVs. It can be represented with fewer bits than would be used if the MV were coded directly, after entropy coding, rather than predicted from neighboring MVs. In some cases, MV prediction can be an example of lossless compression of a signal (i.e., an MV) derived from the original signal (i.e., a sample stream). In other cases, the MV prediction itself may be non-lossless due to rounding errors, for example when computing a predictor from several surrounding MVs.
[0020]
[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, the one described below in this application is hereafter referred to as "spatial merging".
[0021]
[0021] Referring to Fig. 2, a current block (201) contains samples that have been found by the encoder during the motion search process to be predictable from a previous block of the same size but spatially shifted. Instead of coding the MV directly, the MV can be derived from metadata associated with one or more reference pictures, e.g., from the most recent reference picture (in decoding order), using MVs associated with any of the five surrounding samples denoted A0, A1, B0, B1, B2 (denoted 202 to 206, respectively). In H.265, MV prediction can use predictors from the same reference picture as the neighboring blocks use. Summary of the Invention
[0022] This disclosure describes various embodiments of methods, apparatus, and computer-readable storage media for video encoding and / or decoding.
[0023]
[0023] According to one aspect, an embodiment of the present disclosure provides a method for intra prediction of multiple reference lines in video decoding. The method includes: a device receiving a coded video bitstream of a current block. The device includes a memory storing instructions and a processor in communication with the memory. The method includes: the device extracting a parameter from the coded video bitstream, the parameter indicating one non-adjacent reference line for intra prediction in the current block; the device partitioning the current block to obtain a plurality of sub-blocks; and, in response to a sub-block in the plurality of sub-blocks being located at a boundary of the current block, the device using an upper adjacent reference line as a value for all upper non-adjacent reference lines for the sub-block.
[0024]
[0024] According to another aspect, an embodiment of the present disclosure provides an apparatus for video encoding and / or decoding. The apparatus includes a memory storing instructions; and a processor in communication with the memory. When the processor executes the instructions, the processor is configured to cause the apparatus to perform the above-described method for video decoding and / or encoding.
[0025]
[0025] In another aspect, an embodiment of the present disclosure provides a non-transitory computer-readable storage medium storing instructions that, when executed by a computer for video decoding and / or encoding, cause the computer to perform the above-mentioned method relating to video decoding and / or encoding.
[0026]
[0026] These and other aspects and their implementations are described in detail in the drawings, specification, 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. [Figure 1A]
[0028] FIG. 1A shows a schematic diagram of an example subset of intra-prediction direction modes. [Figure 1B]
[0029] FIG. 1B shows an example of an exemplary intra-prediction direction. [Diagram 2]
[0030] Figure 2 shows a schematic diagram of a current block and its surrounding spatial merge candidates in one example. [Diagram 3]
[0031] FIG. 3 illustrates a simplified block diagram of a communication system (300) in accordance with an example embodiment. [Figure 4]
[0032] FIG. 4 illustrates a simplified block diagram of a communication system (400) in accordance with an example embodiment. [Diagram 5]
[0033] FIG. 5 shows a schematic diagram of a simplified block diagram of a video decoder according to an exemplary embodiment. [Figure 6]
[0034] FIG. 6 shows a schematic diagram of a simplified block diagram of a video encoder according to an exemplary embodiment. [Figure 7]
[0035] FIG. 7 shows a block diagram of a video encoder according to another exemplary embodiment. [Figure 8]
[0036] FIG. 8 shows a block diagram of a video decoder according to another exemplary embodiment. [Figure 9]
[0037] FIG. 9 illustrates a coding block partitioning scheme according to an exemplary embodiment of the present disclosure. [Figure 10]
[0038] FIG. 10 illustrates another scheme of coding block partitioning according to an exemplary embodiment of the present disclosure. [Figure 11]
[0039] FIG. 11 illustrates another scheme of coding block partitioning according to an exemplary embodiment of the present disclosure. [Figure 12]
[0040] FIG. 12 illustrates another scheme of coding block partitioning according to an exemplary embodiment of the present disclosure. [Figure 13]
[0041] FIG. 13 illustrates a partitioning scheme of a coding block into multiple transform blocks and a coding order of the transform blocks according to an example embodiment of the present disclosure. [Figure 14]
[0042] FIG. 14 illustrates a partitioning scheme of a coding block into multiple transform blocks and a coding order of the transform blocks according to an example embodiment of the present disclosure. [Figure 15]
[0043] FIG. 15 illustrates another scheme for partitioning a coding block into multiple transform blocks in accordance with an example embodiment of this disclosure. [Figure 16]
[0044] FIG. 16 illustrates various reference line based intra prediction schemes according to an exemplary embodiment of this disclosure. [Figure 17]
[0045] FIG. 17 illustrates a flow chart of a method according to an exemplary embodiment of the present disclosure. [Figure 18]
[0046] FIG. 18 illustrates an intra prediction scheme based on multiple reference lines according to an exemplary embodiment of the present disclosure. [Figure 19]
[0047] FIG. 19 illustrates an intra prediction scheme based on multiple reference lines according to an exemplary embodiment of the present disclosure. [Figure 20]
[0048] FIG. 20 illustrates a schematic diagram of a computer system according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0028]
[0049] Detailed Description of the Disclosure The present invention will now be described in detail with reference to the accompanying drawings, which form a part hereof and which illustrate certain examples of embodiments. It should be noted, however, that the present invention may be embodied in many different forms, and therefore, the subject matter covered or claimed is not intended to be construed as being limited to any of the embodiments described below. It should also be noted that the present invention may be embodied as a method, device, component, or system. Thus, embodiments of the present invention may take the form of, for example, hardware, software, firmware, or any combination thereof.
[0029]
[0050] Throughout the specification and claims, terms may have meanings with nuances suggested or implied by context beyond those explicitly stated. 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, it is intended that the claimed subject matter includes combinations of example embodiments / implementations in whole or in part.
[0030]
[0051] Generally, terms can be understood, at least in part, from their usage in context. For example, terms such as "and," "or," or "and / or," when used herein, can encompass a variety of meanings that may depend, at least in part, on the context in which such terms are used. Typically, when "or" is used to relate a list such as A, B, or C, it is intended to mean A, B, or C, which are used herein in an exclusive sense, in addition to A, B, and C, which are used herein in an inclusive 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, depending, at least in part, on the context. Similarly, terms such as "a," "an," or "the" can be understood to convey a singular use or to convey a plural use, depending, at least in part, on the context. Moreover, the terms "based on" or "determined by" are not necessarily intended to convey an exclusive set of factors, but rather, again depending at least in part on the context, may allow for the existence of additional factors not necessarily explicitly recited.
[0031]
[0052] 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 capable of communicating 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 code video data (e.g., a stream of video pictures captured by the terminal device (310)) for transmission to the other terminal device (320) via the network (350). The encoded video data may be transmitted in the form of one or more coded video bitstreams. The terminal device (320) can receive the coded video data from the network (250), decode the coded video data to reconstruct the video picture, and display the video picture according to the reconstructed video data. The unidirectional data transmission can be realized in a media serving application, etc.
[0032]
[0053] In another example, the communication system (300) includes a second pair of terminal devices (330) and (340) for bidirectional transmission of coded video data, which may occur, for example, during a video conference application. With respect to the bidirectional transmission of data, for example, each of the terminal devices (330) and (340) may code video data (e.g., a stream of video pictures captured by the terminal device) for transmission to the other of the terminal devices (330) and (340) over the network (350). Each of the terminal devices (330) and (340) may also receive coded video data transmitted by the other of the terminal devices (330) and (340), may decode the coded video data to reconstruct the video pictures, and may display the video pictures on an accessible display device according to the reconstructed video data.
[0033]
[0054] In the example of FIG. 3, terminal devices (310), (320), (330), and (340) may be implemented as servers, personal computers, and smartphones, although applications of the principles of the present disclosure need not be so limited. 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 the like. Network (350) represents any number or type of network that carries the video data to be coded between terminal devices (310), (320), (330), and (340), including, for example, wired (wired) and / or wireless communication networks. Communications network (350) may exchange data over 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 this disclosure, the architecture and topology of network 350 may not be important to the operation of the disclosure unless expressly described herein.
[0034]
[0055] 4 illustrates the arrangement of a video encoder and a video decoder in a streaming environment as an example application of the disclosed subject matter, which is equally applicable to other video applications including, for example, video conferencing, digital TV broadcasting, gaming, virtual reality, storage of compressed video on digital media (including CDs, DVDs, memory sticks, etc.), etc.
[0035]
[0056] A video streaming system may include a video capture subsystem (413) that may include a video source (401), such as a digital camera, that generates a stream of uncompressed video pictures or images. In one example, the stream of video pictures (402) includes samples recorded by the digital camera of the video source (401). The stream of video pictures (402), depicted as a thick line to emphasize the larger amount of data when compared to the encoded video data (404) (or coded video bitstream), may be processed by an electronic device (420) that includes a video encoder (403) coupled to the video source (401). The video encoder (403) may include hardware, software, or a combination thereof to enable or implement aspects of the disclosed subject matter as described in more detail below. The encoded video data (404) (or encoded video bit stream (404)), depicted as thin lines to emphasize the smaller amount of data when compared to the uncompressed video picture stream (402), can be stored in a streaming server (405) for future use or for direct downstreaming to a 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, in an electronic device (430). The video decoder (410) decodes the incoming copy of the encoded video data (407) and produces an output stream of uncompressed video pictures (411) that can be rendered on a display (412) (e.g., a display screen) or other rendering device (not shown).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., a video bitstream) may be encoded according to a particular video coding / compression standard. Examples of these standards include ITU-T Recommendation H.265. In one example, a video coding standard under development is informally known as Versatile Video Coding (VVC). The disclosed subject matter may be used in the context of VVC, as well as other video coding standards.
[0036]
[0057] It should be 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 include a video encoder (not shown).
[0037]
[0058] 5 below illustrates a block diagram of a video decoder (510) according to some embodiments of the present disclosure. The video decoder (510) can be included in an electronic device (530). The electronic device (530) can include a receiver (531) (e.g., receiving circuitry). The video decoder (510) can be used in place of the video decoder (410) in the example of FIG. 4.
[0038]
[0059] The receiver (531) can 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 at a time can be decoded, where the decoding of each coded video sequence is independent of the other coded video sequences. Each video sequence can be associated with multiple video frames or images. The coded video sequences can be received from a channel (501), which can be a storage device that stores the coded video data or a hardware / software link to a streaming source that transmits the coded video data. The receiver (531) can receive the coded video data together with other data, such as coded audio data and / or auxiliary data streams, which can be forwarded to respective processing circuits (not shown). The receiver (531) can separate the coded video sequences from the other data. To deal with network jitter, a buffer memory (515) may be coupled between the receiver (531) and the entropy decoder / parser (520) (hereafter referred to as the parser (520)). In certain applications, the buffer memory (515) is part of the video decoder (510). In other applications, it may be external and separate from the video decoder (510) (not shown). In yet other applications, there may be a buffer memory (not shown) external to the video decoder (510), e.g. to deal with network jitter, and there may be another additional buffer memory (515) inside the video decoder (510), e.g. to handle playback timing. If the receiver (531) is receiving data from a store / forward device with sufficient bandwidth and controllability, or from a synchronous 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 in an operating system or similar element (not shown) external to the video decoder (510).
[0039]
[0060] The video decoder (510) may include a parser (520) to reconstruct symbols (521) from the coded video sequence. These symbol categories include information used to manage the operation of the video decoder (510) and potentially information for controlling a rendering device such as a rendering device (512) (e.g., a display screen) that may or may not be an integral part of the electronic device (530) but may be coupled to the electronic device (530) as shown in FIG. 5. The rendering device control information may be in the form of supplemental enhancement information (SEI message) or video usability information (VUI) parameter set fragments (not shown). The parser (520) may parse / entropy decode the coded video sequence received by the parser (520). The entropy coding of the coded video sequence may follow a video coding technique or standard and may follow various principles including variable length coding, Huffman coding, arithmetic coding with or without context effects, etc. The parser (520) can 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 can include groups of pictures (GOPs), pictures, tiles, slices, macroblocks, coding units (CUs), blocks, transform units (TUs), prediction units (PUs), etc. The parser (520) can also extract from the coded video sequence information such as transform coefficients (e.g., Fourier transform coefficients), quantization parameter values, motion vectors, etc.
[0040]
[0061] The parser (520) is capable of performing an entropy decoding / parsing process on the video sequence received from the buffer memory (515) to generate symbols (521).
[0041]
[0062] The reconstruction of the symbols (521) may involve several different processing or functional units, depending on the type of video picture or part thereof being coded (e.g.: inter and intra pictures, inter and intra blocks) and other factors. Which units are involved and how can be controlled by subgroup control information parsed by the parser (520) from the video sequence being coded. The flow of such subgroup control information between the parser (520) and the subsequent processing or functional units is not depicted for the sake of clarity.
[0042]
[0063] Beyond the functional blocks already mentioned, the video decoder (510) may be further conceptually subdivided into a number of functional units as described below. In a practical implementation operating under commercial constraints, many of these units may interact closely with each other and may be at least partially integrated with each other. However, for purposes of describing with clarity various functions of the disclosed subject matter, a conceptual subdivision into functional units is adopted in the following disclosure.
[0043]
[0064] The first unit may include a scalar / inverse transform unit (551), which receives quantized transform coefficients as well as control information (including the type of inverse transform to use, block size, quantization factors / parameters, quantization scaling matrix, etc.) as symbols (521) from the parser (520). The scalar / inverse transform unit (551) may output a block containing sample values that may be input to an aggregator (555).
[0044]
[0065] In some cases, the output samples of the scaler / inverse transform (551) may relate to blocks that are intra-coded, i.e., blocks that do not use prediction information from a previously reconstructed picture, but may use prediction information from a previously reconstructed part 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 blocks of the same size and shape of the block being reconstructed using already reconstructed neighboring block information stored in a current picture buffer (558). The current picture buffer (558) may, for example, buffer a partially reconstructed current picture and / or a fully reconstructed current picture. In some implementations, the aggregator (555) may add, on a sample-by-sample basis, prediction information generated by the intra prediction unit (522) to the output sample information as provided by the scaler / inverse transform unit (551).
[0045]
[0066] In other cases, the output samples of the scalar / inverse transform unit (551) may relate to a block that may be inter-coded and motion compensated. In such a case, the motion compensation prediction unit (553) may access the reference picture memory (557) to obtain samples used for inter-picture prediction. After motion compensating the obtained samples according to the symbols (521) related to the block, these samples are added by the aggregator (555) to the output of the scalar / inverse transform unit (551) (the output of the 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 compensated prediction unit (553) retrieves prediction samples may be controlled by motion vectors available to the motion compensated prediction unit (553), for example in the form of symbols (521) which may have X, Y components (shift) and a reference picture component (time). Motion compensation may also include interpolation of sample values as retrieved from the reference picture memory (557) when sub-sample accurate motion vectors are used, and may also be associated with a motion vector prediction mechanism, etc.
[0046]
[0067] The output samples of the aggregator (555) may be subjected to various loop filtering techniques in the loop filter unit (556). Video compression techniques may include in-loop filter techniques, controlled by parameters included 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), that may 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. As described in more detail below, several types of loop filters may be included as part of the loop filter unit 556 in various orders.
[0047]
[0068] The output of the loop filter unit (556) may be a sample stream that can be output to a rendering device (512) as well as stored in a reference picture memory (557) for use in future inter-picture prediction.
[0048]
[0069] Once a given coded picture is fully reconstructed, it can be used as a reference picture for future inter-picture prediction. For example, once a coded picture corresponding to a current picture is fully reconstructed and the coded picture is identified as a reference picture (e.g., by the parser (520)), the current picture buffer (558) can become part of the reference picture memory (557), and a new current picture buffer can be reallocated before starting the reconstruction of a future coded picture.
[0049]
[0070] The video decoder (510) may perform decoding operations according to a given video compression technique adopted in a standard such as ITU-T Rec. H.265. The video sequence being coded may be compliant with the syntax specified by the video compression technique or standard being used in the sense that the video sequence being coded follows both the syntax of the video compression technique or standard and the profile as documented in the video compression technique or standard. In particular, a profile may select a particular tool from all tools available in the video compression technique or standard as the only tool that may be used under that profile. Also, a requirement for compliance may be that the complexity of the video sequence being coded falls within a range defined by the level of the video compression technique or standard. In some cases, that level may limit the maximum picture size, the maximum frame rate, the maximum reconstruction sample rate (e.g., measured in megasamples per second), the maximum reference picture size, etc. The limits set by the level may be determined by the Hypothetical Reference Decoder (HRD) for HRD buffer management, which may be signaled in the video sequence being coded. It may be further restricted by the Reference Decoder (HRD) specification and metadata.
[0050]
[0071] In some example embodiments, the receiver (531) may receive additional (redundant) data along with the encoded video. The additional data may be included as part of the coded video sequence. The additional data may be used by the video decoder (510) to properly decode the data and / or to more accurately reconstruct the original video data. The additional data may be in the form of, for example, temporal, spatial, or signal-to-noise ratio (SNR) enhancement layers, redundant slices, redundant pictures, forward error correction codes, etc.
[0051]
[0072] 6 shows a block diagram of a video encoder (603) according to an exemplary embodiment of the present disclosure. The video encoder (603) may be included in an electronic device (620). The electronic device (620) may include a transmitter (640) (e.g., a transmission circuit). The video encoder (603) may be used in place of the video encoder (403) in the example of FIG. 4.
[0052]
[0073] The video encoder (603) may receive video samples from a video source (601) (which in the example of FIG. 6 is not part of the electronic device (620)) capable of capturing video images to be coded by the video encoder (603). In another example, the video source (601) may be implemented as part of the electronic device (620).
[0053]
[0074] The video source (601) may provide a source video sequence to be coded 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, ...), and any suitable sampling structure (e.g., YCrCb 4:2:0, YCrCb 4:4:4). In a media serving system, the video source (601) may be a storage device capable of storing pre-prepared video. In a video conferencing system, the video source (601) may be a camera that captures local image information as a video sequence. The video data may be provided as a number of individual pictures or images that convey motion when viewed in sequence. The picture itself may be organized as a spatial array of pixels, where each pixel may contain one or more samples depending on the sampling structure, color space, etc. in use. Those skilled in the art will readily appreciate the relationship between pixels and samples. The following discussion focuses on examples.
[0054]
[0075] According to some embodiments, the video encoder (603) is capable of coding and compressing pictures of a source video sequence into a coded video sequence (643) in real time or under any other time constraint required by the application. Enforcing an appropriate coding rate constitutes one function of the controller (650). In some embodiments, the controller (650) may control and be operatively coupled to other functional units as described below, the couplings of which are not depicted for clarity. Parameters set by the controller (650) may include rate control related parameters (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) may be configured to have other appropriate functions associated with the video encoder (603) optimized for a particular system design.
[0055]
[0076] In some example embodiments, the video encoder (603) may be configured to operate in a coding loop. As a simplified explanation, in one example, the coding loop may include a source coder (630) (e.g., responsible for generating a symbol-like symbol stream based on an input picture to be coded and reference pictures) and a (local) decoder (633) embedded in the video encoder (603). Even if the embedded decoder (633) processes the video stream to be coded by the source coder (630) without entropy coding, the decoder (633) reconstructs the symbols to generate sample data in a manner similar to that generated by the (remote) decoder (since in entropy coding, any compression between the symbols and the video bitstream to be coded may be lossless in the video compression techniques contemplated by the disclosed subject matter). The reconstructed sample stream (sample data) is input to a reference picture memory (634). Since the decoding of the symbol stream produces bit-exact results independent of the location of the decoder (local or remote), the contents in the reference picture memory (634) are also bit-exact 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 would "see" if it used prediction during decoding. This basic principle of reference picture synchronization (and the resulting drift if synchrony cannot be maintained, e.g. due to channel errors) is used to improve coding quality.
[0056]
[0077] The operation of the "local" decoder (633) may be the same as that of a "remote" decoder, such as the video decoder (510) already described in detail above in connection with Figure 5. However, with brief reference to Figure 5 as well, because symbols are available and the encoding / decoding of symbols into a coded video sequence by the entropy coder (645) and parser (520) may be lossless, the entropy decoding portion of the video decoder (510), including the buffer memory (515) and parser (520), may not be fully implemented in the local decoder (633) at the encoder.
[0057]
[0078] An observation that can be made at this point is that any decoder technique other than analysis / entropy decoding that may only be present in a decoder must necessarily be present in the corresponding encoder, in substantially the same functional form. For this reason, the disclosed subject matter may often focus on the operation of the decoder, which is similar to the decoding portion of the encoder. A description of the encoder technique may be omitted, since it is the reverse of the decoder technique described generically. Only in certain areas or aspects is a more detailed description of the encoder provided below.
[0058]
[0079] During operation, the source coder (630), in some example implementations, may perform motion-compensated predictive coding, which predictively codes an input picture with reference to one or more previously coded pictures from a video sequence designated as “reference pictures.” In this manner, the coding engine (632) codes differences (or residuals) in color channels between pixel blocks of the input picture and pixel blocks of reference pictures that may be selected as predictive references for the input picture.
[0059]
[0080] The local video decoder (633) can decode the coded video data of pictures that can be designated as reference pictures based on the symbols generated by the source coder (630). The operation of the coding engine (632) can advantageously be a non-lossless process. If the coded video data can be decoded by a video decoder (not shown in FIG. 6), the reconstructed video sequence can typically be a replica of the source video sequence with some errors. The local video decoder (633) can repeat the decoding process that can be performed by the video decoder on the reference pictures and cause the reconstructed reference pictures to be stored in the reference picture cache (634). In this way, the video encoder (603) can locally store copies of reconstructed reference pictures that have common content as reconstructed reference pictures that are to be obtained by a far-end (remote) video decoder (assuming there are no transmission errors).
[0060]
[0081] 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 predefined metadata (reference picture motion vectors, block shapes, etc.), which may serve as suitable prediction references for the new picture. The predictor (635) may operate on a sample block-pixel block basis to find suitable prediction references. In some cases, as determined by the search results obtained by the predictor (635), the input picture may have prediction references drawn from multiple reference pictures stored in the reference picture memory (634).
[0061]
[0082] The controller (650) may manage the coding operations of the source coder (630), including, for example, setting the parameters and subgroup parameters used to encode the video data.
[0062]
[0083] The output of all the aforementioned 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 video sequence to be coded by losslessly compressing the symbols according to techniques such as Huffman coding, variable length coding, arithmetic coding, etc.
[0063]
[0084] The transmitter (640) can buffer the coded video sequence as produced by the entropy coder (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 coded video data. The transmitter (640) can merge the coded video data from the video coder (603) with other data to be transmitted, such as coded audio data and / or auxiliary data streams (sources not shown).
[0064]
[0085] The controller (650) can manage the operation of the video encoder (603). During coding, the controller (650) can assign each of the coded pictures a particular coded picture type, which can affect the coding technique that can be applied to each picture. For example, a picture may be frequently assigned as one of the following picture types:
[0065]
[0086] An intra picture (I-picture) is one that can be coded and decoded without using any other picture 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 are aware of these variations of I-pictures and their respective uses and characteristics.
[0066]
[0087] A predictive picture (P-picture) is one that can be coded 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.
[0067]
[0088] A bi-directionally predicted picture (B-picture) is one that can be coded and decoded using intra- or inter-prediction, which uses at most two motion vectors and reference indices to predict the sample values of each block. Similarly, a multi-prediction picture can use more than two reference pictures and associated metadata for the reconstruction of a block.
[0068]
[0089] A source picture is usually spatially subdivided into multiple sample coding blocks (e.g., blocks of 4x4, 8x8, 4x8, or 16x16 samples) and can be coded block by block. Blocks can be predictively coded with reference to other (already coded) blocks, as determined by the coding assignment applied to the respective picture. For example, blocks of an I picture can be coded non-predictively or they can be predictively coded with reference to already coded blocks of the same picture (spatial or intra prediction). Pixel blocks of a P picture can be predictively coded with spatial or temporal prediction with reference to one previously coded reference picture. Blocks of a B picture can be predictively coded with spatial or temporal prediction with reference to one or two previously coded reference pictures. Source pictures or intermediate processed pictures 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 method, as explained in more detail below.
[0069]
[0090] The video encoder (603) may perform a coding operation according to a given video coding technique or standard, such as ITU-T Rec. H.265, in which the video encoder (603) may perform various compression operations, including predictive coding operations that exploit temporal and spatial redundancies in the input video sequence. The video data to be coded may thus conform to a syntax specified by the video coding technique or standard being used.
[0070]
[0091] In some example embodiments, the transmitter (640) can transmit additional data along with the encoded video. The source coder (630) can include such data as part of the video sequence being coded. The additional data can include temporal / spatial / SNR enhancement layers, other forms of redundant data (redundant pictures and slices, SEI messages, VUI parameter set fragments, etc.).
[0071]
[0092] A video can be captured as multiple source pictures (video pictures) in a time sequence. Intra-picture prediction (often abbreviated as intra prediction) exploits spatial correlation in a given picture, and inter-picture prediction exploits correlation (temporal or other) between pictures. In one example, a particular picture under encoding / decoding, referred to as the current picture, can be partitioned into blocks. A block in the current picture can be coded by a vector, referred to as a motion vector, if it resembles a reference block in a reference picture previously coded and still buffered in the video. A motion vector points to a reference block in a reference picture, and can have a third dimension that identifies the reference picture if multiple reference pictures are used.
[0072]
[0093] In some example embodiments, bi-prediction techniques may be used for inter-picture prediction. According to such bi-prediction techniques, two reference pictures, such as a first reference picture and a second reference picture, are used that both precede in decoding order (but may be in the past or future, respectively, in display order) the current picture in a video. A block in the current picture may be coded with 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 may be jointly predicted by a combination of the first and second reference blocks.
[0073]
[0094] Furthermore, a merge mode technique may be used for inter-picture prediction to improve coding efficiency. 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 may be partitioned into coding tree units (CTUs) for compression, and the CTUs in a picture may have the same size, such as 64×64 pixels, 32×32 pixels, or 16×16 pixels. In general, a CTU may include three parallel coding tree blocks (CTBs), one luma CTB and two chroma CTBs. Each CTU may be recursively quad-tree partitioned into one or more coding units (CUs). For example, a 64×64 pixel CTU may be partitioned into one CU of 64×64 pixels and four CUs of 32×32 pixels. One or more 32×32 blocks may be further partitioned into four CUs of 16×16 pixels. In some exemplary embodiments, each CU may be analyzed during encoding to determine the prediction type of the CU among various prediction types, such as an inter prediction type or an intra prediction type. The CU may be divided into one or more prediction units (PUs) depending on the temporal and / or spatial predictability. In general, each PU includes a luma prediction block (PB) and two chroma PBs. In embodiments, the prediction operation in coding (encoding / decoding) is performed in units of prediction blocks. The division of the CU into PUs (or PBs of different color channels) may be performed in various spatial patterns. The luma or chroma PB may include a matrix of sample values (e.g., luma values), such as, for example, 8×8 pixels, 16×16 pixels, 8×16 pixels, 16×8 samples, etc.
[0074]
[0096] 7 shows a diagram of a video encoder (703) according to another 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 the coded video sequence. The example video encoder (703) may be used in place of the example video encoder (403) of FIG. 4.
[0075]
[0097] For example, the video encoder (703) receives a matrix of sample values for a processing block, such as a predicted block of 8x8 samples. The video encoder (703) 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 the processing block is determined to be coded in intra mode, the video encoder (703) may use intra prediction techniques to code the processing block into the picture to be coded; if the processing block is determined to be coded in inter mode or bi-prediction mode, the video encoder (703) may use inter prediction techniques or bi-prediction techniques, respectively, to code the processing block into the picture to be coded. In some exemplary embodiments, merge mode may be used as a sub-mode of an inter-prediction picture, in which case motion vectors are derived from one or more motion vector predictors without benefit of a motion vector component coded outside the predictor. In some other exemplary embodiments, there may be a motion vector component 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, to determine the mode of a processing block.
[0076]
[0098] 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 encoder (725) coupled together as shown in the exemplary arrangement of FIG. 7.
[0077]
[0099] The inter encoder (730) is configured to receive samples of a current block (e.g., a block being processed), 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 coding 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) incorporated in the example encoder (620) of FIG. 6 (shown as a residual decoder 728 of FIG. 7, described in more detail below).
[0078]
[0100] The intra encoder (722) is configured to receive samples of a current block (e.g., a processing block), compare the block to previously coded blocks in the same picture, generate transformed and quantized coefficients, and possibly also generate intra prediction information (e.g., intra prediction direction information according to one or more intra coding techniques). The intra encoder (722) is capable of computing an intra prediction result (e.g., a prediction block) based on the intra prediction information and reference blocks in the same picture.
[0079]
[0101] 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 the mode of the block and provides a control signal to the switch (726) based on the prediction mode. For example, if the prediction mode is intra mode, the general controller (721) controls the switch (726) to select the intra mode result for use by the residual calculator (723) and controls the entropy encoder (725) to select the intra prediction information and include the intra prediction information in the bitstream; if the prediction mode of the block is inter mode, the general controller (721) controls the switch (726) to select the inter prediction result for use by the residual calculator (723) and controls the entropy encoder (725) to select the inter prediction information and include the inter prediction information in the bitstream.
[0080]
[0102] The residual calculator (723) may be configured to calculate a difference (residual data) between the received block and a prediction result for the block selected from the intra-encoder (722) or the inter-encoder (730). The residual encoder (724) may be configured to encode the residual data to generate 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 embodiments, the video encoder (703) also includes a residual decoder (728). The residual decoder (728) is configured to perform an inverse transform to generate decoded residual data. The decoded residual data can be used by the intra-encoder (722) and the inter-encoder (730) as appropriate. 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 are appropriately processed to generate decoded pictures, which may be buffered in a memory circuit (not shown) and used as reference pictures.
[0081]
[0103] The entropy encoder (725) may be configured to format a bitstream to include the encoded blocks and perform entropy coding. 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. Residual information may not be present when coding a block in a merged sub-mode of either an inter mode or a bi-prediction mode.
[0082]
[0104] 8 shows a diagram of a 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.
[0083]
[0105] In the example of FIG. 8, the video decoder (810) includes an entropy decoder (871), an inter decoder (880), a residual decoder (873), a reconstruction module (874), and an intra decoder (872) coupled together as shown in the exemplary arrangement of FIG. 8.
[0084]
[0106] The entropy decoder (871) can be configured to reconstruct from the picture being coded certain symbols that represent syntax elements that make up the picture being coded. Such symbols can include, for example, the mode in which the block is coded (e.g., intra mode, inter mode, bi-predictive mode, merged submode, or another submode), prediction information (e.g., intra prediction information or inter prediction information) that can identify certain samples or metadata used for prediction by the intra decoder (872) or the 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-predictive mode, the inter prediction information is provided to the inter decoder (880); if the prediction type is an intra prediction type, the intra prediction information is provided to the intra decoder (872). The residual information can be inverse quantized and provided to the residual decoder (873).
[0085]
[0107] The inter decoder (880) may be configured to receive the inter prediction information and generate inter prediction results based on the inter prediction information.
[0086]
[0108] The intra decoder (872) may be configured to receive intra prediction information and generate a prediction result based on the intra prediction information.
[0087]
[0109] The residual decoder (873) may be configured to perform inverse quantization to obtain 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 use certain control information (including a quantization parameter (QP)), which may be provided by the entropy decoder (871) (this may be only a small amount of control information, so a data path is not depicted).
[0088]
[0110] The reconstruction module (874) may be configured to combine, in the spatial domain, the residual as output by the residual decoder (873) and the prediction result (possibly output by an inter- or intra-prediction module) to form a reconstructed block that forms part of the reconstructed picture as part of the reconstructed video. It should be noted that other suitable processes, such as a deblocking process, may be performed to improve visual quality.
[0089]
[0111] It should be noted that the video encoders (403), (603), and (703) and the video decoders (410), (510), and (810) may be implemented using any suitable technology. In some embodiments, the video encoders (403), (603), and (703) and the video decoders (410), (510), and (810) may be implemented using one or more integrated circuits. In other embodiments, the video encoders (403), (603), and (703) and the video decoders (410), (510), and (810) may be implemented using one or more processors executing software instructions.
[0090]
[0112] With respect to coding block partitioning, in some example implementations, a predefined pattern may be applied. As shown in FIG. 9, an example 4-way partition tree may be used that starts from a first predefined level (e.g., 64×64 block level) and descends to a second predefined level (e.g., 4×4 level). For example, the base block may follow four partitioning options, indicated by 902, 904, 906, and 908, and the partition indicated as R may be the same partition tree as shown in FIG. 9 repeated at lower scales, 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 they may not be allowed recursively, while square partitioning is allowed recursively. Partitioning following FIG. 9 with recursion generates a final set of coding blocks, if necessary. Such a scheme may be applied to one or more color channels.
[0091]
[0113] FIG. 10 illustrates another exemplary predefined partitioning pattern that allows recursive partitioning to form a partitioning tree. As shown 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., 128×128 level or 64×64 level). The exemplary partitioning structure of FIG. 10 includes various 2:1 / 1:2 and 4:1 / 1:4 rectangular partitions. Note that the partition types 1002, 1004, and 1008 with three sub-partitions shown in the second row of FIG. 10 may be referred to as “T-type” partitions. The “T-type” partitions 1002, 1004, 1006, 1008 may be referred to as “Left T-Type”, “Top T-Type”, “Right T-Type”, and “Bottom T-Type”. In some implementations, none of the rectangular partitions of FIG. 10 are allowed to be further subdivided. The 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 black, e.g., for a 128×128 block, may be set to 0, and the coding tree depth is increased by one after the root block is partitioned once more following FIG. 10. In some implementations, only the all-square partitions of 1010 may be allowed to recursively partition to the next level of the partitioning tree following the pattern of FIG. 10. In other words, recursive partitioning may not be allowed for square partitions with patterns 1002, 1004, 1006, and 1006. Partitioning following FIG. 10 with recursion produces a final set of coding blocks, if necessary. Such a scheme may be applied to one or more color channels.
[0092]
[0114] After splitting or partitioning the base block and again performing some partitioning procedure or other procedures described above, a final set of partitions or coding blocks may be obtained. Each of these partitions may be one of various partitioning levels. Each partition may be referred to as a coding block (CB). With respect to the various example partitioning implementations described above, each resulting CB may be of any size and partitioning level allowed. They are referred to as coding blocks because they may form a unit around which some basic coding / decoding decisions may be made and coding / decoding parameters may be optimized, determined, and signaled in the coded video bitstream. The highest level of the final partition represents the depth of the coding block partitioning tree. A coding block may be a luma coding block or a chroma coding block.
[0093]
[0115] In some other implementations, a quadtree structure may be used to recursively partition the base luma and chroma blocks into coding units. Such partitioning structures may be referred to as coding tree units (CTUs), which are partitioned into coding units (CUs) using the quadtree structure by adapting the partitioning to various local characteristics of the base CTU. In such implementations, an implicit quadtree partitioning may be performed at picture boundaries, so that a block remains quadtree partitioned until its size fits into a picture boundary. The term CU is used to collectively refer to the units of luma and chroma coding blocks (CBs).
[0094]
[0116] In some implementations, the CB may be further partitioned. For example, the CB may be further partitioned into multiple prediction blocks (PBs) for the purpose of intra- or inter-frame prediction during the coding and decoding process. In other words, the CB may be further divided into different sub-partitions, where individual prediction decisions / configurations may be made. In parallel, the CB may be further partitioned into multiple transform blocks for the purpose of delineating the level at which a transform or inverse transform 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 different characteristics of the video data. The partitioning schemes 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 may be further partitioned into one or more TBs after being determined after the partitioning of the coding blocks. For example, in some implementations, the PB may be divided into one, two, four, or some other number of TBs.
[0095]
[0117] In some implementations, luma and chroma channels may be treated differently for partitioning base blocks into coding blocks and further partitioning into prediction and / or transform blocks. For example, in some implementations, partitioning of coding blocks into prediction and / or transform blocks may be allowed for luma channels, but such partitioning of coding blocks into prediction and / or transform blocks may not be allowed for chroma channels. In such implementations, transform and / or prediction of luma blocks may be performed only at the coding block level. In another example, the minimum transform block size for luma and chroma channels may be different, e.g., coding blocks of luma channels may be partitioned into smaller transform and / or prediction blocks than chroma channels. In yet another example, the maximum depth of partitioning of coding blocks into transform blocks and / or prediction blocks may differ between luma and chroma channels, e.g., coding blocks for luma channels may be allowed to be partitioned into deeper transform and / or prediction blocks than chroma channels. In a particular example, luma coding blocks may be partitioned into transform blocks of multiple sizes that can be represented by recursive partitions down to a maximum of two levels, and transform block shapes such as square, 2:1 / 1:2, 4:1 / 1:4, and transform block sizes from 4×4 to 64×64 may be allowed. However, for chroma blocks, only the maximum possible transform block designated for the luma block may be allowed.
[0096]
[0118] In some example implementations for partitioning coding blocks into PBs, the depth, shape, and / or other characteristics of the PB partitioning may depend on whether the PB is intra- or inter-coded.
[0097]
[0119] The partitioning of coding blocks (or prediction blocks) into transform blocks may be implemented in various exemplary manners, including but not limited to quad-tree partitioning and predetermined pattern partitioning, recursively or non-recursively, and with additional consideration for transform blocks at coding or prediction block boundaries. In general, the resulting transform blocks may be at different partitioning levels, may not be of the same size, and may not be square in shape (e.g., they may be rectangular with an acceptable size and aspect ratio).
[0098]
[0120] In some implementations, a coding partition tree scheme or structure may be used. The coding partition tree schemes used for the luma and chroma channels may not need to be the same. In other words, the luma and chroma channels may have separate coding tree structures. Furthermore, whether the luma and chroma channels 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, B, or I slice. For example, for an I slice, the chroma and luma channels may have separate coding partition tree structures or coding partition tree structure modes, while for a P or B slice, the luma and chroma channels 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 CB by one coding partition tree structure, and the chroma channel may be partitioned into chroma CB by another coding partition tree structure.
[0099]
[0121] A specific implementation example of the partitioning of coding blocks and transform blocks is described below. In such an exemplary implementation, the base coding block can be partitioned into coding blocks using the recursive quadtree partitioning described above. At each level, whether further quadtree partitioning of a particular partition should follow or not may be determined by local video data characteristics. The resulting CBs can be various quadtree partition levels of various sizes. The decision whether to code a picture region using inter-picture (temporal) or intra-picture (spatial) prediction can be made at the CB level (or at the CU level, for all three color channels). Each CB can be further partitioned into one, two, four, or other number of PBs depending on the PB partition type. Inside one PB, the same prediction process is applied and related information is transmitted to the decoder on a PB basis. After obtaining the residual blocks by applying the prediction process based on the PB partition type, the CBs can be partitioned into TBs according to another quadtree structure similar to the coding tree of the CB. In this particular implementation, the CB or TB may be square, but is not limited to being square. Furthermore, in this particular example, the PB may be square or rectangular in shape for inter prediction, and may be square only for intra prediction. A coding block may be further divided, for example, into four square-shaped TBs. Each TB may be further divided recursively (using quad-tree partitioning) into smaller TBs called Residual Quad-Tree (RQT).
[0100]
[0122] In the following, we will describe another embodiment for partitioning the base coding block into CB and other PBs and / or TBs. For example, instead of using multiple partition unit types as shown in FIG. 10, we will use binary and ternary splits segmentation structure. A quadtree with nested multi-type trees may be used using a quadtree segmentation structure. The separation of the concepts of CB, PB, and TB (i.e., partitioning CB into PB and / or TB, and partitioning PB into TB) may be abandoned except when required for CBs that have a size that is too large for the maximum transform length, and such CBs may require further division. This exemplary partitioning scheme may be designed to support more flexibility for CB partition shapes, so that both prediction and transformation can be performed at the CB level without further partitioning. In such a coding tree structure, the CBs may have either a square or rectangular shape. Specifically, the coding tree block (CTB) may be first partitioned by a quadtree structure. Then, the quadtree leaf nodes may be further partitioned by a multi-type tree structure. An example of a multi-type tree structure is shown in FIG. 11. Specifically, the exemplary multi-type tree structure of FIG. 11 includes four split types called vertical bisection (SPLIT_BT_VER) (1102), horizontal bisection (SPLIT_BT_HOR) (1104), vertical trisection (SPLIT_TT_VER) (1106), and horizontal trisection (SPLIT_TT_HOR) (1108). And CB corresponds to the leaf of the multi-type tree. In this example implementation, this segmentation is used for both prediction and transformation processes without further partitioning, as long as CB is not too large for the maximum transform length. This means that in most cases, CB, PB, and TB have the same block size in the quadtree with nested multi-type tree coding block structure. An exception occurs when the maximum supported transform length is smaller than the width or height of the color components of CB.
[0101]
[0123] An example of a quadtree with nested multi-type tree coding block structure of block partitions for one CTB is shown in FIG. 12. More specifically, FIG. 12 shows that a CTB 1200 is partitioned into four square partitions 1202, 1204, 1206, and 1208. A decision to further use the multi-type tree structure of FIG. 11 for partitioning is made for each of the quadtree partitioning partitions. In the example of FIG. 12, partition 1204 is not further partitioned. Partitions 1202 and 1208 each employ a different quadtree partitioning. In partition 1202, the second level quadtree partitioning, top left, top right, bottom left, and bottom right partitions, employ the third level partitioning of quadtree, 1104 of FIG. 11, and non-partitioned, 1108 of FIG. 11, respectively. Partition 1208 adopts another quadtree partitioning, and the second level quadtree partitioning, top-left, top-right, bottom-left, and bottom-right partitions adopt the third level partitioning of 1106 in FIG. 11, unpartitioned, unpartitioned, and 1104 in FIG. 11, respectively. Two sub-partitions of the top-left partition of the third level of 1208 are further divided according to 1104 and 1108. Partition 1206 adopts the second level partitioning pattern according to 1102 in FIG. 11 into two patterns, and the two patterns are further divided at the third level according to 1108 and 1102 in FIG. 11. A fourth level partitioning is further applied to one of them according to 1104 in FIG. 11.
[0102]
[0124] In the particular example above, the maximum luma transform size may be 64 x 64, and the maximum supported chroma transform size may differ from the luma, e.g., 32 x 32. If the width or height of a luma coding block or a chroma coding block is larger than the maximum transform width or height, the luma coding block or the chroma coding block may be automatically split in the horizontal and / or vertical direction to meet the transform size constraint in that direction.
[0103]
[0125] In the specific example of partitioning the base coding blocks into the above CBs, the coding tree scheme may support the feature that luma and chroma have separate block tree structures. For example, for P and B slices, the luma CTB and chroma CTB of one CTU may share the same coding tree structure. For example, for I slices, luma and chroma may have separate coding block tree structures. When the separate block tree mode is applied, the luma CTB may be partitioned into luma CBs by one coding tree structure, and the chroma CTB is partitioned into chroma CBs by another coding tree structure. This means that a CU of an I slice may consist of a coding block of the luma component or a coding block of two chroma components, and a CU of a P or B slice always consists of coding blocks of all three color components, unless the video is monochrome.
[0104]
[0126] 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, transform partitioning may support multiple shapes of transform blocks, e.g., 1:1 (square), 1:2 / 2:1, and 1:4 / 4:1, with transform block sizes ranging from 4×4 to 64×64, for example. In some implementations, if the coding block is 64×64 or smaller, transform block partitioning may be applied only to the luma component, so that for chroma blocks, the transform block size is the same as the coding block size. Otherwise, if the width or height of the coding block is greater than 64, both the luma and chroma coding blocks may be implicitly divided into transform blocks that are multiples of min(W,64)×min(H,64) and min(W,32)×min(H,32), respectively.
[0105]
[0127] In some example implementations, for both intra- and inter-coded blocks, the coding blocks may be further partitioned into multiple transform blocks with partitioning depth up to a predetermined number of levels (e.g., two levels). The transform block partitioning depth and size may be related. An example mapping from the transform size of the current depth to the transform size of the next depth is shown in the table below.
[0106] Table 1: Conversion Partition Size Settings
[0107] [Table 1]
[0128] Based on the example mapping of Table 1, for a 1:1 square block, the next level transform partition may 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 of 4×4 corresponds to the same size of 4×4 for the next depth. In the example of Table 1, for a 1:2 / 2:1 non-square block, the next level transform partition would create two 1:1 square sub-transform blocks, while for a 1:4 / 4:1 non-square block, the next level transform partition would create two 1:2 / 2:1 sub-transform blocks.
[0108]
[0129] In some example implementations, additional restrictions may be applied for the luma components of intra-coded blocks. For example, for each level of transform partitioning, all sub-transform blocks may be constrained to have equal size. For example, for a 32×16 coding block, level 1 transform partitioning generates two 16×16 sub-transform blocks, and level 2 transform partitioning generates 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 following Table 1 is shown in FIG. 13, with the coding order shown together with the arrows. Specifically, 1302 shows a square coding block. The first level partitioning according to the table into four equal sized transform blocks is shown at 1304, with the coding order shown with the arrows. The second level partitioning of all the first level equal sized blocks into 16 equal sized transform blocks according to Table 1 is shown at 1306 with the coding order indicated by the arrows.
[0109]
[0130] In some implementations, the above restrictions on intra-coding may not apply to the luma components of an inter-coded block. For example, after the first level of transform partitioning, any one of the sub-transform blocks may be further partitioned independently at one more level. Thus, the resulting transform blocks may or may not be of the same size. An example of partitioning an inter-coded block into transform blocks along with their coding order is shown in FIG. 14. In the example of FIG. 14, an inter-coded block 1402 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 of the four transform blocks (but not all of them) is further partitioned into four sub-transform blocks, resulting in a total of seven transform blocks having two different sizes, as shown at 1404. An example coding order of these seven transform blocks is shown by the arrows in 1404 of FIG. 14.
[0110]
[0131] In some example implementations, for chroma components, some additional restrictions on transform blocks may be applied, e.g., for chroma components, the transform block size may be as large as the coding block size, but not smaller than a certain size, e.g., 8×8.
[0111]
[0132] In some other example implementations, if either the width (W) or height (H) of a coding block is greater than 64, then both the luma and chroma coding blocks may be implicitly partitioned into multiples of min(W,64)×min(H,64) and min(W,32)×min(H,32) transform blocks, respectively.
[0112]
[0133] FIG. 15 further illustrates another alternative example scheme for partitioning coding blocks or prediction blocks into transform blocks. As shown in FIG. 15, instead of using recursive transform partitioning, a predefined set of partitioning types may be applied to coding blocks according to their transform type. In the particular example shown in FIG. 15, one of six example partitioning types may be applied to divide the coding block into a varying number of transform blocks. Such a scheme may be applied to either coding blocks or prediction blocks.
[0113]
[0134] More specifically, the partitioning scheme of FIG. 15 provides up to six partition types for any given transform type, as shown in FIG. 15. In this scheme, every coding block or predictive block can be assigned a transform type based on, for example, a rate-distortion cost. In one example, the partition type assigned to a coding block or predictive block may be determined based on the transform partition type of the coding block or predictive block. A particular partition type may correspond to a transform block partition size and pattern (or partition type), as illustrated by the four partition types shown in FIG. 15. The correspondence between the various transform types and the various partition types may be predefined. An exemplary correspondence is shown below, with capitalized labels indicating transform types that can be assigned to a coding block or predictive block based on a rate-distortion cost.
[0114]
[0135] ·PARTITION_NONE: Allocates the transformation size equal to the block size.
[0115]
[0136] · PARTITION_SPLIT: Allocates a transformation size that has 1 / 2 the width of the block size and 1 / 2 the height of the block size.
[0116]
[0137] ·PARTITION_HORZ: Allocates a transformation size with width equal to the block size and height equal to 1 / 2 the block size.
[0117]
[0138] ·PARTITION_VERT: Allocates a transformation size that has half the width of the block size and the same height as the block size.
[0118]
[0139] ·PARTITION_HORZ4: Allocates a transformation size with width equal to the block size and height equal to 1 / 4 of the block size.
[0119]
[0140] PARTITION_VERT4: allocates a transformation size with a width of 1 / 4 of the block size and a height equal to the block size
[0141] In the above example, all partition types as shown in Figure 15 include uniform transform sizes for the partitioned transform blocks. This is merely an example and not a limitation. In some other implementations, mixed transform block sizes may be used for transform blocks partitioned with a particular partition type (or pattern).
[0120]
[0142] Returning to intra prediction, in some example implementations, prediction of samples in a coding block or a predictive block may be based on one of a set of reference lines. In other words, instead of always using the closest neighboring line (e.g., the neighboring line directly above or immediately to the left of the predictive block as shown in FIG. 1 above), multiple reference lines may be provided as selection options for intra prediction. Such intra prediction implementations may be referred to as Multiple Reference Line Selection (MRLS). In these implementations, the encoder determines and signals which reference line among the multiple reference lines is used to generate an intra predictor. At the decoder side, after analyzing the reference line index, the intra prediction of the current intra prediction block may be generated by identifying a reconstructed reference sample by searching the specified reference line according to the intra prediction mode (directional, non-directional, and other intra prediction modes). In some implementations, the reference line index may be signaled at the coding block level, and only one of the multiple reference lines may be selected and used for intra prediction of one coding block. In some examples, more than one reference line may be selected together for intra prediction. For example, more than one reference line may be combined, averaged, interpolated, or in some other manner, with or without weighting, to generate a prediction. In some example implementations, MRLS may be applied only to the luma component and not to the chroma components.
[0121]
[0143] In FIG. 16, an example of four reference lines MRLS is depicted. As shown in the example of FIG. 16, an intra-coding block 1602 may be predicted based on one of four horizontal reference lines 1604, 1606, 1608, and 1610, and four vertical reference lines 1612, 1614, 1616, and 1618. Of these reference lines, 1610 and 1618 are immediate neighboring reference lines. The reference lines may be indexed according to their distance from the coding block. For example, the reference lines 1610 and 1618 are the zero reference lines. In some cases, reference lines 1608 and 1616 may be referred to as first reference lines, while other reference lines may be referred to as non-zero reference lines. Specifically, reference lines 1608 and 1616 may be referred to as first reference lines; reference lines 1606 and 1614 may be referred to as second reference lines; and reference lines 1604 and 1612 may be referred to as third reference lines.
[0122]
[0144] There may be some challenges / issues associated with implementing the multiple reference line selection (MRLS) scheme. In an implementation without multiple reference line selection, only the closest (or adjacent) top (or above) and / or left reference lines are relevant, and only samples from the closest (or adjacent) top (i.e. above) and / or left reference lines need to be buffered / stored for intra prediction of the current block. When MRLS is applied to an intra-coded block, four top (or above) reference lines and four left reference lines may be used for intra prediction. As a result, the buffer for storing the neighboring reference samples needs to be increased by three times. Furthermore, in the case of a super-block, the length of the buffer may be the same length as the length of the reference lines at the super-block boundary, which may be equal to the picture width in a hardware decoder in some cases, so the three-fold buffer size increase is a heavy burden for a hardware decoder.
[0123]
[0145] This disclosure describes various embodiments for improving signaling of low memory design and / or multiple reference line selection schemes for intra prediction in video coding and / or decoding, and addressing at least one of the challenges / problems mentioned above.
[0124]
[0146] With reference to FIG. 17, in various embodiments, a method for intra prediction of multiple reference lines in video decoding is described. The method 1700 may include all or some of the following steps: a device including a memory storing instructions and a processor in communication with the memory receives a coded video bitstream of a current block in step 1710; the device extracts parameters from the coded video bitstream, the parameters indicating one non-adjacent reference line for intra prediction in the current block in step 1720; the device partitions the current block to obtain a plurality of sub-blocks in step 1730; and / or in response to a sub-block in the plurality of sub-blocks being located at a boundary of the current block, the device uses an upper adjacent reference line as a value for all upper non-adjacent reference lines for the sub-block in step 1740.
[0125]
[0147] In some implementations, the current block may be referred to as a block, and the sub-blocks obtained by partitioning the current block may be referred to as coded blocks. In some other implementations, step 1720 may include the device retrieving parameters from the coded video bitstream, the parameters indicating reference lines for intra prediction in the current block.
[0126]
[0148] In various embodiments of this disclosure, the size of a block (e.g., without limitation, a coding block, a prediction block, or a transform block) may refer to the width or height of the block. The width or height of a block may be an integer number of pixels.
[0127]
[0149] In various embodiments of this disclosure, the size of a block (e.g., but not limited to, a coding block, a prediction block, or a transform block) may refer to the area size of the block, which may be an integer calculated by multiplying the width of the block by the height of the block in pixels.
[0128]
[0150] In some various embodiments of this disclosure, the size of a block (e.g., but not limited to, a coding block, a prediction block, or a transform block) may refer to the maximum width or height of the block, the minimum width or height of the block, or the aspect ratio of the block, which may be calculated as the width divided by the height of the block, or the height of the block divided by the width.
[0129]
[0151] In this disclosure, a reference line index indicates a reference line among a plurality of reference lines. In various embodiments, a reference line index of 0 for a block may designate a neighboring reference line for the block that is the closest reference line to the block. For example, referring to block (1602) in FIG. 16, the top reference line (1610) is the neighboring reference line above the block (1602) and is also the top reference line that is the closest to the block; the left reference line (1618) is the neighboring reference line to the left of the block (1602) and is also the left reference line that is the closest to the block. A reference line index greater than 0 for a block may designate a non-neighboring reference line for the block that is not the closest reference line to the block. For example, referring to block (1602) of FIG. 16, a reference line index of 1 could indicate the top reference line (1608) and / or the left reference line (1616); a reference line index of 2 could indicate the top reference line (1606) and / or the left reference line (1614); and / or a reference line index of 3 could indicate the top reference line (1604) and / or the left reference line (1612).
[0130]
[0152] For step 1710, the device may be the electronic device (530) of Figure 5 or the video decoder (810) of Figure 8. In some implementations, the device may be a decoder (633) within the encoder (620) of Figure 6. In other implementations, the device may be part of the electronic device (530) of Figure 5, part of the video decoder (810) of Figure 8, or part of the decoder (633) within the encoder (620) of Figure 6. The coded video bitstream may be a coded video sequence of Figure 8 or intermediate coded data of Figure 6 or Figure 7.
[0131]
[0153] In some implementations, a block may refer to a super-block, which may refer to the largest coding block, such as, but not limited to, a coding tree block (CTB) and / or a largest coding unit (LCU). In some other implementations, a super-block may refer to a predefined block size, such as, but not limited to, 32x32, 64x64, 128x128, and / or 256x256.
[0132]
[0154] For step 1720, the device may retrieve a parameter from the video bitstream to be coded, which may be used for MRLS to indicate a reference line for intra prediction in the block. In some implementations, the reference line indicated by the parameter may be 1 of N reference lines, where N is an integer greater than 1. In some other implementations, the reference line indicated by the parameter may be 1 of N non-adjacent reference lines.
[0133]
[0155] In some implementations, the method 1700 may further include the device using a left neighboring reference line for the block, hi some other implementations, the left neighboring reference line may be one of the N reference lines to the left for the block.
[0134]
[0156] For step 1730, the device may partition the block to obtain a plurality of coded blocks. In some implementations, the device may partition the block to obtain a coding block partitioning tree. The coding block partitioning tree may include a plurality of coded blocks.
[0135]
[0157] Referring to step 1740, for a coded block from a plurality of coded blocks, if the coded block is located on a block boundary, the device may use the neighboring reference line above as the value for all non-neighboring reference lines above the coded block. In some implementations, the boundary (or boundaries) of a block (e.g., a super-block) may refer to only the top boundary of the block, only the left boundary of the block, or both the left and top boundaries of the block.
[0136]
[0158] In various embodiments, to reduce the memory size for storing samples from multiple reference lines, if the current intra-coded block is located at a super-block boundary, samples in the N left reference lines (columns) may be used for intra prediction, and the nearest (or adjacent) upper (or top) reference line may be used for intra prediction.
[0137]
[0159] N is a positive integer greater than 1, such as 2, 3, or 4. For example, when N=3, for a coding block at a super-block boundary, three left reference lines and an adjacent upper reference line may be used for intra prediction. In some implementations, the three left reference lines may be the three nearest left reference lines of the block, e.g., reference lines (1618, 1616, and 1614) in FIG. 16.
[0138]
[0160] In some implementations, the reference line index may be signaled and coded into the bitstream regardless of whether the current intra-coded block is located on a super-block boundary or not.
[0139]
[0161] Referring again to step 1740, using the adjacent reference line above as the values of all non-adjacent reference lines above for the coding block may include copying samples from the adjacent reference line above to all other non-adjacent reference lines above, thereby significantly reducing the memory size for storing samples from all other non-adjacent reference lines above.
[0140]
[0162] In some implementations, if the current intra-coded block is located at the boundary of a block (e.g., a super-block) and non-zero (or non-adjacent) reference lines are used for intra prediction of the current coded block, the samples in the top (or above) non-zero reference line are derived by copying from the nearest top (or above) reference line if the samples in the top (or above) non-zero reference line are used for intra prediction of the current coded block.
[0141]
[0163] As an example in FIG. 18, a coding block (also called a coded block or coded) (1802) is arranged as a top boundary (1830) and a left boundary (1840) of a block (e.g., a superblock). The top boundary (1830) and the left boundary (1840) of the superblock may be indicated by thick lines as shown in FIG. 18. Both the top left sample (A-4, A-3, A-2, and / or A-1) and the top sample (A+0,..., A+N) in the closest top reference line (1810) of the coding block (1802) are copied to the top non-zero reference line (1808, 1806, and / or 1804). In some implementations, multiple left reference lines (1818, 1816, 1814, and / or 1812) may be allowed to store their samples separately.
[0142]
[0164] In the various implementations described above, the top adjacent reference line is used as an example, and a similar scheme may be applicable to the left adjacent reference line; to improve low-memory design, samples in the left non-zero reference line may be derived from the nearest (or adjacent) left reference line, for example by copying the adjacent left reference line.
[0143]
[0165] In various embodiments, the method 1700 may further include the device optionally partitioning the block to be coded to obtain a plurality of transform blocks. In some implementations, the device may partition the block to be coded to obtain a transform block partitioning tree including the plurality of transform blocks. In some implementations, the method 1700 may optionally include the steps of: in response to a first transform block in the plurality of transform blocks being located at an upper boundary of the block to be coded, the device using an upper adjacent reference line as a value for all non-adjacent reference lines above for the first transform block; and / or in response to a second transform block in the plurality of transform blocks not being located at an upper boundary of the block to be coded, the device using a reference line indicated by the parameter for the second transform block. In some implementations, the reference line indicated by the parameter may be one of the top N reference lines for the second transform block.
[0144]
[0166] In some implementations, the current coded block may be divided into more than one transform block (TB) and / or more than one transform unit (TU). If the current coded block is located on a super-block boundary and the reference line index indicates that a non-zero reference line is used for the current coded block, only samples in the closest reference line above may be used for intra prediction of TUs located on a super-block boundary; if the current coded block is located on a super-block boundary and the reference line index indicates that a non-zero reference line is used for the current coded block, samples in the non-zero reference line above may also be used for TUs that are not located on a super-block boundary.
[0145]
[0167] As an example with reference to FIG. 19, the thick solid line (1930) indicates the top boundary of the super-block. Multiple transform units (TU1, TU2, TU3, and / or TU4) (1904, 1906, 1908, and 1910) are in one coded block. TU1 (1904) and TU2 (1906) are located at the super-block boundary indicated by the thick solid horizontal line (1930), while TU3 (1908) and TU4 (1910) are not located at the top boundary of the super-block. Thus, only samples in the closest reference line above may be used for TU1 and TU2, while samples in a non-zero reference line may be used for TU3 and TU4. Similarly, in some other implementations, if a transform block in a coding block is located at the left boundary of the super-block, only samples in the closest reference line to the left may be used for the transform block.
[0146]
[0168] The embodiments of the present disclosure may be used separately or in combination in any order. Furthermore, each method (or embodiment), encoder, and decoder may be implemented by processing circuitry (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; in a chroma block, the embodiments may be applied to more than one color component separately, or to more than one color component together.
[0147]
[0169] The techniques described above may be implemented as computer software using computer readable instructions and may be physically stored on one or more computer readable media. For example, Figure 20 illustrates a computer system (2600) suitable for implementing certain embodiments of the disclosed subject matter.
[0148]
[0170] Computer software may be coded using any suitable machine code or computer language that may be subject to assembly, compilation, linking, or similar mechanisms to produce code that contains instructions that may be executed directly by one or more computer central processing units (CPUs), graphics processing units (GPUs), etc., or instructions that may be executed via interpretation, microcode execution, etc.
[0149]
[0171] The instructions may be executed on various types of computers or components thereof, including, for example, personal computers, tablet computers, servers, smart phones, gaming devices, Internet of Things devices, etc.
[0150]
[0172] 20 for the computer system (2600) are exemplary in nature and are not intended to suggest any limitations on 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 (2600).
[0151]
[0173] The computer system (2600) may include certain human interface input devices that may be responsive to input by one or more human users, for example, via tactile input (e.g., keystrokes, swipes, data glove movements), auditory input (e.g., voice, clapping), visual input (e.g., gestures), or 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).
[0152]
[0174] The input human interface devices may include one or more of (although only one of each is depicted) a keyboard (2601), a mouse (2602), a trackpad (2603), a touch screen (2610), a data glove (not shown), a joystick (2605), a microphone (2606), a scanner (2607), and a camera (2608).
[0153]
[0175] The computer system (2600) may also include certain human interface output devices that may stimulate one or more of the senses of a human user, 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 (2610), data gloves (not shown), joystick (2605), although there may be haptic feedback devices that do not serve as input devices), auditory output devices (e.g., speakers (2609), headphones (not shown)), visual output devices (e.g., screens (2610), including CRT screens, LCD screens, plasma screens, OLED screens, each with or without touch screen input capability, each with or without haptic feedback capability, some of which may be capable of outputting two-dimensional visual output, three or more dimensional output by means such as stereoscopic output; virtual reality glasses (not shown), holographic displays, and smoke tanks (not shown)), and printers (not shown).
[0154]
[0176] The computer system (2600) may also include human accessible storage devices and their associated media, such as optical media, including CD / DVD ROM / RW (2620) with associated media such as CD / DVDs (2621), thumb drives (2622), removable hard drives or solid state drives (2623), legacy magnetic media (not shown), such as tapes and floppy disks (not shown), and specialized ROM / ASIC / PLD based devices such as security dongles (not shown).
[0155]
[0177] Those skilled in the art will also understand that the term "computer-readable medium" as used in connection with the subject matter disclosed herein does not encompass transmission media, carrier waves, or other transitional signals.
[0156]
[0178] The computer system (2600) may also include interfaces (2654) to one or more communications networks (2655). The networks may be, for example, wireless, wired, or optical. The networks may further be local, wide area, metropolitan, vehicle industrial, real time, delay tolerant, etc. Examples of networks include Ethernet, wireless LANs, cellular networks (including GSM, 3G, 4G, 5G, LTE, etc.), TV wired or wireless wide area digital networks (including cable TV, satellite TV, and terrestrial TV), vehicle industrial including CANBus, etc. Certain networks typically require an external network interface adapter that is attached to a particular general-purpose data port or peripheral bus (2649) (e.g., a USB port on the computer system (2600)); others are typically integrated into the core of the computer system (2600) by attaching to a system bus as described below (e.g., an Ethernet interface is integrated in a PC computer system, a cellular network interface is integrated in a smartphone computer system). Using any of these networks, the computer system (2600) can communicate with other entities. Such communications can be one-way receive only (e.g., broadcast television), one-way transmit only (e.g., CANbus to certain CANbus devices), or bi-directional, such as to other computer systems using local or wide area digital networks. Specific protocols and protocol stacks can be used with each of these networks and network interfaces, as described above.
[0157]
[0179] The aforementioned human interface devices, human accessible storage devices, and network interfaces may be attached to a core (2640) of the computer system (2600).
[0158]
[0180] The core (2640) may include one or more central processing units (CPUs) (2641), graphics processing units (GPUs) (2642), specialized programmable processing devices in the form of field programmable gate areas (FPGAs) (2643), task specific hardware accelerators (2644), graphics adapters (2650), etc. These devices may be connected via a system bus (2648) along with read only memory (ROM) (2645), random access memory (2646), and internal mass storage devices (e.g., internal non-user accessible hard drives, SSDs, etc.) (2647). In some computer systems, the system bus (2648) may be accessible in the form of one or more physical plugs to allow expansion with additional CPUs, GPUs, etc. Peripheral devices may be attached directly to the core's system bus (2648) or via a peripheral bus (2649). In one example, a screen (2610) may be connected to a graphics adapter (2650). Peripheral bus architectures include PCI, USB, and the like.
[0159]
[0181] The CPU (2641), GPU (2642), FPGA (2643), and accelerator (2644) may combine to execute certain instructions that may constitute the aforementioned computer code. The computer code may be stored in a ROM (2645) or a RAM (2646). Temporary data may be stored in the RAM (2646), while persistent data may be stored, for example, in an internal mass storage (2647). Fast storage and retrieval from any memory device may be made possible by utilizing a cache memory, which may be closely associated with one or more of the CPU (2641), GPU (2642), mass storage (2647), ROM (2645), RAM (2646), etc.
[0160]
[0182] The computer-readable medium can have computer code thereon for performing various computer-implemented operations. The medium and computer code can be specially designed and constructed for the purposes of the present disclosure, or they can be of the kind well known and available to those having skill in the computer software arts.
[0161]
[0183] As a non-limiting example, a computer system having the architecture (2600), and in particular the core (2640), as a result of a processor (including a CPU, GPU, FPGA, accelerator, etc.), can provide the functionality to execute software embodied in one or more tangible computer-readable media. Such computer-readable media can be media associated with user-accessible mass storage as described above, as well as specific storage of the core (2640) of a non-transitory nature, such as mass storage (2647) within the core or ROM (2645). Software implementing various embodiments of the present disclosure can be stored in such devices and executed by the core (2640). The computer-readable media can include one or more memory devices or chips, depending on the particular needs. The software can cause the core (2640) and in particular the processor therein (including a CPU, GPU, FPGA, etc.) to execute certain processes or certain parts of certain processes described herein, including defining data structures stored in RAM (2646) and modifying such data structures according to processes defined by the software. Additionally or alternatively, a computer system may provide functionality as a result of logic hardwired or otherwise embedded in circuitry (e.g., accelerator (2644)) that may execute in place of or in conjunction with software to perform particular processes or portions of particular processes described herein. References to software include logic, and vice versa, where appropriate. References to computer-readable media may include circuitry (such as an integrated circuit (IC)) that stores software for execution, circuitry embodying logic for execution, or both, as appropriate. The present disclosure encompasses any appropriate combination of hardware and software.
[0162]
[0184] Although a particular invention has been described with reference to exemplary embodiments, this description is not intended to be limiting. Various modifications of the exemplary and additional embodiments of the present invention will be apparent to those skilled in the art from this description. Those skilled in the art will readily appreciate that these and various other modifications may be made to the exemplary embodiments illustrated and described herein without departing from the spirit and scope of the present invention. It is therefore contemplated that the appended claims will cover any such modifications and alternative embodiments. Certain proportions in the figures may be exaggerated, while other proportions may be minimized. Thus, the present disclosure and drawings should be interpreted as illustrative rather than limiting.
[0163]
[0185] Additional Notes (Appendix 1) 1. A method for intra prediction of multiple reference lines in video decoding, comprising: receiving, by a device including a memory storing instructions and a processor in communication with the memory, a video bitstream to be coded for a current block; The device extracting parameters from the coded video bitstream, the parameters indicating one non-adjacent reference line for intra prediction in the current block; The device partitions the current block to obtain a plurality of sub-blocks; and in response to a sub-block in the plurality of sub-blocks being located at a boundary of the current block, the device using an upper adjacent reference line as a value for all upper non-adjacent reference lines for the sub-block; The method includes:
[0164] (Appendix 2) 2. The method of claim 1, further comprising the step of the device using a left adjacent reference line for the sub-block.
[0165] (Appendix 3) 2. The method of claim 1, wherein the current block comprises at least one of a super block, a largest coding block, a coding tree block (CTB), a largest coding unit (LCU), and a predetermined block of a predetermined size.
[0166] (Appendix 4) 2. The method of claim 1, wherein the boundary of the current block includes one of a top boundary of the current block, a left boundary of the current block, or both the left and top boundaries of the current block.
[0167] (Appendix 5) 2. The method of claim 1, wherein the step of using an adjacent reference line above as a value for all non-adjacent reference lines above for the sub-block comprises: copying samples from the adjacent reference line above to all other non-adjacent reference lines above.
[0168] (Appendix 6) 2. The method of claim 1, further comprising the device partitioning the sub-block to obtain a plurality of transform blocks.
[0169] (Appendix 7) The method according to any one of claims 1 to 6, comprising: In response to a first transform block in the plurality of transform blocks being located at an upper boundary of the sub-block, the device uses the upper adjacent reference line as a value for all non-adjacent reference lines above the first transform block; and in response to a second transformation block in the plurality of transformation blocks not being located at an upper boundary of the sub-block, the device using a reference line indicated by the parameter for the second transformation block; The method further comprises: (Appendix 8) 13. An apparatus for intra prediction of multiple reference lines in video decoding, comprising: a memory for storing instructions; and a processor in communication with the memory; When the processor executes the instructions, the processor causes the device to: receiving a video bitstream to be coded for a current block; extracting parameters from the video bitstream to be coded, the parameters indicating one non-adjacent reference line for intra prediction in the current block; partitioning the current block to obtain a plurality of sub-blocks; and responsive to a sub-block in the plurality of sub-blocks being located at a boundary of the current block, using an upper adjacent reference line as a value for all upper non-adjacent reference lines for the sub-block; The apparatus is configured to cause
[0170] (Appendix 9) 9. The apparatus of claim 8, wherein when the processor executes the instructions, the processor causes the apparatus to: using a left adjacent reference line for said sub-block The apparatus is further configured to cause
[0171] (Appendix 10) 9. The apparatus of claim 8, wherein the current block includes at least one of a super block, a largest coding block, a coding tree block (CTB), a largest coding unit (LCU), and a predetermined block of a predetermined size.
[0172] (Appendix 11) 9. The apparatus of claim 8, wherein the boundary of the current block includes one of a top boundary of the current block, a left boundary of the current block, or both a left and top boundary of the current block.
[0173] (Appendix 12) 9. The apparatus of claim 8, when the processor is configured to cause the apparatus to perform the step of using an adjacent reference line above as a value for all non-adjacent reference lines above for the sub-block, the processor further comprising: copying samples from said adjacent reference line above to all other non-adjacent reference lines above. The apparatus is configured to cause
[0174] (Appendix 13) 9. The apparatus of claim 8, wherein when the processor executes the instructions, the processor causes the apparatus to: partitioning the sub-block to obtain a plurality of transformation blocks. The apparatus is further configured to:
[0175] (Appendix 14) In the apparatus according to any one of claims 8-13, when the processor executes the instructions, the processor causes the apparatus to: In response to a first transformation block in the plurality of transformation blocks being located at an upper boundary of the sub-block, using the upper adjacent reference line as a value for all non-adjacent reference lines above the first transformation block; and responsive to a second transformation block in the plurality of transformation blocks not being located at an upper boundary of the sub-block, using a reference line indicated by the parameter for the second transformation block; The apparatus is further configured to:
[0176] (Appendix 15) A non-transitory computer-readable storage medium storing instructions, which when executed by a processor, cause the processor to: receiving a video bitstream to be coded for a current block; extracting parameters from the video bitstream to be coded, the parameters indicating one non-adjacent reference line for intra prediction in the current block; partitioning the current block to obtain a plurality of sub-blocks; and responsive to a sub-block in the plurality of sub-blocks being located at a boundary of the current block, using an upper adjacent reference line as a value for all upper non-adjacent reference lines for the sub-block; 23. A non-transitory computer-readable storage medium configured to cause
[0177] (Appendix 16) 16. The non-transitory computer-readable storage medium of claim 15, wherein the instructions, when executed by the processor, cause the processor to: using a left adjacent reference line for said sub-block The storage medium is further configured to cause
[0178] (Appendix 17) 16. The non-transitory computer-readable storage medium of claim 15, wherein the current block comprises at least one of a super block, a largest coding block, a coding tree block (CTB), a largest coding unit (LCU), and a predefined block of a predefined size. (Appendix 18) 16. The non-transitory computer-readable storage medium of claim 15, wherein the boundary of the current block includes one of a top boundary of the current block, a left boundary of the current block, or both a left and a top boundary of the current block.
[0179] (Appendix 19) 16. The non-transitory computer-readable storage medium of claim 15, when the instructions are configured to cause the processor to perform the step of using an adjacent reference line above as a value for all non-adjacent reference lines above for the sub-block, the instructions further causing the processor to: copying samples from said adjacent reference line above to all other non-adjacent reference lines above. A storage medium configured to cause
[0180] (Appendix 20) 16. The non-transitory computer-readable storage medium of claim 15, wherein the instructions, when executed by the processor, cause the processor to: partitioning the sub-block to obtain a plurality of transformation blocks. The storage medium is further configured to cause
Claims
[Claim 1] 1. A method for intra prediction of multiple reference lines in video decoding, comprising: receiving, by a device including a memory storing instructions and a processor in communication with the memory, a coded video bitstream for a current block; The device extracting parameters from the coded video bitstream, the parameters indicating one non-adjacent reference line for intra prediction in the current block; The device partitions the current block to obtain a plurality of sub-blocks; and in response to a sub-block in the plurality of sub-blocks being located at a boundary of the current block, the device using an adjacent reference line above as a value for all non-adjacent reference lines above for the sub-block; The method includes:
Citation Information
Patent Citations
Intra-picture prediction using non-adjacent reference lines of sample values
US20190141318A1
Image encoding / decoding method and device, and recording medium storing bitstream
WO2020226359A1
