CN102801973A - Video image deblocking filter method and device - Google Patents

Video image deblocking filter method and device Download PDF

Info

Publication number
CN102801973A
CN102801973A CN2012102364910A CN201210236491A CN102801973A CN 102801973 A CN102801973 A CN 102801973A CN 2012102364910 A CN2012102364910 A CN 2012102364910A CN 201210236491 A CN201210236491 A CN 201210236491A CN 102801973 A CN102801973 A CN 102801973A
Authority
CN
China
Prior art keywords
filtering
block
sub
current
memory
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.)
Granted
Application number
CN2012102364910A
Other languages
Chinese (zh)
Other versions
CN102801973B (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.)
Allwinner Technology Co Ltd
Original Assignee
Allwinner Technology 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 Allwinner Technology Co Ltd filed Critical Allwinner Technology Co Ltd
Priority to CN201210236491.0A priority Critical patent/CN102801973B/en
Publication of CN102801973A publication Critical patent/CN102801973A/en
Application granted granted Critical
Publication of CN102801973B publication Critical patent/CN102801973B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a video image deblocking filter method and a video image deblocking filter device. According to the method, a video or image frame is divided into a plurality of 16*16 macro blocks, and each macro block is divided into 16 4*4 subblocks. The method comprises the following steps of: reading the pixel data of the current macro blocks from a first storage device and a second storage device to a specified buffer group according to the instruction information described by a control vector when the pixel data of the current macro blocks is read; and executing operations of determining the number of corresponding subblocks, calculating the filter strength, determining the filter type, performing filtering operation processing and performing data write-back processing according to the instruction information described by the control vector in the process of executing filtering processing of each current subblock. The essence is that the universal filtering processing operation on different coding and decoding standards is executed according to the instruction information described by the universal control vector in a control table. According to the video image deblocking filter method and the video image deblocking filter device, standard deblocking filter processing can be performed on different videos, the universality is high, and the filtering speed is increased.

Description

Video image block-removal filtering method and device
Technical field
The present invention relates to the digital image processing techniques field, particularly relate to the video image block-removal filtering method and the device that are applied in the video coding and decoding technology.
Background technology
In the prior art, HD video encoding and decoding processing is handled block elimination filtering and has been proposed unprecedented requirement.
It is all video codings and the considerable link of decoding that block elimination filtering is handled, and all pursue the Video processing of compression efficiency and quality all can carry out relevant treatment.But, because the different video standard has different operation methods in the processing of block elimination filtering, also therefore becoming each other typical characteristics of video standard phase region, this also challenges to the versatility of deblocking filtering apparatus simultaneously; Because the complexity of block elimination filtering operation method is handled a macro block or a frame needs the more time, these encoding and decoding that obviously are unfavorable for high definition or ultra high-definition video are handled.
The practices well of reply the problems referred to above is at present: the different video form is carried out independent process, only share in the storage link; Perhaps, adopt parallel mode, meet the demands through increasing computing unit for pick up speed.
Such way versatility is poor, and processing speed is slow, also can increase the general-purpose chip cost simultaneously, reduce efficient.
Generally speaking, existing deblocking filtering apparatus can't be realized different video formats and standard are carried out filtering, and the filtering method filtration efficiency is low in the prior art.Therefore for prior art, how to solve block elimination filtering, and raising Filtering Processing speed is a problem demanding prompt solution to various criterion.
Summary of the invention
The invention provides a kind of video image block-removal filtering method and device, handle problems in order to solve, and improve the processing speed of block elimination filtering to the block elimination filtering of various criterion.
Based on the problems referred to above, a kind of video image block-removal filtering method provided by the invention, said block-removal filtering method is divided into several macro blocks of 16 * 16 with a video or picture frame, and each macro block is divided into 16 4 * 4 sub-piece, comprises the following steps:
Steps A, when reading the current macro block pixels data, be read in the group of buffers of appointment from first memory and second memory according to the pixel data of the described command information of said dominant vector said current macro;
Step B, in carrying out current macro during every sub-block filtering, the piece of confirming to describe the data interaction information of current filter window and group of buffers and confirm the sub-piece of current filtering according to the described command information of filtering dominant vector number;
Step C, according to the intensity of the sub-piece of the current filtering of said data interaction information calculations and judge whether that needs carry out filtering to current sub-block;
Step D, if judgement need carry out filtering to current sub-block, then confirm the filtering type of current sub-block, and confirm the method for the corresponding filtering operation of current sub-block through the filtering type according to said data interaction information; If judge and need not carry out filtering to current sub-block, then direct execution in step G;
Step e, current sub-block is carried out limit filtering and the limit filtering operation result of current sub-block is kept in the group of buffers according to the method for the filtering operation of the current sub-block of confirming;
Step F, according to the described command information of dominant vector, the said operation result of said current sub-block limit filtering in the group of buffers is written back in the second memory and finishes the filtering operation of the sub-piece of current filtering;
Step G, judge whether current sub-block is last height piece of filtering operation in the current macro, if judged result is for being then to carry out following step H; If judged result is returned step B and is carried out the Filtering Processing operation to next sub-block for not;
The Filtering Processing operation of step H, end current macro.
Preferably, but as a kind of execution mode, comprise also before the said steps A that carrying out preparation treats the filtering data operation, said execution treats that the filtering data operation specifically comprises the steps:
Step S1, the pixel data of current macro is kept in the first memory, and the pixel data of each sub-block on top, the left side and upper left limit that will be adjacent with current macro is kept in the second memory;
Step S2, transfer the described command information of dominant vector of control table in the 3rd memory.
Further, but as a kind of execution mode, concrete performing step is following among the said step C:
C1, according to the intensity of the sub-piece of the current filtering of said data interaction information calculations;
C2, if the boundary intensity of the current sub-block that calculates is 0, then judge and need not carry out limit filtering current sub-block; If the boundary intensity of the current sub-block that calculates is not 0, then judgement need be carried out limit filtering to current sub-block.
Preferably, the said current filter window and the data interaction information of group of buffers comprise current macro information, current sub-block information and treat the neighbor data message of the adjacent sub-blocks on filtering limit.
Correspondingly; The embodiment of the invention also provides a kind of video image deblocking filtering apparatus; Comprise first memory; Second memory, bank of filters, group of buffers, the 3rd memory, reading unit, confirm unit, filtering strength judging unit, filtering operation unit, processing unit, judging unit, end unit, integrated treatment unit and dominant vector table, wherein:
Said first memory is used to preserve the pixel data of current filtered macroblock;
Said second memory is used to preserve the pixel data of each sub-block on the top adjacent with current macro, the left side and upper left limit; And preserve the operation result that reads in the group of buffers;
Said group of buffers is used to preserve the pixel data that reads in from first memory and second memory;
Said reading unit is used for when reading the current macro block pixels data, the pixel data of said current macro is read into the group of buffers of appointment according to the described command information of said dominant vector from first memory and second memory;
Said definite unit, when being used in carrying out current macro every sub-block filtering, the piece of confirming to describe the data interaction information of current filter window and group of buffers and confirm the sub-piece of current filtering according to the described command information of filtering dominant vector number;
Said filtering strength judging unit is used for according to the intensity of the sub-piece of the current filtering of said data interaction information calculations and judges whether that needs carry out filtering to current sub-block; If judgement needs, then confirm the filtering type of current sub-block, and confirm the method for the corresponding filtering operation of current sub-block through the filtering type according to the said data interaction information in the described command information of said dominant vector; If judging does not need, then directly return judging unit and carry out corresponding operation;
Said filtering operation unit is used for current sub-block being carried out limit filtering and the limit filtering operation result of current sub-block being kept in the group of buffers according to the method for the filtering operation of the current sub-block of confirming;
Said bank of filters is used for the sub-piece of current filtering is carried out limit filtering;
Said processing unit is used for according to the described command information of dominant vector, and the said operation result of said current sub-block limit filtering in the group of buffers is written back in the second memory and finishes the filtering operation of the sub-piece of current filtering;
Said judging unit is used for judging whether current sub-block is last height piece of current macro filtering operation, if judged result is for being the operation of then redirect end unit execution end current macro Filtering Processing; If judged result is then returned the corresponding Filtering Processing operation of confirming next sub-block of unit execution for not;
Said the 3rd memory is used to preserve said control table;
Said end unit is used to finish the Filtering Processing operation of current macro;
Said integrated treatment unit is used for according to the described command information of said dominant vector, coordinates each unit and carries out corresponding operation.
Preferably, but as a kind of execution mode, said deblocking filtering apparatus also comprises control unit;
Said control unit is used for transferring the described command information of dominant vector of the 3rd memory control table.
Further, but as a kind of execution mode, said filtering strength judging unit specifically comprises computation subunit and judgement subelement, wherein:
Said computation subunit is used for the intensity according to the sub-piece of the current filtering of said data interaction information calculations;
Said judgement subelement, being used at the boundary intensity that calculates current sub-block is 0 o'clock, judges and need not carry out limit filtering to current sub-block; Boundary intensity calculating current sub-block is not 0 o'clock, and judgement need be carried out filtering to current sub-block.
Preferably, the block of pixels of each buffer loading 4x4 and equal ability interaction data in the said group of buffers.
Preferably, said dominant vector table comprises a plurality of basic controlling vectors, and said different dominant vectors are described corresponding instruction information; The command information that said dominant vector is described comprises: the block type of the sub-piece that the filtering limit is adjacent; The filtering direction, the numbering of the sub-piece that the filtering limit is adjacent, the sub-block number that reads from first memory; The sub-block number that reads from second memory; Be written to the group number of buffer, the group number of read buffers, the read buffers group is carried out each source buffer group number of data interaction and purpose buffer group number between the block number of second memory and group of buffers internal buffer;
Preferably, said control table is applicable to different video encoding and decoding standards, and the described command information of the dominant vector of said control table is the decomposition control procedure of general-purpose operation method in the different video encoding and decoding standard.
Beneficial effect of the present invention comprises:
A kind of video image block-removal filtering method provided by the invention and device, wherein method is divided into several macro blocks of 16 * 16 with a video or picture frame, and each macro block is divided into 16 4 * 4 sub-piece.At first, when reading the current macro block pixels data, be read in the group of buffers of appointment from first memory and second memory according to the pixel data of the described command information of dominant vector with current macro; Then, when carrying out the Filtering Processing of each current sub-block, all carry out the confirming of corresponding sub-piece piece number, the calculating of filtering strength, the operation that the filtering type is confirmed, filtering operation is handled and the data write-back is handled according to the described command information of dominant vector.Its essence is through the described command information of general purpose control vector in the control table and carry out the general Filtering Processing operation of different video encoding and decoding standard execution.
Wherein, The present invention is like this through general purpose control vector block elimination filtering processing method in the control table, because reasonably adjusted the local filter sequence of sub-piece, so ensureing the quantity that has reasonably reduced group of buffers under the condition that does not influence block elimination filtering efficient; Improve Filtering Processing speed simultaneously; The present invention is more to speed proposition higher requirement and encoded video form in view of the complexity and the HD video encoding and decoding of block elimination filtering, and a kind of video image block-removal filtering method and device are provided, and it better tackles the complexity of block elimination filtering; Versatility is good, can satisfy the HD video encoding and decoding processing requirements of multiple form.
Description of drawings
Fig. 1 is the schematic flow sheet of an embodiment of video image block-removal filtering method of the present invention;
Fig. 2 concerns sketch map for macro block, sub-piece and the dot structure in the video image block elimination filtering of the present invention;
Fig. 3 is the sketch map of group of buffers in the deblocking filtering apparatus of video image deblocking filtering apparatus one embodiment of the present invention;
H.264 Fig. 4 adopts standard to the block elimination filtering order of the luminance pixel filtering of 16 * 16 macro blocks for the block-removal filtering method of prior art;
Fig. 5 is an embodiment of video image block-removal filtering method of the present invention, and the H.264 standard of employing is to the block elimination filtering order of the luminance pixel filtering of 16 * 16 macro blocks;
Fig. 6 is the structural representation of video image deblocking filtering apparatus one embodiment of the present invention.
Embodiment
Below in conjunction with Figure of description, the embodiment of video image block-removal filtering method of the present invention and device is described.
A kind of video image block-removal filtering method that the embodiment of the invention provides, block-removal filtering method is divided into several macro blocks of 16 * 16 with a video frame image, and each macro block is divided into 16 4 * 4 sub-piece, and is as shown in Figure 1, specifically may further comprise the steps:
Steps A, when reading the current macro block pixels data, be read in the group of buffers of appointment from first memory and second memory according to the pixel data of the described command information of dominant vector current macro;
Step B, in carrying out current macro during every sub-block filtering, the piece of confirming to describe the data interaction information of current filter window and group of buffers and confirm the sub-piece of current filtering according to the described command information of filtering dominant vector number;
Step C, according to the intensity of the sub-piece of the current filtering of data interaction information calculations and judge whether that needs carry out filtering to current sub-block;
Step D, if judgement need carry out filtering to current sub-block, then confirm the filtering type of current sub-block, and confirm the method for the corresponding filtering operation of current sub-block through the filtering type according to data interaction information; If judge and need not carry out filtering to current sub-block, then direct execution in step G;
Step e, current sub-block is carried out limit filtering and the limit filtering operation result of current sub-block is kept in the group of buffers according to the method for the filtering operation of the current sub-block of confirming;
Step F, according to the described command information of dominant vector, the operation result of current sub-block limit filtering in the group of buffers is written back in the second memory and finishes the filtering operation of the sub-piece of current filtering;
Step G, judge whether current sub-block is last height piece of filtering operation in the current macro, if judged result is for being then to carry out following step H; If judged result is returned step B and is carried out the Filtering Processing operation to next sub-block for not;
The Filtering Processing operation of step H, end current macro.
Preferably, but, also comprise before the steps A carrying out and prepare to treat the filtering data operation, carry out and treat that the filtering data operation specifically comprises the steps: as a kind of execution mode
Step S1, the pixel data of current macro is kept in the first memory, and the pixel data of each sub-block on top, the left side and upper left limit that will be adjacent with current macro is kept in the second memory;
Step S2, transfer the described command information of dominant vector of control table in the 3rd memory.
Illustrate, as shown in Figure 2, each sub-block that the adjacent top of current macro (sub-block number is 12,13,14,15), the left side (sub-block number is 3,7,11,15) and upper left limit (sub-block number is 15) are corresponding.
Further, but as a kind of execution mode, concrete performing step is following among the above-mentioned steps C:
C1, according to the intensity of the sub-piece of the current filtering of data interaction information calculations;
C2, if the boundary intensity of the current sub-block that calculates is 0, then judge and need not carry out limit filtering current sub-block; If the boundary intensity of the current sub-block that calculates is not 0, then judgement need be carried out limit filtering to current sub-block.
Preferably, the data interaction information of current filter window and group of buffers comprises current macro information, current sub-block information and treat the neighbor data message of the adjacent sub-blocks on filtering limit.
Particularly, in the described command information of dominant vector, comprise current macro information, current sub-block information and treat the neighbor data message of the adjacent sub-blocks on filtering limit; Wherein, above-mentioned information all corresponding dominant vector in the control table.
Wherein, but as a kind of execution mode, the dominant vector table comprises a plurality of dominant vectors; Different dominant vectors are described corresponding instruction information, and the command information that dominant vector is described comprises: the block type of the sub-piece that the filtering limit is adjacent, filtering direction; The numbering of the sub-piece that the filtering limit is adjacent, the sub-block number that reads from first memory, the sub-block number that reads from second memory; Be written to the group number of buffer, the group number of read buffers, the read buffers group is carried out each source buffer group number of data interaction and purpose buffer group number etc. between the block number of second memory and group of buffers internal buffer; Following table is dominant vector instruction card in the control table, and is as shown in the table:
Figure BDA00001866156000081
In above-mentioned table, the dominant vector of control table disposes according to the coding and decoding video operation method of different-format, and is stored in the 3rd memory.When playing wherein a kind of video format, with carrying out the described command information of dominant vector of transferring control table in the 3rd memory earlier.
For the structural relation of macro block, sub-piece and each pixel is described better, as shown in Figure 2.Wherein, Indicating 0 ~ 15 is the label of working as each sub-block of pre-treatment interior macroblocks; Remove in addition; When the filtering pixel data is treated in configuration, also to dispose the pixel data of each sub-block of the adjacent top of current macro (sub-block number is 12,13,14,15), the left side (sub-block number is 3,7,11,15) and upper left limit (sub-block number is 15).
Preferably, in above-mentioned control table, the described command information of the dominant vector of control table is the decomposition control procedure of general-purpose operation method in the different video encoding and decoding standard.Although various video deblocking filtering methods are not quite similar, all can simply be decomposed into following universal process:
Confirm to be read into the piece number of buffer from first memory and second memory according to control table.
Confirm the piece number of the sub-piece of this filtering according to control table.
Command informations such as the correlator block type that provides according to control table are also confirmed filtering strength and filtering type through the filtering pixel in the above-mentioned information.
Carry out filtering according to the standard agreement operation method.
Confirm that according to control table filtered is written back to the position in the second memory.
Judge whether current sub-block is last height piece of filtering operation in the current macro, operate if judged result, finishes the Filtering Processing of whole macro block for being; If judged result then continues to carry out the Filtering Processing operation to next sub-block for not.
After general step was confirmed, various video deblocking filtering method controls just were converted into the dominant vector based on framework in the control table, because the different video operation method is different, the control corresponding vector is also different.Simultaneously, a kind of video deblocking filtering method adopts the Different control vector, and filtration efficiency is also inequality.The key of the formation embodiment of the invention of dominant vector in the control table.Above-mentioned control table is applicable to different video encoding and decoding standards, and the described command information of the dominant vector of control table is the decomposition control procedure of general-purpose operation method in the different video encoding and decoding standard.
Dominant vector table provided by the invention is being followed following 3 principles simultaneously in the different coding and decoding video block elimination filtering processes; 3 principles specifically comprise following content:
Principle one, strictness are followed each pixel filter sequencing in the standard agreement, on this basis, and adjustable monoblock limit filter sequence;
Principle two, each pixel is is only read and write once, rationally arranges the quantity of group of buffers device;
Principle three guarantees each limit of clock cycle processing, and filter arithmetic device is not idle, finishes up to macro block filtering.
Remove filtering strength and judge and the time-delay of filtering operation unit flowing water that each clock cycle of arithmetic element, just arithmetic element was not idle at row or the row of handling different edge.This preparation of treating filtering data proposes higher requirement.
Wherein, second memory has frequent data access, must have buffer to preserve and treat that operand is according to the result who perhaps calculates; In embodiments of the present invention, group of buffers is set has 5 ~ 10 groups, 16 pixels of every group of storage, i.e. and piece is referring to Fig. 3.Wherein two groups are respectively the main window of filtering, and all group of buffers can data interaction; Confirm the quantity of group of buffers.In order to make each clock cycle handle a limit, group of buffers will improve abundant, instant data to be prepared, so its quantity is decided to be between 5 ~ 10 groups.
Under the condition that guarantees the block elimination filtering order, arrange neatly local filter sequence with guarantee filtering data read-only once with write once, to reduce operation to second memory; Guarantee the preparation of instant filtering data simultaneously, avoid filtering operation unit idle, wasted the time.Different video formats has different filtering to stipulate in proper order, and the design of local filter sequence is also different; And the design of filter sequence seems the very big degree of freedom;
Under 3 principle design constraints in the above, local filter sequence degree of freedom in design is very little in fact in fact.These 3 are constrained to: the number of group of buffers; Filtering data can only be read and write once; Filtering data is prepared immediately, and arithmetic element is not idle.
For instance, be example with luminance pixel H.264 below, how resolve and design the block elimination filtering partial order for coding and decoding video.H.264 jointly formulated video compression standard of new generation for IEO/IEC/ and ITU-T two big International Standards Organization.Block-removal filtering method adopts the H.264 block elimination filtering order of standard in Fig. 4 prior art, and wherein heavy line is represented macroblock boundaries, and is as shown in Figure 4; Among the figure 32 luminance pixel limits are numbered, the order of numbering has determined the order of filtering, and the numeral that has underscore with runic has carried out numbering (number order is 0 ~ 15) to 16 4 * 4 sub-piece; In the process of block elimination filtering, for instance, to each sub-block (0,4,8,12) when carrying out filtering of first row; And respectively to luminance pixel filtering while carrying out of 0,1,2, No. 3 sign, and operation result is temporarily stored in the group of buffers, and then be kept in the second memory; To the luminance pixel of No. 4 signs while carrying out during filtering, because No. 4 luminance pixel limits are sub-pieces 0 and the boundary pixel of sub-piece 1, so at this moment when No. 4 luminance pixel limits of filtering, from second memory, read 1 work song piece again again; Can repeat to read second memory like this; Simultaneously, such filter sequence needs a large amount of buffers, has also increased filtering data read-write number of times simultaneously; Like this, also increase design cost widely and handled the time that macro block is required.
Still be filtered into example below H.264 to handle luminance pixel, yet, when the block-removal filtering method that the embodiment of the invention provided carries out filtering; After the local filter sequence adjustment of carrying out, satisfied above-mentioned 3 principles mentioning after, reduced to handle the time that macro block is required greatly; The block-removal filtering method that Fig. 5 provides for the embodiment of the invention adopts the block elimination filtering order to the luminance pixel filtering of macro block of standard H.264; As shown in Figure 5, among the figure 32 luminance pixel limits to be numbered, the order of numbering has determined the order of filtering; Obviously; Filter sequence shown in Figure 5 is different from the filter sequence of prior art, and referring to Fig. 5, the numeral that has underscore with runic has carried out numbering (number order is 0 ~ 15) to 16 4 * 4 sub-piece.The block-removal filtering method that the embodiment of the invention adopted is when filtering luminance pixel limit, earlier with each luminance pixel limit (3,4) of each luminance pixel limit filtering of current sub-block (0,1,2) and the sub-piece 1 that to be kept in the buffer filtering more adjacent with current sub-block 0 and preserve in the buffer, when treating that sub-piece 4 is arrived in filtering; Because sub-piece 0 is adjacent with sub-piece 4, the filtering of at this moment sub-piece 4 need be obtained pixel data from sub-piece 0, and at this moment sub-piece 0 antithetical phrase piece 4 has demand; Therefore sub-piece 0 temporarily also is kept in the group of buffers and (wouldn't the operation result of sub-piece 0 be written back in the second memory); Behind the intact sub-piece 4 of order filtering, judging to draw does not have (sub-piece 5-15) in each of filtering sub-block in the current macro, not adjacent with sub-piece 0 sub-piece; At this moment 0 pair of sub-piece of follow-up filtering of sub-piece (sub-piece 5-15) is non-conterminous; Also just do not need from buffer, to have transferred sub-piece 0 again, at this moment the luminance pixel limit filtering operation result with buffer neutron piece 0 is saved in the second memory, has avoided when the adjacent sub-piece of filtering and sub-piece 0, repeating to transfer the pixel data of sub-piece 0 like this; Also reduced simultaneously the preparation quantity of group of buffers; Improved Filtering Processing speed, although the filter sequence of revising is different with the agreement regulation, concerning each filtering pixel data; In the filter action scope, its filtering sequencing does not change.Reasonably adjusted the local filter sequence of sub-piece, so, improve Filtering Processing speed ensureing the quantity that has reasonably reduced group of buffers under the condition that does not influence block elimination filtering efficient.
Preferably, different video methods has the Different control vector, because each macro block has the limit filtering of 32+16 bar, wherein, and 32 luminance pixel limits, accomplish so each macro block has a lot of steps on 16 chroma pixel limits.These steps have constituted the described command information of dominant vector of dominant vector table, and above-mentioned control table places the 3rd memory.
The core of the deblocking filtering apparatus framework of the embodiment of the invention is in the design of control table and group of buffers.For the different video form, its filter sequence, filtering operation methods etc. are all different, even differ bigger.But deblocking filtering apparatus to the embodiment of the invention; As long as read the general purpose control table; And carry out filtering operation through the described command information of the dominant vector in the control table, and just can realize block elimination filtering to various criterion, it is the design through less buffer simultaneously; Quickened filtration efficiency greatly, the realization of the full HD video decode of its very convenient full format.
Need follow under the condition of each pixel filter sequencing in the standard agreement in strictness when the dominant vector of control table is controlled block elimination filtering, adjust the method for sub-piece limit filter sequence and prefetch data dexterously.
Based on same inventive concept; The embodiment of the invention also provides a kind of video image deblocking filtering apparatus; Because the principle of this device solves problem is similar with aforementioned a kind of video image block-removal filtering method, so the enforcement of this device can repeat part and repeat no more referring to the enforcement of preceding method.
A kind of video image deblocking filtering apparatus that the embodiment of the invention provides; Comprise first memory 1; Second memory 2, bank of filters 3, group of buffers 4, the 3rd memory 5, reading unit 601, confirm unit 602, filtering strength judging unit 603, filtering operation unit 604, processing unit 605, judging unit 606, end unit 607, integrated treatment unit 608 and dominant vector table 609; As shown in Figure 6, wherein:
First memory 1 is used to preserve the pixel data of current filtered macroblock;
Second memory 2 is used to preserve the pixel data of each sub-block on the top adjacent with current macro, the left side and upper left limit; And preserve the operation result that reads in the group of buffers;
Group of buffers 4 is used to preserve the pixel data that reads in from first memory and second memory;
Reading unit 601 is used for when reading the current macro block pixels data, the pixel data of current macro is read into the group of buffers of appointment according to the described command information of dominant vector from first memory and second memory;
Confirm unit 602, when being used in carrying out current macro every sub-block filtering, the piece of confirming to describe the data interaction information of current filter window and group of buffers and confirm the sub-piece of current filtering according to the described command information of filtering dominant vector number;
Filtering strength judging unit 603 is used for according to the intensity of the sub-piece of the current filtering of data interaction information calculations and judges whether that needs carry out filtering to current sub-block; If judgement needs, then confirm the filtering type of current sub-block, and confirm the method for the corresponding filtering operation of current sub-block through the filtering type according to the data interaction information in the described command information of dominant vector; If judging does not need, then directly return judging unit and carry out corresponding operation;
Filtering operation unit 604 is used for current sub-block being carried out limit filtering and the limit filtering operation result of current sub-block being kept in the group of buffers according to the method for the filtering operation of the current sub-block of confirming;
Bank of filters 3 is used for the sub-piece of current filtering is carried out limit filtering;
Processing unit 605 is used for according to the described command information of dominant vector, and the operation result of current sub-block limit filtering in the group of buffers is written back in the second memory and finishes the filtering operation of the sub-piece of current filtering;
Judging unit 606 is used for judging whether current sub-block is last height piece of current macro filtering operation, if judged result is for being the operation of then redirect end unit execution end current macro Filtering Processing; If judged result is then returned the corresponding Filtering Processing operation of confirming next sub-block of unit execution for not;
The 3rd memory 5 is used to preserve control table 609;
End unit 607 is used to finish the Filtering Processing operation of current macro;
Integrated treatment unit 608 is used for according to the described command information of dominant vector, coordinates each unit and carries out corresponding operation.
Preferably, but as a kind of execution mode, deblocking filtering apparatus also comprises control unit 610;
Control unit 610 is used for transferring the described command information of dominant vector of the 3rd memory control table.
Further, but as a kind of execution mode, filtering strength judging unit 603 specifically comprises computation subunit and judgement subelement, wherein:
Computation subunit is used for the intensity according to the sub-piece of the current filtering of data interaction information calculations;
Judge subelement, being used at the boundary intensity that calculates current sub-block is 0 o'clock, judges and need not carry out limit filtering to current sub-block; Boundary intensity calculating current sub-block is not 0 o'clock, and judgement need be carried out filtering to current sub-block.
Preferably, the block of pixels of each buffer loading 4x4 and equal ability interaction data in the group of buffers.
Preferably, the dominant vector table comprises a plurality of basic controlling vectors, and different dominant vectors are described corresponding instruction information; The command information that dominant vector is described comprises: the block type of the sub-piece that the filtering limit is adjacent; The filtering direction, the numbering of the sub-piece that the filtering limit is adjacent, the sub-block number that reads from first memory; The sub-block number that reads from second memory; Be written to the group number of buffer, the group number of read buffers, the read buffers group is carried out each source buffer group number of data interaction and purpose buffer group number between the block number of second memory and group of buffers internal buffer.
Preferably, control table is applicable to different video encoding and decoding standards, and the described command information of the dominant vector of control table is the decomposition control procedure of general-purpose operation method in the different video encoding and decoding standard.
The video image deblocking filtering apparatus that the embodiment of the invention provides, it can tackle the complexity of block elimination filtering preferably, possesses beneficial effects such as speed is fast, versatility is good, can satisfy the HD video encoding and decoding of various video form and handle.
The video image deblocking filtering apparatus that the embodiment of the invention provides, structurally main feature is the design of group of buffers and control table.Deblocking filtering apparatus adopts the flowing water design, and processing speed is fast, and versatility is good.
Each Elementary Function can be realized through computer program in the video image deblocking filtering apparatus that the embodiment of the invention provided.Those skilled in the art should be understood that; Above-mentioned dividing elements mode only is a kind of during plurality of cells is divided; If be divided into other unit or non-division unit, as long as deblocking filtering apparatus has above-mentioned functions, all should be within protection scope of the present invention.
A kind of video image block-removal filtering method provided by the invention and device, wherein method is divided into several macro blocks of 16 * 16 with a video frame image, and each macro block is divided into 16 4 * 4 sub-piece.At first, when reading the current macro block pixels data, be read in the group of buffers of appointment from first memory and second memory according to the pixel data of the described command information of dominant vector with current macro; Then, when carrying out the Filtering Processing of each current sub-block, all carry out the confirming of corresponding sub-piece piece number, the calculating of filtering strength, the operation that the filtering type is confirmed, filtering operation is handled and the data write-back is handled according to the described command information of dominant vector.Its essence is through the described command information of general purpose control vector in the control table and carry out the general Filtering Processing operation of different video encoding and decoding standard execution.
Wherein, The present invention is like this through general purpose control vector block elimination filtering processing method in the control table, because reasonably adjusted the local filter sequence of sub-piece, so ensureing the quantity that has reasonably reduced group of buffers under the condition that does not influence block elimination filtering efficient; Improve Filtering Processing speed simultaneously; The present invention is more to speed proposition higher requirement and encoded video form in view of the complexity and the HD video encoding and decoding of block elimination filtering, and a kind of video image deblocking filtering apparatus is provided, and it better tackles the complexity of block elimination filtering; Versatility is good, can satisfy the HD video encoding and decoding processing requirements of multiple form.
The above embodiment has only expressed several kinds of execution modes of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art under the prerequisite that does not break away from the present invention's design, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with accompanying claims.

Claims (10)

1. a video image block-removal filtering method is divided into several macro blocks of 16 * 16 with a video frame image, and each macro block is divided into 16 4 * 4 sub-piece, it is characterized in that, comprises the following steps:
Steps A, when reading the current macro block pixels data, be read in the group of buffers of appointment from first memory and second memory according to the pixel data of the described command information of said dominant vector said current macro;
Step B, in carrying out current macro during every sub-block filtering, the piece of confirming to describe the data interaction information of current filter window and group of buffers and confirm the sub-piece of current filtering according to the described command information of filtering dominant vector number;
Step C, according to the intensity of the sub-piece of the current filtering of said data interaction information calculations and judge whether that needs carry out filtering to current sub-block;
Step D, if judgement need carry out filtering to current sub-block, then confirm the filtering type of current sub-block, and confirm the method for the corresponding filtering operation of current sub-block through the filtering type according to said data interaction information; If judge and need not carry out filtering to current sub-block, then direct execution in step G;
Step e, current sub-block is carried out limit filtering and the limit filtering operation result of current sub-block is kept in the group of buffers according to the method for the filtering operation of the current sub-block of confirming;
Step F, according to the described command information of dominant vector, the said operation result of said current sub-block limit filtering in the group of buffers is written back in the second memory and finishes the filtering operation of the sub-piece of current filtering;
Step G, judge whether current sub-block is last height piece of filtering operation in the current macro, if judged result is for being then to carry out following step H; If judged result is returned step B and is carried out the Filtering Processing operation to next sub-block for not;
The Filtering Processing operation of step H, end current macro.
2. video image block-removal filtering method according to claim 1 is characterized in that, also comprises before the said steps A carrying out preparing to treat the filtering data operation, and said execution treats that the filtering data operation specifically comprises the steps:
Step S1, the pixel data of current macro is kept in the first memory, and the pixel data of each sub-block on top, the left side and upper left limit that will be adjacent with current macro is kept in the second memory;
Step S2, transfer the described command information of dominant vector of control table.
3. video image block-removal filtering method according to claim 1 is characterized in that, concrete performing step is following among the said step C:
C1, according to the intensity of the sub-piece of the current filtering of said data interaction information calculations;
C2, if the boundary intensity of the current sub-block that calculates is 0, then judge and need not carry out limit filtering current sub-block; If the boundary intensity of the current sub-block that calculates is not 0, then judgement need be carried out limit filtering to current sub-block.
4. video image block-removal filtering method according to claim 1; It is characterized in that; The said current filter window and the data interaction information of group of buffers comprise current macro information, current sub-block information and treat the neighbor data message of the adjacent sub-blocks on filtering limit.
5. video image deblocking filtering apparatus; It is characterized in that; Comprise first memory; Second memory, bank of filters, group of buffers, the 3rd memory, reading unit, confirm unit, filtering strength judging unit, filtering operation unit, processing unit, judging unit, end unit, integrated treatment unit and dominant vector table, wherein:
Said first memory is used to preserve the pixel data of current filtered macroblock;
Said second memory is used to preserve the pixel data of each sub-block on the top adjacent with current macro, the left side and upper left limit; And preserve the operation result that reads in the group of buffers;
Said group of buffers is used to preserve the pixel data that reads in from first memory and second memory;
Said reading unit is used for when reading the current macro block pixels data, the pixel data of said current macro is read into the group of buffers of appointment according to the described command information of said dominant vector from first memory and second memory;
Said definite unit, when being used in carrying out current macro every sub-block filtering, the piece of confirming to describe the data interaction information of current filter window and group of buffers and confirm the sub-piece of current filtering according to the described command information of filtering dominant vector number;
Said filtering strength judging unit is used for according to the intensity of the sub-piece of the current filtering of said data interaction information calculations and judges whether that needs carry out filtering to current sub-block; If judgement needs, then confirm the filtering type of current sub-block, and confirm the method for the corresponding filtering operation of current sub-block through the filtering type according to the said data interaction information in the described command information of said dominant vector; If judging does not need, then directly return judging unit and carry out corresponding operation;
Said filtering operation unit is used for current sub-block being carried out limit filtering and the limit filtering operation result of current sub-block being kept in the group of buffers according to the method for the filtering operation of the current sub-block of confirming;
Said bank of filters is used for the sub-piece of current filtering is carried out limit filtering;
Said processing unit is used for according to the described command information of dominant vector, and the said operation result of said current sub-block limit filtering in the group of buffers is written back in the second memory and finishes the filtering operation of the sub-piece of current filtering;
Said judging unit is used for judging whether current sub-block is last height piece of current macro filtering operation, if judged result is for being the operation of then redirect end unit execution end current macro Filtering Processing; If judged result is then returned the corresponding Filtering Processing operation of confirming next sub-block of unit execution for not;
Said the 3rd memory is used to preserve said control table;
Said end unit is used to finish the Filtering Processing operation of current macro;
Said integrated treatment unit is used for according to the described command information of said dominant vector, coordinates each unit and carries out corresponding operation.
6. video image deblocking filtering apparatus according to claim 1 is characterized in that, also comprises control unit;
Said control unit is used for transferring the described command information of dominant vector of said the 3rd memory control table.
7. video image deblocking filtering apparatus according to claim 1 is characterized in that, said filtering strength judging unit comprises computation subunit and judgement subelement, wherein:
Said computation subunit is used for the intensity according to the sub-piece of the current filtering of said data interaction information calculations;
Said judgement subelement, being used at the boundary intensity that calculates current sub-block is 0 o'clock, judges and need not carry out limit filtering to current sub-block; Boundary intensity calculating current sub-block is not 0 o'clock, and judgement need be carried out filtering to current sub-block.
8. video image deblocking filtering apparatus according to claim 1 is characterized in that, each buffer loads block of pixels and the equal ability interaction data of 4x4 in the said group of buffers.
9. video image deblocking filtering apparatus according to claim 1; It is characterized in that said dominant vector table comprises a plurality of basic controlling vectors, said different dominant vectors are described corresponding instruction information; The command information that said dominant vector is described comprises: the block type of the sub-piece that the filtering limit is adjacent; The filtering direction, the numbering of the sub-piece that the filtering limit is adjacent, the sub-block number that reads from first memory; The sub-block number that reads from second memory; Be written to the group number of buffer, the group number of read buffers, the read buffers group is carried out each source buffer group number of data interaction and purpose buffer group number between the block number of second memory and group of buffers internal buffer.
10. video image deblocking filtering apparatus according to claim 1; It is characterized in that; Said control table is applicable to different video encoding and decoding standards, and the described command information of the dominant vector of said control table is the decomposition control procedure of general-purpose operation method in the different video encoding and decoding standard.
CN201210236491.0A 2012-07-09 2012-07-09 Video image deblocking filter method and device Active CN102801973B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210236491.0A CN102801973B (en) 2012-07-09 2012-07-09 Video image deblocking filter method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210236491.0A CN102801973B (en) 2012-07-09 2012-07-09 Video image deblocking filter method and device

Publications (2)

Publication Number Publication Date
CN102801973A true CN102801973A (en) 2012-11-28
CN102801973B CN102801973B (en) 2015-03-25

Family

ID=47200928

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210236491.0A Active CN102801973B (en) 2012-07-09 2012-07-09 Video image deblocking filter method and device

Country Status (1)

Country Link
CN (1) CN102801973B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105828071A (en) * 2016-03-31 2016-08-03 中国人民解放军国防科学技术大学 Deblocking filtering vectorization realization method facing vector processor
CN108574471A (en) * 2017-03-14 2018-09-25 珠海全志科技股份有限公司 Fully integrated harmonic filter for rf power amplifier circuit
WO2020248618A1 (en) * 2019-06-11 2020-12-17 上海富瀚微电子股份有限公司 Method for realizing loop filtering by dual-core computing unit

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1921625A (en) * 2006-09-15 2007-02-28 清华大学 Filtering method and system of deblocking effect filter
CN101170701A (en) * 2007-11-16 2008-04-30 四川虹微技术有限公司 Block elimination filtering method and device for video encoding and decoding system
CN101472172A (en) * 2007-12-29 2009-07-01 深圳安凯微电子技术有限公司 Method for processing filtering previous data of video decode as well as decoder
WO2009123033A1 (en) * 2008-03-31 2009-10-08 日本電気株式会社 Deblocking filter processing device and deblocking filter processing method
US20110194614A1 (en) * 2010-02-05 2011-08-11 Andrey Norkin De-Blocking Filtering Control

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1921625A (en) * 2006-09-15 2007-02-28 清华大学 Filtering method and system of deblocking effect filter
CN101170701A (en) * 2007-11-16 2008-04-30 四川虹微技术有限公司 Block elimination filtering method and device for video encoding and decoding system
CN101472172A (en) * 2007-12-29 2009-07-01 深圳安凯微电子技术有限公司 Method for processing filtering previous data of video decode as well as decoder
WO2009123033A1 (en) * 2008-03-31 2009-10-08 日本電気株式会社 Deblocking filter processing device and deblocking filter processing method
US20110194614A1 (en) * 2010-02-05 2011-08-11 Andrey Norkin De-Blocking Filtering Control

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105828071A (en) * 2016-03-31 2016-08-03 中国人民解放军国防科学技术大学 Deblocking filtering vectorization realization method facing vector processor
CN105828071B (en) * 2016-03-31 2019-05-24 中国人民解放军国防科学技术大学 The deblocking filtering vectorization implementation method of vector processor-oriented
CN108574471A (en) * 2017-03-14 2018-09-25 珠海全志科技股份有限公司 Fully integrated harmonic filter for rf power amplifier circuit
CN108574471B (en) * 2017-03-14 2021-11-23 珠海全志科技股份有限公司 Fully integrated harmonic filter for radio frequency power amplifying circuit
WO2020248618A1 (en) * 2019-06-11 2020-12-17 上海富瀚微电子股份有限公司 Method for realizing loop filtering by dual-core computing unit

Also Published As

Publication number Publication date
CN102801973B (en) 2015-03-25

Similar Documents

Publication Publication Date Title
CN101170701B (en) Block elimination filtering method and device for video encoding and decoding system
JP2006174486A (en) Deblocking filter for simultaneously performing horizontal and vertical filtering of video data and method of operating the same
CN110337002B (en) HEVC (high efficiency video coding) multi-level parallel decoding method on multi-core processor platform
CN1874516A (en) Implementation device in VLSI of filter for removing blocking effect based on AVS
CN101330617B (en) Hardware implementing method and apparatus for anticipater within multi-standard frame based on mode mapping
CN101583041A (en) Image filtering method of multi-core image encoding processing equipment and equipment
CN107087180A (en) Adaptive loop filter method and apparatus based on subregion basis
CN111654710A (en) Image filtering method, device, equipment and storage medium
CN102801973A (en) Video image deblocking filter method and device
CN101472173A (en) Method, system and filter for filtering de-block
CN103686173B (en) Conversion and inverse transform circuit
CN101115207B (en) Method and device for implementing interframe forecast based on relativity between future positions
CN1589032A (en) Loop filter based on multistage parallel pipeline mode
CN111866507A (en) Image filtering method, device, equipment and storage medium
CN101656885A (en) Parallel decoding method and device in multi-core processor
CN108540797A (en) HEVC based on multi-core platform combines WPP coding methods within the frame/frames
Ma et al. Residual-based video restoration for HEVC intra coding
CN101123725A (en) Hardware implementation method for H.264 block elimination effect filter
CN101635849A (en) Loop filtering method and loop filter
CN101841722B (en) Detection method of detection device of filtering boundary strength
CN101883285A (en) VLSI (Very Large Scale Integration) structural design method of parallel pipeline deblocking filter
CN111698511B (en) Image filtering method, device, equipment and readable storage medium
CN101605263B (en) Method and device for intraframe prediction
CN101459839A (en) Deblocking effect filtering method and apparatus for implementing the method
CN102075753B (en) Method for deblocking filtration in video coding and decoding

Legal Events

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