Improvement for intra mode coding
By dividing intra modes into sets and using set and mode indices for intra-prediction mode determination, the method addresses inefficiencies in existing video coding techniques, enhancing compression efficiency through reduced bit usage.
Patent Information
- Application Number
- JP2024099241
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-12-29
- Filing Date
- 2024-06-20
- Publication Date
- 2024-08-16
- Estimated Expiration
- 2042-01-18
AI Technical Summary
Existing video coding techniques face inefficiencies in intra-prediction mode coding, particularly in managing the large number of possible intra-prediction directions, which leads to increased bit usage for less likely directions, thereby reducing compression efficiency.
The method involves dividing intra modes into multiple sets based on neighboring block modes and using a set index and mode index to determine the intra-prediction mode, optimizing the signaling process to reduce bit usage.
This approach enhances video coding efficiency by reducing the number of bits required for intra-prediction mode signaling, improving compression performance.
Smart Images

Figure 2024111184000001
Abstract
Description
[Technical field]
[0001] [Related Applications] This application is based on and claims the benefit of priority to U.S. Provisional Application No. 63 / 222,376, filed July 15, 2021, and U.S. Patent Application No. 17 / 564,607, filed December 29, 2021, both of which are incorporated by reference in their entireties into this application.
[0002] [Technical field] The present disclosure relates to video coding and / or decoding techniques, and more particularly to improved intra-prediction mode coding design and signaling. [Background technology]
[0003] This background discussion provided herein is intended to generally present the context of the present disclosure. Work of the inventors named in this application, to the extent that their work is described in this background section, and aspects of this description that may not otherwise qualify as prior art at the time of the filing of this application, are not admitted, either explicitly or implicitly, as prior art to the present disclosure.
[0004] Video 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 (alternatively called frame rate), for example, a picture rate of 60 pictures per second or 60 frames per second. Uncompressed video has specific bit rate requirements for streaming or data processing. For example, a video with a pixel resolution of 1920x1080, a frame rate of 60 frames per second, and 4:2:0 chroma subsampling with 8 bits per pixel per color channel requires a bandwidth approaching 1.5 Gbit / s. One hour of such video requires more than 600 Gbytes of storage space.
[0005] One goal of video coding and decoding is to reduce redundancy in an uncompressed input video signal through compression. Compression can help reduce the aforementioned bandwidth and / or storage space requirements, in some cases by more than two orders of magnitude. Both lossless and lossy compression, as well as combinations thereof, can be used. Lossless compression refers to techniques that allow an exact copy of the original signal to be reconstructed from the compressed original signal through a decoding process. Lossy compression refers to a coding / decoding process in which the original video information is not fully preserved during coding and is not fully recoverable during decoding. When using lossy compression, the reconstructed signal may not be identical to the original signal, but the distortion between the original and reconstructed signals is made small enough that the reconstructed signal is useful for the intended application despite some information loss. For video, lossy compression is widely used in many applications. The amount of distortion that is tolerated depends on the application. For example, users of a particular consumer video streaming application may tolerate higher distortion than users 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: higher tolerable distortion generally allows for coding algorithms that result in higher loss and higher compression ratios.
[0006] Video encoders and decoders can utilize techniques from a number of broad categories and steps, including, for example, motion compensation, Fourier transform, quantization, and entropy coding.
[0007] Video codec techniques can include a technique known as intra-coding. In intra-coding, sample values are represented without reference to samples or other data from previously reconstructed reference pictures. In some video codecs, a picture is spatially divided into blocks of samples. If all blocks of samples are coded in intra mode, the picture can be called an intra-picture. Intra-pictures and their derivatives, such as independent decoder refresh pictures, can be used to reset the decoder state and thus can be used as the first picture in a coded video bitstream and video session or as a still image. The samples after intra prediction can then be subjected to a transform to the frequency domain, and the transform coefficients so generated can be quantized before entropy coding. Intra-prediction refers to a technique that minimizes the sample values in the pre-transform domain. In some cases, the smaller the DC value and the smaller the AC coefficients after the transform, the fewer bits are required for a given quantization step size to represent the block after entropy coding.
[0008] Traditional intra-coding, 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 blocks based on surrounding sample data and / or metadata obtained during spatially neighboring encoding and / or decoding, and precede the block of data to be intra-coded or decoded in decoding order. Such techniques are referred to below as "intra-prediction" techniques. It should be noted that at least in some cases, intra-prediction uses only reference data from the current picture being reconstructed, and not from other reference pictures.
[0009] There may be various forms of intra prediction. If more than one such technique is available in a given video coding technique, the technique used may be referred to as an intra prediction mode. One or more intra prediction modes may be provided in a particular codec. In certain cases, a mode may have sub-modes and / or may be associated with various parameters, and the mode / sub-mode information and intra coding parameters of a block of video may be coded individually or jointly in a mode codeword. Which codeword to use for a given mode, sub-mode and / or parameter combination may affect the coding efficiency gain through intra prediction, as well as the entropy coding technique used to convert the codeword into a bitstream.
[0010] Certain modes of intra prediction were introduced in H.264, refined in H.265, and further refined in newer coding techniques such as the Joint Exploration Model (JEM), Versatile Video Coding (VVC), and Benchmark Set (BMS). In general, in intra prediction, a predictor block can be formed using neighboring sample values that become available. For example, available values of a particular set of neighboring samples along a particular direction and / or line can be copied into the predictor block. The reference to the direction used can be coded in the bitstream or may itself be predicted.
[0011] Referring to FIG. 1A, shown at the bottom right is a subset of the nine predictor directions specified in the 33 possible intra predictor directions of H.265 (corresponding to the 33 angle modes of the 35 intra modes specified in H.265). The point (101) where the arrows converge represents the sample to be predicted. The arrows represent the direction in which the sample at 101 is predicted using neighboring samples. For example, arrow (102) indicates that sample (101) is predicted from neighboring sample(s) to the top right, at an angle of 45 degrees from the horizontal. Similarly, arrow (103) indicates that sample (101) is predicted from neighboring sample(s) to the bottom left of sample (101), at an angle of 22.5 degrees from the horizontal.
[0012] 1A, a square block (104) of 4×4 samples is depicted at the top left (shown in bold dashed lines). The square block (104) contains 16 samples, each labeled with an “S” and its position in the Y dimension (e.g., row index) and its position in the X dimension (e.g., column index). For example, sample S21 is the second sample (from the top) in the Y dimension and the first sample (from the left) in the X dimension. Similarly, sample S44 is the fourth sample in the block (104) in both the Y and X dimensions. Since the block is 4×4 samples in size, S44 is at the bottom right. Additionally, an example reference sample is shown that follows a similar numbering scheme. The reference sample is labeled R and its Y position (e.g., row index) and X position (column index) relative to the block (104). In both H.264 and H.265, predicted samples that neighbor the block being reconstructed are used.
[0013] Intra-picture prediction of block 104 may start by copying reference sample values from neighboring samples according to a signaled prediction direction. For example, assume that the coded video bitstream includes signaling for this block 104 indicating a prediction direction of arrow (102). That is, the samples are predicted from the prediction sample(s) at an angle of 45 degrees from the horizontal to the upper right. In such a case, samples S41, S32, S23, and S14 are predicted from the same reference sample R05. Then, sample S44 is predicted from reference sample R08.
[0014] In certain cases, especially when the orientation is not divisible by 45 degrees, the values of multiple reference samples may be combined, for example by interpolation, to calculate the reference sample.
[0015] As video coding technology continues to develop, the number of possible directions has increased. In H.264 (2003), for example, nine different directions are available for intra prediction. This increases to 33 in H.265 (2013), and JEM / VVC / BMS can support up to 65 directions at the time of this disclosure. Experimental studies have been conducted to help identify optimal intra prediction directions, and specific techniques in entropy coding are used to encode those optimal directions with a small number of bits, accepting a certain bit penalty for the direction. Furthermore, the direction itself may be predictable from neighboring directions used in intra prediction of decoded neighboring blocks.
[0016] FIG. 1B shows a schematic diagram (180) depicting 65 intra prediction directions according to JEM to illustrate the increasing number of prediction directions in different encoding techniques developed over time.
[0017] The method of mapping the bits representing the intra-prediction direction to a prediction direction in the coded video bitstream may vary from one video coding technique to another; for example, it can range from a simple direct mapping from prediction direction to intra-prediction mode to complex adaptation schemes involving codewords, most probable modes, and similar techniques. In all cases, however, there may be certain directions for intra-prediction that are statistically less likely to occur in the video content than certain other directions. Since the goal of video compression is to reduce redundancy, in a well-designed video coding technique, such less likely methods may be represented by a greater number of bits than more likely directions.
[0018] Inter-picture prediction, or inter-prediction, may be based on motion compensation. In motion compensation, sample data from a previously reconstructed picture or a part thereof (reference picture) may be used for prediction of a newly reconstructed picture or a part thereof (e.g., a block) after being spatially shifted in a direction indicated by a motion vector (hereinafter, MV). In some cases, the reference picture may be the same as the picture currently being reconstructed. The MV may have two dimensions, X and Y, or three dimensions, with the third dimension being an indication of the reference picture to be used (similar to the temporal dimension).
[0019] In some video compression techniques, a current MV applicable to a region of sample data can be predicted from other MVs, e.g., other MVs related to other regions of sample data that are spatially adjacent to the region being reconstructed and that precede the current MV in decoding order. Doing so can significantly reduce the overall amount of data required for coding the MV by relying on removing redundancy of correlated MVs, thereby increasing compression efficiency. MV prediction can work effectively because, for example, when coding an input video signal derived from a camera (known as natural video), there is a statistical certainty that regions larger than the region to which a single MV is applicable move in a similar direction in the video sequence and thus can be predicted, in certain cases, using similar motion vectors derived from MVs of neighboring regions. This does not entail that the actual MV for a given region is similar or identical to the MV predicted from the surrounding MVs. Such MVs may be represented with fewer bits after entropy coding than would be used if the MV were directly coded instead of predicted from neighboring MV(s). In some cases, MV prediction can be an example of lossless compression of a signal (i.e., MV) derived from the original signal (i.e., sample stream). In other cases, the MV prediction itself may be lossy, for example due to rounding errors in computing the predictor from several surrounding MVs.
[0020] H.265 / HEVC (ITU-T Rec. H.265, "High Efficiency Video Coding", December 2016) describes various MV prediction mechanisms. Among the many MV prediction mechanisms specified by H.265, the one described below is a technique hereafter called "spatial merge".
[0021] Specifically, referring to FIG. 2, a current block (201) contains samples that the encoder found during the motion search process to be predictable from a previous block of the same size but spatially shifted. Instead of coding its 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, and B0, B1, B2 (202-206, respectively). In H.265, MV prediction can use predictors from the same reference picture as the neighboring blocks use. Summary of the Invention
[0022] This disclosure describes various embodiments of methods, apparatus, and computer-readable storage media for video encoding and / or decoding.
[0023] According to one aspect, an embodiment of the present disclosure provides a method for intra-prediction mode coding in video decoding. The method includes receiving, by a device, a coded video bitstream of a block. The device includes a memory storing instructions and a processor in communication with the memory. The method also includes: partitioning, by the device, a list of intra-modes into a plurality of intra-mode sets of the block based on mode information of each intra-mode in the list, the list of intra-modes corresponding to an intra-prediction mode of at least one neighboring block of the block; extracting, by the device, from the coded video bitstream, a set index indicating an intra-mode set from the plurality of intra-mode sets; extracting, by the device, from the coded video bitstream, a mode index indicating an intra-prediction mode from the intra-mode set; and determining, by the device, an intra-prediction mode of the block based on the set index and the mode index.
[0024] According to another aspect, an embodiment of the present disclosure provides an apparatus for video encoding and / or decoding, the apparatus including: a memory storing instructions; and a processor in communication with the memory. 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] In another aspect, an embodiment of the present disclosure provides a non-transitory computer-readable medium storing instructions that, when executed by a computer for video decoding and / or encoding, cause the computer to perform the above-described method for video decoding and / or encoding.
[0026] These and other aspects and their implementations are described in more detail in the drawings, description, and claims. [Brief description of the drawings]
[0027] Further features, nature and various advantages of the disclosed subject matter will become more apparent from the following detailed description and the accompanying drawings.
[0028] [Figure 1A] 1 shows a schematic diagram of an example subset of intra-prediction directional modes.
[0029] [Figure 1B] 1 shows an illustrative diagram of an exemplary intra-prediction direction.
[0030] [Diagram 2] 1 illustrates a schematic diagram of a current block and its surrounding spatial merging candidates for motion vector prediction in an example.
[0031] [Diagram 3] 1 shows a simplified block diagram schematic of a communication system (300) according to an example embodiment.
[0032] [Figure 4] 4 shows a simplified block diagram schematic of a communication system (400) according to an example embodiment.
[0033] [Diagram 5] FIG. 2 shows a schematic diagram of a simplified block diagram of a video decoder according to an example embodiment.
[0034] [Figure 6] 1 shows a schematic diagram of a simplified block diagram of a video encoder according to an example embodiment;
[0035] [Figure 7] 4 shows a block diagram of a video encoder according to another example embodiment.
[0036] [Figure 8] 4 shows a block diagram of a video decoder according to another example embodiment.
[0037] [Figure 9] 1 illustrates directional intra-prediction modes according to an exemplary embodiment of the present disclosure.
[0038] [Figure 10] 1 illustrates a non-directional intra-prediction mode according to an exemplary embodiment of the present disclosure.
[0039] [Figure 11] 1 illustrates a recursive intra-prediction mode according to an exemplary embodiment of the present disclosure.
[0040] [Figure 12] 1 illustrates various baseline-based intra-prediction schemes according to exemplary embodiments of the present disclosure.
[0041] [Figure 13] 1 illustrates offset-based refinement for intra prediction according to an exemplary embodiment of the present disclosure.
[0042] [Figure 14A] 13 shows another diagram of offset-based refinement for intra prediction according to an exemplary embodiment of the present disclosure.
[0043] [Figure 14B] 13 shows another diagram of offset-based refinement for intra prediction according to an exemplary embodiment of the present disclosure.
[0044] [Figure 15] 1 illustrates a flowchart of a method according to an exemplary embodiment of the present disclosure.
[0045] [Figure 16] 1 shows a schematic diagram of a computer system according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0046] The present invention will now be described in detail with reference to the accompanying drawings, which form a part hereof and which show, by way of example, specific embodiments. It should be noted, however, that the present invention may be embodied in many different forms, and thus it is not intended that the subject matter recited or claimed 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, an apparatus, a component, or a system. Thus, embodiments of the present invention may take the form of, for example, hardware, software, firmware, or any combination thereof.
[0047] Throughout the specification and claims, terms may have a nuance suggested or implied in the context beyond the explicitly stated meaning. The phrases "in an 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 an implementation" or "in some implementations" as used herein do not necessarily refer to the same implementation, and the phrases "in another implementation" or "in other implementations" as used herein do not necessarily refer to different implementations. For example, the subject matter recited in the claims is intended to include combinations of example embodiments / implementations in whole or in part.
[0048] Generally, terms may be understood, at least in part, from their use in context. For example, terms such as "and," "or," and "and / or" as used herein may include various 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 inclusive sense, as well as A, B, or C, which are used herein in an exclusive sense. In addition, 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" may be understood to convey a singular use or to convey a plural use, depending, at least in part, on the context. Additionally, the terms "based on" or "determined by" may be understood as not necessarily intended to convey an exclusive set of elements, but instead may allow for the existence of additional elements not necessarily explicitly recited, again depending at least in part on the context.
[0049] FIG. 3 illustrates a simplified block diagram of a communication system (300) according to one embodiment of the present disclosure. The communication system (300) includes a plurality of terminal devices that can communicate with each other, for example, via a network (350). For example, the communication system (300) includes a first pair of terminal devices (310) and (320) interconnected via the network (350). In the example of FIG. 3, the first pair of terminal devices (310) and (320) may perform unidirectional transmission of data. For example, the terminal device (310) may 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) may receive the coded video data from the network (350), decode the coded video data to recover the video picture, and display the video picture according to the recovered video data. The one-way data transmission may be implemented in a media service application, etc.
[0050] In another example, the communication system (300) includes a second pair of terminal devices (330) and (340) performing bidirectional transmission of coded video data, which may be implemented, for example, in a video conferencing application. For the bidirectional transmission of data, in one 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 receive coded video data transmitted by the other of the terminal devices (330) and (340), decode the coded video data to reconstruct the video pictures, and display the video pictures on an accessible display device in accordance with the reconstructed video data.
[0051] In the example of FIG. 3, the terminal devices (310), (320), (330), and (340) may be implemented as a server, a personal computer, and a smartphone, although the applicability of the principles underlying the present disclosure may not be so limited. The embodiments of the present disclosure may be implemented in desktop computers, laptop computers, tablet computers, media players, wearable computers, dedicated video conferencing equipment, and the like. The network (350) represents any number or type of network that conveys coded video data between the terminal devices (310), (320), (330), and (340), including, for example, wired (wired) and / or wireless communication networks. The communication network (350) may exchange data in circuit-switched, packet-switched, and / or other types of channels. Exemplary networks include telecommunications networks, local area networks, wide area networks, and / or the Internet. For purposes of discussion herein, the architecture and topology of the network (350) may not be important to the operation of the present disclosure unless explicitly described herein.
[0052] 4 shows an arrangement of video encoders and video decoders in a video streaming environment as an example for application of the disclosed subject matter. The disclosed subject matter may be equally applicable to other video-enabled applications including, for example, video conferencing, digital TV broadcasting, gaming, virtual reality, storage of compressed video on digital media including CDs, DVDs, memory sticks, etc.
[0053] The streaming system may include a video source (401), e.g., a digital camera, and may include a video capture subsystem (413) that generates, e.g., a stream of uncompressed video pictures or images (402). In one example, the stream of video pictures (402) includes samples recorded by the digital camera of the video source (401). The stream of video pictures (402), depicted as a bold line to emphasize its high data volume compared to the encoded video data (404) (or 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 achieve aspects of the disclosed subject matter, as described in more detail below. The encoded video data (404) (or encoded video bitstream), depicted as a thin line to emphasize its lower data volume compared to the uncompressed stream of video pictures (402), can be stored in the streaming server (405) or directly in a downstream video device (not shown) for future use. 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 the electronic device (430). The video decoder (410) decodes the input copy of the encoded video data (407) to generate an output stream of video pictures (411), which is uncompressed and can be rendered on a display (412) (e.g., a display screen) or other rendering device (not shown). The video decoder 410 may be configured to perform some or all of the various functions described in this disclosure.In some streaming systems, the encoded video data (404), (407), and (409) (e.g., video bitstreams) may be encoded according to 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.
[0054] It is noted that electronic devices 420 and 430 can include other components (not shown). For example, electronic device 420 can include a video decoder (not shown), and electronic device 430 can also include a video encoder (not shown).
[0055] 5 shows a block diagram of a video decoder (510) according to any of the following embodiments of the present disclosure. The video decoder (510) can be included in an electronic device (530). The electronic device (530) can include a receiver (531) (e.g., a receiving circuit). The video decoder (510) can be used in place of the video decoder (310) in the example of FIG. 4.
[0056] The receiver (531) may receive one or more coded video sequences to be decoded by the video decoder (510). In the same or another embodiment, one coded video sequence may be decoded at a time, and the decoding of each coded video sequence is independent of the decoding of the other coded video sequences. Each video sequence may be associated with multiple video frames or images. The coded video sequences may be received from a channel (501), which may be a storage device that stores the encoded video data or a hardware / software link to a streaming source that transmits the encoded video data. The receiver (531) may receive the encoded video data together with other data, such as coded audio data and / or auxiliary data streams, which may be forwarded through respective processing circuits (not shown). The receiver (531) may separate the coded video sequences from other data. To combat network jitter, a buffer memory (515) may be located between the receiver (531) and the entropy decoder / parser (520) (hereinafter the "parser"). In certain applications, the buffer memory (515) may be implemented as part of the video decoder (510). In other applications, it may be separate (not shown) outside the video decoder (510). In still other applications, there may be a buffer memory (not shown) outside the video decoder (510), for example to combat network jitter, and there may be another additional buffer memory (515) inside the video decoder (510), for example to handle playback timing. If the receiver (531) is receiving data from a store / forward device of sufficient bandwidth and controllability, or from an isochronous network, the buffer memory (515) may not be needed or may be small.For use with best-effort packet networks such as the Internet, a 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, outside the video decoder (510) in an operating system or similar element (not shown).
[0057] The video decoder (510) may include a parser (520) for reconstructing symbols (521) from the coded video sequence. These categories of symbols include information used to manage the operation of the video decoder (510) and potentially information for controlling a rendering device such as a display device (512) (e.g., a display screen). The rendering device 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 control information for the rendering device(s) may be in the form of Supplementary Enhancement Information (SEI messages) or Video Usability Information (VUI) parameter set fragments (not shown). The parser (520) may parse / entropy decode the coded video sequence received by the parser. The entropy coding of the coded video sequence may follow a video coding technique or standard and may follow various principles, including variable length coding, Huffman coding, arithmetic coding with or without context sensitivity, etc. The parser (520) may extract from the coded video sequence a set of subgroup parameters for at least one of the subgroups of pixels in the video decoder based on at least one parameter corresponding to the subgroup. The subgroups may include Group of Pictures (GOPs), pictures, tiles, slices, macroblocks, Coding Units (CUs), blocks, Transform Units (TUs), Prediction Units (PUs), etc. The parser (520) may also extract information from the coded video sequence, such as transform coefficients (e.g., Fourier transform coefficients), quantizer parameter values, motion vectors, etc.
[0058] The parser (520) may perform an entropy decoding / parsing operation on the video sequence received from the buffer memory (515), thereby generating symbols (521).
[0059] The reconstruction of the symbols (521) may involve several different processing or functional units, depending on the type of coded video picture or portions thereof (e.g., inter and intra picture, inter and intra block), and other factors. The units involved and how they are involved may be controlled by subgroup control information parsed by the parser (520) from the coded video sequence. The flow of such subgroup control information between the parser (520) and several of the processing or functional units described below is not depicted for the sake of simplicity.
[0060] In addition to the functional blocks already mentioned, the video decoder (510) can be conceptually divided into several functional units, as described below. In a practical implementation operating under commercial constraints, many of these functional units will interact closely with each other and may be at least partially integrated with each other. However, for purposes of clearly describing the various functions of the disclosed subject matter, the following disclosure adopts a conceptual breakdown into functional units.
[0061] The first unit may include a scalar / inverse transform unit (551), which may receive quantized transform coefficients from the parser (520) along with control information including information indicating which type of inverse transform to use, block size, quantization coefficients / parameters, quantization scaling matrices, and states (521) as symbol(s). The scalar / inverse transform unit (551) may output a block containing sample values that can be input to an aggregator (555).
[0062] In some cases, the output samples of the scaler / inverse transform (551) may relate to intra-coded blocks, i.e., blocks that do not use prediction information from a previously reconstructed picture, but can use prediction information from a previously reconstructed portion of the current picture. Such prediction information may be provided by an intra-picture prediction unit (552). In some cases, the intra-picture prediction unit (552) may generate a block of the same size and shape as the block being reconstructed using surrounding block information already reconstructed and stored in the current picture buffer (558). The current picture buffer (558) may, for example, buffer the partially reconstructed current picture and / or the fully reconstructed current picture. In some implementations, the aggregator (555) may add, on a sample-by-sample basis, the prediction information generated by the intra-prediction unit (552) to the output sample information provided by the scaler / inverse transform unit (551).
[0063] In other cases, the output samples of the scalar / inverse transform unit (551) may relate to an inter-coded, potentially motion-compensated block. In such a case, the motion compensated prediction unit (553) may access the reference picture memory (557) to fetch samples used for inter-picture prediction. After motion compensating the fetched samples according to the symbol (521) for the block, these samples may be added by the aggregator (555) to the output of the scalar / inverse transform unit (the output of unit 551 may be referred to as a residual sample or residual signal) to generate output sample information. The address in the reference picture memory (557) from which the motion compensated prediction unit (553) fetches the prediction samples may be controlled by a motion vector available to the motion compensated prediction unit (553) in the form of the symbol (521). The symbol may have, for example, an X, a Y component (shift), and a reference picture component (time). Motion compensation may also include interpolation of sample values fetched from a reference picture memory (557) when sub-sample accurate motion vectors are used, and may also be associated with a motion vector prediction mechanism, etc.
[0064] 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 that are controlled by parameters contained in the coded video sequence (also called the coded video bitstream) and made available to the loop filter unit (556) as symbols (521) from the parser (520), but may also be responsive to meta-information obtained during decoding of previous portions (in decoding order) of the coded picture or coded video sequence, as well as to previously reconstructed loop filtered sample values. Several types of loop filters may be included as part of the loop filter unit 556 in various orders, as described below.
[0065] The output of the loop filter unit (556) can be a sample stream, which can be output to a rendering device (512) or can be stored in a reference picture memory (557) for use in future inter-picture prediction.
[0066] Once a coded picture is fully reconstructed, it can be used as a reference picture for future inter-picture prediction. For example, once a coded picture corresponding to a current picture is fully reconstructed and the coded picture is identified as a reference picture (e.g., by the parser (520)), the current picture buffer (558) can become part of the reference picture memory (557), and a fresh current picture buffer can be reallocated before starting the reconstruction of a subsequent coded picture.
[0067] The video decoder (510) may perform decoding operations according to a given video compression technique adopted in a standard such as ITU-T Recommendation H.265. The coded video sequence may be compliant with the syntax prescribed by the video compression technique or standard being used, in the sense that the coded video sequence conforms to both the syntax of the video compression technique or standard and the profile 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 available under that profile. To conform to a standard, the complexity of the coded video sequence may be within a range defined by a level of the video compression technique or standard. In some cases, the level constrains the maximum picture size, maximum frame rate, maximum reconstruction sample rate (e.g., measured in units of megasamples per second), maximum reference picture size, etc. The limits set by the level may be further constrained through a Hypothetical Reference Decoder (HRD) specification and metadata for HRD buffer management, possibly signaled in the coded video sequence.
[0068] 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(s). The additional data may be used by the video decoder (510) to properly decode the data and / or to more accurately reconstruct the original video data. The additional data may be in the form of, for example, temporal, spatial, or signal-to-noise ratio (SNR) enhancement layers, redundant slices, redundant pictures, forward error correction codes, etc.
[0069] 6 shows a block diagram of a video encoder (603) according to one embodiment of the present disclosure. The video encoder (603) may be included in an electronic device (620). The electronic device (620) may further include a transmitter (640) (e.g., a transmission circuit). The video encoder (603) may be used in place of the video encoder (403) in the example of FIG. 4.
[0070] The video encoder (603) may receive video samples from a video source (601) (which is not part of the electronic device (620) in the example of Figure 6) that may capture 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).
[0071] 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, XYZ, ...) and any suitable sampling structure (e.g., YCrCb 4:2:0, YCrCb 4:4:4). In a media service system, the video source (601) may be a storage device that can store pre-prepared video. In a video conferencing system, the video source (601) may be a camera that captures image information locally as a video sequence. The video data may be provided as a number of individual pictures or images that impart motion when viewed in sequence. The picture itself may be organized as a spatial array of pixels, each of which may contain one or more samples, depending on the sampling structure, color space, etc., being used. Those skilled in the art can easily understand the relationship between pixels and samples. The following description focuses on samples.
[0072] According to some example embodiments, the video encoder (603) may code and compress pictures of a source video sequence into a coded video sequence (643) in real time or under any other time constraint required by an application. Enforcing an appropriate coding rate constitutes one function of the controller (650). In some embodiments, the controller (650) may be operatively coupled to and control other functional units as described below. Such couplings are not depicted for the sake of brevity. Parameters set by the controller (650) may include parameters related to rate control (picture skip, quantizer, lambda value for rate-distortion optimization techniques, ...), picture size, group of pictures (GOP) layout, maximum motion vector search range, etc. The controller (650) may be configured to have other suitable functions for the video encoder (603) optimized for a particular system design.
[0073] In some example embodiments, the video encoder (603) may be configured to operate in a coding loop. As a drastically simplified explanation, in one example, the coding loop may include a source coder (630) (e.g., responsible for generating symbols, such as a symbol stream, based on an input picture to be coded and a reference picture(s)) and a (local) decoder (633) embedded in the video encoder (603). The decoder (633) reconstructs the symbols to generate sample data in a manner similar to that which a (remote) decoder would generate, even if the embedded decoder 633 processes a video stream coded by the source coder 630 without entropy coding (because the compression between the symbols and the coded video bitstream in entropy coding may be lossless in the video compression techniques considered in the disclosed subject matter). The reconstructed sample stream (sample data) is input to a reference picture memory (634). Since decoding of the symbol stream yields bit-accurate results regardless of the decoder location (local or remote), the contents of the reference picture memory (634) are also bit-accurate between the local and remote encoders. In other words, the prediction part of the encoder "sees" exactly the same sample values as the reference picture samples that the decoder "sees" when using prediction during decoding. This basic principle of reference picture synchrony (and the resulting drift when synchrony cannot be maintained, e.g., due to channel errors) is used to improve coding quality.
[0074] The operation of the "local" decoder (633) may be the same as the operation of a "remote" decoder, e.g., the video decoder (410), already described in detail above in connection with Figure 5. However, referring also briefly to Figure 5, because symbols are available and the encoding / decoding of symbols into a coded video sequence by the entropy coder (645) and parser (420) may be lossless, the entropy decoding portion of the video decoder (410), including the buffer memory (415) and parser (420), may not be fully implemented in the encoder's local decoder (633).
[0075] An observation that can be made at this point is that decoder techniques, except for parsing / entropy decoding, which may only exist in the decoder, may necessarily also need to exist in the corresponding encoder in substantially the same functional form. For this reason, the disclosed subject matter may focus on the operation of the decoder, which is related to the decoding part of the encoder. Thus, a description of the encoder techniques may be omitted, since they are the inverse of the decoder techniques described generically. Only in certain areas or aspects is a more detailed description of the encoder provided below.
[0076] In operation, in some example implementations, the source coder (630) 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 between pixel blocks of the input picture and pixel blocks of a reference picture(s) that may be selected as a predictive reference(s) for the input picture.
[0077] The local video decoder (633) may decode the coded video data of pictures that may be designated as reference pictures based on the symbols generated by the source coder (630). The operation of the coding engine (632) may advantageously be a lossy process. When the coded video data may be decoded in a video decoder (not shown in FIG. 6), the reconstructed video sequence may typically be a copy of the source video sequence with some errors. The local video decoder (633) may replicate the decoding process that may be performed on the reference pictures by the video decoder and store the reconstructed reference pictures in a reference picture cache (634). In this way, the video encoder (603) may locally store copies of reconstructed reference pictures that have common content (in the absence of transmission errors) as reconstructed reference pictures that would be obtained by a far-end (remote) video decoder.
[0078] The predictor (635) may perform a prediction search for the coding engine (632). That is, for a new picture to be coded, the predictor (635) may search the reference picture memory (634) for sample data (as candidate reference pixel blocks) or specific metadata, such as reference picture motion vectors, block shapes, etc., that may serve as suitable prediction references for the new picture. The predictor (635) may operate on a sample block-by-pixel block basis to find suitable prediction references. In some cases, as determined by the search results obtained by the predictor (635), the input picture may have prediction references drawn from multiple reference pictures stored in the reference picture memory (634).
[0079] 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.
[0080] The output of all of the above functional units may undergo entropy coding in an entropy coder (645), which converts the symbols produced by the various functional units into a coded video sequence by lossless compression of the symbols according to techniques such as Huffman coding, variable length coding, arithmetic coding, etc.
[0081] The transmitter (640) may buffer the coded video sequence generated by the entropy encoder (645) and prepare it for transmission over a communication channel (660), which may be a hardware / software link to a storage device that stores the encoded video data. The transmitter (640) may 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).
[0082] The controller (650) may manage the operation of the video encoder (603). During coding, the controller (650) may assign a coded picture type to each coded picture. The coded picture type may affect the coding technique that may be applied to each picture. For example, pictures may often be assigned as one of the following picture types:
[0083] An intra picture (I-picture) may be one that can be coded and decoded without using other pictures in a sequence as a source of prediction. Some video codecs allow different types of intra pictures, including, for example, Independent Decoder Refresh ("IDR") pictures. Those skilled in the art will recognize these variations of I-pictures and their respective uses and characteristics.
[0084] A predictive picture (P picture) may be 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.
[0085] Bidirectionally predicted pictures (B-pictures) may be those that can be coded and decoded using intra- or inter-prediction, which uses up to two motion vectors and reference indices to predict the sample values of each block. Similarly, multi-predictive pictures can use more than two reference pictures and associated metadata for the reconstruction of a single block.
[0086] A source picture may be typically spatially divided into multiple sample coding blocks (e.g., blocks of 4x4, 8x8, 4x8, or 16x16 samples, respectively) and coded block by block. Blocks may be predictively coded with reference to other (already coded) blocks, as determined by the coding assignment applied to each picture of the "blocks". For example, blocks of an I-picture may be non-predictively coded or predictively coded with reference to already coded blocks of the same picture (spatial or intra prediction). Pixel blocks of a P-picture may be predictively coded via spatial prediction or via temporal prediction with reference to one previously coded reference picture. Blocks of a B-picture may be predictively coded via spatial prediction or via temporal prediction with reference to one or two previously coded reference pictures. Source pictures or intermediate 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 described in more detail below.
[0087] The video encoder (603) may perform coding operations in accordance with a given video coding technique or standard, such as ITU-T Recommendation H.265. In its operations, the video encoder (603) may perform various compression operations, including predictive coding operations that exploit temporal and spatial redundancy in the input video sequence. The coded video data may therefore conform to a syntax specified by the video coding technique or standard used.
[0088] In some embodiments, the transmitter (640) may transmit additional data along with the encoded video. The source coder (630) may include such data as part of the coded video sequence. The additional data may include temporal / spatial / SNR enhancement layers, other forms of redundant data such as redundant pictures and slices, SEI messages, VUI parameter set fragments, etc.
[0089] A video may be captured as multiple source pictures (video pictures) in a temporal sequence. Intra-picture prediction (often abbreviated as intra-prediction) exploits spatial correlation in a given picture, while inter-picture prediction exploits correlation (temporal or other) between pictures. For example, a particular picture to be encoded / decoded, called a current picture, may be partitioned into blocks. If a block in the current picture is similar to a reference block in a previously coded and still buffered reference picture in the video, it may be coded by a vector called a motion vector. A motion vector points to a reference block in a reference picture, and may have a third dimension that identifies the reference picture if multiple reference pictures are used.
[0090] In some exemplary embodiments, bi-prediction techniques can 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, both of which precede the current picture in decoding order (but may be past or future, respectively, in display order) in the video, are used. A block in the current picture can be coded by a first motion vector that points to a first reference block in the first reference picture and a second motion vector that points to a second reference block in the second reference picture. A block can be jointly predicted by a combination of the first and second reference blocks.
[0091] Furthermore, to improve coding efficiency, merge mode techniques can be used in inter-picture prediction.
[0092] According to some example embodiments of the present disclosure, predictions such as inter-picture prediction and intra-picture prediction are performed on a block-by-block basis. For example, a picture in a sequence of video pictures is 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 includes three parallel coding tree blocks (CTBs), one luma CTB and two chroma CTBs. Each CTU may be recursively quadtree partitioned into one or more coding units (CUs). For example, a CTU of 64×64 pixels may be partitioned into one CU of 64×64 pixels or four CUs of 32×32 pixels. Each of one or more of the 32×32 blocks may be further partitioned into four CUs of 16×16 pixels. In some examples, each CU may be analyzed to determine a prediction type for that CU from among various prediction types, such as an inter prediction type or an intra prediction type. A CU may be divided into one or more prediction units (PUs) depending on temporal and / or spatial predictability. In general, each PU includes a luma prediction block (PB) and two chroma PBs. In one embodiment, prediction operations in coding (encoding / decoding) are performed in units of prediction blocks. The division of a CU into PUs (or PBs of different color channels) may be performed in various spatial patterns. For example, a luma or chroma PB may include a matrix of values (e.g., luma values) for samples of 8×8 pixels, 16×16 pixels, 8×16 pixels, 16×8 samples, etc.
[0093] 7 shows a diagram of a video encoder (703) according to another exemplary embodiment of this disclosure. The video encoder (703) is configured to receive a processed block (e.g., a predictive block) of sample values in a current video picture in a sequence of video pictures and to encode the processed block into a coded picture that is part of a coded video sequence. The exemplary video encoder (703) may be used in place of the video encoder (403) in the example of FIG. 4.
[0094] For example, the video encoder (703) receives a matrix of sample values for a processing block, such as a predictive block, such as 8×8 samples. The video encoder (703) then determines whether the processing block is best coded using intra-mode, inter-mode, or bi-predictive mode, e.g., using rate-distortion optimization (RDO). If it is determined that the processing block is coded in intra-mode, the video encoder (703) may use intra-prediction techniques to encode the processing block into a coded picture. If it is determined that the processing block is coded in inter-mode or bi-predictive mode, the video encoder (703) may use inter-prediction techniques or bi-prediction techniques, respectively, to encode the processing block into a coded picture. In some exemplary embodiments, a merge mode may be used as a sub-mode of inter-picture prediction, in which a motion vector is derived from one or more motion vector predictors, but without the benefit of coded motion vector components outside the predictors. In other exemplary embodiments, there may be motion vector components applicable to the current block. Accordingly, the video encoder (703) may include other components not explicitly shown in FIG. 7, such as a mode decision module, to determine the prediction mode of a processing block.
[0095] In the example of FIG. 7, the video encoder (703) includes an inter-encoder (730), an intra-encoder (722), a residual calculator (723), a switch (726), a residual encoder (724), a general controller (721), and an entropy coder (725) coupled together as shown in the exemplary arrangement of FIG.
[0096] The inter-encoder (730) is configured to receive samples of a current block (e.g., a processing block), compare the block with one or more reference blocks in a reference picture (e.g., blocks in previous and subsequent pictures in display order), generate inter-prediction information (e.g., a description of redundant information from an inter-encoding technique, motion vectors, merge mode information), and calculate an inter-prediction result (e.g., a predicted block) based on the inter-prediction information using any suitable technique. In some examples, the reference picture is a decoded reference picture that has been decoded based on the encoded video information using a decode unit 633 embedded in the example encoder 620 of FIG. 6 (shown as residual decoder 728 of FIG. 7 and described in more detail below).
[0097] The intra encoder (722) is configured to receive samples of a current block (e.g., a processing block), compare the block to blocks already coded 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) may calculate intra prediction results (e.g., predicted blocks) based on the intra prediction information and reference blocks in the same picture.
[0098] The general controller (721) may be configured to determine general control data and control other components of the video encoder (703) based on the general control data. In one example, the general controller (721) determines a prediction mode for a block and provides a control signal to the switch (726) based on the prediction mode. For example, if the prediction mode is an intra mode, the general controller (721) controls the switch (726) to select a result of the intra mode for use by the residual calculator (723), and controls the entropy encoder (725) to select intra prediction information and include the intra prediction information in the bitstream. If the prediction mode for the block is an inter mode, the general controller (721) controls the switch (726) to select a result of inter prediction for use by the residual calculator (723), and controls the entropy encoder (725) to select inter prediction information and include the inter prediction information in the bitstream.
[0099] The residual calculator (723) may be configured to calculate a difference (residual data) between a received block and a prediction result for a block selected from the intra-encoder (722) or the inter-encoder (730). The residual encoder (724) may be configured to encode the residual data to generate transform coefficients. For example, the residual encoder (724) may be configured to transform the residual data from the spatial domain to the frequency domain to generate transform coefficients. The transform coefficients are then subjected to a quantization process to obtain quantized transform coefficients. In various exemplary embodiments, the video encoder (703) also includes a residual decoder (728). The residual decoder (728) is configured to perform an inverse transform to generate decoded residual data. The decoded residual data may be suitably used by the intra-encoder (722) and the inter-encoder (730). For example, the inter-encoder (730) may generate decoded blocks based on the decoded residual data and the inter-prediction information, and the intra-encoder (722) may generate decoded blocks based on the decoded residual data and the intra-prediction information. The decoded blocks are suitably processed to generate decoded pictures, which may be buffered in a memory circuit (not shown) and used as reference pictures.
[0100] The entropy encoder (725) may be configured to format a bitstream to include the encoded block and to 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. When coding a block in a merged sub-mode of either an inter mode or a bi-prediction mode, the residual information may not be present.
[0101] 8 shows a diagram of an exemplary video decoder (810) according to another embodiment of the present disclosure. The video decoder (810) is configured to receive coded pictures that are part of a coded video sequence and 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.
[0102] 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.
[0103] The entropy decoder (871) may be configured to reconstruct from a coded picture certain symbols that represent syntax elements of which the coded picture is composed. Such symbols may include, for example, prediction information (e.g., intra- or inter-prediction information, etc.) that may identify the mode in which the block is coded (e.g., intra-mode, inter-mode, bi-prediction mode, merged sub-mode, or another sub-mode), certain samples or metadata used for prediction by the intra-decoder (872) or inter-decoder (880), residual information, for example in the form of quantized transform coefficients, etc. In one example, if the prediction mode is an inter- or bi-prediction mode, the inter-prediction information is provided to the inter-decoder (880). If the prediction type is an intra-prediction type, the intra-prediction information is provided to the intra-decoder (872). The residual information may undergo inverse quantization and is provided to the residual decoder (873).
[0104] The inter decoder (880) may be configured to receive inter prediction information and generate inter prediction results based on the inter prediction information.
[0105] The intra decoder (872) may be configured to receive intra prediction information and generate a prediction result based on the intra prediction information.
[0106] The residual decoder (873) may be configured to perform inverse quantization to extract dequantized transform coefficients and process the dequantized transform coefficients to transform the residual from the frequency domain to the spatial domain. The residual decoder (873) may also utilize certain control information (including quantizer parameters (QP)) that may be provided by the entropy decoder (871) (this may be only control information for low data volumes, so a data path is not depicted).
[0107] The reconstruction module (874) may be configured to combine, in the spatial domain, the residual output by the residual decoder (873) and the prediction result (output by the inter- or intra-prediction module, as the case may be) to form reconstructed blocks that form part of the reconstructed picture as part of the reconstructed video. It is noted that other suitable operations, such as deblocking operations, may also be performed to improve visual quality.
[0108] It is noted that the video encoders (403), (603), (703) and the video decoders (410), (510), (810) may be implemented using any suitable technology. In some exemplary embodiments, the video encoders (403), (603), (703) and the video decoders (410), (510), (810) may be implemented using one or more integrated circuits. In other embodiments, the video encoders (403), (603), (703) and the video decoders (410), (510), (810) may be implemented using one or more processors executing software instructions.
[0109] Returning to the intra prediction process, samples within a block (e.g., luma or chroma prediction block, or coding block if not further divided into prediction blocks) are predicted by samples of adjacent, next adjacent, or other line(s) or lines, or a combination thereof, to generate a prediction block. The residual between the actual block being coded and the prediction block may then be processed by a transform followed by quantization. Various intra prediction modes may be made available, and parameters related to intra mode selection and other parameters may be signaled in the bitstream. For example, various intra prediction modes may relate to the line position(s) for predicting the sample, the direction along which the prediction sample is selected from the line(s) it predicts, and other special intra prediction modes.
[0110] For example, the set of intra-prediction modes (interchangeably referred to as "intra modes") may include a predefined number of directional intra-prediction modes. As previously described in connection with the example implementation of FIG. 1, these intra-prediction modes may correspond to a predefined number of directions along which out-of-block samples are selected as predictions for samples predicted within a particular block. In another particular example implementation, eight main directional modes may be supported and predefined, corresponding to angles from 45 to 207 degrees relative to the horizontal axis.
[0111] In some other implementations of intra prediction, the directional intra modes may be expanded to angles set with even finer granularity to further exploit the more diverse spatial redundancy of the directional texture. For example, the above eight angle implementation may be configured to provide eight nominal angles called V_PRED, H_PRED, D45_PRED, D135_PRED, D113_PRED, D57_PRED, D203_PRED, and D67_PRED, as shown in FIG. 9, and for each nominal angle, a predefined number (e.g., 7) of finer angles may be added. With such expansion, a larger total number of directional angles (e.g., 56 in this example) may be available for intra prediction, corresponding to the same number of predefined directional intra modes. The prediction angle may be represented as a nominal intra angle + angle delta. In the above specific example, there are seven finer angle directions for each nominal angle, and the angle delta may be multiplied by -3 to 3 with a step size of 3 degrees.
[0112] The above directional intra-prediction may also be referred to as single directional intra-prediction, which is distinct from bi-directional intra-prediction (also referred to as intra bi-prediction) described later in this disclosure.
[0113] In some implementations, as an alternative or in addition to the above directional intra-modes, a predefined number of non-directional intra-prediction modes may also be predefined and made available. For example, five non-directional intra-modes called smooth intra-prediction modes may be specified. These non-directional intra-mode prediction modes may be specifically called DC, PAETH, SMOOTH, SMOOTH_V, and SMOOTH_H intra-modes. Prediction of samples of a particular block under these example non-directional modes is shown in FIG. 10. As an example, FIG. 10 shows a 4×4 block 1002 predicted by samples from an upper neighboring line and / or a left neighboring line. A particular sample 1010 of the block 1002 may correspond to a sample 1004 immediately above the sample 1010 of the upper neighboring line of the block 1002, a sample 1006 to the upper left of the sample 1010 as the intersection of the upper neighboring line and the left neighboring line, and a sample 1008 immediately to the left of the sample 1010 of the left neighboring line of the block 1002. In an exemplary DC intra prediction mode, an average of the left and above neighboring samples 1008 and 1004 may be used as a predictor for sample 1010. In an exemplary PAETH intra prediction mode, the above, left, and above-left reference samples 1004, 1008, and 1006 may be obtained, and then the closest value of these three reference samples to (above+left-above-left) may be set as the predictor for sample 1010. In an exemplary SMOOTH_V intra prediction mode, sample 1010 may be predicted by quadratic vertical interpolation of the above-left neighboring sample 1006 and the left neighboring sample 1008. In an exemplary SMOOTH_H intra prediction mode, sample 1010 may be predicted by quadratic horizontal interpolation of the above-left neighboring sample 1006 and the above neighboring sample 1004. In an exemplary SMOOTH intra prediction mode, sample 1010 may be predicted by an average of quadratic vertical and horizontal interpolations. The above implementation of the non-directional intra mode is shown only as a non-limiting example, other adjacent lines and other non-directional selections of samples and methods of combining prediction samples to predict a particular sample within a prediction block are also considered.
[0114] The selection of a particular intra-prediction mode by the encoder from the above directional or non-directional modes at various coding levels (picture, slice, block, unit, etc.) may be signaled in the bitstream. In some exemplary implementations, the exemplary eight nominal directional modes (total of 13 options) along with the five non-angle smooth modes may be signaled first. Then, if the signaled mode is one of the eight nominal angle intra modes, the index is further singed to indicate the selected angle delta to the corresponding signaled nominal angle. In some other exemplary implementations, all intra-prediction modes may be indexed together for signaling (e.g., 56 directional modes plus 5 non-directional modes to generate 61 intra-prediction modes).
[0115] In some example implementations, the directional intra-prediction modes of Example 56 or other numbers may be implemented with a unified directional predictor that projects each sample of a block to a reference subsample position and interpolates the reference sample by a 2-tap bilinear filter.
[0116] In some implementations, additional filter modes, called FILTER INTRA modes, may be designed to capture the decaying spatial correlation with the references on the edges. In these modes, prediction samples within the block in addition to samples outside the block may be used as intra prediction reference samples for some patches within the block. These modes may, for example, be predefined and enabled for intra prediction for at least the luma block (or only the luma block). A predefined number (e.g., 5) of filter intra modes may be predesigned, each represented by a set of n-tap filters (e.g., 7-tap filters) that reflect the correlation between a sample in a 4×2 patch and its adjacent n neighbors. In other words, the weighting coefficients of the n-tap filters may be position-dependent. Taking an 8×8 block, a 4×2 patch, and 7-tap filtering as examples, the 8×8 block 1102 may be divided into eight 4×2 patches as shown in FIG. 11. These patches are denoted as B0, B1, B1, B3, B4, B5, B6, and B7 in FIG. 11. For each patch, seven neighbors, shown as R0-R7 in FIG. 11, may be used to predict the samples of the current patch. For patch B0, all neighbors may already be reconstructed. However, for other patches, some of the neighbors are currently in the block and may not have been reconstructed, so the predicted values of the immediate neighbors are used as a reference. For example, all neighbors of patch B7 shown in FIG. 11 are not reconstructed, so some of the predicted samples of the neighbors, e.g. B4, B5, and / or B6, are used instead.
[0117] In some implementations of intra prediction, one color component may be predicted using one or more other color components. The color components may be any one of the components of YCrCb, RGB, XYZ color space, etc. For example, prediction of a chroma component (e.g., a chroma block) from a luma component (e.g., a luma reference sample), called Chroma from Luma, or CfL, may be implemented. In some example implementations, most cross-color predictions are only allowed from luma to chroma. For example, chroma samples in a chroma block may be modeled as a linear function of the matching reconstructed luma samples. CfL prediction may be implemented as follows:
number
[0118] Here, L AC α denotes the AC contribution of the luma component, α denotes a parameter of the linear model, and DC denotes the DC contribution of the chroma component. For example, the AC components are obtained for each sample of the block, and the DC components are obtained for the entire block. Specifically, the reconstructed luma samples may be subsampled to the chroma resolution, and then the average luma value (DC of luma) may be subtracted from each luma value to form the AC contribution of the luma. The AC contribution of the luma is then used in the linear mode of equation (1) to predict the AC value of the chroma component. Instead of requiring the decoder to calculate a scaling parameter to approximate or predict the chroma AC component from the luma AC contribution, an exemplary CfL implementation may determine the parameter α based on the original chroma samples and signal it in the bitstream. This reduces the complexity of the decoder and results in a more accurate prediction. As for the DC contribution of the chroma component, in some exemplary implementations, it may be calculated using an intra DC mode within the chroma component.
[0119] Returning to intra prediction, in some example implementations, prediction of a sample 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 nearest neighboring line (e.g., the neighboring line immediately above or immediately to the left of the predictive block as shown in FIG. 1 above), multiple reference lines may be provided as an option for intra prediction selection. Such an implementation of intra prediction may be called Multiple Reference Line Selection (MRLS). In these implementations, the encoder determines and signals which reference line of the multiple reference lines is used to generate an intra predictor. On the decoder side, after parsing the reference line index, the intra prediction of the current intra prediction block can be generated by identifying the reconstructed reference sample by searching for the reference line specified according to the intra prediction mode (such as 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, multiple reference lines may be selected together for intra prediction. For example, multiple reference lines may be combined, averaged, interpolated, or otherwise used to generate a prediction, with or without weighting. In some example implementations, MRLS may be applied only to the luma component and may not be applied to the chroma component(s).
[0120] In FIG. 12, an example of four reference lines MRLS is depicted. As shown in the example of FIG. 12, an intra-coding block 1202 may be predicted based on one of four horizontal reference lines 1204, 1206, 1208, and 1210 and four vertical reference lines 1212, 1214, 1216, and 1218. Of these reference lines, 1210 and 1218 are immediately adjacent reference lines. The reference lines may be indexed according to their distance from the coding block. For example, the reference lines 1210 and 1218 may be referred to as zero reference lines, and the other reference lines may be referred to as non-zero reference lines. Specifically, the reference lines 1208 and 1216 may be referred to as first reference lines. The reference lines 1206 and 1214 may be referred to as second reference lines. The reference lines 1204 and 1212 may be referred to as third reference lines.
[0121] In some embodiments, for a particular coding block, coding unit, predictive block, or prediction unit that is intra-coded, its intra mode needs to be signaled by one or more syntax elements in the bitstream. As mentioned above, the number of possible intra prediction modes can be huge, and there may be 62 intra prediction modes available: 56 directional intra prediction modes, 5 non-directional modes, and one chroma from luminance mode (e.g., only for chroma components). To signal these intra prediction modes, a first syntax may be signaled to indicate which nominal angle or non-directional mode is equal to the nominal mode of the current block. Then, if the mode of the current block is a directional mode, a second syntax may be signaled to indicate which delta angle is equal to that of the current block. In some situations during video encoding or decoding, there may be a strong correlation between the intra prediction mode of the current block and its neighboring blocks.
[0122] In various embodiments, this correlation can be exploited to design a more efficient syntax for intra-mode coding. In some implementations, the available intra-prediction modes for a current block may be divided into multiple intra-prediction mode sets according to the intra-prediction modes of neighboring blocks. To obtain the intra-prediction mode of the current block, first, a set index may be signaled to indicate the set index of the intra-prediction mode for the current block. Then, a mode index may be signaled to indicate the index of the intra-prediction mode in the mode set.
[0123] Here, in various embodiments of the present disclosure, "XYZ is signaled" may refer to XYZ being encoded into the coded bitstream during the encoding process; and / or, after the coded bitstream is transmitted from one device to another, "XYZ is signaled" may refer to XYZ being decoded / extracted from the coded bitstream during the decoding process.
[0124] For example, in some of the above implementations, the number of available intra-prediction modes may include 62 different modes, including, for example, 56 directional intra-prediction modes (e.g., 8 nominal directions with 7 fine angles in each nominal direction), 5 non-directional modes, and 1 luma-from-chroma-from-luma mode (for chroma components only). When an intra-mode is selected during the coding process for a particular coding block, coding unit, prediction block, or prediction, signaling corresponding to the selected intra-mode must be included in the bitstream. The signaling syntax(es) must be able to distinguish all these 62 modes in some way. For example, these 62 modes may be signaled using a single syntax for 62 indices, each corresponding to one mode. In some other implementations, one syntax may be signaled to indicate which nominal angle or non-directional mode is used as the nominal mode in the current block, and then if the nominal mode of the current block is a directional mode, another syntax may be additionally signaled to indicate which delta angle is selected for the current block.
[0125] Since the various syntaxes related to intra-coding usually occupy a large part of the bitstream and the selection of intra-modes needs to be done frequently signal-wise, e.g., at various coding levels, reducing the number of bits used for intra-mode signaling becomes important in improving video coding efficiency. In practice, the use of various intra-prediction modes may follow certain statistical patterns, and such usage patterns may be exploited to design the intra-mode indexing and signaling syntax so that the signaling efficiency can be increased. Furthermore, there may be some correlation on average between intra-mode selections from block to block. Such correlations may be obtained statistically offline and taken into account in the design of the syntax(es) for the signaling of intra-mode selections. The goal is to reduce the number of bits of signaling syntax elements in the coded bitstream on average. For example, some general statistics may indicate that there may be a strong correlation between the optimal intra-prediction mode of a current block and its neighboring blocks. Such correlations may be exploited when designing the syntax(es) for intra-mode coding.
[0126] In some embodiments, to improve video encoding / decoding performance, offset-based refinement for intra prediction (ORIP) may be used after generating intra prediction samples. When ORIP is applied, the prediction samples are refined by adding offset values.
[0127] As shown in FIG. 13, intra prediction (1330) is performed based on reference samples. The reference samples may include samples from one or more left reference lines (1312) and / or one or more top reference lines (1310). An offset-based refinement for intra prediction (ORIP) (1350) may generate offset values using neighboring reference samples. In some implementations, the neighboring reference samples for ORIP may be the same set as the reference samples for intra prediction. In some other implementations, the neighboring reference samples for ORIP may be a different set than the reference samples of intra prediction.
[0128] In some implementations referring to Figures 14A and 14B, ORIP may be performed at the 4x4 sub-block level. For each 4x4 sub-block (1471, 1472, 1473, and / or 1474), an offset is generated from its neighboring samples. For example, for the first sub-block (1471), the offset is generated from its neighboring samples above (P1, P2, P3, and P4 of 1420), its neighboring samples to the left (P5, P6, P7, and P8 of 1410), and / or its neighboring sample to the top left (P0) (1401). In some implementations, the neighboring samples above may include both the neighboring samples above (P1, P2, P3, and P4 of 1420) and the neighboring sample to the top left (P0) (1401). In some other implementations, the left neighboring samples may include both the left neighboring samples (P5, P6, P7, and P8 of 1410) and the top-left neighboring sample (P0) (1401).
[0129] The first sub-block (1471) includes 4x4 pixels, where each pixel of the 4x4 pixels corresponds to predN, the Nth adjacent prediction sample before subdivision, e.g., pred0, pred1, pred2, ... pred16.
[0130] In various embodiments, the offset value for each pixel of a given sub-block may be calculated based on neighboring samples according to a formula, which may be a predefined formula or a formula indicated by a parameter coded in the coded bitstream.
[0131] In some implementations, referring to FIG. 14B, the offset value for the kth position of a given sub-block (offset(k)) may be generated as follows:
number
number
[0132] W kn is a predefined weight for offset calculation. P n are the values of adjacent samples (e.g., P0, P1, P2, ..., P8). k is the predicted value of the pixel after applying intra prediction or other prediction (e.g., inter prediction). k is the refined value of the pixel after applying ORIP. clip3() is the mathematical function of clip3. n is an integer between 0 and 8 inclusive. k is an integer between 0 and 15 inclusive.
[0133] In some implementations, W kn may be predefined or may be obtained according to Table 1. [Table 1]
[0134] In some other implementations, the sub-block-based ORIP may only be applied to a set of predefined intra prediction modes and / or may be different for luma and chroma depending on the intra prediction mode. Table 2 shows one implementation of the sub-block-based ORIP with various intra prediction modes and either the luma channel or the chroma channel. Take the luma channel as an example: if the prediction mode is either DC or SMOOTH, ORIP is always ON and no additional signaling is required; if the prediction mode is HOR / VER and angle_delta is equal to 0, block level signaling is required to enable / disable ORIP; and / or if the intra prediction mode is other modes, ORIP is always OFF and no additional signaling is required. [Table 2]
[0135] Returning to the second 4x4 subblock (1473), because of its relative position to the first 4x4 subblock (1471), the top neighboring sample of the second subblock may be some pixel of the first subblock. P1 of the second subblock may be pred12 of the first subblock, P2 of the second subblock may be pred13 of the first subblock, P3 of the second subblock may be pred14 of the first subblock, and P4 of the second subblock may be pred15 of the first subblock. The top left neighboring sample of the second subblock (P0) may be the left neighboring sample of the first subblock (P8).
[0136] In various embodiments, the available intra-prediction modes or mode options for a current block being coded may be divided into multiple intra-prediction mode sets. Each set may be assigned a set index. The set index of a set is an integer indicating an index of a set among multiple intra-prediction mode sets. In some implementations, the set index may be an integer equal to or greater than 0; or in some other implementations, the set index may be an integer equal to or greater than 1. Each set may include several intra-mode prediction modes. The mode index of an intra-mode prediction mode is an integer indicating an index of an intra-mode prediction mode among several intra-mode prediction modes. In some implementations, the mode index may be an integer equal to or greater than 0; or in some other implementations, the mode index may be an integer equal to or greater than 1. In each of the mode sets, the available intra-prediction modes are divided and ordered, and the manner in which the intra-prediction modes are ordered may be determined, at least in part, based on correlation between intra-prediction modes between blocks and according to intra-prediction modes used by its neighboring blocks. The intra-prediction modes used by the neighboring blocks may be referred to as "reference intra-prediction modes" or "reference modes." An intra-prediction mode for a particular unit may be determined and selected. The selection of an intra-prediction mode may be signaled. First, a set index may be signaled to indicate the set index of the intra-prediction mode set that contains the selected intra-prediction mode. Second, a mode index (alternatively referred to as a mode position index within the set) may be signaled to indicate the index of the selected intra-prediction mode within the mode set.
[0137] The general implementations of intra-prediction mode partitioning and ordering above, and the specific examples below, exploit statistical effects and neighbor correlations to optimize the design of syntax for dynamically indexing these modes and signaling their selection within the coded video bitstream to improve coding efficiency. For example, these implementations may reduce the number of syntaxes for signaling and support more efficient context generation for entropy coding.
[0138] The various embodiments and / or implementations described in this disclosure may be used separately or combined in any order. Furthermore, some, all, or a combination of some or all of these embodiments and / or implementations may be implemented as part of an encoder and / or decoder and may be implemented in hardware and / or software. For example, they may be hard-coded into dedicated processing circuitry (e.g., one or more integrated circuits). In another example, they may be implemented by one or more processors executing a program stored on a non-transitory computer-readable medium.
[0139] When ORIP is applied, there may be some challenges / issues related to intra-mode coding. For example, in ORIP design, if the nominal mode is HOR / VER, one delta angle may be added to indicate the use of ORIP; in intra-mode coding design, the signaling of the nominal mode and delta angle may be changed, resulting in at least one problem / issue that it is not easy to merge ORIP and intra-mode coding together.
[0140] The present disclosure describes various embodiments of intra-prediction mode coding in video coding and / or decoding, addressing at least one of the challenges / problems discussed above and achieving an efficient combination of ORIP and improved intra-mode coding.
[0141] In various embodiments, referring to FIG. 15, method 1500 of intra-prediction mode coding in video decoding, method 1500 may include some or all of the following steps: step 1510, receiving a coded video bitstream for a block by a device having a memory for storing instructions and a processor in communication with the memory; step 1520, dividing, by the device, a list of intra modes into a plurality of intra mode sets for the block based on mode information of each intra mode in the list, the list of intra modes corresponding to an intra-prediction mode of at least one neighboring block of the block; step 1530, extracting, by the device, from the coded video bitstream, a set index indicating an intra mode set from the plurality of intra mode sets; step 1540, extracting, by the device, from the coded video bitstream, a mode index indicating an intra-prediction mode from the intra mode set; and / or step 1550, determining, by the device, an intra-prediction mode for the block based on the set index and the mode index.
[0142] In some implementations, the mode information of the intra mode may include at least one of the following: directional mode, nominal angle of the directional mode, offset angle of the directional mode, non-directional mode, smooth mode (e.g., smooth, smooth_v, smooth_h), DC mode, PAETH mode, and / or a mode generating prediction samples according to a given prediction direction. In some other implementations, in a loose classification, the directional mode may broadly include the following: any mode that is not smooth (smooth, smooth_v, smooth_h), DC, or PAETH; and any mode generating prediction samples according to a given prediction direction. In some other implementations, the non-directional mode may include smooth mode (e.g., smooth, smooth_v, smooth_h), DC mode, PAETH mode, and luma-for-chroma mode. In some other implementations, in a loose classification, the non-directional mode may broadly include any mode that is not a directional mode.
[0143] In various embodiments of the present disclosure, the size of a block (for example, but not limited to, a coding block, a prediction block, or a transformation block) may refer to the width or height of the block. The width or height of the block may be an integer in pixels. In various embodiments of the present disclosure, the size of a block may refer to the area size of the block. The area size of the block may be an integer calculated by multiplying the width of the block by the height of the block in pixels. In some various embodiments of the present disclosure, the size of a block may refer to the maximum value of the width or height of the block, the minimum value of the width or height of the block, or the aspect ratio of the block. The aspect ratio of the block may be calculated by dividing the width by the height of the block, or may be calculated by dividing the height by the width of the block.
[0144] In some implementations, the intra-prediction modes available for the current block may be divided / sorted into multiple intra-prediction mode sets according to the intra-prediction modes of the neighboring blocks. To obtain the intra-prediction modes of the current block, first, a set index may be signaled to indicate the set index of the intra-prediction mode of the current block; then, a mode index may be signaled to indicate the index of the intra-prediction mode in the mode set. In some implementations, all non-directional modes may be included in the first mode set. The set index of the set is an integer indicating the index of a set among the multiple sets; and / or the mode index of the mode is an integer indicating the index of a mode among the set of modes. In some implementations, the set index and / or the mode index may be an integer equal to or greater than 0. In some other implementations, the set index and / or the mode index may be an integer equal to or greater than 1.
[0145] Here, in various embodiments of the present disclosure, a "first" mode set not only refers to "one" mode set but also refers to the "first" mode set with the smallest set index, a "second" mode set not only refers to "another" mode set but also refers to the "second" mode set with the second smallest set index, and so on. For example, the number of intra-prediction mode sets is denoted as M, and the set index may range, for example, from 1 to M, or from 0 to M-1. If the set index ranges from 1 to M, the "first" mode set is the "first" mode set with set index 1, the "second" mode set is the "second" mode set with set index 2, and so on. If the set index ranges from 0 to M-1, the "first" mode set is the "first" mode set with set index 0, the "second" mode set is the "second" mode set with set index 1, and so on.
[0146] Here, in various embodiments of the present disclosure, "XYZ is signaled" may refer to XYZ being encoded into the coded bitstream during the encoding process; and / or, after the coded bitstream is transmitted from one device to another, "XYZ is signaled" may refer to XYZ being decoded / extracted from the coded bitstream during the decoding process.
[0147] Referring to step 1510, 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 the decoder (633) of 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) of 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. Block may refer to coding block or coded block.
[0148] Referring to step 1520, the device may divide the list of intra modes into multiple intra mode sets for the block based on mode information of each intra mode in the list. In some implementations, step 1520 may include determining, by the device, multiple intra mode sets based on one or more factors, such as, but not limited to, a mode type of each intra mode, a direction angle of a directional intra mode, and / or an intra mode of a neighboring block of the block. The mode type of the intra mode may include whether it is a directional mode or a non-directional mode, and / or whether it is an ORIP mode or a non-ORIP mode. In some other implementations, the list may correspond to at least one intra prediction mode of a neighboring block of the block; and / or the list may be used to derive an intra prediction mode of the block.
[0149] In various embodiments, the list of intra modes may include a predefined number of intra prediction modes. For example, the predefined number is 61.
[0150] In some implementations, the list of intra modes includes a first sublist at the beginning of the list; the first sublist includes all non-directional intra-prediction modes. For example, if the list of intra modes is divided into multiple intra mode sets, the non-directional intra-prediction modes may be divided into the first intra mode set because they are at the beginning of the list.
[0151] In some other implementations, in response to a neighboring block using a directional intra-prediction mode: the list of intra modes includes a second sub-list next to the first sub-list in the list; the second sub-list includes a plurality of derived intra-prediction modes based on the directional intra-prediction modes of the neighboring block. For example, if the list of intra modes is divided into a plurality of intra-mode sets, the plurality of derived intra-prediction modes based on the directional intra-prediction modes of the neighboring block are likely to be divided into either the first intra-mode set or the second intra-mode set, since the plurality of derived intra-prediction modes are immediately next to the non-directional intra-prediction modes from the top of the list. In some implementations, the neighboring blocks of the current block may include a block above the current block, a block to the left of the current block, or both a block above the current block and a block to the left of the current block.
[0152] In some other implementations, the multiple derived intra prediction modes have nine directional intra prediction modes by adding offsets of [0, -1, +1, -2, +2, -3, +3, -4, +4] to the directional intra prediction mode of the neighboring block. For example, if the directional intra prediction mode of the neighboring block has a particular directional angle (x degrees) and the directional angle step size is 3 degrees, the multiple derived intra prediction modes may include nine directional intra prediction modes with directional angles of x, x±3, x±6, x±9, and x±12 degrees.
[0153] In some other implementations, the list of intra modes includes a third sublist next to the second sublist in the list; the third sublist has at least one default intra prediction mode. In some other implementations, the default intra prediction mode includes at least one nominally directional intra prediction mode with a zero delta angle. For example, the default intra prediction mode may include all other nominally directional intra prediction modes with a zero delta angle that are not already included in the above derived intra prediction modes based on the directional intra prediction modes of the neighboring blocks.
[0154] In some other implementations, in response to the neighboring blocks using a non-directional intra-prediction mode: the list of intra modes includes a second sublist next to the first sublist in the list; the second sublist includes a plurality of nominally directional intra-prediction modes with a zero delta angle. For example, if both of the neighboring blocks are non-directional modes, all directional intra-prediction modes with a zero delta angle are added to the second sublist. In some other implementations, in response to all neighboring blocks using a non-directional intra-prediction mode: the list of intra modes includes a second sublist next to the first sublist in the list; the second sublist includes a plurality of nominally directional intra-prediction modes with a zero delta angle. All neighboring blocks may include an upper neighboring block (i.e., a neighboring block located above the current block) and a left neighboring block (i.e., a neighboring block located to the left of the current block); all neighboring blocks may not include a right neighboring block (i.e., a neighboring block located to the right of the current block) or a bottom neighboring block (i.e., a neighboring block located below the current block).
[0155] For example, first, all non-directional intra-prediction modes may be added to the intra-mode list. Then, an offset may be added to the directional intra-prediction modes of neighboring blocks to derive an intra-prediction mode, and the derived intra-prediction mode may be added to the intra-mode list. Finally, after adding all the derived intra-prediction modes, if the intra-prediction mode list is still not full, a default mode may be used to fill the remaining positions in the intra-mode list.
[0156] In another example, the intra prediction modes available for the current block are 61, including 5 non-directional modes and 56 directional modes. If only one of the neighboring blocks of the current block is coded with a directional intra prediction mode, first, the 5 non-directional modes are added to the mode list; then, the 9 directional intra prediction modes are derived by adding an offset of [0, -1, +1, -2, +2, -3, +3, -4, +4] to the directional modes of the neighboring blocks. Then, only 14 modes are added to the mode list, and the 47th (61-14=47) position of the intra mode list is not filled. Then, a default mode is added to the mode list. In some implementations, if the intra mode list is not full, a nominal angle with a delta angle equal to 0 is used as the default mode to fill the intra mode list initially.
[0157] In various embodiments, the multiple intra mode sets include a first intra mode set; the first intra mode set includes all non-directional intra prediction modes. For example, the non-directional modes are always included in the first mode set. The non-directional modes may include smooth modes (e.g., smooth, smooth_v, smooth_h), DC modes, PAETH modes, and luma-for-chroma modes. In some other implementations, in a loose classification, the non-directional modes may broadly include any mode that is not a directional mode.
[0158] In various embodiments, the multiple intra mode sets include a first intra mode set; the first intra mode set consists of all non-directional intra prediction modes. For example, the first mode set includes only non-directional intra prediction modes.
[0159] In various embodiments, the multiple intra mode sets include a first intra mode set; the first intra mode set includes all non-directional intra prediction modes and one or more offset-based refinement for intra prediction (ORIP) modes. In some implementations, the one or more ORIP modes include a vertical ORIP mode and a horizontal ORIP mode. For example, two additional modes, VER_ORIP and HOR_ORIP, are specified to indicate use of ORIP with VER and HOR modes with delta angles equal to 0. These two modes may be marked as non-directional modes and split into the first mode set.
[0160] In various embodiments, the one or more ORIP modes include all ORIP modes, for example, all intra-prediction modes that apply ORIP are considered to be non-directional modes.
[0161] In various embodiments, the multiple intra mode sets include N intra mode sets and M intra mode sets: the N intra mode sets precede the M intra mode sets in order of set index from smallest to largest, where N is a positive integer and M is a positive integer; and the number of intra prediction modes in each of the M intra mode sets is equal to a power of 2. In some implementations, N is, for example, but not limited to, 1 or 2. For example, N is 1 and M is 4; the multiple intra mode sets include, in order of intra mode set index from smallest to largest, a first intra mode set, a second intra mode set, a third intra mode set, a fourth intra mode set, and a fifth intra mode set; the number of intra prediction modes of the first intra mode set is one of the following: 5 or 7; the number of intra prediction modes of the second intra mode set is 8; the number of intra prediction modes of the third intra mode set is 16; the number of intra prediction modes of the fourth intra mode set is 16; and the number of intra prediction modes of the fifth intra mode set is 16.
[0162] As another example, except for the first N intra-mode sets, the number of modes in each mode set is equal to a power of two; N is a positive integer such as 1 or 2. When N is 1, it can mean that only the number of modes in the first mode set is not equal to a power of two.
[0163] In one example, the available intra-prediction modes are divided into five mode sets; the number of modes in each mode set is (5, 8, 16, 16, 16). The number of modes in the first mode set, which is 5, is equal to the number of non-directional modes.
[0164] In another example, the available intra-prediction modes are divided into five mode sets, with the number of modes in each mode set being (7, 8, 16, 16, 16). The number of modes in the first mode set, which is 7, is equal to the number of non-directional modes plus VER_ORIP and HOR_ORIP.
[0165] The embodiments in the present disclosure may be used individually or combined in any order. Furthermore, each of the methods (or embodiments), the encoder and the decoder may be implemented by a processing circuit (e.g., one or more processors or one or more integrated circuits). In one example, the one or more processors execute a program stored on a non-transitory computer-readable medium. The embodiments of the present disclosure may be applied to a luma block or a chroma block; in a chroma block, the embodiments may be applied to multiple color components separately or to multiple color components together.
[0166] The techniques described above can be implemented as computer software using computer-readable instructions and can be physically stored on one or more computer-readable media. For example, Figure 16 illustrates a computer system (2600) suitable for implementing certain embodiments of the disclosed subject matter.
[0167] As a non-limiting example, the architecture (2600), and in particular a computer system having a core (2640), can provide functionality as a result of the processor(s) (including CPU, GPU, FPGA, accelerator, etc.) executing software embodied in one or more tangible computer-readable media. Such computer-readable media can be media related to user-accessible mass storage devices as introduced above, as well as specific storage devices of the core (2640) that are non-transitory in nature, such as the core internal mass storage device (2647) 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 processors therein (including CPU, GPU, FPGA, etc.) to perform particular processes or particular portions of particular processes described herein, including defining data structures stored in RAM (2646) and modifying such data structures according to the software-defined processes. Additionally or alternatively, a computer system may provide functionality as a result of logic being hardwired or incorporated into circuitry (e.g., accelerator (2644)) that may operate in place of or together with software to perform particular processes or portions of particular processes described herein. References to software may include logic, and vice versa, where appropriate. References to computer-readable media may include, where appropriate, circuitry (such as an integrated circuit (IC)) that stores software for execution, circuitry embodying logic for execution, or both. The present disclosure includes any appropriate combination of hardware and software.
[0168] Computer software can be coded using any suitable machine code or computer language and can be subject to assembly, compilation, linking, or similar mechanisms to produce code containing instructions that can be executed by one or more computer central processing units (CPUs), graphics processing units (GPUs), etc., either directly, or through interpretation, microcode execution, etc.
[0169] 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.
[0170] 16 for computer system (2600) are exemplary in nature and are not intended to suggest any limitation as to the scope of use or functionality of the computer software implementing the embodiments of the present disclosure, nor should the arrangement of components be interpreted as having any dependency or requirement regarding any one or combination of components illustrated in the exemplary embodiment of computer system (2600).
[0171] The computer system (2600) may include certain human interface input devices that may be responsive to input by one or more human users through, for example, tactile input (e.g., keystrokes, swipes, data glove movements), audio input (e.g., voice, clapping), visual input (e.g., gestures), and olfactory input (not shown). Human interface devices may also be used to capture certain media that are not necessarily directly related to conscious human input, such as audio (e.g., speech, music, ambient sounds), images (e.g., scanned images, photographic images obtained from still image cameras), and video (e.g., two-dimensional video, three-dimensional video including stereoscopic video).
[0172] The input human interface devices may include one or more (only one of each is shown) of 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).
[0173] The computer system (2600) may also include certain human interface output devices. Such human interface output devices may stimulate one or more of the human user's senses, for example, through 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), or joystick (2605); although there may be haptic feedback devices that do not act as input devices), audio 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 may or may not have touch screen input capability, each may or may not have haptic feedback capability, some of which may output two-dimensional visual output or higher than three-dimensional output through such means as stereoscopic output; virtual reality glasses (not shown), holographic displays, and smoke tanks (not shown)), and printers (not shown).
[0174] The computer system (2600) may also include human accessible storage devices and associated media, such as optical media including CD / DVD ROM / RW (2620) along with CD / DVD or similar media (2621), thumb drives (2622), removable hard drives or solid state drives (2623), legacy magnetic media such as tape and floppy disks (not shown), specialized ROM / ASIC / PLD based devices (not shown) such as security dongles, etc.
[0175] Those skilled in the art should also understand that the term "computer-readable medium" as used in connection with the presently disclosed subject matter does not encompass transmission media, carrier waves, or other transitory signals.
[0176] The computer system (2600) may also include an interface (2654) to one or more communication networks (2655). The networks may be, for example, wireless, wired, optical. The networks may further be local, wide area, metropolitan, in-vehicle and industrial, real-time, delay tolerant, etc. Examples of networks include Ethernet, WLAN, cellular networks including GSM, 3G, 4G, 5G, LTE, etc., TV wired or wireless wide area digital networks including cable television, satellite television, terrestrial broadcast television, in-vehicle and industrial including CANbus, etc. Certain networks usually require an external network interface adapter that is attached to a specific general purpose data port or peripheral bus (2649) (e.g., a USB port of the computer system (2600)). Others are usually integrated into the core of the computer system (2600) by attachment to a system bus as described below (e.g., an Ethernet interface to a PC computer system or a cellular network interface to a smartphone computer system). Using any of these networks, the computer system (2600) can communicate with other entities. Such communications may be unidirectional, receive only (e.g., broadcast television), unidirectional transmit only (e.g., CANbus to a particular CANbus device), or bidirectional, for example, to other computer systems using local or wide area digital networks. With each of these networks and network interfaces as described above, specific protocols and protocol stacks may be used.
[0177] The aforementioned human interface devices, human accessible storage devices, and network interfaces may be attached to a core (2640) of the computer system (2600).
[0178] The cores (2640) may include one or more central processing units (CPUs) (2641), graphics processing units (GPUs) (2642), specialized programmable processing units in the form of field programmable gate arrays (FPGAs) (2643), hardware accelerators for specific tasks (2644), graphics adapters (2650), etc. These devices may be connected through a system bus (2648), along with read only memory (ROM) (2645), random access memory (2646), internal mass storage devices (2647), such as internal non-user accessible hard drives, solid state drives (SSDs), etc. 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 through a peripheral bus (2649). In one example, a screen (2610) may be connected to the graphics adapter (2650). Architectures for peripheral buses include PCI, USB, and the like.
[0179] The CPU (2641), GPU (2642), FPGA (2643), and accelerator (2644) can execute certain instructions that, in combination, may constitute the above-mentioned computer code. The computer code may be stored in a ROM (2645) or a RAM (2646). Temporary data may also be stored in the RAM (2646), while persistent data may be stored, for example, in an internal mass storage device (2647). Rapid storage and retrieval from any of the memory devices may be enabled through the use of a cache memory that may be closely associated with one or more of the CPU (2641), GPU (2642), mass storage device (2647), ROM (2645), RAM (2646), etc.
[0180] The computer-readable medium can have computer code thereon for performing various computer-implemented operations. The medium and computer code may be those specially designed and constructed for the purposes of the present disclosure, or they may be of the kind well known and available to those having skill in the computer software arts.
[0181] While 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 invention will be apparent to those skilled in the art from this description. Those skilled in the art will readily recognize that these and various other modifications can be made to the exemplary embodiments shown and described herein without departing from the spirit and scope of the invention. Accordingly, the appended claims are intended to cover such modifications and alternative embodiments. Certain proportions in the figures may be exaggerated, while other proportions may be minimized. Accordingly, the disclosure and drawings should be regarded as illustrative and not restrictive.
[0182] The following additional note is added: (Supplementary Note 1) A method for intra-prediction mode coding in video decoding, the method comprising: receiving, by a device including a memory storing instructions and a processor in communication with the memory, a coded video bitstream of blocks; partitioning, by the device, a list of intra modes into a plurality of intra mode sets for the block based on mode information of each intra mode in the list, the list of intra modes corresponding to an intra prediction mode of at least one neighboring block of the block; extracting, by the device, from the coded video bitstream, a set index indicating an intra-mode set from the plurality of intra-mode sets; extracting, by the device, from the coded video bitstream, a mode index indicating an intra-prediction mode from the intra mode set; and determining, by the device, the intra-prediction mode for the block based on the set index and the mode index; method. (Supplementary Note 2) The list of intra modes includes a predefined number of intra prediction modes. The method described in Appendix 1. (Supplementary Note 3) The predefined number is 61. The method described in Appendix 2. (Supplementary Note 4) The list of intra modes includes a first sublist at the beginning of the list; the first sub-list includes all non-directional intra-prediction modes; The method described in Appendix 1. (Supplementary Note 5) In response to a neighboring block of the block using a directional intra-prediction mode: the list of intra modes includes a second sublist adjacent to the first sublist in the list; the second sub-list includes a plurality of derived intra-prediction modes based on the directional intra-prediction modes of the neighboring blocks. The method described in Appendix 4. (Supplementary Note 6) The derived intra prediction modes include nine directional intra prediction modes by adding an offset of [0, -1, +1, -2, +2, -3, +3, -4, +4] to the directional intra prediction modes of the neighboring blocks; The method described in Appendix 5. (Supplementary Note 7) The list of intra modes includes a third sublist adjacent to the second sublist in the list; the third sub-list includes at least one default intra-prediction mode. The method described in Appendix 5. (Supplementary Note 8) The at least one default intra prediction mode includes at least one nominally directional intra prediction mode with a zero delta angle. The method described in Appendix 7. (Supplementary Note 9) In response to a neighboring block of the block using a non-directional intra-prediction mode: the list of intra modes includes a second sublist adjacent to the first sublist in the list; the second sub-list includes a plurality of nominally directional intra-prediction modes having a zero delta angle; The method described in Appendix 4. (Supplementary Note 10) The plurality of intra mode sets includes a first intra mode set; the first intra mode set includes all non-directional intra prediction modes. The method described in Appendix 1. (Supplementary Note 11) The plurality of intra mode sets includes a first intra mode set; the first intra mode set consists of all non-directional intra prediction modes. The method described in Appendix 1. (Supplementary Note 12) The plurality of intra mode sets includes a first intra mode set; the first intra mode set includes all non-directional intra prediction modes and one or more offset-based refinement for intra prediction (ORIP) modes; The method described in Appendix 1. (Supplementary Note 13) The one or more ORIP modes include a vertical ORIP mode and a horizontal ORIP mode, 13. The method according to claim 12. (Supplementary Note 14) The one or more ORIP modes include all ORIP modes, 13. The method according to claim 12. (Supplementary Note 15) The plurality of intra mode sets includes N intra mode sets and M intra mode sets: the N intra mode sets are in order of set index from smallest to largest before the M intra mode sets; N is a positive integer, M is a positive integer; the number of intra prediction modes in each of the M intra mode sets is equal to a power of 2. The method described in Appendix 1. (Appendix 16) N is 1 or 2; 16. The method according to claim 15. (Appendix 17) N is 1 and M is 4; the plurality of intra mode sets include, in order of smallest to largest intra mode set index, a first intra mode set, a second intra mode set, a third intra mode set, a fourth intra mode set, and a fifth intra mode set; the number of intra prediction modes in the first intra mode set is one of the following: 5 or 7; the number of intra prediction modes in the second intra mode set is eight; the number of intra prediction modes in the third intra mode set is 16; the number of intra prediction modes in the fourth intra mode set is 16; the number of intra prediction modes in the fifth intra mode set is 16; 16. The method according to claim 15. (Supplementary Note 18) An apparatus for intra-prediction mode coding in video decoding, the apparatus comprising: a memory for storing instructions; and a processor in communication with the memory, the processor configured to, when executing the instructions, cause the apparatus to perform any of the methods of claims 1 to 17; Device. (Supplementary Note 19) A computer program product which, when executed by a processor, causes the processor to perform any one of the methods of Supplementary Notes 1 to 17.
Claims
[Claim 1] 1. A method for intra-prediction mode coding in video decoding, the method comprising: receiving, by a device including a memory storing instructions and a processor in communication with the memory, a coded video bitstream of blocks; partitioning, by the device, a list of intra modes into a plurality of intra mode sets for the block based on mode information of each intra mode in the list, the list of intra modes corresponding to an intra prediction mode of at least one neighboring block of the block; extracting, by the device, from the coded video bitstream, a set index indicating an intra-mode set from the plurality of intra-mode sets; extracting, by the device, from the coded video bitstream, a mode index indicating an intra-prediction mode from the intra mode set; and determining, by the device, the intra-prediction mode for the block based on the set index and the mode index; method.
Citation Information
Patent Citations
Method and apparatus for processing video signal
US20200053385A1
Method and apparatus for intra prediction
WO2020048463A1
Intra prediction-based video encoding / decoding method and device
WO2020139060A1
