Video encoding method and device
Patent Information
- Application Number
- JP2024017424
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2019-12-11
- Filing Date
- 2024-02-07
- Publication Date
- 2024-08-29
- Estimated Expiration
- 2039-12-20
AI Technical Summary
Existing video encoding techniques face challenges in efficiently reducing redundancy and improving compression ratios while maintaining acceptable video quality, particularly in intra-coding and motion compensation processes.
The method involves context modeling for syntax element bins in video encoding, limiting the number of context-encoded bins, and applying deblocking filters based on block differential pulse code modulation (BDPCM) to optimize encoding efficiency and reduce artifacts.
This approach enhances encoding efficiency by reducing the number of context-encoded bins and minimizing blocking artifacts, thereby improving compression ratios and video quality.
Abstract
Description
[Technical field]
[0001] Incorporation by Reference This application claims the benefit of priority to U.S. Provisional Application No. 62 / 785,056, entitled "Context Modeling and Deblocking Filter Constraints in Block Differential Pulse Code Modulation," filed on December 26, 2018, which claims the benefit of priority to U.S. Provisional Application No. 16 / 710,889, entitled "Video Encoding Method and Apparatus," filed on December 11, 2019. The entire disclosures of the prior applications are incorporated herein by reference in their entireties.
[0002] This disclosure describes embodiments generally related to video coding. [Background technology]
[0003] The background description provided herein is for the purpose of generally presenting the context of the present disclosure. The work of the presently named inventors, to the extent that that work is described in this Background section, as well as aspects of the description that would not otherwise qualify as prior art at the time of filing, are not admitted, expressly or impliedly, as prior art to the present disclosure.
[0004] Video encoding and decoding can be done using inter-picture prediction with motion compensation. Uncompressed digital video can include a sequence of pictures, each with spatial dimensions of, for example, 1920x1080 luma samples and associated chroma samples. The sequence of pictures can have a fixed or variable picture rate (also informally called frame rate), for example, 60 pictures per second or 60 Hz. Uncompressed video has significant bitrate requirements. For example, at 8 bits per sample, 1080p60 4:2:0 video (1920x1080 luma sample resolution at 60 Hz frame rate) requires a bandwidth approaching 1.5 Gbits / s. One hour of such video requires more than 600 Gbytes of storage space.
[0005] One goal of video encoding and decoding may be to reduce redundancy in 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, as well as combinations of them, may be used. Lossless compression refers to techniques that allow an exact replica of the original signal to be reconstructed from the compressed original signal. When lossy compression is used, the reconstructed signal may not be identical to the original signal, but the distortion between the original and reconstructed signals is small enough to make the reconstructed signal useful for the intended application. For video, lossy compression is widely adopted. The amount of acceptable distortion varies by application, for example, users of some consumer streaming applications can tolerate higher distortion than users of television distribution applications. The achievable compression ratio may reflect that higher compression ratios can be obtained with higher acceptable / tolerable distortion.
[0006] Video encoders and decoders can employ techniques in several broad categories, such as motion compensation, transformation, quantization, and entropy coding.
[0007] Video codec techniques may include a technique called intra-coding. In intra-coding, sample values are represented without reference to samples or other data from previously reconstructed reference pictures. In some video codecs, a picture is spatially 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, may be used to reset the state of the decoder and therefore may be used as the first picture of a coded video bitstream and video session or as a still image. Samples of an intra block may undergo 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 to represent the block after entropy coding for a given quantization step size.
[0008] Conventional intra-coding, for example as known from MPEG-2 generation encoding techniques, does not use intra-prediction. However, some new video compression techniques include approaches that attempt to do so from, for example, surrounding sample data and / or metadata obtained during encoding / decoding that is spatially nearby and preceding in the decoding order of the data block. Such approaches are hereinafter referred to as "intra-prediction" approaches. It should be noted that, at least in some cases, intra-prediction uses only reference data from the current picture being reconstructed and not from reference pictures.
[0009] Conventional intra-coding, for example as known from MPEG-2 generation encoding techniques, does not use intra-prediction. However, some new video compression techniques include approaches that attempt to do so from, for example, surrounding sample data and / or metadata obtained during encoding / decoding that is spatially nearby and preceding in the decoding order of the data block. Such approaches are hereinafter referred to as "intra-prediction" approaches. It should be noted that, at least in some cases, intra-prediction uses only reference data from the current picture being reconstructed and not from reference pictures.
[0010] Certain modes of intra prediction were introduced in H.264, improved in H.265, and further refined in new coding techniques such as the Joint Search Model (JEM), Versatile Video Coding (VVC), and Benchmark Set (BMS). A prediction block may be formed using neighboring sample values belonging to already available samples. The sample values of the neighboring samples are replicated in the prediction block according to a direction. The reference to the direction in use may be coded in the bitstream, which may itself be predicted.
[0011] Motion compensation may be a lossy compression technique, in which blocks of sample data from a previously reconstructed picture or part thereof (reference picture) are spatially shifted in a direction indicated by a motion vector (hereafter MV) and then used to predict a newly reconstructed picture or part of a picture. In some cases, the reference picture may be the same as the picture currently being reconstructed. The MV may have two dimensions, X and Y, or three dimensions, with the third indicating the reference picture in use (the latter may indirectly be the temporal dimension).
[0012] In some video compression techniques, the MV applicable to a region of sample data can be predicted from other MVs, e.g., from MVs associated with other regions of sample data that are spatially adjacent to the region being reconstructed and that precede that MV in the decoding order. Doing so can significantly reduce the amount of data required to encode the MV, thus eliminating redundancy and improving compression ratios. For example, when encoding an input video signal derived from a camera (called natural video), MV prediction can work effectively because regions larger than the region to which a single MV is applicable have a statistical likelihood to move in similar directions and therefore can, in some cases, be predicted using similar motion vectors derived from MVs of nearby regions. As a result, the MV found for a given region is similar or identical to the MV predicted from the surrounding MVs, and then, after entropy encoding, can be represented with fewer bits than would be used to directly encode the MV. In some cases, MV prediction can be an example of lossless compression of a signal (i.e., MV) derived from the original signal (i.e., sample stream). In other cases, the MV prediction itself can be lossy, e.g., due to rounding errors when computing a predictor from several surrounding MVs.
[0013] Various MV prediction mechanisms are described in H.265 / HEVC (ITU-T Recommendation H.265, "High Efficiency Video Coding", December 2016).
[0014] Referring to Figure 1, a current block (101) contains samples that are found by the encoder during the motion search process to be predictable from a previous block of the same size but spatially shifted. Instead of directly encoding its MV, the MV can be derived from metadata associated with one or more reference pictures, e.g., the most recent reference picture (in decoding order), using MVs associated with any of the five surrounding samples denoted A0, A1, and B0, B1, B2 (102 to 106, respectively). In H.265, MV prediction can use a predictor from the same reference picture that neighboring blocks use. Summary of the Invention [Problem to be solved by the invention]
[0015] Aspects of the present disclosure provide methods and apparatus for video encoding at a decoder. In one embodiment, a method of video encoding at a decoder is provided. In the method, a bitstream including coded bits of bins of syntax elements is received. The syntax elements correspond to residuals of a region of a transform skip block in a coded picture. Context modeling is performed to determine a context model for each of the several bins of the syntax elements of the region. The number of bins of the syntax elements that are context coded does not exceed a maximum number of context coded bins configured for the region. The coded bits of the several bins of the syntax elements are decoded based on the determined context model. [Means for solving the problem]
[0016] In one embodiment, the number of bins of the context coded syntax elements is less than or equal to the total number of bins of the syntax elements of the region of the transformed skip block.
[0017] In one embodiment, the maximum number of context-coded bins in a region of a transform skip block is B×A, where B is a positive number and A is the number of quantized residuals in the region.
[0018] In one embodiment, the coded bits of the remaining total number of bins of syntax elements that are not context coded for the region of the transform skip block are decoded based on an equal probability model.
[0019] In one embodiment, B is an integer.
[0020] In one embodiment, B is a fraction.
[0021] In one embodiment, B is set according to A.
[0022] In one embodiment, the transform skip block includes only a region, and A is equal to W×H of the transform skip block, where W is the width of the transform skip block and H is the height of the transform skip block.
[0023] In one embodiment, the transform skip block is divided into multiple regions including a region, and the maximum number of context-coded bins in each of the multiple regions of the transform skip block is B×A, where B is a positive number and A is the number of quantized residuals in each of the multiple regions.
[0024] In one embodiment, a method of video encoding at a decoder is provided. In the method, an encoded video bitstream is received. An indicator is received. The indicator indicates whether at least one of a target block and a neighboring block of the encoded video bitstream is coded with block differential pulse code modulation (BDPCM). The target block is adjacent to the neighboring block. If at least one of the target block and the neighboring block is indicated as being coded with BDPCM, a boundary strength is determined to be applied to a boundary between a target sub-block in the target block and a neighboring sub-block in the neighboring block, and deblocking is performed on the boundary between the target sub-block in the target block and the neighboring sub-block in the neighboring block using a deblocking filter according to the determined boundary strength.
[0025] In one embodiment, the neighboring sub-blocks are not BDPCM coded.
[0026] In one embodiment, if the neighboring sub-blocks are BDPCM coded, the boundary strength of the deblocking filter is determined to be 1 or 2.
[0027] In one embodiment, if the target and neighboring subblocks are coded with BDPCM, deblocking is performed on the boundary between a target subblock in the target block and a neighboring subblock in the neighboring block based on a determination that the difference in quantization parameters between the target subblock and the neighboring subblock exceeds a threshold.
[0028] In one embodiment, if the target and neighboring subblocks are coded with BDPCM, deblocking is performed on the boundary between the target subblock in the target block and the neighboring subblock in the neighboring block based on a determination that the target subblock and the neighboring subblock are coded with different BDPCM prediction modes.
[0029] In one embodiment, if the target and neighboring subblocks are coded with BDPCM, deblocking is performed on the boundary between a target subblock in the target block and a neighboring subblock in the neighboring block based on a determination that at least one of the target subblock and the neighboring subblock has non-zero coefficients.
[0030] Aspects of the present disclosure also provide a non-transitory computer-readable storage medium storing instructions that, when executed by a computer, cause the computer to perform any of the above methods.
[0031] Further features, nature and various advantages of the disclosed subject matter will become more apparent from the following detailed description and the accompanying drawings. [Brief description of the drawings]
[0032] [Figure 1] FIG. 2 is a schematic diagram of a target block and its surrounding spatial merging candidates in one example. [Diagram 2] FIG. 1 is a schematic diagram of a simplified block diagram of a communication system according to one embodiment. [Diagram 3] FIG. 1 is a schematic diagram of a simplified block diagram of a communication system 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] 4 shows a block diagram of an encoder according to another embodiment; [Figure 7] 4 shows a block diagram of a decoder according to another embodiment; [Figure 8] 1 illustrates a flowchart of an exemplary process for determining a boundary strength value according to an embodiment of the present disclosure. [Figure 9A] 1 illustrates an example of a block differential pulse code modulation (BDPCM) encoded block according to one embodiment. [Figure 9B] 1 illustrates an example of a BDPCM coded block according to one embodiment. [Figure 10A] 1 illustrates an exemplary context-based adaptive binary arithmetic coding (CABAC) based entropy encoder, according to one embodiment. [Figure 10B] 4 illustrates an exemplary CABAC-based entropy decoder according to one embodiment. [Figure 11] 1 illustrates an exemplary CABAC-based entropy encoding process according to one embodiment. [Figure 12] 1 illustrates an exemplary CABAC-based entropy decoding process according to one embodiment. [Figure 13] 1 shows a flowchart outlining an entropy decoding process according to one embodiment. [Figure 14] 1 shows a flowchart outlining a deblocking filtering process according to one embodiment. [Figure 15] FIG. 1 is a schematic diagram of a computer system according to one embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0033] I. Video Encoders and Decoders FIG. 2 shows a simplified block diagram of a communication system (200) according to an embodiment of the present disclosure. The communication system (200) includes, for example, a plurality of terminal devices capable of communicating 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) may encode 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 may be transmitted in the form of one or more encoded video bitstreams. The terminal device (220) may receive the encoded video data from the network (250), decode the encoded video data to recover the video pictures, and display the video pictures according to the recovered video data. One-way data transmission may be common, such as in media serving applications.
[0034] In another example, the communication system (200) includes a second pair of terminal devices (230) and (240) performing bidirectional transmission of encoded 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 encode 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) via the network (250). Each of the terminal devices (230) and (240) can also receive encoded video data transmitted by the other of the terminal devices (230) and (240), decode the encoded video data to recover video pictures, and display the video pictures on an accessible display device according to the recovered video data.
[0035] 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 in laptop computers, tablet computers, media players, and / or dedicated video conferencing equipment. The network (250) represents any number of networks that convey encoded video data between the terminal devices (210), (220), (230), and (240), including, for example, wireline and / or wireless communication networks. The communication network (250) may exchange data over circuit-switched and / or packet-switched channels. Representative networks include telecommunications networks, local area networks, wide area networks, the Internet, and the like. For purposes of this discussion, the architecture and topology of the network (250) may not be important to the operation of the present disclosure unless otherwise described herein below.
[0036] 3 shows an arrangement of a video encoder and a video decoder in a streaming environment as an example of an application of the disclosed subject matter. The disclosed subject matter may be equally applicable to other video-enabled applications including, for example, video conferencing, digital TV, and storage of compressed video on digital media including CDs, DVDs, memory sticks, etc.
[0037] The streaming system may include a capture subsystem (313), which may include a video source (301), such as a digital camera, for example, that creates a stream of uncompressed video pictures (302). In one example, the stream of video pictures (302) includes samples captured by a digital camera. The stream of video pictures (302) is shown with a thick line to emphasize the amount of data compared to the encoded video data (304) (or encoded video bitstream) and 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 for enabling or implementing aspects of the disclosed subject matter, as described in more detail below. The encoded video data (304) (or encoded video bitstream (304)) is shown with a thin line to emphasize the amount of data compared to the stream of video pictures (302) and may be stored on 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) may include, for example, a video decoder (310) within an electronic device (330). The video decoder (310) decodes the incoming copy of the encoded video data (307) and creates an output stream (311) of video pictures that may be rendered on a display (312) (e.g., a display screen) or other rendering device (not shown). In some streaming systems, the encoded video data (304), (307), and (309) (e.g., a video bitstream) may be encoded according to a number of video encoding / compression standards. Examples of these standards include ITU-T Recommendation H.265. As an example, a video encoding standard under development is informally known as Versatile Video Coding (VVC).The disclosed subject matter may be used in the context of a VVC.
[0038] 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 likewise include a video encoder (not shown).
[0039] 4 shows a block diagram of a video decoder (410) according to an 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) in the example of FIG. 3.
[0040] The receiver (431) can receive one or more coded video sequences to be decoded by the video decoder (410), in the same or other embodiments, one coded video sequence at a time, with the decoding of each coded video sequence being independent of the other coded video sequences. The coded video sequences can be received from a channel (401), which can be a hardware / software link to a storage device that stores the coded video data. The receiver (431) can receive the coded video data along with other data, e.g., coded audio data and / or auxiliary data streams, which can be forwarded to respective usage entities (not shown). The receiver (431) can separate the coded video sequences from the other data. To combat network jitter, a buffer memory (415) can be coupled between the receiver (431) and the entropy decoder / parser (420) (hereinafter "parser (420)"). In some applications, the buffer memory (415) is part of the video decoder (410). In other cases, it may be outside the video decoder (410) (not shown). In still other cases, there may be a buffer memory (not shown) outside the video decoder (410), e.g., to combat network jitter, and yet another buffer memory (415) inside the video decoder (410), e.g., to handle playback timing. When the receiver (431) is receiving data from a store / forward device with sufficient bandwidth and controllability, or from a 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 sized, and may be implemented at least in part in an operating system or similar element (not shown) outside the video decoder (410).
[0041] The video decoder (410) may include a parser (420) for reconstructing symbols (421) from the encoded video sequence. These categories of symbols include information used to manage the operation of the video decoder (410) and, in some cases, information for controlling a rendering device (e.g., a display screen), such as the rendering device (412), which may not be 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 shown). The parser (420) may parse / entropy decode the received encoded video sequence. The encoding of the encoded video sequence may follow a video encoding technique or standard and may follow various principles including variable length coding, Huffman coding, arithmetic coding with or without context sensitivity, etc. The parser (420) can extract from the encoded video sequence a set of subgroup parameters for at least one of the subgroups of pixels in the video decoder based on at least one parameter corresponding to the group. The subgroups may include Group of Pictures (GOPs), pictures, tiles, slices, macroblocks, coding units (CUs), blocks, transform units (TUs), prediction units (PUs), etc. The parser (420) can also extract information from the encoded video sequence such as transform coefficients, quantization parameter values, motion vectors, etc.
[0042] The parser (420) may perform entropy decoding / parsing operations on the video sequence received from the buffer memory (415) to produce symbols (421).
[0043] The reconstruction of the symbols (421) may involve a number of different units, depending on the type of encoded video picture or part thereof (inter and intra pictures, inter and intra blocks, etc.), and other factors. Which units are involved and how may be controlled by subgroup control information parsed from the encoded video sequence by the parser (420). The flow of such subgroup control information between the parser (420) and the following units is not shown for clarity.
[0044] In addition to the functional blocks already mentioned, the video decoder (410) may 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.
[0045] The first unit is a scalar / inverse transform unit (451), which receives control information from the parser (420) including the transform to be used, block size, quantization coefficients, quantization scaling matrix, etc., as well as the quantized transform coefficients as symbols (421). The scalar / inverse transform unit (451) may output a block containing sample values that can be input to an aggregator (455).
[0046] 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 may use prediction information from a previously reconstructed portion of the current picture. Such prediction information may be provided by an intra-picture prediction unit (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, in some cases, 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).
[0047] In other cases, the output samples of the scalar / inverse transform unit (451) may relate to an inter-coded, possibly motion-compensated block. In such cases, the motion compensated prediction unit (453) may access a reference picture memory (457) to fetch samples used for prediction. After motion compensating the fetched samples according to the symbols (421) associated with the block, these samples may be added by an aggregator (455) to the output of the scalar / inverse transform unit (451) 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 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.
[0048] 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 controlled by parameters contained in the coded video sequence (also called coded video bitstream) and available to the loop filter unit (456) as symbols (421) from the parser (420), but may also be responsive to meta-information obtained during decoding of previous (decoding order) parts of the coded picture or coded video sequence, or may be responsive to previously reconstructed and loop filtered sample values.
[0049] The output of the loop filter unit (456) may be a sample stream that may be output to a rendering device (412) and may be stored in a reference picture memory (457) for use in future inter-picture prediction.
[0050] Some coded pictures, once fully reconstructed, may be used as reference pictures for future predictions. For example, once a coded picture corresponding to a current picture is fully reconstructed and the coded picture is identified as a reference picture (e.g., by the parser (420)), the current picture buffer (458) may become part of the reference picture memory (457), and a new current picture buffer may be reallocated before beginning reconstruction of the next coded picture.
[0051] The video decoder (410) may perform decoding operations according to a given video compression technique in a standard such as ITU-T Recommendation H.265. The encoded video sequence may conform to a syntax specified by the video compression technique or standard used in the sense that it conforms to both the syntax of the video compression technique or standard and the profile as a document of the video compression technique or standard. Specifically, a profile may select some tools from all tools available in the video compression technique or standard as the only tools that can be used in that profile. Compliance also requires that the complexity of the encoded video sequence is within a level defined in the level of the video compression technique or standard. In some cases, the level limits the maximum picture size, maximum frame rate, maximum reconstructed sample rate (e.g., measured in megasamples per second), maximum reference picture size, etc. The limits set by the level may be further limited in some cases by the specification of a hypothetical reference decoder (HRD) and metadata for HRD buffer management signaled in the encoded video sequence.
[0052] In one embodiment, the receiver (431) may receive additional (redundant) data along with the encoded video. The additional data may be included as part of the encoded video sequence. The additional data may be used by the video decoder (410) to properly decode the data and / or to more accurately reconstruct the original video data. The additional data may be in the form of, for example, temporal, spatial, or signal-to-noise ratio (SNR) enhancement layers, redundant slices, redundant pictures, forward error correction codes, etc.
[0053] 5 shows a block diagram of a video encoder (503) according to an 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) may be used in place of the video encoder (303) in the example of FIG. 3.
[0054] 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), which can capture video images that are encoded by the video encoder (503). In other examples, the video source (501) is part of the electronic device (520).
[0055] The video source (501) may provide a source video sequence that is encoded 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 multiple individual pictures that give motion when viewed in sequence. The pictures themselves may be organized as an array of spatial 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 will readily appreciate the relationship between pixels and samples. The following description will focus on samples.
[0056] According to one embodiment, the video encoder (503) may encode and compress pictures of a source video sequence into an encoded video sequence (543) in real time or under any other time constraint required by an application. Enforcing an appropriate encoding rate is one function of the controller (550). In some embodiments, the controller (550) controls and is operatively coupled to other functional units as described below. For clarity, coupling is not shown. Parameters set by the controller (550) may include rate control related parameters (e.g., picture skip, quantization, lambda value for rate distortion optimization techniques), picture size, Group of Pictures (GOP) layout, maximum motion vector search range, etc. The controller (550) may be configured with other appropriate functions related to the optimized video encoder (503) for a certain system design.
[0057] In some embodiments, the video encoder (503) is configured to operate in an encoding loop. As an oversimplified explanation, in one example, the encoding loop may include a source coder (530) (e.g., responsible for creating symbols, such as a symbol stream, based on an input picture to be encoded and a reference picture), and a (local) decoder (533) embedded in the video encoder (503). The decoder (533) reconstructs the symbols to create sample data in a similar manner as the (remote) decoder does (since the compression between the symbols and the encoded video bitstream is lossless in the video compression techniques considered in the disclosed subject matter). The reconstructed sample stream (sample data) is input to a reference picture memory (534). Since the decoding of the symbol stream produces bit-perfect results regardless of the location of the decoder (local or remote), the content of the reference picture memory (534) is also bit-perfect between the local and remote encoders. In other words, the prediction part of the encoder "sees" the samples of the reference picture as exactly the same sample values that the decoder "sees" when it uses the prediction during decoding. This basic principle of reference picture synchrony (and the drift that occurs when synchrony cannot be maintained, e.g., due to channel errors) is also used in several related technologies.
[0058] The operation of the "local" decoder (533) may be the same as that of a "remote" decoder, such as the video decoder (410), already described in detail in connection with Figure 4. However, with brief reference also to Figure 4, because symbols are available and the encoding / decoding of symbols into an encoded video sequence by the entropy coder (545) and parser (420) may be lossless, the entropy decoding portion of the video decoder (410), as well as the buffer memory (415) and parser (420), may not be fully implemented in the local decoder (533).
[0059] At this point, it can be noted that any decoder techniques other than analysis / entropy decoding present in a decoder must necessarily be present in the 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 techniques can be omitted, since they are the inverse of the decoder techniques described generically. Only a few areas require more detailed description, which are provided below.
[0060] In operation, in some cases, the source coder (530) may perform motion-compensated predictive encoding, which predictively encodes an input picture with reference to one or more previously encoded pictures from the video sequence designated as “reference pictures.” In this manner, the encoding engine (532) encodes differences between pixel blocks of the input picture and pixel blocks of reference pictures that may be selected as predictive references for the input picture.
[0061] The local video decoder (533) may decode the encoded 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 encoding engine (532) may advantageously be a lossy process. When the encoded video data may be decoded in a video decoder (not shown in FIG. 5), the reconstructed video sequence may be a replica of the source video sequence, usually with some errors. The local video decoder (533) may replicate the decoding process that may be performed by the video decoder on the reference pictures and store the reconstructed reference pictures in a reference picture cache (534). In this way, the video encoder (503) may locally store copies of reconstructed reference pictures that have common content (no transmission errors) as reconstructed reference pictures obtained by the far-end video decoder.
[0062] The predictor (535) may perform the prediction search of 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 certain metadata of the reference pictures, such as motion vectors, block shapes, etc., which may serve as suitable prediction references for the new picture. The predictor (535) may operate on each pixel block of sample blocks 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).
[0063] The controller (550) may manage the encoding operations of the source coder (530), including, for example, setting parameters and subgroup parameters used to encode the video data.
[0064] 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 an encoded video sequence by losslessly compressing the symbols according to techniques such as Huffman coding, variable length coding, arithmetic coding, etc.
[0065] The transmitter (540) may buffer the encoded video sequence created by the entropy coder (545) for transmission over a communication channel (560), which may be a hardware / software link to a storage device that stores the encoded video data. The transmitter (540) may merge the encoded video data from the video coder (503) with other data to be transmitted, such as encoded audio data and / or auxiliary data streams (sources not shown).
[0066] The controller (550) may manage the operation of the video encoder (503). During encoding, the controller (550) may assign a coded picture type to each coded picture, which may affect the coding technique that may be applied to the respective picture. For example, in many cases, pictures may be assigned one of the following picture types:
[0067] An intra picture (I-picture) may be one that can be coded and decoded without using other pictures in a sequence as a source of prediction. Some video codecs allow different types of intra pictures, such as, for example, Independent Decoder Refresh ("IDR") pictures. Those skilled in the art are aware of these variations of I-pictures and their respective uses and characteristics.
[0068] A predictive picture (P picture) may be one that can be encoded and decoded using intra- or inter-prediction, which uses at most one motion vector and reference index to predict sample values for each block.
[0069] Bidirectionally predicted pictures (B-pictures) may be those that can be encoded and decoded using intra- or inter-prediction, which uses up to two motion vectors and reference indices to predict the sample values of each block. Similarly, multiple predicted pictures can use more than two reference pictures and associated metadata to reconstruct a single block.
[0070] A source picture is usually spatially divided 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 determined by the coding assignment applied to the respective picture of the block. For example, blocks of an I picture may be non-predictively coded or predictively coded with reference to already coded blocks of the same picture (spatial or intra prediction). Pixel blocks of a P picture may be predictively coded via spatial prediction or via temporal prediction with reference to one previously coded reference picture. Blocks of a B picture may be predictively coded via spatial prediction or via temporal prediction with reference to one or two previously coded reference pictures.
[0071] The video encoder (503) may perform encoding operations according to a given video encoding technique or standard, such as ITU-T Recommendation H.265. In its operations, the video encoder (503) may perform various compression operations, including predictive encoding operations that exploit temporal and spatial redundancy in the input video sequence. Thus, the encoded video data may conform to a syntax specified in the video encoding technique or standard being used.
[0072] 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 encoded video sequence. The additional data may include temporal / spatial / SNR enhancement layers, other forms of redundant data such as redundant pictures and slices, SEI messages, VUI parameter set fragments, etc.
[0073] 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 correlations in a given picture, while inter-picture prediction exploits correlations (temporal or otherwise) between pictures. In one example, a particular picture being coded / decoded, called a current picture, is divided into blocks. If a block of the current picture is similar to a reference block of a reference picture in a previously coded and still buffered video, the block of the current picture may be coded by a vector called a motion vector. A motion vector points to a reference block in a reference picture and may have a third dimension that identifies the reference picture if multiple reference pictures are used.
[0074] In some embodiments, a bidirectional prediction technique may be used in inter-picture prediction. According to the bidirectional prediction technique, two reference pictures, such as a first reference picture and a second reference picture, both of which precede a current picture in a video in decoding order (but may be in the past and future, respectively, in display order), 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 and second reference blocks.
[0075] Furthermore, merge mode techniques can be used in inter-picture prediction to improve coding efficiency.
[0076] According to some embodiments of the present disclosure, prediction, such as inter-picture prediction and intra-picture prediction, is performed in units of blocks. For example, according to the HEVC standard, pictures in a sequence of video pictures are divided into coding tree units (CTUs) for compression, and the CTUs of a picture are of the same size, such as 64×64 pixels, 32×32 pixels, 16×16 pixels, etc. In general, a CTU includes three coding tree blocks (CTBs), which are one luma CTB and two chroma CTBs. Each CTU may be recursively quadtree partitioned into one or more coding units (CUs). For example, a CTU of 64×64 pixels may be partitioned into one CU of 64×64 pixels, four CUs of 32×32 pixels, or sixteen CUs of 16×16 pixels. 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. Generally, each PU includes a luma prediction block (PB) and two chroma PBs. In one embodiment, prediction operations in coding (encoding / decoding) are performed in units of prediction blocks. Using luma prediction blocks as an example of prediction blocks, prediction blocks include matrices of pixel values (such as luma values) of 8×8 pixels, 16×16 pixels, 8×16 pixels, 16×8 pixels, etc.
[0077] 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 target video picture in a sequence of video pictures and encode the processed block into an encoded picture that is part of an encoded video sequence. In one example, the video encoder (603) is used in place of the video encoder (303) in the example of FIG. 3.
[0078] In an HEVC example, the video encoder (603) receives a matrix of sample values for a processing block, such as a predictive block, such as 8×8 samples. The video encoder (603) determines whether the processing block is best coded using intra mode, inter mode, or bidirectional predictive mode, for example, using rate-distortion optimization. If the processing block is coded in intra mode, the video encoder (603) may code the processing block into a coded picture using an intra prediction technique, and if the processing block is coded in inter mode or bidirectional predictive mode, the video encoder (603) may code the processing block into a coded picture using an inter prediction or bidirectional prediction technique, respectively. In some video encoding techniques, the merge mode may be an inter-picture prediction submode in which a motion vector is derived from one or more motion vector predictors without benefit of coded motion vector components outside the predictors. In some other video encoding 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) for determining the mode of the processing blocks.
[0079] 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.
[0080] The inter-encoder (630) is configured to receive a sample of a current block (e.g., a processing block), compare the block to one or more reference blocks of reference pictures (e.g., blocks of previous and subsequent pictures), generate inter-prediction information (e.g., inter-coding technique, motion vectors, description of redundant information by merge mode information), and calculate an inter-prediction result (e.g., a prediction 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.
[0081] The inter-encoder (630) is configured to receive a sample of a current block (e.g., a processing block), compare the block to one or more reference blocks of reference pictures (e.g., blocks of previous and subsequent pictures), generate inter-prediction information (e.g., inter-coding technique, motion vectors, description of redundant information by merge mode information), and calculate an inter-prediction result (e.g., a prediction 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.
[0082] The general controller (621) is configured to determine general control data and control other components of the video encoder (603) based on the general control data. In one example, the general controller (621) determines the mode of the block and provides a control signal to the switch (626) based on the mode. For example, if the mode is an intra mode, the general controller (621) controls the switch (626) to select an intra mode result to be used by the residual calculator (623), controls the entropy encoder (625) to select intra prediction information, and includes the intra prediction information in the bitstream, and if the mode is an inter mode, the general controller (621) controls the switch (626) to select an inter prediction result to be used by the residual calculator (623), controls the entropy encoder (625) to select inter prediction information, and includes the inter prediction information in the bitstream.
[0083] 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 to 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 to generate transform coefficients. Then, a quantization process is performed on the transform coefficients 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) may generate decoded blocks based on the decoded residual data and the inter-prediction information, and the intra-encoder (622) may generate decoded blocks based on the decoded residual data and the intra-prediction information. The decoded blocks are appropriately processed to generate decoded pictures, which may be buffered in a memory circuit (not shown) and used as reference pictures in some examples.
[0084] 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, there is no residual information when encoding a block in a merged sub-mode of either the inter mode or the bi-prediction mode.
[0085] 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 encoded pictures that are part of an encoded video sequence and decode the encoded pictures to generate reconstructed pictures. In one example, the video decoder (710) is used in place of the video decoder (310) in the example of FIG. 3.
[0086] 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.
[0087] The entropy decoder (771) may be configured to reconstruct from the coded picture a number of symbols representing syntax elements that make up the coded picture. Such symbols may include, for example, prediction information (e.g., intra- or inter-prediction information) that may identify the mode in which the block is coded (e.g., intra- or inter-prediction mode, inter- or bi-prediction mode in merged or other submodes), certain samples or metadata used for prediction by the intra- or inter-decoder (772) or inter-decoder (780), respectively, residual information, for example in the form of quantized transform coefficients, etc. In one example, if the prediction mode is an inter- or bi-prediction mode, the inter-prediction information is provided to the inter-decoder (780), and if 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).
[0088] The inter decoder (780) is configured to receive the inter prediction information and to generate inter prediction results based on the inter prediction information.
[0089] The intra decoder (772) is configured to receive the intra prediction information and to generate a prediction result based on the intra prediction information.
[0090] 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 some control information to include a quantization parameter (QP), which may be provided by the entropy decoder (771) (data path not shown since it is only low volume control information).
[0091] The reconstruction module (774) is configured to combine, in the spatial domain, the residual output by the residual decoder (773) and a prediction result (possibly output by an inter- or intra-prediction module) to form a reconstructed block, which may be part of a reconstructed image, which may be part of a reconstructed video. It should be noted that other suitable operations, such as a deblocking operation, may be performed to improve visual quality.
[0092] 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 other embodiments, 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.
[0093] II. Derivation of boundary strength in deblocking In HEVC, the deblocking filtering process is performed for each CU in the same order as the decoding process. First the vertical edges are filtered (horizontal filtering), then the horizontal edges are filtered (vertical filtering). If it is determined that an 8x8 block boundary is to be filtered, filtering may be applied to the 8x8 block boundary for both luma and chroma components. To reduce complexity, 4x4 block boundaries may not be processed. The boundary strength (Bs) may be used to indicate the degree or strength of the deblocking filtering process that may be used for the boundary. In one embodiment, a value of 2 for Bs indicates strong filtering, 1 indicates weak filtering, and 0 indicates no deblocking filtering.
[0094] In one embodiment, Bs is calculated on a 4x4 sample grid basis, but may be remapped to an 8x8 sample grid. In one example, an 8x8 block contains four 4x4 blocks, so the boundary of an 8x8 block contains two sides of two adjacent 4x4 blocks. The maximum of the two values of Bs corresponding to the eight pixels that form a line of the 4x4 grid may be selected as the Bs for the boundary of the 8x8 grid.
[0095] 8 shows a flow chart of an exemplary process (800) for determining a Bs value according to one embodiment of the present disclosure. It should be noted that in other embodiments, the order of the steps in FIG. 8 may be rearranged or one or more steps may be omitted.
[0096] In Figure 8, P and Q are two adjacent blocks with a boundary between them. For a vertical edge, P can represent the block to the left of the boundary and Q can represent the block to the right of the boundary. For a horizontal edge, P can represent the block above the boundary and Q can represent the block below the boundary.
[0097] As shown in FIG. 8, the Bs value may be determined based on the prediction mode (e.g., intra-coding mode), the non-zero transform coefficients (e.g., the presence of non-zero transform coefficients), the reference picture, the number of motion vectors, and the motion vector difference.
[0098] In step (S810), the process (800) determines whether P or Q is coded in an intra-prediction mode. If it is determined that at least one of P and Q is coded in an intra-prediction mode, the process (800) determines a first value of Bs (e.g., 2). Otherwise, the process (800) proceeds to step (S820).
[0099] In step (S820), the process (800) determines whether P or Q has a non-zero transform coefficient. If it is determined that at least one of P and Q has a non-zero transform coefficient, the process (800) determines a second value of Bs (e.g., 1). Otherwise, the process (800) proceeds to step (S830).
[0100] In step (S830), the process (800) determines whether P and Q have different reference pictures. If it is determined that P and Q have different reference pictures, the process (800) determines a third value of Bs (e.g., 1). Otherwise, the process (800) proceeds to step (S840).
[0101] In step (S840), the process (800) determines whether P and Q have different numbers of motion vectors. If it is determined that P and Q have different numbers of motion vectors, the process (800) determines a fourth value of Bs (e.g., 1). Otherwise, the process (800) proceeds to step (S850).
[0102] In step (S850), process (800) determines whether the motion vector difference between P and Q is greater than or equal to threshold T. If it is determined that the motion vector difference between P and Q is greater than or equal to threshold T, process (800) determines a fifth value of Bs (e.g., 1). Otherwise, process (800) determines a sixth value of Bs (e.g., 0). In one embodiment, threshold T is set to 1 pixel. In an example, the MV precision is ¼ pixel and the value of the MV difference threshold may be set to 4. In another example, the MV precision is 1 / 16 and the value of the MV difference threshold may be set to 16.
[0103] III. Block Differential Pulse Code Modulation Mode Block Differential Pulse Code Modulation (BDPCM) is an intra-coding tool that uses a Differential Pulse Code Modulation (DPCM) approach at the block level. bdpcm_flag can be sent at the CU level whenever the CU is a luma intra-coded CU with each dimension less than or equal to 32. The flag indicates whether regular intra-coding or DPCM is used, and whether it is coded using a single context-based adaptive binary arithmetic coding (CABAC) context.
[0104] BDPCM may use the LOCO-I median edge detector (used in JPEG-LS, for example). Specifically, for a target pixel X with pixel A as its left neighbor, pixel B as its top neighbor, and C as its top-left neighbor, the prediction of target pixel XP(X) is determined by the following equation: If C ≥ max(A, B), then P(X) = min(A, B). If C ≤ min(A, B), then max(A, B) Otherwise, A+BC
[0105] The pixel predictor uses unfiltered reference pixels when predicting from the top row and left column of the CU. The predictor then uses the reconstructed pixels for the rest of the CU. The pixels are processed in raster scan order within the CU. The prediction error may be quantized in the spatial domain in the same way as the transform skip quantizer, after rescaling. Each pixel may be reconstructed by adding the dequantized prediction error to the prediction. The reconstructed pixel can then be used to predict the next pixel in raster scan order. The amplitude and sign of the quantized prediction error are coded separately. cbf_bdpcm_flag is also coded. If cbf_bdpcm_flag is equal to 0, all amplitudes of the block are decoded as zero. If cbf_bdpcm_flag is equal to 1, all amplitudes of the block are coded separately in raster scan order. To keep the complexity low, the amplitudes can be limited to at most 31 (inclusive). The amplitudes can be coded using unary binarization, with three contexts in the first bin, one context for each additional bin up to the 12th bin, and one context for all remaining bins. The signs can be coded with a bypass model for every zero residual.
[0106] To maintain the consistency of normal intra-mode prediction, the first mode in the most probable mode (MPM) list for intra-mode prediction is associated with the BDPCM CU (without being transmitted) and is available for generating the MPM of the subsequent block.
[0107] Since neither BDPCM coded block performs the transformation that typically causes blocking artifacts, the deblocking filter may be deactivated at the boundary between two BDPCM coded blocks. Furthermore, BDPCM may not use steps other than those described here. In particular, BDPCM may not perform the transformation in residual coding as described above.
[0108] Several tests were conducted on BDPCM to investigate its throughput improvement and interaction with other Screen Content Coding (SCC) tools.
[0109] Figure 9A shows an example of a BDPCM coded block according to one embodiment. The example shown in Figure 9A relates to Test 1. As shown in Figure 9A, to increase throughput, smaller blocks (e.g., having sizes of 4x4, 4x8, and 8x4) can be partitioned into two independently decodable regions using a diagonal that effectively divides the block into two halves (e.g., a staircase partition).
[0110] In one embodiment, pixels from one region in the first half may not be allowed to use pixels from other regions in the second half to compute a prediction. If a pixel from one region needs to use a pixel from the other region to compute a prediction, a reference pixel is used instead. For example, a pixel from the other region may be replaced by the nearest reference pixel. For example, a left neighbor may be replaced by a left reference pixel in the same row, a top neighbor may be replaced by a left reference pixel in the same column, and a top left neighbor may be replaced by a nearest reference pixel. Thus, the two regions may be processed in parallel.
[0111] FIG. 9A also provides exemplary throughputs for blocks with different sizes. For example, for a 4×4 block with two individually decodable regions, the throughput may be 4 pixels per cycle. For a 4×8 or 8×4 block with two individually decodable regions, the throughput may be 5.33 pixels per cycle. For an 8×8 block with no individually decodable regions, the throughput may be 4.26 pixels per cycle. For an 8×8 block with no individually decodable regions, the throughput may be 4.26 pixels per cycle. For a 16×16 block with no individually decodable regions, the throughput may be 8.25 pixels per cycle.
[0112] FIG. 9B illustrates an example of a BDPCM coded block according to an embodiment. The example shown in FIG. 9B is related to test 2. In FIG. 9B, the block may be split using a vertical or horizontal predictor to replace the JPEG-LS predictor. The vertical or horizontal predictor may be selected and signaled at the block level. The shape of the individually decodable region reflects the shape of the predictor. Due to the shape of the horizontal or vertical predictor using the left or top pixel to predict the target pixel, the most throughput-efficient way to process the block is to process all pixels in one column or row in parallel and process these columns or rows in sequence. For example, to improve throughput, a block of width 4 is split into two halves at the horizontal boundary if the predictor selected for this block is vertical, and a block of height 4 is split into two halves at the vertical boundary if the predictor selected for this block is horizontal. For a 4×4 block, 8×4, or 4×8 block with two individually decodable regions, the throughput may be 8 pixels per cycle. For 4x8 blocks, 8x4 blocks, or 8x8 blocks with no individually decodable regions, the throughput may be 8 pixels per cycle. For 16x16 blocks with no individually decodable regions, the throughput may be 16 pixels per cycle.
[0113] In test 3, according to an embodiment of the present disclosure, the BDPCM residual amplitude is limited to 28 and the amplitude is encoded with truncated unary binarization for the first 12 bins, followed by exponential-Golomb equal probability of order 2 (e.g., using the encodeRemAbsEP() function) for the remaining bins.
[0114] IV. Coding of Transform Coefficients Entropy coding may occur at the final stage of video coding (or at the first stage of video decoding) after the video signal has been converted into a set of syntax elements. Entropy coding may be a lossless compression scheme that uses statistical properties to compress data such that the number of bits used to represent the data is logarithmically proportional to the probability of the data. For example, by performing entropy coding on a set of syntax elements, the bits representing the syntax elements (called bins) may be converted into fewer bits (called coded bits) in the bitstream. CABAC is one form of entropy coding. In CABAC, a context model that provides a probability estimator may be determined for each bin in the set of bins based on a context associated with the respective bin. The probability estimator may then be used to perform a binary arithmetic coding process to code the sequence of bins into coded bits in the bitstream. Additionally, the context model is updated with new probability estimators based on the coded bins.
[0115] FIG. 10A illustrates an exemplary CABAC-based entropy encoder (1000A) according to one embodiment. For example, the entropy encoder (1000A) may be implemented in the entropy coder (545) in the example of FIG. 5 or the entropy encoder (625) in the example of FIG. 6. The entropy encoder (1000A) may include a context modeler (1010) and a binary arithmetic encoder (1020). In one example, syntax elements of various types are provided as input to the entropy encoder (1000A). For example, bins of binarized syntax elements may be input directly to the context modeler (1010), while non-binarized syntax elements may be binarized into bin strings before the bins of the bin strings are input to the context modeler (1010).
[0116] In one example, the context modeler (1010) receives bins of syntax elements and performs a context modeling process to select a context model for each received bin. For example, bins of binary syntax elements of transform coefficients in a transform block are received. If the current block is coded with BDPCM for prediction, the transform block may be a transform skip block. Thus, a context model for this bin may be determined based on, for example, the type of syntax element, the color component type of the transform component, the position of the transform coefficient, and neighboring transform coefficients previously processed. The context model may provide a probability estimator for this bin.
[0117] In one example, a set of context models may be configured for one or more types of syntax elements. These context models may be arranged in a context model list (1002) stored in a memory (1001), as shown in FIG. 10A. Each entry in the context model list (1002) may represent a context model. Each context model in the list may be assigned an index, referred to as a context model index or context index. Additionally, each context model may include a probability estimator, or a parameter indicative of the probability estimator. The probability estimator may indicate the likelihood that a bin is 0 or 1. For example, during context modeling, the context modeler (1010) may calculate a context index for a bin, and accordingly, a context model is selected from the context model list (1002) according to the context index and assigned to the bin.
[0118] Furthermore, the probability estimators in the context model list may be initialized at the beginning of operation of the entropy encoder (1000A). After a context model in the context model list (1002) has been assigned to a bin and used to encode the bin, the context model may then be updated according to the value of the bin with an updated probability estimator.
[0119] In one example, the binary arithmetic encoder (1020) receives the bins and the context models (e.g., probability estimators) assigned to the bins, and performs a binary arithmetic encoding process accordingly, which results in coded bits that are transmitted in a bitstream.
[0120] FIG. 10B illustrates an exemplary CABAC-based entropy decoder (1000B) according to one embodiment. For example, the entropy decoder (1000B) may be implemented in the parser (420) in the example of FIG. 4 or the entropy decoder (771) in the example of FIG. 7. The entropy decoder (1000B) may include a binary arithmetic decoder (1030) and a context modeler (1040). The binary arithmetic decoder (1030) receives coded bits from a bitstream and performs a binary arithmetic decoding process to recover bins from the coded bits. The context modeler (1040) may operate similarly to the context modeler (1010). For example, the context modeler (1040) may select a context model in a context model list (1004) stored in the memory (1003) and provide the selected context model to the binary arithmetic decoder (1030). The context modeler (1040) can determine a context model based on the bins recovered from the binary arithmetic decoder (1030). For example, based on the recovered bins, the context modeler (1040) can know the type of syntax elements of the next to be decoded bin and the values of previously decoded syntax elements. That information is used to determine the context model for the next to be decoded bin.
[0121] V. Restrictions on the Number of Context-Encoded Bins As described above, the residual associated with each pixel may be binarized into a bin representing its sign and a set of bins representing its absolute value. The absolute value may be quantized to be equal to or less than a given number (e.g., 31 or 28). One or more context models, or equal probability (EP) models (i.e., bypass models), may be associated with each bin. For each residual symbol, up to 13 bins may be associated with one or more context models. A large number of context-coded bins (e.g., at least the bins associated with the context models) may reduce the throughput of the entropy encoder or decoder during syntax encoding and may be burdensome in some codec implementations (e.g., some hardware codecs). Thus, setting a maximum number of context-coded bins may, for example, increase the encoding speed, but also reduce the required memory size and the cost of maintaining those context models.
[0122] Accordingly, aspects of the present disclosure include methods for limiting the number of context-coded bins used for transform coefficient entropy coding. For example, in BDPCM mode, the number of bins in the binary representation of the quantized residual may be associated with a context model. In some embodiments, one or more limitations are imposed on the number of bins associated with the context model.
[0123] A W×H block may be virtually divided into multiple sub-regions. A subset of the multiple sub-regions may be coded with BDPCM in parallel with each other. In one example, each of the multiple sub-regions may be coded with BDPCM in parallel with each other. The W×H block may be a transform block or a transform skip block. The maximum number of context coded bins for each sub-region (e.g., MaxCcbs) may be set to B×A, where A is the number of quantized residuals in the sub-region and B is a positive number. B may or may not be signaled in the bitstream, e.g., from the encoder to the decoder. If the number of bins in a sub-region does not exceed a limit (e.g., B×A), each bin in the sub-region may be coded with a context model. If the number of bins in a sub-region exceeds this limit, the remaining bins that are not context coded may be coded with another model (e.g., EP model).
[0124] In one embodiment, B is the same for the luma and chroma components, e.g., B=2. In one embodiment, B is different for the luma and chroma components, e.g., B=2 for the luma component and B=1 for the chroma component.
[0125] In one embodiment, B may be a fraction, such as 0.5 or 1.2. In some examples, B depends on A, which is the number of quantized residuals in a subregion, as defined above. For example, if A is less than a threshold, B may be equal to a particular value (e.g., 1); otherwise, B may be equal to another value (e.g., 2). The threshold may be, for example, 4, 8, 16, 32, 64, 128, or 256.
[0126] In one embodiment, B may be determined based on two thresholds. For example, if A is less than a first threshold, B may be equal to a first value (e.g., 1). If A is greater than or equal to a second threshold, B may be equal to a second value (e.g., 2). By way of example, the first and second thresholds may be any of the following values: 4, 8, 16, 32, 64, 128, and / or 256.
[0127] In one embodiment, B may be determined based on more than two (e.g., three) thresholds in a manner similar to that described above. For example, if A is less than a first threshold, B may be equal to a first value (e.g., 0.5). If A is greater than or equal to the first threshold and less than a second threshold, B may be equal to a second value (e.g., 1). If A is greater than or equal to a third threshold, B may be equal to a third value (e.g., 2). By way of example, the first, second, and third thresholds may be any of the following values: 4, 8, 16, 32, 64, 128, and / or 256.
[0128] In one embodiment, a block of W×H is not divided into sub-regions and contains only one region. The maximum number of context-coded bins of a region may also be set to B×A, where A is equal to W×H, B is a positive number, and the maximum number of context-coded bins (e.g., MaxCcbs) is equal to B×W×H. If the number of bins in a block does not exceed a limit (e.g., B×W×H), each bin in the block can be coded with a context model. If the number of bins in a block exceeds this limit, the remaining bins that are not context-coded may be coded with another model (e.g., EP model).
[0129] In one embodiment, a W×H block is divided into H sub-regions, with each sub-region containing one row of W residuals. In this case, A may be equal to W, and the maximum number of context-coded bins in each row (e.g., MaxCcbs) is equal to B×W. If the number of bins in a row does not exceed a limit (e.g., B×W), each bin in the row may be coded with a context model. If the number of bins in a row exceeds this limit, the remaining bins not associated with a context model may be coded with another model (e.g., EP model).
[0130] In one embodiment, a W×H block is divided into W sub-regions, with each sub-region containing one column of H residuals. In this case, A may be equal to H, and the maximum number of context-coded bins (e.g., MaxCcbs) in each column is equal to B×H. If the number of bins in a sub-region does not exceed a limit (e.g., B×H), then each bin in the column may be coded with a context model. If the number of bins in a column exceeds this limit, the remaining bins not associated with a context model may be coded with another model (e.g., EP model).
[0131] In one embodiment, any partition can be used to generate sub-regions, such as the stepped partitions described in Figure 9A, or the horizontal / vertical splits described in Figure 9B. Additionally, in other embodiments above, more than two partitions can be used.
[0132] 11 illustrates an example method of coefficient coding based on a maximum number of context-coded bins. The maximum number of context-coded bins may be set, for example, based on one or more of the embodiments described above.
[0133] As noted above, bits representing syntax elements (e.g., bins) may be converted to fewer bits in the bitstream by entropy coding the syntax elements. In FIG. 11, the quantized residual (1110) may be converted to a binary string (1120) using binary coding. For example, the converted binary string (1120) may be: The binary string (1120) may include four segments and may represent two syntax elements. The bin of the first syntax element is 110100100011111000111010100101010100101010 and the bin of the second syntax element is 10010101010111000111000101101010101011010101110. A CABAC-based entropy encoder, such as the entropy encoder (545) of FIG. 5 or the entropy encoder (625) of FIG. 6, may perform context modeling on the binary string based on the maximum number of context-coded bins. For example, if both the block width W and the block height H are equal to 4 and the block contains only one region, A may be equal to 4×4=16 and B may be set to 2. Thus, the maximum number of context-coded bins in the block is B×A=32. Thus, as shown in FIG. 11, if the number of context-coded bins (shown in bold and underlined font) for this block does not reach 32 (shown in the first three segments of the binary string), the entropy encoder is free to choose whether to encode the bins using context modeling according to the BDPCM algorithm. Once the maximum number of context-coded bins (e.g., MaxCcbs) is reached (as shown in the fourth segment), the remaining bins cannot be encoded with context modeling. Instead, the bins may be encoded with the EP model. In some examples, the entropy encoder may include a counter, which counts the number of context-coded bins. The counter output may be initially set to 0 and may count from 0 to the maximum number of context-coded bins. When the counter reaches the maximum number of context-coded bins, the remaining bins should not be coded with context modeling.
[0134] In one embodiment, if the block width W and block height H are both equal to 8, the block is divided into 4 sub-regions of equal size, with each sub-region having a size of 4×4. Thus, A is equal to 16. In this case, B is 2, and the maximum number of context-coded bins is 32. Thus, the example described in FIG. 11 may also be applied to this embodiment.
[0135] FIG. 12 illustrates an exemplary method of coefficient decoding based on the maximum number of context-coded bins. According to one embodiment, a CABAC-based entropy decoder can be provided. The entropy decoder can be implemented in the parser (420) in the example of FIG. 4 or in the entropy decoder (771) in the example of FIG. 7. As described above, the binary arithmetic decoder of the entropy decoder receives the coded bits (1210) from the bitstream and performs a binary arithmetic decoding process to recover the bins (1220) from the coded bits. Similar to the entropy encoder, the entropy decoder can also determine the maximum number of context-coded bins based on the size of the block or divided sub-regions. For example, if both the block width W and the block height H are equal to 4 and the block contains only one region, A may be set to 16 and B to 2. Thus, the maximum number of context-coded bins is B×A=32. Thus, as shown in FIG. 12, if the number of context-coded bins (shown in bold and underlined font) for this block does not reach 32 (shown in the first three segments of the binary string), the entropy decoder is free to choose whether to decode the coded bins using context modeling according to the BDPCM algorithm. If the context-coded bins reach the maximum number (as shown in the fourth segment), the bins cannot be decoded with context modeling. Instead, the bins are decoded with the EP model. The decoded binary string (1220) may be converted to a quantized residual (1230) using a debinarization process.
[0136] VI. Applying a deblocking filter to BDPCM coded blocks As described above, for example, a deblocking filter may be deactivated at a boundary between two BDPCM coded blocks because neither of the BDPCM coded blocks undergoes a transform that causes blocking artifacts. To avoid or minimize blocking artifacts, a deblocking filter may be applied between two blocks where at least one of the blocks is coded with BCPCM to avoid or minimize perceptual artifacts.
[0137] In one embodiment, the deblocking filter may be activated or deactivated at any time between BDPCM coded blocks and non-BDPCM coded blocks. In some examples, a boundary strength (Bs) is set to a fixed value between BDPCM coded blocks and non-BDPCM coded blocks. The fixed value is 0, 1, or 2. For example, a value of 0 indicates that the deblocking filter is deactivated, 1 indicates that weak filtering is applied, and 2 indicates that strong filtering is applied.
[0138] In one embodiment, the deblocking filter may be activated any time between two adjacent BDPCM coded blocks. Bs may be set to different values according to the prediction modes of the two BDPCM coded blocks. In some examples, if one block is coded with horizontal BDPCM and the other block is coded with vertical BDPCM, Bs is set to 2. In other examples, if both blocks are coded using horizontal prediction, Bs is set to 1.
[0139] In some embodiments, the deblocking filter may be conditionally activated between two adjacent BDPCM coded blocks. In some examples, the deblocking filter is activated only if the difference in QP of the two adjacent BDPCM coded blocks is greater than a threshold. The threshold may be, for example, 0, 1, 2, or 3.
[0140] In some examples, the deblocking filter is activated only if two BDPCM coded blocks have different prediction modes, e.g., if one block is coded with horizontal BDPCM and the other block is coded with vertical BDPCM, the deblocking filter is activated.
[0141] In some examples, BDPCM is not considered as an intra mode in the derivation of the boundary strength between two adjacent BDPCM modes. The reference and MV check in the derivation of the boundary strength is skipped for two adjacent BDPCM blocks. For example, when the boundary strength derivation process described in FIG. 8 is applied and at least one of the two adjacent BDPCM coded blocks has a non-zero coefficient, Bs is set to 1 and the deblocking filter is activated. If neither of the two adjacent BDPCM coded blocks has a non-zero coefficient, Bs is set to 0 and the deblocking filter is deactivated.
[0142] VII. Exemplary Decoding Process FIG. 13 shows a flow chart outlining an entropy decoding process (1300) according to some embodiments of the present disclosure. The process (1300) may be used in entropy decoding of some types of transform coefficient syntax elements based on the maximum number of context-coded bins disclosed herein. In various embodiments, the process (1300) may be performed by a processing circuit, such as the processing circuit of the terminal device (210), (220), (230) and (240), a processing circuit performing the functions of the video decoder (310), a processing circuit performing the functions of the video decoder (410), etc. In some embodiments, the process (1300) is implemented with software instructions, and thus the processing circuit performs the process (1300) when the processing circuit executes the software instructions. The process starts at (S1301) and proceeds to (S1310).
[0143] At (S1310), a bitstream including coded bits may be received. The coded bins may be coded from bins of various types of syntax elements corresponding to residuals of transform skip blocks in the coded picture. For example, the various types of syntax elements may include critical syntax elements, parity syntax elements, syntax elements greater than 1, and / or syntax elements greater than 2. A critical syntax element (e.g., sig_coeff_flag) may indicate that the absolute value of the current transform coefficient (absLevel) is greater than 0. A parity syntax element (e.g., par_level_flag) may indicate the parity of the absLevel. A syntax element greater than 1 (e.g., rem_abs_gt1_flag) may indicate that absLevel-1 is greater than 0. A syntax element greater than 2 (e.g., rem_abs_gt2_flag) may indicate that absLevel-4 is greater than 0. A transform skip block may indicate that no transform was performed on the transform block, e.g., if the current block is coded with BDPCM, no transform is performed on the transform block.
[0144] In (S1320), context modeling may be performed to determine a context model for each of some bins of the syntax element of the region. The number of bins of the context-coded syntax element must not exceed the maximum number of context-coded bins set for the region. The number of bins of the syntax element is less than or equal to the total number of bins of the syntax element of the region of the transform skip block. The maximum number of context-coded bins may be determined according to one or more of the above embodiments. For example, the maximum number of context-coded bins (e.g., MaxCcbs) of the region of the transform skip block is set to B×A, where B is a positive number and A is the number of quantized residuals in the region. B may be a predetermined number, such as an integer or a fraction. Alternatively, B may depend on A. B may be signaled from the encoder to the decoder, so that the decoder can also determine the maximum number of context-coded bins of B×A.
[0145] At (S1330), the coded bits of some bins of the syntax element may be decoded based on the determined context model. The coded bits of the remaining total number of bins of the syntax element for the region of the transform skip block may be decoded based on the EP model (i.e., the bypass model). Based on the reconstructed bins, the transform coefficient levels of the transform coefficients may be reconstructed. The process (1300) proceeds to (S1399), where it ends.
[0146] FIG. 14 shows a flow chart outlining a deblocking filtering process (1400) according to some embodiments of the present disclosure. The process (1400) may be used when at least one of the current block and neighboring blocks of the encoded video bitstream is coded with block differential pulse code modulation (BDPCM). In various embodiments, the process (1400) may be performed by a processing circuit, such as a processing circuit of a terminal device (210), (220), (230), or (240), a processing circuit performing the function of a video decoder (310), a processing circuit performing the function of a video decoder (410), or the like. In some embodiments, the process (1400) is implemented with software instructions, such that the processing circuit performs the process (1400) when the processing circuit executes the software instructions. The process begins at (S1401) and proceeds to (S1410).
[0147] At (S1410), a bitstream including the encoded bits may be received.
[0148] At (S1420), an indicator may be received from the encoder. The indicator may indicate whether at least one of the target block and neighboring blocks of the encoded video bitstream are coded with block differential pulse code modulation (BDPCM). The target block may be neighboring neighboring blocks. The target block is in a target CU, and the neighboring blocks may be in the same CU or in other CUs neighboring the target CU. As described above, bdpcm_flag may be transmitted at the CU level whenever the CU is a luma intra CU with a dimension of 32 or less. Thus, if the bdpcm_flag received by the decoder indicates that the CU is coded with BDPCM, the target block is coded with BDPCM. Thus, the target block in the CU and at least one of the neighboring blocks of the received encoded video bitstream are coded with BDPCM. Similarly, if the bdpcm_flag received by the decoder indicates that the other CU is coded with BDPCM and the neighboring blocks are in the other CU, the neighboring blocks are coded with BDPCM. Thus, the current block in the CU and at least one of the neighboring blocks in other CUs of the received coded video bitstream are coded with BDPCM.
[0149] At (S1430), the process (1400) determines whether at least one of the current block and the neighboring blocks is indicated as being coded with BDPCM. If at least one of the current block and the neighboring blocks is indicated as being coded with BDPCM, the process (1400) proceeds to step (S1440).
[0150] At (S1440), a boundary strength (Bs) may be determined to be applied to the boundary between a current sub-block in the current block and a neighboring sub-block in the neighboring block.
[0151] In (S1450), deblocking can be performed on the boundary between the target sub-block in the target block and the neighboring sub-block in the neighboring block using a deblocking filter according to the determined boundary strength. The deblocking filter can be applied according to one or more of the above embodiments.
[0152] For example, if at least one of the target block and the neighboring blocks is indicated as being coded with BDPCM, the deblocking filter may be activated or deactivated at any time between the target subblock in the target block and the neighboring subblock in the neighboring block. Bs may be determined to be applied to the boundary between the target subblock in the target block and the neighboring subblock in the neighboring block. The target subblock in the target block and the neighboring subblock in the neighboring block may be adjacent to each other. When the determination of Bs uses the method described in FIG. 8, if at least one of the target subblock in the target block and the neighboring subblock in the neighboring block is intra-coded, Bs is determined to be a fixed value of 2. In one embodiment, the determination of Bs may not use the method described in FIG. 8. Instead, Bs may be determined to be a flexible value, such as 0, 1, or 2.
[0153] In one embodiment, if neighboring sub-blocks within a neighboring block are also coded with BDPCM, a deblocking filter may be activated any time between the current sub-block and the neighboring sub-blocks.
[0154] In one embodiment, if neighboring sub-blocks in a neighboring block are also coded with BDPCM, the deblocking filter may be conditionally activated between the current sub-block and the neighboring sub-blocks. The conditions may include the difference in QP between the two sub-blocks, the prediction modes of the current block and the neighboring blocks, and whether BDPCM is considered as an intra mode when determining Bs according to the method described in FIG.
[0155] The process (1400) proceeds to (S1499) where it ends.
[0156] VIII. Computer Systems The techniques described above can be implemented as computer software using computer readable instructions and physically stored on one or more computer readable media. For example, Figure 15 illustrates a computer system (1500) suitable for implementing certain embodiments of the disclosed subject matter.
[0157] Computer software may be encoded using any suitable machine code or computer language and may be subject to assembly, compilation, linking, or similar mechanisms to create code containing instructions that can be executed by one or more computer central processing units (CPUs), graphics processing units (GPUs), etc., directly, or through interpretation, execution of microcode, etc.
[0158] 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.
[0159] 15 for computer system (1400) are exemplary in nature and are not intended to suggest any limitation as to the scope of use or functionality of the computer software implementing the embodiments of the present disclosure, nor should the arrangement of components be interpreted as having a dependency or requirement regarding any one or combination of components illustrated in the exemplary embodiment of computer system (1500).
[0160] The computer system (1500) may include certain human interface input devices. Such human interface input devices may be responsive to input by one or more users, such as, for example, tactile input (keystrokes, swipes, data glove movements, etc.), audio input (voice, clapping, etc.), visual input (gestures, etc.), olfactory input (not shown), etc. Human interface devices may also be used to capture certain media that are not necessarily directly related to conscious human input, such as sound (speech, music, environmental sounds, etc.), images (scanned images, photographic images obtained from a still image camera, etc.), and video (two-dimensional video, three-dimensional video including stereoscopic video, etc.).
[0161] The input human interface devices may include one or more of a keyboard (1501), a mouse (1502), a trackpad (1503), a touch screen (1510), a data glove (not shown), a joystick (1505), a microphone (1506), a scanner (1507), a camera (1508), etc. (only one of each is shown).
[0162] The computer system (1500) may also include certain human interface output devices. Such human interface output devices may stimulate one or more of the 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 (1510), data gloves (not shown), or joystick (1505), although there may also be haptic feedback devices that do not function as input devices), audio output devices (such as speakers (1509), headphones (not shown)), visual output devices (such as screens (1510), 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 output two-dimensional visual output or three or more dimensional output via means such as stereographic output, virtual reality glasses (not shown), holographic displays, and smoke tanks (not shown)), and printers (not shown).
[0163] The computer system (1500) may also include human accessible storage devices and their associated media, such as optical media including CD / DVD ROM / RW (1520) along with media such as CDs / DVDs (1521), thumb drives (1522), removable hard drives or solid state drives (1523), legacy magnetic media such as tapes and floppy disks (not shown), dedicated ROM / ASIC / PLD based devices such as security dongles (not shown), etc.
[0164] Those skilled in the art should also understand that the term "computer-readable medium" as used in connection with the subject matter disclosed herein does not encompass transmission media, carrier waves, or other transitory signals.
[0165] The computer system (1500) may also include interfaces to one or more communication networks. The networks may be, for example, wireless, wired, optical. Additionally, the networks may 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, GSM, cellular networks including 3G, 4G, 5G, LTE, etc., TV wired or wireless wide area digital networks including cable television, satellite television, terrestrial broadcast television, vehicular, industrial including CANBus, etc. Certain networks generally require an external network interface adapter connected to a particular general-purpose data port or peripheral bus (1549) (e.g., a USB port on the computer system (1500)), while others are generally integrated into the core of the computer system (1500) by connecting to a system bus as described below (e.g., an Ethernet interface to a PC computer system or a cellular network interface to a smartphone computer system). Using any of these networks, the computer system (1500) can communicate with other entities. Such communications may be unidirectional, receive only (e.g., broadcast TV), unidirectional transmit only (e.g., from a CANbus to a particular CANbus device), or bidirectional, e.g., to other computer systems using local-area or wide-area digital networks. As noted above, specific protocols and protocol stacks may be used with each of these networks and network interfaces.
[0166] The aforementioned human interface devices, human accessible storage devices, and network interfaces may be connected to the core (1540) of the computer system (1500).
[0167] The cores (1540) may include one or more central processing units (CPUs) (1541), graphics processing units (GPUs) (1542), specialized programmable processing units in the form of field programmable gate areas (FPGAs) (1543), hardware accelerators for specific tasks (1544), etc. These devices may be connected via a system bus (1548), along with read only memory (ROM) (1545), random access memory (1546), and internal mass storage devices (1547) such as internal hard drives or SSDs that are not user accessible. In some computer systems, the system bus (1548) may be accessible in the form of one or more physical plugs to allow expansion with additional CPUs, GPUs, etc. Peripherals may be connected directly to the core's system bus (1548) or via a peripheral bus (1549). Peripheral bus architectures include PCI, USB, etc.
[0168] The CPU (1541), GPU (1542), FPGA (1543), and accelerator (1544) may execute a number of instructions that may combine to constitute the aforementioned computer code. The computer code may be stored in a ROM (1545) or a RAM (1546). Persistent data may be stored, for example, in an internal mass storage device (1447), while transitory data may also be stored in a RAM (1446). The use of a cache memory, which may be closely associated with one or more of the CPU (1441), GPU (1442), mass storage device (1447), ROM (1445), RAM (1446), etc., allows for fast storage and retrieval in any memory device.
[0169] 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.
[0170] By way of example and not limitation, a computer system having the architecture (1500), and in particular the core (1540), 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 devices introduced above, as well as media associated with specific storage of the core (1540) that is non-transitory in nature, such as the core internal mass storage (1547) or ROM (1545). Software implementing various embodiments of the present disclosure can be stored in such devices and executed by the core (1540). The computer-readable media can include one or more memory devices or chips according to particular needs. The software can cause the core (1540) and in particular the processor therein (including a CPU, GPU, FPGA, etc.) to perform certain processes or certain portions of certain processes described herein, including the definition of data structures stored in RAM (1546) and modifying such data structures according to the software-defined processes. Additionally, or alternatively, a computer system may provide functionality as a result of logic hardwired or otherwise embedded in circuitry (e.g., accelerator (1544)) that may operate in place of or together with software to perform particular processes or particular portions of particular processes described herein. References to software may include logic, and vice versa, as appropriate. References to computer-readable media may encompass circuitry (such as integrated circuits (ICs)) that store software for execution, circuitry embodying logic for execution, or both, as appropriate. The present disclosure encompasses any suitable combination of hardware and software. Appendix A: Acronyms JEM: joint exploration model VVC:versatile video coding BMS:benchmark set MV: Motion Vector HEVC:High Efficiency Video Coding SEI: Supplementary Enhancement Information VUI: Video Usability Information GOP:Groups of Pictures TU: Transform Units PU: Prediction Units CTU: Coding Tree Units CTB: Coding Tree Blocks PB: Prediction Blocks HRD: Hypothetical Reference Decoder SNR: Signal Noise Ratio CPU: Central Processing Units GPU: Graphics Processing Units CRT:Cathode Ray Tube LCD: Liquid-Crystal Display OLED: Organic Light-Emitting Diode CD: Compact Disc DVD: Digital Video Disc ROM: Read-Only Memory RAM: Random Access Memory ASIC: Application-Specific Integrated Circuit PLD: Programmable Logic Device LAN: Local Area Network GSM: Global System for Mobile communications (pan-European digital mobile communications system) LTE: Long-Term Evolution CANBus: Controller Area Network Bus USB: Universal Serial Bus PCI: Peripheral Component Interconnect FPGA: Field Programmable Gate Areas SSD: solid-state drive IC: Integrated Circuit CU: Coding Unit DPCM: Differential Pulse-code Modulation BDPCM: Block Differential Pulse-code Modulation SCC: Screen Content Coding Bs:Boundary Strength
[0171] While this disclosure has described several exemplary embodiments, there are alterations, permutations, and various substitute 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. [Explanation of symbols]
[0172] 101 Target Block 102 Block A0 133 Block A1 104 Block B0 105 Block B1 106 Block B2 200 Communication Systems 210 Terminal Devices 220 Terminal Devices 230 Terminal Devices 240 Terminal Devices 250 Network 301 Video Source 302 Video Picture Stream 303 Video Encoder 304 Encoded Video Data 305 Streaming Server 306 Client Subsystem 307 Copy 308 Client Subsystem 309 Copy 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-Image Prediction Unit 453 Motion Compensation Prediction Unit 455 Aggregator 456 Loop Filter Unit 457 Reference Picture Memory 458 Target Picture Buffer 501 Video Sources 503 Video Encoder 520 Electronic Devices 530 Source Coder 532 encoding engine 533 Decoder 534 Reference Picture Memory 535 Predictor 540 Transmitter 543 coded video sequence 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 Reconstruction Module 780 Inter Decoder 800 processes 1001 Memory 1002 Context Model List 1003 Memory 1004 Context Model List 1010 Context Modeler 1020 Binary Arithmetic Encoder 1030 Binary Arithmetic Encoder 1040 Context Modeler 1110 Quantization residual 1120 Binary String 1210 coded bits 1220 Binary String 1230 Quantization residual 1300 Processes 1400 Processes 1500 Computer Systems, Architecture 1501 Keyboard 1502 Mouse 1503 Trackpad 1505 Joystick 1506 Mike 1507 Scanner 1508 Camera 1509 Speaker 1510 Touch Screen 1520 CD / DVD ROM / RW 1521 CD / DVD and other media 1522 Thumb Drive 1523 Removable Hard Drive or Solid State Drive 1540 Core 1541 Central Processing Unit (CPU) 1542 Graphics Processing Unit (GPU) 1543 Field Programmable Gate Area (FPGA) 1544 Hardware Accelerator 1545 Read-Only Memory (ROM) 1546 Random Access Memory 1547 Internal mass storage 1548 System Bus 1549 Surrounding Bus
Claims
1. A bitstream including several bins of syntax elements, the bitstream being encoded or decoded by a computer, the syntax elements corresponding to residuals of regions of transform skip blocks in an encoded image, the transform skip blocks being coded with block differential pulse code modulation (BDPCM) and divided into a plurality of regions; each of the bins of some of the syntax elements of the region is context modeled to determine a context model; the number of bins of the context-coded syntax element does not exceed a maximum number of context-coded bins set for the region; the maximum number of context coded bins is determined based on a comparison between a threshold and a number of quantized residuals in the region; the number of bins of the syntax element are decoded based on the determined context model. Bitstream.
2. the number of bins of a context coded syntax element is less than or equal to a total number of bins of syntax elements of the region of the transform skip block. The bitstream of claim 1.
3. the maximum number of context coded bins of the region of the transform skip block is B×A, where A is the number of quantized residuals in the region and B is a positive number based on the number of quantized residuals in the region denoted by A; A bitstream as claimed in claim 1 or 2.
4. the coded bits of the remaining total number of bins of syntax elements that are not context coded for the region of the transform skip block are decoded based on an equal probability model. The bitstream of claim 2.
5. B is an integer, A bitstream as claimed in claim 3.
6. B is a fraction, A bitstream as claimed in claim 3.
7. B is set according to A, A bitstream as claimed in claim 3.
8. the transform skip block includes only the region, and A is equal to W×H of the transform skip block, where W is the width of the transform skip block and H is the height of the transform skip block; A bitstream as claimed in claim 3.
9. The transform skip block is divided into a plurality of regions including the region; the maximum number of context coded bins in each of the plurality of regions of the transform skip block is B×A, where B is a positive number and A is a number of quantized residuals in the each of the plurality of regions. The bitstream of claim 1.
10. A video decoding device configured to decode a bitstream according to any one of claims 1 to 9.
11. A computer program product for causing a processor of a video decoding device to decode a bitstream according to any one of claims 1 to 9.
12. A video encoder configured to generate a bitstream according to any one of claims 1 to 9.
13. A computer program for causing a video encoder to generate a bitstream described in any one of claims 1 to 9.
