Video encoding and decoding method and device
By adopting triangle partition mode and geometric merging mode in the video decoder, the problems of video coding redundancy and low motion vector prediction efficiency in the existing technology are solved, achieving more efficient video signal compression and decoding, and reducing bandwidth and storage costs. need.
Patent Information
- Application Number
- CN202080036040.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-11-02
- Filing Date
- 2020-12-09
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-12-09
AI Technical Summary
Existing video coding technology has redundancy when compressing video signals, resulting in high bandwidth and storage space requirements, and low motion vector prediction efficiency, making it difficult to effectively reduce the amount of coded data.
Using triangle partitioning mode (TPM) and geometric merging mode, by decoding the encoding information of the current picture in the video decoder, the enabled state of the geometric merging mode is determined based on the picture level parameters and the maximum number of merging candidates, and is enabled at the sequence level or picture level Triangle merging mode to optimize video encoding and decoding.
It effectively reduces the amount of data required for video encoding and decoding, improves the compression ratio, reduces bandwidth and storage requirements, and improves the coding efficiency of video signals.
Smart Images

Figure CN113940064B_ABST
Abstract
Description
[0001] Incorporated herein by reference
[0002] This application claims priority to U.S. Patent Application No. 17 / 087,224, filed on November 2, 2020, entitled “Video Encoding Method and Apparatus,” which claims priority to U.S. Provisional Application No. 62 / 954,473, filed on December 28, 2019, entitled “Signaling Maximum Number of Triangle Merging Candidates.” The entire disclosure of the prior application is incorporated herein by reference in its entirety. Technical Field
[0003] This disclosure describes embodiments that generally relate to video encoding and decoding. Background Art
[0004] The background description provided herein is intended to generally present the context of the present disclosure. To the extent that the work of the presently named inventors described in the background section and in various aspects of this specification is performed, it is not intended to be prior art at the time of filing of the present disclosure, and it is never expressly or impliedly admitted to be prior art of the present disclosure.
[0005] Video encoding and decoding can be performed using inter-picture prediction techniques with motion compensation. An uncompressed digital video may include a series of pictures, each picture having spatial dimensions of, for example, 1920×1080 luminance samples and associated chrominance samples. The series of pictures may have a fixed or variable picture rate (also informally referred to as a frame rate), such as 60 pictures per second or 60Hz. Uncompressed video has very high bitrate requirements. For example, 1080p604:2:0 video (1920x1080 luminance sample resolution at 60Hz frame rate) with 8 bits per sample requires close to 1.5Gbit / s bandwidth. One hour of such video would require more than 600GB of storage space.
[0006] One goal of video encoding and decoding is to reduce the redundancy of 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 and lossy compression, and combinations of the two, can be used. Lossless compression refers to the technique of reconstructing 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 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 depends on the application. For example, users of some consumer streaming applications can tolerate higher distortion than users of television applications. The achievable compression ratio reflects that higher allowed / tolerable distortion produces higher compression ratios.
[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 of a reconstructed picture (reference picture) is used for prediction of a newly reconstructed picture or part of a picture after being spatially shifted in the direction indicated by a motion vector (hereinafter MV). In some cases, the reference picture may be the same as the picture currently being reconstructed. The MV may have two dimensions, X and Y, or three dimensions, where the third dimension indicates the reference picture being used (the latter may indirectly be the temporal dimension).
[0008] In some video compression techniques, the MV applied to a region of sample data can be predicted based on other MVs, such as those MVs related to another region of sample data that is spatially adjacent to the region being reconstructed and that precede the MV in decoding order. Doing so can greatly reduce the amount of data required to encode and decode the MV, thereby eliminating redundancy and increasing the amount of compression. MV prediction can be done efficiently, for example, because when encoding and decoding an input video signal derived from a camera (called natural video), there is a statistical probability that regions larger than the region applicable to a single MV move in a similar direction, so in some cases, similar motion vectors derived from MVs of adjacent regions can be used for 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 encoding and decoding, it can be represented with fewer bits than the number of bits used when the MV is directly encoded and decoded. 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 may be lossy, for example due to rounding errors generated when calculating predicted values based on several surrounding MVs.
[0009] H.265 / HEVC (ITU-T H.265 Recommendation, "High Efficiency Video Coding", December 2016) describes various MV prediction mechanisms. Among the various MV prediction mechanisms provided by H.265, this disclosure describes a technique referred to below as "spatial merging".
[0010] Reference Figure 1 , the current block (101) includes samples found by the encoder during motion search, which can be predicted based on a previous block of the same size that has been spatially shifted. The MV is not encoded or decoded directly, but instead the MV associated with any of the five surrounding samples is derived from metadata associated with one or more reference pictures, for example, the most recent (in decoding order) reference picture. The five surrounding samples are represented by A0, A1 and B0, B1, B2 (102 to 106 respectively). In H.265, MV prediction can use the prediction value of the same reference picture being used by the neighboring blocks. Summary of the invention
[0011] Various aspects of the present disclosure provide methods and devices for video encoding and / or decoding. In some examples, a video decoding device includes a processing circuit. The processing circuit can decode encoding information of a current picture from an encoded video bitstream, the encoding information indicating that a geometric merge mode is enabled at an encoding level higher than a picture level of the current picture, and the maximum number of merge candidates meets a condition. The processing circuit can determine the maximum number of geometric merge mode merge candidates based on the picture level parameter and the maximum number of merge candidates when a picture level parameter of the current picture is signaled in the encoded video bitstream, the maximum number of geometric merge mode merge candidates being: (i) 0, or (ii) one of 2 to the maximum number of merge candidates, the picture level parameter indicating the maximum number of geometric merge mode merge candidates. Based on the maximum number of geometric merge mode merge candidates being 0, the geometric merge mode is disabled for the current picture, and based on the maximum number of geometric merge mode merge candidates being not 0, the geometric merge mode is enabled for the current picture.
[0012] In an embodiment, the geometry merge mode is triangle partition mode (TPM), and the maximum number of geometry merge mode merge candidates is the maximum number of TPM merge candidates.
[0013] In an embodiment, the encoding level is a sequence level.
[0014] In an embodiment, the condition is that the maximum number of merging candidates is greater than or equal to 2.
[0015] In an embodiment, the condition is that the maximum number of merge candidates is greater than or equal to 2. The processing circuit may determine the maximum number of TPM merge candidates by subtracting the picture level parameter from the maximum number of merge candidates.
[0016] In an embodiment, a PPS level parameter indicating the maximum number of TPM merge candidates is signaled in a coded video bitstream of a picture parameter set (PPS) associated with the current picture. The PPS level parameter is one of: (i) 0 to (the maximum number of merge candidates - 1), or (ii) (the maximum number of merge candidates + 1).
[0017] In an embodiment, a PPS level parameter indicating the maximum number of TPM merge candidates is not signaled in the coded video bitstream of the PPS associated with the current picture.
[0018] In an embodiment, the coded video bitstream comprises a picture header of the current picture. Based on enabling the TPM at the sequence level and the maximum number of merge candidates being greater than or equal to 2, the picture level parameter is signaled in the picture header, the signaling of the picture level parameter being independent of the PPS level parameter.
[0019] In an embodiment, the encoded video bitstream comprises a PPS associated with the current picture.A PPS level parameter indicating a maximum number of TPM merge candidates is signaled in the PPS based at least on a PPS level flag indicating that the PPS level parameter is to be signaled.
[0020] In an embodiment, the coded video bitstream comprises a picture header of the current picture. Based on enabling the TPM at the sequence level, the maximum number of merge candidates being greater than or equal to 2, and the PPS level flag indicating that the PPS level parameter is not to be signaled, the picture level parameter is signaled in the picture header.
[0021] In an embodiment, the encoded video bitstream comprises a PPS associated with the current picture.Based at least on enabling the TPM at the sequence level, a PPS level parameter indicating a maximum number of TPM merge candidates is signaled in the PPS.
[0022] In some examples, a video decoding apparatus includes a processing circuit. The processing circuit can decode encoding information of a current picture from an encoded video bitstream, the encoding information indicating that a geometric merge mode is enabled at a sequence level, a PPS level parameter in a picture parameter set (PPS) is 0, and a maximum number of merge candidates, the PPS level parameter indicating the maximum number of merge candidates for the geometric merge mode. The processing circuit can decode a picture level parameter of the current picture signaled in the encoded video bitstream based on the maximum number of merge candidates satisfying a condition, the picture level parameter indicating the maximum number of merge candidates for the geometric merge mode.
[0023] In an embodiment, the geometry merge mode is triangle partition mode (TPM), and the maximum number of geometry merge mode merge candidates is the maximum number of TPM merge candidates.
[0024] In an embodiment, the condition is one of the following: (i) the maximum number of merge candidates is greater than 2, and (ii) the maximum number of merge candidates is greater than or equal to 3.
[0025] In an embodiment, the maximum number of merge candidates is two and the condition is not satisfied, and the picture level parameter is not signaled in the coded video bitstream. The processing circuit may determine that the maximum number of TPM merge candidates is two.
[0026] Aspects of the present disclosure also provide a non-transitory computer-readable medium storing instructions, which, when executed by a computer for video decoding, causes the computer to perform the video decoding and / or encoding method. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Other features, properties and various advantages of the disclosed subject matter will become further apparent from the following detailed description and accompanying drawings, in which:
[0028] Figure 1 Schematic diagram of the current block and its surrounding spatial merging candidates in an example.
[0029] Figure 2 is a schematic diagram of a simplified block diagram of a communication system according to an embodiment.
[0030] Figure 3 is a schematic diagram of a simplified block diagram of a communication system according to an embodiment.
[0031] Figure 4 is a schematic diagram of a simplified block diagram of a decoder according to an embodiment.
[0032] Figure 5 is a schematic diagram of a simplified block diagram of an encoder according to an embodiment.
[0033] Figure 6 A block diagram of an encoder according to another embodiment is shown.
[0034] Figure 7 A block diagram of a decoder according to another embodiment is shown.
[0035] Figures 8A-8B An example of inter-frame prediction based on triangle partitions according to an embodiment of the present disclosure is shown.
[0036] Fig. 9 An exemplary geometric merge mode is shown.
[0037] Fig.10 An exemplary sequence level control of a TPM is shown.
[0038] Fig.11 An exemplary picture parameter set (PPS) syntax is shown.
[0039] Fig.12 An exemplary picture header syntax is shown.
[0040] Fig.13 An exemplary picture header syntax is shown.
[0041] Fig.14 An exemplary picture header syntax is shown.
[0042] Fig.15 An exemplary PPS syntax is shown.
[0043] Fig.16A An exemplary picture header syntax is shown.
[0044] Fig. 16B An exemplary syntax is shown which is not applicable when the signaling of picture level parameters is independent of the PPS level parameters.
[0045] Fig.17 An exemplary PPS syntax is shown.
[0046] Fig.18 An exemplary picture header syntax is shown.
[0047] Fig.19 An exemplary PPS syntax is shown.
[0048] Fig. 20 A flow chart of an overview process according to an embodiment of the present disclosure is shown.
[0049] Fig.21 A flow chart of an overview process according to an embodiment of the present disclosure is shown.
[0050] Fig. 22 is a schematic diagram of a computer system according to an embodiment. DETAILED DESCRIPTION
[0051] Figure 2 A simplified block diagram of a communication system (200) according to an embodiment of the present disclosure is shown. 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 an embodiment, 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 is 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 restore the video data, and display the video picture based on the restored video data. Unidirectional data transmission is more common in applications such as media services.
[0052] In another embodiment, 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, in one example, 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) via 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.
[0053] exist Figure 2 In an embodiment of the present disclosure, the terminal devices (210), (220), (230) and (240) may be servers, personal computers and smart phones, but the principles of the present disclosure may not be limited thereto. Embodiments of the present disclosure 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), (220), (230) and (240), including, for example, wired (wired) and / or wireless communication networks. The communication network (250) may exchange data in circuit switching and / or packet switching channels. The network may include a telecommunications network, a local area network, a wide area network and / or the Internet. For the purposes of the present disclosure, unless explained below, the architecture and topology of the network (250) may be irrelevant to the operation of the present disclosure.
[0054] As an embodiment of the disclosed subject matter, Figure 3 The placement of the video encoder and video decoder in a streaming environment is shown. The disclosed subject matter 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., and the like.
[0055] The streaming system may include an acquisition subsystem (313), which may include a video source (301) such as a digital camera, which creates an uncompressed video picture stream (302). In an embodiment, the video picture stream (302) includes samples taken by a digital camera. Compared to the encoded video data (304) (or the encoded video bitstream), the video picture stream (302) is depicted as a thick line to emphasize the high data volume of the video picture stream, 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. Compared to the video picture stream (302), the encoded video data (304) (or the encoded video bitstream (304)) is depicted as a thin line to emphasize the lower amount of data of the encoded video data (304) (or the encoded video bitstream (304)), which can be stored on the streaming server (305) for future use. One or more streaming client subsystems, such as Figure 3 A 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 the 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 H.265. In an embodiment, the video codec standard under development is informally referred to as Versatile Video Coding (VVC), and the disclosed subject matter may be used in the context of the VVC standard.
[0056] 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).
[0057] Figure 4A block diagram of a video decoder (410) according to an embodiment of the present disclosure is shown. 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) of an embodiment.
[0058] 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. Of course, in order to use on a 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).
[0059] The video decoder (410) may include a parser (420) to reconstruct symbols (421) from the encoded video sequence. The types of symbols include information used to manage the operation of the video decoder (410) and potential information used to control 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 in . The control information for the display device may be a parameter set fragment (not indicated) of Supplemental Enhancement Information (SEI message) or Video Usability Information (VUI). The parser (420) may parse / entropy decode the received coded video sequence. The encoding 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.
[0060] The parser (420) may perform entropy decoding / parsing operations on the video sequence received from the buffer memory (415), thereby creating symbols (421).
[0061] 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.
[0062] 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 can be integrated with each other. However, for the purpose of describing the disclosed subject matter, the conceptual subdivision into the following functional units is appropriate.
[0063] 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).
[0064] 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) generates a block of the same size and shape as the block being reconstructed using surrounding reconstructed information extracted from a current picture buffer (458). 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.
[0065] 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), 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.
[0066] The output samples of the aggregator (455) may be employed by various loop filtering techniques in a loop filter unit (456). The video compression techniques may include in-loop filter techniques controlled by parameters included in the encoded video sequence (also referred to as the encoded video bitstream) and available to the loop filter unit (456) as symbols (421) from the parser (420). However, in other embodiments, the video compression techniques may also be responsive to meta-information obtained during decoding of a previous (in decoding order) portion of an encoded picture or encoded video sequence, as well as to previously reconstructed and loop filtered sample values.
[0067] 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.
[0068] 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.
[0069] The video decoder (410) may perform decoding operations according to a predetermined video compression technique, such as in the ITU-T H.265 standard. The encoded video sequence may conform to the syntax specified by the video compression technique or standard used in the sense that the encoded video sequence follows the syntax of the video compression technique or standard and the profile recorded in the video compression technique or standard. Specifically, the profile may select certain tools from all the tools available in the video compression technique 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 technique 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.
[0070] 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.
[0071] Figure 5 A block diagram of a video encoder (503) according to an embodiment of the present disclosure is shown. The video encoder (503) is disposed 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.
[0072] 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) to receive video samples, and 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).
[0073] 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 the samples.
[0074] 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 brevity, 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 (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.
[0075] In some embodiments, the video encoder (503) operates in an encoding loop. As a simplified description, in embodiments, the encoding 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 techniques considered in the disclosed subject matter, 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-accurately corresponding 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.
[0076] 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 an 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).
[0077] At this point it can be observed that any decoder techniques other than 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 disclosed subject matter focuses on decoder operation. The description of encoder techniques can be simplified because encoder techniques are mutually inverse to the decoder techniques described comprehensively. A more detailed description is only required in certain areas and is provided below.
[0078] During operation, in some embodiments, the source encoder (530) may perform motion compensated predictive coding. The motion compensated predictive coding predictively encodes 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 differences between pixel blocks of the input picture and pixel blocks of a reference picture that may be selected as a prediction reference for the input picture.
[0079] The local video decoder (533) may decode the encoded video data that may be designated as a 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 sequence 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 to be obtained by the remote video decoder.
[0080] 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).
[0081] The controller (550) may manage encoding operations of the source encoder (530), including, for example, setting parameters and subgroup parameters for encoding video data.
[0082] 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.
[0083] 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).
[0084] 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:
[0085] 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.
[0086] 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.
[0087] 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.
[0088] The source picture may typically be spatially subdivided into blocks of samples (e.g., blocks of 4×4, 8×8, 4×8, or 16×16 samples), 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 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.
[0089] 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.
[0090] In an embodiment, the transmitter (540) may transmit additional data when transmitting the encoded video. The source encoder (530) may include such data as part of the encoded video sequence. The additional data may include other forms of redundant data such as temporal / spatial / SNR enhancement layers, redundant pictures and slices, supplemental enhancement information (SEI) messages, visual usability information (VUI) parameter set fragments, etc.
[0091] 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.
[0092] 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 that are both 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. Specifically, the block may be predicted by a combination of the first reference block and the second reference block.
[0093] In addition, merge mode technology can be used in inter-picture prediction to improve coding efficiency.
[0094] According to some embodiments of the present disclosure, 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 luma prediction block (PB) and two chroma PBs. In an embodiment, the prediction operation in encoding (encoding / decoding) is performed in units of prediction blocks. Taking the luma prediction block as an example of a prediction block, the prediction block includes a matrix of pixel values (e.g., luma values), such as 8×8 pixels, 16×16 pixels, 8×16 pixels, 16×8 pixels, and the like.
[0095] Figure 6 A schematic diagram of a video encoder (603) according to another embodiment of the present disclosure is shown. The video encoder (603) is used to receive a processing block (e.g., a prediction block) of sample values in a current video picture in a video picture sequence, and encode the processing block into an encoded picture that is part of an encoded video sequence. In this embodiment, the video encoder (603) is used to replace Figure 3A video encoder (303) in an embodiment.
[0096] In an HEVC embodiment, a 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 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.
[0097] exist Figure 6 In an embodiment of the present invention, 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.
[0098] 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 embodiments, the reference picture is a decoded reference picture decoded based on the encoded video information.
[0099] 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 an embodiment, 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.
[0100] 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.
[0101] 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 spatial 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.
[0102] 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.
[0103] Figure 7FIG. 7 is a schematic diagram of a video decoder (710) according to another embodiment of the present disclosure. 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 an embodiment, the video decoder (710) is used to replace Figure 3 A video decoder (310) of an embodiment.
[0104] exist Figure 7 In one embodiment, 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.
[0105] The entropy decoder (771) may be used to reconstruct certain symbols from the encoded picture, which represent syntax elements constituting the encoded picture. Such symbols may include, for example, a mode for encoding the block (e.g., intra mode, inter mode, bidirectional prediction mode, a merged sub-mode of the latter two, or another sub-mode), prediction information (e.g., intra prediction information or inter prediction information) that may identify certain samples or metadata for prediction by the intra decoder (772) or the inter decoder (780), respectively, residual information in the form of, for example, quantized transform coefficients, and the like. In an embodiment, when the prediction mode is inter or bidirectional prediction mode, the inter prediction information is provided to the inter decoder (780); and when the prediction type is an intra prediction type, the intra prediction information is provided to the intra decoder (772). The residual information may be inverse quantized and provided to the residual decoder (773).
[0106] 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.
[0107] 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.
[0108] 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).
[0109] 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.
[0110] 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 (710) 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 (603) and video decoder (310), video decoder (410) and video decoder (710) may be implemented using one or more processors that execute software instructions.
[0111] Aspects of the present disclosure relate to video coding techniques, such as signaling of a maximum number of triangle merging candidates for triangle partition mode (TPM) or geometric merging mode (GEO) that go beyond HEVC and are used in VVC.
[0112] The following may describe triangle partitioning for inter prediction. For example, in VVC, TPM may be supported for inter prediction. In the example, TPM may only be applied to CUs of 8x8 or larger. TPM may be used as a merge mode and other merge modes (including regular merge mode, merge with motion vector difference (MMVD) mode, combined inter and intra prediction (CIIP) mode, sub-block merge mode, etc.) may be signaled using a CU level flag.
[0113] Figures 8A-8B An example of inter-frame prediction based on triangle partitions according to an embodiment of the present disclosure is shown. When TPM is used, the CU (800) can be evenly partitioned into two triangle partitions (also referred to as triangle partitions or partitions) using diagonal partitioning or anti-diagonal partitioning (e.g., Fig. 8A Partition 1 (811) and Partition 2 (812) in Figure 8BPartition 1 (821) and partition 2 (822) in CU (800). Partition (811)-(812) is divided by line (810). Partition (821)-(822) is divided by line (820). Each triangle partition in CU (800) uses the motion information of the corresponding triangle partition for inter prediction. In the example, each triangle partition only allows uni-prediction, so each triangle partition has one MV and one reference index. Uni-prediction motion constraints can be applied to ensure that each CU uses only two motion compensated predictions, which is the same as the bi-directional prediction applied to the CU.
[0114] If TPM is used for the current CU, a flag indicating the triangle partition direction (diagonal or anti-diagonal) and two merge indices (one for each partition) may be further signaled. The parameter indicating the maximum number of TPM merge candidates may be explicitly signaled at the picture parameter set (PPS) level, the picture header (PH) level, etc. For each triangle partition (e.g., Fig. 8A Partition (811)-(812) or Figure 8B After predicting the samples in the partitions (821)-(822)) in the CU (800), a hybrid process with adaptive weights can be used to adjust the sample values along the diagonal or anti-diagonal edges. After deriving the prediction signal of the CU (800), a transform process and a quantization process can be further applied to the CU (800) as in other prediction modes.
[0115] The geometric merging mode (also called geometric partitioning mode) can support a variety of different partitioning methods. Fig. 9 An exemplary geometric merge mode is shown. In geometric merge mode, the CU (900) can be divided into two partitions, namely partition 1-2 divided by a line or edge (910). Each of the two partitions can have any suitable shape, such as a triangle, a trapezoid, a pentagon, etc.
[0116] When line (910) is line (810) or line (820), the geometric merge mode is TPM. In the example, TPM is an example of the geometric merge mode, and the geometric merge mode includes TPM. The description of TPM in this disclosure (embodiments, examples, etc.) can be appropriately applied to the geometric merge mode, for example, by replacing TPM with the geometric merge mode. The description of the geometric merge mode in this disclosure (embodiments, examples, etc.) can be appropriately applied to TPM, for example, by replacing the geometric merge mode with TPM.
[0117] The TPM may be controlled at a high level. The high level may refer to a picture level, a PPS level, a sequence level, or a video level associated with a picture header (PH), a PPS, a sequence parameter set (SPS), or a video parameter set (VPS), respectively. In an example, the high level does not refer to a sub-picture level (e.g., a slice level).
[0118] The TPM may be controlled (eg, enabled or disabled) at the sequence level using SPS syntax elements. Fig.10 An exemplary sequence level control of the TPM is shown. A sequence level triangle flag (e.g., sps_triangle_enabled_flag) may specify whether triangle-based motion compensation may be used for inter prediction. The sequence level triangle flag (e.g., sps_triangle_enabled_flag) equal to 0 may specify that the syntax is constrained such that triangle-based motion compensation is not used in a coding layer video sequence (CLVS), and there are no TPM-related parameters or syntax elements (e.g., merge_triangle_split_dir, merge_triangle_idx0, and merge_triangle_idx1) in the coding unit syntax of the CLVS. The sequence level triangle flag (e.g., sps_triangle_enabled_flag) equal to 1 may specify that triangle-based motion compensation may be used in the CLVS.
[0119] The parameter indicating the maximum number of TPM merge candidates may be explicitly signaled at a high level (eg, PPS level in PPS, picture level in PH, or another high level). Fig.11 An exemplary PPS Raw Byte Sequence Payload (RBSP) is shown, where the maximum number of TPM merge candidates may be signaled in the PPS. In an example, a PPS level parameter (eg, pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1) is explicitly signaled in the PPS to indicate the maximum number of TPM merge candidates. Fig.12 An exemplary picture header RBSP is shown, where the maximum number of TPM merge candidates may be signaled in the picture header. In an example, a picture header level parameter or a picture level parameter (eg, pic_max_num_merge_cand_minus_max_num_triangle_cand) is explicitly signaled in the picture header to indicate the maximum number of TPM merge candidates.
[0120] A PPS level parameter (e.g., pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1) equal to 0 may specify that the picture level parameter (e.g., pic_max_num_merge_cand_minus_max_num_triangle_cand) is present (e.g., signaled) in the PH of the slice referencing the PPS. A PPS level parameter (e.g., pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1) greater than 0 may specify that the picture level parameter (e.g., pic_max_num_merge_cand_minus_max_num_triangle_cand) is not present (e.g., not signaled) in the PH referencing the PPS. The value of the PPS level parameter (e.g., pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1) can be in the range of 0 to MaxNumMergeCand-1, where MaxNumMergeCand is the maximum number of merge candidates in the merge candidate list in normal merge mode. When the PPS level parameter (e.g., pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1) does not exist, the PPS level parameter can be inferred to be 0.
[0121] A picture level parameter (eg, pic_max_num_merge_cand_minus_max_num_triangle_cand) may specify the maximum number of triangle merge mode candidates (MaxNumTriangleMergeCand) supported in a slice associated with the picture header, which is subtracted from the maximum number of merge candidates (MaxNumMergeCand).
[0122] In an example, when the picture level parameter (e.g., pic_max_num_merge_cand_minus_max_num_triangle_cand) is not present (e.g., not signaled), the sequence level triangle flag (e.g., sps_triangle_enabled_flag) is equal to 1, and MaxNumMergeCand is greater than or equal to 2, the picture level parameter (e.g., pic_max_num_merge_cand_minus_max_num_triangle_cand) is inferred to be equal to (pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1–1).
[0123] The maximum number of triangle merge mode candidates (MaxNumTriangleMergeCand) may be determined based on MaxNumMergeCand and a picture level parameter (eg, pic_max_num_merge_cand_minus_max_num_triangle_cand). In an example, MaxNumTriangleMergeCand is determined using Equation 1.
[0124] MaxNumTriangleMergeCand=MaxNumMergeCand-
[0125] pic_max_num_merge_cand_minus_max_num_triangle_cand (Equation 1)
[0126] In an example, when a picture level parameter (e.g., pic_max_num_merge_cand_minus_max_num_triangle_cand) exists, the value of MaxNumTriangleMergeCand is in the range of 2 to MaxNumMergeCand, including 2 and MaxNumMergeCand. For example, if MaxNumMergeCand is 4, the range is [2,3,4], and MaxNumTriangleMergeCand is one of 2, 3, and 4.
[0127] MaxNumTriangleMergeCand is set equal to 0 when the picture level parameter (eg, pic_max_num_merge_cand_minus_max_num_triangle_cand) is not present and one of two conditions is true: (i) the sequence level triangle flag (eg, sps_triangle_enabled_flag) is equal to 0, and (ii) MaxNumMergeCand is less than 2.
[0128] In an example, when MaxNumTriangleMergeCand is equal to 0, the slice associated with the PH is not allowed to use the TPM.
[0129] PPS level parameters (e.g., pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1), picture level parameters (e.g., pic_max_num_merge_cand_minus_max_num_triangle_cand), and MaxNumMergeCand may be used to determine MaxNumTriangleMergeCand. The value of MaxNumTriangleMergeCand may be specified to not exceed the value of MaxNumMergeCand. The value of MaxNumTriangleMergeCand may vary, for example, depending on the particular application. When the value of MaxNumTriangleMergeCand does not change frequently, PPS signaling may be effective, and therefore signaling for each picture is not required. On the other hand, when MaxNumTriangleMergeCand changes more frequently (e.g., from one picture to another), picture header signaling may be effective.
[0130] A PPS level parameter (e.g., pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1), a picture level parameter (e.g., pic_max_num_merge_cand_minus_max_num_triangle_cand), the value of MaxNumMergeCand, and a sequence level triangle flag (e.g., sps_triangle_enabled_flag) may be used to determine the value of MaxNumTriangleMergeCand. The value of the PPS level parameter (e.g., pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1) may be in the range of 0 to (the value of MaxNumMergeCand – 1).
[0131] In the example, the PPS level parameters are parsed or inferred to be 0, the sequence level triangle flag is 0, which indicates that TPM is disabled, the picture level parameters are not present, and the value of MaxNumTriangleMergeCand is 0 regardless of the value of MaxNumMergeCand.
[0132] In an example, the PPS level parameter is parsed or inferred to be 0, the sequence level triangle flag is 1, which indicates that TPM is enabled, the picture level parameter is not present, and when the value of MaxNumMergeCand is less than 2, the value of MaxNumTriangleMergeCand is 0.
[0133] In an example, the PPS level parameter is parsed or inferred to be 0, the sequence level triangle flag is 1, which indicates that TPM is enabled, the picture level parameter is present and parsed, and the value of MaxNumTriangleMergeCand is (MaxNumMergeCand–the value of the picture level parameter) (e.g., MaxNumMergeCand–pic_max_num_merge_cand_minus_max_num_triangle_cand) when the value of MaxNumMergeCand is greater than or equal to 2. The MaxNumTriangleMergeCand value can be in the range of 0 to MaxNumMergeCand, including 0 and MaxNumMergeCand.
[0134] In the example, the PPS level parameters are parsed and are not 0, the sequence level triangle flag is 0, which indicates that TPM is disabled, the picture level parameters are not present, and the value of MaxNumTriangleMergeCand is 0 regardless of the value of MaxNumMergeCand.
[0135] In the example, the PPS level parameters are parsed and are not 0, the sequence level triangle flag is 1, which indicates that TPM is enabled, the picture level parameters are not present, and when the value of MaxNumMergeCand is less than 2, the value of MaxNumTriangleMergeCand is 0.
[0136] In the example, the PPS level parameter is parsed and is not 0, the sequence level triangle flag is 1, which indicates that TPM is enabled, the picture level parameter is not present and is inferred to be (the value of the PPS level parameter - 1) (e.g., pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1-1), and when the value of MaxNumMergeCand is greater than or equal to 2, the value of MaxNumTriangleMergeCand is (MaxNumMergeCand–(the value of the PPS level parameter - 1)) (e.g., MaxNumMergeCand–(pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1–1)).
[0137] Designing a way to signal the maximum number of triangle merge candidates can be challenging. When the value of MaxNumMergeCand is 2, the sequence level triangle flag (e.g., sps_triangle_enabled_flag) is 1, and the PPS level parameter (e.g., pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1) is 0, the picture level parameter (e.g., pic_max_num_merge_cand_minus_max_num_triangle_cand) can be signaled in the picture header (see Fig.12), and can be parsed subsequently. However, as described above, when pic_max_num_merge_cand_minus_max_num_triangle_cand exists, the value of MaxNumTriangleMergeCand is in the range of 2 to MaxNumMergeCand, including 2 and MaxNumMergeCand. Therefore, because the value of MaxNumMergeCand is also 2, MaxNumTriangleMergeCand can be inferred to be 2. Therefore, parsing pic_max_num_merge_cand_minus_max_num_triangle_cand may be redundant.
[0138] According to aspects of the present disclosure, picture level parameters (e.g., pic_max_num_merge_cand_minus_max_num_triangle_cand) are signaled in the picture header and are decoded only when the sequence level triangle flag (e.g., sps_triangle_enabled_flag) is 1, MaxNumMergeCand is greater than 2, and the PPS level parameters (e.g., pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1) are 0. Fig.13 Alternatively, the picture level parameter (e.g., pic_max_num_merge_cand_minus_max_num_triangle_cand) is signaled in the picture header and is decoded only when the sequence level triangle flag (e.g., sps_triangle_enabled_flag) is 1, MaxNumMergeCand is greater than or equal to 3, and the PPS level parameter (e.g., pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1) is 0, as shown in Fig.14 shown.
[0139] Fig.13 An exemplary picture header syntax is shown, where the maximum number of TPM merge candidates is signaled in the picture header using a picture header level parameter (eg, pic_max_num_merge_cand_minus_max_num_triangle_cand). Fig.13 The box (1310) in Fig.12 The syntax shown in (for example, MaxNumMergeCand is greater than or equal to 2) is the same as Fig.13(for example, MaxNumMergeCand is greater than 2).
[0140] A picture header level parameter (eg, pic_max_num_merge_cand_minus_max_num_triangle_cand) may specify the maximum number of triangle merge mode candidates (MaxNumTriangleMergeCand) supported in a slice associated with the picture header, which is subtracted from the maximum number of merge candidates (MaxNumMergeCan).
[0141] In an example, when the picture level parameter (e.g., pic_max_num_merge_cand_minus_max_num_triangle_cand) is not present (e.g., not signaled), the sequence level triangle flag (e.g., thesps_triangle_enabled_flag) is equal to 1, and MaxNumMergeCand is greater than or equal to 2, the picture level parameter (e.g., pic_max_num_merge_cand_minus_max_num_triangle_cand) is inferred to be equal to (pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1–1).
[0142] The maximum number of triangle merge mode candidates (MaxNumTriangleMergeCand) may be determined based on MaxNumMergeCand and a picture level parameter (eg, pic_max_num_merge_cand_minus_max_num_triangle_cand). In an example, MaxNumTriangleMergeCand is determined using Equation 1.
[0143] In an example, when the picture level parameter (e.g., pic_max_num_merge_cand_minus_max_num_triangle_cand) is present, the value of MaxNumTriangleMergeCand is in the range of 2 to MaxNumMergeCand, including 2 and MaxNumMergeCand. According to aspects of the present disclosure, when the picture level parameter (e.g., pic_max_num_merge_cand_minus_max_num_triangle_cand) is not present and MaxNumMergeCand is 2, MaxNumTriangleMergeCand is 2.
[0144] MaxNumTriangleMergeCand is set equal to 0 when the picture level parameter (eg, pic_max_num_merge_cand_minus_max_num_triangle_cand) is not present and one of two conditions is true. As described above, these two conditions include (i) the sequence level triangle flag (eg, sps_triangle_enabled_flag) is equal to 0, and (ii) MaxNumMergeCand is less than 2.
[0145] In an example, when MaxNumTriangleMergeCand is equal to 0, slices associated with the picture header are not allowed to use the TPM.
[0146] Fig.14 An exemplary picture header syntax is shown, where the maximum number of TPM merge candidates is signaled in the picture header, for example using a picture header level parameter (eg, pic_max_num_merge_cand_minus_max_num_triangle_cand). Fig.14 The box (1410) in Fig.12 The syntax shown in (for example, MaxNumMergeCand is greater than or equal to 2) is the same as Fig.14 (e.g., MaxNumMergeCand is greater than or equal to 3).
[0147] Typically, encoding information of the current picture can be decoded from an encoded video bitstream. The encoding information may indicate that the geometric merge mode is enabled at the sequence level, and the PPS level parameter in the PPS indicates that the maximum number of geometric merge mode merge candidates is 0. In the example, the geometric merge mode is TPM. In addition, the encoding information may indicate the maximum number of merge candidates. When the maximum number of merge candidates meets the condition, the picture level parameter of the current picture signaled in the encoded video bitstream may be decoded. The picture level parameter may indicate the maximum number of geometric merge mode merge candidates. In the example, the maximum number of geometric merge mode merge candidates is the maximum number of TPM merge candidates.
[0148] In an example, when the maximum number of merge candidates does not satisfy the condition, the picture level parameters not signaled in the coded video bitstream are not decoded. In an example, the picture level parameters are not signaled in the coded video bitstream, and the maximum number of merge candidates is 2 and does not satisfy the condition, so the maximum number of TPM merge candidates is determined to be 2.
[0149] In an example, the condition is one of: (i) the maximum number of merge candidates is greater than two, and (ii) the maximum number of merge candidates is greater than or equal to three.
[0150] In some examples, TPM cannot be disabled for certain pictures when the sequence level triangle flag (e.g., sps_triangle_enabled_flag) is 1 and MaxNumMergeCand is greater than or equal to 2. Therefore, the picture level lacks flexibility, for example, in TPM control (e.g., disabling TPM for certain pictures).
[0151] In an embodiment, when TPM is disabled at the sequence level, the PPS level parameters (e.g., pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1) should not be decoded to reduce signaling overhead. Fig.11 ), regardless of the sequence level control of the TPM, when the flag (e.g., constant_slice_header_params_enabled_flag) is equal to 1, the PPS level parameters (e.g., pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1) are decoded, so the signaling efficiency, for example, at the sequence level may be relatively low.
[0152] According to various aspects of the present disclosure, encoding information of a current picture may be decoded from an encoded video bitstream. The encoding information may indicate that a geometric merge mode is enabled at a coding level higher than the picture level of the current picture, and that a maximum number of merge candidates (e.g., for a conventional merge mode) satisfies a condition. The coding level higher than the picture level may be a sequence level. The condition may include that the maximum number of merge candidates is greater than or equal to 2.
[0153] When a picture-level parameter indicating a maximum number of geometric merge mode merge candidates (e.g., MaxNumTriangleMergeCand) is signaled for a current picture in a coded video bitstream, the maximum number of geometric merge mode merge candidates for the current picture may be determined based on the picture-level parameter and the maximum number of merge candidates (MaxNumMergeCand). According to aspects of the present disclosure, the maximum number of geometric merge mode merge candidates may be within a range including a sub-range of 0 and 2 to the maximum number of merge candidates (including 2 and the maximum number of merge candidates). In an example, if MaxNumMergeCand is 4, the sub-range is 2 to 4. The range includes 0 and 2 to 4 or [0,2,3,4]. Alternatively, the maximum number of geometric merge mode merge candidates may be one of: (i) 0, or (ii) 2 to the maximum number of merge candidates. In an example, if MaxNumMergeCand is 4, the maximum number of geometric merge mode merge candidates may be 0, 2, 3, or 4.
[0154] In an example, the geometric merge mode is TPM and the maximum number of geometric merge mode merge candidates is the maximum number of TPM merge candidates.The picture level parameter may be pic_max_num_merge_cand_minus_max_num_triangle_cand.
[0155] When the maximum number of geometric merge mode merge candidates (e.g., the maximum number of TPM merge candidates) is 0, the geometric merge mode (e.g., TPM) is disabled for the current picture. When the maximum number of geometric merge mode merge candidates (e.g., the maximum number of TPM merge candidates) is not 0 (e.g., greater than 0), the geometric merge mode (e.g., TPM) is enabled for the current picture.
[0156] The maximum number of TPM merge candidates may be determined by subtracting a picture level parameter from the maximum number of merge candidates, for example using equation (1).
[0157] The above description may support the function of disabling TPM for certain pictures when TPM is enabled in the sequence level and MaxNumMergeCand is greater than or equal to 2. Thus, flexibility at the picture level is supported.
[0158] In an embodiment, when pic_max_num_merge_cand_minus_max_num_triangle_cand is present (eg, signaled), the value of MaxNumTriangleMergeCand may be in the range of 0, 2 to MaxNumMergeCand, inclusive.
[0159] Therefore, when pic_max_num_merge_cand_minus_max_num_triangle_cand exists, the value of pic_max_num_merge_cand_minus_max_num_triangle_cand can be equal to the value of MaxNumMergeCand. Therefore, the value of MaxNumTriangleMergeCand can be 0, which is a picture level control to disable TPM at the picture level.
[0160] A PPS level parameter (e.g., pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1) indicating the maximum number of TPM merge candidates may be signaled in the coded video bitstream of the PPS associated with the current picture. The PPS level parameter may be one of: (i) 0 to (maximum number of merge candidates - 1), or (ii) (maximum number of merge candidates + 1). For example, when MaxNumMergeCand is 4, the PPS level parameter may be 0, 1, 2, 3, or 5.
[0161] The PPS level parameter may be in a range including a sub-range of 0 to (maximum number of merge candidates - 1) and (maximum number of merge candidates + 1), including 0 and (maximum number of merge candidates + 1). In an example, reference Fig.11 The syntax elements in the PPS level parameter (e.g., pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1) will be in the range of 0 to (MaxNumMergeCand-1) and (MaxNumMergeCand+1), including 0 and (MaxNumMergeCand+1). For example, when MaxNumMergeCand is 4, the sub-range of the PPS level parameter is 0 to 3, and the range of the PPS level parameter is 0 to 3 and 5. Alternatively, the range of the PPS level parameter includes [0,1,2,3,5].
[0162] In an embodiment, a PPS level parameter (e.g., pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1) indicating the maximum number of TPM merge candidates (e.g., for a PPS associated with a current picture) is not signaled in the coded video bitstream. Fig.15 , block (1510) indicates that Fig.11Removed pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1 from PPSRBSP in to allow simple control of TPM when TPM is disabled at picture level.
[0163] refer to Fig.16A , the coded video bitstream may include a picture header for the current picture. When TPM is enabled for the sequence level (e.g., the sequence level triangle flag (e.g., sps_triangle_enabled_flag) is 1), and the maximum number of merge candidates is greater than or equal to 2, the picture level parameters may be signaled in the picture header. The signaling of the picture level parameters may be independent of the PPS level parameters.
[0164] Block (1610) indicates that the signaling of picture level parameters may be independent of PPS level parameters (e.g., pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1). Fig. 16B As shown in box (1620) in, when the signaling of the picture level parameter is independent of the PPS level parameter (e.g., pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1), the following description “When the picture level parameter (e.g., pic_max_num_merge_cand_minus_max_num_triangle_cand) is not present (e.g., not signaled), the sequence level triangle flag (e.g., sps_triangle_enabled_flag) is equal to 1, and MaxNumMergeCand is greater than or equal to 2, the picture level parameter (e.g., pic_max_num_merge_cand_minus_max_num_triangle_cand) is inferred to be equal to (pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1–1)” does not apply.
[0165] A picture level parameter (eg, pic_max_num_merge_cand_minus_max_num_triangle_cand) may specify the maximum number of triangle merge mode candidates (MaxNumTriangleMergeCand) supported in a slice associated with the picture header, which is subtracted from the maximum number of merge candidates (MaxNumMergeCand).
[0166] The maximum number of triangle merge mode candidates (MaxNumTriangleMergeCand) may be determined based on MaxNumMergeCand and a picture level parameter (eg, pic_max_num_merge_cand_minus_max_num_triangle_cand), for example, using Equation 1.
[0167] In an example, when a picture level parameter (eg, pic_max_num_merge_cand_minus_max_num_triangle_cand) is present, the value of MaxNumTriangleMergeCand is in the range of 2 to MaxNumMergeCand, inclusive.
[0168] MaxNumTriangleMergeCand is set equal to 0 when the picture level parameter (eg, pic_max_num_merge_cand_minus_max_num_triangle_cand) is not present and one of two conditions is true: (i) the sequence level triangle flag (eg, sps_triangle_enabled_flag) is equal to 0, and (ii) MaxNumMergeCand is less than 2.
[0169] In an example, when MaxNumTriangleMergeCand is equal to 0, the slice associated with the PH is not allowed to use the TPM.
[0170] The coded video bitstream may include a PPS associated with the current picture. A PPS level parameter indicating a maximum number of TPM merge candidates (e.g., pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1) may be set based on at least a PPS level flag (e.g., pps_max_num_triangle_merge_cand_present_flag, which indicates that the PPS level parameter will be signaled) in a PPS (e.g., Fig.17 The signal notification is sent in the PPSRBSP in the reference Fig.17, block (1710) indicates that a PPS level flag (e.g., pps_max_num_triangle_merge_cand_present_flag) is signaled in the PPS RBSP. As shown in block (1720), when the PPS level flag (e.g., pps_max_num_triangle_merge_cand_present_flag) is true (e.g., a value of 1), a PPS level parameter (e.g., pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1) may be signaled in the PPS RBSP. Fig.17 , in an example, when a PPS level flag (eg, pps_max_num_triangle_merge_cand_present_flag) is true and a flag (eg, constant_slice_header_params_enabled_flag) is true, the PPS level parameters are signaled.
[0171] A PPS level flag (e.g., pps_max_num_triangle_merge_cand_present_flag) may specify the presence of a syntax element (e.g., pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1) in a bitstream (e.g., a coded video bitstream). When pps_max_num_triangle_merge_cand_present_flag is equal to 1, pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1 may be present. When pps_max_num_triangle_merge_cand_present_flag is equal to 0, pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1 is not present. When pps_max_num_triangle_merge_cand_present_flag is not present, pps_max_num_triangle_merge_cand_present_flag may be inferred to be 0. When the value of sps_triangle_enabled_flag is 0, a bitstream conformance requirement is that the value of pps_max_num_triangle_merge_cand_present_flag is equal to 0.
[0172] pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1 may specify the maximum number of TPM merge candidates supported in a picture referenced in a PPS. For example, the maximum number of TPM merge candidates is obtained using Equation 1.
[0173] When pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1 is not present, pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1 may be inferred to be equal to 0.
[0174] refer to Fig.18 , the coded video bitstream may include a picture header for the current picture. When TPM is enabled at the sequence level (sequence level triangle flag, e.g., sps_triangle_enabled_flag, is equal to 1), the maximum number of merge candidates is greater than or equal to 2 (MaxNumMergeCand ≥ 2), and the PPS level flag (e.g., pps_max_num_triangle_merge_cand_present_flag) indicates that the PPS level parameter is not signaled (e.g., pps_max_num_triangle_merge_cand_present_flag is 0), as shown in block (1810), the picture level parameter (e.g., pic_max_num_merge_cand_minus_max_num_triangle_cand) may be in the picture header (e.g., Fig.18 The signal is sent in the picture header RBSP).
[0175] A picture level parameter (eg, pic_max_num_merge_cand_minus_max_num_triangle_cand) may specify the maximum number of TPM merge candidates supported in a slice associated with a PH. In an example, the maximum number of TPM merge candidates is obtained using Equation 1.
[0176] When the picture level parameter (eg, pic_max_num_merge_cand_minus_max_num_triangle_cand) is not present, the picture level parameter may be inferred to be equal to the value of the PPS parameter (eg, pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1).
[0177] The maximum number of TPM merge candidates (MaxNumTriangleMergeCand) can be derived as follows: (i) If sps_triangle_enabled_flag is equal to 1 and MaxNumMergeCand is greater than or equal to 2, then MaxNumTriangleMergeCand can be determined using Equation 1; (ii) Otherwise, MaxNumTriangleMergeCand can be set to 0.
[0178] When MaxNumTriangleMergeCand is equal to 0, the slice associated with the PH value is not allowed to use TPM.
[0179] refer to Fig.19 , the coded video bitstream may include a PPS associated with the current picture. A PPS level parameter indicating a maximum number of TPM merge candidates (eg, pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1) may be based at least on enabling TPM at the sequence level at the PPS (eg, Fig.19 Signal notification is sent in the PPSRBSP).
[0180] Block (1910) indicates that a sequence level TPM enable / disable flag may be used to determine whether to decode a syntax element (eg, pps_max_num_merge_cand_minus_max_num_triangle_cand_plus1). The sequence level TPM enable / disable flag may be sps_triangle_enabled_flag.
[0181] Fig. 20 A flow chart of an overview process (2000) according to an embodiment of the present disclosure is shown. The process (2000) may be used to signal one or more parameters indicating a maximum number of geometric merge mode merge candidates for a geometric merge mode. In various embodiments, the process (2000) is performed by a processing circuit, such as a processing circuit in a terminal device (210), (220), (230), and (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), etc. In some embodiments, the process (2000) is implemented in software instructions, so that when the processing circuit executes the software instructions, the processing circuit performs the process (2000). The process starts at (S2001) and proceeds to (S2010).
[0182] At (S2010), encoding information of a current picture is decoded from an encoded video bitstream, wherein the encoding information indicates that a geometric merge mode is enabled at a coding level higher than a picture level of the current picture, and a maximum number of merge candidates satisfies a condition.
[0183] At (S2020), when the picture level parameter of the current picture is signaled in the encoded video bitstream, the maximum number of geometric merge mode merge candidates is determined based on the picture level parameter and the maximum number of merge candidates. The maximum number of geometric merge mode merge candidates is one of: (i) 0, or (ii) 2 to the maximum number of merge candidates. In an example, the geometric merge mode is TPM, and the maximum number of geometric merge mode merge candidates is the maximum number of TPM merge candidates. The picture level parameter indicates the maximum number of geometric merge mode merge candidates. Based on the maximum number of geometric merge mode merge candidates being 0, disabling the geometric merge mode for the current picture. Based on the maximum number of geometric merge mode merge candidates being not 0, enabling the geometric merge mode for the current picture.
[0184] In an example, at (S2030), it is determined whether the maximum number of the geometric merge mode merge candidates is 0. If it is determined that the maximum number of the geometric merge mode merge candidates is 0, the process (2000) proceeds to (S2040). Otherwise, the process (2000) proceeds to (S2050).
[0185] At (S2040), the geometric merge mode is disabled for the current picture. The process (2000) proceeds to (S2099) and ends.
[0186] At (S2050), the geometric merge mode is enabled for the current picture. The process (2000) proceeds to (S2099) and ends.
[0187] The process (2000) may be adapted as appropriate. One or more steps in the process (2000) may be modified and / or omitted. One or more other steps may be added. Any suitable order of implementation may be used.
[0188] Fig.21A flow chart of an overview process (2100) according to an embodiment of the present disclosure is shown. The process (2100) may be used to signal one or more parameters indicating a maximum number of geometric merge mode merge candidates for a geometric merge mode. In various embodiments, the process (2100) is performed by a processing circuit, such as a processing circuit in a terminal device (210), (220), (230), and (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 process (2100) is implemented in software instructions, so that when the processing circuit executes the software instructions, the processing circuit performs the process (2100). The process starts at (S2101) and proceeds to (S2110).
[0189] At (S2110), encoding information of a current picture is decoded from an encoded video bitstream, the encoding information indicating that a geometric merge mode is enabled at a sequence level, a PPS level parameter in a picture parameter set (PPS) is 0, and a maximum number of merge candidates, the PPS level parameter indicating a maximum number of geometric merge mode merge candidates. In an example, the geometric merge mode is TPM, and the maximum number of geometric merge mode merge candidates is a maximum number of TPM merge candidates.
[0190] At (S2120), when the maximum number of merge candidates satisfies a condition, a picture level parameter of the current picture signaled in the coded video bitstream is decoded, the picture level parameter indicating the maximum number of merge candidates for the geometric merge mode. The geometric merge mode is TPM, and the maximum number of merge candidates for the geometric merge mode is the maximum number of TPM merge candidates. The condition is one of the following: (i) the maximum number of merge candidates is greater than 2, and (ii) the maximum number of merge candidates is greater than or equal to 3. Process (2100) proceeds to (S2199) and ends.
[0191] The process (2100) may be adjusted appropriately. One or more steps in the process (2100) may be modified and / or omitted. One or more other steps may be added. Any suitable implementation order may be used. For example, when the maximum number of merge candidates does not meet the condition, the picture level parameters are not decoded.
[0192] The embodiments of the present disclosure may be used alone or in any order. In addition, each of the method (or embodiment), encoder, and decoder may be implemented by a processing circuit (e.g., one or more processors or one or more integrated circuits). In one example, the one or more processors execute a program stored in a non-volatile computer-readable medium.
[0193] The above techniques may be implemented as computer software via computer-readable instructions and physically stored in one or more computer-readable media. Fig. 22 A computer system (2200) is shown that is suitable for implementing certain embodiments of the disclosed subject matter.
[0194] The computer software may be encoded in any suitable machine code or computer language, and may be assembled, compiled, linked, or the like to create a code comprising instructions, which may be directly executed by one or more computer central processing units (CPUs), graphics processing units (GPUs), etc., or executed by decoding, microcode, or the like.
[0195] The instructions may be executed on various types of computers or components thereof, including, for example, personal computers, tablet computers, servers, smartphones, gaming devices, IoT devices, etc.
[0196] Fig. 22 The components shown for the computer system (2200) are exemplary in nature and are not intended to impose any limitations on the scope of use or functionality of computer software implementing the disclosed embodiments. Nor should the configuration of the components be interpreted as having any dependency or requirement on any one or combination of components shown in the exemplary embodiment of the computer system (2200).
[0197] The computer system (2200) may include certain human-computer interface input devices. Such human-computer interface input devices may respond to input from one or more human users through tactile input (e.g., keyboard input, sliding, data glove movement), audio input (e.g., sound, applause), visual input (e.g., gestures), and olfactory input (not shown). The human-computer interface devices may also be used to capture certain media that are not necessarily directly related to human 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).
[0198] The human-computer interface input device may include one or more of the following (only one of which is drawn): keyboard (2201), mouse (2202), touchpad (2203), touch screen (2210), data gloves (not shown), joystick (2205), microphone (2206), scanner (2207), camera (2208).
[0199] The computer system (2200) may also include certain human-computer interface output devices. Such human-computer 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-computer interface output devices may include tactile output devices (e.g., tactile feedback through a touch screen (2210), a data glove (not shown), or a joystick (2205), but there may also be tactile feedback devices that are not used as input devices), audio output devices (e.g., speakers (2209), headphones (not shown)), visual output devices (e.g., screens (2210) including cathode ray tube screens, liquid crystal screens, plasma screens, organic light emitting diode screens, each of which has or does not have a touch screen input function, each of which has or does not have a tactile feedback function - some of which can output two-dimensional visual output or output of more than three dimensions by means such as stereoscopic picture output; virtual reality glasses (not shown), holographic displays, and smoke boxes (not shown)) and printers (not shown).
[0200] The computer system (2200) may also include human-accessible storage devices and their associated media, such as optical media including high-density read-only / rewritable optical disks (CD / DVD ROM / RW) (2220) with CD / DVD or similar media (2221), thumb drives (2222), removable hard disk drives or solid state drives (2223), traditional magnetic media such as tapes and floppy disks (not shown), special-purpose ROM / ASIC / PLD-based devices such as security software protectors (not shown), and the like.
[0201] Those skilled in the art should also understand that the term "computer-readable media" used in connection with the disclosed subject matter does not include transmission media, carrier waves, or other transient signals.
[0202] The computer system (2200) may also include an interface to one or more communication networks. For example, the network may be wireless, wired, or optical. The network may also be a local area network, a wide area network, a metropolitan area network, an in-vehicle network, an industrial network, a real-time network, a delay-tolerant network, and the like. The network also includes local area networks such as Ethernet, wireless local area networks, cellular networks (GSM, 3G, 4G, 5G, LTE, etc.), television wired or wireless wide area digital networks (including cable television, satellite television, and terrestrial broadcast television), in-vehicle and industrial networks (including CANBus), and the like. Some networks typically require an external network interface adapter for connecting to some universal data ports or peripheral buses (2249) (e.g., a USB port of the computer system (2200)); other systems are typically integrated into the core of the computer system (2200) by connecting to the system bus as described below (e.g., an Ethernet interface integrated into a PC computer system or a cellular network interface integrated into a smart phone computer system). By using any of these networks, the computer system (2200) can communicate with other entities. The communication can be one-way, for receiving only (e.g., wireless television), one-way for sending only (e.g., CAN bus to certain CAN bus devices), or two-way, such as to other computer systems via a local or wide area digital network. Each of the above networks and network interfaces can use certain protocols and protocol stacks.
[0203] The above-mentioned human-machine interface devices, human-accessible storage devices, and network interfaces may be connected to the core (2240) of the computer system (2200).
[0204] The core (2240) may include one or more central processing units (CPUs) (2241), graphics processing units (GPUs) (2242), dedicated programmable processing units in the form of field programmable gate arrays (FPGAs) (2243), hardware accelerators for specific tasks (2244), etc. These devices, as well as read-only memory (ROM) (2245), random access memory (2246), internal mass storage (e.g., internal non-user accessible hard disk drives, solid-state drives, etc.) (2247), etc., may be connected via a system bus (2248). In some computer systems, the system bus (2248) may be accessed in the form of one or more physical plugs so that it may be expanded by additional central processing units, graphics processing units, etc. Peripheral devices may be directly attached to the core's system bus (2248), or connected via a peripheral bus (2249). The architecture of the peripheral bus includes PCI, USB, etc.
[0205] The CPU (2241), GPU (2242), FPGA (2243) and accelerator (2244) can execute certain instructions, which can be combined to form the above-mentioned computer code. The computer code can be stored in ROM (2245) or RAM (2246). Transition data can also be stored in RAM (2246), while permanent data can be stored in, for example, internal mass storage (2247). 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 (2241), GPUs (2242), mass storage (2247), ROM (2245), RAM (2246), etc.
[0206] The computer readable medium may have computer code thereon for performing various computer-implemented operations. The medium and computer code may be specially designed and constructed for the purposes of the present disclosure, or may be the medium and code well known and available to those skilled in the art of computer software.
[0207] As an example and not a limitation, a computer system having an architecture (2200), in particular a core (2240), can provide the function of executing software contained in one or more tangible computer-readable media as a processor (including a CPU, GPU, FPGA, accelerator, etc.). Such a computer-readable medium can be a medium associated with the above-mentioned user-accessible mass storage, as well as a specific memory of the core (2240) having non-volatility, such as a core internal mass storage (2247) or ROM (2245). Software implementing various embodiments of the present disclosure can be stored in such a device and executed by the core (2240). Depending on specific needs, the computer-readable medium may include one or more storage devices or chips. The software can enable the core (2240), in particular the processor therein (including a CPU, GPU, FPGA, etc.) to perform a specific process or a specific part of a specific process described herein, including defining a data structure stored in RAM (2246) and modifying such a data structure according to a software-defined process. Additionally or alternatively, the computer system may provide functionality hardwired in logic or otherwise contained in circuitry (e.g., accelerator (2244)) that may operate in place of or in conjunction with software to perform specific processes or specific portions of specific processes described herein. Where appropriate, references to software may include logic and vice versa. Where appropriate, references to computer-readable media may include circuitry (e.g., integrated circuits (ICs)) storing executing software, circuitry containing executing logic, or both. The present disclosure includes any suitable combination of hardware and software.
[0208] Appendix A: Acronyms
[0209] JEM: Joint Exploration Model
[0210] VVC: universal video coding
[0211] BMS: Benchmark set
[0212] MV: Motion Vector
[0213] HEVC: High Efficiency Video Coding
[0214] SEI: Supplementary Enhancement Information
[0215] VUI: Video Usability Information
[0216] GOPs: Groups of Pictures
[0217] TUs: Transform Units
[0218] PUs: Prediction Units
[0219] CTUs: Coding Tree Units
[0220] CTBs: Coding Tree Blocks
[0221] PBs: Prediction Blocks
[0222] HRD: Hypothetical Reference Decoder
[0223] SNR: Signal Noise Ratio
[0224] CPUs: Central Processing Units
[0225] GPUs: Graphics Processing Units
[0226] CRT: Cathode Ray Tube
[0227] LCD: Liquid-Crystal Display
[0228] OLED: Organic Light-Emitting Diode
[0229] CD: Compact Disc
[0230] DVD: Digital Video Disc
[0231] ROM: Read-Only Memory
[0232] RAM: Random Access Memory
[0233] ASIC: Application-Specific Integrated Circuit
[0234] PLD: Programmable Logic Device
[0235] LAN: Local Area Network
[0236] GSM: Global System for Mobile communications
[0237] LTE: Long-Term Evolution
[0238] CANBus: Controller Area Network Bus
[0239] USB: Universal Serial Bus
[0240] PCI: Peripheral Component Interconnect
[0241] FPGA: Field Programmable Gate Areas
[0242] SSD: Solid-state Drive
[0243] IC:Integrated Circuit
[0244] CU: Coding Unit
[0245] Although the present disclosure has described a number of exemplary embodiments, various changes, arrangements and various equivalent substitutions of the embodiments are within the scope of the present disclosure. It should therefore be understood that those skilled in the art are capable of designing a variety of systems and methods, which, although not explicitly shown or described herein, embody the principles of the present disclosure and are therefore within the spirit and scope of the present disclosure.
Claims
1. A method for video decoding, It is characterized in that include: Decoding information of a current picture from a coded video bitstream, the coding information indicating that a geometric merge mode is enabled at a coding level higher than a picture level of the current picture, and the coding information indicating that a maximum number of merge candidates satisfies a set condition; as well as When the encoding information indicates that the geometric merge mode is enabled and the encoding information indicates that the maximum number of merge candidates is greater than 2, determining the maximum number of merge candidates for the geometric merge mode based on a picture level parameter of the current picture and the maximum number of merge candidates, the maximum number of merge candidates for the geometric merge mode being: (i) 0, or (ii) one of 2 to the maximum number of merge candidates, the picture level parameter indicating the maximum number of merge candidates for the geometric merge mode, When the encoding information indicates that the geometric merge mode is enabled and the encoding information indicates that the maximum number of merge candidates is equal to 2, the maximum number of merge candidates in the geometric merge mode is inferred to be 2, where disabling the geometric merge mode for the current picture based on that the maximum number of merge candidates for the geometric merge mode is 0, and Based on the maximum number of the geometric merge mode merge candidates being not 0, the geometric merge mode is enabled for the current picture.
2. The method according to claim 1, It is characterized in that The encoding level is the sequence level.
3. The method according to claim 1, It is characterized in that The determining the maximum number of geometric merge mode merge candidates includes determining the maximum number of geometric merge mode merge candidates by subtracting the picture level parameter from the maximum number of merge candidates.
4. The method according to claim 3, It is characterized in that Further including: signaling, in a coded video bitstream of a picture parameter set (PPS) associated with the current picture, a PPS level parameter indicating a maximum number of merging candidates for the geometric merging mode; as well as The PPS level parameter is: (i) one of 0 to (the maximum number of merge candidates - 1), or (ii) (the maximum number of merge candidates + 1).
5. The method according to claim 3, It is characterized in that A PPS level parameter indicating the maximum number of merge candidates is not signaled in the coded video bitstream of the PPS associated with the current picture.
6. The method according to claim 4, It is characterized in that The geometry merge mode is a triangle partitioning mode (TPM), and the maximum number of geometry merge mode merge candidates is a maximum number of TPM merge candidates.
7. The method according to claim 6, It is characterized in that The encoded video bitstream includes a picture header of the current picture; as well as Based on enabling the TPM at the sequence level and the maximum number of merge candidates being greater than 2, the picture level parameter is signaled in the picture header, the signaling of the picture level parameter being independent of the PPS level parameter.
8. The method according to claim 6, It is characterized in that The coded video bitstream includes a PPS associated with the current picture; as well as A PPS level parameter indicating a maximum number of the geometric merging mode merging candidates is signaled in the PPS based at least on a PPS level flag indicating that the PPS level parameter is to be signaled.
9. The method according to claim 8, It is characterized in that The encoded video bitstream includes a picture header of the current picture; as well as Based on the TPM being enabled at the sequence level, the maximum number of merge candidates being greater than 2, and the PPS level flag indicating that the PPS level parameter is not signaled, the picture level parameter is signaled in the picture header.
10. The method according to claim 6, It is characterized in that The coded video bitstream includes a PPS associated with the current picture; and Based at least on enabling the TPM at the sequence level, a PPS level parameter indicating a maximum number of merge candidates for the TPM is signaled in the PPS.
11. A method for video decoding, It is characterized in that include: Decoding information of a current picture from a coded video bitstream, the coding information indicating that a geometric merge mode is enabled at a sequence level, a PPS level parameter in a picture parameter set PPS is 0, and a maximum number of merge candidates, the PPS level parameter indicating a maximum number of merge candidates for the geometric merge mode; as well as Based on the maximum number of merge candidates satisfying a set condition, the condition comprising: the maximum number of merge candidates is greater than 2, decoding a picture level parameter of the current picture signaled in the coded video bitstream, the picture level parameter indicating the maximum number of the geometric merge mode merge candidates; The maximum number of merge candidates is 2 and the condition is not satisfied, the picture level parameter is not signaled in the coded video bitstream.
12. The method according to claim 11, It is characterized in that The geometry merge mode is a triangle partitioning mode (TPM), and the maximum number of geometry merge mode merge candidates is a maximum number of TPM merge candidates.
13. The method according to claim 11, It is characterized in that The condition also includes: the maximum number of the merge candidates is greater than or equal to 3.
14. The method according to claim 12, It is characterized in that When the maximum number of merging candidates is 2 and the condition is not satisfied, the method further includes: determining that the maximum number of TPM merging candidates is 2.
15. A method for video encoding, It is characterized in that include: Obtaining encoding information of a current picture, the encoding information indicating that a geometric merge mode is enabled at a picture level higher than the current picture, and the encoding information indicating that a maximum number of merge candidates satisfies a set condition; as well as When the encoding information indicates that the geometric merge mode is enabled and the encoding information indicates that the maximum number of merge candidates is greater than 2, signaling a picture level parameter of the current picture, determining a maximum number of merge candidates for the geometric merge mode based on the picture level parameter and the maximum number of merge candidates, the maximum number of merge candidates for the geometric merge mode being one of: (i) 0, or (ii) 2 to the maximum number of merge candidates, the picture level parameter indicating the maximum number of merge candidates for the geometric merge mode, When the encoding information indicates that the geometric merge mode is enabled and the encoding information indicates that the maximum number of merge candidates is equal to 2, the maximum number of merge candidates in the geometric merge mode is determined to be 2, where disabling the geometric merge mode for the current picture based on that the maximum number of merge candidates for the geometric merge mode is 0, and Based on the maximum number of merging candidates of the geometric merging mode being not 0, enabling the geometric merging mode for the current picture; The current picture is encoded according to the encoding information of the current picture to generate a video bit stream.
16. A method for video encoding, It is characterized in that include: Obtain encoding information of the current picture, the encoding information indicating that a geometric merge mode is enabled at a sequence level, a PPS level parameter in a picture parameter set PPS is 0, and a maximum number of merge candidates, the PPS level parameter indicating a maximum number of merge candidates in the geometric merge mode; as well as Based on the maximum number of merge candidates satisfying a set condition, the condition comprising: the maximum number of merge candidates is greater than 2, decoding a picture level parameter of the current picture signaled in the coded video bitstream, the picture level parameter indicating the maximum number of the geometric merge mode merge candidates; The maximum number of merge candidates is 2 and if the condition is not satisfied, the picture level parameter is not signaled in the coded video bitstream; The current picture is encoded according to the encoding information of the current picture to generate a video bit stream.
17. A video encoding device, It is characterized in that The method comprises a processing circuit configured to perform the method of claim 15 or the method of claim 16.
18. A video decoding device, It is characterized in that The method comprises a processing circuit configured to execute the method of any one of claims 1-10 or the method of any one of claims 11-14.
19. A video decoding device, It is characterized in that include: A decoding module, configured to decode encoding information of a current picture from an encoded video bitstream, wherein the encoding information indicates that a geometric merge mode is enabled at a coding level higher than a picture level of the current picture, and the encoding information indicates that a maximum number of merge candidates satisfies a set condition; as well as a determining module, configured to determine, when coding information indicates that a geometric merge mode is enabled and the coding information indicates that a maximum number of merge candidates is greater than 2, a picture level parameter of the current picture is signaled in the coded video bitstream, based on the picture level parameter and the maximum number of merge candidates, a maximum number of merge candidates for the geometric merge mode, the maximum number of merge candidates for the geometric merge mode being: (i) 0, or (ii) one of 2 to the maximum number of merge candidates, the picture level parameter indicating the maximum number of merge candidates for the geometric merge mode, When the encoding information indicates that the geometric merge mode is enabled and the encoding information indicates that the maximum number of merge candidates is equal to 2, the maximum number of merge candidates in the geometric merge mode is inferred to be 2, where disabling the geometric merge mode for the current picture based on that the maximum number of merge candidates for the geometric merge mode is 0, and Based on the maximum number of the geometric merge mode merge candidates being not 0, the geometric merge mode is enabled for the current picture.
20. A video decoding device, It is characterized in that include: A first decoding module, configured to decode encoding information of a current picture from an encoded video bitstream, the encoding information indicating that a geometric merge mode is enabled at a sequence level, a PPS level parameter in a picture parameter set PPS is 0, and a maximum number of merge candidates, the PPS level parameter indicating a maximum number of merge candidates for the geometric merge mode; as well as a second decoding module, configured to decode a picture level parameter of the current picture signaled in the coded video bitstream based on the maximum number of merge candidates satisfying a set condition, the condition comprising: the maximum number of merge candidates being greater than 2, the picture level parameter indicating the maximum number of merge candidates for the geometric merge mode; The maximum number of merge candidates is 2 and the condition is not satisfied, the picture level parameter is not signaled in the coded video bitstream.
21. A non-volatile computer readable medium, It is characterized in that Used to store instructions, when the instructions are executed by a computer for video decoding, the computer executes the method according to any one of claims 1 to 10 or the method according to any one of claims 11 to 14.
