Extended application of combined inter-frame and intra-frame prediction
By combining inter-frame and intra-frame prediction modes and filtering technology, the encoding and decoding representation of video blocks is optimized, which solves the problem of low video encoding efficiency in the existing technology and achieves a more efficient video encoding and decoding process.
Patent Information
- Application Number
- CN202080009000.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-08-14
- Filing Date
- 2020-02-02
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-02-02
AI Technical Summary
Existing video coding technology is inefficient in handling video bandwidth requirements, especially in inter-frame prediction mode, resulting in high coding complexity and waste of resources.
The combined inter-frame prediction (CIIP) mode is used to optimize the codec representation of video blocks by weighted averaging of intra- and inter-frame prediction results, combined with diffusion filtering, bilateral filtering and transform domain filtering, and in history-based motion vector prediction. CIIP mode flags are stored and used in tables to improve coding efficiency.
It significantly reduces the complexity and resource consumption of video encoding, improves video quality and encoding efficiency, and is suitable for HEVC and future video encoding and decoding standards.
Smart Images

Figure CN113302920B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application is a Chinese national phase application of International Patent Application No. PCT / CN2020 / 074151 filed on February 2, 2020, and this application timely claims the priority and benefits of International Patent Application No. PCT / CN2019 / 074425 filed on February 1, 2019, International Patent Application No. PCT / CN2019 / 079148 filed on March 21, 2019, and International Patent Application No. PCT / CN2019 / 100616 filed on August 14, 2019. The entire disclosure of the above applications is incorporated herein by reference as part of the disclosure of this application. Technical Field
[0003] This document deals with video and image encoding and decoding techniques. Background Art
[0004] Digital video consumes the largest amount of bandwidth on the Internet and other digital communications networks. As the number of connected user devices capable of receiving and displaying video increases, bandwidth requirements for digital video usage are expected to continue to grow. Summary of the invention
[0005] The disclosed techniques may be used by video, image decoder or encoder embodiments where combined inter-frame and intra-frame prediction is used.
[0006] In one example aspect, a method of processing a video is disclosed, the method comprising: determining a codec mode of a first video block, constraining one or more flags to an operational state based on the determination of the codec mode of the first video block, the operational state being false or true; and performing further processing of a second video block according to the operational state of the one or more flags, wherein the first video block is a neighboring video block or a reference video block related to the second video block.
[0007] In another example aspect, a method of processing a video is disclosed. The method includes: determining to use paired prediction or combined bi-directional prediction for a first video block; determining an operational state of combined inter-frame intra-frame prediction (CIIP) based on the determination to use paired prediction or combined bi-directional prediction, wherein the operational state is enabled or disabled; and performing further processing of the first video block according to the operational state of the CIIP.
[0008] In another example aspect, another method of video processing is disclosed. The method includes: performing conversion between a video block of a video and a codec representation of the video block using a combined inter-frame intra-frame prediction mode, wherein the codec representation corresponds to a weighted average of intra-frame and inter-frame prediction results of the video block using weight pairs from a set of weight pairs, the set of weight pairs comprising less than three pairs.
[0009] In another example aspect, another method of video processing is disclosed. The method includes: performing conversion between a video block of a video and a codec representation of the video block using a combined inter-frame intra-frame prediction mode, wherein the codec representation corresponds to a weighted average of intra-frame and inter-frame prediction results of the video block using a weight pair from a set of weight pairs, wherein the set of weight pairs is determined by codec information of one or more neighboring blocks.
[0010] In another example aspect, another method of video processing is disclosed. The method includes: during conversion between a first block in video data and a bitstream representation of the first block, determining one or more codec modes of one or more second blocks; determining a codec mode constraint of the first block based on the one or more codec modes of the one or more second blocks; and performing the conversion by at least applying the codec mode constraint of the first block; wherein the one or more second blocks include at least one of a neighboring block, a non-neighboring block, and a reference block of the first block.
[0011] In another example aspect, another method of video processing is disclosed. The method includes performing conversion between a current block in video data and a bitstream representation of the current block by using at least one of combined inter-frame intra-frame prediction (CIIP), diffusion filtering, bilateral filtering, transform domain filtering, or another type of post-reconstruction filtering different from diffusion filtering, bilateral filtering, and transform domain filtering, wherein reconstructed neighboring samples of the current block used in at least one of combined inter-frame intra-frame prediction (CIIP), diffusion filtering, bilateral filtering, transform domain filtering, or another type of post-reconstruction filtering are replaced with approximate samples generated from corresponding samples of reconstructed neighboring samples in one or more reference pictures.
[0012] In another example aspect, another method of video processing is disclosed. The method includes: storing a combined inter-frame intra-frame prediction (CIIP) mode CIIP flag and / or an intra-frame mode in a history-based motion vector prediction (HMVP) table together with motion information; and performing conversion between a current block in video data and a bitstream representation of the current block based on at least the HMVP table.
[0013] In another example aspect, another method of video processing is disclosed. The method includes: during conversion between a current block in video data and a bitstream representation of the current block, determining a prediction mode for the current block; determining the applicability of a combined inter-frame intra-frame prediction (CIIP) mode, the applicability indicating that the CIIP mode is enabled for the current block in response to determining that the current block is encoded using an advanced motion vector prediction (AMVP) mode or a Merge mode; and performing the conversion based on the applicability of the CIIP mode.
[0014] In another example aspect, another method of video processing is disclosed. The method includes: during a conversion between a current block in video data and a bitstream representation of the current block, determining a type of a selected Merge candidate for the current block; and determining suitability of combined inter-frame intra-frame prediction (CIIP) for the current block based on the type of the selected Merge candidate, wherein the current block is encoded in Merge mode.
[0015] In another example aspect, the above method may be implemented by a video decoder device including a processor.
[0016] In yet another example aspect, the methods may be implemented in the form of processor-executable instructions and stored on a computer-readable program medium.
[0017] These and other aspects are described further herein. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 An example of the derivation process of Merge candidate list construction is shown.
[0019] Figure 2 An example of the location of spatial merge candidates is shown.
[0020] Figure 3 An example of candidate pairs considered for redundancy checking of spatial merge candidates is shown.
[0021] Figure 4 Examples of the location of the second PU for N×2N and 2N×N partitions are shown.
[0022] Figure 5 An example of motion vector scaling of a temporal merge candidate is shown.
[0023] Figure 6 Examples of candidate positions C0 and C1 of the time-domain Merge candidate are shown.
[0024] Figure 7 An example of combining bi-predictive Merge candidates is shown.
[0025] Figure 8An example of a derivation process of motion vector prediction candidates is shown.
[0026] Fig. 9 An example of motion vector scaling of spatial motion vector candidates is shown.
[0027] Fig.10 An example of optional temporal motion vector prediction (ATMVP) for a codec unit (CU) is shown.
[0028] Fig.11 An example of adjacent sample points used to derive IC parameters is shown.
[0029] Fig.12 An example of a final motion vector expression (UMVE) search process is shown.
[0030] Fig.13 An example of a UMVE search point is shown.
[0031] Fig.14 An example of a decoding flow chart using the proposed HMVP method is shown.
[0032] Fig.15 An example of updating a table in the proposed HMVP method is shown.
[0033] Fig.16 An example of a symmetric pattern is shown.
[0034] Fig.17 An example of neighboring samples of the current block and their corresponding samples in the reference picture is shown.
[0035] Fig.18 is a block diagram of an example of a video processing device.
[0036] Fig.19 A block diagram of an example implementation of a video encoder is shown.
[0037] Fig. 20 is a flow chart of an example of a video processing method.
[0038] Fig.21 is a flow chart of an example of a video processing method.
[0039] Fig. 22 Examples of upper and left neighboring blocks used in CIIP weight evaluation are shown.
[0040] Fig.23 is a flow chart of an example of a video processing method.
[0041] Fig.24 is a flow chart of an example of a video processing method.
[0042] Fig.25is a flow chart of an example of a video processing method.
[0043] Fig.26 is a flow chart of an example of a video processing method.
[0044] Fig. 27 is a flow chart of an example of a video processing method. DETAILED DESCRIPTION
[0045] Various techniques are provided herein that can be used by a decoder of an image or video bitstream to improve the quality of a decompressed or decoded digital video or image. For brevity, the term "video" is used herein to include both a sequence of pictures (conventionally referred to as video) and a single image. In addition, a video encoder may also implement these techniques during the encoding process to reconstruct a decoded frame for further encoding.
[0046] For ease of understanding, section headings are used herein, and embodiments and techniques are not limited to the corresponding sections. Therefore, embodiments from one section can be combined with embodiments from other sections.
[0047] 1. Overview
[0048] This article relates to video coding and decoding technology. Specifically, it relates to combined inter-frame intra-frame prediction (CIIP) in video encoding or decoding. It can be applied to existing video coding and decoding standards such as HEVC, or to-be-determined standards (multi-functional video codecs). It can also be applied to future video coding and decoding standards or video codecs.
[0049] 2. Background
[0050] Video codec standards have evolved primarily through the development of the well-known ITU-T and ISO / IEC standards. ITU-T produced H.261 and H.263, ISO / IEC produced MPEG-1 and MPEG-4 video, and the two organizations worked together to produce the H.262 / MPEG-2 video and H.264 / MPEG-4 Advanced Video Codec (AVC) and H.265 / HEVC[1] standards. Since H.262, video codec standards have been based on a hybrid video codec structure that utilizes temporal prediction plus transform codecs. To explore future video codec technologies beyond HEVC, VCEG and MPEG jointly established the Joint Video Exploration Team (JVET) in 2015. Since then, JVET has adopted many new approaches and applied them to reference software called the Joint Exploration Model (JEM). In April 2018, a Joint Video Experts Team (JVET) between VCEG (Q6 / 16) and ISO / IEC JTC1 SC29 / WG11 (MPEG) was established to work on the VVC standard with the goal of reducing bitrate by 50% compared to HEVC.
[0051] Fig.19 is a block diagram of an exemplary implementation of a video encoder. Fig.19 The encoder implementation is shown to have a built-in feedback path, where the video encoder also performs a video decoding function (reconstructing a compressed representation of the video data for use in the encoding of the next video data).
[0052] 2.1 Inter-frame prediction in HEVC / H.265
[0053] Each inter-predicted PU has motion parameters for one or two reference picture lists. The motion parameters include motion vectors and reference picture indices. The use of one of the two reference picture lists can also be signaled using inter_pred_idc. The motion vector can be explicitly encoded as a delta relative to the predictor.
[0054] When a CU is coded in skip mode, a PU is associated with the CU and has no significant residual coefficients, no coded motion vector increments or reference picture indices. A Merge mode is specified, by which the motion parameters of the current PU can be obtained from neighboring PUs (including spatial and temporal candidates). Merge mode can be applied to any inter-predicted PU, not just skip mode. An alternative to Merge mode is the explicit transmission of motion parameters, where the motion vector (more precisely, the motion vector difference compared to the motion vector predictor), the corresponding reference picture index of each reference picture list, and the use of the reference picture list are explicitly signaled per PU. In the present disclosure, such a mode is named Advanced Motion Vector Prediction (AMVP).
[0055] When signaling indicates that one of the two reference picture lists is to be used, a PU is generated from one of the samples. This is called "unidirectional prediction". Unidirectional prediction is available for both P slices and B slices.
[0056] When signaling indicates that two reference picture lists are to be used, a PU is generated from two sample blocks of samples. This is called "bidirectional prediction". Bidirectional prediction is only available for B slices.
[0057] The following provides details about the inter prediction modes specified in HEVC. The description will start with the Merge mode.
[0058] 2.1.1 Merge mode
[0059] 2.1.1.1 Merge Mode Candidate Derivation
[0060] When predicting a PU using Merge mode, an index pointing to an entry in the Merge candidate list is parsed from the bitstream and the motion information is retrieved using the index. The construction of this list is specified in the HEVC standard and can be summarized in the following order of steps:
[0061] Step 1: Initial candidate derivation
[0062] Step 1.1: Spatial Candidate Derivation
[0063] Step 1.2: Spatial Candidate Redundancy Check
[0064] Step 1.3: Time Domain Candidate Derivation
[0065] Step 2: Additional candidate insertions
[0066] Step 2.1: Create bidirectional prediction candidates
[0067] Step 2.2: Insert zero motion candidates
[0068] exist Figure 1These steps are also schematically shown in . For spatial Merge candidate derivation, at most four Merge candidates are selected from candidates located at five different positions. For temporal Merge candidate derivation, at most one Merge candidate is selected from two candidates. Since the number of candidates for each PU is assumed to be constant at the decoder, when the number of candidates obtained from step 1 does not reach the maximum number of Merge candidates (maxNumMergeCand) signaled in the slice header, additional candidates are generated. Since the number of candidates is constant, the index of the best Merge candidate is encoded using truncated unary binarization (TU). If the size of the CU is equal to 8, all PUs of the current CU share a Merge candidate list, which is the same as the Merge candidate list of the 2N×2N prediction unit.
[0069] Hereinafter, operations associated with the aforementioned steps are described in detail.
[0070] 2.1.1.2 Spatial Candidate Derivation
[0071] In the derivation of spatial merge candidates, Fig. 22 A maximum of four Merge candidates are selected from the candidates at the positions shown. The derivation order is A1, B1, B0, A0 and B2. Position B2 is considered only when any PU at position A1, B1, B0, A0 is unavailable (for example, because it belongs to another slice or piece) or is intra-coded. After adding the candidate at position A1, a redundancy check is performed on the remaining candidates, which ensures that candidates with the same motion information are excluded from the list, thereby improving coding. In order to reduce the computational complexity, not all possible candidate pairs are considered in the mentioned redundancy check. Instead, only those with Figure 3 Only pairs linked by arrows in are considered, and candidates are added to the list only if the corresponding candidates for redundancy checking do not have the same motion information. Another source of duplicate motion information is the "second PU" associated with a different partition of 2Nx2N. For example, Figure 4 The second PU is described for the N×2N and 2N×N cases, respectively. When the current PU is partitioned into N×2N, the candidate at position A1 is not considered for list construction. In fact, adding this candidate may result in two prediction units with the same motion information, which is redundant for having only one PU in the codec unit. Similarly, when the current PU is partitioned into 2N×N, position B1 is not considered.
[0072] 2.1.1.3 Time Domain Candidate Derivation
[0073] In this step, only one candidate is added to the list. In particular, in the derivation of this temporal Merge candidate, a scaled motion vector is derived based on the collocated PU belonging to the picture with the smallest POC difference with the current picture in a given reference picture list. The reference picture list used to derive the collocated PU is explicitly signaled in the slice header. Figure 5 The reference picture index of the temporal Merge candidate is set to zero. The actual implementation of the scaling process is described in the HEVC specification. For B slices, two motion vectors are obtained (one for reference picture list 0 and the other for reference picture list 1) and combined to make a bidirectional prediction Merge candidate.
[0074] In the collocated PU(Y) belonging to the reference frame, the position of the temporal candidate is selected between candidates C0 and C1, such as Figure 6 As shown. If the PU at position C0 is not available, intra-coded, or outside the current CTU row, position C1 is used. Otherwise, position C0 is used for the derivation of the temporal Merge candidate.
[0075] 2.1.1.4 Additional candidate insertion
[0076] In addition to spatial and temporal Merge candidates, there are two additional types of Merge candidates: combined bi-prediction Merge candidate and zero Merge candidate. Combined bi-prediction Merge candidate is generated using spatial and temporal Merge candidates. Combined bi-prediction Merge candidate is only used for B slices. Combined bi-prediction candidate is generated by combining the first reference picture list motion parameters of the initial candidate with the second reference picture list motion parameters of another candidate. If these two tuples provide different motion hypotheses, they will form a new bi-prediction candidate. As an example, Figure 7 This is shown where two candidates in the original list (on the left) with MVL0 and refIdxL0 or MVL1 and refIdxL1 are used to create a combined bi-predictive Merge candidate that is added to the final list (on the right). A number of rules are defined regarding the combinations that are considered to generate these additional Merge candidates.
[0077] Zero-motion candidates are inserted to fill the remaining entries in the Merge candidate list to the capacity of MaxNumMergeCand. These candidates have zero spatial displacement and a reference picture index that starts at zero and increases each time a new zero-motion candidate is added to the list. The number of reference frames used by these candidates is 1 and 2 for unidirectional and bidirectional prediction, respectively. Finally, no redundancy check is performed on these candidates.
[0078] 2.1.1.5 Motion Estimation Regions for Parallel Processing
[0079] To speed up the encoding process, motion estimation can be performed in parallel, thereby deriving motion vectors for all prediction units in a given region at the same time. Deriving Merge candidates from spatial neighbors may interfere with parallel processing because one prediction unit cannot derive motion parameters from neighboring PUs until its associated motion estimation is completed. To alleviate the trade-off between codec efficiency and processing latency, HEVC uses the "log2_parallel_merge_level_minus2" syntax element to define a motion estimation region (MER) whose size is signaled in the picture parameter set. When defining the MER, Merge candidates that fall into the same region are marked as unavailable and are therefore not considered in the list construction.
[0080] 2.1.2AMVP
[0081] AMVP exploits the spatio-temporal correlation of motion vectors with neighboring PUs for explicit transmission of motion parameters. For each reference picture list, a motion vector candidate list is first constructed by checking the availability of the temporally neighboring PU position to the upper left, removing redundant candidates, and adding zero vectors to make the candidate list length constant. The encoder can then select the best predictor from the candidate list and send the corresponding index indicating the selected candidate. Similar to Merge index signaling, the index of the best motion vector candidate is encoded using truncated unary. In this case, the maximum value to be encoded is 2 (see Figure 8 ). In the following sections, details on the derivation process of motion vector prediction candidates are provided.
[0082] 2.1.2.1 Derivation of AMVP Candidates
[0083] Figure 8 The process of deriving motion vector prediction candidates is summarized.
[0084] In motion vector prediction, two types of motion vector candidates are considered: spatial motion vector candidates and temporal motion vector candidates. For the derivation of spatial motion vector candidates, based on the Figure 2 The motion vectors of each PU at the five different positions shown ultimately lead to two motion vector candidates.
[0085] For the derivation of temporal motion vector candidates, one motion vector candidate is selected from two candidates that are derived based on two different collocated positions. After making the first list of spatio-temporal candidates, duplicate motion vector candidates in the list are removed. If the number of potential candidates is greater than two, motion vector candidates with reference picture index greater than 1 in the associated reference picture list are removed from the list. If the number of spatio-temporal motion vector candidates is less than two, an additional zero motion vector candidate is added to the list.
[0086] 2.1.2.2 Spatial Motion Vector Candidates
[0087] When deriving spatial motion vector candidates, at most two candidates are considered among five potential candidates, which come from Figure 2 PUs at the positions shown, which are the same as the positions of the motion merge. The derivation order on the left side of the current PU is defined as A0, A1, and scaled A0, scaled A1. The derivation order on the upper side of the current PU is defined as B0, B1, B2, scaled B0, scaled B1, scaled B2. Therefore, there are four cases on each side that can be used as motion vector candidates, two of which do not require spatial scaling, and two use spatial scaling. The four different cases are summarized as follows:
[0088] --No airspace scaling
[0089] (1) Same reference picture list and same reference picture index (same POC)
[0090] (2) Different reference picture lists, but the same reference picture (same POC)
[0091] --Airspace scaling
[0092] (3) Same reference picture list, but different reference pictures (different POC)
[0093] (4) Different reference picture lists and different reference pictures (different POC)
[0094] First check the case without spatial scaling, then check the case where spatial scaling is allowed. Spatial scaling is considered whenever the POC is different between the reference picture of the neighboring PU and the reference picture of the current PU, regardless of the reference picture list. If all PUs of the left candidate are unavailable or intra-coded, then scaling of the above motion vectors is allowed to help parallel derivation of the left and upper MV candidates. Otherwise, spatial scaling of the above motion vectors is not allowed.
[0095] In the spatial domain scaling process, the motion vectors of neighboring PUs are scaled in a similar way to the temporal domain scaling, such as Fig. 9The main difference is that the reference picture list and index of the current PU are given as input; the actual scaling process is the same as the time domain scaling process.
[0096] 2.1.2.3 Temporal Motion Vector Candidates
[0097] Except for the derivation of the reference picture index, all derivation processes of the temporal Merge candidate are the same as those of the spatial motion vector candidate (see Figure 6 ). The reference picture index is signaled to the decoder.
[0098] 2.2 New inter-frame prediction method
[0099] 2.2.1 Motion vector prediction based on sub-CU
[0100] In JEM with QTBT, each CU can have at most one set of motion parameters for each prediction direction. By dividing a large CU into sub-CUs and deriving motion information of all sub-CUs of the large CU, two sub-CU-level motion vector prediction methods are considered in the encoder. The optional temporal motion vector prediction (ATMVP) method allows each CU to extract multiple sets of motion information from multiple blocks smaller than the current CU in the collocated reference picture. In the spatial-temporal motion vector prediction (STMVP) method, the motion vector of the sub-CU is recursively derived by using the temporal motion vector predictor and the spatial neighboring motion vector.
[0101] In order to maintain a more accurate motion field for sub-CU motion prediction, motion compression of reference frames is currently disabled.
[0102] 2.2.1.1 Optional temporal motion vector prediction
[0103] In the optional temporal motion vector prediction (ATMVP) method, the motion vector temporal motion vector prediction (TMVP) is modified by extracting multiple sets of motion information (including motion vectors and reference indices) from blocks smaller than the current CU. Fig.10 As shown, the sub-CU is a square N×N block (the default N is set to 4).
[0104] ATMVP predicts the motion vectors of sub-CUs within a CU in two steps. The first step is to use the so-called time domain vector to identify the corresponding block in the reference picture. The reference picture is called the motion source picture. The second step is to divide the current CU into sub-CUs and obtain the reference index and motion vector of each sub-CU from the block corresponding to each sub-CU, such as Fig.10 shown.
[0105] In the first step, the reference picture and the corresponding block are determined by the motion information of the spatial neighboring blocks of the current CU. In order to avoid repeated scanning of neighboring blocks, the first Merge candidate in the Merge candidate list of the current CU is used. The first available motion vector and its associated reference index are set to the temporal vector and the index to the motion source picture. In this way, in ATMVP, the corresponding block can be identified more accurately than in TMVP, where the corresponding block (sometimes called the collocated block) is always located at the lower right or center position relative to the current CU.
[0106] In the second step, the corresponding block of the sub-CU is identified by the time domain vector in the motion source picture by adding the time domain vector to the coordinates of the current CU. For each sub-CU, the motion information of its corresponding block (the minimum motion grid covering the center sample point) is used to derive the motion information of the sub-CU. After identifying the motion information of the corresponding N×N block, it is converted into the motion vector and reference index of the current sub-CU, which is the same as the TMVP method of HEVC, where motion scaling and other processing are applied. For example, the decoder checks whether the low latency condition is met (for example, the POC of all reference pictures of the current picture is less than the POC of the current picture), and may use the motion vector MV x (motion vector corresponding to reference picture list X) to predict the motion vector MV for each sub-CU y (X is equal to 0 or 1 and Y is equal to 1-X).
[0107] 2.2.2 Pairwise Average Candidates
[0108] Pairwise average candidates are generated by averaging predefined candidate pairs in the current Merge candidate list, and the predefined pairs are defined as {(0, 1), (0, 2), (1, 2), (0, 3), (1, 3), (2, 3)}, where the numbers represent the Merge indexes to the Merge candidate list. The average motion vector for each reference list is calculated separately. If two motion vectors are available in one list, they are averaged even if they point to different reference pictures; if only one motion vector is available, the motion vector is used directly; if no motion vector is available, the list is kept invalid. Pairwise average candidates replace the combined candidates in the HEVC standard.
[0109] The complexity analysis of the pairwise average candidates is summarized in Table 1. For the worst case of additional computation for averaging (last column of Table 1), each pair (MVx and MVy in L0 and L1) requires 4 additions and 4 shifts, and each pair requires 4 reference index comparisons (refIdx0 is valid and refIdx1 is valid in L0 and L1). There are 6 pairs, resulting in a total of 24 additions, 24 shifts, and 24 reference index comparisons. The combined candidate pairs in the HEVC standard use 2 reference index comparisons per pair (refIdx0 is valid in L0 and refIdx1 is valid in L1), and there are 12 pairs, resulting in a total of 24 reference index comparisons.
[0110] Table 1: Operational analysis of pairwise average candidates
[0111]
[0112] 2.2.3 Local lighting compensation
[0113] Local Illumination Compensation (LIC) is based on a linear model for illumination variations, using a scaling factor a and an offset b, and is adaptively enabled or disabled for each inter-mode coded codec unit (CU).
[0114] When LIC is applied to a CU, the least square error method is used to derive parameters a and b by using the neighboring samples of the current CU and their corresponding reference samples. More specifically, Fig.11 As shown, the IC parameters are derived and applied to each prediction direction separately using the subsampling (2:1 subsampling) neighboring samples and corresponding samples (identified by the motion information of the current CU or sub-CU) of the reference picture.
[0115] When the Merge mode is used to encode and decode the CU, the LIC flag is copied from the neighboring block in a manner similar to the motion information copying in the Merge mode; otherwise, the LIC flag will be signaled for the CU to indicate whether LIC is applicable.
[0116] When LIC is enabled for a picture, an additional CU-level RD check is required to determine whether LIC is applied for the CU. When LIC is enabled for a CU, the mean-removed sum of absolute difference (MR-SAD) and mean-removed sum of absolute Hadamard-transformed difference (MR-SATD) are used for integer pixel motion search and fractional pixel motion search, respectively, instead of SAD and SATD.
[0117] In order to reduce the coding complexity, the following coding scheme is applied in JEM:
[0118] When there is no significant illumination change between the current picture and its reference pictures, LIC is disabled for the entire picture. To identify this situation, the histogram of the current picture and the histogram of each reference picture of the current picture are calculated at the encoder. If the histogram difference between the current picture and each reference picture of the current picture is less than a given threshold, LIC is disabled for the current picture; otherwise, LIC is enabled for the current picture.
[0119] 2.2.4 Combined Inter and Intra Prediction
[0120] In some embodiments, multiple hypothesis prediction is proposed, where combining intra and inter prediction is one way to generate multiple hypotheses.
[0121] When multiple hypothesis prediction is applied to improved intra mode, multiple hypothesis prediction combines one intra prediction and one Merge index prediction. In a Merge CU, when the flag is true, a flag is signaled for the Merge mode to select the intra mode from the intra candidate list. For the luma component, the intra candidate list is derived from 4 intra prediction modes including DC, planar, horizontal and vertical modes, and the size of the intra candidate list can be 3 or 4, depending on the block shape. When the CU width is greater than twice the CU height, the intra mode list does not include the horizontal mode, and when the CU height is greater than twice the CU width, the vertical mode is removed from the intra mode list. One intra prediction mode selected by the intra mode index and one Merge index prediction selected by the Merge index are combined using weighted averaging. For chroma components, DM is always applied without additional signaling. The weights used for combined prediction are described as follows. When DC or planar mode is selected, or the CB width or height is less than 4, equal weights are applied. For CBs with CB width and height greater than or equal to 4, when the horizontal / vertical mode is selected, one CB is first divided vertically / horizontally into four equal regions. Each weight set represented as (w_intrai, w_interi) is applied to the corresponding region, where i ranges from 1 to 4, and (w_intra1, w_inter1) = (6, 2), (w_intra2, w_inter2) = (5, 3), (w_intra3, w_inter3) = (3, 5), and (w_intra4, w_inter4) = (2, 6). (w_intra1, w_inter1) is used for the region closest to the reference sample, and (w_intra4, w_inter4) is used for the region farthest from the reference sample. The combined prediction can then be calculated by adding the two weighted predictions and shifting right by 3 bits. In addition, the intra-prediction mode of the intra-frame hypothesis of the predictor can be saved for reference by subsequent adjacent CUs.
[0122] Generalized Bidirectional Prediction
[0123] In traditional bidirectional prediction, the predictors from L0 and L1 are averaged with equal weight 0.5 to generate the final predictor. The predictor generation formula is shown in equation (4):
[0124] P TraditionalBiPred =(P L0 +P L1 +RoundingOffset)>>shiftNum, (1)
[0125] In equation (1), P TraditionalBiPred is the final predictor of the traditional bidirectional prediction, P L0 and P L1are the predictors from L0 and L1 respectively, and RoundingOffset and shiftNum are used to normalize the final predictor.
[0126] Generalized Bidirectional Prediction (GBI) is proposed to allow different weights to be applied to the predictors from L0 and L1. The predictor generation is shown in Equation (2).
[0127] P GBi =((1-w1)*P L0 +w1*P L1 +RoundingOffset GBi )>>shiftNum GBi , (2)
[0128] In equation (2), P GBi is the final prediction of GBi. (1-w1) and w1 are the selected GBI weights applied to the L0 and L1 predictors respectively. RoundingOffset GBi and shiftNum GBi is used to normalize the final predictor in GBi.
[0129] The supported w1 weight tables are {-1 / 4, 3 / 8, 1 / 2, 5 / 8, 5 / 4}. One equal-weight set and four unequal-weight sets are supported. For the equal-weight case, the process of generating the final predictor is exactly the same as in the traditional bi-prediction mode. For the true bi-prediction case under random access (RA) conditions, the number of candidate weight sets is reduced to three.
[0130] For Advanced Motion Vector Prediction (AMVP) mode, if the CU is encoded or decoded with bi-directional prediction, the weight selection in GBI is explicitly signaled at the CU level. For Merge mode, the weight selection is inherited from the Merge candidate. In this proposal, GBI supports DMVR to generate the weighted average of the templates and the final predictor of BMS-1.0.
[0131] 2.2.6 Final Motion Vector Expression
[0132] In some embodiments, a final motion vector expression (UMVE) is proposed. The UMVE and the proposed motion vector expression method are used in Skip or Merge mode.
[0133] UMVE reuses Merge candidates as used in VVC. Among the Merge candidates, candidates can be selected and further extended by the proposed motion vector representation method.
[0134] UMVE provides a new motion vector expression with simplified signaling. The expression method includes the starting point, motion amplitude and motion direction.
[0135] The proposed technique uses the Merge candidate list as is. However, only candidates of the default Merge type (MRG_TYPE_DEFAULT_N) are considered for UMVE extension.
[0136] The base candidate index defines the starting point. The base candidate index indicates the best candidate among the candidates in the list, as shown below.
[0137] Table 1 Basic candidate index IDX
[0138]
[0139] If the number of base candidates is equal to 1, the base candidate IDX is not signaled.
[0140] The distance index is the motion amplitude information. The distance index indicates the predefined distance from the start point information. The predefined distances are as follows:
[0141] Table 2 Distance index IDX
[0142]
[0143] The direction index indicates the direction of the MVD relative to the starting point. The direction index can represent four directions as shown below.
[0144] Table 3 Direction index IDX
[0145] Directions to IDX 00 01 10 11 x-axis + – N / A N / A y-axis N / A N / A + –
[0146] The UMVE flag is signaled immediately after the Skip flag and the Merge flag are sent. If the Skip and Merge flags are true, then the UMVE flag is parsed. If the UMVE flag is equal to 1, then the UMVE syntax is parsed. However, if not 1, then the Affine flag is parsed. If the Affine flag is equal to 1, then it is Affine mode, however, if not 1, then the Skip / Merge index of the Skip / Merge mode of the VTM is parsed.
[0147] Additional line buffers due to UMVE candidates are not needed, since software's Skip / Merge candidates are used directly as base candidates. By using the input UMVE index, the complement of the MV is determined directly before motion compensation. No long line buffers need to be kept for this.
[0148] 2.2.7 History-based Motion Vector Prediction
[0149] In our previous invention P180502841H, one or more lookup tables storing at least one motion candidate are used to predict the motion information of a block.
[0150] A history-based MVP (HMVP) method is proposed, in which the HMVP candidate is defined as the motion information of the previous codec block. A table with multiple HMVP candidates is maintained during the encoding / decoding process. When a new slice is encountered, the table is cleared. Whenever there is an inter-frame codec block, the associated motion information is added as a new HMVP candidate to the last entry of the table. The entire encoding and decoding process is as follows Fig.13 shown.
[0151] In one example, the table size is set to L (eg, L=16 or 6, or 44), which indicates that at most L HMVP candidates can be added to the table.
[0152] In one embodiment, if there are more than L HMVP candidates from the previously coded block, a first-in-first-out (FIFO) rule is applied so that the table always contains the latest previously coded L motion candidates. Fig.14 An example is described in which the FIFO rule is applied to remove HMVP candidates and add new HMVP candidates to the table used by the proposed method.
[0153] In another embodiment, whenever a new motion candidate is added (such as when the current block is inter-coded and in non-affine mode), a redundancy check process is first applied to identify whether the same or similar motion candidate exists in the LUT.
[0154] 2.2.8 Symmetric Motion Vector Difference
[0155] In some embodiments, symmetric motion vector difference (SMVD) is proposed to encode MVD more efficiently.
[0156] First, at the stripe level, the variables BiDirPredFlag, RefIdxSymL0, and RefIdxSymL1 are derived as follows:
[0157] Searches for the forward reference picture closest to the current picture in reference picture list 0. If found, sets RefIdxSymL0 equal to the reference index of the forward picture.
[0158] Search for the backward reference picture closest to the current picture in reference picture list 1. If found, set RefIdxSymL1 equal to the reference index of the backward picture.
[0159] If both forward and backward pictures are found, BiDirPredFlag is set to 1.
[0160] Otherwise, the following applies:
[0161] Searches for the backward reference picture in reference picture list 0 that is closest to the current reference picture. If found, sets RefIdxSymL0 equal to the reference index of the backward picture.
[0162] Search for the forward reference picture in reference picture list 1 that is closest to the current reference picture. If found, set RefIdxSymL1 equal to the reference index of the forward picture.
[0163] If both backward and forward pictures are found, BiDirPredFlag is set to 1. Otherwise, BiDirPredFlag is set to 0.
[0164] Secondly, at the CU level, if the prediction direction of the CU is bidirectional prediction and BiDirPredFlag is equal to 1, the symmetric mode flag indicating whether the symmetric mode is used is explicitly signaled.
[0165] When the flag is true, only mvp_l0_flag, mvp_l1_flag and MVD0 are explicitly signaled. Set the reference indexes of list0 and list1 equal to RefIdxSymL0, RefIdxSymL1 respectively. Set MVD1 equal to MVD0 only. The final motion vector is shown in the formula below.
[0166]
[0167] The modifications in the codec unit syntax are shown in Table 2.
[0168] Table 2: Modifications in the codec unit syntax
[0169]
[0170]
[0171] 2.2.9 CIIP in VTM4
[0172] In VTM4, when a CU is encoded or decoded in Merge mode, and if the CU contains at least 64 luma samples (i.e., CU width multiplied by CU height is equal to or greater than 64), an additional flag is signaled to indicate whether the combined inter / intra prediction (CIIP) mode is applied to the current CU.
[0173] To form the CIIP prediction, the intra prediction mode is first derived from two additional syntax elements. Up to four possible intra prediction modes can be used: DC, planar, horizontal or vertical. Then, the inter prediction and intra prediction signals are derived using conventional intra and inter decoding processes. Finally, the inter and intra prediction signals are weighted averaged to obtain the CIIP prediction.
[0174] 1. Intra-frame prediction mode derivation
[0175] Up to 4 intra prediction modes (including DC mode, PLANAR mode, HORIZONTAL mode, and VERTICAL mode) can be used to predict the luminance component in CIIP mode. If the CU shape is very wide (i.e., the width is greater than twice the height), the horizontal mode is not allowed. If the CU shape is very narrow (i.e., the height is greater than twice the width), the vertical mode is not allowed. In these cases, only 3 intra prediction modes are allowed.
[0176] CIIP mode uses 3 most probable modes (MPMs) for intra prediction. The CIIP MPM candidate list is formed as follows:
[0177] - Set the left and top neighbor blocks to A and B respectively.
[0178] The intra prediction modes of block A and block B (denoted as intraModeA and intraModeB, respectively) are derived as follows:
[0179] οLet X be A or B;
[0180] o If 1) block X is not available; or 2) block X is not predicted using CIIP mode or intra mode; 3) block B is outside the current CTU, set intraModeX to DC;
[0181] o Otherwise, 1) if the intra prediction mode of block X is DC or planar, set intraModeX to DC or planar; or, 2) if the intra prediction mode of block X is a "vertical-like" angular mode (greater than 34), set intraModeX to vertical; or, 3) if the intra prediction mode of block X is a "horizontal-like" angular mode (less than or equal to 34), set intraModeX to horizontal;
[0182] - If intraModeA and intraModeB are the same, then:
[0183] ο If intraModeA is planar or DC, set the three MPMs to {planar, DC, vertical} in that order;
[0184] ο Otherwise, set the three MPMs to {intraModeA, Planar, DC} in order;
[0185] - Otherwise (intraModeA and intraModeB are different):
[0186] ο Set the first two MPMs to {intraModeA, intraModeB} in order;
[0187] ο Check the uniqueness of planar, DC, and vertical in the first two MPM candidate patterns in order; once a unique pattern is found, add it as the third MPM.
[0188] If the CU shape is very wide or very narrow as defined above, the MPM flag is inferred to be 1 without signaling. Otherwise, the MPM flag is signaled to indicate whether the CIIP intra prediction mode is one of the CIIP MPM candidate modes.
[0189] If the MPM flag is 1, the MPM index is further signaled to indicate which MPM candidate mode is used in CIIP intra prediction. Otherwise, if the MPM flag is 0, the intra prediction mode is set to the "lost" mode in the MPM candidate list. For example, if the planar mode is not in the MPM candidate list, the planar is a lost mode and the intra prediction mode is set to the planar. Since 4 possible intra prediction modes are allowed in CIIP and the MPM candidate list contains only 3 intra prediction modes, one of the 4 possible modes must be a lost mode.
[0190] For chroma components, the DM mode is always applied without additional signaling; that is, chroma uses the same prediction mode as luma.
[0191] The intra prediction mode of the CU encoded and decoded by CIIP will be saved and used for the intra mode encoding and decoding of the neighboring CU in the future.
[0192] 2.2.9.2 Combining inter-frame and intra-frame prediction signals
[0193] The inter-frame prediction signal P in CIIP mode is derived using the same inter-frame prediction process applied to the normal Merge mode inter ; and after conventional intra prediction processing, the intra prediction signal P is derived using the CIIP intra prediction mode intra Then, the intra and inter prediction signals are combined using a weighted average, where the weights depend on the intra prediction mode and the location of the sample in the codec block, as shown below:
[0194] - If the intra prediction mode is DC mode or planar mode, or if the block width or height is less than 4, equal weights are applied to the intra prediction and inter prediction signals.
[0195] -Otherwise, the weights are determined based on the intra prediction mode (horizontal or vertical in this case) and the sample position in the block. Taking the horizontal prediction mode as an example (the weights for the vertical mode are derived similarly, but in the orthogonal direction): Denote W as the width of the block and H as the height of the block. The codec block is first divided into four equal parts, each with dimensions (W / 4)xH. Starting from the part closest to the intra prediction reference sample and ending with the part farthest from the intra prediction reference sample, the weight wt of each of the 4 regions is set to 6, 5, 3 and 2 respectively. The final CIIP prediction signal is derived using the following:
[0196] P CIIP =((8-wt)*P innter +wt*P intra +4)>>3
[0197] 2. CIIP in VTM5
[0198] In VTM5, when a CU is encoded and decoded in Merge mode, if the CU contains at least 64 luma samples (i.e., the CU width multiplied by the CU height is equal to or greater than 64), and if both the CU width and the CU height are less than 128 luma samples, an additional flag is signaled to indicate whether the combined inter / intra prediction (CIIP) mode is applied to the current CU. As the name implies, CIIP prediction combines the inter prediction signal with the intra prediction signal. The inter prediction signal P in CIIP mode is derived using the same inter prediction process as applied to the regular Merge mode. innter ; and derive the intra prediction signal P according to the same conventional intra prediction process as in the planar mode intra Then, the intra prediction signal and the inter prediction signal are combined using a weighted average, where the weighted values are calculated depending on the coding mode of the top and left neighboring blocks as follows ( Fig.16 Depicted in ):
[0199] - If the top neighbor is available and is intra-coded, set isIntraTop to 1, otherwise set isIntraTop to 0;
[0200] - If the left neighbor is available and is intra-coded, set isIntraLeft to 1, otherwise set isIntraLeft to 0;
[0201] -If (isIntraLeft+isIntraTop) is equal to 2, set wt to 3;
[0202] - Otherwise, if (isIntraLeft + isIntraTop) is equal to 1, set wt to 2;
[0203] - Otherwise, set wt to 1.
[0204] The CIIP forecast is formed as follows:
[0205] P CIIP =((4-wt)*P inter +wt*P intra +2)>>2
[0206] Fig.16 The top and left neighboring blocks used for CIIP weight derivation are shown.
[0207] 2.3 Intra-frame mode derivation processing
[0208] In the current VTM-4.0, when an intra-frame codec block is encoded and decoded, a most probable mode (MPM) flag is first signaled. If the MPM flag is true, the index of the MPM list is further notified. Otherwise, the index of the non-MPM mode is signaled.
[0209] The relevant syntax elements, symmetries and decoding processes in the latest VVC specification (JVET-M1001_v7) are as follows:
[0210] Related syntax
[0211] Codec unit syntax
[0212]
[0213]
[0214] Semantics
[0215] The syntax elements intra_luma_mpm_flag[x0][y0], intra_luma_mpm_idx[x0][y0], and intra_luma_mpm_remainder[x0][y0] specify the intra prediction mode for luma samples. The array indices x0, y0 specify the position (x0, y0) of the top-left luma sample of the considered codec block relative to the top-left luma sample of the picture. When intra_luma_mpm_flag[x0][y0] is equal to 1, the intra prediction mode is inferred from the neighboring intra prediction codec unit according to clause 8.4.2.
[0216] If intra_luma_mpm_flag[x0][y0] is not present, it is inferred to be equal to 1.
[0217] Decoding Process
[0218] Derivation of luma intra prediction mode
[0219] The input to this process is:
[0220] Luma position (xCb, yCb), which specifies the upper left sample of the current luma codec block relative to the upper left luma sample of the current picture,
[0221] The variable cbWidth specifies the width of the current codec block in luminance samples.
[0222] The variable cbHeight specifies the height of the current codec block in luma samples.
[0223] In this process, the luma intra prediction mode IntraPredModeY[xCb][yCb] is derived.
[0224] Table 8-1 specifies the values of intra prediction mode IntraPredModeY[xCb][yCb] and the associated names.
[0225] Table 8-1 Specification of intra prediction modes and related names
[0226] Intra prediction mode Related Name 0 INTRA_PLANAR 1 INTRA_DC 2..66 INTRA_ANGULAR2..INTRA_ANGULAR66 81..83 INTRA_LT_CCLM,INTRA_L_CCLM,NTRA_T_CCLM
[0227] Note: Intra prediction modes INTRA_LT_CCLM, INTRA_L_CCLM and INTRA_T_CCLM are applicable only to chroma components.
[0228] IntraPredModeY[xCb][yCb] is derived from the following sequence of steps:
[0229] 1. Set the adjacent positions (xNbA, yNbA) and (xNbB, yNbB) equal to (xCb-1, yCb+cbHeight-1) and (xCb+cbWidth-1, yCb-1), respectively.
[0230] 2. For the case where X is replaced by A or B, the variable candIntraPredModeX is derived as follows:
[0231] Set the position (xCurr, yCurr) equal to (xCb, yCb) and the adjacent position (xNbY, yNbY) equal to (xNbX, yNbX) as input, call the block availability derivation process specified in Section 6.4.X [Ed. (BB): Pending adjacent block availability check process], and assign the output to availableX.
[0232] The candidate intra prediction mode candIntraPredModeX is derived as follows:
[0233] If one or more of the following conditions are true, candIntraPredModeX is set equal to INTRA_PLANAR.
[0234] The variable availableX is equal to FALSE.
[0235] CuPredMode[xNbX][yNbX] is not equal to MODE_INTRA and ciip_flag[xNbX][yNbX] is not equal to 1.
[0236] pcm_flag[xNbX][yNbX] is equal to 1.
[0237] X is equal to B and yCb-1 is less than ((yCb>>CtbLog2SizeY)< <CtbLog2SizeY)。
[0238] Otherwise, candIntraPredModeX is set equal to IntraPredModeY[xNbX][yNbX].
[0239] 3. The variables ispDefaultMode1 and ispDefaultMode2 are defined as follows:
[0240] If IntraSubPartitionsSplitType is equal to ISP_HOR_SPLIT, ispDefaultMode1 is set equal to INTRA_ANGULAR18 and ispDefaultMode2 is set equal to INTRA_ANGULAR5.
[0241] Otherwise, ispDefaultMode1 is set equal to INTRA_ANGULAR50 and ispDefaultMode2 is set equal to INTRA_ANGULAR63.
[0242] 4. candModeList[x](x=0…5) is derived as follows:
[0243] If candIntraPredModeB is equal to candIntraPredModeA and candIntraPredModeA is greater than INTRA_DC, candModeList[x] (x=0...5) is derived as follows:
[0244] If IntraLumaRefLineIdx[xCb][yCb] is equal to 0 and IntraSubPartitionsSplitType is equal to ISP_NO_SPLIT, the following applies:
[0245] candModeList[0]=candIntraPredModeA (8-9)
[0246] candModeList[1]=INTRA_PLANAR (8-10)
[0247] candModeList[2]=INTRA_DC (8-11)
[0248] candModeList[3]=2+((candIntraPredModeA+61)%64) (8-12)
[0249] candModeList[4]=2+((candIntraPredModeA-1)%64) (8-13)
[0250] candModeList[5]=2+((candIntraPredModeA+60)%64) (8-14)
[0251] Otherwise (IntraLumaRefLineIdx[xCb][yCb] is not equal to 0 or IntraSubPartitionsSplitType is not equal to ISP_NO_SPLIT), the following applies:
[0252] candModeList[0]=candIntraPredModeA (8-15)
[0253] candModeList[1]=2+((candIntraPredModeA+61)%64) (8-16)
[0254] candModeList[2]=2+((candIntraPredModeA-1)%64) (8-17)
[0255] If one of the following conditions is true,
[0256] IntraSubPartitionsSplitType is equal to ISP_HOR_SPLIT and candIntraPredModeA is less than INTRA_ANGULAR34,
[0257] IntraSubPartitionsSplitType is equal to ISP_VER_SPLIT and candIntraPredModeA is greater than or equal to INTRA_ANGULAR34,
[0258] IntraLumaRefLineIdx[xCb][yCb] is not equal to 0,
[0259] The following applies:
[0260] candModeList[3]=2+((candIntraPredModeA+60)%64) (8-18)
[0261] candModeList[4]=2+(candIntraPredModeA%64) (8-19)
[0262] candModeList[5]=2+((candIntraPredModeA+59)%64) (8-20)
[0263] Otherwise, the following applies:
[0264] candModeList[3]=ispDefaultMode1 (8-21)
[0265] candModeList[4]=ispDefaultMode2 (8-22)
[0266] candModeList[5]=INTRA_PLANAR (8-23)
[0267] Otherwise, if candIntraPredModeB is not equal to candIntraPredModeA and candIntraPredModeA or candIntraPredModeB is greater than INTRA_DC, the following applies:
[0268] The variables minAB and maxAB are derived as follows:
[0269] minAB=Min(candIntraPredModeA,candIntraPredModeB) (8-24)
[0270] maxAB=Max(candIntraPredModeA,candIntraPredModeB) (8-25)
[0271] If candIntraPredModeA and candIntraPredModeB are both greater than INTRA_DC, candModeList[x] (x=0…5) is derived as follows:
[0272] candModeList[0]=candIntraPredModeA (8-26)
[0273] candModeList[1]=candIntraPredModeB (8-27)
[0274] If IntraLumaRefLineIdx[xCb][yCb] is equal to 0 and IntraSubPartitionsSplitType is equal to ISP_NO_SPLIT, the following applies:
[0275] candModeList[2]=INTRA_PLANAR (8-28)
[0276] candModeList[3]=INTRA_DC (8-29)
[0277] If maxAB - minAB is in the range 2 to 62, inclusive, then the following applies:
[0278] candModeList[4]=2+((maxAB+61)%64) (8-30)
[0279] candModeList[5]=2+((maxAB-1)%64) (8-31)
[0280] Otherwise, the following applies:
[0281] candModeList[4]=2+((maxAB+60)%64) (8-32)
[0282] candModeList[5]=2+((maxAB)%64) (8-33)
[0283] Otherwise (IntraLumaRefLineIdx[xCb][yCb] is not equal to 0 or IntraSubPartitionsSplitType is not equal to ISP_NO_SPLIT), the following applies:
[0284] If IntraSubPartitionsSplitType is not equal to ISP_NO_SPLIT, and abs(candIntraPredModeB - ispDefaultMode1) is less than abs(candIntraPredModeA - ispDefaultMode1), the following applies:
[0285] candModeList[0]=candIntraPredModeB (8-34)
[0286] candModeList[1]=candIntraPredModeA (8-35)
[0287] If maxAB-minAB is equal to 1, then the following applies:
[0288] candModeList[2]=2+((minAB+61)%64) (8-36)
[0289] candModeList[3]=2+((maxAB-1)%64) (8-37)
[0290] candModeList[4]=2+((minAB+60)%64) (8-38)
[0291] candModeList[5]=2+(maxAB%64) (8-39)
[0292] Otherwise if maxAB-minAB is equal to 2, then the following applies:
[0293] candModeList[2]=2+((minAB-1)%64) (8-40)
[0294] candModeList[3]=2+((minAB+61)%64) (8-41)
[0295] candModeList[4]=2+((maxAB-1)%64) (8-42)
[0296] candModeList[5]=2+((minAB+60)%64) (8-43)
[0297] Otherwise if maxAB-minAB is greater than 61, the following applies:
[0298] candModeList[2]=2+((minAB-1)%64) (8-44)
[0299] candModeList[3]=2+((maxAB+61)%64) (8-45)
[0300] candModeList[4]=2+(minAB%64) (8-46)
[0301] candModeList[5]=2+((maxAB+60)%64) (8-47)
[0302] Otherwise, the following applies:
[0303] candModeList[2]=2+((minAB+61)%64) (8-48)
[0304] candModeList[3]=2+((minAB-1)%64) (8-49)
[0305] candModeList[4]=2+((maxAB+61)%64) (8-50)
[0306] candModeList[5]=2+((maxAB-1)%64) (8-51)
[0307] Otherwise (candIntraPredModeA or candIntraPredModeB is greater than INTRA_DC), candModeList[x] (x=0...5) is derived as follows:
[0308] If IntraLumaRefLineIdx[xCb][yCb] is equal to 0 and IntraSubPartitionsSplitType is equal to ISP_NO_SPLIT, the following applies:
[0309] candModeList[0]=candIntraPredModeA (8-52)
[0310] candModeList[1]=candIntraPredModeB (8-53)
[0311] candModeList[2]=1-minAB (8-54)
[0312] candModeList[3]=2+((maxAB+61)%64) (8-55)
[0313] candModeList[4]=2+((maxAB-1)%64) (8-56)
[0314] candModeList[5]=2+((maxAB+60)%64) (8-57)
[0315] Otherwise, if IntraLumaRefLineIdx[xCb][yCb] is not equal to 0, the following applies:
[0316] candModeList[0]=maxAB (8-58)
[0317] candModeList[1]=2+((maxAB+61)%64) (8-59)
[0318] candModeList[2]=2+((maxAB-1)%64) (8-60)
[0319] candModeList[3]=2+((maxAB+60)%64) (8-61)
[0320] candModeList[4]=2+(maxAB%64) (8-62)
[0321] candModeList[5]=2+((maxAB+59)%64) (8-63)
[0322] Otherwise (IntraSubPartitionsSplitType is not equal to ISP_NO_SPLIT), the following applies:
[0323] candModeList[0]=INTRA_PLANAR (8-64)
[0324] candModeList[1]=maxAB (8-65)
[0325] candModeList[2]=2+((maxAB+61)%64) (8-66)
[0326] candModeList[3]=2+((maxAB-1)%64) (8-67)
[0327] candModeList[4]=2+((maxAB+60)%64) (8-68)
[0328] candModeList[5]=2+(maxAB%64) (8-69)
[0329] Otherwise, the following applies:
[0330] If IntraLumaRefLineIdx[xCb][yCb] is equal to 0 and IntraSubPartitionsSplitType is equal to ISP_NO_SPLIT, the following applies:
[0331] candModeList[0]=candIntraPredModeA (8-70)
[0332] candModeList[1]=(candModeList[0]==INTRA_PLANAR)? INTRA_DC:INTRA_PLANAR(8-71)
[0333] candModeList[2]=INTRA_ANGULAR50 (8-72)
[0334] candModeList[3]=INTRA_ANGULAR18 (8-73)
[0335] candModeList[4]=INTRA_ANGULAR46 (8-74)
[0336] candModeList[5]=INTRA_ANGULAR54 (8-75)
[0337] Otherwise, if IntraLumaRefLineIdx[xCb][yCb] is not equal to 0, the following applies:
[0338] candModeList[0]=INTRA_ANGULAR50 (8-76)
[0339] candModeList[1]=INTRA_ANGULAR18 (8-77)
[0340] candModeList[2]=INTRA_ANGULAR2 (8-78)
[0341] candModeList[3]=INTRA_ANGULAR34 (8-79)
[0342] candModeList[4]=INTRA_ANGULAR66 (8-80)
[0343] candModeList[5]=INTRA_ANGULAR26 (8-81)
[0344] Otherwise, if IntraSubPartitionsSplitType is equal to ISP_HOR_SPLIT, the following applies:
[0345] candModeList[0]=INTRA_PLANAR (8-82)
[0346] candModeList[1]=INTRA_ANGULAR18 (8-83)
[0347] candModeList[2]=INTRA_ANGULAR25 (8-84)
[0348] candModeList[3]=INTRA_ANGULAR10 (8-85)
[0349] candModeList[4]=INTRA_ANGULAR65 (8-86)
[0350] candModeList[5]=INTRA_ANGULAR50 (8-87)
[0351] Otherwise, if IntraSubPartitionsSplitType is equal to ISP_VER_SPLIT, the following applies:
[0352] candModeList[0]=INTRA_PLANAR (8-88)
[0353] candModeList[1]=INTRA_ANGULAR50 (8-89)
[0354] candModeList[2]=INTRA_ANGULAR43 (8-90)
[0355] candModeList[3]=INTRA_ANGULAR60 (8-91)
[0356] candModeList[4]=INTRA_ANGULAR3 (8-92)
[0357] candModeList[5]=INTRA_ANGULAR18 (8-93)
[0358] 5. Derive IntraPredModeY[xCb][yCb] by applying the following process:
[0359] If intra_luma_mpm_flag[xCb][yCb] is equal to 1, IntraPredModeY[xCb][yCb] is set equal to candModeList[intra_luma_mpm_idx[xCb][yCb]].
[0360] Otherwise, IntraPredModeY[xCb][yCb] is derived by applying the following sequential steps:
[0361] 1. If candModeList[i] is greater than candModeList[j] for i=0...4 and for each i, j=(i+1)...5, swap the two values as follows:
[0362] (candModeList[i],candModeList[j])=Swap(candModeList[i],candModeList[j]) (8-94)
[0363] 2. Derive IntraPredModeY[xCb][yCb] by applying the following sequential steps:
[0364] i. Set IntraPredModeY[xCb][yCb] equal to intra_luma_mpm_remainder[xCb][yCb].
[0365] ii. For i equal to 0 to 5 (inclusive), if IntraPredModeY[xCb][yCb] is greater than or equal to candModeList[i], increase the value of IntraPredModeY[xCb][yCb] by one.
[0366] The variable IntraPredModeY[x][y] (x=xCb . . . xCb + cbWidth-1 and y=yCb . . . yCb + cbHeight-1) is set equal to IntraPredModeY[xCb][yCb].
[0367] 3. Examples of Problems Solved by Embodiments
[0368] In LIC, two parameters including a scaling parameter and an offset b need to be derived by using adjacent reconstruction samples, which may cause a delay problem.
[0369] The set of allowed weight factors used in GBI is fixed, which may be inefficient.
[0370] CIIP mode only works with non-skipped Merge mode, which may be less efficient.
[0371] In the current design, the CIIP mode flag should be stored because for the intra mode derivation process of an intra codec block and the intra mode derivation process of a CIIP codec block, the CIIP mode flag of the neighboring block is used.
[0372] In the current design, the CIIP weight derivation can be further improved, for example, the checking of two neighboring blocks and three different weight pairs can be simplified.
[0373] In the current design, during the CIIP weight derivation process, if the neighboring block is coded using BDPCM mode, it is considered as intra mode. However, it may be more reasonable to consider it as non-intra mode because BDPCM is designed for screen content coding.
[0374] 4. Examples of Embodiments
[0375] Hereinafter, a transform unit (TU) / prediction unit (PU) / coding unit (CU) / sub-block within a transform unit (TU) / prediction unit (PU) / coding unit (CU) and the like is represented by a block.
[0376] The detailed techniques below should be considered as examples to explain the general concepts. These techniques should not be interpreted narrowly. In addition, these techniques can be combined in any way.
[0377] Assume that (xCb, yCb) is the position of the upper left sample point of the current block relative to the upper left sample point of the current picture, and cbWidth and cbHeight specify the width and height of the current block.
[0378] 1. The CIIP flag or / and the LIC flag or / and the diffusion filter flag or / and the bilateral filter flag or / and the transform domain filter flag or / and the enable flag of other types of post-reconstruction filters can be constrained to false (the CIIP or / and the LIC or / and the diffusion filter or / and the bilateral filter or / and the transform domain filter can be implicitly disabled), depending on the coding mode of other blocks (such as adjacent or non-adjacent neighboring blocks and / or reference blocks).
[0379] a. When a flag is exported as false, the corresponding method may not be applied.
[0380] b. When a flag is derived as false, signaling of usage indication for such mode is skipped.
[0381] c. When a flag is derived as false, the use indication of such a mode may still be signaled, but is constrained to be false in the conforming bitstream and such a mode is not applied.
[0382] d. In one example, whether to apply one or more proposed constraints (such as 1.a, 1.b, and 1.c) may depend on the encoding and decoding modes of all or some adjacent and / or non-adjacent neighboring rows or columns.
[0383] i. Alternatively, whether to apply such a constraint may depend on at least N (N>=1) samples in adjacent or non-adjacent neighboring rows or columns that are not coded using a specific mode.
[0384] e. In one example, the adjacent and / or non-adjacent neighboring rows may include an upper row and / or an upper right row.
[0385] f. In one example, the adjacent and / or non-adjacent adjacent columns may include a left column and / or a lower left corner and / or an upper left corner.
[0386] g. In one example, the specific mode of the block other than the current block may include an intra mode and / or a CIIP mode and / or a CPR mode.
[0387] h. In one example, if any of the adjacent / non-adjacent blocks in adjacent and / or non-adjacent rows or columns is encoded or decoded with a particular mode (e.g., intra-frame and / or CIIP mode and / or CPR mode), one or more proposed constraints (such as 1.a, 1.b, and 1.c) are applied.
[0388] i. In one example, if all adjacent / non-adjacent blocks in adjacent and / or non-adjacent neighboring rows or columns are coded using a specific mode (eg, intra and / or CIIP and / or CPR mode), then one or more proposed constraints are applied.
[0389] j. In one example, if at least N adjacent / non-adjacent blocks in adjacent or non-adjacent rows or columns are not encoded or decoded using a particular mode (e.g., intra-frame and / or CIIP mode and / or CPR mode), one or more proposed constraints (such as 1.a, 1.b, and 1.c) are not applied.
[0390] k. In one example, whether to apply one or more proposed constraints (such as 1.a, 1.b, and 1.c) may depend on the location of the current block.
[0391] i. In one example, if the current block is located at the top of the current CTU (the current block and its upper neighboring block belong to different CTUs), the proposed constraint is not applied.
[0392] ii. In one example, if the current block is located to the left of the current CTU (the current block and its left neighboring block belong to different CTUs), the proposed constraint is not applied.
[0393] 2. The CIIP flag and / or intra mode of the CIIP mode may be stored in a history-based motion vector prediction (HMVP) table together with the motion information.
[0394] a. In one example, when comparing two candidate motion information (such as a pruning process), the CIIP flag or / and the intra mode in the CIIP mode are not considered in the comparison.
[0395] b. In one example, when comparing two candidate motion information, the CIIP flag in the CIIP mode or / and the intra mode are considered in the comparison.
[0396] c. In one example, when a Merge candidate comes from an entry in the HMVP table, the CIIP flag of the entry is also copied to the Merge candidate.
[0397] d. In one example, when a Merge candidate comes from an entry in the HMVP table, the CIIP flag and intra mode of the entry are also copied to the Merge candidate.
[0398] 3. CIIP can be performed for AMVP mode (AMVP mode or / and AMVP with SMVD mode)
[0399] a. In the Merge mode or / and UMVE (also called Merge with Motion Vector Difference, MMVD for short) mode of the current block, the CIIP flag and / or intra mode in the CIIP mode of the adjacent / non-adjacent block may be inherited.
[0400] b. The CIIP flag and / or intra mode in the CIIP mode may be signaled for the non-skipped Merge mode and / or the non-skipped UMVE mode, and in the skipped Merge mode and / or the skipped UMVE mode, the CIIP flag and / or intra mode in the CIIP mode of the adjacent / non-adjacent blocks may be inherited.
[0401] c. The CIIP flag and / or intra mode in the CIIP mode may be signaled for the Skip Merge mode or / and the Skip UMVE mode, and in the Non-Skip Merge mode or / and the Non-Skip UMVE mode, the CIIP flag and / or intra mode in the CIIP mode of the adjacent / non-adjacent blocks may be inherited.
[0402] d. In one example, the CIIP flag and intra mode may be signaled for AMVP mode.
[0403] e. In one example, in Merge mode or / and UMVE mode, the CIIP flag may be inherited, and if the CIIP flag is true, the intra mode may be further signaled if multiple intra modes are allowed in CIIP.
[0404] f. In one example, the CIIP flag and intra mode of the neighboring / non-neighboring blocks in the Merge mode or / and the UMVE mode may be inherited by the current block.
[0405] g. In one example, CIIP may be disabled for skip mode.
[0406] h. In one example, when comparing two Merge candidates, the CIIP flag and / or the intra mode in the CIIP may not be considered in the comparison.
[0407] i. In one example, when comparing two Merge candidates, the CIIP flag or / and the intra mode in the CIIP may be considered in the comparison.
[0408] 4. CIIP can be disabled for paired prediction or combined bi-prediction or other kinds of virtual / artificial candidates (eg, zero motion vector candidates).
[0409] a. Alternatively, if one of the two candidates included in the pairwise prediction or combined bidirectional prediction adopts CIIP prediction, CIIP can be enabled for the pairwise or combined bidirectional Merge candidate.
[0410] ii. In one example, the intra-mode of the CIIP mode candidate may be inherited.
[0411] iii. In one example, intra mode may be explicitly signaled.
[0412] b. Alternatively, if both candidates included in the pairwise prediction or combined bidirectional prediction adopt CIIP prediction, CIIP can be enabled for the pairwise or combined bidirectional Merge candidate.
[0413] i. In one example, the intra mode of one of the two candidates may be inherited.
[0414] ii. In one example, the intra mode may be derived from two candidate intra modes and used for pairwise or combined bidirectional Merge candidates.
[0415] iii. In one example, intra mode may be explicitly signaled.
[0416] 5. The adjacent and / or non-adjacent spatial reconstruction samples required by the CIIP mode or / and the diffusion filter or / and the bilateral filter or / and the transform domain filter or / and other types of post-reconstruction filters can be replaced by corresponding samples in the reference picture (such as adjacent and / or non-adjacent spatial samples of the reference block, such as Fig.17 shown).
[0417] a. In one example, if the current block is bidirectionally predicted, the adjacent samples of the two reference blocks may be averaged to generate the final adjacent samples.
[0418] b. In one example, if the current block is bidirectionally predicted, the neighboring samples of one of the two reference blocks may be used as the final neighboring samples.
[0419] c. In one example, if the current block is bidirectionally predicted, if unequal weight GBI or weighted prediction or LIC is applied to the current block, the neighboring samples of the two reference blocks may be weighted averaged to generate the final neighboring samples.
[0420] d. In one example, the corresponding sample in the reference picture (eg, the adjacent sample of the reference block) may be identified through the motion information of the current block.
[0421] e. In one example, the corresponding sample in the reference picture (eg, the neighboring sample of the reference block) may be identified by the modified motion information of the current block. For example, the motion vector may be rounded to integer precision before being used to identify the neighboring sample.
[0422] f. In one example, the corresponding sample in the reference picture (eg, the neighboring sample of the reference block) is identified via a motion vector with integer pixel precision.
[0423] i. In one example, the MV of the reference block is first rounded to integer pixels, and the rounded MV is used to identify neighboring samples of the reference block.
[0424] ii. In one example, the proposed replacement is applied when the current block is coded with integer pixel motion information. Therefore, no rounding is required.
[0425] g. In one example, the proposed replacement may be applied only to a specific color component such as the luma component.
[0426] i. Alternatively, the proposed replacement may be applied to all color components.
[0427] 6. It is proposed to prohibit the use of the CIIP flag of the previous encoding and decoding for the subsequent blocks.
[0428] a. In one example, the checking process of the CIIP flag from the previous codec block is skipped to improve throughput.
[0429] b. In one example, the checking process of the CIIP flag from the neighboring blocks in the intra mode derivation process is skipped.
[0430] i. In one example, for a neighboring block, if it is encoded and decoded in CIIP mode, the associated intra mode may be set to a given mode (such as planar mode). Alternatively, in addition, the associated intra mode may be used for the MPM list derivation process.
[0431] ii. In one example, for a neighboring block, if it is coded in CIIP mode or conventional inter mode, the associated intra mode may be set to a given mode (such as planar mode). Alternatively, the associated intra mode may be used for the MPM list derivation process.
[0432] iii. In one example, the intra mode of the CIIP codec block may not be stored and the CIIP codec block may be considered unusable in the decoding process. Alternatively, the CIIP codec block may be treated in the same way as the regular inter mode.
[0433] c. Alternatively, it is further proposed to remove the CIIP flag from the memory to save the memory size required for storing the mode information.
[0434] 7. It is proposed to use bypass encoding and decoding to encode and decode the CIIP mode flag.
[0435] a. Alternatively, the CIIP mode flag may be context-coded without reference to the CIIP mode flags of neighboring blocks.
[0436] 8. It is proposed that the method of weighted summing in CIIP may depend on the color components.
[0437] a. For example, the weighting values in CIIP are different for the primary color component (eg, G component) and other color components (eg, B and R components).
[0438] b. For example, the weighting values in CIIP are different for the luminance component and the chrominance component.
[0439] c. For example, for inter prediction and intra prediction, the weighting values are equal on the chrominance components.
[0440] 9. It is proposed that when the weighting factor selection is performed based on the neighboring blocks, the neighboring blocks can be regarded as inter-frame coded blocks if they are coded and decoded in CIIP mode.
[0441] a. Alternatively, when the weighted factor selection is based on neighboring blocks, for neighboring blocks, if they are encoded or decoded in the CIIP mode, they can be regarded as intra-coded blocks.
[0442] 10. The method proposed above can be applied under specific conditions, such as block size, stripe / picture / slice type, or motion information.
[0443] a. In one example, when the block size contains less than M×H samples (e.g., 16, 32, or 64 luma samples), the proposed method is not allowed.
[0444] b. Alternatively, when the minimum size of the width or / and height of the block is less than or not greater than X, the proposed method is not allowed. In one example, X is set to 8.
[0445] c. Alternatively, when the minimum size of the width or / and height of the block is not less than X, the proposed method is not allowed. In one example, X is set to 8.
[0446] d. Alternatively, when the width of the block > th1 or >= th1 and / or the height of the block > th2 or >= th2, the proposed method is not allowed. In one example, th1 and / or th2 are set to 8.
[0447] e. Alternatively, when the width of the block < th1 or <= th1 and / or the height of the block < th2 or <= th2, the proposed method is not allowed. In one example, th1 and / or th2 are set to 8.
[0448] 11. The number of allowed weight pairs (wIntra, wInter) used in CIIP can be reduced from 3 to 2, denoted as (a, b) and (c, d).
[0449] a. In one example, the two pairs are defined as {(1, 3) and (3, 1)}; or {(1, 3) and (2, 2)}; or {(3, 1) and (2, 2)}; or {(3, 5) and (4, 4)} or {(5, 3) and (4, 4)}, or {(1, 7) and (4, 4)} or {(7, 1) and (4, 4)}.
[0450] b. In one example, the weight pair is determined based on only one neighboring block A.
[0451] i. In one example, if a neighboring block A is available and is intra-coded, then set (wIntra, wInter) to be equal to (a, b); otherwise, set (wIntra, wInter) to be equal to (c, d).
[0452] ii. In one example, block A is the left neighboring block.
[0453] iii. In one example, block A is the upper neighboring block.
[0454] c. In one example, a weight pair is determined based on two or more neighboring blocks, and at least one of the neighboring blocks satisfies certain conditions.
[0455] i. In one example, if at least one of the neighboring blocks A and B is available and intra-coded, (wIntra, wInter) is set equal to (A, B); otherwise, (wIntra, wInter) is set equal to (c, d).
[0456] 1. In one example, block A is the left neighboring block and block B is the top neighboring block.
[0457] d. In one example, a weight pair is determined based on two or more neighboring blocks, and each neighboring block satisfies the same condition.
[0458] i. In one example, if both neighboring blocks A and B are available and both are intra-coded, (wIntra, wInter) is set equal to (A, B); otherwise, (wIntra, wInter) is set equal to (c, d).
[0459] 1. In one example, block A is the left neighboring block and block B is the top neighboring block.
[0460] e. In one example, the settings of (a, b) and (c, d) can be as follows:
[0461] 1. In one example, (a, b) is set to (2, 2) or (3, 1).
[0462] 2. In one example, (c, d) is set equal to (1, 3).
[0463] 3. In an example, at least one of the following two conditions is true: a is not equal to c, or b is not equal to d.
[0464] 4. (a, b) is not equal to (c, d).
[0465] f. In one example, the aforementioned adjacent blocks (eg, A or B) are adjacent or non-adjacent spatial adjacent blocks or temporal adjacent blocks.
[0466] i. In one example, neighboring block A or B is the left (or top) neighboring block.
[0467] ii. In one example, neighboring blocks A and B are the left neighboring block and the top neighboring block, respectively.
[0468] iii. In one example, the left neighboring block covers the position (xCb-1, yCb+cbHeight-1).
[0469] iv. In one example, the top adjacent block covers the position (xCb+cbWidth-1, yCb-1).
[0470] v. In one example, the left neighboring block covers position (xCb-1, yCb).
[0471] vi. In one example, the top adjacent block covers position (xCb, yCb-1).
[0472] g. For the above example, the CIIP forecast is formed as follows:
[0473] P CIIP =(wInter*P inter +wIntra*P intra +offset)>>N
[0474] Here, offset is set to (1<<(N-1)) or 0, and N can be set to log2(wIntra+wInter).
[0475] 12. The number of allowed weight pairs (wIntra, wInter) used in CIIP can be reduced from 3 to 1.
[0476] a. In one example, a weight pair is defined as (1, 3) or (2, 2) or (1, 7) or (2, 6) or (3, 5) or (4, 4).
[0477] b. In one example, (wIntra, wInter) is set equal to (2, 2).
[0478] c. In one example, (wIntra, wInter) is set equal to (1, 3).
[0479] d. For the above example, the CIIP forecast is formed as follows:
[0480] P CIIP =(wInter*P inter +wIntra*P intra +offset)>>N
[0481] Here, offset is set to (1<<(N-1)) or 0, and N can be set to log2(wIntra+wInter).
[0482] 13. A (wIntra, wInter) weight pair may be derived based on whether one or more neighboring blocks are coded using CIIP mode.
[0483] a. The weight pair for the current block can be derived from the weight pair for the previously encoded block.
[0484] b. In one example, the weight pair is determined based on only one neighboring block A.
[0485] i. In one example, if a neighboring block A is encoded and decoded using the CIIP mode, (wIntra, wInter) of the current block is set equal to (wIntra, wInter) of the neighboring block A; otherwise, if the neighboring block A is available and is intra-coded, (wIntra, wInter) is set equal to (a, b); otherwise, (wIntra, wInter) is set equal to (c, d).
[0486] ii. In one example, if an adjacent block A is encoded and decoded in CIIP mode, (wIntra, wInter) of the current block is set equal to (wIntra, wInter) of the adjacent block; otherwise, (wIntra, wInter) is set equal to (a, b).
[0487] iii. For the above example, the following applies:
[0488] 1. In one example, (a, b) is set equal to (2, 2) or (3, 1).
[0489] 2. In one example, set (c, d) equal to (1, 3).
[0490] 3. In an example, at least one of the following two conditions is true: a is not equal to c; b is not equal to d.
[0491] c. In one example, a weight pair is determined based on two or more adjacent blocks, and at least one of the adjacent blocks satisfies a specific condition.
[0492] i. Multiple adjacent blocks may be checked in a given checking order (eg, first check the left block, then check the top block) to identify the use of CIIP mode.
[0493] ii. In one example, if at least one of the neighboring blocks A and B is encoded and decoded in CIIP mode, the (wIntra, wInter) of the current block is set equal to the (wIntra, wInter) of the first CIIP-encoded neighboring block in a given checking order; otherwise, if at least one of the neighboring blocks A and B is available and is intra-frame encoded and decoded, (wIntra, wInter) is set equal to (a, b); otherwise, (wIntra, wInter) is set equal to (c, d).
[0494] iii. For the above example, the following applies:
[0495] 1. In one example, (a, b) is set equal to (2, 2) or (3, 1).
[0496] 2. In one example, (c, d) is set equal to (1, 3).
[0497] 3. In an example, at least one of the following two conditions is true: a is not equal to c; b is not equal to d.
[0498] iv. In one example, if at least one of the neighboring blocks A and B is encoded and decoded in CIIP mode, the (wIntra, wInter) of the current block is set equal to the (wIntra, wInter) of the first CIIP-encoded neighboring block in a given checking order; otherwise, if both neighboring blocks A and B are available and are intra-frame encoded and decoded, (wIntra, wInter) is set equal to (a, b); otherwise, (wIntra, wInter) is set equal to (c, d).
[0499] v. In one example, if at least one of the adjacent blocks A and B is encoded and decoded in CIIP mode, the (wIntra, wInter) of the current block is set equal to the (wIntra, wInter) of the first CIIP-encoded adjacent block in a given checking order; otherwise, (wIntra, wInter) is set equal to (c, d).
[0500] vi. For the above example, the following applies:
[0501] 1. In one example, (c, d) is set equal to (2, 2) or (1, 3).
[0502] d. In one example, the adjacent block A or B is an adjacent or non-adjacent spatial domain adjacent block or a temporal domain adjacent block.
[0503] i. In one example, neighboring block A or B is the left (or top) neighboring block.
[0504] ii. In one example, neighboring blocks A and B are the left neighboring block and the top neighboring block, respectively.
[0505] iii. In one example, the left neighboring block covers the position (xCb-1, yCb+cbHeight-1).
[0506] iv. In one example, the top adjacent block covers the position (xCb+cbWidth-1, yCb-1).
[0507] v. In one example, the left neighboring block covers position (xCb-1, yCb).
[0508] vi. In one example, the top adjacent block covers position (xCb, yCb-1).
[0509] e. For the above example, the CIIP forecast is formed as follows:
[0510] P CIIP =(wInter*P inter +wIntra*P intra +offset)>>N
[0511] Here, offset is set to (1<<(N-1)) or 0, and N can be set to log2(wIntra+wInter).
[0512] 14. The selection of neighboring blocks used in CIIP may depend on codec information such as block dimension / block shape / low delay check flag / reference picture information / motion information of current block and neighboring blocks / intra-prediction mode of neighboring blocks.
[0513] 15. The weight pairs used in CIIP may depend on codec information such as block dimension / block shape / low delay check flag / reference picture information / motion information of current block and neighboring blocks / intra prediction mode of neighboring blocks.
[0514] a. In one example, a set of weight pairs is further signaled.
[0515] b. In one example, the selection of a weight pair may depend on whether the neighboring block is inter-coded rather than intra-coded.
[0516] 16. When determining CIIP information (for example, for the previous design and the above items, when determining the weight applied to the intra-frame prediction signal or the inter-frame prediction signal), if the neighboring block is not encoded with MODE_INTRA (i.e., intra-frame mode), it can be regarded as intra-frame encoded.
[0517] a. In one example, if the neighboring block is IBC coded.
[0518] b. In one example, if the neighboring block is CIIP coded.
[0519] c. In one example, if the neighboring block is TPM encoded.
[0520] d. In one example, if the adjacent block is palette coded.
[0521] e. In one example, if the neighboring block is RDPCM coded.
[0522] f. In one example, if the neighboring block is encoded without applying transform (eg, transform skip mode) and / or quantization (eg, transform bypass quantization mode).
[0523] g. Alternatively, if the neighboring block is coded using the mode mentioned in the above sub-item (eg, IBC, RDPCM, palette), the neighboring block may be considered as non-intra-coded (eg, inter-coded).
[0524] h. In one example, if a neighboring block is intra-coded but not coded with a specific prediction mode (eg, planar), the neighboring block may be considered non-intra-coded (eg, inter-coded).
[0525] i. Alternatively, if the neighboring block is encoded using a matrix-based intra prediction method and / or a multiple reference row intra prediction method (where the reference row index is not equal to K, for example, K=0) and / or BDPCM, the neighboring block can be considered to be non-intra-coded (e.g., inter-coded).
[0526] j. The proposed method can be applied to other codec tools, which depend on whether the neighboring blocks are coded in intra mode.
[0527] k. The proposed method can be applied to other codecs, which depend on whether neighboring blocks are coded in inter mode.
[0528] 17. Whether the above method is enabled or disabled can be signaled in SPS / PPS / VPS / sequence header / picture header / slice header / slice group header / CTU group, etc.
[0529] a. Alternatively, which method to use may be signaled in the SPS / PPS / VPS / sequence header / picture header / slice header / slice group header / CTU group etc.
[0530] b. Alternatively, whether to enable or disable the above methods and / or which method to apply may depend on block dimension, video processing data unit (VPDU), picture type, low delay check flag, codec information of the current block or previously coded blocks (e.g. reference pictures, unidirectional or bidirectional prediction).
[0531] 5. Examples
[0532] 5.1 Example 1
[0533] An example of skipping the checking of the CIIP flag of the previous codec block is given below.
[0534] 8.4.2 Derivation of Luma Intra Prediction Mode
[0535] The input to this process is:
[0536] Luma position (xCb, yCb), which specifies the upper left sample of the current luma codec block relative to the upper left luma sample of the current picture,
[0537] The variable cbWidth specifies the width of the current codec block in luminance samples.
[0538] The variable cbHeight specifies the height of the current codec block in luma samples.
[0539] In this process, the luma intra prediction mode IntraPredModeY[xCb][yCb] is derived.
[0540] Table 8-1 specifies the values of intra prediction mode IntraPredModeY[xCb][yCb] and the associated names.
[0541] Table 8-1 Specification of intra prediction modes and related names
[0542]
[0543]
[0544] Note: Intra prediction modes INTRA_LT_CCLM, INTRA_L_CCLM and INTRA_T_CCLM are applicable only to chroma components.
[0545] IntraPredModeY[xCb][yCb] is derived from the following sequence of steps:
[0546] 1. Set the adjacent positions (xNbA, yNbA) and (xNbB, yNbB) equal to (xCb-1, yCb+cbHeight-1) and (xCb+cbWidth-1, yCb-1), respectively.
[0547] 2. For the case where X is replaced by A or B, the variable candIntraPredModeX is derived as follows:
[0548] Set the position (xCurr, yCurr) equal to (xCb, yCb) and the adjacent position (xNbY, yNbY) equal to (xNbX, yNbX) as input, call the block availability derivation process specified in Section 6.4.X [Ed. (BB): Pending adjacent block availability check process], and assign the output to availableX.
[0549] The candidate intra prediction mode candIntraPredModeX is derived as follows:
[0550] If one or more of the following conditions are true, candIntraPredModeX is set equal to INTRA_PLANAR.
[0551] The variable availableX is equal to FALSE.
[0552] CuPredMode[xNbX][yNbX] is not equal to MODE_INTRA.
[0553] pcm_flag[xNbX][yNbX] is equal to 1.
[0554] X is equal to B and yCb-1 is less than ((yCb>>CtbLog2SizeY)< <CtbLog2SizeY)。
[0555] Otherwise, candIntraPredModeX is set equal to IntraPredModeY[xNbX][yNbX].
[0556] 3. The variables ispDefaultMode1 and ispDefaultMode2 are defined as follows:
[0557] If IntraSubPartitionsSplitType is equal to ISP_HOR_SPLIT, ispDefaultMode1 is set equal to INTRA_ANGULAR18 and ispDefaultMode2 is set equal to INTRA_ANGULAR5.
[0558] Otherwise, ispDefaultMode1 is set equal to INTRA_ANGULAR50 and ispDefaultMode2 is set equal to INTRA_ANGULAR63.
[0559] 4. candModeList[x](x=0…5) is derived as follows:
[0560] …
[0561] Example 2
[0562] If the left neighbor is available and intra-coded, then (wIntra, wInter) is set equal to (2, 2); otherwise, (wIntra, wInter) is set equal to (1, 3).
[0563] The CIIP forecast is formed as follows:
[0564] P CIIP =(wInter*P inter +wIntra*P intra +2)>>2
[0565] Example 3
[0566] If the left neighbor is available and intra-coded, (wIntra, wInter) is set equal to (3, 1); otherwise, (wIntra, wInter) is set equal to (1, 3).
[0567] The CIIP forecast is formed as follows:
[0568] P CIIP =(wInter*P inter +wIntra*P intra +2)>>2
[0569] Example 4
[0570] If the top neighbor is available and is intra-coded, then (wIntra, wInter) is set equal to (2, 2); otherwise, (wIntra, wInter) is set equal to (1, 3).
[0571] The CIIP forecast is formed as follows:
[0572] P CIIP =(wInter*P inter +wIntra*P intra +2)>>2
[0573] Example 5
[0574] If the top neighbor is available and is intra-coded, then (wIntra, wInter) is set equal to (3, 1); otherwise, (wIntra, wInter) is set equal to (1, 3).
[0575] The CIIP forecast is formed as follows:
[0576] P CIIP =(wInter*P inter +wIntra*P intra +2)>>2
[0577] Example 6
[0578] If the left neighbor and the top neighbor are available and intra-coded, (wIntra, wInter) is set equal to (2, 2); otherwise, (wIntra, wInter) is set equal to (1, 3).
[0579] The CIIP forecast is formed as follows:
[0580] P CIIP =(wInter*P inter +wIntra*P intra +2)>>2
[0581] Example 7
[0582] If the left neighbor and the top neighbor are available and intra-coded, (wIntra, wInter) is set equal to (3, 1); otherwise, (wIntra, wInter) is set equal to (1, 3).
[0583] The CIIP forecast is formed as follows:
[0584] P CIIP =(wInter*P inter +wIntra*P intra +2)>>2
[0585] Example 8
[0586] If the left or top neighbor is available and intra-coded, then (wIntra, wInter) is set equal to (2, 2); otherwise, (wIntra, wInter) is set equal to (1, 3).
[0587] The CIIP forecast is formed as follows:
[0588] P CIIP =(wInter*P inter +wIntra*P intra +2)>>2
[0589] Example 9
[0590] If the left or top neighbor is available and intra-coded, then (wIntra, wInter) is set equal to (3, 1); otherwise, (wIntra, wInter) is set equal to (1, 3).
[0591] The CIIP forecast is formed as follows:
[0592] P CIIP =(wInter*P inter +wIntra*P intra +2)>>2
[0593] Example 10
[0594] Set (wIntra, wInter) equal to (2, 2).
[0595] The CIIP forecast is formed as follows:
[0596] P CIIP =(wInter*P inter +wIntra*P intra +2)>>2
[0597] Embodiment 11
[0598] Set (wIntra, wInter) equal to (1, 3).
[0599] The CIIP forecast is formed as follows:
[0600] P CIIP =(wInter*P inter +wIntra*P intra +2)>>2
[0601] Example 12
[0602] If the left neighbor is CIIP coded, then (wIntra, wInter) of the current block is set equal to (wIntra, wInter) of the left neighbor; otherwise, if the left neighbor is available and is intra-coded, then (wIntra, wInter) is set equal to (3, 1); otherwise, (wIntra, wInter) is set equal to (1, 3).
[0603] The CIIP forecast is formed as follows:
[0604] P CIIP =(wInter*P inter +wIntra*P intra +2)>>2
[0605] Example 13
[0606] If the left neighbor is CIIP coded, then (wIntra, wInter) of the current block is set equal to (wIntra, wInter) of the left neighbor; otherwise, if the left neighbor is available and is intra-coded, then (wIntra, wInter) is set equal to (2, 2); otherwise, (wIntra, wInter) is set equal to (1, 3).
[0607] The CIIP forecast is formed as follows:
[0608] P CIIP =(wInter*P inter +wIntra*P intra +2)>>2
[0609] Embodiment 14
[0610] If the top neighbor is CIIP coded, then (wIntra, wInter) of the current block is set equal to (wIntra, wInter) of the top neighbor; otherwise, if the top neighbor is available and is intra-coded, then (wIntra, wInter) is set equal to (3, 1); otherwise, (wIntra, wInter) is set equal to (1, 3).
[0611] The CIIP forecast is formed as follows:
[0612] P CIIP =(wInter*P inter +wIntra*P intra +2)>>2
[0613] Embodiment 15
[0614] If the top neighbor is CIIP coded, then (wIntra, wInter) of the current block is set equal to (wIntra, wInter) of the top neighbor; otherwise, if the top neighbor is available and is intra-coded, then (wIntra, wInter) is set equal to (2, 2); otherwise, (wIntra, wInter) is set equal to (1, 3).
[0615] The CIIP forecast is formed as follows:
[0616] P CIIP =(wInter*P inter +wIntra*P intr a+2)>>2
[0617] Example 16
[0618] If the left or / and top neighbor is CIIP coded, then (wIntra, wInter) of the current block is set equal to (wIntra, wInter) of the first CIIP coded neighbor (from left to top); otherwise, if the left or / and top neighbor is available and is intra-coded, then (wIntra, wInter) is set equal to (3, 1); otherwise, (wIntra, wInter) is set equal to (1, 3).
[0619] The CIIP forecast is formed as follows:
[0620] P CIIP =(wInter*P inter +wIntra*P intra +2)>>2
[0621] Embodiment 17
[0622] If the left or / and top neighbor is CIIP coded, then (wIntra, wInter) of the current block is set equal to (wIntra, wInter) of the first CIIP coded neighbor (from left to top); otherwise, if the left or / and top neighbor is available and is intra-coded, then (wIntra, wInter) is set equal to (2, 2); otherwise, (wIntra, wInter) is set equal to (1, 3).
[0623] The CIIP forecast is formed as follows:
[0624] P CIIP =(wInter*P inter +wIntra*P inntra +2)>>2
[0625] Embodiment 18
[0626] If the left neighbor is CIIP coded, then (wIntra, wInter) of the current block is set equal to (wIntra, wInter) of the left neighbor; otherwise, (wIntra, wInter) is set equal to (1, 3).
[0627] The CIIP forecast is formed as follows:
[0628] P CIIP =(wInter*P inter +wIntra*P intra +2)>>2
[0629] Embodiment 19
[0630] If the left neighbor is CIIP coded, (wIntra, wInter) of the current block is set equal to (wIntra, wInter) of the left neighbor; otherwise, (wIntra, wInter) is set equal to (2, 2).
[0631] The CIIP forecast is formed as follows:
[0632] P CIIP =(wInter*P inter +wIntra*P intra +2)>>2
[0633] Embodiment 20
[0634] If the top neighbor is CIIP coded, then (wIntra, wInter) of the current block is set equal to (wIntra, wInter) of the top neighbor; otherwise, (wIntra, wInter) is set equal to (1, 3).
[0635] The CIIP forecast is formed as follows:
[0636] P CIIP =(wInter*P inter +wIntra*P intra +2)>>2
[0637] Embodiment 21
[0638] If the top neighbor is CIIP coded, then (wIntra, wInter) of the current block is set equal to (wIntra, wInter) of the top neighbor; otherwise, (wIntra, wInter) is set equal to (2, 2).
[0639] The CIIP forecast is formed as follows:
[0640] P CIIP =(wInter*P inter +wIntra*P intra +2)>>2
[0641] Embodiment 22
[0642] If the left or / and top neighbor is CIIP coded, set (wIntra, wInter) of the current block equal to (wIntra, wInter) of the first CIIP coded neighbor (from left to top); otherwise, set (wIntra, wInter) equal to (1, 3).
[0643] The CIIP forecast is formed as follows:
[0644] P CIIP =(wInter*P inter +wIntra*P intra +2)>>2
[0645] Embodiment 23
[0646] If the left or / and top neighbor is / are CIIP coded, set (wIntra, wInter) of the current block equal to (wIntra, wInter) of the first CIIP coded neighbor (from left to top); otherwise, set (wIntra, wInter) equal to (2, 2).
[0647] The CIIP forecast is formed as follows:
[0648] P CIIP =(wInter*P inter +wIntra*P intra +2)>>2
[0649] Embodiment 24
[0650] 8.5.6 Inter-block decoding
[0651] 8.5.6.1 Overview
[0652] This process is called when decoding a codec unit that was coded in inter prediction mode.
[0653] When ciip_flag[xCb][yCb] is equal to 1, the array of prediction samples predSamples is modified as follows:
[0654] If cIdx is equal to 0, the following applies:
[0655] Invoke the normal intra sample prediction process as specified in clause 8.4.5.2.5 with position (xTbCmp, yTbCmp) set equal to (xCb, yCb), intra prediction mode predModeIntra set equal to IntraPredModeY[xCb][yCb], transform block width nTbW and height nTbH set equal to cbWidth and cbHeight, codec block width nCbW and height nCbH set equal to cbWidth and cbHeight, variable cIdx as input, and assign the output to the (cbWidth) x (cbHeight) array predSamplesIntra L .
[0656] Set the position (xTbCmp, yTbCmp) to (xCb, yCb), the codec block width cbWidth, the codec block height cbHeight, and the sample arrays predSamplesInter and predSamplesIntra to predSamples and predSamplesIntra, respectively. L , sets the intra prediction mode predModeIntra equal to IntraPredModeY[xCb][yCb], and the color component index cIdx as input, invokes the weighted sample prediction process combining Merge and intra prediction as specified in clause 8.5.6.7, and assigns the output to the (cbWidth)x(cbHeight) array predSamples.
[0657] …
[0658] 8.5.6.7 Weighted Sample Prediction Processing Combining Merge and Intra Prediction
[0659] The input to this process is:
[0660] Luma position (xCb, yCb), which specifies the upper left sample of the current luma codec block relative to the upper left luma sample of the current picture,
[0661] The width of the current codec block cbWidth,
[0662] The height of the current codec block cbHeight,
[0663] two (cbWidth) x (cbHeight) arrays predSamplesInter and predSamplesIntra,
[0664] The variable cIdx specifies the color component index.
[0665] The output of this process is a (cbWidth) x (cbHeight) array of predicted sample values, predSamplesComb.
[0666] The variable bitDepth is derived as follows:
[0667] If cIdx is equal to 0, then bitDepth is set to BitDepth Y .
[0668] Otherwise, set bitDepth to BitDepth C .
[0669] The variable callFact is exported as follows:
[0670] scallFact = (cIdx == 0)? 0 : 1; (8 - 838)
[0671] Set the neighboring luminance positions (xNbA, yNbA) and (xNbB, yNbB) to be equal to (xCb - 1, yCb - 1 + (cbHeight << scallFact)) and (xCb - 1 + (cbWidth << scallFact), yCb - 1), respectively.
[0672] For the case where X is replaced by A or B, the variables availableX and isIntraCodedNeighbourX are derived as follows:
[0673] With the position (xCurr, yCurr) set to be equal to (xCb, yCb), the neighboring position (xNbY, yNbY) set to be equal to (xNbX, yNbX), checkPredModeY set to FALSE, and cIdx set to be equal to 0 as the input, call the derivation process of neighboring block availability specified in Clause 6.4.4, and assign the output to availableX.
[0674] The derivation of the variable isIntraCodedNeighbourX is as follows:
[0675] If availableX is equal to TRUE, and CuPredMode[0][xNbX][yNbX] is equal to MODE_INTRA, and BdpcmFlag[xNbX][yNbX] is equal to 0, then set isIntraCodedNeighbourX to be equal to TRUE.
[0676] Otherwise, set isIntraCodedNeighbourX to be equal to FALSE.
[0677] The weight w is derived as follows:
[0678] If both isIntracodedNeighbourA and isIntraCodedNeighbourB are equal to TRUE, then set w to be equal to 3.
[0679] Otherwise, if both isIntracodedNeighbourA and isIntraCodedNeighbourB are equal to FALSE, then set w to be equal to 1.
[0680] Otherwise, set w to be equal to 2.
[0681] When cIdx is equal to 0 and slice_lmcs_enabled_flag is equal to 1, predSamplesInter[x][y] (x=0..cbWidth-1 and y=0..cbHeight-1) is modified as follows:
[0682] Fig.18 1 is a block diagram of a video processing device 1800. Device 1800 may be used to implement one or more methods described herein. Device 1800 may be implemented in a smartphone, a tablet computer, a computer, an Internet of Things (IoT) receiver, etc. Device 1800 may include one or more processors 1802, one or more memories 1804, and video processing hardware 1806. Processor 1802 may be configured to implement one or more methods described herein. Memory 1804 may be used to store data and code for implementing the methods and techniques described herein. Video processing hardware 1806 may be used to implement some of the techniques described herein in hardware circuits.
[0683] Fig. 20 is a flow chart of a method 2000 for processing a video. The method 2000 includes: determining (2105) a codec mode of a first video block, constraining (2110) one or more flags to an operational state based on the determination of the codec mode of the first video block, the operational state being false or true, and performing (2115) further processing of a second video block according to the operational state of the one or more flags, wherein the first video block is a neighboring video block or a reference video block related to the second video block.
[0684] Fig.21 is a flow chart of a method 2100 for processing a video. The method 2100 includes: determining (2105) to use paired prediction or combined bi-directional prediction for a first video block, determining (2010) an operational state of combined inter-intra prediction (CIIP) based on the determination to use paired prediction or combined bi-directional prediction, wherein the operational state is enabled or disabled, and performing (2115) further processing of the first video block according to the operational state of the CIIP.
[0685] Fig.23 23 is a flow chart of a method 2300 for processing a video. The method 2300 includes: determining (2305) one or more codec modes of one or more second blocks during conversion between a first block in video data and a bitstream representation of the first block; determining (2310) a codec mode constraint of the first block based on the one or more codec modes of the one or more second blocks; performing (2315) conversion by at least applying the codec mode constraint of the first block; wherein the one or more second blocks include at least one of a neighboring block, a non-neighboring block, and a reference block of the first block.
[0686] Fig.24 is a flow chart of a method 2400 of processing video. The method 2400 includes performing (2405) a conversion between a current block in video data and a bitstream representation of the current block by using at least one of combined inter-frame intra-frame prediction (CIIP), diffusion filtering, bilateral filtering, transform domain filtering, or another type of post-reconstruction filtering different from diffusion filtering, bilateral filtering, and transform domain filtering, wherein reconstructed neighboring samples of the current block used in at least one of combined inter-frame intra-frame prediction (CIIP), diffusion filtering, bilateral filtering, transform domain filtering, or another type of post-reconstruction filtering are replaced with approximate samples generated from corresponding samples of reconstructed neighboring samples in one or more reference pictures.
[0687] Fig.25 is a flow chart of a method 2500 for processing a video. The method 2500 includes: storing (2505) a combined inter-frame intra-frame prediction (CIIP) mode CIIP flag and / or an intra-frame mode in a history-based motion vector prediction (HMVP) table together with motion information; and performing (2510) a conversion between a current block in video data and a bitstream representation of the current block based at least on the HMVP table.
[0688] Fig.26 is a flow chart of a method 2600 for processing video. The method 2600 includes: during a conversion between a current block in video data and a bitstream representation of the current block, determining (2605) a prediction mode for the current block; determining (2610) applicability of a combined inter-frame intra-frame prediction (CIIP) mode, the applicability indicating that the CIIP mode is enabled for the current block in response to determining that the current block uses an advanced motion vector prediction (AMVP) mode or a Merge mode codec; and performing (2615) the conversion based on the applicability of the CIIP mode.
[0689] Fig. 27 27 is a flow chart of a method 2700 for processing a video. The method 2700 includes: during a conversion between a current block in video data and a bitstream representation of the current block, determining (2705) a type of a selected Merge candidate for the current block; and determining (2710) suitability of combined inter-frame intra-frame prediction (CIIP) for the current block based on the type of the selected Merge candidate, wherein the current block is encoded and decoded in Merge mode.
[0690] With reference to methods 2000 and 2100, some examples of combined inter-frame intra-frame prediction and its use for encoding are described in Section 4 of this document. For example, as described in Section 4, a video block can be processed according to the combined intra-frame inter-frame prediction use.
[0691] Referring to methods 2000 and 2100, video blocks may be encoded in a video bitstream, wherein bit efficiency may be achieved by using a bitstream generation rule associated with combined inter-frame and intra-frame prediction.
[0692] The method may include where the one or more flags include a combined inter-intra prediction (CIIP) flag, a local illumination compensation (LIC) flag, a diffusion filtering flag, a bilateral filtering flag, a transform domain filtering flag, or another type of post-reconstruction filtering flag.
[0693] The method may include wherein the one or more flags include a first flag associated with a first operation, the first flag is derived as false, and the first operation is not applied.
[0694] The method may include wherein use of the first operation is signaled as skipped.
[0695] The method may include wherein, in the conforming bitstream, use of the first operation is signaled as a constraint being false.
[0696] The method may include wherein the first video block is in an adjacent row or column relative to the second video block.
[0697] The method may include: wherein the adjacent row includes an upper row or an upper right row.
[0698] The method may include: wherein the adjacent column includes a left column, a lower left column, or an upper left column.
[0699] The method may include: wherein the coding mode includes an intra-frame mode, a CIIP mode or a CPR mode.
[0700] The method may include determining a location of the second video block, and wherein constraining the one or more flags to a false state is also based on the determination of the location of the second video block.
[0701] The method may include: wherein the position is located at the top of a current codec tree unit (CTU), and an upper neighboring block of the second video block is located in a different CTU.
[0702] The method may include: wherein the position is located to the left of a current codec tree unit (CTU), and a left neighboring block of the second video block is located in a different CTU.
[0703] The method may include wherein the one or more flags include an intra-mode of a CIIP flag or a CIIP mode flag, and data associated with the one or more flags are stored in a history-based motion vector prediction (HMVP) table together with motion information.
[0704] The method may include comparing two candidate motion information, wherein the CIIP flag or the intra mode CIIP mode flag is not used in the comparison of the motion information.
[0705] The method may include comparing two candidate motion information, wherein a CIIP flag or an intra mode CIIP mode flag is used in the comparison of the motion information.
[0706] The method may include: determining a Merge candidate from an entry in an HMVP table; and copying a CIIP flag of the entry to the Merge candidate.
[0707] The method may include: determining that a Merge candidate is from an entry in an HMVP table; and copying a CIIP flag and an intra-mode of the entry to the Merge candidate.
[0708] The method may include wherein a flag in the one or more flags is associated with CIIP, and wherein the CIIP is performed for Advanced Motion Vector Prediction (AMVP).
[0709] The method may include: wherein a CIIP flag and an intra-frame mode flag are signaled for the AMVP mode.
[0710] The method may include: wherein a CIIP flag is inherited in a Merge mode or a UMVE mode, the CIIP flag includes an operation state of true, multiple intra-frame modes are allowed in the CIIP, and the intra-frame mode is signaled based on the multiple intra-frame modes allowed in the CIIP.
[0711] The method may include: wherein the CIIP flag and the intra-frame mode of the adjacent or non-adjacent video block in the Merge mode or the UMVE mode are inherited by the second video block.
[0712] The method may include wherein CIIP is disabled for skip mode.
[0713] The method may include comparing information related to two candidates, and wherein the CIIP flag or the intra mode CIIP mode flag is not used in the comparison of the information.
[0714] The method may include comparing information related to two candidates, and wherein a CIIP flag or an intra mode CIIP mode flag is used in the comparison of the information.
[0715] The method may include wherein one or more candidates involved in the pairwise prediction or the combined bidirectional prediction adopt CIIP prediction, and wherein the operating state is enabled.
[0716] The method may include wherein the intra-mode of one of the two candidates is inherited.
[0717] The method may comprise: wherein signalling an intra-frame mode.
[0718] The method may include wherein the pairwise prediction or combined bi-directional prediction involves two candidates.
[0719] The method may include wherein reconstructed samples used in a CIIP mode, a diffusion filter, a bilateral filter, a transform domain filter or other type of post-reconstruction filter are replaced with samples in a reference picture.
[0720] The method may include wherein the second video block is bi-directionally predicted and adjacent samples of two reference blocks are averaged to generate final adjacent samples.
[0721] The method may include wherein the second video block is bidirectionally predicted and neighboring samples of two reference blocks are used as final neighboring samples.
[0722] The method may include: wherein the second video block is bidirectionally predicted, and neighboring samples of two reference blocks are weighted averaged based on unequal weight generalized bidirectional prediction (GBI) to generate final neighboring samples, or weighted prediction LIC is applied to the second video block.
[0723] The method may include wherein the motion information of the second video block is used to identify samples in the reference picture.
[0724] The method may include wherein the motion information of the second video block is used to identify samples in the reference picture.
[0725] The method may include wherein the motion vector is rounded to integer precision and used to identify the sample point.
[0726] The method may include: wherein the sample is in a reference picture identified by a motion vector with integer pixel precision.
[0727] The method may include determining characteristics of the second video block, the characteristics including one or more of block size, slice type, picture type, slice type, or motion information, and wherein the operating state is constrained based on the determination of the characteristics.
[0728] The method may include: wherein the method is signaled in a sequence parameter set (SPS), a view parameter set (VPS), a picture parameter set (PPS), a sequence header, a picture header, a slice header, a slice group header, a slice, or a CTU group.
[0729] The following list of solutions further provides embodiments and variations of the items listed in the previous sections (e.g., items 11 to 16).
[0730] 40. A video processing method, comprising: performing conversion between a video block of a video and a codec representation of the video block using a combined inter-frame intra-frame prediction mode, wherein the codec representation corresponds to a weighted average of intra-frame and inter-frame prediction results of the video block using weight pairs from a set of weight pairs, and the set of weight pairs contains less than three pairs.
[0731] 41. A method according to solution 40, wherein the set of weight pairs corresponds to two pairs.
[0732] 42. A method according to any one of solutions 40 to 41, wherein the weight pair is determined based on a single neighboring block.
[0733] 43. A method according to any one of solutions 40 to 41, wherein the weight pair is determined based on a plurality of neighboring blocks.
[0734] 44. A method according to solution 40, wherein the set of weight pairs includes exactly one pair.
[0735] 45. A method according to solution 44, wherein the pair is one of (1, 3) or (2, 2) or (1, 7) or (2, 6) or (3, 5) or (4, 4).
[0736] 46. A video processing method, comprising: using a combined inter-frame intra-frame prediction mode to perform conversion between a video block of a video and a codec representation of the video block, wherein the codec representation corresponds to a weighted average of intra-frame and inter-frame prediction results of the video block using a weight pair from a set of weight pairs, and the set of weight pairs is determined by codec information of one or more neighboring blocks.
[0737] 47. A method according to solution 46, wherein the set of weight pairs is determined by exactly one neighboring block.
[0738] 48. The method of solution 46, wherein the set of weight pairs is determined by two or more adjacent blocks.
[0739] 49. A method according to any one of solutions 40 to 48, wherein the conversion includes encoding the video to generate the codec representation.
[0740] 50. A method according to any one of solutions 40 to 48, wherein the conversion comprises decoding the codec representation to generate the video.
[0741] Various other embodiments and additional features of these methods can be described using the following clause-based narrative.
[0742] 1. A video processing method, comprising:
[0743] determining one or more codec modes for one or more second blocks during conversion between a first block in the video data and a bitstream representation of the first block;
[0744] determining a codec mode constraint for the first block based on the one or more codec modes for the one or more second blocks; and
[0745] performing said converting by at least applying said codec mode constraint of said first block;
[0746] The one or more second blocks include at least one of an adjacent block, a non-adjacent block and a reference block of the first block.
[0747] 2. A method according to clause 1, wherein determining the codec mode constraint of the first block comprises:
[0748] Based on the one or more codec modes of the one or more second blocks, one or more flags corresponding to the one or more codec modes of the first block, respectively, are determined.
[0749] 3. The method of clause 2, wherein the one or more codec modes include:
[0750] A combined inter-intra prediction (CIIP) mode, a local illumination compensation (LIC) mode, a diffusion filtering mode, a bilateral filtering mode, a transform domain filtering mode, or a post-reconstruction filtering mode different from the diffusion filtering mode, the bilateral filtering mode, and the transform domain filtering mode.
[0751] 4. A method according to any of clauses 2 to 3, wherein the codec mode constraint of the first block comprises:
[0752] When a first flag corresponding to a first codec mode is derived as false, the first codec mode of the one or more codec modes of the first block is disabled.
[0753] 5. A method according to any of clauses 2 to 4, wherein the codec mode constraint of the first block comprises:
[0754] When a second flag corresponding to the second codec mode is derived as false, information indicating whether the second codec mode among the one or more codec modes of the first block is enabled is not signaled.
[0755] 6. A method according to any of clauses 2 to 5, wherein the codec mode constraint of the first block comprises:
[0756] When a third flag corresponding to a third codec mode is derived as false, information indicating whether the third codec mode among the one or more codec modes of the first block is enabled is signaled and constrained to be false.
[0757] 7. The method according to any one of clauses 1 to 6, further comprising:
[0758] Determining whether to apply the codec mode constraint of the first block.
[0759] 8. The method of clause 7, wherein determining whether to apply the codec mode constraint of the first block comprises:
[0760] Whether to apply the codec mode constraint of the first block is determined according to a codec mode of an adjacent row or column of the first block.
[0761] 9. The method of clause 7, wherein determining whether to apply the codec mode constraint of the first block comprises:
[0762] Whether to apply the coding mode constraint of the first block is determined according to at least N samples in adjacent rows or adjacent columns of the first block that are not encoded using the fourth mode, and N≥1.
[0763] 10. The method of clause 8 or 9, wherein the adjacent rows include an upper row and an upper right row of the first block.
[0764] 11. A method according to any of clauses 8 to 10, wherein the adjacent columns include a left column, a lower left column and an upper left column of the first block.
[0765] 12. A method according to any of clauses 7 to 11, wherein determining whether to apply the codec mode constraint of the first block comprises:
[0766] When any adjacent non-adjacent block is coded in the fourth mode, it is determined to apply the coding mode constraint of the first block.
[0767] 13. A method according to any of clauses 7 to 11, wherein determining whether to apply the codec mode constraint of the first block comprises:
[0768] When all adjacent non-adjacent blocks are coded and decoded in the fourth mode, it is determined to apply the coding and decoding mode constraint of the first block.
[0769] 14. A method according to any of clauses 7 to 11, wherein determining whether to apply the codec mode constraint of the first block comprises:
[0770] When at least M adjacent non-adjacent blocks are not coded in the fourth mode, it is determined not to apply the coding mode constraint of the first block, and M is a predefined first threshold.
[0771] 15. A method according to any of clauses 9 to 14, wherein the fourth codec mode comprises at least one of an intra prediction mode, a combined inter intra prediction (CIIP) mode and a current picture reference (CPR) mode.
[0772] 16. A method according to any of clauses 7 to 14, wherein determining whether to apply the codec mode constraint of the first block comprises:
[0773] Whether to apply the coding mode constraint of the first block is determined according to the position of the first block.
[0774] 17. The method of clause 16, wherein determining whether to apply the codec mode constraint of the first block according to the position of the first block comprises:
[0775] When the position is at the top of a current codec tree unit (CTU), and an upper adjacent block and the first block belong to different CTUs, it is determined not to apply the codec mode constraint of the first block.
[0776] 18. The method of clause 16, wherein determining whether to apply the codec mode constraint of the first block according to the position of the first block comprises:
[0777] When the position is on the left side of a current codec tree unit (CTU), and a left neighboring block and the first block belong to different CTUs, it is determined not to apply the codec mode constraint of the first block.
[0778] 19. The method according to any one of clauses 1 to 18, further comprising:
[0779] determining characteristics of the current block; and
[0780] When the characteristic of the current block satisfies a predefined condition, it is determined to apply the coding mode constraint of the current block.
[0781] 20. The method according to any one of clauses 1 to 18, further comprising:
[0782] determining characteristics of the current block and / or previously coded blocks; and
[0783] Whether to apply the coding mode constraint of the current block is determined according to the characteristics of the current block and / or a previously coded block.
[0784] 21. A video processing method, comprising:
[0785] performing a conversion between a current block in the video data and a bitstream representation of the current block using at least one of combined inter-intra prediction (CIIP), diffusion filtering, bilateral filtering, transform domain filtering, or another type of post-reconstruction filtering different from the diffusion filtering, the bilateral filtering, and the transform domain filtering,
[0786] wherein the reconstructed neighboring samples of the current block used in at least one of the combined inter-frame intra-frame prediction (CIIP), the diffusion filtering, the bilateral filtering, the transform domain filtering, or the other type of post-reconstruction filtering are replaced with approximate samples generated from corresponding samples of reconstructed neighboring samples in one or more reference pictures.
[0787] 22. The method according to clause 21, wherein when the current block is bi-directionally predicted, adjacent samples of two reference blocks of the current block are averaged to generate the approximate samples.
[0788] 23. The method according to clause 21, wherein when the current block is bidirectionally predicted or unidirectionally predicted, a neighboring sample of a reference block of the current block is used as the approximation sample.
[0789] 24. A method according to clause 21, wherein when the current block is bidirectionally predicted and at least one of unequal-weight generalized bidirectional prediction (GBI), weighted prediction and local illumination compensation (LIC) is applied to the current block, neighboring samples of two reference blocks of the current block are weighted averaged to generate the approximate samples.
[0790] 25. A method according to clauses 22 to 24, wherein the neighbouring samples of the reference block of the current block are identified by motion information of the current block.
[0791] 26. A method according to clauses 22 to 24, wherein the neighbouring samples of the reference block of the current block are identified by modified motion information of the current block.
[0792] 27. The method of clause 24, wherein the modified motion information of the current block is a modified motion vector rounded to integer precision.
[0793] 28. The method of clause 21, wherein the neighboring samples of the reference block of the current block are identified using motion vectors with integer pixel precision.
[0794] 29. A method according to clause 28, wherein the motion vectors of the reconstructed neighbouring samples are rounded to integer precision to identify the corresponding samples.
[0795] 30. A method according to any of clauses 21 to 29, wherein the reconstructed neighboring samples of the current block are replaced by the approximating samples only when the current block is encoded or decoded with integer pixel precision.
[0796] 31. A method according to any of clauses 21 to 30, wherein for luma components or chroma components only, reconstructed neighboring samples of the current block are replaced by the approximating samples.
[0797] 32. The method according to any one of clauses 19 to 31, further comprising:
[0798] determining characteristics of the current block; and
[0799] When the characteristic of the current block meets a predefined condition, it is determined to replace the reconstructed adjacent sample points with the approximate sample points.
[0800] 33. A method according to clause 19 or 32, wherein the characteristics of the current block include at least one of block size, slice type, picture type, slice type and motion information.
[0801] 34. The method according to clause 33, wherein the predefined condition is that the current block contains samples that are not less than a predefined second threshold.
[0802] 35. The method according to clause 33, wherein the predefined condition is that the width and height of the current block are greater than a predefined third threshold.
[0803] 36. The method of clause 33, wherein the predefined condition is that a width and a height of the current block are smaller than a predefined fourth threshold.
[0804] 37. The method according to clause 33, wherein the predefined condition is: the width of the current block is smaller than a predefined fifth threshold and / or the height of the current block is smaller than a predefined sixth threshold.
[0805] 38. The method according to clause 33, wherein the predefined condition is: the width of the current block is greater than a predefined seventh threshold and / or the height of the current block is greater than a predefined eighth threshold.
[0806] 39. A method according to clause 38, wherein information indicating whether to apply the coding mode constraint of the current block and / or whether to replace the reconstructed adjacent samples with the approximate samples is signaled in a sequence parameter set (SPS), a view parameter set (VPS), a picture parameter set (PPS), a sequence header, a picture header, a slice header, a slice group header, a slice or a CTU group.
[0807] 40. The method according to any one of clauses 21 to 39, further comprising:
[0808] determining characteristics of the current block and / or previously coded blocks; and
[0809] Whether to replace the reconstructed adjacent sample points with the approximate sample points is determined according to the characteristics of the current block and / or the previously coded block.
[0810] 41. A method according to clause 20 or 40, wherein the characteristics of the current block and / or the previous codec block include at least one of the block dimensions, video processing data unit (VPDU), picture type, low latency check flag, and codec information of the current block and / or the previous codec block.
[0811] 42. A method according to clause 41, wherein the codec information of the current block and / or the previously coded block indicates a reference picture, unidirectional prediction or bidirectional prediction.
[0812] 43. A video processing apparatus comprising a processor configured to implement the method of any one of clauses 1 to 42.
[0813] 44. The device of clause 43, wherein the device is a video encoder.
[0814] 45. The device of clause 43, wherein the device is a video decoder.
[0815] 46. A computer-readable recording medium having recorded therein a program including codes, the program causing a processor to execute the method according to any one of clauses 1 to 42.
[0816] Various other embodiments and additional features of these methods can be described using the following clause-based narrative.
[0817] 1. A video processing method, comprising:
[0818] storing a combined inter-intra prediction (CIIP) mode flag and / or intra mode in a history-based motion vector prediction (HMVP) table along with motion information; and
[0819] Converting between a current block in the video data and a bitstream representation of the current block is performed based at least on the HMVP table.
[0820] 2. The method according to clause 1, further comprising:
[0821] Compare the motion information of two candidates,
[0822] The CIIP flag of the CIIP mode and / or the intra mode are not used in the comparison of the two candidate motion information.
[0823] 3. The method according to clause 1, further comprising:
[0824] Compare the motion information of two candidates,
[0825] The CIIP flag of the CIIP mode and / or the intra mode are used in the comparison of the two candidate motion information.
[0826] 4. A method according to any one of clauses 1 to 3, wherein the performing comprises:
[0827] When a Merge candidate comes from an entry in the HMVP table, the CIIP flag of the entry is copied to the Merge candidate.
[0828] 5. A method according to any one of clauses 1 to 3, wherein the performing comprises:
[0829] When a Merge candidate comes from an entry in the HMVP table, the CIIP flag and the intra mode of the entry are copied to the Merge candidate.
[0830] 6. A video processing method, comprising:
[0831] determining, during conversion between a current block in video data and a bitstream representation of the current block, a prediction mode for the current block;
[0832] determining applicability of a combined inter-intra prediction (CIIP) mode, the applicability indicating enabling the CIIP mode for the current block in response to determining that the current block is encoded in an advanced motion vector prediction (AMVP) mode or a Merge mode; and
[0833] The converting is performed based on the applicability of the CIIP mode.
[0834] 7. The method of clause 6, wherein when the current block is encoded or decoded in the AMVP mode, a CIIP flag and / or an intra mode of the CIIP mode is signaled.
[0835] 8. A method according to clause 6 or 7, wherein in the Merge mode and / or the Merge with motion vector difference (MMVD) mode of the current block, the CIIP flag and / or the intra-frame mode of the CIIP mode of the adjacent neighboring block and / or non-adjacent neighboring block is inherited.
[0836] 9. A method according to any one of clauses 6 to 8, wherein the CIIP flag and / or intra-frame mode of the CIIP mode is signaled for non-skipped Merge mode and / or non-skipped MMVD mode, and in skipped Merge mode and / or skipped MMVD mode, the CIIP flag and / or intra-frame mode of the CIIP mode of adjacent neighboring blocks and / or non-adjacent neighboring blocks are inherited.
[0837] 10. A method according to any one of clauses 6 to 8, wherein the CIIP flag and / or intra-frame mode of the CIIP mode is signaled for the Skip Merge mode and / or the Skip MMVD mode, and in the non-skip Merge mode and / or the non-skip MMVD mode, the CIIP flag and / or intra-frame mode of the CIIP mode of adjacent neighboring blocks and / or non-adjacent neighboring blocks are inherited.
[0838] 11. A method according to any of clauses 6 to 10, wherein in Merge mode and / or Skip MMVD mode, the CIIP flag is inherited.
[0839] 12. The method of clause 11, wherein the intra mode is signaled when the CIIP flag is true and multiple intra modes are allowed in the CIIP mode.
[0840] 13. A method according to any one of clauses 6 to 12, wherein the CIIP flag and / or intra-frame mode of the CIIP mode of the adjacent neighboring blocks and / or non-adjacent neighboring blocks encoded and decoded in Merge mode and / or MMVD mode is inherited by the current block.
[0841] 14. The method according to any one of clauses 6 to 13, further comprising:
[0842] Disable the CIIP mode for skip mode.
[0843] 15. The method according to any one of clauses 6 to 13, further comprising:
[0844] Compare the information of two Merge candidates,
[0845] Wherein, the CIIP flag of the CIIP mode and / or the intra-frame mode are not used in the comparison of the information of the two Merge candidates.
[0846] 16. The method according to any one of clauses 6 to 13, further comprising:
[0847] Compare the information of two Merge candidates,
[0848] The CIIP flag of the CIIP mode and / or the intra-frame mode are used in the comparison of the information of the two Merge candidates.
[0849] 17. A video processing method, comprising:
[0850] During conversion between a current block in video data and a bitstream representation of the current block, determining a type of a selected Merge candidate for the current block; and
[0851] determining the suitability of combined inter-intra prediction (CIIP) for the current block according to the type of the selected Merge candidate,
[0852] The current block is encoded and decoded in Merge mode.
[0853] 18. The method of clause 17, wherein the CIIP is disabled when the selected Merge candidate for the current block is at least one of a pairwise Merge candidate, a combined bidirectional Merge candidate, a zero-motion Merge candidate, or a virtual or artificial Merge candidate.
[0854] 19. The method according to clause 17 or 18, wherein when a pairwise Merge candidate or one of the candidates involved in the combined bidirectional Merge candidate adopts the CIIP mode, the CIIP mode is enabled for the pairwise Merge candidate or the combined bidirectional Merge candidate.
[0855] 20. The method of clause 19, wherein the intra-mode of the involved CIIP mode candidate is inherited.
[0856] 21. A method according to clause 19, wherein the intra-frame mode of the involved CIIP mode is signaled for the paired Merge candidate or the combined bidirectional Merge candidate.
[0857] 22. The method according to clause 17 or 18, wherein when both candidates involved in a pairwise Merge candidate or a combined bidirectional Merge candidate adopt the CIIP mode, the CIIP mode is enabled for the pairwise Merge candidate or the combined bidirectional Merge candidate.
[0858] 23. A method according to clause 22, wherein the intra-mode of one of the two involved candidates is inherited.
[0859] 24. The method of clause 22, wherein the intra-mode of the involved CIIP mode is derived from the intra-modes of the two involved candidates and is used for the paired Merge candidate or the combined bidirectional Merge candidate.
[0860] 25. The method of clause 22, wherein the intra-mode of the involved CIIP mode is signaled for the paired Merge candidate or the combined bidirectional Merge candidate.
[0861] 26. A video processing apparatus comprising a processor configured to implement the method of any one of clauses 1 to 25.
[0862] 27. The device of clause 26, wherein the device is a video encoder.
[0863] 28. The device of clause 26, wherein the device is a video decoder.
[0864] 29. A computer-readable recording medium having recorded therein a program including codes, the program causing a processor to execute the method according to any one of clauses 1 to 25.
[0865] It should be understood that the disclosed techniques can be implemented in a video encoder or decoder to improve compression efficiency using hash-based motion estimation.
[0866] The disclosed and other solutions, examples, embodiments, modules and functional operations described herein may be implemented in digital electronic circuits or computer software, firmware or hardware, including the structures disclosed herein and their structural equivalents, or a combination of one or more. The disclosed embodiments and other embodiments may be implemented as one or more computer program products, i.e., one or more modules of computer program instructions encoded on a computer-readable medium for a data processing device to execute or control its operation. The computer-readable medium may be a machine-readable storage device, a machine-readable storage substrate, a storage device, a combination of substances that affect a machine-readable propagation signal, or one or more combinations thereof. The term "data processing device" includes all devices, apparatuses and machines for processing data, including, for example, a programmable processor, a computer or multiple processors or computers. In addition to hardware, a device may also include code that creates an execution environment for the computer program, for example, code that constitutes a processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more thereof. A propagated signal is an artificially generated signal, for example, a machine-generated electrical, optical or electromagnetic signal, which is generated to encode and decode information for transmission to a suitable receiver device.
[0867] A computer program (also referred to as a program, software, software application, script, or code) may be written in any form of programming language (including compiled or interpreted languages) and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A computer program does not necessarily correspond to a file in a file system. A program may be stored in a portion of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document), in a single file dedicated to the program, or in multiple coordinated files (e.g., files that store one or more modules, subroutines, or portions of code). A computer program may be deployed for execution on one or more computers that are located at one site or distributed across multiple sites and interconnected by a communications network.
[0868] The processes and logic flows described in this specification may be performed by one or more programmable processors executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows may also be performed by special purpose logic circuits, and the apparatus may also be implemented as special purpose logic circuits, such as FPGAs (field programmable gate arrays) or ASICs (application specific integrated circuits).
[0869] For example, processors suitable for executing computer programs include general and special purpose microprocessors, and one or more of any type of digital computer. Typically, the processor will receive instructions and data from a read-only memory or a random access memory or both. The basic elements of a computer are a processor that executes instructions and one or more storage devices that store instructions and data. Typically, a computer will also include one or more mass storage devices for storing data, such as magnetic disks, magneto-optical disks, or optical disks, or be operatively coupled to one or more mass storage devices to receive data from them or transfer data to one or more mass storage devices, or both. However, a computer does not necessarily have such a device. Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, for example, semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices; magnetic disks, such as internal hard disks or removable hard disks; magneto-optical disks; and CD ROM and DVD ROM disks. The processor and memory may be supplemented by, or incorporated into, dedicated logic circuits.
[0870] Although this patent document contains many details, they should not be interpreted as limitations on any subject matter or the scope of the claims, but rather as descriptions of features of specific embodiments of specific technologies. Certain features described in this patent document in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various functions described in the context of a single embodiment can also be implemented separately in multiple embodiments, or in any suitable subcombination. In addition, although the above-mentioned features may be described as working in certain combinations, or even initially required to be so, in some cases, one or more features in the claim combination can be removed from the combination, and the combination of claims can be directed to subcombinations or variations of subcombinations.
[0871] Likewise, although operations are described in a particular order in the drawings, this should not be understood as requiring that such operations be performed in the particular order or order shown, or that all illustrated operations be performed, in order to achieve the desired results. In addition, the separation of various system components in the embodiments described in this patent document should not be understood as requiring such separation in all embodiments.
[0872] Only a few implementations and examples are described, and other implementations, enhancements, and variations can be made based on what is described and illustrated in this patent document.
Claims
1. A video processing method, comprising: During a conversion between a current block in video data and a bitstream of the video data, making a first determination whether a first codec mode is applicable to the current block, wherein the first codec mode is a skip mode; making a second determination whether a second codec mode is applicable to the current block based on the applicability of the first codec mode, wherein in the second codec mode, a prediction signal in the current block is generated based on at least a weighted average of an intra prediction signal and an inter prediction signal of the current block; and performing the converting based on the first determination and the second determination, The method further comprises: comparing first information of two candidates to determine whether to add at least one of the two candidates to a candidate list constructed for the current block; wherein the first information of the two candidates does not include second information related to the second encoding and decoding mode, and The second information related to the second coding mode includes at least one of the following: a flag of the second coding mode, or an intra-frame mode used in the second coding mode.
2. The method according to claim 1, wherein: The converting includes decoding the current block from the bitstream.
3. The method according to claim 1, wherein: The converting includes encoding the current block into the bitstream.
4. The method according to claim 1, wherein: If the first codec mode is applicable to the current block, the second codec mode is disabled.
5. The method according to claim 1, wherein: The two candidates include two spatial domain Merge candidates.
6. The method according to claim 1, wherein: The two candidates include the spatial Merge candidate in the candidate list and a candidate from the history-based motion vector prediction table.
7. The method according to claim 1, wherein: The two candidates include a spatial domain Merge candidate and a temporal domain Merge candidate.
8. The method according to claim 1, wherein: Whether the second coding mode is applicable to the current block is also based on the type of the Merge candidate selected for the current block.
9. The method according to claim 1, wherein: Information related to the second coding mode is stored together with motion information in a history-based motion vector prediction table, and the history-based motion vector prediction table is used to construct a candidate list for a block in the video data.
10. An apparatus for processing video data, comprising a processor and a non-transitory memory having instructions thereon, wherein the instructions, when executed by the processor, cause the processor to: During a conversion between a current block in video data and a bitstream of the video data, making a first determination whether a first codec mode is applicable to the current block, wherein the first codec mode is a skip mode; A second determination is made as to whether a second coding mode is applicable to the current block based on the applicability of the first coding mode, wherein: In the second coding mode, a prediction signal in the current block is generated based on at least a weighted average of an intra prediction signal and an inter prediction signal of the current block; as well as performing the converting based on the first determination and the second determination, The instructions, when executed by the processor, further cause the processor to: compare first information of two candidates to determine whether to add at least one of the two candidates to a candidate list constructed for the current block; wherein the first information of the two candidates does not include second information related to the second encoding and decoding mode, and The second information related to the second coding mode includes at least one of the following: a flag of the second coding mode, or an intra-frame mode used in the second coding mode.
11. The device according to claim 10, wherein: If the first codec mode is applicable to the current block, the second codec mode is disabled.
12. The device according to claim 10, wherein: The two candidates include two spatial domain Merge candidates.
13. The device according to claim 10, wherein: The two candidates include the spatial Merge candidate in the candidate list and a candidate from the history-based motion vector prediction table.
14. The device according to claim 10, wherein: The two candidates include a spatial domain Merge candidate and a temporal domain Merge candidate.
15. A non-transitory computer-readable storage medium storing instructions that cause a processor to: During a conversion between a current block in video data and a bitstream of the video data, making a first determination whether a first codec mode is applicable to the current block, wherein the first codec mode is a skip mode; A second determination is made as to whether a second coding mode is applicable to the current block based on the applicability of the first coding mode, wherein: In the second coding mode, a prediction signal in the current block is generated based on at least a weighted average of an intra prediction signal and an inter prediction signal of the current block; as well as performing the converting based on the first determination and the second determination, The instructions further cause the processor to: compare first information of two candidates to determine whether to add at least one of the two candidates to a candidate list constructed for the current block; wherein the first information of the two candidates does not include second information related to the second encoding and decoding mode, and The second information related to the second coding mode includes at least one of the following: a flag of the second coding mode, or an intra-frame mode used in the second coding mode.
16. A method for storing a bit stream of a video, comprising: During generation of a bitstream of video data from a current block of video data, making a first determination whether a first codec mode is applicable to the current block, wherein the first codec mode is a skip mode; making a second determination whether a second codec mode is applicable to the current block based on the applicability of the first codec mode, wherein in the second codec mode, a prediction signal for the current block is generated based on at least a weighted average of an intra prediction signal and an inter prediction signal for the current block; generating the bitstream based on the first determination and the second determination; and storing the bitstream in a non-transitory computer-readable storage medium, The method further comprises: comparing first information of two candidates to determine whether to add at least one of the two candidates to a candidate list constructed for the current block; wherein the first information of the two candidates does not include second information related to the second encoding and decoding mode, and The second information related to the second coding mode includes at least one of the following: a flag of the second coding mode, or an intra-frame mode used in the second coding mode.
17. A video processing device, comprising a processor, wherein the processor is configured to implement the method according to any one of claims 2-3 and 8-9.
18. The device of claim 17, wherein the device is a video encoder.
19. The device of claim 17, wherein the device is a video decoder.
20. A computer-readable recording medium having a program including codes recorded therein, the program causing a processor to execute the method according to any one of claims 2 to 9.
Citation Information
Patent Citations
Method of intra picture block copy for screen content and video coding
CN107079161A
Method and apparatus of inter prediction using average motion vector for video coding
CN108353184A
Block flipping and skip mode in intra block copy prediction
JP2018088715A
Block vector coding for intra block copy in video coding
WO2015106121A1
Intra-prediction method and apparatus in image coding system
WO2017209328A1
Cited By
Harmonization between different video process mode
US12425578B2
