CN102271250B - Intra-macro block refreshing method and apparatus thereof - Google Patents

Intra-macro block refreshing method and apparatus thereof Download PDF

Info

Publication number
CN102271250B
CN102271250B CN 201010195742 CN201010195742A CN102271250B CN 102271250 B CN102271250 B CN 102271250B CN 201010195742 CN201010195742 CN 201010195742 CN 201010195742 A CN201010195742 A CN 201010195742A CN 102271250 B CN102271250 B CN 102271250B
Authority
CN
China
Prior art keywords
refresh cycle
macro block
frame
minimum
intra
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
CN 201010195742
Other languages
Chinese (zh)
Other versions
CN102271250A (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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN 201010195742 priority Critical patent/CN102271250B/en
Publication of CN102271250A publication Critical patent/CN102271250A/en
Application granted granted Critical
Publication of CN102271250B publication Critical patent/CN102271250B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention provides an intra-macro block refreshing method. A minimum refreshing period and a maximum refreshing period are arranged; and all macro blocks in each frame between the minimum refreshing period and the maximum refreshing period and in all frames before the minimum refreshing period employ different refreshing periods to carry out refreshment, wherein continuous coding of the all macro blocks are in INTER modes. Meanwhile, the invention also discloses an intra-macro block refreshing apparatus. According to the method and the apparatus provided in the invention, when coding is carried out on a video image by using a fixed coding bit rate, a fault tolerance of the video image can be effectively improved; especially, when the motion of the video image is small or there is a large-range still image in the video image, the application of the method and the apparatus enables the fault tolerance of the video image to be more effectively improved on the premise of guarantee of the video image quality.

Description

A kind of intra-frame macro block updating method and device
Technical field
The present invention relates to technical field of video coding, particularly a kind of intra-frame macro block updating method and the device in the video coding technique.
Background technology
When video image is encoded, the Image Coding international standard of main flow such as dynamic image expert group (MPEG)-2, MPEG-4 and H.261, H.263 and H.264 wait channel loss and channel error code all very responsive, main manifestations has: on the one hand, in the situation of video data generation packet loss or bit mistake, make the mistake easily continuity and diffusion on time and space cause the impact video quality of decoding end sharply to descend; On the other hand, the state of communication channel also has changeability usually, becomes when such as the error rate, packet loss, bandwidth and delay etc. all being, also can reduce the video quality of decoding end.Thus, the anti-network loss of encode video image has become technical field of video coding to be badly in need of the problem of considering with anti-error code capacity.
The intra-frame macro block updating technology is a kind of effective technology that can improve the video image fault-tolerance.On the one hand, intra-frame macro block updating does not use reference frame, has cut off video image dependence in time, thereby has contained wrong diffusion in time; On the other hand, some video encoding standard only provides the IDCT formula such as discrete cosine transform (DCT) and inverse discrete cosine transformation (IDCT) algorithm that H.261, H.263 uses, and do not calculate the arithmetic process of inverse transformation, because different vendor may use different arithmetic process, different processors also may have different computational accuracies simultaneously, there is the interior error of certain limit in the possibility of result that inverse transformation is calculated by each manufacturer, and intra-frame macro block updating also has the effect of control inverse transformation accumulated error.Therefore, H.261 and H.263 advising adopting intra-frame macro block updating in the agreement, Fig. 1 has provided the principle schematic of existing intra-frame macro block updating.As shown in Figure 1, any two the macro block A in the video image and B are as example.For macro block A: for the 1st two field picture in the video image, owing to there is not other frame can be for prediction, so all macro blocks in this frame all adopt in the frame (INTRA) pattern to encode, namely the macro block A in this frame have adopted the INTRA coding mode; For the 2nd frame (the 2nd frame being called the 1st frame in the refresh cycle here) to the 132nd frame (similarly, this frame is the 131st frame in first refresh cycle), need to determine that the macro block A in each frame adopts INTRA pattern or interframe (INTER) pattern to encode by the motion search mode: when determining macro block A by the motion search mode and need to adopt the INTRA pattern to encode, can adopt the INTRA pattern that it is encoded, need to adopt the INTER pattern to encode when determine macro block A by the motion search mode, then adopt the INTER pattern to encode to it; For the 133rd frame (the 132nd frame in the refresh cycle, the i.e. last frame of first refresh cycle), when determining macro block A by the motion search mode and need to adopt the INTRA pattern to encode, can adopt the INTRA pattern that it is encoded; Need to adopt the INTER pattern to encode when determine macro block A by the motion search mode, and 1st frame of macro block A in the refresh cycle to the 131st frame in the refresh cycle has all adopted the INTER coding mode, when namely having carried out 131 INTER coding modes continuously, need to adopt the INTRA pattern to encode to macro block A; For each frame after the corresponding frame of refresh cycle, similarly, also need to determine that by the motion search mode macro block A is that needs adopt INTRA pattern or INTER pattern to encode: when determining macro block A by the motion search mode and need to adopt the INTRA pattern to encode, namely it is carried out the INTRA coding, need to adopt the INTER pattern to encode when determine macro block A by the motion search mode, and be not when carrying out continuously the INTER coding for the 132nd time, it is adopted the INTER coding mode, need to adopt the INTER pattern to encode when determine macro block A by the motion search mode, and be when carrying out continuously the INTER coding for the 132nd time, then it is adopted the INTRA coding mode, the like, until the last frame Image Coding is complete.Similarly, also adopted the same processing mode with macro block A for macro block B.That is, for each macro block in the video image, requiring per at least 132 codings just once is to adopt the INTRA coding mode.That is to say that the refresh cycle of macro block is 132, and for all macro blocks, their refresh cycle all is identical.
As can be seen from the above analysis, because per at least 132 codings of existing intra-frame macro block updating just once are to adopt the INTRA coding mode, thereby can contain expansion and the continuity of mistake on time and space that video data occurs, improve the fault-tolerance of video image.But when rest image is arranged in the very little or video image when video image motion on a large scale, may occur: because the 1st two field picture has other frame can be for prediction, wherein all macro blocks must be encoded to the INTRA pattern; For the macro block in other frame, when determining by the motion search mode, most of macro block may occur can continuous programming code be the INTER pattern all, and therefore, when coding proceeded to the 133rd frame, these macro blocks need to be encoded to the INTRA pattern simultaneously.Because the INTRA coding mode does not carry out with reference frame, and too much macro block adopts the meeting of coding of INTRA pattern simultaneously so that too much macro block does not use reference frame, also just can not realize the purpose of eliminating time redundancy by reaching with reference frame, thereby encoder bit rate is sharply increased.When using the regular coding code check motion to be had in the very little or video image video image of rest image is encoded on a large scale, can only encoder bit rate be limited in the scope of appointment by reducing video image quality, thereby can cause the decline of video image quality.
Summary of the invention
In view of this, the invention provides a kind of intra-frame macro block updating method, when using the regular coding code check that video image is encoded, can effectively improve the fault-tolerance of video image, when being applied to especially have in or the video image very little when video image motion on a large scale rest image, can under the prerequisite that guarantees video image quality, more effectively improve the fault-tolerance of video image.
The present invention also provides a kind of intra-frame macro block updating device, when using the regular coding code check that video image is encoded, can effectively improve the fault-tolerance of video image, when being applied to especially have in or the video image very little when video image motion on a large scale rest image, can under the prerequisite that guarantees video image quality, more effectively improve the fault-tolerance of video image.
In order to achieve the above object, the technical scheme of the present invention's proposition is:
A kind of intra-frame macro block updating method, the method comprises:
Minimum refresh cycle and maximum refresh cycle are set;
To each macro block in the 1st frame, adopt the interior INTRA pattern of frame to encode, to each macro block in each frame except last frame in first minimum refresh cycle, adopt the motion search mode to determine to adopt INTRA pattern or interframe INTER pattern to encode;
To the part macro block in the macro block that all is encoded to the INTER pattern in the last frame of first minimum refresh cycle whole frames to each frame of the last frame of first maximum refresh cycle, within first minimum refresh cycle except last frame, adopt the INTRA pattern to encode, and this part macro block that is encoded to the INTRA pattern is reset the refresh cycle;
To the macro block in each frame after first maximum refresh cycle, repeat according to the refresh cycle that resets and to refresh, and after refreshing, reset again the refresh cycle at every turn, until the last frame Image Coding in the video image is complete;
Wherein, describedly adopt the INTRA pattern to encode to the part macro block to comprise: when the macro block sum that all is encoded to the INTRA pattern in the whole frames except last frame within first minimum refresh cycle less than a frame in a half of total macroblock number, part macro block employing INTRA pattern is encoded;
Definite method of described part macro block is: total macroblock number of establishing in the frame is n, the macroblock number that all is encoded to the INTRA pattern in whole frames within first minimum refresh cycle except last frame is m, then the part macroblock number is: (n-m)/(maximum refresh cycle-minimum refresh cycle), wherein, described n and m are positive integer.
A kind of intra-frame macro block updating device, this device comprises: module, coding module, the first refresh module, the second refresh module is set and controls the control unit of above-mentioned each module, wherein,
The described module that arranges is used for arranging minimum refresh cycle and maximum refresh cycle, and notifies control unit with minimum refresh cycle and the maximum refresh cycle of described setting;
Described coding module, under the control of control unit, be used for each macro block to the 1st frame, adopt the interior INTRA pattern of frame to encode, to each macro block in each frame except last frame in first minimum refresh cycle, adopt the motion search mode to determine to adopt INTRA pattern or interframe INTER pattern to encode;
Described the first refresh module, under the control of control unit, be used for the last frame of first minimum refresh cycle all is encoded to part macro block in the macro block of INTER pattern to whole frames each frame, within first minimum refresh cycle except last frame of the last frame of first maximum refresh cycle, adopt the INTRA pattern to encode, and this part macro block that is encoded to the INTRA pattern is reset the refresh cycle;
Described the second refresh module, under the control of control unit, be used for the macro block to each frame after first maximum refresh cycle, repeat according to the refresh cycle that resets and to refresh, and reset the refresh cycle after refreshing, until the last frame Image Coding in the video image is complete at every turn again;
Wherein, described the first refresh module, be further used for, when the macro block sum that all is encoded to the INTRA pattern in the whole frames except last frame in first minimum refresh cycle less than a frame in a half of total macroblock number, part macro block employing INTRA pattern is encoded;
Definite method of described part macro block is: total macroblock number of establishing in the frame is n, the macroblock number that all is encoded to the INTRA pattern in whole frames within first minimum refresh cycle except last frame is m, then the part macroblock number is: (n-m)/(maximum refresh cycle-minimum refresh cycle), wherein, described n and m are positive integer.
In sum, intra-frame macro block updating method of the present invention, by minimum refresh cycle and maximum refresh cycle are set, to in each frame between minimum refresh cycle and maximum refresh cycle, and each macro block that all was encoded to the INTER pattern before the minimum refresh cycle in whole frames adopts different refresh cycles to refresh, not only can contain expansion and the continuity of mistake on time and space that video data occurs, improve the fault-tolerance of video image, refresh simultaneously the problem that the time redundancy brought can not fine elimination nor macro block too much in the same frame can occur.Especially, when using the regular coding code check motion to be had in the very little or video image video image of rest image is encoded on a large scale, can under the prerequisite that guarantees video image quality, more effectively improve the fault-tolerance of video image.
Description of drawings
Fig. 1 is the principle schematic of existing intra-frame macro block updating;
Fig. 2 is the principle schematic of intra-frame macro block updating of the present invention;
Fig. 3 is the workflow diagram of intra-frame macro block updating method of the present invention;
Fig. 4 is the composition structural representation of intra-frame macro block updating device of the present invention.
Embodiment
In order to solve problems of the prior art, intra-frame macro block updating method of the present invention, by minimum refresh cycle and maximum refresh cycle are set, to in each frame between minimum refresh cycle and maximum refresh cycle, and each macro block that all was encoded to the INTER pattern before the minimum refresh cycle in whole frames adopts different refresh cycles to refresh, not only can contain expansion and the continuity of mistake on time and space that video data occurs, improve the fault-tolerance of video image, refresh simultaneously the problem that the time redundancy brought can not fine elimination nor macro block too much in the same frame can occur.Especially, when using the regular coding code check motion to be had in the very little or video image video image of rest image is encoded on a large scale, can under the prerequisite that guarantees video image quality, more effectively improve the fault-tolerance of video image.
Based on above-mentioned introduction, the specific implementation of scheme of the present invention comprises:
Minimum refresh cycle and maximum refresh cycle are set;
To each macro block in the 1st frame, adopt the interior INTRA pattern of frame to encode, to each macro block in each frame except last frame in first minimum refresh cycle, adopt the motion search mode to determine to adopt INTRA pattern or interframe INTER pattern to encode;
To the part macro block in the macro block that all is encoded to the INTER pattern in the last frame of first minimum refresh cycle whole frames to each frame of the last frame of first maximum refresh cycle, within first minimum refresh cycle except last frame, adopt the INTRA pattern to encode, and this part macro block that is encoded to the INTRA pattern is reset the refresh cycle;
To the macro block in each frame after first maximum refresh cycle, repeat according to the refresh cycle that resets and to refresh, and after refreshing, reset again the refresh cycle at every turn, until the last frame Image Coding in the video image is complete.
Describedly adopt the INTRA pattern to encode to the part macro block to comprise: when the macro block sum that all is encoded to the INTRA pattern in the whole frames except last frame within first minimum refresh cycle less than a frame in a half of total macroblock number, part macro block employing INTRA pattern is encoded.
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with the accompanying drawings and the specific embodiments.
Fig. 2 has provided the principle schematic of intra-frame macro block updating of the present invention, in order to compare with existing intra-frame macro block updating technology, Fig. 2 also is that two macro blocks of A, B in the same video image illustrate as example, minimum refresh cycle and maximum refresh cycle be set in the present embodiment is respectively 117 and 132, and each two field picture except the 1st frame is called the 1st, 2,3 of the refresh cycle successively ... two field picture.As can be seen from Figure 2, for macro block A, when macro block A has carried out 116 INTER coding modes continuously in 116 frames after, at the 118th frame, be when determining macro block A and still need carry out the INTER coding mode by the motion search mode in the 117th frame (first minimum refresh cycle last frame) of refresh cycle, at this moment, macro block A has been adopted the INTRA coding mode; And for macro block B, when macro block B has carried out 131 times the INTER coding mode continuously in 131 frames, and at the 133rd frame, be when determining macro block B and still need carry out the INTER coding mode by the motion search mode in the 132nd frame (first maximum refresh cycle last frame) of refresh cycle, just need the coding mode to B employing INTRA; Similarly, for other macro block in the video image, when continuous programming code is that the frame number of INTER pattern is certain integer value between the 116-131, and when determining this macro block and still need carry out the INTER coding mode by the motion search mode in its next frame, the macroblock coding that all needs to be encoded to the INTER pattern is the INTRA pattern.That is, for the different macro blocks in the video image, continuous programming code is that the number of times of INTER pattern is different, that is to say, the refresh cycle of different macro blocks may be different, and they can be respectively the arbitrary integer between the 117-132.
Present embodiment is specially adapted to move has the video image of rest image on a large scale in very little or the video image, having on a large scale in the very little or video image of video image motion, rest image can be regarded as: in 117 two field pictures, continuous programming code INTER pattern the macro block sum more than 116 times more than a two field picture in half of total macroblock number.
Need to prove, in the present embodiment, the number for the part macro block in the macro block that all is encoded to the INTER pattern in the last frame of first minimum refresh cycle whole frames to each frame of the last frame of first maximum refresh cycle, within first minimum refresh cycle except last frame is basic identical or identical.When identical, definite method of described part macro block is: total macroblock number of establishing in the frame is n, the macroblock number that all is encoded to the INTRA pattern in whole frames within first minimum refresh cycle except last frame is m, then the part macroblock number is: (n-m)/(maximum refresh cycle-minimum refresh cycle), wherein, described n and m are positive integer.And certain macro block continuous programming code is that the number of times of INTER pattern is 116 to be not well-determined, yet, when number of times during less than the minimum refresh cycle, occurring continually the probability that a plurality of macro blocks carry out the INTRA coding mode simultaneously in follow-up each frame can increase, thereby in the situation that encoder bit rate is fixed, can reduce the quality of video image; When number of times approached the maximum refresh cycle, the concentrated area probability that a plurality of macro blocks in a few two field pictures carry out the INTRA coding mode simultaneously occurred and also can increase in follow-up each frame, also can cause the decline of video image quality.In addition, certain macro block continuous programming code is that the number of times of INTER pattern is 131 to be to stipulate in the agreement, and in practice, this value also can change, and is as the criterion with the realization that does not affect the embodiment of the invention.
Also it should be noted that, it is not well-determined that the refresh cycle of different macro blocks is adopted certain value between the 117-132, can use tactic 117 in the reality, 118,119, the refresh cycle of 132 macro blocks that refresh as current needs successively, also can use 132,131,130 of backward arrangement, the refresh cycle of 117 macro blocks that refresh as current needs successively, the refresh cycle that also can use the macro block that any one random value between the 117-132 refreshes as current needs, be as the criterion with the realization that does not affect the embodiment of the invention in the reality.
Based on above-mentioned principle, Fig. 3 has provided the workflow of intra-frame macro block updating method of the present invention, and as shown in Figure 3, this flow process may further comprise the steps:
Step 301: with the first frame in the video image as present frame.
Step 302: adopt the INTRA pattern to encode to each macro block in the present frame.
In this step, because the 1st frame in the video image does not have other frame can supply prediction, so all macro blocks in this frame all adopt the INTRA pattern to encode.
Step 303: with the next frame of present frame as present frame.
Step 304: judge that whether present frame is the 118th frame, namely whether is the 117th frame of refresh cycle, if so, execution in step 306; Otherwise, execution in step 305.
In this step, the minimum refresh cycle of setting macro block is 117, so need to carry out intra-frame macro block updating when coding proceeds to the 117th frame of first minimum refresh cycle.
Need to prove, the minimum refresh cycle can be less than 117, also can be greater than 117, but, when less than minimum refresh cycle 117, occurring continually the probability that a plurality of macro blocks carry out the INTRA coding mode simultaneously in follow-up each frame can increase, thereby in the fixing situation of encoder bit rate, can reduce the quality of video image; When approach the maximum refresh cycle, during namely more near maximum refresh cycle of first of agreement regulation 132, the concentrated area probability that a plurality of macro blocks in a few two field pictures carry out the INTRA coding mode simultaneously occurs and also can increase in follow-up each frame, also can cause the decline of video image quality.Therefore, adopted here the 117 minimum refresh cycles as macro block.
Step 305: when present frame is the 117th frame less than the minimum refresh cycle, determines that by the motion search mode present frame is to adopt INTRA coding mode or INTER coding mode, and return execution in step 303.
Step 306: when present frame is the 117th frame of minimum refresh cycle, judge that the macro block sum that all is encoded to the INTRA pattern in first minimum refresh cycle in each frame except last frame is whether less than total half of macroblock number in the frame, if so, execution in step 307; Otherwise, execution in step 311.
When coding proceeds to the last frame of first minimum refresh cycle, need also to judge that the macro block sum that all is encoded to the INTRA pattern in first minimum refresh cycle in each frame except last frame is whether less than total half of macroblock number in the frame, if, then illustrate in the very little or video image of video image motion rest image is on a large scale arranged, in order when adopting the cbr (constant bit rate) coding, not reduce picture quality, need the operation of execution in step 307; Otherwise, illustrate that video image motion is not very little, but execution in step 311 then.
Need to prove that this step is the performing step of most preferred embodiment, when reality is used, the operation that can omit this step, when namely judging present frame for the last frame of first minimum refresh cycle, direct execution in step 307.
Step 307: the part macro block in the present frame is carried out intra-frame macro block updating, and reset the refresh cycle of these part macro blocks.
In this step, when adopting the motion search mode to judge that some macro block still need carry out the INTER coding mode in the present frame, in order to improve the fault-tolerance of video image, need to adopt the INTRA pattern encode the part macro block in these macro blocks.
Need to prove, be basic identical or identical for the number of the part macro block in the macro block that all is encoded to the INTER pattern in the last frame of first minimum refresh cycle whole frames to each frame of the last frame of first maximum refresh cycle, within first minimum refresh cycle except last frame.When identical, definite method of described part macro block is: total macroblock number of establishing in the frame is n, the macroblock number that all is encoded to the INTRA pattern in the whole frames except last frame within first minimum refresh cycle is m, then the part macroblock number is: (n-m)/(maximum refresh cycle-minimum refresh cycle), wherein, described n and m are positive integer.Guarantee that part macro block number is basic identical or identically can farthest reduce the macro block number that is encoded to the INTRA pattern in every frame, in the situation of regular coding code check, obtain best video quality.
Step 308: with the next frame of present frame as present frame.
Step 309: judge that whether present frame is the 133rd frame, i.e. the 132nd frame of maximum refresh cycle, if so, execution in step 310; Otherwise, return execution in step 307.
The refresh cycle of the macro block of stipulating in agreement is 132, therefore, has reached the refresh cycle of agreement regulation when coding proceeds to the 132nd frame of refresh cycle.
Need to prove, in the present embodiment, be with any one integer value between the 117-132 as refresh cycle of macro block, and before carrying out the described intra-frame macro block updating of present embodiment, need to be set in advance minimum refresh cycle and the maximum refresh cycle of macro block.In the reality, the refresh cycle of macro block is desirable other value also, is as the criterion with the realization that does not affect the embodiment of the invention.
Also need to prove, in the present embodiment be take refresh cycle 132 of agreement regulation for the maximum refresh cycle, in the reality, also can adopt than 132 large refresh cycles.
Step 310: according to the refresh cycle that resets, each macro block in each two field picture after first maximum refresh cycle is re-executed intra-frame macro block updating again and the macro block after refreshing is reset the refresh cycle, until the last frame Image Coding in the video image complete after, finish whole workflow.
Step 311: video sequence is processed by existing intra-frame macro block updating mode.
Before the last frame of first minimum refresh cycle arrives or to judge video image be not when the image of rest image is on a large scale arranged in the very little or video image of motion, can adopt existing intra-frame macro block updating flow process that video image is processed.
Need to prove that when omitting step 306, the operation of this step 311 also need not to carry out.
So far, namely finished the whole workflow of intra-frame macro block updating method of the present invention.
Need to prove, in the present embodiment, for each macro block in the video image, refresh cycle is not well-determined, after current macro is refreshed, also need redefine the refresh cycle of this macro block, the refresh cycle of concrete how to confirm macro block can for: use tactic 117,118,119 ... the refresh cycle of 132 macro blocks that refresh as current needs successively, also can use 132,131,130 of backward arrangement, the refresh cycle of 117 macro blocks that refresh as current needs successively, the refresh cycle that also can use the macro block that any one random value between the 117-132 refreshes as current needs, be as the criterion with the realization that does not affect the embodiment of the invention in the reality.
Based on said method, Fig. 4 is the composition structural representation of intra-frame macro block updating device of the present invention.As shown in Figure 4, this device comprises: the control unit 45 that module 41, coding module 42, the first refresh module 43, the second refresh module 44 is set and controls above-mentioned each module, wherein,
The described module 41 that arranges is used for arranging minimum refresh cycle and maximum refresh cycle, and notifies control unit 45 with minimum refresh cycle and the maximum refresh cycle of described setting, and described minimum refresh cycle and maximum refresh cycle can be respectively 117 and 132.
Described coding module 42, under the control of control unit 45, be used for each macro block to the 1st frame, adopt the INTRA pattern to encode, to each macro block in each frame except last frame in first minimum refresh cycle, adopt the motion search mode to determine to adopt INTRA pattern or INTER pattern to encode.
Described the first refresh module 43, under the control of control unit 45, be used for the last frame of first minimum refresh cycle all is encoded to part macro block in the macro block of INTER pattern to whole frames each frame, within first minimum refresh cycle except last frame of the last frame of first maximum refresh cycle, adopt the INTRA pattern to encode, and this part macro block that is encoded to the INTRA pattern is reset the refresh cycle.
Further, described the first refresh module 43 is used for, when the macro block sum that all is encoded to the INTRA pattern in the whole frames except last frame in first minimum refresh cycle less than a frame in a half of total macroblock number, part macro block employing INTRA pattern is encoded.
Wherein, definite method of described part macro block is: total macroblock number of establishing in the frame is n, the macroblock number that all is encoded to the INTRA pattern in whole frames within first minimum refresh cycle except last frame is m, then the part macroblock number is: (n-m)/(maximum refresh cycle-minimum refresh cycle)
Wherein, described n and m are positive integer.
Describedly reset the refresh cycle and be:
Choose successively in order value between minimum refresh cycle and maximum refresh cycle as refresh cycle of macro block, or,
Choose successively value between maximum refresh cycle and minimum refresh cycle as refresh cycle of macro block according to backward, or,
Choose at random value between minimum refresh cycle and maximum refresh cycle as refresh cycle of macro block.
Described the second refresh module 44, under the control of control unit 45, be used for the macro block to each frame after first maximum refresh cycle, repeat according to the refresh cycle that resets and to refresh, and reset the refresh cycle after refreshing, until the last frame Image Coding in the video image is complete at every turn again.
So far, namely got intra-frame macro block updating device of the present invention, the specific works flow process of this device please refer to the respective description in the embodiment of the method shown in Figure 3, repeats no more herein.
In a word, intra-frame macro block updating method of the present invention, by minimum refresh cycle and maximum refresh cycle are set, to in each frame between minimum refresh cycle and maximum refresh cycle, and each macro block that all was encoded to the INTER pattern before the minimum refresh cycle in whole frames adopts different refresh cycles to refresh, not only can contain expansion and the continuity of mistake on time and space that video data occurs, improve the fault-tolerance of video image, refresh simultaneously the problem that the time redundancy brought can not fine elimination nor macro block too much in the same frame can occur.Especially, when using the regular coding code check motion to be had in the very little or video image video image of rest image is encoded on a large scale, can under the prerequisite that guarantees video image quality, more effectively improve the fault-tolerance of video image.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, is equal to replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (6)

1. intra-frame macro block updating method is characterized in that the method comprises:
Minimum refresh cycle and maximum refresh cycle are set;
To each macro block in the 1st frame, adopt the interior INTRA pattern of frame to encode, to each macro block in each frame except last frame in first minimum refresh cycle, adopt the motion search mode to determine to adopt INTRA pattern or interframe INTER pattern to encode;
To the part macro block in the macro block that all is encoded to the INTER pattern in the last frame of first minimum refresh cycle whole frames to each frame of the last frame of first maximum refresh cycle, within first minimum refresh cycle except last frame, adopt the INTRA pattern to encode, and this part macro block that is encoded to the INTRA pattern is reset the refresh cycle;
To the macro block in each frame after first maximum refresh cycle, repeat according to the refresh cycle that resets and to refresh, and after refreshing, reset again the refresh cycle at every turn, until the last frame Image Coding in the video image is complete;
Wherein, describedly adopt the INTRA pattern to encode to the part macro block to comprise: when the macro block sum that all is encoded to the INTRA pattern in the whole frames except last frame within first minimum refresh cycle less than a frame in a half of total macroblock number, part macro block employing INTRA pattern is encoded;
Definite method of described part macro block is: total macroblock number of establishing in the frame is n, the macroblock number that all is encoded to the INTRA pattern in whole frames within first minimum refresh cycle except last frame is m, then the part macroblock number is: (n-m)/(maximum refresh cycle-minimum refresh cycle), wherein, described n and m are positive integer.
2. method according to claim 1 is characterized in that, describedly resets the refresh cycle and is:
Choose successively in order value between minimum refresh cycle and maximum refresh cycle as refresh cycle of macro block, or,
Choose successively value between maximum refresh cycle and minimum refresh cycle as refresh cycle of macro block according to backward, or,
Choose at random value between minimum refresh cycle and maximum refresh cycle as refresh cycle of macro block.
3. the described method of arbitrary claim in 2 according to claim 1 is characterized in that the described minimum refresh cycle is 117.
4. the described method of arbitrary claim in 2 according to claim 1 is characterized in that the described maximum refresh cycle is 132.
5. an intra-frame macro block updating device is characterized in that, this device comprises: module, coding module, the first refresh module, the second refresh module are set and control the control unit of above-mentioned each module, wherein,
The described module that arranges is used for arranging minimum refresh cycle and maximum refresh cycle, and notifies control unit with minimum refresh cycle and the maximum refresh cycle of described setting;
Described coding module, under the control of control unit, be used for each macro block to the 1st frame, adopt the interior INTRA pattern of frame to encode, to each macro block in each frame except last frame in first minimum refresh cycle, adopt the motion search mode to determine to adopt INTRA pattern or interframe INTER pattern to encode;
Described the first refresh module, under the control of control unit, be used for the last frame of first minimum refresh cycle all is encoded to part macro block in the macro block of INTER pattern to whole frames each frame, within first minimum refresh cycle except last frame of the last frame of first maximum refresh cycle, adopt the INTRA pattern to encode, and this part macro block that is encoded to the INTRA pattern is reset the refresh cycle;
Described the second refresh module, under the control of control unit, be used for the macro block to each frame after first maximum refresh cycle, repeat according to the refresh cycle that resets and to refresh, and reset the refresh cycle after refreshing, until the last frame Image Coding in the video image is complete at every turn again;
Wherein, described the first refresh module, be further used for, when the macro block sum that all is encoded to the INTRA pattern in the whole frames except last frame in first minimum refresh cycle less than a frame in a half of total macroblock number, part macro block employing INTRA pattern is encoded;
Definite method of described part macro block is: total macroblock number of establishing in the frame is n, the macroblock number that all is encoded to the INTRA pattern in whole frames within first minimum refresh cycle except last frame is m, then the part macroblock number is: (n-m)/(maximum refresh cycle-minimum refresh cycle), wherein, described n and m are positive integer.
6. device according to claim 5 is characterized in that, describedly resets the refresh cycle and is:
Choose successively in order value between minimum refresh cycle and maximum refresh cycle as refresh cycle of macro block, or,
Choose successively value between maximum refresh cycle and minimum refresh cycle as refresh cycle of macro block according to backward, or,
Choose at random value between minimum refresh cycle and maximum refresh cycle as refresh cycle of macro block.
CN 201010195742 2010-06-01 2010-06-01 Intra-macro block refreshing method and apparatus thereof Active CN102271250B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010195742 CN102271250B (en) 2010-06-01 2010-06-01 Intra-macro block refreshing method and apparatus thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010195742 CN102271250B (en) 2010-06-01 2010-06-01 Intra-macro block refreshing method and apparatus thereof

Publications (2)

Publication Number Publication Date
CN102271250A CN102271250A (en) 2011-12-07
CN102271250B true CN102271250B (en) 2013-04-17

Family

ID=45053392

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010195742 Active CN102271250B (en) 2010-06-01 2010-06-01 Intra-macro block refreshing method and apparatus thereof

Country Status (1)

Country Link
CN (1) CN102271250B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106488229B (en) * 2015-09-01 2022-01-21 恩智浦美国有限公司 Video encoder with adjustable intra refresh rate
CN109348227A (en) * 2018-11-22 2019-02-15 上海大学 Motion Adaptive intra refresh methods suitable for Video coding

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1674681A (en) * 2004-03-22 2005-09-28 Lg电子有限公司 Adaptive intra-macroblock refresh method
CN101176352A (en) * 2005-05-20 2008-05-07 Nxp股份有限公司 Video encoder using a refresh map
CN101621685A (en) * 2008-07-04 2010-01-06 株式会社日立制作所 Coder and coding method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8948266B2 (en) * 2004-10-12 2015-02-03 Qualcomm Incorporated Adaptive intra-refresh for digital video encoding

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1674681A (en) * 2004-03-22 2005-09-28 Lg电子有限公司 Adaptive intra-macroblock refresh method
CN101176352A (en) * 2005-05-20 2008-05-07 Nxp股份有限公司 Video encoder using a refresh map
CN101621685A (en) * 2008-07-04 2010-01-06 株式会社日立制作所 Coder and coding method

Also Published As

Publication number Publication date
CN102271250A (en) 2011-12-07

Similar Documents

Publication Publication Date Title
US8019002B2 (en) Parallel batch decoding of video blocks
CN1316433C (en) Video-information encoding method and video-information decoding method
CN102792689B (en) Delta compression can be carried out and for by image, remote display is presented to the amendment of estimation and metadata
CN102196256B (en) Video encoding method and device
JP6023298B2 (en) Image encoding and decoding method, image data processing method, and apparatus thereof
US7974479B2 (en) Encoding apparatus, method, and computer product, for controlling intra-refresh
CN103975599A (en) Method, device, and program for coding and decoding of images
CN104469488A (en) Video decoding method and system
CN102769753B (en) H264 encoder and coding method
CN102271250B (en) Intra-macro block refreshing method and apparatus thereof
CN102196272B (en) P frame encoding method and device
Baik et al. A complexity-based adaptive tile partitioning algorithm for HEVC decoder parallelization
CN105163117A (en) Image coding and processing methods and devices
CN101309409A (en) Decoding method and device
CN102196253B (en) Video coding method and device based on frame type self-adaption selection
CN109391816B (en) Parallel processing method for realizing entropy coding link in HEVC (high efficiency video coding) based on CPU (Central processing Unit) and GPU (graphics processing Unit) heterogeneous platform
JP5667364B2 (en) Image encoding device
CN101790096A (en) Encoding and decoding method and device based on double prediction
JP2010130351A (en) Motion compensation device
CN102595137A (en) Fast mode judging device and method based on image pixel block row/column pipelining
KR100999505B1 (en) Device for encoding/decoding video data capable of processing parallel macroblock-based data
US11368694B1 (en) Architecture for rate estimation in video coding
CN100496126C (en) Image coder and coding method
CN104956677A (en) Combined parallel and pipelined video encoder
US9237347B2 (en) Systems and methods for video compression for low bit rate and low latency video communications

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
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

CP03 Change of name, title or address