CN103369327B - A kind of error concealing method and communication equipment - Google Patents

A kind of error concealing method and communication equipment Download PDF

Info

Publication number
CN103369327B
CN103369327B CN201210083926.2A CN201210083926A CN103369327B CN 103369327 B CN103369327 B CN 103369327B CN 201210083926 A CN201210083926 A CN 201210083926A CN 103369327 B CN103369327 B CN 103369327B
Authority
CN
China
Prior art keywords
macro block
pixel
parallelogram
loss
unit
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
CN201210083926.2A
Other languages
Chinese (zh)
Other versions
CN103369327A (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 Cloud Computing 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 CN201210083926.2A priority Critical patent/CN103369327B/en
Publication of CN103369327A publication Critical patent/CN103369327A/en
Application granted granted Critical
Publication of CN103369327B publication Critical patent/CN103369327B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The embodiment of the invention discloses error concealing method and communication equipment, be applied to communication technical field.In the error concealing method of the embodiment of the present invention, after decoding end can first determine the pixel losing macro block, determine loss macro block multiple parallelogrames after rotation again, last select the pixel of a parallelogram as losing macro block the most again from multiple parallelogrames, thus recover loss macro block.Due in mistake masking process, rotating factor in view of transmission image, compare with prior art only recovers to lose the method for macro block by boundary matching algorithm, the embodiment of the present invention can improve the fluency of physical edge Byway in the image after recovering.

Description

A kind of error concealing method and communication equipment
Technical field
The present invention relates to communication technical field, particularly to error concealing method and communication equipment.
Background technology
The when that compression video flowing transmitting in network channel, can be affected by various interchannel noises, be sent out Raw error code or the phenomenon of packet loss, in order to improve the anti-interference of video code flow, improve and packet loss rear video occur Quality, it is necessary to introduce fault recovering mechanism, currently used mistake covers (Error Concealment, EC) Rebuilding loss information, specifically, error concealing method is divided into pretreatment error concealing method, post processing Error concealing method and interactive error concealing method, wherein:
Post processing error concealing method mainly includes spatial domain error concealing method and time domain error masking methods, Spatial domain error concealing method mainly make use of the spatial coherence of video sequence, specifically solves according in frame The adjacent macroblocks of code and utilize spatial interpolation algorithm to estimate the current pixel value losing macro block, recovers to lose Lose macro block;Time domain error masking methods mainly make use of the frame-to-frame correlation of video sequence, the most first estimates Count out the motion vector that loss macro block is possible, then use matching algorithm to choose in reference frame most preferably to mate macro block Replace the current macro block lost.Owing to post processing error concealing method is operated in decoding end, it is not necessary to increase Extra code stream expense, is widely used in the Fault recovery of video data.
Specifically, existing a kind of post processing error concealing method is Boundary Match method, and such as Block-matching is calculated Method (Block Matching Algorithm, BMA), specifically, decoding end can be based on rebuilding macro block and week The dependency of limit macroblock motion vector and borderline flatness, with candidate motion vector weight from reference frame Build loss macro block so that on border, brightness changes minimum i.e. Boundary Distortion minimum.If but transmission is interior Tolerant body occurs, when rotation or video angle occur skew, using existing post processing error concealing method After the image that such as BMA recovers, it may appear that the objects in images edge slack phenomenon of Byway.
Summary of the invention
The embodiment of the present invention provides a kind of error concealing method and communication equipment, improves after recovering The fluency of physical edge Byway in image.
The embodiment of the present invention provides a kind of error concealing method, including:
Select the pixel of optimal reference macro block as the pixel losing macro block in the image of present frame;
Determining the multiple parallelogrames in described present frame, described parallelogram is by described loss macro block A deckle, the opposite side of the described deckle after movement, and described deckle with mobile after opposite side opposite end The line composition of point;Except described fixed in the pixel number run through on described line and described loss macro block Limit is identical with the pixel number that the another side outside opposite side is run through;
The pixel included by a parallelogram is selected to lose as described in the plurality of parallelogram Lose the pixel of macro block.
The embodiment of the present invention provides a kind of communication equipment, including:
Optimum selection unit, for selecting the pixel of optimal reference macro block to lose as in the image of present frame The pixel of macro block;
Tetragon determines unit, for determining the multiple parallelogrames in described present frame, described parallel Tetragon by a deckle of described loss macro block, the opposite side of the described deckle after movement, and described fixed The line composition of opposite side opposite endpoint behind limit and movement;The pixel number run through on described line and institute State that to lose the pixel number run through except described deckle another side in addition to opposite side in macro block identical;
Pixel selection unit, for selecting in described tetragon determines multiple parallelogrames that unit determines Select the pixel as described loss macro block of the pixel included by a parallelogram.
In the post processing error concealing method of the embodiment of the present invention, decoding end can first determine loses macro block After pixel, then determine loss macro block multiple parallelogrames after rotation, the most again from multiple parallel four In the shape of limit, the pixel of one parallelogram of selection is as losing macro block, thus recovers loss macro block.By In in mistake masking process, it is contemplated that the rotating factor of transmission image, and prior art is only passed through limit Boundary's matching algorithm recovers to lose the method for macro block and compares, and can improve and recover in the embodiment of the present invention After image in the fluency of physical edge Byway.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that below, Accompanying drawing in description is only some embodiments of the present invention, for those of ordinary skill in the art, On the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of a kind of error concealing method that the embodiment of the present invention provides;
Fig. 2 is the schematic diagram determining multiple parallelogram in the embodiment of the present invention;
Fig. 3 is the flow chart of the another kind of error concealing method that the embodiment of the present invention provides;
Fig. 4 is the schematic diagram scanning macro block in the embodiment of the present invention;
Fig. 5 is the structural representation of a kind of communication equipment that the embodiment of the present invention provides;
Fig. 6 is the structural representation of a kind of communication equipment that the embodiment of the present invention provides;
Fig. 7 is the structural representation of a kind of communication equipment that the embodiment of the present invention provides.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out Clearly and completely describe, it is clear that described embodiment is only a part of embodiment of the present invention, and It is not all, of embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not making Go out the every other embodiment obtained under creative work premise, broadly fall into the scope of protection of the invention.
The embodiment of the present invention provides a kind of error concealing method, mainly in the post processing performed by decoding end Error concealing method, wherein decoding end is can be with any communication equipment of transmitting video image, and flow chart is such as Shown in Fig. 1, including:
Step 101, selects the pixel of optimal reference macro block as the picture losing macro block in the image of present frame Element.
Be appreciated that decoding end after receiving view data and being decoded, if a decoded frame Image has loss macro block, then need first to according to boundary matching algorithm such as BMA algorithm in reference frame Select optimal reference macro block, for example, it is possible to select in the multiple reference macroblocks included by the image of former frame Select the boundary pixel difference of and loss macro block surrounding macro blocks (such as up, down, left and right side's macro block) A minimum reference macroblock is optimal reference macro block.Here macro block is the unit of image slices vegetarian refreshments, such as One macro block can include that 16*16 pixel, each two field picture can include multiple macro block.
Step 102, determines the multiple parallelogrames in present frame, and this parallelogram is by losing macro block Article one, deckle, the opposite side of the deckle after movement, and deckle with mobile after two companies of opposite side opposite endpoint Line forms;In the pixel number run through on each line and loss macro block in addition to deckle and opposite side The pixel number that another side is run through is identical.
With reference to shown in Fig. 2, it is assumed that loss macro block is the pixel cell of n*n (n is the positive integer more than 1), Using lose macro block a limit as deckle A, the opposite side B of this deckle A can (-n, n) in the range of It is that step-length moves with the N individual pixel such as (can arrange N be 1,2,4 or 8), is then equivalent to lose Macro block has carried out the deformation of 45 ° to 135 ° and has rotated.In this process, after opposite side B moves every time, fixed Limit A, mobile after opposite side B and deckle A and mobile after the line of opposite endpoint of opposite side B (in figure Dotted line shown in) parallelogram will be formed, such as, in fig. 2, when opposite side B moves up After (moving direction is as represented by the arrows in the dashed line in figure 2), deckle A, the opposite side B after moving, the end of deckle A Point a1 with mobile after the line of opposite endpoint b1 of opposite side B, and the end points a2 of deckle A with mobile after right The line of opposite endpoint b2 of limit B forms parallelogram.
It should be noted that in the moving process of opposite side B, opposite side B opposite endpoint after deckle A and movement The pixel number needs that run through of the line pixel number phase usual with losing macro block another side C With, it is the most all n pixel.Wherein this another side C is to lose in macro block except deckle A and opposite side B Outside another side, such opposite side B move every time after formed parallelogram area all with lose macro block Area identical.
Step 103, selects the pixel included by a parallelogram as losing in multiple parallelogrames Lose the pixel of macro block.
After decoding end obtains multiple parallelogram by step 102, included by each parallelogram Pixel is the most different, and decoding end can select one according to the boundary matching algorithm as described in step 101 The optimal pixel included by parallelogram is as the pixel of loss macro block, thus recovers loss macro block Content.Such as: select boundary pixel to differ the one of minimum with the interface pixel losing macro block surrounding macro blocks Individual parallelogram.
It should be noted that above-mentioned steps 101 to 103 is simply to lose, to one, the side that macro block recovers Method, in the image of some frame, cover can be according to step 101 to 103 for the mistake of each loss macro block Perform.
Visible, in the post processing error concealing method of the embodiment of the present invention, decoding end can first pass through step After boundary matching algorithm in 101, determine loss macro block parallel four limits after rotation further according to step 102 Shape, the pixel finally according to parallelogram again carries out boundary matching algorithm thus recovers loss macro block, Due in mistake masking process, it is contemplated that the rotating factor of transmission image, and prior art is only passed through Boundary matching algorithm recover lose macro block method compare, the embodiment of the present invention can improve carry out extensive The fluency of physical edge Byway in image after Fu.
With reference to shown in Fig. 3, in a specific embodiment, decoding end can be by each two field picture Included macro block carries out status indication, is labeled as correct, mistake or the state covered, thus convenient Management to macro block, specifically:
104: macro block included in present frame is scanned by decoding end one by one, if a certain macro block of scanning State be mistake, and arbitrary macro block (to the upper, lower, left, or right side macro block) of the macro block surrounding of scanning When state is not mistake, then performs step and select optimal reference macro block, determine multiple parallelogram and choosing Select the step of parallelogram, i.e. perform above-mentioned steps 101 to 103;If the state of the macro block of scanning is wrong By mistake, and when the state of arbitrary macro block of the macro block surrounding of scanning be all wrong, illustrate around this macro block is grand Block is lost, it is impossible to carries out mistake and covers, then continue to scan on next macro block;If the macro block of scanning State for cover, then performs determine multiple parallelogram and select the step of parallelogram, i.e. holds Row above-mentioned steps 102 to 103.Wherein after execution of step 101, decoding end can perform step 105, And after execution of step 103, decoding end can perform step 106.
It is appreciated that when the view data received is decoded by decoding end, needs decoded figure Macro block in Xiang carries out status indication, is labeled as correct state by decoding correct macro block, will be transmitted across The macro block lost in journey is labeled as the state of mistake.Decoding end, after completing decoding process, enters loss Macro block carries out the process that mistake is covered, specifically: decoding end can be first to included in a certain two field picture Macro block is scanned, the state i.e. determining the information such as macro block of macro block and the pixel included, it is also possible to really Determine the information such as motion vector of macro block, if the macroblock status of scanning is appointing around mistake and this macro block When the state of one macro block is not mistake, then the macro block to this mistake is needed to perform above-mentioned steps 101 to 103, And revise the state of this macro block in this process.Wherein decoding end can be concurrently to multiple loss macro blocks The process that the mistake carried out is covered.
So that recover each loss macro block in a two field picture, decoding end needs a certain The macro block of two field picture takes multiple scan, and carries out mistake according to the method in the embodiment of the present invention after scanning Cover by mistake, wherein the scanning times of a certain two field picture is needed less than or equal to preset value.
It should be noted that decoding end scan macro block time, can according to row or column and with from four weeks in The order of the heart is scanned, thus then to carry out mistake from the order at four Zhou Dao centers cover losing macro block, Owing to human eye compares the centre point of concern image, and weaken to both sides attention, therefore use and first cover Surrounding covers the macro block at center again, can obtain more preferable screening effect.
Such as shown in Fig. 4, decoding end is scanned to the macro block of central series from the macro block of both sides row according to row, I.e. with the 1st row macro block, the 6th row macro block, the 2nd row macro block, the 5th row macro block ... the order of .. is scanned, as In figure shown in the arrow of label.
Step 105, will lose the status modifier of macro block for cover.
Step 106, is correct by the status modifier of loss macro block.
In another specific embodiment, decoding end, can be according to border when performing above-mentioned steps 101 Pixel matching algorithm performs, and specifically includes following steps:
A1: lose multiple candidate motion vectors (Motion Vector, MV) that macro block is corresponding according to preset Determine multiple reference macroblocks corresponding in previous frame image respectively.
In embodiments of the present invention, decoding end can be each state be mistake macro block (i.e. losing macro block) Set up the table of a corresponding motion vector, these motion vectors may include that in previous frame image with lose Lose the motion vector of macro block correspondence position macro block, lose the motion of up, down, left and right side's macro block of macro block Vector average value, loses the meansigma methods of the motion vector intermediate value of up, down, left and right side's macro block of macro block, And lose the upper macroblock of macro block, lower section macro block, left macro block and the motion vector of right macro block, 0 and lose Lose the motion vector initial value etc. of macro block.
Wherein a two field picture is divided into some macro blocks, and determines each macro block position in contiguous frames image, This macro block drawn is fortune in the position of this two field picture with the relative displacement in the position of contiguous frames image Dynamic vector.Then decoding end is according to losing macro block position in current frame image and each motion vector can obtain Macro block i.e. reference macroblock to relevant position in previous frame image.
B1: using the pixel of multiple reference macroblocks as the pixel losing macro block, and calculate loss respectively The boundary pixel of macro block and the difference of the boundary pixel of surrounding macro blocks.
Calculate this difference time can use average absolute calculus of finite differences (mean absolute deviation, MAD) calculating, specifically, for a macro block, computing macro block each edge is passed through the most respectively The pixel value worn and the difference of the border pixel values with described limit adjacent macroblocks, and the difference of calculating is carried out Averagely obtain the MAD value of a macro block, wherein, without the macro block adjacent with a certain bar limit of macro block, Or the state of adjacent macro block is mistake, this limit is not calculated.
C1: select the reference macroblock of difference minimum of boundary pixel as optimal reference macro block.
By the calculating of above-mentioned steps B, decoding end has obtained the difference that multiple reference macroblock is corresponding, then will be poor The reference macroblock of value minimum is as optimal reference macro block.
And in the present embodiment, when decoding end is when performing step 102, specifically can by lose in macro block with One limit of the boundary pixel difference minimum of adjacent macroblocks is as the deckle of parallelogram, thus considers limit The rotation on the limit that boundary's pixel value difference is maximum.
Decoding end, when performing above-mentioned steps 103, can perform according to boundary pixel matching algorithm, specifically Comprise the steps:
A2: by respectively using the pixel included by parallelogram each in current frame image as lose macro block Pixel, and calculate the difference of the boundary pixel of boundary pixel and the surrounding macro blocks of losing macro block respectively, tool Body ground, can be according to the MAD value calculating parallelogram described in above-mentioned steps B1.
B2: select the pixel of parallelogram of the difference minimum of boundary pixel as the pixel losing macro block.
When, after decoding end execution of step 103, the motion vector losing macro block also determines, and decoding end is permissible To according to the pixel losing macro block update decoding end preset lose macro block and corresponding candidate motion vector Corresponding relation, specifically, owing to having recovered this loss macro block, need to delete that this recovers loses Lose the corresponding relation of macro block and candidate motion vector, and also need to lose around macro block what this recovered The candidate motion vector that error condition macro block is corresponding is updated, and such as, updates the right of this loss macro block In the motion vector that macro block is corresponding, the motion vector etc. of left macro block.
In other specific embodiment, decoding end is in the selection carrying out taking turns according to above-mentioned steps A1 to C1 Optimal reference macro block, and recover to lose after macro block according to optimal reference macro block, lose the motion vector of macro block Also determining that, decoding end can first update the preset corresponding relation losing macro block and candidate motion vector, And perform above-mentioned steps A1 to C1 again according to the corresponding relation after updating, i.e. perform another and take turns the optimal ginseng of selection Examine the step of macro block.Then decoding end is before performing above-mentioned steps 102, can perform repeatedly above-mentioned steps 101, i.e. circulate the step repeatedly carrying out selecting optimal reference macro block, in this process, if when previous When the optimal reference macro block of wheel selection is identical with the optimal reference macro block of last round of selection, illustrate that determine loses The motion vector losing macro block has been stablized, and can perform above-mentioned steps 102 and 103;If when previous polling When the optimal reference macro block of the optimal reference macro block selected and last round of selection differs, in addition it is also necessary to continue executing with Above-mentioned steps 101, until the optimal reference macro block that continuous two-wheeled selects is identical, just performs above-mentioned steps 102 and 103.
The embodiment of the present invention also provides for the decoding end that a kind of communication equipment is the most above-mentioned, structural representation such as Fig. 5 Shown in, including:
Optimum selection unit 10, for selecting the pixel of optimal reference macro block to lose as in the image of present frame Lose the pixel of macro block;
Tetragon determines unit 11, for determining the multiple parallelogrames in described present frame, described flat Row tetragon by a deckle of described loss macro block, the opposite side of the described deckle after movement, and described The line composition of opposite side opposite endpoint after deckle and movement;The pixel number run through on described line with The pixel number run through except described deckle another side in addition to opposite side in described loss macro block is identical;
Pixel selection unit 12, for determining, at described tetragon, multiple parallelogrames that unit 11 determines Pixel included by one parallelogram of middle selection is as the pixel of described loss macro block.
In the decoding end of the embodiment of the present invention, first can be determined the picture losing macro block by optimum selection unit 10 After element is the pixel of optimal reference macro block, then determined that unit 11 determines loss macro block after rotation by tetragon Multiple parallelogrames, last pixel selection unit 12 select from multiple parallelogrames one parallel The pixel of tetragon is as losing macro block, thus recovers loss macro block.Due to mistake masking process in, Decoding end is in view of the rotating factor of transmission image, and only comes extensive by boundary matching algorithm in prior art The method losing macro block again is compared, and can improve the smoothness of physical edge Byway in the image after recovering Property.
With reference to shown in Fig. 6, in a specific embodiment, communication equipment is except can as shown in Figure 5 Outside structure, it is also possible to including: state updating unit 13 and scanning element 14, and pixel selection unit 12 can To be realized, wherein by difference computational unit 120 and selection unit 121:
State updating unit 13, for revising the status modifier of losing macro block for having covered or correctly.
Scanning element 14, for being scanned macro block included in described present frame, if scanning is grand The state of block is mistake, and when the state of arbitrary macro block of the macro block surrounding of described scanning is not mistake, logical Know that described optimum selection unit 10 selects optimal reference macro block;If the state of the macro block of scanning is for cover, Then notify that described tetragon determines that unit 11 determines multiple parallelogram.
Specifically, scanning element 14 can be according to row or column and with the order from four Zhou Dao centers, to described Macro block included in present frame is scanned.
By tetragon described in described current frame image, difference computational unit 120, for determining that unit 11 determines The pixel included by parallelogram as the pixel of described loss macro block, and calculate described loss macro block The difference of boundary pixel of boundary pixel and surrounding macro blocks;
Select unit 121, for selecting the difference of boundary pixel that described difference computational unit 120 calculates The pixel of little parallelogram is as the pixel of described loss macro block.
In the communication equipment of the present embodiment, the macro block of current frame image can be carried out one by one by scanning element 14 Scanning is specifically, it is thus achieved that the information such as the state of each macro block, if the state of the macro block of scanning is for cover, Then notice tetragon determines that unit 11 determines multiple parallelogram;If the state of the macro block of scanning is wrong By mistake, and when the state of arbitrary macro block of the macro block surrounding of described scanning is not mistake, informing optimum selects single Unit 10 selects optimal reference macro blocks, if the state of macro block of scanning is mistake, and its surrounding is arbitrary grand When the state of block is all mistake, then scanning element 14 continues to scan on next macro block.
In the present embodiment, primarily determined that the pixel losing macro block by optimum selection unit 10 after, Ke Yiyou The state of this loss macro block is changed into covering by state updating unit 13, and tetragon determines that unit 11 starts Determine multiple parallelogram, and calculated parallel four by the difference computational unit 120 in pixel selection unit 12 The boundary pixel difference that limit shape is corresponding, selects unit 121 to select one parallel four in multiple parallelogrames After the pixel of the limit shape final pixel as loss macro block, state updating unit 13 can be by this loss macro block State change into correctly.The unit of the decoding end of the present embodiment can be according to method stream as shown in Figure 3 Journey figure carries out mistake to loss macro block and covers, and does not repeats at this.
With reference to shown in Fig. 7, in a specific embodiment, communication equipment is except can as shown in Figure 5 Outside structure, it is also possible to including: corresponding relation updating block 15 and macro block comparing unit 16, and optimum selection By reference macroblock, unit 10 can determine that unit 110, reference difference computing unit 210 and reference select single Unit 310 realizes, wherein:
Reference macroblock determines unit 110, for the multiple candidates fortune corresponding according to preset described loss macro block Dynamic vector determines multiple reference macroblocks corresponding in previous frame image respectively, and it is corresponding that one of them loses macro block Multiple candidate motion vectors may include that in described previous frame image with described loss macro block correspondence position The motion vector of macro block, the motion vector meansigma methods of up, down, left and right side's macro block of described loss macro block, The meansigma methods of the motion vector intermediate value of up, down, left and right side's macro block of described loss macro block, and described Lose the upper macroblock of macro block, lower section macro block, left macro block and the motion vector of right macro block.
By described reference macroblock, reference difference computing unit 210, for determining that the reference that unit 110 determines is grand The pixel of block is as the pixel of described loss macro block, and calculates boundary pixel and the surrounding of described loss macro block The difference of the boundary pixel of macro block.
With reference to selecting unit 310, for the boundary pixel selecting described reference difference computing unit 210 to calculate The minimum reference macroblock of difference as optimal reference macro block.
Corresponding relation updating block 15, updates preset loss for the pixel according to described loss macro block grand The corresponding relation of block and corresponding candidate motion vector.
In the communication equipment of the present embodiment, the reference macroblock in optimum selection unit 10 determines that unit 110 is the most really Fixed multiple reference macroblocks, reference difference computing unit 210 boundary pixel calculating reference macroblock corresponding is poor Value, and by with reference to selecting unit 310 to select the pixel of an optimal reference macro block as the picture losing macro block Element, thus initially determined that the pixel losing macro block;Determined that unit 11 determines multiple parallel four by tetragon Limit shape, wherein the deckle in parallelogram can be the loss macro block that reference difference computing unit 210 calculates In a limit minimum with the boundary pixel difference of adjacent macroblocks;Finally by pixel selection unit 12 multiple Parallelogram select the pixel of a parallelogram as the pixel losing macro block.Wherein work as pixel Select unit 12 determining the pixel losing macro block, or the reference in optimum selection unit 10 selects unit 310 After determining the pixel of loss macro block, loss macro block and time can be updated by corresponding relation updating block 15 Select the corresponding relation of motion vector.
It addition, the reference macroblock in optimum selection unit 10 determines unit 110, reference difference computing unit 210 Select unit 310 can carry out the selection optimal reference macro block taken turns, when optimum selection unit 10 with reference more The corresponding relation circulation updated according to corresponding relation updating block 15 carries out selecting the process of optimal reference macro block In, can be judged described with reference to selecting unit 310 previous ought take turns the optimal of selection by macro block comparing unit 16 Reference macroblock is the most identical at the optimal reference macro block of last round of selection with reference to selection unit 310 with described, as Fruit be, then notice tetragon determine that unit 11 determines multiple parallelogram, if it is not, then continue by Optimum selection unit 10 carries out the selection of another optimal reference macro block taken turns.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment Suddenly the program that can be by completes to instruct relevant hardware, and this program can be stored in a computer can Reading in storage medium, storage medium may include that read only memory (ROM), random access memory (RAM), disk or CD etc..
The error concealing method provided the embodiment of the present invention above and communication equipment, carried out detailed Jie Continuing, principle and the embodiment of the present invention are set forth by specific case used herein, above reality The explanation executing example is only intended to help to understand method and the core concept thereof of the present invention;Simultaneously for ability The those skilled in the art in territory, according to the thought of the present invention, the most all can Change part, and in sum, this specification content should not be construed as limitation of the present invention.

Claims (13)

1. an error concealing method, it is characterised in that including:
Select the pixel of optimal reference macro block as the pixel losing macro block in the image of present frame;
Determining the multiple parallelogrames in described present frame, described parallelogram is by described loss macro block A deckle, the opposite side of the described deckle after movement, and described deckle with mobile after opposite side opposite end The line composition of point;Except described fixed in the pixel number run through on described line and described loss macro block Limit is identical with the pixel number that the another side outside opposite side is run through;
The pixel included by a parallelogram is selected to lose as described in the plurality of parallelogram Lose the pixel of macro block;
Described select pixel included by a parallelogram as institute in the plurality of parallelogram State the step of the pixel losing macro block, specifically include:
Using the pixel included by parallelogram described in described current frame image as described loss macro block Pixel, and calculate the difference of the boundary pixel of described loss macro block and the boundary pixel of surrounding macro blocks;
Select the pixel of parallelogram of the difference minimum of described boundary pixel as described loss macro block Pixel.
2. the method for claim 1, it is characterised in that the picture of described selection optimal reference macro block After the element step as the pixel losing macro block in the image of present frame, also include:
By the status modifier of described loss macro block for cover;
Described select pixel included by a parallelogram as institute in the plurality of parallelogram After stating the step of the pixel losing macro block, also include:
It is correct by the status modifier of described loss macro block.
3. method as claimed in claim 2, it is characterised in that the picture of described selection optimal reference macro block Before the element step as the pixel losing macro block in the image of present frame, also include:
Macro block included in described present frame is scanned, if the state of the macro block of scanning is mistake, And the state of arbitrary macro block of the macro block surrounding of described scanning is when being not mistake, then to described error condition Macro block performs described selection optimal reference macro block, determines multiple parallelogram and select parallelogram Step;
If the state of the macro block of scanning is for cover, then the macro block execution to described shielding status is described really Fixed multiple parallelogrames and the step of selection parallelogram.
4. the method as described in any one of claims 1 to 3, it is characterised in that described selection optimal reference The pixel of macro block, as the step of the pixel losing macro block in the image of present frame, specifically includes:
Previous frame image is determined respectively according to multiple candidate motion vectors that preset described loss macro block is corresponding Multiple reference macroblocks of middle correspondence;
Using the pixel of described reference macroblock as the pixel of described loss macro block, and calculate described loss macro block The difference of boundary pixel of boundary pixel and surrounding macro blocks;
Select the reference macroblock of difference minimum of described boundary pixel as optimal reference macro block.
5. method as claimed in claim 4, it is characterised in that the deckle in described parallelogram is A limit minimum with the boundary pixel difference of adjacent macroblocks in described loss macro block.
6. method as claimed in claim 4, it is characterised in that
Multiple candidate motion vectors that described loss macro block is corresponding include: with described in described previous frame image Lose the motion vector of macro block correspondence position macro block, up, down, left and right side's macro block of described loss macro block Motion vector meansigma methods, in the middle of the motion vector of up, down, left and right side's macro block of described loss macro block The meansigma methods of value, and the upper macroblock of described loss macro block, lower section macro block, left macro block and right macro block Motion vector;
Pixel included by the described parallelogram that will select described in described present frame is grand as described loss After the step of the pixel of block, also include:
Pixel according to described loss macro block updates preset loss macro block and corresponding candidate motion vector Corresponding relation.
7. method as claimed in claim 6, it is characterised in that described determine in described present frame many Also include before individual parallelogram:
Determine another multiple reference macroblocks taken turns, and select optimal reference grand in the plurality of reference macroblock Block;
If described another takes turns the optimal reference macro block optimal reference macro block phase with last round of selection of selection With, then perform the described step determined and select parallelogram.
8. a communication equipment, it is characterised in that including:
Optimum selection unit, for selecting the pixel of optimal reference macro block to lose as in the image of present frame The pixel of macro block;
Tetragon determines unit, for determining the multiple parallelogrames in described present frame, described parallel Tetragon by a deckle of described loss macro block, the opposite side of the described deckle after movement, and described fixed The line composition of opposite side opposite endpoint behind limit and movement;The pixel number run through on described line and institute State that to lose the pixel number run through except described deckle another side in addition to opposite side in macro block identical;
Pixel selection unit, for selecting in described tetragon determines multiple parallelogrames that unit determines Select the pixel as described loss macro block of the pixel included by a parallelogram;
Described pixel selection unit specifically includes:
Difference computational unit, for by the pixel included by parallelogram described in described current frame image As the pixel of described loss macro block, and calculate the boundary pixel of described loss macro block and the limit of surrounding macro blocks The difference of boundary's pixel;
Select unit, for selecting the pixel conduct of the parallelogram of the difference minimum of described boundary pixel The pixel of described loss macro block.
9. equipment as claimed in claim 8, it is characterised in that also include:
State updating unit, for the pixel conduct at described optimum selection Unit selection optimal reference macro block After the pixel of described loss macro block, by the status modifier of described loss macro block for cover;And at described picture Element selects unit to select the pixel conduct included by a parallelogram in the plurality of parallelogram After the pixel of described loss macro block, it is correct by the status modifier of described loss macro block.
10. equipment as claimed in claim 9, it is characterised in that also include:
Scanning element, for macro block included in described present frame is scanned, if the macro block of scanning State be mistake, and when the state of arbitrary macro block of the macro block surrounding of described scanning is not mistake, notice Described optimum selection Unit selection optimal reference macro block;If the state of the macro block of scanning is for cover, then lead to Know that described tetragon determines that unit determines multiple parallelogram.
11. equipment as according to any one of claim 8 to 10, it is characterised in that described optimum selection Unit specifically includes:
Reference macroblock determines unit, for the multiple Candidate Motion corresponding according to preset described loss macro block Vector determines multiple reference macroblocks corresponding in previous frame image respectively;
Reference difference computing unit, for using the pixel of described reference macroblock as the picture of described loss macro block Element, and calculate the difference of the boundary pixel of described loss macro block and the boundary pixel of surrounding macro blocks;
With reference to selecting unit, for selecting the reference macroblock of the difference minimum of described boundary pixel as most preferably Reference macroblock.
12. equipment as claimed in claim 11, it is characterised in that also include:
Corresponding relation updating block, updates preset loss macro block for the pixel according to described loss macro block Corresponding relation with corresponding candidate motion vector;
Multiple candidate motion vectors that described loss macro block is corresponding include: with described in described previous frame image Lose the motion vector of macro block correspondence position macro block, up, down, left and right side's macro block of described loss macro block Motion vector meansigma methods, in the middle of the motion vector of up, down, left and right side's macro block of described loss macro block The meansigma methods of value, and the upper macroblock of described loss macro block, lower section macro block, left macro block and right macro block Motion vector.
13. equipment as claimed in claim 12, it is characterised in that
Described reference macroblock determine unit for determining multiple reference macroblocks of many wheels, described single with reference to selecting Unit for selecting the optimal reference macro block taken turns more;
Described communication equipment also includes:
Macro block comparing unit, described with reference to selecting unit at the optimal reference macro block that previous ought take turns selection for judging With described with reference to selecting unit the most identical at the optimal reference macro block of last round of selection, if it is, logical Know that described tetragon determines that unit determines multiple parallelogram.
CN201210083926.2A 2012-03-27 2012-03-27 A kind of error concealing method and communication equipment Active CN103369327B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210083926.2A CN103369327B (en) 2012-03-27 2012-03-27 A kind of error concealing method and communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210083926.2A CN103369327B (en) 2012-03-27 2012-03-27 A kind of error concealing method and communication equipment

Publications (2)

Publication Number Publication Date
CN103369327A CN103369327A (en) 2013-10-23
CN103369327B true CN103369327B (en) 2016-12-07

Family

ID=49369732

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210083926.2A Active CN103369327B (en) 2012-03-27 2012-03-27 A kind of error concealing method and communication equipment

Country Status (1)

Country Link
CN (1) CN103369327B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1492353A2 (en) * 2003-04-08 2004-12-29 Lg Electronics Inc. Method and apparatus for image block error detection and correction
CN1581972A (en) * 2004-05-20 2005-02-16 复旦大学 Error-corcealed video decoding method
CN1662070A (en) * 2004-02-26 2005-08-31 Lg电子株式会社 Image block error concealing apparatus and method in mobile communication system
CN1731856A (en) * 2004-08-05 2006-02-08 中兴通讯股份有限公司 Error covering method for improving video frequency quality
CN101986714A (en) * 2010-11-18 2011-03-16 南京邮电大学 Self-adaptive error concealing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1492353A2 (en) * 2003-04-08 2004-12-29 Lg Electronics Inc. Method and apparatus for image block error detection and correction
CN1662070A (en) * 2004-02-26 2005-08-31 Lg电子株式会社 Image block error concealing apparatus and method in mobile communication system
CN1581972A (en) * 2004-05-20 2005-02-16 复旦大学 Error-corcealed video decoding method
CN1731856A (en) * 2004-08-05 2006-02-08 中兴通讯股份有限公司 Error covering method for improving video frequency quality
CN101986714A (en) * 2010-11-18 2011-03-16 南京邮电大学 Self-adaptive error concealing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高效的H.264时域误码掩盖算法;周睿等;《清华大学学报(自然科学版)》;20050731;第45卷(第7期);900-903 *

Also Published As

Publication number Publication date
CN103369327A (en) 2013-10-23

Similar Documents

Publication Publication Date Title
AU2010265451B2 (en) Method, apparatus and device for obtaining video image motion information and template construction method
US20080285651A1 (en) Spatio-temporal boundary matching algorithm for temporal error concealment
US8331451B2 (en) Method and apparatus for enhancing resolution of video image
CN102685504B (en) The decoding method of video image, code device, decoding device and system thereof
JP2007181674A (en) Method of forming image using block matching and motion compensated interpolation
JP2011505756A (en) Temporal image detection
EP3343923A1 (en) Motion vector field coding method and decoding method, and coding and decoding apparatuses
JPH1169359A (en) Contour line motion estimation method and device
CN110392265B (en) Inter-frame motion estimation method and device, electronic equipment and readable storage medium
CN106534871B (en) The coding method of Video Codec and coding/decoding method
US20050138532A1 (en) Apparatus and method for concealing errors in a frame
CN103369327B (en) A kind of error concealing method and communication equipment
CN101176352B (en) Video encoder using a refresh map
WO2012010023A1 (en) Method and apparatus for image motion estimation
CN105992012B (en) Error concealment method and device
KR20050045192A (en) Motion vector derivation method and apparatus
CN114157868B (en) Video frame coding mode screening method and device and electronic equipment
CN103220533A (en) Method for hiding loss errors of three-dimensional video macro blocks
CN111010583A (en) Self-adaptive multi-view video error concealment method based on residual error blocking
CN107483936B (en) A kind of light field video inter-prediction method based on macro pixel
KR100587274B1 (en) method for concealing error in MPEG-2 decompression system
CN107509074B (en) Self-adaptive 3D video compression coding and decoding method based on compressed sensing
US20150036751A1 (en) Method for storing movement prediction-related information in an interscreen prediction method, and method for calculating the movement prediction-related information in the inter-screen prediction method
CN102111621B (en) Video data recovery method, device and system
TWI450590B (en) Embedded system and method for loading data on motion estimation therein

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
TR01 Transfer of patent right

Effective date of registration: 20200211

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: 210012 HUAWEI Nanjing base, 101 software Avenue, Yuhuatai District, Jiangsu, Nanjing

Patentee before: HUAWEI SOFTWARE TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220215

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee after: Huawei Cloud Computing Technologies Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right