Method, apparatus, and computer program for multiple line intra prediction in video compression
Patent Information
- Application Number
- JP2024083751
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2019-01-04
- Filing Date
- 2024-05-23
- Publication Date
- 2025-02-20
- Estimated Expiration
- 2039-06-27
AI Technical Summary
Existing video encoding technologies face inefficiencies in multi-line intra prediction, including reliance on a single reference line, limited application to luma components, suboptimal mode settings for different reference lines, underutilization of pixel smoothing and change trends, lack of planes or DC modes, and inadequate utilization of line reference pixels for coding gain.
Implement a method and apparatus that utilize multiple reference lines for intra-prediction, set intra prediction modes for the zero reference line, signal a reference line index before the most probable mode flag, and adjust the length of the most probable mode list based on the reference line index, excluding planar and DC modes for non-zero lines.
Enhances coding efficiency by optimizing intra prediction modes and utilizing multiple reference lines, improving compression performance beyond traditional methods.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[Technical field]
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application is a joint venture of U.S. Patent Application No. 16 / 240,388, filed on January 4, 2019, entitled "METHODS AND APPARATUS FOR MULTIPLE LINE INTRA PREDICTION IN VIDEO This patent application claims the benefit of priority to "METAL HYDROXIDE COMPRESSION," which is a continuation of U.S. patent application Ser. No. 16 / 234,324, filed Dec. 27, 2018, which claims priority to U.S. Provisional Patent Application Ser. No. 62 / 694,132, filed July 5, 2018. Each of the above applications is hereby expressly incorporated by reference in its entirety into this application. [Background technology]
[0002] This disclosure relates to next generation video coding techniques beyond HEVC, and more particularly to improving intra prediction schemes, for example using multiple reference lines.
[0003] The main profile of the video coding standard HEVC (High Efficiency Video Coding) was finalized in 2013. Shortly thereafter, the International Organization for Standardization ITU-T VCEG (Q6 / 16) and ISO / IEC MPEG (JTC 1 / SC 29 / WG 11) began exploring the need to develop a future video coding standard with the possibility of significantly increasing compression performance compared to the current HEVC standard (including its current extensions). Several organizations have been working together on the exploration activities through a collaboration known as the Joint Video Exploration Team (JVET) to evaluate compression technology designs proposed by experts in the field. To explore video coding technologies that can surpass the performance of HEVC, the Joint Exploration Model (JEM) has been developed by the JVET, and the current latest version of the JEM is JEM-7.1.
[0004] ITU-T VCEG (Q6 / 16) and ISO / IEC MPEG (JTC 1 / SC 29 / WG 11) agreed on H. MPEG released version 1 of the H.265 / HEVC (High Efficiency Video Coding) standard, followed by version 2 in 2014, version 3 in 2015, and version 4 in 2016. Since then, MPEG has been researching the potential demand for standardization of future video coding technologies with compression performance far exceeding that of the HEVC standard (including its extensions). In October 2017, MPEG issued a joint Call for Proposals (CfP) for video compression with performance superior to that of HEVC. By February 15, 2018, a total of 22 CfP responses for Standard Dynamic Range (SDR), 12 CfP responses for High Dynamic Range (HDR), and 12 CfP responses for 360 video classifications had been submitted. In April 2018, all received CfP responses were evaluated at the 122 MPEG / 10th JVET (Joint Video Exploration Team-Joint Video Experts Team) meeting. After careful evaluation, JVET has officially started the standardization of the next generation of video coding that will surpass HEVC, namely the so-called Versatile Video Coding (VVC). The current version of VTM (VVC Test Model) is VTM1. Summary of the Invention [Problem to be solved by the invention]
[0005] Even if multiple lines are available, there are various technical problems in this field. For example, a technical problem exists in that the first reference line is still found to be the most selected line. However, each block that has the first reference line always needs to signal one bin to indicate the line index of the current block.
[0006] Also, multi-line intra prediction is only applied to luma intra prediction: the possible coding gain of multi-line intra prediction with chroma components is not utilized.
[0007] In addition, reference samples with different line indices may have different characteristics, which makes it suboptimal to set the same number of intra prediction modes for different reference lines.
[0008] Also, in multi-line intra prediction, pixels of multiple adjacent lines are stored and accessed, but the pixels of the adjacent lines are not used in smoothing the pixels in the current line.
[0009] Also, in multi-line intra prediction, the encoder selects one reference line to predict pixel values of the current block, but the variation trends of neighboring pixels are not used to predict samples within the current block.
[0010] Also, in multi-line intra prediction, there are no planar or DC modes with a number greater than 1. Exploration of other versions of DC or planar modes is not fully exploited.
[0011] Also, although multiple line reference pixels are applied for intra prediction, the coding gain of multiple line reference pixels is not utilized, although there are other places where reference pixels are used.
[0012] Therefore, a technical solution to such problems is desirable. [Means for solving the problem]
[0013] Methods and apparatuses are included that include a memory configured to store computer program code and a hardware processor or processors configured to access the computer program code and operate as instructed by the computer program code, the computer program including intra prediction code configured to cause the processor to encode or decode a video sequence by performing intra prediction among a plurality of reference lines of the video sequence, intra prediction mode code configured to cause the processor to set an intra prediction mode for a first reference line at a zero reference line closest to a current block of the intra prediction among a plurality of non-zero reference lines, and most probable mode code configured to cause the processor to set one or more most probable modes for a second reference line at the non-zero reference line.
[0014] According to an exemplary embodiment, the program code further includes signaling code configured to cause the processor to signal a reference line index before signaling the most probable mode flag and the intra mode, to signal the most probable mode flag in response to a determination that the reference line index is signaled and that the signaled index indicates a zero reference line, and to derive the most probable mode flag to be true without signaling the most probable mode flag and to signal a most probable mode index for the current block in response to a determination that the reference line index is signaled and that the signaled index indicates at least one non-zero reference line.
[0015] According to an exemplary embodiment, the most probable mode code is further configured to cause the processor to include one or more of the most probable modes in the most probable mode list and to exclude the planar mode and the DC mode from the most probable mode list.
[0016] According to an exemplary embodiment, the most probable mode code is further configured to cause the at least one processor to set a length of the most probable mode list based on the reference line index value, such that the length of the most probable mode list includes a number of the one or more most probable modes.
[0017] According to an exemplary embodiment, the most probable mode code is further configured to cause the at least one processor to set a length of the most probable mode list to either 1 or 4 in response to detecting a non-zero reference line, and to set a length of the most probable mode list to either 3 or 6 in response to determining that the current reference line is a zero reference line.
[0018] According to an exemplary embodiment, the most probable mode code is further configured to cause the at least one processor, in response to detecting a non-zero reference line, to set a length of the most probable mode list to consist of five most probable modes.
[0019] According to an exemplary embodiment, one of the non-zero reference lines is a line adjacent to the current block and is farther away from the current block than the zero reference line.
[0020] According to an exemplary embodiment, the one or more most probable modes include any level of most probable mode from a lowest level most probable mode to a highest level most probable mode.
[0021] According to an exemplary embodiment, the one or more most probable modes include only the most probable mode levels allowed for non-zero reference lines.
[0022] Further features, nature and various advantages of the subject matter of the present disclosure will become more apparent from the following detailed description and the accompanying drawings. [Brief description of the drawings]
[0023] [Figure 1] 1 shows a schematic diagram according to an embodiment. [Diagram 2] 2 shows a schematic diagram of another view according to an embodiment. [Diagram 3] 13A and 13B show schematic diagrams of yet another view according to an embodiment. [Figure 4] 13A and 13B show schematic diagrams of yet another view according to an embodiment. [Diagram 5] 13A and 13B show schematic diagrams of yet another view according to an embodiment. [Figure 6] 13A and 13B show schematic diagrams of yet another view according to an embodiment. [Figure 7] 13A and 13B show schematic diagrams of yet another view according to an embodiment. [Figure 8] 13A and 13B show schematic diagrams of yet another view according to an embodiment. [Figure 9] 1 is a simplified flowchart according to an embodiment. [Figure 10] 4 is another simplified flowchart according to an embodiment. [Figure 11] 1 is yet another simplified flowchart according to an embodiment. [Figure 12] 1 is yet another simplified flowchart according to an embodiment. [Figure 13] 1 is yet another simplified flowchart according to an embodiment. [Figure 14] 1 is yet another simplified flowchart according to an embodiment. [Figure 15] 1 shows a schematic diagram according to an embodiment. [Figure 16] 1 is a simplified flowchart according to an embodiment. [Figure 17] 4 is another simplified flowchart according to an embodiment. [Figure 18] 1 is yet another simplified flowchart according to an embodiment. [Figure 19] 1 is yet another simplified flowchart according to an embodiment. [Figure 20] 1 is yet another simplified flowchart according to an embodiment. [Figure 21] 1 is yet another simplified flowchart according to an embodiment. [Figure 22]1 is yet another simplified flowchart according to an embodiment. [Figure 23] 1 is yet another simplified flowchart according to an embodiment. [Figure 24] 1 is yet another simplified flowchart according to an embodiment. [Diagram 25] 1 is yet another simplified flowchart according to an embodiment. [Figure 26] 1 shows a schematic diagram according to an embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0024] The proposed features described below may be used individually or in combination in any order. Also, the embodiments may be implemented by processing circuitry (e.g., one or more processors or one or more integrated circuits). In one example, the one or more processors execute a program stored on a non-transitory computer-readable medium. In this disclosure, most probable mode (MPM) can refer to the primary MPM, the secondary MPM, or both the primary MPM and the secondary MPM.
[0025] 1 shows a simplified block diagram of a communication system 100 according to an embodiment of the present disclosure. The communication system 100 includes at least two terminals 102 and 103 interconnected via a network 105. In the case of a one-way transmission of data, a first terminal 103 may locally encode video data to transmit to the other terminal 102 via the network 105. The second terminal 102 may receive the other terminal's encoded video data from the network 105, decode the encoded data, and display the recovered video data. One-way data transmission may be common in media distribution applications, etc.
[0026] 1 shows a second pair of terminals 101 and 104 provided to support bidirectional transmission of encoded video, such as might occur during a video conference. For bidirectional transmission of data, each terminal 101 and 104 may encode video data captured at a local location for transmission to the other terminal over network 105. Each terminal 101 and 104 may receive the encoded video data transmitted by the other terminal, may decode the encoded data, and may display the recovered video data on a local display device.
[0027] In FIG. 1, terminals 101, 102, 103, and 104 may be depicted as a server, a personal computer, and a smartphone, although the principles of the present disclosure are not so limited. Embodiments of the present disclosure also apply to notebook computers, tablet computers, media players, and / or dedicated video conferencing equipment. Network 105 represents any number of networks, including wired and / or wireless communication networks, that convey encoded video data between terminals 101, 102, 103, and 104. Communication network 105 may exchange data over circuit-switched and / or packet-switched channels. Representative networks include telecommunications networks, local area networks, wide area networks, and / or the Internet. For purposes of this discussion, the architecture and topology of network 105 may be irrelevant to the operation of the present disclosure, unless described below.
[0028] 2 shows the arrangement of video encoders and decoders in a streaming environment as an example application of the disclosed subject matter, which is equally applicable to other video uses including, for example, video conferencing, digital television, and storage of compressed video on digital media such as CDs, DVDs, memory sticks, etc.
[0029] The streaming system may include a capture subsystem 203, which may include a video source 201, such as a digital camera, that creates an uncompressed video sample stream 213. The sample stream 213, shown in bold to emphasize its large amount of data compared to an encoded video bitstream, may be processed by an encoder 202 coupled to the camera 201. As described in more detail below, the encoder 202 may include hardware, software, or a combination thereof to enable or implement aspects of the disclosed subject matter. The encoded video bitstream 204, shown in thin to emphasize its small amount of data compared to the sample stream, may be stored on a streaming server 205 for later use. One or more streaming clients 212 and 207 may access the streaming server 205 to retrieve copies 208 and 206 of the encoded video bitstream 204. Client 212 may include a video decoder 211 that decodes a copy 208 of the incoming encoded video bitstream to produce an outgoing video sample stream 210, which may be displayed on display device 209, or other display device (not shown). In some streaming systems, video bitstreams 204, 206, and 208 may be encoded according to some video encoding / compression standard. Examples of such standards are mentioned above and further described herein.
[0030] FIG. 3 is a functional block diagram of a video decoder 300 in accordance with an embodiment of the present invention.
[0031] The receiver 302 may receive one or more codec video sequences to be decoded by the decoder 300, or in the same or another embodiment, may receive one coded video sequence at a time, with the decoding of each coded video sequence being independent of the other coded video sequences. The coded video sequences may be received from a channel 301, which may be hardware / software coupled with a storage device that stores the coded video data. The receiver 302 may receive the coded video data together with other data, such as coded audio data and / or auxiliary data streams, which may be forwarded to respective use entities (not shown). The receiver 302 may separate the coded video sequences from the other data. To combat network jitter, a buffer memory 303 may be coupled between the receiver 302 and the entropy decoder / parser 304 (hereinafter "parser"). When receiver 302 is receiving data from a storage / transmission device with sufficient bandwidth and controllability, or from an isosynchronous network, buffer 303 may not be needed or may be small. Buffer 303 may be needed for use with best effort packet networks such as the Internet, and may be relatively large and preferably of an adaptive size.
[0032] The video decoder 300 may include a parser 304 to reconstruct symbols 313 from the entropy coded video sequence. Such symbol classification includes information used to govern the operation of the decoder 300, and potentially information for controlling a display device, such as display device 312, which is not an integral part of the decoder but may be coupled to it. Control information for the display device(s) may be provided in the form of Supplementary Enhancement Information (SEI) messages, or Video Usability Information (VUUID) messages. The parser 304 may parse / entropy decode the received coded video sequence. The code of the coded video sequence may be in the form of a Video User Interface Information (VUI) parameter set fragment (not shown). The parser 304 may parse / entropy decode the received coded video sequence. The code of the coded video sequence may be in accordance with a video coding technique or standard and may follow principles well known to those skilled in the art, including variable length coding, Huffman coding, context-dependent or non-context-dependent arithmetic coding, etc. The parser 304 may extract a set of subgroup parameters for at least one subgroup of pixels in the video decoder based on at least one parameter corresponding to the group from the coded video sequence. The subgroup may include a group of pictures (GOP), an image, a tile, a slice, a macroblock, a coding unit (CU), a block, a transform unit (TU), a prediction unit (PU), etc. The entropy decoder / parser may also extract information from the coded video sequence, such as transform coefficients, quantizer parameter values, motion vectors, etc.
[0033] The parser 304 may perform an entropy decoding / parsing operation on the video sequence received from the buffer 303 to generate symbols 313. The parser 304 may receive the encoded data and selectively decode particular symbols 313. The parser 304 may also determine whether to provide the particular symbol 313 to the motion compensated prediction unit 306, the scaler / inverse transform unit 305, the intra prediction unit 307, or the loop filter 311.
[0034] The symbol reconstruction 313 may include different units depending on the type of coded video or portions thereof (e.g., inter and intra pictures, inter and intra blocks) and other factors. Which units are included and how can be controlled by subgroup control information parsed from the coded video sequence by the parser 304. The flow of such subgroup control information between the parser 304 and the following units is not shown for clarity.
[0035] In addition to the functional blocks already mentioned, the decoder 200 may be conceptually subdivided into several functional units, as described below. In an actual implementation operating under commercial constraints, many of such units may closely interact with each other and may be at least partially integrated with each other. However, for purposes of describing the disclosed subject matter, a conceptual subdivision into the following functional units is appropriate:
[0036] The first unit is a scalar / inverse transform unit 305. The scalar / inverse transform unit 305 receives quantized transform coefficients as well as control information, including the transform to use, block size, quantization factor, quantization scaling matrix, etc., as symbol(s) 313 from the parser 304. The scalar / inverse transform unit 305 can output a block containing sample values, which can be input to an aggregator 310.
[0037] In some cases, the output samples of the scalar / inverse transform unit 305 may relate to intra-coded blocks, i.e., blocks that do not use prediction information from a previously reconstructed image may use prediction information from a previously reconstructed part of the current image. Such prediction information may be provided by an intra-image prediction unit 307. In some cases, the intra-image prediction unit 307 uses surrounding already reconstructed information taken from the current (partially reconstructed) image 309 to generate a block of the same size and shape as the block being reconstructed. The aggregation device 310 may add the prediction information generated by the intra-prediction unit 307 to the output sample information provided by the scalar / inverse transform unit 305 on a sample-by-sample basis.
[0038] In other cases, the output samples of the scalar / inverse transform unit 305 may relate to an inter-coded and potentially motion-compensated block. In such cases, the motion compensation prediction unit 306 may access the reference picture memory 308 to retrieve samples to use for prediction. After motion compensating the retrieved samples according to the symbols 313 associated with the block, these samples may be added to the output of the scalar / inverse transform unit (called residual samples or residual signals in this case) by the aggregation device 310 to generate output sample information. The addresses in the reference picture memory from which the motion compensation unit retrieves the prediction samples may be controlled by a motion vector, available to the motion compensation unit in the form of symbols 313, and may have, for example, X, Y, and reference picture components. Motion compensation may also include interpolation of sample values retrieved from the reference picture memory when sub-sample accurate motion vectors are used, motion vector prediction mechanisms, etc.
[0039] The output samples of the aggregator 310 may be subjected to various loop filtering techniques in a loop filter unit 311. The video compression techniques may include in-loop filter techniques controlled by parameters contained in the encoded video bitstream and made available to the loop filter unit 311 as symbols 313 from the parser 304, but may also be responsive to meta-information obtained during decoding of previous (in decoding order) parts of the encoded image or encoded video sequence, as well as to previously reconstructed loop filtered sample values.
[0040] The output of the loop filter unit 311 may be a sample stream that can be output to a display device 312 and also stored in a reference picture memory 557 for use in future inter-picture prediction.
[0041] Some coded pictures, once fully reconstructed, can be used as reference pictures for future prediction. Once a coded picture is fully reconstructed and the coded picture has been identified as a reference picture (e.g., by the parser 304), the current reference picture 309 can become part of the reference picture buffer 308, and a new current picture memory can be reallocated before starting the reconstruction of the subsequent coded picture.
[0042] The video decoder 300 may perform decoding operations according to a given video compression technique, which may be described in a standard such as ITU-T Rec. H.265. An encoded video sequence is said to comply with the syntax specified by the video compression technique or standard used in the sense that it adheres to the syntax of the video compression technique or standard, as specified in the video compression technique document or standard, and specifically in the profiles described therein. A further requirement for compliance may be that the complexity of the encoded video sequence is within a range defined by a level of the video compression technique or standard. In some cases, the level limits the maximum picture size, maximum frame rate, maximum reconstruction sample rate (e.g., measured in megasamples / second), maximum reference picture size, etc. The limits set by the level may be further limited in some cases by a Hypothetical Reference Decoder (HRD) specification and HRD buffer management metadata signaled in the encoded video sequence.
[0043] In an embodiment, the receiver 302 may receive additional (redundant) data along with the encoded video. The additional data may be included as part of the encoded video sequence(s). The additional data may be used by the video decoder 300 to properly decode the data and / or to 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 images, forward error correction codes, etc.
[0044] FIG. 4 is a functional block diagram of a video encoder 400 according to an embodiment of the present disclosure.
[0045] The encoder 400 may receive video samples from a video source 401 (not part of the encoder) that may capture the video(s) to be encoded by the encoder 400 .
[0046] The video source 401 may provide the source video sequence to be encoded by the encoder 400 in the form of a digital video sample stream that may be of any suitable bit depth (8-bit, 10-bit, 12-bit, etc.), any color space (BT.601 Y CrCB, RGB, etc.), and any suitable sampling structure (Y CrCb 4:2:0, Y CrCb 4:4:4, etc.). In a media delivery system, the video source 401 may be a storage device storing previously prepared video. In a video conferencing system, the video source 401 may be a camera capturing local image information as a video sequence. The video data may be provided as a number of individual images that convey motion when viewed in sequence. The images themselves may be organized as a spatial array of pixels, each of which may contain one or more samples depending on the sampling structure, color space, etc., in use. Those skilled in the art will readily appreciate the relationship between pixels and samples. The following description focuses on samples.
[0047] According to an embodiment, the encoder 400 may encode and compress images of a source video sequence into an encoded video sequence 410 in real time or under other time constraints required by the application. Providing an appropriate encoding rate is one function of the controller 402. The controller controls and is operatively coupled to other functional units as described below. For clarity, couplings are not shown. Parameters set by the controller may include rate control related parameters (e.g., picture skip, quantization, lambda values for rate-distortion optimization techniques), picture size, group of pictures (GOP) layout, maximum motion vector search range, etc. Those skilled in the art can easily identify other functions of the controller 402 as they may be relevant to a video encoder 400 optimized for some system designs.
[0048] Some video encoders operate in what is easily recognized by those skilled in the art as a "coding loop." In an oversimplified explanation, the encoding loop may consist of an encoding section of an encoder 403 (hereafter "source encoder") (responsible for generating symbols based on the input image to be encoded and the reference image(s)), and a (local) decoder 406 embedded in the encoder 400 that reconstructs the symbols to generate sample data that the (remote) decoder also generates (since the compression between the symbols and the encoded video bitstream is lossless in the video compression techniques contemplated in the disclosed subject matter). The reconstructed sample stream is input to a reference image memory 405. As the decoding of the symbol stream results in bit-exact, regardless of the location of the decoder (local or remote), the contents of the reference image buffer are also bit-perfect between the local and remote encoders. In other words, the prediction section of the encoder "sees" the reference image samples as exactly the same sample values that the decoder "sees" when using prediction during decoding. This basic principle of reference image synchronicity (and the resulting drift if synchronicity cannot be maintained, for example due to channel errors) is well known to those skilled in the art.
[0049] The operation of the "local" decoder 406 may be the same as the "remote" decoder 300, which has already been described in detail above in relation to Figure 3. However, referring also momentarily to Figure 4, the entropy decoding portion of the decoder 300, including the channel 301, the receiver 302, the buffer 303, and the parser 304, may not be entirely implemented in the local decoder 406, since symbols are available and can be losslessly encoded / decoded into an encoded video sequence by the entropy encoder 408 and the parser 304.
[0050] It is currently believed that any decoder techniques, except for parsing / entropy decoding, present in the decoder will naturally need to be present in the corresponding encoder in approximately the same functional form. A description of the encoder techniques can be omitted, since they are the inverse of the decoder techniques, which are described generically. Only in a few areas are more detailed descriptions required, which are described below.
[0051] As part of its operation, the source encoder 403 may perform motion compensated predictive encoding, predictively encoding an input frame with respect to one or more previously encoded frames from the video sequence designated as “reference frames.” In this method, the encoding engine 407 encodes the differences between pixel blocks of the input frame and pixel blocks of reference frame(s) that may be selected as predictive reference(s) for the input frame.
[0052] The local video decoder 406 may decode the encoded video data of frames that may be designated as reference frames based on the symbols generated by the source encoder 403. The operation of the encoding engine 407 may preferably be a lossy process. When the encoded video data may be decoded in a video decoder (not shown in FIG. 4), the reconstructed video sequence may be a copy of the source video sequence, usually with some errors. The local video decoder 406 repeats the decoding process that may be performed by the video decoder on the reference frames and may cause the reconstructed reference frames to be stored in the reference picture cache 405. In this manner, the encoder 400 may locally store copies of reconstructed reference frames that have common content with the reconstructed reference frames obtained by the far-end video decoder (free of transmission errors).
[0053] The predictor 404 may perform a prediction search for the coding engine 407. That is, for a new frame to be coded, the predictor 404 may search sample data (as candidate reference pixel blocks) from the reference image memory 405, or some metadata such as reference image motion vectors, block shapes, etc., which serve as suitable prediction references for the new image. The predictor 404 may operate on a sample by sample basis to find suitable prediction references. In some cases, as determined by the search results obtained by the predictor 404, the input image may have prediction references drawn from multiple reference images stored in the reference image memory 405.
[0054] The controller 402 may manage the encoding operations of the video encoder 403, including, for example, setting parameters and subgroup parameters used to encode the video data.
[0055] The output of all the functional units mentioned above may be entropy coded in an entropy coder 408, which converts the symbols produced by the various functional units into an encoded video sequence by losslessly compressing the symbols with techniques known to those skilled in the art as Huffman coding, variable length coding, arithmetic coding, etc.
[0056] The transmitter 409 may buffer the encoded video sequence(s) as they are generated by the entropy encoder 408 in preparation for transmission over the communication channel 411, which may be a hardware / software association with a storage device that stores the encoded video data. The transmitter 409 may merge the encoded video data of the video encoder 403 with other data to be transmitted, such as encoded audio data and / or auxiliary data streams (sources not shown).
[0057] A controller 402 may manage the operation of the encoder 400. During encoding, the controller 405 may assign several encoding image types to each of the encoded images, which may affect the encoding technique that may be applied to each image. For example, images are often assigned to one of the following frame types:
[0058] An Intra picture (I-picture) is one that can be coded and decoded without using other frames in a sequence as a source of prediction. Some video codecs allow different kinds of Intra pictures, including, for example, Independent Decoder Refresh pictures. Those skilled in the art are aware of such variations of I-pictures, as well as their respective uses and characteristics.
[0059] A predicted image (P picture) can be encoded and decoded using intra- or inter-prediction, using at most one motion vector and reference index to predict the sample values of each block.
[0060] Bidirectionally predicted images (B-pictures) are those that can be coded and decoded using intra- or inter-prediction, using up to two motion vectors and reference indices to predict the sample values of each block. Similarly, multi-predictive images can use more than two reference images and associated metadata to reconstruct a block.
[0061] A source image may be coded block by block, usually spatially subdivided into multiple sample blocks (e.g., blocks of 4x4, 8x8, 4x8, or 16x16 samples each). Blocks may be predictively coded with reference to other (already coded) blocks as determined by the code assignment applied to each image of the block. For example, blocks of I-pictures may be non-predictively coded or may be predictively coded with reference to already coded blocks of the same image (spatial or intra prediction). Pixel blocks of P-pictures may be non-predictively coded by spatial prediction with reference to one previously coded reference image or by temporal prediction. Blocks of B-pictures may be non-predictively coded by spatial prediction with reference to one or two previously coded reference images or by temporal prediction.
[0062] Video encoder 400 may perform encoding operations in accordance with a given video encoding technique or standard, such as ITU-T Rec. H.265. In its operation, video encoder 400 may perform various compression operations, including predictive encoding operations that exploit temporal and spatial redundancy in the input video sequence. The encoded video data may therefore conform to a syntax specified by the video encoding technique or standard used.
[0063] In an embodiment, the transmitter 409 may transmit additional data along with the encoded video. The video encoder 403 may include such data as part of the encoded video sequence. The additional data may include temporal / spatial / SNR enhancement layers, redundant pictures and slices, Supplementary Enhancement Information (SEI) messages, Visual Usability Information (VU) messages, and the like. It may also include other forms of redundant data, such as VUI (Variable User Interface) parameter set fragments.
[0064] FIG. 5 shows the intra prediction modes used in HEVC and JEM. In order to capture any edge direction that appears in natural video, the number of directional intra modes is expanded from 33 to 65 as used in HEVC. The additional directional modes in JEM, on top of HEVC, are indicated by dotted arrows in FIG. 5, while the planar and DC modes remain the same. Such dense directional intra prediction modes are applied to all block sizes and both luma and chroma intra prediction. As shown in FIG. 5, the directional intra prediction modes identified by dotted arrows associated with odd intra prediction mode indexes are referred to as odd intra prediction modes. The directional intra prediction modes identified by solid arrows associated with even intra prediction mode indexes are referred to as even intra prediction modes. In this specification, the directional intra prediction modes indicated by solid or dotted arrows in FIG. 5 are also referred to as angular modes.
[0065] In JEM, a total of 67 intra prediction modes are used for luma intra prediction. To code intra modes, an MPM list of size 6 is constructed based on the intra modes of neighboring blocks. If the intra mode is not from the MPM list, a flag is signaled to indicate whether the intra mode belongs to the selected mode or not. In JEM-3.0, there are 16 selected modes, which are selected equally for every 4 angular modes. In JVET-D0114 and JVET-G0060, 16 sub-MPMs are derived, which replace the equally selected modes.
[0066] 6 shows N reference layers used for intra-directional mode, including a block unit 611, a segment A 601, a segment B 602, a segment C 603, a segment D 604, a segment E 605, a segment F 606, a first reference layer 610, a second reference layer 609, a third reference layer 608, and a fourth reference layer 607.
[0067] In both HEVC and JEM, as well as some other standards such as H.264 / AVC, the reference samples used to predict the current block are limited to the closest reference line (row or column). In the multiple reference line intra prediction method, the number of candidate reference lines (rows or columns) increases from 1 (i.e., the closest) to N for the intra-directional mode, where N is an integer equal to or greater than 1. Figure 2 shows a 4x4 prediction unit (PU) as an example to illustrate the concept of the multiple line intra-directional prediction method. The intra-directional mode can arbitrarily select one of N reference layers to generate a predictor. In other words, the predictor p(x,y) is generated from one of the reference samples S1, S2, ~SN. A flag is signaled to indicate which reference layer is selected for the intra-directional mode. If N is set to 1, the intra-directional prediction method is the same as the conventional method in JEM 2.0. In Fig. 6, reference lines 610, 609, 608, and 607 are composed of six segments 601, 602, 603, 604, 605, and 606, with a top-left reference sample. In this specification, a reference layer is also called a reference line. The coordinates of the top-left pixel in the current block unit are (0,0), and the top-left pixel of the first reference line is (-1,-1).
[0068] In JEM, for the luma component, the neighboring samples used to generate the intra prediction sample are filtered before the generation process. The filtering is controlled by a given intra prediction mode and transform block size. If the intra prediction mode is DC or the transform block size is 4x4, the neighboring samples are not filtered. If the distance between a given intra prediction mode and the vertical mode (or horizontal mode) is greater than a predefined threshold, the filtering process is enabled. A [1,2,1] filter and a bilinear filter are used to filter the neighboring samples.
[0069] The position dependent intra prediction combination (PDPC) method is an intra prediction method that calls for the combination of unfiltered boundary reference samples and HEVC-style intra prediction with filtered boundary reference samples. Each prediction sample pred[x][y] located at (x,y) is calculated as follows: pred[x][y]=(wL*R -1,y +wT+R x,-1 +wTL+R -1,-1 ,+(64-wL-wT-wTL)*pred[x][y]+32)>>6 (Formula 2-1) Here, R x,-1 ,R -1,y denote the unfiltered reference samples located above and to the left of the current sample (x,y), respectively, and R -1,-1 represents the unfiltered reference sample located in the top-left corner of the current block. The weights are calculated as follows: wT=32>>((y<<1)>>shift) (Eq. 2-2) wL=32>>((x<<1)>>shift)(Equation 2-3) wTL = -(wL>>4) -(wT>>4) (Equation 2-4) shift=(log2(wigth)+log2(height)+2)>>2(Equation 2-5)
[0070] FIG. 7 shows a diagram 700 in which weights (wL, wT, wTL) for the (0,0) and (1,0) positions within one 4x4 block are shown.
[0071] 8 shows a Local Illumination Compensation (LIC) diagram 800, which is based on a linear model of illumination changes, uses a scale factor a and an offset b, and is adaptively enabled or disabled for each coding unit (CU) coded in inter mode.
[0072] When LIC is applied to a CU, a least square error method is used to derive parameters a and b using the neighboring samples of the current CU and its corresponding reference samples. More specifically, neighboring samples of the subsampled (2:1 subsampled) CU and corresponding samples in the reference image (identified by the motion information of the current CU or sub-CU) are used as shown in Figure 8. IC parameters are derived and applied to each prediction direction separately.
[0073] When a CU is coded in merge mode, the LIC flag is copied from the neighboring blocks in a manner similar to the motion information copy in merge mode, or the LIC flag is signaled for the CU to indicate whether LIC is applied.
[0074] FIG. 9 illustrates a flowchart 900 according to an example embodiment.
[0075] In S901, in the case of multi-line intra prediction, instead of setting the same number of reference layers for all blocks, the number of reference layers for each block may be adaptively selected, where the index of the nearest reference line is denoted by 1.
[0076] In S902, the block size of the top / left block may be used to determine the number of reference layers for the current block. For example, if the size of the top and / or left block is larger than MxN, the number of reference layers for the current block is limited to L. M and N can be 4, 8, 16, 32, 64, 128, 256, and 512. L can be 1 to 8.
[0077] In one embodiment, when M and / or N is 64 or greater, L is set to 1.
[0078] In another embodiment, the ratio of the number of candidate top reference rows to the number of candidate left reference columns is the same as the ratio of block width to block height. For example, if the current block size is MxN, the number of candidate top reference rows is m and the number of candidate left reference columns is n, so M:N=m:n.
[0079] Alternatively, in S903, the location of the last coefficient of the left and top blocks can be used to determine the number of reference layers for the current block. For example, if the location of the last coefficient is within the first MxN region of the top and / or left block, the number of reference layers for the current block is limited to L (e.g., L can be from 1 to 8), and M and N can be from 1 to 1024.
[0080] In one embodiment, the number of reference layers for the current block is limited to 1 when there are no coefficients in the above and / or left blocks.
[0081] In another embodiment, the number of reference layers for the current block is limited to 1-2 when the coefficients in the above and / or left blocks are within the 2x2 top-left region.
[0082] Alternatively, in S904, the pixel values of the reference samples in the upper and / or left blocks can be used to determine the number of reference layers of the current block. For example, the index L i and a reference line with index L j The difference between the reference line (L i <L j ) is extremely small, the reference line L j is removed from the reference line list. i and L j can be between 1 and 8. In some cases, all reference lines with a number greater than 1 are removed because the difference between all reference lines is very small. Methods for measuring the difference between two reference lines include, but are not limited to, gradient, SATD, SAD, MSE, SNR, and PSNR.
[0083] In one embodiment, Li and L j If the average SAD of is less than 2, the reference line L j is removed from the reference line list.
[0084] Alternatively, in S905, the prediction mode of the top and / or left mode information can be used to determine the number of reference layers for the current block.
[0085] In one embodiment, if the prediction mode of the above and / or left block is skip mode, the number of reference layers for the current block is limited to L, where L can be from 1 to 8.
[0086] FIG. 10 illustrates a flowchart 1000 according to an example embodiment.
[0087] In S1001, the reference line index for chroma can be derived from luma, whether in a different tree or in the same tree, where the index of the closest reference line is denoted by 1.
[0088] In S1002, if the reference line index of the co-located luma block for the same tree is ≧3, the reference line index of the current chroma block is set to 2. Otherwise, the reference line index of the current chroma block is set to 1.
[0089] In S1003, for separate trees, if the chroma block covers only one block in the luma component, the reference line index derivation algorithm is the same as 2.a. If the chroma block covers multiple blocks in the luma component, the reference line index derivation algorithm may be one of the following:
[0090] For the collocated blocks in the luma component, if the reference line index of the majority of blocks is less than 3, then the reference line index for the current chroma block is derived as 1. Otherwise, the reference line index of the current chroma block is derived as 2. Methods for measuring the majority may include, but are not limited to, the region size of the block and the number of blocks.
[0091] Alternatively, for the collocated blocks in the luma component, if the reference line index of one block is greater than or equal to 3, the reference line index for the current chroma block is derived as 2. Otherwise, the reference line index of the current chroma block is derived as 1.
[0092] Alternatively, for the collocated blocks in the luma component, if the reference line index of the majority of blocks is less than 3, the reference line index for the current chroma block is derived as 1. Otherwise, the reference line index of the current chroma block is derived as 2.
[0093] Alternatively, in S1004, whether to use adaptive selection is considered, and if so, the method of FIG. 9 can also be used to limit the number of reference layers for the current chroma block. After applying the method of FIG. 9, the number of reference layers is L C1 Next, the derivation algorithm shown in S1002 and S1003, or S1005 and S1006 in FIG. 10 is set to the current block L C2 is further applied to obtain the line index of C1 ,L C2 ) becomes the last reference line index for the current chroma block.
[0094] FIG. 11 illustrates a flowchart 1100 according to an example embodiment.
[0095] In S1101, it is considered that different reference lines have different numbers of intra prediction modes, where the index of the nearest reference line is denoted by 1.
[0096] For example, the first reference line has 67 modes, the second reference line has 35 modes, the third reference line has 17 modes, and the fourth reference line has 9 modes.
[0097] For example, the first reference line has 67 modes, the second reference line has 33 modes, the third reference line has 17 modes, and the fourth reference line has 9 modes.
[0098] Alternatively, in S1102, the reference lines with indexes greater than 1 share the same number of intra modes, but much less than the first reference line, such as less than half the number of intra prediction modes of the first reference line.
[0099] In S1103, for example, only directional intra prediction modes with even mode indexes are allowed for reference lines whose index is greater than 1. As shown in Figure 5, directional intra prediction modes with odd mode indexes are labeled with dotted arrows, and directional intra prediction modes with even mode indexes are labeled with solid arrows.
[0100] In S1104, in another example, only directional intra prediction modes with even mode indexes, as well as DC and planar modes, are allowed for reference lines with index greater than one.
[0101] In S1105, in another example, only most probable modes (MPMs) are allowed for non-zero reference lines, where the MPMs include both first level MPMs and second level MPMs.
[0102] In S1106, in another example, since a reference line index greater than 1 is only valid for even mode (or odd mode) intra prediction modes, when encoding an intra prediction mode, if a reference line index greater than 1 is signaled, intra prediction modes such as planar / DC and odd (or even) intra prediction modes are excluded from the MPM derivation and list, excluded from the second level MPM derivation and list, and excluded from the remaining non-MPM mode list.
[0103] In S1107, the reference line index is signaled after signaling the intra-prediction mode, and whether to signal the reference line index depends on the signaled intra-prediction mode.
[0104] For example, only directional intra-prediction modes with even mode indexes are allowed for reference lines with indexes greater than 1. If the signaled intra-prediction mode is directional prediction with even mode indexes, the selected reference line index is sent. Otherwise, only one default reference line, such as the closest reference line, is allowed for intra-prediction, and no index is signaled.
[0105] In another example, only Most Probable Mode (MPM) is allowed for reference lines with index greater than 1. If the signaled intra prediction is from MPM, then the selected reference line index needs to be signaled. Otherwise, only one default reference line, such as the closest reference line, is allowed for intra prediction and no index is signaled.
[0106] In another subembodiment, for all directional intra-prediction modes, or for all intra-prediction modes, reference lines with indexes greater than 1 are still valid, and the intra-prediction mode index can be used as context for entropy coding the reference line index.
[0107] In another embodiment, only most probable modes (MPMs) are allowed for reference lines with indexes greater than 1. In one approach, all MPMs are allowed for reference lines with indexes greater than 1. In another approach, a subset of MPMs are allowed for reference lines with indexes greater than 1. When MPMs are categorized into multiple levels, in one approach, only some levels of MPMs are allowed for reference lines with indexes greater than 1. In one example, only the lowest level of MPMs are allowed for reference lines with indexes greater than 1. In another example, only the highest level of MPMs are allowed for reference lines with indexes greater than 1. In another example, only a predefined (or signaled / indicated) level of MPMs are allowed for reference lines with indexes greater than 1.
[0108] In another embodiment, only non-MPMs are allowed for reference lines with index greater than 1. In one approach, all non-MPMs are allowed for reference lines with index greater than 1. In another approach, a subset of non-MPMs are allowed for reference lines with index greater than 1. In one example, only non-MPMs associated with even (or odd) indices in descending (or ascending) order of all non-MPM intra-mode indices are allowed for reference lines with index greater than 1.
[0109] In another embodiment, the planar and DC modes are assigned to predefined indices in the MPM mode list.
[0110] In one example, the predefined index is further dependent on the encoded information, including but not limited to the width and height of the block.
[0111] In another sub-embodiment, an MPM with a given index is allowed for reference lines with index greater than 1. The given MPM index can be signaled or specified as a high-level syntax element, for example in a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, or as a common syntax element or parameter for a region of an image. A reference line index is signaled only when the intra mode of the current block is equal to one of the given MPM indexes.
[0112] For example, the length of the MPM list is 6 and the indices of the MPM list are 0, 1, 2, 3, 4, and 5. If the intra mode of the current block is not equal to the modes with MPM indices 0 and 5, reference lines with indices greater than 1 are allowed.
[0113] In S1108, in one embodiment, all intra prediction modes are allowed for the closest reference line of the current block, while only the most probable mode is allowed (or not allowed) for reference lines with an index greater than 1 (or a specific index value such as 1).
[0114] In S1109, in one embodiment, the most probable mode includes only first level MPM, such as 3 MPM in HEVC and 6 MPM in JEM (or VTM).
[0115] In S1110, in another embodiment, the most probable mode can be any level of MPM, from the lowest level MPM to the highest level MPM.
[0116] In S1111, in another embodiment, for reference lines with indexes greater than 1, only some levels of MPM are allowed.
[0117] In S1112, in another embodiment, the most probable mode can be only one level of MPM, such as the lowest level of MPM, the highest level of MPM, or a predefined level of MPM.
[0118] In S1113, in another embodiment, the reference line index is signaled before the MPM flag and intra mode. If the signaled reference line index is 1, the MPM flag is also signaled. If the signaled reference line index is greater than 1, the MPM flag of the current block is not signaled and the MPM flag of the current block is derived as 1. For reference lines with index greater than 1, the MPM index of the current block is still signaled.
[0119] In S1114, in one embodiment, the MPM list generation process depends on the reference line index value.
[0120] In one example, the MPM list generation process for reference lines with index greater than 1 is different from that for reference lines with index 1. Planar and DC modes are excluded from the MPM list for reference lines with index greater than 1. The length of the MPM list is the same for all reference lines.
[0121] The default MPM used in the MPM list generation process depends on the reference line index. In one example, the default MPM associated with reference lines with index greater than 1 is different from the one associated with a reference line with index 1.
[0122] In S1115, in one embodiment, the length of the MPM list, i.e., the number of MPMs, depends on the reference line index value.
[0123] In another embodiment, the length of the MPM list for a reference line index value of 1 is set to be different from the MPM list for a reference line index value greater than 1. For example, the length of the MPM list for a reference line with an index greater than 1 is one or two shorter than the length of the MPM list for a reference line index of 1.
[0124] In another embodiment, the length of the MPM list, i.e. the number of MPMs, is 5 for reference line indexes greater than 1. The default MPMs for the MPM list generation process are {VER,HOR,2,66,34} when 65 angle modes are applied. The default MPM order can be any combination of these five listed modes.
[0125] In S1116, for odd-directional intra-prediction modes and / or angular intra-prediction modes that derive (but do not signal) a reference line index, such as planar / DC, multi-line reference samples are used to generate a predictor for the current block.
[0126] For angular intra-prediction modes from which a reference line index is derived (not signaled), a predicted sample value is generated using a weighted sum of multiple predictors, each of which is a prediction generated using one of multiple reference lines.
[0127] In one example, the weighted sum uses weights of {3,1} applied to the predictors generated by the first and second reference lines, respectively.
[0128] In another example, the weighting depends on the block size, the block width, the block height, the sample position within the current block being predicted, and / or the intra prediction mode.
[0129] In one example, for a given angular prediction mode with an odd index, one prediction block unit Pred 1A first reference line is used to generate a prediction block unit, and a second reference line is used to generate another prediction block unit. As a result, the final prediction value for each pixel of the current block unit is the weighted sum of these two generated prediction block units. This process can be expressed mathematically by equation (4-1), where W i is the same for all pixels in the same block. For different blocks, regardless of the intra prediction mode and block size, W i may be the same or may depend on the intra prediction mode and block size.
[0130]
number
[0131] Alternatively, in S1117, the number of intra prediction modes for each reference line is derived by the difference between the reference samples of that line. Methods for measuring the difference include, but are not limited to, gradient, SATD, SAD, MSE, SNR, and PSNR.
[0132] If both the top row and left column of reference samples are very similar, the number of modes can be reduced to 4, 9, 17, or 35 modes. The four modes are the planar mode, the DC mode, the vertical mode, and the horizontal mode.
[0133] If only the top row of reference samples are very similar, the near-vertical prediction modes are downsampled. In a special case, only mode 50 is kept, and modes 35 to 49 and modes 51 to 66 are excluded. The near-horizontal intra prediction modes are reduced accordingly, to bring the total intra prediction modes to 9, 17, or 35.
[0134] If only the left column of reference samples is very similar, the near-horizontal prediction modes are downsampled. In a special case, only mode 18 is kept, while modes 2 to 17 and modes 19 to 33 are excluded. The near-vertical intra prediction modes are reduced accordingly, to bring the total intra prediction modes to 9, 17 or 35.
[0135] FIG. 12 illustrates a flowchart 1200 according to an example embodiment.
[0136] In S1201, each sample in the current reference line is smoothed based on the adjacent samples in the current line and its adjacent reference line(s), where the index of the closest reference line is denoted by 1.
[0137] In S1202, for each pixel in the current line, all pixels in reference lines 1 to L can be used to smooth the pixels in the current line, where L is the maximum allowed number of reference lines for intra prediction, and L may be 1 to 8.
[0138] In S1203, the boundary pixels may or may not be filtered. If filtered, each boundary pixel in the same line uses the same filter. The boundary pixels in different lines can use different filters. For example, the boundary pixels in the first reference line can be filtered by a [3,2,2,1] filter, the boundary pixels in the second reference line can be filtered by a [2,3,2,1] filter, the boundary pixels in the third reference line can be filtered by a [1,2,3,2] filter, and the boundary pixels in the fourth reference line can be filtered by a [1,2,2,3] filter.
[0139] In S1204, for other pixels, pixels in each line can use the same filter, pixels in different lines can use different filters, or for other pixels, pixels at different positions can use different filters, but these filters are predefined and the encoder does not need to signal the index of the filter.
[0140] Alternatively, in S1205, the filtering operation for each line may depend on the intra prediction mode and the transform size. The filtering operation is enabled only when the intra prediction mode and the transform size satisfy certain conditions. For example, the filtering operation is disabled when the transform size is 4x4 or less.
[0141] Alternatively, in S1206, the filter used to smooth each pixel may have an irregular filter support shape rather than a rectangle. The filter support shape may be predefined and may depend on any information available to both the encoder and decoder, including but not limited to reference line index, intra mode, block height and / or width.
[0142] Alternatively, in S1207, for each pixel in the first reference line, pixels in the first reference line and the second reference line can be used to smooth the pixel. For each pixel in the second reference line, pixels in the first reference line, the second reference line, and the third reference line can be used to smooth the pixel. For each pixel in the third reference line, pixels in the second reference line, the third reference line, and the fourth reference line can be used to smooth the pixel. For each pixel in the fourth reference line, pixels in the third reference line and the fourth reference line can be used to smooth the pixel. In other words, for pixels in the first reference line and the fourth reference line, pixels in two lines are used to filter each pixel, and for pixels in the second reference line and the third reference line, pixels in three lines are used to filter each pixel.
[0143] For example, the filtered pixels in the second reference line and the third reference line can be calculated by Equations 4-2 to 4-5. p'(x,y)=(p(x-1,y)+p(x,y-1)+p(x,y+1)+p(x+1,y)+4*p(x,y))>>3 (Formula 4-2) p'(x,y)=(p(x,y+1)-p(x,y-1)+p(x,y))(Equation 4-3) p'(x,y)=(p(x-1,y)+p(x-1,y-1)+p(x-1,y+1)+p(x,y-1)+p(x,y+1)+p(x+1,y-1)+p(x+1,y)+p(x+1,y+1)+8*p(x,y))>>4(Equation 4-4)
[0144]
number
[0145] The filtered pixels in the first reference line can be calculated by Equations 4-6 to 4-10. p'(x,y)=(p(x-1,y)+p(x,y-1)+p(x+1,y)+5*p(x,y))>>3(Equation 4-6) p'(x,y)=(p(x-1,y)+p(x,y-1)+p(x+1,y)+5*p(x,y))>>2(Equation 4-7) p'(x,y)=(2p(x,y)-p(x,y-1))(Equation 4-8) p'(x,y)=(p(x-1,y)+p(x-1,y-1)+p(x,y-1)+p(x+1,y-1) +p(x+1,y)+3*p(x,y))>>3(Equation 4-9)
[0146]
number
[0147] The filtered pixels in the fourth reference line can be calculated by Equations 4-11 to 4-15. p'(x,y)=(p(x-1,y)+p(x,y+1)+p(x+1,y)+5*p(x,y))>>3(Equation 4-11) p'(x,y)=(p(x-1,y)+p(x,y+1)+p(x+1,y)+p(x,y))>>2(Equation 4-12) p'(x,y)=(2p(x,y)-p(x,y+1))(Equation 4-13) p'(x,y)=(p(x-1,y)+p(x-1,y+1)+p(x,y+1)+p(x+1,y+1)+p(x+1,y)+3*p(x,y))>>3(Equation 4-14)
[0148]
number
[0149] Also, rounding, such as rounding towards zero, positive infinity, or negative infinity, may be added to the above formula.
[0150] FIG. 13 illustrates a flowchart 1300 according to an example embodiment.
[0151] In S1301, in the current block, samples at different positions may use different combinations of reference samples for different line index prediction, where the index of the nearest reference line is denoted by 1.
[0152] In S1302, for a given intra-prediction mode, each reference line i is associated with one prediction block Pred i For each pixel in the image, the mode can use these generated prediction blocks Pred to generate the final prediction block. i Different combinations of can be used. Specifically, for a pixel at location (x,y), Equation 4-16 can be used to calculate the predicted value.
[0153]
number
[0154] Here, W i is location dependent, in other words the weighting coefficients for the same location are the same and for different locations the weighting coefficients are different.
[0155] Alternatively, given an intra-prediction mode for each sample, a set of reference samples from multiple reference lines is selected and a weighted sum of the selected set of reference samples is calculated as the final predicted value, where the selection of the reference sample may depend on the intra-mode and the position of the prediction sample, and the weighting may depend on the intra-mode and the position of the prediction sample.
[0156] In S1303, for each sample, when applying reference line x to intra prediction, the predicted values of line 0 and line x are compared, and if line 1 produces a significantly different predicted value, the predicted value from line x may be excluded and line 0 may be used instead. Methods for measuring the difference between the predicted value of the current position and the predicted values of its neighboring positions include, but are not limited to, gradient, SATD, SAD, MSE, SNR, and PSNR.
[0157] Alternatively, more than two predicted values are generated from different reference lines and the median (or average, or most frequently occurring) value is used as the predicted sample.
[0158] In S1304, for each sample, when applying reference line x to intra prediction, the predicted values of line 1 and line x are compared, and if line 1 produces a significantly different predicted value, the predicted value from line x may be excluded and line 1 may be used instead. Methods for measuring the difference between the predicted value of the current position and the predicted values of its neighboring positions include, but are not limited to, gradient, SATD, SAD, MSE, SNR, and PSNR.
[0159] Alternatively, more than two predicted values are generated from different reference lines and the median (or average, or most frequently occurring) value is used as the predicted sample.
[0160] FIG. 14 illustrates a flowchart 1400 according to an example embodiment.
[0161] In S1401, after intra prediction, pixels in multiple lines are used to filter the prediction value of each block, instead of using only pixels in the nearest reference line, where the index of the nearest reference line is denoted by 1.
[0162] For example, in S1402, PDPC may be extended for multi-line intra prediction. Each prediction sample pred[x][y] located at (x, y) is calculated by the following formula:
[0163]
number
[0164] Here, m may be from -8 to -2.
[0165] In one example, the reference samples in the two closest lines are used to filter the samples in the current block. For the top-left pixel, only the top-left sample in the first row is used. This can be formulated by Equation 4-18:
[0166]
number
[0167] Alternatively, in S1403, the boundary filter may be expanded to multiple lines.
[0168] After DC prediction, the pixels in the first few columns and rows are filtered by the neighboring reference pixels. The pixels in the first column can be filtered by the following formula:
[0169]
number
[0170] For the pixels in the first row, the filtering operation is as follows:
[0171]
number
[0172] In some special cases, the pixels in the first column can be filtered by the following formula: p'(0,y)=p(0,y)+R-1,y -R -2,y (Formula 4-21)
[0173] The pixels in the first row can also be filtered by the following formula: p'(x,0)=p(x,0)+R x,-1 -R x,-2 (Formula 4-22)
[0174] After vertical prediction, the pixels in the first few columns can be filtered by equation 4-23.
[0175]
number
[0176] After horizontal prediction, the first few rows of pixels can be filtered by Equation 4-24.
[0177]
number
[0178] In another embodiment, for vertical / horizontal prediction, if a reference line with index greater than 1 is used to generate a prediction sample, the first column / row in the line index with index greater than 1 and its corresponding pixels are used for boundary filtering. As shown in FIG. 15, in the reference lines 1503, 1502, and block unit 1501, the second reference line 1503 is used to generate a prediction sample for the current block unit, and the pixels with vertical direction are used for vertical prediction. After vertical prediction, the pixels with diagonal texture in reference line 1 and the pixels with diagonal texture in reference line 1503 are used to filter the first few columns in the current block unit. The filtering process can be formulated by Equation 4-25, where m represents the selected line index and can be 2 to 8. n is the number of right shift bits and can be 1 to 8. p'(x,y)=p(x,y)+(p(-1,y)-p(-1,-m))>>n(Equation 4-25)
[0179] For horizontal prediction, the filtering process can be formulated by Equation 4-26. p'(x,y)=p(x,y)+(p(x,-1)-p(-m,-1))>>n(Equation 4-26)
[0180] In another embodiment, when a reference line with index greater than 1 is used, after diagonal prediction such as mode 2 and mode 34 in FIG. 1(a), the pixels along the diagonal direction from the first reference line to the current reference line are used to filter the pixels in the first columns / rows of the current block unit. Specifically, after mode 2 prediction, the pixels in the first rows can be filtered by Equation 4-27. After mode 34 prediction, the pixels in the first columns can be filtered by Equation 4-28. m represents the reference line index for the current block and can be between 2 and 8. n is the number of right shift bits and can be between 2 and 8. W i is a weighting factor, which is an integer.
[0181]
number
[0182] FIG. 16 illustrates a flowchart 1600 according to an example embodiment.
[0183] In S1601, in case of multiple reference line intra prediction, when the reference line index is greater than 1, the modified DC and planar mode are added, where the index of the closest reference line is indicated by 1.
[0184] In S1602, in the case of planar mode, when different reference lines are used, different predefined top-right and bottom-left reference samples are used to generate prediction samples.
[0185] Alternatively, in S1603, when a different reference line is used, a different intra smoothing filter is used.
[0186] In S1604, in DC mode, for the first reference line, all of the pixels in the upper row and left column are used to calculate the DC value, and when the reference line index is greater than 1, only a portion of the pixels are used to calculate the DC value.
[0187] For example, the pixel above in the first reference line is used to calculate a DC value for the second reference line, the pixel to the left in the first reference line is used to calculate a DC value for the third reference line, and half of the left pixels and half of the pixels above in the first reference line are used to calculate a DC value for the fourth reference line.
[0188] In S1605, in case of DC mode, all reference pixels in all available candidate lines (rows and columns) are used to calculate the DC predictor.
[0189] FIG. 17 illustrates a flowchart 1700 according to an example embodiment.
[0190] S1701 is implemented to extend multiple reference lines to IC mode. In S1702, multiple top / left reference lines are used to calculate IC parameters, and in S1703, which reference lines are used to calculate IC parameters is signaled.
[0191] FIG. 18 illustrates a flowchart 1800 according to an example embodiment.
[0192] S1801 is implemented to signal multiple reference line indexes.
[0193] In one embodiment, in S1802, the reference line index is signaled using variable length coding. The closer to the current block, the shorter the codeword. For example, if the reference line indexes are 0, 1, 2, and 3, with 0 being the closest to the current block and 3 being the furthest, the codewords for these are 1, 01, 001, and 000, and 0 and 1 can be swapped.
[0194] In another embodiment, the reference line index is signaled using fixed length coding in S1806. For example, if the reference line indexes are 0, 1, 2, 3, with 0 being closest to the current block and 3 being farthest, the codewords for these are 10, 01, 11, 00, where 0 and 1 can be swapped and the order can be changed.
[0195] In S1803 it is considered whether to use different codeword tables, and if not, in S1804, in yet another embodiment, the reference line index is signaled using variable length coding, the order of indices in the codeword tables (from shortest codeword to longest codeword) being 0, 2, 4, ... 2k, 1, 3, 5, ... 2k+1 (or 2k-1), where index 0 indicates the reference line closest to the current block and 2k+1 is the furthest.
[0196] In another embodiment, in S1805, the reference line index is signaled using variable length coding, and the order of the indexes in the codeword table (from shortest codeword to longest) is closest, farthest, second closest, second farthest, etc. In one specific example, if the reference line indices are 0, 1, 2, 3, with 0 being closest to the current block and 3 being farthest, the codewords for these are 0 for index 0, 10 for index 3, 110 for index 2, and 111 for index 1. The codewords for reference line indices 1 and 2 may be swapped. The 0s and 1s in the codewords may be interchanged.
[0197] FIG. 19 illustrates a flowchart 1900 according to an example embodiment.
[0198] In S1901, when the number of top reference lines (rows) is different from the number of left reference lines (columns), signaling of multiple reference line indexes is performed.
[0199] In S1902, in one embodiment, when the number of top reference lines (rows) is M and the number of left reference lines (columns) is N, the reference line index for maximum (M,N) may use any of the methods described above or a combination thereof. The reference line index for minimum (M,N) is a subset of codewords, usually the shorter one, from the codewords used to indicate the reference line index for maximum (M,N). For example, when M=4 and N=2, and the codewords used to signal M(4) reference line indexes {0,1,2,3} are 1, 01, 001, 000, the codewords used to signal N(2) reference line indexes {0,1} are 1, 01.
[0200] In another embodiment, in S1903, when the number of top reference lines (rows) is M and the number of left reference lines (columns) is N, and M and N are different, the reference line indexes for signaling the top reference line (row) index and the left reference line (column) index are different, and any of the above-mentioned methods or combinations thereof may be used independently.
[0201] FIG. 20 illustrates a flowchart 2000 according to an example embodiment.
[0202] In S2000, knowing the number of reference lines in various encoding tools is taken into consideration, and in S2001, in order to conserve pixel line buffers if possible, a constraint may be imposed such that the maximum number of reference lines that may be used for intra prediction, such as intra prediction based on a deblocking filter or template matching, does not exceed the number of reference lines used in other encoding tools.
[0203] FIG. 21 illustrates a flowchart 2100 according to an example embodiment.
[0204] In S2100, multi-line intra prediction and its interaction with other coding tools / modes are performed.
[0205] For example, in S2101, in one embodiment, the use and / or signaling of other syntax elements / coding tools / modes, including but not limited to cbf, last position, transform skip, transform type, secondary transform index, primary transform index, PDPC index, may depend on the multiline reference line index.
[0206] In S2102, in one example, when the multiline reference index is non-zero, transform skip is not used and the transform skip flag is not signaled.
[0207] In S2103, in another example, the context used to signal other coding tools, such as transform skip, cbf, primary transform index, and secondary transform index, may depend on the value of the multiline reference index.
[0208] In S2104, in another embodiment, the multiline reference index may be signaled after other syntax elements including, but not limited to, cbf, last position, transform skip, transform type, secondary transform index, primary transform index, and PDPC index, and the use and / or signaling of the multiline reference index may depend on the other syntax elements.
[0209] FIG. 22 illustrates a flowchart 2200 according to an example embodiment.
[0210] In S2201, consideration is given to obtaining a reference line index, and in S2202, the reference line index can be used as a context for entropy coding other syntax elements, including, but not limited to, intra prediction modes, MPM indices, primary transform indices, secondary transform indices, transform skip flags, coded block flags (CBFs), and transform coefficients, and vice versa.
[0211] FIG. 23 illustrates a flowchart 2300 according to an example embodiment.
[0212] In S2301, it is proposed to include reference line information in the MPM list. That is, if the prediction mode of the current block is the same as one candidate in the MPM list, both intra prediction and the selected reference line of the selected candidate are applied to the current block, and the intra prediction mode and the reference line index are not signaled. Also, the number of MPM candidates for different reference line indexes is predefined. Here, the closest reference line is indicated by 1.
[0213] In S2302, in one embodiment, the number of MPMs for each reference line index is predefined, which can be signaled as a high-level syntax element such as a sequence parameter set (SPS), picture parameter set (PPS), slice header, tile header, coding tree unit (CTU) header, or as a common syntax element or parameter for a region of an image. As a result, the length of the MPM list may be different for different sequences, pictures, slices, tiles, groups of coding blocks, or regions of an image.
[0214] For example, the number of MPMs for reference line index 1 is 6, and the number of MPMs with each of the other reference line indexes is 2. As a result, if the total reference line number is 4, the total number of MPM lists is 12.
[0215] In another embodiment, in S2303, all intra prediction modes in the top, left, top left, top right, and bottom left blocks together with their reference line indexes are included in the MPM list. As shown in the diagram 2400 of Figure 24, all neighboring blocks of the current block unit are shown, where A is the bottom left block, B, C, D, and E are the left blocks, F is the top left block, G and H are the top blocks, and I is the top right block. After adding the modes of the neighboring blocks to the MPM list. If the number of MPM candidates with a given reference line number is less than a predefined number, a default mode is used to fill the MPM list.
[0216] In another embodiment, in S2304, if the mode of the current block is equal to one of the candidates in the MPM list, the reference line index is not signaled, and if the mode of the current block is not equal to any of the candidates in the MPM list, the reference line index is signaled.
[0217] In one example, if line 1 is used for the current block, the second level MPM mode is also used, but the second level MPM includes only intra prediction mode information.
[0218] In another example, the second level MPM is not used for other lines and fixed length coding is used to code the remaining modes.
[0219] FIG. 25 illustrates a flowchart 2500 according to an example embodiment.
[0220] In S2501, in the current VVC test mode VTM-1.0, the chroma intra coding modes are the same as those in HEVC, including DM (a direct copy of the luma mode) and four additional angular intra prediction modes, and in the current BMS-1.0, the cross component linear model (CCLM) mode is also applied to chroma intra coding. The CCLM modes include one LM mode, one multi-model LM (MMLM), and four multi-filter LM (MFLM) modes, because when the CCLM mode is not enabled, only the DM mode is used for chroma blocks, while when the CCLM mode is enabled, only the DM and CCLM modes are used for chroma blocks.
[0221] In S2502, in one embodiment, only one DM mode is used for a chroma block, no flag is signaled for the chroma block, and the chroma mode is derived as the DM mode.
[0222] In another embodiment, in S2503, only one DM and one CCLM mode are used for a chroma block, and one DM flag is used to signal whether the DM mode or the LM mode is used for the current chroma block.
[0223] In one sub-embodiment, there are three contexts used to signal the DM flag: when both the left block and the top block use DM mode, context 0 is used to signal the DM flag; when only one of the left block and the top block uses DM mode, context 1 is used to signal the DM flag; or when both the left block and the top block do not use DM mode, context 2 is used to signal the DM flag.
[0224] In another embodiment, in S2504, only DM and CCLM (when enabled) modes are used for small chroma blocks. The current chroma block is called a small chroma block when its width or height or region size (width*height) is less than or equal to Th. Th may be 2, 4, 8, 16, 32, 64, 128, 256, 512, or 1024.
[0225] For example, when the region size of the current chroma block is less than or equal to 8, only DM and CCLM (when enabled) modes are used for the current chroma block.
[0226] In another example, when the region size of the current chroma block is less than or equal to 16, only DM and CCLM (when enabled) modes are used for the current chroma block.
[0227] In another example, for small chroma blocks, only one DM and one CCLM (when enabled) mode is used.
[0228] In another embodiment, in S2505, when the intra mode of the luma component is equal to one of the MPM modes, the chroma block can only use DM mode, no flag is signaled for the chroma mode, or both DM and CCLM modes are allowed for the chroma block.
[0229] In one example, the MPM mode may be first level MPM only.
[0230] In another example, the MPM mode may be second level MPM only.
[0231] In another example, the MPM mode can be either a first level MPM or a second level MPM.
[0232] In another embodiment, in S2506, when the intra mode of the luma component is not equal to any MPM mode, the chroma block can use DM mode, no flag is signaled for the chroma mode, or both DM and CCLM modes are allowed for the chroma block.
[0233] Therefore, through the exemplary embodiments described herein, the above-mentioned technical problems may be advantageously improved by such technical solutions.
[0234] The techniques described above may be implemented as computer software using computer readable instructions, physically stored on one or more computer readable media, or executed by one or more specifically configured hardware processors. For example, Figure 26 illustrates a computer system 2600 suitable for implementing some embodiments of the disclosed subject matter.
[0235] Computer software can be encoded using any suitable machine code or computer language, which may follow mechanisms such as assembly, compilation, linking, etc. to produce code containing instructions that can be executed by a computer central processing unit (CPU), graphics processing unit (GPU), etc., directly, or via interpretation, microcode execution, etc.
[0236] The instructions may be executed in various types of computers or components thereof, such as personal computers, tablet computers, servers, smartphones, gaming consoles, and Internet of Things (IoT) devices.
[0237] 26 are exemplary in nature and are not intended to suggest any limitation to the scope of use or functionality of the computer software implementing the embodiments of the present disclosure. The arrangement of components should not be interpreted as having any dependency or requirement regarding any one or combination of components illustrated in the exemplary embodiment of computer system 2600.
[0238] The computer system 2600 may include several human interface input devices. Such human interface input devices may be responsive to input by one or more users, for example, by tactile input (pressing a key, swiping, moving a data glove, etc.), audio input (voice, clapping hands, etc.), visual input (gestures, etc.), olfactory input (not shown). The human interface devices may further be used to capture several media that do not necessarily involve direct conscious input by a person, such as audio (speech, music, ambient sounds, etc.), images (scanned images, photographic images captured by a still camera, etc.), video (two-dimensional video, three-dimensional video including stereoscopic video, etc.).
[0239] The input human interface devices may include one or more of a keyboard 2602, a mouse 2603, a trackpad 403, a touch screen 2604, a joystick 2605, a microphone 2606, a scanner 2608, and a camera 2607 (only one of each is shown).
[0240] The computer system 2600 may include a number of human interface output devices. Such human interface output devices may stimulate one or more of the user's senses, such as haptic output, sound, light, and smell / taste. Such human interface output devices may include haptic output devices (e.g., haptic feedback via a touch screen 2610, or joystick 2605, although there may also be haptic feedback devices that do not function as input devices), audio output devices (speakers 2609, headphones (not shown)), visual output devices (such as screens 2610 including CRT screens, LCD screens, plasma screens, OLED screens, each with or without touch screen input capability, each with or without haptic feedback capability, some of which may be capable of outputting output in more than three dimensions by means of two-dimensional video output, or stereoscopic output, etc., VR glasses (not shown), holographic displays, smoke tanks (not shown), and printers (not shown)).
[0241] The computer system 2600 may further include human-accessible storage devices and associated media therewith, including media 2611 such as CDs / DVDs, CD / DVD ROM / RW 2612, thumb-drive 2613, removable hard drives or solid state drives 2614, legacy magnetic media such as tapes and floppy disks (not shown), optical media including specialized ROM / ASIC / PLD based devices (not shown) such as security dongles.
[0242] Those skilled in the art should further appreciate that the term "computer-readable medium" as used with respect to the subject matter disclosed herein does not include transmission media, carrier waves or other transitory signals.
[0243] The computer system 2600 may further comprise an interface to one or more communication networks 2615. The network may be, for example, wireless, wired, optical. The network may further be local, wide area, metropolitan, in-vehicle and industrial, real-time, delay tolerant, etc. Examples of networks include local area networks such as Ethernet, mobile communication networks including wireless LAN, GSM, 3G, 4G, 5G, LTE, etc., wired or wireless wide area digital networks including cable, satellite, and terrestrial television, in-vehicle and industrial networks including CANBus, etc. Some networks typically require an external network interface adapter attached to some general-purpose data port or peripheral bus 2625 (e.g., USB port of the computer system 2600), while other networks are typically integrated into the core of the computer system 2600 by attaching to the system bus (e.g., an Ethernet interface to a PC computer system, or a mobile communication network interface to a smartphone computer system) as described below. Using any such network, the computer system 2600 can communicate with other entities. Such communications may be one-way, receive-only (e.g., television broadcast), one-way transmit-only (e.g., a device transmitting from the CANbus to the CANbus), or bidirectional to other computer systems, for example, using local or wide area digital networks. As previously mentioned, several protocols and protocol stacks may be used for each such network and each network interface.
[0244] The human interface devices, human accessible storage, and network interfaces described above may be attached to the core 2612 of the computer system 2600 .
[0245] The core 2612 may include one or more central processing units (CPUs) 2612, graphic processing units (GPUs) 2622, specialized programmable processing units 2624 in the form of Field Programmable Gate Areas (FPGAs), hardware accelerators 2624 for some tasks, etc. Such devices may be connected via a system bus 2626, along with read only memory (ROM) 2619, random access memory 2618, internal mass storage such as internal non-user accessible hard drives, SSDs, etc. 447. In some computer systems, the system bus 226 may be accessible in the form of one or more physical plugs to allow expansion with additional CPUs, GPUs, etc. Peripheral devices may be attached directly to the core's system bus 2626 or via a peripheral bus 2601. Peripheral bus architectures include PCI, USB, etc.
[0246] The CPU 2621, GPU 2622, FPGA 2624, and accelerator 2624 may execute a combination of instructions that may make up the computer code described above. The computer code may be stored in ROM 2619 or RAM 2618. Transient data may also be stored in RAM 2618, whereas persistent data may be stored, for example, in internal mass storage device 2620. A cache memory may be used to allow quick storage and retrieval of any memory device, which may be closely associated with one or more of the CPU 2621, GPU 2622, mass storage device 2620, ROM 2619, RAM 2618, etc.
[0247] The computer-readable medium can bear computer code for performing various computer-implemented operations. The medium and computer code can be those specially designed and constructed for the purposes of the present disclosure, or they can be of the kind well known and available to those skilled in the computer software arts.
[0248] By way of example and not of limitation, the architecture 2600, and in particular a computer system having the core 2616, can provide functionality as a result of processor(s) (CPU, GPU, FPGA, accelerator, etc.) executing software embodied in one or more tangible computer-readable media. Such computer-readable media may be user-accessible mass storage devices as introduced above, as well as media associated with some storage devices of the core 2616 that are non-transitory in nature, such as the core internal mass storage device 2620 or ROM 2619. Software implementing various embodiments of the present disclosure can be stored in such devices and executed by the core 2616. The computer-readable media can include one or more memory devices or chips according to particular needs. The software can cause the core 2616, and in particular the processors therein (including the CPU, GPU, FPGA, etc.) to perform certain operations, or certain portions of certain operations, described herein, including the definition of data structures stored in RAM 2618 and the modification of such data structures according to software-defined operations. Additionally or alternatively, a computer system may provide functionality as a result of logic hardwired into or embodied in circuitry (e.g., accelerator 2624), which may operate in place of or in conjunction with software to perform certain operations, or portions of certain operations, described herein. References to software may encompass logic, where appropriate, and vice versa. References to computer-readable media may encompass circuitry (such as integrated circuits (ICs)) that store software for execution, where appropriate, circuitry embodying logic for execution, or both. The present disclosure encompasses any suitable combination of hardware and software.
[0249] While this disclosure has described several exemplary embodiments, there are alterations, substitutions, and various substitute equivalents, which are within the scope of this disclosure. Thus, it will be appreciated that those skilled in the art will be able to devise many systems and methods that embody the principles of the present disclosure and are therefore within its scope, even if not explicitly shown or described herein.
[0250] (Appendix 1) 1. A method for decoding video footage executed by at least one processor, comprising: the at least one processor: performing decoding of a video sequence by intra prediction between a plurality of reference lines of the video sequence; setting a plurality of intra prediction modes for a zero reference line among a plurality of non-zero reference lines that is closest to the current block of the intra prediction; setting at least one most probable mode for one of the plurality of non-zero reference lines; The method includes: (Appendix 2) signaling a reference line index before signaling a most probable mode flag and an intra prediction mode; signaling said reference line index and, in response to determining that the signaled index indicates said zero reference line, signaling said most probable mode flag; signaling the reference line index, and in response to determining that the signaled index indicates at least one of the plurality of non-zero reference lines, deriving the most probable mode flag to be true without signaling the most probable mode flag, and signaling a most probable mode index for the current block. 2. The method of claim 1, further comprising: (Appendix 3) the at least one most probable mode for the non-zero reference line is included in a most probable mode list; 2. The method of claim 1, wherein at least one of a planar mode and a DC mode is excluded from the most probable mode list corresponding to any one of the non-zero reference lines. (Appendix 4) setting a length of the most probable mode list based on a reference line index value, such that the length of the most probable mode list includes a number of the at least one most probable mode. The method of claim 3, further comprising: (Appendix 5) 5. The method of claim 4, wherein the length of the most probable list of a reference line having an index value of 1 is set to be different from the length of the most probable list of a reference line having an index value greater than 1. (Appendix 6) 5. The method of claim 4, wherein the length of the most probable mode list for a reference line having an index value greater than 1 is one less than the length of the most probable mode list for a reference line having an index value of 1. (Appendix 7) in response to detecting the non-zero reference line, setting the length of the most probable mode list to either 1 or 4; in response to determining that the current reference line is a zero reference line, setting the length of the most probable mode list to 3 or 6; The method of claim 4, further comprising: (Appendix 8) in response to detecting the non-zero reference line, setting the length of the most probable mode list to consist of five most probable modes; in response to the current reference line being a non-zero reference line, setting a length of the corresponding most probable mode list to six; The method of claim 4, further comprising: (Appendix 9) 9. The method of any one of claims 1 to 8, wherein one of the non-zero reference lines is a line adjacent to the current block and is farther away from the current block than the zero reference line. (Appendix 10) 10. The method of any one of claims 1 to 9, wherein the at least one most probable mode comprises a first level most probable mode. (Appendix 11) 11. The method of any one of claims 1 to 10, wherein the at least one most probable mode includes any level of most probable mode from a lowest level of most probable mode to a highest level of most probable mode. (Appendix 12) 11. The method of any one of claims 1 to 10, wherein the at least one most probable mode includes only most probable mode levels allowed for the non-zero reference line. (Appendix 13) at least one memory configured to store computer program code; at least one hardware processor configured to access said computer program code and to act as instructed by said computer program code to perform the method according to any one of claims 1 to 12; An apparatus comprising: (Appendix 14) A computer program product for causing a computer to carry out the method according to any one of claims 1 to 12. [Explanation of symbols]
[0251] 100 Communication Systems 101 Terminal 102 Terminals 103 Terminal 104 Terminals 105 Network 200 Decoder 201 Video Source 202 encoder 203 Acquisition Subsystem 204 Video Bitstream 205 Streaming Server 206 Copying the Encoded Video Bitstream 207 Streaming Client 208 Copying the encoded video bitstream 209 Display device 210 Video Sample Stream 211 Video Decoder 212 Streaming Client 213 Video Sample Stream 300 Decoder 301 Channel 302 Receiver 303 Buffer Memory 304 Parser 305 Scaler / Descaler Unit 306 Motion Compensation Prediction Unit 307 Intra Image Prediction Unit 308 Reference Image Buffer 309 Current Reference Image 310 Aggregation Device 311 Loop Filter Unit 312 Display device 313 Symbols 400 encoder 401 Video Source 402 Controller 403 Source Encoder 404 Predictor 405 Reference Image Memory 406 Decoder 407 Encoding Engine 408 Entropy Encoder 409 Transmitter 410 Encoded Video Sequences 411 Communication Channels 2600 Computer Systems 2601 Local Bus 2602 Keyboard 2603 Trackpad 2604 Mouse 2605 Joystick 2606 Mike 2607 Camera 2608 Scanner 2609 Audio output device 2610 Touch Screen 2611 Medium 2612 CD / DVD ROM / RW 2613 USB memory 2614 Solid State Drive 2615 Communication Networks 2616 Cores 2617 Graphics Adapter 2618 Random Access Memory (RAM) 2619 Read-only memory (ROM) 2620 Internal Mass Storage 2621 CPU 2622 GPU 2624 FPGA 2624 Accelerator 2625 Surrounding bus 2626 System Bus [Prior art documents] [Patent documents]
[0252] [Patent Document 1] International Publication No. 2018 / 070267
Claims
1. A method executed by at least one processor of an encoder, comprising: generating a bitstream by performing an encoding method comprising: performing encoding of a video sequence of a video image by intra prediction between a plurality of reference lines of the video sequence; storing the bitstream in a storage device; The encoding method includes: determining a plurality of intra prediction modes for a zero reference line among the plurality of reference lines that is closest to the current block of the intra prediction; determining a length of a most probable mode list based on a reference line index value; determining at least one most probable mode included in the most probable mode list for one of one or more non-zero reference lines included in the plurality of reference lines; A method comprising:
2. The method of claim 1 , wherein for the non-zero reference line, a most probable mode index of the current block is signaled to a decoder receiving the bitstream.
3. the at least one most probable mode for the non-zero reference line is included in a most probable mode list; The method of claim 1 , wherein at least one of a planar mode and a DC mode is excluded from the most probable mode list corresponding to any one of the non-zero reference lines.
4. The method of claim 1 , wherein a length of the most probable mode list of the zero reference line is different from a length of the most probable mode list of the non-zero reference line.
5. The method of claim 1 , wherein a length of the most probable mode list for the non-zero reference line is one less than a length of a most probable mode list for the zero reference line.
6. 2. The method of claim 1, wherein a most probable mode list for the zero reference line has a length of six, and a most probable mode list for the non-zero reference line has a length of five.
7. at least one memory configured to store computer program code; at least one hardware processor configured to access said computer program code and to act as instructed by said computer program code to perform the method of any one of claims 1 to 6; An apparatus comprising:
8. A computer program product for causing a computer to carry out the method according to any one of claims 1 to 6.