CN103916676B - A kind of boundary intensity determines method, block-eliminating effect filtering method and device - Google Patents

A kind of boundary intensity determines method, block-eliminating effect filtering method and device Download PDF

Info

Publication number
CN103916676B
CN103916676B CN201210592468.5A CN201210592468A CN103916676B CN 103916676 B CN103916676 B CN 103916676B CN 201210592468 A CN201210592468 A CN 201210592468A CN 103916676 B CN103916676 B CN 103916676B
Authority
CN
China
Prior art keywords
boundary
image block
adjacent image
intensity
mentioned
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
CN201210592468.5A
Other languages
Chinese (zh)
Other versions
CN103916676A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210592468.5A priority Critical patent/CN103916676B/en
Priority to PCT/CN2013/087494 priority patent/WO2014101590A1/en
Publication of CN103916676A publication Critical patent/CN103916676A/en
Application granted granted Critical
Publication of CN103916676B publication Critical patent/CN103916676B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
    • H04N19/86Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression involving reduction of coding artifacts, e.g. of blockiness
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/30Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using hierarchical techniques, e.g. scalability

Abstract

Method, block-eliminating effect filtering method and device are determined the embodiment of the invention discloses a kind of boundary intensity, wherein method includes:Determine DBF possibility filtering boundary;Obtain the coding mode and coding information of the adjacent image block in the possible filtering boundary both sides;When the coding mode of the adjacent image block is not Intra patterns, and at least include a BaseLayer pattern in the coding mode of the adjacent image block, then the boundary intensity BS of the possible filtering boundary is set to by different boundary strength values according to the coding information.When the coding mode of adjacent image block is not Intra patterns, and at least include a BaseLayer pattern in the coding mode of adjacent image block, then will likely the BS of filtering boundary be set to different boundary strength values, BS setting is no longer all arranged to same intensity, make BS setting more reasonable, and then lift code efficiency.

Description

A kind of boundary intensity determines method, block-eliminating effect filtering method and device
Technical field
The present invention relates to communication technical field, more particularly to a kind of boundary intensity determine method, block-eliminating effect filtering method, And device.
Background technology
Becoming increasingly abundant for fast development with internet and the culture of people's material spirit, is directed to video in internet Application demand it is more and more in particular for the application demand of HD video, and the data volume of HD video is very big, wants HD video can be transmitted in the limited internet of bandwidth, it is necessary to which the problem of solving first is exactly that HD video compressed encoding is asked Topic.At present, You Liangge international organizations exclusively carry out the formulation work of video encoding standard in the world, i.e.,:ISO(Inter National Organization forStandardization, International Organization for standardization)/IEC(Inter national ElectrotechnicalCommission, International Electrotechnical Commission)Under MPEG(Motion Picture Experts Group, Motion Picture Experts Group)And ITU-T(Inter national TelecommunicationUnion- Telecommunication standardization sector, international telecommunication union telecommunication's standardization group)VCEG (Video Coding Experts Group, Video Coding Experts Group).
Be found in the MPEG of 1986 be responsible for specially formulate MultiMedia Field in relevant criterion, be mainly used in storage, Streaming Media on radio and television, internet or wireless network etc..ITU-T then mainly formulates the video towards live video communication field Coding standard, such as visual telephone, video conference application.In in the past few decades, successfully formulated in the world towards The video encoding standard of various applications, mainly includes:For VCD(Video Compact Disc, video and audio CD disc)MPEG-1 Standard, for DVD(Digital Versatic Disc, digital versatile disc)And DVB(Digital Video Broadcasting, DVB)Moving Picture Experts Group-2, for the H.261 standard and H.263 standard of video conference, Allow the MPEG-4 standards to the object coding of arbitrary shape, formulate recently in the world H.264/AVC(Advanced Video Coding, advanced video encoding)Standard, and the HEVC formulated(High Efficiency Video Coding, Gao Xing Can Video coding)Standard.
In network environment(Such as internet), because the network bandwidth is limited, the demand of terminal device and user All it is different, so for certain specific application, the code stream of first compression is not satisfactory and effective, to one It is even nonsensical for some specific users or equipment.An effective method for solving this problem is exactly SVC (Scalable Video Coding, scalable video),JVT(Joint Video Team, joint video code set) Through then bringing SVC in the H.264/AVC extension of standard into, receive to be international standard by formal, and specify H.264/AVC the decoding syntactic structure of corresponding SVC code stream, includes H.264/AVC code used technologies of corresponding SVC Briefly introduce.In order to adapt to be actually needed, in HEVC in 2 months 2012 CD(COMPACT DISK, CD)After standard, development HEVC SVC is an extremely urgent thing.SVC based on HEVC is then referred to as by the JCT-VC meetings that in October, 2012 holds SHVC(Scalable Highefficiency Video Coding, scalable high-performance video coding), start test job.
Predictive coding, transition coding are based on H.264/AVC all to be used as the primary video coding standard of representative with HEVC With the hybrid encoding frame of statistical coding.Under the framework, the quantization operation to residual unit after prediction is to cause Video coding The main cause of Quality Down.Information content difference is bigger between adjacent cells after prediction(I.e.:Residual difference is bigger), be more possible to through Quantization/inverse quantization is crossed, mutation is introduced on the border of block, and blocking artifact therefore occur.H.264/AVC loop filtering skill is introduced Art, removes the blocking artifact in reconstruction image.Newest HEVC standard, there is two Video post-processing technologies, and one is deblocking effect It should filter(Deblocking Filtering, DBF)Technology, another is the adaptive migration technology of pixel(Sample Adaptive Offset, SAO), the quality for improving reconstruction image.Blocking effect is generally present in predicted boundary or conversion On border, when DBF determines whether the border filters and filter according to coding mode, quantization parameter size and residual error coefficient situation Intensity operated accordingly, reach the operation of smoothed image.DBF energy in the case of the computation complexity of increase encoding and decoding end Enough effectively improve the subjective and objective quality of video.
And in the prior art due to the boundary intensity to image block in DBF(Boundary Strength, BS)Assignment not Accurately enhancement layer coding efficiency is caused further to improve.
The content of the invention
Method, block-eliminating effect filtering method and device are determined the embodiments of the invention provide a kind of boundary intensity, for carrying Rise code efficiency.
On the one hand the embodiment of the present invention determines method there is provided a kind of boundary intensity BS, including:
Determine block-eliminating effect filtering DBF possibility filtering boundary;
Obtain the coding mode and coding information of the adjacent image block in the possible filtering boundary both sides;
When the coding mode of the adjacent image block is not frame in Intra patterns, and the adjacent image block At least include Primary layer BaseLayer pattern in coding mode, then according to the coding information by the possible filtering The boundary intensity BS on border is set to different boundary strength values.
With reference to the implementation of one side, in the first possible implementation, the coding information includes mark institute The quantization parameter whether state adjacent image block has quantization parameter is identified;
The coding information for obtaining the adjacent image block in the possible filtering boundary both sides is specifically included:
The quantization parameter whether obtain the adjacent image block in the possible filtering boundary both sides has quantization parameter is identified;
The different boundary strength value includes the first boundary strength value and the second boundary intensity level, and the second boundary is strong Angle value is more than the first described boundary strength value, described according to the coding information that the border of the possible filtering boundary is strong Degree BS is set to different boundary strength values and specifically included:
If the coding mode of the adjacent image block is BaseLayer patterns and quantization parameter mark indicates the phase The adjacent no quantization coefficient of image block, then be set to the first boundary intensity by the boundary intensity BS of the possible filtering boundary.
With reference to the implementation of one side, in second of possible implementation, the coding information includes mark institute The quantization parameter whether state adjacent image block has quantization parameter is identified, the reference picture of the adjacent image block, Yi Jisuo State the motion vector of adjacent image block;
The coding information of the adjacent image block for obtaining the possible filtering boundary both sides is specifically included:
Coding mode is set for the reference picture of the described image block of BaseLayer patterns and by institute according to preset rules The motion vector for stating the described image block that coding mode is BaseLayer patterns is arranged with respect to same block of locations in reference picture Corresponding parameter when static;
Obtain the quantization parameter mark of the adjacent image block in the possible filtering boundary both sides, and the adjacent image The reference picture of block, and the adjacent image block motion vector;
The different boundary strength value includes the first boundary strength value and the second boundary intensity level, and the second boundary is strong Angle value is more than the first described boundary strength value;It is described according to the coding information that the border of the possible filtering boundary is strong Degree BS is set to different boundary intensities and specifically included:
If the quantization parameter mark indicates the no quantization coefficient of adjacent image block, and the adjacent image Block has identical reference picture, and the difference of the motion vector of the adjacent image block is less than predetermined threshold value, then by institute The boundary intensity BS for stating possible filtering boundary is set to the first boundary intensity.
It is described according to institute in the third possible implementation with reference to second of possible implementation of one side Stating coding information the boundary intensity BS of the possible filtering boundary is set into different boundary intensities also includes:
If the quantization parameter mark indicates that the image block described at least one in the adjacent image block has quantization Coefficient, or the adjacent image block have a different reference pictures, or the adjacent image block motion vector difference More than or equal to predetermined threshold value, then the boundary intensity BS of the possible filtering boundary is set to the second boundary intensity.
With reference to the implementation of one side, in the 4th kind of possible implementation, the coding information includes mark institute The quantization parameter whether state adjacent image block has quantization parameter is identified;
The coding information of the adjacent image block for obtaining the possible filtering boundary both sides is specifically included:
The quantization parameter whether obtain the adjacent image block in the possible filtering boundary both sides has quantization parameter is identified;
The different boundary strength value includes the first boundary strength value and the second boundary intensity level, and the second boundary is strong Angle value is more than the first described boundary strength value;It is described according to the coding information that the border of the possible filtering boundary is strong Degree BS is set to different boundary intensities and specifically included:
If the quantization parameter mark indicates that the image block described at least one in the adjacent image block has quantization system Number, then be set to the second boundary intensity by the boundary intensity BS of the possible filtering boundary.
With reference to the 4th kind of possible implementation of one side, in the 5th kind of possible implementation, the coding letter Breath also includes the reference picture of the adjacent image block;
The coding information of the adjacent image block for obtaining the possible filtering boundary both sides also includes:
Coding mode is set to be the reference picture of the described image block of BaseLayer patterns according to preset rules;Obtain institute State the reference picture of the adjacent image block of possible filtering boundary both sides;
It is described that the boundary intensity BS of the possible filtering boundary is set to by the different side according to the coding information Boundary's intensity also includes:
If the quantization parameter mark indicates the no quantization coefficient of adjacent image block, and the adjacent image Block has different reference pictures, then the boundary intensity BS of the possible filtering boundary is set into the second boundary intensity.
With reference to the 5th kind of possible implementation of one side, in the 6th kind of possible implementation, the coding letter Breath also includes the motion vector of the adjacent image block;
The coding information of the adjacent image block for obtaining the possible filtering boundary both sides also includes:
Motion vector by the coding mode for the described image block of BaseLayer patterns is arranged with respect to reference to figure With block of locations parameter corresponding when static as in;
Obtain the motion vector of the adjacent image block of the possible filtering boundary both sides;
It is described that the boundary intensity BS of the possible filtering boundary is set to by the different side according to the coding information Boundary's intensity level also includes:
If the quantization parameter mark indicates the no quantization coefficient of adjacent image block, and the adjacent image Block has the difference between identical reference picture, and the adjacent image block motion vector to be more than or equal to default threshold Value, then be set to the second boundary intensity by the boundary intensity BS of the possible filtering boundary.
It is described according to institute in the 7th kind of possible implementation with reference to the 6th kind of possible implementation of one side Stating coding information the boundary intensity BS of the possible filtering boundary is set into different boundary intensities also includes:
If the quantization parameter mark indicates no quantization coefficient in the adjacent image block, and the adjacent figure There is the difference between identical reference picture, and the adjacent image block motion vector to be less than predetermined threshold value as block, then will The boundary intensity BS of the possible filtering boundary is set to the first boundary intensity.
With reference to one side the first to the 6th kind of possible implementation of any one, the 8th kind of possible realization side In formula, first boundary intensity is 0, and the second boundary intensity is 1.
The aspect of the embodiment of the present invention two provides a kind of filtering method of deblocking effect, including:
Determine block-eliminating effect filtering DBF possibility filtering boundary;
Obtain the coding mode and coding information of the adjacent image block in the possible filtering boundary both sides;
When the coding mode of the adjacent image block is not frame in Intra patterns, and the adjacent image block At least include Primary layer BaseLayer pattern in coding mode, then according to the coding information by the possible filtering The boundary intensity BS on border is set to different boundary strength values;
It is used to obtain first threshold and Second Threshold using the boundary strength value of the determination as a reference factor, it is described First threshold is used to determine whether to be filtered the possible filtering boundary, the Second Threshold be used for determine to need into The filtering strength that the possible filtering boundary of row filtering is filtered;
According to the pixel gradient in preset range in the adjacent image block in the possible filtering boundary both sides and described One threshold value determines the need for being filtered the possible filtering boundary;
If it is determined that needing to be filtered, then according to the picture in preset range in the adjacent image block in possible filtering boundary both sides Plain gradient and the relation of Second Threshold determine to perform the wave filter of filtering, and using the execution of determined wave filter to it is described need into The possible filtering boundary of row filtering is filtered processing.
With reference to the implementation of two aspects, in the first possible implementation, the coding information includes mark institute The quantization parameter whether state adjacent image block has quantization parameter is identified;
The coding information for obtaining the adjacent image block in the possible filtering boundary both sides is specifically included:
The quantization parameter whether obtain the adjacent image block in the possible filtering boundary both sides has quantization parameter is identified;
The different boundary strength value includes the first boundary strength value and the second boundary intensity level, and the second boundary is strong Angle value is more than the first described boundary strength value;It is described according to the coding information that the border of the possible filtering boundary is strong Degree BS is set to different boundary strength values and specifically included:
If the coding mode of the adjacent image block is BaseLayer patterns and quantization parameter mark indicates the phase The adjacent no quantization coefficient of image block, then be set to the first boundary intensity by the boundary intensity BS of the possible filtering boundary.
With reference to the implementation of two aspects, in second of possible implementation, the coding information includes mark institute The quantization parameter whether state adjacent image block has quantization parameter is identified, the reference picture of the adjacent image block, Yi Jisuo State the motion vector of adjacent image block;
The coding information of the adjacent image block for obtaining the possible filtering boundary both sides is specifically included:
Coding mode is set for the reference picture of the described image block of BaseLayer patterns and by institute according to preset rules The motion vector for stating the described image block that coding mode is BaseLayer patterns is arranged with respect to same block of locations in reference picture Corresponding parameter when static;
Obtain the quantization parameter mark of the adjacent image block in the possible filtering boundary both sides, and the adjacent image The reference picture of block, and the adjacent image block motion vector;
The different boundary strength value includes the first boundary strength value and the second boundary intensity level, and the second boundary is strong Angle value is more than the first described boundary strength value;It is described according to the coding information that the border of the possible filtering boundary is strong Degree BS is set to different boundary strength values and specifically included:
If the quantization parameter mark indicates the no quantization coefficient of adjacent image block, and the adjacent image Block has identical reference picture, and the difference of the motion vector of the adjacent image block is less than predetermined threshold value, then by institute The boundary intensity BS for stating possible filtering boundary is set to the first boundary intensity.
It is described according to institute in the third possible implementation with reference to second of possible implementation of two aspects State coding information and the boundary intensity BS of the possible filtering boundary is set to the first boundary intensity or the second boundary intensity also Including:
If the quantization parameter mark indicates that the image block described at least one in the adjacent image block has quantization Coefficient, or the adjacent image block have a different reference pictures, or the adjacent image block motion vector difference More than or equal to predetermined threshold value, then the boundary intensity BS of the possible filtering boundary is set to the second boundary intensity.
With reference to the implementation of two aspects, in the 4th kind of possible implementation, the coding information includes mark institute The quantization parameter whether state adjacent image block has quantization parameter is identified;
The coding information of the adjacent image block for obtaining the possible filtering boundary both sides is specifically included:
The quantization parameter whether obtain the adjacent image block in the possible filtering boundary both sides has quantization parameter is identified;
The different boundary strength value includes the first boundary strength value and the second boundary intensity level, and the second boundary is strong Angle value is more than the first described boundary strength value;It is described according to the coding information that the border of the possible filtering boundary is strong Degree BS is set to different boundary strength values and specifically included:
If the quantization parameter mark indicates that the image block described at least one in the adjacent image block has quantization system Number, then be set to the second boundary intensity by the boundary intensity BS of the possible filtering boundary.
With reference to the 4th kind of possible implementation of two aspects, in the 5th kind of possible implementation, the coding letter Breath also includes the reference picture of the adjacent image block;
The coding information of the adjacent image block for obtaining the possible filtering boundary both sides also includes:
Coding mode is set to be the reference picture of the described image block of BaseLayer patterns according to preset rules;Obtain institute State the reference picture of the adjacent image block of possible filtering boundary both sides;
It is described that the boundary intensity BS of the possible filtering boundary is set into the first border according to the coding information is strong Degree or the second boundary intensity also include:
If the quantization parameter mark indicates the no quantization coefficient of adjacent image block, and the adjacent image Block has different reference pictures, then the boundary intensity BS of the possible filtering boundary is set into the second boundary intensity.
With reference to the 5th kind of possible implementation of two aspects, in the 6th kind of possible implementation, the coding letter Breath also includes the motion vector of the adjacent image block;
The coding information of the adjacent image block for obtaining the possible filtering boundary both sides also includes:
Motion vector by the coding mode for the described image block of BaseLayer patterns is arranged with respect to reference to figure With block of locations parameter corresponding when static as in;Obtain the possible filtering boundary both sides adjacent image block motion to Amount;
It is described that the boundary intensity BS of the possible filtering boundary is set into the first border according to the coding information is strong Degree or the second boundary intensity also include:
If the quantization parameter mark indicates the no quantization coefficient of adjacent image block, and the adjacent image Block has the difference between identical reference picture, and the adjacent image block motion vector to be more than or equal to default threshold Value, then be set to the second boundary intensity by the boundary intensity BS of the possible filtering boundary.
It is described according to institute in the 7th kind of possible implementation with reference to the 6th kind of possible implementation of two aspects Stating coding information the boundary intensity BS of the possible filtering boundary is set into different boundary strength values also includes:
If the quantization parameter mark indicates no quantization coefficient in the adjacent image block, and the adjacent figure There is the difference between identical reference picture, and the adjacent image block motion vector to be less than predetermined threshold value as block, then will The boundary intensity BS of the possible filtering boundary is set to the first boundary intensity.
With reference to two aspect the first to the 6th kind of possible implementation of any one, the 8th kind of possible realization side In formula, first boundary intensity is 0, and the second boundary intensity is 1.
The aspect of the embodiment of the present invention three provides a kind of boundary intensity BS determining devices, including:
First border determining unit, the possibility filtering boundary for determining block-eliminating effect filtering DBF;
First information acquiring unit, for obtaining the possibility filtering boundary both sides phase that first border determining unit is determined The coding mode and coding information of adjacent image block;
First BS determining units, for the coding mode of the adjacent image block obtained when the first information acquiring unit It is not at least to include a Primary layer BaseLayer in frame in Intra patterns, and the coding mode of the adjacent image block Pattern, then be set to different boundary intensities according to the coding information by the boundary intensity BS of the possible filtering boundary Value.
With reference to the implementation of three aspects, in the first possible implementation, the first information acquiring unit, tool Whether body is used to obtaining the adjacent image block in possibility filtering boundary both sides that first border determining unit determines has the quantization to be Several quantization parameter marks;
The different boundary strength value includes the first boundary strength value and the second boundary intensity level, and the second boundary is strong Angle value is more than the first described boundary strength value, the first BS determining units, if specifically for the volume of the adjacent image block Pattern is BaseLayer patterns and quantization parameter mark indicates the no quantization coefficient of adjacent image block, then will The boundary intensity BS of the possible filtering boundary is set to the first boundary intensity.
With reference to the implementation of three aspects, in second of possible implementation, the first information acquiring unit, tool Body is used to obtain the quantization parameter mark for marking the adjacent image block whether to have quantization parameter that the coding information includes The motion vector of knowledge, the reference picture of the adjacent image block, and the adjacent image block;
The first BS determining units include:First parameter set unit, the first parameter acquiring unit and the first BS are true Stator unit;
First parameter set unit, for setting coding mode to be the institute of BaseLayer patterns according to preset rules State the reference picture of image block and set the coding mode for the motion vector of the described image block of BaseLayer patterns For relative in reference picture with the parameter that block of locations is corresponding when static;
First parameter acquiring unit, for obtaining the possibility filtering boundary two that first border determining unit is determined The quantization parameter mark of the adjacent image block in side, and the adjacent image block reference picture, and the adjacent figure As the motion vector of block;
The different boundary strength value includes the first boundary strength value and the second boundary intensity level, and the second boundary is strong Angle value is more than the first described boundary strength value;The first BS determination subelements, are indicated if being identified for the quantization parameter The no quantization coefficient of adjacent image block, and the adjacent image block has identical reference picture, and it is described The difference of the motion vector of adjacent image block is less than predetermined threshold value, then sets the boundary intensity BS of the possible filtering boundary It is set to the first boundary intensity.
With reference to second of possible implementation of three aspects, in the third possible implementation, the first BS Determination subelement, if being additionally operable to the image described at least one in the quantization parameter mark instruction adjacent image block Block has quantization parameter, or the adjacent image block has different reference pictures, or the adjacent image block motion arrow The difference of amount is more than or equal to predetermined threshold value, then the boundary intensity BS of the possible filtering boundary is set into the second boundary strong Degree.
With reference to the implementation of three aspects, in the 4th kind of possible implementation, the first information acquiring unit, tool Whether body is used to obtaining the adjacent image block in possibility filtering boundary both sides that first border determining unit determines has the quantization to be Several quantization parameter marks;
The different boundary strength value includes the first boundary strength value and the second boundary intensity level, and the second boundary is strong Angle value is more than the first described boundary strength value;The first BS determining units, if referring to specifically for quantization parameter mark Show that the image block described at least one in the adjacent image block has quantization parameter, then by the side of the possible filtering boundary Boundary intensity BS is set to the second boundary intensity.
With reference to the 4th kind of possible implementation of three aspects, in the 5th kind of possible implementation, first letter Acquiring unit is ceased, is additionally operable to according to the described image block that preset rules setting coding mode is BaseLayer patterns with reference to figure Picture;Obtain the reference picture of the adjacent image block of the possible filtering boundary both sides;
The first BS determining units, if being additionally operable to the quantization parameter mark indicates that the adjacent image block is immeasurable Change coefficient, and the adjacent image block has different reference pictures, then it is the border of the possible filtering boundary is strong Degree BS is set to the second boundary intensity.
With reference to the 5th kind of possible implementation of three aspects, in the 6th kind of possible implementation, first letter Acquiring unit is ceased, is additionally operable to obtain the motion vector for the adjacent image block that the coding information includes;
The first BS determining units include:Second parameter set unit, the second parameter acquiring unit and the 2nd BS are true Stator unit;
Second parameter set unit, for being the described image block of BaseLayer patterns by the coding mode Motion vector is arranged with respect in reference picture with the parameter that block of locations is corresponding when static;
Second parameter acquiring unit, the motion of the adjacent image block for obtaining the possible filtering boundary both sides Vector;
The 2nd BS determination subelements, if indicating that the adjacent image block is immeasurable for quantization parameter mark Change coefficient, and the adjacent image block has between identical reference picture, and the adjacent image block motion vector Difference be more than or equal to predetermined threshold value, then the boundary intensity BS of the possible filtering boundary is set to the second boundary strong Degree.
With reference to the 6th kind of possible implementation of three aspects, in the 7th kind of possible implementation, the 2nd BS Determination subelement, if being additionally operable to the quantization parameter mark indicates no quantization coefficient in the adjacent image block, and institute Stating adjacent image block has the difference between identical reference picture, and the adjacent image block motion vector less than default Threshold value, then be set to the first boundary intensity by the boundary intensity BS of the possible filtering boundary.
With reference to three aspect the first to the 6th kind of possible implementation of any one, the 8th kind of possible realization side In formula, the first described boundary intensity is 0, and described the second boundary intensity is 1.
The aspect of the embodiment of the present invention four provides a kind of filter of deblocking effect, including:
The second boundary determining unit, the possibility filtering boundary for determining block-eliminating effect filtering DBF;
Second information acquisition unit, for obtaining the possibility filtering boundary both sides phase that the second boundary determining unit is determined The coding mode and coding information of adjacent image block;
2nd BS determining units, for the coding mode of the adjacent image block obtained when second information acquisition unit It is not at least to include a Primary layer BaseLayer in frame in Intra patterns, and the coding mode of the adjacent image block Pattern, then be set to different boundary intensities according to the coding information by the boundary intensity BS of the possible filtering boundary Value;
Threshold value acquiring unit, for being used to obtain first using the boundary intensity BS values of the determination as a reference factor Threshold value and Second Threshold, the first threshold are used to determine whether to be filtered the possible filtering boundary, and described second Threshold value is used for the filtering strength for determining to be filtered the possible filtering boundary that needs are filtered;
Decision unit is filtered, the possible filtering boundary both sides for being determined according to the second boundary determining unit are adjacent Image block in pixel gradient in preset range and the first threshold determine the need for the possible filtering boundary It is filtered;
Filter control unit, if determining that needs are filtered for filtering decision unit, according to possible filtering boundary The relation of pixel gradient and Second Threshold in the adjacent image block in both sides in preset range determines the wave filter of execution filtering, and Performed using institute's determination wave filter and processing is filtered to the possible filtering boundary for needing to be filtered.
With reference to the implementation of four aspects, in the first possible implementation, second information acquisition unit, tool Whether body is used to obtaining the adjacent image block in possibility filtering boundary both sides that the second boundary determining unit determines has the quantization to be Several quantization parameter marks;
The different boundary strength value includes the first boundary strength value and the second boundary intensity level, and the second boundary is strong Angle value is more than the first described boundary strength value;The 2nd BS determining units, if specifically for the volume of the adjacent image block Pattern is BaseLayer patterns and quantization parameter mark indicates the no quantization coefficient of adjacent image block, then will The boundary intensity BS of the possible filtering boundary is set to the first boundary intensity.
With reference to the implementation of four aspects, in second of possible implementation, second information acquisition unit, tool Body is used to obtain the quantization parameter mark for marking the adjacent image block whether to have quantization parameter that the coding information includes The motion vector of knowledge, the reference picture of the adjacent image block, and the adjacent image block;
The 2nd BS determining units include:3rd parameter set unit, the 3rd parameter acquiring unit and the 3rd BS are true Stator unit;
3rd parameter set unit, for setting the figure that coding mode is BaseLayer patterns according to preset rules As block reference picture and the coding mode is set to phase for the motion vector of described image block of BaseLayer patterns For in reference picture with the parameter that block of locations is corresponding when static;
3rd parameter acquiring unit, for obtaining the possibility filtering boundary two that the second boundary determining unit is determined The quantization parameter mark of the adjacent image block in side, and the adjacent image block reference picture, and the adjacent figure As the motion vector of block;
The different boundary strength value includes the first boundary strength value and the second boundary intensity level, and the second boundary is strong Angle value is more than the first described boundary strength value;The 3rd BS determination subelements, are indicated if being identified for the quantization parameter The no quantization coefficient of adjacent image block, and the adjacent image block has identical reference picture, and it is described The difference of the motion vector of adjacent image block is less than predetermined threshold value, then sets the boundary intensity BS of the possible filtering boundary It is set to the first boundary intensity.
With reference to second of possible implementation of four aspects, in the third possible implementation, the 3rd BS Determination subelement, if being additionally operable to the image described at least one in the quantization parameter mark instruction adjacent image block Block has quantization parameter, or the adjacent image block has different reference pictures, or the adjacent image block motion arrow The difference of amount is more than or equal to predetermined threshold value, then the boundary intensity BS of the possible filtering boundary is set into the second boundary strong Degree.
With reference to the implementation of four aspects, in the 4th kind of possible implementation, second information acquisition unit, tool Whether body is used to obtaining the adjacent image block in possibility filtering boundary both sides that the second boundary determining unit determines has the quantization to be Several quantization parameter marks;
The different boundary strength value includes the first boundary strength value and the second boundary intensity level, and the second boundary is strong Angle value is more than the first described boundary strength value;The 2nd BS determining units, if referring to specifically for quantization parameter mark Show that the image block described at least one in the adjacent image block has quantization parameter, then by the side of the possible filtering boundary Boundary intensity BS is set to the second boundary intensity.
With reference to the 4th kind of possible implementation of four aspects, in the 5th kind of possible implementation, second letter Acquiring unit is ceased, is additionally operable to according to the described image block that preset rules setting coding mode is BaseLayer patterns with reference to figure Picture;Obtain the reference picture of the adjacent image block of the possible filtering boundary both sides;
The 2nd BS determining units, if being additionally operable to the quantization parameter mark indicates that the adjacent image block is immeasurable Change coefficient, and the adjacent image block has different reference pictures, then it is the border of the possible filtering boundary is strong Degree BS is set to the second boundary intensity.
With reference to the 5th kind of possible implementation of four aspects, in the 6th kind of possible implementation, the volume letter Acquiring unit is ceased, is additionally operable to obtain the motion vector for the adjacent image block that the coding information includes;
The 2nd BS determining units include:4th parameter set unit, the 4th parameter acquiring unit and the 4th BS are true Stator unit;
4th parameter set unit, for being the described image block of BaseLayer patterns by the coding mode Motion vector is arranged with respect in reference picture with the parameter that block of locations is corresponding when static;
4th parameter acquiring unit, the motion of the adjacent image block for obtaining the possible filtering boundary both sides Vector;
The 4th BS determination subelements, if indicating that the adjacent image block is immeasurable for quantization parameter mark Change coefficient, and the adjacent image block has between identical reference picture, and the adjacent image block motion vector Difference be more than or equal to predetermined threshold value, then the boundary intensity BS of the possible filtering boundary is set to the second boundary strong Degree.
With reference to the 6th kind of possible implementation of four aspects, in the 7th kind of possible implementation, the 4th BS Determination subelement, if being additionally operable to the quantization parameter mark indicates no quantization coefficient in the adjacent image block, and institute Stating adjacent image block has the difference between identical reference picture, and the adjacent image block motion vector less than default Threshold value, then be set to the first boundary intensity by the boundary intensity BS of the possible filtering boundary.
With reference to four aspect the first to the 6th kind of possible implementation of any one, the 8th kind of possible realization side In formula, the first described boundary intensity is 0, and described the second boundary intensity is 1.
As can be seen from the above technical solutions, the embodiment of the present invention has advantages below:When the coding of adjacent image block Pattern is not Intra patterns, and at least includes a BaseLayer pattern in the coding mode of adjacent image block, then will The boundary intensity BS of possible filtering boundary is set to different boundary strength values, and BS setting is no longer all arranged to identical strong Degree, makes BS setting more reasonable, and then lifts code efficiency.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, required in then being described below to embodiment The accompanying drawing used is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For one of ordinary skill in the art, without having to pay creative labor, it can also be obtained according to these accompanying drawings Other accompanying drawings.
Figure 1A is the first method schematic flow sheet in first method of the embodiment of the present invention;
Figure 1A -1 is picture block structure schematic diagram of the embodiment of the present invention;
Figure 1A -2 is prediction block structural representation of the embodiment of the present invention;
Figure 1A -3 is transform block structural representation of the embodiment of the present invention;
Figure 1A -4 is that the embodiment of the present invention may carry out DBF border structure schematic diagram;
Figure 1A -5 is the second method schematic flow sheet in first method of the embodiment of the present invention;
Figure 1A -6 is the third method flow schematic diagram in first method of the embodiment of the present invention;
Figure 1A -7 is the 4th kind of method flow schematic diagram in first method of the embodiment of the present invention;
Figure 1A -8 is the fifth method schematic flow sheet in first method of the embodiment of the present invention;
Figure 1A -9 is the 6th kind of method flow schematic diagram in first method of the embodiment of the present invention;
Figure 1A -10 is the 7th kind of method flow schematic diagram in first method of the embodiment of the present invention;
Figure 1A -11 is the 8th kind of method flow schematic diagram in first method of the embodiment of the present invention;
Figure 1B is second method schematic flow sheet of the embodiment of the present invention;
Fig. 2 is third method schematic flow sheet of the embodiment of the present invention;
Fig. 3 is fourth method schematic flow sheet of the embodiment of the present invention;
Fig. 4 is pixel gradient schematic diagram of the embodiment of the present invention;
Fig. 5 is first device structural representation of the embodiment of the present invention;
Fig. 6 is second device structural representation of the embodiment of the present invention;
Fig. 7 is 3rd device structural representation of the embodiment of the present invention;
Fig. 8 is the apparatus structure schematic diagram of the embodiment of the present invention the 5th;
Fig. 9 is the apparatus structure schematic diagram of the embodiment of the present invention the 6th;
Figure 10 is the apparatus structure schematic diagram of the embodiment of the present invention the 7th;
Figure 11 is the device structure schematic diagram of the embodiment of the present invention first;
Figure 12 is the device structure schematic diagram of the embodiment of the present invention second;
Figure 13 is device structure schematic diagram of the embodiment of the present invention by taking mobile phone as an example.
Embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, the present invention will then be made with reference to accompanying drawing below Further it is described in detail, it is clear that described embodiment is only embodiment of the invention a part of, rather than whole implementation Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made All other embodiment, belongs to the scope of protection of the invention.
Inventor is analyzed DBF scheme first, is referred to as follows:
Scalable video SHVC based on HEVC removes the blocking effect of enhancement layer reconstruction image using DBF, to improve Its subjective and objective quality.DBF is a kind of pixel filter technology carried out respectively on the luminance component and chromatic component of reconstruction image, Each image block in reconstruction image is carried out successively, first vertical boundary is filtered, then horizontal boundary is filtered.To one Image block, which carries out DBF operations, includes following three step:
(1)Determine DBF possibility filtering boundary.Above-mentioned determination DBF filtering boundary is pre- according to what is included in image block Survey elementary boundary and converter unit border determines to carry out the border of DBF filtering.
Above-mentioned predicting unit refers to that may be divided into multiple units during an image block coding is predicted respectively, each The border that unit is referred to as between predicting unit, neighboring prediction unit is just called predicting unit border.Above-mentioned converter unit refers to image The unit that has been categorized into of residual error after block is predicted enters line translation, and each unit is referred to as converter unit, adjacent converter unit Between border be just called converter unit border.Predicting unit border or converter unit border are exactly DBF possibility filtering boundary.
(2)Determine BS(Boundary Strength, boundary intensity).Above-mentioned determination BS is exactly to encode mould according to image block Formula, movable information and quantization parameter carry out assignment to BS values.
Above-mentioned determination BS is exactly to determine boundary intensity according to image block coding mode, movable information and quantization parameter.On State 0,1 and 2 three value of BS values in the lofty degree in border that BS is used to characterize DBF filtering boundaries, SHVC.Wherein coding mode bag Include Intra(Frame in)Pattern, BaseLayer(Primary layer)Pattern and Inter(Interframe)Pattern.Movable information mainly includes image Prediction direction of the block when time-domain is predicted, the index and motion vector of reference picture.
The step of above flow(2)In, BS assignment is implemented as follows:For convenience, it is assumed that P is possible filter The left side on ripple border(Top)Image block, Q is the right of possible filtering boundary(Below)Image block.BS mistake is typically determined at present Cheng Wei:If P or Q coding mode is Intra patterns either BaseLayer pattern, assignment BS=2;Else if P Or Q has non-zero quantized coefficients(non-0coeffs), then assignment BS=1;Else if P is different with Q reference frame (differentref), then assignment BS=1;Else if the absolute difference of the horizontal component of P and Q motion vector be more than etc. It is more than or equal to 4 in the absolute difference of 4 or vertical component, then assignment BS=1;Otherwise assignment BS=0.
(3)Filtering strength is adjudicated.Above-mentioned filtering strength judgement is exactly according to BS and QP(QuantizationParameter, Quantization parameter)Determine whether the border is filtered, if filtering, it is determined that being filtered using strong wave filter or weak wave filter Ripple.
Parameter beta and t are also defined in DBFc, the judgement of intensity is filtered, specifically includes whether the border is filtered Ripple, if filtering is using strong filtering or weak filtering.Wherein β and tcIt is that one group be derived by according to BS and QP is specifically digital. Graded according to pixel on border general at present and with β and tcRelation decide whether to be filtered, determine filtering when The strong and weak intensity of filtering.Corresponding wave filter three rows pixel each to boundaries on either side is called to be filtered place after filtering strength determination Reason, reaches the purpose of smooth boundary.
Based on above description, the selection and encoding and decoding complexity of the sizes of BS values for filtering strength have important shadow Ring.Intra patterns are predicted using current prediction unit spatial neighborhood pixels, and BaseLayer patterns on Primary layer using adopting Same location drawing picture after sample is predicted to predicting unit, and Inter patterns refer to using the image in time-domain to predicting unit It is predicted.At present it is determined that then divide BaseLayer patterns and Intra patterns into a class during BS values, make BaseLayer Mode image block is identical with Intra mode image block filtering strengths, and boundary intensity BS is set as 2 without exception, i.e.,:Filtering strength phase Together, cause BS settings not accurate enough, and then influence enhancement layer coding efficiency.
Analyzed based on more than, method is determined the embodiments of the invention provide a kind of boundary intensity BS, as shown in Figure 1A, bag Include:
101A:Determine block-eliminating effect filtering DBF possibility filtering boundary;
Determining the concrete scheme that image block carries out DBF possibility border can be:
The prediction block in image block is obtained, above-mentioned prediction block refers to that above-mentioned image block is divided into one or more image list Member;Square image block of the image block as shown in Figure 1A -1, the two horizontal rectangle prediction blocks of prediction block as shown in fig. 1 a-2;Figure It is that image block is divided into two prediction blocks shown in 1A-2, image block, which is divided into how many prediction blocks, arbitrarily to be set, this hair Bright embodiment is refused to limit;
Obtain the transform block in image block, above-mentioned transform block refer to be divided into the corresponding residual unit of image block one or Multiple smaller residual units, above-mentioned residual unit refers to all prediction blocks according to the residual error after different coding model prediction;Become Change the rectangle transform block of two longitudinal directions of block as illustrated in figures 1 a-3;It is that image block is divided into two transform blocks shown in Figure 1A -3, Transform block, which is divided into how many prediction blocks, arbitrarily to be set, and the embodiment of the present invention is refused to limit;
All borders of above-mentioned prediction block and above-mentioned transform block, which just constitute the image block, may carry out DBF border.Please Compares figure 1A-2 and Figure 1A -3, the dotted portion as shown in Figure 1A -4 are that possible carry out DBF border, Figure 1A -2 and Figure 1A -3 All borders, as above-mentioned dotted portion.
102A:Obtain the coding mode and coding information of the adjacent image block in above-mentioned possible filtering boundary both sides;
Above-mentioned coding information includes at least one of following information or a variety of combinations, specific as follows:Mark is above-mentioned Whether adjacent image block have the quantization parameter mark of quantization parameter, the reference picture of above-mentioned adjacent image block, above-mentioned adjacent Image block motion vector.
103A:When the coding mode of above-mentioned adjacent image block is not frame in Intra patterns, and above-mentioned adjacent image At least include a Primary layer BaseLayer pattern in the coding mode of block, then will be above-mentioned possible according to above-mentioned coding information The boundary intensity BS of filtering boundary is set to different boundary strength values.
The embodiment of the present invention, when the coding mode of adjacent image block is not Intra patterns, and adjacent image block At least include BaseLayer pattern in coding mode, then will likely the boundary intensity BS of filtering boundary be set to difference Boundary strength value, BS setting is no longer all arranged to same intensity, makes BS setting more reasonable, and then lifts coding effect Rate.Different boundary strength values includes the first boundary intensity and the second boundary intensity, above-mentioned the second boundary intensity in above-mentioned 103A More than the first above-mentioned boundary intensity;First boundary intensity can be 0, and the result that boundary intensity is set into 0 will be that filtering is strong Spend for 0, namely:Do not filter;It is relatively low that first boundary intensity can also be close to 0, i.e. filtering strength.Specific first border is strong The value of degree can be set according to factors such as the demands and equipment disposal ability to filtering strength, specific this hair of arranges value Bright embodiment is not construed as limiting.
Further, above-mentioned coding information includes the quantization parameter for marking above-mentioned adjacent image block whether to have quantization parameter Mark;As shown in Figure 1A -5, the scheme of the present embodiment is specific as follows:
101A is being performed, it is corresponding after the possibility filtering boundary for determining block-eliminating effect filtering DBF, in above-mentioned 102A, obtain The coding information of the adjacent image block in above-mentioned possible filtering boundary both sides is taken to specifically include:
102A-1:Obtain whether the adjacent image block in above-mentioned possible filtering boundary both sides has the quantization parameter mark of quantization parameter Know;
Above-mentioned different boundary strength value includes the first boundary strength value and the second boundary intensity level, and above-mentioned the second boundary is strong Angle value is more than the first above-mentioned boundary strength value, correspondence, in above-mentioned 103A, according to above-mentioned coding information by above-mentioned possible filtering The boundary intensity BS on border is set to different boundary strength values and specifically included:
103A-1:If the coding mode of above-mentioned adjacent image block is BaseLayer patterns and quantization parameter mark refers to Show the no quantization coefficient of above-mentioned adjacent image block, then the boundary intensity BS of above-mentioned possible filtering boundary is set to the first side Boundary's intensity.
In above scheme, BS setting is not only no longer all arranged to same intensity, also further contemplates quantization parameter The influence set to BS, in the coding mode of adjacent image block be BaseLayer patterns and quantization parameter mark is indicated State adjacent image block no quantization coefficient when, BS is set to the first less boundary intensity of filtering strength, BS values are set Put more rationally, the calculating that codec especially decoder can be reduced on the premise of filter effect is not influenceed is complicated Degree, improves code efficiency.
Further, above-mentioned coding information includes the quantization parameter for marking above-mentioned adjacent image block whether to have quantization parameter The motion vector of mark, the reference picture of above-mentioned adjacent image block, and above-mentioned adjacent image block;As shown in Figure 1A -6, The scheme of the present embodiment is specific as follows:
101A is being performed, after the possibility filtering boundary for determining block-eliminating effect filtering DBF, correspondence, above-mentioned 102A is obtained The coding information of the adjacent image block of above-mentioned possible filtering boundary both sides is specifically included:
102A-2:Coding mode is set to be the reference picture of the above-mentioned image block of BaseLayer patterns according to preset rules And the motion vector by above-mentioned coding mode for the above-mentioned image block of BaseLayer patterns is arranged with respect in reference picture With block of locations parameter corresponding when static;
Obtain the quantization parameter mark of the adjacent image block in above-mentioned possible filtering boundary both sides, and above-mentioned adjacent image The reference picture of block, and above-mentioned adjacent image block motion vector;
In correspondence, above-mentioned 103A, the boundary intensity BS of above-mentioned possible filtering boundary is set according to above-mentioned coding information Specifically included for different boundary strength values:
103A-2:If above-mentioned quantization parameter mark indicates the above-mentioned no quantization coefficient of adjacent image block, and above-mentioned phase Adjacent image block has identical reference picture, and the difference of the motion vector of above-mentioned adjacent image block is less than default threshold Value, then be set to the first boundary intensity by the boundary intensity BS of above-mentioned possible filtering boundary.
In above scheme, BS setting is not only no longer all arranged to same intensity, also further contemplate quantization parameter, The influence that the difference of the motion vector of reference picture and adjacent image block is set to BS, is indicated above-mentioned in quantization parameter mark The no quantization coefficient of adjacent image block, and above-mentioned adjacent image block has identical reference picture, and it is above-mentioned adjacent Image block motion vector difference be less than predetermined threshold value, then the boundary intensity BS of above-mentioned possible filtering boundary is set to First boundary intensity, sets BS values more reasonable, codec can be reduced on the premise of filter effect is not influenceed Especially the computation complexity of decoder, improves code efficiency.
Further, as shown in Figure 1A -7,101A is being performed, block-eliminating effect filtering DBF possibility filtering boundary is determined, And 102A-2, according to preset rules set coding mode for BaseLayer patterns above-mentioned image block reference picture and Motion vector by above-mentioned coding mode for the above-mentioned image block of BaseLayer patterns is arranged with respect to same position in reference picture Put block it is static when corresponding parameter;The quantization parameter mark of the adjacent image block in above-mentioned possible filtering boundary both sides is obtained, with And after the reference picture of above-mentioned adjacent image block, and the motion vector of above-mentioned adjacent image block, in above-mentioned 103A, root According in above-mentioned 103A, the boundary intensity BS of above-mentioned possible filtering boundary is set to different boundary strength values also by coding information Including:
103A-3:If above-mentioned quantization parameter mark indicates at least one above-mentioned image block in above-mentioned adjacent image block There is quantization parameter, or above-mentioned adjacent image block has different reference pictures, or above-mentioned adjacent image block motion vector Difference be more than or equal to predetermined threshold value, then the boundary intensity BS of above-mentioned possible filtering boundary is set to the second boundary strong Degree.
Above scheme gives the facilities of the second boundary intensity on the basis of previous embodiment, sets BS values More rationally, the calculating that codec especially decoder can be reduced on the premise of filter effect is not influenceed is complicated Degree, improves code efficiency.
Further, above-mentioned coding information includes the quantization parameter for marking above-mentioned adjacent image block whether to have quantization parameter Mark;As shown in Figure 1A -8, the scheme of the present embodiment is specific as follows:
101A is being performed, after the possibility filtering boundary for determining block-eliminating effect filtering DBF, correspondence, above-mentioned 102A is obtained The coding information of the adjacent image block of above-mentioned possible filtering boundary both sides is specifically included:
102A-4:Obtain whether the adjacent image block in above-mentioned possible filtering boundary both sides has the quantization parameter mark of quantization parameter Know;
Above-mentioned different boundary strength value includes the first boundary strength value and the second boundary intensity level, and above-mentioned the second boundary is strong Angle value is more than the first above-mentioned boundary strength value;Correspondence, in above-mentioned 103A, according to above-mentioned coding information by above-mentioned possible filtering The boundary intensity BS on border is set to different boundary strength values and specifically included:
103A-4:If above-mentioned quantization parameter mark indicates there there is at least one above-mentioned image block in above-mentioned adjacent image block Quantization parameter, then be set to the second boundary intensity by the boundary intensity BS of above-mentioned possible filtering boundary.
In above scheme, BS setting is not only no longer all arranged to same intensity, also further contemplates quantization parameter The influence set to BS, at least one above-mentioned image block has quantization in quantization parameter mark indicates above-mentioned adjacent image block Coefficient, then be set to the second boundary intensity by the boundary intensity BS of above-mentioned possible filtering boundary, sets BS values more reasonable, The computation complexity of codec especially decoder can be reduced on the premise of filter effect is not influenceed, volume is improved Code efficiency.
Further, above-mentioned coding information also includes the reference picture of above-mentioned adjacent image block;As shown in Figure 1A -9, this The scheme of embodiment is specific as follows:
101A is being performed, after the possibility filtering boundary for determining block-eliminating effect filtering DBF, correspondence, above-mentioned 102A, except Perform and obtain whether the adjacent image block in above-mentioned possible filtering boundary both sides has the quantization parameter mark of quantization parameter in 102A-4 In addition, obtaining the coding information of the adjacent image block of above-mentioned possible filtering boundary both sides also includes:
102A-5:Coding mode is set to be the reference picture of the above-mentioned image block of BaseLayer patterns according to preset rules; Obtain the reference picture of the adjacent image block of above-mentioned possible filtering boundary both sides;
In correspondence, above-mentioned 103A, the boundary intensity BS of above-mentioned possible filtering boundary is set according to above-mentioned coding information Also include for different boundary strength values:
103A-5:If above-mentioned quantization parameter mark indicates the above-mentioned no quantization coefficient of adjacent image block, and above-mentioned phase Adjacent image block has different reference pictures, then the boundary intensity BS of above-mentioned possible filtering boundary is set into the second boundary Intensity.
In above scheme, BS setting is not only no longer all arranged to same intensity, also further contemplates quantization parameter And the influence that the reference picture of adjacent image block is set to BS, indicate that above-mentioned adjacent image block is equal in quantization parameter mark No quantization coefficient, and above-mentioned adjacent image block has different reference pictures, then by the side of above-mentioned possible filtering boundary Boundary intensity BS is set to the second boundary intensity, sets BS values more reasonable, can be dropped on the premise of filter effect is not influenceed The computation complexity of the low codec of sinking especially decoder, improves code efficiency.
Further, above-mentioned coding information also includes the motion vector of above-mentioned adjacent image block;As shown in Figure 1A -10, The scheme of the present embodiment is specific as follows:
101A is being performed, after the possibility filtering boundary for determining block-eliminating effect filtering DBF, correspondence, above-mentioned 102A, except Perform and obtain whether the adjacent image block in above-mentioned possible filtering boundary both sides has the quantization parameter mark of quantization parameter in 102A-4, And in 102A-5, set coding mode to be the reference picture of the above-mentioned image block of BaseLayer patterns according to preset rules;Obtain Take beyond the reference picture of adjacent image block of above-mentioned possible filtering boundary both sides, obtain above-mentioned possible filtering boundary both sides The coding information of adjacent image block also includes:
102A-6:Motion vector by above-mentioned coding mode for the above-mentioned image block of BaseLayer patterns is set to relatively With the parameter that block of locations is corresponding when static in reference picture;Obtain the adjacent image block of above-mentioned possible filtering boundary both sides Motion vector;
In correspondence, above-mentioned 103A, the boundary intensity BS of above-mentioned possible filtering boundary is set according to above-mentioned coding information Also include for different boundary strength values:
103A-6:If above-mentioned quantization parameter mark indicates the above-mentioned no quantization coefficient of adjacent image block, and above-mentioned phase Adjacent image block has the difference between identical reference picture, and above-mentioned adjacent image block motion vector to be more than or equal to Predetermined threshold value, then be set to the second boundary intensity by the boundary intensity BS of above-mentioned possible filtering boundary.
In above scheme, BS setting is not only no longer all arranged to same intensity, also further contemplate quantization parameter, The influence that difference between the reference picture of adjacent image block and adjacent image block motion vector is set to BS, is quantifying Coefficient identification indicates the above-mentioned no quantization coefficient of adjacent image block, and above-mentioned adjacent image block has identical with reference to figure Difference between picture, and above-mentioned adjacent image block motion vector is more than or equal to predetermined threshold value, then will be above-mentioned possible The boundary intensity BS of filtering boundary is set to the second boundary intensity, sets BS values more reasonable, filtering can not influenceed to imitate The computation complexity of reduction reduction codec especially decoder, improves code efficiency on the premise of fruit.
Further, as shown in Figure 1A -11, the scheme of the present embodiment is specific as follows:
101A is being performed, block-eliminating effect filtering DBF possibility filtering boundary, correspondence 102A, except performing 102A- is determined The quantization parameter whether adjacent image block in above-mentioned possible filtering boundary both sides is obtained in 4 quantization parameter is identified, in 102A-5, Coding mode is set to be the reference picture of the above-mentioned image block of BaseLayer patterns according to preset rules;Obtain above-mentioned possible filter It is BaseLayer by above-mentioned coding mode beyond the reference picture of the adjacent image block of ripple boundaries on either side, and in 102A-6 The motion vector of the above-mentioned image block of pattern is arranged with respect in reference picture with the parameter that block of locations is corresponding when static;Obtain Take beyond the motion vector of adjacent image block of above-mentioned possible filtering boundary both sides, in the above-mentioned 103A of correspondence, according to above-mentioned volume The boundary intensity BS of above-mentioned possible filtering boundary is set to different boundary strength values by code information also to be included:
103A-7:If above-mentioned quantization parameter mark indicates no quantization coefficient in above-mentioned adjacent image block, and above-mentioned Adjacent image block has the difference between identical reference picture, and above-mentioned adjacent image block motion vector to be less than default threshold Value, then be set to the first boundary intensity by the boundary intensity BS of above-mentioned possible filtering boundary.
How above scheme on the basis of previous embodiment sets this relatively low filtering of the first boundary intensity if giving The scheme of intensity, sets BS values more reasonable, codec can be reduced on the premise of filter effect is not influenceed outstanding It is the computation complexity of decoder, improves code efficiency.
The embodiment of the present invention additionally provides a kind of filtering method of deblocking effect, as shown in Figure 1B, including:
101B:Determine block-eliminating effect filtering DBF possibility filtering boundary;
102B:Obtain the coding mode and coding information of the adjacent image block in above-mentioned possible filtering boundary both sides;
Above-mentioned coding information includes at least one of following information or a variety of combinations, specific as follows:Mark is above-mentioned Whether adjacent image block have the quantization parameter mark of quantization parameter, the reference picture of above-mentioned adjacent image block, above-mentioned adjacent Image block motion vector.
103B:When the coding mode of above-mentioned adjacent image block is not frame in Intra patterns, and above-mentioned adjacent image At least include a Primary layer BaseLayer pattern in the coding mode of block, then will be above-mentioned possible according to above-mentioned coding information The boundary intensity BS of filtering boundary is set to different boundary strength values.
Above-mentioned different boundary strength value can be the first boundary strength value and the second boundary intensity level, wherein, above-mentioned Two boundary strength values can be more than the first above-mentioned boundary strength value;Above-mentioned first boundary strength value can be 0, by boundary intensity The result that value is set to 0 will be that filtering strength is 0, namely:Do not filter;First boundary strength value can also be close to 0, i.e., Filtering strength is relatively low.
104B:It is used to obtaining first threshold and Second Threshold using the BS of above-mentioned determination as reference factor, above-mentioned the One threshold value is used to determine whether to be filtered above-mentioned possible filtering boundary, and above-mentioned Second Threshold is used to determine to needing to carry out The filtering strength that the above-mentioned possible filtering boundary of filtering is filtered;
105B:According to the pixel gradient in preset range in the adjacent image block in above-mentioned possible filtering boundary both sides and upper First threshold is stated to determine the need for being filtered above-mentioned possible filtering boundary;
In above-mentioned 105B, adjacent preset range can be current image block or so three, and first threshold and Second Threshold can To be β and tc, put up with and be described in detail as example in subsequent embodiment.
106B:If it is determined that needing to be filtered, then according to preset range in the adjacent image block in possible filtering boundary both sides Interior pixel gradient and the relation of Second Threshold determine to perform the wave filter of filtering, and are performed using institute's determination wave filter to above-mentioned The above-mentioned possible filtering boundary being filtered is needed to be filtered processing.
The embodiment of the present invention, when the coding mode of adjacent image block is not Intra patterns, and adjacent image block At least include BaseLayer pattern in coding mode, then will likely the boundary intensity BS of filtering boundary be set to difference Boundary strength value, BS setting is no longer all arranged to same intensity, makes BS setting more reasonable, and then lifts coding effect Rate.
Further, above-mentioned coding information includes the quantization parameter for marking above-mentioned adjacent image block whether to have quantization parameter Mark;
Correspondence, the coding information of the adjacent image block in the above-mentioned above-mentioned possible filtering boundary both sides of acquisition is specifically included:
The quantization parameter whether obtain the adjacent image block in above-mentioned possible filtering boundary both sides has quantization parameter is identified;
Above-mentioned different boundary strength value includes the first boundary strength value and the second boundary intensity level, and above-mentioned the second boundary is strong Angle value is more than the first above-mentioned boundary strength value;Correspondence, it is above-mentioned according to above-mentioned coding information by above-mentioned possible filtering boundary Boundary intensity BS is set to different boundary strength values and specifically included:
If the coding mode of above-mentioned adjacent image block is BaseLayer patterns and quantization parameter mark indicates above-mentioned phase The adjacent no quantization coefficient of image block, then be set to the first boundary intensity by the boundary intensity BS of above-mentioned possible filtering boundary.
In above scheme, BS setting is not only no longer all arranged to same intensity, also further contemplates quantization parameter The influence set to BS, in the coding mode of adjacent image block be BaseLayer patterns and quantization parameter mark is indicated State adjacent image block no quantization coefficient when, BS is set to the first less boundary intensity of filtering strength, BS values are set Put more rationally, the calculating that codec especially decoder can be reduced on the premise of filter effect is not influenceed is complicated Degree, improves code efficiency.
Further, above-mentioned coding information includes the quantization parameter for marking above-mentioned adjacent image block whether to have quantization parameter The motion vector of mark, the reference picture of above-mentioned adjacent image block, and above-mentioned adjacent image block;
Correspondence, the coding information of the adjacent image block of the above-mentioned above-mentioned possible filtering boundary both sides of acquisition also includes:
According to preset rules set coding mode for BaseLayer patterns above-mentioned image block reference picture and will be upper The motion vector for stating the above-mentioned image block that coding mode is BaseLayer patterns is arranged with respect to same block of locations in reference picture Corresponding parameter when static;
Obtain the quantization parameter mark of the adjacent image block in above-mentioned possible filtering boundary both sides, and above-mentioned adjacent image The reference picture of block, and above-mentioned adjacent image block motion vector;
Above-mentioned different boundary strength value includes the first boundary strength value and the second boundary intensity level, and above-mentioned the second boundary is strong Angle value is more than the first above-mentioned boundary strength value;Correspondence, it is above-mentioned according to above-mentioned coding information by above-mentioned possible filtering boundary Boundary intensity BS is set to different boundary strength values and specifically included:
If above-mentioned quantization parameter mark indicates the above-mentioned no quantization coefficient of adjacent image block, and above-mentioned adjacent image Block has identical reference picture, and the difference of the motion vector of above-mentioned adjacent image block is less than predetermined threshold value, then will be upper The boundary intensity BS for stating possible filtering boundary is set to the first boundary intensity.
Further, it is above-mentioned to be set to the boundary intensity BS of above-mentioned possible filtering boundary not according to above-mentioned coding information Same boundary strength value is specifically included:
If above-mentioned quantization parameter mark indicates that at least one above-mentioned image block has quantization in above-mentioned adjacent image block Coefficient, or above-mentioned adjacent image block have a different reference pictures, or above-mentioned adjacent image block motion vector difference More than or equal to predetermined threshold value, then the boundary intensity BS of above-mentioned possible filtering boundary is set to the second boundary intensity.
Further, above-mentioned coding information includes the quantization parameter for marking above-mentioned adjacent image block whether to have quantization parameter Mark;
Correspondence, the coding information of the adjacent image block of the above-mentioned above-mentioned possible filtering boundary both sides of acquisition is specifically included:
The quantization parameter whether obtain the adjacent image block in above-mentioned possible filtering boundary both sides has quantization parameter is identified;
Above-mentioned different boundary strength value includes the first boundary strength value and the second boundary intensity level, and above-mentioned the second boundary is strong Angle value is more than the first above-mentioned boundary strength value;Correspondence, it is above-mentioned according to above-mentioned coding information by above-mentioned possible filtering boundary Boundary intensity BS is set to different boundary strength values and specifically included:
If above-mentioned quantization parameter mark indicates that at least one above-mentioned image block has quantization system in above-mentioned adjacent image block Number, then be set to the second boundary intensity by the boundary intensity BS of above-mentioned possible filtering boundary.
Further, above-mentioned coding information also includes the reference picture of above-mentioned adjacent image block:
Correspondence, the coding information of the adjacent image block of the above-mentioned above-mentioned possible filtering boundary both sides of acquisition is specifically included:
Coding mode is set to be the reference picture of the above-mentioned image block of BaseLayer patterns according to preset rules;In acquisition State the reference picture of the adjacent image block of possible filtering boundary both sides;
Correspondence, it is above-mentioned the boundary intensity BS of above-mentioned possible filtering boundary is set to according to above-mentioned coding information it is different Boundary strength value is specifically included:
If above-mentioned quantization parameter mark indicates the above-mentioned no quantization coefficient of adjacent image block, and above-mentioned adjacent image Block has different reference pictures, then the boundary intensity BS of above-mentioned possible filtering boundary is set into the second boundary intensity.
Further, above-mentioned coding information also includes the motion vector of above-mentioned adjacent image block;
Correspondence, the coding information of the adjacent image block of the above-mentioned above-mentioned possible filtering boundary both sides of acquisition is specifically included:
Motion vector by above-mentioned coding mode for the above-mentioned image block of BaseLayer patterns is arranged with respect to reference to figure With block of locations parameter corresponding when static as in;Obtain above-mentioned possible filtering boundary both sides adjacent image block motion to Amount;
Correspondence, it is above-mentioned the boundary intensity BS of above-mentioned possible filtering boundary is set to according to above-mentioned coding information it is different Boundary strength value also includes:
If above-mentioned quantization parameter mark indicates the above-mentioned no quantization coefficient of adjacent image block, and above-mentioned adjacent image Block has the difference between identical reference picture, and above-mentioned adjacent image block motion vector to be more than or equal to default threshold Value, then be set to the second boundary intensity by the boundary intensity BS of above-mentioned possible filtering boundary.
Further, it is above-mentioned to be set to the boundary intensity BS of above-mentioned possible filtering boundary not according to above-mentioned coding information Same boundary strength value also includes:
If above-mentioned quantization parameter mark indicates no quantization coefficient in above-mentioned adjacent image block, and above-mentioned adjacent figure There is the difference between identical reference picture, and above-mentioned adjacent image block motion vector to be less than predetermined threshold value as block, then will The boundary intensity BS of above-mentioned possible filtering boundary is set to the first boundary intensity.
Subsequent embodiment will in more detail be illustrated by taking HEVC related protocol scenes as an example to above scheme.
The embodiment of the present invention is just the same in coding side and decoding end implementation process, is not related to and code flow structure is repaiied Change, if describing the concrete methods of realizing of technology of the embodiment of the present invention from decoding end.Scheme of the embodiment of the present invention is:In decoding end solution Code carries out DBF after going out a perfect reconstruction image.Above-mentioned reconstruction image is made up of multiple reconstruction image blocks(It will not cause mixed In the case of confusing, reconstruction image block is hereafter referred to as image block).Image block is according to from left to right in reconstruction image, from top to bottom DBF operations are carried out successively, when all image blocks have performed DBF operations, then also just complete the DBF behaviour to reconstruction image Make.
Following examples, will respectively:Determine DBF possibility filtering boundary, determine that BS values, filtering strength adjudicate three sides Face is illustrated as follows:
First, DBF possibility filtering boundary is determined:
Determining the concrete scheme that image block carries out DBF possibility border can be:
Prediction block in image block is obtained, above-mentioned prediction block refers to that an image block is divided into one or more image list Member;Square image block of the image block as shown in Figure 1A -1, the two horizontal rectangle prediction blocks of prediction block as shown in fig. 1 a-2;Figure It is that image block is divided into two prediction blocks shown in 1A-2, image block, which is divided into how many prediction blocks, arbitrarily to be set, this hair Bright embodiment is refused to limit;
Transform block in image block is obtained, above-mentioned transform block refers to be divided into one or many to the corresponding residual unit of image block Individual smaller residual unit, above-mentioned residual unit refers to all prediction blocks according to the residual error after different coding model prediction.Conversion The rectangle transform block of two longitudinal directions of block as illustrated in figures 1 a-3;It is that image block is divided into two transform blocks shown in Figure 1A -3, becomes Changing block and being divided into how many prediction blocks arbitrarily to be set, and the embodiment of the present invention is refused to limit;
All borders of above-mentioned prediction block and above-mentioned transform block, which just constitute the image block, may carry out DBF border.Please Compares figure 1A-2 and Figure 1A -3, the dotted portion as shown in Figure 1A -4 are that possible carry out DBF border, Figure 1A -2 and Figure 1A -3 All borders, as above-mentioned dotted portion.
2nd, BS values are determined:
BS values are determined the embodiments of the invention provide two kinds of alternative plans, Fig. 2 and Fig. 3 is please referred to respectively.
Alternative A, refers to Fig. 2:
For the sake of for convenience of description, it is assumed that the image block on the vertical boundary left side is P, and the image block on the right is Q or horizontal sides The following image block in boundary is P, and the image block of top is Q;So, in DBF, boundary intensity BS represents to be in the P on border both sides With Q lofty degree, the value is bigger, and the drop for representing border pixel values is bigger.BS is used to judge whether border filters and filter When filter strength power, therefore, the determination of BS values is a very important link in DBF.The volume of border both sides image block Code information can reflect the size of border drop.Above-mentioned coding information includes correspondence Primary layer(Lower level)The coding of prediction block Pattern information, can also include quantization parameter mark, can also include reference image information and motion vector.Above-mentioned quantization system Number mark indicates image block whether there is quantization parameter.Above-mentioned reference image information includes reference picture prediction direction and reference picture rope Draw.Above-mentioned reference picture prediction direction can be divided into forward prediction, back forecast and bi-directional predicted.Above-mentioned reference picture index is indicated Position of the reference picture in reference picture list.Above-mentioned motion vector represents that current block is relative with same block of locations in reference picture Motion excursion, each motion vector include horizontal direction component x and vertical direction component y.It is relative with it is same in reference picture Block of locations, it is referred to as static when the horizontal and vertical component of motion vector is not all offset.The coding mode of above-mentioned image block is exactly Image block in prediction by the way of, including Intra patterns, BaseLayer patterns and Inter patterns.Above-mentioned Intra patterns Refer to the coding mode being predicted using the adjacent pixel of present image block space.Above-mentioned BaseLayer patterns refer to utilize Primary layer(Lower level)The coding mode that same location drawing picture after up-sampling is predicted.When above-mentioned Inter patterns refer to utilize Between the coding mode that is predicted of image on domain.
Compared with HEVC, BaseLayer patterns are added in SHVC enhancement layer, the pattern is by Primary layer(It is relatively low Layer)Picture up-sampling after, be predicted using the elementary area of same position as reference unit, Inter patterns are with the time The elementary area in domain is predicted as reference unit.Compared with the reference unit of Intra pattern formations, BaseLayer patterns Nature collection image is more nearly with the reference picture of Inter patterns, with stronger predictive ability.Experiment is proved The residual error of BaseLayer patterns is more efficient according to the residual coding of Inter patterns.In a word, from the generation type of reference unit And substantial amounts of experimental data is drawn, the predictive ability of BaseLayer patterns is close to Inter patterns, and therefore, the present invention is implemented Example divides BaseLayer patterns and Inter patterns into class processing in BS decision processes.If in addition, boundaries on either side image The pattern of block is all BaseLayer patterns, and both quantization parameters are all 0(I.e.:There is no quantization parameter), represent boundaries on either side Image block prediction both be from Primary layer, again without quantization parameter after prediction, with larger prediction similitude, be not likely to produce side Boundary's effect, therefore, in this case, the embodiment of the present invention is without filtering.DBF process tool is described by taking image block as an example Body, referring to Fig. 2, as follows:
This part is the introduction on carrying out BS calculating to the border that may be filtered.For the sake of description is convenient, definition is hung down The image block on the straight boundary left side is P, and the image block on the right is Q or the following image block of horizontal boundary is P, the image block of top For Q.BS is set to the first boundary intensity, the second boundary intensity and the 3rd boundary intensity and corresponds to BS=0, BS=1, BS=2 respectively. Without filtering during BS in the present embodiment=0.Above-mentioned coding mode is assigned for the reference picture of the image block of BaseLayer patterns Value refers to the index for specifying the reference picture of BaseLayer mode image blocks, and the present embodiment specifies BaseLayer mode image blocks Reference picture index be present image index.To motion arrow of the above-mentioned coding mode for the image block of BaseLayer patterns Amount is assigned static corresponding parameter and referred to the horizontal motion components of the motion vector of the image block of BaseLayer patterns and vertical fortune The value of dynamic component is all appointed as 0.
First, P and Q coding information, including coding mode are obtained, quantifies mark, reference picture and motion vector.
If the coding mode Intra patterns of at least one in P or Q, BS values are determined according to predictive mode.This feelings Condition shows that P or Q residual error may be larger, entered and larger boundary effect is easily produced after quantization operation, BS is set as 2.
If in the case where P and Q are not Intra pattern-coding patterns, when the coding of at least one in P or Q When pattern is BaseLayer patterns, BS values are determined according to predictive mode, quantization parameter and movable information.Such case show P and Q is BaseLayer patterns or one is BaseLayer patterns, and another is Inter patterns.When P and Q are BaseLayer patterns and when all not having quantization parameter(There is 0 quantization parameter in other words), show that P and Q have similar prediction source And prediction effect, boundary effect is not likely to produce, BS is set as 0.It is BaseLayer patterns when one, another is Inter patterns When, the preceding predictive ability for having addressed BaseLayer patterns and Inter patterns quite and is better than the predictive abilities of Intra patterns, such as Fruit P and Q all without quantization parameter and with identical reference picture and with smaller difference motion vector, then BS be set as 0; Otherwise it is set as 1.The above-mentioned motion vector with smaller difference refers to that the x-component of motion vector and the absolute value of y-component are less than 4。
If P and Q are Inter patterns, BS values are mainly determined according to movable information and quantization parameter.When P or Q have During quantization parameter, it is understood that there may be weaker boundary effect, it is 1 to set BS.Else if when P and Q have different reference pictures, if It is 1 to put BS.Or the x-component of their motion vector(Y-component)Absolute value be more than or equal to 4, set BS be 1.Otherwise, P and Q In all no quantization coefficient, with identical reference picture, in the case of the motion vector with smaller difference, border is not likely to produce Effect, BS is 0.
Following examples just realize that the specific judgement flow that the above judges is described in detail, it is necessary to illustrate, specifically Perform the order judged to be adjustable, might not have in strict accordance with the order shown in Fig. 2, by taking scheme shown in Fig. 2 as an example Body is as follows:
201:Judge P or Q(P or Q)It is frame modeI.e.:Judge whether P or Q has one for Intra patterns), such as Fruit is, into 207, if not, into 202;
202:It is basic layer model to judge P or QI.e.:Judge whether P or Q has one for BaseLayer patterns, if It is, into 203;If not, into 204;
203:It is all basic layer model to judge P&Q, and without quantization parameter(Quantization parameter is 0 in other words)I.e.:Judge Whether P and Q is all BaseLayer patterns and quantization parameter is 0;If it is, into 209;If not, into 210;
204:Judge that P or Q there are non-zero quantized coefficientsI.e.:Judge whether there are non-zero quantized coefficients in P or Q, if it is, Into 208;If not, into 205;
205:Judge that P&Q there are different refI.e.:Judge whether P and Q there are different ref, if it is, into 208;If It is no, into 206;
Above-mentioned ref be for identification image block encode when reference image information(reference frame).Above-mentioned reference The index number of prediction direction of the image information comprising reference picture and reference picture.Above-mentioned reference picture direction include it is preceding to With reference to, backward reference and bi-directionally referenced.Above-mentioned reference picture index refers to position of the reference picture in reference picture list.
206:Judge | MV_Ph-MV_Qh | >=4or | MV_Pv-MV_Qv | whether >=4 set upI.e.:Judge P and Q motion The x-component of vector(Or y-component)Absolute value whether be more than or equal to 4;If it is, into 208;If not, into 209;
The step 206 is to determine whether adjacent image block relative motion amplitude is more than or equal in a predetermined direction to make a reservation for Value;Wherein, adjacent image block is P and Q;Predetermined direction is x-axis direction, i.e. horizontal direction, or y-axis direction, i.e. vertical direction; Predetermined value is set to 4;It should be noted that predetermined value can also be other values, for example close to 4 value or other values, skill Art personnel can be finely adjusted according to the actual requirements, and the embodiment of the present invention is refused to limit for its specific value.
207:Assignment operation:BS=2, then terminate.
208:Assignment operation:BS=1, then terminates.
209:Assignment operation:BS=0, then terminates.
210:By ref and MV(Motion Vector, motion vector)Default value is assigned, subsequently into 211;Wherein ref is rear It will be described in more detail in continuous embodiment.
211:Confirm whether P or Q there are non-zero quantized coefficients, whether P&Q has different ref and P and Q motion vector phases Seemingly;If it is, into 209, otherwise into 208.
Alternative B, refers to Fig. 3:
Compared with HEVC, BaseLayer patterns are added in SHVC enhancement layer, the pattern is by Primary layer(It is relatively low Layer)Picture up-sampling after, be predicted using the image block of same position as reference unit, Inter patterns are with time-domain Image block be predicted.Compared with the reference unit of Intra pattern formations, the reference of BaseLayer patterns and Inter patterns Image is more nearly nature collection image, with stronger predictive ability.Experiment prove BaseLayer patterns residual error according to The residual coding of Inter patterns is more efficient.In a word, drawn from the generation type and substantial amounts of experimental data of reference unit, The predictive ability of BaseLayer patterns is close to Inter patterns, and therefore, the present invention is in BS decision processes, by BaseLayer moulds Formula and Inter patterns divide class processing into.
Above-mentioned BaseLayer patterns refer to utilize Primary layer(Lower level)Same location drawing picture after up-sampling is believed prediction block Cease the coding mode being predicted.Above-mentioned prediction block information includes correspondence Primary layer(Lower level)The texture information or mould of prediction block Formula information or movable information.
In alternative B, in BS decision-makings the predictive ability and the predictive ability of Inter patterns of BaseLayer patterns It is divided into a class.Specific BS determination process is as follows:
This part is the introduction on carrying out BS calculating to the border that may carry out DBF.For the sake of description is convenient, definition is vertical The image block on the border left side is P, and the image block on the right is Q or the following image block of horizontal boundary is P, and the image block of top is Q.It is set to the first boundary intensity, the second boundary intensity and the 3rd boundary intensity and corresponds to BS=0, BS=1, BS=2 respectively.In this reality Without filtering when applying BS in example=0.It is for the reference picture assignment of image block of BaseLayer patterns to above-mentioned coding mode Refer to the prediction direction and index assignment to the reference picture of BaseLayer mode image blocks.The present embodiment specifies BaseLayer moulds The reference direction of formula image block is first reference frame pair before present image to reference with reference to figure image index to reference to be preceding The index answered.Static corresponding parameter is assigned to above-mentioned coding mode for the motion vector of the image block of BaseLayer patterns to refer to The value of the horizontal motion components of the motion vector of the image block of BaseLayer patterns and vertical motion component is all appointed as 0.Need It is noted that above-mentioned assignment can also be other values, the present invention refuses to limit for its specific value.
First, P and Q coding information, including coding mode are obtained, quantifies mark, reference picture and motion vector.
If the coding mode of at least one in P or Q is Intra patterns, BS values are determined according to predictive mode.It is this Situation shows that P or Q residual error may be larger, entered and larger boundary effect is easily produced after quantization operation, BS is set as 2.
If the coding mode of at least one in P or Q is BaseLayer patterns, it is by coding mode The P or Q of BaseLayer patterns ref and MV(Motion Vector, motion vector)Assign default value.Specific assignment can be with It is:Ref is arranged to preceding first reference frame to reference, and MV horizontal motion components are set to 0, and vertical motion component is arranged to 0。
Next, BS values are determined according to movable information and quantization parameter, it is specific as follows:
When P or Q have quantization parameter, it is understood that there may be weaker boundary effect, it is 1 to set BS.
Otherwise, if P or Q is predicted according to different reference pictures, border is easily produced, it is 1 to set BS.It is no Then, if the x-component of P and Q motion vector(Y-component)Absolute value be more than or equal to 4, the motion vector in same reference picture Difference is larger, is also easy to produce boundary effect, and it is 1 to set BS.Otherwise, P and Q is in no quantization coefficient, with identical reference picture, In the case of motion vector with smaller difference, boundary effect is not likely to produce, it is 0 to set BS.
Following examples just realize that the specific judgement flow that the above judges is described in detail, it is necessary to illustrate, specifically Perform the order judged to be adjustable, might not have in strict accordance with the order shown in Fig. 3, by taking scheme shown in Fig. 3 as an example Body is as follows:
301:Judge P or Q(P or Q)It is frame modeI.e.:Judge whether P or Q has one for Intra patterns), such as Fruit is, into 307, if not, into 302;
302:It is basic layer model to judge P or QI.e.:Judge whether P or Q has one for BaseLayer patterns, if It is, into 303;If not, into 304;
303:It is the P or Q of BaseLayer patterns ref and MV by coding mode(MotionVector, motion vector) Assign default value.Specifically assignment can be:Ref is arranged to preceding first reference frame to reference, and MV horizontal motion components are set It is set to 0(It is set to 0 and can be used to indicate that do not move or static), vertical motion component is arranged to 0, subsequently into 304;
304:Judge that P or Q there are non-zero quantized coefficientsI.e.:Judge whether there are non-zero quantized coefficients in P or Q, if it is, Into 308;If not, into 305;
305:Judge that P&Q there are different refI.e.:Judge whether P and Q there are different ref, if it is, into 308;If It is no, into 306;
Above-mentioned ref be for identification image block encode when reference image information(referenceframe).Above-mentioned reference Direction of the image information comprising reference picture and reference picture label.Above-mentioned reference picture direction include it is preceding to reference, it is backward With reference to it is bi-directionally referenced.The index of above-mentioned reference picture refers to position of the reference picture in reference picture list.Follow-up real Apply in example, that puts up with how it to obtain is described in detail.
306:Judge | MV_Ph-MV_Qh | >=4or | MV_Pv-MV_Qv | whether >=4 set upI.e.:Judge P and Q motion The x-component of vector(Or y-component)Absolute value whether be more than or equal to 4;If it is, into 308;If not, into 309;
The step 306 is to determine whether adjacent image block relative motion amplitude is more than or equal in a predetermined direction to make a reservation for Value;Wherein, adjacent image block is P and Q;Predetermined direction is x-axis direction, i.e. horizontal direction, or y-axis direction, i.e. vertical direction; Predetermined value is set to 4;It should be noted that predetermined value can also be other values, for example close to 4 value or other values, skill Art personnel can be finely adjusted according to the actual requirements, and the embodiment of the present invention is refused to limit for its specific value.
307:Assignment operation:BS=2, then terminate.
308:Assignment operation:BS=1, then terminates.
309:Assignment operation:BS=0, then terminates.
3rd, filtering strength is adjudicated:
The problem of this programme is solved is to judge the intensity whether border filters and filter, specifically:According to P and Q QP Value, the calculating formula for obtaining average qp value Ag_QP, Ag_QP is as follows:Avg_QP=((QPp+QPq+1)>>1), wherein, " > > " for the right side Shift operator, QPpIt is the quantization parameter of P blocks, QPqIt is the quantization parameter of Q blocks.According to Avg_QP and BS values, read threshold β and threshold Value tc.Wherein, β and tcIt is that one group be derived by according to Avg_QP and BS is specifically digital.As shown in figure 4, in judging process, The pixel gradient dpi in possible filtering boundary both sides dotted line frame is obtained first(i=0,3)With dqi (i=0,3), specific dp0=| P2,0–2*P1,0+P0,0|,dp3=|P2,3–2*P1,3+P0,3|,dq0=|q2,0–2*q1,0+q0,0|,dq3=q2,3–2*q1,3+q0,3|.Root According to dpi, dqi, β and tcRelation decide whether to be filtered, if filtering, determine use strong wave filter or weak wave filter. Call corresponding wave filter three rows pixel each to boundaries on either side to be filtered processing after filtering strength determination, reach smooth boundary Purpose.
In above example, threshold value beta is according to one group of default one group of occurrence of Avg_QP correspondences, different Avg_QP values A β value is corresponded to respectively.The Avg_QP of determination is to the β value that should determine that, according to the β value and the magnitude relationship of boundary pixel gradient, Determine whether P and Q border filters.
In above example, threshold value tcIt is according to one group of default one group of occurrence of Avg_QP correspondences, different Avg_QP Value corresponds to a t respectivelycValue.When BS values are less than or equal to 1, the t to should determine that is obtained according to the Avg_QP determinedcValue, when BS is big When 1, according to what is determined(Avg_QP+2)Value takes the t to should determine thatcValue.It is determined that Avg_QP and BS under obtain corresponding β Value and tcWhen, according to the β value and tcThe magnitude relationship of value and boundary pixel gradient judges that P and Q borders are to use to filter or adopt by force With weak filtering.
The bright coding mode, movable information and quantization parameter for making full use of image block of we of the embodiment of the present invention, is changed The determination process of BS values in DBF.The embodiment of the present invention makes the filtering of BaseLayer mode images block and Inter mode image blocks Intensity is consistent, is set when border both sides image block is all using BaseLayer patterns and no quantization coefficient without filtering, BS values Put more rationally, reduce the computation complexity of codec especially decoder, improve code efficiency.
The embodiments of the invention provide a kind of boundary intensity BS determining devices, as shown in figure 5, including:
First border determining unit 501, the possibility filtering boundary for determining block-eliminating effect filtering DBF;
First information acquiring unit 502, the possibility filtering boundary for obtaining the determination of above-mentioned first border determining unit 501 The coding mode and coding information of the adjacent image block in both sides;
First BS determining units 503, for the volume of the adjacent image block obtained when above-mentioned first information acquiring unit 502 Pattern is not at least to include a Primary layer in frame in Intra patterns, and the coding mode of above-mentioned adjacent image block The boundary intensity BS of above-mentioned possible filtering boundary, then be set to different by BaseLayer patterns according to above-mentioned coding information Boundary strength value.
The embodiment of the present invention, when the coding mode of adjacent image block is not Intra patterns, and adjacent image block At least include BaseLayer pattern in coding mode, then will likely filtering boundary the different borders of boundary intensity BS Intensity level, BS setting is no longer all arranged to same intensity, makes BS setting more reasonable, and then lifts code efficiency.
Further, above-mentioned first information acquiring unit 502, specifically for obtaining above-mentioned first border determining unit 501 The quantization parameter whether adjacent image block in the possibility filtering boundary both sides of determination has quantization parameter is identified;
Above-mentioned different boundary strength value includes the first boundary strength value and the second boundary intensity level, and above-mentioned the second boundary is strong Angle value is more than the first above-mentioned boundary strength value, above-mentioned first BS determining units 503, if specifically for above-mentioned adjacent image block Coding mode is BaseLayer patterns and quantization parameter mark indicates the above-mentioned no quantization coefficient of adjacent image block, then The boundary intensity BS of above-mentioned possible filtering boundary is set to the first boundary intensity.
Further, as shown in fig. 6, above-mentioned first information acquiring unit 502, specifically for obtaining in above-mentioned coding information Including the above-mentioned adjacent image block of the mark quantization parameter that whether has quantization parameter identify, the reference of above-mentioned adjacent image block Image, and above-mentioned adjacent image block motion vector;
Above-mentioned first BS determining units 503 include:First parameter set unit 601, the first parameter acquiring unit 602 and First BS determination subelements 603;
Above-mentioned first parameter set unit 601, for setting coding mode to be BaseLayer patterns according to preset rules The reference picture of above-mentioned image block and above-mentioned coding mode is set for the motion vector of above-mentioned image block of BaseLayer patterns Be set to relative in reference picture with the parameter that block of locations is corresponding when static;
Above-mentioned first parameter acquiring unit 602, the possibility filtering for obtaining the determination of above-mentioned first border determining unit 501 The quantization parameter mark of the adjacent image block of boundaries on either side, and above-mentioned adjacent image block reference picture, and above-mentioned phase The motion vector of adjacent image block;
Above-mentioned different boundary strength value includes the first boundary strength value and the second boundary intensity level, and above-mentioned the second boundary is strong Angle value is more than the first above-mentioned boundary strength value;Above-mentioned first BS determination subelements 603, if referring to for above-mentioned quantization parameter mark Show the no quantization coefficient of above-mentioned adjacent image block, and above-mentioned adjacent image block has an identical reference picture, and on The difference for stating the motion vector of adjacent image block is less than predetermined threshold value, then by the boundary intensity BS of above-mentioned possible filtering boundary It is set to the first boundary intensity.
Further, above-mentioned first BS determination subelements 603, if it is above-mentioned adjacent to be additionally operable to above-mentioned quantization parameter mark instruction Image block at least one above-mentioned image block have a quantization parameter, or above-mentioned adjacent image block have it is different with reference to figure Picture, or the difference of above-mentioned adjacent image block motion vector are more than or equal to predetermined threshold value, then by above-mentioned possible filtering side The boundary intensity BS on boundary is set to the second boundary intensity.
Further, above-mentioned first information acquiring unit 502, is additionally operable to acquisition above-mentioned first border determining unit 501 true The quantization parameter whether adjacent image block in fixed possibility filtering boundary both sides has quantization parameter is identified;
Above-mentioned first BS determining units 503, if indicating above-mentioned adjacent image block specifically for above-mentioned quantization parameter mark In at least one above-mentioned image block have quantization parameter, then the boundary intensity BS of above-mentioned possible filtering boundary is set to second Boundary intensity.
Further, above-mentioned first information acquiring unit 502, specifically for being according to preset rules setting coding mode The reference picture of the above-mentioned image block of BaseLayer patterns;Obtain the adjacent image block of above-mentioned possible filtering boundary both sides Reference picture;
Above-mentioned different boundary strength value includes the first boundary strength value and the second boundary intensity level, and above-mentioned the second boundary is strong Angle value is more than the first above-mentioned boundary strength value;Above-mentioned first BS determining units 503, if being identified specifically for above-mentioned quantization parameter The no quantization coefficient of above-mentioned adjacent image block is indicated, and above-mentioned adjacent image block has different reference pictures, then will The boundary intensity BS of above-mentioned possible filtering boundary is set to the second boundary intensity.
Further, as shown in fig. 7, above-mentioned first information acquiring unit 502, is additionally operable to obtain in above-mentioned coding information and wraps The motion vector of the above-mentioned adjacent image block included;
Above-mentioned first BS determining units 503 include:Second parameter set unit 701, the second parameter acquiring unit 702 and 2nd BS determination subelements 703;
Above-mentioned second parameter set unit 701, for by above-mentioned coding mode be BaseLayer patterns above-mentioned image block Motion vector be arranged with respect in reference picture with the parameter that block of locations is corresponding when static;
Above-mentioned second parameter acquiring unit 702, the adjacent image block for obtaining above-mentioned possible filtering boundary both sides Motion vector;
Above-mentioned 2nd BS determination subelements 703, if indicating that above-mentioned adjacent image block is equal for above-mentioned quantization parameter mark No quantization coefficient, and above-mentioned adjacent image block has identical reference picture, and above-mentioned adjacent image block motion vector Between difference be more than or equal to predetermined threshold value, then the boundary intensity BS of above-mentioned possible filtering boundary is set to the second side Boundary's intensity.
Further, above-mentioned 2nd BS determination subelements 703, if it is above-mentioned adjacent to be additionally operable to above-mentioned quantization parameter mark instruction Image block in no quantization coefficient, and above-mentioned adjacent image block has identical reference picture, and above-mentioned adjacent figure As the difference between block motion vector is less than predetermined threshold value, then the boundary intensity BS of above-mentioned possible filtering boundary is set to the One boundary intensity.
The embodiment of the present invention additionally provides a kind of filter of deblocking effect, as shown in figure 8, including:
The second boundary determining unit 801, the possibility filtering boundary for determining block-eliminating effect filtering DBF;
Second information acquisition unit 802, for obtaining the possibility filtering boundary that above-mentioned the second boundary determining unit 801 is determined The coding mode and coding information of the adjacent image block in both sides;
2nd BS determining units 803, for the volume of the adjacent image block obtained when above-mentioned second information acquisition unit 802 Pattern is not at least to include a Primary layer in frame in Intra patterns, and the coding mode of above-mentioned adjacent image block The boundary intensity BS of above-mentioned possible filtering boundary, then be set to different by BaseLayer patterns according to above-mentioned coding information Boundary strength value;
Threshold value acquiring unit 804, for being used to obtain using the boundary intensity BS values of above-mentioned determination as a reference factor First threshold and Second Threshold, above-mentioned first threshold are used to determine whether to be filtered above-mentioned possible filtering boundary, above-mentioned Second Threshold is used for the filtering strength for determining to be filtered the above-mentioned possible filtering boundary that needs are filtered;
Decision unit 805 is filtered, for the possible filtering boundary two determined according to above-mentioned the second boundary determining unit 801 Pixel gradient and above-mentioned first threshold in the adjacent image block in side in preset range are determined the need for above-mentioned possible filter Ripple border is filtered;
Filter control unit 806, if determining that needs are filtered for filtering decision unit 805, according to possible filter The relation of pixel gradient and Second Threshold in the adjacent image block of ripple boundaries on either side in preset range determines to perform the filter of filtering Ripple device, and the above-mentioned possible filtering boundary being filtered using the execution of determined wave filter to above-mentioned needs is filtered place Reason.
Further, the second information acquisition unit 802, is determined specifically for obtaining above-mentioned the second boundary determining unit 801 The adjacent image block in the possibility filtering boundary both sides quantization parameter that whether has quantization parameter identify;
Above-mentioned different boundary strength value includes the first boundary strength value and the second boundary intensity level, and above-mentioned the second boundary is strong Angle value is more than the first above-mentioned boundary strength value;Above-mentioned 2nd BS determining units 803, if specifically for above-mentioned adjacent image block Coding mode is BaseLayer patterns and quantization parameter mark indicates the above-mentioned no quantization coefficient of adjacent image block, then The boundary intensity BS of above-mentioned possible filtering boundary is set to the first boundary intensity.
Further, as shown in figure 9, above-mentioned second information acquisition unit 802, specifically for obtaining in above-mentioned coding information Including the above-mentioned adjacent image block of the mark quantization parameter that whether has quantization parameter identify, the reference of above-mentioned adjacent image block Image, and above-mentioned adjacent image block motion vector;
Above-mentioned 2nd BS determining units 803 include:3rd parameter set unit 901, the 3rd parameter acquiring unit 902 and 3rd BS determination subelements 903;
Above-mentioned 3rd parameter set unit 901, for setting coding mode to be BaseLayer patterns according to preset rules The reference picture of above-mentioned image block and above-mentioned coding mode is set for the motion vector of above-mentioned image block of BaseLayer patterns Be set to relative in reference picture with the parameter that block of locations is corresponding when static;
Above-mentioned 3rd parameter acquiring unit 902, for obtaining the possibility filtering that above-mentioned the second boundary determining unit 801 is determined The quantization parameter mark of the adjacent image block of boundaries on either side, and above-mentioned adjacent image block reference picture, and above-mentioned phase The motion vector of adjacent image block;
Above-mentioned different boundary strength value includes the first boundary strength value and the second boundary intensity level, and above-mentioned the second boundary is strong Angle value is more than the first above-mentioned boundary strength value;Above-mentioned 3rd BS determination subelements 903, if referring to for above-mentioned quantization parameter mark Show the no quantization coefficient of above-mentioned adjacent image block, and above-mentioned adjacent image block has an identical reference picture, and on The difference for stating the motion vector of adjacent image block is less than predetermined threshold value, then by the boundary intensity BS of above-mentioned possible filtering boundary It is set to the first boundary intensity.
Further, above-mentioned 3rd BS determination subelements 903, if it is above-mentioned adjacent to be additionally operable to above-mentioned quantization parameter mark instruction Image block at least one above-mentioned image block have a quantization parameter, or above-mentioned adjacent image block have it is different with reference to figure Picture, or the difference of above-mentioned adjacent image block motion vector are more than or equal to predetermined threshold value, then by above-mentioned possible filtering side The boundary intensity BS on boundary is set to the second boundary intensity.
Further, above-mentioned second information acquisition unit 802, specifically for obtaining above-mentioned the second boundary determining unit 801 The quantization parameter whether adjacent image block in the possibility filtering boundary both sides of determination has quantization parameter is identified;
Above-mentioned different boundary strength value includes the first boundary strength value and the second boundary intensity level, and above-mentioned the second boundary is strong Angle value is more than the first above-mentioned boundary strength value;Above-mentioned 2nd BS determining units 803, if being identified specifically for above-mentioned quantization parameter Indicate that at least one above-mentioned image block has quantization parameter in above-mentioned adjacent image block, then by above-mentioned possible filtering boundary Boundary intensity BS is set to the second boundary intensity.
Further, above-mentioned second information acquisition unit 802, be additionally operable to according to preset rules set coding mode be The reference picture of the above-mentioned image block of BaseLayer patterns;Obtain the adjacent image block of above-mentioned possible filtering boundary both sides Reference picture;
Above-mentioned 2nd BS determining units 803, if being additionally operable to above-mentioned quantization parameter mark indicates that above-mentioned adjacent image block is equal No quantization coefficient, and above-mentioned adjacent image block has different reference pictures, then by the side of above-mentioned possible filtering boundary Boundary intensity BS is set to the second boundary intensity.
Further, as shown in Figure 10, above-mentioned volume information acquisition unit, being additionally operable to obtain above-mentioned coding information includes Above-mentioned adjacent image block motion vector;
Above-mentioned 2nd BS determining units 803 include:4th parameter set unit 1001, the 4th parameter acquiring unit 1002 with And the 4th BS determination subelement 1003;
Above-mentioned 4th parameter set unit 1001, for by above-mentioned coding mode be BaseLayer patterns above-mentioned image The motion vector of block is arranged with respect in reference picture with the parameter that block of locations is corresponding when static;
Above-mentioned 4th parameter acquiring unit 1002, the adjacent image block for obtaining above-mentioned possible filtering boundary both sides Motion vector;
Above-mentioned 4th BS determination subelements 1003, if indicating that above-mentioned adjacent image block is equal for above-mentioned quantization parameter mark No quantization coefficient, and above-mentioned adjacent image block has identical reference picture, and above-mentioned adjacent image block motion vector Between difference be more than or equal to predetermined threshold value, then the boundary intensity BS of above-mentioned possible filtering boundary is set to the second side Boundary's intensity.
Further, above-mentioned 4th BS determination subelements 1003, if being additionally operable to above-mentioned quantization parameter mark indicates above-mentioned phase No quantization coefficient in adjacent image block, and above-mentioned adjacent image block has identical reference picture, and it is above-mentioned adjacent Difference between image block motion vector is less than predetermined threshold value, then is set to the boundary intensity BS of above-mentioned possible filtering boundary First boundary intensity.
The embodiment of the present invention additionally provides another boundary intensity BS and determines equipment, as shown in figure 11, including:Receiving device 1101st, equipment 1102, processor 1104 and storage device 1103 are sent;
Wherein, above-mentioned processor 1104, the possibility filtering boundary for determining block-eliminating effect filtering DBF;
Obtain the coding mode and coding information of the adjacent image block in above-mentioned possible filtering boundary both sides;
When the coding mode of above-mentioned adjacent image block is not frame in Intra patterns, and above-mentioned adjacent image block At least include Primary layer BaseLayer pattern in coding mode, then according to above-mentioned coding information by above-mentioned possible filtering The boundary intensity BS on border is set to different boundary strength values.
Further, if above-mentioned coding information includes the quantization system for marking above-mentioned adjacent image block whether to have quantization parameter Number mark;
Correspondence, above-mentioned processor 1104 is used for the coding letter for obtaining the adjacent image block in above-mentioned possible filtering boundary both sides Breath;Above-mentioned processor 1104, for obtaining whether the adjacent image block in above-mentioned possible filtering boundary both sides has the amount of quantization parameter Change coefficient identification;
Above-mentioned different boundary strength value includes the first boundary strength value and the second boundary intensity level, and above-mentioned the second boundary is strong Angle value is more than the first above-mentioned boundary strength value;Correspondence, above-mentioned processor 1104 be used for according to above-mentioned coding information by it is above-mentioned can The boundary intensity of the filtering boundary of energy, which is set to different boundary strength values, to be included:If specifically for the volume of above-mentioned adjacent image block Pattern is BaseLayer patterns and quantization parameter mark indicates the above-mentioned no quantization coefficient of adjacent image block, then will The boundary intensity BS of above-mentioned possible filtering boundary is set to the first boundary intensity.
Further, if above-mentioned coding information includes the quantization system for marking above-mentioned adjacent image block whether to have quantization parameter The motion vector of number mark, the reference picture of above-mentioned adjacent image block, and above-mentioned adjacent image block;
Correspondence, volume of the above-mentioned processor 1104 specifically for the adjacent image block of the above-mentioned possible filtering boundary both sides of acquisition Code information;Above-mentioned processor 1104, is additionally operable to set the above-mentioned image that coding mode is BaseLayer patterns according to preset rules The reference picture of block and above-mentioned coding mode is set to relatively for the motion vector of above-mentioned image block of BaseLayer patterns With the parameter that block of locations is corresponding when static in reference picture;
Obtain the quantization parameter mark of the adjacent image block in above-mentioned possible filtering boundary both sides, and above-mentioned adjacent image The reference picture of block, and above-mentioned adjacent image block motion vector;
Above-mentioned different boundary strength value includes the first boundary strength value and the second boundary intensity level, and above-mentioned the second boundary is strong Angle value is more than the first above-mentioned boundary strength value;Correspondence, above-mentioned processor 1104 be used for according to above-mentioned coding information by it is above-mentioned can Can filtering boundary the different boundary strength values of boundary intensity BS;Above-mentioned processor 1104, if specifically for above-mentioned quantization system Number mark indicates the above-mentioned no quantization coefficient of adjacent image block, and above-mentioned adjacent image block has identical with reference to figure Picture, and the difference of the motion vector of above-mentioned adjacent image block is less than predetermined threshold value, then by above-mentioned possible filtering boundary Boundary intensity BS is set to the first boundary intensity.
Further, correspondence, above-mentioned processor 1104 is used for above-mentioned possible filtering boundary according to above-mentioned coding information The different boundary strength values of boundary intensity BS;Above-mentioned processor 1104, if it is above-mentioned to be additionally operable to above-mentioned quantization parameter mark instruction The above-mentioned image block of at least one in adjacent image block has quantization parameter, or above-mentioned adjacent image block has different ginsengs Image is examined, or the difference of above-mentioned adjacent image block motion vector is more than or equal to predetermined threshold value, then by above-mentioned possible filter The boundary intensity BS on ripple border is set to the second boundary intensity.
Further, if above-mentioned coding information includes the quantization system for marking above-mentioned adjacent image block whether to have quantization parameter Number mark;
Correspondence, above-mentioned processor 1104 is used for the coding letter for obtaining the adjacent image block of above-mentioned possible filtering boundary both sides Breath;Above-mentioned processor 1104, is additionally operable to obtain whether the adjacent image block in above-mentioned possible filtering boundary both sides has quantization parameter Quantization parameter is identified;
Above-mentioned different boundary strength value includes the first boundary strength value and the second boundary intensity level, and above-mentioned the second boundary is strong Angle value is more than the first above-mentioned boundary strength value;Correspondence, above-mentioned processor 1104 be used for according to above-mentioned coding information by it is above-mentioned can Can filtering boundary the different boundary strength values of boundary intensity BS;Above-mentioned processor 1104, if specifically for above-mentioned quantization system Number mark indicates that at least one above-mentioned image block has quantization parameter in above-mentioned adjacent image block, then by above-mentioned possible filtering The boundary intensity BS on border is set to the second boundary intensity.
Further, if above-mentioned coding information also includes the reference picture of above-mentioned adjacent image block:
Correspondence, above-mentioned processor 1104 is used for the coding letter for obtaining the adjacent image block of above-mentioned possible filtering boundary both sides Breath;Above-mentioned processor 1104, is additionally operable to set coding mode to be the above-mentioned image block of BaseLayer patterns according to preset rules Reference picture;Obtain the reference picture of the adjacent image block of above-mentioned possible filtering boundary both sides;
Correspondence, above-mentioned processor 1104 is used for the boundary intensity of above-mentioned possible filtering boundary according to above-mentioned coding information Boundary strength values different BS;Above-mentioned processor 1104, if being additionally operable to above-mentioned quantization parameter mark indicates above-mentioned adjacent image The no quantization coefficient of block, and above-mentioned adjacent image block has different reference pictures, then by above-mentioned possible filtering boundary Boundary intensity BS be set to the second boundary intensity.
Further, if above-mentioned coding information also includes the motion vector of above-mentioned adjacent image block;
Correspondence, above-mentioned processor 1104 is used for the coding letter for obtaining the adjacent image block of above-mentioned possible filtering boundary both sides Breath;Above-mentioned processor 1104, is additionally operable to the motion vector by above-mentioned coding mode for the above-mentioned image block of BaseLayer patterns and sets Be set to relative in reference picture with the parameter that block of locations is corresponding when static;Obtain the adjacent of above-mentioned possible filtering boundary both sides Image block motion vector;
Correspondence, above-mentioned processor 1104 is used for the boundary intensity of above-mentioned possible filtering boundary according to above-mentioned coding information Boundary strength values different BS;Above-mentioned processor 1104, if indicating above-mentioned adjacent figure specifically for above-mentioned quantization parameter mark As the no quantization coefficient of block, and above-mentioned adjacent image block has identical reference picture, and above-mentioned adjacent image block fortune Difference between dynamic vector is more than or equal to predetermined threshold value, then is set to the boundary intensity BS of above-mentioned possible filtering boundary The second boundary intensity.
Further, correspondence, above-mentioned processor 1104 is used for above-mentioned possible filtering boundary according to above-mentioned coding information The different boundary strength values of boundary intensity BS;Above-mentioned processor 1104, if it is above-mentioned to be additionally operable to above-mentioned quantization parameter mark instruction No quantization coefficient in adjacent image block, and above-mentioned adjacent image block has identical reference picture, and it is above-mentioned adjacent Image block motion vector between difference be less than predetermined threshold value, then the boundary intensity BS of above-mentioned possible filtering boundary is set For the first boundary intensity.
The embodiment of the present invention additionally provides a kind of filter apparatus of deblocking effect, as shown in figure 12, including:Receiving device 1201st, equipment 1202, processor 1204 and storage device 1203 are sent;
Wherein, processor 1204, the possibility filtering boundary for determining block-eliminating effect filtering DBF;
Obtain the coding mode and coding information of the adjacent image block in above-mentioned possible filtering boundary both sides;
When the coding mode of above-mentioned adjacent image block is not frame in Intra patterns, and above-mentioned adjacent image block At least include Primary layer BaseLayer pattern in coding mode, then according to above-mentioned coding information by above-mentioned possible filtering The boundary intensity BS on border is set to different boundary strength values;
It is used to obtain first threshold and Second Threshold using the boundary intensity BS values of above-mentioned determination as a reference factor, on State first threshold to be used to determine whether to be filtered above-mentioned possible filtering boundary, above-mentioned Second Threshold is used to determine to needing The filtering strength that the above-mentioned possible filtering boundary being filtered is filtered;
According to the pixel gradient in preset range in the adjacent image block in above-mentioned possible filtering boundary both sides and above-mentioned One threshold value determines the need for being filtered above-mentioned possible filtering boundary;
If it is determined that needing to be filtered, then according to the picture in preset range in the adjacent image block in possible filtering boundary both sides Plain gradient and the relation of Second Threshold determine to perform the wave filter of filtering, and indicate institute's determination wave filter perform to it is above-mentioned need into The above-mentioned possible filtering boundary of row filtering is filtered processing.
Further, if above-mentioned coding information includes the quantization system for marking above-mentioned adjacent image block whether to have quantization parameter Number mark;
Correspondence, above-mentioned processor 1204 is used for the coding letter for obtaining the adjacent image block in above-mentioned possible filtering boundary both sides Breath;Above-mentioned processor 1204, is additionally operable to obtain whether the adjacent image block in above-mentioned possible filtering boundary both sides has quantization parameter Quantization parameter is identified;
Above-mentioned different boundary strength value includes the first boundary strength value and the second boundary intensity level, and above-mentioned the second boundary is strong Angle value is more than the first above-mentioned boundary strength value;Correspondence, above-mentioned processor 1204 be used for according to above-mentioned coding information by it is above-mentioned can Can filtering boundary the different boundary strength values of boundary intensity BS;Above-mentioned processor 1204, if specifically for above-mentioned neighbor map As the coding mode of block is BaseLayer patterns and the above-mentioned no quantization system of adjacent image block of quantization parameter mark instruction Number, then be set to the first boundary intensity by the boundary intensity BS of above-mentioned possible filtering boundary.
Further, if above-mentioned coding information includes the quantization system for marking above-mentioned adjacent image block whether to have quantization parameter The motion vector of number mark, the reference picture of above-mentioned adjacent image block, and above-mentioned adjacent image block;
Correspondence, above-mentioned processor 1204 is used for the coding letter for obtaining the adjacent image block of above-mentioned possible filtering boundary both sides Breath;Above-mentioned processor 1204, specifically according to the above-mentioned image block that preset rules setting coding mode is BaseLayer patterns Reference picture and by above-mentioned coding mode for BaseLayer patterns above-mentioned image block motion vector be arranged with respect to ginseng Examine in image with the parameter that block of locations is corresponding when static;
Obtain the quantization parameter mark of the adjacent image block in above-mentioned possible filtering boundary both sides, and above-mentioned adjacent image The reference picture of block, and above-mentioned adjacent image block motion vector;
Above-mentioned different boundary strength value includes the first boundary strength value and the second boundary intensity level, and above-mentioned the second boundary is strong Angle value is more than the first above-mentioned boundary strength value;Correspondence, above-mentioned processor 1204 be used for according to above-mentioned coding information by it is above-mentioned can Can filtering boundary the different boundary strength values of boundary intensity BS;Above-mentioned processor 1204, if specifically for above-mentioned quantization system Number mark indicates the above-mentioned no quantization coefficient of adjacent image block, and above-mentioned adjacent image block has identical with reference to figure Picture, and the difference of the motion vector of above-mentioned adjacent image block is less than predetermined threshold value, then by above-mentioned possible filtering boundary Boundary intensity BS is set to the first boundary intensity.
Further, the above-mentioned processor 1204 of correspondence is used for above-mentioned possible filtering boundary according to above-mentioned coding information Boundary strength values different boundary intensity BS;Above-mentioned processor 1204, if being additionally operable to above-mentioned quantization parameter mark indicates above-mentioned phase At least one above-mentioned image block has quantization parameter in adjacent image block, or above-mentioned adjacent image block has different references Image, or the difference of above-mentioned adjacent image block motion vector are more than or equal to predetermined threshold value, then by above-mentioned possible filtering The boundary intensity BS on border is set to the second boundary intensity.
Further, if above-mentioned coding information includes the quantization system for marking above-mentioned adjacent image block whether to have quantization parameter Number mark;
Correspondence, above-mentioned processor 1204 is used for the coding letter for obtaining the adjacent image block of above-mentioned possible filtering boundary both sides Breath;Above-mentioned processor 1204, specifically for obtaining whether the adjacent image block in above-mentioned possible filtering boundary both sides has quantization parameter Quantization parameter mark;
Above-mentioned different boundary strength value includes the first boundary strength value and the second boundary intensity level, and above-mentioned the second boundary is strong Angle value is more than the first above-mentioned boundary strength value;Correspondence, above-mentioned processor 1204 be used for according to above-mentioned coding information by it is above-mentioned can Can filtering boundary the different boundary strength values of boundary intensity BS;Above-mentioned processor 1204, if specifically for above-mentioned quantization system Number mark indicates that at least one above-mentioned image block has quantization parameter in above-mentioned adjacent image block, then by above-mentioned possible filtering The boundary intensity BS on border is set to the second boundary intensity.
Further, if above-mentioned coding information also includes the reference picture of above-mentioned adjacent image block:
Correspondence, above-mentioned processor 1204 is used for the coding letter for obtaining the adjacent image block of above-mentioned possible filtering boundary both sides Breath;Above-mentioned processor 1204, is additionally operable to set coding mode to be the above-mentioned image block of BaseLayer patterns according to preset rules Reference picture;Obtain the reference picture of the adjacent image block of above-mentioned possible filtering boundary both sides;
Correspondence, above-mentioned processor 1204 is used for the boundary intensity of above-mentioned possible filtering boundary according to above-mentioned coding information Boundary strength values different BS;Above-mentioned processor 1204, if being additionally operable to above-mentioned quantization parameter mark indicates above-mentioned adjacent image The no quantization coefficient of block, and above-mentioned adjacent image block has different reference pictures, then by above-mentioned possible filtering boundary Boundary intensity BS be set to the second boundary intensity.
Further, if above-mentioned coding information also includes the motion vector of above-mentioned adjacent image block;
Correspondence, above-mentioned processor 1204 is used for the coding letter for obtaining the adjacent image block of above-mentioned possible filtering boundary both sides Breath;Above-mentioned processor 1204, is additionally operable to the motion vector by above-mentioned coding mode for the above-mentioned image block of BaseLayer patterns and sets Be set to relative in reference picture with the parameter that block of locations is corresponding when static;Obtain the adjacent of above-mentioned possible filtering boundary both sides Image block motion vector;
Correspondence, above-mentioned processor 1204 is used for the boundary intensity of above-mentioned possible filtering boundary according to above-mentioned coding information Boundary strength values different BS;Above-mentioned processor 1204, if being additionally operable to above-mentioned quantization parameter mark indicates above-mentioned adjacent image The no quantization coefficient of block, and above-mentioned adjacent image block has identical reference picture, and above-mentioned adjacent image block motion Difference between vector is more than or equal to predetermined threshold value, then the boundary intensity BS of above-mentioned possible filtering boundary is set into the Two boundary intensities.
Further, the above-mentioned processor 1204 of correspondence is used for above-mentioned possible filtering boundary according to above-mentioned coding information Boundary strength values different boundary intensity BS;Above-mentioned processor 1204, if being additionally operable to above-mentioned quantization parameter mark indicates above-mentioned phase No quantization coefficient in adjacent image block, and above-mentioned adjacent image block has identical reference picture, and it is above-mentioned adjacent Difference between image block motion vector is less than predetermined threshold value, then is set to the boundary intensity BS of above-mentioned possible filtering boundary First boundary intensity.
Figure 13 shows the filter of boundary intensity BS determining devices provided in an embodiment of the present invention or deblocking effect Structure, and the structure by taking terminal as an example, the terminal that the present invention implements to provide can be used for implementing the side that the present invention implements to provide Method, for convenience of description, illustrate only the part related to the embodiment of the present invention, particular technique details is not disclosed, refer to Present invention method part.
The terminal can be to include mobile phone, tablet personal computer, PDA(Personal Digital Assistant, individual digital Assistant)、POS(Point of Sales, point-of-sale terminal), the terminal device such as vehicle-mounted computer, so that terminal is mobile phone as an example, Figure 13 shows What is gone out is the block diagram of the part-structure of the mobile phone 1300 related to terminal provided in an embodiment of the present invention.With reference to Figure 13, mobile phone 1300 include RF(Radio Frequency, radio frequency)Circuit 1310, memory 1320, input block 1330, display unit 1340th, sensor 1350, voicefrequency circuit 1360, WiFi (wirelessdelity, Wireless Fidelity) module 1370, processor The part such as 1380 and power supply 1390.It will be understood by those skilled in the art that the handset structure shown in Figure 13 is not constituted pair The restriction of mobile phone, can include than illustrating more or less parts, either combine some parts or different part cloth Put.
Each component parts of mobile phone 1300 is specifically introduced with reference to Figure 13:
RF circuits 1310 can be used for receive and send messages or communication process in, the reception and transmission of signal, especially, by base station After downlink information is received, handled to processor 1380;In addition, being sent to base station by up data are designed.Generally, RF circuits bag Include but be not limited to antenna, at least one amplifier, transceiver, coupler, LNA(Low Noise Amplifier, low noise Amplifier), duplexer etc..In addition, RF circuits 1310 can also be communicated by radio communication with network and other equipment.Above-mentioned nothing Line communication can use any communication standard or agreement, including but not limited to GSM (Global System of Mobilecommunication, global system for mobile communications), GPRS (General Packet Radio Service, it is general Be grouped wireless service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), LTE (LongTerm Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc..
Memory 1320 can be used for storage software program and module, and processor 1380 is stored in memory by operation 1320 software program and module, so as to perform various function application and the data processing of mobile phone 1300.Memory 1320 Storing program area and storage data field can mainly be included, wherein, storing program area can storage program area, at least one function institute The application program needed(Such as sound-playing function, image player function etc.)Deng;Storage data field can be stored according to mobile phone 1300 Use created data(Such as voice data, phone directory etc.)Deng.In addition, memory 1320 can include depositing at random at a high speed Access to memory, can also include nonvolatile memory, for example, at least one disk memory, flush memory device or other are easy The property lost solid-state memory.
Input block 1330 can be used for the numeral or character information for receiving input, and generation and the user of mobile phone 1300 to set Put and the input of key signals that function control is relevant.Specifically, input block 1330 may include contact panel 1331 and other Input equipment 1332.Contact panel 1331, also referred to as touch-screen, collect touch operation of the user on or near it(Such as User is using any suitable objects such as finger, stylus or annex on contact panel 1331 or near contact panel 1331 Operation), and corresponding attachment means are driven according to formula set in advance.Optionally, contact panel 1331 may include to touch inspection Survey two parts of device and touch controller.Wherein, touch detecting apparatus detects the touch orientation of user, and detects touch operation The signal brought, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and will It is converted into contact coordinate, then gives processor 1380, and the order sent of reception processing device 1380 and can be performed.This Outside, contact panel 1331 can be realized using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except touching Panel 1331 is controlled, input block 1330 can also include other input equipments 1332.Specifically, other input equipments 1332 can be with Including but not limited to physical keyboard, function key(Such as volume control button, switch key etc.), trace ball, mouse, action bars etc. In one or more.
Display unit 1340 can be used for the information and mobile phone 1300 for showing the information inputted by user or being supplied to user Various menus.Display unit 1340 may include display panel 1341, optionally, can use LCD (Liquid Crystal Display, liquid crystal display), the form such as OLED (Organic Light-EmittingDiode, Organic Light Emitting Diode) comes Configure display panel 1341.Further, contact panel 1331 can cover display panel 1341, when contact panel 1331 is detected After touch operation on or near it, processor 1380 is sent to determine the type of touch event, with preprocessor 1380 Corresponding visual output is provided on display panel 1341 according to the type of touch event.Although in fig. 13, contact panel 1331 and display panel 1341 are input and the input function that mobile phone 1300 is realized as two independent parts, but at certain , can be by contact panel 1331 and the input that is integrated and realizing mobile phone 1300 of display panel 1341 and output work in a little embodiments Energy.
Mobile phone 1300 may also include at least one sensor 1350, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ring The light and shade of environmental light adjusts the brightness of display panel 1341, and proximity transducer can close when mobile phone 1300 is moved in one's ear Display panel 1341 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions(Typically For three axles)The size of acceleration, can detect that size and the direction of gravity when static, the application available for identification mobile phone posture (Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function(Such as pedometer, percussion)Deng; The other sensors such as the gyroscope, barometer, hygrometer, thermometer, the infrared ray sensor that can also configure as mobile phone 1300, This is repeated no more.
Voicefrequency circuit 1360, loudspeaker 1361, microphone 1362 can provide the COBBAIF between user and mobile phone 1300. Electric signal after the voice data received conversion can be transferred to loudspeaker 1361, by loudspeaker 1361 by voicefrequency circuit 1360 Be converted to voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 1362, by voicefrequency circuit 1360 receive after be converted to voice data, then after voice data output processor 1380 is handled, through RF circuits 1310 to send Exported to such as another mobile phone, or by voice data to memory 1320 so as to further processing.
WiFi belongs to short range wireless transmission technology, and mobile phone 1300 can help user's transmitting-receiving electricity by WiFi module 1370 Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Figure 13 shows Go out WiFi module 1370, but it is understood that, it is simultaneously not belonging to must be configured into for mobile phone 1300, completely can be according to need To be omitted in the essential scope for do not change invention.
Processor 1380 is the control centre of mobile phone 1300, utilizes various interfaces and each portion of connection whole mobile phone Point, by operation or perform and be stored in software program and/or module in memory 1320, and call and be stored in memory Data in 1320, perform the various functions and processing data of mobile phone 1300, so as to carry out integral monitoring to mobile phone.Optionally, Processor 1380 may include one or more processing units;It is preferred that, processor 1380 can integrated application processor and modulatedemodulate Processor is adjusted, wherein, application processor mainly handles operating system, user interface and application program etc., modem processor Main processing radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1380.
Mobile phone 1300 also includes the power supply 1390 powered to all parts(Such as battery), it is preferred that power supply can pass through Power-supply management system and processor 1380 are logically contiguous, so as to realize management charging, electric discharge, Yi Jigong by power-supply management system The functions such as consumption management.
Although not shown, mobile phone 1300 can also include camera, bluetooth module etc., will not be repeated here.
In embodiments of the present invention, the processor 1380 included by the terminal also has following function:
Above-mentioned processor 1304, the possibility filtering boundary for determining block-eliminating effect filtering DBF;
Obtain the coding mode and coding information of the adjacent image block in above-mentioned possible filtering boundary both sides;
When the coding mode of above-mentioned adjacent image block is not frame in Intra patterns, and above-mentioned adjacent image block At least include Primary layer BaseLayer pattern in coding mode, then according to above-mentioned coding information by above-mentioned possible filtering The boundary intensity BS on border is set to different boundary strength values.
Further, if above-mentioned coding information includes the quantization system for marking above-mentioned adjacent image block whether to have quantization parameter Number mark;
Correspondence, above-mentioned processor 1304 is used for the coding letter for obtaining the adjacent image block in above-mentioned possible filtering boundary both sides Breath;Above-mentioned processor 1304, specifically for obtaining whether the adjacent image block in above-mentioned possible filtering boundary both sides has quantization parameter Quantization parameter mark;
Above-mentioned different boundary strength value includes the first boundary strength value and the second boundary intensity level, and above-mentioned the second boundary is strong Angle value be more than the first above-mentioned boundary strength value, correspondence, above-mentioned processor 1304 be used for according to above-mentioned coding information by it is above-mentioned can The boundary strength value that the boundary intensity BS of the filtering boundary of energy is different includes:If specifically for the coding mould of above-mentioned adjacent image block Formula is BaseLayer patterns and quantization parameter mark indicates the above-mentioned no quantization coefficient of adjacent image block, then will be above-mentioned The boundary intensity BS of possible filtering boundary is set to the first boundary intensity.
Further, if above-mentioned coding information includes the quantization system for marking above-mentioned adjacent image block whether to have quantization parameter The motion vector of number mark, the reference picture of above-mentioned adjacent image block, and above-mentioned adjacent image block;
Correspondence, above-mentioned processor 1304 is used for the coding letter for obtaining the adjacent image block of above-mentioned possible filtering boundary both sides Breath;Above-mentioned processor 1304, specifically for setting the above-mentioned image block that coding mode is BaseLayer patterns according to preset rules Reference picture and above-mentioned coding mode is arranged with respect to for the motion vector of above-mentioned image block of BaseLayer patterns With the parameter that block of locations is corresponding when static in reference picture;
Obtain the quantization parameter mark of the adjacent image block in above-mentioned possible filtering boundary both sides, and above-mentioned adjacent image The reference picture of block, and above-mentioned adjacent image block motion vector;
Above-mentioned different boundary strength value includes the first boundary strength value and the second boundary intensity level, and above-mentioned the second boundary is strong Angle value be more than the first above-mentioned boundary strength value, correspondence, above-mentioned processor 1304 be used for according to above-mentioned coding information by it is above-mentioned can Can filtering boundary the different boundary strength values of boundary intensity BS;Above-mentioned processor 1304, if specifically for above-mentioned quantization system Number mark indicates the above-mentioned no quantization coefficient of adjacent image block, and above-mentioned adjacent image block has identical with reference to figure Picture, and the difference of the motion vector of above-mentioned adjacent image block is less than predetermined threshold value, then by above-mentioned possible filtering boundary Boundary intensity BS is set to the first boundary intensity.
Further, correspondence, above-mentioned processor 1304 is used for above-mentioned possible filtering boundary according to above-mentioned coding information The different boundary strength values of boundary intensity BS;Above-mentioned processor 1304, if being indicated specifically for above-mentioned quantization parameter mark Stating the above-mentioned image block of at least one in adjacent image block has a quantization parameter, or above-mentioned adjacent image block have it is different Reference picture, or the difference of above-mentioned adjacent image block motion vector are more than or equal to predetermined threshold value, then will be above-mentioned possible The boundary intensity BS of filtering boundary is set to the second boundary intensity.
Further, if above-mentioned coding information includes the quantization system for marking above-mentioned adjacent image block whether to have quantization parameter Number mark;
Correspondence, above-mentioned processor 1304 is used for the coding letter for obtaining the adjacent image block of above-mentioned possible filtering boundary both sides Breath;Above-mentioned processor 1304, specifically for obtaining whether the adjacent image block in above-mentioned possible filtering boundary both sides has quantization parameter Quantization parameter mark;
Above-mentioned different boundary strength value includes the first boundary strength value and the second boundary intensity level, and above-mentioned the second boundary is strong Angle value is more than the first above-mentioned boundary strength value;Correspondence, above-mentioned processor 1304 be used for according to above-mentioned coding information by it is above-mentioned can Can filtering boundary the different boundary strength values of boundary intensity BS;Above-mentioned processor 1304, if specifically for above-mentioned quantization system Number mark indicates that at least one above-mentioned image block has quantization parameter in above-mentioned adjacent image block, then by above-mentioned possible filtering The boundary intensity BS on border is set to the second boundary intensity.
Further, if above-mentioned coding information also includes the reference picture of above-mentioned adjacent image block:
Correspondence, above-mentioned processor 1304 is used for the coding letter for obtaining the adjacent image block of above-mentioned possible filtering boundary both sides Breath;Above-mentioned processor 1304, is additionally operable to set coding mode to be the above-mentioned image block of BaseLayer patterns according to preset rules Reference picture;Obtain the reference picture of the adjacent image block of above-mentioned possible filtering boundary both sides;
Correspondence, above-mentioned processor 1304 is used for the boundary intensity of above-mentioned possible filtering boundary according to above-mentioned coding information Boundary strength values different BS;Above-mentioned processor 1304, if being additionally operable to above-mentioned quantization parameter mark indicates above-mentioned adjacent image The no quantization coefficient of block, and above-mentioned adjacent image block has different reference pictures, then by above-mentioned possible filtering boundary Boundary intensity BS be set to the second boundary intensity.
Further, if above-mentioned coding information also includes the motion vector of above-mentioned adjacent image block;
Correspondence, above-mentioned processor 1304 is used for the coding letter for obtaining the adjacent image block of above-mentioned possible filtering boundary both sides Breath;Above-mentioned processor 1304, is additionally operable to the motion vector by above-mentioned coding mode for the above-mentioned image block of BaseLayer patterns and sets Be set to relative in reference picture with the parameter that block of locations is corresponding when static;Obtain the adjacent of above-mentioned possible filtering boundary both sides Image block motion vector;
Correspondence, above-mentioned processor 1304 is used for the boundary intensity of above-mentioned possible filtering boundary according to above-mentioned coding information Boundary strength values different BS;Above-mentioned processor 1304, above-mentioned adjacent figure is indicated if going back body and being used for above-mentioned quantization parameter mark As the no quantization coefficient of block, and above-mentioned adjacent image block has identical reference picture, and above-mentioned adjacent image block fortune Difference between dynamic vector is more than or equal to predetermined threshold value, then is set to the boundary intensity BS of above-mentioned possible filtering boundary The second boundary intensity.
Further, correspondence, above-mentioned processor 1304 is used for above-mentioned possible filtering boundary according to above-mentioned coding information The different boundary strength values of boundary intensity BS;Above-mentioned processor 1304, if it is above-mentioned to be additionally operable to above-mentioned quantization parameter mark instruction No quantization coefficient in adjacent image block, and above-mentioned adjacent image block has identical reference picture, and it is above-mentioned adjacent Image block motion vector between difference be less than predetermined threshold value, then the boundary intensity BS of above-mentioned possible filtering boundary is set For the first boundary intensity.
If above-mentioned mobile phone is used as the filter apparatus of deblocking effect, in embodiments of the present invention, the processing included by the terminal Device 1380 also has following function:
Above-mentioned processor 1304, the possibility filtering boundary for determining block-eliminating effect filtering DBF;
Obtain the coding mode and coding information of the adjacent image block in above-mentioned possible filtering boundary both sides;
When the coding mode of above-mentioned adjacent image block is not frame in Intra patterns, and above-mentioned adjacent image block At least include Primary layer BaseLayer pattern in coding mode, then according to above-mentioned coding information by above-mentioned possible filtering The boundary intensity BS on border is set to different boundary strength values;
It is used to obtain first threshold and Second Threshold, above-mentioned first threshold using the BS of above-mentioned determination as a reference factor It is used to determine whether to be filtered above-mentioned possible filtering boundary, above-mentioned Second Threshold is used to determine be filtered needs The filtering strength that above-mentioned possible filtering boundary is filtered;
According to the pixel gradient in preset range in the adjacent image block in above-mentioned possible filtering boundary both sides and above-mentioned One threshold value determines the need for being filtered above-mentioned possible filtering boundary;
If it is determined that needing to be filtered, then according to the picture in preset range in the adjacent image block in possible filtering boundary both sides Plain gradient and the relation of Second Threshold determine to perform the wave filter of filtering, and indicate institute's determination wave filter perform to it is above-mentioned need into The above-mentioned possible filtering boundary of row filtering is filtered processing.
Further, if above-mentioned coding information also includes the quantization for marking above-mentioned adjacent image block whether to have quantization parameter Coefficient identification;
Correspondence, above-mentioned processor 1304 is used for the coding letter for obtaining the adjacent image block in above-mentioned possible filtering boundary both sides Breath;Above-mentioned processor 1304, specifically for obtaining whether the adjacent image block in above-mentioned possible filtering boundary both sides has quantization parameter Quantization parameter mark;
Above-mentioned different boundary strength value includes the first boundary strength value and the second boundary intensity level, and above-mentioned the second boundary is strong Angle value is more than the first above-mentioned boundary strength value;Correspondence, above-mentioned processor 1304 be used for according to above-mentioned coding information by it is above-mentioned can Can filtering boundary the different boundary strength values of boundary intensity BS;Above-mentioned processor 1304, if specifically for above-mentioned neighbor map As the coding mode of block is BaseLayer patterns and the above-mentioned no quantization system of adjacent image block of quantization parameter mark instruction Number, then be set to the first boundary intensity by the boundary intensity BS of above-mentioned possible filtering boundary.
Further, if above-mentioned coding information also includes the quantization for marking above-mentioned adjacent image block whether to have quantization parameter The motion vector of coefficient identification, the reference picture of above-mentioned adjacent image block, and above-mentioned adjacent image block;
Correspondence, above-mentioned processor 1304 is used for the coding letter for obtaining the adjacent image block of above-mentioned possible filtering boundary both sides Breath;Above-mentioned processor 1304, specifically for setting the above-mentioned image block that coding mode is BaseLayer patterns according to preset rules Reference picture and above-mentioned coding mode is arranged with respect to for the motion vector of above-mentioned image block of BaseLayer patterns With the parameter that block of locations is corresponding when static in reference picture;
Obtain the quantization parameter mark of the adjacent image block in above-mentioned possible filtering boundary both sides, and above-mentioned adjacent image The reference picture of block, and above-mentioned adjacent image block motion vector;
Above-mentioned different boundary strength value includes the first boundary strength value and the second boundary intensity level, and above-mentioned the second boundary is strong Angle value is more than the first above-mentioned boundary strength value;Correspondence, above-mentioned processor 1304 be used for according to above-mentioned coding information by it is above-mentioned can Can filtering boundary the different boundary strength values of boundary intensity BS;Above-mentioned processor 1304, if specifically for above-mentioned quantization system Number mark indicates the above-mentioned no quantization coefficient of adjacent image block, and above-mentioned adjacent image block has identical with reference to figure Picture, and the difference of the motion vector of above-mentioned adjacent image block is less than predetermined threshold value, then by above-mentioned possible filtering boundary Boundary intensity BS is set to the first boundary intensity.
Further, the above-mentioned processor 1304 of correspondence is used for above-mentioned possible filtering boundary according to above-mentioned coding information Boundary strength values different boundary intensity BS;Above-mentioned processor 1304, if being indicated specifically for above-mentioned quantization parameter mark above-mentioned The above-mentioned image block of at least one in adjacent image block has quantization parameter, or above-mentioned adjacent image block has different ginsengs Image is examined, or the difference of above-mentioned adjacent image block motion vector is more than or equal to predetermined threshold value, then by above-mentioned possible filter The boundary intensity BS on ripple border is set to the second boundary intensity.
Further, if above-mentioned coding information also includes the quantization for marking above-mentioned adjacent image block whether to have quantization parameter Coefficient identification;
Correspondence, above-mentioned processor 1304 is used for the coding letter for obtaining the adjacent image block of above-mentioned possible filtering boundary both sides Breath;Above-mentioned processor 1304, specifically for obtaining whether the adjacent image block in above-mentioned possible filtering boundary both sides has quantization parameter Quantization parameter mark;
Above-mentioned different boundary strength value includes the first boundary strength value and the second boundary intensity level, and above-mentioned the second boundary is strong Angle value is more than the first above-mentioned boundary strength value;Correspondence, above-mentioned processor 1304 be used for according to above-mentioned coding information by it is above-mentioned can Can filtering boundary the different boundary strength values of boundary intensity BS;Above-mentioned processor 1304, if specifically for above-mentioned quantization system Number mark indicates that at least one above-mentioned image block has quantization parameter in above-mentioned adjacent image block, then by above-mentioned possible filtering The boundary intensity BS on border is set to the second boundary intensity.
Further, if above-mentioned coding information also includes the reference picture of above-mentioned adjacent image block:
Correspondence, above-mentioned processor 1304 is used for the coding letter for obtaining the adjacent image block of above-mentioned possible filtering boundary both sides Breath;Above-mentioned processor 1304, is additionally operable to set coding mode to be the above-mentioned image block of BaseLayer patterns according to preset rules Reference picture;Obtain the reference picture of the adjacent image block of above-mentioned possible filtering boundary both sides;
Correspondence, above-mentioned processor 1304 is used for the boundary intensity of above-mentioned possible filtering boundary according to above-mentioned coding information Boundary strength values different BS;Above-mentioned processor 1304, if being additionally operable to above-mentioned quantization parameter mark indicates above-mentioned adjacent image The no quantization coefficient of block, and above-mentioned adjacent image block has different reference pictures, then by above-mentioned possible filtering boundary Boundary intensity BS be set to the second boundary intensity.
Further, if above-mentioned coding information also includes the motion vector of above-mentioned adjacent image block;
Correspondence, above-mentioned processor 1304 is used for the coding letter for obtaining the adjacent image block of above-mentioned possible filtering boundary both sides Breath;Above-mentioned processor 1304, is additionally operable to the motion vector by above-mentioned coding mode for the above-mentioned image block of BaseLayer patterns and sets Be set to relative in reference picture with the parameter that block of locations is corresponding when static;Obtain the adjacent of above-mentioned possible filtering boundary both sides Image block motion vector;
Correspondence, above-mentioned processor 1304 is used for the boundary intensity of above-mentioned possible filtering boundary according to above-mentioned coding information Boundary strength values different BS;Above-mentioned processor 1304, if being additionally operable to above-mentioned quantization parameter mark indicates above-mentioned adjacent image The no quantization coefficient of block, and above-mentioned adjacent image block has identical reference picture, and above-mentioned adjacent image block motion Difference between vector is more than or equal to predetermined threshold value, then the boundary intensity BS of above-mentioned possible filtering boundary is set into the Two boundary intensities.
Further, the above-mentioned processor 1304 of correspondence is used for above-mentioned possible filtering boundary according to above-mentioned coding information Boundary strength values different boundary intensity BS;Above-mentioned processor 1304, if being additionally operable to above-mentioned quantization parameter mark indicates above-mentioned phase No quantization coefficient in adjacent image block, and above-mentioned adjacent image block has identical reference picture, and it is above-mentioned adjacent Difference between image block motion vector is less than predetermined threshold value, then is set to the boundary intensity BS of above-mentioned possible filtering boundary First boundary intensity.
It is worth noting that, in said apparatus embodiment, included unit is simply drawn according to function logic Point, but above-mentioned division is not limited to, as long as corresponding function can be realized;In addition, each functional unit is specific Title is also only to facilitate mutually distinguish, the protection domain being not intended to limit the invention.
In addition, one of ordinary skill in the art will appreciate that realizing all or part of step in above-mentioned each method embodiment It can be by program to instruct the hardware of correlation to complete, corresponding program can be stored in a kind of computer-readable recording medium In, storage medium mentioned above can be read-only storage, disk or CD etc..
The present invention preferably embodiment is these are only, but protection scope of the present invention is not limited thereto, it is any Those familiar with the art the change that can readily occur in or replaces in the technical scope that the embodiment of the present invention is disclosed Change, should all be included within the scope of the present invention.Therefore, protection scope of the present invention should be with the protection model of claim Enclose and be defined.

Claims (36)

1. a kind of boundary intensity determines method, it is characterised in that including:
Determine block-eliminating effect filtering DBF possibility filtering boundary;
Obtain the coding mode and coding information of the adjacent image block in the possible filtering boundary both sides;
When the coding mode of the adjacent image block is not frame in Intra patterns, and the coding of the adjacent image block At least include Primary layer BaseLayer pattern in pattern, then according to the coding information by the possible filtering boundary Boundary intensity be set to different boundary intensities.
2. according to the method described in claim 1, it is characterised in that the coding information includes marking the adjacent image block The quantization parameter for whether having quantization parameter is identified;
The coding information for obtaining the adjacent image block in the possible filtering boundary both sides is specifically included:
The quantization parameter whether obtain the adjacent image block in the possible filtering boundary both sides has quantization parameter is identified;
The different boundary intensity includes the first boundary intensity and the second boundary intensity, and the second boundary intensity is more than described The first boundary intensity, it is described the boundary intensity of the possible filtering boundary is set to according to the coding information it is different Boundary intensity is specifically included:
If the coding mode of the adjacent image block is BaseLayer patterns and quantization parameter mark instruction is described adjacent The no quantization coefficient of image block, then be set to the first boundary intensity by the boundary intensity of the possible filtering boundary.
3. according to the method described in claim 1, it is characterised in that the coding information includes marking the adjacent image block The quantization parameter for whether having quantization parameter is identified, the reference picture of the adjacent image block, and the adjacent image block Motion vector;
The coding information of the adjacent image block for obtaining the possible filtering boundary both sides is specifically included:
Coding mode is set to be compiled for the reference picture of the described image block of BaseLayer patterns and by described according to preset rules Pattern is arranged with respect to static with block of locations in reference picture for the motion vector of the described image block of BaseLayer patterns When corresponding parameter;
The quantization parameter for obtaining the adjacent image block in the possible filtering boundary both sides is identified, and the adjacent image block Reference picture, and the adjacent image block motion vector;
The different boundary intensity includes the first boundary intensity and the second boundary intensity, and the second boundary intensity is more than described The first boundary intensity;It is described the boundary intensity of the possible filtering boundary is set to according to the coding information it is different Boundary intensity is specifically included:
If the quantization parameter mark indicates the no quantization coefficient of adjacent image block, and the adjacent image block tool There is identical reference picture, and the difference of the motion vector of the adjacent image block is less than predetermined threshold value, then can by described in The boundary intensity of the filtering boundary of energy is set to the first boundary intensity.
4. method according to claim 3, it is characterised in that it is described according to the coding information by the possible filtering The boundary intensity on border, which is set to different boundary intensities, also to be included:
If the quantization parameter mark indicates that the image block described at least one in the adjacent image block has quantization parameter, Or the adjacent image block has a different reference pictures, or the adjacent image block motion vector difference be more than or Equal to predetermined threshold value, then the boundary intensity of the possible filtering boundary is set to the second boundary intensity.
5. according to the method described in claim 1, it is characterised in that the coding information includes marking the adjacent image block The quantization parameter for whether having quantization parameter is identified;
The coding information of the adjacent image block for obtaining the possible filtering boundary both sides is specifically included:
The quantization parameter whether obtain the adjacent image block in the possible filtering boundary both sides has quantization parameter is identified;
The different boundary intensity includes the first boundary intensity and the second boundary intensity, and the second boundary intensity is more than described The first boundary intensity;It is described the boundary intensity of the possible filtering boundary is set to according to the coding information it is different Boundary intensity is specifically included:
If the quantization parameter mark indicates that the image block described at least one in the adjacent image block has quantization parameter, The boundary intensity of the possible filtering boundary is set to the second boundary intensity.
6. method according to claim 5, it is characterised in that the coding information also includes the adjacent image block Reference picture;
The coding information of the adjacent image block for obtaining the possible filtering boundary both sides also includes:
Coding mode is set to be the reference picture of the described image block of BaseLayer patterns according to preset rules;Can described in obtaining The reference picture of the adjacent image block of energy filtering boundary both sides;
It is described that the boundary intensity of the possible filtering boundary is set to by the different boundary intensity according to the coding information Also include:
If the quantization parameter mark indicates the no quantization coefficient of adjacent image block, and the adjacent image block tool There are different reference pictures, then the boundary intensity of the possible filtering boundary is set to the second boundary intensity.
7. method according to claim 6, it is characterised in that the coding information also includes the adjacent image block Motion vector;
The coding information of the adjacent image block for obtaining the possible filtering boundary both sides also includes:
Motion vector by the coding mode for the described image block of BaseLayer patterns is arranged with respect in reference picture With block of locations parameter corresponding when static;
Obtain the motion vector of the adjacent image block of the possible filtering boundary both sides;
It is described that the boundary intensity of the possible filtering boundary is set to by the different boundary intensity according to the coding information Also include:
If the quantization parameter mark indicates the no quantization coefficient of adjacent image block, and the adjacent image block has Difference between identical reference picture, and the adjacent image block motion vector is more than or equal to predetermined threshold value, then The boundary intensity of the possible filtering boundary is set to the second boundary intensity.
8. method according to claim 7, it is characterised in that it is described according to the coding information by the possible filtering The boundary intensity on border, which is set to different boundary intensities, also to be included:
If the quantization parameter mark indicates no quantization coefficient in the adjacent image block, and the adjacent image block There is the difference between identical reference picture, and the adjacent image block motion vector to be less than predetermined threshold value, then will be described The boundary intensity of possible filtering boundary is set to the first boundary intensity.
9. the method according to claim 2 to 8 any one, it is characterised in that first boundary intensity is 0, described The second boundary intensity is 1.
10. a kind of filtering method of deblocking effect, it is characterised in that including:
Determine block-eliminating effect filtering DBF possibility filtering boundary;
Obtain the coding mode and coding information of the adjacent image block in the possible filtering boundary both sides;
When the coding mode of the adjacent image block is not frame in Intra patterns, and the coding of the adjacent image block At least include Primary layer BaseLayer pattern in pattern, then according to the coding information by the possible filtering boundary Boundary intensity be set to different boundary intensities;
It is used to obtain first threshold and Second Threshold, first threshold using the boundary intensity of the determination as a reference factor Value is used to determine whether to be filtered the possible filtering boundary, and the Second Threshold is used to determine to be filtered needs The filtering strength that is filtered of the possible filtering boundary;
According to the pixel gradient and first threshold in preset range in the adjacent image block in the possible filtering boundary both sides Value determines the need for being filtered the possible filtering boundary;
If it is determined that needing to be filtered, then according to the pixel ladder in preset range in the adjacent image block in possible filtering boundary both sides The relation spent with Second Threshold determines to perform the wave filter of filtering, and needs to filter to described using institute's determination wave filter execution The possible filtering boundary of ripple is filtered processing.
11. method according to claim 10, it is characterised in that the coding information includes marking the adjacent image The quantization parameter whether block has quantization parameter is identified;
The coding information for obtaining the adjacent image block in the possible filtering boundary both sides is specifically included:
The quantization parameter whether obtain the adjacent image block in the possible filtering boundary both sides has quantization parameter is identified;
The different boundary intensity includes the first boundary intensity and the second boundary intensity, and the second boundary intensity is more than described The first boundary intensity;It is described the boundary intensity of the possible filtering boundary is set to according to the coding information it is different Boundary intensity is specifically included:
If the coding mode of the adjacent image block is BaseLayer patterns and quantization parameter mark instruction is described adjacent The no quantization coefficient of image block, then be set to the first boundary intensity by the boundary intensity of the possible filtering boundary.
12. method according to claim 10, it is characterised in that the coding information includes marking the adjacent image The quantization parameter whether block has quantization parameter is identified, the reference picture of the adjacent image block, and the adjacent image The motion vector of block;
The coding information of the adjacent image block for obtaining the possible filtering boundary both sides is specifically included:
Coding mode is set to be compiled for the reference picture of the described image block of BaseLayer patterns and by described according to preset rules Pattern is arranged with respect to static with block of locations in reference picture for the motion vector of the described image block of BaseLayer patterns When corresponding parameter;
The quantization parameter for obtaining the adjacent image block in the possible filtering boundary both sides is identified, and the adjacent image block Reference picture, and the adjacent image block motion vector;
The different boundary intensity includes the first boundary intensity and the second boundary intensity, and the second boundary intensity is more than described The first boundary intensity;It is described that the boundary intensity of the possible filtering boundary is set to by difference according to the coding information Boundary intensity specifically include:
If the quantization parameter mark indicates the no quantization coefficient of adjacent image block, and the adjacent image block tool There is identical reference picture, and the difference of the motion vector of the adjacent image block is less than predetermined threshold value, then can by described in The boundary intensity of the filtering boundary of energy is set to the first boundary intensity.
13. method according to claim 12, it is characterised in that it is described according to the coding information by the possible filter The boundary intensity on ripple border, which is set to the first boundary intensity or the second boundary intensity, also to be included:
If the quantization parameter mark indicates that the image block described at least one in the adjacent image block has quantization parameter, Or the adjacent image block has a different reference pictures, or the adjacent image block motion vector difference be more than or Equal to predetermined threshold value, then the boundary intensity of the possible filtering boundary is set to the second boundary intensity.
14. method according to claim 10, it is characterised in that the coding information includes marking the adjacent image The quantization parameter whether block has quantization parameter is identified;
The coding information of the adjacent image block for obtaining the possible filtering boundary both sides is specifically included:
The quantization parameter whether obtain the adjacent image block in the possible filtering boundary both sides has quantization parameter is identified;
The different boundary intensity includes the first boundary intensity and the second boundary intensity, and the second boundary intensity is more than described The first boundary intensity;It is described the boundary intensity of the possible filtering boundary is set to according to the coding information it is different Boundary intensity is specifically included:
If the quantization parameter mark indicates that the image block described at least one in the adjacent image block has quantization parameter, The boundary intensity of the possible filtering boundary is set to the second boundary intensity.
15. method according to claim 14, it is characterised in that the coding information also includes the adjacent image block Reference picture;
The coding information of the adjacent image block for obtaining the possible filtering boundary both sides also includes:
Coding mode is set to be the reference picture of the described image block of BaseLayer patterns according to preset rules;Can described in obtaining The reference picture of the adjacent image block of energy filtering boundary both sides;
It is described that the boundary intensity of the possible filtering boundary is set to by the first boundary intensity or according to the coding information Two boundary intensities also include:
If the quantization parameter mark indicates the no quantization coefficient of adjacent image block, and the adjacent image block tool There are different reference pictures, then the boundary intensity of the possible filtering boundary is set to the second boundary intensity.
16. method according to claim 15, it is characterised in that the coding information also includes the adjacent image block Motion vector;
The coding information of the adjacent image block for obtaining the possible filtering boundary both sides also includes:
Motion vector by the coding mode for the described image block of BaseLayer patterns is arranged with respect in reference picture With block of locations parameter corresponding when static;Obtain the motion vector of the adjacent image block of the possible filtering boundary both sides;
It is described that the boundary intensity of the possible filtering boundary is set to by the first boundary intensity or according to the coding information Two boundary intensities also include:
If the quantization parameter mark indicates the no quantization coefficient of adjacent image block, and the adjacent image block has Difference between identical reference picture, and the adjacent image block motion vector is more than or equal to predetermined threshold value, then The boundary intensity of the possible filtering boundary is set to the second boundary intensity.
17. method according to claim 16, it is characterised in that it is described according to the coding information by the possible filter The boundary intensity on ripple border, which is set to different boundary intensities, also to be included:
If the quantization parameter mark indicates no quantization coefficient in the adjacent image block, and the adjacent image block There is the difference between identical reference picture, and the adjacent image block motion vector to be less than predetermined threshold value, then will be described The boundary intensity of possible filtering boundary is set to the first boundary intensity.
18. the method according to claim 11 to 17 any one, it is characterised in that first boundary intensity is 0, institute It is 1 to state the second boundary intensity.
19. a kind of boundary intensity determining device, it is characterised in that including:
First border determining unit, the possibility filtering boundary for determining block-eliminating effect filtering DBF;
First information acquiring unit, the possibility filtering boundary both sides for obtaining first border determining unit determination are adjacent The coding mode and coding information of image block;
First boundary intensity determining unit, for the coding mould of the adjacent image block obtained when the first information acquiring unit Formula is not at least to include a Primary layer in frame in Intra patterns, and the coding mode of the adjacent image block BaseLayer patterns, then be set to different sides according to the coding information by the boundary intensity of the possible filtering boundary Boundary's intensity.
20. device according to claim 19, it is characterised in that
The first information acquiring unit, specifically for obtaining the possibility filtering boundary two that first border determining unit is determined The quantization parameter whether adjacent image block in side has quantization parameter is identified;
The different boundary intensity includes the first boundary intensity and the second boundary intensity, and the second boundary intensity is more than described The first boundary intensity, the first boundary intensity determining unit, if equal specifically for the coding mode of the adjacent image block It is BaseLayer patterns and the quantization parameter mark instruction no quantization coefficient of adjacent image block, then by the possibility The boundary intensity of filtering boundary be set to the first boundary intensity.
21. device according to claim 19, it is characterised in that
The first information acquiring unit, specifically for obtaining the mark adjacent image block that the coding information includes The quantization parameter for whether having quantization parameter is identified, the reference picture of the adjacent image block, and the adjacent image block Motion vector;
The first boundary intensity determining unit includes:First parameter set unit, the first parameter acquiring unit and the first side Boundary's intensity determination subelement;
First parameter set unit, for setting the figure that coding mode is BaseLayer patterns according to preset rules As block reference picture and the coding mode is set to phase for the motion vector of described image block of BaseLayer patterns For in reference picture with the parameter that block of locations is corresponding when static;
First parameter acquiring unit, for obtaining the possibility filtering boundary both sides phase that first border determining unit is determined The quantization parameter mark of adjacent image block, and the adjacent image block reference picture, and the adjacent image block Motion vector;
The different boundary intensity includes the first boundary intensity and the second boundary intensity, and the second boundary intensity is more than described The first boundary intensity;The first boundary intensity determination subelement, if being indicated for quantization parameter mark described adjacent The no quantization coefficient of image block, and the adjacent image block has identical reference picture, and the adjacent figure As the difference of the motion vector of block is less than predetermined threshold value, then the boundary intensity of the possible filtering boundary is set to the first side Boundary's intensity.
22. device according to claim 21, it is characterised in that
The first boundary intensity determination subelement, is indicated in the adjacent image block if being additionally operable to the quantization parameter mark Image block described at least one has quantization parameter, or the adjacent image block has different reference pictures, Huo Zhesuo The difference for stating adjacent image block motion vector is more than or equal to predetermined threshold value, then the border of the possible filtering boundary is strong Degree is set to the second boundary intensity.
23. device according to claim 19, it is characterised in that
The first information acquiring unit, specifically for obtaining the possibility filtering boundary two that first border determining unit is determined The quantization parameter whether adjacent image block in side has quantization parameter is identified;
The different boundary intensity includes the first boundary intensity and the second boundary intensity, and the second boundary intensity is more than described The first boundary intensity;The first boundary intensity determining unit, if indicating the phase specifically for quantization parameter mark Image block described at least one in adjacent image block has quantization parameter, then sets the boundary intensity of the possible filtering boundary It is set to the second boundary intensity.
24. device according to claim 23, it is characterised in that
The first information acquiring unit, is additionally operable to set coding mode according to preset rules for described in BaseLayer patterns The reference picture of image block;Obtain the reference picture of the adjacent image block of the possible filtering boundary both sides;
The first boundary intensity determining unit, if being additionally operable to the quantization parameter mark indicates the equal nothing of adjacent image block Quantization parameter, and the adjacent image block has different reference pictures, then by the border of the possible filtering boundary Intensity is set to the second boundary intensity.
25. device according to claim 24, it is characterised in that
The first information acquiring unit, is additionally operable to obtain the motion for the adjacent image block that the coding information includes Vector;
The first boundary intensity determining unit includes:Second parameter set unit, the second parameter acquiring unit and the second side Boundary's intensity determination subelement;
Second parameter set unit, for by the coding mode for BaseLayer patterns described image block motion Vector is arranged with respect in reference picture with the parameter that block of locations is corresponding when static;
Second parameter acquiring unit, for obtain the possible filtering boundary both sides adjacent image block motion to Amount;
The second boundary intensity determination subelement, if indicating the equal nothing of adjacent image block for quantization parameter mark Quantization parameter, and the adjacent image block has an identical reference picture, and the adjacent image block motion vector it Between difference be more than or equal to predetermined threshold value, then the boundary intensity boundary intensity of the possible filtering boundary is set to the Two boundary intensities.
26. device according to claim 25, it is characterised in that
The second boundary intensity determination subelement, is indicated in the adjacent image block if being additionally operable to the quantization parameter mark No quantization coefficient, and the adjacent image block has identical reference picture, and the adjacent image block motion arrow Difference between amount is less than predetermined threshold value, then the boundary intensity of the possible filtering boundary is set into the first boundary intensity.
27. the device according to claim 20 to 26 any one, it is characterised in that the first described boundary intensity is 0, Described the second boundary intensity is 1.
28. a kind of filter of deblocking effect, it is characterised in that including:
The second boundary determining unit, the possibility filtering boundary for determining block-eliminating effect filtering DBF;
Second information acquisition unit, the possibility filtering boundary both sides for obtaining the second boundary determining unit determination are adjacent The coding mode and coding information of image block;
The second boundary strength determining unit, for the coding mould of the adjacent image block obtained when second information acquisition unit Formula is not at least to include a Primary layer in frame in Intra patterns, and the coding mode of the adjacent image block BaseLayer patterns, then be set to different sides according to the coding information by the boundary intensity of the possible filtering boundary Boundary's intensity;
Threshold value acquiring unit, for being used to obtaining first threshold and the using the boundary intensity of the determination as reference factor Two threshold values, the first threshold is used to determine whether to be filtered the possible filtering boundary, and the Second Threshold is used for It is determined that the filtering strength that the possible filtering boundary being filtered to needs is filtered;
Decision unit is filtered, the adjacent figure in the possible filtering boundary both sides for being determined according to the second boundary determining unit As the pixel gradient in block in preset range and the first threshold determine the need for carrying out the possible filtering boundary Filtering;
Filter control unit, if determining that needs are filtered for filtering decision unit, according to possible filtering boundary both sides The relation of pixel gradient and Second Threshold in adjacent image block in preset range determines to perform the wave filter of filtering, and uses Institute's determination wave filter is performed is filtered processing to the possible filtering boundary for needing to be filtered.
29. device according to claim 28, it is characterised in that
Second information acquisition unit, specifically for obtaining the possibility filtering boundary two that the second boundary determining unit is determined The quantization parameter whether adjacent image block in side has quantization parameter is identified;
The different boundary intensity includes the first boundary intensity and the second boundary intensity, and the second boundary intensity is more than described The first boundary intensity;The second boundary strength determining unit, if equal specifically for the coding mode of the adjacent image block It is BaseLayer patterns and the quantization parameter mark instruction no quantization coefficient of adjacent image block, then by the possibility The boundary intensity of filtering boundary be set to the first boundary intensity.
30. device according to claim 29, it is characterised in that
Second information acquisition unit, specifically for obtaining the mark adjacent image block that the coding information includes The quantization parameter for whether having quantization parameter is identified, the reference picture of the adjacent image block, and the adjacent image block Motion vector;
The second boundary strength determining unit includes:3rd parameter set unit, the 3rd parameter acquiring unit and the 3rd side Boundary's intensity determination subelement;
3rd parameter set unit, for setting the described image block that coding mode is BaseLayer patterns according to preset rules Reference picture and the coding mode is arranged with respect to for the motion vector of described image block of BaseLayer patterns With the parameter that block of locations is corresponding when static in reference picture;
3rd parameter acquiring unit, for obtaining the possibility filtering boundary both sides phase that the second boundary determining unit is determined The quantization parameter mark of adjacent image block, and the adjacent image block reference picture, and the adjacent image block Motion vector;
The different boundary intensity includes the first boundary intensity and the second boundary intensity, and the second boundary intensity is more than described The first boundary intensity;The 3rd boundary intensity determination subelement, if being indicated for quantization parameter mark described adjacent The no quantization coefficient of image block, and the adjacent image block has identical reference picture, and the adjacent figure As the difference of the motion vector of block is less than predetermined threshold value, then the boundary intensity of the possible filtering boundary is set to the first side Boundary's intensity.
31. device according to claim 30, it is characterised in that
The 3rd boundary intensity determination subelement, is indicated in the adjacent image block if being additionally operable to the quantization parameter mark Image block described at least one has quantization parameter, or the adjacent image block has different reference pictures, Huo Zhesuo The difference for stating adjacent image block motion vector is more than or equal to predetermined threshold value, then the border of the possible filtering boundary is strong Degree is set to the second boundary intensity.
32. device according to claim 28, it is characterised in that
Second information acquisition unit, specifically for obtaining the possibility filtering boundary two that the second boundary determining unit is determined The quantization parameter whether adjacent image block in side has quantization parameter is identified;
The different boundary intensity includes the first boundary intensity and the second boundary intensity, and the second boundary intensity is more than described The first boundary intensity;The second boundary strength determining unit, if indicating the phase specifically for quantization parameter mark Image block described at least one in adjacent image block has quantization parameter, then by the boundary intensity side of the possible filtering boundary Boundary's intensity is set to the second boundary intensity.
33. device according to claim 32, it is characterised in that
Second information acquisition unit, is additionally operable to set coding mode according to preset rules for described in BaseLayer patterns The reference picture of image block;Obtain the reference picture of the adjacent image block of the possible filtering boundary both sides;
The second boundary strength determining unit, if being additionally operable to the quantization parameter mark indicates the equal nothing of adjacent image block Quantization parameter, and the adjacent image block has different reference pictures, then by the border of the possible filtering boundary Intensity boundary intensity is set to the second boundary intensity.
34. device according to claim 33, it is characterised in that
Second information acquisition unit, is additionally operable to obtain the motion for the adjacent image block that the coding information includes Vector;
The second boundary strength determining unit includes:4th parameter set unit, the 4th parameter acquiring unit and the 4th side Boundary's intensity determination subelement;
4th parameter set unit, for by the coding mode for BaseLayer patterns described image block motion Vector is arranged with respect in reference picture with the parameter that block of locations is corresponding when static;
4th parameter acquiring unit, for obtain the possible filtering boundary both sides adjacent image block motion to Amount;
The 4th boundary intensity determination subelement, if indicating the equal nothing of adjacent image block for quantization parameter mark Quantization parameter, and the adjacent image block has an identical reference picture, and the adjacent image block motion vector it Between difference be more than or equal to predetermined threshold value, then the boundary intensity of the possible filtering boundary is set to the second boundary strong Degree.
35. device according to claim 34, it is characterised in that
The 4th boundary intensity determination subelement, is indicated in the adjacent image block if being additionally operable to the quantization parameter mark No quantization coefficient, and the adjacent image block has identical reference picture, and the adjacent image block motion arrow Difference between amount is less than predetermined threshold value, then the boundary intensity of the possible filtering boundary is set into the first boundary intensity.
36. the device according to claim 29 to 35 any one, it is characterised in that the first described boundary intensity is 0, Described the second boundary intensity is 1.
CN201210592468.5A 2012-12-31 2012-12-31 A kind of boundary intensity determines method, block-eliminating effect filtering method and device Active CN103916676B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210592468.5A CN103916676B (en) 2012-12-31 2012-12-31 A kind of boundary intensity determines method, block-eliminating effect filtering method and device
PCT/CN2013/087494 WO2014101590A1 (en) 2012-12-31 2013-11-20 Boundary strength determination method, deblocking filtering method, and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210592468.5A CN103916676B (en) 2012-12-31 2012-12-31 A kind of boundary intensity determines method, block-eliminating effect filtering method and device

Publications (2)

Publication Number Publication Date
CN103916676A CN103916676A (en) 2014-07-09
CN103916676B true CN103916676B (en) 2017-09-29

Family

ID=51019861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210592468.5A Active CN103916676B (en) 2012-12-31 2012-12-31 A kind of boundary intensity determines method, block-eliminating effect filtering method and device

Country Status (2)

Country Link
CN (1) CN103916676B (en)
WO (1) WO2014101590A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113473120A (en) * 2015-06-11 2021-10-01 英迪股份有限公司 Method for encoding and decoding image using adaptive deblocking filtering and apparatus therefor
CN107027040B9 (en) 2016-01-29 2020-08-28 华为技术有限公司 Filtering method and device for removing blocking effect
CN109257605B (en) * 2017-07-13 2021-11-19 华为技术有限公司 Image processing method, device and system
CN110988888B (en) * 2019-11-08 2021-10-29 中科长城海洋信息系统有限公司 Method and device for acquiring seabed information
WO2021196035A1 (en) * 2020-03-31 2021-10-07 深圳市大疆创新科技有限公司 Video coding method and apparatus
CN114584790A (en) * 2022-01-21 2022-06-03 百果园技术(新加坡)有限公司 Video brightness filtering method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101379511A (en) * 2005-03-18 2009-03-04 夏普株式会社 Methods and systems for extended spatial scalability with picture-level adaptation
CN102316318A (en) * 2010-07-07 2012-01-11 中国科学院微电子研究所 H.264 standard-based deblocking filter boundary strength computing device and method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI375470B (en) * 2007-08-03 2012-10-21 Via Tech Inc Method for determining boundary strength
US9794597B2 (en) * 2008-04-11 2017-10-17 Thomson Licensing Dtv Methods and apparatus for deblocking filtering of non-local intra prediction
US9185430B2 (en) * 2010-03-15 2015-11-10 Mediatek Singapore Pte. Ltd. Deblocking filtering method and deblocking filter

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101379511A (en) * 2005-03-18 2009-03-04 夏普株式会社 Methods and systems for extended spatial scalability with picture-level adaptation
CN102316318A (en) * 2010-07-07 2012-01-11 中国科学院微电子研究所 H.264 standard-based deblocking filter boundary strength computing device and method

Also Published As

Publication number Publication date
CN103916676A (en) 2014-07-09
WO2014101590A1 (en) 2014-07-03

Similar Documents

Publication Publication Date Title
CN103916676B (en) A kind of boundary intensity determines method, block-eliminating effect filtering method and device
CN109120926B (en) Predicting mode selecting method, device and medium
WO2020182158A1 (en) Encoding method, decoding method, and apparatuses thereof
CN105247864B (en) Encoder, decoder and image processing system
CN109600611A (en) Loop circuit filtering method, loop filter, electronic equipment and readable medium
CN110324622A (en) A kind of code rate controlling method for video coding, device, equipment and storage medium
CN102484710B (en) System and method for pixel interpolating
CN108111851A (en) A kind of block-removal filtering method and terminal
CN106127673A (en) A kind of method for processing video frequency, device and computer equipment
CN111010576B (en) Data processing method and related equipment
CN115834897B (en) Processing method, processing apparatus, and storage medium
CN112532975B (en) Video encoding method, video encoding device, computer equipment and storage medium
CN108200622A (en) A kind of residence reselecting and mobile terminal
CN109993817A (en) A kind of implementation method and terminal of animation
CN103677553A (en) Method and device for achieving dynamic background
CN105992001A (en) Method and device for carrying out quantification processing on picture
CN110418209A (en) A kind of information processing method and terminal device applied to transmission of video
CN108282608A (en) Multizone focusing method, mobile terminal and computer readable storage medium
CN108712763A (en) A kind of call method and mobile terminal based on Wireless LAN
CN113873236B (en) Decoding and encoding method based on adaptive intra-frame refreshing mechanism and related equipment
CN109587501A (en) Carry out the method, apparatus and storage medium of estimation
CN107277592A (en) Multimedia data playing method, device and storage medium based on embedded platform
CN104077129A (en) Icon processing method and device and terminal device
CN116847088B (en) Image processing method, processing apparatus, and storage medium
CN107484225A (en) A kind of access control method, device and user terminal

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