Method and apparatus for video coding
The video encoding device optimizes filter sequences using primary and secondary parameters to address oversmoothing and redundant signaling, enhancing encoding efficiency and reducing complexity for improved video quality and resource utilization.
Patent Information
- Application Number
- JP2024110988
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2035-11-17
AI Technical Summary
Existing video encoding standards face challenges in achieving a balance between compression efficiency and computational complexity, particularly due to issues like oversmoothing and redundant signaling in reference sample adaptive filtering, which affect the performance and complexity of video encoding and decoding processes.
A video encoding device and method that configures a sequence of filters using primary and secondary parameters, with a filter controller adjusting these parameters to meet specific strength criteria, thereby optimizing the filtering process to prevent oversmoothing and reduce computational complexity.
The solution enhances encoding performance by reducing oversmoothing and redundant signaling, leading to improved subjective and objective quality while minimizing computational resources, making it suitable for mobile applications.
Smart Images

Figure 2024133168000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a video encoding device and a method for configuring a sequence of filters for video encoding.
[0002] The invention also relates to a computer readable storage medium having stored thereon program code, said program code comprising instructions for carrying out a method for configuring a sequence of filters for video encoding. [Background technology]
[0003] Digital video communication and storage applications are implemented by a wide range of digital devices, e.g. digital cameras, cellular wireless telephones, laptops, broadcasting systems, videoconferencing systems, etc. One of the most important and challenging tasks of these applications is video compression. The task of video compression is complex and is constrained by two opposing parameters: compression efficiency and computational complexity. Video coding standards such as ITU-T H.264 / AVC or ITU-T H.265 / HEVC offer a good trade-off between these parameters.
[0004] State-of-the-art video coding standards are mostly based on dividing a source picture into blocks. The processing of these blocks depends on their size, spatial location and the coding mode specified by the encoder. The coding modes can be classified into two groups according to the type of prediction: intra-prediction modes and inter-prediction modes. Intra-prediction modes generate reference samples using pixels of the same picture to calculate predicted values for the pixels of the reconstructed block. Intra-prediction can also be called spatial prediction. Inter-prediction modes are designed for temporal prediction and use reference samples of the previous or next picture to predict the pixels of a block of the current picture.
[0005] The prediction process for intra-coding and inter-coding is different due to different types of redundancy. Intra prediction typically builds a one-dimensional buffer of reference samples. Inter prediction typically uses sub-pixel interpolation of a two-dimensional reference pixel matrix. For both intra-coding and inter-coding, additional processing can be used to improve the prediction result (e.g., smoothing the reference samples for intra-prediction, sharpening the reference samples for inter-prediction).
[0006] The recently adopted ITU-T H.265 / HEVC standard (ISO / IEC23008-2:2013, “Information technology - High efficiency coding and media delivery in heterogeneous environments Part 2: High efficiency video coding”, November 2013) declares a set of state-of-the-art video coding tools that offer a reasonable trade-off between coding efficiency and computational complexity.
[0007] Similar to the ITU-T H.264 / AVC video coding standard, the ITU-T H.265 / HEVC video coding standard provides for the division of a source picture into blocks, e.g., coding units (CUs). Each CU can be further divided into smaller CUs or prediction units (PUs). A PU can be intra- or inter-predicted depending on the type of processing applied to the pixels of the PU. In the case of inter-prediction, a PU represents a region of pixels that is processed by motion compensation using the motion vectors specified for the PU. For intra-prediction, a PU specifies a prediction mode for a set of transform units (TUs). TUs can have different sizes (e.g., 4×4, 8×8, 16×16 and 32×32 pixels) and can be processed in different ways. For TUs, transform coding is performed, i.e., the prediction error is transformed and quantized using a discrete cosine transform (DCT). Thus, the reconstructed pixels contain quantization noise and blocking artifacts, which may affect the prediction accuracy.
[0008] To reduce this effect on intra prediction, reference pixel filtering is employed for HEVC / H.265. For inter prediction, reference pixels are calculated using sub-pixel interpolation. Reference pixel smoothing in the case of motion compensation can be combined with anti-aliasing filtering of the sub-pixel interpolation process.
[0009] A mode-adaptive intra-prediction smoothing technique is presented. The smoothing filtering depends on the selected intra-prediction mode and on a flag that is encoded in the video bitstream. Depending on the intra-prediction mode defined for a block, the reference samples can be smoothed by a filter or used without modification. If the reference samples are smoothed, the selection of the smoothing filter can also be based on the intra-prediction mode. Furthermore, this selection can be performed according to the value of the flag reconstructed from the bitstream.
[0010] The current HEVC / H.265 standard partially uses this technique: for some combinations of intra modes and block sizes, filter smoothing is turned off.
[0011] A reference sample adaptive filter (RSAF) has been proposed as an extension of the reference sample filter adopted for the HEVC / H.265 standard. This adaptive filter segments the reference samples before smoothing in order to apply different filters to different segments. In addition, a data hiding procedure has been used to signal the smoothing flag. A simplified version of the adaptive filter for reference samples has been adopted for the Joint Exploration Model 1 (JEM1). JEM1 includes several other tools that use smoothing, including: - 4-tap intra-interpolation filter, Boundary prediction filters and / or Multi-parameter Intra prediction (MPI), which can be replaced by Position Dependent Intra Prediction Combination (PDPC).
[0012] Problems with the above methods include high signaling effort and over-smoothing of the video during encoding or decoding. Summary of the Invention
[0013] It is an object of the present invention to provide a video encoding apparatus and a method for configuring a filter sequence for video encoding, which overcomes one or more of the problems mentioned above.
[0014] A first aspect of the present invention is a video encoding apparatus comprising: a sequence of filters configurable by one or more primary parameters and one or more secondary parameters; a filter controller configured to adjust the one or more secondary parameters based on the one or more primary parameters and based on a strength criterion of the sequence of filters, An apparatus is provided.
[0015] The video encoding apparatus of the first aspect may adjust the one or more secondary parameters such that a strength criterion for the sequence of filters is satisfied. For example, as outlined below, the strength criterion may relate to overall smoothness, and the filter controller may set the secondary parameters such that the overall smoothness of the sequence of filtering stages is neither too high nor too low. In other words, the filter controller may be configured to ensure that the strength criterion for the sequence of filters is within a predefined range.
[0016] The video encoding device of the first aspect may be configured for video encoding and / or decoding.
[0017] The filter controller can be configured to only partially set one or more of the secondary parameters. For example, the secondary parameters can be read from the bitstream or user settings and adjusted by the filter controller, e.g., within a range. In other embodiments, the filter controller can be configured to override values of the secondary parameters derived in other ways, e.g., from the bitstream or user settings.
[0018] In the prior art, incoherent operation of video coding tools, including RSAF, could lead to over-smoothing. It reduces the overall coding performance because the next filter does not take into account the effects caused by the previous filters, and / or All the above mentioned filters are always on, which increases the overall computational complexity.
[0019] This can be avoided with the video encoding apparatus of the first aspect. Furthermore, in certain embodiments, signaling efforts can be reduced, since the secondary parameters do not need to be stored in the bitstream.
[0020] In a preferred embodiment, the video encoding device of the first aspect is able to solve the above-mentioned problem of over-smoothing by adjusting the parameters of the filters of the filter sequence that use smoothing. This adjustment can be achieved, for example, by introducing a flag or some condition for the filters that use smoothing. The flag and / or condition can be: To turn the smoothing mechanism of the tool on and off and / or To change the smoothing strength of the filter (e.g., switch from a strong to a weak filter) can be used for.
[0021] The first controller of the video encoding device of the first aspect can be configured to control multiple filters rather than just a single filter. This can be considered as a mechanism for coordinating different filters that affect the result of intra prediction, for example by smoothing. In particular, the filter controller can be configured to adjust: Depending on flag values and / or fulfilling some conditions some filter modules can be switched off so that the sample processing mechanisms can be altered; A new filter module can be introduced that provides control over all filters that can affect the result of intra prediction by smoothing.
[0022] In a first implementation of the video encoding device according to the first aspect, the strength criterion is: ·Smoothness standard, the ratio of the gain for the high frequency range to the gain for the low frequency range, and / or - Ratio of contrast value before filtering to contrast value after filtering Includes.
[0023] This allows optimizing the sequence of filters for one or more of the above criteria. As outlined above, preferably the adjustment by the filter controller can be performed such that the strength criterion of the sequence of filters is within a certain range, e.g. within a predetermined range.
[0024] In a second implementation of the video encoding device based on the first aspect, the one or more primary parameters are predetermined parameters, in particular parameters that are predetermined from the encoded bitstream, user settings and / or a parameter search loop in the encoding device.
[0025] Determining the secondary parameters from the primary parameters, e.g. only the primary parameters are predetermined, has the advantage that the signaling effort can be reduced, e.g. the bit rate can be reduced if the secondary parameters are not stored in the bitstream but can be derived from the primary parameters in the bitstream.
[0026] In a third implementation of the video encoding device according to the first aspect, the sequence of filters comprises one or more primary filters configurable by one or more primary parameters and one or more secondary filters configurable by one or more secondary parameters, where the one or more primary filters are positioned before the one or more secondary filters in the sequence of filters.
[0027] Adjusting the parameters of a later filter stage has the advantage that the effect of an earlier filter stage can potentially be cancelled or at least not further enhanced. For example, if an earlier filter stage gives a certain smoothing strength, it can be ensured that a later filter stage does not increase this smoothing effect. For example, the smoothing flag of the later filter stages can be switched off.
[0028] In other embodiments of the invention, the primary parameters may relate to later filter stages and the secondary parameters to earlier filter stages.
[0029] In a fourth implementation of the video encoding device according to the first aspect, the sequence of filters is: a reference sample filter configured to adaptively filter one or more neighboring samples of a current video block to obtain one or more reference samples; an interpolation filter configured to predict one or more samples of a current video block using an interpolation of the one or more reference samples, The one or more primary parameters comprise reference parameters of the reference sample filter, and the one or more secondary parameters comprise selection parameters of the interpolation filter, the interpolation filter being configured to use an interpolation method responsive to the selection parameters.
[0030] The sequence of filters of the video encoding device of the fourth implementation may for example be a sequence of filters for intra prediction.
[0031] Preferably, the filter controller is configured to determine said selection parameters based on said reference parameters, which has been shown to be an effective way to improve the overall filter strength criterion.
[0032] In a fifth implementation of the video encoding apparatus based on the first aspect, the one or more primary parameters include a reference sample filter flag of a reference sample filter, and the one or more secondary parameters include a filter strength parameter of an intra-prediction interpolation filter.
[0033] Preferably, the filter controller is configured to determine said filter strength parameters based on said reference sample filter flags, which has been shown to be an effective way to improve the overall filter strength criterion.
[0034] In a sixth implementation of the video encoding device based on the first aspect, the sequence of filters comprises a boundary smoothing filter configured to perform boundary smoothing on one or more transform units belonging to one or more prediction units that satisfy a size constraint.
[0035] This has the advantage that the boundary smoothing filter makes blocking artifacts less visible in the reconstructed blocks. Prediction units typically contain certain picture areas, such as edges, textures, and smooth regions. However, for larger PUs the probability of smooth regions is higher. For smooth regions, blocking artifacts are more critical, and therefore boundary smoothing for large PUs is more preferable than for smaller PUs. As a result, it is proposed to constrain the boundary smoothing by the PU size (for example by a size of 32x32 pixels). By using this constraint, on the one hand, we avoid unwanted blurring for non-smooth regions of smaller PUs, and on the other hand, we reduce blocking artifacts for larger PUs. This allows to improve both the objective and subjective quality compared to the case where boundary smoothing is predefined for intra prediction.
[0036] In a seventh implementation of the video encoding apparatus based on the first aspect, the one or more primary parameters include a direction parameter of a prediction block filter and the one or more secondary parameters include an on-off parameter of a boundary smoothing filter.
[0037] Preferably, the filter controller is configured to determine the on / off parameter of the boundary smoothing filter based on the orientation parameter of the prediction block filter, which has been shown to be an effective way to improve the overall filter strength criterion.
[0038] In an eighth implementation of the video coding device according to the first aspect, the sequence of filters comprises: a sub-pixel interpolation filter configured to adaptively filter the filter samples of the reference block to obtain an interpolated reference block; a low-pass and / or high-pass filter configured to smooth and / or sharpen the interpolated reference block to obtain a filtered reference block, The one or more primary parameters include interpolation parameters of the interpolation filter and the one or more secondary parameters include selection parameters of the sharpening and / or smoothing filters, the derivation of the secondary parameters being determined by the parameters of the interpolation filter.
[0039] The sequence of filters of the video encoding device of the eighth implementation may be, for example, a sequence of filters for inter prediction.
[0040] Preferably, the filter controller is configured to determine the selection parameters of the sharpening and / or smoothing filters based on the interpolation parameters, which has been shown to be an effective way to improve the overall smoothness criterion.
[0041] Note that the smoothness criterion of a sequence of filters can also be position dependent. For example, a filter may introduce strong smoothness in some regions and strong sharpness in other regions. Thus, the filter controller may be configured to set different secondary parameters for different regions of one or more image frames of a video.
[0042] In a ninth implementation of the video encoding apparatus according to the first aspect, the sequence of filters comprises an adaptive loop filter configured to use a selected codebook to direct one or more filter coefficients in the bitstream, where the filter controller is configured to select a codebook from a plurality of codebooks based on the one or more primary parameters.
[0043] The adaptive loop filter coefficients, encoded by multiple codebooks, exploit a priori information about the processing applied to the adaptive loop filter's input signal. It turns out that if smoothing has already been applied to the signal processed by the adaptive loop filter, the adaptive loop filter only needs to introduce high-pass filtering. Thus, some combinations of the adaptive loop filter's coefficients become unavailable. This property is used to keep two or more codebooks in this way for at least two cases: when the adaptive loop filter is applied to an input signal that is already smoothed, and when no smoothing has been applied to the adaptive loop filter's input.
[0044] For example, the multiple codebooks may include a first and a second codebook, where only the first codebook includes coefficients for both high-pass and low-pass filtering, and the second codebook only includes coefficients for low-pass filtering.
[0045] In a preferred embodiment, the plurality of codebooks includes three or more codebooks, and preferably different codebooks of the plurality of codebooks correspond to different filtering strengths of a filter applied before the ALF.
[0046] In a tenth implementation of the video encoding apparatus according to the ninth implementation of the first aspect, the sequence of filters further comprises: a deblocking filter configured to process vertical edges based on a vertical filter strength parameter and / or horizontal edges based on a horizontal filter strength parameter; A sample adaptive offset (SAO) filter configured to classify pixels and add offset values to the pixels according to SAO class parameters; The one or more primary parameters include the SAO class parameter and an SAO type parameter of the SAO filter, and the one or more secondary parameters include the horizontal filter strength parameter and the vertical strength parameter, and the filter controller is configured to derive the secondary parameters based on the SAO class parameter and / or the SAO type parameter of the SAO filter, and / or the filter controller is configured to select the codebook from the multiple codebooks based on the SAO type parameter.
[0047] The sequence of filters of the video encoding device of the tenth implementation may be, for example, a sequence of in-loop filters.
[0048] A further implementation of the video encoding device of the first aspect relates to a video encoding device of one of the above implementations of the first aspect, wherein secondary parameters of the vertical and horizontal edge deblocking filter strengths are different and a ratio of the vertical deblocking filter strength to the horizontal deblocking filter strength is adjusted based on the SAO class.
[0049] A further implementation of the video encoding apparatus of the first aspect relates to a video encoding apparatus of one of the above implementations of the first aspect, wherein the sequence of filters does not include an adaptive loop filter or the filter controller does not adjust parameters of an in-loop filter.
[0050] A further implementation of the video encoding device of the first aspect relates to a video encoding device of one of the above implementations of the first aspect, wherein the sequence of filters does not include a deblocking filter or the filter controller does not adjust parameters of the deblocking filter.
[0051] A second aspect of the invention is a method for configuring a sequence of filters for video encoding, comprising: adjusting one or more secondary parameters based on one or more primary parameters and based on a strength criterion of said sequence of filters; configuring the sequence of filters using the primary and secondary parameters; The present invention relates to a method comprising the steps of:
[0052] In a first implementation of the method of the second aspect, the method further comprises an initial step of determining said one or more primary parameters from the bitstream.
[0053] The methods according to the second aspect of the invention may be performed by a video encoding apparatus according to the first aspect of the invention. Furthermore, further features of implementations of the methods according to the second aspect of the invention may perform functions of the video encoding apparatus according to the first aspect of the invention and its various implementations.
[0054] A third aspect of the invention relates to a computer readable storage medium storing program code, the program code comprising instructions for performing the method of the third aspect or one of the implementations of the third aspect. [Brief description of the drawings]
[0055] In order to more clearly show the technical features of the embodiments of the present invention, the following briefly introduces the accompanying drawings, which are provided to describe the embodiments. The accompanying drawings in the following description merely show some embodiments of the present invention. Modifications of these embodiments are possible without departing from the scope of the present invention defined in the claims. [Figure 1] 1 is a block diagram illustrating a video encoding device according to an embodiment of the present invention. [Diagram 2] 5 is a flowchart of a method for configuring a sequence of filters for a video encoding device according to a further embodiment of the present invention; [Diagram 3] 4 is a structural scheme of a sequence of filters for intra prediction according to a further embodiment of the present invention; [Figure 4] 5 is a flowchart of a method for configuring a sequence of filters for controlled reference sample adaptive filtering according to a further embodiment of the present invention; [Diagram 5] 5 is a flowchart of a method for configuring a sequence of filters for intra prediction according to a further embodiment of the present invention; [Figure 6] 5 is a flowchart of a method for configuring a sequence of filters for boundary smoothing according to a further embodiment of the present invention; [Figure 7] 4 is a structural scheme of a filter sequence for intra prediction according to a further embodiment of the present invention; [Figure 8] 5 is a flowchart of a method for configuring a filter sequence for intra prediction according to a further embodiment of the present invention; [Figure 9] 5 is a flowchart of a method for intra prediction using a filter control module at the decoder side according to a further embodiment of the present invention; [Figure 10] 4 is a structural scheme of a serial-parallel embodiment of inter prediction with a filter control module according to a further embodiment of the present invention; [Figure 11] 5 is a flowchart of a method for configuring a sequence of filters for inter prediction using a filter control module at the decoder side according to a further embodiment of the present invention; [Figure 12] 4 is a structural scheme of an in-loop filter chain according to a further embodiment of the present invention; [Figure 13] 13 is a flowchart of a method for configuring a sequence of filters in which the deblocking filtering depends on one or more SAO parameters according to a further embodiment of the invention. [Figure 14]5 is a flowchart of a further method for configuring a sequence of filters, where deblocking filtering depends on SAO parameters and where the filtering is performed at the decoder side, according to a further embodiment of the invention. [Figure 15] 10 is a flowchart of a method for configuring a sequence of filters according to a further embodiment of the present invention, the method comprising adjusting one or more ALF parameters according to one or more SAO parameters at the decoder side. [Figure 16] 10 is a flowchart of a method for configuring a sequence of filters according to a further embodiment of the present invention, the method comprising adjusting one or more ALF parameters according to one or more SAO parameters at the decoder side. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0056] FIG. 1 shows a video encoding device 100 having a sequence of filters 110 and a filter controller 120 .
[0057] The sequence of filters 110 is configurable by one or more primary parameters and one or more secondary parameters. For example, a first set of filters in the sequence of filters is configurable by a primary parameter and a second set of filters in the sequence of filters is configurable by a second set of filters. There may be overlap between the first set of filters and the second set of filters.
[0058] Filter controller 120 is configured to adjust the one or more secondary parameters based on the one or more primary parameters and based on a strength criterion of the sequence of filters 110. In particular, filter controller 120 can be configured to adjust the one or more secondary parameters based on the one or more primary parameters. For example, a value of a secondary parameter can be based in part on a predefined value, e.g., from a bitstream, and in part on the adjustment based on the primary parameters.
[0059] 2 shows a method 200 for configuring a sequence of filters for video encoding. The method 200 comprises a first stage 210 of adjusting one or more secondary parameters based on one or more primary parameters and based on a strength criterion for said sequence of filters. The method further comprises a second stage 220 of configuring said sequence of filters using said primary and secondary parameters.
[0060] An intra prediction procedure can be part of a hybrid video coding tool chain at the encoder side and / or at the decoder side. Similarly, an inter prediction procedure can include a sequence of filters (e.g., interpolation filters and so-called prediction filters). These filters can cause over-smoothing or over-sharpening of blocks used as references, which are in fact analogues of intra predicted blocks for inter prediction.
[0061] The sequence of filters may, for example, include one or more of the following filters: Reference sample smoothing (e.g. RSAF), Interpolation filtering for intra prediction, Filtering of intra-predicted blocks (e.g. MPI or PDPC) and / or ·Boundary smoothing. These filters can affect the results of intra prediction by smoothing.
[0062] 3 shows a filter sequence 300 with a filter control module 360 for adjusting filtering parameters at various stages for intra prediction. The filter controller module 360 is a filter controller.
[0063] Parameters for intra prediction may include, but are not limited to: - size of the prediction unit, - the predicted block size, Intra prediction mode, Multi-parameter intra-mode index and / or Reference sample filtering flag. One or more of the above parameters can be primary or secondary parameters.
[0064] Apart from the filter control module 360, the sequence of filters 300 comprises a reference sample smoothing unit 310, an intra prediction unit 320, a prediction block filter unit 330 and a boundary smoothing unit 340. The reference sample smoothing unit 310 is configured to receive as input one or more neighboring samples 302. The reference sample smoothing unit 310 is further configured to smooth and / or further process the one or more neighboring samples 302 to obtain one or more reference samples 312. The reference samples 312 are provided as input to an intra prediction unit 320. The intra prediction unit 320 comprises an interpolation filter 322. The intra prediction unit 320 provides its output 324 as input to the prediction block filter 330.
[0065] A predicted block filter 330 is configured to compute one or more predicted blocks 332. The predicted blocks 332 are provided as input to a boundary smoothing unit 340. The boundary smoothing unit 340 generates one or more intra predicted blocks 350 as output 342.
[0066] A video encoding device having the sequence of filters 300 can be configured to use implicit or explicit signaling of reference sample filters selectively, i.e. only for TUs that satisfy certain conditions.
[0067] The filter control module 360 may be configured to read the intra-prediction parameters 362 as primary parameters. The filter control module 360 may be configured to derive secondary parameters based on these primary parameters.
[0068] The quadtree partitioning result can be used as an indication of the reference sample filter selection using explicit or implicit signaling. Specifically, if the size of the PU is larger than a threshold (e.g. 32x32), the reference sample filter flag is set to 0. This assignment overrides the prior art condition: if a certain condition of the PU size is true, then only "no filter" and "apply weak filter" can be selected according to the PU size and / or intra mode conditions.
[0069] FIG. 4 is a flow diagram of a method 400 for configuring a sequence of filters for controlled reference sample adaptive filtering.
[0070] The method 400 includes a first step 402 of evaluating a condition related to the size of the prediction unit. If the condition evaluates to true, the method continues to step 404 where a reference sample filter flag is derived. If the condition related to the size of the prediction unit evaluates to false, the method continues to step 406 where the reference sample filter flag is set to false. Step 404 or step 406 is followed by step 408 where one or more conditions related to intra mode and block size are evaluated.
[0071] If the evaluation result of step 408 is false, the method continues at step 410 where the reference sample filter flag is evaluated. If the flag is false, the method continues at step 414 where the reference sample adaptive filter is set to not apply a filter. If the flag is evaluated to true at step 410, a weak filter is applied at step 416. Alternatively, if the condition evaluation at step 408 is evaluated to true, the method continues at step 412 where the reference sample filter flag is evaluated. If the evaluation is false, a weak filter is applied at step 416. If the reference sample filter flag is evaluated to true at step 412, a strong filter is applied at step 418.
[0072] The "apply weak filter" and "apply strong filter" steps can select a filter from a predefined set of filters, where the selection of a particular filter from said set is mapped to an intra mode and the size of the predicted block. This particular embodiment with only three filters does not mean that the amount of filters in the filter set cannot be extended to any amount (e.g., five states including "no filter", "weak filter", "strong filter" and two intermediate filters).
[0073] In directional intra prediction, the values of pixels of the predicted block and their projections at the left and top block boundaries are calculated. However, the projections may have odd positions, i.e., they may be between the actual positions of the reference samples on the boundaries. A weighted sum of the values of the neighboring reference samples is calculated to determine the value of the sample of the intra predicted block. This process is actually a two-tap interpolation filter, which can be further extended to a four-tap interpolation filter.
[0074] A four-tap intra prediction filter can be utilized to improve directional intra prediction accuracy. In HEVC, a two-tap linear interpolation filter is used to generate intra prediction blocks in directional prediction modes (i.e., except for Planar and DC predictors). Alternatively, two types of four-tap interpolation filters can be used: a cubic interpolation filter for 4x4 and 8x8 blocks and a Gaussian interpolation filter for 16x16 and larger blocks. The parameters of the filters are fixed depending on the block size, and the same filter is used for all predicted pixels in all directional modes.
[0075] In HEVC, after an intra prediction block is generated for VER and HOR intra modes, the prediction samples in the leftmost column and topmost row, respectively, are further adjusted. This can be further extended for some diagonal intra modes, where up to four row or column boundary samples are further adjusted using a two-tap (for intra modes 2&34) or three-tap filter (for intra modes 3-6&30-33).
[0076] Figures 4 and 5 show two embodiments for synchronizing the selection of the interpolation filter type with the reference sample filtering process. Both embodiments consider that two interpolation filter types, weak and strong, can be applied. For example, for 16x16 and larger predicted blocks a Gaussian filter is used, and for other block sizes a cubic filter is selected. For both embodiments, the interpolation filter selection can be coordinated with the reference sample filtering process.
[0077] FIG. 5 is a flow diagram of a method 500 for configuring interpolation filters for intra prediction.
[0078] The method 500 includes a first step 502 of deriving a reference sample filter flag. In step 504, the reference sample filter flag is evaluated. If it evaluates to true, the method continues to step 506 where a condition related to the size of the transform block is evaluated. If the condition evaluates to false, the method continues to step 508 where a weak intra-interpolation filter is applied. Similarly, if the reference sample filter flag evaluates to false in step 504, the method also continues to step 508. If the condition related to the size of the transform block evaluates to true in step 506, the method continues to step 510 where a strong intra-interpolation filter is applied.
[0079] The embodiments of FIG. 4 and FIG. 5 differ with respect to the reference sample filter flag derivation. In the embodiment of FIG. 4, the reference sample filter flag is true if the predicted block based on the condition has different reference sample filter options. This filter selection can be signaled explicitly or implicitly (e.g., by mapping to a prediction mode or by using data hiding in the quantized residual data). For the embodiment of FIG. 4, the actual selected reference filter value is not considered in the reference sample filter flag derivation. However, if the reference sample filter selection is performed at the encoder side for the predicted block and the selection is signaled explicitly or implicitly to the decoder, the reference sample flag value is true. Otherwise, if the predicted block has a predefined reference filter or does not have reference sample filtering, the reference sample flag value is false.
[0080] The embodiment of Fig. 5 uses the value of the reference filter selection as the reference sample flag value. If a strong filter is selected for the reference filter (e.g., {1 2 1} or a five-tap filter), the reference sample flag value is assigned as true. And similar to the first embodiment, for predicted blocks with no reference filtering or a weak reference sample filter selected, the reference sample flag value is false.
[0081] The beneficial effect of the above-described embodiments is achieved by the harmonization of the reference sample filtering and intra prediction interpolation processes. It can be observed that these embodiments prevent the predicted blocks from being too smooth.
[0082] FIG. 6 is a flow chart of a method 600 for configuring a sequence of filters for boundary smoothing.
[0083] The method 600 includes a first step 602 of determining whether the predicted block filter is directional. If so, the method continues to step 604 where a block size condition is evaluated. If the block size condition evaluates to false or the predicted block filter directional evaluates to false, the method continues to step 606 where an intra mode condition is evaluated. If the intra mode condition evaluates to true, the method continues to step 608 where boundary smoothing is applied. Otherwise and if the block size condition evaluates to true in step 604, boundary smoothing is not applied.
[0084] Boundary smoothing can be applied when the intra prediction mode is selected to be DC, horizontal, vertical or diagonal. The proposed invention synchronizes boundary smoothing with the selection of the filter for the prediction block. In particular, the directionality of the prediction block filter is used to decide whether to apply boundary smoothing or not. For example, if a two-dimensional filter has the same strength in both the vertical and horizontal directions, the filter is non-directional. In particular, for non-directional filters, boundary smoothing is not applied. Multi-parameter intra prediction can be an example of a prediction block filter. If this technique is used as the prediction block filter, the first condition in FIG. 6 can be formulated as "MPI index is greater than 1".
[0085] In the opposite case, where the prediction block filter is directional, the present invention considers another constraint: if the size of the block to be filtered is smaller than 32 pixels, the boundary smoothing is skipped for this block, regardless of the directional nature of the prediction block filter.
[0086] 7 is a structural scheme of a filter sequence 700 for intra prediction, which can be used to encode or decode a video.
[0087] The filter sequence 700 comprises a filter control module 760 configured to adjust parameters of several filters. In particular, the filter sequence 700 receives as input one or more nearby samples 702. These nearby samples 702 are provided as input to a reference sample adaptive filter SAF 710. The filter 710 represents the first filter of the filter sequence 700. The reference sample adaptive filter 710 generates one or more reference samples 712, which are provided as input to an intra prediction unit 720. The intra prediction unit 720 comprises a set of four-tap interpolation filters 722, which are configurable by one or more interpolation filter parameters.
[0088] The output 724 of the intra prediction unit is provided as input to a boundary prediction filter 730. The output 732 of the boundary prediction filter is provided as input to a combined multi-parameter intra prediction / position-dependent intra prediction unit 740. Unit 740 generates one or more intra predicted blocks 750 as output 742.
[0089] The reference sample adaptive filter 710, the intra prediction unit 720, the boundary prediction filter 730 and the multi-parameter intra prediction / position-dependent intra prediction combination unit 740 can each be configured by one or more parameters, which can be set by the filter control module 760.
[0090] Multi-parameter intra prediction (MPI) is a post-processing for intra prediction that invokes additional smoothing using the decoded boundaries. It is
[0091]
number
[0092]
number
[0093] An alternative to MPI is Position Dependent Intra Prediction Combination (PDPC), a content-adaptive post-processing for intra prediction that invokes a combination of the above intra prediction with unfiltered boundaries. It can be implemented as follows:
[0094]
number
[0095] The strength of this post-processing can be controlled by the parameter α+β+γ=8. Different sets of {α,β,γ} constitute the dictionary summarized in Table 1. The strength of the post-processing smoothing is different for blocks coded as 2Nx2N and NxN. The same post-processing can be applied for both luminance and chrominance blocks inside a CU.
[0096] [Table 1] The combined intra index that determines post-processing is signaled using 2 bits at the CU level. This syntax element is not signaled if the left or top border of the CU is a picture border. A value of 0 for this index indicates that no post-processing is used.
[0097] The problem of over-smoothing can be overcome if each tool has a flag to turn it on and off, and the RDO procedure is run jointly for all tools that use smoothing, rather than separately for each tool. However, this solution has the disadvantage of redundant signaling, which can degrade overall coding performance.
[0098] FIG. 8 is a flow diagram of a method 800 for configuring a filter sequence for intra prediction.
[0099] The method 800 includes a first step 810 of determining whether reference sample adaptive filtering (RSAF) is used. For example, this can be determined by evaluating a RASF flag. If it is determined that RSAF is used, then in step 812, reference sample adaptive filtering is applied. Then, in step 814, interpolation using a four-tap third order filter is applied. This can be achieved by setting an interpolation mode parameter of an interpolation filter of a filter sequence for intra prediction to a four-tap third order filter.
[0100] If it is determined in step 810 that the RSAF is not used, then in step 816, an interpolation using a set of four-tap filters is applied. In particular, this can be a pre-determined set of four-tap filters. Setting the interpolation filter to use said set of four-tap filters can be achieved, for example, by setting an interpolation parameter of the interpolation filter to "set of four-tap filters".
[0101] In a further step 820, an MPI index variable i is set to 0. Then in step 822 it is determined whether the variable is greater than 1. If so, in step 824 it is determined whether the current prediction unit PU size is greater than 32. If so, in step 826, boundary prediction filtering is applied. Boundary prediction filtering is also applied if it is determined in step 822 that i is not greater than 1. If it is determined in step 824 that the current PU size is not greater than 32, the method continues to step 828 with a multi-parameter intra prediction / position-dependent intra prediction combination.
[0102] Then, in step 830, the rate-distortion cost for the current configuration, RD cost J i In particular, the current configuration setting may correspond to the current value of MPI index i. In other embodiments, other parameters may also be varied and the RD cost for different parameter settings may be determined.
[0103] In step 832, it is determined whether the MPI index i is greater than 3. If not, the MPI index is incremented by 1 in step 834 and the method continues to step 822. If the MPI index is greater than or equal to 3, the method continues to step 836 by selecting the best MPI index, which is the one with the lowest RD cost J i This can be achieved by choosing the MPI index that corresponds to
[0104] FIG. 9 is a flow diagram of a method 900 for configuring a sequence of filters for intra prediction using a filter control module at the decoder side.
[0105] The inter prediction mechanism may include, for example, the following filters: Regularized filters based on Lagrange interpolation, A sharpening filter using DCT-based interpolation (usually around relatively sharp edges), and / or Smoothing non-interpolating filters.
[0106] Preferably, only one of these filters can be selected. For quarter-pixel interpolation, the sharpening filter can be enabled by default, i.e. its parameters should be obtained by parsing the bitstream at the decoder side, without deriving any other flags or parameters. For half-pixel interpolation, the sharpening can be turned off. For integer pixels, both the sharpening and smoothing filters are enabled and can thus be switched off if needed. However, if one of them is turned on, its parameters should be obtained from the bitstream before performing the filtering.
[0107] The method 900 includes a first step 910 of determining whether reference sample adaptive filtering (RSAF) is being used. For example, this can be determined by evaluating a RASF flag. If it is determined that RSAF is being used, then in step 912, reference sample adaptive filtering is applied. Thereafter, in step 914, interpolation using a four-tap third order filter is applied. This can be achieved by setting an interpolation mode parameter of an interpolation filter of a filter sequence for intra prediction to a four-tap third order filter.
[0108] If it is determined in step 910 that the RSAF is not used, then in step 916, an interpolation using a set of four-tap filters is applied. In particular, this can be a pre-determined set of four-tap filters. Setting the interpolation filter to use said set of four-tap filters can be achieved, for example, by setting an interpolation parameter of the interpolation filter to "set of four-tap filters".
[0109] At stage 920, it is determined whether the MPI index is greater than 1. The MPI index may have been determined, for example, by parsing an MPI index value from the bitstream or otherwise determining. If the MPI index is greater than 1, the method proceeds to stage 924 by determining whether the current PU size is greater than 32. If so and if the MPI index is not greater than 1, the method continues to stage 926 by applying boundary prediction filtering. However, if the current PU size is not greater than 32, the method continues to stage 928 with a multi-parameter intra prediction / position dependent intra prediction combination.
[0110] Figure 10 shows a construction scheme of a filter sequence 1000. The sequence 1000 has a series / parallel structure.
[0111] The sequence of filters 1000 is configured to process blocks of samples 1002 to obtain a reference (predicted) block 1040. The sequence 1000 comprises one or more sub-pixel interpolation filters 1010 configured to interpolate between the block samples 1002. The results 1012 of the sub-pixel interpolation are applied as input to a smoothing filter 1020 and / or a sharpening filter 1030. Preferably, a smoothing filter 1020 or a sharpening filter 1030 is used.
[0112] The output of the smoothing filter 1020 and / or the sharpening filter 1030 is a reference (predicted) block 1040. The filter sequence 1000 is controlled by a filter control module 1050. The filter control module 1050 is configured to set parameters of the sub-pixel interpolation filter 1010, the smoothing filter 1020 and / or the sharpening filter 1030.
[0113] FIG. 11 is a flow chart of a method for configuring a sequence of filters for inter prediction using a filter control module at the decoder side.
[0114] The method 1100 includes a first step of determining whether ¼ ¾ pixel interpolation is used. If not, the method proceeds to step 1104 by determining whether half pixel interpolation is used. If so, the method continues to step 1106 by parsing the bitstream to obtain one or more values of a control flag. Then, in step 1112, it is determined whether a sharpening filter is enabled. In particular, this can be determined from the one or more values of the control flag determined in step 1106. Alternatively, if it is determined in step 1104 that half pixel interpolation is not used, the method continues to step 1108 by parsing the bitstream to obtain one or more values of one or more control flags. Then, in step 1110, it is determined whether a smoothing filter is enabled. In particular, this can be determined from the one or more values of the one or more control flags.
[0115] If the smoothing filter is enabled, the method continues to step 1116 where the bitstream is parsed to obtain one or more values of a smoothing filter strength parameter and filtering is performed accordingly. Alternatively, if in step 1110 it is determined, e.g., from the bitstream, that the smoothing filter is not enabled, the method continues to step 1112 where it is determined whether a sharpening filter is enabled. If the sharpening filter is enabled, the method continues to step 1114 where the bitstream is parsed to obtain one or more values of a sharpening filter strength parameter and filtering is performed accordingly.
[0116] State-of-the-art video coding also provides a filtering stage at the end of the encoder and decoder, as the output data of this process is passed to a motion compensation loop, this filtering being called in-loop filtering.
[0117] Several sequences of filters can be used both in the encoder and the decoder. Preferably, the first stage of the sequence of filters is configured to remove blocking artifacts by using a deblocking filter. The low-pass filter is applied to the edges of the TUs according to a set of predefined rules. These rules have parameters, called deblocking parameters, that can be specified for the whole sequence or separately for each frame.
[0118] Preferably, the second stage is configured to remove quantization noise by using a sample adaptive offset. The frame can be subdivided into pixel regions, and each of these regions is assigned SAO parameters. The SAO parameters can include: ●SAO type that controls the classifier type: BO (band offset): This SAO type chooses to add an offset to pixels whose values are within the range specified by the SAO category. ○EO(edge offset): This SAO type chooses to add different offsets to pixels depending on the SAO category. ●SAO class: Specifies the pixel pattern that should be used to derive the SAO category. ●SAO Offset: A lookup table that assigns an offset to each SAO category. According to the pixel category the corresponding offset should be added.
[0119] Preferably, one or more of these SAO parameters are derived at the encoding side and encoded into the bitstream so that the decoder can parse them.
[0120] The next step is to apply an adaptive loop filter (ALF), which is quite similar to a Wiener filter. At the encoder side, the filter coefficients that give the minimum mean squared error after filtering the reconstructed pixels are derived. These coefficients are further quantized and signaled to the decoder in the bitstream.
[0121] Preferably, the filter control module for adapting the filter strengths at various stages of the in-loop filtering chain is configured to adjust the processing at one filtering stage depending on the values of parameters at the other stage(s).
[0122] FIG. 12 is a structural scheme of a loop-in-filter chain 1200, which is a sequence of filters.
[0123] The in-loop filter chain 1200 is configured to process a reconstructed frame 1202 to obtain a reference picture buffer 1240. The reconstructed frame 1202 is provided as an input to a deblocking filter 1210. The output of the deblocking filter is provided as an input 1212 to a sample adaptive offset filter 1220. The output of the sample adaptive offset filter 1220 is provided as an input 1222 to an adaptive loop filter 1230. The output of the adaptive loop filter 1230 is provided as an input 1232 to the reference picture 1240.
[0124] The deblocking filter 1210, the sample adaptive offset filter 1220 and the adaptive loop filter 1230 are configurable with parameters that can be set by a filter control module 1250. The filter control module 1250 is configured to determine these parameters based on input parameters including one or more deblocking filter parameters 1252, one or more SAO parameters 1254 and one or more ALF parameters 1256. For example, these parameters may be user defined or obtained from the bitstream.
[0125] The deblocking filter 1210 may depend on one or more SAO parameters. Preferably, at the encoder side, if the SAO type is selected to be EO (Edge Offset) and a pixel pattern (SAO class) is assigned to a horizontal or vertical direction, the deblocking operation is disabled for edges with a direction perpendicular to the selected pixel pattern direction.
[0126] FIG. 13 is a flow diagram of a method 1300 for configuring a sequence of filters where the deblocking filtering depends on one or more SAO parameters.
[0127] The method 1300 includes a first step 1302 of estimating one or more SAO parameters. The SAO parameters may include an edge offset parameter and an SAO class.
[0128] Step 1304 determines whether the edge offset parameter is set to true. If so, then in step 1306 the SAO class parameter is evaluated. If the SAO class parameter is set to vertical, then in step 1308 the method disables horizontal deblocking. If the SAO class parameter is set to horizontal, then in step 1310 vertical edge deblocking is disabled. If the SAO class is set to another value or if in step 1304 the edge offset parameter is determined to be false, then the method continues to step 1312 of applying a deblocking filter according to the configuration settings determined above. The method then continues to step 1314 of sample adaptive offset filtering and possibly further filtering steps.
[0129] FIG. 14 is a flow chart of a further method 1400 of configuring a sequence of filters when deblocking filtering depends on SAO parameters and filtering is performed at the decoder side.
[0130] In a first step 1402, one or more SAO parameters are extracted from the bitstream.
[0131] In step 1404 it is determined whether the edge offset parameter is set to true. If so, in step 1406 the SAO class parameter is evaluated. If the SAO class parameter is set to vertical, the method disables deblocking of horizontal edges in step 1408. If the SAO class parameter is set to horizontal, deblocking of vertical edges is disabled in step 1410. If the SAO class is set to another value or if in step 1404 the edge offset parameter is determined to be false, the method continues to step 1412 of applying a deblocking filter according to the configuration settings determined above. The method then continues to step 1414 of sample adaptive offset filtering and possibly further filtering steps.
[0132] 15 is a flow diagram of a method 1500 for configuring a sequence of filters, where the method 1500 adjusts one or more adaptive loop filter parameters based on one or more SAO parameters at the decoder side.
[0133] In particular, the method 1500 includes a first step 1502 of estimating SAO parameters. In a second step 1504, it is determined whether an edge offset flag is set. If so, in step 1506, the smoothing filter in the adaptive loop filter ALF is disabled.
[0134] Then, in steps 1508 to 1514, deblocking, sample adaptive offset filtering, adaptive loop filter parameter estimation and adaptive loop filtering are applied.
[0135] Compared to the methods shown in, for example, Figures 13 and 14, the codebook selection for encoding and decoding the ALF parameters is different, especially for the edge-offset and band-offset SAO cases.
[0136] FIG. 16 is a flow chart of a method 1600 for adjusting one or more ALF parameters in response to one or more SAO parameters at the encoder side.
[0137] In a first step 1602, the SAO parameters are derived from the bitstream. In a second step 1604, it is determined whether the edge offset flag is set. If not, then in step 1606, the first ALF parameter codebook is selected. If the edge offset flag is not set, then in step 1608, the second ALF parameter codebook is selected.
[0138] Then, in steps 1610 to 1616, ALF parameters are obtained from the bitstream, a deblocking filter is applied, sample adaptive offset filtering is applied, and adaptive loop filtering is applied.
[0139] Embodiments of the invention may relate to the following further aspects: [Aspect 1] a. Configure the filter parameters of the following stages according to the intra prediction parameters: b. Preparing reference samples by adaptively applying filters to neighboring blocks of the predicted block. c. calculating a predicted value for each sample of the predicted block using the interpolated values of the reference samples; d. Applying a filter to the predicted block e. Performing boundary smoothing A method for encoding and decoding video data, the method comprising: [Aspect 2] 2. The method of aspect 1, wherein the quadtree partitioning result is used as an instruction for reference sample filter selection using explicit or implicit signaling. [Aspect 3] 2. The method of aspect 1, wherein calculating the predicted value for each sample of the predicted block is performed using an interpolation filter selected according to a reference sample filtering process. [Aspect 4] 4. The method of aspect 3, wherein the interpolation filter selection is performed for a predicted block calculated without implicit or explicit signaling of reference sample filter selection. [Aspect 5] 4. The method of aspect 3, wherein the interpolation filter selection is performed on a predicted block obtained from reference samples filtered by the weak reference sample filter. [Aspect 6] 2. The method of aspect 1, wherein boundary smoothing is performed on TUs that belong to a PU that satisfies a size constraint. [Aspect 7] 7. The method of aspect 6, wherein a directionality of the prediction block filter influences the decision to apply boundary smoothing. [Aspect 8] a. Configure the filter parameters of the following stages according to the intra prediction parameters: b. Preparing reference samples by adaptively applying a filter to a search area that is used to find a block to be used as a reference after processing by the interpolation and prediction filters. c. Applying an interpolation filter to the currently processed block d. Applying a prediction filter to the currently processed block A method for encoding and decoding video data, the method comprising: [Aspect 9] The method of aspect 8, wherein step d precedes step c. [Aspect 10] 1. A method for filtering a signal, comprising the steps of: a. several iterative filtering steps, the filter strength depending on additional conditions; b. instructions associated with some of said filtering stages, the instructions specifying the filtering strength for the associated stage; c. a control unit for overriding the additional conditions in the filtering step a depending on the instructions related to the preceding step; method. [Side 11] 11. The method of aspect 10, wherein an indication of a strong filter in a filtering stage i overrides an additional condition check in a stage k>i that selects a weak filter.
[0140] Embodiments of the invention provide one or more of the following advantages. Many potential applications in a JEM-compatible hybrid video coding framework that serves as the basis for next-generation video coding standards; Reduced BD rate and subjective quality improvement compared to JEM1. Reduced computational complexity of both the encoder and decoder compared to JEM1 with integrated RSAF, which makes the invention potentially attractive for many mobile applications. · Avoid redundant signaling (syntax).
[0141] The above description is merely an implementation form of the present invention, and the scope of the present invention is not limited thereto. Any modifications or replacements can be easily made by those skilled in the art. Therefore, the protection scope of the present invention should be subject to the protection scope of the accompanying claims.
[0142] Several aspects will be described. [Aspect 1] A sequence of filters (110; 300; 700; 1000; 1200) configurable by one or more primary parameters and one or more secondary parameters; a filter controller (120) configured to adjust the one or more secondary parameters based on the one or more primary parameters and based on a strength criterion of the sequence of filters, A video encoding device (100). [Aspect 2] The strength criteria are: ·Smoothness standard, the ratio of the gain for the high frequency range to the gain for the low frequency range, and / or - Ratio of contrast value before filtering to contrast value after filtering 2. The video encoding device (100) of embodiment 1, comprising: [Aspect 3] The video encoding device (100) of aspect 1 or 2, wherein the one or more primary parameters are predetermined parameters, in particular parameters that are predetermined from an encoded bitstream, user settings, and / or a parameter search loop in an encoding device. Aspect 4 A video encoding device (100) according to any one of aspects 1 to 3, wherein the sequence of filters (110; 300; 700; 1000; 1200) comprises one or more primary filters configurable by one or more primary parameters and one or more secondary filters configurable by one or more secondary parameters, the one or more primary filters being positioned before the one or more secondary filters in the sequence of filters. Aspect 5 The above sequence of filters (110;300;700;1000;1200) is: a reference sample filter (310; 710) configured to adaptively filter one or more neighboring samples of the current video block to obtain one or more reference samples; an interpolation filter (320; 720; 1010) configured to predict one or more samples of the current video block using an interpolation of the one or more reference samples, A video encoding device (100) according to any one of aspects 1 to 4, wherein the one or more primary parameters comprise reference parameters of the reference sample filter and the one or more secondary parameters comprise selection parameters of the interpolation filter, the interpolation filter being configured to use an interpolation method depending on the selection parameters. Aspect 6 A video encoding device (100) according to any one of aspects 1 to 5, wherein the one or more primary parameters include a reference sample filter flag of a reference sample filter, and the one or more secondary parameters include a filter strength parameter of an intra-prediction interpolation filter. Aspect 7 A video encoding device (100) according to any one of aspects 1 to 6, wherein the sequence of filters (110; 300; 700; 1000; 1200) includes a boundary smoothing filter (340; 730) configured to perform boundary smoothing for one or more transform units belonging to one or more prediction units that satisfy a size constraint. Aspect 8 A video encoding device (100) according to any one of aspects 1 to 7, wherein the one or more primary parameters include a direction parameter of a prediction block filter, and the one or more secondary parameters include an on-off parameter of a boundary smoothing filter. Aspect 9 The above sequence of filters (110;300;700;1000;1200) is: a sub-pixel interpolation filter configured to adaptively filter the filter samples of the reference block to obtain an interpolated reference block; a low-pass and / or high-pass filter configured to smooth and / or sharpen the interpolated reference block to obtain a filtered reference block, the one or more primary parameters include an interpolation parameter of the interpolation filter and the one or more secondary parameters include a selection parameter of the sharpening and / or smoothing filter, and the filter controller (120) is configured to derive the secondary parameter based on the interpolation parameter of the interpolation filter. 9. The video encoding device (100) according to any one of aspects 1 to 8. Aspect 10 10. The video encoding apparatus (100) of any one of aspects 1 to 9, wherein the sequence of filters (110; 300; 700; 1000; 1200) includes an adaptive loop filter configured to use a selected codebook to indicate one or more filter coefficients in a bitstream, and the filter controller is configured to select a codebook from a plurality of codebooks based on the one or more primary parameters. Aspect 11 The above sequence of filters (110;300;700;1000;1200) further: a deblocking filter (1210) configured to process vertical edges based on a vertical filter strength parameter and horizontal edges based on a horizontal filter strength parameter; a sample adaptive offset,SAO,filter (1220) configured to classify pixels and add offset values to said pixels according to SAO class parameters; an adaptive loop filter (1230) configured to use two or more codebooks to indicate one or more filter coefficients in the bitstream; the one or more primary parameters include the SAO class parameter and an SAO type parameter of the SAO filter, and the one or more secondary parameters include the horizontal filter strength parameter and the vertical strength parameter, and the filter controller (120) is configured to derive the secondary parameters based on the SAO class parameter and / or the SAO type parameter of the SAO filter, and / or the filter controller (120) is configured to select the two or more codebooks based on the SAO type parameter. 11. The video encoding device (100) according to any one of aspects 1 to 10. Aspect 12 1. A method for configuring a sequence of filters (110; 300; 700; 1000; 1200) for video encoding, comprising: adjusting one or more secondary parameters based on one or more primary parameters and based on a strength criterion of said sequence of filters; configuring the sequence of filters using the primary and secondary parameters; Methods including (200; 400; 500; 600; 800; 900; 1100; 1300; 1400; 1500; 1600). Aspect 13 13. The method of claim 12 (200; 400; 500; 600; 800; 900; 1100; 1300; 1400; 1500; 1600), further comprising an initial step of determining the one or more primary parameters from a bitstream. Aspect 14 14. A computer readable storage medium having program code stored thereon, the program code comprising instructions for performing the method of any one of claims 12 to 13.
Claims
1. 1. A bitstream generated by a method of video encoding, the method comprising: configuring the sequence of filters with one or more primary parameters and one or more secondary parameters; the sequence of filters includes one or more primary filters configurable based on the one or more primary parameters and one or more secondary filters configurable based on the one or more secondary parameters, the one or more primary filters being positioned prior to the one or more secondary filters in the sequence of filters; The sequence of filters is: a reference sample filter as a first-order filter configured to adaptively filter one or more neighboring samples of the current video block to obtain one or more reference samples; an interpolation filter as a secondary filter configured to predict one or more samples of the current video block using an interpolation of the one or more reference samples; the one or more primary parameters include a reference sample filter flag of the reference sample filter, and the one or more secondary parameters include a filter strength parameter of the interpolation filter, the reference sample filter flag indicating whether the reference sample filter is applied and the filter strength parameter indicating whether a weak or strong interpolation filter is applied; The method further comprises: determining the filter strength parameter based on the reference sample filter flag; configuring the interpolation filter to use the interpolation in response to the filter strength parameter; encoding the current video coding block into the bitstream based on the sequence of configured filters; Including, Bitstream.
2. 2. The bitstream of claim 1, wherein the filter strength parameter indicates whether a Gaussian filter or a cubic filter is used as the interpolation filter.
3. The bitstream of claim 1 , wherein the filter strength parameter is determined further based on a transform block size.
Citation Information
Patent Citations
Pixel adaptive intra smoothing
US20120140821A1
Interpolation filter for intra prediction of hevc
US20120183041A1
Intra prediction in image processing
US20150271503A1
Intra prediction and intra mode coding
US20160373741A1
Disabling intra prediction filtering
WO2015010037A1
