Encoding method and apparatus, decoding method and apparatus, and filtering method
By using a deblocking filter to filter multiple reference block edges in intra-frame coding, and decoding the current block through intra-frame prediction, the problems of low intra-frame coding efficiency and block artifacts are solved, and the coding efficiency is improved.
Patent Information
- Application Number
- CN202410824566.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2016-05-13
- Filing Date
- 2017-04-24
- Publication Date
- 2024-10-01
AI Technical Summary
In the existing technology, during intra-frame coding, the coding efficiency of intra-frame prediction blocks is low, especially when multiple reference blocks are predicted, block artifacts are prone to occur, and the deblocking filter of the H.265 video coding standard only Filtering the outer boundaries cannot effectively reduce internal discontinuities.
A deblocking filter is used to filter along the edges of multiple decoded reference blocks, and the current block is decoded through intra-frame prediction, and the in-loop filtering step is improved to improve coding efficiency.
Through filtering and intra-frame prediction of multiple reference blocks, block artifacts are reduced, the efficiency of intra-frame coding is improved, the coding efficiency of the coding method is enhanced, and the in-loop filtering effect is improved.
Smart Images

Figure CN118741111A_ABST
Abstract
Description
[0001] This divisional application is a divisional application with application date of April 24, 2017, application number 201780029546.1, and invention name “Method and device for decoding intra-frame prediction blocks of pictures and encoding method and device”. Technical Field
[0002] Hereinafter, a method and a device for encoding an intra-frame prediction block of a picture are disclosed. A corresponding decoding method and a decoding device are also disclosed. Background Art
[0003] Prior art methods for encoding a current block of a current picture typically include predicting the block to obtain a predictor, determining a residual block by subtracting the predictor from the current block and encoding the residual block into a stream. The current block is predicted from one or more other blocks, called reference blocks, that have already been encoded and reconstructed. The one or more other blocks belong to the current picture (intra-frame coding) or to another picture different from the current picture (inter-frame coding). In the case where the current block is predicted from multiple reference blocks, the predictor may suffer from blocking artifacts. Figure 1 Such a current block B is depicted being intra predicted from a plurality of reference blocks, ie spatially neighboring grey blocks.
[0004] Prior art methods for encoding the current block of the current picture typically include an in-loop filtering step. As an example, in the H.265 video coding standard, a filtering step using a deblocking filter is included in the coding loop. Other filtering steps may be included, for example, in sample adaptive offset (SAO) filtering. The H.265 deblocking filter reduces discontinuities at the prediction and transform block boundaries (i.e., the outer boundaries of the blocks). However, there are still some discontinuities in the picture. Therefore, it is necessary to further improve the in-loop filtering in order to improve the coding efficiency of the coding method. Summary of the invention
[0005] A method for decoding a current block of a picture is disclosed, comprising:
[0006] -decoding multiple reference blocks;
[0007] - filtering along the edges of the plurality of decoded reference blocks using a deblocking filter; and
[0008] - decoding the current block by intra prediction from the plurality of filtered reference blocks.
[0009] A decoding device is disclosed, comprising:
[0010] - means for decoding a plurality of reference blocks;
[0011] - means for filtering along edges of said plurality of decoded reference blocks using a deblocking filter; and
[0012] - means for decoding said current block by intra prediction from said plurality of filtered reference blocks.
[0013] A decoding device is disclosed, comprising a communication interface configured to at least access a stream and at least one processor, the processor being configured to:
[0014] -decode multiple reference blocks from the accessed stream;
[0015] - filtering along the edges of the plurality of decoded reference blocks using a deblocking filter; and
[0016] - decoding the current block from the accessed stream by intra prediction from the plurality of filtered reference blocks.
[0017] A non-transitory computer-readable medium is disclosed having stored therein instructions that, when executed, instruct at least one processor to:
[0018] -decoding multiple reference blocks;
[0019] - filtering along the edges of the plurality of decoded reference blocks using a deblocking filter; and
[0020] - decoding the current block by intra prediction from the plurality of filtered reference blocks.
[0021] A method for encoding a current block of a picture, comprising:
[0022] - Encoding and reconstructing multiple reference blocks;
[0023] - filtering along edges of the plurality of reconstructed reference blocks using a deblocking filter; and
[0024] - encoding the current block by intra prediction from the plurality of filtered reference blocks.
[0025] An encoding device, comprising:
[0026] - means for encoding and reconstructing a plurality of reference blocks;
[0027] - means for filtering along edges of said plurality of reconstructed reference blocks using a deblocking filter; and
[0028] - means for encoding said current block by intra prediction from said plurality of filtered reference blocks.
[0029] Disclosed is an encoding device, comprising a communication interface configured to access a current block of a picture and at least one processor, the processor being configured to:
[0030] - Multiple reference blocks in the encoding and reconstruction stream;
[0031] - filtering along edges of the plurality of reconstructed reference blocks using a deblocking filter; and
[0032] - encoding the accessed current block in said stream by intra prediction from said plurality of filtered reference blocks.
[0033] A non-transitory computer-readable medium is disclosed having stored therein instructions that, when executed, instruct at least one processor to:
[0034] - Encoding and reconstructing multiple reference blocks;
[0035] - filtering along edges of the plurality of reconstructed reference blocks using a deblocking filter; and
[0036] - a current block accessed by intra prediction coding from said plurality of filtered reference blocks.
[0037] According to a particular embodiment, each reference block is a block on which the same transform is applied, and the current block is a block on which the same transform is applied.
[0038] According to a specific embodiment, the current block is a chrominance block, and the plurality of reference blocks are a plurality of luminance blocks co-located with the chrominance block.
[0039] According to a specific embodiment, the plurality of reference blocks are a plurality of blocks spatially adjacent to the current block. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] - Figure 1 depicts a current block B that is intra predicted from a plurality of reference blocks;
[0041] - Figure 2 On the left the luminance component of a picture portion partitioned into blocks according to a quadtree decomposition is represented, and on the right the chrominance components of the same picture portion partitioned into blocks according to a quadtree decomposition are represented.
[0042] - Figure 3 It shows that due to the multiple brightness blocks B L Intra-frame prediction can be performed on the reconstructed chrominance block B C Internally created boundaries, i.e. dividing lines;
[0043] - Figure 4 illustrates the prediction of chrominance blocks from reconstructed luma samples;
[0044] - Figure 5 depicts a block B that is intra predicted from spatially neighboring blocks Be and Bf in the horizontal direction;
[0045] - Figure 6 depicts a block B that is intra predicted from spatially neighboring blocks Ba, Bb, Bd, Be, Bf according to angular directions;
[0046] - Figure 7 represents an exemplary architecture of a receiver configured to decode a block of a picture from a stream to obtain a decoded block, wherein the block is intra-predicted from a plurality (i.e. at least two) reference blocks, according to a specific and non-limiting embodiment;
[0047] - Figure 8 A flowchart representing a method for decoding a block of a picture from a stream to obtain a decoded block, wherein the block is intra-predicted from a plurality of (i.e. at least two) reference blocks, according to a specific and non-limiting embodiment;
[0048] - Fig. 9A , 9B and 9C represent a flowchart of a method for decoding a block of a picture from a stream to obtain a decoded block, wherein the block is a chrominance block predicted from a plurality of co-located luminance blocks (reference blocks), according to a specific and non-limiting embodiment;
[0049] - Fig.10 A flowchart representing a method for decoding a block of a picture from a stream to obtain a decoded block, wherein the block is a chrominance or luminance block predicted from a plurality of spatially neighboring blocks (reference blocks), according to a specific and non-limiting embodiment;
[0050] - Fig.11 An exemplary architecture of a transmitter configured to encode a block of a picture in a stream, wherein the block is intra-predicted from multiple (ie at least two) reference blocks, according to a specific and non-limiting embodiment is shown.
[0051] - Fig.12 A flow chart showing a method for encoding a block of a picture in a stream, wherein the block is intra predicted from a plurality of (ie at least two) reference blocks, according to a specific and non-limiting embodiment.
[0052] - Fig.13 Depicts the boundaries of filtering within a block;
[0053] - Fig.14 depicts a block B that is intra predicted from spatially neighboring blocks Ba, Bb, Bd, Be, Bf according to a planar mode; and
[0054] - Fig.15 Depicted is a coding tree block partitioned into transform blocks. DETAILED DESCRIPTION
[0055] It should be understood that the drawings and descriptions have been simplified to illustrate elements relevant to a clear understanding of the present principles, while for clarity, many other elements found in conventional encoding and / or decoding devices have been omitted (eliminating). It should be understood that although the terms first and second may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element.
[0056] According to the present principles, a block is a square or rectangular portion of a picture that includes samples associated with sample values, e.g., luma samples or chroma samples. For convenience of terminology, these terms are referred to as luma and chroma. However, the disclosed methods and apparatus may be applied to different color representations, such as, for example, RGB. Thus, in all embodiments, luma may be replaced by the first component and chroma may be replaced by the second component.
[0057] In the following, the words "reconstruction" and "decoding" may be used interchangeably. Typically, but not necessarily, "reconstruction" is used at the encoder side and "decoding" is used at the decoder side.
[0058] Figure 2 On the left is shown the luminance component of a picture partitioned into blocks according to the first quadtree decomposition. Figure 2 On the right are shown the chrominance components of a picture partitioned into blocks according to a second quadtree decomposition that is different from the first quadtree decomposition.
[0059] These blocks can be transform blocks (TBs) or prediction blocks (PBs) within the meaning of H.265. A TB is a rectangular block of samples of a color component on which the same transform is applied to encode the residual signal. In the following, TB is used to specify such a block on which the same transform is applied. A PB is a rectangular block of samples of a color component on which one and the same prediction is applied (e.g., the same motion parameters for motion compensated prediction). In HEVC, a coding tree block (CTB) is recursively subdivided into coding blocks (CBs) along a coding tree structure. The CB can then be partitioned into multiple TBs. The partitioning of CB to TB is recursively performed based on a quadtree method. In the case where the CB is not further partitioned, the CB is considered to be a TB. For each type of block (i.e., TB, PB, CB, CTB) corresponds to a unit (i.e., a transform unit TU, a prediction unit PU, a coding unit CU, and a coding tree unit CTU, respectively). The unit includes information related to all color components, such as a luminance component and two chrominance components. As an example, in the case of a color picture, the CTU includes a CTB of a luminance sample and a CTB of two corresponding chrominance samples. In the same way, in case of a color picture, a CU consists of a CB of luma samples and two corresponding CBs of chroma samples.
[0060] In other embodiments different from H.265, the blocks may be coding blocks (CB) and / or prediction blocks (PB) where CB and / or PB are defined as rectangular blocks of samples on which the same transform is applied to encode the residual signal.
[0061] exist Figure 2 In the figure, multiple brightness blocks B are surrounded by dotted lines. L co-located to a single chrominance block Bc which is also surrounded by a dotted line. Co-location means that block Bc and block B L covers the same part of the picture which may be downsampled according to the color format (4:4:4, 4:2:0, ...). The chrominance block Bc is for example CB, and each luma block B L For example, if it is TB, multiple blocks B L A luma CB is formed which is co-located with the chroma CB. Figure 2 In the example, the chrominance components are downsampled relative to the luma components. However, it should be understood that the present principles also apply to the case where the luma and chroma components have the same resolution. By using different quadtree decompositions to split the chroma and luma components, in the case of intra-predicting the chroma block Bc from the luma component, more precisely, from the co-located block Bc of the luma component. L In case of intra-predicted chroma blocks Bc, blocking artifacts may appear. When blocking artifacts are created in the predictor, these artifacts usually appear in the residual block derived from the predictor and therefore also in the reconstructed / decoded block.
[0062] Figure 3 shows the boundary, that is, due to its origin from multiple brightness blocks B L Intra prediction can create a partition line inside the reconstructed chroma block Bc. This intra prediction mode is also called LM mode in the literature (LM stands for "linear mode"). This mode uses the reconstructed luminance samples rec Y The parameters α and β are linearly used to predict the chrominance samples based on the correlation between the components. The parameters α and β can be derived from spatially adjacent reconstructed luminance and chrominance samples at both the encoder and the decoder to avoid overhead signaling. In a variant, the parameters α and β can be derived from the source luminance and chrominance samples at the encoder, encoded, and sent to the decoder.
[0063] Figure 4 The LM mode is shown. L The reconstructed brightness samples rec Y Predict the chrominance block Bc.
[0064] The H.265 deblocking filter only filters the outer boundaries of the chroma block Bc and therefore does not reduce blocking artifacts within the chroma block Bc when predicted from co-located reconstructed luma samples. In fact, the H.265 standard specifies the deblocking filter as a process applied to the outer boundaries of the transform block or prediction block after the picture is reconstructed / decoded.
[0065] Figure 5 Depicted is a block B (eg, luma TB or chroma TB) being intra predicted from spatially neighboring blocks Be and Bf according to a horizontal prediction direction.
[0066] The video coding standards of the prior art (e.g. H.264, H.265) define a spatial intra prediction mode. According to this mode, block B is thus predicted from already reconstructed / decoded spatial neighboring blocks. The prediction is performed according to a prediction direction. In the H.264 video coding standard, 9 prediction directions are defined, while in H.265 33 prediction directions are defined. The first line (L1) of the prediction quantity is derived from block Be. The last line (L2) of the prediction quantity is derived from block Bf. Therefore, boundaries can appear in the prediction quantity. The boundaries are determined by Figure 5 The dashed lines in . In case there is a boundary inside the prediction quantity, this boundary also appears in the residual block and therefore also in the reconstructed / decoded block.
[0067] Figure 6 Depicted is a block B (e.g., TB) that is intra predicted from spatial neighboring blocks Ba, Bb, Bd, Be, Bf according to an angular direction. Boundaries following the angular direction of the prediction may appear in the prediction volume. The boundaries are given by Figure 6 The dotted line in .
[0068] Fig.14 Depicted is a block B (e.g., TB) that is intra predicted from spatially neighboring blocks Ba, Bb, Bd, Be, Bf (spatially neighboring TB) according to a planar prediction mode. Pixel P is predicted according to a planar mode by a linear combination of 4 pixels (represented by 4 black squares) of the spatially neighboring blocks. Horizontal and vertical boundaries may appear in the prediction. Boundaries are represented by Fig.14 The dotted line in .
[0069] The H.265 deblocking filter only filters the outer boundaries of block B and therefore does not reduce blocking artifacts within block B in the case of spatial prediction from multiple neighboring blocks. In fact, the H.265 deblocking filter only filters the outer boundaries of transform blocks or prediction blocks after reconstructing / decoding pictures.
[0070] Figure 7An exemplary architecture of a receiver 100 configured to decode a block of a picture from a stream to obtain a decoded block is shown according to a specific and non-limiting embodiment, wherein the block is intra predicted from a plurality of (ie at least two) reference blocks.
[0071] The receiver 100 includes one or more processors 1000, which may include, for example, a CPU, a GPU and / or a DSP (the English acronym for a digital signal processor), and an internal memory 1030 (e.g., a RAM, a ROM and / or an EPROM). The receiver 100 includes one or more communication interfaces 1010 (e.g., a keyboard, a mouse, a touchpad, a webcam), each of which is suitable for displaying output information and / or allowing a user to input commands and / or data; and a power supply 1020 that may be external to the receiver 100. The receiver 100 may also include one or more network interfaces (not shown). The decoder module 1040 represents a module that may be included in the device to perform a decoding function. In addition, the decoder module 1040 may be implemented as a separate element of the receiver 100, or may be incorporated into the processor 1000 as a combination of hardware and software known to those skilled in the art.
[0072] The stream can be obtained from a source. According to different embodiments, the source can be but is not limited to:
[0073] - local storage, e.g. video memory, RAM, flash memory, hard disk;
[0074] - storage interfaces, for example with mass storage, ROM, optical disk or magnetic support;
[0075] - a communication interface, for example, a wired interface (eg, a bus interface, a wide area network interface, a local area network interface) or a wireless interface (such as an IEEE 802.11 interface or a Bluetooth interface); and
[0076] - Picture capture circuitry (eg a sensor such as, for example, a CCD (or Charge Coupled Device) or a CMOS (or Complementary Metal Oxide Semiconductor)).
[0077] According to different embodiments, the decoded blocks can be sent to a destination, for example, a display device. As an example, the decoded blocks are stored in a remote or local memory, for example, a video memory or RAM, a hard disk. In a variant, the decoded blocks are sent to a storage interface, for example, an interface with a mass storage, ROM, flash memory, optical disk or magnetic support, and / or an interface for transmission through a communication interface, for example, a point-to-point link, a communication bus, a point-to-multipoint link or an interface of a broadcast network.
[0078] According to a specific and non-limiting embodiment, the receiver 100 further comprises a computer program stored in the memory 1030. The computer program comprises, when executed by the receiver 100, in particular by the processor 1000, enabling the receiver to execute the reference Figure 8 , 9A , 9B, 9C and 10. According to a variant, the computer program is stored outside the receiver 100, on a non-transitory digital data support, for example, on an external storage medium known in the art, such as a HDD, a CD-ROM, a DVD, a read-only and / or DVD drive and / or a DVD read / write drive. Therefore, the receiver 100 includes a mechanism for reading the computer program. In addition, the receiver 100 can access one or more universal serial bus (USB) type storage devices (e.g., "memory sticks") via corresponding USB ports (not shown).
[0079] According to an exemplary and non-limiting embodiment, the receiver 100 may be, but is not limited to:
[0080] -mobile device;
[0081] -communication equipment;
[0082] -Gaming equipment;
[0083] - Set-top box;
[0084] -television;
[0085] - Tablet computer (or tablet computer);
[0086] - Laptop computer;
[0087] - Video players, e.g. Blu-ray players, DVD players;
[0088] - Display, and
[0089] -Decoding chip or decoding device.
[0090] In the following Figure 8 , 9A , 9B, 9C, 10 and 12, a module is a functional unit that may or may not be associated with a distinguishable physical unit. For example, these modules or some of them may be grouped together in a single component or circuit, or contribute to the functionality of the software. On the contrary, some modules may consist of separate physical entities. Devices compatible with the present disclosure are implemented using pure hardware, for example using dedicated hardware such as ASIC or FPGA or VLSI, respectively, which are "application specific integrated circuits", "field programmable gate arrays", "very large scale integration", or from multiple integrated electronic components embedded in the device, or from a mixture of hardware and software components.
[0091] Figure 8 A flowchart representing a method for decoding a block of a picture from a stream to obtain a decoded block according to a specific and non-limiting embodiment, wherein the block is intra-predicted from a plurality of (ie at least two) reference blocks.
[0092] The method starts at step S100. At step S110, the receiver accesses the stream. At step S120, the receiver decodes a plurality of reference blocks from the stream. Decoding the reference blocks comprises decoding a residual block from the stream, transforming the residual block using an inverse transform to the transform used at the encoder side, and adding a predictor to the transformed block to obtain a decoded block. Prior to the transform step, decoding may also comprise inverse quantizing the residual block using a quantization parameter. As an example, each reference block is a block on which the same transform is applied, e.g., a TB.
[0093] At step S130, the receiver performs filtering using a deblocking filter along the edges of the plurality of reference blocks decoded at step S120. For this purpose, the deblocking filter may be an H.265 deblocking filter as defined in section 8.7.2 of the document entitled "High Efficiency Video Coding" published in April 2015. However, it should be understood that the present principles are also applicable to H.264 type deblocking filters, or more generally, to any deblocking filter.
[0094] H.265 type deblocking filters filter edges based on quantization parameters associated with areas far from the edges. Such deblocking filters also use a boundary strength parameter Bs. According to the present principles, H.265 deblocking can also be applied to filter the edges of reference blocks before using them for prediction.
[0095] Therefore, if Fig.13 As depicted, deblocking is performed on four sample portions of an edge. The figure shows an edge depicting two portions P and Q. x and q x Represents a sample. Filtering is performed on luma samples when all of the following conditions are true: 1) the boundary strength Bs is greater than zero; and 2) the signal change on both sides of the edge is below a specified threshold:
[0096] |p2,0-2p1,0+p0,0|+|p2,3-2p1,3+p0,3|+|q2,0-2q1,0+q0,0|+|q2,3-2q1,3+q0,3|>β(1)
[0097] where the threshold β depends on the quantization parameter QP and is derived from a lookup table. For edges with an associated Bs greater than zero, and for Bs(1) being true, deblocking filtering is performed.
[0098] In a specific embodiment, conventional deblocking filtering is applied along the edges of the plurality of reference blocks decoded at step S120.
[0099] Conventional filtering has two modes that differ in the number of pixels modified on each side of an edge.
[0100] If |p2,0-2p1,0+p0,0|+|p2,3-2p1,3+p0,3|<3 / 16β(5), then the two nearest samples to the edge can be modified in the left part P, otherwise only the nearest sample in P can be modified.
[0101] If |q2,0-2q1,0+q0,0|+|q2,3-2q1,3+q0,3|<3 / 16β(6), then the right part Q can be modified to the two nearest samples at the edge, otherwise only the nearest sample in Q can be modified.
[0102] Conventional filtering operations
[0103] In the conventional filtering mode of four-row segments, the filtering operation is applied to each row. In the following, the second pixel index indicating the row number is omitted for brevity.
[0104] The filtered pixel values p'0 and q'0 are calculated for each line crossing the edge by adding or subtracting the offset as follows:
[0105] p'0=p0+Δ0(7) and q'0=q0-Δ0(8)
[0106] where the value of Δ0 is obtained by clipping δ0: Δ0=clip(-tC, tC, δ0), where clip(a, b, c)=Max(a, Min(b, c)), tC is a clipping parameter that depends on QP, and δ0=(9*(q0-p0)-3*(q1-p1)+8)>>4(9). tC is defined, for example, by a lookup table. Ignoring the clipping operation, the impulse response of the filter is (3 7 9-3) / 16.
[0107] Additionally, deblocking filtering is applied to rows or columns of samples that cross an edge if and only if:
[0108] |δ0|<10*tC(10).
[0109] If (5) is true, then the modified value p'1 in each line across the edge is obtained by p'1=p1+Δp1(11). Similarly, if (6) is true, then q'1 in each line across the edge is obtained by q'1=q1+Δq1(12), where the offset values Δp1=clip(-tC / 2, tC / 2, δp1) and Δq1=clip(-tC / 2, tC / 2, δq1), where δp1=(((p2+p0+1)>>1)-p1+Δ0)>>1(13) and δq1=(((q2+q0+1)>>1)-q1-Δ0)>>1(14). Ignoring the clipping operation, the impulse response of the modified filter corresponding to the pixel at position p1 is (8 19 -1 9 -3) / 32.
[0110] In a variation, based on Fig.15 The first and fourth rows of the edge spanning four samples represented in are used to decide whether to apply strong or normal deblocking. The following expression using information from rows i=0 and i=3 is evaluated to decide between normal and strong filtering:
[0111] |p2, i-2p1, i+p0, i|+|q2, i-2q1, i+q0, i|<β / 8(2)
[0112] |p3, i-p0, i|+|q0, i-q3, i|<β / 8(3)
[0113] |p0,i-q0,i|<2.5*tC(4)
[0114] If (2), (3) and (4) are true, then strong filtering is applied to the edges. Otherwise, normal filtering is applied.
[0115] Strong filtering operation
[0116] The strong filter modifies more samples on each side of the edge than the normal mode. Offset values Δ0s, Δ1s, and Δ2s are added to pixels p0, p1, and p2, respectively, after clipping the following δ0s, δ1s, and δ2s values:
[0117] δ0s=(p2+2p1-6p0+2q0+q1+4)>>3(15)
[0118] δ1s=(p2-3p1+p0+q0+2)>>2(16)
[0119] δ2s=(2p3-5p2+p1+p0+q0+4)>>3.(17)
[0120] The offset values used to modify pixels q0, q1 and q2 are calculated by exchanging q and p in (15), (16) and (17).
[0121] If the clipping operation is ignored, the impulse responses of the modified filters corresponding to pixels p0, p1, and p2 are (1 2 2 2 1) / 8, (1 1 1 1) / 4, and (2 3 1 1 1) / 8, respectively.
[0122] Chroma deblocking is performed only when Bs is equal to 2. In this case, no further deblocking decisions are made. Only pixels p0 and q0 are modified as in (7) and (8). Deblocking is performed using a Δc value obtained by clipping the following δc offset value: δc = (((q0-p0) << 2) + p1-q1+4) >> 3 (18), which corresponds to filtering through a filter with an impulse response of (1 4 4 -1) / 8.
[0123] At step S140, the receiver decodes the current block by intra-frame prediction from multiple filtered reference blocks. As an example, the current block is a block on which the same transform is applied, such as a TB. Decoding the current block includes decoding a residual block from the stream, transforming the residual block using an inverse transform to the transform used on the encoder side, and adding a predictor to the transformed block to obtain a decoded current block. Before the transform step, decoding may also include inverse quantization of the residual block using a quantization parameter. The predictor is obtained by intra-frame prediction of the current block from the multiple filtered reference blocks obtained at step S130.
[0124] The method ends at step S180.
[0125] The prediction and deblocking steps are interleaved. Thus, the coding efficiency is improved.
[0126] Fig. 9A , 9B 9C represent flowcharts of a method for decoding a block of a picture from a stream to obtain a decoded block, wherein the block is a chrominance block predicted from a plurality of co-located luminance blocks (reference blocks), according to a specific and non-limiting embodiment.
[0127] The method starts at step S100. At step S110, the receiver accesses the stream. At step S120, the receiver decodes a luma coding block (luminance CB) formed of multiple luma transform blocks (TBs) from the stream, which are co-located with the current chroma coding block. The luma CB is decoded by decoding each of its luma TBs. Decoding the luma TB includes decoding a residual block from the stream, transforming the residual block using an inverse transform of the transform used on the encoder side, and adding a prediction quantity to the transform block to obtain a decoded luma TB. Prior to the transform step, decoding may also include inverse quantizing the residual block using a quantization parameter. In this embodiment, the reference block is a co-located luma TB.
[0128] At step S130, the receiver applies a deblocking filter only along the inner edges of the luma CB decoded at step S120. The inner edges are, for example, Figure 3 The inner edges of the luma CB are represented by thin lines in the figure, while the outer edges are represented by thick lines. The inner edges of the luma CB are formed by the boundaries between the luma TBs. For this purpose, the deblocking filter can be the H.265 deblocking filter defined in Section 8.7.2 of the document entitled "High Efficiency Video Coding" published in April 2015. However, it should be understood that the present principles also apply to H.264 type deblocking filters, or more generally, to any deblocking filter. Step 130 generates a filtered version of the co-located luma TB decoded at step 120, which is used only for inter-component prediction.
[0129] At step S140, the receiver decodes the current chroma coding block by inter-component intra-frame prediction from multiple filtered luma TBs obtained at step S130. Decoding the current chroma CB includes decoding each of its chroma TBs. Decoding the chroma TB includes decoding a residual block from the stream, transforming the residual block using an inverse transform of the transform used on the encoder side, and adding a predictor to the transformed block to obtain a decoded current block. Before the transform step, decoding may also include inverse quantizing the residual block using a quantization parameter. The predictor is obtained from multiple filtered luma TBs obtained at step S130 that are co-located with the chroma CB. In a first optional step, the chroma CB once decoded at step S140 may also be filtered as specified in Section 8.7.2 of the HEVC standard. In-loop filtering (e.g., sampling adaptive offset filtering and / or adaptive loop filtering) other than deblocking may also be applied to the decoded chroma CB.
[0130] In a second optional step, as specified in Section 8.7.2 of the HEVC standard, the luminance component of the picture once decoded may also be filtered to obtain the final decoded luminance CB. In-loop filtering (e.g., sample adaptive offset filtering and / or adaptive loop filtering) in addition to deblocking may also be applied. It is worth emphasizing that the deblocking filter of step 130 is an intermediate deblocking filter, which is used only for the purpose of intra-frame prediction of the current chroma coding block. Therefore, the intermediate deblocking filter may be different from the classic deblocking filter that is usually applied after all intra-frame predictions are completed.
[0131] In a variation of the second optional step, as specified in section 8.7.2 of the HEVC standard, the outer edges of the filtered luma CB obtained at step S130 are further filtered to obtain the final decoded luma CB.
[0132] The method ends at step S180.
[0133] At step S130 Fig. 9A Embodiment of the invention (in Fig. 9B In a variant (depicted in ), the receiver utilizes a deblocking filter to filter along both the inner and outer edges of the luma CB decoded at step S120. Optionally, in-loop filtering (e.g., sampling adaptive offset filtering and / or adaptive loop filtering) in addition to deblocking may also be applied to the luma CB decoded at step S120 at step S130. The inner edge of the luma CB is formed by the boundary between the luma TBs. The outer edge of the luma CB is the edge between the luma CB and other luma CBs that have been decoded. In this variant, no further deblocking is applied to the luma CB. This variant may also include an optional step. In this optional step, as specified in Section 8.7.2 of the HEVC standard, the chroma CB once decoded at step S140 may also be filtered. In-loop filtering (e.g., sampling adaptive offset filtering and / or adaptive loop filtering) in addition to deblocking may also be applied to the reconstructed chroma CB.
[0134] Can repeat about Fig. 9A and 9B The method described is to encode each CU of a CTU.
[0135] about Fig. 9C , made public Fig. 9A A variation of the embodiment of . This variation is used for intra-coded CTUs.
[0136] The method starts at step S100. At step S110, the receiver accesses the stream. At step S120, the receiver decodes a luma CTB formed by multiple luma transform blocks (TBs) from the stream. The luma CTB of the CTU is co-located with the current chroma CTB. The luma CTB is decoded by decoding each of its luma TBs. More specifically, the luma CTB is decoded by decoding each of its luma CBs, and each luma CB is decoded by decoding each of its luma TBs. Decoding the luma TB includes decoding a residual block from the stream, transforming the residual block using an inverse transform of the transform used on the encoder side, and adding a prediction amount to the transformed block to obtain a decoded luma TB. Prior to the transform step, decoding may also include inverse quantizing the residual block using a quantization parameter. In this embodiment, the reference block is a co-located luma TB.
[0137] At step S130, the receiver filters the inner and outer edges of the luma CTB decoded at step S120 (i.e., the edges of its CB and TB) using a deblocking filter. The inner edge of the luma CTB is formed by the boundary between luma TBs and the boundary between luma CBs. For this purpose, the deblocking filter can be an H.265 deblocking filter defined in Section 8.7.2 of the document entitled "High Efficiency Video Coding" published in April 2015. However, it should be understood that the present principles are also applicable to H.264 type deblocking filters, or more generally, to any deblocking filter. Step 130 generates a filtered version of the co-located luma CTB decoded at step 120, which is used for inter-component prediction. In-loop filtering (e.g., sample adaptive offset filtering and / or adaptive loop filtering) other than deblocking can also be applied to the decoded luma CTB. In a variant, the deblocking filter is applied in step S120 after the luma CB is decoded, that is, not after the luma CTB is completely decoded.
[0138] At step S140, the receiver decodes the chroma CTB of the CTU by intra-frame prediction from the multiple filtered luma TBs obtained at step S130. The chroma CTB is decoded by decoding each of its chroma TBs. More specifically, the chroma CTB is decoded by decoding each of its chroma CBs, and each chroma CB is decoded by decoding each of its chroma TBs. Decoding the chroma TB includes decoding the residual block from the stream, transforming the residual block using the inverse transform used on the encoder side, and adding the prediction amount to the transformed block to obtain the decoded current block. Before the transform step, decoding may also include inverse quantizing the residual block using a quantization parameter. The prediction amount is obtained from the co-located luma TBs of the multiple filters obtained at step S130. Deblocking filters and in-loop filters other than deblocking (e.g., sampling adaptive offset filtering and / or adaptive loop filtering) may also be applied to the decoded chroma CTB.
[0139] Fig.10 A flow chart representing a method for decoding a block of a picture from a stream to obtain a decoded block according to a specific and non-limiting embodiment, wherein the block is a chrominance or luminance block predicted from a plurality of spatially neighboring blocks (reference blocks).
[0140] The method starts at step S100. At step S110, the receiver accesses the stream. At step S120, the receiver decodes multiple reference blocks (e.g., multiple TBs) from the stream. The multiple reference blocks are spatially neighboring blocks of the current block (e.g., current TB). Decoding the reference blocks includes decoding a residual block from the stream, transforming the residual block using an inverse transform to the transform used on the encoder side, and adding a prediction quantity to the transformed block to obtain a decoded block. Prior to the transform step, decoding may also include inverse quantizing the residual block using a quantization parameter.
[0141] At step S130, the receiver uses a deblocking filter to filter along the edges of the plurality of spatially adjacent blocks decoded at step S120. For this purpose, the deblocking filter may be an H.265 deblocking filter as defined in section 8.7.2 of the document entitled "High Efficiency Video Coding" published in April 2015. However, it should be understood that the present principles are also applicable to H.264 type deblocking filters, or more generally, to any deblocking filter.
[0142] At step S140, the receiver decodes the current block by intra prediction from the plurality of filtered reference blocks. Decoding the current block comprises decoding a residual block from the stream, transforming the residual block using an inverse transform to the transform used at the encoder side, and adding a predictor to the transformed block to obtain the decoded current block. Prior to the transform step, decoding may also comprise inverse quantizing the residual block using a quantization parameter. The predictor is obtained by spatial intra prediction from the plurality of filtered reference blocks obtained at step S130.
[0143] The method ends at step S180.
[0144] In a specific embodiment, where the chrominance CB or luma CB is formed by a plurality of TBs, the TBs are decoded at step S120, and the decoded TBs are filtered along their top and left edges at step S130. Steps S120 and S130 are repeated for each TB of the CB. Fig.15 As depicted, steps S120 and S130 may also be repeated for each CB of the CTB. Therefore, the causal (upper edge and left side) spatial blocks used to predict the current TB, i.e., the causal TB, have undergone a complete deblocking process before they are used for intra prediction of the next TB. Fig.15 In FIG. 1 , the first TB (labeled 0) is decoded along its top and left edges and then filtered (as indicated by the arrows). Then, the second TB (in decoding order) labeled 1 is decoded and filtered along its top and left edges. This process continues until all TBs are decoded. The filtered edges are indicated by dashed lines. Therefore, deblocking of each TB is performed immediately after each TB is decoded before starting to process the next TB of the CTB under consideration in decoding order.
[0145] When multiple reference TBs are used to spatially predict a single larger TB, Fig.10 and 15 The disclosed method improves spatial intra prediction which does not suffer from discontinuities present in the reference samples used for intra prediction.
[0146] Fig.111 shows an exemplary architecture of a transmitter 100 configured to encode a block of a picture in a stream, wherein the block is intra predicted from multiple (ie at least two) reference blocks, according to a specific and non-limiting embodiment.
[0147] The transmitter 200 includes one or more processors 2000, which may include, for example, a CPU, a GPU and / or a DSP (the English acronym for a digital signal processor), and an internal memory 2030 (e.g., a RAM, a ROM and / or an EPROM). The transmitter 200 includes one or more communication interfaces 2010 (e.g., a keyboard, a mouse, a touchpad, a webcam), each of which is suitable for displaying output information and / or allowing a user to input commands and / or data; and a power supply 2020 that may be external to the transmitter 200. The transmitter 200 may also include one or more network interfaces (not shown). The encoder module 2040 represents a module that may be included in the device to perform an encoding function. In addition, the encoder module 2040 may be implemented as a separate element of the transmitter 200, or may be incorporated into the processor 2000 as a combination of hardware and software known to those skilled in the art.
[0148] The block can be obtained from a source. According to different embodiments, the source can be but is not limited to:
[0149] - local storage, e.g. video memory, RAM, flash memory, hard disk;
[0150] - storage interfaces, for example with mass storage, ROM, optical disk or magnetic support;
[0151] - a communication interface, for example, a wired interface (eg, a bus interface, a wide area network interface, a local area network interface) or a wireless interface (such as an IEEE 802.11 interface or a Bluetooth interface); and
[0152] - Picture capture circuitry (eg a sensor such as, for example, a CCD (or Charge Coupled Device) or a CMOS (or Complementary Metal Oxide Semiconductor)).
[0153] According to different embodiments, the stream can be sent to the destination. As an example, the stream is stored in a remote or local memory, such as a video memory or RAM, a hard disk. In a variant, the stream is sent to a storage interface, such as an interface with a mass storage, ROM, flash memory, optical disk or magnetic support, and / or an interface transmitted through a communication interface, such as a point-to-point link, a communication bus, a point-to-multipoint link or an interface of a broadcast network.
[0154] According to an exemplary and non-limiting embodiment, the transmitter 200 further comprises a computer program stored in the memory 2030. The computer program comprises a program that, when executed by the transmitter 200, in particular by the processor 2000, enables the transmitter 200 to execute the reference Fig.12 According to a variant, the computer program is stored outside the transmitter 200, on a non-transitory digital data support, for example, on an external storage medium known in the art, such as a HDD, a CD-ROM, a DVD, a read-only and / or DVD drive and / or a DVD read / write drive. Therefore, the transmitter 200 includes a mechanism for reading the computer program. In addition, the transmitter 200 can access one or more Universal Serial Bus (USB) type storage devices (e.g., a "memory stick") via corresponding USB ports (not shown).
[0155] According to an exemplary and non-limiting embodiment, the transmitter 200 may be, but is not limited to:
[0156] -mobile device;
[0157] -communication equipment;
[0158] -Gaming equipment;
[0159] - Tablet computer (or tablet computer);
[0160] - Laptop computer;
[0161] -Still picture camera;
[0162] - Camera;
[0163] - coding chip or coding device;
[0164] -Still picture server; and
[0165] - Video server (eg, broadcast server, video-on-demand server, or web server).
[0166] Fig.12 A flow chart representing a method for encoding a block of a picture in a stream, wherein the block is intra predicted from multiple (ie at least two) reference blocks, according to a specific and non-limiting embodiment.
[0167] The method starts at step S200. At step S210, the transmitter accesses the current block of the picture to be encoded. At step S220, the transmitter encodes and reconstructs multiple reference blocks in the stream. Encoding the reference block includes obtaining a residual block by subtracting a prediction amount from the reference block, transforming the residual block using a transform (the inverse transform of the transform used on the decoder side) and encoding the transformed block into the stream. Encoding may also include quantizing the transformed block using a quantization parameter. Reconstructing the reference block after encoding includes transforming the residual block using a transform that is the inverse transform of the transform used for encoding, and adding the prediction amount to the transformed block to obtain a reconstructed block. Prior to the transform step, reconstruction may also include inverse quantizing the residual block using a quantization parameter. As an example, each reference block is a block on which the same transform is applied, such as a TB.
[0168] At step S230, the transmitter uses a deblocking filter to filter along the edges of the plurality of reference blocks reconstructed at step S120. For this purpose, the deblocking filter may be an H.265 deblocking filter as defined in Section 8.7.2 of the document entitled "High Efficiency Video Coding" published in April 2015. However, it should be understood that the present principles are also applicable to H.264 type deblocking filters, or more generally, to any deblocking filter.
[0169] A deblocking filter of the H.265 deblocking filter type filters edges based on a quantization parameter associated with areas far from the edges. This deblocking filter also uses a boundary strength parameter Bs. According to the present principles, H.265 deblocking may also be applied to filter the edges of a reference block before it is used for prediction.
[0170] At step S240, the transmitter encodes the current block by intra prediction from the multiple filtered reference blocks obtained at step S230. As an example, the current block is a block on which the same transform is applied, such as a TB. Encoding the current block includes obtaining a residual block by subtracting the prediction amount from the block, transforming the residual block using a transform (an inverse transform of the transform used at the decoder side) and encoding the transformed block into a stream. Encoding may also include quantizing the transformed block using a quantization parameter.
[0171] The method ends at step S280.
[0172] On the decoder side Figure 8 , 9A All variations and embodiments disclosed in 9B, 9C and 10 are also applicable to the encoder side.
[0173] The encoding, reconstruction, deblocking interleaving process can be advantageously used in an encoder rate-distortion optimization (RDO) process, which selects a set of coding parameters (coding tree, coding mode, PU partition, prediction mode, transform tree, etc.) associated with a given CTU. In fact, during the coding tree decision process, the encoder can easily know the impact of the deblocking filter on the final distortion associated with the reconstructed signal. Therefore, the RDO process more accurately evaluates the distortion associated with each set of coding parameters, and thus the RDO process is improved.
[0174] In order to benefit from the interleaved TB-based encoding, reconstruction, and deblocking process, the rate-distortion optimization can be modified as follows. For each CTU to be compressed in the considered picture, the following steps are applied:
[0175] For each candidate coding tree represented by the quadtree of the current CTU
[0176] ○ For each CU candidate in the coding tree representation
[0177] ○ For each candidate PU partition and the associated prediction mode for the current CU
[0178] ■ For each transform tree candidate represented by the transform tree for the current CU
[0179] ● For each TU in the current candidate transform tree
[0180] ○Predict the current TU→pred
[0181] ○ Calculate the residual block for the current TU
[0182] ○Compress the current residual block (transform, quantize)
[0183] ○ Entropy encoding current residual → rate cost R
[0184] ○ Decompress the current residual (inverse quantization, inverse transform) → res_rec
[0185] ○Reconstruct the current TU: rec_TU = pred + res_rec
[0186] ○ Deblocked reconstructed TU → rec_rec_dbf
[0187] ○Other in-loop post-processing
[0188] ○ Calculation results are distorted:
[0189] ○ Calculate the rate distortion cost associated with the current TU: RD cost =D+λ·R, where λ is the Lagrangian parameter used in the rate-distortion optimization process.
[0190] Then, the rate-distortion cost associated with each TU of the candidate transform tree is added to the RD costs of other TUs according to the RD contention scheme from bottom to top.
[0191] One sees that deblocking is now integrated into the rate-distortion optimization loop, which makes rate-distortion decisions aware of how the deblocking step affects the final reconstructed block.
[0192] This makes the entire encoder-side rate-distortion optimization process more efficient.
[0193] The embodiments described herein may be implemented in, for example, a method or process, a device, a software program, a data stream or a signal. Even if discussed only in the context of the form of a single embodiment (e.g., discussed only as a method or device), the embodiments of the features discussed may also be implemented in other forms (e.g., programs). The device may be implemented in, for example, appropriate hardware, software, and firmware. These methods may be implemented, for example, in a device such as, for example, a processor, which generally refers to a processing device, including, for example, a computer, a microprocessor, an integrated circuit, or a programmable logic device. The processor also includes a communication device, such as, for example, a computer, a cellular phone, a portable / personal digital assistant ("PDA"), and other devices that facilitate information communication between end users.
[0194] The various processes and features described herein may be implemented in a variety of different devices or applications, particularly, for example, devices or applications. Examples of such devices include encoders, decoders, post-processor processing outputs from decoders, pre-processors for providing inputs to encoders, video encoders, video decoders, video codecs, network servers, set-top boxes, notebook computers, personal computers, mobile phones, PDAs, and other communication devices. It should be clear that the device may be mobile and may even be installed in a mobile vehicle.
[0195] Additionally, the method may be implemented by instructions executed by a processor, and such instructions (and / or data values produced by the implementation) may be stored on a processor-readable medium, such as, for example, an integrated circuit, a software carrier, or other storage device, such as, for example, a hard disk, a compact disk ("CD"), an optical disk (such as, for example, a DVD, commonly referred to as a digital versatile disk or a digital video disk), a random access memory ("RAM"), or a read-only memory ("ROM"). The instructions may form an application program tangibly embodied on a processor-readable medium. The instructions may be, for example, hardware, firmware, software, or a combination. The instructions may be found, for example, in an operating system, a separate application, or a combination of both. Thus, a processor may be characterized as, for example, a device configured to perform a process and a device (such as a storage device) comprising a processor-readable medium having instructions for performing the process. Furthermore, in addition to or in lieu of the instructions, the processor-readable medium may store data values produced by the implementation.
[0196] It will be apparent to those skilled in the art that embodiments may generate various signals that are formatted to carry information that can, for example, be stored or transmitted. The information may include, for example, instructions for performing a method, or data generated by one of the described embodiments. For example, a signal may be formatted to carry as data the rules for writing or reading the grammar of the described embodiments, or to carry as data the actual grammar values written by the described embodiments. Such a signal may be formatted, for example, as an electromagnetic wave (e.g., using the radio frequency portion of the spectrum) or as a baseband signal. Formatting may include, for example, encoding a data stream and modulating a carrier with the encoded data stream. The information carried by the signal may be, for example, analog or digital information. As is known, the signal may be transmitted over a variety of different wired or wireless links. The signal may be stored on a processor-readable medium.
[0197] Many embodiments have been described. However, it should be understood that various modifications may be made. For example, elements of different embodiments may be combined, supplemented, modified, or removed to produce other embodiments. In addition, one of ordinary skill will appreciate that other structures and processes may replace those disclosed, and that the resulting embodiments will perform at least substantially the same functions in at least substantially the same manner to achieve at least substantially the same results as the disclosed embodiments. Therefore, the present application contemplates these and other embodiments.
Claims
1. A coding method, comprising: encoding and reconstructing a plurality of reference blocks, wherein a single transform is applied to samples of each reference block and wherein edges of the plurality of reference blocks are adjacent to a current block of a picture; Obtaining a plurality of filtered reference blocks by filtering along the edges of the plurality of reconstructed reference blocks using a deblocking filter, wherein the plurality of filtered reference blocks are obtained within a rate-distortion optimization loop; as well as The current block is encoded by intra prediction from the plurality of filtered reference blocks, wherein a single transform is applied to samples of the current block.
2. The encoding method of claim 1, wherein the rate-distortion decision within the rate-distortion optimization loop utilizes the effect of the deblocking filter on the reconstructed blocks.
3. The encoding method of claim 1, wherein the rate-distortion optimization comprises selecting a set of encoding parameters associated with the current block.
4. The encoding method according to claim 1, further comprising: The deblocked reconstructed current block is stored as a reference block for encoding a next block.
5. The encoding method of claim 1, wherein the current block is a chrominance block, and wherein the plurality of reference blocks are a plurality of luminance blocks co-located with the chrominance block. 6 . The encoding method of claim 1 , wherein the plurality of reference blocks are a plurality of blocks spatially adjacent to the current block. 7 . The encoding method of claim 6 , wherein each of the plurality of reference blocks is filtered along an upper edge and a left edge after reconstruction.
8. A coding device comprising one or more processors, the one or more processors being configured to perform: encoding and reconstructing a plurality of reference blocks, wherein a single transform is applied to samples of each reference block and wherein edges of the plurality of reference blocks are adjacent to a current block of a picture; Obtaining a plurality of filtered reference blocks by filtering along the edges of the plurality of reconstructed reference blocks using a deblocking filter, wherein the plurality of filtered reference blocks are obtained within a rate-distortion optimization loop; and The current block is encoded by intra prediction from the plurality of filtered reference blocks, wherein a single transform is applied to samples of the current block.
9. The encoding device of claim 8, wherein the current block is a chrominance block, and wherein the plurality of reference blocks are a plurality of luminance blocks co-located with the chrominance block. 10 . The encoding apparatus of claim 8 , wherein the plurality of reference blocks are a plurality of blocks spatially adjacent to the current block.
11. The encoding apparatus of claim 10, wherein each of the plurality of reference blocks is filtered along an upper edge and a left edge after reconstruction.
12. A decoding method, comprising: Decoding a plurality of reference blocks, wherein edges of the plurality of reference blocks are adjacent to a current block of a picture; Obtaining a plurality of filtered reference blocks by filtering along the edges of the plurality of decoded reference blocks using a deblocking filter; as well as The current block is decoded by intra prediction from the plurality of filtered reference blocks.
13. The decoding method according to claim 12, further comprising: The deblocked reconstructed current block is stored as a reference block for encoding a next block.
14. A coding method comprising: encoding and reconstructing a plurality of reference blocks, wherein edges of the plurality of reference blocks are adjacent to a current block of the picture; Obtaining a plurality of filtered reference blocks by filtering along edges of a plurality of reconstructed reference blocks using a deblocking filter within a rate-distortion optimization loop, wherein the rate-distortion optimization comprises selecting a set of coding parameters associated with the current block; as well as The current block is encoded by intra prediction from the plurality of filtered reference blocks.
15. The encoding method of claim 14, wherein the rate-distortion decision within the rate-distortion optimization loop utilizes the effect of the deblocking filter on the reconstructed blocks.
16. The encoding method according to claim 14, further comprising: A rate-distortion associated with each of a plurality of sets of coding parameters is evaluated, and a set of coding parameters having a lowest rate-distortion is selected from the plurality of sets of coding parameters.
17. A coding device comprising one or more processors, the one or more processors being configured to perform: encoding and reconstructing a plurality of reference blocks, wherein edges of the plurality of reference blocks are adjacent to a current block of the picture; obtaining a plurality of filtered reference blocks by filtering along the edges of the plurality of reconstructed reference blocks using a deblocking filter within a rate-distortion optimization loop, wherein the rate-distortion optimization comprises selecting a set of coding parameters associated with the current block; and The current block is encoded by intra prediction from the plurality of filtered reference blocks.
18. The encoding device of claim 17, wherein rate-distortion decisions within the rate-distortion optimization loop utilize the effect of the deblocking filter on the reconstructed blocks.
19. The encoding device of claim 17, wherein the one or more processors are further configured to perform: evaluating rate distortion associated with each of a plurality of sets of encoding parameters, and selecting a set of encoding parameters having a lowest rate distortion from the plurality of sets of encoding parameters.
20. A video encoding method, comprising: applying a deblocking filter to a boundary between at least two reference blocks to obtain a filtered reference block; determining a rate-distortion cost for predicting a current block using intra prediction from a filtered reference block; selecting a set of encoding parameters for the current block based at least in part on the determined rate-distortion cost; as well as The current block is encoded using the selected set of encoding parameters.
21. The method of claim 20, wherein the reference block and the current block are in the same coding tree.
22. The method of claim 20, wherein the reference block and the current block are in the same coding tree, and wherein selecting the set of coding parameters further comprises: A coding tree structure is selected based at least in part on the determined rate-distortion cost.
23. A video encoding apparatus comprising one or more processors, the one or more processors being configured to at least perform: applying a deblocking filter to a boundary between at least two reference blocks to obtain a filtered reference block; determining a rate-distortion cost for predicting a current block using intra prediction from a filtered reference block; selecting a set of encoding parameters for the current block based at least in part on the determined rate-distortion cost; as well as The current block is encoded using the selected set of encoding parameters.
24. The apparatus of claim 23, wherein the reference block and the current block are in the same coding tree.
25. The method of claim 23, wherein the reference block and the current block are in the same coding tree, and wherein selecting the set of coding parameters further comprises: A coding tree structure is selected based at least in part on the determined rate-distortion cost.
26. A decoding method, comprising: decoding a plurality of reference blocks, wherein a single transform is applied to samples of each reference block and wherein edges of the plurality of reference blocks are adjacent to a current block of a picture; Obtaining a plurality of filtered reference blocks by filtering along the edges of the plurality of decoded reference blocks using a deblocking filter; as well as The current block of the picture is decoded by intra prediction from the plurality of filtered reference blocks, wherein the current block is a block of samples on which a same transform is applied, and wherein the current block is in a same coding tree unit (CTU) as at least one of the plurality of filtered reference blocks.
27. The decoding method of claim 26, wherein the current block is a chrominance block, and wherein the plurality of reference blocks are a plurality of luminance blocks co-located with the chrominance block.
28. The decoding method of claim 26, wherein the plurality of reference blocks are a plurality of blocks spatially adjacent to the current block.
29. The decoding method of claim 28, wherein each of the plurality of reference blocks is filtered along an upper edge and a left edge after decoding.
30. A coding method comprising: encoding and reconstructing a plurality of reference blocks, wherein a single transform is applied to samples of each reference block and wherein edges of the plurality of reference blocks are adjacent to a current block of a picture; Obtaining a plurality of filtered reference blocks by filtering along the edges of the plurality of reconstructed reference blocks using a deblocking filter; as well as The current block of the picture is encoded by intra prediction from the plurality of filtered reference blocks, wherein a single transform is applied to samples of the current block, and wherein the current block is in a same coding tree unit (CTU) as at least one of the plurality of filtered reference blocks.
31. The encoding method of claim 30, wherein the current block is a chrominance block, and wherein the plurality of reference blocks are a plurality of luminance blocks co-located with the chrominance block.
32. The encoding method of claim 30, wherein the plurality of reference blocks are a plurality of blocks spatially adjacent to the current block.
33. The encoding method of claim 32, wherein each of the plurality of reference blocks is filtered along an upper edge and a left edge after reconstruction.
34. A decoding device comprising: means for decoding a plurality of reference blocks, wherein a single transform is applied to samples of each reference block and wherein edges of the plurality of reference blocks are adjacent to a current block of a picture; means for obtaining a plurality of filtered reference blocks by filtering along said edges of the plurality of decoded reference blocks using a deblocking filter; as well as Means for decoding the current block of the picture by intra prediction from the plurality of filtered reference blocks, wherein a single transform is applied to samples of the current block, and wherein the current block is in a same coding tree unit (CTU) as at least one of the plurality of filtered reference blocks.
35. The decoding device according to claim 34, wherein the decoding device is configured to implement the decoding method according to any one of claims 26 to 29.
36. An encoding device comprising: means for encoding and reconstructing a plurality of reference blocks, wherein a single transform is applied to samples of each reference block and wherein edges of the plurality of reference blocks are adjacent to a current block of a picture; means for obtaining a plurality of filtered reference blocks by filtering along said edges of the plurality of reconstructed reference blocks using a deblocking filter; as well as Means for encoding the current block of the picture by intra prediction from the plurality of filtered reference blocks, wherein a single transform is applied to samples of the current block, and wherein the current block is in a same coding tree unit (CTU) as at least one of the plurality of filtered reference blocks.
37. The encoding device according to claim 36, wherein: The encoding device is configured to implement the encoding method according to any one of claims 30 to 33.
38. A filtering method, comprising: The filtered pixel values p'0 and q'0 are calculated for each line crossing the edge according to: p'0 = p0 + Δ0 and q'0 = q0 - Δ0; where p0 and q0 are unfiltered pixel values, where Δ0 is the offset obtained by clipping δ0: Δ0=clip(-tC,tC,δ0), where clip(a,b,c)=Max(a,Min(b,c)), where tC is a clipping parameter depending on the quantization parameter QP, and where δ0=(9*(q0-p0)-3*(q1-p1)+8)>>4; Wherein in response to determining that |δ0|<10tC, deblocking filtering is applied to rows or columns of samples that straddle the edge.
