CN102843561B - Inter frame image predicts reference frame number decoding method and the codec of encoding and decoding - Google Patents

Inter frame image predicts reference frame number decoding method and the codec of encoding and decoding Download PDF

Info

Publication number
CN102843561B
CN102843561B CN201110167639.5A CN201110167639A CN102843561B CN 102843561 B CN102843561 B CN 102843561B CN 201110167639 A CN201110167639 A CN 201110167639A CN 102843561 B CN102843561 B CN 102843561B
Authority
CN
China
Prior art keywords
reference frame
unit
current prediction
prediction unit
probability
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.)
Expired - Fee Related
Application number
CN201110167639.5A
Other languages
Chinese (zh)
Other versions
CN102843561A (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.)
LG Electronics China Research and Development Center Co Ltd
Original Assignee
LG Electronics China Research and Development Center 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 LG Electronics China Research and Development Center Co Ltd filed Critical LG Electronics China Research and Development Center Co Ltd
Priority to CN201110167639.5A priority Critical patent/CN102843561B/en
Priority to PCT/CN2011/084466 priority patent/WO2012174840A1/en
Publication of CN102843561A publication Critical patent/CN102843561A/en
Application granted granted Critical
Publication of CN102843561B publication Critical patent/CN102843561B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses a kind of inter frame image predicts reference frame number decoding method and the codec of encoding and decoding, including the reference frame SEQ.XFER method of inter frame image predictive coding:Current prediction unit is carried out with estimation, obtains the optimum reference frame of current prediction unit;Calculate the maximum of probability reference frame of current prediction unit;If described maximum of probability reference frame is identical with described optimum reference frame it indicates that described maximum of probability reference frame is identical with described optimum reference frame, and terminates reference frame SEQ.XFER;If described maximum of probability reference frame is different from described optimum reference frame, then indicate that described maximum of probability reference frame is different from described optimum reference frame, and after the residual values of the sequence number to described maximum of probability reference frame and the sequence number of described optimum reference frame encode, terminate reference frame SEQ.XFER.To existing inter frame image, the present invention predicts that the reference frame number encoding and decoding in encoding and decoding are improved, improve the efficiency that inter frame image predicts encoding and decoding.

Description

Inter frame image predicts reference frame number decoding method and the codec of encoding and decoding
Technical field
The present invention relates to the prediction of image/video encoding and decoding and inter frame image electric powder prediction, more particularly, to inter frame image is compiled The reference frame number decoding method of decoding and codec.
Background technology
Image/video compression coding and decoding is generally divided into inter frame image encoding and decoding and two kinds of predictions of I picture encoding and decoding to compile Decoding technique.I picture coding/decoding is using the information from present frame coding/decoding elementary area to current coding/decoding Elementary area is predicted coding/decoding.Inter frame image coding/decoding is using having completed the image frame information of coding/decoding to current Coding/decoding image is predicted coding/decoding.
In existing inter frame image decoding method, during to carrying out encoding and decoding with reference to frame number, directly to reference to frame number Value is encoded, and inter frame image predicts the inefficient of encoding and decoding.
Content of the invention
The embodiment of the present invention provides a kind of reference frame SEQ.XFER method of inter frame image predictive coding, in order to improve interframe The efficiency of image forecasting encoding, the method includes:
Current prediction unit is carried out with estimation, obtains the optimum reference frame of current prediction unit;
Calculate the maximum of probability reference frame of current prediction unit;
If the sequence number of described maximum of probability reference frame identical with the sequence number of described optimum reference frame it indicates that described the most general Rate reference frame is identical with described optimum reference frame, and terminates reference frame SEQ.XFER;
If the sequence number of described maximum of probability reference frame different from the sequence number of described optimum reference frame it indicates that described the most general Rate reference frame is different from described optimum reference frame, and in the sequence number to described maximum of probability reference frame and described optimum reference frame After the residual values of sequence number are encoded, terminate reference frame SEQ.XFER.
The embodiment of the present invention also provides the reference frame number coding/decoding method in a kind of inter frame image prediction decoding, in order to improve The efficiency of inter frame image prediction decoding, the method includes:
Decoding determines the optimum reference frame whether phase of maximum of probability reference frame and the current prediction unit of current prediction unit With;
Calculate described maximum of probability reference frame;
If the sequence number of described maximum of probability reference frame identical with the sequence number of described optimum reference frame it is determined that described the most general Rate reference frame is described optimum reference frame;
If the sequence number of described maximum of probability reference frame is different from the sequence number of described optimum reference frame, described in decoding acquisition The residual values of the sequence number of maximum probability reference frame and the sequence number of described optimum reference frame, and according to described residual values and described the most general Rate reference frame obtains described optimum reference frame.
The embodiment of the present invention also provides a kind of video encoder, and in order to improve the efficiency of inter frame image predictive coding, this regards Frequency encoder includes:
Motion estimation module, for current prediction unit is carried out with estimation, obtains the optimum ginseng of current prediction unit Examine frame;
Computing module, for calculating the maximum of probability reference frame of current prediction unit;
Coded treatment module is identical with the sequence number of described optimum reference frame for the sequence number in described maximum of probability reference frame When, indicate that described maximum of probability reference frame is identical with described optimum reference frame, and terminate reference frame SEQ.XFER;In described maximum When the sequence number of probability reference frame is different from the sequence number of described optimum reference frame, indicate described maximum of probability reference frame and described optimum Reference frame is different, and the residual values in the sequence number to described maximum of probability reference frame and the sequence number of described optimum reference frame are compiled After code, terminate reference frame SEQ.XFER.
The embodiment of the present invention also provides a kind of Video Decoder, and in order to improve the efficiency of inter frame image prediction decoding, this regards Frequency decoder includes:
Determining module, determines the maximum of probability reference frame of current prediction unit and the optimum of current prediction unit for decoding Whether reference frame is identical;
Computing module, for calculating described maximum of probability reference frame;
Decoding process module is identical with the sequence number of described optimum reference frame for the sequence number in described maximum of probability reference frame When, determine that described maximum of probability reference frame is described optimum reference frame;Described maximum of probability reference frame sequence number with described When the sequence number of excellent reference frame is different, decoding obtains sequence number and the sequence number of described optimum reference frame of described maximum of probability reference frame Residual values, and obtain described optimum reference frame according to described residual values and described maximum of probability reference frame.
The reference frame SEQ.XFER of the inter frame image predictive coding of the embodiment of the present invention, moves to current prediction unit Estimate, obtain the optimum reference frame of current prediction unit;Calculate the maximum of probability reference frame of current prediction unit;If described maximum Probability reference frame is identical with described optimum reference frame it indicates that described maximum of probability reference frame is identical with described optimum reference frame, And terminate reference frame SEQ.XFER;If described maximum of probability reference frame different from described optimum reference frame it indicates that described maximum Probability reference frame is different from described optimum reference frame, and in the sequence number to described maximum of probability reference frame and described optimum reference frame Sequence number residual values encoded after, terminate reference frame SEQ.XFER;Thus the reference to existing inter frame image predictive coding Frame number coding is improved, and improves the efficiency of inter frame image predictive coding.
Reference frame number decoding in the inter frame image prediction decoding of the embodiment of the present invention, decoding determines current prediction unit Maximum of probability reference frame whether identical with the optimum reference frame of current prediction unit;Calculate described maximum of probability reference frame;If Described maximum of probability reference frame is identical with described optimum reference frame it is determined that described maximum of probability reference frame is the reference of described optimum Frame;If described maximum of probability reference frame is different from described optimum reference frame, decoding obtains the sequence of described maximum of probability reference frame Residual values number with the sequence number of described optimum reference frame, and according to described residual values and described maximum of probability reference frame obtain Optimum reference frame;Thus being improved to the reference frame number decoding in existing inter frame image prediction decoding, improve interframe The efficiency of image prediction decoding.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, also may be used So that other accompanying drawings are obtained according to these accompanying drawings.In the accompanying drawings:
Fig. 1 is the process chart of the reference frame SEQ.XFER method of inter frame image predictive coding in the embodiment of the present invention;
Fig. 2 is that in the embodiment of the present invention, current prediction unit is illustrated with the position of neighboring reference unit and with reference to frame number Figure;
Fig. 3 is the handling process of the reference frame number coding/decoding method in inter frame image prediction decoding in the embodiment of the present invention Figure;
Fig. 4 is the structural representation of video encoder in the embodiment of the present invention;
Fig. 5 is the structural representation of Video Decoder in the embodiment of the present invention.
Specific embodiment
Purpose, technical scheme and advantage for making the embodiment of the present invention become more apparent, below in conjunction with the accompanying drawings to this Bright embodiment is described in further details.Here, the schematic description and description of the present invention is used for explaining the present invention, but simultaneously Not as a limitation of the invention.
As shown in figure 1, in the embodiment of the present invention, the processing stream of the reference frame SEQ.XFER method of inter frame image predictive coding Journey can include:
Step 101, estimation that current prediction unit (Prediction Unit, PU) is carried out, obtain current predictive list The optimum reference frame of unit;
Step 102, calculate current prediction unit maximum of probability reference frame (Most Probable Reference, MPR);
If step 103 described maximum of probability reference frame is with described optimum reference frame is identical (is represented by MPR==current PU optimum reference frame) it indicates that described maximum of probability reference frame is identical with described optimum reference frame, and terminate to compile with reference to frame number Code;If described maximum of probability reference frame is from described optimum reference frame is different (is represented by MPR!=current PU optimum reference frame), Then indicate described maximum of probability reference frame from described optimum reference frame different, and the sequence number to described maximum of probability reference frame with After the residual values of the sequence number of described optimum reference frame are encoded, terminate reference frame SEQ.XFER.
Flow process is it is known that the reference frame SEQ.XFER of the inter frame image predictive coding of the embodiment of the present invention as shown in Figure 1, The reference frame SEQ.XFER of existing inter frame image predictive coding is improved, is improve the effect of inter frame image predictive coding Rate.
When being embodied as, the maximum of probability reference frame calculating current prediction unit can have various ways.For example, it is possible to In the reference frame of neighboring reference unit of current prediction unit, selecting with reference to the minimum reference frame of frame number is described maximum of probability Reference frame;And for example, can select with reference to frame number ginseng placed in the middle in the reference frame of the neighboring reference unit of current prediction unit Examining frame is described maximum of probability reference frame;And for example, can be according to the neighboring reference list of current prediction unit and current prediction unit The size of unit, in the reference frame of the neighboring reference unit of current prediction unit, selects described maximum of probability reference frame;And for example, Can be in the reference frame of the neighboring reference unit of current prediction unit, selection usage frequency highest reference frame is described maximum Probability reference frame.
Fig. 2 is for the position of current prediction unit and neighboring reference unit and with reference to frame number schematic diagram.Fig. 2 includes currently Predicting unit (Current PU), neighboring reference unit (PU_A, PU_B, PU_C, PU_D, PU_E).The reference of wherein each unit Frame number includes ref_idx_l0, ref_idx_l1 and ref_idx_lc.
Wherein, in the reference frame of the neighboring reference unit of current prediction unit, select with reference to the minimum reference of frame number Frame is described maximum of probability reference frame, can be expressed as:MPR=min (ref_idx_lx (A) ..., ref_idx_lx (E)), its Middle ref_idx_lx (A) ..., ref_idx_lx (E) all includes reference frame number ref_idx_l0, ref_idx_ of corresponding unit L1 and ref_idx_lc.
In the reference frame of the neighboring reference unit of current prediction unit, selecting with reference to frame number reference frame placed in the middle is institute State maximum of probability reference frame, can be expressed as:MPR=median (ref_idx_lx (A) ..., ref_idx_lx (E)), wherein Ref_idx_lx (A) ..., ref_idx_lx (E) all includes reference frame number ref_idx_l0, ref_idx_l1 of corresponding unit And ref_idx_lc.
In the reference frame of the neighboring reference unit of current prediction unit, usage frequency highest reference frame is selected to be described Maximum of probability reference frame, can be expressed as:MPR=mostFreqUsed (ref_idx_lx (A) ..., ref_idx_lx (E)), Wherein ref_idx_lx (A) ..., ref_idx_lx (E) all includes reference frame number ref_idx_l0, ref_ of corresponding unit Idx_l1 and ref_idx_lc.
When being embodied as, according to the size of current prediction unit and the neighboring reference unit of current prediction unit, current In the reference frame of neighboring reference unit of predicting unit, select described maximum of probability reference frame, can include:
According to the number of pixels in current prediction unit, determine the size of current prediction unit;
According to the number of pixels in the neighboring reference unit of current prediction unit, determine the neighboring reference of current prediction unit The size of unit;
Wherein, number of pixels is directly proportional to cell size that is to say, that pixel is more, and unit is bigger;Pixel is fewer, single Unit is less.
In Fig. 2, Current PU includes 4N × 4N pixel, and PU_A includes 2N × 2N pixel, and PU_B includes 2N × N number of Pixel, PU_C include N × 2N pixel, PU_D includes 2N × 2N pixel, PU_E includes 2N × 4N pixel.
When being embodied as, according to the size of current prediction unit and the neighboring reference unit of current prediction unit, current In the reference frame of neighboring reference unit of predicting unit, select described maximum of probability reference frame, can include:
Select from the neighboring reference unit of current prediction unit:The reference that size is more than or equal to current prediction unit is single Unit;Or, size is less than or equal to the reference unit of current prediction unit, or, size is set one with the difference of current prediction unit In the range of reference unit;
The reference frame of the reference unit of selection is defined as described maximum of probability reference frame.
Wherein, reference unit in a set point for the difference of size and current prediction unit, for example, can include:? Size and current prediction unit size identical reference unit in horizontal direction and/or vertical direction.
When being embodied as, indicate that described maximum of probability reference frame is identical with described optimum reference frame, can include:By maximum Probability is set to 1 with reference to frame identification;Indicate that described maximum of probability reference frame is different from described optimum reference frame, can include:Will Maximum probability is set to 0 with reference to frame identification.Maximum of probability can be carried out according to actual needs with reference to the setting of frame identification concrete numerical value, this 1, the 0 of place is only one, can certainly be set to other values in enforcement, to indicate maximum of probability reference frame and optimum reference frame phase Same or different.
Maximum of probability can be designated as mpr_flag_lx with reference to frame identification during enforcement, if described maximum of probability reference frame with Described optimum reference frame is identical, then mpr_flag_lx is set to 1, and terminates reference frame SEQ.XFER;If described maximum of probability ginseng Examine frame different from described optimum reference frame, then mpr_flag_lx be set to 0, first to the sequence number of described maximum of probability reference frame with The residual values of the sequence number of described optimum reference frame are encoded, then terminate reference frame SEQ.XFER.Wherein reference frame SEQ.XFER Process also include, setting mpr_flag_lx value after, the value of mpr_flag_lx is encoded.
When being embodied as, due to there is one-to-one relation with reference to frame number and reference frame, therefore judge described maximum Whether probability reference frame is identical with described optimum reference frame, can be according to the sequence number of described maximum of probability reference frame and described optimum The sequence number of reference frame whether identical carrying out.If that is, the sequence number of described maximum of probability reference frame and the reference of described optimum The sequence number of frame is identical then it represents that described maximum of probability reference frame is identical with described optimum reference frame;If described maximum of probability reference The sequence number of frame from described optimum reference frame sequence number different then it represents that described maximum of probability reference frame with described optimum reference frame not With.
The reference frame SEQ.XFER method of the inter frame image predictive coding of the embodiment of the present invention, in HEVC (High Efficienc y Video Coding, high efficiency coding and decoding video) there is the corresponding grammer to predicting unit in working draft Modification (synt ax modification), concrete modification as shown in table 1, has marked modification row, modification part will be former in table The coding with reference to frame number is had to be changed to the coding with reference to frame number based on maximum of probability.Identify maximum of probability reference frame sequence first Number whether optimum with current prediction unit with reference to frame number identical (mpr_flag_lc [x0] [y0]), if it is different, then coding is worked as The optimum residual values (rem_ref_idx_lc [x0] [y0]) with reference to frame number and maximum of probability reference frame number of front predicting unit; If identical, do not need any operation.
Table 1 predicting unit grammar correction
The reference frame number coding/decoding method in a kind of inter frame image prediction decoding is additionally provided in the embodiment of the present invention, as follows Described in the embodiment in face.Principle and interframe due to the reference frame number coding/decoding method solve problem in inter frame image prediction decoding The reference frame SEQ.XFER method of image forecasting encoding is similar, the reference frame number decoding side therefore in inter frame image prediction decoding The enforcement of method may refer to the enforcement of the reference frame SEQ.XFER method of inter frame image predictive coding, repeats no more in place of repetition.
As shown in figure 3, the process of the reference frame number coding/decoding method in the inter frame image prediction decoding of the embodiment of the present invention Flow process can include:
Step 301, decoding determine the maximum of probability reference frame of current prediction unit and the optimum reference of current prediction unit Whether frame is identical;
Step 302, the described maximum of probability reference frame of calculating;
If step 303 described maximum of probability reference frame identical with described optimum reference frame it is determined that described maximum of probability ginseng Examining frame is described optimum reference frame;If described maximum of probability reference frame is different from described optimum reference frame, decoding obtains described The residual values of the sequence number of the sequence number of maximum of probability reference frame and described optimum reference frame, and according to described residual values and described maximum Probability reference frame obtains described optimum reference frame.
Flow process is it is known that reference frame number solution in the inter frame image prediction decoding of the embodiment of the present invention as shown in Figure 3 Code, is improved to the reference frame number decoding in existing inter frame image prediction decoding, is improve inter frame image prediction decoding Efficiency.
When being embodied as, calculate described maximum of probability reference frame, can include:
In the reference frame of the neighboring reference unit of current prediction unit, selecting with reference to the minimum reference frame of frame number is institute State maximum of probability reference frame;
Or, in the reference frame of the neighboring reference unit of current prediction unit, selecting with reference to frame number reference frame placed in the middle For described maximum of probability reference frame;
Or, according to the size of current prediction unit and the neighboring reference unit of current prediction unit, in current prediction unit The reference frame of neighboring reference unit in, select described maximum of probability reference frame;
Or, in the reference frame of the neighboring reference unit of current prediction unit, selection usage frequency highest reference frame is Described maximum of probability reference frame.
When being embodied as, according to the size of current prediction unit and the neighboring reference unit of current prediction unit, current In the reference frame of neighboring reference unit of predicting unit, select described maximum of probability reference frame, can include:
According to the number of pixels in current prediction unit, determine the size of current prediction unit;
According to the number of pixels in the neighboring reference unit of current prediction unit, determine the neighboring reference of current prediction unit The size of unit;
Wherein, number of pixels is directly proportional to cell size.
When being embodied as, according to the size of current prediction unit and the neighboring reference unit of current prediction unit, current In the reference frame of neighboring reference unit of predicting unit, select described maximum of probability reference frame, can include:
Select from the neighboring reference unit of current prediction unit:The reference that size is more than or equal to current prediction unit is single Unit;Or, size is less than or equal to the reference unit of current prediction unit, or, size is set one with the difference of current prediction unit In the range of reference unit;
The reference frame of the reference unit of selection is defined as described maximum of probability reference frame.
When being embodied as, the difference of the size and current prediction unit reference unit in a set point, can include: Size and current prediction unit size identical reference unit in the horizontal direction and/or on vertical direction.
When being embodied as, decoding determines the maximum of probability reference frame of current prediction unit and the optimum ginseng of current prediction unit Whether identical examine frame, can include:
If the maximum of probability reference frame that decoding obtains is designated 1 it is determined that described maximum of probability reference frame and described optimum Reference frame is identical;
If the maximum of probability reference frame that decoding obtains is designated 0 it is determined that described maximum of probability reference frame and described optimum Reference frame is different.
A kind of video encoder and Video Decoder is additionally provided, as described in the following examples in the embodiment of the present invention. Because the principle of video encoder and Video Decoder solve problem predicts that with inter frame image the reference frame number in encoding and decoding is compiled Coding/decoding method is similar, and the enforcement of therefore video encoder and Video Decoder may refer to inter frame image and predicts the ginseng in encoding and decoding Examine the enforcement of frame number decoding method, repeat no more in place of repetition.
As shown in figure 4, the video encoder in the embodiment of the present invention can include:
Motion estimation module 401, for current prediction unit is carried out with estimation, obtains the optimum of current prediction unit Reference frame;
Computing module 402, for calculating the maximum of probability reference frame of current prediction unit;
Coded treatment module 403, for when described maximum of probability reference frame is identical with described optimum reference frame, indicating institute State maximum of probability reference frame identical with described optimum reference frame, and terminate reference frame SEQ.XFER;In described maximum of probability reference When frame is different from described optimum reference frame, indicate that described maximum of probability reference frame is different from described optimum reference frame, and to institute After the residual values of the sequence number and the sequence number of described optimum reference frame of stating maximum of probability reference frame are encoded, terminate with reference to frame number Coding.
In one embodiment, computing module 402 can include:
First computing unit, for, in the reference frame of the neighboring reference unit of current prediction unit, selecting reference frame sequence Number minimum reference frame is described maximum of probability reference frame;
Or, the second computing unit, for, in the reference frame of the neighboring reference unit of current prediction unit, selecting reference frame Sequence number reference frame placed in the middle is described maximum of probability reference frame;
Or, the 3rd computing unit, for big according to current prediction unit and the neighboring reference unit of current prediction unit Little, in the reference frame of the neighboring reference unit of current prediction unit, select described maximum of probability reference frame;
Or, the 4th computing unit, for, in the reference frame of the neighboring reference unit of current prediction unit, selecting using frequency Rate highest reference frame is described maximum of probability reference frame.
In one embodiment, the 3rd computing unit specifically can be used for:
According to the number of pixels in current prediction unit, determine the size of current prediction unit;
According to the number of pixels in the neighboring reference unit of current prediction unit, determine the neighboring reference of current prediction unit The size of unit;
Wherein, number of pixels is directly proportional to cell size.
In one embodiment, the 3rd computing unit specifically can be used for:
Select from the neighboring reference unit of current prediction unit:The reference that size is more than or equal to current prediction unit is single Unit;Or, size is less than or equal to the reference unit of current prediction unit, or, size is set one with the difference of current prediction unit In the range of reference unit;
The reference frame of the reference unit of selection is defined as described maximum of probability reference frame.
In one embodiment, the 3rd computing unit specifically can be used for:
Select from the neighboring reference unit of current prediction unit:In the horizontal direction and/or on vertical direction size with work as Front predicting unit size identical reference unit.
In one embodiment, coded treatment module 403 specifically can be used for:
Maximum of probability is set to 1 with reference to frame identification, to indicate described maximum of probability reference frame and described optimum reference frame phase With;
Maximum of probability is set to 0 with reference to frame identification, to indicate described maximum of probability reference frame with described optimum reference frame not With.
As shown in figure 5, the Video Decoder in the embodiment of the present invention can include:
Determining module 501, determines maximum of probability reference frame and the current prediction unit of current prediction unit for decoding Whether optimum reference frame is identical;
Computing module 502, for calculating described maximum of probability reference frame;
Decoding process module 503, for when described maximum of probability reference frame is identical with described optimum reference frame, determining institute Stating maximum of probability reference frame is described optimum reference frame;When described maximum of probability reference frame is different from described optimum reference frame, Decoding obtains the sequence number of described maximum of probability reference frame and the residual values of the sequence number of described optimum reference frame, and according to described residual error Value and described maximum of probability reference frame obtain described optimum reference frame.
In one embodiment, described computing module 502 can include:
First computing unit, for, in the reference frame of the neighboring reference unit of current prediction unit, selecting reference frame sequence Number minimum reference frame is described maximum of probability reference frame;
Or, the second computing unit, for, in the reference frame of the neighboring reference unit of current prediction unit, selecting reference frame Sequence number reference frame placed in the middle is described maximum of probability reference frame;
Or, the 3rd computing unit, for big according to current prediction unit and the neighboring reference unit of current prediction unit Little, in the reference frame of the neighboring reference unit of current prediction unit, select described maximum of probability reference frame;
Or, the 4th computing unit, for, in the reference frame of the neighboring reference unit of current prediction unit, selecting using frequency Rate highest reference frame is described maximum of probability reference frame.
In one embodiment, described 3rd computing unit specifically can be used for:
According to the number of pixels in current prediction unit, determine the size of current prediction unit;
According to the number of pixels in the neighboring reference unit of current prediction unit, determine the neighboring reference of current prediction unit The size of unit;
Wherein, number of pixels is directly proportional to cell size.
In one embodiment, described 3rd computing unit specifically can be used for:
Select from the neighboring reference unit of current prediction unit:The reference that size is more than or equal to current prediction unit is single Unit;Or, size is less than or equal to the reference unit of current prediction unit, or, size is set one with the difference of current prediction unit In the range of reference unit;
The reference frame of the reference unit of selection is defined as described maximum of probability reference frame.
In one embodiment, described 3rd computing unit specifically can be used for:
Select from the neighboring reference unit of current prediction unit:In the horizontal direction and/or on vertical direction size with work as Front predicting unit size identical reference unit.
In one embodiment, determining module 501 specifically can be used for:
When the maximum of probability reference frame obtaining in decoding is designated 1, determine described maximum of probability reference frame and described optimum Reference frame is identical;
When the maximum of probability reference frame obtaining in decoding is designated 0, determine described maximum of probability reference frame and described optimum Reference frame is different.
In sum, the reference frame SEQ.XFER of the inter frame image predictive coding of the embodiment of the present invention, to current predictive list Unit carries out estimation, obtains the optimum reference frame of current prediction unit;Calculate the maximum of probability reference frame of current prediction unit; If described maximum of probability reference frame is identical with described optimum reference frame it indicates that described maximum of probability reference frame is joined with described optimum Examine frame identical, and terminate reference frame SEQ.XFER;If described maximum of probability reference frame from described optimum reference frame different it indicates that Described maximum of probability reference frame from described optimum reference frame different, and the sequence number to described maximum of probability reference frame with described After the residual values of the sequence number of excellent reference frame are encoded, terminate reference frame SEQ.XFER;Compile thus predicting to existing inter frame image The reference frame SEQ.XFER of code is improved, and improves the efficiency of inter frame image predictive coding.
Reference frame number decoding in the inter frame image prediction decoding of the embodiment of the present invention, decoding determines current prediction unit Maximum of probability reference frame whether identical with the optimum reference frame of current prediction unit;Calculate described maximum of probability reference frame;If Described maximum of probability reference frame is identical with described optimum reference frame it is determined that described maximum of probability reference frame is the reference of described optimum Frame;If described maximum of probability reference frame is different from described optimum reference frame, decoding obtains the sequence of described maximum of probability reference frame Residual values number with the sequence number of described optimum reference frame, and according to described residual values and described maximum of probability reference frame obtain Optimum reference frame;Thus being improved to the reference frame number decoding in existing inter frame image prediction decoding, improve interframe The efficiency of image prediction decoding.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can be using complete hardware embodiment, complete software embodiment or the reality combining software and hardware aspect Apply the form of example.And, the present invention can be using in one or more computers wherein including computer usable program code The upper computer program implemented of usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) produces The form of product.
The present invention is the flow process with reference to method according to embodiments of the present invention, equipment (system) and computer program Figure and/or block diagram are describing.It should be understood that can be by each stream in computer program instructions flowchart and/or block diagram Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processor instructing general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device is to produce A raw machine is so that produced for reality by the instruction of computer or the computing device of other programmable data processing device The device of the function of specifying in present one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing device with spy Determine in the computer-readable memory that mode works so that the instruction generation inclusion being stored in this computer-readable memory refers to Make the manufacture of device, this command device realize in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or The function of specifying in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that counting On calculation machine or other programmable devices, execution series of operation steps to be to produce computer implemented process, thus in computer or On other programmable devices, the instruction of execution is provided for realizing in one flow process of flow chart or multiple flow process and/or block diagram one The step of the function of specifying in individual square frame or multiple square frame.
Particular embodiments described above, has carried out detailed further to the purpose of the present invention, technical scheme and beneficial effect Describe in detail bright, be should be understood that the specific embodiment that the foregoing is only the present invention, the guarantor being not intended to limit the present invention Shield scope, all any modification, equivalent substitution and improvement within the spirit and principles in the present invention, done etc., should be included in this Within the protection domain of invention.

Claims (24)

1. a kind of reference frame SEQ.XFER method of inter frame image predictive coding is it is characterised in that the method includes:
Current prediction unit is carried out with estimation, obtains the optimum reference frame of current prediction unit;
Calculate the maximum of probability reference frame of current prediction unit;
If the sequence number of described maximum of probability reference frame identical with the sequence number of described optimum reference frame it indicates that described maximum of probability ginseng Examine frame identical with described optimum reference frame, and terminate reference frame SEQ.XFER;
If the sequence number of described maximum of probability reference frame different from the sequence number of described optimum reference frame it indicates that described maximum of probability ginseng Examine frame from described optimum reference frame different, and the sequence number to described maximum of probability reference frame with described optimum reference frame sequence number Residual values encoded after, terminate reference frame SEQ.XFER.
2. the method for claim 1 it is characterised in that calculate current prediction unit maximum of probability reference frame, including:
In the reference frame of the neighboring reference unit of current prediction unit, select with reference to the minimum reference frame of frame number be described Maximum probability reference frame;
Or, in the reference frame of the neighboring reference unit of current prediction unit, selecting with reference to frame number reference frame placed in the middle is institute State maximum of probability reference frame;
Or, according to the size of current prediction unit and the neighboring reference unit of current prediction unit, in the phase of current prediction unit In the reference frame of adjacent reference unit, select described maximum of probability reference frame;
Or, in the reference frame of the neighboring reference unit of current prediction unit, selecting usage frequency highest reference frame to be described Maximum of probability reference frame.
3. method as claimed in claim 2 is it is characterised in that the described phase according to current prediction unit and current prediction unit The size of adjacent reference unit, in the reference frame of the neighboring reference unit of current prediction unit, selects described maximum of probability reference Frame, including:
According to the number of pixels in current prediction unit, determine the size of current prediction unit;
According to the number of pixels in the neighboring reference unit of current prediction unit, determine the neighboring reference unit of current prediction unit Size;
Wherein, number of pixels is directly proportional to cell size.
4. method as claimed in claim 2 is it is characterised in that the described phase according to current prediction unit and current prediction unit The size of adjacent reference unit, in the reference frame of the neighboring reference unit of current prediction unit, selects described maximum of probability reference Frame, including:
Select from the neighboring reference unit of current prediction unit:Size is more than or equal to the reference unit of current prediction unit;Or, Size is less than or equal to the reference unit of current prediction unit, or, the difference of size and current prediction unit is in a set point Reference unit;
The reference frame of the reference unit of selection is defined as described maximum of probability reference frame.
5. method as claimed in claim 4 is it is characterised in that described size sets model with the difference of current prediction unit one Reference unit in enclosing, including:
Size and current prediction unit size identical reference unit in the horizontal direction and/or on vertical direction.
6. the method for claim 1 is it is characterised in that described instruction described maximum of probability reference frame is joined with described optimum Examine frame identical, including:Maximum of probability is set to 1 with reference to frame identification;
The described maximum of probability reference frame of described instruction is different from described optimum reference frame, including:By maximum of probability with reference to frame identification It is set to 0.
7. the reference frame number coding/decoding method in a kind of inter frame image prediction decoding is it is characterised in that the method includes:
Decoding determines whether the maximum of probability reference frame of current prediction unit is identical with the optimum reference frame of current prediction unit;
Calculate described maximum of probability reference frame;
If the sequence number of described maximum of probability reference frame identical with the sequence number of described optimum reference frame it is determined that described maximum of probability ginseng Examining frame is described optimum reference frame;
If the sequence number of described maximum of probability reference frame is different from the sequence number of described optimum reference frame, the most general described in decoding acquisition The residual values of the sequence number of the sequence number of rate reference frame and described optimum reference frame, and according to described residual values and described maximum of probability ginseng Examine frame and obtain described optimum reference frame.
8. method as claimed in claim 7 is it is characterised in that described calculating described maximum of probability reference frame, including:
In the reference frame of the neighboring reference unit of current prediction unit, select with reference to the minimum reference frame of frame number be described Maximum probability reference frame;
Or, in the reference frame of the neighboring reference unit of current prediction unit, selecting with reference to frame number reference frame placed in the middle is institute State maximum of probability reference frame;
Or, according to the size of current prediction unit and the neighboring reference unit of current prediction unit, in the phase of current prediction unit In the reference frame of adjacent reference unit, select described maximum of probability reference frame;
Or, in the reference frame of the neighboring reference unit of current prediction unit, selecting usage frequency highest reference frame to be described Maximum of probability reference frame.
9. method as claimed in claim 8 is it is characterised in that the described phase according to current prediction unit and current prediction unit The size of adjacent reference unit, in the reference frame of the neighboring reference unit of current prediction unit, selects described maximum of probability reference Frame, including:
According to the number of pixels in current prediction unit, determine the size of current prediction unit;
According to the number of pixels in the neighboring reference unit of current prediction unit, determine the neighboring reference unit of current prediction unit Size;
Wherein, number of pixels is directly proportional to cell size.
10. method as claimed in claim 8 it is characterised in that described according to current prediction unit and current prediction unit The size of neighboring reference unit, in the reference frame of the neighboring reference unit of current prediction unit, selects described maximum of probability ginseng Examine frame, including:
Select from the neighboring reference unit of current prediction unit:Size is more than or equal to the reference unit of current prediction unit;Or, Size is less than or equal to the reference unit of current prediction unit, or, the difference of size and current prediction unit is in a set point Reference unit;
The reference frame of the reference unit of selection is defined as described maximum of probability reference frame.
11. methods as claimed in claim 10 are it is characterised in that described size is set one with the difference of current prediction unit In the range of reference unit, including:
Size and current prediction unit size identical reference unit in the horizontal direction and/or on vertical direction.
12. methods as claimed in claim 7 are it is characterised in that decoding determines the maximum of probability reference frame of current prediction unit Whether identical with the optimum reference frame of current prediction unit, including:
If decoding obtain maximum of probability reference frame be designated 1 it is determined that described maximum of probability reference frame with described optimum reference Frame is identical;
If decoding obtain maximum of probability reference frame be designated 0 it is determined that described maximum of probability reference frame with described optimum reference Frame is different.
A kind of 13. video encoders are it is characterised in that include:
Motion estimation module, for current prediction unit is carried out with estimation, obtains the optimum reference frame of current prediction unit;
Computing module, for calculating the maximum of probability reference frame of current prediction unit;
Coded treatment module, for described maximum of probability reference frame sequence number with described optimum reference frame sequence number identical when, Indicate that described maximum of probability reference frame is identical with described optimum reference frame, and terminate reference frame SEQ.XFER;Described the most general When the sequence number of rate reference frame is different from the sequence number of described optimum reference frame, indicate described maximum of probability reference frame and described optimum ginseng Examine frame difference, and the residual values in the sequence number to described maximum of probability reference frame and the sequence number of described optimum reference frame encode Afterwards, terminate reference frame SEQ.XFER.
14. video encoders as claimed in claim 13 are it is characterised in that described computing module includes:
First computing unit, for, in the reference frame of the neighboring reference unit of current prediction unit, selecting with reference to frame number Little reference frame is described maximum of probability reference frame;
Or, the second computing unit, for, in the reference frame of the neighboring reference unit of current prediction unit, selecting with reference to frame number Reference frame placed in the middle is described maximum of probability reference frame;
Or, the 3rd computing unit, for the size according to current prediction unit and the neighboring reference unit of current prediction unit, In the reference frame of neighboring reference unit of current prediction unit, select described maximum of probability reference frame;
Or, the 4th computing unit, for, in the reference frame of the neighboring reference unit of current prediction unit, selecting usage frequency High reference frame is described maximum of probability reference frame.
15. video encoders as claimed in claim 14 it is characterised in that described 3rd computing unit specifically for:
According to the number of pixels in current prediction unit, determine the size of current prediction unit;
According to the number of pixels in the neighboring reference unit of current prediction unit, determine the neighboring reference unit of current prediction unit Size;
Wherein, number of pixels is directly proportional to cell size.
16. video encoders as claimed in claim 14 it is characterised in that described 3rd computing unit specifically for:
Select from the neighboring reference unit of current prediction unit:Size is more than or equal to the reference unit of current prediction unit;Or, Size is less than or equal to the reference unit of current prediction unit, or, the difference of size and current prediction unit is in a set point Reference unit;
The reference frame of the reference unit of selection is defined as described maximum of probability reference frame.
17. video encoders as claimed in claim 16 it is characterised in that described 3rd computing unit specifically for:
Select from the neighboring reference unit of current prediction unit:In the horizontal direction and/or on vertical direction size with currently pre- Survey cell size identical reference unit.
18. video encoders as claimed in claim 13 it is characterised in that described coded treatment module specifically for:
Maximum of probability is set to 1 with reference to frame identification, identical with described optimum reference frame to indicate described maximum of probability reference frame;
Maximum of probability is set to 0 with reference to frame identification, different from described optimum reference frame to indicate described maximum of probability reference frame.
A kind of 19. Video Decoders are it is characterised in that include:
Determining module, determines the maximum of probability reference frame of current prediction unit and the optimum reference of current prediction unit for decoding Whether frame is identical;
Computing module, for calculating described maximum of probability reference frame;
Decoding process module, for described maximum of probability reference frame sequence number with described optimum reference frame sequence number identical when, Determine that described maximum of probability reference frame is described optimum reference frame;Sequence number and described optimum ginseng in described maximum of probability reference frame Examine frame sequence number different when, decoding obtains the sequence number of described maximum of probability reference frame and the residual error of the sequence number of described optimum reference frame Value, and obtain described optimum reference frame according to described residual values and described maximum of probability reference frame.
20. Video Decoders as claimed in claim 19 are it is characterised in that described computing module includes:
First computing unit, for, in the reference frame of the neighboring reference unit of current prediction unit, selecting with reference to frame number Little reference frame is described maximum of probability reference frame;
Or, the second computing unit, for, in the reference frame of the neighboring reference unit of current prediction unit, selecting with reference to frame number Reference frame placed in the middle is described maximum of probability reference frame;
Or, the 3rd computing unit, for the size according to current prediction unit and the neighboring reference unit of current prediction unit, In the reference frame of neighboring reference unit of current prediction unit, select described maximum of probability reference frame;
Or, the 4th computing unit, for, in the reference frame of the neighboring reference unit of current prediction unit, selecting usage frequency High reference frame is described maximum of probability reference frame.
21. Video Decoders as claimed in claim 20 it is characterised in that described 3rd computing unit specifically for:
According to the number of pixels in current prediction unit, determine the size of current prediction unit;
According to the number of pixels in the neighboring reference unit of current prediction unit, determine the neighboring reference unit of current prediction unit Size;
Wherein, number of pixels is directly proportional to cell size.
22. Video Decoders as claimed in claim 20 it is characterised in that described 3rd computing unit specifically for:
Select from the neighboring reference unit of current prediction unit:Size is more than or equal to the reference unit of current prediction unit;Or, Size is less than or equal to the reference unit of current prediction unit, or, the difference of size and current prediction unit is in a set point Reference unit;
The reference frame of the reference unit of selection is defined as described maximum of probability reference frame.
23. Video Decoders as claimed in claim 22 it is characterised in that described 3rd computing unit specifically for:
Select from the neighboring reference unit of current prediction unit:In the horizontal direction and/or on vertical direction size with currently pre- Survey cell size identical reference unit.
24. Video Decoders as claimed in claim 19 it is characterised in that described determining module specifically for:
When the maximum of probability reference frame obtaining in decoding is designated 1, determine described maximum of probability reference frame and the reference of described optimum Frame is identical;
When the maximum of probability reference frame obtaining in decoding is designated 0, determine described maximum of probability reference frame and the reference of described optimum Frame is different.
CN201110167639.5A 2011-06-21 2011-06-21 Inter frame image predicts reference frame number decoding method and the codec of encoding and decoding Expired - Fee Related CN102843561B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201110167639.5A CN102843561B (en) 2011-06-21 2011-06-21 Inter frame image predicts reference frame number decoding method and the codec of encoding and decoding
PCT/CN2011/084466 WO2012174840A1 (en) 2011-06-21 2011-12-22 Inter picture prediction encoding/decoding and method and apparatus for reference frame serial number encoding/decoding thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110167639.5A CN102843561B (en) 2011-06-21 2011-06-21 Inter frame image predicts reference frame number decoding method and the codec of encoding and decoding

Publications (2)

Publication Number Publication Date
CN102843561A CN102843561A (en) 2012-12-26
CN102843561B true CN102843561B (en) 2017-03-08

Family

ID=47370577

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110167639.5A Expired - Fee Related CN102843561B (en) 2011-06-21 2011-06-21 Inter frame image predicts reference frame number decoding method and the codec of encoding and decoding

Country Status (1)

Country Link
CN (1) CN102843561B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110839155B (en) * 2018-08-17 2021-12-03 北京金山云网络技术有限公司 Method and device for motion estimation, electronic equipment and computer-readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459842A (en) * 2008-12-17 2009-06-17 浙江大学 Decoding method and apparatus for space desampling
CN101766030A (en) * 2007-07-31 2010-06-30 三星电子株式会社 Use video coding and the coding/decoding method and the equipment of weight estimation

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060153299A1 (en) * 2005-01-07 2006-07-13 Kabushiki Kaisha Toshiba Coded video sequence conversion apparatus, method and program product for coded video sequence conversion
KR20080107965A (en) * 2007-06-08 2008-12-11 삼성전자주식회사 Method and apparatus for encoding and decoding image using object boundary based partition

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101766030A (en) * 2007-07-31 2010-06-30 三星电子株式会社 Use video coding and the coding/decoding method and the equipment of weight estimation
CN101459842A (en) * 2008-12-17 2009-06-17 浙江大学 Decoding method and apparatus for space desampling

Also Published As

Publication number Publication date
CN102843561A (en) 2012-12-26

Similar Documents

Publication Publication Date Title
CN102387360B (en) Video coding-decoding inter-frame image prediction method and Video Codec
JP2020109976A (en) Image prediction method and device
US20160044329A1 (en) Image Predictive Coding Method and Image Encoder
CN108632627A (en) The method for deriving reference prediction mode value
CN104618724B (en) Video coding or the method and device of decoding
CN103369315B (en) The coding of the intra prediction mode of chromatic component, coding/decoding method, equipment and system
CN107046645A (en) Image coding/decoding method and device
CN109788285A (en) The context model choosing method and device of a kind of quantization parameter end mark position
CN103974063A (en) Encoding and decoding method of depth model and video coder decoder
CN102215395B (en) Video coding and decoding method and device
CN103763559A (en) Video file transcoding method
CN103596003B (en) Interframe predication quick mode selecting method for high-performance video coding
CN105812797A (en) Coding unit selection method and device
CN104469488A (en) Video decoding method and system
CN102857768B (en) Equipment and method for determining chromaticity prediction mode candidate set
CN104967855A (en) Coding method suitable for monitoring video
CN103716629A (en) Image processing method, device, coder and decoder
CN103609114B (en) Code device, decoding apparatus, coding/decoding system, coded method and coding/decoding method
CN112347875B (en) Edge cooperative target detection method and device based on region division
CN102843561B (en) Inter frame image predicts reference frame number decoding method and the codec of encoding and decoding
CN110149512A (en) Inter-prediction accelerated method, control device, electronic device, computer storage medium and equipment
CN111654696B (en) Intra-frame multi-reference-line prediction method and device, storage medium and terminal
CN103974069B (en) Reusable method for video coding and encoder
CN103530895A (en) Method and device for detecting mosaic
CN103716631A (en) Image processing method, device, coder and decoder

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170308

Termination date: 20210621