Video encoding method, video encoding device and computer readable medium
By dividing video data blocks into L-shaped partitions in video encoding and using adjacent reconstructed sample chains for intra-frame prediction, the problem of coordination between L-shaped partitions and multi-reference line prediction modes is solved, and the efficiency and quality of video coding are improved.
Patent Information
- Application Number
- CN202080063708.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-08-14
- Filing Date
- 2020-11-09
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-11-09
AI Technical Summary
In the existing technology, it is difficult to effectively coordinate the relationship between L-shaped partitioning and multi-reference line prediction modes in video coding, resulting in low efficiency of intra-frame prediction.
The processor is configured through the computer program code to obtain video data blocks and divide them into L-shaped partitions and rectangular partitions, and use adjacent reconstructed sample chains as reference samples for intra-frame prediction. The reference sample chain includes multiple horizontal and vertical reference lines, And in bidirectional prediction mode, the weighted sum of the reference sample chain is used to generate the predictor.
The intra-frame prediction efficiency of video coding is improved, the encoder's prediction ability of video data is enhanced, and the coding quality is improved.
Smart Images

Figure CN114365499B_ABST
Abstract
Description
[0001] Incorporation by reference
[0002] This application claims the benefit of priority to U.S. Provisional Patent Application No. 63 / 007,852, filed on April 9, 2020, and to U.S. Patent Application No. 16 / 993,491, filed on August 14, 2020, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present application relates to a set of advanced image and video coding techniques, and more particularly to an intra-coding scheme using one or more L-shaped partition trees according to exemplary embodiments. Background Art
[0004] AOMedia Video 1 (AV1) is an open video coding format designed for video transmission over the Internet. AV1 was developed as a successor to VP9 by the Alliance for Open Media (AOMedia), a consortium formed in 2015 that includes semiconductor companies, video-on-demand providers, video content producers, software development companies, and web browser vendors. Many components of the AV1 project came from previous research work by members of the consortium. Individual contributors had started experimental technology platforms several years earlier: Xiph / Mozilla's Daala had released code in 2010, Google's experimental VP9 evolution project VP10 was released on September 12, 2014, and Cisco's Thor was released on August 11, 2015. Building on the VP9 codebase, AV1 incorporates other technologies, some of which were developed in these experimental formats. The first version 0.1.0 of the AV1 reference codec was released on April 7, 2016. The consortium announced the release of the AV1 bitstream specification, along with a software-based reference encoder and reference decoder on March 28, 2018. On June 25, 2018, a validated version 1.0.0 of the specification was released, and on January 8, 2019, a validated version 1.0.0 of the specification with Errata 1 was released. The AV1 bitstream specification includes a reference video codec.
[0005] 10A depicts a simplified block diagram 1000 of aspects of block partitioning using VP9 using a 4-way partition tree starting at the 64x64 level at block 1002 in block 1001 to the 4x4 level, with some additional restrictions for blocks 8x8 and below at level 1003. Note that according to an exemplary embodiment, the partitioning designated as R may be referred to as recursive in that the same partition tree may be repeated at lower scales until the lowest 4x4 level is reached.
[0006] FIG. 10B depicts a simplified block diagram 1010 of aspects of block partitioning using AV1, which not only expands this partitioning tree to a 10-way structure at level 1004 as shown in FIG. 10B , but also increases the maximum size (referred to as a superblock in VP9 / AV1 parlance) to start at 128x128 at block 1021 in block 1020. Note that, according to an exemplary embodiment, level 1004 includes 4:1 / 1:4 rectangular partitions that do not exist in VP9 as described above, and none of these rectangular partitions can be further subdivided. Furthermore, AV1 adds more flexibility to using partitions at levels lower than 8x8, for example, in the sense that 2x2 chroma inter prediction is therefore possible in some cases.
[0007] According to an embodiment of High Efficiency Video Coding (HEVC), a Coding Tree Unit (CTU) is divided into Coding Units (CU) by using a quadtree structure represented as a coding tree to adapt to various local features. It is determined at the CU level whether to use inter-image (temporal) prediction or intra-image (spatial) prediction to encode the image area. Each CU can be further divided into one, two or four PUs according to the prediction unit (PU) partition type. Within a PU, the same prediction process is applied, and the relevant information is transmitted to the decoder on a PU basis. After obtaining the residual block by applying a prediction process based on the PU partition type, the CU can be divided into transform units (TU) according to another quadtree structure (e.g., a coding tree for a CU). One of the key features of the HEVC structure is that it has multiple partition concepts including CU, PU, and TU. In HEVC, for inter-frame prediction blocks, CU or TU can only be square, while PU can be square or rectangular. In HEVC, a coding block can be further divided into four square sub-blocks, and each sub-block (ie, TU) can be transformed. Each TU can be further recursively divided (using quadtree division) into smaller TUs, which is called a residual quad-tree (RQT).
[0008] At picture boundaries, HEVC uses implicit quadtree partitioning so that blocks will remain quadtree-partitioned until the size fits the picture boundary.
[0009] Figure 11A depicts a simplified block diagram 1100 of a multi-type-tree (MTT) structure 1101 included in Versatile Video Coding (VVC), which is a combination of the illustrated quadtree (QT) with nested binary trees (BT) and ternary trees (TT). The CTU or CU is first recursively partitioned into square blocks by the QT. Each QT leaf can then be further partitioned by BT or TT, where BT and TT partitions can be applied recursively and interleaved, but QT partitions cannot be further applied. In all relevant proposals, TT partitions a rectangular block vertically or horizontally into three blocks using a ratio of 1:2:1 (thereby avoiding non-power-of-two widths and heights). In order to prevent partition emulation, additional partitioning constraints are usually imposed on MTT, such as Fig. 11B As shown in the simplified diagram 1102 of FIG. 1 , the QT-BT-TT block partitioning in VVC about block 1103 (quadruple), block 1104 (binary, JEM) and block 1105 (triple) is performed to avoid duplicate partitions (e.g., vertical / horizontal binary partitioning is prohibited on the middle partition generated by the vertical / horizontal ternary partitioning). Further restrictions can be set on the maximum depth of BT and TT.
[0010] VP9 supports 8 directional modes, corresponding to angles from 45 degrees to 207 degrees. In order to exploit a wider variety of spatial redundancies in directional textures, in AV1, directional intra modes are extended to a finer granularity set of angles. The original 8 angles are slightly modified to be nominal angles, as shown in FIG. 14 for a simplified diagram 1400 of intra prediction modes in AVI and more specifically for directional intra prediction in AVI, and the 8 nominal angles are named V_PRED1401, H_PRED1402, D45_PRED1403, D135_PRED1405, D113_PRED1406, D157_PRED1407, D203_PRED1408, and D67_PRED1404. According to an embodiment, for each nominal angle, there may be 7 finer angles, so AV1 has a total of 56 directional angles. The predicted angle is represented by the nominal inner angle plus the angle increment, that is, -3 to 3 times the 3-degree step. In AV1, 8 nominal modes and 5 non-angular smooth modes are first signaled, and then if the current mode is an angular mode, an index is further signaled to indicate the angle increment relative to the corresponding nominal angle. In order to implement directional prediction modes in AV1 in a common way, all 56 directional intra-frame prediction modes in AV1 are implemented using a unified directional predictor that projects each pixel to a reference sub-pixel position and interpolates the reference pixel through a 2-tap bilinear filter.
[0011] In AV1, there are 5 non-directional smooth intra-frame prediction modes, namely DC, PAETH, SMOOTH, SMOOTH_V and SMOOTH_H. For DC prediction, the average value of the left and above neighboring samples is used as the predictor of the block to be predicted. For the PAETH predictor, the reference samples of the top, left and top-left are first obtained, and then the value closest to (top + left - top-left) is set as the predictor of the pixel to be predicted. The simplified block diagram 1500 of the non-directional smooth intra-frame predictor in AVI in Figure 15 shows the positions of the top, left and top-left samples of a pixel in the current block. For SMOOTH, SMOOTH_V and SMOOTH_H modes, blocks are predicted using quadratic interpolation in the vertical or horizontal direction or by averaging in two directions.
[0012] In order to capture the attenuated spatial correlation of edge references, a FILTER INTRA mode for luma blocks is designed. Five filter intra modes are defined for AV1, each represented by a set of 8 7-tap filters to reflect the correlation between the pixels in a 4x2 patch and its 7 neighboring pixels. In other words, the weight factor of the 7-tap filter is position-dependent. Taking an 8x8 block as an example, it is divided into 8 4x2 patches, which is shown in a simplified block diagram 1600 of the intra predictor feature based on recursive filtering in FIG16 . These patches are represented by B0, B1, B2, B3, B4, B5, B6, and B7 in FIG16 . For each patch, its 7 neighboring blocks (represented by R0 to R6) are used to predict the pixels in the current patch. For patch B0, all neighboring blocks are reconstructed. However, for other patches, not all neighboring blocks are reconstructed, and the predicted values of the direct neighboring blocks are used as references. For example, all neighboring blocks of small block B7 are not reconstructed, so according to an embodiment, prediction samples of neighboring blocks (ie, B5 and B6) are used instead.
[0013] Chroma from Luma (CfL) is an intra-frame predictor for chroma only, which models chroma pixels as linear functions of coincident reconstructed luminance pixels. The CfL prediction is expressed as follows:
[0014] CfL(α)=α×L AC +DC (Equation 1)
[0015] Among them, L AC represents the alternate current (AC) contribution of the luma component, α represents the parameters of the linear model, and DC represents the direct current (DC) contribution of the chroma component. Specifically, the reconstructed luma pixels are subsampled to the chroma resolution, and then the average value is subtracted to form the AC contribution. In order to approximate the chroma AC component by the AC contribution, instead of requiring the decoder to calculate the scaling parameters as in some existing technologies, AV1 CfL determines the parameter α based on the original chroma pixels and signals the parameter α in the bitstream. This reduces the complexity of the decoder and produces more accurate predictions. As for the DC contribution of the chroma component, the intra-frame DC mode is used for calculation, which is sufficient for most chroma content and is mature and can be implemented quickly.
[0016] Multi-line intra prediction is proposed to use more reference lines for intra prediction, and the encoder decides and signals which reference line is used to generate the intra predictor. The reference line index is signaled before the intra prediction mode, and in the case of a non-zero reference line index being signaled, only the most probable mode is allowed. As shown in the simplified diagram 1700 of the multi-line intra prediction mode shown in FIG17 , an example of 4 reference lines (reference line 0 (1711), reference line 1 (1712), reference line 2 (1713), and reference line 3 (1714)) is depicted, wherein each reference line consists of four segments, i.e., segment A (1701), segment B (1702), segment C (1703), and segment D (1704). In addition, for ease of understanding, the reconstructed samples in different reference lines in FIG17 are filled with different patterns, and the multi-line intra prediction mode may also be referred to as a multiple reference line prediction (MRLP) mode.
[0017] For L-type partitions, as described more fully herein (e.g., in Fig.12 and other figures), one or more neighboring reconstructed samples may also be obtained from any one of the right and / or bottom sides, which may not be fully compatible with the intra prediction scheme that uses the top and left reference samples for prediction. In addition, for L-type partitioning, the neighboring reference samples may no longer form a straight line, so it may be necessary to solve the coordination problem between multi-reference row prediction (MRLP) and L-type partitioning so that MRLP and L-type partitioning can work simultaneously.
[0018] Therefore, technical solutions to these problems are needed. Summary of the invention
[0019] The present application includes a method and an apparatus, the apparatus including a memory configured to store a computer program code and one or more hardware processors configured to access the computer program code and operate according to the instructions of the computer program code. The computer program selection code is configured to cause the processor to execute the computer program code, which is configured to cause the processor to execute the acquisition code, the segmentation code, and the execution code. The acquisition code is configured to cause the processor to acquire a block of video data; the segmentation code is configured to cause the processor to segment the block into an L-shaped partition and a second partition, the second partition being one of a rectangular partition and another L-shaped partition; and the execution code is configured to cause the processor to perform intra-frame prediction of the L-shaped partition by using a reference sample chain as a reference sample, the reference sample chain including a chain of adjacent reconstructed samples.
[0020] According to an exemplary embodiment, the chain includes a plurality of horizontal reference lines and a plurality of vertical reference lines from reconstructed samples adjacent to the L-shaped partition.
[0021] According to an exemplary embodiment, a first vertical reference line among the plurality of vertical reference lines is directly connected to a first horizontal reference line among the plurality of horizontal reference lines, a first horizontal reference line among the plurality of horizontal reference lines is directly connected to a second vertical reference line among the plurality of vertical reference lines, a second vertical reference line among the plurality of vertical reference lines is directly connected to a second horizontal reference line among the plurality of horizontal reference lines, the first horizontal reference line among the plurality of horizontal reference lines and the second vertical reference line among the plurality of vertical reference lines are within a block, and the first vertical reference line among the plurality of vertical reference lines and the second horizontal reference line among the plurality of horizontal reference lines are outside the block.
[0022] According to an exemplary embodiment, the computer program selection code is further configured to cause the processor to execute the computer program code, the computer program code is configured to cause the processor to execute the mapping code, the mapping code is configured to cause the processor to map at least one sample of at least one of the plurality of horizontal reference lines to along a left column of the block, and to map at least one sample of at least one of the plurality of vertical reference lines to along a top row of the block.
[0023] According to an exemplary embodiment, the computer program selection code is further configured to cause the processor to execute a computer program code, which is configured to cause the processor to execute a mapping code, which is configured to cause the processor to map at least one sample line of at least one horizontal reference line of the plurality of horizontal reference lines to a top row along the block, and map at least one sample of at least one vertical reference line of the plurality of vertical reference lines to a top row along the block.
[0024] According to an exemplary embodiment, performing intra prediction includes projecting samples of the L-shaped partition to at least one of a vertical side and a horizontal side of a reference sample chain.
[0025] According to an exemplary embodiment, the computer program selection code is further configured to cause the processor to execute a computer program code, which is configured to cause the processor to execute an enabling code and a generating code. The enabling code is configured to cause the processor to enable a bidirectional prediction mode; the generating code is configured to generate a predictor for the current block of the second partition by using a weighted sum of a first part and a second part of a reference sample chain in the bidirectional prediction mode, wherein the first part and the second part of the reference sample chain are not adjacent to the current block, and the first part and the second part of the reference sample chain are located on the right and left sides of the current block, respectively.
[0026] According to an exemplary embodiment, a first portion of the reference sample chain is at the right and top of the current block, and a second portion of the reference sample chain is at the left and bottom of the current block.
[0027] According to an exemplary embodiment, a first one of the first part and the second part of the reference sample chain is within the block, and a second one of the first part and the second part of the reference sample chain is outside the block.
[0028] According to an exemplary embodiment, the L-shaped partition includes a first side and a second side opposite to the first side, the height of the first side is greater than the height of the second side; the L-shaped partition further includes a third side and a fourth side opposite to the third side, and the width of the third side is greater than the width of the fourth side. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Further features, nature and various advantages of the disclosed subject matter will become more apparent from the following detailed description and the accompanying drawings, in which:
[0030] Figure 1 is a schematic diagram of a diagram according to an embodiment.
[0031] Figure 2 is a schematic diagram of a diagram according to an embodiment.
[0032] Figure 3 is a schematic diagram of a diagram according to an embodiment.
[0033] Figure 4 is a schematic diagram of a diagram according to an embodiment.
[0034] Figure 5 is a schematic diagram of a diagram according to an embodiment.
[0035] Figure 6 is a schematic diagram of a diagram according to an embodiment.
[0036] Figure 7 is a schematic diagram of a diagram according to an embodiment.
[0037] Figure 8 is a schematic diagram of a diagram according to an embodiment.
[0038] Fig. 9A is a schematic diagram of a diagram according to an embodiment.
[0039] Fig. 9B is a schematic diagram of a diagram according to an embodiment.
[0040] FIG. 10A is a schematic diagram of a graph according to the related art.
[0041] FIG. 10B is a schematic diagram of a graph according to the related art.
[0042] FIG. 11A is a schematic diagram of a graph according to the related art.
[0043] Fig. 11B is a schematic diagram of a diagram according to the related art.
[0044] Fig.12is a schematic diagram according to an embodiment.
[0045] Fig.13A is a schematic diagram according to an embodiment.
[0046] Fig. 13B is a schematic diagram according to an embodiment.
[0047] FIG. 14 is a schematic diagram of a graph according to the related art.
[0048] FIG. 15 is a schematic diagram of a graph according to the related art.
[0049] FIG. 16 is a schematic diagram of a graph according to the related art.
[0050] FIG. 17 is a schematic diagram of a graph according to the related art.
[0051] Fig.18 is a schematic diagram of a diagram according to an embodiment.
[0052] Fig.19 is a schematic diagram according to an embodiment.
[0053] Fig. 20 is a schematic diagram according to an embodiment.
[0054] Fig.21 is a schematic diagram according to an embodiment.
[0055] Fig. 22 is a schematic diagram according to an embodiment.
[0056] Fig.23 is a schematic diagram according to an embodiment.
[0057] Fig.24 is a schematic diagram according to an embodiment.
[0058] Fig.25 is a schematic diagram according to an embodiment.
[0059] Fig.26 is a schematic diagram according to an embodiment. Specific embodiments
[0060] The suggested features discussed below may be used alone or in any combination in any order. In addition, the embodiments may be implemented by processing circuits (e.g., one or more processors or one or more integrated circuits). In one example, one or more processors execute a program stored in a non-transitory computer-readable medium.
[0061] Figure 11 is a simplified block diagram of a communication system 100 according to an embodiment of the present application. The communication system 100 may include at least two terminals 102 and 103 interconnected by a network 105. For unidirectional transmission of data, the first terminal 103 may encode video data locally for transmission to the other terminal 102 via the network 105. The second terminal 102 may receive the encoded video data of the other terminal from the network 105, decode the encoded data and display the recovered video data. Unidirectional data transmission is more common in applications such as media services.
[0062] Figure 1 A second pair of terminals 101 and 104 is shown, which are provided to support bidirectional transmission of encoded video, such as may occur during a video conference. For bidirectional transmission of data, each of the terminals 101 and 104 may encode video data collected locally for transmission to the other terminal via the network 105. Each of the terminals 101 and 104 may also receive encoded video data sent by the other terminal, may decode the encoded data, and may display the recovered video data on a local display device.
[0063] exist Figure 1 In the embodiment of the present invention, terminal 101, 102, 103 and 104 can be shown as server, personal computer and smart phone, but the principle of the present application is not limited to this. Embodiments of the present application can be used for laptop computer, tablet computer, media player and / or special video conferencing equipment. Network 105 represents any number of networks that transmit encoded video data between terminal 101, 102, 103 and 104, including for example wired and / or wireless communication network. Communication network 105 can exchange data in circuit switching and / or packet switching channel. Representative network includes telecommunication network, local area network, wide area network and / or the Internet. For the purpose of this discussion, unless explained hereinafter, the architecture and topology of network 105 may be unimportant for the operation of the present application.
[0064] As examples of applications of the disclosed subject matter, Figure 2 The placement of the video encoder and decoder in a streaming environment is shown. The disclosed subject matter can be equally applicable to other video-enabled applications, including, for example, video conferencing, digital TV, storing compressed video on digital media including CDs, DVDs, memory sticks, etc., and the like.
[0065] The streaming system may include an acquisition subsystem 203, which may include a video source 201, such as a digital camera, which creates, for example, an uncompressed video sample stream 213. The sample stream 213 may be emphasized as a high data volume compared to an encoded video bitstream and may be processed by an encoder 202 coupled to the camera 201. The encoder 202 may include hardware, software, or a combination of hardware and software to enable or implement various aspects of the disclosed subject matter as described in more detail below. The encoded video bitstream 204 may be emphasized as a low data volume compared to the sample stream and may be stored on a streaming server 205 for future 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. The client 212 may include a video decoder 211 that decodes the incoming copy 208 of the encoded video bitstream and creates an output video sample stream 210 that may be displayed on a display 209 or other display device (not depicted). In some streaming systems, the video bitstreams 204, 206, and 208 may be encoded according to certain video encoding / compression standards. Examples of these standards are mentioned above and are further described herein.
[0066] Figure 3 It may be a functional block diagram of a video decoder 300 according to an embodiment of the present invention.
[0067] Receiver 302 may receive one or more coded video sequences to be decoded by decoder 300; in the same or another embodiment, one coded video sequence is received at a time, wherein the decoding of each coded video sequence is independent of the decoding of other coded video sequences. The coded video sequence may be received from channel 301, which may be a hardware / software link to a storage device storing coded video data. Receiver 302 may receive coded video data and other data, such as coded audio data and / or auxiliary data streams, which may be forwarded to their respective use entities (not depicted). Receiver 302 may separate the coded video sequence from other data. To prevent network jitter, buffer memory 303 may be coupled between receiver 302 and entropy decoder / parser 304 (hereinafter referred to as "parser"). When receiver 302 receives data from a storage / forwarding device with sufficient bandwidth and controllability or from a synchronous network, buffer memory 303 may not need to be configured, or buffer memory 303 may be made very small. For use on traffic packet networks such as the Internet, a buffer memory 303 may also be required, which may be relatively large and may advantageously have an adaptive size.
[0068] The video decoder 300 may include a parser 304 to reconstruct symbols 313 from an entropy-coded video sequence. The categories of these symbols include information for managing the operation of the decoder 300, and potential information for controlling a display device (e.g., display 312), which is not an integral part of the decoder but may be coupled to the decoder. The control information for the display device may be in the form of a Supplementary Enhancement Information (SEI) or a Video Usability Information (VUI) parameter set fragment (not depicted). The parser 304 may parse / entropy decode the received coded video sequence. The encoding of the coded video sequence may be performed according to a video coding technique or standard, and may follow principles well known to those skilled in the art, including variable length coding, Huffman coding, arithmetic coding with or without context sensitivity, and the like. The parser 304 may extract a subgroup parameter set for at least one of the subgroups of pixels in the video decoder from the coded video sequence based on at least one parameter corresponding to the group. Subgroups may include Groups of Pictures (GOP), pictures, tiles, slices, macroblocks, coding units (CU), blocks, transform units (TU), prediction units (PU), etc. The entropy decoder / parser may also extract information such as transform coefficients, quantizer parameter values, motion vectors, etc. from the encoded video sequence.
[0069] The parser 304 may perform entropy decoding / parsing operations on the video sequence received from the buffer memory 303, thereby creating symbols 313. The parser 304 may receive the encoded data and selectively decode specific symbols 313. In addition, the parser 304 may determine whether certain symbols 313 are to be provided to the motion compensation prediction unit 306, the scaler / inverse transform unit 305, the intra prediction unit 307, or the loop filter 311.
[0070] The reconstruction of the symbol 313 may involve a number of different units, depending on the type of coded video picture or portion thereof (e.g., inter- and intra-pictures, inter- and intra-blocks) and other factors. Which units are involved and how they are involved may be controlled by subgroup control information parsed from the coded video sequence by the parser 304. For the sake of brevity, such subgroup control information flow between the parser 304 and the various units described below is not depicted.
[0071] In addition to the functional blocks already mentioned, decoder 300 can be conceptually subdivided into several functional units as described below. In a practical implementation that operates under commercial constraints, many of these units interact closely with each other and can be at least partially integrated with each other. However, for the purpose of describing the disclosed subject matter, it is appropriate to conceptually subdivide into the functional units below.
[0072] The first unit is the sealer / inverse transform unit 305. The sealer / inverse transform unit 305 receives the quantized transform coefficients as symbols 313 from the parser 304, as well as control information, including which transform method to use, block size, quantization factor, quantization scaling matrix, etc. The sealer / inverse transform unit 305 may output a block including sample values, which may be input into the aggregator 310.
[0073] In some cases, the output samples of the sealer / inverse transform 305 may belong to an intra-coded block; that is, a block that does not use predictive information from a previously reconstructed image, but may use predictive information from a previously reconstructed portion of the current image. Such predictive information may be provided by an intra-image prediction unit 307. In some cases, the intra-image prediction unit 307 generates a block of the same size and shape as the block being reconstructed using surrounding reconstructed information extracted from the current (partially reconstructed) image 309. In some cases, the aggregator 310 adds the prediction information generated by the intra-frame prediction unit 307 to the output sample information provided by the sealer / inverse transform unit 305 on a per-sample basis.
[0074] In other cases, the output samples of the scaler / inverse transform unit 305 may belong to an inter-frame coded and potentially motion compensated block. In this case, the motion compensated prediction unit 306 may access the reference image buffer 308 to extract samples for prediction. After the extracted samples are motion compensated according to the symbol 313 belonging to the block, these samples may be added to the output of the scaler / inverse transform unit (in this case referred to as residual samples or residual signal) by the aggregator 310, thereby generating output sample information. The motion compensated prediction unit may be controlled by the motion vector to obtain the predicted samples from the address in the reference image buffer, and the motion vector is provided to the motion compensation unit in the form of a symbol 313, which may have, for example, X, Y and reference image components. Motion compensation may also include interpolation of sample values extracted from the reference image memory when using sub-sample accurate motion vectors, motion vector prediction mechanisms, etc.
[0075] 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 filtering techniques controlled by parameters included in the coded video bitstream and available to the loop filter unit 311 as symbols 313 from the parser 304, however, the video compression techniques may also be responsive to meta-information obtained during decoding of a previous (in decoding order) portion of a coded picture or coded video sequence, and to previously reconstructed and loop filtered sample values.
[0076] The output of the loop filter unit 311 may be a sample stream, which may be output to a display device 312 and stored in a reference picture buffer 308 for subsequent inter-picture prediction.
[0077] Once fully reconstructed, certain coded pictures may be used as reference pictures for future prediction. Once a coded picture is fully reconstructed and the coded picture is identified as a reference picture (e.g., by parser 304), current reference picture 309 may become part of reference picture buffer 308 and new current picture memory may be reallocated before starting reconstruction of a subsequent coded picture.
[0078] The video decoder 300 may perform decoding operations according to a predetermined video compression technique, such as in the ITU-T H.265 standard. The encoded video sequence complies with the syntax specified by the video compression technique or standard used in the sense that the encoded video sequence complies with the syntax of the video compression technique or standard as specified in the video compression technique file or standard and in the profile of the video compression technique file or standard. For compliance, the complexity of the encoded video sequence is also required to be within the range defined by the hierarchy of the video compression technique or standard. In some cases, the hierarchy limits the maximum image size, the maximum frame rate, the maximum reconstruction sampling rate (measured in, for example, mega samples per second), the maximum reference image size, etc. In some cases, the limits set by the hierarchy may be further defined by the Hypothetical Reference Decoder (HRD) specification and the metadata of the HRD buffer management signaled in the encoded video sequence.
[0079] 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. The additional data may be used by the video decoder 300 to properly decode the data and / or more accurately reconstruct the original video data. The additional data may be in the form of, for example, temporal, spatial or signal-to-noise ratio (SNR) enhancement layers, redundant slices, redundant images, forward error correction codes, etc.
[0080] Figure 4 It may be a functional block diagram of the video encoder 400 according to an embodiment of the present application.
[0081] Encoder 400 may receive video samples from a video source 401 (not a part of the encoder), which may capture video images to be encoded by encoder 400 .
[0082] The video source 401 may provide a source video sequence in the form of a digital video sample stream to be encoded by a source encoder (403), which may have any suitable bit depth (e.g., 8-bit, 10-bit, 12-bit, ...), any color space (e.g., BT.601 Y CrCB, RGB, ...), and any suitable sampling structure (e.g., Y CrCb 4:2:0, Y CrCb 4:4:4). In a media service system, the video source 401 may be a storage device storing pre-prepared videos. In a video conferencing system, the video source 401 may be a camera that captures local image information as a video sequence. The video data may be provided as a plurality of separate images that are given motion when viewed sequentially. The image itself may be constructed as a spatial pixel array, where each pixel may include one or more samples depending on the sampling structure, color space, etc. used. The relationship between pixels and samples may be easily understood by those skilled in the art. The following description focuses on the samples.
[0083] According to an embodiment, the encoder 400 may encode and compress the images of the source video sequence into an encoded video sequence 410 in real time or under any other time constraints required by the application. Implementing the appropriate encoding speed is a function of the controller 402. The controller controls other functional units as described below and is functionally coupled to the other functional units. For the sake of brevity, the coupling is not shown in the figure. The parameters set by the controller may include rate control related parameters (image skipping, quantizer, lambda value of rate distortion optimization technology, etc.), image size, group of pictures (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 because these functions are related to the video encoder 400 optimized for a certain system design.
[0084] Some video encoders operate in what is readily recognizable to those skilled in the art as a "coding loop". As a simplified description, the coding loop may include an encoding portion of an encoder 402 (hereinafter referred to as a "source encoder"), which is responsible for creating symbols based on an input image to be encoded and a reference image, and a (local) decoder 406 embedded in the encoder 400, which reconstructs the symbols to create sample data in a manner similar to how the (remote) decoder creates sample data (since any compression between the symbols and the encoded video bitstream is lossless in the video compression techniques contemplated by the disclosed subject matter). The reconstructed sample stream is input to a reference image memory 405. Since the decoding of the symbol stream produces bit-accurate results that are independent of the decoder location (local or remote), the reference image buffer contents are also bit-accurate between the local encoder and the remote encoder. In other words, the reference image samples "seen" by the prediction portion of the encoder are exactly the same sample values that the decoder "sees" when using prediction during decoding. The basic principle of this reference image synchronization (and the drift that results when synchronization cannot be maintained, for example due to channel errors) is well known to those skilled in the art.
[0085] The operation of the "local" decoder 406 can be combined with the above Figure 3 The operation of the "remote" decoder 300 described in detail is the same. However, additional brief reference is made to Figure 4 , when symbols are available and the entropy encoder 408 and the parser 30 are capable of losslessly encoding / decoding the symbols into an encoded video sequence, 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 fully implemented in the local decoder 406.
[0086] At this point it can be observed that any decoder techniques other than parsing / entropy decoding present in the decoder must also be present in the corresponding encoder in substantially the same functional form. The description of encoder techniques can be simplified because encoder techniques are reciprocal to the decoder techniques described comprehensively. A more detailed description is only required in certain areas and is provided below.
[0087] During operation, source encoder 403 may perform motion compensated predictive coding, i.e., predictive coding of an input image with reference to one or more previously encoded images from a video sequence designated as "reference images." In this manner, encoding engine 407 encodes the differences between pixel blocks of an input image and pixel blocks of a reference image that may be selected as a prediction reference for the input image.
[0088] The local video decoder 406 can decode the encoded video data of the picture that can be designated as the reference picture based on the symbols created by the source encoder 403. The operation of the encoding engine 407 can advantageously be a lossy process. When the encoded video data is available at the video decoder ( Figure 4 When decoded at a remote video decoder (not shown), the reconstructed video sequence may typically be a copy of the source video sequence with some errors. The local video decoder 406 replicates the decoding process that may be performed by the video decoder on the reference picture and may cause the reconstructed reference picture to be stored in the reference picture cache 405. In this way, the encoder 400 may locally store a copy of the reconstructed reference picture that has common content (absent transmission errors) with the reconstructed reference picture to be obtained by the remote video decoder.
[0089] The predictor 404 may perform a prediction search on the encoding engine 407. That is, for a new image to be encoded, the predictor 404 may search the reference image memory 405 for sample data (as candidate reference pixel blocks) or certain metadata, such as reference image motion vectors, block shapes, etc., that may serve as appropriate prediction references for the new image. The predictor 404 may operate on a pixel block-by-pixel block basis based on sample blocks to find a suitable prediction reference. In some cases, as determined by the search results obtained by the predictor 404, the input image may have prediction references taken from multiple reference images stored in the reference image memory 405.
[0090] The controller 402 may manage encoding operations of the video encoder 403 , including, for example, setting parameters and subgroup parameters for encoding video data.
[0091] The outputs of all the above functional units may be entropy encoded in the entropy encoder 408. The entropy encoder performs lossless compression on the symbols generated by the various functional units according to techniques known to those skilled in the art, such as Huffman coding, variable length coding, arithmetic coding, etc., thereby converting the symbols into a coded video sequence.
[0092] Transmitter 409 may buffer the encoded video sequence created by entropy encoder 408 in preparation for transmission over communication channel 411, which may be a hardware / software link to a storage device where the encoded video data will be stored. Transmitter 409 may combine the encoded video data from video encoder 403 with other data to be transmitted, such as encoded audio data and / or auxiliary data streams (source not shown).
[0093] The controller 402 may manage the operation of the encoder 400. During encoding, the controller 402 may assign a certain coded picture type to each coded picture, but this may affect the coding techniques that may be applied to the corresponding picture. For example, a picture may generally be assigned to any of the following picture types:
[0094] An intra picture (I picture) may be a picture that can be encoded and decoded without using any other picture in the sequence as a prediction source. Some video codecs allow for different types of intra pictures, including, for example, Independent Decoder Refresh ("IDR") pictures. Those skilled in the art are aware of the variations of I pictures and their corresponding applications and features.
[0095] Predictive pictures (P pictures), which may be pictures that may be encoded and decoded using intra prediction or inter prediction, which uses at most one motion vector and a reference index to predict sample values for each block.
[0096] Bidirectional predictive pictures (B pictures), which can be pictures that can be encoded and decoded using intra-frame prediction or inter-frame prediction, which uses up to two motion vectors and reference indices to predict the sample values of each block. Similarly, multiple predictive pictures can use more than two reference pictures and associated metadata for reconstruction of a single block.
[0097] The source picture may typically be spatially subdivided into blocks of samples (e.g., blocks of 4×4, 8×8, 4×8, or 16×16 samples) and coded block by block. These blocks may be predictively coded with reference to other (already coded) blocks, which are determined by the coding allocation applied to the corresponding picture of the block. For example, a block of an I picture may be non-predictively coded, or the block may be predictively coded (spatial prediction or intra prediction) with reference to already coded blocks of the same picture. A block of a P picture may be predictively coded by spatial prediction with reference to one previously coded reference picture or by temporal prediction. A block of a B picture may be predictively coded by spatial prediction with reference to one or two previously coded reference pictures or by temporal prediction.
[0098] The video encoder 400 may perform encoding operations according to a predetermined video encoding technique or standard, such as ITU-T H.265 Recommendation. In operation, the video encoder 400 may perform various compression operations, including predictive encoding operations that exploit temporal and spatial redundancy in an input video sequence. Thus, the encoded video data may conform to the syntax specified by the video encoding technique or standard used.
[0099] In an embodiment, the transmitter 409 may transmit additional data when transmitting the encoded video. The source encoder 403 may include such data as part of the encoded video sequence. The additional data may include time / space / SNR enhancement layers, redundant images and slices and other forms of redundant data, SEI messages, VUI parameter set fragments, etc.
[0100] Figure 5 Figure 2 shows the intra prediction modes used in High Efficiency Video Coding (HEVC) and the Joint Exploration Model (JEM). To capture arbitrary edge directions present in natural video, the number of directional intra modes is extended from 33 used in HEVC to 65. The additional directional modes in JEM on top of HEVC are shown in Figure 2. Figure 5 As shown by the dashed arrows in the right figure of , and the planar mode and DC mode remain the same. These more dense directional intra prediction modes are applicable to all block sizes and luma and chroma intra prediction. Figure 5 As shown in FIG. 1 , the directional intra prediction mode associated with an odd intra prediction mode index, identified by a dotted arrow, is called an odd intra prediction mode. The directional intra prediction mode associated with an even intra prediction mode index, identified by a solid arrow, is called an even intra prediction mode. Figure 5 The directional intra prediction mode indicated by the solid or dashed arrow is also called angular mode.
[0101] In JEM, there are 67 intra prediction modes for luma intra prediction. To encode the intra modes, a most probable mode (MPM) list of size 6 is constructed based on the intra modes of neighboring blocks. If the intra mode is not in the MPM list, a flag is signaled to indicate whether the intra mode belongs to the selected mode. In JEM-3.0, there are 16 selected modes, which are uniformly selected according to every four corner modes. In JVET-D0114 and JVET-G0060, 16 secondary MPMs are derived to replace the uniformly selected modes.
[0102] Figure 6 N reference tiers for intra directional mode are shown, including block unit 611 , segment A 601 , segment B 602 , segment C 603 , segment D 604 , segment E 605 , segment F 606 , first reference tier 610 , second reference tier 609 , third reference tier 608 , and fourth reference tier 607 .
[0103] In HEVC and JEM and some other standards such as H.264 / AVC, the reference samples used to predict the current block are restricted to the nearest reference line (row or column). In the method of multi-reference line intra prediction, for the intra direction mode, the number of candidate reference lines (rows or columns) increases from 1 (ie, the nearest) to N, where N is an integer greater than or equal to 1. Figure 6 Taking a 4x4 prediction unit (PU) as an example, the concept of the multi-line intra directional prediction method is illustrated. The intra directional mode can arbitrarily select one of the N reference layers to generate the predictor. In other words, the predictor P(x, y) is generated from one of the reference samples S1, S2, ... SN. A signaling flag is used 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. Figure 6 , reference lines 610, 609, 608, and 607 are composed of six segments 601, 602, 603, 604, 605, and 606 and an upper left reference sample. In this article, the reference layer is also referred to as a reference line. The coordinates of the upper left pixel in the current block unit are (0, 0), and the coordinates of the upper left pixel in the first reference line are (-1, -1).
[0104] In JEM, for the luma component, neighboring samples used for intra prediction sample generation are filtered before the generation process. This filtering is controlled by the given intra prediction mode and transform block size. If the intra prediction mode is DC or the transform block size is equal to 4x4, the neighboring samples are not filtered. If the distance between the given intra prediction mode and the vertical mode (or horizontal mode) is greater than a predefined threshold, the filtering process is enabled. For neighboring sample filtering, a [1, 2, 1] filter and a bilinear filter are used.
[0105] The Position Dependent Intra Prediction Combination (PDPC) method is an intra prediction method that calls for a combination of unfiltered boundary reference samples and HEVC-style intra prediction with filtered boundary reference samples. Each prediction sample pred[x][y] at (x, y) is calculated as follows:
[0106] pred[x][y]=(wL*R -1,y +wT*R x,-1 +wTL*R -1,-1 +(64-wL-wT-wTL)*pred[x][y]+32)>>6
[0107] (Equation 2) Where R x,-1 , R -1,yRespectively represent the unfiltered reference samples located on the top and left of the current sample (x, y), R -1,-1 represents the unfiltered reference sample located at the upper left corner of the current block. The weights are calculated as follows,
[0108] wT=32>>((y<<1)>>shift) (Equation 3)
[0109] wL=32>>((x<<1)>>shift) (Equation 4)
[0110] wTL=-(wL>>4)-(wT>>4) (Equation 5)
[0111] Shift = (log2(width) + log2(height) + 2) >> 2 (Equation 6)
[0112] Figure 7 A graph 700 is shown of DC mode PDPC weights (wL, wT, wTL) for (0, 0) and (1, 0) positions within a 4x4 block. If PDPC is applied to DC, planar, horizontal and vertical intra modes, no additional boundary filters, such as the HEVC DC mode boundary filter or horizontal / vertical mode edge filters, are required. Figure 7 A reference sample R of PDPC applied to the upper right diagonal pattern is shown. x,-1 , R -1,y and R -1,-1 Definition. The prediction sample pred(x', y') is located at (x', y') in the prediction block. Reference sample R x,-1 The coordinate x of the reference sample is given by: x = x' + y' + 1, -1,y The coordinate y of is similarly given by: y=x'+y'+1.
[0113] Figure 8 A local illumination compensation (LIC) diagram 800 is shown, which performs illumination variation based on a linear model using a scaling factor a and an offset b. Local illumination compensation may be adaptively enabled or disabled for an inter-mode coded coding unit (CU).
[0114] When LIC is applied to a CU, the parameters a and b are derived using the least square error method using the neighboring samples of the current CU and the reference samples corresponding to the neighboring samples of the current CU. More specifically, Figure 8As shown, the sub-sampled (2:1 sub-sampling) neighboring samples of the CU and the corresponding samples in the reference image (which are identified by the motion information of the current CU or sub-CU) are used. IC parameters are derived and applied to each prediction direction separately.
[0115] When a CU is encoded in merge mode, the LIC flag is copied from the neighboring blocks in a manner similar to the motion information copying in merge mode; otherwise, the LIC flag is signaled for the CU to indicate whether LIC is applicable.
[0116] Fig. 9A The intra prediction modes used in HEVC are shown as 900. In HEVC, there are 35 intra prediction modes, of which mode 10 is a horizontal mode, mode 26 is a vertical mode, and modes 2, 18, and 34 are diagonal modes. The intra prediction modes are signaled by three most probable modes (MPMs) and 32 remaining modes.
[0117] Fig. 9B It is shown that in an embodiment of the general video coding (VVC), there are a total of 87 intra prediction modes, of which mode 18 is a horizontal mode, mode 50 is a vertical mode, and mode 2, mode 34 and mode 66 are diagonal modes. Modes -1 to -10 and modes 67 to 76 are called wide-angle intra prediction (WAIP) modes.
[0118] The prediction sample pred(x, y) at position (x, y) is predicted using a linear combination of the intra prediction mode (DC, planar, angular) and the reference samples according to the following PDPC expression:
[0119] pred(x,y)=(wL×R -1,y +wT×R x,-1 -wTL×R -1,-1 +(64-wL-wT+wTL)×pred(x,y)+32)>>6 (Equation 7)
[0120] Where R x,-1 , R -1,y Respectively represent the reference samples located at the top and left of the current sample (x, y), R -1,-1 Represents the reference sample located at the upper left corner of the current block.
[0121] For DC mode, for a block with two dimensions width and height, the weights are calculated as follows:
[0122] wT=32>>((y<<1)>>nScale), wL=32>>((x<<1)>>nScale), wTL=(wL>>4)+(wT>>4), (Equation 8)
[0123] Where nScale = (log2(width) – 2 + log2(height) – 2 + 2) >> 2, where wT represents the weight factor of the reference sample located on the upper reference line with the same horizontal coordinate, wL represents the weight factor of the reference sample located on the left reference line with the same vertical coordinate, wTL represents the weight factor of the reference sample at the upper left of the current block, nScale specifies the speed at which the weight factor decreases along the axis (wL decreases from left to right or wT decreases from top to bottom), that is, the weight factor decreasing rate, in the current design nScale is the same along the x-axis (from left to right) and the y-axis (from top to bottom). Where 32 represents the initial weight factor of the adjacent sample, which is also the top (left or upper left) weight assigned to the upper left sample in the current CB, and the weight factor of the adjacent sample in the PDPC process should be equal to or less than this initial weight factor.
[0124] For planar mode wTL=0, while for horizontal mode wTL=wT, and for vertical mode wTL=wL. PDPC weights can only be calculated by addition and shift. The value of pred(x, y) can be calculated in one step using Equation 2.
[0125] Fig.12 A simplified block diagram 1200 of an L-type partition is shown. Fig.12 As can be understood from the illustration of FIG. 1 , the L-shaped partition can divide the block into one or more L-shaped partitions and one or more rectangular partitions and / or one or more L-shaped partitions. An L-shaped (or L-shaped) partition is defined as the following shape, such as Fig.12 As shown, it has a height 1201, a width 1202, a shorter width 1203, and a shorter height 1204. In this document, a rotated L-shaped partition is also considered to be an L-shaped partition.
[0126] As mentioned above about Fig.12 As shown in the discussion of , several terms associated with L-shaped partitions include width, height, shorter width, and shorter height.
[0127] See below Fig.13A The simplified block diagram 1300 depicts an example of an L-type partition tree, wherein a block is partitioned into two partitions, including, for example, Fig.13A One L-shaped partition (Partition 1) and one rectangular partition (0) in any of the arrangements 1301, 1302, 1303, and 1304 shown in FIG.
[0128] Similarly, Fig. 13B A simplified diagram 1300B is shown in which blocks 1305 and 1306 may be partitioned into an L-shaped partition (Partition 1) and another L-shaped partition (Partition 0).
[0129] The exemplary embodiments of one or more L-shaped partitions herein may be used alone or in combination in any order. In this document, an L-shaped (or L-type) partition is defined as Fig.13A and Fig. 13B The shape shown, a rotated L-shaped partition will also be understood as an L-shaped partition.
[0130] According to the following discussion and Figure 14- Fig.26 In the exemplary embodiment shown, when a block is divided into a plurality of L-shape partitions (LP) and rectangular partitions (RP), the reference samples used to perform intra prediction of the L-shape partitions are from adjacent reconstructed samples of another LP or RP, and the adjacent reconstructed samples form a group of continuous samples, and the group of continuous samples forms a chain of arbitrary shapes instead of forming a horizontal and a vertical straight line. It should be understood that such reference samples are collectively referred to as a reference sample chain (RSC).
[0131] According to an exemplary embodiment, for example, using Fig.18 A simplified block diagram 1800, such as Fig.18 As shown, block A is divided into two partitions, one LP (denoted as "1") and one RP (denoted as "0"). To perform intra prediction on partition 1, Fig.18 The samples in the reconstructed sample chain (represented by shaded blocks in ) are used as reference samples.
[0132] For example, in an embodiment, when the samples ( Fig.18 When performing directional (or angular) intra prediction (e.g., c0 and c1 in RSC), the sample coordinates are projected to the RSC. If the sample coordinates are projected to the vertical side of the RSC, samples along the vertical direction (e.g., r0 and r1) are used to generate the predicted sample values. If the sample coordinates are projected to the horizontal side of the RSC, samples along the horizontal direction (e.g., r2 and r3) are used to generate the predicted sample values.
[0133] Furthermore, according to an embodiment, when performing MRLP, multiple RSCs are used instead of multiple reference lines, such as Fig.19 As shown in the example of simplified diagram 1900, four RSCs are used on the side of LP 1, and the samples within each RSC are labeled with the same corresponding texture for ease of understanding.
[0134] In an embodiment, when performing MRLP, non-adjacent reconstructed samples may be used, and only the reconstructed samples forming the top and left sides of a straight line may be used for intra prediction in MRLP, for example, see Fig. 20 A simplified diagram 2000 of FIG. 2000 in which the top sample and the left sample may include one or more samples that are not directly adjacent samples of the current block. Fig. 20 It will be appreciated that one or more textured samples are used to perform MRLP of LP(Partition 1).
[0135] In addition, regarding Fig.21 In another embodiment, when the right or bottom neighboring samples from different partitions (LP or RP) are reconstructed before the samples in the current block are reconstructed, the right and bottom neighboring samples can form RSC and be used to perform intra prediction. Fig.21 In the example shown, LP (Partition 1) is reconstructed before RP (Partition 0), so the samples (shown as shaded blocks) form the RSC and can be used for intra prediction of RP (Partition 0).
[0136] According to an exemplary embodiment, when performing a planar mode (defined in HEVC and VVC) or a SMOOTH mode, SMOOTH-H mode, SMOOTH-V mode (defined in AV1), if the right or bottom samples are reconstructed, these reconstructed samples can be directly used in the 4-tap interpolation values in the planar (or SMOOTH, SMOOTH-H, SMOOTH-V) mode, instead of extrapolating the right and bottom samples through the top and left reconstructed samples; and when performing a DC mode, not only the adjacent reconstructed samples above and on the left, but all available samples in the RSC (which may include the right and bottom reconstructed samples) can be used to generate a DC predictor.
[0137] In addition, in DC mode, not only the adjacent reconstructed samples above and on the left, but all available samples in RSC except the lower left and upper right (including the reconstructed samples on the right and bottom) can be used to generate the DC predictor. When performing boundary filtering (defined in HEVC) or PDPC (defined in VVC), not only the adjacent reconstructed samples above and on the left, but all available samples in RSC (including the reconstructed samples on the right and bottom) can be used to apply boundary filtering and PDPC prediction.
[0138] For example Fig. 22 2200, when reconstructed samples are available on both opposite sides, bidirectional intra prediction can be applied, such as Fig. 22 This is shown by the line drawn from partition 0 to the shaded area.
[0139] For example, when the left and right samples are reconstructed before the current block, the bidirectional prediction mode can be enabled, e.g. Fig. 22 As shown in FIG. 2200 of FIG. 2201 , the bidirectional prediction mode generates a predictor using a weighted sum of the left sample and the right sample along the class-level prediction direction. In one embodiment, when the left sample and the right sample are reconstructed before the current block, the bidirectional prediction mode is used instead of the class-level prediction. The bidirectional prediction mode generates a predictor using a weighted sum of the left sample and the right sample along the class-level prediction direction. Therefore, in the bidirectional prediction mode, the weighted sum of the first part and the second part of the shadow reference sample chain can be used to generate Fig. 22 The predictor of the current block in the rectangular partition 0 of , where the first part and the second part are from the right and left sides of the current block respectively and are not adjacent to the current block. Fig. 22 As shown, the reference sample chain surrounds the current block on at least three sides: left, top, and right. Fig. 22 The directions shown can be understood. Fig. 22 and 23 As shown, the first part of the reference sample chain is on the right and top of the current block, and the second part of the reference sample chain is on the left and bottom of the current block. Fig. 22 and 23 The reference sample chains are pointed to by corresponding arrows.
[0140] In addition, if Fig.23 As shown in Figure 2300, when the top and bottom samples are reconstructed before the current block, the bidirectional prediction mode can be enabled, which uses the weighted sum of the left and right samples along the vertical prediction direction to generate a predictor; when the top and bottom samples are reconstructed before the current block, the bidirectional prediction mode is used instead of the vertical prediction, which uses the weighted sum of the left and right samples along the vertical prediction direction to generate a predictor.
[0141] When a block is divided into several L-shaped partitions (LP) and rectangular partitions (RP), if the adjacent reconstructed samples form a random chain (RSC) instead of a horizontal and a vertical straight line, the samples in the RSC are first mapped to the top row and left column, so that the reference samples in these top rows and left columns can be used for intra prediction of the current block, such as Fig.24 2400 of FIG. 2400. According to an exemplary embodiment, the mapping of samples from the RSC to the top row and left column is performed along the intra prediction direction. Optionally, the mapping of samples from the RSC to the top row and left column is performed using a 2-tap bilinear filter or a 4-tap cubic filter or the nearest integer sample. Further optionally, as Fig.25 In the example shown in Figure 2500, all samples in the RSC can be mapped to the top row.
[0142] For example, about Fig.25 ,like Fig.25 As shown in , when the intra prediction direction is determined to be vertical-like, or when the intra prediction direction is determined to be horizontal-like, an embodiment may map all samples in the RSC to the top row.
[0143] Exemplary embodiments also include alternatives, such as all samples in the RSC can be mapped to the left column, or, for example, all samples in the RSC are mapped to the left column and top row only when the intra-frame prediction direction is determined to be horizontal-like. Similarly, alternative embodiments also include all samples in the RSC being mapped to the left column and top row only when the intra-frame prediction direction is determined to be vertical-like.
[0144] In view of such an embodiment, for an L-type partition, one or more adjacent reconstructed samples may also be obtained from any of the right side and / or the bottom side, and such samples may still be used even though the adjacent reference samples may no longer form a straight line.
[0145] Therefore, through the exemplary embodiments described herein, the above-mentioned technical problems can be advantageously improved through one or more of these technical solutions.
[0146] The techniques described above may be implemented as computer software or by one or more specifically configured hardware processors. The computer software uses computer-readable instructions and is physically stored in one or more computer-readable media. For example, Fig.26 A computer system 2600 suitable for implementing certain embodiments of the disclosed subject matter is shown.
[0147] Computer software may be encoded using any suitable machine code or computer language that may be subjected to assembly, compilation, linking or similar mechanisms to create code comprising instructions that may be executed directly by one or more computer central processing units (CPUs), graphics processing units (GPUs), etc., or through decoding, microcode, etc.
[0148] The instructions may be executed on various types of computers or components thereof, including, for example, personal computers, tablet computers, servers, smartphones, gaming devices, IoT devices, etc.
[0149] Fig.26 The components of the computer system 2600 shown are exemplary in nature and are not intended to impose any limitation on the scope of use or functionality of computer software implementing embodiments of the present application. The configuration of the components should not be interpreted as having any dependency or requirement related to any one or combination of components shown in the exemplary embodiment of the computer system 2600.
[0150] Computer system 2600 may include certain human-machine interface input devices. Such human-machine interface input devices may respond to input from one or more human users through, for example, tactile input (e.g., keystrokes, swipes, data glove movements), audio input (e.g., voice, clapping), visual input (e.g., gestures), olfactory input (not depicted). Human-machine interface devices may also be used to capture certain media that are not necessarily directly related to human conscious input, such as audio (e.g., voice, music, ambient sound), images (e.g., scanned images, photographic images obtained from a still image camera), videos (e.g., two-dimensional videos, three-dimensional videos including stereoscopic videos), etc.
[0151] The input human-machine interface device may include one or more of the following (only one of each is shown): keyboard 2601 , mouse 2602 , touch pad 2603 , touch screen 2610 , joystick 2605 , microphone 2606 , scanner 2608 , camera 2607 .
[0152] The computer system 2600 may also include certain human-machine interface output devices. Such human-machine interface output devices may stimulate one or more human user senses, for example, through tactile output, sound, light, and smell / taste. Such human-machine interface output devices may include tactile output devices (e.g., tactile feedback of a touch screen 2610, or a joystick 2605, but may also be a tactile feedback device that is not an input device), audio output devices (e.g., speakers 2609, headphones (not shown)), visual output devices (e.g., screens 2610 including CRT screens, LCD screens, plasma screens, OLED screens, each with or without touch screen input capabilities, each with or without tactile feedback capabilities, some of which are capable of outputting two-dimensional visual outputs or outputs exceeding three dimensions through devices such as stereoscopic image output, virtual reality glasses (not depicted), holographic displays and smoke boxes (not depicted), and printers (not depicted).
[0153] The computer system 2600 may also include human-accessible storage devices and their associated media: for example, optical media including CD / DVD ROM / RW 2620 with media such as CD / DVD 2611, thumb drive 2622, removable hard drive or solid state drive 2623, traditional magnetic media such as tapes and floppy disks (not shown), dedicated ROM / ASIC / PLD-based devices such as security software dogs (not shown), etc.
[0154] Those skilled in the art will also appreciate that the term "computer-readable media" used in connection with the presently disclosed subject matter does not encompass transmission media, carrier waves, or other transient signals.
[0155] The computer system 2600 may also include an interface 2699 to one or more communication networks 2698. The network 2698 may be, for example, a wireless network, a wired network, an optical network. The network may further be a local network, a wide area network, a metropolitan area network, a vehicle and industrial network, a real-time network, a delay-tolerant network, etc. Examples of the network 2698 include local area networks such as Ethernet, wireless LANs, cellular networks including GSM, 3G, 4G, 5G, LTE, etc., television wired or wireless wide area digital networks including cable television, satellite television, and terrestrial broadcast television, vehicle and industrial television including CANBus, etc. Some networks 2698 typically require an external network interface adapter (e.g., a USB port of the computer system 2600) connected to some general data ports or peripheral buses (2650 and 2651); as described below, other network interfaces are typically integrated into the kernel of the computer system 2600 by connecting to the system bus (e.g., connected to an Ethernet interface in a PC computer system or connected to a cellular network interface in a smartphone computer system). The computer system 2600 can communicate with other entities using any of these networks. Such communications may be one-way receive only (e.g., broadcast television), one-way send only (e.g., a CANbus connected to certain CANbus devices), or bidirectional, for example, using a LAN or WAN digital network to connect to other computer systems. As described above, certain protocols and protocol stacks may be used on each of those networks and network interfaces.
[0156] The above-mentioned human-machine interface device, human-machine accessible storage device, and network interface may be attached to the kernel 2640 of the computer system 2600 .
[0157] The core 2640 may include one or more central processing units (CPUs) 2641, graphics processing units (GPUs) 2642, dedicated programmable processing units in the form of field programmable gate arrays (FPGAs) 2643, hardware accelerators 2644 for certain tasks, and the like. These devices, as well as read-only memory (ROM) 2645, random access memory 2646, internal mass storage 2647 such as internal non-user accessible hard disk drives, SSDs, and the like, may be connected via a system bus 2648. In some computer systems, the system bus 2648 may be accessed in the form of one or more physical plugs to enable expansion by additional CPUs, GPUs, and the like. Peripheral devices may be connected directly to the core's system bus 2648 or to the core's system bus 2648 via a peripheral bus 2649. The architecture of the peripheral bus includes PCI, USB, and the like.
[0158] The CPU 2641, GPU 2642, FPGA 2643, and accelerator 2644 may execute certain instructions, which may be combined to form the above-mentioned computer code. The computer code may be stored in ROM 2645 or RAM 2646. Transitional data may also be stored in RAM 2646, while permanent data may be stored, for example, in internal mass storage 2647. Fast storage and retrieval to any storage device may be performed by using a cache, which may be closely associated with one or more CPUs 2641, GPUs 2642, mass storage 2647, ROM 2645, RAM 2646, etc.
[0159] The computer readable medium may have thereon computer codes for performing various computer-implemented operations. The medium and computer codes may be those specially designed and constructed for the purposes of the present disclosure, or the medium and computer codes may be of a type well known and available to those skilled in the art of computer software.
[0160] As a non-limiting example, a computer system having architecture 2600, particularly kernel 2640, may provide functionality due to one or more processors (including CPUs, GPUs, FPGAs, accelerators, etc.) executing software contained in one or more tangible computer-readable media. Such computer-readable media may be media associated with user-accessible mass storage as described above, as well as some non-temporary kernel 2640 memories, such as kernel internal mass storage 2647 or ROM 2645. Software implementing various embodiments of the present application may be stored in such devices and executed by kernel 2640. Depending on specific needs, the computer-readable medium may include one or more storage devices or chips. The software may enable kernel 2640, particularly the processors therein (including CPUs, GPUs, FPGAs, etc.) to perform specific processes or specific parts of specific processes described herein, including defining data structures stored in RAM 2646 and modifying such data structures according to processes defined by the software. Additionally or alternatively, a computer system may provide functionality due to logic hardwired or otherwise embodied in a circuit (e.g., accelerator 2644) that may replace software or operate in conjunction with software to perform a particular process or a particular portion of a particular process described herein. Where appropriate, a reference to a portion of software may include logic and vice versa. Where appropriate, a reference to a portion of a computer-readable medium may include a circuit (e.g., an integrated circuit (IC)) storing software for execution, a circuit embodying logic for execution, or both. The present application includes any suitable combination of hardware and software.
[0161] Although the present application has described a number of exemplary embodiments, there are modifications, permutations, and various replacement equivalents that fall within the scope of the present application. Therefore, it should be understood that those skilled in the art will be able to design many systems and methods that, although not explicitly shown or described herein, embody the principles of the present application and therefore fall within the spirit and scope of the present application.
Claims
1. A method for video encoding, performed by at least one processor, the method comprising: Get chunks of video data; dividing the block into an L-shaped partition and a second partition, the second partition being one of a rectangular partition and another L-shaped partition; as well as performing intra prediction of the L-shaped partition by using a reference sample chain as a reference sample, the reference sample chain comprising a chain of adjacent reconstructed samples, the chain comprising: a plurality of horizontal reference lines and a plurality of vertical reference lines from reconstructed samples adjacent to the L-shaped partition; A first vertical reference line of the plurality of vertical reference lines is directly connected to a first horizontal reference line of the plurality of horizontal reference lines, The first horizontal reference line of the plurality of horizontal reference lines is directly connected to a second vertical reference line of the plurality of vertical reference lines, The second vertical reference line of the plurality of vertical reference lines is directly connected to the second horizontal reference line of the plurality of horizontal reference lines, The first of the plurality of horizontal reference lines and the second of the plurality of vertical reference lines are within the block, and The first vertical reference line of the plurality of vertical reference lines and the second horizontal reference line of the plurality of horizontal reference lines are outside the block.
2. The method according to claim 1, characterized in that: The method further comprises: mapping at least one sample of at least one horizontal reference line of the plurality of horizontal reference lines to a left column along the block; and At least one sample of at least one vertical reference line of the plurality of vertical reference lines is mapped to a top row along the block.
3. The method according to claim 1, characterized in that The method further comprises: mapping at least one sample of at least one horizontal reference line of the plurality of horizontal reference lines to a top row along the block; and At least one sample of at least one vertical reference line of the plurality of vertical reference lines is mapped to a top row along the block.
4. The method according to claim 1, characterized in that: Performing intra prediction of the L-shaped partition includes projecting samples of the L-shaped partition to at least one of a vertical side and a horizontal side of the reference sample chain.
5. The method according to claim 1, characterized in that The method further comprises: Enable bi-prediction mode; and generating a predictor for the current block of the second partition by utilizing a weighted sum of a first part and a second part of the chain of reference samples in the bi-prediction mode, wherein the first part and the second part of the reference sample chain are not adjacent to the current block, and The first part and the second part of the reference sample chain are located on the right and left of the current block respectively.
6. The method according to claim 5, characterized in that The first portion of the reference sample chain is located to the right of the current block and on top of the current block, and The second portion of the reference sample chain is located at a left side of the current block and at a bottom of the current block.
7. The method according to claim 6, characterized in that A first of the first portion and the second portion of the chain of reference samples is within the block, and A second of the first portion and the second portion of the chain of reference samples is outside the block.
8. The method according to claim 1, characterized in that The L-shaped partition includes: a first side, and a second side opposite to the first side, the height of the first side is greater than the height of the second side, The L-shaped partition further includes: a third side, and a fourth side opposite to the third side, and The width of the third side is greater than the width of the fourth side.
9. An apparatus for video encoding, comprising: at least one memory configured to store computer program code; At least one hardware processor is configured to access the computer program code and operate according to the instructions of the computer program code to perform the following steps: causing the hardware processor to obtain blocks of video data; causing the hardware processor to partition the block into an L-shaped partition and a second partition, the second partition being one of a rectangular partition and another L-shaped partition; and The hardware processor is caused to perform intra-frame prediction of the L-shaped partition by using a reference sample chain as a reference sample, the reference sample chain comprising a chain of adjacent reconstructed samples, the chain comprising: a plurality of horizontal reference lines and a plurality of vertical reference lines from reconstructed samples adjacent to the L-shaped partition; a first vertical reference line of the plurality of vertical reference lines is directly connected to a first horizontal reference line of the plurality of horizontal reference lines, the first horizontal reference line of the plurality of horizontal reference lines is directly connected to a second vertical reference line of the plurality of vertical reference lines, the second vertical reference line of the plurality of vertical reference lines is directly connected to a second horizontal reference line of the plurality of horizontal reference lines, the first horizontal reference line of the plurality of horizontal reference lines and the second vertical reference line of the plurality of vertical reference lines are within the block, and the first vertical reference line of the plurality of vertical reference lines and the second horizontal reference line of the plurality of horizontal reference lines are outside the block.
10. The device according to claim 9, characterized in that causing the hardware processor to map at least one sample of at least one horizontal reference line of the plurality of horizontal reference lines to a left column along the block, The hardware processor is caused to map at least one sample of at least one vertical reference line of the plurality of vertical reference lines to a top row along the block.
11. The device according to claim 9, characterized in that causing the hardware processor to map at least one sample of at least one horizontal reference line of the plurality of horizontal reference lines to a top row along the block, The hardware processor is caused to map at least one sample of at least one vertical reference line of the plurality of vertical reference lines to a top row along the block.
12. The device according to claim 9, characterized in that The hardware processor is caused to perform intra prediction by projecting samples of the L-shaped partition onto at least one of a vertical side and a horizontal side of the reference sample chain.
13. The device according to claim 9, characterized in that Enable bi-prediction mode; and generating a predictor for the current block of the second partition by utilizing a weighted sum of a first part and a second part of the chain of reference samples in the bi-prediction mode, wherein the first part and the second part of the reference sample chain are not adjacent to the current block, and The first part and the second part of the reference sample chain are located on the right and left of the current block respectively.
14. The device according to claim 13, characterized in that The first portion of the reference sample chain is located to the right of the current block and on top of the current block, and The second portion of the reference sample chain is located at a left side of the current block and at a bottom of the current block.
15. The device according to claim 14, characterized in that A first of the first portion and the second portion of the chain of reference samples is within the block, and A second of the first portion and the second portion of the chain of reference samples is outside the block. 16 . A non-transitory computer-readable medium having computer-readable instructions stored thereon, which, when executed by a processor, causes the processor to implement the method according to claim 1 .
17. An apparatus for video encoding, comprising: An acquisition module for acquiring blocks of video data; A partitioning module, configured to partition the block into an L-shaped partition and a second partition, wherein the second partition is one of a rectangular partition and another L-shaped partition; as well as An execution module is used to perform intra-frame prediction of the L-shaped partition by using a reference sample chain as a reference sample, the reference sample chain comprising a chain of adjacent reconstructed samples, the chain comprising: a plurality of horizontal reference lines and a plurality of vertical reference lines from reconstructed samples adjacent to the L-shaped partition; a first vertical reference line of the plurality of vertical reference lines is directly connected to a first horizontal reference line of the plurality of horizontal reference lines, the first horizontal reference line of the plurality of horizontal reference lines is directly connected to a second vertical reference line of the plurality of vertical reference lines, the second vertical reference line of the plurality of vertical reference lines is directly connected to a second horizontal reference line of the plurality of horizontal reference lines, the first horizontal reference line of the plurality of horizontal reference lines and the second vertical reference line of the plurality of vertical reference lines are within the block, and the first vertical reference line of the plurality of vertical reference lines and the second horizontal reference line of the plurality of horizontal reference lines are outside the block.
Citation Information
Patent Citations
Intra coding with l-type partitioning tree
US20210321097A1
Directional intra prediction and block copy prediction combined video intra coding method
CN106375764A
Linear model prediction method and device, encoder and storage device
CN110446044A
Method and device for processing video signal
CN110710215A
Method and Apparatus for Template-Based Intra Prediction in Image and Video Coding
US20170353730A1
