Method and apparatus for interaction between intra prediction mode and block differential pulse-code modulation mode

JP2025031788A5Active Publication Date: 2025-11-18TENCENT AMERICA LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2024221843
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2020-04-29
Filing Date
2024-12-18
Publication Date
2025-11-18
Estimated Expiration
2040-04-30

AI Technical Summary

Benefits of technology

【0022】 開示された主題のさらなる特徴、性質、および様々な利点は、以下の発明を実施するための形態および添付の図面からより明らかになる。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

To provide a method and apparatus of interaction between an intra prediction mode and a block differential pulse-code modulation mode.SOLUTION: A method of video decoding performed in a video decoder includes a step of determining whether a first block associated with a second block is coded with a block differential pulse code modulation (BDPCM) mode. The method further includes a step of, in response to determining that the first block is coded with the BDPCM mode, associating the first block with an intra prediction mode value based on a BDPCM directional flag. The method further includes a step of determining an inter prediction mode value for the second block using the intra prediction mode value associated with the first block. The method further includes a step of reconstructing the second block using the determined intra prediction mode value.SELECTED DRAWING: Figure 1A
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims the benefit of priority to U.S. Patent Application No. 16 / 862,221, entitled "METHOD AND APPARATUS FOR INTERACTION BETWEEN INTRA PREDICTION MODE AND BLOCK DIFFERENTIAL PULSE-CODE MODULATION MODE," filed April 29, 2020, which claims the benefit of priority to U.S. Provisional Application No. 62 / 841,003, entitled "INTERACTION BETWEEN INTRA PREDICTION MODE AND BLOCK DIFFERENTIAL PULSE-CODE MODULATION MODE," filed April 30, 2019. The entire disclosures of the prior applications are incorporated herein by reference in their entireties.

[0002] This disclosure generally describes embodiments related to video coding. [Background technology]

[0003] The background discussion provided herein is intended to provide a general context for the present disclosure. The work of the inventors named herein is not admitted, explicitly or implicitly, as prior art to the present disclosure to the extent that their work is described in this Background section, as well as aspects of the description that may not otherwise qualify as prior art at the time of filing.

[0004] Video coding and decoding can be performed using inter-picture prediction with motion compensation. Uncompressed digital video can include a series of pictures, each with spatial dimensions of, for example, 1920x1080 luma samples and associated chroma samples. The series of pictures can have a fixed or variable (also informally known as frame rate) picture rate of, for example, 60 pictures per second or 60 Hz. Uncompressed video has significant bitrate requirements. For example, 1080p60 4:2:0 video (1920x1080 luma sample resolution at 60 Hz frame rate) at 8 bits per sample 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 may be to reduce redundancy in the input video signal through compression. Compression may help reduce the aforementioned bandwidth or storage space requirements, in some cases by more than two orders of magnitude. Both lossless and lossy compression may be employed, as well as combinations thereof. Lossless compression refers to techniques that can restore an exact copy of the original signal from the compressed original signal. With lossy compression, the restored signal may not be identical to the original signal, but the distortion between the original and restored signals is small enough to make the restored signal useful for the intended application. For video, lossy compression is widely adopted. The amount of acceptable distortion depends on the application, for example, users of a particular consumer streaming application may tolerate higher distortion than users of a television distribution application. The achievable compression ratio may reflect that the greater the acceptable / tolerable distortion, the higher the compression ratio may be.

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

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

[0008] Conventional 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 predict from surrounding sample data and / or metadata obtained during encoding / decoding of a block of data that is spatially adjacent and preceding in decoding order. Such techniques are hereafter referred to as "intra-prediction" techniques. It should be noted that in at least some cases, intra-prediction uses only reference data from the current picture being reconstructed, and not from a reference picture.

[0009] There may be many different forms of intra prediction. When more than one of such techniques may be used in a given video coding technique, the technique in use may be coded as an intra prediction mode. In some cases, the mode may have sub-modes and / or parameters, which may be coded separately or may be included in the mode codeword. Which codeword is used for a given mode / sub-mode / parameter combination may affect the coding efficiency gains via intra prediction, and therefore may also affect the entropy coding technique used to convert the codeword into a bitstream.

[0010] Certain modes of intra prediction were introduced with H.264, improved in H.265, and further refined in newer coding techniques such as the Joint Search Model (JEM), Versatile Video Coding (VVC), and Benchmark Set (BMS). A predictor block can be formed using neighboring sample values ​​belonging to already available samples. The sample values ​​of the neighboring samples are copied to the predictor block according to a direction. The reference to the direction in use can be coded in the bitstream or may itself be predicted.

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

[0012] 1A, at the top left is depicted a square block (104) of 4x4 samples (shown in dashed bold). The square block (104) includes 16 samples, each labeled with "S", its position in the Y dimension (e.g., row index), and its position in the X dimension (e.g., column index). For example, sample S21 is the second sample (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 both the Y and X dimensions in the block (104). Since the size of the block is 4x4 samples, S44 is at the bottom right. Additionally, reference samples are shown that follow a similar numbering scheme. The reference samples are labeled with R, their Y position (e.g., row index), and X position (column index) relative to the block (104). In both H.264 and H.265, the predicted samples are adjacent to the block being reconstructed, and therefore there is no need to use negative values.

[0013] Intra-picture prediction can work by copying reference sample values ​​from adjacent samples as appropriated by the signaled prediction direction. For example, assume that the coded video bitstream includes signaling for this block indicating a prediction direction that coincides with the arrow (102), i.e., predicted from one or more prediction samples in the upper right corner at an angle of 45 degrees from the horizontal. In that case, samples S41, S32, S23, and S14 are predicted from the same reference sample R05. Then, sample S44 is predicted from reference sample R08.

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

[0015] The number of possible directions is increasing as video coding techniques develop. In H.264 (2003), nine different directions could be represented. That increased to 33 in H.265 (2013), and JEM / VVC / BMS can support up to 65 directions at the time of this disclosure. Experiments have been conducted to identify the most likely directions, and some techniques in entropy coding are used to represent those likely directions with a small number of bits, accepting a certain penalty for less likely directions. Furthermore, the direction itself may be predictable from neighboring directions used in neighboring, already decoded blocks.

[0016] The intra prediction modes used in HEVC are shown in Figure 1B. In HEVC, there are a total of 35 intra prediction modes, among which mode 10 is the horizontal mode, mode 26 is the vertical mode, and modes 2, 18, and 34 are diagonal modes. The intra prediction modes are signaled by three most probable modes (MPMs) and 32 remaining modes.

[0017] Figure 1C shows the intra-prediction modes used in VVC. In VVC, there are a total of 95 intra-prediction modes as shown in Figure 1C, where mode 18 is a horizontal mode, mode 50 is a vertical mode, and modes 2, 34, and 66 are diagonal modes. Modes 1 to 14 and modes 67 to 80 are called wide-angle intra-prediction (WAIP) modes.

[0018] The mapping of intra-prediction direction bits in a coded video bitstream representing a direction may vary from one video coding technique to another, ranging, for example, from a simple direct mapping of prediction directions to complex adaptation schemes including intra-prediction modes, codewords, MPMs, and similar techniques. However, in all cases, there may be some directions that are statistically less likely to occur in the video content than some other directions. Since the goal of video compression is to reduce redundancy, in a well-performing video coding technique, these less likely directions are represented by a greater number of bits than the more likely directions. Summary of the Invention [Means for solving the problem]

[0019] According to an example embodiment, a method of video decoding performed in a video decoder includes determining whether a first block associated with a second block is coded in a block differential pulse code modulation (BDPCM) mode. The method further includes, in response to determining that the first block is coded in the BDPCM mode, associating the first block with an intra-prediction mode value based on a BDPCM direction flag. The method further includes determining an intra-prediction mode value for the second block using the intra-prediction mode value associated with the first block. The method further includes reconstructing the second block using the determined intra-prediction mode value.

[0020] According to an example embodiment, a video decoder for video decoding includes a processing circuit configured to determine whether a first block associated with a second block is coded in a block differential pulse code modulation (BDPCM) mode. In response to determining that the first block is coded in the BDPCM mode, the processing circuit is further configured to associate the first block with an intra-prediction mode value based on a BDPCM direction flag. The processing circuit is further configured to determine an intra-prediction mode value for the second block using the intra-prediction mode value associated with the first block. The processing circuit is further configured to reconstruct the second block using the determined intra-prediction mode value.

[0021] According to an exemplary embodiment, a non-transitory computer-readable medium stores instructions that, when executed by a processor in a video decoder, cause the processor to execute a method including determining whether a first block associated with a second block is coded in a block differential pulse code modulation (BDPCM) mode. The method further includes, in response to determining that the first block is coded in the BDPCM mode, associating the first block with an intra-prediction mode value based on a BDPCM direction flag. The method further includes determining an intra-prediction mode value for the second block using the intra-prediction mode value associated with the first block. The method further includes recovering the second block using the determined intra-prediction mode value.

[0022] Further features, nature and various advantages of the disclosed subject matter will become more apparent from the following detailed description and the accompanying drawings. [Brief description of the drawings]

[0023] [Figure 1A] FIG. 2 is a schematic diagram of an example subset of intra-prediction modes. [Figure 1B] FIG. 2 is a diagram of an example intra-prediction direction. [Figure 1C] FIG. 2 is a diagram of an example intra-prediction direction. [Diagram 2] 1 is a schematic diagram of a simplified block diagram of a communication system (200), according to one embodiment. [Diagram 3] 1 is a schematic diagram of a simplified block diagram of a communication system (300), according to one embodiment. [Figure 4] FIG. 2 is a schematic diagram of a simplified block diagram of a decoder according to one embodiment. [Diagram 5] FIG. 2 is a schematic diagram of a simplified block diagram of an encoder according to one embodiment. [Figure 6] FIG. 4 is a block diagram of an encoder according to another embodiment. [Figure 7] FIG. 4 is a block diagram of a decoder according to another embodiment. [Figure 8] 1 is a schematic diagram of a current block and its surrounding neighboring blocks; [Figure 9] FIG. 2 illustrates one embodiment of a process performed by a decoder. [Figure 10] FIG. 1 is a schematic diagram of a computer system according to one embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0024] FIG. 2 shows a simplified block diagram of a communication system (200) according to one embodiment of the present disclosure. The communication system (200) includes, for example, a plurality of terminal devices that can communicate with each other via a network (250). For example, the communication system (200) includes a first pair of terminal devices (210) and (220) interconnected via the network (250). In the example of FIG. 2, the first pair of terminal devices (210) and (220) perform unidirectional transmission of data. For example, the terminal device (210) can code video data (e.g., a stream of video pictures captured by the terminal device (210)) for transmission to another terminal device (220) via the network (250). The encoded video data can be transmitted in the form of one or more coded video bitstreams. The terminal device (220) can receive the coded video data from the network (250), decode the coded video data to reconstruct the video pictures, and display the video pictures according to the reconstructed video data. Unidirectional data transmission may be common, such as in media serving applications.

[0025] In another example, the communication system (200) includes a second pair of terminal devices (230) and (240) performing bidirectional transmission of coded video data, which may occur, for example, during a video conference. In the case of bidirectional transmission of data, in one example, each of the terminal devices (230) and (240) can code video data (e.g., a stream of video pictures captured by the terminal device) for transmission to the other of the terminal devices (230) and (240) over the network (250). Each of the terminal devices (230) and (240) can also receive coded video data transmitted by the other of the terminal devices (230) and (240), can decode the coded video data to recover the video pictures, and can display the video pictures on an accessible display device according to the recovered video data.

[0026] In the example of FIG. 2, the terminal devices (210), (220), (230), and (240) may be depicted as a server, a personal computer, and a smartphone, although the principles of the present disclosure need not be so limited. The embodiments of the present disclosure find application with laptop computers, tablet computers, media players, and / or dedicated video conferencing equipment. The network (250) represents any number of networks that convey coded video data between the terminal devices (210), (220), (230), and (240), including, for example, wired (wired) and / or wireless communication networks. The communication network (250) may exchange data in circuit-switched and / or packet-switched channels. Representative networks include telecommunications networks, local area networks, wide area networks, and / or the Internet. The architecture and topology of the network (250) may not be important to the operation of the present disclosure for purposes of this description, unless otherwise described herein below.

[0027] 3 shows an arrangement of a video encoder and a video decoder in a streaming environment as one 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 television, storage of compressed video on digital media including CDs, DVDs, memory sticks, etc.

[0028] The streaming system may include a video source (301), which may include, for example, a capture subsystem (313), which may include, for example, a digital camera, that creates a stream of uncompressed video pictures (302). In one example, the stream of video pictures (302) includes samples taken by a digital camera. The stream of video pictures (302), depicted as thick lines to emphasize a larger amount of data when compared to the encoded video data (304) (or coded video bitstream), may be processed by an electronic device (320) that includes a video encoder (303) coupled to the video source (301). The video encoder (303) may include hardware, software, or a combination thereof to enable or implement aspects of the disclosed subject matter, as described in more detail below. The encoded video data (304) (or coded video bitstream (304)), depicted as thin lines to emphasize a smaller amount of data when compared to the stream of video pictures (302), may be stored in a streaming server (305) for future use. One or more streaming client subsystems, such as the client subsystems (306) and (308) of FIG. 3, can access the streaming server (305) to retrieve copies (307) and (309) of the encoded video data (304). The client subsystem (306) can include, for example, a video decoder (310) within an electronic device (330). The video decoder (310) decodes an input copy (307) of the encoded video data and creates an output stream (311) of video pictures that can be rendered on a display (312) (e.g., a display screen) or other rendering device (not depicted). In some streaming systems, the encoded video data (304), (307), and (309) (e.g., a video bitstream) can be encoded according to a particular video coding / compression standard. Examples of such standards include ITU-T Recommendation H.265.In one example, the developing video coding standard is informally known as Versatile Video Coding (VVC), and the disclosed subject matter may be used in the context of VVC.

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

[0030] 4 shows a block diagram of a video decoder (410) according to one embodiment of the present disclosure. The video decoder (410) may be included in an electronic device (430). The electronic device (430) may include a receiver (431) (e.g., a receiving circuit). The video decoder (410) may be used in place of the video decoder (310) of the example of FIG. 3.

[0031] The receiver (431) may receive one or more coded video sequences, in the same or another embodiment, one coded video sequence at a time, to be decoded by the video decoder (410), with the decoding of each coded video sequence being independent of the other coded video sequences. The coded video sequences may be received from a channel (401), which may be a hardware / software link to a storage device that stores the coded video data. The receiver (431) may receive the coded video data along with other data, e.g., coded audio data and / or auxiliary data streams, that may be forwarded to their respective using entities (not depicted). The receiver (431) may separate the coded video sequences from the other data. To combat network jitter, a buffer memory (415) may be coupled between the receiver (431) and the entropy decoder / parser (420) (hereinafter, "parser (420)"). In certain applications, the buffer memory (415) is part of the video decoder (410). In other applications, it may be outside the video decoder (410) (not depicted). In still other applications, there may be a buffer memory (not depicted) outside the video decoder (410), for example, to combat network jitter, plus another buffer memory (415) inside the video decoder (410), for example, to handle playout timing. When the receiver (431) is receiving data from a store / forward device of sufficient bandwidth and controllability, or from an equally synchronous network, the buffer memory (415) may not be needed or may be small. For use with best-effort packet networks such as the Internet, the buffer memory (415) may be needed, may be relatively large, may be advantageously adaptively sized, and may be implemented at least in part in an operating system or similar element (not depicted) outside the video decoder (410).

[0032] The video decoder (410) may include a parser (420) to recover symbols (421) from the coded video sequence. These categories of symbols include information used to manage the operation of the video decoder (410) and potentially information for controlling a rendering device such as a rendering device (412) (e.g., a display screen) that is not an integral part of the electronic device (430) but may be coupled to the electronic device (430) as shown in FIG. 4. The control information for the rendering device may be in the form of a supplemental enhancement information (SEI message) or a video usability information (VUI) parameter set fragment (not depicted). The parser (420) may parse / entropy decode the received coded video sequence. The 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, etc., with or without context sensitivity. The parser (420) can extract a set of subgroup parameters for at least one of the subgroups of pixels in the video decoder from the coded video sequence based on at least one parameter corresponding to the group. The subgroups can include groups of pictures (GOPs), pictures, tiles, slices, macroblocks, coding units (CUs), blocks, transform units (TUs), prediction units (PUs), etc. The parser (420) can also extract information from the coded video sequence, such as transform coefficients, quantizer parameter values, motion vectors, etc.

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

[0034] The recovery of the symbols (421) can involve a number of different units, depending on the type of coded video picture or part thereof (inter-picture and intra-picture, inter-block and intra-block, etc.), as well as other factors. Which units are involved and how can be controlled by subgroup control information parsed from the coded video sequence by the parser (420). The flow of such subgroup control information between the parser (420) and the following units is not depicted for the sake of clarity.

[0035] Beyond the functional blocks already mentioned, the video decoder (410) can be conceptually subdivided into several functional units, as described below. In an actual implementation operating under commercial constraints, many of these units will interact closely with each other and may be at least partially integrated with each other. However, for purposes of describing the disclosed subject matter, the following conceptual subdivision into functional units is appropriate:

[0036] The first unit is a scalar / inverse transform unit (451), which receives quantized transform coefficients as well as control information from the parser (420) including which transform to use, block size, quantization coefficients, quantization scaling matrices, etc. as symbols (421). The scalar / inverse transform unit (451) can output blocks containing sample values ​​that can be input to an aggregator (455).

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

[0038] In other cases, the output samples of the scalar / inverse transform unit (451) may relate to an inter-coded, potentially motion-compensated block. In such cases, the motion compensated prediction unit (453) may access the reference picture memory (457) to fetch samples used for prediction. After motion compensating the fetched samples according to the symbols (421) related to the block, these samples may be added to the output of the scalar / inverse transform unit (451) by the aggregator (455) to generate output sample information (in this case referred to as residual samples or residual signals). The addresses in the reference picture memory (457) from which the motion compensated prediction unit (453) fetches the prediction samples may be controlled by motion vectors available to the motion compensated prediction unit (453) in the form of symbols (421), which may have, for example, X, Y, and reference picture components. Motion compensation may also include interpolation of sample values ​​fetched from the reference picture memory (457) when sub-sample accurate motion vectors are used, motion vector prediction mechanisms, etc.

[0039] The output samples of the aggregator (455) may be subjected to various loop filtering techniques in the loop filter unit (456). 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 (456) as symbols (421) from the parser (420), but may also be responsive to previously reconstructed and loop filtered sample values ​​as well as to meta-information obtained during decoding of previous portions (in decoding order) of the coded picture or coded video sequence.

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

[0041] Once a particular coded picture is fully reconstructed, it can be used as a reference picture for future prediction. For example, once a coded picture corresponding to a current picture is fully reconstructed and the coded picture is identified (e.g., by the parser (420)) as a reference picture, the current picture buffer (458) can become part of the reference picture memory (457), and any unused current picture buffer can be reallocated before beginning reconstruction of the next coded picture.

[0042] The video decoder (410) may perform decoding operations according to a given video compression technique within a standard, such as ITU-T Rec. H.265. The coded video sequence may conform to the syntax specified by the video compression technique or standard being used, in the sense that the coded video sequence adheres to both the syntax of the video compression technique or standard and the profile documented in the video compression technique. Specifically, the profile may select some tools from all tools available in the video compression technique or standard as the only tools available for use under that profile. Also, what is required for compliance is that the complexity of the coded video sequence is within a range defined by the level of the video compression technique or standard. In some cases, the level limits the maximum picture size, the maximum frame rate, the maximum reconstructed sample rate (e.g., measured in megasamples per second), the maximum reference picture size, etc. The limits set by the level may in some cases be further limited by the specification of a hypothetical reference decoder (HRD) and metadata for HRD buffer management signaled within the coded video sequence.

[0043] In one embodiment, the receiver (431) can receive additional (redundant) data along with the encoded video. The additional data may be included as part of the coded video sequence. The additional data may be used by the video decoder (410) to properly decode the data and / or to more accurately recover 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.

[0044] 5 shows a block diagram of a video encoder (503) according to one embodiment of the present disclosure. The video encoder (503) is included in an electronic device (520). The electronic device (520) includes a transmitter (540) (e.g., a transmission circuit). The video encoder (503) can be used in place of the example video encoder (303) of FIG.

[0045] The video encoder (503) can receive video samples from a video source (501) (which is not part of the electronic device (520) in the example of FIG. 5) that can capture video images that are encoded by the video encoder (503). In another example, the video source (501) is part of the electronic device (520).

[0046] The video source (501) may provide a source video sequence that is coded by the video encoder (503) 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 Y CrCB, RGB, ...), and any suitable sampling structure (e.g., Y CrCb 4:2:0, Y CrCb 4:4:4). In a media serving system, the video source (501) may be a storage device that stores previously prepared video. In a video conferencing system, the video source (501) may be a camera that captures local image information as a video sequence. The video data may be provided as a number of individual pictures that convey motion when viewed in sequence. The pictures themselves may be organized as a spatial array of pixels, each of which may contain one or more samples, depending on the sampling structure, color space, etc., in use. Those skilled in the art can easily understand the relationship between pixels and samples. The following description focuses on samples.

[0047] According to one embodiment, the video encoder (503) can code and compress pictures of a source video sequence into a coded video sequence (543) in real-time or under any other time constraint required by an application. Fulfilling the appropriate coding rate is one function of the controller (550). In some embodiments, the controller (550) controls and is operatively coupled to other functional units described below. For clarity, coupling is not depicted. Parameters set by the controller (550) can include rate control related parameters (picture skip, quantizer, lambda value for rate distortion optimization techniques, ...), picture size, group of pictures (GOP) layout, maximum motion vector search range, etc. The controller (550) can be configured to have other appropriate functions associated with the video encoder (503) optimized for a particular system design.

[0048] In some embodiments, the video encoder (503) is configured to operate in a coding loop. As an oversimplified explanation, in one example, the coding loop can include a source coder (530) (e.g., responsible for creating symbols, such as a symbol stream, based on an input picture to be coded and a reference picture), as well as a (local) decoder (533) embedded in the video encoder (503). The decoder (533) reconstructs the symbols to create sample data in a manner similar to that which the (remote) decoder also creates (since any compression between the symbols and the coded video bitstream is lossless in the video compression techniques contemplated in the disclosed subject matter). The reconstructed sample stream (sample data) is input to a reference picture memory (534). Since the decoding of the symbol stream leads to a bit-exact result regardless of the location of the decoder (local or remote), the content in the reference picture memory (534) is also bit-exact between the local and remote encoders. In other words, the prediction part of the encoder "sees" exactly the same sample values ​​as the reference picture samples that the decoder "sees" when using the prediction during decoding. This basic principle of reference picture synchrony (and the resulting drift when synchrony cannot be maintained, e.g., due to channel errors) is also used in several related technologies.

[0049] The operation of the "local" decoder (533) may be the same as the operation of a "remote" decoder, such as the video decoder (410), already described in detail above in conjunction with Figure 4. However, and with brief reference to Figure 4, because symbols are available and the encoding / decoding of symbols into a coded video sequence by the entropy coder (545) and parser (420) may be lossless, the entropy decoding portion of the video decoder (410), including the buffer memory (415), and the parser (420), may not be fully implemented in the local decoder (533).

[0050] An observation that can be made at this point is that any decoder technology other than parsing / entropy decoding present in a decoder must necessarily be present in a corresponding encoder in substantially identical functional form. For this reason, the disclosed subject matter focuses on the operation of the decoder. A description of the encoder technology can be omitted, since it is the inverse of the decoder technology described generically. Only in certain areas is more detailed description necessary, which is provided below.

[0051] In operation, in some examples, the source coder (530) 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 (532) codes differences between pixel blocks of the input picture and pixel blocks of the reference pictures that may be selected as prediction references for the input picture.

[0052] The local video decoder (533) can decode the coded video data of pictures that may be designated as reference pictures based on the symbols created by the source coder (530). The operation of the coding engine (532) can advantageously be a lossy process. When the coded video data can be decoded in a video decoder (not shown in FIG. 5), the reconstructed video sequence can be a replica of the source video sequence, usually with some errors. The local video decoder (533) can replicate the decoding process that may be performed by the video decoder on the reference pictures, such that the reconstructed reference pictures are stored in the reference picture cache (534). In this way, the video encoder (503) can locally store copies of reconstructed reference pictures that have common content as reconstructed reference pictures obtained by a far-end video decoder (without transmission errors).

[0053] The predictor (535) may perform a prediction search for the coding engine (532). That is, for a new picture to be coded, the predictor (535) may search the reference picture memory (534) 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 (535) may operate on sample blocks per pixel block to find a suitable prediction reference. In some cases, as determined by the search results obtained by the predictor (535), the input picture may have prediction references drawn from multiple reference pictures stored in the reference picture memory (534).

[0054] The controller (550) can manage the coding operations of the source coder (530), including, for example, setting the parameters and subgroup parameters used to encode the video data.

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

[0056] The transmitter (540) can buffer the coded video sequence created by the entropy coder (545) and prepare it for transmission over a communication channel (560), which may be a hardware / software link to a storage device that stores the coded video data. The transmitter (540) can merge the coded video data from the video coder (503) with other data to be transmitted, such as coded audio data and / or auxiliary data streams (sources not shown).

[0057] The controller (550) can manage the operation of the video encoder (503). During coding, the controller (550) can assign a particular coded picture type to each coded picture, which may affect the coding techniques that may be applied to the respective picture. For example, pictures may often be assigned as one of the following picture types:

[0058] An intra picture (I-picture) may be a picture that can be coded and decoded without using any other picture in a sequence as a source of prediction. Some video codecs allow various types of intra pictures, including, for example, independent decoder refresh ("IDR") pictures. Those skilled in the art are aware of these variations of I-pictures, as well as their respective uses and characteristics.

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

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

[0061] A source picture is usually spatially subdivided into multiple sample blocks (e.g., blocks of 4x4, 8x8, 4x8, or 16x16 samples each) and coded block by block. Blocks may be predictively coded with reference to other (already coded) blocks as determined by the coding assignment applied to the respective picture of the block. For example, blocks of an I picture may be non-predictively coded, or they may be 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.

[0062] The video encoder (503) may perform coding operations in accordance with a given video coding technique or standard, such as ITU-T Rec. H.265. In its operations, the video encoder (503) may perform various compression operations, including predictive coding operations that exploit temporal and spatial redundancies in the input video sequence. Thus, the coded video data may conform to a syntax specified by the video coding technique or standard being used.

[0063] In one embodiment, the transmitter (540) can transmit additional data along with the encoded video. The source coder (530) 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.

[0064] A video may be captured as multiple source pictures (video pictures) in a time sequence. Intra-picture prediction (often abbreviated as intra prediction) exploits spatial correlation within a given picture, while inter-picture prediction exploits correlation (temporal or other) between pictures. In one example, a particular picture being encoded / decoded, called the current picture, is divided into blocks. When a block in the current picture is similar to a reference block in a reference picture that was previously coded and is still buffered in the video, the block in the current picture can be coded by a vector called a motion vector. The motion vector points to a reference block in the reference picture and may have a third dimension that identifies the reference picture if multiple reference pictures are used.

[0065] In some embodiments, a bi-prediction technique may be used in inter-picture prediction. According to the bi-prediction technique, two reference pictures, such as a first reference picture and a second reference picture, both of which are earlier in decoding order than the current picture in the video (but may be past and future in display order, respectively), are used. A block in the current picture may 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 may be predicted by a combination of the first reference block and the second reference block.

[0066] Furthermore, merge mode techniques can be used in inter-picture prediction to increase coding efficiency.

[0067] According to some 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, according to the HEVC standard, a picture in a sequence of video pictures is divided into coding tree units (CTUs) for compression, and the CTUs in a picture have the same size, such as 64×64 pixels, 32×32 pixels, or 16×16 pixels. In general, a CTU includes three coding tree blocks (CTBs), one luma CTB and two chroma CTBs. Each CTU can be recursively quadtree partitioned into one or more coding units (CUs). For example, a 64×64 pixel CTU can be partitioned into one 64×64 pixel CU, or four 32×32 pixel CUs, or sixteen 16×16 pixel CUs. In one example, each CU is analyzed to determine the prediction type of the CU, such as an inter prediction type or an intra prediction type. The CU is partitioned into one or more prediction units (PUs) depending on the temporal and / or spatial predictability. In general, each PU includes one luma prediction block (PB) and two chroma PBs. In one embodiment, prediction operations in coding (encoding / decoding) are performed in units of prediction blocks. Using a luma prediction block as an example of a prediction block, the prediction block includes a matrix of pixel values ​​(e.g., luma values) of 8x8 pixels, 16x16 pixels, 8x16 pixels, 16x8 pixels, etc.

[0068] 6 shows a diagram of a video encoder (603) according to another embodiment of the present disclosure. The video encoder (603) 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. In one example, the video encoder (603) is used in place of the video encoder (303) of the example of FIG. 3.

[0069] In an HEVC example, the video encoder (603) receives a matrix of sample values ​​for a processing block, such as a predictive block of 8×8 samples. The video encoder (603) determines whether the processing block is optimally coded using intra-mode, inter-mode, or bi-predictive mode, e.g., using rate-distortion optimization. When the processing block is coded in intra-mode, the video encoder (603) can code the processing block into a coded picture using intra-prediction techniques, and when the processing block is coded in inter-mode or bi-predictive mode, the video encoder (603) can code the processing block into a coded picture using inter-prediction or bi-prediction techniques, respectively. In certain video coding techniques, the merge mode may be an inter-picture prediction sub-mode in which motion vectors are derived from one or more motion vector predictors without the benefit of coded motion vector components outside the predictors. In certain other video coding techniques, there may be motion vector components applicable to the current block. In one example, the video encoder (603) includes other components, such as a mode decision module (not shown), to determine the mode of the processing block.

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

[0071] The inter-encoder (630) is configured to receive samples of a current block (e.g., a processing block), compare the block to one or more reference blocks in a reference picture (e.g., blocks in a previous picture and a subsequent picture), generate inter-prediction information (e.g., a description of redundancy information, motion vectors, merge mode information due to inter-coding techniques), and calculate an inter-prediction result (e.g., a predictive block) based on the inter-prediction information using any suitable technique. In some examples, the reference picture is a decoded reference picture that is decoded based on the coded video information.

[0072] The intra encoder (622) is configured to receive samples of a current block (e.g., a processing block), possibly compare the block with already coded blocks in the same picture, generate quantized coefficients after transformation, and possibly also generate intra prediction information (e.g., intra prediction direction information according to one or more intra encoding techniques). In one example, the intra encoder (622) also calculates intra prediction results (e.g., prediction blocks) based on the intra prediction information and reference blocks in the same picture.

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

[0074] The residual calculator (623) is configured to calculate a difference (residual data) between the received block and a prediction result selected from the intra-encoder (622) or the inter-encoder (630). The residual encoder (624) is configured to operate on the residual data to encode the residual data and generate transform coefficients. In one example, the residual encoder (624) is configured to transform the residual data from the spatial domain to the frequency domain and generate transform coefficients. The transform coefficients then undergo a quantization process to obtain quantized transform coefficients. In various embodiments, the video encoder (603) also includes a residual decoder (628). The residual decoder (628) is configured to perform an inverse transform and generate decoded residual data. The decoded residual data can be used by the intra-encoder (622) and the inter-encoder (630) as appropriate. For example, the inter-encoder (630) can generate decoded blocks based on the decoded residual data and the inter-prediction information, and the intra-encoder (622) can generate decoded blocks based on the decoded residual data and the intra-prediction information. The decoded blocks are appropriately processed to generate decoded pictures, which may be buffered in a memory circuit (not shown) and used as reference pictures in some examples.

[0075] The entropy encoder (625) is configured to format the bitstream to include the encoded block. The entropy encoder (625) is configured to include various information according to an appropriate standard, such as the HEVC standard. In one example, the entropy encoder (625) is configured to include general control data, selected prediction information (e.g., intra-prediction information or inter-prediction information), residual information, and other appropriate information in the bitstream. It should be noted that, according to the disclosed subject matter, no residual information is present when coding a block in a merged sub-mode of either the inter-mode or the bi-prediction mode.

[0076] 7 shows a diagram of a video decoder (710) according to another embodiment of the present disclosure. The video decoder (710) is configured to receive coded pictures that are part of a coded video sequence and to decode the coded pictures to generate reconstructed pictures. In one example, the video decoder (710) is used in place of the video decoder (310) of the example of FIG. 3.

[0077] In the example of FIG. 7, the video decoder (710) includes an entropy decoder (771), an inter-decoder (780), a residual decoder (773), a reconstruction module (774), and an intra-decoder (772) coupled together as shown in FIG.

[0078] The entropy decoder (771) may be configured to recover from the 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 prediction information or inter prediction information) that may identify the mode in which the block is coded (e.g., intra mode, inter mode, bi-prediction mode, merge submode or the latter two of another submode), certain samples or metadata used for prediction by the intra decoder (772) or inter decoder (780), respectively, residual information in the form of quantized transform coefficients, etc. In one example, when the prediction mode is an inter mode or bi-prediction mode, the inter prediction information is provided to the inter decoder (780), and when the prediction type is an intra prediction type, the intra prediction information is provided to the intra decoder (772). The residual information may undergo inverse quantization and is provided to the residual decoder (773).

[0079] The inter decoder (780) is configured to receive the inter prediction information and to generate inter prediction results based on the inter prediction information.

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

[0081] The residual decoder (773) is configured to perform inverse quantization to extract inverse quantized transform coefficients, and process the inverse quantized transform coefficients to transform the residual from the frequency domain to the spatial domain. The residual decoder (773) may also require certain control information (to include quantizer parameters (QP)), which may be provided by the entropy decoder (771) (this may be only a small amount of control information, so the data path is not depicted).

[0082] The restoration module (774) combines, in the spatial domain, the residual output by the residual decoder (773) with the prediction result (possibly output by an inter-prediction module or an intra-prediction module) to form a restored block, which may be part of a restored picture, which in turn may be part of a restored video; it should be noted that other appropriate operations, such as deblocking operations, may be performed to improve appearance.

[0083] It should be noted that the video encoders (303), (503), and (603) and the video decoders (310), (410), and (710) may be implemented using any suitable technique. In one embodiment, the video encoders (303), (503), and (603) and the video decoders (310), (410), and (710) may be implemented using one or more integrated circuits. In another embodiment, the video encoders (303), (503), and (503) and the video decoders (310), (410), and (710) may be implemented using one or more processors executing software instructions.

[0084] According to some embodiments, the size of the most probable mode (MPM) list is set equal to six for both adjacent reference lines (e.g., zero reference line) and non-adjacent reference lines (e.g., non-zero reference line). The positions of the adjacent modes used to derive the six MPM candidates may also be the same for adjacent and non-adjacent reference lines shown in FIG. 8. In FIG. 8, block A and block B denote the coding units adjacent to the top and left of the current block 800, and variables candIntraPredModeA and candIntraPredModeB indicate the associated intra-prediction modes of blocks A and B, respectively. The variables candIntraPredModeA and candIntraPredModeB may be initially set equal to INTRA_PLANAR. If block A (or B) is marked as available, candIntraPredModeA (or candIntraPredModeB) may be set equal to the actual intra-prediction mode of block A (or B).

[0085] The MPM candidate derivation process may be different for adjacent and non-adjacent baselines. For example, for zero baseline, if the modes of two adjacent blocks are planar or DC modes, a default mode is used to build the MPM list, with the first two candidates being planar and DC modes, and the remaining four modes being angular modes (e.g., angular default modes). For non-zero baseline, if the modes of two adjacent blocks are planar or DC modes, six angular default modes may be used to build the MPM list. One embodiment of the MPM list derivation process is shown in Appendix 1, where candModeList[x], where x=0..5, represents six MPM candidates, IntraLumaRefLineIdx[xCb][yCb] represents the baseline index of the predicted block, and IntraLumaRefLineIdx[xCb][yCb] can be 0, 1, or 3. In some examples, a unified intra-mode coding approach is implemented in which the planar mode is placed as the first MPM.

[0086] Block Differential Pulse Code Modulation (BPDCM) is an intra-coding tool that uses a Differential Pulse Code Modulation (DPCM) technique at the block level. In some embodiments, bdpcm_flag is sent at the CU level whenever it is a luma intra CU with each dimension less than or equal to 32. This flag indicates whether normal intra coding or DPCM is used. This flag may be coded using a single CABAC context.

[0087] In some embodiments, BDPCM uses the LOCO-I median edge detector (used in JPEG-LS). For a current pixel X with pixel A as its left neighbor, pixel B as its top neighbor, and C as its top-left neighbor, the prediction P(X) is Formula (1): P(X)=min(A,B) if C≧max(A,B) max(A,B) if C≦min(A,B) A+BC otherwise may be determined by

[0088] The predictor may use unfiltered reference pixels when predicting from the top row and left column of a CU. The predictor may then use the reconstructed pixels for the remaining CUs. The pixels may be processed in raster scan order within a CU. The prediction error may be quantized in the spatial domain after rescaling in a manner identical to the transform skip quantizer. Each pixel may be reconstructed by adding the dequantized prediction error to the prediction. The reconstructed pixel may then be used to predict the next pixel in raster scan order. The amplitude and sign of the quantized prediction error may be coded separately.

[0089] In some embodiments, cbf_bdpcm_flag is coded. If this flag is equal to 0, all amplitudes of the block may be decoded as 0. If this flag is equal to 1, all amplitudes of the block may be coded individually in raster scan order. To keep the complexity low, in some examples, the amplitudes may be limited to a maximum of 31 (inclusive). The amplitudes may be coded using unary binarization with three contexts for the 1st bin, then one context for each additional bin up to the 12th bin, and one context for all remaining bins. The code may be coded in bypass mode for every zero residual.

[0090] In some embodiments, to maintain the consistency of normal intra-mode prediction, the first mode in the MPM list is associated with the (non-transmitted) block DPCM CU and is available for MPM generation for subsequent blocks. The deblocking filter may be deactivated at the boundary between two BDPCM blocks, since neither block uses a transform stage that is typically responsible for blocking artifacts. In some embodiments, the BDPCM does not use any steps other than those disclosed herein. For example, the BPDCM does not use any transform.

[0091] According to some embodiments, the BDPCM method uses the reconstructed samples to predict rows or columns of a CU line by line. The signaled BDPCM direction can indicate whether vertical or horizontal prediction is used. The reference pixels used can be unfiltered samples. The prediction error can be quantized in the spatial domain. Pixels can be reconstructed by adding the dequantized prediction error to the prediction.

[0092] In some embodiments, as an alternative to BDPCM, a quantized residual domain BDPCM may be implemented. The signaling and prediction direction used in the quantized residual BDPCM may be the same as the BPCM scheme. Intra prediction may be performed on the whole block by sample copying with the same prediction direction (horizontal or vertical prediction) as the intra prediction. The residual may be quantized, and the delta between the quantized residual and the predictor (horizontal or vertical) quantization value of the quantized residual may be coded, which can be described in the following disclosed embodiments.

[0093] For a block of size M (rows) × N (columns), r i,j , 0≦i≦M-1, 0≦j≦N-1 be the prediction residual after performing intra prediction horizontally (copying the pixel value of the left neighbor across the predicted block line by line) or vertically (copying the upper neighbor across each line in the predicted block) using unfiltered samples from the upper or left block boundary samples. i,j ), 0≦i≦M-1, 0≦j≦N-1 is the residual r i,j where the residual is the difference between the original block values ​​and the predicted block values. BDPCM is then applied to the quantized residual samples, resulting in the element

[0094]

number

[0095] A modified M×N array with

[0096]

number

[0097] In some examples, when vertical BDPCM is signaled, Formula (2):

[0098]

number

[0099] It is.

[0100] In some examples, for horizontal prediction, a similar rule applies, where the residual quantized samples are Formula (3):

[0101]

number

[0102] may be obtained by

[0103] Residual Quantization Samples

[0104]

number

[0105] may be transmitted to the decoder. At the decoder side, in some examples, the above calculation may be reversed to obtain Q(r i,j ), 0≦i≦M−1, 0≦j≦N−1. In some embodiments, for vertical prediction, Formula (4):

[0106]

number

[0107] It is.

[0108] In some embodiments, for horizontal prediction: Formula (5):

[0109]

number

[0110] It is.

[0111] Inverse quantization residual Q -1 (Q(r i,j )) may be added to the intrablock prediction value to generate the reconstructed sample value. One advantage of this scheme is that the inverse DPCM may be performed on the fly during parsing of the coefficients by adding the predictor as the coefficients are parsed, or it may be performed after parsing. Thus, the division of the 4×N and N×4 blocks into two parallel processing blocks can be eliminated.

[0112] In some embodiments, a BDPCM coded block is associated with an intra prediction mode that is the first MPM (i.e., MPM0). As a result, when deriving the MPM list, if a neighboring block is coded in a BDPCM mode, its associated intra prediction mode (i.e., MPM0) is used. In addition, when a chroma block is coded using a DM mode and the co-located luma block is coded using a BDPCM mode, the intra prediction mode associated with the co-located luma block (i.e., MPM0) is used as the intra prediction mode of the current chroma block.

[0113] Table 1 (below) shows one embodiment of the syntax and semantics of the BDPCM method.

[0114] [Table 1]

[0115] In some embodiments, the variable bdpcm_flag[x0][y0] equal to 1 specifies that bdpcm_dir_flag is present in the coding unit that contains the luma coding block at position (x0, y0). In some embodiments, bdpcm_dir_flag[x0][y0] equal to 0 specifies that the prediction direction used in the bdpcm block is horizontal, otherwise the prediction direction is vertical.

[0116] As will be appreciated by those skilled in the art, BDPCM contributes significant coding gains on screen video content that is typically characterized by strong edges. However, when BDPCM is used with MPM or DM modes, BDPCM-coded blocks are always associated with planar modes, which may be detrimental to coding gains on screen video content. The embodiments of the present disclosure address these shortcomings.

[0117] The embodiments of the present disclosure may be used separately or combined in any order. Moreover, each of the methods, encoders, and decoders according to the embodiments of the present disclosure 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 in a non-transitory computer-readable medium. According to the embodiments of the present disclosure, the term block may be interpreted as a prediction block, a coding block, or a coding unit (i.e., CU).

[0118] According to some embodiments, horizontal prediction is used for BDPCM residual prediction when bdpcm_dir_flag is equal to 0, and vertical prediction is used for BDPCM residual prediction when bdpcm_dir_flag is equal to 1. However, in other embodiments, the reverse approach is also applied when the prediction directions of bdpcm_dir_flag equal to 0 and 1 are swapped.

[0119] In some embodiments, the horizontal intra prediction mode is represented using HOR_IDX, where in VVC, HOR_IDX corresponds to intra prediction mode INTRA_ANGULAR18, and in HEVC, HOR_IDX corresponds to intra prediction mode INTRA_ANGULAR10. In some embodiments, the vertical intra prediction mode is represented using VER_IDX, where in VVC, VER_IDX corresponds to intra prediction mode INTRA_ANGULAR50, and in HEVC, VER_IDX corresponds to intra prediction mode INTRA_ANGULAR26.

[0120] According to some embodiments, when deriving the most likely intra prediction mode, if a neighboring block is coded by a BDPCM mode, the neighboring block is associated with an intra prediction mode ipm that is derived using the value of bdpcm_dir_flag applied to this BDPCM coded neighboring block as follows: Formula (6): ipm=bdpcm_dir_flag==0?HOR_IDX:VER_IDX Here, HOR_IDX and VER_IDX represent horizontal and vertical intra prediction modes, respectively, and bdpcm_dir_flag equal to 0 indicates that horizontal prediction is used for BDPCM residual prediction, and bdpcm_dir_flag equal to 1 indicates that vertical prediction is used for BDPCM residual prediction. After a value is assigned to the intra prediction mode value ipm, this intra prediction mode value is considered as the intra prediction mode of neighboring blocks and is used to derive the most likely intra prediction mode of the current block.

[0121] Appendix 2 illustrates one embodiment of an MPM list derivation process, in which the bolded portion indicates how an intra-prediction mode for a BDPCM coded block is determined based on bdpcm_dir_flag. Exemplary inputs to this process may include (i) a luma position (xCb, yCb) that specifies the top-left sample of the current luma coding block relative to the top-left luma sample of the current picture, (ii) a variable cbWidth that specifies the width of the current coding block in luma samples, and (iii) a variable cbHeight that specifies the height of the current coding block in luma samples. In this process in Appendix 2, a luma intra-prediction mode IntraPredModeY[xCb][yCb] is derived.

[0122] Table 2 specifies values ​​and associated names of intra prediction modes IntraPredModeY[xCb][yCb]. In Table 2, in some examples, the intra prediction modes INTRA_LT_CCLM, INTRA_L_CCLM, and INTRA_T_CCLM are applicable only to chroma components.

[0123] [Table 2]

[0124] According to some embodiments, when deriving an intra prediction mode for a chroma block while its co-located luma block is coded using a BDPCM mode, if the chroma block is predicted using a DM mode, the intra prediction mode used to perform the intra prediction mode of this chroma block is derived as follows: Formula (7):dm=bdpcm_dir_flag==0?HOR_IDX:VER_IDX where HOR_IDX and VER_IDX represent the horizontal and vertical intra prediction modes, respectively, and bdpcm_dir_flag equal to 0 indicates that horizontal prediction is used for BDPCM residual prediction, and bdpcm_dir_flag equal to 1 indicates that vertical prediction is used for BDPCM residual prediction. Thus, after the value dm is assigned, this value is used as the intra prediction mode for the chroma block.

[0125] According to some embodiments, the context used for entropy coding bdpcm_dir_flag depends on the value of bdpcm_dir_flag of the neighboring block and / or whether the neighboring block is coded using a horizontal or vertical intra prediction mode.

[0126] In one embodiment, only the values ​​of bdpcm_dir_flag and bdpcm_flag of the neighboring blocks are used to derive the context that is applied to entropy code the bdpcm_dir_flag of the current block. In one example, two neighboring blocks are used (i.e., the left is block A in FIG. 8 and the top is block B in FIG. 8), and the context value (ctx) is derived as follows: Equation (8): dpcm_left = dpcm_flag left ?(bdpcm_dir_flag left ?1:2):0 Equation (9): dpcm_top = dpcm_flag top ?(bdpcm_dir_flag top ?1:2):0 Formula (10): ctx=dpcm_left*3+dpcm_top where dpcm_flag left and dpcm_flag top points to the dpcm_flag of the left and top neighboring blocks, respectively, and bdpcm_dir_flag left and bdpcm_dir_flag top points to the bdpcm_dir_flag of the left and top neighboring blocks, respectively. After ctx is assigned, this value may be used as an index to select one of multiple context models.

[0127] In addition to the previous examples, the nine contexts may be grouped in a predefined manner, resulting in fewer contexts being applied. For example, ctx=8 and ctx=7 in the previous example may be merged and only one context may be used for both of these ctx values.

[0128] In some embodiments, two neighboring blocks (i.e., left and top) are used and the context value (ctx) is derived as follows, where dpcm_flag left and dpcm_flag toppoints to the dpcm_flag of the left and top neighboring blocks, respectively, and bdpcm_dir_flag left and bdpcm_dir_flag top points to the bdpcm_dir_flag of the left and top neighboring blocks, respectively. Equation (11): dpcm_left = dpcm_flag left ?(bdpcm_dir_flag left ?1:2):0 Equation (12): dpcm_top = dpcm_flag top ?(bdpcm_dir_flag top ?1:2):0 Equation (13): ctx=(dpcm_left==dpcm_top)?dpcm_left:0

[0129] 9 illustrates one embodiment of a process performed by a decoder, such as the video decoder (710). The process may begin with determining (S900) whether a first block associated with a second block is coded in BDPCM mode. In some examples, the first block may be a block that is a spatial neighbor of a second block located in the same picture as the first block. In other examples, the first block may be a luma block and the second block is a chroma block, where the luma block is co-located with the chroma block.

[0130] If the first block is coded in BDPCM mode, the process proceeds from step (S900) to step (S902), where the first block is associated with an intra-prediction mode value based on a BDPCM direction flag. For example, bdpcm_flag may indicate that the block is coded in BDPCM mode, and bdpcm_dir_flag may be used to determine whether to use a horizontal or vertical direction. The process proceeds to step (S904), where the intra-prediction mode value associated with the first block is used to determine an intra-prediction mode value for the second block. For example, based on the BDPCM direction flag, the intra-prediction mode value may be one of a horizontal intra-prediction mode value and a vertical intra-prediction mode value. Furthermore, if the first block is a spatial neighbor of the second block, the intra-prediction mode value of the first block may be used to create an MPM list, and the MPM list is used to derive the intra-prediction mode value of the second block. Moreover, if the second block is a chroma block predicted using a DM mode and the first block is a co-located luma block, the intra prediction mode value of the second block may be determined based on the intra prediction mode value of the first block.

[0131] The process proceeds to step (S906), where the second block is reconstructed using the determined intra-prediction mode value of the second block. The process illustrated in FIG. 9 may end after step (S906) is completed. Furthermore, returning to step (S900), if the first block is not coded in BDPCM mode, the process illustrated in FIG. 9 may end.

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

[0133] The computer software may be coded using any suitable machine or computer language that can be assembled, compiled, linked, or similar mechanisms to produce code including instructions that can be executed directly, or via interpretation, microcode execution, etc., by one or more computer central processing units (CPUs), graphics processing units (GPUs), etc.

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

[0135] 10 for the computer system (1000) are exemplary in nature and are not intended to suggest any limitations as to the scope of use or functionality of the computer software implementing the embodiments of the present disclosure. The arrangement of components should not be interpreted as having any dependency or requirement regarding any one or combination of components illustrated in the exemplary embodiment of the computer system (1000).

[0136] The computer system (1000) may include certain human interface input devices. Such human interface input devices may respond to input by one or more human users, for example, via tactile input (such as keystrokes, swipes, data glove movements), audio input (such as voice, clapping), visual input (such as gestures), or olfactory input (not depicted). Human interface devices may also be used to capture certain media that are not necessarily directly associated with conscious human input, such as audio (such as voice, music, ambient sounds), images (such as scanned images, photographic images obtained from a still image camera), and video (such as two-dimensional video, three-dimensional video including stereoscopic video, etc.).

[0137] The input human interface devices may include one or more of a keyboard (1001), a mouse (1002), a trackpad (1003), a touch screen (1010), a data glove (not shown), a joystick (1005), a microphone (1006), a scanner (1007), and a camera (1008) (only one of each is depicted).

[0138] The computer system (1000) may also include certain human interface output devices. Such human interface output devices may stimulate one or more of the human user's senses, for example, through haptic output, sound, light, and smell / taste. Such human interface output devices may include haptic output devices (e.g., haptic feedback via a touch screen (1010), data gloves (not shown), or joystick (1005), although there may be haptic feedback devices that do not function as input devices), audio output devices (such as speakers (1009), headphones (not depicted)), visual output devices (such as screens (1010), including CRT screens, LCD screens, plasma screens, OLED screens, each with or without touch screen input capability, each with or without haptic feedback capability, some of which may be capable of outputting two-dimensional visual output or three- or more-dimensional output via means such as stereographic output, virtual reality glasses (not depicted), holographic displays, and smoke tanks (not depicted)), and printers (not depicted).

[0139] The computer system (1000) may also include human-accessible storage devices and their associated media, such as optical media, including CD / DVD ROM / RW (1020) with CD / DVD or similar media (1021), thumb drives (1022), removable hard drives or solid state drives (1023), legacy magnetic media such as tapes and floppy disks (not depicted), and specialized ROM / ASIC / PLD based devices (not depicted) such as security dongles.

[0140] 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.

[0141] The computer system (1000) may also include an interface to one or more communication networks. The network may be, for example, wireless, wired, optical. The network may further be local, wide area, metropolitan, vehicular and industrial, real-time, delay tolerant, etc. Examples of networks include local area networks such as Ethernet, wireless LAN, cellular networks including GSM, 3G, 4G, 5G, LTE, etc., TV wired or wireless wide area digital networks including cable TV, satellite TV, and terrestrial broadcast TV, vehicular and industrial including CANBus, etc. Certain networks typically require an external network interface adapter attached to a specific general-purpose data port (e.g., a USB port of the computer system (1000)) or peripheral bus (1049), while other networks are typically integrated into the core of the computer system (1000) by attaching to a system bus 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 (1000) can communicate with other entities. Such communications may be one-way receive only (e.g., broadcast TV), one-way transmit only (e.g., CANbus to a specific CANbus device), or bidirectional, for example with other computer systems using local or wide area digital networks. Specific protocols and protocol stacks may be used with each of these networks and network interfaces described above.

[0142] The aforementioned human interface devices, human accessible storage devices, and network interfaces may be attached to the core (1040) of the computer system (1000).

[0143] The cores (1040) may include specialized programmable processing devices in the form of one or more central processing units (CPUs) (1041), graphics processing units (GPUs) (1042), field programmable gate areas (FPGAs) (1043), hardware accelerators for specific tasks (1044), etc. These devices may be connected via a system bus (1048) along with read only memory (ROM) (1045), random access memory (1046), internal mass storage such as internal non-user accessible hard drives, SSDs, etc. (1047). In some computer systems, the system bus (1048) may be accessible in the form of one or more physical plugs to allow expansion with additional CPUs, GPUs, etc. Peripherals may be attached directly to the core's system bus (1048) or via a peripheral bus (1049). Architectures for peripheral buses include PCI, USB, etc.

[0144] The CPU (1041), GPU (1042), FPGA (1043), and accelerator (1044) may combine to execute certain instructions that may constitute the aforementioned computer code. That computer code may be stored in ROM (1045) or RAM (1046). Persistent data may be stored, for example, in internal mass storage (1047), while transitory data may also be stored in RAM (1046). Rapid storage and retrieval from any of the memory devices may be enabled using cache memories that may be closely associated with one or more of the CPU (1041), GPU (1042), mass storage (1047), ROM (1045), RAM (1046), etc.

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

[0146] By way of example, and not by way of limitation, a computer system (1000) having an architecture, and specifically a core (1040), can provide functionality as a result of a processor (including a CPU, GPU, FPGA, accelerator, etc.) executing software embodied in one or more tangible computer-readable media. Such computer-readable media can be the user-accessible mass storage introduced above, as well as media associated with a particular storage of the core (1040) of a non-transitory nature, such as the core internal mass storage (1047) or ROM (1045). Software implementing various embodiments of the present disclosure can be stored in such devices and executed by the core (1040). The computer-readable media can include one or more memory devices or chips, depending on the particular needs. The software can cause the core (1040), and specifically the processor therein (including a CPU, GPU, FPGA, etc.) to perform a particular process or a particular portion of a particular process described herein, including defining data structures stored in RAM (1046) and modifying such data structures according to a process defined by the software. Additionally, or alternatively, the computer system may provide functionality as a result of logic hardwired or otherwise embodied in circuitry (e.g., accelerator (1044)) that may operate in place of or together with software to perform particular processes or particular portions of particular processes described herein. Where appropriate, references to software may encompass logic, and vice versa. Where appropriate, references to computer-readable media may encompass circuitry (such as an integrated circuit (IC)) that stores software for execution, circuitry that embodies logic for execution, or both. The present disclosure encompasses any suitable combination of hardware and software.

[0147] While this disclosure describes several exemplary embodiments, there are alterations, substitutions, and various alternative equivalents that are within the scope of this disclosure. It will thus be appreciated that those skilled in the art will be able to devise numerous systems and methods that, although not explicitly shown or described herein, embody the principles of the present disclosure and are therefore within its spirit and scope.

[0148] (1) A method of video decoding performed in a video decoder, the method including: determining whether a first block associated with a second block is coded in block differential pulse code modulation (BDPCM) mode; in response to determining that the first block is coded in BDPCM mode, associating the first block with an intra-prediction mode value based on a BDPCM direction flag; determining an intra-prediction mode value for the second block using the intra-prediction mode value associated with the first block; and restoring the second block using the determined intra-prediction mode value.

[0149] (2) The method of feature (1), wherein the BDPCM direction flag is one of (i) a first value associated with a horizontal intra-prediction direction mode and (ii) a second value associated with a vertical intra-prediction direction mode.

[0150] (3) The method described in feature (2), wherein the total number of intra prediction modes is 67, the horizontal intra prediction direction mode is associated with angle mode 18, and the vertical intra prediction direction mode is associated with angle mode 50.

[0151] (4) A method according to any one of features (1) to (3), wherein the step of determining whether the first block is coded in BDPCM mode is based on a value of a BDPCM flag indicating the presence of a BDPCM direction flag.

[0152] (5) The method according to any one of features (1) to (4), wherein the first block and the second block are included in the same picture, and the first block is spatially adjacent to the second block.

[0153] (6) The method of feature (5), further comprising the step of deriving a candidate list for the second block using a most probable mode (MPM) derivation process, the deriving step including the step of determining whether the first block is coded in BDPCM mode, and the step of determining an intra-prediction mode value for the second block further comprises the step of using the derived candidate list.

[0154] (7) The method according to feature (6), wherein the candidate list includes a first candidate intra-prediction mode value (Mode1) corresponding to the intra-prediction mode value of the first block, as well as a second candidate intra-prediction mode value (Mode2) and a third candidate intra-prediction mode value (Mode3) determined according to a predetermined offset from the first candidate intra-prediction mode value and a modulo M operation, where M is a power of 2.

[0155] (8) The method according to any one of features (1) to (7), wherein the second block is a chroma block and the first block is a luma block co-located with the chroma block.

[0156] (9) The method of feature (8), further comprising: determining whether the second block is coded in a direct copy mode (DM); and, in response to determining that the second block is coded in a direct copy mode, determining whether the first block is coded in a BDPCM mode.

[0157] (10) A video decoder for video decoding, comprising a processing circuit configured to determine whether a first block associated with a second block is coded in a block differential pulse code modulation (BDPCM) mode, and in response to determining that the first block is coded in the BDPCM mode, associate the first block with an intra-prediction mode value based on a BDPCM direction flag, determine an intra-prediction mode value for the second block using the intra-prediction mode value associated with the first block, and reconstruct the second block using the determined intra-prediction mode value.

[0158] (11) The video decoder of feature (10), wherein the BDPCM direction flag is one of (i) a first value associated with a horizontal intra-prediction direction mode and (ii) a second value associated with a vertical intra-prediction direction mode.

[0159] (12) The video decoder of feature (11), wherein the total number of intra prediction modes is 67, the horizontal intra prediction direction mode is associated with angle mode 18, and the vertical intra prediction direction mode is associated with angle mode 50.

[0160] (13) A video decoder according to any one of features (10) to (12), wherein the determination of whether the first block is coded in BDPCM mode is based on a value of a BDPCM flag indicating the presence of a BDPCM direction flag.

[0161] (14) The video decoder according to any one of features (10) to (13), wherein the first block and the second block are included in the same picture and the first block is spatially adjacent to the second block.

[0162] (15) The video decoder of feature (14), wherein the processing circuitry is further configured to derive a candidate list for the second block using a most probable mode (MPM) derivation process, the derivation including determining whether the first block is coded in BDPCM mode, and wherein determining an intra-prediction mode value for the second block further includes using the derived candidate list.

[0163] (16) The video decoder of feature (15), wherein the candidate list includes a first candidate intra-prediction mode value (Mode1) corresponding to the intra-prediction mode value of the first block, as well as a second candidate intra-prediction mode value (Mode2) and a third candidate intra-prediction mode value (Mode3) determined according to a predetermined offset from the first candidate intra-prediction mode value and a modulo M operation, where M is a power of 2.

[0164] (17) The video decoder of any one of features (10), wherein the second block is a chroma block and the first block is a luma block co-located with the chroma block.

[0165] (18) The video decoder of feature (17), wherein the processing circuit is further configured to determine whether the second block is coded in a direct copy mode (DM) and, in response to determining that the second block is coded in a direct copy mode, determine whether the first block is coded in a BDPCM mode.

[0166] (19) A non-transitory computer-readable medium storing instructions that, when executed by a processor in a video decoder, cause the video decoder to perform a method including: determining whether a first block associated with a second block is coded in block differential pulse code modulation (BDPCM) mode; in response to determining that the first block is coded in BDPCM mode, associating the first block with an intra-prediction mode value based on a BDPCM direction flag; determining an intra-prediction mode value for the second block using the intra-prediction mode value associated with the first block; and restoring the second block using the determined intra-prediction mode value.

[0167] (20) The non-transitory computer-readable medium of feature 19, wherein the BDPCM direction flag is one of (i) a first value associated with a horizontal intra-prediction direction mode and (ii) a second value associated with a vertical intra-prediction direction mode. Appendix 1 - If candIntraPredModeB is equal to candIntraPredModeA and candIntraPredModeA is greater than INTRA_DC, then candModeList[x], for x=0..5, is derived as follows: -If IntraLumaRefLineIdx[xCb][yCb] is equal to 0, the following applies: candModeList[0]=candIntraPredModeA(A1_4) candModeList[1]=INTRA_PLANAR(A1_5) candModeList[2]=INTRA_DC(A1_6) candModeList[3]=2+((candIntraPredModeA+61)%64)(A1_7) candModeList[4]=2+((candIntraPredModeA-1)%64)(A1_8) candModeList[5]=2+((candIntraPredModeA+60)%64)(A1_9) - Otherwise (IntraLumaRefLineIdx[xCb][yCb] is not equal to 0), the following applies: candModeList[0]=candIntraPredModeA(A1_10) candModeList[1]=2+((candIntraPredModeA+61)%64)(A1_11) candModeList[2]=2+((candIntraPredModeA-1)%64)(A1_12) candModeList[3]=2+((candIntraPredModeA+60)%64)(A1_13) candModeList[4]=2+(candIntraPredModeA%64)(A1_14) candModeList[5]=2+((candIntraPredModeA+59)%64)(A1_15) Else, if candIntraPredModeB is not equal to candIntraPredModeA and candIntraPredModeA or candIntraPredModeB is greater than INTRA_DC, the following applies: The variables minAB and maxAB are derived as follows: minAB=candModeList[(candModeList[0]>candModeList[1])?1:0](A1_16) maxAB=candModeList[(candModeList[0]>candModeList[1])?0:1](A1_17) - If both candIntraPredModeA and candIntraPredModeB are greater than INTRA_DC, candModeList[x], for x=0..5, is derived as follows: candModeList[0]=candIntraPredModeA(A1_18) candModeList[1]=candIntraPredModeB(A1_19) -If IntraLumaRefLineIdx[xCb][yCb] is equal to 0, the following applies: candModeList[2]=INTRA_PLANAR(A1_20) candModeList[3]=INTRA_DC(A1_21) If -maxAB-minAB is in the range 2 to 62, the following applies: candModeList[4]=2+((maxAB+61)%64)(A1_22) candModeList[5]=2+((maxAB-1)%64)(A1_23) - If not, the following applies: candModeList[4]=2+((maxAB+60)%64)(A1_24) candModeList[5]=2+((maxAB)%64)(A1_25) - Otherwise (IntraLumaRefLineIdx[xCb][yCb] is not equal to 0), the following applies: If -maxAB-minAB is equal to 1, the following applies: candModeList[2]=2+((minAB+61)%64)(A1_26) candModeList[3]=2+((maxAB-1)%64)(A1_27) candModeList[4]=2+((minAB+60)%64)(A1_28) candModeList[5]=2+(maxAB%64)(A1_29) - Else, if maxAB-minAB is equal to 2, the following applies: candModeList[2]=2+((minAB-1)%64)(A1_30) candModeList[3]=2+((minAB+61)%64)(A1_31) candModeList[4]=2+((maxAB-1)%64)(A1_32) candModeList[5]=2+((minAB+60)%64)(A1_33) Otherwise, if maxAB-minAB is greater than 61, the following applies: candModeList[2]=2+((minAB-1)%64)(A1_34) candModeList[3]=2+((maxAB+61)%64)(A1_35) candModeList[4]=2+(minAB%64)(A1_36) candModeList[5]=2+((maxAB+60)%64)(A1_37) - If not, the following applies: candModeList[2]=2+((minAB+61)%64)(A1_38) candModeList[3]=2+((minAB-1)%64)(A1_39) candModeList[4]=2+((maxAB+61)%64)(A1_40) candModeList[5]=2+((maxAB-1)%64)(A1_41) - Otherwise (candIntraPredModeA or candIntraPredModeB is greater than INTRA_DC), candModeList[x], for x=0..5, is derived as follows: -If IntraLumaRefLineIdx[xCb][yCb] is equal to 0, the following applies: candModeList[0]=candIntraPredModeA(A1_42) candModeList[1]=candIntraPredModeB(A1_43) candModeList[2]=1-minAB(A1_44) candModeList[3]=2+((maxAB+61)%64)(A1_45) candModeList[4]=2+((maxAB-1)%64)(A1_46) candModeList[5]=2+((maxAB+60)%64)(A1_47) - Otherwise (IntraLumaRefLineIdx[xCb][yCb] is not equal to 0), the following applies: candModeList[0]=maxAB(A1_48) candModeList[1]=2+((maxAB+61)%64)(A1_49) candModeList[2]=2+((maxAB-1)%64)(A1_50) candModeList[3]=2+((maxAB+60)%64)(A1_51) candModeList[4]=2+(maxAB%64)(A1_52) candModeList[5]=2+((maxAB+59)%64)(A1_53) - If not, the following applies: -If IntraLumaRefLineIdx[xCb][yCb] is equal to 0, the following applies: candModeList[0]=candIntraPredModeA(A1_54) candModeList[1]=(candModeList[0]==INTRA_PLANAR)?INTRA_DC:(A1_55) INTRA_PLANAR candModeList[2]=INTRA_ANGULAR50(A1_56) candModeList[3]=INTRA_ANGULAR18(A1_57) candModeList[4]=INTRA_ANGULAR46(A1_58) candModeList[5]=INTRA_ANGULAR54(A1_59) - Otherwise (IntraLumaRefLineIdx[xCb][yCb] is not equal to 0), the following applies: candModeList[0]=INTRA_ANGULAR50(A1_60) candModeList[1]=INTRA_ANGULAR18(A1_61) candModeList[2]=INTRA_ANGULAR2(A1_62) candModeList[3]=INTRA_ANGULAR34(A1_63) candModeList[4]=INTRA_ANGULAR66(A1_64) candModeList[5]=INTRA_ANGULAR26(A1_65) Appendix 2 IntraPredModeY[xCb][yCb] is derived by the following ordered steps: 1. Adjacent positions (xNbA, yNbA) and (xNbB, yNbB) are set equal to (xCb-1, yCb+cbHeight-1) and (xCb+cbWidth-1, yCb-1), respectively. 2. If X is replaced by either A or B, the variable candIntraPredModeX is derived as follows: - The availability derivation process for the block is called with input the position (xCurr, yCurr) set equal to (xCb, yCb), and the adjacent position (xNbY, yNbY) set equal to (xNbX, yNbX), and the output is assigned to availableX. The candidate intra-prediction mode candIntraPredModeX is derived as follows: - candIntraPredModeX is set equal to INTRA_PLANAR if one or more of the following conditions are true: - The variable availableX is equal to FALSE. - CuPredMode[xNbX][yNbX] is not equal to MODE_INTRA and ciip_flag[xNbX][yNbX] is not equal to 1. -pcm_flag[xNbX][yNbX] equals 1. -X is equal to B, and yCb-1 is smaller than ((yCb >> CtbLog2SizeY) << CtbLog2SizeY). - Otherwise, candIntraPredModeX is set equal to IntraPredModeY[xNbX][yNbX]. 3. The variables ispDefaultMode1 and ispDefaultMode2 are defined as follows. - When IntraSubPartitionsSplitType is equal to ISP_HOR_SPLIT, ispDefaultMode1 is set equal to INTRA_ANGULAR18, and ispDefaultMode2 is set equal to INTRA_ANGULAR5. - Otherwise, ispDefaultMode1 is set equal to INTRA_ANGULAR50, and ispDefaultMode2 is set equal to INTRA_ANGULAR63. 4. candModeList[x] where x = 0..5 is derived as follows. - When candIntraPredModeB is equal to candIntraPredModeA and candIntraPredModeA is greater than INTRA_DC, candModeList[x] where x = 0..5 is derived as follows. - When IntraLumaRefLineIdx[xCb][yCb] is equal to 0 and IntraSubPartitionsSplitType is equal to ISP_NO_SPLIT, the following applies. candModeList[0]=candIntraPredModeA(A2_9) candModeList[1]=INTRA_PLANAR(A2_10) candModeList[2]=INTRA_DC(A2_11) candModeList[3]=2+((candIntraPredModeA+61)%64)(A2_12) candModeList[4]=2+((candIntraPredModeA-1)%64)(A2_13) candModeList[5]=2+((candIntraPredModeA+60)%64)(A2_14) - Otherwise (IntraLumaRefLineIdx[xCb][yCb] is not equal to 0 or IntraSubPartitionsSplitType is not equal to ISP_NO_SPLIT), the following applies: candModeList[0]=candIntraPredModeA(A2_15) candModeList[1]=2+((candIntraPredModeA+61)%64)(A2_16) candModeList[2]=2+((candIntraPredModeA-1)%64)(A2_17) -If one of the following conditions is true: -IntraSubPartitionsSplitType is equal to ISP_HOR_SPLIT and candIntraPredModeA is less than INTRA_ANGULAR34, -IntraSubPartitionsSplitType is equal to ISP_VER_SPLIT and candIntraPredModeA is equal to or greater than INTRA_ANGULAR34, -IntraLumaRefLineIdx[xCb][yCb] is equal to 0, The following applies: candModeList[3]=2+((candIntraPredModeA+60)%64)(A2_18) candModeList[4]=2+(candIntraPredModeA%64)(A2_19) candModeList[5]=2+((candIntraPredModeA+59)%64)(A2_20) - If not, the following applies: candModeList[3]=ispDefaultMode1(A2_21) candModeList[4]=ispDefaultMode2(A2_22) candModeList[5]=INTRA_PLANAR(A2_23) Else, if candIntraPredModeB is not equal to candIntraPredModeA and candIntraPredModeA or candIntraPredModeB is greater than INTRA_DC, the following applies: The variables minAB and maxAB are derived as follows: minAB=Min(candIntraPredModeA, candIntraPredModeB)(A2_24) maxAB=Max(candIntraPredModeA, candIntraPredModeB)(A2_25) - If both candIntraPredModeA and candIntraPredModeB are greater than INTRA_DC, candModeList[x], for x=0..5, is derived as follows: candModeList[0]=candIntraPredModeA(A2_26) candModeList[1]=candIntraPredModeB(A2_27) - if IntraLumaRefLineIdx[xCb][yCb] is equal to 0 and IntraSubPartitionsSplitType is equal to ISP_NO_SPLIT, the following applies: candModeList[2]=INTRA_PLANAR(A2_28) candModeList[3]=INTRA_DC(A2_29) If -maxAB-minAB is in the range 2 to 62, the following applies: candModeList[4]=2+((maxAB+61)%64)(A2_30) candModeList[5]=2+((maxAB-1)%64)(A2_31) - If not, the following applies: candModeList[4]=2+((maxAB+60)%64)(A2_32) candModeList[5]=2+((maxAB)%64)(A2_33) - Otherwise (IntraLumaRefLineIdx[xCb][yCb] is not equal to 0 or IntraSubPartitionsSplitType is not equal to ISP_NO_SPLIT), the following applies: -If IntraSubPartitionsSplitType is not equal to ISP_NO_SPLIT and abs(candIntraPredModeB-ispDefaultMode1) is less than abs(candIntraPredModeA-ispDefaultMode1), the following applies: candModeList[0]=candIntraPredModeB(A2_34) candModeList[1]=candIntraPredModeA(A2_35) If -maxAB-minAB is equal to 1, the following applies: candModeList[2]=2+((minAB+61)%64)(A2_36) candModeList[3]=2+((maxAB-1)%64)(A2_37) candModeList[4]=2+((minAB+60)%64)(A2_38) candModeList[5]=2+(maxAB%64)(A2_39) - Else, if maxAB-minAB is equal to 2, the following applies: candModeList[2]=2+((minAB-1)%64)(A2_40) candModeList[3]=2+((minAB+61)%64)(A2_41) candModeList[4]=2+((maxAB-1)%64)(A2_42) candModeList[5]=2+((minAB+60)%64)(A2_43) Otherwise, if maxAB-minAB is greater than 61, the following applies: candModeList[2]=2+((minAB-1)%64)(A2_44) candModeList[3]=2+((maxAB+61)%64)(A2_45) candModeList[4]=2+(minAB%64)(A2_46) candModeList[5]=2+((maxAB+60)%64)(A2_47) - If not, the following applies: candModeList[2]=2+((minAB+61)%64)(A2_48) candModeList[3]=2+((minAB-1)%64)(A2_49) candModeList[4]=2+((maxAB+61)%64)(A2_50) candModeList[5]=2+((maxAB-1)%64)(A2_51) - Otherwise (candIntraPredModeA or candIntraPredModeB is greater than INTRA_DC), candModeList[x], for x=0..5, is derived as follows: - if IntraLumaRefLineIdx[xCb][yCb] is equal to 0 and IntraSubPartitionsSplitType is equal to ISP_NO_SPLIT, the following applies: candModeList[0]=candIntraPredModeA(A2_52) candModeList[1]=candIntraPredModeB(A2_53) candModeList[2]=1-minAB(A2_54) candModeList[3]=2+((maxAB+61)%64)(A2_55) candModeList[4]=2+((maxAB-1)%64)(A2_56) candModeList[5]=2+((maxAB+60)%64)(A2_57) - Otherwise, if IntraLumaRefLineIdx[xCb][yCb] is not equal to 0, the following applies: candModeList[0]=maxAB(A2_58) candModeList[1]=2+((maxAB+61)%64)(A2_59) candModeList[2]=2+((maxAB-1)%64)(A2_60) candModeList[3]=2+((maxAB+60)%64)(A2_61) candModeList[4]=2+(maxAB%64)(A2_62) candModeList[5]=2+((maxAB+59)%64)(A2_63) - Otherwise (IntraSubPartitionsSplitType is not equal to ISP_NO_SPLIT), the following applies: candModeList[0]=INTRA_PLANAR(A2_64) candModeList[1]=maxAB(A2_65) candModeList[2]=2+((maxAB+61)%64)(A2_66) candModeList[3]=2+((maxAB-1)%64)(A2_67) candModeList[4]=2+((maxAB+60)%64)(A2_68) candModeList[5]=2+(maxAB%64)(A2_69) - If not, the following applies: - if IntraLumaRefLineIdx[xCb][yCb] is equal to 0 and IntraSubPartitionsSplitType is equal to ISP_NO_SPLIT, the following applies: candModeList[0]=candIntraPredModeA(A2_70) candModeList[1]=(candModeList[0]==INTRA_PLANAR)?INTRA_DC:(A2_71) INTRA_PLANAR candModeList[2]=INTRA_ANGULAR50(A2_72) candModeList[3]=INTRA_ANGULAR18(A2_73) candModeList[4]=INTRA_ANGULAR46(A2_74) candModeList[5]=INTRA_ANGULAR54(A2_75) - Otherwise, if IntraLumaRefLineIdx[xCb][yCb] is not equal to 0, the following applies: candModeList[0]=INTRA_ANGULAR50(A2_76) candModeList[1]=INTRA_ANGULAR18(A2_77) candModeList[2]=INTRA_ANGULAR2(A2_78) candModeList[3]=INTRA_ANGULAR34(A2_79) candModeList[4]=INTRA_ANGULAR66(A2_80) candModeList[5]=INTRA_ANGULAR26(A2_81) - Otherwise, if IntraSubPartitionsSplitType is equal to ISP_HOR_SPLIT, the following applies: candModeList[0]=INTRA_PLANAR(A2_82) candModeList[1]=INTRA_ANGULAR18(A2_83) candModeList[2]=INTRA_ANGULAR25(A2_84) candModeList[3]=INTRA_ANGULAR10(A2_85) candModeList[4]=INTRA_ANGULAR65(A2_86) candModeList[5]=INTRA_ANGULAR50(A2_87) - Otherwise, if IntraSubPartitionsSplitType is equal to ISP_VER_SPLIT, the following applies: candModeList[0]=INTRA_PLANAR(A2_88) candModeList[1]=INTRA_ANGULAR50(A2_89) candModeList[2]=INTRA_ANGULAR43(A2_90) candModeList[3]=INTRA_ANGULAR60(A2_91) candModeList[4]=INTRA_ANGULAR3(A2_92) candModeList[5]=INTRA_ANGULAR18(A2_93) 5. IntraPredModeY[xCb][yCb] is derived by applying the following steps: - if bdpcm_flag[xCb][yCb] is equal to 1, IntraPredModeY[xCb][yCb] is set equal to bdpcm_dir_flag[xCb][yCb]==0?INTRA_ANGULAR18:INTRA_ANGULAR50. - Otherwise, if intra_luma_mpm_flag[xCb][yCb] is equal to 1, then IntraPredModeY[xCb][yCb] is set equal to candModeList[intra_luma_mpm_idx[xCb][yCb]]. Otherwise, IntraPredModeY[xCb][yCb] is derived by applying the following ordered steps: 1. For i=0..4 and for each j=(i+1)..5, if candModeList[i] is greater than candModeList[j], then both values ​​are swapped as follows: (candModeList[i],candModeList[j])=Swap(candModeList[i],candModeList[j])(A2_94) 2. IntraPredModeY[xCb][yCb] is derived by the following ordered steps: i. IntraPredModeY[xCb][yCb] is set equal to intra_luma_mpm_remainder[xCb][yCb]. ii. For i equal to 0 through 5, when IntraPredModeY[xCb][yCb] is greater than or equal to candModeList[i], the value of IntraPredModeY[xCb][yCb] is incremented by 1. The variable IntraPredModeY[x][y], where x=xCb..xCb+cbWidth-1 and y=yCb..yCb+cbHeight-1, is set equal to IntraPredModeY[xCb][yCb]. [Explanation of symbols]

[0168] 101 Point where arrows converge 102 Arrow 103 Arrow 104 Square Block 200 Communication Systems 210 Terminal Devices 220 Terminal Devices 230 Terminal Devices 240 Terminal Devices 250 Network 300 Communication Systems 301 Video Source 302 Video Picture Stream 303 Video Encoder 304 Video Data 305 Streaming Server 306 Client Subsystem 307 Copying video data 308 Client Subsystem 309 Copying video data 310 Video Decoder 311 Video Picture Output Stream 312 Display 313 Capture Subsystem 320 Electronic Devices 330 Electronic Devices 401 Channel 410 Video Decoder 412 Rendering Device 415 Buffer Memory 420 Parser 421 Symbols 430 Electronic Devices 431 Receiver 451 Scaler / Descaler Unit 452 Intra-picture Prediction Unit 453 Motion Compensation Prediction Unit 455 Aggregator 456 Loop Filter Unit 457 Reference Picture Memory 458 Current Picture Buffer 501 Video Sources 503 Video Encoder 520 Electronic Devices 530 Source Coder 532 Coding Engine 533 Local Decoder 534 Reference Picture Memory 535 Predictors 540 Transmitter 543 Video Sequences 545 Entropy Coder 550 Controller 560 Communication Channels 603 Video Encoder 621 General-purpose controller 622 Intra Encoder 623 Residual Calculator 624 Residual Encoder 625 Entropy Encoder 626 Switch 628 Residual Decoder 630 InterEncoder 710 Video Decoder 771 Entropy Decoder 772 Intra Decoder 773 Residual Decoder 774 Recovery Module 780 Inter Decoder 800 current block 1000 Computer Systems 1001 Keyboard 1002 Mouse 1003 Trackpad 1005 Joystick 1006 Microphone 1007 Scanner 1008 Camera 1009 Speaker 1010 Touch Screen 1020 CD / DVD ROM / RW 1021 CD / DVD or similar media 1022 Thumb Drive 1023 Removable Hard Drive or Solid State Drive 1040 cores 1041 Central Processing Unit (CPU) 1042 Graphics Processing Unit (GPU) 1043 Field Programmable Gate Area (FPGA) 1044 Hardware Accelerator 1045 Read-Only Memory (ROM) 1046 Random Access Memory (RAM) 1047 Internal Mass Storage 1048 System Bus 1049 Surrounding Bus 1050 graphics adapter 1054 Network Interface

Claims

1. A method of video decoding performed in a video decoder, comprising: receiving a BDPCM flag from the encoded video bitstream indicating whether BDPCM applies to the current block position (x0, y0); determining that BDPCM is applied to the position (x0, y0) of the current block if the BDPCM flag is equal to 1; receiving a BDPCM direction flag from the coded video bitstream in response to determining that BDPCM is applied to the position (x0, y0) of the current block; determining an intra prediction mode value of the position (x0, y0) of the current block based on the BDPCM direction flag, determining that the value of the BDPCM direction flag is indicated by a variable, and if the variable is equal to 1, the intra-prediction mode value is 50, indicating a vertical mode; If the value of the variable is equal to 0, determine that the intra prediction mode value is 18, indicating a horizontal mode; Steps and decoding the current block using the determined intra-prediction mode value; A method comprising:

2. The method of claim 1, further comprising a step of reconstructing and decoding other blocks contained in the same picture and spatially adjacent to the current block.

3. The method of claim 2, further comprising: deriving a candidate list for the other blocks using a most probable mode (MPM) derivation process, the step including determining whether BDPCM applies to the position (x0, y0) of the current block. further comprising determining the intra-prediction mode value further comprises using the derived candidate list; The method of claim 2.

4. The candidate list: a first candidate intra-prediction mode value (Mode1) corresponding to the intra-prediction mode value of the current block; and a second candidate intra-prediction mode value (Mode2) and a third candidate intra-prediction mode value (Mode3) determined according to a predetermined offset from the first candidate intra-prediction mode value and a modulo M operation; 4. The method of claim 3, comprising:

5. The current block is a luma block, The method of claim 1 , further comprising decoding chroma blocks co-located with the luma blocks.

6. The method of claim 1, further comprising: determining whether the luma block is coded in direct copy mode (DM); in response to determining that the luma block is coded in the direct copy mode, determining whether BDPCM is applied to the current block at the position (x0, yo); 6. The method of claim 5, further comprising:

7. The method of claim 1, wherein the BDPCM flag is received when the values ​​of the variables indicating the width and height of the current block are each equal to or less than 32.

8. A video decoder for video decoding, comprising: A processing circuit, receiving a BDPCM flag from the encoded video bitstream indicating whether BDPCM is applied to the current block position (x0, y0); determining that BDPCM is applied to the position (x0, y0) of the current block if the BDPCM flag is equal to 1; receiving a BDPCM direction flag from the coded video bitstream in response to determining that BDPCM is applied to the position (x0, y0) of the current block; determining an intra prediction mode value of the position (x0, y0) of the current block based on the BDPCM direction flag; determining that the value of the BDPCM direction flag is indicated by a variable, and if the variable is equal to 1, the intra-prediction mode value is 50, indicating a vertical mode; If the variable is equal to 0, determine that the intra prediction mode value is 18, which indicates a horizontal mode; And, decoding the current block using the determined intra-prediction mode value; 1. A video decoder comprising: a processing circuit configured to:

9. A method of video encoding performed in a video encoder, comprising: signaling a BDPCM flag in the video bitstream indicating whether BDPCM applies to the current block position (x0, y0); determining that BDPCM should be applied to the position (x0, y0) of the current block if the BDPCM flag is equal to 1; further signaling a BDPCM direction flag to the video bitstream in response to determining to apply BDPCM to the position (x0, y0) of the current block; determining an intra prediction mode value of the current block based on the BDPCM direction flag, The value of the BDPCM direction flag is indicated by a variable, and if the variable is equal to 1, determine the intra prediction mode value to be 50, which indicates a vertical mode; If the variable is equal to 0, determine the intra prediction mode value as 18, which indicates a horizontal mode; Steps and encoding the current block using the determined intra-prediction mode value; A method comprising:

10. A video encoder for video encoding, comprising: A processing circuit, signaling a BDPCM flag in the video bitstream indicating whether BDPCM is applied to the current block position (x0, y0); determining to apply BDPCM to the position (x0, y0) of the current block if the BDPCM flag is equal to 1; further signaling a BDPCM direction flag in the video bitstream in response to determining to apply BDPCM to the position (x0, y0) of the current block; determining an intra prediction mode value of the current block based on the BDPCM direction flag, The value of the BDPCM direction flag is indicated by a variable, and if the variable is equal to 1, determine the intra prediction mode value to be 50, which indicates a vertical mode; If the variable is equal to 0, determine the intra prediction mode value as 18, which indicates a horizontal mode; And, encoding the current block using the determined intra-prediction mode value; 1. A video encoder comprising: a processing circuit configured to:

11. A method of video encoding performed in a video encoder, comprising: signaling a BDPCM flag in the video bitstream indicating whether BDPCM applies to the current block position (x0, y0); determining that BDPCM should be applied to the position (x0, y0) of the current block if the BDPCM flag is equal to 1; further signaling a BDPCM direction flag to the video bitstream in response to determining to apply BDPCM to the position (x0, y0) of the current block; determining an intra prediction mode value of the current block based on the BDPCM direction flag, The value of the BDPCM direction flag is indicated by a variable, and if the variable is equal to 1, determine the intra prediction mode value to be 50, which indicates a vertical mode; If the variable is equal to 0, determine the intra prediction mode value as 18, which indicates a horizontal mode; Steps and encoding the current block using the determined intra-prediction mode value; transmitting the encoded bitstream; A method comprising:

12. A method of video encoding performed in a video encoder, comprising: signaling a BDPCM flag in the video bitstream indicating whether BDPCM applies to the current block position (x0, y0); determining that BDPCM should be applied to the position (x0, y0) of the current block if the BDPCM flag is equal to 1; further signaling a BDPCM direction flag to the video bitstream in response to determining to apply BDPCM to the position (x0, y0) of the current block; determining an intra prediction mode value of the current block based on the BDPCM direction flag, The value of the BDPCM direction flag is indicated by a variable, and if the variable is equal to 1, determine the intra prediction mode value to be 50, which indicates a vertical mode; If the variable is equal to 0, determine the intra prediction mode value as 18, which indicates a horizontal mode; Steps and encoding the current block using the determined intra-prediction mode value; storing the encoded bitstream on a storage medium; A method comprising: