Video encoding and decoding method, code stream processing method, storage medium and electronic equipment
By generating an intra prediction mode list including DC mode, the generation of intra prediction modes is simplified, solving the problem of low video encoding and decoding efficiency caused by the complexity of intra prediction mode encoding in the existing technology, and achieving a more efficient video deal with.
Patent Information
- Application Number
- CN202410990452.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2019-08-02
- Filing Date
- 2020-01-06
- Publication Date
- 2024-09-24
AI Technical Summary
The existing intra prediction mode encoding method is complex, which affects the efficiency of video encoding and decoding.
By determining multiple candidate intra prediction modes for the current block, a most likely mode MPM list is generated, especially for the reference row with the reference row index 0, the second intra prediction mode in the MPM list contains the DC mode, simplifying the intra The process of generating prediction models.
It improves video encoding and decoding efficiency, simplifies the generation process of intra prediction mode, and improves processing efficiency.
Smart Images

Figure CN118694978A_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority under Section 119 of the U.S. Patent Act to U.S. Provisional Application No. 62 / 791,858 filed in the U.S. Patent and Trademark Office on January 13, 2019 and U.S. Application No. 16 / 529,941 filed in the U.S. Patent and Trademark Office on August 2, 2019, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present application relates to video coding and decoding technology, and more specifically, to a video coding and decoding method, a method for processing a bit stream, a storage medium and an electronic device. Background Art
[0004] ITU-T VCEG (Video Coding Experts Group of the International Telecommunication Union Telecommunication Standardization Sector) (Q6 / 16) and ISO / IEC MPEG (International Organization for Standardization / International Electrotechnical Commission Moving Picture Experts Group) (JTC 1 / SC 29 / WG 11) (Joint Technical Committee 1 / Subcommittee 29 / Working Group 11) released the H.265 / HEVC (High Efficiency Video Coding) standard in 2013 (version 1), 2014 (version 2), 2015 (version 3), and 2016 (version 4). In 2015, the two standard organizations jointly formed JVET (Joint Video Exploration Team) to explore the potential of developing the next video coding standard beyond HEVC. In October 2017, they released a joint call for proposals (CfP) on video compression with capabilities beyond HEVC. As of February 15, 2018, a total of 22 CfP responses were received for Standard Dynamic Range (SDR), 12 CfP responses for High Dynamic Range (HDR), and 12 CfP responses for 360-degree video categories. In April 2018, at the 122nd MPEG meeting / 10th JVET meeting, all CfP responses received were evaluated. As a result of this meeting, JVET officially launched the standardization process for the next generation of video coding beyond HEVC. The new standard was named Versatile Video Coding (VVC), and JVET was renamed the Joint Video Experts Group.
[0005] The intra prediction modes used in HEVC are as follows Figure 1 As shown. In HEVC, there are a total of 35 intra prediction modes, of which mode 10 is a horizontal mode, mode 26 is a vertical mode, and modes 18 and 34 are diagonal modes. The intra prediction mode is signaled by three most probable modes (MPMs) and 32 remaining modes.
[0006] To encode the intra mode, a most probable mode (MPM) list of size 3 is constructed based on the intra modes of neighboring blocks. This MPM list is called the MPM list or the main MPM list. If the intra mode is not a mode in the MPM list, a flag is signaled to indicate whether the intra mode belongs to the selected mode.
[0007] The example HEVC MPM list generation process is as follows:
[0008] If (leftIntraDir == aboveIntraDir && leftIntraDir > DC_IDX)
[0009] ○MPM[0] = leftIntraDir;
[0010] ○MPM[1]=((leftIntraDir+offset)%mod)+2;
[0011] ○MPM[2]=((leftIntraDir-1)%mod)+2;
[0012] Else if (leftIntraDir == aboveIntraDir)
[0013] ○MPM[0]=PLANAR_IDX;
[0014] ○MPM[1]=DC_IDX;
[0015] ○MPM[2] = VER_IDX;
[0016] Else if (leftIntraDir!=aboveIntraDir)
[0017] ○MPM[0] = leftIntraDir;
[0018] ○MPM[1] = aboveIntraDir;
[0019] ○If (leftIntraDir>0&&aboveIntraDir>0)
[0020] MPM[2] = PLANAR_IDX;
[0021] ○Else
[0022] ·MPM[2]=(leftIntraDir+aboveIntraDir)<2? VER_IDX:DC_IDX;
[0023] Here, leftIntraDir is used to indicate the mode of the left block, and aboveIntraDir is used to indicate the mode of the above block. If the left block or the above block is currently unavailable, leftIntraDir or aboveIntraDir will be DC_IDX. In addition, the variables "offset" and "mod" are constant values, set to 29 and 32 respectively.
[0024] However, in the existing MPM list generation method, the process of deriving the candidate intra prediction modes in the MPM list is relatively complicated, which may affect the encoding and decoding efficiency. Summary of the invention
[0025] In an embodiment of the present application, a video decoding method is provided. The method includes: determining multiple candidate intra-frame prediction modes corresponding to a current block based on a received video code stream; using multiple candidate intra-frame prediction modes, generating a most likely mode MPM list; wherein the MPM list is generated based on a reference line used for encoding the current block, and for a reference line with a reference line index of 0, the second intra-frame prediction mode in the MPM list includes a DC mode.
[0026] In an embodiment of the present application, a video encoding method is provided for generating a video code stream. The video encoding method includes: determining multiple candidate intra-frame prediction modes corresponding to a current block; using multiple candidate intra-frame prediction modes to generate a most likely mode MPM list; wherein the MPM list is generated based on a reference row used for encoding the current block, and for a reference row with a reference row index of 0, the second intra-frame prediction mode in the MPM list includes a DC mode.
[0027] In an embodiment of the present application, a non-volatile computer-readable storage medium is also provided, storing at least one instruction. When the at least one instruction is executed by at least one processor, the at least one processor executes the aforementioned video decoding method to decode the video bitstream, or executes the aforementioned video encoding method to generate a video bitstream.
[0028] In an embodiment of the present application, an electronic device is provided, comprising: a memory for storing computer-readable instructions; a processor for reading the computer-readable instructions and executing the aforementioned video encoding method and video decoding method according to the instructions of the computer-readable instructions.
[0029] In an embodiment of the present application, a method for processing a code stream is also provided, wherein the code stream is stored on a non-volatile computer-readable storage medium, and the code stream is decoded according to the above decoding method, or is generated according to the above encoding method.
[0030] Through the method, device and electronic device for obtaining intra-frame prediction mode in the embodiments of the present application, a simplified most probable mode (MPM) list generation scheme for zero lines and non-zero lines is provided, which can improve video encoding and decoding efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Further features, nature and various advantages of the subject matter disclosed in this application will become more apparent from the following detailed description and accompanying drawings, in which:
[0032] Figure 1 This is an example diagram of intra prediction mode in HEVC.
[0033] Figure 2 is an example diagram showing reference rows adjacent to a coding block unit.
[0034] Figure 3 This is an example diagram of the intra prediction mode in VVC.
[0035] Figure 4 is an example diagram of the locations of adjacent CUs.
[0036] Figure 5 FIG. 4 is an example diagram of dividing a 4×8 block and an 8×4 block in an intra sub-partitioning (ISP) coding mode.
[0037] Figure 6 FIG. 1 is an example diagram of division of all blocks except 4×8 blocks, 8×4 blocks, and 4×4 blocks in the ISP coding mode.
[0038] Figure 7 is a simplified block diagram of a communication system according to an embodiment.
[0039] Figure 8 is a schematic diagram of placement of a video encoder and a decoder in a streaming environment according to an embodiment.
[0040] Fig. 9 is a functional block diagram of a video decoder according to an embodiment.
[0041] Fig.10 is a functional block diagram of a video encoder according to an embodiment.
[0042] Fig.11 is a flowchart of an example method for signaling an intra-prediction mode used for encoding a current block in an encoded video stream according to an embodiment.
[0043] Fig.12 is a schematic diagram of a computer system according to an embodiment. DETAILED DESCRIPTION
[0044] People have proposed multi-line intra prediction to use more reference lines for intra prediction. The encoder decides and signals which reference line to use to generate the intra predictor. The signaling of the reference line index is before the intra prediction mode, and in the case of a non-zero reference line index, only the most likely mode is allowed to be signaled. Figure 2 In FIG. 4 , an example of 4 reference rows is depicted, where each reference row consists of six segments (i.e., segments A to F, together with the reference sample in the upper left). In addition, segments A and F are filled according to the samples closest to them in segments B and E, respectively.
[0045] In VVC, if Figure 3 As shown, there are a total of 95 intra prediction modes, of which mode 18 is a horizontal mode, mode 50 is a vertical mode, and modes 2, 34, and 66 are diagonal modes. Modes-1 to -14 and modes 67 to 80 are called wide angle intra prediction (WAIP) modes.
[0046] In VTM3.0, for both adjacent reference lines (also called zero reference lines) and non-adjacent reference lines (also called non-zero reference lines), their MPM list sizes are set equal to 6. For both adjacent reference lines and non-adjacent reference lines, the positions of the adjacent patterns used to derive their 6 MPM candidates are also the same, which is Figure 4 In the figure. Figure 4 In the example, block A indicates the left neighboring coding unit of the current coding unit, block B indicates the upper neighboring coding unit of the current coding unit, and variables candIntraPredModeA and candIntraPredModeB indicate the associated intra prediction modes of block A and block B, respectively. The initial values of candIntraPredModeA and candIntraPredModeB are set equal to INTRA_PLANAR. If block A (or block B) is marked as available, candIntraPredModeA (or candIntraPredModeB) is set equal to the actual intra prediction mode of block A (or block B).
[0047] The MPM candidate derivation process for adjacent reference lines and non-adjacent reference lines is different. For a zero reference line, if both adjacent modes are plane modes or DC modes, the default mode is used to build the MPM list. In the default mode, 2 modes are plane modes and DC modes, and the remaining 4 modes are angle modes, which can also be called angle default modes. For a non-zero reference line, if both adjacent modes are plane modes or DC modes, the 6 angle default modes are used to build the MPM list.
[0048] An example of the MPM list derivation process is shown below, where candModeList[x] (x=0, 1, 2, 3, 4, 5) represents 6 MPM candidates. In other words, candModeList[0] can represent the 0th MPM candidate, candModeList[1] can represent the 1st MPM candidate, candModeList[2] can represent the 2nd MPM candidate, candModeList[3] can represent the 3rd MPM candidate, candModeList[4] can represent the 4th MPM candidate, and candModeList[5] can represent the 5th MPM candidate. In the MPM list derivation process shown below, IntraLumaRefLineIdx[XCb][yCb] represents the reference line index of the block to be predicted, and IntraLumaRefLineIdx[XCb][yCb] can be 0, 1, or 3.
[0049] - If candIntraPredModeB is equal to candIntraPredModeA, and
[0050] If candIntraPredModeA is greater than INTRA_DC, candModeList[x] (x=0...5) is derived as follows:
[0051] - If IntraLumaRefLineIdx[xCb][yCb] is equal to 0, the following applies:
[0052] candModeList[0]=candIntraPredModeA
[0053] candModeList[1]=INTRA_PLANAR
[0054] candModeList[2] = INTRA_DC
[0055] candModeList[3]=2+((candIntraPredModeA+61)%64)
[0056] candModeList[4]=2+((candIntraPredModeA-1)%64)
[0057] candModeList[5]=2+((candIntraPredModeA+60)%64)
[0058] - Otherwise (IntraLumaRefLineIdx[xCb][yCb] is not equal to 0), the following applies:
[0059] candModeList[0]=candIntraPredModeA
[0060] candModeList[1]=2+((candIntraPredModeA+61)%64)
[0061] candModeList[2]=2+((candIntraPredModeA-1)%64)
[0062] candModeList[3]=2+((candIntraPredModeA+60)%64)
[0063] candModeList[4]=2+(candIntraPredModeA%64)
[0064] candModeList[5]=2+((candIntraPredModeA+59)%64)
[0065] - Otherwise, if candIntraPredModeB is not equal to candIntraPredModeA and candIntraPredModeA or candIntraPredModeB is greater than INTRA_DC, the following applies:
[0066] -The variables minAB and maxAB are derived as follows:
[0067] minAB=
[0068] candModeList[(candModeList[0]>candModeList[1])? 1:0]
[0069] maxAB=
[0070] candModeList[(candModeList[0]>candModeList[1])? 0:1]
[0071] - If both candIntraPredModeA and candIntraPredModeB are greater than INTRA_DC, then candModeList[x] for x=0 to 5 is derived as follows:
[0072] candModeList[0]=candIntraPredModeA
[0073] candModeList[1]=candIntraPredModeB
[0074] - If IntraLumaRefLineIdx[xCb][yCb] is equal to 0, the following applies:
[0075] candModeList[2]=INTRA_PLANAR
[0076] candModeList[3] = INTRA_DC
[0077] - If maxAB - minAB is in the range of 2 to 62 (inclusive), the following applies:
[0078] candModeList[4]=2+((maxAB+61)%64)
[0079] candModeList[5]=2+((maxAB-1)%64)
[0080] - Otherwise, the following applies:
[0081] candModeList[4]=2+((maxAB+60)%64)
[0082] candModeList[5]=2+((maxAB)%64)
[0083] - Otherwise (IntraLumaRefLineIdx[xCb][yCb] is not equal to 0), the following applies:
[0084] - If maxAB-minAB is equal to 1, the following applies:
[0085] candModeList[2]=2+((minAB+61)%64)
[0086] candModeList[3]=2+((maxAB-1)%64)
[0087] candModeList[4]=2+((minAB+60)%64)
[0088] candModeList[5]=2+(maxAB%64)
[0089] - Otherwise, if maxAB-minAB is equal to 2, the following applies:
[0090] candModeList[2]=2+((minAB-1)%64)
[0091] candModeList[3]=2+((minAB+61)%64)
[0092] candModeList[4]=2+((maxAB-1)%64)
[0093] candModeList[5]=2+((minAB+60)%64)
[0094] - Otherwise, if maxAB-minAB is greater than 61, the following applies:
[0095] candModeList[2]=2+((minAB-1)%64)
[0096] candModeList[3]=2+((maxAB+61)%64)
[0097] candModeList[4]=2+(minAB%64)
[0098] candModeList[5]=2+((maxAB+60)%64)
[0099] - Otherwise, the following applies:
[0100] candModeList[2]=2+((minAB+61)%64)
[0101] candModeList[3]=2+((minAB-1)%64)
[0102] candModeList[4]=2+((maxAB+61)%64)
[0103] candModeList[5]=2+((maxAB-1)%64)
[0104] - Otherwise (candIntraPredModeA or candIntraPredModeB is greater than INTRA_DC),
[0105] Then the derivation of candModeList[x] for x=0 to 5 is as follows:
[0106] - If IntraLumaRefLineIdx[xCb][yCb] is equal to 0, the following applies:
[0107] candModeList[0]=candIntraPredModeA
[0108] candModeList[1]=candIntraPredModeB
[0109] candModeList[2] = 1-minAB
[0110] candModeList[3]=2+((maxAB+61)%64)
[0111] candModeList[4]=2+((maxAB-1)%64)
[0112] candModeList[5]=2+((maxAB+60)%64)
[0113] - Otherwise (IntraLumaRefLineIdx[xCb][yCb] is not equal to 0), the following applies:
[0114] candModeList[0] = maxAB
[0115] candModeList[1]=2+((maxAB+61)%64)
[0116] candModeList[2]=2+((maxAB-1)%64)
[0117] candModeList[3]=2+((maxAB+60)%64)
[0118] candModeList[4]=2+(maxAB%64)
[0119] candModeList[5]=2+((maxAB+59)%64)
[0120] - Otherwise, the following applies:
[0121] - If IntraLumaRefLineIdx[xCb][yCb] is equal to 0, the following applies:
[0122] candModeList[0]=candIntraPredModeA
[0123] candModeList[1]=
[0124] (candModeList[0]==INTRA_PLANAR)? INTRA_DC:
[0125] INTRA_PLANAR
[0126] candModeList[2]=INTRA_ANGULAR50
[0127] candModeList[3]=INTRA_ANGULAR18
[0128] candModeList[4]=INTRA_ANGULAR46
[0129] candModeList[5]=INTRA_ANGULAR54
[0130] - Otherwise (IntraLumaRefLineIdx[xCb][yCb] is not equal to 0), the following applies:
[0131] candModeList[0]=INTRA_ANGULAR50
[0132] candModeList[1]=INTRA_ANGULAR18
[0133] candModeList[2]=INTRA_ANGULAR2
[0134] candModeList[3]=INTRA_ANGULAR34
[0135] candModeList[4]=INTRA_ANGULAR66
[0136] candModeList[5]=INTRA_ANGULAR26
[0137] In VTM4.0, the size of the MPM list is extended to 6. When intra_luma_mpm_flag is true, it indicates that the current mode belongs to the candidate mode in the MPM list. Consider the following Table 1:
[0138] Table 1:
[0139]
[0140]
[0141] Intra-sub-partitioning (ISP) coding mode divides the luma intra prediction block vertically or horizontally into 2 sub-partitions or 4 sub-partitions according to the block size, as shown in Table 2. Figure 5 and Figure 6 Two possible partitioning examples are shown. All sub-partitions satisfy the condition of having at least 16 samples.
[0142] Table 2: Number of subpartitions depending on block size
[0143] Block size Number of subpartitions 4×4 No division 4×8 and 8×4 2 All other cases 4
[0144] For each of these subpartitions, a residual signal can be generated by entropy decoding the coefficients sent by the encoder, then inverse quantizing and inverse transforming them. The subpartitions can then be intra-predicted, and finally, the corresponding reconstructed samples are obtained by adding the residual signal to the prediction signal. Thus, the reconstructed values of each subpartition will be used to generate the prediction values of the next subpartition, which will repeat the above process, and so on. All subpartitions can share the same intra mode.
[0145] Based on the intra-mode and partitioning utilized, two different types of processing order can be used, referred to as normal order and reverse order. In normal order, the first sub-partition to be processed is the partition containing the upper left sample of the CU, and then continues downwards in case of horizontal partitioning, or continues to the right in case of vertical partitioning. Therefore, the reference samples used to generate the sub-partition prediction signal are located only to the left and above each row. On the other hand, the reverse processing order either starts from the sub-partition containing the lower left sample of the CU and continues upwards, or starts from the sub-partition containing the upper right sample of the CU and continues to the left.
[0146] The ISP algorithm can be tested with intra modes that are part of the MPM list. For this reason, if a block uses ISP, its MPM flag can be inferred to be 1. Furthermore, if ISP is used for a block, the MPM list can be modified to exclude DC mode and to prioritize horizontal intra modes for ISP horizontal splits and vertical intra modes for ISP vertical splits.
[0147] Figure 7A simplified block diagram of a communication system (700) according to an embodiment of the present application is illustrated. The communication system (700) may include at least two terminals (710-720) interconnected via a network (750). For unidirectional data transmission, a first terminal (710) may encode video data at a local location for transmission to another terminal (720) via a network (750). A second terminal (720) may receive encoded video data from another terminal from the network (750), decode the encoded data, and display the recovered video data. Unidirectional data transmission may be common in media service applications, etc.
[0148] Figure 7 A second pair of terminals (730, 740) is illustrated for supporting bidirectional transmission of encoded video, which may occur, for example, during a video conference. For bidirectional data transmission, each of the terminals (730, 740) may encode video data collected at a local location for transmission to the other terminal via a network (750). Each of the terminals (730, 740) may also receive encoded video data transmitted by the other terminal, and may decode the encoded data and may display the recovered video data on a local display device.
[0149] exist Figure 7 In the embodiment of the present invention, the terminals (710-740) may be illustrated as servers, personal computers, and smart phones, but the principles disclosed in the present application may not be limited thereto. The embodiments disclosed in the present application are applicable to laptop computers, tablet computers, media players, and / or dedicated video conferencing equipment. The network (750) represents any number of networks that transmit encoded video data between the terminals (710-740), including, for example, wired and / or wireless communication networks. The communication network (750) may exchange data in circuit switching and / or packet switching channels. Representative networks include telecommunication networks, local area networks, wide area networks, and / or the Internet. For the purposes of the present application, unless explained below, the architecture and topology of the network (750) may be irrelevant to the operations disclosed in the present application.
[0150] As an example of the application of the subject matter disclosed in this application, Figure 8 The placement of the video encoder and video decoder in a streaming environment is shown. The subject matter disclosed in this application is equally applicable to other video-enabled applications, including, for example, video conferencing, digital TV, storing compressed video on digital media including CDs, DVDs, memory sticks, etc.
[0151] The streaming system may include an acquisition subsystem (813), which may include a video source (801) such as a digital camera, which is used to create, for example, an uncompressed video sample stream (802). The sample stream (802) is depicted as a thick line to emphasize that it has a high data volume compared to an encoded video stream, and the sample stream (802) can be processed by an encoder (803) coupled to the camera (801). The encoder (803) can include hardware, software, or a combination of hardware and software to implement or implement various aspects of the disclosed subject matter as described in more detail below. The encoded video stream (804) is depicted as a thin line to emphasize that it has a lower data volume compared to the sample stream (802), and the encoded video stream (804) can be stored on a streaming server (805) for future use. One or more streaming clients (806, 808) may access a streaming server (805) to retrieve a copy (807, 809) of an encoded video stream (804). The client (806) may include a video decoder (810). The video decoder (810) decodes the incoming copy (807) of the encoded video stream and produces an output video sample stream (811) that can be presented on a display (812) or other presentation device (not depicted). In some streaming systems, the video streams (804, 807, 809) may be encoded according to certain video encoding / compression standards. Examples of such standards include ITU-T Recommendation H.265. The video coding standard under development is informally referred to as Versatile Video Coding (VVC), and the subject matter disclosed in this application may be used in the context of the VVC standard.
[0152] Fig. 9 It may be a block diagram of a video decoder (810) according to an embodiment of the present application.
[0153] The receiver (910) may receive one or more coded video sequences to be decoded by the decoder (810); in the same or another embodiment, one coded video sequence is received at a time, wherein the decoding of each coded video sequence is independent of the other coded video sequences. The coded video sequence may be received from a channel (912), which may be a hardware / software link to a storage device storing the coded video data. The receiver (910) may receive the coded video data as well as other data, such as coded audio data and / or auxiliary data streams that may be forwarded to their respective consuming entities (not shown). The receiver (910) may separate the coded video sequence from the other data. To prevent network jitter, a buffer memory (915) may be coupled between the receiver (910) and the entropy decoder / parser (920) (hereinafter referred to as "parser"). When the receiver (910) receives data from a storage / forward device with sufficient bandwidth and controllability, or from an isochronous network, it may not be necessary to configure the buffer memory (915), or the buffer memory may be very small. For use on a best-effort traffic packet network such as the Internet, a buffer memory (915) may also be required, which may be relatively large and may have an adaptive size.
[0154] The video decoder (810) may include a parser (920) to reconstruct symbols (921) from an entropy coded video sequence. The types of symbols include information used to manage the operation of the decoder (810) and potentially include information used to control a display device such as a display (812) that is not part of the decoder but may be coupled to the decoder, such as Fig. 9As shown in . The control information for the display device may be a parameter set fragment (not shown) of Supplemental Enhancement Information (SEI message) or Video Usability Information (VUI). The parser (920) may parse / entropy decode the received coded video sequence. The coding of the coded video sequence may be performed according to a video coding technique or standard, and may follow various principles known to those skilled in the art, including variable length coding, Huffman coding, arithmetic coding with or without context sensitivity, and the like. The parser (920) may extract a subgroup parameter set of at least one subgroup of the subgroups of pixels in the video decoder from the coded video sequence based on at least one parameter corresponding to the group. The subgroup may include a Group of Pictures (GOP), a picture, a tile, a slice, a macroblock, a Coding Unit (CU), a block, a Transform Unit (TU), a Prediction Unit (PU), and the like. The entropy decoder / parser may also extract information from the encoded video sequence, such as transform coefficients, quantizer parameter (QP) values, motion vectors, and so on.
[0155] The parser (920) may perform entropy decoding / parsing operations on a video sequence received from the buffer (915) to create symbols (921). The parser (920) may receive encoded data and selectively decode a particular symbol (921). In addition, the parser (920) may determine whether to provide a particular symbol (921) to a motion compensation prediction unit (953), a scaler / inverse transform unit (951), an intra prediction unit (952), or a loop filter (956).
[0156] The reconstruction of the symbol (921) may involve a number of different units, depending on the type of coded video pictures or parts thereof (such as: inter- and intra-pictures, inter- and intra-blocks), and other factors. Which units are involved and how they are involved may be controlled by subgroup control information parsed by the parser (920) from the coded video sequence. For clarity, such subgroup control information flow between the parser (920) and the various units below is not described.
[0157] In addition to the functional blocks already mentioned, the decoder (810) can be conceptually subdivided into several functional units as described below. In a practical implementation running under commercial constraints, many of these units interact closely with each other and can be integrated with each other. However, for the purpose of describing the subject matter disclosed in this application, it is appropriate to conceptually subdivide into the functional units below.
[0158] The first unit is a sealer / inverse transform unit (951). The sealer / inverse transform unit (951) receives quantized transform coefficients as symbols (921) from the parser (920) and control information including which transform method to use, block size, quantization factor, quantization scaling matrix, etc. The sealer / inverse transform unit (951) may output a block including sample values, which may be input into an aggregator (955).
[0159] In some cases, the output samples of the scaler / inverse transform unit (951) may belong to an intra-coded block; that is, a block that does not use predictive information from a previously reconstructed picture, but may use predictive information from a previously reconstructed portion of the current picture. Such predictive information may be provided by an intra-prediction unit (952). In some cases, the intra-prediction unit (952) uses surrounding reconstructed information extracted from the current (partially reconstructed) picture (958) to generate a block of the same size and shape as the block being reconstructed. In some cases, the aggregator (955) adds the prediction information generated by the intra-prediction unit (952) to the output sample information provided by the scaler / inverse transform unit (951) on a per-sample basis.
[0160] In other cases, the output samples of the scaler / inverse transform unit (951) may belong to an inter-frame coded and potentially motion compensated block. In this case, the motion compensated prediction unit (953) may access the reference picture memory / buffer (957) to extract samples for prediction. After the extracted samples are motion compensated according to the symbols (921) associated with the block, these samples may be added to the output of the scaler / inverse transform unit (in this case referred to as residual samples or residual signals) by the aggregator (955) to generate output sample information. The motion compensated prediction unit's retrieval of predicted samples from addresses within the reference picture memory may be controlled by motion vectors, and the motion vectors are provided to the motion compensated prediction unit in the form of the symbols (921), for example, including X, Y and reference picture components. Motion compensation may also include interpolation of sample values extracted from the reference picture memory when using sub-sample accurate motion vectors, motion vector prediction mechanisms, and the like.
[0161] The output samples of the aggregator (955) may be processed by various loop filtering techniques in a loop filter unit (956). The video compression techniques may include in-loop filter techniques controlled by parameters included in the encoded video bitstream and available to the loop filter unit (956) as symbols (921) from the parser (920). However, in other embodiments, the video compression techniques may also be responsive to meta-information obtained during decoding of a previous (in decoding order) portion of an encoded picture or encoded video sequence, as well as to previously reconstructed and loop filtered sample values.
[0162] The output of the loop filter unit (956) may be a sample stream that may be output to a display device (812) and stored in a reference picture memory / buffer (957) for subsequent inter-picture prediction.
[0163] Once fully reconstructed, certain coded pictures may be used as reference pictures for future prediction. Once a coded picture is fully reconstructed, and the coded picture is identified as a reference picture (e.g., by the parser (920)), the current reference picture (956) may become part of the reference picture memory / buffer (957), and a new current picture memory may be reallocated before starting reconstruction of a subsequent coded picture.
[0164] The video decoder (810) may perform decoding operations according to a predetermined video compression technique, such as that described in ITU-T Recommendation H.265. The encoded video sequence may conform to the syntax specified by the video compression technique or standard used, in the sense that the encoded video sequence follows the syntax of the video compression technique or standard, as specified in the video compression technology document or standard and in particular the profiles therein. For compliance, the complexity of the encoded video sequence must be within the range defined by the hierarchy of the video compression technology or standard. In some cases, the hierarchy limits the maximum picture size, maximum frame rate, maximum reconstruction sampling rate (measured in, for example, mega samples per second), maximum reference picture size, etc. In some cases, the limits set by the hierarchy may be further defined by the Hypothetical Reference Decoder (HRD) specification and metadata of the HRD buffer management signaled in the encoded video sequence.
[0165] In an embodiment, the receiver (910) may receive additional (redundant) data along with the encoded video. The additional data may be part of the encoded video sequence. The additional data may be used by the video decoder (810) to properly decode the data and / or more accurately reconstruct the original video data. The additional data may be in the form of, for example, temporal, spatial or signal-to-noise ratio (SNR) enhancement layers, redundant slices, redundant pictures, forward error correction codes, etc.
[0166] Fig.10 is a block diagram of a video encoder (803) according to an embodiment disclosed in the present application.
[0167] The encoder (803) may receive video samples from a video source (801) (not a part of the encoder), which may capture video images to be encoded by the encoder (803).
[0168] The video source (801) may provide a source video sequence in the form of a digital video sample stream to be encoded by the encoder (803), wherein the digital video sample stream may have any suitable bit depth (e.g., 8-bit, 10-bit, 12-bit, ...), any color space (e.g., BT.601 Y CrCB, RGB, ...), and any suitable sampling structure (e.g., Y CrCb 4:2:0, Y CrCb 4:4:4). In a media service system, the video source (801) may be a storage device storing previously prepared videos. In a video conferencing system, the video source (801) may be a camera that captures local image information as a video sequence. The video data may be provided as a plurality of separate pictures that are given motion when viewed sequentially. The pictures themselves may be constructed as a spatial pixel array, wherein each pixel may include at least one sample depending on the sampling structure, color space, etc. used. The relationship between pixels and samples may be easily understood by those skilled in the art. The following description focuses on samples.
[0169] According to an embodiment, the encoder (803) may encode and compress pictures of a source video sequence into an encoded video sequence (1043) in real time or under any other time constraints required by the application. Implementing an appropriate encoding speed is a function of a controller (1050). The controller controls other functional units as described below and is functionally coupled to these units. For clarity, couplings are not shown in the figure. Parameters set by the controller may include rate control related parameters (picture skipping, quantizer, lambda value of rate-distortion optimization technology, etc.), picture size, group of pictures (GOP) layout, maximum motion vector search range, etc. Those skilled in the art may recognize other functions of the controller (1050) because these functions may involve a video encoder (803) optimized for a certain system design.
[0170] Some video encoders operate in what is readily recognizable to those skilled in the art as a "coding loop". As a simplified description, the coding loop may include an encoding portion of an encoder (1030) (hereinafter referred to as a "source encoder") (responsible for creating symbols based on the input picture to be encoded and the reference picture) and a (local) decoder (1033) embedded in the encoder (803). The decoder (1033) reconstructs the symbols to create sample data that the (remote) decoder would also create (because in the video compression techniques considered in the subject matter disclosed in this application, any compression between the symbols and the encoded video code stream is lossless). The reconstructed sample stream is input to a reference picture memory (1034). Since the decoding of the symbol stream produces bit-accurate results that are independent of the decoder location (local or remote), the contents of the reference picture buffer also correspond bit-accurately between the local encoder and the remote encoder. In other words, the reference picture samples "seen" by the prediction portion of the encoder are exactly the same sample values that the decoder will "see" when using prediction during decoding. This basic principle of reference picture synchronization (and the drift that occurs when synchronization cannot be maintained, such as due to channel errors) is also well known to those skilled in the art.
[0171] The operation of the "local" decoder (1033) can be combined with the above Fig. 9 The "remote" decoder (810) described in detail is the same. However, additional brief reference is made to Fig. 9 , when symbols are available and the entropy encoder (1045) and parser (920) are capable of losslessly encoding / decoding the symbols into an encoded video sequence, the entropy decoding portion of the decoder (810), including the channel (912), receiver (910), buffer (915) and parser (920), may not be fully implemented in the local decoder (1033).
[0172] At this point it can be observed that any decoder techniques other than parsing / entropy decoding present in the decoder must also be present in the corresponding encoder in substantially the same functional form. The description of encoder techniques can be simplified because encoder techniques are reciprocal to the decoder techniques described comprehensively. A more detailed description is only required in certain areas and is provided below.
[0173] As part of its operation, the source encoder (1030) may perform motion compensated predictive coding to predictively encode an input frame with reference to at least one previously encoded frame from a video sequence designated as a "reference frame." In this manner, the encoding engine (1032) encodes the differences between pixel blocks of an input frame and pixel blocks of a reference frame that may be selected as a prediction reference for the input frame.
[0174] The local video decoder (1033) may decode the encoded video data of a frame that may be designated as a reference frame based on the symbols created by the source encoder (1030). The operation of the encoding engine (1032) may be a lossy process. When the encoded video data may be decoded at the video decoder, the reconstructed video sequence may typically be a copy of the source video sequence with some errors. The local video decoder (1033) replicates the decoding process that may be performed by the video decoder on the reference frame and may cause the reconstructed reference frame to be stored in the reference picture cache / memory (1034). In this way, the encoder (803) may locally store a copy of the reconstructed reference frame that has common content (absent transmission errors) with the reconstructed reference frame that will be obtained by the remote video decoder.
[0175] The predictor (1035) may perform a prediction search for the encoding engine (1032). That is, for a new frame to be encoded, the predictor (1035) may search the reference picture memory (1034) for sample data (as candidate reference pixel blocks) or certain metadata, such as reference picture motion vectors, block shapes, etc., that may serve as appropriate prediction references for the new picture. The predictor (1035) may operate pixel-by-pixel based on sample blocks to find a suitable prediction reference. In some cases, based on the search results obtained by the predictor (1035), it may be determined that the input picture may have prediction references taken from a plurality of reference pictures stored in the reference picture memory (1034).
[0176] The controller (1050) may manage encoding operations of the source encoder (1030), including, for example, setting parameters and subgroup parameters for encoding video data.
[0177] The outputs of all the above functional units may be entropy encoded in an entropy encoder (1045). The entropy encoder performs lossless compression on the symbols generated by the various functional units according to techniques such as Huffman coding, variable length coding, arithmetic coding, etc., thereby converting the symbols into a coded video sequence.
[0178] The transmitter (1040) may buffer the encoded video sequence created by the entropy encoder (1045) in preparation for transmission over a communication channel (1060), which may be a hardware / software link to a storage device where the encoded video data will be stored. The transmitter (1040) may combine the encoded video data from the source encoder (1030) with other data to be transmitted, such as encoded audio data and / or ancillary data streams (source not shown).
[0179] The controller (1050) may manage the operation of the encoder (803). During encoding, the controller (1050) may assign a certain coded picture type to each coded picture, but this may affect the coding techniques that can be applied to the corresponding picture. For example, a picture may generally be assigned to any of the following frame types:
[0180] An intra picture (I picture) may be a picture that can be encoded and decoded without using any other frame in the sequence as a prediction source. Some video codecs allow different types of intra pictures, including, for example, Independent Decoder Refresh ("IDR") pictures. Those skilled in the art are aware of the variations of I pictures and their corresponding applications and features.
[0181] A predictive picture (P picture) may be a picture that can be encoded and decoded using intra prediction or inter prediction, which uses at most one motion vector and a reference index to predict sample values for each block.
[0182] Bidirectional predictive pictures (B pictures), which can be pictures that can be encoded and decoded using intra prediction or inter prediction, which uses up to two motion vectors and reference indices to predict the sample values of each block. Similarly, multiple predictive pictures can use more than two reference pictures and associated metadata for reconstruction of a single block.
[0183] The source picture may typically be spatially subdivided into blocks of samples (e.g., blocks of 4×4, 8×8, 4×8, or 16×16 samples), and coded block by block. These blocks may be predictively coded with reference to other (already coded) blocks, which are determined according to the coding allocation applied to the block's corresponding picture. For example, blocks of an I picture may be non-predictively coded, or the blocks may be predictively coded (spatial prediction or intra prediction) with reference to already coded blocks of the same picture. Blocks of pixels of a P picture may be predictively coded by spatial prediction with reference to one previously coded reference picture or by temporal prediction. Blocks of a B picture may be predictively coded by spatial prediction with reference to one or two previously coded reference pictures or by temporal prediction.
[0184] The video encoder (803) may perform encoding operations according to a predetermined video encoding technique or standard, such as ITU-T H.265 Recommendation. In operation, the video encoder (803) may perform various compression operations, including predictive encoding operations that exploit temporal and spatial redundancy in an input video sequence. Thus, the encoded video data may conform to the syntax specified by the video encoding technique or standard used.
[0185] In an embodiment, the transmitter (1040) may transmit additional data when transmitting the encoded video. The source encoder (1030) may include such data as part of the encoded video sequence. The additional data may include other forms of redundant data such as temporal / spatial / SNR enhancement layers, redundant pictures and slices, SEI messages, VUI parameter set fragments, etc.
[0186] As mentioned above, in VTM3.0, the derivation process of MPM list candidates may be different for adjacent reference lines with ISP mode disabled, adjacent reference lines with ISP mode enabled, and non-adjacent reference lines. Therefore, the derivation process of MPM list candidates may be complicated in each case, without obvious benefits in terms of codec efficiency.
[0187] In an embodiment, the row index of the nearest reference row may be 0, and the nearest reference row may be referred to as a zero reference row or an adjacent reference row. Other rows may be referred to as non-zero reference rows or non-adjacent reference rows. In the description below, candModeList may represent an MPM list, RefLineIdx may represent a reference row index of a current block, and candIntraPredModeA and candIntraPredModeB may represent a left adjacent mode and an upper adjacent mode. If an adjacent mode is not a plane mode or a DC mode, or an adjacent mode generates prediction samples according to a given prediction direction, such as intra-frame prediction mode 2 to intra-frame prediction mode 66 defined in VVC Draft 2, the mode may be referred to as an angle mode. If a mode (such as in a plane mode or a DC mode) does not indicate a directional intra-frame prediction, the mode may be referred to as a non-angle mode. Each intra-frame prediction mode may be associated with a mode number, which may be referred to as an intra-frame prediction mode index. For example, the plane intra prediction mode, the DC intra prediction mode, the horizontal intra prediction mode, and the vertical intra prediction mode may be associated with mode numbers 0, 1, 18, and 50, respectively.
[0188] In an embodiment, the MPM index of the first candidate in the MPM list may be represented as 0, the MPM index of the second candidate may be represented as 1, and so on.
[0189] In an embodiment, the derivation of the variables minAB and maxAB may be as follows:
[0190] candModeList[0]=candIntraPredModeA
[0191] candModeList[1]=candIntraPredModeB
[0192] minAB=candModeList[(candModeList[0]>candModeList[1])? 1:0]
[0193] maxAB=candModeList[(candModeList[0]>candModeList[1])? 0:1]
[0194] In an embodiment, the variables offset and mod may be set according to either of the following two cases: offset==61, mod=64; offset=62, mod=65.
[0195] In an embodiment, the same MPM list construction process may be shared for adjacent reference lines with ISP mode disabled, adjacent reference lines with ISP mode enabled, and non-adjacent reference lines, and the order of candidates may be the same.
[0196] In an embodiment, planar mode and DC mode may always be included in the MPM list, and the number of derived angular intra prediction modes may be set equal to N. N may be a positive integer such as 1, 2, 3, 4, 5, or 6.
[0197] In an embodiment, after the reference line index is signaled, if the reference line index is a default value indicating to use a neighboring reference line, a syntax element related to the ISP may be signaled.
[0198] In one embodiment, after the syntax elements related to the ISP are signaled, the syntax elements related to the reference row index may be signaled if the value used when signaling the syntax elements related to the ISP indicates that the ISP mode is not used.
[0199] In another embodiment, all candidates in the MPM list may be used for the zero reference row to disable the ISP mode.
[0200] In another embodiment, all candidate modes except the DC mode in the MPM list can be used for the adjacent reference row in which the ISP mode is enabled.
[0201] In another embodiment, all candidate modes in the MPM list except the planar mode and the DC mode can be used for non-adjacent reference rows.
[0202] In another embodiment, the planar mode may always be inserted first into the MPM list with index 0.
[0203] In an embodiment, planar mode and DC mode may always be inserted first into the MPM list with indexes 0 and 1.
[0204] In another embodiment, the signaling of the MPM index may be context coded, and the context depends on whether the neighboring blocks can be coded by angular prediction mode.
[0205] In another embodiment, the signaling of the MPM index may be context coded and the context depends on the MPM index (and / or MPM flag) of the neighboring blocks.
[0206] In an embodiment, the signaling of the first K bins of the MPM index may be context coded, and the context depends on the MPM index of the neighboring block and the reference row index (and / or MPM flag). K may be a positive integer, such as 1 or 2.
[0207] In an embodiment, the first K bins of the MPM index are context encoded, and the context depends on the MPM index of the neighboring block, the ISP flag and the reference row index (and / or the MPM flag).
[0208] In another embodiment, the first K bins of the MPM index may be context encoded, while the other bins of the MPM index are bypass encoded.
[0209] In another embodiment, the neighboring blocks used here may be the same as the neighboring blocks used to generate the MPM list.
[0210] In one embodiment, when the signaled reference row index is zero, the first K bins (e.g., the first two bins) of the MPM index may be context encoded, and the context may depend on whether the ISP mode is enabled and / or the reference row index value of the current block.
[0211] In one embodiment, when the signaled reference row index is zero, the first K bins (e.g., the first two bins) of the MPM index may be context encoded, and the context may depend on the MPM index and reference row index (and / or MPM flag) of the neighboring block.
[0212] In another embodiment, for the first K bins of the MPM index, three contexts may be used. If both MPM flags of the neighboring block are true, the reference row index is 0, and the MPM index is equal to or less than Th, one context is used; otherwise, if only one of the MPM flags of the neighboring block is true, the reference row index is 0, and the MPM index is equal to or less than Th, a second context may be used. Otherwise, a third context may be used. Th may be a positive integer, such as 1, 2, or 3.
[0213] In another embodiment, when the signaled reference row index is 0 and the ISP of the current block is set equal to "false", for the second binary number of the MPM index, the second binary number of the MPM index can be context encoded. If both MPM flags of the neighboring block are true, the reference row index is equal to 0, and the MPM index is equal to 1 (or 0), then one context can be used; otherwise, if only one of the MPM flags of the neighboring block is true, the reference row index is equal to 0, and the MPM index is equal to 1 (or 0), then a second context can be used. Otherwise, a third context can be used.
[0214] In an embodiment, for adjacent reference rows and non-adjacent reference rows with the ISP flag equal to "true", if the difference in absolute pattern numbers between the left adjacent pattern and the upper adjacent pattern is greater than or equal to a given threshold, the MPM list candidate can be derived by using the same rule.
[0215] In an embodiment, the given threshold is 0, which means that regardless of the difference in pattern numbers between the left adjacent pattern and the top adjacent pattern, the same rule is used to derive the MPM list candidates.
[0216] In another embodiment, if the left adjacent pattern and the top adjacent pattern are not equal, the same rule may be used to derive the MPM list candidate regardless of the difference in pattern numbers between the left adjacent pattern and the top adjacent pattern.
[0217] In an embodiment, if the left-neighboring mode and the top-neighboring mode are both angle modes, but they are not equal, the same rule is used to derive the MPM list candidate regardless of the difference in mode numbers between the left-neighboring mode and the top-neighboring mode.
[0218] In one example, the six MPM candidates are derived as follows:
[0219] candModeList[0]=candIntraPredModeA
[0220] candModeList[1]=candIntraPredModeB
[0221] candModeList[2]=2+((minAB+offset)%mod)
[0222] candModeList[3]=2+((minAB-1)%mod)
[0223] candModeList[4]=2+((maxAB+offset)%mod)
[0224] candModeList[5]=2+((maxAB-1)%mod)
[0225] In another example, 6 MPM candidates are derived as follows:
[0226] candModeList[0]=candIntraPredModeA
[0227] candModeList[1]=candIntraPredModeB
[0228] candModeList[2]=2+((minAB+offset)%mod)
[0229] candModeList[3]=2+((maxAB-1)%mod)
[0230] candModeList[4]=2+((minAB-1)%mod)
[0231] candModeList[5]=2+((maxAB+offset)%mod)
[0232] In another example, 6 MPM candidates are derived as follows:
[0233] candModeList[0]=candIntraPredModeA
[0234] candModeList[1]=candIntraPredModeB
[0235] candModeList[2]=2+((maxAB+offset)%mod)
[0236] candModeList[3]=2+((maxAB-1)%mod)
[0237] candModeList[4]=2+((minAB+offset)%mod)
[0238] candModeList[5]=2+((minAB-1)%mod)
[0239] In another example, 6 MPM candidates are derived as follows:
[0240] candModeList[0]=candIntraPredModeA
[0241] candModeList[1]=candIntraPredModeB
[0242] candModeList[2]=2+((candIntraPredModeA+offset)%mod)
[0243] candModeList[3]=2+((candIntraPredModeA-1)%mod)
[0244] candModeList[4]=2+((candIntraPredModeB+offset)%mod)
[0245] candModeList[5]=2+((candIntraPredModeB-1)%mod)
[0246] In another embodiment, if at least one of the left-adjacent pattern and the top-adjacent pattern is an angle pattern, the same rule may be used to derive the MPM list candidate regardless of the difference in pattern numbers between the left-adjacent pattern and the top-adjacent pattern.
[0247] In an embodiment, when the left adjacent mode and the upper adjacent mode are both non-angle modes, the default mode is used to fill the MPM candidate list, and the default angle modes are the same for adjacent reference rows with an ISP flag equal to "false", adjacent reference rows with an ISP flag equal to "true", and non-adjacent reference rows.
[0248] In an embodiment, the default angle pattern may be {50, 18, 2, 34}.
[0249] In another embodiment, the default angle pattern may be {50, 18, 34, 66}.
[0250] Fig.11 is a flow chart of an example method 1100 for signaling an intra-frame prediction mode, wherein the intra-frame prediction mode is the mode used to encode a current block in an encoded video stream. In some implementations, Fig.11 At least one method block in may be performed by the decoder 810. In some implementations, Fig.11 At least one method block of may be performed by another device or a group of devices (such as the encoder 803) separate from the decoder 810 or including the decoder 810.
[0251] like Fig.11 As shown, method 1100 may include determining a plurality of candidate intra-prediction modes (block 1110 ).
[0252] like Fig.11 As further shown, the method 1100 may include generating a most probable mode (MPM) list using the plurality of candidate intra prediction modes (block 1120).
[0253] like Fig.11 As further shown, the method 1100 may include signaling a reference row index indicating a reference row from a plurality of reference rows used for encoding the current block, the plurality of reference rows including an adjacent reference row and a plurality of non-adjacent reference rows (block 1130).
[0254] like Fig.11 As further shown, the method 1100 may include signaling an intra-mode index indicating the intra-prediction mode (block 1140).
[0255] In an embodiment, the MPM list may be generated based on a reference row used for encoding the current block and whether an intra sub-partitioning (ISP) mode is enabled.
[0256] In an embodiment, based on the reference line used for encoding the current block being a neighboring reference line and the ISP mode being disabled, the MPM list may include all candidate intra prediction modes among the multiple candidate intra prediction modes.
[0257] In an embodiment, based on the reference line used for encoding the current block being an adjacent reference line and the ISP mode being enabled, the MPM list may include all candidate intra-frame prediction modes among the multiple candidate intra-frame prediction modes except the DC mode.
[0258] In an embodiment, based on that the reference row used for encoding the current block is one of multiple non-adjacent reference rows, the MPM list may include all candidate intra prediction modes among the multiple candidate intra prediction modes except the DC mode and the planar mode.
[0259] In an embodiment, the first intra prediction mode in the MPM list may be planar mode.
[0260] In an embodiment, the second intra prediction mode in the MPM list may be a DC mode.
[0261] In an embodiment, based on the reference row index indicating that the reference row used for encoding the current block is an adjacent reference row, the first two binary numbers of the intra-frame mode index are context encoded, wherein the context can be determined based on whether the ISP mode is enabled.
[0262] In an embodiment, based on the reference row index indicating that the reference row used for encoding the current block is an adjacent reference row, the first two binary digits of the intra mode index are context encoded, wherein the context can be determined based on the value of the reference row index.
[0263] In an embodiment, based on the reference row index indicating that the reference row used for encoding the current block is an adjacent reference row, the first two binary numbers of the intra-frame mode index are context encoded, wherein the context can be determined based on whether the ISP mode is enabled and the reference row index.
[0264] In an embodiment, based on the reference row index indicating that the reference row used for encoding the current block is an adjacent reference row, the first two binary numbers of the intra-frame mode index are context encoded, wherein the context can be determined based on the intra-frame mode index and the reference row index used to indicate the reference row used for encoding the adjacent block.
[0265] although Fig.11 An example block diagram of method 1100 is shown, but in some implementations, method 1100 may include Fig.11 Additional blocks in addition to, fewer than, different from, or arranged differently from those blocks depicted in the method 1100. Additionally or alternatively, two or more blocks in the blocks of the method 1100 may be executed in parallel.
[0266] In addition, the methods proposed in the present application may be implemented by a processing circuit (e.g., at least one processor or at least one integrated circuit). In one example, at least one processor executes a program stored in a non-volatile computer-readable storage medium to perform at least one of the methods proposed in the present application.
[0267] The techniques described above may be implemented as computer software using computer-readable instructions and physically stored in one or more computer-readable storage media, or may be implemented by one or more specially configured hardware processors. Fig.12 A computer system 1200 suitable for implementing certain embodiments of the presently disclosed subject matter is shown.
[0268] The computer software may be encoded using any suitable machine code or computer language, which may be subjected to assembly, compilation, linking or similar mechanisms to create code comprising instructions that may be executed directly or through interpretation, microcode execution, etc., by a computer central processing unit (CPU), graphics processing unit (GPU), etc.
[0269] The instructions may be executed on various types of computers or computer components, including, for example, personal computers, tablet computers, servers, smart phones, gaming devices, Internet of Things devices, etc.
[0270] Fig.12 The components for computer system 1200 shown in the example are exemplary in nature and are not intended to imply any limitation on the scope of use or functionality of computer software implementing embodiments of the present application. Nor should the configuration of components be interpreted as having any dependency or requirement on any one or combination of components shown in the exemplary embodiment of computer system 1200.
[0271] Computer system 1200 may include certain human-machine interface input devices. Such human-machine interface input devices may be responsive to input by one or more human users, for example, through tactile input (e.g., keystrokes, swipes, data glove movements), audio input (e.g., voice, taps), visual input (e.g., gestures), olfactory input (not depicted). Human-machine interface devices may also be used to capture certain media that may not be directly related to a person's conscious input, such as audio (e.g., speech, music, ambient sound), images (e.g., scanned images, photographic images obtained from a still image camera), and videos (e.g., two-dimensional video, three-dimensional video including stereoscopic video).
[0272] Input human interface devices may include one or more of the following (only one of each is depicted): keyboard 1201 , mouse 1202 , track pad 1203 , touch screen 1210 , data glove 1204 , joystick 1205 , microphone 1206 , scanner 1207 , camera 1208 .
[0273] The computer system 1200 may also include certain human-machine interface output devices. Such human-machine interface output devices may stimulate the senses of one or more human users through, for example, tactile output, sound, light, and smell / taste. Such human-machine interface output devices may include tactile output devices (e.g., tactile feedback of a touch screen 1210, data gloves 1204, or joystick 1205, but there may also be tactile feedback devices that do not serve as input devices), audio output devices (e.g., speakers 1209, headphones (not depicted)), visual output devices (e.g., screens 1210, including cathode ray tube (CRT) screens, liquid crystal display (LCD) screens, plasma screens, organic light emitting diode (OLED) screens, each with or without touch screen input capabilities, each with or without tactile feedback capabilities - some of which are capable of outputting two-dimensional visual output or output greater than three dimensions through, for example, stereographic output; virtual reality glasses (not depicted), holographic displays, and smoke boxes (not depicted)), and printers (not depicted).
[0274] The computer system 1200 may also include human-accessible storage devices and associated media for the storage devices, such as optical media, including CD / DVD ROM / RW 1220 with CD / DVD etc. media 1221, thumb drive 1222, removable hard drive or solid state drive 1223, legacy magnetic media such as tapes and floppy disks (not depicted), ROM / ASIC / PLD based specialized devices such as security protection devices (not depicted), and the like.
[0275] Those skilled in the art will also appreciate that the term "computer-readable storage medium" used in connection with the presently disclosed subject matter does not encompass transmission media, carrier waves, or other transient signals.
[0276] The computer system 1200 may also include an interface to one or more communication networks. The network may be, for example, wireless, wired, optical. The network may also be local, wide area, metropolitan, vehicle-mounted and industrial, real-time, delay-tolerant, and the like. Examples of networks include local area networks such as Ethernet, wireless LAN, cellular networks including global mobile communication systems (GSM), third generation (3G), fourth generation (4G), fifth generation (5G), long term evolution (LTE), etc., TV wired or wireless wide area digital networks including cable TV, satellite TV and terrestrial broadcast TV, vehicle-mounted networks and industrial networks including CAN buses, etc. Some networks usually require external network interface adapters attached to some universal data ports or peripheral buses (1249) (e.g., USB ports of computer system 1200); other networks are usually integrated into the core of computer system 1200 by attaching to the system bus as described below (e.g., integrated into a PC computer system via an Ethernet interface, or integrated into a smart phone computer system via a cellular network interface). By using any of these networks, computer system 1200 can communicate with other entities. Such communications may be one-way receive only (e.g. broadcast TV), one-way send only (e.g. a CAN bus connected to certain CAN bus devices), or bidirectional, such as connecting to other computer systems using a local area digital network or a wide area digital network. Certain protocols and protocol stacks may be used on each of the networks and network interfaces such as those described above.
[0277] The above-mentioned human-machine interface device, human-accessible storage device, and network interface may be attached to the core 1240 of the computer system 1200 .
[0278] The core 1240 may include one or more central processing units (CPUs) 1241, graphics processing units (GPUs) 1242, dedicated programmable processing units in the form of field programmable gate areas (FPGAs) 1243, hardware accelerators for certain tasks 1244, and the like. These devices, along with read-only memory (ROM) 1245, random-access memory (Random-access memory) 1246, and internal mass storage devices 1247 such as internal non-user accessible hard disk drives, solid-state drives (SSDs), etc., may be connected via a system bus 1248. In some computer systems, the system bus 1248 may be accessible in the form of one or more physical plugs to enable expansion by additional CPUs, GPUs, and the like. Peripheral devices may be attached to the core's system bus 1248 directly or via a peripheral bus 1249. Architectures for peripheral buses include peripheral component interconnects (PCI), USB, and the like.
[0279] The CPU 1241, GPU 1242, FPGA 1243, and accelerator 1244 may execute certain instructions, which in combination may constitute the above-mentioned computer code. The computer code may be stored in ROM 1245 or RAM 1246. Transitional data may also be stored in RAM 1246, while permanent data may be stored, for example, in an internal mass storage device 1247. Fast storage and retrieval of any memory device may be achieved by using a cache memory, which may be closely associated with one or more CPUs 1241, GPUs 1242, mass storage devices 1247, ROM 1245, RAM 1246, etc.
[0280] The computer readable storage medium may have computer codes for performing various computer-implemented operations. The media and computer codes may be media and computer codes designed and constructed specifically for the purpose of this application, or may be of a type well known and available to technicians in the computer software field.
[0281] By way of example and not limitation, a computer system having architecture 1200 and in particular core 1240 may provide functionality resulting from the execution of software embodied in one or more tangible computer-readable storage media by a processor (including a CPU, GPU, FPGA, accelerator, etc.). Such computer-readable storage media may be media associated with the user-accessible mass storage device introduced above and certain storage devices of the non-volatile nature of core 1240 (e.g., core internal mass storage device 1247 or ROM 1245). Software implementing various embodiments of the present application may be stored in such devices and executed by core 1240. Depending on specific needs, the computer-readable storage medium may include one or more memory devices or chips. The software may enable core 1240 and, in particular, the processor therein (including CPU, GPU, FPGA, etc.) to perform specific processes or specific parts of specific processes described herein, including defining data structures stored in RAM 1246 and modifying such data structures according to processes defined by the software. Additionally or alternatively, a computer system may provide functionality produced by logic hardwired or otherwise embodied in circuits (e.g., accelerator 1244) that may operate in place of or in conjunction with software to perform specific processes or specific portions of specific processes described herein. References to software may encompass logic, and vice versa, where appropriate. References to computer-readable storage media may encompass circuits (e.g., integrated circuits (ICs)) storing software for execution, circuits embodying logic for execution, or both, where appropriate. The present application encompasses any suitable combination of hardware and software.
[0282] Although the present application describes several exemplary embodiments, various modifications, permutations and combinations, and various alternative equivalents are possible within the scope of the present application. Therefore, it should be understood that within the spirit and scope of the application, those skilled in the art can design various systems and methods that are not explicitly shown or described herein but can embody the principles of the present application.
[0283] Abbreviations
[0284] HEVC: High Efficiency Video Coding
[0285] HDR: high dynamic range
[0286] SDR: standard dynamic range
[0287] VVC: Versatile Video Coding
[0288] JVET stands for Joint Video Exploration Team.
[0289] MPM: most probable mode
[0290] WAIP: Wide-Angle Intra Prediction, wide-angle intra prediction
[0291] CU: Coding Unit
[0292] PU: Prediction Unit
[0293] PDPC: Position Dependent Prediction Combination, position-dependent prediction combination
[0294] ISP: Intra Sub-Partitions, intra-frame sub-partitions
Claims
1. A video decoding method, characterized in that: The method comprises: Based on the received video code stream, determine multiple candidate intra-frame prediction modes corresponding to the current block; Generate a most probable mode (MPM) list using the multiple candidate intra prediction modes; The MPM list is generated based on the reference row used for encoding the current block, and for a reference row with a reference row index of 0, the second intra-frame prediction mode in the MPM list includes a DC mode.
2. The method according to claim 1, characterized in that Further including: Obtaining a reference row index for indicating a reference row used for encoding the current block among a plurality of reference rows, wherein the plurality of reference rows include an adjacent reference row and a plurality of non-adjacent reference rows; as well as After obtaining the reference row index, if the reference row index is a default value indicating the use of the neighboring reference row, a syntax element related to the intra-sub-partition ISP mode is obtained.
3. The method according to claim 2, characterized in that Based on the following three situations, the MPM list uses the same MPM list: Based on that the reference line used for encoding the current block is the adjacent reference line and the ISP mode is disabled; Based on that the reference line used for encoding the current block is the adjacent reference line and the ISP mode is enabled; as well as The reference row used for encoding based on the current block is a non-adjacent reference row among the multiple non-adjacent reference rows.
4. The method according to claim 2, characterized in that: Based on the reference row index indicating that the reference row used for encoding the current block is the adjacent reference row, the first binary number or the first two binary numbers of the intra-frame mode index are context encoded, wherein the context is determined based on whether the ISP mode is enabled.
5. The method according to claim 2, characterized in that: The reference row index of the adjacent reference row is 0, and the non-adjacent reference row refers to a non-zero reference row.
6. The method according to claim 2, characterized in that Based on the reference row index indicating that the reference row used for encoding the current block is the adjacent reference row, first two binary numbers of the intra-frame mode index are context encoded, wherein the context is determined based on the intra-frame mode index and a reference row index used to indicate the reference row used for encoding the adjacent block.
7. The method according to claim 2, characterized in that The first K bins of the MPM index are context encoded, and the remaining bins of the MPM index are bypass encoded.
8. A video encoding method for generating a video code stream, characterized in that: The method comprises: Determine multiple candidate intra prediction modes corresponding to the current block; Generate a most probable mode (MPM) list using the multiple candidate intra prediction modes; The MPM list is generated based on the reference row used for encoding the current block, and for a reference row with a reference row index of 0, the second intra-frame prediction mode in the MPM list includes a DC mode.
9. A non-volatile computer-readable storage medium storing at least one instruction, characterized in that: When the at least one instruction is executed by at least one processor, the at least one processor executes the method according to any one of claims 1 to 7 to decode the video stream, or executes the method according to claim 8 to generate a video stream.
10. An electronic device, characterized in that: include: A memory for storing computer-readable instructions; a processor for reading the computer-readable instructions and executing the method according to any one of claims 1 to 8 as instructed by the computer-readable instructions.
11. A method for processing a code stream, characterized in that: A code stream is stored on a non-volatile computer-readable storage medium, wherein the code stream is decoded according to the decoding method according to any one of claims 1 to 7, or is generated based on the encoding method according to claim 8.
