CN103491373B - A kind of level Four flowing water filtering method of deblocking filter suitable for HEVC standard - Google Patents
A kind of level Four flowing water filtering method of deblocking filter suitable for HEVC standard Download PDFInfo
- Publication number
- CN103491373B CN103491373B CN201310402353.XA CN201310402353A CN103491373B CN 103491373 B CN103491373 B CN 103491373B CN 201310402353 A CN201310402353 A CN 201310402353A CN 103491373 B CN103491373 B CN 103491373B
- Authority
- CN
- China
- Prior art keywords
- value
- block
- pixel
- formula
- pixels
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000001914 filtration Methods 0.000 title claims abstract description 26
- 238000000034 method Methods 0.000 title claims abstract description 25
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 title abstract description 4
- 101150039623 Clip1 gene Proteins 0.000 claims description 8
- 238000003672 processing method Methods 0.000 claims description 8
- 239000011159 matrix material Substances 0.000 claims description 4
- 101001062093 Homo sapiens RNA-binding protein 15 Proteins 0.000 claims description 3
- 102100029244 RNA-binding protein 15 Human genes 0.000 claims description 3
- 230000006835 compression Effects 0.000 abstract description 4
- 238000007906 compression Methods 0.000 abstract description 4
- 230000009466 transformation Effects 0.000 description 3
- 230000008520 organization Effects 0.000 description 2
- 238000013139 quantization Methods 0.000 description 2
- 239000013598 vector Substances 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Image Processing (AREA)
Abstract
Description
技术领域technical field
本发明属于高清数字视频压缩编解码技术领域,针对HEVC视频编解码标准,具体涉及一种适用于HEVC标准的去方块滤波器的四级流水滤波方法。The invention belongs to the technical field of high-definition digital video compression encoding and decoding, and is aimed at the HEVC video encoding and decoding standard, and in particular relates to a four-stage pipeline filtering method applicable to a deblocking filter of the HEVC standard.
背景技术Background technique
HEVC(High Efficiency Video Coding)是由国际电信组织(ITU)和运动图像专家组(MPEG)联合成立的组织JCTVC提出的下一代视频编解码标准。目标是在相同的视觉效果的前提下,相比于上一代标准H.264/AVC,压缩率提高一倍。HEVC (High Efficiency Video Coding) is a next-generation video codec standard proposed by JCTVC, an organization jointly established by the International Telecommunications Organization (ITU) and the Motion Picture Experts Group (MPEG). The goal is to double the compression rate compared to the previous generation standard H.264/AVC under the premise of the same visual effect.
基于HEVC的视频编码器,其结构图如图1所示,主要由以下几个模块组成:帧内预测、帧间预测、变换、量化、反量化、反变换、重建、去方块滤波器、自适应样点补偿等模块组成。视频压缩编码的基本过程可以概括如下:1.利用帧内预测或帧间预测方式对当前原始视频流像素进行预测;2.将原始的像素值与预测出来的像素值相减得到残差值;3.将残差进行变换及量化处理,得到输出的残差系数再进过CABAC(Context-based AdaptiveBinary Arithmetic Coding)熵编码形成最后的压缩输出码流;4.残差系数经过反量化及反变换处理,再与之前得到的预测像素相加得到重建像素,存储作为预测的参考帧像素。The HEVC-based video encoder, as shown in Figure 1, is mainly composed of the following modules: intra prediction, inter prediction, transformation, quantization, inverse quantization, inverse transformation, reconstruction, deblocking filter, auto Compatible with sample point compensation and other modules. The basic process of video compression coding can be summarized as follows: 1. Use intra prediction or inter prediction to predict the pixels of the current original video stream; 2. Subtract the original pixel value from the predicted pixel value to obtain the residual value; 3. Transform and quantize the residual to obtain the output residual coefficient and then enter CABAC (Context-based Adaptive Binary Arithmetic Coding) entropy coding to form the final compressed output code stream; 4. The residual coefficient is dequantized and inversely transformed Processing, and then added to the previously obtained predicted pixels to obtain reconstructed pixels, which are stored as predicted reference frame pixels.
HEVC中的处理单元块引入了四叉树的结构,图像处理块的大小最大为64×64,它还可以继续递归地划分为32×32、16×16、8×8、4×4的小块组合,并分别进行处理。编码端要对块的所有划分情况进行一次遍历,以确定哪种划分情况的处理为最佳。The processing unit block in HEVC introduces a quadtree structure. The maximum size of an image processing block is 64×64. Blocks are combined and processed separately. The encoding end needs to traverse all division situations of the block once to determine which division situation is best handled.
去方块滤波器模块如图1中所示,该模块主要判断PU(预测单元)和TU(变换单元)边界两边像素值的特征,对边界两边的像素点进行滤波,以消除由于块编码方式所导致的一些边框效应,使重建图像具有更好的质量和PSNR值(峰值信噪比)。The deblocking filter module is shown in Figure 1. This module mainly judges the characteristics of the pixel values on both sides of the boundary between the PU (prediction unit) and the TU (transformation unit), and filters the pixels on both sides of the boundary to eliminate the distortion caused by the block coding method. Some border effects are caused, so that the reconstructed image has better quality and PSNR value (Peak Signal-to-Noise Ratio).
标准参考软件HM9.0中,该模块先对整幅图像落在8x8边界的垂直边进行处理,再对整幅图像落在8x8边界的水平边进行处理。而这种滤波处理过程十分复杂,会导致芯片的最高工作频率很低,无法高效地对视频流进行实时编码。In the standard reference software HM9.0, this module first processes the vertical edge of the entire image falling on the 8x8 boundary, and then processes the horizontal edge of the entire image falling on the 8x8 boundary. However, this kind of filtering process is very complicated, which will cause the maximum operating frequency of the chip to be very low, and it is impossible to efficiently encode the video stream in real time.
发明内容Contents of the invention
本发明的目的在于提出一种可以克服现有技术不足、能有效适用于HEVC标准的去方块滤波器的四级流水线滤波方法。The purpose of the present invention is to propose a four-stage pipeline filtering method that can overcome the deficiencies of the prior art and can be effectively applied to the deblocking filter of the HEVC standard.
在平常的原始视频流里,每幅图像包括一个亮度分量,记为Y,每个亮度分量对应两个色度分量,分别记为Cb、Cr。在去方块滤波器模块中,要对Y,Cb和Cr都进行滤波处理。每次处理的最小基本单元为一个4x4块边,如图2所示,其中黑色粗线为需要进行滤波的4x4块边,P块和Q块是该边两侧相邻的4x4像素点块,若当前边为垂直边,P块和Q块分别为该边左边和右边相邻的4x4像素点块,若当前边为水平边,P块和Q块分别为该边上面和下面相邻的4x4像素点块。In the usual original video stream, each image includes a luminance component, denoted as Y, and each luminance component corresponds to two chrominance components, denoted as Cb and Cr respectively. In the deblocking filter module, Y, Cb and Cr are all filtered. The minimum basic unit of each processing is a 4x4 block side, as shown in Figure 2, where the thick black line is the 4x4 block side that needs to be filtered, and the P block and Q block are adjacent 4x4 pixel point blocks on both sides of the side. If the current edge is a vertical edge, the P block and the Q block are the adjacent 4x4 pixel blocks on the left and right sides of the edge respectively; if the current edge is a horizontal edge, the P block and the Q block are the adjacent 4x4 pixel blocks above and below the edge respectively Blocks of pixels.
根据图2所示,设:As shown in Figure 2, set:
p 3,0, p2,0, p1,0, p0,0, q0,0, q1,0, q2,0, q3,0,p3,0, p2,0, p1,0, p0,0, q0,0, q1,0, q2,0, q3,0,
p 3,1, p2,1, p1,1, p0,1, q0,1, q1,1, q2,1, q3,1,p3,1, p2,1, p1,1, p0,1, q0,1, q1,1, q2,1, q3,1,
p 3,2, p2,2, p1,2, p0,2, q0,2, q1,2, q2,2, q3,2,p3,2, p2,2, p1,2, p0,2, q0,2, q1,2, q2,2, q3,2,
p 3,3, p2,3, p1,3, p0,3, q0,3, q1,3, q2,3, q3,3,p3,3, p2,3, p1,3, p0,3, q0,3, q1,3, q2,3, q3,3,
左侧方阵为4x4的P块中16个相应位置像素点的值;右侧方阵为4x4的Q块中16个相应位置像素点的值;两个方阵中,第一行的8个像素点为第一组,第二行的8个像素点为第二组,第三行的8个像素点为第三组,第四行的8个像素点为第四组;The square matrix on the left is the value of 16 corresponding pixel points in the 4x4 P block; the square matrix on the right is the value of the 16 corresponding pixel points in the 4x4 Q block; among the two square matrices, the 8 in the first row The pixels are the first group, the 8 pixels in the second row are the second group, the 8 pixels in the third row are the third group, and the 8 pixels in the fourth row are the fourth group;
本发明提出的四级流水滤波方法,既可以对Y分量进行滤波处理,也可以对Cb和Cr分量进行滤波处理,本发明的四级流水滤波方法的具体步骤如下:The four-stage flowing water filtering method proposed by the present invention can not only filter the Y component, but also filter the Cb and Cr components. The specific steps of the four-stage flowing water filtering method of the present invention are as follows:
(1)第一级(1) Level 1
给存储器发信号,读取相应4x4块边的P块和Q块的像素点数据,同时计算当前4x4块边的滤波强度BS值,BS可由表1判断得到;计算当前处理的4x4块边的阈值β和阈值tc值。Send a signal to the memory, read the pixel point data of the P block and Q block of the corresponding 4x4 block side, and calculate the filter strength BS value of the current 4x4 block side, BS can be judged from Table 1; calculate the threshold value of the currently processed 4x4 block side β and threshold tc values.
表1 BS值的取法
β和tc的值可由式(1),(2)得到,其中Bitdepth是指该图像每个像素点的比特数,对于一个图像来说,为一常数。β′,tc′ 可由Q为输入查表2可得,Q为一输入量。The values of β and tc can be obtained by equations (1) and (2), where Bitdepth refers to the number of bits per pixel of the image, and it is a constant for an image. β', tc' can be obtained by looking up Table 2 with Q as an input, and Q is an input quantity.
(1) (1)
(2) (2)
表2 β′和tc′的查表
(2)第二级(2) Second level
计算当前处理的4x4块边的滤波判决值dE,p点判决值dEp,q点判决值dEq,滤波判决条件值CON,弱滤波判决条件值CON_W,亮度阈值,色度阈值C的值。Calculate the filter decision value dE of the currently processed 4x4 block edge, p-point decision value dEp, q-point decision value dEq, filter decision condition value CON, weak filter decision condition value CON_W, brightness threshold , the chromaticity threshold value of C.
计算dE值,若式(3)成立,则dE为1,否则为0,其中dp0,dp3,dq0,dq3可由式(4),(5),(6),(7)得到,其中p2,0,p1,0,p0,0,p2,3,p1,3,p0,3,q2,0,q1,0,q0,0,q2,3,q1,3,q0,3为图2中相应位置像素点的值。 Calculate the dE value, if formula (3) is established, then dE is 1, otherwise it is 0, where dp0, dp3, dq0, dq3 can be obtained from formulas (4), (5), (6), (7), where p2, 0, p1,0, p0,0, p2,3, p1,3, p0,3, q2,0, q1,0, q0,0, q2,3, q1,3, q0,3 are the corresponding in Figure 2 The value of the location pixel.
(3) (3)
(4) (4)
(5) (5)
(6) (6)
(7) (7)
计算dEp,dEq的值,若式(8)成立,则dEp为1,否则为0。若式(9)成立,则dEq为1,否则为0。 Calculate the values of dEp and dEq, if formula (8) is established, then dEp is 1, otherwise it is 0. If formula (9) is established, then dEq is 1, otherwise it is 0.
(8) (8)
(9) (9)
计算CON的值,若式(10),(11),(12)同时成立,则CON的值为1,否则为0。 Calculate the value of CON, if formulas (10), (11), and (12) are established at the same time, then the value of CON is 1, otherwise it is 0.
(10) (10)
(11) (11)
(12) (12)
计算CON_W和的值,若式(13)成立,则CON_W的值为1,否则为0。其中的表达式为式(14)所示。 Calculate CON_W and If the value of (13) is established, then the value of CON_W is 1, otherwise it is 0. in The expression of is shown in formula (14).
(13) (13)
(14) (14)
计算 C的值,可由式(15)得到。 calculate The value of C can be obtained by formula (15).
(15)。 (15).
(3)第三级(3) The third level
对P块和Q块相应的数据,根据前级得到的数据进行滤波处理;具体如下:For the data corresponding to the P block and Q block, filter processing is performed according to the data obtained in the previous stage; the details are as follows:
若当前处理的是Y分量的4x4块边,按如下步骤处理: If the current processing is the 4x4 block edge of the Y component, proceed as follows:
. 如果当前4x4块边的BS值为0,或者dE等于0,则P块和Q块的像素点值不做处理,保持原值。否则进行步骤II和III。 . If the BS value of the current 4x4 block side is 0, or dE is equal to 0, then the pixel values of the P block and Q block will not be processed, and the original value will be kept. Otherwise proceed to steps II and III.
. 如果当前4x4块边的CON值为1,则对P块和Q块进行强滤波。我们以图2中所示第1组8个像素点为例进行处理。用p0,q0,p1,q1,p2,q2的值替换原来p0,0,q0,0,p1,0,q1,0,p2,0,q2,0的值,p0,q0,p1,q1,p2,q2的值可由式(16),(17),(18),(19),(20),(21)得到。 . If the CON value of the current 4x4 block edge is 1, strong filtering is performed on the P block and Q block. We take the first group of 8 pixels shown in Figure 2 as an example for processing. Replace the original value of p0,0,q0,0,p1,0,q1,0,p2,0,q2,0 with the value of p0,q0,p1,q1,p2,q2,p0,q0,p1,q1, The values of p2 and q2 can be obtained from formulas (16), (17), (18), (19), (20), and (21).
(16) (16)
(17) (17)
(18) (18)
(19) (19)
(20) (20)
(21) (twenty one)
P块和Q块的第2,3,4组的8个像素点的强滤波处理方法与此类似。The strong filtering method of the 2nd, 3rd, and 4th groups of 8 pixels of P block and Q block is similar to this.
. 如果当前4x4块边的CON值为0,同时CON_W的值为1,则对P块和Q块进行弱滤波,否则P块和Q块的像素点值不做处理,保持原值。我们以图2中所示第1组8个像素点为例进行处理。用p0,q0的值替换原来p0,0,q0,0的值,p0,q0的值可由式(22),(23)得到,Clip1运算代表若表达式中的值小于0,则该值等于0,若大于255,则等于255,否则等于原值。 1可由式(19)得到,Clip3运算代表式括号中第三个值小于第一个值,则等于第一个值,若大于第二个值,则等于第二个值,否则等于第三个值。 . If the CON value of the current 4x4 block side is 0, and the value of CON_W is 1, weakly filter the P block and Q block, otherwise the pixel values of the P block and Q block will not be processed, and the original value will be kept. We take the first group of 8 pixels shown in Figure 2 as an example for processing. Replace the original values of p0,0, q0,0 with the values of p0, q0, the values of p0, q0 can be obtained by formula (22), (23), the Clip1 operation means that if the value in the expression is less than 0, then the value is equal to 0, if it is greater than 255, it is equal to 255, otherwise it is equal to the original value. 1 can be obtained from formula (19). The third value in the brackets of the Clip3 operator is less than the first value, it is equal to the first value, if it is greater than the second value, it is equal to the second value, otherwise it is equal to the third value value.
(22) (twenty two)
(23) (twenty three)
(24) (twenty four)
如果dEp为1,则用p1的值替换原来p1,0的值,p1的值可由式(26)得到,其中,中间量p可由式(27)获得。If dEp is 1, replace the original values of p1 and 0 with the value of p1, and the value of p1 can be obtained by formula (26), where the intermediate amount p can be obtained by formula (27).
(26) (26)
(27) (27)
如果dEq为1,则用q1的值替换原来q1,0的值,q1的值可由式(28)得到,其中,中间量q可由式(29)获得。If dEq is 1, replace the original value of q1,0 with the value of q1, and the value of q1 can be obtained by formula (28), where the intermediate quantity q can be obtained by formula (29).
(28) (28)
(29) (29)
P和Q块的第2,3,4组的8个像素点的弱滤波处理方法与此类似。The weak filtering method of the 8 pixels of the 2nd, 3rd, and 4th groups of the P and Q blocks is similar to this.
若当前处理的是Cb或Cr分量的4x4块边,按如下步骤处理。 If the current processing is a 4x4 block edge of the Cb or Cr component, proceed as follows.
若当前4x4块边的BS值等于2,则对P块和Q块进行色度滤波,否则P块和Q块的像素点值不做处理,保持原值。这里以图2所示第1组8个像素点的处理方法为例进行说明。用p0,q0的值替换原来p0,0,q0,0的值。p0,q0的值可由式(30),(31)得到。If the BS value of the current 4x4 block side is equal to 2, perform chroma filtering on the P block and the Q block, otherwise, the pixel values of the P block and the Q block are not processed, and the original values are kept. Here, the processing method of the first group of 8 pixels shown in FIG. 2 is taken as an example for description. Replace the original p0,0, q0,0 values with the values of p0, q0. The values of p0 and q0 can be obtained by equations (30) and (31).
(30) (30)
(31) (31)
P块和Q块的第2,3,4组的8个像素点的处理方法与此类似。The processing method of the 8 pixels of the 2nd, 3rd, and 4th groups of the P block and the Q block is similar to this.
(4)第四级(4) Fourth level
按输入要求将进行滤波处理好的P块和Q块写回相应的存储器。According to the input requirements, the P block and Q block that have been processed by filtering are written back to the corresponding memory.
本发明采用一种有效的适用于HEVC标准的去方块滤波器的四级流水滤波方法,有效地减小处理时间,提高性芯片的最高工作频率和芯片处理能力。The present invention adopts an effective four-stage pipeline filtering method applicable to the deblocking filter of the HEVC standard, effectively reduces the processing time, and improves the maximum operating frequency and processing capacity of the chip.
附图说明Description of drawings
图1:HEVC视频编码器结构图示。Figure 1: Diagram of HEVC video encoder structure.
图2:需要滤波的4x4像素点块边图示。Figure 2: Illustration of a 4x4 pixel block edge that needs to be filtered.
具体实施方式Detailed ways
下面通过实例并结合附图,进一步具体描述本发明方法。The method of the present invention will be further specifically described below by way of examples and in conjunction with the accompanying drawings.
本发明提出的四级流水线结构,既可以对Y分量进行滤波处理,也可以对Cb和Cr分量进行滤波处理,该四级流水线结构中每一级的具体过程如下所述。The four-stage pipeline structure proposed by the present invention can not only filter the Y component, but also filter the Cb and Cr components. The specific process of each stage in the four-stage pipeline structure is as follows.
(1) 第一级(1) Level 1
给存储器发信号,读取相应4x4块边的P和Q块的像素点数据,同时计算当前4x4块边的BS值,BS可由表一判断得到。计算当前处理的4x4块边的β和tc值,β和tc的值可由式(1),(2)得到,其中Bitdepth是指该图像每个像素点的比特数,对于一个图像来说,为一常数。β′,tc′ 可由Q为输入查表2可得,Q唯一输入量。Send a signal to the memory, read the pixel point data of the P and Q blocks corresponding to the 4x4 block side, and calculate the BS value of the current 4x4 block side at the same time, and the BS value can be judged from Table 1. Calculate the β and tc values of the currently processed 4x4 block side. The values of β and tc can be obtained from formulas (1) and (2), where Bitdepth refers to the number of bits per pixel of the image. For an image, it is a constant. β′, tc′ can be obtained by looking up Table 2 from Q as the input, and Q is the only input quantity.
(1) (1)
(2) (2)
表2 β′和tc′的查表
(2)第二级(2) Second level
计算dE值,若式(3)成立,则dE为1,否则为0,其中dp0,dp3,dq0,dq3可由式(4),(5),(6),(7)得到,其中p2,0,p1,0,p0,0,p2,3,p1,3,p0,3,q2,0,q1,0,q0,0,q2,3,q1,3,q0,3为图2中相应位置像素点的值。 Calculate the dE value, if formula (3) is established, then dE is 1, otherwise it is 0, where dp0, dp3, dq0, dq3 can be obtained from formulas (4), (5), (6), (7), where p2, 0, p1,0, p0,0, p2,3, p1,3, p0,3, q2,0, q1,0, q0,0, q2,3, q1,3, q0,3 are the corresponding in Figure 2 The value of the location pixel.
(3) (3)
(4) (4)
(5) (5)
(6) (6)
(7) (7)
计算dEp,dEq的值,若式(8)成立,则dEp为1,否则为0。若式(9)成立,则dEq为1,否则为0。 Calculate the values of dEp and dEq, if formula (8) is established, then dEp is 1, otherwise it is 0. If formula (9) is established, then dEq is 1, otherwise it is 0.
(8) (8)
(9) (9)
计算CON的值,若式(10),(11),(12)同时成立,则CON的值为1,否则为0。 Calculate the value of CON, if formulas (10), (11), and (12) are established at the same time, then the value of CON is 1, otherwise it is 0.
(10) (10)
(11) (11)
(12) (12)
计算CON_W和的值,若式(13)成立,则CON_W的值为1,否则为0。其中可由式(14)得到。 Calculate CON_W and If the value of (13) is established, then the value of CON_W is 1, otherwise it is 0. in Can be obtained by formula (14).
(13) (13)
(14) (14)
计算 C的值,可由式(15)得到。 calculate The value of C can be obtained by formula (15).
(15)。 (15).
(3)第三级(3) The third level
若当前处理的是Y分量的4x4块边,按如下步骤处理。 If the current processing is the 4x4 block edge of the Y component, proceed as follows.
. 如果当前4x4块边的BS值为0,或者dE等于0,则P和Q块的像素点值不做处理,保持原值。否则进行步骤II和III。 . If the BS value of the current 4x4 block side is 0, or dE is equal to 0, then the pixel values of the P and Q blocks will not be processed, and the original values will be kept. Otherwise proceed to steps II and III.
. 如果当前4x4块边的CON值为1,则对P和Q块进行强滤波。我们以图2中所示第1组8个像素点为例进行处理。用p0,q0,p1,q1,p2,q2的值替换原来p0,0,q0,0,p1,0,q1,0,p2,0,q2,0的值,p0,q0,p1,q1,p2,q2的值可由式(16),(17),(18),(19),(20),(21)得到。 . If the CON value of the current 4x4 block edge is 1, strong filtering is performed on P and Q blocks. We take the first group of 8 pixels shown in Figure 2 as an example for processing. Replace the original value of p0,0,q0,0,p1,0,q1,0,p2,0,q2,0 with the value of p0,q0,p1,q1,p2,q2,p0,q0,p1,q1, The values of p2 and q2 can be obtained from formulas (16), (17), (18), (19), (20), and (21).
(16) (16)
(17) (17)
(18) (18)
(19) (19)
(20) (20)
(21) (twenty one)
P和Q块的第2,3,4组的8个像素点的强滤波处理方法与此类似。The strong filtering method of the 2nd, 3rd, and 4th groups of 8 pixels of the P and Q blocks is similar to this.
. 如果当前4x4块边的CON值为0,同时CON_W的值为1,则对P和Q块进行弱滤波,否则P和Q块的像素点值不做处理,保持原值。我们以图2中所示第1组8个像素点为例进行处理。用p0,q0的值替换原来p0,0,q0,0的值,p0,q0的值可由式(22),(23)得到,Clip1运算代表若表达式中的值小于0,则该值等于0,若大于255,则等于255,否则等于原值。 1可由式(19)得到,Clip3运算代表式括号中第三个值小于第一个值,则等于第一个值,若大于第二个值,则等于第二个值,否则等于第三个值。 . If the CON value of the current 4x4 block side is 0, and the value of CON_W is 1, perform weak filtering on the P and Q blocks, otherwise the pixel values of the P and Q blocks will not be processed, and the original values will be kept. We take the first group of 8 pixels shown in Figure 2 as an example for processing. Replace the original values of p0,0, q0,0 with the values of p0, q0, the values of p0, q0 can be obtained by formula (22), (23), the Clip1 operation means that if the value in the expression is less than 0, then the value is equal to 0, if it is greater than 255, it is equal to 255, otherwise it is equal to the original value. 1 can be obtained from formula (19). The third value in the brackets of the Clip3 operator is less than the first value, it is equal to the first value, if it is greater than the second value, it is equal to the second value, otherwise it is equal to the third value value.
(22) (twenty two)
(23) (twenty three)
(24) (twenty four)
如果dEp为1,则用p1的值替换原来p1,0的值,p1的值可由式(26)得到,其中p可由式(27)获得。If dEp is 1, replace the original value of p1,0 with the value of p1, the value of p1 can be obtained by formula (26), where p can be obtained by formula (27).
(26) (26)
(27) (27)
如果dEq为1,则用q1的值替换原来q1,0的值,q1的值可由式(28)得到,其中q可由式(29)获得。If dEq is 1, replace the original value of q1,0 with the value of q1, and the value of q1 can be obtained by formula (28), where q can be obtained by formula (29).
(28) (28)
(29) (29)
P和Q块的第2,3,4组的8个像素点的弱滤波处理方法与此类似。The weak filtering method of the 8 pixels of the 2nd, 3rd, and 4th groups of the P and Q blocks is similar to this.
若当前处理的是Cb或Cr分量的4x4块边,按如下步骤处理。 If the current processing is a 4x4 block edge of the Cb or Cr component, proceed as follows.
若当前4x4块边的BS值等于2,则对P块和Q块进行色度滤波,否则P和Q块的像素点值不做处理,保持原值。这里以图2所示第1组8个像素点的处理方法为例进行说明。用p0,q0的值替换原来p0,0,q0,0的值。p0,q0的值可由式(30),(31)得到。If the BS value of the current 4x4 block side is equal to 2, perform chroma filtering on the P block and the Q block, otherwise, the pixel values of the P and Q blocks are not processed, and the original values are kept. Here, the processing method of the first group of 8 pixels shown in FIG. 2 is taken as an example for description. Replace the original p0,0, q0,0 values with the values of p0, q0. The values of p0 and q0 can be obtained by equations (30) and (31).
(30) (30)
(31) (31)
P和Q块的第2,3,4组的8个像素点的处理方法与此类似。The processing method of the 8 pixels of the 2nd, 3rd, and 4th groups of the P and Q blocks is similar to this.
(4)第四级(4) Fourth level
按输入要求将进行滤波处理好的P和Q块写回相应的存储器。Write back the P and Q blocks that have been filtered and processed to the corresponding memory according to the input requirements.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310402353.XA CN103491373B (en) | 2013-09-06 | 2013-09-06 | A kind of level Four flowing water filtering method of deblocking filter suitable for HEVC standard |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310402353.XA CN103491373B (en) | 2013-09-06 | 2013-09-06 | A kind of level Four flowing water filtering method of deblocking filter suitable for HEVC standard |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103491373A CN103491373A (en) | 2014-01-01 |
CN103491373B true CN103491373B (en) | 2018-04-27 |
Family
ID=49831293
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310402353.XA Active CN103491373B (en) | 2013-09-06 | 2013-09-06 | A kind of level Four flowing water filtering method of deblocking filter suitable for HEVC standard |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103491373B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104253998B (en) * | 2014-09-25 | 2017-05-10 | 复旦大学 | Hardware on-chip storage method of deblocking effect filter applying to HEVC (High Efficiency Video Coding) standard |
CN114979637B (en) | 2017-10-09 | 2023-10-27 | 佳能株式会社 | Method, apparatus and storage medium for filtering a sample block |
WO2020089824A1 (en) * | 2018-10-31 | 2020-05-07 | Beijing Bytedance Network Technology Co., Ltd. | Deblocking filtering under dependent quantization |
CN117176969A (en) | 2019-05-11 | 2023-12-05 | 抖音视界有限公司 | Deblocking filter for video coding and decoding |
CN113411584A (en) * | 2020-03-17 | 2021-09-17 | 北京三星通信技术研究有限公司 | Video coding and decoding method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101453651A (en) * | 2007-11-30 | 2009-06-10 | 华为技术有限公司 | A deblocking filtering method and apparatus |
CN101472175A (en) * | 2007-12-29 | 2009-07-01 | 智多微电子(上海)有限公司 | De-block effect filter capable of supporting multi-video standard |
CN101754010A (en) * | 2008-12-18 | 2010-06-23 | 北京中星微电子有限公司 | Loop filtering method of video data encoding and filter |
-
2013
- 2013-09-06 CN CN201310402353.XA patent/CN103491373B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101453651A (en) * | 2007-11-30 | 2009-06-10 | 华为技术有限公司 | A deblocking filtering method and apparatus |
CN101472175A (en) * | 2007-12-29 | 2009-07-01 | 智多微电子(上海)有限公司 | De-block effect filter capable of supporting multi-video standard |
CN101754010A (en) * | 2008-12-18 | 2010-06-23 | 北京中星微电子有限公司 | Loop filtering method of video data encoding and filter |
Non-Patent Citations (2)
Title |
---|
A high-throughput VLSI architecture for deblockin} filter in HEVC;Weiwei Shen等;《IEEE International Symposium on Circuits and Systems (ISCAS)》;20150523;全文 * |
High efficiency video coding (HEVC) text specification draft 8;Benjamin Bross;《JCTVC-J1003_d7》;20120720;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN103491373A (en) | 2014-01-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102746422B1 (en) | Video decoding method and computer readable redording meduim for performing intra prediction using adaptive filter | |
CN116567230A (en) | Method and apparatus for applying a deblocking filter to reconstructed video data | |
CN103491373B (en) | A kind of level Four flowing water filtering method of deblocking filter suitable for HEVC standard | |
CN103442238B (en) | SAO hardware processing method a kind of encoder suitable for HEVC standard | |
CN103442229B (en) | The bit rate estimation method of SAO mode adjudgings suitable for the encoder of HEVC standard | |
GB2459568A (en) | Overlap transform and de-blocking of decompressed video signal using an edge filter on sub-blocks for upper and left macroblocks | |
CN103491372B (en) | A kind of filtering method of deblocking filter suitable for HEVC standard | |
US11159825B2 (en) | Video coding method and apparatus utilizing group of encoding units | |
CN103442230B (en) | The Lagrange multiplier obtaining value method of SAO mode adjudgings suitable for the encoder of HEVC standard | |
Xiao et al. | Macroblock level hybrid temporal-spatial prediction for H. 264/AVC |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |