CN103281536B - A kind of compatible AVS and block-removal filtering method H.264 and device - Google Patents

A kind of compatible AVS and block-removal filtering method H.264 and device Download PDF

Info

Publication number
CN103281536B
CN103281536B CN201310192586.1A CN201310192586A CN103281536B CN 103281536 B CN103281536 B CN 103281536B CN 201310192586 A CN201310192586 A CN 201310192586A CN 103281536 B CN103281536 B CN 103281536B
Authority
CN
China
Prior art keywords
parameter
circuit
avs
counting circuit
filtering
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
Application number
CN201310192586.1A
Other languages
Chinese (zh)
Other versions
CN103281536A (en
Inventor
许勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Star Net eVideo Information Systems Co Ltd
Original Assignee
Fujian Star Net eVideo Information Systems Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Fujian Star Net eVideo Information Systems Co Ltd filed Critical Fujian Star Net eVideo Information Systems Co Ltd
Priority to CN201310192586.1A priority Critical patent/CN103281536B/en
Publication of CN103281536A publication Critical patent/CN103281536A/en
Application granted granted Critical
Publication of CN103281536B publication Critical patent/CN103281536B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The present invention provides a kind of compatible AVS and block-removal filtering method H.264 and device, and including parameter list index module, filtering parameter computing module, condition computing module, filter bank block, filter result selects module.Condition computing module comprises condition public counting circuit, and bank of filters comprises common expression counting circuit.The present invention compatible AVS and H.264 on the basis of, by using condition public counting circuit, common expression counting circuit, eliminate the redundant circuit in chip, reduce chip area and cost.

Description

A kind of compatible AVS and block-removal filtering method H.264 and device
Technical field
The present invention relates to a kind of compatible AVS and block-removal filtering method H.264 and device.
Background technology
At present digital video has been obtained for extensively applying, but the containing much information of digital video, the band needed during transmission Wide high, the memory capacity needed during storage is big, so it is generally required to first digital video being compressed.Compression in digital video In standard, H.264 H.264/AVC standard, be called for short, obtain owing to doubling the compression efficiency of MEPG2 under its equal picture quality Increasingly it is widely applied;China also sets up digital audio/video coding techniques standard working group (AVS working group) simultaneously, should The video section of the AVS audio/video coding technical standard that working group formulates was promulgated in 2006 becomes country of the People's Republic of China (PRC) Standard, standard No. GB/T20090-2006, enforcement in 1 day March in 2006.
Block elimination effect filter makes again loop filter (loopfilter) be AVS(audio/video encoding standard) and H.264 Important component part in standard, the Main Function in video system: is due to motion compensation in smoothed image.Variable and Quantify the false border produced, reduce the blocking effect of image, improve subjective video effect;Two is that filtered frame is for subsequent frame Motion compensated prediction, thus avoid the accumulative further reduction causing picture quality on false border.
Owing to being H.264 required for using block elimination filtering with AVS standard, but deblocking goes the standard also incomplete phase of filtering With, have at present segment chip and support AVS and H.264 two kinds of coding and decoding videos simultaneously, but the most commonly used two independences De-blocking filter, respectively to support two kinds of filter performance criterias.This mode does not utilize the ground that AVS is similar to H.264 standard Side, circuit has redundancy, wastes the area of chip, adds the cost of chip.
Deblocking filtering apparatus may be generally divided into two parts, and a part is the control circuit of data stream, and a part is filter Wave circuit, the control circuit of data stream completes to give filter unit by the data needing filtering and is used for filtering, and by filter circuit Produced filter result preserves, and filter circuit is filtered according to standard according to data given by the control circuit of data stream Ripple.
The circuit arrangement having had some compatible two kinds of filter performance criterias at present is suggested, but they are the controls to data stream Circuit processed improve can support simultaneously H.264 with AVS standard, but to the filter circuit list in deblocking filtering apparatus Unit does not has in-depth explanation.
Summary of the invention
Filter circuit unit in deblocking filtering apparatus is designed by the present invention so that it is can support H.264 with AVS two The standard of kind.The technical problem to be solved in the present invention is: eliminate support simultaneously H.264 with the chip of AVS video encoding and decoding standard In redundancy filter circuit, the present invention by optimize filter circuit cellular construction, use public expression formula computing unit circuit, Reduce chip cost.
The present invention is achieved in that
A kind of compatible AVS and deblocking filtering apparatus H.264, including with lower module:
Parameter list index module, for quantization parameter QPp, QPq according to input, filtering type code IS_AVS and filtering Parameter AlphaOffset, BetaOffset, calculate indexing parameter indexA, threshold alpha and β;
Filtering parameter computing module, for the pixel samples point according to input, filters type code IS_AVS, colourity border Mark ChromaEdgeFlag, boundary intensity Bs and the counted result of parameter list index module calculate cuts out parameter C;
Condition computing module, for the pixel samples point according to input, boundary intensity Bs, colourity boundary marker ChromaEdgeFlag, filtering type code IS_AVS and the result design conditions parameter of described parameter list index module;
Filter bank block, calculates organize filtering more for the pixel samples point according to input and described parameter C of cutting out Result;
And filter result selects module, for selecting corresponding filter result according to described conditional parameter.
Further, described parameter list index module comprises parameter list index circuit, described filtering parameter computing module bag Containing cutting out parameter calculation circuit, described condition computing module comprises condition counting circuit, and described filter bank block comprises filtering Data computing cicuit, described filter result selects module to comprise filter result selection circuit, and described parameter list indexes the defeated of circuit Go out end to be connected with the input of the input cutting out parameter calculation circuit and condition counting circuit, cut out parameter calculation circuit Outfan is connected with the input of filtering data counting circuit, the outfan of filtering data counting circuit and condition counting circuit Outfan input with filter result selection circuit again is connected.
Further, described condition counting circuit includes condition public counting circuit and conditional parameter counting circuit; Described condition public counting circuit is according to the threshold alpha of described parameter list index module output, threshold value beta and pixel samples point Calculating condition public result data, described conditional parameter counting circuit is calculated according to the result data of condition public circuit Obtain conditional parameter.
Further, described condition public counting circuit includes multiple counting circuit, is used for calculating following condition public Formula altogether:
C2=Abs(q2-q0) < β
C3=Abs(p2-p0) < β
C0=C2&&Abs(p0-q0)<((α>>2)+2)
C1=C3&&Abs(p0-q0)<((α>>2)+2)
C4=Bs==0
C5=Bs==1&&IS_AVS
C6=Bs==2&&IS_AVS
C7=Bs<4&&Bs>0&&!IS_AVS
C8=Bs==4&&!IS_AVS
Further, described filtering data counting circuit includes that common expression counting circuit and filter result calculate electricity Road;Described common expression counting circuit calculates common expression result data, described filtering knot according to pixel samples point Really counting circuit according to described common expression result data and is cut out parameter C and is calculated and organize filter result more.
Further, described common expression counting circuit includes multiple counting circuit, is used for calculating following public sheet Reach formula:
Delta=Clip3 (-C, C, (((q0-p0)×3+(p1-q1)+4)>>3))
Sp0q0=p0+q0+1
Sp0p1=p0+p1+1
Sq0q1=q0+q1+1
Sp1p2=p1+p2+1
Sq1q2=q1+q2+1
Sp0q02p1=Sp0q0+((p1<<1)|1)
Sp0q02q1=Sp0q0+((q1<<1)|1)
Further, the multiplying of described common expression counting circuit all uses the circuit realiration of shifter-adder.
Further, described filtering data counting circuit contains H.264 filtering data counting circuit and AVS filtering simultaneously Data computing cicuit.
Further, described parameter list index circuit comprises index counting circuit, H.264 concordance list circuit, AVS concordance list Circuit and indexed results selection circuit;
Described index counting circuit is according to quantization parameter QPp, QPq of input, filtering type code IS_AVS and filtering ginseng Number AlphaOffset, BetaOffset, calculate indexing parameter indexA;
H.264 concordance list circuit and AVS concordance list circuit calculate respective threshold alpha, β according to indexing parameter indexA, Indexed results selection circuit carries out threshold value selection according to filtering type code IS_AVS, when IS_AVS is 1, selects AVS index The output of watch circuit, as threshold alpha and β, otherwise selects the output of H.264 concordance list circuit as threshold alpha when IS_AVS is 0 And β.
Further, described index counting circuit includes maximum quantization parameter calculation circuit, and average quantisation parameter calculates electricity Road, offset quantizing parameter calculation circuit, indexA amplitude limiter circuit and indexB amplitude limiter circuit;
Maximum quantization parameter calculation circuit is according to expression formula max_qp=IS_AVS?63:51 calculates maximum quantization parameter max_qp;
Average quantisation parameter counting circuit is according to expression formula QPav=(QPp+QPq+1) > > 1 calculate average quantisation parameter Qpav;
Offset quantizing parameter calculation circuit is according to expression formula Qpava=QPav+AlphaOffset and Qpavb=QPav+ BetaOffset calculates offset quantizing parameter Qpava and offset quantizing parameter Qpavb;
IndexA amplitude limiter circuit carries out amplitude limit according to Qpava so that it is value is at 0 to max_qp, and amplitude limiter circuit is output as indexA;
IndexB amplitude limiter circuit carries out amplitude limit according to Qpavb so that it is value is at 0 to max_qp, and amplitude limiter circuit is output as indexB。
Further, described AVS concordance list circuit completes index value indexA according to the AVS concordance list that filter is built-in α a and the mapping of index value indexB to β a to threshold value;H.264 concordance list circuit is according to the built-in H.264 index of filter Table completes index value indexA to the α h of threshold value and the mapping of index value indexB to β h.
Further, cut out parameter calculation circuit described in and include that parameter is cut out in tc0 index circuit, tca index circuit, brightness Counting circuit, colourity are cut out parameter calculation circuit and cut out parameter selection circuit;
Tc0 index circuit completes by index indexA, the mapping of boundary intensity Bs to tc0 according to tc0 concordance list;
Tca index circuit completes by the mapping of index indexA to tca according to tca concordance list;
Brightness cuts out parameter calculation circuit according to expression formula Cl=tc0+ (Abs(p2-p0) < β)?1:0)+((Abs(q2-q0) < α)?1:0) calculate brightness and cut out parameter Cl;
Colourity is cut out parameter calculation circuit and is calculated colourity according to expression formula Cc=tc0+1 and cut out parameter Cc;
Cut out parameter selection circuit according to expression formula C=IS_AVS?tca:(ChromaEdgeFlag?Cc:Cl) calculate Whole cuts out parameter C.
Further, described filter result selection circuit, for selecting corresponding filter result according to conditional parameter, works as phase The conditional parameter answered is true time, and final filter result selects corresponding filter result.
And a kind of compatible AVS and block-removal filtering method H.264, described method includes:
Step S1: according to quantization parameter QPp, QPq of input, filtering type code IS_AVS and filtering parameter AlphaOffset, BetaOffset, calculate indexing parameter indexA, threshold alpha and β;
Step S2: according to the pixel samples point of input, filters type code IS_AVS, colourity boundary marker ChromaEdgeFlag, boundary intensity Bs and the counted result of step S1 calculate cuts out parameter C;
Step S3: according to the pixel samples point of input, boundary intensity Bs, colourity boundary marker ChromaEdgeFlag, filter The result design conditions parameter of ripple type code IS_AVS and described step S1;
Step S4: calculate organize filter result more according to the pixel samples point of input and described parameter C of cutting out;
Step S5: select corresponding filter result according to described conditional parameter.
Further, concretely comprising the following steps of step S3: according to threshold alpha, threshold value beta and pixel samples count condition is public Value, calculates to obtain conditional parameter further according to described condition common value.
Further, concretely comprising the following steps of step S4: calculate public expression value according to pixel samples point, further according to described Public expression value and cut out parameter C and calculate and organize filter result more.
Present invention have the advantage that the compatible two kinds of filter performance criterias of the present invention, simultaneously by the counting circuit that multiplexing is certain, Eliminate the redundant circuit in chip, reduce chip area and cost.
Accompanying drawing explanation
The present invention is further illustrated the most in conjunction with the embodiments.
Fig. 1 is the structural representation of the present invention.
Detailed description of the invention
Refer to, shown in Fig. 1, embodiments of the invention are described in detail.
A kind of compatible AVS and deblocking filtering apparatus H.264, including parameter list index module, filtering parameter computing module, Condition computing module, bank of filters, filter result selects module.
Parameter list index module, for quantization parameter QPp, QPq according to input, filtering type code IS_AVS and filtering Parameter AlphaOffset, BetaOffset, calculate indexing parameter indexA, threshold alpha and β;
Filtering parameter computing module, for the pixel samples point according to input, filters type code IS_AVS, colourity border Mark ChromaEdgeFlag, boundary intensity Bs and the counted result of parameter list index module calculate cuts out parameter C;
Condition computing module, for the pixel samples point according to input, boundary intensity Bs, colourity boundary marker ChromaEdgeFlag, filtering type code IS_AVS and the result design conditions parameter of described parameter list index module;
Filter bank block, calculates organize filtering more for the pixel samples point according to input and described parameter C of cutting out Result;
And filter result selects module, for selecting corresponding filter result according to described conditional parameter.
Described parameter list index module comprises parameter list index circuit, and described filtering parameter computing module comprises cuts out parameter Counting circuit, described condition computing module comprises condition counting circuit, and described filter bank block comprises filtering data and calculates electricity Road, described filter result selects module to comprise filter result selection circuit, the outfan of described parameter list index circuit with cut out The input of parameter calculation circuit is connected with the input of condition counting circuit, cuts out outfan and the filter of parameter calculation circuit The input of wave datum counting circuit connects, the outfan of filtering data counting circuit and the outfan of condition counting circuit again with The input of filter result selection circuit is connected.
The input of this device is the pixel samples point p before filtering0, p1, p2, p3, q0, q1, q2, q3, filtering strength Bs, filtering Type code IS_AVS, quantization parameter QPp, QPq, colourity boundary marker ChromaEdgeFlag, filtering parameter AlphaOffset, BetaOffset, this device produces filter result through calculating: Filtered Picture vegetarian refreshments P0, P1, P2, Q0, Q1, Q2.Wherein filtering type code IS_AVS is to represent use AVS coding when 1, otherwise for H.264 to encode.
Parameter list index module, comprises parameter list index circuit, and specifically, parameter list index circuit comprises index and calculates electricity Road, AVS concordance list circuit, H.264 concordance list circuit and indexed results selection circuit;Index counting circuit is according to the quantization of input Parameter QPp, QPq, filtering type code IS_AVS and filtering parameter AlphaOffset, BetaOffset, calculate indexing parameter indexA.H.264 concordance list circuit and AVS concordance list circuit calculate respective threshold alpha, β according to indexing parameter indexA.Rope Draw result selection circuit to select according to filtering type code IS_AVS, when IS_AVS is 1, select AVS concordance list circuit Output as threshold alpha and β, otherwise select the output of H.264 concordance list circuit as threshold alpha and β.
Wherein index counting circuit includes maximum quantization parameter calculation circuit, average quantisation parameter counting circuit, side-play amount Change parameter calculation circuit, indexA amplitude limiter circuit and indexB amplitude limiter circuit.
Maximum quantization parameter calculation circuit is according to expression formula max_qp=IS_AVS?63:51 calculates maximum quantization parameter max_qp。
Average quantisation parameter counting circuit is according to expression formula QPav=(QPp+QPq+1) > > 1 calculate average quantisation parameter Qpav。
Offset quantizing parameter calculation circuit is according to expression formula Qpava=QPav+AlphaOffset and Qpavb=QPav+ BetaOffset calculates offset quantizing parameter Qpava and offset quantizing parameter Qpavb.
IndexA amplitude limiter circuit carries out amplitude limit according to Qpava so that it is value is at 0 to max_qp, and amplitude limiter circuit is output as indexA。
IndexB amplitude limiter circuit carries out amplitude limit according to Qpavb so that it is value is at 0 to max_qp, and amplitude limiter circuit is output as indexB。
AVS concordance list circuit completes index value indexA to threshold value according to the AVS concordance list (i.e. table 1) that filter is built-in α a and the mapping of index value indexB to β a.
H.264 concordance list circuit completes index value indexA according to the H.264 concordance list (i.e. table 2) that filter is built-in and arrives The α h of threshold value and the mapping of index value indexB to β h.
Indexed results selection circuit carries out threshold value selection according to filtering type code IS_AVS, when IS_AVS is 1, selects The output α a and β a of AVS concordance list circuit, as threshold alpha and β, otherwise selects output α h and the β h conduct of H.264 concordance list circuit Threshold alpha and β.
Table 1AVS concordance list
Table 2H.264 concordance list
Filtering parameter computing module, comprises and cuts out parameter calculation circuit, and this circuit is according to the pixel samples point of input, filtering Type code IS_AVS, index value indexA, colourity boundary marker ChromaEdgeFlag, boundary intensity Bs and parameter list index The counted result of module calculates and cuts out parameter C.
Wherein cut out parameter calculation circuit include tc0 index circuit, tca index circuit, brightness cut out parameter calculation circuit, Colourity is cut out parameter calculation circuit and cuts out parameter selection circuit.
Tc0 index circuit completes by index indexA, the reflecting of boundary intensity Bs to tc0 according to tc0 concordance list (i.e. table 3) Penetrate.
Tca index circuit completes by the mapping of index indexA to tca according to tca concordance list (i.e. table 4).
Brightness cuts out parameter calculation circuit according to expression formula Cl=tc0+ (Abs(p2-p0) < β)?1:0)+((Abs(q2-q0) < α)?1:0) calculate brightness and cut out parameter Cl.
Colourity is cut out parameter calculation circuit and is calculated colourity according to expression formula C=tc0+1 and cut out parameter Cc.
Cut out parameter selection circuit according to expression formula C=IS_AVS?tca:(ChromaEdgeFlag?Cc:Cl) calculate Whole cuts out parameter C.
Table 3tc0 concordance list
Table 4tca concordance list
Index tca Index tca Index tca Index tca
0 0 16 1 32 2 48 5
1 0 17 1 33 2 49 5
2 0 18 1 34 2 50 5
3 0 19 1 35 2 51 6
4 0 20 1 36 2 52 6
5 0 21 1 37 2 53 6
6 0 22 1 38 3 54 7
7 0 23 1 39 3 55 7
8 0 24 1 40 3 56 7
9 0 25 1 41 3 57 7
10 0 26 1 42 3 58 8
11 0 27 1 43 3 59 8
12 0 28 1 44 3 60 8
13 0 29 1 45 4 61 9
14 0 30 2 46 4 62 9
15 0 31 2 47 4 63 9
Condition computing module, comprises condition counting circuit, for the pixel samples point by input, boundary intensity Bs, colourity Boundary marker ChromaEdgeFlag, the result of filtering type code IS_AVS and described parameter list index module calculates condition ginseng Number.Condition computing module includes condition public counting circuit and conditional parameter counting circuit.Condition public counting circuit root Calculating condition public result data according to the output threshold alpha of parameter list index module, threshold value beta and pixel samples point, condition is joined Number counting circuit calculates to obtain conditional parameter according to the result data of condition public circuit.Condition public counting circuit includes multiple Counting circuit, has needed the calculating of following condition, calculates public conditions C0-C9:
C2=Abs(q2-q0) < β
C3=Abs(p2-p0) < β
C0=C2&&Abs(p0-q0)<((α>>2)+2)
C1=C3&&Abs(p0-q0)<((α>>2)+2)
C4=Bs==0
C5=Bs==1&&IS_AVS
C6=Bs==2&&IS_AVS
C7=Bs<4&&Bs>0&&!IS_AVS
C8=Bs==4&&!IS_AVS
C9=ChromaEdgeFlag
The conditional parameter Co0-that conditional parameter counting circuit completes according to the output C0-C9 of condition public counting circuit The calculating of Co21:
Co0=C4||(C7&&!C9&&!C0) (3-1)
Co1=C4||(C7&&!C9&&!C1) (3-2)
Co2=(C5 | | C7) (3-3)
Co3=(C5 | | C7) (3-4)
Co4=C6&&C0 (3-5)
Co5=C6&&C1 (3-6)
Co6=(C6&&!C0) | | (C8&& (C9 | | C0)) (3-7)
Co7=(C6&&!C1) | | (C8&& (C9 | | C1)) (3-8)
Co8=C8&&(!C9&&C0) (3-9)
Co9=C8&&(!C9&&C1) (3-10)
Co10=(!(C6&&!C9))&&(!(C8&&!C9&&C0))&&(!((C5||C7)&&!C9&&C2))
(3-11)
Co11=(!(C6&&!C9))&&(!(C8&&!C9&&C1))&&(!((C5||C7)&&!C9&&C3))
(3-12)
Co12=(C5||C7)&&!C9&&C2 (3-13)
Co13=(C5||C7)&&!C9&&C3 (3-14)
Co14=C6&&!C9 (3-15)
Co15=C6&&!C9 (3-16)
Co16=C8&&!C9&&C0 (3-17)
Co17=C8&&!C9&&C1 (3-18)
Co18=!(C8&&!C9&&C0) (3-19)
Co19=!(C8&&!C9&&C1) (3-20)
Co20=C8&C8&&!C9&&C0 (3-21)
Co21=C8&&!C9&&C1 (3-22)
Filter bank block, including multiple filtering data counting circuits, for will the pixel samples point of input and described Cutting out parameter C to calculate and organize filter result more, filtering data counting circuit contains H.264 filtering data counting circuit and AVS simultaneously Filtering data counting circuit, can calculate H.264 filter result and AVS filter result.Bank of filters includes that common expression calculates Circuit and filter result counting circuit.
Common expression counting circuit is according to pixel samples point and cuts out parameter C calculating common expression result data, public Coexpression formula counting circuit calculates the result of following formula.
Delta=Clip3 (-C, C, (((q0-p0)×3+(p1-q1)+4)>>3))
Sp0q0=p0+q0+1
Sp0p1=p0+p1+1
Sq0q1=q0+q1+1
Sp1p2=p1+p2+1
Sq1q2=q1+q2+1
Sp0q02p1=Sp0q0+((p1<<1)|1)
Sp0q02q1=Sp0q0+((q1<<1)|1)
The multiplying of common expression counting circuit preferentially uses the circuit realiration of shifter-adder.
Described filter result counting circuit is according to the result of described common expression and cuts out parameter C and calculates and organize filter more Ripple result.
P0=Clip1(p0+delta) (4-2)
Q0=Clip1(q0-delta) (4-3)
P1=Clip1(p1+ Clip3 (-C, C, (((P0-p1)×3+(p2-Q0)+4)>>3))) (4-4)
Q1=Clip1(q1-Clip3 (-C, C, (((q1-Q0)×3+(P0-q2)+4)>>3))) (4-5)
P0=(Sp0q0+Sp0p1)>>2 (4-6)
P1=(Sp0q02p1)>>2 (4-7)
P0=(Sp0q02p1)>>2 (4-8)
P0=(p2+2×p1+((Sp0q0<<1)|1)+q1+4)>>3 (4-9)
P1=(Sp0q0+Sp1p2)>>2 (4-10)
P2=(2×p3+3×p2+p1+Sp0q0+4)>>3 (4-11)
Q0=(Sp0q0+Sq0q1)>>2 (4-12)
Q1=(Sp0q02q1)>>2 (4-13)
Q0=(Sp0q02q1)>>2 (4-14)
Q0=(q2+2×q1+((Sp0q0<<1)|1)+p1+4)>>3 (4-15)
Q1=(Sp0q0+Sq1q2)>>2 (4-16)
Q2=(2×q3+3×q2+q1+Sp0q0+4)>>3 (4-17)
P0=p0 (4-18)
P1=p1 (4-19)
P2=p2 (4-20)
Q0=q0 (4-21)
Q1=q1 (4-22)
Q2=q2 (4-23)
Filter result selects module, comprises filter result selection circuit.For according to described conditional parameter Co0-Co21 Select corresponding filter result.Conditional parameter is shown in Table 5 filter result selection tables with the corresponding relation of filter result: when corresponding bar Part parameter is true time, and final filter result selects corresponding filter result (such as: conditional parameter (3-1) is true time, then Filter result is P0: (4-18), i.e. P0Result be (4-18)).
Table 5 filter result selects table
In sum, the present invention distinguishes, by filtering type mark IS_AVS, the filter performance criteria that filtering is used, and reaches The effect of compatible AVS and H.264 two kinds of standards;Simultaneously by using condition in conditional parameter module and filter bank block Public counting circuit and common expression counting circuit, reduce the use of chip counting circuit, reduces chip area and becomes This.
Although the foregoing describing the detailed description of the invention of the present invention, but those familiar with the art should managing Solving, our described specific embodiment is merely exemplary rather than for the restriction to the scope of the present invention, is familiar with this The technical staff in field, in the equivalent modification made according to the spirit of the present invention and change, should be contained the present invention's In scope of the claimed protection.

Claims (15)

1. a compatible AVS and deblocking filtering apparatus H.264, it is characterised in that: include with lower module:
Parameter list index module, for quantization parameter QPp, QPq according to input, filtering type code IS_AVS and filtering parameter AlphaOffset, BetaOffset, calculate indexing parameter indexA, threshold alpha and β;
Filtering parameter computing module, for the pixel samples point according to input, filters type code IS_AVS, colourity boundary marker ChromaEdgeFlag, boundary intensity Bs and the counted result of parameter list index module calculate cuts out parameter C;
Condition computing module, for the pixel samples point according to input, boundary intensity Bs, colourity boundary marker ChromaEdgeFlag, filtering type code IS_AVS and the result design conditions parameter of described parameter list index module;
Filter bank block, calculates organize filter result more for the pixel samples point according to input and described parameter C of cutting out;
And filter result selects module, for selecting corresponding filter result according to described conditional parameter;
Described parameter list index module comprises parameter list index circuit, and described filtering parameter computing module comprises cuts out parameter calculating Circuit, described condition computing module comprises condition counting circuit, and described filter bank block comprises filtering data counting circuit, institute Stating filter result selects module to comprise filter result selection circuit, the outfan of described parameter list index circuit with cut out parameter meter The input calculating circuit is connected with the input of condition counting circuit, cuts out outfan and the filtering data of parameter calculation circuit The input of counting circuit connects, and the outfan of filtering data counting circuit and the outfan of condition counting circuit are tied with filtering again Really the input of selection circuit is connected;
Described filtering data counting circuit includes common expression counting circuit and filter result counting circuit;Described public sheet Reaching formula counting circuit and calculate common expression result data according to pixel samples point, described filter result counting circuit is according to institute State common expression result data and cut out parameter C and calculate and organize filter result more.
A kind of compatible AVS the most according to claim 1 and deblocking filtering apparatus H.264, it is characterised in that: described bar Part counting circuit includes condition public counting circuit and conditional parameter counting circuit;Described condition public counting circuit root According to the threshold alpha of described parameter list index module output, threshold value beta and pixel samples point calculate condition public result data, Described conditional parameter counting circuit calculates to obtain conditional parameter according to the result data of condition public circuit.
A kind of compatible AVS the most according to claim 2 and deblocking filtering apparatus H.264, it is characterised in that: described bar Part public counting circuit includes multiple counting circuit, is used for calculating following condition public:
C2=Abs (q2-q0)<β
C3=Abs (p2-p0)<β
C0=C2&&Abs (p0-q0)<((α>>2)+2)
C1=C3&&Abs (p0-q0)<((α>>2)+2)
C4=Bs==0
C5=Bs==1&&IS_AVS
C6=Bs==2&&IS_AVS
C7=Bs<4&&Bs>0&&!IS_AVS
C8=Bs==4&&!IS_AVS;
Wherein, q2、q0、p2、p0For the pixel samples point before filtering.
A kind of compatible AVS the most according to claim 1 and deblocking filtering apparatus H.264, it is characterised in that: described filtering Data computing cicuit includes common expression counting circuit and filter result counting circuit;Described common expression counting circuit Calculating common expression result data according to pixel samples point, described filter result counting circuit is according to described common expression Result data and cut out parameter C and calculate and organize filter result more.
A kind of compatible AVS the most according to claim 4 and deblocking filtering apparatus H.264, it is characterised in that: described public affairs Coexpression formula counting circuit includes multiple counting circuit, is used for calculating following common expression:
Delta=Clip3 (-C, C, (((q0-p0)×3+(p1-q1)+4)>>3))
Sp0q0=p0+q0+1
Sp0p1=p0+p1+1
Sq0q1=q0+q1+1
Sp1p2=p1+p2+1
Sq1q2=q1+q2+1
Sp0q02p1=Sp0q0+((p1<<1)|1)
Sp0q02q1=Sp0q0+((q1<<1)|1);
Wherein, q2、q0、p2、p0、p1、q1For the pixel samples point before filtering.
A kind of compatible AVS the most according to claim 1 and deblocking filtering apparatus H.264, it is characterised in that: described public The multiplying of expression formula counting circuit all uses the circuit realiration of shifter-adder.
A kind of compatible AVS the most according to claim 1 and deblocking filtering apparatus H.264, it is characterised in that: described filter Wave datum counting circuit contains H.264 filtering data counting circuit and AVS filtering data counting circuit simultaneously.
A kind of compatible AVS the most according to claim 1 and deblocking filtering apparatus H.264, it is characterised in that: described parameter Table index circuit comprises index counting circuit, H.264 concordance list circuit, AVS concordance list circuit and indexed results selection circuit;
Described index counting circuit is according to quantization parameter QPp, QPq of input, filtering type code IS_AVS and filtering parameter AlphaOffset, BetaOffset, calculate indexing parameter indexA;
H.264 concordance list circuit and AVS concordance list circuit calculate respective threshold alpha, β according to indexing parameter indexA, index Result selection circuit carries out threshold value selection according to filtering type code IS_AVS, when IS_AVS is 1, selects AVS concordance list electricity The output on road, as threshold alpha and β, otherwise selects the output of H.264 concordance list circuit as threshold alpha and β when IS_AVS is 0.
A kind of compatible AVS the most according to claim 8 and deblocking filtering apparatus H.264, it is characterised in that: described index Counting circuit includes maximum quantization parameter calculation circuit, average quantisation parameter counting circuit, offset quantizing parameter calculation circuit, IndexA amplitude limiter circuit and indexB amplitude limiter circuit;
Maximum quantization parameter calculation circuit is according to expression formula max_qp=IS_AVS?63:51 calculates maximum quantization parameter max_ qp;
Average quantisation parameter counting circuit is according to expression formula QPav=(QPp+QPq+1) > > 1 calculate average quantisation parameter Qpav;
Offset quantizing parameter calculation circuit is according to expression formula Qpava=QPav+AlphaOffset and Qpavb=QPav+ BetaOffset calculates offset quantizing parameter Qpava and offset quantizing parameter Qpavb;
IndexA amplitude limiter circuit carries out amplitude limit according to Qpava so that it is value is at 0 to max_qp, and amplitude limiter circuit is output as indexA;
IndexB amplitude limiter circuit carries out amplitude limit according to Qpavb so that it is value is at 0 to max_qp, and amplitude limiter circuit is output as indexB.
A kind of compatible AVS the most according to claim 9 and deblocking filtering apparatus H.264, it is characterised in that: described AVS Concordance list circuit completes index value indexA α a and index value indexB to threshold value according to the AVS concordance list that filter is built-in Mapping to β a;H.264 concordance list circuit completes index value indexA to threshold value according to the H.264 concordance list that filter is built-in α h and the mapping of index value indexB to β h.
11. a kind of compatible AVS according to claim 1 and deblocking filtering apparatus H.264, it is characterised in that cut described in: Cut out parameter calculation circuit and include that tc0 indexes circuit, tca index circuit, parameter calculation circuit is cut out in brightness, colourity cuts out parameter meter Calculate circuit and cut out parameter selection circuit;
Tc0 index circuit completes by index indexA, the mapping of boundary intensity Bs to tc0 according to tc0 concordance list;
Tca index circuit completes by the mapping of index indexA to tca according to tca concordance list;
Brightness cuts out parameter calculation circuit according to expression formula Cl=tc0+ (Abs (p2-p0)<β)?1:0)+((Abs(q2-q0)<α)? 1:0) calculate brightness and cut out parameter Cl;
Colourity is cut out parameter calculation circuit and is calculated colourity according to expression formula Cc=tc0+1 and cut out parameter Cc;
Cut out parameter selection circuit according to expression formula C=IS_AVS?tca:(ChromaEdgeFlag?Cc:Cl) calculate finally Cut out parameter C;
Wherein, q2、q0、p2、p0For the pixel samples point before filtering.
12. a kind of compatible AVS according to claim 1 and deblocking filtering apparatus H.264, it is characterised in that: described filter Ripple result selection circuit is for selecting corresponding filter result according to conditional parameter, when corresponding conditional parameter is true time, finally Filter result select corresponding filter result.
13. 1 kinds of compatible AVS and block-removal filtering method H.264, it is characterised in that: described method includes:
Step S1: according to input quantization parameter QPp, QPq, filtering type code IS_AVS and filtering parameter AlphaOffset, BetaOffset, calculates indexing parameter indexA, threshold alpha and β;
Step S2: according to the pixel samples point of input, filters type code IS_AVS, colourity boundary marker ChromaEdgeFlag, boundary intensity Bs and the counted result of step S1 calculate cuts out parameter C;
Step S3: according to the pixel samples point of input, boundary intensity Bs, colourity boundary marker ChromaEdgeFlag, filter class The result design conditions parameter of type mark IS_AVS and described step S1;
Step S4: calculate organize filter result more according to the pixel samples point of input and described parameter C of cutting out;
Step S5: select corresponding filter result according to described conditional parameter.
14. a kind of compatible AVS according to claim 13 and block-removal filtering methods H.264, it is characterised in that: step S3 Concretely comprise the following steps: count to obtain condition common value according to threshold alpha, threshold value beta and pixel samples, further according to described condition common value Calculate to obtain conditional parameter.
15. a kind of compatible AVS according to claim 13 and block-removal filtering methods H.264, it is characterised in that: step S4 Concretely comprise the following steps: according to pixel samples point calculate public expression value, further according to described public expression value and cut out parameter C calculate Go out and organize filter result more.
CN201310192586.1A 2013-05-22 2013-05-22 A kind of compatible AVS and block-removal filtering method H.264 and device Active CN103281536B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310192586.1A CN103281536B (en) 2013-05-22 2013-05-22 A kind of compatible AVS and block-removal filtering method H.264 and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310192586.1A CN103281536B (en) 2013-05-22 2013-05-22 A kind of compatible AVS and block-removal filtering method H.264 and device

Publications (2)

Publication Number Publication Date
CN103281536A CN103281536A (en) 2013-09-04
CN103281536B true CN103281536B (en) 2016-10-26

Family

ID=49063965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310192586.1A Active CN103281536B (en) 2013-05-22 2013-05-22 A kind of compatible AVS and block-removal filtering method H.264 and device

Country Status (1)

Country Link
CN (1) CN103281536B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104113765A (en) * 2014-07-28 2014-10-22 北京大学深圳研究生院 Video coding and decoding method and device
CN106507118B (en) * 2016-11-28 2019-10-11 浪潮集团有限公司 A kind of bimodulus brightness interpolating filter structure and method
WO2018120230A1 (en) 2016-12-30 2018-07-05 华为技术有限公司 Image filtering method, apparatus and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330617A (en) * 2008-07-31 2008-12-24 上海交通大学 Hardware implementing method and apparatus for anticipater within multi-standard frame based on mode mapping
CN101841722A (en) * 2010-06-08 2010-09-22 上海交通大学 Detection device of filtering boundary strength and detection method thereof
CN101909212A (en) * 2010-08-05 2010-12-08 上海交通大学 Multi-standard macroblock prediction system of reconfigurable multimedia SoC
CN102223530A (en) * 2010-04-13 2011-10-19 承景科技股份有限公司 Edge filter with shared framework and method for sharing edge filter
CN102244780A (en) * 2010-05-12 2011-11-16 承景科技股份有限公司 Deblocking filter and method for controlling the deblocking filter thereof
CN102804165A (en) * 2009-02-11 2012-11-28 四次方有限公司 Front end processor with extendable data path

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330617A (en) * 2008-07-31 2008-12-24 上海交通大学 Hardware implementing method and apparatus for anticipater within multi-standard frame based on mode mapping
CN102804165A (en) * 2009-02-11 2012-11-28 四次方有限公司 Front end processor with extendable data path
CN102223530A (en) * 2010-04-13 2011-10-19 承景科技股份有限公司 Edge filter with shared framework and method for sharing edge filter
CN102244780A (en) * 2010-05-12 2011-11-16 承景科技股份有限公司 Deblocking filter and method for controlling the deblocking filter thereof
CN101841722A (en) * 2010-06-08 2010-09-22 上海交通大学 Detection device of filtering boundary strength and detection method thereof
CN101909212A (en) * 2010-08-05 2010-12-08 上海交通大学 Multi-standard macroblock prediction system of reconfigurable multimedia SoC

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种适用于H.264和AVS的自适应去块效应滤波***的硬件架构设计及实现;叶姜莉;《中国学位论文全文数据库》;20080724;第三、四章 *

Also Published As

Publication number Publication date
CN103281536A (en) 2013-09-04

Similar Documents

Publication Publication Date Title
US20210012537A1 (en) Loop filter apparatus and image decoding apparatus
CN107197260B (en) Video coding post-filter method based on convolutional neural networks
JP6334006B2 (en) System and method for high content adaptive quality restoration filtering for video coding
CN103281536B (en) A kind of compatible AVS and block-removal filtering method H.264 and device
RU2358410C2 (en) Method and corresponding device for filtering digital video images
CN109495741A (en) Method for compressing image based on adaptive down-sampling and deep learning
CN105453565B (en) Video coding apparatus, video decoder, video system, method for video coding, video encoding/decoding method
CN106358029A (en) Video image processing method and device
KR102070622B1 (en) Method and apparatus for estimating a quantization table for a video image
WO2022001559A1 (en) Video encoding method and apparatus, electronic device and machine-readable storage medium
CN108337516A (en) A kind of HDR video dynamic range scalable encodings of facing multiple users
CN106954072B (en) Method and apparatus for region-based filter parameter selection for de-artifact filtering
Lynch et al. Post processing transform coded images using edges
KR102631837B1 (en) Methods and devices for encoding and decoding a picture sequence, and corresponding computer program products and computer-readable media
CN109756736A (en) SAO mode decision method, apparatus, electronic equipment and readable storage medium storing program for executing
CN106572352A (en) Keyframe size control method and device
CN112165620A (en) Video encoding method and device, storage medium and electronic equipment
Hu et al. Removal of blocking and ringing artifacts in transform coded images
Cui et al. Decoder side image quality enhancement exploiting inter-channel correlation in a 3-stage CNN: Submission to CLIC 2018
CN112699270A (en) Monitoring security data transmission and storage method and system based on cloud computing, electronic equipment and computer storage medium
CN109660813A (en) A kind of quantizing noise linear fit method, code device and coding method
CN1949821A (en) Method for recovering image with removal of noise in frequency image data and apparatus thereof
CN204131646U (en) A kind of digital video signal decoder
Chen et al. Artifact reduction by post-processing in image compression
Mu et al. Adaptive multi-dimension sparsity based coefficient estimation for compression artifact reduction

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant