CN101540916B - Method and device for coding/decoding - Google Patents

Method and device for coding/decoding Download PDF

Info

Publication number
CN101540916B
CN101540916B CN 200810102347 CN200810102347A CN101540916B CN 101540916 B CN101540916 B CN 101540916B CN 200810102347 CN200810102347 CN 200810102347 CN 200810102347 A CN200810102347 A CN 200810102347A CN 101540916 B CN101540916 B CN 101540916B
Authority
CN
China
Prior art keywords
frame
macro block
error recovery
recovery frame
error
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 200810102347
Other languages
Chinese (zh)
Other versions
CN101540916A (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.)
Honor Device 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 CN 200810102347 priority Critical patent/CN101540916B/en
Publication of CN101540916A publication Critical patent/CN101540916A/en
Application granted granted Critical
Publication of CN101540916B publication Critical patent/CN101540916B/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 a method and a device for coding/decoding. The method mainly comprises that: when a macro block of a current coded frame as an error recovery frame is coded, the transmission error sensitivity of the macro block of the error recovery frame and the macro block in a corresponding position in at least one frame before the error recovery frame is identified; the transmission error sensitivity refers to how image-decoding quality is influenced when the macro block has transmission errors; if the existence of the macro block of which the transmission error sensitivity accords with a preset condition, the macro block in the error recovery frame is coded by adopting an intra-frame predictive coding mode; after a receiver receives a code stream corresponding to the error recovery frame, errors possibly occurring can be terminated. The realization of the embodiment of the invention not only can effectively terminate the errors occurring in a coding/decoding system, but also can effectively reduce code-stream impact on transmission networks which is caused by the insertion of the error recovery frame, and can reduce the influence of the insertion of the error recovery frame on the efficiency of the coding/decoding system.

Description

A kind of decoding method and device
Technical field
The present invention relates to communication technical field, relate in particular to a kind of encoding and decoding technique.
Background technology
In video communication system, error code or packet loss phenomenon are normally unavoidable, and, after producing error code, not only influence the recovery of current data, simultaneously, because the predictive coding mechanism of video data also can make corresponding error code continue diffusion on time and spatial domain, and then make the effect that the mistake of a certain frame has mistake to accumulate to subsequent frame.For this reason, need to adopt relative measures to improve the anti-error code capacity of video data, so that can terminate corresponding error in the system as soon as possible.
At present, usually the scheme of the corresponding mistake of termination that adopts is I frame (intraframe predictive coding frame) flush mechanism, in this I frame flush mechanism, specifically be to insert an I frame at set intervals, and stipulate that the P frame of this I frame back can not predict with reference to the picture frame before the I frame.Like this, after decoding end receives the I frame, the mistake of Chu Xianing will can not have influence on I frame and I frame frame afterwards thereof before.
In realizing process of the present invention, the inventor finds because the I frame that inserts is to adopt the intraframe predictive coding pattern to encode, and causes that there are the following problems at least in the above-mentioned prior art:
(1),, and then influences corresponding transmission performance therefore if the frequent I of insertion frame will produce bigger code stream to transmission network to be impacted because the code check of I frame is bigger;
(2) because I frame code efficiency is lower, therefore, if frequent insertion I frame will have influence on the efficient of whole coding/decoding system.
Summary of the invention
Embodiments of the invention provide a kind of decoding method, can impact and guarantee and realize wrong termination under the prerequisite of efficient of coding/decoding system reducing code stream at transmission network.
A kind of coding method comprises:
When encoding as the macro block in the current encoded frame of error recovery frame, discern the transmission error sensitiveness of the macro block of correspondence position at least one frame before this macro block of this error recovery frame and this error recovery frame, described transmission error sensitiveness is meant when this macro block generation transmission error the influence degree to decoded image quality;
As if the macro block of determining to exist transmission error sensitiveness to conform to a predetermined condition, then adopt the mode of intraframe predictive coding to carry out encoding operation the macro block in the described error recovery frame.
A kind of code device comprises:
Mistake sensitiveness recognition unit, be used at coding during as the macro block of the current encoded frame of error recovery frame, discern the transmission error sensitiveness of the macro block of correspondence position at least one frame before this macro block of this error recovery frame and this error recovery frame, described transmission error sensitiveness is meant when this macro block generation transmission error the influence degree to decoded image quality;
Coding unit is used for adopting the mode of intraframe predictive coding to carry out encoding operation the macro block in the described error recovery frame when described mistake sensitiveness recognition unit determines to exist the macro block that transmission error sensitiveness conforms to a predetermined condition.
A kind of coding/decoding method comprises:
Determine that according to the code stream that receives current decoded frame is an error recovery frame;
Intraframe predictive coding macro block in current decoded frame carries out in the decode procedure, and it is adjacent and be in the intraframe predictive coding macro block of having decoded in the same band to search described macro block with current decoding;
According to the intraframe predictive coding macro block that finds the intraframe predictive coding macro block of current decoding is carried out decode operation.
A kind of decoding device comprises:
The error recovery frame recognition unit is used for determining according to the code stream that receives whether current decoded frame is error recovery frame;
Intraprediction unit, be used for when the identification of described error recovery frame recognition unit determines whether current decoded frame is error recovery frame, it is adjacent and be in the intraframe predictive coding macro block of having decoded in the same band to search intraframe predictive coding macro block with current decoding;
Decoding unit is used for the intraframe predictive coding macro block that finds according to described intraprediction unit the intraframe predictive coding macro block of current decoding is carried out decode operation.
A kind of coding/decoding method comprises:
In the code stream that receives, comprise a tag mark, being used to indicate present frame is error recovery frame, intraframe predictive coding macro block in current decoded frame carries out in the decode procedure, and it is adjacent and be in the intraframe predictive coding macro block of having decoded in the same band to search described macro block with current decoding; According to the intraframe predictive coding macro block that finds the intraframe predictive coding macro block of current decoding is carried out decode operation;
In the process that the first interframe prediction decoding frame after the described error recovery frame is decoded, only with described error recovery frame as the decoding reference frame.
The technical scheme that is provided by the embodiment of the invention described above as can be seen, it has adopted error recovery frame to carry out the termination of the mistake in the coding/decoding system, because error recovery frame is only just carried out the encoding operation of corresponding intraframe predictive coding pattern where necessary, therefore, the mistake that the realization of the embodiment of the invention not only can effectively terminate and produce in the coding/decoding system, simultaneously, the insertion that can also effectively reduce error recovery frame causes code stream to impact to transmission network, and can reduce the influence of the insertion of error recovery frame to the efficient generation of coding/decoding system.
Description of drawings
The cataloged procedure schematic diagram that Fig. 1 provides for the embodiment of the invention;
The decode procedure schematic diagram that Fig. 2 provides for the embodiment of the invention;
The coding and decoding device structural representation that Fig. 3 provides for the embodiment of the invention.
Embodiment
In the embodiment of the invention, at coding side, can be when encoding as the macro block in the current encoded frame of error recovery frame (being current coding macro block), discern the transmission error sensitiveness of the macro block of correspondence position at least one frame before this macro block of this error recovery frame and this error recovery frame, described transmission error sensitiveness is meant when this macro block generation transmission error the influence degree to decoded image quality; And when the macro block of determining to exist transmission error sensitiveness to conform to a predetermined condition, adopt the mode of intraframe predictive coding to carry out encoding operation the macro block in the described error recovery frame (being current coding macro block), to avoid introducing the mistake that may occur in some encoded macro block, some macro block macro block that can conform to a predetermined condition accordingly for the transmission error sensitiveness of having encoded.
In above-mentioned processing procedure, specifically can comprise: if the arbitrary macro block in the macro block of correspondence position is inter-coded macroblocks or is the inter-coded macroblocks of motion vector greater than predetermined threshold at least one frame before this macro block of error recovery frame and the error recovery frame, then determine the macro block (can be called the responsive macro block of mistake) that this macro block conforms to a predetermined condition for transmission error sensitiveness, promptly determine the macro block that exists transmission error sensitiveness to conform to a predetermined condition.Be that the embodiment of the invention can adopt multiframe coding mode and motion macroblock analysis to carry out the tracking of macro block, and then the coding mode of definite error recovery frame, with the mistake that may occur in the termination cataloged procedure.
For ease of current coding macro block is carried out encoding operation, improve code efficiency, then can will preserve in advance at the transmission error sensitiveness judged result of the macro block of correspondence position at least one frame before the error recovery frame, promptly preserve each self-corresponding transmission error sensitivity label of each macro block of predetermined quantity coded frame, be used for the foundation that whether conforms to a predetermined condition as the transmission error sensitiveness of determining described each macro block; Wherein, if the transmission error sensitivity label of macro block correspondence is effective, represent that then the transmission error sensitiveness of this macro block conforms to a predetermined condition; Like this, can effectively improve code efficiency.
In the embodiment of the invention, can when meeting predetermined error recovery frame insertion condition, current encoded frame be carried out encoding operation as error recovery frame; Wherein, corresponding error recovery frame insert condition can but be not limited to comprise: and the interval number of frames between the last error recovery frame, perhaps, and the blanking time between the last error recovery frame, perhaps, the mistake sensitiveness of the macro block that at least one frame before this coded frame comprises, perhaps, receive the insertion error recovery frame instruction that slave controller or decoder send, or the like.
In the embodiment of the invention, identify corresponding error recovery frame for ease of decoding end, then can also insert error recovery frame sign (i.e. it is a tag mark of error recovery frame that insertion is used to indicate present frame) in the code stream of described error recovery frame correspondence, be error recovery frame by this error recovery frame sign indication current encoded frame.
Corresponding with the processing procedure that above-mentioned coding side adopts, in the embodiment of the invention, after decoding end determines that according to the code stream that receives current decoded frame is error recovery frame, intraframe predictive coding macro block in the current decoded frame (is the macro block of DC pattern as predictive mode) is carried out in the decode procedure, search macro block with current decoding and be in the infra-frame prediction macro block of having decoded in the same band, and the macro block of current decoding is carried out decode operation according to the infra-frame prediction macro block that finds, with the mistake that may occur in the ending system.
Wherein, decoding end determine current decoded frame be error recovery frame mode can but be not limited to comprise: if having the error recovery frame sign in the code stream of current decoded frame correspondence, determine that then current decoded frame is an error recovery frame.
The embodiment of the invention specifically can be used in the video monitoring system, perhaps, also can be applied in other similar coding/decoding systems, can distinguish corresponding error sensitizing range and non-wrong sensitizing range in this similar coding/decoding system.
With the video monitoring system is example, in the corresponding monitor video sequence since camera move or switch fewer, promptly at a time between the background area of big part in the video sequence in the section static always or motion is very little.For the coded message of the background area in the video sequence,, also little to the recovery quality influence of subsequent frame even in transmission course, lose.Therefore, at corresponding video monitoring system, the technical scheme that then can adopt the embodiment of the invention to provide is carried out wrong finalization process.
For ease of understanding, will the processing procedure of coding side in the embodiment of the invention and decoding end employing be elaborated below to the embodiment of the invention.
(1) coding side
Video coding frame with the cumulative function of prevention mistake specifically can be set at coding side, be error recovery frame (abbreviating the RE frame as), to belonging to the responsive macro block of mistake in the macro block of mistake sensitivity in this frame or some frames of certain position macro block before the RE frame, then use the mode of intraframe predictive coding to encode, so that can stop error accumulation by this RE frame to this macro block.
The processing mode that specifically can adopt at coding side can comprise as shown in Figure 1:
Step 101 is set up the individual memory space of M (M for more than or equal to 1 natural number), and each memory space has the same basic unit of storage of macro block number in minimum and the frame video;
Step 102, for M predictive frame before the RE frame, each macro block in every frame is analyzed information such as its motion vector or coding mode according to macro block order, determine the sensitiveness (the transmission error sensitiveness of macro block) of this macro block to analyze, and then know whether this macro block is the responsive macro block of mistake transmission error;
Particularly, the analysis of corresponding macroblock error sensitiveness is analysis under the situation of this macro block generation transmission error, to the influence degree of decoded image quality; It specifically can carry out the judgement of the transmission error sensitiveness of macro block according at least one item in macro-block coding pattern or the motion size, for example, macro block is an inter-coded macroblocks, perhaps, macro block be the motion vector of inter-coded macroblocks and this macro block greater than certain threshold value, can think that then this macro block is the responsive macro block of mistake;
Step 103, whether the correspondence position in the described memory space that the transmission error sensitivity label write step 101 of respective macroblock is set up is the responsive macro block of mistake to show this macro block;
Step 104 is carried out the respective coding operation according to the information in the memory space to each macro block in the current RE frame;
Concrete encoding operation can comprise following several situation:
(1) when the macro block of certain position of coding RE frame, then check the transmission error sensitivity label of correspondence position macro block in RE frame and the frame of M before thereof, if the transmission error sensitivity label of the macro block of the correspondence position of any frame in above-mentioned frame is mistake sensitivity (promptly sign effectively), then the macro block to this position carries out intraframe predictive coding, otherwise, carry out in the normal frame or the interframe adaptive coding; Wherein, when the infra-frame prediction macro block in the RE frame is carried out predictive coding, the reference data of this macro block derives from available adjacent macroblocks, and this available adjacent macroblocks is: encoded, be in the same band and adjacent macroblocks that adopt intraframe predictive coding with current macro;
(2) can be in this two field picture head code stream when coding RE frame, writing this frame type of sign is the RE flag of frame of RE frame.
Step 105 continues the encoding operation acquisition respective coding code stream at other frames of RE frame back;
Wherein, forbid with the coded frame before this error recovery frame in the encoding operation process to the inter prediction encoding frame after the described error recovery frame as the reference frame, for example, for the situation that adopts two reference frames, the first MB of prediction frame of RE frame back (being the P frame) then, only adopting a reference frame and this reference frame when this frame of coding is the RE frame, so that can not predict with reference to the frame before the RE frame at the frame of coding RE frame back.
Carry out in the encoding operation process at above-mentioned coding side, specifically corresponding RE flag of frame can be set all at the encoding code stream of each frame, to be used to indicating whether current encoded frame is the RE frame, be convenient to decoding end and identify corresponding RE frame, and the RE frame is carried out corresponding decoding processing, for example, can adopt a flag bit, if current encoded frame is not the RE frame, then this flag bit is set to 0, if current encoded frame is the RE frame, then this flag bit is set to 1.
(2) decoding end
As shown in Figure 2, in decoding end, corresponding decoding process can comprise:
Step 201 receives one section video code flow;
Step 202, the image head of decoded bit stream;
Step 203 determines that according to the image head that decoding obtains this frame type is the RE frame;
For example, can determine that this frame is the RE frame according to the error recovery frame sign in the image head;
Step 204 is carried out decode operation to this RE frame;
Particularly, decode at the present frame intraprediction encoding macro block (as the macro block of DC predictive mode) in the RE frame, judge the availability of adjacent macroblocks, judge promptly whether adjacent macroblocks decodes, be in the same band and be the infra-frame prediction macro block with current macro, if, adjacent macroblocks can be used, otherwise adjacent macroblocks is unavailable; But, current decoded macroblock is carried out decode operation according to the adjacent macroblocks of having decoded accordingly in definite adjacent macroblocks time spent;
After finishing decode operation to the RE frame, also the frame after the described error recovery frame is decoded, in the process that the interframe prediction decoding frame after this error recovery frame is decoded, forbid with the decoded frame before this error recovery frame as the decoding reference frame, for example, for the situation that adopts two decoded frames, then in the process that the first interframe prediction decoding frame after this error recovery frame is decoded, only carry out decode operation as the decoding reference frame with this error recovery frame.
By above-mentioned decode procedure, then can effectively avoid the mistake that occurred in the coding/decoding system, as LOF etc.
To the concrete application mode of the embodiment of the invention be described below.
In the embodiment of the invention, in the code stream that back that the RE frame is encoded obtains, the syntactic element that corresponding picture header information specifically can comprise is as shown in table 1:
Table 1
pb_picture_header(){ Descriptor
pb_picture_start_code ?f(32)
bbv_delay ?u(16)
picture_coding_type ?u(2)
picture_distance ?u(8)
if(low_delay==’1’)
bbv_check_times ?ue(v)
progressive_frame ?u(1)
if(progressive_frame==’0’){
picture_structure ?u(1)
if(picture_structure==’0’)
advanced_Pred_mode_disable ?u(1)
}
top_field_first ?u(1)
repeat_first_field ?u(1)
fixed_picture_qp ?u(1)
picture_qp ?u(6)
if(!(picture_coding_type==’10’&&PictureStructure==1))
picture_reference_flag ?u(1)
no_forward_reference_flag ?u(1)
reserved_bits ?r(3)
skip_mode_flag ?u(1)
loop_filter_disable ?u(1)
if(!loop_filter_disable){
loop_filter_parameter_flag ?u(1)
if(loop_filter_parameter_flag){
alpha_c_offset ?se(v)
beta_offset ?se(v)
}
}
next_start_code()
}
In the picture header information shown in the above-mentioned table 1, corresponding image encoding mode picture_coding_type is the information that the embodiment of the invention increases, it is specifically as follows 2 signless integers, can be used to carry the error recovery frame sign, with the indication present frame is error recovery frame, and the coded system of the image of this picture_coding_type correspondence (being the image encoding type) specifically can be joined and is shown in Table 2:
Table 2
picture_coding_type Coded system
00 Error recovery frame
01 Forward predictive coded (P)
10 Bi-directional predictive coding (B)
11 Keep
In the embodiment of the invention, for the situation that adopts two reference frames, the syntactic element of the first predictive frame P frame of corresponding RE frame back specifically can be as shown in table 3:
Table 3
pb_picture_header(){ Descriptor
pb_picture_start_code ?f(32)
bbv_delay ?u(16)
picture_coding_type ?u(2)
picture_distance ?u(8)
if(low_delay==’1’)
bbv_check_times ?ue(v)
progressive_frame ?u(1)
if(progressive_frame==’0’){
picture_structure ?u(1)
if(picture_structure==’0’)
advanced_pred_mode_disable ?u(1)
}
top_field_first ?u(1)
repeat_first_field ?u(1)
fixed_picture_qp ?u(1)
picture_qp ?u(6)
if(!(picture_coding_type==’10’&&PictureStructure==1))
picture_reference_flag ?u(1)
no_forward_reference_flag ?u(1)
reserved_bits ?r(3)
skip_mode_flag ?u(1)
loop_filter_disable ?u(1)
if(!loop_filter_disable){
loop_filter_parameter_flag ?u(1)
if(loop_filter_parameter_flag){
alpha_c_offset ?se(v)
beta_offset ?se(v)
}
}
next_start_code()
}
In the information shown in the table 3, it is the RE frame that corresponding image reference sign picture_reference_flag sign is used to indicate the frame of its front.Be specifically as follows: when the picture_reference_flag value of statistical indicant is ' 1 ', represent that all macro blocks all use default reference picture (being the reference picture of described RE frame for the first P frame behind this frame), the picture_reference_flag value of statistical indicant is that ' 0 ' expression is determined corresponding reference picture by each macro block voluntarily in macroblock layer.
Based on the information of above-mentioned table 1 to table 3 description, if the picture_coding_type of the previous reference frame of present frame be ' 00 ' and the picture_coding_type of present frame be ' 01 ', then the picture_reference_flag of present frame is 1, only adopts the RE frame as the reference frame with the indication present frame.
Still the information of describing based on above-mentioned table 1 to table 3 receives one section video code flow in decoding end, and after from decoded bit stream, obtaining picture_coding_type parameter in the corresponding picture header information, then:
(1) if picture_coding_type equals ' 00 ', show that then current decoded frame is the RE frame, and the macro block in this RE frame decoded, wherein, when if this macro block is intra-frame encoding mode (as DC predictive mode etc.), judge the availability of adjacent macroblocks, availability is meant that adjacent macroblocks has been decoded and is in infra-frame prediction macro block in the same band with current macro, and if this macro block for other coding modes could but be not limited to adopt in the prior art decoding mode corresponding to carry out normal decoder;
(2) if picture_coding_type is not equal to ' 00 ', then can but be not limited to adopt in the prior art decoding mode corresponding that this frame is carried out normal decoder.
The embodiment of the invention also provides a kind of code device, and its specific implementation structure specifically can comprise following processing unit as shown in Figure 3:
(1) mistake sensitiveness recognition unit, be used at coding during as the macro block of the current encoded frame of error recovery frame, discern the transmission error sensitiveness of the macro block of correspondence position at least one frame before this macro block of this error recovery frame and this error recovery frame, described transmission error sensitiveness is meant when this macro block generation transmission error the influence degree to decoded image quality;
Wherein, corresponding mistake sensitiveness recognition unit specifically can comprise following at least one unit:
The coding mode recognition unit, be used for when identification determines that arbitrary macro block in the macro block of this macro block of error recovery frame and at least one the frame correspondence position before the error recovery frame is inter-coded macroblocks, then determining the macro block that exists transmission error sensitiveness to conform to a predetermined condition;
The motion vector recognition unit, the arbitrary macro block that is used in the macro block of this macro block of discerning definite error recovery frame and at least one the frame correspondence position before the error recovery frame is the inter-coded macroblocks of motion vector greater than predetermined threshold, then determines the macro block that exists transmission error sensitiveness to conform to a predetermined condition.
(2) coding unit is used for adopting the mode of intraframe predictive coding to carry out encoding operation the macro block in the described error recovery frame when described mistake sensitiveness recognition unit determines to exist the macro block that transmission error sensitiveness conforms to a predetermined condition;
This coding unit can also be used for the frame after the described error recovery frame is encoded, and in encoding operation process to the inter prediction encoding frame after the described error recovery frame, forbid with the coded frame before this error recovery frame as the reference frame, for example, for the situation that adopts two reference frames, then to the carrying out in the encoding operation process of the first inter prediction encoding frame after the error recovery frame, only with reference to this error recovery frame, promptly only with this error recovery frame as reference coding frame.
Alternatively, for further improving code efficiency, in this device, can also comprise memory cell, be used to preserve the corresponding respectively transmission error sensitivity label of each macro block of the coded frame of predetermined quantity, and the foundation that whether conforms to a predetermined condition as the transmission error sensitiveness of definite described each macro block of the corresponding respectively transmission error sensitivity label of each macro block that will preserve; Wherein, if the transmission error sensitivity label of macro block correspondence is effective, represent that then the transmission error sensitiveness of this macro block conforms to a predetermined condition, promptly this macro block is the responsive macro block of mistake.
Alternatively, in this device, can also comprise error recovery frame insertion control unit, be used for when meeting predetermined error recovery frame insertion condition, notifying described mistake sensitiveness recognition unit that current encoded frame is handled as error recovery frame; Wherein, described error recovery frame insert error recovery frame that control unit uses insert condition can but be not limited to comprise: and the interval number of frames between the last error recovery frame, perhaps, and the blanking time between the last error recovery frame, perhaps, the mistake sensitiveness of the macro block that at least one frame before this coded frame comprises, perhaps, receive the insertion error recovery frame instruction that slave controller or decoder send, or the like.
Alternatively, in this device, can also comprise the adjacent macroblocks determining unit, be used to the macro block in the described error recovery frame to determine available adjacent macroblocks, and offer described coding unit, so that the macro block in the described error recovery frame is encoded according to available adjacent macroblocks, this available adjacent macroblocks for encoded, be in the same band and adjacent macroblocks that adopt intraframe predictive coding with current macro.
Alternatively, discern corresponding error recovery frame for ease of decoding end, can also comprise in this device that then corresponding error recovery frame sign inserts the unit, being used for the code stream insertion error recovery frame sign in the error recovery frame correspondence of described coding unit coding acquisition, is error recovery frame by this error recovery frame sign indication current encoded frame.
The embodiment of the invention also provides a kind of decoding device, and its specific implementation structure specifically can comprise still as shown in Figure 3 with lower unit:
(1) error recovery frame recognition unit is used for determining according to the code stream that receives whether current decoded frame is error recovery frame; This error recovery frame recognition unit specifically can comprise:
Recognition unit is used for when there is the error recovery frame sign in the code stream of current decoded frame correspondence, determines that current decoded frame is an error recovery frame.
(2) intraprediction unit, be used for when the identification of described error recovery frame recognition unit determines whether current decoded frame is error recovery frame, it is adjacent and be in the intraframe predictive coding macro block of having decoded in the same band to search intraframe predictive coding macro block with current decoding;
(3) decoding unit is used for the intraframe predictive coding macro block that finds according to described intraprediction unit the intraframe predictive coding macro block of current decoding is carried out decode operation, and for example, can be used for predictive mode is that the macro block of DC pattern carries out decode operation;
This decoding unit can also be used for the frame after the described error recovery frame is decoded, and in the process that the interframe prediction decoding frame after this error recovery frame is decoded, forbid with the decoded frame before this error recovery frame as the decoding reference frame, for example, for the situation that adopts two decoded frames, then in the process that the first interframe prediction decoding frame after this error recovery frame is decoded, only carry out decode operation as the decoding reference frame with this error recovery frame.
In sum, the embodiment of the invention specifically can be by analyzing the motion conditions of one section video sequence, thereby determine zone relatively more responsive to transmission error in one section video, and use intraframe coding method to encode to the sensitizing range.Therefore, the embodiment of the invention can guarantee to guarantee the error protection diffusion function of this frame on the basis of coding efficiency, thereby improves video after the overcompression transmission, in the subjective and objective quality of the display video of decoding end.
Through the above description of the embodiments, those of ordinary skill in the art can be well understood to the present invention and can realize by hardware, also can realize by the mode that software adds essential general hardware platform.Based on such understanding, technical scheme of the present invention can be written as computer executable program, and computer equipment can be realized method provided by the invention by carrying out this program.This computer executable program can be stored in the non-volatile memory medium and (comprise CD-ROM, USB flash disk, portable hard drive etc.).
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (21)

1. a coding method is characterized in that, comprising:
When encoding as the macro block in the current encoded frame of error recovery frame, discern the transmission error sensitiveness of the macro block of correspondence position at least one frame before this macro block of this error recovery frame and this error recovery frame, described transmission error sensitiveness is meant when the macro block generation transmission error of correspondence position in described at least one frame the influence degree to decoded image quality;
As if the macro block of determining to exist transmission error sensitiveness to conform to a predetermined condition, then adopt the mode of intraframe predictive coding to carry out encoding operation the macro block in the described error recovery frame.
2. method according to claim 1 is characterized in that, describedly determines that the macro block that exists transmission error sensitiveness to conform to a predetermined condition comprises:
If the arbitrary macro block at least one frame before this macro block of error recovery frame and the error recovery frame in the macro block of correspondence position is inter-coded macroblocks or is the inter-coded macroblocks of motion vector greater than predetermined threshold, then determines the macro block that exists transmission error sensitiveness to conform to a predetermined condition.
3. method according to claim 1 and 2 is characterized in that, this method also comprises:
Preserve the corresponding respectively transmission error sensitivity label of each macro block of the coded frame of predetermined quantity, be used for the foundation that whether conforms to a predetermined condition as the transmission error sensitiveness of determining described each macro block; Wherein, if the transmission error sensitivity label of macro block correspondence is effective, represent that then the transmission error sensitiveness of this macro block conforms to a predetermined condition.
4. method according to claim 1 and 2 is characterized in that, this method also comprises:
When meeting predetermined error recovery frame insertion condition, then current encoded frame is carried out encoding operation as error recovery frame; Wherein, described error recovery frame insertion condition comprises: and the interval number of frames between the last error recovery frame, perhaps, and the blanking time between the last error recovery frame, perhaps, the mistake sensitiveness of the macro block that at least one frame before this coded frame comprises perhaps, receives the insertion error recovery frame instruction that slave controller or decoder send.
5. method according to claim 1 and 2 is characterized in that, the step that the mode of described employing intraframe predictive coding is carried out encoding operation comprises:
According to available adjacent macroblocks the macro block in the described error recovery frame is carried out intraframe predictive coding, described available adjacent macroblocks is: encoded, be in the same band and adjacent macroblocks that adopt intraframe predictive coding with current macro.
6. method according to claim 1 and 2 is characterized in that, this method also comprises:
Inserting the error recovery frame sign in the code stream of described error recovery frame correspondence, is error recovery frame by this error recovery frame sign indication current encoded frame.
7. method according to claim 1 and 2 is characterized in that, this method also comprises:
Forbid with the coded frame before this error recovery frame as the reference frame in the encoding operation process to the inter prediction encoding frame after the described error recovery frame.
8. a code device is characterized in that, comprising:
Mistake sensitiveness recognition unit, be used at coding during as the macro block of the current encoded frame of error recovery frame, discern the transmission error sensitiveness of the macro block of correspondence position at least one frame before this macro block of this error recovery frame and this error recovery frame, described transmission error sensitiveness is meant when the macro block generation transmission error of correspondence position in described at least one frame the influence degree to decoded image quality;
Coding unit is used for adopting the mode of intraframe predictive coding to carry out encoding operation the macro block in the described error recovery frame when described mistake sensitiveness recognition unit determines to exist the macro block that transmission error sensitiveness conforms to a predetermined condition.
9. device according to claim 8 is characterized in that, described mistake sensitiveness recognition unit specifically comprises following at least one unit:
The coding mode recognition unit, be used for when identification determines that arbitrary macro block in the macro block of this macro block of error recovery frame and at least one the frame correspondence position before the error recovery frame is inter-coded macroblocks, then determining the macro block that exists transmission error sensitiveness to conform to a predetermined condition;
The motion vector recognition unit, the arbitrary macro block that is used in the macro block of this macro block of discerning definite error recovery frame and at least one the frame correspondence position before the error recovery frame is the inter-coded macroblocks of motion vector greater than predetermined threshold, then determines the macro block that exists transmission error sensitiveness to conform to a predetermined condition.
10. according to Claim 8 or 9 described devices, it is characterized in that this device also comprises:
Memory cell is used to preserve the corresponding respectively transmission error sensitivity label of each macro block of the coded frame of predetermined quantity, is used for the foundation that whether conforms to a predetermined condition as the transmission error sensitiveness of determining described each macro block; Wherein, if the transmission error sensitivity label of macro block correspondence is effective, represent that then the transmission error sensitiveness of this macro block conforms to a predetermined condition.
11. according to Claim 8 or 9 described devices, it is characterized in that this device also comprises:
Error recovery frame is inserted control unit, be used for when meeting predetermined error recovery frame insertion condition, notify described mistake sensitiveness recognition unit that current encoded frame is handled as error recovery frame, the error recovery frame insertion condition that described error recovery frame is inserted the control unit application comprises: and the interval number of frames between the last error recovery frame, perhaps, and the blanking time between the last error recovery frame, perhaps, the mistake sensitiveness of the macro block that at least one frame before this coded frame comprises, perhaps, receive the insertion error recovery frame instruction that slave controller or decoder send.
12. device according to claim 11 is characterized in that, this device also comprises:
The adjacent macroblocks determining unit, be used to the macro block in the described error recovery frame to determine available adjacent macroblocks, and offer described coding unit, so that according to available adjacent macroblocks the macro block in the described error recovery frame is encoded, described available adjacent macroblocks is: encoded, be in the same band and adjacent macroblocks that adopt intraframe predictive coding with current macro.
13. according to Claim 8 or 9 described devices, it is characterized in that this device also comprises:
The error recovery frame sign inserts the unit, is used for the code stream insertion error recovery frame sign in the error recovery frame correspondence of described coding unit coding acquisition, is error recovery frame by this error recovery frame sign indication current encoded frame.
14. according to Claim 8 or 9 described devices, it is characterized in that, described coding unit also is used for the frame after the described error recovery frame is encoded, and in encoding operation process, forbid with the coded frame before this error recovery frame as the reference frame to the inter prediction encoding frame after the described error recovery frame.
15. a coding/decoding method is characterized in that, comprising:
Determine that according to the code stream that receives current decoded frame is an error recovery frame;
Intraframe predictive coding macro block in current decoded frame carries out in the decode procedure, and it is adjacent and be in the intraframe predictive coding macro block of having decoded in the same band to search described macro block with current decoding;
According to the intraframe predictive coding macro block that finds the intraframe predictive coding macro block of current decoding is carried out decode operation.
16. method according to claim 15 is characterized in that, the process that described definite current decoded frame is an error recovery frame comprises:
If have the error recovery frame sign in the code stream of current decoded frame correspondence, determine that then current decoded frame is an error recovery frame.
17., it is characterized in that this method also comprises according to claim 15 or 16 described methods:
In the process that the interframe prediction decoding frame after the described error recovery frame is decoded, forbid with the decoded frame before the described error recovery frame as the decoding reference frame.
18. a decoding device is characterized in that, comprising:
The error recovery frame recognition unit is used for determining according to the code stream that receives whether current decoded frame is error recovery frame;
Intraprediction unit, be used for when the identification of described error recovery frame recognition unit determines whether current decoded frame is error recovery frame, it is adjacent and be in the intraframe predictive coding macro block of having decoded in the same band to search intraframe predictive coding macro block with current decoding;
Decoding unit is used for the intraframe predictive coding macro block that finds according to described intraprediction unit the intraframe predictive coding macro block of current decoding is carried out decode operation.
19. device according to claim 18 is characterized in that, described error recovery frame recognition unit specifically comprises:
Recognition unit is used for when there is the error recovery frame sign in the code stream of current decoded frame correspondence, determines that current decoded frame is an error recovery frame.
20. according to claim 18 or 19 described devices, it is characterized in that, described decoding unit also is used for the frame after the described error recovery frame is decoded, and in the process that the interframe prediction decoding frame after this error recovery frame is decoded, forbid with the decoded frame before this error recovery frame as the decoding reference frame.
21. a coding/decoding method is characterized in that, comprising:
In the code stream that receives, comprise a tag mark, being used to indicate present frame is error recovery frame, intraframe predictive coding macro block in current decoded frame carries out in the decode procedure, and it is adjacent and be in the intraframe predictive coding macro block of having decoded in the same band to search described macro block with current decoding; According to the intraframe predictive coding macro block that finds the intraframe predictive coding macro block of current decoding is carried out decode operation;
In the process that the first interframe prediction decoding frame after the described error recovery frame is decoded, only with described error recovery frame as the decoding reference frame.
CN 200810102347 2008-03-20 2008-03-20 Method and device for coding/decoding Active CN101540916B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810102347 CN101540916B (en) 2008-03-20 2008-03-20 Method and device for coding/decoding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810102347 CN101540916B (en) 2008-03-20 2008-03-20 Method and device for coding/decoding

Publications (2)

Publication Number Publication Date
CN101540916A CN101540916A (en) 2009-09-23
CN101540916B true CN101540916B (en) 2010-12-08

Family

ID=41123859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810102347 Active CN101540916B (en) 2008-03-20 2008-03-20 Method and device for coding/decoding

Country Status (1)

Country Link
CN (1) CN101540916B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106060539B (en) * 2016-06-16 2019-04-09 深圳风景网络科技有限公司 A kind of method for video coding of low transmission bandwidth
CN112422969A (en) * 2020-10-20 2021-02-26 西安万像电子科技有限公司 Image coding and decoding method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1275871A (en) * 2000-07-21 2000-12-06 清华大学 Multi-camera video object took video-image communication system and realizing method thereof
CN1732370A (en) * 2002-12-27 2006-02-08 有泽博 Multi-view-point video capturing system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1275871A (en) * 2000-07-21 2000-12-06 清华大学 Multi-camera video object took video-image communication system and realizing method thereof
CN1732370A (en) * 2002-12-27 2006-02-08 有泽博 Multi-view-point video capturing system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP平10-27264A 1998.01.27

Also Published As

Publication number Publication date
CN101540916A (en) 2009-09-23

Similar Documents

Publication Publication Date Title
US10484680B2 (en) Method and apparatus of intra mode coding
US20180234678A1 (en) Adaptive image encoding device and method
JP6207116B2 (en) Method and apparatus for encoding surveillance video
CN101919255B (en) Reference selection for video interpolation or extrapolation
CN101605255A (en) A kind of method of coding and decoding video and device
CN103220508B (en) Coding and decoding method and device
US9979965B2 (en) Image coding and decoding method, image data processing method, and devices thereof
US20050207499A1 (en) Adaptive intra-macroblock refresh method
CN101677406A (en) Method and apparatus for video encoding and decoding
US20030235249A1 (en) Video encoder and method for encoding video frames
KR20080092210A (en) Method and apparatus for encoding and decoding multi-view image
CA2794378A1 (en) Motion prediction method and video encoding method
JP5178311B2 (en) Transmitting apparatus, transmitting apparatus control method, and program
CN101540901B (en) Method and device for coding/decoding
CN101540916B (en) Method and device for coding/decoding
US20130058409A1 (en) Moving picture coding apparatus and moving picture decoding apparatus
CN101326833A (en) Method and apparatus for video error concealment using reference frame selection rules
CN111758262A (en) Video transmission method and device, aircraft, playing equipment and storage medium
US20080069202A1 (en) Video Encoding Method and Device
KR101173560B1 (en) Fast mode decision apparatus and method
CN101453656A (en) Video encoding, decoding method and apparatus, video encoding, decoding system
CN101309427B (en) Video encoding method and device
JPH1093979A (en) Image communication system and method
KR20010016705A (en) Video encoding and decoding method for error correction
CN104754404A (en) Terminal

Legal Events

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

Effective date of registration: 20210422

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Device Co.,Ltd.

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

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.