Video coding and decoding method and device, media data processing method, electronic equipment and storage medium
By checking the inferable conditions of the inter-picture prediction mode flag in the video encoding and decoding method, signaling redundancy is reduced, video encoding and decoding efficiency is improved, the problem of merge mode signaling redundancy in the existing technology is solved, and the More efficient video data compression.
Patent Information
- Application Number
- CN202411140314.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2020-05-01
- Filing Date
- 2020-05-06
- Publication Date
- 2024-10-15
AI Technical Summary
In existing video coding technology, redundant signaling in merge mode leads to low coding and decoding efficiency. Especially in inter-frame picture prediction mode, redundant information needs to be transmitted between the encoder and decoder, which affects the compression efficiency of video data.
By checking the inferrability conditions of specific inter-frame picture prediction mode flags in the video encoding and decoding methods, if the conditions are met, the flags are not parsed from the encoded video stream, and the prediction mode is directly inferred and applied to reduce signaling redundancy. .
It effectively eliminates the redundancy of merge mode signaling, improves the efficiency of video encoding and decoding, reduces data transmission and storage requirements, and improves the video compression ratio.
Smart Images

Figure CN118784831A_ABST
Abstract
Description
[0001] Incorporation by Reference
[0002] This application claims priority to U.S. Patent Application No. 16 / 865,052, filed on May 1, 2020, entitled "METHOD AND APPARATUS FOR VIDEO CODING", which claims priority to U.S. Provisional Application No. 62 / 849,105, filed on May 16, 2019, entitled "MERGE MODE SIGNALING". The entire disclosures of these prior applications are incorporated herein by reference in their entirety. Technical Field
[0003] The present application relates to video coding and decoding, and in particular to a video coding and decoding method and apparatus, a method for processing media data, an electronic device, and a storage medium. Background Art
[0004] The background description provided herein is intended to generally present the context of the present application. To the extent described in this background section, the work of the inventors currently named, as well as various aspects of the description that may not have the qualification of being prior art at the time of filing this application, are neither explicitly nor implicitly considered to be prior art of the present application.
[0005] Encoding and decoding of video can be performed using inter-picture prediction with motion compensation. An uncompressed digital video may include a series of pictures, each picture having a certain spatial dimension, such as 1920×1080 luma samples and associated chroma samples. The series of pictures may have a fixed or variable picture rate (informally, also referred to as a frame rate), for example, 60 pictures per second or 60 Hertz (Hz). Uncompressed video has significant requirements for bit rate. For example, 1080p60 4:2:0 video (1920×1080 luma sample resolution at 60Hz frame rate) with 8 bits per sample requires a bandwidth of nearly 1.5Gbit / s. One hour of such video requires more than 600GB of storage space.
[0006] One purpose of video encoding and decoding can be to reduce redundancy in the input video signal through compression. Compression can help reduce the bandwidth or storage space requirements mentioned above, in some cases, by two or more orders of magnitude. Both lossless compression and lossy compression and combinations thereof can be used for video encoding and decoding. Lossless compression refers to a technique that can reconstruct an exact copy of the original signal from the compressed original signal. When lossy compression is used, the reconstructed signal may not be exactly the same as the original signal, but the distortion between the original signal and the reconstructed signal is small enough that the reconstructed signal can be used for the intended application. Lossy compression is widely used in video. The amount of distortion allowed by lossy compression depends on the application; for example, users of certain consumer streaming applications can tolerate higher distortion than users of television distribution applications. The achievable compression ratio can reflect that the higher the allowable / tolerable distortion, the higher the compression ratio that can be produced.
[0007] Motion compensation may be a lossy compression technique and may involve a technique where a block of sample data from a previously reconstructed picture or part thereof (reference picture) is used to predict a newly reconstructed picture or part of a picture after being spatially shifted in a direction indicated by a motion vector (hereinafter MV). In some cases, the reference picture may be the same as the picture currently being reconstructed. The MV may have two dimensions: an X dimension and a Y dimension, or three dimensions, with the third dimension being used to indicate the reference picture in use (the latter may indirectly be a temporal dimension).
[0008] In some video compression techniques, the MV applicable to a certain sample data region can be predicted based on other MVs, for example, based on the MV related to another sample data region that is spatially adjacent to the region being reconstructed and whose decoding order precedes the MV. This can substantially reduce the amount of data required to encode and decode the MV, thereby eliminating redundancy and enhancing compression. MV prediction can be performed efficiently, for example, because when encoding an input video signal derived from a camera (called natural video), there is a statistical likelihood that multiple regions larger than the region to which a single MV can be applied move in similar directions, so in some cases similar motion vectors derived from multiple MVs of adjacent regions can be used for MV prediction. This results in the MV found for a given region being similar or identical to the MV predicted from the surrounding MVs, and after entropy coding and decoding, it can be represented with fewer bits than the number of bits used to directly code and decode 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, MV prediction itself can be lossy, for example, because there will be rounding errors when calculating predictors from several surrounding MVs.
[0009] Various MV prediction mechanisms are described in H.265 / HEVC (ITU-T H.265 Recommendation, "High Efficiency Video Coding", December 2016). Among the various MV prediction mechanisms provided by H.265, this application describes a technique referred to below as "spatial merging".
[0010] Please refer to Figure 1 , the current block (101) includes samples that have been discovered by the encoder during the motion search process, and the samples can be predicted based on the previous block of the same size that has generated a spatial offset. In addition, the MV can be derived from metadata associated with one or more reference pictures instead of encoding the MV directly. For example, the MV is derived from the metadata of the nearest reference picture (in decoding order) using the MV associated with any of the five surrounding samples A0, A1 and B0, B1, B2 (corresponding to 102 to 106 respectively). In H.265, MV prediction can use the prediction value of the same reference picture that the neighboring blocks are also using.
[0011] In some related examples, the specific merge mode selected by the encoder side from various merge modes for encoding a block is notified to the decoder side through signaling, so there is redundancy in the signaling of various merge modes. Summary of the invention
[0012] Various aspects of the present application provide video encoding / decoding methods and devices. In some examples, the video decoding method includes: before parsing a flag of a specific inter-frame picture prediction mode from an encoded video code stream, based on the size information of the current block, checking whether the flag is inferable or signaled, wherein the flag indicates whether the specific inter-frame picture prediction mode is used for encoding the current block; when the flag is inferable, inferring the flag without parsing the flag from the encoded video code stream; when the flag is signaled in the encoded video code stream, parsing the flag from the encoded video code stream; when the flag indicates that the specific inter-frame picture prediction mode is applied to the current block, reconstructing the current block according to the specific inter-frame picture prediction mode.
[0013] A video encoding method, for generating a video bitstream, comprising: based on size information of a current block, checking whether a flag of a specific inter-frame picture prediction mode is inferable or to be signaled in an encoded video bitstream, wherein the flag indicates whether the specific inter-frame picture prediction mode is used for encoding the current block; when the flag is inferable, skipping the operation of encoding the flag into the encoded video bitstream; when the flag is to be signaled in the encoded video bitstream, encoding the flag into the encoded video bitstream; when the flag indicates that the specific inter-frame picture prediction mode is applied to the current block, encoding the current block according to the specific inter-frame picture prediction mode.
[0014] A video decoding device includes: a processing circuit configured to execute the above-mentioned video decoding method.
[0015] A video encoding device includes: a processing circuit configured to execute the aforementioned video encoding method and the aforementioned video decoding method.
[0016] A method for processing visual media data, the method comprising: processing a bitstream of the visual media data according to a format rule, wherein the bitstream includes encoded information of a current block, the format rule stipulates: before parsing a flag of a specific inter-frame picture prediction mode from an encoded video bitstream, checking whether the flag is inferable or signaled based on size information of the current block, wherein the flag indicates whether the specific inter-frame picture prediction mode is used for encoding the current block; when the flag is inferable, inferring the flag without parsing the flag from the encoded video bitstream; when the flag is signaled in the encoded video bitstream, parsing the flag from the encoded video bitstream; when the flag indicates that the specific inter-frame picture prediction mode is applied to the current block, reconstructing the current block according to the specific inter-frame picture prediction mode.
[0017] A method for processing a video code stream, storing the video code stream on a non-volatile computer-readable storage medium, wherein the video code stream is generated according to the aforementioned video encoding method, or is decoded based on the aforementioned video decoding method.
[0018] Aspects of the present application also provide a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the aforementioned method is performed.
[0019] Aspects of the present application also provide an electronic device, including a memory for storing computer-readable instructions; a processor for reading the computer-readable instructions and executing the aforementioned method as instructed by the computer-readable instructions.
[0020] Through the method, device and electronic device of the embodiment of the present application, the decoder can check the inferable conditions of the flag of the specific prediction mode to determine whether the flag can be inferred. When the inferable conditions meet the requirements for inferring the flag, the decoder can infer the flag without parsing the flag from the decoded video code stream. In this way, the signaling redundancy of various merge modes can be eliminated, and the encoding and decoding efficiency can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Other features, properties and various advantages of the disclosed subject matter will become more apparent from the following detailed description and accompanying drawings, in which:
[0022] Figure 1 Schematic diagram of the current block and its surrounding spatial merging candidates in an example.
[0023] Figure 2 is a simplified block diagram of a communication system according to an embodiment.
[0024] Figure 3 is a simplified block diagram of another communication system according to an embodiment.
[0025] Figure 4 is a simplified block diagram of a decoder according to an embodiment.
[0026] Figure 5 is a simplified block diagram of an encoder according to an embodiment.
[0027] Figure 6 A block diagram of an encoder according to another embodiment is shown.
[0028] Figure 7 A block diagram of a decoder according to another embodiment is shown.
[0029] Figure 8 A flow chart showing the algorithm by which an encoder (or decoder) signals (parses) the merge mode flag.
[0030] Fig. 9 A flowchart outlining an example of a method according to some embodiments of the present disclosure is shown.
[0031] Fig.10 is a schematic diagram of a computer system according to an embodiment. Specific embodiments
[0032] Figure 2A simplified block diagram of a communication system (200) according to an embodiment disclosed in the present application is illustrated. The communication system (200) includes a plurality of terminal devices that can communicate with each other via, for example, a network (250). For example, the communication system (200) includes a first pair of terminal devices (210) and (220) interconnected via the network (250). Figure 2 In the example, a first pair of terminal devices (210) and (220) perform unidirectional data transmission. For example, the terminal device (210) may encode video data (e.g., a video picture stream collected 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 code streams. The terminal device (220) may receive the encoded video data from the network (250), decode the encoded video data to recover the video data, and display the video picture based on the recovered video data. Unidirectional data transmission may be common in applications such as media services.
[0033] In another example, the communication system (200) includes a second pair of terminal devices (230) and (240) that perform bidirectional transmission of encoded video data, which can occur, for example, during a video conference. For bidirectional data transmission, each of the terminal devices (230) and (240) can encode video data (e.g., a video picture stream collected by the terminal device) for transmission to the other terminal device (230) and (240) through the network (250). Each of the terminal devices (230) and (240) can also receive the encoded video data transmitted by the other terminal device (230) and (240), and can decode the encoded video data to restore the video data, and can display the video picture on an accessible display device based on the restored video data.
[0034] exist Figure 2In the example of, terminal device (210), terminal device (220), terminal device (230) and terminal device (240) may be illustrated as a server, a personal computer and a smart phone, but the principles disclosed in the present application may not be limited to this. The embodiments disclosed in the present application are applicable to laptop computers, tablet computers, media players and / or dedicated video conferencing equipment. Network (250) represents any number of networks that transmit encoded video data between terminal devices (210), terminal devices (220), terminal devices (230) and terminal devices (240), including, for example, wired (wired) and / or wireless communication networks. Communication network (250) can exchange data in circuit switching and / or packet switching channels. Representative networks include telecommunication networks, local area networks, wide area networks and / or the Internet. For the purpose of this discussion, unless explained below, the architecture and topology of network (250) may be irrelevant to the operation disclosed in the present application.
[0035] As an example of the application of the subject matter disclosed in this application, Figure 3 The placement of the video encoder and video decoder in a streaming environment is shown. The subject matter disclosed in this application is equally applicable to other video-enabled applications, including, for example, video conferencing, digital TV, storing compressed video on digital media including CDs, DVDs, memory sticks, etc.
[0036] The streaming system may include an acquisition subsystem (313), which may include a video source (301) such as a digital camera, which creates, for example, an uncompressed video picture stream (302). In one example, the video picture stream (302) includes samples captured by a digital camera. The video picture stream (302) is depicted as a thick line to emphasize that it has a higher data volume compared to the encoded video data (304) (or encoded video bitstream), and the video picture stream (302) can be processed by an electronic device (320), which includes a video encoder (303) coupled to the video source (301). The video encoder (303) may include hardware, software, or a combination of hardware and software to implement or implement various aspects of the disclosed subject matter as described in more detail below. The encoded video data (304) (or the encoded video code stream (304)) is depicted as a thin line to emphasize that it has a lower data volume compared to the video picture stream (302), which can be stored on the streaming server (305) for future use. One or more streaming client subsystems, such as Figure 3A client subsystem (306) and a client subsystem (308) in a streaming server (305) may access a streaming server (305) to retrieve a copy (307) and a copy (309) of encoded video data (304). The client subsystem (306) may include, for example, a video decoder (310) in an electronic device (330). The video decoder (310) decodes the incoming copy (307) of the encoded video data and generates an output video picture stream (311) that can be presented on a display (312) (e.g., a display screen) or another presentation device (not depicted). In some streaming systems, the encoded video data (304), the video data (307), and the video data (309) (e.g., a video bitstream) may be encoded according to certain video encoding / compression standards. Examples of such standards include ITU-T Recommendation H.265. In one example, the video coding standard under development is informally referred to as Versatile Video Coding (VVC), and the present application may be used in the context of the VVC standard.
[0037] It should be noted that the electronic device (320) and the electronic device (330) may include other components (not shown). For example, the electronic device (320) may include a video decoder (not shown), and the electronic device (330) may also include a video encoder (not shown).
[0038] Figure 4 4 is a block diagram of a video decoder (410) according to an embodiment disclosed in the present application. The video decoder (410) may be provided 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 to replace Figure 3 A video decoder (310) is shown in an example.
[0039] The receiver (431) may receive one or more encoded video sequences to be decoded by the video decoder (410); in the same or another embodiment, one encoded video sequence is received at a time, wherein the decoding of each encoded video sequence is independent of the other encoded video sequences. The encoded video sequence may be received from a channel (401), which may be a hardware / software link to a storage device storing the encoded video data. The receiver (431) may receive the encoded video data as well as other data, such as encoded audio data and / or auxiliary data streams that may be forwarded to their respective consuming entities (not shown). The receiver (431) may separate the encoded video sequence from the other data. To prevent network jitter, a buffer memory (415) may be coupled between the receiver (431) and the entropy decoder / parser (420) (hereinafter referred to as "parser (420)"). In some applications, the buffer memory (415) is part of the video decoder (410). In other cases, the buffer memory (415) may be provided external to the video decoder (410) (not shown). In other cases, a buffer memory (not shown) is provided outside the video decoder (410) to prevent network jitter, for example, and another buffer memory (415) may be configured inside the video decoder (410) to handle broadcast timing, for example. When the receiver (431) receives data from a storage / forward device with sufficient bandwidth and controllability, or from an isochronous network, it may not be necessary to configure the buffer memory (415), or the buffer memory may be made smaller. For use on a best-effort service packet network such as the Internet, a buffer memory (415) may also be required, and the buffer memory may be relatively large and have an adaptive size, and may be at least partially implemented in an operating system or a similar element (not shown) outside the video decoder (410).
[0040] The video decoder (410) may include a parser (420) to reconstruct symbols (421) from the encoded video sequence. The types of symbols include information for managing the operation of the video decoder (410) and potential information for controlling a display device such as a display device (412) (e.g., a display screen) that is not part of the electronic device (430) but can be coupled to the electronic device (430), such as Figure 4As shown. The control information for the display device may be a parameter set fragment (not indicated) of a Supplemental Enhancement Information (SEI) message or a Video Usability Information (VUI). The parser (420) may parse / entropy decode the received coded video sequence. The coding of the coded video sequence may be performed according to a video coding technique or standard, and may follow various principles, including variable length coding, Huffman coding, arithmetic coding with or without context sensitivity, and the like. The parser (420) may extract a subgroup parameter set of at least one subgroup of the subgroups of pixels in the video decoder from the coded video sequence based on at least one parameter corresponding to the group. The subgroup may include a Group of Pictures (GOP), a picture, a tile, a slice, a macroblock, a Coding Unit (CU), a block, a Transform Unit (TU), a Prediction Unit (PU), and the like. The parser (420) may also extract information from the encoded video sequence, such as transform coefficients, quantizer parameter values, motion vectors, and so on.
[0041] The parser (420) may perform entropy decoding / parsing operations on the video sequence received from the buffer memory (415), thereby creating symbols (421).
[0042] Depending on the type of coded video picture or portion of coded video picture (e.g., inter- and intra-pictures, inter- and intra-blocks) and other factors, the reconstruction of the symbol (421) may involve multiple different units. Which units are involved and how they are involved may be controlled by subgroup control information parsed by the parser (420) from the coded video sequence. For the sake of brevity, such subgroup control information flow between the parser (420) and the multiple units below is not described.
[0043] In addition to the functional blocks already mentioned, the video decoder (410) can be conceptually subdivided into several functional units as described below. In a practical embodiment operating under commercial constraints, many of these units interact closely with each other and may be partially integrated with each other. However, for the purpose of describing the disclosed subject matter, the conceptual subdivision into the following functional units is appropriate.
[0044] The first unit is a sealer / inverse transform unit (451). The sealer / inverse transform unit (451) receives quantized transform coefficients as symbols (421) from the parser (420) and control information, including which transform method to use, block size, quantization factor, quantization scaling matrix, etc. The sealer / inverse transform unit (451) can output a block including sample values, which can be input into an aggregator (455).
[0045] In some cases, the output samples of the scaler / inverse transform unit (451) may belong to an intra-coded block; that is, a block that does not use predictive information from a previously reconstructed picture, but may use predictive information from a previously reconstructed portion of the current picture. Such predictive information may be provided by an intra-picture prediction unit (452). In some cases, the intra-picture prediction unit (452) uses surrounding reconstructed information extracted from a current picture buffer (458) to generate a block of the same size and shape as the block being reconstructed. For example, the current picture buffer (458) buffers a partially reconstructed current picture and / or a fully reconstructed current picture. In some cases, the aggregator (455) adds the prediction information generated by the intra-prediction unit (452) to the output sample information provided by the scaler / inverse transform unit (451) on a per-sample basis.
[0046] In other cases, the output samples of the scaler / inverse transform unit (451) may belong to an inter-frame coded and potentially motion compensated block. In this case, the motion compensated prediction unit (453) may access the reference picture memory (457) to extract samples for prediction. After the extracted samples are motion compensated according to the symbols (421) belonging to the block, these samples may be added to the output of the scaler / inverse transform unit (451) (in this case referred to as residual samples or residual signals) by the aggregator (455) to generate output sample information. The acquisition of the predicted samples by the motion compensated prediction unit (453) from the address in the reference picture memory (457) may be controlled by a motion vector, and the motion vector is provided to the motion compensated prediction unit (453) in the form of the symbols (421), for example, including X, Y and reference picture components. Motion compensation may also include interpolation of sample values extracted from the reference picture memory (457) when using sub-sample accurate motion vectors, motion vector prediction mechanisms, and the like.
[0047] The output samples of the aggregator (455) may be used by various loop filtering techniques in a loop filter unit (456). The video compression techniques may include in-loop filter techniques that are controlled by parameters included in the coded video sequence (also referred to as the coded video bitstream) and made available to the loop filter unit (456) as symbols (421) from the parser (420), but may also be responsive to meta-information obtained during decoding of a coded picture or a previous (in decoding order) portion of the coded video sequence, and to previously reconstructed and loop filtered sample values.
[0048] The output of the loop filter unit (456) may be a sample stream that may be output to a display device (412) and stored in a reference picture memory (457) for subsequent inter-picture prediction.
[0049] Once fully reconstructed, certain coded pictures may be used as reference pictures for future prediction. For example, once the coded picture corresponding to the 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 starting to reconstruct a subsequent coded picture.
[0050] The video decoder (410) may perform decoding operations according to a predetermined video compression technique in a standard such as ITU-T H.265 Recommendation. The encoded video sequence may conform to the syntax specified by the video compression technology or standard used in the sense that the encoded video sequence follows the syntax of the video compression technology or standard and the profile recorded in the video compression technology or standard. Specifically, the profile may select certain tools from all the tools available in the video compression technology or standard as the only tools available for use under the profile. For compliance, the complexity of the encoded video sequence is also required to be within the range defined by the hierarchy of the video compression technology or standard. In some cases, the hierarchy limits the maximum picture size, the maximum frame rate, the maximum reconstruction sampling rate (measured in, for example, mega samples per second), the maximum reference picture size, etc. In some cases, the limits set by the hierarchy may be further limited by the Hypothetical Reference Decoder (HRD) specification and metadata of the HRD buffer management signaled in the encoded video sequence.
[0051] In an embodiment, the receiver (431) may receive additional (redundant) data along with the encoded video. The additional data may be part of the encoded video sequence. The additional data may be used by the video decoder (410) to properly decode the data and / or 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.
[0052] Figure 5 1 is a block diagram of a video encoder (503) according to an embodiment disclosed in the present application. The video encoder (503) is provided in an electronic device (520). The electronic device (520) includes a transmitter (540) (e.g., a transmission circuit). The video encoder (503) can be used to replace Figure 3 A video encoder (303) in an embodiment.
[0053] The video encoder (503) can be used to obtain the video source (501) (not Figure 5 In another embodiment, the video source (501) is a part of the electronic device (520) in the example, and receives the video samples. The video source can collect video images to be encoded by the video encoder (503). In another embodiment, the video source (501) is a part of the electronic device (520).
[0054] The video source (501) may provide a source video sequence in the form of a digital video sample stream to be encoded by the video encoder (503), wherein the digital video sample stream may have 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 service system, the video source (501) may be a storage device storing previously prepared videos. In a video conferencing system, the video source (501) may be a camera that captures local image information as a video sequence. The video data may be provided as a plurality of separate pictures that are given motion when viewed sequentially. The pictures themselves may be constructed as a spatial pixel array, wherein each pixel may include one or more samples depending on the sampling structure, color space, etc. used. The relationship between pixels and samples may be easily understood by those skilled in the art. The following description focuses on samples.
[0055] According to an 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 constraints required by the application. Implementing an appropriate encoding speed is a function of the controller (550). In some embodiments, the controller (550) controls other functional units as described below and is functionally coupled to these units. For the sake of simplicity, couplings are not shown in the figure. The parameters set by the controller (550) may include rate control related parameters (picture skipping, quantizer, lambda value of rate distortion optimization technology, etc.), picture size, group of pictures (GOP) layout, maximum motion vector search range, etc. The controller (550) can be used to have other suitable functions that are related to the video encoder (503) optimized for a certain system design.
[0056] In some embodiments, the video encoder (503) operates in a coding loop. As a simplified description, in one example, the coding loop may include a source encoder (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 manner similar to how the (remote) decoder creates sample data (because in the video compression technology considered by the subject matter disclosed in this application, any compression between the symbols and the encoded video code stream is lossless). The reconstructed sample stream (sample data) is input to a reference picture memory (534). Since the decoding of the symbol stream produces bit-accurate results that are independent of the decoder location (local or remote), the contents of the reference picture memory (534) are also bit-accurate between the local encoder and the remote encoder. In other words, the reference picture samples "seen" by the prediction part of the encoder are exactly the same as the sample values that the decoder will "see" when using the prediction during decoding. This basic principle of reference picture synchronization (and the drift that occurs when synchronization cannot be maintained, eg due to channel errors) is also used in some related techniques.
[0057] The operation of the "local" decoder (533) may be combined with, for example, Figure 4 The "remote" decoder described in detail for the video decoder (410) is identical. However, additional brief reference is made to Figure 4 , when symbols are available and the entropy encoder (545) and parser (420) are capable of losslessly encoding / decoding the symbols into the encoded video sequence, the entropy decoding portion of the video decoder (410), including the buffer memory (415) and the parser (420), may not be fully implemented in the local decoder (533).
[0058] At this point, it can be observed that any decoder technology other than the parsing / entropy decoding present in the decoder must also be present in the corresponding encoder in substantially the same functional form. For this reason, the present application focuses on decoder operation. The description of encoder technology can be simplified because encoder technology is mutually inverse to the decoder technology described comprehensively. A more detailed description is only needed in certain areas and is provided below.
[0059] During operation, in some examples, the source encoder (530) may perform motion compensated predictive coding to predictively encode an input picture with reference to one or more previously encoded pictures from a video sequence designated as "reference pictures." In this manner, the encoding engine (532) encodes the difference between a pixel block of the input picture and a pixel block of a reference picture that may be selected as a prediction reference for the input picture.
[0060] The local video decoder (533) may decode the encoded video data of the picture that may be designated as the reference picture based on the symbol created by the source encoder (530). The operation of the encoding engine (532) may be a lossy process. When the encoded video data is available at the video decoder ( Figure 5 When the video encoder (503) is decoded at a remote location (not shown), the reconstructed video sequence may typically be a copy of the source video sequence with some errors. The local video decoder (533) replicates the decoding process that may be performed by the video decoder on the reference picture and may cause the reconstructed reference picture to be stored in the reference picture cache (534). In this way, the video encoder (503) may locally store a copy of the reconstructed reference picture that has common content (absent transmission errors) with the reconstructed reference picture that will be obtained by the remote video decoder.
[0061] The predictor (535) may perform a prediction search for the encoding engine (532). That is, for a new picture to be encoded, the predictor (535) may search the reference picture memory (534) for sample data (as candidate reference pixel blocks) or certain metadata, such as reference picture motion vectors, block shapes, etc., that may serve as appropriate prediction references for the new picture. The predictor (535) may operate pixel-by-pixel based on sample blocks to find a suitable prediction reference. In some cases, based on the search results obtained by the predictor (535), it may be determined that the input picture may have prediction references taken from a plurality of reference pictures stored in the reference picture memory (534).
[0062] The controller (550) may manage encoding operations of the source encoder (530), including, for example, setting parameters and subgroup parameters for encoding video data.
[0063] The outputs of all the above functional units may be entropy encoded in an entropy encoder (545). The entropy encoder (545) performs lossless compression on the symbols generated by the various functional units according to techniques such as Huffman coding, variable length coding, arithmetic coding, etc., thereby converting the symbols into a coded video sequence.
[0064] The transmitter (540) may buffer the encoded video sequence created by the entropy encoder (545) in preparation for transmission over a communication channel (560), which may be a hardware / software link to a storage device where the encoded video data will be stored. The transmitter (540) may combine the encoded video data from the video encoder (503) with other data to be transmitted, such as encoded audio data and / or ancillary data streams (source not shown).
[0065] The controller (550) may manage the operation of the video encoder (503). During encoding, the controller (550) may assign a certain coded picture type to each coded picture, but this may affect the coding techniques that can be applied to the corresponding picture. For example, a picture may generally be assigned to any of the following picture types:
[0066] An intra picture (I picture) may be a picture that can be encoded and decoded without using any other picture in the sequence as a prediction source. Some video codecs allow different types of intra pictures, including, for example, Independent Decoder Refresh ("IDR") pictures. Those skilled in the art are aware of the variations of I pictures and their corresponding applications and features.
[0067] A predictive picture (P picture) may be a picture that can be encoded and decoded using intra prediction or inter prediction, which uses at most one motion vector and a reference index to predict sample values for each block.
[0068] Bidirectional predictive pictures (B pictures), which can be pictures that can be encoded and decoded using intra prediction or inter prediction, which uses up to two motion vectors and reference indices to predict the sample values of each block. Similarly, multiple predictive pictures can use more than two reference pictures and associated metadata for reconstruction of a single block.
[0069] The source picture may typically be spatially subdivided into a number of blocks of samples (e.g., blocks of 4×4, 8×8, 4×8, or 16×16 samples each), and coded block by block. These blocks may be predictively coded with reference to other (already coded) blocks, which are determined according to the coding allocation applied to the block's corresponding picture. For example, blocks of an I picture may be non-predictively coded, or the blocks may be predictively coded (spatial prediction or intra-frame prediction) with reference to already coded blocks of the same picture. Blocks of pixels of a P picture may be predictively coded by spatial prediction with reference to one previously coded reference picture or by temporal prediction. Blocks of a B picture may be predictively coded by spatial prediction with reference to one or two previously coded reference pictures or by temporal prediction.
[0070] The video encoder (503) may perform encoding operations according to a predetermined video encoding technique or standard, such as ITU-T H.265 Recommendation. In operation, the video encoder (503) may perform various compression operations, including predictive encoding operations that exploit temporal and spatial redundancy in an input video sequence. Thus, the encoded video data may conform to the syntax specified by the video encoding technique or standard used.
[0071] In an embodiment, the transmitter (540) may transmit additional data along with the encoded video. The source encoder (530) may include such data as part of the encoded video sequence. The additional data may include temporal / spatial / SNR enhancement layers, redundant pictures and slices and other forms of redundant data, SEI messages, VUI parameter set fragments, etc.
[0072] The captured video may be taken as a plurality of source pictures (video pictures) in a temporal sequence. Intra-picture prediction (often simplified to intra-prediction) exploits spatial correlations in a given picture, while inter-picture prediction exploits (temporal or other) correlations between pictures. In an embodiment, a particular picture being encoded / decoded is divided into blocks, and the particular picture being encoded / decoded is referred to as the current picture. When a block in the current picture is similar to a reference block in a reference picture that was previously encoded in the video and is still buffered, the block in the current picture may be encoded by a vector called a motion vector. The motion vector points to a reference block in a reference picture, and in the case where multiple reference pictures are used, the motion vector may have a third dimension that identifies the reference picture.
[0073] In some embodiments, bidirectional prediction techniques may be used in inter-picture prediction. According to the bidirectional prediction technique, two reference pictures are used, for example, a first reference picture and a second reference picture, both of which are before the current picture in the video in decoding order (but may be in the past and future in display order, respectively). A block in the current picture may be encoded by a first motion vector pointing to a first reference block in the first reference picture and a second motion vector pointing to a second reference block in the second reference picture. The block may be predicted by a combination of the first reference block and the second reference block.
[0074] In addition, merge mode technology can be used in inter-picture prediction to improve coding efficiency.
[0075] According to some embodiments disclosed in the present application, predictions such as inter-picture prediction and intra-picture prediction are performed in blocks. For example, according to the HEVC standard, pictures in a video picture sequence are divided into coding tree units (CTUs) for compression, and the CTUs in the pictures have the same size, such as 64×64 pixels, 32×32 pixels, or 16×16 pixels. In general, a CTU includes three coding tree blocks (CTBs), which are a luminance CTB and two chrominance CTBs. Furthermore, each CTU can be split into one or more coding units (CUs) using a quadtree. For example, a 64×64 pixel CTU can be split into a 64×64 pixel CU, or 4 32×32 pixel CUs, or 16 16×16 pixel CUs. In an embodiment, each CU is analyzed to determine the prediction type for the CU, such as an inter-prediction type or an intra-prediction type. In addition, depending on temporal and / or spatial predictability, the CU is split into one or more prediction units (PUs). Typically, each PU includes a luminance prediction block (PB) and two chrominance PBs. In an embodiment, the prediction operation in encoding (encoding / decoding) is performed in units of prediction blocks. Taking the luminance prediction block as an example of a prediction block, the prediction block includes a matrix of pixel values (e.g., luminance values), such as 8×8 pixels, 16×16 pixels, 8×16 pixels, 16×8 pixels, and the like.
[0076] Figure 6 A diagram of a video encoder (603) according to another embodiment of the present disclosure is shown. The video encoder (603) is configured to receive a processed block (e.g., a prediction block) of sample values within a current video picture in a video picture sequence and encode the processed block into an encoded picture that is part of an encoded video sequence. In this embodiment, the video encoder (603) is configured to replace Figure 2The video encoder (303) in the example.
[0077] In the HEVC example, the video encoder (603) receives a matrix of sample values for a processing block, such as a prediction block of 8×8 samples. The video encoder (603) uses, for example, rate-distortion (RD) optimization to determine whether to use intra mode, inter mode, or bidirectional prediction mode to encode the processing block. When encoding the processing block in intra mode, the video encoder (603) may use intra prediction techniques to encode the processing block into an encoded picture; and when encoding the processing block in inter mode or bidirectional prediction mode, the video encoder (603) may use inter prediction or bidirectional prediction techniques to encode the processing block into an encoded picture, 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 the aid of an encoded motion vector component external to the predictor. In some other video encoding techniques, there may be a motion vector component applicable to the subject block. In an embodiment, the video encoder (603) includes other components, such as a mode decision module (not shown) for determining the processing block mode.
[0078] exist Figure 6 In the example of FIG. 6 , the video encoder ( 603 ) includes Figure 6 Shown are an inter-frame encoder (630), an intra-frame encoder (622), a residual calculator (623), a switch (626), a residual encoder (624), a common controller (621), and an entropy encoder (625) coupled together.
[0079] The inter-frame encoder (630) is used to receive samples of a current block (e.g., a processing block), compare the block with one or more reference blocks in a reference picture (e.g., blocks in a previous picture and a subsequent picture), generate inter-frame prediction information (e.g., redundant information description according to an inter-frame coding technique, motion vectors, merge mode information), and calculate an inter-frame prediction result (e.g., a predicted block) based on the inter-frame prediction information using any suitable technique. In some examples, the reference picture is a decoded reference picture decoded based on the encoded video information.
[0080] The intra-frame encoder (622) is used to receive samples of a current block (e.g., a processing block), compare the block with an encoded block in the same picture in some cases, generate quantization coefficients after transformation, and in some cases also generate intra-frame prediction information (e.g., intra-frame prediction direction information according to one or more intra-frame coding techniques). In one example, the intra-frame encoder (622) also calculates an intra-frame prediction result (e.g., a predicted block) based on the intra-frame prediction information and a reference block in the same picture.
[0081] The general controller (621) is used to determine the general control data and control other components of the video encoder (603) based on the general control data. In an embodiment, 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, when the mode is intra mode, the general controller (621) controls the switch (626) to select the intra mode result for use by the residual calculator (623) and controls the entropy encoder (625) to select the intra prediction information and add the intra prediction information to the bitstream; and when the mode is inter mode, the general controller (621) controls the switch (626) to select the inter prediction result for use by the residual calculator (623) and controls the entropy encoder (625) to select the inter prediction information and add the inter prediction information to the bitstream.
[0082] The residual calculator (623) is used to calculate the difference (residual data) between the received block and the prediction result selected from the intra-frame encoder (622) or the inter-frame encoder (630). The residual encoder (624) is used to operate based on the residual data to encode the residual data to generate a transform coefficient. In an embodiment, the residual encoder (624) is used to convert the residual data from the time domain to the frequency domain and generate a transform coefficient. The transform coefficient is then processed by quantization to obtain a quantized transform coefficient. In various embodiments, the video encoder (603) also includes a residual decoder (628). The residual decoder (628) is used to perform an inverse transform and generate decoded residual data. The decoded residual data can be used appropriately by the intra-frame encoder (622) and the inter-frame encoder (630). For example, the inter-frame encoder (630) can generate a decoded block based on the decoded residual data and the inter-frame prediction information, and the intra-frame encoder (622) can generate a decoded block based on the decoded residual data and the intra-frame prediction information. The decoded blocks are appropriately processed to generate a decoded picture, and in some embodiments, the decoded picture may be buffered in a memory circuit (not shown) and used as a reference picture.
[0083] The entropy encoder (625) is used to format the code stream to produce an encoded block. The entropy encoder (625) generates various information according to a suitable standard such as the HEVC standard. In an embodiment, the entropy encoder (625) is used to obtain general control data, selected prediction information (such as intra-frame prediction information or inter-frame prediction information), residual information, and other suitable information in the code stream. It should be noted that according to the disclosed subject matter, when the block is encoded in the inter-frame mode or the merge sub-mode of the bidirectional prediction mode, there is no residual information.
[0084] Figure 7A diagram of a video decoder (710) according to another embodiment disclosed in the present application is shown. The video decoder (710) is used to receive an encoded image as part of an encoded video sequence and decode the encoded image to generate a reconstructed picture. In one example, the video decoder (710) is used to replace Figure 3 A video decoder (310) is shown in an example.
[0085] exist Figure 7 In the example of FIG. 7 , the video decoder ( 710 ) includes Figure 7 An entropy decoder (771), an inter-frame decoder (780), a residual decoder (773), a reconstruction module (774) and an intra-frame decoder (772) coupled together are shown in FIG.
[0086] The entropy decoder (771) can be used to reconstruct certain symbols from the encoded picture, which represent the syntax elements that constitute the encoded picture. Such symbols may include, for example, the mode of the block coding (e.g., intra-frame mode, inter-frame mode, bidirectional prediction mode, a merged sub-mode of the latter two, or another sub-mode), prediction information (e.g., intra-frame prediction information or inter-frame prediction information) that can identify certain samples or metadata for prediction by the intra-frame decoder (772) or the inter-frame decoder (780), respectively, residual information in the form of, for example, quantized transform coefficients, etc. In one example, when the prediction mode is an inter-frame prediction mode or a bidirectional prediction mode, the inter-frame prediction information is provided to the inter-frame decoder (780); and when the prediction type is an intra-frame prediction type, the intra-frame prediction information is provided to the intra-frame decoder (772). The residual information can be inversely quantized and provided to the residual decoder (773).
[0087] The inter-frame decoder (780) is used for receiving the inter-frame prediction information and generating an inter-frame prediction result based on the inter-frame prediction information.
[0088] The intra-frame decoder (772) is used to receive intra-frame prediction information and generate a prediction result based on the intra-frame prediction information.
[0089] The residual decoder (773) is used to perform inverse quantization to extract dequantized transform coefficients, and process the dequantized transform coefficients to convert the residual from the frequency domain to the spatial domain. The residual decoder (773) may also require some control information (to obtain the quantizer parameter QP), and this information can be provided by the entropy decoder (771) (the data path is not indicated because this is only low-volume control information).
[0090] The reconstruction module (774) is used to combine the residual output by the residual decoder (773) with the prediction result (which can be output by the inter-frame prediction module or the intra-frame prediction module) in the spatial domain to form a reconstructed block, which can be part of a reconstructed picture, which in turn can be part of a reconstructed video. It should be noted that other suitable operations such as deblocking operations can be performed to improve visual quality.
[0091] It should be noted that the video encoder (303), video encoder (503), and video encoder (603) and video decoder (310), video decoder (410), and video decoder (510) may be implemented using any suitable technology. In an embodiment, the video encoder (303), video encoder (503), and video encoder (603) and video decoder (310), video decoder (410), and video decoder (710) may be implemented using one or more integrated circuits. In another embodiment, the video encoder (303), video encoder (503), and video encoder (503) and video decoder (310), video decoder (410), and video decoder (710) may be implemented using one or more processors that execute software instructions.
[0092] Various aspects of the present application provide techniques for merge mode signaling / skip mode signaling. Various merge modes / skip modes have been designed for inter-picture prediction codecs to improve video codecs for different video attributes. Skip modes generally operate in the same manner as corresponding merge modes. However, in skip mode, residual data is not added to the prediction block, while in merge mode, residual data is added to the prediction block. Note that although the signaling techniques are illustrated using merge mode, the signaling techniques can be applied to skip mode signaling.
[0093] In some examples, the merge mode may include a conventional merge mode, a motion vector difference merge (MMVD) mode, a sub-block-based merge mode, an intra-frame and inter-frame joint prediction (CIIP) mode, a triangle partitioning mode, etc. For example, at the encoder side, the encoder selects a specific merge mode from the merge modes to encode a block, and at the decoder side, the decoder uses the specific merge mode to reconstruct the samples of the block. In some related examples, the specific merge mode is notified from the encoder side to the decoder side by signaling, and there is redundancy in the signaling of various merge modes. The technology provided in the present application eliminates the signaling redundancy of various merge modes and improves the coding and decoding efficiency.
[0094] In some examples, flags are used to signal different merge / skip modes. In some embodiments, the encoder and decoder use a tree structure for merge mode decisions. Based on the tree structure, the flags are checked in a predefined order to determine the appropriate merge mode to encode / decode the block. Table 1 shows an example of a signaling method for five types of merge modes using merge mode flags. In the example of Table 1, four merge mode flags such as a regular flag, an MMVD flag, a sub-block flag, and a CIIP flag are used to signal different types of merge modes.
[0095] Table 1: Flags used to signal different types of merge modes
[0096]
[0097] In one example, a block is encoded / decoded using a merge mode. According to Table 1, when the conventional flag of the block is "true" (e.g., binary 1), the conventional merge mode is used to encode / decode the block, regardless of the values of other merge mode flags. When the conventional flag of the block is "false" (e.g., binary 0) and the MMVD flag is "true", the MMVD mode is used to encode / decode the block. When the conventional flag and the MMVD flag are "false" and the sub-block flag is "true", the sub-block-based merge mode is used to encode / decode the block. When the conventional flag, the MMVD flag and the sub-block flag are "false" and the CIIP flag is "true", the CIIP mode is used to encode / decode the block. When the conventional flag, the MMVD flag, the sub-block flag and the CIIP flag are "false", the triangle partitioning mode is used to encode / decode the block.
[0098] Table 2 shows the signaling method of four types of skip modes. In the example of Table 2, three flags such as a normal flag, an MMVD flag, and a sub-block flag are used to signal different skip modes. Note that in some examples, the same flag may be used to signal a merge mode or a skip mode that operates similarly to the merge mode.
[0099] Table 2: Flags used to signal different types of skip modes
[0100]
[0101] In one example, a block is encoded / decoded using skip mode. According to Table 2, when the conventional flag of the block is "true" (e.g., binary 1), the conventional skip mode is used to encode / decode the block, regardless of the values of other skip mode flags. When the conventional flag of the block is "false" (e.g., binary 0) and the MMVD flag is "true", the block is encoded / decoded using MMVD mode (skip). When the conventional flag and the MMVD flag are "false" and the sub-block flag is "true", the block is encoded / decoded using a sub-block-based skip mode. When the conventional flag, the MMVD flag, and the sub-block flag are false, the block is encoded / decoded using the triangle partitioning mode (skip).
[0102] Please note that although some descriptions in this application use the merge mode as an example, these descriptions are not limited to the merge mode and can be appropriately modified for the skip mode.
[0103] According to some aspects of the present application, the merge mode decision depends on high-level information (higher than block level) and information of the block. The high-level information includes information in the sequence parameter set (SPS), picture parameter set (PPS), slice header, tile group information, tile information, etc. The information of the block includes the size information of the block, such as the width, height and area of the block. Table 3 shows the syntax table of the merge mode.
[0104] Table 3: Syntax table of merge mode
[0105]
[0106]
[0107] In the example of Table 3, a tree structure is formed in the syntax to decide the appropriate merge mode (signaling a flag at the encoder side or parsing a flag at the decoder side) used on a block (e.g., upper left corner is (x0, y0), block width is cbWidth, and block height is cbHeight). The tree structure checks the merge mode in an order such as normal merge mode, MMV mode, sub-block based merge mode, CIIP mode, and triangle partitioning mode. For the mode, the allowable condition of the mode is first checked, and when the allowable condition is met, the flag can be signaled (at the encoder side) or parsed (at the decoder side).
[0108] In the example of Table 3, when the prediction mode of the block (e.g., CuPredMode[x0][y0]) is not the intra block copy mode (MODE_IBC), the tree structure is used to signal (or parse) information for the appropriate merge mode in the encoded video stream.
[0109] Specifically, in the example of Table 3, a regular flag (regular_merge_flag) of the regular merge mode is signaled. When the regular flag is 'true', a merge index (merge_index) is signaled.
[0110] In some examples (eg, VVC draft 5), when the variable MaxNumMergeCand in the slice header is greater than 0, normal merge mode is allowed, and the variable MaxNumMergeCand is used to signal the maximum number of merge candidates.
[0111] In one example, the variable allowRegularMerge is used to indicate whether the regular merge mode is allowed. For example, the variable allowRegularMerge can be defined as in (Equation 1):
[0112] allowRegularMerge=MaxNumMergeCand>0 (Equation 1)
[0113] Thus, for example, when MaxNumMergeCand is greater than 0, allowRegularMerge is "true"; otherwise, allowRegularMerge is "false".
[0114] In addition, in the example of Table 3, when the conventional flag is "false", the MMVD mode is checked. The MMVD mode is enabled by the flag sps_mmvd_enabled_flag in the SPS. In one example, when sps_mmvd_enabled_flag is "true" and the block size requirement is met, the MMVD mode is signaled. In one example, cbWidth represents the width of the codec block and cbHeight represents the height of the codec block. Then, when sps_mmvd_enabled_flag is "true" and cbWidth×cbHeight is not equal to 32, the MMVD flag (mmvd_flag) is signaled. When the MMVD flag is "true", other appropriate information for the MMVD mode is signaled.
[0115] Note that when cbWidth×cbHeight is equal to 32, only regular merge mode and MMVD mode are allowed. In the example where cbWidth×cbHeight is equal to 32, when the regular flag is "false", then the prediction mode is MMVD mode, and it can be inferred that the MMVD flag is "true". In this example, the MMVD flag does not need to be signaled by the encoder side to the decoder side. This example removes the redundancy of MMVD mode signaling.
[0116] In some examples, the variable allowMMVD is used to indicate whether the MMVD mode is allowed. The variable allowMMVD can be defined as in (Equation 2):
[0117] allowMMVD=sps_mmvd_enabled_flag (Equation 2)
[0118] In addition, in the example of Table 3, when the MMVD flag is "false", the sub-block based merge mode is checked. When the variable MaxNumSubblockMergeCand (based on the information signaled in the slice header) is greater than 0 and cbWidth and cbHeight are greater than or equal to 8, the sub-block based merge mode is allowed. In an example, when the sub-block based merge mode is allowed, the sub-block flag (merge_subblock_flag) is signaled. When the sub-block flag is "true", other appropriate information for the sub-block based merge mode can be signaled.
[0119] In one example, the variable allowSubMerge is used to indicate whether sub-block based merge mode is allowed. The variable allowSubMerge can be defined as in (Equation 3):
[0120] allowSubMerge=MaxNumSubblockMergeCand>0&&cbWidth>=8&&cbHeight>=8
[0121] (Equation 3)
[0122] In addition, in the example of Table 3, when the sub-block flag is "false", the CIIP mode is checked. When sps_ciip_enabled_flag is "true", the current block is not in skip mode, cbWidth×cbHeight is not less than 64, cbWidth is less than 128, and cbHeight is less than 128, the CIIP mode is allowed. In an example, when the CIIP mode is allowed, the CIIP flag is signaled. When the CIIP flag is "true", other appropriate information of the CIIP mode can be signaled.
[0123] In one example, the variable allowCIIP is used to indicate whether the CIIP mode is allowed. The variable allowCIIP is defined as in (Equation 4):
[0124] allowCIIP=sps_ciip_enabled_flag&&! cu_skip_flag&&cbWidth×cbHeight>=64&&cbWidth<128&&cbHeight<128 (Equation 4)
[0125] In some examples, the triangle merge mode can be inferred rather than signaled. When the regular flag, MMVD flag, sub-block flag, and CIIP flag are all "false", the triangle merge mode can be enabled. In order to allow the use of triangle merge mode, sps_triangle_enabled_flag needs to be "true", the current stripe must be a B stripe, MaxNumTriangleMergeCand (based on the information signaled in the stripe header) is greater than or equal to 2, and cbWidth×cbHeight is greater than or equal to 64. In an example, the variable allowTriangle is used to indicate whether the triangle merge mode is allowed. The variable allowTriangle can be defined as in (Equation 5):
[0126] allowTriangle=sps_triangle_enabled_flag&&slice_type==B&&MaxNumTriangleMergeCand>=2&&cbWidth×cbHeight>=64
[0127] (Equation 5)
[0128] In some related examples, the normal flag is always signaled. However, this is not necessary, because under certain conditions, the encoder and decoder can only choose the normal merge mode.
[0129] According to some aspects of the present application, on the encoder side, before signaling a merge mode flag of a merge mode, certain conditions are checked to determine whether the merge mode flag can be inferred. When the condition satisfies the requirement for inferring the merge mode flag, the encoder does not need to signal the merge mode flag. On the decoder side, the decoder may check the condition to determine whether the merge mode flag can be inferred. When the condition satisfies the requirement for inferring the merge mode flag, the decoder does not parse the decoded video bitstream for the merge mode flag, and the merge mode flag may be inferred. Therefore, signaling redundancy may be removed.
[0130] In some embodiments, when the merge mode flag has only one possible value under predefined conditions, the merge mode flag is inferred instead of explicitly signaling the merge mode. The merge modes that can be inferred may include, but are not limited to, regular merge mode, MMVD mode, sub-block based merge mode, CIIP mode, and triangle mode.
[0131] Figure 8 A flowchart of the algorithm for the encoder (decoder) to signal (parse) the merge mode flag is shown. Figure 8In the example of , under certain conditions, some merge mode flags are inferred rather than signaled (parsed). Thus, signaling costs are saved and redundancy can be removed. In one example, Figure 8 The algorithm in is executed by the processing circuit of the encoder. In another example, Figure 8 The algorithm in is executed by the processing circuit of the decoder.
[0132] exist Figure 8 In the example of , the encoding and decoding order of the tree structure starts from the normal merge mode, followed by the MMVD mode, the sub-block based merge mode, the CIIP mode, and the triangle partitioning mode. Please note that when the tree structure changes, the corresponding conditions can be changed accordingly.
[0133] Please also note that (Equation 3) to (Equation 5) are only examples of variables used to define certain conditions. The conditions may be defined in other suitable ways.
[0134] For example, (Equation 3) defines the variable allowSubMerge as a combination of several sub-conditions. The variable allowSubMerge can be indicated by a sub-condition. In an embodiment, the variable allowSubMerge is equal to MaxNumSubMergeCand>0. For example, when the variable MaxNumSubMergeCand is greater than zero, the variable allowSubMerge is "true" (for example, binary 1); when the variable MaxNumSubMergeCand is equal to zero, the variable allowSubMerge is "false" (for example, binary 0). In another embodiment, the variable allowSubMerge is equal to (cbWidth>=8 and cbHeight>=8). For example, when the width and height of the codec block are both greater than 8, the variable allowSubMerge is "true"; otherwise the variable allowSubMerge is "false".
[0135] In another example, (Equation 4) defines the variable allowCIIP as a combination of several sub-conditions. The variable allowCIIP can be defined by sub-conditions. In one embodiment, the variable allowCIIP is equal to sps_ciip_enabled_flag. In another embodiment, the variable allowCIIP is equal to! cu_skip_flag. For example, when the flag cu_skip_flag is "true", the variable allowCIIP is "false"; when the flag cu_skip_flag is "false", the variable allowCIIP is "true". In another embodiment, the variable allowCIIP is equal to (cbWidth×cbHeight>=64). For example, when the area of the block is equal to or greater than 64, the variable allowCIIP is "true"; otherwise, the variable allowCIIP is "false". In another embodiment, allowCIIP is equal to (cbWidth<128 and cbHeight<128). For example, when the width and height of the codec block are both less than 128, the variable allowCIIP is "true"; otherwise, the variable allowCIIP is "false".
[0136] In another example, (Equation 5) defines allowTriangle as a combination of several sub-conditions. The variable allowTriangle can be defined by sub-conditions. In one embodiment, the variable allowTriangle is equal to sps_triangle_enbaled_flag. In another embodiment, the variable allowTriangle is set based on slice_type. When slice_type is B (bidirectional prediction), the variable allowTriangle is "true"; when slice_type is not B, the variable allowTriangle is "false". In another embodiment, the variable allowTriangle is equal to (MaxTriangleMergeCand>=2). For example, when the variable MaxTriangleMergeCand is equal to or greater than 2, the variable allowTriangle is "true"; otherwise, the variable allowTriangle is "false". In another embodiment, the variable allowTriangle is equal to (cbWidth×cbHeight>=64). For example, when the area of the codec block is equal to or greater than 64, the variable allowTriangle is "true"; otherwise, the variable allowTriangle is "false".
[0137] Refer to Figure 8 , the algorithm starts at (S801) and proceeds to (S810).
[0138] At (S810), the first condition (allowRegularMerge&&(allowMMVD||allowSubMerge||allowCIIP||allowTriangle)) is checked. When the first condition is "true", the algorithm proceeds to (S812); when the first condition is "false", the algorithm proceeds to (S815).
[0139] At (S812), a regular flag is signaled from the encoder side (parsed by the decoder).
[0140] At (S815), the regular flag is not signaled, but inferred. In one example, when allowRegularMerge is "false", the regular flag is inferred to be "false". In another example, when (allowMMVD||allowSubMerge||allowCIIP||allowTriangle) is "false", the regular flag is inferred to be "true".
[0141] In some examples, the variables allowRegularMerge, allowMMVD, allowSubMerge, allowCIIP, allowTriangle are defined as in (Equation 1), (Equation 2), (Equation 3), (Equation 4), and (Equation 5).
[0142] Note that the variables allowSubMerge, allowCIIP, and allowTriangle can be defined in other appropriate ways. In some examples, some conditions of the merge mode are overlapped, for example, when cbWidth×cbHeight is less than 64 (e.g., the block width multiplied by the block height is equal to 32), the sub-block based merge mode, CIIP, and triangle partitioning mode are all disabled. When sps_MMVD_enabled_flag is false and cbWidth×cbHeight is less than 64, the MMVD mode, the sub-block based merge mode, CIIP mode, and the triangle partitioning mode are all disabled. In this case, only the regular merge mode is enabled.
[0143] At (S820), the normal flag is checked. When the normal flag is "true", the algorithm proceeds to (S825); otherwise, the algorithm proceeds to (S830).
[0144] At (S825), the normal flag is "true", the algorithm returns to the normal merge mode, and stops. Thereafter, the block is encoded (decoded) based on the normal merge mode.
[0145] At (S830), the second condition (allowMMVD&&(allowSubMerge||allowCIIP||allowTriangle)) is checked. When the second condition is "true", the algorithm proceeds to (S832); when the second condition is "false", the algorithm proceeds to (S835).
[0146] At (S832), the MMVD flag is signaled from the encoder side (parsed by the decoder).
[0147] At (S835), the MMVD flag is not signaled, but inferred. In one example, when allowMMVD is "false", the MMVD flag is inferred to be "false". In another example, when (allowSubMerge||allowCIIP||allowTriangle) is "false", the MMVD flag is inferred to be "true". In some examples, the variables allowMMVD, allowSubMerge, allowCIIP, allowTriangle are defined as (Equation 2), (Equation 3), (Equation 4) and (Equation 5). Please note that the variables allowMMVD, allowSubMerge, allowCIIP and allowTriangle can be defined in other appropriate ways.
[0148] At (S840), the MMVD flag is checked. When the MMVD flag is "true", the algorithm proceeds to (S845); otherwise, the algorithm proceeds to (S850).
[0149] At (S845), the MMVD flag is "true", the algorithm returns to the MMVD mode, and stops. The block is then encoded (decoded) based on the MMVD mode.
[0150] At (S850), the third condition (allowSubMerge&&(allowCIIP||allowTriangle)) is checked. When the third condition is "true", the algorithm proceeds to (S852); when the third condition is "false", the algorithm proceeds to (S855).
[0151] At (S852), the sub-block flag is signaled from the encoder side (parsed by the decoder).
[0152] At (S855), the sub-block flag is not signaled, but inferred. In one example, when allowSubMerge is "false", the sub-block flag is inferred to be "false". In another example, when (allowCIIP||allowTriangle) is "false", the sub-block flag is inferred to be "true". In some examples, the variables allowSubMerge, allowCIIP, allowTriangle are defined as in (Equation 3), (Equation 4) and (Equation 5). Please note that the variables allowSubMerge, allowCIIP and allowTriangle can be defined in other appropriate ways.
[0153] At (S860), the sub-block flag is checked. When the sub-block flag is "true", the algorithm proceeds to (S865); otherwise, the algorithm proceeds to (S870).
[0154] At (S865), the sub-block flag is "true", the algorithm returns to the sub-block based merge mode, and stops. Thereafter, the block is encoded (decoded) based on the sub-block based merge mode.
[0155] At (S870), the fourth condition (allowCIIP&&allowTriangle) is checked. When the fourth condition is "true", the algorithm proceeds to (S872); when the fourth condition is "false", the algorithm proceeds to (S875).
[0156] At (S872), the CIIP flag is signaled from the encoder side (parsed by the decoder).
[0157] At (S875), the CIIP flag is not signaled, but inferred. In one example, when allowSubMerge is "false", the CIIP flag is inferred to be "false". In another example, when allowTriangle is "false", the CIIP flag is inferred to be "true". In some examples, the variables allowCIIP and allowTriangle are defined as in (Equation 4) and (Equation 5). Please note that the variables allowCIIP and allowTriangle can be defined in other suitable ways.
[0158] At (S880), the CIIP flag is checked. When the CIIP flag is "true", the algorithm proceeds to (S882); otherwise, the algorithm proceeds to (S885).
[0159] At (S882), the CIIP flag is "true", the algorithm returns to CIIP mode, and stops. The block is then encoded (decoded) based on the CIIP mode.
[0160] At (S885), the algorithm returns the triangle partitioning mode and stops. Thereafter, the blocks are encoded (decoded) based on the triangle partitioning mode.
[0161] Note that in some examples, for inter prediction, the allowed cbWidth and cbHeight have been defined for each mode. However, in some examples, the allowed cbWidth and cbHeight can change, and then the variables and conditions can be changed appropriately.
[0162] In some embodiments, N is defined as the minimum allowed width, M is defined as the minimum allowed height, K is defined as the minimum area, H is defined as the upper limit of the width, L is defined as the upper limit of the height, and O is defined as the upper limit of the area. M, N, K, H, L, and O are non - negative integers. In one example, then the variables allowSubMerge, allowCIIP, and allowTriangle are defined as in (Equation 6) to (Equation 8).
[0163] allowSubMerge = MaxNumSubblockMergeCand > 0 && cbWidth >= N && cbHeight >= M
[0164] (Equation 6)
[0165] allowCIIP = sps_ciip_enabled_flag &&!cu_skip_flag && cbWidth × cbHeight >= K && cbWidth < H && cbHeight < L (Equation 7)
[0166] allowTriangle = sps_triangle_enabled_flag && slice_type is equal to B && MaxNumTriangleMergeCand >= 2 && cbWidth × cbHeight >= O (Equation 8)
[0167] According to another aspect of the present application, the redundancy of the merge mode signaling can be removed by context. In some embodiments, more context is added for the regular flag, MMVD flag, sub - block flag, and CIIP flag. When selecting the context, the context can be based on the block size or sps enabled flag or slice type. Some or all of the above - mentioned signaling conditions can be used to select the context.
[0168] In an embodiment, the regular flag can be based on the block width multiplied by the block height. For example, when cbWidth × cbHeight < size threshold, one context is used. Otherwise, another context is used.
[0169] According to another aspect of the present application, the conditional check for signaling the MMVD flag may be removed. In some examples, the MMVD flag is signaled without checking the block size to speed up the decoding process. Table 4 shows an example of the syntax for signaling the MMVD flag.
[0170] Table 4: Syntax for signaling the MMVD flag
[0171]
[0172] Compare Table 4 to Table 3, in which the MMVD flag is signaled without checking the block size (eg, block width, block height).
[0173] In some embodiments, to avoid corrupted code streams, consistency constraints may be added. In one example, the consistency constraints constrain the general merge flag and the skip flag. For example, when the regular flag is "false", the MMVD flag is "false", the sub-block flag is "false", the CIIP flag is "false" and the triangle flag is "false", then according to the consistency constraints, the general merge flag and the skip flag must be "false".
[0174] In another example, another consistency constraint is added: When the value of (cbWidth×cbHeight) is equal to 32 and the normal flag is "false", then according to the consistency constraint, the MMVD flag is signaled as "true".
[0175] Fig. 9 A flowchart outlining a method (900) according to an embodiment of the present application is shown. The method (900) can be used to determine a prediction mode for a block so as to generate a prediction block for a block in reconstruction based on the prediction mode. In various embodiments, the method (900) is performed by a processing circuit, such as a processing circuit in a terminal device (210), a terminal device (220), a terminal device (230), and a terminal device (240), a processing circuit that performs the functions of a video encoder (303), a processing circuit that performs the functions of a video decoder (310), a processing circuit that performs the functions of a video decoder (410), a processing circuit that performs the functions of a video encoder (503), and the like. In some embodiments, the method (900) is implemented in software instructions, so when the processing circuit executes these software instructions, the processing circuit performs the method (900). The method starts at (S901) and proceeds to (S910).
[0176] At (S910), before parsing the flag of the specific prediction mode of the current block from the encoded video code stream, the inferable condition of the flag associated with the specific prediction mode of the current block is checked. The specific prediction mode is one of multiple inter-frame picture prediction modes. In one example, the specific prediction mode is one of the merge modes. In another example, the specific prediction mode is one of the skip modes. In some embodiments, multiple inter-frame picture prediction modes form a tree structure for making a decision on the prediction mode of the current block. When the inferable condition indicates that it can be inferred, the method proceeds to (S920); otherwise, the method proceeds to (S930).
[0177] At (S920), the flag is inferred without parsing the flag associated with the specific prediction mode from the encoded video stream. In one example, when the flag can be inferred, the flag is not signaled in the encoded video stream to reduce signal redundancy.
[0178] At (S930), a flag associated with a specific prediction mode is parsed from the encoded video bitstream.
[0179] At (S940), the flag is checked to determine whether the flag indicates that a specific prediction mode is applied on the current block. When the flag indicates that a specific prediction mode is applied, the method proceeds to (S950); otherwise, the method proceeds to (S960).
[0180] At (S950), samples of the current block are reconstructed according to a specific prediction mode. The method proceeds to S999 and terminates.
[0181] At (S960), the method continues to decode the next flag in the tree structure.
[0182] The techniques described above may be implemented as computer software using computer-readable instructions and physically stored in one or more computer-readable storage media. Fig.10 A computer system (1000) suitable for implementing certain embodiments of the disclosed subject matter is shown.
[0183] The computer software may be encoded using any suitable machine code or computer language, which may be subjected to assembly, compilation, linking or similar mechanisms to create code comprising instructions that may be executed directly or through interpretation, microcode execution, etc., by one or more computer central processing units (CPU), graphics processing units (GPU), etc.
[0184] The instructions may be executed on various types of computers or computer components, including, for example, personal computers, tablets, servers, smart phones, gaming devices, Internet of Things devices, etc.
[0185] Fig.10 The components for computer system (1000) shown in the example are exemplary in nature and are not intended to imply any limitation on the scope of use or functionality of computer software implementing embodiments of the present application. Nor should the configuration of components be interpreted as having any dependency or requirement on any one or combination of components shown in the exemplary embodiment of computer system (1000).
[0186] The computer system (1000) may include certain human-machine interface input devices. Such human-machine interface input devices may be responsive to input by one or more human users, for example, through tactile input (e.g., keystrokes, swipes, data glove movements), audio input (e.g., voice, taps), visual input (e.g., gestures), olfactory input (not depicted). The human-machine interface devices may also be used to capture certain media that may not be directly related to a person's conscious input, such as audio (e.g., speech, music, ambient sound), images (e.g., scanned images, photographic images obtained from a still image camera), and videos (e.g., two-dimensional video, three-dimensional video including stereoscopic video).
[0187] Input human-machine interface devices may include one or more of the following (only one of each is depicted): keyboard (1001), mouse (1002), track pad (1003), touch screen (1010), data gloves (not shown), joystick (1005), microphone (1006), scanner (1007), camera (1008).
[0188] The computer system (1000) may also include certain human-machine interface output devices. Such human-machine interface output devices may stimulate the senses of one or more human users through, for example, tactile output, sound, light, and smell / taste. Such human-machine interface output devices may include tactile output devices (e.g., tactile feedback of a touch screen (1010), a data glove (not shown), or a joystick (1005), although there may also be tactile feedback devices that do not serve as input devices), audio output devices (e.g., speakers (1009), headphones (not depicted)), visual output devices (e.g., screens (1010), including CRT screens, LCD screens, plasma screens, OLED screens, each with or without touch screen input capabilities, each with or without tactile feedback capabilities - some of which are capable of outputting two-dimensional visual output or output greater than three dimensions through, for example, stereographic output; virtual reality glasses (not depicted), holographic displays, and smoke boxes (not depicted)), and printers (not depicted).
[0189] The computer system (1000) may also include human-accessible storage devices and associated media for the storage devices, such as optical media including CD / DVD ROM / RW (1020) with CD / DVD etc. media (1021), thumb drives (1022), removable hard drives or solid-state drives (1023), legacy magnetic media such as tapes and floppy disks (not depicted), ROM / ASIC / PLD based specialized devices such as security protection devices (not depicted), and the like.
[0190] Those skilled in the art will also understand that the term "computer-readable medium" used in connection with the presently disclosed subject matter does not encompass transmission media, carrier waves, or other transient signals.
[0191] The computer system (1000) may also include an interface to one or more communication networks. The network may be, for example, wireless, wired, optical. The network may also be local, wide area, metropolitan, vehicle-mounted and industrial, real-time, delay-tolerant, and the like. Examples of networks include local area networks such as Ethernet, wireless LAN, cellular networks including GSM, 3G, 4G, 5G, LTE, etc., TV wired or wireless wide area digital networks including cable TV, satellite TV, and terrestrial broadcast TV, vehicle-mounted networks and industrial networks including CAN buses, and the like. Some networks typically require an external network interface adapter attached to some general data port or peripheral bus (1049) (e.g., a USB port of the computer system (1000)); other networks are typically integrated into the core of the computer system (1000) by attaching to the system bus as described below (e.g., integrated into a PC computer system via an Ethernet interface, or integrated into a smart phone computer system via a cellular network interface). By using any of these networks, the computer system (1000) can communicate with other entities. Such communications may be one-way receive only (e.g. broadcast TV), one-way send only (e.g. a CAN bus connected to certain CAN bus devices), or bidirectional, such as connecting to other computer systems using a local area digital network or a wide area digital network. Certain protocols and protocol stacks may be used on each of the networks and network interfaces such as those described above.
[0192] The above-mentioned human-machine interface device, human-accessible storage device, and network interface may be attached to the core (1040) of the computer system (1000).
[0193] The core (1040) may include one or more central processing units (CPUs) (1041), graphics processing units (GPUs) (1042), dedicated programmable processing units in the form of field programmable gate areas (FPGAs) (1043), hardware accelerators for certain tasks (1044), and the like. These devices, along with read-only memory (ROM) (1045), random access memory (1046), and internal mass storage devices (1047) such as internal non-user accessible hard drives, SSDs, etc., may be connected via a system bus (1048). In some computer systems, the system bus (1048) may be accessible via one or more physical plugs to enable expansion with additional CPUs, GPUs, and the like. Peripheral devices may be attached to the core's system bus (1048) directly or via a peripheral bus (1049). Architectures for peripheral buses include PCI, USB, and the like.
[0194] The CPU (1041), GPU (1042), FPGA (1043) and accelerator (1044) can execute certain instructions, which in combination can constitute the above-mentioned computer code. The computer code can be stored in ROM (1045) or RAM (1046). Transient data can also be stored in RAM (1046), while permanent data can be stored, for example, in an internal mass storage device (1047). Fast storage and retrieval of any memory device can be achieved by using a cache memory, which can be closely associated with one or more CPUs (1041), GPUs (1042), mass storage devices (1047), ROMs (1045), RAMs (1046), etc.
[0195] The computer readable medium may have computer codes for performing various computer-implemented operations. The media and computer codes may be media and computer codes designed and constructed specifically for the purpose of this application, or may be of a type well known and available to technicians in the computer software field.
[0196] By way of example and not limitation, a computer system having the architecture (1000) and in particular the core (1040) may provide functionality resulting from the execution of software embodied in one or more tangible computer-readable media by a processor (including a CPU, GPU, FPGA, accelerator, etc.). Such computer-readable media may be media associated with the user-accessible mass storage device introduced above and certain storage devices of a non-temporary nature of the core (1040), such as a core-internal mass storage device (1047) or ROM (1045). Software implementing various embodiments of the present application may be stored in such devices and executed by the core (1040). Depending on specific needs, the computer-readable medium may include one or more memory devices or chips. The software may enable the core (1040) and, in particular, the processor therein (including a CPU, GPU, FPGA, etc.) to perform specific processes or specific portions of specific processes described herein, including defining data structures stored in the RAM (1046) and modifying such data structures according to processes defined by the software. Additionally or alternatively, the computer system may provide functionality produced by logic hardwired or otherwise embodied in circuits (e.g., accelerator (1044)) that may operate in place of or in conjunction with software to perform specific processes or specific portions of specific processes described herein. References to software may encompass logic, and vice versa, where appropriate. References to computer-readable media may encompass circuits (e.g., integrated circuits (ICs)) storing software for execution, circuits embodying logic for execution, or both, where appropriate. The present application encompasses any suitable combination of hardware and software.
[0197] Appendix A: Acronyms
[0198] JEM: Joint Exploration Model
[0199] VVC: Versatile Video Coding
[0200] BMS: Benchmark Set, benchmark set
[0201] MV: Motion Vector
[0202] HEVC: High Efficiency Video Coding
[0203] SEI: Supplementary Enhancement Information, auxiliary enhancement information
[0204] VUI: Video Usability Information, video availability information
[0205] GOP: Groups of Pictures, picture group
[0206] TU: Transform Unit
[0207] PU: Prediction Unit
[0208] CTU: Coding Tree Unit, coding tree unit
[0209] CTB: Coding Tree Block, coding tree block
[0210] PB: Prediction Block
[0211] HRD: Hypothetical Reference Decoder, hypothetical reference decoder
[0212] SNR: Signal Noise Ratio
[0213] CPU: Central Processing Unit
[0214] GPU: Graphics Processing Unit, Graphics Processing Unit
[0215] CRT: Cathode Ray Tube
[0216] LCD: Liquid-Crystal Display
[0217] OLED: Organic Light-Emitting Diode
[0218] CD: Compact Disc
[0219] DVD: Digital Video Disc
[0220] ROM:Read-Only Memory
[0221] RAM: Random Access Memory
[0222] ASIC: Application-Specific Integrated Circuit
[0223] PLD:Programmable Logic Device, programmable logic device
[0224] LAN: Local Area Network
[0225] GSM: Global System for Mobile communications
[0226] LTE: Long-Term Evolution
[0227] CANBus: Controller Area Network Bus, controller area network bus
[0228] USB: Universal Serial Bus
[0229] PCI: Peripheral Component Interconnect, peripheral device interconnect
[0230] FPGA: Field Programmable Gate Array
[0231] SSD: Solid-state drive
[0232] IC: Integrated Circuit
[0233] CU: Coding Unit
[0234] Although the present application describes several exemplary embodiments, various modifications, permutations and combinations, and various alternative equivalents are possible within the scope of the present application. Therefore, it should be understood that within the spirit and scope of the application, those skilled in the art can design various systems and methods that are not explicitly shown or described herein but can embody the principles of the present application.
Claims
1. A video decoding method, characterized in that: include: Before parsing a flag of a specific inter-picture prediction mode from an encoded video bitstream, checking whether the flag is inferable or signaled based on size information of a current block, wherein the flag indicates whether the specific inter-picture prediction mode is used for encoding the current block; When the flag is inferable, inferring the flag without parsing the flag from the encoded video stream; When the flag is signaled in the encoded video stream, parsing the flag from the encoded video stream; When the flag indicates that the specific inter-picture prediction mode is applied to the current block, the current block is reconstructed according to the specific inter-picture prediction mode.
2. The method according to claim 1, characterized in that: The checking whether the flag is inferable or signaled comprises: Before checking the inferable condition of another flag, check whether the flag is inferable or signaled, wherein the other flag is one of the regular flag of the regular merge mode / skip mode, the MMVD flag of the motion vector difference (MMVD) mode, the CIIP flag of the intra-frame and inter-frame joint prediction (CIIP) mode, and the triangle flag of the triangle partitioning mode.
3. The method according to claim 1, characterized in that The specific inter-picture prediction mode is not allowed to be used, and the result of checking the flag indicates that the flag is inferable.
4. The method according to claim 1, characterized in that: The size information of the current block indicates that the width or height of the current block is not greater than or equal to 8, Based on the size information, a result of checking the flag indicates that the flag is inferable.
5. The method according to claim 2, characterized in that: Whether the normal merge mode / skip mode, the MMVD mode, the CIIP mode, and the triangle partitioning mode are allowed to be used is determined based on at least one of a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, tile information, and tile group information.
6. The method according to claim 2, characterized in that The other flag is a CIIP flag, and the inferable conditions for checking the other flag include: When the flag value of the specific inter-picture prediction mode is "false", checking the CIIP mode; When the CIIP mode is allowed and the triangle partitioning mode is allowed, a CIIP flag corresponding to the CIIP mode is obtained from the encoded video code stream and the flag is parsed, and when the sending condition indicates that at least one of the conditions of allowing the CIIP mode and allowing the triangle partitioning mode is not satisfied, it is inferred that the CIIP flag is "false".
7. A video encoding method for generating a video code stream, characterized in that: include: Based on the size information of the current block, checking whether a flag of a specific inter-picture prediction mode is inferable or to be signaled in the encoded video bitstream, wherein the flag indicates whether the specific inter-picture prediction mode is used for encoding the current block; When the flag is inferable, skipping the operation of encoding the flag into the encoded video bitstream; When the flag is to be signaled in the encoded video stream, encoding the flag into the encoded video stream; When the flag indicates that the specific inter-picture prediction mode is applied to the current block, the current block is encoded according to the specific inter-picture prediction mode.
8. The method according to claim 7, characterized in that The checking whether the flag is inferable or signaled comprises: Before checking the inferable condition of another flag, check whether the flag is inferable or signaled, wherein the other flag is one of the regular flag of the regular merge mode / skip mode, the MMVD flag of the motion vector difference (MMVD) mode, the CIIP flag of the intra-frame and inter-frame joint prediction (CIIP) mode, and the triangle flag of the triangle partitioning mode.
9. The method according to claim 7, characterized in that: The specific inter-picture prediction mode is not allowed to be used, and the result of checking the flag indicates that the flag is inferable.
10. The method according to claim 7, characterized in that The size information of the current block indicates that the width or height of the current block is not greater than or equal to 8, Based on the size information, a result of checking the flag indicates that the flag is inferable.
11. The method according to claim 8, characterized in that Whether the normal merge mode / skip mode, the MMVD mode, the CIIP mode, and the triangle partitioning mode are allowed to be used is indicated based on at least one of a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, tile information, and tile group information.
12. A method for processing visual media data, characterized in that: The method comprises: Processing the code stream of the visual media data according to the format rules, wherein: The code stream includes the encoded information of the current block, The formatting rules state that: Before parsing a flag of a specific inter-picture prediction mode from an encoded video bitstream, checking whether the flag is inferable or signaled based on size information of a current block, wherein the flag indicates whether the specific inter-picture prediction mode is used for encoding the current block; When the flag is inferable, inferring the flag without parsing the flag from the encoded video stream; When the flag is signaled in the encoded video stream, parsing the flag from the encoded video stream; When the flag indicates that the specific inter-picture prediction mode is applied to the current block, the current block is reconstructed according to the specific inter-picture prediction mode.
13. A video decoding device, characterized in that: include: A processing circuit configured to execute the method according to any one of claims 1 to 6.
14. A video encoding device, characterized in that: include: A processing circuit configured to execute the method according to any one of claims 1 to 11.
15. An electronic device, characterized in that: The method comprises a memory for storing computer-readable instructions; and a processor for reading the computer-readable instructions and executing the method according to any one of claims 1 to 12 as instructed by the computer-readable instructions.
16. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 12 is performed.
17. A method for processing a video code stream, characterized in that: A video code stream is stored on a non-volatile computer-readable storage medium, wherein the video code stream is generated according to the video encoding method according to any one of claims 7 to 11, or is decoded based on the video decoding method according to any one of claims 1 to 6.
