Adapting the selection of the most probable mode candidate according to the block shape
By constructing the most likely mode list based on block shapes and optimizing the sorting and selection of intra prediction modes, the problem of low decoding efficiency of intra prediction modes in the existing technology is solved, and the video encoding and decoding performance is improved.
Patent Information
- Application Number
- CN201980074900.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-11-14
- Filing Date
- 2019-11-07
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2039-11-07
AI Technical Summary
Existing video coding technology fails to fully utilize block shape characteristics in intra prediction mode decoding, resulting in poor coding efficiency and decoding performance.
By constructing a most probable mode (MPM) list based on block shape, the sorting and selection of intra prediction modes are optimized to increase the probability of candidate modes with lower indexes, thereby improving encoding and decoding performance.
It improves the compression efficiency and decoding performance of video encoding, reduces the complexity of encoding and decoding, and achieves shorter code length and better decoding performance.
Smart Images

Figure CN113016181B_ABST
Abstract
Description
Technical Field
[0001] At least one embodiment of the present invention generally relates to a method or apparatus for video encoding or decoding, and more particularly, to a method or apparatus for providing efficient video compression in which selection of one or more most probable modes (MPMs) is adapted according to block shape. Background Art
[0002] In order to achieve high compression efficiency, image and video coding schemes usually use prediction and transform to exploit spatial and temporal redundancy in video content. Typically, intra-frame or inter-frame prediction is used to exploit intra-frame or inter-frame correlation, and then the difference between the original block and the predicted block, which is usually represented as a prediction error or prediction residual, is transformed, quantized, and entropy decoded. To reconstruct the video, the compressed data is decoded by the inverse process corresponding to entropy decoding, quantization, transform, and prediction.
[0003] The latest additions to video compression technology include various industry standards, versions of reference software and / or documents, such as the Joint Exploration Model (JEM) and later VTM (Versatile Video Coding (VVC) Test Model) developed by the JVET (Joint Video Exploration Team) group. The purpose of these additions is to further improve the existing HEVC (High Efficiency Video Coding) standard. Summary of the invention
[0004] The shortcomings and deficiencies of the prior art are addressed and solved by one or more aspects described herein.
[0005] According to an embodiment, a method for video encoding is provided, comprising: obtaining a most probable mode (MPM) list including several intra prediction mode candidates of a current block according to a shape of the current block; and encoding the current block based on the most probable mode list.
[0006] According to another embodiment, a method for video decoding is provided, comprising: obtaining a most probable mode (MPM) list including several intra prediction mode candidates for a current block according to a shape of the current block; and decoding the current block based on the most probable mode list.
[0007] According to another embodiment, a device for video decoding is presented, which includes one or more processors, wherein the one or more processors are configured to: obtain a most probable mode (MPM) list, the MPM list including several intra-frame prediction mode candidates of the current block according to the shape of the current block; and decode the current block based on the most probable mode list.
[0008] According to another embodiment, a device for video encoding is presented, which includes one or more processors, wherein the one or more processors are configured to: obtain a most probable mode (MPM) list, the MPM list including several intra-frame prediction mode candidates of the current block based on the shape of the current block; and encode the current block based on the most probable mode list.
[0009] According to another embodiment, a signal including an encoded video is formed by performing the following steps: obtaining a most probable mode (MPM) list, the MPM list including several intra-frame prediction mode candidates for the current block according to the shape of the current block; encoding the current block based on the most probable mode list; and forming a bitstream including the encoded current block. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1A shows the intra prediction direction in VTM; Figure 1B The upper and left reference positions for deriving the MPM list in the VTM are shown.
[0011] Figure 2 Another example of deriving an MPM list using an upper reference position and a left reference position is shown.
[0012] Figure 3 The relative frequencies of the predicted modes for a target with height=4 and width=32 are shown.
[0013] Figure 4 The relative frequencies of the predicted modes for a target with height=32 and width=4 are shown.
[0014] Figure 5 The process when the target luminance block is a square (width=height) according to an embodiment is shown.
[0015] Figure 6 The process is shown when the target luminance block is flat (width>height) according to an embodiment.
[0016] Figure 7 The process when the target luminance block is tall (width<height) according to an embodiment is shown.
[0017] Figure 8 A block diagram of an embodiment of a video encoder is shown.
[0018] Fig. 9 A block diagram of an embodiment of a video decoder is shown.
[0019] Fig.10 A block diagram of a system is shown in which aspects of the present embodiments may be implemented. DETAILED DESCRIPTION
[0020] The present application proposes intra-prediction mode decoding, for example, the intra-prediction mode decoding used in the Versatile Video Coding (VVC) VTM 2.0.1 codec (see "Description of Core Experiment 3 (CE3): Intra Prediction and Mode Decoding", G. Vander Auwera, J. Heo, and A. Filippov, JVET-K1023, 11th JVET Meeting, Ljubljana, Slovenia, July 2018). At the JVET meeting held in Macau in October 2018, a most probable mode (MPM) list of six prediction modes was adopted instead of three modes (JVET-L0222, see "CE3 6.6.1: Simple 6-MPM list construction with truncated binary decoding for non-MPM signaling", A. M. Kotra et al., JVET-L0222, 12th JVET Meeting, Macau, China, October 2018), which had been proposed earlier from the HEVC / H.265 standard.
[0021] However, these six modes are not derived using the prediction modes of all causal neighbors (left, top, bottom left, top right, and top left) and some default modes such as PLANAR and DC, as was adopted earlier in the Joint Exploration Model (JEM) (see "Neighbor-based Intra-frame Most Probable Mode List Derivation", V. Seregin, X. Zhao, A. Aea, M. Karczewicz. JVET-C0055, JVET Conference, May 2016, Geneva, Switzerland). Instead, the newly proposed MPM list construction is derived only from the modes of the left and top neighboring blocks and some default modes such as PLANAR, DC, pure vertical (mode 50), and horizontal mode (mode 18). The order of these prediction modes is important because truncated unary codes are used to signal the candidate prediction modes in the list. In this application, we propose to construct and adapt the order of modes in the MPM set according to the block shape.
[0022] The proposed embodiment aims to improve intra-frame prediction mode decoding. Below, intra-frame prediction mode decoding improvements are described for the luminance component in the VTM 2.0.1 codec. However, the present embodiments are not limited to the VTM 2.0.1 codec, on the contrary, they can be applied to other codecs. When the block is rectangular, we give a preference to the left or top adjacent block, depending on whether the block is flat or high, respectively. When the prediction modes of the left and top adjacent blocks, referred to as leftMode and aboveMode, are not equal, if the block is flat (high) in addition to leftMode, aboveMode, plane and DC, we include the adjacent mode of leftMode (aboveMode) in the MPM set. In addition, if the block is flat (high), we also place leftMode (aboveMode) first. Similarly, in the default mode, if the block is flat (high), we include the adjacent mode of HOR_IDX (VER_IDX). In doing so, our purpose is to increase the probability of finding the best candidate mode with a lower index, which leads to a shorter code and therefore better decoding performance.
[0023] In VVC VTM 2.0.1, the encoding of frames of video sequences is based on a quadtree (QT) or multi-type tree (MTT) block partitioning structure. The frame is divided into square coding tree units (CTUs), which can be partitioned into smaller coding units (CUs) based on rate-distortion criteria through quadtree or multi-type trees. Each CU is intra-predicted, that is, it is spatially predicted from a decoded causal neighbor CU, or each CU is inter-predicted, that is, it is temporally predicted from a decoded reference frame. In I-slices, all CUs are intra-predicted, while in P and B slices, CUs can be intra-predicted or inter-predicted.
[0024] For intra prediction, such as Figure 1A As shown, VTM 2.0.1 defines 67 prediction modes, including one plane mode (indexed as mode 0), one DC mode (indexed as mode 1), and 65 angle modes (indexed as modes 2-66). The angle mode is intended to simulate the directionality in different object structures, while the plane and DC modes are intended to simulate gradual and slowly changing intensity areas. Different prediction modes can be used to test the rate-distortion performance of the target block, and the best mode is signaled to the decoder.
[0025] To minimize the signaling bits required for the prediction mode of luma blocks, VTM 2.0.1 uses the concept of the most probable mode (MPM) used in the HEVC / H.265 standard. The idea is to build a list of three most probable prediction modes using the prediction modes of the left and top neighboring blocks and some default modes like plane, DC and vertical (VER_IDX) modes. If the prediction mode of the target block belongs to this list, a flag called mpmFlag is set to "1" and the index of the candidate mode in the MPM list is encoded using a variable length code. Otherwise, mpmFlag is set to "0" and six bits are used to perform fixed length decoding (FLC) on the index of the prediction mode in the remaining set of 64 modes. At the JVET meeting held in Macau in October 2018, it was agreed to use an MPM list consisting of six modes instead of three modes (see JVET-L0222). If the prediction mode of the target block belongs to the MPM list, mpmFlag is set to "1" and the index of the mode in the MPM list is then encoded using a variable length code. Otherwise, mpmFlag is set to '0' and the index of the prediction mode in the remaining set of 61 modes is encoded using a truncated binary code of 5 or 6 bits.
[0026] The purpose of the proposed embodiment is to improve the construction of the MPM list. The order of patterns in the MPM set has implications for the decoding performance, since the indices of matching candidate patterns are variable length decoded. In order to have higher decoding performance, it makes sense to sort the patterns in a way that causes the most likely MPM patterns to have lower indices than less likely MPM patterns. In this disclosure, we propose to sort the patterns according to the shape of the target block. Before we present our approach, we will first describe the MPMs used in VTM 2.0.1 and the contributions adopted for the 6 MPMs in JVET-L0222.
[0027] Intra-prediction mode coding in VTM 2.0.1
[0028] The VTM 2.0.1 codec specifies an MPM list consisting of three different modes, which are constructed from the prediction modes of the intra-coded CUs at the top and left of the current CU, planar mode (index = 0, also called PLANAR_IDX), DC mode (index = 1, also called DC_IDX), and direct vertical mode (index = 50, also called VER_IDX). The top and left CUs are located at the upper left edge of the target CU and Figure 1B Shown in.
[0029] Table 1 shows how to derive the MPM list in VTM 2.0.1 according to the prediction modes of the left and top blocks. Here, L represents the prediction mode of the left CU (also called leftMode), and A represents the prediction mode of the top CU (also called aboveMode).
[0030] Table 1: MPM exports in VTM 2.0.1
[0031]
[0032] If the prediction mode of the current block is equal to one of these three modes, this is indicated by setting mpmFlag to 1 and then encoding the candidate mode from the MPM list using a simple variable length coding scheme shown in Table 2.
[0033] Table 2: MPM encoding in VTM 2.0.1
[0034] Candidate Binarization MPM[0] 0 MPM[1] 10 MPM[2] 11
[0035] If the prediction mode is not equal to any of the modes in the MPM list, mpmFlag is set to 0, and a 6-bit fixed length code is used to indicate the mode selected from the remaining 64 modes.
[0036] Intra-frame prediction mode coding in JVET-L0222
[0037] In the JVET meeting held in Macau in October 2018, the proposal from JVET-L0222 to use six MPMs was adopted. Here, the MPM list is constructed from the prediction modes of the intra-coded CUs at the top and left of the current CU and some default modes. Figure 2 As shown, the top and left CUs are located at the right and bottom of the target block, respectively, rather than at the upper left corner. The default modes are planar mode, DC mode, direct vertical mode VER_IDX (index=50), and direct horizontal mode HOR_IDX (index=18).
[0038] In JVET-L0222, the MPM list is constructed as follows, where "!" is the complement operator. If L is 0, !L is 1 (DC_IDX). Otherwise (i.e., L>0), !L=0 (PLANAR_IDX):
[0039] L ≡ prediction mode of the left CU (a value in the range [0-66])
[0040] A ≡ prediction mode of the upper CU (a value in the range [0-66])
[0041] Offset = NUM_LUMA_MODES - 5 (= 62)
[0042] mod=offset+3(=65)
[0043] initialization:
[0044] MPM[0] = L;
[0045] MPM[1] = !L
[0046] MPM[2] = VER_IDX
[0047] MPM[3]=HOR_IDX
[0048] MPM[4] = VER_IDX - 4
[0049] MPM[5] = VER_IDX + 4
[0050] If L = A
[0051] If L>DC_IDX
[0052] MPM[0] = L;
[0053] MPM[1]=PLANAR_IDX
[0054] MPM[2]=DC_IDX
[0055] MPM[3]=((L+offset)%mod)+2
[0056] MPM[4]=((L-1)%mod)+2
[0057] MPM[5]=((L+offset-1)%mod)+2
[0058] otherwise,
[0059] Use the initialized value.
[0060] Otherwise (i.e., if L ≠ A)
[0061] If L>DC_IDX and A>DC_IDX
[0062] MPM[0] = L;
[0063] MPM[1]=A
[0064] MPM[2] = PLANAR_IDX
[0065] MPM[3]=DC_IDX
[0066] If L and A are not adjacent, then MPM[4] = ((max(L, A) + offset) % mod) + 2
[0067] Otherwise MPM[4] = ((max(L, A) + offset-1) % mod) + 2,
[0068] If L and A are not adjacent, then MPM[5] = ((max(L, A)-1)%mod)+2
[0069] Otherwise MPM[5] = ((max(L, A)-0)%mod) + 2
[0070] Otherwise, if L+A≥2 (i.e. only one of L and A is DC or planar)
[0071] MPM[0] = L;
[0072] MPM[1]=A
[0073] MPM[2] = !(min(L, A))
[0074] MPM[3]=((max(L,A)+offset)%mod)+2
[0075] MPM[4]=((max(L,A)-1)%mod)+2
[0076] MPM[5]=((max(L,A)+offset-1)%mod)+2
[0077] Otherwise (i.e. one of L and A is flat and the other is DC)
[0078] Use the initialized value.
[0079] Observe that when L is an angle (i.e. 2≤L≤66)
[0080] If L>2, ((L+offset)%mod)+2=L-1,
[0081] Otherwise, ((L+offset)%mod)+2=66,
[0082] If L>3, ((L+offset-1)%mod)+2=L-2,
[0083] If L=3, ((L+offset-1)%mod)+2=66,
[0084] If L = 2, ((L + offset - 1) % mod) + 2 = 65,
[0085] If L<66, ((L-1)%mod)+2=L+1,
[0086] Otherwise, ((L-1)%mod)+2=2,
[0087] If L<65, ((L-0)%mod)+2=L+2,
[0088] If L = 65, ((L-0)% mod) + 2 = 2,
[0089] If L = 66, ((L-0)% mod) + 2 = 3,
[0090] Therefore, using ring adjacency on the range [2-66] (i.e., 2 and 66 are adjacent), we can equivalently write:
[0091] ((L+offset)%mod)+2≡L-1
[0092] ((L+offset-1)%mod)+2≡L-2
[0093] ((L-1)%mod)+2≡L+1
[0094] ((L-0)%mod)+2≡L+2
[0095] Using these equivalence relations, we can show the MPM list derivation for different cases as shown in Table 3.
[0096] Table 3: MPM guide in JVET-L0222
[0097]
[0098] If the prediction mode of the current block is equal to one of these six MPM modes, this is indicated by setting mpmFlag to 1 and then encoding the candidate mode from the MPM set using the variable length coding scheme shown in Table 4.
[0099] Table 4: MPM encoding in JVET-L0222
[0100]
[0101]
[0102] Proposed MPM list generation
[0103] As shown in Table 4, truncated unary decoding of MPM modes assumes that MPM modes with lower indices are more likely than MPM modes with higher indices. In general, the prediction modes of the left and top CUs are correlated with the current block prediction mode. If the current block is not square, it has been experimentally shown that one prediction mode is more correlated than the other. In general, if the block is flat, i.e., if its width is greater than its height, the prediction mode of the left block is more correlated than the prediction mode of the top block. Similarly, if the block is tall, i.e., its height is longer than its width, the prediction mode of the top block is more correlated than the prediction mode of the left block. This can be based on Figure 2 The left CU and the top CU in the block are explained by the positions of the left CU and the top CU relative to the upper left corner of the target block. Another observation is that when the block is flat, the horizontal mode HOR_IDX is more likely than the vertical mode VER_IDX. Similarly, when the block is tall, the vertical mode VER_IDX is more likely than the horizontal mode HOR_IDX. This can be seen in Figure 3 and Figure 4 As can be seen in , it shows the relative frequencies of different prediction modes for blocks of size 4x32 and 32x4.
[0104] Another point to note is that since NUM_LUMA_MODES is equal to 67 (i.e., the total number of prediction modes for luma target blocks is 67), the values of the parameters "offset" and "mod" are equal to 62 and 65, respectively. Calculating the neighboring modes (L-1, L+1, etc.) using the remainder operator of 65 is not very hardware efficient. As done in HEVC with 35 prediction modes, we can use offset=61 and mod=64. Finding the remainder of the division with 64 can be achieved using a bitwise AND operation with 63 (0x 3F).
[0105] The calculation of neighboring modes can be implementation dependent. For a general formula applicable to all modes in the range [2-66], the use of offset and mod is required. However, the use is only needed for modes 2 and 66. For the remaining modes, the neighboring modes can be simply calculated as plus 1 and minus 1. If we need neighbors at ±2, the formula is only needed for modes 2, 3, 65, and 66.
[0106] When offset is 61 and mod is 64, it makes 65 the left neighbor of mode 2. Similarly, 3 becomes the right neighbor of mode 66. This neighbor is good considering that modes 2 and 66 are collinear (but point in opposite directions). On the other hand, when offset is 62 and mod is 65, as used in JVET-L0222, the left neighbor of mode 2 is 66, and the right neighbor of mode 66 is 2. Even in this case, we only need the formula for modes 2 and 66.
[0107] For specific cases, such as mode 2 and 66, we can use these values directly instead of using the formula to calculate.
[0108] Thus, one difference between JVET-L0222 and our method is in finding the neighbors of mode 2 and mode 66. In the former case, the left neighbor of mode 2 is 66, and the right neighbor of mode 66 is mode 2. In our case, the left neighbor of mode 2 is mode 65, and the right neighbor of mode 66 is mode 3 (imagine mode 2 and mode 66 as a direction). For all other cases, the neighbors at ±1 are the same for both methods. Similarly, in the case of neighbors at ±2, the difference is only in modes 2, 3, 65, and 66 (left modes 2, 3 and right modes 65 and 66), while for the rest of the cases, they are the same for both methods.
[0109] First method
[0110] Based on the above observations, we propose to modify the MPM list generation as follows: Note that DIA_IDX and VDIA_IDX represent diagonal (mode 34) and vertical diagonal (mode 66) modes, respectively.
[0111] L ≡ prediction mode of the left CU (a value in the range [0-66])
[0112] A ≡ prediction mode of the upper CU (a value in the range [0-66])
[0113] offset=NUM_LUMA_MODES–6(=61);
[0114] mod = offset + 3 (= 64);
[0115] initialization:
[0116] MPM[0] = L;
[0117] MPM[1] = !L
[0118] If width > height
[0119] MPM[2]=HOR_IDX
[0120] MPM[3] = VER_IDX
[0121] MPM[4] = HOR_IDX-1
[0122] MPM[5]=HOR_IDX+1
[0123] Otherwise, if width < height
[0124] MPM[2] = VER_IDX
[0125] MPM[3]=HOR_IDX
[0126] MPM[4] = VER_IDX-1
[0127] MPM[5]=VER_IDX+1
[0128] otherwise
[0129] MPM[2] = VER_IDX
[0130] MPM[3]=HOR_IDX
[0131] MPM[4]=VDIA_IDX
[0132] MPM[5]=DIA_IDX
[0133] If L = A
[0134] If L>DC_IDX
[0135] MPM[0] = L;
[0136] MPM[1]=PLANAR_IDX
[0137] MPM[2]=DC_IDX
[0138] If L≥DIA_IDX, MPM[3]=HOR_IDX
[0139] Otherwise, MPM[3] = VER_IDX
[0140] MPM[4]=((L+offset)%mod)+2
[0141] MPM[5]=((L–1)%mod)+2
[0142] otherwise,
[0143] Use initialized values
[0144] Otherwise (i.e., if L ≠ A)
[0145] If L>DC_IDX and A>DC_IDX
[0146] If width < height
[0147] MPM[0] = A;
[0148] MPM[1]=L
[0149] otherwise
[0150] MPM[0]=L
[0151] MPM[1]=A
[0152] MPM[2] = PLANAR_IDX
[0153] MPM[3]=DC_IDX
[0154] If width > height
[0155] If L and A are not adjacent, then MPM[4]=((L+offset)%mod)+2,
[0156] Otherwise MPM[4] = ((L + offset - 1) % mod) + 2
[0157] If L and A are not adjacent, then MPM[5]=((L-1)%mod)+2,
[0158] Otherwise MPM[5]=((L-0)%mod)+2
[0159] Otherwise, if width < height
[0160] If L and A are not adjacent, then MPM[4] = ((A+offset)%mod)+2
[0161] Otherwise, MPM[4] = ((A + offset - 1) % mod) + 2
[0162] If L and A are not adjacent, then MPM[5] = ((A-1)% mod) + 2
[0163] Otherwise, MPM[5] = ((A-0)% mod) + 2
[0164] otherwise
[0165] If L and A are not adjacent, then MPM[4] = ((max(L,A)+offset)%mod)+2
[0166] Otherwise, MPM[4] = ((max(L,A)+offset-1)%mod)+2
[0167] If L and A are not adjacent, then MPM[5] = ((max(L,A)-1)%mod)+2
[0168] Otherwise MPM[5]=((max(L,A)-0)%mod)+2
[0169] Otherwise, if L+A≥2 (i.e. only one of L and A is DC or planar)
[0170] MPM[0] = L;
[0171] MPM[1]=A
[0172] MPM[2] = !(min(L,A))
[0173] If max(L,A)≥DIA_IDX, MPM[3]=HOR_IDX,
[0174] Otherwise MPM[3] = VER_IDX
[0175] MPM[4]=((max(L,A)+offset)%mod)+2
[0176] MPM[5]=((max(L,A)-1)%mod)+2
[0177] Otherwise (i.e. one of L and A is flat and the other is DC)
[0178] Use the initialized value.
[0179] Second method
[0180] In the second method, we combine the square and tall block cases in the above algorithm as follows:
[0181] initialization:
[0182] MPM[0] = L;
[0183] MPM[1] = !L
[0184] If width > height
[0185] MPM[2]=HOR_IDX
[0186] MPM[3] = VER_IDX
[0187] MPM[4] = HOR_IDX-1
[0188] MPM[5]=HOR_IDX+1
[0189] otherwise
[0190] MPM[2] = VER_IDX
[0191] MPM[3]=HOR_IDX
[0192] MPM[4] = VER_IDX-1
[0193] MPM[5]=VER_IDX+1
[0194] If L = A
[0195] If L>DC_IDX
[0196] MPM[0] = L;
[0197] MPM[1]=PLANAR_IDX
[0198] MPM[2]=DC_IDX
[0199] If L≥DIA_IDX, then MPM[3]=HOR_IDX
[0200] Otherwise, MPM[3] = VER_IDX
[0201] MPM[4]=((L+offset)%mod)+2
[0202] MPM[5]=((L–1)%mod)+2
[0203] otherwise,
[0204] Use initialized values
[0205] Otherwise (i.e. if L≠A)
[0206] If L>DC_IDX and A>DC_IDX
[0207] If WIDTH <HEIGHT
[0208] MPM[0] = A;
[0209] MPM[1]=L
[0210] otherwise
[0211] MPM[0]=L
[0212] MPM[1]=A
[0213] MPM[2] = PLANAR_IDX
[0214] MPM[3]=DC_IDX
[0215] If width > height
[0216] If L and A are not adjacent, then MPM[4] = ((L+offset)%mod)+2
[0217] Otherwise MPM[4] = ((L + offset - 1) % mod) + 2
[0218] If L and A are not adjacent, then MPM[5] = ((L-1)% mod) + 2
[0219] Otherwise MPM[5]=((L-0)%mod)+2
[0220] otherwise
[0221] If L and A are not adjacent, then MPM[4] = ((A+offset)%mod)+2
[0222] Otherwise MPM[4] = ((A + offset - 1) % mod) + 2
[0223] If L and A are not adjacent, then MPM[5] = ((A-1)% mod) + 2
[0224] Otherwise MPM[5] = ((A-0)%mod) + 2
[0225] Otherwise, if L+A≥2 (i.e. only one of L and A is DC or planar)
[0226] MPM[0] = L;
[0227] MPM[1]=A
[0228] MPM[2] = !(min(L,A))
[0229] If max(L,A)≥DIA_IDX, then MPM[3]=HOR_IDX,
[0230] Otherwise MPM[3] = VER_IDX
[0231] MPM[4]=((max(L,A)+offset)%mod)+2
[0232] MPM[5]=((max(L,A)-1)%mod)+2
[0233] Otherwise (i.e. one of L and A is flat and the other is DC)
[0234] Use the initialized value.
[0235] Since vertical prediction is more likely than horizontal prediction in natural images (which is the reason why the mode VER_IDX is included in the MPM list in the HEVC standard), we do not present the combination of the flat block case and the square block case to have another variation of the proposed method.
[0236] Note that in both methods, when L = A and L > DC_IDX, or when L ≠ A and L + A ≥ 2, we use the vertical mode (VER_IDX) or the horizontal mode (HOR_IDX) instead of the adjacent mode at L - 2 (or A - 2), and we place it at a lower position (index 3 compared to index 5), thus giving it a higher tendency. This part of the original algorithm can remain unchanged or alternatively be changed to:
[0237] If L=A and L>DC_IDX
[0238] MPM[0] = L;
[0239] MPM[1] = PLANAR_IDX
[0240] MPM[2] = DC_IDX
[0241] If L > DIA_IDX & WIDTH > HEIGHT, then MPM[3] = HOR_IDX,
[0242] If L < DIA_IDX & WIDTH < HEIGHT, then MPM[3] = VER_IDX,
[0243] Otherwise, MPM[3] = ((L + offset - 1) % mod) + 2
[0244] MPM[4] = ((L + offset) % mod) + 2
[0245] MPM[5] = ((L – 1) % mod) + 2
[0246] If L≠A and L+A≥2
[0247] MPM[0] = L;
[0248] MPM[1] = A
[0249] MPM[2] =!(min(L, A))
[0250] If max(L, A) > DIA_IDX & WIDTH > HEIGHT, then MPM[3] = HOR_IDX,
[0251] If max(L, A) < DIA_IDX & WIDTH < HEIGHT, then MPM[3] = VER_IDX
[0252] Otherwise, MPM[3] = ((max(L, A) + offset - 1) % mod) + 2
[0253] MPM[4]=((max(L,A)+offset)%mod)+2
[0254] MPM[5]=((max(L,A)-1)%mod)+2
[0255] We observe that in both methods, planar and DC modes are always present in the MPM list. A simple variation can also be made by removing planar and DC modes from the list when the left block prediction mode and the top block prediction mode are both angular and separated by more than 2. In this case, in addition to these modes, we can include the four neighbors of the two modes as follows:
[0256] If width > height
[0257] MPM[0]=L
[0258] MPM[1]=A
[0259] MPM[2]=((L+offset)%mod)+2
[0260] MPM[3]=((L-1)%mod)+2
[0261] MPM[4] = ((A + offset) % mod) + 2
[0262] MPM[5]=((A-1)%mod)+2
[0263] otherwise
[0264] MPM[0] = A;
[0265] MPM[1]=L
[0266] MPM[2] = ((A + offset) % mod) + 2
[0267] MPM[3]=((A-1)%mod)+2
[0268] MPM[4]=((L+offset)%mod)+2
[0269] MPM[5]=((L-1)%mod)+2
[0270] Below, we introduce several embodiments including the above proposed suggestions. In the embodiments, we assume that the VVCVTM 2.0.1 codec has 67 intra prediction modes.
[0271] Additional Example 1:
[0272] In this embodiment, the first method is used to derive the MPM list of the target luminance block. If the prediction mode of the target block belongs to this list, the mpmFlag is set, and the index of the candidate MPM mode equal to the prediction mode is encoded using the binarization in Table 4. Otherwise, as in JVET-L0222, the prediction mode is encoded using the truncated binary code. Figure 5-7 Flowcharts for the square (WIDTH = HEIGHT), flat block (WIDTH > HEIGHT), and tall block (WIDTH < HEIGHT) cases of this embodiment are shown respectively (this is self-evident). For simplicity, we do not show the exact formulas for neighbor mode derivation, but only use to represent the corresponding neighbors. The differences between these three flowcharts lie in boxes 106, 107, and 112 (denoted as 106-1, 107-1, and 112-1 respectively in Figure 5 ; denoted as 106-2, 107-2, and 112-2 respectively in Figure 6 ; denoted as 106-3, 107-3, and 112-3 respectively in Figure 7 ).
[0273] Additional Embodiment 2:
[0274] In this embodiment, the second method is used to derive the MPM list of the target luminance block. If the prediction mode of the target block belongs to this list, the mpmFlag is set, and the index of the candidate MPM mode equal to the prediction mode is encoded using the binarization in Table 4. Otherwise, as in JVET-L0222, the prediction mode is encoded using the truncated binary code.
[0275] Additional Embodiment 3:
[0276] In this embodiment, the MPM list is derived as in Embodiment 1, but instead of including the neighboring modes of the left block or the top block, it includes the modes that are at a distance from those modes. In the case where the difference between modes L and A is equal to 2, we use the mode at .
[0277] Additional Embodiment 4:
[0278] In this embodiment, the MPM list is derived as in Embodiment 2, but instead of including the neighboring modes of the left block or the top block, it includes the modes that are at a distance from those modes. In the case where the difference between modes L and A is equal to 2, we use the mode at .
[0279] Additional Embodiment 5:
[0280] The VTM software originally included 35 intra prediction modes as in HEVC. The number of modes was increased to 67 to support finer resolution directions, which is possible with larger block sizes. Remember that we can use a hybrid scheme to generate the MPM list depending on the block size. If, for example, the block size measured as the sum of height and width is small (e.g., height+width ≤ 32), then we can use The adjacent mode at (as in Example 3), otherwise we can use the adjacent mode (as in Example 1).
[0281] Additional Example 6:
[0282] In this embodiment, we follow any one of Embodiments 1 to 5. The option of using the proposed MPM derivation is signaled in the slice / tile header, indicating that all luma CUs in the slice / tile use the MPM derivation method.
[0283] Additional Example 7:
[0284] In this embodiment, we follow any one of Embodiments 1 to 5. The option of using the proposed MPM derivation is signaled in the picture parameter set (PPS), indicating that all luma CUs in the frame use the MPM derivation method.
[0285] Additional Example 8:
[0286] In this embodiment, we follow any one of Embodiments 1-5 and signal the option of using the proposed MPM derivation in the sequence parameter set (SPS), indicating that all luma CUs in the sequence use the MPM derivation method.
[0287] We implemented the proposed MPM list generation on the VTM2.0.1 codec with all All Intra (AI) configurations and one frame from each test sequence. The results are compared with those obtained with the method of JVET-L0222 for the same AI configuration with one frame from each test sequence. In the first experiment, we used the same "offset" and "mod" (offset=62, mod=65) values as used in JVET-L0222. The BD-Rate performance is shown in Table 5.
[0288] Table 5: BD rate performance of the proposed MPM derivation compared to the MPM derivation in JVET-L0222. Offset=62 and mod=65.
[0289]
[0290] In the second experiment, we used offset = 61 and mod = 64 as we use in our proposal. The BD rate performance is shown in Table 6.
[0291] Table 6: BD rate performance of the proposed MPM derivation compared to the MPM derivation in JVET-L0222. Offset=61 and mod=64.
[0292]
[0293] As we can see, at about the same complexity, the brightness BD rate of our proposal increases by about 0.06% over that of JVET-L0222.
[0294] Therefore, one advantage of the proposed embodiment is that it increases the probability that a more likely MPM mode has a lower index, resulting in better compression efficiency. In addition, since more likely modes have lower indices, the search for candidate prediction modes will take less time. Therefore, this will result in lower complexity at the encoder and decoder.
[0295] The present application describes a number of aspects, including tools, features, embodiments, models, methods, etc. Many of these aspects are described as having specificity, and at least in order to illustrate individual characteristics, are usually described in a manner that may sound limited. However, this is for the purpose of describing clearly, and does not limit the application or scope of those aspects. In fact, all different aspects can be combined and interchanged to provide other aspects. In addition, these aspects can also be combined and interchanged with the aspects described in earlier documents.
[0296] The aspects described and contemplated in this application can be implemented in many different forms. Figure 8 , 9 10 provide some embodiments, but other embodiments are contemplated and are Figure 8 , 9 The discussion of 10 does not limit the breadth of implementation. At least one aspect generally relates to video encoding and decoding, and at least one other aspect generally relates to transmitting a generated or encoded bitstream. These and other aspects can be implemented as methods, apparatus, a computer-readable storage medium having stored thereon instructions for encoding or decoding video data according to any of the methods described, and / or a computer-readable storage medium having stored thereon a bitstream generated according to any of the methods described.
[0297] In this application, the terms "reconstruction" and "decoding" are used interchangeably, the terms "pixel" and "sample" are used interchangeably, and the terms "image", "picture" and "frame" are used interchangeably. Usually, but not necessarily, the term "reconstruction" is used on the encoder side, while "decoding" is used on the decoder side.
[0298] Various methods are described herein, and each method includes one or more steps or actions for implementing the described method. Unless a specific order of steps or actions is required for proper operation of the method, the order and / or use of specific steps and / or actions may be modified or combined.
[0299] Various methods and other aspects described in this application can be used to modify modules, e.g. Figure 8 and Fig. 9 Intra prediction modules (1601, 260) of the video encoder 100 and decoder 200 shown in FIG. In addition, aspects of the present invention are not limited to VVC or HEVC, and may be applied to, for example, other standards and recommendations (whether pre-existing or developed in the future) and extensions of any such standards and recommendations (including VVC and HEVC). Unless otherwise specified or technically excluded, the aspects described in this application may be used alone or in combination.
[0300] Various numerical values are used in this application. The specific values are for illustrative purposes, and the described aspects are not limited to these specific values.
[0301] Figure 8 An encoder 100 is shown. Variations of the encoder 100 are contemplated, but for the sake of clarity, the encoder 100 is described below without describing all contemplated variations.
[0302] Before being encoded, the video sequence may be subjected to a pre-encoding process (1011), for example by applying a color transform to the input color picture (e.g., conversion from RGB 4:4:4 to YCbCr 4:2:0) or performing a remapping of the input picture components to obtain a signal distribution that is more resilient to compression (e.g., using histogram equalization of one of the color components). Metadata may be associated with the pre-processing and appended to the bitstream.
[0303] In encoder 100, as described below, pictures are encoded by encoder elements. The picture to be encoded is divided (1021) and processed in units such as CUs. Each unit is encoded using intra or inter mode. When the unit is encoded in intra mode, it performs intra prediction (1601). In inter mode, motion estimation (1751) and compensation (1701) are performed. The encoder decides (1051) which of intra mode or inter mode to use to encode the unit, and indicates the intra / inter decision by, for example, a prediction mode flag. For example, the prediction residual is calculated by subtracting (1101) the prediction block from the original image block.
[0304] The prediction residual is then transformed (1251) and quantized (1301). The quantized transform coefficients, along with motion vectors and other syntax elements, are entropy coded (1451) to output a bitstream. The encoder may skip the transform and apply quantization directly to the untransformed residual signal. The encoder may bypass the transform and quantization, i.e., directly decode the residual without applying a transform or quantization process.
[0305] The encoder decodes the coded block to provide a reference for further prediction. The quantized transform coefficients are dequantized (1401) and inverse transformed (1501) to decode the prediction residual. The decoded prediction residual and the prediction block are combined (1551) to reconstruct the image block. An in-loop filter (1651) is applied to the reconstructed picture to perform, for example, deblocking / SAO (sample adaptive offset) filtering to reduce coding artifacts. The filtered image is stored in a reference picture buffer (1801).
[0306] Fig. 9 A block diagram of a video decoder 200 is shown. In the decoder 200, a bitstream is decoded by decoder elements as described below. The video decoder 200 generally performs the same Figure 8 The encoding pass described in is a decoding pass that is the inverse of the encoding pass described in . The encoder 100 also typically performs video decoding as part of encoding the video data.
[0307] In particular, the input to the decoder includes a video bitstream, which may be generated by the video encoder 100. The bitstream is first entropy decoded (230) to obtain transform coefficients, motion vectors and other decoding information. Picture segmentation information indicates how the picture is segmented. The decoder can therefore divide (235) the picture according to the decoded picture segmentation information. The transform coefficients are dequantized (240) and inverse transformed (250) to decode the prediction residual. The decoded prediction residual is combined (255) with the prediction block to reconstruct the image block. The prediction block can be obtained (270) from intra-frame prediction (260) or motion compensated prediction (i.e., inter-frame prediction) (275). An in-loop filter (265) is applied to the reconstructed image. The filtered image is stored in a reference picture buffer (280).
[0308] The decoded picture may further undergo post-decoding processing (285), such as inverse color conversion (e.g., conversion from YCbCr 4:2:0 to RGB 4:4:4) or performing inverse remapping of the remapping process performed in the pre-encoding process (1011). The post-decoding process may use metadata derived in the pre-encoding process and signaled in the bitstream.
[0309] Fig.10 A block diagram of an example of a system in which various aspects and embodiments are implemented is shown. System 1000 can be implemented as a device including various components described below, and is configured to perform one or more of the various aspects described in this document. Examples of such devices include, but are not limited to, various electronic devices, such as personal computers, laptop computers, smart phones, tablet computers, digital multimedia set-top boxes, digital television receivers, personal video recording systems, connected household appliances and servers. The elements of system 1000 can be implemented individually or in combination in a single integrated circuit (IC), multiple ICs and / or discrete components. For example, in at least one embodiment, the processing of system 1000 and encoder / decoder elements are distributed across multiple ICs and / or discrete components. In various embodiments, system 1000 is coupled to one or more other systems or other electronic devices via, for example, a communication bus or by a dedicated input and / or output port communication. In various embodiments, system 1000 is configured to implement one or more of the aspects described in this document.
[0310] The system 1000 includes at least one processor 1010 configured to execute instructions loaded therein for implementing, for example, various aspects described in this document. The processor 1010 may include embedded memory, input-output interfaces, and various other circuits known in the art. The system 1000 includes at least one memory 1020 (e.g., a volatile memory device and / or a non-volatile memory device). The system 1000 includes a storage device 1040, which may include a non-volatile memory and / or a volatile memory, including but not limited to an electrically erasable programmable read-only memory (EEPROM), a read-only memory (ROM), a programmable read-only memory (PROM), a random access memory (RAM), a dynamic random access memory (DRAM), a static random access memory (SRAM), a flash memory, a magnetic disk drive, and / or an optical disk drive. As a non-limiting example, the storage device 1040 may include an internal storage device, an attached storage device (including a removable and non-removable storage device), and / or a network-accessible storage device.
[0311] The system 1000 includes an encoder / decoder module 1030, which is configured to, for example, process data to provide encoded video or decoded video, and the encoder / decoder module 1030 may include its own processor and memory. The encoder / decoder module 1030 represents a module (one or more) that may be included in a device to perform encoding and / or decoding functions. As is known, a device may include one or both of the encoding and decoding modules. In addition, the encoder / decoder module 1030 may be implemented as a separate element of the system 1000 or may be incorporated into the processor 1010 as a combination of hardware and software known to those skilled in the art.
[0312] Program code to be loaded onto the processor 1010 or the encoder / decoder 1030 to perform various aspects described in this document may be stored in the storage device 1040 and subsequently loaded onto the memory 1020 for execution by the processor 1010. According to various embodiments, one or more of the processor 1010, the memory 1020, the storage device 1040, and the encoder / decoder module 1030 may store one or more of the various items during the execution of the processes described in this document. These stored items may include, but are not limited to, input video, decoded video or portions of decoded video, bitstreams, matrices, variables, and intermediate or final results from the processing of equations, formulas, operations, and operational logic.
[0313] In some embodiments, memory within the processor 1010 and / or the encoder / decoder module 1030 is used to store instructions and to provide working memory that needs to be processed during encoding or decoding. However, in other embodiments, memory external to the processing device (e.g., the processing device may be the processor 1010 or the encoder / decoder module 1030) is used for one or more of these functions. The external memory may be memory 1020 and / or a storage device 1040, such as a dynamic volatile memory and / or a non-volatile flash memory. In several embodiments, the external non-volatile flash memory is used to store, for example, an operating system for a television. In at least one embodiment, fast external dynamic volatile memory such as RAM is used as working memory for video encoding and decoding operations, such as working memory for MPEG-2 (MPEG refers to Moving Picture Experts Group, MPEG-2 is also known as ISO / IEC 13818, and 13818-1 is also known as H.222, and 13818-2 is also known as H.262), HEVC (HEVC refers to High Efficiency Video Coding, also known as H.265 and MPEG-H Part 2), or VVC (Versatile Video Coding, a new standard developed by JVET, Joint Video Team Experts).
[0314] As shown in block 1130, input to the elements of system 1000 may be provided through various input devices. Such input devices include, but are not limited to, (i) a radio frequency (RF) portion that receives an RF signal transmitted over the air, for example, by a broadcaster, (ii) a composite (COMP) input terminal (or a set of COMP input terminals), (iii) a universal serial bus (USB) input terminal, and / or (iv) a high-definition multimedia interface (HDMI) input terminal. Fig.10 Other examples not shown include composite video.
[0315] In various embodiments, the input device of block 1130 has associated corresponding input processing elements known in the art. For example, the RF portion may be associated with elements suitable for the following necessary functions: (i) selecting a desired frequency (also referred to as selecting a signal, or band limiting a signal to a frequency band), (ii) down-converting the selected signal, (iii) again band-limiting to a narrower frequency band to select a signal frequency band that may be referred to as a channel in some embodiments, (iv) demodulating the down-converted and band-limited signal, (v) performing error correction, and (vi) demultiplexing to select a desired data packet stream. The RF portion of various embodiments includes one or more elements to perform these functions, such as a frequency selector, a signal selector, a band limiter, a channel selector, a filter, a down-converter, a demodulator, an error corrector, and a demultiplexer. The RF portion may include a tuner that performs various of these functions, including, for example, down-converting a received signal to a lower frequency (e.g., an intermediate frequency or near baseband frequency) or baseband. In a set-top box embodiment, the RF part and its relevant input processing element receive the RF signal sent by wired (for example, cable) medium, and filter to the desired frequency band again to perform frequency selection by filtering, down-conversion and filtering. Various embodiments rearrange the order of above-mentioned (and other) elements, remove some in these elements, and / or add other elements that perform similar or different functions. Adding element can include inserting element between existing element, for example inserting amplifier and analog-to-digital converter. In various embodiments, the RF part includes antenna.
[0316] In addition, the USB and / or HDMI terminals may include corresponding interface processors for connecting the system 1000 to other electronic devices via USB and / or HDMI connections. It should be understood that various aspects of input processing, such as Reed-Solomon error correction, may be implemented as needed, for example, in a separate input processing IC or processor 1010. Similarly, various aspects of USB or HDMI interface processing may be implemented as needed, either in a separate interface IC or in processor 1010. The demodulated, error corrected, and demultiplexed streams are provided to various processing elements (including, for example, processor 1010 and encoder / decoder 1030), which operate in conjunction with memory and storage elements to process the data streams as needed for presentation on output devices.
[0317] The various components of system 1000 may be disposed within an integrated housing and may interconnect and transmit data therebetween using a suitable connection arrangement, such as an internal bus including an inter-chip (I2C) bus, wiring, and printed circuit boards as known in the art.
[0318] The system 1000 includes a communication interface 1050 that enables communication with other devices via a communication channel 1060. The communication interface 1050 may include, but is not limited to, a transceiver configured to send and receive data through the communication channel 1060. The communication interface 1050 may include, but is not limited to, a modem or a network card, and the communication channel 1060 may be implemented, for example, within a wired and / or wireless medium.
[0319] In various embodiments, a wireless network, such as a Wi-Fi network such as IEEE 802.11 (IEEE refers to the Institute of Electrical and Electronics Engineers), is used to stream data or otherwise provide it to the system 1000. The Wi-Fi signals of these embodiments are received by a communication channel 1060 and a communication interface 1050 suitable for Wi-Fi communication. The communication channel 1060 of these embodiments is usually connected to an access point or a router, which provides access to an external network including the Internet to allow streaming applications and other over-the-top communications. Other embodiments use a set-top box to provide streaming data to the system 1000, which passes data through the HDMI connection of the input block 1130. Still other embodiments use the RF connection of the input block 1130 to provide streaming data to the system 1000. As described above, various embodiments provide data in a non-streaming manner. In addition, various embodiments use a wireless network other than Wi-Fi, such as a cellular network or a Bluetooth network.
[0320] The system 1000 can provide output signals to various output devices, including a display 1100, a speaker 1110, and other peripheral devices 1120. The display 1100 of various embodiments includes, for example, one or more of a touch screen display, an organic light emitting diode (OLED) display, a curved display, and / or a foldable display. The display 1100 can be used for a television, a tablet computer, a laptop computer, a cellular phone (mobile phone), or other devices. The display 1100 can also be integrated with other components (e.g., as in a smart phone), or applied separately (e.g., as an external monitor for a laptop computer). In each example of each embodiment, other peripheral devices 1120 include one or more of an independent digital video disk (or digital versatile disk) (DVR, two items), a disk player, a stereo system, and / or a lighting system. Various embodiments use one or more peripheral devices 1120 that provide functions based on the output of the system 1000. For example, a disk player performs the function of playing the output of the system 1000.
[0321] In various embodiments, control signals are transmitted between the system 1000 and the display 1100, speaker 1110, or other peripheral device 1120 using signaling such as AV.link, consumer electronics control (CEC), or other communication protocols, which enables device-to-device control with or without user intervention. Output devices can be communicatively coupled to the system 1000 via dedicated connections through corresponding interfaces 1070, 1080, and 1090. Alternatively, the output device can be connected to the system 1000 via the communication interface 1050 using the communication channel 1060. The display 1100 and the speaker 1110 can be integrated into a single unit in an electronic device (e.g., a television) along with other components of the system 1000. In various embodiments, the display interface 1070 includes a display driver, such as a timing controller (Tcon) chip.
[0322] For example, if the RF portion of input 1130 is part of a separate set-top box, the display 1100 and speaker 1110 may alternatively be separate from one or more of the other components. In various embodiments where the display 1100 and speaker 1110 are external components, the output signal may be provided via a dedicated output connection, including, for example, an HDMI port, a USB port, or a COMP output.
[0323] These embodiments may be implemented by computer software implemented by the processor 1010 or a combination of hardware and software. As a non-limiting example, the embodiments may be implemented by one or more integrated circuits. The memory 1020 may be of any type suitable for the technical environment and may be implemented using any appropriate data storage technology, such as, as a non-limiting example, optical memory devices, magnetic memory devices, semiconductor-based memory devices, fixed memory, and removable memory. The processor 1010 may be of any type suitable for the technical environment and may include, as a non-limiting example, one or more of a microprocessor, a general-purpose computer, a special-purpose computer, and a processor based on a multi-core architecture.
[0324] Various implementations involve decoding. As used in the present application, "decoding" may include, for example, all or part of a process performed on a received coded sequence to produce a final output suitable for display. In various embodiments, such a process includes one or more of the processes typically performed by a decoder, such as entropy decoding, inverse quantization, inverse transform, and differential decoding. In various embodiments, such a process also or alternatively includes a process performed by a decoder of the various implementations described in the present application.
[0325] As a further example, in one embodiment, "decoding" refers only to entropy decoding, in another embodiment, "decoding" refers only to differential decoding, and in another embodiment, "decoding" refers to a combination of entropy decoding and differential decoding. Whether the phrase "decoding process" is intended to refer specifically to a subset of operations or generally to a broader decoding process will be clear based on the context of the specific description and is believed to be well understood by those skilled in the art.
[0326] Various implementations involve encoding. In a manner similar to the above discussion of "decoding", "encoding" as used in this application may include, for example, all or part of a process performed on an input video sequence to produce an encoded bitstream. In various embodiments, such processes include one or more processes typically performed by an encoder, such as segmentation, differential encoding, transforms, quantization, and entropy encoding. In various embodiments, such processes also or alternatively include processes performed by an encoder of the various implementations described in this application.
[0327] As a further example, in one embodiment, "encoding" refers only to entropy encoding, in another embodiment, "encoding" refers only to differential encoding, and in another embodiment, "encoding" refers to a combination of differential encoding and entropy encoding. Whether the phrase "encoding process" is intended to refer specifically to a subset of operations or generally to a broader encoding process will become clear based on the context of the specific description and is believed to be well understood by those skilled in the art.
[0328] When a figure is presented as a flow chart, it should be understood that it also provides a block diagram of the corresponding apparatus. Similarly, when a figure is presented as a block diagram, it should be understood that it also provides a flow chart of the corresponding method / process.
[0329] Various embodiments relate to rate-distortion optimization. In particular, during the encoding process, a balance or trade-off between rate and distortion is usually considered, usually given a constraint on computational complexity. Rate-distortion optimization is usually formulated as minimizing a rate-distortion function, which is a weighted sum of rate and distortion. There are different methods to solve the rate-distortion optimization problem. For example, these methods can be based on extensive testing of all coding options, including all considered modes or decoding parameter values, and a complete evaluation of their decoding costs and the associated distortion of the reconstructed signal after decoding and decoding. Faster methods can also be used to save coding complexity, in particular, to calculate approximate distortion based on prediction or prediction residual signals rather than reconstructed signals. A mixture of these two methods can also be used, for example, by using approximate distortion only for some possible coding options and full distortion for other coding options. Other methods only evaluate a subset of possible coding options. More generally, many methods use any of a variety of techniques to perform optimization, but optimization is not necessarily a complete evaluation of both decoding costs and associated distortions.
[0330] The implementations and aspects described herein may be implemented in, for example, a method or process, a device, a software program, a data stream, or a signal. Even if discussed only in the context of a single form of implementation (e.g., discussed only as a method), the implementation of the features discussed may also be implemented in other forms (e.g., a device or program). For example, a device may be implemented with appropriate hardware, software, and firmware. The method may be implemented in, for example, a processor, which generally refers to a processing device, including, for example, a computer, a microprocessor, an integrated circuit, or a programmable logic device. The processor also includes a communication device, such as a computer, a cellular phone, a portable / personal digital assistant ("PDA"), and other devices that facilitate information communication between end users.
[0331] References to "one embodiment" or "an embodiment" or "an implementation" or "implementations" and other variations mean that a particular feature, structure, characteristic, etc. described in connection with the embodiment is included in at least one embodiment. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" or "in an implementation" or "in an implementation" and any other variations in various places throughout this document are not necessarily all referring to the same embodiment.
[0332] Additionally, the present application may refer to “determining” various information. Determining information may include, for example, one or more of estimating information, calculating information, predicting information, or retrieving information from a memory.
[0333] Furthermore, the present application may refer to "accessing" various information. Accessing information may include, for example, one or more of receiving information, retrieving information (e.g., from a memory), storing information, moving information, copying information, calculating information, determining information, predicting information, or estimating information.
[0334] Additionally, the present application may involve "receiving" various information. Like "accessing," receiving is intended to be a broad term. Receiving information may include, for example, one or more of accessing information or retrieving information (e.g., from a memory). Furthermore, during operations such as storing information, processing information, sending information, moving information, copying information, erasing information, calculating information, determining information, predicting information, or estimating information, "receiving" is generally involved in one way or another.
[0335] It should be understood that, for example, in the case of "A / B", "A and / or B", and "at least one of A and B", the use of any of the following " / ", "and / or", and "at least one of..." is intended to cover the selection of only the first listed option (A), or only the second listed option (B), or both options (A and B). As a further example, in the case of "A, B, and / or C" and "at least one of A, B, and C", such wording is intended to include the selection of only the first listed option (A), or only the second listed option (B), or only the third listed option (C), or only the first and second listed options (A and B), or only the first and third listed options (A and C), or only the second and third listed options (B and C), or all three options (A and B and C). This can be extended to many of the listed items, as will be apparent to one of ordinary skill in this and related arts.
[0336] As will be appreciated by those skilled in the art, implementations may generate various signals formatted to carry information that may be stored or transmitted, for example. The information may include, for example, instructions for executing a method, or data generated by one of the described implementations. For example, a signal may be formatted to carry a bitstream of the described embodiments. Such a signal may be formatted as, for example, an electromagnetic wave (e.g., using a radio frequency portion of a spectrum) or a baseband signal. Formatting may include, for example, encoding a data stream and modulating a carrier with the encoded data stream. The information carried by the signal may be, for example, analog or digital information. As is known, the signal may be transmitted via a variety of different wired or wireless links. The signal may be stored on a processor readable medium.
Claims
1. A method for video encoding, the method comprising: obtaining a list including a plurality of intra prediction mode candidates of the current block according to a shape of the current block, wherein when the current block is flat and the size of the current block is smaller than a threshold, a mode at a distance of +2 or -2 from the intra prediction mode of a left neighboring block is included in the list, and when the current block is tall and the size of the current block is smaller than the threshold, a mode at a distance of +2 or -2 from the intra prediction mode of a top neighboring block is included in the list; as well as The current block is encoded based on the list.
2. A method for video decoding, the method comprising: obtaining a list including a plurality of intra prediction mode candidates of the current block according to a shape of the current block, wherein when the current block is flat and the size of the current block is smaller than a threshold, a mode at a distance of +2 or -2 from the intra prediction mode of a left neighboring block is included in the list, and when the current block is tall and the size of the current block is smaller than the threshold, a mode at a distance of +2 or -2 from the intra prediction mode of a top neighboring block is included in the list; as well as The current block is decoded based on the list. 3 . The method according to claim 1 , wherein the intra prediction mode candidates in the list are sorted based on the shape of the current block.
4. The method according to claim 1 or 2, wherein when the current block is rectangular, a preference is given to the intra prediction mode of the left neighboring block or the top neighboring block in the list according to whether the current block is flat or tall, respectively.
5. The method of claim 1 or 2, wherein the list comprises one or more of the following: a prediction mode of a left neighboring block (leftMode), a prediction mode of an upper neighboring block (aboveMode), planar, and DC.
6. The method according to claim 1 or 2, wherein if the current block is flat or high, leftMode or aboveMode is placed first in the list, respectively. 7 . The method according to claim 1 , wherein if the current block is flat or tall, one or more neighboring patterns of HOR_IDX or VER_IDX, respectively, are included in the list.
8. The method according to claim 1 or 2, wherein whether a neighbor pattern at +2 or -2 is included in the list or whether a neighbor pattern is included in the list depends on the size of the current block.
9. The method of claim 1 or 2, wherein the size of the current block is measured as the sum of a height and a width of the current block. 10 . The method of claim 1 , wherein when there are 67 intra prediction modes, the neighboring mode is calculated by using a remainder operation with an offset set to 61 and a modulus set to 64.
11. An apparatus for video encoding, comprising one or more processors, wherein the one or more processors are configured to: obtaining a list including a plurality of intra prediction mode candidates of the current block according to a shape of the current block, wherein when the current block is flat and the size of the current block is smaller than a threshold, a mode at a distance of +2 or -2 from an intra prediction mode of a left neighboring block is included in the list, and when the current block is tall and the size of the current block is smaller than the threshold, a mode at a distance of +2 or -2 from an intra prediction mode of a top neighboring block is included in the list; and Based on the list, the current block is encoded.
12. An apparatus for video decoding, comprising one or more processors, wherein the one or more processors are configured to: obtaining a list including a plurality of intra prediction mode candidates of the current block according to a shape of the current block, wherein when the current block is flat and the size of the current block is smaller than a threshold, a mode at a distance of +2 or -2 from an intra prediction mode of a left neighboring block is included in the list, and when the current block is tall and the size of the current block is smaller than the threshold, a mode at a distance of +2 or -2 from an intra prediction mode of a top neighboring block is included in the list; and Based on the list, the current block is decoded. 13 . The apparatus according to claim 11 , wherein the intra prediction mode candidates in the list are ordered based on the shape of the current block.
14. The apparatus according to claim 11 or 12, wherein when the current block is rectangular, a preference is given to the intra prediction mode of the left neighboring block or the top neighboring block in the list according to whether the current block is flat or tall, respectively.
15. The device of claim 11 or 12, wherein the list comprises one or more of: a prediction mode of a left neighboring block (leftMode), a prediction mode of an upper neighboring block (aboveMode), planar, and DC.
16. The apparatus of claim 11 or 12, wherein if the current block is flat or tall, leftMode or aboveMode is placed first in the list, respectively. 17 . The apparatus of claim 11 , wherein if the current block is flat or tall, one or more neighboring patterns of HOR_IDX or VER_IDX, respectively, are included in the list.
18. The apparatus according to claim 11 or 12, wherein whether a neighbor pattern at +2 or -2 is included in the list or whether a neighbor pattern is included in the list depends on a size of the current block.
19. The apparatus of claim 11 or 12, wherein the size of the current block is measured as the sum of a height and a width of the current block. 20 . The apparatus of claim 11 , wherein when there are 67 intra prediction modes, the neighboring mode is calculated by using a remainder operation with an offset set to 61 and a modulus set to 64.
Citation Information
Patent Citations
Method and apparatus for encoding / decoding in-screen prediction mode
CN108605122A
Method and apparatus for most probable mode (MPM) reordering for intra prediction
EP3399754A1
Method for coding / decoding of intra prediction mode and apparatus thereof
KR1020130027975A
Neighbor based signaling of intra prediction modes
TW201740728A
Intra prediction and intra mode coding
US20160373742A1
